blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
⌀
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
9014d96a806475d7ef23fe97ca75f553469ad4ae
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/action_angle_networks/scalers_test.py
8be926bf249dd8fd87781af767f4a84e72debd0b
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
2,410
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
f49688c9e8cd9df8b2458ed2475b516c72c20c24
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2223/60698/243717.py
4b7c205d1806ab0ec5e38e444c75787a4acf6158
[]
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
201
py
a = input() arr = a.split(',') arr = list(map(int, arr)) for i in range(0,len(arr)): if arr.count(i)==2: first=i if arr.count(i)==0: second=i result=[first,second] print(result)
[ "1069583789@qq.com" ]
1069583789@qq.com
65feb62ee98613ae442f8cc224d5dc65aceb63e9
6891ebea6680374663a8855d7bd89cfc84c582e7
/superbench/common/utils/nvidia_helper.py
f337800ee7952a212f66670d335023e85aa7e01f
[ "MIT" ]
permissive
QPC-database/superbenchmark
431b9df3e14d24fcb20a05f7048f2a417e47e51b
43620c3f46701d11514901e5c238d7a571ab3ea9
refs/heads/main
2023-06-12T13:25:45.908845
2021-07-02T16:18:30
2021-07-02T16:18:30
383,307,454
1
0
MIT
2021-07-06T01:41:14
2021-07-06T01:41:13
null
UTF-8
Python
false
false
549
py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """Nvidia Utility.""" import py3nvml.py3nvml as nvml def get_device_compute_capability(): """Get the compute capability of device. Return: cap (float): the compute capability of device, None means no device found. """ ...
[ "noreply@github.com" ]
QPC-database.noreply@github.com
f939061cabfa561510cb0f1b0a7112d223fb23f7
b61dba9b5b9bbfb2fc67cf1fa36c5791073f7a8e
/devito/core/operator.py
e2910f2146d517206e530f828be1543a5a7617f3
[ "MIT" ]
permissive
PongthepGeo/devito
51d70f93a7551f5ca742dc65c1a929020b7571f1
120315f6550202e6ee5164a51c7d5fddbccdba75
refs/heads/master
2023-07-02T07:45:58.829264
2021-07-28T07:24:11
2021-07-28T07:24:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,833
py
from devito.core.autotuning import autotune from devito.exceptions import InvalidOperator from devito.logger import warning from devito.parameters import configuration from devito.operator import Operator from devito.tools import as_tuple, timed_pass from devito.types import NThreads __all__ = ['CoreOperator', 'Custom...
[ "f.luporini12@imperial.ac.uk" ]
f.luporini12@imperial.ac.uk
fff665d274f66b71d40b24ccf6519b78945a6d01
f8da830331428a8e1bbeadf23345f79f1750bd98
/msgraph-cli-extensions/v1_0/notes_v1_0/azext_notes_v1_0/vendored_sdks/notes/aio/operations_async/_site_onenote_notebook_section_operations_async.py
cb8c782b1e9c5ffe3139e798d32dc771f9813f8e
[ "MIT" ]
permissive
ezkemboi/msgraph-cli
e023e1b7589461a738e42cbad691d9a0216b0779
2ceeb27acabf7cfa219c8a20238d8c7411b9e782
refs/heads/main
2023-02-12T13:45:03.402672
2021-01-07T11:33:54
2021-01-07T11:33:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
47,905
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 ...
[ "japhethobalak@gmail.com" ]
japhethobalak@gmail.com
53a53c0b82a481840625b6ef1f14fcdc9eb1fc0c
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/72_v5/belt.py
7de420e04e089b50975020271d1b3ad40dc7c389
[]
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
340
py
# ____ c.. _______ O.. # ____ i.. _______ f.. # # scores [10, 50, 100, 175, 250, 400, 600, 800, 1000] # belts 'white yellow orange green blue brown black paneled red'.s.. # HONORS O.. z.. ? ? # MIN_SCORE, MAX_SCORE m.. ? m.. ? # # # ___ get_belt user_score # __ ? < M.. # r.. N.. # r.. H.. l.. f.. l.... ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
ee6b7a7222576606832035a682659ba3fef238c0
0361d51139630cdf3f6d9d075d1d2bf6bc29c800
/PYTHON_CODE/1261.py3.py
013c9b7b3345c558476c4f9716fb8dc78d583861
[]
no_license
jinyoungcho/Algorithm_study
fa4300e8cd1407ec52ee7d2edd338d3b0c64addf
b6dfc4b4f8492fe52a53c7c465c87bc12710641d
refs/heads/master
2020-05-29T19:55:15.638768
2019-07-02T04:35:33
2019-07-02T04:35:33
189,341,547
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
from collections import deque M, N = map(int, input().split()) a = [list(map(int,list(input()))) for _ in range(N)] # for _ in range(N): # a.append(list(map(int, input().split()))) q = deque() c = [ [False for j in range(M)] for i in range(N) ] q.append((0,0)) c[0][0] = True while...
[ "jinyoungcho93@gmail.com" ]
jinyoungcho93@gmail.com
222fb58f7c96c0103e58a0d9d08ee06b3f72737d
edbc2eb5de6e74e082b2055eff638c219aafd755
/itww/apps.py
ac7f1386dbeb87a9b7fa1a7a2513d73c0585fc25
[ "MIT" ]
permissive
istheweatherweird/istheweatherweird-django
1023926ce760c9d439e8c25b5c79ba7068a31e32
5ed640743deea56d9504c998f5a42ad59bfc4087
refs/heads/master
2023-05-25T09:33:10.510041
2021-03-05T21:30:55
2021-03-05T21:30:55
161,394,580
0
0
MIT
2023-05-22T21:51:35
2018-12-11T21:15:00
JavaScript
UTF-8
Python
false
false
83
py
from django.apps import AppConfig class ItwwConfig(AppConfig): name = 'itww'
[ "eric@k2co3.net" ]
eric@k2co3.net
b513684e3116106950d8b2279a2f2667275e322c
743da4642ac376e5c4e1a3b63c079533a5e56587
/build/lib.win-amd64-3.6/examples/simultaneous_translation/eval/evaluate.py
fdc4511efaca8c7fe3af4382548f5cf1232ba645
[ "MIT" ]
permissive
tmtmaj/Exploiting-PrLM-for-NLG-tasks
cdae1b6e451b594b11d8ecef3c1cd4e12fe51c9b
e8752593d3ee881cf9c0fb5ed26d26fcb02e6dd5
refs/heads/main
2023-06-16T08:26:32.560746
2021-07-14T17:50:19
2021-07-14T17:50:19
371,899,601
0
0
null
null
null
null
UTF-8
Python
false
false
2,564
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse from client import SimulSTEvaluationService, SimulSTLocalEvaluationService from fairseq.registry import REGISTRIES f...
[ "qkrwjdgur09@naver.com" ]
qkrwjdgur09@naver.com
faddc43dabca34f1b810b0a24747d631a3edf28d
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2502/60706/281273.py
a8977c97598c9d6e2ea35525d2ddfc574f3211fa
[]
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
132
py
n=int(input()) a=[] for i in range(n): a.append(int(input())) ans=0 for i in range(1,n): ans=ans+max(a[i],a[i-1]) print(ans)
[ "1069583789@qq.com" ]
1069583789@qq.com
1f23cda37a73db04d256cfce6b7ca096a03cc98a
b8f982c34119025b7b6b1ae2a06b285e6fa3e498
/functions_defined.py
4270a961a3d0b4c88c58a4a5c846e61acdee8096
[]
no_license
webclinic017/algothon2019-1
8465fdfa7cea72582efce2b28beba37efcadf3b0
b4617ad5113dda5cc16f8c54bea3338c35065887
refs/heads/master
2022-03-01T11:59:22.549016
2019-10-22T12:25:59
2019-10-22T12:25:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,514
py
############################################## Functions ############################################### from req_imports import * #Moving Average def MA(df, n): MA = pd.Series(pd.DataFrame.rolling(df['close'], n).mean(), name = 'MA_' + str(n)) df = df.join(MA) return df def VA(df, ...
[ "noreply@github.com" ]
webclinic017.noreply@github.com
3e693a7b84bfe1df57e4227a314de0d5f897136b
b028e7a5dd7def7d2b3d71f6c1390394430a40f1
/cvpr/Removing-rain-from-single-images-via-a-deep-detail-network/test_denoise.py
422b56a34dda7ddd7649ebb5ea029a42c5dad755
[]
no_license
thautwarm/paper-implementation
421663f49693dd391c1b063928ca7a84bd39958b
fa7b01f5be3082dab2e02b4e95297c6b0760c413
refs/heads/master
2021-05-14T10:11:32.178803
2018-01-14T11:27:06
2018-01-14T11:27:06
116,346,615
6
1
null
null
null
null
UTF-8
Python
false
false
2,815
py
# -*- coding: utf-8 -*- """ Created on Sun Jan 14 16:47:22 2018 @author: misakawa """ import matplotlib as mpl import platform mpl.rcParams['font.sans-serif']=['FangSong'] if 'windows' in platform.architecture()[1].lower(): pass else: mpl.use("Agg") from definition import * import os from linq import Flow fro...
[ "twshere@outlook.com" ]
twshere@outlook.com
92618de7cdbd5d5e35494ce45fcf96b05d380c13
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03437/s731775564.py
6c11853ab0c650840fedb73d018c503c30b3cf48
[]
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
56
py
x, y = map(int, input().split()) print(x if x%y else -1)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
33b72ac124b44e4b95943b9f4f6e4327a1961685
53912328a42307edbad009193769d316f1ec0844
/scons/scons-local-2.2.0/SCons/Variables/PathVariable.py
77ef83edae2278407ce878989c13da964caafcc6
[ "BSL-1.0", "MIT", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-free-unknown" ]
permissive
gap-system/ward
9ec019ae76ed1ab310c4df9f1859a911449c659a
242182f2a252d6f1fb1a48d591c533a64ab8d324
refs/heads/master
2021-06-15T13:18:45.661500
2018-07-09T04:28:08
2018-07-10T06:02:53
31,773,991
2
9
BSL-1.0
2018-07-10T06:02:55
2015-03-06T14:53:44
C
UTF-8
Python
false
false
5,703
py
"""SCons.Variables.PathVariable This file defines an option type for SCons implementing path settings. To be used whenever a a user-specified path override should be allowed. Arguments to PathVariable are: option-name = name of this option on the command line (e.g. "prefix") option-help = help string for optio...
[ "behrends@gmail.com" ]
behrends@gmail.com
61fdfc9bd71a1ca9db367576d548d0ccca028180
2612f336d667a087823234daf946f09b40d8ca3d
/python/lib/Lib/site-packages/django/contrib/comments/moderation.py
17d61dadd6b0def5b18cd8ea6af10525631e100d
[ "Apache-2.0" ]
permissive
tnorbye/intellij-community
df7f181861fc5c551c02c73df3b00b70ab2dd589
f01cf262fc196bf4dbb99e20cd937dee3705a7b6
refs/heads/master
2021-04-06T06:57:57.974599
2018-03-13T17:37:00
2018-03-13T17:37:00
125,079,130
2
0
Apache-2.0
2018-03-13T16:09:41
2018-03-13T16:09:41
null
UTF-8
Python
false
false
13,528
py
""" A generic comment-moderation system which allows configuration of moderation options on a per-model basis. To use, do two things: 1. Create or import a subclass of ``CommentModerator`` defining the options you want. 2. Import ``moderator`` from this module and register one or more models, passing the model...
[ "dmitry.trofimov@jetbrains.com" ]
dmitry.trofimov@jetbrains.com
2ac0874ac0236f7f3337eb98dd5651891b839eaf
25e73c97c2bf2472b982c253febf44901e9dd443
/tests/context.py
6f46b1a05d152dd1fb8908b6df04f908c77c0d41
[ "BSD-2-Clause" ]
permissive
iuriramos/DunnoTheWay
b567c0e146a911c69885731b499539a8314d63e5
29831698e940183688809d865fa75136abddaf0d
refs/heads/master
2022-12-12T01:35:55.091780
2019-06-18T21:17:36
2019-06-18T21:17:36
134,640,764
0
0
BSD-2-Clause
2022-12-08T02:08:21
2018-05-24T00:39:51
Python
UTF-8
Python
false
false
133
py
import sys import os sys.path.insert(0, os.path.join(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')), 'dunnotheway'))
[ "iuri.srb@gmail.com" ]
iuri.srb@gmail.com
779cab763f667ccee673f50a31edaabc3b2f4995
3a3c9e1e8e9c20f16c27943e655c5239c4c61f18
/Python/LPTHW/example2.py
4845735172e38e5f8617435a9badd3fa38b3a291
[]
no_license
jadeaxon/hello
bb3752faefcab2a61b54dd813835e88ce022b9c6
c1902132f7f64b1c2668a07aee04ef3547899601
refs/heads/master
2023-01-27T13:55:49.415403
2020-10-04T01:03:42
2020-10-04T01:03:42
45,406,801
1
0
null
2023-01-11T22:20:50
2015-11-02T16:29:47
HTML
UTF-8
Python
false
false
311
py
# A comment, this is so you can read your program later. # Anything after the # is ignored by python. print "I could have code like this." # and the comment after is ignored # You can also use a comment to "disable" or comment out a piece of code: # print "This won't run." print "This will run."
[ "jeff.anderson@digecor.com" ]
jeff.anderson@digecor.com
9508a17263591ba9e43c36986d7fa60bb64bf32b
bed559d18b0a9604e6d18879e1f3837d228d1440
/rx/linq/observable/min.py
b64eb2c0e6e90c9b003993da253e20596f9ac7cb
[ "Apache-2.0" ]
permissive
jesonjn/RxPY
a80b7a8f0a3a8a6ddcb7f3ed678d2f8411cad84e
9dfb62979f2c54b93bbb8c0ee5fa18cfae4d73d0
refs/heads/master
2020-12-29T00:25:17.866220
2014-11-15T10:24:05
2014-11-15T10:24:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
from six import add_metaclass from rx import AnonymousObservable, Observable from rx.internal import ExtensionMethod from rx.internal.basic import identity from rx.internal.exceptions import SequenceContainsNoElementsError def first_only(x): if not len(x): raise SequenceContainsNoElementsError() ...
[ "dag@brattli.net" ]
dag@brattli.net
9c22367e32f2bf5cf138dd4fe576774f8e4aa316
eb64b799ff1d7ef3a244bf8e6f9f4e9118d5cfcd
/homeassistant/components/synology_dsm/config_flow.py
256ad5eef8ed75265c886733ddf546fd315393fd
[ "Apache-2.0" ]
permissive
JeffLIrion/home-assistant
53966b81b5d5816679f12fc761f79e8777c738d6
8f4ec89be6c2505d8a59eee44de335abe308ac9f
refs/heads/dev
2023-08-22T09:42:02.399277
2022-02-16T01:26:13
2022-02-16T01:26:13
136,679,169
5
2
Apache-2.0
2023-09-13T06:59:25
2018-06-09T00:58:35
Python
UTF-8
Python
false
false
13,837
py
"""Config flow to configure the Synology DSM integration.""" from __future__ import annotations from ipaddress import ip_address import logging from typing import Any from urllib.parse import urlparse from synology_dsm import SynologyDSM from synology_dsm.exceptions import ( SynologyDSMException, SynologyDSML...
[ "noreply@github.com" ]
JeffLIrion.noreply@github.com
ef594a5929625cb58aeedf7bcf60d8f067403ae9
b90b021ce7e31a0b321f8a9dd0ec5a856ed938c6
/build/catkin_generated/generate_cached_setup.py
ef9bb89d57d3e6945ac88eae0d732a2a3e1d02e9
[]
no_license
lievech/ros_web_ws
ab8eecdc59bdb95b969380d02f09c8f8998732ed
9f89ebe771ea7b22f87c490dc886f972faea422a
refs/heads/master
2020-08-02T20:12:36.182654
2019-09-28T11:51:01
2019-09-28T11:51:01
211,492,760
0
0
null
null
null
null
UTF-8
Python
false
false
1,270
py
# -*- coding: utf-8 -*- from __future__ import print_function import argparse import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys....
[ "2328187416@qq.com" ]
2328187416@qq.com
cd753a801f51e63f9e8bd52c38eee01fb15dae7d
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2789/61135/281580.py
35c98cb561a3b0d73dd7c2479cf92497858733db
[]
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
397
py
n=int(input()) for a in range(0,n): num=int(input()) l=input().split(" ") l=list(int(a) for a in l) l=sorted(l) max=l[-1] while(max>0): count=0 for b in range(1,max+1): if(num-b>=0 and l[num-b]>=max): count=count+1 if(count==max): p...
[ "1069583789@qq.com" ]
1069583789@qq.com
2838231c35584c6a1bbe26582020a136b5056b61
04803c70bb97012b7d500a177ac0240fb2ddbe38
/1heptane/pdep/network2133_2.py
3ba25d41700f89dda2cfadb2ac0d305ba2c4ead5
[]
no_license
shenghuiqin/chpd
735e0415f6688d88579fc935459c1b0f53596d1d
396ba54629036e3f2be0b3fabe09b78c90d56939
refs/heads/master
2023-03-01T23:29:02.118150
2019-10-05T04:02:23
2019-10-05T04:02:23
192,084,217
0
0
null
2019-06-18T18:33:13
2019-06-15T13:52:28
HTML
UTF-8
Python
false
false
17,223
py
species( label = 'CH2OH(24)', structure = SMILES('[CH2]O'), E0 = (-28.7184,'kJ/mol'), modes = [ HarmonicOscillator(frequencies=([3000,3100,440,815,1455,1000,3003.59,4000],'cm^-1')), HinderedRotor(inertia=(0.057913,'amu*angstrom^2'), symmetry=1, barrier=(25.9304,'kJ/mol'), semiclassical=F...
[ "qin.she@husky.neu.edu" ]
qin.she@husky.neu.edu
3b615e6c5d7fa5168f4d71fa92816732cb4b4150
c30a0ff378272ecc8c1a1537007c47625a803cae
/Chapter01/example_1_2_4.py
a50d0f72d75e1a35ebec8168f2d6ec883f1bb11d
[ "MIT" ]
permissive
PacktPublishing/Daniel-Arbuckles-Mastering-Python
10ae8b86340bd014f64482e8cf5b9ea312f60db1
5ba84e7bfc7deb9c2fa2b1690e222998f3680836
refs/heads/master
2023-02-14T01:13:59.116103
2023-01-30T08:35:18
2023-01-30T08:35:18
96,079,297
35
22
MIT
2017-12-28T08:00:05
2017-07-03T06:52:10
Python
UTF-8
Python
false
false
190
py
outer = "Hello world" def example_function(param): inner = "Hello function: {}".format(param) print(inner, outer) example_function("first") example_function("second") print(inner)
[ "noreply@github.com" ]
PacktPublishing.noreply@github.com
56b69a09fd6adb80757963dccee0a95da6647fcd
3d49eb0dc3d9c84c44d6543aa0a8f101b4a238b3
/1780.py
a16303076126a2ce69a6c99136062e4835af02ea
[]
no_license
goodsosbva/BOJ_DividedAndConquer
e8705ac602678330cd8e2cb450ea2fdb7422c6f9
6b2849a010370f655acee2f52d597163211def35
refs/heads/main
2023-03-11T14:35:57.886074
2021-03-03T10:17:19
2021-03-03T10:17:19
343,049,431
1
0
null
null
null
null
UTF-8
Python
false
false
680
py
n = int(input()) paper = [list(map(int, input().split())) for _ in range(n)] # print(paper) res1 = 0 resMinus1 = 0 res0 = 0 def cuting(x, y, n): global res1, resMinus1, res0 config = paper[x][y] for i in range(x, x + n): for j in range(y, y + n): if config != paper[i...
[ "noreply@github.com" ]
goodsosbva.noreply@github.com
40277c40aac57805546d76a7da1257a34e4cfff9
229924db99b28bc8ae88e8379252e0422119c3c6
/mlp.py
e23a600573b1bbf0f3c3ead317bd46ddc1bb331e
[]
no_license
ineedaspo1/CNN
3ae4a9213762df627e1217ec526df1777651884b
60cdf54947db7d3149cbae8a915c43ae53e81faa
refs/heads/master
2021-06-01T03:43:25.853717
2016-07-18T00:29:26
2016-07-18T00:29:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,305
py
""" This tutorial introduces the multilayer perceptron using Theano. A multilayer perceptron is a logistic regressor where instead of feeding the input to the logistic regression you insert a intermediate layer, called the hidden layer, that has a nonlinear activation function (usually tanh or sigmoid) . One can use ...
[ "volpato30@gmail.com" ]
volpato30@gmail.com
b2aef4068628a6cd7ff6c723f5b4017cb326b2f5
82c6dedfe9040b453c22c3f93f1a2c9a922c988b
/SimGal/__init__.py
ba5e69eafcffe4e7974e02f8cfe4d7d81a5d9003
[]
no_license
njcuk9999/g_clustering
8d34439fd78ef7017c0414c932d21cd19fc6551c
20e6a6ab17c72c5652ae33125f7dabf4131aa8d5
refs/heads/master
2021-05-11T16:10:41.382938
2018-05-08T22:55:03
2018-05-08T22:55:03
117,753,516
0
0
null
null
null
null
UTF-8
Python
false
false
1,341
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ # CODE NAME HERE # CODE DESCRIPTION HERE Created on 2018-01-16 at 11:04 @author: cook Version 0.0.0 """ import numpy as np import matplotlib.pyplot as plt from astropy.io import fits from astropy.table import Table from astropy import units as u from tqdm import...
[ "neil.james.cook@gmail.com" ]
neil.james.cook@gmail.com
fa5b115d271430d26bb1c77eadd25acedfd666ca
d121711fb05fe33225e4200ba4b51fde81ec936a
/Python_Deep_Dive/Part 2/2.Sequences/11.SortingSequences.py
15edf972d9917b26b1b0d6c24ea6ee904c827b83
[]
no_license
Hopw06/Python
a2a8d756f20bebd547af2aff3caee77f88e59410
9f3b76a11de3f5c817e9e0c4ec72b53f2d280697
refs/heads/master
2023-02-25T14:55:09.494024
2021-01-29T12:32:36
2021-01-29T12:32:36
334,137,897
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
t = 10, 3, 5, 8, 9, 6, 1 print(sorted(t)) s = {10, 3, 5, 8, 9, 6, 1} print(sorted(s)) d = {3: 100, 2: 200, 1: 10} for item in d: print(item) print(sorted(d)) d = {'a': 100, 'b': 50, 'c':10} print(sorted(d, key=lambda k: d[k])) t = 'this', 'parrot', 'is', 'a', 'late', 'bird' print(sorted(t)) ...
[ "vuxuanphong06@gmail.com" ]
vuxuanphong06@gmail.com
1ca599a563c72f18bb52d19dd4f70b6a311125f2
f2a2f41641eb56a17009294ff100dc9b39cb774b
/old_session/session_1/_33/_33_search_in_rotated_sorted_array.py
2c23713c7dcd193ad0c0c770826264bca96b7a85
[]
no_license
YJL33/LeetCode
0e837a419d11d44239d1a692140a1468f6a7d9bf
b4da922c4e8406c486760639b71e3ec50283ca43
refs/heads/master
2022-08-13T01:46:14.976758
2022-07-24T03:59:52
2022-07-24T04:11:32
52,939,733
3
0
null
null
null
null
UTF-8
Python
false
false
1,846
py
""" 33. Search in Rotated Sorted Array Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search. If found in the array return its index, otherwise return -1. You may assume no duplicate exists in the array. ""...
[ "yunjun.l33@gmail.com" ]
yunjun.l33@gmail.com
29079361f1f1250d00afdd8fe3a41481ee80e14d
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/GPMM/YW_GPMM_SZSJ_333.py
8d86a03821d4c75830eb2fd15f5c344d661632e4
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
2,276
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/service") from ServiceConfig import * from mainService import * from log import * sys.path.append("/home/yhl2/workspace/xtp_test/mys...
[ "418033945@qq.com" ]
418033945@qq.com
efaed5573a0ac4c2dd65bc8309f4d0b87385c72a
42674d7355d852e6ec7071830bb87d781ab63ad3
/bitmovin/errors/invalid_status_error.py
35a50392d8710cbf65c40954cf15045d8df1be7c
[ "Unlicense" ]
permissive
bitmovin/bitmovin-python
57b1eb5deb7e38f3079e0ded546ec762753c3132
d183718d640117dd75141da261901dc2f60433b0
refs/heads/master
2023-07-11T02:40:59.277881
2020-01-28T14:49:15
2020-01-28T14:49:15
72,857,798
46
27
Unlicense
2019-12-17T13:59:51
2016-11-04T15:01:56
Python
UTF-8
Python
false
false
80
py
from . import BitmovinError class InvalidStatusError(BitmovinError): pass
[ "dominic.miglar@netunix.at" ]
dominic.miglar@netunix.at
72d5d8eb78e9c1c4dbc425137766d8a05571fe51
f3b5c4a5ce869dee94c3dfa8d110bab1b4be698b
/openstack/neutron_plugin/neutron_plugin_contrail/plugins/opencontrail/agent/contrail_vif_driver.py
2b657a1905fb91ef0604ad808cf51073e600d3b1
[ "Apache-2.0" ]
permissive
pan2za/ctrl
8f808fb4da117fce346ff3d54f80b4e3d6b86b52
1d49df03ec4577b014b7d7ef2557d76e795f6a1c
refs/heads/master
2021-01-22T23:16:48.002959
2015-06-17T06:13:36
2015-06-17T06:13:36
37,454,161
2
0
null
null
null
null
UTF-8
Python
false
false
6,299
py
# # 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 agreed to in writing, software # distributed under...
[ "pan2za@live.com" ]
pan2za@live.com
f7075bb2b84eabf05e92f2fd48fec146997af81f
f090c3e0faa70cf0ef7c4be99cb894630bce2842
/scripts/dataAnalysis/LocalDetectionChain/2014_01_23_5ion.py
84245b4993066a4b439251dd951279fa0b76dd2a
[]
no_license
HaeffnerLab/resonator
157d1dc455209da9b7de077157bda53b4883c8b7
7c2e377fdc45f6c1ad205f8bbc2e6607eb3fdc71
refs/heads/master
2021-01-09T20:48:03.587634
2016-09-22T18:40:17
2016-09-22T18:40:17
6,715,345
2
1
null
null
null
null
UTF-8
Python
false
false
3,056
py
import labrad import numpy from matplotlib import pyplot #get access to servers cxn = labrad.connect() dv = cxn.data_vault #change directory figure = pyplot.figure(1) figure.clf() dv.cd(['','Experiments','Dephase Scan Duration','2014Jan23','1413_53']) dv.open(1) data0 = dv.get().asarray dv.cd(['','Experiments','Dep...
[ "soenkeamoeller@gmail.com" ]
soenkeamoeller@gmail.com
526e2a9397547a8a2007fa626da9ba2a4b4b6f6d
7882860350c714e6c08368288dab721288b8d9db
/트리/2533_사회망서비스.py
d019a4892d4587fdc1e46e9e783b635f7c29d03e
[]
no_license
park-seonju/Algorithm
682fca984813a54b92a3f2ab174e4f05a95921a8
30e5bcb756e9388693624e8880e57bc92bfda969
refs/heads/master
2023-08-11T18:23:49.644259
2021-09-27T10:07:49
2021-09-27T10:07:49
388,741,922
0
0
null
null
null
null
UTF-8
Python
false
false
1,533
py
import sys sys.setrecursionlimit(10**9) N=int(sys.stdin.readline()) Tree=[[] for _ in range(N+1)] check=[0 for _ in range(N+1)] for _ in range(N-1): u,v=map(int,sys.stdin.readline().split()) Tree[u].append(v) Tree[v].append(u) DP=[[0,0] for _ in range(N+1)] check=[True for _ in range(N+1)] def DFS(cur):...
[ "cucu9823@naver.com" ]
cucu9823@naver.com
73e605d203d7fc140d10d6c0490351b2d68fb95d
25bb4e760769cc483a20f27b6312698891dce034
/python/Basic Data Types/nested-list-English.py
235e25cd6affae77e136f7cbe524bf91b9a90bd8
[]
no_license
rangaeeeee/codes-hackerrank
e13d22adff1ef74974e34251d9bfac6cfd36f2b0
ce7fdf7f336c10164fd2f779d4ed3713849d7c2b
refs/heads/master
2021-01-19T17:07:28.451983
2017-09-01T18:05:33
2017-09-01T18:05:33
101,049,197
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
if __name__ == '__main__': inputValue = [] for _ in range(int(input())): # print(_) name = input() score = float(input()) temp = [name,score] inputValue.append(temp) inputVal = sorted(inputValue, key=lambda e: e[1]) mark = inputVal[0][1] test = [] # print(inputVal) # print...
[ "rrangarajan.85@gmail.com" ]
rrangarajan.85@gmail.com
8549b2fbfc3e38172c4e9f414d1c6d148f22ee72
d794bd9663e85efe66b56ee96aa31ffe7f043d84
/list_operations.py
ce890ce1cc5624a6d6ec9a2d068646d3fe7d9f65
[]
no_license
NatashaMitchko/list-slicing
7c3ec6e76d79073669686f7bd79d05f7a8fbc488
999b2bb31064f5ab185412a32ed9f3110cd479e9
refs/heads/master
2020-11-29T15:23:09.652861
2017-04-07T00:57:54
2017-04-07T00:57:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,205
py
"""Functions that manipulate lists without using Python's built-in list methods. The fundamental operations on lists in Python are those that are part of the language syntax and/or cannot be implemented in terms of other list operations. They include: * List indexing (some_list[index]) * List indexing assignm...
[ "no-reply@hackbrightacademy.com" ]
no-reply@hackbrightacademy.com
9c77e8071e88b6378db2b2f90df307e103a5392f
f94405680c636963d75e466b1790dcb042015ffd
/fun/run.py
3106498702d4fe00768f8cdbd4ec210f93292068
[]
no_license
1cyCok3/meta-learning
19c2df95d5ec5ab7c95f12b13762cc3be849d165
68c2b7ae6dedf8c18eb36ff769d7dc85ede057fb
refs/heads/master
2021-03-29T01:18:09.877775
2017-08-22T12:51:56
2017-08-22T12:51:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,079
py
import threading import tensorflow as tf import random import numpy as np import gym from gym import wrappers import gym_fast_envs from agent import Agent from network import FUNNetwork import flags import multiprocessing import atari_environment import os FLAGS = tf.app.flags.FLAGS def recreate_directory_structure...
[ "ioana.chelu28@gmail.com" ]
ioana.chelu28@gmail.com
9e09033404a9a47905917a0bb712384421ab7984
1a449abc0d04caa0a898474ca892932565bd2b47
/tests/baseline/test_detector.py
bdac18efbef3a7a7120c3d4618bbb799dc347417
[ "Apache-2.0" ]
permissive
nagitakashiki/DialogueBreakdownDetection2016
9f3375dc8bbb45daf6794f5c4ca12df9dfba7039
53f88194bf0aacdb17c8132885f6e81e30e78931
refs/heads/master
2020-04-10T14:10:00.669665
2016-09-26T05:32:09
2016-09-26T05:32:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,405
py
import unittest import os import shutil import sys sys.path.append(os.path.join(os.path.dirname(__file__), "../../")) import numpy as np import tensorflow as tf from model.baseline.seq2seq import Seq2Seq, Seq2SeqInterface from model.baseline.detector import Detector class TestDetector(unittest.TestCase): MODEL_DI...
[ "icoxfog417@yahoo.co.jp" ]
icoxfog417@yahoo.co.jp
bdb641f4cf9c87faf269311b03a8246a8b992664
b19dfd6a3ba5d107d110fb936de2e91d1d92bb99
/venv/lib/python3.7/site-packages/Satchmo-0.9.3-py3.7.egg/shipping/modules/usps/shipper.py
ad998ad7ac99ad53b7ae3d989dac7239b6b53fe4
[]
no_license
siddhant3030/djangoecommerce
d8f5b21f29d17d2979b073fd9389badafc993b5c
b067cb1155c778fece4634d0a98631a0646dacff
refs/heads/master
2022-12-13T15:28:39.229377
2019-09-28T10:30:02
2019-09-28T10:30:02
207,240,716
2
1
null
2022-12-11T01:34:25
2019-09-09T06:35:36
Python
UTF-8
Python
false
false
13,420
py
""" USPS Shipping Module You must have a USPS account to use this module. You may register at usps.com This module uses the XML online tools for maximum flexibility. It is primarily created for use in the US but reconfiguring for international shipping or more advanced uses should be straightforward. It is recommend...
[ "ssiddhant3030@gmail.com" ]
ssiddhant3030@gmail.com
d6d25a2d8c78be8c4fbfca9208c379a5ae996737
242086b8c6a39cbc7af3bd7f2fd9b78a66567024
/python/PP4E-Examples-1.4/Examples/PP4E/Ai/TicTacToe/unconverted-python2X/tictactoe_lists_2.py
5da502a2c1720812d4b6d92c3a52baaf08e2f879
[]
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
19,128
py
# poss opts: # x make board just marks (not State), use board.copy() (not deepcopy) # x use arrays for board, indexing (not hash + compare) # also speeds draw and checkWin - use 'in' and list.count on entire row # - don't board.copy-- just set mark, recure, set Empty [seems to have no effect] # - use ...
[ "zui" ]
zui
4a5c8e66e252583ff04d26df518fe3054e160d0b
864fc03b15218e5c197feb24bb4dac3e3c566de9
/dnacentersdk/models/validators/v1_3_0/jsd_5b8639224cd88ea7.py
b47fe55b7dcbaa80ac700d8fb38eb51dcf4a92a6
[ "MIT" ]
permissive
daxm/dnacentersdk
e5ae51d39fb05839455d7ec80fbcb57d0975d5aa
5baa0cb151fb9e72cf7af1ae29e7541d89c3f06b
refs/heads/master
2020-09-25T08:09:13.678878
2019-11-20T22:34:01
2019-11-20T22:34:01
225,958,373
0
0
MIT
2019-12-04T21:15:07
2019-12-04T21:15:06
null
UTF-8
Python
false
false
2,084
py
# -*- coding: utf-8 -*- """DNA Center Get Device Interface count by id data model. Copyright (c) 2019 Cisco and/or its affiliates. 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 restrict...
[ "jbogarin@altus.co.cr" ]
jbogarin@altus.co.cr
b3d31f517f940a54904978caaf5483f72b8013cd
e168222c60b229130a4e97c384c080d2e12ae621
/tests/test_test.py
080b7cf1c4ac3f8279cfc9c83193521c497ee597
[ "MIT" ]
permissive
andrewcharlesjones/spatial-alignment
6dffb5f5e2944211e5edf26963604432fa811a15
003feddfaaacf836bed1a597444878dbd47cbef0
refs/heads/main
2023-04-16T08:18:53.912789
2022-12-14T11:29:53
2022-12-14T11:29:53
375,463,436
23
7
MIT
2022-02-24T13:22:17
2021-06-09T19:08:28
Python
UTF-8
Python
false
false
33
py
def test_test(): return True
[ "ajones788@gmail.com" ]
ajones788@gmail.com
8d7200a7c9ca2d9f97ec7204d20bea540764ac92
98f1a0bfa5b20a0b81e9e555d76e706c62d949c9
/python/dgl/ops/sddmm.py
f0290d8b06b7e10080824195690a2da97eafd40c
[ "Apache-2.0" ]
permissive
dmlc/dgl
3a8fbca3a7f0e9adf6e69679ad62948df48dfc42
bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1
refs/heads/master
2023-08-31T16:33:21.139163
2023-08-31T07:49:22
2023-08-31T07:49:22
130,375,797
12,631
3,482
Apache-2.0
2023-09-14T15:48:24
2018-04-20T14:49:09
Python
UTF-8
Python
false
false
6,543
py
"""dgl sddmm operator module.""" import sys from itertools import product from .. import backend as F from ..backend import ( gsddmm as gsddmm_internal, gsddmm_hetero as gsddmm_internal_hetero, ) __all__ = ["gsddmm", "copy_u", "copy_v", "copy_e"] def reshape_lhs_rhs(lhs_data, rhs_data): r"""Expand dims ...
[ "noreply@github.com" ]
dmlc.noreply@github.com
4beaca0fca11d9d8bbce3dc2014a62c3ccc2f537
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_pluck.py
42e03a4900a29d7f683dec04d475afdf87a44e9e
[ "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
316
py
#calss header class _PLUCK(): def __init__(self,): self.name = "PLUCK" self.definitions = [u'courage and a strong wish to succeed: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], obj2 = []): return self.jsondata
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
d7c70a8834a3ccd2f6196919fb45e82ab8d27b04
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/kosmos-2/fairseq/fairseq/criterions/label_smoothed_cross_entropy_latency_augmented.py
d5fb390f84ae40c853b539a89029ed8896796d8d
[ "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
microsoft/unilm
134aa44867c5ed36222220d3f4fd9616d02db573
b60c741f746877293bb85eed6806736fc8fa0ffd
refs/heads/master
2023-08-31T04:09:05.779071
2023-08-29T14:07:57
2023-08-29T14:07:57
198,350,484
15,313
2,192
MIT
2023-08-19T11:33:20
2019-07-23T04:15:28
Python
UTF-8
Python
false
false
7,969
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from dataclasses import dataclass, field import torch from fairseq import metrics, utils from fairseq.criterions import register_criterion fro...
[ "1083127130@qq.com" ]
1083127130@qq.com
7400a3001aaa43e469453d8da133c64297d8b453
df2cbe914f463ad050d7ed26194424afbe3a0a52
/addons/l10n_no/models/account_journal.py
fd75a635dd9aa178e4c57038566d9e7fb5eb7c38
[ "Apache-2.0" ]
permissive
SHIVJITH/Odoo_Machine_Test
019ed339e995be980606a2d87a63312ddc18e706
310497a9872db7844b521e6dab5f7a9f61d365a4
refs/heads/main
2023-07-16T16:23:14.300656
2021-08-29T11:48:36
2021-08-29T11:48:36
401,010,175
0
0
Apache-2.0
2021-08-29T10:13:58
2021-08-29T10:13:58
null
UTF-8
Python
false
false
378
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models class AccountJournal(models.Model): _inherit = 'account.journal' invoice_reference_model = fields.Selection(selection_add=[ ('no', 'Norway') ], ondelete={'no': lambd...
[ "36736117+SHIVJITH@users.noreply.github.com" ]
36736117+SHIVJITH@users.noreply.github.com
a8abacb86839a7e5440119516dbdccc157c8e6ec
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/third_party/blink/renderer/modules/media_controls/DEPS
e91dfc2478c4efdcea97b5cce9f7315c022291e2
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
otcshare/chromium-src
26a7372773b53b236784c51677c566dc0ad839e4
64bee65c921db7e78e25d08f1e98da2668b57be5
refs/heads/webml
2023-03-21T03:20:15.377034
2020-11-16T01:40:14
2020-11-16T01:40:14
209,262,645
18
21
BSD-3-Clause
2023-03-23T06:20:07
2019-09-18T08:52:07
null
UTF-8
Python
false
false
510
include_rules = [ "+mojo/public/cpp/bindings", "+services/device/public/mojom/screen_orientation.mojom-blink.h", "-third_party/blink/renderer/modules", "+third_party/blink/renderer/modules/device_orientation", "+third_party/blink/renderer/modules/media_controls", "+third_party/blink/renderer/modules/modules...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
26b25a33b7b4001fbcd3d8b38ef8c700722b089f
12c18d9d0b210698f61f70f458a46647fc99356c
/bsp85.py
38fa617015bca40beeca074b3196e44f6fb30c3f
[]
no_license
ddgvv/dd
503a64b08e12de79b5812fd39a76c826aadbd06c
2e07d92123960e9625198a454ad3973671761fda
refs/heads/master
2021-07-04T16:40:01.904529
2019-05-17T08:10:30
2019-05-17T08:10:30
110,428,294
1
10
null
null
null
null
UTF-8
Python
false
false
210
py
#85 problem s=input("Enter a string") list1=[] list2=[] for i in range(len(s)): if i%2==0:list1.append(s[i]) else:list2.append(s[i]) print("".join(str(x) for x in list1),"".join(str(x) for x in list2))
[ "noreply@github.com" ]
ddgvv.noreply@github.com
b27f38fc9327d7788a85a7f676da9e0586c666ac
f4abeff6345c344ef2014f774ac4ad871bf3cd24
/platformio/device/monitor/command.py
44df40438a04f65e9f1db0d62079e5aa109a69ea
[ "Apache-2.0" ]
permissive
timgates42/platformio-core
f21e86c6334cef22c047ebb2ab260f03ef00c4ed
6c71a3bea29ee023eb7acc4ad5df3e1efa63ed46
refs/heads/develop
2023-03-17T03:47:18.579261
2022-07-02T17:18:26
2022-07-02T17:18:26
509,878,480
0
0
Apache-2.0
2022-07-02T23:03:19
2022-07-02T23:03:18
null
UTF-8
Python
false
false
5,494
py
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "me@ikravets.com" ]
me@ikravets.com
b1bb673f4733cc9d92874a119178f4b0922b59b9
247a2c7b54e5321e8bf5f67e24bc7389eb8c0579
/lib/_Install_Package.py
823296486b24ddec912c6e03aac3fd9c17e629b8
[ "MIT" ]
permissive
jeffrimko/Ubuild
204bceb4df879d7a625271586391f113460a855c
90b386f33b52a29b5c3a8cbff7233b350b6df597
refs/heads/master
2021-07-22T13:51:18.626673
2020-04-21T01:50:15
2020-04-21T01:50:15
144,089,174
1
0
null
null
null
null
UTF-8
Python
false
false
1,015
py
##==============================================================# ## SECTION: Imports # ##==============================================================# import os import subprocess ##==============================================================# ## SECTION: Function Defin...
[ "jeffrimko@gmail.com" ]
jeffrimko@gmail.com
51691aee129283f4d314c4c39e1b85eb97a3c739
d08b0a2ea1365e96c2143a3076d6f1cfce178321
/learnPython-master/Python基础代码/day25/接口继承.py
6773a711abe8c79405c1f3468862e0d8377c9871
[]
no_license
xueyes/py3_study
f64060e5dbfcbf11c8d61de8561ce90bbb4e3c19
a7d83b58ef95806f061f375952db604afe98bc13
refs/heads/master
2022-12-11T05:56:03.540612
2019-05-06T13:07:55
2019-05-06T13:07:55
162,883,421
1
0
null
2022-12-08T02:28:21
2018-12-23T11:02:31
HTML
UTF-8
Python
false
false
718
py
# -*- coding=utf8 -*- __author__ = 'admin' #@Time :2019/1/28 17:03 #一切皆文件 #接口就是具体的函数 #abc模块 接口继承 import abc class All_file(metaclass=abc.ABCMeta): @abc.abstractmethod #抽象的方法 def read(self): pass @abc.abstractmethod def write(self): pass class Disk(All_file): def read(self): ...
[ "1401354763@qq.com" ]
1401354763@qq.com
9da5d17731b7b6ca8e150153024acb35a6a2e8ec
6bec880ecd6921209a2e3eeea0710de5a9be3e8d
/test/docs/test_docstrings.py
3a82527b66bb131f0f1041c24725180c68241e70
[ "MIT" ]
permissive
JWCook/pyinaturalist
e728e29ebeb427c23be2fd205176e8580ec4fbcb
472f30c3fa5d4c9dd43808ab793f1fa830768722
refs/heads/main
2022-06-19T05:28:06.983771
2022-05-31T16:53:11
2022-05-31T17:02:17
243,678,282
1
0
MIT
2022-02-23T02:57:09
2020-02-28T04:29:13
Python
UTF-8
Python
false
false
1,456
py
from inspect import cleandoc from pyinaturalist.docs import copy_docstrings def func_template(): """Args: arg_1: First test arg arg_2: Second test arg """ def test_copy_docstrings(): def func(): """Test function. Returns: None """ expected_docstring = "...
[ "jordan.cook@pioneer.com" ]
jordan.cook@pioneer.com
3601f644701e51ddba75a02b1766d6e1921b94fd
7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3
/codeforces/cf301-325/cf322/d.py
cb88eee6446dfb9c4f76a2f02a056b7c9b08fc6d
[]
no_license
roiti46/Contest
c0c35478cd80f675965d10b1a371e44084f9b6ee
c4b850d76796c5388d2e0d2234f90dc8acfaadfa
refs/heads/master
2021-01-17T13:23:30.551754
2017-12-10T13:06:42
2017-12-10T13:06:42
27,001,893
0
0
null
null
null
null
UTF-8
Python
false
false
1,215
py
# -*- coding: utf-8 -*- import sys,math,heapq,itertools as it,fractions,re,bisect,collections as coll xa, ya, xb, yb, xc, yc = map(int, raw_input().split()) ans = [] for a, b, c in it.product([0, 1], repeat = 3): if a == 0: x1, y1 = xa, ya else: x1, y1 = ya, xa if b == 0: x2, y2 = xb, yb else: x2, y2 ...
[ "roiti46@gmail.com" ]
roiti46@gmail.com
fc04b28d0f05d0beb9a876b0e2438f1aea47889c
41a132d5500d45db01afdd745511540f4f9c3b73
/mmsegmentation/configs/mae/upernet_mae-base_fp16_8x2_512x512_160k_ade20k.py
cb236cc041c6cc723790ae253eeeefae8ede03bb
[ "MIT", "Apache-2.0" ]
permissive
owenzlz/EgoHOS
e5e49a4491855b390acd76f997b372ec158efc4f
726dffca6939a629957b030937713c9cf537aee8
refs/heads/main
2023-05-23T17:35:38.517803
2022-11-21T20:10:20
2022-11-21T20:10:20
490,034,337
62
5
MIT
2022-10-26T01:55:47
2022-05-08T19:18:00
Python
UTF-8
Python
false
false
1,342
py
_base_ = [ '../_base_/models/upernet_mae.py', '../_base_/datasets/ade20k.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py' ] model = dict( pretrained='./pretrain/mae_pretrain_vit_base_mmcls.pth', backbone=dict( type='MAE', img_size=(512, 512), patch_siz...
[ "lingzhi1994@gmail.com" ]
lingzhi1994@gmail.com
280994aff2c7922999615d5b576716d7e144eeaa
0e36ab6fe38ff8a95b0773e37d86e43476ae9d18
/src/0284.peeking-iterator.284/solution.py
ad1dad091e67183a89f53523124e666e0be26b8c
[ "MIT" ]
permissive
jiangshanmeta/meta
368a7920ade4568d5c51ef2669d87e7c18b862f8
2cc5c27e897bb227a6b50bafd1f14771b9592717
refs/heads/master
2023-08-16T14:39:48.310006
2023-08-06T08:57:53
2023-08-06T08:57:53
115,569,337
266
59
MIT
2023-08-06T08:57:54
2017-12-28T00:47:17
JavaScript
UTF-8
Python
false
false
1,463
py
# Below is the interface for Iterator, which is already defined for you. # # class Iterator: # def __init__(self, nums): # """ # Initializes an iterator object to the beginning of a list. # :type nums: List[int] # """ # # def hasNext(self): # """ # Returns true if...
[ "540118044@qq.com" ]
540118044@qq.com
a5512336e78b304715f485fc37a89fdbc2f82e5c
575bac5482f57b1aea8ba3a11252630b1431e7f4
/akshare/__init__.py
848a0c8914b5d3dbf81382ee202c078563b44864
[ "MIT" ]
permissive
xiaopge/akshare
cf5be6b44b7b872a6b49b463abcd95a6f6749ff8
368863e5f209a7b2df641c9bc77a061c2bac1991
refs/heads/master
2022-11-18T02:06:10.501354
2020-07-17T16:18:41
2020-07-17T16:18:41
280,553,384
1
0
null
2020-07-18T00:49:03
2020-07-18T00:49:03
null
UTF-8
Python
false
false
61,464
py
"""AkShare 是基于 Python 的开源金融数据接口库, 目的是实现对股票, 期货, 期权, 基金, 债券, 外汇等金融产品和另类数据从数据采集, 数据清洗到数据下载的工具, 满足金融数据科学家, 数据科学爱好者在数据获取方面的需求. 它的特点是利用 AkShare 获取的是基于可信任数据源发布的原始数据, 广大数据科学家可以利用原始数据进行再加工, 从而得出科学的结论.""" """ 版本更新记录: 0.1.13 更新所有基于 fushare 的接口 0.1.14 更新 requirements.txt 文件 0.1.15 自动安装所需要的 packages 0.1.16 修正部分函数命名 0.1.17 更新版本号自动...
[ "jindaxiang@163.com" ]
jindaxiang@163.com
c8e2a423f836296d7e99055f81a54f1d7ba041cf
a2ff77ac12c8c8313ebb9d82b0afe0229ac065c6
/playground/necdet.yucel/notification-daemon/actions.py
e5b0bcb1afeafd9ba785aa8e6152a88e270f3af0
[]
no_license
ademirel/COMAK
80966cffc1833c0d41dbe36514ef2480f4b87ead
311d8d572c0ed5fe429bb4b2748e509dab7a6785
refs/heads/master
2020-12-25T17:23:27.553490
2012-09-11T08:58:30
2012-09-11T08:58:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
726
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2005-2010 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import shelltools from pisi.actionsapi import autotools from pisi.actionsapi import pisito...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
343badcfa56257dc5fddc0786b468dce549dff02
26d04f451b65fd1f431ba28265a2527ad114cdc5
/static/projects/atom/examples/colorize.py
faa6f04d5a965689b7958ed59f5c816f43fbaeae
[ "BSD-2-Clause" ]
permissive
jcgregorio/blog
2973597781264373ad9a6966f99d26f4c5ba145d
d5e845952bed0970f06d715762f5c2e836dc641c
refs/heads/master
2023-01-12T03:46:08.596069
2023-01-02T05:21:12
2023-01-02T05:21:12
67,904,576
2
4
null
2017-01-28T16:13:54
2016-09-11T02:03:08
HTML
UTF-8
Python
false
false
10,329
py
#!/usr/bin/python import sys from xml.dom.ext import SplitQName from xml.sax.handler import ContentHandler from xml.sax.saxutils import escape _ROOT, _STRING, _COMMENT, _NAME, _KEYWORD, _TEXT, _HEAD =0,1,2,3,4,5,6 DOCBOOK = { _ROOT: ('<programlisting>','</programlisting>'), _STRING: ('<emphasis>', '</emph...
[ "joe@bitworking.org" ]
joe@bitworking.org
10c8a56bffdcee3410033c0e8c7a999ca329e127
149660428ec7570b02b9e8b3d494dcd548e80005
/spider/day09/myspider/myspider/pipelines.py
2927921f72611c3eeac30e20ff867c1c0719542c
[]
no_license
kenzzuli/hm_15
603eb178e476f946eb57b1cdf0c85ba5d65e8d58
db8a6d13776e55aa4e05ff9f39e9c8e98d59d8ee
refs/heads/master
2023-08-07T01:57:01.993474
2021-09-23T15:49:19
2021-09-23T15:49:19
359,322,831
0
0
null
null
null
null
UTF-8
Python
false
false
909
py
# Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html # useful for handling different item types with a single interface from itemadapter import ItemAdapter import logging logger = logging.getLogger(__n...
[ "820710063@qq.com" ]
820710063@qq.com
3acfedefa2acd567a5fe660b5ff5db92f529373a
0ba046be4c8274d838ef8b689e50f83e09e44412
/19/19-1.py
8069be969c2f14bac6afed81d8b4638b6d29dcef
[]
no_license
xiaoxiae/Advent-of-Code-2019
5c82b02fa82a80c5769b0a31ef28fbb8d0ac1544
543dafd8b4d4da69398ca799501843b67b888025
refs/heads/master
2020-09-22T09:19:50.279783
2019-12-21T17:24:16
2019-12-21T17:24:16
225,135,420
0
0
null
null
null
null
UTF-8
Python
false
false
2,559
py
from typing import * class Memory: """A class for working with the computer memory.""" def __init__(self, inst: Dict[int, int]): self.inst = {} for i, instruction in enumerate(inst): self.inst[i] = instruction def __setitem__(self, i, item: int): """Set the memory at...
[ "tomas.slama.131@gmail.com" ]
tomas.slama.131@gmail.com
8aaaaefc79fafd624a9a691202ed77bd8923bbd3
416b08bf999bff281e9aa9be0ea01795487c3123
/Chapter09/dash-example-no-user-inputs.py
91635ddc551655e0a12156fb46c8c7cd16d4c7a5
[ "MIT" ]
permissive
PacktPublishing/Hands-On-Predictive-Analytics-with-Python
800996464a548c32278264c141f09b082d366eb7
e049d9d2870f596892b62aeddec312788d9d0c2c
refs/heads/master
2023-02-08T17:39:05.263846
2023-01-30T08:28:27
2023-01-30T08:28:27
163,150,479
44
39
null
null
null
null
UTF-8
Python
false
false
1,171
py
# -*- coding: utf-8 -*- """ @author: Alvaro Fuentes Chapter 9. Hands-On Predictive Analytics with Python Building a basic static app """ ## imports import dash import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go import pandas as pd import os ## Importing the dataset DA...
[ "noreply@github.com" ]
PacktPublishing.noreply@github.com
cc4c027fcbd5b4e3d4a23ede43b9fcdbd960b7fe
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2420/60648/267215.py
296488dd5f694e5276a8429e1d5ded6b0bbf407b
[]
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
296
py
class Solution: def getNoZeroIntegers(self, n: int): for A in range(1, n): B = n - A if '0' not in str(A) + str(B): return [A, B] return [] if __name__=="__main__": s=int(input()) x=Solution().getNoZeroIntegers(s) print(x)
[ "1069583789@qq.com" ]
1069583789@qq.com
b804fb223b47a087814d44b4ccebbe90f6bb7491
56f155db28b5703786a08fef0ecf821aefb6ffe5
/lib/testmill/versioncontrol.py
ef6a2e923f667b1dd471ecbde629f0c2c6225975
[ "Apache-2.0" ]
permissive
h4ckl4bm3/testmill
595c30facec943b3593febe080b1e6602e82dee2
607d5622f14785e1b2f785e162ae862c5e638c5f
refs/heads/master
2021-05-27T08:58:17.899271
2013-04-10T15:40:12
2013-04-10T15:41:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,505
py
# Copyright 2012-2013 Ravello Systems, Inc. # # 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 agree...
[ "geertj@gmail.com" ]
geertj@gmail.com
4174799d81fd8ac1035d3c50e207b28c2525f80a
7b275b3bc9c5af7c44ea6c017f594c3b2b670406
/sjlegal/asgi.py
b443f509b4cabb699238b2b6ac9a34ec18299620
[]
no_license
HimanshuShende/sjlegalcell
62ff45840a2172c71146b9b9e04307be26a2b55d
89a48fbbc3343fd7483cd4cb0ec66a6afcf6e68f
refs/heads/master
2022-12-12T07:57:50.703148
2020-05-12T05:09:54
2020-05-12T05:09:54
254,536,293
0
1
null
2022-12-08T04:01:14
2020-04-10T03:35:06
HTML
UTF-8
Python
false
false
391
py
""" ASGI config for sjlegal project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTI...
[ "himanshu.shende99@gmail.com" ]
himanshu.shende99@gmail.com
9e4c71eec09bf0c0f9186c6857ed50f3a8ab047d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_95/967.py
43c53709e411575bb5e59af75f65cfe72650a330
[]
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
505
py
googlerese = "ynficwlbkuomxsevzpdrjgthaq" alpha = "abcdefghijklmnopqrstuvwxyz" f = open("input.txt") a = 0 for line in f: if a == 0: a += 1 continue new = "" old = line for char in old: count = 0 if char == " ": new += char ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
a68411f7772a6d2f34f7cc3bc714b70941faa502
f2889a13368b59d8b82f7def1a31a6277b6518b7
/2357.py
6ace713c4dbfe0a739bc9497dab34f9feddd5b44
[]
no_license
htl1126/leetcode
dacde03de5c9c967e527c4c3b29a4547154e11b3
c33559dc5e0bf6879bb3462ab65a9446a66d19f6
refs/heads/master
2023-09-01T14:57:57.302544
2023-08-25T15:50:56
2023-08-25T15:50:56
29,514,867
7
1
null
null
null
null
UTF-8
Python
false
false
109
py
class Solution: def minimumOperations(self, nums: List[int]) -> int: return len(set(nums) - {0})
[ "tlhuang@tlhuang.net" ]
tlhuang@tlhuang.net
fe7ddd9efee0bb3ac4e9daae9e0801b584e90e8e
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/BrandInfos.py
797d52cec58996a0fa2c65742af921aae0482800
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
2,187
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.SearchBrandBoxInfo import SearchBrandBoxInfo class BrandInfos(object): def __init__(self): self._box_exclusive_info = None self._brand_id = None self....
[ "jishupei.jsp@alibaba-inc.com" ]
jishupei.jsp@alibaba-inc.com
7245c66f8772b47d467303093a3a78dcb14b3ecb
4dc5944ffad7f251b467200ba5101000561c2bdf
/iniciante/2812.py
d595c52621dea934b11f590a19a8c2af62c2dbd5
[]
no_license
DyogoBendo/URI-Python
3215337229fdb5ef1a446231925c72da4d1ea64b
40376e0fbb2e7dd97ba316a20863826b4753c601
refs/heads/master
2023-06-03T08:36:06.745086
2021-06-16T02:00:11
2021-06-16T02:00:11
314,667,743
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
if __name__ == "__main__": n = int(input()) for i in range(n): m = int(input()) lista = list(map(int, input().split())) lista_impares = [ l for l in lista if l % 2 != 0] lista_impares.sort() # ordenada em ordem crescente lista_final = [] j = 0 k = len...
[ "dyogoromagnabendo@gmail.com" ]
dyogoromagnabendo@gmail.com
090076265d0124d1a75734e442ace27c48678e9c
20b2d61c0959023cb51be92fafe54877aecb9887
/pabi_budget_plan/models/budget_plan/budget_plan_personnel.py
2a0808d0a9b44377c1f5ef0fbe4b53063b1a0c5b
[]
no_license
BTCTON/pb2_addons
6841a23554054f859b0c4acafb4e91bd0c3a14e4
a5bfd90c202cea894690c96d74a74fa96eb79468
refs/heads/master
2021-09-07T16:55:41.195667
2018-02-26T11:27:01
2018-02-26T11:27:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,605
py
# -*- coding: utf-8 -*- from openerp import models, fields, api, _ from openerp.exceptions import ValidationError from .budget_plan_common import BPCommon, BPLMonthCommon from openerp.addons.account_budget_activity.models.account_activity \ import ActivityCommon # from openerp.addons.document_status_history.models....
[ "kittiu@gmail.com" ]
kittiu@gmail.com
e0fc9cea8a75dac7fc12704b11443c5570f4e214
d58b36af92b75766dde02da7d4a6f7fba4a4b576
/ddp/message/server/result_message_serializer.py
9d971b80790c9529ecb2d25172debc4b3bb9f79e
[ "Apache-2.0" ]
permissive
zhouzhuojie/pyddp
d20fbe231ca67deecc745c955f3102bdd475fae6
650dcc2b390e51bdf1336b2b09f4e0daaab653fe
refs/heads/master
2021-01-15T17:51:11.173394
2014-05-31T12:24:11
2014-05-31T12:24:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,158
py
# -*- coding: utf-8 -*- # Copyright 2014 Foxdog Studios # # 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 l...
[ "foxxy@foxdogstudios.com" ]
foxxy@foxdogstudios.com
e7750f761acd9fe218ef0bd1c79580426c9be32e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02939/s497860113.py
c32358d9f6b693961e51a69bc5eac2d94a8c4806
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
134
py
S = input() s = S[0] cnt = 1 t = "" for i in range(1, len(S)): t += S[i] if t != s: cnt += 1 s = t t = "" print(cnt)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0617dae503bc7cc9a57199c0eaf5c47d483d7443
ef0edd0baaad2d9f0163440ad2456f1fd5dbec7a
/add_sponsors.py
d2489067eea8d1850d8005e26b6e97a7e57c44c3
[]
no_license
mconlon17/vivo-add-sponsors
98dfa01ebb7e687a2ddb7e5b023c3165cb00b7af
8665a27d1f0ee6305751fe89499d6f18906a0520
refs/heads/master
2016-09-06T18:15:00.708362
2014-04-06T00:36:31
2014-04-06T00:36:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,165
py
#!/usr/bin/env/python """ add_sponsors.py -- From a data file consisting of sponsors of research, update sponsors and add sponsors Version 0.1 MC 2014-03-10 -- Working as expected Version 0.2 MC 2014-03-16 -- Added abbreviations, shortcuts Version 0.3 MC 2014-03-27 -- Handle lang tag...
[ "mconlon@ufl.edu" ]
mconlon@ufl.edu
c8891ac5593adc62cdb26fdad0ca7bcbc81ab8c3
25e22cdedf66bcb0ac35aede74c11d9f0746ce0b
/contrib/scripts/lmtool-cli
1253676914fab4ac68aa4bcdcce3dfbb9e677b1a
[]
no_license
bossjones/pocketsphinx-demo
4b5d1e70cda2effd346d08068d79869a63044f12
8326f195aad8dd4a82969d18802b2dd6f554a736
refs/heads/master
2022-03-01T19:10:02.914861
2022-02-07T22:18:58
2022-02-07T22:18:58
147,986,418
1
1
null
2022-02-07T22:18:59
2018-09-09T02:26:53
Python
UTF-8
Python
false
false
4,385
#!/usr/bin/env python # -*- coding: utf-8 -*- # Runs against http://www.speech.cs.cmu.edu/tools/lmtool-new.html import argparse import os import re import requests import requests.compat import subprocess import xml.etree.ElementTree as ET import glob import os import sys CMU_URL = 'http://www.speech.cs.cmu.edu/cgi-...
[ "malcolm@adobe.com" ]
malcolm@adobe.com
37e5ae9413491c409ef06a7ca7dc5b740cb835c0
6527b66fd08d9e7f833973adf421faccd8b765f5
/yuancloud/recicler/l10n_fr/__init__.py
eddad5a3a21946f832d788801278b214f5651574
[]
no_license
cash2one/yuancloud
9a41933514e57167afb70cb5daba7f352673fb4d
5a4fd72991c846d5cb7c5082f6bdfef5b2bca572
refs/heads/master
2021-06-19T22:11:08.260079
2017-06-29T06:26:15
2017-06-29T06:26:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
# -*- coding: utf-8 -*- # Part of YuanCloud. See LICENSE file for full copyright and licensing details. # Copyright (c) 2008 JAILLET Simon - CrysaLEAD - www.crysalead.fr import l10n_fr
[ "liuganghao@lztogether.com" ]
liuganghao@lztogether.com
ce265573cd9e8e8ea177dbcbd10ed926baa24810
c0cffe5f31070ac163e3963b8616da10d131e355
/env/lib/python3.6/site-packages/Crypto/SelfTest/PublicKey/test_import_RSA.py
3a1025caf3645d082392cee4bd4c1dc1c1b08b5a
[ "Apache-2.0" ]
permissive
SanaAwan5/smart_contracts7
1bc9a0bf2a700e527436d1f6cee8e0251c0e651b
40a487cb3843e86ab5e4cb50b1aafa2095f648cd
refs/heads/master
2021-08-31T21:50:35.086907
2019-06-25T05:22:19
2019-06-25T05:22:19
193,639,676
0
1
Apache-2.0
2021-08-11T03:42:07
2019-06-25T05:22:07
Python
UTF-8
Python
false
false
22,372
py
# -*- coding: utf-8 -*- # # SelfTest/PublicKey/test_importKey.py: Self-test for importing RSA keys # # =================================================================== # The contents of this file are dedicated to the public domain. To # the extent that dedication to the public domain is not available, # everyone i...
[ "sanaawan@ittc.ku.edu" ]
sanaawan@ittc.ku.edu
88593df64b96aa839c278ff284bb0972bef302b9
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03130/s346683870.py
ccc2fe1a7a8ce3fc8e6453f8313d5201025dc521
[]
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
269
py
graph = [[]for _ in range(4)] for i in range(3): a,b = map(int,input().split()) a-= 1 b-= 1 graph[a].append(b) graph[b].append(a) maxa = 0 for i in range(4): maxa = max(len(graph[i]),maxa) if maxa == 3: print("NO") exit(0) print("YES")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
eae135b1f4503d715b1111fbf0d2c826298dcf5e
a9e81c87022fdde86d47a4ec1e74791da8aa0e30
/python-learning/libraries/numpy-learning/misc/01-display-wav-file.py
b1d80bb87736a15c6f8b158ebeb38af073933143
[ "Apache-2.0" ]
permissive
ymli1997/deeplearning-notes
c5c6926431b7efc1c6823d85e3eb470f3c986494
f2317d80cd998305814f988e5000241797205b63
refs/heads/master
2020-07-29T11:15:43.689307
2018-05-05T10:58:18
2018-05-05T10:58:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
# -*-coding:utf-8 -*- # 加载WAV音频文件 import scipy import matplotlib.pyplot as plt sample_rate,data = scipy.io.wavfile.read('datas/test.wav') #plt.subplot(2,1,1) plt.title('Original') plt.plot(data) plt.show()
[ "kkoolerter@gmail.com" ]
kkoolerter@gmail.com
e0f3c99e2b0a180e043c2ac1a64796be9a522351
fc59ab1d8fabbb676c9b9a38ef30d1235d152407
/deepcell_scripts/make_training_data_scripts/make_training_data_nuclei_broad.py
f1c054f6a5965c28ac36c90dfd9ad095eb73abdb
[ "MIT" ]
permissive
vanvalen/deepcell-tf
fb5ab3f5266cc3a2ebc8c7a9399926ec07eda2c2
72928abe48f12955d6531437aa85a034246bad4d
refs/heads/master
2022-12-10T05:23:15.295246
2018-09-25T16:00:32
2018-09-25T16:00:32
104,045,090
7
4
MIT
2022-11-22T01:56:08
2017-09-19T08:00:17
Python
UTF-8
Python
false
false
1,903
py
""" make_training_data.py Executing functions for creating npz files containing the training data Functions will create training data for either - Patchwise sampling - Fully convolutional training of single image conv-nets - Fully convolutional training of movie conv-nets Files should be plased in training direct...
[ "vanvalen@gmail.com" ]
vanvalen@gmail.com
133819cced900c390d0d4d548b2b203082f642d3
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/galex_j21543-2359/sdB_GALEX_J21543-2359_coadd.py
7e8bc98e5117f6ce9219d6f4490d9e51315511d9
[]
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
455
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[328.591667,-23.999769], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_GALEX_J21543-2359/sdB_GALEX_J21543-2359_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTC...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
8adaf619c04d091f49bb82b2f307bfcb24c7df2f
6dd08ec6b4f6351de8450a3d7e592fd6b4994119
/cbase/cli/cbase-cli-1.8.0/processor.py
6e3e6bfe43d27d56f8917187db0fba58da1acf10
[ "Apache-2.0" ]
permissive
zhgwenming/appstack
d015e96b911fe318f9fba1bdeeea9d888d57dfba
8fe6c1dfc2f5ed4a36c335e86ae28c17b3769276
refs/heads/master
2021-01-23T13:30:19.507537
2015-11-09T06:48:35
2015-11-09T06:48:35
7,576,644
1
2
null
2016-01-05T09:16:22
2013-01-12T15:13:21
C
UTF-8
Python
false
false
4,102
py
import datetime import logging import util_cli as util import sys import cluster_stats import diskqueue_stats import node_stats import stats_buffer capsules = [ (node_stats.NodeCapsule, "node_stats"), (cluster_stats.ClusterCapsule, "cluster_stats"), (diskqueue_stats.DiskQueueCapsule, "diskqueue_stats"), ...
[ "zhgwenming@gmail.com" ]
zhgwenming@gmail.com
8d9b3d080e6d8b95a7bdbe9bbe736b8fe2aa2043
3e1d9a25426e2a157a69f3c4c6c41b5216deb8de
/LeetCode/Python/Medium/ProductOfAnArrayExceptSelf.py
ed61c0da034f3d4686fc53804ed9e4bb50ffa58b
[]
no_license
jashansudan/Data-Structures-and-Algorithms
4e420586bc773c5fc35b7ce7be369ca92bf51898
e38cfb49b3f9077f47f1053207f4e44c7726fb90
refs/heads/master
2021-01-12T10:47:05.754340
2018-02-13T01:01:50
2018-02-13T01:01:50
72,697,093
3
0
null
null
null
null
UTF-8
Python
false
false
373
py
class Solution(object): def productExceptSelf(self, nums): multSoFar = 1 product = [] for i in range(len(nums)): product.append(multSoFar) multSoFar *= nums[i] multSoFar = 1 for i in range(len(nums) - 1, -1, -1): product[i] *= multSoFar ...
[ "jashansudan@gmail.com" ]
jashansudan@gmail.com
7b7207948fb6877ea064d6d5f3f5fef0ad7d2ff4
00c6ded41b84008489a126a36657a8dc773626a5
/.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210713191555.py
92ddeb2ab2c326dba58d28c240a65c8fb06b8eda
[]
no_license
12libao/DEA
85f5f4274edf72c7f030a356bae9c499e3afc2ed
1c6f8109bbc18c4451a50eacad9b4dedd29682bd
refs/heads/master
2023-06-17T02:10:40.184423
2021-07-16T19:05:18
2021-07-16T19:05:18
346,111,158
0
0
null
null
null
null
UTF-8
Python
false
false
2,883
py
# author: Bao Li # # Georgia Institute of Technology # import sys import os sys.path.insert(0, os.getcwd()) import numpy as np import matplotlib.pylab as plt import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse import Sizing_Method.Aerodynamics.Ae...
[ "libao@gatech.edu" ]
libao@gatech.edu
09cd3a28eac8cfbd897e5a94c8eba0ba38c431e8
a2e638cd0c124254e67963bda62c21351881ee75
/Extensions/networkx/FPythonCode/networkx.readwrite.sparse6.py
32400816ccf8e43c6c1b7c80f9058cec779c24d5
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,501
py
# Original author: D. Eppstein, UC Irvine, August 12, 2003. # The original code at http://www.ics.uci.edu/~eppstein/PADS/ is public domain. # Copyright (C) 2004-2018 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # Tomas Gavenciak <gavento@ucw.cz> ...
[ "nencho.georogiev@absa.africa" ]
nencho.georogiev@absa.africa
7b206a530a377553c6e75b4f237d66a82395348a
70347edafc49d10b292bbef202ebede8a06b6372
/build/fmauch_universal_robot/ur_e_description/catkin_generated/pkg.develspace.context.pc.py
7e17bb99266595c3e63880df7ad0ea8c55bd18d7
[]
no_license
larsleyendecker/Robotics_UniversalRobots_ROS
2ff6a1137ec99c6f01319c49ab0bdfc9215a92d6
984fa9c7e7d28da1d1af3b4cde4b18fd68081fe0
refs/heads/master
2022-11-03T16:58:56.666160
2020-06-08T16:32:50
2020-06-08T16:32:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "ur_e_description" PROJECT_SPACE_DIR =...
[ "lars.leyendecker@rwth-aachen.de" ]
lars.leyendecker@rwth-aachen.de
544f9be2c552c190ebcda156133769def087ced1
b88ddf1bbc0e203b403584428078d73593715454
/factory/factoryExample/big_chair.py
729fc12a313a1c27cdf96ff1b74e462b0ae783e9
[]
no_license
keys4words/designPatterns
ef28289a92d68652f3d34a9a609aebe986e785bb
0d6ebd5dc1f8c3be725f7405bb785436eec37a89
refs/heads/main
2023-04-15T01:15:27.231107
2021-04-20T13:31:25
2021-04-20T13:31:25
348,728,039
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
from interface_chair import IChair class BigChair(IChair): "The Big Chair Concrete Class implements the IChair interface" def __init__(self): self._height = 80 self._width = 80 self._depth = 80 def get_dimensions(self): return { "width": self._width, ...
[ "keys4words@gmail.com" ]
keys4words@gmail.com
353a047cd0c89b8f7a31c96981a4ba676aad69f8
b5bde703700ccf5b575f2382d357c0d2f5bd306c
/code/code_for_submission/.metadata/.plugins/org.eclipse.core.resources/.history/b4/3009c90f64f3001416d696721b5bd529
c858569f2505a40441ab79ebccf74c8eee0b12ed
[]
no_license
lordwarlock/IRFinalProj
6a4a4a8d880f27fcd38054125c5e695c179863d6
cc2b3003fb41a63cb85c84bbdf13c20d8a7e1cba
refs/heads/master
2016-08-07T08:52:46.564262
2015-05-06T21:48:42
2015-05-06T21:48:42
33,019,191
1
0
null
null
null
null
UTF-8
Python
false
false
2,459
#!/usr/bin/python import unicodedata import club_search import match_search import meta_search import player_search import sys sys.path.append('./club_query') import Club sys.path.append('./match_query') import match_query sys.path.append('./player_query') import player_query def search(data): '''Elastic sea...
[ "apple@Junchao.local" ]
apple@Junchao.local
acc031794061ed9e13c70c65391e9e4ea3f7a124
21ec4099cbd63d40d936173c2c7c879f91aebf64
/naomi/main.py
1aafe353a351cbd111150b849e1a37ae6b98e5d9
[]
no_license
kwarwp/gertrude
707c249143d5acb5b3423ae5e7a3d6189c20a346
9ebe07f1350e6d0e5c6a87639ab93965142fc2b1
refs/heads/master
2022-07-25T20:24:15.002210
2022-07-14T12:30:30
2022-07-14T12:30:30
129,902,185
0
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
# gertrude.naomi.main.py from _spy.vitollino.main import * #Imagens do jogo IMG = { 'mario' : 'http://www.imagenspng.com.br/wp-content/uploads/2015/02/super-mario-mario-04.png', 'sonic' : 'https://vignette.wikia.nocookie.net/epic-rap-battles-of-cartoons/images/d/d0/Sonic.png/revision/latest?cb=20170...
[ "38007182+kwarwp@users.noreply.github.com" ]
38007182+kwarwp@users.noreply.github.com
23fee407499ed6d96da0cec6035a0179fb625a75
f9a1528c32d868d1b716206e76bc8435996a3fc5
/tests/python/test_shared_interpreter.py
0f810cfe8997f9ecce661611cc282f28b059bd5b
[ "Zlib" ]
permissive
karpierz/jtypes.jep
4351e8559a1a5f5e190502d0a36c8b5efd9a7192
0e2347c3144022313802183c75fc8944ac6ddef5
refs/heads/master
2021-09-29T02:31:47.320675
2018-11-22T23:28:05
2018-11-22T23:28:05
119,164,906
1
0
null
null
null
null
UTF-8
Python
false
false
463
py
from __future__ import absolute_import import unittest import sys from .jep_pipe import jep_pipe # <AK> was: from jep_pipe from .jep_pipe import build_java_process_cmd # <AK> was: from jep_pipe @unittest.skipIf(sys.platform.startswith("win"), "subprocess complications on Windows") class TestSharedInter...
[ "akarpierz@gmail.com" ]
akarpierz@gmail.com
103596712499e37f4dc32cd1ebfc10e50e64cf88
6d5aeb9128d4ecba547d3f7d9d7bbd2667b5b919
/web_flask/3-python_route.py
1a6a465bc6429f20c8ee19a72e7e8485013d2368
[]
no_license
BD20171998/AirBnB_clone_v2
61d65290e6e4995e4677b3de0e189b570c04c5ec
94b2b296c123f9dcab17932da45a8461bb23d8e6
refs/heads/master
2021-05-17T05:45:27.678773
2020-05-28T19:34:42
2020-05-28T19:34:42
250,656,870
0
1
null
null
null
null
UTF-8
Python
false
false
810
py
#!/usr/bin/python3 """utilizing Flask for Web app frame work""" from flask import Flask, escape app = Flask(__name__) app.url_map.strict_slashes = False @app.route("/") def home(): """method that defines '/' route for Flask web application""" return "Hello HBNB!" @app.route("/hbnb") def hbnb(): """me...
[ "robert.deprizio@gmail.com" ]
robert.deprizio@gmail.com
cb57b818c058336cdacf21da3b885c029c605675
8fc7bd0de99fb98171d15f0c2e3c28f545b3356e
/{{cookiecutter.out_dir}}/src/{{cookiecutter.django_project_name}}/settings/dev.py
ee5ba7dd604195b1517bf907a16048d378d95381
[ "BSD-2-Clause" ]
permissive
corpusops/cookiecutter-django
529a9a6787b77e9282a8e9446ce5e2f7f6ad43a7
329c359675cbfc46c410472baf696ff2bfddf52e
refs/heads/v2
2023-06-22T02:56:53.659651
2025-02-04T19:39:40
2023-06-19T18:50:30
161,518,054
1
3
NOASSERTION
2023-06-19T12:19:10
2018-12-12T16:50:38
Python
UTF-8
Python
false
false
1,443
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import logging import os try: from django.utils import six except ImportError: import six from .base import * # noqa os.environ['RELATIVE_SETTINGS_MODULE'] = '.dev' INSTALLED_APPS += tuple([ # noqa {%- if cookiecutt...
[ "kiorky@cryptelium.net" ]
kiorky@cryptelium.net
6621c8968076903e486fb3eed827262352260454
3d27f210934579750aaba7af09f096e7f2266329
/os/lab9/create_proc_details.py
e361da4ecd3b1f77361deb52c276de240de7fb99
[]
no_license
recovery12/courses
6e8cfb9b9efd61b8ae19b5deee99a1d98d8632ab
46a34334160ec95124bd7b12e8bb58b79913791b
refs/heads/master
2023-01-11T22:36:29.039522
2020-01-29T11:39:10
2020-01-29T11:39:10
154,445,580
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
#!/usr/bin/python3 import os from collections import namedtuple try: import numpy as np except: print("You don't have numpy, so please install it.") os.system("sudo pip3 install numpy") Constants = namedtuple('Constants', ['page_llimit', 'page_ulimit', 'behave_l', 'behave_u']) const = Constants(5, 7, 0, ...
[ "anurag.peddi1998@gmail.com" ]
anurag.peddi1998@gmail.com
e34c1c3072a7da412a47a7d25b15c25b6f4dbc86
0103046cd77e9f86ccde477736de36bba766ceb6
/src/sentry/integrations/pagerduty/integration.py
dc6334bbe3c0d3a5d4e3bf2a4d403e4de7e009e1
[ "BUSL-1.1", "Apache-2.0" ]
permissive
kaozdl/sentry
ad41ada649a20300e9f2fe69050200cfbf738a63
63d698f5294f64a8c206b4c741e2a11be1f9a9be
refs/heads/master
2021-06-21T18:24:21.713064
2021-03-04T19:45:20
2021-03-04T19:45:20
198,681,569
0
0
BSD-3-Clause
2019-07-24T17:32:29
2019-07-24T17:32:28
null
UTF-8
Python
false
false
7,383
py
from django.utils.translation import ugettext_lazy as _ from django.db import transaction from sentry import options from sentry.utils import json from sentry.utils.compat import filter from sentry.utils.http import absolute_uri from sentry.integrations.base import ( IntegrationInstallation, IntegrationFeatur...
[ "noreply@github.com" ]
kaozdl.noreply@github.com
56da99d5344871c630963a82b25a23641b18ddf4
7ea9a822bfdbb9931208a48958f7aabbaa9706e3
/deepharmony/tf_utils/__init__.py
d969a1bb02fe4750e39c739891289f0214ea328f
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT", "LicenseRef-scancode-other-permissive", "Apache-2.0", "BSD-2-Clause" ]
permissive
he-actlab/deepharmony
f4fa54ffb432563859045c54294925666997820c
b6d29e5bde714040ef62a04dd2daf6eb33d172b5
refs/heads/master
2023-03-30T05:46:48.358349
2019-12-13T21:37:03
2019-12-13T21:37:03
354,714,056
0
1
null
null
null
null
UTF-8
Python
false
false
23,828
py
import tensorflow as tf import time from datetime import datetime import math from pynvml import * import tensorpack import os from tqdm import tqdm, trange import numpy as np from deepharmony.tf_utils.dataset import ImageNetProducer from deepharmony.tf_utils.helper import DataSpec def time_tensorflow_run(session, t...
[ "sean.kinzer@gmail.com" ]
sean.kinzer@gmail.com
03dda709df7d0c433c3546faf076d60d06596f4e
8015f1c62a2cb4efd21aa8938336913bf8117868
/bamap/ba2652.pngMap.py
27653563d780720af87968c1fff2c921d7651d85
[]
no_license
GamerNoTitle/Beepers-and-OLED
675b5e3c179df0f0e27b42bf594c43860d03b9af
afe1340e5394ae96bda5f9022a8a66824368091e
refs/heads/master
2020-04-20T00:09:47.122471
2019-04-29T04:59:35
2019-04-29T04:59:35
168,515,579
4
2
null
null
null
null
UTF-8
Python
false
false
8,468
py
ba2652.pngMap = [ '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', '00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', '0000000000000000000000000000000000000...
[ "bili33@87ouo.top" ]
bili33@87ouo.top
061c6034846a3b91de00206c5366a3cc43f3c57c
07af444dafa5bde373b0730e92d67e455d4ff4df
/results/StackOverflowRepaired/s62148508_repaired_0.py
9e8e8d1be13f213a3f6954103974c5070ab484fc
[]
no_license
tensfa/tensfa
9114595b58a2e989780af0c348afb89a2abb04b4
415dcfaec589b0b14c5b9864872c912f3851b383
refs/heads/main
2023-06-30T14:27:38.217089
2021-08-03T01:33:30
2021-08-03T01:33:30
368,465,614
2
3
null
null
null
null
UTF-8
Python
false
false
1,445
py
from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Conv2D, BatchNormalization, MaxPooling2D, Activation, Flatten, Dense, Dropout import numpy as np n = 100 class_n = 7 input_array = np.array(np.random.random((n, 48, 48, 1)), dtype=np.float32) output_array = np.random.randint(0, class_n...
[ "tensfa@yeah.net" ]
tensfa@yeah.net
06498ecc47b4c39ab3d1967d35ba7324df4ae2a4
08b60908a2a57784825316b426f85a8b1b4a81d8
/setup.py
f4e529db517020c2a0ade9a04ff762a71cb39a9e
[]
no_license
jeffbuttars/Vimdown
fcaa8230ab6b04a7f0f15c1bcdcf7e716f7ffb4b
cb2dab2d78f0524d0ff886b09ddc163d274a4527
refs/heads/master
2021-08-09T22:57:24.659912
2012-03-11T19:51:59
2012-03-11T19:51:59
3,224,352
44
4
null
2021-06-02T21:45:19
2012-01-20T06:31:19
VimL
UTF-8
Python
false
false
1,442
py
from distutils.core import setup, Command from unittest2 import TextTestRunner, TestLoader import vimdown.tests cmdclasses = dict() class TestCommand(Command): """Runs the unit tests for vimdown""" user_options = [] def initialize_options(self): """@todo: Docstring for initialize_options ...
[ "jeffbuttars@gmail.com" ]
jeffbuttars@gmail.com
b5adb1d35c69fc14d37cf6f618fdc5f119ac1949
3ba2d4091332b9d0a2b053f15a4d4ce4ae1c1ef0
/700、二叉搜索树中的搜索.py
6a835edbb34cdef208bc8d2ad7c06683618dd91a
[]
no_license
ganhan999/ForLeetcode
126272d34250035abda6c2d67222c2c186a3f80b
9980a9e4bf448b2cf3fed98891a54b6d202a64db
refs/heads/master
2023-05-01T14:21:49.883692
2021-05-12T08:59:51
2021-05-12T08:59:51
348,708,572
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
""" 给定二叉搜索树(BST)的根节点和一个值。 你需要在BST中找到节点值等于给定值的节点。 返回以该节点为根的子树。 如果节点不存在,则返回 NULL。 例如, 给定二叉搜索树: 4 / \ 2 7 / \ 1 3 和值: 2 你应该返回如下子树: 2 / \ 1 3 在上述示例中,如果要找的值是 5,但因为没有节点值为 5,我们应该返回 NULL。 。 """ """ 递归 """ class Solution: def searchBST(self, root: TreeNode, val: int) ...
[ "940320304@qq.com" ]
940320304@qq.com
0132d96202ec9e5ead4750c4423b69074a790dcc
dcbef06d5a00f07756339b9e62c684dec2fee425
/tests/distutils/example_5_versioneer_setuptools32/runner
225adb1b07c7d1397cef8787c68ebb25fdff4efe
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Nuitka/Nuitka
f9543d8d95bfa0b81d4e60af0dfad99fb72893a4
d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2
refs/heads/develop
2023-08-28T14:00:32.861328
2023-08-27T09:16:45
2023-08-27T09:16:45
9,626,741
8,573
599
Apache-2.0
2023-09-13T02:49:41
2013-04-23T15:40:33
Python
UTF-8
Python
false
false
285
#!/usr/bin/env python import some_package as pkg print("Hello distutils world!") # We are importing the newly installed package and we want to check that the # correct version is being set based on the file that gets changed during # build time. assert pkg.__version__ == "0+24601"
[ "kay.hayen@gmail.com" ]
kay.hayen@gmail.com
22d73bf4575c23b51236d56c3b2f22eee17c967d
99fa70b9ae5d13c13382b65766868f05d1080b8d
/test/test_branch.py
6847d5e1fb017d8e933c86d3f1cc8d63a3cbbe95
[]
no_license
Echie/phrase-python
fb3f9408c5cf6d90d81dfdfdabb4f80fcfd47579
0b67361656893e4f685f5451262310708049c488
refs/heads/master
2023-03-04T11:43:37.751768
2021-02-12T14:18:48
2021-02-12T14:18:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,925
py
# coding: utf-8 """ Phrase API Reference The version of the OpenAPI document: 2.0.0 Contact: support@phrase.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import phrase_api from phrase_api.models.branch import Branch # n...
[ "support@phrase.com" ]
support@phrase.com
54dbb2fc2214dee4471ecd4584e2071c82ded3f0
22b750bfb534e1032ae751fb3c7c027a9859308d
/pi3d/shape/MultiSprite.py
15f6515c99b9c85465afb6aeb586db06a2c57a51
[ "MIT" ]
permissive
stuaxo/pi3d
be6f8e3b45b5e5ca2c485062dc1cb49542972b47
7bbc0734226ce58f2f43245b59e10481fb7aba93
refs/heads/master
2021-01-18T09:51:27.174538
2016-04-25T18:00:16
2016-04-25T18:00:16
62,240,180
0
0
NOASSERTION
2019-04-03T14:23:20
2016-06-29T16:13:56
Python
UTF-8
Python
false
false
2,581
py
from pi3d.constants import * from pi3d.Texture import Texture from pi3d.Buffer import Buffer from pi3d.Shape import Shape class MultiSprite(Shape): """ 3d model inherits from Shape, this is a series of Sprites edge to edge to allow larger images than the maximum size of 1920 imposed by the Texture class """ ...
[ "patrick@eldwick.org.uk" ]
patrick@eldwick.org.uk
b0d031fd94e221f29f327250ee4b329ee3f3dcfe
623865cffb6281cd240f867d425cae5d5a105491
/demo/prg1.py
0e787c2e88fd18c0af2b36718971f6cce73644c2
[]
no_license
SushilPudke/PythonTest
7d158bac40fbe153e8c7f9afb6703d0dabca71fc
5eee5c05fa05e57a63ef1cfbc0b9bd8961bcd88b
refs/heads/master
2023-02-03T08:14:50.299983
2020-12-21T07:17:18
2020-12-21T07:17:18
323,240,607
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
# demonstrating main() funciton in python def f1(): print("I am in f1 definition ") print(chr(65)) def facto(n): f=1 while n>0: f=f*n n=n-1 return f def main(): print("I am in main Funtion") f1() n=5 print("Factorial of ",n,"==",facto(n)) if __name__=="__main__...
[ "74047164+SushilPudke@users.noreply.github.com" ]
74047164+SushilPudke@users.noreply.github.com