blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
9e045519004f73f6c2d4f4a1252bf2571792b29d
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/pybites/topics/DataFormats/79/community.py
6f0da38f033e3bd7c46dae372d33bce22a7c7e20
[]
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
772
py
_______ c__ ____ c.. _______ C.. _______ r__ CSV_URL 'https://bites-data.s3.us-east-2.amazonaws.com/community.csv' ___ get_csv """Use requests to download the csv and return the decoded content""" w__ r__.S.. __ s download s.g.. ? decoded_content download.c__.d.. utf-8 cr c__.r...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
18bf9c0ccb23bcdc9920c3056bd3f9bf0ba9e519
c8fbb8abd6f00a53607773aba706f2893861c50c
/5-html.py
51cbaa634f58a2ea8395201091e1a0678808ca5b
[]
no_license
abelsonlive/intro-to-webscraping
f160e80678ac0a007b1f633bb3d8658fcfc35d77
27aaea56990dd9ccc45c4ca4ba93d49d3d73cec0
refs/heads/master
2016-09-05T08:51:45.877565
2015-02-11T01:32:55
2015-02-11T01:32:55
30,586,249
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
import requests from bs4 import BeautifulSoup url = 'http://google.com/search' search_parameters = { 'q': 'hack the gibson' } response = requests.get(url, params=search_parameters) soup = BeautifulSoup(response.content) for search_result in soup.find_all('h3', {'class':'r'}): anchor_tag = search_result.find('...
[ "brianabelson@gmail.com" ]
brianabelson@gmail.com
3a696fce02ad18bb6f0d805193e9a19fec2c84c5
7f4b1d5e9963d63dd45b31c6cad8ced70d823217
/interview-prep/geeks_for_geeks/greedy/huffman_decoding.py
cab62acfcb088effd9506ec8cb43182cc73ee544
[]
no_license
mdhatmaker/Misc-python
b8be239619788ed343eb55b24734782e227594dc
92751ea44f4c1d0d4ba60f5a1bb9c0708123077b
refs/heads/master
2023-08-24T05:23:44.938059
2023-08-09T08:30:12
2023-08-09T08:30:12
194,360,769
3
4
null
2022-12-27T15:19:06
2019-06-29T03:39:13
Python
UTF-8
Python
false
false
4,322
py
import sys import heapq # https://practice.geeksforgeeks.org/problems/huffman-decoding-1/1 # https://www.geeksforgeeks.org/huffman-coding-greedy-algo-3/ # Given an encoded string, your task is to print the decoded String. ############################################################################### def decode(arr...
[ "hatmanmd@yahoo.com" ]
hatmanmd@yahoo.com
be7a3abe18aa4a85e2d13bdc988a23498b3a315b
a31edaf4843ff669d459d3150a7eebcd24f7e579
/BSI/crypto/rand.py
0689fc72aa12a374349c2dcb4e0b772d57a1c50b
[]
no_license
Ginkooo/PolibudaCode
1d57b68cd7f62feb933bc90342f6128ff991f35d
583c2b07b6947df782a412f26b224efc5c9e4180
refs/heads/master
2021-01-11T01:17:09.642285
2018-12-13T23:50:00
2018-12-13T23:50:00
70,732,542
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
import subprocess import binascii from argparse import ArgumentParser ap = ArgumentParser(description='Encrypt file using system entrophy') ap.add_argument('algorithm', help='Algorithm to use (For full list of ciphertypes please see: man enc') ap.add_argument('input_file', help='File to cipher') ap.add_argument('outp...
[ "piotr_czajka@outlook.com" ]
piotr_czajka@outlook.com
085522d19e1404567e8c4300ce0fa4ea1ef34023
008ea0c503829f33840495373ad3d60794575af3
/PYDayByDay/common/list.py
6262e957b92bfdffbe3d3158524d64346d6e2d3c
[]
no_license
JyHu/PYStudy
6515bea47ca6f80e336f3b6a7a14b1159fde872f
ec0855c414237bdd7d0cb28f79a81c02ccd52d45
refs/heads/master
2016-08-12T19:44:06.723361
2016-04-11T10:38:59
2016-04-11T10:38:59
45,384,810
0
0
null
null
null
null
UTF-8
Python
false
false
1,591
py
#coding = utf-8 __author__ = 'JinyouHU' word = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] a = word[2] print 'a is :' +a b = word[1:3] print 'b is :' print b c = word[:2] print 'c is :' print c d = word[0:] print 'd is :' print d e = word[:2] + word[2:] print 'e is :' print e f = word[-1] print 'f is :' print f g = w...
[ "auu.aug@gmail.com" ]
auu.aug@gmail.com
0d981572ba1a4d26a11b7a95c3f10693250d3020
ac216a2cc36f91625e440247986ead2cd8cce350
/packages/infra_libs/infra_libs/ts_mon/common/test/targets_test.py
43e9246c2e49ae906e0fb13174e107561e482faa
[ "BSD-3-Clause" ]
permissive
xinghun61/infra
b77cdc566d9a63c5d97f9e30e8d589982b1678ab
b5d4783f99461438ca9e6a477535617fadab6ba3
refs/heads/master
2023-01-12T21:36:49.360274
2019-10-01T18:09:22
2019-10-01T18:09:22
212,168,656
2
1
BSD-3-Clause
2023-01-07T10:18:03
2019-10-01T18:22:44
Python
UTF-8
Python
false
false
4,291
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. import unittest from infra_libs.ts_mon.common import targets from infra_libs.ts_mon.protos import metrics_pb2 class TargetTest(unittest.TestCase): def ...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
aa78a93cfcec310c321ca4d89d37d1d191768dec
4a3dcb0cd8b271ca4e54eac077c286bfec399ff0
/graphstats/embed/ase.py
d691563dac3fb5de1feec978498fea21de797f39
[ "Apache-2.0" ]
permissive
tpsatish95/graspy
b5e42faccbb2cc0bdd607f8229e1cf83c9060530
3360e217a3f4200381a805c2b95b5de282d146ac
refs/heads/master
2020-03-30T04:14:07.606769
2018-09-26T10:41:13
2018-09-26T10:41:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
# ase.py # Created by Ben Pedigo on 2018-09-15. # Email: bpedigo@jhu.edu # Adapted from Disa Mhembere from embed import BaseEmbed from utils import import_graph, check_square from svd import SelectSVD from sklearn.decomposition import TruncatedSVD import numpy as np class ASEEmbedder(BaseEmbed): """ Clas...
[ "benjamindpedigo@gmail.com" ]
benjamindpedigo@gmail.com
f92bef4524810441c31b2e1f8fe242bfa96e8225
83d9b630bdc5535d67e35d69768b4d41fc4c9653
/assignment1/assignment1/cs231n/gradient_check.py
31257e96b4cf83c96ae458e56c1b435f19990bfc
[]
no_license
chenshaobin/assignment_CS231n
2c8820f748fca6fb41cdb272a81c940f8c0a0e52
132c670d22dd37e6b4c1bd9da944c1f62a639d64
refs/heads/main
2022-12-30T21:05:12.500255
2020-10-18T04:49:40
2020-10-18T04:49:40
301,309,753
0
0
null
null
null
null
UTF-8
Python
false
false
4,041
py
from __future__ import print_function from builtins import range from past.builtins import xrange import numpy as np from random import randrange def eval_numerical_gradient(f, x, verbose=True, h=0.00001): """ a naive implementation of numerical gradient of f at x - f should be a function that takes a sin...
[ "13531194616@163.com" ]
13531194616@163.com
2310f6ba6d69d7d143a9f93b55954ca5c691f398
5d06a33d3685a6f255194b13fd2e615e38d68850
/tests/opytimark/utils/test_constants.py
ee4d47bdb169e5811cb942a7bbb70115af9b72a6
[ "Apache-2.0" ]
permissive
sarikoudis/opytimark
617a59eafaabab5e67bd4040473a99f963df7788
cad25623f23ce4b509d59381cf7bd79e41a966b6
refs/heads/master
2023-07-24T04:19:55.869169
2021-09-03T13:09:45
2021-09-03T13:09:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
import sys from opytimark.utils import constants def test_constants(): assert constants.DATA_FOLDER == 'data/' assert constants.EPSILON == 1e-32 assert constants.FLOAT_MAX == sys.float_info.max
[ "gth.rosa@uol.com.br" ]
gth.rosa@uol.com.br
dfdbbbdf80ff3a131f9a789153624a55f21f9c20
aa4b80cf7e7ac0028d0c7f67ade982d9b740a38b
/python/list/list_max.py
0272716fe25776fbf18ced846eea450e85342060
[]
no_license
ratularora/python_code
9ac82492b8dc2e0bc2d96ba6df6fdc9f8752d322
ddce847ba338a41b0b2fea8a36d49a61aa0a5b13
refs/heads/master
2021-01-19T04:34:22.038909
2017-09-27T08:14:45
2017-09-27T08:14:45
84,435,244
2
0
null
null
null
null
UTF-8
Python
false
false
145
py
list1, list2 = [123, 565654, 'A','Z','gdgf'], [456, 700, 200] print "Max value element : ", max(list1) print "Max value element : ", max(list2)
[ "arora.ratul@gmail.com" ]
arora.ratul@gmail.com
ff455dd0b1d99aba94e9c35e313ed4aa46e522f1
fb65b7c000642dca68c93ee85a87795b3f30fe21
/Core_Python/pgm11.py
652850cfd01fd7bd255185ef1e708fbf72d76138
[]
no_license
toncysara17/luminarpythonprograms
f41b446251feba641e117d87ce235dc556086f8f
17bc37c3f83c0e9792aaa8bccd901371a6413f14
refs/heads/master
2023-04-17T18:51:31.493118
2021-04-20T05:25:02
2021-04-20T05:25:02
358,550,813
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
#pgm to swap two variables num1=5 num2=10 print("value before swapping") print("Number1 is",num1) print("Number2 is",num2) #create a temporary variable and swap a value temp=num1 num1=num2 num2=temp print("Value after swapping") print("Number1 is",num1) print("Number2 is",num2)
[ "toncysara12@gmail.com" ]
toncysara12@gmail.com
4f338929596b6be67843874be8412f875486b877
0e5291f09c5117504447cc8df683ca1506b70560
/test/test_writable_tenant_group.py
735b459c6d0339a0fcabd4fa29ee9bc034db512a
[ "MIT" ]
permissive
nrfta/python-netbox-client
abd0192b79aab912325485bf4e17777a21953c9b
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
refs/heads/master
2022-11-13T16:29:02.264187
2020-07-05T18:06:42
2020-07-05T18:06:42
277,121,108
0
0
null
null
null
null
UTF-8
Python
false
false
887
py
# coding: utf-8 """ NetBox API API to access NetBox # noqa: E501 OpenAPI spec version: 2.8 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import netbox_client from netbox_client.models.writable_tenant_group import ...
[ "67791576+underline-bot@users.noreply.github.com" ]
67791576+underline-bot@users.noreply.github.com
fb54501652083103c6154e7fb4d55f828df3fc3a
b0d5e423f09181a322a0166b06bf7fe45a3befc0
/MetioTube/asgi.py
e2cd92f47887e46c1b286179c5713a337df86ce6
[ "MIT" ]
permissive
Sheko1/MetioTube
f5da4184bb1590565ba34cef2fff02b379ab3e56
c1c36d00ea46fc37cc7f3c0c9c0cae6e89b2113c
refs/heads/main
2023-07-04T12:54:57.500778
2021-08-14T19:41:56
2021-08-14T19:41:56
383,907,948
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" ASGI config for MetioTube project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SET...
[ "martinkypar@gmail.com" ]
martinkypar@gmail.com
2a4782180f8375d960ca9e96805817fe1a9d44db
35a253595e158085dbb40d33d44dde026269c8a7
/198 House Robber.py
562340100cf91741af888da5d9b11ebcbb944cf3
[ "MIT" ]
permissive
ee08b397/LeetCode-4
7a8174275fbe7e0e667575aedd1ff1a8647776c3
3b26870e946b510797b6b284822a1011ce048fbe
refs/heads/master
2020-12-24T15:13:22.899164
2015-09-22T02:41:13
2015-09-22T02:41:13
43,003,940
1
0
null
2015-09-23T13:52:25
2015-09-23T13:52:25
null
UTF-8
Python
false
false
891
py
""" You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it will automatically contact the police if two adjacent houses were broken int...
[ "zhangdanyangg@gmail.com" ]
zhangdanyangg@gmail.com
0b8470e562b21979ccc4ab4da93335262b2d9c86
74e15a8246fff5fd65a4169a0908c2639912992a
/pykeg/plugin/datastore_test.py
ddd244646f429ac166ff2b9aa5dd7b32765e5fa0
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Kegbot/kegbot-server
5abf5fedf102aa9000e9dbe0ae90f9d4a70b93f3
e0f953137bc261519444cb769455317074c7253e
refs/heads/main
2023-02-16T08:57:50.931256
2022-08-18T17:21:13
2022-08-18T17:21:13
1,886,336
77
68
MIT
2023-02-15T19:01:41
2011-06-12T22:25:29
JavaScript
UTF-8
Python
false
false
1,397
py
from django.test import TransactionTestCase from pykeg.core import models from pykeg.plugin import datastore class DatastoreTestCase(TransactionTestCase): def test_model_datastore(self): ds = datastore.ModelDatastore(plugin_name="test") self.assertEqual(0, models.PluginData.objects.all().count()...
[ "opensource@hoho.com" ]
opensource@hoho.com
bd87f7ffff21edcd8780035ad4b9bd302bfb6a72
0df898bf192b6ad388af160ecbf6609445c34f96
/middleware/backend/app/magnet/research/schemas.py
14784fcd60e81faf427db23b928fed336d7760bc
[]
no_license
sasano8/magnet
a5247e6eb0a7153d6bbca54296f61194925ab3dc
65191c877f41c632d29133ebe4132a0bd459f752
refs/heads/master
2023-01-07T10:11:38.599085
2020-11-13T02:42:41
2020-11-13T02:42:41
298,334,432
1
1
null
null
null
null
UTF-8
Python
false
false
244
py
from typing import List, Optional from magnet import config, BaseModel class CaseNode(BaseModel): Config = config.ORM id: int name: str class Target(BaseModel): Config = config.ORM id: int name: str node_id: int
[ "y-sasahara@ys-method.com" ]
y-sasahara@ys-method.com
1d030a1a87fa78e0fb8f511029f3f2a4218a0f6b
551b75f52d28c0b5c8944d808a361470e2602654
/examples/IoTDA/V5/TagManagement.py
cb3d92b2c88cd64d06bf9647b4b17b19d38a2d7f
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
2,632
py
# coding: utf-8 from huaweicloudsdkcore.http.http_config import HttpConfig from huaweicloudsdkcore.auth.credentials import BasicCredentials from huaweicloudsdkcore.exceptions import exceptions from huaweicloudsdkiotda.v5 import * def getResourcesByTags(client): try: resource_type = "device" tags =...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
38cef241ffcbaddf58cb3d75921e6a5ce7fd5e7b
89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04
/tools/cygprofile/check_orderfile.py
ea48127db476c6b8a4b449d1e0b3a84efcb28195
[ "BSD-3-Clause", "LGPL-2.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-unknown", "MIT" ]
permissive
bino7/chromium
8d26f84a1b6e38a73d1b97fea6057c634eff68cb
4666a6bb6fdcb1114afecf77bdaa239d9787b752
refs/heads/master
2022-12-22T14:31:53.913081
2016-09-06T10:05:11
2016-09-06T10:05:11
67,410,510
1
3
BSD-3-Clause
2022-12-17T03:08:52
2016-09-05T10:11:59
null
UTF-8
Python
false
false
4,024
py
#!/usr/bin/python # 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. """Check that symbols are ordered into a binary as they appear in the orderfile. """ import logging import optparse import sys import cyg...
[ "bino.zh@gmail.com" ]
bino.zh@gmail.com
a2bed2194305ab6bc2efcb6e7da0d2fcc9b5db94
f063232b59eb7535e4212ec2b6b477c472fdb56e
/intersection-of-two-linked-lists.py
b97bd5fdd82b5d68474a1634ab27021e37453d30
[]
no_license
xzjh/OJ_LeetCode
a01d43f6925bb8888bb79ca8a03a75dd8a6eac07
fa2cfe2ec7774ab4a356520668d5dbee9d63077c
refs/heads/master
2021-01-20T11:13:36.291125
2015-10-01T09:04:47
2015-10-01T09:04:47
25,239,393
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param two ListNodes # @return the intersected ListNode def getIntersectionNode(self, headA, headB): if not headA or not headB: return None lenA = 1 ...
[ "jsxzjh@gmail.com" ]
jsxzjh@gmail.com
ea606e1ffd245c9b3b6dbda9d9727b9c71c0c48f
7fd898850480206395eba9878ef5316d5bd4dbcf
/Trakttv.bundle/Contents/Code/plex/media_server.py
6ab79fe9cc16257e514934593086d7ceee34966c
[]
no_license
Qwaint/Plex-Trakt-Scrobbler
cdfbef4566b8db3a05e72a46ae92c655a8f697e5
383ffa338ad64e481bd14c71950af42f2f9edd83
refs/heads/master
2020-12-11T04:10:13.332420
2014-02-01T13:31:58
2014-02-01T13:31:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,836
py
from core.helpers import add_attribute from core.network import request # Regular Expressions for GUID parsing MOVIE_REGEXP = Regex('com.plexapp.agents.*://(?P<imdb_id>tt[-a-z0-9\.]+)') MOVIEDB_REGEXP = Regex('com.plexapp.agents.themoviedb://(?P<tmdb_id>[0-9]+)') STANDALONE_REGEXP = Regex('com.plexapp.agents.standalo...
[ "gardiner91@gmail.com" ]
gardiner91@gmail.com
208f8c6609bfaa29d9f350584a72d47b067aac36
011157c49983db38489f26f51db7fe22f8519afc
/problems/812.py
15ae89e58fec6eb2f61e83be7ee0790ec867c328
[]
no_license
chasecolford/Leetcode
c0054774d99e7294419039f580c1590495f950b3
dded74e0c6e7a6c8c8df58bed3640864d0ae3b91
refs/heads/master
2023-08-04T11:33:18.003570
2021-09-10T21:06:55
2021-09-10T21:06:55
283,154,381
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
class Solution: def largestTriangleArea(self, points: List[List[int]]) -> float: return max(0.5 * abs(i[0] * j[1] + j[0] * k[1] + k[0] * i[1]- j[0] * i[1] - k[0] * j[1] - i[0] * k[1]) for i, j, k in itertools.combinations(points, 3))
[ "56804717+ChaseSinify@users.noreply.github.com" ]
56804717+ChaseSinify@users.noreply.github.com
b05cf9848fef04d671c3f3771010b9614cef8003
741ee09b8b73187fab06ecc1f07f46a6ba77e85c
/AutonomousSourceCode/data/raw/squareroot/8dcd69f5-11fa-4c5f-8331-cd8f0db1aa54__Sarah01.py
b15d6db979b93090c7a22e978745c9ece3dc2371
[]
no_license
erickmiller/AutomatousSourceCode
fbe8c8fbf215430a87a8e80d0479eb9c8807accb
44ee2fb9ac970acf7389e5da35b930d076f2c530
refs/heads/master
2021-05-24T01:12:53.154621
2020-11-20T23:50:11
2020-11-20T23:50:11
60,889,742
6
1
null
null
null
null
UTF-8
Python
false
false
540
py
def Adder(N1,N2): MyResult = N1 + N2 return MyResult def Subtractor(N1,N2): MyResult = N1 - N2 return MyResult def Main(): X = input("Enter a value for X ---") Y = input("Enter a value for Y ---") if (X >= Y): print "Subtraction happened" MyResult = Subtractor(X,Y) ...
[ "erickmiller@gmail.com" ]
erickmiller@gmail.com
8e584b42af7aa4d3ca68a587b7979edf6ce05e75
0ac6eeac34c65a200d66be256593f3e064ab1a1a
/TagReadWrite/Utils.py
bb6601e96c8acd37b34652192770527b134782da
[]
no_license
flokli/CrossMgr
cc6c2476def8868a9fce14a6f2a08dd5eea79612
21d542edacfd89f645a3ebb426fb16635c1f452e
refs/heads/master
2020-09-26T08:34:21.857072
2019-11-30T20:28:53
2019-11-30T20:28:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,988
py
import datetime import wx import os import re import sys import math import socket import subprocess timeoutSecs = None DEFAULT_HOST = None def GetDefaultHost(): global DEFAULT_HOST DEFAULT_HOST = socket.gethostbyname(socket.gethostname()) if DEFAULT_HOST == '127.0.0.1': reSplit = re.compile('[: \t]+') try: ...
[ "edward.sitarski@gmail.com" ]
edward.sitarski@gmail.com
c4dae4c9dd4656c58295539cf766d16b915310a7
b122b723c2fbadef6f19e8c9ec4e485d48c03dec
/Python/Binary Tree Level Order Traversal II.py
80a09e56530fae38885f1f95c1f7d46bc5644087
[]
no_license
zhanglintc/leetcode
5ba3977172679fde8cdcd3f4940057d55d8112eb
8edbd2fbad8b10a497c7a10e8cd09cc91eeba079
refs/heads/master
2020-12-13T08:49:57.244106
2018-09-06T13:52:43
2018-09-06T13:52:43
18,562,111
1
0
null
null
null
null
UTF-8
Python
false
false
1,393
py
# Binary Tree Level Order Traversal II # for leetcode problems # 2014.09.04 by zhanglin # Problem Link: # https://leetcode.com/problems/binary-tree-level-order-traversal-ii/ # Problem: # Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from ...
[ "zhanglintc623@gmail.com" ]
zhanglintc623@gmail.com
db56147bf913f8b9dbc17b88ca38061e95d481cc
628ec414b7807fc50de67345361e41cc68ba3720
/mayan/apps/sources/serializers.py
5da2f6af0ab247cf37c2dbf2e97eaeccfabfbd1c
[ "Apache-2.0" ]
permissive
TestingCodeReview/Mayan-EDMS
aafe144424ffa8128a4ff7cee24d91bf1e1f2750
d493ec34b2f93244e32e1a2a4e6cda4501d3cf4e
refs/heads/master
2020-05-27T23:34:44.118503
2019-04-05T02:04:18
2019-04-05T02:04:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,915
py
from __future__ import unicode_literals import logging from rest_framework import serializers from rest_framework.reverse import reverse from .models import StagingFolderSource, WebFormSource logger = logging.getLogger(__name__) class StagingFolderFileSerializer(serializers.Serializer): filename = serializers...
[ "roberto.rosario.gonzalez@gmail.com" ]
roberto.rosario.gonzalez@gmail.com
1828f84475f59d71a7e93bde5e4b60ce50d63686
6bec763c8553ad9e85bef147014b2ddcc934dde0
/access_control/models/permission_create.py
8a436eaf9ab1837d186a20136e7c458b25939706
[ "BSD-3-Clause" ]
permissive
girleffect/core-management-layer
a0257d73c562ef89d38762aa6a4de892c4fc995c
22eda532984616cf92b07bfdd9a1fffaee6c813c
refs/heads/develop
2021-07-18T09:40:44.172628
2019-01-31T13:04:27
2019-01-31T13:04:27
112,724,847
0
1
BSD-3-Clause
2019-01-31T11:09:29
2017-12-01T10:04:04
Python
UTF-8
Python
false
false
4,234
py
# coding: utf-8 """ Access Control API # The Access Control API ## Overview The Access Control API is an API exposed to other core components. It uses an API Key in an HTTP header to perform authentication and authorisation. Most of the API calls facilitates CRUD of the entities defined in the Access Contro...
[ "cobus.carstens@gmail.com" ]
cobus.carstens@gmail.com
b49f37735e7b3e05cbe5e2ddc69c4518b3e7cdba
96a34a048c783a75736bf0ec775df22142f9ee53
/packages/service-integration/tests/test_osparc_config.py
77348df499a6c482c24c537408717bc0bf04e8c1
[ "MIT" ]
permissive
ITISFoundation/osparc-simcore
77e5b9f7eb549c907f6ba2abb14862154cc7bb66
f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63
refs/heads/master
2023-08-31T17:39:48.466163
2023-08-31T15:03:56
2023-08-31T15:03:56
118,596,920
39
29
MIT
2023-09-14T20:23:09
2018-01-23T10:48:05
Python
UTF-8
Python
false
false
3,130
py
# pylint: disable=redefined-outer-name # pylint: disable=unused-argument # pylint: disable=unused-variable import json from pathlib import Path from pprint import pformat from typing import Any import pytest import yaml from models_library.service_settings_labels import SimcoreServiceSettingLabelEntry from service_in...
[ "noreply@github.com" ]
ITISFoundation.noreply@github.com
68be7d203cae104cbd639acae6fa2fd0e9babfc9
d602881821bf49fe9ac246b9cc58e46440314725
/src/utils.py
e1081d7a31a5597ee1b0573aba279a050dc1183c
[ "MIT" ]
permissive
nilax97/HTML2LaTeX-Convertor
46775ab8b870d7ab609a92fa071efa1e54db22d2
a7bdc8f53773f920dd6291575c77ecffee910fdf
refs/heads/master
2022-06-12T04:04:00.584387
2020-05-05T08:03:38
2020-05-05T08:03:38
247,183,707
4
0
null
null
null
null
UTF-8
Python
false
false
851
py
def node_from_tag(text): clean = text.split("<")[1].split(">")[0] if(clean[-1]=='/'): clean = clean[:-2] elif(clean[0]=='/'): clean = clean[1:] clean = clean.split() tag = clean[0].upper() attr = [] values = [] i = 0 while(True and len(clean)>1): i = i + 1 if(i==len(clean)): break if "=" in clean...
[ "agarwal.nilaksh@gmail.com" ]
agarwal.nilaksh@gmail.com
3dac9cd531fdff6070c6f84ff2603f3c5ed04258
01bb8cdc7b8a0baa6e345e5bdc1a663b2a44a3f7
/Chapter_7_User_Input_And_While_Loop/Practice2/9.counting.py
3262a0a4021f7ba91a7f0a92bad8ee7c7ce740fa
[]
no_license
rishabhchopra1096/Python_Crash_Course_Code
1e8076b38f89565fad9d9b68de879a972b0c96c8
c1e1b0c90371d5913c201f46a0c8ceaec19b5af0
refs/heads/master
2021-04-25T21:25:37.351986
2017-11-03T08:11:13
2017-11-03T08:11:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
c_n = 0 while c_n < 10: c_n += 1 if c_n % 2 == 0: continue else: print(c_n) # Starting from 0 , we add 1 and then # We check weather the number is even or not. # 1 is noteven , so it is printed. # Loop starts again , 1 is added to 1 = 2 # If the number is even , we go back to the first lin...
[ "noreply@github.com" ]
rishabhchopra1096.noreply@github.com
76831e371c436f3e90d22d6a2e80b3045e8d2c8f
16fe74651e6692ea3d8d0302b40ac42f3d58e0ca
/minimum_height_trees.py
56664999a98a2eefaa414b7e83a4f5222312baa2
[ "MIT" ]
permissive
Ahmed--Mohsen/leetcode
7574f71b10dfb9582f62e856bbc2559d3b21b2a1
ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e
refs/heads/master
2021-01-18T14:34:06.987665
2015-12-23T21:17:27
2015-12-23T21:17:27
33,744,104
4
0
null
null
null
null
UTF-8
Python
false
false
2,530
py
# -*- coding: utf-8 -*- """ For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible rooted trees, those with minimum height are called minimum height trees (MHTs). Given such a graph, write a function to find all the MHTs and ret...
[ "ahmed7890@gmail.com" ]
ahmed7890@gmail.com
f4905f97c634eff4c0a17d3953c22ba496f165dd
af177f43b9e879b849cae739073bb63d2fae96f5
/Core/migrations/0013_alter_book_isbn_number.py
a6698229dc641a5774d3eddfd67cbac6e5601dcb
[]
no_license
conradylx/STX_Library
9d5ac5399f7d9402c00908f13712d228cfd9b412
7edffe5d7c433bbe4e163d664706bba5f15918b8
refs/heads/master
2023-07-12T01:13:01.189052
2021-08-17T12:36:53
2021-08-17T12:36:53
390,417,299
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
# Generated by Django 3.2.5 on 2021-08-01 15:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Core', '0012_auto_20210731_1434'), ] operations = [ migrations.AlterField( model_name='book', name='isbn_number', ...
[ "50596942+conradylx@users.noreply.github.com" ]
50596942+conradylx@users.noreply.github.com
972772172fb486be96c1e5a2785a3676c73ab5c0
9b20743ec6cd28d749a4323dcbadb1a0cffb281b
/11_Time_Series_Forecasting_with_Python/A_02/save_model.py
eec597448c0a8c70db1c341abf5a7e609ebe8f37
[]
no_license
jggrimesdc-zz/MachineLearningExercises
6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178
ee265f1c6029c91daff172b3e7c1a96177646bc5
refs/heads/master
2023-03-07T19:30:26.691659
2021-02-19T08:00:49
2021-02-19T08:00:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
# save and load an ARIMA model that causes an error from pandas import read_csv from statsmodels.tsa.arima_model import ARIMA from statsmodels.tsa.arima_model import ARIMAResults # load data series = read_csv('daily-total-female-births.csv', header=0, index_col=0, parse_dates=True, squeeze=True) # prepare data X = ser...
[ "jgrimes@jgrimes.tech" ]
jgrimes@jgrimes.tech
8a874264aad962b142b5d59bcc9e2b52791eec44
50f4d2bb1b1222bcb2eb0122c48a0dd254deddfc
/Algorithm Concept/Quicksort.py
4e4c886e297de61f0a86b4de7d19a28a4d1c6f92
[]
no_license
yejinee/Algorithm
9ae1c40382e9dcd868a28d42fe1cc543b790c7f5
81d409c4d0ea76cf152a5f334e53a870bc0656a7
refs/heads/master
2023-04-13T01:29:44.579635
2023-04-05T06:23:26
2023-04-05T06:23:26
235,014,475
0
0
null
null
null
null
UTF-8
Python
false
false
1,324
py
""" Q) NO.2751 수 정렬하기2 - 퀵정렬로 해결 [Heap Sort] -Time complexity (1) Worst case= O(n^2) (2) Average case = O(nlogn) (1) pivot을 정하고 고정시키는 방식으로 정렬 (2) pivot을 기준으로 left, right부분으로 나눠서 이 과정을 반복 - Partition process : list에서 제일 첫번째 원소를 pivot으로 정하고 pivot을 고정시키는 과정 <순서> 1. i은 첫번째 원소, j는 마지막 원소 부터 시작 2. (1) i의 경우 : 하나씩 inde...
[ "kimyj9609@gmail.com" ]
kimyj9609@gmail.com
241bfa7d4854c270c2e7607c981567bfa15c8063
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_lactated.py
e6bcd5dc984c751dcdeb351346c6cd15ead3cc72
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
#calss header class _LACTATED(): def __init__(self,): self.name = "LACTATED" self.definitions = lactate self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['lactate']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
889aa45605c9e36c5387d79620b32ed507e15049
1ab243320bc1f1ee9dde3b0a1e3f1a418e6d5299
/apps/save/views.py
00b3d01a4bc5ea6a4679803c23838e86289c276f
[]
no_license
sjweil9/Djangos_Dungeon
a6bdd9fd4b8012ebdfb14caf2de41635a53ab089
2d2f1ceceddd6200db3de591c8f93926d973a704
refs/heads/master
2021-09-05T07:05:17.403789
2018-01-25T02:18:07
2018-01-25T02:18:07
108,317,359
0
1
null
2018-01-25T02:17:13
2017-10-25T19:39:19
JavaScript
UTF-8
Python
false
false
4,624
py
from django.shortcuts import render, redirect, HttpResponse from .models import * from django.contrib import messages import json, ast def game(req): return render(req, 'save/game.html') def signin(req): if 'id' in req.session: return redirect('/dashboard') return render(req, 'save/signin.html') ...
[ "stephen.weil@gmail.com" ]
stephen.weil@gmail.com
13be5404a48b9269fddcac2f7bcee5c857ff102f
fd0d8b010d45f959f0660afb192c7349e266a329
/competitive/AtCoder/ABC216/B.py
079182f20988da04944c1de663e36a16a784ef31
[ "MIT" ]
permissive
pn11/benkyokai
b650f5957545fdefbea7773aaae3f61f210f69ce
9ebdc46b529e76b7196add26dbc1e62ad48e72b0
refs/heads/master
2023-01-28T01:38:29.566561
2021-10-03T04:20:14
2021-10-03T04:20:14
127,143,471
0
0
MIT
2023-01-07T07:19:05
2018-03-28T13:20:51
Jupyter Notebook
UTF-8
Python
false
false
1,168
py
import bisect from collections import deque from copy import deepcopy from fractions import Fraction from functools import reduce import heapq as hq import io from itertools import combinations, permutations import math from math import factorial import re import sys sys.setrecursionlimit(10000) #from numba import nji...
[ "pn11@users.noreply.github.com" ]
pn11@users.noreply.github.com
84dab7469a92a1687a7871963fbe15489cf73d99
cefab48dff8fc40786f0a45f3df272646365e9f5
/python/magnetics/probe_g2.py
d0e6c52d313b1d86545c376d95c08c12931dea54
[]
no_license
shaunhaskey/pyMARS
d40265bd2d445f0429ae7177f2e75d83f0ba8b30
e2424088492a8ab2f34acf62db42a77e44d5bc3b
refs/heads/master
2020-12-25T17:24:28.392539
2016-08-01T22:14:27
2016-08-01T22:14:27
17,684,575
0
0
null
2014-03-13T03:41:59
2014-03-12T21:21:08
Python
UTF-8
Python
false
false
4,291
py
''' Appears to be older than probe_g.py - this one doesn't contain my Biot-Savart calcuations Just does probe_g and MARS comparison. SH:14Sept2012 ''' import numpy as num import os, time import PythonMARS_funcs as pyMARS import results_class as res import RZfuncs N = 6; n = 2; I = num.array([1.,-1.,0.,1,-1.,0.]) #pr...
[ "shaunhaskey@gmail.com" ]
shaunhaskey@gmail.com
d9f4f1cea64200274bfa01806a671624371f6713
2b167e29ba07e9f577c20c54cb943861d0ccfa69
/simulationsOFC/pareto2/arch5_pod100_old/copyfile.py
bf351a7f1acedff879227fffabadbccab5ef7f28
[]
no_license
LiYan1988/kthOld_OFC
17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f
b1237577ea68ad735a65981bf29584ebd889132b
refs/heads/master
2021-01-11T17:27:25.574431
2017-01-23T05:32:35
2017-01-23T05:32:35
79,773,237
0
0
null
null
null
null
UTF-8
Python
false
false
1,672
py
# -*- coding: utf-8 -*- """ Created on Sat May 28 23:27:05 2016 @author: li """ import os #dirname = os.path.dirname(os.path.realpath(__file__)) dirname='' for i in range(20): src = os.path.join(dirname, 'template_runsimu_connections.py') dst = 'pareto'+str(i)+'.py' dst = os.path.join(dirname, dst) ...
[ "li.yan.ly414@gmail.com" ]
li.yan.ly414@gmail.com
b7af641910c25e095ec765b876ffc1ff2b93a6f5
028d788c0fa48a8cb0cc6990a471e8cd46f6ec50
/Python-Advanced/Multidimensional-Lists/Lab/01_sum_matrix_elements.py
8b2f7f607ffc3ecd86832a616a452d0d289331c1
[]
no_license
Sheko1/SoftUni
d6b8e79ae545116f4c0e5705ad842f12d77a9c9d
a9fbeec13a30231b6a97c2b22bb35257ac1481c0
refs/heads/main
2023-07-13T15:39:48.826925
2021-08-21T12:51:02
2021-08-21T12:51:02
317,266,200
2
3
null
null
null
null
UTF-8
Python
false
false
389
py
def get_matrix(): row, column = [int(n) for n in input().split(", ")] result = [] for r_1 in range(row): el = [int(el) for el in input().split(", ")] result.append(el) return result matrix = get_matrix() matrix_sum = 0 for r in range(len(matrix)): for c in range(len(matrix[r])):...
[ "martinkypar@gmail.com" ]
martinkypar@gmail.com
b4e8ec957d1b648d015a016c4e06df18db2ebfb7
504d6796ed53540b57532f3c85a148bf6ddce2fc
/button.py
f7dc0e9f31bc5f463498cb67e13c6936fb840d96
[]
no_license
YGragon/AlienInvasion
1633d8319ee40400f50f236a904295eeae725886
81cf5a7988333e7a26a2934af66d571a26ade3c1
refs/heads/master
2021-08-23T15:56:11.077293
2017-12-05T14:43:25
2017-12-05T14:43:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
import pygame.font class Button(): """docstring for Button""" def __init__(self, ai_settings, screen, msg): """初始化按钮的属性""" self.screen = screen self.screen_rect = screen.get_rect() # 设置按钮的尺寸和其他属性 self.width, self.height = 200, 50 self.button_color = (0, 255, 0) ...
[ "1105894953@qq.com" ]
1105894953@qq.com
6d09ae55a40604788f8a470b1e4e72fbee35e4cb
e23a4f57ce5474d468258e5e63b9e23fb6011188
/070_oop/001_classes/examples/Learning Python/030_010_Bound Methods and Other Callable Objects.py
42e5cbd1bb55eb8bcbbd19028cb76cacc9337cb0
[]
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
2,994
py
class Number: def __init__(self, base): self.base = base def double(self): return self.base * 2 def triple(self): return self.base * 3 x = Number(2) # Class instance objects y = Number(3) # State + methods...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
4994d7a5ad3a9ce58cc29a553e7a2db8735d7e33
fe31602a910e70fa77d89fcd4c705cc677b0a898
/pipeline/type/tmodel.py
eb11ade00b352a0abf20821c7d2f3f85e2555a78
[]
no_license
WUT-IDEA/Y2019_CZH_GraduationDesignCode
e0748b4412bc6c8d160584dff7faf3d6f3395d90
83b807060c68b3edef574532b32e8ae7a759d63f
refs/heads/master
2020-06-05T04:25:15.351883
2019-06-17T09:05:28
2019-06-17T09:05:28
192,312,562
1
0
null
null
null
null
UTF-8
Python
false
false
4,022
py
# -*- coding: utf-8 -*- from __future__ import print_function import os os.environ["CUDA_VISIBLE_DEVICES"] = "3" from keras.backend.tensorflow_backend import set_session import tensorflow as tf import keras config = tf.ConfigProto() config.gpu_options.per_process_gpu_memory_fraction = 0.4 set_session(tf....
[ "zhengyunpei@zhengyunpeideMacBook-Pro.local" ]
zhengyunpei@zhengyunpeideMacBook-Pro.local
e57efe4423fa8d3f59604669b12ba4f71a8595b6
6d154b8fdea96187fe12c6c4324ec4f8980dcdfe
/Shortner/migrations/0004_alter_url_key.py
bc907321bb8551cfa5e5e3a7cf0af62000b338ed
[]
no_license
mohammad-osoolian/UrlShortner
ba245a5aa1595e43044cfb93badbae76d293f616
8ffbe0b1a951997a420381f64492bc38deb98c05
refs/heads/master
2023-07-18T11:02:55.092219
2021-08-29T11:12:55
2021-08-29T11:12:55
400,747,551
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# Generated by Django 3.2.6 on 2021-08-28 11:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Shortner', '0003_url_created'), ] operations = [ migrations.AlterField( model_name='url', name='key', fi...
[ "=" ]
=
ccd817fac9a6c0e11148d92497b0f5a6c2934cb8
cdbea65d6127779075759bf30ba2cd97d2feb3bc
/petstagram/accounts/migrations/0001_initial.py
a1d63cc03012845babc42670df6fb87da874de1c
[ "MIT" ]
permissive
DimAntDim/SoftUni_Petstagram_Workshop
9285bbded707d0ef5d467314ebcba1a7df69b370
b4d6da5fa0d19de4b434046d0b7c73a40c8343b5
refs/heads/main
2023-08-21T10:21:37.328351
2021-11-01T10:17:16
2021-11-01T10:17:16
375,528,481
0
0
null
null
null
null
UTF-8
Python
false
false
1,530
py
# Generated by Django 3.2.3 on 2021-07-19 15:25 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='PetstagramUs...
[ "66394357+DimAntDim@users.noreply.github.com" ]
66394357+DimAntDim@users.noreply.github.com
1cc53a307474feed659f6c0dba91367c367f464a
1a1d61424d83663318b8f1ba30712538680a135a
/apps/payinfo/migrations/0003_auto_20181130_2120.py
c7c3df32d3bce51fd10c0d3036e65cc70133f6d8
[]
no_license
htzs12/django_online
411ba5c4a20544a07ce6a644306b1c127e6311be
5c9c2a1a742d3dd97a430651f2bd14012f6eb3a2
refs/heads/master
2022-12-24T15:11:39.747641
2018-12-01T13:46:39
2018-12-01T13:46:39
154,823,539
0
0
null
2022-12-02T15:19:33
2018-10-26T11:23:21
Python
UTF-8
Python
false
false
412
py
# Generated by Django 2.0.5 on 2018-11-30 13:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('payinfo', '0002_auto_20181130_2118'), ] operations = [ migrations.AlterField( model_name='payinfo', name='path', ...
[ "www.htzs@qq.com" ]
www.htzs@qq.com
0493b6b20bc6c75d3b668bdb0e66d23160bc5ba8
80e1a973c97c13fd63afc347409ca0d7fcff2795
/pic/migrations/0004_images_date_posted.py
bb27ab1575016f858bc4cf761dbe6a5113d41c84
[]
no_license
prathmesh2048/cyberboxer-assignment
d22584f60870560d4fd1cc7b62bfe8b377b55a3c
c0eb91e289b72f7f254a072d7d166ac42076859d
refs/heads/master
2023-08-11T10:19:49.315590
2021-09-19T09:10:00
2021-09-19T09:10:00
408,081,529
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
# Generated by Django 3.2.7 on 2021-09-18 19:38 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('pic', '0003_alter_images_image_name'), ] operations = [ migrations.AddField( model_name='images', ...
[ "prathmeshnandurkar123@gmail.com" ]
prathmeshnandurkar123@gmail.com
c616242aab638f27aa212ca80de8c1162b0f3f38
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/2d0891e0897159d0010afa9be18d1421fcab47c2-<get_device_facts>-fix.py
561f9e445087fabeb1ba7535484f2e8f2b8bf73f
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,938
py
def get_device_facts(self): device_facts = { } device_facts['devices'] = { } lspci = self.module.get_bin_path('lspci') if lspci: (rc, pcidata, err) = self.module.run_command([lspci, '-D'], errors='surrogate_then_replace') else: pcidata = None try: ...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
27fa27939f9f0ed47d071348ff6a30e7f3939e4b
6045f8519065f17b9d832a8e051723a520b58e3c
/09. Volleyball.py
adb6b6ba2810dd04ef0de6ab78c52138001659bf
[]
no_license
a-angeliev/Python-Fundamentals-SoftUni
a308a6c94eb705a3319f6e081543c1cad0b1b37d
a9a5eba0376ebc7395daeda527408d1e59d58316
refs/heads/master
2023-07-19T05:55:28.104160
2021-09-11T18:25:58
2021-09-11T18:25:58
399,575,767
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
from math import floor year = input() holydays = int(input()) selo_weekends = int(input()) sofia_weekends = (48 - selo_weekends) * 3/4 sofia_weekends_p = sofia_weekends holydays_p = holydays* 2/3 if year == "leap": all_game = (sofia_weekends_p + holydays_p+selo_weekends)*115/100 else: all_game = sofia_weekends...
[ "nachko01@gmail.com" ]
nachko01@gmail.com
a4bc595b22f210716af0ffe15d947d0da8517d34
b68fea9d645de59ee31da970d3dc435460fde9de
/exercise/__init__.py
97d19822dd916b50911cb1201bb3b888c295e0b9
[ "BSD-3-Clause" ]
permissive
shagun30/djambala-2
03fde4d1a5b2a17fce1b44f63a489c30d0d9c028
06f14e3dd237d7ebf535c62172cfe238c3934f4d
refs/heads/master
2021-01-10T04:20:30.735479
2008-05-22T05:02:08
2008-05-22T05:02:08
54,959,603
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
""" /dms/exercise/ Aufgaben mit Abgabemoeglichkeit innerhalb des Django Content Management Systems Hans Rauch hans.rauch@gmx.net Die Programme des dms-Systems koennen frei genutzt und den spezifischen Beduerfnissen entsprechend angepasst werden. """
[ "hans.rauch@gmx.net" ]
hans.rauch@gmx.net
05fbc00b1e537495eebafabde55fad0c2743994b
cb61ba31b27b232ebc8c802d7ca40c72bcdfe152
/leetcode/3. Longest Substring Without Repeating Characters/soln.py
b6def6444faec318c2e67438c047fdc782f1f20e
[ "Apache-2.0" ]
permissive
saisankargochhayat/algo_quest
c7c48187c76b5cd7c2ec3f0557432606e9096241
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
refs/heads/master
2021-07-04T15:21:33.606174
2021-02-07T23:42:43
2021-02-07T23:42:43
67,831,927
5
1
Apache-2.0
2019-10-28T03:51:03
2016-09-09T20:51:29
Python
UTF-8
Python
false
false
785
py
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: from collections import defaultdict c_chars = defaultdict(int) l, r, res = 0, 0, 0 contract = False while r < len(s): # Expand if s[r] in c_chars and c_chars[s[r]] > 0: # check if cont...
[ "saisankargochhayat@gmail.com" ]
saisankargochhayat@gmail.com
257da03094424402f2f0aa6083bd458537c6060c
ca552cedf457ab4ad455b089f31b9fc13882c2aa
/app/core/migrations/0001_initial.py
678152fef9b44a3515f6e92dd97d1c86f63db474
[ "MIT" ]
permissive
akashjadhav3/django-recipe-app-api
8837f45dbaacf502a57e90f10dca9b936d7eb893
3124c1d6a9c3b8badc02ef9f1a0acb2a779c86dd
refs/heads/master
2023-03-24T13:10:37.909128
2020-08-02T18:07:51
2020-08-02T18:07:51
283,174,460
0
0
MIT
2021-03-19T23:51:08
2020-07-28T10:07:20
Python
UTF-8
Python
false
false
1,709
py
# Generated by Django 2.1.15 on 2020-08-01 15:00 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
d8ad11dced85b9f98cd2e9948220ded7a12f67e4
68a088346090ae4e929c208906b14181da0f92f6
/第一阶段/2. Python01/day03/exercise/04_order.py
ec663c7ecb7258a59854c76da7d2f1df58f90655
[]
no_license
LONG990122/PYTHON
d1530e734ae48416b5f989a4d97bd1d66d165b91
59a2a2a0b033c8ad0cb33d6126c252e9d574eff7
refs/heads/master
2020-07-07T09:38:03.501705
2019-09-23T16:28:31
2019-09-23T16:28:31
203,316,565
0
0
null
2019-10-23T15:02:33
2019-08-20T06:47:44
HTML
UTF-8
Python
false
false
270
py
# 1. 写一个程序,输入一段字符串,如果字符串不为 # 空,则把第一个字符的编码打印出来 s = input("请输入一段字符串: ") if s != '': # code = ord('s') code = ord(s[0]) print('第一个字符的编码是:', code)
[ "54302090+LONG990122@users.noreply.github.com" ]
54302090+LONG990122@users.noreply.github.com
702fc0631f68e8c5ce509203a5dfb60626bb656f
210ecd63113ce90c5f09bc2b09db3e80ff98117a
/AbletonX1Mk2/APC40/TransportComponent.py
33d1f976439e8a980d7df0f90542991af7714aed
[]
no_license
ajasver/MidiScripts
86a765b8568657633305541c46ccc1fd1ea34501
f727a2e63c95a9c5e980a0738deb0049363ba536
refs/heads/master
2021-01-13T02:03:55.078132
2015-07-16T18:27:30
2015-07-16T18:27:30
38,516,112
4
1
null
null
null
null
UTF-8
Python
false
false
1,954
py
#Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/APC40/TransportComponent.py import Live from _Framework.Control import ButtonControl from _Framework.TransportComponent import TransportComponent as TransportComponentBase from _Framework.SubjectSlot import subject_slo...
[ "admin@scoopler.com" ]
admin@scoopler.com
a5d637c2475a685c654bafa50d05cf531743adfe
bb3ae8193289e98e01bea265646f7c77f20558af
/venv/Scripts/pisa-script.py
30f2451464da560f085e14fd18b91fdb2fbe6889
[]
no_license
chrisstianandres/almacen_yamaha
4edbbc827bba7143f466d11c066e522cb8357b25
711096cd958e92cb6ec9423730a92120ac614337
refs/heads/master
2023-05-13T14:15:30.184461
2021-06-07T15:02:46
2021-06-07T15:02:46
370,217,067
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
#!D:\PycharmProjects\almacen_yamaha\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'xhtml2pdf==0.2.5','console_scripts','pisa' __requires__ = 'xhtml2pdf==0.2.5' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys....
[ "chrisstianandres@gmail.com" ]
chrisstianandres@gmail.com
ddbde340dbd330040e85b9a914a191527fc52717
e905abd9bb7bd7017657d0a0c4d724d16e37044c
/.history/article/spiders/sciencedirect_20201230010225.py
787c70ae8c70e5f466306bdf5a5c7e93e8e15343
[]
no_license
tabdelbari/articles
a8b921841f84fb473f5ed1cdcda743863e6bc246
f0e1dfdc9e818e43095933139b6379a232647898
refs/heads/main
2023-03-05T10:21:35.565767
2021-02-10T13:35:14
2021-02-10T13:35:14
325,654,973
0
0
null
null
null
null
UTF-8
Python
false
false
2,610
py
import scrapy import logging import re from scrapy_splash import SplashRequest from article.items import ArticleItem class SciencedirectSpider(scrapy.Spider): name = 'sciencedirect' allowed_domains = ['scienced.com'] custom_settings = { 'USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/53...
[ "abdelbari1996@hotmail.com" ]
abdelbari1996@hotmail.com
b332da6e7afdf60dcfe5a0805699a6f76bed5000
1f70e6c069074d848347cfb6674b1376a323aae2
/design/observer.py
eaf9c1e098a2f388539bda2ee30218482dd76cd3
[]
no_license
TalentBoy2333/python_study
5b3bf172a4bb04bd0ee05c24af7a223470ff78ca
703d2ff4d9fe18c9c5b801c3784e5e8f0845a3a7
refs/heads/master
2023-05-25T15:27:22.315664
2021-06-14T08:16:50
2021-06-14T08:16:50
357,243,974
0
0
null
null
null
null
UTF-8
Python
false
false
1,309
py
''' 观察者模式 ''' from abc import ABCMeta, abstractclassmethod class Observer(metaclass=ABCMeta): # 订阅者 @abstractclassmethod def update(self, notice): pass class Notice: # 发布者 def __init__(self): self.observers = [] def attach(self, obs): self.observers.append(obs) d...
[ "957498562@qq.com" ]
957498562@qq.com
300dff82aea77ac86bbac47b0ee397a4503a22cc
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flasharray/FA_2_20/models/replica_link_performance_replication.py
f928f8dbcd694fd51ffcb2543e1012ad8e850d8a
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
6,750
py
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.20 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
[ "noreply@github.com" ]
PureStorage-OpenConnect.noreply@github.com
57b9200cadbd23bee5cbfb3057e293fd71831270
c46407b9924351d794a0c28f498b4c74063f9b7b
/setup.py
081220dbbcf8b8027b461700db64f086626ca1eb
[]
no_license
cprecioso/lektor-surge
fb317ae55c92230fdd607a173d17eecd71916e82
da7cacda356f045cb71663c90c3139ff0e4b5451
refs/heads/master
2021-01-13T09:35:47.945391
2016-10-27T00:26:06
2016-10-27T00:26:06
72,056,084
0
0
null
2016-10-27T00:25:41
2016-10-27T00:25:40
null
UTF-8
Python
false
false
409
py
from setuptools import setup setup( name='lektor-surge', version='0.2+', author=u'A. Jesse Jiryu Davis', author_email='jesse@emptysquare.net', license='MIT', py_modules=['lektor_surge'], install_requires=['Lektor'], url='https://github.com/ajdavis/lektor-surge', entry_points={ ...
[ "jesse@mongodb.com" ]
jesse@mongodb.com
3f40a60b63fa2afebd92f23a45a3e7f418ae4644
a3746020cf091f433beb41bde1b62818b4de569b
/past/rule_analysis/rule/text/check_lob_using.py
7f1b4038034ddcd1a4e51f098a17ade8e31b68f3
[]
no_license
kk71/sqlaudit
59bab5765a67f56f1dd2f3103812051c5acbbc49
747aaa02573a9c2b46a9e14415d27c0ab8e6158c
refs/heads/master
2023-02-04T18:38:46.125746
2020-06-05T09:49:46
2020-06-05T09:49:46
323,559,338
1
0
null
null
null
null
UTF-8
Python
false
false
478
py
# Author: kk.Fang(fkfkbill@gmail.com) import re from .utils import judge_if_ddl def execute_rule(sql, db_model=None, **kwargs): if not judge_if_ddl(sql): return False if not re.search(r"create\s+table", sql, re.I) and not re.search(r"alter\s+table", sql, re.I): return False if any([x ...
[ "fkfkbill@gmail.com" ]
fkfkbill@gmail.com
f1115291106bbc3302ed73f4d698bd8e138e850f
bafb1c203362a9711f783115c7c573fdcd00a3d4
/venv/Lib/site-packages/kivy/tests/test_clipboard.py
e9d8617a21f5b50010b3650d2a9d6d4bfb0df15d
[]
no_license
santokalayil/kivy_android_test_project
0c41c40f6c8869767729cd153f4ce31ac09c0f1c
a4283ba4f4ca8961b2689ee7150297349aedb897
refs/heads/main
2023-04-14T08:18:40.453585
2021-04-27T19:15:21
2021-04-27T19:15:21
362,220,623
0
0
null
null
null
null
UTF-8
Python
false
false
1,281
py
from kivy.tests.common import GraphicUnitTest class ClipboardTestCase(GraphicUnitTest): def setUp(self): from kivy.core.clipboard import Clipboard self._clippy = Clipboard clippy_types = Clipboard.get_types() cliptype = clippy_types[0] if 'UTF8_STRING' in clippy_...
[ "49450970+santokalayil@users.noreply.github.com" ]
49450970+santokalayil@users.noreply.github.com
cfef430b6bdd42f1a86c075b9f5b7da9eb77d3f5
cf58614c12802286e4e416ef7b651ab6431f5b68
/src/zojax/persistentlayout/information.py
b18f07a7c83d8d58666fa61a62cd8b7b1d61296b
[ "ZPL-2.1" ]
permissive
Zojax/zojax.persistentlayout
3a31df0ac17e5b633a681b0bcf038c951fcba1fd
94f05af015d69a1452a4bdc7f34d90db5acabc64
refs/heads/master
2021-01-01T18:55:56.560619
2011-08-09T19:31:12
2011-08-09T19:31:12
2,026,019
0
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ "andrey.fedoseev@gmail.com" ]
andrey.fedoseev@gmail.com
25471751b2db8edcf8582fdedc9dee2bd88e1a36
ab15c38891f26888e4dd4f192b42e5d171437d98
/ch07-improving-classification-with-a-meta-algorithm-adaboost/adaboost.py
092232466bf7224513c3b52d9ed68f6b401b53a8
[]
no_license
zzy1120716/machine-learning-in-action
f262b1c6aea3a262c25d9a56102466d73024dd0a
a46b0b1f9e134d85f4f28bef1de30cdf329d8653
refs/heads/master
2020-03-28T21:07:59.224931
2018-10-12T08:51:15
2018-10-12T08:51:15
149,131,110
0
0
null
null
null
null
UTF-8
Python
false
false
5,701
py
from numpy import * """ 创建简单数据集 """ def loadSimpData(): datMat = matrix([[ 1. , 2.1], [ 2. , 1.1], [ 1.3, 1. ], [ 1. , 1. ], [ 2. , 1. ]]) classLabels = [1.0, 1.0, -1.0, -1.0, 1.0] return datMat,classLabels """ 单层决策树生成函数 """ def stumpClassify(dataMatrix,dimen,threshVal...
[ "zzy1120716@126.com" ]
zzy1120716@126.com
3a171d3084131166e554195f7c2a2b3bca3b65f8
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/resources/v20190801/get_resource_group.py
a589cd0c39a411c4afa98dc37e3ceaceedc2c156
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
test-wiz-sec/pulumi-azure-nextgen
cd4bee5d70cb0d332c04f16bb54e17d016d2adaf
20a695af0d020b34b0f1c336e1b69702755174cc
refs/heads/master
2023-06-08T02:35:52.639773
2020-11-06T22:39:06
2020-11-06T22:39:06
312,993,761
0
0
Apache-2.0
2023-06-02T06:47:28
2020-11-15T09:04:00
null
UTF-8
Python
false
false
4,330
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 from ... import _utilities, _tables from...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
dd64a7d5af16dc250d7f9f0558cf36a08ff22cb4
f7630fd6c829cb306e72472296e3a513844d99af
/lib/python3.8/site-packages/ansible_collections/check_point/mgmt/plugins/modules/cp_mgmt_add_domain.py
90c360467afab6cc661742573a653989786f573a
[]
no_license
baltah666/automation
6eccce20c83dbe0d5aa9a82a27937886e3131d32
140eb81fe9bacb9a3ed1f1eafe86edeb8a8d0d52
refs/heads/master
2023-03-07T10:53:21.187020
2023-02-10T08:39:38
2023-02-10T08:39:38
272,007,277
0
0
null
null
null
null
UTF-8
Python
false
false
5,822
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Ansible module to manage CheckPoint Firewall (c) 2019 # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your op...
[ "baltah666@gmail.com" ]
baltah666@gmail.com
2bf87000c434e7db266d0577faff3d8da61f2e6c
b42f4f67e71dee0f0cd95ee4ec0b781f1d27de4c
/Yr12 - to do list task, python revision.py
bbf3e7ee18240ea6e3b82e42ea335b675c47d09b
[]
no_license
Botany-Downs-Secondary-College/todo_list-Rishab-Lal
fa4e30669713fa178546597786463e98d59fc40c
4e421cf74bb6fafecfc8c67b151a05741effcee8
refs/heads/main
2023-03-07T22:59:01.908938
2021-02-21T07:23:37
2021-02-21T07:23:37
338,934,435
0
0
null
2021-02-15T00:45:25
2021-02-15T00:45:20
null
UTF-8
Python
false
false
2,022
py
def command_operator(order): if order == options_list[0] or order == options_list[3]: task = input("what task would you like to add to your list?: ") task_list.append(task) elif order == options_list[1] or order == options_list[4]: print("your tasks:") tasks_in_list = len(t...
[ "noreply@github.com" ]
Botany-Downs-Secondary-College.noreply@github.com
02533f4a8fe865e8035777f87750a925e2a26d76
5d3c8af513c3ff3f39ee09b78b36d6a0ad3f22e8
/day10/main.py
62a27bac0f3619cdd65d3b40306451bb6724c006
[]
no_license
jason9075/aoc_2020_puzzle
9a46efb781f3878eaf93854e97e001cb1fef1d31
dc2f4c1fa52330cd7b29911d9211cb87fdd82ceb
refs/heads/master
2023-02-03T20:41:11.447718
2020-12-25T04:06:47
2020-12-25T04:06:47
319,540,893
0
0
null
null
null
null
UTF-8
Python
false
false
3,372
py
import numpy as np def p1(file): jol_num = [] with open(file) as fp: line = fp.readline() while line: jol_num.append(int(line)) line = fp.readline() # jol_num.append(0) jol_num.sort() jol_num.reverse() num_of_thr = 0 num_of_one = 0 for idx, jol...
[ "jason9075@gmail.com" ]
jason9075@gmail.com
8ec248e69b206d1a951f4d862f13b4e8dbc3705d
f3e5b47bb4781415f427af4c34f909ae3b67f411
/概率/概率/资金流预测/function/概率/未命名文件夹/get_user_p.py
bcca6de5dad8132e3e108822f1ed31729df598b9
[]
no_license
abnering/alitianchi
83a45e4bc7d9adb06ad7451231ba241413768ba5
3e16a37ea4dd69c97f6d06fa8faa7ce81af23376
refs/heads/master
2020-05-18T15:34:30.783552
2015-06-28T08:58:29
2015-06-28T08:58:29
38,192,417
0
0
null
null
null
null
UTF-8
Python
false
false
1,222
py
import cPickle as pickle def get_week_count(): week_count = [0,0,0,0,0,0,0] for i in range(92): week_count[i%7] += 1 return week_count def get_purchase_p(): week_count = get_week_count() usr_purchase_p = {} f1 = file("../data/get_678_purchase.pkl",'rb') usr_purchase = pickle.load(f...
[ "=" ]
=
717e46f0ffd27a18a0b9b54a3611e47516442f14
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_15746.py
3243066645dbac93483ab2cce76bcdfcaa156fe8
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
# string.format, differing length breaks table for i in table_data: interface,mac,ip = i print '{:&lt;20s}{:&lt;20s}{:&lt;20s}{s}'.format(ip, mac,'ARPA' ,interface)
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
3d17cdf60b5b1c9e6634e1185b48af2d4710f512
3c95032b4dfaa243a5dcf98956a233bb0b2c97b2
/plot/swiss.py
000063886447d17d0e6ceca70eadf629362c9d06
[]
no_license
jhui/tf2
b8c8736958117eca824fa83baddf6b48ebbc6b1d
0eed446dd6252d17d23ef44140945dd8e25d06d4
refs/heads/main
2023-06-07T11:49:23.878736
2023-06-01T17:59:52
2023-06-01T17:59:52
324,392,041
1
1
null
null
null
null
UTF-8
Python
false
false
1,445
py
import matplotlib.pyplot as plt from sklearn import manifold, datasets sr_points, sr_color = datasets.make_swiss_roll(n_samples=8000, random_state=14) fig = plt.figure(figsize=(12, 9)) ax = fig.add_subplot(111, projection="3d") fig.add_axes(ax) ax.scatter( sr_points[:, 0], sr_points[:, 1], sr_points[:, 2], '.', ...
[ "jonathan@jonathanhui.com" ]
jonathan@jonathanhui.com
204379dedd5ca575eb34d4a3ecf6f7fb845eb022
80cfb5f42bc93433249bb2789be33208bb037679
/build/lib/platin/language/__init__.py
6e2e3196480267064d1af89f669431bd5d059f80
[]
no_license
legibe/platin
b3960975c214b99d699fc3c8d5e94d473d173a8c
430c4421ac2056c3041c1ac4b7f950c202334fb4
refs/heads/master
2020-12-24T21:28:15.740529
2016-05-13T00:29:53
2016-05-13T00:29:53
55,983,322
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
#-------------------------------------------------------------------------------- # Copyright (c) 2013, MediaSift Ltd # All rights reserved. # Distribution of this software is strictly forbidden under the terms of this # license. # # Author: Claude Gibert # #-------------------------------------------------------------...
[ "claudegibert@Bearwood.local" ]
claudegibert@Bearwood.local
e630acfcebf47e142561828d46fe7d83a788efc0
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/detection/SOLOv1/tests/test_sampler.py
8c6b401c06506371ea5f98f7873d093d3ee98610
[ "LicenseRef-scancode-proprietary-license", "BSD-2-Clause", "Apache-2.0", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
7,905
py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law or agreed to in ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
fd7500964a5e092683adba5c3939e8b99221bfb9
fa51b088ea761b78cf0c85837fabaa0b7035b105
/compute/client_library/ingredients/instance-templates/create_from_instance.py
1450cf02f213a99b15e8ff2976bf5fa433f50640
[ "Apache-2.0" ]
permissive
manavgarg/python-docs-samples
f27307022092bc35358b8ddbd0f73d56787934d1
54b9cd6740b4dbc64db4d43a16de13c702b2364b
refs/heads/master
2023-02-07T21:18:15.997414
2023-01-28T18:44:11
2023-01-28T18:44:11
245,290,674
0
0
Apache-2.0
2020-03-05T23:44:17
2020-03-05T23:44:16
null
UTF-8
Python
false
false
2,677
py
# Copyright 2022 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 or agreed to in writ...
[ "71398022+dandhlee@users.noreply.github.com" ]
71398022+dandhlee@users.noreply.github.com
0027e82f0d6f818aca29541ec19d064e1b701138
e57d7785276053332c633b57f6925c90ad660580
/sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/__init__.py
0333edd9e09f5f821f552a2ee2cabccdf0696107
[ "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
570
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" ]
adriananeci.noreply@github.com
037d7f026b3234c024d54712032323343ef39fe2
ee53b0262007b2f0db0fe15b2ad85f65fafa4e25
/Leetcode/1302. Deepest Leaves Sum.py
a2ec36969b746bee15fc4af758331ba0cc235878
[]
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
1,056
py
''' Given the root of a binary tree, return the sum of values of its deepest leaves. Example 1: Input: root = [1,2,3,4,5,null,6,7,null,null,null,null,8] Output: 15 Example 2: Input: root = [6,7,8,2,7,1,3,9,null,1,4,null,null,null,5] Output: 19 Constraints: The number of nodes in the tree is in the range [1, 1...
[ "xiaohuanlin1993@gmail.com" ]
xiaohuanlin1993@gmail.com
fcbdc53a51fb6af5dbdd65a63ece1bb714a0861f
50f4d2bb1b1222bcb2eb0122c48a0dd254deddfc
/Solve Algorithm/Dicevolume.py
539f6cb16e57da789adb0d754f9c9e082760acc6
[]
no_license
yejinee/Algorithm
9ae1c40382e9dcd868a28d42fe1cc543b790c7f5
81d409c4d0ea76cf152a5f334e53a870bc0656a7
refs/heads/master
2023-04-13T01:29:44.579635
2023-04-05T06:23:26
2023-04-05T06:23:26
235,014,475
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
""" 태민이는 주사위를 수집하는 취미를 가지고 있습니다. 주사위의 모양과 색깔은 각기 다르며, 크기 또한 다릅니다. 태민이는 지금까지 모은 N개의 주사위가 너무 난잡하게 보관해놓고 있어서 정리를 결심했습니다. 그래서 우선 N개의 주사위를 크기 순서대로 정리해보려고 마음 먹었습니다. 그렇게 주사위를 순서대로 정렬시켜보니 각 변의 길이가 1부터 N까지 모두 있는 것을 알게되었습니다. 이 사실이 매우 신기했던 태민이는 이 주사위들의 부피의 합은 어떻게 될지 궁금해졌습니다. 태민이가 현재 가지고 있는 모든 주사위의 부피의 합은 얼마일까요? 태민이의 궁금증을 풀어...
[ "kimyj9609@gmail.com" ]
kimyj9609@gmail.com
0821ebaacd10da4c7d9f3837197682eb6f0d5430
1c61f90e32431a0bf813aa6ace88f7fa2627ee6f
/leadmanager/leads/serializers.py
8e9d07756880747a16828975e4a37bf14d7cf81e
[]
no_license
WilliamOtieno/LeadManager_ReactDjango
4c2b24072192c233ed9ab12521554272491f89bf
209dc549651cebb7445f040bc38bdde275c67de9
refs/heads/master
2023-05-25T18:44:34.445294
2021-05-29T22:29:19
2021-05-29T22:29:19
371,958,224
2
0
null
null
null
null
UTF-8
Python
false
false
181
py
from .models import Lead from rest_framework import serializers class LeadSerializer(serializers.ModelSerializer): class Meta: model = Lead fields = "__all__"
[ "jimmywilliamotieno@gmail.com" ]
jimmywilliamotieno@gmail.com
2b37db3d071a1c49eb259947fc325cbdc7cc9c67
3b7b6648b72910046b6a227db30f71aeee2cba9c
/2020-12-10-deepergooglenet/config/tiny_imagenet_config.py
0741ab950f8790d2664a0b6bcd3f28c8091fa011
[]
no_license
ken2190/deep-learning-study
f2abeb1cd302e405a15bbb52188ae44ffb414e2f
f2998be89d0c931176f158ae5f48ca562786e171
refs/heads/main
2023-04-02T05:07:08.504212
2021-04-11T15:11:22
2021-04-11T15:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,464
py
import os def path_join(*arr): return os.path.sep.join([*arr]) def cd(path): return os.system("cd {}".format(path)) def start(path): os.system("start {}".format(path)) PROJECT_DIR = os.path.sep.join(os.path.realpath(__file__).split(os.path.sep)[:-2]) # DATASET_DIR = path_join("d:", "datasets", "tiny...
[ "machingclee@gmail.com" ]
machingclee@gmail.com
1266c0ee1674e1b6a510166f34ca4890175e4235
f487b2f8086fcf97311a61f79b7d01382b7c04b4
/anomaly detection/cat.py
8b94702fa88412761c7aa0857ad9122b27d1ccbb
[]
no_license
vinayakumarr/extreme-learning-machine-for-security
7c6386accc4c663e50ef5844388cd805ec396f50
c888e9d8cf64f623e810d783f1c49a7ce57ad4be
refs/heads/master
2021-05-09T21:19:01.985634
2018-01-24T06:53:47
2018-01-24T06:53:47
118,724,306
7
4
null
null
null
null
UTF-8
Python
false
false
353
py
from __future__ import print_function import pandas as pd from keras.utils.np_utils import to_categorical import numpy as np print("Loading") testlabel = pd.read_csv('data/corrected.csv', header=None) Y1 = testlabel.iloc[:,0] y_test1 = np.array(Y1) y_test= to_categorical(y_test1) np.savetxt('data/correctedonehot....
[ "noreply@github.com" ]
vinayakumarr.noreply@github.com
eeb0149de58ec4a390b835b3bb2a4b3341edca3c
78d35bb7876a3460d4398e1cb3554b06e36c720a
/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/_event_grid_management_client.py
cda928965cc0af906415b9d662acd77e43c82655
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
catchsrinivas/azure-sdk-for-python
e35f59b60318a31b3c940a7a3a07b61b28118aa5
596227a7738a5342274486e30489239d539b11d1
refs/heads/main
2023-08-27T09:08:07.986249
2021-11-11T11:13:35
2021-11-11T11:13:35
427,045,896
0
0
MIT
2021-11-11T15:14:31
2021-11-11T15:14:31
null
UTF-8
Python
false
false
7,322
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" ]
catchsrinivas.noreply@github.com
c43915e05bf79a467cc796b6ded3f746d250c066
2bf75b04b6a80d17a40170fb5e3e6998dc58981b
/l2tdevtools/build_helpers/source.py
ba428d24dc6eb092383430c66a999b946efd81dd
[ "Apache-2.0" ]
permissive
kiddinn/l2tdevtools
53534a3c3f9d2fb3b6c585611daf0fc5a336d84c
0e55b449a5fc19dbab68980df47d9073b7f0618c
refs/heads/master
2020-03-25T19:07:15.219418
2018-11-26T05:26:09
2018-11-26T05:26:09
144,065,721
0
0
Apache-2.0
2018-08-08T20:45:29
2018-08-08T20:45:29
null
UTF-8
Python
false
false
3,309
py
# -*- coding: utf-8 -*- """Helper for building projects from source.""" from __future__ import unicode_literals import logging import os import subprocess import sys from l2tdevtools.build_helpers import interface class SourceBuildHelper(interface.BuildHelper): """Helper to build projects from source.""" class...
[ "joachim.metz@gmail.com" ]
joachim.metz@gmail.com
a91d27053468eaf6f98de68ee62bcfe05d192e2b
3cda2dc11e1b7b96641f61a77b3afde4b93ac43f
/nni/nas/evaluator/__init__.py
5c14415483187674a4095a7419b65bde73c68a95
[ "MIT" ]
permissive
Eurus-Holmes/nni
6da51c352e721f0241c7fd26fa70a8d7c99ef537
b84d25bec15ece54bf1703b1acb15d9f8919f656
refs/heads/master
2023-08-23T10:45:54.879054
2023-08-07T02:39:54
2023-08-07T02:39:54
163,079,164
3
2
MIT
2023-08-07T12:35:54
2018-12-25T12:04:16
Python
UTF-8
Python
false
false
250
py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from nni.common.framework import shortcut_framework from .evaluator import * from .functional import FunctionalEvaluator shortcut_framework(__name__) del shortcut_framework
[ "noreply@github.com" ]
Eurus-Holmes.noreply@github.com
7050101a01ba0b7f9d3b8222b5590e6ce9bb1653
f2575444e57696b83ce6dcec40ad515b56a1b3a9
/Python/Introduction/WriteAFunction.py
308e029c6747ab642c896a925f68087dcd10765e
[]
no_license
abhi10010/Hackerrank-Solutions
046487d79fc5bf84b4df5ef2117578d29cb19243
da2a57b8ebfcc330d94d104c1755b8c62a9e3e65
refs/heads/master
2021-07-24T09:41:49.995295
2020-07-12T09:31:58
2020-07-12T09:31:58
195,647,097
4
0
null
null
null
null
UTF-8
Python
false
false
163
py
def is_leap(year): leap = False if (year%4==0 and year%100!=0): leap = True if year%400==0: leap = True return leap
[ "noreply@github.com" ]
abhi10010.noreply@github.com
0eba26bcfcd9f5e9a4db59f3d9390ad11e96df73
b92c73ac2fca8a1f16388cd553dafa0f167bda93
/Unit 1/linear search.py
26e1396a7e0eb697b0dee26b5592835914ced8f4
[]
no_license
DamoM73/Digital-Solutions-old
deb8d0fd7c256113fd7fad56b4658896de9f1cba
750b76d847e1d1c1661c3f1bbf7d56a72666f094
refs/heads/master
2023-08-16T05:35:03.641402
2021-10-05T02:36:34
2021-10-05T02:36:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
find = 10 found = False number_list = [3,5,2,9,6,1,8,7] length = len(number_list) counter = 0 while found == False and counter < length: if number_list[counter] == find: found = True print("Found at position", counter) else: counter = counter + 1 if found == False: print("Number no...
[ "damomurtagh@gmail.com" ]
damomurtagh@gmail.com
b5e24e6323440a416a551612ebd2d5789e7abce6
f99a83f3d538a121184de88bff19ce396be6e3d5
/stayclean-2022-november/checkin.py
0035f9707815a1c2e971d997cf08e9fb7dca0582
[ "MIT" ]
permissive
foobarbazblarg/stayclean
c38deddd971b795af58ae389b9e65914dea08d2d
384a8261b1164797d6726166a6e40f323e5bd6dd
refs/heads/master
2023-02-21T09:48:57.907540
2023-01-02T15:32:35
2023-01-02T15:32:35
45,186,602
1
0
MIT
2023-02-16T03:49:00
2015-10-29T13:59:33
Python
UTF-8
Python
false
false
491
py
#!/usr/bin/env python3 import sys from participantCollection import ParticipantCollection if __name__ == "__main__": names = sys.argv[1::] participants = ParticipantCollection() for name in names: if participants.hasParticipantNamed(name): participants.participantNamed(name).hasChecked...
[ "foobarbazblarg@gmail.com" ]
foobarbazblarg@gmail.com
2a7f0cc94cfa60d0fbb656abc845e8140d33fd55
3f15b2aac6cc0d9d8c85174a85aa2e7130f50fe1
/memo.py
8bf98c8737e0e42e3496f87c0e1237c2a8af72ea
[]
no_license
dfoderick/bitshovel-memo
811bb9cb1ba961bb00a5f7c31ec901e4d9576d04
138019988a637a56a3f0bbdc1db9808084902118
refs/heads/master
2020-04-14T20:58:16.248551
2019-01-07T06:35:15
2019-01-07T06:35:15
164,112,814
0
0
null
null
null
null
UTF-8
Python
false
false
1,680
py
#naive implement memo.cash op_return protocol #see https://memo.cash/protocol #example: redis-cli publish memo.send <action> <value> #redis-cli publish memo.send "Hello from BitShovel" import sys import redis RED = redis.Redis(host="127.0.0.1", port="6379") BUS = RED.pubsub() def main(): #listen for anyone who wa...
[ "dfoderick@gmail.com" ]
dfoderick@gmail.com
40ba102f4f4aa53184eb28b5f4f40e5b7c9db825
63efeff58299f3ca66c7be0aa80d636ade379ebf
/2019/july/shape_test.py
fca26e372a82f7855aa73e817427a95a6685dd4b
[]
no_license
gosch/Katas-in-python
0eb6bafe2d6d42dac64c644c2fd48f90bdcef22b
f89ee2accdde75222fa1e4e0ca8b4f8e27b7b760
refs/heads/master
2021-07-24T23:50:26.268217
2020-04-14T23:53:15
2020-04-14T23:53:15
137,545,678
1
0
null
null
null
null
UTF-8
Python
false
false
661
py
# importing pandas module import pandas as pd import math # making data frame from pandocfilters import Math data = pd.read_csv("https://cdncontribute.geeksforgeeks.org/wp-content/uploads/nba.csv") # dataframe.size size = data.size # dataframe.shape shape = data.shape # dataframe.ndim df_ndim = data.ndim # serie...
[ "francisco.gosch@ge.com" ]
francisco.gosch@ge.com
5734512409b516a061b0050f422b34b7ca2d1f69
d185832a16690d4f8a84311e5083f95541d9105c
/tracker/model/cvegrouppackage.py
e83aeeb1d96482bef0dfa222dea89e049fa0ff1d
[ "MIT" ]
permissive
dukebarman/arch-security-tracker
5eaf074215f567e11b128e5c9f58c5f1f6e91edc
569efa7c6b509c96339baa151c82a7398eb79743
refs/heads/master
2020-04-17T13:15:00.724114
2019-01-24T10:41:08
2019-01-24T10:41:08
166,607,334
0
0
MIT
2019-01-24T10:41:09
2019-01-20T00:17:37
Python
UTF-8
Python
false
false
656
py
from tracker import db class CVEGroupPackage(db.Model): id = db.Column(db.Integer(), index=True, unique=True, primary_key=True, autoincrement=True) group_id = db.Column(db.Integer(), db.ForeignKey('cve_group.id', ondelete="CASCADE"), nullable=False) pkgname = db.Column(db.String(64), nullable=False) ...
[ "levente@leventepolyak.net" ]
levente@leventepolyak.net
51ab28d92dbcae0a65a1fae287c6b9e11d8a3168
f2b172f7c1dcf0ac28fe7465b5844b48facade18
/12/1208/capitals.py
a134c5e6f06169f662925732217f9bc809346ab1
[]
no_license
0gravity000/IntroducingPython
2fde12485d0597e72a7da801a08d5048a47f2ff5
5d3281dbe37ed1a08d71cb6a36841781f9ac0ccf
refs/heads/master
2023-07-19T02:53:23.081806
2021-09-30T01:51:44
2021-09-30T01:51:44
403,935,207
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
def process_cities(filename): with open(filename, 'rt') as file: for line in file: line = line.strip() if 'quit' == line.lower(): return country, city = line.split(',') city = city.strip() country = country.strip() print(city.title(), country.title(), sep=',') if __nam...
[ "0gravity000@gmail.com" ]
0gravity000@gmail.com
321c8151d99bfc35e1562fe05644e8a08ecc1a87
881041fab1b4d05f1c5371efed2f9276037eb609
/tasks/nyc-permitted-event-information/depositor.py
476281f4fd7af0a89bd394682d4f9c09cebab620
[]
no_license
ResidentMario/urban-physiology-nyc-catalog
b568f3b6ee1a887a50c4df23c488f50c92e30625
cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c
refs/heads/master
2021-01-02T22:43:09.073952
2017-08-06T18:27:22
2017-08-06T18:27:22
99,377,500
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
import requests r = requests.get("https://data.cityofnewyork.us/api/views/tvpp-9vvx/rows.csv?accessType=DOWNLOAD") with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/nyc-permitted-event-information/data.csv", "wb") as f: f.write(r.content) outputs = ["/home/alex/Desktop/urban-physiology-nyc-catalog...
[ "aleksey.bilogur@gmail.com" ]
aleksey.bilogur@gmail.com
8da7371fc0333a1219c82545e88fc239fe9137f0
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/I_to_M_Gk3_no_pad/wiColorJ/pyr_Tcrop255_p60_j15/Add2Loss/Sob_k21_s001_Bce_s001/pyr_1s/L3/step10_a.py
526d45d6ec62d423f84189f8d28903e1c483f9a1
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
7,320
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
bcd6a3fac9732cbc1890b685ff96be4072b34044
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2064/60769/243881.py
6745299c74805287f773ea018a445a74748503e3
[]
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
478
py
a = input() dict = {"IV": 4, "IX": 9, "XL": 40, "XC": 90, "CD": 400, "CM": 900, "I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000} res = 0 jmp = False for i in range(len(a)): if jmp: jmp = False continue if i < len(a) - 1: if dict[a[i]] >= dict[a[i + 1]]: ...
[ "1069583789@qq.com" ]
1069583789@qq.com
bd0a17a144b476d54d6ec4c36018bac20e5578a4
08cb6c716f24ad0e5c3fe8fb2c292e81b63fc518
/python/problem17a.py
5843761bced645fe35cd1765502fc11ee322c31b
[ "MIT" ]
permissive
amyreese/euler
170ada3909500cdc1e3394406b57529d9d5fe839
0e2a809620cb02367120c0fbfbf9b419edd42c6e
refs/heads/master
2022-09-01T16:53:13.423566
2015-12-30T05:30:04
2015-12-30T05:30:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,333
py
onetonine = len("onetwothreefourfivesixseveneightnine") onetoten = onetonine + len("ten") eleventotwenty = len("eleventwelvethirteenfourteenfifteensixteenseventeeneighteennineteen") twenties = len("twenty")*10 + onetonine thirties = len("thirty")*10 + onetonine forties = len("forty")*10 + onetonine fifties = len("fift...
[ "john@noswap.com" ]
john@noswap.com
dec6b3e4df26199d84d883efb11adff47ef6e9cb
df60bc5a9c27b54b95568a9f04102785c7bc12c2
/samples/resnet-cmle/resnet-train-pipeline.py
b709051693e09c6c968564be030ee8dbd2486eb4
[ "Apache-2.0" ]
permissive
Anthonymcqueen21/pipelines
1d9d0ae20ebd43b590b88d3f9cbb398f21488be4
f0c8432748e5c013451dcac8e1ee3aee0bb415cc
refs/heads/master
2020-06-14T09:45:10.246821
2019-07-03T00:11:13
2019-07-03T00:11:13
194,972,318
1
0
Apache-2.0
2019-07-03T03:22:36
2019-07-03T03:22:36
null
UTF-8
Python
false
false
5,903
py
#!/usr/bin/env python3 # Copyright 2019 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 or...
[ "k8s-ci-robot@users.noreply.github.com" ]
k8s-ci-robot@users.noreply.github.com
ce8d7ce0b7077bb3fb89194e7b211332cc888836
533931c3d15020c6d1aab46f07a602b8257dada3
/cs3311/ass3/bio
b8c136726899aaf277beacafbc72fb4bec47bd7a
[]
no_license
JoeZhao527/database-system
9076b1ce6a978b8dfb461bb1d1da69ab887ff68e
1bfdd9f536f1d67f487ed187aa77687e15192560
refs/heads/main
2023-03-24T13:09:56.117135
2021-03-19T01:47:15
2021-03-19T01:47:15
300,784,897
0
0
null
null
null
null
UTF-8
Python
false
false
3,266
#!/usr/bin/python3 # COMP3311 20T3 Ass3 ... get Name's biography/filmography import sys import psycopg2 #from helpers import whatever, functions, you, need # define any local helper functions here # set up some globals usage = "Usage: bio 'NamePattern' [Year]" db = None pattern = None year = None input = None # pr...
[ "email@example.com" ]
email@example.com
63a8b851714d15cf5ac6f0ef5c8c7df8979f7929
0bb474290e13814c2498c086780da5096453da05
/tenka1-2017/D/main.py
471f525f95101f269499fbde1e4d56de0f16212b
[]
no_license
ddtkra/atcoder
49b6205bf1bf6a50106b4ae94d2206a324f278e0
eb57c144b5c2dbdd4abc432ecd8b1b3386244e30
refs/heads/master
2022-01-25T15:38:10.415959
2020-03-18T09:22:08
2020-03-18T09:22:08
208,825,724
1
0
null
2022-01-21T20:10:20
2019-09-16T14:51:01
Python
UTF-8
Python
false
false
754
py
#!/usr/bin/env python3 import sys def solve(N: int, K: int, A: "List[int]", B: "List[int]"): return # Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template) def main(): def iterate_tokens(): ...
[ "deritefully@gmail.com" ]
deritefully@gmail.com
132e6dd5345800e39acd1da16a86ddfc6215c444
b47e438f1be149c5b339eb0d7e114d98fb986ad0
/week-07/profiling/examples/pygame/swarm.py
c2afb0544dd9b3dbbc117f8ac3f424ce0d827e07
[]
no_license
kstager/Python300-SystemDevelopmentWithPython-Spring-2014
fb97ac425b09df34c00dc480ed3c263742d47d7f
ed37a50a8ea7c308a081bc87c8bea71520221a5e
refs/heads/master
2021-01-22T15:22:07.197138
2014-07-22T13:13:43
2014-07-22T13:13:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,929
py
import math import pygame import random import sys # from meliae import scanner # scanner.dump_all_objects("meliae.dump") # you can pass a file-handle if you prefer NUMBER_OF_SPHERES = 150 size = width, height = 800, 600 pygame.init() black = 0, 0, 0 screen = pygame.display.set_mode(size) class Sphere(object): ...
[ "joseph.sheedy@gmail.com" ]
joseph.sheedy@gmail.com
1ad6aa2c13b4180254111deb127f4c13e2d27af4
f91474e528ca517f9e81b9dbb50894f2f958f213
/party.py
def8619f9f28b52d7caa00ba4d9c66de562763db
[]
no_license
daminiamin/Testing-Balloonicorn-s-After-Party-Unit-Test
8d537af37806486ebdb19f7b7347c2a75d7ba323
03fb2160743fbabf45d9a69aed8bcc4b38ed0dd1
refs/heads/master
2020-03-30T22:04:12.660895
2018-10-05T00:40:21
2018-10-05T00:40:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,017
py
"""Flask site for Balloonicorn's Party.""" from flask import Flask, session, render_template, request, flash, redirect from flask_debugtoolbar import DebugToolbarExtension from model import Game, connect_to_db app = Flask(__name__) app.secret_key = "SECRETSECRETSECRET" app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = ...
[ "no-reply@hackbrightacademy.com" ]
no-reply@hackbrightacademy.com
aef71039dde801227a1aaf2d7d3319adaa324b95
ab6015247185ad2f7440d57aa1215ff25842a996
/account/models.py
4dee82653791f8061b1a8cb306186ce1f6af311b
[]
no_license
Johnson-xie/rurality
7fc5c7c5b941989f1c50cef944f3f4d94ac39fe7
cc35c8b0610c097db17ed1de554171737466e7b6
refs/heads/master
2023-02-20T15:48:46.233989
2021-01-23T11:04:16
2021-01-23T11:04:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,934
py
from django.db import models from django.core.signing import TimestampSigner from django.contrib.auth.hashers import make_password from django.contrib.auth.hashers import check_password from base.models import BaseModel class UserModel(BaseModel): ''' 用户表 ''' model_name = '用户' model_sign = 'user' ...
[ "boxingxing@limikeji.com" ]
boxingxing@limikeji.com
f8ff31230d296d8d52bafc61867337d61507ab7e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_airfares.py
1310f1c3cdc33bc1f52a56002ac21d34a724d64c
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
from xai.brain.wordbase.nouns._airfare import _AIRFARE #calss header class _AIRFARES(_AIRFARE, ): def __init__(self,): _AIRFARE.__init__(self) self.name = "AIRFARES" self.specie = 'nouns' self.basic = "airfare" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
ed6b7a8c5f2057dacf6492198f9233cc8714b552
6aa406767612c3eec15c9dcd26ce49841c1555bb
/ADK_6.2.43/audio/kalimba/kymera/tools/KCSMaker/downloadFile.py
88d7254055bcb3d572c7b9762266ccc7f436cbba
[]
no_license
hongshui3000/BluetoothEarbud
0bb483ca3c19f9c4b317a6ef1f4e8a9712313dd1
b173ec3666c9e02d115d52d301b74fcd2d08cb47
refs/heads/master
2021-04-06T12:42:57.286099
2018-03-06T01:55:33
2018-03-06T01:55:33
124,361,091
1
7
null
2018-03-08T08:30:02
2018-03-08T08:30:01
null
UTF-8
Python
false
false
2,569
py
############################################################################ # CONFIDENTIAL # # Copyright (c) 2015 - 2017 Qualcomm Technologies International, Ltd. # ############################################################################ import types class downloadFile(list): """Container format that extends ...
[ "chaw.meng@geortek.com" ]
chaw.meng@geortek.com