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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5bad245ffc8fd04a99b20e213541854e2a0d9d52 | 38c10c01007624cd2056884f25e0d6ab85442194 | /testing/iossim/iossim.gyp | c4a45b62a9795884aca6af3d78b11f8b08a754dc | [
"BSD-3-Clause"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 6,592 | gyp | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'mac_deployment_target': '10.9',
'mac_sdk_min': '10.9',
},
'conditions': [
['OS!="ios" or "<(GENERATOR)"!="xcode" or "... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
48b77806204145a3e04a4559d0ac62c9a5937ab2 | 05caf48bd067c050666026b75686f23d02327378 | /_687.py | dffd34caea2462d0e41710f98e75e5e9b7b327e9 | [
"MIT"
] | permissive | elfgzp/Leetcode | 3b6fa307c699fd5a1ba5ea88988c324c33a83eb7 | 964c6574d310a9a6c486bf638487fd2f72b83b3f | refs/heads/master | 2023-08-21T23:11:38.265884 | 2020-10-17T11:55:45 | 2020-10-17T11:55:45 | 168,635,331 | 3 | 0 | MIT | 2023-07-21T03:50:43 | 2019-02-01T03:14:49 | Python | UTF-8 | Python | false | false | 1,655 | py | # -*- coding: utf-8 -*-
__author__ = 'gzp'
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
from utils import Tree
class Solution:
def longestUnivaluePath(self, root):
"""
:type root:... | [
"741424975@qq.com"
] | 741424975@qq.com |
ad3ef3a3344b83498cc3a9e4073a909f6b810e9a | 0205c4d7379844ff4f7a7681c273e9f4e6a4dc27 | /users/views.py | da1194cdbcc38555c811c7e733ad908e9db9f3a0 | [] | no_license | Dmitry-Kiselev/store_flask | f265c97a29f7a0fce80a0a6cb6904bfbf7f5e9e7 | 6d2fb9341f2a2e3ee65feae72e734ba6d22778e4 | refs/heads/master | 2022-12-13T04:38:25.408053 | 2017-06-06T09:00:45 | 2017-06-06T09:00:45 | 93,065,489 | 0 | 0 | null | 2022-12-07T23:58:11 | 2017-06-01T14:22:48 | Python | UTF-8 | Python | false | false | 2,970 | py | from flask import render_template, request, flash, redirect, url_for, Blueprint
from flask.views import MethodView
from flask_login import login_required, current_user, logout_user, login_user
from database import db
from users.models import User
from .forms import RegistrationForm, UserLoginForm, UserProfileForm
use... | [
"kdem27@gmail.com"
] | kdem27@gmail.com |
f7546a64d49933352ba8067e1504cdcec370e9d5 | 30359e5f360d90da240317260c6f90cfde52b451 | /core/tests/test_schemas/test_types/test_file.py | 43f5e1fae7d8bfbcdd57cbb9a953fcb79ae3421f | [
"Apache-2.0"
] | permissive | gideonbros/polyaxon | 321925ca301c72c1b86a2f519f3f8946ebc72302 | 482a756b781e3cb749cc871a275689d1ad16c028 | refs/heads/master | 2023-06-26T22:08:36.138993 | 2021-07-08T12:09:36 | 2021-07-21T15:28:20 | 392,247,410 | 0 | 0 | Apache-2.0 | 2021-08-03T08:35:17 | 2021-08-03T08:35:17 | null | UTF-8 | Python | false | false | 1,059 | py | #!/usr/bin/python
#
# Copyright 2018-2021 Polyaxon, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"contact@polyaxon.com"
] | contact@polyaxon.com |
ce39f5cb42a662f43f745bd54a712a265e934925 | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /juejinpy/juejin_106.py | e5f3d3b1c5bbdb25e7ddcb4df93b084ad121c66b | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,096 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6944994703876030494", "article_info": {"article_id": "6944994703876030494", "user_id": "1072747466464632", "category_id": "6809637767543259144", "tag_ids": [6809640404791590919], "visible_level": 0, "link_url": "", "cover_image": "", "is_gfw": 0, "title": "零基... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
8948e7bf7f4a6d5e1c4c2933a3ccc1cc9657c40c | 84be6463068b40b76e8306a35c728be708071599 | /caesarlinsa/storage/impl_mongodb.py | bc83baf355522825aaf7324b957cc950c8206ad4 | [] | no_license | dwx503772/caesarlinsa | dadb1ab42b6add115e5f6ab8eb606be601779aef | 3c57d45fecf679a69162bc191a5d4b49c9c9dbe9 | refs/heads/master | 2020-05-17T13:20:11.689639 | 2019-02-05T08:03:50 | 2019-02-05T08:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,988 | py | #
# Copyright 2012 New Dream Network, LLC (DreamHost)
# Copyright 2013 eNovance
# Copyright 2014 Red Hat, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/li... | [
"Caesar_Linsa@163.com"
] | Caesar_Linsa@163.com |
1a66c85c4c7e019e53b1105f00b397b247322e7b | 5a3cfbc2365d3988cc6742faed30dd005aa1a0b2 | /bin/wheel | bfe5784e60cc1c9828d0c1593dffd0849fe384f0 | [] | no_license | k3tchup/virtual27 | df5f337dab331a3ba76db0b68ba065ba6f826dd5 | e0af4cff4825a0226f6d89e2b06120569bf4737d | refs/heads/master | 2016-08-04T10:43:07.749350 | 2015-08-12T02:23:17 | 2015-08-12T02:23:17 | 40,567,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | #!/root/virtual27/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"none"
] | none | |
7922bdbb889dd14145d05d3c09aa02765ef8c64e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2405/60595/259947.py | 3afffee81979b07344b34e5037f4ae341f9758bf | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,983 | py | import math
class BinaryTree:
def __init__(self, root):
self.data = root
self.left = None
self.right = None
def preorder(self,find):
if self.data != None:
if(self.data==find):
return self
if self.left != None:
go=self.left.preorder(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
073b887a50ce86d268cfd05ea734ad8d84165192 | fe0017ae33385d7a2857d0aa39fa8861b40c8a88 | /env/lib/python3.8/site-packages/sklearn/utils/weight_vector.py | 0761a952761e303c7155b9f57bae0c5573d76b25 | [] | no_license | enriquemoncerrat/frasesback | eec60cc7f078f9d24d155713ca8aa86f401c61bf | e2c77f839c77f54e08a2f0930880cf423e66165b | refs/heads/main | 2023-01-03T23:21:05.968846 | 2020-10-18T21:20:27 | 2020-10-18T21:20:27 | 305,198,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py |
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py
import sys
# mypy error: Module X has no attribute y (typically for C extensions)
from . import _weight_vector # type: ignore
from ..externals._pep562 import Pep562
from ..utils.deprecation import _raise_dep_warning_if_not_pytest
deprecated_path = 'sk... | [
"enriquemoncerrat@gmail.com"
] | enriquemoncerrat@gmail.com |
15f3f8d74105fa63885d59c00a3235e59fb4d25f | 76a0d31d8a686b24c61deb195eb52a53adf8bcd8 | /gaphor/UML/actions/tests/test_partition.py | e26ac94f16ab842c2a97cde9e8a7108e2ec457c2 | [
"Apache-2.0"
] | permissive | Proteanindustries/gaphor | 6d7d6fa8982c22ff14c154ca3c94e6e36db6361c | 2ce28f0ef6940828adc1ae652e033e8ac4df6aa7 | refs/heads/master | 2023-08-23T15:47:11.514827 | 2021-10-12T19:07:23 | 2021-10-12T19:07:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | import pytest
from gaphor import UML
from gaphor.diagram.diagramtools import new_item_factory
from gaphor.diagram.tests.fixtures import copy_and_paste, copy_clear_and_paste
from gaphor.UML.actions.actionstoolbox import partition_config
from gaphor.UML.actions.partition import PartitionItem
@pytest.fixture
def partit... | [
"gaphor@gmail.com"
] | gaphor@gmail.com |
1e873622ad8cbb0407a179da00c5a131ef90960e | 660e3a2bb5f127908549d52ebc62d0d67725f832 | /Algorithm_python/dikstart_with_heap.py | 677c5507ef7b75fcbd7bece9bbaac47885bd8e0d | [] | no_license | dygksquf5/python_study | b56f8548bea7e31a484301bb97ddefe44d931c80 | 282126b0104dae9f9f8f63e613cc968a2f998ef1 | refs/heads/master | 2023-02-21T03:46:16.673962 | 2021-01-24T14:08:47 | 2021-01-24T14:08:47 | 294,593,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | import sys
import heapq
input = sys.stdin.readline
INF = int(1e9) # 무한으로 설정해주기! 10억
# 노드의 개수와 간선의 개수 입력받기
n, m = map(int, input().split())
# 시작노드 입력받기
start = int(input())
# 각 노드에 연결되어 있는 노드 정보를 담는 리스트 만들기
graph = [[] for i in range(n+1)]
# 방문여부 체크 테이블
visited = [False] * (n + 1)
# 최단거리에 있는 테이블 모두 무한으로 초기화
dist... | [
"66229916+dygksquf5@users.noreply.github.com"
] | 66229916+dygksquf5@users.noreply.github.com |
92051d92cb20d295bad6ef3c9e1ea71f58438e0e | 7491ceb405287660538e876317d3f69328757651 | /aydin/it/demo/n2s/lgbm/2D_generic.py | f0ddc1791d18d91e6951dd1b88b6222df3bfab5b | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license"
] | permissive | royerlab/aydin | 4d0bd5cb1a3786cf32f1d8661d3a3aa13ec7cab1 | 9312f227605be26fce960373c1f29a71323da914 | refs/heads/master | 2023-04-29T20:45:42.515226 | 2023-02-16T22:21:07 | 2023-02-16T22:21:07 | 188,953,977 | 125 | 14 | BSD-3-Clause | 2023-03-15T01:04:16 | 2019-05-28T04:30:19 | Python | UTF-8 | Python | false | false | 3,903 | py | # flake8: noqa
import os
import time
import numpy
import numpy as np
import skimage
from skimage.data import camera
from skimage.metrics import peak_signal_noise_ratio as psnr
from skimage.metrics import structural_similarity as ssim
from skimage.morphology import disk
from skimage.restoration import denoise_nl_means,... | [
"noreply@github.com"
] | royerlab.noreply@github.com |
a98d0ff59678c7532f4e4b16430522c10fabe2ce | ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31 | /flask-blog-master/app/main/forms.py | 2da4e4db0621c58cdb4d5af73db9ccbaaf96ec61 | [
"MIT"
] | permissive | babiato/flaskapp1 | 84de2d0b26a54f5820d3bbe97926782ad41e005c | 530beb9e3b8516e0e93960b99521c23a523ef546 | refs/heads/master | 2023-02-26T16:36:49.760632 | 2021-02-04T09:08:40 | 2021-02-04T09:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | # -*- coding:utf-8 -*-
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, SelectField, BooleanField, TextAreaField
from wtforms.validators import DataRequired, Email, Length
from flask_pagedown.fields import PageDownField
from ..models import Role
# 首页的博客文章表单
class PostForm(FlaskForm):
t... | [
"jinxufang@tencent.com"
] | jinxufang@tencent.com |
06ce4b87b119cb53eb4b6e8528ed3ca5a90f0b33 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/94/usersdata/189/57570/submittedfiles/mediaLista.py | 6eb10310f52b0f5a0e52e041fdf24c2f3a24e804 | [] | 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 | 431 | py | # -*- coding: utf-8 -*-
n=int(input('digite o numero:'))
lista=[]
def media(lista):
soma=0
for i in range(0,len(lista),1):
soma=soma+lista[i]
resultado=soma/len(lista)
return resultado
for i in range(0,n,1):
numero=float(input('digite um numero:'))
lista.append(numero)
print('%.2f'... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
18e2310fb348fe5c4fdd3643b43c8cac505ad882 | f4dd8aa4e5476ffde24e27273dd47913c7f9177a | /Dlv2_safe2/tests/parser/constants.14.test.py | 5b896de56b65755edd9ba59b5164e78cc95aafb5 | [
"Apache-2.0"
] | permissive | dave90/Dlv_safe2 | e56071ec1b07c45defda571cb721852e2391abfb | f127f413e3f35d599554e64aaa918bc1629985bc | refs/heads/master | 2020-05-30T10:44:13.473537 | 2015-07-12T12:35:22 | 2015-07-12T12:35:22 | 38,256,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | input = """
%#const pippo = "pippo".
p(pippo).
a(X) :- p(X).
"""
output = """
%#const pippo = "pippo".
p(pippo).
a(X) :- p(X).
"""
| [
"davide@davide-All-Series"
] | davide@davide-All-Series |
fc563dc83f05cb5d6f581dff4950adb45cf7e86c | 4e59c2444334c67e419dbc97a2fd326115f15555 | /http_server_pkg/tests/test_views/test_presence_health/__init__.py | e2b913ac039370806b7f1ac9771cdedb728601ba | [
"MIT"
] | permissive | bbcawodu/nav-online-backend | cebf41fd3373606ac880b1fc4935885d13948c86 | 3085ad686b253ea82478eb2fc365f51dda6d9d96 | refs/heads/master | 2021-01-22T04:44:13.105412 | 2018-08-14T16:40:55 | 2018-08-14T16:40:55 | 102,269,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # from test_browsing_session_data import *
# from test_browsing_intent_snapshot import *
| [
"awodubradley@gmail.com"
] | awodubradley@gmail.com |
d2c03328420511dc88cb91ef57a917e982532a84 | ef03c0bbe44baae4655e4ec840d648daf114b3c6 | /tensor2tensor/models/mtf_transformer.py | 8cff5786e41d06b281f29dffa2bf70f3bade7b9c | [
"Apache-2.0"
] | permissive | gitboyzorro5/tensor2tensor | 728c62ccd024218d4e7ed7473260b032d4304f41 | 288f46cf00083ea2642cdf41339e60b0a81cebaf | refs/heads/master | 2022-12-15T01:34:36.067801 | 2018-11-01T11:59:00 | 2018-11-01T11:59:35 | 155,729,697 | 1 | 1 | Apache-2.0 | 2022-11-19T22:13:41 | 2018-11-01T14:42:58 | Python | UTF-8 | Python | false | false | 39,861 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
b6245045e57950b395cfb335d90c6aa0abdcb4cc | fd5dc581781b4459164756436ab4fac5b068fa63 | /pitivi/ui/previewer.py | a075fae774893edbd9c78ed2bb7b12d99b44147d | [] | no_license | sugar-activities/4500-activity | d80fab93cc3ad1ce366d933201a66d00e88438e3 | b2a068dd674efeca1abb53e88d6a4ca7b83c49f8 | refs/heads/master | 2021-01-19T23:15:29.565654 | 2017-04-21T04:58:54 | 2017-04-21T04:58:54 | 88,937,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,340 | py | # PiTiVi , Non-linear video editor
#
# previewer.py
#
# Copyright (c) 2005, Edward Hervey <bilboed@bilboed.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
89848308904a3fd4877d1953453ea40f59771e62 | 016a05014cc4c42074047a80931a0ea04fab3fd8 | /scrapy788/scrapy78/settings.py | 4499ee9ab1c5903991e0ca31ac1db4613f5fa036 | [] | no_license | cyr2270556/spider_project | 9a0285638284c6b274096c02d32ac6126a49c233 | bd5bbd683b899d844c42f29b840f910dcc854b6e | refs/heads/master | 2023-04-04T01:31:13.135579 | 2021-04-08T09:26:13 | 2021-04-08T09:26:13 | 336,928,667 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,717 | py | # Scrapy settings for scrapy78 project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middlewar... | [
"511517077@qq.com"
] | 511517077@qq.com |
28773c14a0c2180c52aa4cad702a40bbefdc9110 | a4e502e9487cf17c53f9f931ec0dbc12168fea52 | /packages/pyre/shells/Terminal.py | e3579f1cdbc59ec8a7b84d60ce58e5f309c22a00 | [
"BSD-3-Clause"
] | permissive | bryanvriel/pyre | bdc5dd59c46d53ff81f2ece532b9073ac3b65be1 | 179359634a7091979cced427b6133dd0ec4726ea | refs/heads/master | 2021-09-28T00:10:26.454282 | 2018-11-11T16:42:07 | 2018-11-11T16:42:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2018 all rights reserved
#
# access to the framework
import pyre
# declaration
class Terminal(pyre.protocol, family='pyre.terminals'):
"""
An abstraction for the capabilities of user terminals
"""
# framework support
@cla... | [
"michael.aivazis@orthologue.com"
] | michael.aivazis@orthologue.com |
5d1eb6f3614a84012000e3a99d839e6f21eac5b8 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/aaren_sparse_dmd/sparse_dmd-master/sparse_dmd/dmd.py | 6a1193d5abfb44dcc53d9cfa19f8db6dfb34ef19 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 6,079 | py | from collections import namedtuple
import numpy as np
import scipy.linalg as linalg
from . import util
class DMD(object):
def __init__(self, snapshots=None, dt=1, axis=-1):
"""Dynamic Mode Decomposition with optimal amplitudes.
Arguments
snapshots - the matrix of snapshots / multi-d... | [
"659338505@qq.com"
] | 659338505@qq.com |
0438343791d23628955dc94a4e3e44a95b0b8ee3 | d0081f81996635e913b1f267a4586eb0bfd3dcd5 | /dataactcore/migrations/versions/d7e1a2433dca_add_upper_index_to_uri_in_published_.py | c58a8f8ed25e551f58152df4b527ef305b7a8316 | [
"CC0-1.0"
] | permissive | fedspendingtransparency/data-act-broker-backend | 71c10a6c7c284c8fa6556ccc0efce798870b059b | b12c73976fd7eb5728eda90e56e053759c733c35 | refs/heads/master | 2023-09-01T07:41:35.449877 | 2023-08-29T20:14:45 | 2023-08-29T20:14:45 | 57,313,310 | 55 | 36 | CC0-1.0 | 2023-09-13T16:40:58 | 2016-04-28T15:39:36 | Python | UTF-8 | Python | false | false | 977 | py | """Add upper index to uri in published_award_financial_assistance table
Revision ID: d7e1a2433dca
Revises: 0dc4a1fbb52e
Create Date: 2019-09-06 10:16:37.579507
"""
# revision identifiers, used by Alembic.
revision = 'd7e1a2433dca'
down_revision = '0dc4a1fbb52e'
branch_labels = None
depends_on = None
from alembic im... | [
"Burdeyny_Alisa@bah.com"
] | Burdeyny_Alisa@bah.com |
e76d8ce22de0b55bec299a6c339cdfe253579289 | ad5fe6b2dfba0b04cd8fd638049175fcefe90fcf | /Protheus_WebApp/Modules/SIGACTB/CTBA011TESTCASE.py | 496e2ba0fccdfd77d2fceef55bb7bc9462ec6193 | [
"MIT"
] | permissive | totvs/tir-script-samples | 63833785de206e3e566baeab6f02e07a4313d6be | ccd0eb8038f4f1c91fe17e0813b15ce6dfa52cc9 | refs/heads/master | 2023-08-16T21:52:10.357667 | 2023-08-11T16:58:29 | 2023-08-11T16:58:29 | 148,842,685 | 24 | 22 | MIT | 2023-06-27T20:13:32 | 2018-09-14T21:17:10 | Python | UTF-8 | Python | false | false | 2,938 | py | from tir import Webapp
import unittest
class CTBA011(unittest.TestCase):
@classmethod
def setUpClass(inst):
inst.oHelper = Webapp()
inst.oHelper.Setup("SIGACTB", "01/04/2016", "T1", "D MG 01 ", "34")
inst.oHelper.Program("CTBA011")
# Para que o Tipo de Saldo seja considerad... | [
"hadrignoli@gmail.com"
] | hadrignoli@gmail.com |
01d03be3723575abb2ddf722108613398889fdaa | 6fa0d5d3b61fbce01fad5a7dd50258c09298ee00 | /Algorithm/BOJ/13_brute_force/1969.py | 50e26a0d5ac728567619f9b04a494ca1bd07177a | [] | no_license | athletejuan/TIL | c8e6bd9f7e2c6f999dbac759adcdb6b2959de384 | 16b854928af2f27d91ba140ebc1aec0007e5eb04 | refs/heads/master | 2023-02-19T13:59:06.495110 | 2022-03-23T15:08:04 | 2022-03-23T15:08:04 | 188,750,527 | 1 | 0 | null | 2023-02-15T22:54:50 | 2019-05-27T01:27:09 | Python | UTF-8 | Python | false | false | 323 | py | N,M = map(int, input().split())
DNA = [input() for _ in range(N)]
HD = 0
for i in range(M):
check = {'A': 0, 'T': 0, 'G': 0, 'C': 0}
for j in range(N):
check[DNA[j][i]] += 1
HD += N-sorted(check.values())[-1]
print(sorted(check.items(), key=lambda x: (-x[1], x[0]))[0][0], end='')
print()
print(... | [
"vanillasky84.0627@gmail.com"
] | vanillasky84.0627@gmail.com |
cedad259cc3333e54133acc6ed92e8103524a503 | 1af46b1d32d7f9202620ff49b4937bf920a4f712 | /examples/policy_gradient/reinforce/engine.py | e285b033548634a594abb126e0db1986b69ee41f | [
"MIT"
] | permissive | MuharremOkutan/lagom | 8397be3c43980a3e973a0a9831368fa456e74853 | 6dc636ea6102b69e631421688a238db5e0b2d9c0 | refs/heads/master | 2020-03-25T21:06:49.741004 | 2018-07-27T16:15:59 | 2018-07-27T16:15:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,260 | py | import numpy as np
import torch
from lagom import Logger
from lagom.engine import BaseEngine
from lagom.envs import make_gym_env
from lagom.runner import TrajectoryRunner
class Engine(BaseEngine):
def train(self, n):
# Set network as training mode
self.agent.policy.network.train()
... | [
"zuoxingdong@hotmail.com"
] | zuoxingdong@hotmail.com |
3028396df480261bcfd73b63806db8fe877c9a61 | c84aa85b5c44481194149a90b7fe7204c51d369d | /excursions/models.py | a8631a59f5dbad3ddc8703044ec961da655b0722 | [] | no_license | artemiyrazov/Software-system-design-Course-project | fe7e5cecef900adcc50bbd3f6f3b563cc590805d | 4089f87d493bad25e7c48e08ccd8805ec70f897c | refs/heads/master | 2020-06-24T19:52:51.092533 | 2020-04-03T15:26:23 | 2020-04-03T15:26:23 | 199,067,097 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | from django.db import models
class ExcursionCategory(models.Model):
name = models.CharField(max_length=64, blank=True, null=True, default=None)
is_active = models.BooleanField(default=True)
def __str__(self):
return "%s" % self.name
class Meta:
verbose_name = 'Категория товара'
... | [
"-"
] | - |
2cc9dfa691f9bef0acb3878b80a70f8470c80e2c | 6fab071f4b3f3852a3f7fb7f87e7d033d5ea9425 | /4_Demo_Django/1_Django_1903/3_Django_包含和继承以及静态文件加载/1_Django_App创建.py | 5ab95e7021453829652c568e84077f6586efbeca | [] | no_license | pythonzhangfeilong/Python_WorkSpace | 5d76026d0553bb85346264fc6375b1fc0a388729 | 646b460c79bedc80010185a240c8cd23342093bc | refs/heads/master | 2020-08-26T09:51:43.763751 | 2020-07-07T07:23:20 | 2020-07-07T07:23:20 | 216,998,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | '''
Django鼓励开发者采用松耦合的开发,就是将整个网站划分为几个独立的功能点进行独立开发,这样开发的好处就在于以下几点:
1、代码修改容易,不会出现 修改用户逻辑导致购物车出现bug这样的情况
2、便于功能的复用和迁移,在工作当中好多完整是有共性的,当开发者第二次或者更多次进行开发的时候,可以之间使用写好的功能,不必重新编写。
'''
#####Django中App的创建
'''
1、采用cmd窗口创建App
1、首先把命令行窗口切换到项目的根目录
2、然后在根目录输入指定的命令创建App
python manage.p... | [
"feilong@feilongdeMacBook-Pro.local"
] | feilong@feilongdeMacBook-Pro.local |
e8382bfadd37d32c03ab9bd1487b877d0ff38dd6 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/vmm/injectedorgunit.py | c3a4520e517f7ace6e525c1462cd51877cc34409 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 7,153 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
07102bce6274c94d30510665c830700d29dea9c7 | ecb7156e958d10ceb57c66406fb37e59c96c7adf | /Leetcode Exercise/Leetcode206_Reverse Linked List/mySolution2.py | 3deaa2a13c411c544f2af3d6ea51516981dc917e | [] | no_license | chenshanghao/RestartJobHunting | b53141be1cfb8713ae7f65f02428cbe51ea741db | 25e5e7be2d584faaf26242f4f6d6328f0a6dc4d4 | refs/heads/master | 2020-07-27T17:39:58.756787 | 2019-10-18T06:27:27 | 2019-10-18T06:27:27 | 209,175,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def reverseList(self, head: ListNode) -> ListNode:
if not head or not head.next:
return head
dummy = ListNode(-1)
while head:
... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
bc11b13c88de920fb49419c6d0dbb2a5a42a3abb | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/pylint/test/functional/wrong_import_position.py | 2c1bab74bbf491f3730aa7a9092d0a124359a953 | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 810 | py | """Checks import order rule"""
# pylint: disable=unused-import,relative-import,ungrouped-imports,wrong-import-order
# pylint: disable=import-error, too-few-public-methods, missing-docstring,using-constant-test, useless-object-inheritance
import os.path
if True:
from astroid import are_exclusive
try:
import sys... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
1ed8b179d941abc76cf3a55c84636ce7c2e99e16 | f928edfc876d715159521589a22485d9de45cc89 | /import_dailydata_csv_to_mariadb_05.py | 30417cb6ac34bd98624dd9a2fb4fd904179367d6 | [] | no_license | guitar79/AirKorea_Python | cd06432740e0b292ca6ad3cde7144717967f5190 | 8077eaa0b6c444d575a25c7f7b992477a36c8294 | refs/heads/master | 2020-08-05T01:05:47.209200 | 2019-10-28T03:36:14 | 2019-10-28T03:36:14 | 212,342,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,035 | py | '''-*- coding: utf-8 -*-
Auther guitar79@naver.com
'''
#import numpy as np
import os
import pymysql
from datetime import datetime
start_time=str(datetime.now())
#mariaDB info
db_host = '10.114.0.121'
db_user = 'modis'
db_pass = 'rudrlrhkgkrrh'
db_name = 'AirKorea_parks'
tb_name = 'hourly_int'
#base directory
drbase... | [
"noreply@github.com"
] | guitar79.noreply@github.com |
f64c86fdda3ff36df636077efff5892e39a8ab04 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnbeeii.py | 2c73ac310a8e2f8a874b8845392e37778cb4a8a1 | [] | 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 | 105 | py | ii = [('FerrSDO3.py', 1), ('LeakWTI2.py', 1), ('MarrFDI2.py', 1), ('FerrSDO2.py', 1), ('MereHHB3.py', 2)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
ac90bd9481cf8bb90a0c2f5effe3925f3c71af34 | f6864711673d4ecc08a20d8c6063d84d4fc0a1e1 | /SincNet/sinc_PrepareDataset.py | 05de2163bfb432309983828c868b100b1689db81 | [] | no_license | nastaran75/acoustic-scene-classification | 2c6616ade098a409eacaffd03ea3c6cd42f2aaa7 | 06d354d1e4368c685ddb47fe3c97fc6f35e7730d | refs/heads/master | 2021-05-17T11:17:21.339070 | 2020-03-28T09:04:36 | 2020-03-28T09:04:36 | 250,751,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,542 | py | import numpy as np
import theano
import theano.tensor as T
import lasagne
import cPickle, gzip
import os
import random
import scipy.io.wavfile
import helpers
# import scikits.audiolab
# height = 128
# width = 431
# length = 220501
# channel = 1
directory = '../dataset/'
# return X_val, y_val, num_data
def load_tes... | [
"nastaran.okati@gmail.com"
] | nastaran.okati@gmail.com |
6df6d8d28cf09358bc3c9c7ff1db98ebb2cda70b | 835881ade89eaff933f81d186e69fcf9695d9392 | /bolero/representation/test/test_dmp_seq.py | da3da565508b05e10c86931c0e7260787cf14c7d | [
"BSD-3-Clause"
] | permissive | MMKrell/bolero | 9e056a88aa89332762c0f06d4f8e43fc4ac64018 | 0e011de35f2b364bb3bb7509bc38491762026643 | refs/heads/master | 2021-01-21T15:19:20.012273 | 2017-05-19T13:38:47 | 2017-05-19T13:38:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,356 | py | import numpy as np
try:
from bolero.representation import DMPSequence
except ImportError:
from nose import SkipTest
raise SkipTest("dmp is not installed")
from bolero.controller import Controller
from numpy.testing import assert_array_almost_equal
from nose.tools import assert_equal, assert_almost_equal, as... | [
"afabisch@informatik.uni-bremen.de"
] | afabisch@informatik.uni-bremen.de |
6f99238a0eb1b11c1280092c655ada433569d734 | abcf63644ff1f4767f81261f8bc32efb91767771 | /3/04面向对象/01.py | f7905163acc257adbcf35837903f087b6574a026 | [] | no_license | Ran-oops/python | cf296711a01c1a01e2794e2310447a5684181f53 | 5ba09234120084f4ea7b13a4945935d38f356dea | refs/heads/master | 2020-11-29T21:18:58.391800 | 2019-12-27T10:52:17 | 2019-12-27T10:52:17 | 230,217,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | #继承
class Father:
#成员属性
__sex ='man'
age = 18
wife = '围裙妈妈'
#成员方法
def say():
print('孩子,你妈呢')
def xuxu(self):
print('哗哗哗哗~~')
class Son(Father):
pass
#检查儿子类
print(Son.__dict__)
#访问儿子类的性别
#print(Son.sex)
#print(Son.age)
Son.say()
| [
"18291893776@139.com"
] | 18291893776@139.com |
07d1517e3fa58da6527a8477c749c5e8771d8545 | cbe264842df4eae3569b28ed4aae9489014ed23c | /python/interface/metaclass.py | e549e576b42a31e0f4928d88a5ed8488d7b1d1a2 | [
"MIT"
] | permissive | zeroam/TIL | 31e176c2f4c3e1ef72b1155353690cc2f7160f96 | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | refs/heads/master | 2021-07-23T01:43:34.135033 | 2021-07-10T06:47:17 | 2021-07-10T06:47:17 | 167,952,375 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | class ParserMeta(type):
"""A Parser metaclass that will be used for parser class creation"""
def __instancecheck__(cls, instance):
return cls.__subclasscheck__(type(instance))
def __subclasscheck__(cls, subclass):
return (
hasattr(subclass, "load_data_source")
... | [
"imdff0803@gmail.com"
] | imdff0803@gmail.com |
e880531e19f10fad7f10e45ff97a29b2611df7f0 | 6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110 | /hardware-testing/hardware_testing/production_qc/ninety_six_assembly_qc_ot3/test_jaws.py | 4531fd080077a24529cf072a8899596cd5d5c8e4 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Opentrons/opentrons | 874321e01149184960eeaeaa31b1d21719a1ceda | 026b523c8c9e5d45910c490efb89194d72595be9 | refs/heads/edge | 2023-09-02T02:51:49.579906 | 2023-08-31T16:02:45 | 2023-08-31T16:02:45 | 38,644,841 | 326 | 174 | Apache-2.0 | 2023-09-14T21:47:20 | 2015-07-06T20:41:01 | Python | UTF-8 | Python | false | false | 4,573 | py | """Test Jaws."""
from typing import List, Union, Tuple, Dict
from opentrons.hardware_control.ot3api import OT3API
from hardware_testing.data import ui
from hardware_testing.data.csv_report import (
CSVReport,
CSVResult,
CSVLine,
CSVLineRepeating,
)
from hardware_testing.opentrons_api import helpers_ot... | [
"noreply@github.com"
] | Opentrons.noreply@github.com |
c613e3ea99088cf4da6dfd6e756f02be42b9289d | 893f83189700fefeba216e6899d42097cc0bec70 | /webpage/lib/python3.5/site-packages/dask/compatibility.py | 969ab156dec7291703f33dbfd7ce6e2588e56875 | [
"MIT"
] | permissive | pseudoPixels/SciWorCS | 79249198b3dd2a2653d4401d0f028f2180338371 | e1738c8b838c71b18598ceca29d7c487c76f876b | refs/heads/master | 2021-06-10T01:08:30.242094 | 2018-12-06T18:53:34 | 2018-12-06T18:53:34 | 140,774,351 | 0 | 1 | MIT | 2021-06-01T22:23:47 | 2018-07-12T23:33:53 | Python | UTF-8 | Python | false | false | 7,435 | py | # flake8: noqa
from __future__ import absolute_import, division, print_function
import functools
import inspect
import operator
import sys
import types
PY3 = sys.version_info[0] == 3
PY2 = sys.version_info[0] == 2
class LZMAFile:
def __init__(self, *args, **kwargs):
raise ValueError("xz files requires th... | [
"golam.mostaeen@usask.ca"
] | golam.mostaeen@usask.ca |
5dae12c8556ddc4e357b6a77285381795d9059b4 | 509e9d64744f720392fda2b978d783f985c60824 | /python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/__init__.py | ce3922d1b4b84120e4b665d37712556f42dc3894 | [] | no_license | theideasmith/Instant-OpenCV-FFMPEG | 0560598fba630ded533b4e6c111c61c9b0b7502b | 234e359af245b4832b3e7ade6070e91c81b65de0 | refs/heads/master | 2021-01-11T20:39:33.443984 | 2017-01-16T23:09:46 | 2017-01-16T23:09:46 | 79,162,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ceb0750454cd3945b180456f66589c2bcb84536015a53d531665a8da04067c30
size 486
| [
"aclscientist@gmail.com"
] | aclscientist@gmail.com |
0b0cab6eccdd68463da72b3e92eed17868628807 | f0b75bd94f133a13f469f429a696f26be3be9862 | /week 2/.history/python_second_assignment_20200204135824.py | 074c0d007f7a36694b20968c26b44ef46f22ee2f | [] | no_license | dechavez4/Python_handin_assignments | 023350fabd212cdf2a4ee9cd301306dc5fd6bea0 | 82fd8c991e560c18ecb2152ea5a8fc35dfc3c608 | refs/heads/master | 2023-01-11T23:31:27.220757 | 2020-05-22T10:33:56 | 2020-05-22T10:33:56 | 237,179,899 | 0 | 0 | null | 2022-12-30T20:14:04 | 2020-01-30T09:30:16 | Python | UTF-8 | Python | false | false | 1,660 | py | # Exercise 1
# Create a python file with 3 functions:
# A. def print_file_content(file) that can print content of a csv file to the console
import csv
from sys import argv
import platform
filename = argv[1]
def print_file_content(file):
with open(filename) as csv_file:
content = csv_file.readlines()... | [
"chavezgamingv2@hotmail.com"
] | chavezgamingv2@hotmail.com |
bf13da4ca472d2d225ceae2882fcfe900e162dd9 | 63daf225819636397fda6ef7e52783331c27f295 | /cbb/taobao/top/api/rest/FenxiaoRefundMessageGetRequest.py | 4522d206f3e08268e381876e66aeddedb4df2164 | [] | no_license | cash2one/language-Python | e332ecfb4e9321a11407b29987ee64d44e552b15 | 8adb4f2fd2f023f9cc89b4edce1da5f71a3332ab | refs/heads/master | 2021-06-16T15:15:08.346420 | 2017-04-20T02:44:16 | 2017-04-20T02:44:16 | 112,173,361 | 1 | 0 | null | 2017-11-27T09:08:57 | 2017-11-27T09:08:57 | null | UTF-8 | Python | false | false | 371 | py | '''
Created by auto_sdk on 2013.04.12
'''
from top.api.base import RestApi
class FenxiaoRefundMessageGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.page_no = None
self.page_size = None
self.sub_order_id = None
def getapiname(sel... | [
"a@ie9.org"
] | a@ie9.org |
9209906a777eec3020426652175bf4b4b10baaf8 | c3185bdfce49a11a3687d140421bee302e9e9393 | /数据结构/排序/小小冒泡.py | 98bb263f32e8b11b2023fdaa01d97fb78d73d6a1 | [] | no_license | yooq/PythonUp | 911c607fba618d89a6f6020cc47096b11a99074d | eb8c2ee60bd2c4c5817a07738aeec56bff3b1021 | refs/heads/master | 2022-12-07T04:17:10.087188 | 2020-09-08T06:09:03 | 2020-09-08T06:09:03 | 255,023,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | alist = [21,67,2,45,33,4,3,40]
'''
原数据 [21, 67, 2, 45, 33, 4, 3, 40]
+++++++++++
[21, 67, 2, 45, 33, 4, 3, 40]
[21, 2, 67, 45, 33, 4, 3, 40]
[21, 2, 45, 67, 33, 4, 3, 40]
[21, 2, 45, 33, 67, 4, 3, 40]
[21, 2, 45, 33, 4, 67, 3, 40]
[21, 2, 45, 33, 4, 3, 67, 40]
[21, 2, 45, 33, 4, 3, 40, 67]
********************
[2, 21,... | [
"990250040@qq.com"
] | 990250040@qq.com |
42409f91351c3763e544f0b116de10b72bdb3aa7 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/kusto/v20200918/get_cluster_principal_assignment.py | e752e65efde12c272698753bc84b496709c07670 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 6,542 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"noreply@github.com"
] | test-wiz-sec.noreply@github.com |
f2422ea5e6e84bc09b09990cc705e004999dafd3 | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /tests/kyu_7_tests/test_convert_improper_fraction_to_mixed_numeral.py | abc795d5bfe77325857cdf20d38aaac83bcaf606 | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | import unittest
from katas.kyu_7.convert_improper_fraction_to_mixed_numeral import \
convert_to_mixed_numeral
class ConvertToMixedNumeralTestCase(unittest.TestCase):
def test_equal_1(self):
self.assertEqual(convert_to_mixed_numeral('74/3'), '24 2/3')
def test_equal_2(self):
self.assertEq... | [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
4ce920c14c2e6bf8c4531eef03c756bbadc9fe1f | 6d208705fa0a386a81924b3167744a48bde947bf | /2022/day24.py | ddab385309740f84cbff911e7a6fdaa0610885bf | [] | no_license | Lypheo/AoC | 48e00da3e67914f488a0c499e34cad80694aea2d | e188ab93bfd5d7b69f6f8f1439171b0236cd0f93 | refs/heads/master | 2023-01-12T11:53:15.392779 | 2022-12-25T07:24:47 | 2022-12-25T07:24:47 | 160,034,573 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,432 | py | import time
import functools, itertools, collections, re
from aocd.models import Puzzle
from aocd import submit
from collections import defaultdict as dd
from itertools import *
from pprint import pprint
import sys
sys.path.append("..")
from aocl import *
day = 24
puzzle = Puzzle(year=2022, day=day)
input_data = puzzle... | [
"saifullah124@hotmail.de"
] | saifullah124@hotmail.de |
b458aee1ad2071e0a35adff3dd178c5236899348 | 78144baee82268a550400bbdb8c68de524adc68f | /Production/python/Summer16/GJets_HT-600ToInf_TuneCUETP8M1_13TeV-madgraphMLM-pythia8_cff.py | 35fdf332b9c65709381991e43119e66fcbea4ddf | [] | no_license | tklijnsma/TreeMaker | e6989c03189b849aff2007bad22e2bfc6922a244 | 248f2c04cc690ef2e2202b452d6f52837c4c08e5 | refs/heads/Run2_2017 | 2023-05-26T23:03:42.512963 | 2020-05-12T18:44:15 | 2020-05-12T18:44:15 | 263,960,056 | 1 | 2 | null | 2020-09-25T00:27:35 | 2020-05-14T15:57:20 | null | UTF-8 | Python | false | false | 7,386 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIISummer16Mi... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
40bf186139c55fbfde91005f4b30be45a6ebb2d9 | dd893864f8bc48579fd762e8350e76531376da94 | /smart_order/config/desktop.py | a5e732d0c235f9fdcce82d73e0f08c0e38c7e40a | [
"MIT"
] | permissive | teddyseptiadi/smart_order | d39e4808f84810e64bcefaf042d4c5fd68e76830 | d6664df49fdd2fb5a3981f82eb0a463ad1044413 | refs/heads/master | 2020-06-26T15:23:56.440097 | 2019-05-29T12:16:25 | 2019-05-29T12:16:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "Smart Order",
"color": "orange",
"icon": "octicon octicon-file-directory",
"type": "module",
"label": _("Smart Order")
}
]
| [
"you@example.com"
] | you@example.com |
b61ccf2797559150199e33315d588ec5bb167d43 | 0fa82ccc0b93944c4cbb8255834b019cf16d128d | /2020/Validate BST.py | 8196bf490ad353b98f074af9b1f58cf5f63c402e | [] | no_license | Akashdeepsingh1/project | 6ad477088a3cae2d7eea818a7bd50a2495ce3ba8 | bdebc6271b39d7260f6ab5bca37ab4036400258f | refs/heads/master | 2022-12-13T23:09:35.782820 | 2020-08-27T14:22:37 | 2020-08-27T14:22:37 | 279,722,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | class Tree:
def __init__(self,val):
self.val = val
self.left = None
self.right = None
def validateBST(root):
l = float('-inf')
r = float('inf')
from collections import deque
d = deque()
d.append([root,l,r])
while d:
item = d.pop()
if item[0].val<= i... | [
"Akashdeep_S@Dell.com"
] | Akashdeep_S@Dell.com |
7db2f3e7711fa745a03f0c461266ee56d9cdea65 | a4121f8dbfa1bfa634615442096825de45a09b75 | /model.py | ce450eed9b9e2f4314a3d1736305b985929e3985 | [] | no_license | njgupta23/testing-py-2 | bf2ead5db3895e24ad968f71a11e7d4c07c51313 | deef9c4e02ea95f02e908fba9c51edfdd181f2c5 | refs/heads/master | 2020-03-08T23:25:27.115491 | 2018-04-06T19:54:24 | 2018-04-06T19:54:24 | 128,463,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | from flask.ext.sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Game(db.Model):
"""Board game."""
__tablename__ = "games"
game_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.String(20), nullable=False, unique=True)
description = db.Column(db.String(100))... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
2699fa98a3471146a62b73b16d9e6cb6a8a36eb2 | 937520b77c177934c1e610d7c46c77df1def22be | /PythonWork/codeexer/q202_happy_number.py | 6ae3a70192e082b8d7761757df3716c3d8d346f6 | [] | no_license | silviu20/fzwork | eac62129fcabc5a5ea5da93c3c44918062191b35 | 793d736b739dbb982368c1705d6e476967227550 | refs/heads/master | 2023-03-23T00:49:33.130855 | 2021-02-15T03:24:20 | 2021-02-15T03:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Question 202: Happy Number
Write an algorithm to determine if a number is "happy".
A happy number is a number defined by the following process: Starting with any positive integer,
replace the number by the sum of the squares of its digits, and repeat the process until ... | [
"minganghz@gmail.com"
] | minganghz@gmail.com |
5d946a3d22ea30487ff9daa4edc1ad54c063465a | 37d2a09c274ce31f1e6f690c234c3447d4708d6a | /tests/blockchain/test_blockchain.py | 962e2431eb7ac3adf948d71728022a99a17c944b | [
"Apache-2.0"
] | permissive | jzblanco/staicoin-blockchain | 60aedc566f475922e845ea019f2d8468f510a947 | 75a148429f6d39c36802c83b928ad8effbfc56a8 | refs/heads/main | 2023-08-17T13:11:46.094703 | 2021-10-08T23:13:49 | 2021-10-08T23:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128,318 | py | # flake8: noqa: F811, F401
import asyncio
import logging
import multiprocessing
import time
from dataclasses import replace
from secrets import token_bytes
from typing import Optional
import pytest
from blspy import AugSchemeMPL, G2Element
from clvm.casts import int_to_bytes
from staicoin.consensus.block_rewards impo... | [
"em@iguru.team"
] | em@iguru.team |
519350a6a65a3a1e91889e70c8dbfcb80ba7f61e | 00b762e37ecef30ed04698033f719f04be9c5545 | /scripts/test_results/scikit-learn_test_results/files/40_nmf_remote.py | 5a8a74ceb14254bc603838b26de5d13b9e2b1c19 | [] | no_license | kenji-nicholson/smerge | 4f9af17e2e516333b041727b77b8330e3255b7c2 | 3da9ebfdee02f9b4c882af1f26fe2e15d037271b | refs/heads/master | 2020-07-22T02:32:03.579003 | 2018-06-08T00:40:53 | 2018-06-08T00:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,856 | py | """ Non-negative matrix factorization
"""
# Author: Vlad Niculae
# Lars Buitinck <L.J.Buitinck@uva.nl>
# Author: Chih-Jen Lin, National Taiwan University (original projected gradient
# NMF implementation)
# Author: Anthony Di Franco (original Python and NumPy port)
# License: BSD
from __future__ import di... | [
"srhee4@cs.washington.edu"
] | srhee4@cs.washington.edu |
a0fd1643cd72c238ea28511ce6ef2aa162fd36be | 45fc3ca374b15e63fee49a78c54d1a7d5949ebd6 | /vega/search_space/search_algs/random_search.py | bd74cf357e91fa58b1c1408feab2c93841bfbce1 | [
"MIT"
] | permissive | 1ziyanW1/vega | d0849d09ba9dea85f1e135f515202e90533972aa | 9640a32d3cbb22e39593e2786b825b946aa6b281 | refs/heads/master | 2022-11-25T20:30:50.517879 | 2020-08-04T08:17:28 | 2020-08-04T08:17:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,072 | py | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
d1020c8ff38f990a510a04c27ff5d283d5b1a698 | c57439f0c98af370ace65f9d55ef5a457bedc531 | /ydk/models/rgmgr/Cisco_IOS_XR_rgmgr_cfg.py | 60d97b59d71bea3657766139f0749ca3adbdace7 | [
"Apache-2.0"
] | permissive | myahmao/ydk-py | c932fbd8245e554227cce0fd723d9a22887b0c40 | 2f367d93f2088d4abdc2f2bb10ca4864952b458a | refs/heads/master | 2021-01-14T11:32:29.064494 | 2016-03-15T22:44:05 | 2016-03-15T22:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,801 | py | """ Cisco_IOS_XR_rgmgr_cfg
This module contains a collection of YANG definitions
for Cisco IOS\-XR rgmgr package configuration.
This module contains definitions
for the following management objects\:
redundancy\-group\-manager\: Redundancy Group Manager
Configuration
Copyright (c) 2013\-2015 by Cisco Systems,... | [
"manradha@cisco.com"
] | manradha@cisco.com |
e08e57ff073fdeea9b1cf61f0864f84c1c3aa27a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02778/s459404467.py | aa205f48632ec901d95235994fd53658c6ce9ed7 | [] | 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 | 103 | py | def main():
S = input()
L = len(S)
print('x' * L)
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
59f060ff87c74b2d9882a3128905aaef0224484a | b66efac4732dddfc12f0a3ca9ae57474aa61f484 | /whois/parsers/matcher.py | 1ac849c581baf2e5a268cd2fff9abe3afeed4d5b | [
"Apache-2.0"
] | permissive | dhkron/whois | e8e5c0939d3c2717f4658a9397cd691147fc6d66 | 861fad04b0819d1842123a2b884c2b824011fe1f | refs/heads/master | 2021-01-22T12:25:46.407375 | 2017-06-27T20:35:28 | 2017-06-27T20:35:28 | 92,724,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import re
class Regex:
def __init__(
self,
pattern,
group,
flags,
):
self.pattern = pattern
self.group = group
self.flags = flags
def match(
self,
subject,
):
match = re.search(
pattern=self.pattern,
... | [
"gal@intsights.com"
] | gal@intsights.com |
280f02fcc7813a99748263c39179fe560a9cd809 | 426e56d0d15dfb9609dc31e273baa2cc0d249fdd | /certificates/custom_components/aqara_camera/const.py | 2bb9d5fc0866f3cb8b57fd39f61fc024dab33eb4 | [] | no_license | hellad/hass-config | 24689dbf61446e2a9cf2d216c933242a4bdec7e8 | 3988d204908478996fffa433faffa9ea20f42562 | refs/heads/master | 2023-03-19T14:41:24.300034 | 2023-03-05T20:33:31 | 2023-03-05T20:33:31 | 234,546,187 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | """Constants for Aqara Camera component."""
import voluptuous as vol
from homeassistant.helpers import config_validation as cv
from homeassistant.const import Platform
from .core.const import (
STREAM_MAIN,
STREAM_SUB,
STREAM_SUB2
)
DOMAIN = "aqara_camera"
CONF_STREAM = "stream"
CONF_MODEL = "model"
CO... | [
"hellad@mail.ru"
] | hellad@mail.ru |
5ee3057140bf64b4f313c8223e31648aef49526b | 2e7aaf5367b9555554ae22338b9184c616e3f69e | /rlcompletion/rlcompleter_demo.py | 09cc6c19f876edc4a27348727e8e2dcf60b22c4c | [
"MIT"
] | permissive | noelevans/sandpit | 413ec8586811dfdb8f31f5a50ba1f72fe4a79307 | e97bd599249be3ed7c9958328e3ded0d51fa1859 | refs/heads/master | 2023-03-10T08:59:27.178057 | 2023-03-06T21:12:54 | 2023-03-06T21:12:54 | 34,741,371 | 1 | 0 | MIT | 2021-03-20T01:25:00 | 2015-04-28T16:12:01 | HTML | UTF-8 | Python | false | false | 670 | py | import inspect
import rlcompleter
class Klass:
name = 'klass'
value = 2
def __getitem__(self, key):
return self.name[key]
def foo(self):
# Putative return statement for foo(self)...
# return self[self.value]
namespace = inspect.currentframe().f_locals
print(na... | [
"noelevans@gmail.com"
] | noelevans@gmail.com |
32d75a5d8d7fc59e4128bc07b088976041608049 | aa2b8ae1eed7621dbece4ccc0fe55f948ddabb50 | /examples/ppo_cartpole.py | 832a99abbf0aba12c2702a39467c9daec2d7fcc5 | [
"Apache-2.0"
] | permissive | kngwyu/Rainy | 291e0101ebbb01421949732f9c16bd0e3b06a204 | 535f8f49d9efe0324a8480d0165ab1b35d83dc19 | refs/heads/main | 2021-11-01T00:25:50.327047 | 2021-09-25T10:45:36 | 2021-09-25T10:46:59 | 138,285,754 | 47 | 5 | Apache-2.0 | 2021-09-08T00:56:47 | 2018-06-22T09:48:45 | Python | UTF-8 | Python | false | false | 1,076 | py | import os
from torch.optim import Adam
import rainy
from rainy.envs import ClassicControl, MultiProcEnv
@rainy.main(rainy.agents.PPOAgent, script_path=os.path.realpath(__file__))
def main(
envname: str = "CartPole-v0", use_rnn: bool = False, use_separated: bool = False
) -> rainy.Config:
c = rainy.Config()
... | [
"yuji.kngw.80s.revive@gmail.com"
] | yuji.kngw.80s.revive@gmail.com |
86f4a028b6c41833d28debb0457ceb305cfaaff4 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/carpet/baxis/_showline.py | 5debb8a1f4b1e564c29a3a2ed05267da8f28166e | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 405 | py | import _plotly_utils.basevalidators
class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(self, plotly_name="showline", parent_name="carpet.baxis", **kwargs):
super(ShowlineValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
52ae8ed64fee9e6bf534d1318a1532d6f9cd71a5 | 5a29fbaa46a71eff0ac677b42e393b449e313085 | /upsea_Ver_0.1/Ea_11_Dma_pg_01/EA/Analyzer.py | 1bd0fc441a0229f27fbe44a4015d79b705301f88 | [
"MIT"
] | permissive | UpSea/PyAlgoTradeMid | 548d181d5d18448f75f205214e9d19b7356a5730 | c8edcbc089d92dbfbb8bb25af92a039146f6c6da | refs/heads/master | 2021-01-20T19:57:21.406976 | 2016-07-25T17:23:00 | 2016-07-25T17:23:00 | 62,429,518 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | import numpy as np
import matplotlib.dates as mpd
import sys,os
xpower = os.path.abspath(os.path.join(os.path.dirname(__file__),os.pardir,os.pardir,os.pardir,os.pardir,'thirdParty','pyqtgraph-0.9.10'))
sys.path.append(xpower)
import pyqtgraph as pg
xpower = os.path.abspath(os.path.join(os.path.dirname(__file__),os.par... | [
"upsea@upsea.cn"
] | upsea@upsea.cn |
ff586a2f3a6a7e92c91e63882caa90198555d8ed | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-elb/huaweicloudsdkelb/v2/model/list_certificates_request.py | 9a6db1b37791b2e04a46fb4fc03d27088b9f51f6 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,630 | py | # coding: utf-8
import re
import six
class ListCertificatesRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json k... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
4b9e37f4fa2f8c16a481bd304e6b5c662893c30c | 0cf316b6a125442294acdf78fe725de42a3ce6b4 | /python/geojson_to_pixel_arr.py | eb2aec527a38828bee8a40af85f44f5785828b4a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | GPrathap/utilities | 2a5f9ef2df9fdaa7a2ee9208aa8bbbca879be1f2 | 0624564e53a2860e66265654c23908688067798a | refs/heads/master | 2021-01-19T17:59:00.588299 | 2017-08-26T14:08:38 | 2017-08-26T14:08:38 | 101,102,401 | 0 | 0 | null | 2017-08-22T20:01:22 | 2017-08-22T20:01:22 | null | UTF-8 | Python | false | false | 4,572 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
from osgeo import gdal, osr
import numpy as np
import json
import sys
####################
# download spacenet utilities from:
# https://github.com/SpaceNetChallenge/utilities/tree/master/python/spaceNet
path_to_spacenet_utils = '/home/runge/gsi/utilities/python/spaceN... | [
"ggeesara@gmail.com"
] | ggeesara@gmail.com |
341f1c7b85a4a350199a71403db4eaa0bf2e197f | 80b5bc903e5ceb368f374f9a1313e1dc7ac698c2 | /bcoffice/boards/views/coinguide_usefullink_destroy.py | d81b74ac6f39c8f73dc9029082c64a84ed897dd8 | [] | no_license | Bobur-kobilov/back | 830471f7d36f9120aa04e3ae884f7091f0ba4333 | 5a852c4d24da3db6226ce17c437c4ae9c6b01141 | refs/heads/master | 2022-10-01T22:50:24.073570 | 2019-08-02T01:51:19 | 2019-08-02T01:51:19 | 200,145,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | from . import *
# 코인가이드 유용한링크 제거
class CoinGuideUsefulLinkDestroy(DestroyAPIView):
#--------------------------------------
# PROPERTIES
#--------------------------------------
name = "coinguide-link-destroy"
#--------------------------------------
# AUTHORITY
#--------------------------... | [
"bobur0114jon@gmail.com"
] | bobur0114jon@gmail.com |
c10f454555512d82a805e4865a9374df65621a10 | 0e378e0d48b4087ef2b7fdf8e7c610465dde8fe6 | /order/models.py | b791150a7e4cb9f97970a216d79ebce435c5b45e | [] | no_license | sakibovi123/vue_ecommerce | 613bd51d7af6562eb52a49b8357af8964ae95dbe | 49d2e452529d781cf25f7073a25dc8ea4dbed3b9 | refs/heads/master | 2023-03-13T18:56:02.065872 | 2021-03-04T07:01:15 | 2021-03-04T07:01:15 | 344,379,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | from django.db import models
# Create your models here.
from store.models import Product
class Order(models.Model):
first_name = models.CharField(max_length = 100)
last_name = models.CharField(max_length=100)
city = models.CharField(max_length=100)
zip_code = models.CharField(max_length=100)
add... | [
"sakibovi123@gmail.com"
] | sakibovi123@gmail.com |
b56e20185da60d11d8c36ad83b0e25d8cba6190a | 046333321b2717c6391a111fc2f74b04bbbeb7af | /chapter9(list comprehension)/exercise.py | fb16d894d7323fb16e00acb22affec0d954e3ab4 | [] | no_license | jyash28/Python-practice | b0c9df42bc93716d8721a1420ee1f3170b40b18c | cd3a61934618145cbaa20e62194ebb1642ba9941 | refs/heads/main | 2023-07-03T18:06:38.407491 | 2021-07-13T09:47:07 | 2021-07-13T09:47:07 | 314,485,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | def num_to_string(l):
return[str(i) for i in l if (type(i)==int or type(i)== float)]
print(num_to_string([True, False,[1,2,3],1,1.0,3])) | [
"jyash548@gmail.com"
] | jyash548@gmail.com |
7df4f67ccca78c04ad17a19ea021da66850a9d52 | 548c26cc8e68c3116cecaf7e5cd9aadca7608318 | /inventory/migrations/0012_auto__add_field_sapevents_actual_quantity.py | 9c78fc2c513b9ea1081349d7829ade1534f21a92 | [] | no_license | Morphnus-IT-Solutions/riba | b69ecebf110b91b699947b904873e9870385e481 | 90ff42dfe9c693265998d3182b0d672667de5123 | refs/heads/master | 2021-01-13T02:18:42.248642 | 2012-09-06T18:20:26 | 2012-09-06T18:20:26 | 4,067,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 50,904 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'SapEvents.actual_quantity'
db.add_column('inventory_sapevents', 'actual_quantity', self.gf... | [
"saumil.dalal@futuregroup.in"
] | saumil.dalal@futuregroup.in |
f3e274494621e65fb6ee74bd6822e5e3345f2cee | 268e68da9a3a1e6a564e3650313e09d5e424f109 | /quant_engine/Factor/Income/net_profit.py | 777d329c3c44eaf2c98a0c63be42845075168e5b | [] | no_license | dxcv/DFZQ | 7d101217067ead6f19f3e1450f0276f81d38af12 | cc52a6bc658fcce051a380486e3d60b432b7ee90 | refs/heads/master | 2020-09-28T14:20:15.579453 | 2019-12-09T05:40:25 | 2019-12-09T05:40:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | # 净利润数据
# 原数据
from factor_base import FactorBase
import pandas as pd
import dateutil.parser as dtparser
from dateutil.relativedelta import relativedelta
import global_constant
class net_profit(FactorBase):
def __init__(self):
super().__init__()
def cal_factors(self,start,end):
# type要用4080010... | [
"bright_gl@126.com"
] | bright_gl@126.com |
4d25fb7a674a131d6ac8b6049aeb71dcf782f390 | 715c7c090ad4c17f5bfc089b7d8c884d6ad240dd | /AtCoderBeginnerContest/187_C_sum.py | 39b8bf49f2d34afef27a5ef82d37a48c4aa7ecae | [] | no_license | PyRadiolarus/for_AtCoder | 625b1e2cce29b7352d233df8b0ed24f12b626b29 | 4dd2b645ff66d1ec1eeacfd6c0ae4c366812c1ab | refs/heads/master | 2023-07-09T10:28:53.200982 | 2021-08-14T13:47:27 | 2021-08-14T13:47:27 | 361,388,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # -*- coding: utf-8 -*-
# Python 3.8.2 で 2207ms/55704KB。TLE。
# PyPy3 7.3.0 で 2211ms/203000KB。TLE。
from sys import stdin
stdin = open("../../stdin.txt")
import itertools
N = int(stdin.readline().rstrip())
S = [stdin.readline().split() for i in range(N)]
S = set(sum(S,[]))
for c in S:
if "!" + c in S:
print... | [
"60543948+PyRadiolarus@users.noreply.github.com"
] | 60543948+PyRadiolarus@users.noreply.github.com |
aff2d6fab9dd094c406dc18d2a892b0b082b7454 | bc2a96e8b529b0c750f6bc1d0424300af9743904 | /acapy_client/models/admin_status_conductor.py | 4316ede72683ded5cc258ce9606efee39c5ba20b | [
"Apache-2.0"
] | permissive | TimoGlastra/acapy-client | d091fd67c97a57f2b3462353459780281de51281 | d92ef607ba2ff1152ec15429f2edb20976991424 | refs/heads/main | 2023-06-29T22:45:07.541728 | 2021-08-03T15:54:48 | 2021-08-03T15:54:48 | 396,015,854 | 1 | 0 | Apache-2.0 | 2021-08-14T13:22:28 | 2021-08-14T13:22:27 | null | UTF-8 | Python | false | false | 1,215 | py | from typing import Any, Dict, List, Type, TypeVar
import attr
T = TypeVar("T", bound="AdminStatusConductor")
@attr.s(auto_attribs=True)
class AdminStatusConductor:
"""Conductor statistics"""
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
def to_dict(self) -> Dict[str, Any]:
... | [
"dbluhm@pm.me"
] | dbluhm@pm.me |
fc27a22d2b35f35247d03f4827b960a084eab58f | 9625f4e5ccc3d84d1accd7a97b54606784b75b71 | /ld_ebutuoy/rotcartxe/derahs.py | 03bb86c6f65601279d408bbe3d6c89cda1332bc5 | [] | no_license | apfeltee/ld-ebutuoy | cdf11206a24532e6bc0a8c26cb7bfd83c02d140f | d7264979a9f9730d6e5ee6672af1e28eb17df8c5 | refs/heads/master | 2022-12-31T18:24:46.529435 | 2020-10-26T02:46:20 | 2020-10-26T02:46:20 | 307,234,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,295 | py | slaretil_edocinu tropmi __erutuf__ morf
rotcartxEofnI tropmi nommoc. morf
( tropmi tapmoc.. morf
,edoced46b_tapmoc
,sulp_etouqnu_esrap_billru_tapmoc
)
( tropmi slitu.. morf
,txe_enimreted
,rorrErotcartxE
,enon_ro_tni
,nosj_ot_sj
,SNOISNETXE_NWONK
,eziselif_esrap
,74tor
,enon_ro_lru ... | [
"root@localhost"
] | root@localhost |
e194d04829930c6ce5cb5f6e4da6984d2a4bfce7 | a1bf73ad2ed4739886d3a9c5e3b337e67c36f5cb | /examples/dgnode.py | 7ca522ef6618a26b928ad00c17d308364a0eb740 | [
"BSD-2-Clause"
] | permissive | mottosso/cmdx | 679eccdb892218f1f4f2ba10f5ba50a139fb55f4 | 814c7d934b13ba8735736424b69d0b89639157fa | refs/heads/master | 2022-11-05T12:23:44.265773 | 2022-02-28T06:52:16 | 2022-02-28T06:52:16 | 200,228,452 | 156 | 41 | BSD-2-Clause | 2022-05-29T22:23:29 | 2019-08-02T12:10:14 | Python | UTF-8 | Python | false | false | 771 | py | import cmdx
class CustomDGNode(cmdx.DgNode):
name = "customDGNode"
typeid = cmdx.TypeId(0x85006)
attributes = [
cmdx.String("myString"),
cmdx.Message("myMessage"),
cmdx.Matrix("myMatrix"),
cmdx.Time("myTime", default=0.0),
]
affects = [
("mySt... | [
"konstruktion@gmail.com"
] | konstruktion@gmail.com |
1966bdcfe32c822de1e415aa5ffc06d26909e9bb | e5d4457988ed4a1399d4de6bd09cb6902b9fa36a | /tests/app/validation/test_thread.py | c2b831df4e405bf825df1141766697cef6f6ca45 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | ONSdigital/ras-secure-message | 9cf4ac0a8264cfa564624cfa77e7e60aa694bb1f | c11998b443ca266963efb51902ff431b55f15406 | refs/heads/main | 2023-09-01T00:01:12.507500 | 2023-08-18T14:16:06 | 2023-08-18T14:16:06 | 85,097,469 | 7 | 3 | MIT | 2023-09-08T14:24:31 | 2017-03-15T16:44:59 | Python | UTF-8 | Python | false | false | 1,159 | py | import unittest
from marshmallow import ValidationError
from secure_message.validation.thread import ThreadPatch
class MessageSchemaTestCase(unittest.TestCase):
"""Test case for ThreadPatch"""
def test_valid_patch_passes_validation(self):
test_dict = {"category": "TECHNICAL", "is_closed": False}
... | [
"noreply@github.com"
] | ONSdigital.noreply@github.com |
07784645fb1a3b1749614f1ddcd1249de759808b | e6f0b705a768229c160a2603393709b4b8a683be | /.history/bookstore/urls_20210423144719.py | 7d9f58a57390991e336a9aeb2745427c23f8d002 | [] | no_license | walaaElbasha/bookstore_django_basics | 0741e16e3fe69d4460c095bb8afc964f52d96f1d | 2037a434d7bdb0ca1954ca3de9f56655b77ec64e | refs/heads/main | 2023-04-19T07:01:05.416800 | 2021-04-28T15:04:15 | 2021-04-28T15:04:15 | 361,507,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | """bookstore URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"walaaelbasha40@yahoo.com"
] | walaaelbasha40@yahoo.com |
e40b2a4ddb4b82a2bd12ef7a4ba275e0efedb563 | 50f43ed5a498576a375e11ca74ad0aa1f6e95858 | /parser/etw_provider.py | 4b0e1803ed3fdce9f27ae897613bf012993aa5fc | [
"Apache-2.0"
] | permissive | isabella232/eql2vql | e052034c52aea13817a128439b195e69e6d7bda8 | 5bb9b07d432ec5ab57d7ef173e963dd8a1c4104b | refs/heads/main | 2023-08-29T22:14:15.771633 | 2021-11-12T13:42:18 | 2021-11-12T13:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | from providers import BaseProvider
from collections import OrderedDict
class SysmonETWProvider(BaseProvider):
"""A provider that reads events from Sysmon EWT source for real time detection."""
name = "Windows.Sysmon.EventDetection"
type = "CLIENT_EVENT"
parameters = []
def GetDescription(self):
... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
f305d185f46d955d44b11e827bd6bced1b2bd025 | ad7356ea400bd8efa3692358891185c15ed5e3a2 | /ScrapyRedisTest/spiders/cnblogs.py | 880cb4e1a7ffee2a7a8e07035eedb067b05ae331 | [] | no_license | tang1323/ScrapyRedisTest | ce435b78a7f953cf22bac909435723126c9ec96a | 769ce267f94f931b856fdf97c317fe5b97ecbcad | refs/heads/master | 2023-04-03T00:50:04.146706 | 2021-04-14T14:58:00 | 2021-04-14T14:58:00 | 357,944,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,302 | py |
from scrapy.http import Request
from urllib import parse
# 分布式爬虫的步骤
# -----1导入分布式爬虫类
from scrapy_redis.spiders import RedisSpider
# -----2 继承分布式爬虫类
class CnblogsSpider(RedisSpider):
name = 'cnblogs'
# -----3注销:start_urls和allowed_domains
# # 允许修改的域
# allowed_domains = ["https://www.cnblogs.com/"]
... | [
"1171242903@qq.com"
] | 1171242903@qq.com |
0e2cf9ea13a2636cd2687fe2b93596c699934e37 | fd7598754b87536d3072edee8e969da2f838fa03 | /chapter10_discussion3.py | 634e69841a36d93e5fb5f5dd7adbb9f06b78c9e4 | [] | no_license | dorabelme/Python-Programming-An-Introduction-to-Computer-Science | 7de035aef216b2437bfa43b7d49b35018e7a2153 | 3c60c9ecfdd69cc9f47b43f4a8e6a13767960301 | refs/heads/master | 2020-05-02T23:19:44.573072 | 2019-03-28T21:27:20 | 2019-03-28T21:27:20 | 178,261,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | class Bozo:
def __init__(self, value):
print("Creating a Bozo from:", value)
self.value = 2 * value
def clown(self, x):
print("Clowning:", x)
print(x * self.value)
return x + self.value
def main():
print("Clowning around now.")
c1 = Bozo(3)
c2 = Bozo(4)
print(c1.clown(3))
print(c2.clown(c1.clown(2))... | [
"contact.dorabelme@gmail.com"
] | contact.dorabelme@gmail.com |
0f8738923bbc750176b9a43e982ae6ccbc40fffa | 68a8c68f425315e3793c311de7940095945be72d | /aat/strategy/utils.py | 45e881274193960a943cfc99a55b4c0a0a9a5dcc | [
"Apache-2.0"
] | permissive | z772/aat | 8064b33721eaf115b7220fef71e8a14b98169e7e | 8d6bcaf01c1192ca7d1e0f367c89ede2b4f4a26c | refs/heads/main | 2023-02-13T08:43:37.581203 | 2020-12-30T00:07:43 | 2020-12-30T00:07:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,130 | py | import asyncio
from datetime import datetime
from typing import Union, Callable, Optional, List, TYPE_CHECKING
from ..config import Side, TradingType, ExitRoutine, InstrumentType
from ..core import Trade, Instrument, ExchangeType, Order
from ..exchange import Exchange
from ..engine.dispatch import Periodic
if TYPE_C... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
1dc03a4c07469b70ddf61ccab9ee46beebd7c5e7 | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/framework/errors_test.py | 4dfd6e162da808b6d21ae34ad21073e89b9f5ca4 | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,584 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
3321b9eaa18795b67688b0bf6e282aca8ae8ad33 | d09c6ff7114f69a9326883c5b9fcc70fa994e8a2 | /_pycharm_skeletons/renderdoc/rdcarray_of_ShaderCompileFlag.py | 5e80962089f067e1b17fd3f5da5e2d5a12b7229a | [
"MIT"
] | permissive | Lex-DRL/renderdoc-py-stubs | 3dd32d23c0c8219bb66387e6078244cff453cd83 | 75d280e4f500ded506f3315a49fc432b37ab4fa6 | refs/heads/master | 2020-08-22T16:55:39.336657 | 2019-11-03T01:21:26 | 2019-11-03T01:21:26 | 216,441,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,270 | py | # encoding: utf-8
# module renderdoc
# from P:\1-Scripts\_Python\Py-Autocomplete\renderdoc.pyd
# by generator 1.146
# no doc
# imports
import enum as __enum
from .SwigPyObject import SwigPyObject
class rdcarray_of_ShaderCompileFlag(SwigPyObject):
""" ::rdcarray< ShaderCompileFlag > """
def append(self, valu... | [
"drl.i3x@gmail.com"
] | drl.i3x@gmail.com |
aa7604f0899d187fd357ceb2142f1c73811edce8 | 6e1ce0591f9cced8144a07ef0db3ec4d1c3b0e7b | /projects/knowledge_integration/scripts/extract_conceptnet.py | bc3b926f88591762149b1591f58e4a238cfe9cb6 | [
"MIT"
] | permissive | Ruturaj123/SARKAR.AI | 4b67f78eeceaf3bf3390aca8af1a87adc5829b15 | c8a0a102ae6f8ec88b015692631d487ca803297d | refs/heads/master | 2022-12-14T04:59:43.092887 | 2019-02-15T12:39:55 | 2019-02-15T12:39:55 | 170,132,979 | 1 | 1 | MIT | 2022-12-08T01:36:52 | 2019-02-11T13:26:10 | HTML | UTF-8 | Python | false | false | 3,853 | py | """Extract ConceptNet assertions and add them to an assertion store."""
import gzip
import re
import spacy
from projects.knowledge_integration.knowledge_store import KnowledgeStore
def uncamel(name):
s1 = re.sub('(.)([A-Z][a-z]+)', r'\1 \2', name)
return re.sub('([a-z0-9])([A-Z])', r'\1 \2', s1).lower()
... | [
"pujanrmehta@gmail.com"
] | pujanrmehta@gmail.com |
cec2fda3e4c4ad8afa5d48a28dada88b241d5a70 | aae0432eede626a0ac39ff6d81234e82f8d678c2 | /leetcode/algorithm/shortest-unsorted-continuous-subarray.py | 5ec887c60d3ba02cc81df7a0b66cae3a33aecc56 | [] | no_license | KIDJourney/algorithm | 81c00186a6dfdc278df513d25fad75c78eb1bf68 | e1cf8e12050b9f1419a734ff93f9c626fc10bfe0 | refs/heads/master | 2022-11-24T09:30:16.692316 | 2022-11-06T09:33:51 | 2022-11-06T09:33:51 | 40,428,125 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | class Solution(object):
def findUnsortedSubarray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
sorted_nums = sorted(nums)
s = 0
e = len(nums) - 1
while s <= len(nums) - 1 and nums[s] == sorted_nums[s]:
s += 1
while e >= 0 ... | [
"kingdeadfish@qq.com"
] | kingdeadfish@qq.com |
550a87fef549f7497978dc15073acac97fa1fde6 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /110_concurrency_parallelism/_exercises/templates/Learning Concurrency in Python/Chapter 08/starmapAsync.py | f1def48e2c59aa322826d8dfe21b33e72cb21d80 | [] | 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 | 187 | py | # ____ m.. ______ P..
# ______ ti..
#
# ___ myTask x y
# t__.s.. x
# r_ y*2
#
# ___ main
# w__ P.. 4 __ p
# print ?.s_a.. ? ||4,3),(2,1 .g..
#
# __ _________ __ ________
# ?
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
c1c59206373f0c82b575711293a54822196c93ec | 22ff0921aee459abd0a3c15281de80ba6b4035bf | /Feb/day 11/cjc.py | c729f11a218603430889ca28785ca2006308e426 | [] | no_license | BhushanTayade88/Core-Python | b0516f234b866682931af95b723adb1269fb946a | f687e4029e3a3aaf751538604dfd06386084252b | refs/heads/master | 2023-08-03T02:09:38.536580 | 2021-10-05T17:25:20 | 2021-10-05T17:25:20 | 413,910,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | print("Welcome"),
print("to"),
print("CJC")
| [
"tayadebhushan55@gmail.com"
] | tayadebhushan55@gmail.com |
36d9b28b92aa093f73740c0ac435de561812bb05 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.3/programming/languages/gambas/gambas/actions.py | 0542ea1caa2fc10c7f901cb4e80b6d5ee3da8ed6 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,910 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2007 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
298598ca427d5f1bc1787cda48b5cf3c1dd64617 | a39100f4d4d0c1ec0be089a721dfbd992d2adb3c | /codelists/models.py | 06b2a7ef45f55e5388ed84d134ba13c8836d6418 | [] | no_license | jbmamza/opencodelists | fd222a09690a6831c42fcc7327ecf1ac1d22fc4f | d94a227a72e66a23f6d229b4dcab56df2c49efa4 | refs/heads/master | 2022-09-25T15:54:06.429339 | 2020-06-02T12:46:19 | 2020-06-02T12:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | import csv
from io import StringIO
from django.db import models
from django.urls import reverse
from django.utils.functional import cached_property
from django.utils.text import slugify
from .coding_systems import CODING_SYSTEMS
class Codelist(models.Model):
CODING_SYSTEMS_CHOICES = sorted(
(id, system.... | [
"peter.inglesby@gmail.com"
] | peter.inglesby@gmail.com |
444c9e6c57170e65862dbe826a3ae841c20caa8f | 0f2f9df5690f2217d46b65ca213ef504f390df89 | /pool/migrations/0002_auto_20191021_1713.py | da54e8ef3939985f9fa0f396943b3bef833ad5f7 | [] | no_license | yaolongc/Blogaaa | 09eb882ce946730c8cab2a8351e5d1b1a935570d | feaf53e80b723ca5d38392ae440e558f86351c9d | refs/heads/master | 2020-08-30T02:55:57.086778 | 2019-10-29T08:43:19 | 2019-10-29T08:43:19 | 218,241,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | # Generated by Django 2.2.6 on 2019-10-21 09:13
import DjangoUeditor.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pool', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='article',
options={... | [
"you@example.com"
] | you@example.com |
a40b0892b2933eca0cf6aa12a868c59a7131f1da | e68ceeddb2568a603e68508e36918bfb8ecacd89 | /CS3243/sudoku_A2_Final.py | 1ebb96fb3e79aa1411edb341a1b9d5f71bc4adce | [] | no_license | fzdy1914/NUS-Py2-Workspace | 168a967b9739b838f50602e5126b688e083c6dfd | c991f335e236a3e0281812cdd699aa4a3f02a714 | refs/heads/master | 2023-04-14T22:46:10.478964 | 2020-08-20T07:43:50 | 2020-08-20T07:43:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,032 | py | import sys
import copy
class Sudoku(object):
def __init__(self, puzzle):
# you may add more attributes if you need
self.puzzle = puzzle # self.puzzle is a list of lists
self.ans = copy.deepcopy(puzzle) # self.ans is a list of lists
self.assignment = [[[self.puzzle[i][j]] for j i... | [
"1229983126@qq.com"
] | 1229983126@qq.com |
3c9946e8ad96d494f4a351b347dde2fd457607f1 | 7171c282ae640e3ae8a30bb08184be20d178be2d | /gallery/views.py | 06a3b9ca2a7da7bd939391421bb27d54fa81f6d6 | [] | no_license | Grechanin/md1m | 84fcc13006bea694d5be30c85cfafc135f69a7d6 | fe971d46aff2225c4bd73ba3273deb97a6ac7b7a | refs/heads/master | 2020-03-24T23:46:27.767834 | 2018-08-13T21:51:38 | 2018-08-13T21:51:38 | 143,153,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | from django.shortcuts import render, get_object_or_404
from .models import Gallery
from projects.models import ProjectImage
def gallery(request):
gallery = Gallery.objects.filter(is_active=True)[0]
title = gallery.title
short_description = gallery.short_description
description = gallery.description
imgs = Projec... | [
"grechanin@gmail.com"
] | grechanin@gmail.com |
2684debef2797d0765d3f2e9b3d4789f021492a3 | 84eb1015d8a753ff3e938bd7aada8be27f3aebfe | /ejercicio-siguentefecha/nextDate.py | 03cba89fbe4c292fe184182b76aace0c04a2edfa | [] | no_license | slalbertojesus/playground-testing | f096d0d696a66220436d7f56f808ccda0bcea92b | e0c5cc5f05d2ac80366c8460e32866d902c6ddf7 | refs/heads/master | 2020-07-22T03:15:08.221409 | 2019-09-11T00:17:23 | 2019-09-11T00:17:23 | 207,058,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | import numbers
def calculasiguienteFecha(listaentradas):
año = listaentradas.pop()
if (año % 400 == 0):
año_bisiesto = True
elif (año % 100 == 0):
año_bisiesto = False
elif (año % 4 == 0):
año_bisiesto = True
else:
año_bisiesto = False
mes = listaentradas.pop()
... | [
"slalbertojesus@gmail.com"
] | slalbertojesus@gmail.com |
139934b5007cb0e68c8f8a0adee530eb12c28f6d | 733b161d88197457d67d2697f14be77866bd8542 | /Django/djangoEnv/bin/pygmentize | b2586b123dade38cce34694b910b2637e2225595 | [] | no_license | sindhugudivada/python_stack | 950a2801389f828ccd59b0f7d380008eeccb4e43 | d01453c628bd2d50ce1b289932ee50a1bc4fd3be | refs/heads/master | 2021-05-03T19:04:19.068586 | 2018-02-06T07:40:52 | 2018-02-06T07:40:52 | 120,418,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | #!/Users/vineely/Desktop/python_stack/Django/djangoEnv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pygments.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sindhugudivada67@gmail.com"
] | sindhugudivada67@gmail.com | |
4e599d1c88b327ccd2d85069a944d46bdbcc32f2 | 738aa533b6682f564b09258fa3805ea3a6f85853 | /word_list.py | 98e1a0753ac1edf202aa1908fe899c8110dbeb48 | [] | no_license | saket1471/PythonFirst | 095c2ca8a3c32a3effed245cf41378c433901c08 | e6376966ba8a012d8504223bc337f903b7ff780e | refs/heads/master | 2020-03-23T02:16:37.833536 | 2018-09-26T04:42:12 | 2018-09-26T04:42:12 | 140,965,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from urllib.request import urlopen
def fetch_words():
with urlopen('http://sixty-north.com/c/t.txt') as story:
story_words = []
for line in story:
# line_words = line.split() # print bytes like -> b'test'
line_words = line.decode('utf-8').split() # test
for ... | [
"test@test.com"
] | test@test.com |
ee0a1cb96ffcaf5de1940a3673aabe82dd892241 | 6a0ae86bca2d2ece6c92efd5594c0e3b1777ead7 | /EDBRCommon/python/datasets/summer12_MWp_2000_bb_cff.py | a5d22d1d999f8a2b606d4034bcd323a674642cf2 | [] | no_license | wangmengmeng/ExoDiBosonResonances | c4b5d277f744e1b1986df9317ac60b46d202a29f | bf5d2e79f59ad25c7a11e7f97552e2bf6a283428 | refs/heads/master | 2016-09-06T14:54:53.245508 | 2014-06-05T15:02:37 | 2014-06-05T15:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,123 | py | import FWCore.ParameterSet.Config as cms
readFiles = cms.untracked.vstring()
source = cms.Source("PoolSource",
noEventSort = cms.untracked.bool(True),
duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
... | [
"mengmeng.wang@cern.ch"
] | mengmeng.wang@cern.ch |
f70e10e7461eed36cda1a2531df27ef47df1a4b5 | a5dee3e5dd839bf24c04e34f1774ff9d7b1fff43 | /venvs/tensorflow/lib/python3.6/codecs.py | 8bcde96bb17a1d585daf184d31dd7ef9bdc385cc | [
"MIT"
] | permissive | hsnodgrass/Chatbot | 17876e7e176355a1d4793b7817e0a5e527233531 | 7b8336a3365c50c3e156cb51d762578633d4dac2 | refs/heads/master | 2022-10-19T03:57:10.273171 | 2017-07-16T17:37:14 | 2017-07-16T17:37:14 | 95,172,310 | 0 | 1 | MIT | 2022-10-09T04:59:02 | 2017-06-23T01:45:05 | Python | UTF-8 | Python | false | false | 30 | py | /usr/lib64/python3.6/codecs.py | [
"hsnodgrass3@gmail.com"
] | hsnodgrass3@gmail.com |
3a340f7e03f0ce9b289f383a17fb583c509efd77 | 5a281cb78335e06c631181720546f6876005d4e5 | /solum-6.0.0/solum/tests/test_solum.py | 98fcff626eb0cebbf7c6fa5f327fa351bce2d570 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 907 | py | # 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 writing, software
# distributed under t... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
a207b19e342f39d7cd0e15f80ab9ed725743c11a | 2b398353f5b0529ac666ef180e9dc966474a70c0 | /vspk/v5_0/fetchers/nueventlogs_fetcher.py | 92c540d7d4c1f844ac453a6d9e0583435770f5ef | [
"BSD-3-Clause"
] | permissive | nuagenetworks/vspk-python | e0c4570be81da2a4d8946299cb44eaf9559e0170 | 9a44d3015aa6424d0154c8c8a42297669cce11f9 | refs/heads/master | 2023-06-01T01:12:47.011489 | 2023-05-12T19:48:52 | 2023-05-12T19:48:52 | 53,171,411 | 21 | 18 | BSD-3-Clause | 2020-12-16T12:36:58 | 2016-03-04T23:10:58 | Python | UTF-8 | Python | false | false | 2,107 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrigh... | [
"corentin.henry@nokia.com"
] | corentin.henry@nokia.com |
6096d39ca346860720941fdcdf4cb15095fbabf2 | 35fd40fbc4cfa46272c4031b9ca0cb88572e3fa4 | /xmonitor/api/middleware/context.py | 01a289efc34b416edf2070ffe87f276be7a98da6 | [
"Apache-2.0"
] | permissive | froyobin/xmonitor | 3d662541387226a4ff1c18ef450fdc77a769d0b8 | 092dcaa01f834353ffd8dd3c40edf9e97543bfe8 | refs/heads/master | 2020-12-23T22:33:15.758127 | 2016-06-30T06:18:05 | 2016-06-30T06:18:05 | 62,284,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,946 | py | # Copyright 2011-2012 OpenStack Foundation
# 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... | [
"froyo.bin@gmail.com"
] | froyo.bin@gmail.com |
066a79397c9e5649bd55ca8689071b1da76dafe8 | 89e40bf548403e440c230e06fa6301021ec8b0c7 | /sw_expert_academy/D2/p1204.py | dd2c044f6139c3e75e47f930b7f612ab799c8590 | [] | no_license | TaeJuneJoung/Algorithm | b9cf5724501918c7302099b8194d26bd19512bd0 | ecc2934a376c91ecec8bfd15af377d8a2973d71d | refs/heads/master | 2020-06-19T13:50:14.720987 | 2019-08-04T14:35:43 | 2019-08-04T14:35:43 | 196,732,653 | 0 | 0 | null | 2019-08-04T14:35:44 | 2019-07-13T14:46:42 | Python | UTF-8 | Python | false | false | 586 | py | import sys
sys.stdin = open('../input/p1204.txt', 'r')
T = int(input())
for t in range(1,T+1):
test_num = int(input())
scores = list(map(int, input().split()))
scores_cnt = [0 for i in range(101)]
max_idx = 0
res = 0
#counting - reverse
for i in range(len(scores)):
scores_cnt[100-s... | [
"jtj0525@gmail.com"
] | jtj0525@gmail.com |
ed5a610754e843a6fb80f7efb774aef624f467d8 | 17432d5d2b9f3bfa447fb839b5c1cf2aa9d7de24 | /wrap.py | f365edf4cb5cae6e82f08178d785abdc4b87a122 | [] | no_license | hackita02/python-file-information-by-extensions-standard-library-yotammanor | 3816974b6df9ca8d57477adab22e06b6b11375ec | 9951b9e9a847a47d88af0ac0f96901f25bae478e | refs/heads/master | 2021-01-10T11:06:11.601131 | 2015-10-26T16:59:36 | 2015-10-26T16:59:36 | 44,297,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py |
if __name__ == '__main__':
print('before ext_info')
exec(open('ext_info.py','r').read())
print('print after ext_info') | [
"yotammanor@gmail.com"
] | yotammanor@gmail.com |
de08e4b1fa4d028464217efac4356f6d2cc68f46 | 587c1ee6cac0fd6d20b44657241fb7a1568f0114 | /payment_lib_examples/alipay-sdk-python/virtual_environment/lib/python3.4/site-packages/alipay/aop/api/domain/SsdataFindataQxUserinfoUploadModel.py | 36fc8698f5625fe3772fb180d7b19818172cbedd | [
"Apache-2.0"
] | permissive | cuhk-mobitec/S3KVetter | 719546f8729d4ff7713e18f2bb59443ad70a0be9 | 9ae79a242afbe6edae27c17065a88feca2896cf6 | refs/heads/master | 2022-07-19T12:39:25.826176 | 2019-06-04T15:25:06 | 2019-06-04T15:25:06 | 185,901,724 | 0 | 0 | Apache-2.0 | 2022-07-07T23:00:34 | 2019-05-10T02:06:56 | Python | UTF-8 | Python | false | false | 2,831 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class SsdataFindataQxUserinfoUploadModel(object):
def __init__(self):
self._ext_params = None
self._id_card_no = None
self._org_biz_no = None
self._phone = None
... | [
"shishangcheng@gmail.com"
] | shishangcheng@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.