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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49e35d732d050a8de37689f7459907f5c429e2fa | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayCloudDevopsDictQueryRequest.py | 980977a75413bdc34d657ea1e8ece1c6b0ddb700 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,955 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayCloudDevopsDictQueryModel import AlipayCloudDevopsDictQueryModel
class AlipayCloudDevopsDictQueryRequest(object):
def __i... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
f8597c8ce3dfbc755d8bf76575047963a0ec8beb | 6c74c8babd2f94cbed185af75940774a2750f3e5 | /src/georinex/base.py | ccfff852795a64c572afd92589a410550c92cf2e | [
"MIT"
] | permissive | geospace-code/georinex | c28c8a17196bb1fa8093c818ce43bcb74ec52171 | c689a5a6bc2ffb68bc055f150f1da1b6bab12812 | refs/heads/main | 2023-04-13T15:01:50.903458 | 2022-12-27T19:25:58 | 2022-12-27T19:26:15 | 34,296,204 | 106 | 40 | MIT | 2023-04-10T02:54:45 | 2015-04-21T01:19:29 | Python | UTF-8 | Python | false | false | 7,148 | py | from __future__ import annotations
import typing as T
from pathlib import Path
import xarray
from datetime import datetime, timedelta
import logging
from .rio import rinexinfo
from .obs2 import rinexobs2
from .obs3 import rinexobs3
from .nav2 import rinexnav2
from .nav3 import rinexnav3
from .sp3 import load_sp3
from ... | [
"scivision@users.noreply.github.com"
] | scivision@users.noreply.github.com |
ee391734bbe1d920f7349971047cc74c0c565f36 | e9ef3cd143478660d098668a10e67544a42b5878 | /Lib/corpuscrawler/crawl_mpx.py | 71bb3a7ee49333cc9c4fc1cee863a89f398c5aa2 | [
"Apache-2.0"
] | permissive | google/corpuscrawler | a5c790c19b26e6397b768ce26cf12bbcb641eb90 | 10adaecf4ed5a7d0557c8e692c186023746eb001 | refs/heads/master | 2023-08-26T04:15:59.036883 | 2022-04-20T08:18:11 | 2022-04-20T08:18:11 | 102,909,145 | 119 | 40 | NOASSERTION | 2022-04-20T08:18:12 | 2017-09-08T22:21:03 | Python | UTF-8 | Python | false | false | 799 | py | # coding: utf-8
# Copyright 2017 Google LLC
#
# 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... | [
"sascha@brawer.ch"
] | sascha@brawer.ch |
e0c09849f0aec5951bf94adaa9bc3656ac75f05f | abc72a2f2072ab7a5a338e41d81c354324943b09 | /MC 102 (Exemplos de aula)/eliminar_repeticao.py | 55c15d25c81d25f12a60900b67da3c9af6354681 | [] | no_license | gigennari/mc102 | a3d39fd9a942c97ef477a9b59d7955f4269b202a | fce680d5188a8dfb0bc1832d6f430cbcaf68ef55 | refs/heads/master | 2023-04-05T01:40:58.839889 | 2020-07-27T20:33:56 | 2020-07-27T20:33:56 | 354,130,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py |
def eliminar_repeticao(lista1, lista2):
lista_sem_rep = []
freq_sem_rep = []
for i in range(len(lista1)):
if lista1[i] not in lista_sem_rep:
lista_sem_rep.append(lista1[i])
freq_sem_rep.append(lista2[i])
return lista_sem_rep, freq_sem_rep
def main():
lista1 = [3, 3,... | [
"g198010@dac.unicamp.br"
] | g198010@dac.unicamp.br |
f7ee63e6b92678782ec9da34b96b0addaf69997c | b9571590d8cc83a99293d777f57e5ebeea5bcc92 | /spiders/DoctorSpider.py | 1cc8539b8017fa62c7ea2ce5c7a731be27f7fec8 | [] | no_license | LiuQL2/Crawler_xywy_doctor_communication | 585a0a3230f397640e5fc54506cd6585bfd04f57 | 3374f08ea34ae8ea7e96501188a4fec247c72b5d | refs/heads/master | 2020-06-30T13:28:01.048195 | 2017-08-04T07:29:19 | 2017-08-04T07:29:19 | 74,369,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
用来获取病例和心得帖子内容的类,传入一个帖子的URL,调用不同的方法得到不同的数据。
"""
# Author: Liu Qianlong <LiuQL2@163.com>
# Date: 2016.12.08
import datetime
import json
import sys
import urllib2
from BaseSpider import BaseSpider
reload(sys)
sys.setdefaultencoding('utf-8')
class D... | [
"LiuQL2@sina.com"
] | LiuQL2@sina.com |
d71180f0bd321d3d7193738b32581743b75440f3 | 3257372291236aac1737b057c9ac6c61da9ccca0 | /tutorials/W0D5_Statistics/solutions/W0D5_Tutorial2_Solution_281848de.py | 65dc66a635bd53e9c76bb3d72f597aebb3c00512 | [
"CC-BY-4.0",
"BSD-3-Clause",
"MIT"
] | permissive | NeuromatchAcademy/precourse | 230ead0d11ae7b0dba21c8df97695a1796e9797d | b7f2432c6a68a7984ca923ceed8e07d5cfdb77c3 | refs/heads/main | 2023-07-26T11:18:24.493966 | 2023-07-09T14:42:49 | 2023-07-09T14:42:49 | 256,327,558 | 639 | 174 | MIT | 2023-07-09T14:42:50 | 2020-04-16T20:54:03 | Jupyter Notebook | UTF-8 | Python | false | false | 621 | py |
""" You will learn more about "Bayesian brains" and the theory surrounding
these ideas once the course begins. Here is a brief explanation: it may
be ideal for human brains to implement Bayesian inference by integrating "prior"
information the brain has about the world (memories, prior knowledge, etc.) with
new eviden... | [
"noreply@github.com"
] | NeuromatchAcademy.noreply@github.com |
50c2dde48b456f93aa0260584ded425981eeb60e | e7e029a04319afce21c43317e2cc8f3dc92091ca | /pex/commands/command.py | 2104e893ca0f0b603d42816941bd46692371ae1a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | asherf/pex | e451b28a088968736e47285396813f6a2b4c6058 | c15508ad1a2d48bdef9fbac677dbfa32927e6625 | refs/heads/master | 2022-07-22T23:01:48.331316 | 2022-07-05T14:41:35 | 2022-07-05T14:41:35 | 237,337,647 | 0 | 0 | Apache-2.0 | 2020-01-31T01:12:31 | 2020-01-31T01:12:30 | null | UTF-8 | Python | false | false | 13,469 | py | # Copyright 2020 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import absolute_import, print_function
import functools
import json
import logging
import os
import subprocess
import sys
import tempfile
from argparse import ArgumentDefa... | [
"noreply@github.com"
] | asherf.noreply@github.com |
f369d5667a7f0255f82296fbbee935075af34b7e | 7b5ec17918cb2328d53bf2edd876c153af26b38d | /scripts/ingestors/rwis/process_idot_awos.py | c29e696ecbcafd40fb720a5612021a2b033ca115 | [
"MIT"
] | permissive | Xawwell/iem | 78e62f749661f3ba292327f82acf4ef0f0c8d55b | 88177cc096b9a66d1bd51633fea448585b5e6573 | refs/heads/master | 2020-09-06T09:03:54.174221 | 2019-11-08T03:23:44 | 2019-11-08T03:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | """Process AWOS METAR file"""
from __future__ import print_function
import re
import sys
import os
import datetime
import ftplib
import subprocess
import tempfile
from io import StringIO
from pyiem import util
INCOMING = "/mesonet/data/incoming"
def fetch_files():
"""Fetch files """
props = util.get_propert... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
bff32a13096803e1b074e49cecebb181d4d6913f | 785a06d576cd4f7486a8a4306481392d0b65f621 | /0x06-python-classes/0-square.py | b295cba0972b97fb25477fe35a3935cfbf691fec | [] | no_license | LauraPeraltaV85/holbertonschool-higher_level_programming | 7c3d0a99c2dbd4f2f6951999634dbc2ae9acf1c4 | 264fe99bf5fc128d2faf59057e9062c2408e6065 | refs/heads/master | 2021-07-21T07:49:24.049890 | 2020-08-19T00:07:20 | 2020-08-19T00:07:20 | 207,329,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | #!/usr/bin/python3
class Square:
"""Empty class that defines a squares"""
pass
| [
"="
] | = |
567c5930ce4dce2b362ee9ebf34f4f2c604b528e | 88df15f1c36960f3473caf54904cbaae5f3bab52 | /function.py | b9deefeceb27b05ad098eda3a0941d75fe731747 | [] | no_license | pigpigman8686/listen | eef86b391b7399a96edfe1f8136dcd26d0ffd646 | aa3b3f7d2e49ffb557739c19c3712b9e6d823e43 | refs/heads/master | 2020-06-19T17:46:29.283378 | 2019-07-14T07:34:39 | 2019-07-14T07:34:39 | 196,806,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | import random
import os,re
def getMessage(yes=True,snr=28,count=1):
if count == 1:
page = int(9)
elif yes==True:
page = int((snr-10)/2-1)
if page<0:
page = 0
else:
page = int((snr-10)/2+1)
if page>18:
page=18
filepath = "static/voice/"+str... | [
"952361195@qq.com"
] | 952361195@qq.com |
06e60323dd57f2def66299b5acfc0b773762fb62 | a3c4935537a42330758c7ac54553ae45daad069d | /.history/backend/src/api_20210807005753.py | d5a98b48745dbac2d9550540ef0d1b41a0699108 | [] | no_license | saraalmuraytib/Coffee-Shop | 219292b4e2dd9b39621f9cd42bdcb049f5bb20c8 | cec4b8df3a4c38600fb2964f8fa85d3c820ddb6c | refs/heads/main | 2023-07-12T19:39:26.617313 | 2021-08-28T19:22:23 | 2021-08-28T19:22:23 | 392,365,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,532 | py | import os
from flask import Flask, request, jsonify, abort
from sqlalchemy import exc
import json
from flask_cors import CORS
from .database.models import db_drop_and_create_all, setup_db, Drink
from .auth.auth import AuthError, requires_auth
app = Flask(__name__)
setup_db(app)
CORS(app)
'''
@TODO uncomment the foll... | [
"sara.almuraytib@gmail.com"
] | sara.almuraytib@gmail.com |
0bb96f30a42e50bc0408cf4a6f607b6796d6546d | edf91e2614f0bf0dbfea1c77d2f41add5a14fac1 | /twitterino/twitterino/urls.py | 5e36063f9d99be119b11bcd0d2d3164226497241 | [] | no_license | Razhelq/Twitterino | c5c4a9de47566a21240f1de316c9cb980b9fe01d | 88269625aa2306f58c197477f3d682db270ca469 | refs/heads/master | 2020-03-26T18:23:15.149839 | 2018-08-27T19:59:57 | 2018-08-27T19:59:57 | 145,210,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | """twitterino URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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-ba... | [
"mateuszszpakowski@wp.pl"
] | mateuszszpakowski@wp.pl |
81b87030e4f49031523e25eeadd2033600229db8 | ec00584ab288267a7cf46c5cd4f76bbec1c70a6b | /Django/webapp/webapp/urls.py | b992ee479948a6c3cd42bf76a7571f15eb468e76 | [] | no_license | rahuldbhadange/Python | b4cc806ff23953389c9507f43d817b3815260e19 | 7e162117f1acc12537c7eeb36d6983d804122ff3 | refs/heads/master | 2021-06-23T05:04:20.053777 | 2020-01-28T10:34:28 | 2020-01-28T10:34:28 | 217,307,612 | 0 | 0 | null | 2021-06-10T22:44:11 | 2019-10-24T13:35:42 | Python | UTF-8 | Python | false | false | 1,494 | py | """webapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"46024570+rahuldbhadange@users.noreply.github.com"
] | 46024570+rahuldbhadange@users.noreply.github.com |
6e23c5de1d7411fa2a34e57a9a50d0e75aa00440 | abc422f58ad053bcbb6653ba15b66e46d220a199 | /serial_scripts/rsyslog/mylogging.py | d5ca62ae2331a8ee83e6c2ec8c2eda766a56adab | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | tungstenfabric/tf-test | d3efff59bca931b614d0008260b2c0881d1fc009 | 4b9eca7eb182e5530223131ecab09d3bdf366407 | refs/heads/master | 2023-02-26T19:14:34.345423 | 2023-01-11T08:45:18 | 2023-01-11T10:37:25 | 265,231,958 | 8 | 22 | null | 2023-02-08T00:53:29 | 2020-05-19T11:46:12 | Python | UTF-8 | Python | false | false | 3,406 | py | #!/usr/bin/python2.7
from __future__ import print_function
from builtins import str
from builtins import range
import syslog
import random
import time
import sys
def send_10_log_messages_with_delay():
syslog.openlog(logoption=syslog.LOG_PID, facility=syslog.LOG_MAIL)
for ind in range(10):
msg = str(i... | [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru |
eac10a806ad58329f8f11936dda99609b1065f55 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/interactions/object_retrieval_liability.py | 2f36b95318e52aa7996e4d60ba902bea61025b51 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,849 | py | import build_buy
import enum
import services
import sims4
from element_utils import build_element, CleanupType
from interactions import ParticipantType, ParticipantTypeSingle
from interactions.aop import AffordanceObjectPair
from interactions.base.interaction_constants import InteractionQueuePreparationStatus
from inte... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
e9d169335a5f914f653a37844eac60d56eb8136e | b96ed10d6247e22d4fa1d28bc3314bc319d3109c | /LessonSample/chapter12/03_进程池.py | 2ba823ca2fd1e127c6f7ef24b29591aaddf7cb6d | [] | no_license | 13555785106/PythonPPT-01 | ac1b22b9b1851f2b3ea6e4ab0a100e5f6896ee8c | 40e5883f248cb342f3a7fc7ad12ba02ebde4c619 | refs/heads/master | 2020-04-26T16:49:59.675964 | 2019-03-04T07:16:21 | 2019-03-04T07:16:21 | 157,095,747 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import os
import random
import time
from multiprocessing import Pool
def run(name):
print("子进程%d启动--%s" % (name, os.getpid()))
start = time.time()
time.sleep(random.choice([5, 7, 9]))
end = time.time()
print("子进程%d结束--%s--耗时%.2f" % (name, os.getpid(), end ... | [
"312655424@qq.com"
] | 312655424@qq.com |
1bdc224dca8b596ac6e94359d90f12c8b5e1815f | 631901398be90a2dda7b703e8229165e719dae7f | /orm/entities/Area/__init__.py | fb86137b571e9985fd20e226197292e6b653f21d | [] | no_license | hevayo/results-tabulation-api | 4b22cc7cb3c535862429fef84422e97e1ca5890a | 939c1cbd360fd908dcdf563623ee91393959bcd5 | refs/heads/master | 2020-08-08T22:58:34.133675 | 2019-11-02T07:54:07 | 2019-11-02T07:54:07 | 213,940,023 | 0 | 0 | null | 2019-10-09T14:27:02 | 2019-10-09T14:27:00 | null | UTF-8 | Python | false | false | 15,851 | py | from app import db
from sqlalchemy.orm import relationship, aliased
from sqlalchemy import and_, func, or_
from orm.enums import AreaTypeEnum
from orm.entities import Election
from sqlalchemy.ext.hybrid import hybrid_property
class AreaModel(db.Model):
__tablename__ = 'area'
areaId = db.Column(db.Integer, pr... | [
"l.dinukadesilva@gmail.com"
] | l.dinukadesilva@gmail.com |
0588499572b5db43202033b8b7e52943684e02b8 | 6811dc616a18898f565ee1e59f52a889da2b4d47 | /clog/urls.py | 7e24d23a5403e98aa3fd5f1454f3dabc71e0531f | [] | no_license | rtreharne/clog | 163e28b8e387e7f2fe926d88e28972c115294508 | 69320d929d96fd291e6da8fc11023d14da998655 | refs/heads/master | 2021-01-10T18:24:16.863481 | 2015-08-18T13:58:07 | 2015-08-18T13:58:07 | 40,085,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns('',
url(r'^$', 'clog.views.home', name='home'),
url(r'^admin/', include(admin.site.urls)),
url(r'^user/', include('profiles.urls')),
url(r'^upload/', include('upl... | [
"R.Treharne@liverpool.ac.uk"
] | R.Treharne@liverpool.ac.uk |
3d16576478fa4173a6b4ac13bd24082a5243908a | 507e9728307439fa3b343de015237e2f179b0032 | /hospital/api/AConfig.py | 9fa547be309e9abd3052ecb9319676517a13cbcb | [] | no_license | haobin12358/hospital | 3075f31c4ed527190292f2655350ef0bbc9ac7f3 | 9705e03eaf9514eb47f1d44d2bbe18ccf5cd5b30 | refs/heads/master | 2022-12-14T01:48:56.759520 | 2021-03-02T04:00:47 | 2021-03-02T04:00:47 | 245,367,609 | 2 | 1 | null | 2022-12-08T03:45:40 | 2020-03-06T08:32:44 | Python | UTF-8 | Python | false | false | 1,128 | py | # -*- coding : utf-8 -*-
from hospital.extensions.base_resource import Resource
from hospital.control.CConfig import CConfig
class AConfig(Resource):
def __init__(self):
self.cconfig = CConfig()
def get(self, config):
apis = {
"list_banner": self.cconfig.list_banner,
"g... | [
"1276121237@qq.com"
] | 1276121237@qq.com |
bc2a86c16fdc46755d1f68ef3d15c959ac845b19 | b2ed893d04f04eeaf7209187133de7431c476a96 | /user_net/activity_info.py | 94dc0c294de672dfcb333926cf41fa221e1c7235 | [] | no_license | liruikaiyao/workshop | 4b5221259f59ad504d87d73c31f5fa0e58d4a1f0 | 6dbde74e35ef02f5e92c76dcdd1909f1d0afb89e | refs/heads/master | 2021-01-17T16:09:13.248109 | 2015-08-05T09:43:21 | 2015-08-05T09:43:21 | 23,420,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | # coding=utf-8
__author__ = 'Carry lee'
from collections import Counter
import datetime
import urllib2
import json
from config.db import ICCv1, sh, utc
api_url = u'http://api.map.baidu.com/geocoder/v2/?ak='
parameter = u'&output=json&coordtype=wgs84ll&location='
ak = 'SIpMcORCSogM916QMOz5tx7S'
weixin = ICCv1['weixi... | [
"liruikaiyao@gmail.com"
] | liruikaiyao@gmail.com |
7670f28ba7aabb549461ab2ef055a921d977f465 | 19236d9e966cf5bafbe5479d613a175211e1dd37 | /cohesity_management_sdk/controllers/certificates.py | 419684769ccf8289a0dc95ec3fbc113bd7eed60f | [
"MIT"
] | permissive | hemanshu-cohesity/management-sdk-python | 236c44fbd9604809027f8ddd0ae6c36e4e727615 | 07c5adee58810979780679065250d82b4b2cdaab | refs/heads/master | 2020-04-29T23:22:08.909550 | 2019-04-10T02:42:16 | 2019-04-10T02:42:16 | 176,474,523 | 0 | 0 | NOASSERTION | 2019-03-19T09:27:14 | 2019-03-19T09:27:12 | null | UTF-8 | Python | false | false | 6,978 | py | # -*- coding: utf-8 -*-
# Copyright 2019 Cohesity Inc.
import logging
from cohesity_management_sdk.api_helper import APIHelper
from cohesity_management_sdk.configuration import Configuration
from cohesity_management_sdk.controllers.base_controller import BaseController
from cohesity_management_sdk.http.auth.auth_manag... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
a907b10a10fa739cebb6a2d9d28ef3ddc01bc2f9 | e770533cc7d8517134d6f9159f5f9e52747c7153 | /python/04selenium/selenium014.py | 88e3348deb7fa6521253c9474ea652722cafae13 | [] | no_license | code1990/bootPython | 5d878f7fac8aaa09a2b9e4a6d50a3c0f86c6dea5 | e5debd59b07a2c713f3e692aa4f44a9d2e5baeae | refs/heads/master | 2022-07-27T04:31:00.292692 | 2020-08-07T07:07:15 | 2020-08-07T07:07:23 | 206,805,170 | 0 | 0 | null | 2020-10-13T15:51:34 | 2019-09-06T13:56:39 | Python | UTF-8 | Python | false | false | 634 | py | # (十四)下拉框选择
from selenium import webdriver
from selenium.webdriver.support.select import Select
from time import sleep
driver = webdriver.Chrome(executable_path='C:\driver\chromedriver.exe')
driver.implicitly_wait(10)
driver.get('http://www.baidu.com')
# 鼠标悬停至“设置”链接
driver.find_element_by_link_text('设置').cl... | [
"s1332177151@sina.com"
] | s1332177151@sina.com |
a9f4fef1e4376bfc10ef1a75e7fe509d20b30fac | 1e0e610166b36e5c73e7ff82c4c0b8b1288990bf | /mail/mail02.py | dbc58ae4fa61f846897bc4421ee3a39ac60cfbbc | [] | no_license | PythonOpen/PyhonProjects | 4ef1e70a971b9ebd0eb6a09e63e22581ad302534 | ede93314009564c31aa586d2f89ed8b1e4751c1b | refs/heads/master | 2022-05-20T23:21:03.536846 | 2020-04-27T00:59:32 | 2020-04-27T00:59:32 | 250,142,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | from email.mime.text import MIMEText
import smtplib
# MIMEText三个主要参数
# 1.邮件内容
# 2.MIME子类型,在此案例我们用plain表示text类型
# 3.邮件编码格式
main_content="""
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>这是一封H... | [
"1083138609@qq.com"
] | 1083138609@qq.com |
5704a6e8200a1842c1da7c558ef26fbc91662ce3 | c071eb46184635818e8349ce9c2a78d6c6e460fc | /system/python_stubs/-745935208/_ast/Eq.py | 65f93d36a7d2abe45c41f6fe9cdfc0b757574bc7 | [] | no_license | sidbmw/PyCharm-Settings | a71bc594c83829a1522e215155686381b8ac5c6e | 083f9fe945ee5358346e5d86b17130d521d1b954 | refs/heads/master | 2020-04-05T14:24:03.216082 | 2018-12-28T02:29:29 | 2018-12-28T02:29:29 | 156,927,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | # encoding: utf-8
# module _ast
# from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\numpy\core\_dummy.cp37-win_amd64.pyd
# by generator 1.146
# no doc
# no imports
from .cmpop import cmpop
class Eq(cmpop):
# no doc
def __init__(self, *args, **kwargs): # real signature unknown
... | [
"siddharthnatamai@gmail.com"
] | siddharthnatamai@gmail.com |
95513d0222466b05775626ce21dbbcff1a0f2158 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R1/benchmark/startQiskit_noisy68.py | 2abe4bba4276c4ad5fc8fe827f963e48f6c2e57f | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | # qubit number=3
# total number=9
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collection... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
8d76957311696f5d8031a0f6af07845ca6839a63 | 6223dc2e5de7921696cb34fb62142fd4a4efe361 | /.metadata/.plugins/org.eclipse.core.resources/.history/0/10c54487a564001418adf2b9b78fa3c6 | 9c5974137244fcb2386c19b2e81426b669f02921 | [] | no_license | Mushirahmed/python_workspace | 5ef477b2688e8c25b1372f546752501ee53d93e5 | 46e2ed783b17450aba29e4e2df7b656522b2b03b | refs/heads/master | 2021-03-12T19:24:50.598982 | 2015-05-25T10:23:54 | 2015-05-25T10:23:54 | 24,671,376 | 0 | 1 | null | 2015-02-06T09:27:40 | 2014-10-01T08:40:33 | Python | UTF-8 | Python | false | false | 2,411 | #!/usr/bin/env python
#
# Copyright 2014 <+YOU OR YOUR COMPANY+>.
#
# This 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 3, or (at your option)
# any later version.
#
# This software is dis... | [
"imushir@gmail.com"
] | imushir@gmail.com | |
c79f5defc4669af504b01120e06bf5dba6eb51f4 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/community/way/lot_world/month/car_level/president_program.py | 09d22c760a6b771bc4aee758f82f7a48327f5762 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | ## Get supported languages for translation
The following code gets a list of language codes representing languages supported for translation, using the GetLanguagesForTranslate method.
1. Create a new Node.JS project in your favorite IDE.
2. Add the code provided below.
3. Replace the `key` value with an access key v... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
8e81c83eca27fafe4374430fd062b2cda78d9877 | ca045f22bc2660a24d44ecacdb41f7a646df3d19 | /src/exemplos/2_Operadores/9_exponenciacao.py | 4888c9e422a96a463e3625ae6a742f61a4d519ba | [] | no_license | gabriel1997castro/CIC-APC | db7e4114bfa0925e976b64638cac9e94845d8376 | 217f66ab04b0529886d2ef22ce1de15103440ba3 | refs/heads/master | 2020-12-25T11:32:06.276710 | 2016-01-27T02:57:24 | 2016-01-27T02:57:24 | 50,466,976 | 0 | 0 | null | 2016-01-26T23:32:49 | 2016-01-26T23:32:49 | null | UTF-8 | Python | false | false | 2,414 | py | # -*- coding: utf-8 -*-
# @file: 9_exponenciacao.py
# @author: Guilherme N. Ramos (gnramos@unb.br)
# @disciplina: Algoritmos e Programação de Computadores
#
# Exemplos de utilização do operador de exponenciação.
print 'Exponenciação:'
base = 0
expoente = 0
resultado = base ** expoente
print ' (%d)**(%d)... | [
"ramos@gnramos.com"
] | ramos@gnramos.com |
dc55ed13f4103e66e4e5edcf55079267753cb476 | ee4db47ccecd23559b3b6f3fce1822c9e5982a56 | /Build Chatbots/Tokenization.py | db3b63f6326833b215d84cf8c42b27248d31c56d | [] | no_license | meoclark/Data-Science-DropBox | d51e5da75569626affc89fdcca1975bed15422fd | 5f365cedc8d0a780abeb4e595cd0d90113a75d9d | refs/heads/master | 2022-10-30T08:43:22.502408 | 2020-06-16T19:45:05 | 2020-06-16T19:45:05 | 265,558,242 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | from nltk.tokenize import word_tokenize,sent_tokenize
ecg_text = 'An electrocardiogram is used to record the electrical conduction through a person\'s heart. The readings can be used to diagnose cardiac arrhythmias.'
tokenized_by_word = word_tokenize(ecg_text)
tokenized_by_sentence = sent_tokenize(ecg_text)
t... | [
"oluchukwuegbo@gmail.com"
] | oluchukwuegbo@gmail.com |
2d78ec6bc312d47fc94f57d817cd005695b414fe | 1b87d5f7cba7e068f7b2ea902bba494599d20a78 | /contrib/wydget/wydget/__init__.py | fe326d70a56e2ec6b127a655b859e95144cddc65 | [
"BSD-3-Clause"
] | permissive | jpaalasm/pyglet | 906d03fe53160885665beaed20314b5909903cc9 | bf1d1f209ca3e702fd4b6611377257f0e2767282 | refs/heads/master | 2021-01-25T03:27:08.941964 | 2014-01-25T17:50:57 | 2014-01-25T17:50:57 | 16,236,090 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,005 | py | '''wydget is a graphical user interface (GUI) toolkit for pyglet.
This module allows applications to create a user interface comprised of
widgets and attach event handling to those widgets.
GUIs are managed by the top-level GUI class::
from pyglet.window import Window
from wydget import GUI
window = Win... | [
"joonas.paalasmaa@gmail.com"
] | joonas.paalasmaa@gmail.com |
39ccfa1bfe82238f935dda6943bcfeabd47426bd | f200651e624d5e5cd2f2262359a5932216d2d443 | /demo-effects-html5-canvas/fire_controls/conv.py | 2431b8a237fa8e6630f04a1d1e18c70d1a4332e7 | [] | no_license | lwerdna/lwerdna.github.io | fbea38c62029884930ebfac70c9d455979c43fde | f80c7cb173359e13b2894d64fb735c0396278b7e | refs/heads/master | 2023-07-19T17:07:20.169897 | 2023-07-07T18:39:02 | 2023-07-07T18:39:02 | 38,472,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | palette = [
[0,0,0], [0,1,1], [0,4,5], [0,7,9], [0,8,11], [0,9,12], [15,6,8], [25,4,4],
[33,3,3], [40,2,2], [48,2,2], [55,1,1], [63,0,0], [63,0,0], [63,3,0], [63,7,0],
[63,10,0], [63,13,0], [63,16,0], [63,20,0], [63,23,0], [63,26,0], [63,29,0],
[63,33,0], [63,36,0], [63,39,0], [63,39,0], [63,40,0], [63,40,0], [63,4... | [
"andrew@vector35.com"
] | andrew@vector35.com |
142c92391f03f9036f5df23bd5d855af23e4e0ac | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /YXjx9G5uQ4CdYPuB4_20.py | f0a10dccbee452d6af543673b232e8f6d5b7d4b0 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | """
**Mubashir** needs your help to compare two lists.
First list `lst1` contains some numbers and second list `lst2` contains
**squared values of numbers given in the first list**.
Create a function which takes these two lists and returns `True` if all square
values are available, `False` otherwise.
lst1 = ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
37d5fa2a6f6b3325e6960b512dbb88914fa86b99 | b2ba670818623f8ab18162382f7394baed97b7cb | /test-data/AndroidSlicer/Mitzuli/DD/10.py | d2f993240a11bbf9562d22402b0c95323cee8d8d | [
"MIT"
] | permissive | hsumyatwin/ESDroid-artifact | 012c26c40537a79b255da033e7b36d78086b743a | bff082c4daeeed62ceda3d715c07643203a0b44b | refs/heads/main | 2023-04-11T19:17:33.711133 | 2022-09-30T13:40:23 | 2022-09-30T13:40:23 | 303,378,286 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | #start monkey test seedNo 0
import os;
from subprocess import Popen
from subprocess import PIPE
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage
from com.android.monkeyrunner.MonkeyDevice import takeSnapshot
from com.android.monkeyrunner.easy import EasyMonkeyDevice
from com.android.monkeyru... | [
"hsumyatwin@gmail.com"
] | hsumyatwin@gmail.com |
8f0dd18ff0e2846a87a5f2ca82b2163c648938b6 | 2479345dafbf0ac1118f34fbd3471871a3ac5c11 | /demo/libdemo/list_countries.py | 9292611d6422dfbe06ee3e2c9b7058f6e10a215d | [] | no_license | srikanthpragada/PYTHON_06_MAY_2021 | e2fc4d32a38f085658f87d35f31df65ee837a440 | f30a3c4541e0fc15d157446721b514f791602919 | refs/heads/master | 2023-06-02T23:13:53.786444 | 2021-06-16T03:00:38 | 2021-06-16T03:00:38 | 365,402,518 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import requests
resp = requests.get("https://restcountries.eu/rest/v2/all")
if resp.status_code != 200:
print('Sorry! Could not get details!')
exit(1)
countries = resp.json()
for c in countries:
print(f"{c['name']:50} - {c['capital']}") | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
bb363c5ddd3739e93a04900c1353f55c9f17c3ab | 923f9270a12be35fdd297d8f27e522c601e94eab | /src/decay/test/test_dc_nose.py | 00a9741044a433b8333c1da2f59dfc64f2536274 | [] | no_license | t-bltg/INF5620 | a06b6e06b6aba3bc35e933abd19c58cd78584c1f | d3e000462302839b49693cfe06a2f2df924c5027 | refs/heads/master | 2021-05-31T00:41:41.624838 | 2016-03-22T09:29:00 | 2016-03-22T09:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | import nose.tools as nt
import sys, os
sys.path.insert(0, os.pardir)
import dc_mod_unittest as dc_mod
import numpy as np
def exact_discrete_solution(n, I, a, theta, dt):
"""Return exact discrete solution of the theta scheme."""
dt = float(dt) # avoid integer division
factor = (1 - (1-theta)*a*dt)/(1 + the... | [
"hpl@simula.no"
] | hpl@simula.no |
34e0d339fa61eb2fba8a107ea109b6b0c56efc1e | 743d4545702532c967efee2c12015d91853b6b80 | /orders/migrations/0001_initial.py | 50adf5b21efe66d7cf544e46d52e15ce62c1faa2 | [] | no_license | SOAD-Group-36/server | 81a7ced2149174fe4d9c1644ee2afd78054d7d29 | 5a5a1e2cd4a361cff8fff008600d65d6dc8edaab | refs/heads/main | 2023-02-03T06:44:36.041311 | 2020-12-12T10:45:21 | 2020-12-12T10:45:21 | 305,055,627 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | # Generated by Django 3.1.2 on 2020-11-11 15:24
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),
('prod... | [
"masterashu@live.in"
] | masterashu@live.in |
8b57c9efa4983527dbd55908cbb5b5acbd4edbeb | 20e3ee6642d20578e48756963798acfe307ac6b5 | /Miscellaneous/Python XML Parser/Example.py | ef7e6dc6952d02a5cb41a0c433b4bb1594c14bce | [] | no_license | sirinenisaikiran/Python | 538f64276767435de3233b720f547aac0bf4d511 | bdfef0d1c04c7f3b9fc91a164b5fd1789828176c | refs/heads/master | 2023-01-31T00:53:01.650916 | 2021-06-06T10:39:20 | 2021-06-06T10:39:20 | 237,744,104 | 0 | 0 | null | 2023-01-26T03:38:47 | 2020-02-02T08:58:49 | Python | UTF-8 | Python | false | false | 455 | py | import xml.etree.ElementTree as ET
mytree = ET.parse('Sample.xml')
myroot = mytree.getroot()
# print(myroot)
# print(myroot.tag)
# print(myroot[0].tag)
# print(myroot[0].attrib)
#
# for x in myroot[0]:
# print(x.tag, x.attrib)
# for x in myroot[0]:
# print(x.text)
# for x in myroot[0]:
# print(x.tag, x.... | [
"saikiran.sirneni@gmail.com"
] | saikiran.sirneni@gmail.com |
a199a85117918b1c8fe6769bfdcbff3be408262e | 5186cc912502f9f32948c3810b5adc2cd0f015d8 | /soybean/reactor.py | b9e91523fe64d36b907749d9656b9625adbdbb63 | [
"Apache-2.0"
] | permissive | lcgong/soybean | c0ef4f1a88191a653bfd1f70881a2f1e470943fd | 43fd891113b05c79419d7c0850145c8284e51206 | refs/heads/main | 2023-02-27T08:47:47.198713 | 2021-02-03T04:00:52 | 2021-02-03T04:00:52 | 334,369,214 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,575 | py | import inspect
import asyncio
import logging
from rocketmq.client import PushConsumer, ConsumeStatus
from .utils import make_group_id, json_loads
from .event import OccupiedEvent
from .typing import HandlerType
from .exceptions import UnkownArgumentError
logger = logging.getLogger("soybean.reactor")
class Reactor:
... | [
"lcgong@gmail.com"
] | lcgong@gmail.com |
6c3f8ad91c11294558986e5612928dcb59119e90 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/281/81893/submittedfiles/testes.py | 9d5ad8d30fc63ed816896c55f3d77b98a8e9722a | [] | 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 | 157 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
x=int(input('Digite um número:'))
while x>0 and x<=13:
print('Ok')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
067a7abea5aa8ea89d7339cdb1ac2cad200418bb | 5fbf2adec8d7647b9aeefa51695aa3f13ee57810 | /server/load_backup_locally.py | 076c18cbae05647fcf9c789b079ff13e403dc7b7 | [] | no_license | angelacantfly/dancedeets-monorepo | 8bb6579f6f5d30e88c8d4c0e239c6c8fed678094 | 6b7a48d91d0737010acd9e08a89d99c2c982205a | refs/heads/master | 2021-01-20T09:14:22.613044 | 2017-08-26T21:48:14 | 2017-08-26T21:48:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | #!/usr/bin/python
"""
# App Engine import data from Datastore Backup to localhost
You can use this script to import large(ish) App Engine Datastore backups to your localohst dev server.
## Getting backup files
Follow instructions from Greg Bayer's awesome article to fetch the App Engine backups:
http://gbayer.com/bi... | [
"mlambert@gmail.com"
] | mlambert@gmail.com |
3a6f927241b180e157f7756d4833dee91440dfa9 | 7c8bd2e26fdabf1555e0150272ecf035f6c21bbd | /삼성기출/새로운 게임2.py | 3f7cacad987e8780f64a22bcecc01d30ec281fc1 | [] | no_license | hyeokjinson/algorithm | 44090c2895763a0c53d48ff4084a96bdfc77f953 | 46c04e0f583d4c6ec4f51a24f19a373b173b3d5c | refs/heads/master | 2021-07-21T10:18:43.918149 | 2021-03-27T12:27:56 | 2021-03-27T12:27:56 | 245,392,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | from _collections import deque
#체스판 말 갯수:k(1번~k번)
#이동방향:위,아래,왼쪽,오른쪽
#흰색인 경우 그 칸으로 이동,이동하는 칸에 말이 있으면 그곳에 스택 쌓기
#빨간색인 경우 이동하고 순서 reverse
#파란색인 경우 말의 이동방향을 역방향 한칸 이동 ,이동칸이 파란색인 경우 이동x
dx=[0,0,-1,1]
dy=[1,-1,0,0]
rev_direction={0:1,1:0,2:3,3:2}
def check():
for i in range(n):
for j in range(n):
if ... | [
"hjson817@gmail.com"
] | hjson817@gmail.com |
845db2f47f763ae4e09097e253320bf541736141 | 53eee7eb899cb518983008532257037fb89def13 | /343.integer-break.py | e226facec72a5754c30be689c04e5eec6a509a9c | [] | no_license | chenxu0602/LeetCode | 0deb3041a66cb15e12ed4585bbe0fefce5dc6b26 | 3dc5af2bc870fcc8f2142130fcd2b7cab8733151 | refs/heads/master | 2023-07-05T19:26:21.608123 | 2023-07-02T08:35:35 | 2023-07-02T08:35:35 | 233,351,978 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | #
# @lc app=leetcode id=343 lang=python3
#
# [343] Integer Break
#
# https://leetcode.com/problems/integer-break/description/
#
# algorithms
# Medium (50.19%)
# Likes: 1086
# Dislikes: 227
# Total Accepted: 110.4K
# Total Submissions: 219.2K
# Testcase Example: '2'
#
# Given a positive integer n, break it into t... | [
"chenxu@Chens-iMac.local"
] | chenxu@Chens-iMac.local |
1fad6fbeeeb619735e591e2a715bef13c07b1e3b | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/generated_clients/apis/gkehub/v1alpha1/gkehub_v1alpha1_client.py | 45d59b19c56748c72896a2a2c8b5b7fce532c530 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 20,475 | py | """Generated client library for gkehub version v1alpha1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolute_import
from apitools.base.py import base_api
from googlecloudsdk.generated_clients.apis.gkehub.v1alpha1 import gkehub_v1alpha1_messages as messages
class G... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
09c2e1bc21335613f5e925b52bd82f0b8f9d9309 | 741c5c70bf4a0adb05db6b0777c8d07e28eb9cf6 | /lib/python3.4/site-packages/IPython/core/profileapp.py | 2a412589ca0dcc1cdc77a98a58967352a4566bca | [] | no_license | andybp85/hyLittleSchemer | e686d2dc0f9067562367ea1173f275e8e2d2cb85 | af5cb6adf6a196cc346aa7d14d7f9509e084c414 | refs/heads/master | 2021-01-19T07:48:31.309949 | 2015-01-04T00:57:30 | 2015-01-04T00:57:30 | 28,496,304 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,967 | py | # encoding: utf-8
"""
An application for managing IPython profiles.
To be invoked as the `ipython profile` subcommand.
Authors:
* Min RK
"""
from __future__ import print_function
#-----------------------------------------------------------------------------
# Copyright (C) 2008 The IPython Development Team
#
# ... | [
"andy@youshallthrive.com"
] | andy@youshallthrive.com |
2c190be799017c52cc5a83639396080f5ef20ae9 | 82c54cab8e0c5b73e1fdb9615296613cc43929a0 | /authentication/forms.py | d3f7b622935250beef47f85ac1ec6f9ee9435405 | [] | no_license | creechcorbin/twitter_clone | e4146657bd13043544f846c48b34fe83e90e91da | bd075bd53fd9e5558cda85ade86ed9995f72118c | refs/heads/master | 2022-12-10T09:23:37.036180 | 2020-09-05T03:23:32 | 2020-09-05T03:23:32 | 292,993,852 | 0 | 0 | null | 2020-09-09T01:08:27 | 2020-09-05T03:22:43 | Python | UTF-8 | Python | false | false | 345 | py | from django import forms
class LoginForm(forms.Form):
username = forms.CharField(max_length=80)
password = forms.CharField(widget=forms.PasswordInput)
class SignupForm(forms.Form):
username = forms.CharField(max_length=80)
displayname = forms.CharField(max_length=80)
password = forms.CharField(wid... | [
"creechcorbin@gmail.com"
] | creechcorbin@gmail.com |
855c082aa1c28384a3ca3f6688c7cd52583b2287 | 47e93b916a6b55871997bfa95bb2f69676416b00 | /landerdb.py | 0486a4742f580c46200c8342d154cb857fb29434 | [] | no_license | Inqre/Melody | dcc88acb83b23a3c0786ab5b9529b1dcd71f6ece | 84f298e5446f53c5f3fededd9f2920552db74c87 | refs/heads/master | 2020-05-15T22:32:28.959905 | 2013-11-08T02:45:06 | 2013-11-08T02:45:06 | 14,127,017 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | import json
import os
__version__ = "1.0.0"
class Connect:
def __init__(self, db_file):
self.db = db_file
self.json_data = {}
# allows find to be called multiple times, without
# re-reading from disk unless a change has occured
self.stale = True
if not os.path.exi... | [
"max00355@gmail.com"
] | max00355@gmail.com |
8074d9f48b99a19a25b95da45d02787fb65ed44d | 771247a4498d50745c5fbff09e7446ea9213ab19 | /Py8/export_openweather.py | a80a7c5c48213f7a13b051fcbfb593a6a75dd25e | [] | no_license | ostrowsky/Parcer | 42697f9a98f42c8220675d540e8dc2a95855783e | f953b7cbb6b948df894950ee7ed804fcd6b8e811 | refs/heads/master | 2021-01-21T06:39:46.184872 | 2017-06-23T16:07:15 | 2017-06-23T16:07:15 | 91,581,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,845 | py | """ OpenWeatherMap (экспорт)
Сделать скрипт, экспортирующий данные из базы данных погоды,
созданной скриптом openweather.py. Экспорт происходит в формате CSV или JSON.
Скрипт запускается из командной строки и получает на входе:
export_openweather.py --csv filename [<город>]
export_openweather.py --json filen... | [
"ostrowskyi@gmail.com"
] | ostrowskyi@gmail.com |
7f12cf4f8c2a9dbbd0be88734b98d0c8b28eca87 | e9bc070d1d9257c4a213bc1f33ca6269bbc37b43 | /tests/roots/test-ext-autosummary/conf.py | f4d696cc912bb3108db71ca0fb841c3d904f7427 | [
"BSD-3-Clause",
"Python-2.0",
"LicenseRef-scancode-secret-labs-2011",
"MIT",
"BSD-2-Clause"
] | permissive | GoodRx/sphinx | 99b33454afa06cf6a66d080c3c4019cc7ddde2f0 | c310c73baffa4892cf35fd74918193824c86309a | refs/heads/1.6.x-py-type-xref | 2021-01-01T06:02:33.415993 | 2017-07-16T03:12:58 | 2017-07-16T03:12:58 | 97,339,105 | 1 | 1 | null | 2017-07-16T03:12:58 | 2017-07-15T19:57:45 | Python | UTF-8 | Python | false | false | 184 | py | import sys, os
sys.path.insert(0, os.path.abspath('.'))
extensions = ['sphinx.ext.autosummary']
autosummary_generate = True
# The suffix of source filenames.
source_suffix = '.rst'
| [
"i.tkomiya@gmail.com"
] | i.tkomiya@gmail.com |
c1b3876aae1a898188d4da189bd9db75e5afc8c6 | 41249d7d4ca9950b9c6fee89bf7e2c1929629767 | /results/lz_optimizations_20200507/script_lz_crab4freq_powell_bound10_constantFreqAndInitAmps_tf0-1.py | d14345a8c9437a041da7e650381b2b1114829de0 | [
"MIT"
] | permissive | lucainnocenti/ultrafast-critical-ground-state-preparation-2007.07381 | f739b3baad1d2aadda576303bb0bbe9d48ec204a | 29f80dcf914096555cee9bc2e18249a2c95d6a50 | refs/heads/master | 2022-11-22T00:44:09.998199 | 2020-07-21T08:35:28 | 2020-07-21T08:35:28 | 281,237,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | import os
import sys
import numpy as np
import pandas as pd
import logging
if '../../' not in sys.path:
sys.path.append('../../')
import src.optimization as optimization
import src.protocol_ansatz as protocol_ansatz
from src.utils import autonumber_filename, basic_logger_configuration
output_file_name = os.path.ba... | [
"lukeinnocenti@gmail.com"
] | lukeinnocenti@gmail.com |
ced0baa0e9192cab080e7e0c0c749c9c7e56e9a1 | 1da91735d1a4d19e62b2d19826d9a1e85d88d690 | /dxpy/dxpy/task/model/tests/test_task.py | 32e1f9139b28e9e0836aef2a1a5c31a6253ebbf0 | [] | no_license | Hong-Xiang/dxl | 94229e4c20f0c97dfe21f8563889c991330df9c3 | 29aed778d1c699cc57d09666a20b4ca60196392f | refs/heads/master | 2021-01-02T22:49:20.298893 | 2018-05-22T13:42:20 | 2018-05-22T13:42:20 | 99,401,725 | 1 | 1 | null | 2018-05-22T13:42:21 | 2017-08-05T05:34:35 | Python | UTF-8 | Python | false | false | 3,063 | py | import json
import unittest
from dxpy.task.model import task
from dxpy.time.timestamps import TaskStamp
from dxpy.time.utils import strp
class TestTask(unittest.TestCase):
def test_to_json(self):
t = task.Task(tid=10, desc='test', workdir='/tmp/test',
worker=task.Worker.MultiThreadi... | [
"hx.hongxiang@gmail.com"
] | hx.hongxiang@gmail.com |
9479f066756090388c2092129ef0059b3ebf32ea | cf14b6ee602bff94d3fc2d7e712b06458540eed7 | /gs105/gs105/settings.py | 422043aee64a923a3033927c1f8cb6ac0230c445 | [] | no_license | ManishShah120/Learning-Django | 8b0d7bfe7e7c13dcb71bb3d0dcdf3ebe7c36db27 | 8fe70723d18884e103359c745fb0de5498b8d594 | refs/heads/master | 2023-03-29T09:49:47.694123 | 2021-03-28T16:04:34 | 2021-03-28T16:04:34 | 328,925,596 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | """
Django settings for gs105 project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib i... | [
"mkshah141@gmail.com"
] | mkshah141@gmail.com |
eee180705f38d0e11b8a5778069d77230bafec5f | 481452cd3b904af7a42bbeb71190a59c29e4775b | /python_batch_4/class2/typecasting2.py | deb323944f44ee751f0fd3988dc54191fb1697f1 | [] | no_license | rahusriv/python_tutorial | b09b54044f9df86ac603634ac1dd8d4ea6705e4a | 7de9b62a8e1e8ca1df5f2679ebf17d655f6b1b8e | refs/heads/master | 2020-03-28T11:24:16.468977 | 2019-05-12T06:51:32 | 2019-05-12T06:51:32 | 148,209,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | a = "20.99"
b = "30.89"
c = int(float(a)) +int(float(b))
print(type(c))
print(c) | [
"rahusr@gmail.com"
] | rahusr@gmail.com |
aa6af7048c44cea9653dd669212be652afc07c82 | 960b3a17a4011264a001304e64bfb76d669b8ac5 | /mstrio/api/authentication.py | ee18f3ec2d1622d62b49c9697d82696d49d54468 | [
"Apache-2.0"
] | permissive | MicroStrategy/mstrio-py | 012d55df782a56dab3a32e0217b9cbfd0b59b8dd | c6cea33b15bcd876ded4de25138b3f5e5165cd6d | refs/heads/master | 2023-08-08T17:12:07.714614 | 2023-08-03T12:30:11 | 2023-08-03T12:30:11 | 138,627,591 | 84 | 60 | Apache-2.0 | 2023-07-31T06:43:33 | 2018-06-25T17:23:55 | Python | UTF-8 | Python | false | false | 5,218 | py | from mstrio.utils.error_handlers import ErrorHandler
@ErrorHandler(
err_msg='Authentication error. Check user credentials or REST API URL and try again'
)
def login(connection):
"""Authenticate a user and create an HTTP session on the web server where
the user's MicroStrategy sessions are stored.
Thi... | [
"noreply@github.com"
] | MicroStrategy.noreply@github.com |
2f62066c180ecaec7d3c36b4eb514313cea1f73a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03605/s666410011.py | ee1b3b217136d88dfc453fa50b5f4c38f78ab5b2 | [] | 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 | 60 | py | N=input()
if N.count("9"):
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ec9c0cd180f50fb23acae69744788f81a9bfa036 | 8ccf7e6a93256fd83fed2bb7bd4f8bbe13dc1f40 | /Assignment 3. Paxos/Simulation/Agents/Proposer.py | c35f8b2ea5e2ba44032b554a298ca176490310d9 | [
"MIT"
] | permissive | WailAbou/Distributed-Processing | 5e2b84edc86b6d709c2599d82434731c6fd64dd6 | 46a36f1fd51d6f8b35cc639eb8002d81d7e09f2b | refs/heads/main | 2023-05-28T05:52:39.790190 | 2021-06-14T00:57:08 | 2021-06-14T00:57:08 | 367,988,336 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | from Simulation.Agents import Agent
from Simulation.Message import Message, MessageTypes
class Proposer(Agent):
max_id = 0
def __init__(self, name, agent_id, value=None):
super().__init__(name, agent_id, value)
self.votes = 0
self.majority = False
self.suggested_value = N... | [
"abou.w@hotmail.com"
] | abou.w@hotmail.com |
b12c14f2d187174e8f714e4790ec36839780011f | ac5d55e43eb2f1fb8c47d5d2a68336eda181d222 | /Reservoir Sampling/382. Linked List Random Node.py | 535508fa3eecbcc13bfe833e95712b6200c347d5 | [] | no_license | tinkle1129/Leetcode_Solution | 7a68b86faa37a3a8019626e947d86582549374b3 | 1520e1e9bb0c428797a3e5234e5b328110472c20 | refs/heads/master | 2021-01-11T22:06:45.260616 | 2018-05-28T03:10:50 | 2018-05-28T03:10:50 | 78,925,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | # - * - coding:utf8 - * - -
###########################################
# Author: Tinkle
# E-mail: shutingnjupt@gmail.com
# Name: Linked List Random Node.py
# Creation Time: 2017/9/24
###########################################
'''
Given a singly linked list, return a random node's value from the linked list. Each node... | [
"496047829@qq.com"
] | 496047829@qq.com |
68e09501a51d712d45387f738b12c0239a752984 | b4777bf27a6d10d0e5b1c51351f9ad14a049b5e7 | /results_discrete_paradigm_acc.py | 1f08f50c522ed31784d9ff4e831821666ace9b7e | [] | no_license | bioelectric-interfaces/cfir | 1216ba1b62935f99f8821ccce2577be9cf71c6b8 | 6034b5216352e5d933405bccbe9a67b9e89c4735 | refs/heads/master | 2022-07-12T10:45:17.758669 | 2020-03-10T13:34:10 | 2020-03-10T13:34:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,356 | py | """
Figure 5: Discrete paradigm accuracy for one subject with median SNR
"""
import pandas as pd
import pylab as plt
import numpy as np
import seaborn as sns
from filters import CFIRBandEnvelopeDetector, RectEnvDetector
from utils import magnitude_spectrum
from constants import FS, DELAY_RANGE
from sklearn.metrics i... | [
"n.m.smetanin@gmail.com"
] | n.m.smetanin@gmail.com |
7aa41765cd6860e2540b6f799c4551cd82d47f48 | 34148545a20f0b9fe07860d1107e6aab2ec1f75d | /info_spider/Scrapy_History_Hanchao_V1_01/build/lib/Scrapy_History_Hanchao_V1_01/spiders/Zhuixue_01.py | 139bef56439c9928931b6c7045a6f1948b1c9a0b | [] | no_license | tangzhutao/chf | 9bb9fa9b6ad75f1b587364e1005922c5bdddb4ca | 4b249aee9689d3669306bbf020ad7fbb7e6b92bc | refs/heads/master | 2022-12-03T03:55:17.308231 | 2020-08-21T09:57:47 | 2020-08-21T09:57:47 | 288,969,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | # -*- coding: utf-8 -*-
import scrapy, time, re
from scrapy.utils import request
from Scrapy_History_Hanchao_V1_01.items import InfoItem
import requests
from urllib3 import encode_multipart_formdata
from Scrapy_History_Hanchao_V1_01.ApolloConfig import IMAGES_STORE, SPIDER_NAME, UPLOADURL
class Zhuixue01Spider(scrapy... | [
"18819492919@163.com"
] | 18819492919@163.com |
9f38297ffcb415afd27671f80d18b3c3ccc487db | cb57a9ea4622b94207d12ea90eab9dd5b13e9e29 | /lc/python/1768_merge_strings_alternately.py | 32222174bc34d1567b034641491b8b2e157d8c7a | [] | no_license | boknowswiki/mytraning | b59585e1e255a7a47c2b28bf2e591aef4af2f09a | 5e2f6ceacf5dec8260ce87e9a5f4e28e86ceba7a | refs/heads/master | 2023-08-16T03:28:51.881848 | 2023-08-10T04:28:54 | 2023-08-10T04:28:54 | 124,834,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | # string and two pointers
# time O(max(m,n))
# space O(1)
class Solution:
def mergeAlternately(self, word1: str, word2: str) -> str:
ret = []
n = len(word1)
m = len(word2)
if n == 0:
return word2
if m == 0:
return word1
i, j = 0, 0
id... | [
"noreply@github.com"
] | boknowswiki.noreply@github.com |
ca674d56b645b5721ff9210287a3026a3c86b84d | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2801/58758/256072.py | 829cc7621c561a24efea43b99bb9b2ba608d94f2 | [] | 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 | 237 | py | n = int(input())
nums = [int(x) for x in input().split()]
nums.sort()
flag = False
for i in range(0, len(nums)-2):
if nums[i] + nums[i+1] > nums[i+2]:
flag = True
break
if flag:
print('YES')
else:
print('NO')
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
754f3df17792c7911d0f110efed7a7832bb5de48 | f4b2d9a0de1f7a26a8fd5afe25446e62dfa0fdb5 | /Python/base_algorithm/base_sum.py | b3db43265b69011967ccd5ef53c5613268a1b43e | [] | no_license | Alexanderklau/LeetCode | e675425cca0b4e2e6f94d8c1ce6df92bbec32ac7 | 6090fa602ab29aef40d41661e473058eaaec490d | refs/heads/master | 2021-06-23T17:41:53.309882 | 2020-12-01T14:36:00 | 2020-12-01T14:36:00 | 148,267,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | # coding: utf-8
__author__ = "lau.wenbo"
"""
高斯解法
"""
def sum_of_n(n):
the_sum = 0
for i in range(1, n+1):
the_sum = the_sum + i
return the_sum
print(sum_of_n(100)) | [
"429095816@qq.com"
] | 429095816@qq.com |
234615d0dfa6ec1b4bb50bbc470a76d507001e80 | 58be8fc8996b98b624fb9784527b2dc588d4587c | /pybamm/models/submodels/active_material/stress_driven_active_material.py | 61fbe41ec0392883bec8138e4988b5b026f60706 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | gwhite09/PyBaMM | b9f7b6b06bb37b6819e306356f5b8e90df8affff | 033ad6384582a3e5d29ad48eeaa7fe92b98e2a29 | refs/heads/main | 2023-08-22T19:49:26.112089 | 2021-09-17T17:02:34 | 2021-09-17T17:02:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,401 | py | #
# Class for varying active material volume fraction, driven by stress
#
import pybamm
from .base_active_material import BaseModel
class StressDriven(BaseModel):
"""Submodel for varying active material volume fraction, driven by stress, from
[1]_ and [2]_.
Parameters
----------
param : paramete... | [
"valentinsulzer@hotmail.com"
] | valentinsulzer@hotmail.com |
f14308e3fd66781d5cbdd827da378221a727e027 | bccbb5244947574c63992dc812b5ef44519ec161 | /tests/test_command_runner.py | fcb536ca809e16f5103fd66573f5e2e7dd3eeea3 | [] | no_license | hal1932/pysvn | d4fab12dbb07838d947292146ca49e9a31119deb | a579744543765b574655377a2e1ada5be961e8d8 | refs/heads/master | 2020-03-14T06:35:46.835307 | 2018-05-01T16:17:10 | 2018-05-01T16:17:10 | 131,487,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | # coding: utf-8
from __future__ import print_function, unicode_literals
import unittest as ut
import xml.etree.ElementTree as et
from svn.command_runner import CommandRunner
class TestCommandRunner(ut.TestCase):
def setUp(self):
self.__runner = CommandRunner()
self.__runner.current_directory = '... | [
"yu.arai.19@gmail.com"
] | yu.arai.19@gmail.com |
89bfad9927cab9ec96b3795aa8887564a390caf1 | 6234d711a6352c694bb69946ff673e4829ab6916 | /feelings/groups/views/company.py | 91f38b17afdc2b90f2c6a890c1149c612963a773 | [
"MIT"
] | permissive | treehouse/livestream-django-feelings | c816beb4557d52d5aafb5f11a40f5e6a0c0f6ba5 | a246e456bb28f736cfb670486a1534e2d18efc78 | refs/heads/master | 2021-01-13T12:51:04.730505 | 2019-02-21T15:25:38 | 2019-02-21T15:25:38 | 78,469,589 | 32 | 24 | null | 2017-02-23T22:10:10 | 2017-01-09T21:14:02 | Python | UTF-8 | Python | false | false | 3,596 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import get_object_or_404
from django.urls import reverse, reverse_lazy
from django.views import generic
from braces.views import SetHeadlineMixin
from .. import forms
from .. import models
class Create(LoginRequiredMixin, SetHeadlineMix... | [
"kenneth@gigantuan.net"
] | kenneth@gigantuan.net |
e95fae2b71d041eff7090fe472700f65339ffa56 | 3b7474148c07df7f4755106a3d0ada9b2de5efdc | /training/c31_pattern_design/e04_callback.py | b608b4cea7865efac231c64f8fa6e7dd59efcde1 | [] | no_license | juancsosap/pythontraining | 7f67466846138f32d55361d64de81e74a946b484 | 1441d6fc9544042bc404d5c7efffd119fce33aa7 | refs/heads/master | 2021-08-26T05:37:15.851025 | 2021-08-11T22:35:23 | 2021-08-11T22:35:23 | 129,974,006 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | class Provider:
def get(self, path, cbf):
with open(path) as file:
text = file.read()
result = self.analyze(text)
cbf(result)
def word_count(self, text):
split_text = text.lower().split(' ')
words = len(set(split_text))
count = len(split_t... | [
"juan.c.sosa.p@gmail.com"
] | juan.c.sosa.p@gmail.com |
0457440b4e3f996aaa557313efda6c7f2d6e1a76 | 069ce71ee1ca85988ebf5bc179bcafbbd3d04f7f | /golib/views.py | 70f41659f6d03852008364558b13e70346ea68e7 | [] | no_license | 9gix/golib | 21a1376b553a83b743c68f418f82a488c9964c1a | fbcfe0a9c5e0523c7b2e85f46cb0d18a4ac85db5 | refs/heads/master | 2021-03-12T19:57:59.971214 | 2012-11-04T17:22:59 | 2012-11-04T17:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from django.shortcuts import redirect, render
from django.core.urlresolvers import reverse
def index(request):
if request.user.is_authenticated():
return redirect(reverse('catalog:book_list'))
return render(request, 'index.html', {})
| [
"yeo.eugene.oey@gmail.com"
] | yeo.eugene.oey@gmail.com |
1ee42e0fa0fd0e830473f4079c9058dd6869c849 | 7ab85ba79a6553659f0b324ecebb4bb39f8a8a1c | /shallow copy.py | 827e08006334256c38c0ceb955c5a8fd2ff5b596 | [] | no_license | subinmun1997/my_python | b75db77a035fa8f531d9872bf33a1818a002206a | 634acc948e7758f5d26084536c506e7da45cd53c | refs/heads/master | 2022-12-28T21:11:40.173378 | 2020-10-16T08:02:18 | 2020-10-16T08:02:18 | 292,875,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | r1=['John',('man','USA'),[175,23]]
r2=list(r1)
print(r1 is r2)
print(r1[0] is r2[0])
print(r1[1] is r2[1])
print(r1[2] is r2[2]) | [
"qzxy812@gmail.com"
] | qzxy812@gmail.com |
7f64617c1f9ffa09fcadfbe29ce329539eae983a | 0f074e5adef64fa16e88dc2499e76f08b4c33c02 | /matplotlib/ipython and pylab/03 改变线条颜色和粗细.py | 5536a6d7b75055db76aeaa13f86025196647c11b | [] | no_license | guozhenjiang/Python | 0ac39adaf72df0bfee51795fabcfd959a69b1862 | 44b07bd767f3f2a947331111ab920200ac2412c6 | refs/heads/master | 2021-05-19T16:54:40.725132 | 2020-11-19T16:26:26 | 2020-11-19T16:27:11 | 252,035,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | # 导入 matplotlib 的所有内容(nympy 可以用 np 这个名字来使用)
from pylab import *
# 创建一个 8 * 6 点(point)的图,并设置分辨率为 80
# figure(figsize=(8,6), dpi=80)
figure(figsize=(10,6), dpi=80)
# 创建一个新的 1 * 1 的子图,接下来的图样绘制在其中的第 1 块(也是唯一的一块)
subplot(1,1,1)
X = np.linspace(-np.pi, np.pi, 256,endpoint=True)
C,S = np.cos(X), np.sin(X)
# 绘制余弦曲线,使用蓝色的、连... | [
"guo_zhen_jiang@163.com"
] | guo_zhen_jiang@163.com |
6ff8cf46f9afbcf4558f4fc7c0f57921fcc8d9d4 | 68577bb693fe01cddce56da36a43702c6bdedc07 | /Programming/python/threads/events.001.py | a7ef176267b372f3242e604881eb1b4acfb8801b | [] | no_license | ceccopierangiolieugenio/scripts | 480ab9b94c135d47c4d7c916e35df537cfabbed3 | fe0eca7d76733e204c1c702e03b9ccc11ee421fd | refs/heads/master | 2023-03-31T16:57:37.064553 | 2023-03-26T13:21:36 | 2023-03-26T13:21:36 | 99,695,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | # Example from:
# https://www.bogotobogo.com/python/Multithread/python_multithreading_Event_Objects_between_Threads.php
import threading
import time
import logging
logging.basicConfig(level=logging.DEBUG,
format='(%(threadName)-9s) %(message)s',)
def wait_for_event(e):
logging.debug('wait_for... | [
"ceccopierangiolieugenio@googlemail.com"
] | ceccopierangiolieugenio@googlemail.com |
b4c0472ccadd94cd2d5b8635aa3af2ec2da7fb48 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/476/usersdata/321/110683/submittedfiles/Av2_Parte3.py | 871c02d88b4454cc7f87fe1b0a0f024a5aa1caa1 | [] | 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 | 339 | py | # -*- coding: utf-8 -*-
qa= int(input('Quantidade de elementos de a: '))
qb= int(input('Quantidade de elementos de b: '))
a= []
b= []
for i in range(qa):
a.append(int(input('Digite o valor%d de a: ' % i)))
for i in range(qb):
b.append(int(input('Digite o valor%d de b: ' % i)))
soma= 0
while a[i] == b[i]:
s... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9d617e8e56b480d3f2c9796faf890e935037a64c | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/network/v20180701/get_network_watcher.py | a1c1900c872cb4134a105e35685ba9cbea6c876c | [
"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 | 4,324 | 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... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
306efc4d66d57b80b9a10c625c04f08557d7f834 | 8adcfe7485ea04bc1f83cac7d92bb51b97582f64 | /ALGORITHM/210531/프로그래머스 타겟 넘버.py | c31258c8edf6e3e7fa3b78f33fb5b9e9aed6108b | [] | no_license | NoJeong/TIL | fdceb6efc5d2d56f8dd2e27271ea0faacfe336ae | c79c34b84f025aa40cd3a8e28fd0898bcb40b608 | refs/heads/master | 2023-06-24T22:18:50.665917 | 2021-07-23T06:21:21 | 2021-07-23T06:21:21 | 280,307,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | import sys
sys.stdin = open('프로그래머스 타겟 넘버.txt')
def solution(numbers, target):
answer = 0
def dfs(numbers, target, index):
nonlocal answer
if index < len(numbers):
numbers[index] *= 1
dfs(numbers, target, index + 1)
numbers[index] *= -1
dfs(num... | [
"op032@naver.com"
] | op032@naver.com |
8527a82984c2cd8a19d450dc69773a45da4c0b51 | 79bc9a420df5c706b2ae06f4b75bf2bd2ba9646e | /emission/net/ext_service/push/query/trip_metrics.py | bad51c6afb3acaf63183dd918f4250efd1da085d | [
"BSD-3-Clause"
] | permissive | Andrew-Tan/e-mission-server | 7022786a13b4be87be62cfc2cc6d82543d063e5d | 91d59bee86e63d803e401f10f4b6a2502effedda | refs/heads/master | 2021-01-16T18:25:17.860723 | 2017-11-21T19:24:40 | 2017-11-21T19:24:40 | 100,073,534 | 0 | 0 | BSD-3-Clause | 2018-05-05T18:26:36 | 2017-08-11T22:13:44 | Jupyter Notebook | UTF-8 | Python | false | false | 4,279 | py | # Input spec sample at
# emission/net/ext_service/push/sample.specs/trip_metrics.query.sample sample
# finds all users who have at least one day in Feb 2017 with no more than 10
# walk sections and a walk distance of at least 1km during the evening commute
# hours
# Input: query spec
# Output: list of uuids
#
import ... | [
"shankari@eecs.berkeley.edu"
] | shankari@eecs.berkeley.edu |
df7859b3968e2e07fe6d573c3c0175bb0d06485b | 72dbf8366cf17b6a81ab37e72af667726e3f2661 | /store/migrations/0016_auto_20201104_1719.py | 31c0e9e8bf2783c9b201a665dd614b048aa7b44d | [] | no_license | Rayhun/Django_E-Commerce_website | 3aef732ffa0a41509be95ced3c33b845233903a7 | 1a5f7e31f942914256e49ba7da1f7367a799f097 | refs/heads/main | 2023-05-23T18:18:27.875328 | 2021-04-30T19:29:06 | 2021-04-30T19:29:06 | 306,414,778 | 3 | 1 | null | 2021-04-30T19:28:58 | 2020-10-22T17:41:57 | CSS | UTF-8 | Python | false | false | 505 | py | # Generated by Django 3.1.1 on 2020-11-04 11:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0015_remove_product_product_name'),
]
operations = [
migrations.AlterField(
model_name='customer',
name='ge... | [
"rayhunkhan27@gmail.com"
] | rayhunkhan27@gmail.com |
936baa9a603ebaf11d6c5adc98fecc3cf562f6cc | 952abfc855d0fca89200f1e428aac9a87f1d3295 | /tf114/tf09_mv2.py | 6e8e7a3f054efe4bf5163d9aaf09c665b95a2f75 | [] | no_license | TaeYeon-kim-ai/STUDY_1.py | 7570b4510bf8d9791447efe3a97a9668a1cabe06 | e14392c706b7e51e40f1ac68555e26558e25b38f | refs/heads/master | 2023-06-03T09:04:13.498591 | 2021-06-21T17:10:47 | 2021-06-21T17:10:47 | 329,834,933 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | #과제
# 차원 형태 내용
#스칼라 1
#벡터 [1,2,3]
#행렬 [[1,2],[2,3]]
#텐서 [[[1,2],[1,2,3]]]
# x * W 두개의 사이즈가 맞아야함
# x = 5, 3
# W = 3, 1(2,3,4,되던 상관없음) + b와 더할 수 있는 shape가 동일해야함.
# (5, 3) x (3, 1) = (5, 1) #앞에 열과 뒤에 행만 맞으면 행렬 연산할 수 있음
# (3, 2) x (2, 3) = (3, 3)
# [실습] 만들... | [
"noreply@github.com"
] | TaeYeon-kim-ai.noreply@github.com |
d407e6efe97070be75014a8bc45c966906c9cd14 | e707164df1aa8edb5d276179538bd1eb1805f759 | /CODE/fedora_application/env/lib/python2.7/site-packages/fedmsg/config.py | bcb6258cc6c1c0570c5a144728cc39fb87d6c893 | [] | no_license | beckastar/cleaner_markov | af5816c14c94a8cb7924728179470e7db9ed2bc0 | a6de3fd87db77c0d80789cbce0ff409c222b4e67 | refs/heads/master | 2021-01-02T22:52:08.989862 | 2013-11-10T04:51:04 | 2013-11-10T04:51:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,936 | py | # This file is part of fedmsg.
# Copyright (C) 2012 Red Hat, Inc.
#
# fedmsg 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.1 of the License, or (at your option) any later version.
#... | [
"rebecca.robbins.et@gmail.com"
] | rebecca.robbins.et@gmail.com |
f58474a9aea0941e1addfa44edfbeac7a7c4e547 | 2c20f40a25c7e718e031db18901a6900527ea757 | /vedo/pyplot.py | c22cef53b499069a54ae9c2281be4877bf49d19b | [
"OFL-1.1",
"MIT",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | sariths/vtkPlotter | a09653c6aa862ff7932aef8ba417349f1b82288e | f5b84f9b3ef202353c85e0b18f2e2e1a5d72183c | refs/heads/master | 2021-12-11T02:51:47.300710 | 2021-11-10T10:42:50 | 2021-11-10T10:42:50 | 137,873,932 | 0 | 0 | MIT | 2018-07-09T13:09:21 | 2018-06-19T10:03:55 | Python | UTF-8 | Python | false | false | 98,743 | py | import vtk
import numpy as np
import vedo
import vedo.settings as settings
import vedo.utils as utils
import vedo.colors as colors
import vedo.shapes as shapes
import vedo.addons as addons
from vedo.assembly import Assembly
from vedo.mesh import Mesh, merge
from vedo.plotter import show # not used, but useful to import... | [
"marco.musy@gmail.com"
] | marco.musy@gmail.com |
75af37c7035fa42e49638ffc2f8b9d925f49ea7e | ee00ebe5e71c36b05fbff993b19e9723b963313f | /35_inserted_position.py | f5142c9a3ab2c24b65c81f2721f1dd7ad04a16e3 | [] | no_license | 26XINXIN/leetcode | f365560d93604a28abf399707b333f3c11f924ec | 78ed11f34fd03e9a188c9c6cb352e883016d05d9 | refs/heads/master | 2021-06-28T16:31:45.103879 | 2020-09-19T20:33:55 | 2020-09-19T20:33:55 | 144,975,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | class Solution:
def searchInsert(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
ans = self.binary_search(nums, 0, len(nums)-1, target)
if ans == len(nums)-1 and target > nums[-1]:
ans += 1
return ans
... | [
"yangxin.nlp@bytedance.com"
] | yangxin.nlp@bytedance.com |
0961a55413c0854c2148a4c91bfb17bbb9891d86 | 3122ac39f1ce0a882b48293a77195476299c2a3b | /clients/python-flask/generated/openapi_server/models/pipeline_run_node.py | f205f70d61ad88141b09f4ad9bdc2cfd5a55b15f | [
"MIT"
] | permissive | miao1007/swaggy-jenkins | 4e6fe28470eda2428cbc584dcd365a21caa606ef | af79438c120dd47702b50d51c42548b4db7fd109 | refs/heads/master | 2020-08-30T16:50:27.474383 | 2019-04-10T13:47:17 | 2019-04-10T13:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,765 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.pipeline_run_nodeedges import PipelineRunNodeedges # noqa: F401,E501
from openapi_server... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
4e4336b975c5ee46eb7645c1b114c235d4303c50 | 989f011a784015e1a33c41362ab4ec06e92b3339 | /examples/07_functions/func_args_unpacking.py | 1e837181f73877fce4b28831c45f757f1b3da290 | [] | no_license | yevgeniy-voloshin/pyneng-online-jun-jul-2017 | b0be9df7d379e24b654172c1bc3f5cc0bdbbcd2f | 050e43d7f582528189005c1b7c34970352e968f1 | refs/heads/master | 2021-01-21T16:22:27.347769 | 2017-05-19T17:35:16 | 2017-05-19T17:35:16 | 91,885,650 | 1 | 0 | null | 2017-05-20T11:46:28 | 2017-05-20T11:46:28 | null | UTF-8 | Python | false | false | 3,132 | py |
# Unpacking positional arguments
def config_interface(intf_name, ip_address, cidr_mask):
interface = 'interface %s'
no_shut = 'no shutdown'
ip_addr = 'ip address %s %s'
result = []
result.append(interface % intf_name)
result.append(no_shut)
mask_bits = int(cidr_mask.split('/')[-1])
bi... | [
"pyneng.course@gmail.com"
] | pyneng.course@gmail.com |
21ce8528825c4e522f40d39c4685443bcdbcdac4 | 76f4443972ba066e9a3239d96416b8e807800d8f | /tensorflow/contrib/seq2seq/python/ops/helper.py | 46d0563fe08b03a7eb96dfec092949761666d563 | [
"Apache-2.0"
] | permissive | ravyg/tensorflow | 34702f5c0003b602431471987fe50b5ffb6d1912 | 2a83490455f0f02ea05fc447551cacea1c1b8cb6 | refs/heads/master | 2021-01-17T11:46:47.552165 | 2017-02-23T22:21:57 | 2017-02-23T22:21:57 | 60,307,856 | 3 | 2 | null | 2016-08-28T21:03:23 | 2016-06-03T01:07:06 | C++ | UTF-8 | Python | false | false | 14,187 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
408cd967099fe900471e4103edf3f71c8f1f8cd8 | 12e04c219d6911d06a048c913f8d8d6c00dad857 | /chendian/api/blog/views.py | 5deab03ba38adced720c0e0764230d3bc891c9a2 | [
"MIT"
] | permissive | mozillazg/chendian-plus | 928e98beb77f351e08b25a5ba9671ad648dac4b5 | 893c62b4b855879006d4cb378faeb9d1c6635923 | refs/heads/master | 2023-09-04T09:58:58.112022 | 2017-04-04T09:44:28 | 2017-04-04T09:44:28 | 31,481,576 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.shortcuts import get_object_or_404
from rest_framework.views import APIView
from rest_framework.permissions import IsAdminUser
from rest_framework.response import Response
from rest_framew... | [
"opensource.mozillazg@gmail.com"
] | opensource.mozillazg@gmail.com |
ab2ef61c7be69927178e04d9011d650cc23a1a87 | 2322b5a1e6443715d14029ed09d9091d221e4569 | /tests/test_dfply_select.py | 718f55fd119c9ec68b7fdbd216d3fa859c7dd4e2 | [
"MIT"
] | permissive | zdelrosario/py_grama | 1e86454cb67dde055a332de023aab8a52eeb0d87 | d5edbcd3c8dc8705362eb36d437890962851da1d | refs/heads/master | 2023-09-05T01:44:57.707310 | 2023-08-29T12:51:56 | 2023-08-29T12:51:56 | 173,464,075 | 19 | 9 | MIT | 2023-08-16T20:14:08 | 2019-03-02T15:25:43 | Jupyter Notebook | UTF-8 | Python | false | false | 14,801 | py | import numpy as np
import pandas as pd
from scipy.stats import norm
import unittest
from context import grama as gr
from context import data
X = gr.Intention()
##==============================================================================
## select and drop test functions
##========================================... | [
"zdelrosario@outlook.com"
] | zdelrosario@outlook.com |
c3276098bbfeed6b97b1c4291af58b7939b17082 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /multiple_user_representations/models/task.py | 05df7200848d01a702e2184141f95464a2814410 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 10,488 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
cd7945760a4924d927021ded1d1b0d4d2a70b9a4 | 390565b36da4e69a08a69f1d59b7d58a3ffd2fdf | /python/baseline/reader.py | e0d40319da1df29dfc0b91e4cd315de3788011b3 | [
"Apache-2.0"
] | permissive | demoninpiano/baseline | 3a87afc831bbdef56f25652e2e90205dee33a290 | e3e541a241f673813cc4628de90411d1ecee5e3f | refs/heads/master | 2021-07-08T02:10:42.430721 | 2017-10-05T14:34:15 | 2017-10-05T14:34:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,106 | py | import baseline.data
import numpy as np
from collections import Counter
import re
import codecs
from baseline.utils import import_user_module, revlut
import os
def num_lines(filename):
lines = 0
with codecs.open(filename, encoding='utf-8', mode='r') as f:
for _ in f:
lines = lines + 1
... | [
"dpressel@gmail.com"
] | dpressel@gmail.com |
ddf15062b858f78fb39fed56808c8b1e276647cd | f4b3be2a3955c26b4e05ab162fa4909cf9a14f11 | /CRB/validators/subsystems/enforcements/enf088.py | c28e582eaead1d50d8b94f0b33352ef67a14a38f | [] | no_license | njovujsh/crbdjango | fd1f61403c1fbdac01b1bda5145faeb4b9ef9608 | fdf5cc6ca5920a596c5463187d29202719664144 | refs/heads/master | 2022-12-04T18:13:07.709963 | 2018-05-14T09:07:47 | 2018-05-14T09:07:47 | 133,333,767 | 0 | 0 | null | 2022-11-22T01:44:28 | 2018-05-14T09:04:17 | JavaScript | UTF-8 | Python | false | false | 599 | py | from validators.subsystems.enforcements import enf001
class ENF088(enf001.ENF001):
def __init__(self, mobject, field, priority, action):
super(ENF088, self).__init__(mobject, field, priority, action)
self.status = None
self.fcs = None
def validate_field(self, field... | [
"njovujsh@gmail.com"
] | njovujsh@gmail.com |
878d117d208c8bddc445d9193bd60d9962bc2d04 | ad553dd718a8df51dabc9ba636040da740db57cf | /.history/app_20181202205024.py | 2016dd936c4c5606bd2c690a9091adbc44772a0d | [] | no_license | NergisAktug/E-Commerce-PythonWithFlask-Sqlite3 | 8e67f12c28b11a7a30d13788f8dc991f80ac7696 | 69ff4433aa7ae52ef854d5e25472dbd67fd59106 | refs/heads/main | 2023-01-01T14:03:40.897592 | 2020-10-19T20:36:19 | 2020-10-19T20:36:19 | 300,379,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | """Flask Login Example and instagram fallowing find"""
from flask import Flask, url_for, render_template, request, redirect, session, escape
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.secret_key = 'any random string'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///kullanicilar.db'
db = SQ... | [
"nergis.aktug2014@gmail.com"
] | nergis.aktug2014@gmail.com |
c266c889f792a3b3629b97cb48f01a1e98e7ab09 | 4ca0cb74402be70c63ad8e1c67b529cd7770ba38 | /19_model-view_controller/mvc.py | f0b57f822676e41408bad59aeb0327aba2d02a44 | [] | no_license | alxfed/python-design-patterns | 06af6f8e47925bcafe39a117943dd8287a6fe567 | b1a1ffb02b6e81e44bc7f0491376f9121b325a09 | refs/heads/master | 2020-04-02T04:34:18.060976 | 2019-12-18T16:08:00 | 2019-12-18T16:08:00 | 154,022,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | """
mvc.py
"""
import sys
class GenericController(object):
def __init__(self):
self.model = GenericModel()
self.view = GenericView()
def handle(self, request):
data = self.model.get_data(request)
self.view.generate_response(data)
class GenericModel(object):
def __init__(... | [
"alxfed@gmail.com"
] | alxfed@gmail.com |
66379b12d4d5befc395446e0bd7e8fd9610fbfe9 | 7626a8371c7a847f93bdae5e1d6e03ee9667c3ba | /func/print_area_kz/venv/bin/sqlformat | 87ba197dbb67cb1b0c1fd9666d91f0b0353cc1f2 | [] | no_license | zzyzx4/sp | 52c815fd115b4605942baa73687838f64cd41864 | 90c7a90b3de27af674422e2c8892bad5ba7891e8 | refs/heads/master | 2020-05-23T21:20:28.166932 | 2019-07-19T11:56:49 | 2019-07-19T11:56:49 | 186,950,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/home/user/PycharmProjects/print_area_kz/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dastik0101@gmail.com"
] | dastik0101@gmail.com | |
7da11b2b6560f70a07cfc5ee79bacf3b82b37c85 | 926f23a55dbe360a67bcda9714e1d28a300501bc | /stylelens_search_vector/api_client.py | e401df529385b97e7649f581d5080a6fcf9ecbad | [] | no_license | bluehackmaster/stylelens-search-vector | 08dd24b38e410b40710a7cbeb2dd4a303c981669 | a45a089039dcfa0fbfbe77ac3c12b39088147303 | refs/heads/master | 2021-05-08T04:27:06.091937 | 2017-10-26T13:08:31 | 2017-10-26T13:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,215 | py | # coding: utf-8
"""
stylelens-search-vector
This is a API document for Vector search on bl-search-faiss\"
OpenAPI spec version: 0.0.1
Contact: bluehackmaster@bluehack.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import ... | [
"master@bluehack.net"
] | master@bluehack.net |
1c59053d7c6f0cc642b0dbe1ecc9f46b90c2c6f1 | 34745a8d54fa7e3d9e4237415eb52e507508ad79 | /Python_Advanced/05_Functions Advanced/Exercise/04_negative_vs_positive.py | db0c4a49d3f9878fa05166a33c9f802e169e1017 | [] | no_license | DilyanTsenkov/SoftUni-Software-Engineering | 50476af0dc88b267d72c56fa87eeb88d841164b2 | fe446e3a50a00bb2e48d71ab8f783e0a4a406094 | refs/heads/main | 2023-08-12T18:18:42.144210 | 2021-09-25T11:10:38 | 2021-09-25T11:10:38 | 317,235,419 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | def absolute(negative_sum):
return abs(negative_sum)
def compare_negative_positive_sum(negative_sum, positive_sum):
if positive_sum >= negative_sum:
return True
else:
return False
def negative_separator(numbers):
if numbers < 0:
return True
def positive_sepa... | [
"noreply@github.com"
] | DilyanTsenkov.noreply@github.com |
a370c978a47bc4b67c07d327141825fd9ce68d99 | b441503bcdb484d098885b19a989932b8d053a71 | /neural_sp/evaluators/wordpiece.py | aae95de11e128601df6e62d74b585a82e86bef85 | [
"Apache-2.0"
] | permissive | entn-at/neural_sp | a266594b357b175b0fea18253433e32adc62810c | 9dbbb4ab3985b825f8e9120a603a6caa141c8bdd | refs/heads/master | 2020-08-28T05:48:28.928667 | 2020-06-22T19:17:53 | 2020-06-22T19:17:53 | 217,611,439 | 0 | 0 | null | 2019-10-25T20:40:18 | 2019-10-25T20:40:18 | null | UTF-8 | Python | false | false | 7,250 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2018 Kyoto University (Hirofumi Inaguma)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""Evaluate the wordpiece-level model by WER."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_functio... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
f98a1584a105d194c9e6e6a5e93adcc623f4cfab | cb61ba31b27b232ebc8c802d7ca40c72bcdfe152 | /leetcode/931. Minimum Falling Path Sum/soln.py | 1e4b6c29b5e019be51d4b3abc9a345a86c121f90 | [
"Apache-2.0"
] | permissive | saisankargochhayat/algo_quest | c7c48187c76b5cd7c2ec3f0557432606e9096241 | a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc | refs/heads/master | 2021-07-04T15:21:33.606174 | 2021-02-07T23:42:43 | 2021-02-07T23:42:43 | 67,831,927 | 5 | 1 | Apache-2.0 | 2019-10-28T03:51:03 | 2016-09-09T20:51:29 | Python | UTF-8 | Python | false | false | 1,022 | py | # So we create a DP and start from the last low and start building up the the upper rows in the dp 2d array
# dp[i][j] represents the minimum path to reach that element with the given constraints.
class Solution:
def minFallingPathSum(self, A: List[List[int]]) -> int:
dp = [[0 for j in range(len(A[0]))] fo... | [
"saisankargochhayat@gmail.com"
] | saisankargochhayat@gmail.com |
b96f2c76b38323327b3fd2cd6fe341d4e3148b74 | ec4ce2cc5e08e032f2bdb7d8e6ba616e80e6f5f7 | /chapter11_test_code/test_cities.py | f669296324136f72db551ae3d88cecb53a02dda6 | [] | no_license | AiZhanghan/python-crash-course-a-hands-on-project-based-introduction-to-programming | 8fc54ef69636c88985df00b546bc49c4a2378e79 | 9d8c9fde7d6ab9fe664fa718e1516d7442eafd00 | refs/heads/master | 2020-09-28T18:28:56.558413 | 2019-12-12T11:05:43 | 2019-12-12T11:05:43 | 226,835,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import unittest
from city_functions import get_formated_city_name
class CityTestCase(unittest.TestCase):
'''测试city_functions.py'''
def test_city_country(self):
'''能够正确地处理像Santiago, Chile这样的城市吗?'''
formetted_city_name = get_formated_city_name('santiago', 'chile')
self.assertEqual(forme... | [
"35103759+AiZhanghan@users.noreply.github.com"
] | 35103759+AiZhanghan@users.noreply.github.com |
dcc2d399258f579438cf9daa73f67a2279579a6f | 731a33f8bb92bad31ab233416d8ef6eb3a9f3fe0 | /minlplib_instances/smallinvSNPr1b050-055.py | b776f5ed09f35dcb7ccc13d0d18939f16d47a7d3 | [] | no_license | ChristophNeumann/IPCP | d34c7ec3730a5d0dcf3ec14f023d4b90536c1e31 | 6e3d14cc9ed43f3c4f6c070ebbce21da5a059cb7 | refs/heads/main | 2023-02-22T09:54:39.412086 | 2021-01-27T17:30:50 | 2021-01-27T17:30:50 | 319,694,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167,364 | py | # MINLP written by GAMS Convert at 02/15/18 11:44:28
#
# Equation counts
# Total E G L N X C B
# 4 0 2 2 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"christoph.neumann@kit.edu"
] | christoph.neumann@kit.edu |
8d6d28f03e7dba2a24a1999e76fb628096a9fb19 | 486173e490129cec10b15c36903af3d13cfb0950 | /FP-growth/fpGrowthTest.py | 96ee73f6f17be8d5471447071182a3d3d5beda46 | [] | no_license | Hsingmin/MLinAction_on_Python2 | ce3592297cbddf4e7a5c6525b6491b1b37b87ca5 | ac5c5f8a167d3b4a5f7c7ee9e3409136db423ac0 | refs/heads/master | 2021-07-25T10:06:02.933608 | 2017-11-04T08:55:08 | 2017-11-04T08:55:08 | 103,387,222 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py |
# fpGrowthTest.py
import fpGrowth
from numpy import *
'''
# FP-Tree node create test
rootNode = fpGrowth.treeNode('pyramid', 9, None)
rootNode.children['eye'] = fpGrowth.treeNode('eye', 13, None)
rootNode.children['phoenix'] = fpGrowth.treeNode('phoenix', 3, None)
rootNode.disp()
'''
simData =... | [
"alfred_bit@sina.cn"
] | alfred_bit@sina.cn |
41706151fef1d1cd9a44b39dd33883328f4d028f | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/regressiontests/queryset_pickle/__init__.py | 65c7eab6fc54959a02377165342999a088249224 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/queryset_pickle/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
c0814e43f0e2e81f7a2ea1755c40e656f739b742 | 38c10c01007624cd2056884f25e0d6ab85442194 | /third_party/skia/gyp/tools.gyp | a4f8cfd62ab9ccea85060ad32dc63ec9fff9cb5e | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-public-domain"
] | 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 | 19,668 | gyp | # Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# GYP file to build various tools.
#
# To build on Linux:
# ./gyp_skia tools.gyp && make tools
#
{
'includes': [
'apptype_console.gypi',
],
'targets': [
{
# Build... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
f9198d9eb339474258efaac2ded39e65e899ec24 | b8e249f2bf0aa175899090128f7a77fb34aa2c1b | /apps/users/migrations/0002_auto_20190523_2209.py | ad3a4736f1152245525812b35261e78189162d03 | [] | no_license | dojo-ninja-gold/ng-server | 80d8568fa960e882df9e1a6fff7e020e93ff2990 | fcd69744a2ebf99f0c24b3136ba7a2d8a4c683e1 | refs/heads/master | 2023-05-03T21:05:54.026847 | 2019-05-24T22:29:51 | 2019-05-24T22:29:51 | 187,918,381 | 0 | 0 | null | 2023-04-21T20:32:36 | 2019-05-21T21:49:40 | Python | UTF-8 | Python | false | false | 830 | py | # Generated by Django 2.2.1 on 2019-05-23 22:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='first_name',
fie... | [
"wes@tao.team"
] | wes@tao.team |
1d35b0c6b7a5c4252763588c948c81d9b77ad15b | b458b2cf3011a73def66605b296144049909cd48 | /tests/my_trade.py | e749520a049723eff15fa850405a79187d1d6f1f | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | shihliu/python-binance | 8c5607a78a4794f9b42fe90092a149f4050d4710 | c44f8a315df32c8b5d54750c27703060ec9060aa | refs/heads/master | 2021-08-22T02:47:10.423523 | 2017-11-29T04:34:30 | 2017-11-29T04:34:30 | 111,865,384 | 0 | 0 | null | 2017-11-24T01:57:33 | 2017-11-24T01:57:33 | null | UTF-8 | Python | false | false | 1,044 | py | from binance.client import Client
import json
client = Client('yq67cDjrCxGl6eeKMyTeiK1zkeArFpu8v4uB4b6TWDQdgjDlH0KjmXfHBZ1NjvJj', 'DxE7Wugo75EK8mLmybY76dbZW6tROpyNjBRd9NHsEOXqBaKq6Awgul4390xwRUdc')
my_trade = client.get_my_trades(symbol='QSPETH')
all_buy_price = all_buy_amount= 0.0
all_sell_price = all_sell_amount= 0... | [
"root@dhcp-129-210.nay.redhat.com"
] | root@dhcp-129-210.nay.redhat.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.