blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
3e488c1e6d8440ad53c140620d92ef2e370ce8d9
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/crnn_seq2seq_ocr/export.py
5e3a5b228456dd05aac02549e97f25cb124b1625
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
2,428
py
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
[ "chenhaozhe1@huawei.com" ]
chenhaozhe1@huawei.com
38eaa72b941d96798a70a6dda2b4584e8d01c6e4
031dbb2a3ea47a0483db310db9f98796cc83c500
/787_Cheapest Flights Within K Stops.py
6023db6bc0143b13eabbfbbe62dfaa8852018733
[]
no_license
Shwan-Yu/Data_Structures_and_Algorithms
429fb127983e32931f2168f44ef1484c1cc4c87f
9126c2089e41d4d7fd3a204115eba2b5074076ad
refs/heads/master
2020-03-27T11:46:59.947303
2019-08-23T15:15:21
2019-08-23T15:15:21
146,507,496
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
class Solution(object): def findCheapestPrice(self, n, flights, src, dst, K): """ :type n: int :type flights: List[List[int]] :type src: int :type dst: int :type K: int :rtype: int """ if not flights: return 0 dp = [float("inf")] * n ...
[ "noreply@github.com" ]
Shwan-Yu.noreply@github.com
17f42d961d07ae670ad5a9895a53fe22b9e5e27b
3def27e101ca346af6b30247769719f5cd5a27c0
/indiaos/config/docs.py
95939bb230467499359e5175e7a089a84d88ecaa
[ "MIT" ]
permissive
anto-christo/indiaos
9fb94527092570981288b42a05001cf33b61b522
4b029cf86e49dcabad852312293e6fa5116d4155
refs/heads/master
2020-09-13T19:50:15.187112
2019-11-20T08:30:13
2019-11-20T08:30:13
222,887,034
1
0
NOASSERTION
2019-11-20T08:24:27
2019-11-20T08:24:26
null
UTF-8
Python
false
false
313
py
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/indiaos" # docs_base_url = "https://[org_name].github.io/indiaos" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "IndiaOS"
[ "scm.mymail@gmail.com" ]
scm.mymail@gmail.com
bfcf8014c00faabd8828474c77a4d96497ba9a38
da54cb56e69ca730156156ca70a720cfbd7723ea
/others/coffee_plackett/mindsdb_acc.py
78dfe064c969ce8ad89c969d29d4efe3ffbc3f23
[ "MIT" ]
permissive
setohe0909/mindsdb-examples
b4f7908aa0c96fc0ea0721931f95bc4960bc2867
04fc9b4ad9bb8e960a996e1c4eab1e6054bca8ff
refs/heads/master
2022-11-27T00:21:16.114913
2020-08-06T15:33:17
2020-08-06T15:33:17
296,442,864
1
0
MIT
2020-09-17T21:08:52
2020-09-17T21:08:51
null
UTF-8
Python
false
false
237
py
from mindsdb_native import Predictor mdb = Predictor(name='coffee_predictor') mdb.learn(from_data='data.tsv', to_predict=['Coffe_Malt', 'Chocolat', 'Gold', 'Medium_Barley', 'Dark_Barley', 'Dandelion', 'Beets', 'Chicory_Roots', 'Figs'])
[ "george@cerebralab.com" ]
george@cerebralab.com
484d7007aa18126e562a439f5ddb39f19a4e0ea8
908655251066427f654ee33ebdf804f9f302fcc3
/Tests/CartPoleAST/CartPoleNdRewardt/MultiCartPoleNd_RLNonInter.py
7bde5b51f00c93349bfd677128345b1493e7a0c2
[]
no_license
maxiaoba/MCTSPO
be567f80f1dcf5c35ac857a1e6690e1ac599a59d
eedfccb5a94e089bd925b58f3d65eef505378bbc
refs/heads/main
2023-07-05T02:20:16.752650
2021-07-06T06:04:40
2021-07-06T06:04:40
381,811,407
0
0
null
null
null
null
UTF-8
Python
false
false
4,181
py
import os os.environ["CUDA_VISIBLE_DEVICES"]="-1" #just use CPU # from garage.tf.algos.trpo import TRPO from garage.baselines.zero_baseline import ZeroBaseline from mylab.envs.tfenv import TfEnv from garage.tf.policies.gaussian_mlp_policy import GaussianMLPPolicy from garage.tf.policies.gaussian_lstm_policy import ...
[ "xiaobaima@DNab421bb2.stanford.edu" ]
xiaobaima@DNab421bb2.stanford.edu
5e58b6483a21d1dcda87883dadabb128dcf9cdbe
4ed038a638725ac77731b0b97ddd61aa37dd8d89
/cairis/gui/SecurityPatternDialog.py
08a80cb3e41d28e481cae171536b5d583ce0b767
[ "Apache-2.0" ]
permissive
RachelLar/cairis_update
0b784101c4aff81ff0390328eb615e335301daa2
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
refs/heads/master
2021-01-19T06:25:47.644993
2016-07-11T20:48:11
2016-07-11T20:48:11
63,103,727
0
0
null
null
null
null
UTF-8
Python
false
false
3,874
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...
[ "shamal.faily@googlemail.com" ]
shamal.faily@googlemail.com
a683c1f4c81d2952675346854e2f80efb8473601
37ba3d21dcb6edd21e48dbb7f12591ac3590ab64
/python_problems_competitive/ten_kinds_of_people.py
4ef27f518e9cd247adcaa9041da10f96bc2643ec
[]
no_license
Hygens/hackerearth_hackerrank_solutions
2feaedec255a85792d305bb8ff35675254a03f2a
86cc4c9ca4d5246f24db8cda93400f1d7ee00882
refs/heads/master
2021-07-06T15:56:28.906533
2020-04-28T22:45:56
2020-04-28T22:45:56
55,160,498
1
2
null
2020-10-01T06:48:09
2016-03-31T15:15:36
Python
UTF-8
Python
false
false
331
py
r,c = map(int,input().split(' ')) l = [] for i in range(r): l.append(list(input().strip())) n = int(input().strip()) for _ in range(n): r1,c1,r2,c2 = map(int,input().split(' ')) if l[r1-1][c1-1]==l[r2-1][c2-1]=='0': print('binary') elif l[r1-1][c1-1]==l[r2-1][c2-1]=='1': print('decimal') else: print...
[ "noreply@github.com" ]
Hygens.noreply@github.com
2e6d525f0693ba26ecf20429238d8ba878370522
bc441bb06b8948288f110af63feda4e798f30225
/resource_package_tools_sdk/model/container/ingress_rule_pb2.py
e7533ea4ef040c1f29394bd3dd0d9f6cdf9fbc34
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
true
4,319
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: ingress_rule.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobu...
[ "service@easyops.cn" ]
service@easyops.cn
3fa376f3ef087cee256d7492675fdc21898a7b95
92c724afcc40c9e4d86af24b1b493e10fc8a994d
/src/figures/exploratory/exploratory_plots.py
f99cbafd230e2935a17d634a4cf0fd989b289b41
[ "MIT" ]
permissive
willgdjones/GTEx
48d7551c765700d0db34bb8f6e01f7f2a55bec6c
c56a5d548978545ab8a98e74236d52343113e9e6
refs/heads/master
2021-09-13T13:21:12.928226
2018-02-06T16:42:41
2018-02-06T16:42:41
90,028,785
2
0
null
null
null
null
UTF-8
Python
false
false
3,241
py
import pickle import numpy as np import matplotlib.pyplot as plt import seaborn import h5py GTEx_directory = '/hps/nobackup/research/stegle/users/willj/GTEx' retrained_mean_features = {} with h5py.File(GTEx_directory + '/small_data/new_retrained_inceptionet_aggregations.hdf5','r') as f: expression = f['lung']['...
[ "williamgdjones@gmail.com" ]
williamgdjones@gmail.com
7c36ac1c024cf960649d2e0a49ddbbd0087fdc2f
a849caca4cc7b66bb3ca93552da873c1415f435d
/Lab Exercise 1.6.2020/fermi.py
0fb3f6a5b5b8d5291e9c7c3a08e24662cec98290
[]
no_license
nmessa/Python
5215b957dc73ece422a0f4cc65752c387a437d34
1a32ca1f59aa5a3f89453b6e42d4336e6e8fb961
refs/heads/master
2021-07-11T04:45:08.222102
2020-09-17T17:32:07
2020-09-17T17:32:07
199,273,131
0
1
null
null
null
null
UTF-8
Python
false
false
2,182
py
## Game of Fermi Version 0.5 ## Author: ## Date: 1/6/2020 ## The goal of the game is for the player to guess the digits in ## the three positions in the least number of tries. For each guess, ## the player provides three digits for position 1, 2, and 3. ## The program replies with a hint consisting of Fermi, Pi...
[ "noreply@github.com" ]
nmessa.noreply@github.com
ef31a019c6a45e981d10734a870eb4e44043c0d3
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/pkgs/bokeh-0.11.1-py27_0/lib/python2.7/site-packages/bokeh/command/subcommands/tests/test_info.py
42f6e6e775b0cc0b11df05470c21ff00bfa6d4cd
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
1,238
py
from __future__ import absolute_import import bokeh.command.subcommands.info as scinfo from bokeh.command.bootstrap import main def test_create(): import argparse from bokeh.command.subcommand import Subcommand obj = scinfo.Info(parser=argparse.ArgumentParser()) assert isinstance(obj, Subcommand) de...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
38a80c15f2ce13d2c78e5913a3b1aadf4fc2e70a
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa3/benchmarks/sieve-457.py
99bc8c55e3be4471951f624dbaca0a87b6c3a62a
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
2,586
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
de584c4eb19bb366f817c87559e42f7c262ffe1d
64a2e19c11929e9077a8c99e8d388de279e512e9
/testRunner/runner.py
0278655d701a52dba205cd68ffe58b706039b381
[]
no_license
wallaceok/appiumn_auto
60f8a2b152a27c39cabf12529345909979527115
e543a662897c0eedfafdea64297947aa6de45539
refs/heads/master
2020-12-24T06:00:26.338592
2016-11-08T10:04:04
2016-11-08T10:04:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,471
py
__author__ = 'Administrator' # -*- coding: utf-8 -*- import sys sys.path.append("..") import datetime import xlsxwriter import time import unittest from common import reportPhone from testRunner.runnerBase import TestInterfaceCase, ga from testCase.Home import testHome from testCase.work import testContact from testCas...
[ "284772894@qq.com" ]
284772894@qq.com
ca4b7e3b02e3f9d8bd800d4002d8a1a7aaa44271
0b7add5d8583ba3bb02faf4fd5c356fd578f2fcc
/compileProtobuf/dstPb/RightInputProto_pb2.py
6c7f725c3da07982fafe4f3b3735e4d2df9ca053
[]
no_license
cappuccino213/IMCIS2Performance
281f052f1a5dddb4956b3e7127781d2395c07e04
74528e0606f78459f6f3bfcf38d4fdf176a36f90
refs/heads/master
2023-03-27T20:44:57.266345
2021-03-29T07:56:56
2021-03-29T07:56:56
352,560,398
1
0
null
null
null
null
UTF-8
Python
false
true
3,095
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: RightInputProto.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google...
[ "yeahcheung213@163.com" ]
yeahcheung213@163.com
a1ca652bbcbc6fe3ceebec0c3c56a8205ba2449f
3597ecf8a014dbd6f7d998ab59919a94aff8011d
/front-web/src/www/application/modules/treatment/block/actions.py
18cc3477c9e71c71e2a949ed2b6fbd5799dbce77
[]
no_license
duytran92-cse/nas-genomebrowser
f42b8ccbb7c5245bde4e52a0feed393f4b5f6bf1
d0240ad5edc9cfa8e7f89db52090d7d733d2bb8a
refs/heads/master
2022-10-24T05:26:01.760241
2020-06-14T19:01:35
2020-06-14T19:01:35
272,264,694
0
0
null
null
null
null
UTF-8
Python
false
false
4,214
py
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from django.conf import settings from notasquare.urad_web import actions, page_contexts, widgets from notasquare.urad_web_material import renderers from application.modules.common import page_contexts, actions as common_actions, components as comm...
[ "thanh.tran@etudiant.univ-lr.fr" ]
thanh.tran@etudiant.univ-lr.fr
2acbb3b79b0a4861189cb1c43f2d7fd5049f0132
fc2447b91cbee82e74e939092ec1903678f3217a
/PythonPractice/hm_py/hm_oop/oop_single.py
4b09ef3d411106af86bc146dc8c60d1ee2a315ee
[]
no_license
yglj/learngit
0eac654e7c49f2ede064b720e6ee621a702193b4
74fb4b93d5726c735b64829cafc99878d8082121
refs/heads/master
2022-12-24T10:01:56.705046
2019-05-27T21:04:08
2019-05-27T21:04:08
146,157,116
0
1
null
2022-12-12T07:01:25
2018-08-26T06:28:20
HTML
UTF-8
Python
false
false
924
py
# 单例设计模式 # 类只有创建唯一个对象实例 # 应用场景: 打印机,回收站,音乐播放对象 # __new__() object提供的内置静态方法,作用:为对象分配空间,返回对象引用 class MusicPlayer: __init_flag = False instance = None def __new__(cls, *args): if cls.instance is None: # 利用__new__只分配一次对象空间,来实现单例 print('创建对象时,自动分配空间') cls.instance = super().__...
[ "2365952530@qq.com" ]
2365952530@qq.com
e6cc8b2f9f4f193759e2a16a4b7d84f28a162423
d87483a2c0b50ed97c1515d49d62c6e9feaddbe0
/.history/get_positions_20210205021452.py
db0322e005440ad0d993a22856f8587be75cdf25
[ "MIT" ]
permissive
HopperKremer/hoptrader
0d36b6e33922414003cf689fb81f924da076a54b
406793c10bc888648290fd15c7c2af62cf8c6c67
refs/heads/main
2023-06-12T15:51:00.910310
2021-07-06T16:15:41
2021-07-06T16:15:41
334,754,936
0
2
null
null
null
null
UTF-8
Python
false
false
1,840
py
# Buy top tickers from Financhill import requests from tda import auth, client from tda.orders.equities import equity_buy_market, equity_buy_limit from tda.orders.common import Duration, Session import os, sys import time from selenium import webdriver import json currentdir = os.path.dirname(os.path.realpath(__file__...
[ "hopperkremer@gmail.com" ]
hopperkremer@gmail.com
dc816389c06442347a202791e2f3ecfc4e43a317
2cd06e44dd79b45708ddf010c31289458d850b94
/test/functional/feature_maxuploadtarget.py
b5a44cbc6b5cb6b89aca3c4c47d2ce7ef4634a00
[ "MIT" ]
permissive
adymoloca/flocoin
bc66233e5b3b1af294ca6719b4a26f8829d682e4
d9244577577dede975c852f6fcfe1afba4d71a57
refs/heads/master
2023-08-21T23:51:28.266695
2021-10-06T01:40:10
2021-10-06T01:40:10
408,609,250
0
0
MIT
2021-09-30T10:11:53
2021-09-20T21:45:28
C++
UTF-8
Python
false
false
6,653
py
#!/usr/bin/env python3 # Copyright (c) 2015-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test behavior of -maxuploadtarget. * Verify that getdata requests for old blocks (>1week) are dropped ...
[ "adymoloca91@gmail.com" ]
adymoloca91@gmail.com
ea8bcdc0b183def68c8745950edbbf13533c588d
65b708f0646ea090a4e9bc615cd37fd799bd9bce
/venv/Scripts/pip3-script.py
307f938a7427296d42bf18912a97aeee71dc9f96
[]
no_license
chrisna2/python-web-scrapping
af803079586c7b798365d23f5667a24d0c6633e8
92e74b4985006246f543de87ff26673b94e8c0a8
refs/heads/master
2020-07-08T14:40:32.959560
2019-08-23T03:19:47
2019-08-23T03:19:47
203,703,270
1
0
null
null
null
null
UTF-8
Python
false
false
416
py
#!D:\tyn_dev\workspace_pycham\web-scrapping\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __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.ar...
[ "chrisna2@hanmail.net" ]
chrisna2@hanmail.net
fb7d5bf4a453cf483c36820ec233a56926f63930
c7e765a9bed33d3bfb21774e3995bf4a09e04add
/adminmgr/media/code/A2/python/task/BD_1117_1375_1419_1525.py
ea86b27f17cbd91f3957294e879438d4f68c005f
[ "Apache-2.0" ]
permissive
IamMayankThakur/test-bigdata
13dd2ac7fb76c9baed6c3a0aa943057a22e2d237
7f507918c7bec31c92eedcd94491a83486623049
refs/heads/master
2022-05-03T00:59:44.127494
2022-02-10T19:50:16
2022-02-10T19:50:16
201,585,028
10
4
Apache-2.0
2022-04-22T23:39:45
2019-08-10T05:34:09
Python
UTF-8
Python
false
false
2,562
py
from __future__ import print_function import re import sys from operator import add from pyspark.sql import * def calcRank(BatBowl, rank): n = len(BatBowl) for i in BatBowl: yield (i, float(rank)/float(n)) checking = 1 def batbowlKeyValue(x): lol = x.split(',') return lol[0],lol[1] d...
[ "ubuntu@ip-172-31-18-251.ap-south-1.compute.internal" ]
ubuntu@ip-172-31-18-251.ap-south-1.compute.internal
7a3f9d1a7437cf258fd93efcfdfa3f3a3316d099
45ca434bdb9e48fdbb2cda0e7fdd9a76474117b0
/aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/SetFileCacheExpiredConfigRequest.py
55bd0c22970cd64217840720fb797559c0c97d7f
[ "Apache-2.0" ]
permissive
wanyanzhenjiang/aliyun-openapi-python-sdk
e41e9937ad3f851e5a58f6bea95663e88f7fee13
4a5bf1b35f2395d047ead4444ea46721976bdd24
refs/heads/master
2020-12-30T10:37:55.789911
2017-07-27T06:55:15
2017-07-27T06:55:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,989
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 ...
[ "haowei.yao@alibaba-inc.com" ]
haowei.yao@alibaba-inc.com
dc4e498d5e94244fea4ccc62a2671836d7858c62
438f8490be1fa3818daad38254a77bb11ba367b3
/project/settings.py
6b500d837b395a5d1f67ad16fa8a0d8088cd6b65
[]
no_license
n7ey233/maximanat
2ea0b3c80729dd10e6023b053523ebe7e6ba22d8
812d7396fe64af85f86e2dd5e257935bde8719e2
refs/heads/master
2020-04-13T10:13:01.382912
2018-12-28T06:31:19
2018-12-28T06:31:19
163,133,576
0
0
null
null
null
null
UTF-8
Python
false
false
3,284
py
""" Django settings for project project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os #...
[ "you@example.com" ]
you@example.com
5b161e0a9d07b0bddab72ace77e7c27caff8d41a
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/89/usersdata/202/62093/submittedfiles/matriz1.py
f2273f8e67d6acee35c26497ab06b264203a4c29
[]
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
774
py
# -*- coding: utf-8 -*- import numpy as np def cortel1(a): for i in range(0,a.shape[0],1): for i in range (0,a.shape[1],1): if a[i,j]==1: return i def cortel2(a): for j in range(0,a.shape[1],1): for i in range (0,a.shape[0],1): if a[i,j]==1: ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
dcb9a544cce84c43cf9b3d7b349db60e8139ccde
9ce822c07edef943dc519a7ab3916f5a667e114a
/location_and_settings/location_and_settings/doctype/location_list/test_location_list.py
28da20eda77448d48672ee27fa1509ed7b30bbe6
[ "MIT" ]
permissive
hrgadeha/location_and_setting
250fec37c2e63ce7c31b41ac52e50bea1e333392
770a7a719ce66bfe699dc805839a972063ff8ab6
refs/heads/master
2020-04-25T03:43:09.423485
2019-02-28T12:09:31
2019-02-28T12:09:31
172,486,490
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
# -*- coding: utf-8 -*- # Copyright (c) 2019, Hardik Gadesha and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestLocationList(unittest.TestCase): pass
[ "you@example.com" ]
you@example.com
943046ca83cc744a00369e1e7ddfec263a7dc795
ad23b164febd12d5c6d97cfbcd91cf70e2914ab3
/webtestdata/wsgi.py
882a4bbee8f33c55053afc3819608ab439306db9
[]
no_license
wawj901124/webtestdata
9eedf9a01dec2c157725299bda9a42e8d357ef0b
54f6412566fce07ece912760c5caea73ede819cb
refs/heads/master
2022-12-09T14:18:38.125191
2021-04-25T07:54:07
2021-04-25T07:54:07
175,773,318
1
1
null
2022-12-08T02:39:15
2019-03-15T07:49:16
Python
UTF-8
Python
false
false
399
py
""" WSGI config for webtestdata 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.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
[ "410287958@qq.com" ]
410287958@qq.com
345e69a557ad41d9aae7895d883495769eee2017
41b4702e359e3352116eeecf2bdf59cb13c71cf2
/full_model_walker_param/utils/env_utils.py
110ef30017c069549d041f0bfb487b464dfec838
[]
no_license
CaralHsi/Multi-Task-Batch-RL
b0aad53291c1713fd2d89fa4fff4a85c98427d4d
69d29164ab7d82ec5e06a929ed3b96462db21853
refs/heads/master
2022-12-22T19:23:45.341092
2020-10-01T00:05:36
2020-10-01T00:05:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,899
py
import os from gym import Env from gym.spaces import Box, Discrete, Tuple import numpy as np from env.hopper import HopperVelEnv from env.half_cheetah import HalfCheetahVelEnv from env.ant_goal import AntGoalEnv from env.ant_dir import AntDirEnv from env.humanoid_dir import HumanoidDirEnv from env.humanoid_dir_openai...
[ "jil021@eng.ucsd.edu" ]
jil021@eng.ucsd.edu
3973203794a335401a2e5cfa6e3206483a4d7116
d26b3bbf0192cc334e5ac431c753ebcbf2baeb1a
/l10n_cn_hr_payroll/__init__.py
6adc439b170cc365b31453ea0481a8ba0709b7a9
[]
no_license
davgit/Xero-2
1d566357174d15d4f3b15cc849ce9f32f0c9ef3a
6477d844fde3f3b8f91d21b15ee7f8986a505de5
refs/heads/master
2021-01-21T20:49:47.585328
2013-02-16T08:13:22
2013-02-16T08:13:22
22,778,180
1
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2011 OpenERP SA (<http://openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the G...
[ "wangsong1233276@sina.com" ]
wangsong1233276@sina.com
07ccbaa13946f30e8d2d81bdcc3c948f8adb3036
5eff9df4d276e83c68ce843d58868499858f701a
/Interview/Trees/binary_tree_traversal.py
e5a7ce276633e535f5c96cfc7a75b9b0cfffea65
[]
no_license
arunraman/Code-Katas
b6723deb00caed58f0c9a1cafdbe807e39e96961
7fe3582fa6acf59a2620fe73e1e14bd8635bbee8
refs/heads/master
2023-03-04T17:27:44.037145
2023-03-02T21:09:53
2023-03-02T21:09:53
25,232,784
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
from binarytree import Node as Treenode class Solution(): def preOrder(self, root): if root == None: return print root.value, self.preOrder(root.left) self.preOrder(root.right) def inOrder(self, root): if root == None: return self.inOrder...
[ "arunraman.19@gmail.com" ]
arunraman.19@gmail.com
7c522e09e37bfa9cd52933f4b3a202340868c5d4
8c95e2185100db97f74d948407f9f6ac563905e5
/metronotation/routemap.py
8a6691a352602ddc2fcb031cd4e836d9009a1748
[ "MIT" ]
permissive
kitao/metro-notation
c5fec21fccba4ef2a21c3294575fd29498ff8ebc
34a9d2ca9fe17452c8eb5426636484f7cc29c605
refs/heads/main
2023-08-20T15:02:04.631092
2021-10-30T04:28:17
2021-10-30T04:28:17
321,700,124
4
0
null
null
null
null
UTF-8
Python
false
false
6,037
py
LAYER_TP = 0 LAYER_MD = 1 LAYER_BT = 2 LAYER_TM = 3 LAYER_BM = 4 LAYER_AL = 5 DIR_UP = (0, -1) DIR_DN = (0, 1) DIR_LT = (-1, 0) DIR_RT = (1, 0) DIR_LU = (-1, -1) DIR_RD = (1, 1) LETTER_TABLE = [ ("R", (LAYER_TP, DIR_UP, 1)), ("M", (LAYER_MD, DIR_DN, 1)), ("L", (LAYER_BT, DIR_DN, 1)), ("U", (LAYER_TP, ...
[ "takashi.kitao@gmail.com" ]
takashi.kitao@gmail.com
4f5f6cf6b975bc75e55183392098c5035bdaf30d
a742bd051641865d2e5b5d299c6bc14ddad47f22
/algorithm/牛客网/55-链表中环的入口节点.py
cb9f7c566cc7b629c3e7d7a7aef88c03f3a1a921
[]
no_license
lxconfig/UbuntuCode_bak
fb8f9fae7c42cf6d984bf8231604ccec309fb604
3508e1ce089131b19603c3206aab4cf43023bb19
refs/heads/master
2023-02-03T19:10:32.001740
2020-12-19T07:27:57
2020-12-19T07:27:57
321,351,481
0
0
null
null
null
null
UTF-8
Python
false
false
1,604
py
""" 给一个链表,若其中包含环,请找出该链表的环的入口结点,否则,输出null。 思路: 双指针法 快指针先走两步,慢指针走一步 当两个指针又相遇了,此时指向的节点可能是环的入口节点 再次让慢指针回到链表头,然后和快指针一起走,再次相遇时,就是环的入口节点 否则,快指针不存在时,表示没有环 或: 先让快指针走n步,n=链表的长度 之后再让快指针和慢指针一起走,直到相遇,此时就是环的入口节点 """ class ListNode: def _...
[ "525868229@qq.com" ]
525868229@qq.com
0c602c4d5aba8185e74b266e1050df2cd0ec026c
111082d7fd02a5f64cd1784b923a109cc95dc557
/dj_rulitool/wsgi.py
7ac1fe5349618d888f4dc721c11e7dfd58b406e3
[]
no_license
270466585/dj_rulitool
ba65a6ef1bc44b599f19ac1172d86e8d4b2a12af
0d2e97454c66d30537780d81b2a0b4b2f953b2ed
refs/heads/master
2020-04-14T20:25:36.592762
2019-01-04T10:28:18
2019-01-04T10:28:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
""" WSGI config for dj_rulitool project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_...
[ "27066585@qq.com" ]
27066585@qq.com
5224d8389d28f53149bb9a84556ad05b34511670
32711a21edff968fdbf9fa9baf0e0f8373d0e131
/authapp/forms.py
fa7e7e88283332593f25f77dbbd8f2f33b5d24c6
[]
no_license
acid-n/GeekShop
ca836a4daeb97754fafd44d36e705f0e160c8d4d
9749debe92e6ded46ed01082fbdb497a5f8485fa
refs/heads/master
2023-01-15T15:29:18.172547
2020-11-25T18:34:39
2020-11-25T18:34:39
296,569,582
0
0
null
2020-10-04T18:39:29
2020-09-18T09:02:03
JavaScript
UTF-8
Python
false
false
2,620
py
import hashlib import random from django import forms from django.contrib.auth.forms import AuthenticationForm, UserCreationForm, UserChangeForm from authapp.models import ShopUser, ShopUserProfile class ShopUserLoginForm(AuthenticationForm): class Meta: model = ShopUser fields = ('username', 'p...
[ "acid_n@mail.ru" ]
acid_n@mail.ru
6ac6c0894bfa4d2f46e20bd466eb57471523bfb5
ed78041a12c60e46bb0c4d347c47536e84307a96
/app/__init__.py
ea59f07f74501ccfe1fe861e921ef187326337da
[]
no_license
Garfield247/news_nlp
4875842af4249def6ffdc65a6e5896b02610dd8d
e18d178824ea9bf11d3895c58037a211f4b21cb6
refs/heads/master
2022-12-11T21:00:36.967826
2019-03-15T02:32:46
2019-03-15T02:32:46
161,159,779
0
0
null
2022-12-08T04:52:15
2018-12-10T10:48:41
JavaScript
UTF-8
Python
false
false
945
py
# -*- coding: utf-8 -*- from flask import Flask, render_template from app.config import config from app.extensions import config_extensions from app.views import config_blueprint # 封装一个方法,专门用于创建Flask实例 def create_app(config_name): # development # 创建应用实例 app = Flask(__name__) # 初始化配置 app.config.from_ob...
[ "Garfield_lv@163.com" ]
Garfield_lv@163.com
09997d079fdba85719df5fe4ccf2d3f6d5988d74
0e9789668dcfeeedacf78aa9917bb95ec9a5f763
/preprocessing/load_data.py
5ff6f999bcc4fb4aae3d0baad46dc27ccc9be878
[]
no_license
mma1979/Simple-Sentence-Similarity
76151619bcdfd39054f8b6cbe1e26af99d0f6a37
dfacb34c325df771056f34f85c7927148d69691c
refs/heads/master
2022-04-11T00:15:07.415752
2020-01-28T13:06:42
2020-01-28T13:06:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,926
py
import os import pandas as pd import requests import tensorflow as tf def load_sts_dataset(filename): """ Loads a subset of the STS dataset into a DataFrame. In particular both sentences and their human rated similarity score. :param filename: :return: """ sent_pairs = [] with tf.gf...
[ "rhtdranasinghe@gmail.com" ]
rhtdranasinghe@gmail.com
cfe30dfb145e5c7610d9b424ad9cb71f37e95724
09e63e204cf3f70b0f878fe237f231af0786611e
/LifeQA/LSTM_QA.py
2e7249b817077a5418b4be8df812dcb9c1c1f866
[]
no_license
shubham14/Machine_learning_research
8f00788366abf2d330afe8914e48d4279fcd8aea
b134e4e6b1e6c110fad8cb38b033c92c34d3c8ce
refs/heads/master
2022-11-08T13:24:58.722027
2019-11-10T09:21:28
2019-11-10T09:21:28
132,386,307
3
2
null
2022-10-17T15:36:25
2018-05-07T00:16:38
Python
UTF-8
Python
false
false
3,186
py
# -*- coding: utf-8 -*- """ Created on Tue Oct 16 16:55:06 2018 @author: Shubham """ import numpy as np from keras import backend as K from keras.layers import Embedding from keras.layers import LSTM, Input, merge, Lambda from keras.layers.wrappers import Bidirectional from keras.layers.convolutional import Convoluti...
[ "shubham.ddash@gmail.com" ]
shubham.ddash@gmail.com
a5c8acc3f261fc484e471a9c6729ba0a2951f7ea
6cc37dfc44880f57823bb9523ea5f8206d5e3f22
/python_OOP/labs_and_homeworks/09_decorators_exercise/07_execution_time.py
672ebddef602603926ee47bec252adbc7b08d114
[]
no_license
dimitar-daskalov/SoftUni-Courses
70d265936fd86712a7bfe0586ec6ebd1c7384f77
2054bc58ffb5f41ed86f5d7c98729b101c3b1368
refs/heads/main
2023-05-31T06:44:35.498399
2021-07-11T10:16:08
2021-07-11T10:16:08
322,896,365
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
import time def exec_time(func): def wrapper(*args): start = time.time() func(*args) end = time.time() time_spend = end - start return time_spend return wrapper @exec_time def loop(start, end): total = 0 for x in range(start, end): total += x ret...
[ "dimitar.daskalov22@gmail.com" ]
dimitar.daskalov22@gmail.com
488718466f0f0e87ffa34be480e9e92c0c8df57a
9a701c23ef6e70dc3704f012ffbb1e2689f7a8cb
/Lib/zDogPy/box.py
5006b0c8963abce56336c69e361803f02212a395
[ "MIT" ]
permissive
gferreira/zdogpy
a832db713524d1343b85de1c8215511f438a2e41
41304e5db7cc2e145d43b6b2f7d77d25ec3c8b08
refs/heads/master
2020-05-30T07:50:24.621323
2019-09-11T09:30:59
2019-09-11T09:30:59
189,606,401
7
2
null
null
null
null
UTF-8
Python
false
false
3,196
py
'''Box composite shape''' from importlib import reload import zDogPy.anchor reload(zDogPy.anchor) import zDogPy.shape reload(zDogPy.shape) import zDogPy.rect reload(zDogPy.rect) from zDogPy.boilerplate import hexToRGB, TAU from zDogPy.anchor import Anchor from zDogPy.shape import Shape from zDogPy.rect import Rect #...
[ "gustavo@hipertipo.com" ]
gustavo@hipertipo.com
a4536f0fe2f8a612a01725277078ce3b79778683
5707a6e95d6388a320416d7c06c275daf61e3406
/Unidad2/ej1.py
54e6a486f22b1ad338b6cbaf6b579ebbc1bebc68
[]
no_license
hectorrdz98/lenguajes-y-automatas-1
ed3406e8a7b7eaad489c530146cddac5a972bc81
0004c4696a92cdd33a86a24f82d0f9b7e01e455c
refs/heads/master
2022-01-21T21:24:21.819330
2019-05-29T12:42:42
2019-05-29T12:42:42
167,203,004
0
0
null
null
null
null
UTF-8
Python
false
false
2,084
py
""" Autor: Hector Rodriguez """ """ Este codigo lee el archivo doc.txt (debe estar al mismo nivel de carpeta que este archivo) y muestra en consola para cada linea del documento que tipo de elemento o a que categoría pertenece. Estas son mis condiciones: 1.- Entero: Números de 0-9 2.- Flotante: Números de 0-9 segu...
[ "=" ]
=
33b9a0b28178626117cfa52bbee000bdf746fae2
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/QcswPnY2cAbrfwuWE_1.py
3dc657a83394c0074459ebb833c7727b69c41094
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
def filter_factorials(n): def is_fact(x): i=1 while(True): if x%i<1:x//=i else:break i+=1 return x==1 return[i for i in n if is_fact(i)]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
4f8410227745a3f05d1ded00c637145222b001f5
acf03baf55e36dc2a9a5ecd697ec5cb15446ae32
/vng_api_common/decorators.py
eeb5d658ccfe42cff1208a7c375b34363017ad85
[]
no_license
GemeenteUtrecht/vng-api-common
b6eb55121dc44c72179cbcd63896bbc020dc3975
97786cac041d867468007f9b9a9703d21644391a
refs/heads/master
2021-06-29T01:53:11.647065
2019-07-18T12:04:39
2019-07-18T12:05:27
198,412,309
0
0
null
2019-07-23T10:57:53
2019-07-23T10:57:52
null
UTF-8
Python
false
false
279
py
from typing import Any from django.db.models.base import ModelBase def field_default(field: str, default: Any): def decorator(cls: ModelBase): model_field = cls._meta.get_field(field) model_field.default = default return cls return decorator
[ "sergei@maykinmedia.nl" ]
sergei@maykinmedia.nl
cb9254defb1dc4344f4dc02075844f7a20a3bc07
69729ce2a0d2147b7b52e14008d8fc9960e3c099
/fast_rl/core/metrics.py
3233e2fc611672b7ffd218e9a04ec813f65eb1a7
[ "Apache-2.0" ]
permissive
swelchm/fast-reinforcement-learning
2f5d5aa51830f774ca0e6814833a736029e88f4d
9649b6d1bb931c4e4b7200a73b172325a1d8346f
refs/heads/master
2020-07-29T16:04:10.926035
2019-09-18T02:43:50
2019-09-18T02:43:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
937
py
import torch from fastai.basic_train import LearnerCallback from fastai.callback import Callback, is_listy, add_metrics class EpsilonMetric(LearnerCallback): _order = -20 # Needs to run before the recorder def __init__(self, learn): super().__init__(learn) self.epsilon = 0 if not has...
[ "jokellum@northstate.net" ]
jokellum@northstate.net
fb4eb2d3fc2b6b557ef5f486e64a77a51611a0bc
87a6d7e83a25cb3b1696fb6094fda88858754c19
/src/review/views.py
a2a5efdfd814e12518e46fac60f1fd21ab2a9492
[ "BSD-3-Clause" ]
permissive
tegarty/socialrating
20b45f8eb233fed0b69ae0fd8110cf8a73f1f782
b80888ee8e637bd0a5517614c78235d563fead2e
refs/heads/master
2020-04-20T08:42:52.231718
2018-12-06T17:57:43
2018-12-06T17:57:43
168,747,496
1
0
BSD-3-Clause
2019-02-01T19:11:19
2019-02-01T19:11:19
null
UTF-8
Python
false
false
4,163
py
from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django import forms from django.shortcuts import redirect, reverse from item.mixins import ItemViewMixin from rating.models import Vote from te...
[ "thomas@gibfest.dk" ]
thomas@gibfest.dk
1d01b17589e954f3dd2578ee3bc07e5bbed380dc
ff99c677aba11e27c252f773b52cd54f5de79279
/ctt-server/openapi_server/models/project.py
0220631032783c2d8b7da9e44e5e0a94cbfdbdab
[ "Apache-2.0" ]
permissive
radon-h2020/radon-ctt
b7eeb82f59e36e2a258d0a2ba9cd9483eb3dd247
97fcf5e800a0129d24e119b430d94f07ca248ba9
refs/heads/master
2023-01-04T23:44:49.611599
2021-09-15T15:34:41
2021-09-15T15:34:41
235,379,642
0
7
Apache-2.0
2022-12-27T15:56:38
2020-01-21T15:48:45
Python
UTF-8
Python
false
false
2,758
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server import util class Project(Model): """NOTE: This class is auto generated by OpenAPI Generat...
[ "duellmann@iste.uni-stuttgart.de" ]
duellmann@iste.uni-stuttgart.de
5dc3e5eb54602009e6f8a02450af13bf34566f0c
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_workers.py
925498db6457cf5ab2857092165fbc8709111a52
[ "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
238
py
from xai.brain.wordbase.nouns._worker import _WORKER #calss header class _WORKERS(_WORKER, ): def __init__(self,): _WORKER.__init__(self) self.name = "WORKERS" self.specie = 'nouns' self.basic = "worker" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
ebf9b4a30f7ce8099e5020d7dc4df985c9055dc2
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2138/60585/257214.py
6a0f930bf2e12114cdb52468e38c6cf2a97dc12e
[]
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
278
py
arr=list(map(int,input().strip().split(','))) k=eval(input()) n=len(arr) isM=False for i in range(0,n-1): j=i+1 temp=arr[i] while j<n: temp+=arr[j] j+=1 if temp%k==0: isM=True break if isM: break print(isM)
[ "1069583789@qq.com" ]
1069583789@qq.com
f5a0e695f1a50cbc20de0463e14d5f362bb054ee
6499d0b71b19fd4416bfd74fa9fd88e3d0b0618a
/king_phisher/client/dialogs/exception.py
70b21f7817f9aa453b632b5a60c493afdd5eccd9
[ "BSD-3-Clause" ]
permissive
Meatballs1/king-phisher
dfb0a539a2d0455113b40698f7151521774addb1
a16b1de055260f6f33d8c1fd0765bd06ffb733c2
refs/heads/master
2020-05-20T17:55:30.441239
2015-10-15T19:21:22
2015-10-15T19:21:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,018
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/client/dialogs/exception.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # ...
[ "zeroSteiner@gmail.com" ]
zeroSteiner@gmail.com
7d4ad877ef0674f0248f5b402f5ca2ec0fbca0b5
83932f1d956a6b7818c6e58a31205e6e26f2fb5c
/0x11-python-network_1/2-post_email.py
ae506265afc23c32cdffd2a0428200f828ddb688
[]
no_license
Nzparra/holbertonschool-higher_level_programming
a17834b8239e477a7284119acac69da0e7d7261e
6cf7a44a10db7a10be3c3c02cbacfea9a7b897f2
refs/heads/master
2020-09-29T02:45:04.458850
2020-05-14T21:12:45
2020-05-14T21:12:45
226,930,910
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
#!/usr/bin/python3 """ sends a POST request to the passed URL with the email as a parameter """ from urllib import request, parse import sys if __name__ == "__main__": req = parse.urlencode({'email': sys.argv[2]}) req = req.encode('ascii') reqst = request.Request(sys.argv[1], req) with request.urlopen...
[ "nzparra@gmail.com" ]
nzparra@gmail.com
99b9f127259fa1b88da83c73c1b13ae51336a33c
20a3cc1106fa86fc2d45cd1728cc87d5db97e1f7
/old/s3c/explosion.py
d214948ae8a509ca9fcf7d2f5cbf3d133373c71a
[]
no_license
sarahboufelja54/galatea
f5664f0b3117629b2c5bbe078a1bd52bb5e359e6
002a9f2905868be25b71770190fb2d5eda11c861
refs/heads/master
2020-12-04T13:45:07.697189
2018-12-12T16:27:09
2018-12-12T16:27:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
790
py
#attempting to create an excitation-based explosion (I don't think it's possible) hat_h = [1., 1.] alpha = [.01 , .01] W = [ -1., 1. ] beta = 1 w = [ beta * (weight ** 2) for weight in W ] init_hat_s = [ 1., 1.5 ] hat_s = [ val for val in init_hat_s ] #like mu in our current model, except that it isn't gated by...
[ "goodfellow.ian@gmail.com" ]
goodfellow.ian@gmail.com
42de88eb553c0e4e996822b8763fa6c13507faa7
e5eeb6d9e7c2d7a53f864f8b9df7ca0cb79932ef
/sa/profiles/Alstec/MSPU/__init__.py
b7d0c1ced7d78897c77243798ea9274c7900e37e
[ "BSD-3-Clause" ]
permissive
0pt1on/noc
aa583a6684f8299467c665e303f7ffa47ad6b88a
4eb26dd44002a0a4a562973815567237d979cab5
refs/heads/master
2020-06-20T08:51:11.653330
2019-07-12T07:13:45
2019-07-12T07:13:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
599
py
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Vendor: Alstec # OS: MSPU # --------------------------------------------------------------------- # Copyright (C) 2007-2017 The NOC Project # See LICENSE for details # --------------------------------------------------...
[ "dmitryluhtionov@gmail.com" ]
dmitryluhtionov@gmail.com
5360f0f0d9b911bb3033292064920cc4edcb718e
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Flask/Book_evaluator/venv/Lib/site-packages/urllib3/util/__init__.py
130a48f4f4e13e706d68fa3f49aa7081eb6997c7
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:e916a7e28015232e340aefe810f5a7355f5bc05e6b5f1e86d43519ee87a18cf6 size 1044
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
a8fa9c19001403543360c111212013e80ce6d390
45799ccc3a16c785ab3c65f3296d66f8463590dc
/docs/_downloads/7dfb273e58ce9eea02e428696e9a9672/q108.py
de3417bd434085db9999cb7596c5a4dfcfe82b2f
[ "MIT" ]
permissive
odys-z/hello
9d29b7af68ea8c490b43994cf16d75c0e8ace08e
fedd0aec7273f3170aa77316d0d5f317cc18a979
refs/heads/master
2023-08-19T03:25:58.684050
2023-08-18T08:07:27
2023-08-18T08:07:27
154,006,292
0
0
MIT
2023-04-18T22:50:56
2018-10-21T12:34:12
C++
UTF-8
Python
false
false
1,496
py
''' 108. Convert Sorted Array to Binary Search Tree https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/ Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced binary search tree. A height-balanced binary tree is a binary tree in which the de...
[ "odysseusj@163.com" ]
odysseusj@163.com
72228121b096510616532a4edb9408df229e04ab
5b9485c4ad9db15ff3e535085092fb45057f7364
/src/nuxeo/javascript/cpsskins/tests/functional/treeview/browser.py
6162bef9cd7e0d77dbb40da6b1080e30ac097356
[ "ZPL-2.1" ]
permissive
nuxeo-cps/zope3--nuxeo.javascript
06109541949c1e612b232efeddec3aa04ecb7d84
3ac03c8c46daf75ae7b3ff2fba308cba8caff245
refs/heads/main
2023-01-24T06:54:13.659442
2009-12-22T09:24:26
2009-12-22T09:24:26
317,995,433
0
0
null
null
null
null
UTF-8
Python
false
false
1,947
py
from urllib import unquote from zope.app.publisher.browser import BrowserView from cpsskins import minjson as json tree_data = { 'items': [ {'id': '1', 'title': 'item 1', 'depth': 1, 'type': 'inner'}, {'id': '2', 'title': 'item 2', 'depth': 2, 'type': 'inner', 'empty': True}, {'...
[ "devnull@localhost" ]
devnull@localhost
9b80d82c0f685c41a834444780cd8207ebb71348
9f9b19a26ed931207878364d395e47a3d986751b
/dmam/migrations/0006_auto_20181022_2230.py
6b6b882350caefc90a3b9690311255482d54076e
[]
no_license
lishulincug/waterwork
6697f5264dc880a92d9b91e91b703eda3818d7a3
690fb344e7f271a3ded66f0cdf4c9161811ed1f4
refs/heads/master
2020-09-09T13:19:21.301200
2019-07-25T09:37:04
2019-07-25T09:37:04
221,456,996
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
# Generated by Django 2.0 on 2018-10-22 22:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dmam', '0005_auto_20181022_1555'), ] operations = [ migrations.AlterField( model_name='station', name='dmaid', ...
[ "apengok@163.com" ]
apengok@163.com
a9dbd0cdcd940053789e278ea1754c00d7bcc81d
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/app/plugin/core/diff/DiffProgramManager.pyi
a0a10fe1025a5187fd858ff298fe56649ee228e8
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
3,233
pyi
from typing import List import ghidra.app.services import ghidra.framework.model import ghidra.program.model.address import ghidra.program.model.listing import java.awt import java.lang import java.net class DiffProgramManager(object, ghidra.app.services.ProgramManager): OPEN_CURRENT: int = 1 OPEN_HIDDEN: int...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
d5fc867cf915437ad5f65f07e94dd1e3c0cf089d
101ffbee515a5b8f23d77361558dea1e42794dbd
/pip_save/toml/tests/test_writer/test_statement_nodes.py
87c6eb7bd5d88df7645289d2751f38fa6795af0e
[]
no_license
mkurnikov/pip-save
0a841710c28983c1c769d87e18f2e584a554e1a1
e1e2fb9b0404a25790edcb5fd134267b92675470
refs/heads/master
2021-01-12T16:49:50.163661
2016-10-21T11:13:37
2016-10-21T11:13:37
71,442,341
0
0
null
null
null
null
UTF-8
Python
false
false
1,008
py
from collections import OrderedDict from unittest import TestCase from pip_save.toml.model import TomlStatementNodes, Table class TestStatementNodes(TestCase): def test_append(self): toml_nodes = TomlStatementNodes() toml_nodes[('keyword',)] = '1' self.assertEqual(len(toml_nodes), 1) ...
[ "maxim.kurnikov@gmail.com" ]
maxim.kurnikov@gmail.com
8ce29595818ea2d4b7f8186cbb954cbdb7739d39
a3ff13ecac60f891a3ebdcb4c72bf6a4b581a2d8
/YCD/10.16公开课红心代码heart_3d.py
307b46ff179ed773578ac66438fc7032e575e55a
[]
no_license
kekirk/pycode
75533afc3018cba30d0abd3c29ab1c945b85504b
06dab1a61d7b445cc19b41e4d281f62251e2583b
refs/heads/master
2020-04-01T17:13:53.828118
2019-01-04T09:02:00
2019-01-04T09:02:00
153,419,332
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
#!/usr/bin/env python # coding: utf-8 # In[3]: from pyecharts import Scatter3D import numpy as np # # 心形解析式 # # (x^2+9/4*y^2+z^2-1)^3-x^2*z^3-9/80*y^2*z^3=0 # In[5]: scatter3D = Scatter3D("I Love You", width=1700, height=1000) data = list() x = list(np.linspace(-1.5, 1.5,150)) y = list(np.linspace(-1,1,100)) z...
[ "kekirk@163.com" ]
kekirk@163.com
63d35cddd89c965242e94321cf091a8e71be87ec
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_swivels.py
ee26ae2f31371bd1bbcf01ad3ec765b20b2961cb
[ "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
238
py
from xai.brain.wordbase.verbs._swivel import _SWIVEL #calss header class _SWIVELS(_SWIVEL, ): def __init__(self,): _SWIVEL.__init__(self) self.name = "SWIVELS" self.specie = 'verbs' self.basic = "swivel" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
917caa8803de6237510c15044bfbe71ebee37d83
4564fd0cfb9009f0b85d15c3b9164b865c4c86e7
/tests/test_model.py
6640508bf3a1581cded6a9fe52d2d2d572937326
[ "Apache-2.0" ]
permissive
rajaramcomputers/client
0188a1cf8e989dcd180c280a4db4d00c44bac390
65badf61fb9a5430596d6d2c0b9b7833cf30ec06
refs/heads/master
2021-01-16T21:59:35.657394
2016-02-01T22:08:18
2016-02-01T22:08:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
""" run with nosetests -v --nocapture tests/test_model.py or nosetests -v tests/test_model.py """ from __future__ import print_function from pprint import pprint from cloudmesh_base.util import HEADING import cloudmesh_client.db import cloudmesh_client.db.model class Test_model: def setup(self): pa...
[ "laszewski@gmail.com" ]
laszewski@gmail.com
b113b1db3bfe5f8e92de554cc4f803a2b126bac7
902e8b6f2c39c0a7baa8abd9637aa43f4be27e27
/Code/Chapter 1/src/blueblog/urls.py
9e80e946967b3d343885c7d48be82d6ec68c8c7b
[]
no_license
PacktPublishing/Django-Projects-Blueprints
8151e611ae5cf95dc985ac7d08ce503bd41e0c4a
7d2409ea1b43b057d1e4c337e348cb6e102f75d6
refs/heads/master
2023-02-08T13:34:22.658965
2023-01-30T10:17:40
2023-01-30T10:17:40
59,006,898
32
30
null
null
null
null
UTF-8
Python
false
false
1,744
py
from django.conf.urls import include from django.conf.urls import url from django.contrib import admin from django.contrib.auth.views import login from django.contrib.auth.views import logout from accounts.views import UserRegistrationView from blog.views import NewBlogView from blog.views import HomeView from blog.vie...
[ "packt.danishs@gmail.com" ]
packt.danishs@gmail.com
a9e2cbb4176684f4ffa52c1888fae3102c5fa7b6
9b59f76f3b312951519a15651290476c34a54174
/QUANTAXIS_Test/QABacktest_Test/QABacktestSimple_Test.py
37e9feda4909d833898186c4d41be55ad36d35fd
[ "MIT" ]
permissive
sjtututu/QUANTAXIS
b8d9ba35d20159680f25cd3e583ebcfc7ff34c75
e9e20cdeda8b8d132433037b639a7e60f286a190
refs/heads/master
2020-08-16T11:19:19.689925
2020-02-22T01:21:57
2020-02-22T01:21:57
215,495,655
1
0
MIT
2019-12-28T08:13:57
2019-10-16T08:22:54
Python
UTF-8
Python
false
false
4,471
py
import unittest import numpy as np import pandas as pd import QUANTAXIS as QA class QABacktestSimple_Test(unittest.TestCase): # define the MACD strategy def MACD_JCSC(self, dataframe, SHORT=12, LONG=26, M=9): """ 1.DIF向上突破DEA,买入信号参考。 2.DIF向下跌破DEA,卖出信号参考。 """ ...
[ "415496929@qq.com" ]
415496929@qq.com
922632bd7fd107d2f4b5713afca0a914316f2f55
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/195/48791/submittedfiles/testes.py
697187f7d52f0e988ed1e5a2cdacc5e64b225503
[]
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
423
py
# -*- coding: utf-8 -*- a=int(input('digite a:')) b=int(input('digite b:')) c=int(input('digite c:')) d=int(input('digite d:')) if a>b and a>c and a>d: print(a) if b>a and b>c and b>d: print(b) if c>a and c>b and c>d: print(c) if d>a and d>b and d>c: print(d) if a<b and a<c and a<d: print(a) if b<a ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
d80dd720858dc042a2f195293139c38d8a080e38
50de54517ef5e157b43598e412c477fd66890a3e
/Assignment 05/Problem 04.py
b0883029d93e9bfb1ca023132749cea0e5ea3943
[]
no_license
Shihabsarker93/BRACU-CSE111
f530be247bebaaee9cc5e85948dc070adae0c6ae
17c95c76f84abffe9d9bdcb5861fbacbc510b5a6
refs/heads/main
2023-08-13T15:33:57.331850
2021-10-07T10:56:09
2021-10-07T10:56:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
class Color: def __init__(self, color): self.clr = color def __add__(self, other): self.clr = self.clr + other.clr if self.clr == "redyellow" or self.clr == "yellowred": self.clr = "Orange" elif self.clr == "redblue" or self.clr == "bluered": self.clr = ...
[ "mirzamahrabhossain@gmail.com" ]
mirzamahrabhossain@gmail.com
51856a03ef40020ac8c9e0586c08bcf06f66111d
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part003471.py
2cabb575ba5e4c06ee0f115ab7c8fc7bab070e46
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
2,927
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
c3e9e1cc8cff9dfb3fae569dd6c04fa4f03eb0c9
b1fbe7460427dbb891d4b1951e43e551e86b1e3b
/arcnlp/torch/nn/encoders/rnn_encoder.py
650f222a3a14fcc7307c3081e46773c751216295
[]
no_license
linhx13/arc-nlp
88a45601e09deb7883ddf4583f6f2f4607fb85d0
760cca0d44958fb4011eaa039263575388a858ae
refs/heads/master
2023-05-04T12:59:21.232168
2021-05-18T17:38:28
2021-05-18T17:38:28
230,442,944
1
0
null
2021-04-17T03:41:42
2019-12-27T12:48:02
Python
UTF-8
Python
false
false
3,606
py
import torch import torch.nn as nn from ...nn.utils import get_sequence_lengths __all__ = ["RNNEncoder", "LSTMEncoder", "GRUEncoder"] class _RNNBaseEncoder(nn.Module): def __init__(self, module, return_sequences): super(_RNNBaseEncoder, self).__init__() self.module = module self.return_...
[ "mylhx288@gmail.com" ]
mylhx288@gmail.com
c5b7c0831380a9b4fd9effc5cea7908430770144
92f6ffb240a1fbaa52ae23f614663b2b915e4187
/backend/home/migrations/0002_load_initial_data.py
79e2423fce37abb55ff579976a85fe906d1c2f41
[]
no_license
crowdbotics-apps/msgs-sghsg56-dev-12782
3b196351f5ff932916802912c7740c7455a78459
10f95c9e897dcad50e21950879adc97b9fe689f4
refs/heads/master
2022-12-24T00:35:35.056481
2020-10-06T09:11:48
2020-10-06T09:11:48
301,672,120
0
0
null
null
null
null
UTF-8
Python
false
false
1,306
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "MSGS-sghsg56" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
47c023614d7d2ba1c4b4f921d42350aec154cb40
ace30d0a4b1452171123c46eb0f917e106a70225
/filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py
3e1a50e3e6423cbe6c7010004e2266d04e7627b8
[ "Python-2.0" ]
permissive
juancarlosdiaztorres/Ansible-OpenStack
e98aa8c1c59b0c0040c05df292964520dd796f71
c01951b33e278de9e769c2d0609c0be61d2cb26b
refs/heads/master
2022-11-21T18:08:21.948330
2018-10-15T11:39:20
2018-10-15T11:39:20
152,568,204
0
3
null
2022-11-19T17:38:49
2018-10-11T09:45:48
Python
UTF-8
Python
false
false
5,435
py
# Copyright 2012-2013 OpenStack Foundation # # 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 la...
[ "jcdiaztorres96@gmail.com" ]
jcdiaztorres96@gmail.com
24a54a7565b8d38155fddd08742ae1389e50ac05
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5695413893988352_0/Python/algomaus/b.py
2d3892eda43ade0e73e3d0638dc64a9dc402c531
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
3,205
py
#! /usr/bin/env python def parse(lines): n = int(lines[0]) words = [] for i in range(n): words.append(lines[i+1]) return words def asInt(string, lastPosition): if lastPosition == -1: return 0 #if lastPosition == 0 and string[0] == '?': #return 0 lis = [] for i in range(lastPosition+1...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
1ebf50f2fe945bd4d55d54c13e76a24165a05cf2
a0f0efaaaf69d6ccdc2a91596db29f04025f122c
/build/botcmd_msgs/devel/lib/python2.7/dist-packages/botcmd_msgs/srv/_bot_getenabledi_cmd.py
56881c75882d7bfcd72f305eeff5b2ca7dffd6bc
[]
no_license
chiuhandsome/ros_ws_test-git
75da2723154c0dadbcec8d7b3b1f3f8b49aa5cd6
619909130c23927ccc902faa3ff6d04ae0f0fba9
refs/heads/master
2022-12-24T05:45:43.845717
2020-09-22T10:12:54
2020-09-22T10:12:54
297,582,735
0
0
null
null
null
null
UTF-8
Python
false
false
7,723
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from botcmd_msgs/bot_getenabledi_cmdRequest.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class bot_getenabledi_cmdRequest(genpy.Message): _md5sum = "481ac5a494c3140a...
[ "chiuhandsome1966@gmail.com" ]
chiuhandsome1966@gmail.com
4570702ee558fd5356cbb6e61347d548044dc91f
98efe1aee73bd9fbec640132e6fb2e54ff444904
/loldib/getratings/models/NA/na_velkoz/na_velkoz_jng.py
03ed1057207505472af839e30740f1e89491e018
[ "Apache-2.0" ]
permissive
koliupy/loldib
be4a1702c26546d6ae1b4a14943a416f73171718
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
refs/heads/master
2021-07-04T03:34:43.615423
2017-09-21T15:44:10
2017-09-21T15:44:10
104,359,388
0
0
null
null
null
null
UTF-8
Python
false
false
6,545
py
from getratings.models.ratings import Ratings class NA_Velkoz_Jng_Aatrox(Ratings): pass class NA_Velkoz_Jng_Ahri(Ratings): pass class NA_Velkoz_Jng_Akali(Ratings): pass class NA_Velkoz_Jng_Alistar(Ratings): pass class NA_Velkoz_Jng_Amumu(Ratings): pass class NA_Velkoz_Jng_Anivia(Ratings): ...
[ "noreply@github.com" ]
koliupy.noreply@github.com
e878483efb96ff6a75498766da8723c34864fa39
694d3929b23a8434cab14ddab623030a0fe4ac38
/apps/reports/views.py
f3a408b99c91eae03444b5863ff332d455c98ab2
[]
no_license
gehongming/django_api
03fec87a25c2ad3cb603aad2f1b5d9b680debf12
fb8e0623e9171deb8706ed258cc5d5bd0d9fe6aa
refs/heads/main
2023-09-01T06:57:22.677374
2021-10-12T05:39:07
2021-10-12T05:39:07
415,173,097
0
1
null
null
null
null
UTF-8
Python
false
false
3,648
py
import json import re import os from datetime import datetime from django.http import StreamingHttpResponse from django.utils.encoding import escape_uri_path from rest_framework.response import Response from rest_framework.viewsets import ModelViewSet from rest_framework import permissions, status from rest_framework....
[ "1010562639@qq.com" ]
1010562639@qq.com
397da806a95f70217bf79901c8e1ad9ffe4fcefe
e0ed932fc2e4edb953cc4e423362dabc19083008
/python/002_note/learn_with/002_有异常的例子.py
8704a23fa87700b015cb24d95bd2053e1d7f4bde
[]
no_license
glfAdd/note
90baee45003ac3998d898dcfbc618caa28f33b74
19a9aff61450be25904bff0fe672f660d49d90ff
refs/heads/main
2023-05-27T13:28:36.092352
2023-05-24T03:35:58
2023-05-24T03:35:58
240,066,208
1
0
null
null
null
null
UTF-8
Python
false
false
816
py
class Test: def __enter__(self): print('__enter__() is call!') return self @staticmethod def start(): print('------------------------------ test') return 1 / 0 def __exit__(self, exc_type, exc_value, traceback): """ @param exc_type: @param exc_v...
[ "2239660080@qq.com" ]
2239660080@qq.com
2e56820469786281eea6a55179cfaa0fae7337b3
5635a3b02f7695a50471c8c08970520858d2277c
/venv/bin/pyrsa-sign
12ff831eef1cc1f5b697b68f04379992425ffe5c
[]
no_license
BethMwangi/Flask-social
358325ea09b143c2aaa059594607d0a872fcabd1
4d0d902ee959054a95f0d7ab0dbfee3692521f91
refs/heads/master
2020-04-02T06:13:40.307975
2016-06-13T17:16:11
2016-06-13T17:16:11
60,806,302
0
0
null
null
null
null
UTF-8
Python
false
false
249
#!/home/beth/Documents/Github/Flask-social/venv/bin/python # -*- coding: utf-8 -*- import re import sys from rsa.cli import sign if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(sign())
[ "wanjikumwangib@gmail.com" ]
wanjikumwangib@gmail.com
e299c60be9d53012b8b77da119af0d359f1e54d0
c4ffab6cc6b5470a212d1b6a0d241de9427266ee
/test/functional/rpc_bind.py
ee454df4bb87a910eb3f5749321d750a3a4c467f
[ "MIT" ]
permissive
Upsidedoge/upsidedoge
1b8d49787eedb84cb7c5aff77549d7d1239ab807
32dd022d43b8b90ae1aa1ad7d81c0dfeb89611a2
refs/heads/main
2023-04-26T16:56:17.024158
2021-05-21T21:12:57
2021-05-21T21:12:57
369,643,234
0
0
null
null
null
null
UTF-8
Python
false
false
6,428
py
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test running upsidedoged with the -rpcbind and -rpcallowip options.""" import sys from test_framework...
[ "36169687+blockinator@users.noreply.github.com" ]
36169687+blockinator@users.noreply.github.com
e496f6a4b65e3fb3ed5cffda376a44cc1e6829cb
7357d367b0af4650ccc5b783b7a59090fdde47bb
/py-appscript/tags/py-appscript-0.18.0/Lib/aem/types/objectspecifiers/testclause.py
cd023de05f848f30e64af15fc725899e0d6eb54c
[ "MIT" ]
permissive
BarracudaPff/code-golf-data-python
fb0cfc74d1777c4246d56a5db8525432bf37ab1a
42e8858c2ebc6a061012bcadb167d29cebb85c5e
refs/heads/main
2023-05-29T05:52:22.856551
2020-05-23T22:12:48
2020-05-23T22:12:48
378,832,634
0
0
null
null
null
null
UTF-8
Python
false
false
3,297
py
"""testclause -- Used to construct test expressions for use in by-filter references. (C) 2005 HAS """ from CarbonX import kAE import base class Test(base.BASE): """Base class for all comparison and logic test classes (Equals, NotEquals, AND, OR, etc.).""" def AND(self, operand2, *operands): """AND(test,...) --> log...
[ "sokolov.yas@gmail.com" ]
sokolov.yas@gmail.com
e60acfc6dfaaa850aa14c36de95d0f2dd9dbd345
baefee5fbbc015cdc0b71ffc8956fad2d7d93683
/openstack_dashboard/dashboards/admin/routers/ports/forms.py
6010f5c792917a435eb64386f99e60d176fda8e1
[ "Apache-2.0" ]
permissive
dsullivanwr/stx-horizon
8312fa01bf28a6bfad175e66f4172add6cabf60c
ee6c9b17e34d1dc310790b9d5e0252361c86b8fb
refs/heads/master
2020-03-29T06:51:49.902050
2018-10-11T19:37:40
2018-10-11T19:37:40
149,643,878
0
0
Apache-2.0
2018-10-10T16:02:36
2018-09-20T17:11:28
Python
UTF-8
Python
false
false
2,970
py
# Copyright 2012, Nachi Ueno, NTT MCL, 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 applic...
[ "dtroyer@gmail.com" ]
dtroyer@gmail.com
cbb5b5e0a29153cfef89be24a515e1b90dbd5ce0
2a1e2c298773148983805f1e0fba62bc2bf79267
/lib/network/vgg_base.py
7057d7ce930283300e3f9abeacd0c7ce46869275
[]
no_license
copperdong/CTPN
42fde81010ba5c0bff193b4132d4c397c251dedd
3d559406c7ad2a02ac54b07ff1cc3603b3c5b6c9
refs/heads/master
2020-11-25T10:51:23.753733
2019-07-22T12:29:15
2019-07-22T12:29:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,410
py
import tensorflow.contrib.slim as slim from lib.utils.config import cfg def vgg_base(inputs, scope=None): featuremap_scale = 1 net = slim.conv2d(inputs, 64, [3, 3], scope='conv1_1') net = slim.conv2d(net, 64, [3, 3], scope='conv1_2') net = slim.max_pool2d(net, [2, 2], stride=2, padding='VALID', scope=...
[ "chizhanyuefeng@gmail.com" ]
chizhanyuefeng@gmail.com
39f9f6cb12e59735ebe32a3c579294e54cc3f58e
9039f309649d0b7c6dd974706fc507938ed0e47a
/03. Logistics.py
51054e067ae37313a5cfc1e9833e3de6735c07c5
[]
no_license
antondelchev/For-Loop---More-Exercises
2b5dadb31c273611c15e6523b536f994a0353a52
891266ff8b931e19d179b22dd33647887814555e
refs/heads/main
2023-03-03T11:59:16.990004
2021-02-16T15:01:02
2021-02-16T15:01:02
335,062,985
0
0
null
null
null
null
UTF-8
Python
false
false
1,040
py
number_of_loads = int(input()) tonnes_total = 0 bus_tonnes_total = 0 truck_tonnes_total = 0 train_tonnes_total = 0 bus_price_total = 0 truck_price_total = 0 train_price_total = 0 for i in range(1, number_of_loads + 1): tonnes = int(input()) tonnes_total += tonnes if tonnes <= 3: ...
[ "noreply@github.com" ]
antondelchev.noreply@github.com
964b812d02375eb43441088299f997192ca9d36b
894b290b4f4f47b5eb523c23efd7bd6110d91b2f
/116_fang_shop/fang_shop/fang_shop/spiders/fang_shop_spider.py
c3f9547cad1f9b1ec5db7c8618dd0e8ddbf53a24
[]
no_license
wliustc/SpiderS
6650c00616d11239de8c045828bafdc5a299b1ce
441f309c50d28c1a3917bed19321cd5cbe7c2861
refs/heads/master
2020-03-27T06:15:39.495785
2018-06-14T07:55:44
2018-06-14T07:55:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,684
py
# -*- coding: utf-8 -*- import scrapy import re from fang_shop.items import FangShopItem import web import urlparse import hashlib import json import sys reload(sys) sys.setdefaultencoding("utf-8") headers = { 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) ' ...
[ "luoshao23@gmail.com" ]
luoshao23@gmail.com
0a61d3455c62c56d19a40625fbc67c86684cf673
de64b143a346585f51590bd674e8d13bbc672386
/algorithm/Intermediate_Class/뉴스 클러스터링/Wooseong.py
a3809d890839206d63713c42df2c288ccf43d48e
[]
no_license
ai-kmu/etc
304ec20f59e4026025abdcbcae21863c80630dcb
9c29941e19b7dd2a2037b110dd6e16690e9a0cc2
refs/heads/master
2023-08-21T16:30:31.149956
2023-08-21T16:26:19
2023-08-21T16:26:19
199,843,899
3
24
null
2023-05-31T09:56:59
2019-07-31T11:36:16
Jupyter Notebook
UTF-8
Python
false
false
1,976
py
import copy def solution(str1, str2): # 대소문자 무시 - 모두 소문자로 str1 = str1.lower() str2 = str2.lower() # 각 str을 다중 집합으로 만들기 - 알파벳쌍만 가능 # -> .isalpha()는 str가 모두 알파벳일 때만 True set1 = [] for i in range(len(str1) - 1): temp = str1[i:i+2] if temp.isalpha(): set1.append...
[ "noreply@github.com" ]
ai-kmu.noreply@github.com
77ea35da65f61abce7c44b9a46ee137770cc95ec
fc5becca3e2e48a444b512e059df1cd21601829b
/Aulas/Aula23A.py
3baac0f53fa2d741ffa7e4838bd99fbeb5af6205
[ "MIT" ]
permissive
Felix-xilef/Curso-de-Python
c44bf8c22b393aefaed3a2bb3127ef7999e27fb8
cdff7c7f3850e6326e274c8c1987b9e1a18ce910
refs/heads/master
2021-05-19T11:09:22.644638
2020-04-01T22:09:02
2020-04-01T22:09:02
251,665,966
0
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
try: a = int(input('\n\tNumerador: ')) b = int(input('\tDenominador: ')) r = a / b # except: - apenas redireciona caso dê erro (GENÉRICO) # print('\n\tProblema encontrao') # erro - mostra erro | erro.__class__ - mostra classe do erro except (ValueError, TypeError): # except classe: - apenas redirecion...
[ "felixpb@yahoo.com.br" ]
felixpb@yahoo.com.br
37f9ffe43f45931ee39051d3b509924093639327
33af6185b48bd76f97f0a74390a3a812ee216c78
/angr/angr/procedures/libc/fseek.py
12804e949829a38007056038d366ae0bb5839ae7
[ "BSD-2-Clause" ]
permissive
Ruide/angr-dev
dab0cabd907fce47ac698f890c3f3a8b80ab7e2a
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
refs/heads/master
2022-11-10T11:27:13.355024
2017-10-07T14:29:09
2017-10-07T14:29:09
104,417,044
0
1
BSD-2-Clause
2022-10-16T04:48:10
2017-09-22T01:35:12
C
UTF-8
Python
false
false
1,201
py
import angr from . import io_file_data_for_arch ###################################### # fseek ###################################### class fseek(angr.SimProcedure): #pylint:disable=arguments-differ def run(self, file_ptr, offset, whence): # TODO: Support symbolic file_ptr, offset, and whence ...
[ "rd.cheung.bupt.sms@gmail.com" ]
rd.cheung.bupt.sms@gmail.com
fc1594f425c1a54f1e64a6aef2c262b5c450c273
736730d72c24470a0c9ba58309ee3a95fe09d5e4
/projeto/feriados/feriados/urls.py
d23c9df344b2022619b6e27648331c943d93a479
[]
no_license
orlandosaraivajr/FATEC_2021_1SEM_Topicos3
3f9c6b983c8b012330527848862f9f22649f0f5a
83610f798510e1bad69eedaed6b3b4ed08e2014e
refs/heads/master
2023-05-02T10:24:05.865947
2021-05-19T00:20:38
2021-05-19T00:20:38
339,551,303
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path('', include('feriado.urls')), ]
[ "orlandosaraivajr@gmail.com" ]
orlandosaraivajr@gmail.com
6e4abc00113d6b561e5acc7b39de395f44ae02c3
388ff52dec8f4780a2d1cfd3f07f9228373a6b03
/0x0A-python-inheritance/6-base_geometry.py
1f8561cd5c07e6e9c0738b8ac8295dfb5d3a7038
[]
no_license
dairof7/holbertonschool-higher_level_programming
6bbbb0eb2f2c13553e63056e0cee0ade7e028afe
6de0ea30c02a69f9721b4304eb0d48fca626e2df
refs/heads/master
2023-01-14T09:58:13.327692
2020-11-10T16:51:50
2020-11-10T16:51:50
259,339,091
0
1
null
null
null
null
UTF-8
Python
false
false
260
py
#!/usr/bin/python3 """ this module createa class BaseGeometry""" class BaseGeometry(): """empty BaseGeometry class""" pass def area(self): """method area return a Exception""" raise Exception("area() is not implemented")
[ "dairof7@gmail.com" ]
dairof7@gmail.com
a46a09b36dea4eddb1483fcdee6e292962b2ab51
f47d17b53977cf745d453b654529e8cd6be7890f
/3level_N20_ainbin1.py
120aacee0e37205a96e1666348518b2b537c19d0
[]
no_license
rareearthquantum/model_upconversion_peter
b4cce7556a167ba0e9813625dc924d3542d33cd1
dcf08000ec21770659318409a686bb2b88a7a1be
refs/heads/master
2020-04-28T19:54:34.795590
2019-06-14T09:43:28
2019-06-14T09:43:28
175,526,148
0
0
null
null
null
null
UTF-8
Python
false
false
2,357
py
from Frequency_response_3level import * p = {} p['deltamu'] = 0. p['deltao'] = 0. p['d13'] = 2e-32*math.sqrt(1/3) p['d23'] = 2e-32*math.sqrt(2/3) p['gamma13'] = p['d13']**2/(p['d13']**2+p['d23']**2)*1/11e-3 p['gamma23'] = p['d23']**2/(p['d13']**2+p['d23']**2)*1/11e-3 p['gamma2d'] = 1e6 p['gamma3d'] = 1e6 p['nbath']...
[ "peterbarnettnz@gmail.com" ]
peterbarnettnz@gmail.com
6e94b8ef6dd9af3e5218e7cac10b5f3da2521727
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_270/ch54_2020_03_27_00_44_11_634478.py
4a4969942833af9e67d2166564562fd7a64f393d
[]
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
def calcula_fibonnacci(n): k = 0 lista = [] soma = 1 while k < n: lista.append(soma) soma += soma k += 1 return lista
[ "you@example.com" ]
you@example.com
0e6b139dec6db4c8aa222b7937adfc0f12e6045a
d41d18d3ea6edd2ec478b500386375a8693f1392
/plotly/validators/heatmap/_y0.py
8bae24f08506a20ba2d7ca6fb4ba46ef4651f570
[ "MIT" ]
permissive
miladrux/plotly.py
38921dd6618650d03be9891d6078e771ffccc99a
dbb79e43e2cc6c5762251537d24bad1dab930fff
refs/heads/master
2020-03-27T01:46:57.497871
2018-08-20T22:37:38
2018-08-20T22:37:38
145,742,203
1
0
MIT
2018-08-22T17:37:07
2018-08-22T17:37:07
null
UTF-8
Python
false
false
441
py
import _plotly_utils.basevalidators class Y0Validator(_plotly_utils.basevalidators.AnyValidator): def __init__(self, plotly_name='y0', parent_name='heatmap', **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type='calc...
[ "adam.kulidjian@gmail.com" ]
adam.kulidjian@gmail.com
44c1925930e893f90665e267105f0de38e06806c
885a722e3e5814ae4942ac5e8cf8d0091e734b4c
/게임 개발_Python/CodingTest.py
44a46c74629a33f66008719905f685de00396184
[]
no_license
ledpear/algorithm
52f3ea25842eee20b3bbd48e51825b9df4942e03
4922c6fe5ca0b98a90dee218b756006e7ba05d82
refs/heads/master
2023-06-09T17:47:45.674244
2023-06-03T13:47:11
2023-06-03T13:47:11
133,370,193
0
0
null
null
null
null
UTF-8
Python
false
false
2,493
py
n = 4 m = 4 pos_x = 1 pos_y = 1 dir = 0 # 0 : 북, 1 : 동, 2 : 남, 3 : 서 game_map = [[1,1,1,1], [1,0,0,1], [1,1,0,1], [1,1,1,1]] bool_map = [[0,0,0,0], [0,0,0,0], [0,0,0,0], [0,0,0,0]] bool_map[pos_y][pos_x] = 1 count = 0 score = 1 while True: dir -= 1 if dir < 0 : dir = 3 bResult = False if dir == 0...
[ "tjsrb75@gmail.com" ]
tjsrb75@gmail.com
d8a5803e900c1a81f57eb6e8232a6067e465a51c
3c300c79359f1c989df4403835abbc5513364fee
/bitshares_tradehistory_analyzer/parser.py
56c9520cd316cf14dfea532af60b1ebf20c94920
[ "MIT" ]
permissive
ds-voting/bitshares-tradehistory-analyzer
73ef81a1748fabef055f512b46366dc848c09a15
1dfd293dd6b4d692a078c403b79355fef0165799
refs/heads/master
2020-07-23T15:06:04.733405
2019-07-19T13:51:33
2019-07-19T13:51:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,029
py
import copy import logging from decimal import Decimal from bitshares.account import Account from bitshares.amount import Amount from bitshares.asset import Asset from .consts import LINE_DICT_TEMPLATE log = logging.getLogger(__name__) class Parser: """ Entries parser :param BitShares bitshares_insta...
[ "vvk@vvk.pp.ru" ]
vvk@vvk.pp.ru
6db846cc3de7d7f5c3535eafad242cb11e1da445
9dee94907e6456a4af9855d358693923c17b4e0d
/0111_Minimum_Depth_of_Binary_Tree.py
711a407cde57b1a9863453b7f34b3ebbcf63c43b
[]
no_license
chien-wei/LeetCode
e215915a8103e56f182040dacc9fb0d6996c86ec
0d6f414e7610fedb2ec4818ecf88d51aa69e1355
refs/heads/master
2021-05-13T14:48:22.891100
2019-08-20T05:52:59
2019-08-20T05:52:59
116,749,327
0
0
null
null
null
null
UTF-8
Python
false
false
764
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def minDepth(self, root: TreeNode) -> int: # BFS find the first leaf if not root: return 0 queue = [r...
[ "chien-wei@outlook.com" ]
chien-wei@outlook.com
1b304b18d44960ff768c90217ce7ba455dec8c93
3378d73f5e7c67ddcf0179e3574357e3354c7c11
/stripe/db/api.py
11d21c1e2826ff99a1d951f04beb5a8753b50b8e
[ "Apache-2.0" ]
permissive
babarnazmi/stripe
e8cece6f4697d05c4262b25f40e7056bb61349e5
f98454e7260b5140aaec35d932a78b3ada73e7a4
refs/heads/master
2021-01-15T12:41:17.140601
2013-10-30T04:25:50
2013-10-30T04:25:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,694
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Hewlett-Packard Development Company, L.P. # Copyright (C) 2013 PolyBeacon, 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 #...
[ "paul.belanger@polybeacon.com" ]
paul.belanger@polybeacon.com
c0d8734c640e57bc7339310e1f014f3f748709bb
8b95a7225a67b6e8ad30b8ab0ef66076858a29e5
/app/db.py
87ae41110e3fe4c87ec667bc808b744a168090c4
[]
no_license
tehhuu/auto_key
e413669b61b7f3f5832b66e753b86c68d16daa1a
95866259de5781cdde1f010d286c7e42ba99d5ff
refs/heads/master
2021-04-16T02:05:03.564332
2020-06-12T02:42:14
2020-06-12T02:42:14
252,633,541
0
0
null
2020-04-03T04:38:09
2020-04-03T04:38:09
null
UTF-8
Python
false
false
1,446
py
from sqlalchemy import create_engine, Column, String, Integer, DATETIME from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session import hashlib engine = create_engine('sqlite:///shimerundesu.db', connect_args={"check_same_thread": False}) #違うスレッドからもアクセスできるようにする Ba...
[ "volley_neverlose_exile@yahoo.co.jp" ]
volley_neverlose_exile@yahoo.co.jp
a0abbc1ed0bab74222442b06db0a1214f2cf0b8a
a44d853d6a7354129d7fdfcf0f43e4f9a9106015
/tests/mesh_utils_test.py
8e2b29f7f37cc3baabd584c9ba35ddee05fc4abe
[ "Apache-2.0" ]
permissive
matthewfeickert/jax
4f6b9ba2a96e1521f776886a08be38dd229f1402
b0d96bd42440231cc7e98c61f52106f46578fca4
refs/heads/main
2021-12-10T06:03:36.919415
2021-12-09T06:04:13
2021-12-09T06:04:46
436,520,694
0
0
Apache-2.0
2021-12-09T07:23:30
2021-12-09T07:23:29
null
UTF-8
Python
false
false
6,407
py
# Lint as: python3 # Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
[ "no-reply@google.com" ]
no-reply@google.com
ad6bf91b33b968d54e7db7520ad4160735b51f89
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv2/lib/python3.8/site-packages/ansible/modules/cloud/rackspace/rax_mon_notification.py
6aee351b964b059b494cccdaa5d0ebe4607d31ee
[ "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
5,165
py
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
[ "sifang@cisco.com" ]
sifang@cisco.com
3623809ed7baff2ef3553ae5ea56de4d7103565c
930309163b930559929323647b8d82238724f392
/abc104_b.py
71226076067ba3980f151a868e680909d3029fb5
[]
no_license
GINK03/atcoder-solvers
874251dffc9f23b187faa77c439b445e53f8dfe1
b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7
refs/heads/master
2021-11-07T14:16:52.138894
2021-09-12T13:32:29
2021-09-12T13:32:29
11,724,396
3
1
null
null
null
null
UTF-8
Python
false
false
265
py
from collections import Counter s = input() head = s[0] mid = dict(Counter(s[2:-1])) removed = s.replace('A', '').replace('C', '') if head == 'A' and mid.get('C') is not None and mid['C'] == 1 and removed == removed.lower(): print('AC') else: print('WA')
[ "gim.kobayashi@gmail.com" ]
gim.kobayashi@gmail.com
772a6b05963c1796c9a2f54b96ab884eee44995f
067020d4bd39b6a2df300492c09b6cc65915ab71
/engineerx/posts/modules/initialize.py
a4d80863fe566411bd4139a90152dae2e145ce37
[]
no_license
HsnVahedi/engineerx-backend
2e6d43079d94311f60089d052c278e2cbbfec76b
018257fc53e2588aec2dd159922275d544147e18
refs/heads/main
2023-04-30T22:21:25.873313
2021-05-15T22:00:37
2021-05-15T22:00:37
336,623,414
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
from posts.models import PostsPage from home.models import HomePage def create_posts_page(owner): if PostsPage.objects.exists(): return posts_page = PostsPage(title='Posts', owner=owner) home_page = HomePage.objects.first() home_page.add_child(instance=posts_page) posts_page = PostsPage.ob...
[ "mcs.hsn.vahedi@gmail.com" ]
mcs.hsn.vahedi@gmail.com
d3366b8875c54405497810ad860a6ad92779b450
2265c393b8396292b79fdbcdd08727be24c2337a
/tbonlineproject/relatedcontent/models.py
2795965bfa7595e7eab4cec3e5338a95be54a301
[ "MIT" ]
permissive
nathangeffen/tbonline-2
4275b2f970170f01f62e01ade008ab5cd1aee0d5
0d5869197e66a0057fa07cb99f21dde7f5b47c30
refs/heads/master
2023-01-07T08:43:35.261568
2019-03-31T15:54:16
2019-03-31T15:54:16
30,840,752
0
0
MIT
2022-12-26T20:18:09
2015-02-15T20:24:49
Python
UTF-8
Python
false
false
3,347
py
from django.db import models # Create your models here. from django.utils.translation import ugettext_lazy as _ from django.contrib.contenttypes.models import ContentType from enhancedtext.fields import EnhancedTextField TYPES_OF_RELATED_CONTENT = ( ('00', _('Related articles')), ('05', _('Further Reading')...
[ "nathangeffen@gmail.com" ]
nathangeffen@gmail.com
404d772e9f913c90fd54e1ed82b4691f76b47fc4
66213c48da0b752dc6c350789935fe2b2b9ef5ca
/abc/115/d_.py
cb8036d381327e5ffd4f0470a37d3047600699e7
[]
no_license
taketakeyyy/atcoder
28c58ae52606ba85852687f9e726581ab2539b91
a57067be27b27db3fee008cbcfe639f5309103cc
refs/heads/master
2023-09-04T16:53:55.172945
2023-09-04T07:25:59
2023-09-04T07:25:59
123,848,306
0
0
null
2019-04-21T07:39:45
2018-03-05T01:37:20
Python
UTF-8
Python
false
false
1,047
py
# -*- coding:utf-8 -*- import sys def solve(): N, X = list(map(int, sys.stdin.readline().split())) As = [1] # レベルiバーガーの厚さ(層の総数)(必ず奇数) Ps = [1] # レベルiバーガーのパティの総数 for i in range(N): As.append(As[i]*2 + 3) # レベルが1上がると、総数は2倍+3になる Ps.append(Ps[i]*2 + 1) # レベルが1上がると、パティの数は2倍+1になる ...
[ "taketakeyyy@gmail.com" ]
taketakeyyy@gmail.com
0ea487eefddf2b691bbd4615be6c28583189c22e
02c394db353d996038c9bedbeaf91bb080c12ca2
/dsm/epaxos/replica/config.py
fbfd36f11f0765a18dcf07d8a0b82a49e91101b1
[ "MIT" ]
permissive
Limber0117/python-epaxos
0633752cffaca65c0d8b9c3aecf9c8bc6ca70f3e
e68bab50e7df32770103196c91d8708863691579
refs/heads/master
2021-08-23T22:31:47.283682
2017-12-06T22:16:21
2017-12-06T22:16:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,040
py
from collections import defaultdict from typing import Any, List class ReplicaState: def __init__( self, # channel: Any, epoch: int, replica_id: int, quorum_fast: List[int], quorum_full: List[int], live: bool = True, timeout: int = 3, jiffies...
[ "acizov@gmail.com" ]
acizov@gmail.com
ee99160a507f18d502ef1b8e1695b0e8369b54d8
8049ba531ea34f07b065a11dd1c9a5d68a00580f
/app/models.py
bac68d9dcf6103505c200b55cdaa3262065c452d
[]
no_license
aoisoratoumi/django-booking
94b29020c2390bd51d0d1a8451e3be08a9062793
a178c5f2d05bffe629fc828e7dc307f517718f37
refs/heads/master
2022-09-13T22:43:26.308133
2020-05-29T23:57:22
2020-05-29T23:57:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,674
py
from django.db import models from django.utils import timezone from accounts.models import CustomUser class Store(models.Model): name = models.CharField('店舗', max_length=100) address = models.CharField('住所', max_length=100, null=True, blank=True) tel = models.CharField('電話番号', max_length=100, null=True, b...
[ "harukun2002@gmail.com" ]
harukun2002@gmail.com
67625ed8122fc11c906ad83907a8303cc83d77b9
fb28906c1f0347ffe50193f6c2bad2d4b490fa9c
/budger/directory/migrations/0018_ksoemployee_is_developer.py
035b40d574b286ea6259fb47f17f3cee1ebb2261
[]
no_license
pavkozlov/budger-server
20c695309c34a0451d25b83ab8583b14f0d21c0c
7a98c1789414c83625bda1e5b29cbe5587c3cd6a
refs/heads/master
2020-12-17T06:35:10.550905
2020-01-13T13:27:42
2020-01-13T13:27:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
# Generated by Django 2.2.6 on 2019-12-04 13:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('directory', '0017_auto_20191203_1640'), ] operations = [ migrations.AddField( model_name='ksoemployee', name='is_dev...
[ "it.pavelkozlov@gmail.com" ]
it.pavelkozlov@gmail.com