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
34ff077858f4ae33064ecedb7125229e30d88e37
2d8ec841d75acb7ca3c3d1117c06d951e9be0169
/test/X13_TestRomantoInteger.py
3d16e1d47bbcdcf1ab7b8cd7deb848d1167d0c76
[]
no_license
mcceTest/leetcode_py
040aee95ed23674b7e2fea899d22945b12f85981
eb25b3e5866b51fbac10d4686966f2c546c4696f
refs/heads/master
2021-06-27T02:04:56.856659
2021-01-08T03:14:56
2021-01-08T03:14:56
205,760,975
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
import unittest from X13_RomantoInteger import Solution class TestSum(unittest.TestCase): def test1(self): sol = Solution() self.assertEqual(sol.romanToInt("III"), 3) self.assertEqual(sol.romanToInt("IV"), 4) self.assertEqual(sol.romanToInt("IX"), 9) self.assertEqual(so...
[ "zhuxuyu@gmail.com" ]
zhuxuyu@gmail.com
7f71b8025b0da4af24e6f067a0fed3393f846eb2
af259acdd0acd341370c9d5386c444da6a7a28a6
/Supervised-Learning-with-scikit-learn/04-Preprocessing-and-pipelines/04-Dropping-missing-data.py
438c80f1a8b57e4ed94a02048b0011d9457d637e
[]
no_license
pace-noge/datacamp
fcd544f6478040660f7149b1a37bfd957eef9747
eeffb8af233e7304c0f122a48e6b4f78ee7c650e
refs/heads/master
2020-07-04T12:41:29.635167
2019-09-17T10:11:39
2019-09-17T10:11:39
202,289,041
0
0
null
null
null
null
UTF-8
Python
false
false
1,804
py
""" Dropping missing data The voting dataset from Chapter 1 contained a bunch of missing values that we dealt with for you behind the scenes. Now, it's time for you to take care of these yourself! The unprocessed dataset has been loaded into a DataFrame df. Explore it in the IPython Shell with the .head() method. You...
[ "noreply@github.com" ]
pace-noge.noreply@github.com
6757338d0b65931a2f906bdc7f2b1f72184ecadb
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_schoolteachers.py
a97e1eb48efc47de30e4d91ff8c1c06736a2b31a
[ "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
250
py
#calss header class _SCHOOLTEACHERS(): def __init__(self,): self.name = "SCHOOLTEACHERS" self.definitions = schoolteacher self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['schoolteacher']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
94a2a1fa20e97c51852243a2a81a4149bdffabba
fb54704d4a6f9475f42b85d8c470e3425b37dcae
/medium/ex1381.py
3b090451fda3eb43df141d4f0235c64721da852a
[]
no_license
ziyuan-shen/leetcode_algorithm_python_solution
b2784071a94b04e687fd536b57e8d5a9ec1a4c05
920b65db80031fad45d495431eda8d3fb4ef06e5
refs/heads/master
2021-06-27T05:19:47.774044
2021-02-04T09:47:30
2021-02-04T09:47:30
210,991,299
2
0
null
null
null
null
UTF-8
Python
false
false
638
py
class CustomStack: def __init__(self, maxSize: int): self.stack = [] self.maxSize = maxSize def push(self, x: int) -> None: if len(self.stack) < self.maxSize: self.stack.append(x) def pop(self) -> int: if self.stack: return self.stack.pop() ...
[ "ziyuan.shen@duke.edu" ]
ziyuan.shen@duke.edu
95323488f1a2f39dd31806aae172ae8687c22cab
39fe41a33c00ea6dc8e04c61842c3764fdd07ff1
/py3standardlib/algorithms/contextlib/contextlib_exitstack_pop_all.py
68ab294ea41ed5242c5100523e6e1a684725e4f4
[]
no_license
playbar/pylearn
f9639ffa1848a9db2aba52977de6c7167828b317
8bcd1b5a043cb19cde1631947eb128d9c05c259d
refs/heads/master
2021-06-12T01:51:33.480049
2021-03-31T12:16:14
2021-03-31T12:16:14
147,980,595
1
0
null
null
null
null
UTF-8
Python
false
false
1,251
py
# contextlib_exitstack_pop_all.py import contextlib from contextlib_context_managers import * def variable_stack(contexts): with contextlib.ExitStack() as stack: for c in contexts: stack.enter_context(c) # Return the close() method of a new stack as a clean-up # function. ...
[ "hgl868@126.com" ]
hgl868@126.com
cbe4b5b0a93c62e34a4f64d8d65fcb3619111147
1b5802806cdf2c3b6f57a7b826c3e064aac51d98
/tensorrt-basic-1.10-3rd-plugin/TensorRT-main/tools/Polygraphy/examples/cli/run/05_comparing_with_custom_input_data/data_loader.py
4284ddc1e5d6dbe661a164e636b3c38257bcee12
[ "Apache-2.0", "MIT", "BSD-3-Clause", "ISC", "BSD-2-Clause" ]
permissive
jinmin527/learning-cuda-trt
def70b3b1b23b421ab7844237ce39ca1f176b297
81438d602344c977ef3cab71bd04995c1834e51c
refs/heads/main
2023-05-23T08:56:09.205628
2022-07-24T02:48:24
2022-07-24T02:48:24
517,213,903
36
18
null
2022-07-24T03:05:05
2022-07-24T03:05:05
null
UTF-8
Python
false
false
1,709
py
#!/usr/bin/env python3 # # Copyright (c) 2021, NVIDIA CORPORATION. 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 # # ...
[ "dujw@deepblueai.com" ]
dujw@deepblueai.com
4e746f96da01b3c31cde8ca5fd5703e427fb4f2d
e2a7f0ac4e5369e7e924029c1650a986716e78fc
/provisioning/ubuntu-trusty/config.py
698b06100dd24a2e25e9602b22025650824fecf2
[ "Unlicense" ]
permissive
reductus/reductus
f89566de60cda387fc20b1aba4210528c3bd535b
07e865a08396b42fa7ae035de97628bc995506bc
refs/heads/main
2023-05-22T15:08:10.730577
2023-05-12T16:08:49
2023-05-12T16:08:49
1,320,973
7
12
Unlicense
2022-09-30T03:23:50
2011-02-02T16:46:54
Python
UTF-8
Python
false
false
863
py
############################################################# # rename or copy this file to config.py if you make changes # ############################################################# # change this to your fully-qualified domain name to run a # remote server. The default value of localhost will # only allow connec...
[ "brian.maranville@nist.gov" ]
brian.maranville@nist.gov
8105b5e240ed50ebab8d4237de4287212a077d45
8c55d93116982758740665fdf93a57d7668d62f3
/calls/bin/registry-read.py
077e111f7c9656f2119fe7a8ed3124acc0c3e36b
[]
no_license
Ngahu/Making-web-calls
42971fbb5835a46237854d45702f7feb50dd9314
df7e0d9032db914b73a9f19a73be18453e524f6e
refs/heads/master
2021-07-11T06:20:36.953011
2016-09-22T09:22:24
2016-09-22T09:22:24
68,893,415
0
1
null
2020-07-26T08:34:38
2016-09-22T06:55:32
Python
UTF-8
Python
false
false
4,984
py
#!/SHARED-THINGS/ONGOING/making calls/calls/bin/python # Copyright (c) 2003-2015 CORE Security Technologies) # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Author: Alberto Solino (@agsolino) # # Descri...
[ "jamaalaraheem@gmail.com" ]
jamaalaraheem@gmail.com
f632da1a09f68ac9dc98d92c87a45c3d48be3d42
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_None/trend_PolyTrend/cycle_0/ar_/test_artificial_32_None_PolyTrend_0__20.py
a4acd452378510898a95c0d7c7399843cf84e0e1
[ "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
263
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 0, transform = "None", sigma = 0.0, exog_count = 20, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
2c5fb9bc6be3248ac3b35d7d12190b2ea8d205a5
b9efe70d12c2cbd55065d02e974f5725534583ee
/old_scripts/show_corpus.py
b687f9489733eacbea05242368defb71cc58c4e7
[]
no_license
diegoami/bankdomain_PY
5089581ea7b7db6233243dff305488ff27dc8e90
83816e1beb96d3e9e0f746bec7f9db9521f32ee7
refs/heads/master
2022-12-17T05:05:13.557911
2020-06-03T22:19:44
2020-06-03T22:19:44
131,530,574
0
0
null
2022-12-08T01:30:27
2018-04-29T21:12:25
HTML
UTF-8
Python
false
false
996
py
import yaml from repository.mongo_ops import copy_into_qa_documents, split_qa_documents_into_questions, print_all_questions, iterate_questions_in_mongo from preprocess.preprocessor import create_corpus, load_corpus, print_corpus from language.custom_lemmas import my_component from textacy.corpus import Corpus import s...
[ "diego.amicabile@gmail.com" ]
diego.amicabile@gmail.com
08da355ed5009788d673daf96c0f5f8075c62524
77ab53380f74c33bb3aacee8effc0e186b63c3d6
/720_longest_word_in_dictionary.py
b1ef8b4f98d24725eeb93e621ed887835df90cb5
[]
no_license
tabletenniser/leetcode
8e3aa1b4df1b79364eb5ca3a97db57e0371250b6
d3ebbfe2e4ab87d5b44bc534984dfa453e34efbd
refs/heads/master
2023-02-23T18:14:31.577455
2023-02-06T07:09:54
2023-02-06T07:09:54
94,496,986
2
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
''' Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other words in words. If there is more than one possible answer, return the longest word with the smallest lexicographical order. If there is no answer, return the empty str...
[ "tabletenniser@gmail.com" ]
tabletenniser@gmail.com
ae998783f6f09edee5eb0409239e0811735c2f57
141b42d9d72636c869ff2ce7a2a9f7b9b24f508b
/myvenv/Lib/site-packages/phonenumbers/data/region_SJ.py
30448b9dce8f8518c9cc53db0649a80ffccfe27c
[ "BSD-3-Clause" ]
permissive
Fa67/saleor-shop
105e1147e60396ddab6f006337436dcbf18e8fe1
76110349162c54c8bfcae61983bb59ba8fb0f778
refs/heads/master
2021-06-08T23:51:12.251457
2018-07-24T08:14:33
2018-07-24T08:14:33
168,561,915
1
0
BSD-3-Clause
2021-04-18T07:59:12
2019-01-31T17:00:39
Python
UTF-8
Python
false
false
1,464
py
"""Auto-generated file, do not edit by hand. SJ metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_SJ = PhoneMetadata(id='SJ', country_code=47, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='0\\d{4}|[45789]\\d{7}', possible_length=(...
[ "gruzdevasch@gmail.com" ]
gruzdevasch@gmail.com
4b62a941576cc59defc792dd09df58d2eb7e386b
ef11a06c906f37fa98c3de38aa1307110269b2f4
/Notes/Fall2019/Ch4C.py
6d229ca716a445032f72e9b2a630d709bd76b422
[]
no_license
fwparkercode/IntroProgrammingNotes
0d389d2d281122303da48ab2c1648750e594c04f
ad64777208d2f84f87e4ab45695adbfe073eae18
refs/heads/master
2021-07-16T07:13:55.665243
2020-06-09T12:45:38
2020-06-09T12:45:38
170,581,913
3
1
null
null
null
null
UTF-8
Python
false
false
2,842
py
# Chapter 4 - Loops and Random Numbers # Random numbers import random # Randrange function - random.randrange(start, end, count_by) print(random.randrange(10)) # generates a random int from 0 to 9 print(random.randrange(5, 10)) # random int from 5 to 9 print(random.randrange(50, 100, 5)) # random int from 50 to 9...
[ "alee@fwparker.org" ]
alee@fwparker.org
bfec5c587e199e8661352e09e76eb119ef9d4709
7d1d30be1995f2780cbf8999f1891e967936c090
/pttweaks/activity/tests/test_models.py
f91ed5f80aebe191788ab9c3ad566ab2ce0f26ee
[]
no_license
EastAgile/PT-tweaks
118274f70c198fb8885f4a42136a5a1bdefc4e51
7d5742862e42672eb77441ef7a7250d7a3a9359e
refs/heads/master
2022-12-10T20:07:04.859288
2019-08-08T05:29:41
2019-08-08T05:29:41
164,597,129
0
1
null
2022-12-08T05:49:40
2019-01-08T08:06:59
Python
UTF-8
Python
false
false
319
py
from django.test import SimpleTestCase from robber import expect from activity.factories import ActivityChangeLogFactory class ActivityChangeLogTestCase(SimpleTestCase): def test_model_str(self): activity = ActivityChangeLogFactory.build(story_id='123123') expect(str(activity)).to.eq('123123')
[ "open-source@eastagile.com" ]
open-source@eastagile.com
d2d30ed9ef98512ff7d30f5c9754fa535c698414
c838c53ec5de94af57696f11db08f332ff2a65d8
/mission/migrations/0121_picklist_pick_order.py
042a0e8203c7fedb1905237711b5f99b55874583
[]
no_license
memobijou/erpghost
4a9af80b3c948a4d7bb20d26e5afb01b40efbab5
c0ee90718778bc2b771b8078d9c08e038ae59284
refs/heads/master
2022-12-11T14:47:59.048889
2019-01-28T02:30:40
2019-01-28T02:30:40
113,774,918
1
1
null
2022-11-22T02:02:41
2017-12-10T18:53:41
Python
UTF-8
Python
false
false
557
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2018-08-18 14:37 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('mission', '0120_pickorder'), ] operations = [ ...
[ "mbijou@live.de" ]
mbijou@live.de
16cbf16dc6b7fe17bb9032ee14ac7d326eeaced8
3a570384a3fa9c4c7979d33b182556e1c637e9eb
/anwmisc/anw-pyui/Packages/anwp/gui/configinfo.py
5c7bf27ee02e7b8c9821e1b50aacc8cfcb5713f6
[]
no_license
colshag/ANW
56a028af5042db92b5ead641dc542fcb4533344e
46948d8d18a0639185dd4ffcffde126914991553
refs/heads/master
2020-03-27T00:22:49.409109
2018-10-27T06:37:04
2018-10-27T06:37:04
145,618,125
2
0
null
null
null
null
UTF-8
Python
false
false
7,603
py
# --------------------------------------------------------------------------- # Armada Net Wars (ANW) # configinfo.py # Written by Chris Lewis # --------------------------------------------------------------------------- # This panel Displays User Config information # ---------------------------------------------------...
[ "colshag@gmail.com" ]
colshag@gmail.com
4b0e4be71217535a3b023b8cd57fa3de00fa5b98
a4440a990b86a239a30b4295661ca588db3f5928
/src/knn/digital_recognition.py
5411be618eb5bc4fae3f1b70b129b3cbdb7ead0f
[]
no_license
YangXinNewlife/MachineLearning
fdaa1f75b90c143165d457b645d3c13fee7ea9a1
196ebdc881b74c746f63768b7ba31fec65e462d5
refs/heads/master
2020-04-05T00:10:25.050507
2019-06-10T03:44:33
2019-06-10T03:44:33
156,386,186
0
0
null
null
null
null
UTF-8
Python
false
false
4,377
py
# -*- coding:utf-8 -*- __author__ = 'yangxin_ryan' from numpy import * from os import listdir from collections import Counter import operator """ 图片的输入为 32 * 32的转换为 1 * 1024的向量 """ class DigitalRecognition(object): def __init__(self): print("Welcome, 手写数字识别算法!") """ 1.距离计算 tile生成和训练样本对应的矩阵,并...
[ "yangxin03@youxin.com" ]
yangxin03@youxin.com
c6beb75082885391bc95b1891a36e80e937a4666
642151dff23fff48310139ddc9b89c8bf6a670e3
/app/base/routes.py
14e706ea47230919be667a314346e7ccf0af73e5
[]
no_license
gemicn/flask-navigation
7ad371e0ac8220c14687f02b130707bf89c81553
382940492ca6cae41da44d30fb78c9535e8de955
refs/heads/master
2022-09-03T22:51:41.920901
2020-05-26T01:37:26
2020-05-26T01:37:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
from bcrypt import checkpw from flask import jsonify, render_template, redirect, request, url_for from app.base import blueprint @blueprint.route('/') def route_default(): return redirect(url_for('nav_blueprint.index'))
[ "ntuwang@126.com" ]
ntuwang@126.com
22673e5c1820b8646b55bf630652d58b49177ef8
bbf025a5f8596e5513bd723dc78aa36c46e2c51b
/dfs + tree/100 sameTree.py
41ecd7912ef4878879d74277903c001435c1f6a2
[]
no_license
AlanFermat/leetcode
6209bb5cf2d1b19e3fe7b619e1230f75bb0152ab
cacba4abaca9c4bad8e8d12526336115067dc6a0
refs/heads/master
2021-07-11T04:00:00.594820
2020-06-22T21:31:02
2020-06-22T21:31:02
142,341,558
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
from binaryTree import Node t1 = Node(1) t1.left = Node(2) t1.right = Node(3) t2 = Node(1) t2.left = Node(2) t2.right = Node(3) def treeToList(t): if t == None: return [] result = [t.val] return result + treeToList(t.left) + treeToList(t.right) def isSameTree(t,s): t_list = treeToList(t) s_list = treeToList...
[ "zy19@rice.edu" ]
zy19@rice.edu
336c31fca80c5b1edd2c0ae1909608af55e7d349
61d22eef5483a046b418a295d2ffa22857a296e1
/swtest/1952.py
0a3cb502106980c8bed236da21232f446e6783fd
[]
no_license
seoul-ssafy-class-2-studyclub/hyeonhwa
7ad680a67ba253eece07a9605a3b983f98a8cca3
e51163b3135cf529d295bc0d527c98b642f8c367
refs/heads/master
2021-10-06T12:57:44.046963
2021-10-02T09:42:55
2021-10-02T09:42:55
198,594,633
1
0
null
null
null
null
UTF-8
Python
false
false
465
py
import sys sys.stdin = open('input4.txt', 'r') T = int(input()) for t in range(T): money = list(map(int, input().split())) plan = list(map(int, input().split())) dp = [0] * 12 dp[0] = min(money[0]*plan[0], money[1]) for i in range(1, 12): dp[i] = min(dp[i-1]+money[0]*plan[i], dp[i-1]+money[...
[ "h3652k@gmail.com" ]
h3652k@gmail.com
f79dd2dab6a9e5e06232020fc812c26b78740da4
a50e906945260351f43d57e014081bcdef5b65a4
/collections/ansible_collections/fortinet/fortios/plugins/modules/fortios_test_autod.py
ba72e9dc091a5fba49d6174bde73f232cf0ec22c
[]
no_license
alhamdubello/evpn-ipsec-dci-ansible
210cb31f4710bb55dc6d2443a590f3eb65545cf5
2dcc7c915167cd3b25ef3651f2119d54a18efdff
refs/heads/main
2023-06-08T10:42:35.939341
2021-06-28T09:52:45
2021-06-28T09:52:45
380,860,067
0
0
null
null
null
null
UTF-8
Python
false
false
7,724
py
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # 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 th...
[ "a.u.bello@bham.ac.uk" ]
a.u.bello@bham.ac.uk
6ec54bc427e38fff5352b9d4a525b5c7b1bbc069
214ea3873f451940c73c4fb02981b08c8161b23c
/Array/range-addition.py
8617f93a5c2256d727dd8742f68e760606d4d616
[]
no_license
Tiierr/LeetCode-Python
4a086a76a6d3780140e47246304d11c520548396
e8532b63fc5bb6ceebe30a9c53ab3a2b4b2a75a3
refs/heads/master
2021-06-14T04:36:57.394115
2017-03-07T06:46:39
2017-03-07T06:46:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
# Time: O(k + n) # Space: O(1) # # Assume you have an array of length n initialized with # all 0's and are given k update operations. # # Each operation is represented as a triplet: # [startIndex, endIndex, inc] which increments each element of subarray # A[startIndex ... endIndex] (startIndex and endIndex inclusive) ...
[ "rayyu03@163.com" ]
rayyu03@163.com
a0641d0c62f8c6e39c81e1f9266c4710026b35aa
f3a7b2b71af1ca16e87fcc2c6063670d056f59c6
/libs/configs_old/MLT/gwd/cfgs_res101_mlt_v1.py
d7bff74ce9ce7235a49aac2edc2032e4000f6281
[ "Apache-2.0" ]
permissive
DLPerf/RotationDetection
3af165ab00ea6d034774a7289a375b90e4079df4
c5d3e604ace76d7996bc461920854b2c79d8c023
refs/heads/main
2023-07-16T06:01:42.496723
2021-08-28T03:17:39
2021-08-28T03:17:39
400,690,285
0
0
Apache-2.0
2021-08-28T03:16:55
2021-08-28T03:16:55
null
UTF-8
Python
false
false
3,449
py
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import os import tensorflow as tf import math from dataloader.pretrained_weights.pretrain_zoo import PretrainModelZoo """ FLOPs: 737874381; Trainable params: 51265150 trainval/test + sqrt tau=2 """ # ------------------------...
[ "yangxue0827@126.com" ]
yangxue0827@126.com
f942e1aeb559fdac152b1e65d28e59acc2f85863
7d172bc83bc61768a09cc97746715b8ec0e13ced
/catalog/migrations/0003_saleorder.py
65f1ca2bf38a92aa7ef0c747114f6b61e4a61de3
[]
no_license
shivam1111/jjuice
a3bcd7ee0ae6647056bdc62ff000ce6e6af27594
6a2669795ed4bb4495fda7869eeb221ed6535582
refs/heads/master
2020-04-12T05:01:27.981792
2018-11-08T13:00:49
2018-11-08T13:00:49
81,114,622
2
0
null
null
null
null
UTF-8
Python
false
false
668
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-03-30 07:24 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0002_s3object'), ] operations = [ migrations.CreateModel( ...
[ "shivam1111@gmail.com" ]
shivam1111@gmail.com
370bdedfa4af55d99c1d4c1db116c26d97c39037
aea96aa406250c3a2a8f2799e6cbbad256c262c3
/EG/reduce_str_float.py
f08662bdfd724cd99ca78245308d53339a3013ec
[]
no_license
xiaochuanjiejie/python_exercise
cb0ffaa4b7c961c8ca9847526c84ee6ba261620c
710fa85fd2d7a17994081bdc5f8b5ff66b77416e
refs/heads/master
2021-01-21T16:18:04.640093
2017-08-11T10:02:49
2017-08-11T10:02:49
95,403,650
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
#coding: utf-8 import math from functools import reduce s = '1234.5678' index = s.index('.') n = len(s) - 1 - index s = s.replace('.','') print s def chr2num(s): return {'0':0,'1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9}[s] print map(chr2num,s) lst = map(chr2num,s) # lst = list(map(chr2num,s)) # print...
[ "xiaochuanjiejie@gmail.com" ]
xiaochuanjiejie@gmail.com
50fa25dc930404d0d7198078e8b171b750953f5c
ca5c5becd8b57b4d77af3aa776b3c478ca962bf0
/src/main/ODR_MC/branches/v3/upFun.py
28e5d2a45a215fc146e7f361050eb44ad40d186e
[]
no_license
gerritholl/Harmonisation
42118c46d093115ddd87fca094a9ac8881aede71
31b8bd5a0da8c6fc4a31453cf7801fcca25d4951
refs/heads/master
2021-09-07T03:07:03.843117
2017-12-18T13:57:38
2017-12-18T13:57:38
110,711,229
0
0
null
2017-11-14T15:53:19
2017-11-14T15:53:19
null
UTF-8
Python
false
false
4,966
py
""" FIDUCEO FCDR harmonisation Author: Arta Dilo / NPL MM Date created: 09-01-2017 Last update: 17-01-2017 Functions for propagating uncertainty to the calibrated radiance: - function to calculate first derivatives to measurement eq. variables, - and first derivatives to calibration coefficients;...
[ "seh2@eoserver.npl.co.uk" ]
seh2@eoserver.npl.co.uk
e3715d7cbdd7977bd57b89bffe7e1c7374827eb2
40fc1d38f2d4b643bc99df347c4ff3a763ba65e3
/arcade/space_shooter/setup.py
899a87123f997e3c1122f83ff3f7a77fa541a2a7
[ "LicenseRef-scancode-public-domain", "MIT", "CC-BY-4.0", "CC-BY-3.0" ]
permissive
alecordev/pygaming
0be4b7a1c9e7922c63ce4cc369cd893bfef7b03c
35e479b703acf038f47c2151b3759ad852781e4c
refs/heads/master
2023-05-14T05:03:28.484678
2021-06-03T10:11:08
2021-06-03T10:11:08
372,768,733
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
import sys from cx_Freeze import setup, Executable import os # Dependencies are automatically detected, but it might need fine tuning. build_exe_options = {"packages": ["os", "pygame"]} # GUI applications require a different base on Windows (the default is for a # console application). base = None if sys.platform == ...
[ "alecor.dev@gmail.com" ]
alecor.dev@gmail.com
8904beb072f5f0d6c02deb340ad9e1bde96aa958
6509c398816baffafa4a1fcfb2855e1bc9d1609b
/sistema-operacional/diretorios/pathlib/exemplos/pathlib-4.py
7986086bea5a528b646fbaa9b9c5e9fc10c68789
[]
no_license
marcoswebermw/learning-python
6b0dfa81a0d085f4275865dce089d9b53b494aa5
931ed2985b8a3fec1a48c660c089e290aaac123d
refs/heads/master
2021-10-27T21:19:46.013020
2019-04-19T23:25:46
2019-04-19T23:25:46
87,670,464
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
# Listando só os arquivos de um diretório. from pathlib import Path diretorio = Path('.') [print(x) for x in diretorio.iterdir() if x.is_file()]
[ "marcoswebermw@gmail.com" ]
marcoswebermw@gmail.com
ce3eb9f306532e3d901fc2acb81877bb8a80fbde
b70f00927b9ed862252ad7345ca39f9d44ae87a2
/exec -l /bin/bash/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/filestore/operations/flags.py
a2422ffca4165e41c34c82b6d85667ae3393cac0
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
sparramore/Art-Roulette
7654dedad6e9423dfc31bd0f807570b07a17a8fc
c897c9ec66c27ccab16f1a12213d09fe982d4a95
refs/heads/master
2021-07-06T13:04:22.141681
2018-07-12T23:30:13
2018-07-12T23:30:13
139,061,941
0
2
null
2020-07-25T11:32:11
2018-06-28T19:49:24
Python
UTF-8
Python
false
false
1,156
py
# Copyright 2017 Google Inc. 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 applicable law or ag...
[ "djinnie24@gmail.com" ]
djinnie24@gmail.com
7df867c895807b675e26661a7c94fcedf8969c23
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/operationalinsights/v20200301preview/get_linked_storage_account.py
c615084e822e9a1b8d05805b45a7c7b14a8e0d07
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
4,552
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
[ "noreply@github.com" ]
morrell.noreply@github.com
4365938a5db92558c7c18ea93d358dfe9ffed5bd
0b0d3246d39974cb8faff7d269da2d539415afab
/problem_python/p49.py
88e5b7863a391d3d438604eab2bbd0cc41c6c173
[]
no_license
xionghhcs/leetcode
972e7ae4ca56b7100223630b294b5a97ba5dd7e8
8bd43dcd995a9de0270b8cea2d9a48df17ffc08b
refs/heads/master
2020-03-07T17:18:08.465559
2019-09-29T11:11:26
2019-09-29T11:11:26
127,607,564
1
0
null
null
null
null
UTF-8
Python
false
false
535
py
class Solution: def groupAnagrams(self, strs): import copy strs_cp = copy.deepcopy(strs) for i, item in enumerate(strs_cp): item = list(item) item.sort() item = ''.join(item) strs_cp[i] = item table = dict() for i, item in enume...
[ "xionghhcs@163.com" ]
xionghhcs@163.com
6036b4e9fe5bce86b786985656d485851ebc000e
78918441c6735b75adcdf20380e5b6431891b21f
/api/views.py
7db0c4896ac2f5194e3116b1611b1bf43493ac47
[]
no_license
dede-20191130/PracticeDjango_2
eba40532d5ce8bd4fd13fbd15d94f31942111cfa
23593c0fa4c4dff04bd76583e8176e600ca69014
refs/heads/master
2020-12-23T14:23:08.039363
2020-02-27T12:16:00
2020-02-27T12:16:00
237,176,619
0
0
null
null
null
null
UTF-8
Python
false
false
1,502
py
import json from collections import OrderedDict from django.http import HttpResponse from mybook.models import Book def render_json_response(request, data, status=None): """response を JSON で返却""" json_str = json.dumps(data, ensure_ascii=False, indent=2) callback = request.GET.get('callback') if not c...
[ "1044adad@gmail.com" ]
1044adad@gmail.com
3dba9cc472654cbd43ec5366ccd01fa7bd6f03de
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/travelport/models/type_start_end_time.py
9a4b3e1df4ef31fe8155d79f3f8f6c17d3a73f86
[]
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
1,920
py
from __future__ import annotations from dataclasses import dataclass, field __NAMESPACE__ = "http://www.travelport.com/schema/vehicle_v52_0" @dataclass class TypeStartEndTime: """ Used to specify earliest and latest pickup/dropoff times for a vehicle. Parameters ---------- time The time ...
[ "chris@komposta.net" ]
chris@komposta.net
7a57b9d8fc4353b0116d5eb59291d529fd673296
91e98f30ab87f13cbd533c276e24690912690b35
/BlaineFry/Phys_707_Model_Selection_v2.py
a908f6a9aff841b250489f5e5527751582a51e48
[]
no_license
ladosamushia/PHYS707
a5a3f4954746722a3c7e530730a7cbd01caeb5f4
968e143022d49bfe477590b38e40184e3affed02
refs/heads/master
2020-07-20T06:38:42.914658
2019-12-23T12:27:43
2019-12-23T12:27:43
206,591,395
1
4
null
null
null
null
UTF-8
Python
false
false
3,413
py
# -*- coding: utf-8 -*- """ Created on Tue Oct 22 09:52:28 2019 @author: Blaine Fry """ # import packages import numpy as np from numpy import random as rand from matplotlib import pyplot as plt #%% generate some data Npoints = 50 mu_0 = 1.0 sigma_0 = 1.0 data = rand.normal(loc=mu_0,scale=sigma_0,size=...
[ "noreply@github.com" ]
ladosamushia.noreply@github.com
4fed593d5f025735e0ad7e586d3fa993077381f3
5e5252812e67393a75830b313cd0d746c912123b
/python/Calculating with Functions.py
5da5ee3fd6e14cf8e4c65e409919b2cbc840f9a6
[]
no_license
Konohayui/Codewars
20dfc6b147d2afd68172d5f5824b6c8c8dfa05f1
97291462e7b2e42e437355fb676e9152013a5e3a
refs/heads/master
2021-10-19T18:07:26.973873
2019-02-22T22:52:33
2019-02-22T22:52:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
''' Modified Xueyimei's solution for better understanding ''' def zero(f = None): if not f: print("first 0") return 0 else: print("second 0") return f(0) def one(f = None): if not f: print("first 1") return 1 else: print("second 1") retur...
[ "noreply@github.com" ]
Konohayui.noreply@github.com
b55a5033285fe85e350014f77edb19070e901038
947acace352c4b2e719e94600f7447d1382adfe2
/env/Scripts/painter.py
3b388efab78cf5cdae0a57d979b2692a59b44692
[]
no_license
skconan/autoPlayAtariBreakout
ac9de1ef3342e81b57519fe588eb88e9bb6c6695
3a7167f31d810951b099c30bfceed0da6dcdf12f
refs/heads/master
2022-12-21T15:21:44.552250
2017-10-10T08:54:18
2017-10-10T08:54:18
106,190,698
2
2
null
2022-12-11T06:28:01
2017-10-08T16:18:04
Python
UTF-8
Python
false
false
2,215
py
#!c:\users\skconan\desktop\พี่สอนน้อง\env\scripts\python.exe # # The Python Imaging Library # $Id$ # # this demo script illustrates pasting into an already displayed # photoimage. note that the current version of Tk updates the whole # image every time we paste, so to get decent performance, we split # the image into ...
[ "supakit.kr@gmail.com" ]
supakit.kr@gmail.com
b8057bfd90277d7f954e3713e2198773a6ce19d8
78ade3f3f334593e601ea78c1e6fd8575f0fe86b
/tfx/examples/chicago_taxi_pipeline/taxi_utils_test.py
466676a43ebd5b80bfdecd3f72a58490953f907b
[ "Apache-2.0" ]
permissive
rmothukuru/tfx
82725e20a7d71265f791122ec3ec5d7708443761
f46de4be29e96c123e33f90245dc5021d18f8294
refs/heads/master
2023-01-11T08:50:20.552722
2020-11-06T11:11:47
2020-11-06T11:11:47
279,754,672
1
1
Apache-2.0
2020-07-15T03:37:39
2020-07-15T03:37:39
null
UTF-8
Python
false
false
7,554
py
# Lint as: python2, python3 # Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
[ "tensorflow-extended-team@google.com" ]
tensorflow-extended-team@google.com
d3f7e5a38010e610526dfe18104e43a8f58375e6
c4ecc70400f3c4375dd4b2335673137dd36b72b4
/venv/lib/python3.6/site-packages/xero_python/accounting/models/contact_groups.py
44c5b00b3e94d4523d3baf225c292a9d849de367
[ "MIT" ]
permissive
TippyFlitsUK/FarmXero
1bb3496d164d66c940bd3012e36e1763990ff30d
881b1e6648e927631b276e66a4c5287e4de2cbc1
refs/heads/main
2023-07-05T14:49:57.186130
2021-08-19T19:33:48
2021-08-19T19:33:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,766
py
# coding: utf-8 """ Accounting API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel clas...
[ "ben.norquay@gmail.com" ]
ben.norquay@gmail.com
d1a3312fd06cdd1c33319651970db66ccf6feaff
844501294ca37f1859b9aa0a258e6dd6b1bf2349
/snipe/__init__.py
ed31be10c2f86531161797372795b4dd3a2ba4bb
[ "MIT", "BSD-2-Clause" ]
permissive
1ts-org/snipe
2ac1719bc8f6b3b158c04536464f866c34051253
ad84a629e9084f161e0fcf811dc86ba54aaf9e2b
refs/heads/master
2021-06-04T22:32:36.038607
2020-03-27T05:18:36
2020-04-05T21:50:42
18,642,653
6
3
NOASSERTION
2019-10-08T02:02:50
2014-04-10T16:01:32
Python
UTF-8
Python
false
false
1,377
py
# -*- encoding: utf-8 -*- # Copyright © 2014 the Snipe contributors # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice...
[ "kcr@1ts.org" ]
kcr@1ts.org
7b47974d7c6dff9d2d526ea771620b522c940bca
5f4da925312f9ad4b4de36e7d1861031d3f03731
/app.py
964943b9a931d3e43f46b67109b0c953a4cb9dad
[]
no_license
geofferyj/PROJECT1
1b1c0cad5c3766589af8291b0c2635d15cfd599d
89cdfe42e27c3176dbdce79654d1161013e041cf
refs/heads/master
2021-01-01T12:28:51.167516
2020-03-02T15:59:41
2020-03-02T15:59:41
239,279,791
0
0
null
null
null
null
UTF-8
Python
false
false
6,679
py
import os, requests from functools import wraps from flask import Flask, session, redirect, render_template, url_for, request, flash, jsonify, make_response, abort from flask_session import Session from sqlalchemy import create_engine, exc from sqlalchemy.orm import scoped_session, sessionmaker app = Flask(__name__) ...
[ "geofferyjoseph1@gmail.com" ]
geofferyjoseph1@gmail.com
38c7b8ae0a1fe7c519e2cb5f2fca8b9894080414
bcc00e164c3d20b3c0ac1099741a71491af0e302
/.history/neotropical_datasetAPI_20191014144558.py
7ff867bf62e30070273816b13537d6b29785d50f
[]
no_license
manasa151/Toshokan
cff2af75c480bd629b49ce39c17857b316102e45
192c7eaf8523e38fa5821affdec91eb60ae5b7ce
refs/heads/master
2020-08-05T14:56:10.285024
2019-10-15T17:07:09
2019-10-15T17:07:09
212,586,868
0
0
null
null
null
null
UTF-8
Python
false
false
4,422
py
import csv from os import makedirs from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import Select from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import T...
[ "cornerstoneconnections@gmail.com" ]
cornerstoneconnections@gmail.com
fc9c235e3d4f8607eaf02246e0cb7385120abb75
17c280ade4159d4d8d5a48d16ba3989470eb3f46
/18/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisM4500_R_0-7.py
ae645a54658b7cd536c87077e75805da8681f2d2
[]
no_license
chengchen1993/run2_ntuple
798ff18489ff5185dadf3d1456a4462e1dbff429
c16c2b203c05a3eb77c769f63a0bcdf8b583708d
refs/heads/master
2021-06-25T18:27:08.534795
2021-03-15T06:08:01
2021-03-15T06:08:01
212,079,804
0
2
null
null
null
null
UTF-8
Python
false
false
2,201
py
from WMCore.Configuration import Configuration name = 'WWW' steam_dir = 'xulyu' config = Configuration() config.section_("General") config.General.requestName = 'M4500_R0-7_off' config.General.transferLogs = True config.section_("JobType") config.JobType.pluginName = 'Analysis' config.JobType.inputFiles = ['Autumn...
[ "c.chen@cern.ch" ]
c.chen@cern.ch
10d919ed0109a6401f4dd3ac01502930a7d4097e
80383bd5f39fd7eacff50f4b0fcc3c5e7c8329e0
/reddwarf/tests/api/instances_delete.py
9bef213d56cfc68c4ac1598aaffd3bb0d1ab7020
[]
no_license
imsplitbit/reddwarf
646409a2365459515b37f70445c0acb22610898d
2f50d9a12a390c6016aad6a612a14bd6c34b66fd
refs/heads/master
2020-05-19T15:45:26.733102
2013-01-08T21:37:10
2013-01-08T21:37:10
2,270,590
0
1
null
null
null
null
UTF-8
Python
false
false
4,257
py
import time from proboscis import after_class from proboscis import before_class from proboscis import test from proboscis.asserts import * from proboscis.decorators import time_out from reddwarfclient import exceptions from reddwarf.tests.util import create_dbaas_client from reddwarf.tests.util import poll_until fro...
[ "tim.simpson@rackspace.com" ]
tim.simpson@rackspace.com
d6f9aae369f645e06dd5a81e0da92deb03d22e25
350d6b7246d6ef8161bdfccfb565b8671cc4d701
/Insert Interval.py
fdec8d8c9a46850b59d3f652b43f6c85e069796d
[]
no_license
YihaoGuo2018/leetcode_python_2
145d5fbe7711c51752b2ab47a057b37071d2fbf7
2065355198fd882ab90bac6041c1d92d1aff5c65
refs/heads/main
2023-02-14T14:25:58.457991
2021-01-14T15:57:10
2021-01-14T15:57:10
329,661,893
0
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
class Solution: def insert(self, intervals: 'List[Interval]', newInterval: 'Interval') -> 'List[Interval]': # init data new_start, new_end = newInterval idx, n = 0, len(intervals) output = [] # add all intervals starting before newInterval while idx < n and new_start...
[ "yihao_guo@gwmail.gwu.edu" ]
yihao_guo@gwmail.gwu.edu
139a215386fd73c93520824d0d8e1a4d7e908698
7dbbde919349fdc3651eff1a7be744aed25eea30
/scripts/multiprocessing_example.py
13f78ecf32de52baab2847baa7991b1bf9d173e0
[]
no_license
adrn/scicoder-notebooks
06ca10a12c4f89a5c2e4062c70b6e4eb3bc0b1b0
7c8a5850200c3fb78aca1c336af7ed47ad52c52a
refs/heads/master
2021-03-12T21:37:39.597404
2013-07-08T04:37:23
2013-07-08T04:37:23
11,226,565
1
1
null
null
null
null
UTF-8
Python
false
false
662
py
# coding: utf-8 """ Demonstration of the built-in multiprocessing package """ from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import multiprocessing # Define a 'task' or 'worker' function -- something function that you # need to call over and over ...
[ "adrian.prw@gmail.com" ]
adrian.prw@gmail.com
5a41960a55928dd63bb70c8a7008554e17a3496e
fa04e703556632fb6f513181070a496294b4f0dd
/patchnotifyer.py
e9804345e8e3f1936beb087a831e11a4efd27754
[]
no_license
mhagander/patchnotifyer
a377d741c3837cbe6e5c8026ceced9a0a4b4c056
14c9b1d14780460645807227176db01aeef18267
refs/heads/master
2021-01-11T15:01:35.217795
2017-01-31T10:03:56
2017-01-31T10:03:56
80,282,835
0
0
null
null
null
null
UTF-8
Python
false
false
2,583
py
#!/usr/bin/env python3 import argparse from io import StringIO import socket import smtplib from email.mime.text import MIMEText import apt_pkg class _DevNullProgress(object): # Need this class to make the apt output not go to the console def update(self, percent = None): pass def done(self, ite...
[ "magnus@hagander.net" ]
magnus@hagander.net
eb86c5d2bcdc85721b23e67fb5747812f0c969e5
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/providerhub/v20201120/get_skus_nested_resource_type_first.py
48f43b29f82376eb8e0e141895212a4bf923acac
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,018
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
[ "noreply@github.com" ]
MisinformedDNA.noreply@github.com
147eabb86c23fd8281b4ba09190388f7a3989371
549afd4c4c5c9b401a2643210d6a4d75b7aaa308
/src/optlang_operations.py
17e0c0f49974128cd21393d536cc7587fb94db62
[]
no_license
OGalOz/FBA_Learn_Python
ff6c4ab5335b8f0cbfead5dc8da7392429503235
2df9b6fd128db8af1f97f6d12e9ab34ec5268a49
refs/heads/master
2023-05-27T03:06:27.671342
2019-10-07T18:19:34
2019-10-07T18:19:34
210,938,075
0
2
null
2019-10-03T21:48:04
2019-09-25T20:49:44
Python
UTF-8
Python
false
false
2,749
py
# In this file we make use of optlang # More info here: https://optlang.readthedocs.io/en/latest/ from optlang import Model, Variable, Constraint, Objective # You can declare the symbolic variables here with upper and lower bounds: ''' x1 = Variable('x1', lb=0, ub = 100) ''' #S is the stoichiomatrix as passed in ...
[ "ogaloz@lbl.gov" ]
ogaloz@lbl.gov
1f72205dad514935455fd3be194807f4ebba7730
7a10bf8748c7ce9c24c5461c21b5ebf420f18109
/ml_training/PythonCode/P4_Pandas_Basics.py
76770dbb25d18994fa84bd5163e320d499c538b4
[]
no_license
VishalChak/machine_learning
aced4b4bf65bbbd08c966a2f028f217a918186d5
c6e29abe0509a43713f35ebf53da29cd1f0314c1
refs/heads/master
2021-06-15T07:13:56.583097
2019-10-05T06:01:58
2019-10-05T06:01:58
133,164,656
0
0
null
null
null
null
UTF-8
Python
false
false
3,051
py
# Import Library import pandas as pd # Read data from a url url = "https://vincentarelbundock.github.io/Rdatasets/csv/datasets/HairEyeColor.csv" df = pd.read_csv(url) # Type of the df object type(df) # Column names list(df) # Show first few rows df.head() # Show last few rows df.tail() # Data...
[ "vishalbabu.in@gmail.com" ]
vishalbabu.in@gmail.com
d332b3dd09b91c5e952ba6af93587d2050fea535
f20d9ff8aafb8ef2d3e4a14b1d055be7c1a1e0db
/create_database.py
1c4848520b8d61043baad8f24786a792f0988323
[]
no_license
HopeCheung/menu_api
25fee2d807e86245bc547c753a8bc156d99b9962
bfb410bfe5cd686e237f937f64bac198e178c75e
refs/heads/master
2020-05-09T20:59:49.467719
2019-04-15T17:42:24
2019-04-15T17:42:24
181,426,747
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
import os import sqlite3 conn = sqlite3.connect("menu.db") conn.execute('create table menu (id int, name varchar(20), item varchar(20))') cur = conn.cursor() cur.execute('insert into menu values(1, "Lunch Specials", "Chicken")') cur.execute('insert into menu values(2, "Dinner Specials", "Pork")') cur.execute('insert...
[ "568038810@qq.com" ]
568038810@qq.com
8543373d98c1f04b791fbc898524b98731cd31c2
490fad8eb8856c16b3d1d2e1ac3d00f5bd1280ba
/langsea/managers/category_manager.py
5e1600baac8d6797c904a7ef17ec7107403b641f
[ "MIT" ]
permissive
blancheta/langsea
ebd12b16ff1b36d4292f527ec58f23b93deecbe7
e268b43fb94e3234ac161f2e5d9600d51360e4b3
refs/heads/master
2020-12-25T14:14:49.029568
2016-08-20T16:31:00
2016-08-20T16:31:00
66,143,438
1
0
null
null
null
null
UTF-8
Python
false
false
591
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests from langsea.models.category import Category class CategoryManager: categories_api_url = 'http://www.langsea.org/api/categories/' def all(self): response = requests.get(self.categories_api_url) if response.ok: categories = [] for category_...
[ "alexandreblanchet44@gmail.com" ]
alexandreblanchet44@gmail.com
f8fb78b34913903cdd4e7dbecf2b63afad70b866
b19a1baf69d1f7ba05a02ace7dfcba15c8d47cfb
/my_random.py
1a36aadaabd3e30ae66d3858d940a5fa861897f8
[]
no_license
MarkHofstetter/20191018-wifi-python
20ed5de1cf28996902cecf7cd681d054e0d06739
7427b896783059a77c541e95df851a492ef5ebb9
refs/heads/master
2020-08-15T03:43:42.964992
2019-10-28T14:39:17
2019-10-28T14:39:17
215,275,139
2
2
null
null
null
null
UTF-8
Python
false
false
991
py
# kopfrechen # der benutzer bekommt 2 unterschiedliche zufallszahlen jeweils im Bereich 1 - 10 # die muss der Benutzer multiplizieren # und es wird ueberprueft ob die aufgabe richtig geloest wurde # zusatz # 10 verschiedene Aufgaben stellen und sich merken # wieviel richtig und falsch waren import random from util i...
[ "mark@hofstetter.at" ]
mark@hofstetter.at
4befe135006f88eaa43f75a4a79d805a6d066eaa
6188f8ef474da80c9e407e8040de877273f6ce20
/examples/docs_snippets/docs_snippets/guides/dagster/asset_tutorial/non_argument_deps.py
9d15421d4ee2978a194a43bb4d650ad0f3abb1eb
[ "Apache-2.0" ]
permissive
iKintosh/dagster
99f2a1211de1f3b52f8bcf895dafaf832b999de2
932a5ba35263deb7d223750f211c2ddfa71e6f48
refs/heads/master
2023-01-24T15:58:28.497042
2023-01-20T21:51:35
2023-01-20T21:51:35
276,410,978
1
0
Apache-2.0
2020-07-01T15:19:47
2020-07-01T15:13:56
null
UTF-8
Python
false
false
2,104
py
"""isort:skip_file""" import csv import requests from dagster import asset @asset def cereals(): response = requests.get("https://docs.dagster.io/assets/cereal.csv") lines = response.text.split("\n") return [row for row in csv.DictReader(lines)] @asset def nabisco_cereals(cereals): """Cereals manu...
[ "noreply@github.com" ]
iKintosh.noreply@github.com
36d309841dbe245ef49c789e87285f004a3dd0c7
169e75df163bb311198562d286d37aad14677101
/tensorflow/python/keras/_impl/keras/layers/gru_test.py
48e7e14f5ab73b534ab0d1c765ad2572b2930b2b
[ "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
7,280
py
# Copyright 2016 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...
[ "zylo117@hotmail.com" ]
zylo117@hotmail.com
fe6afb0a5ceacf91383ce734fe45b592f58f00f9
d05a59feee839a4af352b7ed2fd6cf10a288a3cb
/xlsxwriter/test/comparison/test_chart_axis30.py
9e4ec252d029acea26ddf0d4218712e6c3c78c56
[ "BSD-2-Clause-Views" ]
permissive
elessarelfstone/XlsxWriter
0d958afd593643f990373bd4d8a32bafc0966534
bb7b7881c7a93c89d6eaac25f12dda08d58d3046
refs/heads/master
2020-09-24T06:17:20.840848
2019-11-24T23:43:01
2019-11-24T23:43:01
225,685,272
1
0
NOASSERTION
2019-12-03T18:09:06
2019-12-03T18:09:05
null
UTF-8
Python
false
false
1,350
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
17155a2faf01fd4d1b8ef2bd64c48e450adac8c7
8aa04db29bae5e0391543349eb2c0f778c56ffae
/tensorflow/python/trackable/asset.py
c218f7240e4f29d6e95140050581981776c3b287
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
mansnils/tensorflow
ec1a840f8fca6742d6e54dcf7b00eae0180f4023
b0164f014fd4f1b5af2c7b578aa7687198c5d92e
refs/heads/master
2023-01-30T00:13:07.772844
2023-01-09T09:45:45
2023-01-09T09:49:49
226,075,754
1
0
Apache-2.0
2019-12-05T10:27:38
2019-12-05T10:27:37
null
UTF-8
Python
false
false
4,278
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...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
e86d67f32b9eade3829748ae16ebc5608042241f
f791462fb1286607d16459c1602d133f8d8c8b59
/test/test_distributions_mixture.py
a1ab093e65ea5c73f333d6fcd898c35cb3340e73
[ "Apache-2.0" ]
permissive
pyro-ppl/numpyro
b071ed2bd93be41bafc3da8764c9f5617f996d92
ca96eca8e8e1531e71ba559ef7a8ad3b4b68cbc2
refs/heads/master
2023-09-03T15:56:13.252692
2023-08-28T14:32:25
2023-08-28T14:32:25
170,580,540
1,941
219
Apache-2.0
2023-09-04T11:26:11
2019-02-13T21:13:59
Python
UTF-8
Python
false
false
5,161
py
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 import pytest import jax import jax.numpy as jnp import numpyro.distributions as dist rng_key = jax.random.PRNGKey(42) def get_normal(batch_shape): """Get parameterized Normal with given batch shape.""" loc = jnp.zeros(bat...
[ "noreply@github.com" ]
pyro-ppl.noreply@github.com
815c29c7ac315b39685f4cb97cfe0129b2f4b029
b2c0517a0421c32f6782d76e4df842875d6ffce5
/Algorithms/Dynamic Programming/121. Best Time to Buy and Sell Stock.py
ebf0f3692c9e7ba74f468b736b65e900ba63d3d1
[]
no_license
SuYuxi/yuxi
e875b1536dc4b363194d0bef7f9a5aecb5d6199a
45ad23a47592172101072a80a90de17772491e04
refs/heads/master
2022-10-04T21:29:42.017462
2022-09-30T04:00:48
2022-09-30T04:00:48
66,703,247
1
0
null
null
null
null
UTF-8
Python
false
false
1,053
py
#Forward class Solution(object): def maxProfit(self, prices): if(not prices): return 0 minP = prices[0] maxPro = 0 for i in prices: if(i <= minP): minP = i else: maxPro = max(maxPro, i-minP) return maxPro #Backward class Solution(o...
[ "soration2099@gmail.com" ]
soration2099@gmail.com
c174eeaece6b1b311b305f2b8e6aae548566a5fb
b314518eb3e33c872f880c4f80a0f3d0856cf9ee
/12_marks.py
bd31d77188a83adcb12a63ab0e53a8fd0675250c
[]
no_license
namntran/2021_python_principles
0ba48d2cb6ff32a4fefd0b13ae24d2376e17740e
bf33210f9b0e02dfefe7a9a008936e8f47d25149
refs/heads/main
2023-03-10T15:47:48.930202
2021-02-25T07:27:53
2021-02-25T07:27:53
330,814,436
0
0
null
null
null
null
UTF-8
Python
false
false
964
py
# 12_marks.py # Prompt for and read marks for a test unit a negative number is entered. # Print the number of marks entered and the average (arithmetic mean) of marks # Print the highest and lowest marks # use indefinite loop - while loop n = 0 total = 0.0 mark = float(input("Enter a mark: ")) #initialise variables t...
[ "namtran78@gmail.com" ]
namtran78@gmail.com
25a56b9668be160cc2d3f1113f3f44564b46c9fe
356151747d2a6c65429e48592385166ab48c334c
/backend/manager/threads/manage_chef/th_remove_chef_query.py
ea0d3f08d872c0edeeb0b8a88499869306d0296d
[]
no_license
therealrahulsahu/se_project
c82b2d9d467decd30a24388f66427c7805c23252
c9f9fd5594191ab7dce0504ca0ab3025aa26a0c1
refs/heads/master
2020-06-25T02:51:30.355677
2020-04-20T13:01:36
2020-04-20T13:01:36
199,175,627
0
0
null
null
null
null
UTF-8
Python
false
false
1,371
py
from PyQt5.QtCore import QThread, pyqtSignal class ThreadRemoveChefQuery(QThread): signal = pyqtSignal('PyQt_PyObject') def __init__(self, parent_class): super().__init__() self.output_list = [] self.parent_class = parent_class def run(self): in_name = r'(?i){}'.format(se...
[ "43601158+therealrahulsahu@users.noreply.github.com" ]
43601158+therealrahulsahu@users.noreply.github.com
858a53123632c2341a8d43156ec562807a7a9d52
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_205/ch139_2020_04_01_19_45_57_332549.py
850ba88067b364259c8a558e3cceaab56293684b
[]
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
158
py
def arcotangente(x,n): m = 3 i = 3 u = -1 z = x while (m<n): z += u*(x**m/i) u*=-1 m+=2 i+=2 return z
[ "you@example.com" ]
you@example.com
3216fe50f659f9555182cd6e9010327a99bc736c
50c2bf03543eff23ec2e88f086e33848b50b5c4f
/docs/links.py
7fb1ce92193eab8aaee889f6876ac192227aa78d
[]
no_license
CiscoTestAutomation/geniefiletransferutilslib
d06967476d78eafe1984a9991a57def25523ade7
9c32f121816d7d8f4a1fc4fc1b7c2fe0cf4e9449
refs/heads/master
2021-06-03T21:04:24.922438
2020-01-20T19:36:53
2020-01-20T19:36:53
131,624,514
3
0
null
null
null
null
UTF-8
Python
false
false
1,016
py
internal_links = {'pyats': ('%s://wwwin-pyats.cisco.com', 'pyATS'), 'devnet': ('%s://developer.cisco.com/', 'Cisco DevNet'), 'multiprotocolfileutilities': ('%s://wwwin-pyats.cisco.com/documentation/html/utilities/file_transfer_utilities.html', 'Multiprotocol File Transfer'), ...
[ "karmoham@cisco.com" ]
karmoham@cisco.com
221b36b5f091132763c293d1bd0373aa8ab7f2c8
7f80ea25908ce2eba6f6a72689f88c142319fe56
/backtracking/baekjoon/2580.py
6451fe1e80ba3457eba728de64bdc892abf909aa
[]
no_license
JUNGEEYOU/Algorithm-Problems
1b242ae3aec3005d4e449f8b6170a63d1acac60b
5e4a8a37254120c7c572b545d99006ebb512e151
refs/heads/main
2023-04-06T11:45:47.867171
2021-04-22T13:49:36
2021-04-22T13:49:36
353,240,130
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
import sys zero_list = [] arr = [] for i in range(9): x = list(map(int, sys.stdin.readline().split())) zero_list.extend([(i, j) for j in range(len(x)) if x[j] == 0]) arr.append(x) zero = len(zero_list) result = [] def dfs(): if len(result) == zero: return # 나의 가로, 나의 세로, 나의 사각형이 모두 합이 45 ...
[ "junge2u@naver.com" ]
junge2u@naver.com
6b3e19b3c633b7ce0aa72c220770ab72ab12a828
6a0589aa1a5f9071cbcee3f84452c880bf96c12d
/tests/conftest.py
1b5dcb8b25e52d3f3937e03f61d604e1bf155437
[ "MIT" ]
permissive
UWPCE-PythonCert/py220_extras
d3203e2fd44ee840d008fac9597a5b0c165e8cc7
57336429fb782c4901e7709c0275242e6af4264a
refs/heads/master
2020-12-01T23:42:58.660565
2020-03-11T02:44:18
2020-03-11T02:44:18
230,816,756
0
1
null
null
null
null
UTF-8
Python
false
false
236
py
# -*- coding: utf-8 -*- """ Dummy conftest.py for uw_py220_extras. If you don't know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html """ # import pytest
[ "akmiles@icloud.com" ]
akmiles@icloud.com
72f1f59bbbd15bb91ff2e22139d375f363c4fe26
e228abda54dc7ab992ba634997b0d21b7200d091
/runtests.py
9efa69f957de2f6c612397fa92b4ccd7e605a565
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
AltSchool/dynamic-rest
3fd2456d72fdf84e75556bc0fea7303e496b7ec7
ed69e5af4ddf153e6eb304b7db80cc6adbf4d654
refs/heads/master
2023-09-06T01:57:47.555537
2023-03-27T16:15:22
2023-03-27T16:15:22
31,736,312
812
131
MIT
2023-05-28T09:15:45
2015-03-05T21:05:17
Python
UTF-8
Python
false
false
3,117
py
#! /usr/bin/env python # Adopted from Django REST Framework: # https://github.com/tomchristie/django-rest-framework/blob/master/runtests.py from __future__ import print_function import os import subprocess import sys import pytest APP_NAME = 'dynamic_rest' TESTS = 'tests' BENCHMARKS = 'benchmarks' PYTEST_ARGS = { ...
[ "alonetiev@gmail.com" ]
alonetiev@gmail.com
b8a648e695ffd41107411a2a06894c584e2e6f86
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/securityinsights/v20210301preview/get_dynamics365_data_connector.py
aab4cce733e30b9d124ff6383db6269c8390a7b0
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
5,892
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
morrell.noreply@github.com
286036647230c1f20766d06e3e4a66ddc5f011b7
2a1f4c4900693c093b2fcf4f84efa60650ef1424
/py/probe/functions/usb.py
01655565f4c286d2a11fe60aa67c5066b1325d29
[ "BSD-3-Clause" ]
permissive
bridder/factory
b925f494303728fa95017d1ba3ff40ac5cf6a2fd
a1b0fccd68987d8cd9c89710adc3c04b868347ec
refs/heads/master
2023-08-10T18:51:08.988858
2021-09-21T03:25:28
2021-09-21T03:25:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,148
py
# Copyright 2018 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import re from cros.factory.probe.functions import sysfs from cros.factory.probe.lib import cached_probe_function REQUIRED_FIELDS = ['idVendo...
[ "chrome-bot@chromium.org" ]
chrome-bot@chromium.org
202a88655b5c4915d28f86f89d310486eed37aa5
5667b69eee4b384e09625c1c65799a9785336b5b
/ivi/tektronix/tektronixMDO4104.py
4255a76b58b35d946e378bc805e59ee55b55848d
[ "MIT" ]
permissive
Diti24/python-ivi
ffae0aa38e7340fa142929541ded2148f41e8a9a
4bf570eeb370789404d5bae8a439b6bbdb57647e
refs/heads/master
2020-04-08T04:07:06.326253
2019-08-05T16:52:00
2019-08-05T16:52:00
60,081,649
0
1
null
2016-05-31T13:40:19
2016-05-31T10:51:47
Python
UTF-8
Python
false
false
1,640
py
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2016 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
dfeb29a64581f84d9e2ab512576acb3bf5fbf769
51aa2894c317f60726fe9a778999eb7851b6be3e
/140_gui/pyqt_pyside/examples/PyQt_PySide_book/002_Processing_of_signals_and_events/+21_Handling signal and slot/21_9_Using class QTimer.py
d3b27afda8a2731f5c7749a149ae85dd10462344
[]
no_license
pranaymate/Python_Topics
dd7b288ab0f5bbee71d57080179d6481aae17304
33d29e0a5bf4cde104f9c7f0693cf9897f3f2101
refs/heads/master
2022-04-25T19:04:31.337737
2020-04-26T00:36:03
2020-04-26T00:36:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,608
py
# -*- coding: utf-8 -*- from PyQt4 import QtCore, QtGui import time class MyWindow(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.setWindowTitle("Использование класса QTimer") self.resize(200, 100) self.label = QtGui.QLabel("") sel...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
f020b777a70bdb831c3655afbe4fb727539df1c7
96d31b21fbc196fe83d22ee0fdeb63ba2e58ac4e
/hdf.py
cddbf2eb30743a6d615a5e500d608a8854ec5b2a
[]
no_license
Sandy4321/analysis
7e0a392b9a9ac79fcefc5504e77303d4baa1b93a
ec2751eddbb5dd64c12d4386a86cda4515302419
refs/heads/master
2021-01-21T07:31:25.391005
2013-06-22T13:16:38
2013-06-22T13:16:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,266
py
import h5py import pandas import os def add_col(hdf, name, data, compression = 'lzf'): parts = name.split('/') dirpath = '/'.join(parts[:-1]) if len(dirpath) > 0 and dirpath not in hdf: hdf.create_group(dirpath) hdf.create_dataset(name, data=data, dtype=data.dtype, compression=compression,...
[ "alex.rubinsteyn@gmail.com" ]
alex.rubinsteyn@gmail.com
febab4b2955536ed556e53abca2fbc70e4387f08
f0604a3a32177e6baa0fad2c01766c3e99df3fe6
/courator/config.py
91678558386039d8d473ee9a055c685c75b9b02c
[ "MIT" ]
permissive
Courator/courator-backend
354390902ae6bc8faa17e47ef2c3596162423f52
726845a06c1be7693fd107bdf571ea40b7d398ec
refs/heads/master
2021-04-22T02:07:09.563157
2020-05-07T08:09:30
2020-05-07T08:09:30
249,842,057
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
import logging from databases import DatabaseURL from starlette.config import Config from starlette.datastructures import Secret from .logging import setup_logging config = Config(".env") DEBUG = config("DEBUG", cast=bool, default=False) DATABASE_URL: DatabaseURL = config("DB_CONNECTION", cast=DatabaseURL) SECRET_KE...
[ "matthew331199@gmail.com" ]
matthew331199@gmail.com
3a196c69b9f2abbd039544758aa0e5f4ffeb1fc0
7a1b88d06ea18772b065b43d775cec6dd2acdf80
/1620.py
af8268a37b2479d7b8eb091095dcf56bd0c39388
[]
no_license
skaurl/baekjoon-online-judge
28144cca45168e79b1ae0baa9a351f498f8d19ab
1620d298c2f429e03c5f9387d8aca13763f5c731
refs/heads/master
2023-07-26T10:07:29.724066
2021-09-07T09:21:02
2021-09-07T09:21:02
299,019,978
1
0
null
null
null
null
UTF-8
Python
false
false
326
py
import sys a,b = map(int,sys.stdin.readline().strip().split()) dict_1 = {} dict_2 = {} for i in range(a): name = sys.stdin.readline().strip() dict_1[name] = i+1 dict_2[i+1] = name for i in range(b): x = sys.stdin.readline().strip() try: print(dict_2[int(x)]) except: print(dict...
[ "dr_lunars@naver.com" ]
dr_lunars@naver.com
06df8306b20a7459428d2bec87c1891edbec67bc
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_95/1593.py
e3d0777f40977183a794b3eb8007eeb8c64e1509
[]
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
618
py
#!/usr/bin/env python mm = {'a': 'y', 'c': 'e', 'b': 'h', 'e': 'o', 'd': 's', 'g': 'v', 'f': 'c', 'i': 'd', 'h': 'x', 'k': 'i', 'j': 'u', 'm': 'l', 'l': 'g', 'o': 'k', 'n': 'b', 'p': 'r', 's': 'n', 'r': 't', 'u': 'j', 't': 'w', 'w': 'f', 'v': 'p', 'y': 'a', 'x': 'm', 'q': 'z','z':'q',' ': ' ','\n': ''} def str_tran(...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
f7b756861161b2a1d93f5522f0606c0fa0e8c1a9
09cd370cdae12eb45090033a00e9aae45ee26638
/STUDY/Graph Theory/18-43 어두운 길.py
ec19f71096e072352c9493057e1ec9be94080fd2
[]
no_license
KWONILCHEOL/Python
ee340f6328945651eb29d2b23c425a92c84a4adb
1ea5f5f74894a5929e0e894c5c12f049b8eb9fb4
refs/heads/main
2023-04-11T09:36:54.874638
2021-04-24T04:29:12
2021-04-24T04:29:12
328,658,511
0
0
null
null
null
null
UTF-8
Python
false
false
764
py
import sys input = sys.stdin.readline def find_parent(parent, x): while parent[x] != x: parent[x], x = parent[parent[x]], parent[x] return x def union_parent(parent, a, b): a = find_parent(parent, a) b = find_parent(parent, b) if a < b: parent[b] = a else: parent[a] = b...
[ "kwon6460@gmail.com" ]
kwon6460@gmail.com
87952ccd9a2eb59e81b8c92ef355b23f757f7304
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part004399.py
ecb633d07fd632fb4d5e0042ffa3c812f780ceff
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
2,364
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
41704a03c9c525e5742496757d48362c163126ef
26ae248d7f1ca16c51c4f34c1f67ef19be162a4e
/targAssign.py
5ac00997505f5b61d411830f332333dfd23ee9a2
[]
no_license
csayres/astro598
0d87373904da8419b90665fb84d747cf49830ef6
676b7ae9ae08fbeca48ded0c6f980892e907972f
refs/heads/master
2020-11-24T05:42:13.775053
2019-12-14T09:22:10
2019-12-14T09:22:10
227,990,176
0
0
null
null
null
null
UTF-8
Python
false
false
5,555
py
import time from multiprocessing import Pool, cpu_count import pickle import numpy import matplotlib.pyplot as plt from keras.models import Sequential, load_model from keras.layers import Dense from kaiju import RobotGrid, utils nHexDia = 7 xCoords, yCoords = utils.hexFromDia(nHexDia) nPositioners = len(xCoords) p...
[ "csayres@uw.edu" ]
csayres@uw.edu
63da4abf9140ef6028f7be93dad6d9462a3652ae
25ebc03b92df764ff0a6c70c14c2848a49fe1b0b
/daily/20200414/codes/output/code081.py
b7717f8dce6a21d9f95ef23b3b3ed26b31bdeef3
[]
no_license
podhmo/individual-sandbox
18db414fafd061568d0d5e993b8f8069867dfcfb
cafee43b4cf51a321f4e2c3f9949ac53eece4b15
refs/heads/master
2023-07-23T07:06:57.944539
2023-07-09T11:45:53
2023-07-09T11:45:53
61,940,197
6
0
null
2022-10-19T05:01:17
2016-06-25T11:27:04
Python
UTF-8
Python
false
false
200
py
import pygal chart = pygal.Line(stroke_style={'width': 5, 'dasharray': '3, 6', 'linecap': 'round', 'linejoin': 'round'}) chart.add('line', [.0002, .0005, .00035]) print(chart.render(is_unicode=True))
[ "ababjam61+github@gmail.com" ]
ababjam61+github@gmail.com
403f0e4f49753a0aec4176cc3333a60bd7a59334
55ab64b67d8abc02907eb43a54ff6c326ded6b72
/scripts/addon_library/local/uvpackmaster3/overlay.py
9f6fb0255008525ae59e25abc9636f43e1684ffc
[ "MIT" ]
permissive
Tilapiatsu/blender-custom_config
2f03b0bb234c3b098d2830732296d199c91147d0
00e14fc190ebff66cf50ff911f25cf5ad3529f8f
refs/heads/master
2023-08-16T14:26:39.990840
2023-08-16T01:32:41
2023-08-16T01:32:41
161,249,779
6
2
MIT
2023-04-12T05:33:59
2018-12-10T23:25:14
Python
UTF-8
Python
false
false
6,194
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ "tilapiatsu@hotmail.fr" ]
tilapiatsu@hotmail.fr
7a08037735251f82bbeb0a141dc986cc6be5b018
db9cc680a60997412eae035b257cc77efbcdcb06
/py3/leetcodeCN/tree/111. Minimum Depth of Binary Tree.py
32a79a0af7a51bccd7310bf7ea62463e9dd2d775
[]
no_license
Azson/machineLearning
9630b62c73b2388a57c630644dae3ffa8e4db236
35662ddf39d322009f074ce8981e5f5d27786819
refs/heads/master
2022-05-06T07:03:23.543355
2021-08-20T14:57:25
2021-08-20T14:57:25
179,935,258
3
3
null
2019-11-04T14:26:51
2019-04-07T08:07:08
Python
UTF-8
Python
false
false
482
py
#!/usr/bin/python # -*- coding: utf-8 -*- def minDepth(root): ls = [root] ans = 0 while len(ls) > 0: ans += 1 la = len(ls) for i in range(la): root = ls[i] if not (root.left and root.right): return ans+1 if root.left: ...
[ "240326315@qq.com" ]
240326315@qq.com
58efa655d1487cd5d3f26dbe92f3eb954bf9e877
ca42e62ce157095ace5fbaec0bf261a4fb13aa6a
/pyenv/lib/python3.6/site-packages/rest_framework/utils/serializer_helpers.py
4734332af888219ce4589dd089dcda9352ed0871
[ "Apache-2.0" ]
permissive
ronald-rgr/ai-chatbot-smartguide
58f1e7c76b00248923f5fe85f87c318b45e38836
c9c830feb6b66c2e362f8fb5d147ef0c4f4a08cf
refs/heads/master
2021-04-18T03:15:23.720397
2020-03-23T17:55:47
2020-03-23T17:55:47
249,500,344
0
0
Apache-2.0
2021-04-16T20:45:28
2020-03-23T17:35:37
Python
UTF-8
Python
false
false
4,617
py
from __future__ import unicode_literals import collections from collections import OrderedDict from django.utils.encoding import force_text from rest_framework.compat import unicode_to_repr class ReturnDict(OrderedDict): """ Return object from `serializer.data` for the `Serializer` class. Includes a ba...
[ "ronald.garcia@gmail.com" ]
ronald.garcia@gmail.com
febdaae751915967a6fef3b5f718c6b4c230ab89
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/008_graph_algorithms/_exercises/templates/Cracking Coding Interviews - Mastering Algorithms/clone-graph-bfs.py
08c345f3dc7c721c8efea80633a287a2e51fb103
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
1,084
py
# c_ Node # ___ - val neighbors # ? ? # ? ? # # # Example Input: # # # 1 <---> 2 # # ^ ^ # # | | # # v v # # 4 <---> 3 # # # Example Output: # # # 1 <---> 2 # # ^ ^ # # | | # # v v # # 4 <---> 3 # # ___ clone node # queue _ # LIST # # visited _ # DICT # # ?.ap.. ? # # ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
9e484b15c88d0bde693c3cc2535cf40b53bbc640
5a0122509b4e7e15e556460d261d9d8a1cee76ad
/repository/base/docattachments_pb.py
ddad9c7ef5a420750f8e46c2777173bcc3458696
[]
no_license
cash2one/BHWGoogleProject
cec4d5353f6ea83ecec0d0325747bed812283304
18ecee580e284705b642b88c8e9594535993fead
refs/heads/master
2020-12-25T20:42:08.612393
2013-04-13T14:01:37
2013-04-13T14:01:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,677
py
# This file automatically generated by protocol-compiler from repository/base/docattachments.proto # DO NOT EDIT! from google3.net.proto import ProtocolBuffer import array import thread from google3.net.proto import _net_proto___parse__python __pychecker__ = """maxreturns=0 maxbranches=0 no-callinit ...
[ "nojfouldshere@gmail.com" ]
nojfouldshere@gmail.com
6581711d6a4c030829ec7b03eb6558cac005f100
6bb4291e34598a83d1cd4631abd04ae00df5290b
/api/test/utils/test_utils.py
9b440e5c4479bc56943a720ec1d824546f1bb28c
[]
no_license
Frost-Lee/order_scheduling
f1f2e69bc142a81869f70697b79cb7f2664d6b2e
825456c1b9a95011fe3530a2fb449dffd40f5246
refs/heads/main
2023-01-12T12:27:45.182521
2020-11-16T06:06:13
2020-11-16T06:06:13
312,620,540
0
0
null
null
null
null
UTF-8
Python
false
false
659
py
import unittest from scheduler.utils import utils class TestUtils(unittest.TestCase): def test_aggregate_tuples(self): with self.assertRaisesRegex(AssertionError, 'index out of range'): utils.aggregate_tuples([('a', 'b', 1)], [2, 3], 0) utils.aggregate_tuples([('a', 'b', 1)], [1, ...
[ "canchen.lee@gmail.com" ]
canchen.lee@gmail.com
33c449dc19c9effe47b503bea32359f5b42fb142
f652cf4e0fa6fbfcca8d94cec5f942fd8bd021a0
/mbuild/__init__.py
bac5509ac8b9754a7fb64e88b372b76f045f4dc3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Jonestj1/mbuild
83317ab3a53f40ff6c9c69f6be542b8562602eee
411cc60d3ef496fa26541bb0b7ea8dcf8c7449e4
refs/heads/master
2021-01-20T19:45:11.563610
2017-02-13T18:16:12
2017-02-13T18:16:12
32,886,030
0
0
null
2015-03-25T19:24:50
2015-03-25T19:24:50
null
UTF-8
Python
false
false
339
py
from mbuild.box import Box from mbuild.coarse_graining import coarse_grain from mbuild.coordinate_transform import * from mbuild.compound import * from mbuild.pattern import * from mbuild.packing import * from mbuild.port import Port from mbuild.recipes import * from mbuild.formats import * from mbuild.versi...
[ "christoph.t.klein@me.com" ]
christoph.t.klein@me.com
ea8f72a37588594d3881ecbe62617f136c7c6869
a0c782c69420f513bd2d0c0fcea896f732b05cb2
/account_bank_statement_advanced/res_partner_bank.py
5f1063e39f9b4a98c855f959b4764797ab92eb80
[]
no_license
SVQTQ/noviat-apps
8b5116287681fabcefc5d456786c16c717de54ab
57ec751ccd4a3e32798ec8851c3501e809c09f91
refs/heads/8.0
2020-04-08T19:55:06.699350
2015-07-29T14:34:22
2015-07-29T14:34:22
32,148,042
0
0
null
2015-07-29T14:34:22
2015-03-13T09:45:48
Gettext Catalog
UTF-8
Python
false
false
3,843
py
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # # Copyright (c) 2014-2015 Noviat nv/sa (www.noviat.com). # # This program is free software: you can redistribute it and/or modify # it under the terms of th...
[ "luc.demeyer@noviat.com" ]
luc.demeyer@noviat.com
a80777a871d9539635a4e13543e35fe55d86461d
7f9a73533b3678f0e83dc559dee8a37474e2a289
/aws-serverless-for-deep-learning-first-steps-workshop/notebooks/deep-learning-inference/PIL/PixarImagePlugin.py
5ea32ba89be5253e3ad0e8349be1bdcb42bb2494
[ "MIT" ]
permissive
ryfeus/stepfunctions2processing
04a5e83ee9b74e029b79a3f19381ba6d9265fc48
0b74797402d39f4966cab278d9718bfaec3386c2
refs/heads/master
2022-10-08T16:20:55.459175
2022-09-09T05:54:47
2022-09-09T05:54:47
147,448,024
128
34
MIT
2022-01-04T18:56:47
2018-09-05T02:26:31
Python
UTF-8
Python
false
false
1,657
py
# # The Python Imaging Library. # $Id$ # # PIXAR raster support for PIL # # history: # 97-01-29 fl Created # # notes: # This is incomplete; it is based on a few samples created with # Photoshop 2.5 and 3.0, and a summary description provided by # Greg Coats <gcoats@labiris.er.usgs.gov>. Hop...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
cbb69a91ee6be1562c57094de5515967c74944d9
123d26781801473dc59d8be847dbac79d4b555df
/configs/swin/mask_rcnn_swin_tiny_patch4_window7_mstrain_480-800_adamw_3x_coco_fashion.py
8c91f897f95d7b08f2b9d121d6a71c791be11601
[ "Apache-2.0" ]
permissive
jireh-father/CBNetV2
c2ed5358a81dde7dff3b50614371afe6045553c0
0b62f8107d72691a02efb7c92fc6dfcf5d0d0262
refs/heads/main
2023-07-17T16:42:55.126767
2021-08-31T10:34:15
2021-08-31T10:34:15
398,468,051
0
0
Apache-2.0
2021-08-21T04:47:14
2021-08-21T04:47:14
null
UTF-8
Python
false
false
3,037
py
_base_ = [ '../_base_/models/mask_rcnn_swin_fpn_fashion.py', '../_base_/datasets/coco_instance_fashion.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] model = dict( backbone=dict( embed_dim=96, depths=[2, 2, 6, 2], num_heads=[3, 6, 12, 24], wi...
[ "seoilgun@gmail.com" ]
seoilgun@gmail.com
4b3aa7a1ee58238dd8a25b2a149447be16633036
64267b1f7ca193b0fab949089b86bc7a60e5b859
/slehome/manage.py
1cb83a303a492fa808560a2831d6104bd01a8931
[]
no_license
hongdangodori/slehome
6a9f2b4526c2783932627b982df0540762570bff
3e558c78c3943dadf0ec485738a0cc98dea64353
refs/heads/master
2021-01-17T12:00:34.221088
2015-02-06T13:44:00
2015-02-06T13:44:00
28,847,585
1
0
null
null
null
null
UTF-8
Python
false
false
250
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "slehome.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "chungdangogo@gmail.com" ]
chungdangogo@gmail.com
76ac2d60a69c2c9463da4ae6c4547c5b867dd6e8
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/topology_association.py
7832c4a1904ba784c50b3cf5aae97796eb260dd0
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
1,586
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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
e5c53766c994f5d150cd47187531f1339035c92b
065acd70109d206c4021954e68c960a631a6c5e3
/shot_detector/utils/collections/sliding_windows/__init__.py
dbbbfbf2e08e76dc001cf31e3d17b64c790ba048
[]
permissive
w495/python-video-shot-detector
bf2e3cc8175687c73cd01cf89441efc349f58d4d
617ff45c9c3c96bbd9a975aef15f1b2697282b9c
refs/heads/master
2022-12-12T02:29:24.771610
2017-05-15T00:38:22
2017-05-15T00:38:22
37,352,923
20
3
BSD-3-Clause
2022-11-22T01:15:45
2015-06-13T01:33:27
Python
UTF-8
Python
false
false
347
py
# -*- coding: utf8 -*- """ Different kinds of sliding windows """ from __future__ import absolute_import, division, print_function from .base_sliding_window import BaseSlidingWindow from .delayed_sliding_window import DelayedSlidingWindow from .repeated_sliding_window import RepeatedSlidingWindow from .sliding_w...
[ "w@w-495.ru" ]
w@w-495.ru
494209f5626eff8613f8403f2084829f49a30c87
1554150a9720ebf35cd11c746f69169b595dca10
/package_package/package/model/fuzzy_number.py
b64b535dfc851ec40ee6a38917dddbbf78b72a3a
[]
no_license
andrewili/shape-grammar-engine
37a809f8cf78b133f8f1c3f9cf13a7fbbb564713
2859d8021442542561bdd1387deebc85e26f2d03
refs/heads/master
2021-01-18T22:46:51.221257
2016-05-31T21:15:28
2016-05-31T21:15:28
14,129,359
1
0
null
null
null
null
UTF-8
Python
false
false
2,214
py
import numpy as np almost_equal = np.allclose class FuzzyNumber(object): def __init__(self, number_in): """Receives: number_in num """ method_name = '__init__' try: if not self._is_a_number(number_in): raise TypeError except Type...
[ "i@andrew.li" ]
i@andrew.li
a9297cfbbfe53a5bdce5b575f72cd5880abbafce
2154d0221e29a86850a1b83e4302f6e3e3f7fa5d
/thread_example/simple_thread_example.py
6f5917fe97dff2fcaaacbf683f71542762a6a5f6
[]
no_license
aaqqxx/simple_for_life
3b8805c6791da6a3a7f42c069dc1ee7d2b8d3649
9ad6d61a56216d04250cd89aeaeda63c11942d0a
refs/heads/master
2020-04-04T09:18:59.396540
2015-04-28T11:22:55
2015-04-28T11:22:55
20,906,518
1
0
null
null
null
null
UTF-8
Python
false
false
268
py
# coding:utf-8 #!/usr/bin/env python __author__ = 'XingHua' """ """ import time, thread def timer(): print('hello') def test(): for i in range(0, 10): thread.start_new_thread(timer, ()) if __name__ == '__main__': test() time.sleep(10)
[ "aaqqxx1910@gmail.com" ]
aaqqxx1910@gmail.com
3922747c24aeae6863311beb748f65358b035f73
62e58c051128baef9452e7e0eb0b5a83367add26
/edifact/D95A/DIRDEBD95AUN.py
5415a9c13741232f73c37ae3b49aa4c18660d498
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
4,507
py
#Generated by bots open source edi translator from UN-docs. from bots.botsconfig import * from edifact import syntax from recordsD95AUN import recorddefs structure = [ {ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGM', MIN: 1, MAX: 1}, {ID: 'DTM', MIN: 1, MAX: 1}, {ID: 'BUS', MIN: 0, MAX: 1}, {ID: 'RFF'...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
9f5061630659beed761f1e56fb5a1083b3bb3c3d
234c46d1249c9209f268417a19018afc12e378b4
/tests/modules/transformer/activation_layer_test.py
2af0338a92e9723143c9b963856628980b4971bc
[ "Apache-2.0" ]
permissive
allenai/allennlp
1f4bcddcb6f5ce60c7ef03a9a3cd6a38bdb987cf
80fb6061e568cb9d6ab5d45b661e86eb61b92c82
refs/heads/main
2023-07-07T11:43:33.781690
2022-11-22T00:42:46
2022-11-22T00:42:46
91,356,408
12,257
2,712
Apache-2.0
2022-11-22T00:42:47
2017-05-15T15:52:41
Python
UTF-8
Python
false
false
804
py
import torch import pytest from allennlp.common import Params from allennlp.modules.transformer import ActivationLayer @pytest.fixture def params_dict(): return { "hidden_size": 5, "intermediate_size": 3, "activation": "relu", } @pytest.fixture def params(params_dict): return Pa...
[ "noreply@github.com" ]
allenai.noreply@github.com
074aeca3d97502ed60c27a33d1803a45293f210c
c1ea75db1da4eaa485d39e9d8de480b6ed0ef40f
/app/api/app.py
bafb5b35fd82a3d3b5865aa651d5ecb12186e978
[ "Apache-2.0" ]
permissive
gasbarroni8/VideoCrawlerEngine
a4f092b0a851dc0487e4dcf4c98b62d6282a6180
994933d91d85bb87ae8dfba1295f7a69f6d50097
refs/heads/master
2023-04-06T07:59:29.269894
2021-02-10T16:09:15
2021-02-10T16:09:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,259
py
from fastapi import FastAPI from fastapi.staticfiles import StaticFiles from fastapi.responses import HTMLResponse from .routers import include_routers from app.helper.middleware import include_exception_handler from helper.conf import get_conf from .helper import read_html_file from app.helper.middleware.proxy import...
[ "zzsaim@163.com" ]
zzsaim@163.com
13a95e0835eddd0fa3db784494dd57177d13927b
8fcdcec1bf0f194d23bba4acd664166a04dc128f
/packages/grid_control_update.py
d21546c84a97777c2b4b0811e15519a89314cefb
[]
no_license
grid-control/grid-control
e51337dd7e5d158644a8da35923443fb0d232bfb
1f5295cd6114f3f18958be0e0618ff6b35aa16d7
refs/heads/master
2022-11-13T13:29:13.226512
2021-10-01T14:37:59
2021-10-01T14:37:59
13,805,261
32
30
null
2023-02-19T16:22:47
2013-10-23T14:39:28
Python
UTF-8
Python
false
false
1,227
py
#!/usr/bin/env python # | Copyright 2014-2017 Karlsruhe Institute of Technology # | # | 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 ...
[ "stober@cern.ch" ]
stober@cern.ch
0817e8833e06cdbb3dc7357bbdcedcc83fb04a46
73fcadae6177ab973f1aa3ffe874ac3fadb52312
/server/fta/utils/i18n.py
4f91cd88e9509cabeab6ce284564a7f4a93d9ea7
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSL-1.0", "Apache-2.0" ]
permissive
huang1125677925/fta
352cd587aaca3d3149516345559d420c41d1caf4
a50a3c498c39b14e7df4a0a960c2a1499b1ec6bb
refs/heads/master
2023-03-18T16:08:40.904716
2019-02-22T09:35:23
2019-02-22T09:35:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,745
py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
[ "mycyzs@163.com" ]
mycyzs@163.com
cef06aa93427891f9e1de15f76de7e4aa063276f
48ba8d0788e4ac7d4cacd7e7a2e2cf4f391c85ad
/Apple/rectangle_overlap.py
2fe9ccc6190a3b2c9e19a0c9399b0cd7700fb388
[]
no_license
rahulvshinde/Python_Playground
c28ac2dc0865e254caa5360c3bb97b4ff5f23b3a
7a03b765dd440654caba1e06af5b149f584e9f08
refs/heads/master
2023-04-19T17:25:55.993837
2021-05-17T01:15:30
2021-05-17T01:15:30
280,736,898
2
0
null
null
null
null
UTF-8
Python
false
false
886
py
""" A rectangle is represented as a list [x1, y1, x2, y2], where (x1, y1) are the coordinates of its bottom-left corner, and (x2, y2) are the coordinates of its top-right corner. Two rectangles overlap if the area of their intersection is positive. To be clear, two rectangles that only touch at the corner or edges do...
[ "r.shinde2007@gmail.com" ]
r.shinde2007@gmail.com
fdb935308c84e6e8df3718a147bb41f284314a06
5be8b0f2ee392abeee6970e7a6364ac9a5b8ceaa
/xiaojian/forth_phase/Django./day03/exersice/exersice/wsgi.py
3d56e7a2957ad8662abfa9118725486dff7fda08
[]
no_license
Wellsjian/20180826
424b65f828f0174e4d568131da01dafc2a36050a
0156ad4db891a2c4b06711748d2624080578620c
refs/heads/master
2021-06-18T12:16:08.466177
2019-09-01T10:06:44
2019-09-01T10:06:44
204,462,572
0
1
null
2021-04-20T18:26:03
2019-08-26T11:38:09
JavaScript
UTF-8
Python
false
false
394
py
""" WSGI config for exersice project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
[ "1149158963@qq.com" ]
1149158963@qq.com
8bbb7896a9faa5e12fd9ed8815e374e5c0f9b90b
61afe17201589a61c39429602ca11e3fdacf47a9
/Chapter3/Day19/12.异常细分(了解).py
53a37128647faf14441789776924fc9aa2b738f8
[]
no_license
Liunrestrained/Python-
ec09315c50b395497dd9b0f83219fef6355e9b21
6b2cb4ae74c59820c6eabc4b0e98961ef3b941b2
refs/heads/main
2023-07-17T14:16:12.084304
2021-08-28T14:05:12
2021-08-28T14:05:12
399,408,426
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
import requests from requests import exceptions while True: url = input("下载链接") try: res = requests.get(url=url) print(res) except exceptions.MissingSchema as e: # 细分处理 print("URL架构不存在") except exceptions.InvalidSchema as e: # 细分处理 print("URL架构错误") exce...
[ "noreply@github.com" ]
Liunrestrained.noreply@github.com