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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0099d67f95506a2f31cda7626005a332d94f78ee | 2aaa58e7a83c4c8a4a2aa8b4a70df95a1ca10f19 | /s_full1.py | de1275e660df53dc31509a7dc24c722912520572 | [] | no_license | federico0712/elitepro_astm | 84cd8b1c3095f24a1cfded573debcd12894d60eb | 07c2cc8dd3db58b966eeb138484a1fd073e65dde | refs/heads/master | 2022-04-14T16:15:31.370068 | 2020-03-17T03:49:41 | 2020-03-17T03:49:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | #!/usr/bin/python3
import sys
import signal
import datetime
import serial
import logging
'''
This program reads all bytes and writes them to a file in /root/elite folder
first byte is ENQ last one is EOT
This help in capturing everything between ENQ and EOT and learn equipment specific need
'''
output_folder='/root/... | [
"root@debian"
] | root@debian |
28707766a97f29fb0ccf49800aa19a65d89a6697 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_355/ch117_2020_03_30_19_48_40_877571.py | 985e837a3949e7e8f671c81eba218bc0348f2386 | [] | 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 | 152 | py | import math
def snell_descartes (o2, o1, n1, n2 ):
o2 = arcsin(math.sin(o1)*(n1/n2))
y = o2 * 180 / math.pi
return degrees ( arcsin ( o2 ))
| [
"you@example.com"
] | you@example.com |
7e94b07d17aaa223c1697a14ed1951afe126ebe0 | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/Tumblr/Post/CreateLinkPost.py | ac3b9be49dc57291e0f74fc746a2da6b46aca1b7 | [
"MIT",
"Apache-2.0"
] | permissive | lupyuen/RaspberryPiImage | 65cebead6a480c772ed7f0c4d0d4e08572860f08 | 664e8a74b4628d710feab5582ef59b344b9ffddd | refs/heads/master | 2021-01-20T02:12:27.897902 | 2016-11-17T17:32:30 | 2016-11-17T17:32:30 | 42,438,362 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 7,045 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# CreateLinkPost
# Creates a new link post for a specified Tumblr blog.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you m... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
1de081acd200b031145320d70d79be19ae3a8312 | 9510cd7f96e2cd6b8751fab988038228fe0568c7 | /python/0343.Integer Break.py | fb6b957010a895615056dfe72d6838cee56b60b0 | [] | no_license | juechen-zzz/LeetCode | 2df2e7efe2efe22dc1016447761a629a0da65eda | b5926a3d40ca4a9939e1d604887e0ad7e9501f16 | refs/heads/master | 2021-08-11T00:37:18.891256 | 2021-06-13T10:26:31 | 2021-06-13T10:26:31 | 180,496,839 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | """
给定一个正整数 n,将其拆分为至少两个正整数的和,并使这些整数的乘积最大化。 返回你可以获得的最大乘积。
"""
class Solution:
def integerBreak(self, n: int) -> int:
dp = [1] * (n + 1)
for i in range(3, n+1):
for j in range(1, int(i / 2) + 1):
# 会出现极限情况,比如dp[2]=1,不应该拆2的
dp[i] = max(dp[i], max(dp[i-j], i-... | [
"240553516@qq.com"
] | 240553516@qq.com |
1e31bced9e56926fe0f486d8dd135d8d6c560de0 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/app/ext_runtimes/fingerprinting.py | 083b9008e3b6aa13e21c03c748a2c8a5680106dc | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 3,153 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"toork@uw.edu"
] | toork@uw.edu |
1c2c7f77375d17cca4387f409b1116c826cd6c24 | 7f593761058b96792e51023e3b42af740f2006d7 | /pkg/ampcor/dom/Raster.py | 1366bf502713ca054646e88ecfdcc8ecdc06a924 | [
"BSD-2-Clause"
] | permissive | isce-framework/ampcor | 2b3769e579ceaf993c9ea17f836553057a52ad6a | eafadcbe4380a85320d8c7e884ebe4d6d279770e | refs/heads/master | 2020-05-07T16:06:06.364458 | 2019-04-10T22:09:45 | 2019-04-10T22:09:45 | 180,668,210 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis <michael.aivazis@para-sim.com>
# parasim
# (c) 1998-2019 all rights reserved
#
# framework
import ampcor
# declaration
class Raster(ampcor.protocol, family="ampcor.dom.rasters"):
"""
The base class for all pixel based data products
"""
# public data... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
4c698ed3717c85f27f6df1de04780252abdbb4b8 | c0a7d9a057abbd1a065a4149b96777163e596727 | /Placement Prepration/Recursion/lucky_number.py | 286455a2666bc95261ea05ef88d07e5487863118 | [] | no_license | Sameer2898/Data-Structure-And-Algorithims | 6471c2dabfbd2067d2a2c556ddd0b6615235cd4f | 2f251570434ea9c1881de95b4b1a5e368d5b7f46 | refs/heads/main | 2023-02-16T16:18:08.177109 | 2021-01-14T06:33:22 | 2021-01-14T06:33:22 | 329,527,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | def isLucky(n):
global c
if c <= n:
if n % c == 0:
return 0
n = n-n//c
c += 1
return isLucky(n)
else:
return 1
c=2
if __name__ == '__main__':
t = int(input('Enter the number of test cases:- '))
for tcs in range(t):
c=2
n = int(... | [
"xdgsr1234@gmail.com"
] | xdgsr1234@gmail.com |
5780cc90cf158da08e08e1ce41888a4a1a87c818 | a39ecd4dce4b14f5d17416233fa16c76d2d3f165 | /Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/UnitTests/Process_UnitTest.py | 9ea28ebb7b3352eaf881e69ecb187d70d541205f | [
"BSL-1.0",
"Python-2.0",
"OpenSSL",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only"
] | permissive | davidbrownell/Common_Environment_v3 | 8e6bbed15004a38a4c6e6f337d78eb2339484d64 | 2981ad1566e6d3c00fd390a67dbc1277ef40aaba | refs/heads/master | 2022-09-03T19:04:57.270890 | 2022-06-28T01:33:31 | 2022-06-28T01:33:31 | 132,171,665 | 0 | 0 | BSL-1.0 | 2021-08-13T21:19:48 | 2018-05-04T17:47:30 | Python | UTF-8 | Python | false | false | 1,527 | py | # ----------------------------------------------------------------------
# |
# | Process_UnitTest.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2018-08-21 07:38:01
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2018-22.
# | ... | [
"db@DavidBrownell.com"
] | db@DavidBrownell.com |
10aa036fce0bea713f5078ed34e900100942a4dd | 9d733284e31476d85a42e2e2614c7a4cfed5aed1 | /test/test_payment_setup_response_initiation.py | 17f9b8d526229a97464b21c8929c57a54c440858 | [
"MIT"
] | permissive | roksela/openbanking-payment-client | be138ff7403989b8bce7ad7e95e885c676e7ad29 | a17b3ded257e71be1dbf6bde6e206dd2f2abddd8 | refs/heads/master | 2021-04-29T17:17:27.102309 | 2018-02-17T08:07:40 | 2018-02-17T08:07:40 | 121,665,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | # coding: utf-8
"""
Python client for Payment Initiation API
Based on https://github.com/OpenBankingUK/payment-initiation-api-spec
OpenAPI spec version: v1.1.1
Spec: https://www.openbanking.org.uk/read-write-apis/
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __futur... | [
"kris@dataservices.pro"
] | kris@dataservices.pro |
345a712888b96f9f8a07c642769a53db19af8b02 | 4a48593a04284ef997f377abee8db61d6332c322 | /python/matplotlib/imshow_plt.py | f5fb22bf13f8310cc833ec64bc15b398c0e3947a | [
"MIT"
] | permissive | jeremiedecock/snippets | 8feaed5a8d873d67932ef798e16cb6d2c47609f0 | b90a444041c42d176d096fed14852d20d19adaa7 | refs/heads/master | 2023-08-31T04:28:09.302968 | 2023-08-21T07:22:38 | 2023-08-21T07:22:38 | 36,926,494 | 26 | 9 | MIT | 2023-06-06T02:17:44 | 2015-06-05T10:19:09 | Python | UTF-8 | Python | false | false | 1,081 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Display data as an image (via pyplot)
See: http://matplotlib.org/examples/pylab_examples/image_demo.html
See also:
- http://matplotlib.org/examples/color/colormaps_reference.html (the list of all colormaps)
- http://matplotlib.org/users/colormaps.html?highlight=col... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
de4c2a2948208b3b66fa65fdcb3f6e3e5189fced | cc9cf69b1534dc0d9530b4ff485084162a404e34 | /create_date/creat_idcare.py | 8f82e64de6c858a560cdd206f051e34b51942b1d | [] | no_license | NASA2333/study | 99a58b2c9979201e9a4fae0c797391a538de6f45 | ba63bc18f3c788090e43406315497329b00ec0a5 | refs/heads/master | 2021-05-03T22:26:52.541760 | 2018-02-07T02:24:55 | 2018-02-07T02:24:55 | 104,988,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | import random
for i in range(1001):
Birthday =[] #生日
addrs =[str(random.choice(range(110000,999999))).zfill(6)] #地区
order = [str(random.choice(range(0,999))).zfill(3)] #序列
mult = [7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2]
check = [1,0,'X',9,8,7,6,5,4,3,2]
year = str(random.randint(1960,2017))
month =... | [
"422282539@qq.com"
] | 422282539@qq.com |
433b7cebbab4fb45f7bac8264fea88827e505dba | d5581fe82bbce4ae206bbfc8c6251cb19c87a5bf | /leetcode/python/065-validNumber.py | 4d493885d458fa2b0746574e13fecccacdf96b70 | [] | no_license | yi-guo/coding-interview | 23f2a422b69a84d648ba9d74ea1b05e42b8689af | fd22a407f096d7e0c4eefbeb4ed37e07043f185c | refs/heads/master | 2016-09-06T11:15:41.133160 | 2015-03-28T22:30:52 | 2015-03-28T22:30:52 | 28,378,778 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | #!/usr/bin/python
# Validate if a given string is numeric.
# Some examples:
# "0" => true
# " 0.1 " => true
# "abc" => false
# "1 a" => false
# "2e10" => true
# Note: It is intended for the problem statement to be ambiguous.
# You should gather all requirements up front before implementing one.
import sys... | [
"yi.guo@yahoo.com"
] | yi.guo@yahoo.com |
eff3f6c40e851c6068020b6fbbb0f2563e8ce039 | 12967293f285decb1568bd56af38b1df4e5c533d | /.eggs/boto-2.48.0-py2.7.egg/boto/pyami/installers/ubuntu/mysql.py | d844aaf25ce8a16b5337783fbd6f58d6feaf9a88 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | martbhell/git-bigstore | 36cd16276379833fbade252a77c73cf3644aa30f | 960e9ea64d4d5646af3ce411adf46f3236b64d7e | refs/heads/master | 2020-05-16T17:51:52.011171 | 2019-03-12T20:54:42 | 2019-03-12T20:54:42 | 183,206,409 | 0 | 0 | Apache-2.0 | 2019-04-24T10:29:48 | 2019-04-24T10:29:47 | null | UTF-8 | Python | false | false | 4,856 | py | # Copyright (c) 2006-2009 Mitch Garnaat http://garnaat.org/
#
# 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, modi... | [
"dan@lionheartsw.com"
] | dan@lionheartsw.com |
c7d078ea821744e6c63f7379835300785d3e2926 | 1297634c6641ec62c31cf30b8fabe1886aa8d9ea | /products_and_services_client/models/maximum_price.py | dc83ab42d1c9d4be19edaa13186ee8a99e0b5357 | [
"MIT"
] | permissive | pitzer42/opbk-br-quickstart | d77f19743fcc264bed7af28a3d956dbc2d20ac1a | b3f86b2e5f82a6090aaefb563614e174a452383c | refs/heads/main | 2023-03-04T13:06:34.205003 | 2021-02-21T23:41:56 | 2021-02-21T23:41:56 | 336,898,721 | 2 | 0 | MIT | 2021-02-07T22:03:15 | 2021-02-07T21:57:06 | null | UTF-8 | Python | false | false | 4,175 | py | # coding: utf-8
"""
API's OpenData do Open Banking Brasil
As API's descritas neste documento são referentes as API's da fase OpenData do Open Banking Brasil. # noqa: E501
OpenAPI spec version: 1.0.0-rc5.2
Contact: apiteam@swagger.io
Generated by: https://github.com/swagger-api/swagger-codegen.gi... | [
"arthurpitzer@id.uff.br"
] | arthurpitzer@id.uff.br |
a79d3bac4fb73d81f7b0d44129ef3e962424d788 | 79bb7105223895235263fd391906144f9f9645fd | /models/image/cifar10/cifar10_train.py | 84f71d7a8274b757458f397c449a5c59eaea179a | [
"Apache-2.0"
] | permissive | ml-lab/imcl-tensorflow | f863a81bfebe91af7919fb45036aa05304fd7cda | 54ab3ec2e32087ce70ecae2f36b56a8a92f2ba89 | refs/heads/master | 2021-01-22T06:37:18.129405 | 2016-06-08T15:53:28 | 2016-06-08T15:53:28 | 63,518,098 | 1 | 2 | null | 2016-07-17T06:29:14 | 2016-07-17T06:29:13 | null | UTF-8 | Python | false | false | 4,700 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"mrlittlezhu@gmail.com"
] | mrlittlezhu@gmail.com |
4ab0d9b5dbf4bad4ce4e985cef21b404c9ddd7ec | 30a3fe4623bda3cf271cf8ef24f87948b89de019 | /app/utils.py | 0ded1cb9dd3c89790b56992c698e0b14097d1fb3 | [] | no_license | kiminh/semantic-search-faiss | 84e520e1a8a29a79d0ed313d815704ff7e2e5ddf | bc448f4839e3f0835b711cf7769421d64d11c909 | refs/heads/master | 2022-10-03T17:40:12.010550 | 2020-06-04T09:36:02 | 2020-06-04T09:36:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,001 | py | import os
import json
import faiss
import numpy as np
OUTPUT_DIR = "output"
def normalize(sent: str):
"""Normalize sentence"""
sent = sent.replace('“', '"')
sent = sent.replace('”', '"')
sent = sent.replace('’', "'")
sent = sent.replace('‘', "'")
sent = sent.replace('—', '-')
return sen... | [
"huffonism@gmail.com"
] | huffonism@gmail.com |
ba27a0f3a80330eb4a3161bdba920d0f0031b4d9 | 70896c105c9a3cc2e7316883e50395fc0638fd25 | /site/search-index/graph.py | 40d6c8f8249c42cce1edc96d873af2fed57b6bd8 | [
"MIT"
] | permissive | chituma110/neupy | 87e8c9c14b1eeb43012b214952460a86c7fb05ab | 15de13b7d7018369a8d788c0d0ccf9a5c8176320 | refs/heads/master | 2021-01-13T12:18:54.597174 | 2017-01-03T13:09:57 | 2017-01-03T13:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | from collections import OrderedDict
class DirectedGraph(object):
def __init__(self):
self.graph = OrderedDict()
def add_node(self, node):
self.graph[node] = []
def add_edge(self, node_1, node_2):
if node_1 not in self.graph:
self.add_node(node_1)
if node_2 no... | [
"mail@itdxer.com"
] | mail@itdxer.com |
5028e51bfd002a3d27ab6417f43c7ce234de56bc | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/Bisong19Building/C_PartII/C_Chapter10/F_MatrixOperations/B_ElementWiseOperations/index.py | 0e50f350af322d3b72ea3073845fe22ebb12e2a8 | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,323 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.ImageBlock import ImageBlock as ibk
from modules.node.block.MarkdownB... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
e66a6383de8c689572ca2d04c0adb3a49595775e | 05c395df76d494d8239de86515a3b57cd08231c4 | /test/lmp/tokenizer/_base_tokenizer/__init__.py | 5d2fe53c608ba24438119b9611d5a2ab2595657f | [] | no_license | SiuYingCheng/language-model-playground | 61b74a28abea5707bc1c9d0a2280d2f24d959ae4 | 6bca79baceacf85c5c3683bbfdf586a00484ed19 | refs/heads/master | 2022-12-16T23:04:25.895156 | 2020-09-10T16:26:03 | 2020-09-10T16:26:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | r"""Test `lmp.tokenizer._base_tokenizer.py`.
Usage:
python -m unittest test.lmp.tokenizer._base_tokenizer.__init__
"""
# built-in modules
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import inspect
import uni... | [
"ProFatXuanAll@gmail.com"
] | ProFatXuanAll@gmail.com |
27bf3ef14146afe4d99288cc61e3f95623475769 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2290/60627/252911.py | dd6e631f0e74990df90b56f6a7b3a0c769388514 | [] | 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 | 352 | py | # 1
n = int(input())
for i in range(n):
input()
num = input().split()
for i in range(len(num)):
num[i] = int(num[i])
l = ''
for i in range(len(num)):
if i < len(num)-1:
if num[i] > num[i+1]:
l += str(num[i+1]) + ' '
else:
l += ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2202083b47c93ec48c1625a519c96443a05b8997 | 02e4920166051129d1ca28a0da80405a982f1cfe | /exercícios_fixação/094.py | c12172adc3319a6db6eb420f79689481c4229452 | [] | no_license | felipeonf/Exercises_Python | 1ab40cea2466d6bb5459b5384a1dde8e1066b3b4 | 8eb2d17a35a6352fd5268a5fa43b834443171c70 | refs/heads/main | 2023-07-23T22:30:13.567469 | 2021-08-25T03:34:33 | 2021-08-25T03:34:33 | 397,062,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | '''[DESAFIO] Desenvolva um aplicativo que tenha um procedimento chamado
Fibonacci() que recebe um único valor inteiro como parâmetro, indicando quantos
termos da sequência serão mostrados na tela. O seu procedimento deve receber
esse valor e mostrar a quantidade de elementos solicitados.
Obs: Use os exercícios 70 e... | [
"noreply@github.com"
] | felipeonf.noreply@github.com |
8c26bce3eb81c76ff44837fa243a825da36108a0 | c7ea36544ae5f7a8e34bf95b8c38240ca6ebda83 | /app/schema/answers/month_year_date_answer.py | bfca6e0fa0eb15b62fed5d38aacf62564fa094de | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | qateam123/eq | 40daa6ea214e61b572affd0b5ab9990371c70be4 | 704757952323647d659c49a71975c56406ff4047 | refs/heads/master | 2023-01-11T01:46:11.174792 | 2017-02-09T13:46:56 | 2017-02-09T13:46:56 | 80,821,577 | 0 | 0 | MIT | 2023-01-04T14:31:08 | 2017-02-03T11:02:24 | JavaScript | UTF-8 | Python | false | false | 900 | py | from app.schema.answer import Answer
from app.schema.exceptions import TypeCheckingException
from app.schema.widgets.month_year_date_widget import MonthYearDateWidget
from app.validation.month_year_date_type_check import MonthYearDateTypeCheck
class MonthYearDateAnswer(Answer):
def __init__(self, answer_id=None):... | [
"patelt@C02SQ3LDG8WL.local"
] | patelt@C02SQ3LDG8WL.local |
90fddcec4e7c01bc4e7411795fd3da100f7f7d65 | 09dd58f46b1e914278067a69142230c7af0165c2 | /blackmamba/system.py | 986fcef2f17be701ceb50130892f4a8a6e7dcc74 | [
"MIT"
] | permissive | zrzka/blackmamba | 4e70262fbe3702553bf5d285a81b33eb6b3025ea | b298bc5d59e5aea9d494282910faf522c08ebba9 | refs/heads/master | 2021-01-01T18:43:19.490953 | 2020-01-20T08:26:33 | 2020-01-20T08:26:33 | 98,410,391 | 72 | 12 | MIT | 2020-01-20T08:26:35 | 2017-07-26T10:21:15 | Python | UTF-8 | Python | false | false | 5,903 | py | #!python3
"""System info and decorators.
.. warning:: This module must not introduce dependency on any other Black Mamba
modules and must be importable on any other platform as well.
"""
import sys
import traceback
import functools
try:
import console
except ImportError:
console = None
# 3.1, 301016
#... | [
"rvojta@me.com"
] | rvojta@me.com |
58c130b79a1188152e08dda276e3ffec20ed373c | 0dae97b2205ef5d8ce884ec2af4bf99ad2baec43 | /drf_admin/apps/cmdb/views/servers.py | d82da8146f097cad58b325c18915d1920c94e506 | [
"MIT"
] | permissive | 15051882416/drf_admin | 2520affacd0345d042b499c3e9a56a112cc235d5 | 0b31fa5248afb6fc20e6ef425b2dcc4d39977d81 | refs/heads/master | 2022-12-31T04:57:27.017134 | 2020-10-24T01:09:58 | 2020-10-24T01:09:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,461 | py | # -*- coding: utf-8 -*-
"""
@author : Wang Meng
@github : https://github.com/tianpangji
@software : PyCharm
@file : servers.py
@create : 2020/10/17 18:45
"""
from django.contrib.auth.models import AnonymousUser
from django.db.models import Q
from django_filters.rest_framework import DjangoFilterBackend
fr... | [
"921781999@qq.com"
] | 921781999@qq.com |
4021d5d523973384ebf72c8ba41a80e66b87be23 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /raw_scripts/132.230.102.123-10.21.12.4/1569578039.py | 747b1029c89ff144a79977e858b82b6acd08b556 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,522 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teile 1. und 2.
class Vigenere:
def __init__(self, schluesselwort):
raise len(schluesselwort) == 0
self.__key = schluesselwort
def encrypt(self, w):
test = {1:"A",2:"B",3:"C",4:"D"}
result = ... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
ca66a5d5cbd1c66360f905b66c50a3a3a78e69fc | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/pygments/lexers/ampl.py | 88d9a335a05d787080d511248d6fb7102cf51e27 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e80400498fbe866617b60933b2d859ca644ce1bcd0fd1419642e56bb84491be0
size 4120
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
b84bc5c1ca3a1559be68059e22c3ad0797fb3b4e | 5e0737c75087c2bb631f760979b9afe13ba1e9b5 | /labs/Lab7_helper.py | 4e5018db80a65f8d2930abeb89e3a9c69a6f2fc4 | [] | no_license | anderson-github-classroom/csc-369-student | f54bf89ec84f58405b5ea39f13cd431becf8d796 | e8654e5656fdfc5e5c81022a6e1e0bca8ab97e04 | refs/heads/main | 2023-03-21T14:50:04.475831 | 2021-03-09T17:08:49 | 2021-03-09T17:08:49 | 325,129,939 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | from bson.objectid import ObjectId
from bson.code import Code
def exercise_1(col):
result = None
# Your solution here
return result
def exercise_2(col):
result = None
# Your solution here
return result
def process_exercise_3(result):
process_result = {}
for record in result:
... | [
"pauleanderson@gmail.com"
] | pauleanderson@gmail.com |
3735ecb70313723eec2dcb5a74478775404b1862 | d6e65aa23ff8b2344dacac93fe00fcfcd64cc414 | /ac_kth_excluded.py | 0562543eaa475be4c06d1338eda33ac95cdd5e8e | [] | no_license | diwadd/sport | c4b0ec3547cde882c549fa7b89e0132fdaf0c8fb | 220dfaf1329b4feea5b5ca490ffc17ef7fe76cae | refs/heads/master | 2023-05-29T13:17:23.516230 | 2023-05-20T22:08:28 | 2023-05-20T22:08:28 | 223,636,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | import bisect
nq = input().split(" ")
n = int(nq[0])
q = int(nq[1])
a_vec = input().split(" ")
a_vec = [int(a) for a in a_vec]
ranges_list = []
if a_vec[0] != 1:
ranges_list.append([0, a_vec[0]])
for i in range(1, len(a_vec)):
if a_vec[i] - a_vec[i-1] == 1:
continue
else:
ranges_list.a... | [
"dawid.dul@gmail.com"
] | dawid.dul@gmail.com |
232fb2bc3b437ecc04e52293372acc262f8fc569 | 58f095f52d58afa9e8041c69fa903c5a9e4fa424 | /examples/example10.py | d1559702fb592fcbbb38d226465818239f4e3b58 | [
"BSD-3-Clause"
] | permissive | cdeil/mystic | e41b397e9113aee1843bc78b5b4ca30bd0168114 | bb30994987f36168b8f09431cb9c3823afd892cd | refs/heads/master | 2020-12-25T23:18:52.086894 | 2014-08-13T14:36:09 | 2014-08-13T14:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2014 California Institute of Technology.
# License: 3-clause BSD. The full license text is available at:
# - http://trac.mystic.cacr.caltech.edu/project/mystic/browser/mystic/LICENSE
"""
Example:
- Solve 8th-... | [
"mmckerns@968178ea-60bd-409e-af13-df8a517b6005"
] | mmckerns@968178ea-60bd-409e-af13-df8a517b6005 |
250c99544b764054cbb51329107670b550aac94e | e4aab0a71dc5c047d8b1576380b16364e03e7c0d | /backup.py | 8c72d7628780821364635e912abc49be03239e3f | [
"Apache-2.0"
] | permissive | Joecastra/Watcher3 | 8ca66c44846030f0eb771d9d6ddeb9c37f637a4e | ce25d475f83ed36d6772f0cc35ef020d5e47c94b | refs/heads/master | 2021-01-19T11:05:55.454351 | 2017-04-10T20:17:24 | 2017-04-10T20:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,478 | py | import argparse
import os
import shutil
import sys
import zipfile
tmpdir = 'backup_tmp'
posterpath = os.path.join('static', 'images', 'posters')
def backup(require_confirm=True):
# check for files and paths
if not os.path.isfile('watcher.sqlite'):
if require_confirm is True:
if input('Da... | [
"nosmokingbandit@gmail.com"
] | nosmokingbandit@gmail.com |
a43cfa67569d76d94811a81eaf8ca5a7c3499126 | cce63dc8bf66718746019c18df6355cabe34471a | /site_scons/ackward/constructor.py | 9ff18482422125bf7a2ab234594f46856c5f0b1b | [
"MIT"
] | permissive | abingham/ackward | 1592495c31fff5812b484719d93a0c140d26c127 | f1a45293de570f4b4429d9eaeb3f6c4da7d245bf | refs/heads/master | 2016-08-12T08:28:07.824253 | 2012-04-29T13:24:50 | 2012-04-29T13:24:50 | 49,885,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,151 | py | from .element import SigTemplateElement
from .include import ImplInclude
from .trace import trace
header_template = '${class_name}($header_signature);'
impl_template = '''
${class_name}::${class_name}($impl_signature) try :
core::Object (
${class_name}::cls()($parameters) )
$constructor_initializers
{
}
TRANS... | [
"austin.bingham@gmail.com"
] | austin.bingham@gmail.com |
74c5b17fcf4cbff3689ddd9ddff7b7894f1efbfe | 395cabaa64a3a823a74e0dc52dd801cb7846d6df | /fluids/two_phase_voidage.pyi | dbe07a821817c30716c2c99cbc6ad42fb5565190 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | CalebBell/fluids | 883e28aae944e0f55cdc4e759edf9868714afebb | 837acc99075f65060dfab4e209a72dff4c4fe479 | refs/heads/master | 2023-09-01T07:53:27.386513 | 2023-08-19T23:49:01 | 2023-08-19T23:49:01 | 48,924,523 | 298 | 85 | MIT | 2023-06-06T05:11:12 | 2016-01-02T21:31:10 | Python | UTF-8 | Python | false | false | 5,192 | pyi | # DO NOT EDIT - AUTOMATICALLY GENERATED BY tests/make_test_stubs.py!
from __future__ import annotations
from typing import List
from typing import (
List,
Optional,
)
def Armand(x: float, rhol: float, rhog: float) -> float: ...
def Baroczy(x: float, rhol: float, rhog: float, mul: float, mug: float) -> float... | [
"Caleb.Andrew.Bell@gmail.com"
] | Caleb.Andrew.Bell@gmail.com |
b358377477d8140adb098edf7df754b378f8c110 | 95133906bd7b95359080386ea7570afd26364882 | /publishconf.py | 2f4900957f007ee04033474b0248a67fbc928a37 | [] | no_license | jzuhone/jzuhone.com | 94325e3afab4ce75d7b7a8268645597c6a4c80a8 | 3e3c3774701ed6a2251e71dc11a7a5e7596bdc92 | refs/heads/master | 2020-05-17T19:13:09.102206 | 2016-08-15T14:42:31 | 2016-08-15T14:42:31 | 14,403,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
SITEURL = 'http://hea-www.cfa.harvard.edu/~jzuhone/'
REL... | [
"jzuhone@gmail.com"
] | jzuhone@gmail.com |
01950fd457b021ccfdfbf35c8e3b03ab29f0d828 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/ipywidgets/py2/ipywidgets/widgets/widget_layout.py | 0b2d202761fa230489f593b60254cca4fb71ab8d | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 6,462 | py | # Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
"""Contains the Layout class"""
from traitlets import Unicode, Instance, CaselessStrEnum, validate
from .widget import Widget, register
from .._version import __jupyter_widgets_base_version__
CSS_PROPERTIES=['inherit... | [
"akhropov@yandex-team.com"
] | akhropov@yandex-team.com |
68b76bbb367a0b66083de4dbb90308c8e0069ab5 | 4f4f7b28b4c50c8df4381f8a9e68ae515d747424 | /examples/ndviz/0_basic_1d_signal.py | 2ebc08601ab124c106cad1d172e557b81922ff85 | [
"BSD-3-Clause"
] | permissive | christian-oreilly/visbrain | 6cd82c22c33039f5adfac1112ceba016c5a75a32 | b5f480a16555a10b0032465699a0c371e2be31db | refs/heads/master | 2020-06-01T12:24:57.810735 | 2017-09-09T12:44:25 | 2017-09-09T12:44:25 | 94,073,149 | 0 | 0 | null | 2017-06-12T08:29:51 | 2017-06-12T08:29:51 | null | UTF-8 | Python | false | false | 2,692 | py | """
Plot a 1d signal
================
This example show how to display and control simple 1d signal.
.. image:: ../../picture/picndviz/ex_basic_signal.png
"""
import numpy as np
from visbrain import Ndviz
# Create an empty dictionary :
kw = {}
# Sampling frequency :
sf = 1024.
# Create a 10hz cardinal sinus :
time... | [
"e.combrisson@gmail.com"
] | e.combrisson@gmail.com |
52ab19697e8c0bdd1412fc80b69662d2dd44def8 | ce9d475cebeaec9cf10c467c577cb05c3b431fad | /code/chapter_12_example_05.py | 66860a252dfe2b04999c9862d06c8c8188745f3b | [] | no_license | Sundarmax/two-scoops-of-django-2.0-code-examples | 9c8f98d145aaa5498bb558fc5125379cd39003e5 | a15b2d4c240e879c03d2facf8592a644e27eb348 | refs/heads/master | 2022-04-19T10:14:53.795688 | 2020-03-04T15:16:25 | 2020-03-04T15:16:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,183 | py | """
Using This Code Example
=========================
The code examples provided are provided by Daniel Greenfeld and Audrey Roy of
Two Scoops Press to help you reference Two Scoops of Django: Best Practices
for Django 1.11 for Django 2.0 projects. Code Samples follow PEP-0008, with exceptions made for the
purposes o... | [
"pydanny@gmail.com"
] | pydanny@gmail.com |
2a23248df2d772216b33169abee1e6bddb4c1062 | 8637ef9b14db2d54199cc189ff1b500c2731a3d3 | /analyze/scripts/contours.py | f0acf978bb6d70e09788f32110abe1fdc0800cd3 | [] | no_license | Vayel/MPD | 76610b9380364154608aafc43c0aed433b2ccc16 | 80381367b4963ff0f3c3eeefbf648fd02b675b8d | refs/heads/master | 2016-09-10T01:35:42.222213 | 2014-07-03T08:49:25 | 2014-07-03T08:49:25 | 20,148,560 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | # -*- coding: utf-8 -*-
# Python 2
# OpenCV required
import os
import sys
import numpy as np
import cv2
from cv_functions import loadImg
from global_functions import ensureDir
def main(path):
src = loadImg(path)
src = cv2.resize(src, (0,0), fx=0.7, fy=0.7)
gray = cv2.cvtColor(src, cv2.COLOR_BGR2GRAY)
thresh =... | [
"vincent.lefoulon@free.fr"
] | vincent.lefoulon@free.fr |
f296b5c06d5efae221488145545599ef45b172bd | 200eea364c07a2ae5d2533ce66cd0b046ae929f4 | /gca-cat | 17c28e78b9824b53b59ab4ce4579fc9217a8bac9 | [
"BSD-3-Clause"
] | permissive | dalinhuang/GCA-Python | f024e7810f0ccc8010bf6726bddb1e8f47383ff2 | 135107cb98c697d20f929cf9db6358a7c403d685 | refs/heads/master | 2020-04-24T14:02:01.200668 | 2018-01-16T18:05:21 | 2018-01-16T18:05:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import codecs
import sys
from gca.core import Abstract
from collections import OrderedDict
class LastUpdatedOrderedDict(OrderedDict):
'Store items in the order the keys wer... | [
"christian@kellner.me"
] | christian@kellner.me | |
2d85b53a201f4797832bff154c5446bfa2f8676e | f3e1814436faac544cf9d56182b6658af257300a | /GOOGLE COMPETETIONS/codejam_Q_2_2021.py | c955dbe2b50bc045608df87b6c296a2553dfdf9a | [] | no_license | preetmodh/COMPETETIVE_CODING_QUESTIONS | 36961b8b75c9f34e127731eb4ffb5742e577e8a2 | c73afb87d197e30d801d628a9db261adfd701be9 | refs/heads/master | 2023-07-15T03:19:15.330633 | 2021-05-16T10:17:20 | 2021-05-16T10:17:20 | 279,030,727 | 2 | 1 | null | 2021-01-12T03:55:26 | 2020-07-12T09:18:57 | Python | UTF-8 | Python | false | false | 837 | py | def change(string):
for i in range(len(string)):
if string[i]=="?":
if i==0:
string[i]=string[i+1]
elif i==len(string)-1:
string[i]=string[len(string)-2]
else:
string[i]=string[i-1]
... | [
"noreply@github.com"
] | preetmodh.noreply@github.com |
7b40dc66da5a51767209659cb82ca97ea7bd57e6 | 08e76791377ef548e37982d2060b1f0a6dd89970 | /nuclear reacter.py | e1908dff710a0d2435f871f7b70effd59463b7d3 | [] | no_license | GuhanSGCIT/Trees-and-Graphs-problem | f975090b9118cf74c0c2efe271c010e9410fc0a7 | b1b0eec7c7e44f62fa0eff28a8379127f4a66f4e | refs/heads/master | 2023-02-12T21:43:28.362986 | 2021-01-18T16:34:48 | 2021-01-18T16:34:48 | 272,145,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | """
Question:-
There are K nuclear reactor chambers labelled from 0 to K-1. Particles are bombarded onto chamber 0.The particles keep
collecting in the chamber 0. However if at any time, there are more than N particles in a chamber,a reaction will cause 1
particle to move to the immediate next chamber,and all the... | [
"noreply@github.com"
] | GuhanSGCIT.noreply@github.com |
6283a10e0d1bc367a0882b43b97ba5d9e23c2969 | 501615c82801733e69c7447ab9fd68d3883ed947 | /hotfix/.svn/pristine/62/6283a10e0d1bc367a0882b43b97ba5d9e23c2969.svn-base | 434ae5e6bf5a96cac5d9effc5c073fc8842df836 | [] | no_license | az0ne/python | b2e1cc1e925d1fcdb269e7dd4c48e24665deeeee | aec5d23bb412f7dfca374fb5c5b9988c1b817347 | refs/heads/master | 2021-07-18T02:08:46.314972 | 2017-10-27T06:23:36 | 2017-10-27T06:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | # -*- coding: utf-8 -*-
"""
@version: 2016/6/12
@author: Jackie
@contact: jackie@maiziedu.com
@file: urls.py
@time: 2016/6/12 16:13
@note: ??
"""
from django.conf.urls import patterns, url, include
urlpatterns = patterns(
'',
# add by jackie 20160612 488免费试学引导
# 课程大纲引导页
url(r'^(?P<... | [
"1461847795@qq.com"
] | 1461847795@qq.com | |
a737110b9a871f6e38e01d0309a80f741a69a80d | b66ca95d947ebc80713f8857c50dd7ed81e96812 | /py/escher/static_site.py | 4167a4e13d613001c660d421fd3fd302440979b6 | [
"MIT"
] | permissive | clusterinnovationcentre/escher | 53b767a0e5358100342aab350aa4d6397c41bd40 | db4212226cb35fd1ca63e49929e60433353bc6d8 | refs/heads/master | 2021-01-19T12:15:17.772388 | 2016-09-14T18:21:24 | 2016-09-14T18:21:24 | 69,043,308 | 1 | 0 | null | 2016-09-23T16:44:07 | 2016-09-23T16:44:06 | null | UTF-8 | Python | false | false | 2,663 | py | from __future__ import print_function, unicode_literals
from escher.plots import Builder
from escher.urls import get_url
from escher.version import __version__
from escher.urls import top_directory, root_directory
from os.path import join, dirname, realpath
from jinja2 import Environment, PackageLoader
import shutil
... | [
"zaking17@gmail.com"
] | zaking17@gmail.com |
91ada56a8de2120490cdfea95028b3a323a3ccec | 5f86944bdf1b810a84c63adc6ed01bbb48d2c59a | /kubernetes/client/models/v1_endpoints.py | 09876472e90030b902b980502a694c788125d712 | [
"Apache-2.0"
] | permissive | m4ttshaw/client-python | 384c721ba57b7ccc824d5eca25834d0288b211e2 | 4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1 | refs/heads/master | 2021-01-13T06:05:51.564765 | 2017-06-21T08:31:03 | 2017-06-21T08:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,097 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
8c497cc002f4ef01eeff79c9cdbd5164f0b56620 | 192874fd96861ceb1864a71bf6f13932cc017d63 | /hue/tools/app_reg/common.py | 7c95d79fa30c878ca0bbface55ce0ecc1f9b104d | [
"Apache-2.0"
] | permissive | OpenPOWER-BigData/HDP-hue | 1de3efc0ac773f1e7b1acd03675f11b65c6f477d | 23719febdaae26c916bdc9d0712645987ae7e0e4 | refs/heads/master | 2021-01-17T17:19:31.157051 | 2016-07-18T19:44:10 | 2016-07-18T19:44:10 | 63,631,863 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | [
"afsanjar@gmail.com"
] | afsanjar@gmail.com |
bfef24a076e66dd7c4f8a3fff2a9944ce352f75b | e609a2e68426edc025e196fc87474d8b0c154286 | /triage/model_results_generators.py | 0fc4e27041fd8f5a5fb6570191e5f6bfab6f46fd | [
"MIT"
] | permissive | pvdb2178/triage | 0119db238a6ee6529ec9cdcdb9e6111b8d6d12fa | 1fea55cea3165d4f8af0ae49fa225ea0366484be | refs/heads/master | 2021-01-25T06:55:22.826502 | 2017-06-05T16:54:37 | 2017-06-05T16:54:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | class ModelResultsGenerator(object):
def __init__(self, trained_model_path, model_ids):
self.trained_model_path = trained_model_path
self.model_ids = model_ids
def generate(self):
"""TODO: for each trained model,
create metrics and write to Tyra-compatible database"""
pa... | [
"tristan.h.crockett@gmail.com"
] | tristan.h.crockett@gmail.com |
853170d6ebcfcfa63ebccf1d5e418b943b3e0df1 | ee8577b0d70ae783e42032fdf38bd4ec6c210ccf | /barddo/notifications/admin.py | 5613ee702d99c99878bd3027f539e47e8511d172 | [] | no_license | bruno-ortiz/barddo | 9192cfd5aff9ca0f296f476877b468919bdc5636 | 4f7aa41fd0697af61539efd1aba2062addb63009 | refs/heads/master | 2023-05-19T11:15:05.251642 | 2014-09-21T18:36:44 | 2014-09-21T18:36:44 | 374,435,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from .models import Notification
class NotificationAdmin(admin.ModelAdmin):
list_display = ('recipient', 'actor',
'target', 'unread')
list_filter = ('unread', 'timestamp', )
admin.site.register(Notification, NotificationAdmin)
| [
"devnull@localhost"
] | devnull@localhost |
0e18c5faf91f310952478e4fef2f0be98535c706 | d7069bc46ab265f5787055a771886aba9af7949d | /zabbix/files/iops/check_io.py | 22fd768a93489b59d7c93c200ea91bf495e4b003 | [] | no_license | lizhenfen/work | a82951abee20dc3b7f998ec880ca8323cb71c5f6 | abf0f558a6a3a36931ea7bd95255db100b6d249f | refs/heads/master | 2021-01-12T05:34:39.677154 | 2017-03-21T09:28:02 | 2017-03-21T09:28:02 | 77,131,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | #!/usr/bin/env python
#-*- coding: utf8 -*-
import json
import sys
PY2 = sys.version_info[0] == 2
def getDEVInfo():
res = {}
data = []
with open('/proc/mounts') as fp:
for line in fp:
dev_dict = {}
if '/boot' in line: continue
if line.startswith('/dev'):
... | [
"743564797@qq.com"
] | 743564797@qq.com |
e3e9af5d81885990ee71c8798f9aa4149ac348cc | 4e44c4bbe274b0a8ccca274f29c4140dfad16d5e | /Push2_MIDI_Scripts/decompiled 10.0.3b2 scripts/pushbase/touch_encoder_element.py | 3b6d6c7f03e0827f3f845147d727d984560865cd | [] | no_license | intergalacticfm/Push2_MIDI_Scripts | b48841e46b7a322f2673259d1b4131d2216f7db6 | a074e2337b2e5d2e5d2128777dd1424f35580ae1 | refs/heads/master | 2021-06-24T15:54:28.660376 | 2020-10-27T11:53:57 | 2020-10-27T11:53:57 | 137,673,221 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,161 | py | # uncompyle6 version 3.0.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.13 (default, Jan 19 2017, 14:48:08)
# [GCC 6.3.0 20170118]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\pushbase\touch_encoder_element.py
# Compiled at: 2018-06-05 08:04:22
fro... | [
"ratsnake.cbs@gmail.com"
] | ratsnake.cbs@gmail.com |
ed7db017e09ab445f8dc309bb5c7d7550dd29eca | c20f811f26afd1310dc0f75cb00992e237fdcfbd | /21-merge-two-sorted-lists.py | 2db2b0f72463bcc00edca0051683d4d4b8e84092 | [
"MIT"
] | permissive | dchentech/leetcode | 4cfd371fe4a320ab3e95925f1b5e00eed43b38b8 | 3111199beeaefbb3a74173e783ed21c9e53ab203 | refs/heads/master | 2022-10-21T09:59:08.300532 | 2016-01-04T03:21:16 | 2016-01-04T03:21:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | """
Question:
Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
Performance:
1. Total Accepted: 82513 Total Submissions: 250918 Difficulty: Easy
2. Your runtime beats 93.72% of python sub... | [
"mvjome@gmail.com"
] | mvjome@gmail.com |
63515d7070e6f6fa471eceafd23c5d19fc3aaec5 | 34d6f67245baf6b96915a39f2dff92ceb8652265 | /DjangoApp/settings.py | aa8dd1dce2fe8c302a621f08b64ec9e202771b94 | [
"MIT"
] | permissive | johnnynode/Django-1.11.11 | 917641dae0eeb892d8f61287b12357dffc6b1d15 | 421f4d23d2773a1338a5163605a2f29202c91396 | refs/heads/master | 2020-04-25T11:06:18.924593 | 2020-01-10T10:38:19 | 2020-01-10T10:38:19 | 172,733,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,341 | py | """
Django settings for DjangoApp project.
Generated by 'django-admin startproject' using Django 1.11.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"johnnynode@gmail.com"
] | johnnynode@gmail.com |
4c1bc83bd79f6d45d169909107af7299301e7b56 | 453daa2a6c0e7bcac5301b7a3c90431c44e8d6ff | /demos/blog_react/aiohttpdemo_blog/admin/posts.py | 38dce4938f8f41f6985ec3be6d0e7e39d1407c75 | [
"Apache-2.0"
] | permissive | Deniallugo/aiohttp_admin | c4f68df50267fc64e36b9283bfeb80cb426009da | effeced4f4cb0fa48143030cd7e55aa9012203ac | refs/heads/master | 2023-07-08T06:02:18.603089 | 2021-08-19T06:57:18 | 2021-08-19T06:57:18 | 296,005,355 | 1 | 0 | Apache-2.0 | 2021-08-19T06:57:19 | 2020-09-16T10:55:28 | null | UTF-8 | Python | false | false | 332 | py | from aiohttp_admin.contrib import models
from aiohttp_admin.backends.sa import PGResource
from .main import schema
from ..db import post
@schema.register
class Posts(models.ModelAdmin):
fields = ('id', 'title', 'pictures', 'backlinks', 'subcategory',)
class Meta:
resource_type = PGResource
t... | [
"nickolainovik@gmail.com"
] | nickolainovik@gmail.com |
176cdd36e2826a520c211721a826defe7432b198 | ac2b3f97b4f2423a3724fbf9af69e362183f7f3a | /crimtech_final_project/crimsononline/newsletter/migrations/0004_auto_20160321_1749.py | eac989c6e541da79424f7b0e000948499959a6e7 | [] | no_license | cindyz8735/crimtechcomp | e4109855dd9a87fc11dd29fdf6bb81400c9ce97b | a9045ea79c73c7b864a391039799c2f22234fed3 | refs/heads/master | 2021-01-24T10:06:03.386553 | 2018-04-14T04:24:57 | 2018-04-14T04:24:57 | 123,037,281 | 0 | 0 | null | 2018-02-26T22:08:57 | 2018-02-26T22:08:56 | null | UTF-8 | Python | false | false | 1,045 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsletter', '0003_auto_20150826_0229'),
]
operations = [
migrations.CreateModel(
name='HarvardTodaySponsoredEve... | [
"cindyz8735@gmail.com"
] | cindyz8735@gmail.com |
6d360f0233028c91624e539874a5429b1c382233 | 127e99fbdc4e04f90c0afc6f4d076cc3d7fdce06 | /2021_하반기 코테연습/boj14620.py | 7d9fc8ac42f2639b3e07a9a9888085fed91330c1 | [] | no_license | holim0/Algo_Study | 54a6f10239368c6cf230b9f1273fe42caa97401c | ce734dcde091fa7f29b66dd3fb86d7a6109e8d9c | refs/heads/master | 2023-08-25T14:07:56.420288 | 2021-10-25T12:28:23 | 2021-10-25T12:28:23 | 276,076,057 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | n = int(input())
mapp = []
for _ in range(n):
tmp = list(map(int, input().split()))
mapp.append(tmp)
check = [[False for _ in range(n)] for _ in range(n)]
answer = 1e10
dx = [1, -1, 0, 0]
dy = [0, 0, -1, 1]
def check_range(x, y):
if x>=0 and x<n and y>=0 and y<n:
return True
return False
... | [
"holim1226@gmail.com"
] | holim1226@gmail.com |
f4654a97d2589c028a6eb4ff6fc813d361ca27b5 | 93ab050518092de3a433b03744d09b0b49b541a6 | /iniciante/Mundo 02/Exercícios Corrigidos/Exercício 036.py | 6859a806e2d4e38fc694507fed1fb3ea02e4c1a7 | [
"MIT"
] | permissive | ggsant/pyladies | 1e5df8772fe772f8f7d0d254070383b9b9f09ec6 | 37e11e0c9dc2fa2263ed5b42df5a395169408766 | refs/heads/master | 2023-01-02T11:49:44.836957 | 2020-11-01T18:36:43 | 2020-11-01T18:36:43 | 306,947,105 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | """
EXERCÍCIO 036: Aprovando Empréstimo
Escreva um programa para aprovar o empréstimo bancário para a compra de uma casa.
Pergunte o valor da casa, o salário do comprador e em quantos anos ele vai pagar.
A prestação mensal não pode exceder 30% do salário, ou então o empréstimo será negado.
"""
casa = float(input('Valo... | [
"61892998+ggsant@users.noreply.github.com"
] | 61892998+ggsant@users.noreply.github.com |
3dc35cccc2f987013f4445f95435d2dad6a1f12b | 2834298c6a50ff7cfada61fb028b9fd3fc796e85 | /introd/programas/cap01_prob/exemp_cap_01_01_c.py | 3265df1f052c7c1bad508ee770a2d6ad52fb0fa4 | [] | no_license | ernestojfcosta/IPRP_LIVRO_2013_06 | 73841c45d000dee7fc898279d4b10d008c039fd0 | a7bb48745ad2fbfeb5bd4bc334cb7203d8f204a4 | refs/heads/master | 2021-01-22T05:00:57.868387 | 2013-06-07T11:00:55 | 2013-06-07T11:00:55 | 10,548,127 | 0 | 1 | null | null | null | null | WINDOWS-1257 | Python | false | false | 472 | py | # -*- coding: mac-roman -*-
# Exemplo simples entradas / sa’das / atribui¨›es
# Ernesto Costa
# Dada a altura calcula o peso ideal para uma pessoa
def main():
"""" Tem o peso ideal?
"""
# mensagem
altura = input("A sua altura por favor: ")
sexo = raw_input("O seu sexo por favor (M / F): ")
if sexo == '... | [
"ernesto@dei.uc.pt"
] | ernesto@dei.uc.pt |
dac804c33230879d67dd611d93deb94b2adc451b | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /sumRootToLeaf.py | ee43ddceb5b9ce42b6f787cf5ea3e662d9ad0968 | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | from typing import Optional
from pytree import TreeNode
class Solution:
def sumRootToLeaf(self, root: Optional[TreeNode]) -> int:
value = 0
res = 0
def dfs(root, value):
if not root:
return
value = 2 * value + root.val
if not root.left... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
d5347447760b6c6389ec49923408c533d457bf16 | f865fdd970f8e37ea2aa5157374af8c4d6ced987 | /test/test_vehicle_list_list.py | 249ea92d8240a677b23124e6d62fb0bcd81d0216 | [] | no_license | gkeep-openapi/python-sdk | 7e809448355bff535b3d64e013f001e9196c5e19 | 7c4f3785b47a110386ef10109619654522c95de5 | refs/heads/master | 2022-05-28T16:13:06.643958 | 2022-05-13T14:58:39 | 2022-05-13T14:58:39 | 235,536,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | # coding: utf-8
"""
Gkeep API
Gkeep API # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from models.vehicle_list_list import VehicleListList # noqa: E50... | [
"gkeep-ci-jenkins"
] | gkeep-ci-jenkins |
fbf785d429c68337f3d04cbc3305b64d88758482 | 9b20743ec6cd28d749a4323dcbadb1a0cffb281b | /07_Machine_Learning_Mastery_with_Python/10/gaussian_naive_bayes.py | b5529aced1162296ffe0b53527fd96f38568671a | [] | no_license | jggrimesdc-zz/MachineLearningExercises | 6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178 | ee265f1c6029c91daff172b3e7c1a96177646bc5 | refs/heads/master | 2023-03-07T19:30:26.691659 | 2021-02-19T08:00:49 | 2021-02-19T08:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | # Gaussian Naive Bayes Classification
from pandas import read_csv
from sklearn.model_selection import KFold
from sklearn.model_selection import cross_val_score
from sklearn.naive_bayes import GaussianNB
filename = 'pima-indians-diabetes.data.csv'
names = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', ... | [
"jgrimes@jgrimes.tech"
] | jgrimes@jgrimes.tech |
8acf901f02911518883bb83b3ee13e1155dde5be | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Integration/trend_LinearTrend/cycle_12/ar_12/test_artificial_1024_Integration_LinearTrend_12_12_0.py | ce9ad4b11a32844c2d9b12c61134643c26fb5ac1 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 270 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 12, transform = "Integration", sigma = 0.0, exog_count = 0, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
52ddde778566b011bf474203eeaab73b80a92abd | e1e5ffef1eeadd886651c7eaa814f7da1d2ade0a | /Systest/tests/acl-new/ACL_FUN_055.py | 56f2d44de7774024373f48e52761bd1fba98265a | [] | no_license | muttu2244/MyPython | 1ddf1958e5a3514f9605d1f83c0930b24b856391 | 984ca763feae49a44c271342dbc15fde935174cf | refs/heads/master | 2021-06-09T02:21:09.801103 | 2017-10-10T07:30:04 | 2017-10-10T07:30:04 | 13,803,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,939 | py | #!/usr/bin/env python2.5
"""
#######################################################################
#
# Copyright (c) Stoke, Inc.
# All Rights Reserved.
#
# This code is confidential and proprietary to Stoke, Inc. and may only
# be used under a license from Stoke.
#
####################################################... | [
"muttu2244@yahoo.com"
] | muttu2244@yahoo.com |
f9d76b0440856d9311fe34261caa26b0b7aebe92 | 882c865cf0a4b94fdd117affbb5748bdf4e056d0 | /python/BOJ/10_DFS_BFS/BOJ1697_숨바꼭질2.py | bc86af4e46dc7af94108fb47b8aaa7168c43897e | [] | no_license | minhee0327/Algorithm | ebae861e90069e2d9cf0680159e14c833b2f0da3 | fb0d3763b1b75d310de4c19c77014e8fb86dad0d | refs/heads/master | 2023-08-15T14:55:49.769179 | 2021-09-14T04:05:11 | 2021-09-14T04:05:11 | 331,007,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | from collections import deque
N, K = map(int, input().split())
count = [0] * 100001
def bfs(x):
need_visit = deque([x])
while need_visit:
x = need_visit.popleft()
dx = [x-1, x+1, x*2]
if x == K:
return count[x]
for nx in dx:
if nx < 0 or nx > 100000:
... | [
"queen.minhee@gmail.com"
] | queen.minhee@gmail.com |
0c62175729789e521b514d0ac7abca4b662ba72a | 3c5e4086ff49fb28be692085855c63b624b00d37 | /SuccessiveCommunities_IPAM/commonUsers.py | 63a4f0bf34dfa4d52a609f79cf37b7eff868da7d | [] | no_license | Roja-B/IPAM | bd1a708f053912ce401a99cbe827f2503eae9446 | 5a0e49299abcccda9eb1e7cc523315e6c14d5def | refs/heads/master | 2016-08-08T05:09:02.910761 | 2013-02-06T06:01:11 | 2013-02-06T06:01:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py |
# Unipartite Projection
# Creates Unipartite graph using Jaccard Index from a bipartite graph
# Input: Bipartite Graph
# Form: "EdgeList"
import sys
from string import lower,upper
from PARAMETERS import *
bgraphname = PATH+"/myResults/20002012/bipartite.txt"
f1 = open(bgraphname,"r")
Participants = dict()
for lin... | [
"roja@ucla.edu"
] | roja@ucla.edu |
e6f1aa570bf7102147e51ae3fc964e0a6563e419 | 4dcdc0533b89af0160bb13f729b1fb7be1454e6e | /Topics/Identity testing/Check the truth/main.py | d290b0cff6723c99e75d9e3e98bc17ccd891dc21 | [] | no_license | alendina/Numeric_Matrix | 17227221d27278825868df8d78969ee7b6febca6 | 74b8ff3365eba858b6974f01812bfe2ca041b91c | refs/heads/master | 2023-08-18T06:38:24.145454 | 2021-10-24T18:33:05 | 2021-10-24T18:33:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | def check_values(first_value, second_value):
if bool(first_value) and bool(second_value):
return True
else:
return False
| [
"alendina@MacBook-Air-Olena.local"
] | alendina@MacBook-Air-Olena.local |
8f7d70e38632a557f44e50d6671c469fd196770d | c2d48caa5db7e746a38beca625406fcf47379d3c | /src/olympia/lib/storage.py | 0413ca12fc2c4a45f994579b021cdea728b44eab | [] | permissive | mozilla/addons-server | 1f6269ec0a4aa5a0142a5f81978ef674daf213a7 | e0f043bca8a64478e2ba62f877c9dc28620be22f | refs/heads/master | 2023-09-01T09:34:41.867534 | 2023-09-01T07:21:22 | 2023-09-01T07:21:22 | 16,416,867 | 920 | 590 | BSD-3-Clause | 2023-09-14T16:15:01 | 2014-01-31T18:44:15 | Python | UTF-8 | Python | false | false | 733 | py | from django.contrib.staticfiles.storage import ManifestStaticFilesStorage
class ManifestStaticFilesStorageNotMaps(ManifestStaticFilesStorage):
patterns = (
(
'*.css',
(
# These regexs are copied from HashedFilesMixin in django4.1+
r"""(?P<matched>url... | [
"noreply@github.com"
] | mozilla.noreply@github.com |
c46fe73e6b759e76d94ab70e318253601e5e12b7 | 67f19ebb1fb3189e4c2f99484c1dc13af5099edb | /wii_packages/enso/fever/fever_idol7/fever_idol7.py | 9e8af364fb989f103457962cc724befb394fa6d4 | [] | no_license | delguoqing/PyLMPlayer | 609c4fe35e56e4ce3ce30eeb2e9244aad5ea1609 | db8a1edf70ac1c11deffddc458788b3a2c2078df | refs/heads/master | 2021-01-22T05:06:00.491732 | 2013-09-13T04:54:23 | 2013-09-13T04:54:23 | 8,878,510 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | def func0(this, _global):
this.stop()
def func1(this, _global):
this.gotoAndPlay("fever")
def func2(this, _global):
this.gotoAndStop(0)
def func3(this, _global):
this.gotoAndPlay("feverWide")
DATA = (
func0,
func1,
func2,
func3,
) | [
"delguoqing@hotmail.com"
] | delguoqing@hotmail.com |
9f0d2bf444ffbf8b751a89dbae76aa88747bb009 | e6c7c0fe8ff901b02c02c8cfb342cc2bcd76a8b2 | /lambda_p.py | 0eb68693ab8a4e9920821997994dbc0c829f235e | [] | no_license | VladyslavHnatchenko/theory | d7a3803e7887e60beb2936f24b9eb4056a04a711 | d2a18d577c046b896fcab86684d9011db1d4867d | refs/heads/master | 2020-04-08T10:42:55.198754 | 2018-12-25T06:00:17 | 2018-12-25T06:00:17 | 159,279,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | def multiply_all(numbers):
product = 1
for n in numbers:
product *= n
return product
numbers = [2, 1, 3, 4, 7, 11, 18]
product = multiply_all(numbers)
print(product)
# from functools import reduce
#
#
# numbers = [2, 1, 3, 4, 7, 11, 18]
# product = reduce(lambda x, y: x * y, numbers, 1)
#
# print... | [
"hnatchenko.vladyslav@gmail.com"
] | hnatchenko.vladyslav@gmail.com |
712c35310d6dded71e8bb56fe425b5331e450d82 | 7fa08c93ff0caa4c86d4fa1727643331e081c0d0 | /brigid_api_client/models/aws_accounts_retrieve_expand.py | affdf90386d13f2fa7f0cb41d10e07e378faf6b2 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | caltechads/brigid-api-client | 760768c05280a4fb2f485e27c05f6ae24fbb7c6f | 3e885ac9e7b3c00b8a9e0cc1fb7b53b468d9e10a | refs/heads/master | 2023-03-23T03:11:02.446720 | 2021-03-13T00:47:03 | 2021-03-13T00:47:03 | 338,424,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from enum import Enum
class AwsAccountsRetrieveExpand(str, Enum):
AWSACCOUNTAWS_VPCS = "awsaccount.aws_vpcs"
AWSACCOUNTCONTACTS = "awsaccount.contacts"
AWSACCOUNTTEAM = "awsaccount.team"
def __str__(self) -> str:
return str(self.value)
| [
"cmalek@caltech.edu"
] | cmalek@caltech.edu |
7ce76357c170555ecbb807b767bd856eaf8da2cc | afd2087e80478010d9df66e78280f75e1ff17d45 | /torch/onnx/_internal/diagnostics/infra/sarif/_fix.py | 5e3b944aa23983b9fbaa1e7015921124ae0f7c75 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 1,069 | py | # DO NOT EDIT! This file was generated by jschema_to_python version 0.0.1.dev29,
# with extension for dataclasses and type annotation.
from __future__ import annotations
import dataclasses
from typing import List, Optional
from torch.onnx._internal.diagnostics.infra.sarif import (
_artifact_change,
_message,... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
c8cfea60f10bab3d2d252c18e5e0bdbc99706d03 | 2f898bb332097d11f321186207e94f6d156587f3 | /dsp2019/classe4_dft/generar_audio.py | f41a4c4171677ad77f1be4e998e728e9ab7e47bf | [
"MIT"
] | permissive | miltonsarria/teaching | ad2d07e9cfbfcf272c4b2fbef47321eae765a605 | 7a2b4e6c74d9f11562dfe34722e607ca081c1681 | refs/heads/master | 2022-01-05T05:58:13.163155 | 2019-05-02T20:45:46 | 2019-05-02T20:45:46 | 102,375,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from scipy.io.wavfile import read
from scipy.io.wavfile import write
import numpy as np
import matplotlib.pyplot as plt
fs=16e3
longitud = 2# sec
n=np.linspace(1./fs,longitud,fs*longitud);
F=400 #frecuencia fundamental
w=2*np.pi*F #frecuencia angular
Vm... | [
"miltonsarria@gmail.com"
] | miltonsarria@gmail.com |
f7e3e1ceda275bc64213308ab21495cb7d97b19a | 8d2a124753905fb0455f624b7c76792c32fac070 | /pytnon-month02/month02-lvze-notes/day15-lvze/save_file.py | 9095c3857f57b6435b8db97a5bd1032e0fa61e98 | [] | no_license | Jeremy277/exercise | f38e4f19aae074c804d265f6a1c49709fd2cae15 | a72dd82eb2424e4ae18e2f3e9cc66fc4762ec8fa | refs/heads/master | 2020-07-27T09:14:00.286145 | 2019-09-17T11:31:44 | 2019-09-17T11:31:44 | 209,041,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | """
save_file.py
二进制文件存取示例
"""
import pymysql
# 连接数据库
db = pymysql.connect(user='root',
password = '123456',
database = 'stu',
charset='utf8')
# 获取游标 (操作数据库,执行sql语句,得到执行结果)
cur = db.cursor()
# 执行语句
# 存入图片
with open('gakki.jpg','rb') as f:
data = f.... | [
"13572093824@163.com"
] | 13572093824@163.com |
61fb603d132eda1ba08b4a29b00a1112cafcd207 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2890/58634/237718.py | 7875c0abb4bcd7b3b6440c09767567838f31d8cb | [] | 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 | 511 | py | a = [int(i) for i in input().split(" ")]
n = a[0]
x = a[1]
y = a[2]
different_k = []
not_have_k = False #与原点的连线垂直于x轴,没有斜率的
for i in range(n):
b = [int(i) for i in input().split(" ")]
x1 = b[0] - x#移动坐标轴,把意大利炮放在原点
y1 = b[1] - y
if x1 == 0:
not_have_k = True
else:
if different_k.count(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
ce98326eec9e867cfa84bc1b3f0f2d96f6af855a | 8cadad50417345f84ce275d455f4d9d851adcfcb | /accounts/views.py | 77c71b57912235123ee133a106e9127927d80431 | [] | no_license | amirbigg/django-blog | b67427dc9b087937c91e62bead242690658f8584 | 23d6d47dd3e309fa736cd891654a09da18d08427 | refs/heads/master | 2023-04-28T17:35:00.298592 | 2022-02-11T18:15:47 | 2022-02-11T18:15:47 | 226,943,807 | 26 | 6 | null | 2023-04-21T21:28:17 | 2019-12-09T18:51:29 | Python | UTF-8 | Python | false | false | 1,452 | py | from django.shortcuts import render, redirect
from .forms import UserLoginForm, UserRegistrationForm
from django.contrib.auth import authenticate, login, logout
from django.contrib import messages
from django.contrib.auth.models import User
def user_login(request):
if request.method == 'POST':
form = UserLoginForm... | [
"amirbig44@gmail.com"
] | amirbig44@gmail.com |
6c47467fdc2e3ac450e09175b287eb9a071c66b8 | 4cc4d9d488939dde56fda368faf58d8564047673 | /test/vts/testcases/framework_test/SampleSl4aTest.py | 0b1133ebb0c19c335cf4b803840db478b2dc7418 | [] | no_license | Tosotada/android-8.0.0_r4 | 24b3e4590c9c0b6c19f06127a61320061e527685 | 7b2a348b53815c068a960fe7243b9dc9ba144fa6 | refs/heads/master | 2020-04-01T11:39:03.926512 | 2017-08-28T16:26:25 | 2017-08-28T16:26:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | #!/usr/bin/env python
#
# Copyright (C) 2016 The Android Open Source Project
#
# 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 req... | [
"xdtianyu@gmail.com"
] | xdtianyu@gmail.com |
c0df06b16069e147b3de2e0d270c87285e2aa0b6 | 41c5267c5b1bf6cf726dfce7f203828ab58280cc | /addons/speakers/search_indexes.py | ea8cdc9aa44bee11e7a61be39a41760d719cc403 | [] | no_license | fbates/tendenci-site | 7484616ec13a07f05be3a7a9663bca6d6800360b | 8eb0bcd8e3269e92b505e8db4f81b35442fb4ac4 | refs/heads/master | 2021-01-11T10:55:56.171005 | 2012-11-15T18:15:21 | 2012-11-15T18:15:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from haystack import indexes
from haystack import site
from tendenci.core.perms.indexes import TendenciBaseSearchIndex
from addons.speakers.models import Speaker
class SpeakerIndex(TendenciBaseSearchIndex):
name = indexes.CharField(model_attr='name')
company = indexes.CharField(model_attr='company', null=Tru... | [
"eloyz.email@gmail.com"
] | eloyz.email@gmail.com |
587d324910fd7515c01c9051e7f77212a24b4987 | 5d302c38acd02d5af4ad7c8cfe244200f8e8f877 | /Array/1002. Find Common Characters(Easy).py | a9cdff36a75c8b1badf3cf74b7bdd55fe3ad92a2 | [] | no_license | nerohuang/LeetCode | 2d5214a2938dc06600eb1afd21686044fe5b6db0 | f273c655f37da643a605cc5bebcda6660e702445 | refs/heads/master | 2023-06-05T00:08:41.312534 | 2021-06-21T01:03:40 | 2021-06-21T01:03:40 | 230,164,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | class Solution:
def commonChars(self, A: List[str]) -> List[str]:
result = [];
chars = []
count = 0;
for char in A[0]:
chars.append(char);
for char in chars:
for i in range(1, len(A)):
if char in A[i]:
A[i] = A[i].re... | [
"huangxingyu00@gmail.com"
] | huangxingyu00@gmail.com |
749714a844151fe4c0679e06c57f2a0d1054a231 | f6786f5f51c0a71a09213e2f729766d1a04dffa2 | /두근두근_파이썬/12_PIL_Library/Challenge/353_mini_photo_shap.py | 055593ec369b0c2a9d65d294dc06ecc7d76899b9 | [] | no_license | SuperstarterJaeeun/Learn-Programming-Book | 4f075fdec386a0449da8d0d08bb8f1b6d6b2f304 | f768acfffcb20b9fc97946ca491f6ffb20671896 | refs/heads/master | 2023-07-24T07:13:24.374240 | 2021-09-06T14:56:02 | 2021-09-06T14:56:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | import tkinter as tk
from PIL import Image, ImageTk, ImageFilter
from tkinter import filedialog as fd
im = None
tk_img = None
def open() :
global im, tk_img
filename = fd.askopenfilename()
im = Image.open(filename)
tk_img = ImageTk.PhotoImage(im)
canvas.create_image(250, 250, image = tk_img) ... | [
"eona1301@gmail.com"
] | eona1301@gmail.com |
5ca87bde902dd3bf4220c279adaa44f9c33f59ee | 5b5178d073d6b1247feab1314004bae326bfcdba | /examples/comm_example3.py | e1cf73be2bba9c04fb90e163c6f7f8f0a9e10d25 | [] | no_license | abdcelikkanat/Evaluation | 4df6512e43af17e4ec9decd54e47efb88ac11952 | 8aec5948f40b1d4601d6408a8bee5b41a77c1e35 | refs/heads/master | 2021-06-16T05:08:37.057794 | 2019-04-15T09:20:36 | 2019-04-15T09:20:36 | 135,060,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,118 | py | import sys
sys.path.append("../../deepwalk/deepwalk")
import graph as dw
import networkx as nx
from gensim.models.word2vec import Word2Vec
from graphbase import randomgraph
from sklearn.cluster import KMeans
from community_detection.community_detection import *
N = 1000
kmeans_num_of_communities = 3
if kmeans_num_of_... | [
"abdcelikkanat@gmail.com"
] | abdcelikkanat@gmail.com |
c1304d7e44ef08ace8e1237716eab05f1f68aca8 | e0980f704a573894350e285f66f4cf390837238e | /.history/menus/models_20201030152904.py | 6448852a1a6a190459f0a1fdf0323ae50934112d | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | from django.db import models
from django_extensions.db.fields import AutoSlugField
from modelcluster.models import ClusterableModel
from modelcluster.fields import ParentalKey
from wagtail.core.models import Orderable
from wagtail.admin.edit_handlers import FieldPanel, PageChooserPanel, InlinePanel
class MenuItem(O... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
5f0f06a88ed13ff447815bfff00bb6f12829139f | e3b5f5a30c9ff552d0d67308410e595f7ba50e45 | /hierarc/Likelihood/LensLikelihood/td_mag_likelihood.py | 13c0388b57e84f80cf2f6f19eb9c719eb6f51c86 | [
"BSD-3-Clause"
] | permissive | LBJ-Wade/hierarc_SGL | 2332c424d6868ce099c736eaf5fea58a9282cd0c | 1dc2be90f44f99e82ab7014f2027fbb077b14f98 | refs/heads/main | 2023-08-12T02:23:14.328741 | 2021-08-16T21:06:01 | 2021-08-16T21:06:01 | 411,586,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,553 | py | import numpy as np
from lenstronomy.Util import constants as const
from lenstronomy.Util.data_util import magnitude2cps
class TDMagLikelihood(object):
"""
likelihood of time delays and magnification likelihood
This likelihood uses linear flux units and linear lensing magnifications.
"""
def __in... | [
"sibirrer@gmail.com"
] | sibirrer@gmail.com |
0be820d8c37117b65098b0e8dcdf0506cc8231b6 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Twitter/DirectMessages/__init__.py | 1d26f95881809e14b918cc47d392e77b4e48342c | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from GetDirectMessages import *
from SendDirectMessage import *
from DestroyDirectMessage import *
from GetMessageByID import *
from DirectMessagesSent import *
| [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
8c28b115446dbdfb81f139fe921de4b0f92fdd98 | 2233f520493f64c6070dd3e77722e53a7dd738e8 | /unittest_example/test_fixture.py | 372b4c964d16e91c4d8e53f9fd56d8ddf350e948 | [
"Apache-2.0"
] | permissive | mpjeffin/pynet-ons-oct17 | 690bb31600b8ef5131439bb25ddce35b4855ba6a | d0daf9c250f79bc34b3b8b06b67004f56ef834a2 | refs/heads/master | 2021-09-07T00:00:02.234456 | 2018-02-13T19:58:11 | 2018-02-13T19:58:11 | 125,467,721 | 1 | 0 | null | 2018-03-16T05:26:10 | 2018-03-16T05:26:10 | null | UTF-8 | Python | false | false | 621 | py | import pytest
from getpass import getpass
from netmiko import ConnectHandler
# Fixtures
@pytest.fixture(scope="module")
def netmiko_connect():
cisco1 = {
'device_type': 'cisco_ios',
'ip': '184.105.247.70',
'username': 'pyclass',
'password': getpass()
}
return ConnectHandle... | [
"ktbyers@twb-tech.com"
] | ktbyers@twb-tech.com |
5e57b310c8982173953ff99d06116aa3e3553169 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/5/usersdata/67/2931/submittedfiles/atm.py | a41e9c31c6bb1ca25bc098784953451c866f8b20 | [] | 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 | 219 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#COMECE SEU CODIGO AQUI
a=input("Digite o valor:")
c20=a/20
c10=a%20/10
c5=(a%20%10)/5
b=int(c20)
c=int(c10)
d=int(c5)
print(b)
print(c)
print(d)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a17dee7c5fb944081c8050c5f45db1235e19af04 | ba7be04fa897785fb9255df3ece0c1ffbead6acc | /db_model/__models.py | 5e401af90c7c2baa39db7a572dafabe7e1a10704 | [] | no_license | backupalisher/part4_project | e1f402553502d010ffe974ecce73e313f90b8174 | 09ca16e3021aeac609fe6594e5c4f6c72832d112 | refs/heads/master | 2022-12-10T13:22:15.899332 | 2020-09-21T16:22:02 | 2020-09-21T16:22:02 | 233,295,277 | 0 | 0 | null | 2022-12-08T10:47:45 | 2020-01-11T20:49:10 | Python | UTF-8 | Python | false | false | 3,601 | py | from django.db import models
# Create your models here.
class Brands(models.Model):
id = models.IntegerField(primary_key=True)
name = models.CharField(max_length=255)
logotype = models.CharField(max_length=255)
class Meta:
db_table = 'brands'
class Cartridge(models.Model):
id = models.I... | [
"server.ares@gmail.com"
] | server.ares@gmail.com |
223ba6282c9bc94c5ed8e642a43f151280243ba3 | bab8ce0d8b29292c8d6b0f2a6218b5ed84e7f98b | /account_cancel_with_reversal/tests/__init__.py | 658d50d7baed691aa4ea364101434b8fe6518ca1 | [] | no_license | ecosoft-odoo/ecosoft_v8 | 98e4116be3eceb287e2f3e9589d97155d5b8b745 | 71c56b0a102e340a5d80470243343654d8810955 | refs/heads/master | 2020-04-06T10:04:03.807855 | 2016-09-25T05:00:04 | 2016-09-25T05:00:04 | 51,049,848 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | # -*- coding: utf-8 -*-
from . import test_account_move_reverse
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
| [
"kittiu@gmail.com"
] | kittiu@gmail.com |
418af46acc26ae85ca432a2ce3ae0866495c20ba | 68b64faeb8394817e202567bce7dfc21c3ec8656 | /com/jian/keras/sequential_module.py | 49f8ea3b17585f06f36592a33671ab98b0ba32cc | [] | no_license | tianjiansmile/ML_filght | 04248d5a1f4108defdcc626e5de5e68692b4f1de | d60b422ba12945e4875d47e7730d10b1d2193d03 | refs/heads/master | 2020-05-26T21:59:59.773474 | 2020-05-07T04:59:34 | 2020-05-07T04:59:34 | 188,387,929 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,878 | py | from keras.layers import Input
from keras.models import Model
from keras.models import Sequential
from keras.layers import Dense, Activation
import keras
# 全连接网络
# This returns a tensor
inputs = Input(shape=(784,))
# a layer instance is callable on a tensor, and returns a tensor
x = Dense(64, activation='relu')(inpu... | [
"1635374633@qq.com"
] | 1635374633@qq.com |
b321d4867fffc42d14b955f41cfad9b8315c7d46 | 9206651d6b1acb483040dff19929851ce261bc73 | /src/lecture4/notes/classes3.py | 8403a8d3951fba3134667204a5528af74aff4485 | [] | no_license | Farooq-azam-khan/web-programming-with-python-and-javascript | eee8556b37b8f8bb4f420ce9d4949441fbf456dd | 0875982ecbbb2bfd37e7b41a09a43623ee6d5a96 | refs/heads/master | 2022-12-10T15:31:39.703121 | 2018-07-18T06:51:02 | 2018-07-18T06:51:02 | 138,975,972 | 0 | 0 | null | 2022-12-08T02:12:59 | 2018-06-28T06:29:26 | HTML | UTF-8 | Python | false | false | 627 | py | class Flight:
def __init__(self, origin, destination, duration):
self.origin = origin
self.destination = destination
self.duration = duration
def print_info(self):
print(f"origin: {self.origin}")
print(f"destination: {self.destination}")
print(f"duration:... | [
"farooq1.khan@ryerson.ca"
] | farooq1.khan@ryerson.ca |
df1c11b2140c9abaa45d0d6347c2d2721cc4c3ed | 8a73cde463081afd76427d5af1e6837bfa51cc47 | /harvester/edurep/tests/harvest_metadata_command.py | 7130625099872e671ff9870ad67d353dce224021 | [
"MIT"
] | permissive | surfedushare/search-portal | 8af4103ec6464e255c5462c672b30f32cd70b4e1 | 63e30ad0399c193fcb686804062cedf3930a093c | refs/heads/acceptance | 2023-06-25T13:19:41.051801 | 2023-06-06T13:37:01 | 2023-06-06T13:37:01 | 254,373,874 | 2 | 1 | MIT | 2023-06-06T12:04:44 | 2020-04-09T13:07:12 | Python | UTF-8 | Python | false | false | 2,105 | py | from core.tests.commands.harvest_metadata import TestMetadataHarvest, TestMetadataHarvestWithHistory
from core.constants import Repositories
from core.models import HarvestSource, Collection, Extension
from edurep.tests.factories import EdurepOAIPMHFactory
class TestMetadataHarvestEdurep(TestMetadataHarvest):
sp... | [
"email@fakoberkers.nl"
] | email@fakoberkers.nl |
ff86cf6de6529af0927862b17044cc444dd5d4b6 | a7288d7cce714ce3ddf3de464f959a2cb6c62e80 | /Flask/Validation/server.py | 53b50278ff6439f50a7c5be10f3f8892f29e1ddb | [] | no_license | jhflorey/Python | 94d898c9cfa05a941e0ac0c3506587ad494b76ab | 4d005000bb95ee4414a6aebef4cebdcbc13e4d99 | refs/heads/master | 2020-03-20T10:44:00.560147 | 2018-06-14T16:48:49 | 2018-06-14T16:48:49 | 137,382,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from flask import Flask, render_template, redirect, request, session, flash
app = Flask(__name__)
app.secret_key = 'JessicaSecret'
@app.route('/')
def index():
return render_template('index.html')
@app.route('/process', methods=['POST'])
def process():
if len(request.form['name']) < 1:
flash("Name can... | [
"jhflorey@gmail.com"
] | jhflorey@gmail.com |
1ae7147831e43416858f5a4d9cb8bb2156ed809b | 1ecde4178548f331f15717f245e3f657b58b9993 | /cyh_crawler/scrapySchool_England/scrapySchool_England/scrapySchool_England/main.py | 6a991c45461505cc2e4750caeff9610eac4cade2 | [] | no_license | gasbarroni8/python_spider | 296dcb7c3fd9dd028423fe5ec0a321d994478b15 | 7935fa462926bc8ea9bf9883bd15265dd0d3e6df | refs/heads/master | 2023-03-26T05:22:59.858422 | 2019-04-15T07:17:56 | 2019-04-15T07:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | from scrapy import cmdline
# cmdline.execute("scrapy crawl SwanseaUniversityPrifysgolAbertawe_U".split())
# cmdline.execute("scrapy crawl SwanseaUniversityPrifysgolAbertawe_P".split())
# cmdline.execute('scray crawl gaokao'.split())
# cmdline.execute('scrapy crawl picture'.split())
# cmdline.execute('scrapy crawl Un... | [
"18234405986@163.com"
] | 18234405986@163.com |
053fc23b9d1e676b148f8576250daae9dab76e85 | dfdb672bbe3b45175806928d7688a5924fc45fee | /Learn Python the Hard Way Exercises/ex6.py | bdc6a5f9f598451b3b7f4b3ccb790c295a9908c5 | [] | no_license | mathans1695/Python-Practice | bd567b5210a4d9bcd830607627293d64b4baa909 | 3a8fabf14bc65b8fe973488503f12fac224a44ed | refs/heads/master | 2023-01-01T13:49:05.789809 | 2020-10-26T02:37:05 | 2020-10-26T02:37:05 | 306,300,672 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | x = "There are %d types of people." % 10
binary = "binary"
do_not = "don't"
y = "Those who know %s and those who %s." % (binary, do_not)
print x
print y
print "I said: %r." % x
print "I also said: '%s'." % y
hilarious = 0
joke_evaluation = "Isn't that joke so funny?! %s"
print joke_evaluation % hilarious
w = "Thi... | [
"mathans1695@gmail.com"
] | mathans1695@gmail.com |
62f623a3627d7ac22b6f30c255b956e2e37f1f30 | 1515be3015ad988278d5a095416c0a0066a02757 | /src/users/models/componentsschemasmicrosoft_graph_windowsdevicemalwarestateallof1.py | 31ab5b0ad3a8ead943f9d1569c1e9baa891b4228 | [
"MIT"
] | permissive | peombwa/Sample-Graph-Python-Client | 2ad494cc5b5fe026edd6ed7fee8cac2dd96aaa60 | 3396f531fbe6bb40a740767c4e31aee95a3b932e | refs/heads/master | 2020-12-29T09:50:38.941350 | 2020-02-05T22:45:28 | 2020-02-05T22:45:28 | 238,561,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,670 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"peombwa@microsoft.com"
] | peombwa@microsoft.com |
7cd31f6504ec6f2a009af57d51a4d7882dc91bc5 | 27398b2a8ed409354d6a36c5e1d2089dad45b4ac | /tests/common/models/test_token.py | 8bdba91a77d0c587046d5ccedb7bbbd587801a7c | [
"Apache-2.0"
] | permissive | amar266/ceph-lcm | e0d6c1f825f5ac07d2926bfbe6871e760b904340 | 6b23ffd5b581d2a1743c0d430f135261b7459e38 | refs/heads/master | 2021-04-15T04:41:55.950583 | 2018-03-23T12:51:26 | 2018-03-23T12:51:26 | 126,484,605 | 0 | 0 | null | 2018-03-23T12:50:28 | 2018-03-23T12:50:27 | null | UTF-8 | Python | false | false | 2,667 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2016 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"sarkhipov@mirantis.com"
] | sarkhipov@mirantis.com |
1d6d4abe45b478740b0a9a93148f268895c3f441 | 20a0bd0a9675f52d4cbd100ee52f0f639fb552ef | /transit_odp/pipelines/receivers.py | 1a5817d416f6c9c4c2c8269a5f55a6e304ca1274 | [] | no_license | yx20och/bods | 2f7d70057ee9f21565df106ef28dc2c4687dfdc9 | 4e147829500a85dd1822e94a375f24e304f67a98 | refs/heads/main | 2023-08-02T21:23:06.066134 | 2021-10-06T16:49:43 | 2021-10-06T16:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | import celery
from django.db import transaction
from django.dispatch import receiver
from transit_odp.data_quality.tasks import task_dqs_download, task_dqs_report_etl
from transit_odp.organisation.constants import FeedStatus
from transit_odp.organisation.models import DatasetRevision
from transit_odp.organisation.rece... | [
"ciaran.mccormick@itoworld.com"
] | ciaran.mccormick@itoworld.com |
98f5ca074dd68ca76c524fdf9067f24985046436 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/Test002/数据类型_20201205162829.py | 4ad60fe9cb60917905bd6b19edde771ad9404d47 | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | fruits = ['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana']
# print(fruits.count("apple"))
# a = fruits.index("banana",4)
# print(a)
# fruits.reverse()
# print(fruits)
# fruits.append("daka")
# print(fruits)
a= r | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
500721d9011e251f5c83a5f683e8b128ba5cca62 | 6c6cf32f72c33c78ce07771328f5368564ebde5c | /autox/process_data/feature_type_recognition.py | 302050a7b24e1e9654829b4b776cb113400dc69d | [
"Apache-2.0"
] | permissive | emg110/AutoX | 9f3fdce5602eef7e1dc8ec99e0e60c3236da43d1 | 26eb6bea33b8e8428ee1afcd4403ccae2948724e | refs/heads/master | 2023-07-27T20:43:32.818251 | 2021-09-10T11:10:12 | 2021-09-10T11:10:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,769 | py | import pandas as pd
import datetime
from autox.CONST import FEATURE_TYPE
# datetime的表现形式为:2015-08-28 16:43:37.283
# timestamp的表现形式为:1440751417.283
def detect_TIMESTAMP(df, col):
try:
ts_min = int(float(df.loc[~(df[col] == '') & (df[col].notnull()), col].min()))
ts_max = int(float(df.loc[~(df[col]... | [
"946691288@qq.com"
] | 946691288@qq.com |
801b1698f76fd72430f6d4989a09735ae2002cce | e3c8f786d09e311d6ea1cab50edde040bf1ea988 | /Incident-Response/Tools/grr/grr/core/setup.py | c626095353055c7ac3288b16e37e0f43901a514b | [
"MIT",
"Apache-2.0"
] | permissive | foss2cyber/Incident-Playbook | d1add8aec6e28a19e515754c6ce2e524d67f368e | a379a134c0c5af14df4ed2afa066c1626506b754 | refs/heads/main | 2023-06-07T09:16:27.876561 | 2021-07-07T03:48:54 | 2021-07-07T03:48:54 | 384,988,036 | 1 | 0 | MIT | 2021-07-11T15:45:31 | 2021-07-11T15:45:31 | null | UTF-8 | Python | false | false | 4,697 | py | #!/usr/bin/env python
"""Setup configuration for the python grr modules."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import configparser
import itertools
import os
import shutil
import subprocess
import sys
fro... | [
"a.songer@protonmail.com"
] | a.songer@protonmail.com |
68f9071bc2d3e1d43621faf123d7dcbc6640e22f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_294/ch31_2020_04_13_14_21_04_841403.py | bcd912b0ee45d59242beaa15252d42d13f62912d | [] | 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 | 256 | py | def eh_primo (n):
if n == 0 or n == 1:
return False
elif n == 2:
return True
for i in range (3, n,2):
if (n%i ==0):
return False
elif (n%i == 0):
return False
else:
return True | [
"you@example.com"
] | you@example.com |
b75873de168a812387237e063712ca12fa4a326b | eff7b3aae8b923ca1ca82bffcfb7327030fcfb08 | /4/4.26.py | d0448e0908a9773136139dfa98a9dbe1a1a13daf | [] | no_license | blegloannec/cryptopals | fec708c59caaa21ec2eeb47ed7dda7498a4c36b1 | 438bc0653981e59722a728c7232a1ea949e383ee | refs/heads/master | 2022-05-19T02:48:47.967056 | 2021-12-28T13:02:04 | 2022-03-07T17:02:40 | 143,565,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | #!/usr/bin/env python3
# this is 2.16 (CBC bitflipping) for CTR, which is trivial
# as in CTR mode the plaintext is xored against the generated
# stream, hence it is directly vulnerable to bitflipping: any bit
# flipped in the ciphertext will be flipped in the decrypted text
from Cryptodome.Cipher import AES
from Cry... | [
"blg@gmx.com"
] | blg@gmx.com |
ceb0496d20400be814da009ed346bfa457d2b81c | 8c8463413e92149ad0ff16eac0b09303ec18de99 | /ddt_python/ddt_container_nSvgTable.py | 49598644a372ca534c89455733b6531bc85f4502 | [
"MIT"
] | permissive | dmccloskey/ddt_python | 23d0d4d2193fe052545b890ef332056f869117cf | 60624701a01520db81c89b36be6af385a5274aba | refs/heads/master | 2021-01-19T02:01:57.769244 | 2016-12-02T01:21:11 | 2016-12-02T01:21:11 | 48,295,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,278 | py | from .ddt_container import ddt_container
from .ddt_tile import ddt_tile
from .ddt_tile_html import ddt_tile_html
class ddt_container_nSvgTable(ddt_container):
def make_nSvgTable(self,
data1,data2,
data1_keys,data1_nestkeys,data1_keymap,
data2_keys,data2_nestkeys,data2_keymap,
tilehe... | [
"dmccloskey87@gmail.com"
] | dmccloskey87@gmail.com |
c98ea5753067696b58095c2bc6f8717a0a9e8274 | 47cde4a1cfbb05aa256064e03c6ab85650865ee4 | /jackbox/bombintern.py | 7663ac4f0a2d2322468e04115302cc8865952578 | [
"Apache-2.0"
] | permissive | Gorialis/jackbox.py | 54b5bbb25afd9233a594c6d1e861528b0dd3349e | 509bdab63a56114b2d5c8d1fe3220bc7f04ea834 | refs/heads/master | 2021-01-15T00:13:26.902245 | 2020-02-24T16:15:19 | 2020-02-24T16:15:19 | 242,808,186 | 0 | 0 | Apache-2.0 | 2020-02-24T18:13:48 | 2020-02-24T18:13:47 | null | UTF-8 | Python | false | false | 6,784 | py | """
/jackbox/bombintern.py
Copyright (c) 2020 ShineyDev
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... | [
"contact@shiney.dev"
] | contact@shiney.dev |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.