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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d9e8ec272587da4d0b57094865c1e442afa7573 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Data2vec_for_PyTorch/fairseq/models/speech_dlm/__init__.py | 6ea914d6a578651fecd18cc7f352382623de303a | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 249 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from .speech_dlm import * # noqa
from .hub_interface import * # noqa
| [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
4d1d1206749d6326010dd874cf58439b9b23189c | 41ede4fd3bfba1bff0166bca7aee80dcf21434c6 | /vedat/dist/gtk/gtkspell3/actions.py | 6e8ee6ed12a4b2248e6106133f1bda3ac07b6278 | [] | no_license | pisilinux/playground | a7db4b42559a21cc72fd4c8649e0231ab6a3eb3c | e4e12fff8a847ba210befc8db7e2af8556c3adf7 | refs/heads/master | 2022-08-12T23:03:27.609506 | 2022-08-11T18:28:19 | 2022-08-11T18:28:19 | 8,429,459 | 16 | 22 | null | 2022-08-11T18:28:20 | 2013-02-26T09:37:11 | Python | UTF-8 | Python | false | false | 727 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
shelltools.expo... | [
"vedat@pisi_linux1.0"
] | vedat@pisi_linux1.0 |
cac379b18eb97023b4c5fdcf142c87d983e6794e | 3a4fbde06794da1ec4c778055dcc5586eec4b7d2 | /@lib/12-13-2011-01/vyperlogix/misc/date.py | 725848771c1c8d2be9463ec460abd9baef7c236f | [] | no_license | raychorn/svn_python-django-projects | 27b3f367303d6254af55c645ea003276a5807798 | df0d90c72d482b8a1e1b87e484d7ad991248ecc8 | refs/heads/main | 2022-12-30T20:36:25.884400 | 2020-10-15T21:52:32 | 2020-10-15T21:52:32 | 304,455,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,166 | py | # to get the local (current / here) time
import time
import CooperativeClass
__copyright__ = """\
(c). Copyright 2008-2014, Vyper Logix Corp., All Rights Reserved.
Published under Creative Commons License
(http://creativecommons.org/licenses/by-nc/3.0/)
restricted to non-commercial educational use only.,
... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
b964c7d3ac0997d189160beb6397ce66674c1b0e | 1afa6c852dfc922d1a26a384d965976f31a87692 | /Interaction/Style/Testing/Python/TestStyleTrackballCamera.py | ec1a5770ffd8efdb2a48a09334f9989151a0a7a6 | [
"BSD-3-Clause"
] | permissive | dgobbi/VTK | 631d037aacc7258861e70f77c586b01cd4ebff3f | 17f232ee440025c26bc78a897edef78e9fc78510 | refs/heads/master | 2021-01-04T22:27:46.611907 | 2013-03-01T19:44:02 | 2013-03-01T19:44:02 | 938,377 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
=========================================================================
Program: Visualization Toolkit
Module: TestNamedColorsIntegration.py
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.... | [
"nikhil.shetty@kitware.com"
] | nikhil.shetty@kitware.com |
9e75dc1d0187593e791de4ce6185ce127d5bea53 | 221e8d2c7f8f0044e2884d3c1a1327d49ca50356 | /hackbright_web.py | 2a52d90b7672a1ebd04e39d8bbce1684a8f89873 | [] | no_license | lakeeja/HBF_wk4_project_tracker_flask | d8411cfc12741c6662badc32cc8e2bcec399958a | a45669b5389051f8fd68d5fb8fd5865a5a059880 | refs/heads/master | 2021-03-19T07:39:32.490693 | 2017-06-14T20:09:32 | 2017-06-14T20:09:32 | 94,369,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | """A web application for tracking projects, students, and student grades."""
from flask import Flask, request, render_template
import hackbright
app = Flask(__name__)
@app.route("/student")
def get_student():
"""Show information about a student."""
github = request.args.get('github')
first, last, git... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
3f0006a29d6d15d213266f9961b4c7a39e3f2c85 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v7_2_0/rbridge_id/interface/loopback/ip/interface_loopback_ospf_conf/ospf_interface_config/authentication_key/__init__.py | 51c1547f8a985cc0cfecdf38f457216cf1c46283 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,866 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
b8aa11e2fbe1bcf8389ab5e53c2fbb4cea60c170 | c857d225b50c5040e132d8c3a24005a689ee9ce4 | /problem350.py | 9e621c086dc23d4c33e491b4fc312ed60a93f07d | [] | no_license | pythonsnake/project-euler | 0e60a6bd2abeb5bf863110c2a551d5590c03201e | 456e4ef5407d2cf021172bc9ecfc2206289ba8c9 | refs/heads/master | 2021-01-25T10:44:27.876962 | 2011-10-21T00:46:02 | 2011-10-21T00:46:02 | 2,335,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | """
A list of size n is a sequence of n natural numbers. examples are (2,4,6), (2,6,4), (10,6,15,6), and (11).
the greatest common divisor, or gcd, of a list is the largest natural number that divides all entries of the list. examples: gcd(2,6,4) = 2, gcd(10,6,15,6) = 1 and gcd(11) = 11.
the least common multiple... | [
"pythonsnake98@gmail.com"
] | pythonsnake98@gmail.com |
21a873fd59c00a1d52720a6c3195a0abdef5efd0 | faf2852a357a2e077d0e7f0a28055c250f5edcd0 | /myshop/authapp/migrations/0002_authapp_user.py | 7f5e3935c03ee2acb2f53026a1448723437e08b6 | [] | no_license | Pegorino82/GUDjangoProject_2 | dc68ff9d21afb56ce29f3c5fe4672c5f79633196 | 579189b576af3bdcd98927d054030b7a2ebc9f46 | refs/heads/master | 2020-04-07T20:13:25.701650 | 2019-01-17T12:01:21 | 2019-01-17T12:01:21 | 158,679,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # Generated by Django 2.1.4 on 2018-12-19 20:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('authapp', '0001_initial'),
migrations.swappable_dependency(sett... | [
"eshkryabin@yandex.ru"
] | eshkryabin@yandex.ru |
fbccffcd8524d8b244b026b2bed39e87748354d3 | 1dead366d7d1152a2dd1c7dd5f2ab91a4119310a | /GMOOC/GMOOC/settings.py | 602b234767d99af5cf8c0179a8ebc850bd52fd7b | [] | no_license | SmallSir/Python-and-Xadmin | 6b95bcb401c1f4ca232d3c77bb6d883467e5ea7f | fe29cb24d3a047f9a97319d4e33f07ad0e1562e3 | refs/heads/master | 2020-04-09T07:42:29.380396 | 2018-12-03T09:45:13 | 2018-12-03T09:45:13 | 160,167,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,531 | py | """
Django settings for GMOOC project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
i... | [
"280690956@qq.com"
] | 280690956@qq.com |
993e9beb0901f600bbe3c35feaa5c1c4eaacb5cc | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/modules/cloud/amazon/cloudtrail.py | 941233d6df89f0731513aa74d67f407526dbc35d | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 23,719 | py | #!/usr/bin/python
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | [
"sifang@cisco.com"
] | sifang@cisco.com |
b9f99c6b7e9712d01382336f8494ecf25633cb41 | 53b529e8edf046971db0ef4a740520e0b3e60699 | /.history/recipebox/models_20200202160352.py | fafdd926b9e070ad125ea70f80232e6b1b526195 | [] | no_license | EnriqueGalindo/recipebox | 6b6662e517ac045a23cd43aaf296c83cf61608b2 | ace7b2699db8be20568ced7062dc85ae92aa2eee | refs/heads/master | 2020-12-28T00:46:09.079202 | 2020-02-04T04:44:35 | 2020-02-04T04:44:35 | 238,124,659 | 0 | 1 | null | 2020-04-04T21:40:24 | 2020-02-04T04:42:05 | Python | UTF-8 | Python | false | false | 300 | py | from django.db import models
class Author(models.Model)
name = models.CharField(max_length=30)
bio = models.TextField
class Recipe(models.Model)
title = models.CharField(max_length=30)
author = models.ForeignKey('Author', on_delete=models.CASCADE)
description = models.TextField | [
"egalindo@protonmail.com"
] | egalindo@protonmail.com |
9c91b7b8e91ddc4fc9938f0c66b1f9450885d3b0 | 82090f948cce1bf26c0cc25da58e7739d7e9c624 | /core/models.py | 0490988914eb2b8e0dcbc3b8b2dbc82c7ccf8d9b | [] | no_license | Ehsan-63/django-qa | 4e98e9ee2bcc96238829e6a515cfdd1ed2733d61 | e2f467aeba21e082d0c2761e05e0cdc31bd7bf22 | refs/heads/master | 2022-11-27T21:42:03.531635 | 2020-07-29T15:57:32 | 2020-07-29T15:57:32 | 284,274,854 | 0 | 0 | null | 2020-08-01T14:23:12 | 2020-08-01T14:23:12 | null | UTF-8 | Python | false | false | 935 | py | from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
class Question(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='questions')
title = models.CharField(max_length=200)
slug = models.SlugField(max_length=200)
body = models.T... | [
"amirbig44@gmail.com"
] | amirbig44@gmail.com |
2dea73bc2e8fdb0faa848365e1edfb79b68c3fc1 | ebdd2dca7e1e0a9a5617e5231d72db634f1f32e1 | /myproject/settings.py | 0016fee7b854e2fb22ccd63126151dfa5d767081 | [] | no_license | craigds/django_25454 | adf3d4903a400a980066ccc1e39145a587045ea9 | 046603d9a24d1cc87a02af3712332560adf57f91 | refs/heads/master | 2021-01-10T13:17:38.884649 | 2019-01-06T20:40:57 | 2019-01-06T20:40:57 | 46,089,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,763 | py | """
Django settings for myproject project.
Generated by 'django-admin startproject' using Django 1.8.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build pa... | [
"craig.destigter@koordinates.com"
] | craig.destigter@koordinates.com |
76f66d757b47e9b8fd951a8d9ffb16d55d1a1c70 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /n4JA3je7FEFfZKaWp_22.py | 97d9d5e1b036a363bf62e5a79d65b41da93f716f | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py |
def million_in_month(first_month, multiplier):
month = 1
total_earnings = 0
while total_earnings < 10**6:
first_month *= multiplier
total_earnings += first_month
month += 1
return month
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4e14cfd9cbd068bcaa900c144725772e638d912d | 3be8da1d39bef1e09e4c8e7a6b736d7fc74a3c0f | /webserver/opentrain/common/static/common/ot_i18n.py | 220f6e9b537c255d90f967abf1f980bd02e07611 | [
"BSD-3-Clause"
] | permissive | amitzini/OpenTrain | bbe5b2fc1b1b118931f7aac94667083c1b5cf4da | 25ff81df668a9eba1c4369f9a789e34c60b44096 | refs/heads/master | 2020-04-01T22:36:01.131143 | 2014-10-27T22:07:40 | 2014-10-27T22:07:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,382 | py | from django.utils.translation import ugettext_noop
ugettext_noop("Search In")
ugettext_noop("Device Reports")
ugettext_noop("Live Trains")
ugettext_noop("Report Details")
ugettext_noop("Distances")
ugettext_noop("Akko")
ugettext_noop("Modiin")
ugettext_noop("Modiin Center")
ugettext_noop("Kiryat Hayyim")
ugettext_noop... | [
"ekeydar@gmail.com"
] | ekeydar@gmail.com |
32d121133bb107b2caf9971092b1b2fbaff65cc6 | 38ee4430af92b52230a79a6965c03ae3f2375bf4 | /setup.py | 357fc8235e22e0ef1714b73e14cf517462aff641 | [
"MIT"
] | permissive | dannguyen/poppler_wrap | 78df3dc391411b8770c6d37e647582e49a7a2343 | abd23dbd273e10cb34ceeb4b6a078faa525c3bb4 | refs/heads/master | 2020-03-17T00:06:03.328034 | 2018-05-12T04:16:13 | 2018-05-12T04:16:13 | 133,103,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = ['Click>=6.0', ]
setup_requirements =... | [
"dansonguyen@gmail.com"
] | dansonguyen@gmail.com |
35915cf212498c6065c0b5e3a79edb5030459d37 | b09a8df80c35e3ccca43cd74cec6e1a14db76ad7 | /user_import/views.py | 2282c2db1b9624c1c3db81b4feb4e259794dff40 | [
"MIT"
] | permissive | ofa/everyvoter | 79fd6cecb78759f5e9c35ba660c3a5be99336556 | 3af6bc9f3ff4e5dfdbb118209e877379428bc06c | refs/heads/master | 2021-06-24T19:38:25.256578 | 2019-07-02T10:40:57 | 2019-07-02T10:40:57 | 86,486,195 | 7 | 3 | MIT | 2018-12-03T19:52:20 | 2017-03-28T17:07:15 | Python | UTF-8 | Python | false | false | 3,269 | py | """Views for Import App"""
from django.contrib.messages.views import SuccessMessageMixin
from django.http import HttpResponse
from django.views.generic import CreateView, DetailView
from django.urls import reverse_lazy
from django_filters.views import FilterView
import unicodecsv
from manage.mixins import ManageViewMi... | [
"nickcatal@gmail.com"
] | nickcatal@gmail.com |
31b0b4a0f36dc1c645ae3945bbe72e3193013840 | d7ad696cd1b550bb41d20f87b83c984ec7f19aa7 | /atcoder/python/_old/educational_dp/01/f_lcs.py | daed11e02ec4f5622ab55e37e0c7107af0ef7faf | [] | no_license | mida-hub/hobby | 2947d10da7964d945e63d57b549c1dcb90ef7305 | 6e6f381e59fc2b0429fab36474d867aa3855af77 | refs/heads/master | 2022-12-21T23:33:14.857931 | 2022-12-19T16:30:34 | 2022-12-19T16:30:34 | 147,890,434 | 0 | 0 | null | 2021-03-20T04:31:58 | 2018-09-08T01:31:59 | Jupyter Notebook | UTF-8 | Python | false | false | 861 | py | s = input()
t = input()
len_s = len(s)
len_t = len(t)
dp = [[0] * (len_t + 1) for x in range(len_s + 1)]
# print(dp)
dp[0][0] = 0
for i in range(0, len_s + 1):
for j in range(0, len_t + 1):
if i > 0 and j > 0:
if s[i-1] == t[j-1]:
dp[i][j] = dp[i-1][j-1] + 1
else:... | [
"rusuden0106@gmail.com"
] | rusuden0106@gmail.com |
a66f5a08fb150733ba6bca0867715ea027d57c3c | 4cb9b7ddc5df9e528ce6b36ab13f8c842d8c0cfa | /vistrails/packages/URL/https.py | ce53bcfbb2b4be9f8b97751bc4c68bcc2bd50dbc | [
"BSD-3-Clause"
] | permissive | anukat2015/VisTrails | bca4f812ffe9e69a1aa4174267a4225f1245638f | c24e310bf62cc0151e084aa4f9e50026e788afbd | refs/heads/master | 2021-01-18T15:42:35.910689 | 2015-11-04T16:15:19 | 2015-11-05T18:53:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,378 | py | ###############################################################################
##
## Copyright (C) 2014-2015, New York University.
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## ... | [
"remirampin@gmail.com"
] | remirampin@gmail.com |
ae779f9bd683ed5f93e9a47dcc1000e53c0dc0b7 | ea522b496372174216fba2aad29bf231a28cc819 | /QuikLab/trunk/.metadata/.plugins/org.eclipse.core.resources/.history/69/a0b8d3f1e48f00181164c0c8bfbc6595 | 0f9acdf33db2a7fb37006af4de7657f023ec3da1 | [] | no_license | gatdotZF/svn192.168.1.5 | 15fdf074042b0a1e5e8c795d3c340080c04ba496 | 196bd4c83b12e3476c269057a4ef3b730a967d9e | refs/heads/master | 2020-07-26T17:45:16.259037 | 2019-09-16T06:36:35 | 2019-09-16T06:36:35 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 7,738 | #! /usr/bin/env python
#coding=GB18030
from pywinauto import application
import pywinauto.base_wrapper as ba
import SendKeys
import time
import os
import pywinauto.mouse as mouse
class Pywin(object):
def __init__(self):
self.app = application.Application(backend='uia')
def start(self,tl_dir,tl_name):
... | [
"994430058@qq.com"
] | 994430058@qq.com | |
4a6fb5bb1f0a3073cf9fe3811f9b0bbeccd8fe8f | 6f1034b17b49f373a41ecf3a5a8923fb4948992b | /pychron/furnace/tasks/thermo/furnace_plugin.py | 10d2f425a6afc473edc838188bb86750b9aa9268 | [
"Apache-2.0"
] | permissive | NMGRL/pychron | a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f | 8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6 | refs/heads/main | 2023-08-30T07:00:34.121528 | 2023-06-12T17:43:25 | 2023-06-12T17:43:25 | 14,438,041 | 38 | 28 | Apache-2.0 | 2023-08-09T22:47:17 | 2013-11-15T23:46:10 | Python | UTF-8 | Python | false | false | 2,352 | py | # ===============================================================================
# Copyright 2015 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
b8a0cc6a7e1290fac4b5b319a556b86a8c26c97c | 09f0505f3ac1dccaf301c1e363423f38768cc3cc | /r_DailyProgrammer/Practical Exercise/C201/__init__.py | cb700ef657ab253b573b6d0d6253c8c0b590d557 | [] | no_license | Awesome-Austin/PythonPractice | 02212292b92814016d062f0fec1c990ebde21fe7 | 9a717f91d41122be6393f9fcd1a648c5e62314b3 | refs/heads/master | 2023-06-21T11:43:59.366064 | 2021-07-29T23:33:00 | 2021-07-29T23:33:00 | 270,854,302 | 0 | 0 | null | 2020-08-11T20:47:10 | 2020-06-08T23:24:09 | Python | UTF-8 | Python | false | false | 77 | py | #! python3
from r_DailyProgrammer.Practical Exercise.C201.main import main
| [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
c4335347dc7e11719221f609202691493973425b | ef7eabdd5f9573050ef11d8c68055ab6cdb5da44 | /codeEval/hard/closest_pair.py | 1388ae98fc85075f1ac1d62410aeba96440d15da | [
"WTFPL"
] | permissive | gauravsingh58/algo | cdbf68e28019ba7c3e4832e373d32c71902c9c0d | 397859a53429e7a585e5f6964ad24146c6261326 | refs/heads/master | 2022-12-28T01:08:32.333111 | 2020-09-30T19:37:53 | 2020-09-30T19:37:53 | 300,037,652 | 1 | 1 | WTFPL | 2020-10-15T09:26:32 | 2020-09-30T19:29:29 | Java | UTF-8 | Python | false | false | 654 | py | import sys
from operator import itemgetter
def get_distance(p, q):
return ((p[0]-q[0])**2 + (p[1]-q[1])**2)**0.5
def find_closest_pair(ls):
ls = sorted(ls, key=itemgetter(0, 1))
dist, m = [], 40000
for i in range(len(ls)-1):
m = min(m, get_distance(ls[i], ls[i+1]))
if m > 10000:
return "INFINITY"
... | [
"elmas.ferhat@gmail.com"
] | elmas.ferhat@gmail.com |
94d1ce9d86c7f94f8caecce50f1de144d6242cd6 | 2aa0cf7a10120fe87f1c38dff205a5099f04846f | /main.py | bf98a1d12228dce8cd72fc2caeaab523335a48a0 | [] | no_license | bullitserg/certificate_checker | 749a3a33c8004fad86d291b52593e6b2650ab287 | b7e3ddf15afb7fdc09285bb0822b738daa10a67e | refs/heads/master | 2021-05-03T04:24:11.877319 | 2018-02-08T12:45:24 | 2018-02-08T12:45:24 | 120,614,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,197 | py | import ets.ets_certmanager_logs_parser as cert_mngr
import ets.ets_certificate_lib as cert_lib
from ets.ets_ssh_connector import SSHConnection as Ssh
from datetime import datetime
from os.path import join, normpath
from config_parser import *
import argparse
import logger_module
PROGNAME = 'Certificate checker'
DESCRI... | [
"bullit88@mail.ru"
] | bullit88@mail.ru |
70156d945934f471e9dfe882949c342b2e29c2f7 | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /apps/cloud_api_generator/generatedServer/tasklets/lan/getNextMacRange/lan_getNextMacRange.py | 3928da8aa16225a7fb32607614557e6d5b8b9246 | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 182 | py | __author__ = 'aserver'
__tags__ = 'lan', 'getNextMacRange'
__priority__= 3
def main(q, i, params, tags):
params['result'] = ''
def match(q, i, params, tags):
return True
| [
"devnull@localhost"
] | devnull@localhost |
7849122eb3fe8c33686282b0d31947253548e51b | f3b233e5053e28fa95c549017bd75a30456eb50c | /mcl1_input/L31/31-35_MD_NVT_rerun/set_6.py | 8441267cd7f30a30dc5e9f08e15d3a37e6877812 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/mcl1/L31/MD_NVT_rerun/ti_one-step/31_35/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_6.in'
temp_pbs = filesdir + 'temp_6.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
02dda9d71cdceea323cc189f06c4e34e849415aa | f0aa307e12bf7ea74c7bee23830f016aeaf45dd8 | /tensor2tensor/data_generators/timeseries_test.py | 9daabe80b1a68bdd9c361272296b30955bbae4de | [
"Apache-2.0"
] | permissive | ShahNewazKhan/tensor2tensor | d94aaa0eea23e20fe1e483d27890939a7243d3b9 | ef91df0197d3f6bfd1a91181ea10e97d4d0e5393 | refs/heads/master | 2020-03-19T17:42:27.293415 | 2018-06-10T02:41:33 | 2018-06-10T02:41:33 | 136,773,457 | 0 | 0 | null | 2018-06-10T02:34:05 | 2018-06-10T02:34:05 | null | UTF-8 | Python | false | false | 1,873 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
a2169451d8f1b8e4c3a35108c6208337b798af78 | cca3f6a0accb18760bb134558fea98bb87a74806 | /abc175/F/main.py | a737fd1cdca034d435b425811277d4674b8061de | [] | no_license | Hashizu/atcoder_work | 5ec48cc1147535f8b9d0f0455fd110536d9f27ea | cda1d9ac0fcd56697ee5db93d26602dd8ccee9df | refs/heads/master | 2023-07-15T02:22:31.995451 | 2021-09-03T12:10:57 | 2021-09-03T12:10:57 | 382,987,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | #!/usr/bin/env python3
import sys
def solve(N: int, S: "List[str]", C: "List[int]"):
return
# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
def main():
def iterate_tokens():
for li... | [
"athenenoctus@gmail.com"
] | athenenoctus@gmail.com |
db042864a1223f46e3ce2426fa6200fe5f845b09 | 4910ef5677b0af1d5ee88dd422a1a65f8ad81413 | /whyis/autonomic/global_change_service.py | 2bbd467310b2daad084e27918b861e99a88b4ca3 | [
"Apache-2.0"
] | permissive | mobilemadman2/whyis | a0d3b0d88873955d7f50471ecb928f6cdb47ffb1 | 009fdfefc0962dbf1dd629c47d763720c6f20ba0 | refs/heads/master | 2020-06-27T00:43:01.894275 | 2019-07-30T23:22:42 | 2019-07-30T23:22:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | from __future__ import print_function
from builtins import str
import sadi
import rdflib
import setlr
from datetime import datetime
from .service import Service
from nanopub import Nanopublication
from datastore import create_id
import flask
from flask import render_template
from flask import render_template_string
im... | [
"gordom6@rpi.edu"
] | gordom6@rpi.edu |
1b30005c650309cac9e0140834da3c81572bba0f | e96deed00dd14a1f6d1ed7825991f12ea8c6a384 | /093. Restore IP Addresses.py | 3bbe1bad78b5fc89c3478ebae0c08eaec03f3737 | [] | no_license | borisachen/leetcode | 70b5c320abea8ddfa299b2e81f886cfeb39345c1 | 15e36b472a5067d17482dbd0d357336d31b35ff4 | refs/heads/master | 2021-01-19T17:07:46.726320 | 2020-11-16T04:30:52 | 2020-11-16T04:30:52 | 88,306,634 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | 93. Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
For example:
Given "25525511135",
return ["255.255.11.135", "255.255.111.35"]. (Order does not matter)
class Solution(object):
def restoreIpAddresses(self, s):
"""
:type s: str
... | [
"boris.chen@gmail.com"
] | boris.chen@gmail.com |
9e94c807331ed9006528a0c3f7fc2460f9616c60 | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210716141910.py | 2911fb930aed362ba612341069ea19f4c50d8e31 | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,159 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
441f47bc3f4a0ef8aedba9771147faf091013cd4 | 12abe02e205d3e8dabe78fb5a93ccca89e2c42c4 | /toontown/toon/Toon.py | f95d82087ccf62349693a198c726ec74efbca9c4 | [] | no_license | nate97/toontown-src-py3.0 | 55092b2973b76e6b6d566887f44c52822684394c | f76c515801ae08c40b264b48365211fd44b137eb | refs/heads/master | 2022-07-07T05:23:22.071185 | 2022-06-22T16:36:10 | 2022-06-22T16:36:10 | 187,682,471 | 15 | 8 | null | null | null | null | UTF-8 | Python | false | false | 119,521 | py | from direct.actor import Actor
from direct.directnotify import DirectNotifyGlobal
from direct.interval.IntervalGlobal import *
from direct.showbase.PythonUtil import Functor
from direct.task.Task import Task
from panda3d.core import RigidBodyCombiner
from panda3d.core import *
import random
import types
from . import... | [
"nathanielfuhr@gmail.com"
] | nathanielfuhr@gmail.com |
cf5eff96017123e59bba07e49d5d94addf5b3000 | dd8363acd9a028d9b6432936d72e7a5344077c20 | /plugins/modules/s3_logging.py | 16561ce89703400d898a79597cd3ab3f8a659732 | [] | no_license | gundalow-collections/amazon | 5d437c41af5e3cfa73731c9cd2c08b66c7480b43 | 23c743b63f58ba97960479e230b462fb1c90cc95 | refs/heads/master | 2020-08-28T04:53:02.641829 | 2019-10-25T19:40:04 | 2019-10-25T19:40:04 | 217,595,855 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,361 | py | #!/usr/bin/python
# Copyright: Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterf... | [
"brian.coca+git@gmail.com"
] | brian.coca+git@gmail.com |
1dc1bf27b4946f2a8920cea5731c6958148fa159 | a54d5a5ae5ba352963f1166a29e1bb6c867157ab | /python/divides_evenly.py | 2b4eec4e705a704904ffcb8479439ddadd25217b | [] | no_license | alephist/edabit-coding-challenges | 06f573e90ffbd13bc54ecbdaa8e6a225aa44f5d8 | 35f1fc84848fc44e184aae1ae231a36319c1c81e | refs/heads/main | 2023-07-30T22:39:37.468756 | 2021-09-18T07:47:02 | 2021-09-18T07:47:02 | 341,467,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | """
Divides Evenly
Given two integers, a and b, return True if a can be divided evenly by b. Return False otherwise.
https://edabit.com/challenge/NRxWszQRw5JqSDmQS
"""
def divides_evenly(a: int, b: int) -> bool:
return a % b == 0
| [
"justin.necesito@gmail.com"
] | justin.necesito@gmail.com |
ebdf44d0b8071754b1394cf7bba558ebb4b9144c | c69e2b05b709a030c6f35244986df889d544adbf | /slackbot_ce/code_em/patrick/slacklib.py | 6770528924553d0a47a23fcf377fe93c8ed72d8b | [
"MIT"
] | permissive | wray/code_em | af325787d3f7a6dad68d28c72990c28e5baab4dd | 1500141828e0db8f4e13b0507398a65c2e0642cd | refs/heads/master | 2021-04-30T23:00:46.659505 | 2018-06-25T23:15:05 | 2018-06-25T23:15:05 | 68,224,253 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | # Put your commands here
COMMAND1 = "~~"
# Your handling code goes in this function
def handle_command(command):
"""
Determine if the command is valid. If so, take action and return
a response, if necessary.
"""
response = ""
if COMMAND1 in command:
response = "Huh?"
... | [
"joe@techemstudios.com"
] | joe@techemstudios.com |
7de3feab7305a15bf87af61ebc2b63f2601479a7 | a111639e451d54e3284363e2ad2e3e328f711a94 | /structural/bridge/free_web_page.py | 6baede3f34d1508f259c2565d60a7eabee1044b3 | [] | no_license | TheProrok29/design_patterns_in_python | 33bc24c8853d3ffe13711b06ea11e8bbe4a5f391 | a68930ca60c431f93be596b7e4440daf7f4bc319 | refs/heads/master | 2021-02-18T14:31:05.465004 | 2020-04-03T10:07:40 | 2020-04-03T10:07:40 | 245,205,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from structural.bridge.web_page import WebPage
class FreeWebPage(WebPage):
def show_page(self):
image = self.fetcher.get_image()
snippet = self.fetcher.get_snippet()
ads = self.fetcher.get_ads()
full_version = self.fetcher.go_to_full_version()
print(snippet)
print(i... | [
"tomaszdbogacki@gmail.com"
] | tomaszdbogacki@gmail.com |
276da94c564d9de0962c4d7f29d8230ac4925eb8 | 9aa85999021da96ce0a7d76789c1298d174d1835 | /meet/migrations/0003_auto_20200128_1727.py | e4d4f1cf789a13902adda66a4e334e527bcc0455 | [] | no_license | m0bi5/ISTE-NITK_Website | 20b83a3a629836c33c7478c0af834f6f57e0e907 | 2e186bb1ba457c930f9b691cc5a5584b8e3c270c | refs/heads/master | 2022-11-24T03:02:49.354491 | 2020-07-24T15:43:44 | 2020-07-24T15:43:44 | 184,452,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # Generated by Django 2.2.4 on 2020-01-28 17:27
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('meet', '0002_auto_20200128_1714'),
]
operations = [
migrations.AlterField(
model_name='meet',
name='... | [
"amodhshenoy@gmail.com"
] | amodhshenoy@gmail.com |
3598c364d465f9de29b3133708e16f1b6e8a21f9 | e1a2c6ed4a4b93b4697974e3b0a32a4d67daa6f6 | /venv/Lib/site-packages/pybrain/structure/modules/samplelayer.py | a3096be9947029eb16c8a2d254b083c9143ce84e | [
"MIT"
] | permissive | ishatserka/MachineLearningAndDataAnalysisCoursera | cdf0f23a58617e17d6b938e3a9df17daae8585e4 | e82e772df2f4aec162cb34ac6127df10d14a625a | refs/heads/master | 2021-09-11T01:39:26.228392 | 2018-04-05T14:33:39 | 2018-04-05T14:33:39 | 117,153,454 | 0 | 0 | MIT | 2018-03-27T05:20:37 | 2018-01-11T21:05:33 | Python | UTF-8 | Python | false | false | 577 | py | #! /usr/bin/env python2.5
# -*- coding: utf-8 -*-
__author__ = ('Christian Osendorfer, osendorf@in.tum.de; '
'Justin S Bayer, bayerj@in.tum.de')
from scipy import random
from pybrain.structure.modules.neuronlayer import NeuronLayer
class SampleLayer(NeuronLayer):
... | [
"shatserka@gmail.com"
] | shatserka@gmail.com |
1c3496dc7a944fe3caf17d00732d0c8b872fe292 | a836aa9db79f26ac238368e35b765e55efdfbc08 | /set length.py | d2c6bebc60a4a1bb7ae4ee5675068528290dc57b | [] | no_license | abhisek08/python-sets | 8e3bc968500fd67ee72512acb1e643ff281eb7df | c48d780276deff6dee8fc2e58a1480696c73fa24 | refs/heads/master | 2022-10-13T07:41:32.226636 | 2020-06-08T05:36:30 | 2020-06-08T05:36:30 | 270,542,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | '''
Write a Python program to find the length of a set.
'''
s={1,2,3,4,5}
print(len(s)) | [
"abhisek.bhunia08@gmail.com"
] | abhisek.bhunia08@gmail.com |
a6a7cf557aeeff0dfc96557ca96fa2ecf6f6a35d | a9c43c4b1a640841f1c9b13b63e39422c4fc47c2 | /test/tests/set_more.py | 3283c3eae471a229fed147eedfc564e625324313 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | lovejavaee/pyston | be5bd8393462be17259bcc40bf8f745e157d9793 | e8f0d9667c35db043add2f07a0ea7d23e290dd80 | refs/heads/master | 2023-05-01T17:42:35.616499 | 2015-04-07T08:10:44 | 2015-04-07T08:10:44 | 33,535,295 | 0 | 0 | NOASSERTION | 2023-04-14T02:16:28 | 2015-04-07T09:53:36 | Python | UTF-8 | Python | false | false | 225 | py | # expected: fail
print hasattr(set, "__ior__")
print hasattr(set, "__isub__")
print hasattr(set, "__iand__")
print hasattr(set, "__ixor__")
s1 = set() | set(range(3))
s2 = set(range(1, 5))
s3 = s1
s1 -= s2
print s1, s2, s3
| [
"kmod@dropbox.com"
] | kmod@dropbox.com |
4f16d28884277d1d267297d0bcd2663fcaf9a841 | 4c61666c08f3564459b2e9de65f1cef50ef7ce0a | /packages/vaex-server/vaex/server/service.py | 1732c9555f41448c83fd571e7be1f3a913fcc7a7 | [
"MIT"
] | permissive | nemochina2008/vaex | 558b42e9b65455228eb95a3c96e66c9aff39a4d6 | afdaea5568fd3b8f414ab6084d0bb53c5319b968 | refs/heads/master | 2022-05-20T16:39:14.959035 | 2020-04-13T06:30:47 | 2020-04-13T06:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | import concurrent.futures
import logging
import threading
import vaex
logger = logging.getLogger("vaex.server.service")
class Service:
def __init__(self, df_map):
self.df_map = df_map
def stop(self):
pass
def __getitem__(self, item):
return self.df_map[item]
def list(self... | [
"maartenbreddels@gmail.com"
] | maartenbreddels@gmail.com |
d6cef3773f219850c2d45b864a285ebd437b6090 | 2e26bf9c44f349ee308e63e067d93da654daf69d | /python-scripts/scripts/10_find_files_recursively.py | 7952c3841a6d2c43fc75392b73d25433959ad049 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | RelativeTech/PYTHON_PRAC | 034e44484d63d50a9c4295aa7e1dc63ef786fb37 | 7fa145dece99089706460466a89901e00eef9d28 | refs/heads/master | 2023-06-04T18:59:45.059403 | 2021-06-07T19:40:10 | 2021-06-07T19:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | import fnmatch
import os
# constants
PATH = './'
PATTERN = '*.md'
def get_file_names(filepath, pattern):
matches = []
if os.path.exists(filepath):
for root, dirnames, filenames in os.walk(filepath):
for filename in fnmatch.filter(filenames, pattern):
# matches.append(os.pa... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
91d11f83078c6f58b08135d0c5f716c6a00ddffd | 5bf88a21ad382f75ee94cf98a481df162d519304 | /functional_testing/tutorial/tests.py | f372351b7f8ebf180bda99ed038156fe8c3ca1e8 | [] | no_license | VladyslavHnatchenko/pyramid_projects | 43dd3181599c822109f0f5e39f05c7393c721f7c | 2a727a7799845231f4ba61a8129d710938880f46 | refs/heads/master | 2022-06-10T22:41:01.483199 | 2020-05-08T05:44:10 | 2020-05-08T05:44:10 | 261,702,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | import unittest
from pyramid import testing
class TutorialViewTests(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def test_hello_world(self):
from tutorial import hello_world
request = testing.DummyRequest()
... | [
"hnatchenko.vladyslav@gmail.com"
] | hnatchenko.vladyslav@gmail.com |
c284d3231f39051b27c7db6e856ea8c8fa9de65a | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/b946e078bb904b47bf67863586198872.py | 8a22ddab6ef5cc2e22d14498cd235ee04d34eb67 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 661 | py | # -*- coding: utf-8 -*-
import re
"""
Bob answers 'Sure.' if you ask him a question.
He answers 'Woah, chill out!' if you yell at him.
He says 'Fine. Be that way!' if you address him without actually saying
anything.
He answers 'Whatever.' to anything else.
"""
def hey(text):
# Remove whitespace and check if ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
a07065dd91263b9df6c81b2273dd18dce7104ca2 | a86e5de1a4a732172e4447d54fb96f62471fa450 | /internet/getfilegui_ftp.py | 308b819986ee148ae282c24d08b9f7ae287509c6 | [] | no_license | flwwsg/learnpy | 14c769ee5b59e62a9cd02095f00541ad5393517d | 915d71fbb53927f7063dd344f327f95cc0b25322 | refs/heads/master | 2020-06-30T23:34:19.134225 | 2017-01-18T13:43:54 | 2017-01-18T13:43:54 | 74,344,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | #!/usr/bin/env python3
from tkinter import Tk, mainloop
from tkinter.messagebox import showinfo
import getfile_ftp, os, sys, _thread
from form import Form
class FtpForm(Form):
def __init__(self):
root = Tk()
root.title(self.title)
labels = ['Server Name', 'Remote Dir', 'File Name',
'Local Dir',... | [
"2319406132@qq.com"
] | 2319406132@qq.com |
548909c5d39880b2a0537f2e32cc3d0a8d52bf53 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ATM-FORUM-SRVC-REG.py | cc7455d72d5db4bb2f28214f1984998e900acb87 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 4,777 | py | #
# PySNMP MIB module ATM-FORUM-SRVC-REG (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ATM-FORUM-SRVC-REG
# Produced by pysmi-0.3.4 at Wed May 1 11:31:12 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
a4af67979baf1f782211359a2f6236ff18ffee73 | cc2d37a71eac8422b0722533766b3ee95b5b5d1a | /taxonomy/db/models/region.py | b9fae4165d37ce5d6283593edbcfd1d4793bca2b | [] | no_license | JelleZijlstra/taxonomy | 88018a1a0ec114875c45cf87ffc825957fc3e870 | 56aac782e2cbbd084a14d2ad1b1572729ba387be | refs/heads/master | 2023-08-17T03:20:13.576928 | 2023-08-07T00:47:41 | 2023-08-07T00:47:41 | 10,962,492 | 0 | 0 | null | 2023-08-17T04:53:54 | 2013-06-26T08:21:35 | Python | UTF-8 | Python | false | false | 11,467 | py | from __future__ import annotations
import collections
import sys
from collections.abc import Iterable
from typing import IO, Any
from peewee import CharField, ForeignKeyField
from taxonomy.apis.cloud_search import SearchField, SearchFieldType
from ... import events, getinput
from .. import constants, models
from ..... | [
"jelle.zijlstra@gmail.com"
] | jelle.zijlstra@gmail.com |
becc258774d0ac676d932c75db50604c7e761c3e | b25182d0034468e5e545c6c72e5a2cdd3c43a484 | /.PyCharm2017.2/config/fileTemplates/internal/Python Script.py | 4a7e3a73b9fa90a9603b16a68691ed30f3fc57b0 | [] | no_license | lovewula/config | f9ac16b30082c04be7733969d5359ee6c7258db6 | c0720e5bfd49f579a52f83de36de40c76996ebf6 | refs/heads/master | 2021-08-19T19:31:44.088218 | 2017-11-27T08:04:06 | 2017-11-27T08:04:06 | 111,974,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | # python -- which | [
"lovewula1314@gmail.com"
] | lovewula1314@gmail.com |
963865d264c997cda532d2ed72b29f073ba51061 | 3ffeeae8a9a3245d8998d94aa08f680f00056cad | /226.翻转二叉树.py | c06af9247a396860bcc143a341de6a944f56d89f | [] | no_license | Ezi4Zy/leetcode | 6e293e5c07a7d8c3e38f9445ff24330134ef6c48 | 9d394cd2862703cfb7a7b505b35deda7450a692e | refs/heads/master | 2022-04-09T14:11:36.957861 | 2022-03-09T10:30:30 | 2022-03-09T10:30:30 | 57,290,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #
# @lc app=leetcode.cn id=226 lang=python
#
# [226] 翻转二叉树
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def invertTree(self, root):
"""
... | [
"Ezi4zy@163.com"
] | Ezi4zy@163.com |
85451990d7639637c9028004b7716a90604a4d5e | 41d1e085dc3ec6c329b8d6443035e1e8a1c93bcc | /gridded/tests/test_ugrid/test_grid_manipulation.py | 61772aa3fa37c4e63d59b1f2e94ce2ec0254dcef | [
"Unlicense"
] | permissive | Ocean1125/gridded | 9252d3d89ecacc55c59a0ecf6fd60fe6ac0afd6e | 90cca5edf4c8d9a47914c2b6d6f78180d9c280a5 | refs/heads/master | 2023-05-15T13:21:34.144583 | 2021-06-03T21:50:01 | 2021-06-03T21:50:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | #!/usr/bin/env python
"""
Testing of various utilities to manipulate the grid.
"""
from __future__ import (absolute_import, division, print_function)
import numpy as np
import pytest
from .utilities import two_triangles, twenty_one_triangles
def test_build_face_face_connectivity_small(two_triangles):
ugrid ... | [
"Chris.Barker@noaa.gov"
] | Chris.Barker@noaa.gov |
14eb64cd3a3bd8cedfcded8bc29dfff5f452c7c8 | b59372692c912ba17ec2e6812983663a6deccdaf | /.history/bsServer/models_20200502170425.py | 683a93190755a6adc35736cedb98242f994d2e94 | [] | no_license | nanjigirl/bs-server-project | 2d7c240ddf21983ed0439829a7995bde94082467 | 7863aed279b233d359c540c71fdd08ce8633976b | refs/heads/master | 2022-08-02T17:33:48.201967 | 2020-05-25T15:18:34 | 2020-05-25T15:18:34 | 261,204,713 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | from django.db import models
# Create your models here.
#创建模型类
class User(models.Model):
id = models.AutoField(primary_key = True) #该字段可不写,它会自动补全
name = models.CharField(max_length = 30)
age = models.IntegerField()
sex = models.CharField(max_length = 2)
def _str_(self):
return "<User:{id=%s,name=%s,age... | [
"chenxueb@yonyou.com"
] | chenxueb@yonyou.com |
160c19d7410b6667479572a9c770f85c8b7fc851 | 718203f44f80436001eb50ed9a85408b4ea8d778 | /venv/Lib/site-packages/facebook_business/adobjects/campaign.py | bdf9830876b8ecd5927d1e6d5bedcfe14ffb4e05 | [
"ISC"
] | permissive | ShashkinRoman/fb_importads_for_kans | 52cc73ae7ca315647a08b1c424ee27885a35a104 | 41184710a0a8bae5b342573a0dd25adc64751409 | refs/heads/master | 2020-12-22T07:00:20.488197 | 2020-01-28T10:03:28 | 2020-01-28T10:03:28 | 236,703,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,979 | py | # Copyright 2014 Facebook, Inc.
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Fa... | [
"romanshashkin@mail.ru"
] | romanshashkin@mail.ru |
4eee6f4fb6f52da831716c694e832f567a110bd2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/1481.py | 60894a78cec6553a3757bede617c8af1cbf45e05 | [] | 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,481 | py | f = open('/home/cse/btech/cs1130260/workfile.txt')
sumit = open("/home/cse/btech/cs1130260/output.txt","w")
a = int(f.readline())
x = 1
while (a > 0):
firstanswer = int(f.readline())
firstrow1 = f.readline()
firstrow2 = f.readline()
firstrow3 = f.readline()
firstrow4 = f.readline()
secondanswer ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
4f98552f0e559f617ec311f4d3261eceae59e4d2 | dfcbc3d04adda5925ff36f0708173cb7baa10e7e | /leetcode/145.py | 9993c2e7a9a0e8d47052b9fd01540bec850fad61 | [] | no_license | yanggelinux/algorithm-data-structure | 66a6fe9acdcacce226b9dbb85e6236776e7206e9 | 3b13b36f37eb364410b3b5b4f10a1808d8b1111e | refs/heads/master | 2021-07-25T14:14:18.521174 | 2020-09-04T08:20:24 | 2020-09-04T08:20:24 | 215,970,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | # -*- coding: utf8 -*-
"""
给定一个二叉树,返回它的 后序 遍历。
示例:
输入: [1,null,2,3]
1
\
2
/
3
输出: [3,2,1]
进阶: 递归算法很简单,你可以通过迭代算法完成吗?
后序遍历:对于树中的任意节点来说,先打印它的左子树,然后再打印它的右子树,最后打印它本身。
"""
# Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left =... | [
"yangyang@ishansong.com"
] | yangyang@ishansong.com |
c75cb1f819a7c2b1caff1b2ab17f1b923f229602 | a2812fad2ff72d4769d136a4a79c320749bffe72 | /jesusanaya_blog/providers/blog_post.py | 99b6551e5d10f12053d069a0f7159931da5f8821 | [] | no_license | JesusAnaya/jesusanaya_blog | 7976ab2c3b1edc773d5c2e04674f865464033566 | fecc91c479caf8e7c0514fcdb85bcb9ad34f1308 | refs/heads/master | 2021-05-04T10:02:20.308204 | 2016-10-14T09:03:44 | 2016-10-14T09:03:44 | 51,033,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from jesusanaya_blog.services.storage import StorageService
from .base import Provider
class BlogPostProvider(Provider):
def __init__(self, dbsession, settings):
super(BlogPostProvider, self).__init__(dbsession, settings)
self.storage = StorageService(settings)
def create(self, post_data):
... | [
"jesus.anaya.dev@gmail.com"
] | jesus.anaya.dev@gmail.com |
fc6c2a31ee7db5f9532e1462ad34bd6736bc43dc | 08cef372f61ba96b05e88a44a8528ac506633c51 | /Pantera/Tools/BLAST/__init__.py | 90ac553468320b5640596f8eea68f82f81856a4f | [] | no_license | xubeisi/Pantera | 322603575db54ff5e63c2fa3b4ef6b6c80376940 | b1315bbf8362ae514971b86824a144ef6b696d71 | refs/heads/master | 2021-06-22T21:58:43.048214 | 2017-08-27T23:23:29 | 2017-08-27T23:23:29 | 105,809,057 | 1 | 0 | null | 2017-10-04T19:25:27 | 2017-10-04T19:25:27 | null | UTF-8 | Python | false | false | 297 | py | __author__ = 'mahajrod'
from Pantera.Tools.BLAST.BLAST import *
from Pantera.Tools.BLAST.BLASTPlus import *
BLAST = BLAST()
BLASTn = BLASTn()
BLASTp = BLASTp()
BLASTPlus = BLASTPlus()
DustMasker = DustMasker()
BLASTDbCmd = BLASTDbCmd()
MakeBLASTDb = MakeBLASTDb()
Windowmasker = Windowmasker()
| [
"mahajrod@gmail.com"
] | mahajrod@gmail.com |
06978625b54d51d9560dc5732e5211749a1fa1fd | d1c67f2031d657902acef4411877d75b992eab91 | /test/test_drip_stat_integration.py | d8752d86bfdd76e55e14d2fec9e4dfbf4bd27a58 | [] | no_license | Certn/opsgenie-python | c6e6a7f42394499e5224d679cc9a449042fcf9c3 | bd5f402f97d591e4082b38c938cbabca4cf29787 | refs/heads/master | 2023-01-01T10:45:13.132455 | 2020-10-27T17:40:01 | 2020-10-27T17:40:01 | 307,769,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | # coding: utf-8
"""
Opsgenie REST API
Opsgenie OpenAPI Specification # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.drip_sta... | [
"john@oram.ca"
] | john@oram.ca |
78476fd94dbd2f8efaad66cfcdfdc067311dd1c7 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20200212/example_monogusa2/01fake_stream.py | 2dabee38e314697abf9b966624a9316bbb5a7e37 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 1,017 | py | import logging
from monogusa.events import EventParser, subscription
from monogusa.events import Message
logger = logging.getLogger(__name__)
@subscription.subscribe(Message)
def echo(ev: Message) -> None:
print("!", ev.content)
def read():
import typing as t
import sys
import os
import io
... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
43c1a434653a699d34d6d91683a508e50c615182 | aa3b7c6a81a323d2e17a1be7cb7ce90a20d6099a | /cproject/donation_form/api.py | 48cec882a58d24ee8f22fe9be7e58654cc1de176 | [] | no_license | gadia-aayush/sample | fdf00a4a890af6e4380b133cc64d7df89c1defff | 145b83206f9fb0972d19bef9229da0c1bf0aede0 | refs/heads/master | 2022-12-22T16:54:50.228277 | 2020-08-18T20:26:05 | 2020-08-18T20:26:05 | 288,516,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | from donation_form.models import Donationreqs
from rest_framework import viewsets,permissions
from .serializers import DonationRquestsSerializers
#Donation_Request Viewset
class DonationRequestViewSet(viewsets.ModelViewSet):
queryset = Donationreqs.objects.all()
permission_classes = [
permissions.Allow... | [
"gadia.aayush@gmail.com"
] | gadia.aayush@gmail.com |
0de1d75746071df0018fe7e5eb5ddb319207be71 | 11cd15da4be0eba77aee8edc64dbfcacd9f418c4 | /probleme22.py | 8fb7376bcba8d81369815d8f8a79c41b63d82ee5 | [] | no_license | mines-nancy-tcss5ac-2018/td1-YonasHassnaoui | 1bdc1af9872a6faacda5ba0479f8eafddc0ba8ee | 96c3e030fe1345429dd6d17af50e19d8f6383ea4 | refs/heads/master | 2020-03-30T23:38:42.027520 | 2018-10-05T11:00:08 | 2018-10-05T11:00:08 | 151,707,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | def alphabet(lettre):
res=0
al=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
for i in range(len(al)):
if al[i]==lettre:
res=i+1
return res
fichier=open('p022_names.txt','r')
for i in fichier:
print(i)
p=i... | [
"noreply@github.com"
] | mines-nancy-tcss5ac-2018.noreply@github.com |
b6c6c2429c61e883c2c8c7455645825a069486cf | 5ff9dbbae3bd9675936c6e952657cba08a2aecef | /build/lib/lfm_flow/kernels/kernels.py | e93fcdc76d7212ce6d3ef4d1c9191d0e8b9cdaab | [] | no_license | danieljtait/lfm_flow | 9e4dc892fc2405e8390d5e3861cd3514c9eb03eb | 50e36c3b5bb9692d69e3d47e42438fdfdd00cc3c | refs/heads/master | 2020-04-27T12:38:20.843760 | 2019-03-14T13:06:58 | 2019-03-14T13:06:58 | 174,338,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py |
class Kernel:
pass
| [
"tait.djk@gmail.com"
] | tait.djk@gmail.com |
32e84c96e90c012be5b6f4123a13f29014248c3a | 051c3ee44478265c4510530888335335ec9f7fdf | /ML_Applications/SVM/Mutants/code/SVM_rbf/DigitRecognitionApp_8.py | 3932c672a9a2b7163e2eba4970f01104b676b8ec | [] | no_license | PinjiaHe/VerifyML | b581c016012c62d8439adfce0caef4f098b36d5e | 3bd7c49e45720c1cdfe0af4ac7dd35b201056e65 | refs/heads/master | 2020-03-25T19:40:39.996370 | 2018-01-30T08:58:58 | 2018-01-30T08:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | """
Created on Fri May 26 15:20:01 2017
#Digit Recognition for V & V
#Following note added by RR
Note:
1. The actual digits data from the http://archive.ics.uci.edu/ml/datasets/Pen-Based+Recognition+of+Handwritten+Digits is different than the one referred in this sklearn example
2. For more info, refer this link htt... | [
"anurag.bms@gmail.com"
] | anurag.bms@gmail.com |
d620033debfba7430ebb3d0748e29d104a5f7713 | 764696896b3a0595f83dc7d108d79d23700d4573 | /pytest_relaxed/trap.py | 8f6baba442e4e1b42c6d3515273cda866a17ba12 | [
"BSD-2-Clause"
] | permissive | bitprophet/pytest-relaxed | 57f35b65c54f0ac86032050ac4f841772c755d1a | 5c18490316cbeebe9a4650a26218c10740950d8a | refs/heads/main | 2023-05-27T05:45:06.488119 | 2023-05-23T14:53:28 | 2023-05-23T14:53:28 | 87,468,490 | 31 | 9 | BSD-2-Clause | 2022-12-31T22:25:32 | 2017-04-06T19:45:24 | Python | UTF-8 | Python | false | false | 2,260 | py | """
Test decorator for capturing stdout/stderr/both.
Based on original code from Fabric 1.x, specifically:
* fabric/tests/utils.py
* as of Git SHA 62abc4e17aab0124bf41f9c5f9c4bc86cc7d9412
Though modifications have been made since.
"""
import io
import sys
from functools import wraps
class CarbonCopy(io.BytesIO):
... | [
"jeff@bitprophet.org"
] | jeff@bitprophet.org |
b38c5460f365eaedac5a460595d58f26f950814c | f0d521aad290086063c8928ebc064e021d63aa0c | /mlib/Mobigen/Common/Log/__init__.py | af22ed78642e24c02c685db408f255d5baa5012f | [] | no_license | mobigen/MSF_V2 | 9817cc97c2598c3f69b1192d4b186c3bc1761932 | 8a32adc3969d77455464a07523ced68564eb10af | refs/heads/master | 2023-04-27T20:14:16.020536 | 2022-02-18T08:17:10 | 2022-02-18T08:17:10 | 134,684,685 | 3 | 2 | null | 2023-04-18T22:47:33 | 2018-05-24T08:24:01 | Roff | UHC | Python | false | false | 2,938 | py | # -*- coding: cp949 -*-
import sys
import types
from traceback import *
from DummyLog import CDummyLog
from StandardLog import CStandardLog
from StandardErrorLog import CStandardErrorLog
from RotatingLog import CRotatingLog
from PipeLog import CPipeLog
from UDPLog import CUDPLog
__VERSION__ = "Release ... | [
"cheerupdi@gmail.com"
] | cheerupdi@gmail.com |
926854e5ba9d587446f3978075fb9e0f6484759c | 9633fb1796269d049aad814efc46ac1545c3b88d | /tetris.py | 239dce1c1bc3fe5fd9d561ba450374c4861dac61 | [] | no_license | Ajax12345/pygame | 90fea131736c87778965a11f4b8ed1fcce729576 | 0bfe055d3a1e3e16c5a1bed01b41044dd0671746 | refs/heads/master | 2021-01-21T08:24:07.355205 | 2017-12-04T14:06:57 | 2017-12-04T14:06:57 | 91,626,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,984 | py | import pygame
import random
import collections
import time
import sys
converter = {"tercoise":(0,238,238), 'yellow':(255,215,0), 'purple':(191,62,255), 'green':(127,255,0), 'red':(255,0,0), 'blue':(0, 0, 255), 'brown':(255,127,36)}
class Block(pygame.sprite.Sprite):
def __init__(self, x, y, color):
pygame.... | [
"noreply@github.com"
] | Ajax12345.noreply@github.com |
e7bbafa17d265718d8a42bc0251991aeb3da2de2 | 4fe1dc7170d2d44e2c9988c71b08f66d469ee4b8 | /Unit7/ej7.28.py | f48af0397e694f0f8fdcb886a9e279d206aa6a27 | [] | no_license | ftorresi/PythonLearning | 53c0689a6f3e7e219a6314a673a318b25cda82d1 | f2aeb5f81d9090a5a5aa69a8d1203688e9f01adf | refs/heads/master | 2023-01-12T00:40:05.806774 | 2020-11-13T14:33:08 | 2020-11-13T14:33:08 | 267,460,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,227 | py |
### Polynomials
#import numpy
class Polynomial:
def __init__(self, coefficients):
self.coeff = coefficients
def __call__(self, x):
"""Evaluate the polynomial."""
return sum(self.coeff[power]*x**power for power in self.coeff)
def __add__(self, other):
"""Return ... | [
"noreply@github.com"
] | ftorresi.noreply@github.com |
7cda5cdd83a59146eb5c1d6c5eb8be5261114aaf | c4e05230949efbd1ef858839850520ee94a87a58 | /musicbingo/gui/dialogbase.py | 0fb81331348d5a628a6d5e765f7eb7ed4df5e60c | [] | no_license | asrashley/music-bingo | bd33b883da9b6f88df506860475861daea63c6fb | f49d26900a10593a6f993b82d8d782b2e7367f84 | refs/heads/main | 2023-07-20T11:15:47.696132 | 2023-06-29T09:59:51 | 2023-07-05T16:48:41 | 125,717,777 | 1 | 1 | null | 2023-08-28T17:28:04 | 2018-03-18T11:26:17 | Python | UTF-8 | Python | false | false | 3,461 | py | """
A base class for creating dialog boxes
This class is based upon the code from:
http://effbot.org/tkinterbook/tkinter-dialog-windows.htm
"""
from abc import ABC, abstractmethod
from typing import Any, Optional, Protocol, Union
import tkinter as tk # pylint: disable=import-error
from .panel import Panel
class Fo... | [
"alex@ashley-family.net"
] | alex@ashley-family.net |
94806089d8e2bf6b6faa81a9841e2b0dfc88baf2 | cbedb18df0aaac810aeea87a2273edb15c1cf899 | /mixed bag/day9-10/394. Decode String (straight sol, but not easy to write).py | cb739c9f859f998c3e95e8efa8d9fe182117b893 | [] | no_license | kanglicheng/CodeBreakersCode | 71b833bb9f4c96d520c26f0044365dc62137a940 | 31f7f730227a0e10951e7468bad1b995cf2eafcb | refs/heads/master | 2023-08-07T20:32:05.267695 | 2020-09-14T14:36:25 | 2020-09-14T14:36:25 | 265,978,034 | 0 | 0 | null | 2020-05-22T00:05:29 | 2020-05-22T00:05:29 | null | UTF-8 | Python | false | false | 1,326 | py | class Solution:
def decodeString(self, s: str) -> str:
def rec(s, l, r, pair):
res = ""
i = l
num = 0
while i < r:
curChar = s[i]
if curChar.isnumeric():
j = i
... | [
"56766457+Wei-LiHuang@users.noreply.github.com"
] | 56766457+Wei-LiHuang@users.noreply.github.com |
92595caed1dd7131190d5a6ceabcea4944d68c2e | b4c6013f346e178222cc579ede4da019c7f8c221 | /src/main/python/idlelib/paragraph.py | f11bdaeb77ac38beb420366597c89ff90ac062fe | [
"BSD-3-Clause",
"OpenSSL",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"GPL-1.0-or-later",
"LicenseRef-scancode-unicode"
] | permissive | cafebabepy/cafebabepy | e69248c4f3d9bab00e93ee749d273bc2c9244f8d | 4ab0e67b8cd79f2ca7cab6281bc811d3b9bc69c1 | refs/heads/develop | 2022-12-09T21:14:56.651792 | 2019-07-01T09:05:23 | 2019-07-01T09:05:23 | 90,854,936 | 9 | 1 | BSD-3-Clause | 2018-01-02T02:13:51 | 2017-05-10T11:05:11 | Java | UTF-8 | Python | false | false | 7,277 | py | """Extension to format a paragraph or selection to a max width.
Does basic, standard text formatting, and also understands Python
comment blocks. Thus, for editing Python source code, this
extension is really only suitable for reformatting these comment
blocks or triple-quoted strings.
Known problems with comment ref... | [
"zh1bvtan1@gmail.com"
] | zh1bvtan1@gmail.com |
312dd6aaf8ba2a988707f09b3851cb85fa7bc812 | 2387cd7657d82b3102e7f8361496307c5f49a534 | /设计模式/python/singleton.py | b0ed87bf24fba431ef90934fc234f64cfcf4ba84 | [] | no_license | kelele67/ReadBooks | da36b25b01d008b2732ad4673e6b676ac7f25027 | 1cf5fc42e1a9edc32971fbcadb64b4b7a84481ad | refs/heads/master | 2021-01-19T14:48:56.932194 | 2017-10-16T10:11:35 | 2017-10-16T10:11:35 | 100,925,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | # import threading
# class Singleton(object):
# """Singleton"""
# instance = None
# lock = threading.RLock()
# @classmethod
# def __new__(cls):
# if cls.instance is None:
# cls.lock.acquire()
# if cls.instance is None:
# cls.instance = super(Singleto... | [
"kingand67@outlook.com"
] | kingand67@outlook.com |
06c38aa52a024c092191fe02628c564ccab24845 | e92a3d0fb77120be99de6040cb6cd34eda0a95f4 | /Ветки в Git, словари, кортежи и множества/code/delete_all-words.py | 0f30acdcfd066b2f9022bb81ba363d691eac67d1 | [] | no_license | Python18Academy/python_first_level | 495f85631f5afc737aa156ef8ca0ea307340c322 | 9ce490da3108474b135a17086f4d11f2a3bbbe55 | refs/heads/master | 2023-09-04T17:00:36.920987 | 2021-03-31T18:44:37 | 2021-03-31T18:44:37 | 331,934,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # я знаю что вы люите подобные списки
spisok = ['skovorodka', 'stolick', 'istoria', 'skovorodka', 'stena', 'kartina']
while 'skovorodka' in spisok:
spisok.remove('skovorodka')
print(spisok)
# выведет только обрезанный список
| [
"isakura313@gmail.com"
] | isakura313@gmail.com |
6b5e7cbb93508bf3bf78ec609a82b00d5bd0e6c9 | 742f1c8301264d4f06fc1d389157613c57614b7f | /web_test/web.py | 3d455f2d3970d34edb9732ad9174c6b8a2f4bab2 | [
"MIT"
] | permissive | DieMyDarling/python-web-test | 93fe9be2fb372545346621a0a6bd5b3961eb9af4 | 31a2beb82c8ad50df481a7ce0541813a2088a2b6 | refs/heads/master | 2022-11-23T10:34:44.072430 | 2020-07-30T18:12:46 | 2020-07-30T18:12:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | from web_test.pages.duckduckgo import Duckduckgo
from web_test.pages.ecosia import Ecosia
from web_test.pages.github import Github
from web_test.pages.google import Google
"""
This module is optional.
Usually it makes sense to call it `app.py`,
but in the context of this template project, our app is "all web",
and t... | [
"yashaka@gmail.com"
] | yashaka@gmail.com |
5e71698c0e44077c937447562f247b876aac103f | 625a3b84b86df1b0a61a7088373094e481b7502e | /simple_shop/wsgi.py | 8e65b23f6d90e12dc890866495e35847af8f8601 | [] | no_license | muremwa/simple-shop-api | 868dc4747fbdb0e6b3eca18969c373c2dd056b4f | ab96e04030de4f2833a4ede8834c4bce393e4528 | refs/heads/master | 2022-05-09T23:43:28.587469 | 2020-04-16T04:57:03 | 2020-04-16T04:57:03 | 256,277,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for simple_shop project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"danmburu254@gmail.com"
] | danmburu254@gmail.com |
17f12258192b8825a2fe6d30320ad544966d0f2b | 085488720112922ff3aed15f99f3c93911425c4a | /vesper/old_bird/old_bird_detector_redux_1_0.py | 624dd8d95f553d5433cceece3e7c4f84b8249de6 | [
"MIT"
] | permissive | HaroldMills/Vesper | 0b61d18bc241af22bfc251088fc87d72add6367b | ec92fe5231f54336499db189a3bbc6cb08a19e61 | refs/heads/master | 2023-07-05T22:45:27.316498 | 2023-07-04T11:58:14 | 2023-07-04T11:58:14 | 19,112,486 | 49 | 6 | MIT | 2023-02-14T16:09:19 | 2014-04-24T14:55:34 | Python | UTF-8 | Python | false | false | 25,097 | py | """
Module containing reimplementations of Old Bird Tseep and Thrush detectors.
The original detectors were implemented in the late 1990's by Steve Mitchell
and Bill Evans using the MathWorks' Simulink and Real-Time Workshop. The
reimplementations are writen in Python and make use of NumPy and SciPy.
The original det... | [
"harold.mills@gmail.com"
] | harold.mills@gmail.com |
5218e4c00c5dad5ac8b32aa30d93dff669c14ca5 | ee1bd2a5c88989a43fee1d9b3c85c08d66392502 | /intro_to_statistics/class15_probability.py | 002c1a3723c3ee75f9b05865185001170828f69a | [] | no_license | shasky2014/PythonLearning | 46288bd915466110ee14b5ee3c390ae9b4f67922 | 04c06d06a2c3f1c4e651627fd6b224f55205c06f | refs/heads/master | 2021-06-27T13:14:10.730525 | 2020-10-09T07:54:31 | 2020-10-09T07:54:31 | 252,903,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | py | # Relative Probabilities 1
# Let's suppose we have a fair coin and we flipped it four times.
# p1= 4*0.5*0.5*0.5*0.5
# p2= 0.5
#
# print p1/p2
# FlipPredictor
# A coin is drawn at random from a bag of coins of varying probabilities
# Each coin has the same chance of being drawn
# Your class FlipPredictor will be initi... | [
"249398363@qq.com"
] | 249398363@qq.com |
d584073eb7a7fc0392f9fc00e0573e29debd20dd | 66c6df450753acc7c41db5afe66abd35d5018c8c | /cliente Rujel/bin92.py | 76d7a6fac53865a674f5e3fd250b034be7f8ee9a | [] | no_license | hanmiton/CodigoCompletoEncriptacion | a33807d9470b538842751071031c9ce60951260f | efb7898af5d39025e98c82f1f71c8e9633cce186 | refs/heads/master | 2020-03-24T02:03:08.242655 | 2018-07-25T22:41:05 | 2018-07-25T22:41:05 | 142,360,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | import sys
import math
import random
import openpyxl
import xlsxwriter
from time import time
LAMBDA = 16 #security parameter
N = LAMBDA
P = LAMBDA ** 2
Q = LAMBDA ** 5
def principal(m1,m2):
numsA = []
numsB = []
aux = []
numsAEncrypt = []
numsBEncrypt = []
keys= []
doc = openpyxl.load_workbook('cifrado.xlsx... | [
"hanmilton_12@outlook.com"
] | hanmilton_12@outlook.com |
0df51dc4002580c130c48d9c16bdcd453f42d795 | 3665e5e6946fd825bb03b3bcb79be96262ab6d68 | /jc/parsers/route.py | 668ea3545e3157b06975c36ee8c9bd699778ec9a | [
"MIT",
"BSD-3-Clause"
] | permissive | philippeitis/jc | a28b84cff7fb2852a374a7f0f41151b103288f26 | d96b3a65a98bc135d21d4feafc0a43317b5a11fa | refs/heads/master | 2021-02-16T05:03:03.022601 | 2020-03-04T16:30:52 | 2020-03-04T16:30:52 | 244,969,097 | 0 | 0 | MIT | 2020-03-08T21:10:36 | 2020-03-04T18:01:38 | null | UTF-8 | Python | false | false | 4,085 | py | """jc - JSON CLI output utility route Parser
Usage:
specify --route as the first argument if the piped input is coming from route
Compatibility:
'linux'
Examples:
$ route -ee | jc --route -p
[
{
"destination": "default",
"gateway": "gateway",
"genmask": "0.0.0.0",
... | [
"kellyjonbrazil@gmail.com"
] | kellyjonbrazil@gmail.com |
7e3ced9ace84a2042505115765dc9b9879f9ec7e | 55b4fe0a6616b30c128b51a9918605050ce49f6d | /migrate_reverb | 2a0df049882f7873eb0353b8db62d960747cadec | [] | no_license | samhaug/ScS_reverb_setup | 783a4fb7c942a598f18dc6c9e3544aa5e2bbcafe | 05e96b9f871d25a1e7b5e9284083167993f56cec | refs/heads/master | 2021-01-12T03:35:45.657459 | 2017-06-24T17:24:07 | 2017-06-24T17:24:07 | 78,234,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,844 | #!/home/samhaug/anaconda2/bin/python
'''
==============================================================================
File Name : migrate_reverb.py
Purpose : Perform a migration to detect reflection coefficients of mid mantle
discontinuities. Must have access to a lookup table, waveform glossary,
... | [
"samhaug@umich.edu"
] | samhaug@umich.edu | |
5c5a167f3d78f3d568304c19afe7a914241562ad | 9597cb1a23e082cf8950408e7fce72a8beff6177 | /src/pipeline.py | 4cb6a56808ebe9440a34c8c428a9f6d11039dcfd | [] | no_license | xiaomi388/sydw_wsl | 5653c981b3720c6fd496b5a12966bb9cee604878 | 459bbeadb288b4fb65e5d816b19b749bd447df4c | refs/heads/master | 2021-03-24T12:29:22.643163 | 2017-10-04T15:00:33 | 2017-10-04T15:00:33 | 105,512,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | import os
import csv
class reportPipeline(object):
def __init__(self, parameters):
flag = os.path.exists('output.csv')
self.outfile = open('output.csv', 'a')
self.outcsv = csv.writer(self.outfile)
if not flag:
self.outcsv.writerow(parameters)
def save(self, arguments... | [
"xiaomi388@gmail.com"
] | xiaomi388@gmail.com |
247fe433152dd7d1247fc2bfb4b7d841a962c1cc | e6ead9c9489c1b97fb63dabb60e8083a76fe7e76 | /program/sandboxv2/server/tcp/components/send.py | bfc4e94cf1b48c7e407623d63777ac08d7d9f29a | [] | no_license | montarion/morsecode | a313471c2ccd40c62fa7249897ff58407c1bb03d | eed29720c1bb6ade102d8e8a39b4b1b188737681 | refs/heads/master | 2021-04-30T11:45:30.576645 | 2018-02-12T15:13:12 | 2018-02-12T15:13:12 | 121,256,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from socket import *
from time import sleep
class send:
def __init__(self, ip):
self.ss = socket(AF_INET, SOCK_STREAM)
self.ss.connect(((ip), 13334))
def send(self, code):
print('ready to send')
self.ss.send(code.encode())
print('sent')
self.ss.close()
| [
"jamirograntsaan@gmail.com"
] | jamirograntsaan@gmail.com |
e4de52a01a45251293a26a1950fbbfb56fc8bd34 | f571590e3c1787d183e00b81c408362e65671f76 | /namestring.py | 0e6c17addc2a6ac9c5fbce45bc29ba1924217a11 | [] | no_license | neymarthan/project1 | 0b3d108dd8eb4b6fa5093525d469d978faf88b88 | 5e07f9dff181bb310f3ce2c7818a8c6787d4b116 | refs/heads/master | 2022-12-26T08:44:53.464398 | 2020-10-06T09:14:29 | 2020-10-06T09:14:29 | 279,528,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | filename=input('Enter the filename: ')
if filename.endswith('.txt'):
print('That is the name of text file.')
elif filename.endswith('.py'):
print('That is the name of a Python source file.')
elif filename.endswith('.doc'):
print('That is the name of word processing document.')
else:
print('Unknown file... | [
"INE-02@Admins-iMac-5.local"
] | INE-02@Admins-iMac-5.local |
267efccef26c76fef97df4a0bb5bda3924f48090 | af47797c9518e12a00a8de5a379d5fa27f579c40 | /newbeercellar/login.py | e483db50fe8883ead45c750312921ea650f795fe | [
"MIT"
] | permissive | atlefren/newbeercellar | 29526154e74b4c613061c01eb59815e08cf03f1b | fcf5a174f45a3d21ce9613b88977a88d9bae4aa5 | refs/heads/master | 2021-01-20T08:47:03.976431 | 2015-04-26T16:14:42 | 2015-04-26T16:14:42 | 29,885,741 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | from flask import current_app, redirect, url_for, session
from flask.ext.login import login_user, logout_user
from flask_googlelogin import USERINFO_EMAIL_SCOPE
from newbeercellar import login_manager, app, googlelogin
from models import User
from util import get_or_create_default_cellar
@app.route("/login")
def log... | [
"atle@frenviksveen.net"
] | atle@frenviksveen.net |
cfc8baabe5fbc4634ddd6a8cb4267db77e24b358 | 000a4b227d970cdc6c8db192f4437698cb782721 | /python/helpers/typeshed/stubs/passlib/passlib/ifc.pyi | 80467bfea35e5977019150a5275c3534e3f1145c | [
"Apache-2.0",
"MIT"
] | permissive | trinhanhngoc/intellij-community | 2eb2f66a2a3a9456e7a0c5e7be1eaba03c38815d | 1d4a962cfda308a73e0a7ef75186aaa4b15d1e17 | refs/heads/master | 2022-11-03T21:50:47.859675 | 2022-10-19T16:39:57 | 2022-10-19T23:25:35 | 205,765,945 | 1 | 0 | Apache-2.0 | 2019-09-02T02:55:15 | 2019-09-02T02:55:15 | null | UTF-8 | Python | false | false | 1,061 | pyi | import abc
from abc import abstractmethod
from typing import Any
class PasswordHash(metaclass=abc.ABCMeta):
is_disabled: bool
truncate_size: Any
truncate_error: bool
truncate_verify_reject: bool
@classmethod
@abstractmethod
def hash(cls, secret, **setting_and_context_kwds): ...
@classme... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
7a6660a4ebd2a02738361cb692acd4b4451abde7 | 4fc86f5c444f52619f9f748c9bad5bf3e0e2c0b2 | /megatron/data/test/test_indexed_dataset.py | 78622d275de5b38bbe02b1c1827d34036aff0eb1 | [
"MIT",
"Apache-2.0"
] | permissive | Xianchao-Wu/megatron2 | 95ea620b74c66e51f9e31075b1df6bb1b761678b | f793c37223b32051cb61d3b1d5661dddd57634bf | refs/heads/main | 2023-08-17T03:42:31.602515 | 2021-09-24T05:12:00 | 2021-09-24T05:12:00 | 330,527,561 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,739 | py | # This file isn't really a formal automated test, it's just a place to
# put some code used during development and manual testing of
# indexed_dataset.
import os
import sys
script_dir = os.path.dirname(os.path.realpath(__file__))
sys.path.append(os.path.join(script_dir, "../../../"))
from megatron.data import indexed... | [
"wuxianchao@gmail.com"
] | wuxianchao@gmail.com |
d6cdb884372725cfa6a83177edf21c31408b92e1 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/DATA_STRUC_PYTHON_NOTES/python-prac/mini-scripts/Python_Indentation_1.txt.py | d645b6e26f5356cbcfb271b23e86a4036273dfa2 | [
"MIT",
"Python-2.0"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 70 | py | if 5 > 2:
print("Five is greater than two!")
//Creater By Bryan G
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
ee0b17ad5ca05895993677298cc9cc9d610b1be4 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/586613e9c4dd65b64bfcffb16c008562f967ba42-<test_cdist_calling_conventions>-bug.py | 98025efd20cb767648c554c73b6b99fa2470e902 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | def test_cdist_calling_conventions(self):
for eo_name in self.rnd_eo_names:
X1 = eo[eo_name][:, ::(- 1)]
X2 = eo[eo_name][:(- 3):2]
for metric in _metrics:
if (verbose > 2):
print('testing: ', metric, ' with: ', eo_name)
if ((metric == 'yule') and ('bo... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
4222606e1a7a16d3a76ac4e443a33e885993f6a7 | 915496215d4c4ae4c952dc1839e73d112dab0460 | /manage/fabriccloud/vagrant.py | 3fa1f48de523f43f2eed7851619dd4db94fc96c7 | [] | no_license | nicholsn/simple-application-framework | 4afa6f71af68968e45364fd0691c54be9acf0f71 | a62f332bdebc9fff31ad58bdcb68cff990bdc663 | refs/heads/master | 2021-01-18T01:20:40.474399 | 2014-03-18T20:41:53 | 2014-03-18T20:41:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | __author__ = 'stonerri'
from base import *
def setDefaults():
env.user = 'vagrant'
env.hosts = ['127.0.0.1']
env.port = 2200
# use vagrant ssh key
result = local('vagrant ssh-config | grep IdentityFile', capture=True)
env.key_filename = result.split()[1]
def systemInformation():
pass... | [
"stonerri@gmail.com"
] | stonerri@gmail.com |
e2fbb383b2e508e6e2293ae87a3433534eff975d | f78cb1e6a6b6c644cd35b5139b01017fcf8dcdb1 | /PostProcessing/test/Palisade/test_processor_base.py | 574194b068ce248e4320fa255794666e91297e61 | [] | no_license | dsavoiu/Karma | 9506fc449d94db060fabd0bfa61ff7673107b40d | 1e9f1d237cb6b0f7c92e7c2ea1a14c6b4a5745cd | refs/heads/master | 2023-06-26T08:53:09.979674 | 2023-04-06T15:11:14 | 2023-04-06T15:19:33 | 143,059,118 | 1 | 6 | null | 2022-11-22T20:39:17 | 2018-07-31T19:37:46 | Python | UTF-8 | Python | false | false | 11,973 | py | import numpy as np
import operator as op
import os
import shutil
import unittest2 as unittest
from copy import deepcopy
from rootpy import asrootpy
from rootpy.io import root_open, DoesNotExist
from rootpy.plotting import Hist1D, Hist2D, Profile1D, Efficiency, Graph
from rootpy.plotting.hist import _Hist, _Hist2D
fro... | [
"daniel.savoiu@cern.ch"
] | daniel.savoiu@cern.ch |
7251e6e8d7ab60a638ac28701018bae4595f14da | 1bed2f766620acf085ed2d7fd3e354a3482b8960 | /tests/components/zwave_js/conftest.py | 6585deddbdb78e6b5a276817a7abcaf1c5b4593c | [
"Apache-2.0"
] | permissive | elupus/home-assistant | 5cbb79a2f25a2938a69f3988534486c269b77643 | 564150169bfc69efdfeda25a99d803441f3a4b10 | refs/heads/dev | 2023-08-28T16:36:04.304864 | 2022-09-16T06:35:12 | 2022-09-16T06:35:12 | 114,460,522 | 2 | 2 | Apache-2.0 | 2023-02-22T06:14:54 | 2017-12-16T12:50:55 | Python | UTF-8 | Python | false | false | 39,828 | py | """Provide common Z-Wave JS fixtures."""
import asyncio
import copy
import io
import json
from unittest.mock import AsyncMock, patch
import pytest
from zwave_js_server.event import Event
from zwave_js_server.model.driver import Driver
from zwave_js_server.model.node import Node
from zwave_js_server.version import Vers... | [
"noreply@github.com"
] | elupus.noreply@github.com |
d2c84c2cfac6a26d53336cc831694263d2a11349 | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/munition/component/shared_enhanced_charge_composition.py | eebfa2798168c09b5f44a3fe87ea1a262e586d88 | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 475 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/munition/component/shared_enhanced_charge_composition.iff"
... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
ef2f8af259d7490fa0b6e5f825bd56b216c07e92 | 597b82737635e845fd5360e191f323669af1b2ae | /08_full_django/login_registration_2/login_registration_2/wsgi.py | 663215d1fbccb9d37f487ac45f6c023f09112572 | [] | no_license | twknab/learning-python | 1bd10497fbbe181a26f2070c147cb2fed6955178 | 75b76b2a607439aa2d8db675738adf8d3b8644df | refs/heads/master | 2021-08-08T08:50:04.337490 | 2017-11-10T00:28:45 | 2017-11-10T00:28:45 | 89,213,845 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | """
WSGI config for login_registration project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("... | [
"natureminded@users.noreply.github.com"
] | natureminded@users.noreply.github.com |
1abac6f5607e39fabc23ddc8411528b74bb9765f | 5c94e032b2d43ac347f6383d0a8f0c03ec3a0485 | /Push/sysex.py | 6322a4228abd634fc27012bc7522b1d1ea89d65f | [] | no_license | Elton47/Ableton-MRS-10.1.13 | 997f99a51157bd2a2bd1d2dc303e76b45b1eb93d | 54bb64ba5e6be52dd6b9f87678ee3462cc224c8a | refs/heads/master | 2022-07-04T01:35:27.447979 | 2020-05-14T19:02:09 | 2020-05-14T19:02:09 | 263,990,585 | 0 | 0 | null | 2020-05-14T18:12:04 | 2020-05-14T18:12:03 | null | UTF-8 | Python | false | false | 3,655 | py | # uncompyle6 version 3.6.7
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.17 (default, Dec 23 2019, 21:25:33)
# [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.16)]
# Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Push/sysex.... | [
"ahmed.emerah@icloud.com"
] | ahmed.emerah@icloud.com |
aa7b172ff58d05379109ded6c2595ea34f13b028 | 673317f52e04401fd8c5f89282b56120ad6315df | /src/pretix/plugins/ticketoutputpdf/signals.py | 4b1ba025fab0a71b28fe112addcedb642a853ef0 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | barseghyanartur/pretix | 0218a20bc0f7a1bac59aa03bc83448c33eccdbff | 05bafd0db5a9048f585cc8431b92851e15ba87eb | refs/heads/master | 2020-03-18T22:17:20.328286 | 2018-05-29T08:39:41 | 2018-05-29T08:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | from functools import partial
from django.dispatch import receiver
from django.utils.translation import ugettext_lazy as _
from pretix.base.models import QuestionAnswer
from pretix.base.signals import ( # NOQA: legacy import
event_copy_data, layout_text_variables, register_data_exporters,
register_ticket_out... | [
"mail@raphaelmichel.de"
] | mail@raphaelmichel.de |
37a055a130168f8bb3f4a7ce8dc15be15511155c | ac81f7f0160571a7e601d9808d424d2c407573b6 | /0392-Is-Subsequence.py | 3c57686253a10c3e7ae98adb8e18d2e9278d9c57 | [] | no_license | nirmalnishant645/LeetCode | 61d74c152deb0e7fb991065ee91f6f7102d7bbc6 | 8bdb4583187ee181ca626063d7684dcc64c80be3 | refs/heads/master | 2022-08-14T04:10:23.110116 | 2022-07-13T06:27:18 | 2022-07-13T06:27:18 | 227,960,574 | 53 | 19 | null | 2021-01-16T17:26:30 | 2019-12-14T03:31:54 | Python | UTF-8 | Python | false | false | 1,103 | py | '''
Given a string s and a string t, check if s is subsequence of t.
You may assume that there is only lower case English letters in both s and t. t is potentially a very long (length ~= 500,000) string, and s is a short string (<=100).
A subsequence of a string is a new string which is formed from the original stri... | [
"noreply@github.com"
] | nirmalnishant645.noreply@github.com |
2ddee8e373f05456f1e32c5856b3f3f9bffed03c | 90b5a86b07745561267fde367259b9f48da3ca74 | /apps/categorys/migrations/0002_auto_20180507_1612.py | 6079d5926e69d480553e84fad584aec7caa588d6 | [] | no_license | enjoy-binbin/pyblog | fb8bfc6017595412850faf20ba4ce0c8e5ee761b | 47e93d67dbfd8acf58bfb7e2e15c0c6cce32ef6e | refs/heads/master | 2021-08-11T06:38:52.959002 | 2019-02-06T13:46:50 | 2019-02-06T13:46:50 | 166,924,461 | 2 | 0 | null | 2021-08-09T20:47:43 | 2019-01-22T03:59:51 | Python | UTF-8 | Python | false | false | 455 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2018-05-07 16:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('categorys', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"binloveplay1314@qq.com"
] | binloveplay1314@qq.com |
0d33b3146a5d87f4bd3f2197443f3de225c55f6e | 1e9ef3df6b65d53127f1858dbf625cd31874fb11 | /REST-api/rest/migrations/0002_auto_20161022_2237.py | 35388c20b14429bdd7fd8eda173603248d6e7f11 | [] | no_license | Matvey-Kuk/openbmp-as-path-planet | 9007c9b86009b4576638b53f45e35d429c1ed55f | ddd2c83861aa7540bd9eb83e75b5072f1e20d322 | refs/heads/master | 2021-01-12T14:58:48.600762 | 2016-10-23T02:16:00 | 2016-10-23T02:16:00 | 71,657,356 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-22 22:37
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rest', '0001_initial'),
]
operations = [
m... | [
"motakuk@gmail.com"
] | motakuk@gmail.com |
42341246ba9ecfedf89645e2ee529b7cfc00baef | e79c4d4a633e8578ef8fbadd5937140ad1761e5b | /src/wellsfargo/models/transfers.py | a85e657729c878b01103128f49763595bd26e565 | [
"ISC"
] | permissive | thelabnyc/django-oscar-wfrs | ca9a4737e8b6575bde21705179c67212ad47df16 | 61548f074ffd7ce41e31b3bc9a571d569a8f8248 | refs/heads/master | 2023-05-26T14:41:43.366400 | 2023-05-17T17:35:20 | 2023-05-17T17:35:20 | 59,534,130 | 1 | 2 | ISC | 2022-12-08T05:06:17 | 2016-05-24T02:32:09 | Python | UTF-8 | Python | false | false | 3,002 | py | from django.conf import settings
from django.db import models
from django.utils.translation import gettext_lazy as _
from django.utils.functional import cached_property
from oscar.core.loading import get_model
from oscar.models.fields import NullCharField
from ..core.constants import (
TRANS_TYPE_AUTH,
TRANS_TY... | [
"crgwbr@gmail.com"
] | crgwbr@gmail.com |
bd1c1e2f2d69867f68e05e068ba68387f6d45788 | a7ded5d3d19a98e61a44189cffe3703f7938e0db | /xero_python/payrolluk/models/earnings_rate.py | 8ce25c8cc1f945fa7a7d80094f28ab937d8fb96d | [
"MIT"
] | permissive | liseekeralbert/xero-python | dfd1076344f763d74f81f701e32600cf88bcc7b2 | d27ab1894ecd84d2a9af0ca91583593756b21ab3 | refs/heads/master | 2022-12-16T07:41:14.331308 | 2020-09-18T17:12:35 | 2020-09-18T17:12:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,527 | py | # coding: utf-8
"""
Xero Payroll UK
This is the Xero Payroll API for orgs in the UK region. # noqa: E501
OpenAPI spec version: 2.3.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from xero_python.models import BaseModel
class EarningsRate(Bas... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
6a702164df517737cd177ab547688f038cb51aa1 | 57ddfddd1e11db649536a8ed6e19bf5312d82d71 | /AtCoder/ABC0/ABC038/ABC038-C.py | 5004183698b5aec8e51581e7b45a0868ffd3856f | [] | no_license | pgDora56/ProgrammingContest | f9e7f4bb77714dc5088c2287e641c0aa760d0f04 | fdf1ac5d1ad655c73208d98712110a3896b1683d | refs/heads/master | 2023-08-11T12:10:40.750151 | 2021-09-23T11:13:27 | 2021-09-23T11:13:27 | 139,927,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | n = int(input())
a = list(map(int, input().split()))
a.append(0)
prev = 10**6
count = 0
total = n
for v in a:
if prev >= v:
total += int(count*(count+1)/2)
count = 0
else:
count += 1
prev = v
print(total) | [
"doradora.prog@gmail.com"
] | doradora.prog@gmail.com |
a77641cc9909f854dbf944e75cc53a83aaf49355 | c6db8eccba0f863e464fa23e7c8c5f27d6da277b | /CS/Programming_Languages/Python/Modules/exterior/topics/gui/dearPyGUI/documentation/_24_tables/_24_8_scrolling/__init__.py | 89ee147b6740fdb7a946347181501d484ef04a64 | [] | no_license | corridda/Studies | ceabb94f48bd03a31e4414e9af841d6a9b007cf9 | 1aacf52f2762e05a416c9e73ebe20794cb5d21cf | refs/heads/master | 2023-02-05T18:51:04.217528 | 2023-01-28T09:21:03 | 2023-01-28T09:21:03 | 216,492,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | """Scrolling
https://dearpygui.readthedocs.io/en/latest/documentation/tables.html#scrolling
""" | [
"corridda@yandex.ru"
] | corridda@yandex.ru |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.