blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67ce75da46901fca6d09ae5128c0e8d01e1293b1 | d9ddac1fae0f82e3424867ed2a0beeb7b9443715 | /Python/Django/interests/apps/interests/urls.py | 2aa1d3794dc42652fdcedb72d35df6289be79ba0 | [] | no_license | scottkwon/Projects | 39f0665dc00bd33ee41fc41db7e3771c82141be5 | 70c4efad7adb28605d86220dc728d3769329d5e9 | refs/heads/master | 2021-01-19T22:40:16.589030 | 2018-01-30T04:03:39 | 2018-01-30T04:03:39 | 88,835,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^add/$', views.add, name='add'),
url(r'^users/$', views.users, name='users'),
url(r'^show/(?P<id>\d+)$', views.show, name='show'),
url(r'^delete/(?P<id>\d+)$', views.delete, name='delet... | [
"scottkwon@gmail.com"
] | scottkwon@gmail.com |
41166e45f00d9796524bb6f197327d9909dc4cf4 | 40e327c3782d6dd8dc04a566da30e831ec58a3b6 | /Project2-WebScraping/stefanheinz/scraper/swr3scraper.py | 398d4e5cb0bc55e6eb91d1e10a6f6ed203a1796f | [] | no_license | liyuhaojohn/bootcamp008_project | 86f20f384f0d2cabc73eb1e8a00d74c0e03d9a98 | 014e183b37d2fca0b0bc963b8634b089432f03b2 | refs/heads/master | 2020-03-17T16:48:14.924383 | 2017-04-08T17:17:35 | 2017-04-08T17:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | # Get data from SWR3 playlists from begDate to endDate
import datetime
import bs4
import requests
import csv
import os
import time
os.chdir(r'E:\Projects\02 Web Scraping Project')
wdir = os.getcwd()
def getSWR3Playlist(plURL):
res = requests.get(plURL)
soup = bs4.BeautifulSoup(res.text, 'html.parser')
re... | [
"hellozeyu@gmail.com"
] | hellozeyu@gmail.com |
290f289557e2720080780f85d6274768f2426d07 | 9047328d03d38c0833193987a9409600200d83bc | /django/zqxt_study/blog_admin/blog_admin/wsgi.py | e83c2b554b171c03ecf5255f22728c7c48b5cf3a | [] | no_license | teddyxiong53/Python | 06d444f89d14ae5071248d93ea973fd1d9ad2795 | 629775569cb94968bb8a4e34e31871fcc1bd2969 | refs/heads/master | 2020-04-05T23:33:13.155112 | 2019-10-24T09:37:04 | 2019-10-24T09:37:04 | 68,708,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for blog_admin project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "blog_admin.settings")
from django.... | [
"1073167306@qq.com"
] | 1073167306@qq.com |
e1525bdf00aff3b25747a148d5a3914c81bc0f7d | affe6c648b9ce2434919ccbd88d36d969a619f94 | /bin/csscombine | 88d78cca6dc03511ccb686fdf0ae341ffff605c8 | [
"BSD-3-Clause"
] | permissive | thiagocalheiros/weasyprint_for_awslambda | 578c4e8c10aef40f82e36f0a9de5ec31032335f8 | 4080c49a3fb5fc94fca75bf38e8b10ee1acfb7ce | refs/heads/master | 2020-03-18T18:19:08.855086 | 2018-05-31T19:32:40 | 2018-05-31T19:32:40 | 135,084,321 | 0 | 0 | null | 2018-05-27T21:52:46 | 2018-05-27T21:52:46 | null | UTF-8 | Python | false | false | 390 | #!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'cssutils==1.0.2','console_scripts','csscombine'
__requires__ = 'cssutils==1.0.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_en... | [
"thiagovccalheiros@gmail.com"
] | thiagovccalheiros@gmail.com | |
cba8720e1fabd7e11b410b16d32145ab7d9b1964 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/309/98580/submittedfiles/jogoDaVelha_BIB.py | 10a39df138672040d0ce2ee3dca95fe81afb2d0d | [] | 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 | 1,900 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from random import *
# autenticação do simbolo para a jogada humano
def solicitaSimboloDoHumano():
# nome=input('Qual seu nome(ou apelido)? ')
simbH= input("Qual o simbolo que você deseja utilizar no jogo? ")
while simbH!="X" and simbH!="x" and simbH!="... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
06c4cc0252417c8b3d0bfaa74ff3c0c55583794d | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/network/v20201101/get_virtual_router_peering.py | 21dcf5b01159ff014ea90cb15467f45d4991ea73 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 5,002 | 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, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | morrell.noreply@github.com |
d6bb893f91cddb84293cd4c39ce58a4b90061dbc | b885eaf4df374d41c5a790e7635726a4a45413ca | /LeetCode/Session3/RotateImage.py | 0708f580f7dc5ef5488d7901abcad13eb8494d67 | [
"MIT"
] | permissive | shobhitmishra/CodingProblems | 2a5de0850478c3c2889ddac40c4ed73e652cf65f | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | refs/heads/master | 2021-01-17T23:22:42.442018 | 2020-04-17T18:25:24 | 2020-04-17T18:25:24 | 84,218,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | from typing import List
class Solution:
def rotate(self, matrix: List[List[int]]) -> None:
# reverse columns
size = len(matrix)
for col in range(size):
for row in range(size//2):
matrix[row][col], matrix[~row][col] = matrix[~row][col], matrix[row][col]
... | [
"shmishra@microsoft.com"
] | shmishra@microsoft.com |
0ebfeec5bd72ecdb02479219a45f01ca14a39bbd | 8004cc465359aecb7a1890617646ea5b49f11d9a | /augment.py | 258f43a6571daf8bc99a85d7fef3150a72b5cd53 | [] | no_license | jhyang12345/facial-recognition | 661e34d874986943f50b5b9691d186760957b594 | 2f2ba5cfcbd58efbc9de5b9f0bafc7bc640d9c26 | refs/heads/master | 2020-04-06T09:52:20.932793 | 2018-12-13T08:15:25 | 2018-12-13T08:15:25 | 157,360,076 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import sys, os
from optparse import OptionParser
from argparse import ArgumentParser
from data_prep.augment_dataset import augment_directory, augment_image
def main():
parser = OptionParser()
parser.add_option("-p", "--path", dest="path")
parser.add_option("-d", "--directory", dest="directory")
options... | [
"jhyang12345@naver.com"
] | jhyang12345@naver.com |
d9cd090aba43727b5d4a2a2c6beb061d532b6e9b | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/ugc/_admin_update_channel.py | 0fb19361dcc2066ace446944c50bf92df54f621a | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,761 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Ugc Service (2.11.3)
# pylint: disable=duplicate-code
# pyli... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
dd6e2bd782ba274556a14f714773a1c5de1caf2d | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.3/programming/libs/obexftp/actions.py | 1a4e0fb18ba620d8415b65181a7f2ee6631ee00f | [] | 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 | 554 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 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 perlmodules
from pisi.actionsapi import pythonmodules
from pisi.ac... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
50f17ae8c0236fa1215efdfb3e9c56184868c6b6 | b3c23b94c534a575e35e8c02747a54627b918564 | /venv/Scripts/pip3.6-script.py | d2d53d6377ea7345e7ad3f725d283a70f1ffae07 | [] | no_license | 1464420980/pythonLCDemo | d4eb2cb5aa1693fe4d4201da697ed11300e78836 | 3aafc9b28351071a80a021364319e6855eb9cb7d | refs/heads/master | 2020-05-23T14:09:51.691684 | 2019-05-13T07:48:45 | 2019-05-13T07:48:45 | 186,796,586 | 1 | 0 | null | 2019-05-15T09:42:33 | 2019-05-15T09:42:33 | null | UTF-8 | Python | false | false | 426 | py | #!E:\pycharm-professional-2018.1.3\Code\pythonLCDemo\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.3','console_scripts','pip3.6'
__requires__ = 'pip==9.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"ahlc@sina.cn"
] | ahlc@sina.cn |
ee8254f1ed6a47885d33206006c9a714b6edc76a | 70e37c1bb153fd8a598160a2ca862faf1caa43b4 | /tags/20061202/TestScripts/putTaskNotations.py | 76847f4026cc2066deab049d0c439e9d22092753 | [] | no_license | BGCX261/zogi-svn-to-git | 2d27d7536eeff1ac2d3c40b93b00c460e1a59aa6 | ef5878a8264291f621568ee7bf78246543248db9 | refs/heads/master | 2020-12-24T15:31:50.126473 | 2015-08-25T15:29:41 | 2015-08-25T15:29:41 | 41,591,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
import xmlrpclib
taskId = 10930
server = xmlrpclib.Server('http://awilliam:fred@localhost/zidestore/so/awilliam/')
#print server.zogi.putTaskNotation(taskId, "accept", "");
#print server.zogi.putTaskNotation(taskId, "comment", "THIS IS A COMMENT!!!");
#print server.zogi.putTaskNotation(taskId, "do... | [
"you@example.com"
] | you@example.com |
31ab6171b72eaffee858d051cb697802458c486f | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/ABC/245_c.py | 78e8d5d4123462fa782e1cbea09568768de197e1 | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,410 | py |
import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
import sys
input = sys.stdin.readline
from pprint import pprint
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
import math
INF = 1 <<... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
25033cb86d836f8e5901c8fc72492609c0c3753c | abba6daeed793b496f067157ff808c26d22210cb | /rmsd_to_refs/get_rmsds_to_xtals.py | 8015723c40cbdc04ff87f22af569060644aa8b2e | [] | no_license | RedesignScience/foldingathome_analysis | de9df0c54d9e0c2e6a6c7fbb6ca98ff1a76bbc36 | 18ae2355062cc838ca71e7464e74400daf266630 | refs/heads/main | 2023-04-28T21:16:31.177889 | 2021-05-28T17:00:09 | 2021-05-28T17:00:09 | 371,766,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from glob import glob
import mdtraj as md
import numpy as np
import multiprocessing
n_jobs = 32
superpose_string = 'protein and (resid < 31 or resid > 48) and name CA'
rmsd_string = 'resid >= 31 and resid <= 48 and not element H'
pdbs = sorted(glob('/home/rafal.wiewiora/repos/BCL_SETUP/output/*/solvated.pdb'))
refs =... | [
"rafwiewiora@gmail.com"
] | rafwiewiora@gmail.com |
9626714794be6208da3519291286322ad7ae5a09 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_pragma391.py | dde220b73704a02a941c0c909df462316bf415fb | [
"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,640 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=16
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
class Opty(cirq.PointOptimizer):
def optimization_at(
... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
d6c1c2db5389f42c89c17b8c15a969795d1cef26 | 6994917b9d22e9e15e578a0e5c75dcf4ce3cb022 | /formularios/migrations/0006_auto_20200629_1251.py | a34880c05750ca254eba1fcb654c67bddb63bc2e | [] | no_license | linikerunk/rh-ticket | 59ad6411a3d08c90c2704b37ba9bba67ea7f7754 | bd8edd3eb1ea6cfe04fee03a4f41049a84c1e14a | refs/heads/master | 2023-01-06T21:25:06.851369 | 2020-10-29T20:32:53 | 2020-10-29T20:32:53 | 250,346,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # Generated by Django 2.2.9 on 2020-06-29 15:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('formularios', '0005_justificativaausencia_funcionario'),
]
operations = [
migrations.AlterModelOptions(
name='justificativaausencia',
... | [
"linikerenem@gmail.com"
] | linikerenem@gmail.com |
470129e1555047aa797509957d381ba9529ca7be | aedd2d90054fec1c981426c4c5b6ae818b655413 | /Proyecto Final/Sangre/lib/python3.7/site-packages/sphinx/builders/devhelp.py | dda7c411fa6ce2c9611ddc8ba401d25f3cf24e5d | [
"MIT"
] | permissive | rogeralexei/Programacion-III | 6696273fd6d7a5466c86c74254ba3ec923bd6f2f | 56ac8aaeae9399925a596c86bdca46bb73ccb717 | refs/heads/master | 2022-10-04T23:48:01.254206 | 2020-06-07T04:03:08 | 2020-06-07T04:03:08 | 250,158,965 | 0 | 2 | MIT | 2020-04-22T05:20:22 | 2020-03-26T04:13:46 | Python | UTF-8 | Python | false | false | 1,028 | py | """
sphinx.builders.devhelp
~~~~~~~~~~~~~~~~~~~~~~~
Build HTML documentation and Devhelp_ support files.
.. _Devhelp: https://wiki.gnome.org/Apps/Devhelp
:copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import warnings
from typing i... | [
"roger.urrutia@meduca.gob.pa"
] | roger.urrutia@meduca.gob.pa |
68f76b63f11c6ae35b012da79e10208588846249 | deff2922412bd0376ef38a34a895990d106b7b66 | /userprofile/migrations/0001_initial.py | e6f2f07a37463d35ad4d226976703d1b2d78c5e3 | [
"Apache-2.0"
] | permissive | dpd-pub/GreaterWMS | 56ba10750e8724bc7b39de077e4b4bc43340a94a | 9eabb1b9b0f5376dcccd89ed86dd76995955a8ec | refs/heads/master | 2023-02-27T18:05:29.384931 | 2021-02-10T02:19:33 | 2021-02-10T02:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | # Generated by Django 3.1.4 on 2021-01-17 15:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Users',
fields=[
('id', models.AutoField(au... | [
"singosgu@gmail.com"
] | singosgu@gmail.com |
3a8a8a495e4b133f3711230d125342aa00696f60 | 4c7ea6295a487ec18543e82f66e08a3a2a2fd124 | /apps/utils/logs_out_path_of_server.py | 4b98560c6d6b07e74dbe14dddcd1c8153d2de160 | [] | no_license | robot-nan/GameLogServer | 16217689d88ac5353a61881b03adb1b372cc3e16 | ff2afd6d29e9dce6157a66ff62b4d1ea97d04184 | refs/heads/master | 2021-11-07T21:27:30.494271 | 2015-09-23T15:01:55 | 2015-09-23T15:01:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | #coding:utf-8
import datetime
from apps.game_manager.mysql import server_list
"""
注:server 与 parse的此文件不一样 要各自修改!!
注:server 与 parse的此文件不一样 要各自修改!!
注:server 与 parse的此文件不一样 要各自修改!!
"""
def get_server_id_lst():
"""
获取游戏服务器id列表 [10001,30001,10003,10004,10005,10006]
"""
all_server_list = ser... | [
"a.robot.n@gmail.com"
] | a.robot.n@gmail.com |
11beb115d090974ac04e097c016a74a08c1adce1 | 4aae2df13bfd53a8b16aa5f941f2cc8b8ac144b7 | /torch/distributed/algorithms/ddp_comm_hooks/default_hooks.py | ca073d4bd0c8aa96679c9e3b17a1a2c65945b97f | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | computerguy2030/pytorch-rocm-amd | e9f2718c470b505325d396baf6513e71bcf0a7ca | 38da53d721fcb335dedb1b52f14fd89718e90bef | refs/heads/master | 2023-04-08T00:55:01.542663 | 2021-04-16T11:33:39 | 2021-04-16T11:33:39 | 334,288,140 | 3 | 0 | NOASSERTION | 2021-04-16T11:27:55 | 2021-01-29T23:40:06 | C++ | UTF-8 | Python | false | false | 4,076 | py | from typing import Any, Callable
import torch
import torch.distributed as dist
def _allreduce_fut(
process_group: dist.ProcessGroup, tensor: torch.Tensor
) -> torch.futures.Future:
group_to_use = process_group if process_group is not None else dist.group.WORLD
"Averages the input gradient tensor by allr... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
bd1a0420afd4a5641ebb8e0bbe1e8f249826ad14 | 32b91e06c24d0e10962e83856763e136a5a77b9a | /tests/test_api_request.py | cdbe131a7293cb78f841ed99c3d0f22e25a01bff | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | driscollco/python-idex | b04dd2d5114b2df6733ff490fbd778f953d5dcb2 | 24cee970172491a7f7d5f52558727a77384cce26 | refs/heads/master | 2020-07-25T16:46:18.432468 | 2019-08-14T11:51:54 | 2019-08-14T11:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | #!/usr/bin/env python
# coding=utf-8
from idex.client import Client
from idex.exceptions import IdexAPIException, IdexRequestException
import pytest
import requests_mock
api_key = 'api:jVXLd5h1bEYcKgZbQru2k'
client = Client(api_key)
def test_invalid_json():
"""Test Invalid response Exception"""
with pytes... | [
"hello@sammchardy.net"
] | hello@sammchardy.net |
a6c4f558421e5a551c38e0e8be74bb9c32adbadc | c078b0dc1b2527fd233cee317402417319bbed69 | /scripts/pkgcmp | bddd658667fc65133b0677af0ac3a50a57b6c29d | [
"Apache-2.0"
] | permissive | SS-RD/pkgcmp | 3e76964693295fac5c06edc5f46371dcfd975216 | 330efddd6b54a04196add8a79df3c09bfc4ead0a | refs/heads/master | 2021-01-15T09:32:57.320324 | 2015-04-22T19:32:24 | 2015-04-22T19:32:24 | 34,299,843 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | #!/usr/bin/env python3
import pkgcmp.cli
def main():
cli = pkgcmp.cli.PkgCmp()
cli.run()
if __name__ == '__main__':
main()
| [
"thatch45@gmail.com"
] | thatch45@gmail.com | |
738b9e0d8c60f379a7ab9b05dc5479b819e442d4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03837/s364664997.py | 2f6452ddf46b52875dc9b648933d743f3dda375f | [] | 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 | 1,443 | py | def dijkstra(s):
import heapq
dist=[inf for i in range(n)] #sからの距離のリスト
dist[s]=0
mirai=[True for i in range(n)] #Trueなら未確定
mirai[s]=False
queue=[] #こいつがheapqになる
for kyori,to in G[s]:
heapq.heappush(queue , kyori*10**6+to) #重みと行先を1つの変数で表してる!
while queue:
minedge= heapq.... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
61b95a20fc93335c366c00373b667c8ab5cb7633 | 4df32cdc140f3a15c9a540787241c513ff4652a4 | /exercicios_resolvidos3/exercicios3/capitulo 11/exercicio-11-04.py | 2b62be144bbfdd49bef2ed87e57dcac14db76337 | [
"MIT"
] | permissive | tiagosm1/Python_Nilo_Ney | 04039c4a9294d480b0493d71e46cc850168c5365 | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | refs/heads/main | 2023-02-18T22:07:46.696674 | 2020-12-23T11:27:30 | 2020-12-23T11:27:30 | 317,965,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2020
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"72826762+tiagosm1@users.noreply.github.com"
] | 72826762+tiagosm1@users.noreply.github.com |
94f4df5cc7223f0b68dfe2f92288691475be3bcd | 2a717133265ce02848859f86c9794b3858616fe2 | /digitalsmart/internet/views.py | ec218152b31f63f115e11c312e87566cd12b0592 | [] | no_license | LianZS/digitalsmart | d517f98483abf069ee970c98e619ab5e31fbcd1d | 200fbbdb016f592618e0a9fcd64f981dbf46cd3f | refs/heads/master | 2022-12-15T23:24:18.879170 | 2020-01-30T03:27:15 | 2020-01-30T03:27:30 | 196,047,106 | 1 | 0 | null | 2022-12-08T06:13:59 | 2019-07-09T16:39:09 | Python | UTF-8 | Python | false | false | 6,572 | py | import uuid
from django.core.cache import cache
from django.http import JsonResponse
from attractions.tool.access_control_allow_origin import Access_Control_Allow_Origin
from .models import MobileBrand, BrandShare, MobileModel, MobileSystemRate, OperatorRate, NetworkShare
class MobileShare:
# http://127.0.0.1:800... | [
"2214057556@qq.com"
] | 2214057556@qq.com |
ec9e30b40dc67ca51f221edab1d96f2b9149e036 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_5/models/certificate_certificate_group_get_resp.py | ef1ee7e9cb992b1f1870dffae6f108a102c7314b | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,321 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.5, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
113b09192661f545d179b9ab314ea9cba6be42ad | f8f8651ab604acc4937f8725caadaca1fb97a5e8 | /tests/tests_pytorch/trainer/test_config_validator.py | 7cc742eea845f2b708375107acdb86d160b71f33 | [
"Apache-2.0"
] | permissive | neptune-ai/pytorch-lightning | ac59e746a486e07e21abae426b28e5d72812ac98 | 702014418e2ec0437e67d8bf97809edef686a02c | refs/heads/master | 2022-09-28T09:34:07.653729 | 2022-09-12T11:13:48 | 2022-09-12T11:13:48 | 229,063,811 | 1 | 1 | Apache-2.0 | 2022-09-26T03:29:49 | 2019-12-19T13:48:16 | Python | UTF-8 | Python | false | false | 7,313 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | neptune-ai.noreply@github.com |
e4172ed006e12b33584ceb5b8b71e038e9ebe39e | dbe1f4110921a08cb13e22ea325d503bd5627195 | /chuhuo_2.7/bluedon/bdwafd/newscantools/plugins/MetinfoLFIScript.py | 21c9eb98ce368c832386aef7decf1236595cbc2d | [] | no_license | Hehouhua/waf_branches | 92dc1b1cbecba20f24ef6c7372dde7caa43f9158 | ca76f3a1ed8150b423474c9e37aee37841a5ee35 | refs/heads/main | 2023-01-07T11:33:31.667688 | 2020-11-03T06:58:33 | 2020-11-03T06:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from lib.common import *
def run_domain(http,ob):
list = []
#print "*"*1000
try:
domain = ob['domain']
detail = u''
detail = detail.encode('utf8')
url = "%s://%s%s" % (ob['scheme'],ob['domain'],ob['base_path'])
expurl... | [
"hanson_wong@qq.com"
] | hanson_wong@qq.com |
519db058e65d464c3036fd6d7bdde42d16eff0dd | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf.0/gsn-edf_ut=3.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=38/sched.py | 692cd8366ddefbabdddf013f7db196004fe6d884 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | -X FMLP -Q 0 -L 3 100 300
-X FMLP -Q 0 -L 3 89 400
-X FMLP -Q 1 -L 2 82 300
-X FMLP -Q 1 -L 2 68 200
-X FMLP -Q 2 -L 2 68 200
-X FMLP -Q 2 -L 2 64 200
-X FMLP -Q 3 -L 2 62 250
-X FMLP -Q 3 -L 2 57 250
51 175
48 250
32 400
30 100
26 200
12 125
10 100
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
c2953b3d548599a3c943a3f5e9c0582fddb96681 | e70b678712a355a0b51632728c7781b0bdcf29f4 | /Algorithms/Python/Coin-Change.py | f63dfad74a05ea173238a56c32fdbfb291c8131c | [] | no_license | keyi/Leetcode_Solutions | b3e3c6835ed335d7d4ad53a1b37e59ac15fcf3af | 69e4e969b435ff2796bd7c4b5dad9284a853ab54 | refs/heads/master | 2020-05-21T23:36:20.450053 | 2018-11-11T03:45:28 | 2018-11-11T03:45:28 | 33,714,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | class Solution(object):
def coinChange(self, coins, amount):
"""
:type coins: List[int]
:type amount: int
:rtype: int
"""
ans = [0] + [-1] * amount
for i in range(amount):
if ans[i] != -1:
for x in coins:
if (i ... | [
"yike921012@gmail.com"
] | yike921012@gmail.com |
1527b44cfb0e946a166d73da2176981cc76d8ff0 | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /apps/cloud_api_generator/actor/tasklets/volumestorageservice/rollbackDisk/volumestorageservice_rollbackDisk.py | 5a50e50320f274e461242ed0ef21cdf28b3b7a00 | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 196 | py | __author__ = 'aserver'
__tags__ = 'volumestorageservice', 'rollbackDisk'
__priority__= 3
def main(q, i, params, tags):
params['result'] = ''
def match(q, i, params, tags):
return True
| [
"devnull@localhost"
] | devnull@localhost |
b2cd48ecdfe7b1803e6ad57b515379027fed737c | 8fde9a65a5ec19bcffbf9b868de702bd75303739 | /keras/QuickDraw/server.py | 645b3e1593b0cf6ceeda8c0cc8247e52140254f6 | [] | no_license | wupanhao/XiaoBaiAssistant | d7eb0e3e4ef83344ef146d7a0e354cdcade84718 | 5c8412954b680ccd01c6a681b18e9ed2b6c60550 | refs/heads/master | 2020-05-04T21:54:48.499925 | 2019-10-31T16:23:53 | 2019-10-31T16:23:53 | 179,493,103 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | from flask import Flask
from flask import request,Response
from flask import render_template
from keras.models import load_model
import tensorflow as tf
import base64
import numpy as np
import cv2
import os
import json
from data_utils import get_labels
app = Flask(__name__)
graph = tf.get_default_graph()
model = loa... | [
"wupanhao@qq.com"
] | wupanhao@qq.com |
17c0af48a421fa0f99bb21e3e69b8cf74cbe2768 | 7905d2743ac4b3d58dc9e38becbe945edf132465 | /821.Shortest Distance to a Character.py | ba14d0da65b5c044acb3e24ea06b985d388d4430 | [] | no_license | RupertMa/LeetCode-Playground | bbe191d3ee75d7494c8e452f474d6134791aa94f | 378cb9b53e7710c5cf546f5d75e572060e2a211a | refs/heads/master | 2022-05-11T18:23:34.046748 | 2022-04-29T18:34:34 | 2022-04-29T18:34:34 | 195,932,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | class Solution:
def shortestToChar(self, s: str, c: str) -> List[int]:
left = s.find(c)
ans = [i for i in range(left,-1,-1)] + [10**4+1] * (len(s) - left - 1)
for i in range(left+1, len(s)):
if s[i] != c:
ans[i] = min(abs(i-left), ans[i])
else:
... | [
"yiboma@usc.edu"
] | yiboma@usc.edu |
7523701c55523230378b4747839427a960db8173 | 93bd00af20d81460832347551370cf2b67b84b94 | /udlg/structure/__init__.py | c6235c5a58275d87cf2396f4c13187debed92cc0 | [] | no_license | tarvitz/udlg | 21dfa55afbe9fb8374bde47f7ad3339989604126 | b86e4b2934ba42a6316076c2b6507c023aec9e2a | refs/heads/master | 2021-01-10T02:53:52.775232 | 2017-01-01T21:52:20 | 2017-01-01T21:52:20 | 48,629,821 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
"""
.. module:: udlg.structure
:synopsis: Structures
:platform: Linux, Unix, Windows
.. moduleauthor:: Nickolas Fox <tarvitz@blacklibary.ru>
.. sectionauthor:: Nickolas Fox <tarvitz@blacklibary.ru>
"""
from .structure import (
BinaryDataStructureFile, UDLGFile,
#: structures
... | [
"tarvitz@blacklibrary.ru"
] | tarvitz@blacklibrary.ru |
1756a0be9222f6b2dc75815c5de3c9788abc0920 | e29ef7e3f41b18aaa7849361c402c85b27cd64a9 | /2021/2021-01.py | e9bc503b34c1ec369edc4cc93c88c5165e1b8430 | [] | no_license | sijapu17/Advent-of-Code | 7b8999f459df35d871081a93975c9580cf473643 | a3847a1b0637efd66fa86d5ad70f260c38fcce60 | refs/heads/master | 2023-06-22T12:58:07.791532 | 2023-06-18T09:14:57 | 2023-06-18T09:14:57 | 225,470,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | #Advent of Code 2021 Day 1
f = open('C:/Users/Simon/OneDrive/Home Stuff/Python/Advent of Code/2021/2021-01.txt')
contents = f.read()
input = [int(x) for x in contents.splitlines()]
def solveA(input):
n=len(input)
count=0
for i in range(n-1):
if input[i+1]>input[i]: #Compare if term is greater th... | [
"simon.purkess@hotmail.com"
] | simon.purkess@hotmail.com |
37e7ba3b72e9688eacf9e65c238069bd83f74075 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/devices/v20200401/list_iot_hub_resource_keys.py | 117d169e1057d1dcd6c66ab05b1b0580b2332c1c | [
"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 | 2,753 | 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
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
287896fb11ec28eb5f1bced9cb8d806b6dfa2dd5 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/surface/ml/versions/create.py | cacfa5bdc7de3e0d0015fee69da00f31ffddd4d2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 2,650 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"toork@uw.edu"
] | toork@uw.edu |
ec09a0802006d3230f0ba66e312d963919fe135d | 17f277063b130c7a8beccb7e6cbf6248e628261d | /Spark/filter.py | c05edcea0489c3dc588cea48bd4d3785a2eaacc1 | [] | no_license | JinghongM/Big-Data | 207c627a5bcb0db266fe1969acbf192d9c0ef67f | 0e276f164e2379023c66f2b58ec829ef7715eee5 | refs/heads/master | 2021-04-06T08:40:38.892226 | 2018-03-16T03:16:24 | 2018-03-16T03:16:24 | 125,390,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | #FILTER
orders = sc.textFile("/user/maria_dev/data/retail_db/orders/part-00000")
ordersComplete = orders.filter(lambda order:order.split(",")[-1] == "COMPLETE")
ordersComplete = orders.filter(lambda order:order.split(",")[-1] == "COMPLETE" or order.split(",")[-1] == "CLOSED")
ordersComplete = orders.filter(lambda o... | [
"noreply@github.com"
] | JinghongM.noreply@github.com |
9d00c452b2997005fbccf5dc437806bff46878b5 | 5095200e9ca55cd3a37af34ed44448c02e2a1bb5 | /modules/text/embedding/w2v_financial_target_bigram-char_dim300/module.py | 8d6e451087ec4f8a9cc7a667f3d1bf6d4d39108c | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleHub | 8712603ef486c45e83eb0bc5725b0b3ed3ddbbde | b402610a6f0b382a978e82473b541ea1fc6cf09a | refs/heads/develop | 2023-07-24T06:03:13.172978 | 2023-03-28T11:49:55 | 2023-03-28T11:49:55 | 162,672,577 | 12,914 | 2,239 | Apache-2.0 | 2023-07-06T21:38:19 | 2018-12-21T06:00:48 | Python | UTF-8 | Python | false | false | 1,238 | py | # Copyright (c) 2020 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
55d8dbbedd48d330a4d0663cf16a7b8cf0c609b2 | 354bbeb486fa164629fccd94385d7570589c62e1 | /tensorflow_datasets/scripts/cli/new_test.py | 5d98403e29e3bedf426a1a469a7a8f888045998f | [
"Apache-2.0"
] | permissive | whatwilliam/datasets | 34da847f3434f660a5d670688ff6e26f3c5ca0c4 | e336b79dfce5d89d3753042f4c70c0a281fe1f9f | refs/heads/master | 2023-06-04T21:24:57.018730 | 2021-06-17T20:59:58 | 2021-06-17T20:59:58 | 372,873,415 | 1 | 0 | Apache-2.0 | 2021-06-01T15:14:09 | 2021-06-01T15:14:08 | null | UTF-8 | Python | false | false | 2,421 | py | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets 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 appl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
f9e75ff06f11474382ba76f34792e4c64d38e09b | 69cbf97bcf4063f9eb0c95a2a807b272b23e6860 | /backend/tasker_business/migrations/0001_initial.py | 860b3c0f13b84c89f0e0923cde0c7d5d3bd2747d | [] | no_license | crowdbotics-apps/babson-laundry-20908 | 8a94054b1d32c218887ed7968a4ea64f421455c6 | 837b9a9229b178528af04eda7ed8393b8a494529 | refs/heads/master | 2022-12-26T06:15:51.567253 | 2020-09-30T23:34:33 | 2020-09-30T23:34:33 | 300,088,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | # Generated by Django 2.2.16 on 2020-09-30 23:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('task_profile', '0001_initial'),
('task_category', '0001_initial'),
]
operations = [
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
35456a04ea8f78ca9db7444e34d4feedd5f40c3e | 417ab6024a95e97b4d2236c67e28d00e6d1defc0 | /python/fetch/dxg11/video.py | 9466fc10191094b588ddccc963b9fe26be320b6d | [] | no_license | zeus911/myconf | 11139069948f7c46f760ca0a8f1bd84df5ec4275 | 6dc7a6761ab820d6e97a33a55a8963f7835dbf34 | refs/heads/master | 2020-04-18T02:16:09.560219 | 2019-01-22T18:15:08 | 2019-01-22T18:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,002 | py | #!/usr/bin python
# -*- coding: utf-8 -*-
from baseparse import *
from urlparse import urlparse
from common import common
from urllib import unquote
import time
from fetch.profile import *
from urllib import unquote
class VideoParse(BaseParse):
def __init__(self):
pass
def run(self):
dbVPN = ... | [
"liguoqing19861028@163.com"
] | liguoqing19861028@163.com |
3e1e318420bd273a78ae3e2ebd45be9d2f6f45f8 | 195777db6c7ef2016c09807eb1e6036a1c4c98d3 | /vie-syntax-correcting.py | 0d1503ef12567e580f9804ad1c61330f27142dc0 | [] | no_license | curlyz/py-exercise | e3628b2042e7d7219828340317a83502d42a0567 | 26a6fb08714b716ca2e9d41ecca076e7aabbd7ea | refs/heads/master | 2020-04-21T17:54:07.438498 | 2019-05-09T14:53:40 | 2019-05-09T14:53:40 | 169,750,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,187 | py | # Code for correting vietnamese syntax
# Visit https://en.wikipedia.org/wiki/Vietnamese_phonology
"""
ngang "level" A1 mid level ˧ (33) (no mark) ba ('three')
huyền "deep" A2 low falling (breathy) ˨˩ (21) or (31) ` bà ('lady')
sắc "sharp" B1 mid rising, tense ˧˥ (35) ´ bá ('governor')
nặng "heavy" B2 mid falling, ... | [
"noreply@github.com"
] | curlyz.noreply@github.com |
58da2792c1b942ba3a36c5b97d0c96de9822eebe | 565f95f207f49d987bdc372cd80942be95451731 | /python/soap/google.py | d5ee30f72096404561eba1de595d67841a767c05 | [] | no_license | dustin/snippets | 76724c2131546bddd35a80da16921a44a49e2262 | 5be535890f9e71e298fec601d55c469c542ea330 | refs/heads/master | 2023-08-18T22:01:39.546961 | 2022-12-29T07:39:40 | 2022-12-29T07:39:40 | 18,840 | 18 | 4 | null | 2013-01-06T08:10:39 | 2008-05-22T07:58:19 | C | UTF-8 | Python | false | false | 3,119 | py | #!/usr/bin/env python
# Copyright (c) 2002 Dustin Sallings <dustin@spy.net>
# $Id: google.py,v 1.5 2002/04/16 08:48:39 dustin Exp $
from __future__ import generators
import sys
import SOAPpy
class ResultsNotReady:
"""Exception raised when attempting to use search results
before they're ready."""
pass
c... | [
"dustin@spy.net"
] | dustin@spy.net |
3ae104945fd37440fdcf79bce01e67a121299cb3 | 64b301791f73c37950ade855f43e3c6f98aa7492 | /durgasoft/chapter79/bank.py | 13833df02883d66d1d830dd6ee20d6d88a77884f | [] | no_license | nandansn/pythonlab | cf71dc6f894076d84c0bff3bd25b395fef37dfa2 | b3d6b49614631b621f52789ef20ed9f6d978feb0 | refs/heads/master | 2022-12-27T03:49:08.811610 | 2022-12-15T06:25:53 | 2022-12-15T06:25:53 | 95,769,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | class BankAccount:
def __init__(self,account_number,balance):
self.__account_number = account_number
self.balance = balance
def display(self):
print(self.__account_number)
b = BankAccount('123456',120000)
print(b.balance)
b.display()
#print(b._BankAccount__account_number)... | [
"nandakumar.rangasamy@oracle.com"
] | nandakumar.rangasamy@oracle.com |
b217883a221863bea0b80267b6cfec9ced72a419 | 74e32ab886d4fc82c6e7425f2eca1e4d50e09f0a | /log/example.py | 9bc1e63aadeaa5345ece05e1a01d0a6da8ca8920 | [] | no_license | sambapython/python22 | 1aff2330fbff4db207d076177867ee145575c143 | cfeb00d748c6768503d678519194a93ecc19a922 | refs/heads/master | 2020-06-27T06:29:29.180429 | 2016-12-31T05:31:52 | 2016-12-31T05:31:52 | 74,537,443 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | import logging
import mod1
#logging.info(mod1.fun())
logging.basicConfig(filename='log1.txt',
level=logging.DEBUG, format="%(asctime)s->%(levelname)s->%(message)s")
logging.info(mod1.fun())
logging.info("program started")
a=raw_input("Enter number to divide 100: ")
if not a.isdigit():
logging.warn("{0} is going to cr... | [
"sambapython@gmail.com"
] | sambapython@gmail.com |
9c7f25083771460362a411613772967c9f0bcefd | 98798f6777c959a5fbcf3fe9e2c33a50b60f6df2 | /funciones/llamad_retorn.py | c58d34543b063826dcb10ae5ce586ba35e5c7421 | [] | no_license | EdwinLGV/pythonlessons | 72907d7a36ce817a981c6490904635b1a80fa394 | 46959b9bf738104142850099e7accc59604810f2 | refs/heads/master | 2023-06-13T05:33:16.829682 | 2021-07-05T00:36:32 | 2021-07-05T00:36:32 | 378,508,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | def funcion():
return("Hola, Mundo")
def saludar(nombre, mensaje = 'Hola'):
print(mensaje, nombre)
print(funcion())
saludar('Edwin')
print(max('Edwin'))
| [
"elguzmanv@gmail.com"
] | elguzmanv@gmail.com |
6369ef4fc8a07b45bd4ec111a2b83a7360b49b71 | 0809673304fe85a163898983c2cb4a0238b2456e | /tmp/ve_asus-rt-n14uhp-mrtg/lib/python3.4/site-packages/django/views/decorators/http.py | bef9ea61a9a9c9f6a335abdcc435646dae5b6f9a | [
"Apache-2.0"
] | permissive | jasonwee/asus-rt-n14uhp-mrtg | 244092292c94ff3382f88f6a385dae2aa6e4b1e1 | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | refs/heads/master | 2022-12-13T18:49:02.908213 | 2018-10-05T02:16:41 | 2018-10-05T02:16:41 | 25,589,776 | 3 | 1 | Apache-2.0 | 2022-11-27T04:03:06 | 2014-10-22T15:42:28 | Python | UTF-8 | Python | false | false | 4,411 | py | """
Decorators for views based on HTTP headers.
"""
import logging
from calendar import timegm
from functools import wraps
from django.http import HttpResponseNotAllowed
from django.middleware.http import ConditionalGetMiddleware
from django.utils.cache import get_conditional_response
from django.utils.decorators imp... | [
"peichieh@gmail.com"
] | peichieh@gmail.com |
bf5dbb2d364e30104fe3f79dd2c7653d34f9794f | ac562c0d008a282bef5ea4705b4fc8c2b8897964 | /Ch10_OO/Inheritance/Solutions/Cat.py | 12eefc6c5888de18ddc3b26f42980d5c95281c79 | [] | no_license | jimmus69/python-projects | ed78a50250356e9366c9d10303facf037a310596 | 9a91fe7f979e6e09dedec7b60595e91ae2d0d321 | refs/heads/master | 2021-01-21T10:52:08.486557 | 2017-05-18T18:51:54 | 2017-05-18T18:51:54 | 91,708,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | from Animal import Animal
class Cat(Animal):
"""
Cat a subclass of Animal.
"""
number_of_cats = 0
def __init__(self, name, eyecolor):
"""
Creates a cat instance
"""
Animal.__init__(self,name)
self.eyecolor = eyecolor
Cat.number_of_cats = Cat.number_of_cats + 1
def __del__(self):
if Cat:
Cat.n... | [
"noreply@github.com"
] | jimmus69.noreply@github.com |
df26bdcf94752dd4dd5fe01f164e838c90918c43 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02658/s704720676.py | 16cd0a743087d5fd5b49093db02e636b2bb7122a | [] | 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 | 218 | py | n = input()
a = list(map(int,input().split()))
ans = 1
t = False
for i in a:
if i == 0:
ans = 0
t = True
if t != True:
for i in a:
ans *=i
if ans>10**18:
ans = -1
break
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
13056ef9fafb710a3d459be9b251046948b2662a | 1caf4418f3549567637f5e9893a445f52a38c6a0 | /CmsAdmin/user_content/app/commands/user_view_story_command.py | 0f98239592478092b66516a45eaae2ae61c711dd | [] | no_license | Final-Game/social_network_backend | c601563e08c0fd7de72a614944f354ef8d2d31d8 | 8111787d1d20eb87733ae360d8baa745a65e2743 | refs/heads/master | 2023-03-04T21:12:43.147084 | 2021-02-23T03:45:22 | 2021-02-23T03:45:22 | 290,542,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | from user_content.domain.models.story_viewer import StoryViewer
from user_content.app.dtos.react_tory_dto import ReactStoryDto
from django.db import transaction
from core.common.base_api_exception import BaseApiException
from user_content.domain.models.user_story import UserStory
from user_content.domain.models.accoun... | [
"kakavip.198.kaka@gmail.com"
] | kakavip.198.kaka@gmail.com |
bb6a17dbe90652ad2832fb128967de8d2f48404f | 6e601105760f09d3c9f5306e18e4cf085f0bb4a2 | /10000-99999/12100.py | 7efca2e91c9117833b4e6c1a74925cc4ed389f15 | [] | no_license | WSJI0/BOJ | 6412f69fddd46c4bcc96377e2b6e013f3bb1b524 | 160d8c13f72d7da835d938686f433e7b245be682 | refs/heads/master | 2023-07-06T15:35:50.815021 | 2023-07-04T01:39:48 | 2023-07-04T01:39:48 | 199,650,520 | 2 | 0 | null | 2020-04-20T09:03:03 | 2019-07-30T12:48:37 | Python | UTF-8 | Python | false | false | 2,762 | py | '''
12100번
2048 (Easy)
'''
import sys
import copy
from collections import deque
input=sys.stdin.readline
n=int(input())
board=[]
for _ in range(n):
board.append(list(map(int, input().split())))
def move(board, direction):
global n
if direction==1: #우->좌
for i in range(n):
mix=-1
... | [
"lifedev@naver.com"
] | lifedev@naver.com |
d2b1701704b0356e06be22a3561a2531670e0c56 | fd879fd9806d8d962170b9df0d30522232ac5bcc | /TP3/EJ3/calculos/contraste_aol.py | 6779a0dc530c36eec78e5dd8068049268e436085 | [] | no_license | newtonis/22.01-Circuit-Theory | 1afe6121d5bf54c8c9288f7659d12e2c49bc2b59 | 4d4de635dde23b0b1c627cbfb725392de95049af | refs/heads/master | 2022-01-10T07:03:16.509783 | 2019-03-09T23:19:09 | 2019-03-09T23:19:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | from transferencias import *
from scipy import signal
import numpy as np
from math import *
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
from random import *
import datacursor_easy
f_range = np.logspace(2, 6, 10000)
w_range = [2 * pi * i for i in f_range]
a0values = np.logspace(4.69, 5.69, 7... | [
"newtonis.penguin@gmail.com"
] | newtonis.penguin@gmail.com |
6529938c9569b1b2615701e7af1db862c9894f63 | d6c2cdb37fc9c268b0eec4a49a028653eb4cf6d3 | /gimmemotifs/motif/_scanning.py | 639037d2e81566e24abb1dffb98e8be5e3c03094 | [
"MIT"
] | permissive | JGASmits/gimmemotifs | 97f4e2d8335eacb29e7d5358553be09e392fcbc7 | 6205d503a74a74bfa83092b6c3fc1c73ea0c8466 | refs/heads/master | 2022-12-25T06:25:32.890566 | 2022-10-12T15:12:31 | 2022-10-12T15:12:31 | 246,852,462 | 0 | 0 | MIT | 2020-03-12T14:17:13 | 2020-03-12T14:17:12 | null | UTF-8 | Python | false | false | 6,587 | py | # Copyright (c) 2009-2021 Simon van Heeringen <simon.vanheeringen@gmail.com>
#
# This module is free software. You can redistribute it and/or modify it under
# the terms of the MIT License, see the file COPYING included with this
# distribution.
"""Scanning functions for Motif class"""
from warnings import warn
from ... | [
"simon.vanheeringen@gmail.com"
] | simon.vanheeringen@gmail.com |
6b621fe4788a5d8facaea6a50ee3acbe59674128 | d326cd8d4ca98e89b32e6a6bf6ecb26310cebdc1 | /BioinformaticsStronghold/pdst/pdst.py | 4e882fb5df954bcb2c46d3c7ec50d7bd90f8c74f | [] | no_license | dswisher/rosalind | d6af5195cdbe03adb5a19ed60fcbf8c05beac784 | 4519740350e47202f7a45ce70e434f7ee15c6afc | refs/heads/master | 2021-08-09T02:58:17.131164 | 2017-11-12T01:26:26 | 2017-11-12T01:26:26 | 100,122,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py |
import sys
def read_fasta(fname):
seqs = []
with open(fname, "r") as ins:
for line in ins:
line = line.strip()
if line[0] == '>':
seqs.append('')
else:
seqs[len(seqs) - 1] += line
return seqs
def print_matrix(m):
for x in x... | [
"big.swish@gmail.com"
] | big.swish@gmail.com |
8f5e48788f72d9f7b4e1a943db4030d8418abab0 | 8b720344247b43205a284b2e8255e8be01c0f0ba | /Toxicity/BERT_trainer.py | a86c9b3a34440b923b19e313cd4f58d05a706310 | [] | no_license | bi3mer/CS6120_NLP_Project | 71022c967f096e9a5ae315f6bdc2edc4b8485a43 | c114701b482b4b04311f0f33fce958ef75e4a5a4 | refs/heads/master | 2022-07-23T04:52:40.030462 | 2019-12-06T23:59:04 | 2019-12-06T23:59:04 | 209,356,586 | 0 | 0 | null | 2022-06-21T23:37:01 | 2019-09-18T16:35:43 | Jupyter Notebook | UTF-8 | Python | false | false | 3,143 | py | #!/usr/bin/env python
# coding: utf-8
# ## Configuration
# #### Model
# model_type = 'bert-base-cased'
model_type = 'bert-base-uncased'
# model_type = 'bert-large-cased'
# model_type = 'bert-large-uncased'
dataset_size = None # set to None for full dataset
min_length = 140
# #### Learning Parameters
epochs =... | [
"colan@comcast.net"
] | colan@comcast.net |
2c465ca80867e2a665948f6d7561f4b93b1f4e41 | dce4a52986ddccea91fbf937bd89e0ae00b9d046 | /jni-build/jni-build/jni/include/tensorflow/contrib/slim/python/slim/data/dataset_data_provider.py | 148b4938551fb396b678cc8cb69e7a430aa8041f | [
"MIT"
] | permissive | Lab603/PicEncyclopedias | 54a641b106b7bb2d2f71b2dacef1e5dbeaf773a6 | 6d39eeb66c63a6f0f7895befc588c9eb1dd105f9 | refs/heads/master | 2022-11-11T13:35:32.781340 | 2018-03-15T05:53:07 | 2018-03-15T05:53:07 | 103,941,664 | 6 | 3 | MIT | 2022-10-28T05:31:37 | 2017-09-18T13:20:47 | C++ | UTF-8 | Python | false | false | 2,988 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"super_mr.z@hotmail.comm"
] | super_mr.z@hotmail.comm |
52a082520a4a17c1673ceb017cc93fcbd537359a | bd2e45a5e85faf207fe57eaa34ff86d7c6fc3cfa | /sud/services/user_key_store/conf.py | f17290d9c7b554b7391a3b68d7deb6fc006ddd69 | [
"Apache-2.0"
] | permissive | bballamudi/secure-user-data | d307bc3a2f486b198857aaf60dce6d9620a1767e | 69d508a3c0c6254d5a4fa1c41bffe5936c988b8f | refs/heads/master | 2021-04-05T00:22:51.773722 | 2018-05-14T04:05:24 | 2018-05-14T04:05:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from decouple import config
class ServerConfig:
debug = config('DEBUG', default=False, cast=bool)
host = config('HOST', default='0.0.0.0')
port = config('PORT', default=8001, cast=int)
cert = config('SSL_CERT_FILE', default=None)
key = config('SSL_KEY_FILE', default=None)
dburl = conf... | [
"david.jose.delassus@gmail.com"
] | david.jose.delassus@gmail.com |
1c99329253a6483a3e4f63d191bb2d7e73a8c4f9 | 6c0088366c1a5f92a0842be79952b29577af3a80 | /MyPlayground/nn/Implementations/softmax_activation_.py | 45e8d3fa63a98784b3e19952f0d4ef51784356f3 | [] | no_license | BenjaminLiuPenrose/DLAssignmentSolution | b6ac85c124a9ceda9046ba1063199d3f7275f250 | 0e3b482c6f81b3004f416d19f59184496f379900 | refs/heads/master | 2018-11-26T19:33:13.745106 | 2018-09-05T05:25:37 | 2018-09-05T05:25:37 | 120,590,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
'''
Student name: Beier (Benjamin) Liu
Date:
Project Part
Remark:
Python 2.7 is recommended
Before running please install packages *numpy
Using cmd line py -2.7 -m install [package_name]
'''
import os, time, logging
import copy, math
import functools, itertools
import num... | [
"imbenliu@gmail.com"
] | imbenliu@gmail.com |
ffcb8a45fcebb79633873ba927dd1310dfa8f806 | f8cb5c97380e3a6f0bde2442a32f8cb1fcb1ced2 | /pinax/likes/signals.py | c150730bf7d455fae66dce7f09b730044436b5ba | [
"MIT"
] | permissive | pinax/pinax-likes | dd8b3aa6fee316fa1905cbdf0c9fabb4511bf600 | dedbe4b130e58da7a9674e9dbc737a0f67dd89f6 | refs/heads/master | 2023-06-22T15:55:16.823202 | 2021-03-12T23:04:09 | 2021-03-12T23:04:09 | 2,326,967 | 85 | 25 | MIT | 2020-10-11T06:22:39 | 2011-09-05T08:02:36 | Python | UTF-8 | Python | false | false | 176 | py | import django.dispatch
object_liked = django.dispatch.Signal(providing_args=["like", "request"])
object_unliked = django.dispatch.Signal(providing_args=["object", "request"])
| [
"paltman@gmail.com"
] | paltman@gmail.com |
788c12292d907f0e5c8a9762fb1dbb7397bba425 | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /leastInterval.py | aec94f27370304f5cfb236055c20f0a94a651b8c | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | from typing import *
class Solution:
def leastInterval(self, tasks: List[str], n: int) -> int:
if len(tasks)==0:
return 0
if n==0:
return len(tasks)
log={}
for l in tasks:
log[l] = log[l]+1 if l in log.keys() else 1
log=sorted(list(log.val... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
069ae51571412428c9a42976a973c162a0305b78 | 099d2aca419e3c66ca4351379735654d82113720 | /exemplos/par2.py | 12b54dbe6d637788fa5286bce8eff45ba4abe760 | [] | no_license | rg3915/py-net-coders | 2fea07f1954243ce02236125dc0ce74a178969bf | 5b4e8f0eeee6a8787611241a84ac43bc2576b224 | refs/heads/master | 2020-12-05T10:37:31.666953 | 2016-09-12T17:59:42 | 2016-09-12T17:59:42 | 67,733,301 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | import unittest
def par(n):
return n % 2 == 0
class EvenNumberTest(unittest.TestCase):
def test_0(self):
self.assertEqual(par(0), True)
def test_1(self):
self.assertEqual(par(1), False)
def test_42(self):
self.assertEqual(par(42), True)
if __name__ == '__main__':
uni... | [
"rg3915@yahoo.com.br"
] | rg3915@yahoo.com.br |
06fac376a3510d541b3049a58e57866542096ab2 | 63c1fab6f81b10488b3416c6f71584d677e47e9b | /test/test_data_transformation_api.py | 4b3f677f9ef7078c56efb51e4433eb6e15e1be5c | [] | no_license | mintproject/model-catalog-python-api-client | b0d1175dbcc4f2705727e79f39a340318d5a4f01 | dc6858033a78ae8401efa6cad8b3e0786cffa0aa | refs/heads/master | 2022-12-12T04:29:07.735034 | 2021-06-03T01:18:52 | 2021-06-03T01:18:52 | 180,677,516 | 0 | 1 | null | 2022-12-08T06:43:28 | 2019-04-10T23:12:34 | Python | UTF-8 | Python | false | false | 1,718 | py | # coding: utf-8
"""
Model Catalog
This is the API of the Software Description Ontology at [https://w3id.org/okn/o/sdm](https://w3id.org/okn/o/sdm) # noqa: E501
The version of the OpenAPI document: v1.5.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
impor... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
feac1deab1fb972d61e80408437f31b729bff3ae | 080db1ae362de6823e7c78ab6071c82e347ce967 | /tests/unit/clients/test_log_config.py | 00664a519e393e18e64f95ed0128483262d85c8d | [
"Apache-2.0"
] | permissive | jina-ai/jina | c06898dc31dd3de1f917f30305e9460efedf97c3 | 23c7b8c78fc4ad67d16d83fc0c9f0eae9e935e71 | refs/heads/master | 2023-08-30T23:04:45.267920 | 2023-08-24T13:49:49 | 2023-08-24T13:49:49 | 240,315,046 | 20,687 | 2,460 | Apache-2.0 | 2023-09-14T12:30:45 | 2020-02-13T17:04:44 | Python | UTF-8 | Python | false | false | 847 | py | import os
from jina import Deployment, Flow
cur_dir = os.path.abspath(os.path.dirname(__file__))
def test_log_config_arg():
log_config_file = 'logging.custom.yml'
cli_args = ['--log-config', log_config_file]
from jina.parsers import set_client_cli_parser
args = set_client_cli_parser().parse_args(c... | [
"noreply@github.com"
] | jina-ai.noreply@github.com |
3a8f615f292ed9a775d3d3f7c1eb4e4cffab85f7 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/29/usersdata/98/9679/submittedfiles/atividade.py | 4fb43c91c84ac341b00c11ae14e8d7f1008ce00f | [] | 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 | 225 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
n=int(input('Digite o valor de n: '))
contador=0
while True:
valor=n/10
contador=contador+1
n=n//10
if n==0:
break
print(contador) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f4676d4f21c9e78dba00c5523092defdad59ed98 | c4e1fab2941f3fe51aa5f2400ba695171b436457 | /bsp/stm32/stm32f767-atk-apollo/SConstruct | dd77b5c1d3d8763d578147c3f3233bdab16e056c | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | bevis-wong/rt-thread | af0c541539f6957bf06592855b989f14951191f4 | fe9ee68ea344035853004bbfb92afb7a7b94a10d | refs/heads/master | 2020-04-14T23:27:37.139286 | 2019-03-10T04:25:25 | 2019-03-10T04:25:33 | 164,202,952 | 4 | 0 | Apache-2.0 | 2019-01-05T10:02:40 | 2019-01-05T10:02:40 | null | UTF-8 | Python | false | false | 1,646 | import os
import sys
import rtconfig
if os.getenv('RTT_ROOT'):
RTT_ROOT = os.getenv('RTT_ROOT')
else:
RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try:
from building import *
except:
print('Cannot found RT-Thread root directory, please ... | [
"SummerGift@qq.com"
] | SummerGift@qq.com | |
eec60bb6c0890f3712db6d6d578b2cd3e4646cb8 | c1fa0ae98980deb0ec38535493c6d49e00ef76d6 | /leetcode.com/python/621_Task_Scheduler.py | f8e4f5febd350ceca68f4e92ce60facaf85505b4 | [
"MIT"
] | permissive | vishalkumarmg1/Algorithms | 1d76faef122aa54790a1f63dd76b30b4fab4b9ea | d6a996d583d566cf14d6a4b8abd560221920e3d6 | refs/heads/master | 2020-09-07T20:30:13.496243 | 2019-11-10T21:06:43 | 2019-11-10T21:06:43 | 220,904,826 | 3 | 5 | MIT | 2019-11-11T05:04:07 | 2019-11-11T05:04:07 | null | UTF-8 | Python | false | false | 3,227 | py | from heapq import heappush, heappop
from collections import Counter
# Task Scheduler - https://leetcode.com/problems/task-scheduler/
class Solution:
def inverse(self, num):
return -1 * num
def leastInterval(self, tasks, n):
"""
:type tasks: List[str]
:type n: int
:rty... | [
"partho.biswas@aurea.com"
] | partho.biswas@aurea.com |
47591fd89e9d587f918d4ecf4ee954ff6b727d97 | 3d989666e6ceb2abc9175dcf7b1d0c1f8c76d205 | /py_solution/p66_add_one.py | 843ae2481b3c719c9169c7bbb6d03a90f4979341 | [] | no_license | dengshilong/leetcode | 00ae0898b4645efd1de69a13f2fa92606e899297 | 5ab258f04771db37a3beb3cb0c490a06183f7b51 | refs/heads/master | 2021-01-10T11:58:10.396399 | 2020-04-10T12:10:54 | 2020-04-10T12:10:54 | 47,912,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | class Solution(object):
def plusOne(self, digits):
"""
:type digits: List[int]
:rtype: List[int]
"""
res = []
remain = 1
for i in range(len(digits) - 1, -1, -1):
t = digits[i] + remain
res.append(t % 10)
remain = int(t / 10)... | [
"dengshilong1988@gmail.com"
] | dengshilong1988@gmail.com |
7077e442e49156f96c9cfb4361b6475f93e3131f | cc64273f3683a9e377eabe00df9ae0e4277f23e0 | /src/ws/server.py | 372fbec84f10a2b6d39210edfa3fa77352e2f686 | [] | no_license | vmgabriel/ws-server-channels | 5a52995a7d46c697845b840953b261856f29eba6 | aff1d7cba6e8360470375955b843760fa11a0240 | refs/heads/master | 2023-08-06T19:42:42.602687 | 2021-10-09T20:59:45 | 2021-10-09T20:59:45 | 415,420,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,656 | py | """Server WS"""
# Libraries
import websockets
from typing import List
from datetime import datetime
from .channel import Channel
from . import MessageType
from .utils import convert_message
from .adapter import WSAdapter
class Server:
"""WS server"""
def __init__(self, host, port, emitter: WSAdapter):
... | [
"vmgabriel96@gmail.com"
] | vmgabriel96@gmail.com |
39bc7954456471013cedff7774a649c65ee3358d | c46260c40054c0499e0a6871e4d3fe2d6d8aa9c0 | /DataStruct/QuickSort.py | fe63444ef58a1c3ae5200711d466a74a4e816458 | [] | no_license | iiot-tbb/learngit | 1d6f5c234f1c36016be5489c7ec605f666bbba16 | dfa3106d05bcbb0da39b9bf71f7a0698322130f7 | refs/heads/master | 2020-08-30T01:30:07.632602 | 2019-12-07T13:09:59 | 2019-12-07T13:09:59 | 218,225,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | #!/usr/bin/env python
# coding=utf-8
def quickSort(alist):
quickSortHelper(alist,0,len(alist)-1)
def quickSortHelper(alist,first, last):
if first < last:
splitpoint = partition(alist,first, last)
quickSortHelper(alist,first,splitpoint-1)
quickSortHelper(alist,splitpoint+1, last)
def ... | [
"247687157@qq.com"
] | 247687157@qq.com |
7e7a1950d12bc189a5e968bb158acc15dadb58bc | fc2b16eca510f80dd311b6f8d972ef65adbf99bd | /backend/msm_mobile_2611_dev_15716/urls.py | 8b3825d6913378a715669f2824b88ec52184fd0e | [] | no_license | crowdbotics-apps/msm-mobile-2611-dev-15716 | a40177fe3251eed9dddeaa29aa9614724081feeb | 922f679348174d217f05118f1610197b7c7d9703 | refs/heads/master | 2023-01-20T10:13:07.610747 | 2020-11-26T02:48:59 | 2020-11-26T02:48:59 | 316,106,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | """msm_mobile_2611_dev_15716 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='... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
aed7e936fdc40d4eab1dbe22c97e95cd8e3b809f | dbc7780b13392c4d3992322d4ea5f84a12959863 | /glumpy/transforms/trackball.py | 5201cbd2635c2b3f29a77d7648f7388d6e4b26e3 | [] | no_license | rossant/glumpy | 2c6e609030a9cd45ae13ca9f25b7e4137d141590 | c4c07c395929008ed645b0aa4898000fb1d5ec1a | refs/heads/master | 2021-01-21T06:10:01.097677 | 2014-12-29T10:29:03 | 2014-12-29T10:29:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2014, Nicolas P. Rougier
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
# ----------------------------------------------------------------------------... | [
"Nicolas.Rougier@inria.fr"
] | Nicolas.Rougier@inria.fr |
4d8518b4a5202a50ef9ae86f13ad38181dbfda65 | f8580d2c963b6a3c34e918e0743d0a503a9584bd | /etg/unfinished/datectrl.py | 11a3ffcded70942ab463ca92362c5effa786a665 | [] | no_license | pypy/wxpython-cffi | f59c3faeed26e6a26d0c87f4f659f93e5366af28 | 877b7e6c1b5880517456f1960db370e4bb7f5c90 | refs/heads/master | 2023-07-08T21:13:22.765786 | 2016-12-02T22:10:45 | 2016-12-02T22:10:45 | 397,124,697 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | #---------------------------------------------------------------------------
# Name: etg/datectrl.py
# Author: Robin Dunn
#
# Created: 09-Apr-2012
# Copyright: (c) 2013 by Total Control Software
# License: wxWindows License
#-------------------------------------------------------------------------... | [
"wayedt@gmail.com"
] | wayedt@gmail.com |
272992c516f3c8cf652ab342eef2f74de2b9837f | 842ab2160dc82895bbe71474f4e96fefc8e81890 | /tests/test.py | 48440a52d79408d8ee18de715e3b8541b370d2a6 | [
"MIT"
] | permissive | bfontaine/flatkeys | 111a25f77943f8e81c6dbb020c05cb19eeae119c | 35ab43f1c5d6c7bc8fb2e79855f75660ed20844e | refs/heads/origin/master | 2020-05-15T18:12:32.119503 | 2017-07-30T17:59:37 | 2017-07-30T17:59:37 | 28,595,552 | 2 | 0 | null | 2014-12-31T13:40:40 | 2014-12-29T14:56:08 | Python | UTF-8 | Python | false | false | 613 | py | # -*- coding: UTF-8 -*-
import sys
import platform
if platform.python_version() < '2.7':
import unittest2 as unittest
else:
import unittest
from os.path import dirname
if __name__ == '__main__':
here = dirname(__file__)
sys.path.insert(0, here+'/..')
import flatkeys
class TestflatkeysVersion(unitte... | [
"batifon@yahoo.fr"
] | batifon@yahoo.fr |
1496d4cb416a863bb26522c4942d58044d9f6225 | fa6fa9e154a205d575eda6615e8b62f4cce77a3d | /office365/sharepoint/logger/logExport.py | 7a7b04c90f41a8a96cef9b3c9576d6a185007c85 | [
"MIT"
] | permissive | beliaev-maksim/Office365-REST-Python-Client | 7f94b7b40227de1192bfc0cb325107482caf443c | b2fd54701d83cc91eb5ba3a0ec352a93ded24885 | refs/heads/master | 2023-08-14T20:47:51.972883 | 2021-09-05T12:44:47 | 2021-09-05T12:44:47 | 283,984,055 | 0 | 0 | MIT | 2020-07-31T08:30:48 | 2020-07-31T08:30:48 | null | UTF-8 | Python | false | false | 815 | py | from office365.runtime.client_result import ClientResult
from office365.runtime.queries.service_operation_query import ServiceOperationQuery
from office365.runtime.resource_path import ResourcePath
from office365.sharepoint.base_entity import BaseEntity
class LogExport(BaseEntity):
def __init__(self, context):
... | [
"Ajilon80!"
] | Ajilon80! |
ef59f2b9a90a86941e03db997719ca6c374afa12 | 892ee90a90c5786d4a9231a789664cd0c247acdf | /lessons/regex/test_regex.py | ecbdd78a71729564ccfd27f07e3d58e1f0400d6f | [] | no_license | paulghaddad/design_of_computer_programs_course | 798b2f2578a5828e13c12aa8dd5ab9c84104d0c7 | e21f4f7be2b953ddc72ba9cd256b0d9959ec2566 | refs/heads/master | 2020-03-28T20:55:53.542595 | 2018-12-28T13:15:03 | 2018-12-28T13:15:03 | 149,114,689 | 0 | 0 | null | 2018-11-29T11:54:25 | 2018-09-17T11:26:56 | Python | UTF-8 | Python | false | false | 303 | py | import pytest
from regex import search, match
def test_search():
assert search("baa*!", "Sheep said baaa!") is True
assert search("baa*!", "Sheep said baaa humbug") is False
def test_match():
assert match("baa*!", "Sheep said baaa!") is False
assert match("baa*!", "baaa!") is True
| [
"paulh16@gmail.com"
] | paulh16@gmail.com |
92b03a10d660ee110bf2d13f7a09d150e95e5541 | 40029281c27f748dfdb7e2b2b52186f239caeed8 | /metadataanalysis_client/models/translate_text_request.py | f0ccc84cd5eabd4eff33389bed1942463e841cc8 | [] | no_license | daletcoreil/metadataanalysis-client-python-sdk | d30001c2f91c94f6aca3627735280e641839e4a1 | 9b4b495fe3f5f1d5c7d28e126def9c311c5518e5 | refs/heads/master | 2021-06-20T15:54:36.426663 | 2021-05-04T06:41:55 | 2021-05-04T06:41:55 | 207,790,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,263 | py | # coding: utf-8
"""
Dalet Metadata Analysis API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 2.1.0
Contact: cortexsupport@dalet.com
Generated by: https://openapi-generator.tech
"""
i... | [
"daletcoreil@gmail.com"
] | daletcoreil@gmail.com |
304d35a5f94e533c485a98a0106d3d313189f36c | 032a0c939d96d0e5307dbce86e11faf7060f4ed9 | /lte/gateway/python/magma/subscriberdb/client.py | 345156914da04313aa21d871e5d1ebc4c074dccc | [
"BSD-3-Clause"
] | permissive | radha0018/magma | cac9ff3491dd2661e5dc0aa1f9a304a5428e2d2a | 8436966a4bb3cf7fdc3f567704062b6f9568db25 | refs/heads/master | 2023-05-05T08:26:07.132969 | 2021-05-27T18:44:44 | 2021-05-27T18:44:44 | 371,097,174 | 0 | 2 | NOASSERTION | 2021-05-26T16:26:21 | 2021-05-26T16:15:53 | Go | UTF-8 | Python | false | false | 7,695 | py | """
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES O... | [
"noreply@github.com"
] | radha0018.noreply@github.com |
e20c78750284099370d5df433bfc62e8101cf352 | 8e90afd3f0dc945d9ebd6099a60094807c0067cf | /Kangho/ALGO_FENCE.py | bef7782dbf242406748d7548cddd7ce7333818ef | [] | no_license | Deserve82/KK_Algorithm_Study | ffa109e02f1c9297597c9e07c7c3006628046740 | d3ec01b66d6e3852b7d68adaa8ba87c7e9617e24 | refs/heads/master | 2021-11-10T00:23:30.711422 | 2021-10-23T02:37:04 | 2021-10-23T02:37:04 | 231,358,800 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | def dq(left, right):
if left == right:
return sticks[left]
mid = (left + right) // 2
ret = max(dq(left, mid), dq(mid+1, right))
lo, hi = mid, mid+1
height = min(sticks[lo], sticks[hi])
ret = max(ret, height * 2)
while left < lo or hi < right:
if hi < right and (left == lo ... | [
"noreply@github.com"
] | Deserve82.noreply@github.com |
67e573c9e9074cb38b28dfca1387f18ca45ee9d4 | d930697cc16f69187c0918524e655ab8259b9806 | /src/analytics/visualization.py | bb413a0cc494f63211f588f032ab65786082e752 | [] | no_license | tkusmierczyk/badges2 | 7ff6c6edd8f21f90ec2981ede569c4a7c018a765 | 7738483c2a732a062007b14286ca2fce6684965a | refs/heads/master | 2021-09-22T09:51:08.296245 | 2018-09-07T15:59:33 | 2018-09-07T15:59:33 | 111,401,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,442 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib
from matplotlib import pyplot
import seaborn as sns; sns.set()
import logging
def pyplot_reset():
pyplot.cla()
pyplot.clf()
pyplot.close()
matplotlib.rcParams.update(matplotlib.rcParamsDefault)
matplotlib.rcParams['... | [
"you@example.com"
] | you@example.com |
95343e7d9b7c62ca05a6827196da25207cb4d240 | f16422a1585e10b30d3c491f57292988f8c41ecc | /rvmodel.py | fb8db4082a2acde947892e9018040e764a69ba02 | [] | no_license | r-cloutier/RVStability | 26a37c3d150a779a0b66112a93e986e72a26f71a | 93d52e106f371ac86d05832d6531caf1ffbf84db | refs/heads/master | 2020-03-21T20:54:33.969000 | 2018-07-03T13:25:01 | 2018-07-03T13:25:01 | 139,035,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | '''
RV models computed with different fitted and fixed parameters.
'''
from imports import *
import rvcurve
# The standard: fit all parameters
def get_rv1(theta, bjd):
P,T0,V,K,h,k=theta
return rvcurve.RV(bjd, theta)
# Fix V
def get_rv2(theta, bjd):
P,T0,K,h,k=theta
theta2=P,T0,0.,K,h,k
return rv... | [
"cloutier@astro.utoronto.ca"
] | cloutier@astro.utoronto.ca |
7268fd6757bf651a793117af68bbd876c33d179d | 2251d71bc3ecb589ce1a8b274a08370c3240bf51 | /0653 Two Sum IV - Input is a BST.py | 493c0755786a7e5ec7a9bdb66e31b9570ae14fe5 | [] | no_license | YuanyuanQiu/LeetCode | 3495a3878edc2028f134bddb5b9ec963069562cb | 6f5d0ef6a353713c0b41fa7ec0fb8c43a7e8dc55 | refs/heads/master | 2022-12-11T04:04:01.686226 | 2022-12-06T18:42:14 | 2022-12-06T18:42:14 | 231,168,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | def findTarget(self, root: TreeNode, k: int) -> bool:
# 集合记录寻找目标
d = set()
ans = False
def f(r):
nonlocal ans # 全局变量
# 树不为空且ans为False
if r and not ans:
# 已配对
if r.val in d:
ans = True
return # 中断
... | [
"50243732+YuanyuanQiu@users.noreply.github.com"
] | 50243732+YuanyuanQiu@users.noreply.github.com |
058bce57773cbe810b00372b8d65747d5a7fa838 | d4cc1b7a631f230d77d0a646c602dfbcfa7b3241 | /data_viz_example_two.py | 580605853c73896588eeb29db18c57c765be84d2 | [] | no_license | afcarl/data_analysis_nyu_python_class | 9c7f5e78e902d9aea8f2bad492b83711f01af076 | 15453fe169a1d062f5873b65531652cc8d3ab68b | refs/heads/master | 2020-03-26T02:56:51.009277 | 2017-08-07T23:35:04 | 2017-08-07T23:35:04 | 144,432,254 | 1 | 0 | null | 2018-08-12T02:34:42 | 2018-08-12T02:34:42 | null | UTF-8 | Python | false | false | 256 | py | import pandas as pd
import matplotlib.pyplot as plt
import matplotlib
import seaborn as sns
df = pd.read_csv("ds-all-data.csv")
df["InterestRate"].plot.bar(figsize=(50,10), fontsize=55)
# this is a bad data visualization, please never do this.
plt.show()
| [
"ericschles@gmail.com"
] | ericschles@gmail.com |
09f6c0bd6ee5b91f9d497cf7e884108a4555de15 | 9848a719ddfdd21b5fe1fa2f55da290c0f6952dc | /evaluate-reverse-polish-notation.py | 895b088726fb691153290529c4cba0334b6dd995 | [] | no_license | maomao905/algo | 725f7fe27bb13e08049693765e4814b98fb0065a | 84b35ec9a4e4319b29eb5f0f226543c9f3f47630 | refs/heads/master | 2023-03-13T12:38:55.401373 | 2021-03-25T01:55:48 | 2021-03-25T01:55:48 | 351,278,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | from typing import List
class Solution:
def evalRPN(self, tokens: List[str]) -> int:
stack = []
N=len(tokens)
for i in range(N):
char = tokens[i]
if char in ('+','-','*','/'):
a = stack.pop()
b = stack.pop()
c = 0
... | [
"maoya.sato@gmail.com"
] | maoya.sato@gmail.com |
7c9c792139059ec2adf97180e59f662128f41fde | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_138/700.py | 20bbb874b863f6c5050c9bdf2a20bd08c6bae0be | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | def r():
return map(float, raw_input().split())
def solve():
n = input()
a = r()
b = r()
a.sort()
b.sort()
al, bl = 0, 0
ar, br = len(a) - 1, len(b) - 1
res1 = 0
while al <= ar:
if a[al] < b[bl]:
br -= 1
else:
res1 += 1
bl += 1
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c72d953acf80517a17a65384a90c39b567b357a2 | 1b8b3ab0cf2ffc261223dc20d6acc4fc38f26f5e | /rfmix/rfmixAncNormalizeByIDAverageFB/rfmixAncNormalizeByIDAverageFB.py | 6194198de567130a0cab968f6b7f05b0de8ddb7e | [
"MIT"
] | permissive | wavefancy/BIDMC-PYTHON | e20c88cc7b23bad2595bedd986c5b7215d0d0ef3 | 97c7d3e1bec19dd7fea34d4ecebbdf2af2b1faed | refs/heads/master | 2021-04-15T09:51:34.621392 | 2016-07-30T13:05:35 | 2016-07-30T13:05:35 | 52,634,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | #!/usr/bin/env python
"""
Normalize site observed ancestry by genome-wide average.
2*ID_average - ObservedExpected.
@Author: wavefancy@gmail.com
Usage:
rfmixAncNormalizeByIDAverageFB.py -a IDaverage -i index -n nanc
rfmixAncNormalizeByIDAverageFB.py -h | --help | -v | --version | -f |... | [
"wavefancy@gmail.com"
] | wavefancy@gmail.com |
3f17b0c85914a3cb87e5c31585d38b9fe5243c51 | e0f133b49f9f0f416f14da70a2cadb7011c0cb7b | /new_spider/sx_util/adsl_str_sendpost.py | 2ea8301939320940c1b37658fbc1863e32368396 | [] | no_license | cash2one/python_frame | ac52d052fd3698303f1f4fa022f3b35a56e07533 | 2dbda155780a19cf42d5376104879d0667fbbf75 | refs/heads/master | 2021-06-18T13:28:40.356527 | 2017-06-28T02:51:35 | 2017-06-28T02:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,869 | py | # -*- coding:utf-8 -*-
conf_str = """
# -*- coding: utf8 -*-
import urllib2
from redirect import UnRedirectHandler
import urllib
import config
import json
import base64
import os
import sys
import re
reload(sys)
sys.setdefaultencoding('utf8')
import subprocess
import time
class AdslDownLoader(object):
def __init... | [
"1925453680@qq.com"
] | 1925453680@qq.com |
4788ad871ae36f41ad954990c11baa03952c223e | d18d0dd6d6d1eb5ebcb45faa196711c8841d4850 | /菜鸟教程Python3实例/18.py | 077bbade5197f78be840e5460782381f06f355bb | [] | no_license | EruDev/Python-Practice | 011b0e5b17db9852ff8391bc717f59e1fa81596b | 4f243212ed900e14a438f0be55ac6fb65a768de4 | refs/heads/master | 2021-09-05T18:42:08.950348 | 2018-01-30T10:05:17 | 2018-01-30T10:05:17 | 116,343,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | # 斐波那契数列指的是这样一个数列 0, 1, 1, 2, 3, 5, 8, 13,
# 特别指出:第0项是0,第1项是第一个1。从第三项开始,每一项都等于前两项之和。
def fibo(n):
if n == 0:
return 0
elif n == 1:
return 1
else:
return fibo(n-1) + fibo(n-2)
def print_fibo(scope):
for i in range(scope):
print('%d,' % fibo(i), end='')
if __name__ == '__main__':
while True:
number = i... | [
"1027926875@qq.com"
] | 1027926875@qq.com |
027b47a3b0e7fa352e35dc5a8424590e885bcb45 | adb112e307f153abaa94dda7effdc423fc0ee307 | /arrays/array_data/MeerKAT/mk_MeerKAT_array_configs.py | 15b146ef7084077ab16e80c87273c25e40edfaa0 | [
"MIT"
] | permissive | crpurcell/friendlyVRI | 2ae1898ae950f18c674fad00eca42a6938e529ac | 0399f15a7d9600346b3773076774959d52122d16 | refs/heads/master | 2022-05-31T20:09:40.974220 | 2022-05-19T04:23:00 | 2022-05-19T04:23:00 | 83,502,326 | 45 | 11 | MIT | 2022-01-11T05:01:43 | 2017-03-01T02:30:16 | Python | UTF-8 | Python | false | false | 1,861 | py | #!/usr/bin/env python
telescope = "MeerKAT"
latitude_deg = -30.7131694444444
diameter_m = 12.0
import os
import sys
from util_misc import ascii_dat_read
#-----------------------------------------------------------------------------#
def main():
# Read the pad lookup table
col, dummy = ascii_dat_read("MeerK... | [
"cormac.r.purcell@gmail.com"
] | cormac.r.purcell@gmail.com |
b3ea594e3457770dda905e7eb53dd84104eb980f | f42b7bdd99da1726ad10bf7b0e3a399c6b2ed5b3 | /examples/linkproppred/ppa/node2vec.py | 53d032d9e3b82bc782deceafa03551ba2c98785d | [
"MIT"
] | permissive | fagan2888/ogb | 12bfe37b38d562d64d7ca7af8f46fc1e2f335dea | eaf5a8e8dfb06233eeb21bd29c9ae35f334d2d55 | refs/heads/master | 2021-04-02T14:56:40.214763 | 2020-03-18T04:49:17 | 2020-03-18T04:49:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | import argparse
import torch
from torch.utils.data import DataLoader
from torch_geometric.nn import Node2Vec
from ogb.linkproppred.dataset_pyg import PygLinkPropPredDataset
@torch.no_grad()
def save_embedding(model):
model.eval()
device = model.embedding.weight.device
embedding = model(torch.arange(mod... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
a42fe7bb24f200ea49ea2a61318c473390447878 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/terraform/checks/resource/aws/test_DLMEventsCrossRegionEncryption.py | 792379e31b8c90c503035475303997d51136cd03 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,367 | py | import os
import unittest
from checkov.runner_filter import RunnerFilter
from checkov.terraform.checks.resource.aws.DLMEventsCrossRegionEncryption import check
from checkov.terraform.runner import Runner
class TestDLMEventsCrossRegionEncryption(unittest.TestCase):
def test(self):
runner = Runner()
... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
49e973bc8af23acfd54a335b7fad87d0f87d07bf | 588aa970b426072043321b115d1f5d0692c914d2 | /0-jakc/jasper_sale_report/__openerp__.py | 29d74b05e344b442a47d5f61f562655cee0418cd | [] | no_license | wahhid/project0001 | d9f09f7c4baea70845935dbf90facdd6a6ddc3d7 | 2e37065fdd3e24ab0ed54fb4210a545882b8711f | refs/heads/master | 2021-09-07T20:27:56.225604 | 2018-02-28T14:33:28 | 2018-02-28T14:33:34 | 108,944,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | {
'name' : 'Sale Report',
'version' : '1.0',
'author' : 'Jakc Labs',
'category' : 'Generic Modules/Sale',
'depends' : ['sale'],
'init_xml' : [],
'data' : [
'wizards/sale_report_view.xml',
'views/sale_report_menu.xml',
'reports/report_customer_sale_summary_view.xml',
... | [
"wahhid@gmail.com"
] | wahhid@gmail.com |
878c7fb52333f54e6a4ae0d7d98aef8d8da303f8 | f504253210cec1c4ec6c3ea50a45564db7d6cd7f | /prettyqt/syntaxhighlighters/highlightrule.py | d33d65379f41e0152849c70782ff83b9468285db | [
"MIT"
] | permissive | phil65/PrettyQt | b1150cb4dce982b9b8d62f38f56694959b720a3e | f00500d992d1befb0f2c2ae62fd2a8aafba7fd45 | refs/heads/master | 2023-08-30T21:00:08.905444 | 2023-08-17T12:24:45 | 2023-08-17T12:24:45 | 177,451,205 | 17 | 5 | MIT | 2020-08-15T22:21:18 | 2019-03-24T18:10:21 | Python | UTF-8 | Python | false | false | 1,226 | py | # see https://github.com/ITVRoC/SeekurJr/blob/master/seekur_12.04/packages/
# multimaster_fkie/node_manager_fkie/src/node_manager_fkie/yaml_highlighter.py
from __future__ import annotations
from dataclasses import dataclass, field
import re
from prettyqt import gui
@dataclass
class HighlightRule:
regex: str | ... | [
"philipptemminghoff@googlemail.com"
] | philipptemminghoff@googlemail.com |
ae0dfdd4483fee6867780c25521a65dffc4667c6 | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/matplotlib/tight_bbox.py | edddd001959f0db0331f7a227c2e7fd7090ff793 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ec3f59d918e9003d356e15b86d1ba707ff7e82bb7169dcdf5703bc2fed4e99f1
size 2601
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
1620b744c28d12898e218dad70fe777c7fbf2bb6 | 3ff9821b1984417a83a75c7d186da9228e13ead9 | /No_0841_Keys and Rooms/keys_and_rooms_by_dfs.py | 5bfd12062761585f1914cdaa584735391f1095cc | [
"MIT"
] | permissive | brianchiang-tw/leetcode | fd4df1917daef403c48cb5a3f5834579526ad0c2 | 6978acfb8cb767002cb953d02be68999845425f3 | refs/heads/master | 2023-06-11T00:44:01.423772 | 2023-06-01T03:52:00 | 2023-06-01T03:52:00 | 222,939,709 | 41 | 12 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | '''
Description:
There are N rooms and you start in room 0. Each room has a distinct number in 0, 1, 2, ..., N-1, and each room may have some keys to access the next room.
Formally, each room i has a list of keys rooms[i], and each key rooms[i][j] is an integer in [0, 1, ..., N-1] where N = rooms.length. A key ro... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
c1851c79185c7f99e18d8c8ffd0259a22b1fd978 | 21f8a6f018748aa714bd63d68944d6474f011781 | /coverage_wss/vrep_ros_interface/devel/lib/python2.7/dist-packages/vrep_common/srv/_simRosGetLastErrors.py | 7e50787698ed4444c043f7bdbc522f586e097308 | [] | no_license | ElliWhite/group_1_coverage | e04dd3d5374cad76b3914bf0dfca719dc934989e | 565c325e4dc4188716f5233b6de05671a3d89b1c | refs/heads/master | 2020-05-27T17:27:37.807828 | 2019-05-29T21:48:43 | 2019-05-29T21:48:43 | 188,720,706 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,852 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from vrep_common/simRosGetLastErrorsRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class simRosGetLastErrorsRequest(genpy.Message):
_md5sum = "d41d8cd98f00b204... | [
"elliott.white@students.plymouth.ac.uk"
] | elliott.white@students.plymouth.ac.uk |
a64140c2f072629cb579b7329ab09fb637e2241d | 1cc66a57fe98b8a151e35ab2b7ad997d49b32ae0 | /v04-oop重构/vs.py | d7f42b5c327670d2279b5d2d54a491392e5badcf | [] | no_license | daiyeyue/HTTP_Project | ea232c3545595eebd2d8d00e4ac82498114f3b58 | aa1c9b1f45fc57898d6512b9ce668d56a26574d5 | refs/heads/master | 2020-12-07T16:40:51.988116 | 2020-03-14T10:16:53 | 2020-03-14T10:16:53 | 232,752,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,019 | py | import socket
import threading
'''
步骤 1. 定义两个类
2. 每个类定义构造函数和需要运行的方法
'''
class SocketHandle():
def __init__(self, sock):
self.sock = sock
# 放置Http请求的头部信息
self.headInfo = set() # 创建集合
def startHandler(self):
'''
处理传入请求做两件事情
1. 解析http协议
2. 返回n内容
... | [
"150064328@qq.com"
] | 150064328@qq.com |
c173c50324292b5270f1597bcfe35eb503201454 | bf5b33eaf338a33f44b6d69a40a4e244f473a1a0 | /ENV/bin/tkconch | 1abfac51986e8766bc094509fcf77a5007e17d1a | [] | no_license | luke-zhu/cs1951a-midterm-report | 356ad628cb426622ae87d3f873c7f00cb6106b7a | 19ea744303428ac508b5f1872502120924be0c98 | refs/heads/master | 2021-06-13T19:09:31.007927 | 2017-04-06T20:09:39 | 2017-04-06T20:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | #!/Users/lukezhu/Documents/cs1951a/web-scraping/ENV/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from twisted.conch.scripts.tkconch import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"luke_zhu@brown.edu"
] | luke_zhu@brown.edu | |
478912c96f049d4e9b63bdb4b4d6a7aee6aee567 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/cherrypy/lib/jsontools.py | 166daf6baba7ecea15edcdf051433bfd4615f3d8 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 2,012 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\cherrypy\lib\jsontools.py
import sys
import cherrypy
from cherrypy._cpcompat import basestring, ntou, json, json_encode, json_decode
def json_processor(entity):
if not entity.headers.get(ntou('Content-Length... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
b9ae8b8b37695f84db8efbfa323ca211222faa43 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_258/run_cfg.py | 846b06c0ad681b8a047d60ca3fb904460fd6337b | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_m... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.