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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ba3fe86f04f4feeb9d8e21a759d4a3d71dcbfa87 | 015383d460fa4321391d964c4f65c4d0c044dcc1 | /.venv/lib/python3.7/site-packages/faker/providers/color/uk_UA/__init__.py | 082c0e3c70d4d54b748de7d862ec0568cffeaf26 | [
"Unlicense"
] | permissive | kobbyrythm/temperature_stories_django | 8f400c8d3c8190b0e83f7bcfece930d696c4afe9 | 552d39f1f6f3fc1f0a2f7308a7da61bf1b9b3de3 | refs/heads/main | 2023-07-03T21:28:46.020709 | 2021-07-20T09:44:29 | 2021-07-20T09:44:29 | 468,728,039 | 3 | 0 | Unlicense | 2022-03-11T11:41:47 | 2022-03-11T11:41:46 | null | UTF-8 | Python | false | false | 10,523 | py | from collections import OrderedDict
from .. import Provider as ColorProvider
class Provider(ColorProvider):
"""Implement color provider for ``uk_UA`` locale.
Sources:
- https://uk.wikipedia.org/wiki/Список_кольорів
"""
all_colors = OrderedDict((
('Абрикосовий', '#FBCEB1'),
('Акв... | [
"b.scharlau@abdn.ac.uk"
] | b.scharlau@abdn.ac.uk |
fdb8b901086777739d2ab22a08e6e45e12e6d7f2 | 3ae62276c9aad8b9612d3073679b5cf3cb695e38 | /easyleetcode/leetcodes/SYL_4数学和位运算_9Fast Power.py | ce4086955015bc4ab044ceec5c0c1ae6f05889ed | [
"Apache-2.0"
] | permissive | gongtian1234/easy_leetcode | bc0b33c3c4f61d58a6111d76707903efe0510cb4 | d2b8eb5d2cafc71ee1ca633ce489c1a52bcc39ce | refs/heads/master | 2022-11-16T17:48:33.596752 | 2020-07-13T02:55:03 | 2020-07-13T02:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py |
class Solution:
"""
@param a, b, n: 32bit integers
@return: An integer
"""
def fastPower(self, a, b, n):
if n == 1:
return a % b
elif n == 0:
return 1 % b
elif n < 0:
return -1
# 拆分:(a * b) % p = ((a % p) * (b % p)) % p
#... | [
"425776024@qq.com"
] | 425776024@qq.com |
44eb876e9aaf0e2fd5d2c0b3e7b4f9bda5960f39 | 7393987b67f845cd5db4c83e3063b3d36108aa58 | /ansible/roles/cloud_master/files/api_srv/do_api.py | 77bcdca698bd9bbf5cfd3ce948fd211766bf3407 | [] | no_license | HackerDom/ructfe-2020 | 2d859afe113203813b1f65e9a55d275963b3af65 | a7a13546389bac2d39ef51e65eb3320569d02247 | refs/heads/main | 2023-02-04T21:10:40.035902 | 2020-12-26T20:37:25 | 2020-12-26T20:37:25 | 310,278,476 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,932 | py | # Developed by Alexander Bersenev from Hackerdom team, bay@hackerdom.ru
"""Common functions that make requests to digital ocean api"""
import requests
import time
import json
import sys
from do_token import TOKEN
VERBOSE = True
HEADERS = {
"Content-Type": "application/json",
"Authorization": "Bearer %s" %... | [
"bay@hackerdom.ru"
] | bay@hackerdom.ru |
6d49234b323cdcab62ce20e342bac60b8ce76fdb | 5ee3aa64cffb7cd13df824b0e669145cf41ca106 | /kinoko/misc/__init__.py | 6a575e89380da378b3e32bb85991341812c11671 | [
"MIT"
] | permissive | youxiaoxing/kinoko | aa0af77bde7a8349293c29a02e977d147c06f9d1 | 4750d8e6b1a68ba771cd89b352989ef05b293d45 | refs/heads/master | 2022-03-25T19:28:55.737172 | 2019-10-19T17:56:03 | 2019-10-19T17:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 expandtab number
"""
Authors: qianweishuo<qzy922@gmail.com>
Date: 2019/6/27 下午11:20
"""
| [
"koyo922@qq.com"
] | koyo922@qq.com |
a0508c2b3dce01a6195c9765c62d941647c47e98 | a03eba726a432d8ef133f2dc55894ba85cdc4a08 | /events/mixins.py | c91997975613113f8e2e94939e013eea469b1be0 | [
"MIT"
] | permissive | mansonul/events | 2546c9cfe076eb59fbfdb7b4ec8bcd708817d59b | 4f6ca37bc600dcba3f74400d299826882d53b7d2 | refs/heads/master | 2021-01-15T08:53:22.442929 | 2018-01-30T16:14:20 | 2018-01-30T16:14:20 | 99,572,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | from django.http import JsonResponse
from django.forms.models import model_to_dict
class AjaxFormMixin(object):
def form_invalid(self, form):
response = super(AjaxFormMixin, self).form_invalid(form)
if self.request.is_ajax():
return JsonResponse(form.errors, status=400)
else:
... | [
"contact@dragosnicu.com"
] | contact@dragosnicu.com |
c3ebfd0b4f069d5706c9ede95f3ab0a751c57bf6 | 4f2cdd9a34fce873ff5995436edf403b38fb2ea5 | /Data-Structures/String/part1/P008.py | 5734c472a41b5a886b102af012eaecfaaa7e3e87 | [] | no_license | sanjeevseera/Python-Practice | 001068e9cd144c52f403a026e26e9942b56848b0 | 5ad502c0117582d5e3abd434a169d23c22ef8419 | refs/heads/master | 2021-12-11T17:24:21.136652 | 2021-08-17T10:25:01 | 2021-08-17T10:25:01 | 153,397,297 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | """
Write a Python function that takes a list of words and returns the length of the longest one
"""
def Lword(wlist):
word=wlist[0]
for w in wlist[1:]:
if len(w)>len(word):
word=w
return word
wlist=input("enter the words by comma separated:...").split(',')
print(Lword(wl... | [
"seerasanjeev@gmail.com"
] | seerasanjeev@gmail.com |
3aa4e4c2b6fe388c724541de0a28a0383afd51c3 | 5ba3115523fb052d32db827e09443248ec5f6629 | /algorithm/PycharmProjects/0211/ladder.py | eb6210c9100757556cc04b234568b9a34172aa51 | [] | no_license | oliviaspark0825/TIL | 841095003ae794e14bd8c7e8c883826667c25f37 | 8bc66836f9a1eea5f42e9e1172f81f005abc042d | refs/heads/master | 2023-01-10T22:14:15.341489 | 2019-08-22T09:09:52 | 2019-08-22T09:09:52 | 162,099,057 | 0 | 0 | null | 2023-01-04T07:52:28 | 2018-12-17T08:32:43 | Jupyter Notebook | UTF-8 | Python | false | false | 1,040 | py | import sys
sys.stdin = open("ladder_input.txt")
T = 10
SIZE = 100
for tc in range(T):
data = [[0 for i in range(100)] for j in range(100)]
data = list(map(int, input().split()))
while x < 100 and y < 100:
if data[x][y] == 1 and data[x][y-1] == 1:
x -= 1
elif data[x][y] == 1 and ... | [
"suhyunpark0825@gmail.com"
] | suhyunpark0825@gmail.com |
baeeb7458a0b27e77d946ec28a0609a49a7c9719 | b545bc57f3359a42b034078e3acb3e4d0c77a971 | /src/containerapp/azext_containerapp/commands.py | b118add8f3858b623c9bfacbd068194a7c7a47ca | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ShichaoQiu/azure-cli-extensions | d91672b3f7bf2ffae4f1072830e99632b66cf754 | 8134c01681963387a496b5d4627527a5ed044e19 | refs/heads/main | 2023-08-24T09:09:55.689202 | 2023-08-15T06:08:35 | 2023-08-15T06:08:35 | 230,201,126 | 0 | 1 | MIT | 2020-12-11T07:14:51 | 2019-12-26T05:33:04 | Python | UTF-8 | Python | false | false | 14,994 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | ShichaoQiu.noreply@github.com |
63fa17d294b0132764b6e2dcc7e328765d7b7745 | d3d730cda1d4fd89dc2f52bcb5366c8e7dd8e1db | /Tenka1/D2.py | 4ad83d559b672ddd0b07c717e3cc39720f530999 | [] | no_license | sasakishun/atcoder | 86e3c161f306d96e026172138aca06ac9a90f3ea | 687afaa05b5a98a04675ab24ac7a53943a295d8e | refs/heads/master | 2020-03-19T19:58:07.717059 | 2019-05-04T14:39:00 | 2019-05-04T14:39:00 | 136,882,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | N=int(input())
k=2
while N>=(k-1)*k/2:
if N==(k-1)*k/2:
print("Yes")
print(k)
a=list([] for i in range(k))
t=1
for i in range(0,k):
for n in range(1,k-i):
a[i].append(t)
a[i+n].append(t)
t+=1
for i in range(k... | [
"Pakka-xeno@keio.jp"
] | Pakka-xeno@keio.jp |
a5b7bc2c28b4c11679b81349b8926af80e4b08ab | 1c2428489013d96ee21bcf434868358312f9d2af | /ultracart/models/gift_certificate_response.py | 199e3478d7a6a976125ce016d228ad964699033a | [
"Apache-2.0"
] | permissive | UltraCart/rest_api_v2_sdk_python | 7821a0f6e0e19317ee03c4926bec05972900c534 | 8529c0bceffa2070e04d467fcb2b0096a92e8be4 | refs/heads/master | 2023-09-01T00:09:31.332925 | 2023-08-31T12:52:10 | 2023-08-31T12:52:10 | 67,047,356 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,234 | py | # coding: utf-8
"""
UltraCart Rest API V2
UltraCart REST API Version 2 # noqa: E501
OpenAPI spec version: 2.0.0
Contact: support@ultracart.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class GiftCertificateResponse(... | [
"perry@ultracart.com"
] | perry@ultracart.com |
8ee0e7e7f5d3d875d56c624b78678ea83bbff8eb | 669eee5f6d8093186a5485456c5cea3ba7f76b5f | /1.py | 4be2afec506ba70e8fc35fc14d8f129e1cb6e93c | [] | no_license | AnnaCt/Zadanie2 | ff1fcfb4b08851a2281328c40f7e8bb7450197a1 | 914ac4cc753353824cf0eff3d4067d6329246f74 | refs/heads/master | 2023-08-05T16:45:24.961910 | 2021-10-01T10:21:40 | 2021-10-01T10:21:40 | 412,194,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | name = input()
surname = input()
date_of_birth = input()
print(name, '_', surname, '_', int(date_of_birth)+60)
| [
"you@example.com"
] | you@example.com |
1f5101cb29cfe1daa30392aa6f2aeeafa8e4209b | eba02c3c98f00288e81b5898a201cc29518364f7 | /chapter_005/exercises/more_conditional_tests.py | 9f4d2560c6178f258467c7d80860c4bb30f28dcb | [] | no_license | kengru/pcrash-course | 29f3cf49acfd4a177387634410d28de71d279e06 | 5aa5b174e85a0964eaeee1874b2be1c144b7c192 | refs/heads/master | 2021-05-16T09:36:16.349626 | 2017-10-11T17:56:56 | 2017-10-11T17:56:56 | 104,481,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # Exercise 5-2. Creating diferent test conditions based on what was learned.
if 'ham' == 'ham' and 'ham' != 'cheese':
print('Yes it does, ham.')
if 'ham' == 'HAM'.lower() or 'magic' != 'cool':
print('Lower works.')
if 45 > 22:
print('Math is on point.')
compilation = ['movies', 'tv', 'internet']
if 'mo... | [
"kengrullon@gmail.com"
] | kengrullon@gmail.com |
5b8097b0e65b0a05a6362af661749b6e98f2a706 | 1a9852fe468f18e1ac3042c09286ccda000a4135 | /Specialist Certificate in Data Analytics Essentials/DataCamp/05-Working_with_Dates_and_Times/e21_what_time_did_the_bike_leave_global_edition.py | 6d9438cf0cfab5cf725998d2d137511ed7776d3e | [] | no_license | sarmabhamidipati/UCD | 452b2f1e166c1079ec06d78e473730e141f706b2 | 101ca3152207e2fe67cca118923896551d5fee1c | refs/heads/master | 2023-08-14T15:41:24.312859 | 2021-09-22T17:33:01 | 2021-09-22T17:33:01 | 386,592,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | """
What time did the bike leave? (Global edition)
When you need to move a datetime from one timezone into another, use .astimezone() and tz.
Often you will be moving things into UTC, but for fun let's try moving things from 'America/New_York'
into a few different time zones.
Set uk to be the timezone for the UK: ... | [
"b_vvs@yahoo.com"
] | b_vvs@yahoo.com |
1da4536c0af19d8e8bde11b153ecb6d410d36f41 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_moderator.py | 74b75d194a30c3cf654b57a41026b96f7db76daf | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py |
#calss header
class _MODERATOR():
def __init__(self,):
self.name = "MODERATOR"
self.definitions = [u'someone who tries to help other people come to an agreement: ', u'someone who makes certain that a formal discussion happens without problems and follows the rules: ', u'someone who makes certain that all the pe... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
62d9c8feb5e10a434cb0452b1e2a854e61bd7836 | 4751fd86184b64316d694a98671d34faae76ffe6 | /plannerrr/migrations/0025_schedules_course_title.py | 3e43b6f4e109551e60a1553e79f52dd5b692afbb | [] | no_license | mohammedaliyu136/dg_planner | 8a6a4888cc109d6c3a1cb115494a1e6decbb864a | a0fb87e182527e541e7758a2c4720ddbb2438145 | refs/heads/master | 2020-04-03T08:09:02.020426 | 2018-10-29T19:57:16 | 2018-10-29T19:57:16 | 155,124,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-01-29 06:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('planner', '0024_auto_20180129_0715'),
]
operations = [
migrations.AddField(... | [
"mohammedaliyu136@gmail.com"
] | mohammedaliyu136@gmail.com |
7b0e8af35ae9596fa6784ec9856f4ceaa39818e0 | 97886c65242f9fa3814f205b509483890b709e8a | /1_Zadania/Dzien_2/4_Iteratory_generatory/zad_1.py | 2b92f19d7f42761f1100686273b493a56f09f56c | [] | no_license | Danutelka/Coderslab-Python-progr-obiektowe | d16cad0711079c9dd83676066f8f44dedb9013a2 | b68aeda14024be48fdb4fb1b5e3d48afbaac0b8c | refs/heads/master | 2020-08-04T15:26:20.479103 | 2019-05-05T18:16:04 | 2019-05-05T18:25:56 | 212,183,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | import random
class Dice:
def __init__(self, type):
self._types = [3, 4, 6, 8, 10, 12, 20, 100]
self.type = type
@property
def type(self):
return self._type
@type.setter
def type(self, type):
if type in self._types:
self._type = type
else:
... | [
"kawecka.d@gmail.com"
] | kawecka.d@gmail.com |
9631e0cb94c18704e11042ac1a62aa26b73253be | 3a547785455c4b447de5f43e134aee1f57388a7e | /SWEA/4406.py | 66281b078c22f92d03c424cb7c51ce997463f0e7 | [] | no_license | Jungwoo-20/Algorithm | bfdbca1b87500e508307a639dc2af5a86258c227 | 7767bf5b0ce089155809743af0b562b076e75d9b | refs/heads/master | 2023-08-17T05:59:25.083859 | 2021-09-22T03:26:45 | 2021-09-22T03:26:45 | 289,666,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | T = int(input())
arr = ['a','e','i','o','u']
for cnt in range(1, T + 1):
n = list(map(str, input()))
temp = []
result = ''
for i in n:
if i not in arr:
temp.append(i)
for i in temp:
result +=i
print('#' + str(cnt) + ' ' + str(result)) | [
"jungwoo7250@naver.com"
] | jungwoo7250@naver.com |
96351d6ee72ddd536395d7c25445d3e4beb59284 | f5dd6cb8e9c4faa637a5ad0a1a09301665a2da72 | /src/scripts/adaboost.py | 3526ac9d81851678f4233f496390c85cb52f2272 | [
"MIT"
] | permissive | elfmanryan/CRC4Docker | ac33b8952ddb5e9b2619fc0b9e28b30edec85ca6 | 8f9db8a1abb2bd3bb45f510c39268f365ed8a616 | refs/heads/master | 2020-03-29T16:01:30.890993 | 2018-09-07T16:32:19 | 2018-09-07T16:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,880 | py | #!/usr/bin/env python
#******************************************************************************
# Name: adaboost.py
# Purpose: supervised classification of multispectral images with ADABOOST.M1
# Usage:
# python adaboost.py
#
# Copyright (c) 2018 Mort Canty
import auxil.supervisedclass as... | [
"mort.canty@gmail.com"
] | mort.canty@gmail.com |
a3e2fd3c796bc8fc667d472ac22d714eeb9e8107 | 4175c20f89fc408696d22a488a29b46836e15cbf | /travelly/travelly/wsgi.py | b96b60b26a9cae9a3f63b84f092c6c3d187f1e2f | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | UPstartDeveloper/fiercely-souvenir | 47df7885a153b8df9e6af1aac72579da4af85e63 | 65d933c64a3bf830f51ac237f5781ddfb69f342c | refs/heads/master | 2022-12-09T21:37:19.810414 | 2021-04-30T23:47:39 | 2021-04-30T23:47:39 | 228,493,146 | 0 | 0 | MIT | 2022-12-08T03:24:23 | 2019-12-16T23:20:11 | JavaScript | UTF-8 | Python | false | false | 393 | py | """
WSGI config for travelly 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"zainr7989@gmail.com"
] | zainr7989@gmail.com |
68c6dbebfeb0c8c88a4d8d02279baf07b53e202c | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902Combine/258-tideGauge.py | c13716ac8bcd72579f0ccc17290b62f790b515e3 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 17 11:28:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
# dir_name = 'F:\\01_erainterim\\01_er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
cc5701e8bd14efc27bacd072459b9c2c0c1f0638 | f4f147a9859c5605b22429b05dc43315b06b3215 | /manage.py | 32de577bd064ffbff0ca93d7ae91639c2e93486b | [] | no_license | nickdotreid/hit-fails | 151cebdf3ecfb5168bf7a5b3937d6ed4abdb1cb9 | 7e8f0b0af60181d1922043270de27159ba4f4337 | refs/heads/master | 2016-09-15T18:08:00.311352 | 2014-07-22T16:43:51 | 2014-07-22T16:43:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
# Load the Heroku environment.
from herokuapp.env import load_env
load_env(__file__, "hitfails")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hitfails.settings")
from django.core.management import execute_from_command_... | [
"nickreid@nickreid.com"
] | nickreid@nickreid.com |
d30f9f68f0df2ebbe23d6062fc3e63d1497ed96f | ffa8b19913d891a655ff78384847ea9fdc5b0bc9 | /test/test_content_api.py | 912e0cf62412bffafa42e0aad94aefbb8ce1888f | [] | no_license | ccalipSR/python_sdk2 | b76124f409e26128ff291d2c33612883929c1b5f | d8979ed7434f4ffbc62fc30c90d40d93a327b7d1 | refs/heads/master | 2020-04-09T17:13:43.581633 | 2018-12-05T06:53:50 | 2018-12-05T06:53:50 | 160,473,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,321 | py | # coding: utf-8
"""
Looker API 3.0 Reference
### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token.... | [
"ccalip@shoprunner.com"
] | ccalip@shoprunner.com |
eacc91c40d88de42dd69c15079c96805027b981b | e4cd0810417fecc5aaa5f1e5ccaf4af75c57b4cd | /data_set/error_row_parsing.py | 268e86abffd99f42508fc86ab90101e8b92bedbd | [] | no_license | Areum120/epis_data_project | c7c9d859d70df1f9bef4b7dd691a09c27d078e8f | 567c51aa89139666521e45f76c9fd23029d2660b | refs/heads/master | 2023-06-01T15:03:16.908647 | 2021-04-14T01:39:37 | 2021-04-14T01:39:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import json
with open('bds_safe_restaurant_error.json', encoding='utf-8') as f:
ls = f.readlines()
for l in ls:
print(json.loads(l))
| [
"oceanfog1@gmail.com"
] | oceanfog1@gmail.com |
ad79bcdb94077ac1c13af74936728b2ff0f4b9bf | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /pyobjc/pyobjc/pyobjc-framework-Cocoa-2.5.1/PyObjCTest/test_cfdictionary.py | be87f85973a7b9246d9e2b734926df2bda623acc | [
"MIT"
] | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 6,093 | py | from CoreFoundation import *
from Foundation import NSDictionary, NSMutableDictionary, NSCFDictionary
from PyObjCTools.TestSupport import *
try:
long
except NameError:
long = int
class TestCFDictionary (TestCase):
def testCreation(self):
dictionary = CFDictionaryCreate(None,
('aa... | [
"opensource@apple.com"
] | opensource@apple.com |
4347b0b5ff4fe7dbd42fa72e6f26f59966cde029 | f336bcdc1eeab553e0d3d1de2ca6da64cd7f27bc | /macd/ma.py | 095e1514d3c74ba792b173092c2ffe23a7839f1a | [] | no_license | tonylibing/stockpractice | 04568c017a96815e3796c895e74f11fa128d3ffe | 039e144b3a4cc00e400338174b31fa277df55517 | refs/heads/main | 2023-09-05T03:53:02.565539 | 2021-10-30T22:08:16 | 2021-10-30T22:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | # coding:utf-8
# 1000元实盘练习程序
# 测试判断牛熊的指标
# 根据《阿佩尔均线操盘术》第二章
import pandas as pd
import numpy as np
import akshare as ak
import run
import tools
import efinance as ef
import datetime, quandl
import matplotlib.pyplot as plt
import os
from backtest import BackTest
import strategy as st
# 对策略进行回测
@run.change_dir... | [
"zwdnet@163.com"
] | zwdnet@163.com |
8fdde8c62e9df33aab12ae2f99d6ab864c1398b3 | f80ef3a3cf859b13e8af8433af549b6b1043bf6e | /pyobjc-core/PyObjCTest/test_nsdecimal.py | 1bc56a02ba036eff309a722cfc92e26df3b754b2 | [
"MIT"
] | permissive | ronaldoussoren/pyobjc | 29dc9ca0af838a56105a9ddd62fb38ec415f0b86 | 77b98382e52818690449111cd2e23cd469b53cf5 | refs/heads/master | 2023-09-01T05:15:21.814504 | 2023-06-13T20:00:17 | 2023-06-13T20:00:17 | 243,933,900 | 439 | 49 | null | 2023-06-25T02:49:07 | 2020-02-29T08:43:12 | Python | UTF-8 | Python | false | false | 13,611 | py | """
Tests for the NSDecimal wrapper type
"""
import decimal
import warnings
import objc
from objc import super
from PyObjCTest.decimal import OC_TestDecimal
from PyObjCTools.TestSupport import TestCase, expectedFailure
class TestNSDecimalWrapper(TestCase):
def test_creation(self):
d = objc.NSDecimal(0)
... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
1f6538e3cfedc22ca80c5652086f6deb7f4bf652 | 6fce025097cebfd9d1dd37f6611e7fdfdbea90e6 | /data_sync/nwp_prec_map.py | 6c629d1d70cd7fceffb4ccd6c33fc27c2260f5bf | [] | no_license | ANU-WALD/pluvi_pondus | ec0439d19acdcf4fdf712d6b14a1714297d661b2 | ff8680f7115ab2cb75138bf6705abb59618e47d1 | refs/heads/master | 2021-07-01T14:32:14.501631 | 2020-08-22T09:41:28 | 2020-08-22T09:41:28 | 138,804,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | import xarray as xr
import numpy as np
import sys
import imageio
import os
if len(sys.argv) != 3:
sys.exit(1)
ds = xr.open_dataset(sys.argv[1])
print(ds['tp'].shape)
p = ds['tp'][0,:,:].data * 1000
p = np.clip(p, 0, 150)
p = np.log(1 + p)
norm_p = np.log(1 + p) / 5.01728
im = np.zeros((p.shape[0], p.shape[1], 4... | [
"pablo.larraondo@anu.edu.au"
] | pablo.larraondo@anu.edu.au |
31c568493d455ebdff42337b27ee809862d80424 | 16516732031deb7f7e074be9fe757897557eee2d | /朝活/朝活/20200420/A - C-Filter.py | 8f6a3a88e641497c59026898a80ef871bdebcde2 | [] | no_license | cale-i/atcoder | 90a04d3228864201cf63c8f8fae62100a19aefa5 | c21232d012191ede866ee4b9b14ba97eaab47ea9 | refs/heads/master | 2021-06-24T13:10:37.006328 | 2021-03-31T11:41:59 | 2021-03-31T11:41:59 | 196,288,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # https://atcoder.jp/contests/digitalarts2012/tasks/digitalarts_1
import re
s=list(input().split())
n=int(input())
t=[input().replace('*','.') for _ in range(n)]
for pat in t:
regex=re.compile(r'^{}$'.format(pat))
for i in range(len(s)):
has_word=regex.search(s[i])
if has_word:
... | [
"calei078029@gmail.com"
] | calei078029@gmail.com |
2eb4a12253b0787e1d7727e128ff4724255853eb | a4b938b953d25bb529564d0e3f025b5a93a73d8b | /gui/http_api_e2e_test.py | 5bc9859a94d4cf20f236341bd64619f36fb03bcb | [
"DOC",
"Apache-2.0"
] | permissive | greg-gallaway/grr | 7887d3ecca33f9b5544f297d1bb1320672678078 | 919a844c396136bd49c457f18d853dd10b79abed | refs/heads/master | 2021-01-18T17:27:19.111359 | 2015-06-05T09:44:25 | 2015-06-05T09:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | #!/usr/bin/env python
"""End-to-end tests for HTTP API.
HTTP API plugins are tested with their own dedicated unit-tests that are
protocol- and server-independent. Tests in this file test the full GRR server
stack with regards to the HTTP API.
"""
import json
import requests
import logging
from grr.gui import runte... | [
"github@mailgreg.com"
] | github@mailgreg.com |
f2d7d79f569684d8a1acd419e1f4cded176a399e | 71894f980d1209017837d7d02bc38ffb5dbcb22f | /audio/DIYAmazonAlexa/DIYAmazonAlexa.py | 9238be8e205d02461cb2611d43648d5199630f4c | [] | no_license | masomel/py-iot-apps | 0f2418f8d9327a068e5db2cdaac487c321476f97 | 6c22ff2f574a37ba40a02625d6ed68d7bc7058a9 | refs/heads/master | 2021-03-22T04:47:59.930338 | 2019-05-16T06:48:32 | 2019-05-16T06:48:32 | 112,631,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py | #! /usr/bin/env python
import os
import random
import time
import random
from creds import *
import requests
import json
import re
import subprocess
from memcache import Client
# Setup
recorded = False
servers = ["127.0.0.1:11211"]
mc = Client(servers, debug=1)
path = os.path.realpath(__file__).rstrip(os.path.basenam... | [
"msmelara@gmail.com"
] | msmelara@gmail.com |
067bb5ca47e251d38571d4f8c1e9fea477cedd2b | bd8d89a09438328e0e9b76b1ed8bc7517cfd0f79 | /pifify/materials/inconel.py | c510e89e163c0968faac5471f318f885d8af349d | [] | no_license | bkappes/pifify | 3361925b875ce3ce216361d0657251f058e30d82 | 92ed2d27d7bca26c23db4604e155c7565f14413c | refs/heads/master | 2021-01-01T03:35:37.989045 | 2016-11-17T17:28:12 | 2016-11-17T17:28:12 | 58,249,456 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,777 | py | import sys, os
# sys.path.append(os.path.dirname(os.path.realpath(__file__) + \
# os.path.sep + os.path.pardir + \
# os.path.sep + os.path.pardir))
# this is specific the location of pypif, since I haven't
# installed pypif
sys.path.append('/Users/bkappes/src/citrine/pypif')
from pypif i... | [
"bkappes@mines.edu"
] | bkappes@mines.edu |
ac66cdaca079fc5ed364b91e7b7c335ff66e2240 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/gltbx/viewer_utils.py | cf30f350988463aeda5d40e35106362d81ad140a | [
"BSD-3-Clause",
"BSD-3-Clause-LBNL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 1,298 | py | from __future__ import absolute_import, division, print_function
import scitbx.array_family.flex # import dependency
import time
import boost.python
ext = boost.python.import_ext("gltbx_viewer_utils_ext")
from gltbx_viewer_utils_ext import *
def read_pixels_to_str(x, y, width, height):
from gltbx.gl import glPixelS... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
ff9d75b69e1c2286b7676c81629e2cea48dce8fd | 24dfab72bd987988a0f1d7786ba98281287704f7 | /proposed_algorithms/RF_DT_xgboost_demo.py | a87b41a354680189a11e8b79999b7570916a5dbe | [] | no_license | yougwypf1991/application_classification | 435432aea5b2ad055c67889057047291ef200feb | 667a86b98eb7cc2d8bd87eb1dcdad0efeaca38a7 | refs/heads/master | 2022-11-14T19:13:17.054673 | 2020-07-13T03:15:32 | 2020-07-13T03:15:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,893 | py | import random
from sklearn import metrics
from sklearn.decomposition import PCA
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier
from numpy_load_and_arff import load_npy... | [
"kun.bj@foxmail.com"
] | kun.bj@foxmail.com |
3cbf273f544246dd4945252ce79cf5936764e9eb | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_enormously.py | 08cbf1915bafcb261f9de99d048c67794cf5bd02 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py |
#calss header
class _ENORMOUSLY():
def __init__(self,):
self.name = "ENORMOUSLY"
self.definitions = [u'extremely or very much: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adverbs'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
self.jsond... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
887f2b39b26d4a530f903ceabe283c002de6052c | 05c5349fff1c85c41c92c9894006e2fe2464177b | /lib/api/mineration/mineration_controller.py | ea6b03f5a61d5d0bfeec33029e3474d5a6c76236 | [] | no_license | gabrielmoreira-dev/blockchain-flask | 2a0b637a4a3e1d3f732f06cc59ae6e01422efd76 | df70ed9535e397d192ddaff04be017a15b621253 | refs/heads/main | 2023-04-26T21:18:43.490144 | 2021-05-30T18:04:21 | 2021-05-30T18:04:21 | 361,319,236 | 0 | 0 | null | 2021-05-30T18:04:22 | 2021-04-25T03:11:00 | Python | UTF-8 | Python | false | false | 2,376 | py | from domain.model.block import Block
from domain.use_case.add_transaction_uc import AddTransactionUC, AddTransactionUCParams
from domain.use_case.create_block_uc import CreateBlockUC, CreateBlockUCParams
from domain.use_case.get_hash_uc import GetHashUC, GetHashUCParams
from domain.use_case.get_address_uc import GetAdd... | [
"="
] | = |
d1b1e05652e4e222093eb2da065223abf007094f | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4459484.3.spec | f867d798a8dd43df1de6c166d285c799b7b42912 | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,311 | spec | {
"id": "mgm4459484.3",
"metadata": {
"mgm4459484.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
6ce349ee762970cd72732c32964c64ab5a9aa36f | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/Practical_Python_Programming_Practices/Practice 39. How to get Percentage of Uppercase and NUKE.py | ebdaf0316b7c79b9a2f73adaa920b50ccc796029 | [] | 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 | 328 | py | s.. input("Insert some strings of Uppercase and Lowercase: ")
len_str l..(s..)
upper lower 0
___ i __ s..:
__ 'a' < i < 'z':
lower + 1
____ 'A' < i < 'Z':
upper + 1
print("Percentage of Uppercase: %.2f %%" % (upper/len_str * 100))
print("Percentage of Lowercase: %.2f %%" % (lower/len_str... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
d6bd4f9b0d5c2cf392d5313ef024de5f1b8ae429 | cfd93c9d0a39c1f1a2778a23977e7b3bd5fd9b84 | /baseline2018a-doc/baseline-doc/configs/astro-lsst-01_2022/deepdrillingcosmology1_prop.py | 43bbee995904d3508477450e9a88d2b4e4213039 | [
"CC-BY-4.0"
] | permissive | lsst-pst/survey_strategy | ec3f7a277b60559c6d7f0fad4a837e22255565ea | 47aa3e00576172bfeec264e2b594c99355b875ea | refs/heads/main | 2023-06-11T17:36:24.000124 | 2023-05-25T23:07:29 | 2023-05-25T23:07:29 | 102,892,062 | 10 | 6 | null | 2022-09-23T21:08:27 | 2017-09-08T18:24:28 | Jupyter Notebook | UTF-8 | Python | false | false | 8,041 | py | import lsst.sims.ocs.configuration.science.deep_drilling_cosmology1
assert type(config)==lsst.sims.ocs.configuration.science.deep_drilling_cosmology1.DeepDrillingCosmology1, 'config is of type %s.%s instead of lsst.sims.ocs.configuration.science.deep_drilling_cosmology1.DeepDrillingCosmology1' % (type(config).__module_... | [
"lynnej@uw.edu"
] | lynnej@uw.edu |
4161acb2fdd7cfcdf83223d02609b5bd32490bb8 | 42eaacac77b57d7bd1379afe249e2d3286596fe4 | /problems/1/problem173.py | bbdea0dd73ae7f3abe9553900c94ffebec17e20c | [] | no_license | JustinKnueppel/ProjectEuler | 08256bda59a4ad6c40d33bada17c59e3338c3525 | 21a805a061383bc75a2ec6eb7473975e377e701a | refs/heads/master | 2021-09-27T07:46:03.073046 | 2018-11-07T01:20:37 | 2018-11-07T01:20:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | """Solution to problem 173 on project euler"""
# https://projecteuler.net/problem=173
# We shall define a square lamina to be a square outline with a square "hole" so that the shape possesses vertical and horizontal symmetry. For example, using exactly thirty-two square tiles we can form two different square laminae:
... | [
"justinknueppel@gmail.com"
] | justinknueppel@gmail.com |
65842432a6e0af776d78eb30c10bf3c942ea422a | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/devilri.py | f0d9762b1a00466ade759ffe4c8bfaca93e61ad1 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 81 | py | ii = [('KembFJ1.py', 1), ('AinsWRR.py', 1), ('KembFJ2.py', 1), ('LewiMJW.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
8048ac30dfdd0589ef3441d32f3d6debb2b76c92 | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /ARC041/ARC041d.py | 0d72600f2ec256a877e7d9897a34350f18b80ed0 | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #ARC041d
def main():
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)
if __name__ == '__main__':
main() | [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
72a4439b0560de9d63f09cece712d914e09dd71d | 1046db6bc56b41d01b5ccb885f3686918c657ecc | /matrix/argparser.py | bb228ab7d929d67c5622d509a5757d29198ba904 | [] | no_license | astsu-dev/matrix | 016d4044da640337ec3fde1611befcbbbb76f749 | 1835804fba08ad2d24cb430c6d3234d736001074 | refs/heads/master | 2023-04-26T08:49:21.993850 | 2021-05-30T10:23:50 | 2021-05-30T10:23:50 | 307,655,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import argparse
from .consts import AVAILABLE_COLORS
from .defaults import DEFAULT_CHARS, DEFAULT_COLOR, DEFAULT_SPEED
def setup_argparser(parser: argparse.ArgumentParser) -> None:
parser.add_argument("--color", "-c", default=DEFAULT_COLOR,
choices=AVAILABLE_COLORS, help="matrix character... | [
"None"
] | None |
faaba892ad47eb547e3d7fe82eb2ae986794cda1 | 537b7b1d67f39b2c0351d58906e7b24125866d5f | /github_apis_sample/create_new_branch_from_working_branch.py | 0420cd33a9821e808d20e4f53c1703b4bf523418 | [] | no_license | PhungXuanAnh/python-note | 8836ca37d9254c504f9801acca3977e2c28a4f60 | 9181c4845af32c2148e65313cbb51c2837420078 | refs/heads/master | 2023-08-31T02:43:16.469562 | 2023-08-22T03:14:44 | 2023-08-22T03:14:44 | 94,281,269 | 16 | 5 | null | 2023-05-22T22:30:46 | 2017-06-14T02:46:49 | Python | UTF-8 | Python | false | false | 8,240 | py | import time
import requests
import json
import sys
sys.path.append("/home/xuananh/repo/python-note")
from subprocess_sample.subprocess_sample import run_command_print_output
gh_token = open("/home/xuananh/Dropbox/Work/Other/credentials_bk/github_basic-token-PhungXuanAnh.txt", "r").read()
def create_pull_request(own... | [
"phungxuananh1991@gmail.com"
] | phungxuananh1991@gmail.com |
64ed1cf2b4a71b236997456f92b6ad8258b2fd68 | 9fb52109b2fb6e6e2ebc49d646e5436406bc60c2 | /tests/pools/test_add_liquidity_initial.py | 5c4e5361bf7bc6979040788c2e6c73affcf2f90f | [] | no_license | lurium/curve-factory | d5083c116b006f3a68f6500081d3494d3a96d317 | d6f0ef79f0fbb215033330cd1b61e78eee5cb0a1 | refs/heads/master | 2023-03-13T01:35:57.683184 | 2021-03-01T16:52:03 | 2021-03-01T16:52:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | import brownie
import pytest
pytestmark = pytest.mark.usefixtures("mint_alice", "approve_alice")
@pytest.mark.parametrize("min_amount", [0, 2 * 10**18])
def test_initial(
alice, swap, wrapped_coins, min_amount, wrapped_decimals, initial_amounts, base_pool
):
amounts = [10**i for i in wrapped_decimals]
s... | [
"ben@hauser.id"
] | ben@hauser.id |
b84d3b11fa6dfbb8473a9b3f047db072ab6e4e1c | 733496067584ee32eccc333056c82d60f673f211 | /idfy_rest_client/models/lei_extension.py | 1450e531f5c6749b7d897d4b93f8308aab8171d1 | [
"MIT"
] | permissive | dealflowteam/Idfy | 90ee5fefaa5283ce7dd3bcee72ace4615ffd15d2 | fa3918a6c54ea0eedb9146578645b7eb1755b642 | refs/heads/master | 2020-03-07T09:11:15.410502 | 2018-03-30T08:12:40 | 2018-03-30T08:12:40 | 127,400,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | # -*- coding: utf-8 -*-
"""
idfy_rest_client.models.lei_extension
This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io )
"""
import idfy_rest_client.models.lei_normalizations
class LeiExtension(object):
"""Implementation of the 'LeiExtension' model.
TOD... | [
"runes@unipluss.no"
] | runes@unipluss.no |
b04fa65ba521b2aebad06173fd2eff8204459b7f | a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c | /venv/Lib/site-packages/pandas/tests/io/test_spss.py | 0cf9168a66d613bfa9649ed5cfc46d95a4139ef2 | [] | no_license | mylonabusiness28/Final-Year-Project- | e4b79ccce6c19a371cac63c7a4ff431d6e26e38f | 68455795be7902b4032ee1f145258232212cc639 | refs/heads/main | 2023-07-08T21:43:49.300370 | 2021-06-05T12:34:16 | 2021-06-05T12:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ee5880b545343d135efe088b0a70ff099001d051e96f7319293415e05e61e458
size 2821
| [
"chuksajeh1@gmail.com"
] | chuksajeh1@gmail.com |
f4660a795a1f9fe843844d07ee849fd94b4979b2 | e59fe240f0359aa32c59b5e9f581db0bfdb315b8 | /galaxy-dist/lib/galaxy/jobs/__init__.py | 42fa0270e1aa2eca880ded988ff6bcb1e0755ca9 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | subway/Galaxy-Distribution | dc269a0258471597d483687a0f1dd9e10bd47448 | d16d6f9b6a8b7f41a218c06539863c8ce4d5a73c | refs/heads/master | 2021-06-30T06:26:55.237251 | 2015-07-04T23:55:51 | 2015-07-04T23:55:51 | 15,899,275 | 1 | 2 | null | 2020-10-07T06:17:26 | 2014-01-14T10:47:28 | Groff | UTF-8 | Python | false | false | 80,687 | py | """
Support for running a tool in Galaxy via an internal job management system
"""
import time
import copy
import datetime
import galaxy
import logging
import os
import pwd
import random
import re
import shutil
import subprocess
import sys
import threading
import traceback
from galaxy import model, util
from galaxy.da... | [
"sabba_88@hotmail.com"
] | sabba_88@hotmail.com |
65e36f6f95b9f30cdc66164c386d744a95e41b19 | eef72818143c9ffef4c759a1331e8227c14be792 | /sktime/transformations/hierarchical/aggregate.py | 9e32e6482cd11d765a034561ab0bfe86bfb4d839 | [
"BSD-3-Clause"
] | permissive | jattenberg/sktime | 66a723d7844146ac1675d2e4e73f35a486babc65 | fbe4af4d8419a01ada1e82da1aa63c0218d13edb | refs/heads/master | 2023-08-12T07:32:22.462661 | 2022-08-16T10:19:22 | 2022-08-16T10:19:22 | 298,256,169 | 0 | 0 | BSD-3-Clause | 2020-09-24T11:20:23 | 2020-09-24T11:20:23 | null | UTF-8 | Python | false | false | 9,500 | py | # -*- coding: utf-8 -*-
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""Implements a transfromer to generate hierarcical data from bottom level."""
__author__ = ["ciaran-g"]
from warnings import warn
import numpy as np
import pandas as pd
from sktime.transformations.base import BaseTransf... | [
"noreply@github.com"
] | jattenberg.noreply@github.com |
7ae557cb0c4814beab359729b85cd437ee2b1ccc | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/81640a2c67e9ab8088a72ca02d8d58ecf41abcd1-<set_bios_attributes>-fix.py | 0206fc5bbd8980d4bd0678cff66cf7da3a9a9cef | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | def set_bios_attributes(self, attr):
result = {
}
key = 'Bios'
response = self.get_request((self.root_uri + self.systems_uri))
if (response['ret'] is False):
return response
result['ret'] = True
data = response['data']
if (key not in data):
return {
'... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
ba5e3d97a8dc58bac13af5ebf5ddf5edc2160f80 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02748/s008643234.py | bb6afcb3d80563b76660339227a400095939720e | [] | 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 | 296 | py | a,b,m = map(int,input().split())
a_list = [int(x.strip()) for x in input().split()]
b_list = [int(x.strip()) for x in input().split()]
ans = min(a_list)+min(b_list)
for i in range(m):
ai,bi,ci = map(int,input().split())
ch = a_list[ai-1]+b_list[bi-1]-ci
if ch < ans:
ans = ch
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
51dd909f38145255ef950fa9793e47e41c6a99a5 | 0b7e418fc63cf0ed65c0feeee6b749a89e7f4972 | /untitled/app.py | c070463e6be460209603a911dd7193811fe99409 | [] | no_license | pipoted/bs | 7e7a46942d7b37cada3de8e834c6c67050733505 | a4091eb54dbe74e86defdee89f729e3c73ad3ed1 | refs/heads/master | 2020-04-28T06:36:44.745625 | 2019-04-18T04:57:01 | 2019-04-18T04:57:01 | 175,065,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from flask import Flask, render_template, request
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def hello_world():
if request.method == "POST":
print('test')
return render_template('test.html')
else:
return render_template('test.html')
if __name__ == '__main__':
... | [
"32660879+pipoted@users.noreply.github.com"
] | 32660879+pipoted@users.noreply.github.com |
d864a2019c0937083b6ed018af1078af20af7e7f | aae8d348ea13956cfa6136ad711b0d3a40116101 | /test_client.py | 91ef95c8bcc222e9086805621489b79c860293b9 | [
"MIT"
] | permissive | TrendingTechnology/supabase-client | b15b76cb1135abcb239907690351e9cd3f97f8d0 | 5ba6b9c5753d20c506cd5f7f6abbd887dc29295b | refs/heads/master | 2023-07-06T12:32:38.502579 | 2021-08-08T13:35:50 | 2021-08-08T13:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,579 | py | import asyncio
import unittest
from supabase_client.supabase_client import Client
from dotenv import dotenv_values
config = dotenv_values(".env")
def async_test(async_func):
def wrapper(*args, **kwargs):
loop = asyncio.get_event_loop()
loop.run_until_complete(async_func(*args, **kwargs... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
1933bbc98fbf6522dea9c65b084743453763dc35 | 59fbeea017110472a788218db3c6459e9130c7fe | /watering-plants-ii/watering-plants-ii.py | 45a13807ec424f5749b3d29c04c8beef1be12a74 | [] | no_license | niufenjujuexianhua/Leetcode | 82b55d9382bc9f63f4d9da9431194e20a4d299f1 | 542c99e038d21429853515f62af51a77deaa4d9c | refs/heads/master | 2022-04-27T16:55:00.035969 | 2022-03-10T01:10:04 | 2022-03-10T01:10:04 | 79,742,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,666 | py | # Alice and Bob want to water n plants in their garden. The plants are arranged
# in a row and are labeled from 0 to n - 1 from left to right where the iᵗʰ plant
# is located at x = i.
#
# Each plant needs a specific amount of water. Alice and Bob have a watering
# can each, initially full. They water the plants ... | [
"wutuo123@yeah.net"
] | wutuo123@yeah.net |
8afefab9874bb820a3a39fa90e5b8006b7d3faba | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03415/s176801549.py | 96191503a2ba7933971acf26eeaccf2bdde05e41 | [] | 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 | 63 | py | S1,S2,S3 = [input() for _ in range(3)]
print(S1[0]+S2[1]+S3[2]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8ba9ee326fed8b16c26ba53c76e76b2f9a085003 | 6b5242766c7c199d82064f7b7b244ed16fa4275c | /venv/bin/pip | 70e778de2da6d5e7974433f74fa165b38be7bdb8 | [] | no_license | uuboyscy/tibame-db105 | 55822b30bb4b1b30d759e6010f83944be7f1cbaf | 2a6b3ebb0aee49369621da099fa457dcb5ea48f6 | refs/heads/master | 2022-11-21T09:57:00.086000 | 2019-11-10T14:20:33 | 2019-11-10T14:20:33 | 219,315,128 | 1 | 1 | null | 2022-11-04T05:40:00 | 2019-11-03T14:41:29 | Python | UTF-8 | Python | false | false | 410 | #!/Users/uuboy.scy/PycharmProjects/tibame-db105/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"aegis12321@gmail.com"
] | aegis12321@gmail.com | |
f9761d545344e24746558d32496fc7ac83279c2b | 696f501c25bb5059c8f6d184cff2e17e1da164a7 | /testing/testing_journaling.py | 253b018c560fc2855cd171b87e7bbaa49520113d | [
"MIT"
] | permissive | ibosity/flow-dashboard | 92a1a515f23ff4d684d93067c79581c22c2e109c | db1e9d3cc91bbbf5c41758710b4837128269bff3 | refs/heads/master | 2020-03-19T16:02:25.239699 | 2018-06-03T19:00:13 | 2018-06-03T19:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | #!/usr/bin/python
# -*- coding: utf8 -*-
from google.appengine.api import memcache
from google.appengine.ext import db
from google.appengine.ext import testbed
from datetime import datetime, timedelta
from google.appengine.ext import deferred
from base_test_case import BaseTestCase
from models import JournalTag, MiniJ... | [
"onejgordon@gmail.com"
] | onejgordon@gmail.com |
f44cfb7716ed0ebdfc46ee6555adc9770d503a4b | c6b38205d6c722b4646f5410b8d9bd5f3b3ffeb0 | /account/migrations/0007_auto_20200218_1625.py | d1da78c25d42df4a988730a7c2aef9b44bc8f67e | [] | no_license | MehdioKhan/proman-back | bd6f3be0cec34236c63260eaf1215bd9c538e89c | 2c894df943d89aaebcbaf5717958fd7962fd897b | refs/heads/master | 2022-12-21T13:43:40.117989 | 2020-02-18T16:29:34 | 2020-02-18T16:29:34 | 230,323,480 | 0 | 0 | null | 2021-09-22T18:26:34 | 2019-12-26T20:20:14 | Python | UTF-8 | Python | false | false | 1,068 | py | # Generated by Django 3.0 on 2020-02-18 16:25
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0006_auto_20200217_0659'),
]
operations = [
migrations.AlterField(
model_name='ro... | [
"mehdiokhan@gmail.com"
] | mehdiokhan@gmail.com |
e2a97d4e446166a56cfb764a3bea65806752659b | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/wr4.py | 596543aa3c6aaf48dc5e3a21e59fa32a76fccc3e | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
fd967bef434e7a35d437f8eab4c13f0a6d4c05bb | c819e434d642670ad02c1b3919a5300568dc8b99 | /lib/python3.8/site-packages/ib_common/constants/language_choices.py | 726d8139589f0450579c41ea8cc5e185684e2de8 | [] | no_license | ushatirumalasetty/venv | c8dcf002c8259501cb745b65d38fe753d4ae2da1 | 7c892873c1221a816a62cdba0fb9ad491cfba261 | refs/heads/master | 2022-11-27T18:54:54.643274 | 2020-07-23T09:54:42 | 2020-07-23T09:54:42 | 281,914,259 | 0 | 1 | null | 2022-11-20T15:47:34 | 2020-07-23T09:54:18 | Python | UTF-8 | Python | false | false | 656 | py | from enum import Enum
from .base_enum_class import BaseEnumClass
__author__ = 'vedavidh'
class LanguageEnum(BaseEnumClass, Enum):
ENGLISH = 'ENGLISH'
HINDI = 'HINDI'
TELUGU = 'TELUGU'
TAMIL = 'TAMIL'
KANNADA = 'KANNADA'
class Languages(BaseEnumClass, Enum):
"""
Enum class representing a... | [
"rayvaleshusha@gmail.com"
] | rayvaleshusha@gmail.com |
dc75f176215a65bfeed775933dcc25c9bfd0a06f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02771/s302588631.py | 3c08a44ee3a970eb4bad4bd40e4b66271cd4ab8b | [] | 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 | 128 | py | A,B,C=map(int,input().split())
if (A==B and A!=C) or (B==C and B!=A) or (C==A and C!=B):
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cc6d22ecfcd67fde6b613179f16017076a966161 | 17a3418a6143ea2d953cf6509aeca7cc6e074686 | /Final-Project/backend/venv/bin/aws_completer | 3a97357ae88d3f6bd91dfee2589a1bd515f52d17 | [] | no_license | francolmenar-USYD/Internet-Software-Platforms | addb69a5582a63877e5f3408d64485a7ca942721 | 9e82ab6e7d0f8d4b3d55789cf5cfcd8e524a85df | refs/heads/master | 2022-04-22T02:07:25.419086 | 2020-04-22T10:02:43 | 2020-04-22T10:02:43 | 256,714,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | #!/mnt/c/Shared/ELEC3609/bird-repo/backend/venv/bin/python3
# Copyright 2012 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
# http://... | [
"francolmenar@outlook.es"
] | francolmenar@outlook.es | |
72848852e83be523f39f31f32ac0dcfc34edae11 | d7b4e2e391e1f15fd7cb4fbf4d9aee598131b007 | /AE_Datasets/R_A/datasets/CWRUFFT.py | 254be0baee6bfeaa9abd1637485dccf4ee008772 | [
"MIT"
] | permissive | wuyou33/DL-based-Intelligent-Diagnosis-Benchmark | eba2ce6f948b5abe68069e749f64501a32e1d7ca | e534f925cf454d07352f7ef82d75a8d6dac5355c | refs/heads/master | 2021-01-02T15:06:29.041349 | 2019-12-28T21:47:21 | 2019-12-28T21:47:21 | 239,673,952 | 1 | 0 | MIT | 2020-02-11T04:15:21 | 2020-02-11T04:15:20 | null | UTF-8 | Python | false | false | 5,624 | py | import os
import torch
import numpy as np
import pandas as pd
from scipy.io import loadmat
from sklearn.model_selection import train_test_split
from datasets.SequenceDatasets import dataset
from datasets.sequence_aug import *
from tqdm import tqdm
#Digital data was collected at 12,000 samples per second
s... | [
"646032073@qq.com"
] | 646032073@qq.com |
0c1c7c59a90d3a47d0f88a3cbbd025f0cc467d3a | 74482894c61156c13902044b4d39917df8ed9551 | /cryptoapis/model/validate_address_request_body_data_item.py | 734ae14dc2265ee6ebf43f95b063cbf521ca71fa | [
"MIT"
] | permissive | xan187/Crypto_APIs_2.0_SDK_Python | bb8898556ba014cc7a4dd31b10e24bec23b74a19 | a56c75df54ef037b39be1315ed6e54de35bed55b | refs/heads/main | 2023-06-22T15:45:08.273635 | 2021-07-21T03:41:05 | 2021-07-21T03:41:05 | 387,982,780 | 1 | 0 | NOASSERTION | 2021-07-21T03:35:29 | 2021-07-21T03:35:29 | null | UTF-8 | Python | false | false | 7,042 | py | """
CryptoAPIs
Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei... | [
"kristiyan.ivanov@menasoftware.com"
] | kristiyan.ivanov@menasoftware.com |
80faed9b37a683651a800576bdc93c0757087338 | 6b19ed8845f7cb020ad49da57a0c0fe85314a274 | /zerver/migrations/0170_submessage.py | 751932249a3011674f642f189788660cb10396ba | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | jahau/zulip | eb4da13858892065591caced88fc9a086fa0e0d2 | 51a8873579b9d4bb95219cd4a5c859fa972fa06b | refs/heads/master | 2021-05-18T03:44:32.003307 | 2020-03-27T22:29:55 | 2020-03-28T19:04:36 | 251,087,399 | 1 | 0 | Apache-2.0 | 2020-03-29T17:11:42 | 2020-03-29T17:11:42 | null | UTF-8 | Python | false | false | 931 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-26 21:54
from __future__ import unicode_literals
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0169_stream_is_a... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
a9cbb2646e980b7d6c69201039cc77287c106129 | a59dcdb8e8b963a5082d4244889b82a4379510f6 | /bemani/tests/test_CardCipher.py | b290ec9ee4bbd90cdec566f7689dae3218fe85c2 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | vangar/bemaniutils | 9fdda035eb29e5e0b874d475fdbfdc8b99aeb003 | 284153ef2e2e40014656fbfeb254c05f3a8c61e8 | refs/heads/trunk | 2023-04-04T04:00:21.088088 | 2023-02-17T03:32:27 | 2023-02-17T03:40:07 | 332,388,243 | 1 | 0 | null | 2021-01-24T07:07:34 | 2021-01-24T07:07:33 | null | UTF-8 | Python | false | false | 1,596 | py | # vim: set fileencoding=utf-8
import unittest
from bemani.common import CardCipher
class TestCardCipher(unittest.TestCase):
def test_internal_cipher(self) -> None:
test_ciphers = [
(
[0x68, 0xFC, 0xA5, 0x27, 0x00, 0x01, 0x04, 0xE0],
[0xC7, 0xD0, 0xB3, 0x85, 0xA... | [
"dragonminded@dragonminded.com"
] | dragonminded@dragonminded.com |
154cc575312b41fe86166cc220dbc83fdd0a36cd | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/fishnet99/src/config.py | 09542e1e0df894872cd2291de2ec208e8be86557 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 1,681 | py | # Copyright 2021 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 to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
15d9fcafc6d3e710f817f1f63f034500a2afd560 | f4bc045760aa9017ff08dfabd7eb8dd2134e9da8 | /src/security/errorHandlers.py | e38e1dcbbad4081d13de896d04afde638fd374be | [
"MIT"
] | permissive | nagasudhirpulla/wrldc_mis_flask_ui | 196aab28eb1120e682f2d58c01b1261236da2145 | fc438a01ba29200591f9f1ae53fab3d716169ffd | refs/heads/master | 2023-03-10T22:31:07.317901 | 2021-02-25T05:44:55 | 2021-02-25T05:44:55 | 291,735,397 | 0 | 3 | MIT | 2020-12-07T06:16:39 | 2020-08-31T14:19:26 | Python | UTF-8 | Python | false | false | 674 | py | from flask import render_template
def page_forbidden(err):
return render_template('message.html.j2', title='403 Forbidden',
message='You must be logged in to access this content.'), 403
def page_unauthorized(err):
return render_template('message.html.j2', title='401 Unauthorized',... | [
"nagasudhirpulla@gmail.com"
] | nagasudhirpulla@gmail.com |
3b362a09495427acbe39d45d7eb9a5175fe36c3b | 83179c14ae81a2ed0733812195747340c9ef0555 | /Takahashi_Unevoleved.py | 9b54d332f59c6ad8eaf04e41b44dac034d700298 | [] | no_license | susami-jpg/atcoder_solved_probrem | 20f90ba2e3238c6857e370ed04a8407271ccc36f | 741a4acd79f637d6794c4dbcc2cad1c601b749fc | refs/heads/master | 2023-07-21T12:38:27.460309 | 2021-08-29T10:26:31 | 2021-08-29T10:26:31 | 375,561,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 19 00:37:30 2021
@author: kazuk
"""
x, y, a, b = map(int, input().split())
def is_ok(t):
cost = x
cnt = 0
while 1:
if cnt == t:
break
if cost * a < b:
cost *= a
cnt += 1
else:
... | [
"kazuki_susami@icloud.com"
] | kazuki_susami@icloud.com |
91f123874a66cec1442164b3cc12adf9525b11a9 | 2fa102b20ea99d796cc3677c9305f1a80be18e6b | /cf_977_a.py | 6432622d333ee0d5453c12b811960b283a09f017 | [] | no_license | pronob1010/Codeforces_Solve | e5186b2379230790459328964d291f6b40a4bb07 | 457b92879a04f30aa0003626ead865b0583edeb2 | refs/heads/master | 2023-03-12T11:38:31.114189 | 2021-03-03T05:49:17 | 2021-03-03T05:49:17 | 302,124,730 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | a,b = list(map(int, input().split()))
for i in range(b):
c = a%10
if c == 0:
a //= 10
else:
a = a - 1
print(a) | [
"pronobmozumder.info@gmail.com"
] | pronobmozumder.info@gmail.com |
f55908dbef33fc48ad2e595c0ff179d825e7d76f | 3ca1a812ab4e7278e88a9bc6a183e341803cb9ad | /2022/06/main.py | cbf8d1ad542bad6d1a84954a42298b0f10a5285a | [] | no_license | acarlson99/advent-of-code | 11608a436e3fd4eadc8a3960811b6e495859d024 | be7c0cf337a5c70be12df6812cbddb48d7207495 | refs/heads/master | 2023-05-25T14:57:28.883802 | 2023-05-20T01:36:48 | 2023-05-20T01:36:48 | 225,130,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | #!/usr/bin/env python3
import fileinput
if __name__=='__main__':
lines = []
for line in fileinput.input():
lines.append(line.strip())
s = lines[0]
print(s)
for i in range(4,len(s)):
rl = s[i-4:i]
if len(set(rl))==4:
print(rl)
print(set(rl))
... | [
"a@a.a"
] | a@a.a |
7870dadc7fcf4f57d56e72d69ef936c12785c0d2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02725/s087554992.py | 731dabb171585e41f2a3d2db76f359d80c174b9b | [] | 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 | 185 | py | import sys
from array import array
read = sys.stdin.buffer.read
k, n, *A = map(int, read().split())
A += [k + A[0]]
far = max(array("l", [x - y for x, y in zip(A[1:], A)]))
print(k-far) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e445505e34d8a75cf9f93fe8268057531f532fa4 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/common/Lib/ctypes/test/test_errcheck.py | e5cdb39ddec7c316011427cc60216299774d573d | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 153 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/common/Lib/ctypes/test/test_errcheck.py
import sys
from ctypes import *
| [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
842aaeca36cb8fe937d897dc527eb11e4f3aafd3 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Luhb2KStP2wiX6FMp_7.py | 03174c243680289a3989162ffdf71abc0d1a5d1b | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | """
Create a function to return the amount of potatoes there are in a string.
### Examples
potatoes("potato") ➞ 1
potatoes("potatopotato") ➞ 2
potatoes("potatoapple") ➞ 1
### Notes
N/A
"""
potatoes=lambda p:p.count('p')
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f46d78197be08429fc60e17a7d504549e4bbc2ad | e9f9e38f935748ee043647452a2bfb949c30ff46 | /backend/event/migrations/0001_initial.py | d859b916059be0a1c063e392df533f02287ed429 | [] | no_license | crowdbotics-apps/test2-19679 | 19ff09828e3c4241bc48ff827cf22586b68718d5 | 788c724e16b87cbf21d980b1baf777f84751d388 | refs/heads/master | 2022-12-01T04:41:52.053674 | 2020-08-20T08:10:21 | 2020-08-20T08:10:21 | 288,945,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,766 | py | # Generated by Django 2.2.15 on 2020-08-20 08:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b5555f4a7a53a167eaca76b9c45cdc9e564dcdde | ee880f62a8ffc1b8544695d3bc1f4bcf809965ab | /load.py | a992777614213450331b4e97154455b4acf0eff7 | [] | no_license | kosyachniy/twianalysis | 1ba3ba6319cbeedf4f19e83ff31f01ced8b26e54 | 514a0ebb7829a4abb340d499e1151b5c55f26f80 | refs/heads/master | 2021-01-01T16:01:29.477061 | 2017-07-29T18:31:25 | 2017-07-29T18:31:25 | 97,756,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import requests, time, json
from bs4 import BeautifulSoup
url='http://mfd.ru/news/company/view/?id=3&page='
with open('db.txt', 'w') as file:
for s in range(893):
query=str(s)
page = requests.get(url + query).text
soup = BeautifulSoup(page, 'lxml')
table = soup.find('table', id='issuerNewsList')
tr=table.f... | [
"polozhev@mail.ru"
] | polozhev@mail.ru |
ab909628407b321d527a8c15cae9362a49b3f812 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /tests/unit/modules/cloud/amazon/test_s3_bucket_notification.py | cc78ea111cf57ad2d6fb9fc23601859b81494d07 | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,695 | py | # Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import pytest
from ansible_collections.notstdlib.moveitallout.tests.unit.compat.mock import MagicMock, patch
from ansible_collections.notstdlib.moveitallout.tests.unit.modules.utils import AnsibleExi... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
c9f649966413184912b0a18b36262eb636f1c1bc | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/win32/test/test_win32rcparser.py | 02510974cd502991311d8e0bd3161538cefaf9e1 | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | import os
import sys
import tempfile
import unittest
import win32con
import win32rcparser
class TestParser(unittest.TestCase):
def setUp(self):
rc_file = os.path.join(os.path.dirname(__file__), "win32rcparser", "test.rc")
self.resources = win32rcparser.Parse(rc_file)
def testStrings(self):
... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
cdff15de0b8ec7264a8c9b69e2d3a96475f6c8de | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/mongodb/apis/DescribeSecurityIpsRequest.py | b2c3816b3457164790bb60201ef3ace536c5987e | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,347 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
9b3a33eba56dd2a09d23dcb118330a360473d9ab | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/93704/kaggle-allstate-purchase-master/pre_parse.py | 2e32dced90c7215c9210ca3e6123bde503f8189e | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,057 | py | """
Project: http://www.kaggle.com/c/allstate-purchase-prediction-challenge
Ranking: 9th from 1571 teams
Work Period: 12-may-2014 to 19-may-2014
Author: Euclides Fernandes Filho
email: euclides5414@gmail.com
"""
import numpy as np
import pandas as pd
from os import path
import conv
from time import sleep,... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
3c7835191a26ec3a57d8671e9429790fd4def095 | 98b1956594921aeef6e4b3c0f5b15703c3eee6a7 | /atom/nucleus/python/nucleus_api/api/performance_api.py | 49a6050dfbe4ba042e42fdfbe7990e4308316eee | [
"Apache-2.0"
] | permissive | sumit4-ttn/SDK | d4db3dcac077e9c9508a8227010a2ab764c31023 | b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff | refs/heads/master | 2022-11-25T14:05:16.911068 | 2020-08-09T17:31:55 | 2020-08-09T17:31:55 | 286,413,715 | 0 | 0 | Apache-2.0 | 2020-08-10T08:03:04 | 2020-08-10T08:03:03 | null | UTF-8 | Python | false | false | 104,391 | py | # coding: utf-8
"""
Hydrogen Atom API
The Hydrogen Atom API # noqa: E501
OpenAPI spec version: 1.7.0
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 ... | [
"hydrogen@Hydrogens-MacBook-Pro.local"
] | hydrogen@Hydrogens-MacBook-Pro.local |
0f294442352392103ed94eb88fc76668f87af676 | 41acd1d7fcfba63d3b06b82d18d8a4d97dd40927 | /old/test_selenium.py | 9e85c7310eb625b00eacc66736b190a955884302 | [] | no_license | wancy86/learn_python | a33e3091b271840c8bf89cbbf991fe33b951a266 | 44e45a91361d6d46b9ab4a172af7e48e0f6df7dd | refs/heads/master | 2021-01-15T15:42:45.377381 | 2016-12-06T00:36:46 | 2016-12-06T00:36:46 | 55,651,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | from selenium import webdriver
# 创建一个chrome实例
driver = webdriver.Chrome()
#这个是制定google浏览器,
#指定IE webdriver
#driver webdriver.Ie(),
#指定Firefox webdriver driver webdriver.Firefox()
# 到百度主页
driver.get("http://www.baidu.com")
# 定位到搜索输入框
inputElement = driver.find_element_by_xpath ("//input[@name='wd']")
# 输入查找内容
i... | [
"wancy86@sina.com"
] | wancy86@sina.com |
7280a8c038a404bc9a0f451fcc58c89c88927b29 | 5a8c7a330d6be1fcc90ee0ef298fcecfe204951b | /lectures/class_two/classes.py | 83a85c6c964abf2971c24b6e5a15be413b8f2201 | [] | no_license | EricSchles/nyu_python_class | 299448b55c03dcd90a8606de1df13f52982628eb | 2b19bf70f6b233e00fadfe7664ebd3b635e9df44 | refs/heads/master | 2021-01-25T05:45:11.997409 | 2017-05-17T15:40:00 | 2017-05-17T15:40:00 | 80,680,329 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | import math
import statistics as st
class DescribeData:
def __init__(self, List): #stands for initialize
self.List = List
def describe(self):
print("Here are some statistics about our data")
print("---------------------------------------")
print("Our list has ",len(self.List),... | [
"ericschles@gmail.com"
] | ericschles@gmail.com |
2bd407814b0f7d9875e56a9543aa05be1470ed27 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/keras/applications/vgg16.py | 76c77c1f512a4b52134aed97846b7a911effe39e | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d16551dce42289cab53b58657d749a6e4322069372faf4930082d8bd2d661d1e
size 518
| [
"github@cuba12345"
] | github@cuba12345 |
00ebdf6d66acc5dca1a037cfbaf180fb57b81fa0 | ad5ad404d24f1ef195d069b2e9d36b1a22cfd25d | /libs/llvm-meta/clang-tools-extra/clang-tools-extra.py | 6e159d72f9efac1c8dc04b7f11484ed7b6b2585c | [
"BSD-2-Clause"
] | permissive | arruor/craft-blueprints-kde | 6643941c87afd09f20dd54635022d8ceab95e317 | e7e2bef76d8efbc9c4b84411aa1e1863ac8633c1 | refs/heads/master | 2020-03-22T17:54:38.445587 | 2018-07-10T11:47:21 | 2018-07-10T11:47:21 | 140,423,580 | 0 | 0 | null | 2018-07-10T11:43:08 | 2018-07-10T11:43:07 | null | UTF-8 | Python | false | false | 563 | py | # -*- coding: utf-8 -*-
import info
class subinfo(info.infoclass):
def setTargets(self):
self.versionInfo.setDefaultValues(packageName="clang-tools-extra", gitUrl="[git]https://git.llvm.org/git/clang-tools-extra.git")
def setDependencies(self):
self.runtimeDependencies["virtual/base"] = "defa... | [
"vonreth@kde.org"
] | vonreth@kde.org |
bb9d04bc3c077bf44239e3310d88723efd751376 | d1ad7bfeb3f9e3724f91458277284f7d0fbe4b2d | /python/002-tcp-server/server.py | 496f0090ef0b35aa6ca74b4f0ea938f3a4f0629a | [] | no_license | qu4ku/tutorials | 01d2d5a3e8740477d896476d02497d729a833a2b | ced479c5f81c8aff0c4c89d2a572227824445a38 | refs/heads/master | 2023-03-10T20:21:50.590017 | 2023-03-04T21:57:08 | 2023-03-04T21:57:08 | 94,262,493 | 0 | 0 | null | 2023-01-04T21:37:16 | 2017-06-13T22:07:54 | PHP | UTF-8 | Python | false | false | 459 | py | import socket
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = socket.gethostbyname()
port = 444
server_socket.bind((host, port))
server_socket.listen(3) # max num of connections
while True:
client_socket, address = server_socket.accept()
print(f'Received connection from {address... | [
"qu4ku@hotmail.com"
] | qu4ku@hotmail.com |
3366f2acd4ae0124323c631d854eb5b0713dc2b2 | 7b8d505758cbadb002c9aa4449caf643836a829e | /tbkt/apps/task/urls.py | d2465afd980e2c934d98983da8ae0114cf218d0b | [] | no_license | GUAN-YE/myproject | 455a01dcc76629fc33d8154efcba9ef1af0faaa9 | 21e48a150dd6009a6bf2572b2d42eee20fbcbdfc | refs/heads/master | 2020-03-07T22:51:41.821356 | 2018-04-02T14:13:19 | 2018-04-02T14:13:19 | 127,765,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # coding: utf-8
from django.conf.urls import include, url, patterns
# 照顾老版本语文,修改老接口保证参数、返回数据不变
urlpatterns = patterns('apps.task.views',
(r"^sms$", "p_givesms"), # 发短信作业
(r"^checkNum$", "p_check_num"), # 带检查作业数
) | [
"15670549987@163.com"
] | 15670549987@163.com |
91d7f63a68a0f38b448fd8e5cf361d5ad1d37cad | 67b7e6d2c08f08403ec086c510622be48b8d26d8 | /src/test/tinc/tincrepo/mpp/gpdb/tests/storage/aoco_compression/__init__.py | 998ff57cee46fd7c1974553b91f2eae5eca02cba | [
"Apache-2.0",
"PostgreSQL",
"LicenseRef-scancode-rsa-md4",
"OLDAP-2.8",
"HPND-sell-variant",
"BSD-4-Clause-UC",
"BSD-3-Clause",
"Zlib",
"LicenseRef-scancode-zeusbench",
"LicenseRef-scancode-mit-modification-obligations",
"OpenSSL",
"MIT",
"LicenseRef-scancode-other-copyleft",
"bzip2-1.0.6"... | permissive | sshyran/gpdb | 41012411d22b0294204dfb0fe67a1f4c8d1ecaf6 | 2d065ecdd2b5535cb42474f17a0ee6592b4e6837 | refs/heads/master | 2023-04-09T14:05:44.030212 | 2016-11-12T08:33:33 | 2016-11-12T08:34:36 | 73,544,159 | 0 | 0 | Apache-2.0 | 2023-04-04T00:30:10 | 2016-11-12T09:43:54 | PLpgSQL | UTF-8 | Python | false | false | 63,732 | py | """
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | [
"jyih@pivotal.io"
] | jyih@pivotal.io |
9d6d65fc99c6672c9e5e685bdd430006548c5761 | 41a008ceea2ae75b94cf2110a1370af1f789ff3f | /lava_scheduler_app/south_migrations/0026_auto__add_field_device_device_version.py | e529cb46a7b185e6da7d6aff50367fac8771b08e | [] | no_license | guanhe0/lava_v1 | 937916a0009c0a3f801e61f7580b96e324da64b1 | c49e753ce55104e3eadb0126088b7580a39446fe | refs/heads/master | 2022-10-28T02:33:52.924608 | 2017-01-04T07:24:59 | 2017-01-04T08:43:37 | 78,068,030 | 0 | 1 | null | 2022-10-07T02:00:16 | 2017-01-05T01:36:27 | Python | UTF-8 | Python | false | false | 13,044 | py | # -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Device.device_version'
db.add_column('lava_scheduler_app_device', 'device_version',
self.gf('django.db.models.field... | [
"fanghuangcai@163.com"
] | fanghuangcai@163.com |
a396dee88c812cab4ef400af373230a30d9681b9 | 59a7f64d91b8466074630f0006f048cad66f01e8 | /focuslock/noneWidgets.py | 19b199146ee8eff83e006db7a537ec2367e25328 | [] | no_license | amancebo/acadia_new | cda1eafba65af71e0c4889f25c7dd527aa06abdc | 0c4bbd382140b92a85338b8b3335b2b660b8266b | refs/heads/master | 2021-03-30T16:49:46.252851 | 2015-06-01T23:46:22 | 2015-06-01T23:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | #!/usr/bin/python
#
# Dummy classes for use when you have some but not all
# of the focus lock functionality.
#
# Hazen 12/09
#
# Fake QPD
class QPD():
def __init__(self):
pass
def qpdScan(self):
return [1000.0, 0.0, 0.0]
def shutDown(self):
pass
# Fake nano-p... | [
"amancebo8@gmail.com"
] | amancebo8@gmail.com |
a277ddf116ac88b0ac509ddd3d6c40bd7491a945 | 896f6d118902da9d207783c623ef9ef81076dbbe | /core/arxiv/submission/domain/event/flag.py | c728c2b127e2616322ecca1990ace5cf2c25854e | [
"MIT"
] | permissive | Based-GOD-FUCKED-MY-Bitch-FUCKZIG/arxiv-submission-core | ab3b5f52053e4240a8ccecbbb2bdabcf106f5531 | 4cc26d0c47bc4a8afb8da75da302f050d69b07a7 | refs/heads/master | 2020-07-04T08:01:51.178399 | 2019-07-23T17:38:29 | 2019-07-23T17:38:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,334 | py | """Events/commands related to quality assurance."""
from typing import Optional, Union
from dataclasses import field
from .util import dataclass
from .base import Event
from ..flag import Flag, ContentFlag, MetadataFlag, UserFlag
from ..submission import Submission, SubmissionMetadata, Hold, Waiver
from ...exception... | [
"brp53@cornell.edu"
] | brp53@cornell.edu |
9f2777d2bca827752a0dc1fd85b9000f6c520599 | 6d54a7b26d0eb82152a549a6a9dfde656687752c | /scripts/py_matter_idl/matter_idl/lint/lint_rules_parser.py | 9499e360399230add24b5ebd18a3326bfd70a103 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | project-chip/connectedhomeip | 81a123d675cf527773f70047d1ed1c43be5ffe6d | ea3970a7f11cd227ac55917edaa835a2a9bc4fc8 | refs/heads/master | 2023-09-01T11:43:37.546040 | 2023-09-01T08:01:32 | 2023-09-01T08:01:32 | 244,694,174 | 6,409 | 1,789 | Apache-2.0 | 2023-09-14T20:56:31 | 2020-03-03T17:05:10 | C++ | UTF-8 | Python | false | false | 12,005 | py | #!/usr/bin/env python
import logging
import os
import xml.etree.ElementTree
from dataclasses import dataclass
from enum import Enum, auto
from typing import List, MutableMapping, Optional, Tuple, Union
from lark import Lark
from lark.visitors import Discard, Transformer, v_args
try:
from .types import (Attribute... | [
"noreply@github.com"
] | project-chip.noreply@github.com |
b752d574ddacb2a426c671af560d8757f88254a7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03434/s582963555.py | 202b3b79bca8e1fc753461f081b5a5eff838303c | [] | 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 | 447 | py | """Boot-camp-for-Beginners_Easy010_B_Toll-Gates_29-August-2020.py"""
import numpy as np
N = int(input())
a = list(map(int, input().split()))
a = sorted(a, reverse=True)
Alice = [a[i] for i in range(0, len(a), 2)]
Bob = [a[i] for i in range(1, len(a), 2)]
#print(Alice)
#print(Bob)
s_max = 0
for i in range(len(Alice))... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b263b1252c936c5b02eccbceeade34b685d6ea60 | bc2effb57e82128b81371fb03547689255d5ef15 | /백준/다이나믹 프로그래밍/2579(계단 오르기).py | 8007584be6e6c9eadf04a66b339c98f4460e1283 | [] | no_license | CharmingCheol/python-algorithm | 393fa3a8921f76d25e0d3f02402eae529cc283ad | 61c8cddb72ab3b1fba84171e03f3a36f8c672648 | refs/heads/master | 2023-03-01T11:00:52.801945 | 2021-01-31T13:38:29 | 2021-01-31T13:38:29 | 229,561,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | """
1.패턴 찾기
- 높이가 1인 경우
> nums[0]을 출력시킨다
- 높이가 2인 경우
> nums[0] + nums[1]을 출력시킨다
> 한칸씩 올라온 경우이기 때문
- 높이가 3이상인 경우
> case1 = nums[index] + nums[index - 1] + dp[index - 3]
case2 = nums[index] + dp[index - 2]
dp[index] = max(case1, case2)
"""
import sys
size = int(sys.stdin.readline())
nums =... | [
"54410332+chamincheol@users.noreply.github.com"
] | 54410332+chamincheol@users.noreply.github.com |
8127e734bff3bf1170acb97c2ed2a4638f4c4742 | 78e1a576b128c25b0e85234675f820a1d2d54595 | /urls_collector/migrations/0001_initial.py | a6930c1d867a6a24ca22fefa6f704642d985ef9d | [] | no_license | Evgenus/comeet-pdf-challenge | 7e0e3af9ddfd4558c37284d14c87ff5923b53e93 | 9dc3a3b1bbab0b06ed4f1a35f86fbb2826b64858 | refs/heads/master | 2021-05-10T10:20:26.112256 | 2018-01-22T13:32:36 | 2018-01-22T13:32:36 | 118,379,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-20 12:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"chernyshov.eugene@gmail.com"
] | chernyshov.eugene@gmail.com |
9ea3a93d380538a95060def4a48b25f559346ddf | c8836d495a97c1c5183169d7c33c909ae579f69d | /worldcup/worldcup/matches/load_stage2_matches.py | db3ed408225dfda250c4b39e72393539ba1e7be8 | [
"MIT"
] | permissive | raprasad/worldcup | 4042f54231083d627d9cb9c9ed764eaf5914984e | e993bb3345d4be339211fac2698832886973ec7c | refs/heads/master | 2021-01-01T19:42:49.034715 | 2014-05-23T20:39:30 | 2014-05-23T20:39:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | from datetime import datetime
from worldcup.matches.models import *
"""
# match num team 1 team 2 grid group date time
matches = '''49 1a 2b 1 6/26 16:00 Nelson Mandela Bay
50 1c 2d 1 6/26 20:30 Rustenburg
51 1d 2c 2 6/27 16:00 Mangaung / Bloemfontein
52 1b 2a 2 6/27 20:30 Johannesburg
53 1e 2f 3 6/28 16:00 ... | [
"raman_prasad@harvard.edu"
] | raman_prasad@harvard.edu |
3beb0061ecb0b50b4fea93fde1963afe43fda6aa | 2b16a66bfc186b52ed585081ae987e97cab8223b | /test/db/test_APIAliasGenerate.py | c488b48d65177957b58186d5b9fd019dedf7f3cd | [] | no_license | OldPickles/SKnowledgeGraph | d334000c7a41dd5014fd59154bbe070fcc754e4c | 6d131ad6bf3a09a5ce6461fa03690117d703c9e8 | refs/heads/master | 2022-01-09T11:27:00.043712 | 2019-06-06T07:57:06 | 2019-06-06T07:57:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,717 | py | from unittest import TestCase
from db.alias_util import APIAliasGeneratorFactory
from db.model import APIAlias, APIEntity
class TestAPIAliasGenerate(TestCase):
def test_get_method_qualifier_parameter_type(self):
generator = APIAliasGeneratorFactory.create_generator(
APIAlias.ALIAS_TYPE_SIMPLE... | [
"467701860@qq.com"
] | 467701860@qq.com |
bec3c4222a01732f770d2e955ab9729e86491cfe | e0b6b5708aa81fcb6f9bae26be06b7f15984274c | /leetcode/most-common-word/epicarts.py | 35e87f0d0999a72290e69ce5e72d45587680d89f | [] | no_license | DongLee99/algorithm-study | aab021b71f04140bbad2842b868ef063e7bf1117 | aebe1bc4e461be47b335337c6f05d6a25e19e80a | refs/heads/master | 2023-03-18T05:39:52.708544 | 2021-03-17T14:56:05 | 2021-03-17T14:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import re
from typing import List
import collections
class Solution:
def mostCommonWord(self, paragraph: str, banned: List[str]) -> str:
words = re.sub('[^\w]', ' ', paragraph).lower().split()
words = [word for word in words if word not in banned]
counts = collections.Counter(words)
... | [
"0505zxc@gmail.com"
] | 0505zxc@gmail.com |
2b585ec0903bda35bd59d65a1be1bd1fa14c9967 | a2c7bc7f0cf5c18ba84e9a605cfc722fbf169901 | /python_1001_to_2000/1167_Minimum_Cost_to_Connect_Sticks.py | 54e5622039c7c0898974b8651fd030e7ebadff08 | [] | no_license | jakehoare/leetcode | 3bf9edd499034ce32be462d4c197af9a8ed53b5d | 05e0beff0047f0ad399d0b46d625bb8d3459814e | refs/heads/master | 2022-02-07T04:03:20.659422 | 2022-01-26T22:03:00 | 2022-01-26T22:03:00 | 71,602,471 | 58 | 38 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | _author_ = 'jake'
_project_ = 'leetcode'
# https://leetcode.com/problems/minimum-cost-to-connect-sticks/
# You have some sticks with positive integer lengths.
# You can connect any two sticks of lengths X and Y into one stick by paying a cost of X + Y.
# You perform this action until there is one stick remaining.
# Re... | [
"jake_hoare@hotmail.com"
] | jake_hoare@hotmail.com |
219c8305644dc74a59f5c9a419b18ef748fdc326 | 8af3b7ed8c4694dd0109de50e9b235ec35838d02 | /src/purchase/utils.py | a9ae4a00cd9510a7c0bd6b8a62347aad8bb1895f | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | vishalhjoshi/croma | 9b8640a9ce46320e865211c31fb3b4b503d47f6f | 5b033a1136a9a8290118801f0e7092aebd9d64cc | refs/heads/master | 2020-06-19T14:57:42.909264 | 2019-05-16T20:10:58 | 2019-05-16T20:10:58 | 196,753,381 | 1 | 0 | MIT | 2019-07-13T18:23:29 | 2019-07-13T18:23:29 | null | UTF-8 | Python | false | false | 1,979 | py |
def create_PurchaseInvDtl_JSON_QuerySet(PurInvDtl_queryset):
sale_dtl_item_arr = []
for item in PurInvDtl_queryset:
item_set = {}
batch_instance = item.get_batch_instance()
item_set['item_name'] = str(item.get_item_name())
item_set['item_id'] = str(item.get_item_id())
item_set['batch_no'] = str(item.batc... | [
"jaisinghal48@gmail.com"
] | jaisinghal48@gmail.com |
75575eb2638dceef09b04424f6e74afdc222d8e6 | 1838f4b35088773c7491122e3b2104d987245abc | /chanceServer/urls.py | 1de44501e2d0151747f7dcb04b12d7f288eb3ca0 | [] | no_license | Neeky/chanceServer | d1393d46f3ba28fd07e7497be0d2f94bb03e05fe | 944ffad9277884518d567bb10c47e0cb6fb2025b | refs/heads/master | 2021-01-06T20:44:27.333328 | 2017-08-12T04:36:49 | 2017-08-12T04:36:49 | 99,553,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | """chanceServer URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"1721900707@qq.com"
] | 1721900707@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.