blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
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
684 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
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
a76256e5c53a0f726234358d2eeec7cce0cde04f
06ab66fe85631fb8e0351245af483b3a8e98295b
/src/config/logger.py
a708dd302034317cdf2dbf836a63869ed4a63415
[]
no_license
SeanCherngTW/toy-real-time-bidding-buyer
ed62d8e60f196bff06ad69765f7ae8e711b66ea1
82e09598649d2ffd4aecc6356257fa3c5a0504ea
refs/heads/main
2023-06-12T18:19:07.445796
2021-07-05T14:16:40
2021-07-05T14:16:40
383,154,896
2
0
null
null
null
null
UTF-8
Python
false
false
1,239
py
import os import logging from os.path import exists from logging import handlers class DebugLog(object): def __init__(self, ad_path_config): self.model_name = ad_path_config['model_name'] self.log_file_path = ad_path_config['log_file_path'] + self.model_name + ".log" self.dst_dir = ad_path...
829a60803827790a24c17e21c99521fc7746dd54
bae7e3b6cdfd6f354b79dbc849c1969a46aed586
/hiAPP/plot_linkage_matrix.py
62439c042f1b38aa4eb1a36072056960d65d5d01
[ "MIT" ]
permissive
jmborr/LDRDSANS
7f6b8ef44db3b93972ae9bff08a641067c19bae1
b8081ecb78da46a530d61efd3cb6764f3b17b567
refs/heads/master
2021-07-24T23:49:38.271100
2017-11-05T22:36:40
2017-11-05T22:36:40
71,494,238
0
0
null
null
null
null
UTF-8
Python
false
false
1,315
py
# -*- coding: utf-8 -*- """ Matplotlib of the dendogram associated with the linkage matrix. Thanks to Jorn's Blog <https://joernhees.de/blog/2015/08/26/scipy-hierarchical-clustering-and-dendrogram-tutorial/> """ # needed imports from matplotlib import pyplot as plt from scipy.cluster.hierarchy import dendrogram, lin...
ce67d5e4cbc106774ba02c02cb38b2fa7b165403
b01eee55884e21412a1812593996a0d9156e20bc
/cipp/x64assembler/instructions/push_reg.py
d3c6d03e68af5bf12c7f9965096d230b1733a50b
[]
no_license
JacquesLucke/cipp
46bdb7eebaeb863f424c92542ea56b49b5f0fe2e
d4f38fd1fc84aed9cbf49b85bf6c4b96f2561f71
refs/heads/master
2021-10-27T18:29:23.288884
2019-04-18T15:36:52
2019-04-18T15:36:52
123,611,764
0
0
null
null
null
null
UTF-8
Python
false
false
761
py
from .. bits import Bits from .. block import Instruction class PushRegInstr(Instruction): def __init__(self, reg): assert reg.size in (16, 64) self.reg = reg def toIntelSyntax(self): return f"push {self.reg.name}" def toMachineCode(self): if self.reg.size == 64: ...
a19341832df5aa7bd0970ac6ef6b9c9a7279c21a
73b5d880fa06943c20ff0a9aee9d0c1d1eeebe10
/tinyos-1.x/contrib/ucb/apps/LandmarkRouting/lossy.py
404b3df55a95a17dbacc58e49ca3b896c54ce7b8
[ "Intel" ]
permissive
x3ro/tinyos-legacy
101d19f9e639f5a9d59d3edd4ed04b1f53221e63
cdc0e7ba1cac505fcace33b974b2e0aca1ccc56a
refs/heads/master
2021-01-16T19:20:21.744228
2015-06-30T20:23:05
2015-06-30T20:23:05
38,358,728
0
1
null
null
null
null
UTF-8
Python
false
false
781
py
from simcore import * if not sim.__driver.pluginManager.getPlugin("RadioModelGuiPlugin").isRegistered(): print "Please create radio model first using the Radio Model Plugin." else: pf = open('packet','w') space = ' ' end = ' 0.0 0.0\n' for i in motes: for j in motes: ...
fc49994cbf7356c6fd241ebfa3d48ca03c7d5983
f0a5ad7b8aa39f51f233391fead0da3eabecc4ee
/.history/toolbox/tradaExtract_20191128085816.py
a1f0a049b0449f364b7c3a9c579677dbaf4a3ae4
[]
no_license
OseiasBeu/webScrapping
e0a524847e55b24dbbd3d57bbe7fa43b4e101f48
1e72c7551aea355a891043baecfcbab8a89e719a
refs/heads/master
2022-10-25T18:12:50.858653
2020-06-18T01:29:24
2020-06-18T01:29:24
224,681,550
0
0
null
null
null
null
UTF-8
Python
false
false
559
py
from bs4 import BeautifulSoup arr = [['#', 'clienteEstado', 'warehouseId', 'Pendentes', 'de', 'integrao'], ['1', 'SP', '2404', '48'], ['2', 'SP', '2462', '10'], ['3', 'SP', '7100', '7'], ['4', 'MG', 'BR19_A002', '6'], ['5', 'SP', 'BR19_A002', '6'], ['6', 'PE', 'BR19_A002', '5'], ['7', 'SP', '2444', '3'], ['8', 'MG', '...
6171b8e1aaffc27ebb5b2e594409e8ce47552e37
ae9d32213e4ab423965e4a7f3ba1e6abfea85817
/PreplotCalculator.py
93599d5d0fedb8bd01a8babfdb6fcdffc49ae537
[]
no_license
syntaxnoob/SpawnerDistance
9e8d68123a8eb6835cff33f991b12bb153fb0858
a07767d5e9358bb2b1efde171ee4a5c297302933
refs/heads/master
2022-07-31T08:24:35.172896
2020-05-23T16:22:09
2020-05-23T16:22:09
263,573,361
0
1
null
null
null
null
UTF-8
Python
false
false
3,143
py
#!/bin/python3 import math import pandas as pd ### Variabel ### # spawner coordinates (Xcoordinate, Ycoordinate, Zcoordinate) Spawners = [(370, 28, 886), (365, 37, 945), (359, 39, 917), (381, 42, 917), (351, 44, 931), (362, 44, 891), (408, 44, 927), (429, 35, 897)] Bigsum = 0 Distancelist = [] # List with ...
3b497b13bfb03c08d8605c64566caeff353afe1f
a1aadb13c35f2a3fb27078090e5a582a3ea462f1
/devel/py-pyobjc-core/patches/patch-setup.py
f046aa0efda0c7712c4171148edac369e6c807f7
[]
no_license
fidelix-project/pkgsrc
702346ca3a74b3dced9de29b07d342154466d1bd
8a6673aa3e19b8604d2077015dc4673304399afc
refs/heads/master
2022-11-06T04:48:33.983672
2020-06-28T14:06:28
2020-06-28T14:06:28
273,759,036
1
2
null
null
null
null
UTF-8
Python
false
false
742
py
$NetBSD: patch-setup.py,v 1.1 2019/11/18 17:05:06 adam Exp $ Do not add debug symbols. Do not override compiler optimiztion flags. --- setup.py.orig 2019-11-18 16:02:47.000000000 +0000 +++ setup.py @@ -66,7 +66,6 @@ def get_sdk_level(sdk): # CFLAGS for the objc._objc extension: CFLAGS = [ - "-g", "-fexcep...
ca46bb856d561d725345a0a14058c5877a4cac0e
9adc810b07f7172a7d0341f0b38088b4f5829cf4
/experiments/ashvin/icml2020/d4rl/test1.py
99515aca2a2dba3519cd10dc424cb31a7cf4af19
[ "MIT" ]
permissive
Asap7772/railrl_evalsawyer
7ee9358b5277b9ddf2468f0c6d28beb92a5a0879
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
refs/heads/main
2023-05-29T10:00:50.126508
2021-06-18T03:08:12
2021-06-18T03:08:12
375,810,557
1
0
null
null
null
null
UTF-8
Python
false
false
4,000
py
""" AWR + SAC from demo experiment """ from rlkit.demos.source.hdf5_path_loader import HDF5PathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies import Gaussia...
5022b105c714e2dc4421650a004f69e753e7f87b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_unbarring.py
324d198051173b711ebc3f517ecffc2d0ffdcc48
[ "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
224
py
#calss header class _UNBARRING(): def __init__(self,): self.name = "UNBARRING" self.definitions = unbar self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['unbar']
2520af0b5128fb372cc2fef73350890249d44869
5396a46275e52bfc972f05097e925742d5bbf2d1
/_2016/eola/thumbnails.py
9bc1e91212c3f71dae4f75496806adaf7814e43c
[ "MIT" ]
permissive
3b1b/videos
6ab0e4fe0fb07d15b5455f8726131a880437c42c
e841b1410fdda2d3bddb7cfa12ce070a3b66a026
refs/heads/master
2023-08-29T01:37:23.424512
2023-08-16T03:35:03
2023-08-16T03:35:03
325,873,493
4,601
1,868
null
2023-03-30T08:15:37
2020-12-31T21:07:33
Python
UTF-8
Python
false
false
4,029
py
from manim_imports_ext import * from _2016.eola.chapter9 import Jennifer, You class Chapter0(LinearTransformationScene): CONFIG = { "include_background_plane" : False, "t_matrix" : [[3, 1], [2, -1]] } def construct(self): self.setup() self.plane.fade() for mob in sel...
5cc0139aa5321db4c991af5ca4902a1878f8d7f1
ec1deb682fb96a1f937f2fca5f161aa951462876
/unittestPython/part_1/name_function.py
61209de86dc7aec85c8f1a819784981abebebc0c
[]
no_license
AnatoliKosarev/Python-beginner-course--Teclado-
31d82f5e9a1f39e2970323bed9de1fd539990565
fa91199938d6975b5874341585343566caaf3600
refs/heads/main
2023-06-30T12:14:33.779827
2021-07-24T11:16:19
2021-07-24T11:16:19
376,371,590
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
def get_formatted_name(first, last, middle=""): # middle name is optional if middle: full_name = f"{first} {middle} {last}" else: full_name = f"{first} {last}" return full_name.title()
db09f5e6aeb8defe8a7c9c365689f0ee46b07dc4
2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac
/Dsz/PyScripts/Lib/dsz/mca/network/cmd/banner/errors.py
3dffd24a2b423eab69b50b74ee3889931f22a361
[]
no_license
FingerLeakers/DanderSpritz_docs
f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364
d96b6a71c039b329f9f81544f645857c75360e7f
refs/heads/master
2021-01-25T13:05:51.732149
2018-03-08T01:22:49
2018-03-08T01:22:49
123,527,268
2
0
null
2018-03-02T03:48:31
2018-03-02T03:48:30
null
UTF-8
Python
false
false
1,606
py
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20) # [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] # Embedded file name: errors.py import mcl.status ERR_SUCCESS = mcl.status.MCL_SUCCESS ERR_INVALID_PARAM = mcl.status.framework.ERR_STAR...
447fc54eea01a339401254a7ab9eea6548c5d5d1
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/intentions/PyInvertIfConditionIntentionTest/generalNoElseTry.py
8071d065e802d90e83cc718813bbe0e7adcdde7c
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
207
py
def func(): value = "not-none" <caret>if value is None: print("None") return try: return int(value) except ValueError: raise RuntimeError("Value is not int")
971d6c7a8b93db04103d5493b66aab379de626ae
2794764ddbe9daf666601014cb84e5ca7b6ca7c3
/Account/urls.py
d1d10c86cebf2fd2a839bfcf8f84f540ce97c97e
[]
no_license
aydanaderi/goldoon
5b7341f1b94cb607bcc7b895fe22a6affb817cd7
3f4cc6a526eae70f55833d0b07d5209b243aff20
refs/heads/main
2023-01-19T16:12:22.837854
2020-11-26T15:46:24
2020-11-26T15:46:24
311,077,966
0
0
null
null
null
null
UTF-8
Python
false
false
638
py
from django.urls import path from knox import views as knox_views from . import views urlpatterns = [ path('signup/', views.RegisterAPI.as_view(), name = 'register'), path('login/', views.LoginAPI.as_view(), name = 'login'), path('logout/', knox_views.LogoutView.as_view(), name = 'logout'), path('chang...
1c57bba12ea1d28e3d22c8f069be2ea6fb0a8d9d
aca4f00c884e1d0e6b2978512e4e08e52eebd6e9
/2021/atcoder.jp/abc/196/prob.py
561d92c060025a984e9491c8ceafd39586a1b707
[]
no_license
jki14/competitive-programming
2d28f1ac8c7de62e5e82105ae1eac2b62434e2a4
ba80bee7827521520eb16a2d151fc0c3ca1f7454
refs/heads/master
2023-08-07T19:07:22.894480
2023-07-30T12:18:36
2023-07-30T12:18:36
166,743,930
2
0
null
2021-09-04T09:25:40
2019-01-21T03:40:47
C++
UTF-8
Python
false
false
400
py
from math import floor from sys import stderr, stdout def solution(s): p = s.find('.') if p == -1: p = len(s) stdout.write('%d\n' % int(s[:p])) def main(): while True: try: s = raw_input().strip() solution(s) except EOFError: break ...
4e4b7278b5d85aced09f29bfe8d49d79fc5fb567
c1ee8f22ece4fc39cb94fe19832fcba8e45cf5bc
/프로그래머스/문자열 내 마음대로 정렬하기.py
a45fa146443052022e2644fb242635aa218465d9
[]
no_license
JeongHanJun/BOJ
ae6b1c64c5b3226deef2708ae447aa1225333a92
a865624fb0a9291b68f99af8535f708554fa0b41
refs/heads/master
2023-03-31T02:22:58.974437
2021-04-02T02:43:57
2021-04-02T02:43:57
258,809,902
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
# 문자열 내 마음대로 정렬하기 # 제목부터 sorted, key, lambda 가 떠오른다. def solution(strings, n): answer = sorted(strings, key = lambda x : (x[n], x)) return answer s1 = ["sun", "bed", "car"] n1 = 1 s2 = ["abce", "abcd", "cdx"] n2 = 2 print(solution(s1, n1)) print(solution(s2, n2))
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())
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()
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...
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...
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...
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"
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...
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...
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] ==...
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...
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...
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')
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...
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] ...
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...
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...
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.")
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...
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...
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...
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 = []): ...
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)
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!") ...
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...
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()
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...
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...
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...
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...
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_())
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__ = "[email protected]" __version__ = "0.1.0" from .store import Store
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']
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...
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 ...
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...
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...
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()
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...
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', ...
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 = { ...
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?" ...
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. # ##########################################...
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: [email protected] Generated by: https://openapi-...
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...
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, [email protected] 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...
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 ...
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', ...
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-%...
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...
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) ...
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...
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...
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 ...
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))
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( ...
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...
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...
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...
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...
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
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....
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) ...
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...
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...
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'
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): ...
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...
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...
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__ (два подчёркивания с двух сторон от названия); # конструктор это функция: есть ф...
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...
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[...
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...
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...
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 ...
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...
6a5307ad7db7ca33697b63b6436b59f2d9a19557
847273de4b1d814fab8b19dc651c651c2d342ede
/.history/solve_20180621175952.py
3582f849f7b735ae37b11bf925233f5c6574c087
[]
no_license
Los4U/sudoku_in_python
0ba55850afcffeac4170321651620f3c89448b45
7d470604962a43da3fc3e5edce6f718076197d32
refs/heads/master
2020-03-22T08:10:13.939424
2018-07-04T17:21:13
2018-07-04T17:21:13
139,749,483
0
1
null
null
null
null
UTF-8
Python
false
false
1,846
py
def findNextCellToFill(grid, i, j): for x in range(i,9): for y in range(j,9): if grid[x][y] == 0: return x,y for x in range(0,9): for y in range(0,9): if grid[x][y] == 0: ...
a7397e10786125cdc8ee81286b7a97fdbc6f1f78
38b8bceafb4d80afc7c77196eb9ee99694191bcf
/wxpython/grid2.py
e9749835196d535abce07a36ed5223c8b385ea9f
[]
no_license
tangc1986/PythonStudy
f6c5b384874e82fbf0b5f51cfb7a7a89a48ec0ff
1ed1956758e971647426e7096ac2e8cbcca585b4
refs/heads/master
2021-01-23T20:39:23.930754
2017-10-08T07:40:32
2017-10-08T07:42:38
42,122,267
0
0
null
null
null
null
UTF-8
Python
false
false
845
py
# -*- coding: UTF-8 -*- __author__ = 'tangchao' import wx import wx.grid class TestFrame(wx.Frame): rowLabels = ["uno", "dos", "tres", "quatro", "cinco"] colLabels = ["homer", "marge", "bart", "lisa", "mnaggie"] def __init__(self): wx.Frame.__init__(self, None, title="Grid Headers", ...
ba3716f0dc54c992ee423cea11f9fbcde6fadde9
9cc3135d5fcd781c0542a905c61dc19b0ceeffef
/alien_colors_ver1-1.py
cad614ac833cdc33de423b5b07873c40dfe1f32c
[]
no_license
bkalcho/python-crash-course
411d8af223fb6974d4f890c0f82c9e56b062359c
8425649a2ecd5abeeb438e816400f270d937758e
refs/heads/master
2022-09-11T13:47:56.837256
2022-08-23T10:04:35
2022-08-23T10:04:35
69,810,386
14
8
null
2022-08-23T10:04:36
2016-10-02T17:14:41
Python
UTF-8
Python
false
false
185
py
# Author: Bojan G. Kalicanin # Date: 29-Sep-2016 # If alien color is not green nothing will be printed alien_color = 'red' if alien_color == 'green': print('You earned 5 points.')
42a51fbfbf765fe3650c8ab9c41927a8259c62ff
9a0ada115978e9600ad7f1eab65fcc8825f637cf
/work_in_progress/_old/stage_aligment_convert/remove_stage_point.py
45542356653d90923ad1ca5276940178c3a9f832
[]
no_license
ver228/work-in-progress
c1971f8d72b9685f688a10e4c5a1b150fa0812da
ef5baecc324da4550f81edb0513d38f039ee3429
refs/heads/master
2018-12-16T22:18:55.457290
2018-09-14T09:27:49
2018-09-14T09:27:49
56,165,301
0
0
null
null
null
null
UTF-8
Python
false
false
1,965
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 7 19:45:26 2017 @author: ajaver """ import tables import numpy as np import os import pymysql from tierpsy.analysis.contour_orient.correctVentralDorsal import switchCntSingleWorm if __name__ == '__main__': conn = pymysql.connect(host='localho...
fc4489fe4def15e7a8ccd94df2f27d10fc6dad76
537259790008b727c03c56ec55a6aaaeeeaf65a3
/scrapers/tvrelease_scraper.py
533a9a8e18bb3485693ce0a1c03222774e2bd2a3
[]
no_license
djbijo/salts
a5781ac9958b77c2acfacf4f73a5286e0b91d8e2
9eaa736701833eedf6796403da33d648aaf348f8
refs/heads/master
2020-12-11T03:26:15.843807
2015-04-09T18:35:45
2015-04-09T18:35:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,354
py
""" SALTS XBMC Addon Copyright (C) 2014 tknorris 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 3 of the License, or (at your option) any later version. T...
5b9a0e8151fc4c44ee36a6bf9630696e3772d3bf
c9500ad778b8521aaa85cb7fe3239989efaa4799
/plugins/proofpoint_tap/unit_test/test_get_blocked_clicks.py
20515642f86f5bf197f87ee9b53be6017f8d31ab
[ "MIT" ]
permissive
rapid7/insightconnect-plugins
5a6465e720f114d71b1a82fe14e42e94db104a0b
718d15ca36c57231bb89df0aebc53d0210db400c
refs/heads/master
2023-09-01T09:21:27.143980
2023-08-31T10:25:36
2023-08-31T10:25:36
190,435,635
61
60
MIT
2023-09-14T08:47:37
2019-06-05T17:05:12
Python
UTF-8
Python
false
false
3,159
py
import sys import os from unittest.mock import patch from komand_proofpoint_tap.actions.get_blocked_clicks import GetBlockedClicks from insightconnect_plugin_runtime.exceptions import PluginException from komand_proofpoint_tap.util.exceptions import ApiException from test_util import Util from unittest import TestCase...
9751b47661d97074ea93280984aa3a93a3a7246f
6b81296eff6aac2b81326a3f97a7240321d085d1
/pycampaign06[for loop].py
6fa1c9058afbcf87d31d21acee1273479a816d0b
[ "Unlicense" ]
permissive
EssamSami5155/PyCampaign20
0d267c586e6060824c147a54a1cbc8d01c672e87
7c8dba63de1a499742c748a1b85d00eeebbb38d6
refs/heads/master
2022-12-17T06:32:49.112717
2020-09-20T09:49:51
2020-09-20T09:49:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,738
py
# Repeating events # Using for loop import turtle # turtle is a library that helps us to draw. turtle.color("blue") turtle.forward(100) turtle.right(45) turtle.color("green") turtle.forward(50) turtle.right(45) turtle.color("grey") turtle.forward(100) # turtle commands # right(x) - rotate right x degrees. # l...
41dc105eb07adb417e1c322ec9271ad8365af2c2
9a06c8ab42e0fbce88f06a1bd7237c4d5cae592a
/code/python_lesson/runoob/09摄氏度转华氏度.py
783060706ad78ee49e750443b5c09375203fe90d
[ "MIT" ]
permissive
lxl0928/learning_python
19040ca3ae92e5c07a1e813c707d625aa0ba8cb2
ff0c6457186e7aa5b6ed9cafaea1dba616ce493a
refs/heads/master
2023-05-13T13:59:28.815564
2021-03-22T02:08:53
2021-03-22T02:08:53
162,232,496
4
1
MIT
2023-05-01T20:15:55
2018-12-18T04:59:15
Python
UTF-8
Python
false
false
342
py
#! /usr/bin/python3 # -*- coding: utf-8 -*- # Date: 2016.08.02 # Filename: 09.py # Author: Timilong # 用户输入摄氏温度 celsius = float(input("请输入摄氏温度: ")) # 计算华氏温度 fahrenheit = (celsius * 1.8) + 32 # 打印华氏温度 print("%0.1f摄氏温度转化为华氏温度为%0.1f" % (celsius, fahrenheit))
1337f2878c504d9d15a39baca3d7e460d62f6bc4
c422cfdcd0303395b62a383611dca19236ea0e15
/core/migrations/0009_diaperchange_amount.py
991260de5bff332950e762549154f4f031abc2fc
[ "BSD-2-Clause-Views", "BSD-2-Clause" ]
permissive
Alan01252/babybuddy
c18d26769458fbfd60d7e5493c1fab911d624ddd
5382527dc84530fe56a65c7452620bba41bfd668
refs/heads/master
2022-12-18T17:09:21.064011
2020-09-16T11:33:07
2020-09-16T11:33:07
291,678,434
1
0
BSD-2-Clause
2020-08-31T09:57:07
2020-08-31T09:57:06
null
UTF-8
Python
false
false
419
py
# Generated by Django 3.0.2 on 2020-01-26 21:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0008_auto_20190607_1422'), ] operations = [ migrations.AddField( model_name='diaperchange', name='amount', ...