blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
791498b652f781db87563a2348696f9f4d4eea03 | 3ec9d3aa7e59475683dba30a87ca68242a7ec181 | /cn/study/days100/days09/07继承和多态.py | 48972e44638ca8058e3875cb783845f0e4e8b00e | [
"Apache-2.0"
] | permissive | Jasonandy/Python-X | 58bf36499572cdfb7d7bf80c6a3cd0c818f62c1e | 2f02b9a17bd5495dd1f8746b191f11ec2d7bccbe | refs/heads/master | 2021-06-16T17:07:29.277404 | 2021-03-07T14:17:05 | 2021-03-07T14:17:05 | 175,353,402 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,889 | py | """
刚才我们提到了,可以在已有类的基础上创建新类,这其中的一种做法就是让一个类从另一个类那里将属性和方法直接继承下来,
从而减少重复代码的编写。提供继承信息的我们称之为父类,也叫超类或基类;
得到继承信息的我们称之为子类,也叫派生类或衍生类。
子类除了继承父类提供的属性和方法,还可以定义自己特有的属性和方法,所以子类比父类拥有的更多的能力
,在实际开发中,我们经常会用子类对象去替换掉一个父类对象,这是面向对象编程中一个常见的行为,对应的原则称之为里氏替换原则。
下面我们先看一个继承的例子
[类似java里面的继承 extends ]
"""
class Person(object):
"""人"""
... | [
"jasonandy@hotmail.com"
] | jasonandy@hotmail.com |
46a2fe96bc4b7a85e391d70969652cb265249879 | 650ef216f8f51ea4ff653f36cb76552c5733c508 | /coursebuilder/modules/skill_map/rdf.py | 674ea2515e28d9504eece7fabe990f2f19ae7ce9 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | ram8647/gcb-clone-v111 | 3a75dda8e63a823364a80cd8642da016750ee7d1 | 64f5ea13a8d85b9ef057dddae888a427b1396df6 | refs/heads/master | 2021-01-21T06:43:13.433579 | 2017-10-04T23:14:40 | 2017-10-04T23:14:40 | 91,584,226 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,997 | py | # Copyright 2015 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 ... | [
"psimakov@google.com"
] | psimakov@google.com |
87b858eba77ece95bc4a7f04bbcc8b76bff4a687 | 57754174c64eff434e3a59e53576dcfd97725b1a | /3_getStarted/mostrarImagen.py | 35b6b29c4240642d5ce1f1067711c02791937aa0 | [] | no_license | dbetm/learning-opencv | 4f7db4ba23049cf23cf869e0c9238ec0666c1555 | 2c6f4185a54a1b1cd93739993c41d2500f475cb1 | refs/heads/master | 2020-04-12T14:35:03.052444 | 2019-11-05T05:16:33 | 2019-11-05T05:16:33 | 162,556,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | import numpy as np
import cv2
# cv2.IMREAD_COLOR: carga una imagen de color. Cualquier transparencia de la imagen será ignorada. Es el indicador (o bandera) predeterminado. -> 1
# cv2.IMREAD_GRAYSCALE: carga la imagen en modo de escala de grises -> 0
# cv2.IMREAD_UNCHANGED: carga la imagen como sin alteraciones incluy... | [
"davbetm@gmail.com"
] | davbetm@gmail.com |
96b15076507a092b80135ac10563b9791d70c062 | 20ed1567d088ae931b6aa9f5b621056b80c03e6b | /main/wsgi.py | 0dfc857b5721de5aff5e1f0428f99d98855488d5 | [
"MIT"
] | permissive | mrCrendel/django-seo-inline | b324a1ce8e612e148c0dfeb5614e6f696d6fa5ac | 56b9bc67b7b689a5931c7403e43f91cba44c2229 | refs/heads/master | 2020-09-27T07:29:47.090706 | 2019-12-21T07:24:14 | 2019-12-21T07:24:14 | 226,464,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for django_seo 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"tggrmi@gmail.com"
] | tggrmi@gmail.com |
ca3a65f4fb9d4556bcd4dbad56b31357ec088242 | 7be001851666ca495011f5d196558dbf1d7f399d | /baselines/models_keras/gpt/loss_evaluate.py | 103e290aca70583807444945e805d72314a4199e | [] | no_license | China-ChallengeHub/FewCLUE | 0a97d1b2a0dd7082a692ce7c084c07cfb51e3b85 | 533427c40fd5ae64355b96ccdc012db4c27d9ca1 | refs/heads/main | 2023-04-16T22:41:43.903601 | 2021-04-30T14:49:22 | 2021-04-30T14:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,293 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# author:gelin
# datetime:2021/4/24 11:56 上午
# software: PyCharm
"""
各个数据集的loss和evaluate
"""
import numpy as np
from bert4keras.backend import keras
from config import *
current_task_name = TaskName.CECMMNT
class Evaluator(keras.callbacks.Callback):
def __init__(se... | [
"brightmart@hotmail.com"
] | brightmart@hotmail.com |
b9609da83651665602bb7a8e11d67ff5bff95b0a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/2287.py | 0b67f2c959d973e51ae1262f00c35d492a6bc446 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | #!usr/bin/python
import math
filein = open("input.txt","r")
fileout = open("output.txt","w")
ffile = formater(filein)
c=0
for i in ffile:
c=c+1
fileout.write("Case #"+str(c)+": "+str(fairnumbers(i[0],i[1]))+"\n")
print(fairnumbers(i[0],i[1]))
fileout.close()
def formater(filein):
ffile = []
intervals = []
for... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1638007cd3e0fc0404185a93d6244c30d6af8bc2 | be60deba39fb2c4ba04c32222666d8513524f5de | /tools/snippets/benchmark/python/numpy/benchmark.py | 7194f846254ee29b1838c42c6f18b49a44e4f9f8 | [
"Apache-2.0",
"MIT",
"SunPro",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jroell/stdlib | c7c418a60e460c556408d20dd925069e590b6b32 | 8400dff8ed6cd96e30b97b8dade5c856999f3394 | refs/heads/develop | 2023-07-19T18:56:06.058340 | 2021-02-08T04:42:29 | 2021-02-08T04:42:29 | 338,688,797 | 0 | 0 | Apache-2.0 | 2023-07-05T15:32:26 | 2021-02-13T23:10:24 | null | UTF-8 | Python | false | false | 2,740 | py | #!/usr/bin/env python
#
# @license Apache-2.0
#
# Copyright (c) 2021 The Stdlib 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
#
# ... | [
"kgryte@gmail.com"
] | kgryte@gmail.com |
05ae2d017d30acc37f52e32c344db1abd1e58a57 | d01eebec45e7fa3aab8335b42ca6f343bab7e175 | /d04/Report.py | e39d73c7922b25fef108bc27675241ba227516ad | [] | no_license | vincenttuan/Ntnu_202007 | b1e7fed66d035941c912847a98b24cc6627c1e16 | 54f7197ef8532dfd71ee26790e5462e48d72bf78 | refs/heads/master | 2022-11-24T06:01:50.157978 | 2020-07-21T06:58:45 | 2020-07-21T06:58:45 | 279,769,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | file = open('report.txt', 'r', encoding='utf-8')
data = file.read()
print(data)
shares = int(data[10:14])
cost = float(data[22:27])
price = float(data[38:41])
bal = shares * (price - cost)
print("賺" if bal >= 0 else "賠", bal)
nums = ''.join([x for x in data if x.isdigit() or x == '.'])
print(nums)
| [
"vincentjava@yahoo.com.tw"
] | vincentjava@yahoo.com.tw |
0dbba7c678bdfeba1883eb80a7b0e999426aef0e | 7deda84f7a280f5a0ee69b98c6a6e7a2225dab24 | /Doctor/migrations/0001_initial.py | 2cf3b0ac95d2d7eb0b97514bf31a4be47c745924 | [] | no_license | Cornex-Inc/Coffee | 476e30f29412373fb847b2d518331e6c6b9fdbbf | fcd86f20152e2b0905f223ff0e40b1881db634cf | refs/heads/master | 2023-01-13T01:56:52.755527 | 2020-06-08T02:59:18 | 2020-06-08T02:59:18 | 240,187,025 | 0 | 0 | null | 2023-01-05T23:58:52 | 2020-02-13T05:47:41 | Python | UTF-8 | Python | false | false | 5,827 | py | # Generated by Django 2.1 on 2019-12-08 17:44
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),
]
opera... | [
"khm4321@naver.com"
] | khm4321@naver.com |
b8fa57ab78564659d760064bba3cf36da391e29b | 25910366962be1150c3e7ff6469778ec57de1b3c | /fftools/summary.py | 283978f7cb44dead05ad410cd5c34d0e670e91ae | [] | no_license | hainm/fftools | 35b3274f4b61043721d0be346abff9a46336118d | aaf02d4f5ae0a23805c0358d319a73c8d2798f87 | refs/heads/master | 2016-09-06T06:01:58.266012 | 2015-08-28T15:26:00 | 2015-08-28T15:26:00 | 38,908,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!/usr/bin/env python
import sys
import parmed as pmd
import pytraj as pt
from collections import Counter
fname = '3gx5.14sb.gaff.parm7'
parm = pmd.load_file(fname)
print('resname set', set(res.name for res in parm.residues))
print('total charge : ', sum(atom.charge for atom in parm.atoms))
print(pmd.tools.summary... | [
"hainm.comp@gmail.com"
] | hainm.comp@gmail.com |
1877b21592966e06af6ce191616e8f12078f7ff9 | d916a3a68980aaed1d468f30eb0c11bfb04d8def | /2021_06_09_boats_to_save_people.py | cac4c30ab08ed6d2eddbeed96612ea4b14f24e97 | [] | no_license | trinhgliedt/Algo_Practice | 32aff29ca6dc14f9c74308af1d7eaaf0167e1f72 | 480de9be082fdcbcafe68e2cd5fd819dc7815e64 | refs/heads/master | 2023-07-10T23:49:16.519671 | 2021-08-11T05:11:34 | 2021-08-11T05:11:34 | 307,757,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | # trying to add people to the boats
# given a people array and integer limit
# people array is an array of people's weights, i-th person has a weight people[i]. Each boat can carry at most limit
# each boat carries at most 2 people at the same time, given that their weight sum is at most limit
# Return the minimum numb... | [
"chuot2008@gmail.com"
] | chuot2008@gmail.com |
8cbe8217d877a7a5b353df12d69a86eadd92b6ff | 83048ab1abb6941ed0b19fb5e5ff4a9d14b48e8c | /CODEFORCES/cons_string.py | e9d8e35d8787aba66bea5c208cbc16b176155cdc | [] | no_license | harshitalpha/Algorithms | ebad07cc77516ab5c35ae414462d10a38d5ef97e | 2f7dcf4c3bb4390267231c7c96f7e76399c0166e | refs/heads/master | 2021-07-14T17:34:02.546583 | 2020-06-25T06:38:39 | 2020-06-25T06:38:39 | 178,813,562 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | t = int(input())
while(t):
t=t-1
n,a,b = [int(s) for s in input().split()]
ans = [0]*n
for i in range(b):
ans[i] = chr(97+i)
for j in range(i+1,a):
ans[j] = ans[j-1]
if(a == b):
j = i
x = 0
for k in range(j+1,n):
ans[k] = ans[x]
x = x + 1
... | [
"harshitsinghal1103@gmail.com"
] | harshitsinghal1103@gmail.com |
e973725c732820d1272001a7ce9447fd1fa8128c | d1d5bbd82cc56d4459e7f605fe0f3efff66d8a0f | /wakawaka/tests/test_templatetags.py | ac521866026ec6d2500a05a8903ad0696598bd06 | [] | no_license | DivyaJyotiDas/django-wakawaka | 2aa32a1c520366ab5e28509cf358ba11981ed188 | 26b0346fbfae8735c8bb563926a7a0033102ddcd | refs/heads/master | 2020-11-28T20:16:33.184045 | 2019-11-09T08:47:44 | 2019-11-09T08:47:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,036 | py | from __future__ import unicode_literals
from wakawaka.templatetags.wakawaka_tags import wikify
from wakawaka.tests.base import BaseTestCase
class TemplateTagTestCase(BaseTestCase):
"""
Page names are automatically linked using the `wikify`
templatetag.
A valid page name consists of a CamelCase word,... | [
"martin@mahner.org"
] | martin@mahner.org |
fd94ae8fb76c025cc932a3ec6e5b60aadc3147f2 | 1cb9426b2cad90617c860c18037aca43a2f241fb | /graphlayer/representations.py | fdb760418f5c9b51522b1c11f03da6892dde9619 | [] | no_license | brntsllvn/python-graphlayer | 6709f30d8196cc211d8e83bdb3c6cc35e751d56e | 069cecfea4a72d0f9c200ca47d67aabacf69b0fa | refs/heads/master | 2020-04-14T03:23:08.869794 | 2018-12-29T19:38:32 | 2018-12-29T19:38:32 | 163,606,618 | 0 | 0 | null | 2018-12-30T17:52:07 | 2018-12-30T17:52:07 | null | UTF-8 | Python | false | false | 585 | py | class Object(object):
def __init__(self, values):
self._values = values
for key in values:
setattr(self, key, values[key])
def __nonzero__(self):
return bool(self._values)
def __bool__(self):
return bool(self._values)
def __hash__(self):
... | [
"mike@zwobble.org"
] | mike@zwobble.org |
76bec1a6a0a5c565a42ee15d0e31b68fc39dfd9c | 44b9fa20b655c3b629d0bd8c7a0e66b5e524c384 | /midgard_client/test/test_add_liquidity_metadata.py | c784a8e54ca9f5ad2138051129bb1f5825f2457e | [] | no_license | karthiknayak02/thorchain-arb | e590fef921d82e9c7c6ddc65dabfe1628e0b2e0c | fcc940259c23a6195b08c92afcbefb8ad637e90d | refs/heads/main | 2023-05-08T02:40:34.771504 | 2021-05-26T06:21:32 | 2021-05-26T06:21:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | # coding: utf-8
"""
Midgard Public API
The Midgard Public API queries THORChain and any chains linked via the Bifröst and prepares information about the network to be readily available for public users. The API parses transaction event data from THORChain and stores them in a time-series database to make time... | [
"hoodieonwho@protonmail.com"
] | hoodieonwho@protonmail.com |
931548b622bc2511e6847fac0cee66a34539de62 | 946e88c312c0c22a30a678191ebbce38f84126d7 | /pywaveclus/detect/neo.py | 33830a831ef0a6df4e83b639d4b55be2739da5f2 | [] | no_license | werthiness/pywaveclus | 4ec168c5bc1292db68e0947229062f38a90c39ee | 004984abed52e570ad56263f8aafd3757ab17c81 | refs/heads/master | 2021-01-11T21:09:11.418609 | 2013-06-14T16:00:23 | 2013-06-14T16:00:23 | 79,257,610 | 0 | 0 | null | 2017-01-17T18:23:26 | 2017-01-17T18:23:26 | null | UTF-8 | Python | false | false | 1,781 | py | #!/usr/bin/env python
import logging
import numpy as np
def neo(data, N=529): # 265):
"""
From: Neural Spike Sorting Under Nearly 0-dB Signal-to-Noise Ratio
Using Nonlinear Energy Operator and Artificial Neural-Network \
Classifier
neo = (dx/dt)**2 - x(t)(d**2x/dt**2)
for d... | [
"graham@rowland.harvard.edu"
] | graham@rowland.harvard.edu |
ab2bc82ffad3cdc6e8602bcc11958f413e3e6e0d | 11a246743073e9d2cb550f9144f59b95afebf195 | /acmsgu/299.py | 4b0f94933378de469e891849a1c023d22c71d8e7 | [] | no_license | ankitpriyarup/online-judge | b5b779c26439369cedc05c045af5511cbc3c980f | 8a00ec141142c129bfa13a68dbf704091eae9588 | refs/heads/master | 2020-09-05T02:46:56.377213 | 2019-10-27T20:12:25 | 2019-10-27T20:12:25 | 219,959,932 | 0 | 1 | null | 2019-11-06T09:30:58 | 2019-11-06T09:30:57 | null | UTF-8 | Python | false | false | 212 | py | import sys
n = int(input())
a = [int(input()) for _ in range(n)]
a.sort()
for i in range(1, n - 1):
if a[i - 1] + a[i] > a[i + 1]:
print(a[i - 1], a[i], a[i + 1])
sys.exit(0)
print(0, 0, 0)
| [
"arnavsastry@gmail.com"
] | arnavsastry@gmail.com |
0da32b69dca602b01a2610b36dc937866ef812cc | 920d1bb0af9846e394833b5914fdf1267fa92837 | /tests/openvino/native/test_bias_correction.py | 52b18f46d358424d7e19aae692d2f53866697088 | [
"Apache-2.0"
] | permissive | macsz/nncf | f60104af19bfcc55e0b52a367c0c84cbf815a822 | a8af39627647ddbb89ef33cf42ff42e9c048b981 | refs/heads/develop | 2023-07-06T04:30:53.706121 | 2023-06-23T17:24:48 | 2023-06-23T17:24:48 | 335,070,470 | 0 | 0 | Apache-2.0 | 2023-05-05T19:39:42 | 2021-02-01T20:08:14 | Python | UTF-8 | Python | false | false | 2,719 | py | # Copyright (c) 2023 Intel Corporation
# 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 in writ... | [
"noreply@github.com"
] | macsz.noreply@github.com |
6bb1e9d6c50a0174696c1ff9bce8b98929890d0d | 1498f1ff7ed0e4318b4475c04d486b301328a4b5 | /pycherwell/models/batch_delete_request.py | ec378c74464fba5431ccc9c7e5ca067a87bc2910 | [
"Apache-2.0"
] | permissive | greenpau/pycherwell | b66e27b3e0e07e914a07a092472575a56c48a8bf | 2a25446d5cf86d69e6158067faf27ce250aba966 | refs/heads/master | 2021-07-25T01:58:57.682666 | 2020-07-19T01:40:26 | 2020-07-19T01:40:26 | 199,328,283 | 2 | 2 | Apache-2.0 | 2020-07-16T21:31:33 | 2019-07-28T19:24:17 | Python | UTF-8 | Python | false | false | 4,322 | py | # coding: utf-8
"""
Cherwell REST API
Unofficial Python Cherwell REST API library. # noqa: E501
The version of the OpenAPI document: 9.3.2
Contact: See AUTHORS.
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from pycherwell.configuration imp... | [
"greenpau@outlook.com"
] | greenpau@outlook.com |
69c325aa2e3d4d81c7bb8c07fd7dd4016a0bcc0c | 287a10a6f28517003728aebbd7ed097af13a8d18 | /exp_170508_after_bug_fix_in_mc/detect_merges_splB_z0.py | 6417341b23a80bb10d147c91e4aeb270e3f1094c | [] | no_license | jhennies/nmmp_experiments | 05c78c6068fa0f6df0002e57529cd7b8d1daa456 | 7c06a5818a5176fa0dc17a42ba22b2262239d91d | refs/heads/master | 2021-04-06T12:01:25.537695 | 2017-09-22T13:42:51 | 2017-09-22T13:42:51 | 83,289,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,881 | py | import os
import cPickle as pickle
import sys
sys.path.append(
'/export/home/jhennies/src/nature_methods_multicut_pipeline_devel/nature_methods_multicut_pipeline/software/')
from multicut_src import ExperimentSettings
from pipeline import find_false_merges
# TODO Change here
from init_exp_splB_z0 import meta_fo... | [
"julianhennies@hotmail.de"
] | julianhennies@hotmail.de |
c17b35543a09b45697ebd4f13fbc6da423abe8b4 | e407c7aac1e22cbe05c5dc973c55a4e14a52a864 | /skylantern/db/mapping.py | 20902311932a310ca6ca3aab966b0c3a35837526 | [
"Apache-2.0"
] | permissive | chzhong25346/Skylantern | 8aa8a1106694effe042aad148f5e9a3ed46cb49a | 530b700dea66013f22a04b0505df1013930be618 | refs/heads/master | 2023-05-25T17:05:16.027475 | 2023-02-11T14:41:52 | 2023-02-11T14:41:52 | 221,088,921 | 0 | 0 | Apache-2.0 | 2023-05-23T05:23:44 | 2019-11-11T23:29:44 | Python | UTF-8 | Python | false | false | 5,090 | py | import pandas as pd
import datetime as dt
from ..utils.fetch import fetch_index#, get_daily_adjusted
from ..utils.util import gen_id
from ..models import Index, Quote, Report, Transaction, Holding, Eia_price, Eia_storage
import logging
logger = logging.getLogger('main.mapping')
def map_index(index_name):
df = fet... | [
"colin25346@gmail.com"
] | colin25346@gmail.com |
dc6f5425087bb7925b8224bde97e754bd42c0b1b | 3a426d6cd831183fa00a22e426da44692c870f0c | /sidekick-api/sidekick/api/_operators.py | 88274b26829a36347511690bba4b55f928e0498c | [
"MIT"
] | permissive | fabiommendes/sidekick | d399d57f13ae606a99623af22c63a32343d66592 | 993ae7b8496347ad9720d3ff11e10ab946c3a800 | refs/heads/master | 2021-07-09T15:48:04.113881 | 2021-06-28T16:44:21 | 2021-06-28T16:44:56 | 98,376,293 | 32 | 5 | null | null | null | null | UTF-8 | Python | false | false | 5,896 | py | import operator as op
# Lists of methods
METHODS = [op.getitem, op.contains, op.delitem, op.getitem, getattr]
UNARY = [op.abs, op.invert, op.neg, op.pos, op.index, hash, len, str, int, repr]
BINARY = [
op.add,
op.and_,
op.floordiv,
op.lshift,
op.matmul,
op.mod,
op.mul,
op.or_,
op.p... | [
"fabiomacedomendes@gmail.com"
] | fabiomacedomendes@gmail.com |
af2da9219d6b55531c5cb6d041cf4cacbb1aa392 | e923a97ed135a064730d6019ce9add007c10fb1f | /src/tacotron/utils/numbers.py | 3b9a895a2f37175eda9e2a55b553babcebb2fc45 | [] | no_license | ruclion/linears_decoder_tacotron-2-zhaoxt-tacoLinear | a848b6439f41364c5ee363fc591f006ec92137f8 | 4b96059a471c25c8f3e20c3c28599d9e427911d2 | refs/heads/master | 2022-12-06T07:48:28.971167 | 2020-09-01T07:21:07 | 2020-09-01T07:21:07 | 291,926,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | import re
import inflect
_inflect = inflect.engine()
_comma_number_re = re.compile(r'([0-9][0-9\,]+[0-9])')
_decimal_number_re = re.compile(r'([0-9]+\.[0-9]+)')
_pounds_re = re.compile(r'£([0-9\,]*[0-9]+)')
_dollars_re = re.compile(r'\$([0-9\.\,]*[0-9]+)')
_ordinal_re = re.compile(r'[0-9]+(st|nd|rd|th)')
_n... | [
"hujk17@mails.tsinghua.edu.cn"
] | hujk17@mails.tsinghua.edu.cn |
bb8a00b3b52bd5e62c9ee55a6b52c2e008f6aea6 | c7d91529db199322e39e54fe4051a75704ea843e | /剑指/二刷/字符串的排列_M.py | a12d05b2c521a7e1b56060a9883694c69d27c577 | [] | no_license | 2226171237/Algorithmpractice | fc786fd47aced5cd6d96c45f8e728c1e9d1160b7 | 837957ea22aa07ce28a6c23ea0419bd2011e1f88 | refs/heads/master | 2020-12-26T07:20:37.226443 | 2020-09-13T13:31:05 | 2020-09-13T13:31:05 | 237,431,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,997 | py | '''
输入一个字符串,打印出该字符串中字符的所有排列。
你可以以任意顺序返回这个字符串数组,但里面不能有重复元素。
示例:
输入:s = "abc"
输出:["abc","acb","bac","bca","cab","cba"]
1 <= s 的长度 <= 8
'''
def getOne(s):
# 从右往左找到第一个单增子序元素的第一个元素
i=len(s)-1
j=len(s)-2
while j>=0:
if s[i]<=s[j]:
i-=1
j-=1
else:
break
... | [
"2226171237@qq.com"
] | 2226171237@qq.com |
c04bddf828de638522f947ffb86fdc6673a28f14 | 2fee3deebd99ecf903ccdca6169e4606272a83e0 | /UserDefineFunctions/functions.py | 5bd37f00ac139d401164033b9dfa3b038a879814 | [] | no_license | Mehedi-Bin-Hafiz/Udemy-Python-Programming-Beginners | 7dae8c3a6225f0cc05fc17db0a2c3b3215e4a7cc | 70583f5b6c746c3b23ff031fedfb2f980a3ea2e5 | refs/heads/master | 2022-07-18T14:32:46.847621 | 2020-05-18T06:59:27 | 2020-05-18T06:59:27 | 255,272,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | #syntax def func_name(para1,para2):
#statement
#call
#finc_name(arg1,arg2)
#we need to define function first then call it otherwise name error produce
def greet(n):
for i in range(1,n+1):
print(i)
greet(10)
# if function have return() then it called value returning function
# if function does not ha... | [
"mehedibinhafiz@gmail.com"
] | mehedibinhafiz@gmail.com |
54679bb1f119081e5045eff5a6e42a0b81ef5e2a | ced6a9ad22574da90c7c03fb02f8cca1da4ddbda | /store/bookstore-master/bookstore/utils/decorators.py | 85d8571ebbf1f86a1b06b3df3a87b4d0b6e430a1 | [] | no_license | Homnis/web | db0c09b1f3446bf752cea68d6e7214206de858eb | d22ff8c7038aff18b112754d00afc5452cd27bec | refs/heads/master | 2020-04-11T06:22:23.562849 | 2018-12-20T06:26:19 | 2018-12-20T06:26:23 | 161,578,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from django.shortcuts import redirect
from django.http import HttpResponse
from django.core.urlresolvers import reverse
def login_required(view_func):
'''登录判断装饰器'''
def wrapper(request, *view_args, **view_kwargs):
if request.session.has_key('islogin'):
# 用户已登录
return view_func(... | [
"675868749@qq.com"
] | 675868749@qq.com |
2a90853254d8170ba79e8802614c6df04ec3a47f | f9c7969c8649c484f2460fb245a3d5bd6870fa5a | /ch01/projects/proj_03.py | bf57558bafd300328c293670ff8dccaab9f22f5d | [] | no_license | Pshypher/tpocup | 78cf97d51259bfea944dc205b9644bb1ae4ab367 | b05b05728713637b1976a8203c2c97dbbfbb6a94 | refs/heads/master | 2022-05-18T13:11:31.417205 | 2020-01-07T13:50:06 | 2020-01-07T13:50:06 | 260,133,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | # Oil conversions and calculations
# Prompt the user for the volume of gasoline in gallons
# 140.43 billion gallons of gasoline consumed in the United States
volume_gasoline_str = input("Volume of gasoline in gallons [example 140.43e10]: ")
volume_gasoline_gallons = float(volume_gasoline_str)
volume_gasoline_liter... | [
"jimishote@gmail.com"
] | jimishote@gmail.com |
600b223ce2498e9e5ebb119fbe214c3b40ec12d8 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/apperrors/error/instance/instance.py | a385e021511ebb63527d1b65c8d23d46bfb56991 | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,381 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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 to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
cc2b1a281717f224a4846e03b371a6b13a494c8d | a08225934c425be313a12975c9563a72ded58be6 | /edu97/q1.py | d49dafb9d05b7408a057e240af7255d69e3e3c71 | [] | no_license | marcus-aurelianus/codeforce | 27c966554dee9986f23fb2925bd53e6cceb8b9e9 | 4764df151ade7806e32b6c88283a2de946f99e16 | refs/heads/master | 2023-03-18T09:30:55.042594 | 2021-03-12T18:14:08 | 2021-03-12T18:14:08 | 231,387,022 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | import sys
reader = (s.rstrip() for s in sys.stdin)
input = reader.__next__
def gift():
for _ in range(t):
l,r = list(map(int,input().split()))
if (r/l<2):
yield 'YES'
else:
yield 'NO'
if __name__ == '__main__':
t= int(input())
ans = gift()
print(*ans,sep... | [
"37787424+marcus-aurelianus@users.noreply.github.com"
] | 37787424+marcus-aurelianus@users.noreply.github.com |
e1d792484bb7412a7313d4aa31f7c353e261ebc3 | e495c3f9227d790f3c08a56c357f2a95c167ec9c | /zerojudge.tw/a781.py | 5a5ced311de045283af883f6578e0e70ca0dd811 | [] | no_license | InfiniteWing/Solves | 84d894d66588693c73ec1dcaebe3b8b148e1d224 | a0f8f09fac5e462d7d12a23ccd8414bd5ff8ffad | refs/heads/master | 2021-10-11T00:17:37.367776 | 2019-01-19T15:07:54 | 2019-01-19T15:07:54 | 103,742,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | def main():
c = False
while True:
try:
n = int(input())
except EOFError:
break
if(n == 0):
continue
if(c):
print()
t1 = []
t2 = []
for _ in range(4):
for i in range(n):
t1.append('... | [
"sars6608@gmail.com"
] | sars6608@gmail.com |
888e40cd961743ad7dd447200739a63e6468dc9e | dc5a2fe4380e1453a12f15f5080b10f3ababb9de | /AutomationTools/tools/2.0/http_player/PageHandler/FTH/V1_1_6/_default_hdlr.py | 55e57850b313fbe8467d88ad800a33e86412b2f8 | [] | no_license | jameshilliard/PythonCode | f72ad62bb8b8cafbc94cbe7c0d3065343fdf0f98 | 422543bc049f57a67d53ec0b89caef076297cdc5 | refs/heads/master | 2020-04-09T00:06:25.689609 | 2015-03-14T13:14:34 | 2015-03-14T13:14:34 | 32,722,067 | 3 | 0 | null | 2015-03-23T09:21:52 | 2015-03-23T09:21:52 | null | UTF-8 | Python | false | false | 1,127 | py | # wireless_basic.py
#
# Copyright 2011 rayofox <rayofox@rayofox-test>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Licens... | [
"zxu@actiontec.com"
] | zxu@actiontec.com |
da5305aa9b6ff40cc2f2694eb8cdf8e9a3444192 | ff7d3116024c9df01b94191ddfa334e4a6782ae6 | /larvik/structures.py | ef6be0c4fe7fd9910a0d2071030f0714112b26b6 | [
"MIT"
] | permissive | jhnnsrs/arbeider | f5f708ee1026a9e9573a6f8a87c3b9e2fd6b5e33 | 4c5637913331c998a262ae0deca516b236845200 | refs/heads/master | 2021-05-26T10:31:16.279628 | 2020-04-08T13:40:26 | 2020-04-08T13:40:26 | 254,095,863 | 0 | 0 | MIT | 2020-04-08T13:40:28 | 2020-04-08T13:29:31 | null | UTF-8 | Python | false | false | 862 | py | class StatusCode(object):
STARTED = 2000
DONE = 1000
PROGRESS = 3000
ERROR = 4000
class Messages(object):
STARTED = "Starting"
ERROR = "Error"
PROGRESS = "Progress"
DONE = "Done"
@staticmethod
def error(message) -> str:
return Messages.ERROR + " - " + str(message)
... | [
"jhnnsrs@gmail..com"
] | jhnnsrs@gmail..com |
0f08941654924da89f890d113223b3b707a52347 | a9194b2f3366eaf427ea6a02c7949427d29c083e | /Bootcamp/day30/main.py | 52b6cc875cdc53bbf0502b9ab885ac0a5ea349ad | [] | no_license | ankitkparashar/python | 36f0552576c775e406d77881b5e1474f54d9a68a | 7b36497e35630e441573bb0cd8730a2a5b1e38a9 | refs/heads/main | 2023-06-17T03:56:46.832204 | 2021-07-06T07:01:53 | 2021-07-06T07:01:53 | 315,074,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | try:
file = open("a_file.txt")
a_dict = {"key": "value"}
print(a_dict["key"])
except FileNotFoundError:
file = open("a_file.txt", "w")
file.write("Something")
except KeyError as error_message:
print(f"The key {error_message} does not exist")
else:
content = file.read()
print(c... | [
"ankitparashar88@gmail.com"
] | ankitparashar88@gmail.com |
3a1c8d8c15050166b4e6c5c3069ac48bfc338502 | b9b06d86d43e738b62ab9289fc13aae4c2b2670b | /nsd1811/devops/day01/count_patt2.py | af1639ac6ab31a63ee3268f604f53494f0cbd0f7 | [] | no_license | MrZhangzhg/nsd_2018 | 31a7a8d54e2cb3ff4f4eb5c736fbd76601718356 | 458a1fef40c5e15ba7689fcb3a00baf893ac0218 | refs/heads/master | 2020-04-08T19:08:48.237646 | 2019-09-08T04:31:07 | 2019-09-08T04:31:07 | 159,642,127 | 5 | 7 | null | 2019-01-04T05:33:40 | 2018-11-29T09:37:27 | Python | UTF-8 | Python | false | false | 623 | py | import re
class CountPatt:
def __init__(self, fname):
self.fname = fname
def count_patt(self, patt):
patt_dict = {}
cpatt = re.compile(patt)
with open(self.fname) as fobj:
for line in fobj:
m = cpatt.search(line)
if m:
... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
c777d8a09d46a8b7cb7e03340b495d5aae769241 | 24a291e5eb298b7c2b4f1105d789ac488457b59c | /Python_Basics/python05_13_EmployeeStep01_김민교.py | a13b3b1ee793419357eee236b3c7c8d5b8909a4a | [] | no_license | gmrdns03/Python-Introductory-Course_Minkyo | da3afff502ed44f178d5b3885fbb1b01249ad1de | ef0d4e16aee3dba6a4a10c422ef68b1465745833 | refs/heads/main | 2023-05-29T16:08:31.814542 | 2021-06-23T13:32:14 | 2021-06-23T13:32:14 | 379,300,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py |
TName = ["구분","사원명","입사일","급여"]
empInfo = [
['T160501',"캔디","2016-05-10"],
['R160510',"장미","2016-05-10"],
['t160811',"튤립","2016-08-15"],
['T160821',"포도","2016-08-22"],
['r160850',"사과","2016-08-30"]
]
empPayTable = [
[250,10],
[200,12],
[300,9],
[230,11],
[150,12]
]
Rable = [ '계약직', '정규직... | [
"noreply@github.com"
] | gmrdns03.noreply@github.com |
f6623aff9958f6ef1bafa903a8ed7691ff266106 | ac0b9c85542e6d1ef59c5e9df4618ddf22223ae0 | /kratos/.svn/pristine/f6/f6623aff9958f6ef1bafa903a8ed7691ff266106.svn-base | 8480466202f7005fb9a718f42107a24ded2cffab | [] | no_license | UPC-EnricBonet/trunk | 30cb6fbd717c1e78d95ec66bc0f6df1a041b2b72 | 1cecfe201c8c9a1b87b2d87faf8e505b7b1f772d | refs/heads/master | 2021-06-04T05:10:06.060945 | 2016-07-15T15:29:00 | 2016-07-15T15:29:00 | 33,677,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,976 | from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7
#
#
# setting the domain size for the problem to be solved
domain_size = 2
#
#
# ATTENTION: here the order is important
# including kratos path
kratos_path = '../../../../' # kratos_... | [
"enriquebonetgil@hotmail.com"
] | enriquebonetgil@hotmail.com | |
92bd15de2d408a51f11a14b64ff0b5be3ddeca01 | c9fae1c0e90be223a00893b2bed518f5d78ef3a9 | /source/treeline.py | e1d7eb10f57b7e8c3ed0b725b21961d4b52955d5 | [] | no_license | indrajithk/TreeLine | 4c59d99c21e348810d0b7a538d04f07c6d1e2efc | 584ebc04bc586238270e68ede9f67be19a8ccffc | refs/heads/master | 2020-04-07T23:58:01.740630 | 2018-11-17T19:23:09 | 2018-11-17T19:23:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,423 | py | #!/usr/bin/env python3
#******************************************************************************
# treeline.py, the main program file
#
# TreeLine, an information storage program
# Copyright (C) 2018, Douglas W. Bell
#
# This is free software; you can redistribute it and/or modify it under the
# terms of the GNU... | [
"doug101@bellz.org"
] | doug101@bellz.org |
a357116ed218179b21aada55771fa8c05f844552 | e19a158493f84cfc9b5e1cda4c58384d055fbca2 | /Python3/1079.py | 07dc3d46b92e7b125516e49d86bc4a73a266dc78 | [] | no_license | jt0212/LeetCode | 79160760c445669955ae5ba91fca55ed0959349d | 96e6671a055149c54b6650d74b471e8a9eceea66 | refs/heads/master | 2020-05-07T16:16:46.808199 | 2019-06-11T22:03:14 | 2019-06-11T22:03:14 | 180,675,676 | 0 | 0 | null | 2019-06-11T21:58:24 | 2019-04-10T22:53:17 | null | UTF-8 | Python | false | false | 882 | py | __________________________________________________________________________________________________
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def sufficientSubset(self, root, limit... | [
"strengthen@users.noreply.github.com"
] | strengthen@users.noreply.github.com |
b5457f5bee2bd6707bb02652ce18d45cc12e28f3 | 3750387e046dfd287d02decc846860fae874bf3e | /hydra/experimental/callbacks.py | 8001ff551d6786f540bf2a9d8e3df2181275a2e6 | [
"MIT"
] | permissive | facebookresearch/hydra | baf152caa30cd1d8a7e76ba2111fb9a49ecbe18c | b5ff66134f268164a20712d18b1230f4dd737444 | refs/heads/main | 2023-08-28T02:33:18.063795 | 2023-07-25T17:58:43 | 2023-07-25T17:58:43 | 191,632,914 | 7,667 | 692 | MIT | 2023-09-11T15:38:52 | 2019-06-12T19:33:15 | Python | UTF-8 | Python | false | false | 2,336 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import logging
import pickle
from pathlib import Path
from typing import Any
from omegaconf import DictConfig
from hydra.core.utils import JobReturn, JobStatus
from hydra.experimental.callback import Callback
class LogJobReturnCallback(Callback... | [
"noreply@github.com"
] | facebookresearch.noreply@github.com |
af3bbab2b00fd6448fcbc0843b75b71f7ccaea2c | a54b6e7a1906534b11584054e6096f855ced549d | /attributes-and-methods-python-oop/hotel/hotel.py | bfac372815e931de7eeb21a3618f5744c23a94f2 | [] | no_license | DavidStoilkovski/python-oop | 1cece55dffa8471ed980773e259ca9569eb00283 | ae497d84d41badb8fc9c64c518d1dd72d95c839f | refs/heads/main | 2023-04-20T10:11:02.914382 | 2021-05-08T16:31:46 | 2021-05-08T16:31:46 | 359,358,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | class Hotel:
def __init__(self, name):
self.name = name
self.rooms = []
self.guests = 0
@staticmethod
def find_room(rooms, room_number):
return list(filter(lambda room: room.number == room_number, rooms))[0]
@classmethod
def from_stars(cls, stars_count):
retu... | [
"stoilkovskidavid@gmail.com"
] | stoilkovskidavid@gmail.com |
bd4494921e10baa783c61419ae8c175bdf612787 | 09a8d6e247e4575f09d68b0dae3cf0b94255717b | /Mathematics/Combinatorics/BuildingAList.py | b71e090b67ff107cb1edc71460995029b6464fed | [] | no_license | ShihabAhmed09/HackerRank-Solutions-Python | 5e648eac81b70b502d77aafb7cf676a72f2583c3 | dc1e25d726ed13e12da7f767e4b4acbadef2bd2a | refs/heads/main | 2023-02-15T05:51:47.753723 | 2021-01-05T18:02:14 | 2021-01-05T18:02:14 | 300,979,036 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | from itertools import combinations
# def solve(s):
# size = len(s)
# word = []
# for i in range(1, size + 1):
# for j in list(combinations(s, i)):
# word.append("".join(j))
# return sorted(word)
# Without itertools
def solve(s):
size = len(s)
word = []
for i in range(... | [
"49798311+ShihabAhmed09@users.noreply.github.com"
] | 49798311+ShihabAhmed09@users.noreply.github.com |
2b864b6bb199420b74747c5fa057f8ee4ce245fc | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/Herwigpp_i/share/jobOptions.herwigpp-Zmumu.py | 0893ae1d2c07e79d70ebed2b76c8fded1c1ce59e | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | ## Job options file for Herwig++, Z -> mu+ mu- production
include("GeneratorUtils/StdEvgenSetup.py")
# ## Control log levels
# svcMgr.MessageSvc.OutputLevel = DEBUG
## Add H++ to the job list
from Herwigpp_i.Herwigpp_iConf import Herwigpp
topAlg += Herwigpp()
## Get basic Herwig++ Atlas tune params
from Herwigpp_i ... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
234a9d05a2c888f9ae38f53d79a3ee614a7243bb | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/show_details_of_api_v2_request.py | 40def6435246c1c3c9a95cc97f0013e71c203549 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,689 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowDetailsOfApiV2Request:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
023c85d25c160e6c65775761c212f748fcc996dc | d842a95213e48e30139b9a8227fb7e757f834784 | /gcloud/google-cloud-sdk/.install/.backup/lib/surface/compute/target_https_proxies/list.py | 978ff61c450ed31381d99f6314559a75d59a2d0d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/JobSniperRails | f37a15edb89f54916cc272884b36dcd83cdc868a | 39e7f871887176770de0f4fc6789e9ddc7f32b1f | refs/heads/master | 2022-11-22T18:12:37.972441 | 2019-09-20T22:43:14 | 2019-09-20T22:43:14 | 282,293,504 | 0 | 0 | MIT | 2020-07-24T18:47:35 | 2020-07-24T18:47:34 | null | UTF-8 | Python | false | false | 3,355 | py | # -*- coding: utf-8 -*- #
# Copyright 2014 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"luizfper@gmail.com"
] | luizfper@gmail.com |
396bd27103ef3f29764cae0e930f82f34c88ad21 | 9737952c7ab790aa217aaa66c1322a9fc48bd464 | /app/api_v0/serializers.py | 793f6fdebdb2d6fc4b9dd81b434c00c74ae3a1cd | [] | no_license | Wishez/zhuravlev | 9e63d1ff39338f06e8f83bc385d81296f2bacbeb | f88b626198cfe4a603310022afe7d7068d390302 | refs/heads/master | 2021-01-23T13:17:04.662177 | 2018-06-20T17:52:01 | 2018-06-20T17:52:01 | 93,238,496 | 0 | 0 | null | 2020-06-05T17:45:09 | 2017-06-03T09:33:59 | JavaScript | UTF-8 | Python | false | false | 1,275 | py | # -*- encoding: utf-8 -*-
from rest_framework import serializers
from blog.models import *
class ArticlePreviewSerializer(serializers.ModelSerializer):
tags = serializers.StringRelatedField(many=True)
class Meta:
model = Article
fields = [
'id',
'author',
'ti... | [
"shiningfinger@list.ru"
] | shiningfinger@list.ru |
5e4909a51da864f8c38e0629724ccf365d9f8623 | fa0ae8d2e5ecf78df4547f0a106550724f59879a | /AI/day05/cc2.py | c2c44415d73b1f303cdb47b61586389856963acc | [] | no_license | Polaris-d/note | 71f8297bc88ceb44025e37eb63c25c5069b7d746 | 6f1a9d71e02fb35d50957f2cf6098f8aca656da9 | refs/heads/master | 2020-03-22T17:51:49.118575 | 2018-09-06T03:36:00 | 2018-09-06T03:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | import functools
def f1(a):
return map(lambda x: x + 3, a)
def f2(a):
return map(lambda x: x * 6, a)
def f3(a):
return map(lambda x: x - 9, a)
a = [1, 2, 3]
# (a + 3) x 6 - 9
b = list(f3(f2(f1(a))))
print(b)
foo = functools.reduce(
lambda fa, fb: lambda x: fa(fb(x)), [f3, f2, f1])
c = list(foo(a))
pri... | [
"610079251@qq.com"
] | 610079251@qq.com |
e45b551b4b62088ceb9be1a4409bef56a0cfc0f1 | 3810ca117f3ed9fcbd1f2e784f9ccfcd039ef748 | /0x0A-i18n/4-app.py | 44a920968a59a6100dbeafae91e88e15bb9ac44a | [] | no_license | jzamora5/holbertonschool-web_back_end | 1dbd358a86e65cd5a589d3a33f31c74f851a880b | f3afda33879c1caa29832e5550977b89109cf6e1 | refs/heads/main | 2023-02-18T18:02:13.086381 | 2021-01-21T15:45:41 | 2021-01-21T15:45:41 | 305,398,702 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | #!/usr/bin/env python3
""" Module for trying out Babel i18n """
from flask_babel import Babel, _
from flask import Flask, render_template, request, flash
app = Flask(__name__, template_folder='templates')
babel = Babel(app)
class Config(object):
""" Configuration Class for Babel """
LANGUAGES = ['en', 'fr']... | [
"jzamora_5@yahoo.com"
] | jzamora_5@yahoo.com |
e54f907c1505d909f4d56ddd67d069417b1d4c4b | e069d62070b58965e526cf7dd41aff7839e68491 | /scripts/devaxml.py | 0f7dc2c9137af9311c27a7bf0228803298bcc4e3 | [] | no_license | drdhaval2785/SanskritVerb | 594f7c4a3d6cbd6b3c6b043e5989c74959c809f1 | c4b8119d50640327161cd138b14c8214a43fbce8 | refs/heads/master | 2022-12-20T21:03:45.213157 | 2022-12-09T17:26:55 | 2022-12-09T17:26:55 | 25,471,451 | 38 | 7 | null | 2017-09-29T01:51:28 | 2014-10-20T14:57:09 | PHP | UTF-8 | Python | false | false | 3,203 | py | # -*- coding: utf-8 -*-
"""
Author:
Dr. Dhaval Patel, 25 June 2016
Expected output:
To convert generateforms.xml into a CSV file with data in Devanagari.
`verbform,verb,lakAra,suffix,verbnumber` format
See https://github.com/drdhaval2785/SanskritVerb/issues/936 for the requirement of this code.
Input:
generateform... | [
"drdhaval2785@gmail.com"
] | drdhaval2785@gmail.com |
09942b3af6b3035b6d0b411a7addb5613f8be0ba | c7967ec500b210513aa0b1f540144c931ca687ac | /알고리즘 스터디/개인공부/Simulation/DiceYut.py | b2ea6673f9cdd90db1a7cb54fe08861143d81587 | [] | no_license | sunminky/algorythmStudy | 9a88e02c444b10904cebae94170eba456320f8e8 | 2ee1b5cf1f2e5f7ef87b44643210f407c4aa90e2 | refs/heads/master | 2023-08-17T01:49:43.528021 | 2023-08-13T08:11:37 | 2023-08-13T08:11:37 | 225,085,243 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,189 | py | # https://www.acmicpc.net/problem/17825
import sys
pattern = tuple(map(int, sys.stdin.readline().split()))
red_line = {0: 1,
1: 2,
2: 3,
3: 4,
4: 5,
5: 6,
6: 7,
7: 8,
8: 9,
9: 10,
10: 11,
... | [
"suns1502@gmail.com"
] | suns1502@gmail.com |
a8ccd6f3af8771ae85b72aa3a0246e8e96cf1456 | 3dd05daf5a10d33924fee518f089a8b959e7c0e7 | /tester.py | a405ea41d128e9b38b8cbe3938239a9808d019ca | [] | no_license | FlyingMedusa/Tkinter_tic_tac_toe | abd5ab276acd79f08006e23265c5fd4bd86105b2 | a2abf26df42109a98236f9d06e742e6e4843890c | refs/heads/master | 2021-02-18T20:23:09.375804 | 2020-03-05T18:48:35 | 2020-03-05T18:48:35 | 245,232,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,900 | py |
from tkinter import *
import tkinter.messagebox
tk = Tk()
tk.title("Tic Tac Toe")
pa = StringVar()
playerb = StringVar()
p1 = StringVar()
p2 = StringVar()
player1_name = Entry(tk, textvariable=p1, bd=5)
player1_name.grid(row=1, column=1, columnspan=8)
player2_name = Entry(tk, textvariable=p2, bd=5)
player2_name.grid... | [
"sleboda.m98@gmail.com"
] | sleboda.m98@gmail.com |
46e0c8fa92fb53054d8b597dd29eb388d61dc09b | 456566246d90fd2820d24d1d345e68c2aea229b1 | /tests/test_hash.py | c405dc992d66adc39e51fee9d558e536ef2c7041 | [] | no_license | techalchemy/pip-api | 88160b848408c8990a93886f7400866ee0ed99da | 97573e5e42d63253e7e7fb0fa8626f66f3c62fd0 | refs/heads/master | 2020-03-07T12:53:12.078651 | 2018-03-20T23:20:19 | 2018-03-20T23:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | import pytest
import pip_api
xfail_incompatible = pytest.mark.xfail(
pip_api._hash.incompatible,
reason='Incompatible',
)
@xfail_incompatible
@pytest.mark.parametrize('algorithm, expected', [
(
'sha256',
'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855',
),
(
... | [
"di@users.noreply.github.com"
] | di@users.noreply.github.com |
c181b6876b368710150a09c938bd5d982562ab77 | 4efc13543ac65b54afe993fbf49eb4bed60586db | /ListInPython.py | fcd411cf55ef1e35017ed02cd33a9d6cd5c6c53c | [] | no_license | AliHassanUOS/PythonProgramaAndProject | f4f61124d70728b9377714b6451e7f5cdffedd5d | eb42e47b9efa1b963c295cae36821cac6c92bf03 | refs/heads/master | 2023-06-30T18:46:42.942042 | 2021-08-05T07:06:13 | 2021-08-05T07:06:13 | 392,939,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | # list1 = [1,2,3,4,'aLI']
# print(id(list1))
# print(list1)
# print('After changing')
# list1[2] = 100
# print(list1)
# print(id(list1))
# list1 = [1,2,3,4,5,'abc']
# leng = len(list1)
#
# for i in range(leng):
# print("Index Number of list", i , "element in list", list1[i])
# lis1 =[1,3,4,5,6,'ali',12.3,-12]
# l... | [
"alihasanuos@gmail.com"
] | alihasanuos@gmail.com |
c82d137fc852c2cd500591063adb29b9d08b2a73 | 7e36343736b542e4cdf660bea3e25aa2e88036f2 | /tree/652.find-duplicate-subtrees.py | e5ef70052f9b6b27ab70bf14d4eb4a1fe2c16e31 | [] | no_license | soaringk/Leetcode-Log | 2d1b52b5fa189951e6c2b1d8b67000bb99c43f06 | a820f55bd05f43f3b923b0fbe9dc059fe9fdb7e8 | refs/heads/master | 2023-03-23T12:22:25.352632 | 2021-03-15T13:38:56 | 2021-03-15T13:38:56 | 332,972,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | #
# @lc app=leetcode id=652 lang=python3
#
# [652] Find Duplicate Subtrees
#
# 树
# @lc code=start
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def findD... | [
"k3vin.zhang@gmail.com"
] | k3vin.zhang@gmail.com |
9333181edf758823a29cf4b432118f57ed98ac3e | 83cbf14b6806460daf4c556e1d8c49d9a3e8050e | /venv/Scripts/django-admin.py | 09408cd5ed0056465e32b00d9e7cf2dec3a4d05b | [] | no_license | pauloendoh/old-ration | e0d853a22adbbb94890b1172e69c5ce8f336b6b0 | 2d07ee5d546e0f3b94c8e562c4e3af98d58579d0 | refs/heads/master | 2021-09-07T01:37:32.012653 | 2018-02-15T06:42:22 | 2018-02-15T06:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | #!C:\Users\pauloendoh\Documents\Django Projects\ration\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"paulo.endoh@gmail.com"
] | paulo.endoh@gmail.com |
0b8f06e5abde1f712f7e44fbe50fc1a2c8c0af32 | 3ba9dd7015b63d7ad4296b8467292415fb63a706 | /API/wingAPI.py | 7ce9f716a6c0b34869cf52583769bcd95f012dd9 | [] | no_license | geoffreynyaga/concept-plane | 0f26d972f402087a3c49c6a937946c5b06f11504 | 9f9bc6fd794d0067604f09faceb6f41e927f5160 | refs/heads/master | 2021-07-05T13:22:36.352631 | 2017-09-27T14:06:56 | 2017-09-27T14:06:56 | 105,024,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,521 | py | from math import sqrt,cos,sin,pi,log,tan
import numpy as np
import matplotlib.pyplot as plt
# import sys
# import os
class aspectRatio:
def __init__ (self, initialWeight, finalWeight,cruiseSpeed,S,rhoSL,altitude,cbhp,propEff,Range,cdMin,endurance,ldMax):
self.initialWeight = initialWeight
self.fin... | [
"geoffreynyagak@gmail.com"
] | geoffreynyagak@gmail.com |
df8ac5ca492fba7705edf21aa54216ddb9976ddb | e0795f617dfbeb014a75395c478e62cf18a594ab | /app/serializers.py | b0c1ae24c2899b1aa2ae3825dffc2e977bf6125a | [] | no_license | Nigar-mr/Rest-Api-Task | 776d1f8085f1b7d5cff1b8faad23fca4e8e31c0f | f01eb9a27e0c6216ed74c42985e7c113abb78785 | refs/heads/master | 2022-12-18T14:23:54.479004 | 2020-09-16T10:24:33 | 2020-09-16T10:24:33 | 295,997,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | from rest_framework import serializers
from rest_framework.validators import UniqueTogetherValidator
from .models import Products, ProductsCategory
class CategorySerializers(serializers.ModelSerializer):
class Meta:
model = ProductsCategory
fields = ['id', 'name']
extra_kwargs = {'name':... | [
"muradlinigar@gmail.com"
] | muradlinigar@gmail.com |
8652cd749a90245d855212bfd0558b72ed3d35aa | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-hbr/aliyunsdkhbr/request/v20170908/UpdateBackupSourceGroupRequest.py | 14adc470cfbabc9beb28d1694be28c79b3ce4de1 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 3,205 | 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 |
dc1e31f8d6031a77c3cef1f05bef87d93471acec | 666751cf2e0ea6db6b66925f1c4a9a496e3eab83 | /companion_gui/companion_gui.py | 0aecd4c0f72d71900fc517e9d5cdfdc6f4e3ed9f | [] | no_license | SalmanFarooqShiekh/POV | ff2d682256587dabcd9434ff3e6fdbce7b0f110f | 7e6fb8dfe568180b498853067a890b099a48060f | refs/heads/master | 2022-05-28T05:54:33.837634 | 2020-04-29T13:26:29 | 2020-04-29T13:26:29 | 259,931,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,820 | py | from tkinter import *
from tkinter import messagebox
window1 = Tk()
window1.title("Welcome to POV Display")
window1.geometry("400x400+500+150")
window2 = Tk()
window2.title("Free Text")
window2.geometry("400x400+500+150")
window2.withdraw()
window3 = Tk()
window3.title("Heart Rate")
window3.geometry(... | [
"you@example.com"
] | you@example.com |
7a2a21457f809d88de2447b58489f239e3ad3544 | af9c0aafa10b7901533de0b32177ab80b4782d3f | /notes/code/yahoo/quote.py | 21ecdf23de57f71c71c021542050f6c47e7f3757 | [
"MIT"
] | permissive | Akramz/msds692 | d1d33298b7599950e95838c0fc9ddbd47a98ed5b | 42f4c2a0dc7569152bac2439e9b6385f2f101f7b | refs/heads/master | 2023-01-25T00:44:11.197544 | 2020-12-05T22:05:14 | 2020-12-05T22:05:14 | 319,362,758 | 1 | 0 | MIT | 2020-12-07T15:31:12 | 2020-12-07T15:31:11 | null | UTF-8 | Python | false | false | 480 | py | # DOC on parameters: http://wern-ancheta.com/blog/2015/04/05/getting-started-with-the-yahoo-finance-api/
QuoteURL = "http://finance.yahoo.com/d/quotes.csv?s=%s&f=%s"
import sys
import requests
ticker = sys.argv[1] # AAPL
fields = "ab" # ask, bid price
r = requests.get(QuoteURL % (ticker,fields))
csvdata = r.text
#... | [
"parrt@cs.usfca.edu"
] | parrt@cs.usfca.edu |
c8ef21a5ebae1cec6e221778c3577dd327828fbb | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/51/usersdata/65/20069/submittedfiles/listas.py | ae0aae626588c7fde1486d1817dfd205f94d1fed | [] | 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 | 754 | py | # -*- coding: utf-8 -*-
from __future__ import division
#FUNÇÕES
def absoluto(x):
if x<0:
x=x*(-1)
return x
else:
return x
def altura(l):
maior=absoluto(l[0]-l[1])
for i in range(0,len(l),1):
if i==0:
if absoluto(l[0]-l[1])>maior:
maior=absol... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a78e8d0660b27587176cb5bc3f622430356b5edf | 2752464589fd08bbf710bf1e67201702f408839f | /examples/AbaqusExperiments/Reconstruction_minimal.py | eb729ac0d6c06c30b3f2245dfc68bda95cc4cc98 | [
"MIT"
] | permissive | egilf/recon | 12604a6b69191973b89ddaa1518175c33511f2f3 | f6e02d2e4bbd92dff6d8c3c82d692e340c05568c | refs/heads/master | 2023-07-14T09:42:04.609051 | 2021-08-30T09:08:14 | 2021-08-30T09:08:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | # This allows for running the example when the repo has been cloned
import sys
from os.path import abspath
sys.path.extend([abspath(".")])
import recon
import numpy as np
import matplotlib.pyplot as plt
import os
cwd = os.path.dirname(os.path.realpath(__file__))
# Minimal example of pressure load reconstruction based ... | [
"sindre.n.olufsen@ntnu.no"
] | sindre.n.olufsen@ntnu.no |
b1c6c49ee9b2dc77ed523fbffc794fb8d4e1a6e0 | 43c84d897c057cb2ecc2a66a3a3dc9bb2ae57460 | /cplxmodule/relevance/__init__.py | de006eefb05f002150af9597a45205844c43db9c | [
"MIT"
] | permissive | kwaneGX/cplxmodule | 2541fc37dcd8419157dfea3a4487a2190af17676 | 364bb6aefc65a7091e95bb9445842390aab641b1 | refs/heads/master | 2020-07-07T17:12:14.702051 | 2019-08-10T10:44:26 | 2019-08-10T10:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from .real import LinearARD
from .real_l0 import LinearL0ARD
from .real_lasso import LinearLASSO
from .complex import CplxLinearARD
from .base import penalties, named_penalties
from .base import named_relevance, compute_ard_masks
from .extensions import CplxLinearARDApprox, CplxLinearARDBogus
| [
"ivannz@yandex.ru"
] | ivannz@yandex.ru |
f2c7a1dfacde55afe52a3d868cf4abab13dec3b1 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/astropy-4.0-py3.7-macosx-10.9-x86_64.egg/astropy/modeling/setup_package.py | 138fde4d44bc46936c24d14cd26c81d55cab1641 | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 4,319 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
from os.path import join
from distutils.core import Extension
from distutils import log
from astropy_helpers import setup_helpers, utils
from astropy_helpers.version_helpers import get_pkg_version_module
wcs_setup_package = utils.import_file(... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
8943dca5de2328176f8fdbe3a3bc5e2a7aa9fe7d | 2855f26e603ec7bf5b18876b54b75ee4577bdf2c | /ppob_multipay/settings/base.py | 997567a4c82bfb597d708340dc7ea8bee0c79e25 | [] | no_license | zkenstein/ppob_multipay_v2 | e8ea789c395c6fa5b83ba56fbaf5ea08a2a77a14 | 85296f925acf3e94cc371637805d454581391f6e | refs/heads/master | 2022-03-04T13:53:30.893380 | 2019-11-16T22:49:50 | 2019-11-16T22:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,707 | py | """
Django settings for ppob_multipay project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import... | [
"anderi.setiawan@gmail.com"
] | anderi.setiawan@gmail.com |
e670ea45835d0e68e1bdfb04d679f15f43ac8a6d | 2c1bafd09e9deb3f8ae4726178a27b0ca8480bd1 | /build/ur10_e_moveit_config/catkin_generated/pkg.develspace.context.pc.py | de253923b926c876af9cfb8d0e46869efa307ea1 | [] | no_license | QuiN-cy/RosPackages | a5b044735eb13fad622446db44b704eaa24c205c | 359fe9a0e06a6830b40fd7c9ca7f75b0a23cbec9 | refs/heads/main | 2023-05-08T09:32:48.711137 | 2021-05-28T09:26:44 | 2021-05-28T09:26:44 | 371,648,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | 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 = "ur10_e_moveit_config"
PROJECT_SPACE_D... | [
"quincy1234321@hotmail.nl"
] | quincy1234321@hotmail.nl |
73a60d4c3bd66df37b556fb690549a1ad4109538 | ea44ac3dcc301031068c28e81937e97ddc141412 | /miller/api/serializers.py | 1a61a8b61811c4d8b8445ab25eb602dc30dee368 | [] | no_license | pchiocchetti/miller | 3b813b4567228bbb601e732d41b18c1e3b664f12 | 2aadd80c3a2426e6e38d94cb94fa68ae2eac0526 | refs/heads/master | 2021-01-14T11:39:30.283952 | 2016-09-02T12:13:00 | 2016-09-02T12:13:00 | 67,396,980 | 0 | 1 | null | 2016-09-05T07:14:45 | 2016-09-05T07:14:45 | null | UTF-8 | Python | false | false | 4,018 | py | from django.contrib.auth.models import User
from rest_framework import serializers
from miller.models import Profile, Document, Tag, Story, Caption
from miller.api.fields import JsonField, HitField, OptionalFileField
class CaptionSerializer(serializers.HyperlinkedModelSerializer):
document_id = serializers.Read... | [
"gui.daniele@gmail.com"
] | gui.daniele@gmail.com |
5956d3a553d16f36e55045b635eb66cffde9228f | 524c168b1b7ab4644a612f692645ae56487dea8c | /fwork-backend/tina/importers/github/tasks.py | 24eb11997e11a550550d78a590f0994f8bfed348 | [] | no_license | phamhongnhung2501/Taiga.Tina | b4fa730a9f9601e23ab19c6d937e7daf0386b1e2 | 8bc44de3a364ccd0e49e767b098589898dcabc10 | refs/heads/master | 2022-12-14T09:55:11.205228 | 2019-07-08T07:42:38 | 2019-07-08T07:42:38 | 195,760,755 | 0 | 0 | null | 2022-12-08T05:18:37 | 2019-07-08T07:39:32 | Python | UTF-8 | Python | false | false | 1,197 | py | # -*- coding: utf-8 -*-
import logging
import sys
from django.utils.translation import ugettext as _
from tina.base.mails import mail_builder
from tina.celery import app
from tina.users.models import User
from .importer import GithubImporter
logger = logging.getLogger('tina.importers.github')
@app.task(bind=True)... | [
"hongnhunglyzin97@gmail.com"
] | hongnhunglyzin97@gmail.com |
8658edf741765b3d895bb5ba3a5f140356111d8e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04013/s881956302.py | c063f5a268c1ea6ee450d8323ad7d5e3f28f989c | [] | 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 | 804 | py | def solve():
def recur(i, n, total):
# print("i, n, total", i, n, total)
if not TABLE[i][n][total] == -1:
# print('cache!')
return TABLE[i][n][total]
if not i < N:
if n > 0 and total == A * n:
return 1
return 0
ans1 =... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5baafc3f4485885c8b770517e8b60d9700b211ec | 62b05442ab8bab65c6f5fdb2dd1d2b177138689d | /tests/fixtures/noqa.py | 8cc5bddcfcf5bf443b4c69209ccb980556bc427d | [
"MIT"
] | permissive | riyasyash/wemake-python-styleguide | 70f945eb01ba0999326f15f6e3aa7316f1d5ef28 | 6feb7844f541bebeaa61bb21953697d9dd6c7b3f | refs/heads/master | 2020-03-30T23:33:31.917181 | 2018-10-15T08:47:46 | 2018-10-15T08:47:46 | 151,704,550 | 1 | 0 | MIT | 2018-10-10T05:41:22 | 2018-10-05T10:24:38 | Python | UTF-8 | Python | false | false | 1,584 | py | # -*- coding: utf-8 -*-
"""
This file contains all possible violations.
"""
from __future__ import print_function # noqa: Z422
from .version import get_version # noqa: Z300
import sys as sys # noqa: Z113
full_name = u'Nikita Sobolev' # noqa: Z302
phone_number = 555_123_999 # noqa: Z303
partial_number = .05 #... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
8fd8d9828a9c2e8355a8306929535ad405794ee6 | 010c7472483232a7d868247292a627dc6cf1eeb4 | /examples/quant_engine_single_unit_feather_example_fql_expr_univ_expr.py | c2dfda9cc99b06265e0c6dd769964ea1f8bff01f | [
"Apache-2.0"
] | permissive | factset/analyticsapi-engines-python-sdk | 6eea90c4e3fb6acc58f9c111e399951aafc61b85 | d0d43d2615f34d6351c25c85cc8dfc1c540ceadf | refs/heads/master | 2023-08-11T22:19:07.506759 | 2023-06-13T10:55:55 | 2023-06-13T10:55:55 | 223,985,728 | 15 | 3 | Apache-2.0 | 2023-08-29T12:06:47 | 2019-11-25T15:51:10 | Python | UTF-8 | Python | false | false | 6,469 | py | import time
import os
from pathlib import Path
import pandas as pd
from fds.analyticsapi.engines import ApiException
from fds.analyticsapi.engines.api.quant_calculations_api import QuantCalculationsApi
from fds.analyticsapi.engines.api_client import ApiClient
from fds.analyticsapi.engines.configuration import Configur... | [
"noreply@github.com"
] | factset.noreply@github.com |
2755030208473b6014e83f294a91eba926490a4a | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/17444230.py | ebfd93d52a7d8f51968050c72d32b5364fa3b786 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/17444230.py generated: Wed, 25 Jan 2017 15:25:30
#
# Event Type: 17444230
#
# ASCII decay Descriptor: [B_1(L)0 -> ( B*+ -> (B+ -> K+ (J/psi(1S) -> mu+ mu- )) gamma ) K-]cc, [B_1(L)0 -> ( B*+ -> (B+ -> (D~0 -> {K+ pi-, K+ pi- pi+ pi-}) pi+ ) gamma ) K... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
5d5788408e6400288afb4b513531a19ed72a35dd | 1c7fb448e7a187cc27fcc27b582bffa65e8276c0 | /core/managers.py | 5eb36a36a4f7de42aa4a8f0143427d6b7371c465 | [] | no_license | ohjooyeong/airbnbDjango | 426d31aa5bb00be2783f6a69a7120215aa5be329 | bf003152d0063434de93100965bfa874acd4b72f | refs/heads/master | 2022-12-14T08:15:18.726890 | 2020-04-28T14:42:04 | 2020-04-28T14:42:04 | 227,999,964 | 0 | 0 | null | 2022-12-10T19:03:26 | 2019-12-14T09:50:00 | Python | UTF-8 | Python | false | false | 344 | py | from django.db import models
from django.contrib.auth.models import UserManager
class CustomModelManager(models.Manager):
def get_or_none(self, **kwargs):
try:
return self.get(**kwargs)
except self.model.DoesNotExist:
return None
class CustomUserManager(CustomModelManager... | [
"brb1111@naver.com"
] | brb1111@naver.com |
bc4a4167810d9206b40cac52a90aead9b7acd80c | 12e78946542250f64792bc6c1d8c8ff1ffecdaf7 | /Python/Django/courses/apps/course_app/urls.py | e107712741fe770dc855269c54d53709620f7e8e | [] | no_license | mkrabacher/CodingDojoAssignments | 0fde5adf7223a9eac07a4867499a243e230a300e | 4afef4aaf4f129fb56376e57d8be437d1f124521 | refs/heads/master | 2021-05-14T13:38:03.570533 | 2018-02-23T00:09:24 | 2018-02-23T00:09:24 | 113,722,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^addCourse$', views.addCourse),
url(r'^createCourse$', views.createCourse),
url(r'^removeCourse$', views.removeCourse),
url(r'^remove/(?P<number>\d+)$', views.remove)
]
| [
"matt.krabacher@gmail.com"
] | matt.krabacher@gmail.com |
6605747433eb60b986cf823930ae333b09d84c58 | ca9ab449331c31c1046ddbdd09a7079a65024a8a | /async_IO/multithreading/base/3-2_use_lock.py | af2d7a1f8a4bdae76597477289ed5b8094eea8f6 | [] | no_license | linth/learn-python | 95947fd40f578d4473496c263ab45a7459fe4773 | 33c36b45c0dc46cf6d9a5d1237b63c8c2442b3fd | refs/heads/master | 2023-04-28T17:08:06.473326 | 2023-04-24T17:09:41 | 2023-04-24T17:09:41 | 172,464,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | '''
Demo: 使用 lock 來處理錯誤狀況,需要撰寫程式並共享相同變數,會產生race condition。
- 學習使用 lock 方式
Reference:
- https://www.youtube.com/watch?v=usyg5vbni34
'''
from threading import Thread, Lock
import time
database_value = 0
def increase(lock):
global database_value
lock.acquire() # 獲得 lock,並從此開始會使用 lock 進行變數鎖定。
l... | [
"zhua0404@gmail.com"
] | zhua0404@gmail.com |
74e2feddd8f77db3a823c3bbe09a30ac534fd276 | 1403a27894c3cdc3b311f7358313081cf0e53634 | /treehouse/intro_python_track/python_collections/update_shopping.py | 107d55a2334e1c04af39756214bdcc0a5eed4ee7 | [
"MIT"
] | permissive | Ciwonie/python_cs150 | f03e05514e49bd93bf89b5725f4f25c6f34c2035 | 4de396278f1d343e48e96eb729b37f704755d678 | refs/heads/master | 2020-04-21T20:13:47.307768 | 2019-07-08T20:52:56 | 2019-07-08T20:52:56 | 169,836,269 | 1 | 0 | null | 2019-07-08T20:52:57 | 2019-02-09T05:44:16 | Python | UTF-8 | Python | false | false | 1,666 | py | import os
shopping_list = []
def clear_screen():
os.system("cls" if os.name == "nt" else "clear")
def show_help():
clear_screen()
print("What should we pick up at the store?")
print("""
Enter 'DONE' to stop adding items.
Enter 'HELP for this help.
Enter 'SHOW" for the list.
Enter 'R... | [
"jonathan@Jonathans-MacBook-Pro.local"
] | jonathan@Jonathans-MacBook-Pro.local |
75efd0f2f76843e536dfa50f9c23e8343d31c5df | 50c8d2573e2ee9f77a7de9f95b29df8e80e311e9 | /apps/online_shop/migrations/0002_auto_20210505_0413.py | d9b9fad0dae5106790d80ed1a851de61a51324c0 | [] | no_license | higashizono33/e-commerce | 6ae5034688e1ad22fed769e563b1473fcdae9cf2 | 83ece47d1e2f79ef2535c6c16548d0f9a366dd4e | refs/heads/master | 2023-06-01T09:05:06.447667 | 2021-06-12T04:01:27 | 2021-06-12T04:01:27 | 376,197,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | # Generated by Django 2.2 on 2021-05-05 04:13
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),
('online... | [
"takashizono@gmail.com"
] | takashizono@gmail.com |
e2fa83ba1f2733e253d0e189841ddeba5af902e0 | 6b90c2fa425d474201dc139ef94701740aed7912 | /Day 7/Internet.py | 26c742970f22de382d6a0af7af71b3c28674e52b | [] | no_license | bakkerjangert/AoC_2019 | 2ac5bf3a7a41a48685bab229dbdf971e6bd1a15d | c40f762d35699dc91fc51ba1a590106f0f903199 | refs/heads/master | 2023-02-05T14:54:23.047422 | 2020-12-18T14:36:37 | 2020-12-18T14:36:37 | 322,619,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,031 | py | from itertools import permutations
def get_permutations(li):
for permutation in permutations(li):
yield permutation
def get_modes(modes):
return [int(mode) for mode in [modes[2], modes[1], modes[0], modes[3:]]]
class Computer:
def __init__(self, data):
self.idx = 0
self.data = da... | [
"gert-jan.bakker@rhdhv.com"
] | gert-jan.bakker@rhdhv.com |
5aed87c473ecdae870488b1c461393901147692e | 035730cf12c43f59b76d9809e444b9070c3e5732 | /PGR_무지의_먹방_라이브.py | 7d68fd97d3b4ba9becbc3492b03228a053cef941 | [] | no_license | kimhaggie/Coding_practice | e18153838425874b80a683094369a6dfb8836c93 | a4f2732e5d7a63adae990226073333b88324765a | refs/heads/master | 2023-08-01T11:33:54.071564 | 2021-09-07T14:40:56 | 2021-09-07T14:40:56 | 310,264,349 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | def cycle(start,food_times,k):
total_len = 0 #남은 음식 수
for food in food_times:
if food>0:
total_len+=1
x = k//total_len #바퀴수
y = k%total_len #나머지
new_k = 0 #남은 시간
for idx, val in enumerate(food_times):
if val>0:
food_times[idx]-=x
if food_ti... | [
"kimhaggie@gmail.com"
] | kimhaggie@gmail.com |
394862beeeff42caadf7f7678167a80b6d01ac4a | f1fffc110c929879fe11de982c0c2314c45bda34 | /Django_실전/fc_django/order/views.py | 641d9296fe23ed6c7dc4f5946c677680b10db48e | [] | no_license | DeepxHyeon/fc-django | 1743211dafece3e82f3f6716300d7813646e8557 | 28da585938f192dffdb578a75d0e38a98cbc941c | refs/heads/master | 2022-12-13T15:03:04.778091 | 2020-09-10T03:52:53 | 2020-09-10T03:52:53 | 276,069,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from django.shortcuts import render
from django.views.generic.edit import FormView
from .forms import RegisterForm
class OrderCreate(FormView):
form_class = RegisterForm
success_url = '/product/' | [
"deepxhyeon@gmail.com"
] | deepxhyeon@gmail.com |
1a2acc6c2e8e8f3d330efd266f6ca645f361cbde | 16e69196886254bc0fe9d8dc919ebcfa844f326a | /edc/subject/off_study/models/signals.py | 8cb74267f7e0492b2cc370ca552c1f4f9c28463f | [] | no_license | botswana-harvard/edc | b54edc305e7f4f6b193b4498c59080a902a6aeee | 4f75336ff572babd39d431185677a65bece9e524 | refs/heads/master | 2021-01-23T19:15:08.070350 | 2015-12-07T09:36:41 | 2015-12-07T09:36:41 | 35,820,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from django.db.models.signals import post_save
from django.dispatch import receiver
from .base_off_study import BaseOffStudy
@receiver(post_save, weak=False, dispatch_uid="base_off_study_post_save")
def base_off_study_post_save(sender, instance, **kwargs):
"""Calls :func:`off_study.models.BaseOffStudy.post_save_c... | [
"ew2789@gmail.com"
] | ew2789@gmail.com |
7b3c93c095ef99b68935236a34564c777065fe71 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/2455.py | c4a203859c75e4806d3c70a6fe8fdad30de2a161 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | def main():
file = open("A-large.in")
lines = file.read().split()
file.close()
number = int(lines[0])
lines = lines[1:]
boards = []
for i in range(number):
lboard = lines[4*i:4*i+4]
board = []
for line in lboard:
board.append(line)
boar... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ff40d97dbccbbfc6e0ac5cb1b74ff62cbcd05d45 | 6b95283a5c4d24fc379f62b935bf3e8584ad9da6 | /services/core/apps/core/management/commands/populate_db.py | 15f9ed84f152054fcc36925f05aae5e54447c10e | [
"MIT"
] | permissive | myworkshopproject/myworkshop | a2e70a900cf2840a4819430d748c73e48a45fb88 | fb7d74f313c74534972c17bb8de642b25d04746c | refs/heads/main | 2022-11-03T09:10:38.229655 | 2022-07-01T09:42:39 | 2022-07-01T09:42:39 | 188,009,769 | 0 | 0 | MIT | 2019-10-30T10:31:41 | 2019-05-22T09:47:16 | Python | UTF-8 | Python | false | false | 706 | py | from django.contrib.sites.models import Site
from django.core.management.base import BaseCommand
from django.conf import settings
from accounts.models import get_sentinel_user
from core.models import SiteCustomization
class Command(BaseCommand):
def _create_site(self):
example_site = Site.objects.get(pk=... | [
"julien@lebunetel.com"
] | julien@lebunetel.com |
941e45cccfe1196fe43b41f6071dc8a388873b38 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/10/12/14.py | 90c076054a4797ed03e57d79781e19d2540eb379 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | #!/usr/bin/env python
# Python 2.6.x plus (possibly) the following non-standard libraries
# numpy -- http://numpy.scipy.org/
# scipy -- http://www.scipy.org/
# input from stdin, output to stdout -- or -- progname.py input output -- or -- progname.py input
import os
import sys
def debug(*x,**a):
print "DEBUG... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
a9a7abc3e68fe0dfdf37410cce7d08ef09a2133d | ceee0542c3c48d800e1d2c1e0bae1fe9526ccc77 | /flask_pw/__init__.py | fb21efbe5223a22a24e5359cea52cdd06cc8fa24 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pyalex/flask-pw | 8a316f9a3eec5ccdaa5149faa1041bfb3510880c | 62a021904ffe803b8e81f34b2b4bc51c8f301308 | refs/heads/master | 2020-12-25T08:18:22.223576 | 2016-06-29T16:54:30 | 2016-06-29T16:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,409 | py | import logging
import os
from importlib import import_module
import peewee as pw
from cached_property import cached_property
from flask._compat import string_types
from peewee_migrate.router import Router
from playhouse.db_url import connect
from .models import Model, BaseSignalModel, Choices # noqa
__license__ = "... | [
"horneds@gmail.com"
] | horneds@gmail.com |
3c03cfaf6d04ec69a44239db562483693471a22f | 52944204019213ad4aa9fedab0381995ed89f89e | /libbgp/bgp/__init__.py | bfc3fd6e65de74273a34fb809ade9be488a1f15f | [
"Apache-2.0"
] | permissive | meidli/libbgp | 20828789d8d5d64ce0b21ac42a73414daa1e446f | 371d43b3655c40067725f5066c50391606154c60 | refs/heads/master | 2021-01-22T08:13:11.763640 | 2017-07-04T09:45:40 | 2017-07-04T09:45:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | # Copyright 2015-2017 Cisco Systems, 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 req... | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
bc393f7f5cb76dc2341e9914eb20988f9d85a7bf | f7463bd0ab18b41611d5ac725f65d3db3a3a7a1d | /Generation Python - A Beginner's Course/14_EXAM/6.py | 7f5d2be1604c9e62a18e1bfb786cdfd6e7d1d701 | [] | no_license | Sergey-Laznenko/Stepik | f81c5aeead3fbd20628129d60ccce92b34724b97 | 5e1a1a76c3f6ed487cf8fc847913c890c8eac840 | refs/heads/master | 2022-12-28T19:01:48.670540 | 2020-10-18T15:23:58 | 2020-10-18T15:23:58 | 279,022,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | """
Напишите функцию compute_binom(n, k), которая принимает в качестве аргументов два натуральных числа n и k,
и возвращает значение биномиального коэффициента, равного n! / k!*(n-k)!
"""
def factorial(num):
if num == 0 or num == 1:
return 1
return factorial(num - 1) * num
def compute_binom(x, y):
... | [
"Laznenko.Sergey@gmail.com"
] | Laznenko.Sergey@gmail.com |
424d505301481a6af43720b9cf2d29d420d2e383 | 3507a2d646ab0f729c717d5239633d70508d32b1 | /dh_abstracts/app/abstracts/migrations/0005_auto_20190429_1714.py | efcaf36a73562105da8ffe2b6da7e35c1146f580 | [
"MIT"
] | permissive | cmu-lib/dhweb_app | 26c22055afc7685153dd588e1ebabceb9cb782f7 | 8779fb1d6d52a8fb26a955b06b8589d5708589f6 | refs/heads/master | 2023-04-29T13:28:51.233931 | 2022-09-02T00:28:54 | 2022-09-02T00:28:54 | 146,502,577 | 4 | 0 | MIT | 2023-04-21T21:45:46 | 2018-08-28T20:23:16 | Python | UTF-8 | Python | false | false | 458 | py | # Generated by Django 2.1 on 2019-04-29 21:14
import django.contrib.postgres.indexes
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('abstracts', '0004_auto_20190429_1712'),
]
operations = [
migrations.AddIndex(
model_name='work',
... | [
"matthew.d.lincoln@gmail.com"
] | matthew.d.lincoln@gmail.com |
c004477bf450039a0070656049a278bbde020c45 | 4da72c23f48112095b14eaa7c41f3e6441296226 | /historic66.py | 4dddf3c8a683aef12494ee1e064c6fc41570a65c | [] | no_license | icculp/route-66-scrape_public | c61b62954e0a12554f693d7e0c0d86094a194fa0 | c594e84e20ae3be4576fd0c629d64b3a70a598cc | refs/heads/master | 2023-04-08T21:12:10.408475 | 2021-04-14T16:36:10 | 2021-04-14T16:36:10 | 354,968,817 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | #!/usr/bin/env python3
"""
Web scraper for Route 66 places of interest
"""
import json
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
def information():
op = webdriver.ChromeOptions()
op.add_argument('headless')
op.add_argument('--disable-dev-shm-usage')
op.add_argu... | [
"icculp@gmail.com"
] | icculp@gmail.com |
4004a3b6a5d0680bde8ecf1a1cc1594af2ae1d55 | 2b56aaec923a2e7939734c6743c934ad960aef38 | /Greedy/3109.py | 486beaec9a517e7b9415b0f6b6602370304748e2 | [] | no_license | SAE-HUN/Algorithms | 461757fd5167fed14d7b5aca88fe004a5892c91a | aa2cc4d04e506d762706ae62e93400f1b57c82f0 | refs/heads/master | 2023-05-11T22:42:32.125790 | 2021-06-01T05:21:06 | 2021-06-01T05:21:06 | 306,549,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # your code goes here
def solution(x, y):
if y==c-1:
return True
for d in dx:
if 0<=x+d<r and not visited[x+d][y+1] and maps[x+d][y+1]=='.':
visited[x+d][y+1] = True
if solution(x+d, y+1):
return True
return False
r, c = map(int, input().split())
maps = [list(input().strip()) for _ in range(r)]... | [
"noreply@github.com"
] | SAE-HUN.noreply@github.com |
11cdf8437043100fa1555eab1f383b39a11cde36 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fc/pinningpdef.py | 9b01c83d3a5d8f036c62095743b8ded246219fd5 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,537 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
2fe13326f948a3812d1203fe6a1dedc81dee57f1 | a2ac137f001067361fce81a7488d73ccca6438de | /store/migrations/0002_auto_20150814_0124.py | 0366d3e8baaa20cd755f64ed5c678bebd9ac9d23 | [
"Apache-2.0"
] | permissive | bharathramh92/easy-ecom | 3f00cad0e725fc7defc22ce10a35d61fa2cb6946 | 164f1b6e11559386efef474c5f50d33b4ddea792 | refs/heads/master | 2020-12-30T09:51:30.133202 | 2015-10-08T19:29:21 | 2015-10-08T19:29:21 | 40,255,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
]
| [
"bharathramh92@gmail.com"
] | bharathramh92@gmail.com |
c3840d2c4f30c72a5cdba1dbdf5e9b6372fa5f91 | 7dffb676aa84ec7e5c2621e1f53610ba8fd3fc64 | /better_raw_modes.py | 761692e954bcd91fa35a8ed605ab8fd4f130b733 | [
"MIT"
] | permissive | DGMurdockIII/hexchat-addons | da7ad91285f638bb79b698418f0c9bf4a0a2b271 | 6bd007e11fb3cc4372932d3cb9f94d49d7d5be75 | refs/heads/master | 2020-12-28T23:16:40.023897 | 2016-02-19T03:21:09 | 2016-02-19T03:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | """Transforms raw mode messages to remove redundant information.
FichteFoll sets mode #channel +o FichteFoll => FichteFoll sets mode +o FichteFoll
FichteFoll sets mode FichteFoll +i => FichteFoll sets mode :+i
Requires the irc_raw_modes setting to be enabled
(`/set irc_raw_modes 1`).
Note that this modifies the 'Raw... | [
"fichtefoll2@googlemail.com"
] | fichtefoll2@googlemail.com |
3100b6619921dae7cc7bd86c32d0dae0b169aece | 786de89be635eb21295070a6a3452f3a7fe6712c | /Detector/tags/V00-00-02/examples/exda_camera.py | cb70616e39751082bc289fd9abb5f80ee903d7d7 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | #!/usr/bin/env python
import sys
import psana
import Detector
# psana -m EventKeys -n 5 exp=sxrf9414:run=72
ds = psana.DataSource('exp=sxrf9414:run=72')
evt = ds.events().next()
env = ds.env()
src = psana.Source('DetInfo(SxrEndstation.0:Fccd960.0)')
#src = Source('Camp.0:pnCCD.1')
det = Detector.DetectorAccess(sr... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
56d51a84779d23561133b18c1a17ef58fbb511e8 | f891828ffe9c8501d276560c8c52d319f284056f | /040_comb_sum_2_m/dp2.py | 09be2d0d33ca2f9e9e89d97b5e99eb1ef574e431 | [] | no_license | chao-shi/lclc | 1b852ab61fef4072039c61f68e951ab2072708bf | 2722c0deafcd094ce64140a9a837b4027d29ed6f | refs/heads/master | 2021-06-14T22:07:54.120375 | 2019-09-02T23:13:59 | 2019-09-02T23:13:59 | 110,387,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | class Solution(object):
def combinationSum2(self, candidates, target):
"""
:type candidates: List[int]
:type target: int
:rtype: List[List[int]]
"""
candidates = sorted(candidates, reverse=True)
# Meaning of m1 changed here, the combo the list of m[i][j] must ... | [
"chris19891128@gmail.com"
] | chris19891128@gmail.com |
cf868abee16075141a671a418a509bbcd64c726e | 8955a292243a93e925671267c363dd12c58a9de7 | /deps/libgdal/gyp-formats/map.gyp | 6fa596689d7ce5459f1af9e1034149d39d2e2dca | [
"Apache-2.0"
] | permissive | diorahman/node-gdal | dc436aa10cd09f08f93c5bfd8a2705e7567ab4fc | 2cee3ec16eb0b922b1e480139a0ebc1a03becb1b | refs/heads/master | 2021-01-18T10:21:06.617490 | 2014-06-05T01:05:36 | 2014-06-05T01:05:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | gyp | {
"includes": [
"../../../common.gypi",
"../common.gypi"
],
"targets": [
{
"target_name": "libgdal_map_frmt",
"type": "static_library",
"sources": [
"../gdal/frmts/map/mapdataset.cpp"
],
"include_dirs": [
"../gdal/frmts/map"
]
}
]
}
| [
"brian@thirdroute.com"
] | brian@thirdroute.com |
40ac01f0ccb23f78af41cbec28f1abdbbafefcbe | 9ee699f7c41a65371e7d1b26e668c573f036fcf7 | /reporter/sources/mercury/fatals.py | fe4897caeb705561d728b8ced867415809e5f4e3 | [] | no_license | kleopatra999/jira-reporter | 2452fd836ff682196785d279e314863a7a92d558 | 9f7c4a20daae60f8af13e193dd6a55b982eddbfa | refs/heads/master | 2021-01-17T08:48:21.127592 | 2016-04-29T11:19:43 | 2016-04-29T11:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | import json
from reporter.reports import Report
from common import MercuryLogsSource
class MercurySource(MercuryLogsSource):
""" Get Mercury errors (of the specified severity) from elasticsearch """
REPORT_LABEL = 'MercuryErrors'
def _get_entries(self, query):
""" Return entries matching given ... | [
"maciej.brencz@gmail.com"
] | maciej.brencz@gmail.com |
c32d4fb077e7f50114d59c1349ce65c2511e323e | 1bc7053e7582e43bdd4b943c5700677e07449d3c | /setup.py | ba71e33465b22182028a78f3b4be742d1d63a68c | [
"MIT"
] | permissive | pytsite/pytsite | f92eaa041d85b245fbfcdff44224b24da5d9b73a | e4896722709607bda88b4a69400dcde4bf7e5f0a | refs/heads/master | 2021-01-18T01:06:12.357397 | 2019-08-03T02:56:48 | 2019-08-03T02:56:48 | 34,899,242 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | import re, json, semaver
from os import walk, path, system
from setuptools import setup, find_packages, Command
with open(path.join(path.dirname(__file__), 'pytsite', 'pytsite.json')) as f:
data = json.load(f)
pkg_name = data['name'].lower()
pkg_version = data['version']
pkg_description = data['descrip... | [
"a@shepetko.com"
] | a@shepetko.com |
f2c848e670cf5634b0ffc8110af682c595dd742d | ed88da1786c7f878e9a70ab543b6204d4789161f | /coodingpenguin/dynamic_programming_1/1010_다리놓기.py | 72ac0c1c4d7457a0a8d73ed09d1f2bbce54d14b3 | [] | no_license | xodud001/coding-test-study | 9236e505a6795f0a6a7ca2465a180910fe51915c | c8823210f7d688e65f9da39edf7d89aefb57f441 | refs/heads/main | 2023-08-02T16:39:45.290697 | 2021-09-08T04:56:32 | 2021-09-08T04:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | # 문제: [BOJ 29200] 다리 놓기
# 유형: 동적계획법
# 메모리/시간: 29200kb / 64ms
import sys
input = sys.stdin.readline
table = [[0] * 31 for _ in range(31)] # 테이블
for i in range(1, 31):
for j in range(1, 31):
if i == 1 or j == 1:
table[i][j] = i * j
elif i == j:
table[i][j] = 1
elif ... | [
"coodingpenguin@gmail.com"
] | coodingpenguin@gmail.com |
1b82b79dc7311bee188adcc42c13c817c727b1a9 | 11c2f6439697a999160d241f01422d502510f5e5 | /users/apps/user_login/views.py | e56eb4d8ded17684a37c58979b0756f40ec5ebc4 | [] | no_license | cd-chicago-june-cohort/jp-django | 66900d08c609eeb380a209792aa3b8837c6eaf54 | 598a254c65b7c182db6270c311bde0005b7ddb4c | refs/heads/master | 2021-01-01T15:31:44.071346 | 2017-07-21T13:40:50 | 2017-07-21T13:40:50 | 97,633,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, HttpResponse
def index(request):
response = "It's working now."
return HttpResponse(response)
| [
"jpdoherty90@gmail.com"
] | jpdoherty90@gmail.com |
d46dedaf561eccccc5286de48683bfc9dffdd302 | c90b3ac3e5ad11cb93d4e6b76b9b9c4a19d0f512 | /.history/copytest_20200504161501.py | de89367e403845182263544ef21879dbed7ceace | [] | no_license | rbafna6507/passwordstorageproject | 6465585e36c81075856af8d565fe83e358b4a40a | 480c30e358f7902ac0ef5c4e8d9556cb1d6d33f4 | refs/heads/master | 2022-11-25T12:05:02.625968 | 2020-07-27T21:33:38 | 2020-07-27T21:33:38 | 283,021,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | import pickle
import cryptography
from cryptography.fernet import Fernet
def encrypt(message: bytes, key: bytes) -> bytes:
return Fernet(key).encrypt(message)
def decrypt(token: bytes, key: bytes) -> bytes:
return Fernet(key).decrypt(token)
e_userpass = {}
key_infile = open('dubdub.pkl','rb')
key = pickle.lo... | [
"35872545+rbafna6507@users.noreply.github.com"
] | 35872545+rbafna6507@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.