blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
f14308e3fd66781d5cbdd827da378221a727e027
bccbb5244947574c63992dc812b5ef44519ec161
/tests/test_command_runner.py
fcb536ca809e16f5103fd66573f5e2e7dd3eeea3
[]
no_license
hal1932/pysvn
d4fab12dbb07838d947292146ca49e9a31119deb
a579744543765b574655377a2e1ada5be961e8d8
refs/heads/master
2020-03-14T06:35:46.835307
2018-05-01T16:17:10
2018-05-01T16:17:10
131,487,301
0
0
null
null
null
null
UTF-8
Python
false
false
939
py
# coding: utf-8 from __future__ import print_function, unicode_literals import unittest as ut import xml.etree.ElementTree as et from svn.command_runner import CommandRunner class TestCommandRunner(ut.TestCase): def setUp(self): self.__runner = CommandRunner() self.__runner.current_directory = '...
[ "yu.arai.19@gmail.com" ]
yu.arai.19@gmail.com
89bfad9927cab9ec96b3795aa8887564a390caf1
6234d711a6352c694bb69946ff673e4829ab6916
/feelings/groups/views/company.py
91f38b17afdc2b90f2c6a890c1149c612963a773
[ "MIT" ]
permissive
treehouse/livestream-django-feelings
c816beb4557d52d5aafb5f11a40f5e6a0c0f6ba5
a246e456bb28f736cfb670486a1534e2d18efc78
refs/heads/master
2021-01-13T12:51:04.730505
2019-02-21T15:25:38
2019-02-21T15:25:38
78,469,589
32
24
null
2017-02-23T22:10:10
2017-01-09T21:14:02
Python
UTF-8
Python
false
false
3,596
py
from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import get_object_or_404 from django.urls import reverse, reverse_lazy from django.views import generic from braces.views import SetHeadlineMixin from .. import forms from .. import models class Create(LoginRequiredMixin, SetHeadlineMix...
[ "kenneth@gigantuan.net" ]
kenneth@gigantuan.net
e95fae2b71d041eff7090fe472700f65339ffa56
3b7474148c07df7f4755106a3d0ada9b2de5efdc
/training/c31_pattern_design/e04_callback.py
b608b4cea7865efac231c64f8fa6e7dd59efcde1
[]
no_license
juancsosap/pythontraining
7f67466846138f32d55361d64de81e74a946b484
1441d6fc9544042bc404d5c7efffd119fce33aa7
refs/heads/master
2021-08-26T05:37:15.851025
2021-08-11T22:35:23
2021-08-11T22:35:23
129,974,006
1
2
null
null
null
null
UTF-8
Python
false
false
922
py
class Provider: def get(self, path, cbf): with open(path) as file: text = file.read() result = self.analyze(text) cbf(result) def word_count(self, text): split_text = text.lower().split(' ') words = len(set(split_text)) count = len(split_t...
[ "juan.c.sosa.p@gmail.com" ]
juan.c.sosa.p@gmail.com
0457440b4e3f996aaa557313efda6c7f2d6e1a76
069ce71ee1ca85988ebf5bc179bcafbbd3d04f7f
/golib/views.py
70f41659f6d03852008364558b13e70346ea68e7
[]
no_license
9gix/golib
21a1376b553a83b743c68f418f82a488c9964c1a
fbcfe0a9c5e0523c7b2e85f46cb0d18a4ac85db5
refs/heads/master
2021-03-12T19:57:59.971214
2012-11-04T17:22:59
2012-11-04T17:22:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
from django.shortcuts import redirect, render from django.core.urlresolvers import reverse def index(request): if request.user.is_authenticated(): return redirect(reverse('catalog:book_list')) return render(request, 'index.html', {})
[ "yeo.eugene.oey@gmail.com" ]
yeo.eugene.oey@gmail.com
1ee42e0fa0fd0e830473f4079c9058dd6869c849
7ab85ba79a6553659f0b324ecebb4bb39f8a8a1c
/shallow copy.py
827e08006334256c38c0ceb955c5a8fd2ff5b596
[]
no_license
subinmun1997/my_python
b75db77a035fa8f531d9872bf33a1818a002206a
634acc948e7758f5d26084536c506e7da45cd53c
refs/heads/master
2022-12-28T21:11:40.173378
2020-10-16T08:02:18
2020-10-16T08:02:18
292,875,851
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
r1=['John',('man','USA'),[175,23]] r2=list(r1) print(r1 is r2) print(r1[0] is r2[0]) print(r1[1] is r2[1]) print(r1[2] is r2[2])
[ "qzxy812@gmail.com" ]
qzxy812@gmail.com
7f64617c1f9ffa09fcadfbe29ce329539eae983a
0f074e5adef64fa16e88dc2499e76f08b4c33c02
/matplotlib/ipython and pylab/03 改变线条颜色和粗细.py
5536a6d7b75055db76aeaa13f86025196647c11b
[]
no_license
guozhenjiang/Python
0ac39adaf72df0bfee51795fabcfd959a69b1862
44b07bd767f3f2a947331111ab920200ac2412c6
refs/heads/master
2021-05-19T16:54:40.725132
2020-11-19T16:26:26
2020-11-19T16:27:11
252,035,380
0
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
# 导入 matplotlib 的所有内容(nympy 可以用 np 这个名字来使用) from pylab import * # 创建一个 8 * 6 点(point)的图,并设置分辨率为 80 # figure(figsize=(8,6), dpi=80) figure(figsize=(10,6), dpi=80) # 创建一个新的 1 * 1 的子图,接下来的图样绘制在其中的第 1 块(也是唯一的一块) subplot(1,1,1) X = np.linspace(-np.pi, np.pi, 256,endpoint=True) C,S = np.cos(X), np.sin(X) # 绘制余弦曲线,使用蓝色的、连...
[ "guo_zhen_jiang@163.com" ]
guo_zhen_jiang@163.com
6ff8cf46f9afbcf4558f4fc7c0f57921fcc8d9d4
68577bb693fe01cddce56da36a43702c6bdedc07
/Programming/python/threads/events.001.py
a7ef176267b372f3242e604881eb1b4acfb8801b
[]
no_license
ceccopierangiolieugenio/scripts
480ab9b94c135d47c4d7c916e35df537cfabbed3
fe0eca7d76733e204c1c702e03b9ccc11ee421fd
refs/heads/master
2023-03-31T16:57:37.064553
2023-03-26T13:21:36
2023-03-26T13:21:36
99,695,368
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
# Example from: # https://www.bogotobogo.com/python/Multithread/python_multithreading_Event_Objects_between_Threads.php import threading import time import logging logging.basicConfig(level=logging.DEBUG, format='(%(threadName)-9s) %(message)s',) def wait_for_event(e): logging.debug('wait_for...
[ "ceccopierangiolieugenio@googlemail.com" ]
ceccopierangiolieugenio@googlemail.com
b4c0472ccadd94cd2d5b8635aa3af2ec2da7fb48
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/476/usersdata/321/110683/submittedfiles/Av2_Parte3.py
871c02d88b4454cc7f87fe1b0a0f024a5aa1caa1
[]
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
339
py
# -*- coding: utf-8 -*- qa= int(input('Quantidade de elementos de a: ')) qb= int(input('Quantidade de elementos de b: ')) a= [] b= [] for i in range(qa): a.append(int(input('Digite o valor%d de a: ' % i))) for i in range(qb): b.append(int(input('Digite o valor%d de b: ' % i))) soma= 0 while a[i] == b[i]: s...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9d617e8e56b480d3f2c9796faf890e935037a64c
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/network/v20180701/get_network_watcher.py
a1c1900c872cb4134a105e35685ba9cbea6c876c
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
test-wiz-sec/pulumi-azure-nextgen
cd4bee5d70cb0d332c04f16bb54e17d016d2adaf
20a695af0d020b34b0f1c336e1b69702755174cc
refs/heads/master
2023-06-08T02:35:52.639773
2020-11-06T22:39:06
2020-11-06T22:39:06
312,993,761
0
0
Apache-2.0
2023-06-02T06:47:28
2020-11-15T09:04:00
null
UTF-8
Python
false
false
4,324
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
306efc4d66d57b80b9a10c625c04f08557d7f834
8adcfe7485ea04bc1f83cac7d92bb51b97582f64
/ALGORITHM/210531/프로그래머스 타겟 넘버.py
c31258c8edf6e3e7fa3b78f33fb5b9e9aed6108b
[]
no_license
NoJeong/TIL
fdceb6efc5d2d56f8dd2e27271ea0faacfe336ae
c79c34b84f025aa40cd3a8e28fd0898bcb40b608
refs/heads/master
2023-06-24T22:18:50.665917
2021-07-23T06:21:21
2021-07-23T06:21:21
280,307,738
0
0
null
null
null
null
UTF-8
Python
false
false
543
py
import sys sys.stdin = open('프로그래머스 타겟 넘버.txt') def solution(numbers, target): answer = 0 def dfs(numbers, target, index): nonlocal answer if index < len(numbers): numbers[index] *= 1 dfs(numbers, target, index + 1) numbers[index] *= -1 dfs(num...
[ "op032@naver.com" ]
op032@naver.com
8527a82984c2cd8a19d450dc69773a45da4c0b51
79bc9a420df5c706b2ae06f4b75bf2bd2ba9646e
/emission/net/ext_service/push/query/trip_metrics.py
bad51c6afb3acaf63183dd918f4250efd1da085d
[ "BSD-3-Clause" ]
permissive
Andrew-Tan/e-mission-server
7022786a13b4be87be62cfc2cc6d82543d063e5d
91d59bee86e63d803e401f10f4b6a2502effedda
refs/heads/master
2021-01-16T18:25:17.860723
2017-11-21T19:24:40
2017-11-21T19:24:40
100,073,534
0
0
BSD-3-Clause
2018-05-05T18:26:36
2017-08-11T22:13:44
Jupyter Notebook
UTF-8
Python
false
false
4,279
py
# Input spec sample at # emission/net/ext_service/push/sample.specs/trip_metrics.query.sample sample # finds all users who have at least one day in Feb 2017 with no more than 10 # walk sections and a walk distance of at least 1km during the evening commute # hours # Input: query spec # Output: list of uuids # import ...
[ "shankari@eecs.berkeley.edu" ]
shankari@eecs.berkeley.edu
df7859b3968e2e07fe6d573c3c0175bb0d06485b
72dbf8366cf17b6a81ab37e72af667726e3f2661
/store/migrations/0016_auto_20201104_1719.py
31c0e9e8bf2783c9b201a665dd614b048aa7b44d
[]
no_license
Rayhun/Django_E-Commerce_website
3aef732ffa0a41509be95ced3c33b845233903a7
1a5f7e31f942914256e49ba7da1f7367a799f097
refs/heads/main
2023-05-23T18:18:27.875328
2021-04-30T19:29:06
2021-04-30T19:29:06
306,414,778
3
1
null
2021-04-30T19:28:58
2020-10-22T17:41:57
CSS
UTF-8
Python
false
false
505
py
# Generated by Django 3.1.1 on 2020-11-04 11:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('store', '0015_remove_product_product_name'), ] operations = [ migrations.AlterField( model_name='customer', name='ge...
[ "rayhunkhan27@gmail.com" ]
rayhunkhan27@gmail.com
936baa9a603ebaf11d6c5adc98fecc3cf562f6cc
952abfc855d0fca89200f1e428aac9a87f1d3295
/tf114/tf09_mv2.py
6e8e7a3f054efe4bf5163d9aaf09c665b95a2f75
[]
no_license
TaeYeon-kim-ai/STUDY_1.py
7570b4510bf8d9791447efe3a97a9668a1cabe06
e14392c706b7e51e40f1ac68555e26558e25b38f
refs/heads/master
2023-06-03T09:04:13.498591
2021-06-21T17:10:47
2021-06-21T17:10:47
329,834,933
1
0
null
null
null
null
UTF-8
Python
false
false
2,710
py
#과제 # 차원 형태 내용 #스칼라 1 #벡터 [1,2,3] #행렬 [[1,2],[2,3]] #텐서 [[[1,2],[1,2,3]]] # x * W 두개의 사이즈가 맞아야함 # x = 5, 3 # W = 3, 1(2,3,4,되던 상관없음) + b와 더할 수 있는 shape가 동일해야함. # (5, 3) x (3, 1) = (5, 1) #앞에 열과 뒤에 행만 맞으면 행렬 연산할 수 있음 # (3, 2) x (2, 3) = (3, 3) # [실습] 만들...
[ "noreply@github.com" ]
TaeYeon-kim-ai.noreply@github.com
75af37c7035fa42e49638ffc2f8b9d925f49ea7e
ee00ebe5e71c36b05fbff993b19e9723b963313f
/35_inserted_position.py
f5142c9a3ab2c24b65c81f2721f1dd7ad04a16e3
[]
no_license
26XINXIN/leetcode
f365560d93604a28abf399707b333f3c11f924ec
78ed11f34fd03e9a188c9c6cb352e883016d05d9
refs/heads/master
2021-06-28T16:31:45.103879
2020-09-19T20:33:55
2020-09-19T20:33:55
144,975,903
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
class Solution: def searchInsert(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int """ ans = self.binary_search(nums, 0, len(nums)-1, target) if ans == len(nums)-1 and target > nums[-1]: ans += 1 return ans ...
[ "yangxin.nlp@bytedance.com" ]
yangxin.nlp@bytedance.com
0961a55413c0854c2148a4c91bfb17bbb9891d86
3122ac39f1ce0a882b48293a77195476299c2a3b
/clients/python-flask/generated/openapi_server/models/pipeline_run_node.py
f205f70d61ad88141b09f4ad9bdc2cfd5a55b15f
[ "MIT" ]
permissive
miao1007/swaggy-jenkins
4e6fe28470eda2428cbc584dcd365a21caa606ef
af79438c120dd47702b50d51c42548b4db7fd109
refs/heads/master
2020-08-30T16:50:27.474383
2019-04-10T13:47:17
2019-04-10T13:47:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,765
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server.models.pipeline_run_nodeedges import PipelineRunNodeedges # noqa: F401,E501 from openapi_server...
[ "cliffano@gmail.com" ]
cliffano@gmail.com
4e4336b975c5ee46eb7645c1b114c235d4303c50
989f011a784015e1a33c41362ab4ec06e92b3339
/examples/07_functions/func_args_unpacking.py
1e837181f73877fce4b28831c45f757f1b3da290
[]
no_license
yevgeniy-voloshin/pyneng-online-jun-jul-2017
b0be9df7d379e24b654172c1bc3f5cc0bdbbcd2f
050e43d7f582528189005c1b7c34970352e968f1
refs/heads/master
2021-01-21T16:22:27.347769
2017-05-19T17:35:16
2017-05-19T17:35:16
91,885,650
1
0
null
2017-05-20T11:46:28
2017-05-20T11:46:28
null
UTF-8
Python
false
false
3,132
py
# Unpacking positional arguments def config_interface(intf_name, ip_address, cidr_mask): interface = 'interface %s' no_shut = 'no shutdown' ip_addr = 'ip address %s %s' result = [] result.append(interface % intf_name) result.append(no_shut) mask_bits = int(cidr_mask.split('/')[-1]) bi...
[ "pyneng.course@gmail.com" ]
pyneng.course@gmail.com
408cd967099fe900471e4103edf3f71c8f1f8cd8
12e04c219d6911d06a048c913f8d8d6c00dad857
/chendian/api/blog/views.py
5deab03ba38adced720c0e0764230d3bc891c9a2
[ "MIT" ]
permissive
mozillazg/chendian-plus
928e98beb77f351e08b25a5ba9671ad648dac4b5
893c62b4b855879006d4cb378faeb9d1c6635923
refs/heads/master
2023-09-04T09:58:58.112022
2017-04-04T09:44:28
2017-04-04T09:44:28
31,481,576
0
2
null
null
null
null
UTF-8
Python
false
false
2,155
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals from django.shortcuts import get_object_or_404 from rest_framework.views import APIView from rest_framework.permissions import IsAdminUser from rest_framework.response import Response from rest_framew...
[ "opensource.mozillazg@gmail.com" ]
opensource.mozillazg@gmail.com
ddf15062b858f78fb39fed56808c8b1e276647cd
f4b3be2a3955c26b4e05ab162fa4909cf9a14f11
/CRB/validators/subsystems/enforcements/enf088.py
c28e582eaead1d50d8b94f0b33352ef67a14a38f
[]
no_license
njovujsh/crbdjango
fd1f61403c1fbdac01b1bda5145faeb4b9ef9608
fdf5cc6ca5920a596c5463187d29202719664144
refs/heads/master
2022-12-04T18:13:07.709963
2018-05-14T09:07:47
2018-05-14T09:07:47
133,333,767
0
0
null
2022-11-22T01:44:28
2018-05-14T09:04:17
JavaScript
UTF-8
Python
false
false
599
py
from validators.subsystems.enforcements import enf001 class ENF088(enf001.ENF001): def __init__(self, mobject, field, priority, action): super(ENF088, self).__init__(mobject, field, priority, action) self.status = None self.fcs = None def validate_field(self, field...
[ "njovujsh@gmail.com" ]
njovujsh@gmail.com
878d117d208c8bddc445d9193bd60d9962bc2d04
ad553dd718a8df51dabc9ba636040da740db57cf
/.history/app_20181202205024.py
2016dd936c4c5606bd2c690a9091adbc44772a0d
[]
no_license
NergisAktug/E-Commerce-PythonWithFlask-Sqlite3
8e67f12c28b11a7a30d13788f8dc991f80ac7696
69ff4433aa7ae52ef854d5e25472dbd67fd59106
refs/heads/main
2023-01-01T14:03:40.897592
2020-10-19T20:36:19
2020-10-19T20:36:19
300,379,376
0
0
null
null
null
null
UTF-8
Python
false
false
1,828
py
"""Flask Login Example and instagram fallowing find""" from flask import Flask, url_for, render_template, request, redirect, session, escape from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.secret_key = 'any random string' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///kullanicilar.db' db = SQ...
[ "nergis.aktug2014@gmail.com" ]
nergis.aktug2014@gmail.com
c266c889f792a3b3629b97cb48f01a1e98e7ab09
4ca0cb74402be70c63ad8e1c67b529cd7770ba38
/19_model-view_controller/mvc.py
f0b57f822676e41408bad59aeb0327aba2d02a44
[]
no_license
alxfed/python-design-patterns
06af6f8e47925bcafe39a117943dd8287a6fe567
b1a1ffb02b6e81e44bc7f0491376f9121b325a09
refs/heads/master
2020-04-02T04:34:18.060976
2019-12-18T16:08:00
2019-12-18T16:08:00
154,022,815
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
""" mvc.py """ import sys class GenericController(object): def __init__(self): self.model = GenericModel() self.view = GenericView() def handle(self, request): data = self.model.get_data(request) self.view.generate_response(data) class GenericModel(object): def __init__(...
[ "alxfed@gmail.com" ]
alxfed@gmail.com
66379b12d4d5befc395446e0bd7e8fd9610fbfe9
7626a8371c7a847f93bdae5e1d6e03ee9667c3ba
/func/print_area_kz/venv/bin/sqlformat
87ba197dbb67cb1b0c1fd9666d91f0b0353cc1f2
[]
no_license
zzyzx4/sp
52c815fd115b4605942baa73687838f64cd41864
90c7a90b3de27af674422e2c8892bad5ba7891e8
refs/heads/master
2020-05-23T21:20:28.166932
2019-07-19T11:56:49
2019-07-19T11:56:49
186,950,380
0
0
null
null
null
null
UTF-8
Python
false
false
260
#!/home/user/PycharmProjects/print_area_kz/venv/bin/python # -*- coding: utf-8 -*- import re import sys from sqlparse.__main__ import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "dastik0101@gmail.com" ]
dastik0101@gmail.com
1c59053d7c6f0cc642b0dbe1ecc9f46b90c2c6f1
34745a8d54fa7e3d9e4237415eb52e507508ad79
/Python_Advanced/05_Functions Advanced/Exercise/04_negative_vs_positive.py
db0c4a49d3f9878fa05166a33c9f802e169e1017
[]
no_license
DilyanTsenkov/SoftUni-Software-Engineering
50476af0dc88b267d72c56fa87eeb88d841164b2
fe446e3a50a00bb2e48d71ab8f783e0a4a406094
refs/heads/main
2023-08-12T18:18:42.144210
2021-09-25T11:10:38
2021-09-25T11:10:38
317,235,419
1
2
null
null
null
null
UTF-8
Python
false
false
1,072
py
def absolute(negative_sum): return abs(negative_sum) def compare_negative_positive_sum(negative_sum, positive_sum): if positive_sum >= negative_sum: return True else: return False def negative_separator(numbers): if numbers < 0: return True def positive_sepa...
[ "noreply@github.com" ]
DilyanTsenkov.noreply@github.com
a370c978a47bc4b67c07d327141825fd9ce68d99
b441503bcdb484d098885b19a989932b8d053a71
/neural_sp/evaluators/wordpiece.py
aae95de11e128601df6e62d74b585a82e86bef85
[ "Apache-2.0" ]
permissive
entn-at/neural_sp
a266594b357b175b0fea18253433e32adc62810c
9dbbb4ab3985b825f8e9120a603a6caa141c8bdd
refs/heads/master
2020-08-28T05:48:28.928667
2020-06-22T19:17:53
2020-06-22T19:17:53
217,611,439
0
0
null
2019-10-25T20:40:18
2019-10-25T20:40:18
null
UTF-8
Python
false
false
7,250
py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2018 Kyoto University (Hirofumi Inaguma) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Evaluate the wordpiece-level model by WER.""" from __future__ import absolute_import from __future__ import division from __future__ import print_functio...
[ "hiro.mhbc@gmail.com" ]
hiro.mhbc@gmail.com
f98a1584a105d194c9e6e6a5e93adcc623f4cfab
cb61ba31b27b232ebc8c802d7ca40c72bcdfe152
/leetcode/931. Minimum Falling Path Sum/soln.py
1e4b6c29b5e019be51d4b3abc9a345a86c121f90
[ "Apache-2.0" ]
permissive
saisankargochhayat/algo_quest
c7c48187c76b5cd7c2ec3f0557432606e9096241
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
refs/heads/master
2021-07-04T15:21:33.606174
2021-02-07T23:42:43
2021-02-07T23:42:43
67,831,927
5
1
Apache-2.0
2019-10-28T03:51:03
2016-09-09T20:51:29
Python
UTF-8
Python
false
false
1,022
py
# So we create a DP and start from the last low and start building up the the upper rows in the dp 2d array # dp[i][j] represents the minimum path to reach that element with the given constraints. class Solution: def minFallingPathSum(self, A: List[List[int]]) -> int: dp = [[0 for j in range(len(A[0]))] fo...
[ "saisankargochhayat@gmail.com" ]
saisankargochhayat@gmail.com
b96f2c76b38323327b3fd2cd6fe341d4e3148b74
ec4ce2cc5e08e032f2bdb7d8e6ba616e80e6f5f7
/chapter11_test_code/test_cities.py
f669296324136f72db551ae3d88cecb53a02dda6
[]
no_license
AiZhanghan/python-crash-course-a-hands-on-project-based-introduction-to-programming
8fc54ef69636c88985df00b546bc49c4a2378e79
9d8c9fde7d6ab9fe664fa718e1516d7442eafd00
refs/heads/master
2020-09-28T18:28:56.558413
2019-12-12T11:05:43
2019-12-12T11:05:43
226,835,456
0
0
null
null
null
null
UTF-8
Python
false
false
772
py
import unittest from city_functions import get_formated_city_name class CityTestCase(unittest.TestCase): '''测试city_functions.py''' def test_city_country(self): '''能够正确地处理像Santiago, Chile这样的城市吗?''' formetted_city_name = get_formated_city_name('santiago', 'chile') self.assertEqual(forme...
[ "35103759+AiZhanghan@users.noreply.github.com" ]
35103759+AiZhanghan@users.noreply.github.com
8d6d28f03e7dba2a24a1999e76fb628096a9fb19
486173e490129cec10b15c36903af3d13cfb0950
/FP-growth/fpGrowthTest.py
96ee73f6f17be8d5471447071182a3d3d5beda46
[]
no_license
Hsingmin/MLinAction_on_Python2
ce3592297cbddf4e7a5c6525b6491b1b37b87ca5
ac5c5f8a167d3b4a5f7c7ee9e3409136db423ac0
refs/heads/master
2021-07-25T10:06:02.933608
2017-11-04T08:55:08
2017-11-04T08:55:08
103,387,222
1
0
null
null
null
null
UTF-8
Python
false
false
1,117
py
# fpGrowthTest.py import fpGrowth from numpy import * ''' # FP-Tree node create test rootNode = fpGrowth.treeNode('pyramid', 9, None) rootNode.children['eye'] = fpGrowth.treeNode('eye', 13, None) rootNode.children['phoenix'] = fpGrowth.treeNode('phoenix', 3, None) rootNode.disp() ''' simData =...
[ "alfred_bit@sina.cn" ]
alfred_bit@sina.cn
f9198d9eb339474258efaac2ded39e65e899ec24
b8e249f2bf0aa175899090128f7a77fb34aa2c1b
/apps/users/migrations/0002_auto_20190523_2209.py
ad3a4736f1152245525812b35261e78189162d03
[]
no_license
dojo-ninja-gold/ng-server
80d8568fa960e882df9e1a6fff7e020e93ff2990
fcd69744a2ebf99f0c24b3136ba7a2d8a4c683e1
refs/heads/master
2023-05-03T21:05:54.026847
2019-05-24T22:29:51
2019-05-24T22:29:51
187,918,381
0
0
null
2023-04-21T20:32:36
2019-05-21T21:49:40
Python
UTF-8
Python
false
false
830
py
# Generated by Django 2.2.1 on 2019-05-23 22:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='first_name', fie...
[ "wes@tao.team" ]
wes@tao.team
1d35b0c6b7a5c4252763588c948c81d9b77ad15b
b458b2cf3011a73def66605b296144049909cd48
/tests/my_trade.py
e749520a049723eff15fa850405a79187d1d6f1f
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
shihliu/python-binance
8c5607a78a4794f9b42fe90092a149f4050d4710
c44f8a315df32c8b5d54750c27703060ec9060aa
refs/heads/master
2021-08-22T02:47:10.423523
2017-11-29T04:34:30
2017-11-29T04:34:30
111,865,384
0
0
null
2017-11-24T01:57:33
2017-11-24T01:57:33
null
UTF-8
Python
false
false
1,044
py
from binance.client import Client import json client = Client('yq67cDjrCxGl6eeKMyTeiK1zkeArFpu8v4uB4b6TWDQdgjDlH0KjmXfHBZ1NjvJj', 'DxE7Wugo75EK8mLmybY76dbZW6tROpyNjBRd9NHsEOXqBaKq6Awgul4390xwRUdc') my_trade = client.get_my_trades(symbol='QSPETH') all_buy_price = all_buy_amount= 0.0 all_sell_price = all_sell_amount= 0...
[ "root@dhcp-129-210.nay.redhat.com" ]
root@dhcp-129-210.nay.redhat.com
4b9785d208ec7bfd695f67a1c0ae0ae14af5c025
d3e4b3e0d30dabe9714429109d2ff7b9141a6b22
/Visualization/LagrangeInterpolationVisualization.py
88ab36a87c9cd16c736d839ffcb9ba3d3157994f
[ "MIT" ]
permissive
SymmetricChaos/NumberTheory
184e41bc7893f1891fa7fd074610b0c1520fa7dd
65258e06b7f04ce15223c1bc0c2384ef5e9cec1a
refs/heads/master
2021-06-11T17:37:34.576906
2021-04-19T15:39:05
2021-04-19T15:39:05
175,703,757
1
0
null
null
null
null
UTF-8
Python
false
false
699
py
from Polynomials import lagrange_interpolation import matplotlib.pyplot as plt import numpy as np points = [1,3,5,7] function = lambda x: np.sin(x) print("""Lagrange interpolation takes a set of n points and finds the "best" polynomial that describes them. Given n points on a plane there is a polynomial of degree n...
[ "ajfraebel@gmail.com" ]
ajfraebel@gmail.com
0b1900e0a13d5588aa349822a427ad816264765e
287fcd6bc49381d5b116dd541a97c0ff37141214
/app/section/sections/hero_section.py
c5960e017024cdfa7d8610c48d487ea424d32899
[]
no_license
elcolono/wagtail-cms
95812323768b90e3630c5f90e59a9f0074157ab5
b3acb2e5c8f985202da919aaa99ea9db2f6b4d51
refs/heads/master
2023-05-26T05:24:42.362695
2020-10-08T17:23:22
2020-10-08T17:23:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,839
py
from django.db import models from wagtail.snippets.models import register_snippet from wagtail.admin.edit_handlers import ( MultiFieldPanel, FieldPanel, StreamFieldPanel, FieldRowPanel) from wagtail.admin.edit_handlers import ObjectList, TabbedInterface from wagtail.images.edit_handlers import ImageChooserPanel fr...
[ "andreas.siedler@gmail.com" ]
andreas.siedler@gmail.com
b1ff28e00fcaf827759d3315508259d5c02fe49a
912cb61eaa768716d30844990ebbdd80ab2c2f4e
/ex070.py
aad48d4aa3286cd92534b1c397274d2ac7ddf5ea
[]
no_license
luizaacampos/exerciciosCursoEmVideoPython
5fc9bed736300916e1c26d115eb2e703ba1dd4ca
398bfa5243adae00fb58056d1672cc20ff4a31d6
refs/heads/main
2023-01-06T21:48:17.068478
2020-11-11T12:29:10
2020-11-11T12:29:10
311,964,179
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
total = tk = menor = soma = 0 print('--------------Loja Sallus-----------------') while True: prod = input('Nome do produto: ') valor = float(input('Preço: R$')) soma += 1 cont = str(input('Quer continuar? [S/N] ')).upper().strip()[0] total += valor if valor > 1000.00: tk += 1 if som...
[ "luiza.almcampos@gmail.com" ]
luiza.almcampos@gmail.com
30197700259a9549341c49c7bd19ffeca986744d
fb0e99751068fa293312f60fedf8b6d0b9eae293
/slepé_cesty_vývoje/iskušitel/najdu_testovací_soubory.py
452504d722f35dd929333e4039ac4e9dc3d416ee
[]
no_license
BGCX261/zora-na-pruzi-hg-to-git
d9628a07e3effa6eeb15b9b5ff6d75932a6deaff
34a331e17ba87c0de34e7f0c5b43642d5b175215
refs/heads/master
2021-01-19T16:52:06.478359
2013-08-07T19:58:42
2013-08-07T19:58:42
41,600,435
0
0
null
null
null
null
UTF-8
Python
false
false
1,598
py
#!/usr/bin/env python3 # Copyright (c) 2012 Домоглед <domogled@domogled.eu> # @author Петр Болф <petr.bolf@domogled.eu> import os, fnmatch MASKA_TESTOVACÍCH_SOUBORŮ = 'testuji_*.py' def najdu_testovací_soubory(cesta): počet_nalezených_testů = 0 if os.path.isdir(cesta): for cesta_...
[ "petr.bolf@domogled.eu" ]
petr.bolf@domogled.eu
bbca1de8f3365de6962acd80b69471036e33422e
68c4805ad01edd612fa714b1e0d210115e28bb7d
/venv/Lib/site-packages/numba/tests/test_config.py
de8371b8b2d4ac9757452a6d5a24a1954ff13f8d
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Happy-Egg/redesigned-happiness
ac17a11aecc7459f4ebf0afd7d43de16fb37ae2c
08b705e3569f3daf31e44254ebd11dd8b4e6fbb3
refs/heads/master
2022-12-28T02:40:21.713456
2020-03-03T09:04:30
2020-03-03T09:04:30
204,904,444
2
1
Apache-2.0
2022-12-08T06:19:04
2019-08-28T10:18:05
Python
UTF-8
Python
false
false
3,444
py
import os import tempfile import unittest from .support import TestCase, temp_directory, override_env_config from numba import config try: import yaml _HAVE_YAML = True except ImportError: _HAVE_YAML = False _skip_msg = "pyyaml needed for configuration file tests" needs_yaml = unittest.skipIf(not _HAVE_YA...
[ "yangyang4910709@163.com" ]
yangyang4910709@163.com
19377378073d0491068a8850c5ec1a202b416b4e
e514bbdf8e0abe5ef0b58b94fe5f7d2afb38ea6b
/test_suite/shared_data/frame_order/cam/rotor/perm_pseudo_ellipse_z_le_x_le_y_alt/pseudo-ellipse.py
b1dec4d76ae1ec4b73e2fd5cf18f201d538cd854
[]
no_license
edward-dauvergne/relax
98ad63703e68a4535bfef3d6c0529e07cc84ff29
9710dc0f2dfe797f413756272d4bec83cf6ca1c9
refs/heads/master
2020-04-07T04:25:25.382027
2017-01-04T15:38:09
2017-01-04T15:38:09
46,500,334
1
1
null
null
null
null
UTF-8
Python
false
false
3,967
py
# Optimise all 3 pseudo-ellipse permutations for the CaM rotor synthetic frame order data. # These 3 solutions should mimic the rotor solution. # Python module imports. from numpy import array, cross, float64, transpose, zeros from numpy.linalg import norm import sys # relax module imports. from lib.geometry.coord_tr...
[ "bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5" ]
bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5
c253644311d7fe2b49eac8dac03132f4f1cdd8ba
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/302/66800/submittedfiles/testes.py
7c56144edfa042834f7911ced03a33c1d0ca5381
[]
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
188
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO idade = int(input('Digite sua idade')) if idade => 18: print ("maior de idade") else: print ('menor de idade')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
72f1a1f05e457a9f11bdee1d6b7442f9a3fe8ee7
e436e729b0a78c7062311e0f48c55dd25d13faef
/tests/core/test_utils.py
b2bc8e17e86be01fde91a5b6c1f2ba12e3fdf488
[ "MIT" ]
permissive
cad106uk/market-access-public-frontend
71ff602f4817666ed2837432b912f108010a30a1
092149105b5ddb1307c613123e94750b0b8b39ac
refs/heads/master
2023-02-03T18:48:45.838135
2020-12-24T09:38:56
2020-12-24T09:38:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
import datetime from unittest import TestCase from apps.core.utils import convert_to_snake_case, chain, get_future_date class UtilsTestCase(TestCase): def test_get_future_date(self): now = datetime.datetime.now() future_date_str = get_future_date(60) extra_days = datetime.datetime.strpt...
[ "noreply@github.com" ]
cad106uk.noreply@github.com
1808c14f89677eda21489c6ca86615cddc39f671
762db71e9bb66ab5821bd91eff7e0fa813f795a0
/code/python/echomesh/util/math/LargestInvertible.py
d29937b39ff5a64bf2a144c83e74a0f9632c2172
[ "MIT" ]
permissive
huochaip/echomesh
0954d5bca14d58c0d762a5d3db4e6dcd246bf765
be668971a687b141660fd2e5635d2fd598992a01
refs/heads/master
2020-06-17T20:21:47.216434
2016-08-16T16:49:56
2016-08-16T16:49:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,014
py
from __future__ import absolute_import, division, print_function, unicode_literals import fractions import math from six.moves import xrange # http://stackoverflow.com/questions/4798654/modular-multiplicative-inverse-function-in-python # from https://en.wikibooks.org/wiki/Algorithm_Implementation/Mathematics/Extende...
[ "tom@swirly.com" ]
tom@swirly.com
3e788e30fcf2f685d56dbf028eb1b93f22e164be
6a07912090214567f77e9cd941fb92f1f3137ae6
/cs212/Problem Set 1/2.py
97b6cb647b9c05d52c0f4bd57cf754e82586bf20
[]
no_license
rrampage/udacity-code
4ab042b591fa3e9adab0183d669a8df80265ed81
bbe968cd27da7cc453eada5b2aa29176b0121c13
refs/heads/master
2020-04-18T08:46:00.580903
2012-08-25T08:44:24
2012-08-25T08:44:24
5,352,942
3
0
null
null
null
null
UTF-8
Python
false
false
3,333
py
# cs212 ; Problem Set 1 ; 2 # CS 212, hw1-2: Jokers Wild # # ----------------- # User Instructions # # Write a function best_wild_hand(hand) that takes as # input a 7-card hand and returns the best 5 card hand. # In this problem, it is possible for a hand to include # jokers. Jokers will be treated as 'wild cards' whic...
[ "raunak1001@gmail.com" ]
raunak1001@gmail.com
33791d780f140caa7af658d364f82aa0c8a86f28
aa1972e6978d5f983c48578bdf3b51e311cb4396
/nitro-python-1.0/nssrc/com/citrix/netscaler/nitro/resource/config/cluster/clusternodegroup_streamidentifier_binding.py
e684932798111ad39584954df57a8ca7c17454bc
[ "Python-2.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
MayankTahil/nitro-ide
3d7ddfd13ff6510d6709bdeaef37c187b9f22f38
50054929214a35a7bb19ed10c4905fffa37c3451
refs/heads/master
2020-12-03T02:27:03.672953
2017-07-05T18:09:09
2017-07-05T18:09:09
95,933,896
2
5
null
2017-07-05T16:51:29
2017-07-01T01:03:20
HTML
UTF-8
Python
false
false
6,873
py
# # Copyright (c) 2008-2016 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ "Mayank@Mandelbrot.local" ]
Mayank@Mandelbrot.local
125671ac083b8ab5d77142fb5411d4afa74e234c
7673df8dec063e83aa01187d5a02ca8b4ac3761d
/Basic/functions.py
8f1badb2bde7f5c4aa358988eb3330bc69a6532a
[]
no_license
jedthompson99/Python_Course
cc905b42a26a2aaf008ce5cb8aaaa6b3b66df61e
618368390f8a7825459a20b4bc28e80c22da5dda
refs/heads/master
2023-07-01T08:39:11.309175
2021-08-09T17:28:32
2021-08-09T17:28:32
361,793,964
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
def full_name(first, last): print(f'{first} {last}') full_name('Kristine', 'Hudgens') def auth(email, password): if email == 'kristine@hudgens.com' and password == 'secret': print('You are authorized') else: print('You are not authorized') auth('kristine@hudgens.com', 'asdf') def hundred(): f...
[ "jedthompson@gmail.com" ]
jedthompson@gmail.com
ecfe49b03baa1334ccc75a2b3bdbf0eb1e4e241a
4fca17a3dbc3e74ba7e46bd7869eb6d138e4c422
/_0163_Missing_Ranges.py
b5c8d5b3ad79b18657c10fbcb233bf4e9f0f2ccd
[]
no_license
mingweihe/leetcode
a2cfee0e004627b817a3c0321bb9c74128f8c1a7
edff905f63ab95cdd40447b27a9c449c9cefec37
refs/heads/master
2021-06-19T07:46:46.897952
2021-05-02T05:13:17
2021-05-02T05:13:17
205,740,338
3
0
null
null
null
null
UTF-8
Python
false
false
674
py
class Solution(object): def findMissingRanges(self, nums, lower, upper): """ :type nums: List[int] :type lower: int :type upper: int :rtype: List[str] """ res = [] for x in nums: if x == lower: lower += 1 elif lo...
[ "10962421@qq.com" ]
10962421@qq.com
a149aaf98e52f7341e3dcc68f0efb14590b43c19
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02700/s274282920.py
922c558418997e6ed17552a908b8b8cb32996882
[]
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
168
py
A,B,C,D = (int(x) for x in input().split()) while True: C -= B if C <= 0: print('Yes') break else: A -= D if A <= 0: print('No') break
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6b854b39440765b0f5c80e3c3f73c5fdf6d4f8b8
4d10250b7ce80730414468e5e0060a207253a6d0
/jplephem/test.py
bc8ec152f0e375d2117b0930f489d0e20a305d78
[]
no_license
NatalieP-J/python
c68fdb84a6c9c432b34e57ae4e376f652451578a
c74bcfabde4704939550875bc42fc3e8a5dbc5bf
refs/heads/master
2021-01-23T03:08:06.448979
2013-08-21T04:04:11
2013-08-21T04:04:11
10,916,520
0
0
null
null
null
null
UTF-8
Python
false
false
2,108
py
"""Tests for ``jplephem``. See the accompanying ``jpltest`` module for a more intense numerical test suite that can verify that ``jplephem`` delivers, in a large number of cases, the same results as when the ephemerides are run at JPL. This smaller and more feature-oriented suite can be run with:: python -m unit...
[ "natalie.price.jones@mail.utoronto.ca" ]
natalie.price.jones@mail.utoronto.ca
b416e000c05055c966ef50e7bead35df903c7b05
8b8a06abf18410e08f654fb8f2a9efda17dc4f8f
/app/request_session.py
f6a0cb38f59f5353b537a1d430baac107a5c80f0
[]
no_license
corporacionrst/software_RST
d903dfadf87c97c692a821a9dd3b79b343d8d485
7a621c4f939b5c01fd222434deea920e2447c214
refs/heads/master
2021-04-26T23:23:27.241893
2018-10-05T23:21:34
2018-10-05T23:21:34
123,985,674
0
0
null
null
null
null
UTF-8
Python
false
false
1,903
py
from sistema.usuarios.models import Perfil def getPerfil(request): return Perfil.objects.get(usuario=request.user) # def getStore(request): # return Perfil.objects.get(usuario=request.user).tienda def OKadmin(request): if request.user.is_authenticated(): if "ADMIN" in Perfil.objects.get(usuario=request.user)...
[ "admin@corporacionrst.com" ]
admin@corporacionrst.com
28baac5a621d65ae8bfeae46ed657209afc3d95a
2af6a5c2d33e2046a1d25ae9dd66d349d3833940
/res/scripts/client/gui/shared/utils/requesters/tokenrequester.py
1ace65ad86b0304adeff25edcc9173651083c9f2
[]
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
3,878
py
# 2015.11.10 21:29:45 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/shared/utils/requesters/TokenRequester.py import cPickle from functools import partial import BigWorld from adisp import async from constants import REQUEST_COOLDOWN, TOKEN_TYPE from debug_utils import LOG_CURRENT_EXCEPTION from T...
[ "info@webium.sk" ]
info@webium.sk
0b85630a9123b498e5f50e15d65fb027b4057127
1c6b5d41cc84c103ddb2db3689f61f47eaa2c13b
/CV_ToolBox-master/VOC_2_COCO/xml_helper.py
c97bb05d81b946aa96ae1e1ee0c4209f0f9cc9a7
[]
no_license
Asher-1/DataAugmentation
e543a93912239939ccf77c98d9156c8ed15e1090
c9c143e7cccf771341d2f18aa11daf8b9f817670
refs/heads/main
2023-07-01T22:49:10.908175
2021-08-13T10:01:56
2021-08-13T10:01:56
395,602,033
0
0
null
null
null
null
UTF-8
Python
false
false
4,300
py
# -*- coding=utf-8 -*- import os import xml.etree.ElementTree as ET import xml.dom.minidom as DOC # 从xml文件中提取bounding box信息, 格式为[[x_min, y_min, x_max, y_max, name]] def parse_xml(xml_path): ''' 输入: xml_path: xml的文件路径 输出: 从xml文件中提取bounding box信息, 格式为[[x_min, y_min, x_max, y_max, name]] ...
[ "ludahai19@163.com" ]
ludahai19@163.com
a504526e7afcb6817c2878fa279d32e1dfc65ac6
72f5adc4b6f79dd40e975c86abcdbd3d0ccada86
/venv/bin/pip3.7
3786525abb997c921a0c0979436550edefdc7960
[]
no_license
katrek/flask_vacancy_parser
77101604ec5bfeb47c009b9d8329b42d9d30bf4a
bbea4ae860bb78f7264b05e92c6664f8e4c4b3cf
refs/heads/master
2023-01-11T11:58:09.275448
2019-08-29T06:36:53
2019-08-29T06:36:53
204,666,913
1
1
null
2023-01-03T12:19:03
2019-08-27T09:22:35
Python
UTF-8
Python
false
false
420
7
#!/Users/artemtkachev/PycharmProjects/flask_parser2/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys....
[ "akatrek@gmail.com" ]
akatrek@gmail.com
48dd32f18373f2b389e32630ded0044734fd4b19
4d44674625100e62be2bb5033339fb641bd454ac
/snippet/example/python/project/project/db/sqlalchemy/models.py
782d92b417a09747274a173923da7001f80a4da4
[ "MIT", "Apache-2.0" ]
permissive
xgfone/snippet
8b9004a649d2575b493a376c4b4f3d4a7c56a4b0
b0b734dd35478b7ef3e6193623981f4f29b6748c
refs/heads/master
2022-03-18T12:41:09.033144
2022-02-20T15:26:35
2022-02-20T15:26:35
41,615,643
158
61
null
null
null
null
UTF-8
Python
false
false
1,152
py
# coding: utf-8 from __future__ import absolute_import, print_function, unicode_literals, division import logging from sqlalchemy.ext.declarative import declarative_base from oslo_db.sqlalchemy import models from sqlalchemy import create_engine from sqlalchemy import Column, String, Integer, DateTime from sqlalchemy....
[ "xgfone@126.com" ]
xgfone@126.com
a1f9f2880c5805d0642099f67fac1e61760b9185
c342d39a064441d7c83b94e896dfbac1dc155666
/setup.py
cc22030282c6d003af194c2c298389e898f5d44d
[ "MIT" ]
permissive
arsho/generator
a67d876bf9dded9bacdbd50a9ab3999f90c81731
5dc346850ec99a47ca7c074e3e5dec0b5fff30e2
refs/heads/master
2021-01-01T16:54:41.955771
2017-07-21T14:37:34
2017-07-21T14:37:34
97,951,569
3
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
# -*- coding: utf-8 -*- from setuptools import setup def readme(): with open('README.rst', encoding='utf8') as f: return f.read() setup(name='generator', version='0.0.1', description='Generator is a package for generating strong password and check strength of user defined password.', long_...
[ "shovon.sylhet@gmail.com" ]
shovon.sylhet@gmail.com
8f09ee1c175eaa67db58c061ed1f27c69414af94
20ade86a0c0f0ca6be3fae251488f985c2a26241
/exp/analyze_5.py
d038d5fa9c073324d036a898b7df5cf86f573c6a
[]
no_license
adysonmaia/phd-sp-static
69344fdd4edb4c216e4b88b0193308b33a30e72c
79038d165c19f90e1f54597f7049553720f34c74
refs/heads/master
2023-04-14T15:59:07.414873
2019-10-24T07:56:37
2019-10-24T07:56:37
355,110,847
2
0
null
null
null
null
UTF-8
Python
false
false
5,099
py
import csv import numpy as np import scipy.stats as st import matplotlib import matplotlib.pyplot as plt DPI = 100 Y_PARAM = { 'max_dv': { 'label': 'Deadline Violation - ms', 'limit': [0.0, 10.0] }, 'dsr': { 'label': 'Deadline Satisfaction - %', 'limit': [40.0, 100.0] ...
[ "adyson.maia@gmail.com" ]
adyson.maia@gmail.com
17d235e0928561692d73711efe48d58fd5d371fa
06aa3ec3262f6dd6866ea194ed6385f8e53509bf
/manuscript_codes/AML211DiffALL/remove_nonexistent_fromAnnotatedcsv.py
409adfbaa7c37d20329ae26f43f38331d13472ce
[]
no_license
KuehLabUW/UPSIDE
95ce078382792d1beb0574c3b19c04e467befa58
3c90de9677f24e258800cb95bce6cb528f4ad4ac
refs/heads/master
2023-07-13T15:58:07.963672
2021-08-30T21:14:48
2021-08-30T21:14:48
329,134,647
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Mar 23 16:21:25 2019 this script concatenates fluorescent data and subim data from separate csv files and return a merged csv file for all positions @author: phnguyen """ import pandas as pd import os csvs_dirname = '/media/phnguyen/Data2/Imaging/CellM...
[ "kuehlab@uw.edu" ]
kuehlab@uw.edu
b39f7d7bc5979960cc3a326e3a5e41d319fc3636
16c5a7c5f45a6faa5f66f71e043ce8999cb85d80
/app/honor/student/listen_everyday/object_page/history_page.py
014714a71b529b852af33e51e693c88f7b3b6757
[]
no_license
vectorhuztt/test_android_copy
ca497301b27f49b2aa18870cfb0fd8b4640973e5
f70ab6b1bc2f69d40299760f91870b61e012992e
refs/heads/master
2021-04-03T19:26:48.009105
2020-06-05T01:29:51
2020-06-05T01:29:51
248,389,861
1
1
null
null
null
null
UTF-8
Python
false
false
4,494
py
# coding: utf-8 # ------------------------------------------- # Author: Vector # Date: 2018/12/17 16:11 # ------------------------------------------- from selenium.webdriver.common.by import By from app.honor.student.login.object_page.home_page import HomePage from conf.base_page import BasePage from conf.decorat...
[ "vectorztt@163.com" ]
vectorztt@163.com
a9f60f3ed1fe3f516a90a7101d86cf5d08986545
3b80ec0a14124c4e9a53985d1fa0099f7fd8ad72
/realestate/urls.py
11e290ebf235d7ae4d3ce6986f61c81f4176ded0
[]
no_license
aayushgupta97/RealEstate_Django_TTN
ec4dde7aa3a1bcfa4d88adb5ea7ebb20127e7489
9af7c26c85c46ac5b0e3b3fad4a7b1067df20c47
refs/heads/master
2020-05-04T08:09:03.917026
2019-04-18T08:30:05
2019-04-18T08:30:05
179,041,202
1
0
null
null
null
null
UTF-8
Python
false
false
567
py
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from pages import views as page_views urlpatterns = [ path('properties/', include('properties.urls')), path('', include('pages.urls')), path('admin/', admin.sit...
[ "aayushgupta2097@gmail.com" ]
aayushgupta2097@gmail.com
fc2f5b4eaf1d9c7e2539b1ef43e5b12ba9fbe924
38fecea29fa82eb203fd964acd54ffacc7e4c388
/chapter03/page048_colored_grid.py
9a62621c8c535c213b8b8c6e2da4ef4c1286ade9
[]
no_license
mjgpy3/mfp-python3-examples
3c74f09c6155e9fbf35bd8ec104bdfe4429b9f4b
09547141d25859fe93a6a0e70c828877ee93f736
refs/heads/master
2020-12-03T18:38:30.411800
2020-01-18T20:42:20
2020-01-18T20:42:20
231,431,066
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
#!/usr/bin/env python3 from page040_grid import Grid class ColoredGrid(Grid): # Cannot do specific property setters in Python def set_distances(self, distances): self.distances = distances farthest, self.maximum = distances.max() def background_color_for(self, cell): distance = self.distances[cell...
[ "mjg.py3@gmail.com" ]
mjg.py3@gmail.com
de0beb1610545ee78ac1dcc707d7fc40e2c1a0fb
748bbab674d1a5ae6a59bfd4ac22efcb4355e82a
/Prog-II/Back_Front/back/modelo.py
500e048c4dda6a3d2bb759c389dc9ab5b947b11b
[]
no_license
Lima001/Tecnico-IFC
8819114a35080eb914a2d836a0accbf79d3268d8
771fa39dd6046a9d92860fbde70c10dcecd975a3
refs/heads/master
2021-02-07T01:31:04.929420
2020-06-24T02:09:38
2020-06-24T02:09:38
243,967,689
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
from peewee import * arq = "dados.db" db = SqliteDatabase(arq) class BaseModel(Model): class Meta: database = db class Cachorro(BaseModel): nome = CharField() idade = IntegerField() raca = CharField() if __name__ == "__main__": db.connect() db.create_tables([Cachorro]) dog1 = C...
[ "limaedugabriel@gmail.com" ]
limaedugabriel@gmail.com
0dabd218576ed96dbe4a021fce762f03727b90ae
b4948c322401435a02370dd96708399fda4a48fc
/demo/simple_code/test_pass.py
453fa756db68194cdd14c29692c9fa5fb24807be
[]
no_license
fengbingchun/Python_Test
413e2c9bb844a5b3641e6e6daf37df277589006e
eaedcd55dbc156b685fa891538e1120ea68fa343
refs/heads/master
2023-06-21T02:28:07.310364
2023-06-11T04:46:29
2023-06-11T04:46:29
99,814,791
7
6
null
2022-09-30T00:38:06
2017-08-09T14:01:48
C++
UTF-8
Python
false
false
428
py
# Blog: https://blog.csdn.net/fengbingchun/article/details/125242357 # 1. empty function def func(): pass # remember to implement this func() # 2. empty class class fbc: pass fbc() # 3. loop num = 5 for i in range(num): pass # 4. conditional statement a = 5 b = 10 if (a < b): pass else: print("b<=a") for l...
[ "fengbingchun@163.com" ]
fengbingchun@163.com
fa791cbb653d2472098d0a3b028680e2bc9b6414
61432a6d3b25e5b3142fe1f154acf5764bc2d596
/custom_report/controllers/controllers.py
0d654793e8486cc3dde196ee71832650723dcae7
[]
no_license
halltech-ci/tfc_agro
8c2c7911901e8c7bcf548fb05ca8f7891ab4ef51
a737dfdccfca51136cb01894a00f21f5365a771a
refs/heads/master_1
2020-12-22T08:59:40.507801
2020-08-17T21:20:18
2020-08-17T21:20:18
236,734,216
0
3
null
2020-05-09T23:19:24
2020-01-28T12:50:00
Python
UTF-8
Python
false
false
788
py
# -*- coding: utf-8 -*- from odoo import http # class CustomReport(http.Controller): # @http.route('/custom_report/custom_report/', auth='public') # def index(self, **kw): # return "Hello, world" # @http.route('/custom_report/custom_report/objects/', auth='public') # def list(self, **kw): # ...
[ "maurice.atche@halltech-africa.com" ]
maurice.atche@halltech-africa.com
a58b76fab4d8fa60abf11ac71cab242a7beccad6
c5a1c95e9d8ce937f71caf8340cf11fe98e64f56
/day9/problem5/[이재형] 하샤드 수.py
ff36e229a9d9bb46a7cac28263c8e782cc36fcf6
[]
no_license
Boot-Camp-Coding-Test/Programmers
963e5ceeaa331d99fbc7465f7b129bd68e96eae3
83a4b62ba2268a47859a6ce88ae1819bc96dcd85
refs/heads/main
2023-05-23T08:21:57.398594
2021-06-12T16:39:21
2021-06-12T16:39:21
366,589,317
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
def solution(x): a = [] for i in range(len(str(x))): a.append(int(str(x)[i])) if x % sum(a) == 0: return True else : return False
[ "noreply@github.com" ]
Boot-Camp-Coding-Test.noreply@github.com
1e1a220013ea65a97547f55b52bf0e6e8ba7ee32
4b742f57981b3db902e7048fe05faf263ff52138
/base/migrations/0010_pgpkey_passphrase.py
174c1f9c2f96097e66f55808d6348a2d55d10933
[ "MIT" ]
permissive
erichuang2015/Hiren-MailBox
eace0c90b5815f3e4a660dfda75910256704db96
ff4cad0998007e8c9a2a200af3a2e05a3d947d12
refs/heads/master
2020-04-02T01:31:55.680288
2018-09-13T15:21:46
2018-09-13T15:21:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
# Generated by Django 2.0.4 on 2018-05-22 04:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0009_auto_20180504_0501'), ] operations = [ migrations.AddField( model_name='pgpkey', name='passphrase', ...
[ "git.pyprism@gmail.com" ]
git.pyprism@gmail.com
f8b32217c9daae58faab52a87b96758125de8793
4fe52c6f01afb05ac787a361a239466ceac69964
/pyjournal2/build_util.py
9acc2f6977346f32e542ec3806689de1074d6201
[ "BSD-3-Clause" ]
permissive
cmsquared/pyjournal2
85beec6e3a0423d0ee873d189c3a879dd9a7db7c
cfa67529033c5fd7bcd5c60b87c8122ef8c22425
refs/heads/master
2020-04-03T18:30:15.119923
2018-10-31T00:41:07
2018-10-31T00:41:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,934
py
"""This module controls building the journal from the entry sources""" import os import webbrowser import pyjournal2.shell_util as shell_util def get_source_dir(defs): """return the directory where we put the sources""" return "{}/journal-{}/source/".format(defs["working_path"], defs["nickname"]) def get_to...
[ "michael.zingale@stonybrook.edu" ]
michael.zingale@stonybrook.edu
30a77a5b2a326c40c06e455066908091bac0870a
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_113/ch44_2020_09_30_10_47_17_987015.py
f078ba9a9524ee5b166c21af69a4c0e35a23748f
[]
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
207
py
#x=True lista = ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'] #while x==True: mes = input('Qual o mês? ') print(lista[mes])
[ "you@example.com" ]
you@example.com
224efd07081d700cef2f4bff2f9f658dcccc15e2
256efb0e9ff8b7420b412c260e6c05cd7c52c5ce
/B/resolve.py
5e0f2bb0fd1bde1c3ffc1f155dfc45171749a311
[ "MIT" ]
permissive
staguchi0703/ABC176
37a85f6d83570967696712a98dd39e1f1a08b04b
16f2f188ef5c73f85d08b028f14cd963b33d55af
refs/heads/master
2022-12-07T18:15:02.659948
2020-08-24T15:00:29
2020-08-24T15:00:29
289,476,704
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
def resolve(): ''' code here ''' N = input() sum_num = 0 for item in N: sum_num += int(item) if sum_num % 9 == 0: print('Yes') else: print('No')
[ "s.taguchi0703@gmail.com" ]
s.taguchi0703@gmail.com
611a492f714cd96b2ba9c94b3644617e50c8c6ce
86294539ffa65b34a862b200c84ee068187dc743
/do2things/manage.py
78b2063220ba03afa6e0bd0a501b0280f45ed107
[ "MIT" ]
permissive
tlake/do2things
6acb4f43990b0d0e4a9b80090e21246c1d39398a
4e83bea1fc579006200e9ca3a627c1bc04a6a53b
refs/heads/master
2021-01-21T04:24:57.108087
2016-08-22T08:56:11
2016-08-22T08:56:11
39,576,039
0
0
null
2015-08-27T01:28:15
2015-07-23T15:40:53
JavaScript
UTF-8
Python
false
false
252
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "do2things.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "tanner.lake@gmail.com" ]
tanner.lake@gmail.com
3d2281ceea099e3636a2d5593f4e69d3ab66ddbf
c7846ee0828539c2a2019928c1cbf3abd35665bf
/1226.py
e40445bed21211b32f058a29fb64d1cef368c25a
[]
no_license
whiteblue0/sw_problems
10476601c8d6d68d42e2f30af87fcde1e5dbbcc5
1cefc6236cccc20477bf4eadb458a0fd06b09126
refs/heads/master
2020-06-20T10:44:57.463275
2020-05-03T07:27:57
2020-05-03T07:27:57
197,098,448
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
import sys sys.stdin = open('1226.txt') def ispass(y,x): if 0<=y<L and 0<=x<L and data[y][x] != 1 and visited[y][x] == 0: return True else: return False def DFS(sy,sx): global end visited[sy][sx] = 1 if data[sy][sx] == 3: end = 1 for i in range(4): ny = sy + ...
[ "21port@naver.com" ]
21port@naver.com
0296d247cff0d46ffe781196db159f2dc53ad9a7
0dc3e9b70da8ccd056e0a0fab2b1d8f850c3d470
/lantern/django/django_celery/src/apps/dealers/models.py
bc779127742bd20a2e9942ebdd4779103f3156e4
[]
no_license
ArturYefriemov/green_lantern
28e7150af7b9d2281a107ad80026828ad77af62a
2841b647e1bfae4a7505e91e8a8695d03f35a3a2
refs/heads/master
2021-03-01T16:54:58.881835
2020-11-17T19:42:23
2020-11-17T19:42:23
245,799,969
0
0
null
2020-07-14T18:51:13
2020-03-08T11:13:32
Python
UTF-8
Python
false
false
735
py
from django.contrib.auth.models import AbstractUser from django.db import models # Create your models here. class Country(models.Model): name = models.CharField(max_length=32, unique=True) class City(models.Model): name = models.CharField(max_length=32, db_index=True) country = models.ForeignKey(to='C...
[ "odarchenko@ex.ua" ]
odarchenko@ex.ua
0f12e75f326736ce1da7a7a6b1fb5297088bafd5
5bfbf31332a5c4750ab57d305f400aa5e20bf6bd
/contrib/great_expectations_zipcode_expectations/great_expectations_zipcode_expectations/expectations/expect_column_values_to_be_valid_utah_zip.py
5c11f0c756f7c389107ebd4a9b7e6f5e7f2270a7
[ "Apache-2.0" ]
permissive
alexsherstinsky/great_expectations
9d4ae4c06546c5ab2ee0d04fb7840e3515c25677
2fc4bb36a5b3791c8ada97c5364531cd7510d4ed
refs/heads/develop
2023-08-04T13:13:38.978967
2023-07-24T18:29:46
2023-07-24T18:29:46
203,888,556
1
0
Apache-2.0
2020-07-27T09:12:21
2019-08-22T23:31:19
Python
UTF-8
Python
false
false
5,481
py
from typing import Optional import zipcodes from great_expectations.core.expectation_configuration import ExpectationConfiguration from great_expectations.execution_engine import PandasExecutionEngine from great_expectations.expectations.expectation import ColumnMapExpectation from great_expectations.expectati...
[ "noreply@github.com" ]
alexsherstinsky.noreply@github.com
ec61f2c11c142888f2e43279e15779776f084d75
b75b3bb6a2c6dd8b4a5b89718eb83d6451000cd4
/hackbright.py
715553d9b927069928d6bfc85808ce5824d2e0b2
[]
no_license
CodeHotPink/project-tracking-flask
22efebeaddf83d2746ba9137f1b478da8c34b1a9
bdd58b17034406f28d5ceaa0c834eb0d6ad06be3
refs/heads/master
2020-04-03T18:46:04.010020
2018-10-31T04:02:38
2018-10-31T04:02:38
155,496,735
0
0
null
null
null
null
UTF-8
Python
false
false
5,034
py
"""Hackbright Project Tracker. A front-end for a database that allows users to work with students, class projects, and the grades students receive in class projects. """ from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) db = SQLAlchemy() def connect_to_db(app): """Connect th...
[ "no-reply@hackbrightacademy.com" ]
no-reply@hackbrightacademy.com
23c2de5fd645c39cbadd4ecdb4a8572487884ba8
069c2295076c482afadfe6351da5ae02be8e18e6
/tests/urlpatterns/path_same_name_urls.py
d7ea5431b1e2e70e97338b78591e99ba67df435e
[ "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "GPL-1.0-or-later", "Python-2.0.1", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-permissive", "Python-2.0" ]
permissive
django/django
5eb557f57053631cd4f566f451e43197309dbeeb
c74a6fad5475495756a5bdb18b2cab2b68d429bc
refs/heads/main
2023-09-01T03:43:44.033530
2023-08-31T08:27:32
2023-08-31T08:27:32
4,164,482
73,530
38,187
BSD-3-Clause
2023-09-14T20:03:48
2012-04-28T02:47:18
Python
UTF-8
Python
false
false
1,483
py
from django.urls import path, re_path, register_converter from . import converters, views register_converter(converters.DynamicConverter, "to_url_value_error") urlpatterns = [ # Different number of arguments. path("number_of_args/0/", views.empty_view, name="number_of_args"), path("number_of_args/1/<valu...
[ "felisiak.mariusz@gmail.com" ]
felisiak.mariusz@gmail.com
cb4b16dd237ab801af0b21ca00cf08970de29bf8
e8c82271070e33bb6b181616a0a518d8f8fc6158
/fce/numpy/distutils/tests/f2py_ext/tests/PaxHeader/test_fib2.py
a56021af7be6b185d62870db000c6c9d53082297
[]
no_license
DataRozhlas/profil-volice-share
aafa0a93b26de0773fa6bf2b7d513a5ec856ce38
b4424527fe36e0cd613f7bde8033feeecb7e2e94
refs/heads/master
2020-03-18T01:44:26.136999
2018-05-20T12:19:24
2018-05-20T12:19:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
17 gid=713727123 15 uid=3629613 20 ctime=1458667064 20 atime=1458667064 23 SCHILY.dev=16777220 23 SCHILY.ino=31296593 18 SCHILY.nlink=1
[ "honza@datastory.cz" ]
honza@datastory.cz
00b42fcbfbde767ac076c1bdd0d7fb34c5b3382c
67b0379a12a60e9f26232b81047de3470c4a9ff9
/comments/models.py
27fec916d93089637204f146a37c7c27c5e70df4
[]
no_license
vintkor/whitemandarin
8ea9022b889fac718e0858873a07c586cf8da729
5afcfc5eef1bb1cc2febf519b04a4819a7b9648f
refs/heads/master
2021-05-06T03:35:09.367375
2017-12-20T15:43:08
2017-12-20T15:43:08
114,904,110
0
0
null
null
null
null
UTF-8
Python
false
false
3,969
py
# -*- coding: utf-8 -*- from django.db import models from mptt.models import MPTTModel, TreeForeignKey from tinymce import models as tinymce_model import datetime class Comments(MPTTModel): prod_name = models.CharField(max_length=250, blank=True, db_index=True, verbose_name="Название") paket = models.CharField...
[ "alkv84@yandex.ru" ]
alkv84@yandex.ru
372ffb8f05abddeea2704b81e3dfd8ba8d5fa88e
236332a967f8f02291b58cab7addfeabdfe7b9a2
/experiments/tests/testing_2_3.py
207477ec55fb3dd07e0cb74d22864d4061c012cc
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ConsumerAffairs/django-experiments
2dbf04b7f0e7ebdff6d5e7879afeb26f7fdb5150
4f1591c9b40390f7302f3777df231ffe3629f00d
refs/heads/master
2021-01-20T11:10:30.199586
2018-04-20T21:26:18
2018-04-20T21:26:18
101,666,220
0
10
MIT
2018-04-20T21:26:19
2017-08-28T16:56:16
Python
UTF-8
Python
false
false
218
py
# coding=utf-8 try: from unittest import mock, skip except ImportError: import mock class DummyLockTests(object): @classmethod def new(cls): test_class = cls return skip(test_class)
[ "fran.hrzenjak@gmail.com" ]
fran.hrzenjak@gmail.com
f6bb5a74f05f10651cae3ee6b1e226e5f896c8de
65e0c11d690b32c832b943fb43a4206739ddf733
/bsdradius/tags/release20060404_v_0_4_0/bsdradius/Typecast.py
436a5e6ae0899419c20edf50298dd09eb597dcaf
[ "BSD-3-Clause" ]
permissive
Cloudxtreme/bsdradius
b5100062ed75c3201d179e190fd89770d8934aee
69dba67e27215dce49875e94a7eedbbdf77bc784
refs/heads/master
2021-05-28T16:50:14.711056
2015-04-30T11:54:17
2015-04-30T11:54:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,761
py
## BSDRadius is released under BSD license. ## Copyright (c) 2006, DATA TECH LABS ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions are met: ## * Redistributions of source code must retain the above c...
[ "valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef" ]
valdiic@72071c86-a5be-11dd-a5cd-697bfd0a0cef
77fdcf1dbfc3a529545552210737968c88bf404b
ffaeaf54e891c3dcca735347f27f1980f66b7a41
/python/1.POP/1.base/01.helloworld.py
015e87763fe1f07c2320ce7fe71f056ea13d317c
[ "Apache-2.0" ]
permissive
dunitian/BaseCode
9804e3d8ff1cb6d4d8cca96978b20d168072e8bf
4855ef4c6dd7c95d7239d2048832d8acfe26e084
refs/heads/master
2020-04-13T09:51:02.465773
2018-12-24T13:26:32
2018-12-24T13:26:32
137,184,193
0
0
Apache-2.0
2018-06-13T08:13:38
2018-06-13T08:13:38
null
UTF-8
Python
false
false
970
py
'''三个单引号多行注释: print("Hello World!") print("Hello World!") print("Hello World!")''' """三个双引号多行注释: print("Hello World!") print("Hello World!") print("Hello World!")""" # 单行注释 输出 print("Hello World!") # 定义一个变量并输出 name = "小明" print(name) print("x" * 10) print("dnt.dkill.net/now", end='') print("带你走进中医经络") print("dnt.d...
[ "39723758+lotapp@users.noreply.github.com" ]
39723758+lotapp@users.noreply.github.com
88ea9f503fbe4878090275c2480106a7648b48f2
f94e4955f9d16b61b7c9bff130b9d9ee43436bea
/labs/lab06/lab06.py
1c1dac20000f742c21337b538d3d8ac3b9563bc4
[]
no_license
j2chu/dsc80-sp19
bd1dade66c19b920a54b0f8551fd999185449f86
dd48210a7cbadfb6470104b275f34085437e4766
refs/heads/master
2020-06-01T23:22:32.727488
2019-06-07T01:46:11
2019-06-07T01:46:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,275
py
import os import pandas as pd import numpy as np import requests import bs4 import json # --------------------------------------------------------------------- # Question # 1 # --------------------------------------------------------------------- def question1(): """ NOTE: You do NOT need to do anything wit...
[ "aaron.fraenkel@gmail.com" ]
aaron.fraenkel@gmail.com
e9eef0ae487bb90ae983c14902b33bc6d26c7a4f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/429/usersdata/313/105928/submittedfiles/jogoDaVelha.py
6702e638a0b195b5ad2f3fe0c84a675088f19cc5
[]
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,102
py
print (" BEM-VINDO AO JOGO DA VELHA ") print("O primeiro jogador será o (X) e o segundo o (O) ") posicao = """ posicoes do jogo 1 | 2 | 3 ----------- 4 | 5 | 6 ----------- 7 | 8 | 9 """ print (posicao) posic...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
bc95461ad6fdc0ef95c4d671c174b643f840fd99
3354e6bdd4aeb2ddec84e6a8036c90cd24b6577a
/(구)자료구조와 알고리즘/(구)Quizes/backjoon/back_1002.py
b90ab7cd42413d530cb002dd703cd4c028e3c9d1
[]
no_license
hchayan/Data-Structure-and-Algorithms
1125d7073b099d8c6aae4b14fbdb5e557dcb9412
be060447e42235e94f93a0b2f94f84d2fd560ffe
refs/heads/master
2023-01-05T10:15:02.862700
2020-11-04T08:16:56
2020-11-04T08:16:56
209,513,516
1
0
null
null
null
null
UTF-8
Python
false
false
466
py
import sys import math n = int(sys.stdin.readline().rstrip()) def getAns(): x1, y1, r1, x2, y2, r2 = map(int, sys.stdin.readline().rstrip().split()) leng = math.sqrt((x2-x1)**2+(y2-y1)**2) if r1 == r2 and x1 == x2 and y1 == y2: return -1 if r1 > r2: r1, r2 = r2, r1 if leng > r1+r2: return 0 elif leng =...
[ "k852012@naver.com" ]
k852012@naver.com
4acf925d2f474e88d0b195933e8e7df31a2aa765
9446feb2a94486ac16c585f712dbcbea7d112a9d
/src/taskmaster/cli/master.py
b78926059cf4a36ee7d184b223ba2326de9179e4
[ "Apache-2.0" ]
permissive
jdunck/taskmaster
c16c879a546dd2ac383f804788e2d8ae2606abd1
04a03bf0853facf318ce98192db6389cdaaefe3c
refs/heads/master
2023-08-23T19:29:22.605052
2012-05-16T00:52:24
2012-05-16T00:52:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
""" taskmaster.cli.master ~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010 DISQUS. :license: Apache License 2.0, see LICENSE for more details. """ def run(target, reset=False, size=10000, address='tcp://0.0.0.0:3050'): from taskmaster.server import Server, Controller server = Server(address, size=size) contr...
[ "dcramer@gmail.com" ]
dcramer@gmail.com
92467aabe2d3e0851ea17a982715577fa57c6fde
4aa6b7c3a5ae3817007e09ad1289c1e9f7a355c0
/dynamic_programming/best-time-to-buy-and-sell-stock-iv.py
57dc30b64f80d1c90423152d8d4b8f9a47789989
[]
no_license
liuhuipy/Algorithm-python
8f5143e06cf5fa2de2c178e3ba9e5fd12b9bcdf7
4e92a0b874f956d1df84d1493f870a5d1f06cde2
refs/heads/master
2021-06-03T04:19:01.946149
2021-01-08T07:44:40
2021-01-08T07:44:40
99,838,105
0
0
null
null
null
null
UTF-8
Python
false
false
1,937
py
""" 买卖股票的最佳时机IV: 给定一个数组,它的第 i 个元素是一支给定的股票在第 i 天的价格。 设计一个算法来计算你所能获取的最大利润。你最多可以完成 k 笔交易。 注意: 你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。 示例 1: 输入: [2,4,1], k = 2 输出: 2 解释: 在第 1 天 (股票价格 = 2) 的时候买入,在第 2 天 (股票价格 = 4) 的时候卖出,这笔交易所能获得利润 = 4-2 = 2 。 示例 2: 输入: [3,2,6,5,0,3], k = 2 输出: 7 解释: 在第 2 天 (股票价格 ...
[ "liuhui_py@163.com" ]
liuhui_py@163.com
001acef57576b87eb38040f53889537d452e2f72
552865ae5daa143bc6a7dec46f7febe49f0a7226
/src/mr/cabot/kml.py
96d3de4531e1a03cd61c963cb5568f2f5a0be081
[]
no_license
collective/mr.cabot
231a4a96c38e793356c4d06438d236d447e97bc8
3e905d80ed5eac52a258b74d19abf5ab182d49e2
refs/heads/master
2023-03-22T15:30:19.171188
2013-01-27T17:54:22
2013-01-27T18:32:03
6,816,996
1
0
null
null
null
null
UTF-8
Python
false
false
1,045
py
import datetime import urllib import os import simplekml from mr.cabot.interfaces import IListing, IGeolocation import sebastian colors = {"commit": "ff00ff00", "mailing-list": "ffff0000", "answer": "ff00ffff"} def join(objs): kml = simplekml.Kml() unique_locations = set() for obj in objs: ...
[ "git@matthewwilkes.name" ]
git@matthewwilkes.name
9c1c1496d9e87ef0b64186d9951572487e4eec52
2d5648035b8bd32b4a6ded311e48975e5ea100d4
/runs/bro/100KB/src2-tgt1/ssl-par-ssl-iter00100.cfg.py
0df43d2c6562ed9dcdd7e02e3967e1cde40ca70a
[ "MIT" ]
permissive
Largio/broeval
3975e54a1eaead6686c53e5e99250a00becbe1e0
89e831d07f066100afdd1a5b220f9f08f1c10b3d
refs/heads/master
2021-05-08T08:54:06.498264
2017-11-10T17:09:02
2017-11-10T17:09:02
92,508,227
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
# Write results to this file OUTFILE = 'runs/bro/100KB/src2-tgt1/ssl-par-ssl-iter00100.result.csv' # Source computers for the request SOURCE = ['10.0.0.1', '10.0.0.3'] # Target machines for the requests (aka server) TARGET = ['10.0.0.2'] # IDS Mode. (ATM: noids, min, max, http, ssl, ftp, icmp, mysql) IDSMODE = 'ssl...
[ "larswiete@googlemail.com" ]
larswiete@googlemail.com
46f9074e93f7bef5beaa27844351f2b1ba6935da
3307766701d680af6d12a726a2d98df2cb1830e5
/jams/gcj/2013/1C/C/C.py
0660c807359fca4cfb396ebfa66c729d1b5b2f9e
[]
no_license
dpaneda/code
c1a54037a275fa7044eb5c2d6079f052dd968615
7da1ede33a6a7cd19cbd0db517d91e7cccfbbfff
refs/heads/master
2023-01-07T18:41:00.816363
2022-12-30T09:24:22
2022-12-30T09:24:22
1,583,913
2
1
null
null
null
null
UTF-8
Python
false
false
2,495
py
#!/usr/bin/python2 import sys import bisect def calculate_atacks(tribes): # We calculate attacks day by day, until no tribe have any attacks left attacks = {} for tribe in tribes: for i in xrange(0, tribe[1]): d = tribe[0] if d not in attacks: attacks[d] = ...
[ "dpaneda@gmail.com" ]
dpaneda@gmail.com
7cb4c2732a9e0437ad2c3c1be8df7a72b03dab80
b8062e01860960131b37e27298b6b755b4191f5f
/python/level1_single_api/9_amct/amct_pytorch/resnet-101/src/resnet-101_calibration.py
1fb64a80ea43a7e08efa9490757866a88b3a89a4
[ "Apache-2.0" ]
permissive
RomanGaraev/samples
4071fcbe6bf95cf274576665eb72588568d8bcf2
757aac75a0f3921c6d1b4d98599bd7d4ffda936b
refs/heads/master
2023-07-16T02:17:36.640036
2021-08-30T15:14:05
2021-08-30T15:14:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,051
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 a...
[ "derek.qian.wang@huawei.com" ]
derek.qian.wang@huawei.com
4af4f611f29d8399e7635e13af155fc04e99e0b9
9e1dcb4f71b7eda84bbf0855d574eb38719d21a9
/nested_loops_prime_number.py
09ead76ff7a45ba184bcf3f6b8ff47bf66b017c6
[]
no_license
ayoubabounakif/edX-Python
689c2730458513151fc3b7a69f6a3e8b25462028
2449616fd6d9d8d8d74819cff24f3a54bff9dd4b
refs/heads/master
2020-12-30T03:46:10.271688
2020-02-07T05:28:09
2020-02-07T05:28:09
238,849,304
0
0
null
null
null
null
UTF-8
Python
false
false
1,763
py
#ALGORITHM ''' 1. Select a number 2. Select a divisor and set it equal to 2. 3. Assume number is prime 4. If divisor is less then the number go to step 5 else go to step 8 5. If remainder of (number/divisor) is 0 then number is not prime(exit/stop) 6. Add one to the di...
[ "noreply@github.com" ]
ayoubabounakif.noreply@github.com
556a064c6aaa406e6208c1055530438590c6f151
9b2f4810b093639209b65bbcb5fa07125e17266f
/src/radical/pilot/umgr/staging_input/__init__.py
66be18b437eb382c61a394d1bf9f1abbbf8f82d4
[ "MIT" ]
permissive
karahbit/radical.pilot
887d25d370d08e3455f19cd240677b62278ef67f
c611e1df781749deef899dcf5815728e1d8a962e
refs/heads/devel
2020-12-21T09:54:10.622036
2020-08-20T18:18:12
2020-08-20T18:18:12
254,967,331
0
0
NOASSERTION
2020-05-01T00:47:51
2020-04-11T22:37:20
null
UTF-8
Python
false
false
141
py
__copyright__ = "Copyright 2016, http://radical.rutgers.edu" __license__ = "MIT" from .base import UMGRStagingInputComponent as Input
[ "andre@merzky.net" ]
andre@merzky.net
4285a06223ef406e7b6a8cfcba809f60b3d98731
57eb2354f8fba9d46c8edcfac60c13fc0468d950
/Lekhaka/deformer_noiser.py
af37dc110bc7fa9c610374b8ecf483f63c73effc
[]
no_license
rakeshvar/Lekhaka
597e91e60c30c566e6f792af2d1378205f698087
1d2d31035fe8a29f002adb5a70d762669102a0f3
refs/heads/main
2023-06-16T11:18:30.121653
2021-07-09T08:35:56
2021-07-09T08:35:56
370,766,062
0
0
null
null
null
null
UTF-8
Python
false
false
5,731
py
import numpy as np from scipy import ndimage as nd from scipy.special import cosdg, sindg def _summary(mat, name): print(f"{name}\tshape:{mat.shape}\tmax:{mat.max():.2f} min:{mat.min():.2f}") pass class Deformer: def __init__(self, translation=0, zoom=0, elastic_magnitude=0, sigma=1, angle=0, nearest=Fa...
[ "rakeshvar@gmail.com" ]
rakeshvar@gmail.com
c6984060bdb66e9297a30262564f0ec5543acd5e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03146/s790644084.py
7e0cb3ce3d0317c1b444b17f7e0a4ff736bda753
[]
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
173
py
s = int(input()) a = s prev = set() for i in range(1, 1500000): if a in prev: print(i) exit() prev.add(a) if a % 2 == 0: a //= 2 else: a = 3 * a + 1
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
295338183b59fe88a08317b8e639fd6a5734f638
1ee4c8d3208d1b51a72d30e4732a9b2082da605c
/sao_portal/asgi.py
42ad8861fc2ad5d0afd93f540fdc60c77c34b824
[]
no_license
abhiram-g/SAO_service_dashboard
8336f52a9968019102884e24edc735e8e4f38bc6
4d2cde4cefe6c10bc644223981b67755cf6c1145
refs/heads/master
2022-10-15T10:23:30.537956
2020-06-08T12:43:51
2020-06-08T12:43:51
270,624,725
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" ASGI config for sao_portal project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SE...
[ "abc@gmail.com" ]
abc@gmail.com
2adf1b16dc0fe58417825d349d3e29ccf10e3135
a247e3a40bca426f604ee057319ae3f7fce5c22f
/django1/venv/bin/django-admin
8279c65ae89eb5715eb0a7f394b21f42bacec363
[ "MIT" ]
permissive
stephenndele/django-1
fcb5cd2a8598b5d68855814fb588a231e06efc09
11be0289bc3b6b3234b1e34979f282bd06cbce2e
refs/heads/main
2023-03-26T14:55:11.769279
2021-03-25T12:12:55
2021-03-25T12:12:55
349,335,362
0
2
null
2021-03-25T12:12:56
2021-03-19T07:22:05
Python
UTF-8
Python
false
false
345
#!/home/moringa/Desktop/moringa-school-projects/core/Django/django-playlist/django1/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(exec...
[ "stephenndele09346@gmail.com" ]
stephenndele09346@gmail.com
d7833d20c9de724dea0ff27dce90bb80523ae797
a22cc323b29f50da397d8363ac2521e3542a0fd7
/tests/dpaycli/test_witness.py
a4b82ed9882df3b715a284b0fdf967a5516a4db1
[ "MIT" ]
permissive
dpays/dpay-cli
1a58c7dae45218e3b05b7e17ff5ce03e918d27b9
dfa80898e1faea2cee92ebec6fe04873381bd40f
refs/heads/master
2020-04-01T09:26:43.200933
2018-10-15T08:03:06
2018-10-15T08:03:06
153,075,154
0
0
null
null
null
null
UTF-8
Python
false
false
4,801
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import super import unittest from parameterized import parameterized from pprint import pprint from dpaycli import DPay from dpaycli.witness import Witness, ...
[ "jaredricelegal@gmail.com" ]
jaredricelegal@gmail.com
baaf7396d7d64ca02b696064862bf5652b225a14
568ed7fdc9ccbd7967dd2950669c68002b454869
/yotta/test/cli/test.py
ccec43116468a2790ebad484c3f8dcd52ce643de
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
headlessme/yotta
ade06c41108dca045e295bd2e0fdb2b7baef8c89
947ab074b629c8f18ca91ab84ebaa29096b011c6
refs/heads/master
2021-01-17T11:10:07.569198
2015-12-08T11:45:12
2015-12-08T11:45:12
27,595,705
0
0
null
null
null
null
UTF-8
Python
false
false
5,592
py
#!/usr/bin/env python # Copyright 2015 ARM Limited # # Licensed under the Apache License, Version 2.0 # See LICENSE file for details. # standard library modules, , , import unittest import copy # internal modules: from yotta.lib.detect import systemDefaultTarget from . import cli from . import util Test_Tests = { 'm...
[ "James.Crosby@arm.com" ]
James.Crosby@arm.com
f1516933ea445803defec8a1fa0c6335c45eb5e6
491d3ad04c852d2efe3e49842ccfcd20e40eab96
/mysite/blog/admin.py
6f0dd47e26f5ddf14bfd772d3edc6b2cfbd7becd
[]
no_license
marianwitkowski/python-24082019
746c9824c15c2072caceeac8a9b610d79c63f0f6
df849d09aa7d9b7a08d8276a9c2b557d9f9d7ce7
refs/heads/master
2020-07-07T03:55:55.398961
2019-09-29T16:12:40
2019-09-29T16:12:40
203,239,578
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
from django.contrib import admin from .models import Post # Register your models here. class PostAdmin(admin.ModelAdmin): list_display = ('title', 'slug', 'status','created_on') list_filter = ("status",) search_fields = ['title', 'content'] prepopulated_fields = {'slug': ('title',)} admin.si...
[ "marian.witkowski@gmail.com" ]
marian.witkowski@gmail.com
9f70e24acb6247d89104f02908ac2638143ee173
ca4910e944cca453050299cb6c8e856c06a76fb0
/blog/settings.py
1175ab8bc4cd442f1245d312eacf024ca32835cc
[]
no_license
SonerArslan2019/djangoRESTAPI
f8e33cd8570f86f14810ef8fabea918503e0fc90
5398b578524fc5c6eb3b7ed51db68bc4f3687221
refs/heads/master
2023-04-18T01:45:45.093105
2021-04-24T09:50:22
2021-04-24T09:50:22
360,634,992
0
0
null
null
null
null
UTF-8
Python
false
false
3,603
py
from pathlib import Path import os # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: keep the sec...
[ "soner@arslanyapi.com.tr" ]
soner@arslanyapi.com.tr
f6a760119a4c4b2c583957abb4a7066cbb64a2eb
dc67e70a303f265ee6cb4c1a2d61fe811053fb3d
/beginner/066/A.py
cabb38041ad8e0ea035492830c9cef953fb894b2
[]
no_license
cry999/AtCoder
d39ce22d49dfce805cb7bab9d1ff0dd21825823a
879d0e43e3fac0aadc4d772dc57374ae72571fe6
refs/heads/master
2020-04-23T13:55:00.018156
2019-12-11T05:23:03
2019-12-11T05:23:03
171,214,066
0
0
null
2019-05-13T15:17:02
2019-02-18T04:24:01
Python
UTF-8
Python
false
false
193
py
def ringring(a: int, b: int, c: int)->int: return sum(sorted([a, b, c])[:2]) if __name__ == "__main__": a, b, c = map(int, input().split()) ans = ringring(a, b, c) print(ans)
[ "when.the.cry999@gmail.com" ]
when.the.cry999@gmail.com
72d7de871b2fb085d76442aa9a24ad3405cd961b
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/centerface/preprocess.py
a985c6b64428994c27265c5fcd6ff413bee6b92a
[ "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
2,585
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 agreed to...
[ "chenhaozhe1@huawei.com" ]
chenhaozhe1@huawei.com
95869793a95931568444941801533d4d5e6cb5eb
d6be2453d1c4428a4b9d9f78ea80e7e1a39f0f5b
/src/utils.py
20225ec0e46d35e08388cbfdfc634ce8c9a2e343
[]
no_license
bcrestel/sls
8f6a6356264747285fb193b2ebfa1c2914aa0fe3
f0392135e5c4072e3341998651091c8455a882fb
refs/heads/master
2020-12-15T16:51:03.663284
2020-10-06T14:22:58
2020-10-06T14:22:58
235,185,248
0
0
null
2020-01-20T19:47:07
2020-01-20T19:47:06
null
UTF-8
Python
false
false
1,478
py
import hashlib import pickle import json import os import itertools import torch import numpy as np def hash_dict(dictionary): """Create a hash for a dictionary.""" dict2hash = "" for k in sorted(dictionary.keys()): if isinstance(dictionary[k], dict): v = hash_dict(dictionary[k]) ...
[ "issam.laradji@gmail.com" ]
issam.laradji@gmail.com
91489aef1cfcb6675882a5ed78249f485727af5a
975b2d421d3661e6770b601929d5f11d981d8985
/msgraph/generated/models/access_package_request_state.py
8d2207eae29267f561c8c719c8dc968d0f903cb0
[ "MIT" ]
permissive
microsoftgraph/msgraph-sdk-python
a7c551b85daadeebf76ec4ae12668664ea639b42
27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949
refs/heads/main
2023-09-03T21:45:27.989672
2023-08-31T06:22:18
2023-08-31T06:22:18
534,665,999
135
18
MIT
2023-09-14T11:04:11
2022-09-09T14:00:17
Python
UTF-8
Python
false
false
410
py
from enum import Enum class AccessPackageRequestState(str, Enum): Submitted = "submitted", PendingApproval = "pendingApproval", Delivering = "delivering", Delivered = "delivered", DeliveryFailed = "deliveryFailed", Denied = "denied", Scheduled = "scheduled", Canceled = "canceled", P...
[ "GraphTooling@service.microsoft.com" ]
GraphTooling@service.microsoft.com
a31faa28ea7fa887dcbc8ad53795258aa189f931
498e792e16ab1a74ac034c53177c4cccbeef2749
/classification/resnet/train.py
662ceca52750777835c1b05e25f7eaacf8d247aa
[]
no_license
ydwisroad/imageprocessingpytorch
f97bec4469c087f6bbbca5d42da180c95be8b13f
bd8d1af228619c9c6c9c1a2b880422f7d5048dd5
refs/heads/master
2023-07-29T05:05:11.145832
2022-02-21T23:32:03
2022-02-21T23:32:03
284,976,501
7
3
null
2023-07-24T01:08:22
2020-08-04T12:43:24
Jupyter Notebook
UTF-8
Python
false
false
4,052
py
import torch import torch.nn as nn from torchvision import transforms, datasets import json import matplotlib.pyplot as plt import os import torch.optim as optim from model import resnet34, resnet101 device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") print(device) data_transform = { "train":...
[ "wandf12345@163.com" ]
wandf12345@163.com
5bf7470e827eea42e7c8955e6c2fb564dbc45de9
f453f183834e3bf587a120023615ed2ddd38c157
/tsa/lib/encoders.py
969cdf1f6c1712d900097659bf0862df709f2d35
[ "MIT" ]
permissive
chbrown/topic-sentiment-authorship
72c21638eb72888c370cd3b1b5f06504df09ce2e
e8cacf11b06583d9ed85ff790e1d5322e59f2fd6
refs/heads/master
2022-07-05T22:58:24.456139
2020-03-29T16:12:21
2020-03-29T16:12:21
13,025,589
0
0
MIT
2020-03-29T16:13:35
2013-09-23T02:53:40
Jupyter Notebook
UTF-8
Python
false
false
492
py
import json from datetime import datetime class JSONEncoder(json.JSONEncoder): def default(self, obj): if hasattr(obj, '__json__'): return obj.__json__() if isinstance(obj, datetime): return obj.strftime('%Y-%m-%dT%H:%M:%S') # return super(JSONEncoder, self).default...
[ "io@henrian.com" ]
io@henrian.com
977cd1f34ed3ff2b174cb7a5bb2ad1829606c277
fbff973537eae45b724b23e9b6fc8692da959b21
/app/core/config.py
979658548ef83b1914a5730ab318dedd6ab5b824
[ "MIT" ]
permissive
lsetiawan/cava-metadata
d4a8878480cd9da4bfa163b9d9c42d705a0fb263
e45c469a4b5cbdebfba74ab0031fb94eb59fd724
refs/heads/main
2023-04-08T02:28:24.402853
2021-01-27T20:02:23
2021-01-27T20:02:23
358,033,596
0
0
MIT
2021-04-14T20:26:35
2021-04-14T20:26:35
null
UTF-8
Python
false
false
1,418
py
import os import fsspec # API SETTINGS SERVICE_NAME = "Metadata Service" SERVICE_ID = "metadata" OPENAPI_URL = f"/{SERVICE_ID}/openapi.json" DOCS_URL = f"/{SERVICE_ID}/" SERVICE_DESCRIPTION = """Metadata service for Interactive Oceans.""" CORS_ORIGINS = [ "http://localhost", "http://localhost:8000", "htt...
[ "landungs@uw.edu" ]
landungs@uw.edu
f9b589aa7e5cb26eda1a3b56bc67249768ee6093
4b819b9c7aee9d60689f487557e437445101188d
/lanuch/accounts/views.py
e04d7ebbd2e15bedabf699d153c0170baa54e03b
[]
no_license
Damidara16/dev
c2fe90fb70d4644bdee964ce9b7b85bf9f71c99a
f3c8666bc32b19ffb623b83019fdbf404433ece8
refs/heads/master
2020-03-10T20:14:11.173397
2018-04-15T00:56:56
2018-04-15T00:56:56
129,565,993
0
0
null
null
null
null
UTF-8
Python
false
false
3,485
py
from django.shortcuts import render, redirect from .forms import RegistrationForm, EditProfileForm, AddInfo from django.contrib.auth.forms import PasswordChangeForm from django.contrib.auth import update_session_auth_hash from .models import Author from blog.models import waste from django.contrib.auth.models import Us...
[ "sajala8624@gmail.com" ]
sajala8624@gmail.com