blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6794fead579bf4d1b7bfe5452a1893e0a5b910d7 | cc1b87f9368e96e9b3ecfd5e0822d0037e60ac69 | /telemetry/telemetry/internal/platform/desktop_platform_backend_unittest.py | fe8ed448e677934ec0a9d9f2589cb9bca8531572 | [
"BSD-3-Clause"
] | permissive | CTJyeh/catapult | bd710fb413b9058a7eae6073fe97a502546bbefe | c98b1ee7e410b2fb2f7dc9e2eb01804cf7c94fcb | refs/heads/master | 2020-08-19T21:57:40.981513 | 2019-10-17T09:51:09 | 2019-10-17T18:30:16 | 215,957,813 | 1 | 0 | BSD-3-Clause | 2019-10-18T06:41:19 | 2019-10-18T06:41:17 | null | UTF-8 | Python | false | false | 1,019 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import mock
from telemetry.internal.platform import linux_platform_backend
from telemetry.internal.platform import win_platform_backend
from... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
7ceea105afcc67fa44c8cad1a7685eb46fca8ee6 | 214230d0796377be0bfdda286c2c389b92a19555 | /SCTF/2018 Quals/ding_j_max/solver.py | deea8232606f93e63bd58390cfbbbbe41597a98c | [
"Unlicense"
] | permissive | Qwaz/solved-hacking-problem | fa5ebfeb98ec979cf57dac1470a651199f2dc50d | cda0db4888322cce759a7362de88fff5cc79f599 | refs/heads/master | 2023-08-24T03:45:12.481496 | 2023-07-16T12:38:08 | 2023-07-16T12:38:08 | 49,208,719 | 100 | 28 | null | 2022-03-24T00:51:04 | 2016-01-07T14:18:18 | HTML | UTF-8 | Python | false | false | 1,379 | py | import sys
from pwn import *
# SCTF{I_w0u1d_l1k3_70_d3v3l0p_GUI_v3rs10n_n3x7_t1m3}
GDB_HEADER = '(gdb) '
BREAK_ADDR = 0x401412
PATCH_ADDR = 0x401415
def gdb_command(cmd):
gdb.recvuntil(GDB_HEADER)
gdb.sendline(cmd)
gdb = process(['gdb', './dingJMax', sys.argv[1]])
gdb_command('b *0x%x' % BREAK_ADDR)
conte... | [
"qwazpia@gmail.com"
] | qwazpia@gmail.com |
08b3ed5e21ee24030807a466581e83ed6918823d | 3bc089a77598694aace6b060c3aca5e9bb1e156b | /exercises/1901100254/1001S02E05_string.py | ce51182891da02309452743bc68fdcb04a6192ba | [] | no_license | Lily0905/selfteaching-python-camp | 8a91dc47b707a0e605c0722e7a50c402e3c61968 | bf1b8ea3b064937f650d50e83d98847bfc567bae | refs/heads/master | 2020-07-29T19:56:24.761264 | 2019-09-20T08:46:48 | 2019-09-20T08:46:48 | 209,940,920 | 1 | 0 | null | 2019-09-21T07:06:42 | 2019-09-21T07:06:42 | null | UTF-8 | Python | false | false | 1,720 | py |
text = '''
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although... | [
"43633521+liujiayi0042@users.noreply.github.com"
] | 43633521+liujiayi0042@users.noreply.github.com |
aff0f112469e96ffe9c9ca4c1b77779cb217de75 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/portal/v20181001/get_console.py | e0491ed0df58d54c014286ff88faba9f6cd5b828 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 1,891 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
ecf43cb2b8cf8ecea51db2d3ff7ead25d563ea67 | 70026e9e5a6d9f70057574c749d0ef8b603763f5 | /audits/admin.py | b0e64b5c5137ec5c2e55b741815363af7c6ef548 | [
"MIT"
] | permissive | GreenBankObservatory/nrqz_admin | 96b113e640bfdec221631626114665ef1f684cc5 | c8e0876c3ab7a3feae578fa725dbfd1bdbe52a61 | refs/heads/master | 2023-05-11T16:28:21.731339 | 2023-05-01T14:25:25 | 2023-05-01T14:25:25 | 159,407,852 | 2 | 0 | MIT | 2022-12-14T04:13:35 | 2018-11-27T22:22:48 | Python | UTF-8 | Python | false | false | 307 | py | from django.contrib import admin
from django_import_data.models import (
ModelImportAttempt,
FileImporter,
FileImportAttempt,
)
@admin.register(FileImporter)
class FileImporterAdmin(admin.ModelAdmin):
fields = ("file_path",)
admin.site.register([ModelImportAttempt, FileImportAttempt])
| [
"tchamber@nrao.edu"
] | tchamber@nrao.edu |
4e75fe3dfeffd6dd6d9727a0a14677fe8e3f681b | bd10d096a40f6ac88ea4ade678297cb4552626b3 | /core/nginx/config.py | 360ce683f0779e1c31e947f3ddf4d8ce13b88a42 | [
"MIT"
] | permissive | rageOS/Mailu | 26db34b082251673de5e6ff91f4668578bb996ac | 319965a4afa461a3cb63e6cf20100d9d7fe80c48 | refs/heads/master | 2021-08-23T11:38:20.771680 | 2017-12-03T18:37:36 | 2017-12-03T18:37:36 | 113,082,186 | 0 | 0 | null | 2017-12-04T18:57:07 | 2017-12-04T18:57:06 | null | UTF-8 | Python | false | false | 1,036 | py | #!/usr/bin/python
import jinja2
import os
convert = lambda src, dst, args: open(dst, "w").write(jinja2.Template(open(src).read()).render(**args))
args = os.environ.copy()
# Get the first DNS server
with open("/etc/resolv.conf") as handle:
content = handle.read().split()
args["RESOLVER"] = content[content.in... | [
"pierre@jaury.eu"
] | pierre@jaury.eu |
22dc7e14aaa24e3ff8644caf46c78a53ff96d37b | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /GIT-USERS/TOM-Lambda/CSEUFLEX_Intro_Python_GP/equipment.py | 8b4dff5975c361bf9cd8643cdde3ddad059ce7ea | [
"MIT"
] | 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 | 676 | py | <<<<<<< HEAD
# make an equipment class with the fields of
=======
# make an equipment class with the fields of
>>>>>>> 23fb4d348bb9c7b7b370cb2afcd785793e3816ea
# name, price, style and weight
# that inherits from the product class
from product import Product
<<<<<<< HEAD
=======
>>>>>>> 23fb4d348bb9c7b7b370cb2afcd7... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
312b2e57144f885c8394f8deee7110fb7f0dddc8 | a6ff5be50b499ffb36294e1e93ce59b138bfe622 | /test/test_integration_event.py | 636dbfb935bca44a3e065c688ab7c799920b2635 | [
"MIT"
] | permissive | MostafaSalah222/talon_one.py | 7221ebc54831dce33f1724fe0856093145d7add8 | f863bb3c2cc5ddc94d9227adcf14947b2ea7db41 | refs/heads/master | 2023-07-27T06:03:43.849686 | 2021-09-07T08:56:41 | 2021-09-07T09:01:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | # coding: utf-8
"""
Talon.One API
The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. #... | [
"noreply@github.com"
] | MostafaSalah222.noreply@github.com |
123ace045db3cd03e44cc51df57ed19c1a98d7f3 | 15b12d69ac3123d1562986970ce01d7a47d171de | /SetOperation.py | 34a7d487b53786c9b2b62ea9c17e5f2fef42dc6c | [
"Apache-2.0"
] | permissive | simplymanas/python-learning | 9b67b5a7acfb3a7c2455a7d1fc66203a2b419c37 | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | refs/heads/master | 2021-07-11T06:40:24.803589 | 2021-06-20T12:06:02 | 2021-06-20T12:06:02 | 241,769,614 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py |
# Date: 27th Jun 2020
# Lets learn Set Theory in Python
# Few Operations on Sets
# Let's take two sets
first_set = {11, 21, 31, 41, 51}
second_set = {11, 61, 71, 81, 31}
print('First Set : ' + str(first_set))
print('Second Set : ' + str(second_set))
# The basic operations are:
# 1. Union of Sets
print('\nUNION o... | [
"manas.dash@tesco.com"
] | manas.dash@tesco.com |
9bb15e41ae62f4d5977caeaa5b592386b4a87562 | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /scraper/storage_spiders/kemlrocrecom.py | 4b4717cfcc86c97a8622f2359d87ec9eb1eaf697 | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='detai_product_right']/h1",
'price' : "//div[@class='detai_product_gia']/span",
'category' : "//h2[@class='dita_name_... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
aa1f36de03e34eaff8ca75902441da8ade24fd46 | 2106e17ab0e564e8ad0b2c907e47795ec6d4835b | /examples/neural_networks/plot_mlp_alpha.py | f04f3462ba3d1a818977763991e332ac8f655e0d | [
"BSD-3-Clause"
] | permissive | smartscheduling/scikit-learn | 31eca6d5894399f003fcc607224c28831bdf86e8 | f773bb5413bf367167ce265df019c3237096ef49 | refs/heads/master | 2021-01-24T15:44:04.473676 | 2014-10-13T20:42:16 | 2014-10-13T20:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,120 | py | """
================================================
Varying regularization in Multi-layer Perceptron
================================================
A comparison of different regularization term 'alpha' values on synthetic
datasets. The plot shows that different alphas yield different decision
functions.
Alpha is a... | [
"issam.laradji@gmail.com"
] | issam.laradji@gmail.com |
f1cde5699db50e9afd62a6633e1d18b2c8f11428 | 9a6ae760c478f136e09c78eeff06770929f93afb | /demo2/polls/migrations/0003_auto_20190705_1417.py | 31d6dc20dd57a17db99af07be3c9ff60fe917e9e | [] | no_license | zzy0371/Py1904 | adb0faa2e29abefe08ed81835573626ce2bcd899 | 47e24a34d49356f64ffdf87bb7e1b7009b215511 | refs/heads/master | 2022-12-11T08:10:06.160540 | 2019-07-18T08:11:33 | 2019-07-18T08:11:33 | 194,625,297 | 0 | 0 | null | 2022-04-22T21:54:48 | 2019-07-01T07:50:54 | JavaScript | UTF-8 | Python | false | false | 377 | py | # Generated by Django 2.2.1 on 2019-07-05 06:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0002_temp'),
]
operations = [
migrations.AlterField(
model_name='temp',
name='desc',
field=mode... | [
"496575233@qq.com"
] | 496575233@qq.com |
fb1c05fe450cfdeacced4b7a11ff507c7d783914 | 1f79d9d02810a944c45fc962c62159035c5a2247 | /migrations/versions/37878b76721_.py | b8ea073ef84a3fa65312468c4ebe2d712c125626 | [] | no_license | qsq-dm/mff | 5f17d6ffd1d4742dc46d1367cff35233af08a450 | d7f1e6f3fba95fe0d8ebb8937dda64a17e71f048 | refs/heads/master | 2020-12-29T02:19:29.037394 | 2016-08-01T15:40:42 | 2016-08-01T15:40:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | """empty message
Revision ID: 37878b76721
Revises: 3107ca470fdf
Create Date: 2016-02-27 10:16:36.087236
"""
# revision identifiers, used by Alembic.
revision = '37878b76721'
down_revision = '3107ca470fdf'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - pl... | [
"root@localhost"
] | root@localhost |
c3f357915308c406450f3af0a4a588a2ddcb9b30 | 7d667b70c8ae1c8f214b85d613d3a98462af9d0c | /froide/foirequestfollower/tests.py | 68fc03b7be15659bbbca939ec138dc0a38e27a53 | [
"MIT"
] | permissive | handlingar/froide | c57653a87a05fb402c1fe61f0df1ff480391f911 | 5ed80cf6550fb4cbc757029b2c860b53e784eb93 | refs/heads/master | 2021-05-28T18:13:17.573095 | 2015-06-18T13:00:16 | 2015-06-18T13:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,564 | py | from __future__ import with_statement
import re
import factory
from django.test import TestCase
from django.core.urlresolvers import reverse
from django.core import mail
from django.contrib.auth import get_user_model
from django.contrib.comments.forms import CommentForm
from django.contrib.comments.models import Comm... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
99206d1556504fc1696b6afc8d4d1e3e31d90434 | 5ef87d7308fd7a6a56c1fa4795e733820144fdac | /dataloader.py | 17f7c33ace3b82ace471b974c9a8a181e6639d91 | [
"Apache-2.0"
] | permissive | pprp/SimpleClassifier | 19bdcdbad5a9f3d3cd6b22f545fa0037fd94f659 | ad6d664364ebdba0efcab7366a75a179995e43cb | refs/heads/master | 2020-09-27T10:41:20.682317 | 2019-12-16T13:43:12 | 2019-12-16T13:43:12 | 226,497,408 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | import torch
from config import cfg
from torchvision import transforms, datasets
# part 0: parameter
input_size = cfg.INPUT_SIZE
batch_size = cfg.BATCH_SIZE
# part 1: transforms
train_transforms = transforms.Compose([
transforms.RandomRotation(5),
transforms.RandomResizedCrop(input_size[0]),
transforms.Ra... | [
"1115957667@qq.com"
] | 1115957667@qq.com |
c79bbac857dfd71d4ab4da5645e78f296e69721d | 49a15ea9bdbf68575c034f2428ddc5bdc9b897d2 | /mysite/polls/urls.py | 5d787f4eae86d603e7098327aedff2e742373a0f | [] | no_license | chenhanfang/djangotest | 277a23c62cbf6b4d5e336642352e06d16c0238f3 | 96eeb865a4bc51fea345e54108081ae08a150e4f | refs/heads/master | 2020-12-30T18:03:24.955470 | 2017-05-17T09:41:52 | 2017-05-17T09:41:52 | 90,949,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from django.conf.urls import url
from . import views
app_name = 'polls'
urlpatterns=[
url(r'^$',views.index,name='index'),
url(r'^(?P<question_id>[0-9]+)/$',views.detail,name='detail'),
url(r'^(?P<question_id>[0-9]+)/results/$',views.results,name='results'),
url(r'^(?P<question_id>[0-9]+)/vote/$',views... | [
"chenhanfang@zhixunkeji.cn"
] | chenhanfang@zhixunkeji.cn |
cff098258b5b5b7e9de922770351d0c19a9f6d4d | 7d4e8492de331f8bed4ef625132a3c8bb1e44b3e | /src/exceptions/aws_exceptions.py | 90b29576c3400d52412ae100877495c039908dec | [
"ISC"
] | permissive | uk-gov-mirror/dwp.dataworks-behavioural-framework | f6d1d7a94a2b18be659acd444ae8d88615e4a162 | d7c143c0fc0c4ae9e86ece34ccc1a480df1f65ad | refs/heads/master | 2023-04-09T01:09:37.313078 | 2021-04-14T15:43:44 | 2021-04-14T15:43:44 | 356,707,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | class AthenaQueryException(Exception):
"""Used when an exception occurs during an Athena query"""
pass
class HBaseQueryException(Exception):
"""Used when an exception occurs during an HBase query"""
pass
| [
"noreply@github.com"
] | uk-gov-mirror.noreply@github.com |
7323ef87e2046adea00e9391a8c96ad2e572d5a9 | fc5734ad9b0dc154b3a36ec2f5d848b3d693473f | /solutions/Trees and Graphs/Graphs/max_area_of_island.py | d75e31146c0bbabbdf6159e062b5edde686ccf2e | [
"MIT"
] | permissive | aimdarx/data-structures-and-algorithms | 8e51ec2144b6e0c413bc7ef0c46aba749fd70a99 | 1659887b843c5d20ee84a24df152fb4f763db757 | refs/heads/master | 2023-08-28T12:00:33.073788 | 2021-11-07T08:31:28 | 2021-11-07T08:31:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | """
Max Area of Island:
You are given an m x n binary matrix grid. An island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.)
You may assume all four edges of the grid are surrounded by water.
The area of an island is the number of cells with a value 1 in the island.
Return t... | [
"noreply@github.com"
] | aimdarx.noreply@github.com |
314d7d7f762ea47030a3ad526c45bdbd5b548225 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_0825+428/sdB_pg_0825+428_lc.py | 6a60c6b876ec9ccf2d2ed0b809b4bb5139d1047f | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[127.239792,42.678167], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_0825+428/sdB_pg_0825+428_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
c45a634d4051faca587362c4c6d02f814a05afe5 | 260133e46c0c88fd20f2ed18309c5f46508b7fb9 | /opengever/base/monkey/patches/action_info.py | e473fd4111bb55218ed7b680d6aba6c87f420f45 | [] | no_license | robertmuehsig/opengever.core | 4180fbea1436fade9b33232a293b0d43ebfc6c51 | 63b3747793d5b824c56eb3659987bb361d25d8d8 | refs/heads/master | 2020-09-08T14:55:00.340222 | 2019-11-08T10:16:02 | 2019-11-08T10:16:02 | 221,163,734 | 0 | 0 | null | 2019-11-12T08:08:59 | 2019-11-12T08:08:54 | null | UTF-8 | Python | false | false | 1,603 | py | from opengever.base.monkey.patching import MonkeyPatch
from Products.CMFCore.utils import _checkPermission
class PatchActionInfo(MonkeyPatch):
"""We patch the _checkPermissions() method of the ActionInfo object
in order to also consider our 'file_actions' category one that should
have its actions' permiss... | [
"lukas.graf@4teamwork.ch"
] | lukas.graf@4teamwork.ch |
9f1ce72275c26f6742415bae951f4b266f69a90a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03711/s673158923.py | 24d0cec24c92d3886a0f6f29f107232db5bf4165 | [] | 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 | 199 | py | l = [4, 6, 9, 11]
x, y = map(int, input().split())
if x == 2 or y == 2:
print('No')
elif x in l and y in l:
print('Yes')
elif x not in l and y not in l:
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b6933de33d4267ec3bf240b424e9fd2bfef3e627 | 39c5e93c07f1d41cb2dd632a858b58ccf9955ab9 | /Methods and Functions/map_Filter_lambda/filter.py | cd5f5b820360883d191acfe3efd4b26516ef0f2a | [] | no_license | amitarvindpatil/Python-Study-Material | 0e8b1ca4361c7ff92f94cc7bf76d4ef2866dddac | b52f96ceb2b9a7dcb0dd979c2f688ea2460cdece | refs/heads/master | 2023-04-21T03:54:01.894374 | 2021-05-11T06:19:06 | 2021-05-11T06:19:06 | 224,249,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | # Filter
# -----The filter() method filters the given sequence with the help
# of a function that tests each element in the sequence to be true or not.
# Example
# def check_even(num):
# return num % 2 == 0
# num = [0, 3, 2, 4, 5, 2, 6, 7, 34, 23, 5, 78, 32, 2, 1, 1, 0]
# filter_even = filter(check_even,... | [
"amitpatil04041993@gmail.com"
] | amitpatil04041993@gmail.com |
f72dbe571f55a2c24215509833ecbcfcbfeb6bbd | 7259dbcc9e32502945d362caa43d4ad380cd04ea | /企业数据库爬虫/badwork-master/uptoaliyun/bxzd_uptoaliyun.py | 83b56fccbcfe8eb45924f5fbc87fecc2f32fedf8 | [
"MIT"
] | permissive | Doraying1230/Python-Study | daa143c133262f4305624d180b38205afe241163 | 8dccfa2108002d18251053147ccf36551d90c22b | refs/heads/master | 2020-03-29T13:46:13.061373 | 2018-07-26T15:19:32 | 2018-07-26T15:19:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,964 | py | # coding:utf-8
import requests
import time
import uuid
import threading
import Queue
import MySQLdb
import config
import re
from lxml import etree
from lxml.html import fromstring
from download_center.store.store_mysql_pool import StoreMysqlPool
# from StoreMysqlPool import StoreMysqlPool
from download_center.store.st... | [
"2829969299@qq.com"
] | 2829969299@qq.com |
f5ce343944e0e5aa368aec4ed178529bc5d92d25 | 46dc1ef28634ea1a2fdf419aeec4f60a001a3045 | /aldryn_blog/search_indexes.py | 415c439b8ce26c9dfe6cc975732aedf6b932d585 | [] | no_license | growlf/aldryn-blog | f143d256628f9d2584f23ef8c4680c89324b7d21 | 88d484677cb54f8650c4b69e3856e1d84dc7ef73 | refs/heads/master | 2021-01-21T03:09:44.545168 | 2014-09-11T22:32:37 | 2014-09-11T22:32:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | # -*- coding: utf-8 -*-
from django.db.models import Q
from django.template import RequestContext
from aldryn_search.utils import get_index_base, strip_tags
from .conf import settings
from .models import Post
class BlogIndex(get_index_base()):
haystack_use_for_indexing = settings.ALDRYN_BLOG_SEARCH
INDEX_T... | [
"commonzenpython@gmail.com"
] | commonzenpython@gmail.com |
274610d865dddc45fbe3bc9b639412a3e22bd912 | 56495b71151fb304957a6e4478bcd9538efc3ae4 | /sites/scnews/management/commands/crawl.py | 5a9681735b7b85197bef9db53008ac6c44c75697 | [] | no_license | qq40660/scnews | 4ea6ec18966f9b0662f8c3dc25cd2385bcb1b568 | 565701c3ba42d97cf7fb057b88793c6de2a582e2 | refs/heads/master | 2021-01-24T22:52:13.038343 | 2011-09-22T14:46:58 | 2011-09-22T14:46:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from datetime import datetime
from django.core.management.base import NoArgsCommand
from scnews.models import Resource
from scnews.management.crawl_helper import fetch
class Command(NoArgsCommand):
help = "do crawl"
def handle_noargs(self, **options):
reses = Resource.objects.all()
for ... | [
"zbirder@gmail.com"
] | zbirder@gmail.com |
494c511f36bae45d4e6f16d0623ac7874be3ea7d | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework02/maoyanspiders/maoyanspiders/spiders/movies_20200627214717.py | 4371ba152db9d2cf063ba237ef9633f663fbe53a | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 993 | py | # -*- coding: utf-8 -*-
import scrapy
from maoyanspiders.items import MaoyanspidersItem
# import xlml.etree
from bs4 import BeautifulSoup as bs
class MoviesSpider(scrapy.Spider):
name = 'movies'
allowed_domains = ['maoyan.com']
start_urls = ['http://maoyan.com/board/4']
# def parse(self, response):
... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
20b05c2331ef559dbd95fad901ddccaa652a44fe | 4c44c593048fa4e00fb0334209632a286886efd9 | /import_template_pricelist_item/wizards/__init__.py | e9e9d3a81880c84d81cb7990a27496f16cf660a7 | [] | no_license | treytux/trey-addons | 0c3fec43c584d46bd299b4bca47dcc334bedca60 | 1cda42c0eae702684badce769f9ec053c59d6e42 | refs/heads/12.0 | 2023-06-08T21:56:09.945084 | 2023-05-29T10:05:53 | 2023-05-29T10:05:53 | 114,281,765 | 19 | 49 | null | 2023-05-29T10:05:55 | 2017-12-14T18:10:39 | Python | UTF-8 | Python | false | false | 285 | py | ###############################################################################
# For copyright and license notices, see __manifest__.py file in root directory
###############################################################################
from . import import_template_pricelist_item
| [
"roberto@trey.es"
] | roberto@trey.es |
32b9d52f74f5208eb15784bcc0eb738b10f01bcc | ec45bee420713f64d2d00a5d1c15a9a5f66a940b | /my_cv/polyp/images_checker.py | 229bbefbb64ab79b935446639eb8c5a0caf9188c | [
"MIT"
] | permissive | strawsyz/straw | a7dc5afef9525eeb3b1a471b5a90d869a3ba5084 | cdf785856941f7ea546aee56ebcda8801cbb04de | refs/heads/master | 2023-06-08T17:18:53.073514 | 2023-06-05T05:51:41 | 2023-06-05T05:51:41 | 253,447,370 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | import os
from PIL import Image
from matplotlib import pyplot as plt
def read_img(file_name):
img = Image.open(file_name)
# 防止一个通道的图像无法正常显示
img = img.convert('RGB')
return img
def on_key_release(event):
if event.key == 'n':
if index[0] < len(file_names) - 1:
index[0] += 1
... | [
"836400042@qq.com"
] | 836400042@qq.com |
44eee656ac7d9e1c47346f6e1961f4b82dae1008 | 2c7f025568bceb560888d26828aef30e5ae23393 | /src/concursos/migrations/0002_auto_20170321_1830.py | eb0f05da9b9d6366bebeae666869ac539f4f5492 | [] | no_license | GustavoCruz12/educacao | 6271ebc71830ee1964f8311d3ef21ec8abf58e50 | d0faa633ed1d588d84c74a3e15ccf5fa4dd9839e | refs/heads/master | 2022-12-08T09:34:42.066372 | 2018-08-03T06:38:49 | 2018-08-03T06:38:49 | 143,387,426 | 0 | 0 | null | 2022-12-08T00:01:52 | 2018-08-03T06:31:03 | Python | UTF-8 | Python | false | false | 615 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-21 18:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('concursos', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"gustavocruz201419@gmail.com"
] | gustavocruz201419@gmail.com |
60686257e8848aa55f3f6ecb9c5d55e0fc77b012 | 00b405a49ac6108d24986243c4b52fa53fb58acc | /0376_wiggle_subsequence.py | 7fd34c5d4608ece36be102ba9360cc42b4674715 | [] | no_license | Shin-jay7/LeetCode | 0325983fff95bfbc43a528812582cbf9b7c0c2f2 | 953b0b19764744753f01c661da969bdab6521504 | refs/heads/master | 2023-07-19T07:17:21.513531 | 2023-07-15T06:05:06 | 2023-07-15T06:05:06 | 231,285,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | from __future__ import annotations
from typing import List
from functools import cache
# Define by dp(i, 1) the biggest length of wiggle subsequense,
# which ends with element nums[i] and has and increasing status,
# and dp(i, -1) is the biggest length of wiggle subsequence,
# which ends with element nums[i] and h... | [
"shin@jay7.net"
] | shin@jay7.net |
3a78b3c9f78cf699f6619052bb18e27fc24b052f | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Opraz_gastro-resistant_capsule,_hard_SmPC.py | 7a328ba25d2c90a2e76c4dff8053f689782d112c | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | {'_data': [['Common',
[['Nervous system', u'Huvudv\xe4rk'],
['GI',
u'diarr\xe9, f\xf6rstoppning, buksm\xe4rtor, illam\xe5ende/ kr\xe4kningar och gasbildning']]],
['Uncommon',
[['Psychiatric', u'S\xf6mnbesv\xe4r Agitation,'],
['Nervous system', u... | [
"urudaro@gmail.com"
] | urudaro@gmail.com |
28490f6396d9d23366dc94354780a129da17a33c | b3b713f0a713e14cdab774f5d9703add02fbb136 | /layouts/inconsistencias.py | a0c0f8ce9b95fe65eedb3422c72061127e722d22 | [] | no_license | DS4A-team34/ds4a_application | dba9da1d271396c2f50095ea86230cf2cf9f0c4d | 736c69e002cf4a46f83cbd8c522ee6b0029f0793 | refs/heads/master | 2023-01-10T08:48:44.084758 | 2020-11-16T02:26:31 | 2020-11-16T02:26:31 | 306,533,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,858 | py | import dash_core_components as dcc
import dash_html_components as html
import dash_daq as daq
from controls import df_x, grupo_dict, grupo_options, fig_top_contratistas_good, fig_top_contratistas_bad, figure_fields_incons,figure_similarity
available_indicators = df_x.entidadnombre.unique()
# Colors
bgcolor = "#f3f3f... | [
"jjescobar@uninorte.edu.co"
] | jjescobar@uninorte.edu.co |
4c9f7a10aac9bcbb4fdd921caa723ca73f12358e | d475a6cf49c0b2d40895ff6d48ca9b0298643a87 | /pyleecan/Classes/Surface.py | 41c01627adfcca5da4eb333e28f6be696120ded0 | [
"Apache-2.0"
] | permissive | lyhehehe/pyleecan | 6c4a52b17a083fe29fdc8dcd989a3d20feb844d9 | 421e9a843bf30d796415c77dc934546adffd1cd7 | refs/heads/master | 2021-07-05T17:42:02.813128 | 2020-09-03T14:27:03 | 2020-09-03T14:27:03 | 176,678,325 | 2 | 0 | null | 2019-03-20T07:28:06 | 2019-03-20T07:28:06 | null | UTF-8 | Python | false | false | 6,513 | py | # -*- coding: utf-8 -*-
# File generated according to Generator/ClassesRef/Geometry/Surface.csv
# WARNING! All changes made in this file will be lost!
"""Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Geometry/Surface
"""
from os import linesep
from logging import getLogger
fro... | [
"sebgue@gmx.net"
] | sebgue@gmx.net |
ce83b7e7acb77eba6650ed2dfdf71e0df86e7df0 | feabe8532bfd7656d9a7d72c574ab8bb1bead896 | /py3-study/面向对象课上代码/1901/9-10/作业.py | 5df7340251a636066cdc866a812b5f4d91d93abf | [] | no_license | liuluyang/mk | bbbc887a432d40d23c20bf59453bbece8dc6e72f | 167c86be6241c6c148eb586b5dd19275246372a7 | refs/heads/master | 2020-08-03T15:02:24.406937 | 2020-01-04T08:20:32 | 2020-01-04T08:20:32 | 211,793,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | # ! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = "Miller"
# Datetime: 2019/9/10 16:55
"""
创建一个Person类
1.
有私有属性:name. age, gender
但是有两个公开属性info, isAdult
info属性以元组的形式返回该对象所有私有属性
isAdult属性返回该对象是否成年 True or False 注:>=18是成年
2.
有一个方法birthday
每次调用这个方法,都会长一岁
"""
class Person:
def __init__(self, name, age,... | [
"1120773382@qq.com"
] | 1120773382@qq.com |
cd2dc31139ee6be90efa1bbf27d589a6121b26ea | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part2/batch/jm/parser_errors_2/840141986.py | 0988245bb5abe2feafffcf2b9486dfd0c79acc20 | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 1,335 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 840141986
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 3, 3, 2)
assert board is... | [
"jakub@molinski.dev"
] | jakub@molinski.dev |
8163b7b83be82baad2d6aafd4d992123d86b5b7d | ae53410a837876abae440d14c243619dedba51f1 | /Solutions/5.py | 22ecdbd42cc865b3db442ae37a6dc36a2c054b12 | [] | no_license | AvivYaniv/Project-Euler | 68e839ae6d4d1a683aa8723f7c9ab3e55ee1dd28 | ec271404a7280129cdc0af9cf3a07f8faa3ab2f4 | refs/heads/master | 2021-06-25T11:20:12.010985 | 2021-04-25T18:39:12 | 2021-04-25T18:39:12 | 225,074,588 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | import math
N = 20
PRIMES = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293... | [
"avivyaniv@gmx.com"
] | avivyaniv@gmx.com |
dc913812fd4788f60339109e8dd78e0fe48bcd66 | 1ac96e752d08b1b74676262137bdef9071f12827 | /test/pipeline/test_build.py | ba98dade73263dbbca782da216e4aab0ba710c45 | [] | no_license | nornir/nornir-buildmanager | cf8e06e4e0ff769f07ea46345be386152bf02f84 | f9493538945984626e921b453b378b8bcbc117d7 | refs/heads/master | 2023-06-08T21:17:32.049308 | 2018-02-27T01:24:13 | 2018-02-27T01:24:13 | 14,442,428 | 2 | 0 | null | 2013-12-17T22:09:07 | 2013-11-16T05:44:07 | Python | UTF-8 | Python | false | false | 2,340 | py | '''
Created on Feb 22, 2013
@author: u0490822
'''
import glob
import unittest
from setup_pipeline import *
class PrepareThenMosaicTest(PrepareThroughAssembleSetup):
'''Run the build with prepare, then run again with mosiac'''
TransformNames = ["translate", "grid", "zerogrid", "stage"]
@property
de... | [
"james.r.andreson@utah.edu"
] | james.r.andreson@utah.edu |
a2e7148df94a9924ffa6228fc87c8ae3b5ed95bd | 66ac12d64422cfbe1aedf34b66ee8750b595ca58 | /spensum/module/position.py | 39645869b7aa8c6d1bf776f418344966744727b0 | [] | no_license | kedz/spensum | 884c2bbfeaacce875adf8fe5dff230e7c47b68ca | 989f5036543abadc616f7ce10477e716f6e88105 | refs/heads/master | 2021-09-13T21:07:33.727862 | 2018-02-02T19:13:14 | 2018-02-02T19:13:14 | 112,295,203 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | from .spen_module import SpenModule
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
class Position(SpenModule):
def __init__(self, num_positions=50, name="Position", mask_value=-1,
burn_in=0):
super(Position, self).__init__(
... | [
"kedzie@cs.columbia.edu"
] | kedzie@cs.columbia.edu |
cd3406d17daddd03c1243d992e77947b8c7b3e31 | bdbf05347487bc94da2ab43c069030491aad30c1 | /bd_log_analysis.py | 133b4facc0f461d050719f6f7891244e197fe37c | [] | no_license | birkin/bd_log_analysis | d1baf6375bb73ae615ece3ea006f2c78cca93574 | 59b46c92be5beb2fe88590a4d316e55901e6c2d8 | refs/heads/master | 2021-01-22T11:48:00.706991 | 2015-05-20T12:52:20 | 2015-05-20T12:52:20 | 35,901,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,048 | py | # -*- coding: utf-8 -*-
""" Compares new borrowdirect api results against current in-production deprecated code.
Parses logging added to controller that summarizes differences between new and old tunneler calls. """
import glob, json, os, pprint
class Analyzer( object ):
def __init__( self ):
self.... | [
"birkin.diana@gmail.com"
] | birkin.diana@gmail.com |
8b58e97d148a2a4044dc82a11131e9a37053dbee | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pbase/day10/jiangyi/day10/exercise/lambda2.py | 60afaa4052e86373221e016444b15042f5ec9539 | [] | no_license | zuigehulu/AID1811 | 581c3c7a37df9fa928bc632e4891fc9bafe69201 | 10cab0869875290646a9e5d815ff159d0116990e | refs/heads/master | 2020-04-19T16:33:04.174841 | 2019-01-30T07:58:24 | 2019-01-30T07:58:24 | 168,307,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # 2. 写一个lambda 表达式来创建函数,此函数返回两个参数的最大值
# def mymax(x, y):
# ...
# mymax = lambda .....
# print(mymax(100, 200)) # 200
# print(mymax("ABC", '123')) # ABC
mymax = lambda x,y:max(x,y)
print(mymax(100, 200)) # 200
print(mymax("ABC", '123')) # ABC
| [
"442315617@qq.com"
] | 442315617@qq.com |
d287f8c476b7d0115a839f5172afcaeee380108d | d8c07694387202f7c72b30ddc9fc7835637f2f96 | /faith_pms/forms.py | 4cb7682f59fae2453eab3b88c3b57f3418d842f3 | [] | no_license | shuvro-zz/Patient-Management-System-2 | 7f6c357dc64d4e81e1ca976a42b83f915ba7fee2 | f36db339b680e8bbdff1ef3d42ba07809e985bd1 | refs/heads/master | 2020-08-18T20:06:06.021595 | 2018-03-23T12:10:55 | 2018-03-23T12:10:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | from django import forms
from .models import Doctor, Patient, NextOfKin, Medicine, MedicalCover, AllergiesAndDirectives, Treatment
#......
class UpdateProfileForm(forms.ModelForm):
class Meta:
model = Doctor
fields = ('profile_photo', 'name', 'hospital', 'email', 'description', 'title')
class NewPa... | [
"biinewton382@gmail.com"
] | biinewton382@gmail.com |
6c96a3056472a5a6f6bfccf6a0a581f1dff5d3dc | c5bc4b7f885ca87804feb9cb7d416a6a4e9bed82 | /images/fish-u-quartlet-2.py | b16a5e56225a2e55790b47d4348de08d8ed10237 | [] | no_license | anandology/the-joy-of-programming | d3d4a439665d81bf499aabf127b04a5a5a9cd5bb | 231be9dc97fb8935f490237277d1cf16b28fe366 | refs/heads/master | 2023-01-23T07:45:25.811908 | 2020-12-06T12:34:14 | 2020-12-06T12:34:14 | 317,910,429 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py |
fish = get_fish(border=True)
fish2 = flip(rot45(fish))
u = over(
fish2, rot(fish2),
rot(rot(fish2)), rot(rot(rot(fish2)))
)
x = quartlet(u, u, u, u)
y = quartlet(x, x, x, x)
show(y, scale=True)
| [
"anandology@gmail.com"
] | anandology@gmail.com |
48ffe60aba4596db17b05c747beb4dd394451e84 | 6edd5a50f07843de18175c04796348f7fdc4f74d | /Python/simrank.py | 6016316641b030b8fa58298c85fdf50013b95b5c | [] | no_license | rogergranada/_utilsdev | 4f14a1e910103c33e3a8e820bb3e55483bd27e69 | 977a8d98a6934b9354ec233da6e0ef31621282f3 | refs/heads/master | 2021-06-01T17:07:14.773949 | 2020-10-22T22:06:43 | 2020-10-22T22:06:43 | 124,608,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | import copy
from collections import defaultdict
def simrank(G, r=0.9, max_iter=100):
sim_old = defaultdict(list)
sim = defaultdict(list)
for n in G.nodes():
sim[n] = defaultdict(int)
sim[n][n] = 1
sim_old[n] = defaultdict(int)
sim_old[n][n] = 0
# recursively calculate s... | [
"roger.leitzke@gmail.com"
] | roger.leitzke@gmail.com |
b823f84539a45d2ea8af50cf386fc0f68d48c289 | 2b45cbccd03fb09be78b2241d05beeae171a2e18 | /LeetCode 热题 HOT 100/letterCombinations.py | 23b65251a336177d70ae1440f8769a587bcc6b62 | [
"Apache-2.0"
] | permissive | MaoningGuan/LeetCode | c90f78ce87a8116458a86c49dbe32e172036f7b4 | 62419b49000e79962bcdc99cd98afd2fb82ea345 | refs/heads/master | 2023-01-03T14:52:04.278708 | 2020-11-01T12:15:41 | 2020-11-01T12:15:41 | 282,859,997 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | # -*- coding: utf-8 -*-
"""
17. 电话号码的字母组合
给定一个仅包含数字 2-9 的字符串,返回所有它能表示的字母组合。
给出数字到字母的映射如下(与电话按键相同)。注意 1 不对应任何字母。
https://assets.leetcode-cn.com/aliyun-lc-upload/original_images/17_telephone_keypad.png
示例:
输入:"23"
输出:["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"].
说明:
尽管上面的答案是按字典序排列的,但是你可以任意选择答案输出的顺序。
"""
fro... | [
"1812711281@qq.com"
] | 1812711281@qq.com |
a7034ac4e883245f425483f76977c4b5f25b3a3b | 3be95bfd788472dfd73826c6214355788f05f2cc | /rest_framework_swagger/urlparser.py | a6e3ce1f28bfbef884c7eead592e44bdaf2f9a8c | [] | no_license | pleasedontbelong/mystore | a2acba4d3b8dd070471139dfddc5baa5f54393c0 | 8e156f4c9c5d6cd273dfbbd57eb90c65c3986e9f | refs/heads/master | 2020-12-31T03:26:27.074955 | 2016-11-09T23:14:01 | 2016-11-09T23:14:01 | 56,080,261 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,362 | py | from importlib import import_module
from django.core.urlresolvers import RegexURLResolver, RegexURLPattern
from django.contrib.admindocs.views import simplify_regex
from django.conf import settings
from rest_framework.views import APIView
class UrlParser(object):
def __init__(self, config, request):
sel... | [
"pleasedontbelong@gmail.com"
] | pleasedontbelong@gmail.com |
dd1b73525526e6198b35c04f116baf278eed4316 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/6b4c314f44d841bbb2b4d39674eb65c3.py | e9fd5ef53db94a80a06e2239ef9d865b8e7e86d3 | [] | 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 | 166 | py | def is_leap_year(year):
if type(year) != int: return "Not a year."
if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0:
return True
else:
return False
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
7852381fd94bab144af4ccb32cb16d716772262b | ce0a3a73c7825f7327b8319fb2593b6b01659bb0 | /mysite/mysite/settings.py | cd4b00fbac4cb694ac71bec09ea83e0b482d97fd | [] | no_license | soccergame/deeplearning | 28b0a6ed85df12e362b3a451050fab5a2a994be7 | cbc65d3eba453992a279cfd96a9d3640d8fe6b9f | refs/heads/master | 2020-03-28T22:38:26.085464 | 2018-08-31T11:22:39 | 2018-08-31T11:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.14.
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... | [
"18811442380@163.com"
] | 18811442380@163.com |
83f8896cb49a3f55ad7b3291aaa0ac1a5e0330fb | 59a8c7b332c2cd182c9267cfcc5a4d0c3d4edb59 | /convert_to_onnx.py | d8669511953448ba8c4ce443d25a56a72616e252 | [
"MIT"
] | permissive | QLHua001/bsj_retinaface_train_2 | ffce230f50e9b0709c0a77200d4070f52624c8de | 4ac72ffee38779876aff4acd2577f5e8b20470fc | refs/heads/main | 2023-06-06T07:39:54.522042 | 2021-06-26T02:33:32 | 2021-06-26T02:33:32 | 380,394,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,377 | py | from __future__ import print_function
import os
import argparse
import torch
import torch.backends.cudnn as cudnn
import numpy as np
from data import cfg_mnet, cfg_re50
from layers.functions.prior_box import PriorBox
from utils.nms.py_cpu_nms import py_cpu_nms
import cv2
from models.retinaface import RetinaFace
from ut... | [
"gogs@fake.local"
] | gogs@fake.local |
8cfe933c73e083c3c4df4862e73b9e2e558780e8 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /2014/codefestival/thanksb/d.py | 6f6c56dc67aa702914e96ae0c45553f0234736fc | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | N,T = map(int,raw_input().split())
A = [int(raw_input()) for _ in range(N)]
ans = 0
for t in range(1,T+1):
tmp = sum(1 for i in range(N) if t%A[i] == 0)
ans = max(ans,tmp)
print ans
| [
"roiti46@gmail.com"
] | roiti46@gmail.com |
f38803a4c4eb6386cc7d3348d9d2bc33e9cda9dd | 4de03eecadc4c69caf792f4773571c2f6dbe9d68 | /seahub/api2/endpoints/admin/file_audit.py | d8968ed22469ef16846f9475a1ba6b1103a19aff | [
"Apache-2.0"
] | permissive | Tr-1234/seahub | c1663dfd12f7584f24c160bcf2a83afdbe63a9e2 | ed255e0566de054b5570218cb39cc320e99ffa44 | refs/heads/master | 2022-12-23T16:20:13.138757 | 2020-10-01T04:13:42 | 2020-10-01T04:13:42 | 300,138,290 | 0 | 0 | Apache-2.0 | 2020-10-01T04:11:41 | 2020-10-01T04:11:40 | null | UTF-8 | Python | false | false | 2,138 | py | from rest_framework.authentication import SessionAuthentication
from rest_framework.permissions import IsAdminUser
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import status
from seaserv import seafile_api
from .utils import check_time_period_valid, \
g... | [
"colinsippl@gmx.de"
] | colinsippl@gmx.de |
341ea1610a3b5ed9e737b2c4b2bbc9bd7ceb736f | 549317bc0a7230ec163914c75f75dd008900c57b | /pyroomacoustics/tests/tests_libroom/test_ccw3p.py | 1c037631a6a39a0deba7194dbded459392295e0b | [
"MIT"
] | permissive | oucxlw/pyroomacoustics | 0bb633427cd7ce3e93392cdc9d0bc3afc5f2dbf3 | 0adc91579c9c6daf1b73d2c4863a9fc66b308dbb | refs/heads/master | 2023-06-17T17:43:49.743201 | 2021-07-21T05:36:46 | 2021-07-21T05:36:46 | 288,884,904 | 1 | 0 | MIT | 2021-07-21T05:36:47 | 2020-08-20T02:22:54 | Python | UTF-8 | Python | false | false | 2,575 | py | # Test of the CCW3P routine
# Copyright (C) 2019 Robin Scheibler, Cyril Cadoux
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
... | [
"fakufaku@gmail.com"
] | fakufaku@gmail.com |
f835cfa380b740abef9cdc32dc9ca46d5a6b1db0 | cc6ea4b0422ba4c0d0ab2815333330b22e6a2b6f | /py_headless_daw/processing/event/envelope_param_value_emitter.py | 03b96a541bf18c17983d069972fc8bf8f0ac8f40 | [
"MIT"
] | permissive | Catsvilles/py_headless_daw | 07494e39a07510d852af1eda1d611eb34e4d96a8 | 596d2da39e14cda13544601b71714a8ebe6b8874 | refs/heads/master | 2022-11-05T12:28:18.335337 | 2020-06-18T08:14:00 | 2020-06-18T08:14:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | from typing import List
import numpy as np
from em.platform.rendering.dto.time_interval import TimeInterval
from em.platform.rendering.primitives.envelope import Envelope
from em.platform.rendering.schema.events.event import Event
from em.platform.rendering.schema.events.parameter_value_event import ParameterValueEve... | [
"grechin.sergey@gmail.com"
] | grechin.sergey@gmail.com |
5dd3d6567d4a2ec9f3f1a5da2e2856a9b40aa58f | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/24743e5cdca47da694bad41b1c623c1fb6f76d96-<storage_client>-fix.py | cf3c119ef92e771508a7688684103ed9eed03cc2 | [] | 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 | 312 | py | @property
def storage_client(self):
self.log('Getting storage client...')
if (not self._storage_client):
self._storage_client = self.get_mgmt_svc_client(StorageManagementClient, base_url=self._cloud_environment.endpoints.resource_manager, api_version='2017-06-01')
return self._storage_client | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
9d22ea778fb77968652fa8f01e3e11aeb552d468 | 8ab7e102c01d436f37ad221802f601f2206b59a8 | /Tray.py | 8be528c31afbe961604a27f970b2104009cdcb7d | [] | no_license | shanto268/muon_simulator | 9900129fd0fab418b53002cde47191ac667ace36 | c80812edb1800720570b8d3b792a46f7c83f3cbb | refs/heads/master | 2023-02-17T17:33:37.099252 | 2021-01-16T18:56:25 | 2021-01-16T18:56:25 | 330,234,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | import matplotlib.pyplot as plt
import numpy as np
class Tray:
"""Docstring for Tray. """
def __init__(self, nbarx, nbary, bar_size, z_pos):
"""TODO: to be defined.
:nbarx: TODO
:nbary: TODO
:bar_size: TODO
:z_pos: TODO
:tray_id: TODO
"""
self.... | [
"sadman-ahmed.shanto@ttu.edu"
] | sadman-ahmed.shanto@ttu.edu |
9a616dfa2333cd6ed238d4d246c059e82877b52b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03072/s215726876.py | ace993f320aeb75bab4c12c97f84521fdf740fd3 | [] | 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 | 140 | py | n = int(input())
a = list(map(int,input().split()))
k = -1
ans = 0
for i in a :
if (k <= i):
ans += 1
k = i
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2cc4855a8aab578a5cd1e23e4c2ac49e1815d8c6 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /dp_multiq/smooth.py | 00ee23c34be2fbb33604d1da53a84bde719e8fa4 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,302 | py | # coding=utf-8
# Copyright 2023 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
4f776f4688760e7bdf2e1608574bf13a02b8c879 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/84/usersdata/224/52670/submittedfiles/lista1.py | 406d010dc5782205ffb282a4d8df23827cd7c80d | [] | 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 | 505 | py | # -*- coding: utf-8 -*-
def funçao(lista):
cont=0
cont2=0
soma2=0
soma=0
for i in range(0,len(lista),1):
if lista[i]%2!=0:
cont=cont+1
soma=soma+lista[i]
else:
soma2=soma2+1
cont2=cont2+1
return cont
return cont2
return soma... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f52ff10a37130d0173b23d7ea2e9932e6209ca88 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03317/s687010919.py | 6fd7ffb65d80691f364264801e1f5e0043da55f5 | [] | 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 | 285 | py | import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
import math
import collections
MOD = 10**9+7
MAX = 10**18
MIN = -10**18
n,k = map(int,input().split())
a = list(map(int,input().split()))
print(math.ceil((n-1)/(k-1))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
579a281ff5e8d5080677b812effa12d2b3b09d5f | 44e8285d6851e8e709f124acc490c714578ece68 | /app/recipe/tests/test_tags_api.py | 76ca7c39f7ade31e57dacb543544686456c0c83d | [
"MIT"
] | permissive | alanclaros/recipe-app-api | 628445c41eab175be8472294fbe9f6a1e1971add | 4434209772bdb0d785796ec65d631100ee2d6843 | refs/heads/master | 2022-08-01T20:35:28.539951 | 2020-05-24T18:33:26 | 2020-05-24T18:33:26 | 265,684,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,530 | py | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Tag
from recipe.serializers import TagSerializer
TAGS_URL = reverse('recipe:tag-list')
class PublicTa... | [
"alan_claros13@hotmail.com"
] | alan_claros13@hotmail.com |
16e899a2352d374fe7ac99c47ee632c96186479d | 37194bcee20e66e84360010d98a45adcced57963 | /02_PS_I/00_pascals_triangle/2005_pascals_triangle.py | 95f53393c42adbb1cf009aec1daaa6c22326f7c2 | [] | no_license | dmdekf/algo | edcd1bbd067102a622ff1d55b2c3f6274126414a | 544a531799295f0f9879778a2d092f23a5afc4ce | refs/heads/master | 2022-09-13T14:53:31.593307 | 2020-06-05T07:06:03 | 2020-06-05T07:06:03 | 237,857,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import sys
sys.stdin = open('input.txt')
T = int(input())
for tc in range(1, T+1):
print('#{} '.format(tc))
N = int(input())
tmp = []
result = [1]
print(1)
# temp = []일경우 for문 처음은 돌아가지 않고 temp에 result가 대입된 후 두번째행부터 포문 실행.
for i in range(N-1):
result = [1]
for j in range(i)... | [
"dmdekf@gmail.com"
] | dmdekf@gmail.com |
b083bff66cdb6a9442d1c4e864a68d3db574d737 | 557a5e8ac000718959281d1d31da8e1e4947a155 | /examples/translating_a_file.py | d77465a93203a15d5376b62e0dcbe45e1aa21447 | [
"MIT"
] | permissive | PiotrDabkowski/Js2Py | 66f20a58912d2df719ce5952d7fe046512717d4d | 2e017b86e2f18a6c8a842293b1687f2ce7baa12e | refs/heads/master | 2023-08-17T08:47:00.625508 | 2022-11-06T09:56:37 | 2022-11-06T10:12:00 | 24,736,750 | 2,419 | 318 | MIT | 2023-08-03T18:06:40 | 2014-10-02T21:08:48 | JavaScript | UTF-8 | Python | false | false | 886 | py | import js2py
# there are 2 easy methods to run js file from Js2Py
# Method 1:
eval_result, example = js2py.run_file('example.js')
# Method 2:
js2py.translate_file('example.js', 'example.py') # this translates and saves equivalent Py file
from example import example # yes, it is: import lib_name from lib_name
###... | [
"piodrus@gmail.com"
] | piodrus@gmail.com |
fd1311d8e71ac932322f58c81588dc5b61c5c3b7 | 34de2b3ef4a2478fc6a03ea3b5990dd267d20d2d | /Python/plotting/plotting1/polarPlotting/circle/using_function.py | 20830fc34fff99d77824caa09a7a93d271124a56 | [
"MIT"
] | permissive | bhishanpdl/Programming | d4310f86e1d9ac35483191526710caa25b5f138e | 9654c253c598405a22cc96dfa1497406c0bd0990 | refs/heads/master | 2020-03-26T06:19:01.588451 | 2019-08-21T18:09:59 | 2019-08-21T18:09:59 | 69,140,073 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author : Bhishan Poudel
# Date : Apr 01, 2016
# Imports
import matplotlib.pyplot as plt
import numpy as np
def xy(r,phi):
return r*np.cos(phi), r*np.sin(phi)
fig = plt.figure()
ax = fig.add_subplot(111,aspect='equal')
phis=np.arange(0,6.28,0.01) # 2pi = 6.28
... | [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
ca4f212c3ddc1bf31eec951c5286cc6ffc708e07 | 27398b2a8ed409354d6a36c5e1d2089dad45b4ac | /backend/admin/setup.py | cbca0ce536eb06ebf9c7b662c3d19799d6e8c7b6 | [
"Apache-2.0"
] | permissive | amar266/ceph-lcm | e0d6c1f825f5ac07d2926bfbe6871e760b904340 | 6b23ffd5b581d2a1743c0d430f135261b7459e38 | refs/heads/master | 2021-04-15T04:41:55.950583 | 2018-03-23T12:51:26 | 2018-03-23T12:51:26 | 126,484,605 | 0 | 0 | null | 2018-03-23T12:50:28 | 2018-03-23T12:50:27 | null | UTF-8 | Python | false | false | 2,358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2016 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | [
"sarkhipov@mirantis.com"
] | sarkhipov@mirantis.com |
5b72a3bf4afaf327b4f303040f4616e683291caa | 0204dc09d72da99fb35968f493e9499106be7dca | /BasicPython/codes/temploop/index.py | 109e5f907746e838c4501989b3563048baddf21f | [] | no_license | jamesblunt/ITArticles | 4b95a5586b3158672a05c76ea97c4c1c0f1190a2 | 5c1fc6e64ce32bf0143488897ae37bb10a52df91 | refs/heads/master | 2021-01-22T14:39:48.233415 | 2014-11-03T10:15:16 | 2014-11-03T10:15:16 | 26,259,126 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | #! /usr/bin/env python
#-*- coding:utf-8 -*-
import os.path
import tornado.httpserver
import tornado.ioloop
import tornado.web
import tornado.options
from tornado.options import define, options
define("port", default=8000, help="run on the given port", type=int)
class IndexHandler(tornado.web.RequestHandler):
de... | [
"qiwsir@gmail.com"
] | qiwsir@gmail.com |
adc32f48782610a4a73107a6acc7052b70daad5b | 7c54b892aec3fd9241ee0d134a093a01b4f0c2e6 | /server/pvwproxy/server/__init__.py | eeaa3dc3c079e4cde488826c113d11f2e71aea1a | [
"Apache-2.0"
] | permissive | Cloudydew/HPCCloud | f75861e653d55ac4bdf668be95baa489397c0f75 | 692e270420c9c681c38e6346c19a9df4a7268a07 | refs/heads/master | 2020-04-12T19:16:00.174809 | 2018-04-05T17:47:11 | 2018-04-05T17:47:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright 2015 Kitware Inc.
#
# 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 cop... | [
"chris.harris@kitware.com"
] | chris.harris@kitware.com |
9d348c74cfa0509c0a01aa7f0a597a277a85211d | 11a0fab712b139bcba9e90f6acdc7597dff68dbb | /mestrado/ppgmcs/m07-elaboracao-de-dissertacao-i/projeto/codigo/teste1/parametros/cadastrarturmas.py | 98f78e068419fccbd2707980275f28f217c91717 | [] | no_license | fapers/MeusTreinamentos | 17ba096d518df533433ae2528b70d18717f3cf96 | 32a6b791b0c3dbb8b29ffd177597919e768b09b5 | refs/heads/master | 2023-06-04T14:00:37.847808 | 2021-06-28T02:37:11 | 2021-06-28T02:37:11 | 292,962,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | from bancodados.modelo import Turma
# Cadastrar todas as turma da escola
# Nome, Nível, Turno, Número de aulas por semana
# Nível 16 é o 6º ano do ensino fundamental
# Nível 17 é o 7º ano do ensino fundamental
# Nível 18 é o 8º ano do ensino fundamental
# Nível 19 é o 97º ano do ensino fundamental
# Nível 21 é o 1º a... | [
"fpsmoc@yahoo.com.br"
] | fpsmoc@yahoo.com.br |
053bd60526c036a98495e45eb02c3f6d5bd9d452 | ecd630f54fefa0a8a4937ac5c6724f9a3bb215c3 | /projeto/emprestimo/migrations/0008_auto_20200516_2138.py | b43edde81f941e7f9a7ebe225aff2c97d42e02e4 | [] | no_license | israelwerther/Esctop_Israel_Estoque | 49968751464a38c473298ed876da7641efedf8de | d6ab3e502f2a97a0d3036351e59c2faa267c0efd | refs/heads/master | 2023-01-07T20:21:38.381593 | 2020-11-12T17:35:14 | 2020-11-12T17:35:14 | 258,642,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Generated by Django 3.0.5 on 2020-05-16 21:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('emprestimo', '0007_remove_emprestimo_datetime'),
]
operations = [
migrations.AlterModelOptions(
name='emprestimo',
options={... | [
"israelwerther48@outlook.com"
] | israelwerther48@outlook.com |
1ec51963bbc5d440bca3ef080c9ca0c7a669dd12 | 99f6c5b7a6b6840163b32d633e658678d5829b46 | /practice/leetcode/algorithm/295_NimGame.py | c5eee37e98f68ac5e3d5cd09b891f4cc40a0854a | [] | no_license | aliceayres/leetcode-practice | 32f2695a567317013b567a68863f2c95c75b438b | 0743cbeb0e9aa4a8a25f4520a1e3f92793fae1ee | refs/heads/master | 2021-06-02T15:11:29.946006 | 2020-02-06T04:06:55 | 2020-02-06T04:06:55 | 131,126,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | """
292. Nim Game
You are playing the following Nim Game with your friend: There is a heap of stones on the table,
each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will
be the winner. You will take the first turn to remove the stones.
Both of you are very clever and have optim... | [
"yeziqian@ctsig.com"
] | yeziqian@ctsig.com |
2e694107b84f48482c364a4d684d0bae288ffd4d | 8fa191cd4a67431a04eff62d35122ee83cc7b0af | /bookwyrm/migrations/0143_merge_0142_auto_20220227_1752_0142_user_hide_follows.py | b36fa9f9c491bd522697b8a4626c47e3c6ab624c | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | bookwyrm-social/bookwyrm | 24678676a7a58dba96641194dfae3fffbf01574d | 0f8da5b738047f3c34d60d93f59bdedd8f797224 | refs/heads/main | 2023-08-20T21:45:30.957277 | 2023-08-19T23:41:50 | 2023-08-19T23:41:50 | 236,415,735 | 1,398 | 216 | NOASSERTION | 2023-09-08T20:43:06 | 2020-01-27T03:51:54 | Python | UTF-8 | Python | false | false | 270 | py | # Generated by Django 3.2.12 on 2022-02-28 21:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("bookwyrm", "0142_auto_20220227_1752"),
("bookwyrm", "0142_user_hide_follows"),
]
operations = []
| [
"mousereeve@riseup.net"
] | mousereeve@riseup.net |
2949520275b4940d93e7ccbc937e113936d50e93 | bad9d42860b9c85bf7316cad108cc6ff071bb705 | /tensorflow_estimator/python/estimator/canned/linear_test.py | 3fac9c57415b5a20acb924ed7d7e73c181871496 | [
"Apache-2.0"
] | permissive | tensorflow/estimator | 1a7e469608094f17bece71867c01f22d51d28080 | 359acd5314462c05ef97f9a820d4ace876550c7e | refs/heads/master | 2023-08-17T09:54:38.668302 | 2023-08-04T00:01:29 | 2023-08-04T00:02:02 | 143,069,012 | 331 | 249 | Apache-2.0 | 2023-09-06T21:19:22 | 2018-07-31T20:55:45 | Python | UTF-8 | Python | false | false | 7,789 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5b9fad623f650cdb47cb01210f6c4dfeb85a775b | b37b39ed5f4af5bf1455d200976b7e83b2888cab | /src/sensors_apps/workers/event_logger.py | d1b3143663554d2da3ce4e683bbd7d54d39f86f7 | [] | no_license | jldupont/sensors-apps | 71c67ce3a5226411685bd89ad4dd65590ba455ed | cdc930ed18c4a6ab0c55ceea24d765a00b649a0e | refs/heads/master | 2021-01-25T03:54:26.022483 | 2010-03-03T20:24:36 | 2010-03-03T20:24:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,326 | py | """
@author: jldupont
Created on 2010-03-03
"""
__all__=[]
from system.mbus import Bus
from system.worker import WorkerClass, WorkerManager
from system.amqp import AMQPCommRx
class AmqpListenerAgent(WorkerClass):
"""
"""
EXCH="org.sensors"
RKEY="state.io.#"
def __init__(self, confi... | [
"github@jldupont.com"
] | github@jldupont.com |
5a0cca812ad7e8c9c393f058d8056c663951a197 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/pandas/tests/arrays/test_array.py | 5c0cf0147c8d8dd41430888dd8c4ec491f63c637 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c10e1eac29b51da09a84897d1e569c85604c251b75ab5162ca2142102cf54674
size 12601
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
5232c8c1d73ead0f086fcec3d0368fe12341dd5c | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /mrrKngM2fqDEDMXtS_0.py | f5c5ee5871ccd936356d15e43beec5e361c917a5 | [] | 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 | 281 | py |
def can_patch(bridge, planks):
b = ''.join(str(i) for i in bridge)
holes = [len(i) for i in b.split('1')]
if all(i<=1 for i in holes):
return True
elif all(planks.count(i-1) + planks.count(i)>=holes.count(i) for i in holes if i>1):
return True
return False
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9764ca21187a78fb9872c99429d46e64c77f15ee | f62e4c46fb0f98879fb63977fa29631b02e3928c | /15 задание/Неравенства_009.py | b2bc0ff150714baa3cfe5be28d8e3cd6b0939094 | [] | no_license | SeveralCamper/USE-2020-2021 | c34f4d7a2c3e0f51529141781f523b63242a835d | ac1122649f2fd431a91af5dda5662492e2565109 | refs/heads/master | 2023-09-03T13:36:05.822568 | 2021-10-27T12:54:10 | 2021-10-27T12:54:10 | 392,303,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Задание 15 № 16045
# Для какого наибольшего целого неотрицательного числа A выражение
# (y + 2x ≠ 48) ∨ (A < x) ∨ (A < y)
# тождественно истинно, то есть принимает значение 1 при любых целых неотрицательных x и y?
A = 1
while True:
for x in range(1,1000):
for y in range(1, 1000):
if not((y + ... | [
"mikha.alkhimovich@mail.ru"
] | mikha.alkhimovich@mail.ru |
788d599d353ccd9b4e3f54de3dc812e97de6ad65 | 96e0dd08563b1f579992c14207d103ee80222b1b | /0408/MR_ACT_TIPS_CLOSE.py | dfa55827fd59522ce3b45c0fbef414e64f266327 | [] | no_license | tonygodspeed/pytest | 4030e21f3206e3c5cb58aac870e3a1a57cd6943d | 2e87b91c148ff6966096bb8b197c0a84f5a1e7e2 | refs/heads/master | 2020-04-02T13:14:20.811887 | 2018-10-24T09:00:57 | 2018-10-24T09:00:57 | 154,472,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | #!/usr/bin/env python
# coding=utf8
from MR_BASE import *
reload(sys)
sys.setdefaultencoding("utf-8")
str_act = "ACT_TIPS_CLOSE"
class MR_ACT_TIPS_CLOSE(mr_base):
def __init__(self):
mt_type = [
{'key': 'DISVER', 'type': 's', 'mt': r'.*DISVER:' + common_def.MT_VALUE_INVALID_POSTFIX},
{'key': 'VER', 'type':... | [
"412291198@qq.com"
] | 412291198@qq.com |
278032d631fba53001449d91e03a872faa35bca7 | 7300fc72162568f886e04509431359a62a09da79 | /lino_xl/lib/invoicing/fixtures/demo.py | 71831baa9fb747e6c2a93c3f3faffa9c31c2133a | [
"BSD-2-Clause"
] | permissive | forexblog/xl | ad27aa1e9f5669f8a78ec55f4b7d0bd952da6327 | 130303647d01c0d8271f770f3054907c183dc1e8 | refs/heads/master | 2023-03-04T01:44:39.485452 | 2021-02-13T08:18:16 | 2021-02-13T08:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # -*- coding: UTF-8 -*-
# Copyright 2019 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
from lino.api import dd, rt, _
def DEP(name, **kwargs):
kwargs = dd.str2kw('designation', name, **kwargs)
# kwargs.update(designation=name)
return rt.models.invoicing.Area(**kwargs)
def objects():
... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
ae19267c6dda3313c40bbe157565655c4a567a5d | 56b63ee537f872af0fc028016d1508b4c1dd5c60 | /school/migrations/0283_auto_20210430_1342.py | dacf5ab3f5b6d36ae57960a11a16a4d70f68b1f3 | [] | no_license | jacknjillsolutionsrevanth/EMS1 | 01fc571120f765b0fbfe3aa654b15ff578d6e9b9 | db14d8e6c15669b5938aa9276c5e22006218814a | refs/heads/main | 2023-08-03T19:40:50.073133 | 2021-10-01T07:02:37 | 2021-10-01T07:02:37 | 410,202,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # Generated by Django 3.2 on 2021-04-30 08:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0282_rpt_dailydata'),
]
operations = [
migrations.AlterField(
model_name='rpt_dailydata',
name='sampno',
... | [
"jacknjillsolutions.revanth@gmail.com"
] | jacknjillsolutions.revanth@gmail.com |
a895ffff2e8eef3681fcd33e7078e5fe1d048327 | 56014da6ebc817dcb3b7a136df8b11cf9f976d93 | /Python基础笔记/12-tkinter图形界面/25.鼠标点击事件.py | 78be4991790e176ac02a8f6d5493e2c7c805b998 | [] | no_license | sunday2146/notes-python | 52b2441c981c1106e70a94b999e986999334239a | e19d2aee1aa9433598ac3c0a2a73b0c1e8fa6dc2 | refs/heads/master | 2022-01-12T22:55:45.401326 | 2019-01-18T03:18:26 | 2019-01-18T03:18:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import tkinter
#创建主窗口
win = tkinter.Tk()
#设置标题
win.title("sunck")
#设置大小和位置
win.geometry("400x400+200+200")
def func(event):
print(event.x,event.y)
#<Button-1> 鼠标左键
#<Button-2> 鼠标中键 滑轮
#<Button-3> 鼠标右键
#<Double-Button-1> 鼠标左键双击
#<Triple-Button-1> 鼠标左键三击
button1 = tkinter.Button(win,text = "leftMouse button")
#... | [
"964640116@qq.com"
] | 964640116@qq.com |
2e2fa323eea5fc934489a50ee7d2abd689370fc0 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/SSD_for_PyTorch/configs/lvis/mask_rcnn_x101_64x4d_fpn_sample1e-3_mstrain_2x_lvis_v0.5.py | 8db3bebe5c1db6d3d139f2718d06141af12b6c16 | [
"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 | 1,034 | py | # Copyright 2022 Huawei Technologies Co., Ltd.
# 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 agreed... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
5e2fabfb02162670a52913d64f726d0eb8816046 | 1aebf8a65f27304a135748683cd100b648b816fc | /easydoc/wsgi.py | 8ee0729e30a3a0d708770b13c2992e6ca098d826 | [] | no_license | Shatki/easydoc | 5e16f31ded11ca123d820c34c525a6edd1f8cbfa | eee96f6857c6486ef16c4eb7b4822f12a160d1a9 | refs/heads/master | 2020-04-18T06:19:35.896596 | 2019-02-18T05:50:12 | 2019-02-18T05:50:12 | 167,315,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for easydoc 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_SETTI... | [
"Shatki@mail.ru"
] | Shatki@mail.ru |
d718b9f7eb54f07326e127b321bdd783d7613634 | 4a83d8f34a50aea012491058925296fdc3edac0d | /pandasdmx/tests/test_remote.py | 36f3a6f035b4ff2ea6f8329e467fea639c3e5ce0 | [
"Python-2.0",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | openpolis/pandaSDMX | 8af55fd24272ee359fd6700414258101b5a948f2 | 0c4e2ad0c25a63d2bcb75703e577d2723162a9b5 | refs/heads/master | 2020-05-30T14:20:10.821106 | 2020-04-05T22:54:55 | 2020-04-05T22:54:55 | 189,787,828 | 0 | 0 | Apache-2.0 | 2019-06-02T00:08:58 | 2019-06-01T23:55:55 | Python | UTF-8 | Python | false | false | 785 | py | import pytest
from pandasdmx.remote import Session
from . import has_requests_cache
@pytest.mark.skipif(has_requests_cache, reason='test without requests_cache')
def test_session_without_requests_cache(): # pragma: no cover
# Passing cache= arguments when requests_cache is not installed triggers a
# warnin... | [
"mail@paul.kishimoto.name"
] | mail@paul.kishimoto.name |
96d51106afa543e4c0fa9dd52a64b843819f1c4e | 23130cd12e38dbce8db8102810edaad70b240ae2 | /lintcode/604.py | 87ad2b4e294171a68625eef8adc80e2ab6a38d0d | [
"MIT"
] | permissive | kangli-bionic/algorithm | ee6687c82101088db20f10fb958b4e45e97d3d31 | c3c38723b9c5f1cc745550d89e228f92fd4abfb2 | refs/heads/master | 2023-01-05T09:29:33.204253 | 2020-10-25T17:29:38 | 2020-10-25T17:29:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | """
604. Window Sum
https://www.lintcode.com/problem/window-sum/description
"""
class Solution:
"""
@param nums: a list of integers.
@param k: length of window.
@return: the sum of the element inside the window at each moving.
"""
def winSum(self, nums, k):
n = len(nums)
right ... | [
"hipaulshi@gmail.com"
] | hipaulshi@gmail.com |
252e619211ed66f1c15ae2ad2e998cdfb7eb987a | a8289cb7273245e7ec1e6079c7f266db4d38c03f | /Django_Viewsets_RESTAPI/Viewsets_RESTAPI/urls.py | 4fc6746613611cd39c4e03d1f948db1a31cf403b | [] | no_license | palmarytech/Python_Snippet | 6acbd572d939bc9d5d765800f35a0204bc044708 | 41b4ebe15509d166c82edd23b713a1f3bf0458c5 | refs/heads/master | 2022-10-06T22:51:00.469383 | 2020-03-13T08:32:11 | 2020-03-13T08:32:11 | 272,350,189 | 1 | 0 | null | 2020-06-15T05:30:44 | 2020-06-15T05:30:44 | null | UTF-8 | Python | false | false | 1,449 | py | """Viewsets_RESTAPI URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"leamon.lee13@gmail.com"
] | leamon.lee13@gmail.com |
5837f376ec08bb98bb6bcdad25b085acba191a75 | 8dbc30ab4f0c76bfc08784a6e06b68cae61888a7 | /collective/fbshare/browser/view.py | c2f66ea6010a51dbbeb56be090b22a4499fd00fd | [] | no_license | RedTurtle/collective.fbshare | 11d19b5ab91b7ae728d3602b30d0f1b9bec3fe1a | 66d8a5092a31a23d6b508c8fb23c19da548d7c2f | refs/heads/master | 2021-07-11T13:36:37.216587 | 2016-04-19T06:56:13 | 2016-04-19T06:56:13 | 5,167,545 | 1 | 2 | null | 2021-03-25T13:55:45 | 2012-07-24T15:39:35 | Python | UTF-8 | Python | false | false | 934 | py | # -*- coding: utf-8 -*-
from collective.fbshare.interfaces import IFbShareSettings
from plone.registry.interfaces import IRegistry
from Products.Five.browser import BrowserView
from zExceptions import NotFound
from zope.component import queryUtility
class ShareDefaultImage(BrowserView):
"""Return a bytestream wi... | [
"luca@keul.it"
] | luca@keul.it |
1ac4d89906a70db4ec6a361cbe5ae3f6b506fe00 | 12ee4c670e3be681376b07af291c22175b680447 | /videos/migrations/0002_video_category.py | 32a4b76909e59df49cff7196d5ca3d8c4321a06e | [] | no_license | chayan007/miworld | b1cd0febac40d665e8925fea5872df8f27456f05 | 969c551acbd9b3872988756aa4bbab7f42a990cc | refs/heads/master | 2022-12-11T08:37:22.173629 | 2019-02-24T12:19:33 | 2019-02-24T12:19:33 | 172,792,993 | 0 | 0 | null | 2022-11-22T03:22:19 | 2019-02-26T21:25:19 | JavaScript | UTF-8 | Python | false | false | 384 | py | # Generated by Django 2.1.4 on 2019-02-04 10:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('videos', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='video',
name='category',
fie... | [
"sonicxxx7@gmail.com"
] | sonicxxx7@gmail.com |
a749526e7102540e5a156df975af7fdbfaa9190d | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /070_oop/001_classes/_exercises/_templates/Python_3_Deep_Dive_Part_4/Section 14 Metaprogramming/156. Metaprogramming Application 2.py | ff9aa57dd6c6305e1ed6ad98c8b863c7473ec381 | [] | 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 | 7,619 | py | # %%
'''
### Metaprogramming - Application 2
'''
# %%
'''
There's another pattern we can implement using metaprogramming - Singletons.
'''
# %%
'''
If you read online, you'll see that singleton objects are controversial in Python.
I'm not going to get into a debate on this, other than to say I do not use singleton o... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
176397951d78145067e5b871383ecc4d42840ee2 | 05ba1957e63510fd8f4f9a3430ec6875d9ecb1cd | /.history/fh/c_20200819004934.py | 6424d258230e0c58a1cdbfe7cdc81b12ec0b9785 | [] | no_license | cod-lab/try | 906b55dd76e77dbb052603f0a1c03ab433e2d4d1 | 3bc7e4ca482459a65b37dda12f24c0e3c71e88b6 | refs/heads/master | 2021-11-02T15:18:24.058888 | 2020-10-07T07:21:15 | 2020-10-07T07:21:15 | 245,672,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | import fileinput as fi
import requests as r
import pprint as p
import sys as s
# Get Current List
def read_file(file,current_list):
with open(file,'r') as f:
for i, line in enumerate(f):
if 37<i<43:
current_list[i] = line # current_list[i] = current_list[i][:-1] ... | [
"arihant806@gmail.com"
] | arihant806@gmail.com |
c7d7aa6f65faeb715e9af1f895734602000e741c | df3c8c521a51f2b412118bd9d0e477da06a3b7cc | /views/get_reactions_to_post/tests/test_case_01.py | e8cc5b4a38bcf767434778e105fc1ab98edd39e3 | [] | no_license | bharatmudragada/fb_post | c30b900731db5844df6b438e5d38a0dfb607412a | c5e7bb185a561bdcfcd7b2e30264554b07106044 | refs/heads/master | 2020-06-21T04:05:22.296755 | 2019-07-17T07:48:22 | 2019-07-17T07:48:22 | 197,339,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | """
# TODO: Update test case description
"""
from django_swagger_utils.utils.test import CustomAPITestCase
from . import APP_NAME, OPERATION_NAME, REQUEST_METHOD, URL_SUFFIX
REQUEST_BODY = """
"""
TEST_CASE = {
"request": {
"path_params": {"post_id": "ibgroup"},
"query_params": {},
"head... | [
"bharathmudragada123@gmail.com"
] | bharathmudragada123@gmail.com |
1492bd5f614068c35c19883d6fc5a9624c0ae5c8 | bcd878b91e75fc14c66943911908447078cd581e | /tensorflow_serving/example/inception_export.py | 6bcd2b36b41b18999ed0c54c1bc4ae212cfa7433 | [
"Apache-2.0"
] | permissive | cfregly/serving | 677367ffa0263f52bf4c3b06287566e20f61e77a | bdd0b47e715a596a8a927deac5018bfb656848d2 | refs/heads/master | 2021-01-14T09:42:24.046049 | 2016-04-04T21:54:08 | 2016-04-04T21:54:08 | 55,674,476 | 1 | 1 | null | 2016-04-07T07:46:01 | 2016-04-07T07:46:01 | null | UTF-8 | Python | false | false | 4,618 | py | # Copyright 2016 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
da54578f4d643573bbc62d2a04f74d415e2671eb | a6996ea8cc1f0bdcbdb0b82d514da22db48065f9 | /create_index.py | fab09a2f24c5e683db95537aa77063742160ff7d | [
"MIT"
] | permissive | katsby-skye/arxiv-search | ac275d42c2128f693653682cc8dc57a6ef9ccd99 | e5c714b474a2ac5e54452642428cee35e2a0c8b9 | refs/heads/master | 2020-04-28T07:11:50.521900 | 2019-04-18T07:32:47 | 2019-04-18T07:32:47 | 175,083,748 | 2 | 1 | MIT | 2019-04-18T07:32:49 | 2019-03-11T21:06:17 | Python | UTF-8 | Python | false | false | 387 | py | """Use this to initialize the search index for testing."""
import json
import click
from search.factory import create_ui_web_app
from search.services import index
app = create_ui_web_app()
app.app_context().push()
@app.cli.command()
def create_index():
"""Initialize the search index."""
index.current_sessio... | [
"brp53@cornell.edu"
] | brp53@cornell.edu |
989e8a3dff4b10f57408941766688533677e929a | 3dff4bef08954fadb7cc83c4f212fffa81b7d27e | /api_site/src/api_x/config/etc/beta.py | 319f422b8199fc39e3ad1d54c83a6af7b95695a7 | [] | no_license | webee/pay | 3ec91cb415d9e3addabe961448533d861c0bd67a | b48c6892686bf3f9014bb67ed119506e41050d45 | refs/heads/master | 2020-04-29T14:31:09.643993 | 2016-02-02T07:14:14 | 2016-02-02T07:14:14 | 176,198,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | # coding=utf-8
class App:
TESTING = True
HOST_URL = 'http://pay.lvye.com/api/__'
CHECKOUT_URL = 'http://pay.lvye.com/__/checkout/{sn}'
TEST_CHANNELS = {'zyt_sample'}
| [
"yiwang@lvye.com"
] | yiwang@lvye.com |
87b406089d8124860e5df6cee98e2d1dc37d6514 | 92c6aa579d06d3ff58c9e6d8f5cfa696622623f5 | /flask_mysql/server.py | f8769b77b04fb73d9249cabc9e4b6c7b1d20691b | [] | no_license | askrr3/demo | 8ce6cd1cad3192b46a8583776c654ecfe2992c44 | cb7dbebf2c8cd1e363bad134e67db4a87389a0fe | refs/heads/master | 2021-01-18T22:53:26.127132 | 2016-07-20T19:38:50 | 2016-07-20T19:38:50 | 63,808,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py |
from flask import Flask
# import the Connector function
from mysqlconnection import MySQLConnector
app = Flask(__name__)
# connect and store the connection in "mysql" note that you pass the database name to the function
mysql = MySQLConnector(app, 'mydb')
# an example of running a query
print mysql.query_db("SELECT *... | [
"johndoe@example.com"
] | johndoe@example.com |
f252cdd46cf777f6aa3ce61f7216a0d67440387b | dd205a3cd8c457cfee9a1c0c1df2d3ef9d4e69d8 | /easy/jump_cloud_revisit.py | fcfd8fa7a335724596c4d29e857d137c2ceaca81 | [] | no_license | NaNdalal-dev/hacker-rank-problems | c86a2c28979391336517e6c151cbaf57542f9d58 | cce957364c4920af622afea9244b8bcc984deb62 | refs/heads/master | 2023-03-29T19:04:53.720657 | 2021-04-04T14:12:49 | 2021-04-04T14:12:49 | 332,231,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | '''
Jumping on the Clouds: Revisited
https://www.hackerrank.com/challenges/jumping-on-the-clouds-revisited/problem
'''
def jumpingOnClouds(c, k):
l=len(c)
e=100
i=0
while True:
rem=(i+k)%l
if rem==0:
if c[rem]==1 :
e=e-3
break
else:
e-=1
break
if c[rem]==1 :
e=e-3
else:
e-=1
i+... | [
"dnandalal7@gmail.com"
] | dnandalal7@gmail.com |
651f7888323079293dfce203eae4791834c80408 | a394b1053f018ff8be63221c61682df03af4937b | /osf/migrations/0058_merge_20170913_2232.py | dae51095b0957ad3237d3cd6dd2a591ff6789da0 | [
"Apache-2.0",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"MIT",
"AGPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"MPL-1.1",
"CPAL-1.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause"
] | permissive | RCOSDP/RDM-osf.io | 81b11d9511f6248ec9bccb6c586b54a58429e1e7 | 5d632eb6d4566d7d31cd8d6b40d1bc93c60ddf5e | refs/heads/develop | 2023-09-01T09:10:17.297444 | 2023-08-28T04:59:04 | 2023-08-28T04:59:04 | 123,298,542 | 12 | 24 | Apache-2.0 | 2023-09-12T08:58:28 | 2018-02-28T14:46:05 | Python | UTF-8 | Python | false | false | 351 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-09-14 03:32
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('osf', '0057_order_fileversion_by_date_created'),
('osf', '0054_add_file_version_indices'),
... | [
"sloria1@gmail.com"
] | sloria1@gmail.com |
6f11d373f2b16a3dfaf1af6154056173d748cf2f | 18f7d65bda4e5f55d71f78a69f30dd2e58c2f37b | /script.module.7of9-pirateslife4me/resources/root/webscrapers.py | d6704cf8c6081d12de71be4c8860d27ba6d95f25 | [] | no_license | Iph47/kdc_git_repo | 13700d229436a69b4b22e87668154b783aca05cc | 8d903bb5efa7e189f3faaf7eb1637820148f0985 | refs/heads/master | 2022-11-08T11:30:22.323438 | 2020-06-18T01:11:11 | 2020-06-18T01:11:11 | 273,349,618 | 3 | 0 | null | 2020-06-18T22:10:39 | 2020-06-18T22:10:39 | null | UTF-8 | Python | false | false | 7,451 | py | import xbmc,os
addon_id = 'script.module.7of9-pirateslife4me'
icon = xbmc.translatePath(os.path.join('special://home/addons/' + addon_id, 'icon.png'))
fanart = xbmc.translatePath(os.path.join('special://home/addons/' + addon_id , 'fanart.jpg'))
def cat():
addDir('[COLOR white][B]Arconaitv.me[/COLOR][/B... | [
"36279834+tox303@users.noreply.github.com"
] | 36279834+tox303@users.noreply.github.com |
0d2ba5f81ca457b54a1682575851fcf8f6ed0ae9 | e97c5e5beb22444b7eabd743a35493ab6fd4cb2f | /libs/log.py | e05a450020120351fef15832250286ba1117b8fc | [
"BSD-2-Clause-Patent"
] | permissive | greenelab/phenoplier | bea7f62949a00564e41f73b361f20a08e2e77903 | b0e753415e098e93a1f206bb90b103a97456a96f | refs/heads/main | 2023-08-23T20:57:49.525441 | 2023-06-15T06:00:32 | 2023-06-22T16:12:37 | 273,271,013 | 5 | 2 | NOASSERTION | 2023-06-20T20:35:45 | 2020-06-18T15:13:58 | Jupyter Notebook | UTF-8 | Python | false | false | 590 | py | """
Provides logging functions.
"""
import logging
import logging.config
import yaml
import conf
def _get_logger_config():
"""Reads the logging config file in YAML format."""
with open(conf.GENERAL["LOG_CONFIG_FILE"], "r") as f:
return yaml.safe_load(f.read())
logging.config.dictConfig(_get_logger_... | [
"miltondp@gmail.com"
] | miltondp@gmail.com |
eab3ff73caf97a4d6ce6cb79b317e5aaa74dd265 | 3d1a8ccef4153b6154c0aa0232787b73f45137ba | /services/customer/db.py | 8e5a6ce81812465a01743fb386158c3603de9757 | [] | no_license | jan25/hotrod-python | a0527930b2afc33ca3589c1cf7ae07814148535a | dbce7df1bc2d764351dd2ba1122078fc525caed7 | refs/heads/master | 2020-06-03T14:59:35.627093 | 2019-06-22T16:52:19 | 2019-06-22T16:52:19 | 191,616,546 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | from .client import Customer
customers = {
"123": Customer(id="123", name="Rachel's Floral Designs", location="115,277"),
"567": Customer(id="567", name="Amazing Coffee Roasters", location="211,653"),
"392": Customer(id="392", name="Trom Chocolatier", location="577,322"),
"731": Customer(id="731", name... | [
"abhilashgnan@gmail.com"
] | abhilashgnan@gmail.com |
8d00ae753d8fc0aca6f67ec1de5de4edebd5cbf2 | ca539b0df7ca5a91f80b2e2f64e7379e69243298 | /312.py | 50ff4fd4692929c4fe89ae5e5d19a20f67879cb1 | [] | no_license | yorick76ee/leetcode | 9a9e5d696f3e32d9854c2ed9804bd0f98b03c228 | d9880892fe15f9bb2916beed3abb654869945468 | refs/heads/master | 2020-03-18T22:59:29.687669 | 2016-07-18T19:56:55 | 2016-07-18T19:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | class Solution(object):
def h(self, nums, l, r, d):
if (l,r) not in d:
d[(l,r)] = 0
for i in range(l, r+1):
d[(l,r)] = max(d[(l,r)], self.h(nums, l, i-1, d) + self.h(nums, i+1, r, d) + nums[i]*nums[l-1]*nums[r+1])
if l == 1 and r == 4:
... | [
"641614152@qq.com"
] | 641614152@qq.com |
e7fce07a2a9175afc2ab1e85bb8ee860ae8f77dd | d755aaaf905b48baf31aa90332f03c45f4c8dad3 | /tests/test_utils.py | 494f1115abbc6feaa46c734931099119ef47fe06 | [
"Apache-2.0"
] | permissive | django-ftl/fluent-compiler | 36ffe0c76678e82f4f15bbccef057c8e4cd0e6bc | d8f19b47161788fbdea9822b130ef136fb839540 | refs/heads/master | 2023-08-08T04:16:52.368218 | 2023-07-21T10:37:17 | 2023-07-21T10:37:17 | 248,319,322 | 20 | 1 | NOASSERTION | 2023-04-18T16:14:05 | 2020-03-18T19:04:42 | Python | UTF-8 | Python | false | false | 1,560 | py | import unittest
from fluent_compiler.errors import FluentFormatError
from fluent_compiler.utils import Any, inspect_function_args
class TestInspectFunctionArgs(unittest.TestCase):
def test_inspect_function_args_positional(self):
self.assertEqual(inspect_function_args(lambda: None, "name", []), (0, []))
... | [
"L.Plant.98@cantab.net"
] | L.Plant.98@cantab.net |
b9881ef2ec773ce08737733c455d00c4e0f5a07e | bcf0e03ebd7e55588dcf48ab5d990534f8d9ab0c | /CodeChef/Archive 2019/dijikstra algo.py | 8a5245f7d11e94a49ff2d6015c4aea7afa726d55 | [] | no_license | nsky80/competitive_programming | 731321aaf42d9ae546f1d13bbb05215a1fbcfe45 | 9b0c0ffccf092d4d4bbf50cac1746f44dd977d57 | refs/heads/master | 2022-02-06T11:58:44.313635 | 2022-01-30T09:20:15 | 2022-01-30T09:20:15 | 199,516,791 | 1 | 2 | null | 2022-01-30T09:20:16 | 2019-07-29T19:43:17 | Python | UTF-8 | Python | false | false | 2,697 | py | # Python program for Dijkstra's single
# source shortest path algorithm. The program is
# for adjacency matrix representation of the graph
# Library for INT_MAX
import sys
class Graph():
def __init__(self, vertices):
self.V = vertices
self.graph = [ [ 0 for column in range(vertices) ]
... | [
"satishkumary80@gmail.com"
] | satishkumary80@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.