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
32471ddbd0a025de389d955a990ab2f6f3e858c3
94f180b4b0b0a699d6948fd5e1216d16d6735edc
/source-code/Map Sum Pairs 677.py
4e7990ac2f79efb70905565c8fdeeb02907fc31e
[ "MIT" ]
permissive
ttungl/Coding-Interview-Challenge
7093b7f8da0c03abaf2f61340384cdc15c7a31e7
d80c3e15468d50b42ee53fcc73e9326c6c816495
refs/heads/master
2021-09-15T05:25:27.192040
2018-05-26T19:02:33
2018-05-26T19:02:33
115,586,997
0
0
null
null
null
null
UTF-8
Python
false
false
2,481
py
# 677. Map Sum Pairs # ttungl@gmail.com # Implement a MapSum class with insert, and sum methods. # For the method insert, you'll be given a pair of (string, integer). The string represents the key and the integer represents the value. If the key already existed, then the original key-value pair will be overridden to ...
[ "noreply@github.com" ]
ttungl.noreply@github.com
1d110680a248ff7b57501497a49da59bfba00b86
a9fd2e227f7f529fbec50caa82d5962019c5f3ee
/account/views.py
a0e85245023aad2768d6dcdd5e24d8ad8acb1832
[]
no_license
jsparmani/TeekaSchedule
1477f3b38aec484c77276fc0f731c85c12fa34d2
76c01dd742f692cfd50c299807413b99a20c5535
refs/heads/master
2020-07-15T06:36:11.500851
2019-09-01T05:46:57
2019-09-01T05:46:57
205,501,697
0
0
null
null
null
null
UTF-8
Python
false
false
3,949
py
from django.shortcuts import render, redirect from . import forms import random from . import models from django.contrib.auth import authenticate from django.contrib.auth import login as auth_login from django.contrib.auth.models import User from datetime import datetime from location import models as loc_models import...
[ "jsparmani@gmail.com" ]
jsparmani@gmail.com
3f4cb50a830c6cc835b54c6700548fc256c8fb0b
5ef46abb67b07646537b4fc1d5880fdc91e412b2
/Sea/adapter/couplings/Coupling2DCavities3D.py
01b99fed556d8c6968ba029fb6095735b7343e64
[]
no_license
python-acoustics/Sea
3f13f8d0d39200a4b35f9edfe8e3a7b2783c6966
e30b6dc59d8ab02cd41924f7b6c14d0d1e77e19e
refs/heads/master
2016-09-05T16:59:01.602835
2013-04-16T15:29:54
2013-04-16T15:29:54
7,466,520
7
2
null
null
null
null
UTF-8
Python
false
false
1,060
py
import numpy as np import Sea from Coupling import Coupling class Coupling2DCavities2D(Coupling): """ Coupling for cavity2D to cavity transmission. """ @property def impedance_from(self): """ Choses the right impedance of subsystem_from. Applies boundary conditions corr...
[ "fridh@fridh.nl" ]
fridh@fridh.nl
829b5c5c784978dd392e43c8f6430520201503fe
2a3743ced45bd79826dcdc55f304da049f627f1b
/venv/lib/python3.7/site-packages/bokeh/util/tests/test_dependencies.py
f27c2fd625febb1ffaad405c649ce2d9ae7294d0
[ "MIT" ]
permissive
Dimasik007/Deribit_funding_rate_indicator
12cc8cd7c0be564d6e34d9eae91940c62492ae2a
3251602ae5249069489834f9afb57b11ff37750e
refs/heads/master
2023-05-26T10:14:20.395939
2019-08-03T11:35:51
2019-08-03T11:35:51
198,705,946
5
3
MIT
2023-05-22T22:29:24
2019-07-24T20:32:19
Python
UTF-8
Python
false
false
2,956
py
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
[ "dmitriy00vn@gmail.com" ]
dmitriy00vn@gmail.com
9097821fe104f0d2f6befb909014004251bafa8e
1524720d6480ad0a51b6fd8ff709587455bf4c5d
/tums/trunk/release/lib/nevow/guard.py
818f44ae12232b6d0892ae314cb15ec6bcb8c75c
[]
no_license
calston/tums
2bd6d3cac5232d2ccb7e9becfc649e302a310eab
b93e3e957ff1da5b020075574942913c8822d12a
refs/heads/master
2020-07-12T03:46:43.639800
2018-05-12T10:54:54
2018-05-12T10:54:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,278
py
# -*- test-case-name: nevow.test.test_guard -*- # Copyright (c) 2004-2008 Divmod. # See LICENSE for details. """ Resource protection for Nevow. If you wish to use twisted.cred to protect your Nevow application, you are probably most interested in L{SessionWrapper}. """ __metaclass__ = type import random import time ...
[ "junwin@gmail.com" ]
junwin@gmail.com
5f93747a95298ff1f96092486f57e56a702b47cf
9f1039075cc611198a988034429afed6ec6d7408
/tensorflow-stubs/python/keras/engine/training.pyi
87a6a2450c166433875a253c15926a2225a32a76
[]
no_license
matangover/tensorflow-stubs
9422fbb1cb3a3638958d621461291c315f9c6ec2
664bd995ef24f05ba2b3867d979d23ee845cb652
refs/heads/master
2020-05-23T12:03:40.996675
2019-05-15T06:21:43
2019-05-15T06:21:43
186,748,093
0
0
null
null
null
null
UTF-8
Python
false
false
4,674
pyi
# Stubs for tensorflow.python.keras.engine.training (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from tensorflow.python.data.ops import dataset_ops as dataset_ops, iterator_ops as iterator_ops from tensorflow.python.data.ops.dataset_ops import Dataset as Dataset from tensorf...
[ "matangover@gmail.com" ]
matangover@gmail.com
1a6d659303222b5d59f9083a0bc38b15e669503e
1025bc2aa5aaa40970ad1a51d8d0b1202a1ea11e
/StatTools/python/RooFunctorFromWS.py
61a6d6dc6bf708de8fef6714998d0555c78dac99
[]
no_license
uwcms/FinalStateAnalysis
f2be318546728621676a4b90ed2678b2560c94e6
bcb164a8e27d459a9ac438780f6c8730d3e856bf
refs/heads/miniAOD_9_4_0
2022-11-09T01:28:52.199025
2019-03-15T19:25:10
2019-03-15T19:25:10
5,201,989
5
32
null
2020-11-19T17:02:32
2012-07-27T07:51:18
Python
UTF-8
Python
false
false
7,941
py
''' RooFunctorFromWS Builds a functor from a function in a RooWorkspace. This could be improved with cython. Author: Evan K. Friis, UW Madison >>> from FinalStateAnalysis.Utilities.rootbindings import ROOT >>> file = ROOT.TFile('../test/test_RooFunctorFromWS.root') >>> ws = file.Get('fit_efficiency') >>> functor =...
[ "Silvia.Taroni@cern.ch" ]
Silvia.Taroni@cern.ch
6f821c9d5633f1d86773ad0b9df3158f4d007975
a99372d1c71be907e1fbfb4f7287363ff1f51f56
/accounts/migrations/0002_auto_20190125_0913.py
ad9b20ba3f75f20c8f1d15c91ef73f31aca5bc2a
[ "MIT" ]
permissive
domambia/csdigital-gs1kenya-internal-erp
43045c219b627453f30da9c6bd62335985f81927
be36378ad7b960d074dd5841aaadc849ac6356de
refs/heads/master
2022-12-10T13:49:55.516938
2021-10-31T15:08:29
2021-10-31T15:08:29
164,619,152
17
14
null
2022-12-08T01:44:41
2019-01-08T09:59:34
Python
UTF-8
Python
false
false
8,523
py
# Generated by Django 2.1.5 on 2019-01-25 09:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AlterField( model_name='employee', name='county', ...
[ "omambiadauglous@gmail.com" ]
omambiadauglous@gmail.com
f3bfb9ab8e84fa184357abde57024da707ea358c
9e371869045a2f091f633e9335ab091b368f254c
/src/n_hop.py
0d97d1f5f79216f73ebf2f9686a240b122f69977
[ "MIT" ]
permissive
liaopeiyuan/information-obfuscation-demo
e10e0bedf49a4e92d387b1c72855455a6a6fb34b
018cb6a2cce5033bf836d78aa8824204ec5553f7
refs/heads/main
2023-07-14T12:06:59.544186
2021-08-13T11:06:14
2021-08-13T11:06:14
395,622,445
2
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
# -*- coding: utf-8 -*- from models import (GAL_Nhop, NeighborClassifier, NodeClassifier, SharedBilinearDecoder) from node_attack import NodeAttackRunner class NHopAttackRunner(NodeAttackRunner): def __init__(self, args): super().__init__(args) def get_base_model(self): d...
[ "alexander_liao@outlook.com" ]
alexander_liao@outlook.com
14bc832d47b3da2154b8587a674dcb20b9082d4a
02c30e3e2c0f701d77f0a23591027ae62f37a512
/libs/uix/baseclasses/ico_dir/icobazaar.py
d1952e1f8fc355ded5e1550906d1a7a946896863
[ "MIT" ]
permissive
mkbeh/CRyptoLab
5341a48a403ecf23e10248c46e919c1381275551
424c938c16c9264e99eff71e4c1a27ca65314d42
refs/heads/master
2022-12-22T06:39:36.909313
2018-09-25T14:40:32
2018-09-25T14:40:32
144,743,677
0
2
MIT
2022-12-08T02:22:14
2018-08-14T16:09:19
Python
UTF-8
Python
false
false
4,537
py
# -*- coding: utf-8 -*- from kivy.lang.builder import Builder from kivy.properties import ObjectProperty from kivy.cache import Cache from kivy.uix.boxlayout import BoxLayout from libs.customwidgets.ico.cardicobazaar import CardIcoBazaar from libs.customwidgets.popupcm import PopupCM, PopupCMContent from libs.utils im...
[ "mkbehforever@gmail.com" ]
mkbehforever@gmail.com
e5c03cf87ab1e87af4b7366b9c226547f5a60ddd
4e229e075a3f5e71a33525981fa51fd7878c9715
/sacrerouge/metrics/pyramid_rouge.py
6f3230d33d14a5882664976a1c80b37674095cf1
[]
no_license
CogComp/content-analysis-experiments
57d68441272c39b687656976d20eddd817c28250
f6abd72029b6853627ddd191979f105a9385eed7
refs/heads/master
2023-06-27T00:29:34.115264
2021-08-04T14:36:17
2021-08-04T14:36:17
305,768,372
2
1
null
null
null
null
UTF-8
Python
false
false
16,210
py
import os import re from collections import defaultdict from nltk.stem import PorterStemmer from typing import Dict, List, Set, Tuple from sacrerouge.common import DATA_ROOT from sacrerouge.data import MetricsDict, Pyramid, PyramidAnnotation from sacrerouge.data.fields import PyramidField, PyramidAnnotationField from ...
[ "danfdeutsch@gmail.com" ]
danfdeutsch@gmail.com
ad68caba3c69fd1be9e8dfe396a14348fe8f627a
c79a397e81ecefbf66236d763e86a2d4a431449f
/union_find/union_find_2.py
97d4712392ff9e40b3fce8913eb53141654f497b
[]
no_license
liweiwei1419/Algorithms-Learning-Python
f9acd83598cfa38dbc35e93bd5ff4655a9836867
0288097ea6d49d6fc224c3879709ac0d6e9e5b97
refs/heads/master
2021-07-12T23:16:29.938315
2020-06-17T05:25:14
2020-06-17T05:25:14
162,683,186
12
8
null
null
null
null
UTF-8
Python
false
false
1,425
py
# 并查集第 2 版:设置 parent 数组,查找就变得慢了一些,得一直向上查找; # 合并的时候,就快了,把其中一个节点的父节点指向另一个节点即可。 # 参考:慕课网:liuyubobobo。 class UnionFind2: def __init__(self, n): # 直接就初始化了,每个元素的 id 就是自己 # 有多少个元素,就有多少个类 self.parent = [i for i in range(n)] self.count = n # 数据的个数 def find(self, p): """ ...
[ "121088825@qq.com" ]
121088825@qq.com
79151c6482fa1c5ea36b8410d8aa1744130ace4d
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/network/v20200601/get_network_security_group.py
f352aef2112ebad1522df70a471a32ab1c6f2ce5
[ "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
8,422
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
bef751699b606c824c94c94c6c1eafcd6fb8ca0d
d6760033989f2abbd94d68651eb54a8aac4ac61f
/EduNLP/I2V/i2v.py
c997537646c7d0274d0238f22d02aaf311c0d5fe
[ "Apache-2.0" ]
permissive
astrojuanlu/EduNLP
ba636cf39adc1580d0c2f3bf6f0646139f406c72
51bbf2e20828f12eed2f9cd8d176c8650ec357ef
refs/heads/master
2023-07-16T23:27:38.606705
2021-08-13T11:38:46
2021-08-13T11:38:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,967
py
# coding: utf-8 # 2021/8/1 @ tongshiwei import json from EduNLP.constant import MODEL_DIR from ..Vector import T2V, get_pretrained_t2v as get_t2v_pretrained_model from ..Tokenizer import Tokenizer, get_tokenizer from EduNLP import logger __all__ = ["I2V", "D2V", "get_pretrained_i2v"] class I2V(object): """ ...
[ "tongsw@mail.ustc.edu.cn" ]
tongsw@mail.ustc.edu.cn
1737e0ac93fbb31b8c0c2ca19e4a967752a4fe63
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_12779.py
d005d262e57c58ff952354482c61c6a895f0861a
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
94
py
# mt.exe -inputresource:c:\windows\syswow64\python27.dll;#2 -outputresource:pyodbcconf.pyd;#2
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
65df576fdc5cfc020fcc2a479833143bab79a4c7
fdb8760664d33626e8cf94330dbaeb639d7ecf84
/axf/app/views.py
45c80aac25df5e9f0b3edbb7cbdeffd43a29ff1c
[]
no_license
biaozaidashen/django
ef812494e756a71a8366d58ea285bbf57ee2addb
a1e2aba1d29a415c31b984ec27efbe42d15803ad
refs/heads/master
2020-03-23T01:37:36.472866
2018-08-28T13:02:49
2018-08-28T13:02:49
140,927,672
0
0
null
null
null
null
UTF-8
Python
false
false
10,478
py
import random from django.http import HttpResponseRedirect, JsonResponse from django.shortcuts import render from app.models import MainWheel, MainNav, MainMustBuy, MainShop, MainShow, FoodType, Goods, CartModel, OrderModel, \ OrderGoodsModel from django.core.urlresolvers import reverse from user.models import Us...
[ "you@example.com" ]
you@example.com
512aa69661fa13678466cf8017c83fe50756b7f7
cdad738a7085a997b5349a94aedb4db8da78da8f
/PythiaCumulant/test/ConfFile_cfg.py
ed16acb4b043e5f41fcc0791745c74b0c6c9bde2
[ "MIT" ]
permissive
tuos/DirectLoopAnalysis
4851d122d4723e498705c1d2cb100cbf3eda8d43
6f5f02538454d2240d0232665b9b17d07eb79854
refs/heads/master
2020-06-12T22:24:01.081755
2020-01-21T17:49:37
2020-01-21T17:49:37
194,446,479
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
import FWCore.ParameterSet.Config as cms process = cms.Process("Demo") process.load("FWCore.MessageService.MessageLogger_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) ) process.source = cms.Source("PoolSource", # replace 'myfile.root' with the source file you want to use file...
[ "shengquan.tuo@cern.ch" ]
shengquan.tuo@cern.ch
9414a6701142d165a30eef94ccded064ddac92a6
37cfcdfa3b8f1499f5899d2dfa2a48504a690abd
/test/functional/combine_logs.py
21e10d9f491b8b44f266a6f5a821e7b93491b7ff
[ "MIT" ]
permissive
CJwon-98/Pyeongtaekcoin
28acc53280be34b69c986198021724181eeb7d4d
45a81933a98a7487f11e57e6e9315efe740a297e
refs/heads/master
2023-08-17T11:18:24.401724
2021-10-14T04:32:55
2021-10-14T04:32:55
411,525,736
0
0
null
null
null
null
UTF-8
Python
false
false
6,352
py
#!/usr/bin/env python3 """Combine logs from multiple pyeongtaekcoin nodes as well as the test_framework log. This streams the combined log output to stdout. Use combine_logs.py > outputfile to write to an outputfile. If no argument is provided, the most recent test directory will be used.""" import argparse from col...
[ "cjone98692996@gmail.com" ]
cjone98692996@gmail.com
500dad7ffb9764ef76085a688676e4c8740d9482
1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e
/xcp2k/classes/_mm1.py
c5b93af6d2c6b11ace7e30bed1ee50a1f93ba2cc
[]
no_license
Roolthasiva/xcp2k
66b2f30ebeae1a946b81f71d22f97ea4076e11dc
fc3b5885503c6f6dc549efeb4f89f61c8b6b8242
refs/heads/master
2022-12-23T06:03:14.033521
2020-10-07T08:01:48
2020-10-07T08:01:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
from xcp2k.inputsection import InputSection from xcp2k.classes._forcefield1 import _forcefield1 from xcp2k.classes._neighbor_lists5 import _neighbor_lists5 from xcp2k.classes._poisson2 import _poisson2 from xcp2k.classes._periodic_efield2 import _periodic_efield2 from xcp2k.classes._print44 import _print44 class _mm1...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
f1a26d8535ee4e801718164bb5381dda69821129
a9fe1b5c320cdef138ac4a942a8b741c7f27de7c
/LC1165-Single-Row-Keyboard.py
b61ee59f2cb456449c1170110439d12eae92960f
[]
no_license
kate-melnykova/LeetCode-solutions
a6bbb5845310ce082770bcb92ef6f6877962a8ee
ee8237b66975fb5584a3d68b311e762c0462c8aa
refs/heads/master
2023-06-28T06:35:33.342025
2021-07-30T06:59:31
2021-07-30T06:59:31
325,106,033
2
1
null
null
null
null
UTF-8
Python
false
false
2,221
py
""" There is a special keyboard with all keys in a single row. Given a string keyboard of length 26 indicating the layout of the keyboard (indexed from 0 to 25), initially your finger is at index 0. To type a character, you have to move your finger to the index of the desired character. The time taken to move your fin...
[ "forkatemelnikova@gmail.com" ]
forkatemelnikova@gmail.com
d710e3ef0ea5e49cc3e3ccc4c458b75b14108bf1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03062/s886815102.py
0d88d0f6b8fc038f5e52c29a4351c0e0d7bc5afb
[]
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
223
py
def main(): n=int(input()) a=list(map(int,input().split())) dp=[0,-10**18] for i in range(n-1): dp2=[max(dp[0]+a[i],dp[1]-a[i]),max(dp[0]-a[i],dp[1]+a[i])] dp=dp2 print(max(dp[0]+a[-1],dp[1]-a[-1])) main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
371d66ddc5a6c081888fb63f8a81dac1623b1f4d
d3e4c3527884f28ac554c9a919b4859a4fb21a7a
/ckstyle/CssCheckerWrapper.py
5d86c4842c7202e70c9958514c6b8432ece320fa
[ "BSD-3-Clause" ]
permissive
kxws888/CSSCheckStyle
4032ca1d2b86d5ac85613bc17125389361678bfc
4b4b89495fd8bb6a211d22a559e76032cd1b860c
refs/heads/master
2021-01-16T19:39:23.440607
2012-11-09T03:37:44
2012-11-09T03:37:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,836
py
#/usr/bin/python #encoding=utf-8 import os from plugins.Base import * class CssChecker(): '''CSS检查类,需要CSS解析器作为辅助''' def __init__(self, parser, config = None): self.parser = parser self.config = config # 错误记录,log是2级,warn是1级,error是0级 self.logMsgs = [] self.warningMsgs =...
[ "wangjeaf@gmail.com" ]
wangjeaf@gmail.com
79e9eb04ba894732a459e4b01ae2261d362576b6
0639b8366a5ec5b65fa2097354eafd5a1f73ad0f
/hoodalert/migrations/0004_rename_post_posts_description.py
a95d995b2021efa24eef56d75d243980d8350f44
[ "MIT" ]
permissive
COdingaorg/Neighbourhood_Alert
cc27a32af7df070f9d49380c4d3f0067f8535668
44e202469b4a2410d1dab2244e62915575f8ea84
refs/heads/main
2023-06-20T20:38:19.301358
2021-07-27T22:36:34
2021-07-27T22:36:34
388,885,612
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
# Generated by Django 3.2.4 on 2021-07-25 21:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('hoodalert', '0003_rename_location_business_location_or_description'), ] operations = [ migrations.RenameField( model_name='posts', ...
[ "calemasanga@gmail.com" ]
calemasanga@gmail.com
0554493246cab9a13e295982e86c557585680403
e0c8662a56d89730043146ddc340e9e0b9f7de72
/plugin/11dde802-1596.py
7382d4960741b91aca87fcdb6f1f45c45dde3640
[]
no_license
izj007/bugscan_poc
f2ef5903b30b15c230b292a1ff2dc6cea6836940
4490f3c36d4033bdef380577333722deed7bc758
refs/heads/master
2020-09-22T17:20:50.408078
2019-01-18T09:42:47
2019-01-18T09:42:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
798
py
#coding:utf-8 from lib.curl import * # -*- coding: utf-8 -*- """ POC Name : 企慧通培训系统通用型SQL注入 2 Author : a mail : a@lcx.cc refer : http://www.wooyun.org/bugs/wooyun-2015-0129326 """ def assign(service, arg): if service == 'qht_study': #企慧通网络培训系统 return True,arg def audit(arg): p = "S...
[ "yudekui@wsmtec.com" ]
yudekui@wsmtec.com
2a493183c3d04027dce5a0966c86c5e83e023540
8f2f83bc1381d4ce7fc968aec72fa400aae4155d
/api/smartcontractwallet/requestmodels/createtransactionrequest.py
45a7a4eb65363aeada372be706d0cc2d9c527908
[ "MIT" ]
permissive
nifrali/pyStratis
c855fb33be77064c9a741255e324003319a4789f
b1a80bf155b7941e9ef8fc2ea93fa1b08a0c4366
refs/heads/master
2023-06-20T16:02:30.863589
2021-07-01T19:24:18
2021-07-01T19:24:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,929
py
from typing import Optional, List from pydantic import Field, SecretStr, validator, conint from pybitcoin import Model, Outpoint, SmartContractParameter from pybitcoin.types import Address, Money, hexstr class CreateContractTransactionRequest(Model): """A request model for the smartcontractwallet/create endpoint....
[ "skaal@protonmail.com" ]
skaal@protonmail.com
8c3c54a6db6ad3c4483c0d3590021ca975729a91
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/27495730.py
fbd2677bd68269f36de53c1ffd7c30736c15bdcc
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,001
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/27495730.py generated: Fri, 27 Mar 2015 16:10:18 # # Event Type: 27495730 # # ASCII decay Descriptor: {[ D_s2*+ -> D0 K+, D*0 K+, D+ K_S0, D*+ K_S0 ]cc} # from Configurables import Generation Generation().EventType = 27495730 Generation().SampleGeneration...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
6af55db5f3c9b0295b930e7f55c893d74261ebfc
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03597/s285485518.py
0cfbe771bc66bf9c607b389302e54701b59d4ae2
[]
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
67
py
N = int(input()) A = int(input()) black = (N * N - A) print(black)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
af68b0329ba63995851e1b1bb606430cffd086fe
954ceac52dfe831ed7c2b302311a20bb92452727
/tests/python/relax/test_vm_execbuilder.py
9a7cd0c87938eb15f27084ffd2f7b3f5b4afc5fc
[ "Apache-2.0", "LLVM-exception", "LicenseRef-scancode-unknown-license-reference", "MIT", "Zlib", "Unlicense", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
tqchen/tvm
a0e4aefe8b8dccbdbe6f760549bed6e9545ad4a1
678d01dd4a4e75ef6186ce356bb1a20e584a7b24
refs/heads/main
2023-08-10T02:21:48.092636
2023-02-25T18:22:10
2023-02-25T18:22:10
100,638,323
23
8
Apache-2.0
2023-02-20T16:28:46
2017-08-17T19:30:37
Python
UTF-8
Python
false
false
8,597
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "tianqi.tchen@gmail.com" ]
tianqi.tchen@gmail.com
54799a216da1ac96622d8c6b155e31f987d78435
03b724302ee3989b97ea11c5323fab639349661a
/thjobsthai/migrations/0001_initial.py
bf3cce65c0e0a00c06cc5eb40a971a42a4608a32
[]
no_license
saisai/django_jobs_apply
8e2eccd9e0884d2788d09407c24da12b4c80de53
816602e05bdfbef8d5306ca3592fa0d4df538c5e
refs/heads/master
2022-12-01T19:54:36.119216
2020-08-18T23:31:21
2020-08-18T23:31:21
288,165,221
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-10 06:37 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='JobTha...
[ "you@example.com" ]
you@example.com
3d34bbaa9221ae9eaeb9290f8d4c2c6720415cc8
02e5ec4b8b038d335d726d12047d5dacea01456e
/person_django_rest_swagger/serializers.py
b2cc273d6ea98a7394b26d6304baca7b2bcc0e4b
[]
no_license
rahulmoundekar/django_rest_curd_app_swagger
d298d18356ac9253b16320255b329aacd4904a56
3473812ae21c5be7b8f2105e8d16aebab54d4fa8
refs/heads/master
2021-05-24T19:08:27.658832
2020-04-07T06:58:52
2020-04-07T06:58:52
253,710,900
1
0
null
null
null
null
UTF-8
Python
false
false
214
py
from rest_framework import serializers from person_django_rest_swagger.models import Person class PersonSerializer(serializers.ModelSerializer): class Meta: model = Person fields = '__all__'
[ "rahulmoundekar44@gmail.com" ]
rahulmoundekar44@gmail.com
72e629552847f36e6921f8e65c120df05721b1c7
9e2d79a2cf1dbeaffe8ef897bb53f94af8b5b68c
/ichnaea/models/tests/test_mac.py
68cca667cd7319c1acf7541ccab7d0f515cab920
[ "Apache-2.0" ]
permissive
amolk4games/ichnaea
a7d1cbd12b6aa5c0d877fca380080b08fcff24b8
907c542da05b428c8e994bce1537390e22b3ca58
refs/heads/master
2021-01-19T07:21:54.851167
2016-04-08T15:20:37
2016-04-08T15:21:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,198
py
from ichnaea.models.mac import ( decode_mac, encode_mac, ) from ichnaea.tests.base import ( TestCase, ) class TestMacCodec(TestCase): def test_decode(self): value = decode_mac(b'\xab\xcd\xed\x124V') self.assertEqual(value, 'abcded123456') value = decode_mac(b'q83tEjRW', codec...
[ "hanno@hannosch.eu" ]
hanno@hannosch.eu
d6173e859ed2ee3b0ead3b81a2fbabed554928d5
82555c9b4615a14bfe4bb46a0981820b7ccba8d7
/D/test_pasted_from_page.py
584aee8f24d578cb618a5ce84a837a36ea5a8976
[ "MIT" ]
permissive
staguchi0703/ABC160
2f3cc23e0566943a76f288d190ee4977131817bb
d71c9756a2195a4f8b98dc0bb2d220e90cacdce3
refs/heads/master
2021-05-17T10:56:30.289570
2020-03-28T13:47:29
2020-03-28T13:47:29
250,745,685
0
0
null
null
null
null
UTF-8
Python
false
false
1,137
py
# from resolve import resolve #################################### #################################### # 以下にプラグインの内容をペーストする # import sys from io import StringIO import unittest class TestClass(unittest.TestCase): def assertIO(self, input, output): stdout, stdin = sys.stdout, sys.stdin sys.stdout...
[ "s.taguchi0703@gmail.com" ]
s.taguchi0703@gmail.com
a867dfcb3aaf4c1336a595ff3acbdb224162f108
80a1be2c9642341545e625685886ed8c93ed23b9
/arriendoMiLibro/misLibrosOwner/forms.py
df2006d27b344b2e36f793597f6a4f7bb93ae2a6
[]
no_license
leoBravoRain/arriendoMiLibro
94a1923b68b052c3fd719412775db37508589459
35afd4b65385c15fd8372722200796329a225218
refs/heads/master
2020-08-07T16:09:06.065021
2018-06-26T02:34:55
2018-06-26T02:34:55
131,909,292
0
0
null
null
null
null
UTF-8
Python
false
false
2,345
py
# -*- coding: utf-8 -*- from django import forms from libros.models import LibrosParaArrendar from django.forms import ModelForm from usuarios.models import Usuario from arriendoMiLibro.variablesGlobales import maxLengthDefault # Editar informacion de usuaior class EditarInformacionPerfilUsuario(ModelForm): # ci...
[ "gian.bravo@alumnos.usm.cl" ]
gian.bravo@alumnos.usm.cl
1d7317c5593e293840bf5e1d1e80b861458d9130
99d8895888ab093b06a3ba03594f2a74cb97758f
/Scripts/Python_HSE/WEEK2/homework/solution15.py
e75292d209cd5b619f3431e2ffa630d73aa835f8
[]
no_license
AlekseyAbakumov/PythonLearn
4c35efeb0996f4a3221f228b57e30d595bb62637
fdd2cc9bdaa0fac3d582ddd5f2fbf9018218bda5
refs/heads/master
2023-03-23T20:12:42.603817
2021-03-16T18:22:48
2021-03-16T18:22:48
265,309,409
1
1
null
null
null
null
UTF-8
Python
false
false
124
py
a, b, c = (int(input()) for _ in range(3)) print(min(a, b, c), a + b + c - max(a, b, c) - min(a, b, c), max(a, b, c))
[ "a-starostin@mail.ru" ]
a-starostin@mail.ru
c19ed886a185c04770d68ef2431f81e0caaa0cea
9e594874044c08103d6f1a51b7ae79e44e09f769
/UTKFace/CVAE/main.py
7d892295b783460633f308abdb3af283f1b3d6a8
[]
no_license
UBCDingXin/extra_experiments
032239e6a98f273f84278425632834ead2a1faed
c424030e67069e13f7790186d15a0de2363abc1f
refs/heads/main
2023-07-06T14:30:24.527329
2021-08-04T05:30:27
2021-08-04T05:30:27
382,233,174
0
0
null
null
null
null
UTF-8
Python
false
false
19,973
py
print("\n===================================================================================================") import argparse import copy import gc import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl mpl.use('Agg') import h5py import os import random from tqdm import tqdm import torch import t...
[ "dingx92@gmail.com" ]
dingx92@gmail.com
ac340560aaff7c0d0112525dfb2bca7378791bdc
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/183/usersdata/355/107995/submittedfiles/escadarolante.py
1a3884391c6b48bee70782f254cce1adf18dbe87
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
# -*- coding: utf-8 -*- npessoas=int(input('Digite o número de pessoas detectadas pelo sensor: ')) soma=0 soma2=0 instante=0 for i in range(0,npessoas,1): soma=instante-soma soma2=soma2+soma instante=float(input('Digite o instante em que a pessoa foi detectada: ')) print(soma2+10)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
42108bf9661896196414e28494cfdb5886d78a41
46b4220d668e07215c2b2ec7255edc31d51edb15
/test/augmenters/test_segmentation.py
eb4755aa9d357ceb3f92691263a0388e517f29c9
[ "MIT" ]
permissive
alisure-fork/imgaug
f5f848a65570785fd1a256f245fb47a975574daa
037abbd0d9f8dd8949c10858bf4aa2f7762c6add
refs/heads/master
2020-07-24T14:34:23.356424
2019-09-20T09:24:41
2019-09-20T09:24:41
207,956,502
0
0
MIT
2019-09-12T03:26:17
2019-09-12T03:26:15
null
UTF-8
Python
false
false
51,650
py
from __future__ import print_function, division, absolute_import import sys import warnings # unittest only added in 3.4 self.subTest() if sys.version_info[0] < 3 or sys.version_info[1] < 4: import unittest2 as unittest else: import unittest # unittest.mock is not available in 2.7 (though unittest2 might conta...
[ "kontakt@ajung.name" ]
kontakt@ajung.name
4ed63a194e46e6ec0133622fac16fb04d230513d
0b8eefbd29abda41cbe3725621a208c90aa9b6f0
/Problemset/relative-sort-array/relative-sort-array.py
01d5a054220ddad076f0d6e990023dee45ace2e1
[ "MIT" ]
permissive
KivenCkl/LeetCode
bf2d86c6d0a4a3cd136ed3ce74b3561ca26f510d
fcc97c66f8154a5d20c2aca86120cb37b9d2d83d
refs/heads/master
2021-07-07T12:57:28.252071
2020-09-13T05:19:13
2020-09-13T05:19:13
185,034,499
8
7
null
null
null
null
UTF-8
Python
false
false
620
py
# @Title: 数组的相对排序 (Relative Sort Array) # @Author: KivenC # @Date: 2019-07-18 14:56:57 # @Runtime: 48 ms # @Memory: 13.1 MB class Solution: def relativeSortArray(self, arr1: List[int], arr2: List[int]) -> List[int]: # 统计 arr1 中的元素,按照 arr2 相对顺序填放,剩下的元素按照升序放置 import collections counter = col...
[ "chen941229@126.com" ]
chen941229@126.com
4c2040871eb316dfbdd91a29953777fda947cfbb
360e1f69f4c0923c5d79bc82aa33c0fd4e80b71e
/RECURSION/Reverse_a_string_recurssion.py
53056e1653e7608aa8159a683d5cf2066771dbbd
[]
no_license
Vijay1234-coder/data_structure_plmsolving
04e52fe6c918313e13d39107a2ded8b47645bb12
d449b266295d1ae55613cdcfd9b22ad9cee3dfbe
refs/heads/master
2023-08-01T00:55:28.825972
2021-09-12T15:20:12
2021-09-12T15:20:12
387,782,783
1
0
null
null
null
null
UTF-8
Python
false
false
194
py
def reverse(s): if len(s)<= 1: return s else: return reverse(s[1:])+s[0] # 'bc'+'a' #'c'+'b'+'a' print(reverse('abc'))
[ "77201164+Vijay1234-coder@users.noreply.github.com" ]
77201164+Vijay1234-coder@users.noreply.github.com
2e6eacc165e2ade818208ef44b1eac4d38c1a04b
a9a90eae727590f0ccffaa255ffeaa194309fbe9
/Codekata/oddadd.py
f24be72dff28c32c3555a9d6cff21e247eba6288
[]
no_license
dhanuskarthikeyan/guvi
18c39674d3ee8e0012caef781d7905e541792174
671d64189f6039ffad8d91cab13942aafa87bf29
refs/heads/master
2020-06-03T00:07:45.041170
2019-07-08T17:39:33
2019-07-08T17:39:33
191,355,054
0
3
null
null
null
null
UTF-8
Python
false
false
153
py
num,n=(raw_input().split()) num=int(num) n=int(n) num=n+num if(num>=0): if(num%2==0): print "even" else: print "odd" else: print "invalid"
[ "noreply@github.com" ]
dhanuskarthikeyan.noreply@github.com
2dd8b2032365c69324b199b0db23e8c64b7655c0
603589525a5fc10fd30ae13181c5a730269705a5
/doc/conf.py
81222948adae5eaf8a1aa9e5f2776442adc6d70c
[ "MIT" ]
permissive
ibell/pdsim
0848ac8d2819a67f0dd8acd86b269ff9a6130018
2e33166fdbb3b868a196607c3d06de54e429824d
refs/heads/master
2023-08-31T01:49:44.386884
2023-08-29T00:40:21
2023-08-29T00:40:28
12,456,094
36
25
MIT
2023-08-20T19:24:03
2013-08-29T09:09:58
Python
UTF-8
Python
false
false
12,156
py
# -*- coding: utf-8 -*- # # PDModel documentation build configuration file, created by # sphinx-quickstart on Wed May 02 18:01:14 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
[ "ian.h.bell@gmail.com" ]
ian.h.bell@gmail.com
fa07553477e3bb2ecbeb87bd1383a2194282579c
b8eb666c8b6fe4610d87bff8048f4a95a1c5b549
/测试/UI自动化/测试工具__Selenium/selenium/Phy/元组学习.py
659d98f549399863fa07b324050146c658ed72dc
[]
no_license
cainiaosun/study
1e983e404005e537410b205634a27cee974faba0
91df9b63cda1839b7fc60de3b5f1eb19ccc33a1f
refs/heads/master
2020-05-30T09:59:19.749099
2019-11-22T10:39:12
2019-11-22T10:39:12
189,641,828
1
0
null
null
null
null
UTF-8
Python
false
false
2,244
py
#coding=UTF-8 import random import random list=[] s=0 for i in range(1,5): for j in range(1,5): for k in range(1,5): if i!=j and j<>k: list.append(str(i)+str(j)+str(k)) s=s+1 print len(list) print s if len(list)==s: print "是相等的!" else: print "不相等!" print l...
[ "1551577567@qq.com" ]
1551577567@qq.com
ba376912f0e12d134b662c53c1aadd34496d5a74
3a9f63f506172ac2d4a1ca9744fedd8f9b2b1628
/pytext/data/__init__.py
0ea8bef648e40c61f8aa137845996fdabce86390
[ "BSD-3-Clause" ]
permissive
czHP0616/pytext
4c40a8f3afa48284e2919e54d1b489830a321eed
64ab1835905dea2e7797e6bc11398c55941fa728
refs/heads/master
2020-05-25T09:21:52.394044
2019-05-20T21:36:39
2019-05-20T21:39:33
187,734,243
0
0
NOASSERTION
2019-05-21T00:46:06
2019-05-21T00:46:06
null
UTF-8
Python
false
false
1,807
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from .batch_sampler import ( BaseBatchSampler, EvalBatchSampler, RandomizedBatchSampler, RoundRobinBatchSampler, ) from .bptt_lm_data_handler import BPTTLanguageModelDataHandler from .compositional_data_handle...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
b9a66d204ad06b3325735e7e16ef709e831b14d2
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R4/benchmark/startPyquil57.py
4d55af20dcfac3d89ea1bfc7d95f538b60cedb64
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
1,165
py
# qubit number=4 # total number=10 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
65d874a8d7d0ba1e2d8d09e04d255d0fb375f38d
a84e1a1aac96612b32ba5adcc49a4005c0c5129e
/tensorflow_probability/python/internal/backend/numpy/raw_ops.py
79f2e95696806a3b0f7425925a0bac61afb756f4
[ "Apache-2.0" ]
permissive
jedisom/probability
4fc31473d691d242a3e88c179ae3a9c555a29bb6
6791e7ce1c2b0a9057a19a8ea697aeaf796d4da7
refs/heads/master
2022-04-23T00:21:46.097126
2020-04-22T20:03:04
2020-04-22T20:04:59
258,031,151
1
0
Apache-2.0
2020-04-22T22:08:57
2020-04-22T22:08:56
null
UTF-8
Python
false
false
1,831
py
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
f541408a9b1aac2d3114dd958181e6ed89be2153
c08e62724137acebcae7f7badf0176f7f73e64fd
/ecommerce/settings.py
f271e9e79c06df710e99651742f27a7a4a20ed0d
[]
no_license
keefm6776/ij-artefact-sales-site
91809b8d3c975ea7b681acae62382b2146348611
826db92776c77b57a3f6da7727ba5fe9471e6662
refs/heads/master
2022-12-08T10:43:06.847267
2020-01-13T14:52:26
2020-01-13T14:52:26
216,651,747
0
1
null
2022-11-22T04:46:49
2019-10-21T19:43:42
Python
UTF-8
Python
false
false
4,793
py
""" Django settings for ecommerce project. Generated by 'django-admin startproject' using Django 1.11.17. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
[ "keefm_6776@yahoo.com" ]
keefm_6776@yahoo.com
a881a9f8556f037ba6ea2123e9d8a596a0424231
37fdc797f0060a67c1e9318032bc7102d4fd9ecd
/untitled1/bin/pip3.7
e52f46ac29013334a05a69eac759cb1d6ef18574
[]
no_license
Change0224/PycharmProjects
8fa3d23b399c5fb55661a79ca059f3da79847feb
818ba4fd5dd8bcdaacae490ed106ffda868b6ca4
refs/heads/master
2021-02-06T15:37:16.653849
2020-03-03T14:30:44
2020-03-03T14:30:44
243,927,023
0
0
null
null
null
null
UTF-8
Python
false
false
407
7
#!/Users/zhaojian/PycharmProjects/untitled1/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
[ "lijj0224@163.com" ]
lijj0224@163.com
c70840fd44de0cdfd339bb41f4681c5fb0b35748
c4a119311ac01bbe7d5ab81b1d3d663ad0900ab6
/python3-alpha/python-libs/atom/service.py
246dd1b93419b5e808a842062b8b9a3ce615f379
[ "Apache-2.0" ]
permissive
kuri65536/python-for-android
1d8d99e81e64bc87805c2c58ee0dcf43d413e72e
26402a08fc46b09ef94e8d7a6bbc3a54ff9d0891
refs/heads/master
2021-06-02T01:17:29.685199
2018-05-05T00:12:13
2018-05-05T01:36:22
32,235,625
280
122
Apache-2.0
2020-05-15T06:47:36
2015-03-14T22:44:36
Python
UTF-8
Python
false
false
28,950
py
#!/usr/bin/python # # Copyright (C) 2006, 2007, 2008 Google 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 app...
[ "rjmatthews62@gmail.com" ]
rjmatthews62@gmail.com
95b961d36c5737ee91cf28899c9db819935a2260
8db6b0404f179332e900c09bdb7acbc0779dc250
/reinforcement_learning/0x00-q_learning/0-load_env.py
113d10d342b3a1e2dabb244ba52a86677f8b7607
[]
no_license
chriswill88/holbertonschool-machine_learning
6f1f900a0e5da013608b4be3e60af15872dc1f99
05eabebe5e5c050b1c4a7e1454b947638d883176
refs/heads/master
2022-12-30T08:35:50.216909
2020-10-18T23:10:23
2020-10-18T23:10:23
255,544,135
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
#!/usr/bin/env python3 """this module contains a function for task 0""" import gym def load_frozen_lake(desc=None, map_name=None, is_slippery=False): """creates the frozen lake enviroment""" env = gym.make( 'FrozenLake-v0', desc=desc, map_name=map_name, is_slippery=is_slippery) return env
[ "williechri79@gmail.com" ]
williechri79@gmail.com
d9a98e0727826a2e9368331ebbee230d42859401
c6da4e00eb27ff33becd0b2f7e962b5cc43f9b20
/proximal.py
ef75b6639a3640ce62538b70545bdfd4dc29a26f
[]
no_license
cyber-meow/FISTA
93c61653e55e9b02eb5659cc8e60f17da7f8bb71
c85d5364083ab69f1476b225f6b71713ac4c02dd
refs/heads/master
2020-04-13T21:15:55.119870
2019-01-02T17:09:36
2019-01-02T17:09:36
163,451,363
1
0
null
null
null
null
UTF-8
Python
false
false
1,417
py
import numpy as np import torch import pywt def soft_thresholding(x, th): return np.sign(x) * np.maximum(np.abs(x)-th, 0) class SoftThresholding(object): def __init__(self, lamb): self.lamb = lamb def __call__(self, x, gamma): th = self.lamb * gamma device = 'cuda' if x.is_cuda...
[ "sjungle305@gmail.com" ]
sjungle305@gmail.com
617a6254379110f96f106c107563e54e1020e433
4fdab62336c7b4bde236351fabdd79cdec0b3d20
/post_questions/forms.py
4c4c245e3a02abe390e3f312eabf270eee9106b9
[]
no_license
aashiqms/ask_new
8e6f76fbe41da68d32967c5ab3a14a76d469f50d
7f7a5e1b5e9b498030415607b8419e90147cd597
refs/heads/master
2022-07-04T21:51:56.107360
2020-05-17T18:03:19
2020-05-17T18:03:19
264,604,874
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
from django import forms from post_questions.models import Post, Comment, Answer from django.forms import ModelForm class QuestionForm(ModelForm): class Meta: model = Post fields = ['author', 'questions'] # widget = { # 'title': forms.TextInput(attrs={'class': 'textinputclass'}), # } clas...
[ "aashiqms@outlook.com" ]
aashiqms@outlook.com
c49b0c124c8eeb7a4917b06d1acffade30e7bf1f
72df811521e3da73187388c737599ddd0a4631fc
/START_PYTHON/4日/11.バンボクムンwhile/03.while.py
4bc0180ed23f1f2e825dba7d5922b98565f5a4a0
[]
no_license
munsangu/20190615python
e7480044cfa07dcb65e8ca168c7cf9ecb73ffe7a
c496bc471503ac0e2ba0d928c01085c8b569d173
refs/heads/master
2020-06-04T14:59:49.822865
2020-02-08T11:49:16
2020-02-08T11:49:16
192,071,616
1
0
null
null
null
null
UTF-8
Python
false
false
355
py
# 내가 원하는 만큼 입력받고 그 숫자의 평균을 구하는 프로그램 num = 1 count = 0 sum = 0 while num !=0: #num이 0이 아니면 반복 num = int(input("정수 입력: ")) count += 1 # 몇 번 입력받았는지 count sum += num count -= 1 # 0을 입력한 count 하나 제외 avg = sum / count print("평균 : %.2f"%avg)
[ "ds-3632@hanmail.net" ]
ds-3632@hanmail.net
50a7fad07fc0b5935c80ee5dfac6b9b8555e9a9d
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_1/swnrei001/question3.py
4e473093a1d821898c258c5628e999860a896c5f
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
872
py
def spam(): firstname = input("Enter first name:\n") lastname = input("Enter last name:\n") money = eval(input("Enter sum of money in USD:\n")) country = input("Enter country name:\n") letter = """Dearest """ + firstname + """\nIt is with a heavy heart that I inform you of the death of my...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
e7371d1f3476d8e3b2d7580d5f8194845330d249
b66c12a4304c6af00d58a1f83e453dbc739ae60d
/survey/features/about_us_steps.py
3d0b8c9390b1acfe7127b065e4d6a78de8c6afde
[ "BSD-2-Clause" ]
permissive
madhavaramu/uSurvey
060dae008f975a7cdb77ef8b0c5d820842422637
681e1d91fbedf94e840858e1ef09538777ce3e50
refs/heads/uSurvey
2020-04-11T06:28:17.220192
2016-12-06T13:24:45
2016-12-06T13:24:45
68,372,980
0
1
null
2016-09-16T11:03:44
2016-09-16T11:03:43
null
UTF-8
Python
false
false
1,563
py
from lettuce import * from survey.features.page_objects.root import AboutPage, EditAboutUsPage from survey.models import AboutUs @step(u'And I visit the about us page') def and_i_visit_the_about_us_page(step): world.page = AboutPage(world.browser) world.page.visit() @step(u'And I have about us content') def ...
[ "antsmc2@yahoo.com" ]
antsmc2@yahoo.com
290920be930c40942829f4f4ddb96f55ae5fd5a5
ca1c2630b517c2dd69ecb2741174c5147feea638
/mercury/null_byte_filter.py
1f5f05e6f372805662128a1c6598ba31b362b23f
[]
no_license
dexter-taylor/mercury
708cf0440016d05e8c3754e82471d8b6e2ab5589
efb02177ac12747d65aba43b47541d548fd5bdeb
refs/heads/master
2020-04-18T14:25:43.808775
2019-01-25T06:59:08
2019-01-25T06:59:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,465
py
#!/usr/bin/env python '''Usage: null_byte_filter.py (-n | -d | -l) <datafile> Options: -n --null Retrieve the line numbers of the lines with null bytes ('\0') and the first field in that line containing a null byte -d --readable_dict Retrieve the lines that can be r...
[ "binarymachineshop@gmail.com" ]
binarymachineshop@gmail.com
6bd691bc3b1822dbfe4648cc8c79382b20c34e6b
d6d874fe9e1607a859e9484fdc5bce09b3f76472
/Pipeline/the_LATEST/sys_PY/py_MODULES/hdrprocess_old/view/mainWindow.py
bbbde9578041fba60f361228ee9e0bea1b9844e0
[]
no_license
tws0002/pop2-project
c80095cc333195ebb9ffa2199e2c3a3446d0df0c
6886f05d54ec77b66d13b4eaafe8a66ac49f2f41
refs/heads/master
2021-01-11T20:53:19.982950
2016-03-10T10:31:29
2016-03-10T10:31:29
79,202,989
1
1
null
2017-01-17T07:56:09
2017-01-17T07:56:09
null
UTF-8
Python
false
false
20,069
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/selecaotwo/Dropbox/Private/my_PROJECT/proj_POP2/Pipeline/the_LATEST/sys_PY/py_MODULES/hdrprocess/view/mainWindow.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! try: impo...
[ "colinvfx@gmail.com" ]
colinvfx@gmail.com
417d45c85e9605ae85af1136b0377cb8910c06d5
c8b541ea4fa7d159b80bef116e5cd232ac61b8c1
/venv/Lib/test/multibytecodec_support.py
2fed0b7c2ee8c31dc4890ee7dbd94ec0772518b4
[]
no_license
shengmenghui/knowledge_building
7a2d8eef040c2d3a45726b3a908be301e922024b
04fd7784f15535efed917cce44856526f1f0ce48
refs/heads/master
2022-12-31T14:18:05.282092
2020-10-23T02:51:37
2020-10-23T02:51:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,786
py
# # multibytecodec_support.py # Common Unittest Routines for CJK codecs # import codecs import os import re import sys import unittest from http.client import HTTPException from sql_mode import support from io import BytesIO class TestBase: encoding = '' # codec name codec = None # codec ...
[ "15173342800@163.com" ]
15173342800@163.com
7e49268cc95f7618ee769890ed82c3ea558465c2
c15a2b234376b3a8ea5f3c790b4afd47150dcfcc
/Libs_Modules/test_3.py
b843063ce4cb8f089f79f6cafc5b1330a6760613
[]
no_license
GLMF/GLMF225
9c05b60d8bce71973460e2d98c454b22115b92fc
c83e506f522af89cff1c76286689bb5cf2f412cf
refs/heads/master
2020-05-03T20:48:00.897857
2019-04-01T07:41:13
2019-04-01T07:41:13
178,810,926
0
0
null
null
null
null
UTF-8
Python
false
false
611
py
from PyInquirer import prompt widget = [ { 'type': 'expand', 'name': 'serie', 'message': 'Quelle est votre série préférée ?', 'choices': [ { 'key': 'g', 'name': 'Game of Thrones', 'value': 'GoT' }, {...
[ "tristan.colombo@gmail.com" ]
tristan.colombo@gmail.com
3dd3ad42d05707545bad918cdf8e1c1a1956688b
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/basic/3_2.py
1a6ecef30016ab772e487b8b0093ba0f863bafe3
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
4,003
py
Difference between str.capitalize() VS str.title() Both **title()** and **capitalize()** have similar functionality of capitalizing first characters. Let us see the difference between the two of them. ### title() **title()** function in Python is the Python String Method which is used to convert the fi...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
1d664ef000866e3f35691cf6c589f02e172914c7
77d3633bb64d585aa087677af9ca6f672ae9ff1f
/src/sagemaker/serve/predict_nlp.py
a854a3c9b662a2a26b489283e45b4dead44b083c
[ "MIT" ]
permissive
reneang17/authorencoder
0f16d9d2c72db3bd3e50fac03b7eb6e25e6f7f75
e607ddc77d18fc62e292adfe1595a5dd35e10f99
refs/heads/master
2022-07-15T01:23:28.450030
2020-03-03T05:10:15
2020-03-03T05:10:15
237,246,389
2
0
MIT
2020-03-08T01:37:00
2020-01-30T15:46:16
Jupyter Notebook
UTF-8
Python
false
false
3,887
py
import argparse import json import os import pickle import sys import sagemaker_containers import pandas as pd import numpy as np import torch import torch.nn as nn import torch.optim as optim import torch.utils.data import numpy from utils_nlp import tokenize, emb from models import CNN from sklearn.neighbors impo...
[ "reneang17@gmail.com" ]
reneang17@gmail.com
e41bf4c1770b7508b7f425ca2d18b7d1d68dad13
89e3f694021f261b95e494d2b479367bacde8251
/tests/types/test_entity.py
2910ad18598425b5e693e0e5e7401820c5e9b731
[ "MIT" ]
permissive
dchaplinsky/followthemoney
6f9c05f430f8bfb04f7841378fd2ee5cf9b33235
a2a150f558acb5a1c985b9dc891c98c0fdf2f17e
refs/heads/master
2020-09-10T08:16:14.617602
2019-11-14T09:15:52
2019-11-14T09:15:52
221,699,199
1
0
MIT
2019-11-14T13:03:41
2019-11-14T13:03:41
null
UTF-8
Python
false
false
790
py
import unittest from followthemoney.types import registry entities = registry.entity class EntityTest(unittest.TestCase): def test_parse(self): self.assertEqual(entities.clean('88'), '88') self.assertEqual(entities.clean(88), '88') self.assertEqual(entities.clean({'id': 88}), '88') ...
[ "friedrich@pudo.org" ]
friedrich@pudo.org
bd592c205d08a1f8ddc82451cb09b38db2934de7
a4deea660ea0616f3b5ee0b8bded03373c5bbfa2
/concrete_instances/register-variants/vfmsubadd213ps_xmm_xmm_xmm/instructions/vfmsubadd213ps_xmm_xmm_xmm/vfmsubadd213ps_xmm_xmm_xmm.gen.vex.py
47e6123f37d250678ee38d0e8009fe13fcb34be4
[]
no_license
Vsevolod-Livinskij/x86-64-instruction-summary
4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd
c276edab1b19e3929efb3ebe7514489f66087764
refs/heads/master
2022-02-02T18:11:07.818345
2019-01-25T17:19:21
2019-01-25T17:19:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
import angr proj = angr.Project('./instructions/vfmsubadd213ps_xmm_xmm_xmm/vfmsubadd213ps_xmm_xmm_xmm.o') print proj.arch print proj.entry print proj.filename irsb = proj.factory.block(proj.entry).vex irsb.pp()
[ "sdasgup3@illinois.edu" ]
sdasgup3@illinois.edu
0fc748c3389c508b98a2f8ce1f12b4fb2ed423d3
f213549d8725acaf5417d0d5290430d499bf3cf3
/lino/core/boundaction.py
b3a6a42f40bb013688e5fa75400c13ca08ccbe41
[ "BSD-2-Clause" ]
permissive
ExcellentServ/lino
56c8159428a451058a35dad75e8799d239c2dc0e
9ea630e719d47843dd8427dd64db22633626fd3d
refs/heads/master
2020-12-28T23:15:47.380120
2015-01-27T14:53:10
2015-01-27T14:53:10
29,911,723
0
0
null
2015-01-27T11:44:09
2015-01-27T11:44:08
null
UTF-8
Python
false
false
3,744
py
# -*- coding: UTF-8 -*- # Copyright 2009-2015 Luc Saffre # License: BSD (see file COPYING for details) """ .. autosummary:: """ import logging logger = logging.getLogger(__name__) from django.conf import settings from lino.utils import curry from lino.core import actions class BoundAction(object): """An Acti...
[ "luc.saffre@gmail.com" ]
luc.saffre@gmail.com
7b5fe80b8b6972477471881efb10fa5a505144d9
bfc25f1ad7bfe061b57cfab82aba9d0af1453491
/data/external/repositories_2to3/267667/kaggle-heart-master/configurations/je_os_fixedaggr_joniscale80small_augzoombright.py
9b93b720a6e67660825c575404d24f2b139a2e03
[ "MIT" ]
permissive
Keesiu/meta-kaggle
77d134620ebce530d183467202cf45639d9c6ff2
87de739aba2399fd31072ee81b391f9b7a63f540
refs/heads/master
2020-03-28T00:23:10.584151
2018-12-20T19:09:50
2018-12-20T19:09:50
147,406,338
0
1
null
null
null
null
UTF-8
Python
false
false
7,771
py
"""Single slice vgg with normalised scale. """ import functools import lasagne as nn import numpy as np import theano import theano.tensor as T import data_loader import deep_learning_layers import image_transform import layers import preprocess import postprocess import objectives import theano_print...
[ "keesiu.wong@gmail.com" ]
keesiu.wong@gmail.com
2954c7bb5b4630407209831dc851c067c8f7488a
b445f7ba5ae4899c3782dc08627b778de6bbf12b
/test/test_jsonchecker.py
88703e6457bdd1c1e3214667c699e8b5be6bb428
[ "Apache-2.0", "MIT" ]
permissive
ijl/orjson
91e620f1e68e985064a68e77569b56ff378637ea
d1cd27e29c8df2768be016071d0800a92d120786
refs/heads/master
2023-08-31T05:10:58.385975
2023-08-29T12:29:42
2023-08-29T13:05:57
158,618,772
4,895
243
Apache-2.0
2023-09-08T00:40:34
2018-11-21T23:43:14
Python
UTF-8
Python
false
false
6,187
py
# SPDX-License-Identifier: (Apache-2.0 OR MIT) """ Tests files from http://json.org/JSON_checker/ """ import pytest import orjson from .util import read_fixture_str PATTERN_1 = '["JSON Test Pattern pass1",{"object with 1 member":["array with 1 element"]},{},[],-42,true,false,null,{"integer":1234567890,"real":-9876....
[ "ijl@mailbox.org" ]
ijl@mailbox.org
e71a1663ae44c868dbd627ad3114ac41adc06bc0
b99195cf2d181dec5c31aa7e58d747f474153802
/Dictionary/Built-in Functions with Dictionary.py
cbca42c09ab3385fa84cac09cd510faf64f700a9
[]
no_license
eldadpuzach/MyPythonProjects
b1b4d56a822fd781c7c4c7a9e4bb5408c180c187
3a961a7c265caf1369067d98e94564f01f1bde74
refs/heads/master
2020-03-20T18:07:43.319331
2019-02-13T22:07:10
2019-02-13T22:07:10
137,570,971
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
# Built-in Functions with Dictionary # # Built-in functions like all(), any(), len(), cmp(), sorted() etc. are commonly used with dictionary to perform different tasks. # Built-in Functions with Dictionary Function Description # all() Return True if all keys of the dictionary are true (or if the dictionary is empty)....
[ "eldadpuzach@gmail.com" ]
eldadpuzach@gmail.com
f6450232aaf3f0568032b2d87c7fa644d8ab19c9
0c281ba9bb634d518536eea03059cdb05ba32cc5
/many_to_one/migrations/0002_wpsuser.py
1c896f777d6f0af5d69c690885ff05aa7fbc7677
[]
no_license
parkhongbeen/Practice-Document
c09ef3a64d64c2067604b0c5f5d6fcabd96a8e50
441c1c1b21c6b66e1a01eea7487f6dffdfd98e58
refs/heads/master
2020-12-02T16:47:20.725694
2020-01-04T09:30:20
2020-01-04T09:30:20
231,061,336
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
# Generated by Django 2.2.9 on 2020-01-02 05:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('many_to_one', '0001_initial'), ] operations = [ migrations.CreateModel( name='WPSUser', ...
[ "pack122@naver.com" ]
pack122@naver.com
359e4313843a6aecb4d74aa0c3a945078ffed7bf
893f83189700fefeba216e6899d42097cc0bec70
/webpage/lib/python3.5/site-packages/matplotlib/tests/test_backend_pdf.py
2feee6fb1238014212e65e61b693ae6c6637cac5
[ "MIT" ]
permissive
pseudoPixels/SciWorCS
79249198b3dd2a2653d4401d0f028f2180338371
e1738c8b838c71b18598ceca29d7c487c76f876b
refs/heads/master
2021-06-10T01:08:30.242094
2018-12-06T18:53:34
2018-12-06T18:53:34
140,774,351
0
1
MIT
2021-06-01T22:23:47
2018-07-12T23:33:53
Python
UTF-8
Python
false
false
4,488
py
# -*- encoding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) import six import io import os import numpy as np from matplotlib import cm, rcParams from matplotlib.backends.backend_pdf import PdfPages from matplotlib import pyplot as plt from ...
[ "golam.mostaeen@usask.ca" ]
golam.mostaeen@usask.ca
54b4d3130aa1d007ebb68af85127de4f74fe2589
18b7f6e6a64ff4e33202f4c647d33240bf8ce015
/Graph/Baek_1926.py
3607ad4f55f10014997e3712a5551d0bbfe15fa5
[]
no_license
qorjiwon/LevelUp-Algorithm
80734b88e2543fb4b6da48377bb31b70d972b448
62a71552427290361e6ade9dcfe3ffc90a9d86e2
refs/heads/master
2023-06-16T16:33:44.427818
2021-03-12T14:39:25
2021-03-12T14:39:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,088
py
""" @ Baek 1926. 그림 @ Prob. https://www.acmicpc.net/problem/1926 Ref. @ Algo: 그래프(BFS) @ Start day: 20. 03. 18. @ End day: 20. 03. 18. """ from collections import deque dx = [0, 0, -1, 1] dy = [1, -1, 0, 0] def BFS(): t = 1 q.append((i, j)) check[i][j] = 1 while q: x,...
[ "21300035@handong.edu" ]
21300035@handong.edu
b3408d4959029e7cb7a05c3d3436095cd7e12f5e
53983c1dbd4e27d918237d22287f1838ae42cc92
/tools/SU2IO.py
549c19ccdaa861824c8164b0755aec7d37de5e1e
[]
no_license
xshii/MDAOXS
da5060ea6b6ac600b3b85dddbb7460f62ab4a684
d4c54b79d7c84740bf01d8e8573e54522de2e6d0
refs/heads/master
2021-09-24T10:35:31.295574
2018-10-08T10:54:44
2018-10-08T10:54:44
108,884,304
0
1
null
null
null
null
UTF-8
Python
false
false
12,094
py
#!/usr/bin/env python ## \file tools.py # \brief mesh functions # \author T. Lukaczyk, F. Palacios # \version 6.0.0 "Falcon" # # The current SU2 release has been coordinated by the # SU2 International Developers Society <www.su2devsociety.org> # with selected contributions from the open-source community. # # The ma...
[ "xshi@kth.se" ]
xshi@kth.se
916af822d50ca0fafb9a6c3f5bb98ced51dfb76c
f8e8e365c9cf58b61d72655bc2340baeaed5baff
/Leetcode/Python Solutions/Math/ReachingPoints.py
0ac3289c31b1e8936a326fe489c9a2da788ad09e
[ "MIT" ]
permissive
Mostofa-Najmus-Sakib/Applied-Algorithm
39a69f6b9ed113efe4a420d19cad79e0aa317637
bc656fd655617407856e0ce45b68585fa81c5035
refs/heads/master
2023-08-31T19:54:34.242559
2021-11-05T03:43:35
2021-11-05T03:43:35
412,263,430
0
0
MIT
2021-09-30T23:45:29
2021-09-30T23:45:25
null
UTF-8
Python
false
false
865
py
""" LeetCode Problem: 780. Reaching Points Link: https://leetcode.com/problems/reaching-points/ Language: Python Written by: Mostofa Adib Shakib Time Complexity: O(max(tx,ty)) Space Complexity: O(1) """ class Solution: def reachingPoints(self, sx: int, sy: int, tx: int, ty: int) -> bool: # If tx is smalle...
[ "adibshakib@gmail.com" ]
adibshakib@gmail.com
8395fc7c7f92a208f8793b9f7b48c21bed9967d0
350db570521d3fc43f07df645addb9d6e648c17e
/0301_Remove_Invalid_Parentheses/solution_test.py
2d7c1958b23dcdec8d5d9905ff2bd12cb4237244
[]
no_license
benjaminhuanghuang/ben-leetcode
2efcc9185459a1dd881c6e2ded96c42c5715560a
a2cd0dc5e098080df87c4fb57d16877d21ca47a3
refs/heads/master
2022-12-10T02:30:06.744566
2022-11-27T04:06:52
2022-11-27T04:06:52
236,252,145
1
1
null
null
null
null
UTF-8
Python
false
false
384
py
''' 301. Remove Invalid Parentheses Level: Hard https://leetcode.com/problems/remove-invalid-parentheses ''' import unittest class TestSum(unittest.TestCase): def test_sum(self): self.assertEqual(sum([1, 2, 3]), 6, "Should be 6") def test_sum_tuple(self): self.assertEqual(sum((1, 2, 2)), 6...
[ "bhuang@rms.com" ]
bhuang@rms.com
0f3b58683b7e2728255fccc69cf4195878792e65
28de04457e8ebcd1b34494db07bde8a3f25d8cf1
/easy/symmetric_tree_101.py
4480cfb339a9ab97cd6ab801aba0f4c8d142ae4b
[]
no_license
YangXinNewlife/LeetCode
1df4218eef6b81db81bf2f0548d0a18bc9a5d672
20d3d0aa325d79c716acfc75daef32f8d4f9f1ad
refs/heads/master
2023-08-16T23:18:29.776539
2023-08-15T15:53:30
2023-08-15T15:53:30
70,552,512
0
0
null
null
null
null
UTF-8
Python
false
false
1,750
py
# -*- coding:utf-8 -*- __author__ = 'yangxin_ryan' """ Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3 But the following [1,2,2,null,3,null,3] is not: 1 / \ 2...
[ "yangxin03@youxin.com" ]
yangxin03@youxin.com
fd63cd6e400939b33de938e5de18673f74a5eae9
f3e1423c27467e2501a5443a8767a40141752acc
/rx/core/operators/concat.py
6c9eb5d63777ff846850ba55cd0d0a5d577af32e
[ "MIT" ]
permissive
py-lab/RxPY
a08a16cbb381aed08485e0e2c36098884f3ba903
ce12560f9481dbd0d072911e12ff2ed30be328bf
refs/heads/master
2020-08-09T10:25:38.111773
2019-10-05T20:44:32
2019-10-05T20:44:32
214,068,251
0
1
MIT
2019-10-10T02:28:10
2019-10-10T02:28:09
null
UTF-8
Python
false
false
605
py
from typing import Callable import rx from rx.core import Observable def _concat(*sources: Observable) -> Callable[[Observable], Observable]: def concat(source: Observable) -> Observable: """Concatenates all the observable sequences. Examples: >>> op = concat(xs, ys, zs) Ret...
[ "dag@brattli.net" ]
dag@brattli.net
af832263b949a29bb698b61d332031527b2055fb
94560fcfd85bf81c326063ff035c593b2793863c
/asap/scripts/um_downsample_particles.py
5e3e8b0b886b003c2d525ce23333a04b8689f99c
[ "Unlicense" ]
permissive
dr-guangtou/asap
783a0607aea631c7d56ea9142e9e4f8505c3eac4
4b796b9708ee1a1d854d4ddf6d5c6e811941f55e
refs/heads/master
2021-03-27T19:38:44.986573
2020-04-02T21:25:28
2020-04-02T21:25:28
111,163,115
2
0
Unlicense
2019-11-06T22:02:05
2017-11-18T00:20:30
Jupyter Notebook
UTF-8
Python
false
false
2,339
py
#!/usr/bin/env python """This script will read the dark matter particle table for the SMDPL simulation, and downsample it for our model. """ import os import argparse import numpy as np import pandas as pd def downsample_particles(ptbl_file, n_million, seed=95064, csv=False, verbose=True): """Down-sample the par...
[ "dr.guangtou@gmail.com" ]
dr.guangtou@gmail.com
d4811b8ca1441d7078425d3f83304197fba009e7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02393/s162472512.py
2cf404e7460cb93fb79ee9ba11c0d04e33e900f5
[]
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
100
py
list=sorted([int(x) for x in input().split()]) print(str(list[0])+" "+str(list[1])+" "+str(list[2]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
81a3b8cf4112ab531cb3cfba9a91eded7429840b
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/kosmos-2/fairseq/fairseq/data/id_dataset.py
3e4d7969cf2a26e852b466f165a6fadabae3b35f
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
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
423
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 torch from . import FairseqDataset class IdDataset(FairseqDataset): def __getitem__(self, index): return index def ...
[ "1083127130@qq.com" ]
1083127130@qq.com
5a166c86274117ed654161b9db4ec8f72c03974e
d48aeeac74c02ae90d48c0994105027cee596f28
/backend/bitter_fog_29287/wsgi.py
c1d64d470c8e7a5f73d506bb8bbeefaf596af81e
[]
no_license
crowdbotics-apps/bitter-fog-29287
6864b7668d09879d812d7438c580710b18c9958a
b24816c199dd45886c6ae563190fe1be731538be
refs/heads/master
2023-07-02T14:52:19.004509
2021-07-30T15:43:54
2021-07-30T15:43:54
391,115,801
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
""" WSGI config for bitter_fog_29287 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/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJA...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
54e745ef71add4a8f93c5f04df6b32f38c5f29c8
ee1dc4708fe2dbff1d528baf589255d8d39e56c0
/0x0B-python-input_output/2-main.py
64e107c075d3ce32ecbd0133c299ffd95538ae50
[]
no_license
agzsoftsi/holbertonschool-higher_level_programming
f267991d6a917b9fc9dbd2f639394e9585bf33b6
89e37450d24e200cde3b29cde20b161e75723805
refs/heads/master
2021-07-03T15:16:30.381714
2021-03-01T16:36:11
2021-03-01T16:36:11
226,884,471
3
2
null
null
null
null
UTF-8
Python
false
false
243
py
#!/usr/bin/python3 read_lines = __import__('2-read_lines').read_lines print("1 line:") read_lines("my_file_0.txt", 1) print("--") print("3 lines:") read_lines("my_file_0.txt", 3) print("--") print("Full content:") read_lines("my_file_0.txt")
[ "agzsoftsi@gmail.com" ]
agzsoftsi@gmail.com
dabd42749c4135637d3896146d27573906923be0
69d8e789b289edfeb2fc18d0ef1c395bde9fb375
/minDepth_111.py
0366cd7558f4835563f6d3285240573c83501c3b
[]
no_license
Lucces/leetcode
d2db842eae7cdf1d7b9c56844660eb6f1940d88a
2c3dbcbcb20cfdb276c0886e0193ef42551c5747
refs/heads/master
2021-01-19T05:59:04.712086
2016-08-29T13:33:00
2016-08-29T13:33:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
831
py
#!/usr/bin/env python # coding=utf-8 # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def minDepth(self, root): """ :type root: TreeNode :rtype: i...
[ "cntqrxj@gmail.com" ]
cntqrxj@gmail.com
a65d37fbf1e635195b611f139195ad869fb87991
5b34d998c7798b7cc1068680d89a977151c66c1a
/test_appium/testcase/test_search.py
eeeaf76cfc58728e01b79222be8efedc5438455b
[]
no_license
Hanlen520/Hogwarts_11
e79a0de2508dd6801d46893271bcbc239edff3e8
805ee2586a25da1e710ba3acf63b5591dd76fcc6
refs/heads/master
2022-07-18T11:03:09.692778
2020-04-13T14:57:49
2020-04-13T14:57:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
787
py
# !/usr/bin/env python3 # -*- coding: utf-8 -*- """ @Project : Hogwarts_11 @File : test_search.py @Time : 2020-03-30 10:30:18 @Author : indeyo_lin """ import pytest from test_appium.page.app import App class TestSearch: def setup(self): self.page = App().start().main().goto_search() def test...
[ "indeyo@git.com" ]
indeyo@git.com
812800e0ba2f557721a2771d61de9304ab8789cc
3a1be455fc5e117bd8792ed46c59793f8b29a01f
/python/paddle/fluid/tests/unittests/ipu/test_greater_op_ipu.py
934ad1014282703a4660e25725015fa588bb379a
[ "Apache-2.0" ]
permissive
liyancas/Paddle
42d5e7c71c37b4e63bf54e6e31e82e40aef044ce
98303291d27cb831b19111d82793159cbe9a85ca
refs/heads/develop
2022-05-21T03:27:16.497238
2022-04-01T00:52:17
2022-04-01T00:52:17
72,499,865
0
0
Apache-2.0
2022-02-11T08:16:37
2016-11-01T03:17:41
Python
UTF-8
Python
false
false
5,422
py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
liyancas.noreply@github.com
3d8f2df75d1761a1b24f57e53f4640e6fa499b23
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_117/ch27_2019_03_08_12_32_17_139310.py
beac39a68b2338e79d5a49e9521b451eff51529b
[]
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
176
py
cigarros=int(input("quantos cigarros fuma por dia?")) anos=int(input("quantos anos?")) Tempo_de_vida_perdido=((int(cigarros)*365)*int(anos))*10 print (Tempo_de_vida_perdido)
[ "you@example.com" ]
you@example.com
ebdec2b196300b6b5d65b0d2260ebb5f1d6fe028
7889f7f0532db6a7f81e6f8630e399c90438b2b9
/1.5.0/mpl_examples/api/filled_step.py
42d61dc917668293fb8e7bf059ba464eed8925e2
[]
no_license
matplotlib/matplotlib.github.com
ef5d23a5bf77cb5af675f1a8273d641e410b2560
2a60d39490941a524e5385670d488c86083a032c
refs/heads/main
2023-08-16T18:46:58.934777
2023-08-10T05:07:57
2023-08-10T05:08:30
1,385,150
25
59
null
2023-08-30T15:59:50
2011-02-19T03:27:35
null
UTF-8
Python
false
false
6,444
py
import itertools from functools import partial import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as mticker from cycler import cycler from six.moves import zip def filled_hist(ax, edges, values, bottoms=None, orientation='v', **kwargs): """ Draw a histogram as a step...
[ "quantum.analyst@gmail.com" ]
quantum.analyst@gmail.com
d8d1483f9f79e9e32c3b1a3028bd7eea445cce5b
b2cefb7a2a83aa93ee1b15a780b5ddf6c498215b
/nemo/collections/asr/parts/utils/rnnt_utils.py
4b91eace8ad6f61848e401d3efd980c132c03d99
[ "Apache-2.0" ]
permissive
VahidooX/NeMo
bfde8c9b48c818342a9c6290fb9dee62fafeca38
866cc3f66fab3a796a6b74ef7a9e362c2282a976
refs/heads/main
2023-07-23T19:13:39.948228
2022-04-29T21:51:54
2022-04-29T21:51:54
227,733,473
1
2
Apache-2.0
2022-09-15T15:30:13
2019-12-13T01:55:21
Jupyter Notebook
UTF-8
Python
false
false
5,863
py
# Copyright (c) 2020, 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 # # Unless required by appli...
[ "noreply@github.com" ]
VahidooX.noreply@github.com
72c20e2df29fcea30fe8377b3aafcd9722b96b2b
ef3ac1664accfe2f4f28800cb3dde383d04e2636
/max len when alternating num are even and odd.py
92e25b7c837f76ffaa71f84ffb3a4f3bebd3ae18
[]
no_license
Shamabanu/python
2466b253ead7249147844e22ede9017a2ffb299a
76350525586b285773edb58912c1ba8eee35d1a6
refs/heads/master
2020-03-27T15:45:09.838053
2019-08-14T15:06:18
2019-08-14T15:06:18
146,736,750
3
6
null
null
null
null
UTF-8
Python
false
false
222
py
num=input() m=[] s=0 for i in range(0,len(num)-1): k=int(num[i])+int(num[i+1]) if k%2!=0: s=s+1 else: m.append(s) s=0 m.append(s) n=max(m) if n==0: print(0) else: print(n+1)
[ "noreply@github.com" ]
Shamabanu.noreply@github.com
02fe935d53fe2979fae0f6a73cfa11bc96de96d4
52d73c4b6ad70b62000d9d01e3dbab94f1edcb39
/uiautomator2/settings.py
7c6aea22b08ddeefc1661a927266e822bf257347
[ "MIT" ]
permissive
zenjan1/uiautomator2
ff50abae9bfe7430aea77bbf4431eab472153a8c
907ea86099719edaec14f802f5182f1a8b359840
refs/heads/master
2022-06-04T06:44:07.467582
2020-05-03T07:17:14
2020-05-03T07:17:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
# coding: utf-8 # import json import logging import pprint from typing import Any class Settings(object): def __init__(self, d): self._d = d self._defaults = { "post_delay": 0, # Deprecated "wait_timeout": 20.0, "xpath_debug": False, #self._set_xpath_debug, ...
[ "codeskyblue@gmail.com" ]
codeskyblue@gmail.com
1735958f710b4c8ae98f9c5ce173e0ec8d124e60
2339a41252821d69b808d15f22a8b5913838392e
/Rod/test_MCCD.py
d066b8a1807df9c72a6e9034adc23eb8798f56f3
[]
no_license
xinyazhang/tfhair
26d7c3e059e55dd6f51b6138f6e842ffce10e58f
a17df7d81cb9baf170a965ccc530f48582d60b62
refs/heads/master
2021-06-18T14:21:29.004713
2017-05-06T19:40:21
2017-05-06T19:40:21
87,961,373
0
0
null
null
null
null
UTF-8
Python
false
false
14,524
py
#!/usr/bin/env python2 ''' Test for Motions ''' import numpy as np from ElasticRod import * import RodHelper as helper import tensorflow as tf import math from math import pi import progressbar def run_with_bc(n, h, rho, icond, path, icond_updater=None): ''' Run the simulation with given boundary conditions (...
[ "xinyazhang@utexas.edu" ]
xinyazhang@utexas.edu
7c3cc5ad73fd374240d67326c992a1b4bc7e8aff
5db0fab37c2b8a618d85d3b60fab9f806c416474
/src/python/pants/backend/python/subsystems/setup.py
daee3e34c727448755ce462c7cbf1ebc5eaee574
[ "Apache-2.0" ]
permissive
pantsbuild/pants
4988d1ac5474ec95f94ce2218aeb759401e4b011
98cbda8545f0d58c586ed2daa76fefd729d5e0d5
refs/heads/main
2023-09-05T03:44:17.646899
2023-09-01T19:52:09
2023-09-01T19:52:09
7,209,075
2,708
593
Apache-2.0
2023-09-14T19:33:33
2012-12-17T17:39:04
Python
UTF-8
Python
false
false
28,266
py
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import enum import logging import os from typing import Iterable, List, Optional, TypeVar, cast from packaging.utils import canonicalize_name from pan...
[ "noreply@github.com" ]
pantsbuild.noreply@github.com
7e7b13cc713a73b93b9922fa4890545534bec49f
149e9e52304a970ffb256f290fce5f614c9e20c4
/Python Programming language/DataCampPractice/Corso_CISCO_netacad/modules/platform_module/m9_platform.py
418ca4b294f6305bd778bfbbc88fc1fb4623c30e
[]
no_license
Pasquale-Silv/Improving_Python
7451e0c423d73a91fa572d44d3e4133b0b4f5c98
96b605879810a9ab6c6459913bd366b936e603e4
refs/heads/master
2023-06-03T15:00:21.554783
2021-06-22T15:26:28
2021-06-22T15:26:28
351,806,902
0
0
null
null
null
null
UTF-8
Python
false
false
939
py
""" But sometimes you want to know more - for example, the name of the OS which hosts Python, and some characteristics describing the hardware that hosts the OS. There is a module providing some means to allow you to know where you are and what components work for you. The module is named platform We'll show you some ...
[ "55320885+Pasquale-Silv@users.noreply.github.com" ]
55320885+Pasquale-Silv@users.noreply.github.com
b4eadce6676c593ff4b4b8f33c4ab61fae97d601
77b16dcd465b497c22cf3c096fa5c7d887d9b0c2
/Quintana_Jerrod/Assignments/f+sql_projects/login_registration/mysqlconnection.py
4c155f5e9f6da54e3176b393d8fb413e17530147
[ "MIT" ]
permissive
curest0x1021/Python-Django-Web
a7cf8a45e0b924ce23791c18f6a6fb3732c36322
6264bc4c90ef1432ba0902c76b567cf3caaae221
refs/heads/master
2020-04-26T17:14:20.277967
2016-10-18T21:54:39
2016-10-18T21:54:39
173,706,702
6
0
null
null
null
null
UTF-8
Python
false
false
2,250
py
""" import the necessary modules """ from flask_sqlalchemy import SQLAlchemy from sqlalchemy.sql import text # Create a class that will give us an object that we can use to connect to a database class MySQLConnection(object): def __init__(self, app, db): config = { 'host': 'localhost', ...
[ "43941751+curest0x1021@users.noreply.github.com" ]
43941751+curest0x1021@users.noreply.github.com
0fbd804353c409e267bd017d27c00640523191a2
1b787489aab83b2e06a8f658ee8e01a10eb01998
/antpat/reps/hamaker.py
f4272ea25cf8388cb1ffd0520e9dc8142dc481d5
[ "ISC" ]
permissive
daydreamer2023/AntPat
7edd471bd1e0997eb5befa029120ba13b861f106
6dc416a1593346421337400f880e7159a07447f6
refs/heads/master
2022-01-22T17:52:39.300557
2019-08-15T08:41:24
2019-08-15T08:41:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,368
py
#!/usr/bin/python """Hamaker's analytic antenna pattern model.""" #TobiaC 2015-11-29 (2015-07-31) import sys #sys.path.append('/home/tobia/projects/BeamFormica/AntPatter/') import math import cmath import scipy.special import numpy from antpat import dualpolelem from antpat.reps.sphgridfun import tvecfun, pntsonsphere...
[ "tobia@chalmers.se" ]
tobia@chalmers.se
91554162b70e52b44dac5788af4f99b9d261c2e6
1a220abd21c56728aa3368534506bfc9ced8ad46
/3.beakjoon/DP/BOJ_가장 큰 증가하는 부분 수열.py
f52f6d4ddeb092b4be6311015d24ddfacf7df44e
[]
no_license
JeonJe/Algorithm
0ff0cbf47900e7877be077e1ffeee0c1cd50639a
6f8da6dbeef350f71b7c297502a37f87eb7d0823
refs/heads/main
2023-08-23T11:08:17.781953
2023-08-23T08:31:41
2023-08-23T08:31:41
197,085,186
0
0
null
2023-02-21T03:26:41
2019-07-15T23:22:55
Python
UTF-8
Python
false
false
340
py
n = int(input()) nums = list(map(int,input().split())) if n == 1: print(nums[0]) exit(0) LIS_sum = [0]*(n) LIS_sum[0] = nums[0] for i in range(1,n): temp = 0 for j in range(i-1,-1,-1): if nums[j] < nums[i]: temp = max(temp, LIS_sum[j]) LIS_sum[i] = temp+nums[i] ...
[ "whssodi@gmail.com" ]
whssodi@gmail.com
942f086421c66cf688e405fc33af1707af5ebc2b
d7016f69993570a1c55974582cda899ff70907ec
/sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2022_03_01/operations/_images_operations.py
2edb1f0d7e16c55f9a9d125bf0a0d5a541741cbe
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
45,959
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
a5c5dcbc94612c0992dd51b396788cba593b0e91
b224c7413b7e6a1cb78dad60b4899674fefe8269
/openforce_financial_report/report/__init__.py
f25291a28701b525b54a4b167f885ea54eb1abb4
[]
no_license
alessandrocamilli/7-openforce-addons
2ee00b712538a8eb433d0ce0c63cd12a861548e6
78fc164679b690bcf84866987266838de134bc2f
refs/heads/master
2016-08-03T11:58:12.730337
2014-07-03T10:29:56
2014-07-03T10:29:56
21,004,298
1
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
# -*- coding: utf-8 -*- ############################################################################## # # Author: Alessandro Camilli (a.camilli@yahoo.it) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # ...
[ "alessandrocamilli@openforce.it" ]
alessandrocamilli@openforce.it
50a2ef5128dd7ed1fe459863cad3a6691fb09054
7ae754f51aaf2e6e559b925980c35fe795808537
/02_分支/hm_07_火车站安检.py
49c870c4d693840399ef573b305e8d8426bed2bc
[]
no_license
xiaohema233/PythonStart
be113d9359734d17eeb22b0584cf240a128fed3c
44f98fc6c50f2c85b72ee029ec99d3099459f370
refs/heads/master
2022-05-15T19:33:22.363721
2022-05-09T06:28:05
2022-05-09T06:28:05
241,621,051
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
# 定义布尔型变量 has_ticket 表示是否有车票 has_ticket = True # 定义整型变量 knife_length 表示刀的长度,单位:厘米 knife_length = 30 # 首先检查是否有车票,如果有,才允许进行 安检 if has_ticket: print("车票检查通过,准备开始安检") # 安检时,需要检查刀的长度,判断是否超过 20 厘米 if knife_length > 20: # 如果超过 20 厘米,提示刀的长度,不允许上车 print("您携带的刀太长了,有 %d 公分长!" % knife_length) ...
[ "33052287+xiaohema233@users.noreply.github.com" ]
33052287+xiaohema233@users.noreply.github.com
44132d5bd3147c83d6a97cb746893c629d905bfa
9c880db9912c35a73469f728245de78459763ce4
/ProjectCode/DataPreprocess.py
de80744293fdabddd08e68bd8803a6da43957549
[]
no_license
Lizi2hua/Project-111
3a17e396230c76bf47dd8209e801fe5edd079004
57dc7e331b5bfa860226e67c6f45de682720df98
refs/heads/master
2022-10-20T16:36:47.322765
2020-07-14T14:42:03
2020-07-14T14:42:03
277,501,675
0
0
null
null
null
null
UTF-8
Python
false
false
4,166
py
#将所有的数据处理函数都包含到此文件下 import SimpleITK as sitk import os import json import glob import SimpleITK as sitk import pandas as pd import matplotlib.pyplot as plt # dcm数据处理函数 def dicom_metainfo(dicm_path, list_tag): ''' 获取dicom的元数据信息 :param dicm_path: dicom文件地址 :param list_tag: 标记名称列表,比如['0008|0018',] :r...
[ "1050100964@qq.com" ]
1050100964@qq.com
a9cf8b7863b31cbd9969909edaa8c0ecef6230ee
bfd04e41f0b5b236ef937eb3922a105d00d25ce0
/db/campaigns/migrations/0001_initial.py
11a233e848f4766a19dd5444b69249caf5e3acf5
[ "MIT" ]
permissive
cega/try.wq.io
5c9dac3f428b2a92c63096f0cb882f264f684b9f
fcb12d5e26a05f6a653f0cf63e668ea1a2f088c2
refs/heads/master
2021-06-09T20:41:25.402542
2016-11-29T19:41:59
2016-11-29T19:41:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,079
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-23 15:59 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
[ "andrew@wq.io" ]
andrew@wq.io
d9b9389944f741e45759c518f06c672459fe46f7
a281d09ed91914b134028c3a9f11f0beb69a9089
/great_expectations/rule_based_profiler/domain_builder/column_pair_domain_builder.py
e7290588875208769d5627b986abc51a6ca0c953
[ "Apache-2.0" ]
permissive
CarstenFrommhold/great_expectations
4e67bbf43d21bc414f56d576704259a4eca283a5
23d61c5ed26689d6ff9cec647cc35712ad744559
refs/heads/develop
2023-01-08T10:01:12.074165
2022-11-29T18:50:18
2022-11-29T18:50:18
311,708,429
0
0
Apache-2.0
2020-11-10T15:52:05
2020-11-10T15:52:04
null
UTF-8
Python
false
false
3,949
py
from __future__ import annotations from typing import TYPE_CHECKING, Dict, List, Optional, Union import great_expectations.exceptions as ge_exceptions from great_expectations.core.metric_domain_types import MetricDomainTypes from great_expectations.rule_based_profiler.domain import ( INFERRED_SEMANTIC_TYPE_KEY, ...
[ "noreply@github.com" ]
CarstenFrommhold.noreply@github.com
2a947cb9b779beaefbc64505b7502fe3f4a97d72
38346ccf93e0c0d49a378b2532fe215669018829
/nipype/interfaces/mrtrix/tests/test_auto_SphericallyDeconvolutedStreamlineTrack.py
447ba546dd431fb73ff3b3ce3dbc8a4164d3feb4
[ "BSD-3-Clause" ]
permissive
swederik/nipype
de509c2605bc83448240c7c3c68ee8d220d48ef3
872720a6fc00b00e029fb67742deedee524b2a9f
refs/heads/master
2020-12-25T10:08:44.268742
2014-05-22T14:05:58
2014-05-22T14:05:58
1,421,176
3
2
null
null
null
null
UTF-8
Python
false
false
3,106
py
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from nipype.testing import assert_equal from nipype.interfaces.mrtrix.tracking import SphericallyDeconvolutedStreamlineTrack def test_SphericallyDeconvolutedStreamlineTrack_inputs(): input_map = dict(args=dict(argstr='%s', ), cutoff_value=dict(argstr='-...
[ "satra@mit.edu" ]
satra@mit.edu