blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2d2699072eae36c651fe088d627f69f90b657d58 | b39ec77a8f5a5779edcecf5a09c39224472fd139 | /Clase03/contar.py | 0b60d0a7381ff2765efd0891e4b3ce879ffe2a47 | [] | no_license | GonzaloMonteodorisio/ejercicios-python-unsam | 76b6288491ccba8f44b819c26bed4811268e995e | 37ba16197107717a4c582eb552175e1c981c286b | refs/heads/main | 2023-07-28T07:18:10.178029 | 2021-09-15T05:42:46 | 2021-09-15T05:42:46 | 406,627,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | for n in range(10,0,-1):
print(n, end=' ') | [
"[email protected]"
] | |
3c70c973d79447bece9afe2d49c5fd583a4173dd | 4bfe4afd1b1e11f9a03d8e3640aa297c875c076d | /demos/basic.py | 9a86954581726ae9f13bad67294d6355e90d696a | [] | no_license | pankajti/capstone | 81cdd2187e71e8d1bf327579b574ea7cf91a7e76 | af57a52d34dbcdd40e8e81f1d72c142263a98893 | refs/heads/master | 2021-03-02T09:49:51.054153 | 2020-07-09T02:28:58 | 2020-07-09T02:28:58 | 245,857,468 | 0 | 0 | null | 2020-03-22T00:54:01 | 2020-03-08T17:26:43 | null | UTF-8 | Python | false | false | 240 | py | from tensorflow.keras.layers import Dense,SimpleRNN
from tensorflow.keras import Sequential
import numpy as np
from tensorflow.keras.utils import plot_model
model =Sequential()
model.add(Dense(2))
model.add(Dense(1))
plot_model(model)
| [
"[email protected]"
] | |
4faba1910def77457e265813a6749d9fcdc2c9fa | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_write_3/managed-prefix-list_create.py | a37a54b7d58925db27ffcd48c98d760451977f82 | [] | 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,393 | 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_three_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/create-managed-prefix-list.html
if __name_... | [
"[email protected]"
] | |
5c80ed9e14391ad32e4cc6fd9fcae8dce388c672 | 479518429066a4200b0c9ffbc42f22620dee1749 | /app.py | 5074f7904d2af983e17faf125c1a1f1f6874b9a4 | [] | no_license | nikhilkumarsingh/nitdhack | d2b4871c2aa3ef461c409a2f75e4f346759f1797 | 633ddf770c19fb8b0dd66479bc8e865e36181ffa | refs/heads/master | 2021-01-19T21:33:27.880021 | 2017-04-18T23:43:06 | 2017-04-18T23:43:06 | 88,665,337 | 0 | 1 | null | 2018-10-03T05:33:57 | 2017-04-18T19:59:40 | JavaScript | UTF-8 | Python | false | false | 1,291 | py | import flask
app = flask.Flask(__name__,static_folder='static')
app.config.from_object(__name__)
app.config['SECRET_KEY'] = '7d441f27d441f27567d441f2b6176a'
@app.route('/')
def home():
return flask.render_template('index.html')
def NearbySearch(lat,lng,keyword,radius=1000):
key="AIzaSyApuFoKxVMRQ2einlsA0rkx2S4WJj... | [
"[email protected]"
] | |
48201b6182773eb907fb42c0093c1f0bf47efc96 | 853c189602a667990eda858db98d163fb597caa1 | /tfx/orchestration/experimental/core/constants.py | e5a5208afa70ef912a346dc02d4fe9ccce962866 | [
"Apache-2.0"
] | permissive | swap-10/tfx | 9bef96fc592810ed2d7dfa5dd60044c9ac481e02 | 8e80ce2486b4d7b219dcff906d6930e62c5fdd45 | refs/heads/master | 2023-07-15T22:54:18.642120 | 2021-09-06T06:17:48 | 2021-09-06T06:17:48 | 402,296,955 | 0 | 0 | Apache-2.0 | 2021-09-02T05:49:03 | 2021-09-02T05:09:23 | null | UTF-8 | Python | false | false | 823 | py | # Copyright 2021 Google LLC. 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 a... | [
"[email protected]"
] | |
1186138ee1bd98ce6cc3c24b6d4b5d7158920d79 | f81099738d3ab7d4a4773a04ed9e36e493632590 | /angelos-portfolio/test/test_domain_update.py | 2ccd8c81f1a7ea5f7e2d64656a9b8ccd5a5df49a | [
"MIT"
] | permissive | kristoffer-paulsson/angelos | eff35753e4d7e4465d2aadac39265f206b09fcf9 | d789f47766fe3a63a6752b92e4ea955f420dbaf9 | refs/heads/master | 2022-05-05T15:16:59.340527 | 2022-03-27T16:05:51 | 2022-03-27T16:05:51 | 142,691,235 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | #
# Copyright (c) 2018-2020 by Kristoffer Paulsson <[email protected]>.
#
# This software is available under the terms of the MIT license. Parts are licensed under
# different terms if stated. The legal terms are attached to the LICENSE file and are
# made available on:
#
# https://opensource.org/lice... | [
"[email protected]"
] | |
482b54447b3f7cd5d3fb519221920951b5b68ed0 | d9764a604c85c134ff217747d243eac8fe28e792 | /src/demo2.py | e3c0801f18c91206c2e18df08c2caacf8e0007bf | [] | no_license | afcarl/INF421-project | 5a0130c3ba6e0c767323001048d3f191379dbc6e | dc6eef684f6d277b6a9bbbc227a9e20a1525e115 | refs/heads/master | 2020-03-19T21:21:53.465240 | 2017-08-14T13:39:52 | 2017-08-14T13:39:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | #!/usr/bin/env python3
"""
Special notes :
This implementation supports MULTIPLE shortest path.
(except for the number_of_possible_locations_with_mindist_simple function)
"""
import random
from Graph import Graph
from algo import *
from unused import *
from Dijkstra import *
from util import timeit
from reach import... | [
"[email protected]"
] | |
136b1182e8e9b3bb6006d82097af6a64457a1413 | 817965ef6ee70672eabedbbafe336ca07d6443ff | /0x0B-python-input_output/8-load_from_json_file.py | 34f8ae593948ca8fc24e3410cf357a351c626b5f | [] | no_license | julianfrancor/holbertonschool-higher_level_programming | f021086eb2a86b366c391452b13581c87587a3a8 | bd2a291c725ba09d88e9a629d0b22cf4ed7122e7 | refs/heads/master | 2022-12-23T05:27:27.942300 | 2020-09-24T21:22:56 | 2020-09-24T21:22:56 | 257,935,813 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | #!/usr/bin/python3
"""
function that creates an Object from a “JSON file”
"""
import json
def load_from_json_file(filename):
"""
Args
filename: JSON file form where the string
is going to be read
json.dumps() method can convert a Python object into a JSON string.
json.dump() method ... | [
"[email protected]"
] | |
d6b4abc7fbe0628b62ce4ae5c4de91acedb25971 | 962feeffee41625ff841f6590f97bb09cef9be4c | /torch_glow/tests/nodes/avgpool3d_test.py | 93e26349ac4e677a2d89d2388568725436963f2f | [
"Apache-2.0"
] | permissive | SushantDaga/glow | 8c4c3fbc58c3ae760bdd8e1df2e8c05a72ff07bc | aab22c3e0421dadd29950c2ebfa88b86027cecf5 | refs/heads/master | 2022-11-03T08:39:33.958233 | 2020-06-19T17:03:14 | 2020-06-19T17:05:42 | 273,568,864 | 2 | 0 | Apache-2.0 | 2020-06-19T19:12:31 | 2020-06-19T19:12:30 | null | UTF-8 | Python | false | false | 860 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import torch
import torch.nn.functional as F
from tests.utils import jitVsGlow
import unittest
class TestAvgPool3d(unittest.TestCase):
def test_avg_pool3d_basic(self):
"""Basic test of the PyTorch avg_pool3d Node on Glow.... | [
"[email protected]"
] | |
e9f935855c936f7be736e9cada0f8dfb9d5cbf2c | 6f444f025f27a10dd7b1bf61083ea2832ffcb196 | /backend/location/api/v1/serializers.py | f4a37f977e26a6abd08e6dffcee6108c10dadd98 | [] | no_license | crowdbotics-apps/ledger-wallet-29295 | 2fe0eee9e06cb1f5c8e514ad650df8276aac789b | d96542a71685ce6d335882c10cf840355c8252f7 | refs/heads/master | 2023-06-24T00:46:30.889717 | 2021-07-30T20:37:03 | 2021-07-30T20:37:03 | 391,182,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from rest_framework import serializers
from location.models import TaskLocation, CustomerLocation, TaskerLocation, MapLocation
class CustomerLocationSerializer(serializers.ModelSerializer):
class Meta:
model = CustomerLocation
fields = "__all__"
class MapLocationSerializer(serializers.ModelSeria... | [
"[email protected]"
] | |
8b95e2ada92485e2e3e8915583d7b6c7899d04f7 | 5022b48f311ba4710e1851855552b9546a3142c5 | /unittest/case_test.py | 3b355326b97f14c7a95801f1b8d7f47cb5b04d82 | [] | no_license | 18786262315/python_lx | a7a15a294312b8382c3d1fd97a8d0ede38f1c5a5 | a870d49cc4ca6efd1b54c2b89dfbf5e3d911a568 | refs/heads/master | 2020-03-21T12:37:30.748759 | 2020-03-18T09:31:31 | 2020-03-18T09:31:31 | 138,563,274 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,228 | py | '''
unittest条件断言
tester: cc
此文仅做翻译只用,不介绍具体使用
'''
Skiptest() # 在测试中引发此异常以跳过该异常。
_ShouldStop() # 停止测试
_UnexpectedSuccess() # 测试本来应该是失败的,但是没有失败
Skip() # 无条件跳过测试。
skipIf(condition, reason) # 条件为真时跳过测试
skipUnless(condition, reason) # 条件为假时跳过测试
expectedFailure(test_item) # 标记该测试预期就是失败,如果运行失败时,不算作失败用例。
_is_subtype(ex... | [
"[email protected]"
] | |
8904819a1aed374abfd0b4aa31c6e9d42770301e | be8190250b78ced1dbc94ae8c9774299621c3905 | /boxtree/pyfmmlib_integration.py | 812eae4aa4d044bb5f198e8d8b8674066014057b | [
"MIT"
] | permissive | Dracogenius17/boxtree | 45b03f67df5c9faaffccec25d480dde787cd15ac | 313159f001c5d8c4bbe68de65ed1077a954ce2f9 | refs/heads/master | 2021-05-02T02:36:42.958288 | 2017-12-13T16:44:23 | 2017-12-13T16:44:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,929 | py | from __future__ import division
"""Integration between boxtree and pyfmmlib."""
__copyright__ = "Copyright (C) 2013 Andreas Kloeckner"
__license__ = """
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 So... | [
"[email protected]"
] | |
820ed298b2d0d51b64a647c759fec6a4a95c79e1 | 0c4b33d04cf7fb73b3752b03af89eeaf76b8a0d2 | /第14章-网络编程/client.py | 93a57207689113ca5cbd684fb77a81dba69d2db4 | [] | no_license | kingflyfly/python_study | 3b3ab427d23174b61b8f14c223059cfa9f303219 | 8a63a7c11b408bbc11a2b636517beaa424b37725 | refs/heads/master | 2020-06-11T01:39:52.655730 | 2020-03-24T16:09:39 | 2020-03-24T16:09:39 | 193,817,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import socket
import sys
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = socket.gethostname()
port = 9992
# 连接服务,指定主机和端口
s.connect((host, port))
# 接收小于 1024 字节的数据
msg = s.recv(1024)
s.close()
print (msg.decode('utf-8')) | [
"[email protected]"
] | |
81f726744a38d25f6099ad36107663ac8a5d3212 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-2805.py | b2c7ae07ef65cab60cc16a7073cc6a18c9d869b1 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,992 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"[email protected]"
] | |
b9691e61dfe1e73f0cfed348461860d2ce4d6495 | 16ecabb5d9010c7fa4aebb8ab852f7c6a19193db | /src/0809.py | 0ba2428a1bbf7638358e2412cd9b40399abf0b68 | [] | no_license | LeeSM0518/OpenCV-python | 74ff0d899d291a35f9cd82d2ef37835a0c5ccdf2 | 46c234879f5d48876ca0888bdede8bfb347b7c30 | refs/heads/master | 2020-04-30T19:35:33.201278 | 2020-02-25T14:35:20 | 2020-02-25T14:35:20 | 177,043,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # 0809.py
import cv2
import numpy as np
#1
src = cv2.imread('./data/momentTest.jpg')
gray = cv2.cvtColor(src, cv2.COLOR_BGR2GRAY)
ret, bImage = cv2.threshold(gray, 128, 255, cv2.THRESH_BINARY)
#2
##M = cv2.moments(bImage)
M = cv2.moments(bImage, True)
for key, value in M.items():
print('{}={}'.for... | [
"[email protected]"
] | |
b08a51aeb6644672aa2d6a3f7fcc2d9b19c3f3a1 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/insights/v20210401/data_collection_rule_association.py | e5cc8f03d180c23ad08149bb40a76e212462e4f5 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 12,201 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"[email protected]"
] | |
d670fc71f610fb31b49e00a8c5c71b54ca6ed4ef | 83a59e255f681e85828399c6c2323f2cf0997e10 | /kibble/scanners/scanners/git-evolution.py | 8f4a83698faccdae147d2985f32bfb605884f6ff | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | kaxil/kibble | f4ab6f1039086adcb37c544c60bbbc27e8538128 | 96959acec06fed4d91d5da73fee1aa1200ffbb3c | refs/heads/main | 2023-02-01T03:14:53.813091 | 2020-12-16T23:04:45 | 2020-12-16T23:04:45 | 320,881,184 | 1 | 0 | Apache-2.0 | 2020-12-12T17:04:54 | 2020-12-12T17:04:54 | null | UTF-8 | Python | false | false | 8,447 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"[email protected]"
] | |
c031f3295b1ed90617b561c8f7640b752aad51fd | af53fb6bd0cd0ff70c68e43482b49420f0262764 | /odonto/odonto_submissions/supplier_testing/case_43.py | 84c48fea337719163487c20c990d24e7a60d00b3 | [] | no_license | gmolate/odonto | 34b41c18b972c7e10be46874a630c0016d6f7237 | f198608c41e9b991550a7929d28eb10002a3a664 | refs/heads/master | 2020-12-08T00:47:43.903738 | 2019-04-30T15:19:18 | 2019-04-30T15:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,711 | py | import datetime
from odonto.odonto_submissions.serializers import translate_to_bdcs1
from fp17 import treatments, exemptions
def annotate(bcds1):
bcds1.patient.surname = "CARTWRIGHT"
bcds1.patient.forename = "TOM"
bcds1.patient.address = ["40 HIGH STREET"]
bcds1.patient.sex = 'M'
bcds1.patient.dat... | [
"[email protected]"
] | |
56cc543721a5b79b5868f04319f7b73cc77938e1 | 313bb88c43d74995e7426f9482c6c8e670fdb63c | /08-exceptions/example3.py | 1d5bd8590e2c604e419ba991a4bc99737535992e | [] | no_license | martakedzior/python-course | 8e93fcea3e9e1cb51920cb1fcf3ffbb310d1d654 | 3af2296c2092023d91ef5ff3b4ef9ea27ec2f227 | refs/heads/main | 2023-05-06T07:26:58.452520 | 2021-05-26T16:50:26 | 2021-05-26T16:50:26 | 339,822,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | class CustomError(Exception):
pass
raise CustomError('hahaha') | [
"[email protected]"
] | |
58d3cfda83ea5046fc57e7c8de3e95fa26d4f198 | 555b9f764d9bca5232360979460bc35c2f5ad424 | /google/ads/google_ads/v2/proto/resources/ad_group_audience_view_pb2.py | 26b4ed14fc842a81e3edeec29f2158892b497c43 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | juanmacugat/google-ads-python | b50256163782bc0223bcd8b29f789d74f4cfad05 | 0fc8a7dbf31d9e8e2a4364df93bec5f6b7edd50a | refs/heads/master | 2021-02-18T17:00:22.067673 | 2020-03-05T16:13:57 | 2020-03-05T16:13:57 | 245,215,877 | 1 | 0 | Apache-2.0 | 2020-03-05T16:39:34 | 2020-03-05T16:39:33 | null | UTF-8 | Python | false | true | 3,716 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v2/proto/resources/ad_group_audience_view.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.proto... | [
"[email protected]"
] | |
e5fc5f00fd14a45cd84e931f7688de9dc9f1f1d1 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /115_testing/examples/Github/_Level_2/unittest-master/python/csv_db.py | 786e3e036143a86b8c363cf013bd10f92db6061b | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 5,718 | py | # finalproject.py
# @author: Shubham Sachdeva
# @email:
# @date: 18-13-09
# reads data from input.csv
# For simplicity reads only ['GEO'], ['DGUID'], ['Food categories'], ['Commodity'] fields
# class Product - a class defining a record
# def read_csv - function that reads data from given file
import ... | [
"[email protected]"
] | |
b5c5f8e3ab90157f0a3222bf826041a3ef6bcb5b | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /2f9vjBiynkBtF3TBi_5.py | 2de62cfd6805420701dc4149649d92594859e806 | [] | 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 | 1,072 | py | """
In this challenge, you must verify the equality of two different values given
the parameters `a` and `b`.
Both the _value_ and _type_ of the parameters need to be equal. The possible
types of the given parameters are:
* Numbers
* Strings
* Booleans (`False` or `True`)
* Special values: `None`
What hav... | [
"[email protected]"
] | |
e28e74228f1af21ae745a066e94997e5017c48a7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03060/s273862278.py | 42e46ce98c38ed062b3f6706f319584553664cc6 | [] | 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 | 317 | py | import sys
import math
import bisect
def main():
n = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
for i in range(n):
A[i] -= B[i]
ans = 0
for a in A:
if a > 0:
ans += a
print(ans)
if __name__ == "__main__":
main()
| [
"[email protected]"
] | |
79d2d7e1e1faba7d6c94883f29e01293b580434f | 00d7824d2699fc7a90de167e04ff49a210458f2c | /tests/base/datasets.py | fd9e0b5672f766bd4ea76762fd4259aa91bdc98d | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | jtamir/pytorch-lightning | 867feab3062ed2e3357b640588220efde349f97b | 9b89a24b04dff50c0595c5399e9ba61b39745def | refs/heads/master | 2021-07-10T19:40:53.410989 | 2020-11-04T05:59:16 | 2020-11-04T06:00:28 | 213,468,663 | 1 | 0 | Apache-2.0 | 2019-10-07T19:28:07 | 2019-10-07T19:28:06 | null | UTF-8 | Python | false | false | 8,570 | py | # Copyright The PyTorch Lightning 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 law or agreed to i... | [
"[email protected]"
] | |
5ab24c6a8ec0f36df320431b89ea6470b8909a7e | f4b5721c6b3f5623e306d0aa9a95ec53461c1f89 | /backend/src/gloader/xml/xslt/AttributeValueTemplate.py | 7f4c982f79e53d298825f773d7843f57e306cd56 | [
"MIT"
] | permissive | citelab/gini5 | b53e306eb5dabf98e9a7ded3802cf2c646f32914 | d095076113c1e84c33f52ef46a3df1f8bc8ffa43 | refs/heads/uml-rename | 2022-12-10T15:58:49.578271 | 2021-12-09T23:58:01 | 2021-12-09T23:58:01 | 134,980,773 | 12 | 11 | MIT | 2022-12-08T05:20:58 | 2018-05-26T17:16:50 | Python | UTF-8 | Python | false | false | 3,437 | py | ########################################################################
#
# File Name: AttributeValueTemplate.py
#
#
"""
Implementation of AVTs from the XSLT Spec.
WWW: http://4suite.com/4XSLT e-mail: [email protected]
Copyright (c) 1999-2000 FourThought Inc, USA. All Rights Reserved.
See http://4suite.c... | [
"[email protected]"
] | |
83fef1df13d09343fd01f3337ac2d6bbc7f03c8d | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2618/60895/291182.py | ab6450cf38238d5387e2704d4907b7d62fce72fb | [] | 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 | 200 | py | t=int(input())
while t>0:
t=t-1
n=int(input())
s=input()
if s=='2 3 1' or s=='2 1 3':
print(1)
elif s=='4 3 1 2' or s=='2':
print(2)
else:
print(s) | [
"[email protected]"
] | |
db6ce37579d5c07f61e8b4a4197f106ecf688cc5 | 2293c76c3d18e2fcd44ded90bd40113d26285663 | /pyeccodes/defs/mars/grib_efhs_cd_def.py | 7454080db49fb1b562273035d3aeca6265c63663 | [
"Apache-2.0"
] | permissive | ecmwf/pyeccodes | b1f121dbddf68d176a03805ed5144ba0b37ac211 | dce2c72d3adcc0cb801731366be53327ce13a00b | refs/heads/master | 2022-04-23T10:37:40.524078 | 2020-04-18T06:30:29 | 2020-04-18T06:30:29 | 255,554,540 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | import pyeccodes.accessors as _
def load(h):
h.alias('mars.step', 'stepRange')
h.alias('mars.quantile', 'quantile')
| [
"[email protected]"
] | |
3b8f140a37c4d7ec791530c2bab613446afc7ba6 | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba2004.pngMap.py | 606da98a32c0cbc92bb93493e35a6e3aab1839af | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba2004.pngMap = [
'00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111',
'00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111111111',
'0000000000000000000000000000000000000... | [
"[email protected]"
] | |
86f816fa4c07689b4bbb27949c7e824974c6af10 | c46754b9600a12df4f9d7a6320dfc19aa96b1e1d | /tests/models/deit/test_image_processing_deit.py | 21dc3d9e95a79f48a9c4a6af5658a0715ce5faf6 | [
"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 | 4,508 | py | # coding=utf-8
# Copyright 2021 HuggingFace Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"[email protected]"
] | |
c5afaa2e84fa29e5ab2ebdf6d8bad5d14b00c86e | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Quantization/trend_ConstantTrend/cycle_12/ar_/test_artificial_1024_Quantization_ConstantTrend_12__0.py | 8099a2bf0f032e0aa56a37bec74624f179bb330f | [
"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 | 272 | 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 = "ConstantTrend", cycle_length = 12, transform = "Quantization", sigma = 0.0, exog_count = 0, ar_order = 0); | [
"[email protected]"
] | |
08329b9459b84578dea46f87b58ec8643041c8b8 | 584f7b51d7cd529448e2fc0147557e26931ab17e | /test_UsePyFFTW.py | 5b4eb17729decdd1676234fbf4fc635aba9dee8e | [
"BSD-3-Clause"
] | permissive | opticspy/lightpipes | 8ca0d2221a1b893de5e51fec9061e90b9145f5f8 | f4ffdedb3ab2f9b5ae5a9a8e37985d2a7f8bb2ef | refs/heads/master | 2023-09-04T19:07:11.376631 | 2023-09-04T15:24:55 | 2023-09-04T15:24:55 | 80,127,706 | 191 | 55 | BSD-3-Clause | 2023-08-23T00:45:33 | 2017-01-26T15:39:28 | Python | UTF-8 | Python | false | false | 460 | py | #! /usr/bin/env python
"""
Script to test the new usePyFFTW option to compare pyFFTW and numpy FFT
"""
import time
from LightPipes import *
start_time = time.time()
wavelength = 500*nm
size = 25*mm
N = 1000
F=Begin(size, wavelength, N)
F=Fresnel(F, 100, usepyFFTW = True)
print(F.field[23,33])
#Fresnel: (1.0795142552... | [
"[email protected]"
] | |
3ac69e9105cdc2bfb5dd22f1c4bf0bb8a2ca87c4 | 3dc647cd07a7361ed401e40d2b7cce8c826c8f6c | /Lib/test/test_json/test_dump.py | 13b40020781bae33ea47c8ff5446030e7f348677 | [
"Python-2.0",
"CC-BY-4.0",
"MIT"
] | permissive | RustPython/RustPython | 5ddce4a9848b9de8c041ffd2634f83c0105d3f39 | b864e5da1f18897fc884180b7093df5aa170024f | refs/heads/main | 2023-09-04T12:38:29.458699 | 2023-09-03T12:33:42 | 2023-09-03T12:33:42 | 135,201,145 | 15,815 | 1,302 | MIT | 2023-09-14T08:11:45 | 2018-05-28T19:27:01 | Rust | UTF-8 | Python | false | false | 2,409 | py | from io import StringIO
from test.test_json import PyTest, CTest
from test.support import bigmemtest, _1G
class TestDump:
def test_dump(self):
sio = StringIO()
self.json.dump({}, sio)
self.assertEqual(sio.getvalue(), '{}')
def test_dumps(self):
self.assertEqual(self.dumps({}),... | [
"[email protected]"
] | |
d543afbd88b02247daaffc3464471ccbfa5b366a | 03969015ab882f4751dc0e91beeda1212babca48 | /robot_code/Nimbus_ws/build/robotiq_85_gripper_actions/catkin_generated/pkg.develspace.context.pc.py | 5deddba43de547be76a27e50e515649c31ddd7ff | [] | no_license | lnairGT/Thesis_code | f3ad57f4344691227dcd128a741eb9c0e937738e | 6f5dbfc2510272f294a0e9bb4273beceeacbff2a | refs/heads/master | 2023-03-17T21:43:56.320553 | 2020-09-26T16:05:31 | 2020-09-26T16:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "robotiq_85_gripper_actions"
PROJECT_S... | [
"[email protected]"
] | |
8da6c731d5e0553722f2e56ef3a7a028a86cce95 | 4ca8df3a127e9b15cbfecea6505928741f685a63 | /gongfei/month03/Django/onlybuy/OnlyBuy/goods/migrations/0002_goods_saller.py | d6b69407f107d03ed0eace38b76d59329ac825ea | [] | no_license | gongfei6644/gongfei | 2beb082c56197bc23ca20a6927ff6c10d8beaa83 | bfdd5e6a3a8d76ad1e43cf54df186b944cad29e4 | refs/heads/master | 2022-11-30T20:49:22.213040 | 2020-08-16T12:52:28 | 2020-08-16T12:52:28 | 286,283,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2019-06-19 14:35
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"1"
] | 1 |
6267d7aa1c8e47d9c979f168d10dee757731de26 | 6a08edd0e30d12eb89e8de486e2d2d0dddff74d7 | /run_experiments/general_utils/lightgbm_optimizer.py | 07f654e8ef7d6c22e4eed79240bb1347e38b469c | [] | no_license | jrzaurin/tabulardl-benchmark | 63b0fa2c046f9900a51b0223a884c475ac66b17f | ceb7b7f8bc90666b2d010fe570a77eb3ff2dde78 | refs/heads/master | 2023-05-29T11:29:30.371284 | 2021-06-12T16:32:20 | 2021-06-12T16:32:20 | 356,328,779 | 46 | 7 | null | 2021-06-10T16:44:51 | 2021-04-09T16:08:21 | Python | UTF-8 | Python | false | false | 6,539 | py | import warnings
from typing import Any, Dict, Optional
import lightgbm as lgb
import pandas as pd
from hyperopt import Trials, fmin, hp, space_eval, tpe
from lightgbm import Dataset as lgbDataset
from optuna.integration.lightgbm import LightGBMTunerCV
from sklearn.metrics import log_loss, mean_squared_error
warnings.... | [
"[email protected]"
] | |
8368a60298be2826652c9b2392af1de2414977d0 | 36df29dbd2c79f41ee5e70a6b836303d0f0fe186 | /day1-15/day01/temperature.py | 682675e9cff305a0db4848e6ddfe9d9035042a27 | [] | no_license | roohom/Program_100Days | abbe20d5df4444adadc937f23f1e402fce3a8273 | 3fd87da8b8edaaeb9349f68db0b9b3cd0db9f159 | refs/heads/master | 2021-01-13T18:06:52.899517 | 2020-08-30T15:37:07 | 2020-08-30T15:37:07 | 242,451,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/2/24 14:40
# @Author : Roohom
# @Site :
# @File : temperature.py
# @Software: PyCharm
"""
将华氏温度转化为摄氏温度
"""
F = float(input("请输入华氏温度:"))
C = (F - 32) / 1.8
print('%.2f华氏度 = %.1f摄氏度' % (F, C)) | [
"[email protected]"
] | |
f2bb534fa1b683ba85fc3a83e9e250269fa4c85b | 7b1de4a2607e3125b719c499a05bf6e2d3ec532d | /exceptions/chaining_demo.py | 714dc5ff28adfb14c75345702632fc8819a3e118 | [] | no_license | ganqzz/sandbox_py | 61345ac7bddb09081e02decb78507daa3030c1e8 | cc9e1ecca2ca99f350a3e2c3f51bbdb5eabc60e1 | refs/heads/master | 2022-12-01T21:54:38.461718 | 2021-09-04T03:47:14 | 2021-09-04T03:47:14 | 125,375,767 | 0 | 1 | null | 2023-04-16T00:55:51 | 2018-03-15T14:00:47 | Python | UTF-8 | Python | false | false | 830 | py | def func():
raise ValueError('from func()')
# set __cause__ = None
def demo1():
try:
func()
except ValueError:
raise RuntimeError('from demo1()')
# set __cause__ = e
def demo2():
try:
func()
except ValueError as e:
raise RuntimeError('from demo2()') from e
# set... | [
"[email protected]"
] | |
a70df48b3d89a7e34053a6ef0765c32639ea0b8b | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/regressiontests/localflavor/it/tests.py | cce0b49576318774ae32ed146df39c7063a0b7b5 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/localflavor/it/tests.py | [
"[email protected]"
] | |
e9bed052d8dc90762bbb0cc2031106059fedb6e3 | dcd8a0a9ce04818487ba7d46a1ba07d18fb08b9f | /torch/quantization/_quantize_script.py | 5d77785cc7742a543324d7df64ba47cd81852158 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | thomaswang525/pytorch | 284efc782fdc333e24892ac10b4d8963f812bd0b | 9e3605de98abb969124faff96e6e90e4f4014eb6 | refs/heads/master | 2021-05-18T08:30:09.190932 | 2020-03-30T02:46:19 | 2020-03-30T02:48:29 | 251,193,560 | 1 | 0 | NOASSERTION | 2020-03-30T03:38:57 | 2020-03-30T03:38:57 | null | UTF-8 | Python | false | false | 4,668 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import torch
from .qconfig import QConfig
from torch.jit._recursive import wrap_cpp_module
class ConvPackedParams(torch.nn.Module):
def __init__(self):
super(ConvPackedParams, self).__init__()
wq = torch._empty_affi... | [
"[email protected]"
] | |
3a16940ab2a40e617ed92c2249c39f81f6e348a5 | b553e12ccd8d7d4653e8987688494e322602b146 | /scripts/process/hotfixes/hotfixes.py | c5ad7d2ee221c15e40f05ba30bc00eb6616c2370 | [
"MIT"
] | permissive | fossabot/forensicworkflows | 2a7339bc9e97f18e8a4f432e7a534f5318e1e8dc | fca4bcf5363163e6fdd78763fa4aa208c1f72d1f | refs/heads/master | 2022-04-14T21:36:26.770660 | 2020-04-13T15:24:58 | 2020-04-13T15:24:58 | 255,069,891 | 0 | 0 | null | 2020-04-12T11:41:41 | 2020-04-12T11:41:40 | null | UTF-8 | Python | false | false | 5,301 | py | #!/usr/bin/env python
# Copyright (c) 2019 Siemens AG
#
# 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, me... | [
"[email protected]"
] | |
50cbc0a6b7378fde63f8deb76fd0bda5440b65e5 | 583d03a6337df9f1e28f4ef6208491cf5fb18136 | /dev4qx/madeira-stub/handlers/stub/niukou.py | 6b0e4e26edb01f71cb86b882a9492992f2eca35c | [] | no_license | lescpsn/lescpsn | ece4362a328f009931c9e4980f150d93c4916b32 | ef83523ea1618b7e543553edd480389741e54bc4 | refs/heads/master | 2020-04-03T14:02:06.590299 | 2018-11-01T03:00:17 | 2018-11-01T03:00:17 | 155,309,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | import json
import logging
import tornado
import tornado.web
from tornado.httpclient import AsyncHTTPClient
from tornado.ioloop import IOLoop
request_log = logging.getLogger("madeira.request")
class NiukouOrderHandler(tornado.web.RequestHandler):
@tornado.gen.coroutine
def post(self):
try:
... | [
"[email protected]"
] | |
b8ad77ebbc0f8d213a39e817e72baccde8bfd65f | 112f02c4be5176907766f7546de7d5d57a2df2af | /tutorial/tutorial_56.py | aea22de47ee4c3870ffbc5ddf5b27264f1cb2d8c | [] | no_license | ankitsingh03/code-python | 010efdcf157d5411f81b6fbfca74f8b36e3ea263 | 7fd33b9e7f269e3042bdb13a47a26a3da87a68bc | refs/heads/master | 2023-03-25T10:48:23.282822 | 2021-03-18T06:43:27 | 2021-03-18T06:43:27 | 289,693,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | name = input("enter your name : ")
i=0
temp = ""
while i<len(name):
if name[i] not in temp:
temp+=name[i]
print(f"{name[i]} : {name.count(name[i])}")
i+=1 | [
"[email protected]"
] | |
a4a415836a73c4b26dcef8193f52936e7df8c02a | f68710d7a8228805ab19430d72cefd6bbf1c4b91 | /src/routes/challenge.py | e1d954d670e6d9f4edf787dce1f4adc16e6579be | [] | no_license | quokkateam/quokka-api | 1aae2dd9694b09ff426fc8defcc8dd1d6536f016 | 081f22fe3bf81aee18cca05283384c4899923b88 | refs/heads/master | 2023-01-21T08:21:52.559310 | 2020-12-03T01:12:46 | 2020-12-03T01:12:46 | 100,311,727 | 0 | 0 | null | 2017-09-18T05:19:33 | 2017-08-14T21:42:08 | Python | UTF-8 | Python | false | false | 7,013 | py | from flask_restplus import Resource, fields
from src.routes import namespace, api
from src.helpers.user_helper import current_user
from src.helpers.prize_helper import format_prizes
from src.helpers.sponsor_helper import format_sponsors
from src.helpers.challenge_helper import format_challenges, current_week_num
from o... | [
"[email protected]"
] | |
f3287cdf45f3d65183544c35aca6db06772c239b | bd55c7d73a95caed5f47b0031264ec05fd6ff60a | /apps/nchat/migrations/0012_auto_20191113_1447.py | b7df57dbc71a1d5e13e95d92c30ea5bd1f8098ea | [] | no_license | phonehtetpaing/ebdjango | 3c8610e2d96318aff3b1db89480b2f298ad91b57 | 1b77d7662ec2bce9a6377690082a656c8e46608c | refs/heads/main | 2023-06-26T13:14:55.319687 | 2021-07-21T06:04:58 | 2021-07-21T06:04:58 | 381,564,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # Generated by Django 2.0.5 on 2019-11-13 05:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nchat', '0011_enduser'),
]
operations = [
migrations.AddField(
model_name='enduser',
name='app_id',
fiel... | [
"[email protected]"
] | |
4669336116ce7e560e82aa2f2fc0cf729f1a23d2 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /workdocs_write_f/comment_delete.py | 79616abb93b0670f4aec69800235ff70fde5d896 | [] | 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 | 623 | 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_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"[email protected]"
] | |
10b1131f1db5cefed204613e153ecc03d1a09ee3 | d47f5f59fc322aa2a82ea1c3a15f39b200dd95b2 | /bioinformatics_1/week_1/computing_frequencies.py | e8f5fabf0b6ca4a603575bdccc2ae3e7e537d4b5 | [] | no_license | nayanika2304/BioInformatics | baefb229e02397e06c634df44b82e72e9a235c77 | 977219bf4f3e4583b91df6308828d15bb1ad148d | refs/heads/master | 2023-01-01T05:24:58.401988 | 2020-10-20T12:52:30 | 2020-10-20T12:52:30 | 295,566,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | def pattern_to_number(pattern):
if len(pattern) == 0:
return 0
symbol_to_number = {'A': 0, 'C': 1, 'G': 2, 'T': 3}
n = len(pattern)
prefix = pattern[:n - 1]
symbol = pattern[n - 1]
return 4 * pattern_to_number(prefix) + symbol_to_number[symbol]
def computing_frequencies(text, k):
... | [
"[email protected]"
] | |
f95a4aa88f57289ef80b62ef84d6b9d5d9906074 | 050a01af15654c0708c2e747def7c33fe54cbe02 | /delivery_order/migrations/0001_initial.py | b9d564b5771452e38c9a53435e0538f295bc3d57 | [] | no_license | crowdbotics-apps/coddwebsite-17461 | 5d38d10294e5a9892028d11122174e9600790ac8 | eb9f22e52ec3c0c18fef55597c9e8aa3bf7cfe2d | refs/heads/master | 2023-05-13T13:28:47.125601 | 2020-05-27T17:32:07 | 2020-05-27T17:32:07 | 267,378,023 | 0 | 0 | null | 2021-06-10T09:23:01 | 2020-05-27T17:01:24 | Python | UTF-8 | Python | false | false | 2,609 | py | # Generated by Django 2.2.12 on 2020-05-27 17:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('menu', '0001_initial'),
('delivery_user_profile', '0001_initial'),
]
operations = [
... | [
"[email protected]"
] | |
fe67af41766db65e264adb0e06c55f078b4eb952 | 4d8b9f5533671b15e124bfa025d672297384b434 | /tests/unit/common/test_ansible_common.py | 1ef8eee5f8bb756e57092dc2f2318b9a25b932be | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Kryndex/yardstick | 6c37c4f752589c523be761e3980f7ca2c8fac798 | c191b305790b4528868725db82d1af6c0d95e22b | refs/heads/master | 2021-05-13T14:12:54.917653 | 2018-01-08T18:21:47 | 2018-01-08T18:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,700 | py | # Copyright (c) 2016-2017 Intel Corporation
#
# 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... | [
"[email protected]"
] | |
fb9b679a11eb9c744907db626a9f6f8e52a5756a | b9db91bdb30ba99aad8bbea251e5e1e8c2a7fa45 | /opt/src/aoj/itp1/7_b.py | 839084e701a5b92b98f95369fb7f3d92fbcc2450 | [] | no_license | jacoloves/python_tool | 682c3a91b535f15f1f8c9299e9b4c9ccbd5eea79 | 93ba5de17a727d6ccf9c67e4bca37ea502d06e5d | refs/heads/master | 2021-03-01T04:25:49.581952 | 2021-01-27T13:52:50 | 2021-01-27T13:52:50 | 245,753,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | arr = []
while True:
n, x = map(int, input().split())
if n == 0 and x == 0:
break
arr.append([n, x])
for i in range(len(arr)):
n = arr[i][0]
x = arr[i][1]
num = 0
for j in range(1, n-1):
x2 = x-j
for k in range(j+1, n):
x3 = x2-k
for l in ra... | [
"[email protected]"
] | |
98e60f84759f1dabfe64292e06d96f5801a51c88 | ed60a26caa718cae99f97217e6664e5a23ce3d45 | /networkaccessmanager.py | f4b8737e2d2bd79571b271b5ee020b61bb1201e2 | [] | no_license | leonmvd/pdokservicesplugin | 47580e290c2ea686541c90e6c6c6a9bc9cd5d524 | 00ea86d49037e27dee7db443de932c0ca9168b81 | refs/heads/master | 2021-08-28T15:17:41.441931 | 2017-11-17T13:26:52 | 2017-11-17T13:26:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,313 | py | # -*- coding: utf-8 -*-
"""
***************************************************************************
An httplib2 replacement that uses QgsNetworkAccessManager
https://github.com/boundlessgeo/lib-qgis-commons/blob/master/qgiscommons2/network/networkaccessmanager.py
---------------------
Date ... | [
"[email protected]"
] | |
4f1873b7edecc8b3be6649316dcba834b743f50e | de7127deabd34e17473fb94f48e033f482535ca7 | /virt/bin/markdown2 | 2f0becd3611f94bc2b1edf4b5c86a622fa7aa217 | [
"MIT"
] | permissive | annstella/One_Min_Pitch | a50d855423ad02fb46e8b6765c16cbf9d7a6e6ff | 86cd2426061df502adaffbf544589d54653df00c | refs/heads/master | 2020-03-28T05:54:11.687201 | 2018-09-17T08:00:08 | 2018-09-17T08:00:08 | 147,802,293 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 523 | #!/home/annstella/Documents/core/One_Min_Pitch/virt/bin/python3.6
import sys
from os.path import join, dirname, exists
# Use the local markdown2.py if we are in the source tree.
source_tree_markdown2 = join(dirname(__file__), "..", "lib", "markdown2.py")
if exists(source_tree_markdown2):
sys.path.insert(0, dirnam... | [
"[email protected]"
] | ||
bacd5c10967e22cb2e03eb54ce3045346fa32f5e | fba45f3289a6de51eb7a9bfbee90d566181963b5 | /pagemat/lib/python3.6/site-packages/paypal/standard/pdt/admin.py | d68d7ccb506406c13ca5c7216b0f32afb93123cd | [
"MIT"
] | permissive | bharatpurohit97/PageMatrix | abb580787aecf656e5ff27f0c9d75e89f16e905d | 66ab9b1dd365a34f86dba110fe97c32cb7137bf2 | refs/heads/master | 2022-12-12T01:50:47.230219 | 2018-12-19T09:20:05 | 2018-12-19T09:20:05 | 162,409,793 | 1 | 0 | MIT | 2022-12-08T02:28:13 | 2018-12-19T08:54:22 | Python | UTF-8 | Python | false | false | 3,710 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from paypal.standard.pdt.models import PayPalPDT
# ToDo: How similiar is this to PayPalIPNAdmin? Could we just inherit off one common admin model?
class PayPalPDTAdmin(admin.ModelAdmin):
date_h... | [
"[email protected]"
] | |
0b14f4c050f42e06cf573a1f84e62522ac65add4 | c7d91529db199322e39e54fe4051a75704ea843e | /华为题库/最小覆盖串.py | df725d28bca625b4f4f23c73033173ff5af73345 | [] | no_license | 2226171237/Algorithmpractice | fc786fd47aced5cd6d96c45f8e728c1e9d1160b7 | 837957ea22aa07ce28a6c23ea0419bd2011e1f88 | refs/heads/master | 2020-12-26T07:20:37.226443 | 2020-09-13T13:31:05 | 2020-09-13T13:31:05 | 237,431,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | '''
给你一个字符串 S、一个字符串 T,请在字符串 S 里面找出:包含 T 所有字母的最小子串。
示例:
输入: S = "ADOBECODEBANC", T = "ABC"
输出: "BANC"
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/minimum-window-substring
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
'''
from collections import Counter
class Solution:
def minWindow(self, s: str, t: str) -> str:
... | [
"[email protected]"
] | |
d18985bf92c950ffcf456b5ef4e4d773d7f1208e | 36dbd31536a4084db83d12b2bd12a9f22f4da636 | /geomdl/elements.py | 952f45421aee3bd3bc94e18a97dc66b2d65fa7a8 | [
"Python-2.0",
"MIT"
] | permissive | Hgser/NURBS-Python | 75d38a21721d9afd3d5f8491bf8ba56d71a2285a | ced4debdf4fc13afce9b830a2962da2789e5c45b | refs/heads/master | 2020-04-27T00:42:17.632484 | 2019-02-28T05:21:20 | 2019-02-28T05:21:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,863 | py | """
.. module:: elements
:platform: Unix, Windows
:synopsis: Provides classes representing geometry and topology entities
.. moduleauthor:: Onur Rauf Bingol <[email protected]>
"""
import abc
import copy
import six
from ._utilities import export
@six.add_metaclass(abc.ABCMeta)
class AbstractEntity(object)... | [
"[email protected]"
] | |
e8fb7c4b15125ffbf91656ba6e26fa0b454304bb | 2ccba7b17b3ce15efa627ef25ff1a1e23c4b1dbd | /Week 02/PSet02 - problem_3.py | 95c7a03fbbaca44e1d0bb79106a4f6e45941938b | [
"MIT"
] | permissive | andresmachado/edx-mit-6.00 | ecf62954fbc2f77ad1e14e2e179e5c011ad50b1c | cbc9b1947116433d7f2a0b47935af648b3828702 | refs/heads/master | 2020-12-03T07:45:29.696290 | 2016-09-16T12:44:39 | 2016-09-16T12:44:39 | 67,264,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 16 09:31:26 2016
@author: andre
# edX MITx 6.00.1x
# Introduction to Computer Science and Programming Using Python
# Problem Set 2, problem 3
# Use bisection search to make the program faster
# The following variables contain values as described below:
# balance - the ... | [
"[email protected]"
] | |
e9bab44c9c61265f1fb967c6700de4b3768157eb | ef42a6d8b25820dc4745ce04c415ae25e7f3ca4f | /rtl/udp_demux.py | 416bd0aa54358922b90574cb21bf1da7ac17d32a | [
"MIT"
] | permissive | sinamyth/verilog-ethernet | af363edad4b503584c1f4605c251c907fe03ec38 | cf6a01fffeda33b0748f942532ad91e945d4903f | refs/heads/master | 2021-01-19T17:38:43.580775 | 2017-07-22T18:07:23 | 2017-07-22T18:07:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,466 | py | #!/usr/bin/env python
"""
Generates a UDP demux with the specified number of ports
"""
from __future__ import print_function
import argparse
import math
from jinja2 import Template
def main():
parser = argparse.ArgumentParser(description=__doc__.strip())
parser.add_argument('-p', '--ports', type=int, defaul... | [
"[email protected]"
] | |
98e4d65023487abe3e1d25487d510bec8a565b46 | 84a0e742eeb89016f419b13329a4e6a1828e4d31 | /001_IntroductionToCS&ProgrammingUsingPython/Extra_Problems/oop_fraction.py | 235020581d1f7a8ddb21abd3e0d787229b39d430 | [
"MIT"
] | permissive | dalalsunil1986/Computer-Science-Degree | e85736c8c705bb82d897519cf2339ff638bc1b5f | e2c73f35cc48bbcc2a5cc0ddc6867fd0787c6dd9 | refs/heads/master | 2023-03-16T18:37:31.954245 | 2020-02-24T17:08:47 | 2020-02-24T17:08:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | """
@author: Anirudh Sharma
"""
class Fraction(object):
def __init__(self, numerator, denominator):
assert type(numerator) == int and type(denominator) == int
self.numerator = numerator
self.denominator = denominator
def __str__(self):
return str(self.numerator) + "/"... | [
"[email protected]"
] | |
534a6d3743ebc5084d7a4381efa5f146340deebe | 5c6bdc1915d56f1fee9b66a45365cefd097ff1f4 | /challenge_3.py | 645cd85ef5cd8e4cdba1fe3b01314768a428c6e6 | [] | no_license | chandanmanjunath/LearnByexample | 534a9e880453c316f4168c4b234165d935d2dac7 | 52351f7fba57ac0d0f13edb44c537131af860b60 | refs/heads/master | 2021-05-07T17:29:10.852798 | 2017-10-29T12:28:58 | 2017-10-29T12:28:58 | 108,732,377 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | if __name__ == '__main__':
a = int(raw_input())
b = int(raw_input())
if (a>=1 and a<=pow(10,10)) and (b>=1 and b<=pow(10,10)) :
print a+b
print a-b
print a*b
| [
"[email protected]"
] | |
5944c73b17f82c3bf11149917b9d99491d0d1e91 | fe32d7054687dd3cbee99e43b32488bff262681d | /tests/checkers/projects/test_python.py | df3e48d7ae2e84ed26b25acdbb5315f67579dd4e | [
"Apache-2.0"
] | permissive | whwkong/verse | 106d61f4a3a6bbabab1cdd7583c909fa48717214 | 0dc25222c309c780afee5cc6d5293858e5ead08e | refs/heads/master | 2021-06-14T16:31:48.729895 | 2017-04-04T19:20:39 | 2017-04-04T19:20:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,275 | py | """
Test `checkers.projects.python` file
"""
import pytest
from checkers import base
from checkers.projects import python
class TestPythonVersionChecker:
"""
Test `python.PythonVersionChecker` class
"""
@pytest.fixture
def instance(self):
return python.PythonVersionChecker()
def test... | [
"[email protected]"
] | |
6b4ab0a7e10c34f653dd28cfdf289ca292364259 | 7e4425342a4d7e0f40978af17091f32d2712c79c | /Day_36_01_Word2VecBasic.py | 06bed965a1102af98a5115949451121c9d0eb08e | [] | no_license | yunhui21/CB_Ai_NLP | eca3da00c6c9615c8737b50d2c5ebe8dd1e3ba8a | b66ecc24abfd988fc9e7f19fa1941826b1bf38a4 | refs/heads/master | 2023-01-07T14:21:26.758030 | 2020-11-16T05:57:30 | 2020-11-16T05:57:30 | 291,835,156 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | # Day_36_01_Word2VecBasic.py
# onehotvec 클래스의 수만큼 숫자로 단어를 볂솬 - 현실적으로 클래스의 개수가 너무 많다.
#
'''
skipgram :
'''''
# end 위치를 구하세요.
# 전체위치에서 target범위만 제거하세요.
def extrast(token_count, target, window_size ):
start = max(target - window_size, 0)
end = min(target + window_size + 1, token_count)
return [i for i in ran... | [
"[email protected]"
] | |
1e17cd4603703f78fef3307911e3585ea18568ef | fa5713863cada0177d15e56f5327b79d907a119f | /test/plot_jmrs_trkeff.py | c1a348b41ca20f15dabf50e782c2d4a5aaeef348 | [] | no_license | rappoccio/EXOVV | 1500c126d8053b47fbc425d1c2f9e76f14cb75c5 | db96edf661398b5bab131bbeba36d331b180d12d | refs/heads/master | 2020-04-03T20:12:57.959191 | 2018-08-24T01:30:03 | 2018-08-24T01:30:03 | 39,910,319 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,419 | py | #! /usr/bin/env python
##################
# Finding the mistag rate plots
##################
from optparse import OptionParser
parser = OptionParser()
parser.add_option('--postfix', type='string', action='store',
dest='postfix',
default = '',
help='Postfix for pl... | [
"[email protected]"
] | |
c5093f06d78421e5e06a8db7730c58cbcafd1e0d | 39bef50ed12468e57ad94a8e2551da6c7c45c8ed | /networkx/drawing/nx_pylab.py | b96ab87ca39c0e2b1a8f38fc8a0858575319078d | [] | no_license | biancini/Rorschach-Test-Platform | b1a5dfdbe5a15a68ce4dcf66887346fbf2e94169 | 7ae68e1054637046278325eaa419b23f09b420d3 | refs/heads/master | 2020-05-17T11:00:13.889678 | 2012-04-11T16:31:19 | 2012-04-11T16:31:19 | 3,789,381 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 27,792 | py | """
**********
Matplotlib
**********
Draw networks with matplotlib (pylab).
See Also
--------
matplotlib: http://matplotlib.sourceforge.net/
pygraphviz: http://networkx.lanl.gov/pygraphviz/
"""
__author__ = """Aric Hagberg ([email protected])"""
# Copyright (C) 2004-2010 by
# Aric Hagberg <hagberg@la... | [
"[email protected]"
] | |
4448d6c8c421b18d7c9450edff543c95675794b8 | 426e56d0d15dfb9609dc31e273baa2cc0d249fdd | /certificates/custom_components/mikrotik_router/switch.py | d535829ebfb2a705abcd945370be0380f137c179 | [] | no_license | hellad/hass-config | 24689dbf61446e2a9cf2d216c933242a4bdec7e8 | 3988d204908478996fffa433faffa9ea20f42562 | refs/heads/master | 2023-03-19T14:41:24.300034 | 2023-03-05T20:33:31 | 2023-03-05T20:33:31 | 234,546,187 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,639 | py | """Support for the Mikrotik Router switches."""
import logging
from typing import Any, Optional
from collections.abc import Mapping
from homeassistant.components.switch import SwitchEntity
from homeassistant.const import CONF_NAME, CONF_HOST, ATTR_ATTRIBUTION
from homeassistant.core import callback
from homeassistant.... | [
"[email protected]"
] | |
504bb84fc68bf1dfd94876a59dc581ff3a921147 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2846/60586/295434.py | e2875119305df6adbc78001b5fc61b6eda843866 | [] | 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 | 399 | py | def test12():
n=int(input())
s=input()
x=s.split(" ")
arr=[]
for i in x:
arr.append(int(i))
zero=arr.count(0)
if s=="1 1 1 1 1":
return 1
if s=="0 0 0 0 0 0 0":
return 0
if zero==len(set(arr)):
return 0
if(len(set(arr))==22):
return(21)
... | [
"[email protected]"
] | |
a4b1c54b4bb3f7c5e696da947123729e9367eee1 | 29c3595a4e1f8de9382650610aee5a13e2a135f6 | /venv/Lib/site-packages/django/views/decorators/cache.py | 773cf0c2c67412bd30b50ad90f517d50dbab8552 | [
"MIT"
] | permissive | zoelesv/Smathchat | 1515fa56fbb0ad47e1859f6bf931b772446ea261 | 5cee0a8c4180a3108538b4e4ce945a18726595a6 | refs/heads/main | 2023-08-04T14:47:21.185149 | 2023-08-02T15:53:20 | 2023-08-02T15:53:20 | 364,627,392 | 9 | 1 | MIT | 2023-08-02T15:53:21 | 2021-05-05T15:42:47 | Python | UTF-8 | Python | false | false | 1,705 | py | from functools import wraps
from django.middleware.cache import CacheMiddleware
from django.utils.cache import add_never_cache_headers, patch_cache_control
from django.utils.decorators import decorator_from_middleware_with_args
def cache_page(timeout, *, cache=None, key_prefix=None):
"""
Decorator for views ... | [
"[email protected]"
] | |
28ec052e9c58a50f9db14275c3fe505405877f48 | dd098f8a93f787e38676283679bb39a290ba28b4 | /samples/openapi3/client/3_0_3_unit_test/python-experimental/test/test_models/test_anyof.py | 197c3449a9e49196e0d0dc3b0844ab50910bddba | [
"Apache-2.0"
] | permissive | InfoSec812/openapi-generator | 727c0235d3bad9b85ac12068808f844287af6003 | e0c72702c3d5dae2a627a2926f0cddeedca61e32 | refs/heads/master | 2022-10-22T00:31:33.318867 | 2022-08-20T14:10:31 | 2022-08-20T14:10:31 | 152,479,633 | 1 | 0 | Apache-2.0 | 2023-09-04T23:34:09 | 2018-10-10T19:38:43 | Java | UTF-8 | Python | false | false | 1,385 | py | # 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
"""
import unittest
import unit_test_api
from unit_test_api.mode... | [
"[email protected]"
] | |
a904290ec8ed97238dff5bff3c599df824611c11 | 02e23da0431623db86c8138bda350a1d526d4185 | /Archivos Python Documentos/Graficas/.history/ejecutable_20200216215432.py | dfa14620e68d6ef4a0639d6914525ed6612644cf | [] | no_license | Jaamunozr/Archivos-python | d9996d3d10ff8429cd1b4c2b396016a3a5482889 | 1f0af9ba08f12ac27e111fcceed49bbcf3b39657 | refs/heads/master | 2022-08-05T14:49:45.178561 | 2022-07-13T13:44:39 | 2022-07-13T13:44:39 | 244,073,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | import pylab as pl
import numpy as np
# Crear una figura de 8x6 puntos de tamaño, 80 puntos por pulgada (Se modifica a 16x8)
pl.figure(figsize=(16, 8), dpi=100)
# Crear una nueva subgráfica en una rejilla de 1x1 (se podrian crean una de dos graficas en una reijlla)
pl.subplot(1, 1, 1)
# Obtencion de datos para seno y... | [
"[email protected]"
] | |
08cb23a06a7856db4ecb22d88ec90a611deba95b | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /man/case/life/big_government.py | 7fba7f61642853f57bfca0dad6bb4279f36648e4 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py |
#! /usr/bin/env python
def fact_or_eye(str_arg):
ask_new_woman(str_arg)
print('world_or_last_life')
def ask_new_woman(str_arg):
print(str_arg)
if __name__ == '__main__':
fact_or_eye('long_child_or_few_place')
| [
"[email protected]"
] | |
b0d36ff01b81621a8a30b4260aee51ff0b7fd312 | 0ac1df08e2cb2a089e912e3237209e0fb683504a | /edgy/workflow/transition.py | d44537e832efd938ea119ed0b1b40d23812ce52a | [] | no_license | python-edgy/workflow | ee8654b5cd3931f26dc6c4c519bc865cba1864ca | b27edaa7a80bf7cd40d5a26df114058f3795dacd | refs/heads/master | 2020-12-11T20:24:36.461621 | 2016-07-22T09:26:47 | 2016-07-22T09:26:47 | 51,644,998 | 1 | 0 | null | 2016-08-17T14:18:02 | 2016-02-13T12:28:06 | Python | UTF-8 | Python | false | false | 3,284 | py | # -*- coding: utf-8 -*-
"""
The smallest atom of ``edgy.workflow`` is a ``Transition``, which basically is a regular python
callable with additional metadata to make the system aware of when it can be applied.
"""
from edgy.workflow.constants import WILDCARD
from edgy.workflow.utils import issequence
class Transiti... | [
"[email protected]"
] | |
78ab8469e9d3cb049c2360ccbb087a9236a83ec7 | a1a3fc3511d3e2e29909411163bafd8932f87426 | /tests/extension/dataflow_/regionadd_filter_enable/dataflow_regionadd_filter_enable.py | bef3f6dbb5ee6c07fe7b89b1e8dc44cb193f5f69 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | yongfu-li/veriloggen | 25316c6f1a024669e7cb87f3491a1d3592356ea9 | a6230da3350c6e4bb54e10a46ac855c24c27f17f | refs/heads/master | 2021-01-23T11:50:43.050607 | 2017-09-04T08:30:06 | 2017-09-04T08:30:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,378 | py | from __future__ import absolute_import
from __future__ import print_function
import sys
import os
# the next line can be removed after installation
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))))
from veriloggen import *
import ve... | [
"[email protected]"
] | |
d236ab80a1798bb92f400c21f53470b7b4d79c24 | fdffd3f8ad31ffd917b1df4199ff5d88df80b420 | /Chapter_08/matplotlib_learning.py | f2b0806f79708322e36af13779f60ecd5eb0b416 | [] | no_license | LelandYan/data_analysis | 83c0cefa1b0783a8d3d13050092b2ab085cd859e | 9482c4667ecac189545f40b9f5bad3c495d48068 | refs/heads/master | 2020-04-17T04:25:47.975087 | 2019-02-12T07:40:37 | 2019-02-12T07:40:37 | 166,229,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,529 | py | import matplotlib.pyplot as plt
from numpy.random import randn
import numpy as np
# fig = plt.figure()
# ax1 = fig.add_subplot(2, 2, 1)
# ax2 = fig.add_subplot(2, 2, 2)
# ax3 = fig.add_subplot(2, 2, 3)
# plt.plot(randn(50).cumsum(), 'k--')
# _ = ax1.hist(randn(100), bins=20, color='k', alpha=0.3)
# ax2.scatter(np.aran... | [
"[email protected]"
] | |
5f4d648fe87f277326ed1c245f130c1540612c9f | acda0bc700943654156d491eaa0b766bea0ae7bd | /apps/item/views.py | 5a977f899786fbf9bf8ce0698dd0d24153b6aefd | [] | no_license | bluehawkarthur/casa_campo | a11baaec966d51a1e733ad2dd48bb77a0ecd6cb5 | 22a57b58a722769e8e25330457ed868d230f5c05 | refs/heads/master | 2021-01-18T15:05:47.674205 | 2016-10-26T20:03:55 | 2016-10-26T20:03:55 | 68,387,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | from django.shortcuts import render_to_response, render
from django.views.generic import FormView, ListView, DetailView, UpdateView
from pure_pagination.mixins import PaginationMixin
from django.core.urlresolvers import reverse_lazy
from .forms import ItemForm
from django.http import HttpResponseRedirect
from django.te... | [
"[email protected]"
] | |
169cc6e3a08adc088826a5b3ab17e5fcb13c6c44 | b976a3ca1e9cb98a9c90e57243255d0a8ace3572 | /Probability & Statistics/pharmacy_multi_regression.py | 911ba06a6717cd97204579ffadd3597f75e39138 | [
"MIT"
] | permissive | akhilvydyula/Data-Science-and-Machine-Learning-Projects-Dojo | fbe9408818cbfdb31d7fa0e52d9566bab998b9e1 | 4e2932dfa6749b360a7a605050c953ef52fc6547 | refs/heads/master | 2023-05-06T00:42:57.787384 | 2021-05-28T06:40:25 | 2021-05-28T06:40:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | """
A pharmacy delivers medications to the surrounding community.
Drivers can make several stops per delivery.
The owner would like to predict the length of time a delivery will take based on one or two related variables.
"""
from sklearn.linear_model import LinearRegression
x1, x2 = [1,3,2,3,1], [8,4,9,6,3]
y = [29,... | [
"[email protected]"
] | |
a06e523614c65dc76a0ee5de471b3d4970df6c87 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/GstVideo/VideoResampler.py | a56a7a96d40d30d7b2b241bb4ea4fabe51b4f99e | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 6,320 | py | # encoding: utf-8
# module gi.repository.GstVideo
# from /usr/lib64/girepository-1.0/GstVideo-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes o... | [
"[email protected]"
] | |
cec03f25f354aaa3f99e4de8a868b3777d100efc | 0010a92176b766f4bdf37c1144fa0f724cfaf564 | /env/lib/python3.5/site-packages/aliyunsdkecs/request/v20140526/CreateImageRequest.py | 5fcd8e48fafcdcaf41af6211a1c3634952c20daa | [] | no_license | pengjinfu/My-Admin | bc2d8b53da8be0fad60e1d8979bdca3f2c4560d9 | 26206d1def673adb7dfe5c8044c654a0e65320d1 | refs/heads/master | 2021-08-30T02:17:57.432743 | 2017-12-15T17:05:05 | 2017-12-15T17:05:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,655 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"[email protected]"
] | |
6c1c35ef28e08ac096358de3535ce5d1f50ca604 | e57d7785276053332c633b57f6925c90ad660580 | /sdk/loganalytics/azure-mgmt-loganalytics/azure/mgmt/loganalytics/aio/operations/_shared_keys_operations.py | e209ceb60ee78a0cc0c90df3c27836f9fb07693b | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 7,719 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"[email protected]"
] | |
b137998baadcf6c1c7eddef0dd667c340d56e435 | 6a41f12ddb104c4f214fa8bf2864860a8952d17c | /books_crawler/books_crawler/settings.py | 7916845ebd89642dd40df20c0bfb0f0e827a9905 | [] | no_license | jakiiii/Web-Scraping-Scratch | 39bb32ea2044e6c4e52ee58ea88794f2a77d75cd | 46cd54d3a06d70cef070f47b3c15b530691c3187 | refs/heads/master | 2020-04-21T00:34:50.736222 | 2019-02-07T06:38:54 | 2019-02-07T06:38:54 | 169,200,752 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,194 | py | # -*- coding: utf-8 -*-
# Scrapy settings for books_crawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest... | [
"[email protected]"
] | |
522bd050c87ec2e3215a3c729553e1d611c0549a | 824b582c2e0236e987a29b233308917fbdfc57a7 | /sdk/python/pulumi_google_native/orgpolicy/v2/get_folder_policy.py | 14f2f3278537c86a7f93b5c154315a900a2b904d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | 24601/pulumi-google-native | ce8faf8455609a9572a8cbe0638c66427bf0ae7f | b219a14201c6c58eaa10caaeacbdaab528931adf | refs/heads/master | 2023-08-23T05:48:31.819709 | 2021-10-08T18:50:44 | 2021-10-08T18:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,527 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"[email protected]"
] | |
0ef7ffea33b2244997b5c41254c53c90db1083aa | ee8cb974f12977894f7f0fda5b8129570224618b | /gim/core/migrations/0013_auto__add_field_issueevent_related_content_type__add_field_issueevent_.py | 43503150f2cbcde634778bdb46e6ccbccd7ff624 | [] | no_license | derekey/github-issues-manager | 996b3c7b9acd0362b7d99948d45a15ea05d58cc2 | 63a405b993e77f10b9c2b6d9790aae7576d9d84f | refs/heads/develop | 2021-01-21T01:03:01.739800 | 2014-11-09T21:26:49 | 2014-11-09T21:26:49 | 42,234,954 | 1 | 0 | null | 2015-09-10T09:22:40 | 2015-09-10T09:22:39 | null | UTF-8 | Python | false | false | 27,500 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'IssueEvent.related_content_type'
db.add_column(u'core_issueevent', 'related_content_type',
... | [
"[email protected]"
] | |
893136904401af906e7bdbcf75c63539d98f9364 | 5cb7b9fe09b1dd20c0664d0c86c375ffe353903c | /static/js/pypyjs/pypy-nojit.js-0.3.1/lib/modules/test/test_shlex.py | ba0f3d1fcae7670d0a08cc51cf4cc0b57557c939 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | shiblon/pytour | 6d0ee4a679cf7e6ffd8ac6326b8bb0d9071a7c73 | 71a181ec16fd38b0af62f55e28a50e91790733b9 | refs/heads/master | 2021-01-17T10:09:18.822575 | 2020-09-23T20:05:58 | 2020-09-23T20:05:58 | 23,226,350 | 2 | 3 | Apache-2.0 | 2020-02-17T22:36:02 | 2014-08-22T13:33:27 | Python | UTF-8 | Python | false | false | 5,315 | py | # -*- coding: utf-8 -*-
import unittest
import shlex
from test import test_support
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
# The original test data set was from shellwords, by Hartmut Goebel.
data = r"""x|x|
foo bar|foo|bar|
foo bar|foo|bar|
foo bar |foo|bar|... | [
"[email protected]"
] | |
63f6862c5fa020fc79e11cdb16aee06ddb1ff1a0 | d5d35d20ec811cbaa792e681d559361cd7f38159 | /challenge/DidacticVampireText.py | 70cdffe7dc20b01345fe0e2f5d252051a8275136 | [] | no_license | markieboy/hacker.org | afe43f0b4213ec135f8b095bcc7b1a7a755581d8 | da1689bdcc2fe91a81a30385680fd367f2d6e9cf | refs/heads/master | 2021-06-21T12:07:21.503999 | 2017-08-11T08:38:05 | 2017-08-11T08:38:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | #!/usr/bin/env python3
# Q: http://www.hacker.org/challenge/chal.php?id=139
# A: http://www.hacker.org/challenge/chal.php?answer=sunshine&id=139&go=Submit
import re
import urllib.request
import hacker_org_util
PROBLEM_ID = '139'
def main():
source = urllib.request.urlopen(hacker_org_util.build_challenge_url(PRO... | [
"[email protected]"
] | |
86bf68a3fdb54d1cb09fca3faa9ef12d0f6fa966 | ee53b0262007b2f0db0fe15b2ad85f65fafa4e25 | /Leetcode/849. Maximize Distance to Closest Person.py | f36d9de210337b439e5c96e96c00caecda775ca7 | [] | no_license | xiaohuanlin/Algorithms | bd48caacb08295fc5756acdac609be78e143a760 | 157cbaeeff74130e5105e58a6b4cdf66403a8a6f | refs/heads/master | 2023-08-09T05:18:06.221485 | 2023-08-08T11:53:15 | 2023-08-08T11:53:15 | 131,491,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | '''
In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty.
There is at least one empty seat, and at least one person sitting.
Alex wants to sit in the seat such that the distance between him and the closest person to him is maximized.
Return that maximum distance to ... | [
"[email protected]"
] | |
735d952b9b73db8a38c1a772c6a5c61bceced913 | e1dd6d9dccb822d472b7f4f9e8446dd9202eb5a1 | /sdk/test/test_io_k8s_api_rbac_v1alpha1_cluster_role_list.py | f7e76f339f1516a69e8e00215b9d2dd97d478213 | [] | no_license | swiftdiaries/argo_client | 8af73e8df6a28f9ea5f938b5894ab8b7825e4cc2 | b93758a22d890cb33cbd81934042cfc3c12169c7 | refs/heads/master | 2020-05-17T12:11:57.556216 | 2019-07-24T23:23:33 | 2019-07-24T23:23:33 | 183,701,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # coding: utf-8
"""
Argo API Client
Generated python client for the Argo Workflows # noqa: E501
OpenAPI spec version: v1.14.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import argo.sdk
from models.io_k8s_api_rba... | [
"[email protected]"
] | |
8651769e811843c8771b34777e0cd3f9f73886cd | 20674c17d815214bf66b75be686bb8a45c0f5914 | /version1/382_Linked_List_Random_Note.py | b3eb2bb00277f1ab4588a3185e4daf65f981fec9 | [] | no_license | moontree/leetcode | e7b670969fe20785b15aae82996875fd66de1b08 | f2bf9b13508cd01c8f383789569e55a438f77202 | refs/heads/master | 2021-05-20T20:36:45.615420 | 2020-04-02T09:15:26 | 2020-04-02T09:15:26 | 252,408,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | """
Given a singly linked list, return a random node's value from the linked list.
Each node must have the same probability of being chosen.
Follow up:
What if the linked list is extremely large and its length is unknown to you?
Could you solve this efficiently without using extra space?
Example:
// Init a singly l... | [
"[email protected]"
] | |
746f538f4f59613057ed9e33923e1a08e11e714b | 1524720d6480ad0a51b6fd8ff709587455bf4c5d | /tums/trunk/lite/nevow/scripts/consolejstest.py | 0a952bcc2cf4f3a02ccf1aa2154442b69701dc9e | [] | no_license | calston/tums | 2bd6d3cac5232d2ccb7e9becfc649e302a310eab | b93e3e957ff1da5b020075574942913c8822d12a | refs/heads/master | 2020-07-12T03:46:43.639800 | 2018-05-12T10:54:54 | 2018-05-12T10:54:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,135 | py | # Copyright (c) 2006 Divmod.
# See LICENSE for details.
"""
Out-of-browser conversion of javascript test modules that use Athena's "//
import" syntax into monolithic scripts suitable for feeding into a plain
javascript interpreter
"""
from sys import argv
from twisted.python.util import sibpath
import nevow, subproce... | [
"[email protected]"
] | |
583466431748d71c10e4768b2295e9e980422200 | 10d77a1bca1358738179185081906956faf3963a | /venv/Lib/site-packages/django/core/mail/backends/filebased.py | f01e1497dbcc6dc15a7cf45416368b8606f613a2 | [] | no_license | ekansh18/WE_Care_NGO_WEBSITE | 3eb6b12ae798da26aec75d409b0b92f7accd6c55 | 7c1eaa78d966d13893c38e7157744fbf8f377e71 | refs/heads/master | 2023-07-16T07:22:48.920429 | 2021-08-31T04:11:19 | 2021-08-31T04:11:19 | 401,563,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | """Email backend that writes messages to a file."""
import datetime
import os
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.mail.backends.console import (
EmailBackend """Email backend that writes messages to a file."""
import datetime
import os
from d... | [
"[email protected]"
] | |
2466113f0da79b2244862448de9eb3746c0d33d1 | 8fd255fc3498ec970d7202d3f70a671b7aa4c64b | /pmsal/blog/views.py | d5b704545317b790379154f070dad0ca73a0eb84 | [
"MIT"
] | permissive | klebercode/pmsal | afda05fe29bb67db70fc7dcb8dfc577f4a3f0c9c | d78477f7cd1a5d1ed9973e13be5758c71a2ce2db | refs/heads/master | 2016-09-06T05:42:34.468341 | 2015-04-04T17:24:07 | 2015-04-04T17:24:07 | 33,409,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | # coding: utf-8
from django.db.models import Q
from django.views import generic
from django.views.generic.dates import (YearArchiveView, MonthArchiveView,
DayArchiveView)
from pmsal.context_processors import EnterpriseExtraContext
from pmsal.blog.models import Entry
from pmsal.... | [
"[email protected]"
] | |
1f282037ba707bdcb0c2fbd47ed08bb8e0e60104 | 5aa14c620a383d8429c144e5af46b0322c674439 | /tests/python/Lut1DTransformTest.py | 0b6073a7cd51dad23173cb33a42118d333820dbb | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | asdlei99/OpenColorIO | ae421f6c14870ffe735c73107b76f6746bd563ee | 9b23e9623792d8cc6e6c1dfd5394335ee148bcf3 | refs/heads/master | 2023-03-13T16:14:19.693576 | 2021-03-03T03:11:10 | 2021-03-03T03:11:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,698 | py | # SPDX-License-Identifier: BSD-3-Clause
# Copyright Contributors to the OpenColorIO Project.
import logging
import unittest
logger = logging.getLogger(__name__)
try:
import numpy as np
except ImportError:
logger.warning(
"NumPy could not be imported. "
"Test case will lack significant coverag... | [
"[email protected]"
] | |
b77167d258ce02e04bdda1ea6a83707259bbe0f7 | 80e701c5b9c03ef288848d8b368360e0940d9b67 | /sleyeball/files.py | 51db5f0a7dda0c4166dceea14a6d3bc400d4b819 | [] | no_license | esheldon/sleyeball | a4917300b041747e0600186f0e596c6d83a95ff4 | 9eee500119d2bc07c942350a67c8777257e92a3d | refs/heads/master | 2020-06-20T05:22:59.921610 | 2019-07-17T18:38:29 | 2019-07-17T18:38:29 | 197,008,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | import os
def get_base_dir():
"""
base directory
"""
return os.environ['SLDIR']
def get_cand_dir():
"""
we keep lists here
"""
return os.path.join(get_base_dir(), 'candidates')
def get_cand_file_orig():
"""
holds paths to coadds
"""
d = get_cand_dir()
return os.... | [
"[email protected]"
] | |
87cc2abd3c13a2d90fd462c57af819701673b894 | 7c5f9f4a237669d9acc4b59711ac1cf91ba71f26 | /torch/_dynamo/guards.py | c16c48515857ab7f942a58f2c98d68360e317e40 | [
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | colesbury/pytorch | 4924df03a4aaf88b51ff9d2c5572ac35a30f26be | d70f9c7888dc488304010a554d8b56a505919bda | refs/heads/master | 2023-08-27T22:11:15.257393 | 2023-03-29T20:17:06 | 2023-03-29T20:17:10 | 79,366,698 | 1 | 0 | null | 2018-08-09T13:54:22 | 2017-01-18T17:47:38 | Python | UTF-8 | Python | false | false | 33,502 | py | import builtins
import collections
import logging
import math
import os
import re
import types
import weakref
from inspect import currentframe, getframeinfo
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Type, Union
from weakref import ReferenceType
import torch
from torch._guards import (
Du... | [
"[email protected]"
] | |
7b46bd89e96c7e6548ef6f816becf00ba0d630ee | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py | 67e80611ef10e78892a747eb9f010880cb4577dc | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 22,347 | py | """
An agg http://antigrain.com/ backend
Features that are implemented
* capstyles and join styles
* dashes
* linewidth
* lines, rectangles, ellipses
* clipping to a rectangle
* output to RGBA and PNG, optionally JPEG and TIFF
* alpha blending
* DPI scaling properly - everything scales properly (dashes, linew... | [
"[email protected]"
] | |
b636530dff51028fbe0a7fbb20a468126863860f | 3b9d763180410bf0abf5b9c37391a64319efe839 | /toontown/building/DistributedHQInteriorAI.py | d7c12fec12fec9b0432c0e998ae1a9b352eb808e | [] | no_license | qphoton/Reverse_Engineering_Project_ToonTown | 442f15d484324be749f6f0e5e4e74fc6436e4e30 | 11468ab449060169191366bc14ff8113ee3beffb | refs/heads/master | 2021-05-08T00:07:09.720166 | 2017-10-21T02:37:22 | 2017-10-21T02:37:22 | 107,617,661 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
import cPickle
class DistributedHQInteriorAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedHQInteriorAI")
def __init__(self, air):
Distrib... | [
"[email protected]"
] | |
07f7480b8204fdcc16a56564512124c02be477e2 | f3050b7f84e584dcde54ca1690944bfccc6f5d9c | /demo/other/demo_fomat.py | 767ea789d7dee62f3161cff0034d57438ab22024 | [] | no_license | azhenglianxi/api_Project | 0c8444c2bad7464fd57911be4fdcd131a63c46b2 | 2ae87b87e41f522d4ef20f63bad6adcaec1f9874 | refs/heads/master | 2020-09-14T12:08:07.080748 | 2019-12-12T09:08:22 | 2019-12-12T09:08:22 | 223,124,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | name="tom"
age=20
#1. 输出:你好,tom先生,今晚吃鸡!
print(f"你好,{name}先生,今晚吃鸡!")
print("你好,{}先生,今晚吃鸡!".format(name))
#2. 输出:你好,tom先生,今晚{吃鸡}!
print(f"你好,{name}先生,今晚{{吃鸡}}!")
print("你好,{}先生,今晚{{吃鸡}}!".format(name))
#3. 输出:你好,{tom}先生,今晚吃鸡!
print(f"你好,{{{name}}}先生,今晚吃鸡!")
print("你好,{{{}}}先生,今晚吃鸡!".format(name))
print("姓名和年龄分别是:{}、... | [
"[email protected]"
] | |
0821f14666c075ca5ef4644670d667a41ce5450f | ce6c8e0e3a986af3fe3c347a4af16f1ca337f82c | /630.course-schedule-iii.py | c6f16e25c08edfd0eebd9959c9ace96be3683d8b | [] | no_license | chenjienan/python-leetcode | dc098373ae7f73dd502d7747888a37a3bd0820cb | 90c000c3be70727cde4f7494fbbb1c425bfd3da4 | refs/heads/master | 2020-04-28T20:46:50.395260 | 2020-02-12T18:48:01 | 2020-02-12T18:48:01 | 175,556,339 | 16 | 3 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #
# @lc app=leetcode id=630 lang=python3
#
# [630] Course Schedule III
#
import heapq
class Solution:
def scheduleCourse(self, courses: List[List[int]]):
courses.sort(key=lambda x: x[1])
day = 0
heap = []
for i in range(len(courses)):
if day + cours... | [
"[email protected]"
] | |
41e0c35d8f6f140f28776895e5818242163e49f8 | 7a239875dc9147377c68403e33ce234448b3b443 | /libsubmit/version.py | e35bbbade12937ef58ce92916b9c34a995a2520d | [
"Apache-2.0"
] | permissive | benhg/libsubmit | a51f14ffe7220a5c523d5b9b5c079b2a4f030749 | 3ff05719d01e9a7c78c81d002b22f9a927cb6a4f | refs/heads/master | 2021-05-14T02:25:27.566641 | 2018-02-09T21:35:44 | 2018-02-09T21:35:44 | 116,594,575 | 0 | 0 | null | 2018-02-09T21:12:08 | 2018-01-07T19:55:57 | Python | UTF-8 | Python | false | false | 91 | py | ''' Set module version
<Major>.<Minor>.<maintenance>[-alpha/beta/..]
'''
VERSION = '0.3.0'
| [
"[email protected]"
] | |
cfe183779f01a5fbe1379f11d1cc62902be02994 | 9079a555d1fd22ad9701227c58151ae1ca3595d3 | /CSES/1097.py | 85e2d0f2b48353028d34faa5b5a999c8a74da857 | [] | no_license | DebRC/My-Competitve-Programming-Solutions | c2a03b18f15cebd3793ce1c288dbb51fc0a33ef4 | fe956eed619a21bd24a5fd647791d4c56cd1b021 | refs/heads/main | 2023-02-04T08:28:13.915967 | 2020-12-28T09:11:29 | 2020-12-28T09:11:29 | 324,591,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | def removal_game_tab(a, n):
dp=[[0 for i in range(n)] for i in range(n)]
for i in range(n-1,-1,-1):
for j in range(i,n):
if i==j:
dp[i][i]=a[i]
else:
dp[i][j] = max(a[i]-dp[i+1][j],a[j]-dp[i][j-1])
return dp[0][n-1]
n = int(input... | [
"[email protected]"
] | |
7baaeaed32956cf32db8273ce882ac55fbcf7d77 | 5695d365852a5b9bc4f8092c8aba139530def229 | /hs_collection_resource/migrations/0002_collectiondeletedresource_resource_owners.py | d6a80fde974db5778255ad0469fa26b6f89dd634 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | heliumdatacommons/commonsshare | 6863705e71be2fb9ef4a822e391d60cfcbc82a44 | 4336dc337ca2b36c2d0a0a7ea793af624c1356c7 | refs/heads/develop | 2021-05-11T14:12:53.511860 | 2020-04-15T20:48:38 | 2020-04-15T20:48:38 | 117,697,775 | 2 | 4 | BSD-3-Clause | 2020-03-31T14:08:15 | 2018-01-16T14:58:04 | Python | UTF-8 | Python | false | false | 586 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('hs_collection_resource', '0001_initial'),... | [
"[email protected]"
] | |
e08959efc568fd56daefcf8ab0405bd7db16d4b2 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayOpenMiniTipsDeliveryCreateResponse.py | 0f0bc4813082df45cd6c1d04d87d1319c5c3daad | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayOpenMiniTipsDeliveryCreateResponse(AlipayResponse):
def __init__(self):
super(AlipayOpenMiniTipsDeliveryCreateResponse, self).__init__()
self._delivery_id = Non... | [
"[email protected]"
] | |
cb1d4ea82e737e5bf9c2ec42560c94336b5e4563 | 5182897b2f107f4fd919af59c6762d66c9be5f1d | /.history/src/Simulador_20200711163425.py | aca21747f8e28878eb2b0759badeae8ea1d21215 | [
"MIT"
] | permissive | eduardodut/Trabalho_final_estatistica_cd | 422b7e702f96291f522bcc68d2e961d80d328c14 | fbedbbea6bdd7a79e1d62030cde0fab4e93fc338 | refs/heads/master | 2022-11-23T03:14:05.493054 | 2020-07-16T23:49:26 | 2020-07-16T23:49:26 | 277,867,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,607 | py | import pandas as pd
import numpy as np
from Matriz_esferica import Matriz_esferica
from Individuo import Individuo, Fabrica_individuo
import random
from itertools import permutations
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from scipy.sparse import csr_matrix, lil_matrix
class S... | [
"[email protected]"
] | |
c60c7909ee17189186d37d45b7eda97c4c7d3bf0 | bc441bb06b8948288f110af63feda4e798f30225 | /resource_manage_sdk/api/cmdb_approve/get_history_approver_list_pb2.pyi | abd98e65926c1c34c66d48ba053cdace0455c688 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,398 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScal... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.