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
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
684abb44cfce60560ac0ac5f80e323449ad55dcc
7370127fe73970fdf0882f0696c1dbbf1e818745
/pds-queries/2022-stewardship/nightly-reports.py
abb57d73eaf102dd279bc955663b0203d3808760
[]
no_license
epiphany40223/epiphany
ab5ef0590ac67d2e353592c45177b8e5f7e22457
32956e735f0c5e3fc9231449796431d23b4817f0
refs/heads/main
2023-09-01T05:12:17.013064
2023-08-27T19:57:16
2023-08-27T19:57:16
41,978,574
5
11
null
2023-09-11T02:00:09
2015-09-05T23:06:07
Python
UTF-8
Python
false
false
67,259
py
#!/usr/bin/env python3 # Make sure to pip install everything in requirements.txt. import sys import collections import traceback import datetime import argparse import smtplib import csv import os import re # We assume that there is a "ecc-python-modules" sym link in this # directory that points to the directory wi...
[ "jeff@squyres.com" ]
jeff@squyres.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
eafcf1331a754155db8948c37117aff6404908f9
677002b757c0a1a00b450d9710a8ec6aeb9b9e9a
/tiago_public_ws/build/tiago_2dnav/catkin_generated/pkg.installspace.context.pc.py
1d1e6f7bc9cb0beb82bfecb78ef6dcd0fbbae01c
[]
no_license
mrrocketraccoon/tiago_development
ce686c86459dbfe8623aa54cf4279021342887fb
a0539bdcf21b67ab902a4649b516dcb929c54042
refs/heads/main
2023-06-16T19:39:33.391293
2021-07-08T21:20:03
2021-07-08T21:20:03
384,249,894
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "tiago_2dnav" PROJECT_SPACE_DIR = "/ti...
[ "ricardoxcm@hotmail.com" ]
ricardoxcm@hotmail.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
37a3374eaa6a21229e47b55bedf4daeb820c14eb
0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02
/abc032/b.py
18c4b5a9718a41bf8aae37119b0328701cef8699
[]
no_license
silphire/atcoder
b7b02798a87048757745d99e8564397d1ca20169
f214ef92f13bc5d6b290746d5a94e2faad20d8b0
refs/heads/master
2023-09-03T17:56:30.885166
2023-09-02T14:16:24
2023-09-02T14:16:24
245,110,029
0
0
null
null
null
null
UTF-8
Python
false
false
125
py
s = input().rstrip() n = len(s) k = int(input()) ans = set() for i in range(n - k + 1): ans.add(s[i:i+k]) print(len(ans))
[ "silphire@gmail.com" ]
silphire@gmail.com
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
aa41fce664fe83c78c8a1fa8dd4a14ce5af48850
c23954da29144a7d75dde0a704748d886e02220b
/salt_main/salt/modules/postgres.py
641f1d4c276cb40b229d0a0c92e1c8d6a0e683ff
[]
no_license
pombredanne/usystem
5bac2db49057698d2cffb35e5977418bb85425a8
12527f14d61ca30e996368e65ba74931ed85e3c1
refs/heads/master
2021-09-24T10:44:22.261460
2018-10-08T14:19:35
2018-10-08T14:19:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
93,237
py
# -*- coding: utf-8 -*- ''' Module to provide Postgres compatibility to salt. :configuration: In order to connect to Postgres, certain configuration is required in /etc/usystem/minion on the relevant minions. Some sample configs might look like:: postgres.host: 'localhost' postgres.port: '5432...
[ "igonchik@gmail.com" ]
igonchik@gmail.com
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
b1f5af1f69ca218022bb709844afbd5b432e66e1
69ae33981d8fc674c700e23512ddfad5712435e2
/tests/test_dashboards/test_pie_charts.py
a1e17dd401f956c1b027bf27e7026a348ecd1cd2
[ "Apache-2.0" ]
permissive
shannara/squest
7d9dd51cc825994abe2b5301e7fc6065acd0e1e3
f68cf6787d59ae6634329d6c6526c1601442235e
refs/heads/master
2023-07-01T04:27:08.895488
2021-08-03T15:12:05
2021-08-03T18:17:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,093
py
from django.contrib.auth.models import User from profiles.models import BillingGroup from resource_tracker.models import ResourcePool, ResourceGroup from service_catalog.models import Request, Service, Instance, JobTemplate, TowerServer from service_catalog.models.operations import Operation from service_catalog.model...
[ "nico.marcq@gmail.com" ]
nico.marcq@gmail.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
ee9e48bcf60bb992438878a31cd1b40dd6f8a51b
3e358fa6f824e3923878c2200ffa685948281824
/FlightPlannerTask/Type/QA/QATable.py
6f6e1081867640fca774689d41e56e64bce3d4e4
[]
no_license
developer124320/FlightPO
28825a4c2c0b2c4d9095296e785f0123eb5d7560
a5f4c583d01104d7c379e7cf677b898f407ab565
refs/heads/master
2021-06-16T16:55:27.203361
2017-04-10T13:14:39
2017-04-10T13:14:39
87,812,061
1
0
null
null
null
null
UTF-8
Python
false
false
9,611
py
from QARecord import QARecord from FlightPlanner.types import QARecordType, QATableType, QAFileVersion from Type.Extensions import Extensions from Type.String import String, StringBuilder from Type.switch import switch class QATable(QARecord): def __init__(self): QARecord.__init__(self) ...
[ "kwangyingjin@outlook.com" ]
kwangyingjin@outlook.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
003d37262facf5000ddfa729cb6adc2823957ece
4fc9cb4cf01e41c4ed3de89f13d213e95c87dd33
/angr/procedures/definitions/win32_rpcns4.py
c4114ba31ec27bdaae4ecf7fb2f2d84122977a85
[ "BSD-2-Clause" ]
permissive
mborgerson/angr
ea5daf28576c3d31b542a0e229139ab2494326e9
8296578e92a15584205bfb2f7add13dd0fb36d56
refs/heads/master
2023-07-24T22:41:25.607215
2022-10-19T19:46:12
2022-10-20T18:13:31
227,243,942
1
2
BSD-2-Clause
2021-04-07T22:09:51
2019-12-11T00:47:55
Python
UTF-8
Python
false
false
31,967
py
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
[ "noreply@github.com" ]
mborgerson.noreply@github.com
195fca9376d0afd9778a4be805514ee6c1263d09
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/ext-py3/boto-2.49.0/tests/unit/rds/test_snapshot.py
c3c9d8a67282483ca4c145ede59fc32c350a3738
[ "CC-BY-3.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0", "Unlicense", "LGPL-3.0-only", "CC0-1.0", "LicenseRef-scancode-other-permissive", "CNRI-Python", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "Python-2.0", "GPL-3.0...
permissive
cloudera/hue
b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908
dccb9467675c67b9c3399fc76c5de6d31bfb8255
refs/heads/master
2023-08-31T06:49:25.724501
2023-08-28T20:45:00
2023-08-28T20:45:00
732,593
5,655
2,244
Apache-2.0
2023-09-14T03:05:41
2010-06-21T19:46:51
JavaScript
UTF-8
Python
false
false
14,445
py
from tests.unit import unittest from tests.unit import AWSMockServiceTestCase from boto.rds import RDSConnection from boto.rds.dbsnapshot import DBSnapshot from boto.rds import DBInstance class TestDescribeDBSnapshots(AWSMockServiceTestCase): connection_class = RDSConnection def default_body(self): ...
[ "noreply@github.com" ]
cloudera.noreply@github.com
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
8b23eaa70e67c8fb794c52018f9a0e13cf63f385
0628653df1b75bc0365b09d6a4364b407b39cea3
/python4gmsh/extra.py
e0aa8bb015830a4fff7a821e4e4beba6a868770b
[ "BSD-3-Clause" ]
permissive
sapedit/python4gmsh
8b41bfdd69c4518c12dd0017f1420e7018c58898
967dc6d47d05eeb18229a2e5fc40ec89a036dcf6
refs/heads/master
2021-01-12T20:31:47.760948
2014-01-24T22:23:30
2014-01-24T22:23:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,879
py
# -*- coding: utf8 -*- # # Copyright (c) 2013--2014, Nico Schlömer # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this...
[ "nico.schloemer@gmail.com" ]
nico.schloemer@gmail.com
06c92954daf2d45ac1a030afda585d114c09e9c6
47c6b0172393a76aba36afb620ad47d6801592bf
/contrib/dbio/signals.py
27c67654d0694e8e444a50fda31ab7e384459f03
[ "MIT" ]
permissive
sheppard/wq.db
b56238f6345e6ae3b6ecb70e4522a355d06bc436
b16881830c5a87b132098d1391709c644376c2d4
refs/heads/master
2020-12-01T03:03:53.601427
2013-12-19T20:08:25
2013-12-19T20:08:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
from django.dispatch import Signal import_complete = Signal(providing_args=['file', 'status'])
[ "andrew@wq.io" ]
andrew@wq.io
0a36f233d4aec745a24f2c665a94a70ebcffc487
83ed1e2f176133c03a5f6dfa504b8df15ae71efb
/projects/VisionElasticFit/guessElasticLinePosition_second_pass.py
55e6ab4e818b60b9c6d9cece363b6b1e37445b1f
[]
no_license
jmborr/code
319db14f28e1dea27f9fc703be629f171e6bd95f
32720b57699bf01803367566cdc5fff2b6bce810
refs/heads/master
2022-03-09T16:11:07.455402
2019-10-28T15:03:01
2019-10-28T15:03:01
23,627,627
0
0
null
null
null
null
UTF-8
Python
false
false
10,025
py
''' This script will try to find the elastic line and the adjacent peak for a certain number of pixels. Edit the below variables, then run the script ''' import sys sys.path.append('/home/jmborr/devel/mantidproject/mantid/Code/debug/bin') #from mantid.simpleapi import * from mantid.simpleapi import FindPeaks, CloneWor...
[ "borreguero@gmail.com" ]
borreguero@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
33bd5e391cbd0c2a89346bdba94ba49cd650b439
90b5584198bfd6c3138122efbd49f361375cd0ac
/lib/python3.6/site-packages/twilio/rest/api/v2010/account/message/media.py
01d8a0a68af4f378b343c21e27ce41cfcb9a9820
[]
no_license
sarahchou/HoliBot
50cd4c89f1f6e06ebfb2780e29dbe78b5b91f650
ee1e631cda8afc43e963332d94a7d0295380aba9
refs/heads/master
2021-04-09T13:32:57.888058
2018-03-18T18:53:10
2018-03-18T18:53:10
125,672,513
0
0
null
null
null
null
UTF-8
Python
false
false
14,184
py
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import serialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import ...
[ "chou.s@husky.neu.edu" ]
chou.s@husky.neu.edu
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
804e07c2b80c9170bd645ccdfaa3c4561b7764de
c40157692e86b30e00719e587a8109388e6463e2
/slowfast/datasets/kinetics.py
a9602b707bd86b947a8e6507a0c505877f96388a
[ "Apache-2.0" ]
permissive
fmassa/SlowFast
2b610cd31314f1a858069349b946c207a93ad41e
ec4b2f5932df67901e6a4a13d020f9ecf66c8f27
refs/heads/master
2021-05-26T08:29:01.608826
2020-04-01T22:11:12
2020-04-01T22:13:04
254,058,512
2
0
null
2020-04-08T10:38:29
2020-04-08T10:38:29
null
UTF-8
Python
false
false
11,195
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import os import random import torch import torch.utils.data from fvcore.common.file_io import PathManager import slowfast.utils.logging as logging from . import decoder as decoder from . import transform as transform from...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.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
bb90fc18acec944c5771c1bfc31de1815570db9b
9b2eb0d6b673ac4945f9698c31840b847f790a58
/pkg/apteco_api/models/user_audience_composition_detail.py
44cd3074eaa44b89f96484d635eecf8fd719e56d
[ "Apache-2.0" ]
permissive
Apteco/apteco-api
6d21c9f16e58357da9ce64bac52f1d2403b36b7c
e8cf50a9cb01b044897025c74d88c37ad1612d31
refs/heads/master
2023-07-10T23:25:59.000038
2023-07-07T14:52:29
2023-07-07T14:52:29
225,371,142
2
0
null
null
null
null
UTF-8
Python
false
false
18,331
py
# coding: utf-8 """ Apteco API An API to allow access to Apteco Marketing Suite resources # noqa: E501 The version of the OpenAPI document: v2 Contact: support@apteco.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from apteco_api.configu...
[ "tim.morris@apteco.com" ]
tim.morris@apteco.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
867d75f33cd3da6daf2b3995eecb64dfde88c457
84a5092ecc558c0f887d9778e4a67a2708644f03
/order/urls.py
66aae375ebd06449ac0b1a54a6dcb42cd0815083
[]
no_license
wecode-bootcamp-korea/15-2nd-R.I.P.-backend
69512fec116544f214cc14f55317ed8947a69e4a
02895fb56dbc061134952016c0c3def17e0d4503
refs/heads/master
2023-02-10T20:29:13.804764
2021-01-11T12:31:51
2021-01-11T12:31:51
324,920,988
0
1
null
2021-01-11T12:31:53
2020-12-28T05:34:17
Python
UTF-8
Python
false
false
52
py
from django.urls import path urlpatterns = [ ]
[ "fergith@naver.com" ]
fergith@naver.com
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
428f77c853854010b07704ff6552aac304b8db68
d62021dff4503fedcce62011b994f9917063e1bf
/python_full_statck/fuction/homework/day3_2/day3_2.py
cdaabffb27361088a7b7e39a11b5b0abe9cd8609
[]
no_license
tsytsy/python-study
9eefb202cc1348589f111709742c0c4deb84a43f
04545e50b998a25c03173b966b1e1cf6b988b042
refs/heads/master
2021-09-06T06:39:57.344363
2018-02-03T09:43:31
2018-02-03T09:43:31
112,138,223
0
0
null
null
null
null
UTF-8
Python
false
false
13,490
py
import time def isnumber(aString): try: float(aString) return True except: return False def info_listdic_to_str(res): str1 = '' for d in res: count = 0 for line in d.values(): if count == 4: str1 = str1 + line + '\n' els...
[ "tsy31415926@163.com" ]
tsy31415926@163.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
6b4d71f770ba02a69b54b0e9e2dcf68ad37e2a8f
5f16f3bac5515baea0951a4f806e644f8f6e92b1
/code/swap.py
3020b607df335d66bbf620b41b9b5aed16edae84
[]
no_license
joemeens/guvi
f914e6da4e6a39fb6a74981c883a7f0c27c574ad
cb29c77013e3bf2e81131c02940087418995ddaf
refs/heads/master
2020-05-31T06:25:25.645970
2019-07-12T15:36:11
2019-07-12T15:36:11
190,142,024
0
1
null
null
null
null
UTF-8
Python
false
false
97
py
ass,ssa=(input().split(" ")) ass=int(ass) ssa=int(ssa) temp=ass ass=ssa ssa=temp print(ass, ssa)
[ "noreply@github.com" ]
joemeens.noreply@github.com
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
0a15d7e572f86aac2bafaceec9d590699d8caf19
ba91eb5329fd8e69aa9d9fe1e74e2c7b968806c7
/robocode-vscode/src/robocode_vscode/plugins/resolve_interpreter.py
33634dbbbbdb2ab5c8af26212f2fa9e8d972e33c
[ "Apache-2.0" ]
permissive
emanlove/robotframework-lsp
aba9deb43ee7fdd3328e08b4d904d6c4ca44e185
b0d8862d24e3bc1b72d8ce9412a671571520e7d9
refs/heads/master
2022-12-06T01:04:04.103593
2020-08-30T15:56:43
2020-08-30T15:56:43
292,014,577
1
0
NOASSERTION
2020-09-01T14:05:52
2020-09-01T14:05:51
null
UTF-8
Python
false
false
12,084
py
""" Note: this code will actually run as a plugin in the RobotFramework Language Server, not in the Robocorp Code environment, so, we need to be careful on the imports so that we only import what's actually available there! i.e.: We can import `robocode_ls_core`, and even `robotframework_ls`, but we can't import `robo...
[ "fabiofz@gmail.com" ]
fabiofz@gmail.com
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
8cf5c5e87d3b0865cc7708955ff71c51825be678
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-objectdet/aliyunsdkobjectdet/request/v20191230/DetectMainBodyRequest.py
9654ad3449a62ce09152cd83d53d2006f24f311a
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
1,455
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
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
81008f533429d7045665572e09452a271f10a008
1974b3e9c5f2f677833e1608a41281f377fd331c
/dltesthttp_xuyalin2/www/testcase/webservice/ts_ws_approval/auditApproval.py
a73408b64e960e90f654c5482b57e9b09ffce7b7
[]
no_license
xyl00755/pythonLearning
ed0f540b61247c3560f347853da5886b2e2ba25d
c6aecff86ff34dcd7358d98201627ff84e9bf2cf
refs/heads/master
2021-01-13T08:19:25.171016
2016-12-16T05:43:10
2016-12-16T05:43:10
71,764,553
0
0
null
null
null
null
UTF-8
Python
false
false
21,211
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest from www.api.webservice import * from www.common.database import * from www.common.excel import * """ 0035.经销商管理员我的丹露审批 http://127.0.0.1:8280/mallws/mydl/approval/auditApproval.json { "token":"123", // 必须 "approvalId":"TAL9604...
[ "xuyalin@danlu.com" ]
xuyalin@danlu.com
4c309848f6269853d2f64a8adb47f488690b6cf5
55f76a8ffb9062f6553e3019e1bd9898c6841ee8
/qa/rpc-tests/pruning.py
0ac7cd4119955d124924e0c12c0d97e1e5ee1e5e
[ "MIT" ]
permissive
mirzaei-ce/core-tabit
1c966183d5e35ac5210a122dfabf3b1a6071def5
f4ae2cb3a1026ce0670751f5d98e5eee91097468
refs/heads/master
2021-08-14T18:29:45.166649
2017-11-16T13:26:30
2017-11-16T13:26:30
110,974,552
0
0
null
null
null
null
UTF-8
Python
false
false
16,542
py
#!/usr/bin/env python2 # Copyright (c) 2014-2015 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test pruning code # ******** # WARNING: # This test uses 4GB of disk space. # This test takes 30 mins...
[ "mirzaei@ce.sharif.edu" ]
mirzaei@ce.sharif.edu
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
0630143c7ad5f0c1c78680241c22b8b9a415375b
36a85ba74dea030dd5146a5d104dce7ed67c065e
/PreviousTime.py
a9244528cf0133a06d6d09c08ab3c427d91bad7e
[]
no_license
thakur-nishant/Coding-Challenges
b797687e8ee862574e23853fa56b4eb673589dad
975fb2edf02bcbcf94777d9858c5bd8d6183cc4e
refs/heads/master
2020-03-18T20:44:10.399689
2019-06-18T08:12:17
2019-06-18T08:12:17
135,234,918
1
0
null
null
null
null
UTF-8
Python
false
false
26
py
def solution(S): pass
[ "nt.nishantt@gmail.com" ]
nt.nishantt@gmail.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
0adb67bc4ff731873a0e3d2742ac1ac278019997
8d3adc6867d80a75ac12984f52c78938221404a4
/Bio/Phylo/_cdao_owl.py
0191040b92638ad5cd472edea843b0382b0d6c50
[ "LicenseRef-scancode-biopython" ]
permissive
chapmanb/biopython
407b17f44f599d71818c5e16bd86a44cf323e062
cade0aec7ecff7d052c42040f5cae8036e297941
refs/heads/master
2020-12-29T03:07:42.778627
2013-07-09T09:36:26
2013-07-09T09:36:26
412,030
1
0
null
null
null
null
UTF-8
Python
false
false
110,025
py
# Copyright (C) 2013 by Ben Morris (ben@bendmorris.com) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. import xml.etree.ElementTree as ET cdao_namespaces = { 'cdao': 'http://purl....
[ "eric.talevich@gmail.com" ]
eric.talevich@gmail.com
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