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
cc69c17eb918fd897c9f5b7af3a2c749094d41a7
0dbfea9dcbbdf7a329c9d0f61831973b3168e560
/camera.py
a9b8a4f8902973ba7b1242f9bbea89e50609084c
[]
no_license
SmartPracticeschool/SPS-4035-Intelligent-Best-Safety-Max-Safety-Rating-Generator-for-Restaurant
6e6be915bf0208c5a9ca1368f99d754051fd9fee
47ba68197c24623fee757788e03cbb41e5fca921
refs/heads/master
2022-12-11T09:28:01.007804
2020-09-11T10:20:54
2020-09-11T10:20:54
292,284,479
0
0
null
null
null
null
UTF-8
Python
false
false
2,508
py
import cv2 import boto3 import datetime import requests face_cascade=cv2.CascadeClassifier("haarcascade_frontalface_alt2.xml") ds_factor=0.6 count=0 class VideoCamera(object): def __init__(self): self.video = cv2.VideoCapture(0) def __del__(self): self.video.release() def get...
3b054790bdd248be0ce98c709a283af3f4078789
679ce4b323f79b2425976201324c6c1f88b95199
/Python/Resource/game_state_machine.py
dfc0cbe9f3c5720937da66d1172aa9f2ccb26615
[]
no_license
abriggs914/Coding_Practice
ff690fb5f145a11f4da144f3882b37f473b10450
3afd7c59e0d90f0ef5f6203853e69f853312019b
refs/heads/master
2023-08-31T04:04:58.048554
2023-08-29T13:23:29
2023-08-29T13:23:29
161,865,421
0
1
null
2022-10-27T08:35:29
2018-12-15T03:20:14
Python
UTF-8
Python
false
false
11,619
py
# Class outlining a Game-State-Machine (GSM). # Version............1.4 # Date........2022-08-03 # Author....Avery Briggs class GSM: def __init__(self, options, name=None, idx=None, max_cycles=None, allow_recycle=True): """Game State Machine. Simulates app_state switches for an object. Required:...
dbb97f0cbc36f2bfd81ed8cc7c03df74b429d7e7
dfe2a52a1c36a28a8bf85af7efd42380d980b773
/virtual/lib/python3.6/site-packages/social/tests/backends/test_skyrock.py
6c9bc03d42c8bfa986caebbc4d6173b6d3d79df5
[ "MIT" ]
permissive
virginiah894/Instagram-clone
2c2a15d89fcdb25b22bd60428cf84a01f3bd553c
4d8abe7bafefae06a0e462e6a47631c2f8a1d361
refs/heads/master
2022-12-10T06:56:21.105357
2020-01-07T14:14:50
2020-01-07T14:14:50
229,394,540
3
0
MIT
2022-12-08T03:23:40
2019-12-21T07:41:19
Python
UTF-8
Python
false
false
1,343
py
import json from social.p3 import urlencode from social.tests.backends.oauth import OAuth1Test class SkyrockOAuth1Test(OAuth1Test): backend_path = 'social.backends.skyrock.SkyrockOAuth' user_data_url = 'https://api.skyrock.com/v2/user/get.json' expected_username = 'foobar' access_token_body = json.du...
f7f87f6e23d10dd65ab01b555e144d39934285c9
df7f13ec34591fe1ce2d9aeebd5fd183e012711a
/hata/discord/exceptions/error_codes.py
faca39a3c0924d90bce9ef83a30fe5a758a7f70c
[ "LicenseRef-scancode-warranty-disclaimer" ]
permissive
HuyaneMatsu/hata
63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e
53f24fdb38459dc5a4fd04f11bdbfee8295b76a4
refs/heads/master
2023-08-20T15:58:09.343044
2023-08-20T13:09:03
2023-08-20T13:09:03
163,677,173
3
3
Apache-2.0
2019-12-18T03:46:12
2018-12-31T14:59:47
Python
UTF-8
Python
false
false
61,855
py
__all__ = () __doc__ = """ The possible json error codes received from Discord HTTP API requests. Import it as `ERROR_CODES`. Examples -------- Sending a direct message to a user. ```py from hata import ERROR_CODES, DiscordException async def try_send_private_message(client, user, content): private_channel = ...
d8fd4caa1881767fdbdb3243b826d95602368b79
246e9200a834261eebcf1aaa54da5080981a24ea
/project-euler/26-50/quadratic-primes.py
687b00c3053fa2d1e6a26428025f06a178f6a92c
[]
no_license
kalsotra2001/practice
db435514b7b57ce549b96a8baf64fad8f579da18
bbc8a458718ad875ce5b7caa0e56afe94ae6fa68
refs/heads/master
2021-12-15T20:48:21.186658
2017-09-07T23:01:56
2017-09-07T23:01:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
from math import sqrt def prime(n): if n < 2: return False if n == 2: return True else: for div in range(2, int(sqrt(n)) + 1): if n % div == 0: return False return True max_primes = 0 product = 0 for i in range(-999, 1001): for j in range(-9...
c296bcf5d763803370519dbc7b0cfa134d9b4fc7
fd3f0fdc6af4d0b0205a70b7706caccab2c46dc0
/0x08-python-more_classes/1-rectangle.py
89807a014a51f03ba7255d4d66673efba41e72ac
[]
no_license
Maynot2/holbertonschool-higher_level_programming
b41c0454a1d27fe34596fe4aacadf6fc8612cd23
230c3df96413cd22771d1c1b4c344961b4886a61
refs/heads/main
2023-05-04T05:43:19.457819
2021-05-12T14:51:56
2021-05-12T14:51:56
319,291,958
0
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
#!/usr/bin/python3 """This module contains geometric shape classe(s)""" class Rectangle: """Simulates a real world rectangle""" def __init__(self, width=0, height=0): """Initialises a rectangle of a given width and height""" self.width = width self.height = height @property de...
5c6620edec199d9f5d5a8418a074133844d17c7c
e34d69f33d9bf3d9de99343ba24ad78bc5197a93
/scripts/cmp_lj_sync
f25d123129b22ec54a527691be2a502d7f0f1e29
[]
no_license
cms-ttH/ttH-TauRoast
8e8728a49d02d9e8d7dc119376a4aefb6e8fd77d
3fe6529d7270dc091db00f95997ca6add8b95ac9
refs/heads/master
2021-01-24T06:13:06.485445
2017-10-11T14:04:05
2017-10-11T14:04:05
10,819,593
2
5
null
2016-09-15T07:19:20
2013-06-20T12:46:59
Python
UTF-8
Python
false
false
656
#!/usr/bin/env python import sys def read(fn): evts = {} with open(fn) as f: for line in f: if not line.startswith('1'): continue run, lumi, event, stub = line.split(',', 3) evts[(run, lumi, event)] = stub return evts me = read(sys.argv[1]) kit ...
165c12e14da405727a906d3e419de0a1d7201897
37279a0ac59daab785f1d1583851eb3f5dad30e1
/workflow/oer_analysis/oer_scaling/oer_scaling.py
4e2df538b6004a0966af53cec1e2bb3ef03c7538
[ "MIT" ]
permissive
flash-jaehyun/PROJ_IrOx_OER
50269e34f428e4c54b34afe3e07aae77e6ff82fc
e0b3ef8e69deeb41d62059a92f466477238efbed
refs/heads/master
2023-02-09T05:45:11.969160
2020-12-30T23:18:54
2020-12-30T23:18:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,594
py
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.4.2 # kernelspec: # display_name: Python [conda env:PROJ_irox_oer] * # language: python # ...
d0be707b6b95674e7a55339a7774568045b2a525
6a7058009587e78b5c758ff783410325ad7c2a4b
/educative/slidingWindow/non_repeat_substring.py
2883b8e112151f20e144a97d63367dc9680d312d
[ "Apache-2.0" ]
permissive
stacykutyepov/python-cp-cheatsheet
8b96b76403c501f5579befd07b3c4a4c69fe914e
a00a57e1b36433648d1cace331e15ff276cef189
refs/heads/master
2023-07-16T13:26:35.130763
2021-08-30T11:23:39
2021-08-30T11:23:39
401,442,535
2
0
null
null
null
null
UTF-8
Python
false
false
537
py
""" time: 13 min errors: none! """ def non_repeat_substring(str): maxLen, i = 0, 0 ht = {} for i, c in enumerate(str): if c in ht: maxLen = max(maxLen, len(ht)) ht.clear() ht[c] = True maxLen = max(len(ht), maxLen) return maxLen def main(): print("Length of the longest substring...
9610d71e683b7cf6ba117adf541c9de69f52aee6
7b5828edda7751700ca7002b40a214e39e5f48a8
/EA/core/sims4/gsi/command_buffer.py
e1301ea4581704ced936304f7533eab0b6fbd36f
[]
no_license
daniela-venuta/Sims-4-Python-Script-Workspace
54c33dac02f84daed66f46b7307f222fede0fa62
f408b28fb34626b2e3b2953152343d591a328d66
refs/heads/main
2023-03-29T18:08:39.202803
2021-03-30T19:00:42
2021-03-30T19:00:42
353,111,243
1
0
null
null
null
null
UTF-8
Python
false
false
2,504
py
import collections try: import threading _threading_enabled = True except ImportError: import dummy_threading as threading _threading_enabled = False import sims4.commands import sims4.log import sims4.service_manager logger = sims4.log.Logger('GSI') _Command = collections.namedtuple('_Command', ('...
309cd04173b4d096eb7b590ed67fc399ef2c0877
cf668ede675f5b5a49912e8ca2170b5d5dba85c3
/FullDesign/LsRand_OnlyTau_4.py
3d9e3b41a25a22b071485ba0d01de3c81c709d52
[]
no_license
amemil/MasterThesisRaw
b6c97a671e740871be541539384192684f5f1966
bb357481cc47ef3a2b241f4b1df85fd0a4ff1de0
refs/heads/main
2023-06-09T22:49:06.082380
2021-06-25T09:38:20
2021-06-25T09:38:20
327,104,381
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 12 19:29:28 2021 @author: emilam """ import sys, os import numpy as np sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) import UtilitiesMaster as ut s1init1 = np.load('s1init_16.npy') s2init1 = np.load('s2init_16.npy')...
9eb21a225d99d72d993744068321b270fe85c8e0
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/mysql_forwarding.py
1bd1a82ee4f076d2f13ebb0d6b9e7b5b2c2a94ed
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
8,910
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class MysqlForwarding: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute na...
a7a8a4fc6a4d8860a7cbcf0990e903217b21bb30
fd40d6375ddae5c8613004a411341f0c984e80d5
/src/visions/core/implementations/types/visions_datetime.py
f8a11f0c6b5bf06f1ed01080801bdba0c704c5d0
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
ieaves/tenzing
93c3353e62621c90adefc5a174a2dcde9aacbc46
92d39c1c3a5633d8074e0ffe8c2687c465aebbc8
refs/heads/master
2020-04-25T07:14:31.388737
2020-01-07T02:51:13
2020-01-07T02:51:13
172,608,080
0
0
null
null
null
null
UTF-8
Python
false
false
1,360
py
import pandas.api.types as pdt import pandas as pd from typing import Sequence from visions.core.model.relations import ( IdentityRelation, InferenceRelation, TypeRelation, ) from visions.core.model.type import VisionsBaseType from visions.core.implementations.types import visions_string from visions.utils...
045849a6dcf37e6dfd8deaa91796aebe1f3f2334
c6609c161df66949656ca91d8a3d9f4d27a4c399
/rates_project_04122021/rates_client/rates_client/rate_client.py
71771ba20ad4886144213eb414be5cd5d7451817
[ "MIT" ]
permissive
t4d-classes/advanced-python_04122021
b93ea38c5b35af2b1eb06bc1d5fe6d3f0c1cf39f
07b27aea8ac3c7170eb66d5243c5cd841f41322c
refs/heads/master
2023-04-11T11:45:18.114381
2021-04-20T12:36:04
2021-04-20T12:36:04
357,016,025
0
0
null
null
null
null
UTF-8
Python
false
false
1,063
py
""" rate client module """ import socket import sys import pathlib import yaml from rates_shared.utils import read_config def main() -> None: """Main Function""" try: config = read_config() host = config["server"]["host"] port = int(config["server"]["port"]) with socket.soc...
f9ed10bc581a959ecacc6f7e395dd6fef7ea68b0
016f96e528141db111f15a4c00a0fc46e61cdff6
/lib/emailses/urls.py
5fb0d6077dd92bf4cd7ecabb113f5b0498156de9
[ "BSD-2-Clause" ]
permissive
hdknr/emailqueue
3d02407b06a492cdf9b89fde2b06c766cd500555
05e108562f4fb612440f769973b9a3d02c11afcd
refs/heads/master
2021-01-23T20:13:04.807258
2015-10-08T08:41:51
2015-10-08T08:41:51
20,243,165
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
from django.conf.urls import url import views urlpatterns = [ url(r'(?P<topic>.+)', views.notify, name='emailses_notify'), ]
193e2e78f289aa1bb05e4b344b5c7d17b61c984e
6b0161214e4db57a81d3b4432d82c874c7106f13
/couchbase/_pyport.py
20700a813860e5ed162b08ac93b31aa54775c92d
[ "Apache-2.0" ]
permissive
neilalbrock/couchbase-python-client
de9d6115d1240f56f4cb7b57aee7e8765c5c7d1f
95789e3d49c42613fe719bbd02e6d9ad30216334
refs/heads/master
2021-01-15T18:51:31.311163
2013-10-14T13:58:28
2013-10-14T13:58:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
# # Copyright 2013, Couchbase, Inc. # All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
219d2f333e3269a900b48b27c08cc48a24363b80
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02707/s167454120.py
27b53e15e36617817a3cd3b043a523410132faad
[]
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
115
py
import math n = int(input()) c= [0]*n s = map(int,input().split()) for i in s: c[i-1]+=1 for i in c: print(i)
9cfda2d3b33fe057ffac602c8a45eb41a9ec05e5
adea9fc9697f5201f4cb215571025b0493e96b25
/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/afi_safi/af/segment_routing/prefix_sids/prefix_sid/config/__init__.py
2c88a90da723c84456e7fd1bc37de0086e2d37c7
[ "Apache-2.0" ]
permissive
andyjsharp/napalm-yang
d8a8b51896ef7c6490f011fe265db46f63f54248
ef80ebbfb50e188f09486380c88b058db673c896
refs/heads/develop
2021-09-09T02:09:36.151629
2018-03-08T22:44:04
2018-03-08T22:44:04
114,273,455
0
0
null
2018-03-08T22:44:05
2017-12-14T16:33:35
Python
UTF-8
Python
false
false
34,558
py
from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListType from pyangbind.lib.y...
e83b9d3c0be7a33e00b85393338fd4d1bb2d0e8d
cbc7ca332ff4cb8c98cb9eb37af654ee63297802
/torch/_C/_distributed_c10d.pyi
1cbf030e4afedebc674b36fe035faa072792c35e
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
yfzheng11/pytorch
307ebedbf6c5f23ed49584cf9536e47cff0a3ab0
1aa14fcb14dd1ecc8382f747de6f2070d929ed02
refs/heads/master
2023-05-26T14:07:05.459920
2021-06-03T20:28:45
2021-06-03T20:30:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,379
pyi
from datetime import timedelta from enum import Enum from typing import Optional, List, Any, Tuple, overload from torch import Tensor # This module is defined in torch/csrc/distributed/c10d/init.cpp _DEFAULT_FIRST_BUCKET_BYTES: int _DEFAULT_NO_TIMEOUT: timedelta _DEFAULT_PG_TIMEOUT: timedelta class BuiltinCommHookT...
2f0c54950c0ab91c97cc12a6797f81d91b85ec0b
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa3/sample/stmt_for_str_same_var-9.py
f87144cd7e69039ad5482181a2f622e922dcd6a8
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
x:str = $STRING for x in x: print(x)
6c6e0e149c60270d3573a57dfa2fd3aa115c5361
e1fe1ed4f2ba8ab0146ce7c08d65bc7947150fc8
/credit11315/spiders/no_redis_detail_info_scrapy.py
3fb233a4bbd3603929edc4969dbae24a6847b673
[]
no_license
yidun55/credit11315
0d88ceef314efa444de58eb5da8939c1acff3abe
b048ec9db036a382287d5faacb9490ccbf50735c
refs/heads/master
2021-01-20T01:03:30.617914
2015-07-31T09:58:24
2015-07-31T09:58:24
38,853,611
0
1
null
null
null
null
UTF-8
Python
false
false
5,621
py
#!usr/bin/env python #coding: utf-8 """ 从11315全国企业征信系统http://www.11315.com/上 爬取企业信息 """ from scrapy.spider import Spider from scrapy.http import Request from scrapy import log from scrapy import signals from scrapy import Selector from scrapy.exceptions import DontCloseSpider import sys from credit11315.items import *...
dd755e188ecdc91d717143c7321fa6eaf8bdb91a
99dcb18a9e3ea367272f740b8cbf3c34285a0c08
/.sample_configs/param_handlers/cancel_data_labeling_job_sample.py
b11a0a22ff20d8c981aefa487bf8a6a00db46715
[ "Apache-2.0" ]
permissive
googleapis/python-aiplatform
926a4873f35dbea15b2fd86c0e16b5e6556d803e
76b95b92c1d3b87c72d754d8c02b1bca652b9a27
refs/heads/main
2023-08-19T23:49:02.180075
2023-08-19T13:25:59
2023-08-19T13:27:27
298,017,988
418
240
Apache-2.0
2023-09-14T21:08:33
2020-09-23T15:43:39
Python
UTF-8
Python
false
false
716
py
# 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 agreed to in writing, s...
f36e4bac20c903f91a082d88b22b765caafeac35
a708f1d36586d2b01c99f2cb44aa4612b10192f6
/周赛/week183/5376非递增顺序.py
eb36dbf409919c8981dd21302f726a93af63edc0
[]
no_license
LeopoldACC/Algorithm
2477e8a371e9cdc5a47b582ca2a454539b96071e
fc1b0bec0e28d31e9a6ff722b3a66eacb0278148
refs/heads/master
2023-01-25T02:28:14.422447
2020-12-03T15:01:10
2020-12-03T15:01:10
197,297,197
2
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
class Solution:###最终版 def minSubsequence(self, nums): nums = sorted(nums) prefix_sum = nums[:] for i in range(len(nums)-2,-1,-1): prefix_sum[i]+=prefix_sum[i+1] index = -1 for i in range(len(nums)-1,-1,-1): if prefix_sum[i]>prefix_sum[0]//2: ...
499a03357c8ae0101e94a0ea850bdfd693fd861f
77fc5af96da1d461c86c7f9668b64b99ca04a1b6
/codes/montecarlo.py
32c0ce13aa246aa42786f17cd7c0371a3c56965c
[]
no_license
rene-d/edupython
5b6bc8ddb5eb8ec896ee70fb961d4e689af1075a
1261d0c7aae17bb2d4ff3370860768b73ba4172d
refs/heads/master
2020-11-24T10:07:18.504472
2019-12-21T21:03:08
2019-12-21T21:03:08
228,099,675
0
0
null
null
null
null
UTF-8
Python
false
false
924
py
# Découpe d'un carré en 3 zones # https://edupython.tuxfamily.org/sources/view.php?code=montecarlo # Les zones sont les domaines du plan délimitées par les courbes # des fonctions carré et racine carrée, à l'intérieur du carré unité, # dans un repère orthonormal. # Les aires sont obtenues par la méthode de Monte Carlo...
80f832455983b37492aabb45c118bac2cd8e5ae4
e49f2251e07a70c943b70bbae27c439631a31552
/tfx/components/model_validator/component.py
d6bc178a4182f17e0e083067fa3c9cd3df96c6b5
[ "Apache-2.0" ]
permissive
hephaex/tfx
eac03c1ab670368088ec2a49af28ff374dc95c4a
76d8731cb54be3451e10d270d8bcb0589401135f
refs/heads/master
2020-09-16T11:52:06.198631
2019-11-23T21:01:50
2019-11-23T21:45:46
223,760,941
1
0
Apache-2.0
2019-11-24T14:53:08
2019-11-24T14:53:08
null
UTF-8
Python
false
false
4,026
py
# Lint as: python2, python3 # Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
02275546e99d17fd7465ff2cbf3e4eacf57003e3
a64757759a7170478ad3e9c71429c484491426be
/autoconv.py
85e7b1b45b29a9ad766ab17c57193b68b5453c93
[]
no_license
fy0/autoconv
940928810bcda472bf401c14c2452ef64359fd9c
1073934a0d03eba5e5192ffb583629308ff74d13
refs/heads/master
2021-07-01T01:30:25.249292
2017-09-18T08:11:57
2017-09-18T08:11:57
103,892,929
1
1
null
null
null
null
UTF-8
Python
false
false
2,704
py
""" { "global": { "encoder": "opusenc.exe", "input_dir": "input", "output_dir": "output", "watch_ext": [".wav"], "output_ext": ".opus" }, "types": { "music": { "--title": "track title" } } } """ import os import json import time impor...
73a032a0612a77d65c7a07200994e83c69f92ce3
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2751486_0/Python/TheTaintedOne/solution.py
746f30c4b1aac93a50dee4c7e781e4c5746595eb
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,092
py
import sys lines = sys.stdin.readlines() ntests = int(lines[0]) vowels = set(["a", "e", "i", "o", "u"]) linenum = 1; for c in xrange(0, ntests): name, csize = lines[linenum].split() csize = int(csize) # print "[" + name + "]" # print start_size, num_others cons = []; for cc in name: ...
be22c1e11ed28eafca08cf5bcfe0da6b20b66836
7c13de6b7831f99b8790452e03953e5ded0aca64
/classy_vision/generic/distributed_util.py
ec5211f4123496d80e7c9396eef6df0d0e8b1338
[ "MIT" ]
permissive
vreis/ClassyVision-2
3f99d3c06ec422e81e29b0f38f02a7ce56e480d6
80aa4d421d1203b4b92bb9b848ccc866816e4f6d
refs/heads/master
2021-07-15T18:03:14.212417
2019-12-06T16:48:19
2019-12-06T16:50:46
226,377,934
0
0
MIT
2019-12-06T17:27:46
2019-12-06T17:27:45
null
UTF-8
Python
false
false
5,284
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch # Default to GPU 0 _cuda_device_index: int = 0 # Setting _cuda_device_index to -1 internally implies th...
b34e8eb425d1099c4b4358e74814477818dfc003
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/vulkan-deps/vulkan-validation-layers/src/scripts/common_ci.py
88e5f1af7cda75fbf03793a27e6bf5f32ce53c52
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later", "BSD-3-Clause" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
Python
false
false
10,787
py
#!/usr/bin/python3 -i # # Copyright (c) 2015-2017, 2019-2023 The Khronos Group Inc. # Copyright (c) 2015-2017, 2019-2023 Valve Corporation # Copyright (c) 2015-2017, 2019-2023 LunarG, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licen...
c8d58bad12f2d00dbaaa0a198b391fe827e89ccc
79a60fa1daeaa9dbe0cb551423fe28c2f2cf7da3
/websocket/bottle/mqttwsweb.py
a0e1c343be062aba3efa12502005552a8a3d9e11
[ "MIT" ]
permissive
swkim01/mqtt
a505494815cd5f487cbc1e434fd0546c1bc08eac
030d9106bf791b54538aac8789df872abaa96e17
refs/heads/master
2021-01-10T22:07:04.788958
2019-07-19T01:41:07
2019-07-19T01:41:07
42,844,241
5
2
null
null
null
null
UTF-8
Python
false
false
499
py
#-*- coding: utf-8 -*- from bottle import route, get, request, template, response, static_file from bottle import run #import json host="<HOST IP>" port=8008 wsport=9001 @route('/mqttws31.js') def mqttws31(): return static_file("mqttws31.js", root=".") @get('/mqttwschart') def dht22chart(): return template("...
80bfdaf5259b84ac700aab294d7db8d5372259c3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02546/s914300427.py
3dad5d294d902104d5bf9e91b64a4bd3c9b6633e
[]
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
71
py
S = input() if(S[-1] == "s"): S += "es" else: S += "s" print(S)
d95e8925cc8de16faad7f38369d751625be57b1b
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/pkgs/networkx-1.11-py27_0/lib/python2.7/site-packages/networkx/algorithms/centrality/betweenness.py
b8c2b125f647b1c691d87810ce7eb454c7f0ab78
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
11,680
py
# coding=utf8 """ Betweenness centrality measures. """ # Copyright (C) 2004-2015 by # Aric Hagberg <[email protected]> # Dan Schult <[email protected]> # Pieter Swart <[email protected]> # All rights reserved. # BSD license. from heapq import heappush, heappop from itertools import count import networkx...
5961d295b23abd4a5c1995b3f10bf6ccb333c741
44600adf1731a449ff2dd5c84ce92c7f8b567fa4
/colour_down/adaptation/fairchild1990.py
4ce1a10481213f117c2508f1c43f594b728df699
[]
no_license
ajun73/Work_Code
b6a3581c5be4ccde93bd4632d8aaaa9ecc782b43
017d12361f7f9419d4b45b23ed81f9856278e849
refs/heads/master
2020-04-11T23:16:43.994397
2019-12-28T07:48:44
2019-12-28T07:48:44
162,161,852
0
1
null
null
null
null
UTF-8
Python
false
false
7,432
py
# -*- coding: utf-8 -*- """ Fairchild (1990) Chromatic Adaptation Model =========================================== Defines *Fairchild (1990)* chromatic adaptation model objects: - :func:`colour.adaptation.chromatic_adaptation_Fairchild1990` See Also -------- `Fairchild (1990) Chromatic Adaptation Model Jupyter No...
68e3dbcc684161b2f8d32f752aaad8f778937993
9f6b9a40444df2b09960b5b531232ee6975e74dd
/level_1.py
13d4ca664e2d9291979dc351d30188b94817ea48
[]
no_license
nildiert/hodor
f60e94f4a64b8b0217c760104f501a6a586d4129
3c8b2df854ed2af6c5345250bc8f557b52761aee
refs/heads/master
2020-06-02T06:19:44.740188
2019-06-10T02:59:23
2019-06-10T02:59:23
191,067,129
0
0
null
null
null
null
UTF-8
Python
false
false
751
py
from lxml import html import requests import time def req_values(url): page = requests.get(url) tree = html.fromstring(page.content) me = tree.xpath(next_val) return ([page, tree, me]) try: url = 'http://158.69.76.135/level1.php' data = {'id':'730','holdthedoor':'submit'} next_val = '//td[...
2da7f4194e18775060afca1bfc1dcd85d1009570
3411ad233c411c06765f4b07f8670c12025178b6
/201-300/231-240/237-deleteNodeInLinkedList/deleteNodeInLinkedList.py
9b19cef457feb64cb67a51b92b91f733e6ae73ed
[ "MIT" ]
permissive
xuychen/Leetcode
7d9d31fed898ce58440f5ae6665d2ccaf1a4b256
c8bf33af30569177c5276ffcd72a8d93ba4c402a
refs/heads/master
2021-11-19T20:39:43.741589
2021-10-24T16:26:52
2021-10-24T16:26:52
140,212,398
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def deleteNode(self, node): """ :type node: ListNode :rtype: void Do not return anything, modify node in-place instead. ...
b0c14efa30aa6296d714f88a56de72b29a3cb346
821d830910c354cb89767a77e00c77deb592ca0c
/bayesnet/math/__init__.py
a7e1743bd4c1a5cdfed8a8de29633ed4e5c1f037
[ "MIT" ]
permissive
zxsted/BayesianNetwork
c61aa77a511e96852dec38f268f0dc31b6752cac
efe75b5416a262741fa60ad09380684886e91eff
refs/heads/master
2021-05-09T05:38:43.513255
2017-10-25T06:58:26
2017-10-25T06:58:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,193
py
from bayesnet.math.add import add from bayesnet.math.divide import divide, rdivide from bayesnet.math.exp import exp from bayesnet.math.log import log from bayesnet.math.matmul import matmul, rmatmul from bayesnet.math.mean import mean from bayesnet.math.multiply import multiply from bayesnet.math.negative import negat...
3317db01ff8d0d5eff65cd314197024a8f717d5c
cc196a0111bbdcc04af7e579bc87e808cc0c7b02
/trident/__init__.py
880dacc18d173da5184a33655707722ed4ae11ab
[ "MIT" ]
permissive
Jackliaoall-AI-Framework/trident
73819a95121d9d4dbf81d28ae32aea43c0541840
cd26c1108c05c3ab4c262f9b416a126b2ad2f858
refs/heads/master
2023-01-15T15:15:10.544946
2020-11-23T04:15:33
2020-11-23T04:15:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
"""trident api""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys from importlib import reload from sys import stderr defaultencoding = 'utf-8' if sys.getdefaultencoding() != defaultencoding: reload(sys) sys.setdefaultencoding(defaultencod...
49387a3cdc6c6e23837c5436d99d317dbd2554eb
40b262d813d07a113914d6009af8737898f2e096
/Platos test/apps/schedules/migrations/0001_initial.py
8cf8f0fa053f62e70fdc4f248d417b5c4d27999c
[]
no_license
Nish8192/Python
cb6de3b96e790464a0a4ad10eda86ce4f79688b4
5c03beff6f3669d5cfb6b31c5749827db8b6a627
refs/heads/master
2020-12-23T16:56:18.301723
2017-05-27T02:09:02
2017-05-27T02:09:02
92,563,061
0
0
null
null
null
null
UTF-8
Python
false
false
3,560
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-28 22:44 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('login_register', '0001_initial'), ]...
5b16d88b43724df85472827ca9a1de35f189620b
6ed48bf3c72e61fe53144a3545ab305112c93501
/appengine/findit/handlers/test/help_triage_test.py
ef11561424031e1e74e5d088f7422bb54953dd08
[ "BSD-3-Clause" ]
permissive
eunchong/infra
ee5f7a9379977de8c814f90dbba3f6adbf06a75c
ce3728559112bfb3e8b32137eada517aec6d22f9
refs/heads/master
2022-11-27T06:26:57.415805
2016-04-08T12:34:36
2016-04-08T12:34:36
55,699,880
0
0
null
null
null
null
UTF-8
Python
false
false
10,341
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 json import os import webapp2 from testing_utils import testing from common.git_repository import GitRepository from handlers import help_triage fro...
ee615403c191a3bc00a63b9ac501349fe54af94f
dec29f40788478f73798f23b79ca892b3121150a
/apps/core/forms.py
2dea5904ea3b9ecfd5b3ba08032c83908459e911
[]
no_license
RonaldTheodoro/django-ecommerce
2c661e6f3ae0154ecb7a8e25183875da8c27d14f
9097049107e5a7ab52474aa89fe40f02689fb24a
refs/heads/master
2021-05-06T02:08:51.166682
2017-12-17T00:32:03
2017-12-17T00:32:03
114,499,259
0
0
null
null
null
null
UTF-8
Python
false
false
520
py
from django import forms class ContactForm(forms.Form): fullname = forms.CharField( widget=forms.TextInput( attrs={'class': 'form-control', 'placeholder': 'Your full name'} ) ) email = forms.EmailField( widget=forms.EmailInput( attrs={'class': 'form-control'...
d3977fe8da468335955c73585ad4373f968ec62b
52e8841ac9603e994fc487ecb52f232e55a50e07
/Bio/HMM/Utilities.py
17db3f4ed0ad626cb1de97b7c921f6692d2f4f6b
[]
no_license
rored/RozszerzenieBio.PDB
aff434fddfe57199a7465f79126eba62b1c789ae
7c9d696faacabff912b1263fe19291d6a198c3c2
refs/heads/master
2021-01-21T04:50:37.903227
2016-06-23T19:15:42
2016-06-23T19:15:42
55,064,794
0
3
null
null
null
null
UTF-8
Python
false
false
2,209
py
# This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # """Generic functions which are useful for working with HMMs. This just collects general functions which you might like to use in dealing with HMMs. ...
7633f6f9cb7e06d32f07fd0f6c3f93f846667e26
c128d73f1d988686e3e7377520d7475ae59d8016
/test/cmd2.py
674d0464539f09de007c6d8e163e51833f2b15f4
[]
no_license
astroumd/SSINGMA
a9aba4aea0d0bf799643ebd7064b222b5c801894
044923b6e036d3679e88839593244b834e8e2d09
refs/heads/master
2021-07-01T12:48:08.520640
2019-03-22T01:50:29
2019-03-22T01:50:29
107,312,765
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
# # example command line parser usage - functional approach with keyword database # # casa -c cmd2.py a=100 'c=[100,200]' script_keywords = { 'a' : 1, 'b' : 2.0, 'c' : [1,2,3], } import sys ng_initkeys(script_keywords,sys.argv) a = ng_getkey('a') b = ng_getkey('b') c = ng_getke...
023cbe9820c1c4c54c9a10bd34d54c0cd287a76a
30e58b930c31526a1e226a928bc77e23f232080e
/icesim/dataCheck.py
7152527a7b7c93513f0deaa3399d7c90caf5dd22
[]
no_license
bbw7561135/anisotropy
c8688f9d705234c6a90f607acb3e8cc28ea5be28
a21f85788c16d8aa14fc5934f476def4c8954f34
refs/heads/master
2021-06-01T05:35:48.727845
2016-05-13T00:27:37
2016-05-13T00:27:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
770
py
#!/usr/bin/env python from icecube import icetray, dataio from I3Tray import * import sys, time, glob, os import numpy as np def fileCheck(fileName): t0 = time.time() tray = I3Tray() tray.AddModule('I3Reader', FileName=fileName) tray.Execute() tray.Finish() print "Time taken: ", time.time...
34f96a0617099afd0d7f6f2da75c52d59c91696c
3474b315da3cc5cb3f7823f19a18b63a8da6a526
/scratch/KRAMS/src/ibvpy/core/i_bcond.py
724c3af30b2cc5336fb60d2c0bd2d4c98c37a380
[]
no_license
h4ck3rm1k3/scratch
8df97462f696bc2be00f1e58232e1cd915f0fafd
0a114a41b0d1e9b2d68dbe7af7cf34db11512539
refs/heads/master
2021-01-21T15:31:38.718039
2013-09-19T10:48:24
2013-09-19T10:48:24
29,173,525
0
0
null
2015-01-13T04:58:57
2015-01-13T04:58:56
null
UTF-8
Python
false
false
1,522
py
from enthought.traits.api import Array, Bool, Enum, Float, HasTraits, \ Instance, Int, Trait, Str, Enum, \ Callable, List, TraitDict, Any, Range, \ Delegate, Event, on_trait_change, Button, \ ...
[ "Axel@Axel-Pc" ]
Axel@Axel-Pc
dfa897d3f257e32121c709f43bebd0d52f22631a
f032cbec4f03d8c163609d4c5144b38952b2cbe9
/other/6_text_similarity/generic_process_corpus_gui.py
db1ee724f3ecd42c5669ccbac714535b829a2eae
[]
no_license
humlab/the_culture_of_international_relations
f12a604421debcc90996d98b8cccff6633615ffc
4440753d396c88dc5902e85e4c7e38ef8aadcefd
refs/heads/master
2022-11-13T14:05:01.373504
2022-11-01T16:30:16
2022-11-01T16:30:16
90,034,896
3
3
null
2021-09-06T08:08:06
2017-05-02T13:11:09
Jupyter Notebook
UTF-8
Python
false
false
8,967
py
import types import ipywidgets as widgets import textacy_corpus_utility as textacy_utility import common.utility as utility logger = utility.getLogger('corpus_text_analysis') def process_corpus(corpus, terms_opts, process_function, process_opts): def get_merged_words(scores, low, high): ws = set([]) ...
60498b2a36b3b029e68117c353e9d62505294008
9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d
/python/uline/uline/uline/handlers/app/official/operations/form.py
54954fb7a2dabc703be3fa1e80e3641216ebec7a
[]
no_license
apollowesley/Demo
f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8
471c4af95d3a7222d6933afc571a8e52e8fe4aee
refs/heads/master
2021-02-15T04:01:51.590697
2018-01-29T01:44:29
2018-01-29T01:44:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
526
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from wtforms import validators, fields from uline.utils.form import BaseForm class MessageSendSearch(BaseForm): create_at = fields.DateTimeField(validators=[validators.Optional()]) message_content = fields.StringField(validators=[validators.Optional()]) sende...
87fcbdd19d932c6379de0cd46fd9d4a1f81b1b85
47ce68e1ff970318fd31ac43405d0e1fa3594bf6
/Models/Autoencoders/TransposeConvAutoencoderDeepExtraLLR.py
281d1a5861b11b1efe478d6108fd1c7b3310b5eb
[ "BSD-3-Clause" ]
permissive
Midoriii/Anomaly_Detection_Diploma
7196da379f8aefbd4546ca23e8303d1829e059fb
11145e3e5210a4e45a33d98b138213edb7bc5d3d
refs/heads/master
2023-03-25T20:42:56.961210
2021-03-14T01:13:39
2021-03-14T01:13:39
261,205,472
0
0
null
null
null
null
UTF-8
Python
false
false
3,910
py
''' Copyright (c) 2021, Štěpán Beneš Convolutional Autoencoder with learnable Conv2DTranspose layers, especially deep, the encoding is really small With even further decreased learning rate ''' import numpy as np from Models.Autoencoders.BaseModel import BaseModel from keras.layers import Input, Reshape, Dense, Flat...
d522119641e45ea7f443f1458d207a02f08aa4b8
afc8d5a9b1c2dd476ea59a7211b455732806fdfd
/Configurations/ControlRegions/WgS/Full2016/plot.py
ae45e9fd7f7af563855309ae7753825d3ffa7ccb
[]
no_license
latinos/PlotsConfigurations
6d88a5ad828dde4a7f45c68765081ed182fcda21
02417839021e2112e740607b0fb78e09b58c930f
refs/heads/master
2023-08-18T20:39:31.954943
2023-08-18T09:23:34
2023-08-18T09:23:34
39,819,875
10
63
null
2023-08-10T14:08:04
2015-07-28T07:36:50
Python
UTF-8
Python
false
false
10,880
py
# plot configuration # groupPlot = {} # # Groups of samples to improve the plots. # If not defined, normal plots is used # groupPlot['DY'] = { 'nameHR' : "DY", 'isSignal' : 0, 'color': 418, # kGreen+2 'samples' : ['DY'] } ...
3878130f0f9cf98c52c5c9089cbe81841cf7040e
20149c63930ebb2a950e45a7fafa12a17712695c
/ImageProcessing/camera.py
914751cb174bbbf7236d7c86bdf4630599682c6b
[]
no_license
junyi1997/Final_OIT_projet
ffe7f1a1c61f8124ab72d5250e30c1e2cc49c1ab
98fc039378021c6db259dbe79d7980750aa91710
refs/heads/master
2023-01-03T05:24:31.133416
2020-11-01T14:12:15
2020-11-01T14:12:15
201,788,832
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
import picamera initialized = False class Camera: camera = None def __init__(self): self.camera = picamera.PiCamera() def takePhoto(self, filepath): """ Takes a photo and saves it to the /img directory. """ self.camera.capture(filepath) def getPiCamera(self): return self.camera
9c68e91c36a93581f62c5d46e522b9bb8b7c38bb
35f1d3ab93b5de8ed83f7dce534505a2b8b2217b
/backend/new_app_18938/settings.py
4070cff46d149ab3cd53e54c5017494947f10cbd
[]
no_license
crowdbotics-apps/new-app-18938
5b01023da26e48735720ce0ded6bb74bed26ec28
ba2ad11b6820b7561b818d3b7e13875331e03fe9
refs/heads/master
2022-11-16T00:31:11.211998
2020-07-16T16:36:10
2020-07-16T16:36:10
280,161,661
0
0
null
null
null
null
UTF-8
Python
false
false
5,791
py
""" Django settings for new_app_18938 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...
44da06eb51574b41af6813f5e6252a5a2750e648
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03767/s866081759.py
cf66b2ce220f7faa16d298b3290bd992eb740c88
[]
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
187
py
import collections n = int(input()) *a, = map(int, input().split()) a.sort() a = collections.deque(a) ans = 0 while n: a.popleft() a.pop() ans += a.pop() n -= 1 print(ans)
fd2299064cdb5b26bd595348ca1902f794c5e968
66c68ab7a6b62c4a94ddf4cdda64dc7f2181f6f7
/samples/crater/crater.py
4c20dc702a93465e1b15bd734aff41608960e0f7
[ "MIT" ]
permissive
ZhiangChen/Mask_RCNN
bfaeebbc32bdd2eef40f77ffe385437c6d9e60e0
040611909c140a98ab09ae09b511ce2a47b5f195
refs/heads/master
2020-03-27T10:04:52.300122
2019-02-25T00:42:17
2019-02-25T00:42:17
146,393,525
1
0
null
2018-08-28T04:51:42
2018-08-28T04:51:42
null
UTF-8
Python
false
false
4,235
py
""" classes for lunar crater dataset Zhiang Chen Sep 13, 2018 [email protected] """ import os import sys import numpy as np import skimage.draw import pickle import argparse import matplotlib.pyplot as plt from mrcnn import visualize from mrcnn.config import Config from mrcnn import model as modellib, utils ROOT_DIR = os....
31e431da6f3792207879669b3ab90c80a53e57f4
1bb42bac177fb4e979faa441363c27cb636a43aa
/generalization/synthesization/cifar_synthesis.py
988e89282aea8d759288af356198101494572410
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
google-research/federated
a6040e80fa0fbf533e0d665c66a9bc549d208b3d
329e60fa56b87f691303638ceb9dfa1fc5083953
refs/heads/master
2023-08-28T13:10:10.885505
2023-08-22T23:06:08
2023-08-22T23:06:40
295,559,343
595
187
Apache-2.0
2022-05-12T08:42:53
2020-09-14T23:09:07
Python
UTF-8
Python
false
false
11,222
py
# Copyright 2021, 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 writing...
1c839c157f06ac377b799639d8ae03cc25682b58
4235ae775f1061217504ea027ef32b533e8dea34
/0x04-pagination/0-simple_helper_function.py
83390a8b4302c52fe4e99a7266d5e60bc08eb3e8
[]
no_license
Leidysalda/holbertonschool-web_back_end
892cda3361a5fc18693f645b5b8f058087f6b9fd
0b8bd14fa018d9480fd31cf300dad2a3ccd439d0
refs/heads/master
2023-08-23T18:19:17.226745
2021-10-18T05:26:30
2021-10-18T05:26:30
387,662,848
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
#!/usr/bin/env python3 """Simple helper function """ def index_range(page: int, page_size: int) -> tuple: """Index range""" return (page - 1) * page_size, page * page_size
43ae88a0b1629e2e7b1ee73877ac8e03e6ad97a0
107ebb6d25812d12718d3f0731770318fb0eb2d2
/study_code/Day_15/15展示表格Tree.py
d67b5c4e5773f4cf666b250e592e4924b4ca87ae
[]
no_license
taoranzhishang/Python_codes_for_learning
0c5fa25a5da80e5cbca8cf0b9b3703d488e1af6f
23d12b8c7524f3672ff3baed94dbfed04df821b5
refs/heads/master
2023-03-09T12:16:02.749807
2021-02-26T13:04:08
2021-02-26T13:04:08
315,070,954
1
0
null
null
null
null
UTF-8
Python
false
false
661
py
import tkinter from tkinter import ttk win = tkinter.Tk() tree = ttk.Treeview(win) # 显示表格或树 tree["columns"] = ("Name", "Age", "Height") tree.column("Name", width=100) # 表示列,不显示 tree.column("Age", width=100) tree.column("Height", width=100) tree.heading("Name", text="姓名") # 表头 tree.heading("Age", text="年龄") tree....
31b99f77c0ae6772cfdef2260dad07ec24ebc40a
e77a7cc1ed343a85662f0ad3c448a350ab776261
/data_structures/array/dutch_flag_problem.py
f898486c9edeca6b8bfaf519c0fddcb52c4d54b5
[ "MIT" ]
permissive
M4cs/python-ds
9dcecab10291be6a274130c42450319dc112ac46
434c127ea4c49eb8d6bf65c71ff6ee10361d994e
refs/heads/master
2020-08-10T03:40:22.340529
2019-10-10T17:52:28
2019-10-10T17:52:28
214,247,733
2
0
MIT
2019-10-10T17:43:31
2019-10-10T17:43:30
null
UTF-8
Python
false
false
446
py
def dutch(arr): low = 0 mid = 0 high = len(arr) - 1 while mid <= high: if arr[mid] == 0: arr[low], arr[mid] = arr[mid], arr[low] low += 1 mid += 1 elif arr[mid] == 1: mid += 1 else: arr[mid], arr[high] = arr[high], arr[m...
905bd2fa91b8f2f596253a2ea0da0afae3162704
73c5bc071e496b67677c55dfb9cd8621eac1f34e
/probabilistic_utils/gmm_utils.py
2887862615fb3b85f7da7651fe0e1736afc1d27f
[]
no_license
salt-fly/unsup_temp_embed
55324ffba7b2858ff3c255f2a984d0253ea23dfb
be7fa1fdfb4466673e3d6953924194cdead281a5
refs/heads/master
2020-05-30T19:33:51.311017
2019-04-29T18:07:33
2019-04-29T18:07:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,763
py
#!/usr/bin/env python """ """ __author__ = 'Anna Kukleva' __date__ = 'September 2018' import numpy as np from utils.arg_pars import opt from utils.logging_setup import logger class AuxiliaryGMM: def __init__(self): self.means_ = [0] self.covariances_ = [0] def score_samples(self, features...
a8dc4dd41c5abc7755f49846ffa67574433c31ea
2f2e9cd97d65751757ae0a92e8bb882f3cbc5b5b
/287.寻找重复数.py
e810ef03eb114a003fdd86c50269732634088bba
[]
no_license
mqinbin/python_leetcode
77f0a75eb29f8d2f9a789958e0120a7df4d0d0d3
73e0c81867f38fdf4051d8f58d0d3dc245be081e
refs/heads/main
2023-03-10T18:27:36.421262
2021-02-25T07:24:10
2021-02-25T07:24:10
314,410,703
0
0
null
null
null
null
UTF-8
Python
false
false
1,150
py
# # @lc app=leetcode.cn id=287 lang=python3 # # [287] 寻找重复数 # # @lc code=start class Solution: # def findDuplicate(self, nums: List[int]) -> int: def findDuplicate(self, nums: List[int]) -> int: '''快慢指针''' slow = fast = 0 while True: slow = nums[slow] fast = nu...
171e5c2dbed1ec67eced3b19ddf7954dfb167246
844a9fc6aac74166640657a54de6ea0978e433d0
/core/losses.py
a96bd13d096c17345953cfc043f3cf24bf7b9868
[]
no_license
TerrisGO/tDBN
441ae76a7b9369ec8e93bfd35f15de615d1c1e57
91644521f0adcc838137523a7a178394e39f4d7b
refs/heads/master
2022-06-04T00:51:08.247125
2020-05-03T04:21:41
2020-05-03T04:21:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,727
py
# Copyright 2017 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...
5970e87ee2061596cca1ae837cf3d8a58cc9226c
ea637e5e28056d0a332a7892bd241aa6a154e57a
/recyclescrollview.py
c3528005902e474677d732e97bfd75ece4cf01c5
[ "MIT" ]
permissive
JesusZerpa/kivy-recyclescrollview
85c4511569ce65e0cecf102238dd36858a6aa92c
50016c313216833b583066ec0a9ed7e5b271da01
refs/heads/master
2022-04-20T21:52:22.862800
2020-04-21T00:54:28
2020-04-21T00:54:28
257,435,919
0
0
null
null
null
null
UTF-8
Python
false
false
2,534
py
from kivy.factory import Factory from kivy.properties import * from kivy.uix.floatlayout import FloatLayout from kivy.uix.boxlayout import BoxLayout class RecycleScrollView(Factory.ScrollView): viewclass=StringProperty("") data=ListProperty([]) #box orientation= 'vertical' default_height= 1000 cursor=0 max_it...
15b938d4100f7d789627cdd8c18f844a41b98930
836312e7ced2d5c5ed43d0e3ad34f2144cf9064e
/APIs/5_SecuringYourApi/models.py
9f1b833e0b49a78a074f3a8471d669f318a8cb51
[]
no_license
muhammad-mamdouh/udacity-fullstack-tools
4342cdca75d88184a095d69b9484a4e50c87f905
a881845042f3706b5e37ea72df645859541c73ab
refs/heads/master
2022-12-15T23:33:20.813201
2019-07-11T21:05:53
2019-07-11T21:05:53
187,712,425
1
0
null
2022-12-08T05:51:53
2019-05-20T20:58:42
Python
UTF-8
Python
false
false
715
py
from sqlalchemy import Column, Integer, String, create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, sessionmaker from passlib.apps import custom_app_context as pwd_context Base = declarative_base() class User(Base): __tablename__ = 'user' id = Column...
a95cff2d9d860046fa74ac94747beb54443c7426
632099ac0d895943cbbeb9048a2cdfcd21102411
/LPD8/__init__.py
854fab1bea8584f563056348a8c3ca56979773b0
[]
no_license
Toniigor/AbletonLive9_RemoteScripts
7f4bbf759a79629584413f6d1797005e8cd7f2ff
fed1e5ee61ea12ea6360107a65a6e666364353ff
refs/heads/master
2021-01-16T21:19:25.330221
2014-06-06T12:33:03
2014-06-06T12:33:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
778
py
#Embedded file name: /Users/versonator/Jenkins/live/Projects/AppLive/Resources/MIDI Remote Scripts/LPD8/__init__.py from _Generic.GenericScript import GenericScript import Live from config import * def create_instance(c_instance): """ The generic script can be customised by using parameters (see config.py). """ ...
2a3e7dcabd45c50afa9aaec3c28922e67f7594b5
caceb60f71165772b6d6155f619e79189e7c80a9
/第一期/成都-MFC/task002/selflearn/advance02decorator/decorator/demo0.py
bcaf2abdb66537909eedbbbbfd2e83322255515b
[ "Apache-2.0" ]
permissive
beidou9313/deeptest
ff41999bb3eb5081cdc8d7523587d7bc11be5fea
e046cdd35bd63e9430416ea6954b1aaef4bc50d5
refs/heads/master
2021-04-26T23:06:08.890071
2019-04-03T02:18:44
2019-04-03T02:18:44
123,931,080
0
0
Apache-2.0
2018-03-05T14:25:54
2018-03-05T14:25:53
null
UTF-8
Python
false
false
540
py
#!/usr/bin/env python # -*- coding:utf-8 -*- __author__ = 'MFC' __time__ = '18/1/24 15:14' """ 01.python高级1 02.python高级2-生成器、闭包、装饰器 05-装饰器 01 """ # example 1 def foo(): print('foo') foo # 表示是函数 foo() # 表示执行foo函数 # example 2 def foo(): print('foo') foo = lambda x: x + 1 # foo指向另一个函数 r = foo(...
cde54a09147bedf311abc8e1fe4d88900bc757e9
1fe8d4133981e53e88abf633046060b56fae883e
/venv/lib/python3.8/site-packages/scipy/optimize/tests/test_linprog.py
a245d4719d083c4e3e039a7d01fc03a1e56ecc28
[]
no_license
Akira331/flask-cifar10
6c49db8485038731ce67d23f0972b9574746c7a7
283e7a2867c77d4b6aba7aea9013bf241d35d76c
refs/heads/master
2023-06-14T16:35:06.384755
2021-07-05T14:09:15
2021-07-05T14:09:15
382,864,970
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:f8b63b53bd829fbc07a8138950ebbc2e32d2b860e947b44b004584abe4170b6a size 69667
a06fc5c4de927107934a98e2926e54b640c22983
478de38a95c2729ee2ef8c77b1c5a81f23aedb59
/Programming-Algorithm/Palindrome Partitioning.py
a1578e415d692bf6775851f2802cd87fc34a869b
[]
no_license
shuzhancnjx/leetcode-
0c711f720ef653ddff2af3af697a453122c28403
12093c92ef33707ad8ccdd59ad040c04cad1ee3b
refs/heads/master
2020-12-24T16:32:25.976747
2016-03-03T15:36:44
2016-03-03T15:36:44
37,101,621
0
0
null
null
null
null
UTF-8
Python
false
false
1,381
py
# -*- coding: utf-8 -*- """ Created on Wed Sep 16 14:08:57 2015 @author: ZSHU """ ''' 1. the basic idea is to have a list 'temp' formed by each letter in the string, i.e., list(s) 2. combine the components of 'temp' when they are palindrome 3. 'pos' is used to record the center for determing the palindrome ''' clas...
848614b9568aff2a658d60b2321afcea163f00e3
2d647ce5b0acf255b0713304acdb0f0c193df8fc
/doc/conf.py
d526459dffd408e28854f7bbfcccf8efeec1311c
[ "CC-BY-NC-4.0", "MIT" ]
permissive
tonybaloney/pycharm-security
a1ed540f47a0af4cd659c72643f63f800df01702
5c1ceeb1fb2a18478fa7076a81f9f47fd450e592
refs/heads/master
2023-08-17T20:09:22.924182
2023-08-16T02:12:57
2023-08-16T02:12:57
231,985,043
341
27
MIT
2023-09-14T19:03:27
2020-01-05T22:35:55
Kotlin
UTF-8
Python
false
false
2,438
py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Project information ----------------------------------------------------- project...
8247ddf7a63ae3cc954fc819bd2bfa9d3ed5c402
a46fc5187245f7ac79758ae475d4d865e24f482b
/33_search_in_rotated_array/search_in_rotated.py
18c24c01cea4ab774ce6a9b99cb74a3bf1bf59d2
[]
no_license
narnat/leetcode
ae31f9321ac9a087244dddd64706780ea57ded91
20a48021be5e5348d681e910c843e734df98b596
refs/heads/master
2022-12-08T00:58:12.547227
2020-08-26T21:04:53
2020-08-26T21:04:53
257,167,879
0
2
null
null
null
null
UTF-8
Python
false
false
861
py
#!/usr/bin/env python3 from typing import List class Solution: def search(self, nums: List[int], target: int) -> int: left = 0 right = len(nums) - 1 if not nums: return -1 while left < right: mid = left + (right - left) // 2 if nums[mid] > nums[...
b6d0c2267d52b5f791315417a324c2657e86e1db
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-dataform/samples/generated_samples/dataform_v1beta1_generated_dataform_list_workflow_invocations_async.py
dde7ff28eefb1bca3666f553e8ef38cb254977af
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
1,967
py
# -*- coding: utf-8 -*- # Copyright 2023 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...
68ca9762fd012943155b4e292cef1c5cbd9fa5f5
6649efd4a95645938221eca58404db5663cd2491
/official/vision/dataloaders/tf_example_label_map_decoder_test.py
3ff9a8b3c14c70ea2289e9cf6783a02f93db5b72
[ "Apache-2.0" ]
permissive
Dithn/models
8447866855959946358f2e5160b7d31aaafcfc98
36a140b8765eaa07525ac42a00cbd01a8b03b98e
refs/heads/master
2023-09-01T07:41:28.596877
2022-03-16T18:12:00
2022-03-16T18:13:23
228,201,096
1
0
Apache-2.0
2021-09-23T21:19:16
2019-12-15T14:52:24
Python
UTF-8
Python
false
false
7,746
py
# Copyright 2022 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...
d0421b44a25e1116f523a219dbfed2dc534f5518
f5485d955fa942711f337286a86f05374ea58a72
/migrations/versions/cbe0f844650d_.py
95626d4f1467e756a549807f7e637093f64f7ef7
[]
no_license
bingfengjiyu/flask_demo
f6245d7e8696b3bc492ed3f922948bd01319be30
3feef9fcee6e3c8f8fae46fb0fb5f5a8bdb82f4d
refs/heads/master
2020-03-24T11:04:03.012486
2018-07-28T12:16:01
2018-07-28T12:16:01
142,674,753
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
"""empty message Revision ID: cbe0f844650d Revises: Create Date: 2018-07-07 12:10:18.303153 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'cbe0f844650d' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
a0a19a07d37174229a775fc5ab451b3a3396a995
d9e0585e57b482d91e8af7514e683e2488e23381
/padinfo/view/series_scroll.py
8d6a99de4701c691fb50fc7dd9820cae2b135354
[ "MIT" ]
permissive
TrendingTechnology/pad-cogs
d08abb8da8bf2763a4091a29139168d8c1d2333a
b913a4e16a6473b8b53fae4bda564bedcc82c876
refs/heads/master
2023-08-11T01:10:22.088761
2021-09-19T00:41:43
2021-09-19T00:41:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,190
py
from typing import TYPE_CHECKING, List from discordmenu.embed.base import Box from discordmenu.embed.components import EmbedMain, EmbedField from discordmenu.embed.text import BoldText from discordmenu.embed.view import EmbedView from tsutils.emoji import char_to_emoji from tsutils.menu.footers import embed_footer_wit...
ee130f7ff914a89d881715663eba4f61cc90bcfb
ab4f74d127bfc89813ee359bb9c779eca5426ddc
/script/label_image.runfiles/org_tensorflow/tensorflow/core/framework/tensor_pb2.py
9adcb52c8c3ea21bdcdcb2006d01b4c3f6a19493
[ "MIT" ]
permissive
harshit-jain-git/ImageNET
cdfd5a340b62862ad8d1cc3b9a0f30cccc481744
1cd4c2b70917e4709ce75422c0205fe3735a1b01
refs/heads/master
2022-12-11T12:47:46.795376
2017-12-19T05:47:26
2017-12-19T05:47:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
/home/co/.cache/bazel/_bazel_co/2e35bede1f3fd334ff5ab28da2fc1540/execroot/org_tensorflow/bazel-out/k8-opt/genfiles/tensorflow/core/framework/tensor_pb2.py
7ae7198fa354aec4c1775a03d319da0d45d323ea
0f07107b016d2aee64788966b9f0d322ac46b998
/moya/testprojects/scratch/blog/py/test.py
2b109b36a4486a66034ed4b3c5ad99d295a37b25
[ "MIT" ]
permissive
fkztw/moya
35f48cdc5d5723b04c671947099b0b1af1c7cc7a
78b91d87b4519f91dfdd2b40dab44e72f201a843
refs/heads/master
2023-08-09T09:20:21.968908
2019-02-03T18:18:54
2019-02-03T18:18:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
from __future__ import print_function import moya @moya.expose.macro("test") def test(): print("Success! :-)") return 10
c49f884ff1e502534a0cbabe7633c2134b201d34
b391498124fdcaef989bf3ebafffb0df43e3e07f
/pygccxml-0.8.2/unittests/declarations_cache_tester.py
10112018fdfee5e022b785ec191dc8df82e502cb
[ "BSL-1.0" ]
permissive
glehmann/WrapITK-unstable
9a0dd9d387ecd59c9439465dcc32cca552e14576
402fc668f1f3c3dd57d0751a61efa3b1625d238b
refs/heads/master
2021-01-10T22:02:04.715926
2008-05-25T16:53:07
2008-05-25T16:53:07
3,272,767
0
0
null
null
null
null
UTF-8
Python
false
false
6,319
py
# Copyright 2004 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) import os, sys, unittest, os.path import autoconfig import pygccxml.parser from pygccxml.parser.config import config_t from...
9c14abf2141c645825bb3572f94ff19a61281d45
698ad822ff616b86e88784ec4fce08b42c46e870
/torch/_dynamo/allowed_functions.py
67daafc5adac78651457c01de7096eb20617b562
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
puppup420247-org/pytorch
6fa244b817ace397e97e85c553bd315093ef4533
090fce2547ac96730f99877085a7477097c4ad97
refs/heads/master
2023-07-21T03:54:26.234286
2022-11-12T05:59:55
2022-11-12T05:59:55
188,915,637
1
1
NOASSERTION
2023-07-20T11:42:38
2019-05-27T22:20:25
C++
UTF-8
Python
false
false
8,428
py
import builtins import collections import copy import functools import inspect import itertools import math import operator import types import warnings from typing import Dict, Optional, Set import numpy import torch from torch.fx._symbolic_trace import is_fx_tracing from . import config from .utils import is_safe_...
25be6302bd9150151560453a17906af226789f01
904b0d81152649ccd3349f94f88e7b89a7b5c76a
/scripts/main/xicombNS_DA02.py
e2f17c6818b725c4127a2e6be411fb79ee8c98bd
[ "BSD-3-Clause" ]
permissive
desihub/LSS
ec33538a0e7280ad1c6b257368cc009ed4b39cbb
5645461929172d327ed30389d76e7e887043c9bf
refs/heads/main
2023-08-18T23:17:13.123605
2023-08-18T20:08:22
2023-08-18T20:08:22
36,753,969
14
28
BSD-3-Clause
2023-09-13T18:37:35
2015-06-02T18:42:51
Jupyter Notebook
UTF-8
Python
false
false
1,710
py
#!/usr/bin/env python # coding: utf-8 import os import argparse import logging import numpy as np from astropy.table import Table, vstack from matplotlib import pyplot as plt from pycorr import TwoPointCorrelationFunction, TwoPointEstimator, KMeansSubsampler, utils, setup_logging njack = '60' trs = ['ELG_LOPnotqso'...
c15d4b3566815e61f9fc93ba6b974c34f358c170
e2ad93398194942c13c27b25aa868eda4ff4f46c
/sponsortracker/download.py
987305d12d281d57363d875f7b84883ec45f917e
[]
no_license
Auzzy/bfig-sponsor-tracker
ab2fbcf6ba562f977263b5f91c3aca756e037302
cff466de6797ea276130335bdc368c706eed583d
refs/heads/master
2023-06-01T04:41:26.082120
2023-05-11T11:52:11
2023-05-11T11:52:11
25,780,177
0
0
null
2023-05-11T11:52:12
2014-10-26T16:14:46
Python
UTF-8
Python
false
false
2,989
py
import collections import os import shutil import tempfile from enum import Enum from os.path import exists, expanduser, join, splitext from sqlalchemy import or_ from sponsortracker import model, uploads from sponsortracker.data import AssetType, Level ZIPNAME = "sponsortracker-assets" def all(level=None): re...
11d173e2e009317f099e646a9d101c71ae82a9b9
519b4cf7623c40e0280c435246b6cde46853ecc1
/project/holviapp/utils.py
d731848e8107fe128a56275bbd33d4b1a41ef18a
[ "MIT" ]
permissive
HelsinkiHacklab/asylum
a3fe492f76145c922125949c41acce6e8d4beec4
6fcf71fb5c7bb894322039144e814b9edc07d5bb
refs/heads/hhl_changes
2023-02-16T18:54:17.277017
2021-08-13T17:59:46
2021-09-13T17:45:45
47,038,401
1
1
MIT
2023-02-03T13:22:48
2015-11-28T20:28:58
Python
UTF-8
Python
false
false
2,574
py
# -*- coding: utf-8 -*- import holviapi import holvirc from django.conf import settings CONNECTION_SINGLETON = None def apikey_configured(): """Check if we have apikey""" return bool(settings.HOLVI_POOL) and bool(settings.HOLVI_APIKEY) def userauth_configured(): """Check if we have username/password"""...
fe8087783d56301fddb861866779ab604a5e83f6
4e5cdffa14c8404d836dc9f034cbbf34a86c7503
/src/api/urls.py
9113ef4c4d5780858faf92eee0a13749d97d0775
[]
no_license
gtdata/publish_data_alpha
da1cf013a5b2c7290d0af7a48d43adc90e301f3f
f1a9753daac7fbe8cc5bed5f30b8601c781449ab
refs/heads/master
2021-01-20T03:03:36.303264
2017-04-18T11:49:29
2017-04-18T11:49:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
from django.conf.urls import url, include from rest_framework import routers import api.views as v import api.api_def as a urlpatterns = [ url(r'locations$', v.gazeteer_lookup, name='gazeteer_lookup'), url(r'^datasets$', v.dataset_lookup, name='dataset_lookup'), url(r'^status', v.StatusEndpoint.as_view()...
ed33a50324b7e3a5eecebca1a2b58fcd87538545
97fde6e1ee2c63d4359a005a8a17db87559dd3eb
/api/models.py
44c72a280c9cf023ae7be9d686aecd138860d6d2
[]
no_license
Bibin22/Book_project
6f6d0cce452e0298d16676425eeb2f77e915c3e5
9884363927e6b3b559d43a6ead584f1741b54370
refs/heads/master
2023-03-31T21:36:02.594431
2021-03-24T07:15:46
2021-03-24T07:15:46
350,402,169
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
from django.db import models # Create your models here. class Book(models.Model): book_name = models.CharField(max_length=120, unique=100) price = models.IntegerField() pages = models.IntegerField() author = models.CharField(max_length=100) def __str__(self): return self.book_name
4d64347ffa03e103de068e66bc946d0999ccfce2
436051d199fcc323a422b7fea377f43c01004366
/helpers/labml_helpers/metrics/simple_state.py
2a6575141ce8871da42ebc4cbb7b596e62453fdb
[ "MIT" ]
permissive
xet7/labml
29d411b94f1d6b9ff03c6033f510cea443d38248
7f3918ca7de8cb21cf6dcc9d127a6ea64c0aebb9
refs/heads/master
2023-08-18T10:03:13.142430
2021-07-18T11:11:42
2021-07-18T11:11:42
387,184,226
0
0
MIT
2023-08-11T20:01:39
2021-07-18T13:36:49
null
UTF-8
Python
false
false
813
py
from typing import Generic, TypeVar, Optional from . import StateModule T = TypeVar('T') class SimpleState(Generic[T]): state: Optional[T] def __init__(self): self.state = None def get(self) -> T: return self.state def set(self, data: T): self.state = data def reset(s...
91a64805557e29b680b1300121cddd217db78eef
e42a61b7be7ec3412e5cea0ffe9f6e9f34d4bf8d
/a10sdk/core/aam/aam_authentication_portal_logon_fail.py
60ee400259987e360a04045658049f18c4e87e9f
[ "Apache-2.0" ]
permissive
amwelch/a10sdk-python
4179565afdc76cdec3601c2715a79479b3225aef
3e6d88c65bd1a2bf63917d14be58d782e06814e6
refs/heads/master
2021-01-20T23:17:07.270210
2015-08-13T17:53:23
2015-08-13T17:53:23
40,673,499
0
0
null
2015-08-13T17:51:35
2015-08-13T17:51:34
null
UTF-8
Python
false
false
8,059
py
from a10sdk.common.A10BaseClass import A10BaseClass class FailMsgCfg(A10BaseClass): """This class does not support CRUD Operations please use parent. :param fail_font_custom: {"description": "Specify custom font", "format": "string-rlx", "minLength": 1, "maxLength": 63, "not": "fail-face", "type": "stri...
ecec82f7d6a458418140579021abfe8fd06af04d
d5934c0624095112533201ca748e035cf33e19c1
/CodeWars.py
cf1e344b5cb120c23316d6af8e874e87e7799ead
[]
no_license
waithope/codewars
b5bbb81193cb1b98830024c16b2470c5b0d070c9
315d9dca4e0163b03409a2d806ce0f809353a991
refs/heads/master
2020-03-14T15:49:17.211859
2018-05-10T04:30:40
2018-05-10T04:30:40
131,684,708
0
0
null
null
null
null
UTF-8
Python
false
false
12,745
py
# 0123456789 # 0########## # 1## ## # 2# # # # # 3# # # # # 4# ## # # 5# ## # # 6# # # # # 7# # # # # 8## ## # 9########## # rowCount = 10 # columnCount = 10 # for i in range(rowCount): # for j in range(columnCount): # if i == 0 or i == rowCount - 1 or j == 0 or \ # j == c...
defd147ec57f50888e2a862cc79b2e4e99453437
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/cloud/listenerruleref.py
6093233a61cc528637a150a4cfdf201bb235a56f
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
5,791
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
b68d2743352106871caf8d9b6a7eae7a0237fab5
3a4f14d6638bc0c12c129ed73c6c3543437203df
/src/morphforge/simulation/__init__.py
816c765420d8ed4ec98702b232f684d5e0c03a28
[ "BSD-2-Clause" ]
permissive
unidesigner/morphforge
ef04ccb3877f069a0feea72eb1b44c97930dac44
510cd86549b2c2fb19296da2d4408ed8091fb962
refs/heads/master
2021-01-15T22:34:28.795355
2012-04-05T08:55:12
2012-04-05T08:55:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,509
py
#------------------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # - Redistributions of sourc...
ab59227df732b23f0241889547035615c3d2a258
a1bffcd8854e1843e56bb812d4d83b3161a5211e
/plugins/connection/saltstack.py
6b77c982a43b9377025aa7831e6c44e954316633
[]
no_license
goneri/ansible.community
1a71f9d98c164b77f8ed2ed7f558b4963005ff8f
f26f612dd0a3154050d90b51a75502018c95f6e4
refs/heads/master
2020-12-29T07:47:35.353515
2020-01-22T17:43:18
2020-01-22T17:43:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,800
py
# Based on local.py (c) 2012, Michael DeHaan <[email protected]> # Based on chroot.py (c) 2013, Maykel Moya <[email protected]> # Based on func.py # (c) 2014, Michael Scherer <[email protected]> # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt...
2ef4a0004adef2101bd16724ef51e27c1704ae7e
66c3ff83c3e3e63bf8642742356f6c1817a30eca
/.vim/tmp/neocomplete/buffer_cache/=+home=+dante=+proyectos=+django-1.9=+veterinaria=+django_apps=+inventario=+forms.py
5d06e80f35674c63172312b5fc3cafbb30c00408
[]
no_license
pacifi/vim
0a708e8bc741b4510a8da37da0d0e1eabb05ec83
22e706704357b961acb584e74689c7080e86a800
refs/heads/master
2021-05-20T17:18:10.481921
2020-08-06T12:38:58
2020-08-06T12:38:58
30,074,530
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
{'from', 'django', 'import', 'forms', 'models', 'Articulo', 'Categoria', 'class', 'ArticuloForm', 'ModelForm', 'Meta', 'model', 'fields', 'nombre', 'marca', 'codigo', 'estado', 'p_compra', 'p_venta', 'descripcion', 'avatar', 'CategoriaForm'}
1fe0e2c621f45cf284a4b99347dfe1a3a3ff93c6
e9032e64138d7b9dd90a330dfe4588e2c83f6667
/google/cloud/compute_v1/services/region_health_checks/transports/__init__.py
693981b3422dd04d3df9d0fab64969fdd9002c78
[ "Apache-2.0" ]
permissive
Ctfbuster/python-compute
6cff2418969009794c3fadadc4c45e20d7b40509
7a9e8324e08c46a93050908760b2b5aca054a863
refs/heads/main
2023-08-26T12:37:52.363526
2021-10-04T15:34:37
2021-10-04T15:34:37
412,884,620
0
0
Apache-2.0
2021-10-02T18:49:05
2021-10-02T18:49:03
null
UTF-8
Python
false
false
1,050
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...
be843d33ee176ec0d6827fefd01fdd6a15847466
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03282/s286249227.py
f28b18ffa16239f136d180ee675975bd01b56411
[]
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
191
py
import sys input = sys.stdin.readline S = list(input().rstrip('\n')) K = int(input()) n = 1 for i in range(min(len(S), K)): if S[i] != '1': n = int(S[i]) break print(n)
69dac76bc95dc024cdf72ce09289bdfc512ab898
4b9a90ad8debaec515dcbad50b02caecba6cd6a5
/django/Dev/trydjango/venv2/lib/python3.7/token.py
0a0df7a35f6645f14e34e8ddfd3ff0ff267527a2
[]
no_license
nabilatajrin/python-programs
f51612808f1837d8e786c7f2eb1faf6387859b18
74533bab6ee2d204920c1b97622bdf757ae44aae
refs/heads/master
2022-12-24T20:14:57.046497
2022-12-20T08:41:29
2022-12-20T08:41:29
199,279,168
1
0
null
null
null
null
UTF-8
Python
false
false
42
py
/home/iit/anaconda3/lib/python3.7/token.py
eea07dff9a04a5582761f119169aec890ef58c11
aba1d17ddc7d7ad9f49e2d6d87600e9e0387ba14
/mi/dataset/driver/sio_eng/sio/sio_eng_sio_recovered_driver.py
d84a95f50b651d68787a6e469c0b57ced9a03727
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
oceanobservatories/mi-instrument
3ad880c1366b1a8461fc9085768df0e9ddeb6ef5
bdbf01f5614e7188ce19596704794466e5683b30
refs/heads/master
2023-07-23T07:28:36.091223
2023-07-14T15:54:49
2023-07-14T15:54:49
24,165,325
1
32
BSD-2-Clause
2023-07-13T01:39:22
2014-09-17T22:53:22
Python
UTF-8
Python
false
false
1,673
py
#!/usr/bin/env python """ @package mi.dataset.driver.sio_eng/sio @file mi/dataset/driver/sio_eng/sio/sio_eng_sio_recovered_driver.py @author Jeff Roy @brief Driver for the sio_eng_sio instrument Release notes: Initial Release """ from mi.dataset.dataset_parser import DataSetDriverConfigKeys from mi.dataset.dataset_...
87e6fcae17d4bffaeaa0b3223eed01cede3b60c5
2f666fc0c3ede72e032a66fe186300212d6160a6
/flat/views.py
5c15f6d5dea27d17645f032a9348c972d8709e2f
[]
no_license
anukat2015/flat
e8f7439ffe5cb4223a596ec7085846ebde07018c
79a75d8d2bb6275fc749d13c19f4748dc8138a98
refs/heads/master
2021-01-24T14:46:54.045115
2016-03-23T09:07:19
2016-03-23T09:07:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,694
py
from __future__ import print_function, unicode_literals, division, absolute_import from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.http import HttpResponse, HttpResponseForbidden, HttpResponseRedirect import django.contrib.auth from pynlpl.formats impo...
503df77b7e73dde22d4eea8e86d995e4f9983cbb
798960eb97cd1d46a2837f81fb69d123c05f1164
/symphony/cli/pyinventory/graphql/mutation/edit_service_type.py
8b288246df912b964320536842d70b2deedf041e
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
kyaaqba/magma
36d5fa00ce4f827e6ca5ebd82d97a3d36e5f5b5b
fdb7be22a2076f9a9b158c9670a9af6cad68b85f
refs/heads/master
2023-01-27T12:04:52.393286
2020-08-20T20:23:50
2020-08-20T20:23:50
289,102,268
0
0
NOASSERTION
2020-08-20T20:18:42
2020-08-20T20:18:41
null
UTF-8
Python
false
false
2,154
py
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from dataclasses import dataclass from datetime import datetime from gql.gql.datetime_utils import DATETIME_FIELD from gql.gql.graphql_client import GraphqlClient from gql.gql.client import OperationException from gql.gql.reporter import FailedOper...
256ee04da6e71642f3282eebb0892374c143abcb
2090b6b92d5cada89504de548b14f9c729856606
/visualize/waveform/compare_waveforms_1obs2syn.py
0b147dda0e923352ef1132a3ea3948fa71d94e60
[]
no_license
ziyixiArchive/Japan_Slab_code
4f6a366889278ad499971cf1132591b9029c0f8c
4cb19939e45739faee7a8b6ec3d3a5da4549a108
refs/heads/master
2022-03-14T18:11:47.768695
2019-12-17T21:48:32
2019-12-17T21:48:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,378
py
import matplotlib.backends.backend_pdf import matplotlib.pyplot as plt import obspy import pyasdf from obspy.geodetics.base import gps2dist_azimuth, locations2degrees from obspy.taup import TauPyModel from recordtype import recordtype import numpy as np import click import matplotlib as mpl import tqdm label_size = 25...
ada65d289c521001d259f3753dd35f98479c82ff
1a04e02811c844ecf53cc041b104667e5c987a09
/vgrabber/qtgui/tabs/items/finalexam.py
75cd24590829f15938344be4414a71f826fdba8e
[]
no_license
janjanech/vzdelavanieGui
dff17add6e6946063597d4c1eba5d6d76b6f5374
b2015f41f7cb1be1ecccf1c4778a91f43f8fba12
refs/heads/master
2021-10-24T16:21:24.911817
2019-01-15T17:03:49
2019-01-15T17:03:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
from PyQt5.QtWidgets import QTreeWidgetItem class FinalExamItem(QTreeWidgetItem): def __init__(self, data, final_exam): super().__init__(data) self.final_exam = final_exam
2a1e8f91e9c52a31ab379194d4112818a490e643
f4b60f5e49baf60976987946c20a8ebca4880602
/lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/span/vdestdef.py
ec024b57e914be3854e9f75296a3fa2cf918029d
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
8,334
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
0484b2199fc895b1ac5faa6eeb44803cd770356e
c9c762a08c031bafa1e577733c6af53a7a1b142f
/Project4Proj/Project4App/admin.py
a33a7882886d7d816c15cd8b34a9aed7dc315c9f
[]
no_license
Joshtg1104/Project4-Django-VideoApp
aed635d493125f42482b6f8e2424bec2e93da848
46efc176762a2fcb76e743672d3eb9b62f7808b6
refs/heads/master
2020-05-29T09:25:13.002571
2019-06-12T18:58:27
2019-06-12T18:58:27
189,061,630
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
from django.contrib import admin from .models import Video, AccountModel, CommentModel # Register your models here. admin.site.register(AccountModel) admin.site.register(Video) admin.site.register(CommentModel)
38f27425bfd3df62fce464d36f7d3ee1f274e55e
912b0c6274e9c5c0956c4d1d1178f2b68fcf4296
/suod/test/test_base.py
2a5676b05176b356328d547265bcc359ee0aa19d
[ "BSD-2-Clause" ]
permissive
DreamtaleCore/SUOD
04f238f48625a3a3e182b19c2af65612954453b2
353aeaf8d5e5c338f94686e73a8a0fec88670700
refs/heads/master
2022-10-30T04:44:17.617986
2020-06-15T21:07:26
2020-06-15T21:07:26
292,205,263
1
0
BSD-2-Clause
2020-09-02T07:01:50
2020-09-02T07:01:49
null
UTF-8
Python
false
false
3,239
py
# -*- coding: utf-8 -*- import os import sys import unittest import numpy as np # temporary solution for relative imports in case pyod is not installed # if suod # is installed, no need to use the following line sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from suod.models.base im...
6149f8fede99ffcba481a3bb2377ebd72da708a4
b697f5d8e441328c2deee1bb5853d80710ae9873
/944.删列造序.py
d10994932e2f8dd4be69c43b93c603bca7107745
[]
no_license
happy-luck/LeetCode-python
d06b0f6cf7bad4754e96e6a160e3a8fc495c0f95
63fc5a1f6e903a901ba799e77a2ee9df2b05543a
refs/heads/master
2021-03-22T16:12:52.097329
2020-07-15T13:48:37
2020-07-15T13:48:37
247,381,313
0
0
null
2020-03-15T01:47:42
2020-03-15T01:28:38
null
UTF-8
Python
false
false
757
py
方法一: class Solution: def minDeletionSize(self, A: List[str]) -> int: D = 0 A_list = [] for string in A: res = list(string) res = [ord(i) for i in res] A_list.append(res) for j in range(len(res)): for i in range(1,len(A)): ...
c035d9f0fb7bdc18413f6216781d4e272dbf8234
208796d60bba301648b76f3fd9af20738aca3ba7
/neuclease/bin/cleave_server_debug_main.py
83d3de98a286d0b91481496060849dd94ff1df21
[ "BSD-3-Clause" ]
permissive
stuarteberg/pydvid
2afaebeb886b8034852e21668bca6709b022cf0f
ce59988cbc8043c85fe3ba878d4fa415febba2f8
refs/heads/master
2021-01-17T20:34:47.843645
2019-10-10T19:47:23
2019-10-10T19:47:23
33,325,656
0
0
null
2015-04-02T18:43:25
2015-04-02T18:43:25
null
UTF-8
Python
false
false
2,723
py
#!/usr/bin/env python3 import sys import neuclease.cleave_server def main(): _debug_mode = False ## DEBUG if len(sys.argv) == 1: _debug_mode = True import os log_dir = os.path.dirname(neuclease.__file__) + '/../logs' sys.argv += [#"--merge-table", "/magnetic/workspace/neucle...