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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dcaa5f0a9632efd7fbc43f1cdf8d739b0161c222 | 1d2bbeda56f8fede69cd9ebde6f5f2b8a50d4a41 | /hard/python3/c0006_37_sudoku-solver/00_leetcode_0006.py | b12724d00299702d5e3f0bb08ed2233d0c6d66e9 | [] | no_license | drunkwater/leetcode | 38b8e477eade68250d0bc8b2317542aa62431e03 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | refs/heads/master | 2020-04-06T07:09:43.798498 | 2018-06-20T02:06:40 | 2018-06-20T02:06:40 | 127,843,545 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # DRUNKWATER TEMPLATE(add description and prototypes)
# Question Title and Description on leetcode.com
# Function Declaration and Function Prototypes on leetcode.com
#37. Sudoku Solver
#Write a program to solve a Sudoku puzzle by filling the empty cells.
#A sudoku solution must satisfy all of the following rules:
#Each... | [
"Church.Zhong@audiocodes.com"
] | Church.Zhong@audiocodes.com |
16a31b69d896402cb06e319c17af7fcaddfc80e1 | fd56bcee0326b529eaf66462827ec0bf790c3335 | /days33/非阻塞模型/服务端.py | 4c09ecd799b80ff203bd598805aa7ed69eadab80 | [] | no_license | 95Li/oldboy-learning-code | d1ff638e7d9db27b03afde1ff99844f3de2d9f46 | dbf97bd5bfb906bce4e92cc378aef277e6ebd443 | refs/heads/master | 2020-03-21T15:59:31.604549 | 2018-06-27T14:32:12 | 2018-06-27T14:32:12 | 138,744,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | from socket import *
import time
s=socket()
s.bind(('172.0.0.1',8080))
s.listen(5)
s.setblocking(False)
r_list=[]
w_list=[]
while True:
try:
conn,addr=s.accept()
r_list.append(conn)
except BlockingIOError:
print('ganhuo')
print('rlist',len(r_list))
... | [
"861083372@qq.com"
] | 861083372@qq.com |
f99afe6266414414ff87f689507fa29216429229 | 8ca6f67883355bd9678a3b8a26ec7fe7b464f5c1 | /project/deluxenation/urls.py | a6b9c3c3b09a2dcc9fba1dedda77b6389c95600e | [] | no_license | mmahnken/deluxenation | 868f971f1d2d73052e5f8a3444a7751141710c02 | 35f94a053db378dc4835868766e69c836f58eb1c | refs/heads/master | 2020-09-21T20:52:56.268009 | 2017-02-06T05:21:42 | 2017-02-06T05:21:42 | 66,738,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"mmm25eg@gmail.com"
] | mmm25eg@gmail.com |
f78c278d29399237b8c709646ac66aac72e5c105 | ba54b70f93fe7f9d114623d76b1ad3f88309d66f | /paysto/templatetags/paysto_tags.py | 9b92d8d51facb7986b806436b724bb611b2dd303 | [] | no_license | loobinsk/newprj | 9769b2f26092ce7dd8612fce37adebb307b01b8b | c6aa6a46973fb46375f4b05a86fe76207a8ae16d | refs/heads/master | 2023-05-07T00:28:44.242163 | 2021-05-25T08:22:05 | 2021-05-25T08:22:05 | 370,617,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | #-*- coding: utf-8 -*-
from django import template
from paysto import PAYSTO_ONLINE_MERCHANT_NOCART_URL
from paysto.forms import PaymentForm
from django.conf import settings
from paysto.models import BasePayment
from django.utils.safestring import mark_safe
register = template.Library()
@register.inclusion_tag('pay... | [
"root@bazavashdom.ru"
] | root@bazavashdom.ru |
a3a575bf96ed9e2f22999b912246dbf230f5d0c3 | 9b6db11ea5bf899625857078988e1d66fbd14212 | /iphoto2html/iphotodata.py | 232745a728d98e2f80b12129c43a3169feb85404 | [
"Apache-2.0"
] | permissive | mblondel/iphoto2html | d5757c8350470f36128b6633433b0667997c509f | 95c48847972d5d1c595f44fac6edbfaa72c9ac88 | refs/heads/master | 2020-05-31T17:27:31.323177 | 2014-05-11T05:42:27 | 2014-05-11T05:42:27 | 19,658,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,489 | py | '''iPhoto database: reads iPhoto database and parses it into albums and images.
@author: tsporkert@gmail.com
This class reads iPhoto image, event, album information from the file
AlbumData.xml in the iPhoto library directory. That file is written by iPhoto
for the media browser in other applications. All data are
org... | [
"mathieu@mblondel.org"
] | mathieu@mblondel.org |
450d68a0e2c390a31c2a557f70788062ceb572ce | 048d13616971fdaf17947bf1f3b1840a30a5f6c8 | /apps/team/migrations/0002_auto_20150904_1835.py | 0b28c5bb3ba3fe9fb3786db434dec753d3076860 | [] | no_license | ImgBotApp/manutd.org.np | 449955a89959d0781f181e71ec8be5c1c8ae3c42 | 18a53f7f4c4d4e0b47a22e5b5cb99069fd257d00 | refs/heads/master | 2021-06-24T06:58:53.269028 | 2017-09-09T15:22:25 | 2017-09-09T15:22:25 | 103,154,757 | 2 | 0 | null | 2017-09-12T04:46:16 | 2017-09-11T15:40:14 | JavaScript | UTF-8 | Python | false | false | 1,586 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('team', '0001_initial'),
]
operat... | [
"xtranophilist@gmail.com"
] | xtranophilist@gmail.com |
b63539f52ac4f3863fe9cef412753b80adfc6b28 | f9a8aecd848bcc79052ca068cc73850a63e6dfcf | /data/datasets/resampling/adaptive/importance_sampler.py | 4112726c0616b4e253a6b9843e212d7b614c2d40 | [
"MIT"
] | permissive | khoehlein/fV-SRN-Ensemble-Compression | 537981a1cd31565bb504b00ca730e8bf87e7e0ef | 2780b83d2594c1b38b57ab58087b46bee4b61e8b | refs/heads/master | 2023-04-17T09:42:48.037397 | 2022-09-07T08:55:01 | 2022-09-07T08:55:01 | 532,983,107 | 4 | 1 | null | 2022-09-06T14:39:26 | 2022-09-05T16:43:24 | Python | UTF-8 | Python | false | false | 7,115 | py | import argparse
from typing import Optional
import torch
from matplotlib import pyplot as plt
from common.mathparser import BigInteger
from inference import IFieldEvaluator
from data.datasets.resampling.coordinate_box import CoordinateBox, UnitCube
from data.datasets.resampling.adaptive.density_tree_sampler import Fa... | [
"kevin.hoehlein@tum.de"
] | kevin.hoehlein@tum.de |
642167e640746fc13d9a13edf17d6d566e7db7ae | bd4270073cbdbafb8471bbdfe9a7fcfc75836384 | /gen_yield_for.py | 29f87e20a29a3bba8bb32624604fd0c06547e069 | [] | no_license | Hemanthtm2/learning.python | 03c5fccb0ca205dba3edd418cbf2fecad34aa532 | c93d30fcb4982f27153a3f649d2bdc4d50c56b1b | refs/heads/master | 2020-04-08T14:19:35.508613 | 2018-10-10T17:17:40 | 2018-10-10T17:17:40 | 159,431,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/python
def print_squares(start,end):
for x in range(start,end):
yield x**2
for n in print_squares(2,5):
print(n)
| [
"hemanthtm2@gmail.com"
] | hemanthtm2@gmail.com |
1c7f5661d1a446f130607f085ddd3c15eec9fba3 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/str_cat-151.py | a0cd8b6099dc04249949a943feb61cd8816d1ab4 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | a:str = "Hello"
b:str = "World"
c:str = "ChocoPy"
def cat2(a:str, b:str) -> str:
return a + b
def cat3(a:str, b:str, c:str) -> str:
return a + b + c
print(cat2(a, b))
print(cat2("", c))
print(cat3(a, " ", c))
$ID(len(a))
print(len(cat2(a,a)))
print(len(cat2("","")))
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
34db2935861aff91fac8d19719716dccc6985fe1 | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /PhysFit/P2VV/scripts/makeTaggingPlots.py | 9203415e21f19de2f7d583b37d49ab21e2526125 | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,276 | py | # script paramters
plotsFilePath = 'plots/Reco14/20112012Reco14_tagging.pdf'
dataSetFilePath = '/project/bfys/jleerdam/data/Bs2Jpsiphi/Reco14/P2VVDataSets20112012Reco14_I2Mass_6KKMassBins_2TagCats_HLT2B_20140619.root'
fullDataSetName = 'JpsiKK'
sigDataSetName = 'JpsiKK_sigSWeight'
cbkgDataSetName = 'JpsiKK_cbkgSWeig... | [
"liblhcb@cern.ch"
] | liblhcb@cern.ch |
58fd807cb9a2b63b9454583672f45c3ed6e352bd | 1213bcf770a94a89b39be8dc7b99a3f7e35fd369 | /src/alloy/tracing/channels/sources.gypi | cfba212621fc7e84a88c971af264625490afb49a | [] | no_license | wtfaremyinitials/xenia | c86e4625a1dd084d97d44c3242e2faf208bca2b8 | 16b3ecd5897051f82bc236ad9a4d0ab5cab22e87 | refs/heads/master | 2020-12-31T02:43:53.168712 | 2014-01-14T22:06:05 | 2014-01-14T22:06:05 | 15,918,955 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | gypi | # Copyright 2013 Ben Vanik. All Rights Reserved.
{
'sources': [
'file_channel.cc',
'file_channel.h',
],
}
| [
"ben.vanik@gmail.com"
] | ben.vanik@gmail.com |
988555a631d55ed2a9abdd2e1a296ccacb0d9a19 | 90f46ef9cd25460a05f10a4fb440c396debdb518 | /address_old/app/config.py | b45dabe418e678e9aaad311863de1cb8db82d09b | [] | no_license | khanh-trieu/folder-erp-lap-tsg | addf543c1ed2b27beb0fe9508a4db835e258dc15 | 151335a5f9364d66a456f174e2b621a2d8a9727e | refs/heads/master | 2023-04-19T13:49:28.134422 | 2021-05-20T02:46:32 | 2021-05-20T02:46:32 | 369,057,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py |
API_GET_PROVINCE = 'https://api.mysupership.vn/v1/partner/areas/province'
API_GET_DISTRICT = 'https://api.mysupership.vn/v1/partner/areas/district?province='
API_GET_WARD = 'https://api.mysupership.vn/v1/partner/areas/commune?district='
MSG_SUCCESS = 'Thành công!' | [
"Tsg@1234"
] | Tsg@1234 |
8b21e646fd26e249fa7cc2a641e4665b65831e68 | 0308ca5b152a082c1a206a1a136fd45e79b48143 | /usvao/prototype/vaopy/tickets/VAOPD-892/tests/dal/testQueryNoNet.py | 3feb0711d89be9813fcef7ab72cdca7914c90cad | [] | no_license | Schwarzam/usvirtualobservatory | b609bf21a09c187b70e311a4c857516284049c31 | 53fe6c14cc9312d048326acfa25377e3eac59858 | refs/heads/master | 2022-03-28T23:38:58.847018 | 2019-11-27T16:05:47 | 2019-11-27T16:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,204 | py | #!/usr/bin/env python
"""
Tests for vaopy.dal.query
"""
import os, sys, shutil, re, imp, glob
import unittest, pdb
from urllib2 import URLError, HTTPError
import vaopy.dal.query as dalq
import vaopy.dal.dbapi2 as daldbapi
# from astropy.io.vo import parse as votableparse
from astropy.io.votable.tree import VOTableFile... | [
"usvirtualobservatory@5a1e9bf7-f4d4-f7d4-5b89-e7d39643c4b5"
] | usvirtualobservatory@5a1e9bf7-f4d4-f7d4-5b89-e7d39643c4b5 |
b6d8f27ccd78ce668ead8011086bf2b955637496 | 67932bfe656c093cc306d4c9bca682140d21a470 | /loopsByRecursion.py | 06f6799b5a153b5acb0049b7e7e2968688365091 | [] | no_license | dases/recursion_examples | bb8769c0f64ef8e612660547c00693ede725f72f | 3733045157d0daf5016e0213eeace8f968203311 | refs/heads/master | 2023-07-16T05:46:51.521638 | 2021-09-01T21:27:34 | 2021-09-01T21:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | def theLoop(i):
if i < 4: # Stops when false.
# RECURSIVE CASE
# The main code:
print(i, 'Hello!')
theLoop(i + 1) # Increment i.
return
else:
# BASE CASE
return
theLoop(0) # Start i at 0. | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
83bf67157c94ca91dcfad4370e48441432eeff06 | 3de2a746243ad1cb000994a06a0f9699db9a901f | /abc083b.py | 25f54f5c86bcc9984b5f3c4dbc00bddd018005eb | [] | no_license | takumi152/atcoder | 71d726ffdf2542d8abac0d9817afaff911db7c6c | ebac94f1227974aa2e6bf372e18605518de46441 | refs/heads/master | 2022-10-30T12:14:41.742596 | 2022-09-29T19:49:32 | 2022-09-29T19:49:32 | 181,502,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py |
def main():
buf = input()
buflist = buf.split()
N = int(buflist[0])
A = int(buflist[1])
B = int(buflist[2])
sum = 0
for i in range(1, N + 1):
count = 0
for d in [int(d) for d in str(i)]:
count += d
if count >= A and count <= B:
su... | [
"takumi152@hotmail.com"
] | takumi152@hotmail.com |
ab4543f40cd972aedbc022fa7146b96e31d0acb6 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/networkx/readwrite/graphml.py | e732e75ebcf81e1438ca3a072c6ff5c70d2f61f3 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,908 | py | """
*******
GraphML
*******
Read and write graphs in GraphML format.
This implementation does not support mixed graphs (directed and unidirected
edges together), hyperedges, nested graphs, or ports.
"GraphML is a comprehensive and easy-to-use file format for graphs. It
consists of a language core to describ... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
0442dccb71f8076d97bd44918f3116cd9633224c | 75fe89a5ca7ceb91757199c4dde6fd20a69c94b9 | /pygmsh/circle_arc.py | 527ec58c5c88de3903e536d467a0c54bbda050b0 | [
"MIT"
] | permissive | guifon1000/pygmsh | 39d1c1d3e890f64afa94e35e6da4e0c6967d3373 | ce6bf8f080c359b1ab81c9d1adee6a81d3419d51 | refs/heads/master | 2021-01-22T23:53:42.835887 | 2017-03-20T13:45:53 | 2017-03-20T13:45:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
#
from .line_base import LineBase
from .point import Point
class CircleArc(LineBase):
def __init__(self, points):
super(CircleArc, self).__init__()
for p in points:
assert isinstance(p, Point)
self.points = points
self.code = '\n'.join([
... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
229da8f1da7b2924a17df7c56df8eef9f31d5ee1 | bc0d87befa0329c50c2e57ead730050b648e15c6 | /leaning_logs/models.py | 48d76ed238355d3f04b39298a65d73a02204d8a6 | [] | no_license | YGragon/DjangoLearningLogs | 85a0598849600536cdbf45cfb9444f36dfd31c57 | e3228aed7aa181d657b9aa58d93e9d37f09d918d | refs/heads/master | 2021-09-10T19:36:52.924500 | 2018-04-01T00:11:13 | 2018-04-01T00:11:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | from django.db import models
from django.contrib.auth.models import User
import json
from datetime import date, datetime
class Topic(models.Model):
"""用户要学习的主题."""
text = models.CharField(max_length=200)
date_added = models.DateTimeField(auto_now_add=True)
# 外键是用户,可以通过这个外键确定这个主题属于哪个用户
owner = model... | [
"1105894953@qq.com"
] | 1105894953@qq.com |
ca87266c74882e0db39d481e2bf5488941ec7f3e | 61e4cb5f60541939e122714aa085f2028a7904c5 | /duckdown/tool/provision/utils.py | 90d0b5cfc9e95d9eee414dbe564ed3dae2034188 | [
"MIT"
] | permissive | blueshed/duckdown | 1a07bf541a5849000d9e8622622cc67a3bec933f | e6d0e62d378bd2d9ed0cd5ce4bc7ab3476b86020 | refs/heads/master | 2023-01-30T12:18:05.713016 | 2020-12-08T20:38:36 | 2020-12-08T20:38:36 | 314,370,191 | 0 | 0 | MIT | 2020-12-08T14:54:11 | 2020-11-19T21:06:47 | Python | UTF-8 | Python | false | false | 711 | py | """ utils """
import boto3
from pkg_resources import resource_filename
def get_bucket_arn(bucket_name, region="", account_id=""):
""" We need the arn of a queue """
bucket_arn = f"arn:aws:s3:{region}:{account_id}:{bucket_name}"
return bucket_arn
def get_aws_region_account():
""" Return the aws regio... | [
"pete@blueshed.co.uk"
] | pete@blueshed.co.uk |
7190f1bfb7ef37d25eff124ec59c652fd6d5cdf5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02947/s893966605.py | 67b744e4b961123394465b52cb99e7a525a91c56 | [] | 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 | 667 | py | from collections import defaultdict
from collections import deque
from collections import Counter
import itertools
import math
def readInt():
return int(input())
def readInts():
return list(map(int, input().split()))
def readChar():
return input()
def readChars():
return input().split()
def comb(n,r):
retur... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6671affb60476364415d4f792368ccdf01def877 | 0a949a1774607543de2dd5edf3a7efbbed3744c5 | /Day 25 power of 2.py | 498bb09544dee2f1fa49029e65f9e1572b050b82 | [] | no_license | AprajitaChhawi/365DaysOfCode.MARCH | ac46631665e508372b3ad6c9d57c89906f657f3d | dc1f70339491eb3ee194c62e1ded28695097d166 | refs/heads/main | 2023-03-28T12:34:56.499942 | 2021-04-01T17:45:22 | 2021-04-01T17:45:22 | 343,509,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #User function Template for python3
class Solution:
##Complete this function
# Function to check if given number n is a power of two.
def isPowerofTwo(self,n):
co=0
while(n>0):
n=n&(n-1)
co=co+1
if(co==1):
return 1
return 0
##Your ... | [
"achhawip@gmail.com"
] | achhawip@gmail.com |
9dcec2f68efa859cd5ef76a564687c9193dc6fd4 | 80b7f2a10506f70477d8720e229d7530da2eff5d | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/dhcphostsoptions_191fedb8ef50cd521c12d7ded5cc3bc5.py | 3b4eeaaa7619f809955d955aec4990941c12f30d | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 8,259 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
d3fecc8b89dd54cd773450d6b1f0371b7586260a | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/55/usersdata/67/23126/submittedfiles/av2_p3_civil.py | 021be36901210757e4d1cd358ae7703c7b0c0ed6 | [] | 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 | 379 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
n=input("Digite a dimensão da matriz:")
pdp=input("Digite a posição a qual deseja pesar o valor da peça:")
linha=n
coluna=n
a=np.zeros((linha,coluna))
for i in range (0,a.shape[0],1):
for j in range (0,a.shape[1],1):
a[i,j]=input(... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
3edb99208215975625109feab3b281a6d20663b2 | c2fef17ef7644316da7f1f1d3819f67a4cdb21cb | /python/L1TCSCTF_cfi.py | 444847f551d3ae500d20283e9f2b8119607e6a63 | [] | no_license | rjwang/CSCTFDQM | cde5e937c3029a8309c189b20ad8253ff4e16df6 | 3dc419fad4f2cbf1b0cd1d4fb172a175f26d7025 | refs/heads/master | 2016-09-15T13:59:42.321400 | 2014-11-17T12:15:38 | 2014-11-17T12:15:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | import FWCore.ParameterSet.Config as cms
l1tCsctf = cms.EDAnalyzer("L1TCSCTF",
#gmtProducer = cms.InputTag("gtDigis"),
gmtProducer = cms.InputTag("null"),
statusProducer = cms.InputTag("csctfDigis"),
outputFile = cms.untracked.string(''),
lctProducer = cms.InputTag("csctfDigis"),
verbose = cms... | [
"r.jiewang@gmail.com"
] | r.jiewang@gmail.com |
a4479a3d1bc8e0e338b8104a625f384ee5214c0c | 47c39800fa6f928e0d13f26727ba52bda2aa6ff0 | /One/migrations/0013_knowledgemediastore_m_k_ip.py | 3c2b40b750f7a0ed28e290d0e62cc7022e06c04f | [
"MIT"
] | permissive | dddluke/zhihuipingtai | 952ed5f9a4011cb4fb2765a0571c978af784d708 | 4e46e01440f8c270c05259ac0f38bd56dd04016c | refs/heads/master | 2023-03-09T03:32:47.807760 | 2021-02-26T02:36:10 | 2021-02-26T02:36:10 | 341,816,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | # Generated by Django 3.1.2 on 2020-10-13 08:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('One', '0012_solution_s_user_name'),
]
operations = [
migrations.AddField(
model_name='knowledgemediastore',
... | [
"lukeli0306@gmail.com"
] | lukeli0306@gmail.com |
c6c98662e4fa436e5465b70a23c3c113752a5975 | 1b287461e9bb550b96c1e2eff7e6c716ab7d536e | /pytorch/neuralNetwork.py | 5ee68b460804d9842c9aa3027d8dfb849cc9aadf | [] | no_license | TQCAI/python-study-notebook | 64b9c7bfaa6c47ef2d783aa2a36ba914d13b9db2 | e0a9eee556c3da7441e5be6ee4baf16f1ae075a9 | refs/heads/master | 2020-05-18T19:28:27.998087 | 2019-05-04T10:29:10 | 2019-05-04T10:29:10 | 184,609,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
# 1 input image channel, 6 output channels, 5x5 square convolution
# kernel
self.conv1 = nn.Conv2d(1, 6, 5)
self.conv2 = nn.Conv2d(6, 16... | [
"1468632627@qq.com"
] | 1468632627@qq.com |
6ecdc9780c6cd6e6fa0b22b17660a4e8a3cd2d8a | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba3689.pngMap.py | 4333c396bc7970c3323a63989426ae8f56f57b9d | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba3689.pngMap = [
'11111111111111111111111111111111111111111111111111111111111111000000111111111111111111111111111111111111111111111111111111111111',
'11111111111111111111111111111111111111111111111111111111111111000000111111111111111111111111111111111111111111111111111111111111',
'1111111111111111110000111111111111000... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
be374b162f988d88dda2b249e3f6c373e8addd04 | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/10868/10868.py3.py | d822d78334509fa88d0777cfd0db8f9b9b10472d | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,372 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
4d4d91dbf71adc295e441bc7d03a0ec941967878 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_8965.py | 60985953452cc8e3a19e764e0aa2103646d7d4f7 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | # Use python to run shell script with Popen behaves differently in python command line and actual program
from subprocess import Popen, PIPE
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
a5e60e51f46f0f4c1de4519f9e3ed6e437e72ee2 | 0862943574c7cbf98f7d049a516e8caf204304d1 | /todo_list.py | 3802e8c3b0c13da8abc8fac0eeef687f9a4748c8 | [] | no_license | MsMunda/Fun | 4a29a4d70e8f46e8d94c385831a7a49135566104 | 6d22207b75a59cb53d1d2e85549472571feeb1c5 | refs/heads/master | 2021-01-20T03:23:27.051210 | 2017-04-27T01:08:24 | 2017-04-27T01:08:24 | 89,535,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | """This is a Terminal-based program that allows a user to create and edit a to-do list.
The stub of each function has been provided. Read the docstrings for what each
function should do and complete the body of the functions below.
You can run the script in your Terminal at any time using the command:
>>> pytho... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
848cf25049faf52b0f930681494b0600a719b9da | 4a3bf95187335a8d46139b1d7a67586e96eb387f | /venv/Scripts/easy_install-script.py | 7527f9f055f57237c2921b4ee8431cf9d8aefd47 | [] | no_license | ares5221/python-Learning | 6f786b9edf081010cd6f2ad684f505d30da8d4a8 | 4ae77239e2b91bb84b306930af88b5035b897963 | refs/heads/master | 2021-06-04T03:00:17.338022 | 2020-04-13T08:14:06 | 2020-04-13T08:14:06 | 134,068,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #!G:\pythonLearningWorkSpace\python-Learning\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"674361437@qq.com"
] | 674361437@qq.com |
a9c3e5697018a920d3e2f4f5430092dd2011706e | ec00584ab288267a7cf46c5cd4f76bbec1c70a6b | /offline/__Digital_Twin/__release2/__release2_sprint4/15619 - Link the asset locations to local weather/dev/dev.py | 585898cda425bdfd488487cf9f2d129e386b1a2e | [] | 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 | 2,116 | py |
# -*- coding: utf-8 -*-
# Copyright (c) 2017 Iotic Labs Ltd. All rights reserved.
from __future__ import unicode_literals, print_function
from json import dumps
import logging
logging.basicConfig(format='%(asctime)s %(levelname)s [%(name)s] {%(threadName)s} %(message)s', level=logging.WARNING)
logger = logging.getL... | [
"46024570+rahuldbhadange@users.noreply.github.com"
] | 46024570+rahuldbhadange@users.noreply.github.com |
9b42299d9d109563fa71c7a5fed85b1ebd999120 | 36907c0840b34687026b3439a06c49e5c0d2ef11 | /tests/test_file.py | 752908478767a7efc177298baf3fad6d612dd537 | [
"BSD-2-Clause"
] | permissive | melscoop/pydeps | f5585adde69dfc2afd82254260a5dd4750cf57f2 | c6078821222b314e2befbc6723a36967a9b5a47b | refs/heads/master | 2023-08-29T00:19:55.845364 | 2021-10-14T06:07:02 | 2021-10-14T06:07:02 | 423,976,408 | 1 | 0 | BSD-2-Clause | 2021-11-02T19:51:10 | 2021-11-02T19:39:42 | null | UTF-8 | Python | false | false | 713 | py | # -*- coding: utf-8 -*-
import os
from tests.filemaker import create_files
from tests.simpledeps import simpledeps
def test_file():
files = """
a.py: |
import collections
"""
with create_files(files) as workdir:
assert simpledeps('a.py') == set()
def test_file_pylib():
f... | [
"bp@datakortet.no"
] | bp@datakortet.no |
105b3a2100dc54523233be6553a7d540acbaf799 | b8fb2620257b6286871211b7bde1cd8a0a5468db | /ts_feature_extractor.py | c86913b859b6d8d349b58a479f536fd14205f9ff | [] | no_license | mehdidc/elnino | f9aac0c586317d261151265cbd0290ae351731b8 | 7b85ad180634f1db4a61654d1475f54c60b694a4 | refs/heads/master | 2021-01-10T07:34:57.507222 | 2015-06-04T07:15:35 | 2015-06-04T07:15:35 | 36,854,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | import numpy as np
en_lat_bottom = -5
en_lat_top = 5
en_lon_left = 360-170
en_lon_right = 360-120
def get_enso_mean(tas):
"""The array of mean temperatures in the El Nino 3.4 region at all time points."""
return tas.loc[:, en_lat_bottom:en_lat_top, en_lon_left:en_lon_right].mean(dim=('lat','lon'))
class Feat... | [
"mehdi@cherti.name"
] | mehdi@cherti.name |
d5d85c91e7b3eb67b2067d90181727ba54def11a | 3db7b5409f2f9c57ab3f98bda50f8b548d98063d | /tests/system/test_list_rows.py | 4c08958c37ac71ea16fd4a02c8b4507fedecac2b | [
"Apache-2.0"
] | permissive | googleapis/python-bigquery | 66db156b52e97565f6211b2fab5aac4e519fa798 | 3645e32aeebefe9d5a4bc71a6513942741f0f196 | refs/heads/main | 2023-09-01T07:41:24.893598 | 2023-08-23T19:04:13 | 2023-08-23T19:04:13 | 226,992,475 | 622 | 287 | Apache-2.0 | 2023-09-12T04:31:26 | 2019-12-10T00:09:04 | Python | UTF-8 | Python | false | false | 4,455 | py | # Copyright 2021 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 to in writing, s... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
61d4759ecc91732720a3b6343a276d796bea8fd6 | 6aa7e203f278b9d1fd01244e740d5c944cc7c3d3 | /airflow/api_connexion/schemas/event_log_schema.py | 0753a8a104a44ec8b1a0d3b8965e9cd0eee383b3 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | laserpedro/airflow | 83fc991d91749550b151c81876d9e7864bff3946 | a28afa8172489e41ecf7c381674a0cb91de850ff | refs/heads/master | 2023-01-02T04:55:34.030935 | 2020-10-24T15:55:11 | 2020-10-24T15:55:11 | 285,867,990 | 1 | 0 | Apache-2.0 | 2020-08-07T15:56:49 | 2020-08-07T15:56:49 | null | UTF-8 | Python | false | false | 1,861 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | laserpedro.noreply@github.com |
5c25a940343aea2972f36ee9b25e6e5a5019f0f5 | 9e567b8241ce00e9d53843f5aba11c4a119b079f | /tags/v0_61_0/htdocs/tut/silly_axes.py | acdd1abf85c5ec85aa02e9070be482fceec67f1b | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | neilpanchal/matplotlib | 3d2a7133e858c4eefbb6c2939eb3f7a328b18118 | 7565d1f2943e0e7b4a3f11ce692dfb9b548d0b83 | refs/heads/master | 2020-06-11T09:20:43.941323 | 2011-01-21T21:50:16 | 2011-01-21T21:50:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from matplotlib.matlab import *
t = arange(0, 2.1, 0.1)
rc('grid', color=0.75, linewidth=1.5)
rc('tick', color='b', labelsize=14)
a = subplot(111)
plot(t, t**2, '-')
title('Custom axes using rc')
grid(True)
savefig('custom_axes')
show()
| [
"(no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed"
] | (no author)@f61c4167-ca0d-0410-bb4a-bb21726e55ed |
e3c9eebf31eb84021294e0f466f8819622e71363 | 7b65481a7183f56a8b4ba2bce08cd1131cebe0e6 | /infinitelooper.py | 0365155016e44f11023400bc8ece254156932bd4 | [] | no_license | guadalupeaceves-lpsr/class-samples | 17e261084de2e64ceae6daaaac5a53618eeafb37 | bc5c096453243ef76ca6854d54232ea234ba24b5 | refs/heads/master | 2021-01-21T04:48:01.443832 | 2016-06-13T03:50:15 | 2016-06-13T03:50:15 | 48,007,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | print("What's your favorite number?")
num = int(raw_input())
while num != 14:
print("Nope, I don't like it. Choose another.")
num = int(raw_input())
| [
"lps@lps-1011PX.(none)"
] | lps@lps-1011PX.(none) |
63366e5426c932f5970b06f1ed4796f94c709e38 | 3fd9c7ee49a32eae3013191b63154a9a5d6dafe6 | /12.6驾驶飞船/12.6.3左右移动/ship_3.py | 29b66748188b9598c3cd9ceb7bfaba5932bbc169 | [] | no_license | taozhenting/alien_invasion | e0c03cd9797cb33e40ca47a13eadeda8b1c4cf85 | fd9bd97d6238da702fbb1eb6fcb78e8352875fe2 | refs/heads/master | 2020-04-27T05:31:48.862784 | 2019-01-30T09:43:49 | 2019-01-30T09:43:50 | 174,083,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | #增加左边移动
import pygame
class Ship():
#screen参数指定了飞船绘制到什么地方
def __init__(self,screen):
"""初始化飞船并设置其初始位置"""
self.screen = screen
#加载飞船图像并获取其外接矩形
#调用pygame.image.load()这个函数返回一个表示飞船的surface并存储到了self.image
self.image = pygame.image.load('images/ship.bmp')
#rect处理对象是矩形,... | [
"taozt@ichile.com.cn"
] | taozt@ichile.com.cn |
0640154e6d006f7e8cd5a8a84feb4397adea1e62 | 3dbb38734200935f143ea8b6446e9bf32a4a16ee | /PyClient/TableOfLife/app/forms.py | 2f670b63694db308562266cdc27f51cebb639723 | [] | no_license | k-t-l-h/TableOfLife | 4624938a2edff3b5de336c30fec5775a5e3971cf | f0ceefe499b9a5a76b9f15201cbd409fa75f0605 | refs/heads/main | 2023-05-14T09:39:37.406622 | 2021-06-03T19:35:43 | 2021-06-03T19:35:43 | 345,408,827 | 0 | 2 | null | 2023-02-17T18:58:24 | 2021-03-07T17:26:42 | C++ | UTF-8 | Python | false | false | 1,125 | py | from django.core.exceptions import ValidationError, ObjectDoesNotExist
from django.contrib.auth.models import User
from django.core import validators
from django import forms
import re
class AskForm(forms.Form):
classes = forms.CharField(label='О предметах:', widget=forms.Textarea(
attrs={'class': 'form-c... | [
"you@example.com"
] | you@example.com |
4b019b306236babfdf442ed4b7f1e6d0ebb21614 | ae8a89e90b4d69a061076563ba68272d27e5c664 | /HIDS/main.py | a75779d5ec65158a8c28c296ca08fbb8d7b57269 | [] | no_license | Louis-Saglio/python_script | 8d1a65f704c21eb3b2fee17e63b8d2b467764bb0 | f039e61078f5eb18d3334c4940d794fa5bc5f67d | refs/heads/master | 2022-12-21T21:37:07.234976 | 2017-10-29T15:52:47 | 2017-10-29T15:52:47 | 106,963,199 | 0 | 1 | null | 2022-12-09T03:22:11 | 2017-10-14T21:11:03 | Python | UTF-8 | Python | false | false | 255 | py | import filecmp
import os
def rlistdir(path='.'):
for directory, sub_dir, files in os.walk(path):
for file in files:
yield os.path.join(directory, file)
if __name__ == '__main__':
for i in rlistdir('/usr'):
print(i)
| [
"louis.saglio@sfr.fr"
] | louis.saglio@sfr.fr |
bcfaee049701f0696da3a47ef641b699bbe4b7cd | c5f58af61e3577ded52acda210f4f664651b598c | /template/mmdetection/configs/foveabox/fovea_r50_fpn_4x4_1x_coco.py | 2b00ad2faf61e2c437b5237d9de02049a81edf57 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hojihun5516/object-detection-level2-cv-02 | 0a4ee5cea9a77ef5d43fb61a4b37fe3a87cb0eac | bc8a08286935b31b8e7e597c4b1ca2cbbaeb9109 | refs/heads/master | 2023-08-31T09:50:59.150971 | 2021-10-16T15:00:19 | 2021-10-16T15:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | _base_ = ["../_base_/datasets/coco_detection.py", "../_base_/schedules/schedule_1x.py", "../_base_/default_runtime.py"]
# model settings
model = dict(
type="FOVEA",
backbone=dict(
type="ResNet",
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
no... | [
"hojihun5516@daum.net"
] | hojihun5516@daum.net |
6357de8a8bbeccf5484ff2c1b1e34b8452d63ff4 | 8a12d939f01a179c1fb8b7e72d8cb1c7d4970b6f | /tools/train.py | ebc65480c5fc9610caee60b39c0eafdd4661cecf | [
"Apache-2.0"
] | permissive | 459737087/mmflow | bebd2da1bd87e9b5b2a1a10ecdc61558978610d9 | a32f7af12f1a0d2ae3f962f4c94a4a1680c7a19e | refs/heads/master | 2023-09-03T03:04:40.010033 | 2021-11-18T04:35:06 | 2021-11-18T04:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,433 | py | # Copyright (c) OpenMMLab. All rights reserved.
import argparse
import copy
import os
import os.path as osp
import time
import mmcv
import torch
from mmcv import Config, DictAction
from mmcv.runner import init_dist
from mmcv.utils import get_git_hash
from mmflow import __version__
from mmflow.apis import set_random_s... | [
"meowzheng@outlook.com"
] | meowzheng@outlook.com |
73575c45ed55b4146558350ddb50d28b66091187 | 8ef5a09d76a11c56963f18e6a08474a1a8bafe3c | /leet_code/18. 4Sum.py | 972245f09f2573fa6cc14283b372bbd0b6f022b4 | [] | no_license | roiei/algo | 32c4677649c7666db148f6183fbfbf66c8b1969f | ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec | refs/heads/master | 2022-04-01T19:21:27.768675 | 2022-02-19T06:15:29 | 2022-02-19T06:15:29 | 169,021,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py |
import time
from util.util_list import *
from util.util_tree import *
import copy
import collections
import bisect
class Solution:
def fourSum(self, nums: [int], target: int) -> [[int]]:
n = len(nums)
res = set()
nums.sort()
for i in range(n - 2):
for ... | [
"hyoukjea.son@hyundai.com"
] | hyoukjea.son@hyundai.com |
d009fd95134a3669c4c74320b9db66ee498878d4 | 81e706b69c789aff05691c41fa79156942927f82 | /site-packages/tensorflow/python/keras/callbacks.py | 5d086dc28d5ff15b78374ab770676dcc6059d4b8 | [] | no_license | yoncho/OpenCV-code | f5a1091ef32f3c8c3254ab93e083950b84c4fabd | bda2f793b11462e67c7ab644b342beffb871e3de | refs/heads/master | 2023-03-30T12:01:23.521511 | 2021-04-01T13:45:44 | 2021-04-01T13:45:44 | 291,398,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,839 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"yoncho@student.42seoul.kr"
] | yoncho@student.42seoul.kr |
e8f99e195a00a7eb686066deabd7198bdbd95ded | 0db97db08743783019efe022190f409d22ff95bd | /aliyun/api/rest/Cdn20141111DescribeCdnMonitorDataRequest.py | 589fb0bb77c88eb908d460a95e93610af5c76c7d | [
"Apache-2.0"
] | permissive | snowyxx/aliyun-python-demo | 8052e2a165f1b869affe632dda484d6ca203bd9b | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | refs/heads/master | 2021-01-10T03:37:31.657793 | 2016-01-21T02:03:14 | 2016-01-21T02:03:14 | 49,921,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | '''
Created by auto_sdk on 2014.11.27
'''
from aliyun.api.base import RestApi
class Cdn20141111DescribeCdnMonitorDataRequest(RestApi):
def __init__(self,domain='cdn.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.DomainName = None
self.EndTime = None
self.StartTime = None
def geta... | [
"snowyxx@126.com"
] | snowyxx@126.com |
0f787c236ec1a8d885a4ef087fc082373227c8bc | 7f523c407d45d116860eff67f079e807f2b53339 | /src/third_party/beaengine/tests/0fc0.py | 0ac3b3878d9ad1a76c66fa1cc72d3a95f77ed24d | [
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"MIT"
] | permissive | 0vercl0k/rp | a352c96bfe3715eb9ce8c5942831123e65289dac | b24e7f58a594aaf0ce3771745bf06862f6ecc074 | refs/heads/master | 2023-08-30T08:03:14.842828 | 2023-08-09T00:41:00 | 2023-08-09T00:41:00 | 3,554,173 | 1,557 | 239 | MIT | 2023-08-09T00:41:02 | 2012-02-26T19:26:33 | C++ | UTF-8 | Python | false | false | 2,280 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This progra... | [
"noreply@github.com"
] | 0vercl0k.noreply@github.com |
99987cf070bb316131b7d0ea14e3388a616f9a15 | 20be441085d9a9ae41dcf8e4dd5f416bcd3f22da | /botapi/type_cast.py | ad3483bde31f98a71ed76a913e083021fa977960 | [
"Apache-2.0"
] | permissive | santarovich/botapi | 928aaf48c44167b6893c51df738b9dc50873073a | dfb5161be08d0c045d70e023842144c4a18e012c | refs/heads/master | 2023-03-16T10:51:00.997084 | 2020-12-22T09:33:44 | 2020-12-22T09:33:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,052 | py | from datetime import datetime
from typing import Any
from .exceptions import TypeCastException
from .serialize import SerializableModel
from .types import TypedList, DateTime
def type_cast(func):
def wrapper(var_name: str, value: Any, *args, **kwargs):
if value is None:
return None
re... | [
"rineisky@gmail.com"
] | rineisky@gmail.com |
f7503c9a867b753e4c09c2fade37efbef3ea46d8 | 9c73eccb0f27ee98452864e6388802e1c0a9e51c | /py_tdlib/constructors/stickers.py | 4e1794bd2471db1a883cd9ab46fffe75f0da5e8d | [
"MIT"
] | permissive | Tempah28/python-tdlib | 32a684cba6f5b8fcd5673d01a06f926304d29c5b | 925781f2ef9e386dab437334048c798fa9cb945f | refs/heads/master | 2020-03-31T00:16:06.943269 | 2018-10-05T14:16:12 | 2018-10-05T14:16:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | from ..factory import Method, Type
class stickers(Type):
# a list of stickers @stickers List of stickers
stickers = None # type: "vector<sticker>"
class getStickers(Method):
# stickers from the installed sticker sets that correspond to
# given emoji. If the emoji is not empty, favorite
# r... | [
"andrew@localhost"
] | andrew@localhost |
159c3758b380920b7b9c253c437fa4ad4939b8f9 | e8e4bb89c6ce57c038de445091ddebc1c1b6eb26 | /DataProcessing_1418merged/CF1_merged_reconstruction.py | 207351cab222fb8c1799a14ab3f481dc095780f2 | [] | no_license | ilebras/OSNAP | dc7fba846f866ec64edab35a278d2ce6c86e5f97 | a5b22026351d2eb8dc4c89e2949be97122936d23 | refs/heads/master | 2021-05-12T16:46:18.955345 | 2020-09-08T23:04:23 | 2020-09-08T23:04:23 | 117,025,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,880 | py | from firstfuncs_1618 import *
dat16=xr.open_dataset(datadir+'OSNAP2016recovery/mcat_nc/CF1_2016recovery_dailymerged.nc')
dat16_recon=xr.open_dataset(datadir+'OSNAP2016recovery/mcat_nc/CF1_recon_2016recovery_dailymerged.nc')
dat18=xr.open_dataset(datadir+'OSNAP2018recovery/mcat_nc/CF1_2018recovery_dailymerged.nc')
... | [
"isabela.lebras@gmail.com"
] | isabela.lebras@gmail.com |
0564a1a72dcfd96a4e5f97d467c399d260cf2044 | 6ba8a0ebb55fee0406da9e4c6784def6391cf61b | /pyartcd/pyartcd/cli.py | 62569db660eb11953ff60867489214cead41a104 | [
"Apache-2.0"
] | permissive | gabemontero/aos-cd-jobs | a354d680250bf306a90a24ec5023cf203658df59 | 0208570f5bf14d6f9672da84b0edb6cffaaded92 | refs/heads/master | 2021-09-28T04:57:13.789002 | 2021-09-21T09:18:05 | 2021-09-21T09:18:05 | 96,802,806 | 0 | 0 | null | 2017-07-10T17:17:20 | 2017-07-10T17:17:20 | null | UTF-8 | Python | false | false | 2,047 | py | import asyncio
from functools import update_wrapper
import logging
from pathlib import Path
from typing import Optional
import click
from pyartcd.runtime import Runtime
pass_runtime = click.make_pass_decorator(Runtime)
def click_coroutine(f):
""" A wrapper to allow to use asyncio with click.
https://github... | [
"yuxzhu@redhat.com"
] | yuxzhu@redhat.com |
5e03d1a71d8a7262ee7ec1c4f55eb8fa0a2af5da | b48ca98425b9510d16623277a0761a33c00d028d | /SeatReservation-Version3.0/SeatReservation-master/venv/Lib/site-packages/pip-9.0.1-py3.6.egg/pip/_vendor/requests/packages/urllib3/connection.py | 496d7048b6cdceee53feae1715a631d048b1b441 | [] | no_license | billgoo/WHULibSeatReservation | f74a01db19f51a2034772d932c59afd9f63c7753 | 5423ef7df253739ccf279365c1dec1ebfe7f2c4f | refs/heads/master | 2020-04-02T07:18:33.174744 | 2018-12-23T15:26:15 | 2018-12-23T15:26:15 | 154,190,237 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,923 | py |
import datetime
import logging
import os
import sys
import socket
from socket import error as SocketError, timeout as SocketTimeout
import warnings
from .packages import six
try: # Python 3
from http.client import HTTPConnection as _HTTPConnection
from http.client import HTTPException # noqa: un... | [
"noreply@github.com"
] | billgoo.noreply@github.com |
433aa413dbbf3fa57c5763bd7eb0530e55be08f0 | 830465731dfda87b4141546262f20d74c29297bf | /Games/DagwCTF2020/TakeItBackNow/client0.py | 3e577c3492467502cc615738464b2bae91453420 | [] | no_license | jchen8tw-research/CTF | f559d7ca0e16a730335b11caeeae208c42e8bf17 | f49615c24437a9cc6a2c20d6b30cb5abf7a32b71 | refs/heads/master | 2023-03-17T12:29:08.630613 | 2021-03-23T06:31:26 | 2021-03-23T06:31:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | # -*- coding: utf-8 -*-
"""
Created for Spring 2020 CTF
Cryptography 0
10 Points
Welcome to my sanity check. You'll find this to be fairly easy.
The oracle is found at umbccd.io:13370, and your methods are:
flg - returns the flag
tst - returns the message after the : in "tst:..."
@author: pleo... | [
"cpr1014@gmail.com"
] | cpr1014@gmail.com |
b542e098a92e72342cb38640aacc06125c27de7f | 998610ed0b370c5beb73d908164d07f6f9a692ab | /tachovendo_proj/settings/base.py | 2eeb26e276275d69531b6b692436f73ad4a6f279 | [] | no_license | loogica/tachovendo_backend | d372f0032cc5ab02883c433cc2ed36467adf85c9 | 4333a55716df31897eeecb84ffa019456336e010 | refs/heads/master | 2016-09-06T08:06:07.003269 | 2013-06-04T01:03:36 | 2013-06-04T01:03:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,111 | py | # coding: utf-8
"""Common settings and globals."""
import os
from os.path import abspath, basename, dirname, join, normpath
from sys import argv, path
from unipath import Path
########## PATH CONFIGURATION
# Absolute filesystem path to the Django project directory:
DJANGO_ROOT = dirname(dirname(abspath(__file__)))... | [
"felipecruz@loogica.net"
] | felipecruz@loogica.net |
2b17d640e22b95cc5a61021381c03af14f83aee7 | a30362e51cb3291daf26d0c62e56c42caeec837f | /python/acmicpc/unsolved/8984.py | e9fc6b9f6e862ee51d73a36e02a12d6bc484c6b5 | [] | no_license | TERADA-DANTE/algorithm | 03bf52764c6fcdb93d7c8a0ed7a672834f488412 | 20bdfa1a5a6b9c378e588b17073e77a0126f7339 | refs/heads/master | 2023-04-14T21:40:11.250022 | 2023-04-12T13:00:37 | 2023-04-12T13:00:37 | 288,335,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | import sys
input = sys.stdin.readline
n, l = list(map(int, input().split()))
lines = [list(map(int, input().split())) for _ in range(n)]
def solution(n, l, lines):
return n, l, lines
print(n, l, lines)
| [
"55175301+TERADA-DANTE@users.noreply.github.com"
] | 55175301+TERADA-DANTE@users.noreply.github.com |
3f14475e0c2863c12b7447c7a82f14ad759b824e | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/class맴버변수_20200708170750.py | 62351d8c9312e58d87ab4c22a5685c88c76c9c41 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | class Unit:
def __init__(self, name, hp, damage):
self.name = name
self.hp = hp
self.damage = damage
print("{0} 유닛이 생성 되었습니다.".format(self.name))
print("체력 {0}, 공격력 {1}".format(self.hp, self.damage))
# 레이스 : 공중 유닛, 비행기, 클로킹 (상대방에게 보이지 않음)
wraith = Unit
| [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
76c6674b3a2fb4f35bd3276d78443a663070b14f | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2950/60632/269982.py | e99e3be7a8277b32c3e022c23301da28661ec71a | [] | 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 | 273 | py | s = list(input())
if len(s) % 2 == 1:
print(-1)
else:
result = 0
for i in range(len(s)):
if s[:i].count('5') > s[:i].count('2'):
result = -1
break
result = max(s[:1].count('2')-s[:1].count('5'), result)
print(result)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
54a8883bb18ba783ca7d90de1608b104223d1c3f | 30dbb8c5a5cce9dfea904924f00a1451abd0c88b | /이분탐색/입국심사.py | d1b435138bd0d7498ccb48efc79bedafab3961ee | [] | no_license | gksrb2656/AlgoPractice | 7eac983509de4c5f047a880902253e477f4ca27c | 5285479625429b8ef46888c8611dc132924833b7 | refs/heads/master | 2020-12-22T17:20:33.677147 | 2020-09-22T16:05:53 | 2020-09-22T16:05:53 | 236,872,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | def solution(n, times):
l = 1
r = max(times)*n
answer = 0
while l <= r:
mid = (l + r) // 2
flag = 0
people = 0
for t in times:
people += mid // t
if people >= n:
flag = 1
answer = mid
break
if... | [
"rbcjswkd@gmail.com"
] | rbcjswkd@gmail.com |
149a39da8051edd413bd0e53d557532e042ebf01 | fc6f0806292263bbfb2055587468df68ab6a950e | /tests/test_mixins.py | dad5938477e9c873a7c71c6b6f343aff1a6fd7b9 | [
"Apache-2.0"
] | permissive | WithPrecedent/sourdough | 8c0a5cff14c2257162fd1d66bf03a5a53f6a9571 | e42f81e5b27b067e13ff17338300e56c23ae4cad | refs/heads/master | 2023-03-03T16:23:10.857530 | 2021-02-10T04:49:57 | 2021-02-10T04:49:57 | 261,512,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | """
test_mixins: unit tests for Component mixins
Corey Rayburn Yung <coreyrayburnyung@gmail.com>
Copyright 2020-2021, Corey Rayburn Yung
License: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0)
"""
import dataclasses
import sourdough
@dataclasses.dataclass
class AComponent(
sourdough.Bunch,
sourdou... | [
"coreyrayburnyung@gmail.com"
] | coreyrayburnyung@gmail.com |
20878697ebaf854f56e4a45f312b2032fba93a2c | ef8c5c55b6ec3971adff9afe2db1f76556b87082 | /code_examples/PyKIM/util/convert_coord/test_cart_cs.py | 73f53cd89f0df756db61dc64bfb03fbd2688b823 | [] | no_license | wbkifun/my_stuff | 7007efc94b678234097abf0df9babfbd79dcf0ff | 0b5ad5d4d103fd05989b514bca0d5114691f8ff7 | refs/heads/master | 2020-12-10T22:40:28.532993 | 2017-11-15T11:39:41 | 2017-11-15T11:39:41 | 5,178,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,608 | py | import numpy as np
from numpy import pi, sin, cos, tan, sqrt
from numpy.random import rand, randint
from numpy.testing import assert_equal as equal
from numpy.testing import assert_array_equal as a_equal
from numpy.testing import assert_array_almost_equal as aa_equal
from nose.tools import raises, ok_
import sys
from ... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
7ba4723843b10f4bdde50acfefd5f04d1227d875 | 4344f7d6b3c26e8cb9c666ca0a1dc81d5d484fca | /4-auth/bookshelf/model_cloudsql.py | 5ceac779fc83be92f4bf47d5d8bd2c1317916370 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dpebot/getting-started-python | 5beec5a68738ae47ed4bb642a7f4a119052ee6b6 | 07ce28b40c9be8555cb8575b83d7ba836b6483f2 | refs/heads/master | 2020-12-26T04:38:09.399296 | 2016-08-03T18:16:30 | 2016-08-03T18:16:30 | 65,573,255 | 4 | 3 | null | 2016-08-12T17:59:13 | 2016-08-12T17:59:13 | null | UTF-8 | Python | false | false | 3,043 | py | # Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"jon.wayne.parrott@gmail.com"
] | jon.wayne.parrott@gmail.com |
4bf42f64d15e50c0c51bbc1ad46db6a070cd95e2 | d5d2ddfb2f6a4d025d0d323d343550d11990674f | /model/scripts/main_mutual_information_MSN.py | d3113bb158c04dbcb81800724706ff0a482a1844 | [] | no_license | mickelindahl/dynsyn | 5d710fa67d31f344c56c3b853b9d78af1f297fbf | c05a74c0f7dd977742ce55220d12270c03147e0f | refs/heads/master | 2021-01-01T05:37:57.452690 | 2015-02-23T10:16:44 | 2015-02-23T10:16:44 | 30,537,438 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,161 | py | import numpy
import pylab
import os
import sys
import time as ttime
# Get directory where model and code resides
model_dir= '/'.join(os.getcwd().split('/')[0:-1])
code_dir= '/'.join(os.getcwd().split('/')[0:-2])
# Add model, code and current directories to python path
sys.path.append(os.getcwd())
sys.path... | [
"mickelindahl@gmail.com"
] | mickelindahl@gmail.com |
7be3f8d94e75750a876f1605eeeddd32844a7051 | 0131d8d133725aed18f0a5838ec49878c0a85cfe | /opy/opy_main.py | 1775be52cabea2892d6e5dc6cf7990c94f7987ef | [
"Apache-2.0"
] | permissive | bysshe/oil | 0d7e853adb2aa8560832eed72daf1284955b5573 | 62cd4928c0e71f9cd254062204227a8d8cf1cb23 | refs/heads/master | 2021-01-19T23:54:01.609581 | 2017-04-17T15:58:29 | 2017-04-17T21:53:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,064 | py | #!/usr/bin/python
"""
opy_main.py
"""
from __future__ import print_function
import cStringIO
import codecs
import io
import os
import sys
import marshal
import logging
# Like oil.py, set PYTHONPATH internally? So symlinks work?
# Actually '.' is implicitly in PYTHONPATH, so we don't need it.
# If we were in bin/oil.... | [
"andy@oilshell.org"
] | andy@oilshell.org |
28cd2ba0f453c1e05fbe64bea3586c73a9f79d23 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_ic1.py | dfa06f08d6b858b4ef14780d7a8e80c0a989bcb7 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | from xcp2k.inputsection import InputSection
class _ic1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Print_ic_list = None
self.Eps_dist = None
self.Optimize_homo_lumo = None
self.Gw_eigenvalues = None
self.Gw_eigenvalues_beta = None
sel... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5f7c905b69a5173153cc985d9e73093dceb5a83f | 5c531de5e4759c904e608b4fc653b2b041f79a0e | /Amazon_735. Asteroid Collision.py | 6737b4cae3d0689e2f94c48aac92eb951b2c6267 | [] | no_license | jianhui-ben/leetcode_python | 133c7e6e5c7316d00607ba2e327239e002de28b2 | fcc16124cc24a5993e27f5d97e78d8f290e68230 | refs/heads/master | 2022-06-05T22:32:18.034581 | 2022-05-17T02:27:11 | 2022-05-17T02:27:11 | 250,683,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,407 | py | #735. Asteroid Collision
#We are given an array asteroids of integers representing asteroids in a row.
#For each asteroid, the absolute value represents its size, and the sign represents
#its direction (positive meaning right, negative meaning left). Each asteroid moves
#at the same speed.
#Find out the state of th... | [
"jianhui.ben@gmail.com"
] | jianhui.ben@gmail.com |
4b6a65ee5967997a435363f289387f57cd5f8fef | 36dbd31536a4084db83d12b2bd12a9f22f4da636 | /geomdl/abstract.py | 614834b2701d5c774f0342a7c385090e5edb4f75 | [
"Python-2.0",
"MIT"
] | permissive | Hgser/NURBS-Python | 75d38a21721d9afd3d5f8491bf8ba56d71a2285a | ced4debdf4fc13afce9b830a2962da2789e5c45b | refs/heads/master | 2020-04-27T00:42:17.632484 | 2019-02-28T05:21:20 | 2019-02-28T05:21:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103,171 | py | """
.. module:: abstract
:platform: Unix, Windows
:synopsis: Provides abstract base classes for parametric shapes
.. moduleauthor:: Onur Rauf Bingol <orbingol@gmail.com>
"""
import copy
import abc
import six
import warnings
from .evaluators import AbstractEvaluator
from .tessellate import AbstractTessellate
... | [
"orbingol@gmail.com"
] | orbingol@gmail.com |
720fea823a41bf05eb6a14e1f940971f38e10095 | e77a3618d0afe63a2f00d87b61c3f19d3eba10d8 | /plugins/beebeeto/poc_2014_0149.py | ff203f0727674fb7a8ebff1da4a637af1da4eb49 | [] | no_license | Explorer1092/coco | b54e88a527b29209de7c636833ac5d102514291b | 15c5aba0972ac68dc4c874ddacf5986af5ac2a64 | refs/heads/master | 2020-05-31T07:03:19.277209 | 2019-01-29T14:36:45 | 2019-01-29T14:36:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | #!/usr/bin/env python
# coding=utf-8
"""
Site: http://www.beebeeto.com/
Framework: https://github.com/n0tr00t/Beebeeto-framework
"""
import urllib2
from baseframe import BaseFrame
class MyPoc(BaseFrame):
poc_info = {
# poc相关信息
'poc': {
'id': 'poc-2014-0149',
'name': 'D-L... | [
"834430486@qq.com"
] | 834430486@qq.com |
eead8a129c8bd1f58b1499653bdbfad5e2d62157 | 526bf18a8695862067c817f432ab197ceb645f39 | /scrappers/cars/getautofinance/hwy11ram/__init__.py | c8fffab15b7e28ff8f73e39f28b1f956fcff4a4e | [] | no_license | sintimaski/bfs-be | a7fd623911a2220face49a0ef84574f3fd7a09a8 | 964a9c7e9cc876aaf8b0723d6b3f26bd378c3721 | refs/heads/master | 2023-08-02T09:00:44.855055 | 2021-09-22T13:07:01 | 2021-09-22T13:07:01 | 339,531,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | from .hwy11ram import Hwy11RamScrapper
| [
"dimadrebezov@gmail.com"
] | dimadrebezov@gmail.com |
21c0cebb2546807a8dd223104a08e5e29d58ec7c | 62766deea531d0b89b86a53e6f51b94fd2a88f23 | /AtCoder/ABC/131/c.py | fbe2beb18aab0fad58d1c7599493260ae7b68225 | [
"MIT"
] | permissive | ttyskg/ProgrammingCompetition | 53620b07317ae5cbd1ee06272e573e3682ac15f3 | 885c5a1be228ae7ba9f00b3d63521c9ff7d21608 | refs/heads/master | 2023-08-18T08:38:33.068168 | 2023-08-15T04:28:13 | 2023-08-15T04:28:13 | 183,425,786 | 0 | 0 | MIT | 2023-08-15T04:28:14 | 2019-04-25T12:02:53 | Python | UTF-8 | Python | false | false | 476 | py | import sys
def gcd(a, b):
"""Euclidean Algorithm"""
while b != 0:
a, b = b, a % b
return a
def lcm(a, b):
return (a * b) // gcd(a, b)
def main():
input = sys.stdin.readline
A, B, C, D = map(int, input().split())
E = lcm(C, D)
total = B - (A-1)
mul_c = B // C - (A-1) // ... | [
"tatsu100311@gmail.com"
] | tatsu100311@gmail.com |
889b22757513884a8c6c50f0b76bbe2c55a22845 | b515ebbe9b259cf8cc11bae3eb2cd9094d9dac80 | /tests/integration/test_base.py | 09c270270007ae701dc6d64c0735eb0fe39714a5 | [
"MIT",
"Python-2.0"
] | permissive | cambiumproject/python-quickbooks | a234e29555e37399f53a9909cf4c3cf61e9e7bc1 | 06110a4a88bb47b2e6349a193908c083d506dde1 | refs/heads/master | 2023-08-07T20:15:14.600671 | 2021-07-20T21:53:59 | 2021-07-20T21:53:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | import os
from unittest import TestCase
from intuitlib.client import AuthClient
from quickbooks.client import QuickBooks, Environments
class QuickbooksTestCase(TestCase):
def setUp(self):
super(QuickbooksTestCase, self).setUp()
self.auth_client = AuthClient(
client_id=os.environ.get(... | [
"edward.emanuel@gmail.com"
] | edward.emanuel@gmail.com |
843d5c4d45fddd036ed5fa1783b168dbde9b6640 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binary_20200524140021.py | cad576ae530c25621bd03b09d3d763a13dba320b | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | def solution(N):
print(N)
maximumCount = 0
well = format(9,"b")
print("wow",well)
# while( N >= 1):
# N = int(N / 2)
# # print("this",N)
# print("N",N/2,"well",N%2)
# if N % 2 == 0 :
# binaryNumber.append(0)
# else:
# ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
efd20d62075642d05d33586f9a2f19037598aa02 | ee41311a11a1c6baedafd9a914d5a1f8330fe8a9 | /SANEF_LIVE/venv/Lib/site-packages/skimage/segmentation/slic_superpixels.py | b196dbffc726dfb4cbf2e1da2a6e255d3901f1ec | [] | no_license | sethnanati/CodeRepoPython | 2dffb7263620bd905bf694f348485d894a9513db | b55e66611d19b35e9926d1b1387320cf48e177c8 | refs/heads/master | 2023-07-07T11:16:12.958401 | 2021-02-13T10:09:48 | 2021-02-13T10:09:48 | 376,531,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,799 | py | # coding=utf-8
from __future__ import division
import collections as coll
import numpy as np
from scipy import ndimage as ndi
from ..util import img_as_float, regular_grid
from ..segmentation._slic import (_slic_cython,
_enforce_label_connectivity_cython)
from ..color impor... | [
"adeyemiadenuga@gmail.com"
] | adeyemiadenuga@gmail.com |
24b01653afda42c4f298c4de77f67fe16d74d598 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/matplotlib/2017/12/conf.py | c89c9d2c773a8efd08213dff9656b75f7cfde32b | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 18,382 | py | # -*- coding: utf-8 -*-
#
# Matplotlib documentation build configuration file, created by
# sphinx-quickstart on Fri May 2 12:33:25 2008.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# The contents of this file are pickled, so don't put values in the namespace
# that aren't pick... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
0a20a0a7c7b6b3c688405d2ef7bcee0b30ed230f | ee3e0a69093e82deff1bddf607f6ce0dde372c48 | /coding_test/카카오 인턴/num_4.py | 226a287c788a6bf68f50fcecbe70e1a4d17bfa7e | [] | no_license | cndqjacndqja/algorithm_python | 202f9990ea367629aecdd14304201eb6fa2aa37e | 843269cdf8fb9d4c215c92a97fc2d007a8f96699 | refs/heads/master | 2023-06-24T08:12:29.639424 | 2021-07-24T05:08:46 | 2021-07-24T05:08:46 | 255,552,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from heapq import heappush, heappop
INF = int(1e9)
def solution(n, start, end, roads, traps):
data = [[] for _ in range(n+1)]
for i in roads:
a, b, c = i
data[a].append((b, c))
def dijkstra(start, end, n, data):
distance = [INF for _ in range(n+1)]
distance[start] = 0
q = []
... | [
"cndqjacndqja@gmail.com"
] | cndqjacndqja@gmail.com |
4489ddbba60f18b2f96f68362668c0918617c6d0 | e96cc817c768915eeff46027ded14e759e8042ff | /Python基础/字符串/判断.py | a08d4cb40f7a539f93ede6b04ae4724cf9c0e573 | [] | no_license | fovegage/learn-python | e22a32207cf513ba0f8c3428e9c00138987c2359 | 93b8d3513769a0b7d492a7b515f289fe3f1efc4a | refs/heads/master | 2023-06-08T13:44:57.274677 | 2023-05-29T05:52:35 | 2023-05-29T05:52:35 | 148,493,932 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | # -*- coding: utf-8 -*-
# @Time : 2018/12/27 14:45
# @Author : fovegage
# @Email : fovegage@gmail.com
# @File : 判断.py
# @Software: PyCharm
# islower 仅对字母判断
str = 'hello'
print(str.islower())
# isalnum() 判断是否由数字和字母组成
str = 'jjjssss22'
print(str.isalnum())
# isalpha() 判断只有字母 26个字母以外均报错
... | [
"fovegage@gmail.com"
] | fovegage@gmail.com |
de75179eb73337e3b223f1e9b50d70bc2438f591 | b2d2ce1752ec5ea39b70ae37551bc162a748b469 | /tests/unit/pypyraws/version_test.py | 4ec7ddabcd59da582daa199da4ef6a25a4c6a7b9 | [
"Apache-2.0"
] | permissive | AvdN/pypyr-aws | 05c28abb904e2f71a0fbdaacaeaf20b458f97c52 | 96477b2deb46b6db73fa6d64f1350991dd378c31 | refs/heads/master | 2021-01-24T06:46:41.130069 | 2017-06-02T15:03:15 | 2017-06-02T15:03:15 | 93,318,585 | 0 | 0 | null | 2017-06-04T14:23:52 | 2017-06-04T14:23:52 | null | UTF-8 | Python | false | false | 319 | py | """version.py unit tests."""
import pypyraws.version
import platform
def test_get_version():
actual = pypyraws.version.get_version()
expected = (f'pypyraws {pypyraws.version.__version__} '
f'python {platform.python_version()}')
assert actual == expected, "version not returning correctly"
| [
"thomas@345.systems"
] | thomas@345.systems |
da5e68cfc1a7005a1e829bc6a913fac6fd2f1f7d | 1e263d605d4eaf0fd20f90dd2aa4174574e3ebce | /components/ally-http/ally/http/spec/server.py | 6712ab685dee0fe68395d0005537a4483bf101b2 | [] | no_license | galiminus/my_liveblog | 698f67174753ff30f8c9590935d6562a79ad2cbf | 550aa1d0a58fc30aa9faccbfd24c79a0ceb83352 | refs/heads/master | 2021-05-26T20:03:13.506295 | 2013-04-23T09:57:53 | 2013-04-23T09:57:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,564 | py | '''
Created on Jun 1, 2012
@package: ally http
@copyright: 2012 Sourcefabric o.p.s.
@license: http://www.gnu.org/licenses/gpl-3.0.txt
@author: Gabriel Nistor
Provides HTTP server specification.
'''
from ally.design.context import Context, defines, requires, optional
from ally.support.util_io import IInputStream
from... | [
"etienne@spillemaeker.com"
] | etienne@spillemaeker.com |
db7daaad0a903a177dcefeb07c6912390cdeb411 | b5fa959a5a1a6cd1e5027e41ed45b6dfb1c19151 | /testapp/tests/test_models.py | 63eb981a166d436d958ec9b87a1b3dde0dbd614a | [
"MIT"
] | permissive | Mikekh84/learning-journal | 13c8e036620d4286f7e6bf3c1d9df0c5e0d368d8 | d0d5af7913790ab895a2fa530aa259cf2934f49b | refs/heads/master | 2021-01-17T17:12:15.009156 | 2016-03-28T02:50:48 | 2016-03-28T02:50:48 | 54,362,834 | 0 | 1 | null | 2016-03-28T02:50:48 | 2016-03-21T05:43:15 | Python | UTF-8 | Python | false | false | 511 | py | # -*- coding: utf-8 -*-
from testapp.models import Entry, DBSession, render_markdown
def test_create_entry(dbtransaction):
"""Test for a change of state of the model."""
new_model = Entry(title="jill", text='jello')
assert new_model.id is None
DBSession.add(new_model)
DBSession.flush()
assert ... | [
"nadia.bahrami@gmail.com"
] | nadia.bahrami@gmail.com |
01fcb935acc0135bfe239ab840b1a23d21b0ad2f | cb79e16729aba7d2ce04a2501cf51bcb4655bc34 | /electrum_axe/gui/qt/util.py | f27835254f268f16de26faf1512143716c5095f9 | [
"MIT"
] | permissive | ddude1/electrum-axe | ecdf69fe1ea4dd28da4817587049920a253974db | b2d030dfc2afb2ca27739b9169ac610c68421dbb | refs/heads/master | 2020-12-14T16:31:00.997749 | 2019-12-16T05:14:40 | 2019-12-16T05:14:40 | 127,673,858 | 0 | 0 | MIT | 2020-01-18T22:36:07 | 2018-04-01T21:45:54 | Python | UTF-8 | Python | false | false | 31,415 | py | import asyncio
import os.path
import time
import sys
import platform
import queue
import traceback
import os
import webbrowser
from functools import partial, lru_cache
from typing import NamedTuple, Callable, Optional, TYPE_CHECKING, Union, List, Dict
from PyQt5.QtGui import (QFont, QColor, QCursor, QPixmap, QStandar... | [
"slowdive@me.com"
] | slowdive@me.com |
e218ccbde421b4913b280795d031f3fc87789818 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/773.py | 30a001a8f7c676f7eb2fe925665c826df0915c48 | [] | 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 | 705 | py | # Problem A. Oversized Pancake Flipper
import os
SOURCE = '%s/../Resources/Q1Al.in' % os.path.dirname(__file__)
TARGET = '%s/../Resources/Q1Al.out' % os.path.dirname(__file__)
INPUT = open(SOURCE).read().splitlines()
OUTPUT = open(TARGET, 'w')
T = int(INPUT.pop(0))
for t0 in xrange(T):
print >> OUTPUT, 'Case #%... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
30bab34cfeff4c18f9f343631ed0cdb6410ae39a | baf3996414315ffb60470c40c7ad797bf4e6897f | /02_ai/1_ml/3_data_preparation/code/chapter_18/02_model_evaluation.py | c6093bdc54ef4415a5811861005577357adb543d | [
"MIT"
] | permissive | thiago-allue/portfolio | 8fbbecca7ce232567aebe97c19944f444508b7f4 | 0acd8253dc7c5150fef9b2d46eead3db83ca42de | refs/heads/main | 2023-03-15T22:10:21.109707 | 2022-09-14T17:04:35 | 2022-09-14T17:04:35 | 207,919,073 | 0 | 0 | null | 2019-11-13T18:18:23 | 2019-09-11T22:40:46 | Python | UTF-8 | Python | false | false | 955 | py | # evaluate knn on the raw diabetes dataset
from numpy import mean
from numpy import std
from pandas import read_csv
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import RepeatedStratifiedKFold
from sklearn.neighbors import KNeighborsClassifier
from sklearn.preprocessing import LabelEn... | [
"thiago.allue@yahoo.com"
] | thiago.allue@yahoo.com |
7bf358f112e3ef7aa77ff185a38d1f372ce35085 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/data_analyze.py | 1b53f51941b2a5bab76c5647d28bf9d31e0e44bf | [] | 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 | 3,937 | py | """
数据分析
详细研究过程见研究报告
"""
import json
import pandas as pd
import numpy as np
from decimal import Decimal
pd.set_option('display.unicode.ambiguous_as_wide', True)
pd.set_option('display.unicode.east_asian_width', True)
def save_as_file(data: dict, filename):
with open(filename, 'w', encoding='utf-8')as json_file:... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b5956f1a4f170c496cdc206d745f9cb2a1b5f2c9 | 10b74a5b6e678e51853611645f7898d2d28eccf8 | /player117.py | 50a13f63fd40e20f130faa5e2c303af0c1080256 | [] | no_license | tigervanilla/Guvi | a31ce1838707c71976a23fd5b25f5ebd9e0656ef | f9363f46f23d8a9b17a14f3d83322f59944a444b | refs/heads/master | 2020-04-01T02:44:43.767502 | 2019-04-18T04:58:40 | 2019-04-18T04:58:40 | 152,793,355 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | a=input()
a=a[::-1]
print(a[0],end='')
for i in a[1:]:
print('-'+i,end='') | [
"piyushcool102@gmail.com"
] | piyushcool102@gmail.com |
c380425895250438ccfe619d806e2cc74a449d63 | f63dc9959bbd596c04f70f671f9b0cbc70adb552 | /env/lib/python3.6/_bootlocale.py | 7d49875e50ddc0d5b5d4af50922354e7dda4ee93 | [] | no_license | paulfranco/imd_api | efa4e5d5399fea191f215d2a8d907adfb55ab31a | 1889290b5596fd1a020c336cc7c28d8521785a15 | refs/heads/master | 2020-03-16T06:30:31.077649 | 2018-05-09T02:10:03 | 2018-05-09T02:10:03 | 132,556,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | /Users/paulfranco/anaconda3/lib/python3.6/_bootlocale.py | [
"paulfranco@me.com"
] | paulfranco@me.com |
c7f5f003abb3040b1524784d99a06585be3ae3cc | 5afd733a5c1f753601c69b8b4eae1b49edfbae7c | /1-100/26.py | fa36e700d0e1f5ab060ef83dfb14183c587f6ef8 | [] | no_license | yanbinbi/leetcode | 9dcd4a0160be915006455b83d6b7cd39e9819811 | 616a868bfa7bdd00195067b0477b0236a72d23e0 | refs/heads/master | 2021-05-13T19:34:17.222576 | 2017-11-12T02:04:31 | 2017-11-12T02:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
size = len(nums)
if size == 0:
return 0
j = 0
for i in range(1,size):
if nums[i] > nums[j]:
j += 1
... | [
"xukaifeng1986@gmail.com"
] | xukaifeng1986@gmail.com |
aa034bd935af2335c3c1651436ae7001c1fde500 | a4525c981552117dabdf5f952ced15997199da32 | /ask-smapi-model/ask_smapi_model/v1/skill/interaction_model/model_type/slot_type_definition_output.py | 5a60b84255908d1a8d2553d4ce4a24b9d61f9ea7 | [
"Apache-2.0"
] | permissive | muskanmahajan37/alexa-apis-for-python | 29b3b8e45bb009fa56ba0a2a73ed2f50efe77f65 | 8e0c90a3031f5afd8a2e62d19b51fe392e7da1af | refs/heads/master | 2022-11-09T01:14:58.947495 | 2020-06-25T17:33:19 | 2020-06-25T17:33:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,919 | py | # coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
# except in compliance with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com"
] | ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com |
46b7f2b1be3242b3a9fd4117a6a4d2ec15eabc2a | 7cb646a87705156e9d6e0b651df4c0a90a99947b | /phy/io/mock/kwik.py | eed05ce223d2cfe13a1c77dd59cf3e8a4654db4d | [] | no_license | cgestes/phy | 1339b8ce46ac076129496745c23d87bfc73e6407 | 8bb7b9377e6376dce46ef123ccc97ecf3671fb15 | refs/heads/master | 2021-01-18T10:21:35.785483 | 2015-04-16T11:42:39 | 2015-04-16T13:51:57 | 30,656,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,009 | py | # -*- coding: utf-8 -*-
"""Mock Kwik files."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import os.path as op
import numpy as np
from ...io.mock.artificial import (artificial_spike_sample... | [
"cyrille.rossant@gmail.com"
] | cyrille.rossant@gmail.com |
c72670766922c59f54f1e38c3251a93c3d29440e | 8ed4bf9fbead471c9e5f88e4d18ac432ec3d628b | /hackerrank/algorithm/string/reduced_string.py | 0fec6e1adc81c9b8b46f35b176b59a2b2e96024b | [] | no_license | hizbul25/programming_problem | 9bf26e49ed5bb8c9c829d00e765c9401222fb35c | 2acca363704b993ffe5f6c2b00f81a4f4eca7204 | refs/heads/master | 2021-01-10T22:28:26.105787 | 2018-01-21T16:45:45 | 2018-01-21T16:45:45 | 65,394,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | # URL: https://www.hackerrank.com/challenges/reduced-string
s = input()
stack = []
for i in range(len(s)):
if not stack or s[i] != stack[-1]:
stack += [s[i]]
else:
stack.pop()
if stack:
print(''.join(stack))
else:
print('Empty String') | [
"hizbul.ku@gmail.com"
] | hizbul.ku@gmail.com |
c2f63be45f8a4ef6445fb0981f9ae21611bb6d46 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/web/v20181101/get_web_app_swift_virtual_network_connection_slot.py | 5279f9e04c7689c8359817ea2659e83821fa878c | [
"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,220 | 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 |
e2daa17da7418fb80cec9ab0745d804c304546ab | fee71dd79c16f8e4aa4be46aa25863a3e8539a51 | /ear/core/delay.py | 58999508e96ec84140b7be0b2066bb0c4deb9373 | [
"BSD-3-Clause-Clear"
] | permissive | ebu/ebu_adm_renderer | d004ed857b3004c9de336426f402654779a0eaf8 | ef2189021203101eab323e1eccdd2527b32a5024 | refs/heads/master | 2023-08-09T09:13:06.626698 | 2022-12-07T12:22:39 | 2022-12-07T12:22:39 | 123,921,945 | 61 | 13 | BSD-3-Clause-Clear | 2023-08-30T17:17:05 | 2018-03-05T13:15:36 | Python | UTF-8 | Python | false | false | 1,676 | py | import numpy as np
class Delay(object):
"""Multi-channel delay line.
Parameters:
nchannels (int): number of channels to process
delay (int): number of samples to delay by
"""
def __init__(self, nchannels, delay):
assert delay >= 0
self.delaymem = np.zeros((delay, ncha... | [
"tom@tomn.co.uk"
] | tom@tomn.co.uk |
42803d5018e53b70b319b1d8fc3cfa2d380118f7 | b8d2f095a4b7ea567ccc61ee318ba879318eec3d | /数组 Array/228. 汇总区间.py | 2459ae5ea8ae5dd79af2263fa4cdbfdda2c61f89 | [] | no_license | f1amingo/leetcode-python | a3ef78727ae696fe2e94896258cfba1b7d58b1e3 | b365ba85036e51f7a9e018767914ef22314a6780 | refs/heads/master | 2021-11-10T16:19:27.603342 | 2021-09-17T03:12:59 | 2021-09-17T03:12:59 | 205,813,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | from typing import List
class Solution:
def summaryRanges(self, nums: List[int]) -> List[str]:
if not nums:
return []
ans = []
lt, rt = nums[0], None
for i in range(len(nums) - 1):
if nums[i + 1] - nums[i] == 1:
# if t is None 和 if... | [
"zsjperiod@foxmail.com"
] | zsjperiod@foxmail.com |
2ec9d717282626becf58a398a994ec197e90f564 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Kivy/python-for-android/pythonforandroid/recipes/ffpyplayer_codecs/__init__.py | 599d8d30207ce572fac347c18e6677d753b80e58 | [
"MIT"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d196a4f300350342824820ae06ebac62968d8b22ad0fd350043b298a302af005
size 206
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
235d72234d9d44c9e16f8a005e6726574387a789 | a689a72d3699883d7b58bd4ee3103373270bd0d5 | /BOJ/Python/BOJ17135.py | 5ecf7f7b4bd365d3f602a3d3ca99da2cd2830899 | [] | no_license | Oizys18/Algo | 4670748c850dc9472b6cfb9f828a3ccad9c18981 | 45caafe22a8a8c9134e4ff3b227f5f0be94eefe7 | refs/heads/master | 2022-05-11T08:35:06.812539 | 2022-05-07T01:30:41 | 2022-05-07T01:30:41 | 202,690,024 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | # 캐슬 디펜스
from pprint import pprint as pp
import collections
import itertools
import copy
N, M, D = map(int, input().split())
mat = [[*map(int, input().split())] for _ in range(N)] + [[0]*M]
archers = [0]*M
def isMap(x, y):
if 0 <= x < N + 2 and 0 <= y < M:
return True
else:
return False
def... | [
"oizys18@gmail.com"
] | oizys18@gmail.com |
6b6946656fd1304aae15c78dde3c42a745ede7da | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2021_10_01_dataplanepreview/operations/_model_versions_operations.py | 96a47546ef9a6da776ce57b212c87f20db9d6679 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",... | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 37,349 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
5770ffe7fdec00cd3c57add6a4c9a57c867b7d78 | 21445827919e574e6150117f9520c5326251c654 | /lib/axis/tb/axis_switch/test_axis_switch.py | 7132a00db6c2daf5401d45cfbca3c819a102aaa4 | [
"MIT"
] | permissive | nyhuang/verilog-ethernet | 0af9b2333f673b1256a26868ce60e946d98be940 | cf832f581cfc43d6eb60af6ec68517f446ed9158 | refs/heads/master | 2023-06-26T04:13:22.530195 | 2021-06-28T08:34:34 | 2021-06-28T08:34:34 | 262,713,491 | 1 | 0 | MIT | 2020-05-10T04:43:45 | 2020-05-10T04:43:44 | null | UTF-8 | Python | false | false | 10,556 | py | #!/usr/bin/env python
"""
Copyright (c) 2021 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merg... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
98f5a7d9ab4b3f578ce6948bda3f56af31438973 | eb42558f56fdb41526cc31ac4ef3a6937bf39e96 | /ConfigDefinitions/UserConfigs/SMHTT_2017_MCOnly_AntiIso_Configs_Deep/WConfig.py | c3c70830e40ca4f509cffad86bf361a53146d0bb | [] | no_license | samhiggie/Jesterworks | 6906b042d3e200efb9bd10b70284ccd30661aa53 | 562e8cbb20d7e4b1d5b9bdba3715578cc66f097d | refs/heads/master | 2020-09-11T19:35:59.770456 | 2019-11-16T12:37:35 | 2019-11-16T12:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | from ConfigDefinitions.JesterworksConfigurations import JesterworksConfiguration as Config
from ConfigDefinitions.BranchAdditions.UserDefinedCollections.SMHTT_2017_MC_Data_Collection import MC_Data_Collection as BranchCollection
from ConfigDefinitions.CuttingDefinitions.UserCutConfigs.SMHTT2017Cuts_MC_AntiIso_wDeep im... | [
"aloelige@cern.ch"
] | aloelige@cern.ch |
109a0b28a419817d509d6d4ce27db19a8f90c3ad | 235fcd12177715b51f26715befb7cb1909f27126 | /sleep_control/experiments/arxiv/experiment_QNN_Jan31_2249_LSTM.py | ad1ee787afca6d41b7db4289cd35014ed9d60009 | [] | no_license | xiaogaogaoxiao/dqn4wirelesscontrol | 1d165977f01e263735865e2b6daeed51c4288b01 | 68c2c485e64cef260c0dcb3975a88af4fae97283 | refs/heads/master | 2020-06-16T17:05:45.038089 | 2017-02-10T07:30:12 | 2017-02-10T07:30:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,160 | py | # System built-in modules
import time
from datetime import datetime
import sys
import os
from multiprocessing import Pool
project_dir = "../../"
log_file_name = "msg_QNN_Jan31_2249_LSTM_{}.log".format(sys.argv[1])
sys.path.append(project_dir)
sys_stdout = sys.stdout
# Project dependency modules
import pandas as pd
pd... | [
"liujingchu@gmail.com"
] | liujingchu@gmail.com |
8ff0c8e47e574a3a1e3a5c08bcb4cd992a48c23a | 7fbf91c595f3adb67e29ab879a0b215581d260bf | /知识点/04-LiaoXueFeng-master/55-urllib.py | f613e42c3282f9ecbfdeb46685e8f672b48fb8c8 | [] | no_license | Randyedu/python | 69947b3836e62d0081d92591ae2acd9a54eadb9a | 5f9e7bec295ae05eadde0f661e7039c2bd08f725 | refs/heads/master | 2021-04-26T22:20:22.555128 | 2018-03-02T07:01:27 | 2018-03-02T07:01:27 | 124,074,741 | 1 | 0 | null | 2018-03-06T12:23:42 | 2018-03-06T12:23:42 | null | UTF-8 | Python | false | false | 4,701 | py | '''
urllib
urllib提供了一系列用于操作URL的功能。
urllib提供的功能就是利用程序去执行各种HTTP请求。如果要模拟浏览器完成特定功能,需要把请求伪装成浏览器。伪装的方法是先监控浏览器发出的请求,再根据浏览器的请求头来伪装,User-Agent头就是用来标识浏览器的。
'''
'''
Get
urllib的request模块可以非常方便地抓取URL内容,也就是发送一个GET请求到指定的页面,然后返回HTTP的响应:
'''
'''
# 对网页进行抓取,并返回响应:
from urllib import request
url = 'https://api.douban.com/v2/book/2129... | [
"954950195@qq.com"
] | 954950195@qq.com |
09ea107626a3b50a80e9b2624651b464bff260df | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /examples/ensemble/plot_gradient_boosting_regularization.py | 30116b2be102df536f491dab433fc757a2c46506 | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,842 | py | """
================================
Gradient Boosting regularization
================================
Illustration of the effect of different regularization strategies
for Gradient Boosting. The example is taken from Hastie et al 2009 [1]_.
The loss function used is binomial deviance. Regularization via
shrinkage (`... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
2c1206ff3140a312e6079a06ddf7380a15553501 | 009c1088e42cd50591946f736c30c0bad6db851b | /netmiko/ssh_exception.py | ad9e728ba282388faa4e5286d0a8f5df8748ee36 | [
"MIT"
] | permissive | hellt/netmiko | 812501b0651db920ac07e09132651eee7bdd4794 | f7ff5e6278acaecff7583518cc97bd945fceddc3 | refs/heads/master | 2021-01-18T12:45:01.751466 | 2016-11-18T23:30:44 | 2016-11-18T23:30:44 | 38,681,423 | 2 | 0 | null | 2015-07-07T10:44:21 | 2015-07-07T10:44:20 | Python | UTF-8 | Python | false | false | 380 | py | from paramiko.ssh_exception import SSHException
from paramiko.ssh_exception import AuthenticationException
class NetMikoTimeoutException(SSHException):
"""SSH session timed trying to connect to the device."""
pass
class NetMikoAuthenticationException(AuthenticationException):
"""SSH authentication excep... | [
"ktbyers@twb-tech.com"
] | ktbyers@twb-tech.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.