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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
953b13229117505cbd103e683fe9a6c35683cc7a | 9434997753b4edec70916aa5e8380c27e88ea2ab | /build/lib.macosx-10.5-x86_64-2.7/pydynet/analysis.py | 0bacd711233e1a5843ef9e507974536ee2cdb982 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | thelahunginjeet/pydynet | c58df847db969d8e92d6ef54e4e53a6efdad5283 | d4e739aebf05f8aec5a9601b804842539d6b9e93 | refs/heads/master | 2021-04-18T23:59:42.597132 | 2020-06-12T04:12:24 | 2020-06-12T04:12:24 | 37,340,404 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,440 | py | #!/usr/bin/env python
# encoding: utf-8
"""
analysis.py
@author: Kevin S. Brown (University of Connecticut), Ann M. Hermundstad (UPenn)
Created by Kevin Brown on 2015-03-17.
"""
from numpy import log,exp,mean,abs,log2,sqrt
from numpy import roll,where,histogram,nonzero,delete,zeros_like,array,zeros,newaxis
import net... | [
"kevin.s.brown@uconn.edu"
] | kevin.s.brown@uconn.edu |
7821a32281f931b75f37a80413b9ec794a2804e3 | 1377e0c1b2200f5130b149ff77cf0fda5a1d2aa9 | /src/pmr2/client/script.py | 6cbae7a5414bf1624b23dd63f667976f1e80867c | [] | no_license | alan-wu/pmr2.client | c97ef8371be931da281eba33082d649ce65e1201 | 3dc6afa008159acaa5b8bde4b291920ea3eceb3d | refs/heads/master | 2020-04-04T21:19:54.317615 | 2014-09-01T02:50:32 | 2014-09-01T02:50:52 | 156,282,171 | 0 | 0 | null | 2018-11-05T20:58:31 | 2018-11-05T20:58:30 | null | UTF-8 | Python | false | false | 7,941 | py | import os.path
import traceback
import json
import code
import pdb
import webbrowser
from urllib import quote_plus
from requests_oauthlib.oauth1_session import TokenRequestDenied
try:
import readline
except ImportError:
pass
from pmr2.client import Client
from pmr2.client import DemoAuthClient
HOME = os.pat... | [
"tommy.yu@auckland.ac.nz"
] | tommy.yu@auckland.ac.nz |
f5e09da800b6be9e3ad3cd52937aa943b1c2ee6d | f087d996fd8164dc4fcf9b312533e51bd42029ae | /products/urls.py | cf8edd5c4698904055f1302df72e09cd2c83a3fe | [] | no_license | Mohamed-Kudratov/Furniture_store | 364abc300a3c00b999d54e45badfc7c8ca998e90 | 98754515937c1d7d934a75f0fe6e5f600a69b5e4 | refs/heads/main | 2023-07-18T04:40:16.770467 | 2021-08-30T15:31:16 | 2021-08-30T15:31:16 | 399,190,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from django.urls import path
from products.views import ProductListView
app_name = 'products'
urlpatterns = [
path('', ProductListView.as_view(), name='list')
] | [
"you@example.com"
] | you@example.com |
9d0fe1cb7381c95d5401a723dc80ac5b70db6e8e | 4d9bb813b23f59da3e53e9e5932b9b4f2ec2f876 | /backend/manage.py | bb67affcea9ec7200a162f7d747ce71d48c5541c | [] | no_license | crowdbotics-apps/mobile-27-dev-6716 | 79939276c5ff7f54a7fb35a4267a5a0663f8ff87 | bbc168bb35c98604d7afbf074b4d6068790c1192 | refs/heads/master | 2022-11-11T10:25:45.638298 | 2020-06-27T06:41:06 | 2020-06-27T06:41:06 | 275,303,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mobile_27_dev_6716.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
r... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
75ccd59f1058f4fa224b44f4ba3b6b7670f1bca4 | c8c77f6cc6c032daf179ea2138e4dda5473b426b | /s3/s3-python-example-download-file.py | 44226fc6b8e67109cfe37b2a8ae8611f54e25ad1 | [] | no_license | arunmastermind/AWS-examples-using-BOTO3 | b411a6c96011ab58a66952a53fa2938cb58d5135 | e8390094374c10902bab016a21caba75ea179b5a | refs/heads/master | 2020-09-30T13:34:33.657621 | 2019-12-11T12:37:44 | 2019-12-11T12:37:44 | 227,297,211 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import boto3
import botocore
BUCKET_NAME = 'my-bucket' # replace with your bucket name
KEY = 'my_image_in_s3.jpg' # replace with your object key
s3 = boto3.resource('s3')
try:
s3.Bucket(BUCKET_NAME).download_file(KEY, 'my_local_image.jpg')
except botocore.exceptions.ClientError as e:
if e.response['Error']['... | [
"arunmastermind.sci@gmail.com"
] | arunmastermind.sci@gmail.com |
9def36becf9665b78190a6e896d8622be917634c | 4668b8330bb287eef380f990cce3d076bf9456df | /venv/lib/python3.6/site-packages/ray/__init__.py | eb02bacfc63ecab548d282500c5d067bd6463a88 | [] | no_license | Ali-Khakpash/redis-flask-training | 1f7bb1745f224c752bbdb338f4bb4da5ad65f3fb | 1d5a59a97486e734cb7b08ddb40c8aaeddd429d8 | refs/heads/master | 2020-11-25T10:19:25.553265 | 2020-03-12T19:03:36 | 2020-03-12T19:03:36 | 228,612,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,271 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from os.path import dirname
import sys
# MUST add pickle5 to the import path because it will be imported by some
# raylet modules.
if "pickle5" in sys.modules:
raise ImportError("Ray must be imp... | [
"ali.khakpash@gmail.com"
] | ali.khakpash@gmail.com |
7896761a2d9876cb6e6e8e6d766e7a025d168829 | 747eeeed1056b69a8bde6364ee9bf266523f19e5 | /Important libraries/Numpy.py | 940902f2074d483296c520004216c369c0df94d0 | [] | no_license | LittleAndroidBunny/Python_Cheatsheet_Nohar_Batit | d18a77d455474834da99c11e763beea598947f7c | a53f5e3a635bb47012fceb50efd43ad124eff180 | refs/heads/main | 2023-06-10T10:40:54.746084 | 2021-07-03T23:25:17 | 2021-07-03T23:25:17 | 382,595,063 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,146 | py | # -*- coding: utf-8 -*-
"""colab-tutorial.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/github/cs231n/cs231n.github.io/blob/master/python-colab.ipynb
#CS231n Python Tutorial With Google Colab
"""
"""##Introduction
Python is a great general-purpose... | [
"noharbatit.9@gmail.com"
] | noharbatit.9@gmail.com |
f5d74b47c47767172a0a4f417aabf004bcfcd977 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_192/ch50_2020_03_31_18_24_04_548537.py | 160206f489154d64f31662ca60f92d5e9b86c3d2 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | def junta_nome_sobrenome(nome, sobrenome):
n_s = []
espaco = [' ']*len(n)
i = 0
while i < len(n):
n_s.append(n[i]) = espaco[i] + s[i]
i += 1
print(n_s) | [
"you@example.com"
] | you@example.com |
d83403b3e62411169dc322e3b39e4f5ae49837ef | dbcef3da83c75c61542c85cfb02dd2b97d5316b5 | /016 3Sum Closest/3Sum-Closest.py | f35017735b3e80d7a98e0f12802a93dacd5e1931 | [] | no_license | wecoderBao/own-leetcode-solution-python | bbf3efad162f542f510293e614bbbadf67dcd899 | ef1760df16d2e298162a33a2ab27a537f8527446 | refs/heads/master | 2021-01-24T10:52:41.404740 | 2018-03-26T03:34:04 | 2018-03-26T03:34:04 | 123,067,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,007 | py | """
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target.
Return the sum of the three integers. You may assume that each input would have exactly one solution.
For example, given array S = {-1 2 1 -4}, and target = 1.
The sum that is closest to the ta... | [
"sunbao@corp.netease.com"
] | sunbao@corp.netease.com |
b23881cd3ec3b09bc5fbeeb2a6134e6300077f74 | 524baf7de05bd3fc5b9d08083cbb0b7b47a67979 | /66.py | 7ea2f8d6d49eac49fd8935d35ebcf0323fa8d74d | [] | no_license | gk90731/100-questions-practice | 1356dd577516567a5c51a4257f59fe01b123e7ff | f855549e037b9924dd6f0370dc2f2a53765d9227 | refs/heads/master | 2020-05-25T14:04:59.642819 | 2019-05-21T12:49:04 | 2019-05-21T12:49:04 | 187,835,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | """Question: Create an English to Portuguese translation program.
The program takes a word from the user as input and translates it using the following dictionary as a vocabulary source.
d = dict(weather = "clima", earth = "terra", rain = "chuva")
Expected output:
Enter word:
earth
terra"""
########################... | [
"gk90731@gmail.com"
] | gk90731@gmail.com |
526254b60ba5c538d70a8f15f972c21f136bb4f9 | 5094eebd60b2a59114ee493107cb13cf50b04d77 | /manage.py | 295da3731c97b97bfc98d0e1629722f898b7a1f7 | [] | no_license | ryu022304/NLP_100knocks_69 | bb6dd80d80485953697f3f47a91c30750bd77f71 | 3c5448ea8a1d52930b7df67472e1800256569bba | refs/heads/master | 2020-04-08T12:13:10.969238 | 2019-02-17T08:28:40 | 2019-02-17T08:28:40 | 159,337,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'NLP_100knocks_69.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dja... | [
"ryu022304@gmail.com"
] | ryu022304@gmail.com |
6bd0239951439edd729d4ce1d71d7ea2d4fbd1ad | 97e0064a13111eef4709a0b865e58cf9d8804cc1 | /restore_expense.py | 8a1372de0f0fdfc5f069b0ca1fd295e00234f914 | [] | no_license | c1xfr2e/kky_stuff | ee9dc03f985b405b79388b385543747ad490f3aa | 47dc5aafeb8710bebd1486d5a7aff7f669ea94ce | refs/heads/master | 2021-05-28T23:02:11.676345 | 2015-07-02T10:28:24 | 2015-07-02T10:28:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,600 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'zh'
__date__ = '6/30/15'
from pymongo import MongoClient
from bson import ObjectId
import pickle
import datetime
import time
import sys
import logging
import tablib
import xlrd
import decimal
client = MongoClient('mongodb://sa:kuaikuaiyu1219@123.56.131.68:7900... | [
"gurity@163.com"
] | gurity@163.com |
1de1dd49bfdc0892c65112b7ef0032830fb8ab54 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/aio/operations/_azure_firewall_fqdn_tags_operations.py | 2a9ee6dd7a76b016f22f8b6f45c0eb67eb0302ba | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 5,081 | 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"
] | paultaiton.noreply@github.com |
30119909b42166146f8b4dccfc70438638f747a2 | cfa3f958c8b4c7f8617731c6580c16e8daee6218 | /board/todos/models.py | 1d2a1417eac0374b90f6398deeed334911f10766 | [] | no_license | cdh3261/Django | dd01f9c07c8b501c95445748e5d590565ca68352 | 0003b617ae500cf191e4af5cc8ab5fd06f02f76e | refs/heads/master | 2022-12-22T23:12:41.271650 | 2019-11-04T07:57:46 | 2019-11-04T07:57:46 | 217,967,586 | 0 | 0 | null | 2022-11-22T04:46:53 | 2019-10-28T04:43:09 | Python | UTF-8 | Python | false | false | 238 | py | from django.db import models
# Create your models here.
class Todo(models.Model):
title = models.CharField(max_length=50)
content = models.TextField()
due_date = models.DateField()
author = models.CharField(max_length=50) | [
"cdh3261@naver.com"
] | cdh3261@naver.com |
b4a7e58c3f973d0cd61a90b044f43e9f1ab81be1 | 41658affd8f1b6fd2ffb89ec08ba7fb13fffacd6 | /kbengine/assets/scripts/base/GameRoom.py | ac7864696a42cda106293ef1f62fd201c23b676d | [] | no_license | flyarong/FourDeckCards-kbengine-cocos | 42203d3d825e8828baabee236a0f38e161f144c1 | 1cd40a6d8ffa684a007cfa74fb5bbbce0da49179 | refs/heads/master | 2023-05-26T00:10:33.429000 | 2019-04-16T08:32:12 | 2019-04-16T08:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,369 | py | # -*- coding: utf-8 -*-
import math
import KBEngine
from KBEDebug import *
import time
from datetime import datetime
from interfaces.GameObject import GameObject
from entitymembers.iRoomRules import iRoomRules
from entitymembers.PlayerProxy import PlayerProxy
from BaseEntity import BaseEntity
import json
import const
... | [
"693749857@qq.com"
] | 693749857@qq.com |
31556e2ff279b0f2bc83581d282addea9f319f6a | a2dc75a80398dee58c49fa00759ac99cfefeea36 | /bluebottle/activities/migrations/0043_auto_20210420_0847.py | 1832ca60d59f7222957c239e0285e3bbb6f24d90 | [
"BSD-2-Clause"
] | permissive | onepercentclub/bluebottle | e38b0df2218772adf9febb8c6e25a2937889acc0 | 2b5f3562584137c8c9f5392265db1ab8ee8acf75 | refs/heads/master | 2023-08-29T14:01:50.565314 | 2023-08-24T11:18:58 | 2023-08-24T11:18:58 | 13,149,527 | 15 | 9 | BSD-3-Clause | 2023-09-13T10:46:20 | 2013-09-27T12:09:13 | Python | UTF-8 | Python | false | false | 1,330 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2021-04-20 06:47
from __future__ import unicode_literals
from django.db import migrations, connection
def create_activity_view(apps, schema_editor):
sql = """
DROP VIEW IF EXISTS activities;
CREATE VIEW activities AS
SELECT ct.m... | [
"loek@goodup.com"
] | loek@goodup.com |
988702a78c19d40f847900e6fd1f3b46d60d54af | 86ed811106eecf7aa3a15cf98537ef274b811ad7 | /headmasters/migrations/0009_headmasterprofile_crop_url.py | 1cdccb88138baab74eb6d4ab65b1dfaaa7729e12 | [] | no_license | SaifulAbir/Django-MIS | 934ad39beff62f0e1cbe9377738b780122989662 | d680a0a64211bc9cd7748364454c52b16398ea5c | refs/heads/master | 2022-10-19T11:57:46.087577 | 2020-02-03T10:10:08 | 2020-02-03T10:10:08 | 271,542,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # Generated by Django 2.2.4 on 2019-10-22 06:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('headmasters', '0008_auto_20190930_1246'),
]
operations = [
migrations.AddField(
model_name='headmasterprofile',
name... | [
"rashed@ishraak.com"
] | rashed@ishraak.com |
de894f519d533dd6183e61c9dd8f23315fa88388 | 652e6171022bb844102e191e9459e73ff2d7901b | /tests/optimizations/HardImports_2.py | 8b513f9b738753c890d6b6be85033361b2fdc0ce | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | pombredanne/Nuitka | e07ee1ba2c027c25e4feebc9751bbb0c1cb338b1 | 02e8d59a275cd7fe482cbc8100e753ff5abe39d7 | refs/heads/develop | 2022-03-16T23:55:49.295972 | 2022-02-20T14:28:23 | 2022-02-20T14:28:23 | 69,127,861 | 0 | 0 | null | 2016-09-24T21:10:20 | 2016-09-24T21:10:20 | null | UTF-8 | Python | false | false | 973 | py | # Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python test originally created or extracted from other peoples work. The
# parts from me are licensed as below. It is at least Free Software where
# it's copied from other people. In these cases, that will normally be
# indicated.
#
# L... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
df189a233dc0b05d92ae76eda7e06be7f66882b2 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/41/usersdata/112/24387/submittedfiles/gravitacional.py | 888bc07241bd9b1b980d67c03c96c8be908f635c | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import funcoes
#ENTRADA
dimensao = input('Digite a dimensao das matrizes: ')
matrizA = raw_input('Digite a Matriz A como uma única linha entre aspas: ')
matrizD = raw_input('Digite a Matriz D como uma única linha entre aspas: ')
alfa = input('D... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4351140b637b391a04bca70933beb6392331991c | a56252fda5c9e42eff04792c6e16e413ad51ba1a | /resources/usr/local/lib/python2.7/dist-packages/sklearn/grid_search.py | babf7a6b2e77b260bd4677d8489191de20e18243 | [
"Apache-2.0"
] | permissive | edawson/parliament2 | 4231e692565dbecf99d09148e75c00750e6797c4 | 2632aa3484ef64c9539c4885026b705b737f6d1e | refs/heads/master | 2021-06-21T23:13:29.482239 | 2020-12-07T21:10:08 | 2020-12-07T21:10:08 | 150,246,745 | 0 | 0 | Apache-2.0 | 2019-09-11T03:22:55 | 2018-09-25T10:21:03 | Python | UTF-8 | Python | false | false | 32,847 | py | """
The :mod:`sklearn.grid_search` includes utilities to fine-tune the parameters
of an estimator.
"""
from __future__ import print_function
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>,
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# ... | [
"szarate@dnanexus.com"
] | szarate@dnanexus.com |
b2e82b041ae60991fc2615856e24aaef9e02e41b | 72a58c62d62210e853ef09fdee65bf6ffb8972bd | /src/lib/telegram/bot.py | 1814abd2853af3c3711e9a156c5eb5f318c7699b | [
"MIT"
] | permissive | thonkify/thonkify | 93ade2489f20fb80c5e8e27fe67b9b231ada62bd | 2cb4493d796746cb46c8519a100ef3ef128a761a | refs/heads/master | 2023-09-01T00:03:10.398583 | 2018-03-16T09:18:24 | 2018-03-16T09:18:24 | 99,354,595 | 17 | 3 | MIT | 2023-09-05T02:27:42 | 2017-08-04T15:10:50 | Python | UTF-8 | Python | false | false | 84,929 | py | #!/usr/bin/env python
# pylint: disable=E0611,E0213,E1102,C0103,E1101,W0613,R0913,R0904
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2017
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it ... | [
"david.dellsperger@gmail.com"
] | david.dellsperger@gmail.com |
1ef5a65135c034f3e78359e2d7b635ff06eb63f5 | a884039e1a8b0ab516b80c2186e0e3bad28d5147 | /Livros/Livro-Introdução à Programação-Python/Capitulo 10/Exemplos/nome.py | 08708c5df927089c0f4d9b9c55738c7715ea25a2 | [
"MIT"
] | permissive | ramonvaleriano/python- | 6e744e8bcd58d07f05cd31d42a5092e58091e9f0 | ada70918e945e8f2d3b59555e9ccc35cf0178dbd | refs/heads/main | 2023-04-10T14:04:24.497256 | 2021-04-22T18:49:11 | 2021-04-22T18:49:11 | 340,360,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # Program: nome.py
# Author: Ramon R. Valeriano
# Decription:
# Developed: 28/02/2020 - 11:28
class Nome:
def __init__(self, nome):
if nome == None or not nome.strip():
raise ValueError('Nome não pode ser nulo nem em branco.')
self.nome = nome
self.chave = nome.strip().lower()
... | [
"rrvaleriano@gmail.com"
] | rrvaleriano@gmail.com |
d9abb2e4a97bc4acab4889f0068a81752db2542f | 2486e0cc147230a5d69c6d052217b9f3c5a4d1a8 | /Bindings/Python/setup.py.in | d3da821e0d0ecbd48f6d71c80c0154b247cb4a75 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bit20090138/opensim-core | 8b68e13a2e5e0e538651c3f7940d8bed7a8a4fe3 | de812be879d7271be92d71ac01c689a3b29e4629 | refs/heads/master | 2021-01-18T05:13:41.479462 | 2016-04-29T00:12:56 | 2016-04-29T00:12:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | in | #!/usr/bin/env python
import os
from setuptools import setup
setup(name='opensim',
version='@OPENSIM_VERSION@',
description='OpenSim Simulation Framework',
author='OpenSim Team',
author_email='ahabib@stanford.edu',
url='http://opensim.stanford.edu/',
license='Apache 2.0',
pa... | [
"cld72@cornell.edu"
] | cld72@cornell.edu |
9513a2411bfa39e1bbf4be4a084440f59c0b600b | a752920841038f1f84df06779ff041d6c1100697 | /pypinyin/contrib/neutral_tone.pyi | 774407edb8eff8fa0f780e5f8c4d3300f2351d42 | [
"MIT"
] | permissive | mozillazg/python-pinyin | 06e5eaa5326b642d50aacbe71b7117ac6024b353 | 6a306a6ec0148502ae4e689a229340555ecb6333 | refs/heads/master | 2023-08-31T14:13:44.512972 | 2023-05-14T12:18:47 | 2023-05-14T12:18:47 | 12,830,126 | 4,564 | 634 | MIT | 2023-09-09T03:46:41 | 2013-09-14T14:01:40 | Python | UTF-8 | Python | false | false | 518 | pyi | # -*- coding: utf-8 -*-
from typing import Any
from typing import Optional
from typing import Text
from typing import Tuple
from pypinyin.constants import Style
TStyle = Style
class NeutralToneWith5Mixin(object):
NUMBER_TONE = ... # type: Tuple[TStyle]
NUMBER_AT_END = ... # type: Tuple[TStyle]
def po... | [
"mozillazg101@gmail.com"
] | mozillazg101@gmail.com |
860fc2572ff197af9c82e05aa40b80bb2e6c03c2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02889/s701044419.py | 15a300e4e766231cfc0aae20a07a2905af0d690c | [] | 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 | 1,004 | py | import sys
input = sys.stdin.readline
def calc(N, g):
for k in range(N):
for i in range(N):
for j in range(N):
g[i][j] = min(g[i][j], g[i][k] + g[k][j])
def main():
N, M, L = map(int, input().split())
adj = [{} for _ in range(N)]
for _ in range(M):
A, B, C... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7729b8232868cb134a2e295ce3058f8047fe5360 | f24050f9be7f089ebe97857b4d6dc67a7dda17a8 | /poetry/pozzi/python/lite_call_runtime_top.py | ce7c56220fe7521b3d4e5f2d6867c1d30028cf4b | [] | no_license | ntsourakis/regulus-python | 63bffdfbf5ba5c09e60e3d729d310edfd961d79b | 91830264e0476ccaaf7ccec83e8bb8ca32a9a4fe | refs/heads/master | 2020-04-24T10:33:49.220740 | 2019-04-29T17:11:33 | 2019-04-29T17:11:33 | 171,897,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | #!/usr/bin/python
import pozzi.python.lite_call_runtime as call_main
import os
dir_path = os.path.dirname(os.path.realpath(__file__))
# Use this to load table file from canonical place in zipfile (speech interface)
def init():
TableFile = 'call_tables.data.gz'
MatchingFile = 'robust_matching_tables.... | [
"Nikolaos.Tsourakis@unige.ch"
] | Nikolaos.Tsourakis@unige.ch |
5101714fc9c01a1ff9534e8afcec0f66f825348c | 742956eb16ebc9ec802929a3ffde7377bbdd461f | /hackbright.py | 1ab453681028f9eded0400da2822ef13a84ab553 | [] | no_license | mashikro/hb-project-tracker-flask | bb7a964d1d1be90f2f6a608f84766ad4783ad87e | 7a3fc23324d9ab2de3b3c8fc72164f32e8a6494f | refs/heads/master | 2021-06-24T14:39:31.201648 | 2019-10-24T00:53:45 | 2019-10-24T00:53:45 | 217,180,943 | 0 | 0 | null | 2021-03-20T02:01:22 | 2019-10-24T00:54:35 | Python | UTF-8 | Python | false | false | 5,311 | py | """Hackbright Project Tracker.
A front-end for a database that allows users to work with students, class
projects, and the grades students receive in class projects.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
db = SQLAlchemy()
def connect_to_db(app):
"""Connect th... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
03695b9c55d45f662abeee3299b7e113eb881646 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinci_v39r1/tuplemaking/threesamesignmuondata/B23MuNuSignalDataTest.py | 0620ed3ebfbd3c78a4c2ec7e02684fa6c6dbcdaf | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,337 | py | # $Id: $
# Test your line(s) of the stripping
#
# NOTE: Please make a copy of this file for your testing, and do NOT change this one!
#
from Gaudi.Configuration import *
from Configurables import DaVinci
line = 'B23MuNu_TriMuLine'
location = '/Event/Semileptonic/Phys/B23MuNu_TriMuLine/Particles'
#from Configurable... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
b8db2d856d22439d7469fcfed29803ac47f6a361 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /Others/past/past202004-open/n.py | f5270ea558cfda85c4314921ba5f9252f01ad907 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 134 | py | # -*- coding: utf-8 -*-
def main():
import sys
input = sys.stdin.readline
if __name__ == '__main__':
main()
| [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
d84017fd7fe042e521b48cd24401a9e9513723e5 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/12165092.py | 401f428ce7c24c5fb7a3cddf1f6b4d44312d9daa | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/12165092.py generated: Wed, 25 Jan 2017 15:25:34
#
# Event Type: 12165092
#
# ASCII decay Descriptor: [B+ -> (D+ => K- pi+ pi+) K+ pi- ]cc
#
from Configurables import Generation
Generation().EventType = 12165092
Generation().SampleGenerationTool = "S... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
a43676dc807faaf5ff96bb4b2e5d3f8aee04c123 | 9cc3135d5fcd781c0542a905c61dc19b0ceeffef | /file_reader_line.py | 66d355dba2173774df41579cbc1cc0eb3dafa21e | [] | no_license | bkalcho/python-crash-course | 411d8af223fb6974d4f890c0f82c9e56b062359c | 8425649a2ecd5abeeb438e816400f270d937758e | refs/heads/master | 2022-09-11T13:47:56.837256 | 2022-08-23T10:04:35 | 2022-08-23T10:04:35 | 69,810,386 | 14 | 8 | null | 2022-08-23T10:04:36 | 2016-10-02T17:14:41 | Python | UTF-8 | Python | false | false | 250 | py | # Author: Bojan G. Kalicanin
# Date: 05-Oct-2016
# Program that reads file line by line and prints line by line
# on the stdout
filename = 'pi_digits.txt'
with open(filename) as file_object:
for line in file_object:
print(line.rstrip()) | [
"bojan.g.kalicanin@gmail.com"
] | bojan.g.kalicanin@gmail.com |
0316e6973b49d6d7e409eef2969a5e273989a715 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03437/s534128723.py | 39f835745095b832d314d35d1a94be11cc79a200 | [] | 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 | 209 | py | from sys import stdin
import fractions
def lcm(x, y):
return (x * y) // fractions.gcd(x, y)
n,m = [int(x) for x in stdin.readline().rstrip().split()]
if lcm(n,m) == n:
print(-1)
else:
print(n)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
473f81fd11b029ce5acfd36114b5f5d320f145cd | 6c5daf5133656a33574dc2f5b62b9f1a1bdf1390 | /Elec Power Chongqing/2021/old/dataForecasting.py | fdbd4edc3a5ba2ca8971ae189ad93166be7ca73e | [] | no_license | RobinChen121/Python-Practices | 6c10b721dce3a8d2b76e190959d0940c52f0d1cc | 85bd9ad30c245dd62dc7ea837f964eaecbe24ed9 | refs/heads/master | 2023-08-31T10:08:01.613828 | 2023-08-27T14:51:46 | 2023-08-27T14:51:46 | 142,564,793 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 15 14:41:47 2021
@author: zhen chen
MIT Licence.
Python version: 3.8
Description: forecast based on the last 12 months
"""
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import statsmodels.api as sm
from statsmodels.tsa.stattools import... | [
"40953071+RobinChen121@users.noreply.github.com"
] | 40953071+RobinChen121@users.noreply.github.com |
7f4af42352a202cad7474c629138bcd8f86c4a5d | 46e271e27afe50b8b62be0651d78164490911bb3 | /ws_moveit/src/pkg_task3/scripts/process_packagen2.py | 4a895d52be808e3673dd1eeae7d97e3a71b7d4dd | [] | no_license | Nidhiks2000/Vargi-bot | 8a43af1e470b6fc84d468003f67471a1e1f47aad | 3e2e7be310ed7372cb6960eea8faabec75d9fbcf | refs/heads/master | 2023-07-24T01:05:10.049800 | 2021-09-08T16:31:08 | 2021-09-08T16:31:08 | 403,935,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,887 | py | #!/usr/bin/env python
'''We have used three python scripts to implements task where each script takes care of each coloured package.
We choosed this approach considering the compution time and ease to debug
'''
# This python script processes packagen2
# ROS- PROCESS_PACKAGEN2 SCRIPT
import rospy
import sys
import... | [
"Happysunshine.disroot.org"
] | Happysunshine.disroot.org |
67f5b410a9c362544f83edcb25f34d9f24d4fc1f | c83e356d265a1d294733885c373d0a4c258c2d5e | /mayan/apps/rest_api/urls.py | 43be019b07eb85024ce8607bfd3fde3f44544c10 | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/fall-2021-hw2-451-unavailable-for-legal-reasons_6YX3 | 4160809d2c96707a196b8c94ea9e4df1a119d96a | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | refs/heads/master | 2023-08-21T23:36:41.230179 | 2021-10-02T03:51:12 | 2021-10-02T03:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | from django.conf.urls import include, url
from .api_views import (
APIRoot, APIVersionRoot, BrowseableObtainAuthToken,
ProjectInformationAPIView, schema_view
)
from .literals import API_VERSION
api_version_urls = [
url(regex=r'^$', name='api_version_root', view=APIVersionRoot.as_view()),
u... | [
"79801878+Meng87@users.noreply.github.com"
] | 79801878+Meng87@users.noreply.github.com |
0a2f3cfff69d681b3500ecf3a9d62ad75e684c68 | 431a1f738b1edfba7dad8d10a6b7520d51d917cb | /Samples/UserSamples/2018/VBFConfig.py | 0f6c4d5699d172ffbfdbde1760a8050c5fd41cbf | [] | no_license | aloeliger/DatacardCreator | 5ce702e46fbb77e843b44d8fe088c2645a4a8f66 | 5c7e890276a5be079ed3b677a471c1dcadcba52d | refs/heads/master | 2022-02-26T19:52:30.563747 | 2022-02-16T20:24:48 | 2022-02-16T20:24:48 | 215,602,523 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | from Samples.SampleDefinition import Sample
from Samples.Uncertainties.UserUncertainties.TES import TESUncertainty
from Samples.Uncertainties.UserUncertainties.Signal_JES_18 import JES18Uncertainty
from Samples.Uncertainties.UserUncertainties.JER import JERUncertainty
from Samples.Uncertainties.UserUncertainties.MetRe... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
c1cbefd9eb254fbfb66fd091901e1f5ea0bc6655 | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/common/Lib/distutils/tests/test_sdist.py | 4a1af8cd49b957a68f580bed4a2e301705b0a693 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 13,716 | py | # 2017.08.29 21:56:18 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/distutils/tests/test_sdist.py
"""Tests for distutils.command.sdist."""
import os
import tarfile
import unittest
import warnings
import zipfile
from os.path import join
from textwrap import dedent
from test.test_support import capt... | [
"info@webium.sk"
] | info@webium.sk |
4e1002d9ce5286e189a43928b766b6ff72a4dbff | 01926621374435f7daf622f1ef04a51f94e3e883 | /litex/build/quicklogic/platform.py | fbd200cb2efd6636f27feeb7075a6e6e6f0658c1 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | betrusted-io/litex | d717513e41ff6aba54ac172e886c21479aa41752 | 8109a8e91ca8321483ccc2f58bd4fed5379bbd18 | refs/heads/master | 2022-11-23T07:11:35.297128 | 2022-02-22T11:55:00 | 2022-02-22T11:55:00 | 231,203,917 | 3 | 0 | NOASSERTION | 2020-01-01T10:48:06 | 2020-01-01T10:48:05 | null | UTF-8 | Python | false | false | 1,184 | py | #
# This file is part of LiteX.
#
# Copyright (c) 2021 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
import os
from litex.build.generic_platform import GenericPlatform
from litex.build.quicklogic import common, symbiflow
# QuickLogicPlatform ------------------------------------... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
c480f46b0c551272158063ee08ae7ef47fb91801 | 6b5c67590979627a97b7d8f0d9fc131b63fa817d | /cgettext.py | 11081dd45c063fcc7fa697958c11031a104e4612 | [
"MIT"
] | permissive | eevee/cgettext | 303357e28349a6cdd906a3e5ffb2fc6889041f37 | 9efa06369c19c0631dbebbc2f45f787b4cd01eb5 | refs/heads/master | 2016-09-05T09:01:11.343350 | 2014-06-27T20:03:10 | 2014-06-27T20:03:10 | 19,359,054 | 1 | 0 | null | 2014-05-31T01:02:46 | 2014-05-01T21:56:14 | Python | UTF-8 | Python | false | false | 495 | py | try:
from _cgettext import c_parse
except ImportError:
# No C module available; just re-export the builtin
from gettext import GNUTranslations
else:
import gettext
class GNUTranslations(gettext.GNUTranslations):
def _parse(self, fp):
charset, metadata, catalog, plural = c_parse(... | [
"eevee.git@veekun.com"
] | eevee.git@veekun.com |
0467a469bfb2a1b833b93af0761a056efbc02d40 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/TRACE/FPythonCode/FTradeSheetColumnCustom.py | 7368f700f8f3f51a6c7c5f45f72afb9cdeed7e09 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py |
import acm
def get_TradeReportTransType_string_from_value(val):
'''
Accepts value for TradeReportTransType, in FIX message and returns mapped value, which needs to be displayed in tradesheet for particular column.
'''
switcher = {
"0": "New",
"1": "Cancel",
"2": "Replace",
... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
c12a2731c0266326e4342197497bdbe4b3103bbe | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/KoubeiCateringOrderPayDisburseModel.py | d7684ebecee96e879c01d6568cb06e1e665fd1cf | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 4,200 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.PosOrderKey import PosOrderKey
class KoubeiCateringOrderPayDisburseModel(object):
def __init__(self):
self._auth_code = None
self._member_flag = None
... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
8edff0421ebc56d61abee4a4cef9d6eef91672f0 | f6290b7b8ffb263b7f0d252a67e2c6320a4c1143 | /Binary Tree/height_of_special_binary_tree.py | 180231ea70bd5a270e62130aca6e3fd2873838a8 | [] | no_license | datAnir/GeekForGeeks-Problems | b45b0ae80053da8a1b47a2af06e688081574ef80 | c71f11d0349ed3850dfaa9c7a078ee70f67e46a1 | refs/heads/master | 2023-05-29T15:21:59.680793 | 2020-12-15T04:55:01 | 2020-12-15T04:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | '''
https://practice.geeksforgeeks.org/problems/height-of-spiral-tree/1
Given a special Binary Tree whose leaf nodes are connected to form a circular doubly linked list. Find the height of this special Binary Tree.
Example 1:
Input:
1
/ \
2 3
/ \
4 5
/
6
Output: 4
Explanation:
In ... | [
"komalbansal97@gmail.com"
] | komalbansal97@gmail.com |
2056c13bcd2d7119d86fef5e4c54c693d4a2d140 | 6f10c043a65d7c0f39cb75b3d39370261e2371c3 | /papers/tests.py | 8b4f86b9d012cc17e78d75343b0d307434c9771f | [
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | BridgesLab/Lab-Website | 8d71def7874d7970c42fe2e697f1c163ae5e7eb9 | d6f6c9c068bbf668c253e5943d9514947023e66d | refs/heads/master | 2020-12-25T08:37:36.970077 | 2020-05-26T01:25:00 | 2020-05-26T01:25:00 | 12,854,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,411 | py | """
This package contains the unit tests for the :mod:`papers` app.
It contains view and model tests for each model, grouped together.
Contains the two model tests:
* :class:`~papers.tests.PublicationModelTests`
* :class:`~papers.tests.AuthorDetailsModelTests`
The API tests:
* :class:`~PublicationResourceTests`
... | [
"dave.bridges@gmail.com"
] | dave.bridges@gmail.com |
91469a33a999bfea9fed7f0776edd52783522402 | b05fee086482565ef48785f2a9c57cfe2c169f68 | /part_one/6-builder_pattern/builder/director.py | 30ec18b0022359e51962b212e0ff4a289f939982 | [] | no_license | diegogcc/py-design_patterns | 76db926878d5baf9aea1f3d2f6a09f4866c3ce1e | 2b49b981f2d3514bbd02796fe9a8ec083df6bb38 | refs/heads/master | 2023-04-01T08:28:53.211024 | 2021-04-05T11:48:19 | 2021-04-05T11:48:19 | 304,145,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | class Director:
def __init__(self, builder):
self._builder = builder
def get_computer(self):
return self._builder.get_computer()
def build_computer(self):
self._builder.new_computer()
self._builder.get_case()
self._builder.build_mainboard()
self._bu... | [
"diegoc906@gmail.com"
] | diegoc906@gmail.com |
a1bab5f325d133df17fbae75ee780f703da474c6 | 482467f7875513440ccc9fb5ee5755214137e8df | /homeassistant/components/stiebel_eltron/__init__.py | 52dc2d848918bf88b821b56a49c0cb0a36338a48 | [
"Apache-2.0"
] | permissive | Watemlifts/home-assistant | fbf16d91489f9ab472b1fda928fc472f99d2b057 | 6e414983738d9495eb9e4f858e3e98e9e38869db | refs/heads/dev | 2023-07-21T06:38:40.212969 | 2023-07-15T09:33:07 | 2023-07-15T09:33:07 | 195,134,511 | 4 | 0 | Apache-2.0 | 2023-07-15T09:33:08 | 2019-07-03T22:34:49 | Python | UTF-8 | Python | false | false | 1,761 | py | """The component for STIEBEL ELTRON heat pumps with ISGWeb Modbus module."""
from datetime import timedelta
import logging
import voluptuous as vol
from homeassistant.components.modbus import (
CONF_HUB, DEFAULT_HUB, DOMAIN as MODBUS_DOMAIN)
from homeassistant.const import CONF_NAME, DEVICE_DEFAULT_NAME
from home... | [
"marhje52@kth.se"
] | marhje52@kth.se |
3333bd7d1d54e4a76c2974fe2941e952ca4dd14a | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /log-20190927/132.230.102.123-10.21.11.11/1569575419.py | 5356af5e985e01c5e1c1f9be6046d34f1addbda1 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | import functools
import typing
import string
import random
import pytest
def leap(year: int) -> bool:
"""
Args:
year: an integer
Returns:
a boolean expression
"""
if year < 1583:
return False
if year % 4 == 0: #and year % 100 == 0 and year %400 != 0:
i... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
92eb574a98ab18224e6f678efd484bebf0f75fbd | f1961c86e6da14f35c21d7235f4fc8a89fabdcad | /DailyProgrammer/DP20140226B.py | 723789a5c53f06aeb779421827eca6c15247d7f0 | [
"MIT"
] | permissive | DayGitH/Python-Challenges | d4930bdd85cd1a977d8f6192775ca956a375fcde | bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf | refs/heads/master | 2021-01-17T13:01:03.784523 | 2018-06-29T23:49:04 | 2018-06-29T23:49:04 | 58,497,683 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,841 | py | """
[02/26/14] Challenge #150 [Intermediate] Re-emvoweler 1
https://www.reddit.com/r/dailyprogrammer/comments/1yzlde/022614_challenge_150_intermediate_reemvoweler_1/
# _(Intermediate)_: Re-emvoweler 1
In [this week's Easy
challenge](http://www.reddit.com/r/dailyprogrammer/comments/1ystvb/022414_challenge_149_easy_dis... | [
"akber91@gmail.com"
] | akber91@gmail.com |
c1a3f8a768bbde06f5bc0e63a67e80424aa23eeb | a7ded5d3d19a98e61a44189cffe3703f7938e0db | /xero_python/accounting/models/country_code.py | 20c8ef17a04040149b701b78f318d6a723c86732 | [
"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 | 3,889 | py | # coding: utf-8
"""
Accounting API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 2.3.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
from enum impor... | [
"sid.maestre@gmail.com"
] | sid.maestre@gmail.com |
ca71ccf61df6a0176341a1941ea6e6315f5fcdf1 | e3040a2e23a856e319e02037dc6baf3882c796b9 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_oneof_response_body_for_content_types/post.pyi | ef5fdf6e1c02d23db716ba98c8ca2592e6274dbc | [
"Apache-2.0"
] | permissive | mishin/openapi-generator | 2ed2e0739c0cc2a627c25191d5898071d9294036 | 3ed650307513d552404f3d76487f3b4844acae41 | refs/heads/master | 2023-06-10T03:01:09.612130 | 2022-10-14T08:29:15 | 2022-10-14T08:29:15 | 271,080,285 | 0 | 0 | Apache-2.0 | 2023-05-30T02:01:25 | 2020-06-09T18:29:41 | Java | UTF-8 | Python | false | false | 7,519 | pyi | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noq... | [
"noreply@github.com"
] | mishin.noreply@github.com |
f9a778bd121f5471a7545a51299c85b1ed6fe37d | 7b74696ff2ab729396cba6c203984fce5cd0ff83 | /stockmarket/migrations/0018_auto_20210310_0713.py | a92ec4772b8fef3cfc51038084147fdbfb09d35c | [
"MIT"
] | permissive | webclinic017/investtrack | e9e9a7a8caeecaceebcd79111c32b334c4e1c1d0 | 4aa204b608e99dfec3dd575e72b64a6002def3be | refs/heads/master | 2023-06-18T12:57:32.417414 | 2021-07-10T14:26:53 | 2021-07-10T14:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | # Generated by Django 3.0.7 on 2021-03-09 23:13
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('stockmarket', '0017_auto_20210307_1803'),
]
operations = [
migrations.AddField... | [
"jie.han@outlook.com"
] | jie.han@outlook.com |
ea5ebbf433af25dabea331bab41b84e86467975b | 1f91f88b17b35a9306b6a279ec338921a22c78d0 | /team_scripts/nakama_exp076_plus_fp_addition_95.py | 97c5fe029241634165c6ce074b9ddc99e16baa90 | [
"MIT"
] | permissive | yuv4r4j/kaggle-rfcx | 64d02102a78a295e14e8a904e2a34bb7772d2cb4 | c3573d014d99312b58882e7b939de6c1055129b1 | refs/heads/main | 2023-03-03T01:38:14.999693 | 2021-02-18T10:31:29 | 2021-02-18T10:31:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,120 | py | import os
import random
import time
import warnings
import audiomentations as A
import kornia.augmentation as K
import librosa
import numpy as np
import pandas as pd
import soundfile as sf
import timm
import torch
import torch.nn as nn
import torch.nn.functional as F
from pathlib import Path
from sklearn.model_selec... | [
"arabiannight1994@yahoo.co.jp"
] | arabiannight1994@yahoo.co.jp |
01e304b264f3b7116f5df2b1b3345739a66a4d8f | 5775513b81096d77b11bfe99949e4cbd80af20d4 | /jumpingintodjango/questionsandanswers/migrations/0005_auto__add_field_question_cmpnyvisit.py | 1fa82c8c942e0a57ee34a2c78567711f91edea9b | [] | no_license | gzpgg3x/BrowsingOR | 55234ba7b785675ea6b1d6a99c083aa0885fba74 | 15d467c6cc70beece93c699f2e9728509c3ce9f3 | refs/heads/master | 2016-09-06T11:00:20.737008 | 2013-04-29T16:19:53 | 2013-04-29T16:19:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Question.cmpnyvisit'
db.add_column(u'questionsandanswers_question', 'cmpnyvisit',
... | [
"gzpgg3x@yahoo.com"
] | gzpgg3x@yahoo.com |
4c6fafb9691b1da81bfce3f905fb7e709f18b562 | ae26322bb92f81ca9133fce5666dd6be796304d2 | /convert/convert_es/convert.py | 74c796eb6bdbd9820636dbbfa6044b63413b6cc2 | [] | no_license | christinabotros/gis-book | 8a7bba0ccb7202e7bf975b4f6ce9da5b4dc7dc00 | 575f7905b6c3688bb2341ad1c268381e956748c9 | refs/heads/master | 2021-09-07T10:22:08.340279 | 2017-05-02T13:46:08 | 2017-05-02T13:46:08 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 10,762 | py | #!/usr/bin/python
# -*- coding: cp1252 -*-
import re
import os.path
import sys
import fnmatch
import glob
import traceback
import json
import codecs
import time
import shutil
import zipfile
tableshtml={
"Tabla:PropiedadesVariablesVisuales": r'<table border="1"><col width="11%" /><col width="13%" /><col width="13%" />... | [
"volayaf@gmail.com"
] | volayaf@gmail.com |
a460b11b44d5739c0f1a1c59783c8dcabe4843f2 | 02bfa3b84a5c811c3fd4c293b14b0846bd6ab3b5 | /SortingAlrorithms/QuickSort.py | 46b3cf3f67d0d478023a3d3c18746ddb48f32b9b | [] | no_license | Ronak912/Programming_Fun | 9dde0842245b62748b479924921383de07b24d16 | 2a504d0ef230d09007b8a268c356055ced5ca6c0 | refs/heads/master | 2020-04-06T03:40:52.046819 | 2020-04-03T22:25:36 | 2020-04-03T22:25:36 | 42,281,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | def quickSort(alist):
quickSortHelper(alist, 0, len(alist)-1)
def quickSortHelper(alist, first, last):
if first >= last:
return
splitpoint = partition(alist, first, last)
quickSortHelper(alist, first, splitpoint-1)
quickSortHelper(alist, splitpoint+1, last)
def partition(alist, first, l... | [
"ronak.928@gmail.com"
] | ronak.928@gmail.com |
14c5bba12db00e778ec048d589648f8d833c1e3e | 0b76e4db1f08f2d6d7b9379a884c2075f6e258c3 | /w9/G4/4.py | 8d5116ba23d233d71f26eeda927160fa5d04798e | [] | no_license | bobur554396/WD2020Spring | 244ec8b491f297646d1d37f1feeb3767b68b9180 | 2b833c9043701ebaa4d122f717c8465af8fd5677 | refs/heads/master | 2020-12-26T19:01:46.605344 | 2020-04-18T05:33:42 | 2020-04-18T05:33:42 | 237,606,624 | 1 | 6 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # Functions
def hello(request):
print('hi')
def sum(a, b):
return a + b
# c = sum(2, 3)
# print(c)
def mult(a, b=3, c=10):
return a * b * c
print(mult(2))
| [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
60a087f8c198509615937f7b2d47732ab42cbb42 | c3a6e39441d70cd632adff3ade7d7d331f702bbf | /DocxTest.py | 60456d561aed8d9ef55091e23e4315a838a4c804 | [] | no_license | Yzp109062/programming | ef81f5588b28da130d6a4c608578cbf622c50e16 | b84aee684fe39623185749e5250ffb454a302176 | refs/heads/master | 2022-11-23T01:36:18.344437 | 2020-07-28T21:37:39 | 2020-07-28T21:37:39 | 284,621,508 | 1 | 0 | null | 2020-08-03T06:28:43 | 2020-08-03T06:28:42 | null | UTF-8 | Python | false | false | 502 | py | from docx import Document
from docx.shared import Pt
document = Document("/home/wesley/Desktop/Construction/Conlanging/Daellic/Daool Lexicon Working Version Python Test.docx")
style = document.styles["Normal"]
font = style.font
font.name = "Charis SIL"
font.size = Pt(12)
p = document.add_paragraph("Test ")
p.add_ru... | [
"jazzzman627@yahoo.com"
] | jazzzman627@yahoo.com |
c59e659d909312483f20f07ec25ed071a0ab1d64 | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /.history/Code/histogram_20200204122135.py | 5d0a4eeb8d476dabb9528ff8aa4b80539dcd1d90 | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 5,137 | py | from clean_text import clean
from benchmark import bench
def tuple_hist(source):
''' Fastest - tuples are immutable. List of tuples: [('hello', 3), ('what', 4)]
Takes text. Stores each item in text, compares each item to the rest of the words in
text and keeps a running total. Used list account for no rep... | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
ed7692ac1e2630e87218877cf5032e76083e7c98 | e5c3b3a044e826425dd0f783d5e38e5bfeb82626 | /diplomacy_research/proto/diplomacy_tensorflow/core/protobuf/transport_options_pb2.py | e079da40929cc5f94bf114d387992431fb51a4c9 | [
"MIT"
] | permissive | JACKHAHA363/research | 04f67f98dcd238092941725d531517ae2a4ab47f | e752f02f34936bbae904815708904cabda554b57 | refs/heads/master | 2020-09-14T23:42:32.337085 | 2019-11-22T03:36:35 | 2019-11-22T03:36:35 | 223,296,172 | 0 | 0 | null | 2019-11-22T01:15:52 | 2019-11-22T01:15:51 | null | UTF-8 | Python | false | true | 2,218 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: diplomacy_tensorflow/core/protobuf/transport_options.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
fro... | [
"pcpaquette@gmail.com"
] | pcpaquette@gmail.com |
c8da8eefa8c5d426331ac8e5cd31e22fc656e14e | 7825f583fc11716f0a7b6a90799170bdfa6cc969 | /apps/trade/models.py | fc00ed8ebcd5ba1c8bfafaa8ea5ef7538e3b19c9 | [] | no_license | dingmf/TTSX1 | ca49dc76a59e1f0e5357a40ac708487e0a32afa2 | b1bc1403114961a0830e273f14413f7421647005 | refs/heads/master | 2020-03-28T16:43:43.526808 | 2018-09-10T01:38:31 | 2018-09-10T01:38:31 | 148,722,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | from datetime import datetime
from django.db import models
from django.contrib.auth import get_user_model
from goods.models import Goods
User = get_user_model()
# Create your models here.
class ShoppingCart(models.Model):
"""
购物车
"""
user = models.ForeignKey(User, verbose_name=u"用户",on_delete=models... | [
"1175674559@qq.com"
] | 1175674559@qq.com |
8d952a384d61bfa8c0d257aa9b30e1060fa69354 | f7ff9607822bb8f347598c10d185941cf1956852 | /aliyun-python-sdk-iot/aliyunsdkiot/request/v20180120/CreateOTAStaticUpgradeJobRequest.py | 7e7ee501d6c20d1a94d5c9e4dc901b71e523ad7c | [
"Apache-2.0"
] | permissive | djzqbx001/aliyun-openapi-python-sdk | 5ca32201c578528f4b4228c7636b36c3f60a7c60 | 7d2e3c854c4d70ed341f036f5f7be0310216c303 | refs/heads/master | 2023-09-06T10:17:55.489439 | 2021-11-19T04:26:37 | 2021-11-19T04:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,658 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
5414549b6e05db7f00d8fa5cd8e78438012ca3b3 | d1db2d004f989c89d7d7b599a79be73485d15154 | /backend/home/migrations/0001_load_initial_data.py | 1d7f53afab7b8c07ccd47a313d03c168330d2153 | [] | no_license | crowdbotics-apps/dry-glitter-29203 | 79161318f4bc536b1b69e07dfc592f19f4056ce5 | ee14380afe72369a0e7306b5954885f675493020 | refs/heads/master | 2023-06-25T06:39:47.076869 | 2021-07-26T19:47:29 | 2021-07-26T19:47:29 | 389,750,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "dry-glitter-29203.botics.co"
site_params = {
"name": "Dry Glitter",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a617079a95a7c319e8098fbc2e673c2307de3965 | 028ef598a1da5e865691db12a92a7e894d6a20ed | /server/plugins/item/forms.py | 7309fe19e115890c8f00281a260ba06e230c85c3 | [] | no_license | alvinwan/Puhjiii | e051b39f236525cb8e3cfbdc24fe4bb243708996 | bf633015fe13a7a60cd1137b16b8d2cec6b09d39 | refs/heads/master | 2021-01-22T09:47:55.058092 | 2015-07-10T17:49:43 | 2015-07-10T17:49:43 | 37,454,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from server.forms import DynamicForm
class AddItemForm(DynamicForm):
pass
class EditItemForm(DynamicForm):
pass | [
"hi@alvinwan.com"
] | hi@alvinwan.com |
b2417e1d6d1bbde80e013a3d3c5c891f70809f47 | 38422c3edeb269926502fed31a0761aff8dd3d3b | /Si_and_InGaAs_detectors/Calibration_2Mar_2015/IGA22030TC_caldata_for_python/run_DSS-IGA22030TC_cal_data.py | 77487933e19dc4dedfd57eaf2f4694e28cecc1ca | [] | no_license | vfurtula/Alle-projekter | 2dab3ccbf7ddb6be3ee09f9f5e87085f354dd84a | da3d7c9611088043e2aea5d844f1ae6056215e04 | refs/heads/master | 2022-06-07T05:17:35.327228 | 2020-04-30T10:28:48 | 2020-04-30T10:28:48 | 260,180,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,815 | py | ## Import libraries
import matplotlib.pyplot as plt
import numpy as np
from numpy.polynomial import polynomial as P
from scipy import interpolate
## For Matplotlib fonts
from matplotlib import rc
## for LaTeX style use:
rc("text", usetex=True)
rc("font", family="serif")
###############################################... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
bab675eb57306cc67946459ee039be109cb91a15 | 810ce1c1ac47743e253171ec7541c0e431d952c2 | /standard_library/Concurrency/Subprocess/subprocess_popen.py | d43d2ee87874e36321a9f663df2059047f4a48f9 | [] | no_license | hjlarry/practise-py | 91052c25dc7ab706c6234f6d657db76667a27124 | 871e06b9652d356f55e3888f1f7ea180ac2b1954 | refs/heads/master | 2022-09-11T17:47:48.557194 | 2022-08-10T02:07:24 | 2022-08-10T02:07:24 | 136,263,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import subprocess
import io
print("一、 与进程单向通信")
print("read:")
proc = subprocess.Popen(["echo", "to stdout"], stdout=subprocess.PIPE)
# proc = subprocess.Popen(["ls", "-l"], stdout=subprocess.PIPE)
value = proc.communicate()
print(value)
stdout_value = value[0].decode("utf-8")
print(stdout_value)
print("write:")
proc... | [
"hjlarry@163.com"
] | hjlarry@163.com |
51402dc7abea0b29512fea65e9aa3d0f2b55e68b | 1c91439673c898c2219ee63750ea05ff847faee1 | /downstream/mmsegmentation/mmseg/datasets/pipelines/transforms.py | 4fdfaef45591127a88b390ad6e55cf4cc865af0c | [
"Apache-2.0"
] | permissive | ChenhongyiYang/GPViT | d7ba7f00d5139a989a999664ab0874c5c9d53d4d | 2b8882b2da41d4e175fe49a33fcefad1423216f4 | refs/heads/main | 2023-06-08T00:10:07.319078 | 2023-05-26T15:52:54 | 2023-05-26T15:52:54 | 577,075,781 | 78 | 2 | null | null | null | null | UTF-8 | Python | false | false | 57,737 | py | # Copyright (c) OpenMMLab. All rights reserved.
import copy
import mmcv
import numpy as np
from mmcv.utils import deprecated_api_warning, is_tuple_of
from numpy import random
from ..builder import PIPELINES
@PIPELINES.register_module()
class AlignedResize(object):
"""Resize images & seg. Align
"""
def _... | [
"chenhongyiyang@Chenhongyis-MacBook-Pro.local"
] | chenhongyiyang@Chenhongyis-MacBook-Pro.local |
3e2a1a8413800f85f2a56ec57d1eb41f78af3a63 | 926b3c52070f6e309567c8598248fd5c57095be9 | /src/mmdeploy/mmdeploy/codebase/mmcls/models/heads/multi_label_head.py | 7a5d63375aa42db93fccdde1904c7945f465bc96 | [
"Apache-2.0"
] | permissive | fengbingchun/PyTorch_Test | 410f7cd2303707b0141d433fb9d144a961e1f4c8 | df5c2169f0b699bcd6e74adb4cb0e57f7dcd9348 | refs/heads/master | 2023-05-23T16:42:29.711338 | 2023-03-25T11:31:43 | 2023-03-25T11:31:43 | 167,339,907 | 15 | 4 | null | 2023-03-25T11:31:45 | 2019-01-24T09:24:59 | C++ | UTF-8 | Python | false | false | 714 | py | # Copyright (c) OpenMMLab. All rights reserved.
from mmdeploy.core import FUNCTION_REWRITER
@FUNCTION_REWRITER.register_rewriter(
func_name='mmcls.models.heads.MultiLabelClsHead.post_process')
def multi_label_cls_head__post_process(ctx, self, pred, **kwargs):
"""Rewrite `post_process` of MultiLabelClsHead for... | [
"fengbingchun@163.com"
] | fengbingchun@163.com |
090ec55ee38d15f5b51f50a928495db00fce01bc | 048c6b84e679a3e81bf7b4980ad2b4a99781b9b7 | /quantarhei/core/implementations.py | c2fb6b38c5bfa8bd44a0d92d5b3f9187fecc4b07 | [] | no_license | saayeh/quantarhei | 9b7a7c60e1325ef783bdbc9ac4b6f33a13301802 | b77a41272b7df0ccbcde2710bf04bf412c126a6f | refs/heads/master | 2020-12-07T06:29:27.954470 | 2017-09-01T21:09:45 | 2017-09-01T21:09:45 | 66,932,421 | 0 | 0 | null | 2016-08-30T10:52:11 | 2016-08-30T10:52:11 | null | UTF-8 | Python | false | false | 3,130 | py | # -*- coding: utf-8 -*-
from functools import wraps
import os
from importlib import import_module
from .managers import Manager
def implementation(package="",
taskname="",
at_runtime=False,
fallback_local=False,
always_local=False):
"""D... | [
"tmancal74@gmail.com"
] | tmancal74@gmail.com |
68bacba70b10cde713891d28ded05e5009dbe565 | 1e013dc5f0de0f61e27f2867557803a01c01f4da | /Language/python/module/pybluez/rfcomm-client.py | 87fe97bf58fe5eb0164caa0cd0eaa19a542ffacb | [] | no_license | chengyi818/kata | a2941ce8675c6e7a47169a0eae4c757d3f6f5bf9 | a7cb7ad499037bcc168aaa0eaba857b33c04ef14 | refs/heads/master | 2023-04-10T18:39:09.518433 | 2023-01-08T15:22:12 | 2023-01-08T15:22:12 | 53,040,540 | 1 | 0 | null | 2023-03-25T00:46:51 | 2016-03-03T10:06:58 | C++ | UTF-8 | Python | false | false | 193 | py | import bluetooth
server_address = "00:1A:7D:DA:71:11"
port = 1
sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM)
sock.connect((server_address, port))
sock.send("hello world!")
sock.close()
| [
"chengyi818@foxmail.com"
] | chengyi818@foxmail.com |
7c693aa34116f1ed4608e268b1f0fd1a69410f5d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03693/s330550034.py | 8eef2972f7aa05280eb36458f486975c68e02421 | [] | 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 | 55 | py | print(['NO','YES'][int(''.join(input().split()))%4==0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8cc11edbf4514684f0ccebeb30a0086a8925dce2 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_21649.py | 40532dcb7c23f6e6d1294bf9a3247202883f3fe7 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | # How to use regular expressions to only capture a word by itself rather than in another word?
import re
print re.subn('Co$','',"Company & Co")
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
02274a6e349253d379c133717b79435475122281 | 006ff11fd8cfd5406c6f4318f1bafa1542095f2a | /SimG4CMS/Calo/test/python/runWithGun_cfg.py | bd29197ff9ce3cb18bf543be313d6be973a0ff76 | [] | permissive | amkalsi/cmssw | 8ac5f481c7d7263741b5015381473811c59ac3b1 | ad0f69098dfbe449ca0570fbcf6fcebd6acc1154 | refs/heads/CMSSW_7_4_X | 2021-01-19T16:18:22.857382 | 2016-08-09T16:40:50 | 2016-08-09T16:40:50 | 262,608,661 | 0 | 0 | Apache-2.0 | 2020-05-09T16:10:07 | 2020-05-09T16:10:07 | null | UTF-8 | Python | false | false | 6,352 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PROD")
process.load("SimG4CMS.Calo.pythiapdt_cfi")
#process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
process.load("Geometry.CMSCommonData.cmsIdealGeometryAPD1XML_cfi")
process.load("Geo... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
f1e2287dae490a131bbd72f576a927f9b633b777 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_25/models/file_system_response.py | c255a82c3b1ae1924c1debaa8c376982be89c983 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,913 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.25
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
d4f9618477330f0db7a60c5a90a8a20f134850ae | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_360/ch27_2020_03_30_19_57_47_608648.py | c67301045edffce312884d90b151fd1e85029789 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | tem_duvida = True
while tem_duvida:
perg = input("Tem dúvidas?")
if perg != 'não':
print("Pratique mais")
else:
print('Até a próxima')
tem_duvidas = False
| [
"you@example.com"
] | you@example.com |
df6a6d9224d26ef500b67da072b762c5934a7c6d | 7a3e9d88b21ef7e4b73d0632e08546d65a9df2ca | /modules/templates/DRKCM/rheaders.py | 9ec418a8de18a49907d6b99decdfd4978f33eed3 | [
"MIT"
] | permissive | nursix/drkcm | 64eeb8ead30784d379d64a0ba2bc2c93bcafb8ca | 7ec4b959d009daf26d5ca6ce91dd9c3c0bd978d6 | refs/heads/master | 2023-09-04T10:07:52.596460 | 2023-09-04T00:43:45 | 2023-09-04T00:43:45 | 97,222,001 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 16,175 | py | """
Custom rheaders for DRKCM
License: MIT
"""
from gluon import current, A, DIV, SPAN, URL
# =============================================================================
def drk_cr_rheader(r, tabs=None):
""" CR custom resource headers """
if r.representation != "html":
# Resource headers o... | [
"dominic@nursix.org"
] | dominic@nursix.org |
57a81a6f705289723249fb0b09e8a065b08ab8cf | 5fbf2adec8d7647b9aeefa51695aa3f13ee57810 | /server/util/ah_handlers.py | 455a1dd878527b50e58dde3861598691f56b2737 | [] | no_license | angelacantfly/dancedeets-monorepo | 8bb6579f6f5d30e88c8d4c0e239c6c8fed678094 | 6b7a48d91d0737010acd9e08a89d99c2c982205a | refs/heads/master | 2021-01-20T09:14:22.613044 | 2017-08-26T21:48:14 | 2017-08-26T21:48:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | import webapp2
import app
@app.route('/_ah/start')
class StartHandler(webapp2.RequestHandler):
def get(self):
pass
@app.route('/_ah/stop')
class StopHandler(webapp2.RequestHandler):
def get(self):
pass
| [
"mlambert@gmail.com"
] | mlambert@gmail.com |
1c8ee601911e011097943b52fa643c5de3d37cf9 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/proc/memhist5min.py | 2003290fe47c7f53c9c7ed8a141092387a15e88c | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 10,843 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
ffc1de01b564f7729799b45337e5d8ae9fbb92ee | 03330fc41b226e3b597676944b335a77f1979965 | /examples/using_xref.py | 05042801a9b20fdce5800a420dcd161fb80fed47 | [
"MIT"
] | permissive | ols3er/ezdxf | b00076742022b21118d3645685205fbdae419b38 | a01ed68ea45f25a231e470d239aefed73ab285d5 | refs/heads/master | 2020-05-29T16:57:18.235926 | 2019-02-24T03:41:09 | 2019-02-24T03:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Copyright (c) 2018 Manfred Moitzi
# License: MIT License
import ezdxf
# AutoCAD 2010 can not resolve XREFS in DXF R12 Format :-(,
ref_dwg = ezdxf.new('R2000')
ref_dwg.modelspace().add_circle(center=(5, 5), radius=2.5)
ref_dwg.header['$INSBASE'] = (5, 5, 0) # set insertion point
ref_dwg.saveas("xref_drawing.dxf")
#... | [
"mozman@gmx.at"
] | mozman@gmx.at |
46b6ba0aa78786fca3bae6b7c69830c69f629ac2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_202/ch3_2020_02_21_14_51_08_594299.py | dd59ba6a96579ccaf3b3644f63149357f60d9fb2 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | import math
def calcula_gaussiana(x,u,o):
return((math.e**(-0.5*((x-u)/o)**2))/o*math.sqrt(2*pi)) | [
"you@example.com"
] | you@example.com |
7524a1a94270cde413832fe855ab35bb965326de | ff67167c2a620a4da7bae8d945cebf4643f46186 | /cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_terminal_device_cfg.py | 43bc75e9dcadd2fe7ed79416905ba8b1a842376a | [
"Apache-2.0"
] | permissive | gaybro8777/ydk-py | ebbf4a15ac1d699d8c33492c96587c41b5159467 | fff6f9da0b37aea117856f415e1a6f1b5eba53cf | refs/heads/master | 2021-10-26T13:15:55.819384 | 2019-04-12T23:02:29 | 2019-04-12T23:02:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,596 | py | """ Cisco_IOS_XR_terminal_device_cfg
This module contains a collection of YANG definitions
for Cisco IOS\-XR terminal\-device package configuration.
This module contains definitions
for the following management objects\:
logical\-channels\: Logical channel in mxp
optical\-channels\: optical channels
Copyright (... | [
"ygorelik@cisco.com"
] | ygorelik@cisco.com |
3119fae3fe1aadaa71c5cae9f1576b38a7c3afc3 | f68eda51246c95597def569224f3b56d4c3700e7 | /top/api/rest/PromotionLimitdiscountGetRequest.py | 4b9ebc258b2a7047be00899b998a81697c8c960a | [
"MIT",
"BSD-3-Clause"
] | permissive | stoensin/taobao-openapi | 47de8fb29ae2d8ce47d4fce07c0ccaeaee1ef91f | 202a9df2085229838541713bd24433a90d07c7fc | refs/heads/main | 2023-07-17T02:17:51.527455 | 2021-08-25T15:08:49 | 2021-08-25T15:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | '''
Created by auto_sdk on 2018.11.10
'''
from top.api.base import RestApi
class PromotionLimitdiscountGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.end_time = None
self.limit_discount_id = None
self.page_number = None
self.star... | [
"samzong.lu@gmail.com"
] | samzong.lu@gmail.com |
c61c33ed11cd6124e71d682034e6e67551e279fc | 7d84000f2977def7118b4c93a47b9d71c4ee38f8 | /app/src/dbi.py | f5871ef0d1e50dfc9ad71010786307b81ee1d8cb | [] | no_license | tensorci/core | d405d17099987163dfc589711345ce414ace406e | 50d18bb43f73b1d5d47fefad543c2554e87a6520 | refs/heads/master | 2021-03-19T13:27:26.219591 | 2020-12-03T01:14:57 | 2020-12-03T01:14:57 | 110,917,313 | 0 | 0 | null | 2020-12-03T01:15:26 | 2017-11-16T03:20:09 | Python | UTF-8 | Python | false | false | 4,899 | py | """
Postgres Database Interface providing the following helper methods:
find_one
find_all
update
create
destroy
undestroy
delete
* Destroy-ing is the same as "soft" deleting a record...it will simply set the is_destroyed column to True
for a record. The helper methods used for querying the DB are au... | [
"benwhittle31@gmail.com"
] | benwhittle31@gmail.com |
17539ecb89461a97e039d325bef834b78d08259b | f415dd840e150a0ada86bc8b7c54f8d1c301e314 | /tests/helpers.py | 694db0ecd5e61ceb7f8490a25316267d22ec46a9 | [
"WTFPL"
] | permissive | Feuermurmel/venv_cli | 5c3680150f8c54fbbb4e5c36b3d609695b1b1104 | 87b5185d11ab4d6f66b8dd76533ab405f820ad97 | refs/heads/master | 2021-01-10T17:19:09.017138 | 2016-02-25T22:09:52 | 2016-02-25T22:09:52 | 51,231,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,678 | py | import os, subprocess, sys, contextlib, pkgutil, tempfile, pytest
class RunResult:
def __init__(self, returncode : int, stdout : str, stderr : str):
self.returncode = returncode
self.stdout = stdout
self.stderr = stderr
class Workspace:
"""
Allows executing commands and checking conditions in a temporary d... | [
"michi.schwarz@gmail.com"
] | michi.schwarz@gmail.com |
c8360ce86d4bfa906128d511027631bc4d8e4c69 | d13a1adcf9dda6717dcd1957189b1ad948bffebc | /onepk_without_pyc/tutorials/session/SessionTutorial.py | a605f4dac88adda06955bde55abc20c9759b5cdf | [] | no_license | neoyogi/onepk | ca81170457cfb49ae7a79d3cba58552ce6b74a89 | 54bc49eaed14f7832aca45c4f52311a00282d862 | refs/heads/master | 2021-01-01T19:43:22.849196 | 2015-02-17T11:16:02 | 2015-02-17T11:16:02 | 30,422,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,755 | py | #!/usr/bin/env python
#
# Copyright (c) 2010-2013, Cisco Systems, Inc.
#
# THIS SAMPLE CODE IS PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY
# BY CISCO SOLELY FOR THE PURPOSE of PROVIDING PROGRAMMING EXAMPLES.
# CISCO SHALL NOT BE HELD LIABLE FOR ANY USE OF THE SAMPLE CODE IN ANY
# APPLICATION.
#
# R... | [
"neoyogi9@gmail.com"
] | neoyogi9@gmail.com |
21db26de3198d180a5e39a545b3d434cfcfb9b71 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_117/ch84_2019_06_07_02_09_59_822281.py | c7e3553b0116c2d5fe47dde12a8fa2c6debf32c7 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | def inverte_dicionario (dic):
dic_invert = {}
for k, v in dic_invert.items():
if v not in dic:
dic_invert = []
dic_invert.append(v)
return dic_invert | [
"you@example.com"
] | you@example.com |
3dd56adae1191d1dbd4cb5db6911e9f04756571f | 4e693506b1b69b28ae2bcf0f5eb0d30e71a5e63d | /keras_models_factory/utils.py | 61d28442735ec316350b013d4e5cab50e1268d3f | [
"MIT"
] | permissive | shadiakiki1986/keras-models-factory | 62fabc7e786bc2e7ad85f00bf41abff85df57b35 | ee4f776eea0ec2e20347105d31cf192877f386bd | refs/heads/master | 2021-01-23T16:57:34.653001 | 2017-09-19T09:22:00 | 2017-09-19T09:22:00 | 102,754,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,174 | py | # https://gist.github.com/shadiakiki1986/2c293e364563492c65bffdb6122b4e92
from sklearn.preprocessing import MinMaxScaler # normalize,
min_max_scaler = MinMaxScaler()
# def myNorm3(X): return normalize(X, norm='l2', axis=0)
def myNorm3(X): return min_max_scaler.fit_transform(X)
########################################... | [
"shadiakiki1986@gmail.com"
] | shadiakiki1986@gmail.com |
bda67dea8cdb17417a447b603190fdbc5a7850d8 | 6351221d588668804e2df01936732eede4d96ed0 | /leetcode-cn/Python/232.用栈实现队列.py | 7ae75d5f682f19c9bda3328e8f390ed0abeb0c49 | [] | no_license | LogicJake/code-for-interview | 8e4ec9e24ec661a443ad42aa2496d78a1fbc8a3f | 5990b09866696c2f3e845047c755fa72553dd421 | refs/heads/master | 2021-09-20T20:19:17.118333 | 2021-09-14T13:46:30 | 2021-09-14T13:46:30 | 102,202,212 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | #
# @lc app=leetcode.cn id=232 lang=python3
#
# [232] 用栈实现队列
#
# @lc code=start
class MyQueue:
def __init__(self):
"""
Initialize your data structure here.
"""
self.stack = []
def push(self, x: int) -> None:
"""
Push element x to the back of queue.
"""
... | [
"835410808@qq.com"
] | 835410808@qq.com |
cb0d026ba9bbf7fb071cfc018eaf8538a0285a2d | 9a343c495459e79dc408a102730bcaeac7fa8886 | /blog/app01/admin.py | d1211d0bccc7fd7e1a91cb51ce105a8e53f5ca8c | [
"MIT"
] | permissive | MMingLeung/Python_Study | 62d3ae92bf6760de0804aa5792f53fb3799486a2 | 4ff1d02d2b6dd54e96f7179fa000548936b691e7 | refs/heads/master | 2022-12-27T12:53:05.186800 | 2018-03-07T04:34:36 | 2018-03-07T04:34:36 | 92,124,981 | 3 | 1 | MIT | 2021-06-10T18:35:33 | 2017-05-23T03:28:52 | JavaScript | UTF-8 | Python | false | false | 452 | py | from django.contrib import admin
from app01 import models
# Register your models here.
admin.site.register(models.UserInfo)
admin.site.register(models.Article)
admin.site.register(models.ArticleDetail)
admin.site.register(models.Article2Tag)
admin.site.register(models.Tag)
admin.site.register(models.Category)
admin.sit... | [
"mingmingleung1991@gmail.com"
] | mingmingleung1991@gmail.com |
00149d0616ecf21778b8fc9f4226f2e31c0455cf | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/container/node_pools/delete.py | 85c05b6a7ef85f44a9e6eb9c9c58a6ee068f7c38 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 4,208 | py | # -*- coding: utf-8 -*- #
# Copyright 2014 Google 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/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
1b255b3ddd1df3b1b17cabceab2a798b41728384 | 164e0f43ef3ad4cb7f6b28dfdd2bfbaa66d38ce2 | /Remove_Invalid_Parentheses/Remove_Invalid_Parentheses.py | 034e14e6cc19233f7b8b6abc301cc84c82bcdc96 | [] | no_license | maoxx241/code | b217f2d10065d90f52cfa38788c99e238565b892 | 16e97ec5ee7ae9ffa69da2e001d15a86d73d2040 | refs/heads/master | 2021-07-11T14:25:35.098241 | 2020-11-25T14:01:56 | 2020-11-25T14:01:56 | 222,544,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | class Solution:
def removeInvalidParentheses(self, s: str) -> List[str]:
left = 0
right = 0
# First, we find out the number of misplaced left and right parentheses.
for char in s:
# Simply record the left one.
if char == '(':
left +... | [
"maomaoyu870@gmail.com"
] | maomaoyu870@gmail.com |
69e237230ee8790bc12d09eeeae22d58d793a7de | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binary_20200525114701.py | e8cd6e394a55474ea53bc0c4231c7e1d52b17737 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | def solution(N):
print(N)
maximumCount = 0
number = format(N,"b")
print("wow",number)
s = [str(i) for i in number]
binary = int("".join(s))
intialNumber = None
answer = []
# totalCount = 0
# totalCount = 0
print("binary",number)
for i in rang... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
80c7f0807075a35cdcec4e616e655da777916a79 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/leetcode/leetCode/Stack/225_ImplementStackusingQueues.py | 605f337ca4287019202fd4d6bbc9e42ac90b852a | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 768 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: xuezaigds@gmail.com
from collections import deque
class Stack(object):
def __init__(self):
self._queue = deque()
def push(self, x):
# Pushing to back and
# then rotating the queue until the new element is at the front
q... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
fc78dfb58fc28e5c173a243deee5202c75eb4f57 | 5c4a6130f7b09a652f4cd8feb2132b174cf00f25 | /test-mab_3.py | 108f2d602597592c73b6cf43d6b145e779ff5757 | [] | no_license | xiaogaogaoxiao/Machine-Learning-Algorithm-for-Vehicular-Communication-Networks | 3ebbb023e6b25dafbbd2cdf4f412c83c0c6ac0b6 | c9b8b0f5f4f57ae6506c80956e48bad3ac9457ad | refs/heads/main | 2023-06-02T19:58:17.197528 | 2021-06-21T00:33:44 | 2021-06-21T00:33:44 | 445,976,561 | 1 | 0 | null | 2022-01-09T02:38:07 | 2022-01-09T02:38:07 | null | UTF-8 | Python | false | false | 24,725 | py | '''
This example shows how a base station chooses a beam to serve an approaching
vehicle. The base station has two beam configurations (a long reaching but
narrow one, and a short reaching but wide one). We assume that the base
station can only activate one beam at a time, with either configuration.
The example uses m... | [
"noreply@github.com"
] | xiaogaogaoxiao.noreply@github.com |
128cca6fe2e6e5e784f55a61facb0487d837a808 | 127fa3dd454434b4c7526afe161177af2e10226e | /learn/python_base/io.py | 60348faa4adbf54d5d67904473a557cd1779d9e7 | [] | no_license | lunar-r/sword-to-offer-python | 966c46a8ddcff8ce5c95697638c988d83da3beab | fab4c341486e872fb2926d1b6d50499d55e76a4a | refs/heads/master | 2023-04-18T18:57:12.126441 | 2020-11-29T09:51:23 | 2020-11-29T09:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | # -*- coding: utf-8 -*-
"""
File Name: io
Description :
Author : simon
date: 19-3-28
"""
# -- 文件基本操作
output = open(r'C:\spam', 'w') # 打开输出文件,用于写
input = open('data', 'r') # 打开输入文件,用于读。打开的方式可以为'w', 'r', 'a', 'wb', 'rb', 'ab'等
fp.read([size]) # size为读取的长度,以byte为单位
fp.readline([size]) #... | [
"2711772037@qq.com"
] | 2711772037@qq.com |
404b3dd9bf9118947a73b4b22ab44cac0e5361bd | d5e94042ac2b248b7701117a6ea941bcc862067a | /upvote/gae/modules/bit9_api/constants.py | f473708c778b50b28f70a3411e000b6fa473e0de | [
"Apache-2.0"
] | permissive | codegrande/upvote | f373105203a0595f76c29e138a18a95dc24a63df | e05d477bb13e470127b109eb8905a66a06eed5ac | refs/heads/master | 2020-03-07T19:40:47.185833 | 2019-06-20T14:35:20 | 2019-06-20T14:35:20 | 127,677,753 | 0 | 0 | null | 2018-04-01T22:49:28 | 2018-04-01T22:49:27 | null | UTF-8 | Python | false | false | 2,558 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"msuozzo@google.com"
] | msuozzo@google.com |
62dbc06cc71f3f8a7e37df306f12fd1e96d86336 | 284f2bfaabf91899211e56063026857c496965cf | /users/mixins.py | 9da8e98128b9d6e173ab42e6c559d7402fc769a5 | [] | no_license | vanessa/building-tuirer | 7b56bb9791659fcd04942d2c84a393c3c226f8c4 | 61d85df7d120387700b2e449a6fde5fb9ca7cfaa | refs/heads/master | 2022-12-11T07:25:14.174448 | 2018-08-07T05:18:29 | 2018-08-07T05:18:29 | 142,210,249 | 18 | 0 | null | 2022-12-08T02:19:48 | 2018-07-24T20:35:34 | Python | UTF-8 | Python | false | false | 706 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from users.models import User
from django.shortcuts import redirect
from django.contrib import messages
class ProfileAccessMixin(LoginRequiredMixin):
def handle_no_permission(self):
# Mostrando mensagens
messages.error(
self.re... | [
"vanessa@vinta.com.br"
] | vanessa@vinta.com.br |
5463c902b0d00d5e90378a570e33e19db4e6b638 | 31a0b0749c30ff37c3a72592387f9d8195de4bd6 | /release/ray_release/scripts/run_release_test.py | 6729c6a6630ae109dcf0bf0513abdb49074b30e0 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | longshotsyndicate/ray | 15100bad514b602a3fa39bfe205288e7bec75d90 | 3341fae573868338b665bcea8a1c4ee86b702751 | refs/heads/master | 2023-01-28T15:16:00.401509 | 2022-02-18T05:35:47 | 2022-02-18T05:35:47 | 163,961,795 | 1 | 1 | Apache-2.0 | 2023-01-14T08:01:02 | 2019-01-03T11:03:35 | Python | UTF-8 | Python | false | false | 3,840 | py | import os
import sys
from typing import Optional
import click
from ray_release.aws import maybe_fetch_api_token
from ray_release.config import (
read_and_validate_release_test_collection,
find_test,
as_smoke_test,
DEFAULT_WHEEL_WAIT_TIMEOUT,
)
from ray_release.exception import ReleaseTestCLIError, Rel... | [
"noreply@github.com"
] | longshotsyndicate.noreply@github.com |
7d59995c77d2bfd70c4e9e24e6d9add01ba90bfb | 705ca924bc63e8b324b847b21263f823219280e1 | /apps/its_login_register/migrations/0006_job.py | 6e32a697bb0da3c4dffe8fc695f96d8bda5c8dfd | [] | no_license | Komaldhall/Helping-Hand | 46a28f70045029794b0feb502db1ce3c8ba721e3 | a544b3812d3eb968233cfd28464c321f3bc997af | refs/heads/master | 2020-04-16T09:29:15.308558 | 2019-01-13T08:44:26 | 2019-01-13T08:44:26 | 165,465,986 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | # Generated by Django 2.0.7 on 2018-07-20 18:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('its_login_register', '0005_auto_20180720_1103'),
]
operations = [
migrations.CreateModel(
name=... | [
"komal.dhall7@gmail.com"
] | komal.dhall7@gmail.com |
782369aa9e5911c9a60e033e2124834fa92cff51 | 87849e7794e223214b3e40896c708d4ea17f2a12 | /tests/test_autogen_computed.py | 1144560dca5c23996719909df7610844ed7d95cb | [
"MIT"
] | permissive | novafacing/alembic | 0b6d9bfa9a66bd4883e863a6ce70a7094c9bb85b | 29ff74c2678ab73f6c5a646477c840f5cdded234 | refs/heads/master | 2021-01-14T15:21:53.344810 | 2020-02-24T06:22:46 | 2020-02-24T06:22:46 | 242,660,622 | 0 | 0 | MIT | 2020-02-24T06:13:49 | 2020-02-24T06:13:49 | null | UTF-8 | Python | false | false | 4,577 | py | import sqlalchemy as sa
from sqlalchemy import Column
from sqlalchemy import Integer
from sqlalchemy import MetaData
from sqlalchemy import Table
from alembic import testing
from alembic.testing import config
from alembic.testing import eq_
from alembic.testing import exclusions
from alembic.testing import is_
from al... | [
"mike_mp@zzzcomputing.com"
] | mike_mp@zzzcomputing.com |
a94cf976e9587529566a28af7ecc54d87fa2a67e | 733b5c3974dd135c390aedbb75ce863abfac0759 | /portal/forms.py | 92d9c7bf4f754d5a879255c286ec998952d941e0 | [] | no_license | stepin-s/electroportal | eb3ade027d548969761a9482aaddbcfb81666d0d | d8228ff77805d405f56d18537fa17dcc945cf8a6 | refs/heads/master | 2022-12-02T12:33:29.163301 | 2020-08-17T07:05:24 | 2020-08-17T07:05:24 | 284,604,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from django import forms
from .models import News
from .models import Videos
class NewsForm(forms.ModelForm):
class Meta:
model = News
fields = ('title', 'text',)
class VideosForm(forms.ModelForm):
class Meta:
model = Videos
fields = ('title', 'text',) | [
"stpn.s@yandex.ru"
] | stpn.s@yandex.ru |
27c70bdc66179c2000f823081a3d97b2140bc3e8 | cf945fb7c961376bfcff37c80fe50312d4f32290 | /Books/NetworkScraping_Py3/C2_NetworkHrefScraping/E2_HrefScarpingEntry.py | 30aa204aa2cc770573683076ad0a29dac704befa | [] | no_license | lizhenQAZ/code_manage | faa1e805326cc8da8463e0f8820c9d092a04dddb | f98977d58a9febb8212652846314418bba37bfc7 | refs/heads/master | 2020-12-03T00:00:52.205238 | 2018-12-19T16:00:48 | 2018-12-19T16:00:48 | 95,968,266 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from urllib.request import urlopen
from urllib.error import HTTPError
from bs4 import BeautifulSoup
import re
url = 'https://en.wikipedia.org/wiki/Kevin_Bacon'
rex = re.compile('^(/wiki/)((?!:).)*$')
def gettitle(url_info):
try:
html = urlopen(url_info)
except HTTPError as e:
return None
... | [
"www.516960831@qq.com"
] | www.516960831@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.