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
d3770de2ae95f5979154c27ae9ccd77472d0e4d2
0a6f284b1a7c8b16911ebf33076abc38778c752f
/app/run.py
37911045108a9bf98a86cd405ae50114df2a13ca
[ "Apache-2.0" ]
permissive
branky/blockd3
2298b3eafd1b9c50b0374dd1456c0fcdf2068fab
27e78fd89f44af95ad65b1203c02156db64333d0
refs/heads/master
2020-12-25T09:00:35.047437
2012-11-19T06:08:49
2012-11-19T06:08:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import logging from ghost import GhostTestCase, Ghost from app import make_app app = make_app("test") PORT = 5000 base_url = "http://localhost:%s/dist/" % PORT class Blockd3GhostTest(GhostTestCase): port = PORT display = False log_level = lo...
[ "nick.bollweg@gmail.com" ]
nick.bollweg@gmail.com
28c05a44ba70abe18d6362f2f5149765c73adee1
4a4a24bf9521ef659d16fb08403242a77a9b9d77
/aos_l10n_id/models/localization.py
697c48b804e8e16763168c1459d8a44355bd4266
[]
no_license
hassanfadl/Odoo12-1
601c4969c9d483590e8481e92ecaf4dddaac3847
bb057424138f99d0a645d185fbd26648385fbdf7
refs/heads/main
2023-07-31T22:59:19.597624
2021-10-01T06:35:58
2021-10-01T06:35:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,822
py
############################################################################## # # Copyright (C) 2011 ADSOFT OpenERP Partner Indonesia # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundatio...
[ "noreply@github.com" ]
hassanfadl.noreply@github.com
8728e365e7d7eb7024f6524d63406cd1993322f7
4b1d977acfde9354685157e02459c016c041421d
/tests/test_molecules.py
88a58a7272d50cddca1b5caf2d88a8175dd2b880
[]
no_license
fujiisoup/pyspectra
f6c50d929e992ab6064ef978a4de0c0647ff3d4b
152bf37dee7e9eeabf42d24496566022d00d31ec
refs/heads/master
2023-07-25T08:23:13.637233
2023-07-05T16:32:30
2023-07-05T16:32:30
246,492,492
3
0
null
2023-07-05T16:32:32
2020-03-11T06:28:08
Python
UTF-8
Python
false
false
2,363
py
import numpy as np from pyspectra import molecules, units, refractive_index, data def test_level(): # fulcher constants = data.diatomic_molecules("H2").sel(state="X 1Σg 1sσ2") for key in constants: print(key, constants[key].item()) upper = molecules.level("H2", "d 3Πu 3pπ", 0, 1) lower = ...
[ "fujiisoup@gmail.com" ]
fujiisoup@gmail.com
2bdc663042e1e1aefc99f900694814b55def8c35
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-arms/aliyunsdkarms/request/v20190808/SearchEventsRequest.py
3fae22f10c2789e7944a1a6c990d8133f134697a
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
2,864
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
9b1a9ff5d3d3ad9d0086cc8d179cdb717f6b6bde
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/yadayada_acd_cli/acd_cli-master/acdcli/utils/conf.py
9ebf249680620acffb9a172fb3c9591bb51f646c
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
584
py
import configparser import logging import os logger = logging.getLogger(__name__) def get_conf(path, filename, default_conf: configparser.ConfigParser) \ -> configparser.ConfigParser: conf = configparser.ConfigParser() conf.read_dict(default_conf) conffn = os.path.join(path, filename) try: ...
[ "659338505@qq.com" ]
659338505@qq.com
f09e09b066b83eb93839703b12f7fe62adf4b05a
8be3fbe41873b5682eed4da3aab93be657a893bc
/nested_admin/tests/three_deep/tests.py
a25c53f636b475f837708e24585fcaee22e597d2
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
theKomix/django-nested-admin
0b5f10b88928dc3167a720cf9a36f2ffe428cba7
2bfed729ba17bc69e4fe98d4a672b6b34186ae0f
refs/heads/master
2020-03-30T12:03:51.430420
2018-12-26T05:24:04
2018-12-26T05:24:04
151,206,354
0
1
NOASSERTION
2018-12-07T15:11:31
2018-10-02T05:49:00
Python
UTF-8
Python
false
false
4,893
py
from nested_admin.tests.base import BaseNestedAdminTestCase from .models import TopLevel, LevelOne, LevelTwo, LevelThree class TestDeepNesting(BaseNestedAdminTestCase): root_model = TopLevel nested_models = (LevelOne, LevelTwo, LevelThree) @classmethod def setUpClass(cls): super(TestDeepNest...
[ "fdintino@theatlantic.com" ]
fdintino@theatlantic.com
cb3b6dee35a6278db9f968b94e96589d790b669c
699a43917ce75b2026a450f67d85731a0f719e01
/comonprefix/venv/Scripts/pip3.7-script.py
e913bfc5f695c5d68e2ba38d50ad1f005852ef42
[]
no_license
wusanshou2017/Leetcode
96ab81ae38d6e04739c071acfc0a5f46a1c9620b
c4b85ca0e23700b84e4a8a3a426ab634dba0fa88
refs/heads/master
2021-11-16T01:18:27.886085
2021-10-14T09:54:47
2021-10-14T09:54:47
107,402,187
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
#!E:\lc\comonprefix\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( ...
[ "252652905@qq.com" ]
252652905@qq.com
20acc266a70d5447f23a333ff82231fd7cc9eac7
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/netex/models/version_type_enumeration.py
0e80ef2e2f270f90f4bcec2a491a896e7d6de716
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
155
py
from enum import Enum __NAMESPACE__ = "http://www.netex.org.uk/netex" class VersionTypeEnumeration(Enum): POINT = "point" BASELINE = "baseline"
[ "chris@komposta.net" ]
chris@komposta.net
ec9afabfdd6a3fb5b54dcd3df3f3f3a0b67ae01e
a76790fa5f4eb96a8b731f891ca1aa4c16d21256
/azext_iot/dps/providers/discovery.py
433c7fe8409c6128ccc6fbaf4f22840408eae3da
[ "MIT" ]
permissive
digimaun/azure-iot-cli-extension
414fb1c7c22b0f0d0891cd30c28d13366b9f7207
9999c536bbf67251d863d365c190866e1d5cc1ad
refs/heads/dev
2023-06-24T09:42:51.069627
2022-12-14T23:29:58
2022-12-14T23:29:58
579,177,610
1
0
NOASSERTION
2022-12-16T21:25:31
2022-12-16T21:25:31
null
UTF-8
Python
false
false
3,899
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. # -----------------------------------------------------...
[ "noreply@github.com" ]
digimaun.noreply@github.com
b2e416b830f8a762c57a51d0493a629a1344ef3f
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/dockerized-gists/7c04cc141bd3fc5f0ce1/snippet.py
4a77c7cc3e4f198f1906ec927652c704233af5b1
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
2,740
py
def _download(host, creds, fp): chunk_size = 512 * 1024 headers = { 'Content-Type': 'application/octet-stream' } filename = os.path.basename(fp) uri = 'https://%s/mgmt/cm/autodeploy/software-image-downloads/%s' % (host, filename) requests.packages.urllib3.disable_warnings() with op...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
fdfe941f2d276a821a9342bce3e3e89214a7ecfe
4b7e282fe480415f5d52c0fc0429f144156190fe
/google/ads/googleads/v7/resources/types/video.py
da5d5c3d0b355e480d86c2f921f4d36b37f58b30
[ "Apache-2.0" ]
permissive
Z2Xsoft/google-ads-python
c4750357bb19da91bb3b6bf2fa84bef9d2df36d3
1779d52a0446c8afb2437b0a9e103dcb849f5590
refs/heads/main
2023-08-18T15:22:17.840364
2021-09-26T04:08:53
2021-09-26T04:08:53
410,444,398
0
0
Apache-2.0
2021-09-26T04:08:53
2021-09-26T03:55:38
null
UTF-8
Python
false
false
1,756
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
Z2Xsoft.noreply@github.com
4728768877333c9060e01d5d66cd0b2dc8cd58e2
74f04d78486d4986e4f0ef8c3bc480ba00caae4a
/articles/models.py
c9ee25d3e4b0b92deaea58fc10f1b49de02c4ee6
[]
no_license
kimjy392/reboot-django
e24dd90182ee5d317bf13872ae169ac738a71c6c
4280c7bffacd759a1b785ae576e9e89a0c2269d8
refs/heads/master
2022-12-10T12:18:38.422146
2019-10-28T01:12:41
2019-10-28T01:12:41
207,240,898
0
10
null
2022-12-08T06:13:37
2019-09-09T06:36:38
Python
UTF-8
Python
false
false
594
py
from django.db import models # Create your models here. class Reporter(models.Model): name = models.CharField(max_length=20) class Article(models.Model): title = models.CharField(max_length=50) content = models.TextField() image = models.ImageField() created_at = models.DateTimeField(auto_now_add...
[ "kimjy392@gmail.com" ]
kimjy392@gmail.com
2f14e4dbbb349aed3998968c565c70758358ae4e
23f73a7a0c0ced134f6c18bb9c200617ce31f1d5
/src/fauxmo/handlers/hass.py
6b72bc98a0323f0764aee236d59e2be04d96d90a
[ "MIT" ]
permissive
clach04/fauxmo
f586d0024648f3da6d2ff38b8fe06fdb345bcfbd
06a0b8ff20f4811de9ac08663e0d76f8fdd83764
refs/heads/master
2021-11-27T19:13:36.583893
2016-07-22T13:02:39
2016-07-22T13:02:39
66,683,609
2
0
null
2016-08-26T22:42:52
2016-08-26T22:42:52
null
UTF-8
Python
false
false
2,671
py
# -*- coding: utf-8 -*- import homeassistant.remote from homeassistant.const import (SERVICE_TURN_ON, SERVICE_TURN_OFF, SERVICE_MOVE_UP, SERVICE_MOVE_DOWN) class HassAPIHandler: """Handler for Home Assistant (hass) Python API. Allows users to specify Home Assistant services i...
[ "nate@n8henrie.com" ]
nate@n8henrie.com
0554e077b0db3b39fc887e6b4986a336cc20fc9a
6a7d8b67aad59c51dafdfb8bcffd53864a3d65b0
/LintCode/inorderSuccessorBST.py
4967d1c45481e78e4f3fb69538a9e2576d98cf12
[]
no_license
dicao425/algorithmExercise
8bba36c1a08a232678e5085d24bac1dbee7e5364
36cb33af758b1d01da35982481a8bbfbee5c2810
refs/heads/master
2021-10-07T08:56:18.030583
2018-12-04T05:59:17
2018-12-04T05:59:17
103,611,760
0
0
null
null
null
null
UTF-8
Python
false
false
980
py
#!/usr/bin/python import sys """ Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None """ class Solution: """ @param: root: The root of the BST. @param: p: You need find the successor node of p. @...
[ "di.cao425@gmail.com" ]
di.cao425@gmail.com
2261cf66860e5e03da76218a1e66eb199a78667d
fc66f771e95ee36cd502d3cf7220794e6f263226
/src/utils/at.py
ca3ac83c786efd55252a4fe7853b8b4d9a002805
[ "MIT" ]
permissive
yuanniufei/IncetOps
2bcb7851514f3db6bc409746d245da08032ecc06
e21185a4931a10996a187e63f4487b4402544c69
refs/heads/master
2020-03-25T20:50:02.339329
2018-08-09T07:35:02
2018-08-09T07:35:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,639
py
# -*- coding: utf-8 -*- """ IncetOps.utils.at ~~~~~~~~~~~~~~ AES加密的实现模式CBC。 CBC使用密码和salt(起扰乱作用)按固定算法(md5)产生key和iv。然后用key和iv(初始向量,加密第一块明文)加密(明文)和解密(密文)。 :copyright: (c) 2018 by staugur. :license: MIT, see LICENSE for more details. """ from Crypto.Cipher import AES from binascii im...
[ "staugur@vip.qq.com" ]
staugur@vip.qq.com
4e107f975e9b205c04868eafff741a552f4302c0
d57b51ec207002e333b8655a8f5832ed143aa28c
/.history/gos_20200614060821.py
3db5babdabe6fb83a5ab594602a18e4fa77fbc59
[]
no_license
yevheniir/python_course_2020
b42766c4278a08b8b79fec77e036a1b987accf51
a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b
refs/heads/master
2022-11-15T07:13:24.193173
2020-07-11T15:43:26
2020-07-11T15:43:26
278,890,802
0
1
null
null
null
null
UTF-8
Python
false
false
5,896
py
# # Імпорт фажливих бібліотек # from BeautifulSoup import BeautifulSoup # import urllib2 # import re # # Створення функції пошуку силок # def getLinks(url): # # отримання та присвоєння контенту сторінки в змінну # html_page = urllib2.urlopen(url) # # Перетворення контенту в обєкт бібліотеки BeautifulSoup #...
[ "yevheniira@intelink-ua.com" ]
yevheniira@intelink-ua.com
225cc84d1b8df33afa6b99407f6dad6ab6b09f7f
1d007e58c7739f36bdb85cb9aa13b3f4584cdfb9
/day1/day1/urls.py
28f2a39c7c890b2c071f918d1dcef7609bddfad4
[]
no_license
rahuladream/Django-Challenge
65410f053c06f2556628b449b817244dac32e1ac
0b81a6b69b743799f3d8562d6ec784950980716c
refs/heads/master
2020-06-14T14:19:54.370195
2019-07-03T13:02:07
2019-07-03T13:02:07
195,024,788
0
0
null
null
null
null
UTF-8
Python
false
false
912
py
"""day1 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ "rahul.singh4800@gmail.com" ]
rahul.singh4800@gmail.com
1f638f6038f33df2aa4f2e79d8b32c4280c955fd
3db8bc4c7297895c687be374a206b63d5d329e5e
/Python3/019_Remove_Nth_Node_From_End_of_List.py
0d1d00b05fb6965d0c5f5762555d56236207eb67
[ "MIT" ]
permissive
Jian-jobs/Leetcode-Python3
dd06d3238b69ae1419754810dec68705d3344a41
f2d3bb6ecb7d5d0bca4deaed26162fbe0813a73e
refs/heads/master
2020-05-15T00:59:28.160898
2018-11-16T04:44:32
2018-11-16T04:44:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,425
py
#!usr/bin/env python3 # -*- coding:utf-8 -*- ''' Given a linked list, remove the nth node from the end of list and return its head. For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from the end, the linked list becomes 1->2->3->5. Note: Given n will always be valid. Try ...
[ "gzr2008@vip.qq.com" ]
gzr2008@vip.qq.com
eed66ce765aa9eae0228a51ffc68c16ad9405ae4
1816378da612c7db376934b033e4fd64951338b6
/gui/jails/migrations/0007_add_model_JailTemplate.py
dc21d06fbe871543b3648239738a169c72011b35
[]
no_license
quater/freenas-9.2-xen
46517a7a23546764347d3c91108c70a8bd648ec6
96e580055fa97575f0a0cb23a72495860467bcfb
refs/heads/master
2021-01-16T22:21:38.781962
2014-02-07T05:59:13
2014-02-07T05:59:13
16,609,785
2
0
null
null
null
null
UTF-8
Python
false
false
6,422
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models from freenasUI.jails.utils import get_jails_index class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'JailTemplate' db.create_table(u'jails_jail...
[ "john@ixsystems.com" ]
john@ixsystems.com
e2cb2c8e89a8b49e48345e5c5ac0b7f4d4038e0c
d913bac9fa42473aa8cee68c8ad8b4eba5484b89
/Scripts/features/VoidTender_POS.py
6f88141ad64358009955cec6efcfc5ed742ca805
[]
no_license
priyatam0509/Automation-Testing
07e7c18b4522976f0ade2b72bd46cffd55c5634e
d24805456e5a0126c036c1688a5d112bdcf4467a
refs/heads/main
2023-02-26T19:07:41.761905
2021-01-30T10:13:34
2021-01-30T10:13:34
334,376,899
0
0
null
null
null
null
UTF-8
Python
false
false
4,424
py
""" File name: VoidTender_POS.py Tags: Description: Author: Gene Todd Date created: 2020-04-16 09:40:28 Date last modified: Python Version: 3.7 """ import logging, time from app import Navi, mws, pos, system from app.framework.tc_helpers import setup, test, teardown, tc_fail class VoidTe...
[ "piyushpriya34@gmail.com" ]
piyushpriya34@gmail.com
de3a0c28cc1023aa05a34f5fd437c0431ba35fee
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/leap/42142e465a234cfaa158392bdda680b9.py
2e0e27725c2144af3babc0a50be01d1f5932c483
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
353
py
def is_leap_year(year): if year % 4 == 0: if year % 100 == 0: if year % 400 == 0: return True return False return True return False """ on every year that is evenly divisible by 4 except every year that is evenly divisible by 100 unless the year is ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
b5e435d58d0527b0a10b2c3d2ddb08609b44daa9
da9c4a9a92d49d2fb2983a54e0f64c2a1ce8aa19
/symphony/cli/pysymphony/graphql/input/add_image.py
8a71be0cda0a9d98d166adf96a4a1fc7a8c266e2
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
rohan-prasad/magma
347c370347724488215a0783504788eac41d8ec7
2c1f36d2fd04eae90366cc8b314eaab656d7f8ad
refs/heads/master
2022-10-14T14:08:14.067593
2020-06-11T23:52:03
2020-06-11T23:54:27
271,671,835
0
0
NOASSERTION
2020-06-12T00:20:23
2020-06-12T00:17:39
null
UTF-8
Python
false
false
748
py
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from dataclasses import dataclass from datetime import datetime from functools import partial from gql.gql.datetime_utils import DATETIME_FIELD from numbers import Number from typing import Any, Callable, List, Mapping, Optional from dataclasses_j...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
7c68e9555011e76ecb807ab9b5340bbc994a8aca
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_pkg_firewall_policy_vpndstnode.py
cc4c839796dde50386c6787ae3951a868ea8cab2
[ "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
7,919
py
#!/usr/bin/python from __future__ import absolute_import, division, print_function # Copyright 2019-2020 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the ...
[ "sifang@cisco.com" ]
sifang@cisco.com
02ab6ce4b0a5e3cc8f4857f83855687843f7324c
29f65ef4059ba04c20558f3be36c06fe3879a8e6
/c1/func.py
a173c0eafdf8e495d94cfb2dc8c14bfc80c1e2be
[]
no_license
kobe24shou/pythonwebdev
d9c912bd9304802069bc41345b054b065a173272
c7c6c5af69e7d8783e5c8b15f75e9ca61ed6a03f
refs/heads/master
2020-03-17T23:01:41.787573
2018-06-06T14:11:21
2018-06-06T14:11:21
134,028,551
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
#!/usr/bin/env python # -*-coding:utf-8-*- def sum(x, y): return x + y def total(x, y, z): sum_of_two = sum(x, y) sum_of_three = sum(sum_of_two, z) return sum_of_two, sum_of_three # 定义了没有参数和返回值 的 main()函数 def main(): print("return of sum:", sum(4, 6)) x, y = total(1, 7, 10) print("r...
[ "aishou24@gmail.com" ]
aishou24@gmail.com
cc2f066e03ede1f54ac46b07dad2bb6621a03d10
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_287/ch149_2020_04_13_19_29_39_088791.py
5364f78261dc18794532675b8b2199879ae98f9f
[]
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
950
py
salario_bruto = int(input('Seu salário bruto: ')) n_dependentes=int(input('Quantos dependentes: ' )) def faixa(sal): if sal <= 1045: return 0.075 elif sal <= 2089.6: return 0.09 elif sal <= 3134.4: return 0.12 else: return 0.14 if salario_bruto <= 6101.06: b=sal...
[ "you@example.com" ]
you@example.com
b5be03bae05e2c31bc7c6b3158b111ca8d5fc886
791ce6452fb555f953ed3adb1966b59abc7c2dbb
/arxiv_net/dashboard/assets/style.py
c359a7598a7dde951f38e4ceb3c9d495568f0370
[]
no_license
mirandrom/arxiv-net
d63b76006d7cde62a4ba4e623ffa3971436455f5
86bdc7a878c8d1d4a0135ddd2785cb59ca638937
refs/heads/master
2023-03-21T13:37:30.567726
2019-12-05T23:25:24
2019-12-05T23:25:24
222,019,331
2
0
null
2021-03-20T02:10:29
2019-11-15T23:26:34
Python
UTF-8
Python
false
false
1,468
py
card_style = { "box-shadow": "0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.3)" } BLUES = ["rgb(210, 218, 255)", "rgb(86, 117, 255)", "rgb(8, 31, 139)", "rgb(105, 125, 215)", "rgb(84, 107, 208)", "rgb(210, 210, 210)", "rgb(102, 103, 107)", "rgb(19, 23, 37...
[ "arialinvlad@gmail.com" ]
arialinvlad@gmail.com
2aa7d7541d47bf6cbc5349b3cb975f5eb6b55412
29145db13229d311269f317bf2819af6cba7d356
/may easy/maxVal.py
91313d4b8983c93bfc3cfa232fbdb5c36ee8edff
[]
no_license
rocket3989/hackerEarth2019
802d1ca6fd03e80657cbe07a3f123e087679af4d
42c0a7005e52c3762496220136cc5c1ee93571bb
refs/heads/master
2021-07-05T01:32:42.203964
2020-12-22T03:40:20
2020-12-22T03:40:20
211,607,143
1
0
null
null
null
null
UTF-8
Python
false
false
209
py
fib = [1, 1] while True: fib.append(fib[-1] + fib[-2]) if fib[-1] > 10 ** 18: break N = int(input()) for val in fib: if val <= N: continue print(val) break
[ "rocket3989@gmail.com" ]
rocket3989@gmail.com
969d2be266219f2b062ad7111a43f44275354f4d
13b2f7ca4bbad32b0ce7d547399e6097580ae097
/bfs+dfs/1260_DFS와 BFS.py
f69616d0dba433892b0d30f2d1628280ae3b9b5c
[]
no_license
hksoftcorn/review
dadbd3a4ee7961282bfefd697a97f6ccf78dbe83
474aef3747c135c54322ff28261d2a6812a3d9a0
refs/heads/master
2023-06-17T05:41:50.178831
2021-07-11T23:30:27
2021-07-11T23:30:27
385,072,542
0
0
null
null
null
null
UTF-8
Python
false
false
708
py
def dfs(v): visited[v] = 1 for w in sorted(G[v]): if not visited[w]: dfs_path.append(w) dfs(w) def bfs(v): visit = [0] * (N+1) visit[v] = 1 Q = [v] while Q: current = Q.pop(0) for w in sorted(G[current]): if not visit[w]: ...
[ "hksoftcorn.dev@gmail.com" ]
hksoftcorn.dev@gmail.com
8e1117685899d2bf068c219a6f66312448e008ff
9131dd03ff2880fca2a5883572784f8e51046e41
/env/lib/python3.6/site-packages/clicksend_client/models/delivery_issue.py
84f1503041f46cfe49989d1ade2142787157ff54
[]
no_license
aviadm24/coronaap
fe10619ae42a8c839cd0a2c2c522187c5f21fbc7
5608c2d77cb3441b48ba51da04c06a187fb09488
refs/heads/master
2022-12-09T21:35:17.179422
2021-01-28T08:21:49
2021-01-28T08:21:49
249,938,200
0
0
null
2021-09-22T18:47:51
2020-03-25T09:36:10
JavaScript
UTF-8
Python
false
false
7,502
py
# coding: utf-8 """ ClickSend v3 API This is an official SDK for [ClickSend](https://clicksend.com) Below you will find a current list of the available methods for clicksend. *NOTE: You will need to create a free account to use the API. You can register [here](https://dashboard.clicksend.com/#/signup/step1...
[ "aviadm24@gmail.com" ]
aviadm24@gmail.com
712ebb3e8e9c6daab9c2cd3b469cecab96797c6e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_godfather.py
813d71c96e7c700883fb63b1932814bc31f99141
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
#calss header class _GODFATHER(): def __init__(self,): self.name = "GODFATHER" self.definitions = [u'a male godparent', u'the leader of a criminal group, especially a mafia family'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, ob...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
c064647cd1304d7aff89c6683cd29e2b315cfa1e
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2863/60673/273869.py
625083ae06703fe4379f18234384daf60c110ffb
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
318
py
# 围墙高h 第i个人高a[i] 平常走路宽度为1 弯腰2 n, h = input().split(" ") a = input().split(" ") n = int(n) h = int(n) for i in range(n): a[i] = int(a[i]) walkNum = 0 bendNum = 0 for i in range(n): if (a[i] <= h): walkNum += 1 else: bendNum += 1 print(walkNum + bendNum * 2)
[ "1069583789@qq.com" ]
1069583789@qq.com
00256e1c2a75d6e2643d1a889bf9b296376e09eb
6be845bf70a8efaf390da28c811c52b35bf9e475
/windows/Resources/Dsz/PyScripts/Lib/dsz/mca/file/cmd/put/type_Params.py
7be73ef22b4325cbd9bcac9c3611c066cc82f983
[]
no_license
kyeremalprime/ms
228194910bf2ed314d0492bc423cc687144bb459
47eea098ec735b2173ff0d4e5c493cb8f04e705d
refs/heads/master
2020-12-30T15:54:17.843982
2017-05-14T07:32:01
2017-05-14T07:32:01
91,180,709
2
2
null
null
null
null
UTF-8
Python
false
false
4,221
py
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: type_Params.py from types import * import array PARAMS_CREATE_FLAG_PERMANENT = 1 class CreateParams: def __init__(self): self.__dict__[...
[ "kyeremalprime@gmail.com" ]
kyeremalprime@gmail.com
13915155f7c20e488e358ce9a8fc7c78b8049d80
299fe2ca879e509798e95c00b7ba33914031f4a7
/eruditio/shared_apps/django_userhistory/userhistory.py
10aad86e7ff44123a9ea653ae8ca81813915a013
[ "MIT" ]
permissive
genghisu/eruditio
dcf2390c98d5d1a7c1044a9221bf319cb7d1f0f6
5f8f3b682ac28fd3f464e7a993c3988c1a49eb02
refs/heads/master
2021-01-10T11:15:28.230527
2010-04-23T21:13:01
2010-04-23T21:13:01
50,865,100
0
0
null
null
null
null
UTF-8
Python
false
false
1,733
py
from django_userhistory.models import UserTrackedContent class UserHistoryRegistry(object): """ Registry for UserHistory handlers. Necessary so that only one receiver is registered for each UserTrackedContent object. """ def __init__(self): self._registry = {} self._handlers = {} ...
[ "genghisu@6a795458-236b-11df-a5e4-cb4ff25536bb" ]
genghisu@6a795458-236b-11df-a5e4-cb4ff25536bb
e589e9b8d3a9feebdb918b5bc6c69646e2a2bba0
911d3ffa7f6687b7b2d5609f4d7bb1f907f1703a
/Conditional Statements - More Exercises/06. Pets.py
d518cc7b89d6286ab3fc57f9402ad4d4aa37db01
[]
no_license
ivan-yosifov88/python_basics
923e5ba5dcdc5f2288f012eeb544176d1eb964e9
ee02f1b7566e49566f15c4285d92b04f8fa6a986
refs/heads/master
2023-03-05T21:49:24.191904
2021-02-24T12:36:03
2021-02-24T12:36:03
341,581,532
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
from math import floor, ceil number_of_days = int(input()) left_food = int(input()) dog_food = float(input()) cat_food = float(input()) turtle_food = float(input()) kilogram_food_eaten = number_of_days * (dog_food + cat_food + turtle_food / 1000) difference = abs(left_food - kilogram_food_eaten) if left_food >= kilogra...
[ "ivan.yosifov88gmail.com" ]
ivan.yosifov88gmail.com
3f35f2a8b17f35df510599c29d815a6b083efd36
ff5892487c262ce845a9996a282d3a2fdb1a3b15
/URI_1254.py
17a978a92191caec16353d8fd8ca9417daec8b41
[]
no_license
dankoga/URIOnlineJudge--Python-3.9
d424a47671f106d665a4e255382fc0ec3059096a
f1c99521caeff59be0843af5f63a74013b63f7f0
refs/heads/master
2023-07-15T08:32:11.040426
2021-09-03T13:27:17
2021-09-03T13:27:17
393,991,461
0
0
null
null
null
null
UTF-8
Python
false
false
698
py
import re while True: try: tag = input().lower() except EOFError: break tag_replacement = input() text = input() text_replaced = [] index_begin = 0 index_end = 0 regex = re.compile(tag, re.IGNORECASE) while index_end < len(text): while index_end < len(text) ...
[ "dankoga2@gmail.com" ]
dankoga2@gmail.com
7870f65dc0b7e24d9079a084ded746c988bdb9bb
1bd3076902117867ec048210905195ba2aaaaa6b
/exercise/leetcode/python_src/by2017_Sep/Leet279.py
d70c3fe111c535970d12a2902656ed8da5306c9a
[]
no_license
SS4G/AlgorithmTraining
d75987929f1f86cd5735bc146e86b76c7747a1ab
7a1c3aba65f338f6e11afd2864dabd2b26142b6c
refs/heads/master
2021-01-17T20:54:31.120884
2020-06-03T15:04:10
2020-06-03T15:04:10
84,150,587
2
0
null
2017-10-19T11:50:38
2017-03-07T03:33:04
Python
UTF-8
Python
false
false
809
py
class Solution(object): """ my first dp code """ def __init__(self): self.dpstate = [0, 1, 2, 3, ] + ([-1, ] * 10000) def numSquares(self, n): """ :type n: int :rtype: int """ res = self.dpRecursive(n, self.dpstate) return res def dpRecur...
[ "ziheng_song@126.com" ]
ziheng_song@126.com
2eae42fa8e4b1dc07aa735f7b8fc312778f409cd
4b4df51041551c9a855468ddf1d5004a988f59a2
/leetcode_python/Array/rotate-function.py
3d952365fd1c669f093f899be1b8236df3d9be1b
[]
no_license
yennanliu/CS_basics
99b7ad3ef6817f04881d6a1993ec634f81525596
035ef08434fa1ca781a6fb2f9eed3538b7d20c02
refs/heads/master
2023-09-03T13:42:26.611712
2023-09-03T12:46:08
2023-09-03T12:46:08
66,194,791
64
40
null
2022-08-20T09:44:48
2016-08-21T11:11:35
Python
UTF-8
Python
false
false
4,546
py
""" 396. Rotate Function Medium You are given an integer array nums of length n. Assume arrk to be an array obtained by rotating nums by k positions clock-wise. We define the rotation function F on nums as follow: F(k) = 0 * arrk[0] + 1 * arrk[1] + ... + (n - 1) * arrk[n - 1]. Return the maximum value of F(0), F(1)...
[ "f339339@gmail.com" ]
f339339@gmail.com
e6ac0a4377f1efeaa6ced9a1f60ff1064ee4f9d5
48894ae68f0234e263d325470178d67ab313c73e
/sa/apps/mrt/views.py
2436dec1eafdb325d310c8be9f817091229bae4b
[ "BSD-3-Clause" ]
permissive
DreamerDDL/noc
7f949f55bb2c02c15ac2cc46bc62d957aee43a86
2ab0ab7718bb7116da2c3953efd466757e11d9ce
refs/heads/master
2021-05-10T18:22:53.678588
2015-06-29T12:28:20
2015-06-29T12:28:20
118,628,133
0
0
null
2018-01-23T15:19:51
2018-01-23T15:19:51
null
UTF-8
Python
false
false
4,323
py
# -*- coding: utf-8 -*- ##---------------------------------------------------------------------- ## sa.mrt application ##---------------------------------------------------------------------- ## Copyright (C) 2007-2011 The NOC Project ## See LICENSE for details ##--------------------------------------------------------...
[ "dv@nocproject.org" ]
dv@nocproject.org
398e431632ab1e171a30c473667a6229cbf94728
76b983258793d294b81791ebe72591bfebf78625
/lib/ia32/optable.py
314689b3d1c369c472d481e50573e58dabea9a73
[ "BSD-2-Clause" ]
permissive
lotusexpeditor/syringe
18ac9cb800a7fefb7d67e31936db6a84e47df9eb
34a8386b90f534f9a856d0a436bba04dbf5100bd
refs/heads/master
2023-02-08T10:08:20.295797
2020-12-27T00:06:09
2020-12-27T00:06:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,372
py
from ._optable import OperandLookupTable from . import typesize def Lookup(opcode): '''Lookup specified opcode in the lookup table''' res = ord(opcode[0]) if res == 0x0f: res = ord(opcode[1]) return OperandLookupTable[res+0x100] return OperandLookupTable[res] def HasModrm(lookup): ...
[ "arizvisa@gmail.com" ]
arizvisa@gmail.com
418128e933eadf203bb45c157fb1159c2f0fd3fc
04c21e01c7dd002d0d66f26f17294bbe25ab30c1
/src/core/serializers/authentication/reset_password.py
0e0b5a6f90c5a3f1927d314da4b45df747402d19
[]
no_license
unbrokenguy/Q-n-A-rest-api
29d1a7614d761bf68f38bbbbbd731c3692afccf7
dd483993e304d6660c8c8f7518bf7414efd8ec28
refs/heads/master
2023-06-03T20:19:52.606677
2021-06-18T09:35:27
2021-06-18T09:35:27
376,749,787
0
0
null
2021-06-18T09:35:27
2021-06-14T08:08:44
Python
UTF-8
Python
false
false
394
py
from rest_framework import serializers from core.models import User class ResetPasswordSerializer(serializers.ModelSerializer): """ Reset password serializer check if new password is strong enough if not raises ValidationError. """ class Meta: model = User fields = ["password"] ...
[ "khazievbulatphanzilovich@gmail.com" ]
khazievbulatphanzilovich@gmail.com
7718f80d703242913200b6318bd12354622ff8e1
c1bd12405d244c5924a4b069286cd9baf2c63895
/azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/__init__.py
b9ace78ff9b74043c8e8e5253b7611a5e4bd9da3
[ "MIT" ]
permissive
lmazuel/azure-sdk-for-python
972708ad5902778004680b142874582a284a8a7c
b40e0e36cc00a82b7f8ca2fa599b1928240c98b5
refs/heads/master
2022-08-16T02:32:14.070707
2018-03-29T17:16:15
2018-03-29T17:16:15
21,287,134
1
3
MIT
2019-10-25T15:56:00
2014-06-27T19:40:56
Python
UTF-8
Python
false
false
952
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 ...
[ "laurent.mazuel@gmail.com" ]
laurent.mazuel@gmail.com
234f603a62fbcfc25412c15d4df79e54e6129073
60f95eff7c43f788af2420813c371152c1e2e5eb
/hulk/broker/oanda/common/constants.py
b37ffd670df513efa144a0da60298fba8d27b29e
[ "BSD-3-Clause" ]
permissive
webclinic017/hulk
1667c508acb061a8120dc415978a72e83dc38f54
de326ca1554dc743e225cef4e4b1e2fd4f5090c6
refs/heads/master
2022-03-22T20:07:23.276317
2019-12-02T01:10:43
2019-12-02T01:11:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
329
py
from ....base.models import AccountType OANDA_ENVIRONMENTS = { "streaming": { AccountType.REAL: "stream-fxtrade.oanda.com", AccountType.DEMO: "stream-fxpractice.oanda.com", }, "api": { AccountType.REAL: "api-fxtrade.oanda.com", AccountType.DEMO: "api-fxpractice.oanda.com",...
[ "dev@luotao.net" ]
dev@luotao.net
4e86e0e6ff825aaff5a9add1e218622ecce984ed
ca75f7099b93d8083d5b2e9c6db2e8821e63f83b
/z2/part2/batch/jm/parser_errors_2/185179947.py
546d93745ac3129f50e6b4ee8ebd53a7475e4971
[ "MIT" ]
permissive
kozakusek/ipp-2020-testy
210ed201eaea3c86933266bd57ee284c9fbc1b96
09aa008fa53d159672cc7cbf969a6b237e15a7b8
refs/heads/master
2022-10-04T18:55:37.875713
2020-06-09T21:15:37
2020-06-09T21:15:37
262,290,632
0
0
MIT
2020-06-09T21:15:38
2020-05-08T10:10:47
C
UTF-8
Python
false
false
916
py
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 185179947 """ """ random actions, total chaos """ board = gamma_new(2, 2, 2, 2) assert board is...
[ "jakub@molinski.dev" ]
jakub@molinski.dev
ba97b518db15458fb817d0b872d2356510abc92f
df8438656cc2b15001a03d02949abec9a374cb6f
/test/normalizer_issue_files/E72.py
c39cacc09c68bb48fdc7e3972843eaa5190fa3fb
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Python-2.0" ]
permissive
gandhis1/parso
65fcc7540eb2664691b1ed12203faa617995c4ce
7b166db0b5b0b46a3b8b2f1ea5c9dcf57bc36197
refs/heads/master
2021-01-25T04:36:15.558393
2017-06-05T23:20:12
2017-06-05T23:20:12
93,455,487
0
0
null
2017-06-05T23:18:20
2017-06-05T23:18:20
null
UTF-8
Python
false
false
1,089
py
#: E721 if type(res) == type(42): pass #: E721 if type(res) != type(""): pass import types if res == types.IntType: pass import types #: E721:3 if type(res) is not types.ListType: pass #: E721:7 E721:35 assert type(res) == type(False) or type(res) == type(None) #: E721:7 assert type(res) == ty...
[ "davidhalter88@gmail.com" ]
davidhalter88@gmail.com
6a18f0ae5be54533a66e3eca6087ba0b206673dc
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/saddle-points/3a5b8c06b75443c1ba4f3e45cd0ac791.py
bc8cf755d9ace6afd58ad1d6751c8c089df1218d
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
496
py
def saddle_points(mat): spoints = set() if mat: rowLen = len(mat[0]) for row in mat: if len(row) != rowLen: raise ValueError("Irregular matrix. All rows must be the same length.") for i, row in enumerate(mat): for j in range(rowLen): ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
8a2c478a7c55bd6e17bdb6130aaa087cc8b4487b
46035631e6d76ddea73603fcf139290f5cb4a991
/aws-python/__main__.py
dfb3e5a12cc77cf4fba6391e7fa0f6e30b3084db
[ "Apache-2.0" ]
permissive
pulumi/templates
c6150fd66d5ba85a312d9ee3102ed456abebda8b
7c18d24ed7a4e0f5e00801bc133bb19dae630ee3
refs/heads/master
2023-08-21T12:46:56.389767
2023-08-04T20:36:26
2023-08-04T20:36:26
124,577,647
66
52
Apache-2.0
2023-09-13T00:07:57
2018-03-09T18:21:12
Go
UTF-8
Python
false
false
219
py
"""An AWS Python Pulumi program""" import pulumi from pulumi_aws import s3 # Create an AWS resource (S3 Bucket) bucket = s3.Bucket('my-bucket') # Export the name of the bucket pulumi.export('bucket_name', bucket.id)
[ "noreply@github.com" ]
pulumi.noreply@github.com
684fc7ef464c7a993ed509a48263880dc368f563
8d79fc03f6e5a6df41e824c8573d3ea4646146bf
/IB_Tree_PathSum_if_Exists.py
e0c2d820da30e788bdd1a62a83ce8e103a92d034
[]
no_license
Cbkhare/Codes
3bea294dd0f2ec99e7e0ef0b7ff976cbe1765b7f
5b535795cdd742b7810ea163e0868b022736647d
refs/heads/master
2021-10-24T03:26:54.983073
2019-03-21T14:33:41
2019-03-21T14:33:41
111,226,735
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
class Solution: # @param A : root node of tree # @param B : integer # @return an integer def hasPathSum(self, A, B): if not A: return 0 def validate(node, some): #print (node.val, some) if node.left == node.right == None: if node.val==some: ...
[ "Chitrabasukhare89@gmail.com" ]
Chitrabasukhare89@gmail.com
6fae06163498067858f995086c69e2c86473bfc5
9876a02fb4f6c38271e41995296c6da4d2ec84af
/wagtail_review/templatetags/wagtailreview_tags.py
0f6c7e5ea88157336aa4fe725a39f1f39153a035
[ "BSD-3-Clause" ]
permissive
jacobtoppm/wagtail-review
423c19cecfa17ddeb22de6bb2a34baad0cd10fdb
23b81d7e5699ecb843a99da1aa207775a8b85bd6
refs/heads/master
2020-12-27T18:26:42.182847
2019-05-20T11:29:16
2019-05-20T11:29:16
238,005,148
0
0
BSD-3-Clause
2020-03-13T10:44:00
2020-02-03T16:05:08
null
UTF-8
Python
false
false
1,172
py
from django import template from wagtail_review.forms import ResponseForm register = template.Library() @register.inclusion_tag('wagtail_review/annotate.html', takes_context=True) def wagtailreview(context): request = context['request'] review_mode = getattr(request, 'wagtailreview_mode', None) reviewer...
[ "matt@west.co.tt" ]
matt@west.co.tt
18a16704f66dd1d340db3c65e8ea06fa3b6b70cd
59f64b5cf799e31c97b11828dba4787afb8f3f17
/hail/python/hail/ggplot/aes.py
5497f28d4d22e7863d89af491b89520fe20e5f4b
[ "MIT" ]
permissive
hail-is/hail
2089e6f3b38548f13fa5c2a8ab67f5cfdd67b4f1
07a483ae0f46c66f3ed6fd265b48f48c06298f98
refs/heads/main
2023-09-01T15:03:01.450365
2023-09-01T02:46:35
2023-09-01T02:46:35
45,069,467
913
262
MIT
2023-09-14T21:53:32
2015-10-27T20:55:42
Python
UTF-8
Python
false
false
1,112
py
from collections.abc import Mapping from hail.expr import Expression from hail import literal class Aesthetic(Mapping): def __init__(self, properties): self.properties = properties def __getitem__(self, item): return self.properties[item] def __len__(self): return len(self.prope...
[ "noreply@github.com" ]
hail-is.noreply@github.com
cffd05aad6e7ec0a8b97f7e2970e5b764364375f
2ac0e1ca51c473bba04bb08ea3be2015063a6a13
/galmeko/hospital/models.py
99b33f90648b820ca4d8c879fc1956e7d0906004
[]
no_license
guarav00009/Gaurav-Pandey-Latest
2012aafe643e1fcc915626422e352d1e4411905a
aa38a47a46bc434f5ec608fde5eec0f0f58259b9
refs/heads/master
2020-12-22T10:03:17.325527
2020-01-28T13:53:52
2020-01-28T13:53:52
236,746,358
0
0
null
null
null
null
UTF-8
Python
false
false
1,460
py
from django.db import models from django.utils.translation import gettext_lazy as _ from django.conf import settings from django.utils.html import format_html from django.template.response import TemplateResponse User = settings.AUTH_USER_MODEL # Create your models here. class Hospital(models.Model): user = models...
[ "gauravp@clavax.com" ]
gauravp@clavax.com
6644f5d39c16c8085f33054bbbdde0e525062265
3c2323929499a4d81adada6f60ee64bde1e86cb2
/Simple_Backpropagation_Program/pytorch/views.py
ad9420f44e05bb17b3ef53f819f0390a0c1d09d5
[]
no_license
GeonwooVincentKim/Backpropagation_Pytorch_Django
8ba22bb065aca35fed114420b749bb9f0a383688
41df659956e5e4e8126b272bd4f5053cdeb30663
refs/heads/master
2022-11-22T06:44:27.901139
2020-07-16T14:01:06
2020-07-16T14:01:06
273,230,382
0
1
null
null
null
null
UTF-8
Python
false
false
814
py
from django.shortcuts import render # Create your views here. def index(request): return render(request, 'index.html', {}) def sub(request): # if request.method == 'POST': # """ # Write down some code which is related to # the number that you input. # """ # """ # ...
[ "kdsnop@gmail.com" ]
kdsnop@gmail.com
68e429904fe72245794c1b21b63e11df67f9ce97
cb13037cdbd3e0ab6108670108e9497cc1e2a5a7
/0.leetcode/0.基本的算法/4.排序/1.冒泡排序Bubblesort.py
87ddbad13767a3782c1a06daaf71a3b8bf67122c
[]
no_license
GMwang550146647/network
390fe0d1c72dcaca8b6d6dd1307adca0d56b55ce
576de9b993f7763789d25a995702b40c9bc6fa57
refs/heads/master
2023-06-15T04:42:54.306077
2021-07-12T06:06:02
2021-07-12T06:06:02
315,488,828
0
0
null
null
null
null
UTF-8
Python
false
false
750
py
''' 1.冒泡排序: 把最大的数一个一个地丢到最前面(期间对比的时候,见到比自己小的就交换相邻两个) 优点: 在非顺序链表都可以用 ''' def bubbleSort(arr): for i in range(len(arr)-1,0,-1): for j in range(1,i+1): if arr[j-1]>arr[j]: arr[j],arr[j-1]=arr[j-1],arr[j] return arr def bubbleSortModified(arr): for i in range(len(arr)-1,0,-1)...
[ "gmwang_global@qq.com" ]
gmwang_global@qq.com
349ea6ce098e264d8c03d7b91b59e71dad2c0350
d15eb2285895469a452867f76b033d0d64a4af5c
/Old_scripts_delete_20220804/Scripts/measurements/vna_autler_townes.py
7d51bf373377dba1857bae3f809c5d6dc426d33d
[]
no_license
MRitter95/Kollar-Lab
45ac62ed7805ad9faeeb33b54be50f39950f3b2c
c905725c43af6a49fe5bb2a994d5180f2ba469c2
refs/heads/master
2023-08-19T03:38:43.761313
2023-08-10T17:49:00
2023-08-10T17:49:00
236,054,959
5
1
null
null
null
null
UTF-8
Python
false
false
5,356
py
# -*- coding: utf-8 -*- """ Created on Sun Nov 8 18:31:45 2020 @author: Kollarlab """ import time import os import numpy as np import matplotlib.pyplot as plt import userfuncs import plotting_tools as plots def get_default_settings(): settings = {} #Save location settings['scanname'] = 'scanname...
[ "maritter@umd.edu" ]
maritter@umd.edu
1b70f2c79a348180971c5ae664a3ee3a8482424a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03378/s251701721.py
49de078c7467f51e9581f9eab691c6a075c1561c
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
n,m,s = [int(x) for x in input().split()] a = [int(x) for x in input().split()] low = 0 high = 0 for i in range(m): if a[i] < s: low += 1 else: high += 1 print(min(low,high))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
333c75b551e4d62e7e80906e1b5ab7e2af0653cc
bd28f8a8dbcf7f2b4be3bcc0c0e656009191d379
/predict_nn/ranlp/rsr_dev/mi/ian.py
58b47a880118a587446b42c4ca6f575d9f0355ea
[ "MIT" ]
permissive
nicolay-r/attitudes-extraction-ds
e2e5f9218408514ca1f3eff5edf88771e2f368ee
49a82843e6adbca35321aaaa08d05532e953a0fc
refs/heads/master
2022-08-30T04:51:14.133899
2020-05-28T11:06:01
2020-05-28T11:06:01
197,908,649
3
1
null
null
null
null
UTF-8
Python
false
false
1,240
py
#!/usr/bin/python import sys sys.path.append('../../../../') from predict_nn.ranlp.rsr_dev.config import TEST_ON_EPOCHS, MI_CONTEXTS_PER_OPINION from networks.ranlp.io_rsr_dev import RaNLPConfTaskRuSentRelWithDevIO from networks.mimlre.base import MIMLRE from networks.context.architectures.ian import IAN from networks...
[ "kolyarus@yandex.ru" ]
kolyarus@yandex.ru
37fcce29634843a7c5c79899d2c6871a27f98257
3fb718b33d486d638402e5f5bb4eb028332bd54e
/Objects and Classes/Zoo.py
c657af3653914ff55c24c427eacb63f1fabf3133
[]
no_license
lion963/SoftUni-Python-Fundamentals-
1c0aced0d770d0f5d0a4977543e945576425aff1
25fca7f88513d9e9b9ceb2741d9cb3b3c067b97b
refs/heads/master
2023-01-24T16:21:46.517847
2020-12-14T13:50:06
2020-12-14T13:50:06
297,916,630
0
0
null
null
null
null
UTF-8
Python
false
false
1,279
py
class Zoo: __animals = 0 def __init__(self, name): self.name = name self.mammals = [] self.fishes = [] self.birds = [] def add_animal(self, species, name): if species == 'mammal': self.mammals.append(name) elif species == 'fish': self...
[ "lion963@mail.bg" ]
lion963@mail.bg
a1e6752c97c13384efca970a958b0761d12d34cd
d2189145e7be2c836017bea0d09a473bf1bc5a63
/Reposiciones/reposicionesIsraelFP/reposicion31Ago18IsraelFP/fibonacciISraelFP.py
692bd0eafb663ca194cd985e7f9b1080a1142875
[]
no_license
emilianoNM/Tecnicas3
12d10ce8d78803c8d2cd6a721786a68f7ee2809d
6ad7f0427ab9e23643a28ac16889bca8791421d0
refs/heads/master
2020-03-25T18:06:34.126165
2018-11-24T04:42:14
2018-11-24T04:42:14
144,013,045
3
5
null
2018-09-14T10:47:26
2018-08-08T12:49:57
Python
UTF-8
Python
false
false
306
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sat Sep 15 16:04:05 2018 @author: israel """ def fib(f): if f == 1: return 1 if f == 2: return 1 return fib(f-1)+fib(f-2) print "\t..:Fibonacci:.." f=input("Cantidad de no. a hacer en Fibonacci: ") print "> No. Fibonacci: ",fib(f)
[ "noreply@github.com" ]
emilianoNM.noreply@github.com
40547c88ef4733a7b77c0d92fa0344e3439c408f
98efe1aee73bd9fbec640132e6fb2e54ff444904
/loldib/getratings/models/NA/na_aatrox/__init__.py
edb18cb382f17b02c1036fa9cc09ee67a24a63ab
[ "Apache-2.0" ]
permissive
koliupy/loldib
be4a1702c26546d6ae1b4a14943a416f73171718
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
refs/heads/master
2021-07-04T03:34:43.615423
2017-09-21T15:44:10
2017-09-21T15:44:10
104,359,388
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
from .na_aatrox_top import * from .na_aatrox_jng import * from .na_aatrox_mid import * from .na_aatrox_bot import * from .na_aatrox_sup import *
[ "noreply@github.com" ]
koliupy.noreply@github.com
390b65607f271bdd88f9fab4359365ad28e4f992
d92235bce35d7bf1b028ae417c6ceb8891b6c8b4
/dk_mnist_mlp_weightnorm.py
10c935941f332df7936c404f15dd57a9d282b466
[]
no_license
capybaralet/BayesianHypernet
63faadc83aa95ec80e5d7805ec300c151734f93a
4d7bdc749b2fb9cf74e45c5b21ccc590b6f781e7
refs/heads/master
2020-12-30T15:30:54.687925
2017-05-15T21:38:15
2017-05-15T21:38:15
91,155,018
3
0
null
2017-05-13T06:41:49
2017-05-13T06:41:49
null
UTF-8
Python
false
false
5,345
py
# -*- coding: utf-8 -*- """ Created on Fri May 12 17:46:38 2017 @author: Chin-Wei """ from modules import LinearFlowLayer, IndexLayer, PermuteLayer from modules import CoupledDenseLayer, stochasticDenseLayer2 from utils import log_normal, log_stdnormal from ops import load_mnist import theano import theano.tensor as ...
[ "davidscottkrueger@gmail.com" ]
davidscottkrueger@gmail.com
775a119a67245fdb0d9299d512d4b793d1281268
0f931d9e5b74f52a57499364d858819873bdf469
/15.py
ea1afc8f020b5301aa75fbcffe5bfc0a28df61c1
[]
no_license
estuprofe/AdventOfCode2019
43f4d6f96d580a1732d7932ea863613af270fe56
54450df616feef810fbd410ccc9d1b0670195e49
refs/heads/master
2022-04-03T11:35:30.553698
2019-12-22T03:21:33
2019-12-22T03:21:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,313
py
import fileinput import heapq import intcode left, right, opposite = [2, 3, 1, 0], [3, 2, 0, 1], [1, 0, 3, 2] dxs, dys = [0, 0, -1, 1], [-1, 1, 0, 0] def traverse(program): buf = [] gen = intcode.run(program, buf) send = lambda d: buf.append(d + 1) or next(gen) test = lambda d: send(d) and send(opposi...
[ "fogleman@gmail.com" ]
fogleman@gmail.com
ef907923a1970b33a70abe7364cdcf42e701a3d2
3cea6c6664d9489b4cfb33ea8580f8189b5839ff
/torchex/nn/modules/padding.py
ca8bc82e42fac577d1304747aa66ed99bb511ce6
[ "MIT" ]
permissive
tarokiritani/torchex
81c24457337bdbf6ad103dd9ded5488b69b468bd
5e9d8f7f08a3931c2271e108d73226b1ee6b3efa
refs/heads/master
2020-04-12T17:55:02.960878
2018-12-14T09:37:46
2018-12-14T09:37:46
162,661,997
0
0
null
2018-12-21T03:40:19
2018-12-21T03:40:19
null
UTF-8
Python
false
false
2,265
py
import torch import torch.nn as nn class PeriodicPad2d(nn.Module): """ :params torch.Tensor input: Input(B, C, W, H) # https://github.com/ZichaoLong/aTEAM/blob/master/nn/functional/utils.py """ def __init__(self, pad_left: int=0, pad_right: int=0, pad_top: i...
[ "kbu94982@gmail.com" ]
kbu94982@gmail.com
f303c4c5c52b859986065ba36976c2cd24f5fa30
4e8e9ed2a8fb69ed8b46066a8d967e4c107013a4
/main/control/comment.py
74b22b2e72d524f3e59cb31990a4cf5d1b395682
[ "MIT" ]
permissive
welovecoding/vote4code
a57b3d155096d362dca47587ad2985b4201ef036
be265d553af35dc6c5322ecb3f7d5b3cf7691b75
refs/heads/master
2021-08-11T22:46:40.884030
2019-11-15T16:15:05
2019-11-15T16:15:05
90,191,931
14
0
MIT
2021-08-10T22:50:49
2017-05-03T20:46:02
Python
UTF-8
Python
false
false
5,801
py
# coding: utf-8 from google.appengine.ext import ndb import flask import flask_wtf import wtforms import auth import config import model import util from main import app ############################################################################### # Update ########################################################...
[ "lipiridis@gmail.com" ]
lipiridis@gmail.com
224115799dcddd421f082f520cd9f670ef3cd9cc
e81fabdd6988c787524755fac73aa9d3631fc64c
/tests/test_ops/test_early_stopping.py
286560c5fd38fb4cc2edbac48b85b01eeecdd9e7
[ "MIT" ]
permissive
granularai/polyaxon-schemas
0aa06f15b7353ceb6d31f1e5cf63c269ab0e2ce4
017ae74701f21f12f0b25e75379681ea5d8baa9e
refs/heads/master
2022-08-30T00:05:40.888476
2020-05-19T17:22:46
2020-05-19T17:22:46
265,312,701
0
0
MIT
2020-05-19T17:16:38
2020-05-19T17:16:37
null
UTF-8
Python
false
false
1,874
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from unittest import TestCase from tests.utils import assert_equal_dict from polyaxon_schemas.ops.group.early_stopping_policies import EarlyStoppingConfig from polyaxon_schemas.ops.group.metrics import Optimization class TestE...
[ "mouradmourafiq@gmail.com" ]
mouradmourafiq@gmail.com
9ff9b1b4f5e88031f1b4c71bf900b366103e5a6f
b67efb7ac1832f2a70aa570f8025c69498a8cd71
/pgoapi/protos/POGOProtos/Data/Logs/FortSearchLogEntry_pb2.py
7469fad7bf20a643ec48fffd8c8889493a9bf5e5
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
PogoHop/pgoapi-hsvr
f1513d7548075a7defd21f1018bd59afcb79d78f
b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47
refs/heads/master
2021-01-12T11:17:55.334203
2016-11-05T12:48:38
2016-11-05T12:48:38
72,892,081
0
0
null
null
null
null
UTF-8
Python
false
true
4,709
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: POGOProtos/Data/Logs/FortSearchLogEntry.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goog...
[ "hoptional@gmail.com" ]
hoptional@gmail.com
67dcd3ec7cdb0cc71d9f3b762d542f02506fbeb3
49ba5356bdc5df7dd9803b56fe507c5164a90716
/surface-area-of-3d-shapes/solution.py
a1de598aa85c92a605d01dfaf2403263d9ecf1e5
[]
no_license
uxlsl/leetcode_practice
d80ad481c9d8ee71cce0f3c66e98446ced149635
d8ed762d1005975f0de4f07760c9671195621c88
refs/heads/master
2021-04-25T18:12:28.136504
2020-03-11T07:54:15
2020-03-11T07:54:15
121,472,384
0
0
null
null
null
null
UTF-8
Python
false
false
1,509
py
# leetcode # https://leetcode-cn.com/problems/surface-area-of-3d-shapes/ # 解法: # 求六个方向的表面积 class Solution(object): def surfaceArea(self, grid): """ :type grid: List[List[int]] :rtype: int """ N = len(grid) area = 0 # xy 正反面 for i in range(N): ...
[ "songlin.lin@yunfangdata.com" ]
songlin.lin@yunfangdata.com
ce978302f88b0065282a8fb57be6ec347d9e2012
2fabea234735beefc980b77b213fcb0dfb394980
/tensorflow_probability/python/distributions/deprecated_linalg_test.py
e30bf6de1138043acd8d2544bd85b4b5b72eabca
[ "Apache-2.0" ]
permissive
tarrou/probability
0eee452b525a6e6b3c7c98d467468e47f07e861b
d4d80a1c04ad0b3e98758ebc3f7f82887274384d
refs/heads/master
2020-08-08T11:16:42.441268
2019-12-06T17:35:17
2019-12-06T17:35:17
213,819,828
0
0
Apache-2.0
2019-10-09T04:20:19
2019-10-09T04:20:19
null
UTF-8
Python
false
false
2,518
py
# Copyright 2019 The TensorFlow Probability 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 applicable law o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
8c0d012d8d04a4973b14979e0731ec72a32bbdde
0728a2e165808cfe5651693a6e7f47804bfb085f
/ry/trunk-ry/rynok/controllers/category.py
2c8663f5cbf391dbaad2d949ff7d5a5f07a4cd0e
[]
no_license
testTemtProj/OLD_PROJECT
5b026e072017f5135159b0940370fda860241d39
9e5b165f4e8acf9003536e05dcefd33a5ae46890
refs/heads/master
2020-05-18T15:30:24.543319
2013-07-23T15:17:32
2013-07-23T15:17:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,907
py
#coding: utf-8 """ Category Controller """ import logging import rynok.lib.helpers as h import json from pylons import request, response, session, tmpl_context as c, url from pylons.controllers.util import abort, redirect from webhelpers.html.builder import HTML from rynok.lib.base import BaseController, render from ...
[ "Kyzmenko_Pavel@mail.ru" ]
Kyzmenko_Pavel@mail.ru
36686ecf3ef8dddacb386186f976e7db325b7da8
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/16/usersdata/122/6123/submittedfiles/triangulo.py
3ae57cd9af2aa0c78741ee0de80b08dafd3b0c19
[]
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
369
py
# -*- coding: utf-8 -*- from __future__ import division import math #ENTRADA a=input('digite o valor do lado a:') b=input('digite o valor do lado b:') c=input('digite o valor do lado c:') if a<(b+c): print('S') if (a**2)==(b**2)+(c**2): print('Re') elif (a**2)>(b**2)+(c**2): print('Ob') ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9cc28d9f4c07c4648dc57207f4e8201627ae8aed
1b9075ffea7d4b846d42981b41be44238c371202
/2008/devel/programming/libs/libdbf/actions.py
242da707fa8723753f2298926612cdf827675c4e
[]
no_license
pars-linux/contrib
bf630d4be77f4e484b8c6c8b0698a5b34b3371f4
908210110796ef9461a1f9b080b6171fa022e56a
refs/heads/master
2020-05-26T20:35:58.697670
2011-07-11T11:16:38
2011-07-11T11:16:38
82,484,996
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get ...
[ "MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2" ]
MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2
cdbe41c2ec761eb560f3450e4eafcb73d802900a
cecd61903943d9f25f37605a344b1683ee958b11
/what_is_food/config/desktop.py
06f7e215806a55310c988083ea653bb469f998b8
[ "MIT" ]
permissive
ashish-greycube/what_is_food
1f31ce461f97f8d4dccbbd078eb2190a4f785caa
6c4a327a721accf86667cc87c0b2976dcd09abe6
refs/heads/master
2022-12-15T06:07:07.137326
2020-08-27T04:05:21
2020-08-27T04:05:21
273,717,466
0
1
null
null
null
null
UTF-8
Python
false
false
274
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "module_name": "What Is Food", "color": "yellow", "icon": "octicon octicon-device-mobile", "type": "module", "label": _("What Is Food") } ]
[ "mr.ashish.shah@gmail.com" ]
mr.ashish.shah@gmail.com
40bf69fc32a19fddc23cf0e29fdc8fc40c238709
8ef8e6818c977c26d937d09b46be0d748022ea09
/nlp/dialogue_generation/cpm/pytorch/iluvatar/cpm/config/layers/self_multihead_attn.py
55be679404c3ac3d70ad62e15e3d9ac7aa90f005
[ "Apache-2.0" ]
permissive
Deep-Spark/DeepSparkHub
eb5996607e63ccd2c706789f64b3cc0070e7f8ef
9d643e88946fc4a24f2d4d073c08b05ea693f4c5
refs/heads/master
2023-09-01T11:26:49.648759
2023-08-25T01:50:18
2023-08-25T01:50:18
534,133,249
7
6
Apache-2.0
2023-03-28T02:54:59
2022-09-08T09:07:01
Python
UTF-8
Python
false
false
3,926
py
import math import torch from torch import nn from torch.nn import Parameter import torch.nn.functional as F from layers.self_multihead_attn_func import self_attn_func from layers.fast_self_multihead_attn_func import fast_self_attn_func from apex.normalization.fused_layer_norm import FusedLayerNorm class SelfMultih...
[ "jia.guo@iluvatar.ai" ]
jia.guo@iluvatar.ai
33c8c7e6cc382a9dbcd9a3eb49171fbcf67e4e72
bedf68a6e2bb337d2848a4a55a24c71fd62484c7
/tests/test_NMT_architectures/bidir_deep_LSTM_ConditionalGRU.py
0151b7f437481dcaae0d6cdc7546fecde3951030
[ "MIT" ]
permissive
19ai/nmt-keras
941d5bbffe1889d72e4d58ae77fd92d8db3b0df7
ec56acb619b0c4be0558f737d5d848971fa282db
refs/heads/master
2020-03-11T16:37:06.633273
2018-04-18T11:46:03
2018-04-18T11:46:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,746
py
import argparse import pytest from keras import backend as K from config import load_parameters from data_engine.prepare_data import build_dataset from main import train_model, apply_NMT_model from sample_ensemble import sample_ensemble from score import score_corpus def load_tests_params(): params = load_param...
[ "lvapeab@gmail.com" ]
lvapeab@gmail.com
fe8974fa7e751cfea487290d10694d7ad661d211
491f29501fa7d484a5860f64aef3fa89fb18ca3d
/examples/mechanics/GeometricPrimitives/disk_on_box.py
275e8e9cb3d623f8b232906ba95792f7316f040e
[ "Apache-2.0" ]
permissive
siconos/siconos-tutorials
e7e6ffbaaea49add49eddd317c46760393e3ef9a
0472c74e27090c76361d0b59283625ea88f80f4b
refs/heads/master
2023-06-10T16:43:13.060120
2023-06-01T07:21:25
2023-06-01T07:21:25
152,255,663
7
2
Apache-2.0
2021-04-08T12:00:39
2018-10-09T13:26:39
Jupyter Notebook
UTF-8
Python
false
false
4,596
py
#!/usr/bin/env python # # Example of one object under gravity with one contactor and a ground # using the Siconos proposed mechanics API # from siconos.mechanics.collision.tools import Contactor from siconos.io.mechanics_run import MechanicsHdf5Runner, MechanicsHdf5Runner_run_options from siconos.mechanics.collision....
[ "vincent.acary@inria.fr" ]
vincent.acary@inria.fr
128763e94d58774059e8218f401b3f0fd84cad73
bc9ebb347af6804c1bce6e960148ece1fbb34a47
/1_python/bronze/10870.py
d22572f825e791fd8b0ffbb53df9d5bdaad4045a
[]
no_license
mooncs/BOJ
48416fec1a059197a72de61c8d6e72f7fc8b542b
45d2d5a8a6bf0f10d026f3846b70009914aa90d3
refs/heads/main
2023-08-13T15:30:47.395359
2021-10-11T13:37:04
2021-10-11T13:37:04
392,885,432
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
# 피보나치 수 5 def fibo(x): if x <= 1: return x return fibo(x-2) + fibo(x-1) n = int(input()) print(fibo(n)) # # for문 # def fibo(x): # a, b = 0, 1 # for _ in range(x): # a, b = b, a+b # return(a) # n = int(input()) # print(fibo(n))
[ "mooncs528@gmail.com" ]
mooncs528@gmail.com
40aa8ad79278c7537cdc7550405b8ad12b72d6e7
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4081/codes/1643_1055.py
5bb3ece083af6c50c3772003c55246d4aea20a12
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
384
py
# Teste seu código aos poucos. # Não teste tudo no final, pois fica mais difícil de identificar erros. # Use as mensagens de erro para corrigir seu código. from math import* v=float(input("velocidade inicial:")) a=radians(float(input("angulos de tiro:"))) d=float(input("valor da distancia: ")) r=((v**2)*sin(2*a))/9.8 p...
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
6c2b98a894099f068a128d68de56fc0ff0dcdde7
2b11e7aa28b84af2e2a7fd8719af89f5fffd8a5b
/tests/test_models/test_user.py
4b734786dc7c17a6ae7e51cd396963dfe334a4dd
[]
no_license
nikolasribeiro/AirBnB_clone
6a3e3d65314a0131252461757943468628394ced
4529c56a706f0d956a238522d912cf6260f2fa28
refs/heads/main
2023-03-10T22:10:10.665939
2021-02-27T19:33:11
2021-02-27T19:33:11
338,063,410
0
1
null
null
null
null
UTF-8
Python
false
false
2,112
py
#!/usr/bin/python3 """ Module tests/test_models/test_user""" import models from models.base_model import BaseModel import os import unittest class TestBase_Model(unittest.TestCase): """ class TestBase_Model """ def test_docstring(self): """ function test_docstring """ msj = "Módulo does not...
[ "nikolasribeiro2@outlook.com" ]
nikolasribeiro2@outlook.com
9315cc8bf5f6132cf366ce7e7d880acd7293cd3f
88eeba6df8382687f36a4765bb298f76465c8e81
/general/chainerrl/chainerrl/tests/links_tests/test_noisy_linear.py
49b094838cec68f4f40aa91df7f9371a2755ba50
[ "MIT" ]
permissive
daniellawson9999/quick_start
db0b6e382efd640754ca1e7800753c94e668423a
947d61f118433dcd4cb845f27649ebfbc8062ecc
refs/heads/master
2022-02-23T21:54:16.273530
2019-09-27T01:46:41
2019-09-27T01:46:41
197,873,032
0
0
null
2019-07-20T03:12:34
2019-07-20T03:12:31
null
UTF-8
Python
false
false
2,798
py
import unittest import chainer from chainer import cuda from chainer import testing from chainer.testing import attr from chainer.testing import condition import numpy from chainerrl.links import noisy_linear @testing.parameterize(*testing.product({ 'size_args': [ (5,), # uninitialized fr...
[ "daniellawson9999@gmail.com" ]
daniellawson9999@gmail.com
a7d4d5bf7c36dad18109efd3495f3312e958580c
931515a9fdd4404cb548fb6b80c91590f5d5e3c9
/presalytics/client/presalytics_ooxml_automation/models/chart_column_collections.py
91c556a70437a9633b3b183127aef59d065963d3
[ "MIT" ]
permissive
presalytics/python-client
2e2fbd617b493ed8be90b844e23b736f294065e3
5d80b78562126feeeb49af4738e2c1aed12dce3a
refs/heads/master
2021-08-18T02:41:06.938468
2020-12-07T15:04:18
2020-12-07T15:04:18
203,414,411
4
1
MIT
2020-03-31T19:27:47
2019-08-20T16:31:57
Python
UTF-8
Python
false
false
3,705
py
# coding: utf-8 """ OOXML Automation This API helps users convert Excel and Powerpoint documents into rich, live dashboards and stories. # noqa: E501 The version of the OpenAPI document: 0.1.0-no-tags Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
[ "kevin@chart-a-lot.com" ]
kevin@chart-a-lot.com
5a0826ad9f7cbc75cb16320948b0a920328fccb2
a0d6cbae196c24254fb6f1411d756da0029e092a
/trunk/src/appserver/apps/user_srv_d/main.py
e626d55800d34accfb379fe41899e7ed973f72ca
[]
no_license
newguangzhou/haha-cluster
8101ee1cb5b5ddbf916268029a33336c6fa0b06d
4cee4172f3bd7939e0369d46603a62087e206277
refs/heads/master
2021-05-16T10:21:38.245881
2017-09-25T03:36:07
2017-09-25T03:36:07
104,700,121
0
0
null
null
null
null
UTF-8
Python
false
false
6,348
py
# -*- coding: utf-8 -*- import sys sys.path.append("../../") sys.path.append("../terminal_srv_d/") reload(sys) sys.setdefaultencoding('utf-8') #import setproctitle from tornado import ioloop, gen from tornado.web import Application, url import tornado.options from tornado.options import define, options from lib.con...
[ "bingodongtian@gmail.com" ]
bingodongtian@gmail.com
828855bc5a1f6617ef25c47b606649d873810864
1d49dcfe7a725ed9c21d5e614b7e61c81aae1c88
/modules/critics/CentralV.py
62f3043f15838fbfacbcde6b6d31b5066599a20e
[ "Apache-2.0" ]
permissive
xiaojize/SMAC-1
c405aa22d30a7f176b4b2a29669ae82ea7f0b3c7
7aaf4673b0eecafc4ab25f381eea20fc762af56a
refs/heads/master
2023-06-30T14:37:44.870652
2021-07-23T15:15:49
2021-07-23T15:15:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
import torch.nn as nn import torch.nn.functional as F class CentralV_Critic(nn.Module): def __init__(self, input_shape, args): super(CentralV_Critic, self).__init__() self.args = args self.fc1 = nn.Linear(input_shape, 128) self.fc2 = nn.Linear(128, 128) self.fc3 = n...
[ "jk96491@naver.com" ]
jk96491@naver.com
6cc03fb54250c0b2f6556012d2bf83b75474b3f2
9d278285f2bc899ac93ec887b1c31880ed39bf56
/ondoc/cart/migrations/0006_merge_20190326_1307.py
67a383ce2f25bfc403a88150e01f3f911f341528
[]
no_license
ronit29/docprime
945c21f8787387b99e4916cb3ba1618bc2a85034
60d4caf6c52a8b70174a1f654bc792d825ba1054
refs/heads/master
2023-04-01T14:54:10.811765
2020-04-07T18:57:34
2020-04-07T18:57:34
353,953,576
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
# Generated by Django 2.0.5 on 2019-03-26 07:37 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('cart', '0005_auto_20190315_1612'), ('cart', '0004_auto_20190318_1424'), ] operations = [ ]
[ "sonamsinha@policybazaar.com" ]
sonamsinha@policybazaar.com
bbc9346e361617f40137e996c9caee2f66e94355
032a0c939d96d0e5307dbce86e11faf7060f4ed9
/lte/gateway/python/magma/pipelined/tests/test_ipv6_prefix_mapper.py
d33410b7b423133760753874c76ffd7d50ae75a6
[ "BSD-3-Clause" ]
permissive
radha0018/magma
cac9ff3491dd2661e5dc0aa1f9a304a5428e2d2a
8436966a4bb3cf7fdc3f567704062b6f9568db25
refs/heads/master
2023-05-05T08:26:07.132969
2021-05-27T18:44:44
2021-05-27T18:44:44
371,097,174
0
2
NOASSERTION
2021-05-26T16:26:21
2021-05-26T16:15:53
Go
UTF-8
Python
false
false
2,280
py
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
[ "noreply@github.com" ]
radha0018.noreply@github.com
d581e305ac079f2af1725f50e4bd33b9987b30cf
79b1d3d8ffbda5297fff6fefe2528e303bf2110a
/RSGGenFragment/RSToQQ/RSGravitonToQuarkQuark_W-0p1_M_3250_TuneCUETP8M1_13TeV_pythia8_cfi.py
4743fb46d70ff29d63a01653fe65bceda8571ccf
[]
no_license
yguler/MCFragments-1
25745a043653d02be3a4c242c1a85af221fc34b3
7c4d10ee59e00f997221109bf006819fd645b92f
refs/heads/master
2021-01-13T14:09:12.811554
2016-12-11T15:57:37
2016-12-11T15:57:37
76,184,433
0
0
null
2016-12-11T15:59:22
2016-12-11T15:59:22
null
UTF-8
Python
false
false
1,323
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", comEnergy = cms.double(13000.0), crossSection = cms.untracked.double(0.00000782),...
[ "emine.gurpinar@cern.ch" ]
emine.gurpinar@cern.ch
0997db820df5512beb330aedeb592bcd7ec5f840
cb7c3673ad937c282a39be74d0aee8628e75928d
/tests/test_utils/output/uriandcurie.py
2c0bb6edc92ee3846661835fdd4a574c30b2da97
[ "CC0-1.0" ]
permissive
bpow/linkml
649d6d48f39a8c51efa92fba7eb25c1d8854b472
ab83c0caee9c02457ea5a748e284dee6b547fcd6
refs/heads/main
2023-05-05T18:46:04.501897
2021-05-13T21:17:03
2021-05-13T21:17:03
371,163,928
0
0
CC0-1.0
2021-05-26T20:42:13
2021-05-26T20:42:12
null
UTF-8
Python
false
false
4,918
py
# Auto generated from uriandcurie.yaml by pythongen.py version: 0.9.0 # Generation date: 2021-03-26 14:22 # Schema: uriandcurie # # id: http://example.org/test/uriandcurie # description: # license: import dataclasses import sys import re from typing import Optional, List, Union, Dict, ClassVar, Any from dataclasses im...
[ "action@github.com" ]
action@github.com
b6e2ce22fb67076c267ba2e1fd71f0b24c1d2878
20dba145fd988d5901cfd335efe238c0dce8ac5b
/analytics/decorators/cache_dec.py
df12f6fbc3b61d39bd1710094aebd7c6bc2533c3
[ "BSD-3-Clause" ]
permissive
ModelDBRepository/228604
10be01bf0eeea3ea07ef4c38ebb3b4c771000923
8f641f73bcac2700b476663fe656fcad7d63470d
refs/heads/master
2020-05-29T18:25:57.095212
2019-05-31T03:47:54
2019-05-31T03:47:54
189,299,677
0
0
null
null
null
null
UTF-8
Python
false
false
1,489
py
""" a simple caching of function return values using the decorator "cached", e.g. @cached def foo(a, b, c): return a*b-c will cache the result of the calculation foo does, which of course better not be this trivial. works also for numpy arrays in the parameters. should of course only be used on functi...
[ "tom.morse@yale.edu" ]
tom.morse@yale.edu
a108d8f0631873f4b65550ed4b7d482f12e3e8a6
02422812b5e93225f6c842ec57aae601cb939a8d
/tests/client/internal_messaging/test_producer.py
fc80a258c21a90b32dbe40386e709df21e14b6aa
[ "Apache-2.0" ]
permissive
gcollard/lightbus
1af20564bb05df76ed7302f6eb93487c5b17592d
d04deeda8ccef5a582b79255725ca2025a085c02
refs/heads/master
2022-12-27T01:02:45.505846
2020-10-02T02:18:05
2020-10-02T02:18:05
300,042,306
0
0
Apache-2.0
2020-10-02T02:18:06
2020-09-30T19:44:52
Python
UTF-8
Python
false
false
2,372
py
import asyncio import logging import pytest from _pytest.logging import LogCaptureFixture from lightbus.client.internal_messaging.producer import InternalProducer pytestmark = pytest.mark.unit @pytest.mark.asyncio async def test_queue_monitor(producer: InternalProducer, caplog: LogCaptureFixture, fake_coroutine): ...
[ "adam@adamcharnock.com" ]
adam@adamcharnock.com
cb2c66246218d18c73711d4760222ad0c1230cb8
571a89f94f3ebd9ec8e6b618cddb7d05811e0d62
/chokudai_S001/h/main.py
dee5983b58febe63c07ef1f8bf5b7db686e13a53
[]
no_license
ryu19-1/atcoder_python
57de9e1db8ff13a107b5861f8f6a231e40366313
cc24b3c2895aad71d40cefbb8e2893dc397b8f4f
refs/heads/master
2023-05-10T05:32:16.507207
2021-05-19T17:48:10
2021-05-19T17:48:10
368,954,430
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
#!/usr/bin/env python3 import sys from collections import deque, Counter from heapq import heappop, heappush from bisect import bisect_left from itertools import accumulate sys.setrecursionlimit(10**6) INF = 10**12 m = 10**9 + 7 def main(): N = int(input()) a = list(map(int, input().split())) dp = [INF] ...
[ "ryu1007kami@gmail.com" ]
ryu1007kami@gmail.com
eac93448f682961cac9392c005e6e93abf7cac29
e5664b40c9d0a828c009b30ed8fe62666d04bf62
/falcon_marshmallow/_version.py
ceaa700e54e94982b6e19e2fb7dede45e5f07725
[ "MIT" ]
permissive
evilr00t/falcon-marshmallow
9eb348fd68e1b0c85927e77f62bc02fc093ad28e
97f169c78f11a638b1f21b3a977bb5df8d071be5
refs/heads/master
2022-02-23T05:04:37.315682
2019-10-12T19:37:11
2019-10-12T19:37:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
# -*- coding: utf-8 -*- """ version.py module The version set here will be automatically incorporated into setup.py and also set as the __version__ attribute for the package. "dev", "rc", and other verison tags should be added using the ``setup.py egg_info`` command when creating distributions. """ from __future__ im...
[ "msplanchard@gmail.com" ]
msplanchard@gmail.com
93c094ec3ff67c2547a4273d6b6d7dd5b2d36e17
528c811306faa4a34bf51fca7955b7a24ac2e30c
/Python/Number of Islands II.py
ea9b85418e2cf1f4baca66002f08cbad1d4cd15e
[]
no_license
ganjingcatherine/LeetCode-1
1addbd7e4d9254a146601f9d5e28b8becb8235a6
488782d3f1e759da2d32b4e82dbf55b96c431244
refs/heads/master
2021-05-11T03:15:16.810035
2016-02-06T06:19:18
2016-02-06T06:19:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,429
py
""" A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand operation which turns the water at position (row, col) into a land. Given a list of positions to operate, count the number of islands after each addLand operation. An island is surrounded by water and is formed by connec...
[ "anthonyjin0619@gmail.com" ]
anthonyjin0619@gmail.com
8b5353bb413efa3cbabe1730e3767936265568a8
0d0efed91a1e320509a7625bd72ebea1b64fc95b
/numpy_learn/5_numpy_function.py
0fc81c094aa3704f8098fde5e9b67f07f7783576
[]
no_license
starryrbs/python_ai
ed74a3c2d53378b47b2be910d97255f2706fd25e
80f8fd361d7b366ba0607417f0272bbaa3672e51
refs/heads/master
2020-04-24T03:48:52.260392
2019-02-20T13:56:42
2019-02-20T13:56:42
171,681,894
0
0
null
null
null
null
UTF-8
Python
false
false
4,783
py
import numpy as np # numpy的随机数函数 # numpy的random子库:np.random.*,主要有np.random.rand() np.random.randn() np.random.randint() # rand(d0,d1,d2,……,dn) : 根据d0-dn创建随机数组,浮点数,范围是[0,1),均匀分布 a = np.random.rand(2, 3, 4) print(a) """ [[[0.4506612 0.5296636 0.9747625 0.90105177] [0.25850117 0.90704491 0.87144252 0.004189...
[ "1322096624@qq.com" ]
1322096624@qq.com
6aec87a1fbe7be776d760cf637c53614801b725b
35286efd76814a1f3bc05da07f2968d05737c238
/esim/test.py
b013aa69540a306acd2cfacf63915c5ba49b3226
[ "Apache-2.0" ]
permissive
jiniaoxu/text_matching
ac41c7de8f66f61a6958a35dfd4584539cd97c51
154de91000e8677703192cf5eae49fc6c3c09eea
refs/heads/master
2020-06-04T05:45:09.320991
2019-06-13T02:50:54
2019-06-13T02:50:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), '../')) from esim.graph import Graph import tensorflow as tf from utils.load_data import load_data os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE" os.environ['CUDA_VISIBLE_DEVICES'] = '2' p, h, y = load_data('ccb/test.csv', data_size=1000) m...
[ "zjiuzhou@gmail.com" ]
zjiuzhou@gmail.com
561107764d55ee75983f3adc71f5cf85b27d5ea0
5a45981c89d0d9c0f2e9453abdefc333deb53e80
/nanodet/model/fpn/fpn.py
b031c6c81b0d7eacf7b045c53975dc5b07aa5c94
[ "Apache-2.0" ]
permissive
zhiqwang/nanodet
fd0b2e9c4badf492649aef7c3b397394c3110d1d
dd94177c0cb411ee21f4fc4ebc2ef01647e64823
refs/heads/main
2023-03-17T12:23:12.788037
2021-03-15T12:00:19
2021-03-15T12:00:19
348,642,567
2
0
Apache-2.0
2021-03-17T09:01:43
2021-03-17T09:01:43
null
UTF-8
Python
false
false
3,241
py
# Modification 2020 RangiLyu # Copyright 2018-2019 Open-MMLab. # 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 applicabl...
[ "lyuchqi@gmail.com" ]
lyuchqi@gmail.com
f1b6f23525382617a5501166f87ecca57e0d62c3
938a496fe78d5538af94017c78a11615a8498682
/algorithms/401-500/442.find-all-duplicates-in-an-array.py
6a7dfa1426ec528b0bb7cf1b4da44bb4ceb85ca5
[]
no_license
huilizhou/Leetcode-pyhton
261280044d15d0baeb227248ade675177efdb297
6ae85bf79c5a21735e3c245c0c256f29c1c60926
refs/heads/master
2020-03-28T15:57:52.762162
2019-11-26T06:14:13
2019-11-26T06:14:13
148,644,059
8
1
null
null
null
null
UTF-8
Python
false
false
752
py
# 数组中重复的数据 class Solution(object): def findDuplicates(self, nums): """ :type nums: List[int] :rtype: List[int] """ # 我的写法,不合题意。时间复杂度上 # dic = {} # res = [] # for i in nums: # dic[i] = dic.get(i, 0) + 1 # if dic[i] > 1: #...
[ "2540278344@qq.com" ]
2540278344@qq.com
f2b3256c22467e1b32dda229247fffda1cde9b95
e3bb63f93e36aab4a78356ba9d0e82f935325906
/bitmovin/resources/models/manifests/hls/vtt_media.py
78827f4ae4353e744ea3c2459772045c4d003fa8
[ "Unlicense" ]
permissive
camberbridge/bitmovin-python
1668367980df49f9088b93e4b6764563cbdb8bcf
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
refs/heads/master
2020-04-09T17:51:46.786389
2018-11-30T14:46:34
2018-11-30T14:46:34
160,493,890
0
0
Unlicense
2018-12-05T09:31:18
2018-12-05T09:31:17
null
UTF-8
Python
false
false
1,259
py
from .abstract_media import AbstractMedia class VttMedia(AbstractMedia): def __init__(self, name, group_id, vtt_url, language=None, assoc_language=None, is_default=None, autoselect=None, characteristics=None, id_=None): super().__init__(id_=id_, name=name, group_id=group_id, language=lan...
[ "dominic.miglar@netunix.at" ]
dominic.miglar@netunix.at
3c32af0c8c3dd971d0aaa4bddbac2f32bc78ea47
93d361d1cfaf5065aada52ff53833b67302c2b1c
/project/urls.py
9cef54d5038b91c04d21c889fda0d9087dcbd3ed
[]
no_license
append-knowledge/restapi-with-jwt-token
0fe573cd45633829645544447f66e6d6b43458ad
fbd276fb38cbd687253176b1dd96f07e16707dfd
refs/heads/master
2023-08-27T02:55:20.826945
2021-10-09T18:33:52
2021-10-09T18:33:52
415,391,422
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
from django.urls import path from project import views urlpatterns=[ path('accounts/signup',views.SignUpview.as_view(),name='signup'), path('accounts/signin',views.SignInView.as_view(),name='signin'), path('accounts/signout',views.SignOutView.as_view(),name='logout'), path('accounts/home',views.HomeVie...
[ "lijojose95@gmail.com" ]
lijojose95@gmail.com
94792a1bda13eac1d3f97a44481616c63e24d376
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/1642.py
c31871167442ed89cb0e8fb17031677d335e0e83
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,477
py
#------------------------------------------------------------------------------- # Name: module1 # Purpose: # # Author: Nishant # # Created: 12-04-2014 # Copyright: (c) Nishant 2014 # Licence: <your licence> #------------------------------------------------------------------------------- ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
b05399a6ff94cb5efa0799a162c6431e21c5440a
e68a40e90c782edae9d8f89b827038cdc69933c4
/res_bw/scripts/common/lib/plat-mac/carbon/carbonevt.py
a403e280d89920be14e1e2e9b2990efb37dd6195
[]
no_license
webiumsk/WOT-0.9.16
2486f8b632206b992232b59d1a50c770c137ad7d
71813222818d33e73e414e66daa743bd7701492e
refs/heads/master
2021-01-10T23:12:33.539240
2016-10-11T21:00:57
2016-10-11T21:00:57
70,634,922
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
372
py
# 2016.10.11 22:21:54 Střední Evropa (letní čas) # Embedded file name: scripts/common/Lib/plat-mac/Carbon/CarbonEvt.py from _CarbonEvt import * # okay decompyling c:\Users\PC\wotsources\files\originals\res_bw\scripts\common\lib\plat-mac\carbon\carbonevt.pyc # decompiled 1 files: 1 okay, 0 failed, 0 verify failed # 201...
[ "info@webium.sk" ]
info@webium.sk
7331db6bbc26b8c2088cca46dffdc7622db5ffc5
aa15002c5316b4c7e0a9563a40826057729e0b13
/tensorflow/python/keras/layers/preprocessing/table_utils.py
f5397da1f3eb482547e40b4ab293d3051753f429
[ "Apache-2.0" ]
permissive
kkimdev/tensorflow
8238c5594ae44f084725ddf9b34d6d41645d4072
2fb75db6ad4f4a7f01ef4755b96b49f8eb6108db
refs/heads/master
2020-07-07T18:09:40.662883
2020-05-14T18:59:11
2020-05-14T19:05:05
203,429,154
0
0
Apache-2.0
2019-08-20T18:07:46
2019-08-20T18:07:46
null
UTF-8
Python
false
false
7,427
py
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
ae2f3de1b7eacdc7cfaca05fea27de5ee8f08410
da1d21bb8d0760bfba61cd5d9800400f928868aa
/misc/scripts/category_transformation_001.py
0226537d27ec40ac6726d5b97eb9d427f608ba0e
[]
no_license
biznixcn/WR
28e6a5d10f53a0bfe70abc3a081c0bf5a5457596
5650fbe59f8dfef836503b8092080f06dd214c2c
refs/heads/master
2021-01-20T23:53:52.887225
2014-05-13T02:00:33
2014-05-13T02:00:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
724
py
# -*- coding: utf-8 -*- from circuits.models import Circuit from circuits.utils import CircuitCategory """ Transformaciones Literary + Culture + Music + Art + Academic & Education => Arts & Culture 3 4 8 10 19 => 4 Lifestyle + Green + Fashion + Design + Technology + Busi...
[ "mbc@Mathiass-MacBook-Pro.local" ]
mbc@Mathiass-MacBook-Pro.local
8c5db1946658ab443d7300038473c82702e1de90
04125b74273ad8b648343691565ab0cd6e25fa50
/image_comp_test.py
b32b911b4decb827e8360a480808f031846c8d3a
[]
no_license
alpha0080/spineToolAdv
32918fa10b47ec9f19586b8878b243afd9dae945
c394e382502c11fb2b19f86f1e6352dee76444b5
refs/heads/master
2021-07-25T09:10:38.883564
2018-12-11T00:56:12
2018-12-11T00:56:12
142,319,584
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
import os, math,time try: sys.path.append("C:/Program Files/Pixar/RenderManProServer-22.1/lib/python2.7/Libs/ite-packages") #sys.path.append("C:/Program Files/Pixar/RenderManProServer-21.7/lib/python2.7/Lib/site-packages") import ice except: pass import ice max_frames_row = 10.0 frames = [] ti...
[ "alpha@mail.chungyo.net" ]
alpha@mail.chungyo.net