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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c21d74a662d5db8b34c6793c5b0def3026ab0cfe | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_MY_ORGS/Web-Dev-Collaborative/blog-research/ciriculumn/week.18-/W18D2_lectures/08-posts/app/routes.py | 91d6b5ace00c8f67a076bc546d9f4e510c7630de | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 809 | py | from flask import render_template, redirect
from app import app
from app.forms.login import LoginForm
@app.route('/')
def index():
return render_template('page.html', title='Welcome')
@app.route('/login', methods=['GET', 'POST'])
def login():
form = LoginForm()
if form.validate_on_submit():
retu... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
a0c82a506c91a3a7c0b678adac1283adedd35094 | 6bd047eb1951601a5a7bab564eb2abba92c6c004 | /prices/api/queries.py | 0fdac2905d72924ea823efd6ca273a290b653fd8 | [] | no_license | volgoweb/DDD_sandbox | 6ab2b43d3fcad8eb2f802bd485e5dbc05eb2e10d | 700c2848d5341ab267e69326bac2487657450d22 | refs/heads/master | 2021-01-01T15:46:13.244679 | 2017-07-11T06:18:36 | 2017-07-11T06:18:36 | 97,695,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from utils.queries import IQuery
class GetProductPricingForOneProduct(IQuery):
def __init__(self, product_id: int):
self.product_id = product_id
@classmethod
def get_query_type_name(cls):
return 'prices.GetProductPricingForOneProduct'
class GetProductPricingForManyProducts(IQuery):
... | [
"volgoweb@bk.ru"
] | volgoweb@bk.ru |
54ab05db85f18373b1cd489a5310e729a167c100 | 08e039046e2b3c526b5fd2169e02d5c5bbe253c5 | /0x04-python-more_data_structures/0-main.py | f37cdb42818fedc7a8af51018ae298fef65412fb | [] | no_license | VinneyJ/alx-higher_level_programming | 22a976a22583334aff1f0c4120fb81117905e35b | 0ea8719ec5f28c76faf06bb5e67c14abb71fa3d0 | refs/heads/main | 2023-07-31T15:44:30.390103 | 2021-10-01T21:27:31 | 2021-10-01T21:27:31 | 361,816,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | #!/usr/bin/python3
square_matrix_simple = __import__('0-square_matrix_simple').square_matrix_simple
matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]
new_matrix = square_matrix_simple(matrix)
print(new_matrix)
print(matrix)
| [
"vincentjayden49@gmail.com"
] | vincentjayden49@gmail.com |
bb3fb9eb21687447b680c05b829baec91643160f | b76ae361ab277923d0fed969b795074a1ecb400b | /project/RealDjango/venv/Scripts/django-admin.py | cfd7845dd7575e87f8a033bd3ad032b3f72ce470 | [] | no_license | RobotNo42/old_coed | 995df921e31d5a9b65f1609380235330edb546ad | 59f82e5d58965dd5c6340f4daf4ef43d1d311252 | refs/heads/master | 2021-07-18T00:07:33.450173 | 2020-06-16T13:51:11 | 2020-06-16T13:51:11 | 180,384,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | #!D:\python\project\RealDjango\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"chengge1124@gmail.com"
] | chengge1124@gmail.com |
eb439ef5321ace82cb57ceda8a14ba4f5978f5b8 | 52508ce70294ec29f84c9e551d8b92a7b402913d | /anyflow/flow.py | 647b6d25ed535d940110f411ddcc5ba175e061f2 | [
"MIT"
] | permissive | Cologler/anyflow-python | 0f18003a39cb645c24aa5549df4ee39173977fff | cde20b0c74faf18cb7dc503072d4c2f99d5681de | refs/heads/master | 2021-07-30T15:12:19.478682 | 2021-07-29T14:08:22 | 2021-07-29T14:08:22 | 241,824,800 | 0 | 0 | MIT | 2021-07-29T14:08:22 | 2020-02-20T07:53:25 | Python | UTF-8 | Python | false | false | 2,957 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com>
# ----------
#
# ----------
from typing import Callable, Any, List
from abc import ABC, abstractmethod
from .err import Abort
from .ctx import FlowContext
#Next = Callable[[], Any]
class MiddlewareInvoker:
__slots__ = ('_ctx', '... | [
"skyoflw@gmail.com"
] | skyoflw@gmail.com |
bec64a7169611c133f6effb658d194136f903149 | feff273063b4c89bde3aa190b4e49c83ab1e5855 | /memphis/view/layout.py | 6a21cc666494b2107e8bc16e66c706a54a3bb83b | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | mcdonc/memphis | 7d53b8f77f7bab7c20a258a9ab33d1cc663711a2 | daef09507eacb32b235faf070a0146ffb5cf035f | refs/heads/master | 2016-09-05T23:04:01.578991 | 2011-10-11T03:37:43 | 2011-10-11T03:37:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,147 | py | """ layout implementation """
import sys, logging
from zope import interface
from pyramid.interfaces import IRequest, IRouteRequest
from memphis import config
from memphis.view.base import View
from memphis.view.formatter import format
from memphis.view.interfaces import ILayout
from memphis.view.customize import Laye... | [
"fafhrd91@gmail.com"
] | fafhrd91@gmail.com |
d16ef364cf6106a88a1b28a9a96bdae89166f80c | 778a3e1e70b0b2782d2a35f8818bbe799e6c7396 | /Seventh_week_exersice/03Sum_prime_non_prime.py | def7d6757eba88c49c90e3f84af9077c2e5e6b72 | [] | no_license | skafev/Python_basics | 0088203207fe3960b26944e0940acaec40a8caaf | 8bfc1a8b0dad3bf829fffbd539cebe3688f75974 | refs/heads/main | 2023-06-10T11:25:27.468914 | 2021-07-01T15:28:12 | 2021-07-01T15:28:12 | 382,078,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | number = input()
not_prime = 0
prime = 0
while number != "stop":
number = int(number)
if number < 0:
print("Number is negative.")
elif number > 3:
if number % 2 == 0 or number % 3 == 0:
not_prime += number
else:
prime += number
else:
prime += num... | [
"s.kafev@gmail.com"
] | s.kafev@gmail.com |
2c8269a6d5c4ddb8c4b445466174f74aecf370f6 | 857b051f99e8a42f94dd5895c7ac735e37867e94 | /hakkimizda/urls.py | 56836439053617eeb3e0ba317c7a1333be1e19df | [
"MIT"
] | permissive | kopuskopecik/projem | a88e4970ef23a4917e590e1a0a19ac7c49c86a73 | 738b0eeb2bf407b4ef54197cce1ce26ea67279c8 | refs/heads/master | 2021-06-22T10:04:44.523681 | 2020-12-25T19:56:10 | 2020-12-25T19:56:10 | 172,302,265 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.urls import path
from django.conf.urls import url
from .views import *
app_name="hakkimizda"
urlpatterns = [
path('hakkimizda/', hakkimizda, name="hak"),
] | [
"kopuskopecik@gmail.com"
] | kopuskopecik@gmail.com |
1d6af3af9fa41162b76ba04790d68e5e149b3219 | 2ca07aecfa6ff25b0baae6dc9a707a284c2d1b6d | /trustzone_images/apps/bsp/build/scripts/genuses.py | 44dde7dfd37d5c023ae14fb6e8d49ccd9fafb72d | [] | no_license | zhilangtaosha/msm8996-wp-1-0_test_device | ef05af263ba7955263ff91eb81d45b2437bc492e | 6af9b44abbc4a367a9aaae26707079974c535f08 | refs/heads/master | 2023-03-19T02:42:09.581740 | 2021-02-21T01:20:19 | 2021-02-21T01:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,954 | py | #===============================================================================
#
# genuses
#
# GENERAL DESCRIPTION
# Generates USES_FLAGS imformation from DATA file generate from build/ms.
#
# Copyright (c) 2009-2010 by Qualcomm Technologies, Incorporated.
# All Rights Reserved.
# QUALCOMM Proprietary/GTDR
#
#---... | [
"lonelyjskj@gmail.com"
] | lonelyjskj@gmail.com |
c3973679874c6bcb06a9d97d54f6965242f7ef53 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_143/388.py | 2c19f330a95780da7bb74471727f3b492214bb28 | [] | 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 | 636 | py | import math
def solve(a, b, k):
count = 0
i = 0
while i < a:
j = 0
while j < b:
if (i & j) < k:
count += 1
j += 1
i += 1
return count
name = "B-small-attempt0"
fi = open(name + ".in", "r")
fout = open(name + ".out", "w")
numTestCases = int(fi.readline())
print "#TestCas... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f27cadf13a59eadb627295a3c642e84f8e57ccb1 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/cloud/hostrouteringressbytes15min.py | cc28259373b4b2613646e12c80ac99530e16d402 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,198 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
17480f6f7565ee7617480674a2fadf166e70810a | 1f8a47641cb1c987f70dd7cf502d49e07ded52af | /backend/hss/hss/wsgi.py | 1de8e14bb33a901652171821ff9561d31b1a8d19 | [] | no_license | do-park/shawcheckredemption | 0fda66e3c1958b1ea27258de2da51b6bb9ce92ef | 8267e4d4ce4e815600bb4c21f7df878c8807d645 | refs/heads/ft_front | 2023-01-19T16:58:44.680144 | 2020-11-26T08:02:21 | 2020-11-26T08:02:21 | 316,159,702 | 1 | 1 | null | 2020-11-26T08:02:22 | 2020-11-26T07:55:14 | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for hss project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [
"gjtjdtn201@naver.com"
] | gjtjdtn201@naver.com |
bdd0760e8844fd6ba461b3318c1347dc4022acd9 | b090cb9bc30ac595675d8aa253fde95aef2ce5ea | /trunk/test/NightlyRun/test405.py | 4234b88e576ef0f06697b7c02f12c1d1579361dc | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | eyhl/issm | 5ae1500715c258d7988e2ef344c5c1fd15be55f7 | 1013e74c28ed663ebb8c9d398d9be0964d002667 | refs/heads/master | 2022-01-05T14:31:23.235538 | 2019-01-15T13:13:08 | 2019-01-15T13:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | #Test Name: SquareSheetShelfStressMHOPenalties
import numpy as np
from model import *
from socket import gethostname
from triangle import *
from setmask import *
from parameterize import *
from setflowequation import *
from solve import *
md=triangle(model(),'../Exp/Square.exp',180000.)
md=setmask(md,'../Exp/SquareSh... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.com |
147eafbcdb47571b8ec157075995bcb513a53efa | f167dffa2f767a0419aa82bf434852069a8baeb8 | /lib/youtube_dl/extractor/kankan.py | a677ff44712794ef54f53a1afe9c55fbacad91e2 | [
"MIT"
] | permissive | firsttris/plugin.video.sendtokodi | d634490b55149adfdcb62c1af1eb77568b8da3f5 | 1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3 | refs/heads/master | 2023-08-18T10:10:39.544848 | 2023-08-15T17:06:44 | 2023-08-15T17:06:44 | 84,665,460 | 111 | 31 | MIT | 2022-11-11T08:05:21 | 2017-03-11T16:53:06 | Python | UTF-8 | Python | false | false | 1,738 | py | from __future__ import unicode_literals
import re
import hashlib
from .common import InfoExtractor
_md5 = lambda s: hashlib.md5(s.encode('utf-8')).hexdigest()
class KankanIE(InfoExtractor):
_VALID_URL = r'https?://(?:.*?\.)?kankan\.com/.+?/(?P<id>\d+)\.shtml'
_TEST = {
'url': 'http://yinyue.kankan... | [
"noreply@github.com"
] | firsttris.noreply@github.com |
93676b1ccd5b8f20a34473032ab5d4db03956a52 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5634947029139456_1/Python/AlonH/2014A1A.py | a02bf27c55c7c31dc651a2d0b8c8393d949d0274 | [] | 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 | 1,292 | py | def match(now,needed):
now.sort()
needed.sort()
for i in range(len(now)):
if now[i] != needed[i]:
return True
return False
def count(ar,l):
ret = [0]*l
for i in range(l):
for s in ar:
ret[i] += int(s[i])
return(ret)
def compare(n,o,l):
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
48d5dad900ecdf584f2ec639d5b62ce8f06d2c2c | 82074ba616918ede605dec64b038546a7b07bd7d | /empowerb/middleware.py | 85764001431cfbf3cedb9002fb6e1ccf8f38b859 | [] | no_license | chetankhopade/EmpowerRM | b7ab639eafdfa57c054a0cf9da15c3d4b90bbd66 | 8d968592f5e0d160c56f31a4870e79c30240b514 | refs/heads/main | 2023-07-05T03:20:13.820049 | 2021-08-26T11:56:28 | 2021-08-26T11:56:28 | 399,354,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | from _contextvars import ContextVar
from django.utils.deprecation import MiddlewareMixin
from empowerb.settings import DATABASES
db_ctx = ContextVar('var')
class WhichDatabaseIsTOUseMIddleware(MiddlewareMixin):
"""
Middleware to update the context var with the db alias
"""
@staticmethod
def... | [
"noreply@github.com"
] | chetankhopade.noreply@github.com |
628a26377a4ac11054ec002268c2916d3883eccf | 601e6891504cc9da063e3ef9993e7b5f142bbe35 | /examples/wifiStationsAndHosts.py | 8e68f22b85c8a2a65ee1968f5506555a2831560b | [] | no_license | caiqiqi/mininet-wifi | b8a13f83e4fbadea20865faecf6719abf8e68437 | 547cf3c01d85b9bfb38b3e9df3b5c52119b5b5e2 | refs/heads/master | 2021-01-20T16:44:34.270734 | 2016-05-16T12:55:56 | 2016-05-16T12:55:56 | 58,878,807 | 0 | 0 | null | 2016-05-15T19:01:01 | 2016-05-15T19:01:01 | null | UTF-8 | Python | false | false | 1,177 | py | #!/usr/bin/python
"""
This example shows how work with wireless and wired media
"""
from mininet.net import Mininet
from mininet.node import Controller, OVSKernelSwitch
from mininet.cli import CLI
from mininet.log import setLogLevel
from mininet.link import TCLink
def topology():
"Create a network."
net = M... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
4f9cdc759c20a19b123b187ed82e7d01eb37bd48 | 8827574a663cc9d18194eb355dce7ffb676e6d0b | /everest/transit.py | 8958b3c59d794095e0ea42a5548d12f5aa0ef602 | [
"MIT"
] | permissive | mirca/everest | 70a79432f6cd2b604a64fc4c97c7513bbe2a6406 | b96cc5cd1949b81ddc49fb74b90bf5a95c6fca14 | refs/heads/master | 2021-01-13T05:56:00.206244 | 2017-03-17T16:35:49 | 2017-03-17T16:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,317 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
:py:mod:`transit.py` - Transit models
-------------------------------------
These are routines used to generate a transit model, primarily for
transit injection/recovery tests. These are wrappers around
:py:func:`pysyzygy.Transit`, with the added feature that
the transi... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
14679579a6dbc0f503f5b3d8562401165ce94756 | 91deb97afda334c5366e560325995cf6b5407bee | /src/command_modules/azure-cli-billing/azure/cli/command_modules/billing/custom.py | 21965f255ffa9f5644f22068a40961f8ca75b5a3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | viananth/azure-cli | ab117c1b0b676026cbb57567544cd70630efe830 | 4d23492ed03e946cfc11bae23b29acb971fb137d | refs/heads/master | 2021-05-23T05:13:51.414113 | 2017-08-17T16:58:10 | 2017-08-17T16:58:10 | 95,239,804 | 0 | 0 | NOASSERTION | 2019-03-19T18:45:16 | 2017-06-23T17:01:34 | 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.
# --------------------------------------------------------------------... | [
"troy.dai@outlook.com"
] | troy.dai@outlook.com |
1390b2d3b283c49021827414a5f0ca6601dd27e8 | 1cfafec5935522b386d40ab7bb7246f39da89fcc | /temp/20201221_naver_ai_handsonsummit.py | ff8784adba43b2a7a15adeb0447977ce5373c919 | [] | no_license | madfalc0n/my_coding_labs | 0d9e13e2d1579607d5481c6a78baa70a2c7c374a | b38fd988a5e3ebb8d8b66bf5a0b15eb3eaa20578 | refs/heads/master | 2021-07-03T17:33:16.801207 | 2021-06-18T06:24:09 | 2021-06-18T06:24:09 | 241,097,976 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import sys
import requests
client_id = "CID"
client_secret = "CSECRET"
lang = "Kor" # 언어 코드 ( Kor, Jpn, Eng, Chn )
url = "https://naveropenapi.apigw.ntruss.com/recog/v1/stt?lang=" + lang
data = open('filepath', 'rb')
headers = {
"X-NCP-APIGW-API-KEY-ID": client_id,
"X-NCP-APIGW-API-KEY": client_secret,
"Con... | [
"chadool116@naver.com"
] | chadool116@naver.com |
67558e1d4c168ae6ffe706cae7b73d5b96991949 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_write_1/client-vpn-client-certificate-revocation-list_export.py | 590e1a0b6582eaa6d0a43363fd3ba344c40e4825 | [] | 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 | 1,091 | 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_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/export-client-vpn-client-certificate-revocat... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
4c6a4945f123306bcdf31d8b8f17939c2b32cc2f | 094304d0aa7cb6949c0f471d1c432dc7db5a4c2a | /VIRSCAN/vir_scan_db.py | 1358ecd8d77cb2b4438e1bd9cfcaacc0392ee70c | [] | no_license | smallmeet/fangzhen | 7f8e232b87841b88268d14133479846e48e33ba1 | d0cbf09eba98c835a4ea013889a8cf0b34263d0d | refs/heads/master | 2020-12-24T22:28:54.972613 | 2016-08-12T09:24:15 | 2016-08-12T09:24:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | from base_db import MysqlClient
from get_conf import GetConf
class VirScanMysqlClient:
def __init__(self, conf):
self.mysql_client = MysqlClient(conf)
def insert_vir_scan(self, args):
self.mysql_client.insert('PRO_VIR_SCAN_INSERT', args)
def insert_apk_black_list(self, args):
sel... | [
"luojianfeng2011@163.com"
] | luojianfeng2011@163.com |
e80086c7681aba8a3e9db60de523efc0dda13b05 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02886/s458066707.py | c314b1e82e4800300ac6e420a37e53e4fca14534 | [] | 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 | 98 | py | n=int(input())
d=list(map(int,input().split()))
d2=[m**2 for m in d]
print((sum(d)**2-sum(d2))//2) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
022be4db452f8ecc1c423f41fa77963d1855a30e | 9e21ee282d0a567b42a96f938f61d655eb2d5940 | /chat_room/tests/test_base.py | 1262db10f3b75ee65a9f2fb0e64f06f887ac4d2a | [] | no_license | smolynets/chat-interface | e0ac815639dd993f029f331a545c5c5932785569 | 3b66970c241eb1660b60a612aceffde36223eff4 | refs/heads/master | 2021-06-12T02:19:47.749561 | 2019-07-13T12:42:21 | 2019-07-13T12:42:21 | 191,516,912 | 0 | 0 | null | 2021-06-10T18:21:22 | 2019-06-12T07:06:21 | Python | UTF-8 | Python | false | false | 1,496 | py | """
This test is inherited by tests of other apps.
"""
from django.urls import reverse
from rest_framework.test import APIClient, APITestCase
from rest_framework_simplejwt.settings import api_settings
from ..models import User
class APIRestAuthJWTClient(APIClient):
"""
APIRestAuthJWTClient class.
Login... | [
"smolynets@gmail.com"
] | smolynets@gmail.com |
1547ae20bcab955d0bc53826f0c25ebaf5c0ca77 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2645/60768/316508.py | 65bd1d2918995f2d545307313de4c81f073d0279 | [] | 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 | 481 | py | piles = eval(input())
h = int(input())
max_k = max(piles)
min_k = int(sum(piles) / h)
re = max_k
for k in range(min_k, max_k + 1):
time = 0
bananas = [i for i in piles]
while len(bananas) > 0:
for i in range(len(bananas)):
bananas[i] = bananas[i] - k
time += 1
if ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3c78d94f96313789cdcab22a4e37af4d6683944f | dcda5ba16474dd8ff650e04e7f4a9bf700f6a9ff | /manage.py | e4582d9147c1e546b5dee4a9c82e5fcceb52ac75 | [] | no_license | 007vict/shopbyexample | 2084d6e53faafb5c7e856cc8b3a5ff43bc3a82e2 | bc7dcfe5818499731c3cbf956c9c0b95cf3791da | refs/heads/master | 2022-12-21T13:05:08.425653 | 2019-04-10T10:30:41 | 2019-04-10T10:30:41 | 177,291,341 | 0 | 0 | null | 2022-12-08T04:58:00 | 2019-03-23T13:18:59 | JavaScript | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myshopbyexample.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djan... | [
"super_vg@bk.ru"
] | super_vg@bk.ru |
8a6f357264b2dbc8114efa7cb34e8a02b9be2820 | 63b814265ab49ebc2ed8e62577757991119be83b | /data-quality/kalman-filt.py | d10a0e87d25b724b1f8289d92c13e7a3168ac9bd | [] | no_license | wisecg/mjd-analysis | 7de4e67c34c19215984f528f31f71a8e584e1e91 | ca4f00a767f2dfe6d460b44c700e2b59fe0bb296 | refs/heads/master | 2020-12-07T21:28:34.376478 | 2017-08-28T15:20:17 | 2017-08-28T15:20:17 | 65,919,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | """
The idea is to take plots like "gmax" and "gbase" in data-quality.cc
and apply a Kalman filter to them, to look for "extrema"
http://scipy-cookbook.readthedocs.io/items/KalmanFiltering.html
Intro to Kalman filters:
http://www.cs.unc.edu/~welch/media/pdf/kalman_intro.pdf
Ben says:
everything is “basically linear... | [
"wisecg.neontetra@gmail.com"
] | wisecg.neontetra@gmail.com |
5509f28877444ba0ac97b513a2106dbc9ddd0995 | ea0c0b8d67a42086f840149b3dbe1c0e4f58e56f | /members_area/migrations/0005_auto_20200129_2122.py | 12832e8dc63b3301b343c645b65d640d95c3d93b | [
"MIT"
] | permissive | AzeezBello/raodoh | 78b27e0886f8882144a4def160d9c3f53bcc6af9 | 296bd44069bd750557bf49995374601f5052d695 | refs/heads/master | 2022-05-03T05:07:21.632642 | 2020-02-26T10:16:08 | 2020-02-26T10:16:08 | 235,878,080 | 0 | 0 | MIT | 2022-04-22T23:01:27 | 2020-01-23T20:15:39 | JavaScript | UTF-8 | Python | false | false | 481 | py | # Generated by Django 2.2.9 on 2020-01-29 20:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('members_area', '0004_auto_20200128_2330'),
]
operations = [
migrations.AlterField(
model_name='... | [
"azeez@scholarx.co"
] | azeez@scholarx.co |
656bb960ef1d2fd531df0a667c4d97135b95bcb1 | dd5ee6d1e88527cd22f1b64443320ba8ef751b59 | /rlcard3/envs/mocsar.py | 2b3edd2b9df42da117998cd3dd3b41bf88e15885 | [
"MIT"
] | permissive | sorata2894/rlcard3 | 42a2587e3ab00f3a33c684fb76efbc334a835359 | e9bbd36b789e670f96622a3a2ba8327f0d897561 | refs/heads/master | 2022-11-05T00:08:10.809055 | 2020-06-11T03:28:41 | 2020-06-11T03:28:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | """
Mocsár Environment
File name: envs/gmocsar.py
Author: József Varga
Date created: 3/27/2020
"""
from rlcard3 import models
from rlcard3.envs.env import Env
from rlcard3.games.mocsar.game import MocsarGame as Game
from rlcard3.games.mocsar.utils import action_to_string, \
string_to_action, payof... | [
"31209755+cogitoergoread@users.noreply.github.com"
] | 31209755+cogitoergoread@users.noreply.github.com |
afa233f76cb5afeb5878c1f8371c6ee8b5e88667 | 5ed795f324b1f94ded479a22f60580d9f41a114b | /dashboard/migrations/0007_auto_20190212_1753.py | 231eeaf5940eeed0afb26eda070c777986ca996d | [] | no_license | ashutoshdev/Django-Main-news-wesbite | 907f52a131e136072a585c903c906adb19457765 | 9a934255465d73ab12e16031fb99ad5847b65b55 | refs/heads/master | 2023-08-23T20:27:40.286701 | 2021-10-21T02:03:49 | 2021-10-21T02:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | # Generated by Django 2.0 on 2019-02-12 12:23
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0006_rfcompany'),
]
operations = [
migrations.CreateModel(
name='Dashboard... | [
"looklikeme05@gmail.com"
] | looklikeme05@gmail.com |
76faf3fd6ac8be77e3a1174cf85ff9d069e4638a | 96c970ebacd9ade1493f4d01537005788b43a49b | /pychron/experiment/tasks/experiment_actions.py | 1449ab2015d4a6e355f16e188813b9cb6753b314 | [
"Apache-2.0"
] | permissive | OSUPychron/pychron | d2da9051b68024200d0009de634da810ccef2a0d | fe0ba9daff9548fa8bebab26db66a1cefff7c1d6 | refs/heads/master | 2021-01-14T12:47:26.389887 | 2015-12-18T22:27:02 | 2015-12-18T22:27:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,537 | py | # ===============================================================================
# Copyright 2011 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
632bcfd9791ccbdc1e14fd7487c231c3e8ccd408 | 29b6a856a81a47ebab7bfdba7fe8a7b845123c9e | /dingtalk/python/alibabacloud_dingtalk/conv_file_1_0/models.py | 4327631ff59f6b9e1c0b1d34a2c61fedcfc59b67 | [
"Apache-2.0"
] | permissive | aliyun/dingtalk-sdk | f2362b6963c4dbacd82a83eeebc223c21f143beb | 586874df48466d968adf0441b3086a2841892935 | refs/heads/master | 2023-08-31T08:21:14.042410 | 2023-08-30T08:18:22 | 2023-08-30T08:18:22 | 290,671,707 | 22 | 9 | null | 2021-08-12T09:55:44 | 2020-08-27T04:05:39 | PHP | UTF-8 | Python | false | false | 30,852 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from Tea.model import TeaModel
from typing import Dict
class GetSpaceHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.comm... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
369e5de6978cd855314fe286b88ec95c0f367146 | 19bdbe1c4aa00ba9799764681f16e09f65d6ea2b | /np/lib/smtp.py | 0065154141cf437ba3588749e4b816c5fc03783f | [] | no_license | invisibleroads/networkplanner | b4a3c7b3c0c169c3cd6610a6fb77125434dcb1c4 | 7ad8c0f2b4078f6cca681205e1671d060a937c18 | refs/heads/master | 2023-08-11T17:33:44.458438 | 2012-05-31T13:41:04 | 2012-05-31T13:41:04 | 961,674 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | 'Routines for sending messages'
# Import system modules
import smtplib
import email.message
import email.utils
import socket
def sendMessage(fromByValue, toByValue, subject, body, headerByName=None):
'Send a message using SMTP'
# Prepare
message = email.message.Message()
message.add_header('from', ema... | [
"support@invisibleroads.com"
] | support@invisibleroads.com |
3fd599f2dd2b120dfc1fa457dd87c9056ade3f26 | 00a9295409b78a53ce790f7ab44931939f42c0e0 | /FPGA/apio/iCEBreaker/FIR_Filter/sympy/venv/lib/python3.8/site-packages/sympy/multipledispatch/utils.py | 11cea683ed08448b11c2efecaea1b7e234934cc4 | [
"Apache-2.0"
] | permissive | klei22/Tech-OnBoarding-Class | c21f0762d2d640d5e9cb124659cded5c865b32d4 | 960e962322c37be9117e0523641f8b582a2beceb | refs/heads/master | 2022-11-10T13:17:39.128342 | 2022-10-25T08:59:48 | 2022-10-25T08:59:48 | 172,292,871 | 2 | 3 | Apache-2.0 | 2019-05-19T00:26:32 | 2019-02-24T03:50:35 | C | UTF-8 | Python | false | false | 3,042 | py | def expand_tuples(L):
"""
>>> from sympy.multipledispatch.utils import expand_tuples
>>> expand_tuples([1, (2, 3)])
[(1, 2), (1, 3)]
>>> expand_tuples([1, 2])
[(1, 2)]
"""
if not L:
return [()]
elif not isinstance(L[0], tuple):
rest = expand_tuples(L[1:])
ret... | [
"kaunalei@gmail.com"
] | kaunalei@gmail.com |
e7286393de85a9ea1daeff4f6a590f0d35dd069b | f50f1aa1f8f139d546db3230a1cb1f53043fd9e6 | /hardware/mobile/ifuse/actions.py | 4253ce5b51f00a7f0adaacfac0ba3a76d71890d3 | [] | no_license | pars-linux/corporate2 | 7887961d1552d39bc3b0bef4a60fd3413d9b82bb | 14d1eacfc824fb8d0bff8173e7ac06b36b88d10d | refs/heads/master | 2020-05-26T15:02:12.005654 | 2017-02-27T03:07:14 | 2017-02-27T03:07:14 | 82,476,084 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2009-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
de... | [
"ozancaglayan@users.noreply.github.com"
] | ozancaglayan@users.noreply.github.com |
2da48d4fe2ab88ad57d4bc2ce4b47d37ade84327 | 00c14f5816c3ef6a9ff5652af89c27c12bcf023c | /example/jspm_0_17/jspm_0_17/urls.py | 9ef86b2113613f0783470d90f157872b78c2522d | [
"MIT",
"ISC"
] | permissive | ilyashupta/django-systemjs | 148fd7de73aeb2cf562a07d3bb392436f3a78010 | f4d26794c06449d4d3ae2a6f7ab0bc550b35b0c7 | refs/heads/master | 2023-04-27T14:41:45.265046 | 2016-09-19T09:15:35 | 2016-09-19T09:15:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """jspm_0_17 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
Class-b... | [
"sergeimaertens@gmail.com"
] | sergeimaertens@gmail.com |
936fe33888460fe111915ebee493e4b636140d10 | b42957e496e5c9447b858d7382caea83ce9ea431 | /packtml/__init__.py | d3f0e325a23686c69f7eec073c983de5f0695885 | [
"MIT"
] | permissive | PacktPublishing/Supervised-Machine-Learning-with-Python | 153b9f5248fd4ca79896a277c7f703cf5899ac07 | 00d6ce2451547a73e6358d85937f8cbf2af762a4 | refs/heads/master | 2023-02-02T21:20:35.889344 | 2023-01-30T08:34:13 | 2023-01-30T08:34:13 | 187,639,872 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*-
import os
# global namespace:
from packtml import clustering
from packtml import decision_tree
from packtml import metrics
from packtml import neural_net
from packtml import recommendation
from packtml import regression
from packtml import utils
# set the version
packtml_location = os.path.ab... | [
"packt.suwarnar@gmail.com"
] | packt.suwarnar@gmail.com |
286d4837a392a3730412cc78c44d91c56603e5b6 | dd8227454b817ccf2ceb24b3dfd4260d4ded7a72 | /scripts/item/consume_2434546.py | fd4214fd1a7ed1410ab093ba89cb8ce96fcf7213 | [
"MIT"
] | permissive | Snewmy/swordie | 0dd3c17808b064c2cb2bd9576b51daf01ae5d686 | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | refs/heads/master | 2023-06-30T21:14:05.225798 | 2021-07-06T14:32:39 | 2021-07-06T14:32:39 | 389,497,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # Scribbler Damage Skin
success = sm.addDamageSkin(2434546)
if success:
sm.chat("The Scribbler Damage Skin has been added to your account's damage skin collection.")
| [
"vcalheirosdoc@gmail.com"
] | vcalheirosdoc@gmail.com |
880c458d3f3529d6d643d216ff4c6061674fcd20 | 18aee5d93a63eab684fe69e3aa0abd1372dd5d08 | /test/legacy_test/test_jit_save_load.py | 7f58638e7ac7ad178372817cd669397568a0e4c8 | [
"Apache-2.0"
] | permissive | Shixiaowei02/Paddle | 8d049f4f29e281de2fb1ffcd143997c88078eadb | 3d4d995f26c48f7792b325806ec3d110fc59f6fc | refs/heads/develop | 2023-06-26T06:25:48.074273 | 2023-06-14T06:40:21 | 2023-06-14T06:40:21 | 174,320,213 | 2 | 1 | Apache-2.0 | 2022-12-28T05:14:30 | 2019-03-07T10:09:34 | C++ | UTF-8 | Python | false | false | 57,829 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://... | [
"noreply@github.com"
] | Shixiaowei02.noreply@github.com |
0fdb86c8d95ec238f669e4cd793c8b90cee446f0 | b48a1d5733d10c39a112698c2286ae1afb02f36a | /announce/management/commands/migrate_mailchimp_users.py | 7cce1d4f3b7e6e48acb8b65b386b435c2095820c | [
"MIT"
] | permissive | p2pu/learning-circles | ecb317aaa8620cb076ce45c42d055e89e6586516 | ae8de4df48aae0844fb50dca5c62c099b3b2b0a3 | refs/heads/master | 2023-08-19T19:18:09.198077 | 2023-08-10T09:23:58 | 2023-08-10T09:23:58 | 32,735,768 | 11 | 10 | MIT | 2023-08-10T09:30:04 | 2015-03-23T14:05:41 | Python | UTF-8 | Python | false | false | 1,191 | py | from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from announce.mailchimp import archive_members, list_members, batch_subscribe
from studygroups.models import Profile
import requests
import logging
logger = logging.getLogger(__name__)
class Command(BaseCo... | [
"dirkcuys@gmail.com"
] | dirkcuys@gmail.com |
d1660437d7cc1d437db44a397725e49216966700 | eefc47dcb8377239c34134024be8783a9e3b5f44 | /bimdata_api_client/models/raw_system.py | 3d6644047f00fe509b01b9df9dfbe5ddcdf9b50d | [] | no_license | Mike-FR/python-api-client | 4fea5afcd942ebdf6dca174e2d38afaeed71eee4 | 54b2b090cbbf127cf8ac0f17c3492e6d0e1c7f29 | refs/heads/master | 2023-06-29T13:07:30.438434 | 2021-07-28T09:08:54 | 2021-07-28T09:08:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,617 | py | # coding: utf-8
"""
BIMData API
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
The version of the OpenAPI document: v1
Contact: suppor... | [
"infra@bimdata.io"
] | infra@bimdata.io |
5afae695f4d0d8c66f3a8d64f55c514f3919824c | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /airflow/providers/microsoft/azure/operators/data_factory.py | 488ccbced070222c2fa5c3d5046514b7ee751015 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 9,684 | 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... | [
"noreply@github.com"
] | ishiis.noreply@github.com |
92636880ee00dcdaf6082a42f6967c44fa8b6054 | 9bcd8a8de7e34ab52f44070c171e2e12e52e9775 | /setup.py | c7ab57d1d127894b45df406d8c76bdb98355363e | [
"BSD-2-Clause"
] | permissive | miracle2k/localtodo | c419bf5cd8aa5fd6092420577c6155a3d418cd1d | 8598a073d9fe466832b6a952a0b1dc20603d0e7d | refs/heads/master | 2022-04-30T13:36:50.211348 | 2022-03-21T18:45:16 | 2022-03-21T18:45:16 | 5,198,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
setup(
name='localtodo',
url='https://github.com/miracle2k/localtodo',
version='1.0',
license='BSD',
author=u'Michael Elsdörfer',
author_email='michael@elsdoerfer.com',
description=
'.gitignore local todo files, bu... | [
"michael@elsdoerfer.com"
] | michael@elsdoerfer.com |
805535843094f8434fa9cfb5c22c4c9c99ef2185 | 2c2d2405929b026ac4de77d34538cec623dee5eb | /codes/SRN/models/modules/loss.py | 844e09818490d48d1b9b375b12a65032b32c4075 | [] | no_license | greitzmann/DASR | 9d709cf031561897722f1553842af05fca36855e | f85b22ada54344fd0d94ba31ae596427cb9b5c5b | refs/heads/master | 2023-01-01T12:26:11.563140 | 2020-10-15T16:03:26 | 2020-10-15T16:03:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,636 | py | import random
import torch
import torch.nn as nn
import sys
from PerceptualSimilarity.models import util as ps
# Define GAN loss: [vanilla | lsgan | wgan-gp]
class GANLoss(nn.Module):
def __init__(self, gan_type, real_label_val=1.0, fake_label_val=0.0):
super(GANLoss, self).__init__()
self.gan_type... | [
"516488199@qq.com"
] | 516488199@qq.com |
ce1b27305c6bd0b8a926dbe2218abbb8f297e24b | 5cde21d3eb1667152d4aa7fe489f15339db89551 | /maple/community/process/__init__.py | 1e2c945b04a925467c68181e7a269746fc3c10b2 | [] | no_license | SunmoonSan/PythonDaily | cce0b82c9bfe8e57dc26d8bcb722e165302cf4b0 | c0a95c2ece1b3cb6ef00d1b096fef14892de1ce6 | refs/heads/master | 2022-04-02T13:08:41.692131 | 2020-01-19T12:48:38 | 2020-01-19T12:48:38 | 115,420,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @desc : Created by San on 2019/12/13 17:23
| [
"18814184179@163.com"
] | 18814184179@163.com |
8838064973dcf235bd1744d1dadead87051a80ea | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_widest.py | 8492170c13955906272fe657ccf1e56cec9420c8 | [
"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 | 236 | py |
from xai.brain.wordbase.adjectives._wide import _WIDE
#calss header
class _WIDEST(_WIDE, ):
def __init__(self,):
_WIDE.__init__(self)
self.name = "WIDEST"
self.specie = 'adjectives'
self.basic = "wide"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0ee0fecb3d4df02cb0dc4970912acd258cfee73d | 549f00e84cf77f08b2d72b3a298174143e23222e | /pytest_echo.py | 025e4f09603e8814d066cc041fb8926ac1650558 | [
"MIT"
] | permissive | hugovk/pytest-echo | 9a94c6a246ae1803dd6b391f56c35a7d0472f209 | 939793448e7d7e80a356aafc4dbb58bbedbe7e2c | refs/heads/master | 2020-08-10T05:26:13.397571 | 2018-04-22T17:12:07 | 2018-04-22T17:12:07 | 214,268,306 | 0 | 0 | MIT | 2019-10-10T19:27:28 | 2019-10-10T19:27:28 | null | UTF-8 | Python | false | false | 5,239 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import fnmatch
import os
from pprint import pformat
import pkg_resources
from pkg_resources import DistributionNotFound
__version__ = '1.6.0'
def get_installed_distributions():
"""
Return a list of installed Distribution objects.
"""
ret... | [
"s.apostolico@gmail.com"
] | s.apostolico@gmail.com |
9c68f21e289ac893f938e83bb2be5f054a2a7561 | 2f6c3e78de825b14cc6d471ba231724d819b7436 | /tasks/ogle.py | 2c1ff53316fd09c5f8108a519f3f81fdfee981f0 | [
"MIT"
] | permissive | astrocatalogs/supernovae | 3f685d447b56c741081acffc6de0c9818149bb47 | 9585d2ae053f15fa91ab5900b5ae962c6a508037 | refs/heads/master | 2023-03-12T12:19:01.300505 | 2023-03-10T16:45:53 | 2023-03-10T16:45:53 | 62,802,442 | 42 | 18 | MIT | 2023-03-14T20:39:37 | 2016-07-07T11:42:13 | Python | UTF-8 | Python | false | false | 6,846 | py | """Import tasks for OGLE.
"""
import os
import re
from astrocats.catalog.utils import is_number, jd_to_mjd, pbar, uniq_cdl
from bs4 import BeautifulSoup, NavigableString, Tag
from decimal import Decimal
from ..supernova import SUPERNOVA
def do_ogle(catalog):
task_str = catalog.get_current_task_str()
basena... | [
"guillochon@gmail.com"
] | guillochon@gmail.com |
ed5aaf4d9c069dfae5c52ce541ca6227e507404e | 358aaf68f3c60ebbbd86b3bc66d4e6c098bcb39e | /fonts/tsvga_et4000_8x16.py | ec50d5db6c710d173aebde5e57c209dc19065ccd | [
"MIT"
] | permissive | ccccmagicboy/st7735_mpy | d2de0046abd81978d5176dace45a40758377af82 | b15f1bde69fbe6e0eb4931c57e71c136d8e7f024 | refs/heads/master | 2022-08-28T23:18:04.353733 | 2020-05-28T04:19:21 | 2020-05-28T04:19:21 | 254,869,035 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,759 | py | """converted from ..\fonts\TSVGA_ET4000_8x16.bin """
WIDTH = 8
HEIGHT = 16
FIRST = 0x20
LAST = 0x7f
_FONT =\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x18\x3c\x3c\x3c\x18\x18\x18\x00\x18\x18\x00\x00\x00\x00'\
b'\x00\x66\x66\x66\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x... | [
"cuiwei_cv@163.com"
] | cuiwei_cv@163.com |
f0d990d45a27fde720efb4dff618a7fd5ef391b2 | 8600ea155f279e5a8dfe5a1926038511f6b6a7ea | /sale_crm/wizard/__init__.py | 7c43908361fc6be916f06247bd16776a8e4c1776 | [] | no_license | MarkNorgate/addons-EAD | c2fff89ab16fce3ba19fbe433ee5863705a6f4e5 | 840f28642b5d328e4b86839c413e5164622295a5 | refs/heads/master | 2020-04-23T22:11:00.164438 | 2015-07-22T12:24:53 | 2015-07-22T12:24:53 | 39,501,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
#... | [
"mark.norgate@affinity-digital.com"
] | mark.norgate@affinity-digital.com |
a468ccdf43c987d187ed161205454ce4aef48536 | 7aa6a5e94c9dea6686a55f316b78a91e8e301ad0 | /31-nato-dictionary/codewars_unittest/__init__.py | 67596a1dec6777ad40ea468b610619eb0038ff53 | [] | no_license | marinasupernova/codewars | 3ede0d61693462551112bee1019c34396d91b2d9 | fcea73a6cf564159a7fc776edc47cf57fab121df | refs/heads/main | 2023-04-26T07:17:56.149954 | 2021-05-31T06:01:13 | 2021-05-31T06:01:13 | 345,687,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | from .test_runner import CodewarsTestRunner
| [
"marina.de.suvorova@gmail.com"
] | marina.de.suvorova@gmail.com |
54e305cc17a0c2232390a83ffbdeb8ed103b393e | 219d7cf7cf00b778ff1a5709406c144fcf2132f3 | /First Steps in Coding - Lab/07. Projects Creation.py | 7ca4becdbaa4bc97c0ff32e779c16f999679df79 | [] | no_license | SilviaKoynova/Softuni-Programming-Basics-Python | e8e175419383815c65c4e110fdb2b752d940e887 | 0dfef0850f2cb8471dfee1af89f137be4e887cb8 | refs/heads/main | 2023-07-13T00:35:09.389302 | 2021-08-27T07:43:45 | 2021-08-27T07:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | name = input()
projects = int(input())
need_hours = projects * 3
print(f"The architect {name} will need {need_hours} hours to complete {projects} project/s.")
| [
"noreply@github.com"
] | SilviaKoynova.noreply@github.com |
736887a4862a68ddb38a06f891def851858936db | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/twisted/test/test_ftp_options.py | ef567bbb49bfce24ee4cb271b1a59b1a8730dd7a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,765 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.tap.ftp}.
"""
from twisted.trial.unittest import TestCase
from twisted.cred import credentials, error
from twisted.tap.ftp import Options
from twisted.python import versions
from twisted.python.filepath import... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
9562bc0b7e2dcc38f7a84b31462b6d5fd5598619 | 3c898b1aec7009110c63504d5a56e31914625d1b | /acrylamid/filters/rstx_youtube.py | 1866872d0d44360221e12addf431c60a545739b3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | MagicSword/acrylamid | e294b151ed6305f37fc5a5fdd4f1f0fb999a22f7 | 6f34bc5fb2175af1103aec7a910ef48a6842de03 | refs/heads/master | 2021-01-16T21:30:58.564719 | 2012-06-22T16:00:50 | 2012-06-22T16:45:38 | 4,817,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | # -*- encoding: utf-8 -*-
#
# Copyright 2012 posativ <info@posativ.org>. All rights reserved.
# License: BSD Style, 2 clauses. see acrylamid/__init__.py
from docutils import nodes
from docutils.parsers.rst import Directive, directives
match = ['youtube', 'yt']
def align(argument):
return directives.choice(argum... | [
"info@posativ.org"
] | info@posativ.org |
b9cea96bd1fe04ff6d961295ea869a78c3e571e4 | dfab6798ece135946aebb08f93f162c37dd51791 | /core/luban/db/models.py | e30723a4165928648d1c38b81f47e476985bd1ca | [] | no_license | yxqd/luban | 405f5f7dcf09015d214079fe7e23d644332be069 | 00f699d15c572c8bf160516d582fa37f84ac2023 | refs/heads/master | 2020-03-20T23:08:45.153471 | 2012-05-18T14:52:43 | 2012-05-18T14:52:43 | 137,831,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2011 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
3e488c1e6d8440ad53c140620d92ef2e370ce8d9 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/crnn_seq2seq_ocr/export.py | 5e3a5b228456dd05aac02549e97f25cb124b1625 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 2,428 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
38eaa72b941d96798a70a6dda2b4584e8d01c6e4 | 031dbb2a3ea47a0483db310db9f98796cc83c500 | /787_Cheapest Flights Within K Stops.py | 6023db6bc0143b13eabbfbbe62dfaa8852018733 | [] | no_license | Shwan-Yu/Data_Structures_and_Algorithms | 429fb127983e32931f2168f44ef1484c1cc4c87f | 9126c2089e41d4d7fd3a204115eba2b5074076ad | refs/heads/master | 2020-03-27T11:46:59.947303 | 2019-08-23T15:15:21 | 2019-08-23T15:15:21 | 146,507,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | class Solution(object):
def findCheapestPrice(self, n, flights, src, dst, K):
"""
:type n: int
:type flights: List[List[int]]
:type src: int
:type dst: int
:type K: int
:rtype: int
"""
if not flights: return 0
dp = [float("inf")] * n
... | [
"noreply@github.com"
] | Shwan-Yu.noreply@github.com |
17f42d961d07ae670ad5a9895a53fe22b9e5e27b | 3def27e101ca346af6b30247769719f5cd5a27c0 | /indiaos/config/docs.py | 95939bb230467499359e5175e7a089a84d88ecaa | [
"MIT"
] | permissive | anto-christo/indiaos | 9fb94527092570981288b42a05001cf33b61b522 | 4b029cf86e49dcabad852312293e6fa5116d4155 | refs/heads/master | 2020-09-13T19:50:15.187112 | 2019-11-20T08:30:13 | 2019-11-20T08:30:13 | 222,887,034 | 1 | 0 | NOASSERTION | 2019-11-20T08:24:27 | 2019-11-20T08:24:26 | null | UTF-8 | Python | false | false | 313 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/indiaos"
# docs_base_url = "https://[org_name].github.io/indiaos"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html = "IndiaOS"
| [
"scm.mymail@gmail.com"
] | scm.mymail@gmail.com |
bfcf8014c00faabd8828474c77a4d96497ba9a38 | da54cb56e69ca730156156ca70a720cfbd7723ea | /others/coffee_plackett/mindsdb_acc.py | 78dfe064c969ce8ad89c969d29d4efe3ffbc3f23 | [
"MIT"
] | permissive | setohe0909/mindsdb-examples | b4f7908aa0c96fc0ea0721931f95bc4960bc2867 | 04fc9b4ad9bb8e960a996e1c4eab1e6054bca8ff | refs/heads/master | 2022-11-27T00:21:16.114913 | 2020-08-06T15:33:17 | 2020-08-06T15:33:17 | 296,442,864 | 1 | 0 | MIT | 2020-09-17T21:08:52 | 2020-09-17T21:08:51 | null | UTF-8 | Python | false | false | 237 | py | from mindsdb_native import Predictor
mdb = Predictor(name='coffee_predictor')
mdb.learn(from_data='data.tsv', to_predict=['Coffe_Malt', 'Chocolat', 'Gold', 'Medium_Barley', 'Dark_Barley', 'Dandelion', 'Beets', 'Chicory_Roots', 'Figs'])
| [
"george@cerebralab.com"
] | george@cerebralab.com |
484d7007aa18126e562a439f5ddb39f19a4e0ea8 | 908655251066427f654ee33ebdf804f9f302fcc3 | /Tests/CartPoleAST/CartPoleNdRewardt/MultiCartPoleNd_RLNonInter.py | 7bde5b51f00c93349bfd677128345b1493e7a0c2 | [] | no_license | maxiaoba/MCTSPO | be567f80f1dcf5c35ac857a1e6690e1ac599a59d | eedfccb5a94e089bd925b58f3d65eef505378bbc | refs/heads/main | 2023-07-05T02:20:16.752650 | 2021-07-06T06:04:40 | 2021-07-06T06:04:40 | 381,811,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,181 | py | import os
os.environ["CUDA_VISIBLE_DEVICES"]="-1" #just use CPU
# from garage.tf.algos.trpo import TRPO
from garage.baselines.zero_baseline import ZeroBaseline
from mylab.envs.tfenv import TfEnv
from garage.tf.policies.gaussian_mlp_policy import GaussianMLPPolicy
from garage.tf.policies.gaussian_lstm_policy import ... | [
"xiaobaima@DNab421bb2.stanford.edu"
] | xiaobaima@DNab421bb2.stanford.edu |
5e58b6483a21d1dcda87883dadabb128dcf9cdbe | 4ed038a638725ac77731b0b97ddd61aa37dd8d89 | /cairis/gui/SecurityPatternDialog.py | 08a80cb3e41d28e481cae171536b5d583ce0b767 | [
"Apache-2.0"
] | permissive | RachelLar/cairis_update | 0b784101c4aff81ff0390328eb615e335301daa2 | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | refs/heads/master | 2021-01-19T06:25:47.644993 | 2016-07-11T20:48:11 | 2016-07-11T20:48:11 | 63,103,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | 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... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
a683c1f4c81d2952675346854e2f80efb8473601 | 37ba3d21dcb6edd21e48dbb7f12591ac3590ab64 | /python_problems_competitive/ten_kinds_of_people.py | 4ef27f518e9cd247adcaa9041da10f96bc2643ec | [] | no_license | Hygens/hackerearth_hackerrank_solutions | 2feaedec255a85792d305bb8ff35675254a03f2a | 86cc4c9ca4d5246f24db8cda93400f1d7ee00882 | refs/heads/master | 2021-07-06T15:56:28.906533 | 2020-04-28T22:45:56 | 2020-04-28T22:45:56 | 55,160,498 | 1 | 2 | null | 2020-10-01T06:48:09 | 2016-03-31T15:15:36 | Python | UTF-8 | Python | false | false | 331 | py | r,c = map(int,input().split(' '))
l = []
for i in range(r):
l.append(list(input().strip()))
n = int(input().strip())
for _ in range(n):
r1,c1,r2,c2 = map(int,input().split(' '))
if l[r1-1][c1-1]==l[r2-1][c2-1]=='0': print('binary')
elif l[r1-1][c1-1]==l[r2-1][c2-1]=='1': print('decimal')
else: print... | [
"noreply@github.com"
] | Hygens.noreply@github.com |
2e6d525f0693ba26ecf20429238d8ba878370522 | bc441bb06b8948288f110af63feda4e798f30225 | /resource_package_tools_sdk/model/container/ingress_rule_pb2.py | e7533ea4ef040c1f29394bd3dd0d9f6cdf9fbc34 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,319 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: ingress_rule.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobu... | [
"service@easyops.cn"
] | service@easyops.cn |
3fa376f3ef087cee256d7492675fdc21898a7b95 | 92c724afcc40c9e4d86af24b1b493e10fc8a994d | /src/figures/exploratory/exploratory_plots.py | f99cbafd230e2935a17d634a4cf0fd989b289b41 | [
"MIT"
] | permissive | willgdjones/GTEx | 48d7551c765700d0db34bb8f6e01f7f2a55bec6c | c56a5d548978545ab8a98e74236d52343113e9e6 | refs/heads/master | 2021-09-13T13:21:12.928226 | 2018-02-06T16:42:41 | 2018-02-06T16:42:41 | 90,028,785 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,241 | py | import pickle
import numpy as np
import matplotlib.pyplot as plt
import seaborn
import h5py
GTEx_directory = '/hps/nobackup/research/stegle/users/willj/GTEx'
retrained_mean_features = {}
with h5py.File(GTEx_directory + '/small_data/new_retrained_inceptionet_aggregations.hdf5','r') as f:
expression = f['lung']['... | [
"williamgdjones@gmail.com"
] | williamgdjones@gmail.com |
7c36ac1c024cf960649d2e0a49ddbbd0087fdc2f | a849caca4cc7b66bb3ca93552da873c1415f435d | /Lab Exercise 1.6.2020/fermi.py | 0fb3f6a5b5b8d5291e9c7c3a08e24662cec98290 | [] | no_license | nmessa/Python | 5215b957dc73ece422a0f4cc65752c387a437d34 | 1a32ca1f59aa5a3f89453b6e42d4336e6e8fb961 | refs/heads/master | 2021-07-11T04:45:08.222102 | 2020-09-17T17:32:07 | 2020-09-17T17:32:07 | 199,273,131 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py | ## Game of Fermi Version 0.5
## Author:
## Date: 1/6/2020
## The goal of the game is for the player to guess the digits in
## the three positions in the least number of tries. For each guess,
## the player provides three digits for position 1, 2, and 3.
## The program replies with a hint consisting of Fermi, Pi... | [
"noreply@github.com"
] | nmessa.noreply@github.com |
ef7250bd0abdff76776b5c47208d55fca1b57e6b | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/farm.py | 230a7720738a0d70a94d4b11e691cbfc733a27b7 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,923 | py | ii = [('EmerRN.py', 4), ('CookGHP3.py', 2), ('LyelCPG2.py', 1), ('MarrFDI.py', 4), ('GodwWSL2.py', 1), ('SadlMLP.py', 1), ('WilbRLW4.py', 1), ('RennJIT.py', 2), ('AubePRP2.py', 6), ('CookGHP.py', 3), ('MartHSI2.py', 22), ('LeakWTI2.py', 6), ('KembFJ1.py', 4), ('WilkJMC3.py', 5), ('WilbRLW5.py', 2), ('LeakWTI3.py', 16),... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
ef31a019c6a45e981d10734a870eb4e44043c0d3 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/bokeh-0.11.1-py27_0/lib/python2.7/site-packages/bokeh/command/subcommands/tests/test_info.py | 42f6e6e775b0cc0b11df05470c21ff00bfa6d4cd | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,238 | py | from __future__ import absolute_import
import bokeh.command.subcommands.info as scinfo
from bokeh.command.bootstrap import main
def test_create():
import argparse
from bokeh.command.subcommand import Subcommand
obj = scinfo.Info(parser=argparse.ArgumentParser())
assert isinstance(obj, Subcommand)
de... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
38a80c15f2ce13d2c78e5913a3b1aadf4fc2e70a | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/sieve-457.py | 99bc8c55e3be4471951f624dbaca0a87b6c3a62a | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,586 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
de584c4eb19bb366f817c87559e42f7c262ffe1d | 64a2e19c11929e9077a8c99e8d388de279e512e9 | /testRunner/runner.py | 0278655d701a52dba205cd68ffe58b706039b381 | [] | no_license | wallaceok/appiumn_auto | 60f8a2b152a27c39cabf12529345909979527115 | e543a662897c0eedfafdea64297947aa6de45539 | refs/heads/master | 2020-12-24T06:00:26.338592 | 2016-11-08T10:04:04 | 2016-11-08T10:04:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,471 | py | __author__ = 'Administrator'
# -*- coding: utf-8 -*-
import sys
sys.path.append("..")
import datetime
import xlsxwriter
import time
import unittest
from common import reportPhone
from testRunner.runnerBase import TestInterfaceCase, ga
from testCase.Home import testHome
from testCase.work import testContact
from testCas... | [
"284772894@qq.com"
] | 284772894@qq.com |
ca4b7e3b02e3f9d8bd800d4002d8a1a7aaa44271 | 0b7add5d8583ba3bb02faf4fd5c356fd578f2fcc | /compileProtobuf/dstPb/RightInputProto_pb2.py | 6c7f725c3da07982fafe4f3b3735e4d2df9ca053 | [] | no_license | cappuccino213/IMCIS2Performance | 281f052f1a5dddb4956b3e7127781d2395c07e04 | 74528e0606f78459f6f3bfcf38d4fdf176a36f90 | refs/heads/master | 2023-03-27T20:44:57.266345 | 2021-03-29T07:56:56 | 2021-03-29T07:56:56 | 352,560,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,095 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: RightInputProto.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google... | [
"yeahcheung213@163.com"
] | yeahcheung213@163.com |
a1ca652bbcbc6fe3ceebec0c3c56a8205ba2449f | 3597ecf8a014dbd6f7d998ab59919a94aff8011d | /front-web/src/www/application/modules/treatment/block/actions.py | 18cc3477c9e71c71e2a949ed2b6fbd5799dbce77 | [] | no_license | duytran92-cse/nas-genomebrowser | f42b8ccbb7c5245bde4e52a0feed393f4b5f6bf1 | d0240ad5edc9cfa8e7f89db52090d7d733d2bb8a | refs/heads/master | 2022-10-24T05:26:01.760241 | 2020-06-14T19:01:35 | 2020-06-14T19:01:35 | 272,264,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,214 | py | from django.http import HttpResponse, HttpResponseRedirect, JsonResponse
from django.conf import settings
from notasquare.urad_web import actions, page_contexts, widgets
from notasquare.urad_web_material import renderers
from application.modules.common import page_contexts, actions as common_actions, components as comm... | [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
2acbb3b79b0a4861189cb1c43f2d7fd5049f0132 | fc2447b91cbee82e74e939092ec1903678f3217a | /PythonPractice/hm_py/hm_oop/oop_single.py | 4b09ef3d411106af86bc146dc8c60d1ee2a315ee | [] | no_license | yglj/learngit | 0eac654e7c49f2ede064b720e6ee621a702193b4 | 74fb4b93d5726c735b64829cafc99878d8082121 | refs/heads/master | 2022-12-24T10:01:56.705046 | 2019-05-27T21:04:08 | 2019-05-27T21:04:08 | 146,157,116 | 0 | 1 | null | 2022-12-12T07:01:25 | 2018-08-26T06:28:20 | HTML | UTF-8 | Python | false | false | 924 | py | # 单例设计模式
# 类只有创建唯一个对象实例
# 应用场景: 打印机,回收站,音乐播放对象
# __new__() object提供的内置静态方法,作用:为对象分配空间,返回对象引用
class MusicPlayer:
__init_flag = False
instance = None
def __new__(cls, *args):
if cls.instance is None: # 利用__new__只分配一次对象空间,来实现单例
print('创建对象时,自动分配空间')
cls.instance = super().__... | [
"2365952530@qq.com"
] | 2365952530@qq.com |
1e75dd937e7a1e842472c37a23b9269408e82317 | c0340c511cff5b40b4681c4d3238d807624c0323 | /results/correlations/plot_byLanguage/plotByLanguage_Combined.py | 9578733a8e10cb798dc13acd08a5f49b86cbdb51 | [] | no_license | m-hahn/grammar-optim | 5fa7ade47d2ad91f517c887ee2c65af24059069d | 07a1a80692a504bcafc8120a21c4dc9066b495ee | refs/heads/master | 2022-08-30T06:54:42.749264 | 2022-08-05T12:09:28 | 2022-08-05T12:09:28 | 156,456,167 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,378 | py | source("./readGrammarsPerLanguage_Combined.py")
D$LanguageNumeric = as.numeric(D$Language_Ordered)
D$FamilyPrint = as.character(D$Family)
D = D %>% mutate(FamilyPrint = ifelse(FamilyPrint == "Malayo-Sumbawan", "Mal.-Sum.", as.character(FamilyPrint)))
D = D %>% mutate(FamilyPrint = ifelse(FamilyPrint == "Sino-Tibeta... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
e6cc8b2f9f4f193759e2a16a4b7d84f28a162423 | d87483a2c0b50ed97c1515d49d62c6e9feaddbe0 | /.history/get_positions_20210205021452.py | db0322e005440ad0d993a22856f8587be75cdf25 | [
"MIT"
] | permissive | HopperKremer/hoptrader | 0d36b6e33922414003cf689fb81f924da076a54b | 406793c10bc888648290fd15c7c2af62cf8c6c67 | refs/heads/main | 2023-06-12T15:51:00.910310 | 2021-07-06T16:15:41 | 2021-07-06T16:15:41 | 334,754,936 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | # Buy top tickers from Financhill
import requests
from tda import auth, client
from tda.orders.equities import equity_buy_market, equity_buy_limit
from tda.orders.common import Duration, Session
import os, sys
import time
from selenium import webdriver
import json
currentdir = os.path.dirname(os.path.realpath(__file__... | [
"hopperkremer@gmail.com"
] | hopperkremer@gmail.com |
dc816389c06442347a202791e2f3ecfc4e43a317 | 2cd06e44dd79b45708ddf010c31289458d850b94 | /test/functional/feature_maxuploadtarget.py | b5a44cbc6b5cb6b89aca3c4c47d2ce7ef4634a00 | [
"MIT"
] | permissive | adymoloca/flocoin | bc66233e5b3b1af294ca6719b4a26f8829d682e4 | d9244577577dede975c852f6fcfe1afba4d71a57 | refs/heads/master | 2023-08-21T23:51:28.266695 | 2021-10-06T01:40:10 | 2021-10-06T01:40:10 | 408,609,250 | 0 | 0 | MIT | 2021-09-30T10:11:53 | 2021-09-20T21:45:28 | C++ | UTF-8 | Python | false | false | 6,653 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test behavior of -maxuploadtarget.
* Verify that getdata requests for old blocks (>1week) are dropped
... | [
"adymoloca91@gmail.com"
] | adymoloca91@gmail.com |
ea8bcdc0b183def68c8745950edbbf13533c588d | 65b708f0646ea090a4e9bc615cd37fd799bd9bce | /venv/Scripts/pip3-script.py | 307f938a7427296d42bf18912a97aeee71dc9f96 | [] | no_license | chrisna2/python-web-scrapping | af803079586c7b798365d23f5667a24d0c6633e8 | 92e74b4985006246f543de87ff26673b94e8c0a8 | refs/heads/master | 2020-07-08T14:40:32.959560 | 2019-08-23T03:19:47 | 2019-08-23T03:19:47 | 203,703,270 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!D:\tyn_dev\workspace_pycham\web-scrapping\venv\Scripts\python.exe
# 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.ar... | [
"chrisna2@hanmail.net"
] | chrisna2@hanmail.net |
fb7d5bf4a453cf483c36820ec233a56926f63930 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A2/python/task/BD_1117_1375_1419_1525.py | ea86b27f17cbd91f3957294e879438d4f68c005f | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 2,562 | py | from __future__ import print_function
import re
import sys
from operator import add
from pyspark.sql import *
def calcRank(BatBowl, rank):
n = len(BatBowl)
for i in BatBowl:
yield (i, float(rank)/float(n))
checking = 1
def batbowlKeyValue(x):
lol = x.split(',')
return lol[0],lol[1]
d... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
7a3f9d1a7437cf258fd93efcfdfa3f3a3316d099 | 45ca434bdb9e48fdbb2cda0e7fdd9a76474117b0 | /aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/SetFileCacheExpiredConfigRequest.py | 55bd0c22970cd64217840720fb797559c0c97d7f | [
"Apache-2.0"
] | permissive | wanyanzhenjiang/aliyun-openapi-python-sdk | e41e9937ad3f851e5a58f6bea95663e88f7fee13 | 4a5bf1b35f2395d047ead4444ea46721976bdd24 | refs/heads/master | 2020-12-30T10:37:55.789911 | 2017-07-27T06:55:15 | 2017-07-27T06:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | 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 ... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
dc4e498d5e94244fea4ccc62a2671836d7858c62 | 438f8490be1fa3818daad38254a77bb11ba367b3 | /project/settings.py | 6b500d837b395a5d1f67ad16fa8a0d8088cd6b65 | [] | no_license | n7ey233/maximanat | 2ea0b3c80729dd10e6023b053523ebe7e6ba22d8 | 812d7396fe64af85f86e2dd5e257935bde8719e2 | refs/heads/master | 2020-04-13T10:13:01.382912 | 2018-12-28T06:31:19 | 2018-12-28T06:31:19 | 163,133,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | """
Django settings for project project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
#... | [
"you@example.com"
] | you@example.com |
5b161e0a9d07b0bddab72ace77e7c27caff8d41a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/89/usersdata/202/62093/submittedfiles/matriz1.py | f2273f8e67d6acee35c26497ab06b264203a4c29 | [] | 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 | 774 | py | # -*- coding: utf-8 -*-
import numpy as np
def cortel1(a):
for i in range(0,a.shape[0],1):
for i in range (0,a.shape[1],1):
if a[i,j]==1:
return i
def cortel2(a):
for j in range(0,a.shape[1],1):
for i in range (0,a.shape[0],1):
if a[i,j]==1:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
dcb9a544cce84c43cf9b3d7b349db60e8139ccde | 9ce822c07edef943dc519a7ab3916f5a667e114a | /location_and_settings/location_and_settings/doctype/location_list/test_location_list.py | 28da20eda77448d48672ee27fa1509ed7b30bbe6 | [
"MIT"
] | permissive | hrgadeha/location_and_setting | 250fec37c2e63ce7c31b41ac52e50bea1e333392 | 770a7a719ce66bfe699dc805839a972063ff8ab6 | refs/heads/master | 2020-04-25T03:43:09.423485 | 2019-02-28T12:09:31 | 2019-02-28T12:09:31 | 172,486,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Hardik Gadesha and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestLocationList(unittest.TestCase):
pass
| [
"you@example.com"
] | you@example.com |
943046ca83cc744a00369e1e7ddfec263a7dc795 | ad23b164febd12d5c6d97cfbcd91cf70e2914ab3 | /webtestdata/wsgi.py | 882a4bbee8f33c55053afc3819608ab439306db9 | [] | no_license | wawj901124/webtestdata | 9eedf9a01dec2c157725299bda9a42e8d357ef0b | 54f6412566fce07ece912760c5caea73ede819cb | refs/heads/master | 2022-12-09T14:18:38.125191 | 2021-04-25T07:54:07 | 2021-04-25T07:54:07 | 175,773,318 | 1 | 1 | null | 2022-12-08T02:39:15 | 2019-03-15T07:49:16 | Python | UTF-8 | Python | false | false | 399 | py | """
WSGI config for webtestdata 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"410287958@qq.com"
] | 410287958@qq.com |
345e69a557ad41d9aae7895d883495769eee2017 | 41b4702e359e3352116eeecf2bdf59cb13c71cf2 | /full_model_walker_param/utils/env_utils.py | 110ef30017c069549d041f0bfb487b464dfec838 | [] | no_license | CaralHsi/Multi-Task-Batch-RL | b0aad53291c1713fd2d89fa4fff4a85c98427d4d | 69d29164ab7d82ec5e06a929ed3b96462db21853 | refs/heads/master | 2022-12-22T19:23:45.341092 | 2020-10-01T00:05:36 | 2020-10-01T00:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,899 | py | import os
from gym import Env
from gym.spaces import Box, Discrete, Tuple
import numpy as np
from env.hopper import HopperVelEnv
from env.half_cheetah import HalfCheetahVelEnv
from env.ant_goal import AntGoalEnv
from env.ant_dir import AntDirEnv
from env.humanoid_dir import HumanoidDirEnv
from env.humanoid_dir_openai... | [
"jil021@eng.ucsd.edu"
] | jil021@eng.ucsd.edu |
3973203794a335401a2e5cfa6e3206483a4d7116 | d26b3bbf0192cc334e5ac431c753ebcbf2baeb1a | /l10n_cn_hr_payroll/__init__.py | 6adc439b170cc365b31453ea0481a8ba0709b7a9 | [] | no_license | davgit/Xero-2 | 1d566357174d15d4f3b15cc849ce9f32f0c9ef3a | 6477d844fde3f3b8f91d21b15ee7f8986a505de5 | refs/heads/master | 2021-01-21T20:49:47.585328 | 2013-02-16T08:13:22 | 2013-02-16T08:13:22 | 22,778,180 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2011 OpenERP SA (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the G... | [
"wangsong1233276@sina.com"
] | wangsong1233276@sina.com |
07ccbaa13946f30e8d2d81bdcc3c948f8adb3036 | 5eff9df4d276e83c68ce843d58868499858f701a | /Interview/Trees/binary_tree_traversal.py | e5a7ce276633e535f5c96cfc7a75b9b0cfffea65 | [] | no_license | arunraman/Code-Katas | b6723deb00caed58f0c9a1cafdbe807e39e96961 | 7fe3582fa6acf59a2620fe73e1e14bd8635bbee8 | refs/heads/master | 2023-03-04T17:27:44.037145 | 2023-03-02T21:09:53 | 2023-03-02T21:09:53 | 25,232,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | from binarytree import Node as Treenode
class Solution():
def preOrder(self, root):
if root == None:
return
print root.value,
self.preOrder(root.left)
self.preOrder(root.right)
def inOrder(self, root):
if root == None:
return
self.inOrder... | [
"arunraman.19@gmail.com"
] | arunraman.19@gmail.com |
7c522e09e37bfa9cd52933f4b3a202340868c5d4 | 8c95e2185100db97f74d948407f9f6ac563905e5 | /metronotation/routemap.py | 8a6691a352602ddc2fcb031cd4e836d9009a1748 | [
"MIT"
] | permissive | kitao/metro-notation | c5fec21fccba4ef2a21c3294575fd29498ff8ebc | 34a9d2ca9fe17452c8eb5426636484f7cc29c605 | refs/heads/main | 2023-08-20T15:02:04.631092 | 2021-10-30T04:28:17 | 2021-10-30T04:28:17 | 321,700,124 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,037 | py | LAYER_TP = 0
LAYER_MD = 1
LAYER_BT = 2
LAYER_TM = 3
LAYER_BM = 4
LAYER_AL = 5
DIR_UP = (0, -1)
DIR_DN = (0, 1)
DIR_LT = (-1, 0)
DIR_RT = (1, 0)
DIR_LU = (-1, -1)
DIR_RD = (1, 1)
LETTER_TABLE = [
("R", (LAYER_TP, DIR_UP, 1)),
("M", (LAYER_MD, DIR_DN, 1)),
("L", (LAYER_BT, DIR_DN, 1)),
("U", (LAYER_TP, ... | [
"takashi.kitao@gmail.com"
] | takashi.kitao@gmail.com |
d8886e88937323eb625f4951e4a73b8b82235212 | 8a42be3f930d8a215394a96ad2e91c95c3b7ff86 | /Build/Instalation/GeneralDb/Marathon/MarathonTests_1.1/LargeFile_Edit/TestCases/V65_Changes/Diff_TwoLayouts1.py | f446d02edef1afedb4cb381315227b3bf6fde9a1 | [] | no_license | java-tools/jrec | 742e741418c987baa4350390d126d74c0d7c4689 | 9ece143cdd52832804eca6f3fb4a1490e2a6f891 | refs/heads/master | 2021-09-27T19:24:11.979955 | 2017-11-18T06:35:31 | 2017-11-18T06:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,811 | py | useFixture(default)
def test():
from Modules import commonBits
java_recorded_version = '1.6.0_03'
if window('Record Editor'):
commonBits.selectOldFilemenu(select_menu, 'Utilities', 'Compare Menu')
click('*2')
click('Choose File')
if window('Open'):
select(commonBits.selectPane(), 'Ams_LocDownload_20041... | [
"bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec"
] | bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec |
4f5f6cf6b975bc75e55183392098c5035bdaf30d | a742bd051641865d2e5b5d299c6bc14ddad47f22 | /algorithm/牛客网/55-链表中环的入口节点.py | cb9f7c566cc7b629c3e7d7a7aef88c03f3a1a921 | [] | no_license | lxconfig/UbuntuCode_bak | fb8f9fae7c42cf6d984bf8231604ccec309fb604 | 3508e1ce089131b19603c3206aab4cf43023bb19 | refs/heads/master | 2023-02-03T19:10:32.001740 | 2020-12-19T07:27:57 | 2020-12-19T07:27:57 | 321,351,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py |
"""
给一个链表,若其中包含环,请找出该链表的环的入口结点,否则,输出null。
思路:
双指针法
快指针先走两步,慢指针走一步
当两个指针又相遇了,此时指向的节点可能是环的入口节点
再次让慢指针回到链表头,然后和快指针一起走,再次相遇时,就是环的入口节点
否则,快指针不存在时,表示没有环
或:
先让快指针走n步,n=链表的长度
之后再让快指针和慢指针一起走,直到相遇,此时就是环的入口节点
"""
class ListNode:
def _... | [
"525868229@qq.com"
] | 525868229@qq.com |
0c602c4d5aba8185e74b266e1050df2cd0ec026c | 111082d7fd02a5f64cd1784b923a109cc95dc557 | /dj_rulitool/wsgi.py | 7ac1fe5349618d888f4dc721c11e7dfd58b406e3 | [] | no_license | 270466585/dj_rulitool | ba65a6ef1bc44b599f19ac1172d86e8d4b2a12af | 0d2e97454c66d30537780d81b2a0b4b2f953b2ed | refs/heads/master | 2020-04-14T20:25:36.592762 | 2019-01-04T10:28:18 | 2019-01-04T10:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for dj_rulitool project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"27066585@qq.com"
] | 27066585@qq.com |
5224d8389d28f53149bb9a84556ad05b34511670 | 32711a21edff968fdbf9fa9baf0e0f8373d0e131 | /authapp/forms.py | fa7e7e88283332593f25f77dbbd8f2f33b5d24c6 | [] | no_license | acid-n/GeekShop | ca836a4daeb97754fafd44d36e705f0e160c8d4d | 9749debe92e6ded46ed01082fbdb497a5f8485fa | refs/heads/master | 2023-01-15T15:29:18.172547 | 2020-11-25T18:34:39 | 2020-11-25T18:34:39 | 296,569,582 | 0 | 0 | null | 2020-10-04T18:39:29 | 2020-09-18T09:02:03 | JavaScript | UTF-8 | Python | false | false | 2,620 | py | import hashlib
import random
from django import forms
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm, UserChangeForm
from authapp.models import ShopUser, ShopUserProfile
class ShopUserLoginForm(AuthenticationForm):
class Meta:
model = ShopUser
fields = ('username', 'p... | [
"acid_n@mail.ru"
] | acid_n@mail.ru |
6ac6c0894bfa4d2f46e20bd466eb57471523bfb5 | ed78041a12c60e46bb0c4d347c47536e84307a96 | /app/__init__.py | ea59f07f74501ccfe1fe861e921ef187326337da | [] | no_license | Garfield247/news_nlp | 4875842af4249def6ffdc65a6e5896b02610dd8d | e18d178824ea9bf11d3895c58037a211f4b21cb6 | refs/heads/master | 2022-12-11T21:00:36.967826 | 2019-03-15T02:32:46 | 2019-03-15T02:32:46 | 161,159,779 | 0 | 0 | null | 2022-12-08T04:52:15 | 2018-12-10T10:48:41 | JavaScript | UTF-8 | Python | false | false | 945 | py | # -*- coding: utf-8 -*-
from flask import Flask, render_template
from app.config import config
from app.extensions import config_extensions
from app.views import config_blueprint
# 封装一个方法,专门用于创建Flask实例
def create_app(config_name): # development
# 创建应用实例
app = Flask(__name__)
# 初始化配置
app.config.from_ob... | [
"Garfield_lv@163.com"
] | Garfield_lv@163.com |
09997d079fdba85719df5fe4ccf2d3f6d5988d74 | 0e9789668dcfeeedacf78aa9917bb95ec9a5f763 | /preprocessing/load_data.py | 5ff6f999bcc4fb4aae3d0baad46dc27ccc9be878 | [] | no_license | mma1979/Simple-Sentence-Similarity | 76151619bcdfd39054f8b6cbe1e26af99d0f6a37 | dfacb34c325df771056f34f85c7927148d69691c | refs/heads/master | 2022-04-11T00:15:07.415752 | 2020-01-28T13:06:42 | 2020-01-28T13:06:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | import os
import pandas as pd
import requests
import tensorflow as tf
def load_sts_dataset(filename):
"""
Loads a subset of the STS dataset into a DataFrame.
In particular both sentences and their human rated similarity score.
:param filename:
:return:
"""
sent_pairs = []
with tf.gf... | [
"rhtdranasinghe@gmail.com"
] | rhtdranasinghe@gmail.com |
cfe30dfb145e5c7610d9b424ad9cb71f37e95724 | 09e63e204cf3f70b0f878fe237f231af0786611e | /LifeQA/LSTM_QA.py | 2e7249b817077a5418b4be8df812dcb9c1c1f866 | [] | no_license | shubham14/Machine_learning_research | 8f00788366abf2d330afe8914e48d4279fcd8aea | b134e4e6b1e6c110fad8cb38b033c92c34d3c8ce | refs/heads/master | 2022-11-08T13:24:58.722027 | 2019-11-10T09:21:28 | 2019-11-10T09:21:28 | 132,386,307 | 3 | 2 | null | 2022-10-17T15:36:25 | 2018-05-07T00:16:38 | Python | UTF-8 | Python | false | false | 3,186 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 16 16:55:06 2018
@author: Shubham
"""
import numpy as np
from keras import backend as K
from keras.layers import Embedding
from keras.layers import LSTM, Input, merge, Lambda
from keras.layers.wrappers import Bidirectional
from keras.layers.convolutional import Convoluti... | [
"shubham.ddash@gmail.com"
] | shubham.ddash@gmail.com |
a5c8acc3f261fc484e471a9c6729ba0a2951f7ea | 6cc37dfc44880f57823bb9523ea5f8206d5e3f22 | /python_OOP/labs_and_homeworks/09_decorators_exercise/07_execution_time.py | 672ebddef602603926ee47bec252adbc7b08d114 | [] | no_license | dimitar-daskalov/SoftUni-Courses | 70d265936fd86712a7bfe0586ec6ebd1c7384f77 | 2054bc58ffb5f41ed86f5d7c98729b101c3b1368 | refs/heads/main | 2023-05-31T06:44:35.498399 | 2021-07-11T10:16:08 | 2021-07-11T10:16:08 | 322,896,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | import time
def exec_time(func):
def wrapper(*args):
start = time.time()
func(*args)
end = time.time()
time_spend = end - start
return time_spend
return wrapper
@exec_time
def loop(start, end):
total = 0
for x in range(start, end):
total += x
ret... | [
"dimitar.daskalov22@gmail.com"
] | dimitar.daskalov22@gmail.com |
488718466f0f0e87ffa34be480e9e92c0c8df57a | 9a701c23ef6e70dc3704f012ffbb1e2689f7a8cb | /Lib/zDogPy/box.py | 5006b0c8963abce56336c69e361803f02212a395 | [
"MIT"
] | permissive | gferreira/zdogpy | a832db713524d1343b85de1c8215511f438a2e41 | 41304e5db7cc2e145d43b6b2f7d77d25ec3c8b08 | refs/heads/master | 2020-05-30T07:50:24.621323 | 2019-09-11T09:30:59 | 2019-09-11T09:30:59 | 189,606,401 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,196 | py | '''Box composite shape'''
from importlib import reload
import zDogPy.anchor
reload(zDogPy.anchor)
import zDogPy.shape
reload(zDogPy.shape)
import zDogPy.rect
reload(zDogPy.rect)
from zDogPy.boilerplate import hexToRGB, TAU
from zDogPy.anchor import Anchor
from zDogPy.shape import Shape
from zDogPy.rect import Rect
#... | [
"gustavo@hipertipo.com"
] | gustavo@hipertipo.com |
a4536f0fe2f8a612a01725277078ce3b79778683 | 5707a6e95d6388a320416d7c06c275daf61e3406 | /Unidad2/ej1.py | 54e6a486f22b1ad338b6cbaf6b579ebbc1bebc68 | [] | no_license | hectorrdz98/lenguajes-y-automatas-1 | ed3406e8a7b7eaad489c530146cddac5a972bc81 | 0004c4696a92cdd33a86a24f82d0f9b7e01e455c | refs/heads/master | 2022-01-21T21:24:21.819330 | 2019-05-29T12:42:42 | 2019-05-29T12:42:42 | 167,203,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py |
"""
Autor: Hector Rodriguez
"""
"""
Este codigo lee el archivo doc.txt (debe estar al mismo nivel de carpeta que este archivo)
y muestra en consola para cada linea del documento que tipo de elemento o a que categoría pertenece.
Estas son mis condiciones:
1.- Entero: Números de 0-9
2.- Flotante: Números de 0-9 segu... | [
"="
] | = |
33b9a0b28178626117cfa52bbee000bdf746fae2 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /QcswPnY2cAbrfwuWE_1.py | 3dc657a83394c0074459ebb833c7727b69c41094 | [] | 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 | 173 | py |
def filter_factorials(n):
def is_fact(x):
i=1
while(True):
if x%i<1:x//=i
else:break
i+=1
return x==1
return[i for i in n if is_fact(i)]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4f8410227745a3f05d1ded00c637145222b001f5 | acf03baf55e36dc2a9a5ecd697ec5cb15446ae32 | /vng_api_common/decorators.py | eeb5d658ccfe42cff1208a7c375b34363017ad85 | [] | no_license | GemeenteUtrecht/vng-api-common | b6eb55121dc44c72179cbcd63896bbc020dc3975 | 97786cac041d867468007f9b9a9703d21644391a | refs/heads/master | 2021-06-29T01:53:11.647065 | 2019-07-18T12:04:39 | 2019-07-18T12:05:27 | 198,412,309 | 0 | 0 | null | 2019-07-23T10:57:53 | 2019-07-23T10:57:52 | null | UTF-8 | Python | false | false | 279 | py | from typing import Any
from django.db.models.base import ModelBase
def field_default(field: str, default: Any):
def decorator(cls: ModelBase):
model_field = cls._meta.get_field(field)
model_field.default = default
return cls
return decorator
| [
"sergei@maykinmedia.nl"
] | sergei@maykinmedia.nl |
d52897974dca71896f8010946a8b51fba5aaf253 | 7d78a18fcb8f34cc84e9439bd19cf491e3e0ec49 | /Code/Particle_Identification/msc-hpc/OLD/OLD/round1/feedforward_python/model/model1/feed_forward_1_dropout_window_sum.py | f0f09278e5686de8562c923232116972c2fce202 | [] | no_license | PsycheShaman/MSc-thesis | 62767951b67b922ce5a21cad5bdb258998b7d2ea | 34504499df64c7d6cc7c89af9618cd58d6378e8e | refs/heads/master | 2022-03-12T07:17:57.309357 | 2019-12-10T21:17:39 | 2019-12-10T21:17:39 | 151,471,442 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,372 | py | print("==============================================================================================")
print("starting........................................................................................")
import glob
import numpy as np
print("imported glob, np.............................................. | [
"christiaan.viljoen@cern.ch"
] | christiaan.viljoen@cern.ch |
07e7f05c86afb0643a2049ea590bf26c009ad663 | ec6f8a634c607e65300bf9812c79dbf780c351d0 | /raspberrypi_files/field4off.py | 6f2ec758df0e1d77b337b75f96e84b9be40755e0 | [] | no_license | prateek-chouhan05/Home-automatation-system | ccbcd8edaba74ac5564c49187517a2991b4163db | aafc3eebe45bdc075f04403b63e44e67ab0c2bc7 | refs/heads/master | 2023-07-09T13:56:28.028748 | 2020-11-09T06:29:13 | 2020-11-09T06:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(23, GPIO.OUT)
GPIO.output(23, GPIO.HIGH)
| [
"tanmay.ambadkar@gmail.com"
] | tanmay.ambadkar@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.