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
ceed057825798d46c509ddab61ac189ced30ad29
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-oms/setup.py
b81b7515b7d134fa9438170ce81a39929b9463d6
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,654
py
# coding: utf-8 from os import path from setuptools import setup, find_packages NAME = "huaweicloudsdkoms" VERSION = "3.0.52" AUTHOR = "HuaweiCloud SDK" AUTHOR_EMAIL = "hwcloudsdk@huawei.com" URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3" DESCRIPTION = "OMS" this_directory = path.abspath(path.dirna...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
d5ddd74869a157b83c40a72dcab563c596578394
ce196aba0adde47ea2767eae1d7983a1ef548bb8
/T083_求用0—7所能组成的奇数个数.py
0fb0007220933911a99ceca79ed911aaae9783bb
[]
no_license
xiang-daode/Python3_codes
5d2639ffd5d65065b98d029e79b8f3608a37cf0b
06c64f85ce2c299aef7f9311e9473e0203a05b09
refs/heads/main
2023-08-30T14:59:55.123128
2021-11-03T05:12:24
2021-11-03T05:12:24
333,632,892
0
2
null
null
null
null
UTF-8
Python
false
false
889
py
# 在这里写上你的代码 :-) ''' 题目083:求0—7所能组成的奇数个数。 ''' def tm083(): ''' 【个人备注】:没说组成几位数或是否重复使用。假设1-8位都可以,且不能重复使用。 直接用排列函数,累加然后去重,就得到答案了。 ''' s = [i for i in '01234567'] import itertools #有排列与组合函数 arr = [] for i in range(1,9): a = list(itertools.permutations(s,i)) # 长度1-8左右排列 l...
[ "noreply@github.com" ]
xiang-daode.noreply@github.com
95b09bf9b3e4db89414199c59be246b83df7e9f0
835881ade89eaff933f81d186e69fcf9695d9392
/bolero/utils/setup.py
dcce793f7c39de9bdf163a6985c1d62c94056aed
[ "BSD-3-Clause" ]
permissive
MMKrell/bolero
9e056a88aa89332762c0f06d4f8e43fc4ac64018
0e011de35f2b364bb3bb7509bc38491762026643
refs/heads/master
2021-01-21T15:19:20.012273
2017-05-19T13:38:47
2017-05-19T13:38:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
def configuration(parent_package="", top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration("utils", parent_package, top_path) config.set_options(ignore_setup_xxx_py=True, assume_default_configuration=True, delegate_options_t...
[ "afabisch@informatik.uni-bremen.de" ]
afabisch@informatik.uni-bremen.de
eff44ce1869cc6d0c340bdadc54f92b6e8ba7f01
817f6b5a69b53599589b798b94efecd8ed1d8e17
/exercises/1901100282/d07/mymodule/main.py
2eb3cc635245118bc6dace1675a2ec08d1d02312
[]
no_license
oneisonly/selfteaching-python-camp
2422a16c0c9efe787f18fa48833b0bdc8e245982
2f26872d31c7392f9530ee1aa7be7958109aaec3
refs/heads/master
2020-07-04T23:17:39.750702
2019-12-03T04:38:43
2019-12-03T04:38:43
202,078,442
0
0
null
2019-08-13T06:24:02
2019-08-13T06:24:01
null
UTF-8
Python
false
false
3,999
py
text = ''' 愚公移⼭山 太⾏行行,王屋⼆二⼭山的北北⾯面,住了了⼀一個九⼗十歲的⽼老老翁,名叫愚公。⼆二⼭山佔地廣闊,擋住去路路,使他 和家⼈人往來來極為不不便便。 ⼀一天,愚公召集家⼈人說:「讓我們各盡其⼒力力,剷平⼆二⼭山,開條道路路,直通豫州,你們認為怎 樣?」 ⼤大家都異異⼝口同聲贊成,只有他的妻⼦子表示懷疑,並說:「你連開鑿⼀一個⼩小丘的⼒力力量量都沒有,怎 可能剷平太⾏行行、王屋⼆二⼭山呢?況且,鑿出的⼟土⽯石⼜又丟到哪裏去呢?」 ⼤大家都熱烈烈地說:「把⼟土⽯石丟進渤海海裏。」 於是愚公就和兒孫,⼀一起開挖⼟土,把⼟土⽯石搬運到渤海海去。 愚公的鄰居是個寡婦,有個兒⼦子⼋八歲也興致勃勃地⾛走來來幫忙。 寒來來...
[ "43633521+liujiayi0042@users.noreply.github.com" ]
43633521+liujiayi0042@users.noreply.github.com
4a60de6be31da7bf31c87e44c1819edbb0b124a0
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_040/ch20_2020_03_05_18_36_09_760355.py
f61391c93f57ceb3a39f6885c928eb85d74c21f9
[]
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
182
py
distancia=float(input("Qual distância você deseja percorrer: ")) if (distancia<=200): print ("R$",(distancia:.2f*0.5)) else: print ("R$",(200*0.5+(distancia:.2f-200)*0.45))
[ "you@example.com" ]
you@example.com
5b1b804ba412f88488a66775b1cd8af3b8f2a81e
517d461257edd1d6b239200b931c6c001b99f6da
/Circuit_Playground/CircuitPython/Data_Logging/typing/typing_original_.py
5b9aa66386ae0b84741b00930ee46fc0dee033a7
[]
no_license
cmontalvo251/Microcontrollers
7911e173badff93fc29e52fbdce287aab1314608
09ff976f2ee042b9182fb5a732978225561d151a
refs/heads/master
2023-06-23T16:35:51.940859
2023-06-16T19:29:30
2023-06-16T19:29:30
229,314,291
5
3
null
null
null
null
UTF-8
Python
false
false
2,283
py
# Circuit Playground Express Data Time/Light Intensity/Temp # Log data to a spreadsheet on-screen # Open Spreadsheet beforehand and position to start (A,1) # Use slide switch to start and stop sensor readings # Time values are seconds since board powered on (relative time) import time from digitalio import DigitalInO...
[ "cmontalvo251@gmail.com" ]
cmontalvo251@gmail.com
64d2855cd04459ab7a7b86a9e703c6518a7c19f3
b580fd482147e54b1ca4f58b647fab016efa3855
/host_im/mount/malware-classification-master/samples/not/sample_good666.py
3687c9337e2f798525c72cf0779d606b08e582b2
[]
no_license
Barnsa/Dissertation
1079c8d8d2c660253543452d4c32799b6081cfc5
b7df70abb3f38dfd446795a0a40cf5426e27130e
refs/heads/master
2022-05-28T12:35:28.406674
2020-05-05T08:37:16
2020-05-05T08:37:16
138,386,344
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
import random import re import array import textwrap import readline nterms = 195 n1, n2 = 0, 1 if nterms <= 0: print("Please provide a positive integer.") elif nterms == 1: print("Fibonacci sequence upto", nterms, ":") print(n1) else: print("Fibonacci sequence:") count = 0 while 0 < 195: print(n1) nth = n1 +...
[ "barnsa@uni.coventry.ac.uk" ]
barnsa@uni.coventry.ac.uk
6730aafef63549f62e2673d9ec48a2b98ce7cfcc
d044e88e622d9f4ca350aa4fd9d95d7ba2fae50b
/application/dataentry/migrations/0192_auto_20210722_1359.py
7e1c663d3fec4392b13dc51e6c16f22fc0f16cee
[]
no_license
Tiny-Hands/tinyhands
337d5845ab99861ae189de2b97b8b36203c33eef
77aa0bdcbd6f2cbedc7eaa1fa4779bb559d88584
refs/heads/develop
2023-09-06T04:23:06.330489
2023-08-31T11:31:17
2023-08-31T11:31:17
24,202,150
7
3
null
2023-08-31T11:31:18
2014-09-18T19:35:02
PLpgSQL
UTF-8
Python
false
false
497
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.16 on 2021-07-22 13:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dataentry', '0191_auto_20210712_1433'), ] operations = [ migrations.AlterF...
[ "scrishel@sbcglobal.net" ]
scrishel@sbcglobal.net
9efe0099db495a6abf8ec4e5391c09aec9b087d3
525bdfe2c7d33c901598a501c145df94a3e162b0
/math_projects/kateryna/bin/constants.py
c2f278310902832628add1fa859476272f1c01ff
[]
no_license
davendiy/ads_course2
f0a52108f1cab8619b2e6e2c6c4383a1a4615c15
e44bf2b535b34bc31fb323c20901a77b0b3072f2
refs/heads/master
2020-04-06T09:37:12.983564
2019-05-09T10:28:22
2019-05-09T10:28:22
157,349,669
0
0
null
null
null
null
UTF-8
Python
false
false
1,342
py
#!/usr/bin/env python3 # -*-encoding: utf-8-*- import logging DEFAULT_N = 1000 # к-ть елементів, які повертає пошук за умовчанням # типи елементів (значення - назви таблиць у БД) KEY_WORD = 'Key_words' SITE = 'Sites' LINK = 'Links' CATEGORIES = 'Categories' # назва таблиці категорій DEFAULT_DATABASE = 'data...
[ "davendiy@gmail.com" ]
davendiy@gmail.com
34109b133c9e51f5fe159c8a970393a67ac6d7d8
169e75df163bb311198562d286d37aad14677101
/tensorflow/tensorflow/python/ops/gradients.py
9fa8e27d5cb51e0c2dd0b7926756a579d38841d2
[ "Apache-2.0" ]
permissive
zylo117/tensorflow-gpu-macosx
e553d17b769c67dfda0440df8ac1314405e4a10a
181bc2b37aa8a3eeb11a942d8f330b04abc804b3
refs/heads/master
2022-10-19T21:35:18.148271
2020-10-15T02:33:20
2020-10-15T02:33:20
134,240,831
116
26
Apache-2.0
2022-10-04T23:36:22
2018-05-21T08:29:12
C++
UTF-8
Python
false
false
1,240
py
# Copyright 2015 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...
[ "thomas.warfel@pnnl.gov" ]
thomas.warfel@pnnl.gov
68d509c7c66a8393f202ba51444e4af380bc3c9b
9ca9cad46f2358717394f39e2cfac2af4a2f5aca
/Week16/MainHW/MainHW Week16_KSY.py
86af737749bde01e82c6dcf8a85382d1d4c33cd5
[]
no_license
Artinto/Python_and_AI_Study
ddfd165d1598914e99a125c3019a740a7791f6f6
953ff3780287825afe9ed5f9b45017359707d07a
refs/heads/main
2023-05-05T15:42:25.963855
2021-05-24T12:24:31
2021-05-24T12:24:31
325,218,591
1
3
null
null
null
null
UTF-8
Python
false
false
3,897
py
''' This script shows how to predict stock prices using a basic RNN ''' import torch import torch.nn as nn from torch.autograd import Variable import numpy as np import os import matplotlib torch.manual_seed(777) # reproducibility import matplotlib.pyplot as plt def MinMaxScaler(data): ''' Min Max Normalizat...
[ "noreply@github.com" ]
Artinto.noreply@github.com
0861a3ba0e77e14cd38e259cec9bfe9413d33873
e7d5555eb0b80ad59e7c76dd31e5fa9a23ec4a4c
/muddery/worlddata/dao/dialogue_sentences_mapper.py
6e08b22dd51bc6ba16bc055d6d3aed08c566c4e2
[ "BSD-3-Clause" ]
permissive
noahzaozao/muddery
4d1ef24b4a7f0ef178a1c28c367a441cbb57ee5c
294da6fb73cb04c62e5ba6eefe49b595ca76832a
refs/heads/master
2023-01-25T02:23:50.123889
2018-06-10T17:12:22
2018-06-10T17:12:22
137,031,119
0
0
NOASSERTION
2019-10-28T15:04:26
2018-06-12T07:05:42
Python
UTF-8
Python
false
false
691
py
""" Query and deal common tables. """ from __future__ import print_function from evennia.utils import logger from django.apps import apps from django.conf import settings class DialogueSentencesMapper(object): """ NPC's dialogue sentences. """ def __init__(self): self.model_name = "dialogue_...
[ "luyijun999@gmail.com" ]
luyijun999@gmail.com
6b34dfae513fa55c66c92dd64ea87fa9d1207242
45a924e5cd1dfc75a2088d3d4463995803a06a09
/frappe/email/doctype/email_unsubscribe/test_email_unsubscribe.py
602840fe3b30b30238661516ade48243176ea9b0
[ "MIT" ]
permissive
joe-santy/frappe
7cad66295f07f60176fbbc24766af5e38ac1e9d2
a6d9170e5fd9fdff462eee7967409ff7e23b6d2f
refs/heads/develop
2023-07-15T15:59:03.226729
2021-08-09T16:20:11
2021-08-09T16:20:11
394,489,040
0
0
MIT
2021-08-13T13:12:31
2021-08-10T01:22:17
null
UTF-8
Python
false
false
258
py
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt import frappe import unittest # test_records = frappe.get_test_records('Email Unsubscribe') class TestEmailUnsubscribe(unittest.TestCase): pass
[ "rmehta@gmail.com" ]
rmehta@gmail.com
74b0a2c23703cb4e5ab03f2b4f26df4d4bbbd55f
c705b2620119df0d60e925e55228bfbb5de3f568
/archives/twitter/add_to_list.py
b07b820c711aef611ff33b5d19f9e517e8424b05
[ "Apache-2.0" ]
permissive
mcxiaoke/python-labs
5aa63ce90de5da56d59ca2954f6b3aeae7833559
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
refs/heads/master
2021-08-05T03:47:51.844979
2021-07-24T11:06:13
2021-07-24T11:06:13
21,690,171
7
7
Apache-2.0
2020-08-07T01:52:32
2014-07-10T10:20:17
Python
UTF-8
Python
false
false
1,023
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: mcxiaoke # @Date: 2016-01-04 14:39:15 from __future__ import print_function, unicode_literals import os import sys import codecs import requests import tweepy from config import OWNER, OWNER_ID, CONSUMER_KEY, CONSUMER_SECRET, ACCESSS_TOKEN_KEY, ACCESS_TOKEN_SEC...
[ "mcxiaoke@gmail.com" ]
mcxiaoke@gmail.com
1cf91c973076f5cd1c46e4f58e68999f1a89e80d
a2f67003e0eededb0c2d7645d83243d19af71340
/exam_subject/Subject/apps/topic/migrations/0010_answer_analysis.py
117680a8d906da18fcca8540dbfdcda5856ebd05
[]
no_license
john123951/SubjectSystem
c6bf118627aa54ba56bd367f73528e66f51dcd58
a7f8e6014f81ec4376f3c5f437a280e801ab22e4
refs/heads/master
2020-07-13T16:36:15.663952
2019-06-19T07:02:14
2019-06-19T07:02:14
205,115,935
7
0
null
2019-08-29T08:23:00
2019-08-29T08:22:59
null
UTF-8
Python
false
false
422
py
# Generated by Django 2.0.2 on 2019-05-05 22:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('topic', '0009_examtime_exam_number'), ] operations = [ migrations.AddField( model_name='answer', name='analysis', ...
[ "you@example.com" ]
you@example.com
c5708367337a0c64f2df12dcce951050022001b6
2af1e6357f51d0d08b1a991e2bd922b7bdc8c0b6
/baekjoon/accepted/15480 LCA와 쿼리.py
8220d3407e8cfb7390cba36119d50b67d795abeb
[]
no_license
grasshopperTrainer/coding_practice
530e9912b10952c866d35d69f12c99b96959a22d
d1e5e6d6fa3f71f1a0105940fff1785068aec8b0
refs/heads/master
2023-06-01T13:30:15.362657
2021-06-08T08:40:15
2021-06-08T08:40:15
267,359,225
1
0
null
null
null
null
UTF-8
Python
false
false
1,998
py
# not accepted from sys import stdin from collections import deque def solution(N, edges, asked): nd_tree = {} for a, b in edges: nd_tree.setdefault(a, []).append(b) nd_tree.setdefault(b, []).append(a) answers = [] for root, a, b in asked: # find directed tree and depth ...
[ "grasshoppertrainer@gmail.com" ]
grasshoppertrainer@gmail.com
cfe01345e37aadfec5a5a2ccb5e0ad6c4a9df927
9d278285f2bc899ac93ec887b1c31880ed39bf56
/ondoc/doctor/migrations/0192_auto_20190125_1514.py
3779ca4d7f242aa5bd1e5ad30a90d32209c5bc7d
[]
no_license
ronit29/docprime
945c21f8787387b99e4916cb3ba1618bc2a85034
60d4caf6c52a8b70174a1f654bc792d825ba1054
refs/heads/master
2023-04-01T14:54:10.811765
2020-04-07T18:57:34
2020-04-07T18:57:34
353,953,576
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
# Generated by Django 2.0.5 on 2019-01-25 09:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('doctor', '0191_auto_20190124_1845'), ] operations = [ migrations.AlterField( model_name='cancellationreason', name='...
[ "shashanks@policybazaar.com" ]
shashanks@policybazaar.com
4ae82fbb54695b12dbf2f6d5842e6919c8a8330b
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_97/1111.py
a46d75a4bf3135788b1b71ced5eaa6713ed67828
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
981
py
# Program to solve C. Recycled Numbers def is_recycled_pair(a, b, call): astr = str(a) bstr = str(b) if len(astr) != len(bstr) or len(astr) == 1: return False for i in range(1, len(astr)): if astr == (bstr[len(astr) - i:] + bstr[:len(astr) - i]): return True if call == 1: return is_re...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
8e5e8ca0317d169947d49cf752033de72b169638
0f4823e4e8dcedf64b0061c9f02d2bf4b410c0e0
/autotest/t000_testscripts.py
4394523e616b8f2de32d6d4ce65a26d645f47bda
[ "BSD-3-Clause" ]
permissive
MJKnowling/flopy
cfa4383c8c834fbc57341511621d3f2401726224
f480ff304e5728ccaa5e663d3fa77ec025cb0ba8
refs/heads/master
2021-09-20T23:57:13.032896
2017-12-01T18:57:09
2017-12-01T18:57:09
113,387,250
0
0
null
2017-12-07T01:33:03
2017-12-07T01:33:02
null
UTF-8
Python
false
false
1,809
py
# Remove the temp directory and then create a fresh one from __future__ import print_function import os import sys import shutil exclude = ['flopy_swi2_ex2.py', 'flopy_swi2_ex5.py'] for arg in sys.argv: if arg.lower() == '--all': exclude = [] sdir = os.path.join('..', 'examples', 'scripts') # make workin...
[ "jdhughes@usgs.gov" ]
jdhughes@usgs.gov
95b54f2914a61f9a045c2fd26d9d46b9767a42c4
0b953c73458679beeef3b95f366601c834cff9b4
/hunter/longest palindrome substring within string.py
9f907b18b130617c943cd267d9545d83c25ece09
[]
no_license
Sravaniram/Python-Programming
41531de40e547f0f461e77b88e4c0d562faa041c
f6f2a4e3a6274ecab2795062af8899c2a06c9dc1
refs/heads/master
2020-04-11T12:49:18.677561
2018-06-04T18:04:13
2018-06-04T18:04:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
a=raw_input() l=[] m=[] for i in range(0,len(a)): for j in range(i,len(a)): z=a[i:j+1] y=z[::-1] if z==y: l.append(z) m.append(len(z)) y=max(m) for i in range(0,len(a)): if m[i]==y: print l[i] break
[ "noreply@github.com" ]
Sravaniram.noreply@github.com
aaa1bebc04e41b15d7bbd59b3e874ecfad08e1e6
ebde1fadfbe336fa52bc20c8a2f74de8d1d90cf3
/src/moca_modules/moca_share/__init__.py
53ea1bfc999d299bbc568895421ca67f221548ec
[ "MIT" ]
permissive
el-ideal-ideas/MocaTwitterUtils
be2481ce9eb0f9e53e8e0bd54b1b265c80e4f959
544a260600ade1b8cd4e0a2d2967c2fb6a8f38d3
refs/heads/master
2023-02-18T23:27:31.056121
2021-01-23T07:41:16
2021-01-23T07:41:16
321,014,400
1
0
null
null
null
null
UTF-8
Python
false
false
366
py
# -- Imports -------------------------------------------------------------------------- from .MocaMultiProcessLock import MocaMultiProcessLock from .MocaSharedMemory import MocaSharedMemory # -------------------------------------------------------------------------- Imports -- """ This module can share data between ...
[ "el.idealideas@gmail.com" ]
el.idealideas@gmail.com
81b6659ce41232ce1546045cddc849edadb44f22
3a2af7b4b801d9ba8d78713dcd1ed57ee35c0992
/zerver/webhooks/errbit/view.py
a47ccae2f0fc9f5a3b1841a1b5be747b0a7ea1b3
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
timabbott/zulip
2b69bd3bb63539adbfc4c732a3ff9d52657f40ac
42f239915526180a1a0cd6c3761c0efcd13ffe6f
refs/heads/master
2023-08-30T21:45:39.197724
2020-02-13T23:09:22
2020-06-25T21:46:33
43,171,533
6
9
Apache-2.0
2020-02-24T20:12:52
2015-09-25T19:34:16
Python
UTF-8
Python
false
false
1,333
py
from typing import Any, Dict from django.http import HttpRequest, HttpResponse from zerver.decorator import api_key_only_webhook_view from zerver.lib.request import REQ, has_request_variables from zerver.lib.response import json_success from zerver.lib.webhooks.common import check_send_webhook_message from zerver.mod...
[ "tabbott@zulipchat.com" ]
tabbott@zulipchat.com
b157b3943a5da0075b79e5476fd9dc13cb5f888d
f0e25779a563c2d570cbc22687c614565501130a
/Think_Python/rotate.py
88a2a43db71c667c9424a08799bd16968e7efbd5
[]
no_license
XyK0907/for_work
8dcae9026f6f25708c14531a83a6593c77b38296
85f71621c54f6b0029f3a2746f022f89dd7419d9
refs/heads/master
2023-04-25T04:18:44.615982
2021-05-15T12:10:26
2021-05-15T12:10:26
293,845,080
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
"""This module contains code from Think Python by Allen B. Downey http://thinkpython.com Copyright 2012 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ import string def rotate_letter(letter, n): """Rotates a letter by n places. Does not change other chars. letter: single-lett...
[ "cherry.kong0907@gmail.com" ]
cherry.kong0907@gmail.com
77ab9cecf9571229a858bc319ec4530650f8d96c
4a48593a04284ef997f377abee8db61d6332c322
/python/opencv/opencv_2/gui/opencv_with_tkinter.py
c38c3d8a121d82026b7644085f0fe74574998ae3
[ "MIT" ]
permissive
jeremiedecock/snippets
8feaed5a8d873d67932ef798e16cb6d2c47609f0
b90a444041c42d176d096fed14852d20d19adaa7
refs/heads/master
2023-08-31T04:28:09.302968
2023-08-21T07:22:38
2023-08-21T07:22:38
36,926,494
26
9
MIT
2023-06-06T02:17:44
2015-06-05T10:19:09
Python
UTF-8
Python
false
false
3,408
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2015 Jérémie DECOCK (http://www.jdhp.org) """ OpenCV - Trackbar widget. Required: opencv library (Debian: aptitude install python-opencv) See: https://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_gui/py_trackbar/py_trackbar.html#track...
[ "jd.jdhp@gmail.com" ]
jd.jdhp@gmail.com
05569309e30bae8fa01d77141b06eb6f922b24e6
43c24c890221d6c98e4a45cd63dba4f1aa859f55
/test/tests/os_test.py
cb10509f1d7cdb4b47c62f144aadf5f27e252502
[ "Python-2.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
jmgc/pyston
c8e4df03c33c6b81d20b7d51a781d9e10148238e
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
refs/heads/master
2020-12-11T07:51:58.968440
2020-09-11T14:38:38
2020-09-11T14:38:38
39,242,644
0
0
NOASSERTION
2020-09-11T14:38:39
2015-07-17T08:09:31
Python
UTF-8
Python
false
false
673
py
# # currently broken: # import os.path import os r1 = os.urandom(8) r2 = os.urandom(8) print len(r1), len(r2), type(r1), type(r2), r1 == r2 print type(os.stat("/dev/null")) print os.path.expanduser("~") == os.environ["HOME"] print os.path.isfile("/dev/null") print os.path.isfile("/should_not_exist!") e = OSError...
[ "kmod@dropbox.com" ]
kmod@dropbox.com
ac00ac4bb96ebe184493e06849d1d2e99492b860
2f96d0e69ce3d6b1ea4623ed5b4c1741d9634ea9
/tests/dummy_repo/tvm/python/tvm/hybrid/util.py
556ede1519e92fb2666ef894fd89ca5bfffa2590
[ "Apache-2.0" ]
permissive
tqchen/ffi-navigator
ae1e8923e4d5be589beabfadba91f4a3b39e03dd
46b0d0c6bce388a8e1e2cb7ed28062e889e4596c
refs/heads/main
2023-02-06T22:32:54.214871
2023-02-05T16:25:16
2023-02-05T16:25:16
230,478,838
217
24
Apache-2.0
2023-02-05T16:25:18
2019-12-27T16:44:58
Python
UTF-8
Python
false
false
921
py
import ast import inspect import logging import sys import numpy from .. import api as _api from .. import make as _make from .. import expr as _expr from .. import stmt as _stmt from .._ffi.base import numeric_types from ..tensor import Tensor from ..container import Array def replace_io(body, rmap): """Replacing...
[ "noreply@github.com" ]
tqchen.noreply@github.com
6f6476757e06d7a487ecf584035e507e47e98cb6
9e9d23e7a57c46da27a491a61f19c7239d066bf8
/biliup/__init__.py
e1ff55cbd324da2fcb10188ba6f6f304a81fa7ea
[ "MIT" ]
permissive
vmcole/bilibiliupload
f7c667927bfcc4a0c1c5eba96b674729ae776e62
b5c416451f66c2ebe550694d4c4957129d0e966e
refs/heads/master
2023-06-09T19:58:33.813073
2021-07-06T14:50:18
2021-07-06T14:50:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,722
py
import asyncio from .common.reload import AutoReload from .common.timer import Timer from .engine.event import EventManager, Event from .engine import config, invert_dict, Plugin from . import plugins __version__ = "0.0.8" def create_event_manager(): streamer_url = {k: v['url'] for k, v in config['streamers']....
[ "34411314+ForgQi@users.noreply.github.com" ]
34411314+ForgQi@users.noreply.github.com
274332a28662cdd27514f4e4d6ea6d2fb35d89f7
82db461036ffb2adbf0424a6f0575cd9d24b48a8
/main.py
aa2b3ceb4b62ba95ae0a6123184a319dd03db241
[]
no_license
webclinic017/option_pdt
fdc559f02cc529b54278e90e04170713fe93684f
dd302c6b2661e26dbfcbea0384b99e85ae9584e1
refs/heads/master
2023-03-24T10:43:35.998775
2021-03-19T14:08:38
2021-03-19T14:08:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,828
py
import sys import os parent_path = os.path.dirname(sys.path[0]) if parent_path not in sys.path: sys.path.append(parent_path) import json import pickle import logging import pandas as pd import numpy as np from datetime import datetime from library import get_strategy from utils.util_func import * from optpars...
[ "noreply@github.com" ]
webclinic017.noreply@github.com
e8d6832b01ddb153bea7721f9728d12768dc77a3
3c259a3755fa81dbaa5a33591c4bcedb79c20314
/config/ssef/ssef_eval_cqg_masked_2015.config
897b88fb2d2d418c25f44140fa30a4d2702f637a
[ "MIT" ]
permissive
djgagne/hagelslag
f96bea7395d2d967e1dc84faccf910e01b83157b
17757de7b55737f65f615e5dccad379604961832
refs/heads/master
2023-07-24T20:13:07.659540
2023-07-13T17:02:00
2023-07-13T17:02:00
37,555,335
64
26
MIT
2023-07-13T17:02:01
2015-06-16T20:48:43
Jupyter Notebook
UTF-8
Python
false
false
3,621
config
#!/usr/bin/env python from datetime import datetime import numpy as np ensemble_members = ["wrf-s3cn_arw"] + ["wrf-s3m{0:d}_arw".format(m) for m in range(3, 14)] scratch_path = "/sharp/djgagne/" experiment_name = "cqg_masked" config = dict(ensemble_name="SSEF", ensemble_members=ensemble_members, ...
[ "djgagne@ou.edu" ]
djgagne@ou.edu
12712fe4e23a5c73bf59f892cdc1ef0041cd1ab4
5410700e83210d003f1ffbdb75499062008df0d6
/leetcode/isHappy.py
92bdf82a57b5d864724396b17b24897d123370fd
[]
no_license
lilyandcy/python3
81182c35ab8b61fb86f67f7796e057936adf3ab7
11ef4ace7aa1f875491163d036935dd76d8b89e0
refs/heads/master
2021-06-14T18:41:42.089534
2019-10-22T00:24:30
2019-10-22T00:24:30
144,527,289
1
0
null
null
null
null
UTF-8
Python
false
false
528
py
class Solution: def isHappy(self, n): """ :type n: int :rtype: bool """ looplist = [] num = n while num != 1: if num not in looplist: looplist.append(num) else: return False num = self.sumLoca...
[ "myyan_yan@msn.com" ]
myyan_yan@msn.com
994523ad13eaf886d1e9b898c2b4e1e3021ae3a6
fac37d77a8d00e3d13106bcd728d51a455dd16f2
/kmer.py
2c016a97eb7bf7903ce31d36c4622ef1926e080c
[]
no_license
anu-bioinfo/rosalind-4
c6a628bba94f647cf4a34bdf505f1527af4346a9
3ddc659d44298f4dd4b5dde66d7833b4d27a2580
refs/heads/master
2020-03-25T13:47:39.521215
2014-09-14T02:30:54
2014-09-14T02:30:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
#!/usr/bin/env python from __future__ import print_function import os from revp import read_fasta from subs import substring_find from lexf import lexf_order def kmer_composition(dna_string): output = [] for p in lexf_order(4, 'ACGT'): pos = list(substring_find(dna_string, ''.join(p))) outpu...
[ "luiz.irber@gmail.com" ]
luiz.irber@gmail.com
3f532246345c6898340e9b5f2125626a978ca0cf
fed6c6bdb6276d195bc565e527c3f19369d22b74
/galaxy-galaxy lensing/prepare_cata/Fourier_Quad_cata/gather_raw_cata.py
4e38e9d277633610cb84172ab6665238c0c69d4e
[]
no_license
hekunlie/astrophy-research
edbe12d8dde83e0896e982f08b463fdcd3279bab
7b2b7ada7e7421585e8993192f6111282c9cbb38
refs/heads/master
2021-11-15T05:08:51.271669
2021-11-13T08:53:33
2021-11-13T08:53:33
85,927,798
0
0
null
null
null
null
UTF-8
Python
false
false
2,291
py
import matplotlib matplotlib.use("Agg") import os my_home = os.popen("echo $MYWORK_DIR").readlines()[0][:-1] from sys import path path.append('%s/work/mylib/'%my_home) import tool_box import h5py from mpi4py import MPI import numpy import time from subprocess import Popen import warnings warnings.filterwarnings('error'...
[ "hekun_lee@sjtu.edu.cn" ]
hekun_lee@sjtu.edu.cn
9d54ff837c1a8f276a97e819ccf6c7a49e66713b
24144f83276705fe2f4df295ee50199c2035ca7b
/active/theses-mainz.py
0acd9b145b345b370518620e935b1280fb1eaed5
[]
no_license
AcidBurn429/ejlmod
a2e4eb6bb28bcb6bbccc3d83e2e24f5aed23d4eb
dec50edbb14380686072d7311589a2363ef5cd00
refs/heads/master
2023-08-14T21:19:10.890194
2021-09-28T13:39:06
2021-09-28T13:39:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,405
py
# -*- coding: utf-8 -*- #harvest theses from Mainz U. #FS: 2020-01-27 import getopt import sys import os import urllib2 import urlparse from bs4 import BeautifulSoup import re import ejlmod2 import codecs import datetime import time import json xmldir = '/afs/desy.de/user/l/library/inspire/ejl' retfiles_path = "/afs/...
[ "florian.schwennsen@desy.de" ]
florian.schwennsen@desy.de
d49bcc85fb670923856b90cd4b3431c31b19fed9
8671856181ef218f147f23f367fd0b1dc7592e1a
/realtor/migrations/0020_auto_20190918_1213.py
69d2a3d67932c1247662582520c4265d41e2eef5
[]
no_license
Alishrf/Shop_Website
e4fef9618aec2db6f4a655ff643aa68cf42dbb68
971d4a2ff8b7a68a0157681ff26404fe403502e6
refs/heads/master
2020-08-11T06:03:47.642870
2019-10-14T14:29:30
2019-10-14T14:29:30
214,504,737
2
0
null
null
null
null
UTF-8
Python
false
false
474
py
# Generated by Django 2.2.4 on 2019-09-18 07:43 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('realtor', '0019_auto_20190918_1203'), ] operations = [ migrations.AlterField( model_name='realtor'...
[ "a.sharifzadeh11@gmail.com" ]
a.sharifzadeh11@gmail.com
df776be8e3c5a10d0ea0d5ac96bb71188cc0c541
be5f4d79910e4a93201664270916dcea51d3b9ee
/fastdownward/experiments/issue627/merge-v3-v5.py
100f1f2a1136f016756e9f799a53b284019dc988
[ "MIT", "GPL-1.0-or-later", "GPL-3.0-or-later" ]
permissive
mehrdadzakershahrak/Online-Explanation-Generation
17c3ab727c2a4a60381402ff44e95c0d5fd0e283
e41ad9b5a390abdaf271562a56105c191e33b74d
refs/heads/master
2022-12-09T15:49:45.709080
2019-12-04T10:23:23
2019-12-04T10:23:23
184,834,004
0
0
MIT
2022-12-08T17:42:50
2019-05-04T00:04:59
Python
UTF-8
Python
false
false
1,574
py
#! /usr/bin/env python # -*- coding: utf-8 -*- from downward import suites from common_setup_no_benchmarks import IssueConfig, IssueExperiment, get_script_dir from relativescatter import RelativeScatterPlotReport import os def main(revisions=None): exp = IssueExperiment(benchmarks_dir=".", suite=[]) exp.ad...
[ "zaker.mehrdad@gmail.com" ]
zaker.mehrdad@gmail.com
1a1b7696f4ce2e13094a1f79e092e53fcc9eb461
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/galex_j15376-1702/sdB_galex_j15376-1702_lc.py
e2d309905a69f149eca005da69c193f1c0718906
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[234.417917,-17.037508], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_galex_j15376-1702/sdB_galex_j15376-1702_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
1ebeccd76c77fb7295b05092f26a7ad953d07807
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2330/60796/280647.py
2ebf0db21d495fb1321ec9d1115f099b73a5cb61
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
2,846
py
import math N=int(input()) ls=[] for i in range(N): ls.append(input().split(",")) ls[i]=[int(x) for x in ls[i]] r=[] for i1 in range(len(ls)-3): for i2 in range(i1+1,len(ls)-2): for i3 in range(i2+1,len(ls)-1): for i4 in range(i3+1,len(ls)): a=ls[i1] b=ls[...
[ "1069583789@qq.com" ]
1069583789@qq.com
c5971d938e49b66b654a919ac6e2e69b5337945b
a4a754bb5d2b92707c5b0a7a669246079ab73633
/8_kyu/derive.py
6efcdb1118f8b8cb017f87a2a9c1cd42ddd88128
[]
no_license
halfendt/Codewars
f6e0d81d9b10eb5bc66615eeae082adb093c09b3
8fe4ce76824beece0168eb39776a2f9e078f0785
refs/heads/master
2023-07-11T13:58:18.069265
2021-08-15T18:40:49
2021-08-15T18:40:49
259,995,259
1
0
null
null
null
null
UTF-8
Python
false
false
198
py
def derive(coefficient, exponent): """ Take the Derivative Kata https://www.codewars.com/kata/5963c18ecb97be020b0000a2 """ return str(coefficient*exponent)+'x^'+str(exponent - 1)
[ "36609861+halfendt@users.noreply.github.com" ]
36609861+halfendt@users.noreply.github.com
4392d1adcce1c93371a6728ecfff29e616948c28
ec78f8ab63aec0753b9360715a4276a971b78a82
/py/data_analysis/np/matrix.py
2df729d2746c2ba43d2ec102e1595d3cf8c1e176
[]
no_license
anderscui/ml
4ace7e7b8cf248042d224bd54e81b691963b2e0e
39238ba6d802df7e8bf1089ef3605cfc83b333ac
refs/heads/master
2021-06-03T16:09:55.207202
2018-11-01T18:50:49
2018-11-01T18:50:49
23,989,214
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
import numpy as np arr = np.arange(15).reshape((3, 5)) print(arr.T) print(arr.transpose()) print(np.dot(arr.T, arr)) # also swapaxes()
[ "anderscui@gmail.com" ]
anderscui@gmail.com
eb8ca0533b3576c10c7673e10928c10f18803fac
a1ea4bb213801a2f49e9b3d178f402f108d8a803
/AI(BE)/bullseyes/bullseyes/settings.py
0cd8bb3f9a00a7080b4c0388a0e00b09b89ddf1f
[ "MIT" ]
permissive
osamhack2021/AI_WEB_Bullseyes_Bullseyes
537df4c35550917b963442538926c0b4bbef3cd6
ec6aa6ce093e93b5666a0fd5ede28585c27a3590
refs/heads/master
2023-08-18T10:42:24.212460
2021-10-20T02:49:35
2021-10-20T02:49:35
407,145,903
4
2
MIT
2021-10-17T05:23:18
2021-09-16T11:54:11
JavaScript
UTF-8
Python
false
false
4,101
py
""" Django settings for bullseyes project. Generated by 'django-admin startproject' using Django 3.1.2. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathl...
[ "noreply@github.com" ]
osamhack2021.noreply@github.com
391e199af1fa6be6a64f00ab28750cf11324aad2
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02660/s614607751.py
34c48997173930d6f69893b65345505f7e034156
[]
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
334
py
N = int(input()) ans = 0 for i in range(2, N): if i * i > N: break e = 0 while N % i == 0: e += 1 N //= i if e > 0: for j in range(1, 10): if e >= j: e -= j ans += 1 else: break if N > 1: ans += ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
33e87fe2280b584f9fab54d1712d053ca31d4dcd
4d8d542058f91bc2a1fede92a7ebc614b61aed22
/environments/mujoco/rand_param_envs/gym/envs/debugging/__init__.py
ebdd5b7c14979e41c5700c705b69cfaddace0c6c
[ "MIT" ]
permissive
NagisaZj/varibad
9ea940e168fea336457636e33f61400d48a18a27
df7cda81588c62a2a3bee69e4173228701bd7000
refs/heads/master
2023-02-07T15:50:47.912644
2020-12-27T01:51:10
2020-12-27T01:51:10
270,474,411
0
0
NOASSERTION
2020-06-08T00:34:09
2020-06-08T00:34:08
null
UTF-8
Python
false
false
552
py
from environments.mujoco.rand_param_envs.gym.envs.debugging.one_round_deterministic_reward import \ OneRoundDeterministicRewardEnv from environments.mujoco.rand_param_envs.gym.envs.debugging.one_round_nondeterministic_reward import \ OneRoundNondeterministicRewardEnv from environments.mujoco.rand_param_envs.gym...
[ "lmzintgraf@gmail.com" ]
lmzintgraf@gmail.com
42ccabfd89b1d00cd7df7184e283bdbb70020766
41777d4d219ea97b4632f4a8a31ab6c82a60772c
/kubernetes-stubs/config/incluster_config.pyi
79a0d4354db777d9f57fa699d05bd128f72a24d2
[ "Apache-2.0" ]
permissive
gordonbondon/kubernetes-typed
501d9c998c266386dc7f66f522f71ac3ba624d89
82995b008daf551a4fe11660018d9c08c69f9e6e
refs/heads/master
2023-07-18T12:06:04.208540
2021-09-05T19:50:05
2021-09-05T19:50:05
319,183,135
24
2
Apache-2.0
2021-09-05T19:50:06
2020-12-07T02:34:12
Python
UTF-8
Python
false
false
635
pyi
# Code generated by `stubgen`. DO NOT EDIT. from .config_exception import ConfigException as ConfigException from kubernetes.client import Configuration as Configuration from typing import Any SERVICE_HOST_ENV_NAME: str SERVICE_PORT_ENV_NAME: str SERVICE_TOKEN_FILENAME: str SERVICE_CERT_FILENAME: str class InClusterC...
[ "noreply@github.com" ]
gordonbondon.noreply@github.com
e325857a904d0df6ed0627ab009f34fc96c74972
329cc042bb5829ab26a51d0b3a0bd310f05e0671
/main.py
60f84aa47980f4c797b50f2df6697f82314f4908
[]
no_license
bkhoward/WLC-PSK-Change
53afe64e767889ce967679d8aeb798745166fa72
1b92fd1d5afae4bc64bfc61bc4935c635cca12f0
refs/heads/master
2023-03-25T01:33:53.765751
2021-03-11T18:59:03
2021-03-11T18:59:03
345,891,681
0
0
null
null
null
null
UTF-8
Python
false
false
7,263
py
#!/usr/bin/env python # # Author: Brian Howard # Date: 02Feb2021 # Version: 1.0 # Abstract: Create SSH connection to corporate Cisco WLCs and change the PSK used for ONEguest SSID # - Find the WLAN_ID for the ONEguest SSID # - Disable the WLAN_ID for ONEguest # - Modify the e...
[ "bkhoward@live.com" ]
bkhoward@live.com
102450eccb8fcad7b0362df30fb062da3054d97a
779291cb83ec3cab36d8bb66ed46b3afd4907f95
/migration/rnaseq-wf_cleanup.py
7a26326b9cd9e55a223e034fa72a8b9827c72f1c
[]
no_license
Shengqian95/ncbi_remap
ac3258411fda8e9317f3cdf951cc909cc0f1946e
3f2099058bce5d1670a672a69c13efd89d538cd1
refs/heads/master
2023-05-22T06:17:57.900135
2020-11-01T17:16:54
2020-11-01T17:16:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,369
py
import os import re import shutil from pathlib import Path CLEAN_UP = os.environ.get("CLEAN_UP", False) SRR_PATTERN = re.compile(r"^[SED]RR\d+$") TARGETS = [ "../output/rnaseq-wf/aln_stats/{srx}.parquet", "../output/rnaseq-wf/gene_counts/{srx}.parquet", "../output/rnaseq-wf/junction_counts/{srx}.parquet", ...
[ "justin.m.fear@gmail.com" ]
justin.m.fear@gmail.com
9b8e1d93b2f68bc34a67adea4f49a273d934c106
a6b8263a42b96f317b818b3ba7e45bb8cb4458f6
/shipsnake/__main__.py
e0db2bc14affd6ceb307dfe465e53a7f63042a48
[ "MIT" ]
permissive
cole-wilson/test-ship
5002add3b7f84162a064fcc4496f82a512fe4ff3
95f2ff585efd7564e60caad9a4806939923bc525
refs/heads/master
2023-01-30T01:52:55.111219
2020-12-07T05:18:12
2020-12-07T05:18:12
319,211,654
0
0
null
null
null
null
UTF-8
Python
false
false
3,108
py
if __name__ != '__main__': print("Please run shipsnake as script or command, not module.") import toml import os import sys import glob import shutil # mode = sys.argv[1] # mode="upload" version = "" if len(sys.argv) == 1: print("Provide a mode:\n\tshipsnake [wizard | build | dev | upload]") sys.exit(0) mode = sys....
[ "you@example.com" ]
you@example.com
199390424fddb7b89b231c304224800f4fb4fb79
3a1c1373d8f1617485893dea46323c9d07dedc4d
/python_algo/프로그래머스/20210429_다리를 지나는 트럭.py
b1fd3a58b2856feedb64be0b86420485b12daf0c
[]
no_license
GaYoung87/Algorithm
28b95c3eed054454a06a14d1a255ea1d57486b22
59abce98ff14879bc88b72ef2e562ce55dae5335
refs/heads/master
2023-08-31T07:52:31.487648
2023-08-29T15:09:04
2023-08-29T15:09:04
199,405,835
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
def solution(bridge_length, weight, truck_weights): bridge_sum = 0 bridge_count = 0 time = 0 while truck_weights: x = truck_weights[0] if bridge_count <= bridge_length: if bridge_sum + x <= weight: bridge_count += 1 return time
[ "gyyoon4u@naver.com" ]
gyyoon4u@naver.com
b86b6586ed3da7fa83a3a45383ce369cf1633df0
99d436394e47571160340c95d527ecadaae83541
/algorithms_questions/ch17_shortest_path/q39_2.py
841ee2b4be8737f7003f3b85123dcedfc6c83627
[]
no_license
LeeSeok-Jun/Algorithms
b47ba4de5580302e9e2399bcf85d245ebeb1b93d
0e8573bd03c50df3f89dd0ee9eed9cf8716ef8d8
refs/heads/main
2023-03-02T06:47:20.939235
2021-02-08T05:18:24
2021-02-08T05:18:24
299,840,348
0
0
null
null
null
null
UTF-8
Python
false
false
969
py
""" 화성 탐사 - 3회차 """ # 풀이 제한 시간 : 40분 # 2021/01/26 16:06 ~ 16:16 # 정답! import heapq import sys input = sys.stdin.readline dr = [-1, 1, 0, 0] dc = [0, 0, -1, 1] for tc in range(int(input())): n = int(input()) graph = [] for _ in range(n): graph.append(list(map(int, input().split()))) INF = ...
[ "seok9376@gmail.com" ]
seok9376@gmail.com
c45eb5f1c3777c3c501733e0224bf45deaa1c22e
d6589ff7cf647af56938a9598f9e2e674c0ae6b5
/waf-openapi-20190910/setup.py
ecd45e94dd0948313db72333337965dd00c423a0
[ "Apache-2.0" ]
permissive
hazho/alibabacloud-python-sdk
55028a0605b1509941269867a043f8408fa8c296
cddd32154bb8c12e50772fec55429a9a97f3efd9
refs/heads/master
2023-07-01T17:51:57.893326
2021-08-02T08:55:22
2021-08-02T08:55:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,604
py
# -*- coding: utf-8 -*- """ 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 "Li...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
c642bda474582d7a38bff7dcb5c49dbe6fc93d0c
0b9470f9a839d87b21fd575421b5223afb4573c6
/07day/01-捕获输入异常.py
676dc64ff5bbe99306b430ca519aeb1cedf9871d
[]
no_license
ZiHaoYa/1808
351356b4fa920a5075899c8abdce24a61502097f
891582547fef4c6fd4fd4132da033e48e069901f
refs/heads/master
2020-03-30T06:20:46.898840
2018-09-29T08:56:53
2018-09-29T08:56:53
147,603,769
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
try: number = int(input("请输入一个")) except Exception as ret: print("输入有误") print(ret) number = input("请输入一个") if number.isdigit(): print("出数字") number = int(number) else: print("输入有误")
[ "qingyuan@geekniu.com" ]
qingyuan@geekniu.com
1d034b6b06e94315ceda06e8a8cc67681b8b3e9e
6a7d8b67aad59c51dafdfb8bcffd53864a3d65b0
/LeetCode/toeplitzMatrix.py
ef8e74f26346b2369d234c7f7ba1f11b002541a5
[]
no_license
dicao425/algorithmExercise
8bba36c1a08a232678e5085d24bac1dbee7e5364
36cb33af758b1d01da35982481a8bbfbee5c2810
refs/heads/master
2021-10-07T08:56:18.030583
2018-12-04T05:59:17
2018-12-04T05:59:17
103,611,760
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
#!/usr/bin/python import sys class Solution(object): def isToeplitzMatrix(self, matrix): """ :type matrix: List[List[int]] :rtype: bool """ m = len(matrix) n = len(matrix[0]) for l in range(m-1): if matrix[l][:n-1] != matrix[l+1][1:]: ...
[ "di.cao425@gmail.com" ]
di.cao425@gmail.com
d08dcdc3b0c9dc63dfaf73fa44457a1d7af97a27
65b6e843df4c2e8b9abed79b33be24eba1686fa2
/absence/wsgi.py
2d6983105aada3e12ea2bdcaac1b9b198f064d05
[]
no_license
The-Super-Stack/abs-backend
563fba90b36f45a0bac82aa5ace7c7d079309b09
d9335ec0a9fe9fdfa1d416d8277c11c2ac23cb5a
refs/heads/main
2023-08-14T13:33:05.631317
2021-10-11T06:18:44
2021-10-11T06:18:44
415,801,507
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
""" WSGI config for absence project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTI...
[ "60544749+bintangx1902@users.noreply.github.com" ]
60544749+bintangx1902@users.noreply.github.com
dd84a5790a2a78e6f48019faaa8ff6e1469c0763
1ab7b3f2aa63de8488ce7c466a67d367771aa1f2
/Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/werkzeug/wrappers/accept.py
9605e637dc682aa6fb376053cb9a80387c566377
[ "MIT" ]
permissive
icl-rocketry/Avionics
9d39aeb11aba11115826fd73357b415026a7adad
95b7a061eabd6f2b607fba79e007186030f02720
refs/heads/master
2022-07-30T07:54:10.642930
2022-07-10T12:19:10
2022-07-10T12:19:10
216,184,670
9
1
MIT
2022-06-27T10:17:06
2019-10-19T09:57:07
C++
UTF-8
Python
false
false
429
py
import typing as t import warnings class AcceptMixin: def __init__(self, *args: t.Any, **kwargs: t.Any) -> None: warnings.warn( "'AcceptMixin' is deprecated and will be removed in" " Werkzeug 2.1. 'Request' now includes the functionality" " directly.", Depre...
[ "kd619@ic.ac.uk" ]
kd619@ic.ac.uk
94f2d43841d6de8c61172de178f2cf83ea40e303
b8a3e758eff2922ff6abc77947d879e3f6d1afa3
/ws_moveit/build/moveit_resources/catkin_generated/pkg.develspace.context.pc.py
1db6f9fe77fc24ca7b6f4cd26bc3b8b329be1584
[]
no_license
rrowlands/ros-baxter-coffee
ab7a496186591e709f88ccfd3b9944428e652f3e
32473c3012b7ec4f91194069303c85844cf1aae7
refs/heads/master
2016-09-05T20:58:20.428241
2013-12-02T23:10:44
2013-12-02T23:10:44
14,313,406
0
1
null
null
null
null
UTF-8
Python
false
false
523
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/p/peth8881/robotics/ws_moveit/build/moveit_resources/include".split(';') if "/home/p/peth8881/robotics/ws_moveit/build/moveit_resources/include" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(...
[ "peth8881@csel-112-02.csel.loc" ]
peth8881@csel-112-02.csel.loc
4b2039b2583b2258d2f0fea69a7ad4fcde28256d
46ac0965941d06fde419a6f216db2a653a245dbd
/sdks/python/appcenter_sdk/models/AzureSubscriptionPatchRequest.py
12120015c7f4061d120ebe159a0c58a00ab14fa1
[ "MIT", "Unlicense" ]
permissive
b3nab/appcenter-sdks
11f0bab00d020abb30ee951f7656a3d7ed783eac
bcc19c998b5f648a147f0d6a593dd0324e2ab1ea
refs/heads/master
2022-01-27T15:06:07.202852
2019-05-19T00:12:43
2019-05-19T00:12:43
187,386,747
0
3
MIT
2022-01-22T07:57:59
2019-05-18T17:29:21
Python
UTF-8
Python
false
false
3,336
py
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class AzureSubscript...
[ "b3nab@users.noreply.github.com" ]
b3nab@users.noreply.github.com
1d4ebcce0118f05541c3c6d3e01ae58b51dcc55a
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/certificate_object_global_rulestack_delete_maximum_set_gen.py
1f902b1ba35bfded952bc53f1fceaa215a018896
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
1,697
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
6b3f498770a1dfc3845ef9db19d864e6ef3dbe55
f98a2875e0cdc84341fe8e37b11336368a257fe7
/agents/product.py
a86acbd28d5e0c5f8555128eb791223b5eb52c56
[ "MIT" ]
permissive
anhnguyendepocen/PolicySpace2
eaa83533b7ad599af677ce69353841e665b447d0
d9a450e47651885ed103d3217dbedec484456d07
refs/heads/master
2023-08-28T04:55:40.834445
2021-10-21T18:50:03
2021-10-21T18:50:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
class Product: def __init__(self, product_id, quantity, price): self.product_id = product_id self.quantity = quantity self.price = price def __repr__(self): return 'Product ID: %d, Quantity: %d, Price: %.1f' % (self.product_id, self.quantity, self.price)
[ "furtadobb@gmail.com" ]
furtadobb@gmail.com
d8b55cb94184067e2e3d57f95ab20936d5d86e5e
c200119f4180ddc17dcaeb87d8bad6399442a529
/tests/src/miniblog/settings.py
4a49139d88b610ef74757746972a748e912302d5
[]
no_license
marekmalek/django-observer
3f4ae6ba1482f649d4495a95b95d4ec74f8222f2
3b9e4aeaaa9cd4cc4af7a245a185fb18e89e181a
refs/heads/master
2021-01-18T06:59:34.588359
2012-08-31T16:31:25
2012-08-31T16:31:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,009
py
# Django settings for weblog project. import os import sys ROOT=os.path.join(os.path.dirname(__file__), '../../') app_path=os.path.realpath(os.path.join(ROOT, '../')) if app_path not in sys.path: sys.path.insert(0, app_path) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.co...
[ "lambdalisue@hashnote.net" ]
lambdalisue@hashnote.net
cb0fbdb98f51edb323e77ac971a051e4e5dbf795
3cda2dc11e1b7b96641f61a77b3afde4b93ac43f
/test/training_service/config/metrics_test/trial.py
43e3ac1b4d66f7bd96f307c7314cbfb226ab1cdc
[ "MIT" ]
permissive
Eurus-Holmes/nni
6da51c352e721f0241c7fd26fa70a8d7c99ef537
b84d25bec15ece54bf1703b1acb15d9f8919f656
refs/heads/master
2023-08-23T10:45:54.879054
2023-08-07T02:39:54
2023-08-07T02:39:54
163,079,164
3
2
MIT
2023-08-07T12:35:54
2018-12-25T12:04:16
Python
UTF-8
Python
false
false
818
py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import time import json import argparse import nni if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument("--dict_metrics", action='store_true') args = parser.parse_args() if args.dict_metrics: ...
[ "noreply@github.com" ]
Eurus-Holmes.noreply@github.com
b0504f6fbbe712366d92f283d5cbb43334f0bf11
e4cbd82358ba5e8b4d4bacefa054e4ecda2d1517
/config/settings_base.py
622ff272b323de19ec535a9f28658818391172f6
[]
no_license
mziegler/UssdDjangoDemo
a69ca95010443e5925fdf181904da05e9938bcc3
9b29eb562a7832aa6a033daf1bee8d99746ee93b
refs/heads/master
2020-07-21T18:16:40.325034
2017-07-01T00:42:40
2017-07-01T00:42:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,480
py
""" Django settings for djangoUSSD project. Generated by 'django-admin startproject' using Django 1.9.4. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os...
[ "t.perrier@gmail.com" ]
t.perrier@gmail.com
2d507377a10d3350cc729739daf540151c9c4dc8
2e4169290bf115e62cebe1a51ce1dc1528bc2cd2
/trunk/vlist/vlist.py
703c11e359dcaf87b186f2001be0c4794c72d3e8
[]
no_license
BGCX067/ezwidgets-svn-to-git
6c96bb408369316d395f6c8836b8e7be063ae0d8
2864f45bc3e9d87b940b34d0fa6ce64e712c2df8
refs/heads/master
2021-01-13T09:49:25.511902
2015-12-28T14:19:53
2015-12-28T14:19:53
48,833,330
0
0
null
null
null
null
UTF-8
Python
false
false
4,324
py
#---------------------------------------------------------------------------- # Name: vlist.py # Purpose: virtual list with mix-in ColumnSorter class # # Author: Egor Zindy # # Created: 26-June-2005 # Licence: public domain #---------------------------------------------------------------...
[ "you@example.com" ]
you@example.com
5f7b5a15c9442a8a6d69e574837dd9b9db1641db
329bf886f90cdcc5b083d2ab47c529f5df95767b
/survey/views.py
7a2375bebe6f6c999d7383dd539267dda614e1e5
[]
no_license
leliel12/otree_saral
f4a16073479836df36789a58a311a8dc0e2fd7f5
d4c91e1b9451460a656f270fe9f540bf811a9a32
refs/heads/master
2021-01-10T08:39:39.278589
2015-10-26T00:53:29
2015-10-26T00:53:29
43,258,370
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
# -*- coding: utf-8 -*- from __future__ import division from . import models from ._builtin import Page, WaitPage from otree.common import Currency as c, currency_range from .models import Constants class Question(Page): form_model = models.Player form_fields = ["name", "age", "email", "gender", "...
[ "jbc.develop@gmail.com" ]
jbc.develop@gmail.com
879d3e52d3b63ee8f078a3a5f876d4b96ca5aba3
3dc60bbcb27600ffe7baa4e6187fe2c71bb7b5ab
/Python/to-lower-case.py
ca69091671f3380ba24c1920aca7d39718fe6f48
[ "MIT" ]
permissive
phucle2411/LeetCode
33f3cc69fada711545af4c7366eda5d250625120
ba84c192fb9995dd48ddc6d81c3153488dd3c698
refs/heads/master
2022-01-14T16:49:50.116398
2019-06-12T23:41:29
2019-06-12T23:41:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
# https://leetcode.com/problems/to-lower-case/submissions/ class Solution: def toLowerCase(self, str): """ :type str: str :rtype: str """ return str.lower()
[ "JaredLGillespie@hotmail.com" ]
JaredLGillespie@hotmail.com
8b6b1b686c656f460928930a4a0b4fa4374f8ad9
18e48f22f88fe80ce54d12fdbf9d05a7ca5bd65a
/0x11-python-network_1/7-error_code.py
ad1698d9aff563aff2ccaec553148dfecf84b193
[]
no_license
SantiagoHerreG/holbertonschool-higher_level_programming
426c4bc9bc080a81b72d2f740c8ed2eb365023eb
ca2612ef3be92a60764d584cf39de3a2ba310f84
refs/heads/master
2020-07-22T19:33:48.507287
2020-02-14T04:34:00
2020-02-14T04:34:00
207,305,022
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
#!/usr/bin/python3 """takes in a URL, sends a request to the URL and displays the body of the response""" import requests import sys if __name__ == "__main__": url = sys.argv[1] res = requests.get(url) if res.status_code == requests.codes.ok: print(res.text) else: print("Error cod...
[ "888@holbertonschool.com" ]
888@holbertonschool.com
a800f9d568a1d7598f3cae018badde0c06ea9409
8578ae5be776b49559fa95ce30f6b45b6a82b73a
/test/functional/p2p_fingerprint.py
0a572d97cfb88494d434474850b03427f50dd5ed
[ "MIT" ]
permissive
devcoin/core
3f9f177bd9d5d2cc54ff95a981cfe88671206ae2
f67e8b058b4316dd491615dc3f8799a45f396f4a
refs/heads/master
2023-05-25T03:42:03.998451
2023-05-24T07:59:22
2023-05-24T08:02:14
21,529,485
16
13
MIT
2022-01-07T17:04:18
2014-07-05T22:42:13
C
UTF-8
Python
false
false
5,061
py
#!/usr/bin/env python3 # Copyright (c) 2017-2020 The Bitcoin Core and Devcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various fingerprinting protections. If a stale block more than a month old or it...
[ "fernando@develcuy.com" ]
fernando@develcuy.com
1c1dcd8bc185c5981370cc6412b274be30918a26
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/model_control/detailed/transf_RelativeDifference/model_control_one_enabled_RelativeDifference_PolyTrend_Seasonal_Minute_MLP.py
613e814baf612b7e6b06d1d12091e2333056e4bd
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
172
py
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['RelativeDifference'] , ['PolyTrend'] , ['Seasonal_Minute'] , ['MLP'] );
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
59378ed1c249261ad53db470074838f10644f261
3381d3d1b70bd88374e75d90197d0202945bbade
/authentication/views.py
1ea82fb55ee882e019ac000c9ca14bf94b9c33ca
[]
no_license
PHONGLEX/djangorestframework_quizapi
30d5011b67a484a525c94071672f29ed2b0cb700
c9f7b4ebdc00188533a0a5f44c13594011729fa4
refs/heads/master
2023-08-02T00:58:35.647091
2021-10-01T09:17:05
2021-10-01T09:17:05
412,402,225
0
0
null
null
null
null
UTF-8
Python
false
false
5,554
py
import jsonpickle import jwt from rest_framework import generics, status from rest_framework.views import APIView from rest_framework_simplejwt.tokens import RefreshToken from rest_framework.response import Response from rest_framework.permissions import IsAuthenticated from django.contrib import auth from django.uti...
[ "fonglex@gmail.com" ]
fonglex@gmail.com
30d040917850dbfe213295e61066ca08ae2f4ddd
509fc176af52f46ce62f54a6f63c7c27b1bd0c2c
/djangofiltertest/djangofiltertest/apps/posts_areas/api_v1/views.py
d95acb524992ab1ca2a3395a52d48a793ab3f132
[ "MIT" ]
permissive
gonzaloamadio/django-filter-test
8b16fdb989a8141ba5852cd4804148cb6b153e86
7b9dbc36ca248e2113deaac03e824b123a31a4ba
refs/heads/master
2022-12-10T11:35:07.684916
2019-01-24T09:19:21
2019-01-24T09:19:21
167,159,577
0
0
MIT
2022-12-08T01:33:33
2019-01-23T09:54:40
Python
UTF-8
Python
false
false
270
py
from posts_areas.api_v1.serializers import PostAreaSerializer from posts_areas.models import PostArea from djangofiltertest.libs.views import APIViewSet class PostAreaViewSet(APIViewSet): queryset = PostArea.objects.all() serializer_class = PostAreaSerializer
[ "gonzaloamadio@gmail.com" ]
gonzaloamadio@gmail.com
dc90c334f8f9314e070b2c504c81d5c4b72155a3
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/googlecloudsdk/core/util/tokenizer.py
1a403b82516d25b5b6213598941a3ba5f7672ed2
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google-cloud-sdk-unofficial/google-cloud-sdk
05fbb473d629195f25887fc5bfaa712f2cbc0a24
392abf004b16203030e6efd2f0af24db7c8d669e
refs/heads/master
2023-08-31T05:40:41.317697
2023-08-23T18:23:16
2023-08-23T18:23:16
335,182,594
9
2
NOASSERTION
2022-10-29T20:49:13
2021-02-02T05:47:30
Python
UTF-8
Python
false
false
2,291
py
# -*- coding: utf-8 -*- # # Copyright 2013 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
ea11bf784f41f2baf536fbb111241ab1f1165160
66c7b0da6ee27ddce0943945503cdecf199f77a2
/rllib/util/parameter_decay.py
2df23cd677dcb3091464bf29c075df7a3d8bd9ee
[ "MIT" ]
permissive
tzahishimkin/extended-hucrl
07609f9e9f9436121bcc64ff3190c966183a2cd9
c144aeecba5f35ccfb4ec943d29d7092c0fa20e3
refs/heads/master
2023-07-09T22:57:28.682494
2021-08-24T08:50:16
2021-08-24T08:50:16
383,819,908
0
0
null
null
null
null
UTF-8
Python
false
false
4,056
py
"""Implementation of a Parameter decay class.""" from abc import ABCMeta import torch.jit import torch.nn as nn from rllib.util.neural_networks.utilities import inverse_softplus class ParameterDecay(nn.Module, metaclass=ABCMeta): """Abstract class that implements the decay of a parameter.""" def __init__(...
[ "shi.tzahi@gmail.com" ]
shi.tzahi@gmail.com
8e1f9eeaa8eb59e4b8fd5822047b9e320adc32db
e2c120b55ab149557679e554c1b0c55126e70593
/python/imagej/tests/test_ImgLib2_ImgFactory.py
6b95c5b2582e670492dc615ed54d7090c3ee9152
[]
no_license
acardona/scripts
30e4ca2ac87b9463e594beaecd6da74a791f2c22
72a18b70f9a25619b2dbf33699a7dc1421ad22c6
refs/heads/master
2023-07-27T14:07:37.457914
2023-07-07T23:13:40
2023-07-07T23:14:00
120,363,431
4
5
null
2023-05-02T11:20:49
2018-02-05T21:21:13
Python
UTF-8
Python
false
false
859
py
from net.imglib2.img.array import ArrayImgFactory from net.imglib2.type.numeric.integer import UnsignedByteType, UnsignedShortType from net.imglib2.util import Intervals # An 8-bit 256x256x256 volume img = ArrayImgFactory(UnsignedByteType()).create([256, 256, 256]) # Another image of the same type and dimensions, but...
[ "sapristi@gmail.com" ]
sapristi@gmail.com
89e2d90ba4eedda9c8b3ce40056dde57e0048c0c
e60487a8f5aad5aab16e671dcd00f0e64379961b
/python_stack/Algos/leetcode_30days/max_subarray.py
05464124d8c978cb2d1c61f8ef20653a3b199cf1
[]
no_license
reenadangi/python
4fde31737e5745bc5650d015e3fa4354ce9e87a9
568221ba417dda3be7f2ef1d2f393a7dea6ccb74
refs/heads/master
2021-08-18T08:25:40.774877
2021-03-27T22:20:17
2021-03-27T22:20:17
247,536,946
0
0
null
null
null
null
UTF-8
Python
false
false
1,473
py
# Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. # Example: # Input: [-2,1,-3,4,-1,2,1,-5,4], # Output: 6 # Explanation: [4,-1,2,1] has the largest sum = 6. def findMaxIndex(nums): maxIndex=0 for i in range(1,len(nums)): ...
[ "reena.dangi@gmail.com" ]
reena.dangi@gmail.com
8c4d47286298016368282b45a4cb4e2dc67954f7
f27c49458bde84048e6008da8c52ca0f1ae711ce
/code/07-data-structures/simple_dict/playground.py
b8e36ebaf6c98c36c3e8c2912fe99193322d5f38
[ "MIT" ]
permissive
talkpython/python-for-absolute-beginners-course
54b0f48b5edbf7755de6ca688a8e737ba16dc2fc
1930dab0a91526863dc92c3e05fe3c7ec63480e1
refs/heads/master
2022-11-24T03:02:32.759177
2022-11-08T14:30:08
2022-11-08T14:30:08
225,979,578
2,287
1,059
MIT
2022-11-07T19:45:15
2019-12-05T00:02:31
Python
UTF-8
Python
false
false
547
py
# Data structures # 1. Dictionaries # 2. Lists / arrays [1,1,7,11] # 3. Sets # Lists lst = [1, 1, 11, 7] print(lst) lst.append(2) print(lst) lst.remove(11) print(lst) lst.sort() print(lst) # Sets: st = {1, 1, 11, 7} st.add(1) st.add(1) st.add(11) print(st) # Dictionaries d = { 'bob': 0, 'sarah': 0, 'defe...
[ "mikeckennedy@gmail.com" ]
mikeckennedy@gmail.com
8dc61e64bb66988a363127243cb1b02813e86140
a6a78f59f442c18449befc89be2b193e37b695d6
/ivi/rigol/rigolDP800.py
fd988186043295e67c8db82281a56f6215da0aef
[ "MIT" ]
permissive
hohe/python-ivi
fa0b4b1232f4fca92bd046d2ae322e49959f8a83
0fe6d7d5aaf9ebc97085f73e25b0f3051ba996b6
refs/heads/master
2021-01-21T08:55:35.470107
2013-12-23T09:27:02
2013-12-23T09:27:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,380
py
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2012 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the righ...
[ "alex@alexforencich.com" ]
alex@alexforencich.com
3efb3fa0f33c9db9e23e81ccddbd12529703f1e8
ddb8c14775dfbe9424691dabf1617273d118d317
/catkin_ws/build/msg_check/catkin_generated/pkg.installspace.context.pc.py
d23c59c9aa6dcd0265af7cbe01246235712f19cc
[]
no_license
rishabhdevyadav/fastplanneroctomap
e8458aeb1f2d3b126d27dc57011c87ae4567687a
de9d7e49cb1004f3b01b7269dd398cf264ed92b4
refs/heads/main
2023-05-12T22:12:27.865900
2021-05-26T19:25:31
2021-05-26T19:25:31
356,674,577
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include/eigen3".split(';') if "${prefix}/include;/usr/include/eigen3" != "" else [] PROJECT_CATKIN_DEPENDS = "geometry_msgs;mav_msgs;nav_msgs;roscpp;rospy;sensor_msgs;message_run...
[ "rishabhdevyadav95@gmail.com" ]
rishabhdevyadav95@gmail.com
bd0443ac664d583b35f574b914b7d097a427430c
e5897d5b5eb3b018bec8703f01cfc666acea5b38
/isy994/items/variables/variable_state.py
9ff4bd1fca3dd2830528fb6ce10c205ddf9ea290
[ "MIT" ]
permissive
mjcumming/ISY994v5
5de41ce7e12be44c35dc0818daf639bb8c0e5487
928d8359fd15363e15b8daa402fbb1f5f53f3c45
refs/heads/master
2022-05-19T06:10:59.788621
2022-05-08T13:16:29
2022-05-08T13:16:29
187,289,265
4
10
MIT
2021-06-26T13:34:23
2019-05-17T22:36:55
Python
UTF-8
Python
false
false
219
py
#! /usr/bin/env python from .variable_base import Variable_Base class Variable_State(Variable_Base): def __init__(self, container, variable_info): Variable_Base.__init__(self, container, variable_info)
[ "mike@4831.com" ]
mike@4831.com
b59641920ce0787bdda82226455c999d8bfa5e60
23b3c698412f71a2878ae586f5599f2b6e38c980
/source-code/bokeh/ising.py
1dab727e38f3966bbe674a61422b703eec89d4d9
[ "CC-BY-4.0" ]
permissive
gjbex/Scientific-Python
9b7ae7b3398cc9358d1f530ca24243b63f3c01f0
02d24e6e22cfbc5b73429a2184ecbdfcd514c8fc
refs/heads/master
2023-08-17T10:17:39.963630
2023-05-12T14:51:32
2023-05-12T14:51:32
221,184,612
13
13
CC-BY-4.0
2023-08-03T08:04:57
2019-11-12T09:55:27
Jupyter Notebook
UTF-8
Python
false
false
964
py
#!/usr/bin/env python from argparse import ArgumentParser from bokeh.layouts import column from bokeh.models import CustomJS, ColumnDataSource, Slider from bokeh.plotting import curdoc, figure import numpy as np x = np.linspace(-3.0, 3.0, 301) y = x.copy() default_beta = 4.0 y_tanh = np.tanh(default_beta*x) source ...
[ "geertjan.bex@uhasselt.be" ]
geertjan.bex@uhasselt.be
94ad119004a4fd0ddd961a8ed9e3b31bb811fd1a
1b7f4cd39bf7e4a2cf667ac13244e5138ee86cb2
/agents/game/human_agent.py
b04040eb7f8fea24819cc7ddc959c01950f3bda1
[ "MIT" ]
permissive
cjreynol/willsmith
02f793003a914a21b181839bbd58108046f312d6
39d3b8caef8ba5825f3a0272c7fd61a2f78ef2b5
refs/heads/master
2020-07-15T13:25:57.613707
2018-06-12T00:18:19
2018-06-12T00:18:19
205,572,039
0
0
null
null
null
null
UTF-8
Python
false
false
1,390
py
from agents.displays.human_display import HumanDisplay from willsmith.game_agent import GameAgent class HumanAgent(GameAgent): """ Agent that relies on user input to make action choices. It relies on its action_prompt attribute, set externally by the simulator, to provide the proper prompts and to c...
[ "cjreynol13@aol.com" ]
cjreynol13@aol.com
70f4e03aa8a2930c56a4ec84979dc5bb1e836e28
745a605d52556d5195b7cdbf871fc1011b2dc9cd
/backend/mete/models.py
92b2828ee3753d37d2fa5baa61d5d362342dc181
[]
no_license
annikahannig/meteme
96a6b919fbdac20bef7e13e1d101130cd1805b7b
16ca646904a31833e8d1156be8f554e11ff0d37a
refs/heads/master
2021-06-25T05:34:23.517379
2017-05-09T20:33:54
2017-05-09T20:33:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,526
py
from __future__ import unicode_literals from collections import OrderedDict from django.db import models from django.conf import settings from djmoney.models.fields import MoneyField from moneyed import Money from solo.models import SingletonModel from store import models as store_models from unidecode import unid...
[ "matthias@hannig.cc" ]
matthias@hannig.cc
5cf9e4839963c2c5dace99204f707d7e8424f061
14c5bd382ac9ffbfa4ae34f244bca6685f3cd18c
/apps/geotracker/models.py
d3eff90a8929fa59880c39ed709ce3692949a42b
[]
no_license
redhog/arwen
e8705e978588163554c83e3278297506c1ffb2ce
342daa97a72c0776d4dfe27196adfe66d4dff63c
refs/heads/master
2021-01-17T13:08:09.392613
2011-08-26T09:21:40
2011-08-26T09:21:40
2,084,644
1
0
null
null
null
null
UTF-8
Python
false
false
4,235
py
# -*- coding: utf-8 -*- import django.contrib.auth.models from django.utils.translation import ugettext_lazy as _ import django.contrib.gis.db.models import geotracker.geos import linkableobject.models class Vehicle(django.contrib.gis.db.models.Model, linkableobject.models.LinkableModelMixin): objects = django.con...
[ "egil.moller@freecode.no" ]
egil.moller@freecode.no
e1516bbfce063e8d56341ca439e8cf70dfc77eed
2b5fd9d436a97726f852a12bab58b8d367f4866a
/api/urls.py
2a552766f2d17ea023c0ec9ea230e41593ce2a2f
[]
no_license
lxlzyf/roe
07ff551b142c0411acb7ca6f759ea98b40ad9b72
2d7f1b01e2456875d14a75c90d8397965215bcd3
refs/heads/master
2020-03-27T06:00:43.587235
2018-08-20T10:47:47
2018-08-20T10:47:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
from django.conf.urls import url from api.views import user_api urlpatterns = [ url(r'^group/$', assets_api.group_list), url(r'^group/(?P<id>[0-9]+)/$',assets_api.group_detail), url(r'^user/$', user_api.user_list), url(r'^user/(?P<id>[0-9]+)/$',user_api.user_detail),...
[ "flc009@163.com" ]
flc009@163.com
22126b447591b464ad5a6d753bb645c15ea5ed06
531f8027890188eb037a9dbe68d63882eb2e0ead
/demos/ebeam/flash/flash_mismatch.py
77b5f709db45ef41f935bc5ad434b0e1d972c21e
[]
no_license
Cartj/desy
057947dd5e3e4fce085472dc145461cea68be8e9
9a1f12e7cf7040e28614e95dc5c49bc10d36b092
refs/heads/master
2020-03-21T06:01:54.315274
2016-08-16T13:04:56
2016-08-16T13:04:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,823
py
__author__ = 'Sergey Tomin' from ocelot import * from ocelot.gui import * from pylab import * exec( open("lattice_FLASH_S2E.py" )) beam = Beam() beam.E = 148.3148e-3 #in GeV ?! beam.beta_x = 14.8821 beam.beta_y = 18.8146 beam.alpha_x = -0.61309 beam.alpha_y = -0.54569 beam.emit_xn = 1.5e-6 beam.emit_yn = 1.5e-6 be...
[ "tomin.sergey@gmail.com" ]
tomin.sergey@gmail.com
4778c6986b6120a7ef560780ffc43c77d358ed22
4c9580b2e09e2b000e27a1c9021b12cf2747f56a
/chapter13/xiaoyu_mall/xiaoyu_mall/apps/areas/migrations/0001_initial.py
079ebb7f05049decffb2551a21f8dbc383e69e82
[]
no_license
jzplyy/xiaoyue_mall
69072c0657a6878a4cf799b8c8218cc7d88c8d12
4f9353d6857d1bd7dc54151ca8b34dcb4671b8dc
refs/heads/master
2023-06-26T02:48:03.103635
2021-07-22T15:51:07
2021-07-22T15:51:07
388,514,311
1
0
null
null
null
null
UTF-8
Python
false
false
930
py
# Generated by Django 2.2.3 on 2019-11-15 06:09 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Area', fie...
[ "jzplyy@126.com" ]
jzplyy@126.com
c5e60a89ed2a73c9c155f1c67d66ad55d13bc4ba
cd486d096d2c92751557f4a97a4ba81a9e6efebd
/17/addons/plugin.video.ukturk/resources/lib/scraper2.py
0c1a6e03d1453afd6847bd928d43d611c2b92671
[]
no_license
bopopescu/firestick-loader-kodi-data
2f8cb72b9da67854b64aa76f720bdad6d4112926
e4d7931d8f62c94f586786cd8580108b68d3aa40
refs/heads/master
2022-04-28T11:14:10.452251
2020-05-01T03:12:13
2020-05-01T03:12:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,184
py
# coding: UTF-8 import sys l111ll1llUK_Turk_No1 = sys.version_info [0] == 2 l11l1l11lUK_Turk_No1 = 2048 l111llll1UK_Turk_No1 = 7 def l11l1lUK_Turk_No1 (l1llll1lUK_Turk_No1): global l1l1ll1llUK_Turk_No1 l11lllll1UK_Turk_No1 = ord (l1llll1lUK_Turk_No1 [-1]) l11l111llUK_Turk_No1 = l1llll1lUK_Turk_No1 [:-1] ...
[ "esc0rtd3w@gmail.com" ]
esc0rtd3w@gmail.com
94ed5e380f49bf3d497d587c95ec1d3ec6e65bad
dcbedd4c06aa0cf78cf1d881a61f2a0cdb06005a
/(Keras) IMDB Dataset.py
756f84210ce7f7a14cdf371a8ffa4145def4e726
[]
no_license
KevinHooah/recurrent-dropout-experiments
064243f403687a7e063a6464ce015d282a8a0dfb
96b2aa2478fb46a252251c0b49354a2de40c7684
refs/heads/master
2020-08-29T23:43:01.440740
2019-08-07T03:43:23
2019-08-07T03:43:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,816
py
# coding: utf-8 # # (Keras) IMDB Dataset # In[1]: import numpy as np from tensorflow.contrib.keras.python.keras.optimizers import SGD, RMSprop, Adagrad from tensorflow.contrib.keras.python.keras.models import Sequential from tensorflow.contrib.keras.python.keras.layers.core import Dense, Dropout from tensorflow.co...
[ "shuanck@gmail.com" ]
shuanck@gmail.com
4aafe1f881c5b33b219068a5220f67354a33717f
c72252f96a1021ba3f9b812020b74bda258bf465
/S12学习/day3/code/configfile.py
8a00a0bc88d4cfb073f70be09115f0b43d8c233f
[]
no_license
yzwy1988/cloud
0251af05b8cc2a8fffdc6f739a01ba9383353dc5
6e87f26497072f41b20c1b0696e5605a52987c50
refs/heads/master
2021-01-17T22:19:52.327370
2016-02-22T10:34:59
2016-02-22T10:34:59
52,455,959
2
0
null
2016-02-24T16:14:50
2016-02-24T16:14:49
null
UTF-8
Python
false
false
1,267
py
# /usr/bin/env python # -*- coding:utf-8 -*- # startswith 是否以某个字段开头的 import json def check(backend): check_list = [] flag = False with open('back', 'r') as f: for line in f: if line.startswith('backend'): if backend == line.strip().split()[1]: # strip 换行,split 去掉空格 ...
[ "80470335@qq.com" ]
80470335@qq.com
f9edc8d9a223c008a70ef3224c3054621286d518
12258001571bd504223fbf4587870960fa93a46d
/client/config.py
a629d5d3999e56e775ec3430d476a68ae01ea7a4
[]
no_license
Nik0las1984/mud-obj
0bd71e71855a9b0f0d3244dec2c877bd212cdbd2
5d74280724ff6c6ac1b2d3a7c86b382e512ecf4d
refs/heads/master
2023-01-07T04:12:33.472377
2019-10-11T09:10:14
2019-10-11T09:10:14
69,223,190
2
0
null
2022-12-26T20:15:20
2016-09-26T07:11:49
Python
UTF-8
Python
false
false
190
py
# coding=utf-8 auto_login = False try: from local_config import * except ImportError, e: print 'Unable to load local_config.py:', e if 'plugins' not in locals(): plugins = []
[ "kolya.khokhlov@gmail.com" ]
kolya.khokhlov@gmail.com
6d7330abeb85dd4954ae55bd45295a5be17a49bd
fffb732290af97687ea3221ce4a6ce4d95640aff
/courses/w10_opencv/source/OpenCV_in_Ubuntu/Python/mycam_02.py
a69e21c219e5ed6a45cf86fad76f32c973c641fb
[]
no_license
NamWoo/self_driving_car
851de73ae909639e03756eea4d49ab663447fc19
cd5c1142c9e543e607ca9dc258f689de6879d207
refs/heads/master
2021-07-24T19:51:54.459485
2021-07-06T13:58:19
2021-07-06T13:58:19
186,267,543
9
7
null
null
null
null
UTF-8
Python
false
false
493
py
import numpy as np import cv2 def receive(): cap = cv2.VideoCapture('udpsrc port=5200 caps=application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)96!rtph264depay!decodebin!videoconvert!appsink',cv2.CAP_GSTREAMER) while True: ret,frame = cap.read() if not ...
[ "pre3ice@gmail.com" ]
pre3ice@gmail.com
da183faec87314655b87ce430d6c703df9991366
4ef688b93866285bcc27e36add76dc8d4a968387
/moto/ds/responses.py
46d204c1e27ec3b9a35fcf38df9cfb7e7319d764
[ "Apache-2.0" ]
permissive
localstack/moto
cec77352df216cac99d5e0a82d7ada933950a0e6
b0b2947e98e05d913d7ee2a0379c1bec73f7d0ff
refs/heads/localstack
2023-09-01T05:18:16.680470
2023-07-10T09:00:26
2023-08-07T14:10:06
118,838,444
22
42
Apache-2.0
2023-09-07T02:07:17
2018-01-25T00:10:03
Python
UTF-8
Python
false
false
6,529
py
"""Handles Directory Service requests, invokes methods, returns responses.""" import json from moto.core.exceptions import InvalidToken from moto.core.responses import BaseResponse from moto.ds.exceptions import InvalidNextTokenException from moto.ds.models import ds_backends, DirectoryServiceBackend class Directory...
[ "noreply@github.com" ]
localstack.noreply@github.com
49919addd199e8a7aff5d7ceb03465d0ee8fa6c8
3da6b8a0c049a403374e787149d9523012a1f0fc
/网易云课堂/Python办公自动化实战/01_开启自动化人生/batch_docs.py
d407f2929fd181400dee176ff02cc8571a3889b9
[]
no_license
AndersonHJB/PyCharm_Coder
d65250d943e84b523f022f65ef74b13e7c5bc348
32f2866f68cc3a391795247d6aba69a7156e6196
refs/heads/master
2022-07-25T11:43:58.057376
2021-08-03T02:50:01
2021-08-03T02:50:01
348,922,058
3
3
null
2021-09-05T02:20:10
2021-03-18T02:57:16
Python
UTF-8
Python
false
false
790
py
# -*- coding: utf-8 -*- # @Time : 2021/5/6 8:22 下午 # @Author : AI悦创 # @FileName: batch_docs.py.py # @Software: PyCharm # @Blog :http://www.aiyc.top # @公众号 :AI悦创 from docx import Document # 创建文档 from docx.oxml.ns import qn # 中文 from docx.enum.text import WD_PARAGRAPH_ALIGNMENT # 段落 from docx.shared import Pt...
[ "1432803776@qq.com" ]
1432803776@qq.com
4426687fcdb98f8446d4f07841bc72249015469b
5173c3e3956387a3f2ae8fcf4aed7c7a600dac78
/Programmers/Programmers_입국심사.py
0b401b3a4fa57dd39d85c7899098df041a3e441f
[]
no_license
ma0723/Min_Algorithm
df75f53f6e89b7817d4b52d686effb8236a4ddac
b02d1043008cb32e22daa9d4207b9a45f111d66f
refs/heads/master
2023-07-25T11:00:15.397093
2021-08-30T02:08:05
2021-08-30T02:08:05
375,613,927
1
0
null
null
null
null
UTF-8
Python
false
false
892
py
def solution(n, times): # 입국심사를 기다리는 사람 수 n # 한 명을 심사하는데 걸리는 시간이 담긴 배열 times answer = 0 left = 1 # 최소 시간 right = n * max(times) # 최대 시간 while left <= right: mid = (left + right) // 2 people = 0 for time in times: people += mid // time # ...
[ "ma0723@naver.com" ]
ma0723@naver.com
702760dacc77f2e65aaed171a0998dfd7602a7b9
3cf21d46cc8213614f5edfe4ebb09df112e5bf44
/tools/asset_aggregator/name_check.py
788a6e9eadc9bae3dc73c59a19e06448f19fd6e7
[ "BSD-3-Clause" ]
permissive
toro09/rotki
abbf06c63bf0191b8a381bad05534bf8541cf212
014e7e11521b81c89b5cd2b4082d197da26684ee
refs/heads/master
2022-12-01T19:09:08.409018
2020-08-11T19:34:54
2020-08-11T19:34:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,883
py
import sys from typing import Any, Dict from asset_aggregator.utils import choose_multiple # For assets we support but no API has names for. We manually input the names then. MANUALLY_CHECKED_NAMES = { 'ADADOWN': 'Binance leveraged token ADADOWN', 'ADAUP': 'Binance leveraged token ADAUP', 'BTCDOWN': 'Bina...
[ "lefteris@refu.co" ]
lefteris@refu.co
0b7d6236b66a636e6778572bde8454fb0fa408ca
242086b8c6a39cbc7af3bd7f2fd9b78a66567024
/python/PP4E-Examples-1.4/Examples/PP4E/Dstruct/Classics/permcomb.py
f6e244e89732645613fef830391f1e2f9dd60db6
[]
no_license
chuzui/algorithm
7537d0aa051ac4cbe9f6a7ca9a3037204803a650
c3006b24c4896c1242d3ceab43ace995c94f10c8
refs/heads/master
2021-01-10T13:05:30.902020
2015-09-27T14:39:02
2015-09-27T14:39:02
8,404,397
4
4
null
null
null
null
UTF-8
Python
false
false
1,516
py
"permutation-type operations for sequences" def permute(list): if not list: # shuffle any sequence return [list] # empty sequence else: res = [] for i in range(len(list)): rest = list[:i] + list[i+1:] ...
[ "zui" ]
zui
39695f540bade7e05ff8fa960c71d068109b1dda
2dd0bf6e8542b560c2e3567f8793b561cb0678b0
/code/src/main/python/misconceptions/syntactics/grammar/R.py
4c300cb4f55146b42613854ab34bcb255fe58cbf
[ "Unlicense" ]
permissive
Eduardo95/COSAL
021f01cfa86e656c3fe320159c8d25ca5b6f311d
4eb95d286288aa25a1a90db40cb1998dad048e1b
refs/heads/master
2023-06-17T08:19:37.925879
2021-07-12T16:24:06
2021-07-12T16:24:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,354
py
import sys import os sys.path.append(os.path.abspath(".")) sys.dont_write_bytecode = True __author__ = "COSAL" from lark import Lark R_GRAMMAR = """ start: value (ASSIGNMENT_OPERATOR value)? // expr: value ( indexer | value | attribute)+ binary_expr: value BINARY_OPERATOR value unary_expr: UNARY_OPERATOR va...
[ "george.meg91@gmail.com" ]
george.meg91@gmail.com
2718c3441138bf66c7e26a309ed95597a6632432
19375a18719e44eee7c596e72ef8915d3fcbff92
/day07_spider/06_qq.py
e29058c5d79b1d50650db9c34bab04e364ccb3bd
[]
no_license
J-shan0903/AID1912
6c617fa26751c31ff05a63050a320122e3ca044e
0797f3d8ef0e96b8eb6908dffbec8193c9614973
refs/heads/master
2021-03-23T12:21:32.480026
2020-05-23T08:36:21
2020-05-23T08:36:21
247,452,309
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
from selenium import webdriver driver = webdriver.Chrome() driver.get(url='https://mail.qq.com/') driver.switch_to.frame('login_frame') driver.find_element_by_id('u').send_keys('369618935@qq.com') driver.find_element_by_id('p').send_keys('353597jss') driver.find_elements_by_class_name('btn').click()
[ "369618935@qq.com" ]
369618935@qq.com
0b3ce647889db5ce8bc43acdb3f0730ff2349fb3
70811da75f0f38719703e02c9f99e2ce09e21d2a
/LSTM_FCN/distal_phalanx_tw_model.py
cd18a4f46cd55d512c9381b2a58a3c9a060069cf
[]
no_license
HongminWu/time_series_anomaly_detection_classification_clustering
9d5e555c9bf37ee72770e127588f61f15139bd4e
548b3799389ec7a96fc56c51360a6de89e0502a1
refs/heads/master
2020-03-11T04:44:00.113684
2018-08-16T06:38:57
2018-08-16T06:38:57
129,783,614
15
6
null
null
null
null
UTF-8
Python
false
false
2,711
py
from keras.models import Model from keras.layers import Input, PReLU, Dense, Dropout, LSTM, Bidirectional, multiply, concatenate from keras.layers import Conv1D, BatchNormalization, GlobalAveragePooling1D, Permute, Activation from utils.constants import MAX_SEQUENCE_LENGTH_LIST, NB_CLASSES_LIST from utils.keras_utils ...
[ "hongminwu0120@gmail.com" ]
hongminwu0120@gmail.com
ef01adb41fcf1f474f98c2f88f09443ee34ec339
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_namespaces_async.py
77e82602f3a50ce880403bd482c0dcba7293d2b3
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
1,489
py
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- import pytes...
[ "noreply@github.com" ]
scbedd.noreply@github.com
4799dfae66b08654ba541db4e36bfdab1b6ecd9b
6382e12a32c3b62ec059ca45c1fee6941e51e260
/Part_5__Control_Flow/Chap_14__Iterables_Iterators_and_Generators/ex_14_12__aritprog_gen.py
b705450eca5df149e40a62b8325732285db256f8
[]
no_license
CavalcanteLucas/python-fluent
e352a79e1da87ae4ee320a09196e119235a904a8
a4e22ab88235c5045eca52745b5e1558586dc166
refs/heads/master
2023-07-11T20:13:35.793456
2023-06-19T13:37:54
2023-06-19T13:37:54
224,661,365
1
0
null
2023-02-11T01:30:09
2019-11-28T13:39:03
Jupyter Notebook
UTF-8
Python
false
false
233
py
def aritprog_gen(begin, step, end=None): result = type(begin + step)(begin) forever = end is None index = 0 while forever or result < end: yield result index += 1 result = begin + step * index
[ "lucascpcavalcante@gmail.com" ]
lucascpcavalcante@gmail.com
fbcce6a43ad58373cd35ab45d604f4c91582da33
e7b7505c084e2c2608cbda472bc193d4a0153248
/LeetcodeNew/python/LC_935.py
58a9a16ae88d9c6f9538e65cc80e22da6dfcaf47
[]
no_license
Taoge123/OptimizedLeetcode
8e5c1cd07904dfce1248bc3e3f960d2f48057a5d
3e50f6a936b98ad75c47d7c1719e69163c648235
refs/heads/master
2023-02-27T21:13:40.450089
2023-02-07T04:11:09
2023-02-07T04:11:09
170,044,224
9
3
null
null
null
null
UTF-8
Python
false
false
1,630
py
""" https://www.youtube.com/watch?v=HTnIFivp0aw 这是一道简单但是比较有趣的题目。DP的方法还是比较容易想到的。令dp[k]表示当前拨号数字为k的方案数,显然它取决于在按k之前的那个数字的拨号方案数之和。 举个例子,第i次拨号时的dp[4]就等于第i-1次拨号时的dp[0]+dp[3]+dp[9],这是因为在盘面上骑士只能从0,3,9这三个位置跳跃到4. """ class SolutionTD: def knightDialer(self, n): table = {1: [6, 8], 2: [7, 9], 3: [4, 8], 4: [0, 3, ...
[ "taocheng984@gmail.com" ]
taocheng984@gmail.com
95104df4640b4babf14d129503b2955198323497
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r10p1/Gen/DecFiles/options/11104121.py
e842e5077a8ce26042b14a549459d60c120ea087
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/11104121.py generated: Wed, 25 Jan 2017 15:25:16 # # Event Type: 11104121 # # ASCII decay Descriptor: [B0 -> pi+ pi- (KS0 -> pi+ pi-)]cc # from Configurables import Generation Generation().EventType = 11104121 Generation().SampleGenerationTool = "Signa...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de