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
26d13e4f0ecb08e455798eadfe6fa1e6ec855e3a
cd847bb6162a44945e7882992be6a8e99cd475b2
/venv/bin/venv/bin/wheel
a26c6118b433f85ea2d30bd0128814e1bbf1d383
[]
no_license
jasvr/wags_to_wings
60e04375e3273e9db23f16d7f7d18263e5b14a93
d03edcdd0db27efadb5ec7e8321ae30f23f0216a
refs/heads/master
2020-05-04T23:42:55.924620
2019-04-04T22:40:55
2019-04-04T22:40:55
179,553,036
0
2
null
null
null
null
UTF-8
Python
false
false
260
#!/Users/jasvrgs/wdi/projects/hackathon/venv/bin/venv/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from wheel.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "jas.vrgs@gmail.com" ]
jas.vrgs@gmail.com
0797c38ecbcb2da8282bce24c83e9395a01d75d1
305c8c0fe2453dd23918469240b3d8c872158d1f
/nlpr/proj/simple/runscript_head_test.py
e6d35761838183c2c728f2ef6de6241dc25c1f98
[]
no_license
zphang/nlprunners
184204927634b13325aa6fdf5edf6daccc9244bf
37edf660058af055e4b4807c6980dae7e03a005f
refs/heads/master
2020-06-28T01:36:18.266726
2020-01-20T05:49:10
2020-01-20T05:49:10
200,107,335
1
0
null
null
null
null
UTF-8
Python
false
false
9,656
py
import os import torch import zconf import nlpr.shared.initialization as initialization import nlpr.shared.distributed as distributed import nlpr.shared.model_setup as model_setup import nlpr.shared.model_resolution as model_resolution import nlpr.shared.train_setup as train_setup import nlpr.tasks as tasks import nl...
[ "email@jasonphang.com" ]
email@jasonphang.com
f2398df072c2823250de00bbb203a6dd068f4684
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/rainbird/__init__.py
f2d3f91e0981ece04b6389338422272a460f1b75
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
42
py
"""Tests for the rainbird integration."""
[ "noreply@github.com" ]
home-assistant.noreply@github.com
61800f469bd79f4a99bbc707dbf177d0e80735dd
b45b8ad36b3cd9b625a16af014c4dd735602e97f
/Python语言程序设计/Week9面向对象/1、面向对象/jam_10_元类.py
03723960f8bc1205ce9539185bf1cac1f05827b0
[]
no_license
YuanXianguo/Python-MOOC-2019
c4935cbbb7e86568aa7a25cb0bd867b3f5779130
f644380427b4a6b1959c49f134a1e27db4b72cc9
refs/heads/master
2020-11-26T18:38:22.530813
2019-12-20T02:51:52
2019-12-20T02:51:52
229,173,967
1
0
null
null
null
null
UTF-8
Python
false
false
287
py
def run(self): print("{}会跑".format(self.name)) # type称为元类,可以创建类,参数:类名,父类(元组),属性(字典) # 可以在用属性引用一个函数作为方法 Test = type("Test", (object,), {"name": "test", "run": run}) t = Test() t.run()
[ "736913978@qq.com" ]
736913978@qq.com
dedb5daeed1de9d8fb153d68ae4e7352469334d3
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_1/krmtsi001/question2.py
70123bdafa165e39c9cdea9ad141336d1a5e6aa8
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
def timer(): hours=eval(input("Enter the hours:\n")) minutes=eval (input("Enter the minutes:\n")) seconds=eval(input("Enter the seconds:\n")) if(0<=hours<=23): if(0<=minut...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
a1c2c7dbc12133aa3a288096226940ec519752e0
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_4079.py
1fb3f1647f5375496e3f6bf6db519750731e1d1a
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
# Python PyCrypto and RSA problem import Crypto.PublicKey.RSA impl = Crypto.PublicKey.RSA.RSAImplementation()
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
dbeeef05b86bdf486c9b96b36c84624c17e9f3b0
e10a6d844a286db26ef56469e31dc8488a8c6f0e
/ipagnn/adapters/common_adapters_test.py
1a4022ad703be31751ce21dbd2b8f1c7fd8e4246
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
Jimmy-INL/google-research
54ad5551f97977f01297abddbfc8a99a7900b791
5573d9c5822f4e866b6692769963ae819cb3f10d
refs/heads/master
2023-04-07T19:43:54.483068
2023-03-24T16:27:28
2023-03-24T16:32:17
282,682,170
1
0
Apache-2.0
2020-07-26T15:50:32
2020-07-26T15:50:31
null
UTF-8
Python
false
false
1,165
py
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
11a768e5cb050aff0f5193393950a1a5603947ed
53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61
/.history/EMR/EMRzdyj_20190422140749.py
7acb80b6448a09bdb1f2a5d6aac099e548cb7519
[]
no_license
cyc19950621/python
4add54894dc81187211aa8d45e5115903b69a182
d184b83e73334a37d413306d3694e14a19580cb0
refs/heads/master
2020-04-11T20:39:34.641303
2019-07-02T12:54:49
2019-07-02T12:54:49
162,078,640
0
0
null
null
null
null
UTF-8
Python
false
false
1,837
py
#-*- coding: UTF-8 -*- #本文件用于提取目标目录中的所有txt,并提取关键词所在行到指定目录,并提取关键词新建文件 import time import math import os import sys import os, os.path,shutil import codecs import EMRdef import re emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR')#txt目录提取 zljhs = [] for emrtxt in emrtxts: f = open(emrtxt,'r',errors="ignore")#中文加入e...
[ "1044801968@qq.com" ]
1044801968@qq.com
12cd595216aaec389302a4fc2da3f699ecce6efa
2e2fd08363b2ae29e3c7e7e836480a94e08fb720
/tensorflow_datasets/audio/groove.py
ed305c8e845763befe4d4056fce34183bdcc5836
[ "Apache-2.0" ]
permissive
Nikhil1O1/datasets
5af43d27aaf677dc7b3f8982b11a41d9e01ea793
311280c12f8b4aa9e5634f60cd8a898c3926c8e5
refs/heads/master
2022-12-27T00:20:50.458804
2020-10-15T10:29:12
2020-10-15T10:30:52
304,363,476
0
1
Apache-2.0
2020-10-15T15:10:31
2020-10-15T15:07:37
null
UTF-8
Python
false
false
8,466
py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
647eb0c247d92d421b317ab1114d9bf82e66f4d5
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/autosar/models/bsw_internal_behavior_subtypes_enum.py
1c215010479de31b0fe70b14ce7782accfe53979
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
171
py
from enum import Enum __NAMESPACE__ = "http://autosar.org/schema/r4.0" class BswInternalBehaviorSubtypesEnum(Enum): BSW_INTERNAL_BEHAVIOR = "BSW-INTERNAL-BEHAVIOR"
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
fa441165e9c8186f8a8823b6af81f6ead2fdf63e
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/438/usersdata/309/98435/submittedfiles/pico.py
c35ed557c01838f28a74350f9a1bcb6cfd1089fd
[]
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
704
py
# -*- coding: utf-8 -*- def pico(lista): x=[] n=len(lista) for i in range (0,n-1,1): if (lista[i] > lista[i+1]): x.append(1) elif (lista[i] < lista[i+1]): x.append(2) else : x.append(0) k= sorted(x) if (x==k): if (0 in...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
888c07976bb9ed42e9facf2f077f76c39b73cdb1
5080a829777b85f9f2618b398a8b7a2c34b8b83c
/pyvo/__init__.py
cc22ced09730551bbe38af2f7b01e2a5e90eb381
[]
no_license
kernsuite-debian/pyvo
ab037461def921411515f4b690f319976970a7a1
ee85c50c5c520ac7bede2d6f18de225c57dedc33
refs/heads/master
2021-08-07T16:17:11.674702
2017-11-08T14:39:19
2017-11-08T14:39:19
107,262,511
0
0
null
null
null
null
UTF-8
Python
false
false
5,639
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ PyVO is a package providing access to remote data and services of the Virtual observatory (VO) using Python. The pyvo module currently provides these main capabilities: * find archives that provide particular data of a particular type and/or re...
[ "gijs@pythonic.nl" ]
gijs@pythonic.nl
ee9fa1df4d941a31ed508d0034c5b7a6d87ed67d
c682e03a8394f0b6be4b309789209f7f5a67b878
/d12/d12p1.py
3a270b901acf7225aa4a4bce0c619c7cf39cf20e
[]
no_license
filipmlynarski/Advent-of-Code-2016
e84c1d3aa702b5bd387b0aa06ac10a4196574e70
b62483971e3e1f79c1e7987374fc9f030f5a0338
refs/heads/master
2021-08-28T06:43:04.764495
2017-12-11T13:00:07
2017-12-11T13:00:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,966
py
puzle = open('puzzle') puzzle = [] for i in puzle: puzzle.append(i.split('\n')[0]) def is_int(x): ints = '1,2,3,4,5,6,7,8,9,0'.split(',') for j in ints: if j == x: return True a = 0 b = 0 c = 0 d = 0 count = 0 while count < len(puzzle): i = puzzle[count] if i.split(' ')[0] == 'cpy': if i.split(' ')[2] ==...
[ "fmynarski@gmail.com" ]
fmynarski@gmail.com
52797b9cba609b57070454e6614cc01f745736b8
0beb76303c915431ada62f2fbe9cf9f803667f2e
/questions/maximum-binary-tree/Solution.py
2509fd3a8872330c2c30d32a6b32a3c76748a6e5
[ "MIT" ]
permissive
ShaoCorn/leetcode-solutions
ad6eaf93eadd9354fd51f5ae93c6b6115174f936
07ee14ba3d3ad7a9f5164ec72f253997c6de6fa5
refs/heads/master
2023-03-19T00:44:33.928623
2021-03-13T01:44:55
2021-03-13T01:44:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,878
py
""" You are given an integer array nums with no duplicates. A maximum binary tree can be built recursively from nums using the following algorithm: Create a root node whose value is the maximum value in nums. Recursively build the left subtree on the subarray prefix to the left of the maximum value. Recursively build...
[ "franklingujunchao@gmail.com" ]
franklingujunchao@gmail.com
e407556606fcbe38ecf08e8a07f0d038a65c200f
ec53949dafa4b6ad675d679b05ed7c83fef2c69a
/DataStructuresAndAlgo/LinkedList/SingleCircular/searchSingleCircular.py
689ea541a0a5fb820a3180d868aef7d6eaf128b7
[]
no_license
tpotjj/Python
9a5a20a53cd7a6ec14386c1db8ce155e0fc9ab8a
ca73c116ada4d05c0c565508163557744c86fc76
refs/heads/master
2023-07-11T16:37:10.039522
2021-08-14T11:17:55
2021-08-14T11:17:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,431
py
class Node: def __init__(self, value=None): self.value = value self.next = None class CircularSingleLinkedList: def __init__(self): self.head = None self.tail = None def __iter__(self): node = self.head while node: yield node node...
[ "joris97jansen@gmail.com" ]
joris97jansen@gmail.com
6e53b1e376aede8e6976aa0651c0f0be160d2b0d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02675/s931606976.py
56113375870acd3ee74e593566c92faeeefac768
[]
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
169
py
n = list(str(input())) if n[-1] =='3': print('bon') exit() if n[-1] =='0'or n[-1] =='1' or n[-1] =='6' or n[-1] == '8': print('pon') exit() print('hon')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
892b5b9906e360a8169a5689ac2cb443c84abeef
4a0537a45c8aa1420d4686f7882ee741f32bbbf0
/servee_document/__init__.py
66abf3ed228dfb4724787c3a31194bc2dcd7e5f1
[ "BSD-3-Clause" ]
permissive
servee/django-servee-document
b982204bc4d46d1f937da6ff47ff7b17b354f2b5
99d1a3970dbcb38d1b84ed6687bb709e89cc6a86
refs/heads/master
2021-01-19T10:29:04.427783
2017-01-18T22:16:43
2017-01-18T22:16:43
1,505,296
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
VERSION = (0, 1, 0, "a", 1) # following PEP 386 DEV_N = 1 def get_version(): version = "%s.%s" % (VERSION[0], VERSION[1]) if VERSION[2]: version = "%s.%s" % (version, VERSION[2]) if VERSION[3] != "f": version = "%s%s%s" % (version, VERSION[3], VERSION[4]) if DEV_N: ver...
[ "issac.kelly@gmail.com" ]
issac.kelly@gmail.com
3693c551d22f87cc2fb3deb16b6351be0ee102a2
bf902add6952d7f7decdb2296bb136eea55bf441
/YOLO/.history/pytorch-yolo-v3/video_demo_v1_20201106004132.py
722114a377211c33a1cc09dfe88d19193f6eaa59
[ "MIT" ]
permissive
jphacks/D_2003
c78fb2b4d05739dbd60eb9224845eb78579afa6f
60a5684d549862e85bdf758069518702d9925a48
refs/heads/master
2023-01-08T16:17:54.977088
2020-11-07T06:41:33
2020-11-07T06:41:33
304,576,949
1
4
null
null
null
null
UTF-8
Python
false
false
14,807
py
from __future__ import division import time import torch import torch.nn as nn from torch.autograd import Variable import numpy as np import cv2 from util import * from darknet import Darknet from preprocess import prep_image, inp_to_image import pandas as pd import random import argparse import pickle as pkl import r...
[ "73480314+ryo-jpg@users.noreply.github.com" ]
73480314+ryo-jpg@users.noreply.github.com
298a3fca6d8a1714293ac0664d61974996d18ffd
ed269e9a4d9d6bfbb833381b7aef65a23f391fe2
/比赛/1685. 有序数组中差绝对值之和.py
b9089483502c2c3b47da1d63fd0a60dc01a825b3
[]
no_license
Comyn-Echo/leeCode
fcff0d4c4c10209a47bd7c3204e3f64565674c91
67e9daecb7ffd8f7bcb2f120ad892498b1219327
refs/heads/master
2023-04-28T17:35:52.963069
2021-05-19T01:52:16
2021-05-19T01:52:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
import math class Solution(object): def getSumAbsoluteDifferences(self, nums): """ :type nums: List[int] :rtype: List[int] """ length = len(nums) cur = 0 preSum = [0 for i in range(length+1)] for i in range(length): cur += nums[i] ...
[ "2892211452aa@gmail.com" ]
2892211452aa@gmail.com
419e0aa50ad504f2287e3a41edc23acac17a9c8f
bb613b9eb6f5279b25908515d1e17d4dff68186b
/tests/localization_tests/test_ko.py
207d9029c71b2219779ec2a0a2e139cdac9767c3
[ "MIT" ]
permissive
mayfield/pendulum
eb0b9c66f89a5d164446e728b8f8bc8e8d7f47d9
bd7e9531bda35c45ddf794138c9967d9454209d4
refs/heads/master
2021-01-17T08:30:18.122524
2016-08-24T22:29:50
2016-08-24T22:29:50
66,504,189
0
0
null
2016-08-24T22:24:29
2016-08-24T22:24:28
null
UTF-8
Python
false
false
2,363
py
# -*- coding: utf-8 -*- from pendulum import Pendulum from .. import AbstractTestCase from . import AbstractLocalizationTestCase class KoTest(AbstractLocalizationTestCase, AbstractTestCase): locale = 'ko' def diff_for_humans(self): with self.wrap_with_test_now(): d = Pendulum.now().su...
[ "sebastien.eustace@gmail.com" ]
sebastien.eustace@gmail.com
7414fd98d42d6e768a6f1ee6d810c5b17e116d26
fce5eda4745578557f7120104188c2437529b98f
/loops/while/programa_enquete.py
2b558d6a9ae86ed8bf432898056552414884c0b8
[]
no_license
weguri/python
70e61584e8072125a4b4c57e73284ee4eb10f33b
d5195f82428104d85b0e6215b75e31ee260e5370
refs/heads/master
2022-12-01T08:26:36.248787
2020-08-23T03:30:46
2020-08-23T03:30:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
respostas = dict() # Define uma flag para indicar que a enquete está ativa votacao_ativa = True while votacao_ativa: # Pede o nome da pessoa e a resposta nome = input("\nQual é o seu nome? ") resposta = input("Qual é o seu animal favorito? ") if resposta == "": continue # Armazena a respo...
[ "welguri@gmail.com" ]
welguri@gmail.com
08ff099c5ed7b9163cedf928c7367bd903d5c48c
ea1af1a564f96fb36974aa094192877598b0c6bf
/Chapter7/Samples/even_or_odd.py
b9586fb2f08798bd5b1d1f990db9f1d19861d275
[]
no_license
GSantos23/Crash_Course
63eecd13a60141e520b5ca4351341c21c4782801
4a5fc0cb9ce987948a728d43c4f266d34ba49a87
refs/heads/master
2020-03-20T23:20:43.201255
2018-08-21T01:13:06
2018-08-21T01:13:06
137,841,877
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
# Sample 7.4 number = input("Enter a number, and I'll tell you if it's even or odd: ") number = int(number) if number % 2 == 0: print("\nThe number " + str(number) + " is even.") else: print("\nThe number " + str(number) + " is odd.")
[ "santosgerson64@gmail.com" ]
santosgerson64@gmail.com
611c4a17b89df4081e481c466963b09963030328
deaf5d0574494c06c0244be4b4f93ffa9b4e9e00
/pandas_ml/skaccessors/covariance.py
aca597e1c5f6debb5f0994ee6c690562fff85bf8
[]
no_license
Mars-Wei/pandas-ml
71db18a6f4e0c4fbe3ba8a5390d39ffb5ffd7db6
994197dfbf57e289e9f3fce2cb90d109b0afbbe3
refs/heads/master
2021-01-20T17:13:29.139122
2015-11-01T00:07:46
2015-11-01T00:07:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,618
py
#!/usr/bin/env python import numpy as np import pandas as pd from pandas_ml.core.accessor import _AccessorMethods class CovarianceMethods(_AccessorMethods): """ Accessor to ``sklearn.covariance``. """ _module_name = 'sklearn.covariance' def empirical_covariance(self, *args, **kw...
[ "sinhrks@gmail.com" ]
sinhrks@gmail.com
56dbb2cdb998061e64756b96835adf91b0b9d505
8fce2bc291452d88f883616c6610d9e0cc6609f7
/util/label_map_util.py
916ee37f3a391c0be3e21d59a33c3be18deb5bfa
[ "ISC" ]
permissive
BlueLens/bl-api-search
02830ef35d1e9dee659c6b8c1e36b0077c16fdc9
bf213776abb3e969cb63477a68f9f0a1c537eca2
refs/heads/master
2021-07-24T03:20:08.449203
2017-11-04T15:39:04
2017-11-04T15:39:04
105,105,987
0
1
null
null
null
null
UTF-8
Python
false
false
4,367
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "master@bluehack.net" ]
master@bluehack.net
5173c9eb2fab5fd8da633920ab0ff53a7ce5e390
e2a63481c05e08fdcd2243946f813c5f8d5c2e99
/update_features.py
a7a4c8427ec6e8855f0698066eed45b218e86bdc
[ "Apache-2.0" ]
permissive
mapsme/cf_audit
3127bc1b36b5c080387766b85d808f5e16124895
1089ad5b6ee74ee2bf7953a972062068f3f3f8ab
refs/heads/master
2023-01-31T04:16:07.769088
2023-01-22T15:24:07
2023-01-22T15:24:07
111,695,225
6
9
Apache-2.0
2023-01-22T15:24:09
2017-11-22T14:36:03
JavaScript
UTF-8
Python
false
false
1,608
py
#!/usr/bin/env python import os import sys BASE_DIR = os.path.abspath(os.path.dirname(__file__)) sys.path.insert(0, BASE_DIR) PYTHON = 'python2.7' VENV_DIR = os.path.join(BASE_DIR, 'venv', 'lib', PYTHON, 'site-packages') if os.path.exists(VENV_DIR): sys.path.insert(1, VENV_DIR) import codecs import datetime impor...
[ "zverik@textual.ru" ]
zverik@textual.ru
60e23adbd3b4692652d12167c566829b3c70cb6d
fce003f93476ec393e0fc2f7255e9e2367e8f07e
/generateParantheses.py
a8e6e57d647ae03f1b1157c48b176e1feb09c0c6
[]
no_license
WillLuong97/Back-Tracking
f3f6cb9f31dd3e59ed3826cfbdfa5972d6277e01
54bfe83f4bd6c7fef23a2a15cffcaa40129250cb
refs/heads/master
2023-07-02T05:20:52.510639
2021-08-11T00:37:41
2021-08-11T00:37:41
287,618,480
0
1
null
null
null
null
UTF-8
Python
false
false
1,749
py
# Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. # For example, given n = 3, a solution set is: # [ # "((()))", # "(()())", # "(())()", # "()(())", # "()()()" # ] #first approach - Brute Force def generateParenthesis(n): def generate(A = []): ...
[ "tluong@stedwards.edu" ]
tluong@stedwards.edu
d2d09e0416267edf3afd5d46e8489754f3ce3e27
611c184838b8c5cfafe61c9877a32606e2d435eb
/OtherScripts/Split.py
af567a81ee36eb111cae70b69564fdc920ed6100
[]
no_license
minghao2016/protein_structure_clustering
c6ac06c15f5ca03d506ec6ced51bd70d4838eaa0
3e709bf370071d2bf16cb24b0d0d9779ca005c3e
refs/heads/master
2022-01-20T15:46:33.694778
2019-04-12T17:03:25
2019-04-12T17:03:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
x = 'C:/Users/pedro.arguelles/Desktop/Repos/oi-mua/src/OI.FFM.InboundServices/pas/' y = '/'.join(str(x).split('/')[7:]) y = str(y).replace('/','\\') print(y)
[ "noreply@github.com" ]
minghao2016.noreply@github.com
695541aeff8d2f878246fea73c798f9f927e6ce0
ed702dcb76a85d815d322c426d62f9f3f213b137
/light.py
dbe24f48bfdd429821444d2e6082eca1ae33dd1e
[]
no_license
jack1806/Lamp
5f9d400eb34b224c96dcacec3834c901f4ad0a1a
9271bccecd47d4d3924fe311c0d8cff0e7e0d490
refs/heads/master
2020-03-26T20:21:38.078186
2018-08-19T16:26:07
2018-08-19T16:26:07
145,319,111
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
#!/usr/bin/python3 import argparse import requests LED_ON = "http://192.168.4.1/led/0" LED_OFF = "http://192.168.4.1/led/1" def req(url): try: request = requests.get(url) response = request.text if response: return 0 else: print("Something went wrong!") ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
1fee2606104089bb18dc89e6b2349bdbb11e5e26
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-hbase/aliyunsdkhbase/request/v20190101/UnTagResourcesRequest.py
3b7a375a83fe401cbc85e1de3ee25a29e7df3a56
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
1,950
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...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
39b9a6cb194a618d38d92f0d437d3b47363248c9
1a7e621312f88bc940e33ee5ff9ca5ac247f2bc9
/venv/bin/django-admin.py
e07af0189af5844d527efeef517bb577881fadd1
[]
no_license
hirossan4049/ZisakuZitenAPI
9c2ef8de5c197353a33f58518d60aff304b8d2df
439f202b4939059b42c771960ad579048737f3d7
refs/heads/master
2022-05-04T12:08:39.670493
2020-01-11T06:23:41
2020-01-11T06:23:41
225,121,453
0
1
null
2022-04-22T22:50:05
2019-12-01T07:14:23
Python
UTF-8
Python
false
false
179
py
#!/Users/Linear/Desktop/pythonnnnn/ZisakuZitenRestServer/venv/bin/python from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "haruto405329@gmail.com" ]
haruto405329@gmail.com
601bc5df1c1b8dc0775b683e62fc763c59b76786
afa2ebb439e6592caf42c507a789833b9fbf44b2
/supervised_learning/0x03-optimization/11-learning_rate_decay.py
040b4379fbcdd158d5e82d23cdbf111a9811b6bc
[]
no_license
anaruzz/holbertonschool-machine_learning
64c66a0f1d489434dd0946193747ed296760e6c8
91300120d38acb6440a6dbb8c408b1193c07de88
refs/heads/master
2023-07-30T20:09:30.416167
2021-09-23T16:22:40
2021-09-23T16:22:40
279,293,274
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
#!/usr/bin/env python3 """ Script that updates a variable in place using inverse time decay in numpy """ import numpy as np def learning_rate_decay(alpha, decay_rate, global_step, decay_step): """ returns the updated value for alpha """ alpha /= (1 + decay_rate * (global_step // decay_step)) retur...
[ "laabidigh@gmail.com" ]
laabidigh@gmail.com
b8c08f536f252f2e18333297c68a7f02a00115ad
155b6c640dc427590737750fe39542a31eda2aa4
/api-test/hmpt/test/test_018_web_FirstCheck.py
2abf5ac402687d0eed2f99a4f8e3fc1f060f780d
[]
no_license
RomySaber/api-test
d4b3add00e7e5ed70a5c72bb38dc010f67bbd981
028c9f7fe0d321db2af7f1cb936c403194db850c
refs/heads/master
2022-10-09T18:42:43.352325
2020-06-11T07:00:04
2020-06-11T07:00:04
271,468,744
0
0
null
null
null
null
UTF-8
Python
false
false
36,726
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time :2019-06-11 下午 3:33 @Author : 罗林 @File : test_018_web_FirstCheck.py @desc : 信审管理自动化测试用例 """ import json import unittest from faker import Factory from common.myCommon import Assertion from common.myCommon.TestBaseCase import TestBaseCase...
[ "romy@romypro.local" ]
romy@romypro.local
a950e1fea6e22a293fa8d134164513e4fd5e63df
4ce94e6fdfb55a889a0e7c4788fa95d2649f7bca
/User/apps/logreg/views.py
26ada8889c8fa75821a4cceb627c5948d6d94bde
[]
no_license
HaochengYang/Django-class-assignment
4018d8eb0619a99ebe8c3e47346d29934aafc66b
cb8f920f432209f88c810407ca646ee7dec82e22
refs/heads/master
2021-06-08T20:05:22.876794
2016-12-19T23:39:22
2016-12-19T23:39:22
75,032,572
0
0
null
null
null
null
UTF-8
Python
false
false
1,430
py
from django.shortcuts import render, redirect from .models import User from django.contrib import messages # Create your views here. def index(request): return render(request, 'logreg/index.html') def register(request): response = User.objects.add_user(request.POST) if response['status']: # succe...
[ "haocheng0906@gmail.com" ]
haocheng0906@gmail.com
8a7bc189c27f77d9317613f60f7e3bc016ff5c8e
2ed0ab730b62665b3a36841ab006eea961116f87
/Hash/ValidSoduko.py
ef9721fb40020f4c7aa19f5c56366347684f6f3b
[]
no_license
scarlettlite/hackathon
0f0a345d867b9e52823f10fe67c6ec210a40945f
179ba9038bbed4d48cb2f044fd8430cf2be2bab3
refs/heads/master
2021-07-04T00:55:17.665292
2019-03-04T09:10:59
2019-03-04T09:10:59
141,269,070
0
0
null
null
null
null
UTF-8
Python
false
false
1,494
py
from collections import defaultdict class Solution: def __init__(self): arr = [(0,2), (3,5), (6,8)] self.sq = [(a,b,c,d) for a,b in arr for c,d in arr] def getsqr(self, ir, ic): for a,b,c,d in self.sq: if a <= ir <= b and c <= ic <= d: return a,b,c,d d...
[ "shivanirathore496@gmail.com" ]
shivanirathore496@gmail.com
43dd394b16bcb1affa4035fe5a3d08f9a9a88fa1
6527b66fd08d9e7f833973adf421faccd8b765f5
/yuancloud/recicler/l10n_jp/__yuancloud__.py
b492c6d6207e9dc3a4ba55e08b14acdd16a2b3e3
[]
no_license
cash2one/yuancloud
9a41933514e57167afb70cb5daba7f352673fb4d
5a4fd72991c846d5cb7c5082f6bdfef5b2bca572
refs/heads/master
2021-06-19T22:11:08.260079
2017-06-29T06:26:15
2017-06-29T06:26:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,266
py
# -*- coding: utf-8 -*- # Part of YuanCloud. See LICENSE file for full copyright and licensing details. # Copyright (C) Rooms For (Hong Kong) Limited T/A OSCG { 'name': 'Japan - Accounting', 'version': '1.2', 'category' : 'Finance Management', 'description': """ Overview: --------- * Chart of Accoun...
[ "liuganghao@lztogether.com" ]
liuganghao@lztogether.com
6c8ce69edeaeec26ac063384011a0af1deeb31ac
082246f32a7972abdb674f424d3ba250666a8eb5
/Demo/PyQt4/Sample Files/Logo.py
bc0ff66efb867e458c6c0a1cd88140624a59c61c
[]
no_license
maxale/Data-Mining
4ef8c8a4403a9b1eb64dbec94414b8cf865134a7
19edff15047a2cce90515dae1d6c3d280284fc2a
refs/heads/master
2023-04-29T19:42:23.586079
2023-04-24T14:59:07
2023-04-24T14:59:07
322,360,530
1
0
null
2023-03-29T21:02:45
2020-12-17T17:05:24
null
UTF-8
Python
false
false
195
py
import sys from PyQt4 import QtGui, QtSvg app = QtGui.QApplication(sys.argv) svgWidget = QtSvg.QSvgWidget('pic1.svg') svgWidget.setGeometry(50,50,759,668) svgWidget.show() sys.exit(app.exec_())
[ "amir.h.jafari@okstate.edu" ]
amir.h.jafari@okstate.edu
183ea05ca67621b0b058eddd765cbe6d2b39188f
80fd32cb735bfd288c4fb9be1280146f5cf15210
/ditto/__init__.py
c61386e62de95b8c57e65526c1ef615a8bebac77
[ "BSD-3-Clause" ]
permissive
NREL/ditto
c8e44ea04272b750dcbbaef2bfc33eb340822eb1
41b93f954af5836cbe5986add0c104b19dc22fde
refs/heads/master
2023-08-23T02:41:59.653838
2023-07-11T16:25:38
2023-07-11T16:25:38
121,418,744
57
43
BSD-3-Clause
2023-07-11T16:25:40
2018-02-13T18:19:47
Python
UTF-8
Python
false
false
208
py
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import __author__ = """Tarek Elgindy""" __email__ = "tarek.elgindy@nrel.gov" __version__ = "0.1.0" from .store import Store
[ "kdheepak89@gmail.com" ]
kdheepak89@gmail.com
832e744fb6433173675ac4d52a40613a22346536
14164dfdc5f316ff259519d1aeb8671dad1b9749
/lib/loaf/slack_api/web_client/team.py
398e0b8ae939f27a2449c005838e4dd0536dec83
[ "MIT" ]
permissive
cbehan/loaf
4b537f75c97c1e78ef5d178ac59379460452648a
cb9c4edd33a33ff1d5a1931deb6705ddfe82d459
refs/heads/master
2021-12-14T15:04:15.568615
2021-12-02T22:47:08
2021-12-02T22:47:08
131,346,943
0
0
null
2018-04-27T21:34:34
2018-04-27T21:34:33
null
UTF-8
Python
false
false
194
py
class Team: def __init__(self, client): self.client = client async def info(self): result = await self.client.api_call('GET', 'team.info') return result['team']
[ "nick.beeuwsaert@gmail.com" ]
nick.beeuwsaert@gmail.com
fdad2b330e7d4bf50e981738677907efc6c4f7c1
d8edd97f8f8dea3f9f02da6c40d331682bb43113
/networks710.py
b687185e0191deab6ea8b5a72f9c772d153cfcd5
[]
no_license
mdubouch/noise-gan
bdd5b2fff3aff70d5f464150443d51c2192eeafd
639859ec4a2aa809d17eb6998a5a7d217559888a
refs/heads/master
2023-07-15T09:37:57.631656
2021-08-27T11:02:45
2021-08-27T11:02:45
284,072,311
0
0
null
null
null
null
UTF-8
Python
false
false
8,965
py
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np __version__ = 205 # Number of wires in the CDC n_wires = 3606 # Number of continuous features (E, t, dca) n_features = 3 geom_dim = 3 def wire_hook(grad): print('wg %.2e %.2e' % (grad.abs().mean().item(), grad.std().item())) ...
[ "m.dubouchet18@imperial.ac.uk" ]
m.dubouchet18@imperial.ac.uk
e5d84d7646621256ddc5234054836df2021abe99
2f55769e4d6bc71bb8ca29399d3809b6d368cf28
/Miniconda2/Lib/site-packages/sklearn/feature_selection/tests/test_base.py
2e118b4b00b6cd2416b175913c43056efa022a37
[]
no_license
jian9695/GSV2SVF
e5ec08b2d37dbc64a461449f73eb7388de8ef233
6ed92dac13ea13dfca80f2c0336ea7006a6fce87
refs/heads/master
2023-03-02T03:35:17.033360
2023-02-27T02:01:48
2023-02-27T02:01:48
199,570,103
9
16
null
2022-10-28T14:31:05
2019-07-30T03:47:41
Python
UTF-8
Python
false
false
3,796
py
import numpy as np from scipy import sparse as sp from numpy.testing import assert_array_equal from sklearn.base import BaseEstimator from sklearn.feature_selection.base import SelectorMixin from sklearn.utils import check_array from sklearn.utils.testing import assert_raises, assert_equal class StepSele...
[ "JLiang@esri.com" ]
JLiang@esri.com
c49bc7c391ad0bc404c7e3525a69ddda6921ed79
4ca821475c57437bb0adb39291d3121d305905d8
/models/research/object_detection/core/standard_fields.py
7bf128a92ea26c22f38959ee992ca9b9bcf0f129
[ "Apache-2.0" ]
permissive
yefcion/ShipRec
4a1a893b2fd50d34a66547caa230238b0bf386de
c74a676b545d42be453729505d52e172d76bea88
refs/heads/master
2021-09-17T04:49:47.330770
2018-06-28T02:25:50
2018-06-28T02:25:50
112,176,613
0
1
null
null
null
null
UTF-8
Python
false
false
10,220
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "yefcion@163.com" ]
yefcion@163.com
f99600be5c8c03928c69180bccdb942a3fd04a83
bc441bb06b8948288f110af63feda4e798f30225
/container_sdk/api/hpa/hpa_client.py
255789842ee9a30e61634e383487feb93b1428f1
[ "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
false
4,468
py
# -*- coding: utf-8 -*- import os import sys import container_sdk.api.hpa.delete_hpa_pb2 import google.protobuf.empty_pb2 import container_sdk.api.hpa.update_pb2 import container_sdk.model.container.hpa_pb2 import container_sdk.utils.http_util import google.protobuf.json_format class HpaClient(object): def ...
[ "service@easyops.cn" ]
service@easyops.cn
50c0dd89f9d5f33b5fd955695c6dfc1d7b182a64
625ff91e8d6b4cdce9c60f76e693d32b761bfa16
/uk.ac.gda.core/scripts/gdadevscripts/developertools/checkScannableNames.py
6a7b8fee428d3ee3fc6cd6a66c7d043b002d7436
[]
no_license
openGDA/gda-core
21296e4106d71d6ad8c0d4174a53890ea5d9ad42
c6450c22d2094f40ca3015547c60fbf644173a4c
refs/heads/master
2023-08-22T15:05:40.149955
2023-08-22T10:06:42
2023-08-22T10:06:42
121,757,680
4
3
null
null
null
null
UTF-8
Python
false
false
391
py
# Run this module to show scannables whose (internal) name differs from their (external) label from gda.device import Scannable print "The following scannables have labels (for typing) different than names(that go into files)" print "Label\tName" for label in dir(): if (isinstance(eval(label),Scannable)): name = ev...
[ "dag-group@diamond.ac.uk" ]
dag-group@diamond.ac.uk
1b6cdec612f24ad9c488251181f7819734ff2bd0
b5550fc728b23cb5890fd58ccc5e1668548dc4e3
/tests/compute/test_resource_tracker.py
c0b0a42e2eaf7f3d5a7a410a7add4254da4501f5
[]
no_license
bopopescu/nova-24
0de13f078cf7a2b845cf01e613aaca2d3ae6104c
3247a7199932abf9718fb3260db23e9e40013731
refs/heads/master
2022-11-20T00:48:53.224075
2016-12-22T09:09:57
2016-12-22T09:09:57
282,140,423
0
0
null
2020-07-24T06:24:14
2020-07-24T06:24:13
null
UTF-8
Python
false
false
61,934
py
#coding:utf-8 # Copyright (c) 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
[ "719184289@qq.com" ]
719184289@qq.com
486e14339acaf81e3a59ed9a6ba548e5de49105b
7944d2fd5d885a034347a986f3114f0b81166447
/facebookads/adobjects/helpers/adaccountusermixin.py
da4d36229bfcaa877d38eeadcde3eb4fe09c6387
[]
no_license
it-devros/django-facebook-api
4fd94d1bbbff664f0314e046f50d91ee959f5664
ee2d91af49bc2be116bd10bd079c321bbf6af721
refs/heads/master
2021-06-23T06:29:07.664905
2019-06-25T07:47:50
2019-06-25T07:47:50
191,458,626
2
0
null
2021-06-10T21:33:08
2019-06-11T22:22:47
Python
UTF-8
Python
false
false
2,325
py
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
[ "it-devros@outlook.com" ]
it-devros@outlook.com
139924ddf0df882a3fb73abd3feb2199cf4b54c5
11a246743073e9d2cb550f9144f59b95afebf195
/codeforces/873/a.py
b327a471eb4b3b25939bf9172ff27110c6a1f419
[]
no_license
ankitpriyarup/online-judge
b5b779c26439369cedc05c045af5511cbc3c980f
8a00ec141142c129bfa13a68dbf704091eae9588
refs/heads/master
2020-09-05T02:46:56.377213
2019-10-27T20:12:25
2019-10-27T20:12:25
219,959,932
0
1
null
2019-11-06T09:30:58
2019-11-06T09:30:57
null
UTF-8
Python
false
false
163
py
def main(): n, k, x = map(int, input().split()) a = list(map(int, input().split())) end = n - k ans = sum(a[:end]) + x * k print(ans) main()
[ "arnavsastry@gmail.com" ]
arnavsastry@gmail.com
ff088fd7c2c3c7a9326af48a17e85f769f1f608a
53f9dd194792672424e423e691dbbba0e4af7474
/kolibri/core/discovery/utils/network/urls.py
27e881fb6f9bec6666ce64a6591932f57fcb1773
[ "MIT" ]
permissive
DXCanas/kolibri
8e26668023c8c60f852cc9b7bfc57caa9fd814e8
4571fc5e5482a2dc9cd8f93dd45222a69d8a68b4
refs/heads/develop
2021-12-05T22:18:15.925788
2018-09-21T19:30:43
2018-09-21T19:30:43
54,430,150
1
0
MIT
2019-11-28T00:35:17
2016-03-21T23:25:49
Python
UTF-8
Python
false
false
5,913
py
import re from six.moves.urllib.parse import urlparse from . import errors HTTP_PORTS = (8080, 80, 8008) HTTPS_PORTS = (443,) # from https://stackoverflow.com/a/33214423 def is_valid_hostname(hostname): if hostname[-1] == ".": # strip exactly one dot from the right, if present hostname = host...
[ "jamalex@gmail.com" ]
jamalex@gmail.com
34bb6445f00d9621cf5292b1cce7d15810c84517
e5e2b7da41fda915cb849f031a0223e2ac354066
/sdk/python/pulumi_azure_native/network/v20200401/subnet.py
0ecff6d9550f22f697d112fea16ae321ebc0b80a
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
johnbirdau/pulumi-azure-native
b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25
d676cc331caa0694d8be99cb90b93fa231e3c705
refs/heads/master
2023-05-06T06:48:05.040357
2021-06-01T20:42:38
2021-06-01T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
33,929
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
johnbirdau.noreply@github.com
a4ef2d7cc0c353c839e5ba8800de8867a6695388
b6c93083b83cd0b441c2d2347b08a529e41eaa2c
/utils/munin/newsblur_tasks_pipeline.py
1588ff390bb2579e26a7724283f0b52c48959628
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
seejay/NewsBlur
4b2b65536f38cfedc47f85708f6f23778986f951
311c5a71981c12d1389b58def94df62cb5c60575
refs/heads/master
2023-06-08T00:46:21.118450
2021-06-24T04:13:33
2021-06-24T04:13:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,586
py
#!/srv/newsblur/venv/newsblur/bin/python from utils.munin.base import MuninGraph import os os.environ["DJANGO_SETTINGS_MODULE"] = "newsblur.settings" import django django.setup() class NBMuninGraph(MuninGraph): @property def graph_config(self): graph = { 'graph_category' : 'NewsBlur', ...
[ "samuel@ofbrooklyn.com" ]
samuel@ofbrooklyn.com
c15b6b0d315719168a07c0479432a673d7a637e0
04462eb2f7ebdc7ac945a63b4c3d9aeeed4920de
/backend/manage.py
def0f48d666b41a0a606ea608b6da7db9b2260b2
[]
no_license
crowdbotics-apps/yoyo-28319
7a1d86d1b713cbd523c23242bfb8014376333b74
f8b8a47fa1740b73b6a9db8e4e6fe5210d4d8167
refs/heads/master
2023-06-10T01:44:36.149151
2021-06-30T08:19:58
2021-06-30T08:19:58
381,627,025
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'yoyo_28319.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
708d35129495d3fcd0f5c2e678318c001704c805
d451e26b2689a34a6660a6a947fe97abde90010a
/pang/helpers/nso.py
8f21ba0b3cffa504f2fe7acdd6ba2e400a42f1dc
[ "MIT" ]
permissive
kecorbin/pang
25ef8d64d90a5490a4582e7a883c0460b52b1c9a
1e35cbdf0e30cda5b428ba72fd1fe0a550854ec5
refs/heads/master
2023-01-12T18:55:54.098474
2018-09-30T03:26:56
2018-09-30T03:26:56
149,394,962
6
0
MIT
2022-12-26T20:38:22
2018-09-19T05:04:49
Python
UTF-8
Python
false
false
5,324
py
import requests import os import errno from .files import MAKEFILE_BASE class NSO(object): def __init__(self, url, username='admin', password='admin'): self.username = username self.password = password self.base_url = url @property def headers(self): headers = { ...
[ "kecorbin@cisco.com" ]
kecorbin@cisco.com
0b3451456383d74e43a4eb1d7a9f8ab12ef4adfd
053cf58d2cbae6f76a03f80b97c2aa53581a49ab
/interface/LiveClassAPI_v_Video_test.py
696546bf1e716cf0e0cfbcf9084c2fc09a46412d
[]
no_license
qujinliang/LiveClassAPIAutoTest
8a84bb6649de46d5b90365f5d4d0e9d2ee0e1e11
6fbbbfb358d51bde8a4e4912625c73c6d1a9da49
refs/heads/master
2020-04-12T14:32:44.359097
2018-12-20T09:18:57
2018-12-20T09:18:57
162,555,549
0
0
null
null
null
null
UTF-8
Python
false
false
1,027
py
import unittest from util import THQS from util import LiveAPIRequests from util.LiveAPIDataFile import LiveAPIData class LiveClassAPIVideoTest(unittest.TestCase): """设为暖场视频接口测试""" def setUp(self): '''初始化请求数据url''' url = LiveAPIData.urlData(self) url = url+"/api/v1/video/warm/set?" ...
[ "qujin_liang@163.com" ]
qujin_liang@163.com
5445bd7a3b77d5f5e64961ad50413d9a4f7b317b
e1e5ffef1eeadd886651c7eaa814f7da1d2ade0a
/Systest/tests/aaa/AAA_FUN_007.py
5195ce9c3b3c259ea8e7bd9c2e4f562ee283af1d
[]
no_license
muttu2244/MyPython
1ddf1958e5a3514f9605d1f83c0930b24b856391
984ca763feae49a44c271342dbc15fde935174cf
refs/heads/master
2021-06-09T02:21:09.801103
2017-10-10T07:30:04
2017-10-10T07:30:04
13,803,605
0
0
null
null
null
null
UTF-8
Python
false
false
5,161
py
#!/usr/bin/env python2.5 """ ####################################################################### # # Copyright (c) Stoke, Inc. # All Rights Reserved. # # This code is confidential and proprietary to Stoke, Inc. and may only # be used under a license from Stoke. # ##########################################...
[ "muttu2244@yahoo.com" ]
muttu2244@yahoo.com
9be957a2c85ebd9b19fe425153d975765239ef04
9a1a829eee3b08ed3e1c412d183c0967d44d2c70
/djinsta/djinsta/urls.py
e4141e8f4811e7e5ca3c6e379697a43e7a854454
[ "MIT" ]
permissive
woshangfenglove/djinsta
4f6df93719b46008fb4dfa007527f78f565d1eb8
3e006a7027de51715ec34211b0bc771893f2f4a1
refs/heads/master
2021-09-11T17:44:32.047646
2018-04-10T12:50:11
2018-04-10T12:50:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
794
py
"""djinsta URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/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='home') Class-based...
[ "jacoj82@gmail.com" ]
jacoj82@gmail.com
edb0af5fe1bef9f2bdae693f8f6c6ee8f2cd6483
863bc319e092b5127037db0ead15e627e4b0ac72
/Uncertainty/data/case-ln/case_ln_100.py
98ae71457dc82915ee0516dd7baec5f5b7b5bdc8
[ "MIT" ]
permissive
thanever/SOC
ea349e61eebef7f31c610765cd5db1be14b60800
7dc33e9f4713d012f206385452987579f46b63eb
refs/heads/master
2023-08-27T04:57:38.825111
2023-08-07T03:20:42
2023-08-07T03:20:42
212,486,054
3
1
null
null
null
null
UTF-8
Python
false
false
321,671
py
from numpy import array def case_ln_100(): ppc = {"version": '2'} ppc["baseMVA"] = 100.0 ppc["bus"] = array([ [1.0, 1.0, 36.3818, 9.7018, 0.0, 0.0, 1.0, 1.0, 0.0, 220.0, 1.0, 1.1, 0.95, 0.6, 10 ], [2.0, 1.0, 0.0, 0.0, 0.0, 0.0, ...
[ "hantong.eee@gmail.com" ]
hantong.eee@gmail.com
1d1eb7b895ef58d7411393323789a6cea8d74eb4
5ec06dab1409d790496ce082dacb321392b32fe9
/clients/python/generated/test/test_com_day_cq_wcm_designimporter_parser_taghandlers_factory_text_component_info.py
9dd311727f08f354672f50c4174ba64c40b3ee04
[ "Apache-2.0" ]
permissive
shinesolutions/swagger-aem-osgi
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
c2f6e076971d2592c1cbd3f70695c679e807396b
refs/heads/master
2022-10-29T13:07:40.422092
2021-04-09T07:46:03
2021-04-09T07:46:03
190,217,155
3
3
Apache-2.0
2022-10-05T03:26:20
2019-06-04T14:23:28
null
UTF-8
Python
false
false
1,437
py
# coding: utf-8 """ Adobe Experience Manager OSGI config (AEM) API Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: opensource@shinesolutions.com Generated by: https://openapi-...
[ "michael.bloch@shinesolutions.com" ]
michael.bloch@shinesolutions.com
33d65505e62415ec474373f835f060af9a83c2d8
7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a
/.history/DEBER_20210904224213.py
22245042ab40e7800c1484553318ca360a097082
[ "MIT" ]
permissive
Alopezm5/PROYECTO-PARTE-1
a1dce04009b24852c1c60e69bdf602ad3af0574b
bd7a8594edf08d41c6ca544cf6bac01ea4fcb684
refs/heads/main
2023-07-25T11:22:17.994770
2021-09-07T03:27:34
2021-09-07T03:27:34
403,670,226
0
0
null
null
null
null
UTF-8
Python
false
false
5,323
py
import os class Empresa(): def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""): self.nombre=nom self.ruc=ruc self.direccion=dire self.telefono=tele self.ciudad=ciud self.tipoEmpresa=tipEmpr def datosEmpresa(self):#3 self.nombre=input("Ingres...
[ "85761855+Alopezm5@users.noreply.github.com" ]
85761855+Alopezm5@users.noreply.github.com
89b21af428d1d308b279efb03d30b5f58713a620
2f0c413962f96fe449ddcaf9363f1bdfd4f5e98d
/test/test_gossip.py
8060199884d775bc93067661bb947acca582a832
[ "MIT" ]
permissive
vijayanant/kunai
1d922791dbad8c6132d790d7a58040c3f9ecbedc
0dfe169731eaceb1bba66e12715b3968d2a3de20
refs/heads/master
2021-01-22T12:02:17.293478
2014-12-27T13:15:25
2014-12-27T13:15:25
28,539,772
1
0
null
null
null
null
UTF-8
Python
false
false
481
py
#!/usr/bin/env python # Copyright (C) 2014: # Gabes Jean, naparuba@gmail.com import copy import time import threading from kunai_test import * from kunai.gossip import Gossip from kunai.broadcast import Broadcaster class TestGossip(KunaiTest): def setUp(self): self.gossip = Gossip({}, threading.RLock...
[ "naparuba@gmail.com" ]
naparuba@gmail.com
02086cbeccc8c19cd85a073f2c7eab29f2e06976
d2f71636c17dc558e066d150fe496343b9055799
/eventi/receipts/forms.py
9d3016a8c6419210c1823d66a44e71eee0f454e5
[ "MIT" ]
permissive
klebercode/lionsclub
9d8d11ad6083d25f6d8d92bfbae9a1bbfa6d2106
60db85d44214561d20f85673e8f6c047fab07ee9
refs/heads/master
2020-06-11T19:45:39.974945
2015-04-05T01:11:57
2015-04-05T01:11:57
33,409,707
1
0
null
null
null
null
UTF-8
Python
false
false
1,159
py
# coding: utf-8 from django import forms from django.template.loader import render_to_string from django.core.mail import EmailMultiAlternatives from eventi.receipts.models import Receipt from eventi.subscriptions.models import Subscription class ReceiptForm(forms.ModelForm): class Meta: model = Receipt ...
[ "kleberr@msn.com" ]
kleberr@msn.com
4b5ce157886ae6f7d16078d25f22aed1aede4df3
04b1803adb6653ecb7cb827c4f4aa616afacf629
/chrome/chrome_cleaner/cleaner/DEPS
9648b97a1c3d91971cbc9b21e5c24b58308df304
[ "BSD-3-Clause" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
Python
false
false
52
include_rules = [ "+components/chrome_cleaner", ]
[ "sunny.nam@samsung.com" ]
sunny.nam@samsung.com
023b58296e4925c5b65036563c3cd12d57e83077
dc529ac2a73ebcbe4a4974757ae6beb7ead2a85a
/notebooks/globalgoals-pyglobalgoals.py.py
d1aaa7175844e43a40ae9177540a31d8c60d0e9d
[ "BSD-3-Clause" ]
permissive
westurner/pyglobalgoals
19a611794eb11aa355ab0cd57b2b40a949b34c0f
768e8dd236fd23e233e33cd9af03284ca4b9dddf
refs/heads/master
2021-06-30T00:26:06.430143
2016-03-08T23:20:14
2016-03-08T23:20:14
42,337,725
1
0
null
null
null
null
UTF-8
Python
false
false
16,352
py
# coding: utf-8 # # @TheGlobalGoals for Sustainable Development # ## Background # # * Homepage: **http://www.globalgoals.org/** # - Twitter: https://twitter.com/TheGlobalGoals # - Instagram: https://instagram.com/TheGlobalGoals/ # - Facebook: https://www.facebook.com/globalgoals.org # - YouTube: https://www.youtube...
[ "wes@wrd.nu" ]
wes@wrd.nu
fee2e7e85fd97f95bfea8e5a4c9bfbaf48c5d3df
e204623da7c836b95f209cc7fb357dc0b7f60548
/meetings/admin.py
0d6435eab6b99696f4439688f520fcfc68c0a66a
[]
no_license
juliocebrito/syfboyaca4gavantel
9551db0a9b74dadf831362ceb0f685a482afa828
c9e9cc5f591dddaa53e3d1fd3db50d16d34424d7
refs/heads/master
2022-04-30T00:06:57.239452
2019-08-05T15:12:23
2019-08-05T15:12:23
196,095,965
0
0
null
2022-04-22T22:00:52
2019-07-09T23:08:12
JavaScript
UTF-8
Python
false
false
975
py
from django.contrib import admin from .models import Meeting, Point class PointInline(admin.TabularInline): model = Point @admin.register(Meeting) class MeetingAdmin(admin.ModelAdmin): resource_class = Meeting list_display = ( 'id', 'date', 'type_meeting', 'state', ...
[ "jucebridu@gmail.com" ]
jucebridu@gmail.com
dc9c1fe37255938851aaf3a338906fbb2638fc4b
fa93e53a9eee6cb476b8998d62067fce2fbcea13
/devel/.private/pal_navigation_msgs/lib/python2.7/dist-packages/pal_navigation_msgs/msg/_Emergency.py
8a07633f4c000d1376f965e9af610397e31a6813
[]
no_license
oyetripathi/ROS_conclusion_project
2947ee2f575ddf05480dabc69cf8af3c2df53f73
01e71350437d57d8112b6cec298f89fc8291fb5f
refs/heads/master
2023-06-30T00:38:29.711137
2021-08-05T09:17:54
2021-08-05T09:17:54
392,716,311
0
1
null
null
null
null
UTF-8
Python
false
false
6,296
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from pal_navigation_msgs/Emergency.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg class Emergency(genpy.Message): _md5sum = "a23e1ed5...
[ "sandeepan.ghosh.ece20@itbhu.ac.in" ]
sandeepan.ghosh.ece20@itbhu.ac.in
e0718b4f12184db6ea4c15fbd4918f1f3212a582
8e39a4f4ae1e8e88d3b2d731059689ad5b201a56
/lib32-apps/lib32-libXext/lib32-libXext-1.3.3.py
773e23325d398e9fbe0d784a04ec5d4ef87625a4
[]
no_license
wdysln/new
d5f5193f81a1827769085932ab7327bb10ef648e
b643824b26148e71859a1afe4518fe05a79d333c
refs/heads/master
2020-05-31T00:12:05.114056
2016-01-04T11:38:40
2016-01-04T11:38:40
37,287,357
1
1
null
null
null
null
UTF-8
Python
false
false
359
py
metadata = """ summary @ 11 miscellaneous extensions library homepage @ http://xorg.freedesktop.org/ license @ MIT src_url @ http://xorg.freedesktop.org/releases/individual/lib/libXext-$version.tar.bz2 arch @ ~x86_64 """ depends = """ runtime @ sys-libs/glibc x11-libs/libX11 x11-proto/xextproto """ srcdir = "libXext-%...
[ "zirkovandersen@gmail.com" ]
zirkovandersen@gmail.com
0ee0628059ce0bbdb5a337a48cab93a60ec822f8
468f7b1d7639e2465b2ba4e0f960c8a75a10eb89
/kerasAC/cross_validate.py
8322e8d37895ddfb25a8c3cf60d3670904215752
[ "MIT" ]
permissive
soumyakundu/kerasAC
874a7453044050afa3198c5bd3c34185b53ea571
f692abf1c6003a9f0d917117f3579a0746ed3b5a
refs/heads/master
2020-04-23T04:34:10.659657
2019-02-14T23:01:42
2019-02-14T23:01:42
156,909,046
0
0
null
2019-02-15T18:13:21
2018-11-09T19:32:57
Python
UTF-8
Python
false
false
6,381
py
from .splits import * from .config import args_object_from_args_dict from .train import * from .predict import * from .interpret import * import argparse import pdb def parse_args(): parser=argparse.ArgumentParser(add_help=True) parser.add_argument("--multi_gpu",action="store_true",default=False) parser.a...
[ "annashcherbina@gmail.com" ]
annashcherbina@gmail.com
a1ee9dd36bec6ac5b2c5fcfb664c79cf089b0fd3
944d3c07a3e0edb65f41a4a302f494e6b44e3f45
/nntoolbox/callbacks/lookahead.py
d87b7f399790c6d799238d7cf9b99033b6816ce0
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
nhatsmrt/nn-toolbox
acbc753d6081ed1e2ed91ac0fd3343287c78a094
689b9924d3c88a433f8f350b89c13a878ac7d7c3
refs/heads/master
2022-12-05T21:11:23.725346
2021-08-15T17:03:34
2021-08-15T17:03:34
189,150,286
19
3
Apache-2.0
2023-09-08T19:29:53
2019-05-29T04:25:16
Python
UTF-8
Python
false
false
2,535
py
from .callbacks import Callback from ..utils import copy_model, get_device from typing import Dict, Any from torch.nn import Module __all__ = ['LookaheadOptimizer'] class LookaheadOptimizer(Callback): """ Lookahead Optimizer: Keep track of a set of "slow weights", which only update periodically. (UNTESTED) ...
[ "nhatsmrt@uw.edu" ]
nhatsmrt@uw.edu
066f1468dcad77bbbba420be664825ae167ba1e7
f6252f763b46053d81ffcc19919a5adcb0fff069
/trax/tf_numpy/numpy/tests/utils_test.py
2558976fd867d9db4baf0bf87b1ce79b48145b68
[ "Apache-2.0" ]
permissive
codespeakers/trax
ee5da9e39b83b173034ff2638d856dec38e9675a
9fc11bca7accda0394d629cac96558f4539d7f61
refs/heads/master
2020-12-14T15:50:49.634706
2020-01-18T20:52:27
2020-01-18T20:52:27
234,796,218
0
0
Apache-2.0
2020-01-18T20:51:52
2020-01-18T20:51:51
null
UTF-8
Python
false
false
1,847
py
# coding=utf-8 # Copyright 2019 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
1d77cbfd80b1f6ec236953a1d767cc6340842c4f
c858d9511cdb6a6ca723cd2dd05827d281fa764d
/MFTU/lesson 8/practice/minkowski_curve.py
b1f2a0c187c3359f45a4c64ed166b194bb559ba2
[]
no_license
DontTouchMyMind/education
0c904aa929cb5349d7af7e06d9b1bbaab972ef95
32a53eb4086b730cc116e633f68cf01f3d4ec1d1
refs/heads/master
2021-03-12T11:15:02.479779
2020-09-17T08:19:50
2020-09-17T08:19:50
246,616,542
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
from turtle import * shape('turtle') speed() size = 50 def minkowski_curve(length, n): """ Function draws a minkowski curve :param length: simple line length :param n: recursion depth :return: """ if n == 0: forward(length) return minkowski_curve(length, n - 1) le...
[ "tobigface@gmail.com" ]
tobigface@gmail.com
219ecdcca20b2b6ae2df729c0b04f80903956b35
f84998eddfe0800e525a5ef34dd8fac1898665b2
/pyski/pyski.py
1594fda402a49ea6f246a07eb80280dcf44b5817
[ "MIT" ]
permissive
asmodehn/adam
76fdd8b7e54c50b20b87309609452293dbc76123
98060d76c3aebbada257cd348532509bb2986a5d
refs/heads/master
2023-09-03T11:28:40.023415
2017-12-01T15:50:38
2017-12-01T15:50:38
106,175,072
1
0
null
null
null
null
UTF-8
Python
false
false
8,011
py
import sys import cmd import types from inspect import signature from svm import stk_set, stk_get, dup, drop, swap, over, rot #TODO : unify interface using list of args. # combinators # Note how we apply only the immediate composition for B. def B(x, y, z): return x, y(z) def C(x, y, z): return x, z, y def ...
[ "asmodehn@gmail.com" ]
asmodehn@gmail.com
f1c4caad5266b2e17020cc4bd4dbf9a3098a0328
50a7c55e00b661746fc953ee4940a8f3bf976b18
/re/finditer.py
1b7d9113e6a970ba95af69dd0b1a2430e16c9f36
[]
no_license
cponeill/pymotw-practice-examples
a9e049a5aee671c8bfc958c6a5bfcfb764f12444
6e87ca8be925bc103afb7c0f80da8a69f1e80a4c
refs/heads/master
2021-01-13T13:14:39.216035
2017-10-25T14:31:58
2017-10-25T14:31:58
72,708,203
1
0
null
null
null
null
UTF-8
Python
false
false
212
py
# finditer.py import re text = 'abbaaabbbbaaaaa' pattern = 'ab' for match in re.finditer(pattern, text): s = match.start() e = match.end() print('Found {!r} at {:d}:{:d}'.format(text[s:e], s, e))
[ "caseyoneill78@hotmail.com" ]
caseyoneill78@hotmail.com
2e8692153e8631b8e0a381191beddedb83a9b760
5e601244fbf32ee5190fb5210a0cd334473a0abe
/projects/WindowsSystemOps/Services/pyAutoResetPrinterWin32.py
c9fdba47c8f7031abcb85ddd9dc5a51b53b36df7
[]
no_license
DingGuodong/LinuxBashShellScriptForOps
69ebe45cf3f92b741a078b9b78c2600328ce9b9e
b2ca1e4c870626dd078d447e2d1479b08602bdf6
refs/heads/master
2023-08-21T20:53:40.617397
2023-07-17T01:41:05
2023-07-17T01:41:05
57,015,255
453
343
null
2023-02-16T01:29:23
2016-04-25T05:55:28
Python
UTF-8
Python
false
false
8,573
py
#!/usr/bin/python # encoding: utf-8 # -*- coding: utf-8 -*- """ Created by PyCharm. File Name: LinuxBashShellScriptForOps:pyAutoResetPrinterWin32.py Version: 0.0.1 Author: Guodong Author Email: dgdenterprise@gmail.com URL: https://github.com/DingG...
[ "uberurey_ups@163.com" ]
uberurey_ups@163.com
635200a8db1ecb79752b90c7330d891670f8b070
9d7d88cc4dc326993c6be9ba2a79b5afe86254c5
/tests/layers/test_position_embedding.py
c110c9a2872554a666f6bd1bc69f201b2421ab25
[]
no_license
LeeKLTW/posner
7ebe0e287c8a9db91e150ba08c41772757b2639f
9a1c6e00c463644a78ebf413b676c74c846dc23d
refs/heads/master
2022-12-16T17:32:38.327191
2020-02-26T11:50:47
2020-02-26T11:50:47
240,471,085
5
1
null
2022-12-08T03:36:50
2020-02-14T09:22:13
Python
UTF-8
Python
false
false
2,839
py
# -*- coding: utf-8 -*- import os import tempfile import unittest import numpy as np from tensorflow import keras from posner.layers import PositionEmbedding class TestSinCosPosEmbd(unittest.TestCase): def test_invalid_output_dim(self): with self.assertRaises(NotImplementedError): PositionEmbedding( ...
[ "LeeKLTW@gmail.com" ]
LeeKLTW@gmail.com
17a5b8659e14c201ad12ac9f18525fb17aba949f
674f5dde693f1a60e4480e5b66fba8f24a9cb95d
/armulator/armv6/opcodes/concrete/add_sp_plus_register_thumb_t3.py
1df3c88b2a6cafe7aa3816167f947a12888f3b06
[ "MIT" ]
permissive
matan1008/armulator
75211c18ebc9cd9d33a02890e76fc649483c3aad
44f4275ab1cafff3cf7a1b760bff7f139dfffb07
refs/heads/master
2023-08-17T14:40:52.793120
2023-08-08T04:57:02
2023-08-08T04:57:02
91,716,042
29
7
MIT
2023-08-08T04:55:59
2017-05-18T16:37:55
Python
UTF-8
Python
false
false
919
py
from armulator.armv6.bits_ops import substring, bit_at, chain from armulator.armv6.opcodes.abstract_opcodes.add_sp_plus_register_thumb import AddSpPlusRegisterThumb from armulator.armv6.shift import decode_imm_shift, SRType class AddSpPlusRegisterThumbT3(AddSpPlusRegisterThumb): @staticmethod def from_bitarra...
[ "matan1008@gmail.com" ]
matan1008@gmail.com
0e02aa64e88f8cd0103a0bc833aa86ea0ea95fbc
f68afe06e4bbf3d523584852063e767e53441b2b
/Toontown/toontown/toon/DistributedNPCToonBase.py
d205a2543f853382aff51eef5c62dc2aa6178d61
[]
no_license
DankMickey/Toontown-Offline-Squirting-Flower-Modded-
eb18908e7a35a5f7fc95871814207858b94e2600
384754c6d97950468bb62ddd8961c564097673a9
refs/heads/master
2021-01-19T17:53:36.591832
2017-01-15T02:00:04
2017-01-15T02:00:04
34,639,744
1
1
null
null
null
null
UTF-8
Python
false
false
4,444
py
from pandac.PandaModules import * from otp.nametag.NametagGroup import NametagGroup from direct.directnotify import DirectNotifyGlobal from direct.fsm import ClassicFSM from direct.fsm import State from toontown.toonbase import ToontownGlobals import DistributedToon from direct.distributed import DistributedObject impo...
[ "jareddarty96@gmail.com" ]
jareddarty96@gmail.com
0f92d183dd80697c0761f9cf3934f51b3b3fd1d8
9ad21dda46963fcdfe1e908596745d1d97be3dbc
/models/amenity.py
311c788d33abae282b7e95c9912d537cf31539e6
[ "LicenseRef-scancode-public-domain" ]
permissive
mj31508/AirBnB_clone_v2
ef903558983fc84ca7b31d20a40eedad9e622979
c676bc5fc6184aeb38f8669f7d295fef06e57165
refs/heads/master
2021-01-19T17:59:20.638896
2017-09-07T00:37:03
2017-09-07T00:37:03
101,103,176
0
0
null
null
null
null
UTF-8
Python
false
false
731
py
#!/usr/bin/python3 """ Amenity Class from Models Module """ from models.base_model import BaseModel, Base, Column, String, Table from sqlalchemy.orm import relationship, backref from os import getenv class Amenity(BaseModel): """Amenity class handles all application amenities""" if getenv("HBNB_TYPE_STORAGE...
[ "mj31508@gmail.com" ]
mj31508@gmail.com
1a2f4478fe86735f8c3590ae191a1535f26ead5e
9b80999a1bdd3595022c9abf8743a029fde3a207
/32-Writing Functions in Python /More on Decorators /Counter.py
2be3435d9e6819985cf09452b2f9ff7746cd86e5
[]
no_license
vaibhavkrishna-bhosle/DataCamp-Data_Scientist_with_python
26fc3a89605f26ac3b77c15dbe45af965080115a
47d9d2c8c93e1db53154a1642b6281c9149af769
refs/heads/master
2022-12-22T14:01:18.140426
2020-09-23T11:30:53
2020-09-23T11:30:53
256,755,894
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
'''You're working on a new web app, and you are curious about how many times each of the functions in it gets called. So you decide to write a decorator that adds a counter to each function that you decorate. You could use this information in the future to determine whether there are sections of code that you could rem...
[ "vaibhavkrishna.bhosle@gmail.com" ]
vaibhavkrishna.bhosle@gmail.com
4856288bd9541b5caa96a0ea2e85cd69b7d31a65
ece0d321e48f182832252b23db1df0c21b78f20c
/engine/2.80/scripts/addons/add_curve_extra_objects/__init__.py
1653ad86f875ef36beef157620f21d7633f0d31a
[ "Unlicense", "GPL-3.0-only", "Font-exception-2.0", "GPL-3.0-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain-disclaimer", "Bitstream-Vera", "LicenseRef-scancode-blender-2010", "LGPL-2.1-or-later", ...
permissive
byteinc/Phasor
47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
refs/heads/master
2022-10-25T17:05:01.585032
2019-03-16T19:24:22
2019-03-16T19:24:22
175,723,233
3
1
Unlicense
2022-10-21T07:02:37
2019-03-15T00:58:08
Python
UTF-8
Python
false
false
12,422
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ "admin@irradiate.net" ]
admin@irradiate.net
b37518ea6e71d2bfbce6dd7613cdae72767dc2d5
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_383/ch84_2019_06_06_20_42_07_280719.py
c024c1d4525f58eee0be02e2b9c6b8bdfb678c43
[]
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
151
py
def inverte_dicionario(dicionario): dic={} for k,v in dicionario.items(): if k not in dic: dic[v] = [k] else: dic[i].append(k) return dic
[ "you@example.com" ]
you@example.com
3e02054f06af47425f874171b112433e6801cf4d
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/django-1.2/tests/regressiontests/forms/localflavor/au.py
aeb1337e0162f17d8ed5184078850e0af2b835dc
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
111
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/tests/regressiontests/forms/localflavor/au.py
[ "ron.y.kagan@gmail.com" ]
ron.y.kagan@gmail.com
6eab6235773fadc371788dc6921ac27ab34d157e
6f866eb49d0b67f0bbbf35c34cebe2babe2f8719
/tests/app/views/handlers/conftest.py
8ac724a725dc9f88afecffd8b9b45dc2787c076c
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
ONSdigital/eq-questionnaire-runner
681b0d081f9cff0ee4ae3017ecc61f7390d553bf
87e7364c4d54fee99e6a5e96649123f11c4b53f1
refs/heads/main
2023-09-01T21:59:56.733363
2023-08-31T15:07:55
2023-08-31T15:07:55
219,752,509
12
18
MIT
2023-09-14T11:37:31
2019-11-05T13:32:18
Python
UTF-8
Python
false
false
7,411
py
import uuid from datetime import datetime, timedelta, timezone import pytest from freezegun import freeze_time from mock import Mock from app.authentication.auth_payload_versions import AuthPayloadVersion from app.data_models import QuestionnaireStore from app.data_models.metadata_proxy import MetadataProxy from app....
[ "noreply@github.com" ]
ONSdigital.noreply@github.com
3dc4c09fb5506a33933c0f69ed47ea51604b13d2
5102f7b8a300186496ce7691c6135efeeaeedd6c
/jobplus/app.py
8fefd43ae3d75fa52ccf45f67da58614eba6ec85
[]
no_license
ISONEK/jobplus10-3
c0bc4ddfca67e54b5015cd9b1bfbfb2499338209
b595e3c53ced93efa7883c67a4633132b5f52c15
refs/heads/master
2022-10-20T20:53:15.506235
2019-02-25T14:05:14
2019-02-25T14:05:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
336
py
from flask import Flask from flask_migrate import Migrate from .config import configs from .handlers import front from jobplus.models import db def create_app(config): app = Flask(__name__) app.config.from_object(configs.get(config)) db.init_app(app) Migrate(app,db) app.register_blueprint(front) ...
[ "1195581533@qq.com" ]
1195581533@qq.com
6808a79a41526dcd13328e520ccf4ed137afc868
0feec97d29377f419d0e4e160b589f094d7493df
/autotest/gdrivers/kea.py
ec95f2f2520c9bd57a506dc29a6cf83f7039f2af
[ "MIT" ]
permissive
Komzpa/gdal
305176b1146cb4a9783cc17eb1308a8d2ac4a093
9ab85be2cc927a34d6fdf311e803aeaf7362fba3
refs/heads/trunk
2020-12-28T19:11:33.810933
2015-04-04T23:38:45
2015-04-04T23:38:45
33,422,287
0
1
null
2015-04-04T22:18:40
2015-04-04T22:18:40
null
UTF-8
Python
false
false
30,081
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id $ # # Project: GDAL/OGR Test Suite # Purpose: Test KEA driver # Author: Even Rouault, <even dot rouault at spatialys dot com> # #######################################################...
[ "even.rouault@mines-paris.org" ]
even.rouault@mines-paris.org
4c8a5ec0a1babe7f7faaccd7a56cf6452644aa9e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02783/s364760222.py
56095ba287f4d078faedb65eb7b8df8402523e7c
[]
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
1,012
py
import sys #import string #from collections import defaultdict, deque, Counter #import bisect #import heapq #import math #from itertools import accumulate #from itertools import permutations as perm #from itertools import combinations as comb #from itertools import combinations_with_replacement as combr #from fractions...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8f1a6d780bd0edce2d520e13dad88a8227254da9
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/src/datadog_api_client/v2/model/confluent_account_resource_attributes.py
17ce380b94bbc1ddf35e1700b093ca27a39b4d1d
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
2,096
py
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import annotations from typing import List, Union from datadog_api_cli...
[ "noreply@github.com" ]
DataDog.noreply@github.com
66491e93bac49e0f9d5e1cb7578aace7fd501279
7694af8a805b20f2d9f435b381d8cb5e59bffa50
/apps/landing/templatetags/cart_template_tags.py
c7596e8ad09f84ee8777f8d9a432df147b2dd23a
[]
no_license
RympeR/dindex_landing
b0e1115a7009e25072369077a6854b93f1111054
cb422bb148a2b5793e0ba13c9525dd0fd64a6f09
refs/heads/main
2023-06-23T20:16:14.908847
2021-07-22T14:05:29
2021-07-22T14:05:29
380,458,484
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
from django import template register = template.Library() @register.filter def post_categories(value): return 0
[ "georg.rashkov@gmail.com" ]
georg.rashkov@gmail.com
fe5bc6143a588be282570b8bc834be40068790f1
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnn1329.py
dd7710a727f8089d0e50e81562f7df4f484b794b
[]
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
121
py
ii = [('UnitAI.py', 1), ('FitzRNS3.py', 1), ('DaltJMA.py', 1), ('WheeJPT.py', 1), ('MereHHB3.py', 1), ('MereHHB2.py', 2)]
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
5a0d3f5f22f67c39c6323697a44bd6491d06ab42
a5455dbb01687ab031f6347306dbb5ccc3c0c162
/第一阶段/day13/code/mymod3.py
bb84da638d9bdc4dc9f09578b20fc403ed12fb85
[]
no_license
zuobing1995/tiantianguoyuan
9ff67aef6d916e27d92b63f812c96a6d5dbee6f8
29af861f5edf74a4a1a4156153678b226719c56d
refs/heads/master
2022-11-22T06:50:13.818113
2018-11-06T04:52:53
2018-11-06T04:52:53
156,317,754
1
1
null
2022-11-22T01:06:37
2018-11-06T03:02:51
Python
UTF-8
Python
false
false
156
py
# mymod3.py # 此模块示意模块的隐藏属性 def f1(): pass def _f2(): pass def __f3(): pass name1 = "abc" _name2 = '123'
[ "bing@163.com" ]
bing@163.com
ee413656c69701681e6825f68e0cd9d3ab01a601
5f885e38973c4eddd6f086cbc7463de56fe1edab
/rotkehlchen/exchanges/bittrex.py
1f4f76b8e4842a5a53cce1dfab102cd03bd98952
[ "BSD-3-Clause" ]
permissive
hjorthjort/rotki
8922372e2f1ce5bf5fab3a68f0362b50a952af81
5bd4cdf0c756873b41999ced6d5fd7383fb75963
refs/heads/master
2021-03-24T00:14:56.421344
2020-03-10T12:26:16
2020-03-10T13:43:15
247,496,415
0
0
BSD-3-Clause
2020-03-15T15:39:52
2020-03-15T15:39:52
null
UTF-8
Python
false
false
15,927
py
import hashlib import hmac import logging import time from json.decoder import JSONDecodeError from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union, overload from urllib.parse import urlencode from typing_extensions import Literal from rotkehlchen.assets.asset import Asset from rotkehlchen.assets...
[ "lefteris@refu.co" ]
lefteris@refu.co
35c18252ebf33bb45574a6aac18b24612ea99638
98efe1aee73bd9fbec640132e6fb2e54ff444904
/loldib/getratings/models/NA/na_ezreal/na_ezreal_top.py
9d3af100a74aaa3bca56f5bd36d826514b917710
[ "Apache-2.0" ]
permissive
koliupy/loldib
be4a1702c26546d6ae1b4a14943a416f73171718
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
refs/heads/master
2021-07-04T03:34:43.615423
2017-09-21T15:44:10
2017-09-21T15:44:10
104,359,388
0
0
null
null
null
null
UTF-8
Python
false
false
6,545
py
from getratings.models.ratings import Ratings class NA_Ezreal_Top_Aatrox(Ratings): pass class NA_Ezreal_Top_Ahri(Ratings): pass class NA_Ezreal_Top_Akali(Ratings): pass class NA_Ezreal_Top_Alistar(Ratings): pass class NA_Ezreal_Top_Amumu(Ratings): pass class NA_Ezreal_Top_Anivia(Ratings): ...
[ "noreply@github.com" ]
koliupy.noreply@github.com
c66f64e3cdef0df7c0c6fea5459b75f5b42961cf
c17374a533fd7f21be10ef2077e261849ed87c7e
/electoraid_cms/urls.py
e8e35769590ed4bab0662190aff56da33362675d
[]
no_license
electoraid/electoraid-cms
cf8a6f9ebf6951625c202ff8b9e2c3ad72f528ae
8a11b4b7b6d9eadf283af0725a57710eddffe216
refs/heads/master
2022-12-12T13:47:02.793891
2019-12-04T02:25:09
2019-12-04T02:25:09
223,650,774
0
0
null
2022-12-08T03:15:57
2019-11-23T20:45:38
Python
UTF-8
Python
false
false
967
py
"""electoraid_cms 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='home') Clas...
[ "davideads@gmail.com" ]
davideads@gmail.com
d50399a4eaf3be5ae62e3552b7e3c06a7c689c23
e14605612c96d450bea1fca7fa9963105b6452fb
/tensorflow/python/training/ftrl_test.py
eb581048f165c2cfcebeff4238941b043d138053
[ "Apache-2.0" ]
permissive
Yangqing/tensorflow
0bb9259398eac98dc8e9f48cc0b7506f4d5f8a24
18792c1fce7e12d36c0f1704cff15ed820cc6ff5
refs/heads/master
2023-06-20T21:11:52.483377
2015-11-11T21:16:55
2015-11-11T21:16:55
45,876,905
2
2
null
2015-11-11T21:16:55
2015-11-10T00:38:20
C++
UTF-8
Python
false
false
8,845
py
"""Functional tests for Ftrl operations.""" import tensorflow.python.platform import numpy as np import tensorflow as tf class FtrlOptimizerTest(tf.test.TestCase): def testFtrlwithoutRegularization(self): with self.test_session() as sess: var0 = tf.Variable([0.0, 0.0]) var1 = tf.Variable([0.0, 0.0...
[ "keveman@gmail.com" ]
keveman@gmail.com
a121f41b3cc1380246409f13814789b0c1093fa0
0d5c77661f9d1e6783b1c047d2c9cdd0160699d1
/python/paddle/fluid/tests/unittests/test_parallel_executor_test_while_train.py
252793944462244539084a288e5259f216359650
[ "Apache-2.0" ]
permissive
xiaoyichao/anyq_paddle
ae68fabf1f1b02ffbc287a37eb6c0bcfbf738e7f
6f48b8f06f722e3bc5e81f4a439968c0296027fb
refs/heads/master
2022-10-05T16:52:28.768335
2020-03-03T03:28:50
2020-03-03T03:28:50
244,155,581
1
0
Apache-2.0
2022-09-23T22:37:13
2020-03-01T13:36:58
C++
UTF-8
Python
false
false
3,770
py
# Copyright (c) 2018 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://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "xiaoyichao@haohaozhu.com" ]
xiaoyichao@haohaozhu.com
10715d27aa4f7e90889e6c3656f863943f5b87a0
04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29
/404/Solution.py
fc03385d6cf998b49aa9ceaf42511cad45ba0ca5
[]
no_license
zhangruochi/leetcode
6f739fde222c298bae1c68236d980bd29c33b1c6
cefa2f08667de4d2973274de3ff29a31a7d25eda
refs/heads/master
2022-07-16T23:40:20.458105
2022-06-02T18:25:35
2022-06-02T18:25:35
78,989,941
14
6
null
null
null
null
UTF-8
Python
false
false
1,489
py
""" Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left leaves in the binary tree, with values 9 and 15 respectively. Return 24. """ # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x se...
[ "zrc720@gmail.com" ]
zrc720@gmail.com
11536b5271ae3d430e3c66740a0fa2cbea21f19b
0089e87d4e9bef9df4fe6611a79a13225c01b98e
/mB3-python-03/script-b0307-01.py
e9ade0c7dc5e3463fdb7dbdf2ba8361e5a78fbb1
[]
no_license
odvk/sf-pyfullstack-c02
63ea99bf6bea79113fe75e0e6f4e5cdfb4a90aca
4521b9652264d03c082a9390dbcdcec2586c8fd1
refs/heads/master
2020-06-25T06:48:50.944156
2019-08-17T06:08:02
2019-08-17T06:08:02
199,236,372
0
0
null
null
null
null
UTF-8
Python
false
false
3,128
py
# В3.7 Ещё раз про “магические” методы class User: def __init__(self): print("Конструирую пользователя") self.name = "Гелиозавр" # конструктор это функция определяемая внутри класса; # конструктор называется __init__ (два подчёркивания с двух сторон от названия); # конструктор это функция: есть ф...
[ "kustov.dv@gmail.com" ]
kustov.dv@gmail.com
8c994e8baded11dfb7211bd97cfef1a47f2fdf33
8fd314074713b3af02d68fd99fa5bf323283439f
/server/src/uds/dispatchers/__init__.py
67ac9fa4e1883883983f5b8efeb5bf3c4d4ec13a
[]
no_license
spofa/openuds
099f5d4b4eaf54064d3c2f22a04653d304552294
a071ce5e3ed7a3e8973431cc2e884ff4219b8056
refs/heads/master
2021-07-04T14:16:13.810597
2017-09-21T13:50:07
2017-09-21T13:50:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,613
py
# -*- coding: utf-8 -*- # # Copyright (c) 2012 Virtual Cable S.L. # All rights reserved. # ''' @author: Adolfo Gómez, dkmaster at dkmon dot com ''' from __future__ import unicode_literals import logging logger = logging.getLogger(__name__) ''' Service modules for uds are contained inside this package. To create a n...
[ "dkmaster@dkmon.com" ]
dkmaster@dkmon.com
875e902874cd19eed9179c2b9f5951774b7ebdd3
083ca3df7dba08779976d02d848315f85c45bf75
/ZumaGame2.py
0233172d4172027141b217916e5abb0e6ac474f9
[]
no_license
jiangshen95/UbuntuLeetCode
6427ce4dc8d9f0f6e74475faced1bcaaa9fc9f94
fa02b469344cf7c82510249fba9aa59ae0cb4cc0
refs/heads/master
2021-05-07T02:04:47.215580
2020-06-11T02:33:35
2020-06-11T02:33:35
110,397,909
0
0
null
null
null
null
UTF-8
Python
false
false
1,067
py
class Solution: def findMinStep(self, board: str, hand: str) -> int: def removeConsecutive(b): j = 0 for i in range(len(b) + 1): if i < len(b) and b[i] == b[j]: continue if i - j >= 3: return removeConsecutive(b[...
[ "jiangshen95@163.com" ]
jiangshen95@163.com
ca0321aca72bd390e64948f0e7f89acf174fef9a
1d36f1a3c527e364b50cb73d0ce82b5b5db917e6
/sdk/identity/azure-identity/azure/identity/aio/_credentials/certificate.py
1b044a24c0e14bee3174e19fcfc646c2d828904f
[ "LicenseRef-scancode-generic-cla", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
emreyalcin26/azure-sdk-for-python
08c0a294e49e9c3a77867fb20ded4d97722ea551
6927458c7baa5baaf07c3b68ed30f6e517e87c9a
refs/heads/master
2022-10-17T02:25:23.373789
2020-06-12T23:43:40
2020-06-12T23:43:40
272,001,096
1
0
MIT
2020-06-13T12:06:11
2020-06-13T12:06:11
null
UTF-8
Python
false
false
2,745
py
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ from typing import TYPE_CHECKING from .base import AsyncCredentialBase from .._internal import AadClient from ..._internal import CertificateCredentialBase if TYPE_CHE...
[ "noreply@github.com" ]
emreyalcin26.noreply@github.com
aa3cad735dc9453629e4cb87982cd2dc96c5743e
32cb84dd41e4be24c065bb205f226f9b121a6db2
/antiddos/policy.py
eea1a79695c59d373b35ac96a1b19ba7d74d6620
[]
no_license
InformatykaNaStart/staszic-sio2
b38fda84bd8908472edb2097774838ceed08fcfa
60a127e687ef8216d2ba53f9f03cfaa201c59e26
refs/heads/master
2022-06-29T11:09:28.765166
2022-06-13T21:56:19
2022-06-13T21:56:19
115,637,960
1
0
null
null
null
null
UTF-8
Python
false
false
435
py
from oioioi.evalmgr.models import QueuedJob from django.conf import settings def queued_submissions_of(user): return QueuedJob.objects.filter(state='WAITING',submission__user=user).count() def get_queued_submissions_limit(): return getattr(settings, 'MAX_QUEUED_SUBMISSIONS_PER_USER', 10**3) def can_submit(us...
[ "hugo@staszic.waw.pl" ]
hugo@staszic.waw.pl
656c4bcc2e28b5938448e7b70cf38bafc93e704e
5a4f1e3013290d331d2a1e69daa69c29882fb97c
/asynclib/base_events.py
297e94c06411df242ff3ccb72025edad82377e36
[]
no_license
pfmoore/asynclib
308e28609f28638f7a05c2c8e3f1fde9aa72e984
b03979cd532632e5165a8d35f2024ce2ea8dfc5b
refs/heads/master
2021-01-22T03:08:52.297430
2015-05-16T12:02:41
2015-05-16T12:02:41
35,449,413
0
0
null
null
null
null
UTF-8
Python
false
false
1,591
py
"""Event loop.""" from .tasks import Task class EventLoop: def __init__(self): self.ready = [] self.call_soon_queue = [] self.running = False def call_soon(self, fn): self.call_soon_queue.append(fn) def _run_one_step(self): while self.call_soon_queue: fn ...
[ "p.f.moore@gmail.com" ]
p.f.moore@gmail.com
f2d870ea60c114be0dfb7f2f551b3c0f0b4a0a48
3bb57eb1f7c1c0aced487e7ce88f3cb84d979054
/qats/scripts/evaluators/formatted_accuracy.py
5ab4d2d8e8201b614d6d230be335d6d736d814a5
[]
no_license
ghpaetzold/phd-backup
e100cd0bbef82644dacc73a8d1c6b757b2203f71
6f5eee43e34baa796efb16db0bc8562243a049b6
refs/heads/master
2020-12-24T16:41:21.490426
2016-04-23T14:50:07
2016-04-23T14:50:07
37,981,094
0
1
null
null
null
null
UTF-8
Python
false
false
1,785
py
import os from tabulate import tabulate from scipy.stats import spearmanr def getAccuracy(pred, gold): right = 0.0 for i in range(0, len(pred)): if pred[i]==gold[i]: right += 1.0 return right/len(pred) types = ['G', 'M', 'S', 'O'] systems = sorted(os.listdir('../../labels/G')) names = {} names['nn'] = 'Simpl...
[ "ghpaetzold@outlook.com" ]
ghpaetzold@outlook.com