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
fc03b2addf535c39046c40df168afe7cabd0e67c
14bca3c05f5d8de455c16ec19ac7782653da97b2
/lib/kubernetes/client/models/v1_local_object_reference.py
8bdf99cde581bc3d3abefcc9897708676fc092bb
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hovu96/splunk_as_a_service_app
167f50012c8993879afbeb88a1f2ba962cdf12ea
9da46cd4f45603c5c4f63ddce5b607fa25ca89de
refs/heads/master
2020-06-19T08:35:21.103208
2020-06-16T19:07:00
2020-06-16T19:07:00
196,641,210
8
1
null
null
null
null
UTF-8
Python
false
false
3,380
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.14.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteri...
[ "robert.fujara@gmail.com" ]
robert.fujara@gmail.com
8ead76d7340deb6bd81fc2eadd7a573efbba4100
b027af825501f40157921456778e0c2b4a15c313
/981. Time Based Key-Value Store.py
58d5a5d50bd834b2811f5474b3f41618627561f5
[]
no_license
Eustaceyi/Leetcode
bba9db25d940aa1a3ea95b7a97319005adb58655
237985eea9853a658f811355e8c75d6b141e40b2
refs/heads/master
2020-05-19T08:04:37.101702
2020-02-02T01:43:05
2020-02-02T01:43:05
184,912,241
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
class TimeMap: def __init__(self): """ Initialize your data structure here. """ self.d = {} def set(self, key: str, value: str, timestamp: int) -> None: if key not in self.d: self.d[key] = [(timestamp, value)] else: self.d[key].append((tim...
[ "eustaceyi@gmail.com" ]
eustaceyi@gmail.com
9827030868fdbec7d08cc003e957a3ab49091c27
2aace9bb170363e181eb7520e93def25f38dbe5c
/build/idea-sandbox/system/python_stubs/cache/615fe5511019f4d9377f3903f87a6e0b5f40a3c520ef52ec49ceeaa834141943/typing/io.py
aba44effd2b04593bdce89e5f191dfa3f72ded87
[]
no_license
qkpqkp/PlagCheck
13cb66fd2b2caa2451690bb72a2634bdaa07f1e6
d229904674a5a6e46738179c7494488ca930045e
refs/heads/master
2023-05-28T15:06:08.723143
2021-06-09T05:36:34
2021-06-09T05:36:34
375,235,940
1
0
null
null
null
null
UTF-8
Python
false
false
4,377
py
# encoding: utf-8 # module typing.io # from C:\Users\Doly\Anaconda3\lib\site-packages\pandas\_libs\missing.cp37-win_amd64.pyd # by generator 1.147 """ Wrapper namespace for IO generic classes. """ # imports import typing as __typing # no functions # classes class IO(__typing.Generic): """ Generic base class...
[ "qinkunpeng2015@163.com" ]
qinkunpeng2015@163.com
812d33ceecf8a2ed47eb5c83d1e0225481655f44
f338eb32c45d8d5d002a84798a7df7bb0403b3c4
/Calibration/IsolatedParticles/test/proto_runIsolatedTracksHcal_cfg.py
34200f8e49f76ae0284d76dd370be5ac5a950c7c
[]
permissive
wouf/cmssw
0a8a8016e6bebc611f1277379e12bef130464afb
60da16aec83a0fc016cca9e2a5ed0768ba3b161c
refs/heads/CMSSW_7_3_X
2022-06-30T04:35:45.380754
2015-05-08T17:40:17
2015-05-08T17:40:17
463,028,972
0
0
Apache-2.0
2022-02-24T06:05:30
2022-02-24T06:05:26
null
UTF-8
Python
false
false
2,875
py
import FWCore.ParameterSet.Config as cms process = cms.Process("L1SKIM") process.load("FWCore.MessageService.MessageLogger_cfi") process.MessageLogger.cerr.FwkReport.reportEvery = 10 process.MessageLogger.categories.append('L1GtTrigReport') process.MessageLogger.categories.append('HLTrigReport') process.options = cm...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
eacdc0def0769b9ac87a01477d979d10893e999e
3345fd9994269b2617e5cbd8f9de879f61544341
/sklearn_theano/utils/validation.py
2d75fff7123bf8f257d8b510f1be458631604271
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
khaoulabelahsen/sklearn-theano
63f927c61732601f684e36d28e9f029246b84a20
a159d63b913c4f3a7abfb5a46a97a5a39bbc793f
refs/heads/master
2021-05-18T13:30:17.228526
2020-03-30T09:54:29
2020-03-30T09:54:29
251,263,043
1
0
BSD-3-Clause
2020-03-30T09:45:51
2020-03-30T09:45:51
null
UTF-8
Python
false
false
1,974
py
"""Utilities for input validation""" # License: BSD 3 clause import numpy as np def get_minibatch_indices(array, minibatch_size): """ Get indices for minibatch processing. Parameters ---------- array : object Input object to get indices for minibatch_size : int Size of minibatche...
[ "kastnerkyle@gmail.com" ]
kastnerkyle@gmail.com
ef126642a60cbf935062792af151179cfa4acb7e
11c24617b0f62bc55b7d2f34eb65fa63e3e3ec06
/Stacks and Queues - Exercise/10. Cups and Bottles.py
05eea022bd503beddd8750833b08dd39d18c3a5e
[]
no_license
SilviaKoynova/Python-Advanced
2d1750a4943b82a82ec910d29241bd3fc473289e
0a94556592bca60b29a85849a5e694f2eeeda52b
refs/heads/main
2023-07-18T05:41:33.641250
2021-08-26T21:15:13
2021-08-26T21:15:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,155
py
from collections import deque cups_capacity = list(map(int, input().split())) bottles_with_watter = list(map(int, input().split())) cups = deque(cups_capacity) wasted_water = 0 while cups and bottles_with_watter: current_cup = cups[0] current_bottle = bottles_with_watter[-1] if current_cup > curre...
[ "noreply@github.com" ]
SilviaKoynova.noreply@github.com
bd543a56885e63c0880db093f6cc7f3b0a5aebd7
d3cd9012fb535f304d23635145d3fbe71fdbf17e
/geonames/fileutils.py
7bb9513b06e9cfb8f77f8e62e5dac124d7991570
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
flyingdice/geonames-sqlite
38023e8ffc2e6ff47ee614fc7ea223bfa3079cc2
acf51d9af723d46815c43509ce22712ce910a61e
refs/heads/master
2023-02-18T02:06:44.676771
2021-01-20T01:48:00
2021-01-20T01:48:00
109,519,033
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
""" geonames/fileutils ~~~~~~~~~~~~~~~~~~ Contains utility functions for files. """ from typing import IO def peek_line(f: IO) -> str: """ Peek the next line of the given file obj without progressing the pointer. """ pos = f.tell() data = f.readline() f.seek(pos) return data ...
[ "andrew.r.hawker@gmail.com" ]
andrew.r.hawker@gmail.com
20719f4d841e021eca7cb85b8fe056e631ae325c
91824d746654fe12881b4fc3b55c553aae0d22ac
/py/count-numbers-with-unique-digits.py
627afa761d56db8cd55409afa5f4afa8c3a6a30b
[ "Apache-2.0" ]
permissive
ckclark/leetcode
a1a173c67a36a3256b198f853fcd3d15aa5abbb7
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
refs/heads/master
2021-01-15T08:14:43.368516
2020-02-14T07:25:05
2020-02-14T07:30:10
42,386,911
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
class Solution(object): def countNumbersWithUniqueDigits(self, n): """ :type n: int :rtype: int """ n = min(10, n) ans = 1 for i in xrange(10 - (n - 1), 10 + 1): ans = ans * i + 1 ans *= 9 ans /= 10 return ans + 1
[ "clark.ck@gmail.com" ]
clark.ck@gmail.com
e83f691304be7f8aaee96e7151f7442647d2fb7c
ac9b453759dbab67d92f88942b7ac41b337e003d
/hudson/hudson-scripts/qiime/test_tree_compare.py
41856e1636672dce3233f85b256d692af20cdd73
[]
no_license
carze/clovr-base
12d8dd405136643b889c3752a360a2efc9405f45
617bcb84b087f80a5d5e74ad7ef1616a369d2306
refs/heads/master
2021-01-24T01:39:55.353409
2014-11-05T15:06:05
2014-11-05T15:06:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,386
py
#!/usr/bin/env python __author__ = "Justin Kuczynski" __copyright__ = "Copyright 2010, The QIIME Project" __credits__ = ["Justin Kuczynski"] __license__ = "GPL" __version__ = "1.1.0" __maintainer__ = "Justin Kuczynski" __email__ = "justinak@gmail.com" __status__ = "Release" """tests the tree_compare.py module.""" fr...
[ "cesar.arze@gmail.com" ]
cesar.arze@gmail.com
9f882bb61120cc1a2aa888581ffeef7eb9ebc90f
8ad9faa828ce54cddc38dc86eef30e6635babd0c
/RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/openflowcontroller/instructions.py
b089f7f273ad469a5399bb17b1a314f0423ac06b
[ "MIT" ]
permissive
ralfjon/IxNetwork
d1a50069bc5a211f062b2b257cb6775e7cae8689
c0c834fbc465af69c12fd6b7cee4628baba7fff1
refs/heads/master
2020-04-04T00:36:24.956925
2018-10-26T16:37:13
2018-10-26T16:37:13
155,655,988
0
0
MIT
2018-11-01T03:19:30
2018-11-01T03:19:30
null
UTF-8
Python
false
false
3,717
py
# Copyright 1997 - 2018 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, merge, p...
[ "hubert.gee@keysight.com" ]
hubert.gee@keysight.com
e2ee40c43a7150a5d6cee96817a5c77f7357f557
d1a4e71c407c52d28914570c684d2be2f03d1cd2
/tensorflow/python/keras/layers/preprocessing/text_vectorization_distribution_test.py
61fb62f7885dec08d19c28211ebc412e7d18f9ed
[ "Apache-2.0" ]
permissive
WindQAQ/tensorflow
f43dd80e1b6004f2443faf2eb310dbcb19ae9796
4f4e5f4196e243b33fd218bc9fc910e275b1f22b
refs/heads/master
2021-07-05T05:55:38.374488
2021-03-12T04:51:17
2021-03-12T04:51:17
190,140,026
1
0
Apache-2.0
2019-06-04T06:09:54
2019-06-04T06:09:53
null
UTF-8
Python
false
false
4,191
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
fc7c24ed77a547bd786367f500d47a40c1ac668c
bc61b2d61e0d7c119ad40432490a35e49c2af374
/src/opencmiss/extensions/airwaysmask/utils.py
418ee6e288308afb4f2d4c8d26af8e38fb44cf52
[ "Apache-2.0" ]
permissive
hsorby/neon.extension.airwaysmask
28c2be8d685d9bf72f7704c549bca11c286ce305
2d9da30c569e1fcdd0819a6512e570b3d8c9efda
refs/heads/master
2020-03-27T02:28:06.928298
2018-08-29T21:36:27
2018-08-29T21:36:27
145,792,604
0
0
null
null
null
null
UTF-8
Python
false
false
1,007
py
def generate_offset_cube_coordinates(dimensions): """ Create a set of eight 3D coordinates that are offset by 0.5. In this case the 0.5 is a pixel so that the centre of the voxel is at the integer coordinate location. :param dimensions: A list of size three containing the dimensions of the cube. ...
[ "h.sorby@auckland.ac.nz" ]
h.sorby@auckland.ac.nz
894fb7bca92442fa7ede87e3eb4fb9460d48dac3
077a17b286bdd6c427c325f196eb6e16b30c257e
/00_BofVar-unit-tests/05_64/remenissions-work/exploit-BofFunc-55.py
aaa5881a3250fe6ea97d12a84f892bc0bf2bb8f1
[]
no_license
KurSh/remenissions_test
626daf6e923459b44b82521aa4cb944aad0dbced
9dec8085b62a446f7562adfeccf70f8bfcdbb738
refs/heads/master
2023-07-08T20:25:04.823318
2020-10-05T06:45:16
2020-10-05T06:45:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
918
py
from pwn import * import time import sys import signal import sf target = process("./chall-test_BofVar-05-x64") gdb.attach(target, execute="verify_exploit") bof_payload = sf.BufferOverflow(arch=64) bof_payload.set_input_start(0x58) bof_payload.add_int32(0x20, 0xdead) bof_payload.add_int32(0x1c, 0xbef1) bof_payload.a...
[ "ryancmeinke@gmail.com" ]
ryancmeinke@gmail.com
c2f713bbc9cad80955d03476244f66543e606652
16047f965a69893a8cd2c8d18fbd7b9c86a07eb3
/src/kubernetes/client/models/v1beta1_role.py
2c1a21b5a2042eac6ef9b08e9bd6650f618215a2
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
guctum/aws-kube-codesuite
9ce2cc02fe5fa15c2e175fb697138014fb162f1e
5d62beaadc13bec745ac7d2fc18f07805e91cef3
refs/heads/master
2021-05-24T10:08:00.651840
2020-04-23T20:21:46
2020-04-23T20:21:46
253,511,083
0
0
Apache-2.0
2020-04-06T13:48:14
2020-04-06T13:48:13
null
UTF-8
Python
false
false
6,072
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
[ "olari@784f435df7a4.ant.amazon.com" ]
olari@784f435df7a4.ant.amazon.com
5ef75da1022655c5bd6ac835508068ef14abd034
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_fountains.py
8f3662dc38b64b11ddca5e07e700a81c35dac24f
[ "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
230
py
#calss header class _FOUNTAINS(): def __init__(self,): self.name = "FOUNTAINS" self.definitions = fountain self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['fountain']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
73eac1e22433ab4eea9aca1376ba592b36c8a766
b162de01d1ca9a8a2a720e877961a3c85c9a1c1c
/19.remove-nth-node-from-end-of-list.python3.py
3b4c3c3f89c9d6b3ace1f623eb8f445776978c96
[]
no_license
richnakasato/lc
91d5ff40a1a3970856c76c1a53d7b21d88a3429c
f55a2decefcf075914ead4d9649d514209d17a34
refs/heads/master
2023-01-19T09:55:08.040324
2020-11-19T03:13:51
2020-11-19T03:13:51
114,937,686
0
0
null
null
null
null
UTF-8
Python
false
false
900
py
# # [19] Remove Nth Node From End of List # # https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/ # # algorithms # Medium (33.66%) # Total Accepted: 320.9K # Total Submissions: 953.4K # Testcase Example: '[1,2,3,4,5]\n2' # # Given a linked list, remove the n-th node from the end of list and ...
[ "richnakasato@hotmail.com" ]
richnakasato@hotmail.com
2480aceae6ae2ba2e2a15b9c72c5bc82b9962eb7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02939/s369857416.py
52d015695e7208d99d4fc5b060a39a9e61059cf9
[]
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
152
py
S = input() ans = 0 x = '' y = '' for i in S: x += i if x == y: pass else: ans += 1 y = x x = '' print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
ec0cfcecd31f2c6a246a73248820c3d252ee9f33
170864b6ec66be48138f231fe8ac3381481b8c9d
/python/BOJ_5585.py
13ea463165f2037fccae553ad628352c08812824
[]
no_license
hyesungoh/AA_Algorithm
5da3d8312d035d324dfaa31eef73f01a238231f3
d68f52eaa29cfc4656a8b5623359166779ded06e
refs/heads/master
2023-06-09T14:49:01.402456
2021-06-28T10:10:09
2021-06-28T10:10:09
272,701,231
1
0
null
null
null
null
UTF-8
Python
false
false
144
py
n = 1000 - int(input()) coins = [500, 100, 50, 10, 5, 1] ans = 0 for coin in coins: t = n // coin n -= t * coin ans += t print(ans)
[ "haesungoh414@gmail.com" ]
haesungoh414@gmail.com
5f0784ef8ebaf4b89a25a06905196b48dbd2da46
db652288d2a5da615c3026cb49e7e66c4c68b2b1
/website/welree/migrations/0003_auto_20150203_1526.py
5e8441e2c94dba59036eb731f0ce18162a52c977
[]
no_license
dhanuagnihotri/Welree-Website
a6b76ba6be47617ff4585fdf254460abc1aa7c59
899ed8de4eadc2411b5fee0588a1ed756fb5325e
refs/heads/master
2021-01-21T03:38:00.119591
2015-08-19T17:31:18
2015-08-19T17:31:18
29,544,497
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('welree', '0002_customuser_is_designer'), ] operations = [ migrations.AlterField( model_name='customuser', ...
[ "mrooney.github@rowk.com" ]
mrooney.github@rowk.com
d6e93df4cf85a0b82684bc63ef054e46fd0cd165
6bc7062b2f99d0c54fd1bb74c1c312a2e3370e24
/crowdfunding/users/permissions.py
5b18344a04da371391dd876904d9dae8001cae2e
[]
no_license
marinkoellen/drf-proj
f2d1f539efb877df69d285bd2fe6d5e789709933
874549d68ab80a774988c83706bb7934e035de42
refs/heads/master
2022-12-25T16:53:52.187704
2020-10-03T03:54:06
2020-10-03T03:54:06
289,620,536
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
from rest_framework import permissions class OwnProfile(permissions.BasePermission): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True return obj == request.user
[ "ellen.marinko1@gmail.com" ]
ellen.marinko1@gmail.com
371b4a3ef74327f5b87793eb24cc846c854d2160
9ca8da461ac27ad18ceee5e81a60b17e7b3c4a8c
/venv/Lib/site-packages/matplotlib/tests/test_ttconv.py
3bbe7af9c73844ce54a7320e0c963ddf605e1b8e
[]
no_license
LielVaknin/OOP-Ex3
1c2e36436ffe6b701e46efec77d4beb4aba711bf
4b830b6806c6d8013332992241dce01cc81634d7
refs/heads/master
2023-02-11T05:10:20.460355
2021-01-14T18:18:22
2021-01-14T18:18:22
328,455,478
0
0
null
null
null
null
UTF-8
Python
false
false
1,150
py
<<<<<<< HEAD from pathlib import Path import matplotlib from matplotlib.testing.decorators import image_comparison import matplotlib.pyplot as plt @image_comparison(["truetype-conversion.pdf"]) # mpltest.ttf does not have "l"/"p" glyphs so we get a warning when trying to # get the font extents. def test_truetype_con...
[ "yairaviv83@gmail.com" ]
yairaviv83@gmail.com
119cf069fba05ec41726845576cf1a5f7597599c
788965833baa87fec02520ebccde379bf03198bc
/askcompany/settings/common.py
3cbb1f9fc7b5a61b00f31452e4465a468f4f49d3
[]
no_license
sungchan1025/django-with-react-rev2
e907bfb464a1a9ed0061d5829257558426335fcd
62bf5b5e57e8c791e0c74bf4e496f3bc79de8c4b
refs/heads/master
2022-04-07T03:11:39.990147
2020-02-16T05:50:50
2020-02-16T05:50:50
273,150,775
1
0
null
2020-06-18T05:36:54
2020-06-18T05:36:54
null
UTF-8
Python
false
false
4,025
py
""" Django settings for askcompany project. Generated by 'django-admin startproject' using Django 3.0.3. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os...
[ "me@askcompany.kr" ]
me@askcompany.kr
6bda908e9230dfb4ccd5c22e157ae0537128b390
cf543dda5dc841b3eb7063d78821fbbdbd8f9d60
/tests/conftest.py
7ebcb25452700b0c985871fb03296261e0d46991
[ "BSD-3-Clause" ]
permissive
mdxs/json-spec
2b66a9b792210188788a04138e8e2e9fea4aed89
f093a2d47e899990e023a13a29f94b9aebdae5ab
refs/heads/master
2021-01-18T03:14:28.420809
2015-07-07T14:34:37
2015-07-07T14:36:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
import sys def pytest_cmdline_preparse(args): if 'pytest_cov' in sys.modules: # pytest-xdist plugin args[:] = ['--cov', 'jsonspec', '--cov-report', 'html'] + args
[ "clint.northwood@gmail.com" ]
clint.northwood@gmail.com
2b35f8032e339afc72a833ccfba443d92be9e9e2
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/Cases/2937/.mooctest/answer.py
075d4f8539d3f652a78d8e28ff7dc8eaa60bc42f
[]
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
586
py
#include<iostream> using namespace std; char a[16], b[16] = {'C', 'O', 'D', 'E', 'F', 'E', 'S', 'T', 'I', 'V', 'A', 'L', '2', '0', '1', '6'};//直接字符数组走一波,后面比较方便 int ans;//定义ans为答案/在函数外面定义的全局变量初始值默认为0 int main() { cin >> a;//不需要一个字符一个字符的输,题目数据全都是16位的,不用担心超界限 for(int i = 0; i < 16; i ++){ if(a[i] != b[i]) ...
[ "382335657@qq.com" ]
382335657@qq.com
724cb5e6e6271b7e8dbf448bcc2f40bfd0712d1f
87fecbc5b4e6ae4b2a0c32c45e20eb1fec2ebcdd
/Siyam Solved/Problem Set -2/Solutions- 2/7.py
d9e973e8e12bc7f464b259713babb0d6a8e4b005
[]
no_license
siyam04/python_problems_solutions
08aa2bc17342ee85fdcd90ef96bd8eeed0699726
7b271d98e4d600bca31061e57ce792f5d9913991
refs/heads/master
2020-06-27T22:56:48.973484
2019-08-01T15:33:18
2019-08-01T15:33:18
200,075,594
1
0
null
null
null
null
UTF-8
Python
false
false
293
py
def EvenCount (): L = [] count =sum([1 for i in range(1, 9) if i % 2 == 0]) return count def OddCount (): L = [] count =sum([1 for i in range(1, 9) if i % 2 != 0]) return count print("Total EVEN numbers are:", EvenCount()) print("Total ODD numbers are:", OddCount())
[ "galib.abdullah04@gmail.com" ]
galib.abdullah04@gmail.com
d0752ea82d55e18e109b58693127c0b741fae2fe
9d0d01fcae352e9a7d48d7a8035be775118a556e
/sample/get_user_by_device_id.py
395098703b40be6086fb8398e22b87538f811d88
[]
no_license
BlueLens/stylelens-user
b278faef0fd32b36355f190e4cd13b95b6e7e57c
aa3698d35c237dd022fb16824945636b0b3660e7
refs/heads/master
2021-09-04T20:47:27.881925
2018-01-22T09:28:14
2018-01-22T09:28:14
117,768,534
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
from __future__ import print_function from stylelens_user.users import Users from pprint import pprint api_instance = Users() device_id = "xxxx" try: api_response = api_instance.get_user_by_device_id(device_id) pprint(api_response) except Exception as e: print("Exception when calling get_user_by_device_id: %s\n...
[ "master@bluehack.net" ]
master@bluehack.net
1e6c9e8e59bddb832eadfc7780eebfef53aa5db6
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/fYMjhe7BnijXwfNpF_6.py
bb60873df92e89aabc853fedd429ccfe8fa9fc7e
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
""" Create a function that takes a string and returns the first character of every word if the length of the word is even and the middle character if the length of the word is odd. ### Examples stmid("Alexa have to paid") ➞ "ehtp" # "e" is the middle character of "Alexa" # "h" is the first character of...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
d02edfa3c34f2b0e8cdf7fcee43f0673d659cfa9
72d6b3ab3fc2c7014967a156de082d1c617cbf0f
/网优日常/制作手机型号数据库/制作用户手机型号数据库.py
716e6b00a29239dcec0f36eca0ff7a9880dc6903
[]
no_license
fengmingshan/python
19a1732591ad061a8291c7c84e6f00200c106f38
b35dbad091c9feb47d1f0edd82e568c066f3c6e9
refs/heads/master
2021-06-03T08:35:50.019745
2021-01-19T15:12:01
2021-01-19T15:12:01
117,310,092
4
1
null
null
null
null
UTF-8
Python
false
false
1,125
py
# -*- coding: utf-8 -*- # @Author: Administrator # @Date: 2019-09-07 11:17:31 # @Last Modified by: Administrator # @Last Modified time: 2019-09-07 16:10:16 import pandas as pd import os data_path = 'D:/2019年工作/2019年8月4G网络扩频方案/诺基亚大数据平台/' user_files = ['qujing_rmk1_temp_20190903.csv','qujing_rmk1_temp_20190808.csv'...
[ "fms_python@163.com" ]
fms_python@163.com
10a0372584f4d22c91b7131dc54958785772dded
df7b40e95718ac0f6071a0ba571b42efc81cf6de
/configs/dmnet/dmnet_r50-d8_512x512_80k_ade20k.py
74f6d6a85a06e96580a3c8d5843f660c85bca5ad
[ "Apache-2.0" ]
permissive
shinianzhihou/ChangeDetection
87fa2c498248e6124aeefb8f0ee8154bda36deee
354e71234bef38b6e142b6ba02f23db958582844
refs/heads/master
2023-01-23T20:42:31.017006
2023-01-09T11:37:24
2023-01-09T11:37:24
218,001,748
162
29
Apache-2.0
2022-11-03T04:11:00
2019-10-28T08:41:54
Python
UTF-8
Python
false
false
250
py
_base_ = [ '../_base_/models/dmnet_r50-d8.py', '../_base_/datasets/ade20k.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_80k.py' ] model = dict( decode_head=dict(num_classes=150), auxiliary_head=dict(num_classes=150))
[ "1178396201@qq.com" ]
1178396201@qq.com
326899684aa667bc3ef82d30a16914eb4ded3f0d
89b3f158659080efab8854b9f086ee62f06abc7d
/example.py
f95f9fc4b847a9429432bcbc8a1aaba5dd1d3706
[]
no_license
rgerkin/pystan-sklearn
8ff3d7ee8450fe58b2d6a2e5ae3076daa8d16477
5c5cffe5389abb58fa85d0a47bd4760128b19d8a
refs/heads/master
2020-04-05T23:40:37.547640
2017-08-06T22:27:25
2017-08-06T22:27:25
29,157,427
37
4
null
null
null
null
UTF-8
Python
false
false
3,655
py
import numpy as np from scipy.stats import norm from sklearn.model_selection import ShuffleSplit,GridSearchCV from pystan_sklearn import StanEstimator ############################################################# # All of this from the eight schools example. schools_code = """ data { int<lower=0> J; // n...
[ "rgerkin@asu.edu" ]
rgerkin@asu.edu
f16542003c0cf3db0d3dbe1c97a817a5d5a4ab12
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/anagram/4cea4799f8d04747920f4fa0133e14c2.py
3ac7214609467216359f63db380f0fee5c7bb09c
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
256
py
def is_anagram_of(word, cwrd, swrd): caps = word.upper() return cwrd != caps and swrd == sorted(caps) def detect_anagrams(word, words): cwrd = word.upper() swrd = sorted(cwrd) return list(filter(lambda s: is_anagram_of(s, cwrd, swrd), words))
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
1dcb23d7909b6dd031ad32006240c79be5c1aff9
d66aa4c77f65bb837e07626c696b6dc886c7b1c1
/base/Chapter-1/Chapter-1-31.py
db95b375d7349f4744a25dd67cc200ccb1f9bb5d
[]
no_license
silianpan/Excel_to_Python
2a789aec0eb38d3178be6dd44205792624d0d4c4
1c5890988c99b2939c4d98bb6a881e15d6c3ad7d
refs/heads/master
2021-07-09T00:25:54.665343
2021-05-04T11:25:18
2021-05-04T11:25:18
242,090,461
1
0
null
null
null
null
UTF-8
Python
false
false
261
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/5/2 上午9:30 # @Author : silianpan # @Site : # @File : py # @Software: PyCharm print('{:.2f}'.format(3.1415926)) #返回3.14。 print('{:.2%}'.format(0.1415926)) #返回14.16%。
[ "liu.pan@silianpan.cn" ]
liu.pan@silianpan.cn
3f7e43c1e6b0b4badb465fe876338ee60accd0a7
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/detective_write_1/invitation_reject.py
ce13843a11cb17b879320e1411eaf61fd08d6b0a
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,174
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_one_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/detective/reject-invitation.html if __name__ == ...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
7ad240c7bf533482774d94f1fb2d74b20b186759
543286f4fdefe79bd149ff6e103a2ea5049f2cf4
/Exercicios&cursos/Minhas_coisas/ex09.py
9639c0ea8b41077893e4d94489c1272c84db99b9
[]
no_license
antonioleitebr1968/Estudos-e-Projetos-Python
fdb0d332cc4f12634b75984bf019ecb314193cc6
9c9b20f1c6eabb086b60e3ba1b58132552a84ea6
refs/heads/master
2022-04-01T20:03:12.906373
2020-02-13T16:20:51
2020-02-13T16:20:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
from time import sleep a = [] def lista(a = []): for c in range(0, 5): a.append(int(input(f'{c + 1}º Digite um número: '))) print(f'lista de números digitados: ', end=' ') for n in a: print(f'{n}', end='|') lista() sleep(2) print('\nProximo...') sleep(2) lista()
[ "progmatheusmorais@gmail.com" ]
progmatheusmorais@gmail.com
9c796ae92d466001acc3155f24e74c72685703fe
3cfd135a00bbe03a354ec1e516bca9e224655f46
/sdk/python/test/test_v1beta1_when_expression.py
28d7521035c39c7023c8a43f8155bb0ad73c848e
[ "Apache-2.0" ]
permissive
FogDong/experimental
c7fc3a38aeaf9e2dbc9b06390a1c2e764ddda291
971004ba2ccfbceec4b677ee745fed7fd9ac6635
refs/heads/main
2023-04-23T01:49:20.602679
2021-05-05T12:36:52
2021-05-05T14:11:43
367,241,487
1
0
Apache-2.0
2021-05-14T03:44:34
2021-05-14T03:44:34
null
UTF-8
Python
false
false
2,226
py
# Copyright 2020 The Tekton 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 or agreed to in wr...
[ "48335577+tekton-robot@users.noreply.github.com" ]
48335577+tekton-robot@users.noreply.github.com
e6660d23b39c1d5d5b9e794617440f216d3f4f34
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_regretted.py
89fb7fbc999a393637811f0bbe73809c6f184826
[ "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
226
py
#calss header class _REGRETTED(): def __init__(self,): self.name = "REGRETTED" self.definitions = regret self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['regret']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
3a7a2810d740f825a10f529564b84a662467cf35
ba1776805c3e4305bb868e1ee6929e4b07751090
/backend/task/migrations/0001_initial.py
c0b2e884d2b1049f30e47ffb276505a3382fc690
[]
no_license
crowdbotics-apps/seton-20675
c30edcfae478317a598955d5963c776b28e108b9
1318ffdd08cad0bd83b7699e6c6ee73b2737af1d
refs/heads/master
2022-12-26T11:54:47.261026
2020-09-25T15:40:15
2020-09-25T15:40:15
298,612,394
0
0
null
null
null
null
UTF-8
Python
false
false
4,121
py
# Generated by Django 2.2.16 on 2020-09-25 15:39 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('task_profile', '0001_initial'), ('location', '0001_initial'), ('task_category', '0001_i...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
20d321261341e05d7ce4783500097fb8094b3994
905f8aa9c460615e2360b3406bdae1f5f6e10632
/Python-Study-Week3/96.py
73766925d9b8a08f73fa2d43f38c873bba99c4f9
[]
no_license
puze8681/2020-Python-Study
a7c9f89310ae29d5b2aa1a1da6dd4524ca78b8fc
a79bf1802a2fdbfc0c797979cef7e5530515ac55
refs/heads/master
2022-11-23T09:53:15.017457
2020-08-02T07:49:31
2020-08-02T07:49:31
278,815,225
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
def checkPassword(password): isLength = False isUpper = False isLower = False isNumber = False if len(password) > 7: isLength = True for c in password: if c.isupper(): isUpper = True elif c.islower(): isLower = True elif c.isdigit(): ...
[ "puze8681@gmail.com" ]
puze8681@gmail.com
8c5b17c8fb9f1d518e1dfa9747ce3fc857e3fe86
14f4d045750f7cf45252838d625b2a761d5dee38
/argo/argo/models/io_k8s_api_core_v1_limit_range_spec.py
a18f58d2bf450455420374445993aff438273f94
[]
no_license
nfillot/argo_client
cf8d7413d728edb4623de403e03d119fe3699ee9
c8cf80842f9eebbf4569f3d67b9d8eff4ba405fa
refs/heads/master
2020-07-11T13:06:35.518331
2019-08-26T20:54:07
2019-08-26T20:54:07
204,546,868
1
0
null
null
null
null
UTF-8
Python
false
false
3,644
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.14.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six...
[ "nfillot@weborama.com" ]
nfillot@weborama.com
b8c96de649bce16d8648e375b09f40d49f46c951
7889f7f0532db6a7f81e6f8630e399c90438b2b9
/1.2.1/mpl_examples/api/watermark_image.py
3d437193a05aab48891107cebb75a25db44afd54
[]
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
543
py
""" Use a PNG file as a watermark """ from __future__ import print_function import numpy as np import matplotlib import matplotlib.cbook as cbook import matplotlib.image as image import matplotlib.pyplot as plt datafile = cbook.get_sample_data('logo2.png', asfileobj=False) print ('loading %s' % datafile) im = image.im...
[ "mdboom@gmail.com" ]
mdboom@gmail.com
f54560be25ee1a1316421a7fb7246bcae0c7b928
c46754b9600a12df4f9d7a6320dfc19aa96b1e1d
/src/transformers/models/funnel/convert_funnel_original_tf_checkpoint_to_pytorch.py
848101f083582bafa26e58c87aaa612502f3f79c
[ "Apache-2.0" ]
permissive
huggingface/transformers
ccd52a0d7c59e5f13205f32fd96f55743ebc8814
4fa0aff21ee083d0197a898cdf17ff476fae2ac3
refs/heads/main
2023-09-05T19:47:38.981127
2023-09-05T19:21:33
2023-09-05T19:21:33
155,220,641
102,193
22,284
Apache-2.0
2023-09-14T20:44:49
2018-10-29T13:56:00
Python
UTF-8
Python
false
false
2,335
py
# coding=utf-8 # Copyright 2020 The HuggingFace Inc. team. # # 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...
[ "noreply@github.com" ]
huggingface.noreply@github.com
56b19f05304bab70188096e3ac2eb03470123e18
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/159/61693/submittedfiles/testes.py
5cfde5c4eb116f499ea4d22d2e9e042e3654972b
[]
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
899
py
# -*- coding: utf-8 -*- def cortel1(a): for i in range (0,a.shape[0],1): for j in range (0,a.shape[1],1): if a[i,j]==1: return i def cortel2(a): for i in range (0,a.shape[0],1): for j in range (0,a.shape[1],1): if a[i,j]==1: l2=i retur...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
3b98c1f8f6ac6c56e19c3aa095b0d314a653e4ae
5ac61540ee978a088457257c81d1a297ebc8002f
/app/conf/development/settings.py
2fce1d09fa31723900fe386680a2b2fde32d26a6
[]
no_license
yuis-ice/django-qa
4a18732bcad8af04b442a134856b26f0b4bdd833
c680c647d788a0bf55b535c8a89ada16e6edba4d
refs/heads/main
2023-03-24T19:18:23.777044
2021-03-22T12:00:23
2021-03-22T12:00:23
350,327,049
0
0
null
null
null
null
UTF-8
Python
false
false
4,284
py
import os import warnings from django.utils.translation import ugettext_lazy as _ from os.path import dirname warnings.simplefilter('error', DeprecationWarning) BASE_DIR = dirname(dirname(dirname(dirname(os.path.abspath(__file__))))) CONTENT_DIR = os.path.join(BASE_DIR, 'content') SECRET_KEY = 'NhfTvayqggTBPswCXXhWa...
[ "you@example.com" ]
you@example.com
11b7a83487e395526625f14abb6b3b0ae324ccfb
6a856fd7e8714de86d96bba85bc48cd8828fa319
/calendar_caldav/__openerp__.py
1092f60de3c2ad086942fa3ddb56c930e05a3e0a
[]
no_license
gfcapalbo/odoo-calendar
5ad35bfaa649e094c7159fa6fbce36ab5d6a4105
dd7d1972f62db60f8d8ed620e2137838dd746720
refs/heads/master
2022-04-23T01:59:48.000726
2019-09-30T13:48:49
2019-09-30T13:48:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,693
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution, third party addon # Copyright (C) 2004-2016 Vertel AB (<http://vertel.se>). # # This program is free software: you can redistribute it and/or modify # it under...
[ "anders.wallenquist@vertel.se" ]
anders.wallenquist@vertel.se
87dc142a9d447e24e68ae05514e8a4185a6b313f
596c229c82d6c4a3edab0bc6f95175767019e431
/xtk.py
50d4b1305e2b000e1a0baf04247b51165893e2f0
[]
no_license
Carl4/xtk-ipython
412209f14b370cb8a56aea39b86706d022a3cfc9
9d00c018c6de1a50899d178f272a877406801a86
refs/heads/master
2020-12-24T14:18:25.062025
2012-08-09T20:21:13
2012-08-09T20:21:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,973
py
"""Display classes for the XTK JavaScript library. The XTK JavaScript library uses WebGL to render 3D visualizations. It can generate those visualizations based a range of standard 3D data files types, including .vtk and .stl. This module makes it possible to render these visualizations in the IPython Notebook. A si...
[ "Fernando.Perez@berkeley.edu" ]
Fernando.Perez@berkeley.edu
7ec4d7758529a0aba4601c41c3d5cac1f7fa8ea6
ae8e083cc3f7cf50449633c1d18cd3ffd184ba78
/peloton/lib/pelotonApi.py
31ffe58ca6dc6166b9aa843ace930e1de2a9c751
[]
no_license
jrodens/Halogen_Reporting
8577e0817555b4c48d9cf27bdd080599def37275
48ce2891c96cb6aacb50b3f28a4f63834a0147ac
refs/heads/master
2021-06-19T07:33:50.376807
2021-06-17T18:30:27
2021-06-17T18:30:27
221,496,157
1
0
null
null
null
null
UTF-8
Python
false
false
3,383
py
import requests, json import logging import sys from . import util class PelotonApi: """Main Peloton Api Class""" def __init__(self, user_email, user_password): self.logger = logging.getLogger('peloton-to-garmin.PelotonApi') assert user_email is not None and user_email != "", "Please...
[ "noreply@github.com" ]
jrodens.noreply@github.com
d06273f05e1c19cf6ad1276aeab10b4dfc6df013
51ff94526b5f96211ff2480fd9516facbf9ba48f
/decoupled_dj/settings/production.py
09a7f53228673cf937a78e0273f259f68bfd7276
[ "MIT" ]
permissive
leohakim/decoupled_django
59eecec59b1ac050748d3c0cd994d63ee50359b2
1271ab5ab796211b9dea4bad21e6ad0bf026ff07
refs/heads/main
2023-07-25T04:04:49.821417
2021-09-12T17:53:39
2021-09-12T17:53:39
392,573,892
0
0
MIT
2021-09-12T17:53:40
2021-08-04T06:21:17
JavaScript
UTF-8
Python
false
false
482
py
from .base import * # noqa import os SECURE_SSL_REDIRECT = True ALLOWED_HOSTS = env.list("ALLOWED_HOSTS") STATIC_ROOT = env("STATIC_ROOT") CSRF_COOKIE_SECURE = True SESSION_COOKIE_SECURE = True CORS_ALLOWED_ORIGINS = env.list( "CORS_ALLOWED_ORIGINS", default=[] ) # Disable Browsable DRF API REST_FRAMEWORK =...
[ "leohakim@gmail.com" ]
leohakim@gmail.com
a8a8a56438186a798ca35121e14dbbdb0e69eee3
3bcc247a2bc1e0720f0344c96f17aa50d4bcdf2d
/第二阶段笔记/pythonweb/项目/day02/client.py
dc47accf85daea800f2b3a1201207ff8f61e0d79
[]
no_license
qianpeng-shen/Study_notes
6f77f21a53266476c3c81c9cf4762b2efbf821fa
28fb9a1434899efc2d817ae47e94c31e40723d9c
refs/heads/master
2021-08-16T19:12:57.926127
2021-07-06T03:22:05
2021-07-06T03:22:05
181,856,924
0
0
null
null
null
null
UTF-8
Python
false
false
1,969
py
from socket import * import sys #客户端:图形界面打印 提出请求 接受反馈 反馈展示 class Thtpclient(object): def __init__(self,s): self.s=s def do_loging(self,data): self.s.send(data.encode()) while True: a=input("请输入用户名") self.s.send(a.encode()) b=input("请输入密码") ...
[ "shenqianpeng@chengfayun.com" ]
shenqianpeng@chengfayun.com
9d4c3e38e13d47bacccd79351bcb1bc247d1ca48
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_185/ch27_2019_04_03_19_33_50_998384.py
6646db477c839919b1968fb60cf16c03efa53827
[]
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
185
py
número_cigarros = int(input("Quantos cigarros você fuma por dia? ")) anos_fumando = int(input("Quantos anos você fuma? ")) tempo_perdido = número_cigarros * 10 print(tempo_perdido)
[ "you@example.com" ]
you@example.com
826877b4ba4da3d0add67615d4aebf46c9a6e11b
2ad52a65c45051f26fe26631a31f80279522ddb7
/src/PointCloudOps/src/scripts/pc_subs.py
598cb5d99c493c75f85d9be61667544260470e12
[]
no_license
aryamansriram/Movel_Nav
a64c32528b7ce0a5a19127ba3a9379dca0201356
0e5e64232a01771999d34694f3bf6840f0c1e3ee
refs/heads/master
2023-01-03T20:35:22.041816
2020-10-21T13:37:11
2020-10-21T13:37:11
305,279,271
0
0
null
null
null
null
UTF-8
Python
false
false
2,721
py
#!/usr/bin/env python import rospy from sensor_msgs.msg import PointCloud2 from sensor_msgs import point_cloud2 from visualization_msgs.msg import Marker from geometry_msgs.msg import Point from std_msgs.msg import ColorRGBA,String import numpy as np import random def cluster(arr,iterations,n_clusters=2): """ ...
[ "aryaman.sriram@gmail.com" ]
aryaman.sriram@gmail.com
3cb10ad3a6af182a5ff9913827a1e36d8dd95b2c
ac879dd916f2d5282e4cf092325791b90b4d32d4
/recipes/forms.py
fe825561b043b263a3d8ce77ce6e1aee671d77d8
[]
no_license
GBrachetta/recipes
2d04ff223663983d2e30ffb8300cc0e0d9a7955e
018cc34292f5f4c3441c99cc9d8ab4de0ce8cae7
refs/heads/master
2023-01-21T13:14:54.572067
2020-12-01T23:06:26
2020-12-01T23:06:26
314,708,946
0
0
null
null
null
null
UTF-8
Python
false
false
822
py
from django import forms # from .widgets import CustomClearableFileInput from .models import Recipe, Category from .widgets import CustomClearableFileInput class RecipeForm(forms.ModelForm): """Recipe form""" class Meta: model = Recipe fields = ( "category", "name", ...
[ "brachetta@me.com" ]
brachetta@me.com
4e9493f5fb751d5f49549eadfda4c732a0177b21
043baf7f2cd8e40150bbd4c178879a5dd340348d
/children/forms.py
be8a8841d2651142291d5cacaeba886565a02057
[]
no_license
tjguk/ironcage
1d6d70445b1da9642e1c70c72832c2738f9a942e
914b8e60819be7b449ecc77933df13f8b100adb0
refs/heads/master
2021-05-06T10:20:35.486184
2017-11-20T16:34:17
2017-11-20T16:34:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
from django import forms from .models import Order class OrderForm(forms.ModelForm): class Meta: model = Order fields = [ 'adult_name', 'adult_email_addr', 'adult_phone_number', 'accessibility_reqs', 'dietary_reqs', ] class Tic...
[ "peter.inglesby@gmail.com" ]
peter.inglesby@gmail.com
cba5da974162d165da60ce37bf03defd5dc4ac89
1b95c01768f769522b7b7f855a0399fa20a11912
/yatpd/train/simple_train.py
5def073456d8e3ee625ac3fe74c6bc4dac970688
[ "MIT" ]
permissive
eriche2016/yatpd
36b350abcae0900063370aed13cd82d16236be22
d5e103b61a745484872c0168ddd9c7c9e9cea391
refs/heads/master
2021-01-17T12:06:43.152458
2015-06-13T08:16:26
2015-06-13T08:16:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,083
py
# -*- coding: utf-8 -*- import cv2 import numpy as np from ..utils import timer from ..utils import img_trans from ..utils import hog2hognmf from sklearn import svm from sklearn.ensemble import AdaBoostClassifier @timer def simple_train(img_data_list, channel_type, feature_type, classifier): ''' Use HOG/HOG-NMF ...
[ "brickgao@gmail.com" ]
brickgao@gmail.com
93c03d96e326c2691b8bb363e4d89b20b4c7e926
5442daf4ce09928d6bdd728064ed94be28af96b8
/tests/test_crispy_utils.py
7e09f38bd0269ad22bd134a29dde05c3e812654c
[ "MIT" ]
permissive
moshthepitt/django-vega-admin
dc00ffd070207aaed400d3deb9bb503b611f6ac6
865774e51b3a2c2df81fec1f212acc3bdcea9eaa
refs/heads/master
2021-07-10T10:49:48.413006
2020-06-26T11:29:01
2020-06-26T11:29:01
157,973,263
4
0
MIT
2020-06-26T11:27:00
2018-11-17T10:20:04
Python
UTF-8
Python
false
false
1,626
py
"""module for crispy_utils tests.""" from django.conf import settings from django.template import Context, Template from django.test import TestCase, override_settings from vega_admin.crispy_utils import get_form_actions, get_form_helper_class, get_layout from tests.artist_app.forms import PlainArtistForm @override...
[ "kjayanoris@gmail.com" ]
kjayanoris@gmail.com
6402bd53a3fdf59432d1860e917426ed25cc5995
773b22ef1658bbc165d910a65a40327eb4c52c4a
/api/repository/clean.py
29a10a979a2c562880d1d6223f7bccb9d368057c
[]
no_license
AneresArsenal/feedback-main
e6d4cd98150366f353f42aa09b8f5d4751def6cb
88bd2ba62d1c1fd6bff659832d216fca5db50740
refs/heads/master
2022-12-24T08:13:43.544028
2020-09-24T20:37:44
2020-09-24T20:37:44
300,140,625
0
0
null
2020-10-01T04:21:27
2020-10-01T04:21:26
null
UTF-8
Python
false
false
372
py
from sqlalchemy_api_handler import logger from utils.db import db def clean(): logger.info('clean all the database...') for table in reversed(db.metadata.sorted_tables): print("Clearing table {table_name}...".format(table_name=table)) db.session.execute(table.delete()) db.session.commit(...
[ "lawanledoux@gmail.com" ]
lawanledoux@gmail.com
a91fb57384638740d71ac032b7f29a78e739f4cf
8d02b867eaa5d7aedb80ae31cec5dfe7b0201d1f
/Ch_03 - Computing with Numbers/slope_finder.py
a46f0535cd980bd113bc1558a5c79d5585028c4a
[]
no_license
capncrockett/beedle_book
df17f632990edf4dfae82ccedb5f8d2d07385c00
d65315ddff20fb0ef666c610dbe4634dff0a621a
refs/heads/main
2023-07-23T08:33:17.275029
2021-09-01T02:47:08
2021-09-01T02:47:08
401,894,762
0
0
null
null
null
null
UTF-8
Python
false
false
914
py
# slope_finder # A program to find the slope of two points on a graph. # # def main(): # print("This program calculates the slope of a line.") # # x1, y1 = float(input("Please enter the 1st set of coordinates " # "separated by a comma: ")) # x2, y2 = float(input("Please ent...
[ "root@YOGA-720.localdomain" ]
root@YOGA-720.localdomain
f158728483dad3598e7d227f6daed5a12266b1c5
494a0ba52d3204cb0082f01ae58cfdfc74895ba2
/thisIsCodingTest/Greedy/4.don'tMakeMoney.py
cfd68e9c3d4b5509207a1dfd383cc5ae7aa7e36f
[]
no_license
mhee4321/python_algorithm
52331721c49399af35ffc863dd1d9b8e39cea26a
96dd78390ba735dd754930affb3b72bebbbe5104
refs/heads/master
2023-04-26T09:27:40.760958
2021-05-16T12:12:39
2021-05-16T12:12:39
327,462,537
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
n = int(input()) data = list(map(int, input().split())) data.sort() answer = 1 for x in data: if answer < x: break answer += x print(answer) # 1 1 2 3 9
[ "nannanru@gmail.com" ]
nannanru@gmail.com
520dd38b8e9b3ae3f346b6acbaa3d29266973d10
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/3e15831531564bb59d8c8e12ee82db64.py
295e31e58c33b9db852cf9e133b741699b77845e
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
254
py
def hey(what): what = what.strip() if what.isupper() == True: return "Whoa, chill out!" elif len(what) == 0: return "Fine. Be that way!" elif what.endswith('?'): return "Sure." else: return "Whatever."
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
827745662ba46429c9ffe39f0fc6c46e5945dd07
050e3bfbbc7aba577f3120588233ee908668e37d
/settings.py
398abb5e23fe7d3dc9a2bc83d9e46033ee1925f4
[ "MIT" ]
permissive
datamade/represent-boundaries
9457411d29751e0f373bd62e88cb1d4d09932375
13a789b6d1f4f3a3b076f90c33a12254b8e21433
refs/heads/master
2020-04-08T20:59:24.970558
2015-09-21T20:08:14
2015-09-21T20:08:14
42,890,604
1
0
null
2015-09-21T20:02:31
2015-09-21T20:02:30
null
UTF-8
Python
false
false
419
py
""" To run `django-admin.py syncdb --settings settings --noinput` before testing. """ SECRET_KEY = 'x' DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': 'travis_ci_test', } } INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'dj...
[ "james@slashpoundbang.com" ]
james@slashpoundbang.com
311c3d454e7edc077485e30a033d615ed1fcdb37
b5f05426d811303c0bc2d37a7ebff67cc369f536
/python/ltp/data/dataset/mixed.py
215a149e9e17a5be8c1b01ea716abf05b3e02d37
[]
no_license
chenwangwww/paddlehub
54a310c2b627868aa22e6172497d60ddd2291d24
8583a705af6f82512ea5473f3d8961a798852913
refs/heads/master
2023-03-13T10:17:55.589558
2021-03-01T02:35:43
2021-03-01T02:35:43
293,667,091
1
0
null
null
null
null
UTF-8
Python
false
false
876
py
from typing import List, Dict from . import Dataset class MixedDataset(Dataset, alias='mixed'): def __init__(self, path: List[Dict], file, fields, text='text'): datasets = {} if isinstance(file, str): file = [file] * len(path) for dataset, file in zip(path, file): i...
[ "chenwangwww@sina.com" ]
chenwangwww@sina.com
06e79651a9a40c27557771921e288b416f12f990
72d8b5139f0ed9ce273e44004032457e367d4336
/capchat_solver/venv/local/lib/python2.7/site-packages/ipywidgets/widgets/widget_box.py
8814201e077182ddae3d115a4a98dee9d84bd4f1
[ "MIT" ]
permissive
bngabonziza/CaptchaGAN
98d7bc8c555f18c8ad13bd8eb340ad0b3c5fb900
228e93a5f6a7cee240f82c60950de121d64451c2
refs/heads/main
2023-02-02T18:49:14.299220
2020-12-22T07:07:56
2020-12-22T07:07:56
369,036,980
1
0
MIT
2021-05-20T00:39:38
2021-05-20T00:39:38
null
UTF-8
Python
false
false
1,984
py
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. """Box class. Represents a container that can be used to group other widgets. """ from .widget import register, widget_serialization from .domwidget import DOMWidget from .widget_core import CoreWidget from .widget_l...
[ "huajing_zhao@berkeley.edu" ]
huajing_zhao@berkeley.edu
1b4e022dff8eea45419057adda0defc9e6f6d3cc
792588db469538c1f93efd2c26f0819d6e96aff5
/comma-delimited-handlers/handlers_new/belgium.py
e423b3eca75d9ab4f34984e1bc300a20be4cde1b
[]
no_license
fillingthemoon/go-cart-misc
855696a3895ba5754a11ed0407069b6e35ee27e0
714513acfe2f5ad08442603443213c97f6bdae22
refs/heads/main
2023-08-21T23:08:48.686377
2021-10-05T11:08:42
2021-10-05T11:08:42
373,039,326
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
import settings import handlers.base_handler import csv class CartogramHandler(handlers.base_handler.BaseCartogramHandler): def get_name(self): return "Belgium" def get_gen_file(self): return "{}/bel_processedmap.json".format(settings.CARTOGRAM_DATA_DIR) def validate_values(self, val...
[ "phil.hsy@outlook.com" ]
phil.hsy@outlook.com
cb421fd6828fa29ddee8d01e8968e522c0f4ba44
95040d09957e612ed0701c93aec91988aa901ef3
/mail/migrations/0008_partnerschool.py
8ef59d173fdd351b06f88a26abd1cf042c1ee9d4
[]
permissive
mitodl/micromasters
12160b1bd3654e58c4b35df11688cec486166a71
d6564caca0b7bbfd31e67a751564107fd17d6eb0
refs/heads/master
2023-06-27T22:31:29.388574
2023-06-12T18:37:46
2023-06-12T18:37:46
52,919,185
35
21
BSD-3-Clause
2023-09-13T18:17:10
2016-03-01T23:53:17
Python
UTF-8
Python
false
false
572
py
# Generated by Django 2.1.2 on 2019-03-13 20:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mail', '0007_sentautomaticemail_status'), ] operations = [ migrations.CreateModel( name='PartnerSchool', fields=[ ...
[ "noreply@github.com" ]
mitodl.noreply@github.com
047c8570dbd7a9979adb3f4a999019c4595d2716
bd6a48ed22f777272459a62fe596c95be23c45ea
/actions/general_conversations.py
ffe5616d009354a866a431e6a7744f704f7dbaf1
[ "MIT" ]
permissive
bhaveshAn/Lucy
75527c7c5a3202737e2b9aad2cc41de2ac3b2c01
9ea97184c725a10a041af64cad0ef4b533be42ad
refs/heads/nextgen
2022-12-15T01:40:05.980712
2018-10-09T10:36:38
2018-10-09T10:50:39
105,390,713
3
0
MIT
2022-12-08T02:56:54
2017-09-30T18:17:46
JavaScript
UTF-8
Python
false
false
1,254
py
import random def who_are_you(text): messages = ['I am Lucy , your own personal assistant.', 'Lucy, didnt I tell you before?', 'You asked that so many times! I am Lucy'] return (random.choice(messages)) def toss_coin(text): outcomes = ['heads', 'tails'] return ('I jus...
[ "bhaveshanand7@gmail.com" ]
bhaveshanand7@gmail.com
acfc0da063ac7021901b3a177fe6594803dca92a
9a9e739dcc559476ba796510182374ad460f2f8b
/PA2/PA2 ANSWERS 2015/10/Asitha/pa2-10-2015.py
0ca5112ad2669202668f7987b7e00f616fa5b28a
[]
no_license
Divisekara/Python-Codes-First-sem
542e8c0d4a62b0f66c598ff68a5c1c37c20e484d
e4ca28f07ecf96181af3c528d74377ab02d83353
refs/heads/master
2022-11-28T01:12:51.283260
2020-08-01T08:55:53
2020-08-01T08:55:53
284,220,850
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
def getText(): try: fo=open("FileIn.txt","r") L=fo.read().split() fo.close() except IOError: print "File not found" pass else: if len(L)<1000: for i in L: if len(i)<20 and i.isalpha()==True: continue ...
[ "9asitha7@gmail.com" ]
9asitha7@gmail.com
0c668919b3e9661f7ddb288bd2e56acec04ce962
d6168650746aca20909e7b5452a768151271eb52
/cmdb/utils.py
5c4d6abd5c1ef0965b28e111b0518942ec2c718e
[]
no_license
xiaozhiqi2016/cmdb_project
296f2346aa97c89be2e0344fe6f4fc265b62f6a4
0b960908a21b9f4f1f5b53c8d05fc4694fea229c
refs/heads/master
2021-01-12T16:15:59.068570
2016-10-26T04:10:30
2016-10-26T04:10:30
71,965,372
0
0
null
null
null
null
UTF-8
Python
false
false
2,182
py
#_*_coding:utf-8_*_ import time,hashlib,json from cmdb import models from django.shortcuts import render,HttpResponse from cmdb_project import settings from django.core.exceptions import ObjectDoesNotExist def json_date_handler(obj): if hasattr(obj, 'isoformat'): return obj.strftime("%Y-%m-%d") def jso...
[ "xiaozhiqi2015@live.com" ]
xiaozhiqi2015@live.com
60385688c1813b80672e133d1f7208c42b0af423
3aab36e615166507e8970aaeac223a4526abdef1
/crawl_cazipcode/db.py
64efb2bb4cfcedbf0f5f44bcea36819ed8e745ea
[]
no_license
MacHu-GWU/crawl_cazipcode-project
b783f5e2f5e72d0feb3c98e07951d3bbd38ef772
5417a3fba147249d26dd1891845742198797e162
refs/heads/master
2020-12-02T06:24:20.216975
2017-07-13T19:14:48
2017-07-13T19:14:48
96,827,670
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import pymongo client = pymongo.MongoClient() db = client.get_database("cazipcode") c_province = db.get_collection("province") c_city = db.get_collection("city") c_postalcode = db.get_collection("postalcode")
[ "husanhe@gmail.com" ]
husanhe@gmail.com
b4c06335dc66816ec8e9a7a7159927f1d0f7588c
bed77414283c5b51b0263103ec5055fa70e7ee3a
/scripts/ldifdiff
a047b48af9eb030e16c7521a2d43b6813fb32531
[ "Apache-2.0" ]
permissive
UniversitaDellaCalabria/IdM
a24535156d8ee1f416aec0c0844fbc3e39e08280
0c80bc1a192e8f3075c941ca2d89773bca25e892
refs/heads/master
2020-12-20T09:09:12.320470
2020-07-23T03:43:48
2020-07-23T03:43:48
236,024,963
2
0
null
null
null
null
UTF-8
Python
false
false
3,889
#! /bin/env python3 import base64 flag_binary=0 class EOFException(Exception): pass def read_line(file): while True: line = file.readline() if not line: raise EOFException if line[0]!='#': return line.rstrip('\n') def parse_line(line): if line[0]==' ': ...
[ "giuseppe.demarco@unical.it" ]
giuseppe.demarco@unical.it
f1d469dcacbfece7c0cd49d613c40d0e35f4714c
06bc4f76ba6099277d408ddc16edd95fabcd95d0
/ext/sam/ext/call_py_fort/src/callpy.py
7135234d212f60abffac2534e8544dc702db0f6c
[ "Apache-2.0", "MIT" ]
permissive
kbren/uwnet
31d4267b23012cda61646b94aa8a9e283017f83b
aac01e243c19686b10c214b1c56b0bb7b7e06a07
refs/heads/master
2020-04-06T20:31:25.849132
2018-11-14T22:02:52
2018-11-14T22:05:01
157,771,236
0
0
MIT
2018-11-15T20:52:46
2018-11-15T20:52:45
null
UTF-8
Python
false
false
2,176
py
import importlib import numpy as np import logging logging.basicConfig(level=logging.INFO) # Global state array STATE = {} # Create the dictionary mapping ctypes to np dtypes. ctype2dtype = {} # Integer types for prefix in ('int', 'uint'): for log_bytes in range(4): ctype = '%s%d_t' % (prefix, 8 * (2**...
[ "nbren12@gmail.com" ]
nbren12@gmail.com
4bee1decea943573516cb9ba3b0b3128f26467f2
a8d86cad3f3cc6a977012d007d724bbaf02542f7
/catalog/dump_test_cases_failed.py
2d81f9721782f9ea6edef284a93314991bc81f52
[]
no_license
bopopescu/bigrobot
f8d971183119a1d59f21eb2fc08bbec9ee1d522b
24dad9fb0044df5a473ce4244932431b03b75695
refs/heads/master
2022-11-20T04:55:58.470402
2015-03-31T18:14:39
2015-03-31T18:14:39
282,015,194
0
0
null
2020-07-23T17:29:53
2020-07-23T17:29:52
null
UTF-8
Python
false
false
3,262
py
#!/usr/bin/env python import os import sys import argparse import pymongo # Determine BigRobot path(s) based on this executable (which resides in # the bin/ directory. bigrobot_path = os.path.dirname(__file__) + '/..' exscript_path = bigrobot_path + '/vendors/exscript/src' sys.path.insert(0, bigrobot_path) sys.path....
[ "vui.le@bigswitch.com" ]
vui.le@bigswitch.com
777e70d291140c0a3f72e34ff3cc9fd482780f3b
68cbd4ff1eb57f531809ccc2c0ac63e090cb8e17
/workspaceclient/tests/common/test_resource.py
397682fc72354f4fd2ca24b012d2c6dea4bb0598
[ "Apache-2.0" ]
permissive
I201821180/osc_workspace
f89c0665be22cca89dac70bb537f0e3cdd636334
ced0c58f724aa04137132da0116e866f320978ec
refs/heads/master
2020-06-07T05:28:41.035721
2017-04-17T09:51:14
2017-04-17T09:51:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,705
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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...
[ "iampurse@vip.qq.com" ]
iampurse@vip.qq.com
52013e904db26d2c534e570b6278d0e7b32e6bae
09301c71638abf45230192e62503f79a52e0bd80
/addons_ned/ned_kcs/stock_contract_allocation.py
36c3b6ec942a17b17e7881af16d5ccce438e5ed3
[]
no_license
westlyou/NEDCOFFEE
24ef8c46f74a129059622f126401366497ba72a6
4079ab7312428c0eb12015e543605eac0bd3976f
refs/heads/master
2020-05-27T06:01:15.188827
2017-11-14T15:35:22
2017-11-14T15:35:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
from openerp import api, fields, models, _ import openerp.addons.decimal_precision as dp from openerp.osv import expression from datetime import datetime, timedelta from openerp.tools import float_is_zero, float_compare, DEFAULT_SERVER_DATETIME_FORMAT from openerp.tools import float_compare, float_round from openerp.t...
[ "son.huynh@nedcoffee.vn" ]
son.huynh@nedcoffee.vn
dc82df34593b15296aec83294aabc1d96ea8634e
2e9e994e17456ed06970dccb55c18dc0cad34756
/atcoder/abc/114/A.py
58af0ab22a112562c6977959978003572bb5a9ea
[]
no_license
ksomemo/Competitive-programming
a74e86b5e790c6e68e9642ea9e5332440cb264fc
2a12f7de520d9010aea1cd9d61b56df4a3555435
refs/heads/master
2020-12-02T06:46:13.666936
2019-05-27T04:08:01
2019-05-27T04:08:01
96,894,691
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
def main(): X = int(input()) if X in (3, 5, 7): print("YES") else: print("NO") if __name__ == '__main__': main()
[ "kntsmy@hotmail.co.jp" ]
kntsmy@hotmail.co.jp
6d9ee7671285af8a0f8f4f60aba636a3f9d844d7
8d589a41f7bf2ad7a0445bb0405970bb15bb29c4
/testing/tests/001-main/001-empty/003-criticctl/001-adduser-deluser.py
4133b77269381bfc38b90d6d1ee39aa3f4604e58
[ "MIT", "Apache-2.0" ]
permissive
ryfow/critic
19d86a8033bdb92bca4787f1fc3396c85300913c
1803667f73ff736a606a27bb0eb3e527ae1367e9
refs/heads/master
2021-01-17T11:40:37.224389
2013-06-28T11:11:07
2013-07-02T21:01:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,730
py
# Scenario: Try to add a user 'alice' (already exists). try: instance.execute( ["sudo", "criticctl", "adduser", "--name", "alice", "--email", "alice@example.org", "--fullname", "'Alice von Testing'", "--password", "testing"]) except testing.virtualbox.GuestCommandError as...
[ "jl@opera.com" ]
jl@opera.com
2a75d352afc15ce79df646ef5a6f22801eb2e8d7
51cd18da63555c7dc6086cf33c70318443920826
/authentication/models.py
54c10dc0a492bcd9d33dd5a2e83db4c68211da13
[]
no_license
PHONGLEX/todosite
613861305cc586a568d909e1a56e8b3788c7e0e2
d0ab48e0efc4fd67b45b779d2ea9a70537b80def
refs/heads/main
2023-04-30T10:13:36.674114
2021-05-23T01:43:01
2021-05-23T01:43:01
369,522,681
0
0
null
2021-05-23T01:47:46
2021-05-21T12:07:16
Python
UTF-8
Python
false
false
219
py
from django.db import models from django.contrib.auth.models import AbstractUser class User(AbstractUser): is_email_verified = models.BooleanField(default=False) def __str__(self): return self.email
[ "fonglex@gmail.com" ]
fonglex@gmail.com
986ae51a0ebd37cde47abb1c78ce6cd3c11d6e02
95efc2300bd2936eb9b4ca8f9cda55764047f094
/django1/src/bookmark/views.py
d67cd83360a7837595c2524384a53e3602e4f67f
[]
no_license
gittaek/jeong
d207d6e41398803475aff82a49bea01e21a86901
20808cbb97daff79a4c0b4a017106519f99d919f
refs/heads/master
2020-04-21T23:11:17.202531
2019-02-10T03:20:57
2019-02-10T03:20:57
169,938,169
0
0
null
null
null
null
UTF-8
Python
false
false
1,272
py
from django.shortcuts import render from .models import Bookmark def index(request): return render(request, 'bookmark/index.html', {'a':"hello", 'b':[1,2,3,4,5]}) def booklist(request): #모델클래스.objects.get(): 데이터베이스에 해당 모델클래스로 저장된 객체중 특정조건을 만족하는 객체 한개를 추출하는 함수 #모델클래스.objects.all(): 데이터베이스에 해당 모델클래스로 ...
[ "user@DESKTOP-37GULAI" ]
user@DESKTOP-37GULAI
d01340261c9c5db96d89a3616408a441baab8061
929a816fc299959d0f8eb0dd51d064be2abd6b78
/LintCode/ladder 12 BFS/1179 · Friend Circles/solution.py
43ac183b2ae8a89b8fcf334d3270182119a84b20
[ "MIT" ]
permissive
vincent507cpu/Comprehensive-Algorithm-Solution
27940da7bc0343921930a2eafbd649da93a5395d
04e01e49622457f09af2e1133954f043c0c92cb9
refs/heads/master
2023-07-20T07:12:15.590313
2021-08-23T23:42:17
2021-08-23T23:42:17
258,644,691
4
0
null
null
null
null
UTF-8
Python
false
false
1,040
py
class Solution: """ @param M: a matrix @return: the total number of friend circles among all the students """ def findCircleNum(self, M): # Write your code here n = len(M) # 人数 res = 0 # 答案 visited = [False for _ in range(n)] # 标记是否访问过 for i in range(...
[ "vincent507cpu@gmail.com" ]
vincent507cpu@gmail.com
da30a2b76a19fba4fa60611e04a3e380945acad6
0ddd01f6ae2d6ee489cd0f6e6a39c32b6e605b26
/tests/little_test.py
91d9d6d977964830220c3f176f75fa2d7d54afe5
[]
no_license
dhernandd/supervind
ecc965495904c79cee9c19b58265a7642b7c457b
30f9fad846fe30a8c8bb69b813ad824fa214aad7
refs/heads/master
2021-05-03T09:11:24.430166
2018-10-04T06:37:26
2018-10-04T06:37:26
120,571,177
2
5
null
2018-03-17T20:29:16
2018-02-07T06:08:39
Python
UTF-8
Python
false
false
3,179
py
import tensorflow as tf import numpy as np import sys sys.path.append('../code') from LatEvModels import * # import seaborn as sns # import matplotlib.pyplot as plt # # data = np.random.randn(20,20) # sns.heatmap(data) # plt.show() # import os # os.system('say "There is a beer in your fridge."') # x = tf.placeho...
[ "dh2832@columbia.edu" ]
dh2832@columbia.edu
0e57403d465768ce696293f6d04c4118ca31f2dd
4135192648199d87a6b38c116db651594e64fa35
/tests/test_configuration.py
d990a1e6609ebef2a65863d6a36fc1a9599898d4
[ "Apache-2.0" ]
permissive
yuzhougit/taurus
307458e97ef7ae9707ee02117545d721c419e720
50a3fa5043141d96cc63408a42f3cf0e37cbe0a3
refs/heads/master
2020-12-11T05:24:07.241315
2015-06-24T01:59:25
2015-06-24T01:59:25
37,914,679
0
0
null
2015-06-23T11:21:18
2015-06-23T11:21:18
null
UTF-8
Python
false
false
2,753
py
import logging import six import tempfile from bzt.engine import Configuration from bzt.utils import BetterDict from tests import BZTestCase, __dir__ class TestConfiguration(BZTestCase): def test_load(self): obj = Configuration() configs = [ __dir__() + "/../bzt/10-base.json", ...
[ "apc4@ya.ru" ]
apc4@ya.ru
a7c5f24fa36d7e83692dcda87fd00da4ff1ddd23
23f4584630c4b13fa54ebca8b1345a020605db10
/test/dataset/test_query.py
23d2fe8fc6109dd8c89e84054a96f503c2523d66
[ "MIT" ]
permissive
chenxofhit/singlet
2aebe1d2a3700d498b1772301611dcebd0ddb966
c9264cf3451f816f9a256d4aa0b32c8b674638ae
refs/heads/master
2020-06-04T08:45:47.050305
2019-05-01T20:46:02
2019-05-01T20:46:02
191,950,542
2
0
null
2019-06-14T13:45:50
2019-06-14T13:45:50
null
UTF-8
Python
false
false
2,198
py
#!/usr/bin/env python # vim: fdm=indent ''' author: Fabio Zanini date: 07/08/17 content: Test Dataset class. ''' import pytest @pytest.fixture(scope="module") def ds(): from singlet.dataset import Dataset return Dataset( samplesheet='example_sheet_tsv', counts_table='examp...
[ "fabio.zanini@fastmail.fm" ]
fabio.zanini@fastmail.fm
bdad55440d4677d72cd568533e733a8f3f5ef0ab
bb983b38f9be7b6fd4ab1a651484db37c1aeff39
/1030/python_complex.py
a40445ad017c432fa77d44b282863851697f01cc
[]
no_license
nakanishi-akitaka/python2018_backup
c214df78372cca993d69f8001010ec2f6dcaf1be
45766d3c3777de2a91b3e2cf50c6bfedca8627da
refs/heads/master
2023-02-18T08:04:28.625532
2022-06-07T01:02:53
2022-06-07T01:02:53
201,399,236
5
30
null
2023-02-10T21:06:51
2019-08-09T05:48:22
Jupyter Notebook
UTF-8
Python
false
false
2,085
py
# -*- coding: utf-8 -*- """ https://note.nkmk.me/python-complex/ Created on Tue Oct 30 12:04:10 2018 @author: Akitaka """ c = 3 + 4j print(c) print(type(c)) # (3+4j) # <class 'complex'> # c = 3 + j # NameError: name 'j' is not defined c = 3 + 1j print(c) # (3+1j) c = 3j print(c) # 3j ...
[ "noreply@github.com" ]
nakanishi-akitaka.noreply@github.com
c3875ec4422c869b5e828ce009f3eed671c34811
30d360f965253167c99f9b4cd41001491aed08af
/Platinum_code/iolib.py
d0c23dd5894713465efb8d4bdd4e61b483d6f033
[]
no_license
petervanya/PhDcode
d2d9f7170f201d6175fec9c3d4094617a5427fb5
891e6812a2699025d26b901c95d0c46a706b0c96
refs/heads/master
2020-05-22T06:43:47.293134
2018-01-29T12:59:42
2018-01-29T12:59:42
64,495,043
1
0
null
null
null
null
UTF-8
Python
false
false
3,162
py
#!/usr/bin/env python """ Collection of often used functions for * input/output * rotating, translating and printing data NOW MOSTLY OBSOLETE, ONLY *_table FUNCTIONS USED pv278@cam.ac.uk, 11/05/15 """ import numpy as np from numpy.matlib import repmat from math import sin, cos def save_xyz(coords, atom_names, filena...
[ "peter.vanya@gmail.com" ]
peter.vanya@gmail.com
b113d75eb834a1baa075683489fe5ee46e7566d0
83df6e768cb3ba0dfab44d6ea8f766d9ace6191a
/git-pull-request
d0da808b388a2e3f7dca9df7332bb85cd7bfdf16
[]
no_license
sumansai14/git-pull-request
8bf77a813d038f54d938aa9d80fce6be311debbf
2c79827f4976f131a6b67d846be01bdb79f1835e
refs/heads/master
2021-01-22T11:10:51.149158
2013-09-21T08:03:26
2013-09-21T08:03:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,485
#! /usr/bin/python import sys import os import getpass import pycurl from io import BytesIO import simplejson from pygit2 import Repository if __name__ == '__main__': try: repository = Repository(os.getcwd()) except KeyError: raise SystemExit("This is not a valid git repository") response_...
[ "suman.sai14@gmail.com" ]
suman.sai14@gmail.com
0004d9a94c55fb8335acb6a83e0924a5285ca505
04b1803adb6653ecb7cb827c4f4aa616afacf629
/third_party/blink/renderer/build/scripts/minimize_css.py
b5d6630df41e958b062a04c414d5ec6f4ebd35d0
[ "BSD-3-Clause", "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
Python
false
false
4,038
py
#!/usr/bin/env python # Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import functools import os.path import re import sys import in_generator class CSSMinimizer(object): INITIAL = 0 MAYBE_COMM...
[ "sunny.nam@samsung.com" ]
sunny.nam@samsung.com
8054f04fd59a5abb4779b2111f0044990155023e
a9c3db07c29a46baf4f88afe555564ed0d8dbf2e
/src/2562-count-ways-to-build-good-strings/count-ways-to-build-good-strings.py
8e882ad478562e9e000a22806859060bf2a03c5d
[]
no_license
HLNN/leetcode
86d2f5b390be9edfceadd55f68d94c78bc8b7644
35010d67341e6038ae4ddffb4beba4a9dba05d2a
refs/heads/master
2023-03-13T16:44:58.901326
2023-03-03T00:01:05
2023-03-03T00:01:05
165,402,662
6
6
null
null
null
null
UTF-8
Python
false
false
1,513
py
# Given the integers zero, one, low, and high, we can construct a string by starting with an empty string, and then at each step perform either of the following: # # # Append the character '0' zero times. # Append the character '1' one times. # # # This can be performed any number of times. # # A good string is a str...
[ "Huangln555@gmail.com" ]
Huangln555@gmail.com
d560fc0d2b8f3321a9e68037057fb55f921903a1
25e989e986522cf91365a6cc51e3c68b3d29351b
/app/http/middleware/AuthenticationMiddleware.py
99adcdc091431d1a5b3a5bbb41bf42513de34bbd
[ "MIT" ]
permissive
josephmancuso/gbaleague-masonite2
ff7a3865927705649deea07f68d89829b2132d31
b3dd5ec3f20c07eaabcc3129b0c50379a946a82b
refs/heads/master
2022-05-06T10:47:21.809432
2019-03-31T22:01:04
2019-03-31T22:01:04
136,680,885
0
1
MIT
2022-03-21T22:16:43
2018-06-09T01:33:01
Python
UTF-8
Python
false
false
575
py
""" Authentication Middleware """ from masonite.request import Request class AuthenticationMiddleware(object): """ Middleware To Check If The User Is Logged In """ def __init__(self, request: Request): """ Inject Any Dependencies From The Service Container """ self.request = request def...
[ "idmann509@gmail.com" ]
idmann509@gmail.com
db0f8afef8d68e3ed565154f785157d870834be8
1342deb03620f60f0e91c9d5b579667c11cb2d6d
/debug/mydict.py
7c7d4035b416fe6a111668ac611d61938b76421f
[]
no_license
ahuer2435/python_study
678501ff90a9fc403105bff7ba96bcf53c8f53e2
8a7cc568efefdc993c5738ffa2100c2e051acdb7
refs/heads/master
2021-01-15T18:00:43.851039
2018-04-04T05:37:50
2018-04-04T05:37:50
99,775,158
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
# -*- coding: utf-8 -*- class Dict(dict): def __init__(self, **kw): super(Dict,self).__init__(**kw) # 返回的是基类 def __getattr__(self,key): try: return self[key] except KeyError: raise AttributeError(r"'Dict' object has no attribute '%s'" % key) def __setattr__(self,key,value): self[key] = va...
[ "18221079843@139.com" ]
18221079843@139.com
a251069222a43562b476d29d369c468287564ab7
60df913818933b6aabd8007405b675d958f5078b
/subscription_join/forms.py
c3a84f41095cb16420dc19aba818ae5447946c9f
[]
no_license
ProsenjitKumar/prosenjit-das
b8d0e9081790d07673753b774550975bca9ad423
b08eb8e91939c234563f1f6a9d7870de2c519599
refs/heads/master
2022-11-28T07:04:01.615997
2019-06-02T20:23:21
2019-06-02T20:23:21
189,855,835
1
0
null
2022-11-22T03:14:52
2019-06-02T14:22:48
HTML
UTF-8
Python
false
false
1,687
py
from crispy_forms.helper import FormHelper from django import forms from django.core.mail import send_mail from crispy_forms.layout import Layout, Div, Submit, Row, Column, Field import re from crispy_forms.layout import Submit from .models import NewsLetterUser, NewsLetter class ContactForm(forms.Form): subject ...
[ "prosenjitearnkumar@gmail.com" ]
prosenjitearnkumar@gmail.com
b448d0f8bc5967e987a3b64d13f17fcca3feb1bd
b8e9dd6fd8f8b691cba5a3af2388467bcf6c90bb
/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/maxlength_validation.pyi
783b51cc9870e0680e3a4fa5efa97a10f27c64c3
[ "Apache-2.0" ]
permissive
FallenRiteMonk/openapi-generator
f8b98940219eecf14dc76dced4b0fbd394522aa3
b6576d11733ecad6fa4a0a616e1a06d502a771b7
refs/heads/master
2023-03-16T05:23:36.501909
2022-09-02T01:46:56
2022-09-02T01:46:56
164,609,299
0
0
Apache-2.0
2019-01-08T09:08:56
2019-01-08T09:08:56
null
UTF-8
Python
false
false
1,846
pyi
# coding: utf-8 """ openapi 3.0.3 sample spec sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 The version of the OpenAPI document: 0.0.1 Generated by: https://openapi-generator.tech """ from datetime import date, datetime # noqa: F401 import deci...
[ "noreply@github.com" ]
FallenRiteMonk.noreply@github.com
73061d115f4cab440666da9fd0537873a719f7b1
eed51de6f1f27979187d4be62a989f74d77a54aa
/py_flask2/run.py
da759db885d22dc60dd35b854fca129a036030cb
[]
no_license
yjw0216/Samsung-MultiCampus-python-edu
2635c0074de6a94975482b57b88f38d98b487784
d8178606305fd9aec54e1b0f9df63a0f012c728c
refs/heads/master
2020-03-22T05:12:23.215529
2018-08-17T02:48:07
2018-08-17T02:48:07
139,549,482
0
0
null
null
null
null
UTF-8
Python
false
false
1,904
py
from flask import Flask , request , url_for , render_template , redirect , jsonify from model.d1_8 import searchSql , selectTeamName , updateTeamInfo ## 내가만든 모듈(DB처리부분) import !! app = Flask(__name__) # 페이지 구성 # 홈페이지의 주소(URL)를 ~/ 로 정의하자 @app.route('/') def home(): return render_template('index.html',title='홈페이지'...
[ "ysw01044@naver.com" ]
ysw01044@naver.com
6e11396cffb0e94913e3102fbb95ce31d9f0fe01
bc60fea66d910fd7ff88e6c0476be0eeaccffe7e
/init_db.py
7cf4902323126ede1ef112539d37a8ab4ce4f13b
[]
no_license
pahaz/django-2016-steps
cd2c0321660f8ae52778e7eaaa2fb3942d535f1c
3daa9404dcbc8a2430d8d139ea8f5a0b763b8e3b
refs/heads/master
2023-08-26T19:47:36.918975
2016-05-27T11:17:42
2016-05-27T11:17:42
58,202,366
0
2
null
2016-05-27T10:01:28
2016-05-06T11:21:49
Python
UTF-8
Python
false
false
255
py
import os import django os.environ.setdefault("DJANGO_SETTINGS_MODULE", "_project_.settings") django.setup() # ----------------------------------- from django.contrib.auth.models import User User.objects.create_superuser('qwer', 'qwe@qwe.qq', 'qwer')
[ "pahaz.blinov@gmail.com" ]
pahaz.blinov@gmail.com
3dcbae388d9f29fb43bb3ae85c4db82dc2cac795
f2befaae3840bafd181cc712108e3b64caf2696f
/app/portal/horizon/openstack_dashboard/test/integration_tests/tests/test_floatingips.py
e13a5caeadcc5089f2265ba1b68db6ff925ac46c
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
F5Networks/f5-adcaas-openstack
17d5c408d421dcfe542002e1f850b2d9f29f1663
02bd8a606215c0fa08b926bac1b092b5e8b278df
refs/heads/master
2023-08-28T12:09:54.972191
2022-08-12T02:03:43
2022-08-12T02:03:43
164,592,273
4
23
Apache-2.0
2022-08-12T02:03:44
2019-01-08T07:40:35
Python
UTF-8
Python
false
false
4,543
py
# Copyright 2015 Hewlett-Packard Development Company, L.P # 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....
[ "a.zong@f5.com" ]
a.zong@f5.com
2561ca0bc23319ecfde72cc5deb53b2ef46300fd
242e68a7c15e6ced652734d1d0e3e88e1074bb39
/climetlab/sphinxext/command_output.py
37361004bc1756958119ea83b8845b710aaaf1bb
[ "Apache-2.0" ]
permissive
mchantry/climetlab
e6edf596882560ad0b23572b24ac9e5cd9325891
8d655b4ac121a69e7244efe109c04d5e110cdf9e
refs/heads/main
2023-07-22T01:16:52.859802
2021-07-22T09:24:00
2021-07-22T09:24:00
379,984,648
0
0
Apache-2.0
2021-06-24T16:16:38
2021-06-24T16:16:38
null
UTF-8
Python
false
false
1,667
py
# (C) Copyright 2020 ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernmenta...
[ "baudouin.raoult@ecmwf.int" ]
baudouin.raoult@ecmwf.int
336afe5cc9ce742780553565f8b39a033fad439e
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/rna-transcription/d4b259d6199f474994ab158d3f6b6d29.py
ec2b433100cc6ed26f816b7f9b0dcb97506c5e4a
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
179
py
#!/usr/bin/env python # -*- coding: utf-8 -*- def to_rna(dna): rna = '' table = {'G':'C','C':'G','T':'A','A':'U'} for i in range(len(dna)): rna += table[dna[i]] return rna
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
7b81eea3972f0d10ecfade6f13ea7d131e0a1565
2602266d33073790ac3f3b1ad3c3038922f6d279
/RL/QL/lx_01.py
94fa0e4000401eec9b2d6e45f3996b2c00b105f1
[]
no_license
cy-2224/AI_first_contact
7f6582a8f4c24acb270858e6cd08874580632bf8
d536b5faa283e7e5f093716a6006fabae943f2e0
refs/heads/master
2022-03-19T20:29:31.487710
2019-11-18T06:00:05
2019-11-18T06:00:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,993
py
import numpy as np import pandas as pd import time np.random.seed(2) # reproducible N_STATES = 10 # the length of the 1 dimensional world ACTIONS = ['left', 'right'] # available actions EPSILON = 0.9 # greedy police ALPHA = 0.1 # learning rate GAMMA = 0.9 # discount factor MAX_EPISODES = 24 # maxim...
[ "116010062@link.cuhk.edu.cn" ]
116010062@link.cuhk.edu.cn
25b15ed23eab61a3811e0a0702bc8a0d35e62589
ca299cec2cd84d8b7c2571fa2fdf7161e66b8fe7
/private_server/guard/CELL-29/Q-42/29-42.py
35f00c836668156e969549d904a2e36a1661dd6e
[]
no_license
benmechen/CodeSet
ca57d4a065ac4fc737749f65cb5aa1011d446a88
f5a4bf627a9a8efc76a65ae58db63a973fedffb7
refs/heads/master
2021-07-16T14:23:36.355491
2019-12-02T13:58:27
2019-12-02T13:58:27
225,385,245
1
0
null
2021-06-22T15:37:57
2019-12-02T13:47:09
JavaScript
UTF-8
Python
false
false
250
py
animals = ["aardvark", "badger", "duck", "emu", "fennec fox"] # Use index() to find "duck" duck_index = animals.index("duck") # Your code here! cobra_index = animals.insert(2, "cobra") # Observe what prints after the insert operation print(animals)
[ "psybm7@nottingham.ac.uk" ]
psybm7@nottingham.ac.uk
f3a2ac6e803fc07512c8936659276e8b2ddcc899
d973df1e60d17b2c4ac6430ec29cce7fd139c3ec
/99-Miscel/AnatomyOfMatplotlib-master/examples/vector_example.py
05c3d530e5b59c169f0954224e4c1c10dbc082fd
[ "MIT", "CC-BY-3.0" ]
permissive
dushyantkhosla/viz4ds
49153414f10bfa0b577fa5e076ef6c697298146a
05a004a390d180d87be2d09873c3f7283c2a2e27
refs/heads/master
2022-06-28T14:21:47.116921
2019-10-22T10:34:16
2019-10-22T10:34:16
133,490,301
0
0
MIT
2022-06-21T21:30:16
2018-05-15T09:08:30
Jupyter Notebook
UTF-8
Python
false
false
1,294
py
import matplotlib.pyplot as plt import numpy as np import example_utils # Generate data n = 256 x = np.linspace(-3, 3, n) y = np.linspace(-3, 3, n) xi, yi = np.meshgrid(x, y) z = (1 - xi / 2 + xi**5 + yi**3) * np.exp(-xi**2 - yi**2) dy, dx = np.gradient(z) mag = np.hypot(dx, dy) fig, axes = example_utils.setup_axes(...
[ "dushyant.khosla@pmi.com" ]
dushyant.khosla@pmi.com
51f411fbfe7199fd08bd422157fa4731afd3e426
54db01a385495a4cd0c4ce1cf5ff5d7ba82d8cc5
/course/migrations/0006_subject_credit_hours.py
ac6f580286364aacf611e11c0ddc01d5ed060c59
[]
no_license
danish703/csapp
eb653988df31570fb3747bb7a0b48df0e16e089e
c268017189f6a05fd77663444fb33eca94e77d6d
refs/heads/master
2022-10-09T09:21:03.225250
2020-06-05T14:16:06
2020-06-05T14:16:06
256,696,530
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
# Generated by Django 3.0.2 on 2020-04-17 04:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('course', '0005_auto_20200417_1014'), ] operations = [ migrations.AddField( model_name='subject', name='credit_hours'...
[ "dipu.danish@outlook.com" ]
dipu.danish@outlook.com
7d2acc3aa2f7970438fcc584fb553426c3b2505e
1ad4b4f46e9e3cafdf8ccb17eb7703905847fda2
/collections/list/assignment1.py
256616778869842786dbaa83b078910d29bf50c2
[]
no_license
febacc103/febacc103
09711cd1d9e4c06bdb1631a72d86fe34e3edd13d
d5ebf3534a9ec2f3634f89c894816b22a7fbaa80
refs/heads/master
2023-03-29T22:25:48.073291
2021-04-20T08:31:44
2021-04-20T08:31:44
359,677,300
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
lst=[3,4,8] lst1=[] for i in lst: sum1=sum(lst) lst1.extend([sum1-i]) #sum+=i print(lst1) lst2=[5,10,20] lst3=[] for i in lst2: sum2=sum(lst2) lst3.extend([sum2-i]) print(lst3)
[ "febajohnjoicyblesson@gmail.com" ]
febajohnjoicyblesson@gmail.com
d906992ff23a0051e0875019d50eb5c2e2a23b94
c1582da0f3c1d762f6c78e613dfced5176bbfc83
/Algorithms/p217_Contains_Duplicate/p217_Contains_Duplicate.py
7759f53d150c0a5f9e369cd6eb03d4e79ab0f625
[]
no_license
lbingbing/leetcode
08a90a4c018210a1f0182b5ef2ab55942d57da48
f6019c6a04f6923e4ec3bb156c9ad80e6545c127
refs/heads/master
2020-05-21T16:30:06.582401
2016-12-15T06:44:49
2016-12-15T06:44:49
65,279,977
0
0
null
2016-08-27T04:19:27
2016-08-09T09:02:55
Python
UTF-8
Python
false
false
178
py
class Solution(object): def containsDuplicate(self, nums): """ :type nums: List[int] :rtype: bool """ return len(set(nums))<len(nums)
[ "lbingbing@users.noreply.github.com" ]
lbingbing@users.noreply.github.com