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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2833dbab283205ed517a25347f6766087148e5cf | d565991b30a72837cd6f335c3ea9802a9b472467 | /Acoustic_Signal/test/SamplingRateConversion.py | 7dd39c8fabb129e810b88832a84ee768809b72c0 | [
"Apache-2.0",
"MIT"
] | permissive | philip-shen/note_python | c8ebab9731a2f8c40a2ab1ad4f0ca0cf4ab24f59 | ee6940486c557f9be2e6b967b28656e30c3598dd | refs/heads/master | 2023-08-09T12:05:14.974944 | 2023-08-06T03:16:07 | 2023-08-06T03:16:07 | 175,354,005 | 0 | 0 | MIT | 2023-02-16T06:47:10 | 2019-03-13T05:42:46 | Tcl | UTF-8 | Python | false | false | 5,721 | py | # -*- coding:utf-8 -*-
import numpy as np
import scipy.signal
import wave
import array
import struct
from scipy.io import wavfile
def wav_read(file_path, mmap=False):
"""
return sample value between range(-1,1)
Note" librosa.load use aioread, which may truncate the precision of the audio data to 16 bits.
... | [
"amyfanpti@gmail.com"
] | amyfanpti@gmail.com |
eed25826a0b13183199cd8198fbb81ba552fa0cb | cd0f3fa5c3b202599812ac8b49e374fe2b2f2e8b | /ExerciciosAprendizagem/CapApendices/ApBex02.py | 6aea5b29bb4f6629cb43b944a077056fb3ad0dcb | [] | no_license | J-AugustoManzano/livro_Python | 46c14dc4bc5fb361d850fcd361477a952de172c2 | e42b79ef78c6b1ab936fe9a13d32ddc94deeb2a8 | refs/heads/main | 2023-06-25T03:10:30.297226 | 2023-06-08T23:34:54 | 2023-06-08T23:34:54 | 354,116,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | import const
const.pi = 3.14159
print(const.pi)
enter = input("\nPressione <Enter> para encerrar... ")
| [
"noreply@github.com"
] | J-AugustoManzano.noreply@github.com |
1581702e30bf17521341ad3c8b02a00a78d7d427 | 86948735307c603936f22fc029349bf669ecaa6e | /ble-sensor-pi/sensortag/echoserverzal.py | f219034d6d6edca7ddc785107e3321c4558c534d | [
"Apache-2.0"
] | permissive | Kowo39/pythonPeter | 2b43fb1fc8ef16700be53e912b04b53117f745d5 | 629550a160445760cb95f6e9b58df5264e24a9e1 | refs/heads/master | 2021-01-10T20:26:41.463098 | 2015-07-21T15:38:58 | 2015-07-21T15:38:58 | 39,141,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | import socket
import sys
import time
import datetime
#create a TCP/IP Socket
sock=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#bind the socket to the port
server_address = ('localhost', 10000)
print >>sys.stderr, 'starting up on %s port %s' % server_address
sock.bind(server_address)
#listen incomming connecti... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
56ed3798bc39ceb83d99ccb445df785a9b2636ee | 5785d7ed431b024dd910b642f10a6781df50e4aa | /.venv/lib/python3.8/site-packages/aws_okta_processor/commands/getroles.py | 784273d95ce8b03239ea7970f701411f6994ee96 | [] | no_license | kashyapa/interview-prep | 45d77324446da34d99bf8efedb3544b367b5523e | 7060c090c40602fb9c4778eace2078e1b51e235b | refs/heads/master | 2023-07-28T13:12:49.515299 | 2021-09-06T14:33:25 | 2021-09-06T14:33:25 | 403,706,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,102 | py | """
Usage: aws-okta-processor get-roles [options]
Options:
-h --help Show this screen.
--version Show version.
--no-okta-cache Do not read okta cache.
--no-aws... | [
"schandra2@godaddy.com"
] | schandra2@godaddy.com |
03f970ba4bcdee92ff5b8b31f973424f87b081b6 | 2efd0540d7b05d1e56b625a92172b6aac0c9a48e | /Copa/venv/Scripts/pip3.6-script.py | a8aa2e13aee23f62ade69cbd0b144de241c157b8 | [] | no_license | EricKurachi/algoritmo_genetico | f40003381fc0baba91db2e42437e59f33bb0ae5c | 46659dbfcdd6a93f66f2e8dff4c920d6300c1c41 | refs/heads/master | 2021-10-09T08:13:09.647460 | 2018-12-23T23:46:35 | 2018-12-23T23:46:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #!C:\Users\Eric\Python\Copa\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys... | [
"erictkurachi@gmail.com"
] | erictkurachi@gmail.com |
847e269f9a9c6a38b6d1af2ea9b074571cd66b64 | a425842a51deab915fc4319b3226cef3f49e53ea | /build/extriPACK/intelligent_actuator/robo_cylinder/catkin_generated/pkg.installspace.context.pc.py | 25b485d848699b5198e6532286e6957b091976b9 | [] | no_license | Sinchiguano/Part-Localization-For-Robotic-Arm | 1458204e52f34354cbd0e8e1bff1dfaf6caefe1c | ebc1ed19da171ff4b5a52a3a031ae3049b0b9eb8 | refs/heads/master | 2021-10-08T19:49:53.455680 | 2018-12-16T20:03:04 | 2018-12-16T20:03:04 | 155,774,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/casch/yumi_ws/install/include".split(';') if "/home/casch/yumi_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;rospy;std_msgs;message_runtime".replace(';', ' ')
PKG_CONFIG_LIBR... | [
"cesarsinchiguano@hotmail.es"
] | cesarsinchiguano@hotmail.es |
d2211d3eaf542db3587fdce683a7c3b3881827a9 | bcf98d9adf6f0e44601d91c83453b01ad311071d | /listings/models.py | 6ccf1ecd4cff2f0209fb8a27b2f7a0ceed3d7559 | [] | no_license | GMNaim/Real-Estate-project | 89fa64cb5afeb344d43095da93bbcbf35b6b9121 | 93286edde1e5d34dcbbf3ca1695a5ef4e3577f64 | refs/heads/master | 2022-02-13T06:04:34.202090 | 2019-08-28T14:33:08 | 2019-08-28T14:33:08 | 192,858,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | from django.db import models
from datetime import datetime
from realtors.models import RealtorInformation
class IndividualListInformation(models.Model):
realtor = models.ForeignKey(RealtorInformation, on_delete=models.DO_NOTHING)
title = models.CharField(max_length=250)
house_address = models.CharField(ma... | [
"gmnaim3336@gmail.com"
] | gmnaim3336@gmail.com |
7f9ddb6f4ba36d244e11ae5efd596f4b35b5ff07 | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/site-packages/pylint/test/functional/misplaced_format_function.py | 4c3b8af018026bba7ccd1d78159bec027a34dd62 | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/py-pylint-2.3.0-pmz72kdc34fnma6vo5sc2y3c5wp5sjeb/lib/python3.7/site-packages/pylint/test/functional/misplaced_format_function.py | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
8841420544c5a92b4429c203c368ca8f123180ab | 32e55bf28b9f22265bcbc1d8c0ebf52a3608187d | /12. Integer to Roman.py | 03281264063156d7c93642f5364115012353c373 | [] | no_license | Garacc/LeetCode | 9f843672a18701d032f36769c9025761199d8caf | 215d12703b2cac4c1ad49d5a0e1060948fbbacd2 | refs/heads/master | 2018-10-10T03:37:48.889898 | 2018-09-17T08:38:22 | 2018-09-17T08:38:22 | 120,304,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | class Solution:
def intToRoman(self, num):
"""
:type num: int
:rtype: str
"""
#romandict = {1:'I', 5:'V', 10:'X', 50:'L', 100:'C', 500:'D', 1000:'M'}
thou = num // 1000
hun = (num%1000)//100
ten = (num%100)//10
one = num%10
output = ''
... | [
"xgyxmxl@163.com"
] | xgyxmxl@163.com |
49b096d2e37b444b6167aab4b4c3ee32ff9c8f02 | 21e76f93747336bb649ec1906257b0dee66442d3 | /resources/lib/services/nfsession/nfsession_requests.py | 648a46b52e40073504ca231fd3706fe5f7f3ffd9 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | freedomhkg-tv/plugin.video.netflix | d55f1671b4fbf201e3cda34e6eea4347c3935ee6 | 30ac436ffd02389983df8610aee098eb0bc10b0c | refs/heads/master | 2021-01-02T17:39:28.005728 | 2020-02-09T19:50:18 | 2020-02-09T19:50:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,480 | py | # -*- coding: utf-8 -*-
"""
Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix)
Copyright (C) 2018 Caphm (original implementation module)
Copyright (C) 2019 Stefano Gottardo - @CastagnaIT
Stateful Netflix session management: handle the http requests
SPDX-License-Identifier: MIT
See LICE... | [
"gottardo.stefano.83@gmail.com"
] | gottardo.stefano.83@gmail.com |
d702030522318f0d1aa5c9c134e670bf2dd23db5 | 10f091bf946bdd6b50c3fa0637504ab19d9c65c2 | /albums/3/challenge41_easy/code.py | ad0dfe1fae293f17ce7bc56dcbb430c51c67f770 | [] | no_license | Rich43/rog | ccebee00b982579c46c30a7dab55b4dbe6396fdc | 029dd57c920aa869750b809d22092c9614e67ba9 | refs/heads/master | 2023-01-23T07:07:16.069821 | 2023-01-19T19:10:43 | 2023-01-19T19:10:43 | 109,163,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | ''' Write a program that will accept a sentence as input and then output that sentence surrounded by some type of an ASCII decoratoin banner.
Sample run:
Enter a sentence: So long and thanks for all the fish
Output
*****************************************
* *
* So long and th... | [
"richies@gmail.com"
] | richies@gmail.com |
fd1757cbaefda4ceaf1aa771e045b08774c21f1c | b7086d5e907aaf983af5b8d7d6f74c4fc6e40f23 | /RA5/Skimmer/HLTSkimmer.py | eee2d8bf3b15d8d4b70614a251575da60d72ad3c | [] | no_license | ahmad3213/PyNTupleProcessor | da40c596f275406f21e83e117c5b8020d6ee309c | c84fa597b132e91342226b12a74213f675c0b125 | refs/heads/master | 2023-03-29T18:59:19.454585 | 2020-09-21T21:52:25 | 2020-09-21T21:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,299 | py | from Core.Module import Module
class HLTSkimmer(Module):
def __init__(self,name,emulation=False,cutflow="SR"):
super(HLTSkimmer,self).__init__(name)
self.emulation = emulation
self.cutflow = cutflow
def return_sr_trigger(self,event):
if self.emulation or (self.dataset.isData an... | [
"lucien1011@gmail.com"
] | lucien1011@gmail.com |
60168d852d76649dbac368f415e7030b85d364e9 | f134679dc39849cc741f5d8aaa63793d7c9f9b7d | /testapi/urls.py | 36438b62909899e93887156062e759da560ad8a0 | [] | no_license | namraht/trial | 792d7c7a427c463ab62b9675e745a7d537e3483c | 3283ee39fcda03f5a1b1a04f3a4939d32ed40ac0 | refs/heads/master | 2020-12-04T01:04:27.056179 | 2016-09-07T21:38:14 | 2016-09-07T21:38:14 | 67,645,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | """testapi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/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-bas... | [
"admin"
] | admin |
c160e52892a736da04cfcce881b61a37f4b39b87 | e49a07ad215172e9c82cb418b10371bf0ce1c0f7 | /第1章 python基础/Python基础06-面向对象1/2-创建一个对象.py | 0b4e1cd81068687f7f9621c83d7dba09708014b8 | [] | no_license | taogangshow/python_Code | 829c25a7e32ead388c8b3ffa763cb9cf587bfd7b | 4b3d6992ec407d6069f3187ca7e402a14d863fff | refs/heads/master | 2022-12-16T01:26:17.569230 | 2018-11-16T10:07:59 | 2018-11-16T10:07:59 | 157,832,985 | 0 | 1 | null | 2022-11-25T09:55:32 | 2018-11-16T08:00:13 | Python | UTF-8 | Python | false | false | 174 | py | class Cat:
#属性
#方法
def eat(self):
print("猫在吃鱼...")
def drink(self):
print("猫在喝水...")
#创建一个对象
tom = Cat()
| [
"cdtaogang@163.com"
] | cdtaogang@163.com |
30f21d83dc43f9b8236344d296befd0755ec54a7 | a657cea31cd9f0f69825a458530afac1e0391122 | /examples/GAN/Image2Image.py | 196f7743312bbad6da9d50ee706bb74588fef2e5 | [
"Apache-2.0"
] | permissive | liaoheping/tensorpack | 5f7dd337b6ec22cf7f27a2ee35a4a0c6a602abfa | e04bb2d59ec63f1b6549b485af1e1946376f723d | refs/heads/master | 2021-01-12T05:27:03.291185 | 2017-01-03T14:19:19 | 2017-01-03T14:19:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,240 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: Image2Image.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import numpy as np
import tensorflow as tf
import glob
import pickle
import os
import sys
import argparse
import cv2
from tensorpack import *
from tensorpack.utils.viz import *
from tensorpack.tfutils.summary... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
f847516b8340b2693429d43db570e49faaff7d04 | f3399d1ab1849b267cc83de30044dfe556598262 | /src/main.py | 705fe0947eac4f2daadef39724ef1951b6d1d92f | [] | no_license | JiayuHeUSYD/DARNN_Multi_GPU | 0114c263c026ca39e52fb2f47ed7031204a0d966 | 7e608237a0a7f8165e0e62d9ac50671346e7979b | refs/heads/master | 2020-09-07T09:29:02.305668 | 2019-01-30T05:12:30 | 2019-01-30T05:12:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,562 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, division
import torch
import argparse
import numpy as np
from tensorboardX import SummaryWriter
from DARNN import Encoder, Decoder
from CsiDataSet import CSI300Dataset
from VerParams import Version
def set_seed(seed=1):
'''
https://github.com/pytorch/... | [
"spacegoing@gmail.com"
] | spacegoing@gmail.com |
7b8b2c10c5c88c5070533d1be5d7e8280fd94ed0 | 3d060dd745ac19e58255843d496d6afe7168abe2 | /work_for_aca_lsq/make_7122_intensities.py | 5b203f1eb526a63b22446584054feab32121456f | [] | no_license | nksauter/LS49 | 352e96e3601d2475f7f81e0c6a7e4771e9cf9911 | e660c7395e3e3349d43ccd6e59cc099042c5c512 | refs/heads/master | 2023-05-27T01:50:34.996331 | 2023-05-15T22:09:56 | 2023-05-15T22:09:56 | 113,079,929 | 8 | 9 | null | 2023-05-10T18:37:14 | 2017-12-04T18:34:22 | Python | UTF-8 | Python | false | false | 1,552 | py | from __future__ import print_function
from __future__ import division
from six.moves import cPickle as pickle
from six.moves import range
if __name__=="__main__":
from LS49.sim.util_fmodel import gen_fmodel
from LS49.sim.step5_pad import pdb_lines,Fe_oxidized_model,Fe_reduced_model
W2 = 12398.425/7122.
GF =... | [
"nksauter@lbl.gov"
] | nksauter@lbl.gov |
f77db9cc87b1c554b9314bab2c7e4a9c2b3e15af | a332b34158b0b7e6ee04b51c3de54f220a5263ef | /virtual/bin/django-admin.py | eb3dee42caf8171d5fd70aa71c39a49b83b58d4d | [] | no_license | IngabireTina/Ing_api | 41eef33b3df0c289d05c247fc1065295274eda59 | b482b5e97b916063d5a6926ec927246e1f2d276c | refs/heads/master | 2023-04-11T07:46:10.021649 | 2021-04-26T15:05:53 | 2021-04-26T15:05:53 | 361,655,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | #!/home/tina/Desktop/ing_api/virtual/bin/python3.6
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was deprecat... | [
"ingabire067@gmail.com"
] | ingabire067@gmail.com |
b0234fee86193c0f241ac55eb21416301a933d0c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02785/s477774791.py | 60aa3b22a33800e8d7a30bb8d0694975657ee378 | [] | 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 | 134 | py | N, K = map(int, input().split())
H = list(map(int, input().split()))
H = sorted(H)
hp = 0
for i in range(N-K):
hp += H[i]
print(hp) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5a9ba52649275f8cb827ccb6185ac2b1cf2f8f62 | 4e0f2938b003f5d68a57f213e652fbffb2f72ba2 | /FishStat_M.py | 4cb6b0e27eeb6eb548d7e915ecb695342689ce9f | [] | no_license | adcGG/Lianxi | e4b1ce0d3cfc76e625e1e1caca0a58f25ba5d692 | 3659c3ca11a13b4ad54dbd2e669949701bae10b5 | refs/heads/master | 2022-12-13T05:45:41.312292 | 2019-08-14T07:38:19 | 2019-08-14T07:38:19 | 201,189,540 | 0 | 1 | null | 2022-04-22T22:08:16 | 2019-08-08T06:07:53 | Python | UTF-8 | Python | false | false | 1,483 | py | def day_stat(day,fishs):
'''
:param day: 为字符串参数
:param fishs: 为两层嵌套字典参数
:return:
'''
nums = 0
amount = 0
for name0,sub_records in fishs.items():
print('%s 数量 %d 单价%.2f元'%(name0,sub_records[0],sub_records[1]))
nums+=sub_records[0]
amount += sub_records[0]*sub_records[1]
print('%s 数量小计%d金额小计%.2f'%(day,num... | [
"979818137@11.com"
] | 979818137@11.com |
ff67401d63b733d6006d89cf2cc4e7cc50d61f84 | 77f537f24d7d1cc2657c581de887e5a4da4c1754 | /python/rapidstream/BE/AnchorPlacement/PairwiseAnchorPlacementForSLRCrossing.py | 995a45e4c269af40afdf71fb7ec1d4c2b6b09818 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | UCLA-VAST/RapidStream | d5e4c75b666693964138d96ffb6bdf4d682cf0e9 | 106ae4055f72b1d59245e0650d7b838d8abdfb78 | refs/heads/main | 2023-04-14T20:40:01.332134 | 2022-12-20T03:01:25 | 2022-12-20T03:01:25 | 321,000,047 | 27 | 7 | MIT | 2022-06-02T04:01:12 | 2020-12-13T06:32:09 | Python | UTF-8 | Python | false | false | 14,359 | py | import itertools
import logging
import json
import operator
import time
from collections import defaultdict
from typing import List, Tuple, Dict
from mip import Model, minimize, CONTINUOUS, xsum, OptimizationStatus
from rapidstream.BE.Utilities import isPairSLRCrossing
from rapidstream.BE.Device.U250 import idx_of_le... | [
"lichengguo777@gmail.com"
] | lichengguo777@gmail.com |
883879f04c62bf4e480cf92b5d51696e945aea20 | fc4fb632da74ba1b535192f26f64cbb3aa124c2d | /tests/scripts/thread-cert/Cert_5_3_08_ChildAddressSet.py | 9613af53472edcfbdbfd5043edf8aaa94ad564c2 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | sbobrowicz/openthread | dc1fd4caed785a5d3ff9365530b0030e3498d3eb | a43fb455d99d3692bdc68aa6d9be96f973a1a4ea | refs/heads/master | 2021-01-16T23:19:11.674806 | 2016-06-24T19:43:02 | 2016-06-24T19:43:02 | 61,918,103 | 1 | 1 | null | 2016-06-24T23:38:19 | 2016-06-24T23:38:18 | null | UTF-8 | Python | false | false | 4,073 | py | #!/usr/bin/python
#
# Copyright (c) 2016, Nest Labs, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# notice, thi... | [
"jonhui@nestlabs.com"
] | jonhui@nestlabs.com |
7274b14eb762afe828b515ecea48e3d6adf0ee84 | 818e11a0545de5ed0337e5baa4b92a732bd79521 | /leetcode/python/128_Longest_Consecutive_Sequence.py | 7262c304222f95a03e296ebf7273426408d6570c | [] | no_license | JaySurplus/online_code | 85300fb63dd4020d9135e32dfad5792850d335f6 | 8f44df0bcb521bbc3a7ff2564cbe931e146ae297 | refs/heads/master | 2021-01-20T09:07:30.038815 | 2018-08-21T15:08:01 | 2018-08-21T15:08:01 | 34,469,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | """
128. Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
For example,
Given [100, 4, 200, 1, 3, 2],
The longest consecutive elements sequence is [1, 2, 3, 4]. Return its length: 4.
Your algorithm should run in O(n) complexity.
"""
... | [
"znznbest2004@gmail.com"
] | znznbest2004@gmail.com |
4bf857590fcb621dad5d6aade0336448fb6ec833 | eacff46eda2c6b509449979a16002b96d4645d8e | /Collections-a-installer/community-general-2.4.0/plugins/modules/online_server_facts.py | 5902f477135e736171debe37114a81e8d66abb26 | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later"
] | permissive | d-amien-b/simple-getwordpress | 5e6d4d15d5f87124ab591e46b63fec552998fdc3 | da90d515a0aa837b633d50db4d91d22b031c04a2 | refs/heads/master | 2023-04-08T22:13:37.347545 | 2021-04-06T09:25:51 | 2021-04-06T09:25:51 | 351,698,069 | 0 | 0 | MIT | 2021-03-31T16:16:45 | 2021-03-26T07:30:00 | HTML | UTF-8 | Python | false | false | 35 | py | cloud/online/online_server_facts.py | [
"test@burdo.fr"
] | test@burdo.fr |
ea3d92ac6eaa0e3765679bde1dcdd3826f9104b9 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /Flask/module/root/__init__.py | 9e57fe84d463cdf6098fd2ee5cf2c0332eda0a49 | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | #!env python
# coding:utf-8
from flask import Flask
from hoge.main import hoge
app = Flask(__name__)
app.debug = True
app.config.from_envvar('FLASK_APP_SETTINGS', silent=True)
app.register_module(hoge, url_prefix="/moge")
@app.route("/")
def index():
return("index")
if __name__ == '__main__':
app.run()
| [
"glenda.kanai@gmail.com"
] | glenda.kanai@gmail.com |
221143b22b0808f84df7a4d31d7bc24371fbb9bf | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractTxytranslationsWordpressCom.py | 65323eb27a4c3c955883db9a3025cf3603421cb6 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 570 | py |
def extractTxytranslationsWordpressCom(item):
'''
Parser for 'txytranslations.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'... | [
"something@fake-url.com"
] | something@fake-url.com |
f8957ea5ea0f59fe279970da77af2889af7bfebd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_noting.py | 23cacc23506f5124a72149831f5c2e50cc7fbca8 | [
"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 | 216 | py |
#calss header
class _NOTING():
def __init__(self,):
self.name = "NOTING"
self.definitions = note
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['note']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
afa762b941f1e50c05f69a041402ec8dac2894e1 | a2c7bc7f0cf5c18ba84e9a605cfc722fbf169901 | /python_1_to_1000/871_Minimum_Number_of_Refueling_Stops.py | cd4663edd331b07e501988b519ace8b0387a1bb5 | [] | no_license | jakehoare/leetcode | 3bf9edd499034ce32be462d4c197af9a8ed53b5d | 05e0beff0047f0ad399d0b46d625bb8d3459814e | refs/heads/master | 2022-02-07T04:03:20.659422 | 2022-01-26T22:03:00 | 2022-01-26T22:03:00 | 71,602,471 | 58 | 38 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | _author_ = 'jake'
_project_ = 'leetcode'
# https://leetcode.com/problems/minimum-number-of-refueling-stops/
# A car travels from a starting position to a destination which is target miles east of the starting position.
# Along the way, there are gas stations.
# Each station[i] represents a gas station that is station[... | [
"jake_hoare@hotmail.com"
] | jake_hoare@hotmail.com |
64a41985166cecbfeb82821809d57b7442637d8d | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/CaptureCreateDTO.py | aab34c8dce4d17455c21624f902a4b43cf45d6cc | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,388 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class CaptureCreateDTO(object):
def __init__(self):
self._capture_no = None
self._out_biz_no = None
@property
def capture_no(self):
return self._capture_no
@captur... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
e5d4969ae671189786a083b8438e5cbbb026b013 | 59fbeea017110472a788218db3c6459e9130c7fe | /maximum-swap/maximum-swap.py | 3e4a1fe1c9171bb242c09a041e623ad88bc2d7e4 | [] | no_license | niufenjujuexianhua/Leetcode | 82b55d9382bc9f63f4d9da9431194e20a4d299f1 | 542c99e038d21429853515f62af51a77deaa4d9c | refs/heads/master | 2022-04-27T16:55:00.035969 | 2022-03-10T01:10:04 | 2022-03-10T01:10:04 | 79,742,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | class Solution:
def maximumSwap(self, num: int) -> int:
A =list(str(num))
ans = A[:]
for i in range(len(A)):
for j in range(i+1,len(A)):
A[i],A[j] = A[j],A[i]
if A>ans:
ans = A[:]
A[i],A[j] = A[j],A[i]
re... | [
"wutuo123@yeah.net"
] | wutuo123@yeah.net |
6b9dec43d43bea442c82ebcbf64509eb70bf7973 | 68d267a3e352e40dd2e21359fabb7c97ce9c26aa | /2SAT/cases.py | 603243d0922ff178a90b672d9cd64b8675e1476a | [] | no_license | danyuanwang/karatsuba_mult | ac2ad60e98c05910036483f8e418b8478b27081f | a357af85e094f5836c2fbdabebf141b027a13076 | refs/heads/master | 2023-06-11T06:43:43.504877 | 2021-07-03T21:05:09 | 2021-07-03T21:05:09 | 285,746,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,036 | py | import math
class Cases:
def __init__(self, link):
self.size = 0
self.cases = []
handle = open(link)
for line in handle:
a = line.split()
#print(a)
res = [int(i) for i in a]
self.cases.append(res)
self.size += 1
for... | [
"danyuanwang@hotmail.com"
] | danyuanwang@hotmail.com |
96ab6cd72fa5ce049a87e20ed26fe57c4d0a7395 | 30d0ca288a74835836d72804cfbda81e98bfd075 | /core/utils/net_utils_dgcn.py | df07e2e4bc9e3d8b699219e202eb9a316c257bfb | [] | no_license | JoeeYF/GCN-MT | ffe5b0561e7a172c7b7f09f5497640b6a91df63c | 3757af844c94190ad182bfdfed35541b3c30bf56 | refs/heads/master | 2023-04-19T16:33:27.927961 | 2021-04-29T11:21:43 | 2021-04-29T11:21:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,698 | py | import os
import time
import glob
import cv2
import csv
import logging
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import albumentations
import pandas as pd
from .tools import *
from .metric_utils import *
from .config import *
from .ramps import *
from core.modules.losses.mse_... | [
"qiao_yuanfang@163.com"
] | qiao_yuanfang@163.com |
41d25d6445a09f1adb75f00de0d32733a3f6f56a | e408a1c27efcafaec1f6bf1e6255075eae171102 | /LocationAdapter/src/server.py | 57e659b1da6992afaa047a4ab336305e30ea855a | [] | no_license | adoggie/BlueEarth | acd609a5da9eb0276dc810776f97a35c5b5ccf8c | ef2c4d045d8d933bcbf5789a87a189be6b33947d | refs/heads/master | 2020-03-29T15:31:54.834861 | 2018-12-23T16:03:59 | 2018-12-23T16:03:59 | 150,067,522 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,103 | py | #--coding:utf-8--
import traceback
from datetime import datetime
from logging import getLogger
import gevent
import gevent.socket
from gevent.server import StreamServer
import gevent.event
import gevent.ssl
from mantis.fundamental.utils.importutils import import_class
from mantis.fundamental.application.app impor... | [
"24509826@qq.com"
] | 24509826@qq.com |
b676e67a2be2fd461702f27946b6db58bf5a602a | 1d342125c0f14dcbd56d02f6b85d40beb19b5a10 | /interfaces/animal/stagnant.py | 192590bd354dc9952090ccd44616cff669a99897 | [] | no_license | nss-cohort-36/keahua-arboretum-digital-destroyers | fb570a124c9c77a901722d271ca18c38742a2a37 | 7052fece09c00c32d2c245989315ee5695219a15 | refs/heads/master | 2020-12-19T04:25:13.269263 | 2020-01-29T17:40:00 | 2020-01-29T17:40:00 | 235,619,937 | 0 | 0 | null | 2020-01-29T18:01:38 | 2020-01-22T16:54:07 | Python | UTF-8 | Python | false | false | 148 | py | from .aquatic import IAquatic
class IStagnant(IAquatic):
def __init__(self):
super().__init__()
self.dwell_type = "stillwater" | [
"matthewscottblagg@gmail.com"
] | matthewscottblagg@gmail.com |
eb99914b6fe3e8f58cfe85a0b2d331a33565fb19 | 60341a48087ba9683a8ee773237426d6e9411cf2 | /hubspot/crm/objects/feedback_submissions/models/previous_page.py | 507d39e5b4f2a07a20d0c700b047b86283d10caa | [] | no_license | dalmaTeam/hubspot-api-python | 86051bc676c4e007f23d7e7b759a3481c13fdea6 | 7c60c0f572b98c73e1f1816bf5981396a42735f6 | refs/heads/master | 2023-06-29T10:53:04.404611 | 2021-07-23T14:03:03 | 2021-07-23T14:03:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,064 | py | # coding: utf-8
"""
Feedback Submissions
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import si... | [
"plaurynovich@hubspot.com"
] | plaurynovich@hubspot.com |
7717d5b027b8dd04eae03dca16efba7adc05a5a9 | e57d7785276053332c633b57f6925c90ad660580 | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_02_01/aio/operations/_resolve_private_link_service_id_operations.py | 305883969cbd73df32e03192f06cfe879f752c03 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 5,539 | 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"
] | adriananeci.noreply@github.com |
6e03b2df41395c711153b632f9ae05e2e9e58d42 | b0814b43440a36c9998924c9fe05f335302a2717 | /venv/lib/python2.7/site-packages/nipype/interfaces/slicer/surface.py | 6e84a7875dabad87047f07db0c2d79ef4a403f89 | [
"MIT"
] | permissive | nagyistge/electrode-gui | 0b47324ce8c61ffb54c24c400aee85f16fd79c7a | 6d89c78ea61935042ead5df5e1474101df3557eb | refs/heads/master | 2021-06-03T22:47:30.329355 | 2016-09-13T19:43:31 | 2016-09-13T19:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,187 | py | # -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
from nipype.interfaces.base import CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, traits, isdefined, InputMultiPath, OutputMultiPath
i... | [
"xavierislam@gmail.com"
] | xavierislam@gmail.com |
c893d4f0178ef7371b5ccb8bdde93d4981590a80 | 7699cd22ca370c89fb949eca80c587c0c3a9f8d5 | /clients/opening_quote/high_price.py | cd9e9be7c05aceb3fc8152f88c399ef07a8e4ad4 | [] | no_license | ccliuyang/trader | 8bc2d5f144784c9deca92908c209dc9dd69da4f2 | f7975352bd6c2f34e164a87b03c0cc5e02b48752 | refs/heads/master | 2023-02-10T07:44:24.498417 | 2021-01-12T02:06:08 | 2021-01-12T02:06:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,732 | py | from gevent import monkey; monkey.patch_all()
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), *(['..' + os.sep] * 2))))
import gevent
from clients.common import morning_client
from datetime import datetime, date, timedelta, time
from morning.back_data import holidays
fr... | [
"nnnlife@gmail.com"
] | nnnlife@gmail.com |
31b8195ebc6b66e72576c39573db54f394df7e49 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04013/s491767407.py | 0a1b3009b328e28350daacffd06009c1c38057f1 | [] | 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 | 641 | py | N, A = map(int, input().split()) # N枚数のカード, 平均をAにしたい
X = tuple(map(int, input().split())) # N枚のカードの中身
dp = [[[0]*(50*N+2) for _ in range(N+2)] for _ in range(N+2)]
dp[0][0][0] = 1 # 0枚の中から0枚選んで合計が0になる選び方が1通りある
for i in range(N):
for j in range(N+1):
for k in range(50*N+1):
# if dp[i][j][k]... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fa6e3b81e58e6880620d69439c3e6617bb0f2d24 | a0f0efaaaf69d6ccdc2a91596db29f04025f122c | /build/mongodb_store_msgs/devel/lib/python2.7/dist-packages/mongodb_store_msgs/msg/_MoveEntriesAction.py | beec80f857d14c89cc008cb09202c6c3138385cb | [] | no_license | chiuhandsome/ros_ws_test-git | 75da2723154c0dadbcec8d7b3b1f3f8b49aa5cd6 | 619909130c23927ccc902faa3ff6d04ae0f0fba9 | refs/heads/master | 2022-12-24T05:45:43.845717 | 2020-09-22T10:12:54 | 2020-09-22T10:12:54 | 297,582,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,544 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from mongodb_store_msgs/MoveEntriesAction.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import actionlib_msgs.msg
import genpy
import mongodb_store_msgs.msg
import std_m... | [
"chiuhandsome1966@gmail.com"
] | chiuhandsome1966@gmail.com |
05908f9e878730f361c397fe8138bb1d4e96e6e4 | f4e45e2f6a6c42571eefdc64773ca83c6b9c2b98 | /lib/telepot2/filtering.py | 3b6aca406e3f6ffe1af3f1a3657701be9b06abc3 | [] | no_license | soju6jan2/sjva2_src_obfuscate | 83659707ca16d94378b7eff4d20e5e7ccf224007 | e2dd6c733bbf34b444362011f11b5aca2053aa34 | refs/heads/master | 2023-04-21T12:27:01.132955 | 2021-05-06T17:35:03 | 2021-05-06T17:35:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | def pick(obj,keys):
def pick1(k):
if type(obj)is dict:
return obj[k]
else:
return getattr(obj,k)
if isinstance(keys,list):
return[pick1(k)for k in keys]
else:
return pick1(keys)
def match(data,template):
if isinstance(template,dict)and isinstance(data,dict):
def pick_and_match(kv):
template_key,t... | [
"cybersol@naver.com"
] | cybersol@naver.com |
1624a5f97468afb319da8fcebad9fbc440a0f1cb | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/Autodesk/Revit/UI/Mechanical.py | 7918f6d2c82c384d607a5c89c4a612322313f8a0 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,755 | py | # encoding: utf-8
# module Autodesk.Revit.UI.Mechanical calls itself Mechanical
# from RevitAPIUI,Version=17.0.0.0,Culture=neutral,PublicKeyToken=null
# by generator 1.145
# no doc
# no imports
# no functions
# classes
class DuctFittingAndAccessoryPressureDropUIData(object,IDisposable):
""" The input and output data... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
baa865fa991c54891788aec59bcb183d5b563a5f | 655a0c0de7b518b1b0b978fd17cd6da8576db9af | /src/envoy/config/filter/network/dubbo_proxy/v2alpha1/dubbo_proxy_pb2.py | 63c456b68de143878c07a08f1ba2bafc34d5fb8d | [
"Apache-2.0"
] | permissive | opensvc/igw_envoy | 1fe803e02f4166a6ce1d21e9f4f26e4184ce0694 | 939f8c1eac242156c9b179fa067d23be63e65167 | refs/heads/master | 2023-04-08T06:01:21.715904 | 2023-03-15T14:18:43 | 2023-03-15T14:18:43 | 155,705,611 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | true | 10,707 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: envoy/config/filter/network/dubbo_proxy/v2alpha1/dubbo_proxy.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as ... | [
"christophe.varoqui@opensvc.com"
] | christophe.varoqui@opensvc.com |
a76fbfcbd6a9727bd7e8f2f90802a7d1f3d3dfec | bdb3716c644b8d031af9a5285626d7ccf0ecb903 | /code/UI/OpenAPI/python-flask-server/KG2/openapi_server/test/test_entity_controller.py | e780d02dcb6fb787d438c3fd38e7c36eba951a02 | [
"MIT",
"Apache-2.0"
] | permissive | RTXteam/RTX | 97d2a8946d233d48cc1b165f5e575af21bda4b26 | ed0693dd03149e56f7dfaf431fb8a82ace0c4ef3 | refs/heads/master | 2023-09-01T21:48:49.008407 | 2023-09-01T20:55:06 | 2023-09-01T20:55:06 | 111,240,202 | 43 | 31 | MIT | 2023-09-14T16:20:01 | 2017-11-18T21:19:13 | Python | UTF-8 | Python | false | false | 872 | py | # coding: utf-8
from __future__ import absolute_import
import unittest
from flask import json
from six import BytesIO
from openapi_server.test import BaseTestCase
class TestEntityController(BaseTestCase):
"""EntityController integration test stubs"""
def test_get_entity(self):
"""Test case for get... | [
"edeutsch@systemsbiology.org"
] | edeutsch@systemsbiology.org |
273c9a78a2f06229134518a5ee0ee75c043c5e8f | cbd2eee46663fad5b5375b13c8c21b1b06eb4c6b | /ecloud/code/src/main/python/easted/network/__init__.py | dd0a418f0f5c9bd47a8e408f7d9ea0c723488ad7 | [] | no_license | 1026237416/Python | ef474ee40d7efcd6dabb6fb0ecba81b4dcfc7e14 | ffa8f9ffb8bfec114b0ca46295db05c4213c4c30 | refs/heads/master | 2021-07-05T00:57:00.456886 | 2019-04-26T10:13:46 | 2019-04-26T10:13:46 | 114,510,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # -*- coding: utf-8 -*-
from exception import *
from network import *
from networkdao import *
from networkhost import *
from subnet import *
from subnetdao import *
from subnet import *
from tenant_subnet import *
from tenant_host import *
from common import request_create_ports, request_delete_ports
| [
"1026237416@qq.com"
] | 1026237416@qq.com |
fdb12c98cca4cd1b2931ec80ce4bc5bd1cfc0bc4 | e902470b1e6dad9be93631d3663382082f2b3221 | /supervised_learning/0x03-optimization/12-learning_rate_decay.py | 5350524cf17e57663bd160289bdbecd21c9bff91 | [] | no_license | BrianFs04/holbertonschool-machine_learning | 11bb645d86a0de74434d37bb36a239534e7d0787 | d9b5fa4d60cd896c42242d9e72c348bd33046fba | refs/heads/master | 2022-12-30T07:13:12.868358 | 2020-10-03T22:40:36 | 2020-10-03T22:40:36 | 279,386,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | #!/usr/bin/env python3
"""learning_rate_decay"""
import tensorflow as tf
def learning_rate_decay(alpha, decay_rate, global_step, decay_step):
"""Creates a learning rate decay operation"""
rate_op = tf.train.inverse_time_decay(alpha, global_step, decay_step,
decay_rate... | [
"brayanflorezsanabria@gmail.com"
] | brayanflorezsanabria@gmail.com |
7bbba9fa880f15ce4c10fba89b19daed63c4b17e | c9c1ac74238bd9ce8598af9ec4a52baae3cd4c26 | /pkg/clm/DEBIAN/prerm | faadaf2324fcfda30cabf6dac71288502af74c20 | [
"Apache-2.0"
] | permissive | cloudcache/cc1 | 4dbd9b5931483eed2d62459546c502c2d0ceb513 | 360392995a8aea37573dd772d809a006b78f575b | refs/heads/master | 2021-01-24T04:13:54.670317 | 2014-06-06T08:17:46 | 2014-06-06T08:17:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | #!/usr/bin/python
import sys
import subprocess
import netifaces
if __name__ == '__main__':
if 'remove' in sys.argv:
log = open('/var/log/cc1/cm_install.log', 'a')
r = subprocess.call('cc1_clm_setup_config remove', shell=True, stdout=log)
r = subprocess.call('cc1_clm_setup_db_psql remove',... | [
"cc1@cloud.ifj.edu.pl"
] | cc1@cloud.ifj.edu.pl | |
dd02bba44f176099278785f7272ae549e975f3f3 | fa66cc0f9fba22da4b2a3291e804d358e88e0a47 | /class6/exercises/ex2a_yaml_inventory.py | 91ed3c734ef90b7de41327c17867727c82f012dd | [
"Apache-2.0"
] | permissive | bminus87/pyplus_course | d6aa2246b9882454bca029a0c5d807b461b89561 | 46fcf460df0e06c0df563822ba604c78b75043ae | refs/heads/master | 2020-05-30T00:53:19.291358 | 2019-05-30T19:12:28 | 2019-05-30T19:12:28 | 189,467,288 | 0 | 0 | Apache-2.0 | 2019-05-30T19:00:36 | 2019-05-30T19:00:36 | null | UTF-8 | Python | false | false | 928 | py | import pyeapi
import yaml
from getpass import getpass
def yaml_load_devices(filename="arista_devices.yml"):
with open(filename, "r") as f:
return yaml.safe_load(f)
raise ValueError("Reading YAML file failed")
def main():
devices = yaml_load_devices()
password = getpass()
for name, devi... | [
"ktbyers@twb-tech.com"
] | ktbyers@twb-tech.com |
5487a5680a39929ea9cadae8ca2975340c24f0cc | 83e42b592923e56b99ff16d3762e89ffb29a75dc | /collective/abovecontentportlets/abovecontentportlets.py | b69467fe1ef6b3010757bc81b282e20085aa35e7 | [] | no_license | intk/collective.abovecontentportlets | 996a1b2bac8c7a471b0e26287f08d87298b4a277 | 460c68e7e66622c355356e6f84e733e8d979ec11 | refs/heads/master | 2021-01-20T18:39:44.176794 | 2016-06-28T13:53:27 | 2016-06-28T13:53:27 | 62,136,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | from five import grok
from z3c.form import group, field
from zope import schema
from zope.interface import invariant, Invalid
from zope.schema.interfaces import IContextSourceBinder
from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
from plone.dexterity.content import Container
from plone.directives imp... | [
"andreslb1@gmail.com"
] | andreslb1@gmail.com |
f2e1711dfdbe726e45e948694eb6a02760f26fb7 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_370/ch20_2019_08_19_13_59_53_782660.py | ea6bf7b829c953e0f9b8066ff16007d74678b664 | [] | 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 | 121 | py | NOME=input('Qual o seu nome? ')
if NOME == 'Chris':
print('Todo mundo odeia o Chris')
else:
print('Olá, '+ NOME) | [
"you@example.com"
] | you@example.com |
418fc3f76fbbd227adf1da0a03818bf10b7febf0 | 17edb3537087dffeabfd9694c71ddf878088713c | /django-master/tests/model_meta/test.py | 8fd0a6bb330336b36f5f293e094a4d39abdbd213 | [
"BSD-3-Clause"
] | permissive | BrianBGrant/DNDC | dbb9004c7cddbb34fb16ca94992fc76127c4b588 | d0cdec5c5436f6fe1fd55d6bae093c21ccb27f6b | refs/heads/master | 2020-04-15T19:43:33.351799 | 2014-10-02T16:48:44 | 2014-10-02T16:48:44 | 42,128,284 | 2 | 1 | null | 2015-09-08T17:34:42 | 2015-09-08T17:34:41 | null | UTF-8 | Python | false | false | 24,972 | py | from django import test
from django.db.models.fields import related, CharField, Field, FieldDoesNotExist
from django.contrib.contenttypes.fields import GenericRelation
from .models import (
AbstractPerson, BasePerson, Person, Relating, Relation
)
TEST_RESULTS = {
'fields': {
Person: [
'id... | [
"nrubin@appliedgeosolutions.com"
] | nrubin@appliedgeosolutions.com |
7753fba106e04f5a55c9d9234dfd02dacd0afb9b | 6e9d54971c55336fe93551d38e3fc7929b6ac548 | /1008.ConstructBinarySearchTreefromPreorderTraversal.py | 5cef22d795f2cc7e88c313bb9bfd1a9a5673cc3d | [] | no_license | aucan/LeetCode-problems | 61549b69c33a9ac94b600791c4055d4fbfb5a0c3 | 57b84c684a9171100166133ee04a69665334ca84 | refs/heads/master | 2023-04-12T00:46:26.521951 | 2021-05-04T13:44:28 | 2021-05-04T13:44:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 20 11:04:36 2020
@author: nenad
"""
"""
Problem URL: https://leetcode.com/problems/construct-binary-search-tree-from-preorder-traversal/
Problem description:
Return the root node of a binary search tree that matches the given preorder traversal.
(... | [
"nenadpantelickg@gmail.com"
] | nenadpantelickg@gmail.com |
a20a45a37faa268905d98259d366dd9792eac8a8 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-eg/huaweicloudsdkeg/v1/model/update_channel_request.py | 16e1db4ed57fc9808a3041c879fafe6b983edd17 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,925 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateChannelRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribu... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8a2f0e7ff7c6835148031531256843f97c099281 | 1cc344683f0cb166f17bcd74bca5656124597a7f | /ideal_college/staff/admin.py | 6b4e21ea97f7a2d5fcef2e97c1c2796f58a2ebec | [] | no_license | technomicssolutions/ideal_college | f15974b8d048b40c8f27212840599fc28bf02d76 | 712bd89ee8428cd5ae4473ccab417f2755fc4ecc | refs/heads/master | 2020-06-05T00:15:13.337423 | 2015-04-28T06:52:09 | 2015-04-28T06:52:09 | 23,145,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.contrib import admin
from staff.models import *
admin.site.register(Designation)
admin.site.register(Staff) | [
"geethu@technomicssolutions.com"
] | geethu@technomicssolutions.com |
eb146857efd243b4b309e66308a85ae8576f3360 | 71324aca11e16d6da17b0440e72d0107f5af6e04 | /ptt_blog/blog/models.py | aa4bd122f7bcb84f921c94e8680a92d716cb437f | [
"MIT"
] | permissive | n3k0fi5t/Django_Tutorial | 6bad82a919d1de0162b34f4c7f753cd126b05cc3 | e3953335ca88fe22c68268fd76afb7c4f9bbb55f | refs/heads/master | 2023-02-16T07:56:56.416031 | 2021-01-11T23:17:33 | 2021-01-11T23:17:33 | 291,436,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from django.db import models
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=50)
content = models.TextField()
date = models.DateTimeField(auto_now_add=True)
class Meta:
ordered = ['-date', ]
class Push(models.Model):
pusher = models.CharField(max_... | [
"r05922078@ntu.edu.tw"
] | r05922078@ntu.edu.tw |
55f4af44562a8fc8d1b2bddb29a09dc31b69a781 | 4913fb7fd32c3dd0da53af7a012569ec2254b35a | /86.继承.py | 2b60c2224b77d2ecd852301be1d17e7343045f9e | [] | no_license | puhaoran12/python_note | 8a21954050ba3126f2ef6d5d1e4a2904df954b9b | b807e7b7dd90c87cee606f50421400c8f3d0ba03 | refs/heads/master | 2023-07-07T20:20:04.546541 | 2021-08-21T02:17:12 | 2021-08-21T02:17:12 | 398,439,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # 继承
# 语法格式:
# class 子类类名(父类1,父类2...):
# pass
# 如果一个类没有继承任何类,则默认继承object
# 定义子类时,必须在其构造函数中调用父类的构造函数
class Person(object):
def __init__(self,name,age):
self.name=name
self.age=age
def info(self):
print('姓名:{0},年龄:{1}'.format(self.name,self.age))
class Student(Person):
def __init_... | [
"276191374@qq.com"
] | 276191374@qq.com |
5fd4bd2fcda784801ee0548c57a0339b09041fa4 | 76f1331d083d360fb3822312537e72d4ff9d50b5 | /keywords_extraction/multilanguage/util/file_utils.py | 654041f49873d8e758e9dc718089da91ad352125 | [] | no_license | ZouJoshua/ml_project | 2fe0efee49aa1454b04cd83c61455232601720a6 | b1d8eb050182cd782bc6f3bb3ac1429fe22ab7b7 | refs/heads/master | 2021-07-22T10:37:56.452484 | 2020-05-09T09:54:39 | 2020-05-09T09:54:39 | 158,562,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Author : Joshua
@Time : 12/5/19 1:47 PM
@File : file_utils.py
@Desc :
"""
from keywords_extraction.multilanguage.core.language import Language
def writeLines(filePath, lines):
writer = open(filePath, 'w', encoding='utf-8')
for line in lines:
... | [
"joshua_zou@163.com"
] | joshua_zou@163.com |
437324b82fcec902626d1fcec0186f7e95d6bed7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02270/s773469916.py | da9d345dfc9c9101bb74b1f5e3021c1dd24ec32e | [] | 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 | 521 | py | import math
n, k = map(int, input().split())
num = [int(input()) for i in range(n)]
#num.sort()
left = max(max(num), math.ceil(sum(num)/k))
right = sum(num)
while left < right:
mid = (left + right) // 2
track = 1
cnt = 0
flag = 0
for i in num:
cnt += i
if cnt > mid:
track... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
343da047233e132fb28a1787d96c19fa6b312cc8 | 87b006149b16a3028385fc58cf781f5a12c94ad9 | /PyFunceble/query/http_status_code.py | cd4836d29c4b0b24c22337f13be5a6a56335e063 | [
"Apache-2.0"
] | permissive | spirillen/PyFunceble | 04d03b2678ad46ec81c520a32df5397832414451 | 3c8f62062bffa0e16d465c150a853af8bf2f2205 | refs/heads/master | 2023-05-12T04:32:04.587521 | 2022-11-20T11:19:06 | 2022-11-20T11:19:06 | 237,827,167 | 2 | 0 | Apache-2.0 | 2021-01-27T10:09:59 | 2020-02-02T19:50:47 | Python | UTF-8 | Python | false | false | 11,767 | py | """
The tool to check the availability or syntax of domain, IP or URL.
::
██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝
██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █... | [
"contact@funilrys.com"
] | contact@funilrys.com |
b6c3622f32e6ca37c49c9b38c97cdb597eb83ca8 | d9c0a55dfc3a87e4166f3ee73d60d302730278d1 | /board/urls.py | 2215b2f3120742acd4a673f42981a768205a51a5 | [] | no_license | mzazakeith/codeboard | 358872794b1b2c35886bde8c26631e7d4877883c | f73b9a303d6ab5984c4ce73684e9ed34ceff4fe4 | refs/heads/development | 2020-03-25T15:59:23.795795 | 2018-08-10T07:20:36 | 2018-08-10T07:20:36 | 143,910,011 | 0 | 0 | null | 2018-08-10T07:20:37 | 2018-08-07T18:07:48 | Python | UTF-8 | Python | false | false | 625 | py | from django.conf.urls import url, include
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^home$', views.home, name='home'),
url(r'^new-service$', views.new_service, name='new-service'),
url(r'^userprofile/(?P<user_id>\d+)', views.userprofile, name='profile'),
url(... | [
"mzazakeith@gmail.com"
] | mzazakeith@gmail.com |
5d43aaf753ce4267514d56d9a4f3b9e3b905f9c2 | 3d989666e6ceb2abc9175dcf7b1d0c1f8c76d205 | /py_solution/p119_yanghui_ii.py | 610dda33ec40d7516cd4cee381295e6206749b63 | [] | no_license | dengshilong/leetcode | 00ae0898b4645efd1de69a13f2fa92606e899297 | 5ab258f04771db37a3beb3cb0c490a06183f7b51 | refs/heads/master | 2021-01-10T11:58:10.396399 | 2020-04-10T12:10:54 | 2020-04-10T12:10:54 | 47,912,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | class Solution(object):
def getRow(self, rowIndex):
"""
:type rowIndex: int
:rtype: List[int]
"""
res = [0] * (rowIndex + 1)
res[0] = 1
for i in range(1, rowIndex + 1):
for j in range(i, 0, -1):
if j == i:
res[j]... | [
"dengshilong1988@gmail.com"
] | dengshilong1988@gmail.com |
0e26994af468ecff3062e2111115bd78d92a4d34 | 2869eb01810389ab7b64355ec189800e7b1d49b9 | /picoCTF 2021/Cryptography/ddes/ddes.py | d417d6774654db27ccb697bcb42c0ffd37d83515 | [] | no_license | Giantpizzahead/ctf-archive | 096b1673296510bddef9f284700ebdb0e76d71a7 | 5063cd2889cd300aade440429faf9c4ca68511ef | refs/heads/master | 2021-12-28T14:23:33.598960 | 2021-12-20T17:23:55 | 2021-12-20T17:23:55 | 252,905,854 | 1 | 0 | null | 2021-12-20T17:14:05 | 2020-04-04T04:11:24 | C | UTF-8 | Python | false | false | 1,023 | py | #!/usr/bin/python3 -u
from Crypto.Cipher import DES
import binascii
import itertools
import random
import string
def pad(msg):
block_len = 8
over = len(msg) % block_len
pad = block_len - over
return (msg + " " * pad).encode()
def generate_key():
return pad("".join(random.choice(string.digits) for... | [
"43867185+Giantpizzahead@users.noreply.github.com"
] | 43867185+Giantpizzahead@users.noreply.github.com |
b1eb29ee864eccdeb3ab8cfa998a45eb742f03e2 | 44bbfe1c9a7f16e632cdd27c2de058033b33ea6d | /mayan/apps/document_indexing/migrations/0013_auto_20170714_2133.py | 6ccaeb6689a30d2b114e6f833b74cc71243d8372 | [
"Apache-2.0",
"ISC",
"MIT"
] | permissive | lxny2004/open-paperless | 34025c3e8ac7b4236b0d8fc5ca27fc11d50869bc | a8b45f8f0ee5d7a1b9afca5291c6bfaae3db8280 | refs/heads/master | 2020-04-27T04:46:25.992405 | 2019-03-06T03:30:15 | 2019-03-06T03:30:15 | 174,064,366 | 0 | 0 | NOASSERTION | 2019-03-06T03:29:20 | 2019-03-06T03:29:20 | null | UTF-8 | Python | false | false | 480 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-07-14 21:33
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('document_indexing', '0012_auto_20170530_0728'),
]
operations = [
migrations.AlterMo... | [
"littlezhoubear@gmail.com"
] | littlezhoubear@gmail.com |
b62113cd03cc7ab736d4f927336349eb36009d71 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2606/59018/259657.py | cd4fd07059a27026b20e660f67c13043d6659581 | [] | 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 | 93 | py | a1=input()[1:-2].split(',')
a=[int(y) for y in a1]
target=int(input())
print(a.index(target)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4eb91ee482ea775363eefe35c1d564339ab6ae90 | f6688132ec14a9d03c8bb05e85819f810fd3e4e6 | /tfold/object_detection/protos/ssd_pb2.py | 4e8d32ed2521c56c9b2a282a8c96024adf452b5d | [
"Apache-2.0"
] | permissive | mariusionescu/tfold | 44515b9eba027a8d4a9265e6f7299dc08294dc42 | b6a9913d29a62326bfc3086fa14ed317d1e02a0a | refs/heads/master | 2020-04-08T19:59:39.676558 | 2018-12-05T19:47:57 | 2018-12-05T19:47:57 | 159,679,441 | 0 | 0 | Apache-2.0 | 2018-11-29T14:33:13 | 2018-11-29T14:33:12 | null | UTF-8 | Python | false | true | 23,985 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: tfold.object_detection/protos/ssd.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.pro... | [
"marius@mi.www.ro"
] | marius@mi.www.ro |
4bec73da24b04e8ce1af04ca95cda3cfc8369b6e | 9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d | /python/uline/uline/uline/handlers/api/risk/urls.py | 1cf460fe48872c54f9c6f0ee70bdc2f31883a7c4 | [] | no_license | apollowesley/Demo | f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8 | 471c4af95d3a7222d6933afc571a8e52e8fe4aee | refs/heads/master | 2021-02-15T04:01:51.590697 | 2018-01-29T01:44:29 | 2018-01-29T01:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from tornado.web import URLSpec as url
from uline.handlers.api.risk.alipay_risk import AlipayTransactionRiskNotify
# 前缀/api/fee/
urls = [
url(r'/alipay', AlipayTransactionRiskNotify)
]
| [
"36821277@qq.com"
] | 36821277@qq.com |
50b551d144ecadac213a7c075f1701bc50f5ea45 | e64b6966665a0964e382953a96df1ebe1a41cf10 | /0001-0100/0096-Unique Binary Search Trees/0096-Unique Binary Search Trees.py | 277969006a390820311ba754da3b175119ed218e | [
"MIT"
] | permissive | deepbas/LeetCode | 8dfbb2b0b88b32c01033e6eabd8a3641c9a57083 | a93f907f03cb3861e6858370f57129e01563fe5a | refs/heads/master | 2020-08-01T14:14:38.649057 | 2019-09-09T01:51:42 | 2019-09-09T01:51:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | class Solution:
def numTrees(self, n: int) -> int:
dp = [0] * (n + 1)
dp[0] = 1
for j in range(1, n + 1):
for i in range(j):
dp[j] += dp[i] * dp[j - i - 1]
return dp[n]
| [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
412857054cb500dfa2b27027186cf74f4f227492 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20180525/example_structlog/fixedlog/__init__.py | f62cd854d6508bd55d2fb0d39b93de3b120d5ff5 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 340 | py | import structlog
def get_logger(name, *args, **kwargs):
logger = structlog.get_logger(name, source=name)
return logger
DEFAULT_PROCESSORS = [
structlog.processors.JSONRenderer(),
]
def setup(*args, **kwargs):
kwargs["processors"] = kwargs.pop("processors", DEFAULT_PROCESSORS)
structlog.configu... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
bb02b542b17a538bf4ce6df589bf32f9432df22d | 010c5fbc97731286be00028ff33fc981d943bca3 | /primal/src/code/impute/impute/dev/plot_segments.py | 230cd92d5c372b17af8ef68bb5ce21fcfd9e04d8 | [] | no_license | orenlivne/ober | 6ce41e0f75d3a8baebc53e28d7f6ae4aeb645f30 | 810b16b2611f32c191182042240851152784edea | refs/heads/master | 2021-01-23T13:48:49.172653 | 2014-04-03T13:57:44 | 2014-04-03T13:57:44 | 6,902,212 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | '''
Created on Jan 31, 2013
@author: oren
'''
import sys, matplotlib.pylab as P, numpy as np
if __name__ == '__main__':
s = np.loadtxt(sys.argv[1])
P.figure(1)
P.clf()
P.hist((s[:, 3] - s[:, 2]) / 1e6, 50)
P.xlabel('Length [Mbp]')
P.ylabel('Frequency')
P.title('IBD Segment Length Distri... | [
"oren.livne@gmail.com"
] | oren.livne@gmail.com |
2c797dafb38c53aaf146fd45cba67212fe584319 | dacb2bba2c91877c5157ccb8ab34e112abfea0ee | /projects/project_12/src/navigation/scripts/waypoint_logger.py | 15828bacbbada3e4a83c3efa3875b7e5f4697bdd | [] | no_license | amuamushu/projects-2020-2021 | 7fd4e29a8f51406ded59a97cd878a5752ffc700b | f1c385e46d2d5475b28dec91b57a933ac81c23c5 | refs/heads/main | 2023-04-01T11:47:55.935278 | 2021-03-28T00:37:29 | 2021-03-28T00:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | #!/usr/bin/env python
import pandas as pd
import rospy
from nav_msgs.msg import Odometry
class WaypointLogger:
def __init__(self):
self.output_name = rospy.get_param("~wp_log_output", "saved_waypoints.csv")
self.odom_topic = rospy.get_param("~odom_topic", "/vehicle/odom")
# save waypoints... | [
"aaron.fraenkel@gmail.com"
] | aaron.fraenkel@gmail.com |
2d38b298243ab9608a59b9b5c60b83576b6a368b | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20200414/codes/output/code111.py | e947c90eb401915b8fe4acb6b8e2111b71fd0060 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 410 | py | import pygal
box_plot = pygal.Box(box_mode="pstdev")
box_plot.title = 'V8 benchmark results'
box_plot.add('Chrome', [6395, 8212, 7520, 7218, 12464, 1660, 2123, 8607])
box_plot.add('Firefox', [7473, 8099, 11700, 2651, 6361, 1044, 3797, 9450])
box_plot.add('Opera', [3472, 2933, 4203, 5229, 5810, 1828, 9013, 4669])
box_pl... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
afb9fc8593fbbc1f50b77535b5f02b2d020e9683 | fce8a56e09739bad6b0953fc3d890292bb2b7f31 | /RedditScraperService/FileWriting.py | 30dcc3aaadff30e3bffd6fc5040aac23ee460864 | [] | no_license | whorst/WsbInvesting | d69f84af2e9bd81560ee8b88d7e882f022350aae | e48ea1a2f3434ab3084746ecce4012c656800280 | refs/heads/master | 2022-11-26T00:23:24.887989 | 2020-08-06T03:04:16 | 2020-08-06T03:04:16 | 284,287,474 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | def writeRidiculouslyHighOrLowToFile(comment):
outFile = open("resources/files/ridiculouslyHighOrLowReason", "a")
outFile.write(comment)
outFile.write("\n\n")
outFile.close()
def writeClosePositionFailureToFile(msg):
outFile = open("resources/files/closePositionFailure", "a")
outFile.write(msg+... | [
"you@example.com"
] | you@example.com |
8b9a6b1fa210fa7d31ae50de5904a35240c8326d | 7c8da5b1fa05c6d6799aa3d0aef0fadb215f04db | /example/vis.py | 97ff149c6340e0ad47c5b8a30f5d81210c343df5 | [] | no_license | jackd/tiny_imagenet | a71a7b2a3b328dd6e2a06ec37cf4da365b837d32 | 1669940c8ec6ecc6d38a7094b4a00a7182020603 | refs/heads/master | 2020-04-12T08:29:34.255095 | 2018-12-19T05:12:05 | 2018-12-19T05:12:05 | 162,386,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | #!/usr/bin/python
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
from tiny_imagenet.manager import TinyImagenetManager, N_VAL_EXAMPLES
man = TinyImagenetManager()
print(man.extract_d... | [
"thedomjack@gmail.com"
] | thedomjack@gmail.com |
4315e3bdde66e49919a7e3977603a8efd6504cd7 | 7f7e5e86dde3dbae74d5bc059d31d26184553287 | /docs/conf.py | d449e6c2811de5ea921cceb2e1dd288fe4382eb5 | [
"MIT"
] | permissive | CRFS/python3-ncplib | 9ada935dcecbc5d99ab03a8e90e16c1f1178f136 | 1f3d527c71749e63a28f772b7b8d9442281889be | refs/heads/master | 2023-05-11T09:46:25.292060 | 2023-04-30T11:34:23 | 2023-04-30T11:34:23 | 37,270,803 | 4 | 2 | MIT | 2023-04-30T11:34:24 | 2015-06-11T15:51:08 | Python | UTF-8 | Python | false | false | 9,604 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# ncplib documentation build configuration file, created by
# sphinx-quickstart on Thu Jun 2 08:41:36 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# aut... | [
"dave@etianen.com"
] | dave@etianen.com |
ad13fe4d4034323194ccb0aa7d343a294e231820 | 7bb9bd2bdadef1590b2ef7ff309e08abf454e49d | /Tests/pydeijao.py | 1c0590f6fee34dceac4db08a964cc1f5fc772b52 | [] | no_license | ALREstevam/Curso-de-Python-e-Programacao-com-Python | afdf12717a710f20d4513d5df375ba63ba1e1c19 | af6227376736e63810e5979be54eb1c433d669ac | refs/heads/master | 2021-09-07T12:11:17.158298 | 2018-02-22T17:47:19 | 2018-02-22T17:47:19 | 87,453,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | import requests as Rq
from bs4 import BeautifulSoup as Bs
link = 'http://www.pfl.unicamp.br/Rest/view/site/cardapio.php'
page = Rq.get(link)
soup = Bs(page.content, 'html.parser', from_encoding='iso-8859-1')
soup = Bs(page.content, 'html.parser')
def formatInput(text):
text = text.replace('\n', '')
text = te... | [
"a166348@g.unicamp.com"
] | a166348@g.unicamp.com |
ad841ea0fa5e33e9fa357d47590200fdfde6347c | dadd814aceb7ad6698107dea474f92855f79ba51 | /ReplicatedStochasticGradientDescent/rsgd/ReplicatedStochasticGradientDescent.py | 978541c75ccda28c54978f4ee9d18d6fed0ffb8a | [
"MIT"
] | permissive | Nico-Curti/rSGD | 16e41524be2dd8d4988a5ecd368d3ac72d072ffe | b1f72c06a7f68c04fc97aaeae45d75852b541d42 | refs/heads/master | 2020-05-20T15:18:33.520000 | 2019-10-01T14:00:40 | 2019-10-01T14:00:40 | 185,641,977 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,828 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import division
import pickle
import pandas as pd
import numpy as np
import warnings
from scipy.special import erf
from .Patterns import Pattern
from .misc import _check_string
from lib.ReplicatedStochasticGradientD... | [
"nico.curti2@unibo.it"
] | nico.curti2@unibo.it |
5e9517f7cd2ef1665d41f8b905ff72df96c9955c | 6e5ab77fee1fb4a0310213dd8c6dd8601828b1b9 | /Algorithm/Swea/D3_10761.py | 32b83f64fe69ec3ebfcdef0f23b68b5069769425 | [] | no_license | hongyong3/TIL | 36d031c0da9e3e6db3eebb977bd3e12df00a849f | 7f1492128e957a78fc95b255f4f7f2978161e471 | refs/heads/master | 2023-08-19T09:16:03.231757 | 2023-08-18T09:38:47 | 2023-08-18T09:38:47 | 162,100,258 | 1 | 0 | null | 2023-02-11T00:52:32 | 2018-12-17T08:42:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,755 | py | import sys
sys.stdin = open("D3_10761_input.txt", "r")
def solve1(a, b, ad, bd):
if a[0][2] > ad:
ad += 1
T = int(input())
for test_case in range(T):
data = input().split()[1:]
O, B, k = [], [], 1 # [k, name, distance]; 순서, name, 거리
ODist, BDist = 1, 1
ans = 0
while data:
if d... | [
"chy66822495@gmail.com"
] | chy66822495@gmail.com |
027615d70d9fdcdf0d7bf877bb460b3469d5d748 | 046207f434966462fff55f634ba5a450d2208534 | /APSS/hanoi.py | 21b4fc20625f00db38af0fb461694eb31d1690ae | [] | no_license | sungsikyang92/pythonStudy | e293e1ac8af443809f840ccee7052a8f57480b70 | 26522b5e232ccd9ab25c52122d254aa7249a8fdf | refs/heads/master | 2023-07-04T16:58:40.318976 | 2021-08-04T02:00:27 | 2021-08-04T02:00:27 | 365,398,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | def hanoi_tower(n, start, end):
if n == 1:
print(start, end)
return
hanoi_tower(n - 1, start, 6 - start - end) # 1단계
print(start, end) # 2단계
hanoi_tower(n - 1, 6 - start - end, end) # 3단계
n = int(input())
print(2 ** n - 1)
hanoi_tower(n, 1, 3)
# 하노이의 탑 # 입력: 옮기려는 원반의 갯수 n
# 옮길 원반이 ... | [
"sungsik.yang92@gmail.com"
] | sungsik.yang92@gmail.com |
a0fc06bf78776729139fe2a1d000a1a3dc8067cd | 6c49c40d35d485c6fa7f9b92358b0888751b1dbe | /data/QSO_CIV_catalogs/matchingHam17toKoz17.py | d1e772e4082e9901d45e7d1b9c9c7bb813dfb224 | [] | no_license | d80b2t/CIV_CLQs | 7f8bfa954f29e9516ddb9ce80c59fffe9ce8235b | 95ea176c8f5ab6ee0c19d42aab964ebfd8bd0ce8 | refs/heads/master | 2020-08-31T20:56:17.168339 | 2020-07-30T13:35:19 | 2020-07-30T13:35:19 | 218,782,627 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py |
import numpy as np
import pandas as pd
from pandas import DataFrame
from astropy.io import fits
from astropy.io import ascii
from astropy.table import Table
## Hamann et al. (2017) ERQ BOSS DR12 catalog
path = '/cos_pc19a_npr/data/ERQs/Hamann2017_CIVcatalog/'
filename = 'C4N5REWs_DR12v11_MNRAS.fit... | [
"npross@lbl.gov"
] | npross@lbl.gov |
d372b40b45954581e27277427a4693ec3ac1125d | d92ce9a32bf20086e30701585a4e73c1f2469aff | /Programs/dsaenv/lib/python3.6/site-packages/pkg_resources/_vendor/packaging/__init__.py | 0a8b952fb5bfc53a50be9c2858538e2322e08730 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | Prem-chouhan/fellowshipProgram_PremsinghChouhan | f61cf4407458f14ef7eb6d80effb25f9592d2552 | 33e6b57f6c75a80d8a3d1f868d379e85365a1336 | refs/heads/master | 2020-09-14T12:45:16.269268 | 2019-12-23T14:24:10 | 2019-12-23T14:24:10 | 223,128,906 | 0 | 1 | null | 2020-07-22T11:50:46 | 2019-11-21T08:47:28 | Python | UTF-8 | Python | false | false | 519 | py | # This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this inventorymanager
# for complete details.
from __future__ import absolute_import, division, print_function
from .__about__ import (
__author__, __copyright__, __email__, _... | [
"antonyalexcm@gmail.com"
] | antonyalexcm@gmail.com |
094cca08d2e6669c3f9919555d9985f0bd653d5a | 1ed536ef1527e6655217e731f622d643ece49c2b | /scripts/links2fasta.py | 1c68c928d99a83eb5b7a1d4e7307d3cfc697cb29 | [] | no_license | siping/cgat | de0f7af124eb38c72d7dece78fff83ff92ddbf96 | aa4cc85ffdc53998ea1a5ac5516df2d16c254d2e | refs/heads/master | 2021-01-22T13:03:18.060139 | 2013-10-07T15:53:55 | 2013-10-07T15:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,378 | py | '''
links2fasta.py - convert links into alignments
==============================================
:Author: Andreas Heger
:Release: $Id$
:Date: |today|
:Tags: Python
Purpose
-------
.. todo::
describe purpose of the script.
Usage
-----
Example::
python links2fasta.py --help
Type::
python links2fasta... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
8dcb09f3f8575bdcaa50a1cc60c11410132e1057 | 8b2e95525139765c5344cc7992203def31b4a300 | /Python-PSdrone/DRONEtowple.py | 1e7fde360af416ea7e17fcad4989e444ac0f22bb | [] | no_license | tttienthinh/Drone | e84ff2b7dea32346e0717a9597a980e15a43543b | 73e98a0e727128a6e290872befe3a42df3d45c7c | refs/heads/master | 2022-04-21T20:16:26.169552 | 2020-04-10T19:31:20 | 2020-04-10T19:31:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | from ps_drone import *
from threading import Thread
class DroneTowple(Thread):
def __init__(self):
self.drone = Drone() # Start using drone
self.drone.startup() # Connects to drone and starts subprocesses
self.drone.reset() # Always good, at start
while self.drone.getBattery()... | [
"tranthuongtienthinh@gmail.com"
] | tranthuongtienthinh@gmail.com |
f41bc5dcd8f481d090853be8b87143d2ea9ff3f8 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /JBkfqYW4iYwmgvwTf_5.py | 582e98c416631fbc83dbdb5cd9b9d88f03ac5c67 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | """
Create a function that returns `True` if a number is prime, and `False`
otherwise. A prime number is any positive integer that is evenly divisible by
only two divisors: 1 and itself.
The first ten prime numbers are:
2, 3, 5, 7, 11, 13, 17, 19, 23, 29
### Examples
is_prime(31) ➞ True
is_prime... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d0e588e90b6e9d3db72d1392a01a7e6b09d3bdb7 | 1b5404b8099de74d4e39e0a41b1d04c61defa8d4 | /five-words-five-letters/stuff/idea1.py | ed03774f208d9a8f86f2c874a5aa0592ccdb6ad7 | [] | no_license | ipeterov/random-stuff | 5d07bdcfdcb145d06ed89095f2ad34b70ff0f0bd | dbb38d42331f636919fd149b23783e02ee2c9afb | refs/heads/master | 2023-05-14T00:41:51.122251 | 2023-05-04T12:10:26 | 2023-05-04T12:10:26 | 206,028,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | import json
N_WORDS = 4
with open("data.json") as f:
data = json.load(f)
words = data["words"]
found_words = []
letters = set()
while len(found_words) < N_WORDS:
for word in words:
if set(word).intersection(letters):
continue
if not found_words:
print(f"Trying {word}... | [
"ipeterov1@gmail.com"
] | ipeterov1@gmail.com |
744685a3a5a9654399524c7be7eeb912353c7b3b | e3abf21d5e3aac6de49395db8dae56565198a701 | /workon/contrib/flow/redis/consumer.py | 758084a6d86ba4b7505738396020753ea64447ba | [
"BSD-3-Clause"
] | permissive | workon-io/django-workon_old | 0bcb63025eda5d6815b082d23e95ab22385d6233 | be935a07a855b2150b4b81ee87d5041761ff168e | refs/heads/master | 2021-08-19T07:24:19.801106 | 2017-11-25T06:13:00 | 2017-11-25T06:13:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | import asyncio
from aioredis import create_connection, Channel
import websockets
async def publish_to_redis(msg, path):
# Connect to Redis
conn = await create_connection(('localhost', 6379))
# Publish to channel "lightlevel{path}"
await conn.execute('publish', 'lightlevel{}'.format(path), msg)
async... | [
"autrusseau.damien@gmail.com"
] | autrusseau.damien@gmail.com |
f075789d1da3f0e16a12c9a8acfcde09b6e99bf2 | 8b57c6609e4bf3e6f5e730b7a4a996ad6b7023f0 | /models/view_escaping/search.py | e2ff59769f0e7b547699cce159f1c3593f689047 | [] | no_license | bullll/splunk | 862d9595ad28adf0e12afa92a18e2c96308b19fe | 7cf8a158bc8e1cecef374dad9165d44ccb00c6e0 | refs/heads/master | 2022-04-20T11:48:50.573979 | 2020-04-23T18:12:58 | 2020-04-23T18:12:58 | 258,293,313 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,501 | py | from __future__ import absolute_import
from builtins import object
from splunk.models.view_escaping.base import STRING_SEARCH_MODE, DEFAULT_SEARCH_ID,POST_SEARCH_MODE
from splunk.models.view_escaping.base import SAVED_SEARCH_MODE, TEMPLATE_SEARCH_MODE
from splunk.models.view_escaping.drilldown import parseEventHandler... | [
"splunk@x.y"
] | splunk@x.y |
9ce428f475168d006ce5e4484cc7ed838008ff93 | 3545ee160458acac7452666aa07826b58e144351 | /demo/text_recognition/__base__/test_scripts/test_crnn.py | e8f2480000631e7e11685879696526362fa2f576 | [
"Apache-2.0"
] | permissive | OCRWorld/DAVAR-Lab-OCR | 7cc81af43a0e8f60066e7761d950f509c40cfd46 | fb47a96d1a38f5ce634c6f12d710ed5300cc89fc | refs/heads/main | 2023-08-29T09:41:19.377628 | 2021-11-08T11:16:37 | 2021-11-08T11:16:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | """
##################################################################################################
# Copyright Info : Copyright (c) Davar Lab @ Hikvision Research Institute. All rights reserved.
# Filename : test_crnn.py
# Abstract : CRNN Model evaluation config
# Current Version: 1.0.0
# D... | [
"qiaoliang6@hikvision.com"
] | qiaoliang6@hikvision.com |
dc3d16d9e2f41a0ba7b4b953991209736a19d45f | 0bc57447bedd04510a94a35cdee5b8ffdf3e5245 | /musics/urls.py | 4f2331c8f8e2ee46fc5241e057da0295090d012d | [] | no_license | GH-Lim/DRF | 243eead15f28bfbae056d01e0e0821058c39ca38 | b839df7b8eb1adbc72f31b530700389536551308 | refs/heads/master | 2020-08-26T12:14:15.010107 | 2019-10-24T04:37:43 | 2019-10-24T04:37:43 | 217,007,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | from django.urls import path
from drf_yasg.views import get_schema_view
from drf_yasg import openapi
from . import views
schema_view = get_schema_view(
openapi.Info(
title='Music API',
default_version='v1',
description='음악 관련 API 서비스입니다.',
)
)
app_name = 'musics'
urlpatterns = [
p... | [
"gunhyuck11@gmail.com"
] | gunhyuck11@gmail.com |
6b5349d39fd002718d738dbc82a3a4e7a56d2951 | f614e8567f9458e298c651d0be166da9fc72b4bf | /Django/Solutions/Library + guide/book_app/admin.py | f9c0e4512a43793359d50e572636f53a7f0fbdcf | [] | no_license | PdxCodeGuild/class_Binary_Beasts | 458c5be00b7bce3bb4ac9b7ab485c47f72be4294 | b1298cb5d74513873f82be4ed37676f8b0de93dd | refs/heads/master | 2023-06-28T07:05:21.703491 | 2021-07-29T03:44:09 | 2021-07-29T03:44:09 | 344,980,863 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from django.contrib import admin
from .models import Author, Book, LandBook
# Register your models here.
admin.site.register(Author)
admin.site.register(Book)
admin.site.register(LandBook) | [
"ademichieli@squarespace.com"
] | ademichieli@squarespace.com |
c4c57f37ed4a49d9eb574c0bd04b37b0ad5aa68b | 747f759311d404af31c0f80029e88098193f6269 | /addons/pxgo_bank_statement_analytic/__openerp__.py | bc4a6165e0019bfd1aa45c93a4a573e041b856ba | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | /home/openerp/production/extra-addons/pxgo_bank_statement_analytic/__openerp__.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
4d09d8081569fd51a578fd6ce0ad57f163f3fc80 | 044bb7ac47cfc1a6dc685e81637d6049e5cee452 | /backend_deploy_0330_21140/urls.py | 4e516b775d26f86e79fef19a8ad7ccb1d5a5c7d4 | [] | no_license | crowdbotics-apps/backend-deploy-0330-21140 | c1034bad2df5d212efd4b0d372a96af08e007444 | 57a5e272767f317d5072a6287bf86e80a321d2f5 | refs/heads/master | 2023-03-28T12:21:00.269768 | 2021-03-30T16:53:08 | 2021-03-30T16:53:08 | 353,063,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | """backend_deploy_0330_21140 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
db8d4d672410d929a4d61b58127f7fd8a6612656 | aa1352a2f32c0c36194d3a6f8e683adba487a3eb | /FiRoom_backend/tryon/migrations/0002_userbodyshot.py | bef0d540635aef2bce342031f71eb08313e492d7 | [] | no_license | Ace-bb/FiRoom_backend | 6c98d01c40e8de31ccbe86beaeada6c62516705e | efd4d9c1d7265e42f56638d5374a569a146acc03 | refs/heads/main | 2023-03-30T15:48:21.376390 | 2021-03-23T15:53:48 | 2021-03-23T15:53:48 | 338,780,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # Generated by Django 3.1.4 on 2021-03-14 10:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tryon', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='userBodyShot',
fields=[
('id... | [
"13489323285@163.com"
] | 13489323285@163.com |
4e6beec5dd0e85ffc2488e15652415b40cee11c3 | 23130cd12e38dbce8db8102810edaad70b240ae2 | /lintcode/594.py | a81e22c00509f4292f1898da5963ca42968389f4 | [
"MIT"
] | permissive | kangli-bionic/algorithm | ee6687c82101088db20f10fb958b4e45e97d3d31 | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | refs/heads/master | 2023-01-05T09:29:33.204253 | 2020-10-25T17:29:38 | 2020-10-25T17:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,032 | py | """
robin karp:
abcdefgh, find string def
we only need to calculate a hash for def, that kaes O(K)
abcdefgh
---
abcdefgh
---
we only have to check the hash kth len's at a time, the hash can be culated in O(1) time
hash(bcd) = hash(abc) * 31 + e - 31^4 * a
it will take O(n) to check all the hash agaist the target hash... | [
"hipaulshi@gmail.com"
] | hipaulshi@gmail.com |
41b8ba509c04dd91d9f7df54a9af6e6ac7a56c52 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /izfXy5SGfeekmKExH_15.py | dd6d5ebcb9a300d2e25edcd9ddd6522907132499 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | """
Write a function that takes two lists and adds the first element in the first
list with the first element in the second list, the second element in the
first list with the second element in the second list, etc, etc. Return `True`
if all element combinations add up to the same number. Otherwise, return
`False`.
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4c5f13f15969a69343f4b1d22fc01fd48532443f | 25d641a55eb868cc74fd4e3e4daea43f6deb5853 | /3 - Web UI & API/virtual/Lib/site-packages/pip/_internal/req/_vti_cnf/__init__.py | 47fccc4e6889f48b611d2cacf286d35b83631172 | [] | no_license | greens1/Final-Year-Project | 370b7ef9979049cfc75e6776da24c7a286848b71 | 2e72f43893595deef6aa5323773a6161f2cd873a | refs/heads/master | 2022-11-13T19:55:17.884414 | 2018-05-17T22:15:14 | 2018-05-17T22:15:14 | 133,852,365 | 1 | 0 | null | 2022-11-01T20:11:11 | 2018-05-17T18:21:16 | Python | UTF-8 | Python | false | false | 193 | py | vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|15 Apr 2018 11:07:36 -0000
vti_extenderversion:SR|12.0.0.0
vti_cacheddtm:TX|15 Apr 2018 11:07:36 -0000
vti_filesize:IR|2152
vti_backlinkinfo:VX|
| [
"greens1@tcd.ie"
] | greens1@tcd.ie |
0f261603cefc73452c72b9da92ee340e11c55b14 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/rat_j0455+1305/sdB_RAT_J0455+1305_lc.py | ffb25211b57623347ad503f12006e96baf0c0b4a | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[73.813417,13.091611], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_RAT_J0455+1305 /sdB_RAT_J0455+1305_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if _... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
6539b59094b60080421eff95fd512b2b1b2ed89b | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/lobby/telecom_rentals/__init__.py | f6ea7400ff249f307dd982a1c74bf9bf2f1aaa75 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 152 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/telecom_rentals/__init__.py
pass
| [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
11cdf608475191afaab295a70f80e4b59a17acab | c6759b857e55991fea3ef0b465dbcee53fa38714 | /tools/nntool/nntool/utils/subclasses.py | ea06cf5d380d6472e2c4708b7ea47ad84d4290ed | [
"AGPL-3.0-or-later",
"AGPL-3.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | GreenWaves-Technologies/gap_sdk | 1b343bba97b7a5ce62a24162bd72eef5cc67e269 | 3fea306d52ee33f923f2423c5a75d9eb1c07e904 | refs/heads/master | 2023-09-01T14:38:34.270427 | 2023-08-10T09:04:44 | 2023-08-10T09:04:44 | 133,324,605 | 145 | 96 | Apache-2.0 | 2023-08-27T19:03:52 | 2018-05-14T07:50:29 | C | UTF-8 | Python | false | false | 855 | py | # Copyright (C) 2021, 2020 GreenWaves Technologies, SAS
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This... | [
"yao.zhang@greenwaves-technologies.com"
] | yao.zhang@greenwaves-technologies.com |
3fbe12b6c3d9e9312e0eb977fbb0043690062f4d | 9c85d132b2ed8c51f021f42ed9f20652827bca45 | /source/res/scripts/client/gui/Scaleform/daapi/view/lobby/vehicle_compare/cmp_configurator_view.py | 8189adf02685d7a82b14defc4eeb0491950b6b8c | [] | no_license | Mododejl/WorldOfTanks-Decompiled | 0f4063150c7148184644768b55a9104647f7e098 | cab1b318a58db1e428811c41efc3af694906ba8f | refs/heads/master | 2020-03-26T18:08:59.843847 | 2018-06-12T05:40:05 | 2018-06-12T05:40:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,803 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/vehicle_compare/cmp_configurator_view.py
from collections import defaultdict
from adisp import process
from debug_utils import LOG_WARNING, LOG_DEBUG, LOG_ERROR
from gui.Scaleform.daapi import LobbySub... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
e653e6a03c8f0d3af8e678a8ee480073889dfb04 | 362e68fa033cc42cf9981e5f0c441ef2fb4816e6 | /scripts/pick_reference_otus_through_otu_table.py | 5b07919bad20bc776fd595b77388ecffb039c3d5 | [] | no_license | kartoffelpuffer/qiime | 6d409c058f777be3e17a7130d0902f4d0256795a | eeac244b5553579a8d0b540c31d6202acbc983d3 | refs/heads/master | 2020-12-25T02:39:52.585360 | 2013-04-25T16:59:25 | 2013-04-25T16:59:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | #!/usr/bin/env python
from __future__ import division
__author__ = "Greg Caporaso"
__copyright__ = "Copyright 2011, The QIIME Project"
__credits__ = ["Greg Caporaso"]
__license__ = "GPL"
__version__ = "1.6.0-dev"
__maintainer__ = "Greg Caporaso"
__email__ = "gregcaporaso@gmail.com"
__status__ = "Development"
print "\... | [
"gregcaporaso@gmail.com"
] | gregcaporaso@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.