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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d51dcf1897c071819e438b377e20325171f356a | 40b1db3dbd327b0979749812a7388958afd0892c | /Django_practice/DjangoDay3/register_app/views.py | 7395203915c298117737fd8fd9b40ae26156c8a3 | [] | no_license | lucool/project | 91da0255a739b8464c415347c30d5aea69588dee | f2136f7435e817e057403d968b8eb70ddad889be | refs/heads/master | 2023-03-09T01:27:03.633168 | 2021-02-27T10:37:33 | 2021-02-27T10:37:33 | 340,904,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from django.shortcuts import render, redirect
from django.urls import reverse
def register_view(request):
if request.method == "GET":
return render(request,'register_app/register.html')
elif request.method == "POST":
regname = request.POST.get("regname")
regpwd = request.POST.... | [
"lu2015594025@163.com"
] | lu2015594025@163.com |
00be56f3a2d4c9c95afe72cadc2bad2c4cbd94a1 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /23htQEtZobC8cfwcm_2.py | 360e158c04b47b25a149be2dda61466f3f503056 | [] | 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 | 143 | py |
def canConcatenate(lst, target):
nlst = []
for sub in lst:
for i in sub:
nlst.append(i)
return sorted(nlst)==sorted(target)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1e6cbbc5dc6cb0a08716478087f3334a5456edb6 | dff19df8f651fcac7afa53cccd83f90aeef85772 | /account/migrations/0001_initial.py | fd72fc22d8d8b791d84243bd40bb47ee901e9057 | [] | no_license | felipefoc/Django-ToDo | fb6631625fe8d8189841fc43519a727b3fd69ee5 | c15509c22fa7dc9c01ec7b760535becfa0d21b75 | refs/heads/master | 2023-01-23T09:54:56.980485 | 2020-11-22T21:00:01 | 2020-11-22T21:00:01 | 311,521,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | # Generated by Django 3.1.3 on 2020-11-16 04:53
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... | [
"felipemfmayer@gmail.com"
] | felipemfmayer@gmail.com |
3ce0277d9ac32d4776f25bf49f8feb9b9d398fcb | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/54/usersdata/102/23160/submittedfiles/av1_p2_civil.py | 25adbefb3c5ac9e4e683f29149470bf2394ec2ea | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | # -*- coding: utf-8 -*-
from __future__ import division
n = input('Digite o valor de n:')
i = 1
cont = 0
while i<n:
if i%2==1:
cont = cont + 1
i = i + 1
print (cont) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
dfc8858b3e9adf2feaecf24069bb1764bce3df59 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/spacecomponents/server/components/bountyEscrow/persister.py | 6306404cfd75f08055edba12151d71291620eb72 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 1,523 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\spacecomponents\server\components\bountyEscrow\persister.py
class Persister(object):
def __init__(self, solarSystemID, itemID, dbspacecomponent):
self.isDirty = False
self.itemID = itemID
... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
147ac53fdb17b96dc9059fa2ee3c3ac89248b368 | 10ed1072d48185756f9630774b42aaa513dd05d5 | /core/models.py | ef81db43b995d606518e0159cf0c894e8d487b4d | [] | no_license | carlcyh2017/SchoolSys | 4a2f67a620b6c8918127cd018f811592aaf5e593 | 8ecbe01b1b3ab75ac4f51ab3d20768de28f2ed4d | refs/heads/master | 2021-09-12T15:40:21.135902 | 2018-04-18T06:27:39 | 2018-04-18T06:27:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,099 | py | # -*- coding: utf-8 -*- @Time : 18-1-17 下午12:57
# @Author : QiHanFang @Email : qihanfang@foxmail.com
import pickle
import re
from random import randint
from conf.settings import *
from lib.utils import create_id, hash_pwd
from core.logger import log_generate
class Base:
"""基类,用户继承属性"""
def __init_... | [
"qihanfang@foxmail.com"
] | qihanfang@foxmail.com |
8ca9949f60472c84308104b755239a122b758f5e | 18b977dccd70e9e5a1b553b28ab0413fb3f54f4b | /SoftUni/Python Developmen/Python-Basics/4_Conditional_Statements/fishing_boat.py | 7f0dbb468fa2c040c471a83c952bd44aa16c25e3 | [] | no_license | stevalang/Coding-Lessons | 7203e3a18b20e33e8d596e3dfb58d26c50b74530 | 2d0060c2268ad966efdcae4e6e994ac15e57243a | refs/heads/master | 2023-06-05T08:28:33.290530 | 2021-06-16T19:37:29 | 2021-06-16T19:37:29 | 284,852,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | budget = int(input())
season = input()
fishermen_count = int(input())
price = 0
ship_spring = 3000
ship_summer_autumn = 4200
ship_winter = 2600
if fishermen_count <= 6:
if season == 'Spring':
price = ship_spring * 0.9
elif season == 'Autumn' or season == 'Summer':
price = ship_summer_autumn * ... | [
"rbeecommerce@gmail.com"
] | rbeecommerce@gmail.com |
64a61209a7c3321452f4445dd94ad549ba4eb752 | e8f7993403776ff414b370f9125891eecfe109ac | /dcn/simplesites/__init__.py | 55022ddb772e9c8d51819bd2f4613801b58f5b5f | [] | no_license | smcmahon/dcn.simplesites | db6d7524ed50bf6ad6601707ee4a4fd83edd1cf3 | aa19585e1bb75cf61cccaa08f711346600b52f23 | refs/heads/master | 2016-09-05T11:21:44.737796 | 2013-06-17T23:13:38 | 2013-06-17T23:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,921 | py | from zope.i18nmessageid import MessageFactory
from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
# Set up the i18n message factory for our package
MessageFactory = MessageFactory('dcn.simplesites')
# token, value, title
# tokens are what's saved;
# values are the html option values
# titles are presente... | [
"steve@dcn.org"
] | steve@dcn.org |
d18d477979825923900b12a742b7dc51c68e53ed | d21071464bef4f3fd51e554f280418d06975a77e | /leetcode/146 LRU cache.py | 366cc00adde6ee948f057550ffc92ccb472c8ca7 | [] | no_license | DeshErBojhaa/sports_programming | ec106dcc24e96231d447cdcac494d76a94868b2d | 96e086d4ee6169c0f83fff3819f38f32b8f17c98 | refs/heads/master | 2021-06-13T19:43:40.782021 | 2021-03-27T14:21:49 | 2021-03-27T14:21:49 | 164,201,394 | 1 | 0 | null | 2019-08-27T22:21:26 | 2019-01-05T09:39:41 | C++ | UTF-8 | Python | false | false | 1,768 | py | from collections import deque
class Node:
def __init__(self, key):
self.k = key
self.next = None
self.prev = None
class LRUCache:
def __init__(self, capacity: int):
self.N = capacity
self.head = Node(-10000)
self.tail = Node(10000)
self.head.next... | [
"noreply@github.com"
] | DeshErBojhaa.noreply@github.com |
4ee99e8dc62e8235506617820b0213baa4574f24 | e81a351d6049a05b92925c9b781d07701345713c | /Language Proficiency/Python/betweenTwoSets.py | c7fbb312611315069616c8b210a93f70eaa99062 | [] | no_license | dmiruke/HackerRank-Python | 1b2fa331d78ce0b4b23628d081441ca008150bd7 | 86b42458cae43e83dbd339665b31926eca0feacd | refs/heads/master | 2022-01-13T22:16:27.338429 | 2019-07-16T08:00:13 | 2019-07-16T08:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | #!/bin/python3
from math import gcd
#
# Complete the getTotalX function below.
#
def getTotalX(a, b):
#
# Write your code here.
#
lo = a[0]
for i in a[1:]:
lo = int(lo*i/gcd(lo,i))
hi = b[0]
for i in b[1::]:
hi = int(gcd(hi, i))
count = 0
i = 1
for i in range(lo... | [
"atharvapusalkar18@gmail.com"
] | atharvapusalkar18@gmail.com |
dddb37bcbb0fedac09f6b7b4160c9dec9062cb51 | 471b464cd4ec351cb8eb0918ee3658ab22438e47 | /test/test_edict.py | 396a58d7d6708f845f60cffee64a89d131c64da1 | [] | no_license | patarapolw/edictreader | 39c03d551fcc9f38315450ec9fb223e9134455a8 | d1dda8c079b443f66d851fafa9f536b6b0d9453a | refs/heads/master | 2021-04-06T11:01:16.941063 | 2018-03-16T05:32:16 | 2018-03-16T05:32:16 | 125,215,915 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | from time import time
from edictreader.dict import Edict2
def test_search_japanese():
start = time()
d = Edict2()
end = time()
# for item in d:
# print(item)
start2 = time()
print(list(d.search({'japanese': '鼹鼠'})))
end2 = time()
print('__init__() takes {:.4f} seconds'.forma... | [
"patarapolw@gmail.com"
] | patarapolw@gmail.com |
becfe27bbbe6105ff91fa15958ab1ee1894380bd | 18c202413f1737d0c603ebc4eb566a4724b0dd37 | /media/linux/pds-sqlite3-queries/create-ministry-rosters.py | 4df8f9f7d381fa645b3fb85a57ae230a3b1e74af | [] | no_license | jsquyres/epiphany | 01f1a5dc2ec4ac21887f41ac7335376c154b9972 | 60e4a201b8186e63102b7649a3813e5ae7fa737a | refs/heads/main | 2023-08-31T04:25:08.520607 | 2021-08-27T15:02:11 | 2021-08-27T15:02:11 | 98,797,275 | 0 | 1 | null | 2021-09-26T01:18:29 | 2017-07-30T12:53:18 | Python | UTF-8 | Python | false | false | 14,410 | py | #!/usr/bin/env python3
#
# See https://openpyxl.readthedocs.io/en/stable/index.html
#
# pip3.6 install openpyxl
#
import sys
import os
import logging.handlers
import logging
# We assume that there is a "ecc-python-modules" sym link in this
# directory that points to the directory with ECC.py and friends.
moddir = o... | [
"jeff@squyres.com"
] | jeff@squyres.com |
de35c3bd4ec2a2fe84243fd5123191d42f03790d | 7f939ccdc7068f1c441333296896274724100142 | /allocation/migrations/0008_auto_20170723_1409.py | 04f237178cf11730a622275047206a8e112c04ed | [] | no_license | happychallenge/vendorMgmt | c62584af3a7ab4538b36be2f46a5f23b83043495 | e703a04461151950a4b29e5ab2abb855205b21e6 | refs/heads/master | 2021-07-10T08:03:38.666214 | 2018-01-31T11:00:01 | 2018-01-31T11:00:01 | 96,496,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-23 14:09
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('products', '0015_auto_20170723_1352'),
('allocation', '0007_auto_20170723_0903'),
]
... | [
"happychallenge@outlook.com"
] | happychallenge@outlook.com |
837c22b02aaae92a95379ac2311f2991817f4eb1 | dcee93ce4b9fcf0a7ffa6ea658c403ed1fc84043 | /Meteor/src/logAnalysis/migrations/0003_auto_20170811_1009.py | 7bc9b2231774045650c9704355eb09a8a1d96d73 | [] | no_license | henryliuom/drv-study | 3eed96eef58138003371011034562a15ebc16b79 | dcab011bce0f34bcf50f8ab5601eb859a5a07cb7 | refs/heads/master | 2021-06-06T23:49:20.869907 | 2020-07-30T09:06:48 | 2020-07-30T09:06:48 | 95,858,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-11 02:09
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('logAnalysis', '0002_auto_20170802_1329'),
]
operations = [
migrations.AlterModelTab... | [
"henry@techdog.com"
] | henry@techdog.com |
ec494d5bca832ae69c64b84ea0386e25b19fa3ae | a432e6b90912eaf68b6f352e38ef62852f16e4ac | /hf/spike_detection.py | 26b1a6572e9d11ea1d176a73718aad5fde3f26fd | [] | no_license | shaggy63/pltrading | 461e9c09a96681be8fd8d2ae96338c4c42f9171f | 627ce90f826acca0ae7048a90c512d0189be136c | refs/heads/master | 2022-04-14T02:10:53.863858 | 2020-03-27T17:25:46 | 2020-03-27T17:25:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,454 | py | from math import sqrt
from dateutil import parser
from configparser import ConfigParser
from pandas import Series
import matplotlib.dates as mdates
from pandas import DataFrame
from pandas import concat
from pandas import read_csv
import time
from pandas import datetime
import platform
import pandas as pd
import pdb
im... | [
"canercak@gmail.com"
] | canercak@gmail.com |
f58f43a4575f64887bb87422cc4d237f32db62bc | 282ec49f8ce8aa176c24e4f13a8852c9b0752e4a | /forgery/simple-manager/gui/main_window.py | fd9291d8160c763d132090a7548b411a28a98454 | [] | no_license | montreal91/workshop | b118b9358094f91defdae1d11ff8a1553d67cee6 | 8c05e15417e99d7236744fe9f960f4d6b09e4e31 | refs/heads/master | 2023-05-22T00:26:09.170584 | 2023-01-28T12:41:08 | 2023-01-28T12:41:08 | 40,283,198 | 3 | 1 | null | 2023-05-01T20:19:11 | 2015-08-06T03:53:44 | C++ | UTF-8 | Python | false | false | 1,537 | py | from random import shuffle
# from PySide.QtCore import Slot
from PySide.QtGui import QWidget
from gui.widgets.main_window_ui import Ui_JMainWindow
from club import JClub
from league import JLeague
club_names = [
"Canberra Masters",
"Sydney Kangaroos",
"D... | [
"nefedov.alexander91@yandex.ru"
] | nefedov.alexander91@yandex.ru |
655f6bdc4c7f5df0fd7c9a5464f13dfc8f420f3c | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/terraform/checks/resource/aws/SSMDocumentsArePrivate.py | 60963dea36c96ee18408e724b9898d385cb74fa2 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,120 | py |
from checkov.common.models.enums import CheckCategories
from checkov.terraform.checks.resource.base_resource_negative_value_check import BaseResourceNegativeValueCheck
class SSMDocumentsArePrivate(BaseResourceNegativeValueCheck):
def __init__(self):
"""
NIST.800-53.r5 AC-21, NIST.800-53.r5 AC-3,... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
37d4789329c8c3bf49c5bf0697aeb0465cc52a8f | b0c8e0cafa4a8916faab3cce65756ae91426c43f | /study/Python/VCWeek6/BOJ_14677_강의현.py | a37da96e2703bab006f6f7073b11ede71c4291ce | [] | no_license | Rurril/IT-DA-3rd | b3e3ec3c2a5efbc75b76b84e9002c27a0ba4a1c4 | 9985e237cb1b90e9609656d534e0ed164723e281 | refs/heads/master | 2022-07-22T15:26:39.085369 | 2021-11-23T13:30:06 | 2021-11-23T13:30:06 | 288,980,334 | 3 | 29 | null | 2020-11-05T10:25:30 | 2020-08-20T10:49:17 | Java | UTF-8 | Python | false | false | 971 | py | # 병약한 윤호 - G5
import sys
from collections import deque
def bfs():
que=deque()
que.append((0,0))
day=-1
order=0
while que:
size=len(que)
while True:
if size==0:
break
left, right=que.popleft()
if left+right<T:
... | [
"riverkeh@naver.com"
] | riverkeh@naver.com |
a5260f4c75d1782d5851bebe940fca53f07fce4d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2751486_0/Python/viswabharathi/prob1.py | e936ba3450edac54600bc6b01b6579200d489771 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | t = int(raw_input())
for i in xrange(t):
name, n = raw_input().split()
n = int(n)
l = len(name)
tmp = 0
res = 0
start = 0
cstart = 0
for j, ch in enumerate(name):
if ch not in ('a', 'e', 'i', 'o', 'u'):
tmp += 1
else:
tmp = 0
cstart = ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
a54650b300fda35bc32be1b5af773c9e8c81720b | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/201-300/week 202/1552. Magnetic Force Between Two Balls/Magnetic Force Between Two Balls.py | 9e1e6d05fc8941b65b0940ab4af14bb1f0f32a08 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: Wayne
@contact: wangye.hope@gmail.com
@software: PyCharm
@file: Magnetic Force Between Two Balls
@time: 2020/08/17 00:23
"""
class Solution:
def maxDistance(self, position: list, m: int) -> int:
n = len(position)
position.sort()
def co... | [
"905317742@qq.com"
] | 905317742@qq.com |
8aa97fb643114e4e113b2ed33a8a305fcf061797 | 5ab2ccf70fddd30ea88155f2a5adb0711bf3dc9a | /Chap7/badfloatcheck.py | 4c52a6f76ac19e3eefba5d51fb650c03b2210a82 | [] | no_license | jdukosse/LOI_Python_course-SourceCode | 32d66fd79344e9ab9412a6da373f2093b39cad92 | bf13907dacf5b6e95f84885896c8f478dd208011 | refs/heads/master | 2020-12-05T23:27:53.862508 | 2020-01-24T13:42:28 | 2020-01-24T13:42:28 | 232,276,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | def main():
# Count to ten by tenths
i = 0.0
while i != 1.0:
print("i =", i)
i += 0.1
main()
| [
"jdukosse@hotmail.com"
] | jdukosse@hotmail.com |
4ace3d37196da36960499f3b695393f79a07f88b | 1d69ab8bc1ae1cb7f576f11eafbd72f9b6032d76 | /one_off/watertest.py.bak | 354b7a363d8581560e1b9c143d8c5b9c46435234 | [] | no_license | FDI-IT/fd | d40271a8ba51908914bfefc7574d86e6dbdb0d90 | 862ec4bdf8da94a29856c11f35b5202af73017b7 | refs/heads/python2 | 2022-12-03T17:27:05.767487 | 2020-07-15T19:01:41 | 2020-07-15T19:01:41 | 221,480,272 | 0 | 0 | null | 2022-11-22T02:11:00 | 2019-11-13T14:39:10 | Python | UTF-8 | Python | false | false | 924 | bak | from haccp.models import WaterTest
from datetime import date
import random
from decimal import Decimal
start_date = date(2009,1,7)
delta = date(2009,1,14) - start_date
vacation_dates = (date(2009,12,30),date(2010,12,29),date(2011,12,28),date(2012,12,26))
def populate_results():
WaterTest.objects.all().delete()
... | [
"doofus1102@gmail.com"
] | doofus1102@gmail.com |
af80e7eaf4c229b7185cc7b60832b6ea14b89afb | c8036cb365243439b4a3593124eafdfba933a034 | /src/pytorch-resnext-32x8d-centercrop-epoch10.py | 14ecbd8f8981e85f25eafa970a134b791220f81a | [] | no_license | koike-ya/rsna | 3a1150dc878bde6320ae4c1d965675460dd7de0d | c88c45cfa280b47f0fb48cc9df88954f83a551b4 | refs/heads/master | 2022-03-16T00:36:55.846905 | 2019-11-02T00:49:15 | 2019-11-02T00:49:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,340 | py |
dir_csv = '../input/'
dir_train_img = '../input/stage_1_train_pngs/'
dir_test_img = '../input/stage_1_test_pngs/'
# In[2]:
# Parameters
n_classes = 6
n_epochs = 10
batch_size = 32
# # Setup
#
# Need to grab a couple of extra libraries
#
# - Nvidia Apex for mixed precision training (https://github.com/NVIDIA/... | [
"makeffort134@gmail.com"
] | makeffort134@gmail.com |
276172e148598912da58f9737d273252526d5dc8 | 7f1e0158e70b69bfa353661bfb2eabda9ee5c56c | /dnacentersdk/models/validators/v2_2_1/jsd_fe06867e548bba1919024b40d992.py | 6db535faef9734e104abbded4ca2bbe34a05cafe | [
"MIT"
] | permissive | Jerbuck/dnacentersdk | 97fb11844410ec7ab49aec35a30979d6288a87fd | ef2adde6113e7a6acd28a287007eb470fa39d31f | refs/heads/master | 2023-07-31T13:43:01.108243 | 2021-09-14T17:41:19 | 2021-09-14T17:41:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,121 | py | # -*- coding: utf-8 -*-
"""Cisco DNA Center SyncDevices data model.
Copyright (c) 2019-2021 Cisco Systems.
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 l... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
afdb4e602c32338a2e0552721dc3c14860833ca9 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/network/v20200401/get_local_network_gateway.py | 9c6a84c850459931be4dd4496034752ac1f109fa | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 7,651 | 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, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
c1baffca1113db80056ca413d53c5e5775d023d8 | 402cb8ac32c5ca7a53f5875688d1ebba1e96474b | /set41.py | 022632c87d78cc3aa65a3ee9f15eb2e24c5c22b5 | [] | no_license | Srija-U/codekataplayer | c073a13d8621f641a8aba8f23ebee4e1b673d58f | 392f24f35f178b034cfb76d2acc31bbc4b3a5814 | refs/heads/master | 2020-05-02T10:59:45.052802 | 2019-07-22T00:27:46 | 2019-07-22T00:27:46 | 177,914,184 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | class s:
def __init__(self):
self.items=[]
def push(self,data):
if(data==')'):
self.pop()
else:
self.items.append(data)
def pop(self):
self.items.pop()
def is_empty(self):
return self.items==[]
o=s()
l=str(input())
for i in range(0,len(l)... | [
"noreply@github.com"
] | Srija-U.noreply@github.com |
6bce468c5760cc045ca616e1d5138f454bd28843 | 9e204a5b1c5ff4ea3b115ff0559b5af803ab4d15 | /019 Remove Nth Node From End of List.py | 41529a7bd2c40f1bb47863031dffc9d358a8a34b | [
"MIT"
] | permissive | Aminaba123/LeetCode | 178ed1be0733cc7390f30e676eb47cc7f900c5b2 | cbbd4a67ab342ada2421e13f82d660b1d47d4d20 | refs/heads/master | 2020-04-20T10:40:00.424279 | 2019-01-31T08:13:58 | 2019-01-31T08:13:58 | 168,795,374 | 1 | 0 | MIT | 2019-02-02T04:50:31 | 2019-02-02T04:50:30 | null | UTF-8 | Python | false | false | 1,269 | py | """
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will always be valid.
Try to do this in one pass.
"""
__aut... | [
"zhangdanyangg@gmail.com"
] | zhangdanyangg@gmail.com |
a71aa04a86453b8f255e54cdc46df17441160ad4 | 5a69cab2b5ed410f944b57f3ec586b9c624a735c | /architect/tcalc/parser.py | 8931a5974bbfe72ea9786aeef762f7c16f91dcc8 | [
"Apache-2.0"
] | permissive | T3kton/architect | 214a176dd5f9a9bc340d358d692e16a61f362ebe | 3368a66c0c1836eca12dbc7af97f01d5ba13984a | refs/heads/master | 2021-01-20T09:03:25.451300 | 2018-09-17T23:03:24 | 2018-09-17T23:03:24 | 90,217,916 | 0 | 2 | Apache-2.0 | 2018-09-17T23:03:24 | 2017-05-04T03:29:18 | Python | UTF-8 | Python | false | false | 15,425 | py | import string
# for now we are going to barrow parsimonious from contractor
from architect.tcalc.parsimonious import Grammar, ParseError, IncompleteParseError
# TODO: make sure a distrubution function is used
tcalc_grammar = """
script = line*
line = definition? nl
definition = ... | [
"pnhowe@gmail.com"
] | pnhowe@gmail.com |
5eca7cbd6d0508a7363e93d232e67393cf4c08ac | 2f0cb310e2ec8fb176ee240aa964a7eef5ed23b4 | /giico/giico/report/fuel_card_summary/fuel_card_summary.py | 229f2dfacad40fdcf6e938782dfe93c93ae34bb8 | [
"MIT"
] | permissive | thispl/giico | b96cf6b707f361275f8723d15f8ea1f95f908c9c | 14c5631639ab56a586a7962be9871d722c20e205 | refs/heads/master | 2021-06-18T03:56:02.928303 | 2021-04-27T06:42:59 | 2021-04-27T06:42:59 | 200,183,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | # Copyright (c) 2013, VHRS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
def execute(filters=None):
columns, data = [], []
return columns, data
| [
"hereabdulla@gmail.com"
] | hereabdulla@gmail.com |
3eb75a3150a4dcc08540c10af5f332ba2603423b | 776c8a5821eb8cd1357439454c9c20c9da239afb | /November,2020~July,2021/2021-01-01/9273_이승민_정제천을팔자_시간초과.py | 141f915d871d9eea921da90528b080d83b9a24e8 | [] | no_license | JinYeJin/algorithm-study | 85d84a726e0f7bb78a2da37504bc04a42b3906ea | 538c911e6adcdad3bfed3d9f76ccb30804dfb768 | refs/heads/master | 2023-07-04T16:09:12.101837 | 2021-08-14T02:23:44 | 2021-08-14T02:23:44 | 272,363,049 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # 정제헌을 팔자!
# 구현 아이디어 : n ** 2의 n까지의 약수의 개수를 구하기
import sys
input = sys.stdin.readline
def solution():
while 1:
arr = list(map(str, input()))
tmp = "".join(map(str, arr[2:]))
n = int(tmp)
cnt = 0
for i in range(1, n + 1):
if n ** 2 % i == 0:
cnt +... | [
"yeen0606@gmail.com"
] | yeen0606@gmail.com |
3ed1cf66d9c905bf48476a9373aa40591ee6fb9d | 6e6f97f416c06aada38c3a9db23eed7517bfaa6d | /accounts/migrations/0009_remove_profile_image_url.py | c34102ddb2e9e7f6d4d141d5c54b1eef76f1406d | [
"MIT"
] | permissive | ZendaInnocent/sogea | 1735ad047539c09a5c81e196a7a1963022452098 | 54cf257856cae451ad87e2396b8e44a34c0c6daf | refs/heads/main | 2023-08-23T07:18:45.741826 | 2021-10-28T13:19:06 | 2021-10-28T13:19:06 | 365,683,816 | 0 | 0 | MIT | 2021-05-09T06:29:57 | 2021-05-09T06:29:57 | null | UTF-8 | Python | false | false | 332 | py | # Generated by Django 3.1.7 on 2021-03-17 14:24
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0008_profile_image_url'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='image_url',
... | [
"medsonnaftal@gmail.com"
] | medsonnaftal@gmail.com |
d02f7c02234dae46ada1d4880986741d24acb10c | 9cdccd361d2cc778e049ec16008bc457ebaba8ad | /wef/wef/views/home.py | 40860b43c7da518eae00ae33f9afe37adb572616 | [
"MIT"
] | permissive | deadlylaid/book_connect | 2c41c713c63927df27436038c26eb37d70e8b099 | a024363ed1ab06fbb21a9b5da6a04eda9d7dfb35 | refs/heads/master | 2022-11-24T23:37:34.679963 | 2020-12-23T07:10:30 | 2020-12-23T07:10:30 | 63,302,135 | 6 | 0 | MIT | 2022-11-22T01:21:30 | 2016-07-14T04:25:18 | Python | UTF-8 | Python | false | false | 679 | py | from django.views.generic import View
from django.shortcuts import render
from django.contrib.auth.mixins import LoginRequiredMixin
from django.core.paginator import Paginator
from items.models import ItemPost
class Home(View):
def get(self, request):
page = 1
page_per = 5
paginator = ... | [
"deadlylaid@gmail.com"
] | deadlylaid@gmail.com |
1fe706abe282ddddde6afc011ea1a12d9120f990 | 03f6ad21c4332b9b26dfb11ed04e63bdb9236b3c | /benchmarks/benchmark_log.py | 4c7aca41e6a2d68e1e4b8e45974fd7b414720227 | [
"Apache-2.0"
] | permissive | m1griffin/arrayfunc | ddf9ea9c8fa363f79babd788c8d0428ede8dfc60 | c04561c5d565ae8d3ee776783bfb34b242deca93 | refs/heads/master | 2023-08-05T00:09:27.530893 | 2023-07-19T12:46:37 | 2023-07-19T12:46:37 | 40,577,669 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,718 | py | #!/usr/bin/env python3
##############################################################################
# Project: arrayfunc
# Module: benchmark_log.py
# Purpose: Benchmark tests for 'arrayfunc' functions.
# Language: Python 3.5
# Date: 20-Dec-2018.
# Ver: 07-Sep-2021.
#
#####################################... | [
"m12.griffin@gmail.com"
] | m12.griffin@gmail.com |
a09ff0316844e058aee4a997839bbdf28553ea89 | f6a6a8b7c0af49bd86930adde8ffe9ba37950046 | /finitediff/grid/__init__.py | 8a4df96de566e58f26627e8143e6e5b44750045a | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bjodah/finitediff | 5cf65cfff94c85d5aa747c5b0616b93482d707ae | bfb1940cf5c7ce5c9a3b440d1efd8f8c4128fed8 | refs/heads/master | 2021-08-28T18:03:54.491501 | 2021-08-07T06:32:01 | 2021-08-07T06:39:34 | 14,988,640 | 34 | 5 | BSD-2-Clause | 2020-03-07T23:15:07 | 2013-12-06T17:10:24 | Python | UTF-8 | Python | false | false | 292 | py | from .rebalance import (
rebalanced_grid,
pre_pruning_mask,
combine_grids,
grid_pruning_mask,
)
from .refine import refine_grid
from .make import adapted_grid
from .util import locate_discontinuity, pool_discontinuity_approx, grid_error
from .plotting import plot_convergence
| [
"bjodah@gmail.com"
] | bjodah@gmail.com |
afb125cc33aca6fb089b34aaa288b914f5d698e8 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/components/__init__.py | 66159453ab8e75d21f8d1020cb3956a276b8b50c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 3,929 | py | # -*- coding: utf-8 -*- #
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
2cf6fc96c940437aff1a27460dddfc56013ab7ec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02889/s447377526.py | 0de588993a718a3aa4684f5ab46849141c2ffbf5 | [] | 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 | 963 | py | from scipy.sparse.csgraph import floyd_warshall
N,M,L = list(map(int, input().split()))
edges = [[0] * N for _ in range(N)]
for _ in range(M):
A,B,C = list(map(int, input().split()))
edges[A-1][B-1] = C
edges[B-1][A-1] = C
Q = int(input())
queries = []
for _ in range(Q):
queries.append(list(map(int... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ed84a635a4f264bedf8b43ef13bfdacf1f117a89 | 18783303fec404a4386c8ed0a8b8737c1424eadd | /Py exercises/IffyKeysValues_inalist.py | 2f4f2f342c53dca71a059ea0222cdfc45a995d94 | [
"MIT"
] | permissive | arvindkarir/python-pandas-code | a5b23b724c387d5ff745e017f968681847c506ad | fb3b68f07f0438cd0ef6d7ad669ce78650d884a8 | refs/heads/master | 2020-08-13T02:05:16.469398 | 2019-10-23T02:18:10 | 2019-10-23T02:18:10 | 214,887,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | # it generates a dictionary with keys and values, still need to figure out
import random #a standard library module
def someList(numBuckets):
buckets = []
dictKey = 0
dictVal = 0
for i in range(numBuckets):
buckets.append([])
#print(buckets)
for i in range(20):
dictKey = random... | [
"arvindkarir@gmail.com"
] | arvindkarir@gmail.com |
39c5052b25efb02d90dc7c7c625e9a4d98df6a2e | c2c8915d745411a0268ee5ce18d8bf7532a09e1a | /cybox-2.1.0.5/cybox/bindings/address_object.py | 4c3d1f4cedd38a57ab1d40aa8857fbf33a139b58 | [
"BSD-3-Clause"
] | permissive | asealey/crits_dependencies | 581d44e77f297af7edb78d08f0bf11ad6712b3ab | a8049c214c4570188f6101cedbacf669168f5e52 | refs/heads/master | 2021-01-17T11:50:10.020346 | 2014-12-28T06:53:01 | 2014-12-28T06:53:01 | 28,555,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,008 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2014, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
#
# Generated Tue Apr 09 11:09:54 2013 by generateDS.py version 2.9a.
#
import sys
import getopt
import re as re_
import cybox_common
import base64
from datetime impo... | [
"ssnow@mitre.org"
] | ssnow@mitre.org |
25c778bb93b1774fe789a08191b367d0cdeceb2b | abacbf9798f089cd43fd50c2d577de50cca806d8 | /venv/Lib/site-packages/example/webalone/migrations/versions/060a77af98e5_initial.py | 051775fdf12e92177407e2b75bdcd612686b8d77 | [] | no_license | Sarveshr49/ProInternSML | f2bfd82905dd185d82830d4758d69ee2b23f71fb | 2ac09e31ebe54dbecd46935818b089a4b8428354 | refs/heads/master | 2023-08-11T17:36:16.387236 | 2021-10-16T18:23:04 | 2021-10-16T18:23:04 | 373,503,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | py | """initial
Revision ID: 060a77af98e5
Revises:
Create Date: 2016-04-20 08:54:54.125614
"""
# revision identifiers, used by Alembic.
revision = '060a77af98e5'
down_revision = None
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
import odm
import odm.types
def upgrade(engine_... | [
"sarveshragade@gmail.com"
] | sarveshragade@gmail.com |
f9d339753695d27f8f5ee038d683f7d5953ca007 | 8c02ce5c53c99d2036685d81e60a6506ce87347c | /tests.py | a5c57797d55aaba8fe954f1832ea405e233a548e | [
"MIT"
] | permissive | tonyseek/flask-misaka | fcb180e4fc44cbd600f5eaecea86119f81bc5ff9 | 9941a5ed770325c884fced429efc6bbc494f7261 | refs/heads/master | 2020-12-03T05:21:16.213025 | 2013-08-29T04:19:48 | 2013-08-29T04:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,305 | py | from flask import Flask, render_template_string, Markup
from unittest import TestCase
import mock
import misaka
from misaka import (EXT_AUTOLINK, EXT_FENCED_CODE,
EXT_LAX_HTML_BLOCKS, EXT_NO_INTRA_EMPHASIS, EXT_SPACE_HEADERS,
EXT_STRIKETHROUGH, EXT_SUPERSCRIPT, EXT_TABLES, HTML_ESCAPE,
HTML_EXPAND_TABS, HT... | [
"david@davidbaumgold.com"
] | david@davidbaumgold.com |
0cddd922068bf6e2bc543a5e5fd88b7d5f3d7c4a | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptcapacity/vlanxlateentries15min.py | 01943d9b890521e7efcbea5a8e5825e5c9e8ac29 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 11,622 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
5fae31584041719660552b0480a326fbc13274c6 | a13456ff06c5429e48c2ee08c456061eeba09c07 | /pg11.py | eb20365d811f30d9b3b5d77f4fab2b4fd6edc465 | [] | no_license | ramyasutraye/Python_programming-2 | e1dad9151882e7dd267893c6d93b9fb1415dad51 | fdfd51f4263345ffb33a93d5a6b420c8ff90ce12 | refs/heads/master | 2020-04-24T02:56:18.141652 | 2018-12-06T06:55:25 | 2018-12-06T06:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | b = int(input(" "))
p = int(input(" "))
c=b**p
print(c)
| [
"noreply@github.com"
] | ramyasutraye.noreply@github.com |
a7b128e2ceda284f59e9a1fab21f774ce6c065d8 | 668a956d20eabae835a90b2d688f2232707e53d5 | /day18/untitled1/website/migrations/0001_initial.py | 732c12c19a989b2e4d383f06d92ee3e2ab72bac9 | [] | no_license | cq146637/The_front_background | e476c85dfa50cb181f350a5c36e241256637b500 | fefb3db705fe311022568619eb9e006c83b2eaf2 | refs/heads/master | 2021-08-31T23:04:27.298570 | 2017-12-23T09:22:51 | 2017-12-23T09:22:51 | 114,733,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-11-04 07:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserIn... | [
"1016025625@qq.com"
] | 1016025625@qq.com |
b79e3b31ea6038a2722fc0070b0ee58ab17da473 | c7e63d5ee80a96024182846c7a4f01b10da36575 | /get_online_phys_data/cat_all_csv_files.py | 2b09ace094ea925e09792589a6f021f0e1071ab8 | [] | no_license | tommylees112/pi_weather_station | c0fa2730b9158b1f36a8dd1a77f139f4e5d6971e | ef880c93afdfb08f64c517fe30a49f8efad313f4 | refs/heads/master | 2022-10-11T20:16:28.902304 | 2022-09-28T13:47:04 | 2022-09-28T13:47:04 | 143,993,191 | 2 | 2 | null | 2022-09-28T13:47:05 | 2018-08-08T09:43:15 | Python | UTF-8 | Python | false | false | 81 | py | # cat_all_csv_files.py
import glob
glob.glob("oxford_weather_station/*/*.pkl")
| [
"thomas.lees112@gmail.com"
] | thomas.lees112@gmail.com |
464e20ba504d56b1908b9d7160f72647b6baa3a5 | dd9a9649c6c82e1decaf4d2ea56c198b18cdd395 | /api/views.py | 9e6090589a87c02eb45be05750e9b6ed880cefdb | [] | no_license | srrobin/rest-framework-project | e56d2523e8d23109b308bfe8b6ea4bd0511b9da9 | d3050216b0f2cd9c81ad4dc57aa468cc6e007b0a | refs/heads/master | 2020-11-24T15:26:26.462369 | 2019-12-15T16:54:47 | 2019-12-15T16:54:47 | 228,215,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | from rest_framework import generics,permissions
from quote.models import QuoteList
from quote.models import QuoteCategory
from .serializers import QuoteSerializer
from .serializers import QuoteCategorySerializer
class QuoteAPIView(generics.ListAPIView):
permission_classes =(permissions.IsAuthenticated,)
que... | [
"you@domain.com"
] | you@domain.com |
f923ced813c51ae62ed4fb7fb339dade9a332ae9 | 35cf6fc79b8d6c335add8e55e0f4dca6f2816d1d | /Python_Study/第三模块学习/Shool_CRM/bin/start.py | 1bce8f2e71d6509dc9737bf36539adace09d8bde | [] | no_license | KongChan1988/51CTO-Treasure | 08b4ca412ad8a09d67c1ea79c7149f8573309ca4 | edb2e4bd11d39ac24cd240f3e815a88361867621 | refs/heads/master | 2021-07-04T15:57:56.164446 | 2019-07-24T15:28:36 | 2019-07-24T15:28:36 | 97,453,749 | 5 | 8 | null | 2019-10-30T22:05:12 | 2017-07-17T08:34:59 | Python | UTF-8 | Python | false | false | 250 | py | #-*- Coding:utf-8 -*-
# Author: D.Gray
import os,sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
print(BASE_DIR)
sys.path.append(BASE_DIR)
from core import core
if __name__ == '__main__':
a = core.Conter()
a.run() | [
"wangwei_198811@163.com"
] | wangwei_198811@163.com |
434a48e868ae18d561bb5d11ae4e5b288a8152da | c67029032e5f35eaae448d601d8cb870fd2b2953 | /WeatherApp/weather/migrations/0001_initial.py | 7fc72879a9963b8494cd28f9e4794ab6f4640218 | [
"MIT"
] | permissive | VToropov1337/django_weather | c6be2a882ed3a096e3df394acc143fdfa8f798d3 | 936637578f52679d6b79becc77372055dad6008f | refs/heads/master | 2020-12-04T20:00:13.632506 | 2020-01-05T12:47:06 | 2020-01-05T12:47:06 | 231,887,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # Generated by Django 3.0 on 2020-01-05 10:14
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='City',
fields=[
('id', models.AutoField(auto_... | [
"vladimirtoropov87@gmail.com"
] | vladimirtoropov87@gmail.com |
dce5f9b2ef6fb2aa4b68de8e9b42a8e58f0c7336 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03786/s612653284.py | 3f76c3a440685a6568c77eac0ac77920bf2a28d3 | [] | 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 | 199 | py | n = int(input())
a = sorted(list(map(int,input().split())))
cur = a[0]
count = 1
for i in range(1,n):
if a[i] <= cur*2:
count += 1
else:
count = 1
cur += a[i]
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e4c365971bff3e2af3483a510bf04d821556aff0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/309/106184/submittedfiles/jogoDaVelha_BIB.py | 46e2792cb92d6791a026e2704a7844089d936447 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,444 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from random import randint
# autenticação do simbolo para a jogada humano
def solicitaSimboloDoHumano():
# nome=input('Qual seu nome(ou apelido)? ')
simbH= (input("\nQual o simbolo que você deseja utilizar no jogo? "))
while simbH!="X" and simbH!="O" an... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d9596a089de2fc79e1fc2156fb5fe244e800b3a3 | d06f9135fd0f42e59df4c91324cd22124a3486d7 | /Study_Groups/mapper.py | 8ac83c84dbee973eb3f0421b64d8367921a97844 | [] | no_license | jlyang1990/MapReduce | 7546599afaa9b8366e02a0724a6b77cc46149b30 | d01a4d7c4e12e0c77ff820fb2a20a9210c9ce3b0 | refs/heads/master | 2020-06-13T16:56:10.008429 | 2016-12-05T08:16:33 | 2016-12-05T08:16:36 | 75,523,296 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | #!/usr/bin/python
"""
In this exercise your task is to write a mapreduce program that for each forum thread (that is a question node with all it's answers and comments)
would give us a list of students that have posted there - either asked the question, answered a question or added a comment.
If a student posted to ... | [
"jlyang@ucdavis.edu"
] | jlyang@ucdavis.edu |
1ddfcadb90f807f864cbfd5f09862558cbbcd387 | 8839bd1f2e35726b6c8066985690fa2fa86b09a6 | /5.pyAI-K210/5.项目应用/2.视频播放/video_play.py | 8f0972098bff92c05d8d2969bc4f8bdbdf482f2a | [
"MIT"
] | permissive | elektrik-elektronik-muhendisligi/MicroPython-Examples-1 | a9532b06aba470f7f26f841929f4fb145549f70b | f7b08e95ff73e3417af21918c9c6bcf2f83281c6 | refs/heads/master | 2021-05-25T22:58:36.207098 | 2020-04-01T09:50:53 | 2020-04-01T09:50:53 | 253,956,073 | 1 | 0 | null | 2020-04-08T01:39:46 | 2020-04-08T01:39:45 | null | UTF-8 | Python | false | false | 807 | py | '''
实验名称:视频播放器
版本:v1.0
日期:2019.12
翻译和注释:01Studio
说明:AVI视频播放。
'''
import video,time
from Maix import GPIO
from board import board_info
from fpioa_manager import fm
import lcd
lcd.init()
# 音频使能IO
AUDIO_PA_EN_PIN = 32
#注册音频使能IO
if AUDIO_PA_EN_PIN:
fm.register(AUDIO_PA_EN_PIN, fm.fpioa.GPIO1, force=True)
#注册音频控制IO... | [
"237827161@qq.com"
] | 237827161@qq.com |
cddcb6fcda2ccfcf7c8853049983101c62c2c2c7 | 739e91039c05943352a3fc07e768641f74097482 | /Python_self/Binary_Tree.py | 9b0dcbbdfde156b128cf02239d2a618ab114eadf | [] | no_license | doublejy715/Problem-Solve | 651182079ded1a9da3478dd30a4c4507894de85e | 57d5a672a48103769c8cc022cb7132d988624600 | refs/heads/master | 2023-07-13T09:51:23.145427 | 2021-08-31T04:35:04 | 2021-08-31T04:35:04 | 234,250,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | '''
트리는 변수를 head를 가진다 root node이다.
기본적으로 이진트리는 링크드 리스트로 형성 할 수 있다.
기본적으로 노드 형성 클래스와 트리 클래스로 나누어서 생각한다.
1. class node
data, left, right
2. class tree
insert
search(종류 : DLR)
delete
'''
class Node():
def __init__(self,value):
self.value = value
self.left = None
self.right = No... | [
"doublejy715@gmail.com"
] | doublejy715@gmail.com |
025ee506dce791e2417711b08ae51f16ccd15efc | 757aace69943122a21b1fac07ea43199e2ca1228 | /lib/python3.5/site-packages/launch/__init__.py | 39e23c9c10ac1f5300733afa7dbe86a03992527d | [] | no_license | iamsile/ros2-for-os | f9faa522b2f17f04e07de88a6053599fa9a987bc | a83f66a6a34ec9ec969b54194e3bdd32d5b9d092 | refs/heads/master | 2021-01-20T16:31:05.458482 | 2017-06-29T02:00:48 | 2017-06-29T02:00:48 | 95,727,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | # Copyright 2015 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"longxian.tw@alibaba-inc.com"
] | longxian.tw@alibaba-inc.com |
19b1eac27cf2de891f0469d21918d872855415a4 | 5c0c0176db0ccf2c24b6b5ed459a8dc144518b13 | /examples/nas/naive-tf/train.py | f2b2062a8954ca01b8b6e9ef11b2dfe99ca3e815 | [
"MIT"
] | permissive | petuum/nni | ac4f4a1c4d6df71684eeffa127b7c4858fd29e97 | 8134be6269902939232482d63649c06f9864be6d | refs/heads/master | 2023-02-18T11:21:41.078889 | 2021-01-20T03:21:50 | 2021-01-20T03:21:50 | 302,736,456 | 4 | 3 | MIT | 2020-11-20T20:21:15 | 2020-10-09T19:34:11 | Python | UTF-8 | Python | false | false | 2,663 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import tensorflow as tf
from tensorflow.keras import Model
from tensorflow.keras.layers import (AveragePooling2D, BatchNormalization, Conv2D, Dense, MaxPool2D)
from tensorflow.keras.losses import Reduction, SparseCategoricalCrossentropy
from tens... | [
"noreply@github.com"
] | petuum.noreply@github.com |
aeec0d323c820ebcbab293cfab36ab3d59368f88 | 3537265c1b60f0c0eb06d165a0b5779438fc698c | /py/vision/test1/visionlib.py | d1c1136cad4cce4ea52424fc24b104b74f284547 | [
"MIT"
] | permissive | iqihao/mabo.io | f864ba3e158d8c6ee113dd8c0ae8708cae86e9d1 | 7f646db9d5ee3cd0b137866bf8eaf295890f134c | refs/heads/master | 2021-05-30T12:59:56.723936 | 2016-02-10T23:45:36 | 2016-02-10T23:45:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py |
import itertools
import cv2
import numpy as np
def findKeyPoints(img, template, distance=200):
""" find key points in image """
# SIFT
FEATURE_DETECTOR = "SIFT" #"SURF" # "SIFT"
detector = cv2.FeatureDetector_create(FEATURE_DETECTOR)
descriptor = cv2.DescriptorExtractor_create(FEATURE_DETEC... | [
"aidear@163.com"
] | aidear@163.com |
f1583880f8ed6f14fca3054e147fec9973b07d2a | 096dc9b83f9f8764cbd92f628f215d34b4bab4d5 | /src/11/simple_communication_between_interpreters/echoclient.py | 96fc37158b72a9ab6493fd50f1d1c6cb059b4ef9 | [] | no_license | pyarnold/python-cookbook | 18ceecec5a728d88ea9065bb1b2323e59df686a1 | ef8a32741d4571b75d995637a8b2edc3b85a2859 | refs/heads/master | 2021-01-21T09:29:34.998385 | 2014-03-19T14:57:17 | 2014-03-19T14:57:17 | 17,908,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from multiprocessing.connection import Client
c = Client(('localhost', 25000), authkey=b'peekaboo')
c.send('hello')
print('Got:', c.recv())
c.send(42)
print('Got:', c.recv())
c.send([1, 2, 3, 4, 5])
print('Got:', c.recv())
| [
"dave@dabeaz.com"
] | dave@dabeaz.com |
c47d965ba5caaa518434b6d5470b3ab4d1914ce2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_231/ch22_2020_03_31_22_11_05_701728.py | e06b780c09bc1461dcd97486bc9dfc02678bef27 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | c= (input('quantos cigarros vc fuma por dia?'))
a= (input('ha quantos anos?'))
t= (10*c*a)/1440
print(t)
| [
"you@example.com"
] | you@example.com |
fc92399aa42aec6f5c79201431a31e094a729032 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03377/s172991411.py | d2919c59254b5b5c249175befd8776cdf3a52de3 | [] | 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 | 166 | py | def main():
a,b,x = map(int, input().split())
if a<=x and x<=a+b:
print('YES')
else:
print('NO')
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2bf27f22ff1a3a923f49193f02937201c8afebdf | 3f2d1c68d07dd6677bc19c559b1960ca5fef6346 | /tensorbord/train.py | 6a734e1fb8529e6c98a51c56d939fe1312206302 | [] | no_license | 213584adghj/ml | 6ffcf732377dabda129990e3a89468e18dd2700c | f73080e13c4a1c6babe0229bdb939eb3a7f988b6 | refs/heads/master | 2021-03-13T23:22:41.981534 | 2020-03-12T01:59:21 | 2020-03-12T01:59:21 | 246,720,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | # coding: utf-8
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
class train(object):
def __init__(self):
with tf.name_scope('input'):
# 定义两个placeholder
self.x = tf.placeholder(tf.float32, [None, 784], name='x-input')
self.y = tf.placeh... | [
"you@example.com"
] | you@example.com |
51a886388078a4d3e2a0dbdcf134e56b1993c5af | 26cd3fc39f99b74c2741dcbac0d2fed0098d2deb | /thorpy/elements/slidersetter.py | 22b4d5a12c423ed038b9097b61e2fc5154df2817 | [
"MIT"
] | permissive | YannThorimbert/Thorpy-1.4 | b35c4293ba389e13fb7a2691543f9de7030d3f20 | 8dfc5f2fd047ae39c2c8aac1e23326be6152663b | refs/heads/master | 2021-04-09T17:12:34.356309 | 2015-05-11T20:53:18 | 2015-05-11T20:53:18 | 35,449,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,006 | py | from thorpy.elements.slider import SliderX
from thorpy.elements.element import Element
from thorpy.miscgui import functions, style, painterstyle
class SliderXSetter(SliderX):
"""Like a slider, but has a get_value method"""
def __init__(self,
length,
limvals=None,
... | [
"yann.thorimbert@gmail.com"
] | yann.thorimbert@gmail.com |
170ab9e04c87704324e5667f1c73ce9e974a7587 | 4015291afebfd346da3fee4b1d5a775882b5b461 | /services/director-v2/tests/unit/test_models_dynamic_services.py | 03c9084f24b2632efd11873930d77a10d59eb40f | [
"MIT"
] | permissive | pcrespov/osparc-simcore | 3a8a6b5252038542f515c7e90d983ac6f1fb4de7 | eb5e00bc2cf4acfe81f5dc422a5e50a4646c9596 | refs/heads/master | 2023-08-06T04:33:38.594066 | 2023-07-12T09:47:00 | 2023-07-12T09:47:00 | 130,357,545 | 0 | 1 | MIT | 2023-04-18T08:04:27 | 2018-04-20T12:10:41 | Python | UTF-8 | Python | false | false | 6,964 | py | # pylint: disable=redefined-outer-name
import string
from collections import namedtuple
import pytest
from simcore_service_director_v2.models.schemas.dynamic_services import (
RunningDynamicServiceDetails,
SchedulerData,
ServiceBootType,
ServiceState,
)
from simcore_service_director_v2.models.schemas.d... | [
"noreply@github.com"
] | pcrespov.noreply@github.com |
550e0c516d9d0c37c13bcb74ddf65fb1572a9598 | 6a2b0db7d6c4ecef8434f3b35fcaef71eeb0d896 | /VENV/py3_venv/lib/python3.6/site-packages/ansible/modules/cloud/docker/docker_swarm_service.py | 722548acda9f5cbfdb8849fb33f6ca025c0a77e9 | [] | no_license | pseudonode/nornircourse | 9bf890ecfadd1a08691f113e0cd2acadd4b9bffa | 1ad0372f9673de784233937cc15779bc2391e267 | refs/heads/master | 2022-11-09T20:18:22.714703 | 2019-10-04T08:06:42 | 2019-10-04T08:06:42 | 211,856,983 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 107,266 | py | #!/usr/bin/python
#
# (c) 2017, Dario Zanzico (git@dariozanzico.com)
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'status': ['preview'],
'suppor... | [
"andre@recursivenet.com"
] | andre@recursivenet.com |
a8669f9772872cd6be435f83a6f58da83cd2299d | 9433ce01c6e2906c694b6f0956a4640e1872d4d2 | /src/main/python/wdbd/codepool/sqlalchemy/user_dept.py | 7e8675698dd3166725d47b7f79533e7a1752a3b7 | [] | no_license | shwdbd/python_codepool | fcd7950fc1339994186461ae18c34cee238938ee | 92a4fb61d060f9a545499b6b7f99a4dc211d5009 | refs/heads/master | 2023-02-20T19:49:23.677824 | 2022-06-15T08:53:51 | 2022-06-15T08:53:51 | 209,431,254 | 0 | 1 | null | 2023-02-15T21:58:53 | 2019-09-19T00:56:03 | Python | UTF-8 | Python | false | false | 5,924 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : user_dept.py
@Time : 2020/02/09 14:03:54
@Author : Jeffrey Wang
@Version : 1.0
@Contact : shwangjj@163.com
@Desc : 用 员工、部门 为例子,实现ORM基本操作
'''
from sqlalchemy import Column, String, Integer
from sqlalchemy.orm import sessionmaker
from sqlal... | [
"shwangjj@163.com"
] | shwangjj@163.com |
4b828290eeedaeeb5c56247fb70f45bd34cdc8cb | d8ac6dc1fafbca669ac14d3cd9549eba2d503bc4 | /plot.py | 801ebc284e0ceccacbde992cf0ad3f8fabbf5192 | [] | no_license | mattvenn/visa-tek | 34951f05a37fdcc1ad8c0a2dc153b90c5fedd958 | eac2ca584a33e0ab6f739462d30f1a41faa542f9 | refs/heads/master | 2020-06-10T21:12:57.832578 | 2020-02-27T14:20:54 | 2020-02-27T14:20:54 | 193,749,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | #!/usr/bin/python3
import matplotlib.pyplot as plt
import csv
def load(filename):
freq = []
amp = []
count = 0
with open(filename) as fh:
reader = csv.reader(fh)
for row in reader:
freq.append(float(row[0]))
amp.append(float(row[1]))
return freq, amp
def pl... | [
"matt@mattvenn.net"
] | matt@mattvenn.net |
c31b9da1d8505959099df9656b61afd7122f1140 | 33f81c4f22df664de162339f685f1e25a38a50fc | /apps/analytics/mixins.py | 5db5bc6ed82bacab74d3c44afbae9e94418f3431 | [] | no_license | SimonielMusyoki/PythonEcommerce | 1c96f43ff191e3b5aff488c7d53501dd64c2eaf1 | 94583f4162c899373987acba56f2e34d6e91be3b | refs/heads/master | 2023-04-27T05:01:11.142119 | 2023-04-20T08:32:01 | 2023-04-20T08:32:01 | 199,605,797 | 1 | 0 | null | 2023-04-18T14:47:23 | 2019-07-30T08:08:53 | Python | UTF-8 | Python | false | false | 449 | py | from .signals import object_viewed_signal
class ObjectViewedMixin(object):
def get_context_data(self, *args, **kwargs):
context = super(ObjectViewedMixin, self).get_context_data(*args, **kwargs)
request = self.request
instance = context.get("object")
if instance:
object... | [
"musyoki.mtk3@gmail.com"
] | musyoki.mtk3@gmail.com |
2b0468410c8684b936b02d63fa80f89f34f31fcf | 5a5790b60fb76aabc26122fd3c7b388638cf4107 | /tensorflow_probability/python/distributions/matrix_t_linear_operator.py | 77562eaf3585cc3b3668ba471ff41fc010d5b4b0 | [
"Apache-2.0"
] | permissive | Jiema26/probability | 4258bb23b0f2553821b478fcf5e64231130ea56e | b32ab32a267060b28e4cf54289a5edc0fe23b55d | refs/heads/master | 2023-05-11T18:41:14.965708 | 2021-06-05T00:38:38 | 2021-06-05T00:42:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,813 | py | # Copyright 2020 The TensorFlow Probability Authors.
#
# 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f7e1dabbb5dd5c93ae89c347b71714edfd3b6e31 | 6dd61b120b6593d27e230b18da7294d4a7c74bf5 | /monitor/down_up_load_rate.py | 1d6af950586b56e51d6bceef074af38e1ca77c0b | [
"Apache-2.0"
] | permissive | wangtianqi1993/fuzzy_monitor | 3312b4397a51d50b8cd0a1a09db7a925ffcb5e82 | de57b91c44343f6e7a1d9dfc75ec7a808f3ed9bf | refs/heads/master | 2020-06-13T00:11:58.750076 | 2016-12-08T12:02:45 | 2016-12-08T12:02:45 | 75,474,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'wtq'
| [
"1906272972@qq.com"
] | 1906272972@qq.com |
9a3013baa16a11f3a336b3269e8e299696747929 | 078be83cf169c43ba2205ce1b7cc449508459ea8 | /tensorflow_serving/experimental/example/remote_predict_client.py | fc3487c580d066a52e694fa1c941a61c9de3ffaf | [
"Apache-2.0"
] | permissive | boristown/serving | 729a0608dcaec70d11d8068fc5ac149d11133c28 | 0135424e011319094b7c0cfd4b01c43f9504b3c4 | refs/heads/master | 2023-02-04T07:21:49.437958 | 2020-12-26T11:37:41 | 2020-12-26T11:37:41 | 288,752,786 | 0 | 0 | Apache-2.0 | 2020-08-19T14:22:44 | 2020-08-19T14:22:43 | null | UTF-8 | Python | false | false | 2,441 | py | # Copyright 2020 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
96cab6e9e55c13bedcbe505b9dc3883615bdd4ba | 649255f0d9b6d90be3d3f68263680081f893a089 | /test/test_group_account.py | 46031b857ef0e9bca4a9d2b53127d5a82e07cb64 | [] | no_license | khantext/r7ivm3 | 611e1bbc988d9eb8fbb53294d3ed488130e46818 | bd9b25f511f9e7479ea7069d71929700bed09e87 | refs/heads/master | 2023-05-01T10:01:16.336656 | 2021-05-03T18:16:12 | 2021-05-03T18:16:12 | 237,514,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,196 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"justinlute@gmail.com"
] | justinlute@gmail.com |
e197f9b29b6e839fb16e4b02ed056df10a4e798c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2963/60673/320311.py | 1d4ed0094757fd1dec64912e3e422ebb9745d9b5 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | n=int(input())
all=[]
for i in range(n-1):
tmp=input().split(" ")
all.append(tmp)
if(all==[['5', '2', '1'], ['1', '3', '1'], ['9', '4', '0'], ['1', '6', '1'], ['1', '7', '0'], ['5', '1', '1'], ['9', '8', '0'], ['5', '9', '1'], ['5', '10', '1']]):print(27)
elif(all==[['8', '1', '1'], ['10', '3', '0'], ['9', '6',... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
358d8b311b52b64bcddd3edbe962e5943a70c85a | 887afb79a2b1c5b07573376582543570b305187b | /process_scada/urls.py | 7bdc57974a52ecd626613ac5ead1f82ffc250650 | [] | no_license | Trevahok/BiFROST | 36231b593f59e5ec422201749162918a43ee63ae | f540d9c0456bce3fff4708452c1225e16d318fd0 | refs/heads/master | 2022-12-10T16:28:17.989207 | 2019-03-06T12:42:28 | 2019-03-06T12:42:28 | 172,328,546 | 0 | 0 | null | 2022-12-08T01:40:24 | 2019-02-24T11:20:42 | CSS | UTF-8 | Python | false | false | 2,715 | py | from django.urls import path
from django.views.generic import TemplateView
from django.views.decorators.csrf import csrf_exempt
from . import views
urlpatterns = [
path('file/upload/', views.FileUploadView.as_view() ,name = 'file_upload'),
path('file/upload/success/', TemplateView.as_view(template_name='file_up... | [
"vighneshss@gmail.com"
] | vighneshss@gmail.com |
e49951451f6536bfc5d4289d4ed884b4a1f6fd4b | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/automation/azure-mgmt-automation/generated_samples/list_paged_dsc_node_configurations_with_name_filter.py | 3a69b16cabe5ce425a02fcf83426fd431c5572c6 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,647 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
11dae3fca1d70bbb56b846b34ffee96c891b52d4 | 9887e822ed868a6f2c57e7f1563fa4e114e91aa3 | /account/apis/mod.py | 56f2a5f14413c21c0fdd99dd77b0904771022de1 | [] | no_license | cuijianzhe/studyxing | 5d2f00508447b8d81abbd9d31966d6cdf35640a2 | 2d8bf652e0e1ed83b3078ce74400680fd159f7c1 | refs/heads/main | 2023-03-20T23:02:29.349806 | 2021-02-19T12:21:46 | 2021-02-19T12:21:46 | 328,857,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | from base.api import BaseApi
from account.controllers import mod as mod_ctl
class CreateModApi(BaseApi):
need_params = {
'name': ('名称', 'required str 16'),
'sign': ('标识', 'required str 16'),
'rank': ('排序值', 'required int'),
}
def post(self, request, params):
data = mod_ctl... | [
"598941324@qq.com"
] | 598941324@qq.com |
078ea662abba209537305adab7c715e17fc0f377 | 669bde22dcc37e22d554435ec615bc498eb370c7 | /ndb/tests/unit/test_blobstore.py | 32300df49733833c4b6494a2c1835efaf6a801d2 | [
"Apache-2.0"
] | permissive | tjcelaya/google-cloud-python | a375856cd6b37a87e0b07b2c4ee82f65366f484b | c5c556ece3fa8d95c42bf9717e661645ea986e09 | refs/heads/master | 2020-04-02T19:15:04.166745 | 2018-10-25T18:07:27 | 2018-10-25T18:07:27 | 154,728,012 | 0 | 0 | Apache-2.0 | 2018-10-25T19:45:05 | 2018-10-25T19:45:05 | null | UTF-8 | Python | false | false | 5,196 | py | # Copyright 2018 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"daniel.j.hermes@gmail.com"
] | daniel.j.hermes@gmail.com |
ca297a7bed2d89938013edc7d3a4db94fad6d480 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bordellos.py | 51b17a85a0c35d1b954d805cfb25114d8a345af1 | [
"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 | 252 | py |
from xai.brain.wordbase.nouns._bordello import _BORDELLO
#calss header
class _BORDELLOS(_BORDELLO, ):
def __init__(self,):
_BORDELLO.__init__(self)
self.name = "BORDELLOS"
self.specie = 'nouns'
self.basic = "bordello"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
abef8cf8af1057302a68b98d1e65ff28cc9e385c | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ControlRegions/DY/2016noHIPM_v9/configuration_noJER.py | d4274642345e2a5a4144a73e3f4b81a4d0d12afa | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 1,152 | py | # Configuration file to produce initial root files -- has both merged and binned ggH samples
treeName = 'Events'
tag = 'DY_2016noHIPM_v9_noJER'
# used by mkShape to define output directory for root files
outputDir = 'rootFile_noJER'
# file with TTree aliases
aliasesFile = 'aliases.py'
# file with list of variables... | [
"nicolo.trevisani@cern.ch"
] | nicolo.trevisani@cern.ch |
60f2c4f523e064094186abbbf27bc387e91fda43 | 3bec37b9145af3381f1bbc55745d3ef193694c46 | /EPI/16_stairs.py | 202bea239bea3ea153ee8f9e9cdb269d5baf4eb5 | [] | no_license | nuria/study | c00fa8776514ba4343d9923a9e61af5482d7454c | 57ddbafc762da7c8756b475f016c92bf391bc370 | refs/heads/master | 2023-08-05T01:00:48.923046 | 2023-07-22T14:54:48 | 2023-07-22T14:54:48 | 7,290,586 | 5 | 20 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #!usr/local/bin
# destination is n levels up
# we can take from 1 to k events at a time
# this really needs to return 0
# if there is not a possibility
def steps(n,k):
print " {0} {1}".format(n, k)
_s = 0
if n == 1 :
_s = 1
elif k == 1:
_s = n
elif n <= 0:
_s = 0
else:... | [
"nuria@wikimedia.org"
] | nuria@wikimedia.org |
aa8b21a1467006d2663da2786402889ed314b521 | 0bcca17e5b33b1fe237cdf0ff03c2cd38f2d5361 | /src/tasks/waveunet/training/train_gan.py | 2af721a719535449267267dc07c446ee57ca8b44 | [] | no_license | MattSegal/speech-enhancement | 04915d2b10eab395a33e4299fd4df442676f07de | af986a9a86060ce661e62cc444baf0e6d6757cc9 | refs/heads/master | 2020-08-03T15:55:33.759158 | 2020-01-11T05:10:59 | 2020-01-11T05:10:59 | 211,806,346 | 22 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,054 | py | """
Train WaveUNet on the noisy VCTK dataset using MSE + GAN
Batch size of 32 uses approx 5GB of GPU memory.
Uses NoGAN training schedule
https://github.com/jantic/DeOldify#what-is-nogan
"""
import torch
import torch.nn as nn
from src.datasets import NoisySpeechDataset
from src.utils.loss import LeastSquaresLoss
fro... | [
"mattdsegal@gmail.com"
] | mattdsegal@gmail.com |
a49f91645ac0984b0ade8317da1c64816a2a1631 | 14d8418ca5990217be67aee89fdaa310db03fbba | /models/device_cluster_alert_config_pagination_response.py | 70c55decff716f5cd0201af6d0a2beef44a7c6ca | [
"Apache-2.0"
] | permissive | sachanta/lm-sdk-python | 3a16457bd2d5b880a0d238a88a9d1d5b8d9675f0 | e476d415c7279457f79b5d032a73d950af2fe96b | refs/heads/master | 2023-08-03T08:39:42.842790 | 2021-09-13T07:20:56 | 2021-09-13T07:20:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
738bdb26a148ff5cd279ad5cd64b547b3bc91b58 | 11334e46d3575968de5062c7b0e8578af228265b | /plib/new/speak.py | ed93af4c89a0cdd34c1bc51ae232d418b5af5777 | [] | no_license | slowrunner/Carl | 99262f16eaf6d53423778448dee5e5186c2aaa1e | 1a3cfb16701b9a3798cd950e653506774c2df25e | refs/heads/master | 2023-06-08T05:55:55.338828 | 2023-06-04T02:39:18 | 2023-06-04T02:39:18 | 145,750,624 | 19 | 2 | null | 2023-06-04T02:39:20 | 2018-08-22T18:59:34 | Roff | UTF-8 | Python | false | false | 4,399 | py | #!/usr/bin/python3
#
# speak.py Speaker utilities
# includes protection from quotes and apostrophes in phrase
# removes asterisks
# observes quietTime from 11PM until 10AM
#
# includes optional vol parameter (range 10-500 useful)
# includes optional ignore (quiet... | [
"slowrunner@users.noreply.github.com"
] | slowrunner@users.noreply.github.com |
400a7765748d145a2e7be58f1fa69798b3b9e1b3 | 717f5324f8d4ce44a94e2c0b654a2d2a4f0a3c74 | /dwi_ml/training/utils/monitoring.py | 3b7235fdf71fa311640ad471f932599b25d9c149 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jhlegarreta/dwi_ml | 3ac7ef28f3bba13f34a8f38a9f910cf2946dcc7b | a7c03f26780677e4eaccff9b381d5a8ec6120293 | refs/heads/master | 2023-03-04T07:22:15.737775 | 2023-02-23T18:20:53 | 2023-02-23T18:20:53 | 242,525,253 | 0 | 0 | MIT | 2020-06-10T00:53:06 | 2020-02-23T13:49:01 | Python | UTF-8 | Python | false | false | 7,185 | py | # -*- coding: utf-8 -*-
from collections import deque
import timeit
from datetime import datetime
from typing import List, Tuple
import numpy as np
class TimeMonitor(object):
def __init__(self):
self.epoch_durations = []
self._start_time = None
def start_new_epoch(self):
self._start_... | [
"emmanuelle.renauld@usherbrooke.ca"
] | emmanuelle.renauld@usherbrooke.ca |
09b6cea22c66de2eaeb07ff6a791649fafb6f042 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/swaggeraemosgi/model/org_apache_sling_engine_parameters_properties.py | 8ef1802dac6ba31c137146f76e0126c5364e7ed7 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 8,829 | py | """
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0-pre.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-generator.t... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
e2ad5a6ddf46c76e3e62446828c50a10623f0847 | 7a704e838d89f942a1099fec141f1fbe9828e528 | /hysia/core/monitor/monitor.py | edea0e3a6e17a14265ce4c732512112661249259 | [
"Apache-2.0"
] | permissive | cap-ntu/Video-to-Retail-Platform | 3ee00d22b7fd94925adac08c5ea733ee647f4574 | 757c68d9de0778e3da8bbfa678d89251a6955573 | refs/heads/hysia_v2 | 2023-02-14T05:22:16.792928 | 2021-01-10T02:31:43 | 2021-01-10T02:31:43 | 212,741,650 | 63 | 20 | Apache-2.0 | 2021-01-10T02:32:00 | 2019-10-04T05:22:08 | Python | UTF-8 | Python | false | false | 7,021 | py | # Desc: Monitor to keep track of system statistics including CPU, GPU, memory, process and network.
# Author: Zhou Shengsheng
# Date: 24/04/19
# References:
# (1) Get cpu info:
# * py-cpuinfo: https://github.com/workhorsy/py-cpuinfo
# * psutil: https://github.com/giampaolo/psutil
# (2) Get gpu info:... | [
"huaizhen001@e.ntu.edu.sg"
] | huaizhen001@e.ntu.edu.sg |
dc7e70ccb0606c7f9908388b7da170fab6cdf779 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/goodweather/testcase/firstcases/testcase9_012.py | c77b226b597af302f03c194e9841e8638279fae3 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
9193ed0b958e728f1231e0f2ded9824e6c27ba8e | a35dabf440ca3818ed816f8df86f7cd0f79cca4a | /regulations/tests/templatetags_in_context_tests.py | 082b89892bdf6d50c80749b47b87ee16e9ffbd4f | [
"CC0-1.0"
] | permissive | DalavanCloud/regulations-site | 8b7afba8d46c313a7ff06bb6b3778e8ad5516b11 | 0ed37754a8025b6e7d631cf482e987600a6c884b | refs/heads/master | 2020-04-25T06:42:15.255566 | 2018-12-03T21:08:07 | 2018-12-03T21:08:07 | 172,589,907 | 1 | 0 | NOASSERTION | 2019-02-25T21:43:45 | 2019-02-25T21:43:45 | null | UTF-8 | Python | false | false | 1,729 | py | from unittest import TestCase
from django.template import Context, Template
class TemplatetagsInContextTest(TestCase):
def test_in_context(self):
text = "{% load in_context %}"
text += "1. {{ f1 }}{{ f2 }}{{ f3 }}{{ f4 }}\n"
text += "{% begincontext c1 %}\n"
text += "2. {{ f1 }}{{... | [
"cm.lubinski@gmail.com"
] | cm.lubinski@gmail.com |
9025cb04bd40e802de1d21fdabdad114b39aff51 | 04f83aab47940b739f13c1ba102c230372966c43 | /EDSHyFT/test/SUSHyFT/das.py | e8312edfc42b3afc955558f08ff23eefa586aa47 | [] | no_license | PerilousApricot/SUSHyFT-Analyzer | 5a11909963d30c8ad7f19f499253a6753e78608a | 9f5ba528a96203459c52a0434b32311a16e2ff3b | refs/heads/master | 2016-09-15T15:31:30.617286 | 2016-03-14T20:32:09 | 2016-03-14T21:02:28 | 21,915,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,988 | py | #!/usr/bin/env python2.6
#pylint: disable-msg=C0301,C0103,R0914,R0903
"""
DAS command line tool
"""
__author__ = "Valentin Kuznetsov"
import sys
if sys.version_info < (2, 6):
raise Exception("DAS requires python 2.6 or greater")
import os
import re
import time
import json
import urllib
import urllib2
import htt... | [
"andrew.m.melo@vanderbilt.edu"
] | andrew.m.melo@vanderbilt.edu |
c06eb32013963d9155ed9bfbf49eab85864be127 | 48e361837c24ea3def1d8ddbe6191368a03ae50e | /python/sandbox/test.py | 96b9d29047d21934cb78fd127384349c64c9bc7f | [] | no_license | paglenn/random | 7f2134d3eeed7aebbd8f20e3df7299df58d99704 | 30e2a8522c303b1518960d7bf44220996e66c6ea | refs/heads/master | 2021-06-14T11:57:36.827255 | 2017-04-10T04:27:35 | 2017-04-10T04:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | # 2d self-avoiding random walk
#high rejection rate --> VERY SLOW...
import numpy as np
import matplotlib.pyplot as pp
import random
def SAW ( Nsteps):
goodPath = 0
while goodPath == 0:
X = [0 for i in range(Nsteps) ]
Y = [0 for i in range(Nsteps) ]
visited_sites = [(0,0) for i in range(Nsteps) ]
for step ... | [
"nls.pglenn@gmail.com"
] | nls.pglenn@gmail.com |
7f082c545f267641e11c6aae37630408fd76f091 | ba88b66e61f0fd1ec0719b61568f0c883d02e534 | /inventory/urls.py | b2223228bde84132965119ec38b72aeb6a9e36c8 | [] | no_license | bnmng/spltcs | fbc9b5fb5342f5ee0a8bd080f957b4022509b3e9 | 5f19136d8a266b3d2094397cafe41b3ca1f45e78 | refs/heads/master | 2020-12-26T18:47:07.348996 | 2020-08-02T21:57:44 | 2020-08-02T21:57:44 | 237,602,374 | 0 | 0 | null | 2020-03-03T15:07:04 | 2020-02-01T11:07:46 | Python | UTF-8 | Python | false | false | 3,359 | py | from django.urls import path
from inventory.views import (CategoryAjaxMakeModels, CategoryAjaxSuccessMakeModels, CategoryCreate, CategoryDelete, CategoryDetail, CategoryList, CategoryUpdate, ItemAjaxEntity, ItemAjaxLocation, ItemAjaxMakeModel, ItemAjaxRole, ItemAjaxSuccessEntity, ItemAjaxSuccessLocation, ItemAjaxSucces... | [
"benjamin@bnmng.com"
] | benjamin@bnmng.com |
3fad5952bb69e1a9749fdb8c1ede20354824110b | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-iam/huaweicloudsdkiam/v3/model/keystone_create_project_option.py | d91bccd26bce8e2e0e7bc236f8a4a808d20d9140 | [
"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 | 6,199 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class KeystoneCreateProjectOption:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict)... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
955c42544a26f4c5add16a7771bd1becf290236c | 3e6bf1ba30707aacc6e16a84d93e449fcd4a32b7 | /joins/migrations/0009_auto_20160707_0613.py | 652d8b1db03734245d5f3a38d1df06aa86bf6df3 | [] | no_license | osbornetunde/Lauch | a4cddea55b1af341d1d894fc7635c17cddab5707 | fe05c1974ae06919b49c607e96b387a4da602bfa | refs/heads/master | 2021-01-19T05:29:55.148350 | 2016-07-20T06:30:11 | 2016-07-20T06:30:11 | 63,755,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-07 05:13
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('joins', '0008_joinfriends'),
]
operations = [
migrations.RenameModel(
ol... | [
"osbornetunde@gmail.com"
] | osbornetunde@gmail.com |
a0ff784d59a53f6917122e881a2dd0959023182f | 9fdff458f1e20321aaa70d4669eeacb9423c9f36 | /multi/train/AccuracyFormula.py | 7976115db2ad65189a9c6e7d0501deddc61daed7 | [] | no_license | leemengwei/GNRX | 11639716f220f4721e521998ff282ee40ca50275 | 80c5b78826187a519588af3d8c71fb40ba7b94fe | refs/heads/main | 2023-04-01T00:34:12.638628 | 2021-03-29T05:02:03 | 2021-03-29T05:02:03 | 352,524,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,184 | py | # -*- coding: UTF-8 -*-
import numpy as np
import math
import pandas as pd
import warnings
warnings.filterwarnings('ignore')
def RMSE(values_1, values_2, baseNum) -> float:
"""均方根误差"""
if(len(values_1)==0 or len(values_2)==0 or len(values_1)!=len(values_2)):
raise BaseException("数组无值或长度不一致")
value... | [
"1099366685@qq.com"
] | 1099366685@qq.com |
c9bf084657308a4de0a109a873e9eae451c3a16a | c5388342c19c5605f2113f327c1023ee74eb7144 | /03-Multidimensional-Lists/Exercise/07_bombs.py | e885932235d36fd249041f58b88425c2d2cabcc7 | [] | no_license | zhyordanova/Python-Advanced | 8b0cd3f31c12e726b7846d54c6ee7bfb602a07a9 | ae2a9416e89eae6c40ae965a3ad65af54b36e333 | refs/heads/main | 2023-05-04T03:17:46.883246 | 2021-05-24T22:49:31 | 2021-05-24T22:49:31 | 349,577,494 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | def is_valid(row, col, size):
return 0 <= row < size and 0 <= col < size
def explode(row, col, size, matrix):
bomb = matrix[row][col]
for r in range(row - 1, row + 2):
for c in range(col - 1, col + 2):
if is_valid(r, c, size) and matrix[r][c] > 0:
matrix[r][c] -= bomb
... | [
"zhivka.yordanova@mentormate.com"
] | zhivka.yordanova@mentormate.com |
4b89e9080072b2bfbc0253d4e18bb00206bf0592 | 320fd3b851241272e6d4a3ae2fce29dc4f28d343 | /backend/facerecognitionwo_18158/settings.py | c53588696a3933e82784abfa85a7cf06a649ece3 | [] | no_license | crowdbotics-apps/facerecognitionwo-18158 | c180ab923ba3cb0018106d9654ff15daef4a9f60 | f6a18def7c4b354754885c600e93bb7abac7b637 | refs/heads/master | 2022-11-08T19:32:04.083969 | 2020-06-17T03:08:56 | 2020-06-17T03:08:56 | 272,865,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,821 | py | """
Django settings for facerecognitionwo_18158 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
28e202096359fd0179a1f7606d56f27fc59698ba | a2930fe93a3078c444651974a02b426b637bb9ed | /thoipapy/feature_importance/mean_decrease_accuracy.py | 4cb31c2a5c27d4978e793186008bef68b972f1ca | [
"MIT"
] | permissive | bojigu/thoipapy | 5ee03e7a2fb8c62b9831f12136b33f933e2d1176 | cc571677bd7e25e73db07af9d5d3c2cc36682903 | refs/heads/develop | 2022-12-23T05:25:14.699988 | 2021-09-07T13:39:36 | 2021-09-07T13:39:36 | 128,191,009 | 2 | 0 | MIT | 2022-11-22T07:00:15 | 2018-04-05T10:26:48 | Python | UTF-8 | Python | false | false | 12,539 | py | import os
import sys
import time
from pathlib import Path
from typing import List
import numpy as np
import pandas as pd
from sklearn.model_selection import StratifiedKFold
import thoipapy.utils
from thoipapy import utils
from thoipapy.validation.auc import calc_PRAUC_ROCAUC_using_10F_validation
from thoipapy.ML_mode... | [
"mark.teese@tum.de"
] | mark.teese@tum.de |
6377537fb4a12e481b8bc1eccef538726e98b2d7 | 75d930e35e6ae1fd0ec7be6a4a0893ca3d3c7eb6 | /extra/tigertool/ecusb/pty_driver.py | 2aec6fecad883b16e5ed4d0495f190bc9f1c70b5 | [
"BSD-3-Clause"
] | permissive | mirrexagon/chrome-ec | aa8aa862c5680b657074c97203f1690a87482cc5 | bf8b2dd9996bc633cec2942ebcdd1118313af654 | refs/heads/master | 2022-11-15T03:58:23.258930 | 2020-06-22T03:42:22 | 2020-06-22T09:10:39 | 274,113,110 | 0 | 0 | BSD-3-Clause | 2020-06-22T10:59:13 | 2020-06-22T10:59:13 | null | UTF-8 | Python | false | false | 9,006 | py | # Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""ptyDriver class
This class takes a pty interface and can send commands and expect results
as regex. This is useful for automating console based interf... | [
"chrome-bot@chromium.org"
] | chrome-bot@chromium.org |
e02e07efc8781878d94ad37a562af666faad436d | 87140007e96872d3611f0778eb0eebe5799616d7 | /runs/seq-nobro-iter05000.cfg.py | a151e8050cd85bb2c0c524781a03097f9710d643 | [
"MIT"
] | permissive | janpawellek/broeval | 49499fa302abff916ffced201034d3b9394503cd | 57e31aa6e354d0bba88103b44910483e8d982d00 | refs/heads/master | 2021-01-11T12:19:13.619220 | 2016-12-20T16:23:27 | 2016-12-20T16:23:27 | 76,468,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py |
# Write results to this file
OUTFILE = 'runs/seq-nobro-iter05000.result.csv'
# Source computers for the requests
SOURCE = ['10.0.0.1']
# Should Bro be enabled on the source machines?
SOURCE_BRO = [False]
# Target machines for the requests (aka server)
TARGET = ['10.0.0.2']
# Should Bro be enabled on the target mac... | [
"pawellek@stud.uni-heidelberg.de"
] | pawellek@stud.uni-heidelberg.de |
b993cb6e90864558f76aefb296699a34f5fea66e | 85a0ee08b54b2c5e3154e3727b92c37915b4c1de | /Sample/Python_Future_Sample/實單交易/63.py | 62772c75e90765557034eb58bfeb589df05361f8 | [] | no_license | yaotony/sandbox-empty | 877da9b9ba0ec658bbdc8acc79a97267f96408b9 | 85f04e5db5d26a04fad9ae4ad6d3c86977a9f865 | refs/heads/master | 2022-05-20T17:14:51.348759 | 2022-05-04T08:06:56 | 2022-05-04T08:06:56 | 35,472,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # -*- coding: UTF-8 -*-
# 載入相關套件
import sys,indicator,datetime,haohaninfo
# 券商
Broker = 'Masterlink_Future'
# 定義資料類別
Table = 'match'
# 定義商品名稱
Prod = sys.argv[1]
# 取得當天日期
Date = datetime.datetime.now().strftime("%Y%m%d")
# K棒物件
KBar = indicator.KBar(Date,'volume',100)
# 計算成交量K棒
GO = haohaninfo.GOrder.GOQuote()
for i ... | [
"tony.exmail@gmail.com"
] | tony.exmail@gmail.com |
d9881b41072708753168c8ca9fc7b2c4cd8b81d1 | fd8a4f9cc859f5edf468c1a74f6a183a4c1db508 | /shoulder/transform/abstract_transform.py | 34606b3276cdaca2fb9da5ebf347ebbd4c9cce8d | [
"MIT"
] | permissive | ainfosec/shoulder | e84d8c2b0ac8e049a21dabc7d221062edcb305d6 | 8dfb059701910a1cbe57e14c676ac8930f71b7c4 | refs/heads/master | 2020-09-08T07:43:43.418527 | 2019-09-25T17:48:08 | 2019-09-25T17:48:08 | 221,065,767 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,742 | py | #
# Shoulder
# Copyright (C) 2018 Assured Information Security, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, c... | [
"jared.wright12@gmail.com"
] | jared.wright12@gmail.com |
a5fa36dd2cf1c11d2ed3fe5a0d8f6917c5cf1351 | 2ea61e98627dd6b170590b69ead79a828614dec0 | /youtrack_api/model/bundle_project_custom_field.py | 361bfae9cbe767daec942d97686369ee6b3d6c85 | [] | no_license | alpduez/youtrack_api | 55dc25465f027645525efe5296c5699f7d824f33 | 2450523d87e6bdbbd53ca4908042a701a1a867e6 | refs/heads/master | 2023-09-01T01:34:33.356354 | 2021-10-20T15:32:05 | 2021-10-20T15:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,593 | py | """
YouTrack REST API
YouTrack issue tracking and project management system # noqa: E501
The version of the OpenAPI document: 2021.3
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from youtrack_api.model_utils import ( # noqa: F401
ApiTypeErr... | [
"hank@sellerlabs.com"
] | hank@sellerlabs.com |
b52409a23c489ce692b34cdd25b4c4737f26213e | e7e34e2726790686a1f239e22487fe7c957e179f | /tests/components/juicenet/test_config_flow.py | abda068b622bf9d45d9575b147cd892f53c3e702 | [
"Apache-2.0"
] | permissive | AlexxIT/home-assistant | 68a17b49644c5d943b204dc75e1f11fe3b701161 | 8de7966104911bca6f855a1755a6d71a07afb9de | refs/heads/dev | 2022-03-22T14:37:18.774214 | 2021-10-09T16:10:43 | 2021-10-09T16:10:43 | 100,278,871 | 9 | 0 | Apache-2.0 | 2022-01-31T06:18:02 | 2017-08-14T14:50:46 | Python | UTF-8 | Python | false | false | 4,171 | py | """Test the JuiceNet config flow."""
from unittest.mock import MagicMock, patch
import aiohttp
from pyjuicenet import TokenError
from homeassistant import config_entries
from homeassistant.components.juicenet.const import DOMAIN
from homeassistant.const import CONF_ACCESS_TOKEN
def _mock_juicenet_return_value(get_d... | [
"noreply@github.com"
] | AlexxIT.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.