blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73c51bd8b69ff04900fb067a2c58ac2d9905d963 | 5b34a971b0c0e81fd7fbb85985ac953ac74438bd | /data_centre/config.py | cb5d3fbd6622dbdf288ecfc6cebdcf24c37f87bd | [] | no_license | smellycats/SX-DataCentre | e6c90395ae1a6f3cf03702603480b705b0872eca | c906e29f42008d96b6abe677ded267aa033cb63e | refs/heads/master | 2021-01-10T03:24:36.887224 | 2015-06-06T18:59:59 | 2015-06-06T18:59:59 | 36,661,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | # -*- coding: utf-8 -*-
DEBUG = False
# 版本号
VERSION = '0.1.0'
BASEPATH = 'C:\\'
# 盘符
DEVICE = 'D:\\'
MAX_CONTENT_LENGTH = 16 * 1024
# peewee数据库
DATABASE = 'datacentre.db'
SQLALCHEMY_DATABASE_URI = 'sqlite:///test.db'
SQLALCHEMY_BINDS = {}
| [
"smellycat2014@foxmail.com"
] | smellycat2014@foxmail.com |
b21b1ecc78edb9f29e15e814a9fa1ebee5c747de | 9cf434b6ee59ab22496ee031fb4ab145bbaff1a2 | /tranque_v1.5.1_source/backend-v1.5.1/src/targets/management/commands/graphtimeseries.py | 6b163bc221f59a4785d54702cbf2d8878b216a25 | [] | no_license | oliverhernandezmoreno/SourcesOH | f2ff1a5e3377f0ac1fb8b3153d99d0ee703700b7 | 5d9ca5ab1caceafd4d11207139c9e56210156ef8 | refs/heads/master | 2023-01-05T02:51:25.172103 | 2020-08-27T14:39:34 | 2020-08-27T14:39:34 | 64,422,812 | 0 | 1 | null | 2022-12-30T17:25:10 | 2016-07-28T19:33:44 | JavaScript | UTF-8 | Python | false | false | 1,021 | py | import sys
from django.core.management.base import BaseCommand
from targets.graphs import graph
from targets.models import Timeseries
class Command(BaseCommand):
help = "Builds an SVG dependency or influence graph for the given time series"
def add_arguments(self, parser):
parser.add_argument(
... | [
"oliverhernandezmoreno@gmail.com"
] | oliverhernandezmoreno@gmail.com |
e7a588bcdf4dedf184496bd375cc5267abf5c1d7 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/web/v20200601/list_web_app_metadata_slot.py | 87bde52cef62a06bbe99e14134e7d6b031a75f45 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 3,838 | 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, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | morrell.noreply@github.com |
6a11fb4392ec4779b7c193f29c0bed1461ef02d6 | b0c044d7dafc84ff79b8ebeea496d4b6b66a6c94 | /virtual/bin/django-admin | 45105c91120fc3c943d1ec9a339ebc7d8aea1b28 | [
"MIT"
] | permissive | amiinegal/Awwards | 625e27e5c78ed07333a625d0a3d94ed58f03f064 | dd667a1ffbd3fa9b90c8282d44d497b3a9d0c1ed | refs/heads/master | 2021-09-08T11:41:16.850371 | 2019-05-30T06:07:16 | 2019-05-30T06:07:16 | 188,541,252 | 0 | 0 | null | 2021-09-08T01:01:59 | 2019-05-25T08:33:52 | Python | UTF-8 | Python | false | false | 320 | #!/home/amin/Documents/moringa-school-projects/Awards/virtual/bin/python
# -*- 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(execute_from_command_line())
| [
"you@example.com"
] | you@example.com | |
2379bb1eb30b3e2648b56ca065825042a09cc04f | a6bbf05116045ab187a9fa8e9cef37450459f663 | /tests/util/test_deltaMag.py | 865a620584b2cc50a5ca5128ff89a3706dc4aff6 | [
"BSD-3-Clause"
] | permissive | dsavransky/EXOSIMS | 0d9a5f40ebde07a2b6f11921188cc03ff440e2d1 | f3518b10f66786edf7b1066b4a3a4ee1b2818ff7 | refs/heads/master | 2023-08-18T20:46:13.141551 | 2023-08-14T16:21:25 | 2023-08-14T16:21:25 | 36,674,772 | 22 | 30 | BSD-3-Clause | 2023-09-06T20:10:10 | 2015-06-01T16:51:37 | Python | UTF-8 | Python | false | false | 1,261 | py | import unittest
from astropy import units as u
from astropy import constants as const
from EXOSIMS.util.deltaMag import deltaMag
import numpy as np
r"""DeltaMag module unit tests
Paul Nunez, JPL, Aug. 2016
"""
class Test_deltaMag(unittest.TestCase):
def test1(self):
r"""Testing some limiting cases."""
... | [
"dsavransky@gmail.com"
] | dsavransky@gmail.com |
486b2cd1f5aaa4775dae0b9ba4a4bcce100b418c | 71d3632c19ada5585223d4800f681718af0e1f87 | /startcamp/day04/dict.py | 78b1d49372a9f7fefe971e0bb2cbad8af2f8f9d3 | [] | no_license | hyunwoo-song/TOT | 640433b909913098699ff517698e71a1b8661cff | 76a8c18af942d9ed3d636fcec35001ae70b6b8d2 | refs/heads/master | 2023-01-05T08:11:38.858134 | 2019-08-14T08:53:23 | 2019-08-14T08:53:23 | 162,208,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | # 1. 딕셔너리 만들기
lunch = {
'중국집':'02-1123-4544',
'양식집':'053-216-4545',
'한식집':'054-451-5452',
}
dinner = dict(중국집='02-1233-4544') #딕셔너리로 변환시켜주는 내장함수 # key값은 문자열이 아닌 양쪽 따옴표 없이 기입
# int()
# list()
# 2. 딕셔너리 내용 추가하기
lunch['분식집'] = '053-123-4567'
# 3. 딕셔너리 내용 가져오기
print(lunch['중국집']) #=> 02-1123-4544
idol = {
... | [
"gerrar486@gmail.com"
] | gerrar486@gmail.com |
91d308bf209078a3a113be54a90ee3b8c66a600b | 0bc399e4054192b901263844d481fb27ee391aa9 | /test/test_asset_reference_impl.py | ca97e5e9eef68b08f77dc6a53086c28eaafd3be4 | [] | no_license | chorvathdev/collibra-core | 342509234fc8c91a3bcf3b91a54444c7c313ceed | db7ae3fb57df088ce3512801ba7a2bfccd0508c5 | refs/heads/master | 2022-12-11T19:33:29.487697 | 2020-08-31T23:29:46 | 2020-08-31T23:29:46 | 291,847,090 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | # coding: utf-8
"""
Collibra Data Governance Center Core API
<p>The Core REST API allows you to create your own integrations with Collibra Data Governance Center.</p><p><i>Create custom applications to help users get access to the right data.</i></p> # noqa: E501
The version of the OpenAPI document: 2.0... | [
"chorvath@sundt.com"
] | chorvath@sundt.com |
40f9f78f3f331d23daeab98a70c4249e0f16f68c | 8a30aaa2693aff1d0c571fdd8143b763126fc144 | /test_case/test_atp_base_api.py | 2ab59fd5d984d8e8df2c8784fd691562c9a757f0 | [
"Apache-2.0"
] | permissive | gitjayzhen/AppiumTestProject | 4ddc23df9367d2100dbe2efe6de0738a5bb69807 | 1b143606a8c92eab32cbc4034a6031faa9954a20 | refs/heads/master | 2022-09-13T19:50:22.460651 | 2022-08-26T13:17:18 | 2022-08-26T13:17:18 | 84,637,177 | 39 | 27 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | #!/usr/bin/env python
# -*-coding=utf8 -*-
"""
@version: v1.0
@author: jayzhen
@license: Apache Licence
@contact: jayzhen_testing@163.com
@site: http://blog.csdn.net/u013948858
@software: PyCharm
"""
import unittest
from appium.webdriver.common.mobileby import MobileBy
from framework.core.appiumapi.AppiumBaseApi impo... | [
"jayzhen_testing@163.com"
] | jayzhen_testing@163.com |
4ad742a8ee70daf9de442e4ca3fd397c4d4f4df2 | d03ae7fc0051dcbbb48719dee1f1d9279f43495a | /accounts/models.py | fec569f9d1baaa0753ebbdedfebd971da71ee4f4 | [] | no_license | joegotflow83/student-platform | 5745a9bbc8ea7dc734a4fa827015228e43d44103 | af2d79ddb96dcdfcd90c37604081ab5264936edd | refs/heads/master | 2021-01-18T19:55:08.474108 | 2016-07-13T16:32:14 | 2016-07-13T16:32:14 | 61,209,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from django.db import models
from django.contrib.auth.models import User
class UserProfile(models.Model):
user = models.OneToOneField(User)
teacher = models.BooleanField(default=False)
| [
"joe@absolutod.com"
] | joe@absolutod.com |
9d156e1dd428a6bac3a95ee5369e795a4086daae | ed84c6af60ff708b913ff994786f71636ad4dcf3 | /muspy/processors.py | 36b4746899150ae12f39b94568729a27a31264a2 | [
"MIT"
] | permissive | LiangHsia/muspy | 755ef215bbf824e1fed2162caff32c2a9d12aea4 | 89af9f1b29c7ecd1bdbe634c7d7e4133bb24d9ad | refs/heads/main | 2023-02-12T13:54:51.255319 | 2021-01-13T07:23:41 | 2021-01-13T07:23:41 | 329,233,478 | 1 | 0 | MIT | 2021-01-13T07:54:07 | 2021-01-13T07:54:07 | null | UTF-8 | Python | false | false | 12,606 | py | """Representation processors.
This module defines the processors for commonly used representations.
Classes
-------
- NoteRepresentationProcessor
- EventRepresentationProcessor
- PianoRollRepresentationProcessor
- PitchRepresentationProcessor
"""
from typing import Union
import numpy as np
from numpy import ndarra... | [
"salu.hwdong@gmail.com"
] | salu.hwdong@gmail.com |
47fc4318079f68489199ea974b8d5692f3d07e23 | a63590f247d914b6993f4e72a5c27a439344d12a | /env/lib/python3.7/base64.py | 12b1ac90f30712edb553d0e1635347dc5b003ccc | [] | no_license | wgcv/Social-Media-Analyze-Election-Guayaquil | e6c65e68e6f54a11aadad9d1765568521df9a20e | 784e6e4c94552307fefdf85367bb6a793ae878c3 | refs/heads/master | 2020-05-09T20:33:58.585077 | 2019-05-11T16:46:43 | 2019-05-11T16:46:43 | 181,410,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | /Users/wgcv/anaconda3/lib/python3.7/base64.py | [
"gstavocevallos@gmail.com"
] | gstavocevallos@gmail.com |
908b38a0570d86f366db59768584876ac26ae5b1 | b8d700f4676ffee4c2af363eca0e4b92764110aa | /apitest/migrations/0021_apiinfo_level.py | 51b97430edcb7020ae62fcd9c456894424305572 | [] | no_license | linzhifu/autotest | c43614ce94fe4553c3769d5495fd4cb7e45b8d44 | e294172ed3a527e0c3a5a0840419c3750215d6db | refs/heads/master | 2020-04-25T20:22:10.075897 | 2019-03-09T11:45:18 | 2019-03-09T11:45:18 | 173,048,767 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 2.1.2 on 2019-01-17 06:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('apitest', '0020_apis_level'),
]
operations = [
migrations.AddField(
model_name='apiinfo',
name='level',
... | [
"leo.lin@longsys.com"
] | leo.lin@longsys.com |
4cf3a799237d88a704dbfe702727c12646104cfe | c6d4fa98b739a64bb55a8750b4aecd0fc0b105fd | /ScanPi/QRbytes2/402.py | 0d23c9c4eb96f927eb4d97ebf4ce95e612c9ebef | [] | no_license | NUSTEM-UK/Heart-of-Maker-Faire | de2c2f223c76f54a8b4c460530e56a5c74b65ca3 | fa5a1661c63dac3ae982ed080d80d8da0480ed4e | refs/heads/master | 2021-06-18T13:14:38.204811 | 2017-07-18T13:47:49 | 2017-07-18T13:47:49 | 73,701,984 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,746 | py | data = [
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, ... | [
"lists@quernstone.com"
] | lists@quernstone.com |
87d7242a8ed929e8ac4d599222003bad44505a1e | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.ZAM/Mono_8/pdf_to_json_test_Latn.ZAM_Mono_8.py | 226000f23d55b2a3d3b10180ee136f7c24074ea3 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.ZAM/Mono_8/udhr_Latn.ZAM_Mono_8.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
e0ad81782631edecca41fafdd6eb99641a9251db | 9a73c54526082c27e5c5d88bd54950a589233658 | /new/test.py | 18418f5cc841781da7a12b27967ed44b343f527f | [
"Apache-2.0"
] | permissive | archu2020/python-2 | af78b65ed7f3ad17f71d4f8a97c002df86908298 | 19c626ca9fd37168db8a7ac075fd80c8e2971313 | refs/heads/master | 2022-12-27T12:08:44.316760 | 2020-10-02T15:46:27 | 2020-10-02T15:46:27 | 300,660,839 | 0 | 0 | Apache-2.0 | 2020-10-02T15:46:28 | 2020-10-02T15:37:58 | Python | UTF-8 | Python | false | false | 135 | py | import requests
newurl = "http://course.wyu.cn/xsyzc/eoexam/main.asp"
r = requests.get(newurl)
r.encoding = "utf8"
print(r.headers) | [
"767786685@qq.com"
] | 767786685@qq.com |
e5fade852be695e547e01b9b9aeffc7abc8860b3 | 4a0348ccb890c73ebd88feafafc279af26e05f25 | /django/django_fullstack/TV shows - Copy/app/migrations/0001_initial.py | 787131508f18c7f86c55311570320640186ddfee | [] | no_license | wadeeeawwad/python_stack | 00936837103b9f78f66961d88ae3a6233adbbea3 | 6d2c3712c40b035e0d43cc7a27b2e2f48d4a8281 | refs/heads/master | 2023-07-11T14:59:02.617899 | 2021-08-23T11:37:15 | 2021-08-23T11:37:15 | 364,533,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # Generated by Django 2.2.4 on 2021-05-25 13:31
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Shows',
fields=[
('id', models.AutoField(au... | [
"wadee_awwad@hotmail.com"
] | wadee_awwad@hotmail.com |
b57d74fdbd7f12e9c8ed907186109e26b5c30c11 | 691d3f3e04d354e11772335064f33245e1ed8c28 | /lib/galaxy/webapps/reports/controllers/users.py | e35c1811e98f5be3e25d2d11b80c578879c40f9b | [
"CC-BY-2.5",
"MIT"
] | permissive | dbcls/dbcls-galaxy | 934a27cc13663549d5208158fc0b2821609399a8 | 6142165ef27f6a02aee42f26e0b94fed67ecc896 | refs/heads/master | 2016-09-05T22:53:27.553419 | 2009-09-09T06:35:28 | 2009-09-09T06:35:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,508 | py | from datetime import *
from time import strftime
import calendar, operator
from galaxy.webapps.reports.base.controller import *
import galaxy.model
from galaxy.model.orm import *
import pkg_resources
pkg_resources.require( "SQLAlchemy >= 0.4" )
import sqlalchemy as sa
import logging
log = logging.getLogger( __name__ )
... | [
"h-morita@esm.co.jp"
] | h-morita@esm.co.jp |
f40ca526be9c6f99ecf1bed04f97ca801ccc6d4f | e0980f704a573894350e285f66f4cf390837238e | /.history/menus/wagtail_hooks_20201030120819.py | 5f29276e2e5ea1956777245267a0852e41c719eb | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | """ Kategoria zostanie dodana w pasku bocznym u admina"""
from wagtail.contrib.modeladmin.options import ModelAdmin, modeladmin_register
from .models import Menu
class MenuAdmin(ModelAdmin):
model = Menu
menu_lable = 'Menus'
menu_icon = 'list-ul'
menu_order = 200
add_to | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
5361d67e653226ea6373e193da70f9c69ec58f10 | ad846a63f010b808a72568c00de016fbe86d6c35 | /algotradingenv/lib/python3.8/site-packages/IPython/lib/backgroundjobs.py | 926808e4128499fccf1789706caf323ce7492340 | [] | no_license | krishansinghal29/algotrade | 74ee8b1c9113812b1c7c00ded95d966791cf76f5 | 756bc2e3909558e9ae8b2243bb4dabc530f12dde | refs/heads/master | 2023-06-02T01:53:24.924672 | 2021-06-10T09:17:55 | 2021-06-10T09:17:55 | 375,641,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,495 | py | # -*- coding: utf-8 -*-
"""Manage background (threaded) jobs conveniently from an interactive shell.
This module provides a BackgroundJobManager class. This is the main class
meant for public usage, it implements an object which can create and manage
new background jobs.
It also provides the actual job classes manag... | [
"krishansinghal29@gmail.com"
] | krishansinghal29@gmail.com |
48c47556531ba93d22cb2863222ddf34f652bf95 | ed6625148299e759f39359db9f932dd391b8e86f | /personal_env/lib/python3.8/site-packages/astroid/brain/brain_threading.py | 72b75a1fa210fc39d59da1549492475e19a67b31 | [
"MIT"
] | permissive | jestinmwilson/personal-website | 128c4717b21fa6fff9df8295b1137f32bbe44b55 | 6e47a7f33ed3b1ca5c1d42c89c5380d22992ed74 | refs/heads/main | 2023-08-28T11:31:07.916714 | 2021-10-14T09:41:13 | 2021-10-14T09:41:13 | 414,847,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2016, 2018-2019 Claudiu Popa <pcmanticore@gmail.com>
# Copyright (c) 2017 Łukasz Rogalski <rogalski.91@gmail.com>
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER... | [
"noreply@github.com"
] | jestinmwilson.noreply@github.com |
0c53266a0eb2cac276c42f0d439c51c281b90e73 | 8e5375b902a538e8f706c78ec1eac230b78286dc | /ryu/services/protocols/bgp/peer.py | 2baf4a880619651fd3b4e082afe2de42b73d4c49 | [
"Apache-2.0"
] | permissive | javarange/ryu | 1107f59f1661784a57fbbbbe17bca4ba65643e87 | 49aa2ff9ae69187f04730e7dcd8d2a3d22e01b0e | refs/heads/master | 2021-01-22T13:12:48.290190 | 2014-10-08T11:43:36 | 2014-10-10T01:25:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82,782 | py | # Copyright (C) 2014 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fujita.tomonori@lab.ntt.co.jp"
] | fujita.tomonori@lab.ntt.co.jp |
eb4a60d57ce9cf03b6e9bc13d2387ee5b788f233 | 3e1be4d78e1121b320d6680a72ec599076c9bfcd | /sort_procedures.py | fb7e3b36818955687fda45f23b17e82e46bb87cd | [
"MIT"
] | permissive | mirefek/neur-rec-seq | 4b4643117cb0812ddcc55bb6debecc04f6d47f01 | 6e0ff723b01e290f1da7bb3aabed65c494a875e8 | refs/heads/master | 2022-11-19T02:25:37.079058 | 2020-07-02T15:13:37 | 2020-07-02T15:13:37 | 269,418,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,171 | py | import numpy as np
class ArrayEnv:
def __init__(self, data, emulate_swap = False):
self.start_data = list(data)
self.emulate_swap = emulate_swap
self.reset()
def swap(self, i0, i1):
if self.emulate_swap: # assumes i0 != i1, i0, i1 are non-empty
self.stack.push(i0)
... | [
"mirek@olsak.net"
] | mirek@olsak.net |
ed205ba8100ad7134b43d0159e10ecacf28c6822 | 705e128b8f8fc7d6b4cc4be47ddb574d82970baa | /eventposter/event_obj.py | b7a663d1b89e63ea91c2e41a9ff26f9ee8a96a9e | [
"MIT"
] | permissive | Twentysix26/Trusty-cogs | 54b538e06d08717e794fd0477d9a76edd43042d4 | b00877fdf5d873f65219bb749e38bab74a38f443 | refs/heads/master | 2020-11-27T11:32:12.190931 | 2019-12-18T23:22:45 | 2019-12-18T23:22:45 | 229,422,105 | 0 | 0 | MIT | 2019-12-21T12:08:20 | 2019-12-21T12:08:20 | null | UTF-8 | Python | false | false | 2,113 | py | import discord
import re
from typing import List
from discord.ext.commands.converter import Converter
from discord.ext.commands.errors import BadArgument
IMAGE_LINKS = re.compile(r"(http[s]?:\/\/[^\"\']*\.(?:png|jpg|jpeg|gif|png))")
class Event:
hoster: discord.Member
members: List[discord.Member]
even... | [
"TrustyJAID@gmail.com"
] | TrustyJAID@gmail.com |
e83a4fe358322366177261fa1a30f18d2118bbe9 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/maximum-profit-from-trading-stocks.py | 03af6e7fdda7b2f224f48dc9e50f67c9c2d6d80c | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 1,123 | py | # Time: O(n * b)
# Space: O(b)
import itertools
# dp, optimized from solution2
class Solution(object):
def maximumProfit(self, present, future, budget):
"""
:type present: List[int]
:type future: List[int]
:type budget: int
:rtype: int
"""
dp = [0]*(budget... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
63e53f5271aa3b63874387113fa4331cbd4f22b7 | 033ebe500d43e6af073abb634c463d7e276e04e5 | /evolution/evolution_04/test/tools.py | f257919040557da8bcf1490d446ab32d54d8b09f | [
"MIT"
] | permissive | lanzhiwang/lanzw_bottle | f3095cd6cf464b1e29e1b330a20bb50978be7b85 | 482284dc5b7c66ef89ef1557abc9420d41ea35c6 | refs/heads/master | 2022-12-07T07:10:40.875850 | 2020-08-30T13:40:55 | 2020-08-30T13:40:55 | 199,774,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,015 | py | # -*- coding: utf-8 -*-
import bottle
import threading
import urllib
import urllib2
import sys
import time
import unittest
import wsgiref
import wsgiref.simple_server
import wsgiref.util
from StringIO import StringIO
try:
from io import BytesIO
except:
pass
import mimetypes
import uuid
class MethodRequest(urll... | [
"hzhilamp@163.com"
] | hzhilamp@163.com |
c2265d13d8ec7d7ac7d389e37c0bc988d835106d | 437e905d8c214dc25c559b1dc03eaf9f0c85326f | /is28/stanislavchuk28/Python/lab4/zad1/11.py | 9fc24f74941cc3e609ffd749242aa0002066c0a1 | [] | no_license | AnatolyDomrachev/karantin | 542ca22c275e39ef3491b1c0d9838e922423b5a9 | 0d9f60207e80305eb713fd43774e911fdbb9fbad | refs/heads/master | 2021-03-29T03:42:43.954727 | 2020-05-27T13:24:36 | 2020-05-27T13:24:36 | 247,916,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | f0 = 1
f1 = 1
f = 1
n = int(input("n: "))
for x in range(n-1):
f = f0 + f1
f0 = f1
f1 = f
print(f)
| [
"you@example.com"
] | you@example.com |
09343ed27b5a010ced1b5cbcedb38685b73f8706 | 91acf428043e39323e6879861676d6528ef39419 | /banques/migrations/0005_auto_20210227_1459.py | b3b4ef433b133e72922d297c55c1881b5070917c | [] | no_license | Zaenma/paiement-django | dec9fca85b2cad0c62b7ec3fa416b34420dea31f | e361873d4a1771403f008e768c76e374bbc8da2c | refs/heads/main | 2023-03-19T07:31:53.409214 | 2021-03-15T23:47:03 | 2021-03-15T23:47:03 | 311,372,216 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # Generated by Django 3.1.7 on 2021-02-28 01:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('banques', '0004_auto_20210226_2103'),
]
operations = [
migrations.AlterModelOptions(
name='banque',
options={'verbos... | [
"zaenma.halidisalim@gmail.com"
] | zaenma.halidisalim@gmail.com |
4c9964839faa7dfbc8dced369876c457b8405487 | b89474ef844f3b860b0027e46206ae0aa911dfd3 | /Programming Funcamentals Using Python/Day 8/word_frequency.py | 8e815554b55172b9183902fbec897ef9fe13544d | [] | no_license | AgentT30/InfyTq-Foundation_Courses | 6e2574fca0dc5ff1126d1e910d5086e695921dce | a676478df0c083839ebe56ee3dcb9fffd2307390 | refs/heads/master | 2022-12-01T11:28:06.052658 | 2020-08-13T04:41:34 | 2020-08-13T04:41:34 | 287,181,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | def max_frequency_word_counter(data):
word = ""
frequency = 0
count = {}
# start writing your code here
# Populate the variables: word and frequency
word_list = data.lower().split(" ")
for i in word_list:
count.setdefault(i, 0)
count[i] = count[i]+1
word_count = []
... | [
"cthekkunja304@gmail.com"
] | cthekkunja304@gmail.com |
aea803f032b9bc2c179f5c099d25fe9c665448ae | 372e299709a70e30a8487dbaa669a4f572d99df0 | /2017/src/day_01/part_1.py | 327120f285d23273df12be8f3d0fa3488c60564b | [] | no_license | mkierc/advent-of-code | e806e30cbed5bb8224b28583b8943c58ba0f80e0 | f5115403fcff0082e1cd33308a0259b234c58229 | refs/heads/master | 2021-12-25T05:43:24.673107 | 2021-12-17T07:56:20 | 2021-12-17T07:56:20 | 76,584,172 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | test_list_1 = [1, 1, 2, 2]
test_list_2 = [1, 1, 1, 1]
test_list_3 = [1, 2, 3, 4]
test_list_4 = [9, 1, 2, 1, 2, 1, 2, 9]
number_list = []
with open("data.txt") as file:
input_data = str(file.readline())
for character in input_data:
number_list.append(int(character))
def solve_captcha(numbers):
ca... | [
"urban.pl@gmail.com"
] | urban.pl@gmail.com |
15a0b7c0aa71482aa702f5a5cd7aa08309b58ebf | 3fb0ce33f00b96ae3808a32da44de3e887434afb | /.提出一覧/AtCoder/past202010-2/a/main.py | 4956a6bd3c1f820b463a7b91db75c7e844d3b1ce | [] | no_license | Yukikazari/kyoupuro | ca3d74d8db024b1988cd0ff00bf069ab739783d7 | 343de455c4344dbcfa4524b492f7f6205c9db26f | refs/heads/master | 2023-02-21T01:53:52.403729 | 2021-01-27T03:55:01 | 2021-01-27T03:55:01 | 282,222,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | #!/usr/bin/env python3
#import
#import math
#import numpy as np
#= int(input())
#= input()
a, b, c = map(int, input().split())
if a < b < c or c < b < a:
print("B")
elif b < a < c or c < a < b:
print("A")
else:
print("C")
| [
"haya_nanakusa793@yahoo.co.jp"
] | haya_nanakusa793@yahoo.co.jp |
262154ccaa873e68d544353ebd3ff097820eaecf | ac89e5d51d0d15ffdecfde25985c28a2af9c2e43 | /tbaapiv3client/models/event_ranking_extra_stats_info.py | 14e1dbb214996c57e4bf250ffa883d030ef5a7cc | [] | no_license | TBA-API/tba-api-client-python | 20dc4a634be32926054ffc4c52b94027ee40ac7d | 4f6ded8fb4bf8f7896891a9aa778ce15a2ef720b | refs/heads/master | 2021-07-15T16:36:32.234217 | 2020-05-07T00:20:43 | 2020-05-07T00:20:43 | 134,112,743 | 4 | 8 | null | 2019-07-01T03:14:12 | 2018-05-20T02:13:45 | Python | UTF-8 | Python | false | false | 5,071 | py | # coding: utf-8
"""
The Blue Alliance API v3
# Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account... | [
"travis@example.org"
] | travis@example.org |
ace67c76c2dce23c3393a8dba793310e4c5384ea | e519a439558484ce85378d04d4b72d6ebf804e3d | /weather/local_settings.example.py | fb81a5924201265c9f0b9e16894cda2164e39ef6 | [] | no_license | kafesto/weather | 4467e191d18dc96f0633529e8f7f13f903e697a6 | 7e6a43f3bc5d35d6a765560c40b90c7188504ff5 | refs/heads/master | 2020-12-07T13:45:04.666849 | 2011-12-04T20:55:51 | 2011-12-04T20:55:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | DEBUG = True
SERVE_MEDIA = DEBUG
TEMPLATE_DEBUG = DEBUG
EMAIL_DEBUG = DEBUG
THUMBNAIL_DEBUG = DEBUG
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
| [
"george@ghickman.co.uk"
] | george@ghickman.co.uk |
c7a0721d58cbf5c912ecb520d4d746139ec8a60a | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/network/v20200701/get_bastion_host.py | 97024434195d235279ff5c36295a9cc5ca2d5eb0 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,724 | 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
from... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
8eeda13b16be5f769e3926e0cd125f9cf0287f80 | 9fbd973b159a06e3b583150a483bc11df22df9aa | /sparcur/blackfynn_api.py | 583bcab94db36566393170ecfda2f73b4e569bb1 | [
"MIT"
] | permissive | tmsincomb/sparc-curation | b8be719a2a013daca27a4be227d5f90663bf3d7d | e057002a1176edfce7a0cbf9d45d3aef7247c155 | refs/heads/master | 2020-06-10T04:36:44.767159 | 2019-06-17T21:30:20 | 2019-06-17T21:30:20 | 193,584,008 | 0 | 0 | MIT | 2019-06-24T21:36:10 | 2019-06-24T21:36:09 | null | UTF-8 | Python | false | false | 34,263 | py | """Accessing files via the blackfynn api
# Install these python packages.
``` bash
pip install blackfynn nibabel pydicom
git clone https://github.com/tgbugs/pyontutils.git
pushd pyontutils
python setup.py develop --user
ontutils devconfig --write
# you can edit ./pyontutils/devconfig.yaml to match your system if needs... | [
"tgbugs@gmail.com"
] | tgbugs@gmail.com |
053b609d1a395c56e50fcf1d0c19e4b36dcd1fa4 | 1729d732d2c8496f84e456cc897c71dd44bb671f | /pos_juice_bars/models/pos_config.py | f0940e4ac3f357ee1f5bf7c12d3224bba78967b8 | [] | no_license | Guobower/vapelife10 | aa3f90918fa70da72272be11054041afbbcc069c | f0f7c4545f8fb7bc91c06c7ec6e900e4b289ac5a | refs/heads/master | 2020-03-29T04:44:30.628377 | 2018-02-01T18:02:26 | 2018-02-01T18:02:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from openerp import models, fields, api, _
from odoo.tools import float_is_zero
class PosConfig(models.Model):
_inherit = "pos.config"
manufacturing_picking_type_id = fields.Many2one('stock.picking.type','Manufacturing Picking Type',domain=[('code','=','mrp_operation')]) | [
"shivam1111@gmail.com"
] | shivam1111@gmail.com |
82cea48b4ae65b924017268ae2661826590ce235 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_185/ch23_2019_09_03_02_03_52_878468.py | c6f71690aec6afb7d3060a367744c15a57dff66e | [] | 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 | 218 | py | def verifica_idade(idade):
if idade < 18:
resposta = "Não está liberado"
elif idade < 21:
resposta = "Liberado BRASIL"
else:
resposta = "Liberado EUA e BRASIL"
return resposta | [
"you@example.com"
] | you@example.com |
688657eeacf6404b6a2678bf8193dba63cd73c2d | 7a4649fa35a0306b120c76e448944ff48539c9cc | /08_arithmetics.py | b7e3c57098954c49c4898a7acfd5e29087b2ba84 | [] | no_license | sphilmoon/Python3_tutorial_mosh | 58ec9a1abdf801ccb1d88f85de56baa5f6fb4a7f | bb70de5bff7b4d26f58fe1dcdfd4ec4957631bd5 | refs/heads/main | 2023-01-24T17:51:56.181367 | 2020-12-06T10:15:00 | 2020-12-06T10:15:00 | 294,370,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | x = (10 + 3) * 2 ** 2
print(x)
x = (2+3)*10-3
print(x) | [
"sphilmoon@gmail.com"
] | sphilmoon@gmail.com |
8b70a9b4cb8bab0fec3d296d5d9b044430e23adc | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Fisher/trend_PolyTrend/cycle_0/ar_12/test_artificial_1024_Fisher_PolyTrend_0_12_100.py | bd7f714b00581d1a4559729eab72267ee3dbf5d1 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 269 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 0, transform = "Fisher", sigma = 0.0, exog_count = 100, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
87d20feb4c3526253e20c4ab938422ae96f7b1af | d6f3a0e9ce53f122f697ab5527dc7f69abd71e7c | /env/bin/wheel3 | 3adbd51aba8863a702a656f91c01ef4a72d81919 | [] | no_license | Beketx/Django | 556fa94fc184f33481dfd836b50a7101cad808f7 | 4dfaf0502c9a7519549091d2753996f3560ab630 | refs/heads/master | 2021-05-20T08:57:13.549873 | 2020-04-10T11:44:15 | 2020-04-10T11:44:15 | 252,209,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | #!/Users/beket/Desktop/rest_api_webdevblog/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"beketsk@gmail.com"
] | beketsk@gmail.com | |
40e41af2162034b24d7ae07f28382ff99266139e | 4bfea484f8aff142691e6dc1815b536b830046f5 | /utils/metric.py | 714717f7137a243d0af6cce3e94ce3e2cc740293 | [] | no_license | jionie/Bengaliai | 0659ed1263870d0780da281a3bebea5a1334e3d2 | 02b580dbb75f443d78c0f5bd6e4ff74e3cbbba71 | refs/heads/master | 2022-04-09T09:40:50.074119 | 2020-03-16T13:18:35 | 2020-03-16T13:18:35 | 241,447,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import numpy as np
import scipy as sp
import sklearn.metrics
def metric(y_pred, y_true):
return sklearn.metrics.recall_score(y_true, y_pred, average='macro')
def decode(prediction, class_map):
p0, p1, p2, p3 = prediction[0], prediction[1], prediction[2], prediction[3]
for b in range(p0.shape[0])... | [
"jionie@sjtu.edu.cn"
] | jionie@sjtu.edu.cn |
249d557019f9c977dde1bdbeced66a79e9dd28b5 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /ash/host/DEPS | 65db98d989e949c49d01d456585a9d917245a268 | [
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 444 | include_rules = [
"-ash",
"+ash/host",
"+ash/ime",
"+ash/ash_export.h",
"+ash/public/cpp/ash_switches.h",
]
specific_include_rules = {
"ash_window_tree_host.cc": [
"+ash/shell_port.h",
],
"ash_window_tree_host_platform.cc": [
"+ash/shell.h",
"+ash/shell_delegate.h",
# AshWindowTreeHostP... | [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com | |
4cba14dafb3f8e73ec5c4f10427ca5fc26faf1f7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03838/s188025848.py | 521c899ee6f16e16e6151de74753d16229de1fb0 | [] | 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 | 238 | py | x,y=map(int,input().split())
if y<0<x or x<0<y:
print(abs(abs(y)-abs(x))+1)
elif x<y and x!=0:
print(y-x)
elif y<x and x!=0 and y!=0:
print(x-y+2)
elif x<y and x==0:
print(y-x)
elif y<x and x==0 or y==0:
print(x-y+1)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
50a6bcc085664649f12f111bf9ab00d0c3e06ccd | fe12ea3373d39c21fcbf9d8e3e8593a082f7fdb0 | /Advanced_python_programs/prog20.2.py | 063bd358d837555afa436aed7f7d441ac90fadae | [] | no_license | venkatadri123/Python_Programs | 44c0d9d36ff3e77e73e16c02617cf08accd2aaf2 | b0910f8cc0e2689479b8631ec98d4a2c75c163a7 | refs/heads/master | 2022-03-16T09:30:55.629011 | 2022-02-12T06:09:47 | 2022-02-12T06:09:47 | 219,493,388 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # (20.2) Using try block and except ,finally block.
try:
print('Open the file')
a,b=[int(i) for i in input('enter two numbers:').split()]
c=a/b
except ZeroDivisionError:
print('division by 0 happent')
print('please do not input 0')
else:
print('result=',c)
finally:
print('close all files')
| [
"venkatadrimanubolu@gmail.com"
] | venkatadrimanubolu@gmail.com |
c24d4a1b91d190bd101114ffdcbb023cbef0f2d1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03632/s978065195.py | 50f8219ee9a627fa028ff68c3e2c26d66ca0f1e9 | [] | 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 | 96 | py | a,b,c,d= map(int,input().split())
e = min(b,d)-max(a,c)
if e>=0:
print(e)
else:
print(0) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
529aa158dff902692ff3b68680505c57ce900ad5 | d998c5fbbd02c1666862b8996639b8f34604a6eb | /dirigible/fts/tests/test_2616_RootPageIsDashboard.py | b1f571e1051ede8a8280a44188a16b6ed1bec830 | [
"MIT"
] | permissive | randfb/dirigible-spreadsheet | 668f8f341fd48add69937d9dc41353360ed4f08c | c771e9a391708f3b219248bf9974e05b1582fdd0 | refs/heads/master | 2020-04-14T02:49:44.123713 | 2017-04-13T06:51:44 | 2017-04-13T06:51:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Copyright (c) 2010 Resolver Systems Ltd.
# All Rights Reserved
#
from urlparse import urlparse, urlunparse
from functionaltest import FunctionalTest
class Test_2616_RootPageIsDashboard(FunctionalTest):
# The bulk of this was tested by changing the existing functional tests to reflect the new
# behaviour;... | [
"hjwp2@cantab.net"
] | hjwp2@cantab.net |
2771dd2c0acf441652c77061256c2eef3a9b205b | e12385c85e41d98bc3104f3e4dde22025a0b6365 | /umqtt/simple.py | 8a0aa53dd791ce5f1bc9b44985c32b937667cfb1 | [] | no_license | mchobby/esp8266-upy | 6ee046856ec03c900ebde594967dd50c5f0a8e21 | 75184da49e8578315a26bc42d9c3816ae5d5afe8 | refs/heads/master | 2023-08-04T15:11:03.031121 | 2023-07-27T15:43:08 | 2023-07-27T15:43:08 | 72,998,023 | 47 | 30 | null | 2021-06-20T16:12:59 | 2016-11-06T15:00:57 | Python | UTF-8 | Python | false | false | 6,357 | py | import usocket as socket
import ustruct as struct
from ubinascii import hexlify
class MQTTException(Exception):
pass
class MQTTClient:
def __init__(self, client_id, server, port=0, user=None, password=None, keepalive=0,
ssl=False, ssl_params={}):
if port == 0:
port = 8883... | [
"info@mchobby.be"
] | info@mchobby.be |
e73b9383df67e34ea872209416bdfae19c452254 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00000/s788082370.py | 4f1380f6d0ee21220388b36746cf86d9751c0762 | [] | 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 | 170 | py | import sys
def solve():
for i in range(1, 10):
for j in range(1, 10):
print('{}x{}={}'.format(i, j, i*j))
if __name__ == '__main__':
solve() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
399caec1db578a1ae0118e24eb1763918786b7d4 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_337/ch35_2020_03_23_19_14_04_682601.py | 62e78fe3e6b31214a8247878c3b2103bb1f3c60a | [] | 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 | 147 | py | a = int(input('Digite um numero: ')
b = a
while (a != 0):
a = int(input('digite um numero '))
b = b + a
if (a == 0):
print (b)
| [
"you@example.com"
] | you@example.com |
9ed84ce7368d5359d224f7bba96aa45fe05633f5 | 27e2b4b14d8217fcad3b57ef8918cb857931d89f | /learning/modules/affine_2d.py | 5685beeb2ef496f76e31f6c402cc8ab27cc41a24 | [
"BSD-2-Clause"
] | permissive | jhu-lcsr/good_robot | 205b31e9a2399032488ffa094d9f1e0d07592aa4 | 61217d65f040d536e54804150ce8abcf97343410 | refs/heads/master | 2022-03-31T23:49:04.958796 | 2022-03-25T18:14:14 | 2022-03-25T18:14:14 | 198,902,668 | 95 | 24 | BSD-2-Clause | 2022-02-18T20:45:13 | 2019-07-25T21:21:41 | Jupyter Notebook | UTF-8 | Python | false | false | 4,117 | py | import numpy as np
import torch
from torch import nn as nn
from torch.nn import functional as F
from learning.inputs.common import np_to_tensor
from utils.simple_profiler import SimpleProfiler
PROFILE = False
class Affine2D(nn.Module):
def __init__(self):
super(Affine2D, self).__init__()
self.p... | [
"elias.stengel@gmail.com"
] | elias.stengel@gmail.com |
4af37fe0fa21b90570d24cb03d779ef3c97dbf0b | b424a13f032d5a607e6df4dd78bc47ad1d06a147 | /pyvdp/mlc/locationupdate/locations.py | 44487ea851cdb437e6afc084836d0a12aad1b185 | [] | no_license | EnjoyLifeFund/macSierra-py36-pkgs | 1e7eeb9b55415da6eb12465d67730d76e9cc619a | 0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2 | refs/heads/master | 2021-01-20T10:23:50.044019 | 2017-09-05T02:53:26 | 2017-09-05T02:53:26 | 90,333,987 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | from pyvdp.mlc.dispatcher import VisaMobileLocationConfirmationDispatcher
def send(data):
"""Submits MLC Location Update request.
:param pyvdp.mlc.locationupdate.LocationsModel data: **Required**. Instance of MLC Location Update model.
:return: response from VDP.
**Usage:**
... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
c8a1296dbba75ff665580615225770217cedb900 | a3c8d2e898424a69d8bc42e73880a606643e409f | /modify_les_houches.py | 188b0f770d81cd8bb385eb51587e416a8f11163b | [] | no_license | brendlin/PowhegHelpers | 0d59a44db8cb7c98abe76f6fe6183b98de471b99 | 24d5b926d0755d46775f523049e6e154d8b8514c | refs/heads/master | 2020-08-16T12:04:07.511098 | 2016-07-06T15:01:57 | 2016-07-06T15:01:57 | 215,499,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | #!/usr/bin/env python
import os
import shlex
def main(options,args) :
base_file = open(options.file)
fs = dict()
weights = dict()
variations = ['_1_1','_0.5_0.5','_1_0.5','_0.5_1','_1_2','_2_1','_2_2']
for v in variations :
if '%s%s'%(options.outdir,v) not in os.listdir('.') :
o... | [
"kurt.brendlinger@cern.ch"
] | kurt.brendlinger@cern.ch |
1a1d85833b3928aa82fa0e563fdf4ae969df2f5c | 699add6df73ad158b8ebeb5f9de4aada5820f205 | /facebook/app/posts/serializers/posts.py | 89617e6175a2108b0d116bb90694a18c9e5f0680 | [] | no_license | ricagome/Api-Facebook-Clone | 4f035ad280e6cb48d375fd87a9f62eecce67eb51 | fae5c0b2e388239e2e32a3fbf52aa7cfd48a7cbb | refs/heads/main | 2023-08-17T12:34:33.379017 | 2021-10-05T21:23:32 | 2021-10-05T21:23:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,544 | py | """Posts serializers."""
# Django REST Framework
from rest_framework import serializers
# Models
from app.groups.models import Membership
from app.posts.models import Picture, Post, Shared, Video
from app.users.models import User
# Serializers
from .media import ImageModelSerializer, VideoModelSerializer
# Tasks
fr... | [
"juliancamilohermida@hotmail.com"
] | juliancamilohermida@hotmail.com |
0221dbcb162cf87c21c8db91e9c8e1986c2eee65 | d7e41697c8d82f5ef3f9555af7d3d204803f0a99 | /test/mitmproxy/addons/test_intercept.py | c3252db4a0df67bb350bea6d46eb93b73632904e | [
"MIT"
] | permissive | shitongzhu/mitmproxy | aba9681765b71c385b2b20fda303c71090a04376 | 08f35286d3af9ad39046b0b3663913701086be9a | refs/heads/master | 2023-08-19T07:03:52.226411 | 2021-09-04T10:56:33 | 2021-09-04T10:56:33 | 316,844,544 | 0 | 0 | MIT | 2020-11-29T00:02:33 | 2020-11-29T00:02:33 | null | UTF-8 | Python | false | false | 1,892 | py | import pytest
from mitmproxy.addons import intercept
from mitmproxy import exceptions
from mitmproxy.test import taddons
from mitmproxy.test import tflow
def test_simple():
r = intercept.Intercept()
with taddons.context(r) as tctx:
assert not r.filt
tctx.configure(r, intercept="~q")
a... | [
"stzhu.ac@gmail.com"
] | stzhu.ac@gmail.com |
24fae9c343fb410c540012d95da810f41b8cd376 | 1c5f4a13a5d67201b3a21c6e61392be2d9071f86 | /.VirtualEnv/Lib/site-packages/rx/operators/__init__.py | 2e52383e3ce23de56d3b3fc2a5f3e176324225c0 | [] | no_license | ArmenFirman/FastAPI-InfluxDB | 19e3867c2ec5657a9428a05ca98818ca7fde5fd0 | b815509c89b5420f72abf514562e7f46dcd65436 | refs/heads/main | 2023-06-24T20:55:08.361089 | 2021-07-29T00:11:18 | 2021-07-29T00:11:18 | 390,462,832 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119,699 | py | # pylint: disable=too-many-lines,redefined-outer-name,redefined-builtin
from asyncio import Future
from typing import Callable, Union, Any, Iterable, List, Optional, cast, overload
from datetime import timedelta, datetime
from rx.internal.utils import NotSet
from rx.core import Observable, ConnectableObservable, Grou... | [
"42990136+ArmenFirman@users.noreply.github.com"
] | 42990136+ArmenFirman@users.noreply.github.com |
58dc79979930a2d6d71966966c484d7436219a62 | d217073b0c505709bc27f3ee1972e8124ba1513c | /run_emnist100s_server.py | 164073371797db6b071692e3271357b7015624b7 | [] | no_license | matech96/FederatedLearning | d7b71cb80a6012b2700eec6040d1665556b7ed9e | f67fd3142512fa7cd6119b41eeabba0c6e4addd6 | refs/heads/master | 2023-03-01T23:28:56.792988 | 2021-02-10T18:13:03 | 2021-02-10T18:13:03 | 244,413,873 | 0 | 0 | null | 2021-01-11T18:56:04 | 2020-03-02T16:04:37 | Jupyter Notebook | UTF-8 | Python | false | false | 2,128 | py | from comet_ml import Experiment
import numpy as np
from FLF.TorchFederatedLearner import (
TorchFederatedLearnerTechnicalConfig,
ToLargeLearningRateExcpetion,
)
from FLF.TorchFederatedLearnerEMNIST import TorchFederatedLearnerEMNISTConfig
import common
# server_lr = 0.001
# client_lr = 0.1
server_opt = "Ada... | [
"gangoly96@gmail.com"
] | gangoly96@gmail.com |
3d36b220b77f8bad32671b6883738350ba47d36e | 050a5e9bd3970f802f3a10adffd7eb4d965511a2 | /python/mxnet/_ctypes/cached_op.py | 509484b7c3e4596984dfb3a26561641489cab4db | [
"MIT",
"BSD-3-Clause",
"LLVM-exception",
"Zlib",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Unlicense",
"BSD-2-Clause"
] | permissive | rongzha1/incubator-mxnet | 758948b2cadc7ea469bf02aa28e1af876ed8e6e5 | 1687b442d9eedf4d9acc36bb84ed2f26da6bb969 | refs/heads/master | 2023-03-17T13:20:31.260076 | 2022-05-25T18:29:08 | 2022-05-25T18:29:08 | 116,620,123 | 2 | 0 | Apache-2.0 | 2019-07-24T05:12:13 | 2018-01-08T02:39:37 | C++ | UTF-8 | Python | false | false | 6,431 | 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... | [
"noreply@github.com"
] | rongzha1.noreply@github.com |
5b92dca650d5af58634b4bbc5392f450168ddc2e | 2a0efe30198c948982a85ea74c7e47ef9ecb4823 | /pers/cyj/day07/01-装饰器/复杂一点的装饰器.py | dfdae18102148b1838c08ee34d1e6ff0161c08fb | [] | no_license | cyjhunnyboy/PythonTutorialProj | 00151ed364807c6df54b1b0300cb622086128b74 | c3a02e6fa2dd09bf5d7b47fd78a4d3a31356a39d | refs/heads/master | 2023-02-23T18:35:45.481252 | 2021-01-25T11:13:45 | 2021-01-25T11:13:45 | 298,922,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # 需求:打印之前输出一串*号,打印之后输出一串*号,且不能修改say函数
"""
装饰器格式:
def outer(func):
def inner():
pass
return inner
"""
def outer(func):
def inner(name, age):
if age < 0:
age = 0
print("*********************")
func(name, age)
print("*********************")
return inner
... | [
"cyjhunnyboy@sina.com"
] | cyjhunnyboy@sina.com |
4c1c73f25e01c49be2660eee2f95933dfdf77cde | 7fbc2a53886febbead55c30f56ca07fca65159d2 | /python/ccxt/async_support/btcalpha.py | a2ff9a2e7ddbfe57a943a1df40ec50e3cc6f8b28 | [
"MIT"
] | permissive | whitebit-exchange/ccxt | 632d1b2ce0e0570ae610f67487fb37f4a963b88b | f7fe58e1d5564324fb9404688421a5c7dba1d9ab | refs/heads/master | 2022-12-26T21:07:42.873111 | 2022-12-06T12:25:43 | 2022-12-06T12:25:43 | 211,014,730 | 4 | 1 | MIT | 2022-11-24T09:49:12 | 2019-09-26T06:20:37 | JavaScript | UTF-8 | Python | false | false | 30,907 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import Authenticatio... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
fea3119a59a2f3ba856ec2e710fe1637a1f51c27 | 22013212df1e21f29d0180f2109841177a2a8791 | /basic_addons/property_commission/report/__init__.py | 301b4221cfbe3959b69ac686451ff3c57d4fa8e8 | [] | no_license | butagreeza/DTDATA_A | f965236c0d7faf0ec4082d27e2a0ff8e7dafe1c6 | 90b09f89714349a3f26de671a440a979aeebd54c | refs/heads/master | 2023-06-18T00:41:02.521432 | 2021-06-14T21:17:06 | 2021-06-14T21:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | # -*- coding: utf-8 -*-
# See LICENSE file for full copyright and licensing details
from . import commission_report_parser
from . import commission_invoice_owner
| [
"lmillan131@gmail.com"
] | lmillan131@gmail.com |
daaef93c37b575d7fd19efbaa40cef646936629b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_158/ch5_2020_03_04_14_21_43_972983.py | 8957c461fc2af3492ea92811b85b3363234a30e5 | [] | 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 | 108 | py | def libras_para_kg(L):
Kg = L*0,453592
return kg
quilogramas = libras_para_kg(30)
print(quilogramas) | [
"you@example.com"
] | you@example.com |
a4a296c24ea20f86827dd5dc169e253cb5abb9e1 | 3851d5eafcc5fd240a06a7d95a925518412cafa0 | /Django_Code/gs109/gs109/settings.py | 50228c0727c225b02b3201706480a7302c74a547 | [] | no_license | Ikshansaleem/DjangoandRest | c0fafaecde13570ffd1d5f08019e04e1212cc2f3 | 0ccc620ca609b4ab99a9efa650b5893ba65de3c5 | refs/heads/master | 2023-01-31T04:37:57.746016 | 2020-12-10T06:27:24 | 2020-12-10T06:27:24 | 320,180,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,219 | py | """
Django settings for gs109 project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
im... | [
"ikshan3108@gmail.com"
] | ikshan3108@gmail.com |
ed28eeb00c0abc18439716a8bb8e36d13abd914d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02647/s734213501.py | 349f041eadf9486f686a51f3a7486abe292ac277 | [] | 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 | 323 | py | def main(n,k,a):
for _ in range(k):
b=[0]*(n+1)
x=0
for i,j in enumerate(a):
b[max(0,i-j)]+=1
b[min(n,i+j+1)]-=1
for i in range(n):
b[i+1]+=b[i]
if b[i]==n:
x+=1
a=b
if x==n:
break
return a
N,K,*A=map(int,open(0).read().split())
r=main(N,K,A)
print(*r[:-... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5e0056a3a976a110d99724cf118f1b6d24f452be | 154fd16fe7828cb6925ca8f90e049b754ce06413 | /lino_book/projects/min9/__init__.py | d753cbec3b532bf385f4ccec583b5bd577f51c0b | [
"BSD-2-Clause"
] | permissive | lino-framework/book | 68de2f8d130266bd9d9de7576d30597b3cde1c91 | 4eab916832cd8f48ff1b9fc8c2789f0b437da0f8 | refs/heads/master | 2021-03-27T16:16:55.403940 | 2021-03-15T02:53:50 | 2021-03-15T02:53:50 | 58,830,342 | 3 | 9 | BSD-2-Clause | 2021-03-09T13:11:27 | 2016-05-14T21:02:17 | Python | UTF-8 | Python | false | false | 751 | py | """A minimal application used by a number of tests and tutorials. It
is not meant to be actually useful in the real world.
The basic idea of min9 is to have most plugins installed. So it is the least
minimal of this series.
This is also a **usage example** of :ref:`plugin_inheritance` because if
overrides the :mod:`l... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
cb0762f6ad0d82b5f7af54710725a2cd79083bef | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/attestation/v20201001/get_private_endpoint_connection.py | f88efe9fc40401dacf354f97ae79611ea43dfbea | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,643 | 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, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
f19433e30c46690d57dc26ed3fc4129f524975a9 | fd5c2d6e8a334977cda58d4513eb3385b431a13a | /fabfile.py | 2575ac9de163d4ed15ae34b6dded48707d13bfd1 | [
"MIT"
] | permissive | censusreporter/census-api | 817c616b06f6b1c70c7b3737f82f45a80544c44d | c8d2c04c7be19cdee1000001772adda541710a80 | refs/heads/master | 2023-07-28T06:17:26.572796 | 2023-07-05T20:37:03 | 2023-07-05T20:37:03 | 9,879,953 | 146 | 52 | MIT | 2022-07-11T07:16:19 | 2013-05-06T05:24:57 | Python | UTF-8 | Python | true | false | 10,842 | py | from fabric.api import *
from fabric.contrib.files import *
from fabric.context_managers import shell_env, prefix
from fabric.colors import green
root_dir = '/home/www-data'
host = 'api.censusreporter.org'
code_dir = '%s/%s_app' % (root_dir, host)
virtualenv_name = '%s_venv' % host
virtualenv_dir = '%s/%s' % (root_dir... | [
"ian.dees@gmail.com"
] | ian.dees@gmail.com |
bf2eeec2f8ca17e4e7a2a4e2a889ff99d7ed61bc | 4b167378821bc5b1ff9c154cf331f4dcf7f9f425 | /lastResults/3Metric/mem/plotPaper.py | 4455cca0a0a836ad622bf133edc79b6a212ccb22 | [] | no_license | thangbk2209/GGClusterTraceDataAnalysis | eb83e719363d1b3cd264f3c0f63a21defa3970f4 | 2214c713d733e444d808dac3d6671a1229ce7b85 | refs/heads/master | 2021-09-15T21:32:47.151694 | 2018-06-11T04:20:55 | 2018-06-11T04:20:55 | 112,274,195 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,775 | py | import matplotlib.pyplot as plt
import pandas as pd
from pandas import read_csv
import numpy as np
from sklearn.metrics import mean_squared_error, mean_absolute_error
# colnames=['time_stamp','numberOfTaskIndex','numberOfMachineId','meanCPUUsage','CMU','AssignMem','unmapped_cache_usage','page_cache_usage', 'max_mem_us... | [
"thangbk2209@gmail.com"
] | thangbk2209@gmail.com |
fc2b44378ee5c8686de5c76006d2b2f091aeca55 | 525dc175d55c2f5f33f87df6915f3633537da17c | /oas_dev/util/slice_average/avg_pkg/levlat.py | cfd9f8272b670dce89243c6da766d11c27648cc3 | [
"CC0-1.0"
] | permissive | sarambl/OAS-DEV | 1b4c020ff862075034536ea38f30a131968791fb | 8dec6d29ef23dee8135bc937cd6ee1ef5b64d304 | refs/heads/master | 2023-04-09T07:59:31.051158 | 2021-10-26T12:20:04 | 2021-10-26T12:20:04 | 310,578,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,276 | py | import os
import xarray as xr
from oas_dev.util import practical_functions
from oas_dev.util.filenames import filename_levlat_avg
from oas_dev.util.slice_average.avg_pkg import get_fields4weighted_avg, average_model_var, \
compute_weighted_averages, is_weighted_avg_var
def get_average_levlat(ds, varlist,case_na... | [
"samebr@gmail.com"
] | samebr@gmail.com |
c6c2f7de3ee74716b02f1e63132429824c945881 | 99f8b6a6761e827b4ed1b6e57712dfe9c743891a | /io_utils/EcoFOCI_netCDF_write.py | fa8761b287d6d2149bec13e51f1f82ad55efe968 | [
"MIT"
] | permissive | NOAA-PMEL/EcoFOCI_Prawler | 7d7dcc45874b6dfe1f7c462864b005eb20c14216 | 04d410d22475707409732e9d78fe92ddd688d8a8 | refs/heads/master | 2021-07-29T19:58:24.953911 | 2021-07-21T15:15:53 | 2021-07-21T15:15:53 | 133,691,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,134 | py | #!/usr/bin/env python
"""
EcoFOCI_netCDF_write.py
class for building netcdf files from specified instruments
History:
--------
2018-09-13: Tweak to be python3 compliant
2016-12-19: Add a class for ragged arrays (1D and 2D) - 1D is continuous file
2016-12-16: Add a class for CF time conventions (1D and 2D... | [
"shaun.bell@noaa.gov"
] | shaun.bell@noaa.gov |
45d882a86b5f3848aae835cad97d3d10d271b146 | af43615e07f2bfaa908d6d96b4c90f98ce3ad47b | /rdr_service/alembic/versions/c069abb92cc0_add_enrollment_site_to_participant_table.py | 34d4fa2be7e396817f60eabebc8898d38098b9bc | [
"BSD-3-Clause"
] | permissive | all-of-us/raw-data-repository | 11aa25385543f5f8ef706663b79ce181775c1c9a | 461ae46aeda21d54de8a91aa5ef677676d5db541 | refs/heads/devel | 2023-09-01T06:47:25.710651 | 2023-09-01T01:18:56 | 2023-09-01T01:18:56 | 66,000,771 | 46 | 22 | BSD-3-Clause | 2023-09-14T21:06:38 | 2016-08-18T13:47:08 | Python | UTF-8 | Python | false | false | 2,558 | py | """add enrollment site to participant table
Revision ID: c069abb92cc0
Revises: df7c40b6a209
Create Date: 2020-08-18 20:59:18.237666
"""
from alembic import op
import sqlalchemy as sa
import rdr_service.model.utils
from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus... | [
"noreply@github.com"
] | all-of-us.noreply@github.com |
ece22cce09bc5fc4726f9ba62b8ab1e1f45fb755 | d2a2a514d7786823c6bd8a5280802035d4e6074d | /tests/test_20_cfcoords.py | 4ec88e46c1596f966d2978978865fcd2d3fe6975 | [
"Apache-2.0"
] | permissive | maxdow/cfgrib | 182cd2af423f0a323a1e0d7ca65b7215d7289573 | d82b9d198853f71429202d8e3f27e41ad5db08e6 | refs/heads/master | 2020-04-27T13:17:13.844747 | 2019-02-26T08:19:49 | 2019-02-26T08:19:49 | 174,364,010 | 0 | 0 | Apache-2.0 | 2019-03-07T14:49:07 | 2019-03-07T14:49:07 | null | UTF-8 | Python | false | false | 5,458 | py |
from __future__ import absolute_import, division, print_function, unicode_literals
import sys
import numpy as np
import pytest
xr = pytest.importorskip('xarray') # noqa
from cf2cdm import cfcoords
@pytest.fixture
def da1():
latitude = [0.5, 0.]
longitude = [10., 10.5]
time = ['2017-12-01T00:00:00', '... | [
"a.amici@bopen.eu"
] | a.amici@bopen.eu |
d010589a2de0c92908339076ba506432d82ad229 | ad9782856ec2f860fccbefa5e75a896691b8e1cc | /MonteCarlo/test/oldPixelSizes/RecoFullPUHGCAL_Extended2023HGCalMuonPandoraPU_320x52.py | b4367b6152b238f7e08eac17b665aed3f6988407 | [] | no_license | OSU-CMS/VFPix | 7fe092fc5a973b4f9edc29dbfdf44907664683e5 | 4c9fd903219742a4eba1321dc4181da125616e4c | refs/heads/master | 2020-04-09T05:52:05.644653 | 2019-01-09T13:44:22 | 2019-01-09T13:44:22 | 30,070,948 | 0 | 0 | null | 2018-11-30T13:15:54 | 2015-01-30T12:26:20 | Python | UTF-8 | Python | false | false | 5,896 | py | # Auto generated configuration file
# using:
# Revision: 1.20
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step3 --conditions PH2_1K_FB_V6::All --pileup_input das:/RelValMinBias_TuneZ2star_14TeV/CMSSW_6_2_0_SLHC26_patch4-PH2_1K_FB_V6_HLLHCBS-v1/G... | [
"ahart@cern.ch"
] | ahart@cern.ch |
cf6d3d894d81255bc94dac8675c678a3c19e26d0 | bde5435074b92404524390a9aa0bfbbebd13124d | /pymps/ansatz/mpo.py | 470e33b196e4957cff2ab4cb821624b6d105b9bc | [
"MIT"
] | permissive | GiggleLiu/pymps | adc113313725b38e50a2e633c67568fb04ec0ad6 | c8314581010d68d3fa34af6e87b6af2969fc261d | refs/heads/master | 2020-06-13T09:19:13.028827 | 2018-04-15T17:18:55 | 2018-04-15T17:18:55 | 75,427,737 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,659 | py | '''
Matrix Product State.
'''
from numpy import *
from scipy.linalg import svd, norm
from abc import ABCMeta, abstractmethod
import pdb
from functools import reduce
from ..tensor import Tensor
from ..blockmarker import block_diag
from ..construct.opstring import OpUnitI, OpUnit
from .mps import _autoset_bms, _auto_l... | [
"cacate0129@gmail.com"
] | cacate0129@gmail.com |
59c7e7e7e4cd34613840036c2471d28724f02f22 | 517d461257edd1d6b239200b931c6c001b99f6da | /Circuit_Playground/CircuitPython/libraries/adafruit-circuitpython-bundle-6.x-mpy-20211013/examples/ov5640_directio_kaluga1_3_ili9341.py | 97f54ded422a9ffdaf0adbc5cd958f06da9068dd | [] | no_license | cmontalvo251/Microcontrollers | 7911e173badff93fc29e52fbdce287aab1314608 | 09ff976f2ee042b9182fb5a732978225561d151a | refs/heads/master | 2023-06-23T16:35:51.940859 | 2023-06-16T19:29:30 | 2023-06-16T19:29:30 | 229,314,291 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,197 | py | # SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries
# SPDX-FileCopyrightText: Copyright (c) 2021 Jeff Epler for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
"""
The Kaluga development kit comes in two versions (v1.2 and v1.3); this demo is
tested on v1.3.
The audio b... | [
"cmontalvo@southalabama.edu"
] | cmontalvo@southalabama.edu |
e52b19c2a725eaf92c0042a4f688783ee479007b | 3b4e517ff92dcd98453ae9640546b1a395750520 | /manage.py | 49471b0fe4671c17e26526db6e30212d53e89178 | [] | no_license | songlei1979/DjangoRestFramework-part2 | d1e29aeca95020231940eb92f3b57361819dcde2 | c5f204cfefa7b06d927a5d9adfdd6afa8a73ec48 | refs/heads/master | 2023-08-11T01:45:51.874814 | 2021-09-23T14:05:45 | 2021-09-23T14:05:45 | 409,616,595 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DjangoRestFramework.settings')
try:
from django.core.management import execute_from_command_line
... | [
"gabriel_sl19798@hotmail.com"
] | gabriel_sl19798@hotmail.com |
06ca00122944e6bd27c9c3023f91aa49696ae084 | 1eee6d1d876d87c1b717b22c1078ec4d5921cb2e | /venv/bin/jsonpointer | d5992655b0d050a8ce52be5ae477300ba3c4b6f5 | [] | no_license | Tony910517/nova_client | 33362a2c73f85173331aab8876d70b73cd7d0177 | 19f676d7e12f539f2e1fb5f1cf670c17f731750f | refs/heads/master | 2020-05-20T12:32:17.800900 | 2019-05-16T08:17:17 | 2019-05-16T08:17:17 | 185,571,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | #!/home/sunshiqing/python_workspace/nova_client/venv/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import os.path
import json
import jsonpointer
import argparse
parser = argparse.ArgumentParser(
description='Resolve a JSON pointer on JSON files')
# Accept pointer as argume... | [
"471123674@qq.com"
] | 471123674@qq.com | |
8155e84c58b111bc5e21b1f1f83066f65ad66798 | 6ffabd00cf3563a902af59f21a74385599cbbff9 | /Command.py | 2223d9dfceeb3fa69a02497a4fbc438090543f88 | [
"CC0-1.0"
] | permissive | ytyaru/GitHub.Upload.ByPython.DeleteRepo.201703091329 | 9e984555693b059bf62c2ccfa0cb2f22f686fe33 | ddd480cc3e7daed7ffaa346fad00128acf0f110a | refs/heads/master | 2021-01-22T21:33:12.315316 | 2017-03-19T01:33:19 | 2017-03-19T01:33:19 | 85,443,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,359 | py | #!python3
#encoding:utf-8
import subprocess
import shlex
import shutil
import Data
import time
import pytz
import requests
import json
import datetime
class Command:
def __init__(self, data):
self.data = data
def CreateRepository(self):
self.__CreateLocalRepository()
r = self.__CreateR... | [
"ytyaru@outlook.jp"
] | ytyaru@outlook.jp |
9b9583c058e6658e0ba1edf7f043a986abb948df | 70384498fa880efc1aadde9561c927363f737dd4 | /Term02/Lesson03/15/conv-dims.0.py | b7aadc781b2ed16cc3ccc7d3727d201922c49ff9 | [] | no_license | luzi82/codelog.nd889.20170123 | c1b5f31baed47153116e717bf90836c43e97fc10 | 7d9581e825f69a14ae4e4314f10232f4501fdf08 | refs/heads/master | 2021-01-11T15:45:24.669205 | 2018-04-28T08:58:29 | 2018-04-28T08:58:29 | 79,921,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from keras.models import Sequential
from keras.layers import Conv2D
model = Sequential()
model.add(Conv2D(filters=16, kernel_size=2, strides=2, padding='valid',
activation='relu', input_shape=(200, 200, 1)))
model.summary()
| [
"luzi82@gmail.com"
] | luzi82@gmail.com |
eb1cdadb0c9114e1870f2274d3ceacb2e7afb7b8 | e8a285cb1dcdae6f1b6d8506b8d25a1d031d6cd7 | /heppy/examples/pythia_test_groomer_shop.py | ad66423e6baa8798bb00562b64ba44d41d0ab5a8 | [] | no_license | matplo/heppy | f30558e4ff3c1720c63b4d82f739b3f8acadc53e | 88c931e3e7dcf57a3a476ef0a92f0204491cafb9 | refs/heads/master | 2023-07-07T18:17:04.486149 | 2023-06-29T20:45:32 | 2023-06-29T20:45:32 | 201,352,733 | 5 | 8 | null | 2023-07-04T21:57:31 | 2019-08-08T23:33:39 | C | UTF-8 | Python | false | false | 3,028 | py | #!/usr/bin/env python
from __future__ import print_function
import fastjet as fj
import fjcontrib
import fjext
import tqdm
import argparse
import os
import numpy as np
from heppy.pythiautils import configuration as pyconf
import pythia8
import pythiafjext
import pythiaext
def main():
parser = argparse.ArgumentPar... | [
"ploskon@gmail.com"
] | ploskon@gmail.com |
02d3f99a2fbc96a788c4cc15700dec563d366079 | 6189492108aca002e31c3708808604c1516c33d8 | /storage_api_azure_key_sample.py | 1aa95062c5b3e13cbc98e9b650317f828bf6d4bb | [
"MIT"
] | permissive | konsan1101/pyRiKi1 | 53b10b0574e201e7656b01a07f4ab31b0b1a2297 | 687061ce09889ec91c1c3c11df62f4cfcb3d9613 | refs/heads/main | 2020-12-21T04:59:13.790645 | 2020-12-04T12:47:24 | 2020-12-04T12:47:24 | 236,314,120 | 0 | 0 | MIT | 2020-10-27T22:20:09 | 2020-01-26T13:13:01 | null | UTF-8 | Python | false | false | 559 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# COPYRIGHT (C) 2014-2020 Mitsuo KONDOU.
# This software is released under the MIT License.
# https://github.com/konsan1101
# Thank you for keeping the rules.
def getkey(api, key, ):
# azure blob
if (api == 'blob'):
print('storage_api_azure_key.py')
... | [
"konchan@gold.ocn.ne.jp"
] | konchan@gold.ocn.ne.jp |
fbe7e7c0458d60f3afdeec581f73202924c8463c | 37161a0835abd45f93fcf1368c4b7851ef5ee271 | /pokerify/core/servers.py | 7200f9f619b9df23214e047ebe3e5bdd5e195137 | [] | no_license | dalou/pokerify | 7f126176b4e5e31ed99981472c9f98c9aaa90f2d | 4c83e5687f45d99705af342a83fc5d2ff9c34987 | refs/heads/master | 2020-12-24T14:36:57.975738 | 2010-12-20T11:18:43 | 2010-12-20T11:18:43 | 1,134,789 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | import socket
import threading, time
from urlparse import parse_qs
class Server( ):
def __init__( self, addr ):
self.addr = addr
self.times = []
try:
print "Server is running on %s:%s:" % addr
self.listen()
except KeyboardInterrupt:
self.shutdown()
sys.exit(0)
print "Keyboard interrupt"
#def... | [
"autrusseau.damien@gmail.com"
] | autrusseau.damien@gmail.com |
1c930d06317eb1ac98b88b7876bb96e7bc75749d | cefab48dff8fc40786f0a45f3df272646365e9f5 | /python/pyMARS_old/python_mars_scripts2a/control_funcs.py | c7816b0d00b7eaa314b9c29c8dc1117642a96242 | [] | no_license | shaunhaskey/pyMARS | d40265bd2d445f0429ae7177f2e75d83f0ba8b30 | e2424088492a8ab2f34acf62db42a77e44d5bc3b | refs/heads/master | 2020-12-25T17:24:28.392539 | 2016-08-01T22:14:27 | 2016-08-01T22:14:27 | 17,684,575 | 0 | 0 | null | 2014-03-13T03:41:59 | 2014-03-12T21:21:08 | Python | UTF-8 | Python | false | false | 12,136 | py | #!/usr/bin/env Python
from PythonMARS_funcs import *
import time, pickle, copy
import Chease_Batch_Launcher as ch_launch
from RZfuncs import *
import results_class
#step 1
def generate_master_dir(master, project_dict):
#master['shot_dir'] = project_dict['details']['base_dir'] + 'shot' + str(master['shot'])+'/'
... | [
"shaunhaskey@gmail.com"
] | shaunhaskey@gmail.com |
465cf786e8974261763322818b4562f39783f16e | 30ee21b97e6105288101d1031ed7f96aaf6e141e | /ESP32_TTGO/essais/wifi_connect.py | e5a0d4d0a87d3b41390d181966548d0e10fb23ba | [] | no_license | josmet52/micropython | b3d1d69ad7eb6832ce26c15e3580dae99b5bb87f | d8f2267b556ba3b15861898c2c2eb5e086dcf9ce | refs/heads/main | 2023-06-13T06:18:30.151497 | 2021-07-09T10:14:25 | 2021-07-09T10:14:25 | 353,124,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | # connect to WIFI
ssid = 'jmb-guest'
password = 'pravidondaz'
station = network.WLAN(network.STA_IF)
station.active(True)
station.connect(ssid, password)
while station.isconnected() == False:
pass
print('connected')
| [
"joseph.metrailler@bluewin.ch"
] | joseph.metrailler@bluewin.ch |
1dc4adc45a365d0bc492af41d1d36ab5079009f6 | 565ae8473c545c43341f5511b9633e97f0e4da8b | /course2_python_fundamentals/10-Exams/2-FINAL-EXAM/01_Password_Reset.py | 303493927295788bc67ee1f4253ff9d7a06b775c | [] | no_license | andriiburka/Web-Development-with-Python | 3934c1a3945bd983ab39d38b97f1af16fe784207 | b6927653a2c6a9cc10a8768395233e347624c49a | refs/heads/master | 2022-11-21T21:42:04.898254 | 2020-07-29T22:59:56 | 2020-07-29T22:59:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | string = input()
while True:
command = input().split()
if "Done" in command:
break
elif "TakeOdd" in command:
temp = ''
for i in range(len(string)):
if i % 2 == 1:
temp += string[i]
string = temp
print(string)
elif "Cut" in command:
... | [
"andriiburka@gmail.com"
] | andriiburka@gmail.com |
2a764e7996d79362196d0018607bc8cb6aea496d | c2ae65792af1fab2e7843303ef90790819f872e8 | /SampleCodes/DB/mysqldb.py | e327f2f47a0b957e2a7ab7463e9b88bd524d3268 | [] | no_license | behappyyoung/PythonSampleCodes | 47c224ca76ce509a03c8b75ef6b4bf7f49ebdd7f | f7640467273fa8ea3c7e443e798737ca5bcea6f9 | refs/heads/master | 2023-03-15T00:53:21.034605 | 2023-02-13T17:12:32 | 2023-02-13T17:12:32 | 26,919,763 | 3 | 3 | null | 2023-03-07T12:45:21 | 2014-11-20T15:57:16 | Python | UTF-8 | Python | false | false | 319 | py | #!/usr/bin/python
print "Content-type:text/html\n\n"
import MySQLdb
import sys
try:
conn = MySQLdb.connect (
host = "localhost",
user = "projectm",
passwd = "projectm",
db = "projectm")
except MySQLdb.Error, e:
print "Error %d: %s" % (e.args[0], e.args[1])
sys.exit (1)
print "connected to the database"
| [
"behappydev@gmail.com"
] | behappydev@gmail.com |
e67f1d0f28f58c2d157c385f3508374853439c88 | dd949f215d968f2ee69bf85571fd63e4f085a869 | /systems/css-2011-teams/green/subarchitectures/visualization.sa/src/python/dist-packages/cogxv11n/core/DisplayClient.py | f9993e9edec725595326c04b2860f0891a869021 | [] | no_license | marc-hanheide/cogx | a3fd395805f1b0ad7d713a05b9256312757b37a9 | cb9a9c9cdfeba02afac6a83d03b7c6bb778edb95 | refs/heads/master | 2022-03-16T23:36:21.951317 | 2013-12-10T23:49:07 | 2013-12-10T23:49:07 | 219,460,352 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,307 | py | #!/usr/bin/env python
# vim:set fileencoding=utf-8 sw=4 ts=8 et:vim
#
# Author: Marko Mahnič
# Created: Jul 2010
#
# © Copyright 2010 Marko Mahnič.
# 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 Foundat... | [
"marc@hanheide.net"
] | marc@hanheide.net |
eaa7f8fdad7faa16315d39871677623c1fcfa50f | b35f80114ad96928ccce44d40840177e0b5158aa | /tests/resolver_helpers/ewf_resolver_helper.py | 0f7f71846dcc67f1503b6deef35b03c4f985b0e7 | [
"Apache-2.0"
] | permissive | ryanmjones/dfvfs | 7b62bab127cb201e679331fa808ec79e8ef03bd9 | 29ae5baddbf285260a596a67a199d0f5077214c1 | refs/heads/master | 2020-03-29T23:47:49.363000 | 2018-09-03T11:43:03 | 2018-09-03T11:43:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for the EWF image resolver helper implementation."""
from __future__ import unicode_literals
import unittest
from dfvfs.resolver_helpers import ewf_resolver_helper
from tests.resolver_helpers import test_lib
class EWFResolverHelperTest(test_lib.ResolverHelper... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
d7ed77f706b932c3b02ffe4e7ce88188a0f63027 | 25873da962b0acdcf2c46b60695866d29008c11d | /src/programr/parser/template/nodes/richmedia/carousel.py | aa219f67c7d251309270575f67353cbbdc77c549 | [] | no_license | LombeC/program-r | 79f81fa82a617f053ccde1115af3344369b1cfa5 | a7eb6820696a2e5314d29f8d82aaad45a0dc0362 | refs/heads/master | 2022-12-01T14:40:40.208360 | 2020-08-10T21:10:30 | 2020-08-10T21:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | from programr.utils.logging.ylogger import YLogger
from programr.parser.template.nodes.base import TemplateNode
from programr.parser.template.nodes.richmedia.card import TemplateCardNode
from programr.parser.exceptions import ParserException
from programr.utils.text.text import TextUtils
class TemplateCarouselNode(T... | [
"hilbert.cantor@gmail.com"
] | hilbert.cantor@gmail.com |
9f3951123b7e4a1767c2b44cce0a6b7fa2159d21 | 45243d7b7412814b8cb43fefdf088099e0c93419 | /src/service/timetable/search.py | 31a99a77a4e223782e3405c80930361b06bc51dd | [] | no_license | AlexanderNevarko/drec_stud_site | e08e621c54bdd145709913d4a69c8f089475fcad | 4e176a77bf5b4a20e57e1379581713a6fa6d2d21 | refs/heads/master | 2020-09-21T07:55:46.820999 | 2019-01-14T20:22:50 | 2019-01-14T20:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,260 | py |
def long_sorted_search(lst, el_obj_class, el_start_attr, el_end_attr, el, lst_obj_class = None, lst_start_attr = None, lst_end_attr = None):
'''
Searches 'long' elements in sorted list using binary search.
The 'length' of the element is defined by comparable element attributes (``el_start_attr``, ``el_end_... | [
"makaleks@live.ru"
] | makaleks@live.ru |
3573a972ee7bf343ea78f743c7b110cf573b60d1 | f34d3948b707e461151ee33296a61fb23a6d3f44 | /month01/day02/exercise03.py | eb45ee423947497b94c930abda4c16de9d77a199 | [] | no_license | xiao-a-jian/python-study | f9c4e3ee7a2f9ae83bec6afa7c7b5434e8243ed8 | c8e8071277bcea8463bf6f2e8cd9e30ae0f1ddf3 | refs/heads/master | 2022-06-09T17:44:41.804228 | 2020-05-05T07:48:07 | 2020-05-05T07:48:07 | 256,927,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | """
画出下列代码内存图
"""
# 练习1
province_name01 = "湖北"
province_name02 = "湖南"
province_name02 = "河南"
province_name03 = province_name02
print(province_name03) # ?河南
# 练习2
city_name01,city_name02 = "北京","上海"
city_name03 = city_name01 + city_name02
del city_name02
city_name01 = "首都"
print(city_name03) # ? "北京上海"
| [
"1261247299@qq.com"
] | 1261247299@qq.com |
d4f595b8711036bfddffa8f1e0b89fec67fc1a15 | 8592ca892bd302670812df982e1759a38530ada7 | /bigmler/resourcesapi/sources.py | 7fb5f349b4f679957a1b3cee719f29e0a92bf1a9 | [
"Apache-2.0"
] | permissive | felmarlop/bigmler | 42e3e2f9ae117328e5902fa668b9650c72c16ed0 | 1a3096902de52d231578c797a73f5e2683b14736 | refs/heads/master | 2022-09-08T17:51:27.761114 | 2020-06-02T17:23:51 | 2020-06-02T17:23:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,582 | py | # -*- coding: utf-8 -*-
#
# Copyright 2020 BigML
#
# 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 ag... | [
"merce@bigml.com"
] | merce@bigml.com |
1db2bd9944cfe89aac33c8d1f7b6e5f0c491cf37 | c0f808504dd3d7fd27c39f1503fbc14c1d37bf9f | /sources/scipy-scipy-414c1ab/scipy/signal/tests/test_windows.py | 4dfd76173d17bc85f0f4074261a4cd477376fd06 | [] | no_license | georgiee/lip-sync-lpc | 7662102d4715e4985c693b316a02d11026ffb117 | e931cc14fe4e741edabd12471713bf84d53a4250 | refs/heads/master | 2018-09-16T08:47:26.368491 | 2018-06-05T17:01:08 | 2018-06-05T17:01:08 | 5,779,592 | 17 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py |
from numpy import array, ones_like
from numpy.testing import assert_array_almost_equal, assert_array_equal
from scipy import signal
cheb_odd_true = array([0.200938, 0.107729, 0.134941, 0.165348,
0.198891, 0.235450, 0.274846, 0.316836,
0.361119, 0.407338, 0.455079, 0.5038... | [
"georgios@kaleadis.de"
] | georgios@kaleadis.de |
69d37b8756b717949cce74ffac2e571aeb3e7d05 | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /dist-packages/os_win/tests/utils/io/test_namedpipe.py | b1a7000655197ea8f4cc603b04873c404694ba9b | [] | no_license | liyongle/openstack-mitaka | 115ae819d42ed9bf0922a8c0ab584fa99a3daf92 | 5ccd31c6c3b9aa68b9db1bdafcf1b029e8e37b33 | refs/heads/master | 2021-07-13T04:57:53.488114 | 2019-03-07T13:26:25 | 2019-03-07T13:26:25 | 174,311,782 | 0 | 1 | null | 2020-07-24T01:44:47 | 2019-03-07T09:18:55 | Python | UTF-8 | Python | false | false | 14,444 | py | # Copyright 2015 Cloudbase Solutions Srl
# 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 r... | [
"yongle.li@gmail.com"
] | yongle.li@gmail.com |
3e82378d8244045fcc2a1d0fe2cc7e3794e15b34 | 7c28f9556bc40f8d2a4078e9b054113deded91e6 | /virtual/bin/django-admin.py | 388f2e7ef1cea89decdfb7c892a2bf402eec0b13 | [
"MIT"
] | permissive | Kiptim54/Snaps | f41d8201516279814e7696717154f70a8b8aea9a | 07baa43a81341c0cd2041b18bf4cf3b377a63fc9 | refs/heads/master | 2020-03-15T09:56:25.563193 | 2018-05-06T20:36:22 | 2018-05-06T20:36:22 | 132,088,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #!/home/kiptim/Documents/Django/Gallery/virtual/bin/python3.6
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"kiptim54@gmail.com"
] | kiptim54@gmail.com |
3187cebf53b51fd5d39802a7d74deb8abddaf43d | d5fb44ba8e66261c7bfb927981e75f548971121c | /test.py | 1385d05f7a5344aca4c821adc966a562a2136b4b | [] | no_license | Hemie143/mc_python | 4ed6131005b6cb358ad106b574fad7b716aa0348 | 8e40225690918cedbe05da376beba6ccb5b6ae70 | refs/heads/master | 2023-03-21T14:06:41.512801 | 2021-03-08T12:38:37 | 2021-03-08T12:38:37 | 345,651,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from mcpi.minecraft import Minecraft
import os
import time
mc = Minecraft.create()
time.sleep(3)
mc.setBlock(6, 0, 0, 10)
time.sleep(3)
mc.setBlock(6, 0, 0, 128)
time.sleep(3)
mc.setBlock(6, 0, 0, 12)
| [
"hemie143@gmail.com"
] | hemie143@gmail.com |
c7a6c21652a3084e8073c5c2dcb86c06325f8153 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/ethpm/event.py | 112873f798532e8d712addc8586ddcf9d7c6075e | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 9,060 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
e2344638d0a98b1f42ef365867e0fb494aa9d2c0 | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/predator/app/common/model/clusterfuzz_analysis.py | cc2d77ab86f62e78ac2b5fcbe40a45a6e30daf90 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 3,764 | py | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import copy
from google.appengine.ext import ndb
from analysis.type_enums import CrashClient
from common.model.crash_analysis import CrashAnalysis
from dec... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
4b984d3d0c87694dcefee18892076cacacd7d440 | a3c8651bb991d7fd5ae575c8ce3020241fe15a4d | /venv/lib/python3.8/site-packages/attrs/__init__.py | 009162edab8ddf4a8cedc98e1f0db9fe3cabf9ca | [] | no_license | chunyboy/test | fefff853c244657a5c33fe415d8552fdfcbb9eb7 | 44233736f86910fa934c4fd0f3e261df2f761a2d | refs/heads/master | 2022-12-13T11:33:06.176114 | 2022-11-29T15:32:01 | 2022-11-29T15:32:01 | 78,964,487 | 2 | 1 | null | 2017-01-14T22:34:28 | 2017-01-14T20:21:54 | Python | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/09/ec/b1/2c655588010a2ac2ce2da89ff2f177becd5adbcbecad154bbfb78c1203 | [
"chunyboy@users.noreply.github.com"
] | chunyboy@users.noreply.github.com |
817a9aa569e0c8e817aae277a11c6482820340be | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/capability/CapabilityMgmtExtensionFsm.py | 85b6a1dc135d65a692f71c6e11e96e25cb188260 | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,402 | py | """This module contains the general information for CapabilityMgmtExtensionFsm ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class CapabilityMgmtExtensionFsmConsts():
COMPLETION_TIME_ = ""
C... | [
"test@cisco.com"
] | test@cisco.com |
470fa46cd5261fdcd6d7d46c4052d31bfe662ce4 | b963087b02dfcb6415ec66ff6bd14c70cfb814f1 | /users/admin.py | ea92732ab5f04709f68f94db72255169a5465b50 | [
"MIT"
] | permissive | linikerunk/tcc-people-analytics | 24f58c56878f6c3408aef2fdcd776512d2369a8e | fdda975682d5299c8384e31ebb974dc085330875 | refs/heads/master | 2023-01-13T05:10:10.317673 | 2020-11-17T22:15:13 | 2020-11-17T22:15:13 | 290,654,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
from .models import Employee, CostCenter, Unity
from .resources import *
@admin.register(Unity)
class UnityAdmin(ImportExportModelAdmin):
list_display = ['name']
@admin.register(Employee)
class EmployeeAdmin(ImportExportMode... | [
"linikerenem@gmail.com"
] | linikerenem@gmail.com |
981fa7b1551dd5ab75954aa8343706701bcde98f | 4a27d63ed85f58dd93704b273cd5d1b729fdf7e1 | /other/duiqi.py | 03f83001249a9e5e2f3d66e327bbd798b62aba11 | [] | no_license | Mrhairui/python1 | ff4a5141018d91e93deb881167bc4d80965d9c1a | a8ef0a0bd70b05c9b01b938371cc8074c20e6609 | refs/heads/master | 2020-09-16T11:47:50.127258 | 2020-03-28T15:08:23 | 2020-03-28T15:08:23 | 223,760,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | from typing import List
class Solution:
def fullJustify(self, words: List[str], maxWidth: int)->List[str]:
n = len(words)
l = maxWidth + 1
output = []
tmp = []
for i in range(n):
if l > len(words[i]):
l = l - 1
tmp.append(words[i])
... | [
"chenwentao_622@163.com"
] | chenwentao_622@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.