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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0905fb26560de87411c21960997c6875014dbccb | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/portal/azure-mgmt-portal/generated_samples/get_list_of_of_items_that_violate_tenant's_configuration.py | 61fbafab6d87131451f7e466baa3c1564f00f009 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,545 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
deea930e09d6a60e18d76a92b7cfe16ffaeb611f | f1f3f6230b4eac01c0619991cc3a9a7fb543c8ed | /cmsplugin_news/feeds.py | 52907fb875c093c5b95649c85e99665ad4cd8c7f | [
"BSD-2-Clause"
] | permissive | Troyhy/cmsplugin-news | f85fb6fd59305d9d13957456439911e7d262b8f0 | 456b94bb75797c44fac29f1df6182a2cf5973652 | refs/heads/master | 2021-01-23T13:17:04.579040 | 2013-05-31T12:41:38 | 2013-05-31T12:41:38 | 10,172,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse
from . import models
from . import settings
class NewsFeed(Feed):
title = settings.FEED_TITLE
description = settings.FEED_DESCRIPTION
title_template = 'cmsplugin_news/feeds/item_title.html'
description_tem... | [
"zerok@zerokspot.com"
] | zerok@zerokspot.com |
fc48134690043d49bf895866d0959aca4540c786 | 73999ce16be0eb0fccd2fc2f08e07bd7b0905eb7 | /tests/flickr_count_job.py | 3a8993d0ad78dfece7269c2a78a6a52dd9979253 | [
"Apache-2.0"
] | permissive | bwhite/hadoopy_hbase | 79027f09668ac95a279903a8796e8fa055cc3a4a | e6156f14884174a1e7135c4f2df4b2e04b29263d | refs/heads/master | 2016-09-15T21:06:15.678970 | 2013-06-24T14:16:49 | 2013-06-24T14:16:49 | 4,660,651 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | #!/usr/bin/python
import hadoopy
def mapper(row, column_families):
yield 'num_rows', 1
def reducer(key, values):
yield key, sum(values)
if __name__ == '__main__':
hadoopy.run(mapper, reducer)
| [
"bwhite@dappervision.com"
] | bwhite@dappervision.com |
e8e9505c0149bcdc1bba216925378fbd6521fef1 | 81b80dcb5dae151903bed55bc717942edb4ecadb | /90_Do_duplicate_subsets.py | 8bdafd0bc138f84e5d3dcbd69cfab1ba2870c249 | [] | no_license | chuzcjoe/Leetcode | 742bbb71e08ae8833865174b40e4a8f3c2529916 | a6eb22c3f84459c3c054c00aec59d0d87b685bfa | refs/heads/master | 2021-07-10T15:40:47.332063 | 2020-09-27T23:54:13 | 2020-09-27T23:54:13 | 198,936,895 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | class Solution(object):
def subsetsWithDup(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
res = []
nums = sorted(nums)
def dfs(nums,index,res,path):
if path in res:
pass
... | [
"noreply@github.com"
] | chuzcjoe.noreply@github.com |
ca254c0cf50d017c1192bab15c05e9000d0daf42 | 3f0e349a1e7f0dc40e32e94a82577575115d3b24 | /billometer/tests/statsd_client.py | 32c9a43ad1c83afbb85567c76bcf04bfe960bd2a | [] | no_license | ratheeshspiral09/django-billometer | 157398e205c87546ff470410cd8aeba336a5658d | 9ca0457e26e064bf9b33099ed183ba32abd5105e | refs/heads/master | 2021-01-11T19:03:20.257223 | 2013-12-02T20:19:31 | 2016-05-16T11:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | from django.test import TestCase
import statsd
from django.conf import settings
from billometer.utils.carbon import send_data
SAMPLE_RATE = getattr(settings, "STATSD_SAMPLE_RATE", 1)
HOST = getattr(settings, "STATSD_HOST", "10.0.103.159")
PORT = getattr(settings, "PORT", 8125)
class BaseTestCase(TestCase):
pr... | [
"filip@pytloun.cz"
] | filip@pytloun.cz |
e038475865f491077599aba65ce96e0659ead47c | 82a673b34a5d26103f259df1eb8797b865af94c0 | /koalixcrm/crm/documents/paymentreminder.py | 06f7a30d786ff0e34ce68d4b765bdc2d6f01f8db | [
"BSD-3-Clause"
] | permissive | pchaos/koalixcrm | 665f1dad5e3d772518f5bc1968be86542eaa9f0e | 7ce698b62771628b4673ac45fecdef2ad653a4dc | refs/heads/master | 2020-03-16T18:51:23.058113 | 2018-06-13T20:57:36 | 2018-06-13T20:57:36 | 132,889,590 | 1 | 0 | null | 2018-05-10T11:14:27 | 2018-05-10T11:14:26 | null | UTF-8 | Python | false | false | 2,674 | py | # -*- coding: utf-8 -*-
from datetime import *
from django.db import models
from django.utils.translation import ugettext as _
from koalixcrm.crm.const.status import *
from django.core.validators import MaxValueValidator, MinValueValidator
from koalixcrm.crm.documents.salesdocument import SalesDocument, OptionSalesDoc... | [
"aaron.riedener@gmail.com"
] | aaron.riedener@gmail.com |
64182de2360f4c095735187670c8153684b2bdc4 | 28691ec55ebce9ec7045d12ea9675932ce12d671 | /py2rhino-project/branches/sandbox2/py2rhino/_make/data/parser_out/light/rectangular_light_plane.py | dbb30a301d1cd3fe80d69aaf8e803d83f2ba66d9 | [] | no_license | ianclarksmith/design-automation | 1e71315193effc0c18b4a8b41300bda6f41a3f09 | e27cc028fe582395f4a62f06697137867bb0fc33 | refs/heads/master | 2020-04-22T22:28:39.385395 | 2009-10-26T02:48:37 | 2009-10-26T02:48:37 | 37,266,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | rectangular_light_plane = {
"input_folder_name": "Light_Methods",
"input_file_name": "RectangularLightPlane",
"output_package_name": "light",
"output_module_name": "rectangular_light_plane",
"doc_html": """
Returns the plane of a rectangular light object.
""",
"syntax_htm... | [
"patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb"
] | patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb |
46d2a45ed584f5d74b7ecdb971a9542da0ccec45 | 861d25fe3985340dae621d179f7af368e0dd7f39 | /learn_models/learn/migrations/0002_auto_20161221_1647.py | 67860231e48ae0005d3d25fed7a69006cc0350bf | [] | no_license | zhuwei302/python | 1ebcfac3e4f208ba81af93d13b8857bea9497862 | dfad635149b8f307ae0eb5b2b8c348843de663bb | refs/heads/master | 2021-01-19T18:44:32.843216 | 2018-09-18T15:17:21 | 2018-09-18T15:17:21 | 101,160,521 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-21 08:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('learn', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"244840434@qq.com"
] | 244840434@qq.com |
00bad0f33c4448abaef3e6b3cbd03a38ef87c1b9 | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /compress.py | c191cf11606f8c73bad4728f783d04c7f5adf156 | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | from typing import List
class Solution:
def compress(self, chars: List[str]) -> int:
p1 = 0
p2 = 0
while p1 < len(chars):
now = chars[p1]
count = 0
while p1 < len(chars) and chars[p1] == now:
p1 += 1
count += 1
... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
45a0225beac8a780ab7a89d7a217fc4e0daece2e | 98081c9557570066c5cd4a66b845e32855fcce53 | /web/pgadmin/tools/debugger/utils/debugger_instance.py | 66393801b70c80ee093adbfc6e156b60a7fa48ca | [
"PostgreSQL"
] | permissive | mk8310/pgadmin4 | 15e5d6cb5ac6b34a6bd2d13b31904c00816fdae6 | ded71be73f219884fe3e4a21adc7aef8fb630764 | refs/heads/master | 2020-11-25T07:09:22.438727 | 2019-12-16T12:56:22 | 2019-12-16T12:56:22 | 228,550,172 | 0 | 0 | NOASSERTION | 2019-12-17T06:39:10 | 2019-12-17T06:39:10 | null | UTF-8 | Python | false | false | 2,474 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2019, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
from flask import... | [
"dpage@pgadmin.org"
] | dpage@pgadmin.org |
497ce91140d10b218d5d5b36d4452fb801b02395 | b92adbd59161b701be466b3dbeab34e2b2aaf488 | /testing/testing_submissions/testing_assignment_004/testing_assignment_004/asgi.py | 8e47ade95af977ef1ea52052833d18c6abb2d856 | [] | no_license | R151865/cloud_9_files | 7486fede7af4db4572f1b8033990a0f07f8749e8 | a468c44e9aee4a37dea3c8c9188c6c06e91cc0c4 | refs/heads/master | 2022-11-22T10:45:39.439033 | 2020-07-23T09:31:52 | 2020-07-23T09:31:52 | 281,904,416 | 0 | 1 | null | 2022-11-20T00:47:10 | 2020-07-23T09:08:48 | Python | UTF-8 | Python | false | false | 421 | py | """
ASGI config for testing_assignment_004 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefaul... | [
"r151865@rguktrkv.ac.in"
] | r151865@rguktrkv.ac.in |
65c2694ee857ac8849def6e8d2fd1f10a835b044 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/azure-firewall/azext_firewall/vendored_sdks/v2020_05_01/v2020_05_01/operations/_bgp_service_communities_operations.py | b2ded383c93be0ca2b93f65ea4fba46e5a55175d | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 4,308 | 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 ... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
ee8e827aadaced4b4c1c363ef3f559e29f80a1dc | b3e363ceea415480ed5cda8b6dd74ec5ab0fc5e3 | /run_real_predict.py | 176da9a512bb74b25bd6e5a53441ea6fc82900e2 | [
"Apache-2.0"
] | permissive | QAQ1551QAQ/ASRFrame | 4c90530b7b865e69512121123461d08ee3e76c10 | 8fa7f0b8a361579b316e9df080e9f95bc880e11e | refs/heads/master | 2020-06-20T02:50:24.633648 | 2019-07-14T16:59:19 | 2019-07-14T16:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from examples.real_predict import predict_sommalpha,predict_dchmm,predict_dcsom
import config
# dcbnn = config.join_model_path("DCBNN1D_cur_best.h5")
dcbnn = config.join_model_path("DCBNN1D_step_30000.h5")
sommalpha = config.join_model_path("language/SOMMalpha_step_11500.h5")
if __name__ == "__main__":
predict_dc... | [
"sailist@outlook.com"
] | sailist@outlook.com |
4aa589a6514406d75c5765dcfd9c256fe7ba3671 | 631847fafbcfa07bf33eee078d9b59b464ce4b50 | /post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2/Output/Histos/MadAnalysis5job_0/selection_4.py | 9559d0a73fb6fa7002d045ebc9953a7d2948bffc | [
"MIT"
] | permissive | sheride/axion_pheno | 7b46aeb7cc562800d78edd9048504fdbc0f5fa42 | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | refs/heads/master | 2021-07-01T08:47:59.981416 | 2021-02-03T23:03:50 | 2021-02-03T23:03:50 | 219,261,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,541 | py | def selection_4():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.lin... | [
"elijah.sheridan@vanderbilt.edu"
] | elijah.sheridan@vanderbilt.edu |
b1b10447abf9c5015cc86a8e0314833cc528bf90 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Mastering-Machine-Learning-scikit-learn/NumPy-Beginner/CODE/Chapter6/determinant.py | 70987c9122e529a17b2e7e5507b17cf876c2059b | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 136 | py | from __future__ import print_function
import numpy as np
A = np.mat("3 4;5 6")
print("A\n", A)
print("Determinant", np.linalg.det(A))
| [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
3bc91f6361ebecd28d9bc044564e49aad83953d1 | e10bbfe65bb69f1261ab62dc790d53048dc122b0 | /plotCarbNonCarbFigure7.py | f969f4557caf4cbc697838ad16acd054d6ed22fe | [] | no_license | newtein/ozone_network | 8cc2182485b3e85e82b0bb7f7d980b6503c82a0a | 4c537e91fa22a74dda004d8f00c812c0559dad36 | refs/heads/master | 2023-05-26T14:11:58.433590 | 2021-06-08T23:43:52 | 2021-06-08T23:43:52 | 375,172,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,879 | py | import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
#import seaborn as sns
import os,sys
import pickle
import random
import math
import time
import numpy as np
import networkx as nx
from mpl_toolkits.basemap import Basemap
from matplotlib.collections import PatchCollection
from matplotlib.patches im... | [
"harshitgujral12@gmail.com"
] | harshitgujral12@gmail.com |
fde6281eb34dd49b154fe1691f03e30f8e08d440 | 16e266cf50a712ed29a4097e34504aac0281e6cb | /Functions/venv/lib/python3.6/site-packages/pyquickhelper/filehelper/anyfhelper.py | 099abe13d526716e47f80bb2c0003e82188782f8 | [] | no_license | felix-ogutu/PYTHON-PROJECTS | 9dd4fdcfff6957830587b64c5da3b5c3ade3a27e | 8c1297dbda495078509d06a46f47dc7ee60b6d4e | refs/heads/master | 2023-06-05T04:41:36.727376 | 2021-06-25T20:36:52 | 2021-06-25T20:36:52 | 380,348,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,485 | py | """
@file
@brief Various helpers about files
"""
import os
import stat
import warnings
from io import BytesIO, StringIO
from .synchelper import explore_folder_iterfile
from .internet_helper import read_url
from .file_info import is_file_string, is_url_string
def change_file_status(folder, status=sta... | [
"you@example.com"
] | you@example.com |
5b4cf8d11212e57c5fd1d40ec6d6a3838919e87e | 3b11dc40c7d772fffeb4d8683e5c9791c41f6454 | /addons/web_settings_dashboard/models/__init__.py | e647dca8b4efbfc39380431ee842d0286dce6933 | [] | no_license | Jacky-odoo/Ecobank | b986352abac9416ab00008a4abaec2b1f1a1f262 | 5c501bd03a22421f47c76380004bf3d62292f79d | refs/heads/main | 2023-03-09T18:10:45.058530 | 2021-02-25T14:11:12 | 2021-02-25T14:11:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | # -*- coding: utf-8 -*-
# Part of Byte. See LICENSE file for full copyright and licensing details.
import res_users
| [
"francisbnagura@gmail.com"
] | francisbnagura@gmail.com |
c2f2be1a327df1f3a35aa17a76a6ad945ffd81ef | 85f5dff291acf1fe7ab59ca574ea9f4f45c33e3b | /api/tacticalrmm/accounts/migrations/0017_auto_20210508_1716.py | 38ee27fb6e53bdc9761e76a2916e6630e3c3fad3 | [
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sadnub/tacticalrmm | a4ecaf994abe39244a6d75ed2166222abb00d4f4 | 0af95aa9b1084973642da80e9b01a18dcacec74a | refs/heads/develop | 2023-08-30T16:48:33.504137 | 2023-04-10T22:57:44 | 2023-04-10T22:57:44 | 243,405,684 | 0 | 2 | MIT | 2020-09-08T13:03:30 | 2020-02-27T01:43:56 | Python | UTF-8 | Python | false | false | 5,474 | py | # Generated by Django 3.2.1 on 2021-05-08 17:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0016_auto_20210507_1526'),
]
operations = [
migrations.AddField(
model_name='user',
name='can_code_sign'... | [
"dcparsi@gmail.com"
] | dcparsi@gmail.com |
165dc02321a8b09eeccda36f93b720a8284d9b4f | 77faf4ed009072132c7fbf63584ed8cf287d56e0 | /venv/Scripts/django-admin.py | 233ade7a48aac9dcb626cea7a5876a1fd11d8de5 | [] | no_license | rodrigues87/gpagendamentos | edcd9e5d8714ca2f215cbb835485dcc63a05eb1d | ced542c00182e246bd795e60815f9d1c705807c5 | refs/heads/master | 2022-11-05T12:46:02.339176 | 2020-06-24T21:47:29 | 2020-06-24T21:47:29 | 274,775,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | #!C:\Users\pedro.rodrigues\PycharmProjects\gpagendamentos\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"pedroh.mix@gmail.com"
] | pedroh.mix@gmail.com |
42796f96b85ea3e9a4e0b57a7285daee203eabbf | 72b74f66f83239a928bf049c0dd6e47576e57bae | /competition/recommend/get_data.py | 67e2f72ba45571785bf004f6a0005b2fe11f75d9 | [] | no_license | InsaneLife/DeepLearning | 7934056682e4fec7f3241dd2d4fbe1b4c5f192d2 | 4b60fe40587b96ba2a351c1b3cb832d03c2071ab | refs/heads/master | 2022-10-08T08:18:19.633449 | 2017-08-30T10:47:05 | 2017-08-30T10:47:05 | 65,697,666 | 2 | 4 | null | 2022-09-30T21:55:05 | 2016-08-15T02:16:34 | C++ | UTF-8 | Python | false | false | 4,206 | py | # coding=utf8
import cPickle
from numpy import *
import numpy as np
import matplotlib.pyplot as plt
import time
from sklearn import preprocessing
import MySQLdb
import sys
from sklearn import ensemble
reload(sys)
sys.setdefaultencoding('utf-8')
def excuteSql(sql):
"""
:rtype : MySQL执行
... | [
"993001803@qq.com"
] | 993001803@qq.com |
3ed79477ba88f3ece7ea4fd12a37b910eb9608fb | 00f3468d8917ac0c1b4df8b4dc50e82c0d9be3fa | /run_intrepid_byFamilyAccession.py | 7dac4fd2c24df21200adf447d60ae7c4c5086471 | [] | no_license | berkeleyphylogenomics/BPG_utilities | 4e332bb401b8c057502a1a0a1d532396bfff9542 | bbf5df137a0a459598c3f9073d80f0086e5f7550 | refs/heads/master | 2021-01-01T19:21:13.740575 | 2014-11-05T18:40:31 | 2014-11-05T18:40:31 | 24,867,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | #! /usr/bin/python
'''
This script takes a bpg accession and a uniprot accession, and run interpid to
score the residues in the sequence corresponding to the uniprot accession
'''
import sys
from bpg.common.utils.dir_of_family import get_dir_of_family_accession as get_dir
import glob
import os
def get_file(family_dir... | [
"afrasiabi@berkeley.edu"
] | afrasiabi@berkeley.edu |
eaa97c6f0704afe99f9a9b8c4d2b1b5328158f57 | b416bc21bc18e5c3c944b492b6e4aa3046ec033d | /setup.py | 08b3f7159c37fbae4429fe35307d9aad055354b0 | [] | no_license | annp89/django-cerberus | 672e3d568727790414498436629a7784d0140900 | bdbb1eacd43a7a7ddba62a2e5b1638576e4af2bc | refs/heads/master | 2021-01-12T22:29:21.599791 | 2015-07-08T12:02:59 | 2015-07-08T12:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | #!/usr/bin/env python
from setuptools import setup
setup(
name='django-cerberus',
version='0.3.2',
description='Django app that locks out users after too many failed login attempts.',
long_description=open('README.rst').read(),
author='Pragmatic Mates',
author_email='info@pragmaticmates.com',
... | [
"erik.telepovsky@gmail.com"
] | erik.telepovsky@gmail.com |
1f1c85d7ca48cd3ed5b1ab9ff9542f65bf38fd50 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Clutter/Interval.py | 64f52ff183bbfb89e5624bb38c8e676d4b37a78f | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 18,629 | py | # encoding: utf-8
# module gi.repository.Clutter
# from /usr/lib64/girepository-1.0/Clutter-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
ae26ece82e541122ad91b5de72f23b03b8727aad | f90006998d59f07d89e479548652a34a08b54cba | /harvester/manager.py | d925e13921d918e65b1bd67b6628c6d9ee8c785c | [] | no_license | TomasTomecek/MindTask | a7e7b7365211802c02e850a6241c88f755fabade | ee84e2772c7dfc1c7fa47269aea6e7c7f7115e07 | refs/heads/master | 2021-01-15T17:07:06.113978 | 2013-03-13T08:45:09 | 2013-03-13T08:45:09 | 8,249,489 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # -*- coding: utf-8 -*-
"""
DEPRECATED
Uses plancake API
"""
from targets.plancake import createPlancake
from xmind import get_tasks
P = createPlancake()
def sync_work_dir():
path = "/home/tt/Documents/covscan.xmind"
tasks = get_tasks(path)
for t in tasks:
P.run.add_task(t['title'])
def del... | [
"ttomecek@redhat.com"
] | ttomecek@redhat.com |
f0310175735a0c0d00a0d38d49ac2a7b3713e194 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/grizzled/grizzled/test/net/ftp/TestFTPListParse.py | 514eb7511122f129e59783235d31a8369e7945d9 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/grizzled/grizzled/test/net/ftp/TestFTPListParse.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
3a205fc74111f3fbba51b76f64849752932e4f3a | 84d0f700d12fb4121296c0e35eecd41afa126e06 | /src/pyglottolog/links/wikidata.py | d15ee268e2977e5e3fdcab658da8ebe18e878e92 | [
"Apache-2.0"
] | permissive | d97hah/pyglottolog | 00e1daf945d3d1fbc38cc066f12dd22ddd1f4ce5 | fe4c2a52d54cdcf0804b4f889598dbb9b8698dbd | refs/heads/master | 2021-01-05T09:43:51.069043 | 2020-02-07T15:02:32 | 2020-02-07T15:02:32 | 240,979,353 | 1 | 0 | Apache-2.0 | 2020-02-16T22:55:52 | 2020-02-16T22:55:51 | null | UTF-8 | Python | false | false | 1,401 | py | """
Query wikidata's SPARQL endpoint for info about Glottolog languoids identified by Glottocode.
"""
from csvw.dsv import reader
import requests
from .util import LinkProvider
SPARQL = """\
prefix schema: <http://schema.org/>
SELECT ?item ?glottocode ?wikipedia WHERE {
?item wdt:P1394 ?glottocode.
OPTIONAL {... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
5a3e0ba36c90006ed90901e09bc25b1696bf4bb2 | d668209e9951d249020765c011a836f193004c01 | /tools/pnnx/tests/ncnn/test_F_interpolate.py | 691e4379d2caf402c90d6cdf90be1f695dba1e18 | [
"BSD-3-Clause",
"Zlib",
"BSD-2-Clause"
] | permissive | Tencent/ncnn | d8371746c00439304c279041647362a723330a79 | 14b000d2b739bd0f169a9ccfeb042da06fa0a84a | refs/heads/master | 2023-08-31T14:04:36.635201 | 2023-08-31T04:19:23 | 2023-08-31T04:19:23 | 95,879,426 | 18,818 | 4,491 | NOASSERTION | 2023-09-14T15:44:56 | 2017-06-30T10:55:37 | C++ | UTF-8 | Python | false | false | 4,384 | py | # Tencent is pleased to support the open source community by making ncnn available.
#
# Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the... | [
"noreply@github.com"
] | Tencent.noreply@github.com |
ef7e6a5ed876bd7cef094788b45cd766dcbdb229 | 1a6ee5e89285e3229428af579dd88564c90a5e35 | /uploaded_files/convert_edf_to_csv.py | 18b711046bd66e6b76064dbed5aa5ef8a518f926 | [] | no_license | khannasarthak/BraiNetMCProject | 0887922c30bea2f4e800acf3985a6e29a6982b36 | 5023a11f1ed28980037ba7b48b5b877c3a02bc59 | refs/heads/master | 2021-05-06T06:09:39.434388 | 2017-12-16T01:37:18 | 2017-12-16T01:37:18 | 113,814,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | import pyedflib
import numpy as np
import sys
import pdb
from os import listdir
from os.path import isfile, join
onlyfiles = [f for f in listdir('D:\Academic\ASU\Sem 3\Mobile Computing\project\data') if
isfile(join('D:\Academic\ASU\Sem 3\Mobile Computing\project\data', f))]
for file in onlyfiles[1:]:
... | [
"khannasarthak.1994@gmail.com"
] | khannasarthak.1994@gmail.com |
b0e98f4260203a715071c123572f00224d2f45a3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02837/s310894869.py | bbed2101f73a5808d3ef8d54907bb98b31f388f3 | [] | 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 | 470 | py | n=int(input())
xy=[[] for i in range(n)]
for i in range(n):
a=int(input())
for j in range(a):
x,y=map(int,input().split())
x-=1
xy[i].append((x,y))
ans=0
for i in range(1<<n):
cnt=bin(i).count("1")
if cnt<=ans:continue
for j in range(n):
if i&(1<<j):
for x,y in xy[j]:
if y==1 and... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2235b60f526621579f71b8cf790e603a7533e410 | ffc909e32492a2e5a501863b27424fc470068f2b | /mysite/mysite/urls.py | a231206770b4e3655bde47053d24f98e94289435 | [] | no_license | vikvik98/PI-2018.2 | adbab46dada971dd3b99c9128d6071d06b6e6172 | a61bf33a93b6e0a2d1dfbc31515c2394cd7c38bf | refs/heads/master | 2020-03-29T14:49:46.993701 | 2018-12-20T18:12:01 | 2018-12-20T18:12:01 | 150,034,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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 ... | [
"vinicius.c.mascarenhas@hotmail.com"
] | vinicius.c.mascarenhas@hotmail.com |
65bace20b46ee9f651547ad683615531b1c05949 | ecad2803537295a24fe8274f99dfb85ead3a7191 | /debian/python-nova/usr/lib/python2.7/dist-packages/nova/scheduler/simple.py | 07281e80ec898bce0dc7c991a38ab08507276efb | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/stacklab-nova | 98400585ec3b4e3e94269dcb41578fffe7e2c8c1 | 4ab1698659b663ef222255610d1a5c042706dd65 | refs/heads/master | 2022-11-20T12:07:18.250829 | 2012-12-13T04:43:00 | 2012-12-13T04:43:00 | 282,166,345 | 0 | 0 | Apache-2.0 | 2020-07-24T08:31:57 | 2020-07-24T08:31:56 | null | UTF-8 | Python | false | false | 54 | py | ../../../../../share/pyshared/nova/scheduler/simple.py | [
"yuanotes@gmail.com"
] | yuanotes@gmail.com |
8c9797943d6af916752fece4a901c0e0bb6eccc3 | de4c519557357830e39cd7f970b4813afda259d4 | /0x11-python-network_1/1-hbtn_header.py | e008e73dde3c31833d6881e9c5b97b18ef9632e4 | [] | no_license | lancewburklin/holbertonschool-higher_level_programming | 096013cefcd2eefdf0dc16e1282bf15cd056792a | 56e40025c748d4f9eca2da268a1dd36923f148ff | refs/heads/master | 2022-12-17T00:12:43.896896 | 2020-09-24T22:29:56 | 2020-09-24T22:29:56 | 259,383,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #!/usr/bin/python3
"""
Time to get some headers
"""
if __name__ == "__main__":
import urllib.parse
import urllib.request
import sys
req = urllib.request.Request(sys.argv[1])
with urllib.request.urlopen(req) as response:
the_page = response.read()
print(response.info().get('X-Reques... | [
"1677@holbertonschool.com"
] | 1677@holbertonschool.com |
7cb58dbad836cefa16877095bb68faf83130033b | b885eaf4df374d41c5a790e7635726a4a45413ca | /LeetCode/Session3/EditDistance.py | a982a07b9e0420082c729422a8fdea4d3ac4d6cf | [
"MIT"
] | permissive | shobhitmishra/CodingProblems | 2a5de0850478c3c2889ddac40c4ed73e652cf65f | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | refs/heads/master | 2021-01-17T23:22:42.442018 | 2020-04-17T18:25:24 | 2020-04-17T18:25:24 | 84,218,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | class Solution:
def minDistance(self, word1: str, word2: str) -> int:
result = [[0 for _ in range(len(word2)+1)] for _ in range(len(word1) + 1)]
# update top row
for j in range(1,len(word2)+1):
result[0][j] = 1+ result[0][j-1]
# update first column
for i in rang... | [
"shmishra@microsoft.com"
] | shmishra@microsoft.com |
6db1a8305aba039c5e3c21b9728138b6aec35ef1 | 79e4547322e256ffbb31d4b94ac1353aaed05e8b | /lianxi001/testSearchpage.py | 9db75a29c4f619c2a483f82db372fd327a2bb53c | [] | no_license | 18939300962/dey_makabaka | 498b5e96bd885458f6b31c7684f1402895c5b284 | 43da8a0aabaa726ca5baf8181cb10a528afaab38 | refs/heads/main | 2023-08-11T20:07:55.614526 | 2021-09-17T03:26:55 | 2021-09-17T03:26:55 | 406,684,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import unittest
from selenium import webdriver
from time import sleep
from xue_001.lianxi001.searchpage import ymfz
class baidu(unittest.TestCase):
def setUp(self) -> None:
self.driver = webdriver.Firefox()
sleep(1)
def tearDown(self) -> None:
self.driver.quit()
def test_001(self):
... | [
"you@example.com"
] | you@example.com |
f98cedcefc4cf64e15cda5ecd4089d020811a46a | b80046173b4faea69b37c990cf58a8468908b60e | /decaf_PA4/TestCases/S4/runAll.py | c84f151b776e2939cf9fb5b958689e5a7b911bdc | [] | no_license | xcjthu/decaf | 0d7b9d419630254134b7d4922d1ff78fc6d62f41 | 00aba419c0e9c4529fece9213f98100d58681b45 | refs/heads/master | 2020-03-30T15:06:59.057022 | 2019-01-08T01:42:14 | 2019-01-08T01:42:14 | 151,349,002 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import subprocess
import sys
import re
filter = re.compile('^(SPIM Version|Copyright|All Rights|.*copyright|Loaded:).*(\n|$)', re.M)
def read_txt_file(filename):
with open(filename,'r') as f:
txt = f.read().strip()
# Python should be able to do ... | [
"xiaocj16@mails.tsinghua.edu.cn"
] | xiaocj16@mails.tsinghua.edu.cn |
3fcd89a35a972ace67806637f605e10926f78e7f | 1b8d87b37cc6de4b0ffaedf0d5dc3877888865c3 | /fhirclient/r4models/capabilitystatement_tests.py | 4029aec06582d96f7e76f6adfab602b5508d83ad | [] | no_license | Healthedata1/Flask-Alerts-Sender | d222e689de01daaa59d51aea2054d538db231cf9 | 0637cb1bb2c8af18243fce3aecc09723c2fdd155 | refs/heads/master | 2022-12-12T14:14:04.708052 | 2021-05-05T20:52:49 | 2021-05-05T20:52:49 | 231,147,534 | 1 | 0 | null | 2022-12-08T03:22:29 | 2019-12-31T21:20:13 | Python | UTF-8 | Python | false | false | 12,883 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07.
# 2019, SMART Health IT.
import os
import io
import unittest
import json
from . import capabilitystatement
from .fhirdate import FHIRDate
class CapabilityStatementTests(unittest.TestCase):
def... | [
"ehaas@healthedatainc.com"
] | ehaas@healthedatainc.com |
63b6fe894e3bf212e7380b18e879d58e44e687a6 | fdb9bdc6c4ab2f14ba71e544493706d5e275899f | /fhir/resources/tests/test_documentreference.py | 9457b70049e7d67fdf0d1889fd1aeaf55dbb5e83 | [
"BSD-3-Clause"
] | permissive | nazrulworld/fhir.resources | 6ae8aea8180c611b0c5050759c6dcdf63e4cb061 | 1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3 | refs/heads/main | 2023-08-30T18:27:27.277249 | 2023-07-03T19:57:06 | 2023-07-03T19:57:06 | 165,297,877 | 256 | 83 | NOASSERTION | 2023-08-24T15:34:05 | 2019-01-11T19:26:41 | Python | UTF-8 | Python | false | false | 25,822 | py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/DocumentReference
Release: R5
Version: 5.0.0
Build ID: 2aecd53
Last updated: 2023-03-26T15:21:02.749+11:00
"""
from pydantic.validators import bytes_validator # noqa: F401
from .. import fhirtypes # noqa: F401
from .. import documentreferen... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
0a89ed348f25066a76bf1c45a997f88237ddf972 | ec4ac469d53ffc3892fdc5a16db4af2df26d418a | /tests/unit/test_context.py | 519346e12b9f6b607017157a2849d5605ee2168a | [
"Apache-2.0"
] | permissive | akshat-kakkar/boson | bce029027ac36561081f36b0ce24f4cff90fb9d8 | c9c78a4eaec2d189d42186447d0a1b91fa29aff4 | refs/heads/master | 2021-01-17T23:12:08.825574 | 2013-06-18T14:52:44 | 2013-06-18T14:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 OpenStack LLC.
# 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/... | [
"kevin.mitchell@rackspace.com"
] | kevin.mitchell@rackspace.com |
52eec84a72224ea351683a6f180ae11b5c224287 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/sphinx/pycode/pgen2/grammar.py | ac276776e76afeca1cf839a33f6a5e52ec18031e | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 5,446 | py | # Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""This module defines the data structures used to represent a grammar.
These are a bit arcane because they are derived from the data
structures used by Python's 'pgen' parser generator.
There's also ... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
7cb38de645fccfb7872ea68671698c2f958c2666 | 3d4fcc7cbfafc4aaebea8e08d3a084ed0f0d06a1 | /Programme_1/Creation_donnees/MIDI/appass_1fMidiSimple.py | 22d3e070b585ba319e45209ec6af98df377625d0 | [] | no_license | XgLsuLzRMy/Composition-Musicale-par-Reseau-de-Neurones | 0421d540efe2d9dc522346810f6237c5f24fa3bf | 518a6485e2ad44e8c7fbae93c94a9dc767454a83 | refs/heads/master | 2021-09-03T20:43:01.218089 | 2018-01-11T20:02:00 | 2018-01-11T20:02:00 | 106,448,584 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 706,390 | py | import midi
pattern=midi.Pattern(format=1, resolution=480, tracks=\
[midi.Track(\
[ midi.NoteOnEvent(tick=2160, channel=0, data=[60, 35]),
midi.NoteOnEvent(tick=600, channel=0, data=[60, 0]),
midi.NoteOnEvent(tick=0, channel=0, data=[56, 31]),
midi.NoteOnEvent(tick=120, channel=0, data=[56, 0]),
midi.Note... | [
"jeremy.catelain@insa-rouen.fr"
] | jeremy.catelain@insa-rouen.fr |
1e9fdc21ffd9a2e6eadfe427547b47d7a4d11ff2 | 4e23ff457c737886d3f1280162b90987bbc12211 | /main/apps/product/migrations/0003_remove_product_slug.py | e895de46f18684e2c2ee03f33a40d0d9c4c574c9 | [] | no_license | ehoversten/Ecommerce_Django | 8ab1edeb1b7ed2a0e9f33920ecccc2d6b1996cd9 | b109b62e2fd318c4feb37c448898cbeada722968 | refs/heads/master | 2022-12-21T09:42:53.317891 | 2019-02-14T16:24:00 | 2019-02-14T16:24:00 | 143,313,907 | 6 | 2 | null | 2022-11-22T02:34:42 | 2018-08-02T15:34:32 | Python | UTF-8 | Python | false | false | 384 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-11-10 03:37
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('product', '0002_product_slug'),
]
operations = [
migrations.RemoveField(
... | [
"ehoversten@gmail.com"
] | ehoversten@gmail.com |
ed9a585555b7327b72bfc302f787c6a004b4fe6c | a7e1003a57bea59e4209c36c9e4493686b546c88 | /manga_py/providers/helpers/std.py | 77255ccaee538b26062a57ba912dc8461160ece6 | [
"MIT"
] | permissive | terepanda/manga-dl | b7de04ea42d64c71689860502895bf0bc274f9a4 | 2ac3a314c2f67ad22f6da7e293ec6b3a132d7834 | refs/heads/stable_1.x | 2020-04-28T09:22:26.055562 | 2019-03-11T16:07:00 | 2019-03-11T16:07:00 | 173,831,799 | 0 | 0 | MIT | 2019-03-04T22:30:24 | 2019-03-04T22:30:24 | null | UTF-8 | Python | false | false | 3,945 | py | from ._http2 import Http2
class Std:
_vol_fill = False
def get_archive_name(self) -> str:
idx = self.get_chapter_index()
self._vol_fill = True
return self.normal_arc_name({'vol': idx.split('-')})
def _elements(self, selector, content=None) -> list:
if not content:
... | [
"sttv-pc@mail.ru"
] | sttv-pc@mail.ru |
174f96c7670234bd9fcc4ca9aaf1668399ac8581 | c09e5bb87702a0828b0ec1c2eb221566529f2432 | /passValue.py | 43cd3c8ab40363c7e55ba6db799ef3f769e81172 | [] | no_license | anubhav-shukla/Learnpyhton | 396a1c8748c6cf640726e3609f7399b161c00858 | 7b53b30a0a6829d480f1d3c7d5a914de1c57fa73 | refs/heads/master | 2023-07-05T03:04:22.117259 | 2021-09-01T12:46:01 | 2021-09-01T12:46:01 | 346,263,181 | 0 | 0 | null | 2021-09-01T12:46:02 | 2021-03-10T07:02:27 | Python | UTF-8 | Python | false | false | 3,827 | py | def power(x,n):
ans=1
for i in range(0,n):
ans=ans*x
return(ans)
print(power(12,2))
# python passValue.py
def update(l,i,v):
if i >= 0 and i<len(l):
l[i] = v
return(True)
else:
v=v+1
return(False)
# recursive function
... | [
"noreply@github.com"
] | anubhav-shukla.noreply@github.com |
a1a8660aca47f42b860f93a9427555cf24b542b8 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-codeartsdeploy/huaweicloudsdkcodeartsdeploy/v2/model/host_cluster_info_detail.py | 8919759f5b1e5c6455fc4865ba566a485457a6cc | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 11,627 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class HostClusterInfoDetail:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attrib... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7bb3f5dfabd43c5f9198ac89e0fbf11d7e5c624d | 563b4b4938439fcbd6da78eee8befdff00feab40 | /PyQTT/xCacls_shell/main_iCacls.py | 3f41b9a9a778dc4b5fbadbcd51118e4f3febb28e | [] | no_license | erfaenda/PiuPiu | ae54656ae2b0e13ce0ab895933075be8e50c11f9 | cce71b19bcdcfb489c925a1f1ac0ebc19a5df7ed | refs/heads/master | 2021-01-25T11:28:47.694443 | 2019-03-19T18:06:19 | 2019-03-19T18:06:19 | 123,403,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,075 | py | import sys, os
import subprocess
# Импортируем наш интерфейс из файла
from PyQTT.xCacls_shell.iCaclsGUI_2 import *
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import QFileDialog, QMessageBox, QCompleter
from ldap3 import Server, Connection, SUBTREE
class MyWin(QtWidgets.QMainWindow):
complitter_list ... | [
"regalko7@gmail.com"
] | regalko7@gmail.com |
111318b353d2611acfa430a79a7d6afbb8d2df09 | b9f21bc90eed396dde950c30a1b482be0fb8ba30 | /AtCoder/ABC/114-C.py | c57b6b69f5e512ae3c96d1ba0e82597308410915 | [] | no_license | nanigasi-san/nanigasi | 127a21db1b31759908fd74cebabe240e5abf8267 | 5e3c3e78344dd9558cafe439beb272b9a80d0f3a | refs/heads/master | 2020-04-03T18:57:40.132489 | 2019-06-19T15:03:38 | 2019-06-19T15:03:38 | 155,504,101 | 1 | 0 | null | 2019-02-20T09:40:05 | 2018-10-31T05:33:11 | Python | UTF-8 | Python | false | false | 1,039 | py | N = int(input())
counter = 0
list = ['3','5','7']
ok = []
for a in list:
for b in list:
for c in list:
ok.append(a+b+c)
for d in list:
ok.append(a+b+c+d)
for e in list:
ok.append(a+b+c+d+e)
for f in list:
... | [
"nanigasi.py@gmail.com"
] | nanigasi.py@gmail.com |
273585541f04f5fd4fa41977fad25a3e49b88d67 | b83a23fa50e8f1ca6ce1fb3b550e6ceb1b513261 | /aliyun-python-sdk-live/aliyunsdklive/request/v20161101/SetLiveStreamsNotifyUrlConfigRequest.py | 2f6e93546e14124f72fb529fd6c5cf0c95413b75 | [
"Apache-2.0"
] | permissive | sunfuze/aliyun-openapi-python-sdk | c9f8143cf1ceac1bdd09f36d5f4493a510f48a0b | 09910c57081f207da294d6d2fe981f7f913bc501 | refs/heads/master | 2021-03-24T12:01:12.107284 | 2018-01-18T06:32:06 | 2018-01-18T06:32:06 | 118,209,677 | 1 | 0 | null | 2018-01-20T04:41:58 | 2018-01-20T04:41:58 | null | UTF-8 | Python | false | false | 1,679 | 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... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
01cfa1143e857f5968e5726bc25fd0c5afc3b25d | 6eb56f2e3f14f2373be07fe95b1c6fedf1e2d49f | /month02/multiprocessing/process01.py | d9d23ab45d769064371f0b1ad59cc856ea8458a6 | [
"Apache-2.0"
] | permissive | chaofan-zheng/python_leanring_code | fe22b0370cadebf7456477269aff4a35cef0eb41 | 0af44ff39b9ded2c1d2cc96c6d356d21170ac04d | refs/heads/main | 2023-02-28T07:56:46.457552 | 2021-02-10T15:08:33 | 2021-02-10T15:08:33 | 323,584,115 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | """
进程模块使用,基础示例
"""
# 不能选带横线的
import multiprocessing
from time import sleep
a = 1
# 进程执行函数
def fun():
print("开始运行第一个进程")
sleep(2)
global a
print(a)
a = 100 # 打印子进程a
print("第一个进程结束")
# 实例化进程对象
p = multiprocessing.Process(target=fun)
# 启动进程 此刻才会产生进程,运行fun函数
p.start()
print("第二个进程开始运行")
slee... | [
"417355570@qq.com"
] | 417355570@qq.com |
0e0ce5dacbae08b36bccc5cd069e0d2912d4d2ea | 5b691997b10850109d8ec0b8fb8d4e344354295b | /tests/preprocessing/enrichData_test.py | 7ec5e2d8de0a151690ee3632fd9bea9526636859 | [
"MIT"
] | permissive | elifesciences/peerscout | b6d6b3bdcfe6f2c27bda733cceaaa8b9fb696891 | 2e899f268b4712ffb7a09b171de3f3841337d65d | refs/heads/develop | 2021-03-24T11:54:18.170865 | 2019-09-26T11:50:36 | 2019-09-26T11:50:36 | 84,193,664 | 3 | 3 | MIT | 2019-10-25T05:25:17 | 2017-03-07T11:54:00 | Python | UTF-8 | Python | false | false | 21,262 | py | import logging
import json
from typing import Dict
from unittest.mock import patch, Mock, ANY
from configparser import ConfigParser
from datetime import datetime, timedelta
import pytest
from peerscout.utils.config import dict_to_config
from peerscout.shared.database import populated_in_memory_database
from peersco... | [
"noreply@github.com"
] | elifesciences.noreply@github.com |
7c1dd12894b0fd27e59b6ca2032bf502df13aa2a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_supped.py | 1619278ecb046871ec31f654f97626cb64339b8c | [
"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 | 231 | py |
from xai.brain.wordbase.adjectives._sup import _SUP
#calss header
class _SUPPED(_SUP, ):
def __init__(self,):
_SUP.__init__(self)
self.name = "SUPPED"
self.specie = 'adjectives'
self.basic = "sup"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
38ff91091d2c7ebb674c446b29cb4bd7e6e52756 | f2dd3825da3ed8b6e52058453a9340f5330581c2 | /0x0A-python-inheritance/11-square.py | 394d31f1fee9da9a0a8aafeaa487a00581dbd5ca | [] | no_license | mlaizure/holbertonschool-higher_level_programming | 855c8b2672b59d27cba4c05ad8a7bb5f30b5d253 | 0d2bcdab97c31e79093497a1783a52e56e10ac6e | refs/heads/main | 2023-04-22T23:20:58.284834 | 2021-05-13T01:00:20 | 2021-05-13T01:00:20 | 319,399,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | #!/usr/bin/python3
"""Module with a class Rectangle that inherits from class BaseGeometry"""
Rectangle = __import__('9-rectangle').Rectangle
class Square(Rectangle):
"""instantiates with size validated by int validator in BaseGeometry and
area and str method"""
def __init__(self, size):
self.int... | [
"maddi.laizure@gmail.com"
] | maddi.laizure@gmail.com |
bb23968b7d243179451e0d3d2007a1ea641e37ce | 1c483107def8036174cb884db85a4e909ad9d758 | /W.py | ef577a4fcdcbfcdcc255345b73639591127262c4 | [
"MIT"
] | permissive | Ashokkommi0001/Python-Patterns-Alphabets-Upper_case | e40dd6c985732b119caf614af7b597cfe330c59c | 0735bb1d7333ea850b91b1a3cf37be659885267b | refs/heads/main | 2023-03-16T07:08:03.182184 | 2021-03-08T04:48:45 | 2021-03-08T04:48:45 | 342,660,132 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | def W():
for row in range(6):
for col in range(5):
if (col==0 or col==4) or ( row>2 and (row+col==5 or row-col==1)):
print("*",end=" ")
else:
print(end=" ")
print()
| [
"noreply@github.com"
] | Ashokkommi0001.noreply@github.com |
95bcf908fab8b85bf96d76b945732272765029d7 | 8535bbc7781c4691880c935bd7025646f0dbb7c3 | /stack.py | d718058f16a98bef2bfa46d4d99e724dced1b56b | [] | no_license | Mahadev0317/Codekata | 3b2149f3116ebe4b48b2059b873544c27b23ff39 | c35fa0ed0c4870faea69152638f461e743a9ff69 | refs/heads/master | 2020-04-15T04:59:17.062947 | 2019-05-29T04:46:35 | 2019-05-29T04:46:35 | 164,404,727 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | class stack:
def __init__(self):
self.items=[]
def push(self,data):
self.items.append(data)
def pop(self):
if self.items==[]:
print("Empty Stack")
else:
del(self.items[len(self.items)-1])
def display(self):
print(self.items)
s=stack()
s.push(20)
s.push(30)
s.push(10)
s.display()
... | [
"noreply@github.com"
] | Mahadev0317.noreply@github.com |
470e97649e7d9e599171569f4c73ca1d13faf422 | 63732a7ca27c0ff5a59fc0194457d7f4218fe046 | /docker_capture.py | 0c71d0b8ca6e88c0fc63d9ecbd23b0b77a34d03f | [
"Apache-2.0"
] | permissive | damay27/Forensics_Project | 650d2976714c3425fceee0ff26b570e9abb74590 | 6984248ea6b716663769d461c0e43cf39d86ff0c | refs/heads/master | 2022-04-28T20:40:41.623485 | 2020-05-02T16:26:48 | 2020-05-02T16:26:48 | 260,723,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | import docker
import os
import time
import subprocess
import sys
if len( sys.argv ) < 2:
print("No container ID given")
else:
container_id = sys.argv[1]
low_level_client = docker.APIClient("unix:///var/run/docker.sock")
client = docker.from_env()
#Get the path to where the container filesystem is stored on d... | [
"you@example.com"
] | you@example.com |
62ac1af39f20ed815ba1381575ecb5b14f70d714 | 929d12e11ed2fb69476b9d07932e38662f0ce6fc | /Trees/Binary tree to Circular Doubly Linked List.py | 2fa5c1e8573e4bf8d76690e52f353d0f13f5a3eb | [] | no_license | arnabs542/Data-Structures-And-Algorithms | b8f341a31ca18044bf179294fbcb0fac1f835216 | ffcc2f8a25520ce37cd1f67e6225281c85141a65 | refs/heads/master | 2022-12-13T14:09:55.005341 | 2020-09-13T11:58:58 | 2020-09-13T11:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | """
Binary tree to Circular Doubly Linked List
Problem Description
Given a binary tree convert it into circular doubly linked list based on the following rules:
The left and right pointers in nodes are to be used as previous and next pointers respectively in converted Circular Linked List.
The order of nodes in List... | [
"rishu1998jain@gmail.com"
] | rishu1998jain@gmail.com |
91f0d7546fafdfe30a9041bd85fa258782224a56 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/phpikh001/question4.py | 7539397bd4734adda72a820b55988ba78248334c | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | #Ikhlaas Pohplonker
#23 April 2014
#a program that takes in a list of marks and outputs a histogram representation of the marks according to the mark categories at UCT
marks=input("Enter a space-separated list of marks:\n")
list_of_marks=marks.split(" ")#makes an array of marks
fail=[]
third=[]
lower_second=[]
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
2919c3b860310d470920c1e1c97c2d76c6ecffce | dde3d166185624d14118cfa95d7f4762d2064f66 | /src/quotationtool/biblatex/tests.py | 0fcf55d4780677887e28ab0f209bc675b6f7c666 | [] | no_license | quotationtool/quotationtool.biblatex | 965b618cf0f0f6b68f86139003493a3effa0582c | 3d7da49cc424c54808a4014d189440481ef9a72e | refs/heads/master | 2020-03-08T06:52:39.666677 | 2012-09-17T20:02:34 | 2012-09-17T20:02:34 | 127,974,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,878 | py | import unittest
import doctest
from zope.component.testing import setUp, tearDown, PlacelessSetup
import zope.interface
import zope.schema
import zope.component
import zope.security
from zope.schema import vocabulary
from zope.schema.interfaces import IVocabularyFactory, IVocabulary
from zope.configuration.xmlconfig im... | [
"christian.lueck@ruhr-uni-bochum.de"
] | christian.lueck@ruhr-uni-bochum.de |
c027c3521d0a2e60db4ecdc47e2ad23e41d0cc6d | 905f40a4ad8e17bb4871cf87b6ee184a76a77c2a | /products/tests/test_product_list.py | 88e2034a7f903edd0394c37f944d8f69aeeb4815 | [] | no_license | sai9912/mypyton | 5e1f7ca278051d5f588af1d9accae5fd1780020b | 338fd6396dbdce971bc542718fbb9608bdcfc2a7 | refs/heads/master | 2022-12-16T05:04:34.590818 | 2019-04-18T09:18:06 | 2019-04-18T09:18:06 | 176,324,427 | 0 | 0 | null | 2022-12-08T02:31:10 | 2019-03-18T16:16:56 | Python | UTF-8 | Python | false | false | 6,334 | py | from . import TestCase
class PageProductsListTestCase(TestCase):
url = 'products:products_list'
user = None
product1 = None
product2 = None
product3 = None
def setUp(self):
self.user = self.setUp_createAccount()
def test_page_exist(self):
response = self.client.get(self.u... | [
"root@ip-172-31-29-10.ap-south-1.compute.internal"
] | root@ip-172-31-29-10.ap-south-1.compute.internal |
84acf126a83f11869e599ce845e01543eb6350c8 | 43e2e801f6df426a9b923828e8ee3c0b0f022c66 | /ngram_util.py | 123b079434c6f269c6a6e09d0025a2059b5110e2 | [
"MIT"
] | permissive | mrdrozdov/knnlm | 0333eadbd1d0c6e16521475dc07d57d7dce8b02e | 61419077eb7f79c3ba7a196b4cc7cf722f4ba8f4 | refs/heads/master | 2023-04-19T14:13:58.242980 | 2021-05-20T02:34:17 | 2021-05-20T02:34:17 | 317,321,152 | 0 | 0 | MIT | 2021-01-26T17:44:06 | 2020-11-30T19:12:33 | null | UTF-8 | Python | false | false | 2,722 | py | import collections
import numpy as np
import torch
from tqdm import tqdm
class Model:
def __init__(self, c, max_ngram=3):
self.c = c
self.c1_sum = sum(c[1].values())
self.max_ngram = max_ngram
def batch_predict(self, src, tgts):
# TODO: Should we be able to use small max_ngr... | [
"andrew@mrdrozdov.com"
] | andrew@mrdrozdov.com |
ccd0fefcc18a710332d55632d6c20edcd54afda7 | 3dcd285dbd2ec9db77d00880028ecbf2ec911824 | /main.py | 7c31f2d40b2b4edc25926291f08960803e41b858 | [
"MIT"
] | permissive | tomguluson92/Bitcoin-Trader-RL | 81af38df5da10f922dfbe1b139099d8abd2213b2 | b13fb7a181fe0583e5e0a58caaff3305c58bd1e4 | refs/heads/master | 2020-05-23T02:06:32.071390 | 2019-05-14T10:07:30 | 2019-05-14T10:07:30 | 186,596,593 | 0 | 0 | MIT | 2019-05-14T10:06:32 | 2019-05-14T10:06:31 | null | UTF-8 | Python | false | false | 892 | py | import gym
import pandas as pd
from stable_baselines.common.policies import MlpPolicy
from stable_baselines.common.vec_env import DummyVecEnv
from stable_baselines import A2C
from env.BitcoinTradingEnv import BitcoinTradingEnv
df = pd.read_csv('./data/bitstamp.csv')
df = df.sort_values('Timestamp')
slice_point = in... | [
"adamjking3@gmail.com"
] | adamjking3@gmail.com |
14fcc9b6b48ec5d03fea59bd1f3a3020d5fb33be | 94e7c790d17ba08e8a2a74077dd8b75e7ac120b0 | /chapter01/Exercise08_01.py | 9a126a181ea5e998f205caa727d449bf0c1ddb5e | [] | no_license | lutfar9427/Exercises_Solution_of_INTRODUCTION_TO_PROGRAMMING_USING_Python | 9632e515428685dcaa7d057cf52f0e191e9f7ae0 | d037475316e6c6b7c6a7a7023318ef4ab4ed3f8d | refs/heads/master | 2020-09-02T09:04:44.990668 | 2018-10-20T00:50:12 | 2018-10-20T00:50:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | '''
1.8 (Area and perimeter of a circle) Write a program that displays the area and perimeter of a circle that has a
radius of 5.5.
/**
* @author BASSAM FARAMAWI
* @since 2018
*/
'''
# Display the area
print("Circle 5.5 area = ", 5.5 * 5.5 * 3.14)
# Display the perimeter
print("Circle 5.5 perimeter = ", ... | [
"tiodaronzi3@yahoo.com"
] | tiodaronzi3@yahoo.com |
6187db4f823aa608eac92a9292a13bcd09f8c069 | c93b0f008d0977e0b9327ad8b930489f5cccae97 | /platfrom/startodpsjob.py | 4449549f7630c023c77844c634e79b69742af129 | [] | no_license | ParkPan/ATCasePackage | 15caa664bd94c014ccbd1780353bfc5fcc0caa87 | edad6c1d5a343c740e251821fee0c29336f3d435 | refs/heads/master | 2020-06-16T02:44:06.323352 | 2016-12-01T03:46:44 | 2016-12-01T03:46:44 | 75,251,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | import sys
import shutil
import os
import time
import constvars
from pipeofodps import MysqlDbObj
from commonfunc import exec_odps_commands
def perpareconfig(workpath, configfolder):
for filename in os.listdir(configfolder):
if os.path.exists(workpath + "/conf/%s" % filename):
os.remove(workpa... | [
"panpan@cloutropy.com"
] | panpan@cloutropy.com |
b9c238d004cce2d7bfc88046e19f15fc6db5402e | 4111ca5a73a22174f189361bef654c3f91c3b7ed | /Lintcode/Ladder_1_Algorithm/03. Two Pointers Algorithm/59. 3Sum Closest.py | 23fa179b2c4899d8ae635f401e42e4655125753e | [
"MIT"
] | permissive | ctc316/algorithm-python | 58b541b654509ecf4e9eb8deebfcbdf785699cc4 | ac4580d55e05e93e407c6156c9bb801808027d60 | refs/heads/master | 2020-03-16T06:09:50.130146 | 2019-08-02T02:50:49 | 2019-08-02T02:50:49 | 132,548,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | class Solution:
"""
@param numbers: Give an array numbers of n integer
@param target: An integer
@return: return the sum of the three integers, the sum closest target.
"""
def threeSumClosest(self, numbers, target):
if len(numbers) < 3:
return 0
numbers.sort()
... | [
"mike.tc.chen101@gmail.com"
] | mike.tc.chen101@gmail.com |
87af1491e763b28e2ac7b6476729bf5ba96554da | 63fb39539d7629c31b917f38572de16cabac3bc0 | /asposecellscloud/apis/cells_task_api.py | 51829e2089c0be076d0d0997178fc2230c30e170 | [] | no_license | sabir-gmail/aspose-cells-cloud-python | 95b5bba5e7c788b2f5a7d1021251aea24e05b133 | a19f720fbfa30c2a92b2862718c4b176b3692641 | refs/heads/master | 2020-03-27T14:05:33.798235 | 2018-08-14T02:16:17 | 2018-08-14T02:16:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,280 | py | # coding: utf-8
"""
Web API Swagger specification
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import ... | [
"nick.liu@aspose.com"
] | nick.liu@aspose.com |
500b4c19d8c72f52a8e621b86dc59898e9858c46 | c3204b5bc1fec0e8a67cf548337c4e3c05137f05 | /todo_app/tasks/serializers.py | 7580176b5631220c396ce2eeb507b83fe5052a04 | [] | no_license | bertocarl/timer | 328889e876f7862e91fbaf3ad03abf285968681e | 91fdac77a89ab28e743653e66e27408ae10df65a | refs/heads/master | 2022-12-08T03:51:10.131115 | 2019-06-22T07:37:17 | 2019-06-22T07:37:17 | 192,233,932 | 0 | 0 | null | 2022-11-22T03:15:05 | 2019-06-16T20:28:28 | Python | UTF-8 | Python | false | false | 274 | py | from rest_framework import serializers
from .models import Task
class TaskSerializer(serializers.ModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
class Meta:
model = Task
fields = ('id', 'title', 'completed', 'owner')
| [
"aomware@gmail.com"
] | aomware@gmail.com |
be6efb1e5ee757702ddf85d702f6e399b90aeb2d | 66cab93c26cc252f412860778131b208c6f120be | /parts/newproject/venusian/tests/fixtures/importonly/__init__.py | 0d33c8bd103e50c29546690095f489958055841f | [] | no_license | marcogarzini/Zodiac | 3332733f6ae8d64924557ff022f44c835aeac0a9 | 06e8ad0c709189dc65a26fb7d6c17a9ee2bc9112 | refs/heads/master | 2016-09-11T03:18:12.805299 | 2014-01-17T12:50:03 | 2014-01-17T12:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | /home/user1/newproject/eggs/venusian-1.0a8-py2.7.egg/venusian/tests/fixtures/importonly/__init__.py | [
"user1@user1-VirtualBox.(none)"
] | user1@user1-VirtualBox.(none) |
1ac32935ca0a226e95cb9903a5ac01b381723b0f | ec09932ef977bb0f9117193c3200b0807c588542 | /azure-mgmt-network/azure/mgmt/network/models/vpn_client_root_certificate.py | f4615221fc790aa15cce615c52a5425a6f29481e | [
"MIT"
] | permissive | biggorog/azure-sdk-for-python | 26b9111f5d939e68374e2ff92dd5a3e127100a49 | 31e15670100f57a03aac9ada5fd83eedc230e291 | refs/heads/master | 2020-12-24T11:37:13.806672 | 2016-11-04T20:50:04 | 2016-11-04T20:50:04 | 73,026,650 | 1 | 0 | null | 2016-11-06T23:48:38 | 2016-11-06T23:48:37 | null | UTF-8 | Python | false | false | 2,044 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
7dd86dac7563f0009384f7f8f941d46906a81a78 | aec9a1f3d1d36f19724e745ca4d09a20f67208dc | /matching/migrations/0002_auto_20201226_1802.py | ced37e26b0ce90a72160e6ddde9daae1a260699a | [] | no_license | endlessor/open-united-backend | b1b1c3411d0d48bc79b35895c70f24d773ac7344 | 86f6905cce14b834b6bf059fd33157249978bd14 | refs/heads/main | 2023-04-29T13:35:28.529360 | 2021-05-17T14:16:39 | 2021-05-17T14:16:39 | 368,211,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # Generated by Django 3.1 on 2020-12-26 18:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('talent', '0001_initial'),
('matching', '0001_initial'),
('work', '0001_initial'),
]
... | [
"robcoder@hotmail.com"
] | robcoder@hotmail.com |
f558e7ffbc34925a2df51138d4e404261f4fafed | 2d82d4c6574bd6d32f2cf1c781615f7951f55f66 | /muntjac/event/dd/drop_target.py | ccb3e8c274149c9b4e6c06aaad74d7db937512c6 | [
"Apache-2.0"
] | permissive | metaperl/muntjac | f83f745ee03942a61af92ee7fba7285aa9c46f3c | 8db97712edd81b4d25deaaa48587d2a08010f2c8 | refs/heads/master | 2021-01-15T22:04:25.057862 | 2012-11-09T03:52:59 | 2012-11-09T03:52:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | # @MUNTJAC_COPYRIGHT@
# @MUNTJAC_LICENSE@
"""An interface for components supporting drop operations."""
from muntjac.ui.component import IComponent
class IDropTarget(IComponent):
"""IDropTarget is an interface for components supporting drop operations. A
component that wants to receive drop events should im... | [
"r.w.lincoln@gmail.com"
] | r.w.lincoln@gmail.com |
2bde6e8ee3f15dbbfb3d30a49d68d1eab407591f | e9d1c68e50a237fa9237df1b758eac8445ecde9c | /webapp/webapp/webapp/settings.py | e94215101cb5074d3baf79fff0d2f2aa6097f248 | [
"MIT"
] | permissive | sashgorokhov/puppet-training | 2be44c4edf437475bbf76ff96059a52d9cee46ab | 91c524ac02d966d692cf5c2b23b6021983f4b4ab | refs/heads/master | 2021-01-20T21:06:13.575967 | 2016-06-27T12:20:46 | 2016-06-27T12:20:46 | 61,709,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | """
Django settings for webapp project.
Generated by 'django-admin startproject' using Django 1.9.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# ... | [
"sashgorokhov@gmail.com"
] | sashgorokhov@gmail.com |
5e7825f7b5a97a518d8caae8b65683f418de9683 | 8f0b0ec0a0a2db00e2134b62a1515f0777d69060 | /scripts/study_case/ID_5/matchzoo/engine/base_task.py | b1caff7896818c1567eee9a34a2cfdfde2ad807a | [
"Apache-2.0"
] | permissive | Liang813/GRIST | 2add5b4620c3d4207e7661eba20a79cfcb0022b5 | 544e843c5430abdd58138cdf1c79dcf240168a5f | refs/heads/main | 2023-06-09T19:07:03.995094 | 2021-06-30T05:12:19 | 2021-06-30T05:12:19 | 429,016,034 | 0 | 0 | Apache-2.0 | 2021-11-17T11:19:48 | 2021-11-17T11:19:47 | null | UTF-8 | Python | false | false | 2,730 | py | """Base task."""
import typing
import abc
import torch
from torch import nn
from scripts.study_case.ID_5.matchzoo.engine import base_metric
from scripts.study_case.ID_5.matchzoo.utils import parse_metric, parse_loss
class BaseTask(abc.ABC):
"""Base Task, shouldn't be used directly."""
TYPE = 'base'
d... | [
"793679547@qq.com"
] | 793679547@qq.com |
b84d06c3461450a4dd5d67bcd62e94e9742e0cae | 05628f5b5bca2969db8452cf47db5d7c10f0a1f5 | /web_flask/3-python_route.py | 855acb866e089732fa9e378ce65f05134ec548ba | [] | no_license | OscarDRT/AirBnB_clone_v2 | c75e8bd6248935726205b3d1282dd4b7969f6fbd | 2d867ea0d8af465faceac616a0dc67e3534b0002 | refs/heads/master | 2021-05-18T03:39:21.080421 | 2020-04-22T17:27:45 | 2020-04-22T17:27:45 | 251,087,252 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/python3
from flask import Flask, escape
app = Flask(__name__)
@app.route('/', strict_slashes=False)
def index():
return ("Hola HBNB!")
@app.route('/hbnb', strict_slashes=False)
def hbnb():
return ("HBNB")
@app.route('/c/<text>', strict_slashes=False)
def c_text(text):
text = text.replace(... | [
"oscarnetworkingpro@gmail.com"
] | oscarnetworkingpro@gmail.com |
93eb1bc909d410f5f123ac596860fa0b023b5f2b | bce8058eacca7f11a0b271f6c9d5d791e56fc94a | /poo/loja/vendedor.py | 1ee0beb63641e58292bd1a8420db92f7eeceb6ec | [] | no_license | danielcanuto/python_revisao | b230a372cd5d9b675150598028b4b31610e0d1a4 | 7f313747cbdb19375c87edb45475e095108bd1f9 | refs/heads/main | 2023-03-26T13:48:05.976736 | 2021-03-24T16:30:15 | 2021-03-24T16:30:15 | 342,392,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from .pessoa import Pessoa
class Vendedor(Pessoa):
def __init__(self, nome, idade, salario):
super().__init__(nome, idade)
self.salario = salario
def __str__(self):
return f'{super().__str__()} {self.salario}' | [
"danielpscanuto83@gmail.com"
] | danielpscanuto83@gmail.com |
0568c51d9dbcea915f8ddb73a991835742360320 | 15f0514701a78e12750f68ba09d68095172493ee | /Python3/12.py | b1ebd29f94c7d025f7458bffd76fe08e1bd21237 | [
"MIT"
] | permissive | strengthen/LeetCode | 5e38c8c9d3e8f27109b9124ae17ef8a4139a1518 | 3ffa6dcbeb787a6128641402081a4ff70093bb61 | refs/heads/master | 2022-12-04T21:35:17.872212 | 2022-11-30T06:23:24 | 2022-11-30T06:23:24 | 155,958,163 | 936 | 365 | MIT | 2021-11-15T04:02:45 | 2018-11-03T06:47:38 | null | UTF-8 | Python | false | false | 3,886 | py | __________________________________________________________________________________________________
56ms
class Solution:
def intToRoman(self, num: int) -> str:
res = ''
return self.toPartRom(num//1000, 'M--') + \
self.toPartRom((num % 1000)//100, 'CDM') + \
self.toPa... | [
"strengthen@users.noreply.github.com"
] | strengthen@users.noreply.github.com |
f19b4e1cce1c695c5b29681a080f287a7d771a42 | ea1a17c30b82b6226c671e97f5b14687bc9c61ed | /base/migrations/0004_auto_20180515_1636.py | bfddc0c875764b4d3df3b7771ea0842f43aa6917 | [] | no_license | xritzx/AceFoundationAcademy | 760b72bdbd7f9ce6fb1fea4e3c3df0881caa41e0 | 25e41fa90ae4befe96f7f0f0ad8170518680d902 | refs/heads/master | 2022-12-10T20:03:56.122337 | 2020-01-18T15:04:47 | 2020-01-18T15:04:47 | 140,419,479 | 1 | 0 | null | 2022-11-22T05:15:00 | 2018-07-10T11:03:40 | JavaScript | UTF-8 | Python | false | false | 519 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-15 16:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0003_auto_20180515_1630'),
]
operations = [
migrations.AlterField(
... | [
"ritankarpaul47@gmail.com"
] | ritankarpaul47@gmail.com |
f36d0cb2aa14cd35c2b2dea166734076ab324f14 | 1fea3ad1608fbe8d7a695176ce001c32992baab4 | /web_scraping/ec2files/ec2file103.py | b8ee1a0d24e25df7042ae8504fa8eea0d4fe5f59 | [
"MIT"
] | permissive | cmgospod/Groa | 2119714f57bb911d5c9c91597a1b6558448d5dd6 | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | refs/heads/master | 2021-01-02T08:06:29.570942 | 2020-02-07T20:10:54 | 2020-02-07T20:10:54 | 239,560,447 | 1 | 0 | MIT | 2020-02-10T16:38:32 | 2020-02-10T16:38:31 | null | UTF-8 | Python | false | false | 118 | py | from scraper import *
s = Scraper(start=183546, end=185327, max_iter=30, scraper_instance=103)
s.scrape_letterboxd() | [
"cmgospod@users.noreply.github.com"
] | cmgospod@users.noreply.github.com |
2f4417dffebcc96b957d2b1ff00504c687ed6765 | 89bae02f23e787416fda894a128c9abfb4986515 | /metalearning/allennlp/allennlp/nn/__init__.py | f6af6a2e823ebdf9a9ef1be39265c8a1d5f066d7 | [
"Apache-2.0"
] | permissive | asheverdin/multilingual-interference | f2e64cebfffc749b080fa64860659922224e6e65 | 7bc1b5918142e3c84bea83c5a7f39e3f245172e9 | refs/heads/main | 2023-05-12T13:07:19.997696 | 2021-05-28T22:16:26 | 2021-05-28T22:16:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from allennlp.nn.activations import Activation
from allennlp.nn.initializers import Initializer, InitializerApplicator
from allennlp.nn.regularizers import RegularizerApplicator
| [
"lcur0308@test3.irc.sara.nl.irc.sara.nl"
] | lcur0308@test3.irc.sara.nl.irc.sara.nl |
924006e05e19fb5ded67f4e1ed943d9ff7aa6ebb | 43b6bffc820d26dfd223728bed71241fb3d54983 | /abc/010/c.py | 923bcc8b5d410e66f246906a5213d51974de328e | [] | no_license | kiccho1101/atcoder | 3a163b6a38a62c578dad6d15ccb586d0fcd1e004 | c86cb8e08b881a0a01dc2ef538f0699f3951e897 | refs/heads/master | 2023-03-02T13:27:17.747402 | 2022-05-30T13:51:00 | 2022-05-30T13:51:00 | 223,152,693 | 1 | 0 | null | 2023-02-11T01:29:47 | 2019-11-21T10:52:49 | Python | UTF-8 | Python | false | false | 337 | py | import math
txa, tya, txb, tyb, T, V = map(int, input().split())
n = int(input())
xy = [tuple(map(int, input().split())) for _ in range(n)]
ans = "NO"
for x, y in xy:
dist = math.sqrt((x - txa) ** 2 + (y - tya) ** 2) + math.sqrt(
(x - txb) ** 2 + (y - tyb) ** 2
)
if dist / V <= T:
ans = "... | [
"yodai.a.kishimoto@rakuten.com"
] | yodai.a.kishimoto@rakuten.com |
8fba25b7fd4b63ca13241630ab331d61ddb264dc | 2970291ff52e98915abb47848aeb71517ed1fbab | /Copiers_Log/migrations/0003_auto_20200416_0201.py | 674bc9169f6e34b3ba90814477e45c4027b4d3eb | [] | no_license | dannyswolf/MLShop_Django_Service_boook | dd33f4bb0352836897448bc45bbb09b7c49252c2 | 9ac5f85468487a53465e244ba31b9bc968300783 | refs/heads/master | 2023-07-15T15:06:53.298042 | 2021-08-29T11:49:42 | 2021-08-29T11:49:42 | 255,998,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # Generated by Django 3.0.4 on 2020-04-15 23:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('machines', '0041_auto_20200415_0421'),
('Copiers_Log', '0002_auto_20200416_0148'),
]
operations = [
... | [
"ntinisiordanis@gmail.com"
] | ntinisiordanis@gmail.com |
fabcdfd5cda24dc27afabba2b7be024faae97043 | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/website_event_track_quiz/models/event_track.py | 3011b98a30948fec8f171ecb13500a86289e7213 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 3,137 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
from odoo.osv import expression
class EventTrack(models.Model):
_inherit = ['event.track']
quiz_id = fields.Many2one('event.quiz', string="Quiz", groups="event.group_event_... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
ba3dc336207f025c3190976e43ef875527199dce | 4ec4ad864bb52eef36abcb56d65509ed03d964df | /4_optimization/iter.py | f1796a36ca76decfd3b957fe8ee419142f792e25 | [] | no_license | rongmere/am205_examples | 7810efbf500ace9dcc6f1a64ab218c4404cf7206 | 41e8c401b4d8566694efa71e2184f638ad832b54 | refs/heads/master | 2022-12-19T07:12:45.057126 | 2020-10-04T16:51:36 | 2020-10-04T16:51:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | #!/usr/bin/python
from math import *
def f(x):
return exp(x)-x-2
xa=1.15
xb=1.15
for i in range(20):
xa=log(xa+2)
xb=exp(xb)-2
print(xa,f(xa),xb,f(xb))
| [
"chr@seas.harvard.edu"
] | chr@seas.harvard.edu |
2b0980ef20d31e1c66a5d13918d343ddb6c9b3f7 | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /django/django_submissions/factory_practice/examples/models.py | afc3d4155efc09577a14a0dc8ae9b5674f78cf74 | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,810 | py | from django.db import models
class Group(models.Model):
group_name = models.CharField(max_length=100)
class User(models.Model):
first_name = models.CharField(max_length=100)
group = models.ForeignKey(Group, on_delete=models.CASCADE)
class UserOne(models.Model):
name = models.CharField(max_length=100)... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
5e40c2529caf23d432876fe39b7b9422bb4ae454 | f0987e17aea6668158cd334c1fbacfe6286d3c77 | /NITA/lib/jnpr/toby/services/aws/aws.py | a0bf6e780a2437a3cdb15d53981fa68f1d5e3d68 | [] | no_license | fengyun4623/file | 00bf21f952ea3f95ffc9fe18448b244b26b7fadb | 3966c63d48557b0b94303896eed7a767593a4832 | refs/heads/master | 2023-04-02T05:01:25.066052 | 2020-07-29T16:15:31 | 2020-07-29T16:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | import boto3
import time
import sys
class Aws(object):
def __init__(self,profile='default'):
"""
Function to initiate AWS session as per credentials and config as below:
:param:
profile from /home/regress/.aws/config
:return: A handle to aws services
... | [
"srigupta@juniper.net"
] | srigupta@juniper.net |
3ac9cf05fb7e65ad2fac6f84570546854ce9803f | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/retail/v2beta/retail-v2beta-py/google/cloud/retail_v2beta/services/user_event_service/transports/base.py | ba9a1e43de54a08a5aa0e33412437c9700005451 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,025 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
91e57b226cf94007e26c75f236cdb2ca7790e2d3 | cb1d0dd68b1136b8a371f7d2b423e45171e98ab7 | /src/xSACdb/view_helpers.py | a8f9fccf23ae079ac626f6a1ff11dd14c3d6c8ae | [] | no_license | ScubaJimmE/xSACdb | 86640ab791327392f88eb4993c858aa6d340c758 | 1996ab286ee0446b0a0e38882104bbf8904d8bdc | refs/heads/develop | 2021-07-15T04:47:11.279138 | 2016-05-25T01:44:05 | 2016-05-25T01:44:05 | 62,212,226 | 0 | 0 | null | 2021-03-20T00:40:24 | 2016-06-29T09:09:50 | Python | UTF-8 | Python | false | false | 500 | py | from django.views.generic.list import ListView
class OrderedListView(ListView):
def get_queryset(self):
return super(OrderedListView, self).get_queryset().order_by(self.order_by)
class UserContextMixin():
def get_context_data(self, **kwargs):
# Call the base implementation first to get a conte... | [
"will@fullaf.com"
] | will@fullaf.com |
f787a1cc9786ce500d1737f9676bfb995a8a3829 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/1431.py | 9ef596d81eb6eeb3e3f812893d057e68107d2a54 | [] | 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,134 | py | # Woooo! Trying the (not-that-) new hammer (python, that is) on ALL THE NAILZ!
# span-splitting fun! (beats talking about bathroom stalls...)
tc = int(input()) # of test cases
for cc in range(1, tc + 1):
n, k = [int(i) for i in input().split()]
spans = {n: 1}
# HACK: without actually doing the math
# short cir... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
194abe360aae5c803113b89b3e4afcde811aee09 | 9aaa413726ae7546cb34736c5b59448f23a1dc29 | /Palindrome_Partitioning.py | bfe4a49f0d20cfe2f5822cd35f32ae164c8d5eb9 | [] | no_license | maruichen2004/LeetCode | 2c616b9a3a4669b5d9aca9271fcdf3432694680d | 4fb6c83220f1da7ebc2d6aff70bccea5f0917b91 | refs/heads/master | 2020-04-28T00:03:46.990093 | 2016-10-12T19:55:40 | 2016-10-12T19:55:40 | 25,000,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | class Solution:
# @param s, a string
# @return a list of lists of string
def partition(self, s):
res = []
self.partitionRec(res, [], s, 0)
return res
def partitionRec(self, res, cur, s, i):
if i == len(s): res.append(cur)
else:
for j in range(... | [
"ruichenma@RUICHENs-MacBook-Pro.local"
] | ruichenma@RUICHENs-MacBook-Pro.local |
0e3a7f3f9b7b6f2727d79886d1184583d8d9367d | f6439b5ed1614fd8db05fa963b47765eae225eb5 | /device/serial/serial.gyp | dec3102ab2eaac3b9a7f956f68e30ae33bc6fc0c | [
"BSD-3-Clause"
] | permissive | aranajhonny/chromium | b8a3c975211e1ea2f15b83647b4d8eb45252f1be | caf5bcb822f79b8997720e589334266551a50a13 | refs/heads/master | 2021-05-11T00:20:34.020261 | 2018-01-21T03:31:45 | 2018-01-21T03:31:45 | 118,301,142 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | gyp | # Copyright 2014 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.
{
'variables': {
'chromium_code': 1,
},
'targets': [
{
# GN version: //device/serial
'target_name': 'device_serial',
'type': ... | [
"jhonnyjosearana@gmail.com"
] | jhonnyjosearana@gmail.com |
007e011e048ebfba6d3325332833dfb4e764553a | 417c6b21e0c59658b616d47e59bdbaff0eb9a84f | /ants/tests/test_pipeline_files.py | bc6f70ad4fca5ef61dec71a708b3ea8218720956 | [
"BSD-3-Clause"
] | permissive | catshitaf/ants | 25cd9a21a6961999aa4a04394af78868691e2d08 | 61e9c78034fbb07aa75cefa6e694d67982f3eb99 | refs/heads/master | 2021-01-21T06:24:32.703255 | 2015-01-22T02:26:42 | 2015-01-22T02:26:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,900 | py | import mock
import os
import time
import hashlib
import warnings
from tempfile import mkdtemp
from shutil import rmtree
from twisted.trial import unittest
from twisted.internet import defer
from ants.contrib.pipeline.files import FilesPipeline, FSFilesStore
from ants.item import Item, Field
from ants.http import Requ... | [
"cong.wang@tqmall.com"
] | cong.wang@tqmall.com |
04c62f6f9113f420a882b0c0f9484265d13ef9d2 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/ABC/B/053_b.py | 95bdaa8238cfb5458fbb57b9be91a1fb44858b39 | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
s = input()
st = s.find("A")
en = "".join(reversed(list(s))).find("Z")
print((len(s) - en) -st)
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
824469e9265261c1dab57c545beb60e154d4fcaf | 8ad8469b40e632a32848302de3bc6a7cf4de1501 | /managers/checkpoint.py | 907afd61982a6a2dd2c425557bb55572dbf585af | [] | no_license | hereismari/tf-eager-text-generation | fb1f6c370179aa9163d192ffbc9026db0fd189d2 | 8ea334c28d64b50cc3378fddd95cde7547da29e0 | refs/heads/master | 2021-09-24T03:10:50.143428 | 2018-10-02T11:51:19 | 2018-10-02T11:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import os
import tensorflow as tf
class CheckpointManager(object):
def __init__(self, checkpoint_dir, checkpoint_prefix, optimizer, model):
self.checkpoint_dir = checkpoint_dir
self.checkpoint_prefix = os.path.join(self.checkpoint_dir, checkpoint_prefix)
self.checkpoint = tf.train.Checkpo... | [
"mariannelinharesm@gmail.com"
] | mariannelinharesm@gmail.com |
adcbee06c4f3ac79beeb7680b1f33a2588806162 | 7936ebf5b94c3d153fb55248b52db2eff724427c | /10/homework10-teach/class_learn.py | adfff08caae2ea562489553c58a5d3e941b227b0 | [
"MIT"
] | permissive | xiaodongzi/pytohon_teach_material | f9e95f7b294a9e49d86d1a8e25cbef5efef3aaf7 | 13ed128a993637d0203f1f8c5419d781d7212883 | refs/heads/master | 2021-05-30T09:48:16.898483 | 2016-01-24T17:02:34 | 2016-01-24T17:02:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,428 | py | # coding:utf-8
import random
# def qiche(ren, che):
# return 'riding
# 猫狗大战
# class 首字母一般大写
class Animal():
# 新建对象(初始化)调用
def __init__(self, name, blood, dps, armor):
self.name = name
self.blood = blood
self.max_blood = blood
self.dps = dps
self.armor = armor
... | [
"seerjk@gmail.com"
] | seerjk@gmail.com |
96d81a5f1b2cb65223366733b23e41527a09f89d | 0f0c7c9ebeef6f998cd613d429d920238b937bfb | /app/db/repositories/category.py | 77f41e7c8690c69fe54000163bb8dd327da61be2 | [
"MIT"
] | permissive | Huangkai1008/market-admin | 08f2a8a25aae37e079cef4d0be6eabd531c06008 | c149f425b640827526b65343b4bceecd528418bf | refs/heads/master | 2023-02-15T23:00:15.248516 | 2020-02-08T07:08:27 | 2020-02-08T07:08:27 | 208,548,085 | 8 | 0 | MIT | 2023-02-07T22:55:18 | 2019-09-15T05:43:47 | Python | UTF-8 | Python | false | false | 3,373 | py | from typing import Tuple, List
from fastapi.encoders import jsonable_encoder
from app.db.category import ProductCategory, ProductCategorySpec
from app.db.repositories.base import BaseRepository
from app.models.category import (
CategoryCreate,
CategoryUpdate,
CategorySpecCreate,
CategorySpecUpdate,
)
... | [
"18778335525@163.com"
] | 18778335525@163.com |
70fb78351746025e14db1369fcf92c5dc1a9d0b1 | fe131d9715049e3339d1ab14f3e9a0c97a47c5db | /pos_check_deposit/__manifest__.py | cdac7b5cb1b429486a0ba37d2b7513195ac7a8b6 | [] | no_license | akretion/odoo-usability | 12f5412a27dda2de2436a282d36222f596d219bc | 5f731d18f1d9016a2faf6ef439be6caf2597aa16 | refs/heads/16.0 | 2023-07-21T14:41:54.002291 | 2023-07-15T13:40:48 | 2023-07-15T13:40:48 | 28,053,269 | 115 | 183 | null | 2023-08-31T14:04:39 | 2014-12-15T19:51:41 | Python | UTF-8 | Python | false | false | 1,611 | py | # Copyright 2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "POS Check Deposit",
"version": "16.0.1.0.0",
"category": "Point of sale",
"license": "AGPL-3",
"summary":... | [
"alexis.delattre@akretion.com"
] | alexis.delattre@akretion.com |
9bd8beb3dea81d55ec73079695762666f336d0e4 | be3b437623d2ac87ed00e550a1478a1174fdbe7a | /blog/migrations/0001_initial.py | 9054cf331c55d38553bed8b00f3f9a3c11d54b94 | [] | no_license | electrical194173/my-first-blog | 94e5d5d59e08df5e8de375169b67a12c28ff4a8b | 206d306fbba3a5293df4a4f0df209296412bc4fb | refs/heads/master | 2020-03-07T11:46:14.643012 | 2018-03-31T06:59:37 | 2018-03-31T06:59:37 | 127,463,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-30 18:24
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dep... | [
"you@example.com"
] | you@example.com |
0a8fad9dc93fee0b70a0bbd79c37cbf7efa88923 | 17939372537b437dd52ee8426785108039df651c | /geo/transport/metro/data.py | cc906a4c0bf0d39e66ed1402aeada9283f1b8a66 | [] | no_license | Madrich-routes/routes_laboratory | d091abd2267c9765e5a7c66a80c87c94e95e6189 | 27c447c9fe8e36c5ae4596ab4cdf38cac8fca6ef | refs/heads/master | 2023-06-04T12:02:08.973183 | 2020-10-31T17:22:14 | 2020-10-31T17:22:14 | 295,661,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | import os
import bs4
import numpy as np
import pandas as pd
import requests
from utils.logs import logger
def build_df(xml_url) -> pd.DataFrame:
"""
Получаем датафрейм для всего метро
"""
logger.info('Составляю словарь станций метро...')
df = parse_metro(xml_url)
return df
def get_metro_xml(u... | [
"yampolskiydv@gmail.com"
] | yampolskiydv@gmail.com |
76e87634554acb94ed8ef5bcd68799e7a52d35ea | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/contrib/postgres/search.pyi | cedd35e79fca1d075acb99d4df65ac72407e4600 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | pyi | /home/runner/.cache/pip/pool/9b/4b/2a/b4ef7b3c4bfcfff6eca7136078b7c168c81adab9d952790797eea37249 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
00da5cf4a5e89f4e9d7280f2d5b587cc18d2fb3b | 964f2882117ff656d7a2757c233c6dd88226d975 | /services/api-server/tests/unit/test_models_schemas_solvers.py | 551d2a1d6d1e0e44a955dcf6218e676d757624f4 | [
"MIT"
] | permissive | ignapas/osparc-simcore | a002dd47d7689af9c1c650eea33e31add2b182c1 | cb62e56b194265a907f260f3071c55a65f569823 | refs/heads/master | 2023-01-22T08:55:32.580775 | 2022-12-09T15:57:36 | 2022-12-09T15:57:36 | 170,852,656 | 0 | 0 | MIT | 2023-01-09T05:03:04 | 2019-02-15T11:12:34 | Python | UTF-8 | Python | false | false | 1,903 | py | # pylint: disable=redefined-outer-name
# pylint: disable=unused-argument
# pylint: disable=unused-variable
from operator import attrgetter
from pprint import pformat
import pytest
from simcore_service_api_server.models.schemas.solvers import (
Solver,
SolverPort,
Version,
)
@pytest.mark.parametrize("mod... | [
"noreply@github.com"
] | ignapas.noreply@github.com |
736b5230fc3826fdcaff7c9b514a944edab68b2a | cc08e9349a14620409dee0bdcf1420976352cf0d | /00_StartCamp/03_day/03_flask/app.py | 923d4c5886fa67ff212369f088dde0f3136dcedc | [] | no_license | Nyapy/TIL | b3f611177d3c54d224c9983b5bedc62abddeeaae | c3c52ad33963628674de4c1dcf8aed53f67af177 | refs/heads/master | 2023-01-11T19:37:02.693660 | 2020-07-04T04:31:41 | 2020-07-04T04:31:41 | 195,938,004 | 2 | 2 | null | 2023-01-07T11:25:27 | 2019-07-09T05:22:47 | Python | UTF-8 | Python | false | false | 1,056 | py | from flask import Flask, render_template, request
import requests, random
app = Flask(__name__)
@app.route('/catch')
def catch():
return render_template('catch.html')
@app.route('/result')
def result():
#1. form 태그로 날린 데이터를 받는다.
word = request.args.get('word')
#2. ARTII api로 요청을 보내 받은 응답 결과를 text로 fo... | [
"nyapy@naver.com"
] | nyapy@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.