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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23492d4e41c3c292ff5df3adda5db1ec0bfa9e68 | 6032498a2829b4e9c3515e7c15476866be8f9112 | /17_classes_and_objects_basics/17.9.instances_as_return_values.py | b194bc3225942b00fad3a075be39490f4d18a922 | [] | no_license | KenjaminButton/runestone_thinkcspy | de3d7b8250be3c281a769baf392d31fc623403b8 | ff5973cf5514c13019c4e970d9a6e8c0e1482a44 | refs/heads/master | 2023-06-08T07:42:19.927968 | 2019-11-09T15:47:35 | 2019-11-09T15:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | # Instances as Return Values
'''
Functions and methods can return objects. This is actually nothing new
since everything in Python is an object and we have been returning
values for quite some time. The difference here is that we want to have
the method create an object using the constructor and then return it as
the v... | [
"kennethpchang@gmail.com"
] | kennethpchang@gmail.com |
2a2720a4faea2b3424185730fb0814d5e957f5e3 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/chmtin004/question2.py | 3caa28f28064ed5055afe02dd831a174b8636b55 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | #Program for 30 second rule
#Tinotenda Chemvura (CHMTIN004)
#08 March 2014
#__________________program starts here_______________
def game():
print("Welcome to the 30 Second Rule Expert")
print("------------------------------------")
print("Answer the following questions by selecting from among th... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
c8342a916b55a541090e50e88a78e91faea7d30c | 67b3ac97f8ef13aa5caea25de99ef055c0b7cc97 | /Python/test.py | 79962fa6b3f85af8c2097b4558d70c4d88f22526 | [] | no_license | enningxie/Coolixz | f181cd1087db9c0d4ad4f7ab80029b88dde82e24 | fc51dc894906b2fb7f72ab77511f6daedf00cf0e | refs/heads/master | 2021-01-19T05:24:28.569706 | 2018-02-05T02:28:36 | 2018-02-05T02:28:36 | 100,577,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | class Solution:
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
if __name__ == '__main__':
a = Solution()
print(a.twoSum([3, 2, 4], 6)) | [
"enningxie@163.com"
] | enningxie@163.com |
fb4c264e57a128b5b83e3aa38ed19b41e1b5ac8a | 98f8304afd89becc12781fb547a50abf86e5e856 | /ImagemagickDriver/commandBuilders/__init__.py | 272fc6c4475e749cef52b4e10f5f0f187768aadc | [] | no_license | UIUCLibrary/ImagemagickCommandBuilder | 543f57909517238cecdf24a8b1e550672c9312c5 | c27cf2acc47073aa96dd58215733879b74943f4b | refs/heads/master | 2021-01-12T08:28:28.514541 | 2016-12-15T20:08:18 | 2016-12-15T20:08:18 | 76,591,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from .default_command_builder import DefaultCommandBuilder
from .jp2_access_command_builder import Jp2AccessCommandBuilder
| [
"henryborchers@yahoo.com"
] | henryborchers@yahoo.com |
7d3629f1c0d12a1e3a32eb86aaba950738c69bcf | 06ee743cab3e27a68863e69eeff53acc6a7a5b16 | /Section 8/mod1.py | e1868e52f4a7b1b2107c86da25146382afaa1ad1 | [
"MIT"
] | permissive | buratina/Learning-Python-v- | a424ddeb896dee6d3c37028ec7c1d6e20e5af541 | 09100a2b5a23a572cb7cdb882197d56e507e3521 | refs/heads/master | 2022-01-27T01:48:37.459162 | 2019-05-20T05:30:45 | 2019-05-20T05:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | #Import module1, module2, module
import module1
x = 12
y = 34
print "Sum is ", module1.sum1(x,y)
print "Multiple is ", module1.mul1(x,y) | [
"sonalis@packtpub.com"
] | sonalis@packtpub.com |
b41c07cadfe74f2c029d6dc4f3735e854d8f72b9 | 1415fa90c4d86e76d76ead544206d73dd2617f8b | /venv/Lib/site-packages/ursina/collider.py | 2e9faf1d9e8b030cc74cb04be91b73ec52f2a709 | [
"MIT"
] | permissive | Darpra27/Juego-senales | 84ea55aea7c61308ec1821dac9f5a29d2e0d75de | e94bc819e05eff1e0126c094d21ae1ec2a1ef46d | refs/heads/main | 2023-04-04T07:27:53.878785 | 2021-04-09T00:00:44 | 2021-04-09T00:00:44 | 353,472,016 | 0 | 1 | MIT | 2021-04-09T00:04:31 | 2021-03-31T19:46:14 | Python | UTF-8 | Python | false | false | 4,986 | py | from panda3d.core import CollisionNode, CollisionBox, CollisionSphere, CollisionPolygon
from panda3d.core import NodePath
from ursina.vec3 import Vec3
class Collider(NodePath):
def __init__(self):
super().__init__('box_collider')
def show(self):
self.visible = True
def hide(self):
... | [
"daviricado08@gmail.com"
] | daviricado08@gmail.com |
894a52032f4ae23eb8a78813d8a8b82e0d5b7836 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/compute/v20210401/restore_point_collection.py | dcf83ce10f282837a03e95b86c1833ba88f2ce64 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,815 | 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... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
d09448fdd16e978eecb236531ca79cccec83ff44 | 87129f66724ab3cc5f2fa8154512eda3b8db527e | /backend/src/zac_lite/wsgi.py | 4b5a26ddf95ff2d1630c88b81b431f63734322a9 | [] | no_license | GemeenteUtrecht/zac-lite | b6333f5e4f4381f7407af40ceb20e49822f23cee | b4780f0bb7c79d08bef3419ea349c6ef6f328505 | refs/heads/main | 2023-04-10T16:25:04.172830 | 2021-04-12T08:24:11 | 2021-04-12T08:24:11 | 327,653,824 | 0 | 0 | null | 2021-04-12T08:24:12 | 2021-01-07T15:38:58 | Python | UTF-8 | Python | false | false | 373 | py | """
WSGI config for zac_lite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from zac_lite.setup import setup_en... | [
"sergei@maykinmedia.nl"
] | sergei@maykinmedia.nl |
7bda7a6003400eca0f3f39e23d440fb8177a1306 | 3a6d4ce215de76616761483d6c77cbcd8c512c85 | /navx-examples/navx-rotate-to-angle/robot.py | e40290fc1dedd03bd22f2034262e8b8f82c1ff50 | [] | no_license | ThunderDogs5613/examples | 133c0d35b72083684b8855a5fb12409e92e89a45 | 3cb480f22bc3f706d2d93165ae79a228f07b2a41 | refs/heads/master | 2021-09-29T02:24:39.473867 | 2018-11-22T20:58:05 | 2018-11-22T20:58:05 | 112,538,972 | 0 | 1 | null | 2018-01-22T05:57:19 | 2017-11-29T23:17:31 | Python | UTF-8 | Python | false | false | 5,867 | py | #!/usr/bin/env python3
import wpilib
from navx import AHRS
class MyRobot(wpilib.SampleRobot):
"""This is a demo program showing the use of the navX MXP to implement
a "rotate to angle" feature. This demo works in the pyfrc simulator.
This example will automatically rotate the robot to one of four
... | [
"dustin@virtualroadside.com"
] | dustin@virtualroadside.com |
b344f74d00a2db534e6c33965881aa0ad9faf2f5 | 52a4d282f6ecaf3e68d798798099d2286a9daa4f | /ccmodel/Log.py | f96eae930277139a7ae19462bede266443bd1529 | [
"MIT"
] | permissive | bkovitz/FARGish | f0d1c05f5caf9901f520c8665d35780502b67dcc | 3dbf99d44a6e43ae4d9bba32272e0d618ee4aa21 | refs/heads/master | 2023-07-10T15:20:57.479172 | 2023-06-25T19:06:33 | 2023-06-25T19:06:33 | 124,162,924 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,836 | py | # Log.py
from __future__ import annotations
from dataclasses import dataclass, replace, field, InitVar
from typing import Union, List, Tuple, Dict, Set, FrozenSet, Iterator, \
Iterable, Any, NewType, Type, ClassVar, Sequence, Callable, Hashable, \
Collection, Sequence, Literal, Protocol, Optional, TypeVar, IO,... | [
"bkovitz@indiana.edu"
] | bkovitz@indiana.edu |
0bf404558c882dc07a386838c5f360699a19cde4 | 18d517c85d0f446ff4abc4354f80d7b67273b141 | /tests/test_multiple_custom.py | bcc8c4c8ee9e3ce5977e56a03fd415544a4c71fe | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | GigiusB/django-strategy-field | 809206e10b62839ff40ee37b7310a4dbeb00161c | 59de5f0ce4c4bdf77a38f731ef48d4d31d58757e | refs/heads/master | 2022-04-06T00:38:38.533523 | 2019-11-08T10:58:46 | 2019-11-08T10:58:46 | 294,890,205 | 1 | 0 | null | 2020-09-12T07:06:03 | 2020-09-12T07:06:02 | null | UTF-8 | Python | false | false | 8,397 | py | # -*- coding: utf-8 -*-
# flake8: noqa
# noqa
import pytest
from django.forms.models import modelform_factory
from demoproject.compat import reverse
from demoproject.demoapp.models import (DemoMultipleCustomModel, Strategy,
Strategy1,)
from strategy_field.utils import fqn
def p... | [
"s.apostolico@gmail.com"
] | s.apostolico@gmail.com |
c45bf85604631610515f9028eb85fe46ee3a49ea | 5c533e2cf1f2fa87e55253cdbfc6cc63fb2d1982 | /python/anyons/tree_basis.py | d57797ce89cd2283274045033e722a7aa8cbd6b2 | [] | no_license | philzook58/python | 940c24088968f0d5c655e2344dfa084deaefe7c6 | 6d43db5165c9bcb17e8348a650710c5f603e6a96 | refs/heads/master | 2020-05-25T15:42:55.428149 | 2018-05-14T03:33:29 | 2018-05-14T03:33:29 | 69,040,196 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py | import numpy as np
#Some things to do
# 1. implement solovay-ktaev
# 2. Try adding poisition information and winding
# 3. stratified basis pursuit
Id = 0
Tau = 1
amp = 1.
vacuumtree = { leaves : [Id] , stalk: [Id,Id] } # _|_
# Stalk always has one more element than leaf
examplevector = [( amp , exampletree )]
... | [
"philip@FartMachine7.local"
] | philip@FartMachine7.local |
c7db857cc80d39129ed2c6608d7040403fd984b9 | 5499e8b91353ef910d2514c8a57a80565ba6f05b | /scripts/component_graph/server/graph/component_graph.py | e792a25bcce753555f21a7253b349da098a6751e | [
"BSD-3-Clause"
] | permissive | winksaville/fuchsia | 410f451b8dfc671f6372cb3de6ff0165a2ef30ec | a0ec86f1d51ae8d2538ff3404dad46eb302f9b4f | refs/heads/master | 2022-11-01T11:57:38.343655 | 2019-11-01T17:06:19 | 2019-11-01T17:06:19 | 223,695,500 | 3 | 2 | BSD-3-Clause | 2022-10-13T13:47:02 | 2019-11-24T05:08:59 | C++ | UTF-8 | Python | false | false | 1,281 | py | #!/usr/bin/env python3
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""ComponentGraph is a graph that holds component relationships.
Typical example usage:
graph = ComponentGraph()
graph.add_node(nod... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
375c25ad0955bac2eb62c7123fa3445ba179e7c4 | 89193c99ba40472a376df61a30ae687ca550e813 | /verification/src/referee.py | e70efddd011800bdfd79f9e764554ee009e09e8c | [] | no_license | oduvan/crystal-test | d463f206348d5951b7bfcec389e6d55a7623a304 | 0be4248a2d350bf42a2a8f34f2ae144b49ace26d | refs/heads/master | 2021-01-13T02:15:25.189518 | 2015-05-19T11:27:00 | 2015-05-19T11:27:00 | 35,878,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from checkio_referee import RefereeBase
import settings_env
from tests import TESTS
class Referee(RefereeBase):
TESTS = TESTS
ENVIRONMENTS = settings_env.ENVIRONMENTS
DEFAULT_FUNCTION_NAME = "check_line"
| [
"bvv.mag@gmail.com"
] | bvv.mag@gmail.com |
08f1f963f24d7a9bab90327032c2b5b0460e20b7 | f2befaae3840bafd181cc712108e3b64caf2696f | /app/portal/horizon/openstack_dashboard/dashboards/project/instances/tables.py | 42f0b9f461ecbd65ddd01935548e6f75b99866e4 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | F5Networks/f5-adcaas-openstack | 17d5c408d421dcfe542002e1f850b2d9f29f1663 | 02bd8a606215c0fa08b926bac1b092b5e8b278df | refs/heads/master | 2023-08-28T12:09:54.972191 | 2022-08-12T02:03:43 | 2022-08-12T02:03:43 | 164,592,273 | 4 | 23 | Apache-2.0 | 2022-08-12T02:03:44 | 2019-01-08T07:40:35 | Python | UTF-8 | Python | false | false | 48,615 | py | # Copyright 2012 Nebula, 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 agree... | [
"a.zong@f5.com"
] | a.zong@f5.com |
f913c8d11307552a530ecb452177b6a6b446f154 | 62179a165ec620ba967dbc20016e890978fbff50 | /nncf/telemetry/__init__.py | 8219f26d6bd2e2221eceb6fd2bb86a9e1ceb0775 | [
"Apache-2.0"
] | permissive | openvinotoolkit/nncf | 91fcf153a96f85da166aacb7a70ca4941e4ba4a4 | c027c8b43c4865d46b8de01d8350dd338ec5a874 | refs/heads/develop | 2023-08-24T11:25:05.704499 | 2023-08-23T14:44:05 | 2023-08-23T14:44:05 | 263,687,600 | 558 | 157 | Apache-2.0 | 2023-09-14T17:06:41 | 2020-05-13T16:41:05 | Python | UTF-8 | Python | false | false | 737 | py | # Copyright (c) 2023 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 to in writ... | [
"noreply@github.com"
] | openvinotoolkit.noreply@github.com |
01212c407ad4c53e70b18e0f02bde4e24b1e5fbb | 3e9bc0c3b8c842fb0c4bb6aa826ec228ce8c3eea | /tenable/cs/usage.py | 37cdb7ebaebf303a4d0c88456c60231874da800c | [
"MIT"
] | permissive | starblast/pyTenable | f2f7604ce31c1621cb8fa49effafd046eb2a6cf6 | bd6c5b87b0cafe135bfb416dcc94017b135be37b | refs/heads/master | 2023-08-05T04:27:08.309535 | 2021-09-27T15:12:46 | 2021-09-27T15:12:46 | 288,222,919 | 0 | 0 | MIT | 2020-08-17T15:54:52 | 2020-08-17T15:54:51 | null | UTF-8 | Python | false | false | 559 | py | '''
usage
=====
The usage methods allow interaction into ContainerSecurity
usage API.
Methods available on ``cs.usage``:
.. rst-class:: hide-signature
.. autoclass:: UsageAPI
.. automethod:: stats
'''
from .base import CSEndpoint
class UsageAPI(CSEndpoint):
def stats(self):
'''
Returns the... | [
"steve@chigeek.com"
] | steve@chigeek.com |
f5ba095041d842d48384162dec01056f1ff55719 | 868ea7968754f77277ce092d318acce58a2ba034 | /miragecore/codable/encorder_decorder.py | f9cb343a5c6cf481521b15f97857ba162c36e163 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | shotastage/mirage-django | 7bc3cd604166bab2cb9f17757fc0dbef082e9e8a | afdc1ca1fa6db01af174cf31310b6ef690d9254a | refs/heads/master | 2021-08-02T04:18:31.461275 | 2021-07-19T01:53:24 | 2021-07-19T01:53:24 | 136,008,405 | 0 | 0 | Apache-2.0 | 2021-07-19T01:53:25 | 2018-06-04T10:20:18 | Python | UTF-8 | Python | false | false | 320 | py | """
Mirage Framework
decodable.py
Created by Shota Shimazu on 2018/07/18
Copyright (c) 2018-2020 Shota Shimazu All Rights Reserved.
This software is released under the Apache License, see LICENSE for detail.
https://github.com/shotastage/mirageframework/blob/master/LICENSE
"""
from typing import Callable, NoReturn
| [
"hornet.live.mf@gmail.com"
] | hornet.live.mf@gmail.com |
c2a1ea98112ab6d8f50d3572262010319df95065 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-vs/aliyunsdkvs/request/v20181212/DescribeVsDomainSnapshotDataRequest.py | 98a9c86cd8d7857084671b50fbfee734f7dc2438 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 2,064 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
5410b6d3b9e08b0e76a90562c24533d867fa65d9 | 8eeef7742573a8b671648d94e448d5614272c5d6 | /core2web/Week4/Day21/octal.py | 1d930a000ed7f219c1da6cbc50eafb52a161887d | [] | no_license | damodardikonda/Python-Basics | 582d18bc9d003d90b1a1930c68b9b39a85778ea7 | fd239722fc6e2a7a02dae3e5798a5f1172f40378 | refs/heads/master | 2023-01-28T16:22:19.153514 | 2020-12-11T06:36:49 | 2020-12-11T06:36:49 | 270,733,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | ''' Write a Program to Convert entered Binary Number to Octal Number
Input: Binary Number: 1011
Output: Octal Number: 13 '''
num=int(input("enter the number"))
if num==0000:
print(0)
elif num==0001:
print(1)
elif num==0010:
print(2)
elif num==0011:
print(3)
elif num==0100:
print(4)
elif num==01... | [
"damodar2dikonda@gmail.com"
] | damodar2dikonda@gmail.com |
b3f407228b3bf4a2bafe117fcb404ee16d24a9e4 | 485cf3c70fcaa68689a2b690b6465f1d6bcf21bd | /Python_Coding_Tips/Code_py/Code(实例源码及使用说明)/01/09/2.列表中出现次数最多的数字/demo.py | a708aacda0b845533ca5f8d17298971032aac673 | [] | no_license | lxz0503/study_20190608 | 5ffe08c4704bb00ad8d1980baf16b8f5e7135ff4 | 47c37798140883b8d6dc21ec5da5bc7a20988ce9 | refs/heads/master | 2022-12-23T17:23:45.039015 | 2021-06-23T14:50:19 | 2021-06-23T14:50:19 | 190,884,812 | 1 | 3 | null | 2022-12-15T23:17:33 | 2019-06-08T12:22:56 | Python | UTF-8 | Python | false | false | 1,678 | py | # *_* coding : UTF-8 *_*
# 开发团队 :明日科技
# 开发人员 :Administrator
# 开发时间 :2019/7/2 16:43
# 文件名称 :demo.py
# 开发工具 :PyCharm
listcar = [[837624, "RAV4"], [791275, "途观"],
[651090, "索罗德"], [1080757, "福特F系"],
[789519, "高尔夫"], [747646, "CR-V"],
[1181445, "卡罗拉"]]
listcha2 = ['莱科宁 236', '汉密尔... | [
"lxz_20081025@163.com"
] | lxz_20081025@163.com |
03b75f443fe0c74b0584e2c186ff6af113b969e0 | 054b665faf3c099efb3e24768b4dcb24e054b011 | /flask/bin/migrate | c853a4bffd15a0a7631168ff3f0db0fdb27c76eb | [] | no_license | linqili2006/mywebsite | 8cbec2c32e8a38db2e7d5e0e6745800dd09f239a | 4ff202d75cab59d507755f48020d02c2ec0a6eb7 | refs/heads/master | 2020-03-15T11:14:24.543491 | 2018-05-10T08:31:59 | 2018-05-10T08:31:59 | 132,116,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | #!/root/website/flask/bin/python
# PBR Generated from u'console_scripts'
import sys
from migrate.versioning.shell import main
if __name__ == "__main__":
sys.exit(main())
| [
"root@localhost.localdomain"
] | root@localhost.localdomain | |
f5566764898099ac51713c2da78ad81dc00b50a7 | 72244ac24e86f9cc57fdd0a123beaa9e262cc620 | /assemblyHub/alignabilityTrack.py | 6707ce4e9252a7a4d3314a7750616181c3ca63ae | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | lukeping/hal | 7defb8e1421fa3c1b56fb77ec3dd146eab4828bc | bb053f7d58bdef7f24e3a0d1eababe0e622219c0 | refs/heads/master | 2020-12-25T19:58:13.929088 | 2014-11-07T14:55:55 | 2014-11-07T14:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | #!/usr/bin/env python
#Copyright (C) 2013 by Ngan Nguyen
#
#Released under the MIT license, see LICENSE.txt
"""Creating Alignability track for the hubs
"""
import os
from sonLib.bioio import system
from jobTree.scriptTree.target import Target
class GetAlignability( Target ):
def __init__(self, genomedir, genom... | [
"nknguyen@soe.ucsc.edu"
] | nknguyen@soe.ucsc.edu |
174492e1a8fc7497bcfbb8979de002d22b5437b9 | 437e905d8c214dc25c559b1dc03eaf9f0c85326f | /is28/makshaev28/Python3/zad6/6.1.py | 30b634e6efbbc814074c3373f472ce314eee591f | [] | no_license | AnatolyDomrachev/karantin | 542ca22c275e39ef3491b1c0d9838e922423b5a9 | 0d9f60207e80305eb713fd43774e911fdbb9fbad | refs/heads/master | 2021-03-29T03:42:43.954727 | 2020-05-27T13:24:36 | 2020-05-27T13:24:36 | 247,916,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | def readData(pathway):
dictArr = []
with open(pathway) as file:
for line in file:
key, *val = line.split()
dictArr.append({}.fromkeys(key,val))
return dictArr
pathway = "data.txt"
dictArr = readData(pathway)
for dictionary in dictArr:
print(dictionary)
| [
"you@example.com"
] | you@example.com |
17bba0cb7d382ec41db8243e21d2c386f7efde7a | 68adda25dff4b3650e88c495928ecd36b8c037b4 | /.vscode/extensions/ms-python.python-2020.7.96456/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_signature.py | 268d94417fd908bc56cefc42a054b3d632443649 | [
"MIT"
] | permissive | jaeyholic/portfolio-v2 | 28614ce9ce0a7a450aaa58f36393b95ad3155464 | f9cfdd250e0fbde9e91e36d46826700a7c08df62 | refs/heads/master | 2023-06-24T04:18:27.269996 | 2020-08-11T14:28:12 | 2020-08-11T14:28:12 | 228,602,441 | 0 | 0 | MIT | 2023-06-10T00:47:09 | 2019-12-17T11:32:20 | JavaScript | UTF-8 | Python | false | false | 7,163 | py | from _pydev_bundle import pydev_log
try:
import trace
except ImportError:
pass
else:
trace._warn = lambda *args: None # workaround for http://bugs.python.org/issue17143 (PY-8706)
import os
from _pydevd_bundle.pydevd_comm import CMD_SIGNATURE_CALL_TRACE, NetCommand
from _pydevd_bundle import py... | [
"gabsco208309@hotmail.com"
] | gabsco208309@hotmail.com |
3af64a7476817d44f5c1c389ecec2619a855f37c | e3bdb7844f634efd89109079d22cade713c4899d | /openapi_client/models/china_domestic_payment_method_all_of.py | d1e85677f22b75217f6b845c0fdcc171142030b4 | [] | no_license | pc-coholic/Python | 5170c27da09b066c353e09539e404961f7ad50b7 | b7251c31339b579f71fb7ee9db05be51e9e43361 | refs/heads/master | 2023-04-19T02:42:02.914726 | 2021-04-26T16:07:37 | 2021-04-26T16:07:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,597 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
e066c3f04af4c6772b63993fed55c0647861a4b5 | 343bdaddfc66c6316e2cee490e9cedf150e3a5b7 | /0901_1000/0951/0951.py | e7f9fed9f28d15532af5a4160d9d71a6b7d91a5c | [] | no_license | dm-alexi/acmp | af7f6b4484b78f5922f3b464406a0ba5dea0d738 | 3fa0016d132adfeab7937b3e8c9687a34642c93a | refs/heads/master | 2021-07-09T15:14:25.857086 | 2020-10-20T19:08:54 | 2020-10-20T19:08:54 | 201,908,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | def dist(a, b):
return (a[0] - b[0] if a[0] > b[0] else b[0] - a[0]) + (a[1] - b[1] if a[1] > b[1] else b[1] - a[1])
with open("input.txt", "r") as f, open("output.txt", "w") as q:
n, m = (int(x) for x in f.readline().split())
tmp = [int(x) for x in f.readline().split()]
s = []
for i in range(tmp[0... | [
"dm2.alexi@gmail.com"
] | dm2.alexi@gmail.com |
b68e3318cb793593b48ae941f8f555cf884c5ba1 | 55a4573cdeb116b20a625a398af04337f180d598 | /instrument/tcpinterface.py | 76c31d26f6d291a995a83104607a9d710d7de4f6 | [
"Unlicense"
] | permissive | NOAA-PMEL/omega-trh-daq | f506e4c968b7942dccb6cf012c377c3719a04143 | 98a18c62130af36d43c2882659e65321c3a98529 | refs/heads/master | 2020-04-02T11:10:18.632072 | 2019-07-23T15:33:39 | 2019-07-23T15:33:39 | 154,374,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,322 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 6 12:35:11 2018
@author: derek
"""
import asyncio
import functools
import logging
import sys
import time
from tcpclient import TCPClient
from ifmessage import InterfaceMessage
from data import Data
from datetime import datetime
import json
SERVER_... | [
"derek.coffman@noaa.gov"
] | derek.coffman@noaa.gov |
e6af55d946feb8f98d965fcf13999cb498a2ad98 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/127/usersdata/215/35797/submittedfiles/ex11.py | 5080aba3b97c0e3a2eedcdeb5b76a3d52f524f79 | [] | 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 | 407 | py | # -*- coding: utf-8 -*-
d1=int(input('digite o dia 1'))
m1=int(input('digite o mes 1'))
a1=int(input('digite o ano 1'))
d2=int(input('digite o dia 2'))
m2=int(input('digite o mes 1'))
a2=int(input('digite o ano 2'))
if a1>=a2 and m1>=m2 and d1>=d2:
print ('DATA 1')
elif a1>=a2 and m2>=m1 and d1>=d2:
print ('DAT... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e2e289556271d1d8f6936dbf1d0fbfd0537d64f4 | f92e2e45fb0b074e16ec1cd97123544c9252b94e | /TF/mnist.py | 13ea98e4340590c1a5cd57d70f81235f76e31bc7 | [] | no_license | CosmosShadow/ResidualOnMnist | 10ef771140bac6b68765030028e31adcec301025 | 73659a66212e1bc6e0b9cd8cfa45642e4f2560db | refs/heads/master | 2021-01-21T15:04:36.162028 | 2016-10-22T04:31:37 | 2016-10-22T04:31:37 | 56,119,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,272 | py | # coding: utf-8
import time
import tensorflow as tf
import prettytensor as pt
import numpy as np
import cmtf.data.data_mnist as data_mnist
@pt.Register
def leaky_relu(input_pt):
return tf.select(tf.greater(input_pt, 0.0), input_pt, 0.01*input_pt)
# 数据
mnist = data_mnist.read_data_sets(one_hot=True)
x = tf.placehold... | [
"lichenarthurml@gmail.com"
] | lichenarthurml@gmail.com |
3e4e5112d6660577b0cd6b30656234fba02f0527 | 27abeacadc88a05b54210ee65c203f967712d71e | /03. Square of Stars.py | b4896e59c44a26a2c894fa03d4eeb70b9df50d5e | [] | no_license | antondelchev/Drawing-Figures-with-Loops---More-Exercises | 68952179e35147e2c9e5daccfe72e1d17012675b | 0aee91ce01cb697ab6c69773438cae59c6e5983d | refs/heads/main | 2023-04-05T15:23:22.021184 | 2021-04-07T13:19:28 | 2021-04-07T13:19:28 | 352,978,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | n = int(input())
for rows in range(1, n + 1):
for columns in range(1, n + 1):
print("*", end=" ")
print()
| [
"noreply@github.com"
] | antondelchev.noreply@github.com |
11f9a1b87a463c583ddae9e86ac7688b707ab299 | b46f5825b809c0166622149fc5561c23750b379c | /AppImageBuilder/app_dir/runtimes/wrapper/runtime.py | 4b43e5aaed631afe2e5319e816d31fd2f838b053 | [
"MIT"
] | permissive | gouchi/appimage-builder | 22b85cb682f1b126515a6debd34874bd152a4211 | 40e9851c573179e066af116fb906e9cad8099b59 | refs/heads/master | 2022-09-28T09:46:11.783837 | 2020-06-07T19:44:48 | 2020-06-07T19:44:48 | 267,360,199 | 0 | 0 | MIT | 2020-05-27T15:42:25 | 2020-05-27T15:42:24 | null | UTF-8 | Python | false | false | 2,400 | py | # Copyright 2020 Alexis Lopez Zubieta
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publi... | [
"contact@azubieta.net"
] | contact@azubieta.net |
2f8a676ef30f5abef4832108c28b70504f148757 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/CloseEdgeInstanceDeploymentRequest.py | 05a482bb4197c222287be23b2c0c696e4783019e | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 1,627 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
6022e6c6abf0a35dedccd7143a06f18591791089 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayDataDataserviceAdPrincipalCreateormodifyModel.py | 9c4e9f5ad05e64e1a503a377d7ce5a54c7482637 | [
"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 | 4,120 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.OuterAttachment import OuterAttachment
class AlipayDataDataserviceAdPrincipalCreateormodifyModel(object):
def __init__(self):
self._alipay_pid = None
self._at... | [
"ben.zy@antfin.com"
] | ben.zy@antfin.com |
d552d4a1ed7719931012991501fb8dd1adf3b279 | a667d52d9be08aab9f101952dfede0e29a43b012 | /src/apps/cyd/views.py | 0dc9d9b6f6ca90aff6ce7d0235878df174bd5384 | [] | no_license | Epatzan/app-suni | 50b04bbf58417e8cfba77a5e00c2d6a5a6537c16 | b7f9eaf62942797cd4f222ea2fb82348304aeaf4 | refs/heads/master | 2023-08-21T13:15:44.826842 | 2018-03-15T14:00:30 | 2018-03-15T14:00:30 | 123,631,541 | 0 | 0 | null | 2018-03-02T21:13:55 | 2018-03-02T21:13:55 | null | UTF-8 | Python | false | false | 15,061 | py | from datetime import datetime
from django.db import IntegrityError
from django.db.models import Q
from django.http import HttpResponseRedirect
from django.views.generic import DetailView, ListView, View, TemplateView
from django.views.generic.edit import CreateView, UpdateView, FormView
from django.core.urlresolvers i... | [
"jinchuika@gmail.com"
] | jinchuika@gmail.com |
e9e32a4e9b977c92d88e6632781032c5e5d45b97 | 467d309d9309748097ae1853fbfbf487a00136a3 | /cpdb/pinboard/tests/models/test_pinboard.py | a2ea084344a9ed8ab4b11e9aa7167e6505818d2b | [
"Apache-2.0"
] | permissive | invinst/CPDBv2_backend | 3ad7cf52a63db27f7821bbac0f11527ea86f52bb | 2efe6e69648989fdadde27b8c19b99c323449c79 | refs/heads/master | 2023-06-08T09:53:55.255416 | 2023-06-03T03:05:36 | 2023-06-03T03:05:36 | 74,455,248 | 27 | 6 | Apache-2.0 | 2023-05-22T21:34:52 | 2016-11-22T09:16:53 | Python | UTF-8 | Python | false | false | 35,714 | py | from datetime import datetime
from django.test.testcases import TestCase
import pytz
from robber.expect import expect
from data.factories import (
AllegationFactory, OfficerFactory, OfficerAllegationFactory, InvestigatorAllegationFactory,
PoliceWitnessFactory,
AttachmentFileFactory,
)
from pinboard.facto... | [
"open-source@eastagile.com"
] | open-source@eastagile.com |
c6c7d64134028c63c943a4dd32a9b29080c36dec | 9461195cac30788855359753ac2856d746e81cd6 | /manage.py | 7945a81347bbe0f465cfb4e7d0f47031a70c5e01 | [] | no_license | ChristianSmith18/python-project | e15460b29e29a6bb841c82a762618f7ff86ab724 | 76d876f3fded93643af58e65f183bb6403beb755 | refs/heads/master | 2023-04-30T15:30:48.472909 | 2021-05-24T17:33:46 | 2021-05-24T17:33:46 | 370,433,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'proyecto_django.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"cgr.gonzalezrossier@gmail.com"
] | cgr.gonzalezrossier@gmail.com |
fb50698f2e658a2c8b2bbdef48d05d351cae9ab8 | 3b15dc211cb6c034f4d843b1bbc540f1699182f7 | /tkinter/Menu单选获取值.py | 7d58e46e55f5da2c6c97dd4fc968a7e39d4f800f | [] | no_license | Hanlen520/- | eea27d5a1272272a2f47f9070f285e44300ab0d2 | 308d3401ff368cd11f4aeac7949d57c3136f2b6e | refs/heads/master | 2023-03-15T19:18:25.168665 | 2020-07-05T14:39:41 | 2020-07-05T14:39:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from tkinter import *
root=Tk()
menubar=Menu(root)
vLang = StringVar()
def printItem():
print(vLang.get())
filemenu=Menu(menubar,tearoff=0)
for k in ['Python', 'PHP', 'CPP', 'C']:
filemenu.add_radiobutton(label=k, command=printItem, variable=vLang)
menubar.add_cascade(label='Language', menu=filemenu)
root[... | [
"admiwj@outlook.com"
] | admiwj@outlook.com |
8a82008b3ed0ad1d9605193ca8d043dfcd68a0f8 | 40e29b3ff5699826b8cb0468456beb4aec7d8068 | /py_convert_cgi_form_to_array_with_mapping.py | 1e3fbb289cd8715ef0f39d66ec93b3a8969daad9 | [] | no_license | bahmany/PythonPurePaperless | e52497ef38bb2b51918d83d6f70da7828880e7f8 | 120e7fcbb79929e80054ce56c6acb8f1da7a7ae0 | refs/heads/master | 2016-08-12T01:57:39.663947 | 2015-10-05T06:58:40 | 2015-10-05T06:58:40 | 43,624,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | def _map(array,Objname,dbname):
ar=[]
for objar in array:
if objar[0]==Objname:
objar.append(dbname)
ar.append(objar)
array=ar
def _find_from_field_name(array,fieldname):
a=""
for obj in array:
if len(obj)==3:
if obj[2]==fieldname... | [
"bahmanymb@gmail.com"
] | bahmanymb@gmail.com |
76de469c09aefb57475401227a52fa98bb05a2e6 | e01c5d1ee81cc4104b248be375e93ae29c4b3572 | /Sequence5/CTCI/4-tree-graph/main/trie.py | 4717197d857d5735d2b31cd78b1cbc42fd5a0012 | [] | no_license | lalitzz/DS | 7de54281a34814601f26ee826c722d123ee8bd99 | 66272a7a8c20c0c3e85aa5f9d19f29e0a3e11db1 | refs/heads/master | 2021-10-14T09:47:08.754570 | 2018-12-29T11:00:25 | 2018-12-29T11:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | class Node:
def __init__(self, data = None):
self.data = data
self.isEndOfWord = False
self.children = [None] * 26
def is_it_free(self):
for i in self.data:
if self.children is not None:
return False
return True
class Trie:
def __init__(self):
self.root = Node()
def char... | [
"lalit.slg007@gmail.com"
] | lalit.slg007@gmail.com |
fcf0093fe09b43356fb7b8184253abd384200e97 | 84f9ae843bbc37a18145840fa4da348a915af1c3 | /renpy/versions.py | ec23077062ba1061b8bc251d74930e1814858373 | [] | no_license | SpikyCaterpillar/renpy | c25b28c37be46f28ce413f09754f60eb63cca1f1 | a33f891d65d3fd2b59a533c365800a59f8e15f0c | refs/heads/master | 2023-06-22T18:02:57.826729 | 2023-06-03T22:39:11 | 2023-06-07T23:55:48 | 37,309,831 | 0 | 0 | null | 2015-06-12T08:01:01 | 2015-06-12T08:01:01 | null | UTF-8 | Python | false | false | 5,115 | py | # Copyright 2004-2023 Tom Rothamel <pytom@bishoujo.us>
#
# 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, m... | [
"pytom@bishoujo.us"
] | pytom@bishoujo.us |
25e4b04edb8e34498ca234163aa276d6638a1f1d | 5e2dddce9c67d5b54d203776acd38d425dbd3398 | /spacy/tests/lang/nb/test_tokenizer.py | 277df5cf27b18b206764e63c2f05bf7d532341b1 | [
"MIT"
] | permissive | yuxuan2015/spacy_zh_model | 8164a608b825844e9c58d946dcc8698853075e37 | e89e00497ab3dad0dd034933e25bc2c3f7888737 | refs/heads/master | 2020-05-15T11:07:52.906139 | 2019-08-27T08:28:11 | 2019-08-27T08:28:11 | 182,213,671 | 1 | 0 | null | 2019-04-19T06:27:18 | 2019-04-19T06:27:17 | null | UTF-8 | Python | false | false | 653 | py | # coding: utf8
from __future__ import unicode_literals
import pytest
NB_TOKEN_EXCEPTION_TESTS = [
('Smørsausen brukes bl.a. til fisk', ['Smørsausen', 'brukes', 'bl.a.', 'til', 'fisk']),
('Jeg kommer først kl. 13 pga. diverse forsinkelser', ['Jeg', 'kommer', 'først', 'kl.', '13', 'pga.', 'diverse', 'f... | [
"yuxuan2015@example.com"
] | yuxuan2015@example.com |
0131f9573ecd5c64254a626cb149b58db8e87cd1 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/Django-1.11/tests/migrate_signals/custom_migrations/0001_initial.py | 6e969d29ed9eadeeb6d1d1f49bb1697fb1219836 | [
"BSD-3-Clause",
"Python-2.0",
"Apache-2.0"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 327 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
"Signal",
[
("id", models.AutoField(primary_key=True)),
],
),... | [
"ranade@cloudera.com"
] | ranade@cloudera.com |
960d292ad5211dc44e6a611ed348b81a18ebdd0b | 6b2db6fca8f31c4e6c96e68cf11e5ca3ce7e8a9b | /src/508PlanningAnaByDirectionActionAccumulatedCostFromMultipleSuspectorsWithProbabilitySquareKillzone.py | ccf44b2aee2e3dd4a901a660b91b7be1058bdc52 | [
"MIT"
] | permissive | ningtangla/escapeFromMultipleSuspectors | e04da12488be9767c5b6511355c167fdcf18e723 | e6dcb0f7f9371b7ca6cca8779f69f18095092140 | refs/heads/master | 2022-05-03T05:25:21.556950 | 2022-04-20T13:51:53 | 2022-04-20T13:51:53 | 190,686,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,061 | py | import numpy as np
import pygame as pg
import pandas as pd
import pylab as plt
import itertools as it
import math
import os
import pathos.multiprocessing as mp
import copy
from anytree import AnyNode as Node
from anytree import RenderTree
from collections import OrderedDict
# Local import
from algorithms.stochasticPW... | [
"ningtangzju@gmail.com"
] | ningtangzju@gmail.com |
304faf589ab72d52dee44c741f06e21d1f7de1c8 | 3ab43ce3b0350333a2c4bdfc0ad08fa60ef0450a | /backend/fighting_powers_20170/settings.py | 47b429dec152cac4ae504bf4b441133cee744dec | [] | no_license | crowdbotics-apps/fighting-powers-20170 | 3bc185190677fc0a85dec34aeb4bd1e5f1afa55e | 5118dd8bc47de5bc82d5d3f7bf2a3de518e1966c | refs/heads/master | 2022-12-09T16:01:25.783105 | 2020-09-10T01:33:53 | 2020-09-10T01:33:53 | 294,270,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,919 | py | """
Django settings for fighting_powers_20170 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a79c7d60c970db8fa04bb018814a199f3284ebf0 | c7adccf0aeb52a3fba4345c6b9ca5e627718065a | /tactics/heartbeat/config.py | aa30fa8885be2b8aa2154062376d8161a730e136 | [] | no_license | 2020saurav/cs654 | b23349f07cf45b44f0de3a2fc204b46b3b3f06ff | c8d7bb19480b0e2b7471adc41d3782e5ed2ee176 | refs/heads/master | 2021-01-21T03:37:47.715145 | 2016-04-12T08:12:07 | 2016-04-12T08:12:07 | 49,427,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | slaves = [
{'name': 'S01', 'ip': '172.17.0.2', 'alive': True, 'lastSeen': 0, 'info': ''},
{'name': 'S02', 'ip': '172.17.0.3', 'alive': True, 'lastSeen': 0, 'info': ''},
{'name': 'S03', 'ip': '172.17.0.4', 'alive': True, 'lastSeen': 0, 'info': ''},
{'name': 'S04', 'ip': '172.24.1.62', 'alive': True, 'lastSeen': 0, 'info... | [
"2020saurav@gmail.com"
] | 2020saurav@gmail.com |
fd831cddfc60a0920889416eccbb1c484d96536b | 53fde40df3dae0a4b8231fe51057cd9dbf7a36bd | /test/project1/project1/koi8r.py | 8f30e88ebc3c1b9d200dcd228914655f9e902e23 | [
"MIT"
] | permissive | jayclassless/tidypy | 2de72fd027377d17c1f09d196c79e5b55316f8f9 | 9ba4e08064d89c27a750ccbc9430f88adc6ce0c6 | refs/heads/master | 2023-04-01T15:48:53.207295 | 2023-03-18T00:27:34 | 2023-03-18T00:27:34 | 106,944,243 | 36 | 11 | MIT | 2023-09-12T20:27:47 | 2017-10-14T16:35:49 | Python | ISO-8859-3 | Python | false | false | 89 | py | # -*- coding: koi8-r -*-
test = 'żżż żżżżżż żżżżżżżżżżż'
#foo = 1
| [
"jay@classless.net"
] | jay@classless.net |
3cba78a67581f98314362474a956c39ec5647590 | 0f224fb062a50179db3ab146704807c24b9e8adb | /semana_4/cajero.py | fe4beeece4bd7f448af951f57fd4eaf71b197353 | [] | no_license | Ingrid-Nataly-Cruz-Espinosa/POO1719110501 | a893b12044dac096f73749c49abde5063dbfd921 | dbb56d7824d474141e901c210269924c3b054f40 | refs/heads/master | 2022-11-15T16:03:38.826941 | 2020-06-29T03:12:28 | 2020-06-29T03:12:28 | 266,243,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | class cajero:
funciones= 10
confidencial= "si"
impreciondebaucher= "si"
depositobilletes= 1
depositodemonedas= 1
lectordetarjeta= 1
funcional= "si"
def deposito(self):
print("Realiza depositos")
def retiros(self):
print("Permite realizar retiros")
def movimientos(self):
print("Realiza m... | [
"replituser@example.com"
] | replituser@example.com |
863139dcbef24e57d9a46b5fe974f2272961c565 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02642/s367328349.py | 5d60772f5492037165490a21e9755fd531c94352 | [] | 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 | 252 | py | from collections import Counter
N = int(input())
A = list(map(int, input().split()))
counter = Counter(A)
B = [1] * (max(A) + 1)
for a in A:
for k in range(a * 2,len(B),a):
B[k] = 0
print(sum(B[a] == 1 and counter[a] == 1 for a in A))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
32895f795a3465ccedef0e785819901ee601174c | 0809673304fe85a163898983c2cb4a0238b2456e | /src/lesson_the_internet/http_server_send_header.py | fe77556ead80b5ae58e996feb8c3af57f6a53556 | [
"Apache-2.0"
] | permissive | jasonwee/asus-rt-n14uhp-mrtg | 244092292c94ff3382f88f6a385dae2aa6e4b1e1 | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | refs/heads/master | 2022-12-13T18:49:02.908213 | 2018-10-05T02:16:41 | 2018-10-05T02:16:41 | 25,589,776 | 3 | 1 | Apache-2.0 | 2022-11-27T04:03:06 | 2014-10-22T15:42:28 | Python | UTF-8 | Python | false | false | 665 | py | from http.server import BaseHTTPRequestHandler
import time
class GetHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header(
'Content-Type',
'text/plain; charset=utf-8',
)
self.send_header(
'Last-Modified',
... | [
"peichieh@gmail.com"
] | peichieh@gmail.com |
0fc244e503959adb19c98295dfc7bd871d07a4ed | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /data_persistence_and_exchange/xml_etree_ElementTree/ElementTree_entity_references.py | 9cfbbe80d1b38676bed2848c70993ab57864cb5c | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 245 | py | from xml.etree import ElementTree
with open('data.xml', 'rt') as f:
tree = ElementTree.parse(f)
node = tree.find('entity_expansion')
print(node.tag)
print(' in attribute:', node.attrib['attribute'])
print(' in text :', node.text.strip())
| [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
06674374bdd787cb7958cc31acab4aee08b68467 | 0ec0fa7a6dc0659cc26113e3ac734434b2b771f2 | /4.refactored/log/2016-11-10@10:48/parameters.py | 07dd1cba4bd7c6f609ffaad932874967777f610e | [] | no_license | goldleaf3i/3dlayout | b8c1ab3a21da9129829e70ae8a95eddccbf77e2f | 1afd3a94a6cb972d5d92fe373960bd84f258ccfe | refs/heads/master | 2021-01-23T07:37:54.396115 | 2017-03-28T10:41:06 | 2017-03-28T10:41:06 | 86,431,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,422 | py | import numpy as np
import xml.etree.cElementTree as ET
from xml.etree import ElementTree
#-------------------------------
#AZIONE = 'batch'
AZIONE = 'mappa_singola'
#-------------------------------
DISEGNA = True
#DISEGNA = False
#-------------------------------
#metodo di classificazione per le celle
#TRUE = Metodo ... | [
"matteo.luperto@polimi.it"
] | matteo.luperto@polimi.it |
86c41feb00f7326194e0094ff9aefcf96757f082 | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L7I/7I-24_wat_20Abox/set_1ns_equi_m.py | 0f8487b5991bd7e15bf5f7e09c94cbac671bc3da | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L7I/wat_20Abox/ti_one-step/7I_24/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_m.in'
temp_pbs = filesdir + 'temp_1ns_equi_m.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
f75968f315b047d150424d9582045e1dc5e996c1 | 83d67edb5dfcfdc202098a55a3ff7579ca976f16 | /paperboy/resources/login.py | 82b6be4b2520d6e2d07e930cdab1acc2eb48d5de | [
"Apache-2.0"
] | permissive | huxh/paperboy | 2e5e4042d3dcf13f0233995bf6df6ac2af7903c9 | 1efb62d3493f8816c625764b6afed178ca26c6b2 | refs/heads/master | 2020-05-19T09:45:16.791969 | 2019-04-24T13:17:43 | 2019-04-24T13:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | import falcon
import jinja2
from .base import BaseResource
from .html import read
class LoginResource(BaseResource):
'''Falcon resource for user authentication'''
auth_required = False
def __init__(self, *args, **kwargs):
super(LoginResource, self).__init__(*args, **kwargs)
def on_get(self,... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
37eb684d780cc12846b20ae5ebb7667e8aa07fb7 | 2951174fd6d8a7cf9a71e0663ae3b22bd309be5a | /LianJia/LianJia/items.py | dc87d5a8c3eb890a29768662baa7d86e9e41b799 | [] | no_license | WhiteBrownBottle/Python- | c76045a3127723666083cee4b4c20b08491e4067 | 92fcaba555a566eae829ea401a20f459b4f39dfe | refs/heads/master | 2021-07-18T21:17:45.677091 | 2017-10-24T06:47:38 | 2017-10-24T06:47:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,629 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class XiaoquItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
建筑年代 = scrapy.Field()
建筑类型 = scrapy.F... | [
"958255724@qq.com"
] | 958255724@qq.com |
fc8a5843e331c76bd095b8a976be36be7caf658e | 99b0631baa2fd9ab2455d848b47febf581916272 | /zhijieketang/chapter22/ch22.1.3.py | d2996eaa8d2b7a385f87b94d7e118c08e5dd0876 | [] | no_license | seceast/PyProjects | a934e366cb619f2610d75b9a0fb47d818814a4de | 7be7193b4126ce920a3d3ffa4ef5d8743b3fa7d1 | refs/heads/master | 2023-03-07T22:23:21.229489 | 2021-02-25T05:37:58 | 2021-02-25T05:37:58 | 265,480,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | # coding=utf-8
# 代码文件:chapter22/ch22.1.3.py
import matplotlib.pyplot as plt
# 设置中文字体
plt.rcParams['font.family'] = ['SimHei']
x = [5, 4, 2, 1] # x轴坐标数据
y = [7, 8, 9, 10] # y轴坐标数据
# 绘制线段
plt.plot(x, y, 'b', label='线1', linewidth=2)
plt.title('绘制折线图') # 添加图表标题
plt.ylabel('y轴') # 添加y轴标题
plt.xlabel('x轴') # 添加x轴标... | [
"yangyadong25@163.com"
] | yangyadong25@163.com |
0653a8f2b6b26645f6a51c85216908117628aa4e | 6a256c5a3506b333c3020be45e38d11b4a81a181 | /dbcrud_setupdb.py | 8dcff83d9332aa3df409cc51f6a1fa2ab78180b2 | [] | no_license | courses-learning/python-and-flask-bootcamp | 892992d65ee0758f6c9a4339374b60c7928f47b7 | 887bf917659ea6cefba53b78ba433599626baaf6 | refs/heads/master | 2020-06-13T02:52:57.408008 | 2019-08-20T19:51:26 | 2019-08-20T19:51:26 | 194,508,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | from dbcrud_practice import db, Animal
db.create_all()
polar_bear = Animal('Polar Bear', 'Rex', 12)
elephant = Animal('Elephant', 'Ethel', 23)
print(polar_bear.id)
print(elephant.id)
db.session.add_all([polar_bear, elephant])
db.session.commit()
print(polar_bear.id)
print(elephant.id)
| [
"david_weatherspoon@hotmail.com"
] | david_weatherspoon@hotmail.com |
119bfbbf3b103a5a63f75ab0d96133ad3b9a07a6 | 0836b2b426d39fbcdde073eca4cab0de74452ff3 | /config/urls.py | 05e68bdc5d869bff17bd586a56862f154a665d68 | [
"MIT"
] | permissive | vaibhav-rbs/mordern-django | 89d6d78ce472bd1b6bd895bccb579507119446e9 | a8badd950860bfcf44b9fa9256fe52f810461cd9 | refs/heads/master | 2020-03-19T10:01:46.739749 | 2018-06-06T14:16:42 | 2018-06-06T14:16:42 | 136,337,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"vaibhav.rbs@gmail.com"
] | vaibhav.rbs@gmail.com |
348b1ed480ccec8944ce408b739ca93db447c81c | 92925ea36a241156c923262f7aeea86ce53cb356 | /dashboard/network/urls.py | 8a44d0af6cc46e843bb9faf8af663c6e61994aa3 | [] | no_license | greshem/openstack_bootstrap_dashboard | c839bfb86f8b1f0b8fee602c1363f061ca65ef55 | 7dfda640740507199b291d01cb8304df570f2664 | refs/heads/master | 2021-07-10T00:44:10.875699 | 2017-10-08T15:39:43 | 2017-10-08T15:39:43 | 106,177,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | from django.conf.urls import include, url, patterns
#from dashboard.admin.urls import *
from dashboard.network import views
urlpatterns = patterns('network.views',
#url(r'^admin/accounts', 'account_manage',name='account_manage'),
url(r'^floating_ips/$', views.FloatingView.as_view(), name='floatin... | [
"qianzhongjie@gmail.com"
] | qianzhongjie@gmail.com |
c7ea8575ffe54289c0e0354c98b6e00a497641d7 | 839b26d2d837f256423c11908a2a3618ab8a23f3 | /dashboard/dashboard/list_tests.py | 5aad3d0cb0614359ee5adf82ae972e4b533818b4 | [
"BSD-3-Clause"
] | permissive | Mdlglobal-atlassian-net/catapult | 79be5d4ec5d681c1d2f37ae83534a02f4a4ec72a | e9a386951413e7cbf983abf968626b2e5097fc38 | refs/heads/master | 2022-02-27T15:18:45.524790 | 2020-06-01T07:12:27 | 2020-06-01T22:57:01 | 268,672,431 | 0 | 1 | BSD-3-Clause | 2020-06-02T01:31:05 | 2020-06-02T01:31:04 | null | UTF-8 | Python | false | false | 17,907 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Functions for making lists of tests, and an AJAX endpoint to list tests.
This module contains functions for listing:
- Sub-tests for a given test suite ... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
1128f2bae873af1b8e095dcb14155fd61dc444a3 | 343bdaddfc66c6316e2cee490e9cedf150e3a5b7 | /0001_0100/0049/0049.py | c1cb09e0bcced0985fff970a4b142c6c54f11df6 | [] | no_license | dm-alexi/acmp | af7f6b4484b78f5922f3b464406a0ba5dea0d738 | 3fa0016d132adfeab7937b3e8c9687a34642c93a | refs/heads/master | 2021-07-09T15:14:25.857086 | 2020-10-20T19:08:54 | 2020-10-20T19:08:54 | 201,908,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | with open("input.txt", "r") as f, open("output.txt", "w") as q:
s = f.readline().strip()
t = f.readline().strip()
d = {str(a) : {a} for a in range(0, 10)}
d.update({x : {i, i + 1, i + 2, i + 3} for i, x in enumerate("abcdefg")})
d['?'] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
k = 1
for i in range(le... | [
"dm2.alexi@gmail.com"
] | dm2.alexi@gmail.com |
57e0e3b6981025edaa853be0c370f512a118861a | 2da6133f3cd5c5fc19355292d60253b8c0dbcd49 | /.history/antz/models_20200403232431.py | 47e39abe702fb2fcc845de299cd35ceef9e0de34 | [] | no_license | mirfarzam/python-advance-jadi-maktabkhooneh | b24f5c03ab88e3b12c166a439b925af92f50de49 | d9bcecae73fd992f1290c6fd76761683bb512825 | refs/heads/master | 2021-05-25T21:33:37.782734 | 2020-04-07T22:39:28 | 2020-04-07T22:39:28 | 253,927,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from django.db import models
class CardBrand(models.Model):
name = models.charField(max_length=128)
class CarModel(models.Model):
name = models.charField(max_length=128)
brand = models.ForeignKey(CarBrand, on_delete =)
| [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
58bebc9ffe2f69e6680011d505e6e1b08de702f5 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/Vue.js/juejin_865.py | d9d865466c68c64424e6a3d891bdae1fa43f7444 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,375 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6844904137155411975", "article_info": {"article_id": "6844904137155411975", "user_id": "2788017218794462", "category_id": "6809637767543259144", "tag_ids": [6809640369764958215], "visible_level": 0, "link_url": "https://juejin.im/post/6844904137155411975", "c... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
f372b331e72a115fd209f4b9a9dd9c9996435f7f | d7b9b490c954c7a9160b69f8ce2c907ef4681ecb | /sponsors/migrations/0082_auto_20220729_1613.py | 116b4a011a7c19ecaadc2eb8825056540ddd92d6 | [
"Apache-2.0"
] | permissive | python/pythondotorg | 00db93a4b1789a4d438806d106d9cee3349ad78c | c4ee749942227ca75c8e670546afe67232d647b2 | refs/heads/main | 2023-08-28T20:04:24.735314 | 2023-08-03T19:12:29 | 2023-08-03T19:12:29 | 6,127,047 | 1,131 | 646 | Apache-2.0 | 2023-08-24T15:57:04 | 2012-10-08T16:00:15 | Python | UTF-8 | Python | false | false | 388 | py | # Generated by Django 2.2.24 on 2022-07-29 16:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('sponsors', '0081_sponsorship_application_year'),
]
operations = [
migrations.RenameField(
model_name='sponsorship',
old_nam... | [
"noreply@github.com"
] | python.noreply@github.com |
ab3f40580aa1e1501a9141f7756798def857e807 | 43d8fd08c95ab0b7d73c4ab78529fdd5b0278892 | /kubernetes/client/models/v1_replica_set_condition.py | ba8505dd99ac2b58ebae2875dff7b1c285eedd6b | [
"Apache-2.0"
] | permissive | btaba/python | 7d160b26ea02f668e599857bb3913276213a54f7 | 08561d6477e9be1b39d67ea51dc024a4899fcc07 | refs/heads/master | 2020-04-01T11:47:59.498995 | 2018-10-13T19:03:25 | 2018-10-13T19:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,580 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.12.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"haoweic@google.com"
] | haoweic@google.com |
58a9801d0ccc4688645b9e09360eda2f4a5df932 | 272f75fb678ec4cd09e712d9db3621d274434743 | /example/restaurants/admin.py | 1d31184a1ced627f4e7793858a0e905fc6fce2eb | [
"MIT"
] | permissive | vintasoftware/django-zombodb | 537c4eadad1eaf8f956db06bd7f7a8e39abd25c5 | 2391f27709819bd135e3d0dd571ef42e6996a201 | refs/heads/master | 2023-09-01T18:21:09.543287 | 2022-12-28T15:22:38 | 2022-12-28T15:22:38 | 168,772,360 | 153 | 13 | MIT | 2022-12-28T15:24:22 | 2019-02-01T23:15:22 | Python | UTF-8 | Python | false | false | 528 | py | from django.contrib import admin
from django_zombodb.admin_mixins import ZomboDBAdminMixin
from restaurants.models import Restaurant
@admin.register(Restaurant)
class RestaurantAdmin(ZomboDBAdminMixin, admin.ModelAdmin):
model = Restaurant
list_display = (
'name',
'_zombodb_score',
's... | [
"flaviojuvenal@gmail.com"
] | flaviojuvenal@gmail.com |
98bfcf96f97b7f08cae75adb821c3c32e9db84ef | 043baf7f2cd8e40150bbd4c178879a5dd340348d | /accommodation/migrations/0001_initial.py | 77466847493b5372e234d29decf716663bdbf2ae | [] | no_license | tjguk/ironcage | 1d6d70445b1da9642e1c70c72832c2738f9a942e | 914b8e60819be7b449ecc77933df13f8b100adb0 | refs/heads/master | 2021-05-06T10:20:35.486184 | 2017-11-20T16:34:17 | 2017-11-20T16:34:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-09-07 23:15
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... | [
"peter.inglesby@gmail.com"
] | peter.inglesby@gmail.com |
04d75ce4060f2df692f227b1bd328708277c8897 | 72e81080f6809c0528a3836be9cd3c75733b5c3d | /rlkit/envs/reacher_goal.py | 205fcce8479b26dd518653ecfbfef2ddff09b1d8 | [] | no_license | NagisaZj/mbpo_pytorch | 986214ed729a4d98d60e761fac8fd06a9d66e651 | 12d7e24480b0b0c1a5bbccdf5d8fc434574695b9 | refs/heads/main | 2023-07-13T10:08:57.937163 | 2021-08-23T15:12:58 | 2021-08-23T15:12:58 | 390,729,140 | 0 | 0 | null | 2021-07-29T13:14:12 | 2021-07-29T13:14:12 | null | UTF-8 | Python | false | false | 2,481 | py | import numpy as np
from rlkit.envs.ant_multitask_base import MultitaskAntEnv
from . import register_env
from gym.envs.mujoco.reacher import ReacherEnv as ReacherEnv_
# Copy task structure from https://github.com/jonasrothfuss/ProMP/blob/master/meta_policy_search/envs/mujoco_envs/ant_rand_goal.py
@register_env('reache... | [
"1170863106@qq.com"
] | 1170863106@qq.com |
304e9513584c6511814989653d9015a56f83c020 | 3fe272eea1c91cc5719704265eab49534176ff0d | /scripts/item/consume_2437856.py | 8a3b3f5cc263666730c7d8df70b774d8ca808a76 | [
"MIT"
] | permissive | Bratah123/v203.4 | e72be4843828def05592298df44b081515b7ca68 | 9cd3f31fb2ef251de2c5968c75aeebae9c66d37a | refs/heads/master | 2023-02-15T06:15:51.770849 | 2021-01-06T05:45:59 | 2021-01-06T05:45:59 | 316,366,462 | 1 | 0 | MIT | 2020-12-18T17:01:25 | 2020-11-27T00:50:26 | Java | UTF-8 | Python | false | false | 219 | py | # Created by MechAviv
# Frigid Ice Damage Skin | (2437856)
if sm.addDamageSkin(2437856):
sm.chat("'Frigid Ice Damage Skin' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem() | [
"pokesmurfuwu@gmail.com"
] | pokesmurfuwu@gmail.com |
09b2e4c65d1dcb2dc611b927bb1cdaac37630ee2 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1LpdwVxAQUvL5g1HzVeHoaGgkxukPkCBEv_babylon.py | d020a05a3bead9a715f57a4c5f5f239d515c7104 | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,170 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1LpdwVxAQUvL5g1HzVeHoaGgkxukPkCBEv_babylon(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
afe31aea2d9cd7cf6fa4c51b8e4513f1a8fbd7e6 | 4c12a16443c5f73bce032414e830881cb8c6d8e0 | /backend/racing_lamborginis_21017/wsgi.py | 23b9e9c5bc4be1854177e95bbb72b1c0cd220861 | [] | no_license | crowdbotics-apps/racing-lamborginis-21017 | d9c71440bb877a6fd47cbbeaf9d5e1060df77cba | d76d33f94332843d2b564a103d56ab143e10b0bb | refs/heads/master | 2022-12-30T08:38:47.651833 | 2020-10-03T11:17:53 | 2020-10-03T11:17:53 | 300,862,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | """
WSGI config for racing_lamborginis_21017 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefa... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
34f47ee507cb89aee8ad4f0dec96520200801399 | 409ce560793c070ef4211b99c5a4a5316a258c4f | /unittests/pytests/utils/TestConstants.py | 25fee48f0ccd85b914adda51af89ae2e632377dc | [
"MIT"
] | permissive | calum-chamberlain/pylith | bb718bfb4305f03b45d42348e5d4fa5ed5f4a918 | 8712c39ade53c1cc5ac0e671e4296cee278c1dcf | refs/heads/master | 2020-12-06T17:15:08.638337 | 2016-05-15T20:30:28 | 2016-05-15T20:30:28 | 46,401,744 | 0 | 0 | null | 2016-05-15T20:30:29 | 2015-11-18T07:09:12 | C++ | UTF-8 | Python | false | false | 1,158 | py | #!/usr/bin/env python
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://ge... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
2b024262fb65325d228df31b20c13ff8b11920cb | ce516866ef41b3301566a65cb2c729be62d70b54 | /tests/unit/models/geometry/ThroatNormalTest.py | 1204af3161850a18041b6d1e3c8d989915b4106b | [
"MIT"
] | permissive | PMEAL/OpenPNM | 3a504fb0e982b8c884c7e821f6f970417a1eb861 | ab6df0001285b4006740095ba829bd1625867eae | refs/heads/dev | 2023-09-01T04:17:01.561886 | 2023-08-31T08:26:00 | 2023-08-31T08:26:00 | 11,670,333 | 411 | 194 | MIT | 2023-09-06T04:28:35 | 2013-07-25T20:32:47 | Python | UTF-8 | Python | false | false | 65 | py | class ThroatNormalTest:
def test_voronoi(self):
pass
| [
"jeff@gostick.ca"
] | jeff@gostick.ca |
245fe46d17c120ab7965895e594e5fec0c460184 | 8bbeb7b5721a9dbf40caa47a96e6961ceabb0128 | /python3/413.Arithmetic Slices(等差数列划分).py | b8ac8cded2d30b118ccf5c8f0cf485c7285b43c8 | [
"MIT"
] | permissive | lishulongVI/leetcode | bb5b75642f69dfaec0c2ee3e06369c715125b1ba | 6731e128be0fd3c0bdfe885c1a409ac54b929597 | refs/heads/master | 2020-03-23T22:17:40.335970 | 2018-07-23T14:46:06 | 2018-07-23T14:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,816 | py | """
<p>A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the same.</p>
<p>For example, these are arithmetic sequence:</p>
<pre>1, 3, 5, 7, 9
7, 7, 7, 7
3, -1, -5, -9</pre>
<p>The following sequence is not arithmetic.</p> <... | [
"lishulong@wecash.net"
] | lishulong@wecash.net |
f665c4ad3bec3e391dda74628186ac234349d23c | 9de8b47c53c530b143f5d37a130e47aa092a4b06 | /examples/ods_00_simple.py | 325a00387f973a48cac170fb9c3f90468e8a19af | [
"MIT"
] | permissive | pyexcel/pyexcel-ezodf | 27b2d6e3c9c7f8e04a03827eaad417ec91d08420 | 981fc223984aace7a0fe900f0be7cbcb72c7e17e | refs/heads/master | 2023-08-04T18:56:21.134917 | 2019-06-15T17:00:19 | 2019-06-15T17:00:19 | 25,791,290 | 6 | 3 | NOASSERTION | 2019-06-15T17:00:20 | 2014-10-26T21:15:31 | Python | UTF-8 | Python | false | false | 796 | py | #!/usr/bin/env python
#coding:utf-8
# Purpose: simple spreadsheet
# Created: 26.01.2011
# Copyright (C) 2011, Manfred Moitzi
# License: MIT license
from __future__ import unicode_literals, print_function, division
__author__ = "mozman <mozman@gmx.at>"
import ezodf
ods = ezodf.newdoc('ods', "simple_spreadsheet.ods")
... | [
"mozman@gmx.at"
] | mozman@gmx.at |
00675ddee6089fc807f80b16ba51e6c6744e0783 | 8d4087ba079c6e8a1a87285f4205a5eef4743010 | /scoring_browser/source_tab.py | ca5bb83648d50cdeedadf7251b5fe06e0a6b0208 | [
"MIT"
] | permissive | janpipek/scoring_browser | 5e9d0528224308219199792b84afba6f16e7576b | 518363ebd8fb198edbebcd616a8a027662b97185 | refs/heads/master | 2021-01-01T16:29:57.452640 | 2015-01-13T11:00:48 | 2015-01-13T11:00:48 | 3,330,051 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | #
# scoring_browser --- Simple Qt application for browsing
# scoring outputs in Geant4
#
# Copyright (C) 2012-2014 Jan Pipek
# (jan.pipek@gmail.com)
#
# This file may be distributed without limitation.
#
from PyQt4 import QtGui
class SourceTab(QtGui.QWidget):
""" Tab displaying the file source."""
def __init_... | [
"jan.pipek@gmail.com"
] | jan.pipek@gmail.com |
ec1954ca86823f75679aaa50495f990a7f0d2195 | 6ca9a7ed179ed96857c86dd91d5f81ad07be4690 | /KnowledgeMapping/spark/11_mysql_op.py | fa261f93b12f4fd981f71143cd16bc8f8ffbde56 | [
"MIT"
] | permissive | nickliqian/keep_learning | ede172048cb1473013aa506a943ebe0c7c416065 | be120ce2bb94a8e8395630218985f5e51ae087d9 | refs/heads/master | 2021-04-25T18:23:47.808870 | 2020-07-31T09:52:20 | 2020-07-31T09:52:20 | 108,302,688 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,414 | py | from pyspark import SparkContext
from pyspark.sql import SQLContext
import pyspark.sql.functions as F
sc = SparkContext("local", appName="mysqltest")
sqlContext = SQLContext(sc)
df = sqlContext.read.format("jdbc").options(
url="jdbc:mysql://localhost:3306/mydata?user=root&password=mysql&"
"useUnicode=true... | [
"nickliqian@outlook.com"
] | nickliqian@outlook.com |
b07b5beb077fa3b3f379fd0c69173e66ec085bea | c1655d6c6c11dafc1c7fa9f771b8e1f99cf7f123 | /venv/lib/python3.6/site-packages/pyomo/core/tests/transform/test_transform.py | 0aefef5c1ec00fcdb68e598637498a8b52e011a8 | [] | no_license | igorsowa9/vpp | a27520f19a54d7490534016ded9cd66f4ef5385b | ea91e3b2db921e7b1a450d243f39dbcf61231107 | refs/heads/master | 2021-04-30T03:28:56.642244 | 2019-09-16T09:01:49 | 2019-09-16T09:01:49 | 121,514,524 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,709 | py | # ___________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and
# Engineering Solutions of Sandia, LLC... | [
"iso@ubuntu.ubuntu-domain"
] | iso@ubuntu.ubuntu-domain |
dd47c408355ba26ad57a6dca68f599dd9a8a5475 | 19652cc279e9bd0d63622430f09f0ad187349ff7 | /GetZhuanTiLawContent.py | ca76160f6899084b9cc2ecd79b337aaa18198f31 | [] | no_license | dumin199101/JinRongExtractScript | d1a3a415d335727ba1e9cc3772e0c4b40bcfc040 | 253420befab540b0d35140dfd6ec1c2ebaf95244 | refs/heads/master | 2021-06-27T22:49:27.095270 | 2019-04-30T05:50:34 | 2019-04-30T05:50:34 | 145,783,385 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | # coding=utf-8
"""
@Project: JinRong
@Time: 2019/3/21 16:54
@Name: GetZhuanTiLawContent
@Author: lieyan123091
"""
import os,sys,re
def del_blank_char(str):
"""
去除字符串中的空白跟换行符
:param str:
:return:
"""
rep = re.compile(r'(\n|\t|\r)')
(fstr, count) = rep.subn('', str)
return fstr
def write... | [
"1766266374@qq.com"
] | 1766266374@qq.com |
a21d70e8bbc05a9589358e153a72bbcdcf05d80e | 45828d99366ce5884b44f3a8a88564a97aba07ec | /dg/commands/deploy.py | 858fff8f5fc2460f3f653a80776845dc44ea6492 | [
"Apache-2.0"
] | permissive | alefnula/dg | 6e98d9b0fe7eb9f852725225f581c7781dca9b32 | 57602c464293dd1f78188fc1bddcafe1f08fb4ee | refs/heads/master | 2021-09-04T03:54:51.548719 | 2018-01-15T15:19:01 | 2018-01-15T15:19:01 | 114,445,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | __author__ = 'Viktor Kerkez <alefnula@gmail.com>'
__date__ = ' 06 December 2017'
__copyright__ = 'Copyright (c) 2017 Viktor Kerkez'
import os
import dg
import glob
import shutil
from datetime import datetime
from dg.utils import ensure_dir, bar
@dg.command
@dg.argument('-m', '--model', action='append', dest='models... | [
"alefnula@gmail.com"
] | alefnula@gmail.com |
d8166967a72793fe1c9a773e18c675dd16b45b91 | ee7e42417d9d1e76b0e84e44dc6eb037adc3ebad | /.history/pet/api_20190703153244.py | 42fa809e9282d2a4761bacc1a97858c58c20bd27 | [] | no_license | web3-qa/pets-api | 4632127ee84a299f207d95754f409fc1e4c0013d | ee4a04e7291740ac8eb6147c305b41d27d5be29c | refs/heads/master | 2023-05-12T09:09:47.509063 | 2019-07-18T15:07:13 | 2019-07-18T15:07:13 | 197,611,701 | 0 | 0 | null | 2023-05-01T19:42:17 | 2019-07-18T15:19:59 | Python | UTF-8 | Python | false | false | 296 | py | import json
from flask import abort, jsonify, request
from flask.views import MethodView
class pets(MethodView):
pets = [
{"id":1, "name": u"Mac"},
{"id":2, "name": u"Leo"},
{"id":3, "name": u"Dave"}
]
def get((self):
return jsonify("pets":self.p) | [
"dcolmer@statestreet.com"
] | dcolmer@statestreet.com |
cbcbbe018d0666193143c8195bfeeac41f28ebf0 | a226588e90812f436e16ae140555463a259e653c | /pytorchYOLOv1master/xml_2_txt.py | 37177e4baa5d104e29948ab20f209dc2e35955ed | [] | no_license | Bigfishers/AnnotatedNetworkModelGit | 3b6f4d0c40e4d50f88e71a48af4c0f175af1935a | 6fef51b7ac85359506fc7992f13acd742105a0b6 | refs/heads/master | 2020-03-18T05:51:52.044434 | 2018-05-22T01:57:00 | 2018-05-22T01:57:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | import xml.etree.ElementTree as ET
import os
VOC_CLASSES = ( # always index 0
'aeroplane', 'bicycle', 'bird', 'boat',
'bottle', 'bus', 'car', 'cat', 'chair',
'cow', 'diningtable', 'dog', 'horse',
'motorbike', 'person', 'pottedplant',
'sheep', 'sofa', 'train', 'tvmonitor')
def parse_rec(filename... | [
"1055271769@qq.com"
] | 1055271769@qq.com |
5a3c57fd21f95321e6d620c75362de168aa1a0a7 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/l2/bot_20200620185737.py | c28dc8413d17eb198a5c331d9f16239be7f16928 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,499 | py | # # Work with Python 3.6
import discord, os, json, time
# TOKEN = os.environ.get('TOKEN')
client = discord.Client()
def save():
with open(os.path.dirname(os.path.realpath(__file__)) + "/save.json", 'w') as file:
json.dump(people, file)
people = {"zheka": ""}
with open(os.path.dirname(os.path.realpath(_... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
3d9d753500f25326772d80f9d9adbe3735342da5 | 377cbbe140fd0faf1eb53ba3794de816ac307cde | /src/interpolate/InterpolateLatentSpace.py | 7d6d54575b623f171f505c66e68ec8aee3183784 | [
"MIT"
] | permissive | dhruvtapasvi/implementation | fcbd7ab8e7b1368a0f07ee41dc5f0b6d6708c206 | 964980f431517f4548a87172a05107cdf700fb84 | refs/heads/master | 2021-09-16T01:47:50.601661 | 2018-05-17T19:22:44 | 2018-05-17T19:22:44 | 114,498,055 | 1 | 0 | MIT | 2018-05-05T02:17:35 | 2017-12-16T23:59:13 | Python | UTF-8 | Python | false | false | 893 | py | from interpolate.Interpolate import Interpolate
from model.Autoencoder import Autoencoder
class InterpolateLatentSpace(Interpolate):
def __init__(self, autoencoder: Autoencoder):
self.__encoder = autoencoder.encoder()
self.__decoder = autoencoder.decoder()
def interpolateAll(self, left, right... | [
"dhruv.tapasvi1996@gmail.com"
] | dhruv.tapasvi1996@gmail.com |
91875d0345ca998c41170c240a27ca72b0e5d82d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_2/47.py | 00fad29e61996189fea882fe09baa3269940f0eb | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | #!/usr/bin/env python
from sys import *
def timeDecode(time):
h = time / 60
m = int (time / time / 60)
return "%02d:%02d" % (h, m)
def processCase(trainsA, trainsB, tt, case):
if len(trainsA) == 0 or len(trainsB) == 0:
ca = len(trainsA)
cb = len(trainsB)
else:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c6ea32be19b42e31ca901a7538214806f9956215 | d13c986a2260cf3b1ef247ef229db6d725dc15f3 | /pytext/models/representations/bilstm.py | c6f42d7e4cee9f2f9964ddc303d5695b1c8cea07 | [
"BSD-3-Clause"
] | permissive | meltnur/pytext | c5ae44cacd36cdf8b7bd5eaf06df00034214ddcf | 06c11e12eb9ddbf3f8b352efc6fed4721555ecf6 | refs/heads/master | 2021-02-11T00:47:52.531330 | 2020-02-28T23:03:21 | 2020-02-28T23:06:11 | 244,434,965 | 2 | 0 | NOASSERTION | 2020-03-02T17:41:05 | 2020-03-02T17:41:04 | null | UTF-8 | Python | false | false | 6,465 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import Optional, Tuple
import torch
import torch.nn as nn
import torch.onnx
from pytext.config import ConfigBase
from pytext.utils import cuda
from pytext.utils.usage import log_class_usage
from torch.nn.utils.rnn... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8af9fa88d0898ada6c762ed02c15388cf867c3f9 | e61e725d9a962837e2b56f84e3934b0fb52dd0b1 | /eoxserver/core/decoders/kvp.py | e8dfa6aa753451cb4002a5327a8805e30c22da58 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | ESA-VirES/eoxserver | 719731172c2e5778186a4b144a201f602c07ce7e | d7b65adf9317538b267d5cbb1281acb72bc0de2c | refs/heads/master | 2021-01-21T20:06:22.164030 | 2014-10-14T12:21:13 | 2014-10-14T12:21:13 | 25,151,203 | 1 | 0 | null | 2014-12-04T09:46:54 | 2014-10-13T09:00:54 | Python | UTF-8 | Python | false | false | 3,405 | py | #-------------------------------------------------------------------------------
# $Id$
#
# Project: EOxServer <http://eoxserver.org>
# Authors: Fabian Schindler <fabian.schindler@eox.at>
#
#-------------------------------------------------------------------------------
# Copyright (C) 2013 EOX IT Services GmbH
#
# Per... | [
"fabian.schindler@gmx.at"
] | fabian.schindler@gmx.at |
9a9db610e6b69d7c717c6efb97000b1744385b62 | ba0a2b0d2d1534443ea34320675aadfa378457b6 | /Array/Q1409_Queries on a Permutation With Key.py | a509f13f9be2dba1cdb3360e472b9834be7c3a98 | [] | no_license | Luolingwei/LeetCode | 73abd58af116f3ec59fd6c76f662beb2a413586c | 79d4824879d0faed117eee9d99615cd478432a14 | refs/heads/master | 2021-08-08T17:45:19.215454 | 2021-06-17T17:03:15 | 2021-06-17T17:03:15 | 152,186,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 491 | py |
# 思路: pos记录每次数字的位置
# 每次更新时,pos[q-1]为q的实际位置,位置比它小的pos+1,将其位置置为0
class Solution:
def processQueries(self, queries, m):
pos = [i for i in range(0, m)]
ans = []
for q in queries:
curpos = pos[q - 1]
ans.append(curpos)
for i, p in enumerate(pos):
... | [
"564258080@qq.com"
] | 564258080@qq.com |
7881f2e46a3dc62785502c57f332a7aa361dd5cc | 5c94e032b2d43ac347f6383d0a8f0c03ec3a0485 | /Launchpad_Pro/TargetTrackComponent.py | 31fdc1fbfd5efe0c7e257a083c91fa387bc445d6 | [] | no_license | Elton47/Ableton-MRS-10.1.13 | 997f99a51157bd2a2bd1d2dc303e76b45b1eb93d | 54bb64ba5e6be52dd6b9f87678ee3462cc224c8a | refs/heads/master | 2022-07-04T01:35:27.447979 | 2020-05-14T19:02:09 | 2020-05-14T19:02:09 | 263,990,585 | 0 | 0 | null | 2020-05-14T18:12:04 | 2020-05-14T18:12:03 | null | UTF-8 | Python | false | false | 3,081 | py | # uncompyle6 version 3.6.7
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.17 (default, Dec 23 2019, 21:25:33)
# [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.16)]
# Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Launchpad_P... | [
"ahmed.emerah@icloud.com"
] | ahmed.emerah@icloud.com |
f1977b359869d02dbf912eadf7a20ba9e2a36413 | d6480f551154ed1d6e32a65b972ba62c1e1eb998 | /job_test.py | 189de8064200b0b5e93f41dbd850f2cbf1176639 | [] | no_license | ToferC/scraper-Gitlawca | c8de2739878d17789baf7a0f7d139c8928f3812f | f9ec04af54faa6bf49e5be7cc953d152fce926b1 | refs/heads/master | 2021-01-10T15:17:18.242633 | 2017-06-27T17:32:26 | 2017-06-27T17:32:26 | 49,247,570 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | import requests as requests
from bs4 import BeautifulSoup
title = ""
paragraphs = []
def parse_job(url):
# Parse job html and collect links, adding them to list in the job dict
html = requests.get(url, headers={'User-Agent': 'Mozilla/5.0'})
soup = BeautifulSoup(html.text, 'html.parser')
title = ... | [
"cgeist7@gmail.com"
] | cgeist7@gmail.com |
331d183f37714c6bc90433cbfacca2e0ac19f44f | 35979ed5415386a78c4b7a73e716e71e9bd86ac1 | /process_kitti.py | ec61c6e18784c94b07cab606ba43ad06e574d0b1 | [
"MIT"
] | permissive | smalgireddy/dusty-gan | 6a082995b467bae5f27a6103fb1e061890e5f30e | 63ea1757660806cd04976b24fc7733ab26b2a3a1 | refs/heads/main | 2023-07-01T18:43:04.665186 | 2021-08-02T07:04:29 | 2021-08-02T07:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,348 | py | import argparse
import multiprocessing
import os
import os.path as osp
from collections import defaultdict
from glob import glob
import joblib
import matplotlib.cm as cm
import numba
import numpy as np
import torch
from PIL import Image
from tqdm import tqdm
from datasets.kitti import KITTIOdometry
# support semanti... | [
"k_nakashima@irvs.ait.kyushu-u.ac.jp"
] | k_nakashima@irvs.ait.kyushu-u.ac.jp |
3689a70e4adbf2cad4b53b4554c411ace70f8e1a | 717b667d2210f92b2a5bf48673c3195d0dddebe3 | /priv/farmware/measure-soil-height/calculate.py | 1fa70c71ec78251e9d5c04fe4537987be5b6555d | [
"MIT"
] | permissive | vishalbelsare/farmbot_os | b40fd1ae04d9bba02f6203cc867f832fe42c92b1 | 8e6e503a115d9af809fcd4983ab88e3eaea9efe5 | refs/heads/staging | 2023-08-18T04:41:43.385050 | 2023-08-10T19:24:34 | 2023-08-10T19:24:34 | 130,585,429 | 0 | 0 | MIT | 2023-08-11T18:33:27 | 2018-04-22T16:23:55 | Elixir | UTF-8 | Python | false | false | 12,513 | py | #!/usr/bin/env python3.8
'Calculations.'
import numpy as np
import cv2 as cv
from process_image import shape, odd, rotate
from images import Images
from angle import Angle
class Calculate():
'Calculate results.'
def __init__(self, core, input_images):
self.settings = core.settings.settings
... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
2a2e33924d7dea0772c8797a326bfeb3385222fd | bdf5f0a044a11ac2f13e3d2901907a98daf24e34 | /src/mceditlib/worldeditor.py | bbbe73a5536a075d36c49398764b9c0dd4c70a4b | [
"BSD-3-Clause"
] | permissive | BenLewis-Seequent/mcedit2 | 632ad20d9371d2cd2884fc844deed3c91e9a03f8 | e47592a89843867e18497f6fc8fcd59382c3b645 | refs/heads/master | 2022-07-22T19:08:05.628293 | 2015-04-20T09:35:12 | 2015-04-20T09:35:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,732 | py | from __future__ import absolute_import
import collections
import logging
import time
import weakref
import itertools
import numpy
import re
from mceditlib import cachefunc
from mceditlib.block_copy import copyBlocksIter
from mceditlib.operations.block_fill import FillBlocksOperation
from mceditlib.selection import Bo... | [
"codewarrior@hawaii.rr.com"
] | codewarrior@hawaii.rr.com |
8bae87a094d5add07026dc0f8af0ba689bc86f0b | 20a9787564f76ae0fcf2332a8655b21bae0646a3 | /Lists/findClosest.py | 2995f497eeeb966e539567e05bd353bed2675c67 | [] | no_license | nidhiatwork/Python_Coding_Practice | 3b33a40c947413c2695d3ee77728fa69430f14cd | 9d5071a8ddcda19181d3db029fb801d4e3233382 | refs/heads/master | 2023-02-08T20:50:47.522565 | 2023-02-04T10:04:10 | 2023-02-04T10:04:10 | 194,607,759 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | '''
Find three closest elements from given three sorted arrays
Given three sorted arrays A[], B[] and C[], find 3 elements i, j and k from A, B and C respectively such that max(abs(A[i] – B[j]), abs(B[j] – C[k]), abs(C[k] – A[i])) is minimized. Here abs() indicates absolute value.
Input: A[] = {1, 4, 10}
B[... | [
"“nidhi.bhushan123@gmail.com”"
] | “nidhi.bhushan123@gmail.com” |
361c1c67f6fff0bdaf68d1c005e34c03431d95a4 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_08_01/aio/operations/_express_route_cross_connections_operations.py | 60574894bf29c8221b6f8212f9b9edd87588e56f | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 43,688 | 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 ... | [
"noreply@github.com"
] | paultaiton.noreply@github.com |
40ac71dbc346a1e413eba935c0883f7f30392c9c | bb6ebff7a7f6140903d37905c350954ff6599091 | /third_party/WebKit/Source/wtf/wtf.gyp | 7706bdd0535c65bf32ed076a8e28c5f9dae37cca | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | PDi-Communication-Systems-Inc/lollipop_external_chromium_org | faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f | ccadf4e63dd34be157281f53fe213d09a8c66d2c | refs/heads/master | 2022-12-23T18:07:04.568931 | 2016-04-11T16:03:36 | 2016-04-11T16:03:36 | 53,677,925 | 0 | 1 | BSD-3-Clause | 2022-12-09T23:46:46 | 2016-03-11T15:49:07 | C++ | UTF-8 | Python | false | false | 5,564 | gyp | # Copyright (C) 2012 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | [
"mrobbeloth@pdiarm.com"
] | mrobbeloth@pdiarm.com |
05754d7839302ac6bb99ee3838a45024a6e77e0f | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/enums/types/budget_campaign_association_status.py | 26ee58e892b500dbd79115577df8ce2c5844f71e | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
4ec54415712d40c9fde42055d4b35b1695da1b5b | 05f99d380ca5dd0764c6ebdc2e45efe91105fd57 | /src/htsql/core/cmd/embed.py | b963322b407053f390e5f57de7e80b1ee32e1c9b | [
"Apache-2.0"
] | permissive | prometheusresearch/htsql | d2ce07c9e6b5071f6b5684a84e374cb32075bbe8 | fd2dc19d145508d956ba50970abc76e7299669b0 | refs/heads/master | 2020-12-26T11:20:04.593639 | 2020-08-11T18:04:14 | 2020-08-11T18:04:14 | 237,492,309 | 21 | 3 | Apache-2.0 | 2020-02-13T14:15:00 | 2020-01-31T18:32:56 | Python | UTF-8 | Python | false | false | 4,206 | py | #
# Copyright (c) 2006-2013, Prometheus Research, LLC
#
from ..util import isfinite, to_name
from ..adapter import Adapter, adapt, adapt_many
from ..domain import (UntypedDomain, BooleanDomain, IntegerDomain, FloatDomain,
DecimalDomain, DateDomain, TimeDomain, DateTimeDomain, ListDomain,
IdentityDomai... | [
"xi@resolvent.net"
] | xi@resolvent.net |
5842f7230d2b39e7b2314d691f657fee5f9a0987 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/leet.py | 63aee07929baddd29219874dfc1455d8ba7ce7ee | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 163 | py | ii = [('CoolWHM2.py', 1), ('WadeJEB.py', 2), ('GodwWLN.py', 1), ('SoutRD2.py', 2), ('MereHHB3.py', 378), ('MereHHB.py', 167), ('WilkJMC.py', 1), ('WestJIT.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
d5da7125d3e25d62b08ca3d56cd9f177d3c46418 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayEcoMycarMaintainAftersaleSyncRequest.py | d0ba0166b615623f68f1e4eefa1377121c33b32a | [
"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 | 4,010 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayEcoMycarMaintainAftersaleSyncModel import AlipayEcoMycarMaintainAftersaleSyncModel
class AlipayEcoMycarMaintainAftersaleSyncRe... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.