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
2cf9a70811ec72e263f4b6c70a8cc1bbd65c0e75
830acb926cc5cf5a12f2045c8497d6f4aa1c2ef2
/HyperNews Portal/Problems/Limitations/task.py
4a672123fc6df90e8780fdc4bcd6bac7ef3634d1
[]
no_license
BuyankinM/JetBrainsAcademyProjects
ca2223875ea4aab3ee7fceedc8e293bdb6e1fdcf
d5f9fcde4298af714960b2755f762141de796694
refs/heads/main
2023-02-26T05:47:26.070972
2021-02-03T22:10:53
2021-02-03T22:10:53
335,762,702
0
0
null
null
null
null
UTF-8
Python
false
false
77
py
import math real_number = float(input()) check = math.isfinite(real_number)
ebebad6c7731a9504ee607513be35017d718188d
8a5ab3d33e3b653c4c64305d81a85f6a4582d7ac
/PySide/QtCore/QPointF.py
2c350c353ea530cc837989441679f71325e61e69
[ "Apache-2.0" ]
permissive
sonictk/python-skeletons
be09526bf490856bb644fed6bf4e801194089f0d
49bc3fa51aacbc2c7f0c7ab86dfb61eefe02781d
refs/heads/master
2020-04-06T04:38:01.918589
2016-06-09T20:37:43
2016-06-09T20:37:43
56,334,503
0
0
null
2016-04-15T16:30:42
2016-04-15T16:30:42
null
UTF-8
Python
false
false
3,951
py
# encoding: utf-8 # module PySide.QtCore # from /corp.blizzard.net/BFD/Deploy/Packages/Published/ThirdParty/Qt4.8.4/2015-05-15.163857/prebuilt/linux_x64_gcc41_python2.7_ucs4/PySide/QtCore.so # by generator 1.138 # no doc # no imports from _Object import _Object class QPointF(_Object): # no doc def isNull(self...
0b13a187ec32ce7aa897761988d4c15a6c652734
ab3d5ea4bf0e48914ed14fcf16e5b1d752f199ba
/pcg_libraries/src/pcg_gazebo/parsers/sdf/pose.py
c59190b53c6490da0a3566d7aeb02a72a6f5997d
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "CC0-1.0", "MIT", "BSD-3-Clause", "LicenseRef-scancode-public-domain" ]
permissive
boschresearch/pcg_gazebo_pkgs
5f1004d0de874d4d1abc4eb695777013027158b2
1c112d01847ca4f8da61ce9b273e13d13bc7eb73
refs/heads/master
2020-06-11T06:28:36.228431
2020-02-07T13:05:28
2020-02-07T13:05:28
193,876,180
44
3
NOASSERTION
2020-02-07T12:00:55
2019-06-26T09:45:05
Python
UTF-8
Python
false
false
2,348
py
# Copyright (c) 2019 - The Procedural Generation for Gazebo authors # For information on the respective copyright owner see the NOTICE file # # 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 # #...
c623f87b22b649226f52dc2e56f8651ae57fca85
484da6ff9bda06183c3d3bbda70c6d11e1ad6b67
/.history/main_20191007162714.py
3c0a5d2227f2184e32bd46b4e6485a71ab54093b
[]
no_license
Shynar88/TSP
009a88bbddb29214921de4d0cf1761dea61b7b75
889751ab7d6a91469e86c6583f3c91b85857edd9
refs/heads/master
2020-08-06T22:40:49.217474
2020-01-14T13:41:44
2020-01-14T13:41:44
213,185,830
0
0
null
null
null
null
UTF-8
Python
false
false
7,330
py
import argparse import math import random import operator class City(): def __init__(self, index, x_coord, y_coord): self.index = index self.x_coord = x_coord self.y_coord = y_coord def __repr__(self): return "[" + str(self.x_coord) + ", " + str(self.y_coord) + "]" def get...
ce640e99ab9b4f9311a737f6a8f10585751a2bcf
3ce592352627591346ea33ea0c2665ad879414e2
/References/web-scraping/101scrapetest.py
64aa6f9bfe35ee27d2cbd8684578f2c2e1fafc06
[ "MIT" ]
permissive
royqh1979/python_libs_usage
113df732ef106f4a5faae1343493756fd703c8c0
57546d5648d8a6b7aca7d7ff9481aa7cd4d8f511
refs/heads/master
2021-04-16T18:14:43.835482
2021-01-11T03:55:25
2021-01-11T03:55:25
249,374,754
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
from urllib.request import urlopen from bs4 import BeautifulSoup html = urlopen('http://www.pythonscraping.com/pages/warandpeace.html') bs = BeautifulSoup(html.read(),'html5lib') print(bs.h1) namelist = bs.findAll('span',{'class':'green'}) for name in namelist: print(name.get_text())
04483072d03f682fa80d3014d1f0fa2fc7e36601
1a1b857c67768f20de0df42a7edb87edd57d9a33
/Quick_Sort/Quick_Sort_Practice_November_2.py
1b6901fe97a57dc5b190a20e25f2f70f0af9dfb8
[]
no_license
LilySu/Python_Practice
7c7eb30c549239f27680f410d365289b67813c5e
26767e64742149813ecbc91815454836ffce8b6e
refs/heads/master
2023-07-29T01:14:19.751490
2021-08-15T01:09:41
2021-08-15T01:09:41
279,446,861
1
2
null
2020-10-09T04:10:40
2020-07-14T01:05:55
Jupyter Notebook
UTF-8
Python
false
false
760
py
def swap(a, b, arr): arr[a], arr[b] = arr[b], arr[a] def partition(elements, start, end): pivot_index = start pivot = elements[pivot_index] while start < end: while start < len(elements) and elements[start] <= pivot: start += 1 while elements[end] > pivot: end -=...
fd9b2b5f03d3dc5bc61de7795ca876950a6683e0
7e0393251012e91213dddfd9c93f6b6b73ca2bfe
/tests/unit/test_drizzle_error.py
e7d05e37e25a68aede0c2312672d6c495e350d23
[ "MIT" ]
permissive
josephhardinee/cloudnetpy
ff4cc0303d7f2ae40f2d3466298257659ff3ccde
c37760db3cdfe62ae769f8090ba621803ec9a92c
refs/heads/master
2021-03-06T15:37:51.529776
2020-02-13T09:05:29
2020-02-13T09:05:29
246,207,849
0
0
MIT
2020-03-10T04:29:48
2020-03-10T04:26:16
null
UTF-8
Python
false
false
3,347
py
import numpy as np import numpy.testing as testing import pytest from cloudnetpy.products import drizzle_error as de DRIZZLE_PARAMETERS = {'Do': np.array([[0.0001, 0.01, 0.000001], [0.001, 0.000001, 0.0001]])} DRIZZLE_INDICES = {'drizzle': np.array([[1, 1, 1], [1, 1, 1]], dtype=b...
1abc67418dafabbb3f468f4ff08fea5c925b3bde
d86c5aa92a9763510b539776510ad9795d33ae89
/September 2020/03-Multidimensional-Lists/03-Primary-Diagonal.py
cb353fab20268a1b0cc58deae94420f1b386b6f6
[ "MIT" ]
permissive
eclipse-ib/Software-University-Professional-Advanced-Module
42e3bd50ac5f0df8082add29f4113cffb87889e1
636385f9e5521840f680644824d725d074b93c9a
refs/heads/main
2023-02-13T06:02:53.246980
2021-01-06T21:12:14
2021-01-06T21:12:14
306,282,871
0
0
null
null
null
null
UTF-8
Python
false
false
767
py
#Съкратен Вариант с комрехеншън: size = int(input()) matrix = [ [int(el) for el in input().split()] for i in range(size) ] current_sum = sum([matrix[i][i] for i in range(size)]) print(current_sum) #Вариант с range: # size = int(input()) # # matrix = [ # [int(el) for el in input().split()] # for i in ...
db89b4926bf8f251c68f068747c97003c1c04fbc
cfac0f4f862180baae078bd7656ac41c8f946006
/Day22/full.py
53638388312ad69de0807e67cf6732d90355eefc
[]
no_license
RaspiKidd/AoC2017
bcf4a8c161b48b2b8f89745d6ff5b741f023b5b7
2be828462cd5d56e2f8a8f636525359bb4de045e
refs/heads/master
2021-09-01T20:07:34.228665
2017-12-28T14:25:08
2017-12-28T14:25:08
112,738,515
0
0
null
null
null
null
UTF-8
Python
false
false
1,634
py
def read(): with open("data.txt") as f: inpt = f.read().splitlines() offset = len(inpt) // 2 infected = set() for r, line in enumerate(inpt): for c, ch in enumerate(line): if ch == '#': infected.add((r - offset, c - offset)) return infected infected = re...
286590a9fe52b4359057b9360cd7b7a404aa8d70
fe18994a1880f347d8004383434842286b9dccd3
/python_stack/flask/flask_fundamentals/Dojo_Survey/server.py
335aa9e1c425addeaea0b58be5359da8056a3f95
[]
no_license
Anbousi/Python
682d5b00555ab3183d06afddb4c5f6e1d5739f6c
4f05dd8ec62e80a28ca607feae976d9220a62227
refs/heads/master
2023-05-06T03:37:28.878915
2021-05-30T19:11:28
2021-05-30T19:11:28
364,501,098
0
2
null
null
null
null
UTF-8
Python
false
false
695
py
from flask import Flask , render_template , request , redirect app = Flask(__name__) @app.route('/') def main(): return render_template('index.html') @app.route('/result' , methods=['POST']) def result(): name_form = request.form['name'] location_form = request.form['location'] language_form = request...
2ab9f2f34b31a7152edd0e7524c21dddd1269df8
247389d0b916f972297fe3c38d262502a6cfa084
/morse
ef7bed09c034b15fde12125c089eb665e1695bcd
[]
no_license
reteps/raspi
2e69fee4eb96e4a43059f3125c79cf577e2b5bb6
96771f0525b3ad71c9b13a36de49b599c5769310
refs/heads/master
2021-09-28T05:22:32.999241
2017-07-26T13:24:51
2017-07-26T13:24:51
98,200,765
0
0
null
null
null
null
UTF-8
Python
false
false
1,205
#!/usr/bin/env python3 import RPi.GPIO as GPIO import pilights, time def to_morse_code(message): morseAlphabet ={ "A" : ".-", "B" : "-...", "C" : "-.-.", "D" : "-..", "E" : ".", "F" : "..-.", "G" : "--.", "H" : "....", "I" : "..", "J" :...
69354a0bd822307b273f6b1b5fdfdcb3a5c10b88
16a5c9c9f0d7519a6808efc61b592b4b614102cf
/Python/16.py
3672e6b7b0f7551a670966ce8b46ac170ca86da6
[]
no_license
kevin851066/Leetcode
c1d86b2e028526231b80c6d4fb6d0be7ae8d39e5
885a9af8a7bee3c228c7ae4e295dca810bd91d01
refs/heads/main
2023-08-10T16:50:12.426440
2021-09-28T15:23:26
2021-09-28T15:23:26
336,277,469
0
0
null
null
null
null
UTF-8
Python
false
false
1,012
py
class Solution: def threeSumClosest(self, nums, target): ''' :type: nums: List[int] :type: target: int :rtype: int ''' nums.sort() dis = float('inf') res = 0 for i in range(len(nums)-2): if i == 0 or nums[i] != nums[i-1]: ...
89bc553261509785779919691202bc8ff9d94257
5c69e63f3bb1286a79cb81ca70c969bccd65d740
/bocadillo/exceptions.py
e8cfd93892c17f615e36715a36c0bba654f5a71f
[ "MIT" ]
permissive
stjordanis/bocadillo
85dc5895966d3e2031df365db55e4def156e92aa
658cce55b196d60489530aaefde80b066cb8054b
refs/heads/master
2020-04-14T09:36:47.245246
2019-01-01T19:27:37
2019-01-01T19:27:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,196
py
from http import HTTPStatus from typing import Union, Any, List from starlette.websockets import WebSocketDisconnect as _WebSocketDisconnect WebSocketDisconnect = _WebSocketDisconnect class HTTPError(Exception): """Raised when an HTTP error occurs. You can raise this within a view or an error handler to in...
44c36be3d14151335716e257311f97e0760b11f5
3712a929d1124f514ea7af1ac0d4a1de03bb6773
/开班笔记/个人项目/weather/venv/Scripts/pip3.6-script.py
d64c53761d2ebf358b440b0154196e579055f766
[]
no_license
jiyabing/learning
abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9
6059006b0f86aee9a74cfc116d2284eb44173f41
refs/heads/master
2020-04-02T20:47:33.025331
2018-10-26T05:46:10
2018-10-26T05:46:10
154,779,387
0
0
null
null
null
null
GB18030
Python
false
false
450
py
#!E:\学习文件\python学习资料\开班笔记\个人项目\weather\venv\Scripts\python.exe -x # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.ar...
c6870f0f392d973959a4e8236a2aadf2507635ad
eebb210f13d452822d46432643215a4c8b656906
/bsl_21716/settings.py
f2b659a27d63e57f748807a78ce2ab48d20a787c
[]
no_license
crowdbotics-apps/bsl-21716
5e817b94f0a692469a986f3955cbaf1e813102c9
3e4cb348cdd4f84c5b78c35bf5c4f4f37d58fdbb
refs/heads/master
2023-01-03T18:12:09.360592
2020-10-19T19:11:41
2020-10-19T19:11:41
305,488,134
0
0
null
null
null
null
UTF-8
Python
false
false
5,823
py
""" Django settings for bsl_21716 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/ """ import os ...
928f58c34772c2b4138712fdfcb79215f149fc96
7b4cbaa1e7bab897e34acba06f73ac17760d394a
/sdks/python/client/argo_workflows/model/persistent_volume_claim.py
ed5b44656127c9955f253ef33fcc1405c9aaf6b6
[ "Apache-2.0" ]
permissive
nHurD/argo
0fab7f56179c848ad8a77a9f8981cb62b4a71d09
f4a65b11a184f7429d0615a6fa65bc2cea4cc425
refs/heads/master
2023-01-13T04:39:54.793473
2022-12-18T04:48:37
2022-12-18T04:48:37
227,931,854
0
2
Apache-2.0
2019-12-13T22:24:19
2019-12-13T22:24:18
null
UTF-8
Python
false
false
13,755
py
""" Argo Workflows API Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/ # noqa: E501 The version of the OpenAPI document: VERSION Generated by: https://openapi-g...
92e2ffb6e01ccf60d49d3427184289857918536d
20f951bd927e4e5cde8ef7781813fcf0d51cc3ea
/fossir/web/forms/util.py
1f03bb0a3347fb4b7c709e2715f01c827d7c8c71
[]
no_license
HodardCodeclub/SoftwareDevelopment
60a0fbab045cb1802925d4dd5012d5b030c272e0
6300f2fae830c0c2c73fe0afd9c684383bce63e5
refs/heads/master
2021-01-20T00:30:02.800383
2018-04-27T09:28:25
2018-04-27T09:28:25
101,277,325
0
2
null
null
null
null
UTF-8
Python
false
false
2,463
py
from __future__ import unicode_literals from collections import OrderedDict from copy import deepcopy from wtforms.fields.core import UnboundField def get_form_field_names(form_class): """Returns the list of field names of a WTForm :param form_class: A `Form` subclass """ unbound_fields = form_cl...
bf25c491d026c56c2680ee54c6c6da0ef243d622
1d96db84225301d972f07cad95c2a13f4fbafa84
/python/my_PyFeyn/testing/pyfeyn-test2.py
82ff7bcb08a3d9741dea8c1a1909d75c7af37668
[]
no_license
mattbellis/matts-work-environment
9eb9b25040dd8fb4a444819b01a80c2d5342b150
41988f3c310f497223445f16e2537e8d1a3f71bc
refs/heads/master
2023-08-23T09:02:37.193619
2023-08-09T05:36:32
2023-08-09T05:36:32
32,194,439
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
#! /usr/bin/env python from pyfeyn.user import * fd = FeynDiagram() p1 = Point(2, -2) p2 = Point(-2, 2) p3 = Vertex(1.25, 1.25, mark=CIRCLE) p4 = p1.midpoint(p2) p5 = p4.midpoint(p1) p6 = p4.midpoint(p2) c1 = Circle(center=p1, radius=0.5, fill=[RED], points=[p1]) c2 = Circle(center=p2, radius=0.3, fill=[GREEN], poi...
c96e7a60b206a9a0ed2292d388e43a340c284cc5
5c2f520dde0cf8077facc0fcd9a92bc1a96d168b
/from_cpython/Lib/types.py
b8166edf94fcba78305f53822b17e69b61cb466e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "Python-2.0" ]
permissive
nagyist/pyston
b613337a030ef21a3f03708febebe76cedf34c61
14ba2e6e6fb5c7316f66ccca86e6c6a836d96cab
refs/heads/master
2022-12-24T03:56:12.885732
2015-02-25T11:11:08
2015-02-25T11:28:13
31,314,596
0
0
NOASSERTION
2022-12-17T08:15:11
2015-02-25T13:24:41
Python
UTF-8
Python
false
false
2,342
py
"""Define names for all type symbols known in the standard interpreter. Types that are part of optional modules (e.g. array) are not listed. """ import sys # Iterators in Python aren't a matter of type but of protocol. A large # and changing number of builtin types implement *some* flavor of # iterator. Don't check...
39c7a34748c1b3e7fb4a8f0b57485acabb6c4b65
e7efae2b83216d9621bd93390959d652de779c3d
/kyototycoon/tests/test_kyototycoon.py
b7e964c19cda690b27c0b54a0d45f7ae777a268f
[ "BSD-3-Clause", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
1,657
py
# (C) Datadog, Inc. 2018-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from copy import deepcopy import pytest from datadog_checks.kyototycoon import KyotoTycoonCheck from .common import DEFAULT_INSTANCE, TAGS GAUGES = list(KyotoTycoonCheck.GAUGES.values()) DB_GAUGES = li...
af984f8b92fa6d9f2f3f4f2529a36de9c3b048da
3ac9cc9f54b1d6c6d5e05317bb0b977f4c1b363d
/profab/main.py
811a78a9ea7a173bb25ab8d19309d19a26ddd8c8
[ "Apache-2.0", "BSL-1.0" ]
permissive
sittisak/profab
5f5a92d8da7a07af80727eee337993929931ba2a
ff3967397b31986c9396f70a44a565d85178e6a6
refs/heads/master
2020-04-05T14:05:47.613997
2016-11-22T02:50:12
2016-11-22T02:50:12
94,763,557
0
1
null
2017-08-21T09:09:46
2017-06-19T10:09:29
Python
UTF-8
Python
false
false
541
py
"""Helper functions for the entry point scripts. """ def process_arguments(*args): """Do the initial argument parse phase. This produces tuples of role instructions """ args = list(args) # Convert tuple to list args.reverse() # We really wanted head() here, but no matter... instructions = [] ...
7892120a6d6a7156cc8d1cd0c3b45f581a21e5bc
b23d294fdffabe72c336644f119860f5ce704eef
/python_1000phone/语言基础-老师代码/day12-生成器和模块/day12-生成器和模块/game/image.py
fd2e2576d1f4c32bae8d829d16fda3308ee0debd
[]
no_license
ikaros274556330/my_code
65232758fd20820e9f4fa8cb5a6c91a1969862a2
92db21c4abcbd88b7bd77e78d9f660b4534b5071
refs/heads/master
2020-11-26T09:43:58.200990
2019-12-23T02:08:39
2019-12-23T02:08:39
229,032,315
1
0
null
null
null
null
UTF-8
Python
false
false
48
py
"""__author__=余婷""" print('image被执行')
156cee855fb4337b19f958444b0a101e766d89a5
cee0df2a184f3f99306193b9f34aba16889cc57c
/pvextractor/utils/wcs_utils.py
88cd249959d5af27eeb395dc415eeb0160e41646
[]
no_license
teuben/pvextractor
169f3317eb2d53013eb981fca18f69d17fa3a8b3
889c108a964d8130b1a17066890c7325b57daf4c
refs/heads/master
2021-01-14T13:16:48.485846
2014-04-18T23:29:17
2014-04-18T23:29:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,278
py
import numpy as np from astropy import units as u from astropy import wcs def get_pixel_scales(mywcs, assert_square=True): # borrowed from aplpy mywcs = mywcs.sub([wcs.WCSSUB_CELESTIAL]) cdelt = np.matrix(mywcs.wcs.get_cdelt()) pc = np.matrix(mywcs.wcs.get_pc()) scale = np.array(cdelt * pc) ...
9b61853924eb18e6ee43387888b12daaf7b0dea5
0b0ca6853f351530384fcb9f3f9c91d4c034512b
/website/opensource/views.py
ba63fbd77e3145251be0ac3cead121e00526bdd4
[]
no_license
thanhleviet/syrusakbary.com
d767129c6b00c092816e3cb58f063d1b052f0df0
ca04f55462db72bb603bfc0453b9404b04ee6687
refs/heads/master
2021-01-18T09:30:31.278757
2012-07-22T20:32:12
2012-07-22T20:32:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
930
py
# Create your views here. #from django.http import HttpResponse #from coffin.template import add_to_builtins #add_to_builtins('jinja2-mediasync.media') #from coffin.shortcuts import render_to_response #from django.shortcuts import render_to_response #from django.template import add_to_builtins #add_to_builtins('media...
2ca98c5399ca4e051f6ba3b6370573ba00678d56
ee3e0a69093e82deff1bddf607f6ce0dde372c48
/ndb769/개념/linked_list.py
96c6f60d40eb889dc16b88a18505851cfabdcac7
[]
no_license
cndqjacndqja/algorithm_python
202f9990ea367629aecdd14304201eb6fa2aa37e
843269cdf8fb9d4c215c92a97fc2d007a8f96699
refs/heads/master
2023-06-24T08:12:29.639424
2021-07-24T05:08:46
2021-07-24T05:08:46
255,552,956
0
0
null
null
null
null
UTF-8
Python
false
false
1,117
py
class Node: def __init__(self, data): self.data = data self.next = None class LinkedList: def __init__(self, data): self.head = Node(data) def append(self, data): cur = self.head while cur.next is not None: cur = cur.next cur.next = Node(data) ...
eff87412bf6ca4715fe05272080cc15cbc15f11a
a9aa0bce4e45b8712ce77045d0ec52eb4014692f
/manage.py
b001c976f32b96704d291a9e4d06d4bf5c399154
[]
no_license
Aleleonel/BionicoBusiness
93431e94a750f86c86d99925952cfc7b7c8cdb6d
85326614f64235d8348aebac8e8b42a9e0764e18
refs/heads/master
2023-08-17T00:41:53.660157
2020-06-01T22:04:06
2020-06-01T22:04:06
268,640,058
0
0
null
2021-06-10T19:24:12
2020-06-01T21:49:19
Python
UTF-8
Python
false
false
627
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', 'bionico.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Import...
7b095e3e066626392f53c9d6e431e87be22263e4
2a7fe1988b9a9aaf5e301637883319c43d38bcb9
/users/serializers.py
e18ccb36912540ec79d98c4ac36785882da3fc0c
[]
no_license
kenassash/django_rest_notes
65d799b32f520faef2dbd02fae2e05efa8535797
eab022e6e57aaa06918ee5ab80586c8a1a8894c3
refs/heads/master
2023-09-03T19:36:28.304504
2021-10-27T08:19:14
2021-10-27T08:19:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
from rest_framework.serializers import HyperlinkedModelSerializer # from .models import NoteUser from .models import User class UserModelSerializer(HyperlinkedModelSerializer): class Meta: # model = NoteUser # fields = ('username', 'firstname', 'lastname', 'email') # fields = '__all__' ...
6da64ddbe8b389fea336607a103d15766e44bd65
3dd58a087b59bdba102f2e6e95b3e200a9530c4c
/django_demo/mysite/polls/tests.py
7d7c15443ccc50f0a7b07c5f29af512cd9f3697e
[]
no_license
natepill/Server-Side-Architecture
b17926cf467083182e96257589dfdc7c3d5ea40e
4765136c5fe9d0eedc6b50a2bbbb0c9458170694
refs/heads/master
2022-12-11T03:41:46.296869
2019-06-24T19:53:15
2019-06-24T19:53:15
189,689,598
0
0
null
2022-12-08T01:22:18
2019-06-01T04:19:09
Python
UTF-8
Python
false
false
5,492
py
import datetime from django.test import TestCase from django.utils import timezone from django.urls import reverse from .models import Question, Choice, def create_question(question_text, days): """ Create a question with the given `question_text` and published the given number of `days` offset to now (ne...
de826dfae0fa88b16b9f28a90bfb267c18c844c7
ff2b4b972865ab82464d550934329117500d3195
/bfg9000/tools/mkdir_p.py
f12325a7350d79273dadc255603b865d4c34c859
[ "BSD-3-Clause" ]
permissive
juntalis/bfg9000
cd38a9194e6c08a4fbcf3be29f37c00bfa532588
594eb2aa7c259855e7658d69fe84acb6dad890fa
refs/heads/master
2021-08-08T21:35:33.896506
2017-11-11T08:47:57
2017-11-11T08:47:57
110,331,128
0
0
null
2017-11-11T08:46:05
2017-11-11T08:46:04
null
UTF-8
Python
false
false
396
py
from . import tool from .common import SimpleCommand @tool('mkdir_p') class MkdirP(SimpleCommand): def __init__(self, env): default = 'doppel -p' if env.platform.name == 'windows' else 'mkdir -p' SimpleCommand.__init__(self, env, name='mkdir_p', env_var='MKDIR_P', de...
3cea7cfc0e0c7f0ce28a2297adca573ec9a9e999
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/devtools/cloudbuild/v1/devtools-cloudbuild-v1-py/google/devtools/cloudbuild_v1/services/cloud_build/transports/base.py
36c52c54ceb1c9b4ddd4224c7b0ac3a69084ee44
[ "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
15,757
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
0dc860e73fdb9073bea7b31d75831fe246b55cd2
35c3999aa3f6a9e31ae6f9170ac0235da4fe7e11
/irekua_rest_api/serializers/devices/physical_devices.py
c9b5828b1b4bdec7cd965b6ca25e906f17db16f2
[ "BSD-2-Clause" ]
permissive
CONABIO-audio/irekua-rest-api
28cf9806330c8926437542ae9152b8a7da57714f
35cf5153ed7f54d12ebad2ac07d472585f04e3e7
refs/heads/master
2022-12-12T09:24:18.217032
2020-08-15T21:01:20
2020-08-15T21:01:20
219,046,247
0
4
BSD-4-Clause
2022-12-08T10:54:47
2019-11-01T19:03:10
Python
UTF-8
Python
false
false
2,098
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from rest_framework import serializers from irekua_database.models import PhysicalDevice from irekua_rest_api.serializers.base import IrekuaModelSerializer from irekua_rest_api.serializers.base import IrekuaHyperlinkedModelSerializer from irekua_rest_ap...
dc09c3c13f4ca2119ef4419cf567c1bbe2bf7f42
81bdc1dccfb95877e5f376527c23cb5c72a13922
/pyl2extra/gui/debugger/remote_window.py
05041c0221dd8c677c8b0d68e7c8136c0ee9f4e5
[ "BSD-3-Clause" ]
permissive
TNick/pyl2extra
1fb5be10448bc09018e2b0ac294b2e03fb146a57
323e1ecefeedc7d196de6d7ac6d8eceecb756333
refs/heads/master
2021-01-22T07:04:10.082374
2015-08-11T09:57:17
2015-08-11T09:57:17
34,400,301
0
1
null
2015-04-22T17:19:50
2015-04-22T15:58:21
Python
UTF-8
Python
false
false
2,954
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @author: Nicu Tofan <[email protected]> """ from PyQt4 import QtGui, QtCore from pyl2extra.gui.guihelpers import center class RemoteDialog(QtGui.QDialog): """ Allows selecting remote in order to debug on that remote. """ def __init__(self, mw): ...
e452abec56c616eb8b46b78e240cb845aecc2319
6b0d0aec9704d70663fe0edc2a6624a689cc081e
/src/app/pre/wav.py
db52981330702787a0ef82c48d08f68a0e589f2b
[ "BSD-3-Clause" ]
permissive
stefantaubert/tacotron2
086d81b38b2c49655df6b0d8d63c633e7531399a
8475f014391c5066cfe0b92b6c74568639be5e79
refs/heads/master
2023-03-29T21:07:02.266973
2020-11-25T09:57:40
2020-11-25T09:57:40
267,858,113
5
0
BSD-3-Clause
2020-05-29T12:56:56
2020-05-29T12:56:55
null
UTF-8
Python
false
false
3,818
py
import os from functools import partial from typing import Any from src.app.pre.ds import get_ds_dir, load_ds_csv from src.core.common.utils import get_subdir from src.core.pre.wav import (WavData, WavDataList, normalize, preprocess, remove_silence, stereo_to_mono, upsample) _wav_data_cs...
541a2bb132c30e724fa65dfdccfd3b3de2e89856
7f651a7dfa7cd101ddf9dd133ff78bfe996eeb3f
/main.py
910916d224daa088ba293871bad373666348f2d1
[ "MIT" ]
permissive
TrendingTechnology/PyPi-Bot
33071b0e789509dfc267ec25a3e11417d60c1395
bc2ee98981af4bc9f415a1f968bf872380d017f0
refs/heads/main
2023-06-30T08:50:57.641601
2021-08-02T13:47:28
2021-08-02T13:47:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,257
py
# Author: Fayas (https://github.com/FayasNoushad) (@FayasNoushad) import os import requests from requests.utils import requote_uri from pyrogram import Client, filters from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton API = "https://api.abirhasan.wtf/pypi?query=" START_TEXT = """ Hello {}, I am ...
d255e8072a01057e097ccaa3a705564e60199c9e
91fe8f479fa921fa84111d19222a5c6aa6eff030
/basis/progr-py/Gui/ShellGui/packdlg_redirect.py
e74111a94ff6ede688ace45c422255376555b419
[]
no_license
romanticair/python
2055c9cdaa46894c9788d5797643283786ed46dd
6f91fe5e7cbedcdf4b8f7baa7641fd615b4d6141
refs/heads/master
2022-11-03T17:17:17.608786
2019-07-05T07:07:29
2019-07-05T07:07:29
195,356,190
0
1
null
2022-10-14T20:51:14
2019-07-05T07:00:33
Python
UTF-8
Python
false
false
496
py
# 将命令行脚本包装到图形界面重定向工具中,输出显示到弹出式窗口中 from tkinter import * from packdlg import runPackDialog from Gui.Tools.guiStreams import redirectedGuiFunc def runPackDialog_Wrapped(): # 在mytools.py中运行的回调函数 redirectedGuiFunc(runPackDialog) # 对整个回调处理程序进行包装 if __name__ == '__main__': root = Tk() Button(root, tex...
0b216fd14819d28ed423883d66d0426efdbf220b
d00e68b2c14b44e7cbf13f7ddca284cdfd21c201
/tests/v2_validation/cattlevalidationtest/core/test_services_lb_host_routing_balancer.py
94d5b0c0c6c9e7f67ae8c9ce735a2053a54d1fa2
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
guangbochen/validation-tests
db92aff9b48c705115be828de1dc645143f4c9c8
23e7ab95ce76744483a0657f790b42a88a93436d
refs/heads/master
2021-09-11T14:16:57.668817
2018-04-08T19:01:02
2018-04-08T19:01:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
57,937
py
from common_fixtures import * # NOQA logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) STRESS_LB_PORT_RULE_COUNT = os.environ.get( 'STRESS_LB_PORT_RULE_COUNT', "20") def test_lbservice_host_routing_1(client, socat_containers): port = "900" service_scale = 2 lb_scale = 1 serv...
70f33bb40b94725d71df75b5591e7a9b56325cca
f9ed608c620093b9f6b5058bcedf7ae610c09c8d
/329-Longest_Increasing_Path_in_a_Matrix.py
2076972e979562372e23e07d8d2bfd9f51a966ba
[]
no_license
chanyoonzhu/leetcode-python
9b88d7f2749e1ae3ed597759b1bf9f7fa4912c35
085d868ba0458fc8e6b5549aa00fa151c335fa7f
refs/heads/master
2022-05-24T11:20:35.927915
2022-04-16T06:02:33
2022-04-16T06:02:33
166,224,197
0
1
null
null
null
null
UTF-8
Python
false
false
2,114
py
""" - dfs with memoization - note: path is strictly increasing -> no loop -> DAG -> can use dfs - O(mn), O(mn) """ class Solution: def longestIncreasingPath(self, matrix: List[List[int]]) -> int: self.matrix = matrix self.dir = [(1, 0), (-1, 0), (0, 1), (0, -1)] self.m = len(matrix) ...
a828a1d10bfc5c4b5cd149e658aca32e30558efa
7f80554c5013ba7bc66a3ec98f804156d977c277
/src/readux/urls.py
d95051dab91bc770f6c85b38826d7a40f9f870b8
[]
no_license
akrahdan/LearnAI
fa89c133dbe3b0c06bfdce720ea6dcb429d1dc57
fbea836a7fc78c8ab92b313c2afa4bdeef59c362
refs/heads/main
2023-07-24T15:07:15.692045
2021-08-20T16:39:44
2021-08-20T16:39:44
376,688,774
0
0
null
null
null
null
UTF-8
Python
false
false
3,083
py
"""readux URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
15ed8211c8d43131be4eeaa704dbd1400bbea598
59c55725576bbf0e2f6617507ba2f1db639abb3f
/stock_analytic_account/model/analytic_account.py
ea5556d076df6616c951843e5c8ca6abdca7a083
[]
no_license
bmya/eficent-odoo-addons
e3426ebaf1f59e52726253fc1dd36a09d9363059
5d8ddfa384ab4417f42bda103b71d926848035f6
refs/heads/7.0
2021-01-21T16:48:55.312452
2015-11-04T14:11:19
2015-11-04T14:11:19
45,649,141
1
3
null
2015-11-06T00:35:17
2015-11-06T00:35:17
null
UTF-8
Python
false
false
1,957
py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Eficent (<http://www.eficent.com/>) # Jordi Ballester Alomar <[email protected]> # # This program is free software: you can redistribute it and/or modify # it und...
766c006b44f7bca3d96dc1ad604ef9851b7c73be
0a1a95fe0344c27197b677e8f8d1acc05a9813bd
/tests/test_app/test_static.py
9c4549b3036f5029a3b59f6d3252f224e800aa5a
[ "MIT" ]
permissive
hirokiky/uiro
5ddaee966395512919016406c5ed18baed5cb68c
8436976b21ac9b0eac4243768f5ada12479b9e00
refs/heads/master
2023-04-27T00:57:13.953417
2013-11-09T02:15:57
2013-11-09T02:15:57
13,859,983
0
0
MIT
2023-04-15T15:13:52
2013-10-25T12:30:05
Python
UTF-8
Python
false
false
411
py
import pytest from webtest import TestApp @pytest.fixture def target(): from matcha import make_wsgi_app from uiro.static import generate_static_matching from .pkgs import static_app matching = generate_static_matching(static_app) return TestApp(make_wsgi_app(matching)) def test_static(target):...
b7759d6a6dcb81a63298d8ff7c3583729f1d19eb
7facdc4644fbe4209b5acdad9f2503bfcfb0d534
/ensure/_types.py
d0d2db7350653d2171e927886cffa6eccef0f7f8
[ "Apache-2.0" ]
permissive
KeyWeeUsr/ensure
2a19d2101418f334bb188d299f5368f96aaf7916
47becf82672906d2fcfd4e8e5b0542e43845b3ed
refs/heads/master
2023-06-01T04:11:19.154208
2018-11-06T01:39:11
2018-11-06T01:39:11
165,532,375
0
0
Apache-2.0
2019-01-13T17:14:11
2019-01-13T17:14:10
null
UTF-8
Python
false
false
1,050
py
from __future__ import absolute_import, division, print_function, unicode_literals import sys from six import add_metaclass USING_PYTHON2 = True if sys.version_info < (3, 0) else False if USING_PYTHON2: str = unicode # noqa class NumericStringType(type): _type = str _cast = float def __instanceche...
4afc9e26c651892b4c66a8e40b134a2277fdb425
be4759201435054c55ca76d4a973aee8c549e1a6
/sockets/mn_edge_indices_list_socket.py
82fca744d5684176868484ad02929b8ee962b360
[]
no_license
vvFiCKvv/animation-nodes
75f94549f82702b3ac5f548f009dd2202c694240
6988606b8c3601d428fa3fe32c77c7b440eb7c38
refs/heads/master
2021-01-17T00:29:13.299665
2015-04-25T16:46:20
2015-04-25T16:46:20
27,539,581
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
import bpy from animation_nodes.mn_execution import nodePropertyChanged from animation_nodes.mn_node_base import * class mn_EdgeIndicesListSocket(mn_BaseSocket, mn_SocketProperties): bl_idname = "mn_EdgeIndicesListSocket" bl_label = "Edge Indices List Socket" dataType = "Edge Indices List" allowedInputTypes = ["Ed...
7887f18e6d71f9eaf61d02aa2d134eb927a02aec
d3638776a2ce455eb42f29c9c06e267392b6815a
/reading/book/migrations/0007_auto_20180703_2156.py
d188bede58a1d3c4590c803e1b5a26ae3aa7e460
[ "MIT" ]
permissive
Family-TreeSY/reading
abce1b5e6047c72867839303ab0181c7a4997913
a35d1242ce3a7303fe125c11de8125bd9afbdb3c
refs/heads/master
2020-03-20T04:53:18.089247
2018-07-09T08:51:32
2018-07-09T08:51:32
137,197,886
2
1
null
null
null
null
UTF-8
Python
false
false
749
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-07-03 13:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('book', '0006_auto_20180619_2116'), ] operations = [ migrations.AddField( ...
bb89c0558e9830a7ba414e9cea296ffb578f8509
e49b654d3db99773390c5b9686df9c99fbf92b2a
/linked_lists/linked_list.py
f018e58590e973d2a1aac0516779018498713c0c
[]
no_license
hao89/diary_of_programming_puzzles
467e8264d0ad38768ba5ac3cfb45301293d79943
0e05d3716f28075f99bbd7b433d16a383209e57c
refs/heads/master
2021-01-16T00:49:38.956102
2015-08-25T13:44:53
2015-08-25T13:44:53
41,692,587
1
0
null
2015-08-31T18:20:38
2015-08-31T18:20:36
Python
UTF-8
Python
false
false
455
py
class LinkedListNode: def __init__(self, data): self.next = None self.data = data def __str__(self): node_str = "" current_node = self while current_node: if current_node.next: node_str = node_str + str(current_node.data) + ", " el...
7153a4c17d679b6a69da201b4c53f56cfe0c5619
517a904955033092aec11288151d725548226abc
/pandas_tutorial/data_advance/df_column_order.py
bd0d1a7f8f2a20eab540746de7dffb1501d42be3
[]
no_license
MinSu-Kim/python_tutorial
ae0a4e3570aa4cb411626cefbc031777364764d5
ed0c08892822d7054161c9e8f98841370868e82d
refs/heads/master
2021-06-16T16:15:30.349719
2021-05-26T04:59:47
2021-05-26T04:59:47
207,266,202
1
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
import seaborn as sns print("# titanic 데이터셋의 부분을 선택하여 데이터프레임 만들기") titanic = sns.load_dataset('titanic') df = titanic.loc[0:4, 'survived':'age'] print(df, '\n') print("# 열 이름의 리스트 만들기") columns = list(df.columns.values) # 기존 열 이름 print("ssss", sorted(columns, reverse=True), type(sorted(columns, reverse=True))) prin...
fd69e5c0ad13bddd3665e157cdd85e17f6da1920
d25003d4e1a1cd3b5eca1525c0119da47579f294
/scripts/sort_double.py
51093694d8a595573520419157b7d218af437429
[]
no_license
rd37/GooglePracticeProjects
ceabcb838bd4bd50397b8fdf775e810db320dbb1
b3543ada39b8c24f688a41cf0b745482013a93d9
refs/heads/master
2016-09-06T16:50:41.303580
2014-12-12T03:23:23
2014-12-12T03:23:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
''' Created on Dec 10, 2014 @author: ronaldjosephdesmarais ''' ints = [5,8.2,1,7,4.1,13,12,4.1,8.2] print "------use python sorted------" print sorted(ints) print "------use dictionary ------" srt_dict = {} srt_arr = [] for i in ints: if i not in srt_dict: srt_dict[i]=1 else: srt_dict[i]=s...
17b011426ea5dd281920f3b73b76457056e5bd1b
4ce6fb5c49ee6ec4b5df9e056040382812a8a591
/product/migrations/0029_auto_20191001_0528.py
2120012f6b7045350592076be1c5027236969a78
[]
no_license
yantrashalait/Multronics
198c807a0bb2b8c1ae7bcc2325436467ee8a90b3
c85b5a263fe1507c994236bba26ad12d93157622
refs/heads/master
2021-02-14T18:28:25.984830
2021-01-18T09:19:21
2021-01-18T09:19:21
244,825,522
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
# Generated by Django 2.2.4 on 2019-10-01 05:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0028_aboutiteam'), ] operations = [ migrations.AddField( model_name='product', name='visibility', ...
24567018d6cc56c197cd0f52a9cf7d6b9311506f
349d6ff272a4a113cee5b0ab7849f46305ebfb13
/sc2/game_data.py
2e69241ddf4f3f9265fd5ee0cf9aa760d4ddda4e
[ "MIT" ]
permissive
raimohanska/python-sc2
dafec03d73b905b092c92aefd5ee9d896e8df5e1
fb936be1618b4c8b8bf453d76d3f9894780a0f21
refs/heads/master
2021-09-03T04:04:46.630550
2018-01-05T12:50:11
2018-01-05T12:50:11
116,264,519
0
0
null
2018-01-04T13:41:56
2018-01-04T13:41:55
null
UTF-8
Python
false
false
2,856
py
from functools import lru_cache from .data import Attribute from .ids.unit_typeid import UnitTypeId from .ids.ability_id import AbilityId class GameData(object): def __init__(self, data): self.abilities = {a.ability_id: AbilityData(self, a) for a in data.abilities} self.units = {u.unit_id: UnitTy...
9f217ec36d8e23186e431bd2f0f1ae0b6ba58f28
b7e6cdf094baaee9d6e5034c2355641fbf9138d7
/test2.py
1d278e6887286acf6ad8073e7a7038fe7af2e13f
[]
no_license
heshibo1994/leetcode-python-2
04296c66cd6d1fe58880062aeafdbe9d474b7d2e
3ea32f03bd453743b9b81de9871fad7ac67ced90
refs/heads/master
2020-05-23T21:49:01.367969
2019-09-30T03:31:27
2019-09-30T03:31:27
186,961,972
0
0
null
null
null
null
UTF-8
Python
false
false
17
py
print(int("343"))
7a286bf190f3a7ccafa0b6a2278c68f4aebdc583
40280c446e21c07ac3ffd20c5eda064a05093698
/easy_module_attribute_getter/custom_transforms.py
4eb9cbf5ed62de0c0da0fdd380f0b4112685e08a
[ "MIT" ]
permissive
KevinMusgrave/easy-module-attribute-getter
884fdee1960b792db49e09edc5de0d268fd6ac8a
e0a733c02f2e6a969191a75c79159f45440c969f
refs/heads/master
2021-07-04T02:18:17.113242
2021-01-21T03:32:22
2021-01-21T03:32:22
218,787,854
9
2
null
null
null
null
UTF-8
Python
false
false
686
py
import torchvision.transforms.functional as F from PIL import Image class ConvertToBGR(object): """ Converts a PIL image from RGB to BGR """ def __init__(self): pass def __call__(self, img): r, g, b = img.split() img = Image.merge("RGB", (b, g, r)) ...
e9aaecada9a17d7d8b636210f8d990f11a900e07
16631cf7cd4a70f2cd2750851649d3eff5e17724
/2022/day15/part2.py
00daf3f196e692462e068c11a24b226c3febf106
[]
no_license
kynax/AdventOfCode
1dd609a3308d733f2dd7d4ea00508d2da73180b9
36a339241dd7a31ebe08a73e5efa599e5faeea1a
refs/heads/master
2022-12-21T13:32:52.591068
2022-12-16T22:41:30
2022-12-16T22:41:30
48,439,585
0
0
null
null
null
null
UTF-8
Python
false
false
1,241
py
import sys grid = {} sensitivity = [] sensors = [] beacons = [] for l in sys.stdin: l = l.strip().split(' ') sx, sy, bx, by = int(l[2][2:-1]), int(l[3][2:-1]), int(l[8][2:-1]), int(l[9][2:]) grid[(sx,sy)] = 'S' grid[(bx,by)] = 'B' dx,dy = abs(sx-bx), abs(sy-by) md = dx+dy sensitivity...
29f1b6a21401ee236b971d6979bebb602294ee1b
89967e55f8ab4037368972dcf30d2aa2cd8cb0f3
/oop_pedia_classifier.py
8a0939f92a57883e84b9301842adc075e6e28583
[]
no_license
petkraw/classifier
5f487dd51ef70023aa502d69ec402b14bfe6019c
b813ff17013caf4d6d5aa036d6cb45c6c745e3ef
refs/heads/master
2021-01-21T20:54:22.315291
2017-05-18T14:59:12
2017-05-18T14:59:12
92,289,428
0
0
null
2017-05-24T12:23:13
2017-05-24T12:23:13
null
UTF-8
Python
false
false
57,249
py
# -*- coding: utf-8 -*- """ Created on Mon Feb 20 09:56:23 2017 @author: Martin """ import json, os import warnings import numpy as np import sys from matplotlib import pyplot as plt from sklearn import svm from sklearn import preprocessing from sklearn.neural_network import MLPClassifier from sklearn....
5a9660779063959ecef329d1b58ac42c1dc13e5e
0da3ebae606295ee3c1613004c6f21650e914841
/codestreak/extensions.py
07761de1820e73e03a2ea21169597925d9435969
[]
no_license
mfwarren/codestreak.io
38bac87f2ddc6e7cff56a4bc95b6b1ca4a41ef1a
bd37dd7ad55c9926e7a4752afca5986c08145d34
refs/heads/master
2020-06-11T06:21:27.012529
2019-03-03T15:43:32
2019-03-03T15:43:32
75,747,414
3
1
null
null
null
null
UTF-8
Python
false
false
448
py
# -*- coding: utf-8 -*- """Extensions module. Each extension is initialized in the app factory located in app.py.""" from flask_debugtoolbar import DebugToolbarExtension from flask_migrate import Migrate from raven.contrib.flask import Sentry from flask_sqlalchemy import SQLAlchemy from flask_wtf.csrf import CsrfProtec...
d911a1de75e301eed643472356197ac68faf3647
b0fab024e9b7e7bd51c18c5578f0f45314808592
/sine_competition_url/competition_url.py
692142fbbe0f49ea5ac2e79373fac3914a120a1b
[]
no_license
dhecar/SINERGIA
a34d98fda84ce8ca8d2f67b89680bbf19c15fe1b
678cfd41df8045645be130d2f3d51399908b15fd
refs/heads/master
2021-01-23T11:07:48.724177
2017-04-20T10:51:07
2017-04-20T10:51:07
33,182,317
1
7
null
2015-08-31T20:59:43
2015-03-31T11:45:11
Python
UTF-8
Python
false
false
471
py
import openerp.addons.decimal_precision as dp from openerp.tools.translate import _ from openerp.osv import fields, osv import urllib import re class competition_url(osv.osv): _name = 'competition.url' _description = 'URL for competition' _table = 'competition_url' _rec_name = 'url_competition' _...
3c2393b7cc3380369cbc4d1b55810fd9d9d82ed4
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/cloud/clouddms/v1/clouddms-v1-py/google/cloud/clouddms_v1/services/data_migration_service/transports/grpc.py
27875f61ce4a3548b8ad8719aabf93eec1c8092e
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
31,544
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 or...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
752e9f1a6a208543137c36cda179ddf64539f177
b4a0380acd79a21c5596bfa5fac6eb337ef5359a
/build/lib.linux-x86_64-3.8/maskrcnn_benchmark/data/datasets/evaluation/kitchen/__init__.py
262e29603168969af9a493dd19f6620fd1abb4d8
[]
no_license
xiaofeng-c/Morphable-Detector
781104d8a7221eb03c55a67f51f696e46ded4003
3e50bb20493c3e0b99d37971e51487124aa08b5b
refs/heads/master
2023-08-27T20:53:21.606442
2021-10-18T22:28:38
2021-10-18T22:28:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
import logging from .kitchen_eval import do_kitchen_evaluation def kitchen_evaluation(dataset, predictions, output_folder, box_only, **_): logger = logging.getLogger("maskrcnn_benchmark.inference") if box_only: logger.warning("kitchen evaluation doesn't support box_only, ignored.") logger.info("p...
52fe5c0ff1bb7e21c43186b82e52b142647c0566
83ed1e2f176133c03a5f6dfa504b8df15ae71efb
/python/secondary/jnet/jnet.py
d29d5ce53337781076ea7ea61b55aca71ca18040
[]
no_license
jmborr/code
319db14f28e1dea27f9fc703be629f171e6bd95f
32720b57699bf01803367566cdc5fff2b6bce810
refs/heads/master
2022-03-09T16:11:07.455402
2019-10-28T15:03:01
2019-10-28T15:03:01
23,627,627
0
0
null
null
null
null
UTF-8
Python
false
false
5,652
py
#!/usr/bin/python import os,sys,re from jobs.job import pastry from inputArgs.inputArgs import inpHand from utilities.small_utilities import Bye,junkName from utilities.codedir import codedir from seq.blastManager import blastRun from seq.fastaManager import importFastaEntry from seq.msa import gen_msa from seq.letter...
8873e1b784b24057a8e64655dca5dc3c4d1f3d87
5603625e865a7cfe415c1aae4035a890aeb23864
/bin/mnu.py
a178061c01bb7c57e4e3d48aa0bfeed54f50e963
[]
no_license
msyriac/peakaboo
aa3ac1396c2af0862f9c5891a20a08dddd97068b
8bb8a50262695733b086984f7d89ff4f04187278
refs/heads/master
2021-01-21T13:30:31.434801
2018-05-16T18:53:34
2018-05-16T18:53:34
102,130,912
1
0
null
null
null
null
UTF-8
Python
false
false
4,997
py
import numpy as np from peakaboo import liuSims as ls import orphics.tools.io as io import os,sys import orphics.analysis.flatMaps as fmaps from mpi4py import MPI from orphics.analysis.pipeline import mpi_distribute, MPIStats import orphics.analysis.flatMaps as fmaps from enlib import enmap, resample # Get MPI comm co...
50499ed278f1c769e6003b5e965f70ca46dd96e2
8972658ca2c64703e8281db89d7a6ac47cbabbf7
/backend/tests/models.py
db9754be03118136304be7ed51dc6c7b912ed427
[ "MIT" ]
permissive
denisorehovsky/linkanywhere
15721824719cc8a959cdddb4178cfe754eb4862d
e21d6725fbe0e74a7301e40f9d9bdbac17c68e68
refs/heads/master
2022-07-21T16:16:17.412930
2017-08-24T06:32:37
2017-08-24T06:32:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
import uuid from django.db import models from linkanywhere.apps.base.behaviors import Published class TestModel(models.Model): """ Base for test models that sets app_label, so they play nicely. """ id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) class Meta: a...
0e8424e290643259e8f4b6854ed2725343d9e5cd
89c4a43a505df8fdf1f0d7386988c4896c2e631b
/google/ads/googleads/v8/resources/types/ad_group.py
243d485134ef74e75b402fb5eb6187f67cf4952e
[ "Apache-2.0" ]
permissive
hurricanelennane/google-ads-python
a0a1fed690776a8bb2e81f637eb7eae10fb4992f
310a488b6fdad9d5beea8fa4b166edce779a2511
refs/heads/master
2023-07-04T03:07:53.344466
2021-07-16T19:06:36
2021-07-16T19:06:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,520
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 or...
9ab61ddea3a8f45f1f40b9490b41e4da6d9a6544
786de89be635eb21295070a6a3452f3a7fe6712c
/SConsTools/tags/V00-00-16/src/standardExternalPackage.py
f433403d52307a3f120d028b2d80755d194bb0c7
[]
no_license
connectthefuture/psdmrepo
85267cfe8d54564f99e17035efe931077c8f7a37
f32870a987a7493e7bf0f0a5c1712a5a030ef199
refs/heads/master
2021-01-13T03:26:35.494026
2015-09-03T22:22:11
2015-09-03T22:22:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,349
py
#=============================================================================== # # SConscript fuction for standard external package # # $Id$ # #=============================================================================== import os import sys from os.path import join as pjoin from fnmatch import fnmatch from SCon...
[ "salnikov@b967ad99-d558-0410-b138-e0f6c56caec7" ]
salnikov@b967ad99-d558-0410-b138-e0f6c56caec7
80137af34837964be8bf789dbbcf21a7a1f05a3a
3d386ef093427c227f0ba6637eedfbce044a2e9e
/tfbert/optimization/create_optimizer.py
ac6c1abc5c6bf2aebe07f51b89fe61f37dbec2ae
[]
no_license
HaierAI/tfbert
c3eeb77af70e79e925e72c393a3e8229feaf1a4a
3779e59a4ebe7458ae732fef547f1168badbba2b
refs/heads/master
2023-07-09T05:25:19.015760
2021-08-16T12:27:37
2021-08-16T12:27:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,278
py
# -*- coding:utf-8 -*- # @FileName :create_optimizer.py # @Time :2021/1/31 19:58 # @Author :huanghui import tensorflow.compat.v1 as tf from .adamw import AdamWeightDecayOptimizer from .lamb import LAMBOptimizer from .schedule import lr_schedule def create_optimizer( learning_rate, num_train_s...
84f66a0bf9e3af5d28f84b3115109b132927b474
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Algorithms/Chandu and chandni's secret chat/solution.py
5347d87bca861f96880c7fd9b656c67c7b40092f
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
605
py
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here t = int(input()) for _ in range(t): s, ...
b2b80179d0f8ddc7a76ed005cbc3670219bb8091
28f0dc2b48ed019dfef08d84e842c5d75e116dfc
/Versions/Release.2.x.x/py/OBSOLETE/BibleTable.py
cced9d9f98a8cb768a4c415715efb06a18c3eb2b
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
garygriswold/SafeBible
9da0e8d89cb08888b8cf48773b4b3860086c49f7
2d378e84cbd6b81641bcccd6ba66699d24208548
refs/heads/master
2022-02-25T19:41:10.367183
2019-08-22T03:35:02
2019-08-22T03:35:02
34,028,119
0
0
MIT
2019-10-30T07:11:44
2015-04-16T01:40:19
TSQL
UTF-8
Python
false
false
3,942
py
# # This program generates SQL statements to create and populate the Bible table # This was previously called the Version table # import io import os import json out = io.open("sql/bible.sql", mode="w", encoding="utf-8") out.write(u"DROP TABLE IF EXISTS Bible;\n") out.write(u"CREATE TABLE Bible (\n") out.write(u" bi...
1f33447947159a11ecf117ebfd09d4a0232c26ed
890a6921b9dbc3d849ee51366c76a791761d35d2
/.qt_for_python/uic/PlacefieldVisualSelectionWidgetBase.py
e5bfd84f65b40625dd5b625a786686f1a3fc1927
[]
no_license
CommanderPho/Spike3D
87e1ea17a76080e18e835e9d015e7fe7bb3426e4
63e5e78c3bcb28f3dbab02d6354e6eb83cbccc2a
refs/heads/master
2023-08-17T10:40:44.389682
2023-08-16T10:57:12
2023-08-16T10:57:12
413,545,455
2
0
null
2022-10-22T05:54:57
2021-10-04T18:48:06
Jupyter Notebook
UTF-8
Python
false
false
4,107
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'c:\Users\pho\repos\pyPhoPlaceCellAnalysis\src\pyphoplacecellanalysis\GUI\Qt\PlacefieldVisualSelectionControls\PlacefieldVisualSelectionWidgetBase.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this...
274068ca686b8f9e974d3eafdfe1eeb963c21cbf
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/Ablation4_ch016_ep003_7_10/Gather2_W_fixGood_C_change/train/pyr_2s/L6/step10_a.py
f0754e9c5056e21c626cfe3e46433c46c93290ba
[]
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
22,317
py
############################################################################################################################################################################################################# ##################################################################################################################...
db8551c3b00fdaa9cea83beff7f976a27482b764
0486b6ccf883e9cd7a24bbd89b5420e7de2172b9
/DRF Study Material/Django REST Code/gs23/manage.py
0fd63ec5bb04d9d85aeb9039d1fb86e9be16bd10
[]
no_license
ajitexl/restfrmaework
2980203d7faa6c8364288283758d32c8f2a37817
9ab203748e623516365d9924dcc68acc786a66e1
refs/heads/main
2023-02-03T08:52:00.672047
2020-12-10T09:50:51
2020-12-10T09:50:51
320,222,997
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gs23.settings') try: from django.core.management import execute_from_command_line exc...
a9d0bc7546f7ca3723a17a3f5fd7ba086d51f28c
21bf726bf895569a41a8b8d2db6772dc51f46cfd
/OTHERS/Interviews/Akuna.py
abba9d6a6b4e54cda0048899107ec10a4fa00cc0
[]
no_license
jeffsnguyen/Python-1
dd924d25337cd6ac21e321d7b2c5ac17c065d94b
463d32a61a760d076656c73c9f8c9fadf262438d
refs/heads/master
2022-03-23T09:50:04.476094
2019-12-23T12:32:49
2019-12-23T12:32:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,844
py
def if_none_trivial(x): if x==0: return 0 else: return 1 def violet_search_icecream_shop(stock, max_capacity,demands,n_days,overnight_fee,price,deliver_fee,total_expense=[],expense=0): delivery_min = max(0,demands[0]-stock) delivery_max = max(0,sum(demands) - stock) for del...
5b771ee4fa02ac609d1a9cff17e724f9d74cdcdc
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/5041434/snippet.py
a978469c85746091bf61c1a14c4ddfde95ab6244
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
1,470
py
import requests from bs4 import BeautifulSoup, NavigableString def get_review_text(block): """Get just the text of a review from it's DIV""" strings = [] for possible_text in block.children: if isinstance(possible_text, NavigableString): stripped_text = possible_text.strip() ...
dac74fe07f41bad595f3daece43a0047c4795112
c105570f12f1d56087ffb831f5d34cd763d6c90b
/top/api/rest/HotelRoomImgDeleteRequest.py
55f04fe4e6cf46864d486cf6bd4e5cf9dc7d3abd
[]
no_license
wjianwei126/Alinone
01607423833d7736b2fd3c77e9e21f63c69b4e4c
80144d4657cb049d651c09647eb245405240f12f
refs/heads/master
2020-12-07T05:14:58.746777
2015-05-06T12:48:33
2015-05-06T12:48:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
''' Created by auto_sdk on 2014-11-09 14:51:18 ''' from top.api.base import RestApi class HotelRoomImgDeleteRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.gid = None self.position = None def getapiname(self): return 'taobao.hotel.r...
38989ea3cc2d9323d7df74726b4cbe4770c237d1
1d0895269d1d93bab6a0b595c806418b1eeda735
/qiskit/providers/ibmq/api/rest/experiment.py
21cea49b8c27b3ce319c61a25cd6e4314e06b812
[ "Apache-2.0" ]
permissive
Qiskit/qiskit-ibmq-provider
3921bf5f77a9621013ada7ea5e18fa199470650c
590f68d9ddb42a45c4ac8a8626ea60da85575b21
refs/heads/master
2023-06-08T03:17:52.745052
2023-06-05T14:20:16
2023-06-05T14:20:16
163,192,893
240
182
Apache-2.0
2023-06-05T14:20:18
2018-12-26T15:22:11
Python
UTF-8
Python
false
false
5,218
py
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
be022fe3fefde1e08b0c0cafbf8646767f2ba51d
a65103e2f33192d9e6fcf8c8852f263369190175
/core/models.py
c653f88b69de6db591ec935f5bf162047d706249
[]
no_license
dhilipsiva/ircman
e23153572d5f8cf09d4ed7d47c47b90050762489
767b42f321598b155f2fd74729947ed92f8da160
refs/heads/master
2023-07-10T06:42:45.855788
2015-07-22T04:17:00
2015-07-22T04:17:00
35,310,806
6
0
null
2023-09-05T05:15:21
2015-05-09T01:58:04
Python
UTF-8
Python
false
false
7,308
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # vim: fenc=utf-8 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # """ File name: models.py Version: 0.1 Author: dhilipsiva <[email protected]> Date created: 2015-05-09 """ __author__ = "dhilipsiva" __status__ = "development" """ """ # Python imports impo...
26918a548c2f53fe227743b0c90bdc04e5101662
0e27a64e42d87e049284ad263b807e4c64057de9
/tensorflow/python/ops/metrics_impl.py
392bb5ea18c96e2ac1e85c7af7d70fba4d7bbd61
[ "Apache-2.0" ]
permissive
shaayaan16/tensorflow
f721776f322e8e780cd569a7df026886317b9ac5
1ec32ec396d8efebac37325edf94b8948f1397b4
refs/heads/master
2021-01-12T02:04:58.634427
2017-06-07T05:10:35
2017-06-07T05:10:35
78,465,880
0
0
null
2017-01-09T20:25:38
2017-01-09T20:25:38
null
UTF-8
Python
false
false
116,067
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
86c9b86af42f911790b3c9a9171e90b2a3a6d5ab
6b8c3974d3ce5f7841e51dcb406666c0c5d92155
/heat/heat/tests/mistral/test_mistral_cron_trigger.py
f675a7962563de8a3c4633e373b00471eb251b3b
[ "Apache-2.0" ]
permissive
swjang/cloudexchange
bbbf78a2e7444c1070a55378092c17e8ecb27059
c06ed54f38daeff23166fb0940b27df74c70fc3e
refs/heads/master
2020-12-29T03:18:43.076887
2015-09-21T07:13:22
2015-09-21T07:13:22
42,845,532
1
1
null
2015-09-21T07:13:22
2015-09-21T05:19:35
C++
UTF-8
Python
false
false
4,428
py
# # 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 writing, software # ...
8ebc06ef30a7723e5ccdac18c322c90c8fac7485
dc9cef0a654ba5bf613501c0f11c110231aace18
/easysteps/assign.py
afa552e6b99e0a85abdb5c6063de71be522fad1a
[]
no_license
mxt123/getstartpython
36e297b9b20a9a7942e87f691f13c965c417ca7b
70bf3f4775967449fc7590bbfa470fb6ff5c3b64
refs/heads/master
2021-01-10T19:03:08.035051
2019-01-20T16:29:58
2019-01-20T16:29:58
40,926,639
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
a = 8 b = 4 print('assign values:\t\t','a = ',a,'\tb =',b)
[ "=" ]
=
aba17ae60493775a1cbdd3dc41b31bb2ee9afbcd
669e9241b02bdaa303fbc2fd4023b90d4d179a59
/Cash Register/base.py
272ceeded4ef34a761806bab212fe9e20d79a550
[]
no_license
benjaminpotter/HatchProjects
0854cf46ae7c3781468116a5d63b703dd54ae68c
7f6a948d3474c755d071751b725c059e6c7f3553
refs/heads/master
2022-01-28T16:58:03.449073
2019-08-16T13:47:30
2019-08-16T13:47:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,146
py
def setup(): size(400, 400) bg_color = color(120, 120, 120) bills_and_coins = [100, 50, 20, 10, 5, 2, 1, 0.25, 0.10, 0.5] def draw_cash_registerfunction(): noStroke() fill(50, 50, 50) rect(50, 50, 300, 220, 0) fill(225, 225, 225) rect(87, 130, 225, 35, 0) fill(225, 225, 225) rect(87, 210, 2...
4077f2c69b513dfbb09a6279cfbd85f564d84ab5
9f9ec8bebfe8b7ac8e60dcaa23153abe976585e6
/dataCommons/postingAPI/tasks.py
1ade94032b03b28ce48f6ba157446b40d942de40
[]
no_license
erikwestra/data-commons
bbf32cd9b4b64ace28bcb049190d8272a23ed891
e3ed33fad104157ff505bb02bc7ae981f8ba3b11
refs/heads/master
2020-04-11T12:03:19.996644
2013-02-14T17:08:24
2013-02-14T17:08:24
8,188,655
1
0
null
null
null
null
UTF-8
Python
false
false
1,043
py
""" dataCommons.postingAPI.tasks This module implements the background tasks run by the Celery task queuing system. """ import logging from celery import task from dataCommons.shared.lib.decorators import print_exceptions_to_stdout from dataCommons.postingAPI import postingProcessor #######################...
06c1ae158672d9a651a94f2a70faf79cce3232d5
fff54b01b46cef0bbc70a6469c88c01c82af5a57
/network/analyzer/libpcap/actions.py
33f3310aad9a49bdb10846b36e483c86e64304b9
[]
no_license
LimeLinux/Packages
e51deae6c0d1406e31f06caa5aaa7749466bef0b
d492e075d8b051df68b98c315ad0628e33a8fac4
refs/heads/master
2021-01-11T12:37:22.150638
2018-08-30T18:24:32
2018-08-30T18:24:32
77,054,292
5
19
null
2018-02-02T17:24:06
2016-12-21T13:33:45
Python
UTF-8
Python
false
false
853
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get def setup(): ...
0c3ba85209268e4419995bf3b0e59c8dc4ee5a21
1a4bc1a11fdb3f714f22f5e0e826b47aa0569de2
/projects/project02/tests/q1_1.py
61dd4039d3bf8affab16b12c4665cbd175e3a540
[]
no_license
taylorgibson/ma4110-fa21
201af7a044fd7d99140c68c48817306c18479610
a306e1b6e7516def7de968781f6c8c21deebeaf5
refs/heads/main
2023-09-05T21:31:44.259079
2021-11-18T17:42:15
2021-11-18T17:42:15
395,439,687
0
1
null
null
null
null
UTF-8
Python
false
false
243
py
test = { 'name': 'q1_1', 'points': None, 'suites': [{'cases': [{'code': '>>> type(all_unique_causes) in [np.ndarray, list]\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
872fea6e32fd13b181d5aee64e9711014a9df0d1
cbc5e26bb47ae69e80a3649c90275becf25ce404
/xlsxwriter/test/styles/test_write_num_fmts.py
1445d94a1fdf72bcc2de972b5c46a5085b48cd0d
[ "BSD-2-Clause-Views", "BSD-3-Clause", "MIT" ]
permissive
mst-solar-car/kicad-bom-generator
c3549409c3139f787ad28391372b5cb03791694a
2aae905056d06f3d25343a8d784049c141d05640
refs/heads/master
2021-09-07T14:00:40.759486
2018-02-23T23:21:13
2018-02-23T23:21:13
107,868,801
3
0
null
null
null
null
UTF-8
Python
false
false
1,007
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2017, John McNamara, [email protected] # import unittest from ...compatibility import StringIO from ...styles import Styles from ...format import Format class TestWriteNumFmts(unittest.T...
84a8d7587333beacb530ca0dc5bd8c795e393d3a
5cb29431ecbba7b61463c67749794b54201907e1
/pelicide/runner.py
688ba9e582ad94aeb3dcda92e73a6b397e49a1ed
[]
no_license
iksteen/pelicide
6a9a88a1fe2df6acb271c465942820ab76ccfa82
5b8a6a919257840fafdcab5c886c81a72b18a6c0
refs/heads/master
2021-05-16T02:39:52.910803
2016-01-06T11:40:51
2016-01-06T11:40:51
34,100,676
16
2
null
2019-10-22T23:49:10
2015-04-17T06:35:34
HTML
UTF-8
Python
false
false
2,958
py
import json import os import sys from twisted.internet import defer, protocol class RunnerProtocol(protocol.ProcessProtocol): def __init__(self, callback): self.callback = callback self.seq = 0 self.buffer = '' self.pending = set() def sendCommand(self, command, args=None): ...
4824a2ce716332ac9003208ee8e5242619b3e1e8
fb8f496a0ea0a416a5ee214ca308953392fb08ff
/predict.py
cf0c635b320c85db397e915d78c9e0d26067baed
[]
no_license
Noba1anc3/CH-NER
32ba6138d4344052844698ee917a5910997ec3ed
82f3ab07b2bf7a5b7a4debe6c074c9801b8f2fcf
refs/heads/master
2023-04-05T05:52:29.132299
2020-04-05T10:10:36
2020-04-05T10:10:36
252,642,674
2
0
null
2023-03-24T23:27:38
2020-04-03T05:43:07
HTML
UTF-8
Python
false
false
9,658
py
import numpy as np import tensorflow as tf from tensorflow.contrib.crf import viterbi_decode from copy import deepcopy import re from model import BiLSTM_CRF from utils import train_utils from data_process import read_dictionary import utils.config as cf # 参数部分 params = cf.ConfigPredict('predict', 'config/params.conf...
b2d5d706f2f349be03c0c756e348e26475a9300b
ea44a1681e276b3cc85226b53de217f6096a05d4
/fhir/resources/tests/test_specimen.py
bc833ac238d30077aeb6dc9c5c72f3cf16919802
[ "BSD-3-Clause" ]
permissive
stephanie-howson/fhir.resources
69d2a5a6b0fe4387b82e984255b24027b37985c4
126e9dc6e14541f74e69ef7c1a0b8a74aa981905
refs/heads/master
2020-05-04T22:24:49.826585
2019-06-27T15:51:26
2019-06-27T15:51:26
179,511,579
0
0
null
2019-04-04T14:14:53
2019-04-04T14:14:52
null
UTF-8
Python
false
false
13,742
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-01-17. # 2019, SMART Health IT. import os import pytest import io import unittest import json from .fixtures import force_bytes from .. import specimen from ..fhirdate import FHIRDate @pytest.mark.usefixtures("base_sett...
842861fff402dd09ab5a9f2cfa8e490d1b842ff7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03696/s669152949.py
6ffe317a8dbd760aeaf50530708cdf2ac5bd88ad
[]
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
162
py
N=int(input()) S=input() A=0 #( B=0 #) for s in S: if s=='(': A+=1 elif s==')' and A>0: A-=1 else: B+=1 print('('*B+S+')'*A)
3d710bc135abe8b2f05ed2957e0e98fee42cc9fd
287a10a6f28517003728aebbd7ed097af13a8d18
/exp_170727_neuroproof/pipeline.py
569d93db858b5d701c70c85039b00a3960cdd7df
[]
no_license
jhennies/nmmp_experiments
05c78c6068fa0f6df0002e57529cd7b8d1daa456
7c06a5818a5176fa0dc17a42ba22b2262239d91d
refs/heads/master
2021-04-06T12:01:25.537695
2017-09-22T13:42:51
2017-09-22T13:42:51
83,289,168
0
0
null
null
null
null
UTF-8
Python
false
false
11,023
py
import os import vigra import cPickle as pickle import numpy as np import sys sys.path.append( '/export/home/jhennies/src/nature_methods_multicut_pipeline_devel/nature_methods_multicut_pipeline/software/') from multicut_src import DataSet from multicut_src import lifted_multicut_workflow from multicut_src import...
1ee7dc2b9ca208d6002aaa8adfe393e5b25d084f
88be4d5657d19462eb1d74d2d4d98180b423a889
/robolearn/torch/policies/weighted_multi_policy_selector.py
e0cb8481457f36ea0e1a6161526cff851f74721d
[ "BSD-3-Clause" ]
permissive
domingoesteban/robolearn
bc58278fe38894f4ca9ec9e657ee13a479a368b7
0d20125425c352b80ef2eeed1c0b11ab6497b11a
refs/heads/master
2020-04-15T22:38:25.343229
2019-01-29T17:01:42
2019-01-29T17:01:42
165,080,647
1
1
null
null
null
null
UTF-8
Python
false
false
1,021
py
from robolearn.torch.core import PyTorchModule from robolearn.models.policies import ExplorationPolicy class WeightedMultiPolicySelector(PyTorchModule, ExplorationPolicy): def __init__(self, multipolicy, idx): self.save_init_params(locals()) super(WeightedMultiPolicySelector, self).__init__() ...
8ae9fb9ae54b014300cf7675e7bfdbabcd0e5011
836d5f7190f6b4503e758c87c71598f18fdfce14
/12-Veri-Tabanı/sqlite-database-2/database.py
d5adc5a68ad53c2351607d67672c1ff0cbb2b0b7
[]
no_license
S-Oktay-Bicici/PYTHON-PROGRAMMING
cf452723fd3e7e8ec2aadc7980208d747c502e9a
22e864f89544249d6309d6f4570a4104bf47346b
refs/heads/main
2021-11-30T00:19:21.158084
2021-11-16T15:44:29
2021-11-16T15:44:29
316,716,147
1
0
null
null
null
null
UTF-8
Python
false
false
446
py
import sqlite3 veriler = [ ("Ahmet Ümit","İstanbul Hatırası"), ("Yaşar Kemal","İnce Memed"), ("Paulo Coelho","Simyacı"), ("Paulo Coelho","Aldatmak")] db = sqlite3.connect("kitaplar.db") imlec = db.cursor() imlec.execute("CREATE TABLE IF NOT EXISTS 'kitaplık tablosu' (yazar,kitap)") for...
263e5accf9c46da5bf018e6fe716b80de9ee55da
4e0ff785b993b6bae70745434e61f27ca82e88f0
/229-Majority-Element-II/solution.py
1b9494257f4bd6ea4a55db58f2ad57d67a4ef1ec
[]
no_license
NobodyWHU/Leetcode
2ee557dd77c65c5fa8ca938efb6de3793b4de261
d284fa3daab02531e5300867463b293d44737e32
refs/heads/master
2021-01-23T14:05:28.161062
2016-09-23T11:51:51
2016-09-23T11:51:51
58,898,114
1
0
null
null
null
null
UTF-8
Python
false
false
621
py
class Solution(object): def majorityElement(self, nums): """ :type nums: List[int] :rtype: List[int] """ n1 = n2 = None c1 = c2 = 0 for num in nums: if n1 == num: c1 += 1 elif n2 == num: c2 += 1 ...
4490d298cb083a520e91f8cd046242f7439b10be
60cf5de97160c0c104b447879edd0ea1ca9724e8
/q29.py
34fb2528f462f89c7b3226061a2fd7f1d74bc2cd
[]
no_license
VinayHaryan/String
6f6b7924ab87ac8ea5509edefaa3aeda795b0de0
089dcf02a8d26afcae0ac2b23c640be5a6079095
refs/heads/main
2023-05-27T22:15:31.792837
2021-06-17T08:39:42
2021-06-17T08:39:42
377,736,749
2
0
null
null
null
null
UTF-8
Python
false
false
1,557
py
''' RUN LENGTH ENCODING IN PYTHON given an input string, write a function that returns string for the input string For example, if the input string is ‘wwwwaaadexxxxxx’, then the function should return ‘w4a3d1e1x6’. Examples: Input : str = 'wwwwaaadexxxxxx' Output : 'w4a3d1e1x6' ''' # python cod...
c9903269bc89b02fe42b2a38a1a00e60006fd0f3
aa6e1dd07a71a73bc08574b76f9e57a3ce8c8286
/077.Test_BeeWare_windows/beeware-tutorial/beeware-venv/Lib/site-packages/pip/_internal/wheel_builder.py
fa08016bdfb189f76aa4603f52684ae94fb20a25
[ "MIT" ]
permissive
IvanaXu/PyTools
0aff5982f50bb300bfa950405192c78473b69537
358ae06eef418fde35f424909d4f13049ca9ec7b
refs/heads/master
2023-06-07T21:45:44.242363
2023-06-06T16:00:25
2023-06-06T16:00:25
163,940,845
60
8
MIT
2022-12-23T02:49:05
2019-01-03T07:54:16
Python
UTF-8
Python
false
false
9,522
py
"""Orchestrator for building wheels from InstallRequirements. """ import logging import os.path import re import shutil from pip._internal.models.link import Link from pip._internal.operations.build.wheel import build_wheel_pep517 from pip._internal.operations.build.wheel_legacy import build_wheel_legacy from pip._in...
9d5e381b6742e606d841d20ce2e6480a9029a65d
e3af1769d017fa5b20677b1228fd3ab42afc8927
/projet/IBPackage/operations.py
481a6a5755012665fb4d06ee741c5fdef5d684ad
[]
no_license
komi24/IB201116
08e8692a72badb82eecc79af753e1cf5c4021380
924c6540978b0308686eac867c16a3f6d1725f65
refs/heads/master
2023-01-19T11:34:32.627342
2020-11-20T15:24:31
2020-11-20T15:24:31
313,242,433
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
# -*- coding: utf-8 -*- def ajoute_2(a): return a + 2 def addition(a, b): return a + b def produit(a, b): return a * b # def moyenne(liste, operation, init): # somme = init # for i in liste: # somme = operation(i, somme)
77b73a4c62c781666aa6f58703e8ed6973d129db
c61145e8771724575f67ae5738dd6cbb9626a706
/blog/models.py
b885ebd7fe878c0266a464c1da35eb04d96169e5
[]
no_license
Seredyak1/test_task
1399dd082f4281ca6f72d036f4df4c1c6945dafe
a5d433b827df46ffa95dd6dd91245b204884674f
refs/heads/master
2020-04-16T08:03:04.521740
2019-01-16T09:33:47
2019-01-16T09:33:47
165,409,648
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
from django.contrib.auth.models import User from django.db import models class Post(models.Model): class Meta: verbose_name_plural = 'Posts' ordering = ('-updated_at',) user = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField(max_length=128, blank=True, null=True...
8ae1215e7351323fa30e296d34e9cf8d769a78c1
6c50175e82974fdb0ccabd544a40e013e6672cb0
/LoginReg_Bootstrap/settings.py
fbcb01abea32951e3eba4b4872bb9626432a3aa4
[]
no_license
Jallnutt1/LoginReg_Bootstrap
9515878688ac6a16efaba18345b90b389a6c6213
60532872f1e04a5809f65745665e2f16df0a913e
refs/heads/main
2023-05-26T05:02:59.124607
2021-06-04T01:50:46
2021-06-04T01:50:46
373,688,654
0
0
null
null
null
null
UTF-8
Python
false
false
3,151
py
""" Django settings for LoginReg_Bootstrap project. Generated by 'django-admin startproject' using Django 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/ """ imp...
[ "{ID}+{username}@users.noreply.github.com" ]
{ID}+{username}@users.noreply.github.com
c006ca77594cce7b285e3cb5b9081c678b8e1f01
668dad44beb30cadb170e32a8a7f0a57c42e653c
/denormalize_to_csv.py
d2910eec545e9f6d62c1a4e254eb4424ae66ed54
[]
no_license
SEL-Columbia/ss_data_analysis
22b72540732b03836423e18462495b2252a2cca8
dfb8c2670cddbddbb693e5a3243bc829bccf5ae0
refs/heads/master
2016-09-05T12:31:00.546458
2013-10-21T23:01:34
2013-10-21T23:01:34
13,162,453
0
0
null
null
null
null
UTF-8
Python
false
false
4,354
py
import os import datetime import csv import sys """ denormalize_to_csv.py usage: python denormalize_to_csv.py logs_dir description: Script to take a directory of sharedsolar log files in csv format and denormalizes them such that they can be concatenated together into "one big table" ...
5d2c18d1ea37c56236232061cf2a19e8e6d11fac
ca75f7099b93d8083d5b2e9c6db2e8821e63f83b
/z2/part2/interactive/jm/random_normal_1/561870518.py
e07b9173fe09044ec19d2a4fbff66e5550b7c929
[ "MIT" ]
permissive
kozakusek/ipp-2020-testy
210ed201eaea3c86933266bd57ee284c9fbc1b96
09aa008fa53d159672cc7cbf969a6b237e15a7b8
refs/heads/master
2022-10-04T18:55:37.875713
2020-06-09T21:15:37
2020-06-09T21:15:37
262,290,632
0
0
MIT
2020-06-09T21:15:38
2020-05-08T10:10:47
C
UTF-8
Python
false
false
7,951
py
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 561870518 """ """ random actions, total chaos """ board = gamma_new(6, 8, 4, 15) assert board i...
4660ea0d2890f4a7ae7e8f48cbe1f776c8393822
de428c011b56db862f05ec0ceab17b85f83f94b1
/pythongame/scenes_game/player_environment_interactions.py
bfdfdb4eea733e83b0f61229bf7c9e6e1f382640
[]
no_license
risooonho/python-2d-game
c6d1fceaf09c72a6f7573230a4a899bf79164b7f
24b02646ed56f9017069b243b774e0ee46951aea
refs/heads/master
2021-05-17T06:02:13.538699
2020-02-15T23:59:54
2020-02-15T23:59:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,646
py
import sys from typing import Optional, Any, List, Tuple from pythongame.core.game_data import CONSUMABLES, PORTALS from pythongame.core.game_state import GameState, NonPlayerCharacter, LootableOnGround, Portal, WarpPoint, \ ConsumableOnGround, ItemOnGround, Chest, Shrine from pythongame.core.game_state import Wor...
f4018757458a86a63df44d42374c69ea3d612194
de4d3fed2b538587124ad855c8ba2f30933e7edf
/backend/sparepart_main/sparepart_main/asgi.py
597f5430d993ea910e06c11dd1b1488e41205dd3
[]
no_license
zahydakhan/project_spare
aaea130edefa95630f73b3026de6c32800b0bc7f
850374c270fd5ad2897bf9b6f0afb93b9e171059
refs/heads/master
2023-03-11T17:13:13.103574
2021-02-23T06:40:52
2021-02-23T06:40:52
339,530,703
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" ASGI config for sparepart_main 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.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANG...
4913c2722dadc4eab70e690b9fb6b88e0097a781
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2022_06_15/aio/_application_insights_management_client.py
8b411d38bef302c4b99c3ad09e97a57e5267f2e1
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
4,161
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 ...
58917f325490ea31f0266642594353b9a3a355ea
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/2992.py
b11dac90d43eb4458792e75c04fcfe2c80575061
[]
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
874
py
def read_case(file): answer = int(file.readline()) - 1 for skip in range(4): line = file.readline() if skip is answer: result = set(line.split()) return result def read_input(filename): with open(filename, "r") as in_file: n_cases = int(in_file.readline...
70ec64d86ed5c0c271e847db24f5640fba8b206c
d6f95f4347c2bd934393603819787acf70aaf4eb
/2018年11月15日福建省/gg.py
af58924762c19caec1070c8e9830667202198a39
[]
no_license
moto-faith/work
531804bca7b6ecb6d9776ed2086bbf9952e2043b
e77e40dbbb7dbb80bd2bc2584a6d1d020f92d2b4
refs/heads/master
2020-04-08T11:20:37.533419
2019-03-18T08:09:27
2019-03-18T08:09:27
159,302,505
1
1
null
null
null
null
UTF-8
Python
false
false
1,942
py
#!/usr/bin/env python #coding=utf-8 import time import datetime import re import json import requests import time import redis import sys from urlparse import urljoin from db import DB reload (sys) import copy import MySQLdb sys.setdefaultencoding ("utf-8") import htmlparser from PIL import Image de...