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
36bf83381d9d12a2a2f73d94138ec08698d8c928
d4f579219d0d557973e6b3d6392d887081825dc3
/PythonNTF/T1/Naloge/logicnioperatorji.py
0777d56b1679e3b60086c901e99582547c3a29d6
[]
no_license
aljazvaupotic/Python-Course
1eb841cc407105c6e14bdb49445d85484de9c6d9
d1df7b1a357fef5fbc3cccea83fd5adec25e3edf
refs/heads/master
2023-08-25T09:05:24.258495
2021-11-08T10:00:31
2021-11-08T10:00:31
186,800,762
0
0
null
null
null
null
UTF-8
Python
false
false
3,481
py
#______________________________________________________________________________ # Termin 1, 16.5.2019 # Logični operatorji #______________________________________________________________________________ # Logični operator *konjunkcija* ima naslednjo resničnostno tabelo, kjer # `F` predstavlja neresnično (`False`), `T...
[ "noreply@github.com" ]
aljazvaupotic.noreply@github.com
b2cff122cc6e2e3b7f77f15c0931ccbb7b0bffc9
3a4fbde06794da1ec4c778055dcc5586eec4b7d2
/code-samples/coursera-17.py
6b9f38101bcabf8e7262bb9c084391cdcce921fd
[]
no_license
raychorn/svn_python-django-projects
27b3f367303d6254af55c645ea003276a5807798
df0d90c72d482b8a1e1b87e484d7ad991248ecc8
refs/heads/main
2022-12-30T20:36:25.884400
2020-10-15T21:52:32
2020-10-15T21:52:32
304,455,211
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
import io def create_python_script(filename): comments = "# Start of a new Python program" with open(filename, "w") as fOut: fOut.write(comments) with open(filename, "r") as fIn: filesize = fIn.seek(0, io.SEEK_END) return(filesize) print(create_python_script("program.py"))
[ "raychorn@gmail.com" ]
raychorn@gmail.com
2311c794062db12ee14f68625930ee7ec4fc5dd9
34a9c26849b3d82318c5d50df1474776e96afc58
/scheduler/learning_rate/cosine_lr.py
6de33f7ea0771db16fc3b300dee812194a968e42
[ "MIT" ]
permissive
vcowwy/CvT_paddle
483ef210e9864b254f45e556571c686409512afe
de8c28fbbc83e2c6c2479d44971020b15e7b12ec
refs/heads/master
2023-08-31T08:49:19.237186
2021-11-02T09:13:43
2021-11-02T09:13:43
423,333,423
0
0
null
null
null
null
UTF-8
Python
false
false
3,760
py
import logging import math import numpy as np import paddle from .scheduler import Scheduler _logger = logging.getLogger(__name__) class CosineLRScheduler(Scheduler): def __init__(self, optimizer: paddle.optimizer.Optimizer, t_initial: int, t_mu...
[ "1719870799@qq.com" ]
1719870799@qq.com
8b7099feb3ee046dd8adee97b3da106d2a3c6379
9644572133b4cde92745a6c2320069bce926f715
/general_ocr/datasets/utils/parser.py
c6908ad99250785edfad0034ed46512b122f2d78
[]
no_license
hnhoangdz/general_ocr
b79306f8078556cdc83690d1d5e19baff30dc878
8975731cbc7065aa1825bf857c33b90ad0140c49
refs/heads/main
2023-08-16T09:41:56.444851
2021-10-19T09:09:44
2021-10-19T09:09:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,272
py
# Copyright (c) GeneralOCR. All rights reserved. import json from general_ocr.datasets.builder import PARSERS from general_ocr.utils import StringStrip @PARSERS.register_module() class LineStrParser: """Parse string of one line in annotation file to dict format. Args: keys (list[str]): Keys in resul...
[ "towarddatascience@gmail.com" ]
towarddatascience@gmail.com
9b48d601669864b025f220379cbbf6243784839f
9d5d057e4077b77980093a22d39af1cdea1040a0
/tools/parallel_UT_rule.py
8d22fd6c2496e1c0748cdb33b1e4bd45e91ccf6e
[ "Apache-2.0" ]
permissive
heavengate/Paddle
16b8d046e9cba818ba36394bec496180b5cd5938
f9c801ffa6ac0a8a1a271c09b915d8603aba41ff
refs/heads/develop
2023-05-23T06:15:22.855477
2023-02-08T08:31:23
2023-02-08T08:31:23
150,394,550
1
3
Apache-2.0
2022-04-01T13:19:14
2018-09-26T08:33:49
Python
UTF-8
Python
false
false
102,498
py
# Copyright (c) 2020 PaddlePaddle 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 appli...
[ "noreply@github.com" ]
heavengate.noreply@github.com
2a8c8c68da8aa31cf3e069ae3d86603d00d5ec27
9bb7bc13aad5d822f52b0f52e31a468faa964f22
/lcdb/helpers.py
18cd06a08d7c1a5bf783781640739cf536a2516e
[ "MIT" ]
permissive
lcdb/lcdb-workflows
03e9f8a5d887ac23059304d98f8abafe83644708
ee28a42bc6021b8b82f1950144cda6e841823661
refs/heads/master
2021-01-21T15:07:25.121526
2019-04-12T21:30:51
2019-04-12T21:30:51
58,685,798
1
1
null
2016-08-01T13:52:35
2016-05-13T00:11:01
Python
UTF-8
Python
false
false
2,947
py
import os import pandas import yaml from jsonschema import validate, ValidationError from snakemake.shell import shell def validate_config(config, schema): schema = yaml.load(open(schema)) cfg = yaml.load(open(config)) try: validate(cfg, schema) except ValidationError as e: msg = '\nPle...
[ "dalerr@niddk.nih.gov" ]
dalerr@niddk.nih.gov
8ea00d6cb58f877c3542b77e7c1d3bd1ffa1d98e
40eea049f7e9cef38f30da90b9dd38f840eab240
/nvij-cliprm-ec362ad713de/cliprm/backend/crawlers/shaze/shaze/spiders/shaze_spider.py
de0f74731fa3f8eaacb3ca2c07c6359ec3237ec2
[]
no_license
pratikpoddar/clipr
ddf9a6e6ca9e50e84cd7dcc36ae732876e019da6
a84a88d8a6eb76836b0bef4b6531919a563b1345
refs/heads/master
2021-05-27T21:53:03.844876
2014-07-18T10:52:41
2014-07-18T10:52:41
21,977,252
1
0
null
null
null
null
UTF-8
Python
false
false
2,035
py
import sys from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from scrapy.contrib.spiders import CrawlSpider, Rule from shaze.items import CliprItem visitedIds = set() def isProduct(url): return url.find('/p/')...
[ "pratik.phodu@gmail.com" ]
pratik.phodu@gmail.com
58df61c0ef8b4a460d646f62c0d3370de9ea7366
22a1166f2aea25c0a76d3c38114fbfe0c9ac867d
/core/update.py
25e5862496ed240c9e66893c225099bae66e24a8
[ "MIT" ]
permissive
z0x010/maltrail
536ea417a2c4688c997c36ace87e9709d04b0b6f
3a62bdb11aefb9abc224ea073e8699046b0af076
refs/heads/master
2021-01-19T11:52:46.605788
2017-02-16T10:30:45
2017-02-16T10:30:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,657
py
#!/usr/bin/env python """ Copyright (c) 2014-2017 Miroslav Stampar (@stamparm) See the file 'LICENSE' for copying permission """ import csv import glob import inspect import os import re import sqlite3 import subprocess import sys import time import urllib import urlparse sys.dont_write_bytecode = True sys.path.appe...
[ "miroslav.stampar@gmail.com" ]
miroslav.stampar@gmail.com
075137d16c4ea177b032134a2f40c97cd6d7c5ce
438e546e2acf5aa57c34c6481e477f7025b12e21
/Grokking Coding Interview/P6 - In Place Reversal of LL /Reverse K Sized Sub-List.py
2dbe7f39ba36d836a47c76fe3b67fd7d1e61a5e3
[]
no_license
SajinKowserSK/algorithms-practice
988537ef3537487cb40c78776dd2c9e1130cde4f
41bbd55553747492a539b41f6e86bff5504c5842
refs/heads/master
2022-11-06T18:22:41.329484
2022-10-19T23:40:10
2022-10-19T23:40:10
206,470,288
1
0
null
null
null
null
UTF-8
Python
false
false
1,784
py
from __future__ import print_function class Node: def __init__(self, value, next=None): self.value = value self.next = next def print_list(self): temp = self while temp is not None: print(temp.value, end=" ") temp = temp.next print() def rever...
[ "sajinkowser@gmail.com" ]
sajinkowser@gmail.com
ab45a62f3cdff764191fa10661d1c3a0d52c4b51
e129fe32194ad8d15f664cd055062d01caae370f
/tools/betterbib-format
c9fd4371c24e59f8a6cbfba8255c52059f2ba91c
[ "MIT" ]
permissive
tbabej/betterbib
dd3b6895d3fd8ff4cf50b4b8e5fdcd2fb6d31216
80a3c9040232d9988f9a1e4c40724b40b9b9ed85
refs/heads/master
2020-03-11T10:45:14.243594
2018-04-17T18:43:30
2018-04-18T13:37:11
129,950,668
0
0
MIT
2018-04-17T18:49:03
2018-04-17T18:49:02
null
UTF-8
Python
false
false
3,331
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # from __future__ import print_function, unicode_literals import argparse import collections import sys from pybtex.database.input import bibtex import betterbib def _main(): args = _parse_cmd_arguments() data = bibtex.Parser().parse_file(args.infile) # ...
[ "nico.schloemer@gmail.com" ]
nico.schloemer@gmail.com
f30497be13679db52d80358c553ceabc0ae00929
17f1811abda6c828460b77f460671f9c2f464204
/leetcode/shuffle_an_array.py
2bcc987387591d1047a0a4164e7da89c024cb1c8
[]
no_license
rishabhranawat/challenge
f10f69fc30881a0571c4321b466a89aeeb06e568
e836343be5185f8843bb77197fccff250e9a77e3
refs/heads/master
2021-01-21T15:13:47.590675
2020-04-25T15:26:42
2020-04-25T15:26:42
91,833,947
0
0
null
null
null
null
UTF-8
Python
false
false
1,281
py
# Checkout Fisher Yates import random class Solution(object): def __init__(self, nums): """ :type nums: List[int] """ self.nums = nums self.pairs = {} for i in range(0, len(nums), 1): self.pairs[i] = nums[i] def reset(self): """ ...
[ "rishabhranawat12345@gmail.com" ]
rishabhranawat12345@gmail.com
812d42b9f9e83081cc0bd88c2d1b6b5dcec3a3ab
85e078ee3ceda5091624233ca19ba42f78747499
/LeetCode/buy_sell_stock2.py
f9fc5f75d3de157ae7c519c73459053fbf61088c
[]
no_license
papayetoo/StudyinPython
d5e6ec0cff0e97fcc4afc8d846e3658c06eb67c2
f686b6e08720ad4d7d57b41d24c63c4bfa64dd90
refs/heads/master
2021-07-22T04:05:38.993123
2021-02-03T14:12:26
2021-02-03T14:12:26
240,009,852
0
0
null
null
null
null
UTF-8
Python
false
false
875
py
class Solution: def buySellStock(self, prices: [int]) -> int: if len(prices) == 0: return 0 profit = 0 pair_prices = [(index, value) for index, value in enumerate(prices)] descending = sorted(pair_prices, key=lambda x: x[1], ...
[ "rhkdgus0826@gmail.com" ]
rhkdgus0826@gmail.com
742cf9975339908a3a686a400bc4f2e1c2447a7a
e845f7f61ff76b3c0b8f4d8fd98f6192e48d542a
/djangocg/contrib/gis/geometry/test_data.py
1ae4fe529d1427c026130348b99afec6eac57b91
[ "BSD-3-Clause" ]
permissive
timothyclemans/djangocg
fd150c028013cb5f53f5a3b4fdc960a07fdaaa78
52cf28e046523bceb5d436f8e6bf61e7d4ba6312
refs/heads/master
2021-01-18T13:20:13.636812
2012-08-31T23:38:14
2012-08-31T23:38:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,000
py
""" This module has the mock object definitions used to hold reference geometry for the GEOS and GDAL tests. """ import gzip import json import os from djangocg.contrib import gis from djangocg.utils import six # This global used to store reference geometry data. GEOMETRIES = None # Path where reference test data i...
[ "timothy.clemans@gmail.com" ]
timothy.clemans@gmail.com
0038fd3149b3996e6eb7ac75db588001245eb691
2ea1fdf72317649c698105be8d84935c55007db0
/npr_sfs/methods/ibme.py
ad09d7f2eb3c64720ad17bf007bc6edc5ebe989d
[ "MIT" ]
permissive
joepfortunato/NPR-SFS
25987b5eda4203473059dda1cabdbbb68ecbbf29
15d9fd2b83d75214fa851aafcc17f970252dad32
refs/heads/master
2021-05-30T02:48:56.252831
2015-10-06T07:41:53
2015-10-06T07:41:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,904
py
# -*- coding: utf-8 -*- ## @package npr_sfs.methods.ibme # # Image-Based Material Editing [Kahn et al. 2006]. # @author tody # @date 2015/07/30 """Usage: ibme.py [<input>] [-h] [-o] [-q] <input> Input image. -h --help Show this help. -o --output Save output files. [default: False] -q --q...
[ "tody411@gmail.com" ]
tody411@gmail.com
454f3d60787fdac730e072981d6438e2503218bf
aef0a344e13f6a10f7145e8cd63a514adaa2f5a7
/tb/irq_rate_limit/test_irq_rate_limit.py
ec8e60e9a36e56a4fd41e43d2460a8fb901e93d5
[ "MIT" ]
permissive
alexforencich/verilog-pcie
a0ff59662e2d9cac100295b43a9b4ad374bcd406
75126f133318b31f226ae13ebc46a40eb52cf3ac
refs/heads/master
2023-07-20T01:19:06.004282
2023-06-24T05:38:06
2023-06-24T05:38:06
164,569,208
765
223
MIT
2023-07-18T08:36:17
2019-01-08T05:28:51
Verilog
UTF-8
Python
false
false
5,159
py
#!/usr/bin/env python """ Copyright (c) 2022 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
[ "alex@alexforencich.com" ]
alex@alexforencich.com
bdc6890d12b3d567090dc600624a8c446f355672
cbafab192b5072b8e9150dcada8013503af40fca
/Django_Learning/admin/app01/migrations/0001_initial.py
7eeda195e315bb1b00276f9051dfd29b6e1748aa
[]
no_license
lafitehhq/PythonProject
928421b49ff0ea9fd536ca7769a04fe990848929
d5d0352541a29ee070884263e7eb50160cd7b3b5
refs/heads/master
2021-09-06T01:48:42.971720
2018-02-01T11:56:50
2018-02-01T11:56:50
106,712,281
0
0
null
null
null
null
UTF-8
Python
false
false
3,267
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-01-14 06:41 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
[ "lafitehhq@126.com" ]
lafitehhq@126.com
90b561a17cc041f5c24dc06b96de9a60de196e92
dff5c14ce2ce94b1170c4e31b985bc23c25c72a6
/CLASS 3/2606: 바이러스/solution.py
88c05d9a1e3256315bd812da4654ae4a23ac2806
[ "MIT" ]
permissive
coco-in-bluemoon/baekjoon-online-judge
371c6afb66467d2afd28bc315afc5109fa3bd8cc
06e14fe89e4ec5b940f2afa20bc5e4b0de08c8f6
refs/heads/main
2023-02-15T11:51:38.631843
2021-01-08T15:33:17
2021-01-08T15:33:17
302,237,533
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
from collections import deque def solution(num_node, edges): START_NODE = 1 graph = {node: set() for node in range(1, num_node+1)} for src, dst in edges: graph[src].add(dst) graph[dst].add(src) visited = {node: False for node in range(1, num_node+1)} queue = deque([START_NODE]) ...
[ "coco.in.bluemoon@gmail.com" ]
coco.in.bluemoon@gmail.com
70feee5ad2d1a2ce6a9b66799514a767ef8dce50
c5758c1f4c880f4530df1a5ffb4c30ee2da445ee
/pytracking/vot_ep/sk3x3/vot_wrapper_sk3x3_ep0031.py
5753454ed67494b9ff345fda9c48e1174ac294a5
[]
no_license
bfjei2825401/d3s
6d662fc301181a0e3ad831b0db6111e3cf8f4097
32140a3c67252f0e98cbfbf6ad6d2a79267c221b
refs/heads/master
2023-02-27T09:57:25.692878
2021-01-27T14:20:57
2021-01-27T14:20:57
297,217,521
0
0
null
2020-09-21T03:23:09
2020-09-21T03:23:09
null
UTF-8
Python
false
false
2,459
py
import pytracking.vot as vot import sys import cv2 import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"] = "0" from pytracking.tracker.segm_sk3x3 import SegmSK3x3 from pytracking.parameter.segm_sk3x3 import default_params_ep as vot_params def rect_to_poly(rect): x0 = rect[0]...
[ "752958525@qq.com" ]
752958525@qq.com
3acba025f2c13a9f0caf50de16baee79e95de19e
18ad97292b34a679b8dea8a85090541c5bbf6174
/averageseasy.py
97cf78596df80adb1ddda5916d7075d7163cfa81
[]
no_license
Jyotirm0y/kattis
b941044e39dc36d169450480fc33fd33bd2e0f8e
2b9c1819ba29419bbea3db2e8ad7851155abbb3a
refs/heads/master
2023-05-31T21:11:38.350044
2021-06-12T08:21:47
2021-06-12T08:21:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
300
py
t = int(input()) for _ in range(t): input() ncs, ne = map(int, input().split()) iqcs = list(map(int, input().split())) iqe = list(map(int, input().split())) sumiqcs = sum(iqcs) sumiqe = sum(iqe) print(sum([1 if iq*ne > sumiqe and iq*ncs < sumiqcs else 0 for iq in iqcs]))
[ "ainunnajib@gmail.com" ]
ainunnajib@gmail.com
7cd61cc5a2265dd40f86d8fb7e1a9c2e8cd16a39
cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde
/B/BuddyStrings.py
fe5f524ac1581380e3ab3d95645abc58736301d5
[]
no_license
bssrdf/pyleet
8861bbac06dfe0f0f06f6ad1010d99f8def19b27
810575368ecffa97677bdb51744d1f716140bbb1
refs/heads/master
2023-08-20T05:44:30.130517
2023-08-19T21:54:34
2023-08-19T21:54:34
91,913,009
2
0
null
null
null
null
UTF-8
Python
false
false
1,570
py
''' Given two strings A and B of lowercase letters, return true if you can swap two letters in A so the result is equal to B, otherwise, return false. Swapping letters is defined as taking two indices i and j (0-indexed) such that i != j and swapping the characters at A[i] and A[j]. For example, swapping at indices ...
[ "merlintiger@hotmail.com" ]
merlintiger@hotmail.com
df4409470fe736ddda0aa22479628205853deac1
ef09e86b16f741d0f262f330fc205e493b9d9041
/polls/migrations/0001_initial.py
d6c669eba075ac5f2bcb3e33a82f245077a8f69f
[]
no_license
sarthakbhooshan/my_first_django_app
6813d100a90dbe556732406a5d32691c7578b9c5
b07a50a44fb8126fedfad874d81f0cb5f287a9c1
refs/heads/master
2021-01-14T08:38:45.499995
2016-07-18T11:18:33
2016-07-18T11:18:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,229
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-12 05:24 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Creat...
[ "you@example.com" ]
you@example.com
267b81539f58299286c9d273a7fa0e636ada96e9
b0bd3342c244ebf30ae5ab29daa078f2b39010f7
/utils.py
a035fb3e56880250c7e067c38377ce533c431ec5
[]
no_license
naiqili/itime_learning
30a8af7f1234277162ccdd4c69cd9f9a4a7ab412
d9b191bb32a7e49cb99443d7dccea5bb392aee90
refs/heads/master
2021-06-19T04:54:06.239320
2017-06-26T13:35:39
2017-06-26T13:35:39
92,792,780
0
0
null
null
null
null
UTF-8
Python
false
false
2,946
py
import csv import operator import os import numpy as np import tensorflow as tf from os import path DATA_DIR_MOVIELENS_100K = 'data/ml-100k' HOME_DIR = path.expanduser('~') PROJECTS_DIR = path.join(HOME_DIR, 'Projects') RANKSYS_DIR = path.join(PROJECTS_DIR, 'RankSys') RANKSYS_EXAMPLES_DIR = path.join(RANKSYS_DIR, 'Ra...
[ "naiqil@student.unimelb.edu.au" ]
naiqil@student.unimelb.edu.au
b6cd96dc4083b3617cc8be9fe9c662bdcef2d60f
37eef4cd7e0e17086fb5cd3e0dd710b43470786a
/tests/commands/test__vi_cc.py
0f3c95eca2e8808a7538606bfb81c41e3e96a738
[ "MIT" ]
permissive
DylanBruzenak/Vintageous
9ffd480aeea0e5c127fec7c9eafb8b5d3acf85c7
022faaf22acd72d3514c74013217b7661bf10a37
refs/heads/master
2021-01-15T11:34:53.529087
2013-08-17T21:02:07
2013-08-17T21:02:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,755
py
import unittest from Vintageous.vi.constants import _MODE_INTERNAL_NORMAL from Vintageous.vi.constants import MODE_NORMAL from Vintageous.vi.constants import MODE_VISUAL from Vintageous.vi.constants import MODE_VISUAL_LINE from Vintageous.tests.commands import set_text from Vintageous.tests.commands import add_select...
[ "guillermo.lopez@outlook.com" ]
guillermo.lopez@outlook.com
33f784c238773201f20b7191cb092dc4657a942b
90ac505fb14e4969cd4e7f164f8969ed2344d3e3
/BYSL/ea.py
9b6bb77bb599f20215c88cbaad443e730deffe10
[]
no_license
rid47/python_basic_book
4d08641ed802a80f5b5398c568231b366b1cf5d0
f4a77577115b126094c9e5aac38a18bb42eeb28f
refs/heads/master
2022-12-22T12:24:48.094483
2022-12-10T12:11:52
2022-12-10T12:11:52
234,990,760
0
1
null
2022-12-02T03:44:50
2020-01-20T00:45:53
Tcl
UTF-8
Python
false
false
1,027
py
class Car: def __init__(self): self.carFare = {'Hatchback': 30, 'Sedan': 50, 'SUV': 100} def displayFareDetails(self): print("Cost per day: ") print("Hatchback: $", self.carFare['Hatchback']) print("Sedan: $", self.carFare['Sedan']) print("SUV: $", self.carFare['SUV']) ...
[ "ridwanmizan@gmail.com" ]
ridwanmizan@gmail.com
9f60fa0febd594f00a2a621ba5012a8222fc7696
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2244/60690/275105.py
24682629ee0ab61e98762255770bf7e57e5231fe
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
311
py
n=int(input()) def isHW(str): for i in range(len(str)): if str[i]!=str[len(str)-1-i]: return False return True def isSS(num): for i in range(2,int(num/2)+1): if num%i==0: return False return True while isHW(str(n))==False or isSS(n)==False: n+=1 print(n)
[ "1069583789@qq.com" ]
1069583789@qq.com
d8250aafde619dfeca2cbde7c29520501b8998c6
2e3e256bcc0086a61cbb0e082dc61290196e35d2
/dragon/db/migration.py
f5dd52488479b98226bd4aca6080a64b3ffb9664
[ "Apache-2.0" ]
permissive
miradam/openstack-workload-disaster-recovery
79dcdb15ebf95d89157751c750a5dbab1557b942
854a3952bb9278cc08017ada97ff150b12b1c687
refs/heads/master
2020-03-24T15:36:46.808591
2016-12-15T12:32:17
2016-12-15T12:32:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # 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...
[ "OSHRITF@il.ibm.com" ]
OSHRITF@il.ibm.com
ba83a9d4e1b219536ebc3008d7ca7a7053a3910f
e645ebf3b5177eb0ebedb7f239bd6e1b40bf1b07
/ups/boost_python.cfg
b171d4be2d21271f368e3b34eb327ea98a5d77b8
[]
no_license
lsst-dm/bp
e095cdb7412124fef39bdd8428fce70bbf0f462a
31c0b65866d06a09575a53d0dd558320e6994a06
refs/heads/main
2023-07-22T11:32:48.479329
2023-07-10T00:30:32
2023-07-10T00:30:32
37,212,636
0
0
null
null
null
null
UTF-8
Python
false
false
2,961
cfg
# -*- python -*- """ Dependencies and configuration for Boost.Python """ import os.path import eups def _get_root(): """Return the root directory of the package.""" return eups.productDir("boost") dependencies = { # Names of packages required to build against this package. "required": ["boost", "pytho...
[ "jbosch@git.lsstcorp.org" ]
jbosch@git.lsstcorp.org
ce3930eeb0c0f64b128f4ebacfebb3889752209a
cc5b1297398b644aa77b5f05988fda3402894fe7
/python/seldon_core/__init__.py
f1f00629c973f60b4326a1e9a3a0741543ce1e9f
[ "Apache-2.0" ]
permissive
aarondav/seldon-core
fecf4580e96ac0c7f2a514933549b4e7c1b162e9
243ae299da8cebb07ba64071bf885ec0e5825a93
refs/heads/master
2022-01-16T07:53:00.055244
2019-06-21T06:55:11
2019-06-21T06:55:11
193,616,164
0
0
Apache-2.0
2019-06-25T02:07:37
2019-06-25T02:07:36
null
UTF-8
Python
false
false
96
py
from seldon_core.version import __version__ #from seldon_core.seldon_client import SeldonClient
[ "cc@seldon.io" ]
cc@seldon.io
9846c30b04f991029724e3c7761741398fd0acde
9b7ef36988860750e3a6b704254ed2aaeb3a3dc7
/insta/forms.py
b11f0faf52a0e23179021c45bebbb59b22c7d8d5
[]
no_license
nicky-code/instagram
ed016aef3cabed46cdff3f1c8598fb9445ea12e5
6d9eb31cca33ed137b730fb23cd15ea7a8482faa
refs/heads/master
2021-09-09T14:38:38.152140
2019-10-22T14:21:35
2019-10-22T14:21:35
215,626,513
0
0
null
2021-09-08T01:22:42
2019-10-16T19:20:08
Python
UTF-8
Python
false
false
917
py
from django import forms from .models import Image,Profile,Comments class ImageForm(forms.ModelForm): class Meta: model = Image exclude = ['image_name', 'likes','user','profile','comments'] # widgets = { # 'tags': forms.CheckboxSelectMultiple(), # } cl...
[ "aline.nicole7@gmail.com" ]
aline.nicole7@gmail.com
5a1874482abbdd857dd7f934e6aef889e1c11e38
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_commercialism.py
9e09ea8f68ec64d83d9e926fdaf0cb983af5d158
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
#calss header class _COMMERCIALISM(): def __init__(self,): self.name = "COMMERCIALISM" self.definitions = [u'the principles and activity of commerce, especially those connected with profit rather than quality or doing good'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} ...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
973bf4a1bc852efaa74a10f6ea3c1548fc8bd3da
55647a80c8b412af9df0ba3f50595cc2f29c25e6
/res/scripts/common/Lib/plat-os2emx/IN.py
4106b079428faa0be3a055320a5a82364e207dc1
[]
no_license
cnsuhao/WOT-0.9.17-CT
0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb
d1f932d8cabaf8aa21708622e87f83c8d24d6451
refs/heads/master
2021-06-08T18:11:07.039293
2016-11-19T19:12:37
2016-11-19T19:12:37
null
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
2,138
py
# 2016.11.19 20:01:08 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/plat-os2emx/IN.py PAGE_SIZE = 4096 HZ = 100 MAXNAMLEN = 260 MAXPATHLEN = 260 def htonl(X): return _swapl(X) def ntohl(X): return _swapl(X) def htons(X): return _swaps(X) def ntohs(X): return _swaps(X) IPPR...
[ "info@webium.sk" ]
info@webium.sk
1f5eeb1362379c5c3b4038b981bfe90f79acab37
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/semantic_segmentation/Ultra-Fast-Lane-Detection/scripts/convert_tusimple.py
112ae4d113e7480f3b05e412d7499966a93165a3
[ "MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
6,498
py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
8deed70e29027f1dfb4b831b5f3bedafcc194e64
5ee5853eb335fcf575d4344366ef9b4bce03570d
/pr1658m/min_operations.py
2008296fd086a4c60d9774021e9bc8ae9d23e3b3
[ "MIT" ]
permissive
l33tdaima/l33tdaima
15463fb2f8d61286a4a3a7bacaaee2ab1f7c4f43
f35305c618b383a79d05074d891cf0f7acabd88f
refs/heads/main
2023-07-20T21:52:26.330301
2023-07-19T02:30:22
2023-07-19T02:30:22
99,509,451
1
0
MIT
2018-10-31T15:10:49
2017-08-06T19:44:29
JavaScript
UTF-8
Python
false
false
772
py
from typing import List class Solution: def minOperations(self, nums: List[int], x: int) -> int: target = sum(nums) - x if target == 0: return len(nums) ans, s, smap = 0, 0, {0: -1} for i, n in enumerate(nums): s += n if s - target in smap: ...
[ "l33tdaima@github.com" ]
l33tdaima@github.com
b03961fffa86ad304863eef3bced898e77c688c3
c55aedc3479a4d311fb406d8133b0e0ceb99d2df
/example/kdtree_0_base/kdtree_3_mesh_color.py
7304ed067ce6dd6971b19b2aab7ca20736696a5c
[]
no_license
tarwcz111111111/DashCam_python
4a33cdb3e5a8368b81ddc7c0596d4f0802b7c9d6
6e025ff49261c146205eb56bbbf4175f1d413f54
refs/heads/master
2020-08-25T04:55:16.695561
2017-08-28T04:34:59
2017-08-28T04:34:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,067
py
#!/usr/bin/python3 # ============================================================== # Pack the matrix process into google parse # ============================================================== import numpy as np import triangle from glumpy import glm import sys sys.path.append('/home/andy/Documents/gitHub/DashCam_pyth...
[ "ydnaandy123@gmail.com" ]
ydnaandy123@gmail.com
80149282aabb59543236536d133ab52397c545e0
672809bd026d006e785f87c72995a2f368702d63
/site_main/matcher/matcher.py
439dbfb48a1e1430f417dd3e2fda9da149d0dabc
[]
no_license
kz26/uchicagolunch
34c391688897dc88edc78ccc771805c2f76d64d5
f1b0415856e7a62a8ca12ea824af3483a80c876d
refs/heads/master
2016-09-06T17:35:21.703308
2012-03-23T23:00:36
2012-03-23T23:00:36
2,806,713
2
0
null
null
null
null
UTF-8
Python
false
false
2,249
py
from site_main.models import * from site_main.emails import * from datetime import datetime, timedelta, date, time import edmonds from random import choice # find and process matches # returns a list of newly created Match objects def run(): # retrieve a list of unfilled requests def getRequests(): req...
[ "whitehat2k9@gmail.com" ]
whitehat2k9@gmail.com
0e036c343fc1a1037156ec9e3dc7c44563c81dbf
b23bb2c9c98909c53e779e762c359fdb7b0cf412
/tests/unit/raml/tests/test_traits.py
b6eeb58116958ff7ca17198f63b8cd6eedbd49c1
[ "MIT" ]
permissive
mpetyx/pyapi
4902e97340e2597fcfe52968dc6902a96d9a3448
1c8c5b392e8a943ebff0864b129defdbf21570f2
refs/heads/master
2021-01-06T20:37:33.974145
2015-05-26T10:06:41
2015-05-26T10:06:42
29,341,456
4
1
null
null
null
null
UTF-8
Python
false
false
2,330
py
__author__ = 'ad' import os.path from pyapi.libraries.pyraml_parser_master import pyraml from pyapi.libraries.pyraml_parser_master.pyraml import parser from pyapi.libraries.pyraml_parser_master.pyraml.entities import RamlRoot, RamlTrait, RamlBody, RamlResourceType fixtures_dir = os.path.join(os.path.dirname(__file_...
[ "mpetyx@gmail.com" ]
mpetyx@gmail.com
7ee2fd4d8932d9ae1e9f9b0a3189f6b31cfc3a56
e87532daceef2e6d0db72238d647c5bde0993198
/apps/market/urls.py
ab5af579c5daee08bd75cf7d23a5bc60b9ba297d
[]
no_license
brijmohan/zamboni
cddfd07078c3eae902785d007c1f1e94b581c269
57eca56bfeae4f28547856d64284d10970905809
refs/heads/master
2020-12-25T03:11:58.888828
2011-10-24T09:25:06
2011-10-25T18:26:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
from django.conf.urls.defaults import patterns, url from addons.urls import ADDON_ID from market import views urlpatterns = patterns('', url(r'^verify/%s$' % ADDON_ID, views.verify_receipt, name='api.market.verify'), )
[ "amckay@mozilla.com" ]
amckay@mozilla.com
7def4e2f75e56070b0616fabe06c78a5747b2448
0b793bce2da8c3d09b7956c0672ddbffd46feaed
/yukicoder/yuki051.py
75ec2cd5a033f3facff8694ae9a30e1056ed7097
[ "MIT" ]
permissive
knuu/competitive-programming
c6c4e08fb231937d988bdc5a60a8ad6b31b97616
16bc68fdaedd6f96ae24310d697585ca8836ab6e
refs/heads/master
2021-01-17T09:39:02.647688
2020-11-07T03:17:22
2020-11-07T03:17:22
27,886,732
1
0
null
null
null
null
UTF-8
Python
false
false
114
py
W = int(input()) D = int(input()) task = [] sumTask = 0 for rest in range(D, 1, -1): W -= W//rest**2 print(W)
[ "premier3next@yahoo.co.jp" ]
premier3next@yahoo.co.jp
8230cf200ed8c3a204e1cdb5def5c66e6fbfd784
f7aa97fe19b431523f35dc5badc9e8ff919ffa00
/fss17/project/tools/axe/libWhere.py
2731db6b521497034bcb603c18bfc22c6d81453a
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
rahlk/fss17
3b331427d450c5bb46b71b4aa5c77c59a8ec0a70
49e22c4ad01ff751f24c3e5702b7fa36a3a18e96
refs/heads/master
2021-01-19T18:03:13.364689
2017-12-12T12:51:28
2017-12-12T12:51:28
101,105,693
0
0
null
null
null
null
UTF-8
Python
false
false
7,919
py
""" # Support Code ## Standard Headers """ from __future__ import division, print_function import random import sys sys.dont_write_bytecode = True from settingsWhere import * """ ## Simple, low-level stuff ### Maths Stuff """ def gt(x, y): return x > y def lt(x, y): return x < ...
[ "i.m.ralk@gmail.com" ]
i.m.ralk@gmail.com
9d92f42947a9a168d3bebbdd5e5d06464b004d38
b87f66b13293782321e20c39aebc05defd8d4b48
/maps/build/mayavi/enthought/tvtk/tests/test_class_tree.py
963470a3f830e41f91e935de287c3b563a80c44f
[]
no_license
m-elhussieny/code
5eae020932d935e4d724c2f3d16126a0d42ebf04
5466f5858dbd2f1f082fa0d7417b57c8fb068fad
refs/heads/master
2021-06-13T18:47:08.700053
2016-11-01T05:51:06
2016-11-01T05:51:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,944
py
# Author: Prabhu Ramachandran # License: BSD style # Copyright (c) 2004, Enthought, Inc. """Tests class_tree.py. Uses the vtk module to test the code. Also tests if the tree generation works for the __builtin__ module. """ import unittest from enthought.tvtk import class_tree import vtk import __builtin__ # This...
[ "fspaolo@gmail.com" ]
fspaolo@gmail.com
87bfa0465302e0f16e8e9caa8994ab7d156cc520
1eb960cec1c1bc891ea7cb9874b11182d753fabb
/news/migrations/0004_message_to_user.py
197b9b145a6e878b07a38558f57a7fb1d0ef7532
[]
no_license
squallcs12/kidnews-fbhack
516f87160042389b9a9be1016d6a71dc95f97d13
154368a40b2042671b933a9ac53ca2e469266c84
refs/heads/master
2021-01-19T04:24:35.254491
2016-07-31T03:27:42
2016-07-31T03:27:42
64,523,457
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-07-30 11:08 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependen...
[ "daotranbang@gmail.com" ]
daotranbang@gmail.com
49520f217fc253f8dd6e40a4f3b78353bec18c90
4a8c1f7d9935609b780aff95c886ef7781967be0
/atcoder/_codeforces/1303_c.py
4d8b66d7ea2f0f8e979a1a705aaa21fe7ae12ec1
[]
no_license
recuraki/PythonJunkTest
d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a
2556c973d468a6988d307ce85c5f2f8ab15e759a
refs/heads/master
2023-08-09T17:42:21.875768
2023-07-18T23:06:31
2023-07-18T23:06:31
13,790,016
0
0
null
null
null
null
UTF-8
Python
false
false
7,826
py
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): q = int(input()) for _ in range(q): s = input() d = dict() f = True # STEP1: 入力文字列から隣り合う文字の関係を作る for i in range(len(s)): # 前後の文字を得る ...
[ "glenda.kanai@gmail.com" ]
glenda.kanai@gmail.com
0b3c6f4f9fd250ff776a7798baaea5f2b0d80fcc
60b704673152dfa5130405ce2a318b710fc3b120
/wrappers/arlexecute/simulation/testing_support.py
58f5c5bf0e5ccc0c1fe13b471934c2d5a6963bbc
[ "Apache-2.0" ]
permissive
rstofi/algorithm-reference-library
02b8e6735141fbbc1941cef2f36c8ed7ef2c3e38
03415e18ea55afc54eb9534dcd0ca2c7a4b0020a
refs/heads/master
2020-04-05T20:08:40.043608
2019-11-22T09:16:48
2019-11-22T09:16:48
157,166,061
1
1
null
null
null
null
UTF-8
Python
false
false
1,384
py
""" Functions that aid testing in various ways. """ from processing_components.simulation.testing_support import create_test_image from processing_components.simulation.testing_support import create_test_image_from_s3 from processing_components.simulation.testing_support import create_low_test_image_from_gleam from p...
[ "realtimcornwell@gmail.com" ]
realtimcornwell@gmail.com
3c0dc092ed3f1e25bb2a30dd063ff2039cc1f90e
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/fv/rtshardedregisterupdates.py
54620b697d7fe65c493e10a884b52b49d7a818ec
[]
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
4,386
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...
[ "bkhoward@live.com" ]
bkhoward@live.com
474b5eb47ebc4029a4d155c60b3998250e41f214
81ec35443bc2567118aece66254c021e73f960d1
/python3/10.8.dates_and_times.py
5cdf7b5a8067e22dcf2ab6a0481b3b184e4d981b
[]
no_license
folkol/tutorials
95f1d641843cc26c04a79f74270721c7de4ac628
962b0fd89dac244e7f9dcb03773a25d96413fb0b
refs/heads/master
2023-08-17T18:50:18.358911
2023-08-02T20:46:53
2023-08-02T20:47:35
66,833,956
0
0
null
2023-09-05T03:40:46
2016-08-29T10:26:01
JavaScript
UTF-8
Python
false
false
331
py
from datetime import date now = date.today() print(now) # 2017-06-04 print(repr(now)) # datetime.date(2017, 6, 4) s = now.strftime('%m-%d-%y. %d %b %Y is a %A on the %d say of %B') print(s) # 06-04-17. 04 Jun 2017 is a Sunday on the 04 say of June birthday = date(1980, 11, 2) age = now - birthday print(age.days...
[ "mattias4@kth.se" ]
mattias4@kth.se
ee00de44f4a031e1d7bf9de64e82c1f55cbf8028
f22ca9aecda111a019502b462ce6772cb22d9425
/test/test_cart_warehouse.py
9147d67572c24863d56bc019a5bda0aaabd271d4
[]
no_license
sivanv-unbxd/a2c-sdk-pim
cac05bc6335ddc3c4121d43e2dc476a6fec14965
51a07a0b7f90d74569ad14b47b174da7ac1fc374
refs/heads/main
2023-05-29T05:45:32.279821
2021-06-09T03:52:11
2021-06-09T03:52:11
375,218,584
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
# coding: utf-8 """ Swagger API2Cart API2Cart # noqa: E501 OpenAPI spec version: 1.1 Contact: contact@api2cart.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.models.cart...
[ "sivanv@unbxd.com" ]
sivanv@unbxd.com
014f19f93ff2542d81ce256e5af79c1fc0117b20
8981902427dc577228dfd5611c6afe86c3e2e9e2
/dsmr_mqtt/services.py
6a268e79b229fa528b8db0a29c46449e4d2c96f9
[]
no_license
genie137/dsmr-reader
5515f4f92bb05bcf00f0e8a0fbd1a018d408950b
4d934b4838cb2de4a66ff193f4f3095e9beecd99
refs/heads/master
2020-03-21T18:14:05.182137
2018-06-12T14:54:55
2018-06-12T14:54:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,411
py
import configparser import logging import json from django.core import serializers from django.utils import timezone import paho.mqtt.publish as publish from dsmr_mqtt.models.settings import broker, day_totals, telegram, meter_statistics from dsmr_consumption.models.consumption import ElectricityConsumption from dsmr...
[ "github@dennissiemensma.nl" ]
github@dennissiemensma.nl
6e26e8d19c926c36afe3f865217af8c274fafe78
3697d04e8daa01e880f8078bc38426eb23389b90
/test/test_inline_response2003_division_house.py
c10b49eb99d35d617188a9deabb9f6597d8c3b51
[]
no_license
Irishsmurf/OireachtasAPI
3e4ed3b6a1a0fd815cc929f16af0b3ef39d76e13
979d354d39cc2957c4009c62ef205215ae8ba123
refs/heads/master
2023-08-02T14:56:29.951977
2020-04-13T18:33:56
2020-04-13T18:33:56
255,411,309
3
0
null
null
null
null
UTF-8
Python
false
false
2,732
py
# coding: utf-8 """ Houses of the Oireachtas Open Data APIs The Houses of the Oireachtas is providing these APIs to allow our datasets to be retrieved and reused as widely as possible. They are intended to be used in conjunction with https://data.oireachtas.ie, from where our datasets can be accessed directly...
[ "dave@paddez.com" ]
dave@paddez.com
79534b04cc124bc0a45a563f8ce019c809409d7b
88994e2e840a70ec702cee09e1a13813aa6f800c
/tests/models/observations/test_observations_input_files.py
bccc95a62ae1ed7dbee2e604e345dec01f022f35
[]
no_license
Clinical-Genomics/cg
1e9eb0852f742d555a48e8696914ebe177f7d436
d2ec6d25b577dd6938bbf92317aeff1d6b3c5b08
refs/heads/master
2023-09-01T02:04:04.229120
2023-08-31T13:50:31
2023-08-31T13:50:31
82,567,026
19
8
null
2023-09-14T15:24:13
2017-02-20T14:29:43
Python
UTF-8
Python
false
false
2,578
py
"""Test ObservationsInputFiles pydantic model behaviour.""" from pathlib import Path import pytest from pydantic import ValidationError from cg.models.observations.input_files import ( MipDNAObservationsInputFiles, BalsamicObservationsInputFiles, ) def test_instantiate_input_files(observations_input_files_r...
[ "noreply@github.com" ]
Clinical-Genomics.noreply@github.com
295ec14910d6eed4f63d65c9bee28ee5a0f09e02
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03101/s233463572.py
458eadd851ed568091bfe75e21ec4e226498ce9a
[]
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
101
py
HW =[list(map(int,input().split())) for i in range(2)] print((HW[0][0]-HW[1][0])*(HW[0][1]-HW[1][1]))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f0d242c7365600fb0451f8713d71fc88924bdb39
0f20de2ffdac733e5c8a4116c820b1673081cf4c
/docs/source/conf.py
a0f2f5a6ff259c37eb9f4353957ab2566e6c4b3e
[ "BSD-2-Clause" ]
permissive
hdknr/flier
f13a0620bb36e8021e30ce7f1ac0337091ddf00e
eca75b972ed91c3107b5c6007366caf93313d8e8
refs/heads/master
2020-04-03T21:29:50.359464
2019-05-31T09:28:40
2019-05-31T09:28:40
20,241,076
0
0
null
null
null
null
UTF-8
Python
false
false
12,530
py
# -*- coding: utf-8 -*- # # flier documentation build configuration file, created by # sphinx-quickstart on Tue Oct 13 02:34:06 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
[ "gmail@hdknr.com" ]
gmail@hdknr.com
020d409514f60d8be97a9d22ef159566ead914e9
11b5de6bc38f1cf415ee2b743ce6e7da70e8ede3
/bin/split-seqs-by-id
dadb98424ce1875063d78de427e1ce7f1f3ff1ca
[ "MIT" ]
permissive
mkcor/bioinformatics-hacks
b21c6e3e3de4a1e28e1b2da754bf186a3faeb088
8f0894b8a0cc5595c7c1605ab3551a16e65d0f06
refs/heads/master
2020-07-13T22:48:17.092651
2019-07-24T22:38:58
2019-07-24T22:38:58
205,172,284
0
0
NOASSERTION
2019-08-29T13:38:32
2019-08-29T13:38:31
null
UTF-8
Python
false
false
917
#!/usr/bin/env python import argparse import logging from Bio import SeqIO def parse_args(): """ return arguments >>> args = parse_args() """ parser = argparse.ArgumentParser() parser.add_argument( "--log", default="/dev/stderr", help="log file (default=stderr)" ) parser.add...
[ "harekrishna@gmail.com" ]
harekrishna@gmail.com
130fb9e238720cf124db67fb1ce0d4358ee70e22
b4cf3438011c9521561143e677736c611ff19a0c
/setup.py
41f10d1828fa03e1a62e28eb8ac19b63cc45e852
[]
no_license
BUCT-Vision/boxx
3e5c24af20c06d4943dc04859e6cbfb577fe8a48
3d405c9ad744d2ff9f6f5d9efb1e31962474565b
refs/heads/master
2020-03-18T17:35:18.573106
2018-09-18T02:49:10
2018-09-18T02:49:10
135,037,392
2
0
null
2018-09-18T02:49:11
2018-05-27T10:44:44
Python
UTF-8
Python
false
false
6,981
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import os from datetime import date from setuptools import setup, find_packages # --- import your package --- #import boxx as package packageName = 'boxx' pyPath = '%s/__init__.py'%packageName if os.path.isdir(packageName) else '%s....
[ "ylxx@live.com" ]
ylxx@live.com
f236269f4776ca93d30e415a57352e31115a6d08
63519b144e8b2d881c8f6e99b9c61aae5ab408ca
/resample_topo_file.py
ae26bfab26aea5740e8dc612baab9465dfbfedc0
[]
no_license
kujaku11/sandbox_scripts
667d260ef42c3fe90c9543e0a938fdb104368700
080003cdae3a14fec5178d3e7a854d142ef3948c
refs/heads/master
2023-08-10T18:27:30.463398
2023-08-05T01:28:29
2023-08-05T01:28:29
75,033,125
5
2
null
null
null
null
UTF-8
Python
false
false
1,579
py
# -*- coding: utf-8 -*- """ Created on Tue Mar 26 15:06:46 2019 @author: jpeacock """ import numpy as np fn = r"c:\Users\jpeacock\Documents\Geothermal\GabbsValley\gis\gv_topo.txt" resample = 6 with open(fn, "r") as fid: nx = int(fid.readline().split()[1].strip()) ny = int(fid.readline().split()[1].strip()) ...
[ "peacock.jared@gmail.com" ]
peacock.jared@gmail.com
c3dfaa0899e4dab4d82c33038a74506baebc221a
560e212b000df60325d6a3cddd225aa4af69a8f8
/authentication/models.py
bf9cc5520e5f043e3db7e6a26072d08777b76001
[]
no_license
msrshahrukh100/Roba-Square-Website
c36964ee08536d6cfc1e2ced99c4cc61f5c03ace
3cfcbfc47541ae387bef9fe1e06c4046131841ba
refs/heads/master
2021-01-19T19:31:16.947352
2019-05-02T12:58:44
2019-05-02T12:58:44
88,420,401
1
0
null
null
null
null
UTF-8
Python
false
false
2,840
py
from django.db import models from django.contrib.auth.models import User from autoslug import AutoSlugField from authentication.username import get_user_name from django.dispatch.dispatcher import receiver from django.db.models.signals import post_save from django.core.urlresolvers import reverse from sorl.thumbnail im...
[ "msr.concordfly@gmail.com" ]
msr.concordfly@gmail.com
3575db317ab710ec595dfe6bf58cde5c8976f25f
f5807a07ad72be79d4626ce9fe4adbf6d9f32fd8
/base.py
93a3986b8ab2d67b417169c5971b26987241751e
[]
no_license
15101538237ren/papers_collecting
74ddeb708502bf62dfdd5fd734a515e6fd73986b
0e9c4e24a8edac6f77f27f7b1b53ea2c9069f652
refs/heads/master
2018-11-04T18:47:01.170290
2018-08-26T22:32:17
2018-08-26T22:32:17
115,414,479
0
0
null
null
null
null
UTF-8
Python
false
false
1,270
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import urllib2, os pkl_dir = 'pkl' papers_dir = 'papers' for dir_path in [pkl_dir, papers_dir]: if not os.path.exists(dir_path): os.makedirs(dir_path) paper_years = range(2013, 2018) ip = '10.138.232.71' port = '80' timeout = 20 def request_url(paper_collecti...
[ "renhongleiz@126.com" ]
renhongleiz@126.com
dab7bce199ef25196e9f4dfd86411d099ee56def
080bbe77da955b3917435c25fc63b90b0f3c724e
/test/acquisition/test_input_constructors.py
144ea489a484d666c00e808583655c1d2861ea97
[ "MIT" ]
permissive
irinaespejo/botorch
3d15d962ff0f5bb34fbd11b2eb7549db755af705
e4dcf603fdaf83f0e5f8b9b392f943c89dfff7eb
refs/heads/master
2023-07-11T18:02:11.853790
2021-08-19T15:57:21
2021-08-19T15:58:12
316,017,084
0
0
MIT
2020-11-25T18:02:11
2020-11-25T18:02:09
null
UTF-8
Python
false
false
22,973
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. from unittest import mock import torch from botorch.acquisition.acquisition import AcquisitionFunction from botorch.ac...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
1e9a333a9a9085b4606cf1e5bd53b40f54343772
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startCirq860.py
2953abe4bd2707aa6a6ffda17ae295e957dbe753
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
3,432
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=5 # total number=42 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
7210e8c2d7640f4f2c4816aa750335f3e49bef62
b76289396b22eda191f25744a600fac2abaf8850
/hphp/tools/lldb/lookup.py
b2b6eaff45248b34068d08137fb0a176d2b21d29
[ "MIT", "PHP-3.01", "Zend-2.0" ]
permissive
fengjixuchui/hhvm
cb8cece7afd025fb8cdf8479c2a0696f38730949
bbbb1782fa258b8dd526ffc7e8ba0f6115931bff
refs/heads/master
2023-03-15T15:55:46.355422
2023-01-27T13:59:08
2023-01-27T13:59:08
175,142,159
0
1
NOASSERTION
2021-11-03T11:22:20
2019-03-12T05:34:16
C++
UTF-8
Python
false
false
4,595
py
import lldb import shlex try: # LLDB needs to load this outside of the usual Buck mechanism import idx import utils except ModuleNotFoundError: import hhvm_lldb.idx as idx import hhvm_lldb.utils as utils def lookup_func(func_id: lldb.SBValue) -> lldb.SBValue: """ Find the function correspondi...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
e27d3ae4da61d77e608163c32861f19c4bc6f1e5
56bd9b3518f21080a0493f5330249bf5e85289fd
/patches_tool/aws_patch/aws_deps/libcloud/compute/drivers/joyent.py
dcf15dd66846793bd7529d7eb9cc9e240734edac
[ "Apache-2.0" ]
permissive
kevin-zhangsen/badam
da680bf8669722b5bc922381537bc4762fa5c228
6823f7dcd7c1b54c3b38edeffe59c16317598a2c
refs/heads/master
2020-04-01T13:43:03.300155
2015-10-29T01:07:46
2015-10-29T01:07:46
45,371,347
2
0
null
2015-11-02T04:02:50
2015-11-02T04:02:47
null
UTF-8
Python
false
false
8,019
py
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not ...
[ "nash.xiejun@gmail.com" ]
nash.xiejun@gmail.com
c907c4f4f301e61388810fc7e3c7e42f5ac94dc1
901944f407f4a06a4c4027d6139ce21165976857
/BVAE/BVAE/BVAE_v3/BVAE.py
d10f489da3025ce358d75445e5c372e27b0ff788
[]
no_license
chriscremer/Other_Code
a406da1d567d63bf6ef9fd5fbf0a8f177bc60b05
7b394fa87523803b3f4536b316df76cc44f8846e
refs/heads/master
2021-01-17T02:34:56.215047
2020-05-26T13:59:05
2020-05-26T13:59:05
34,680,279
7
4
null
null
null
null
UTF-8
Python
false
false
8,404
py
# Bayesian Variational Autoencoder import numpy as np import tensorflow as tf import pickle from os.path import expanduser home = expanduser("~") from utils import log_normal as log_norm from utils import log_bernoulli as log_bern from NN import NN from BNN import BNN class BVAE(object): def __init__(self, ...
[ "chris.a.cremer@gmail.com" ]
chris.a.cremer@gmail.com
61d5e23c19070da8ec467f74852e7096b33ab380
fcde32709c62b8ee86da459bb7c8eee52c848118
/爬虫1905/day09/spider_day09_course/day09/Maoyan/Maoyan/settings.py
c4dbf33b7ab54d502aa651701fc4157d30dcb0bc
[]
no_license
klaus2015/py_base
6b92d362c3d7dc0e09205a037f4d580381dac94d
ec32c731c1c2f6a0dab87f1d167397e4fa86b8de
refs/heads/master
2022-07-28T15:49:30.383648
2020-05-11T15:31:43
2020-05-11T15:31:43
261,777,278
0
0
null
null
null
null
UTF-8
Python
false
false
3,382
py
# -*- coding: utf-8 -*- # Scrapy settings for Maoyan project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/topics...
[ "598467866@qq.com" ]
598467866@qq.com
cf4349e66001ff7285d399063205aebeb68ba443
fe06311a7de13a02ca0be37d84c542c3cece3f33
/Chapter38/file_38_2a.py
8fd1b4c07a9deadcb2e9460ccbcdfe4b3dbce9c8
[]
no_license
mooksys/Python_Algorithms
a4a84ddabc34ec4b7cc0ac01d55019880af38514
375817e3dfdec94411cf245fe3f685a69d92b948
refs/heads/master
2020-08-24T06:35:05.791979
2018-07-30T01:22:24
2018-07-30T01:22:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
def display_line(): print("-----------------------------") # 메인 코드 print("안녕하세요!") display_line() print("어떻게 지내세요?") display_line() print("당신의 이름은 무엇입니까?") display_line()
[ "jeipubmanager@gmail.com" ]
jeipubmanager@gmail.com
fc0ff4e09563e741c446e2a0640f0afeae7c17bc
af8ccb3655f28068156fdb9cc8aafe7ea83d4f1f
/src/wheel/vendored/packaging/_manylinux.py
2f0cc7439a00da8e418a314d587f215d757320a1
[ "MIT" ]
permissive
pypa/wheel
abfc248c9dc8e9c909f696b2967bc2745ca38bf8
e76040b0d970a0fe6211c31888fc929078ba02d9
refs/heads/main
2023-08-22T20:54:56.004832
2023-08-22T09:29:26
2023-08-22T09:29:26
98,346,885
464
169
MIT
2023-09-12T07:44:29
2017-07-25T20:24:25
Python
UTF-8
Python
false
false
8,813
py
import collections import contextlib import functools import os import re import sys import warnings from typing import Dict, Generator, Iterator, NamedTuple, Optional, Tuple from ._elffile import EIClass, EIData, ELFFile, EMachine EF_ARM_ABIMASK = 0xFF000000 EF_ARM_ABI_VER5 = 0x05000000 EF_ARM_ABI_FLOAT_HARD = 0x000...
[ "alex.gronholm@nextday.fi" ]
alex.gronholm@nextday.fi
8f14c453c8eb93b243a01aaf1d3cbb6e7c511f2a
3740de0d6e43ea140fc09ab314e4c492603ba185
/scripts/sources/S_TruncatedLFM.py
5972eb45ef92ce35b93b076421fd884df883530c
[ "MIT" ]
permissive
s0ap/arpmRes
29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
refs/heads/master
2022-02-16T05:01:22.118959
2019-08-20T16:45:02
2019-08-20T16:45:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,661
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.4' # jupytext_version: 1.1.4 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # S_Tr...
[ "dario.popadic@yahoo.com" ]
dario.popadic@yahoo.com
60c0e73dc9ba74860ee5ee068272a5e264532ab6
f5e567f11102f0d0f52e07d7bed1b1c41576cdd1
/0x08-python-more_classes/3-rectangle.py
85e83f5928cc034dd822d747b1fb095d9b123be1
[]
no_license
AndresEscobarDev/holbertonschool-higher_level_programming
f0a39f5ae394612d9cec38e541e154a75ac43afb
9e55e0427e631a670c0c7781e2e3819f6b50d825
refs/heads/master
2022-12-16T13:39:05.993853
2020-09-25T04:49:25
2020-09-25T04:49:25
259,411,120
0
0
null
null
null
null
UTF-8
Python
false
false
1,590
py
#!/usr/bin/python3 """Rectangle Module""" class Rectangle(): """Empty Rectangle class.""" def __init__(self, width=0, height=0): self.width = width self.height = height @property def width(self): """retrieves the width""" return self.__width @width.setter def ...
[ "felipeescobar15@gmail.com" ]
felipeescobar15@gmail.com
cd8f8dd9bf4d6c67daa0fb89300d6ddc0c1b004d
01733042e84a768b77f64ec24118d0242b2f13b8
/ixnetwork_restpy/testplatform/sessions/ixnetwork/statistics/view/view.py
f6edfd301e9a0b8c6ac746ca63a16dfed45e836f
[ "MIT" ]
permissive
slieberth/ixnetwork_restpy
e95673905854bc57e56177911cb3853c7e4c5e26
23eeb24b21568a23d3f31bbd72814ff55eb1af44
refs/heads/master
2023-01-04T06:57:17.513612
2020-10-16T22:30:55
2020-10-16T22:30:55
311,959,027
0
0
NOASSERTION
2020-11-11T12:15:34
2020-11-11T12:06:00
null
UTF-8
Python
false
false
40,901
py
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, ...
[ "andy.balogh@keysight.com" ]
andy.balogh@keysight.com
f8bbd93b19a00ccaa1785f21de10d7ee85c0d2f2
eeea27393aa91ded7452f8ba3b9e59de34b352e3
/tests/test_fetch_branch_descriptions.py
0c9edc9ee8d800b318df303b75bfb9e8f496f979
[ "MIT" ]
permissive
timbrel/GitSavvy
021654f9dba690601f2a2ea4696230ac3c14dc88
7f6eae583ba4a38749b14a6e348c6d4fcf6811e8
refs/heads/master
2023-09-05T20:02:14.775466
2023-07-18T11:17:15
2023-07-18T11:17:15
29,417,074
174
32
MIT
2023-07-29T15:56:38
2015-01-18T05:40:08
Python
UTF-8
Python
false
false
1,247
py
from textwrap import dedent from unittesting import DeferrableTestCase from GitSavvy.tests.mockito import when from GitSavvy.tests.parameterized import parameterized as p from GitSavvy.core.git_command import GitCommand examples = [ ( dedent("""\ branch.status-bar-updater.description One\\nTwo ...
[ "herr.kaste@gmail.com" ]
herr.kaste@gmail.com
e7c2e47da66a553d505b55a3d937d30f2c820114
0fffdc47f9876c665926d1b67e1cf8ecb0e735d7
/awesimsoss/generate_darks.py
1cf8b7919ce3f06119722ebc9727a79957aa07b5
[ "MIT" ]
permissive
nespinoza/awesimsoss
439c0857bc38b6f307f4dfd705b667c880b6fa0a
24455b703f846a66cd2c3f6f7edc3960c129e031
refs/heads/master
2020-12-27T22:17:39.027475
2020-04-07T21:35:23
2020-04-07T21:35:23
238,078,808
0
0
MIT
2020-04-07T21:35:24
2020-02-03T22:56:39
Jupyter Notebook
UTF-8
Python
false
false
7,973
py
#! /usr/bin/env python import os import numpy as np import astropy.io.fits as fits from . import noise_simulation as ng def add_dark_current(ramp, seed, gain, darksignal): """ Adds dark current to the input signal Parameters ---------- ramp: sequence The array of ramp images seed: i...
[ "jfilippazzo@stsci.edu" ]
jfilippazzo@stsci.edu
057491a1237ffc4bef99c167ba0dcb7674f14ccd
45ab4c22d918dc4390572f53c267cf60de0d68fb
/src/Analysis/Engine/Impl/Typeshed/third_party/2and3/requests/sessions.pyi
c01b5e15dd227f974e24e619ea84e3f29113ac3c
[ "MIT", "Apache-2.0" ]
permissive
sourcegraph/python-language-server
580a24fd15fe9d4abeb95e9333d61db1c11a2670
64eae156f14aa14642afcac0e7edaf5d7c6d1a1c
refs/heads/master
2023-04-09T21:17:07.555979
2018-12-06T23:25:05
2018-12-06T23:25:05
155,174,256
2
2
Apache-2.0
2018-10-29T08:06:49
2018-10-29T08:06:49
null
UTF-8
Python
false
false
5,198
pyi
# Stubs for requests.sessions (Python 3) from typing import Any, Union, List, MutableMapping, Text, Optional, IO, Tuple, Callable, Iterable from . import adapters from . import auth as _auth from . import compat from . import cookies from . import models from .models import Response from . import hooks from . import u...
[ "alsher@microsoft.com" ]
alsher@microsoft.com
cc94128aa202a02289d2a1af9bf3cdb56f1c5360
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Scripts/Downloading Files.py
1d0d790a38a971745fd005fe0779c1009c3cd171
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:c75100f4f9546784ea8796f60c014b05c1a6d85dc6339a653778693693dfda95 size 570
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
3cf9f47ccdd76898354a87cd03513c3853c0f2f5
60107fe4be58b8a96304ef1128c1514943efa2f9
/19.py
24b945692299a9de4f40994b0f287d7f28c65b75
[]
no_license
Aidana172003/TSIS6
5293d23a2827644aaea2962f964e71efe7a42708
3451f73507171782d558a75a1bd46be7ecda2914
refs/heads/main
2023-06-12T06:35:46.043423
2021-07-08T07:23:30
2021-07-08T07:23:30
384,037,383
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
def test(a): def add(b): nonlocal a a+=1 return a+b return add func=test(4) print(func(4))
[ "noreply@github.com" ]
Aidana172003.noreply@github.com
b282ae4a8df3eb798acfcdf196f7e3f240860174
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/identity/azure-identity/tests/managed-identity-live/test_cloud_shell.py
aa125848a2efed089f300301bbc93f86011acc2c
[ "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
1,113
py
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import pytest from azure.core import PipelineClient from azure.core.pipeline.policies import ContentDecodePolicy, HttpLoggingPolicy, RedirectPolicy, RetryPolicy from az...
[ "noreply@github.com" ]
Azure.noreply@github.com
0e6fd93f5f79c5c1a20e94ccb2adab320a1de061
a2e638cd0c124254e67963bda62c21351881ee75
/Python modules/PasswordSub.py
5ce89e5c41ce5e79cabb90ced4794759293b987b
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,225
py
import sys import ael import time import string ael_variables = [] def check_password(user): time.sleep(6) mailto = user.updat_usrnbr.userid msg = 'To change a password go to File -> Preferences -> Passwords -> ADS.' #if user.updat_usrnbr.userid != ael.User[user.updat_usrnbr].upda...
[ "nencho.georogiev@absa.africa" ]
nencho.georogiev@absa.africa
7e15206079e2328ba961416fe868740e2f8a4dbb
ae29491fdfa0ef139e2146e3cdb088781efd1ff0
/lang.py
386349f17dc3daf551943a692231a5b254605dfc
[]
no_license
PyLamGR/Aurora-Bot
bcaa131811d7d05dc6bdb909f5f7b7f6f0ca250c
1904eff6133765568f2e72c076827e3d8d6f4e8e
refs/heads/master
2020-03-22T19:39:05.878137
2018-07-13T11:08:52
2018-07-13T11:08:52
140,542,391
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
from configs import lang # TODO: Automate this process # https://stackoverflow.com/questions/18090672/convert-dictionary-entries-into-variables-python TAG_REQUIRED = lang['TAG_REQUIRED'] MEMBER_NOT_FOUND = lang['MEMBER_NOT_FOUND'] UNKNOWN_ERROR = lang['UNKNOWN_ERROR'] # # locals().update(lang) # # for name, value in l...
[ "wckdawe@gmail.com" ]
wckdawe@gmail.com
c553c8c848f14f4ef73947ba0fa585fe765d4784
a1afebeb04af3e9bbe5e9cf8a2468d8f1a99f9cc
/import-pipelines/LaserChron/setup.py
4b3eecd661b858b658f0d15b18d3e96eb5051943
[]
no_license
yeshancqcq/Sparrow
0f4527740d0f1cca535e7b59384bcbe9ccaa1682
dcfd2eeacc524ae752e6e68ea84fa4e58645337d
refs/heads/master
2020-05-29T22:41:24.235748
2019-07-29T20:42:01
2019-07-29T20:42:01
189,416,026
0
0
null
2019-05-30T13:09:46
2019-05-30T13:09:46
null
UTF-8
Python
false
false
235
py
from setuptools import setup setup( name='sparrow_import_laserchron', version='0.1', package_dir={'sparrow_import_laserchron': 'sparrow_import_laserchron'}, install_requires=['sqlalchemy', 'pandas', 'xlrd', 'click'] )
[ "dev@davenquinn.com" ]
dev@davenquinn.com
d2a233ab84eb7fdc73b95443c1c2f1fabfdbcacc
4054fde482f06ba5566ff88ff7c65b7221f4fd91
/forml/flow/_code/compiler.py
bb259a1f4a1644ef19cecd1802c15d986858773d
[ "Apache-2.0" ]
permissive
formlio/forml
e54278c2cc76cdfaf9d4feb405bd1a98c6dcd3e6
373bf4329338a9056e43966b8cfa458529ed2817
refs/heads/main
2023-06-07T21:38:34.952453
2023-05-28T21:53:47
2023-05-28T21:53:47
310,066,051
108
15
Apache-2.0
2023-05-28T19:38:16
2020-11-04T17:04:13
Python
UTF-8
Python
false
false
11,993
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "antonymayi@yahoo.com" ]
antonymayi@yahoo.com
de671b4fca33d2cc397e7ef03128b134a2feba3a
22a8d887247f5620221f17906f26eba529aac4bb
/TwoTwo/eLEVEN.py
4a5b0baab0caa5106099665ff752b371390f06d1
[]
no_license
mubaskid/new
2255c01a189068661c47bb4ce77e7d505d1ce23b
56996963b5ed069907848adc66bfdd27cc24539e
refs/heads/master
2023-06-09T09:46:43.744027
2021-04-21T13:47:06
2021-04-21T13:47:06
356,242,664
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
def sum_double(a, b): if a is b: return 2 * (a + b) else: return a+b
[ "77334849+mubaskid@users.noreply.github.com" ]
77334849+mubaskid@users.noreply.github.com
db1cdee845b4b624fb660b2aea764c2af6c1f65a
e982ad81d18e3a983756b4c90311b007b9d5e276
/pyspec/wxui/project.py
62378ccb4286bfa0c3941582a2dfb6ee91771e7f
[ "MIT" ]
permissive
jyotijaya/pyspec
2ca4428c3c9924154f7467edbdc1d8fddd59a817
ae7a4de39beb3cf2e0838b6c3a9ef73d082445eb
refs/heads/master
2022-12-27T20:42:15.818388
2020-10-01T11:50:19
2020-10-01T11:50:19
300,260,536
0
0
NOASSERTION
2020-10-01T11:49:40
2020-10-01T11:49:39
null
UTF-8
Python
false
false
5,504
py
# -*- coding: ascii -*- __pyspec = 1 import os import time import ConfigParser import pyspec.util import pyspec.project class WxPySpecProject(pyspec.project.PySpecProject): def __init__(self, file_or_filename=None, last_used_time=None): super(WxPySpecProject, self).__init__(file_or_filename, does_read=F...
[ "yoshiki@shibu.jp" ]
yoshiki@shibu.jp
33ac8635e4bcb4c809545df017ca374fe921575c
c4209246ef01b1276b443bf7ce887d0b30b242dc
/test.py
2ddc2ea00909e1ebff009ba662fb851d05232ab1
[]
no_license
avmangu/SURF-2017
55237d48e92647d3c7ccce3f7911d52218a85e85
6f25798e96fdae9006285b99f76861fc2196f2ce
refs/heads/master
2020-03-21T04:14:18.866034
2018-06-21T00:17:39
2018-06-21T00:17:39
138,098,331
0
0
null
null
null
null
UTF-8
Python
false
false
3,217
py
import matplotlib.pyplot as plt import matplotlib.animation as animation import time fig = plt.figure() ax1 = fig.add_subplot(1,1,1) # Crunch Input Data to Create Scanner Positions + Plot Coordinates def liveGather(center, fine_range, fine_n, course_range, course_n): # STEPS fine_step = (fine_range - ...
[ "you@example.com" ]
you@example.com
d93be9e28631574f08d987345e6a4340eb40a6d6
6ba506c39a7e32389b2933e21634c6fc79f16c3b
/tensorflow_graphics/rendering/opengl/rasterization_backend.py
26cec9b2e747aeaf5921c60b0d0b5b0c513baf6a
[ "Apache-2.0" ]
permissive
kennycaiguo/graphics
4edac0792b4494efdfdafceb500a24bb59b892fe
4ffdf25ce7c3a27814a930e285c941752cc128e5
refs/heads/master
2023-06-12T18:11:01.858950
2021-07-05T13:44:40
2021-07-05T13:45:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,323
py
# Copyright 2020 The TensorFlow Authors # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
fbb9b24bdcac31d3b67697b3d22d73c4739a0aa7
482f69590cc30c5cf0057ecf6d7ec12e9092e2e1
/backend/Date_Ocr/manage.py
2ffea550449aff383cf89893460e73de391bed3d
[ "MIT" ]
permissive
namanMANU/date-ocr
d16c62848b90718276bfef0b3b59707491a7f20e
ff2966b23964fe07b19638cb8afe24749144bd97
refs/heads/master
2022-12-05T02:59:39.220858
2020-04-06T01:40:32
2020-04-06T01:40:32
253,369,132
0
0
MIT
2022-11-22T05:00:00
2020-04-06T01:37:08
Python
UTF-8
Python
false
false
628
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', 'Date_Ocr.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impor...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
f478aeaf0498b9d894f8fa4b13a10a86c87251ff
ebcc57cbd7bc4c951fe3cf9826efc2d03d1e47e8
/educative/05 Cyclic Sort/01 Cyclic Sort (easy).py
db806e81a23f57c1763200df5dc4238ef520c8ee
[]
no_license
Vahid-Esmaeelzadeh/CTCI-Python
17a672e95f1d886f4fb66239a4aa22a87f38382a
867360ab13dd63d24d6f3e45b5ac223755942b54
refs/heads/master
2022-10-26T16:43:54.939188
2020-06-11T21:42:15
2020-06-11T21:42:15
190,065,582
0
0
null
null
null
null
UTF-8
Python
false
false
886
py
''' Cyclic Sort We are given an array containing ‘n’ objects. Each object, when created, was assigned a unique number from 1 to ‘n’ based on their creation sequence. This means that the object with sequence number ‘3’ was created just before the object with sequence number ‘4’. Write a function to sort the objects in...
[ "v.esmaeelzadeh@gmail.com" ]
v.esmaeelzadeh@gmail.com
f2a61a0f7f387402f930c3178fe8175461504e36
89841a2b522b7b1ab7965560f62b4b401b2d0a4d
/text to speech python/text_to_speech.py
cfecef0e9236cc11bba0cba88bd60dbf68b2212e
[]
no_license
sidd5sci/python-basics
14d621d52d3219943e2b0136c610dd769cc36a29
fea620141292cb6beee782cddb5a7d4eeb067e9a
refs/heads/master
2021-01-20T00:22:29.496330
2017-04-22T17:03:00
2017-04-22T17:03:00
89,123,461
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
import pyttsx engine = pyttsx.init() engine.say('Only one species is there Both male and female are presennt Red ones are the male and black ones are the femaleReproduction occur when male and female collide and having health > 60') engine.runAndWait()
[ "sidd5sci@gmail.com" ]
sidd5sci@gmail.com
26acd2756fd155e15a131af4bb0fd06493c314ab
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_116/ch22_2020_03_04_13_01_47_611677.py
59962a24516fb71ebe20afd1ff6b9dfe862676ef
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
def ft(t,n): z=(n*(t*360)*(0.00694444)) return z t=int(input('tempo em anos')) n=int(input('cigarros por dia')) print(int(ft(t,n)),('anos perdidos'))
[ "you@example.com" ]
you@example.com
b2dcc21f07cc5c003b4b60d9f1824b416014563d
a8547f73463eef517b98d1085430732f442c856e
/numpy/f2py/tests/test_return_complex.py
c201f4955dbec04b51e030f3be61506afcc505cd
[]
no_license
EnjoyLifeFund/macHighSierra-py36-pkgs
63aece1b692225ee2fbb865200279d7ef88a1eca
5668b5785296b314ea1321057420bcd077dba9ea
refs/heads/master
2021-01-23T19:13:04.707152
2017-12-25T17:41:30
2017-12-25T17:41:30
102,808,884
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
../../../../../../Cellar/numpy/1.13.3/lib/python3.6/site-packages/numpy/f2py/tests/test_return_complex.py
[ "Raliclo@gmail.com" ]
Raliclo@gmail.com
6d08d19c6fffa0eb9daccf141d2adf8d73445373
2dbadf8d7c26b3dda69328229b60df160b69f917
/evaluate_densedepth_nyuv2_labeled.py
6bbc1409c281972b2b29e944af1ad04946ad7941
[]
no_license
computational-imaging/spad_single
a17c31d0564a16f08f4768dcc27c064272a5f70d
54e18e26a6f3c33837da032063e8cf9cc287569e
refs/heads/master
2022-11-18T08:32:37.513981
2020-07-19T04:44:56
2020-07-19T04:44:56
152,368,443
3
1
null
null
null
null
UTF-8
Python
false
false
3,503
py
#!/usr/bin/env python3 import os import numpy as np import torch from utils.train_utils import init_randomness from collections import defaultdict import json from models.core.checkpoint import load_checkpoint, safe_makedir from models.data.data_utils.transforms import AddDepthMask from utils.eval_utils import evaluate...
[ "nishimuramarky@yahoo.com" ]
nishimuramarky@yahoo.com
420b8215ab7148d92a6089821e81d5a6120804d7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02829/s673828179.py
69644809e039e9a3784c22e8de1968d8b329c1a6
[]
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
231
py
#!/usr/bin/python3 import sys def input(): return sys.stdin.readline().rstrip('\n') #S = input() #A1,A2,A3 = list(map(int,input().split())) A = int(input()) B = int(input()) C = [1,2,3] C.remove(A) C.remove(B) print(C[0])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1b5f58b99c29bc28439c90c1f48251d330858219
ebdc8475416892f79e4eeee354f6e2a909502565
/generator/dnd.py
fd6314fe5a27e2308b85fbeddcb206a2884fccd4
[]
no_license
jamesorendorff/ears-handbook
810e10a5f1b48c206a6302701bef2efcfabb5c9f
7b76373adf6debc4e4ec34ef49438935d3c87010
refs/heads/master
2021-06-14T19:32:14.915706
2021-03-23T20:13:04
2021-03-23T20:13:04
165,413,017
0
0
null
null
null
null
UTF-8
Python
false
false
1,655
py
""" barbarian, bard, cleric, druid, fighter, monk, paladin, ranger, rogue, sorcerer, warlock, wizard Ideal examples: The party teams up with a naive gnomish cobbler to face a ruthless drider and her pet violet fungi. An operatic dwarven bard with sideburns saves a desert caravan by finding the resonant frequency of...
[ "jason.orendorff@gmail.com" ]
jason.orendorff@gmail.com
c772e7330c71059fd7c4a47309c08d0c549056fb
2af6a5c2d33e2046a1d25ae9dd66d349d3833940
/res/scripts/common/lrucache.py
a11c1212522351e66f34f68e2ae40dff2282bf90
[]
no_license
webiumsk/WOT-0.9.12-CT
e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2
2506e34bd6634ad500b6501f4ed4f04af3f43fa0
refs/heads/master
2021-01-10T01:38:38.080814
2015-11-11T00:08:04
2015-11-11T00:08:04
45,803,240
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
1,099
py
# 2015.11.10 21:31:34 Střední Evropa (běžný čas) # Embedded file name: scripts/common/LRUCache.py import collections class LRUCache(object): def __init__(self, limit): self.__cache = collections.OrderedDict() self.__limit = limit def get(self, key): try: value = self.__cac...
[ "info@webium.sk" ]
info@webium.sk
ff83a27884448a170a0eb59ab57a4f65255e150b
9fb1c85a6d39c08e2a3cc235335bc482ad909b71
/prowler/providers/aws/services/secretsmanager/secretsmanager_service.py
c11455f11f7372738a8070a3f1b5cd27b350d597
[ "Apache-2.0" ]
permissive
muharihar/prowler
06dbdeaa0696dd65d72c33ff3c9f957b97f83d7a
25c9bc07b219cc02004cc0b84adcfdcf18d5ad2b
refs/heads/master
2023-02-18T01:26:54.161003
2023-02-10T11:38:13
2023-02-10T11:38:13
238,623,868
0
0
null
2020-02-06T06:36:36
2020-02-06T06:36:35
null
UTF-8
Python
false
false
2,331
py
import threading from pydantic import BaseModel from prowler.lib.logger import logger from prowler.lib.scan_filters.scan_filters import is_resource_filtered from prowler.providers.aws.aws_provider import generate_regional_clients ################## SecretsManager class SecretsManager: def __init__(self, audit_i...
[ "noreply@github.com" ]
muharihar.noreply@github.com
57e7fec722d44281cff37c91573e894580e27dd1
9d84138b3bc2c2b42a306643f0ea8c3fd1bcd09c
/0x22-primegame/0-prime_game.py
e0d1d19d4191d77f6d8f749d59729afde509a940
[]
no_license
Beardocracy/holbertonschool-interview
d1d93181a04d050316790ca42dfc9760214e1e00
eb4f0b8610709bbbdcba9fb30fe198674377dcac
refs/heads/main
2023-07-15T15:28:05.326314
2021-08-25T20:40:34
2021-08-25T20:40:34
281,188,539
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
#!/usr/bin/python3 ''' Module contains isWinner ''' def isWinner(x, nums): ''' Determines winner of the game ''' if x == 0 or x == -1: return None if x == 10 or x == 1000: return "Maria" else: return "Ben"
[ "travisjbearden@gmail.com" ]
travisjbearden@gmail.com
2d7f06444d415639c19d531dde10cea2421b50d3
e59fe240f0359aa32c59b5e9f581db0bfdb315b8
/galaxy-dist/eggs/bx_python-0.7.1_7b95ff194725-py2.7-linux-x86_64-ucs2.egg/EGG-INFO/scripts/mMK_bitset.py
8a26870e4040b1f02e7e993675554ca6263f037e
[ "CC-BY-2.5", "AFL-2.1", "AFL-3.0", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
subway/Galaxy-Distribution
dc269a0258471597d483687a0f1dd9e10bd47448
d16d6f9b6a8b7f41a218c06539863c8ce4d5a73c
refs/heads/master
2021-06-30T06:26:55.237251
2015-07-04T23:55:51
2015-07-04T23:55:51
15,899,275
1
2
null
2020-10-07T06:17:26
2014-01-14T10:47:28
Groff
UTF-8
Python
false
false
4,827
py
#!/afs/bx.psu.edu/project/pythons/linux-x86_64-ucs2/bin/python2.7 import sys import bx.align.maf import bx.bitset from bx.bitset_builders import * from itertools import * from optparse import OptionParser from rpy import * def main(): # Parse the command line parser = OptionParser(usage = "usage: %prog [options] ...
[ "sabba_88@hotmail.com" ]
sabba_88@hotmail.com
7a439418db24e003bfc0ebaf4de35bfea8aa354a
af4d559792c4255d5f26bc078cd176b70c0e643f
/hpsklearn/components/cluster/_kmeans.py
c4e90dbb37b0bd24bb91f61aee16d96e36ac250b
[ "BSD-3-Clause" ]
permissive
hyperopt/hyperopt-sklearn
ec7d5f97ba8fd5a2c283dfec2fa9e0170b61c6ce
4b3f6fde3a1ded2e71e8373d52c1b51a0239ef91
refs/heads/master
2023-08-02T07:19:20.259964
2022-12-15T17:53:07
2022-12-15T17:53:07
8,293,893
1,480
292
NOASSERTION
2022-12-15T17:53:08
2013-02-19T16:09:53
Python
UTF-8
Python
false
false
5,567
py
from hpsklearn.components._base import validate from hyperopt.pyll import scope, Apply from hyperopt import hp from sklearn import cluster import numpy.typing as npt import typing @scope.define def sklearn_KMeans(*args, **kwargs): return cluster.KMeans(*args, **kwargs) @scope.define def sklearn_MiniBatchKMean...
[ "38689620+mandjevant@users.noreply.github.com" ]
38689620+mandjevant@users.noreply.github.com
008cfa98bc23ee715832fb1c34d7ab9ee9e9aeb9
f07a21e66c0dde0691142e31378d10527e44e54c
/re-start/018. 뉴스 클러스터링.py
9a650b34990e0d0aedff2271460484d3213af037
[]
no_license
cheol-95/Algorithm
0a3454e5d3fff21ec50ec20dc64341b13cb972dc
6a130bb0817395550f00c192074d01f5c6443628
refs/heads/master
2023-04-28T09:47:04.389059
2023-04-16T07:54:36
2023-04-16T07:54:36
250,749,134
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
def solution(str1, str2): str1 = [(ch_1 + ch_2).upper() for ch_1, ch_2 in zip(str1[:-1], str1[1:]) if ch_1.isalpha() and ch_2.isalpha()] str2 = [(ch_1 + ch_2).upper() for ch_1, ch_2 in zip(str2[:-1], str2[1:]) if ch_1.isalpha() and ch_2.isalpha()] if not str1 and not str2: return 65536 union = 0...
[ "rkdcjf0122@gmail.com" ]
rkdcjf0122@gmail.com
9a942ee1f83cf77dc5476f44d4d5c59dc7fbc339
97aa1181a8305fab0cfc635954c92880460ba189
/torch/testing/_internal/common_cuda.py
8db1456cc4c46890f5b40e7723a928f54c30e075
[ "BSD-2-Clause" ]
permissive
zhujiang73/pytorch_mingw
64973a4ef29cc10b96e5d3f8d294ad2a721ccacb
b0134a0acc937f875b7c4b5f3cef6529711ad336
refs/heads/master
2022-11-05T12:10:59.045925
2020-08-22T12:10:32
2020-08-22T12:10:32
123,688,924
8
4
NOASSERTION
2022-10-17T12:30:52
2018-03-03T12:15:16
C++
UTF-8
Python
false
false
1,302
py
r"""This file is allowed to initialize CUDA context when imported.""" import torch import torch.cuda from torch.testing._internal.common_utils import TEST_NUMBA TEST_CUDA = torch.cuda.is_available() TEST_MULTIGPU = TEST_CUDA and torch.cuda.device_count() >= 2 CUDA_DEVICE = TEST_CUDA and torch.device("cuda:0") # note...
[ "zhujiangmail@hotmail.com" ]
zhujiangmail@hotmail.com
d2315f02b2072e2d9a5b1c0dab10bee84c056edc
07bae7671cac165fb91554343396ee1343c6363d
/xiecheng/coroutineTest1.py
8c73a90b6602c02e9c3cbd7d24749f72b25d392c
[]
no_license
quyixiao/python_lesson
7869dfd3aec8f5b6500ae955ae5c50a956f7b4c3
81684d06e6f054049fa79b0e63ab528bdc46581f
refs/heads/master
2021-06-28T08:01:02.937679
2021-03-11T10:29:57
2021-03-11T10:29:57
221,687,833
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
# 协程 # 生成器的高级用法 # 是用户空间调试函数的一种实现 # Python3 asyncio 就是协程实现,已经加入到标准库 # Python3.5 使用async,await 关键字直接原生支持协程 # 协程调试器的实现思路 # 有2个生成器A,B # next(A)后,A执行 def inc(): for x in range(100): yield x foo = inc() print(next(foo)) print(next(foo)) print(next(foo))
[ "2621048238@qq.com" ]
2621048238@qq.com
e7f98e7798e41c2dcf024bd988520a1d7bab7552
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/26P2iwW5WfwPGJyWE_14.py
70b4f9da3c875f0fff26ec25fd0a3a2fb475e52d
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,702
py
""" Suppose a student can earn 100% on an exam by getting the answers all correct or all incorrect. Given a **potentially incomplete** answer key and the student's answers, write a function that determines whether or not a student can still score 100%. Incomplete questions are marked with an underscore, `"_"`. ["...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
9c86f4361ab044e82d3fa23ded180195a4735774
e74463d223acfe6b849177177cb409060e7a44d1
/Data Structures and Algorithms/02 Data Structures/Week 3 - Priority Queues and Disjoint Sets/assignment/merging_tables.py
72b14ae5556275a9e47d3d7273377402fe30690f
[]
no_license
AlexEngelhardt-old/courses
24f4acf6de22f6707568024c5ee4a2fde412e461
739be99265b0aca1c58abe6f107b4c49de055b9d
refs/heads/master
2023-05-05T22:25:50.327739
2020-12-09T14:57:46
2020-12-09T14:57:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,801
py
class Database: def __init__(self, row_counts): self.row_counts = row_counts self.max_row_count = max(row_counts) n_tables = len(row_counts) self.ranks = [1] * n_tables self.parents = list(range(n_tables)) def merge(self, src, dst): src_parent = self.get_parent(s...
[ "alexander.w.engelhardt@gmail.com" ]
alexander.w.engelhardt@gmail.com
df195bc9e2840dd23b24d0d4163d02eb205b80ca
9047328d03d38c0833193987a9409600200d83bc
/myutils/counter.py
4fd1cb06eada5e7eec2980c5adccbfc77ea730ca
[]
no_license
teddyxiong53/Python
06d444f89d14ae5071248d93ea973fd1d9ad2795
629775569cb94968bb8a4e34e31871fcc1bd2969
refs/heads/master
2020-04-05T23:33:13.155112
2019-10-24T09:37:04
2019-10-24T09:37:04
68,708,738
1
0
null
null
null
null
UTF-8
Python
false
false
192
py
class Counter(storage): def add(self, n): self.setdefault(n, 0) self[n] += 1 def most(self): m = max(self.itervalues()) return [k for k,v in self.iteritems if v == m]
[ "1073167306@qq.com" ]
1073167306@qq.com