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
86b909ea6e240fb015ef52450aafadc2ae431396
43d138375c9068b3ea9dc0f75bab9d3f3bc0b8f1
/polling_stations/apps/data_collection/management/commands/import_gosport.py
5836560a0aa2361284d553d80dc5010b0b82230f
[]
permissive
dantagg/UK-Polling-Stations
69da767c934dd38d74d7ff632fefacdae82053cb
2271b3fbfe5242de659892d24fad4d8851c804ba
refs/heads/master
2023-01-03T20:19:58.315246
2020-09-28T11:09:40
2020-09-28T11:10:29
300,301,660
0
0
BSD-3-Clause
2020-10-01T14:07:00
2020-10-01T14:06:59
null
UTF-8
Python
false
false
3,585
py
from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E07000088" addresses_name = ( "parl.2019-12-12/Version 1/2019 PGE - Democracy_Club__12December2019gosport.TSV" ) stations_name = ( "parl.2...
5fce8eb114c61690bccaf214eb1d37748c5e824f
d6c059cb3a9d58904464f048f5ea195857bc005d
/0730-线程、进程、协程/2、进程/9、封装进程对象/aspiringProcess.py
664a50d5be61970e84dcde536681414842c698fe
[]
no_license
j415/DjangoBasics
19f49f5dad9635c6e12e13ec43e728b2a808216c
2d738d655bd996e8755611caf090e3aea8f321ed
refs/heads/master
2020-03-23T22:03:34.874545
2018-09-05T03:31:14
2018-09-05T03:31:14
142,150,295
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
from multiprocessing import Process import os, time class AspiringProcess(Process): def __init__(self, name): Process.__init__(self) self.name = name def run(self): print('子进程(%s-%s)启动' % (self.name, os.getpid())) # 子进程的功能 time.sleep(3) print('子进程(%s-%s)结束' % ...
2a7acf79a0890d9bf7c03f9a000a6219641ec060
3ef12b52ab73d12d0a6ee1ba818f561edbb2e4f8
/django_app/music/migrations/0001_initial.py
8092eb5b7224fc751c08d76f05dc2a5b338c2eea
[]
no_license
juliahwang/WS_practice
7978f73fb3813632fba531f27fcb08548ab51dc0
70760095eea88b67113676a55ca7e18ec0224afb
refs/heads/master
2021-01-01T16:53:12.232351
2017-08-03T18:23:28
2017-08-03T18:23:28
97,942,129
0
1
null
null
null
null
UTF-8
Python
false
false
3,493
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-02 13:27 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
c420454c31093dccbd03cc54672bcf97c527f1cd
8e2b49a1f570c51c2cd7766387c058cdfadce864
/src/services/package_service.py
a1ed5c7f92c6084c40feb28b8a93081e052d92dd
[ "MIT" ]
permissive
c-w-m/mongo-quickstart
c6dc9fdc0232df757f57f00a6d4fd0a4bd10c962
dc61993a07bfbdeb1e36c47dfbc210fe9177ed8e
refs/heads/master
2023-02-25T01:10:11.779036
2021-01-31T20:20:13
2021-01-31T20:20:13
334,733,471
0
0
null
null
null
null
UTF-8
Python
false
false
1,326
py
from typing import Optional, List from data.downloads import Download from data.packages import Package from data.release_history import ReleaseHistory from data.users import User class PackageService: @classmethod def package_count(cls): return Package.objects().count() @classmethod def rel...
8ddf4392d11c57dd223b27ee91a3bed6a6cb8c9d
9b9a02657812ea0cb47db0ae411196f0e81c5152
/repoData/martomo-SublimeTextXdebug/allPythonContent.py
a04f1db77c7881088fcabb0a1dd1689cd6185c72
[]
no_license
aCoffeeYin/pyreco
cb42db94a3a5fc134356c9a2a738a063d0898572
0ac6653219c2701c13c508c5c4fc9bc3437eea06
refs/heads/master
2020-12-14T14:10:05.763693
2016-06-27T05:15:15
2016-06-27T05:15:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
208,867
py
__FILENAME__ = main import sublime import sublime_plugin import os import sys import threading # Load modules try: from .xdebug import * except: from xdebug import * # Set Python libraries from system installation python_path = config.get_value(S.KEY_PYTHON_PATH) if python_path: python_p...
a84b063eec175fb6c346c4f36e9ac302df8415ab
b6c069539ae1caf59686b93aef6a6eb2609b0ac1
/hw1/utils.py
270002cec77166431781a3c3482f3a0f3840da13
[]
no_license
Vivek-23-Titan/CMU-16824-Vision-Learning-and-Recognition
2e52ead0ca318190cf4a32ebdbe2c75de19a9a50
2b5fca32ca313781d2c137e1f9c5ea77eb332797
refs/heads/main
2023-08-23T11:14:29.281288
2021-10-15T19:48:12
2021-10-15T19:48:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,745
py
# -------------------------------------------------------- # Written by Yufei Ye (https://github.com/JudyYe) # Modified by Sudeep Dasari # -------------------------------------------------------- import os import torch import numpy as np import sklearn.metrics from torch.utils.data import DataLoader class ARGS(objec...
48bcd1eda9bf5d5c7cffb68b6c5ce2ff420166b9
a958b5eca7ef63695e317fe87144b85b475306cf
/hypha/apply/funds/migrations/0001_initial.py
b148de45cbacf495758597f423ab37507c2cd2be
[ "BSD-3-Clause" ]
permissive
ResetNetwork/apply-app
2fe0a4aed05e7609cca9cd8e0202d13bbc0b272f
a5f998b8a6c3059f31373f5c4aa700d1a563d844
refs/heads/main
2022-02-16T22:39:13.099637
2021-02-16T07:49:31
2022-02-01T13:26:32
201,969,914
1
4
BSD-3-Clause
2021-02-16T08:03:32
2019-08-12T16:38:58
Python
UTF-8
Python
false
false
802
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-12-22 09:28 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('images', '0001_initial'), ('wag...
d9e4848a0179fdd7bc93c029226ed24b09f7e898
c6d22cf128819af1d48d02972bb9296a1687b9bb
/venv/Lib/site-packages/traitsui/editors/time_editor.py
95807375757c299d670c057392cc5ed9fd49bfc8
[]
no_license
GenomePhD/Bio1-HIV
92808a1e7e6339da6d07190ba3e1a2071f3e8428
b5059e7f121e4abb6888893f91f95dd79aed9ca4
refs/heads/master
2022-10-28T21:55:42.998205
2018-04-16T18:52:32
2018-04-16T18:52:32
129,792,081
0
1
null
2022-10-05T18:36:22
2018-04-16T19:03:26
Python
UTF-8
Python
false
false
1,448
py
#------------------------------------------------------------------------------ # # Copyright (c) 2008, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditions d...
80ce61a7d4adb75a865075dabf522a08ff7a377b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03786/s371328153.py
c0a9c347530052541335ff74e3633b64f918869c
[]
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
174
py
n=int(input()) a=list(map(int,input().split())) a.sort() count1=0 count2=0 for i in range(n-1): count1+=a[i] if 2*count1<a[i+1]: count2=i+1 print(n-count2)
b13fb8504577ae8cd6f334dc8d2406c131437b6f
5e5db4c8e514e68161290e6293513db33df6bf49
/test/jit/test_list_dict.py
949ed485403d0fa1c7a33d502db5e92abe1c01cf
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
MarcioPorto/pytorch
5e51a8937722c886e23c68d2c5180b0425832bf2
c52700dbcdec0acadf81473438192d1bb2beebc8
refs/heads/master
2023-04-25T09:41:25.126363
2021-05-12T16:44:05
2021-05-12T16:45:10
300,316,842
1
0
NOASSERTION
2020-10-01T14:52:49
2020-10-01T14:52:48
null
UTF-8
Python
false
false
63,607
py
import os import sys import inspect import unittest from typing import Any, Dict, List, NamedTuple, Optional, Tuple from textwrap import dedent from collections import OrderedDict from torch import Tensor import torch import torch.nn as nn import types from torch.testing import FileCheck # Make the helper files in te...
6c6a48f3986047a387a97d668a570c3d1a412af3
9523ce426577bb38dc1260e4095e735fb817e1fd
/utils/misc/logging.py
46115961bf5f48aca4f03f1f25534ec7dbc9b002
[]
no_license
Amantais/Kyrgyz-Stand-Up-Bot
58147557aaf2e7ea714489d3614b0fa09eb943f8
028d36493b79f6b02e12d672688ef94e526946dc
refs/heads/master
2023-03-28T03:28:42.001424
2021-03-25T17:27:49
2021-03-25T17:27:49
349,154,364
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
import logging logging.basicConfig(format=u'%(filename)s [LINE:%(lineno)d] #%(levelname)-8s [%(asctime)s] %(message)s', level=logging.INFO, )
7b2aa5263093ac5804b940b1cf647561c249ba97
b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1
/tensorflow/contrib/gan/python/features/python/virtual_batchnorm_test.py
bcc40e44e7b42a786f3841f48321f3e9d044918d
[ "Apache-2.0" ]
permissive
uve/tensorflow
e48cb29f39ed24ee27e81afd1687960682e1fbef
e08079463bf43e5963acc41da1f57e95603f8080
refs/heads/master
2020-11-29T11:30:40.391232
2020-01-11T13:43:10
2020-01-11T13:43:10
230,088,347
0
0
Apache-2.0
2019-12-25T10:49:15
2019-12-25T10:49:14
null
UTF-8
Python
false
false
11,346
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...
5304e10f37ba2ce8b19aba3947560874a9d1e44d
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/294/83407/submittedfiles/testes.py
3af7ad75e3ebbf1db0fb72a2d6435d6b0eab5d25
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO n= int(input('Digite o número: ')) i= 1 while n>0: f= n*i print(f) i += 1 continue
c02db02524446e2a95ed0cd9397cad4639e1d4d0
f6c7084f91434566a9aa1b821d2739edede036f8
/AddFileInZipFile/venv/Scripts/easy_install-script.py
e91f9b665295271ec880111d88a24f435583b524
[]
no_license
GANESH0080/Python-WorkPlace
87fc3776e693d254661c476bfe977c696d087276
43196086bee26cbeae25fb7bbacb8dbbde85d648
refs/heads/master
2020-09-20T03:45:13.824696
2019-11-27T07:27:17
2019-11-27T07:27:17
224,369,263
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
#!D:\PythonWorkPlace\AddFileInZipFile\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe...
3492118728fbc025eeeac90626281925568df458
f0f289ed2d7376e4531ff2faa9e23beedc2fbb8c
/arsenal/nlp/wordnet/synset.py
a0a53caae30615e1e61af34ca64166d605e94e4c
[]
no_license
twocngdagz/arsenal
5aa9908043972307e3d1c2fbeaf50242242f87f0
7a96a6937b94a33b8a14a71d5b0936e16e3d9f64
refs/heads/master
2021-01-19T03:51:37.110291
2013-10-15T03:55:12
2013-10-15T03:55:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,358
py
# Natural Language Toolkit: Wordnet Interface: Wordnet Module # # Copyright (C) 2001-2008 University of Pennsylvania # Author: Oliver Steele <[email protected]> # David Ormiston Smith <[email protected]>> # Steven Bird <[email protected]> # URL: <http://nltk.sf.net> # For license inform...
[ "none@none" ]
none@none
8cff9b1d4c1909959d729269cf817583caf4643b
964f2882117ff656d7a2757c233c6dd88226d975
/services/web/server/setup.py
7a71b500f01dcf016b26ad41ba3046e07d2ab0fb
[ "MIT" ]
permissive
ignapas/osparc-simcore
a002dd47d7689af9c1c650eea33e31add2b182c1
cb62e56b194265a907f260f3071c55a65f569823
refs/heads/master
2023-01-22T08:55:32.580775
2022-12-09T15:57:36
2022-12-09T15:57:36
170,852,656
0
0
MIT
2023-01-09T05:03:04
2019-02-15T11:12:34
Python
UTF-8
Python
false
false
1,852
py
import re import sys from pathlib import Path from setuptools import find_packages, setup def read_reqs(reqs_path: Path) -> set[str]: return { r for r in re.findall( r"(^[^#\n-][\w\[,\]]+[-~>=<.\w]*)", reqs_path.read_text(), re.MULTILINE, ) if i...
674d81f2daefa528467e546fa5335ec020bb5122
45df3588d0ec1a2bd7dbe4af104a49aa5775d034
/group1/views.py
d7b5a1ba099f4990b20b952e33d7b7b171e8734b
[]
no_license
wittawin/DB_Project
043db7eb3d70ef32c9c97d51a242775b3e115f73
1cc1fe84c75906d670f7bb4dd130093bc15035b8
refs/heads/master
2020-04-06T03:43:21.516583
2015-07-13T05:47:09
2015-07-13T05:47:09
37,700,817
0
1
null
2015-06-19T04:06:07
2015-06-19T04:06:06
JavaScript
UTF-8
Python
false
false
11,091
py
from django.shortcuts import render, render_to_response, RequestContext from django.http import HttpResponse from django.core.mail import send_mail from django.core.mail.message import EmailMessage # Create your views here. def index(request): template = 'group1/index.html' context = RequestContext(request) ...
b9f07dccd6e3fb6e5a6a7332aa88808ea237dad9
c792b076cdf8c943c344d90b21817dd501c165ab
/boj/그래프/2252_줄세우기.py
cacd0a05917fbe5ef91f3edac525e6ba96dd809d
[]
no_license
Jdoublee/CodingTestPractice
d68afa38e64de67aa53ab8c6569e07e7b310a83d
83eb2b84f63d55808a5e9b014e023b72bf4a4e9e
refs/heads/master
2023-06-02T16:48:52.913402
2021-06-16T13:34:40
2021-06-16T13:34:40
290,072,409
6
0
null
null
null
null
UTF-8
Python
false
false
493
py
from collections import deque import sys input = sys.stdin.readline n, m = map(int, input().split()) graph = [[] for _ in range(n+1)] indegree = [0] * (n+1) for _ in range(m): a, b = map(int, input().split()) graph[a].append(b) indegree[b] += 1 q = deque() for i in range(1,n+1): if indegree[i] == 0: q.append(...
910288eeb6880457b4a0f6b9f81ba7c4775ce359
ffc1cc3bb7b68335b115122fdc7924fc4e31d528
/ss.py
af41d32a4c76e4a825cdfa5fd5b810976d27b19d
[]
no_license
Rihanashariff/swathi24
dba1dd3c3d2ff583ae431b432e0ef262bfeb3ac3
2b0d21f2febdd2a563e8f0affeebd5ca7a5821b8
refs/heads/master
2020-07-02T05:28:32.199982
2019-06-29T08:22:10
2019-06-29T08:22:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
#swa1 s=int(input()) if s>0: print("Postive") elif s<0: print("Negative") else: print("Zero")
d25632912251f2ba76809c013cba68857ea833a2
4382c60f18aba351a2e7cdab7ce2793c2d27717c
/Algorithm 190902/addnumber.py
b32d1dbc234824bd231157352bf2adefaa53d744
[]
no_license
vxda7/pycharm
e550b1db4cabe1a0fa03e140f33b028ef08bd4cb
ce29f682a923875b62a8c7c0102790eef11ab156
refs/heads/master
2020-07-03T11:27:27.807096
2019-11-15T08:50:32
2019-11-15T08:50:32
201,891,357
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
t = int(input()) for tc in range(1, t+1): N, M, L = map(int, input().split()) # N 수열길이 M 필요한 숫자 L 출력인덱스 res = list(map(int, input().split())) for i in range(M): idx, num = map(int, input().split()) res.insert(idx, num) print("#{} {}".format(tc, res[L]))
744d9d1e4d6ea3d0eacfc2acbca5743b1b6df196
5a7abc4537039860c49e9a80219efa759aad1b6f
/tests/providers/aws/services/route53/route53domains_service_test.py
75d5616d62658b4778bd6f36245dd74ea10459d7
[ "Apache-2.0" ]
permissive
sec-js/prowler
d5a06c72f5d7e490bade1167966f83f7a5d7ed15
f72be9a1e492ad593c9ac267d3ca07f626263ccd
refs/heads/master
2023-08-31T22:48:33.983360
2022-12-22T16:02:28
2022-12-22T16:02:28
243,866,744
0
0
Apache-2.0
2022-12-23T12:23:20
2020-02-28T22:37:02
Python
UTF-8
Python
false
false
4,172
py
from datetime import datetime from unittest.mock import patch import botocore from boto3 import session from prowler.providers.aws.lib.audit_info.audit_info import AWS_Audit_Info from prowler.providers.aws.services.route53.route53_service import Route53Domains # Mock Test Region AWS_REGION = "us-east-1" # Mocking A...
4cbbdd29fce7808644cba278f87b92dcc23abb59
83e6d9a4a7aa5ced682c6d44e0853264cd7bab58
/dixon_TIY6.1/dixon_TIY6.11.py
61d1f358e5de460ff4b75d8a52cf95c9e3ea6d19
[]
no_license
JaxonDimes/Python
ad3aa8e8f01fe71d9bfc47e4cc6774a9238143c3
0fa5dea05e726a3af4374b907178b44db98499ff
refs/heads/master
2020-12-12T10:10:34.660981
2020-01-15T14:48:23
2020-01-15T14:48:23
234,101,371
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
cities = { 'indianapolis' : { 'country': 'United States', 'population': ' 2,028,614', 'fact': 'The Children’s Museum of Indianapolis is the largest children’s museum in the world.'}, 'Fort Wayne': { 'country': 'United States', 'population': '419,453', 'fact': 'For...
5d16aba73f3db549de99b273aa341d6a695cb19b
d4fdbd68c42d6b9babe347cb3b65535e4d782172
/tensorflow_datasets/image/horses_or_humans.py
a1ece687669b324b1db5a9a5d708b25eb5052d0a
[ "Apache-2.0" ]
permissive
thanhkaist/datasets
2809260c5e95e96d136059bea042d1ed969a6fcf
02da35c558ec8ea704e744a2008c5cecb2e7a0a1
refs/heads/master
2020-06-04T16:13:14.603449
2019-06-14T22:01:33
2019-06-14T22:02:54
192,097,735
2
0
Apache-2.0
2019-06-15T16:02:18
2019-06-15T16:02:18
null
UTF-8
Python
false
false
3,016
py
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
75b89fdd96fa2eb6208750c4e7ab2b8b8bbd262c
edfdc0d3a2fdeed95ba7aa3d0e198eb9dafe4064
/operator_api/auditor/serializers/wallet.py
eaf23012b2e241068d6fe15719acea220a4c5144
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
xiaobai900/nocust-hub
880e72ba4e1d324ae36adea6c03c9761a7d91621
76f49f9b8a6c264fcbe9e0c110e98031d463c0a8
refs/heads/master
2023-05-28T08:18:17.402228
2020-11-01T19:48:17
2020-11-01T19:48:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,337
py
from eth_utils import remove_0x_prefix, add_0x_prefix from rest_framework import serializers from ledger.models import Wallet, Token from operator_api.models import ErrorCode class WalletSerializer(serializers.Serializer): address = serializers.CharField(max_length=42) token = serializers.CharField(max_lengt...
e00019a74bd3688664d6e13f72dd4fcf038515a5
c7770d7631f2930cce80462f9c3ee7e2abe118bb
/src/muses/collection/migrations/0006_auto_20180207_0616.py
3443f887f88a09654de195714d5967556d14639e
[ "Apache-2.0" ]
permissive
Aincient/cleo
4f277520a22792aa5b505601849a7ff3a4bd4196
933ef372fa7847d943206d72bfb03c201dbafbd6
refs/heads/master
2021-06-18T11:01:49.137359
2021-01-12T16:34:44
2021-01-12T16:34:44
150,566,366
0
3
NOASSERTION
2021-01-12T16:34:46
2018-09-27T10:00:20
Python
UTF-8
Python
false
false
1,246
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-02-07 12:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('muses_collection', '0005_auto_20180207_0516'), ] operations = [ migrations...
cee8909ec6e3cd34f3e68456ae1c5fb5b6e6b11d
ac83d1ddb84ecc904c73bdf779f458bd77efc98c
/test/programytest/test_bot.py
ff08464805034473900f9a5d83fe0d858c3f2b52
[ "MIT" ]
permissive
secrecy27/chatbot
77829f32a15e17563f038663aebebdb71e52c5a7
e65a753cf665a4d6d97b57703431cba5331e4f0b
refs/heads/master
2022-07-24T08:39:57.788009
2020-07-16T03:55:21
2020-07-16T03:55:21
130,678,143
4
4
NOASSERTION
2022-07-06T19:49:14
2018-04-23T10:12:01
Python
UTF-8
Python
false
false
15,079
py
import unittest import unittest.mock import os from programy.brain import Brain from programy.bot import DefaultBrainSelector from programy.bot import BrainFactory from programy.bot import Bot from programy.config.bot.bot import BotConfiguration from programy.config.brain.brain import BrainConfiguration from programy....
bf14ccd8c8be7d9c8499c927482512df16ec0245
d23dab09b21553353ad85246ebafaea790f2afbd
/src/python/pants/core/util_rules/asdf_test.py
f11f4a993b66fcffcb5fa2d7fbd49e8695986cb4
[ "Apache-2.0" ]
permissive
asherf/pants
00e8c64b7831f814bac3c4fa8c342d2237fef17d
c94d9e08f65e9baf3793dff0ec2c571d682f6b90
refs/heads/master
2023-05-28T14:45:35.325999
2023-01-18T15:16:07
2023-01-18T15:16:07
185,082,662
0
0
Apache-2.0
2023-01-18T15:15:46
2019-05-05T21:09:43
Python
UTF-8
Python
false
false
6,611
py
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from contextlib import contextmanager from pathlib import Path, PurePath from typing import Iterable, Mapping, Sequence, TypeVar import pytest from pan...
252d08db541ea7b978cda04b6a453f3f175f932e
fb5c5d50d87a6861393d31911b9fae39bdc3cc62
/Scripts/sims4communitylib/enums/relationship_bit_collections_enum.py
d8546691caa00683e94d009a6b38e0155c43d651
[ "CC-BY-4.0" ]
permissive
ColonolNutty/Sims4CommunityLibrary
ee26126375f2f59e5567b72f6eb4fe9737a61df3
58e7beb30b9c818b294d35abd2436a0192cd3e82
refs/heads/master
2023-08-31T06:04:09.223005
2023-08-22T19:57:42
2023-08-22T19:57:42
205,197,959
183
38
null
2023-05-28T16:17:53
2019-08-29T15:48:35
Python
UTF-8
Python
false
false
1,917
py
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from sims4communitylib.enums.enumtypes.common_int import Co...
0d093c3ca016d6d2803a429a4bd995ada08b48ac
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/automation/azure-mgmt-automation/azure/mgmt/automation/aio/operations/_fields_operations.py
bf24b786c68ed2d5f9cba471c8f73ce85a80e483
[ "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
6,384
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
869dcff017fa2a44d1aecccde2ac567af4cf6ac9
3d9063912b3b7760005ccaf27524b1dfe998e311
/ltp/utils/convertor.py
7587edf06c4f929b313d022519862b887859e101
[]
no_license
little-bigtiger/ltp
9ca7046771752a40a57e8f49ed78074d83dd7479
058c374fc31a63724320f6a13d26dd897b28b220
refs/heads/master
2023-05-30T07:03:51.472276
2021-06-21T02:13:20
2021-06-21T02:13:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,287
py
#! /usr/bin/env python # -*- coding: utf-8 -*_ # Author: Yunlong Feng <[email protected]> import torch from torch._six import container_abcs def map2device(batch, device=torch.device('cpu')): batch_type = type(batch) if isinstance(batch, torch.Tensor): return batch.to(device) elif isinstance(b...
4234dc2895d7126760d5a72ef991a59628694535
463c053bcf3f4a7337b634890720ea9467f14c87
/release/ray_release/command_runner/_wait_cluster.py
f7008828947614612adcc8a46a632853493925e1
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
pdames/ray
e8faddc4440976211a6bcead8f8b6e62c1dcda01
918d3601c6519d333f10910dc75eb549cbb82afa
refs/heads/master
2023-01-23T06:11:11.723212
2022-05-06T22:55:59
2022-05-06T22:55:59
245,515,407
1
1
Apache-2.0
2023-01-14T08:02:21
2020-03-06T20:59:04
Python
UTF-8
Python
false
false
1,259
py
import argparse import time import ray ray.init(address="auto") parser = argparse.ArgumentParser() parser.add_argument( "num_nodes", type=int, help="Wait for this number of nodes (includes head)" ) parser.add_argument("max_time_s", type=int, help="Wait for this number of seconds") parser.add_argument( "--f...
51b5cc22c33340c76b5ef0e285b2c525496e9af8
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/40/usersdata/62/25332/submittedfiles/main.py
13737f40f1a9c141d8c52153a57e1b9fe8ac9897
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
# -*- coding: utf-8 -*- from __future__ import division import funcoes #COMECE AQUI def calcula_valor_absoluto(x): if x<0: x=x*(-1) else: x=x return x def calcula_pi(m): i=1 soma=0 denominador=2 if 1<=m<=2000: while i<=m: if i%2!=0: ...
3b03072ec7ed26a376ab97669dac40c77589f552
f99341a3a043137ba2c24c06b80ff30073cf028e
/config/env_constructor.py
1eccb22fc91fee860e4cb13babbf3617e41bcfac
[]
no_license
szrlee/ucbmq_code
30ed4c7645800824a2db47647b2a17289b10bc88
d7e84b1c64e3be2bd7c52057d1ff6d91ee0779cf
refs/heads/main
2023-05-09T00:18:02.900944
2021-06-05T18:33:11
2021-06-05T18:33:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
from rlberry.envs.finite import GridWorld def constructor(nrows, ncols, success_probability): env = GridWorld(nrows=nrows, ncols=ncols, walls=(), success_probability=success_probability) return env
85d8cfdd2bdbd846ff6b5a02cc95ebf9d5be6042
30816710f64515d9af98b19da522ecdd2a745258
/yeyun/rcnn/rpn.py
9d4678547716a31c75af19b4884ce080a31fdf04
[]
no_license
unsky/Feature-Pyramid-Networks
457a441a500b1b552b5a89c11384e96f8cf60dd5
890e9c74a8fcea20bd33b90bac6c58e42294298d
refs/heads/master
2021-06-26T00:59:50.874246
2017-09-06T02:57:19
2017-09-06T02:57:19
101,043,340
0
0
null
null
null
null
UTF-8
Python
false
false
9,328
py
""" RPN: data = {'data': [num_images, c, h, w], 'im_info': [num_images, 4] (optional)} label = {'gt_boxes': [num_boxes, 5] (optional), 'label': [batch_size, 1] <- [batch_size, num_anchors, feat_height, feat_width], 'bbox_target': [batch_size, num_anchors, feat_height, feat_width], 'bbox_weig...
05d6ff8c6fbea905e0072c34bcac275e68cc1197
ac4b9385b7ad2063ea51237fbd8d1b74baffd016
/.history/s1_3_getHtml_20210209165850.py
576f3f18bbd11d0765890ce07bf6aa32fbf8af7b
[]
no_license
preethanpa/ssoemprep
76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f
ce37127845253c768d01aeae85e5d0d1ade64516
refs/heads/main
2023-03-09T00:15:55.130818
2021-02-20T06:54:58
2021-02-20T06:54:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,514
py
# This module is called from 3R Automation Component. import os import sys # pdftotree is available as part of the virtual environment for 3R Python processing import pdftotree import json from pprint import pprint import pdfminer import matplotlib.pyplot as plt import ocr_extract as imgpdf from utils.ocr.handle_ima...
db7d2017f3fe4d376d26481829e2492ca16c57c1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02393/s585346290.py
8e0858a11d775723f75f99c894ac1365db950d68
[]
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
51
py
a = input().split() a.sort() print(a[0],a[1],a[2])
c1e656fc6fc8fdf41ad315d269930268dabe63c0
c117f7064b7132778bead5a8b77b67e2429a2b7a
/gmail.py
9832cf9a0595ba497995e39e74e170770e6e4ad1
[]
no_license
gurudurairaj/gp
664306f41f73f8b620ba74b048372e1c94e59bc7
2fce98f7428103b54b9edd075d4a83dc434c2926
refs/heads/master
2020-04-15T05:00:45.934019
2019-05-26T17:54:54
2019-05-26T17:54:54
164,405,807
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
a=input() c=0 if a.count("@")==1 and a.count(".")==1 and a[len(a)-4:len(a)]==".com": s="" for i in range(len(a)): if a[i]=="@": break s=s+a[i] if len(s)>=3: c=c+1 s="" v=a.index("@") for i in range(v+1,len(a)): if a[i]==".": break s...
e39d2e29afaf499c1d468a3292e396993aae8ec7
04ad466db13a382cc679d9562e515d57b54c47e6
/scripts/schools8_eb.py
149fb0ad7602a286b481eed890c6b06c67581f68
[ "MIT" ]
permissive
shivaditya-meduri/pyprobml
d9423463ae7b352c52f3d005fbf33ee66d366971
9dbe0c95f4ec061b98bf32fa3ac1deafe2e0c04d
refs/heads/master
2023-04-12T13:09:45.572071
2021-05-07T18:22:02
2021-05-07T18:22:02
356,659,290
1
0
MIT
2021-04-11T05:04:38
2021-04-10T18:07:31
null
UTF-8
Python
false
false
458
py
# Empirical Bayes for 8 schools import numpy as np # Data of the Eight Schools Model J = 8 y = np.array([28., 8., -3., 7., -1., 1., 18., 12.]) sigma = np.array([15., 10., 16., 11., 9., 11., 10., 18.]) d = len(y); mu = np.mean(y); # MLE-II V = np.sum(np.square(y-mu)); s2 = V/d; sigma2 = np.mean(np.square(sig...
ca743993675615421f0c5d02f0357b0ba36b9559
f3acd48e0d553143e941b16b5241cb86272a87f4
/Laboratorium/_04_klasy/Zwierzeta.py
1ff08b829c973bb1b1696c38dfc392be78f6aa69
[]
no_license
tborzyszkowski/PythonWyklad
1ceb4b5e1fca8c41f4ad5fb5b32a100b58e24a4d
58871126689418d51a4e4ba0b9ab884de260f3c5
refs/heads/master
2023-05-10T20:55:21.140705
2023-05-07T14:58:49
2023-05-07T14:58:49
44,440,440
14
44
null
2020-02-27T22:32:03
2015-10-17T14:33:07
HTML
UTF-8
Python
false
false
548
py
class Zwierz: def replay(self): return self.glos() def glos(self): pass class Ssak(Zwierz): def glos(self): return "Ssak: glos" class Kot(Ssak): def glos(self): return "Kot: glos" class Pies(Ssak): def glos(self): return "Pies: glos" class Naczelny(Ss...
b34da93daff3b0147a5beeb599b6785d29d18905
9f7c106d50681b394d822fbdc5e3ad25f04d927c
/week6_nissi_miika/week6_ass4_nissi_miika.py
c35170d25f810049f893fd6c2f03cbeec7c89d04
[]
no_license
miikanissi/python_course_summer_2020
edf032b1d9815dfa6e0b5f7c902f7b469117c04f
3969288b969b3db8f9d7f2fdb67905f13d4969fa
refs/heads/master
2022-12-02T09:33:42.625374
2020-08-24T17:38:59
2020-08-24T17:38:59
273,909,320
2
0
null
null
null
null
UTF-8
Python
false
false
290
py
def factorial(x): try: if x < 1: raise ValueError elif x == 1: return 1 else: return x *factorial(x-1) except ValueError: print("Factorial can not be negative.") print(factorial(-20)) print(factorial(20)) print(factorial(4))
0782a9b01c132cece78f0d640fbecb22de784ae2
ffcf85c7866e4d95d17afadc7d823a123fd79247
/Info/modules/passport/views.py
de73375f606b69baa4bba8b0d84658356ea3a338
[]
no_license
CcLmL/InfoNews
1c7b9df7f7924dac5750886444a46ace313095bc
2c8dad2719fde697c8283ec88721479701e81bf9
refs/heads/master
2020-03-27T01:14:57.059554
2018-09-04T07:16:20
2018-09-04T07:16:20
145,694,197
0
0
null
null
null
null
UTF-8
Python
false
false
6,916
py
import random import re from datetime import datetime from flask import request, abort, current_app, make_response, jsonify, session from Info import sr, db from Info.lib.yuntongxun.sms import CCP from Info.models import User from Info.modules.passport import passport_blu from Info.utils.captcha.pic_captcha import c...
4f207fc33a82256e32426744f6f89f6799d2c8f1
aaf12fe9de8da36f4dc85973568f7e747b312c16
/log_output.py
1731fde8938341360c34f445f9883c728d4d1f04
[]
no_license
UESTC-Liuxin/pytorch
aa092f15ba2187bb9a9e73fd50309a6abbb5362c
d1029f0c38813f1a0a18bbb9499d06d93829d79a
refs/heads/master
2021-01-02T01:20:50.132014
2020-04-08T02:01:12
2020-04-08T02:01:12
239,429,974
2
0
null
null
null
null
UTF-8
Python
false
false
1,104
py
import logging class Mylog(object): """ @create log file and output log information """ def __init__(self,logFilename): logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s', datefmt=...
f7f3d8f02b6d308c3f3bc24d81e2dd1a11e6d95d
0f5668e822e30f2ebcddeb7121d5227305f3e3e7
/rate_the_movies/admin.py
3aaf97a82685e6ab7fc2ae93104abcb9d2835682
[]
no_license
hpaasch/weekend_movies
ff8e7e531202d1b6a02388e5087bfcd22b89f7e8
d7a71815358fa1dfec842d73a05f95f59eff5ab9
refs/heads/master
2021-01-19T00:25:43.980980
2016-06-12T18:31:31
2016-06-12T18:31:31
60,794,716
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
from django.contrib import admin # Register your models here. from rate_the_movies.models import Rater, Movie, Rating, TopMovie admin.site.register(Rater) admin.site.register(Movie) admin.site.register(Rating) admin.site.register(TopMovie)
1570ef0139326ca4a972af344522a632c7ba1439
6a1f6500d2319a2b7d974e3075747b86f102198e
/Path Sum2.py
9703bc4df062f41f7e1a445a26019ace51bfb9fb
[]
no_license
vpc20/binary-trees
257672bb3b76c63c1530787a17c664665f5ed15e
90e074ec33acfa431285fbc3236335814a37feb2
refs/heads/master
2023-04-30T01:14:06.556085
2021-05-20T08:27:42
2021-05-20T08:27:42
271,945,306
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
# Given the root of a binary tree and an integer targetSum, return all root-to-leaf paths where # each path's sum equals targetSum. # # A leaf is a node with no children. # # Example 1: # Input: root = [5, 4, 8, 11, null, 13, 4, 7, 2, null, null, 5, 1], targetSum = 22 # Output: [[5, 4, 11, 2], [5, 8, 4, 5]] # # Example...
528138c7b3242a2e6f034c7f518b4ae11ec9f5d9
48aacf0425c5ab071972034c3fbd388feb036578
/node-3/site-packages/heat/db/sqlalchemy/models.py
cf9d5ea7798f3b6c01c0e09b9f9f4502429310ab
[]
no_license
wputra/MOS-centos
2b8ec0116bb3a28632c54d6052d322a42391439f
0a4f24dd4183d4d44e8c7beb27adce12e42f0201
refs/heads/master
2021-01-10T19:22:22.920342
2014-09-12T03:33:54
2014-09-12T03:33:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,877
py
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
6e217e6f3939ed8e26166e26843fa9f5b34e2330
60be3894ad491bde502b8f6909a026ee115d952e
/aiosmb/authentication/kerberos/multiplexor.py
3f54b8c402def066580a983a3ce93219f5a30a6b
[]
no_license
topotam/aiosmb
7c97c6a9806c84a9fae28fa372cc6903fa6ec0c5
e2ece67bbf380f576b154b09ea5fd63d9b4ecf4c
refs/heads/master
2023-06-25T17:41:03.605226
2021-07-27T18:31:12
2021-07-27T18:31:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,412
py
## ## ## Interface to allow remote kerberos authentication via Multiplexor ## ## ## ## ## ## TODO: RPC auth type is not implemented or tested!!!! import enum from aiosmb.authentication.spnego.asn1_structs import KRB5Token from minikerberos.gssapi.gssapi import get_gssapi, GSSWrapToken from minikerberos.protocol.as...
4565df909b3e0e3e2cbca97207b6da138461b346
fa346a2d5886420e22707a7be03599e634b230a9
/temboo/Library/GovTrack/Bill.py
0e1c3ee23f956f8cd9161b911714ba5a64e5bbcb
[]
no_license
elihuvillaraus/entity-resolution
cebf937499ed270c3436b1dd25ab4aef687adc11
71dd49118a6e11b236861289dcf36436d31f06bc
refs/heads/master
2021-12-02T17:29:11.864065
2014-01-08T04:29:30
2014-01-08T04:29:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,472
py
# -*- coding: utf-8 -*- ############################################################################### # # Bill # Retrieves bills and resolutions in the U.S. Congress since 1973 (the 93rd Congress). # # Python version 2.6 # ############################################################################### from temboo.c...
b9cf3b8a2cf28697fa9ba6706aa2eacca14bb3ed
767b5482f3c5b9c2c85575c711e37561f5b8f198
/engine/plugins/no_request_check_file_url.py
0e03353b89807171f88766e8dd5cd2fab7be8a9d
[]
no_license
zhupite233/scaner
8e39c903f295d06195be20067043087ec8baac4f
7c29c02bca2247a82bcbb91cc86955cc27998c95
refs/heads/master
2020-05-18T03:23:03.459222
2019-04-15T04:29:10
2019-04-15T04:29:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
#!/usr/bin/python # -*- coding: utf-8 -*- import json from engine.engine_utils.common import * from engine.logger import scanLogger as logger def run_url(http, ob, item): try: path = item['url'] params = item['params'] method = item['method'] timeout = ob.get('webTimeout') ...
aeb1b2b02dedd76208af4900290767ab944c32da
2fac796fa58c67fb5a4a95a6e7f28cbef169318b
/leetcode/bit-manipulation/majority-element.py
1bf72be5da81fd021752159644b0555f580d16ab
[]
no_license
jwyx3/practices
f3fe087432e79c8e34f3af3a78dd10278b66dd38
6fec95b9b4d735727160905e754a698513bfb7d8
refs/heads/master
2021-03-12T20:41:59.816448
2019-04-14T06:47:30
2019-04-14T06:47:30
18,814,777
2
0
null
null
null
null
UTF-8
Python
false
false
516
py
class Solution(object): def majorityElement(self, nums): """ :type nums: List[int] :rtype: int """ # 投票 result = count = 0 for num in nums: if count == 0: # 如果之前票数相同或者刚开始,重新选一个数 result = num count = 1 eli...
1b521983045b44485e0f452dcc1e99cb5581eb79
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/security_group_info.py
76e7cc60717b39fc78380ac4d1d3214564057876
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,998
py
# coding: utf-8 import re import six class SecurityGroupInfo: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in ...
e2399df3821254f4ef5f3dbdb2b39081cbdb0eae
d54476a109bb7a75ab18c742e53425358eae2df7
/cart/migrations/0007_auto_20190831_1312.py
effc4f4f7371a10996aef08b421bd7b58b47fea4
[]
no_license
OmarGonD/stickers_gallito
8b46673a73d3fa6fdbdeb9726804f3e3c176543b
4aa4f5aeb272b393410ed8b518aa39040f46a97b
refs/heads/master
2022-12-09T20:38:23.672740
2019-12-13T14:41:41
2019-12-13T14:41:41
163,198,792
0
1
null
2022-04-22T21:00:01
2018-12-26T16:35:33
HTML
UTF-8
Python
false
false
469
py
# Generated by Django 2.2.1 on 2019-08-31 18:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('cart', '0006_auto_20190831_1021'), ] operations = [ migrations.RenameField( model_name='sampleitem', old_name='file_a', ...
a37246089f6d753b353a98fd4c9d55fbb8fb0a98
d0207e019bd72bd1ef77dbde369b7234ba44e7d7
/misc/projector/tfrecords.py
8c3d165f31b6509c86bb601a6e1774e7708955bf
[]
no_license
307509256/tf-face-recognizer
467458ee764fa44b18f33aa697de886a62a18263
3eb4b0fee1350302c57a755afb1a3b8537e7ec7e
refs/heads/master
2021-01-14T10:37:19.812201
2017-02-14T13:10:34
2017-02-14T13:10:34
82,047,255
1
0
null
2017-02-15T10:11:39
2017-02-15T10:11:39
null
UTF-8
Python
false
false
3,671
py
import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..')) from model.recognizer import Recognizer from tensorflow.contrib.tensorboard.plugins import projector import tensorflow as tf FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string('checkpoint_path', '/tmp/model.ckpt', ...
533b9f5190aec7b5d6e52be40c8027017425f7eb
c8d6cfc2148fe15a272110277d511fb8522c4c26
/mongodbpro/Deleteonemongo.py
e5727beda1527ccd2402a2a26aa3b7b1e492fc4a
[]
no_license
n1e2h4a/AllBasicProgram
9d1705315cf08678cf615a77921e17728ed41f94
88f27c24906de3ea2b2ee1f94adaa648ef1e51c3
refs/heads/master
2021-01-04T06:40:49.207179
2020-03-11T13:40:52
2020-03-11T13:40:52
240,428,706
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
from pymongo import MongoClient client = MongoClient('localhost',27017) db=client.result col=db.biodata col.delete_one({"city":"Dehradun"})
9d8ae1275a631e023a71b4de3489f88302c8e72a
3de95d8882ad44e8ff821b2563a067d4e5249759
/demo.py
1c46efa6f932098b01ac8f6ff7f969b913d9d383
[ "MIT" ]
permissive
wuxiaolianggit/Image-Matching
8c74f7557b6dd7c7a6f71b2627a94f4e112ae5e9
3213a8a574fa7bcc476d3de1c7370c268bf817a7
refs/heads/master
2021-04-08T00:42:08.063935
2020-01-19T05:25:54
2020-01-19T05:25:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,307
py
import math import cv2 as cv import numpy as np import torch from PIL import Image from torchvision import transforms from models import ResNetMatchModel def get_image(file): img = cv.imread(file) img = img[..., ::-1] # RGB img = Image.fromarray(img, 'RGB') # RGB img = transformer(img) img = i...
3a47c0f2f17057a6e8afd7540a9da93d03b0f165
4dddd01ca6a60f2fa408ee55fbaebe868917184a
/myappium/xueqiu/__init__.py
1513984c6e62598b66393859814dc0c324b29b13
[]
no_license
fanpl-sourse/all_study_practice
6f056c18f0eb7afd6af649e5b595895683bb0cbd
b02f25231855e149b95476b20dd8d53318cfe1a5
refs/heads/master
2023-01-22T09:13:15.107616
2020-11-30T05:53:43
2020-11-30T05:53:43
304,493,176
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
# -*- coding: utf-8 -*- # @Time : 2020/11/6 11:13 # @Author : 饭盆里 # @File : __init__.py.py # @Software: PyCharm # @desc :
fcea9d0ed71026f62cb75d7cbbf6f1494928df5b
ecebefec65cc55b305419a689660eb8e2ea04fef
/release/virtual_player/mpc_performancetable_syn.py
e460983b8941a4a601b862ad941ba7af5a5c3464
[]
no_license
generlist/ABRTuner
4ab1d6d5e5201a7953d4565ca4574307a35513c3
baea8fab155a71c185e74121a8f014e6ad889308
refs/heads/master
2020-05-26T01:09:29.712879
2018-08-03T23:40:01
2018-08-03T23:40:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,090,550
py
mpc_dash_syth_hyb_pen_table_100 = {(8800, 3100): [-1.0, -1.0], (6900, 1800): [-1.0], (7100, 4400): [0.0, 0.0, -1.0], (5900, 1000): [-1.0, -1.0, -1.0], (5000, 2600): [0.0, 0.0, 0.0, 0.0], (8100, 600): [-1.0], (6300, 4500): [0.0, 45.0, 15.0, 0.0, 0.0, -1.0], (8200, 2800): [-1.0], (8000, 1500): [0.0], (7200, 1600): [0.0],...
4ce882200c9fa07a0afef96fe52e55fec4ffd8c4
7109eecfb78e0123b534ef960dbf42be38e49514
/x7-src/engine/engine/tests/api/x7/test_wsgi.py
9474a89a504c694a8cdaf876bd5407c012ab83cc
[ "Apache-2.0" ]
permissive
wendy-king/x7_compute_venv
a6eadd9a06717090acea3312feebcbc9d3925e88
12d74f15147868463954ebd4a8e66d5428b6f56d
refs/heads/master
2016-09-06T16:58:13.897069
2012-01-31T01:26:27
2012-01-31T01:26:27
3,310,779
0
0
null
null
null
null
UTF-8
Python
false
false
24,532
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 import json import webob from engine import exception from engine import test from engine import utils from engine.api.x7 import wsgi import engine.context class RequestTest(test.TestCase): def test_content_type_missing(self): request = wsgi.Request.blank('/te...
4d43d040cf2e02b62ba7af0f29b00d7da7e62a89
3950cb348a4a3ff6627d502dbdf4e576575df2fb
/.venv/Lib/site-packages/vtkmodules/qt/__init__.py
2ece15c0e01ce73eb0d862377e9f2c30d7c2e0ba
[]
no_license
Bdye15/Sample_Programs
a90d288c8f5434f46e1d266f005d01159d8f7927
08218b697db91e55e8e0c49664a0b0cb44b4ab93
refs/heads/main
2023-03-02T04:40:57.737097
2021-01-31T03:03:59
2021-01-31T03:03:59
328,053,795
0
0
null
null
null
null
UTF-8
Python
false
false
994
py
"""Qt module for VTK/Python. Example usage: import sys import PyQt5 from PyQt5.QtWidgets import QApplication from vtkmodules.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor app = QApplication(sys.argv) widget = QVTKRenderWindowInteractor() widget.Initialize() ...
f379b0318ac9d679ec2825d99b6de6c3bc7d5341
5cc204e2ecb9a756127e7c71633a1edcdb3e989b
/pyvasp/vasp/vcon2ewald.py.bak
30a834d3cd254cafb1bd523eba78924105a3ee62
[]
no_license
hopefulp/sandbox
1a1d518cf7b5e6bca2b2776be1cac3d27fc4bcf8
4d26767f287be6abc88dc74374003b04d509bebf
refs/heads/master
2023-06-27T17:50:16.637851
2023-06-15T03:53:39
2023-06-15T03:53:39
218,209,112
1
0
null
2022-09-13T13:22:34
2019-10-29T05:14:02
C++
UTF-8
Python
false
false
2,917
bak
#!/usr/bin/python2.7 #heejin import sys import os import re import math #usage description if len(sys.argv)<3: print "Usage: [contfile] [chg file]" sys.exit() confilename=sys.argv[1] chgfilename=sys.argv[2] # get ZVAL os.system('grep ZVAL POTCAR | awk \'{print $6}\' > zval.tmp') # direct to cartesian poscarfile =...
964138161e808eec89f029b24c77f9aea7216d0c
a404f504febdc835b69b72c4ac28b153885fc119
/Auditions/OneLevelToRuleThemAll.py
a52edb14ee9fa3d430484ab7d1a555d4a334a1a8
[]
no_license
Chaboi45/CodeCombat
6093a2eae29ef00c0c277653c4ffd075c9e2ac4c
6e008a94e65bb72ca9292e303d391a4142de16f5
refs/heads/master
2021-07-02T23:24:52.050154
2017-09-21T07:42:21
2017-09-21T07:42:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,601
py
# http://codecombat.com/play/level/one-level-to-rule-them-all summonTypes = ['paladin'] def summonTroops(): type = summonTypes[len(hero.built) % len(summonTypes)] if hero.gold > hero.costOf(type): hero.summon(type) def commandTroops(): for index, friend in enumerate(hero.findFriends()): ...
14d0c203a2e59d08e0063c7d1e58c596fec9a914
656def2ca5c0bd959b31b98cdbc53fea3420b2dc
/Python3.7-VideoSplice/src/tencentcloud/tiia/v20190529/models.py
ae4387b12bd517b20057594c47302f8bef8d05eb
[]
no_license
tencentyun/serverless-demo
120271b96f8f960b6125c9d1481a5d8fe56165ae
4c324bb186c460fe78252f0ca5c28132a8bce6c9
refs/heads/master
2023-08-25T17:07:04.959745
2023-08-25T08:10:49
2023-08-25T08:10:49
281,120,881
94
119
null
2023-08-31T06:34:36
2020-07-20T13:15:46
null
UTF-8
Python
false
false
71,890
py
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
8d6abe2e2e1f83b0bb4a0f714216e5f73634d056
0930b6c994225d44818887716ce4e8771af86b81
/exercisesDosCapitulos/12-umaEspaconaveQueAtira/12.4-teclas/main.py
dffb2fa5141878bac5fdfd98453c9d4e2f62cd2f
[]
no_license
jonasht/cursoIntesivoDePython
44d81b08f1652c4fa7a6d14a0e3f62ee8e06944c
fb5f5c9884fb1a6062a7c4e7676e5cc3b13c0ebb
refs/heads/master
2023-05-23T20:44:34.372825
2021-06-19T12:13:46
2021-06-19T12:13:46
293,325,804
4
2
null
null
null
null
UTF-8
Python
false
false
526
py
import pygame def run_game(): pygame.init() screen = pygame.display.set_mode((800, 600)) run = True while run: screen.fill((255, 255, 255)) for event in pygame.event.get(): if event.type == pygame.QUIT: run = False if event.type == pygame.KEYDO...
028f7254014e7380449a4821a74148ff30b6914b
a80874300e561174068bf510608465bb318a35f2
/guhaisong/baidu_work/11.py
ce52aba82f1036003194ac91fb0a65e86908c384
[]
no_license
lemonbiz/guhaisong
effa8af4b679511e4fa8017d71fe26ab2ce51392
029890f8e3c6954efdefb184fa077f2ce646d1df
refs/heads/master
2022-12-13T08:21:37.911535
2020-09-15T16:15:10
2020-09-15T16:15:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,481
py
# -*-coding: utf-8-*- # **************************file desc***************************** import threading from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor from multiprocessing import Process, Pool __author__ = 'yushanshan' # createTime : 2019/7/18 15:07 # desc : this is new py file, ple...
cd8a85f4d3cb19cee8189a9236fd46799cf05160
1a166165ab8287d01cbb377a13efdb5eff5dfef0
/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2020_08_01_preview/aio/operations/_encryption_scopes_operations.py
ec7f73b145e34dc513345a0d1ef56fce85c51fc5
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
manoj0806/azure-sdk-for-python
7a14b202ff80f528abd068bf50334e91001a9686
aab999792db1132232b2f297c76800590a901142
refs/heads/master
2023-04-19T16:11:31.984930
2021-04-29T23:19:49
2021-04-29T23:19:49
363,025,016
1
0
MIT
2021-04-30T04:23:35
2021-04-30T04:23:35
null
UTF-8
Python
false
false
19,087
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
2fdcd0028c218f840341e29cb9bef90b16d5f6ca
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_examples/_algorithms_challenges/pybites/intermediate/118_v4/duplicates.py
a35079d32510853e3a93f85e69ce3e56175d560c
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
668
py
from collections import Counter def get_duplicate_indices(words): """Given a list of words, loop through the words and check for each word if it occurs more than once. If so return the index of its first occurrence. For example in the following list 'is' and 'it' occur more than once, ...
4e09422ed00c845f9890abcf2e6c7a4f60011b78
cca46f82bf14e744abe1a7094ed81891f815bcd9
/todos/models.py
63be73ddb48e2399c6fe2739cbc095ad0b889e66
[]
no_license
rikicop/backend
3e63c8a4801d7ac49feb3c5b1af566890911dd0f
319e1860448884e96cfea63702fa562c49cb8fb6
refs/heads/main
2023-07-13T00:28:51.853790
2021-08-09T15:41:37
2021-08-09T15:41:37
394,348,970
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
from django.db import models class Todo(models.Model): foto = models.CharField(max_length=1000) author = models.CharField(max_length=200,blank=True) title = models.CharField(max_length=200) description = models.TextField() body = models.TextField() def __str__(self): return self.ti...
6b58fdfc2af995a27d80ee920429edd60bc6315b
9c88ee174f74a5a8352ec8cf487a302aa87053d0
/pylark/api_service_attendance_group_get.py
d39b09c70b7d77a40eef03360673465f929b3684
[ "Apache-2.0" ]
permissive
duzx1/pylark
bcf34231218ec5079b8f9820a77864fbcffa4426
a54cce6b814935fd3c72668b262b54c8ee461484
refs/heads/master
2023-08-23T13:10:00.324018
2021-11-01T06:29:28
2021-11-01T06:29:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,402
py
# Code generated by lark_sdk_gen. DO NOT EDIT. from pylark.lark_request import RawRequestReq, _new_method_option from pylark import lark_type, lark_type_sheet, lark_type_approval import attr import typing import io @attr.s class GetAttendanceGroupReq(object): employee_type: lark_type.EmployeeType = attr.ib( ...
f741f8a504de7a76fb26c2d9679d86ace42029eb
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/44e2cbe7b7bf41703ef2eb45faa1f59962eb3b34-<post_request>-fix.py
a5cdb336f072dc6e6c5f2b037163bc23cb4ad5d7
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
770
py
def post_request(self, uri, pyld, hdrs): try: resp = open_url(uri, data=json.dumps(pyld), headers=hdrs, method='POST', url_username=self.creds['user'], url_password=self.creds['pswd'], force_basic_auth=True, validate_certs=False, follow_redirects='all', use_proxy=False) except HTTPError as e: re...
a0e915805bc1495a3feee94402e47c3625cbb573
012837eafe45c8f7ee5fc77d4c4d7725d5314c5c
/workshops/4-day/5-clazz.py
2430adc8f4fd3bcb3b6cae29f9b12514d85037c2
[ "MIT" ]
permissive
ai-erorr404/opencv-practice
e9408cf006779a678cf3a30fc60e9dbeb3c8e493
60ef5e4aec61ee5f7e675fb919e8f612e59f664a
refs/heads/master
2021-02-08T11:17:04.763522
2020-02-22T09:43:04
2020-02-22T09:43:04
244,146,060
1
1
MIT
2020-03-01T12:35:02
2020-03-01T12:35:01
null
UTF-8
Python
false
false
1,056
py
#!/usr/bin/env python3 # -*- coding=utf-8 -*- import cv2 as cv """ Unsharpen Mask 方法(USM) - 锐化增强算法 (源图片 - w * 高斯模糊) / (1 - w) * w -> 权重(0.1 ~ 0.9), 默认为 0.6 # 原理函数 - 图像融合函数(图像的shape、dtype一定要相同) cv.addWeighted(src1, alpha, src2, beta, gamma) - alpha: 第一个输入参数的权重值,...
a429cef7afd0f3e93c21162cd35eb468bda2f4b2
ae5034ca18291d3f550990c482b9a539edff293c
/Rational/RationalType.py
32af85dcb23499987bfabd144211a83869ea0ecd
[]
no_license
SymmetricChaos/SimpleCAS
350e4102ce8d41493bb9566efa993e6a4c87cdb0
d5107cc07bd017e7a180eb62271273e21d466850
refs/heads/master
2021-07-01T09:00:49.197213
2021-01-03T14:22:28
2021-01-03T14:22:28
209,987,606
0
0
null
null
null
null
UTF-8
Python
false
false
8,234
py
from Utility import gcd, first_where class Rational: def __init__(self,n,d=1): if type(n) != int: raise TypeError("Numerator must be int.") if type(d) != int: raise TypeError("Denominator must be int.") if d == 0: raise ZeroDivisionError ...
99e03c7a5ebab7b1c9c4e3402824052c450ba006
c705b2620119df0d60e925e55228bfbb5de3f568
/archives/tk/tk2_quitter.py
3cca393ee1a4141db70198a64ebaa6da511c3297
[ "Apache-2.0" ]
permissive
mcxiaoke/python-labs
5aa63ce90de5da56d59ca2954f6b3aeae7833559
61c0a1f91008ba82fc2f5a5deb19e60aec9df960
refs/heads/master
2021-08-05T03:47:51.844979
2021-07-24T11:06:13
2021-07-24T11:06:13
21,690,171
7
7
Apache-2.0
2020-08-07T01:52:32
2014-07-10T10:20:17
Python
UTF-8
Python
false
false
515
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author: mcxiaoke # @Date: 2015-08-09 16:10:35 from tkMessageBox import askokcancel from Tkinter import * class Quitter(Frame): def __init__(self, parent=None): Frame.__init__(self, parent) self.pack() widget = Button(self, text='Quit', c...
e4492680d141de291d7465a651e77ead9ce69654
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/person/feel_child_at_point/company/important_eye/say_time_with_year/same_man_and_time.py
2e1318a493eaec887d5816876828623ba3bfeaef
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
#! /usr/bin/env python def number(str_arg): point_or_group(str_arg) print('company_or_number') def point_or_group(str_arg): print(str_arg) if __name__ == '__main__': number('first_work')
1df3fe9bfaa423b8777c33c1b73fb67cb79c9162
dd694c300d0380df35c62f7ab7667346214ea296
/common/python/rift/mano/tosca_translator/rwmano/syntax/mano_template.py
d263e6f01cb1302a47517e08d092ad80e30a91fa
[]
no_license
RIFTIO/SO
9412858132db0430217a2c5c55fb4b1db89290fa
697160573011d47f45bd0b955a291a46063d3b15
refs/heads/RIFT.ware-4.3.3
2021-06-22T13:42:40.860291
2016-12-29T21:47:25
2016-12-29T21:47:25
75,762,640
1
1
null
2017-02-08T19:31:28
2016-12-06T19:11:20
Python
UTF-8
Python
false
false
8,848
py
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the ...
07a2335bfe239f189c83292b9a6e2991c0094dae
a27d5a16210fef310569c98b589307b54248f28a
/orders/views.py
6657d5ea28e264de6e22d2da575e427300a6bf6f
[]
no_license
yashboura303/E-commerce_Django
fd4b5088c97cc9e8a6971eecb3637700a8bd2e6c
8cc2aeb397056566186a4379b9eece56ac99a970
refs/heads/master
2020-09-22T07:43:09.118289
2019-12-01T10:58:47
2019-12-01T10:58:47
225,108,306
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
from django.shortcuts import render from products.models import Products from cart.models import Cart from .models import Orders from django.core import serializers import datetime def orderPage(request): orders, created = Orders.objects.get_or_create(customer=request.user) cartProducts = Cart.objects.get(cust...
672384e7ee2fe00f78ba8f0cae10fd9abc21ca41
eaa43160aeeaa3cb4c7c9f52d8ed01f9abdf85e5
/tests/rest/test_rest_view.py
9ff9c33ab588473769c4b72a22918c34f7426d12
[ "MIT" ]
permissive
furious-luke/polecat
4fd2a2f859b9a77d9d004b32bc1bf8f907fea2ba
7be5110f76dc42b15c922c1bb7d49220e916246d
refs/heads/master
2022-07-31T16:38:45.791129
2021-05-06T01:05:03
2021-05-06T01:05:03
179,440,367
4
0
MIT
2022-07-05T21:28:34
2019-04-04T07:00:55
Python
UTF-8
Python
false
false
593
py
from polecat.rest.schema import RestView from ..models import Authenticate def test_rest_view(db, factory): user = factory.User.create() view = RestView(Authenticate) request = type('Request', (), { 'path': '/a', 'session': None, 'json': { 'email': user.email, ...
1fed40586b8a86779adfa038334fea05ee538612
edfcd96f0010ea068a4c046bdcf7067ff92d3f9b
/Robot/Selenium/4.Auto-Login.py
7787da558eff8cdfb6356e8519c9782480f7224f
[]
no_license
afsanehshu/python-project
a99ff558f375c1f5e17ea6ffc13af9216ec4733f
48905cfd24df6d1f48460d421ed774f19403cf53
refs/heads/main
2023-08-03T01:53:32.812949
2021-09-22T19:36:25
2021-09-22T19:36:25
409,303,454
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys import os from password import username , password addresss = os.path.absp...
686b706d30a24d127ee3cceccc35b6174e9af4ac
d34c3204b6a985a82e17dc82f455672660536517
/703.py
24e6ea591581514bc7d5dc52606fb072a9c2cab2
[]
no_license
pzqkent/LeetCode
34fe4af305c8db4e336ab095bba11e28a4f20ea5
48c0bda6f3163adf1709cb440a600fe36d4fb8ec
refs/heads/master
2020-04-14T23:10:32.898699
2019-02-02T23:20:51
2019-02-02T23:20:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,546
py
class KthLargest: def __init__(self, k, nums): import heapq """ :type k: int :type nums: List[int] """ self.nums = nums self.k = k heapq.heapify(self.nums) while len(self.nums) > self.k: heapq.heappop(self.nums) ...
7b1557e45e765345bdce5d280c50ca47853acb31
99b784550a6d306147c022c8d829800b0fbb8c68
/Part_1_Basics/Chapter_6_Dictionaries/favorite_numbers.py
9dd21d1fa775414e45ba499c76a968d7a33e6089
[]
no_license
apuya/python_crash_course
116d6598f656d8fed0b4184edbce8e996cd0f564
0b2e8a6e9849a198cfb251706500a919d6f51fe7
refs/heads/main
2023-06-03T22:41:03.203889
2021-06-16T04:07:28
2021-06-16T04:07:28
367,812,531
0
0
null
null
null
null
UTF-8
Python
false
false
1,055
py
# Python Crash Course: A Hands-On, Project-Based Introduction To Programming # # Name: Mark Lester Apuya # Date: 05/28/2021 # # Chapter 6: Dictionaries # # Exercise 6.2 Favorite Numbers: # Use a dictionary to store people’s favorite numbers. Think of five names, # and use them as keys in your dictionary. Think of a ...
84ca014a01bea4b0f0ae8abbc8301ce9a76311f2
a3e6c9f54193be74f7ee7d13113723db84b4859d
/read_images.py
cb12286eee3a8103829d454df1e85949841c2add
[]
no_license
Arrotech/openCV-python
b235748ed142b02e90cac644d445a6facf637413
f5d6f056d2210f81aee5f3359d09080fc6e81482
refs/heads/develop
2023-05-03T08:34:50.302587
2021-05-21T13:57:35
2021-05-21T13:57:35
368,883,383
0
0
null
2021-05-21T13:57:36
2021-05-19T13:43:00
Python
UTF-8
Python
false
false
1,310
py
import cv2 as cv img = cv.imread('images/ppic.jpg') def resizeframe(frame, scale=0.75): """Resisze the frame of the image.""" width = int(frame.shape[1] * scale) height = int(frame.shape[0] * scale) dimensions = (width, height) return cv.resize(frame, dimensions, interpolation=cv.INTER_AREA) re...
7bd7e86211b1662c856ec8daab7c699f54e68e8b
9decd97f9dc0a66e238af018d42a72a152e95f06
/pyopencl/reduction.py
68562b1127838db6fcadf7a5f233b4c5d94543e5
[]
no_license
stephenbalaban/pyopencl
dc3a557cd9a7eeabc044f7bf1ccbc35846d61481
51c736a81c8cc51a089dc7a3d1628c4e4742d61d
refs/heads/master
2020-12-25T15:51:30.928572
2012-11-27T21:56:56
2012-11-27T21:56:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,715
py
"""Computation of reductions on vectors.""" from __future__ import division __copyright__ = "Copyright (C) 2010 Andreas Kloeckner" __license__ = """ 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 Softwa...
678b9e9f0f6989327d360b2083e0bf4434e0023d
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/W_w_Mgt_to_Cx_Cy_focus_Z_ok/Sob_k25_s001_EroM/pyr_Tcrop256_pad20_jit15/pyr_6s/L5/step10_a.py
fab778e5987a75c6e7f5c3d29a6df640d3dca9e0
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
256,859
py
############################################################################################################################################################################################################# ##################################################################################################################...
5d51135e8bbed8efdb6c26ff33adf8488a8a911f
6c543074f1d764af9701e5b55db9ab0220c1df93
/prictice/mzitu_02.py
b9fa94a5ea6dc727418b8ebc4bc253f4cf809349
[]
no_license
allenlgy/Django-project
127e984e13f71d20e01df68ad42d00b977ac0105
9c4b9e6c67481a5f3cef58ea47e9fd62058036d8
refs/heads/master
2020-06-23T01:03:03.170674
2019-09-04T06:11:40
2019-09-04T06:11:40
198,453,709
0
0
null
null
null
null
UTF-8
Python
false
false
3,039
py
import requests import os import time import threading from bs4 import BeautifulSoup # 下载界面的函数,利用requests就可以实现 def download_page(url): ''' 用于下载页面 :param url: :return: ''' headers = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0"} r = requests.g...
90621bfe3417cf74b3345694d425576bd0b9d17d
ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3
/python/baiduads-sdk-auto/test/test_word_count_dto.py
14b46c84f966ab2bbefc1ec77a192bda0e3e6bcf
[ "Apache-2.0" ]
permissive
baidu/baiduads-sdk
24c36b5cf3da9362ec5c8ecd417ff280421198ff
176363de5e8a4e98aaca039e4300703c3964c1c7
refs/heads/main
2023-06-08T15:40:24.787863
2023-05-20T03:40:51
2023-05-20T03:40:51
446,718,177
16
11
Apache-2.0
2023-06-02T05:19:40
2022-01-11T07:23:17
Python
UTF-8
Python
false
false
649
py
""" dev2 api schema 'dev2.baidu.com' api schema # noqa: E501 Generated by: https://openapi-generator.tech """ import sys import unittest import baiduads from baiduads.materialproduct.model.word_count_dto import WordCountDto class TestWordCountDto(unittest.TestCase): """WordCountDto unit test stubs""...
b90c9db4fa9a96c8814e0d5a68e38eb672171701
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/YjwJ6BfujKtmuTMqW_6.py
1eb141206c4290eab340178e76daf41c58d99aec
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
def dice_game(scores): players = ['p1', 'p2', 'p3', 'p4'] scores = scores[::-1] while len(players) > 1: turn = [] for player in players: turn.append({'s':scores.pop(), 'p':player}) turn.sort(key = lambda t:(sum(t['s']), t['s'][0])) last1, last2 = turn[:2] if last1['s'] != last2['s']: ...
a31a8ad29aa2aa3317182191c87dcbb5489883c1
cb1fb3bf87b3f7006b564a0f2acd2d68e5d5ffaa
/pyram/misc/vispy_examples/flow_lines.py
a802abddd2174e35e85825563cb952f32bd1a21d
[ "MIT" ]
permissive
Hoseung/pyRamAn
2778f8b12ca966e7586ebf077a964aecd1654223
f9386fa5a9f045f98590039988d3cd50bc488dc2
refs/heads/master
2021-06-22T18:35:06.478492
2021-06-05T03:26:31
2021-06-05T03:26:31
227,741,934
1
1
MIT
2020-03-04T12:39:06
2019-12-13T02:49:30
Jupyter Notebook
UTF-8
Python
false
false
6,690
py
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) 2015, Vispy Development Team. All Rights Reserved. # Distributed under the (new) BSD License. See LICENSE.txt for more info. # -------------------------------------------------------------------------...
f047f9775a3c47115ce51159634b7701faa2263c
0b2f2a87a8acff0b3a4ae606c223ffe44a6fea2f
/scripts/matrix_to_vector.py
88f8a51703ece5b7c5f8f6db2c57342206de025f
[ "MIT" ]
permissive
endrebak/ldetect
25b19518de6fc97e41c3d290e711d9cfbf055520
620f60a6758b448c6f16bb529b8ac1afd6b88a6a
refs/heads/master
2020-10-01T18:08:59.949249
2020-01-07T14:04:39
2020-01-07T14:04:39
227,595,162
3
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
import pandas as pd import numpy as np from ldetect2.src.matrix_to_vector import mat2vec from sys import argv partitions = argv[1] theta2 = argv[2] covariances = argv[3:] theta2 = float(open(theta2).readline().strip()) import sys # print(partitions, file=sys.stderr) # print(covariances, file=sys.stderr) # partit...
fe26112695faaf8104bf70c2b794a31141f7a516
65381b8dffa1ade89746f6fc3a4979a7eb548d34
/purchase_portal/controllers/portal.py
37789ade0983d57e5d6b846a6a0fe04daa62ae59
[]
no_license
ff4f/AISJ-13
a4240d1952c3854dd5b21a62cf7dbfdebb16fde5
a2f2183e0f753100842877efecc844bdc72f8bd4
refs/heads/master
2023-05-08T22:54:43.972954
2021-06-03T14:44:10
2021-06-03T14:48:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,953
py
# -*- coding: utf-8 -*- from collections import OrderedDict from datetime import datetime, time from dateutil import parser from pytz import timezone, UTC from odoo import fields, http, _, SUPERUSER_ID from odoo.exceptions import AccessError, MissingError from odoo.http import request from odoo.addons.portal.controll...
8ea6243ca53dcdd617b9bc0fd4fc19042f716cf2
1e263d605d4eaf0fd20f90dd2aa4174574e3ebce
/components/ally-core-http/ally/core/http/impl/processor/parameter.py
daa374e7e51b69baa90131966fe02b3e46269120
[]
no_license
galiminus/my_liveblog
698f67174753ff30f8c9590935d6562a79ad2cbf
550aa1d0a58fc30aa9faccbfd24c79a0ceb83352
refs/heads/master
2021-05-26T20:03:13.506295
2013-04-23T09:57:53
2013-04-23T09:57:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
31,856
py
''' Created on May 25, 2012 @package: ally core http @copyright: 2011 Sourcefabric o.p.s. @license: http://www.gnu.org/licenses/gpl-3.0.txt @author: Gabriel Nistor Provides the parameters handler. ''' from ally.api.criteria import AsOrdered from ally.api.operator.container import Criteria, Query from ally.api.operat...
60b80f4d5ce107ae58b4dd24df77289078e90ce9
82f67ea9fbf21d21f26b611cea5ad6047617e1ab
/cvs-projects/build_scripts/utils/logDB.py
421fbdf39e5ac167b958fc4217ade79d842bee98
[]
no_license
metalsky/mvst
741a0e8ddc1c43ca28c7b26dc5720e965a70b764
e1deb593f47c28e0142e66d11ca47fa4af247ed8
refs/heads/master
2020-03-19T09:42:59.923445
2018-03-02T00:38:58
2018-03-02T00:38:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,378
py
#! /usr/bin/env python import server import time def _show(mytype,myvalue): if myvalue == None: return "NULL" elif not (type(myvalue) == mytype): raise Exception,"logDB error, wrong value type in _show(%s,%s)" % (mytype,myvalue) elif mytype == long: return "%d" % myvalue elif mytype == str: return "'%s'" ...
4ee5538c1d96b89789f7074b655659ea2fb72114
bef7c41e7b51417f9cc5c3d30a7f94b59286e2b7
/Algorithms/perceptron.py
f727c7bee8b28f15487193977601aafc100476bb
[]
no_license
algometrix/LeetCode
40dd6ea93c370cabe57ba672d820f261e0595cae
3dc885ac2a93781c36fbe2735061da29194caba4
refs/heads/master
2021-07-01T19:45:08.018784
2021-06-03T05:38:13
2021-06-03T05:38:13
235,496,179
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
def perceptron(X, W): pass if __name__ == "__main__": pass
e50fff82db49c4d3e46c34330e69f157e49ccee0
b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf
/000000stepikProgBasKirFed/Stepik000000ProgBasKirFedсh02p01st04TASK04_20210206_conditional.py
f09ca9abe36d1c94d09c812d67fc9a1879b525cf
[ "Apache-2.0" ]
permissive
SafonovMikhail/python_000577
5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4
f2dccac82a37df430c4eb7425b5d084d83520409
refs/heads/master
2022-12-08T10:53:57.202746
2022-12-07T09:09:51
2022-12-07T09:09:51
204,713,341
0
0
null
null
null
null
UTF-8
Python
false
false
798
py
''' Вы уже умеете приветствовать человека по имени. Давайте добавим немного персонификации. Напишите программу, которая считывает пол ученика и приветствует его в соответствующем роде. Формат входных данных Пол ученика - "М" или "Ж" Формат выходных данных Приветствие в заданном роде Sample Input 1: М Sample Outpu...
6f34755301941982cda1c8a2f816a6488ca3b94e
76d08b580d16008cfdec11103d3a2ef3c5444185
/python网络数据采集/my_爬虫_进阶_之路/scrapy框架/my_spiders/电商项目集合/阿里1688_淘宝_天猫_京东_折800_卷皮_拼多多_蜜芽_蘑菇街_楚楚街_唯品会_聚美优品/my_flask_server/pintuan_script/jumeiyoupin_pintuan.py
66d163bed18e087018e29b0ff191e3954e4dedf9
[]
no_license
lrygdh/python
c9794f75610a76a234105f11e93587336c4594c0
a1bc3c384459f8a40c420c3d1a7e4233970c459c
refs/heads/master
2020-03-25T07:53:30.141809
2018-08-04T11:02:13
2018-08-04T11:02:13
143,586,696
1
0
null
2018-08-05T05:41:45
2018-08-05T05:41:45
null
UTF-8
Python
false
false
11,355
py
# coding:utf-8 ''' @author = super_fazai @File : jumeiyoupin_pintuan.py @Time : 2018/3/25 11:32 @connect : [email protected] ''' import sys sys.path.append('..') import json import re import time from pprint import pprint import gc from time import sleep from logging import INFO, ERROR import asyncio, a...
ca7f8c687c2ad6eac7c008eb15dbfde0026b8190
3056736f013b25d1e70adb355082c578e5091314
/ml_quality/datasets/shit/practice.py
2f86668552f950b2489f0e318e85746a42d243a5
[]
no_license
flerchy/codestyle-core
dcad1385b76678e4473f0804d2ecfaa03866d124
a009bcd2f17dadd440ea5ff24bd3167e38948bff
refs/heads/master
2021-01-20T03:21:16.694322
2017-06-05T05:52:35
2017-06-05T05:52:35
89,524,181
0
1
null
null
null
null
UTF-8
Python
false
false
10,684
py
import re def count_words(passage): words = re.findall(r'[^ \n]+', passage) return len(words) passage ='''The number of orderings of the 52 cards in a deck of cards is so great that if every one of the almost 7 billion people alive today dealt one ordering of the cards per second, it would take 2.5 * 10**40 t...
0818baf769d8d948dd2bfb3eefca8dbaf7ca45fb
52bdad813d9bf9b5e8436b87bcb9b86ecf14370a
/tests/test_graph_group.py
bffb15475e75e7e15d413000780e3a22f9288a61
[ "MIT" ]
permissive
lsgd/Office365-REST-Python-Client
8e1abfd78824caed04e0e5bdf7cef66f6331ac6a
403a3e884e042e1d64012329713b76db133e9d5f
refs/heads/master
2021-01-01T13:56:38.242662
2020-02-09T13:42:31
2020-02-09T13:42:31
239,308,985
0
0
null
2020-02-09T13:26:43
2020-02-09T13:26:42
null
UTF-8
Python
false
false
1,257
py
import unittest import uuid from office365.directory.groupCreationProperties import GroupCreationProperties from office365.runtime.client_request_exception import ClientRequestException from tests.graph_case import GraphTestCase class TestGraphGroup(GraphTestCase): """Tests for Azure Active Directory (Azure AD) ...
688470d41918e3865f9334327d904a306d8cd50c
400e10dfd9e21ae5092f5184753faa91a9df9277
/Programers_backup/LEVEL 2/땅따먹기.py
9b6caaa3ab6b5d98d1a7de757610cbd8748dcaf9
[]
no_license
MyaGya/Python_Practice
d4aff327a76010603f038bcf4491a14ea51de304
0391d1aa6d530f53715c968e5ea6a02cf745fde5
refs/heads/master
2023-06-14T07:48:19.998573
2021-07-12T05:50:52
2021-07-12T05:50:52
280,452,168
0
0
null
2021-06-23T13:37:56
2020-07-17T14:56:24
Python
UTF-8
Python
false
false
602
py
''' def solution(land): # init pick = [[0 for _ in range(4)] for _ in range(len(land))] pick[0] = land[0] for i in range(1,len(land)): for j in range(4): pick[i][j] = max([pick[i-1][k] for k in range(4) if k != j]) + land[i][j] pick[0][0] = 0 print(id(pick[0])) print(id(l...
37b9ea83dc0b2cb3ef93c1ad2526a05d7262ba32
eb40dce4039d528b9cd06dbeda75da09d09d7fc5
/need_install/Django-1.8.17/django/__init__.py
cb9997a426a00b1d73b443fd2d3dc00e55446c10
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MulticsYin/MulticsSH
39b62189446787c7f0f037b1640c9c780bd1dddd
5837a0bff0e7da0e8535e4e0b31ef6baf24274b4
refs/heads/master
2021-08-28T07:53:51.759679
2017-12-11T15:31:03
2017-12-11T15:31:03
82,428,902
4
2
null
null
null
null
UTF-8
Python
false
false
520
py
from django.utils.version import get_version VERSION = (1, 8, 17, 'final', 0) __version__ = get_version(VERSION) def setup(): """ Configure the settings (this happens as a side effect of accessing the first setting), configure logging and populate the app registry. """ from django.apps import ap...
0140f30b8fe5d4f7d45eef45da0f4de62b13ecaa
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/7RrPMoWifqRHPPqj2_6.py
52a954c8cc7463202c8c110383489e5478d858be
[]
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,666
py
""" Traditional safes use a three-wheel locking mechanism, with the safe combination entered using a dial on the door of the safe. The dial is marked with clockwise increments between 0 and 99. The three-number combination is entered by first dialling to the right (clockwise), then to the left (anti- clockwise), and...
fc8715d8e9b684fcb7dbbfd21562a3ee5201e77d
eb25b38b400425c91bcce4d2c1b3d4e75d8f59ee
/tests/test_parser.py
7e20392076512563a715c081ebdbff6b6c22eabc
[ "MIT" ]
permissive
Citteny/cutadapt
f098201eebb3fc74dd38477043babc2b18a61a68
c9573d295bc3382697a554e1d0e91047374ff7da
refs/heads/master
2022-12-23T04:26:13.111725
2022-12-11T11:33:00
2022-12-11T11:33:00
229,545,869
0
0
MIT
2020-12-07T18:56:10
2019-12-22T09:35:31
null
UTF-8
Python
false
false
15,010
py
import os from textwrap import dedent import pytest from dnaio import Sequence from cutadapt.adapters import ( LinkedAdapter, BackAdapter, FrontAdapter, InvalidCharacter, PrefixAdapter, RightmostFrontAdapter, ) from cutadapt.parser import ( AdapterSpecification, parse_search_parameters,...
f8145e407078fb63ba6739b24b35529c2ee5a505
089fc0ce61e8e433355b304c9ca7cf8a902cfa88
/backend/test3_21903/settings.py
35450e3626d2693990c3856199b4a2891c541c15
[]
no_license
crowdbotics-apps/test3-21903
05248130c0c58b390223fd90d4e5e458ea97f303
4ec8947918dbce759e7ec7a7f421352768796a79
refs/heads/master
2023-01-06T05:56:43.992317
2020-10-23T22:38:28
2020-10-23T22:38:28
306,760,678
0
0
null
null
null
null
UTF-8
Python
false
false
6,156
py
""" Django settings for test3_21903 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 o...
3ecf6a1a9654381210ad1269dd4c356c791028b7
9fd0e9df52bff792b5b96f6dcd1fa03cc467c18d
/source/pages/admin.py
ff1ef520d4a6068150cb665ad217e8e17d4de802
[]
no_license
mooja/ssip209
87d4385c7e5038bb0ecfb2a4a3faee7aa2a9cea1
bfba4cddecff44057bd6d9da171b1ebfdb5148f3
refs/heads/master
2020-04-30T22:00:58.032859
2015-02-20T14:55:48
2015-02-20T14:55:48
24,278,046
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
from django_summernote.admin import SummernoteModelAdmin from django.contrib import admin from .models import Page class PageAdmin(SummernoteModelAdmin): list_display = ['title'] admin.site.register(Page, PageAdmin)