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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2b026db65f40353e2fce89ed6aaa3c47c946406 | 293d78382448196e0a2b7b8df51a0bc756ade31f | /word_freq.py | 2bd71bb48fdf8672356d0215c18d60149c61b291 | [] | no_license | alphalzZ/python-advance | e9eab41f2b7ee6a42529cc9208626abf4af06ac0 | f650841effa68c52ec13f5f8bc031d0eb973042d | refs/heads/master | 2022-11-06T00:12:00.153486 | 2020-06-15T08:18:49 | 2020-06-15T08:18:49 | 271,694,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import re
from collections import Counter
if __name__ == '__main__':
txt = open('/etc/yum.conf').read()
word = re.split('\W+',txt)
count = Counter(word)
print(count.most_common(10))
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
e9c0442b915eef2e97f9c5be1c1d0ef58cdacd87 | f2922ab33288ad2999c3a7573b97d51a77b06476 | /Real_Time_Deep_SORT_using_Torchvision_Detectors/utils.py | e2432d82ba4f0eb8da2d9762f0c19db4fc44e762 | [] | no_license | lovelyyoshino/learnopencv | 9323f1689ab7fe87e8e82fe42b09695004bf05c5 | a2b93f81714bc6a72771e04418d7f86be0ead494 | refs/heads/master | 2023-08-31T14:28:33.249044 | 2023-08-28T06:32:39 | 2023-08-28T06:32:39 | 159,625,095 | 4 | 2 | null | 2023-09-12T06:53:42 | 2018-11-29T07:24:33 | Jupyter Notebook | UTF-8 | Python | false | false | 2,054 | py | import cv2
import numpy as np
# Define a function to convert detections to SORT format.
def convert_detections(detections, threshold, classes):
# Get the bounding boxes, labels and scores from the detections dictionary.
boxes = detections["boxes"].cpu().numpy()
labels = detections["labels"].cpu().numpy()
... | [
"sovitrath5@gmail.com"
] | sovitrath5@gmail.com |
b5a4881c8b9d4a8e2fbee9e0704bf1dc05b359de | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02889/s965030104.py | 256eecd89480969ee757c6a7103f4629bcda2de8 | [] | 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 | 922 | py | def warshall_floyd(G):
inf = 10**18
# 重みつきグラフGに対してすべての頂点対の距離を求める
n = len(G)
d = [[inf for i in range(n)] for j in range(n)]
for i in range(n):
d[i][i] = 0
for j in G[i].keys():
d[i][j] = G[i][j]
for k in range(n):
for i in range(n):
for j in range(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5fcdcffa171ade8171d6b56d4e80acf975b4d03f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03353/s201044638.py | dbafba02c82722ec98dbb85c1cdfbe68335ec566 | [] | 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 | 309 | py | # coding: utf-8
import sys
sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))
S = sr()
K = ir()
cand = set()
length = len(S)
for i in range(length):
for j in range(1, 6):
cand.add(S[i:i+j])
answer = sorted(list(cand))[K-1]
print(answer)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4367ad0149890392eb12d92ad2fc4b82eac3451e | a9398a33ba458e6930e8d39bc1c7cab1fc7c2217 | /pyinstaller-darwin.spec | d727b61caa7daad8ce8cce0cfc697639f8bc3a6d | [
"BSD-3-Clause",
"CC-BY-3.0"
] | permissive | caltechlibrary/checkit | 9890a425ecbc05e98f77d6f9440abb26b7b27390 | 2acb28c3c37d28f3545114be68b1083662d5575a | refs/heads/master | 2020-07-04T21:00:40.705073 | 2019-11-20T23:14:05 | 2019-11-20T23:14:05 | 202,414,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,180 | spec | # -*- mode: python -*-
# =============================================================================
# @file pyinstaller-darwin.spec
# @brief Spec file for PyInstaller for macOS
# @author Michael Hucka
# @license Please see the file named LICENSE in the project directory
# @website https://github.com/caltechlib... | [
"mhucka@caltech.edu"
] | mhucka@caltech.edu |
96ea164b6151f121f912aea0b2fc654997a54730 | 53639eec5ac26184132bf16ce8c5bc428ae884a4 | /rcsb/utils/tests-chem/testBatchChemSearch.py | a14c77e55ce7e006f8e8d7dd85cae2859a32a2a3 | [
"Apache-2.0"
] | permissive | rcsb/py-rcsb_utils_chem | df4bcd5d40a9c61d9440e5f72f3077c7192bfa7d | 3d1a1ffc63cbcfcd43e69a58fd7eada17780e636 | refs/heads/master | 2023-06-12T07:07:55.151599 | 2023-05-22T13:35:27 | 2023-05-22T13:35:27 | 212,129,928 | 0 | 3 | Apache-2.0 | 2023-05-22T13:35:28 | 2019-10-01T15:20:58 | Python | UTF-8 | Python | false | false | 3,804 | py | ##
# File: BatchChemSearchTests.py
# Author: J. Westbrook
# Date: 3-Mar-2021
# Version: 0.001
#
# Update:
#
#
##
"""
Tests for batch search mode.
"""
__docformat__ = "restructuredtext en"
__author__ = "John Westbrook"
__email__ = "jwest@rcsb.rutgers.edu"
__license__ = "Apache 2.0"
import logging
import os
imp... | [
"john.westbrook@rcsb.org"
] | john.westbrook@rcsb.org |
b067ac990c99632e78bd24f03594e02932d3680c | 858cd947bad1ba55591ec97952642c5c5ce9cf1f | /base/wechat_public_platform.py | 4d21908c74349e4fe0e65464734e3f9df6515e1d | [] | no_license | jameswjue/wechat-spider | 859ce92505efe07bfd3cc04647065d4d7ef0781c | ea16b8560cf9540d24784281584c2f59d21559e9 | refs/heads/master | 2020-03-23T21:19:37.328665 | 2018-04-16T06:11:28 | 2018-04-16T06:11:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,242 | py | # -*- coding: utf-8 -*-
'''
Created on 2017-11-28 18:34
---------
@summary: 基于微信公众平台取_biz及检查今日是否发文
---------
@author: Boris
'''
import sys
sys.path.append('../')
import init
import utils.tools as tools
from utils.log import log
import random
from base import constance
# 会过期
TOOKEN = 2103841294
... | [
"boris_liu@foxmail.com"
] | boris_liu@foxmail.com |
0d8b8f724ee3472aeac407e4f5e82193b4d53156 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/contractscommon.py | 691f73eac7ce770f1f9af1173b59b96d11ec807b | [] | 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 | 3,862 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\common\modules\nice\client\_nastyspace\contractscommon.py
from eve.common.script.util.contractscommon import CONTRACTS_PER_PAGE
from eve.common.script.util.contractscommon import CONTYPE_AUCTIONANDITEMECHANGE
from eve.common.scri... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
4f8d715eb322a573fe59a0bef7b2d3b60821e79d | d684237925e552a6ebcf56aeb3e65c254cbc37b4 | /alembic/versions/fe292ef150ae_create_zte_load_tables.py | abed690e58eb0155fd30c25fd3e6d8cc5dc3d412 | [
"Apache-2.0"
] | permissive | bodastage/bts-ce-database | 7c1ac1e8558cc0e911cb6903fbc99b97489d10ab | 96df7915621dd46daf55016eedf5cfc84dd0e3a2 | refs/heads/master | 2021-06-15T21:59:43.174602 | 2019-08-30T01:22:31 | 2019-08-30T01:22:31 | 114,766,401 | 1 | 3 | Apache-2.0 | 2019-08-30T01:22:33 | 2017-12-19T13:09:21 | Python | UTF-8 | Python | false | false | 1,433,655 | py | """Create ZTE load tables
Revision ID: fe292ef150ae
Revises: a02559b135e6
Create Date: 2018-06-06 09:44:51.752000
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'fe292ef150ae'
down_revision = 'a02559b135e6'
branch_labels = None
depends_on = None
class Replace... | [
"emmanuel.ssebaggala@bodastage.com"
] | emmanuel.ssebaggala@bodastage.com |
05f99114767370487f9f4cfe1da7ba2399f36df7 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/geekan_scrapy-examples/scrapy-examples-master/zhibo8/zhibo8/items.py | f7d4243e9c21733e75e179d365acf490ad039964 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 559 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class SportItem(scrapy.Item):
# define the fields for your item here like:
#title = scrapy.Field()
#url = scrapy.Field()
start_time = s... | [
"659338505@qq.com"
] | 659338505@qq.com |
17f5f0b02c3f2db630ec24c26a306704332a0cad | edde18989a451f9892c25a3b18b4b4e0d3f45b49 | /resources/googlesender.py | 7d983501fdcfe04ff5331b8cdd5a32dd6cc0f183 | [] | no_license | micahjsmith/rapid-crowdsourcing-experiment | e4228ae0d35fac7c173b1c339b5be86513aea08b | 37f7b08255ecc7822915fb6076c74e6731756d72 | refs/heads/master | 2021-03-22T04:59:10.553721 | 2017-07-28T20:58:22 | 2017-07-28T20:58:22 | 88,084,821 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | # Google form submit-maker.
#
# Usage: python googlesender.py https://docs.google.com/forms/d/e/1.../viewform
#
# Point this python file at a live Google forms URL, and it will generate
# code for a Javascript function that submits to that form cross-domain.
#
# Notes:
# - The form should be created with "short answer ... | [
"micahjsmith@gmail.com"
] | micahjsmith@gmail.com |
22a319b8e8e6e442ccf63160b42a2494af1aec54 | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/zope.app.securitypolicy-Zope-3./zope.app.securitypolicy/browser/tests/rolepermissionmanager.py | 23ddc4c4f40f8b7ef52b1fad6b41f59c3bc6a92b | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
5cedb2ddd6525c163048d39ae9966af1a402d0a3 | 42593707da56c3cee475519d74ef0a2be9ef0249 | /challenge.py | a3aa91978c4047ee8b5ceb7da344548f96107f47 | [] | no_license | randName/2D-Designette-2016 | 12a1a94ceada788bb08bc94f8c69e10be1dd36d2 | 1aaab18a19cc1cc26ef735a6643f82b9e94c90a5 | refs/heads/master | 2021-03-24T14:03:05.147398 | 2016-04-11T08:57:59 | 2016-04-11T08:57:59 | 55,150,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | import urllib2
from time import strftime
def get_targets( url ):
"""Parse targets from url"""
req = urllib2.Request( url, headers={'User-Agent':'Mozilla/5.0'} )
data = urllib2.urlopen( req )
if not data: return '', []
path = 'X'
all_trips = []
targets = {}
for line in data:
... | [
"kwokshungit@gmail.com"
] | kwokshungit@gmail.com |
7fe7fb03a5f1db07ae4357055eb8960afc1d8a99 | ce06aaf43d7ea2b62640748c1e41856d038d86ac | /SwarmPackagePy/bfo.py | 5720fa29aba3bf91867489743f2b7c043eb5a73b | [] | no_license | dananjayamahesh/MunichBFOR | 87ae1b672cddd5958d4080011389b1fa33384677 | 0cdb24344345429decf58ef85e444f72b40fd061 | refs/heads/master | 2023-02-16T18:32:34.303146 | 2023-02-10T11:27:01 | 2023-02-10T11:27:01 | 144,000,550 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,365 | py | import numpy as np
from random import random
from . import intelligence
class bfo(intelligence.sw):
"""
Bacteria Foraging Optimization
"""
def __init__(self, n, function, lb, ub, dimension, iteration,
Nc=2, Ns=12, C=0.2, Ped=1.15):
"""
:param n: number of agents
... | [
"19941510metalhead@gmail.com"
] | 19941510metalhead@gmail.com |
1b3e8ba4979eb996f86d37a06f6b073fc1dbd944 | e9bdc5f56f68bb4fbb15fd706d5aff151e176126 | /backend/tvmbc_23920/wsgi.py | 3eef03de2f1c05923c80d176dce03256c4666308 | [] | no_license | crowdbotics-apps/tvmbc-23920 | 8f17a1a195ebece086d719b72ab531390f744cbd | f6cc7ac889ec908fbe3ef3af2825f44976d84492 | refs/heads/master | 2023-02-17T10:40:53.539205 | 2021-01-18T23:24:48 | 2021-01-18T23:24:48 | 330,809,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for tvmbc_23920 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b505beee8f7f327cd45bb982e6feb83c030569f3 | 70280955a5382d73e58395eba78c119a400f4ce7 | /abc/174/5.py | e14b59229027593d8b77c8d842492206028840a7 | [] | no_license | cohock13/atcoder | a7d0e26a10a4e58690347a2e36839c2f503a79ba | d268aa68fc96203eab94d021bd158cf84bdb00bc | refs/heads/master | 2021-01-03T00:41:31.055553 | 2020-10-27T12:28:06 | 2020-10-27T12:28:06 | 239,839,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | from math import ceil
def BinarySearch(x):
ans = sum([ceil(a/x)-1 for a in A])
if ans <= K:
return True
else:
return False
N,K = map(int,input().split())
A = list(map(int,input().split()))
r = max(A)
l = 0
eps = 10**-5
while abs(r-l) > eps:
m = (r+l)/2
if Bi... | [
"callout2690@gmail.com"
] | callout2690@gmail.com |
43601685dc38add92d5754e3d36ea671a718f4e8 | 10d89b6e07a7c72c385eb1d1c60a3e0ed9f9fc3c | /cms/cms/activity/__init__.py | 2a30bf461f5636e5b916cd196b7dd0afae658db8 | [] | no_license | cash2one/pt | 2a4998a6627cf1604fb64ea8ac62ff1c227f0296 | 8a8c12375610182747099e5e60e15f1a9bb3f953 | refs/heads/master | 2021-01-20T00:36:43.779028 | 2016-11-07T03:27:18 | 2016-11-07T03:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | # -*- coding: utf-8 -*-
# Author:songroger
# Jun.17.2016
| [
"xl@putao.cn"
] | xl@putao.cn |
86e232ac04ab4f71a276dbd38fee84a0bc0be2cc | 85a5e986a010800d723f74d4be265cb26d144709 | /buildtree.py | 89cb391e0cd5d85649c6522745d2c7e716eb3182 | [] | no_license | hitalex/commentpred | 844c5dea4bec9ea887b4d98ba83bbb94be11e4f4 | 24c2ec2a1cb0092b6a96435180f14d07739ee864 | refs/heads/master | 2016-09-06T18:14:40.656965 | 2013-02-21T10:48:39 | 2013-02-21T10:48:39 | 32,436,767 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | #coding:utf8
"""
buildtree.py
~~~~~~~~~~~~~
此脚本按照评论结构画出评论树
"""
import os
import sys
import networkx as nx
import matplotlib.pyplot as plt
try:
from networkx import graphviz_layout
except ImportError:
raise ImportError("This example needs Graphviz and either PyGraphviz or Pydot")
if len(sys.argv) <= 1:
... | [
"kqingchao@gmail.com"
] | kqingchao@gmail.com |
69c102fa10ff40d15a351c681709bd96a58b75c8 | fde186bd141ed055ba8ab915b2ad25355f8f3fb6 | /ABC/086/py/C.py | 7e1d23eddfdc4e960b06c87416387d78ac7375d3 | [] | no_license | Tsukumo3/Atcoder | 259ea6487ad25ba2d4bf96d3e1cf9be4a427d24e | 5f8d5cf4c0edee5f54b8e78bc14a62e23cab69cb | refs/heads/master | 2020-12-20T05:04:39.222657 | 2020-10-17T01:39:04 | 2020-10-17T01:39:04 | 235,969,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | n = int(input())
l = [list(map(int, input().split())) for _ in range(n)]
ans = True
for i in l:
t, x, y = i[0], i[1], i[2]
if x+y > t or (x+y)%2 != t%2:
ans = False
print("Yes") if ans else print("No")
| [
"53821328+Tsukumo3@users.noreply.github.com"
] | 53821328+Tsukumo3@users.noreply.github.com |
593d4e471b20a297e9fdf99e39f9423363659f87 | 59366342805d7b7682a8c45fd5c11b910e791c21 | /L3函数(重要)/作用域8.py | 952781d889e3388b2787cf341511ef6d4be507c2 | [] | no_license | wantwantwant/tutorial | dad006b5c9172b57c53f19d8229716f1dec5ccd1 | 8d400711ac48212e6992cfd187ee4bfb3642f637 | refs/heads/master | 2022-12-29T05:41:12.485718 | 2019-01-07T08:28:33 | 2019-01-07T08:28:33 | 171,679,026 | 2 | 0 | null | 2022-12-08T01:21:22 | 2019-02-20T13:33:42 | Python | UTF-8 | Python | false | false | 516 | py | # (了解) global 全球的
# (老写法,total是全局变量)从1加到100
# total = 0
# for i in range(1,101):
# total = total + i
# print(total)
##global 显示声明变量为全局变量
total = 0
def add1():
global total # 全局的变量
total = total + 1
add1()
add1()
add1()
print(total)
##(了解)nonlocal 非局部变量
# #def outer():
# num = 10
# def inner... | [
"778042395@qq.com"
] | 778042395@qq.com |
e511885cec6ba4a1701cee99c27f161cb296cc19 | 340a820fe57e24ce0122e5ce5f91acadf80bb6ef | /apps/xiaofanzhuoauth/serializers.py | 80877681358eacfb49fb81b8ac1182d031391b4a | [] | no_license | gaohj/xiaofanzhuo | 890fabb09d381c426a1c32bfeb06e0f6bba7d3d7 | ac8627452edfe9001f7c83583f1d63295291dc73 | refs/heads/master | 2022-12-09T02:28:59.997352 | 2018-11-29T16:28:15 | 2018-11-29T16:28:15 | 150,835,050 | 0 | 0 | null | 2022-12-08T01:19:26 | 2018-09-29T07:00:20 | Python | UTF-8 | Python | false | false | 236 | py | from rest_framework import serializers
from .models import User
class UserSerializers(serializers.ModelSerializer):
class Meta:
model = User
fields = ('uid','username','telephone','email','is_staff','is_active' )
| [
"gaohj@126.com"
] | gaohj@126.com |
c14fd60817692919410837741a328a5a92b5fe4f | 0340a6b8c756b2211dcd28244df929813dbde34f | /pt20200419/testing.py | 3330755534657506fa7686ad9dc6a0a92ae3e5d9 | [] | no_license | lijunforNLPtraining/kaikeba | f40016a568ee3649ca9546119e19e6c000af732e | ab28fae19dc22242a8fdeb09ed1553c4585b5aa2 | refs/heads/master | 2022-05-26T16:25:58.624596 | 2020-04-30T02:47:03 | 2020-04-30T02:47:03 | 260,097,962 | 0 | 0 | null | 2020-04-30T02:48:53 | 2020-04-30T02:48:52 | null | UTF-8 | Python | false | false | 2,160 | py | import tensorflow as tf
from models.seq2seq import SequenceToSequence
from utils.batcher_utils import Vocab, batcher
from utils.test_helper import batch_greedy_decode
from tqdm import tqdm
import pandas as pd
def test(params):
global model, ckpt, checkpoint_dir
assert params["mode"].lower() == "test", "chang... | [
"zhangmw_play@163.com"
] | zhangmw_play@163.com |
da9e1d714183a28650e91f45963ff68d8023c6a4 | ba602dc67ad7bb50133aeb312f3c6c54627b3dec | /data/3919/WA_py/508060.py | ac1cb1f47e9ef69fb49fd56f1405bf483847172c | [] | no_license | Dearyyyyy/TCG | 0d21d89275906157372d775f33309ce337e6bc95 | 7b80de16de2d3f5d95a7c4ed95d45a9e38882e67 | refs/heads/master | 2020-12-27T23:19:44.845918 | 2020-02-04T01:59:23 | 2020-02-04T01:59:23 | 238,101,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | # coding=utf-8
while(True):
a,b,c=map(int,input().split())
if(a==b and b==c):
print("DB")
elif(a==b or a==c or b==c):
print("DY")
elif(a*a+b*b==c*c or a*a+c*c==b*b or b*b+c*c==a*a):
print("ZJ")
elif(a+b>c and a+c>b and b+c>a):
print("PT")
else:
print("ERRO... | [
"543271544@qq.com"
] | 543271544@qq.com |
743a90e05f67396064cbf3b0064621869e001032 | dd135abce51178eeeddfd14e6cba3bd482b82c5a | /Dungeon.py | 57f3e2fbd4ee2cb6ebb1a8a12187f3499508fb8d | [] | no_license | kobso1245/Dungeons_and_pythons | 9e7eef749c7fb25c929dc13b4a6ae4588fa77538 | d51b1df1db954af5bf4d221dfe52b34ebfe5fa44 | refs/heads/master | 2021-01-13T09:38:30.148762 | 2015-10-05T21:45:00 | 2015-10-05T21:45:00 | 33,990,641 | 0 | 0 | null | 2015-05-25T15:04:47 | 2015-04-15T11:47:03 | null | UTF-8 | Python | false | false | 11,591 | py | import random
from weapon_and_spell import Weapon, Spell
from Enemy import Enemy
from hero import Hero
from Fight import Fight
class Dungeon:
def __init__(self, path="", rows=5, cols=8):
self.__hero = Hero()
self.__hero_pos = (0, 0)
self.__rows = rows
self.__cols = cols
se... | [
"kalo.evt@mail.bg"
] | kalo.evt@mail.bg |
227ff3931a82ca74dd4d87d6409910f4dad24dbb | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/an8.py | 5bd7b3123e8c6dd6236da0603ef8882ace3eb171 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
98d097cda3ba8f9a341c02079d1b691520fb3822 | 4e02d5b0b1b0739553fd40bbbdfb0d02c9830350 | /二叉树所有遍历模板及知识点总结.py | b08dc3c4ded62fb0af0fe196ff6b82e74e74fb64 | [] | no_license | bingli8802/leetcode | b039ab6af62f0c8992463393f561caafd21056e6 | a509b383a42f54313970168d9faa11f088f18708 | refs/heads/master | 2023-03-29T03:11:45.801090 | 2021-03-23T22:55:16 | 2021-03-23T22:55:16 | 279,321,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,845 | py |
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# 递归
# 时间复杂度:O(n),n为节点数,访问每个节点恰好一次。
# 空间复杂度:空间复杂度:O(h),h为树的高度。最坏情况下需要空间O(n),平均情况为O(logn)
# 递归1:二叉树遍历最易理解和实现版本
class Solution:
def preorderTraversal(sel... | [
"noreply@github.com"
] | bingli8802.noreply@github.com |
7d9ffc509d484b9c6cd91a97fa398bfadee15f71 | aa1d676a2ed488a8e95ad1d7a9c93fa2b82741c4 | /236.py | eca42522c676bdd504a86ea881cd1e72e5fb5760 | [] | no_license | tmwarchitecture/300-Days | b6a65e9be00eb2b7b72f37f224327548d321df83 | 7cbf44675347a930f8d48e440d55b2385cae1e7d | refs/heads/master | 2022-11-23T07:47:55.513401 | 2020-07-23T14:03:11 | 2020-07-23T14:03:11 | 281,967,708 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,422 | py | """300 Days of Code
Sketches 201-300 by Tim Williams
"""
import Rhino as rc
import Rhino.Geometry as rg
import rhinoscriptsyntax as rs
import scriptcontext as sc
import math
import random
import os
import System.Drawing as drawing
import time
import datetime
import clr; clr.AddReference("Grasshopper")
import Grasshopp... | [
"tmwarchitecture@gmail.com"
] | tmwarchitecture@gmail.com |
cc09d3a02f2271e02cbd9f2ad625acb51b6e88d8 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/command_lib/alloydb/cluster_helper.py | 52d53d2069df976dce7cf2018057aa4d270000a5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 10,485 | py | # -*- coding: utf-8 -*- #
# Copyright 2022 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"gcloud@google.com"
] | gcloud@google.com |
433104724233f817271aa63a1f643d9545b44042 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/easy-money_20210129101638.py | 5824340e606d4c21348b1d168a708c13e9c33656 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,758 | py | # 东方财富网 首发申报
from datetime import datetime,timedelta
from urllib.parse import urlencode
import pandas as pd
import requests
import re
import time
from bs4 import BeautifulSoup
base_url = 'https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx?'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Ap... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
cbef19fd5c78accc3bcd6bfdb82a13cb705ca01c | 3ff4da2c4fbbf5310695d96bcf7f06a3fdf6d9f5 | /Python/Edx_Course/Introduction to Programming Using Python/Excercises/W4_Function_Calculo_n_radio.py | 21fd7db9a45e193a95135ff91afb8264771adaa8 | [] | no_license | ivanromanv/manuales | cab14389161cbd3fb6a5d4e2d4e4851f8d1cda16 | a296beb5052712ae3f03a3b492003bfc53d5cbba | refs/heads/master | 2018-10-01T01:01:50.166637 | 2018-07-22T18:55:50 | 2018-07-22T18:55:50 | 106,485,581 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # Write a function that a accepts a positive number 'r' as the radius of a circle and calculates and returns the area of the circle. Use the value of pi as 3.14
def area_circunferencia(radio):
area = float((radio * radio) * 3.14)
return area
# Main Program #
area = area_circunferencia(2)
print(area)
| [
"“ivanromanv@gmail”"
] | “ivanromanv@gmail” |
f714d2b55ccc60dedfcb7d2ff69cb95b3f982c98 | 5ecfa1bf82a7a9fcb542f5063e0ef1c439e0607d | /chapter_10/mnist_nn_experiments_base_lr_plot.py | 1e7dcd5d01de2ca9e6473a36adea2af48ea6a493 | [
"MIT"
] | permissive | alexiewx/PracticalDeepLearningPython | 54256e1e973d30d4290ae9346ee2d314ab6f59c8 | 7466bac89e6e8e1e491dcacc5172598a05920d79 | refs/heads/main | 2023-08-30T22:39:04.848840 | 2021-10-24T17:47:39 | 2021-10-24T17:47:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | import numpy as np
import matplotlib.pylab as plt
def main():
# score by base_lr, fixed epochs
sc0 = np.array([0.91870,0.95070,0.96050,0.97120,0.97260,0.97540,0.97630,0.94800])
lr = np.array([0.00010,0.00050,0.00100,0.00500,0.01000,0.05000,0.10000,0.20000])
# score by base_lr, lr * epochs = 1.5
sc... | [
"oneelkruns@hotmail.com"
] | oneelkruns@hotmail.com |
c7634b25a39b40cc629b9b70b93e839e6fdb613e | 753a70bc416e8dced2853f278b08ef60cdb3c768 | /models/research/learning_unsupervised_learning/datasets/common.py | 11f65ceab57a4114ca3876b3cb6eed86e2263745 | [
"MIT",
"Apache-2.0"
] | permissive | finnickniu/tensorflow_object_detection_tflite | ef94158e5350613590641880cb3c1062f7dd0efb | a115d918f6894a69586174653172be0b5d1de952 | refs/heads/master | 2023-04-06T04:59:24.985923 | 2022-09-20T16:29:08 | 2022-09-20T16:29:08 | 230,891,552 | 60 | 19 | MIT | 2023-03-25T00:31:18 | 2019-12-30T09:58:41 | C++ | UTF-8 | Python | false | false | 1,141 | py | # Copyright 2018 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 ... | [
"finn.niu@apptech.com.hk"
] | finn.niu@apptech.com.hk |
acbc229cb4561119e95f21a2a28472a694fe788d | 01c3ff1d74e754e0d4ce0fb7f8a8b329ec3766e1 | /python_exercises/19others/threadingpy.py | a0e2c4d55d4465644c7ba299cdb962c840f7a31e | [] | no_license | vineel2014/Pythonfiles | 5ad0a2b824b5fd18289d21aa8306099aea22c202 | 0d653cb9659fe750cf676a70035ab67176179905 | refs/heads/master | 2020-04-28T03:56:22.713558 | 2019-03-11T08:38:54 | 2019-03-11T08:38:54 | 123,681,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | import threading
import time
exitFlag = 0
class myThread (threading.Thread):
def __init__(self, threadID, name, counter):
threading.Thread.__init__(self)
self.threadID = threadID
self.name = name
self.counter = counter
def run(self):
print "Starting " + self.name
... | [
"vineel2006@gmail.com"
] | vineel2006@gmail.com |
84478b5befb0b92e9934b25844ee2b250c1a07b2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_disbursement.py | cd18b2d2a62fdfe1ea11f86b9fe358c6d6c391d9 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py |
#calss header
class _DISBURSEMENT():
def __init__(self,):
self.name = "DISBURSEMENT"
self.definitions = [u'an amount of money given for a particular purpose']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ef97e381c12815ecc78464be1dd13a14c9479926 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5738606668808192_1/Python/htamas/C-large-0.py | 9024ed0f1c78412ab0678cb00a9dc74777b07cc0 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | #!/usr/bin/env python3
print('Case #1:')
for i in range(500):
print('1' + ''.join(j*2 for j in '{:>015b}'.format(i)) + '1 3 4 5 6 7 8 9 10 11')
| [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
bfc7a6fa2503b34884249127065727c5da1adbb1 | 017dcb646faec4674fb00e0fa1a160aade1da1dd | /hello_bot/interactions/models/forms_factory.py | 73430888b88c52320c0f47e1c988154a5c6ea357 | [] | no_license | acriptis/dj_bot | 3acc1bd528e0cce1b94d36f740a4b5cb7345308b | 7a0bc78ca03ee8ca1202e8ad2a6860444f0ce75d | refs/heads/master | 2021-06-12T02:26:13.192423 | 2019-07-08T15:03:40 | 2019-07-08T15:03:40 | 154,290,739 | 3 | 0 | null | 2021-06-10T21:16:33 | 2018-10-23T08:24:41 | Python | UTF-8 | Python | false | false | 4,342 | py | from interactions.models import AbstractInteraction, Interaction
# class SlottyFormInteraction(AbstractInteraction):
class SlottyFormInteraction(Interaction):
def __init__(self, name, slots):
super().__init__()
self.name = name
self.declared_slots = slots
# @classmethod
# def ini... | [
"acriptis@gmail.com"
] | acriptis@gmail.com |
5255f564aa755a8573ba452a13711249492d2919 | 9222114c0b39007eb1af715cf18fc95ff282b38c | /problems/690. Employee Importance/1 - BFS.py | 4ced5f2bc4776b5b6d4e55b95f4ad9cad0b62638 | [] | no_license | Vasilic-Maxim/LeetCode-Problems | 1a2a09edca6489a349e5d69d087279630cff157d | 359f3b78da90c41c7e42e5c9e13d49b4fc67fe41 | refs/heads/master | 2021-07-10T22:03:29.327658 | 2021-06-07T12:42:52 | 2021-06-07T12:42:52 | 246,826,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | from collections import deque
from typing import List
class Employee:
def __init__(self, employee_id: int, importance: int, subordinates: List[int]):
self.id = employee_id
self.importance = importance
self.subordinates = subordinates
class Solution:
"""
Time: O(n)
Space: O(n)... | [
"lmantenl@gmail.com"
] | lmantenl@gmail.com |
6a91c915a0a84368c89ba2a606fcd8d8ba085384 | 7b9f0f9be9d7422546c300b0d4dead3b10fb7ee7 | /network_selector/coherenceValues.py | 1c00f3203588690fa2b636e88803818727aa107b | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | aria-jpl/ariamh | 73f163f0c80da949f6ea88469fd2c67ab229ef20 | b6a06330cb5a592022070724b34eb6a011e7cbdc | refs/heads/develop | 2022-12-26T13:45:29.287226 | 2022-02-10T05:08:43 | 2022-02-10T05:08:43 | 124,922,867 | 6 | 7 | Apache-2.0 | 2022-12-13T13:53:45 | 2018-03-12T17:02:52 | Python | UTF-8 | Python | false | false | 598 | py | #!/usr/bin/env python3
import json
import os
def getParameters(project):
#Need to update values depending on runs
if(project.lower().count('trigger')):
name = 'coherenceParams_' + project.lower() + '.json'
else:
name = os.path.join(os.environ['ARIAMH_HOME'],'conf','coherenceParams_' + projec... | [
"pymonger@gmail.com"
] | pymonger@gmail.com |
d141d4bfd7f945f4cabc9119fa819583da8c8d59 | 463c053bcf3f4a7337b634890720ea9467f14c87 | /rllib/agents/ppo/tests/test_ddppo.py | 4b7af457a4557392c0dc44e90890f12c2480fa87 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 2,804 | py | import unittest
import pytest
import ray
import ray.rllib.agents.ppo as ppo
from ray.rllib.policy.sample_batch import DEFAULT_POLICY_ID
from ray.rllib.utils.metrics.learner_info import LEARNER_INFO, LEARNER_STATS_KEY
from ray.rllib.utils.test_utils import (
check,
check_compute_single_action,
check_train_r... | [
"noreply@github.com"
] | pdames.noreply@github.com |
78facdb6df5969df5f31349fd890a917da0d2317 | dde951c8bcfb79cdead3449de42d9ed3e6f24fbe | /LearnPythontheHradWay/ex44e.py | 8a578316abda273edbbe11420b925fc635ffcc61 | [] | no_license | wolfeyuanwei/study-python | c764353cbf75b0ccd79dc562fe11eebee712510b | be1a9ec93cd29d9fe6b69ad4f9c059fb9dd308de | refs/heads/master | 2021-05-11T22:57:51.541684 | 2018-02-08T05:03:10 | 2018-02-08T05:03:10 | 117,504,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #!/user/bin/python
#filename:ex44e.py
#-*-coding:utf-8 -*-
class Other(object):
def override(self):
print "OTHER override()"
def implicit(self):
print "OTHER implicit()"
def altered(self):
print "OTHER altered()"
class Child(object):
def __init__(self):
self.other = Oth... | [
"wolfe_yuan@163.com"
] | wolfe_yuan@163.com |
4927ccb350d6812a3a12cc0e6c0d4851671a7bce | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/2461.py | 934eefb363eb9a7a8122fbbe60ec5d286b50ad81 | [] | 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 | 1,414 | py | f = open("A-large.in", "r").readlines()
output = open("out.txt", "w")
num_inputs = int(f[0])
counter = 0
for x in range(1, num_inputs * 5, 5):
counter += 1
board = []
for i in range(4):
board.append(f[x + i][:-1])
winner = ""
print(board)
for p in ["X", "O"]:
valid = lambda x... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0195ab5ced8c5e52bbbc57c471bcd61121bae2bc | e01c5d1ee81cc4104b248be375e93ae29c4b3572 | /Sequence4/Graph/Week1/class/Rev/connected_component.py | cf0662dfd554dcfdf5e9a2399e6a3e642e665dfb | [] | no_license | lalitzz/DS | 7de54281a34814601f26ee826c722d123ee8bd99 | 66272a7a8c20c0c3e85aa5f9d19f29e0a3e11db1 | refs/heads/master | 2021-10-14T09:47:08.754570 | 2018-12-29T11:00:25 | 2018-12-29T11:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from graph import Graph
from collections import deque
def dfs_rec(G, start):
visited = set()
vertex_cc = {}
cc = 1
for v in G.all_vertexes():
if v not in visited:
explore(G, v, visited, cc, vertex_cc)
cc += 1
return (vertex_cc)
def explore(G, v, visited, cc, vertex_cc):
visited.add(v)
ve... | [
"lalit.slg007@gmail.com"
] | lalit.slg007@gmail.com |
cf951180109b6250118e4984d916ebe5bba17c63 | b1ee162403808647370e932c646e58e964cea7fb | /evkit/models/architectures.py | 31105c1be87335d41a84428233ab068fb0d464d3 | [
"MIT"
] | permissive | sacadena/midlevel-reps | e451ca1ccef364bcceb9487bb0e17ed4166360ba | f0b4a4d8ccf09a0488cd18af24723172aff99446 | refs/heads/master | 2022-12-17T06:43:09.124096 | 2020-07-06T20:48:24 | 2020-07-06T20:48:24 | 292,818,328 | 0 | 0 | MIT | 2020-09-04T10:23:08 | 2020-09-04T10:23:08 | null | UTF-8 | Python | false | false | 10,261 | py | import torch.nn as nn
from torch.nn import Parameter, ModuleList
import torch.nn.functional as F
import torch
import multiprocessing
import numpy as np
import os
from gym import spaces
from torchvision.models import resnet18
import torchvision as vision
from evkit.rl.utils import init, init_normc_
from evkit.preproces... | [
"jozhang@berkeley.edu"
] | jozhang@berkeley.edu |
6275d7483aca2ac3447faec7bf647bf92cadf93f | d8c4854d7c4ebd3d643ff50878b6100aa34d2dc3 | /Modelo_eclipse/DE_30dias/Modelo_sem_sd/PAT4/differential_evolution.py | c878d931da384da092d1a1567bf71082acc74726 | [] | no_license | quintelabm/PrmFitting | 35a8b7463d5fddb834eac1901a27a258de0c0da0 | b384b5bde0cbc2717bea936ddf151df619d8893b | refs/heads/master | 2023-08-06T04:03:16.864147 | 2021-09-17T02:43:45 | 2021-09-17T02:43:45 | 221,717,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,909 | py | #--- IMPORT DEPENDENCIES ------------------------------------------------------+
import random
import numpy as np
from solver_TIEV import custo, solver
import matplotlib.pyplot as plt
from scipy.optimize import differential_evolution
import sys
import time
import os
#--- CONSTANTS ------------------------------------... | [
"46576343+jessica-garbero@users.noreply.github.com"
] | 46576343+jessica-garbero@users.noreply.github.com |
7883fb54cd962c4d1a4bb44443a9e21b700e7d12 | b7f8e7c2e2d4224890faca773fd6884edde0294b | /ArithmeticSeries.py | 75c6aa7fb88fd546a57af56338dc0fb701cf01a6 | [
"Apache-2.0"
] | permissive | Ursinus-IDS301-S2020/Week4Class | 3407235f43899bb31934b52e99a02cb966ca3f4f | 1fb1b7d159f24ab53fdcda4c2b2be1a06547e119 | refs/heads/master | 2021-01-05T20:04:31.980187 | 2020-02-19T23:19:07 | 2020-02-19T23:19:07 | 241,124,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 19 11:35:17 2020
@author: ctralie
Purpose: To show how to compute an arithmetic series
1 + 2 + ... + N
using a for loop, and comparing that to the formula
N*(N+1)/2
"""
x = 0 # Running total of numbers
N = 2000
for i in range(1, N+1):
x = x ... | [
"chris.tralie@gmail.com"
] | chris.tralie@gmail.com |
cf55fb91932a64258a183d0d43413b3329d56963 | 9c3bb1436b0483de40a01d4be8b13d7bda72a2d7 | /cgtwq_uploader/__version__.py | ca6fadf939f8e4a886de4834f5466d02f2304685 | [] | no_license | WuLiFang/uploader | 6b3b0f1dd1bea4d9927c57c039b72934bebf10f1 | 5965e6665a76e43b0a7ba2c157a3be16e247cb31 | refs/heads/master | 2023-07-11T08:25:01.505195 | 2023-06-29T03:40:18 | 2023-06-29T03:40:18 | 127,120,889 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # -*- coding=UTF-8 -*-
# Code generated by scripts\python-version-updater.js, DO NOT EDIT
# fmt: off
"""
version info.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
from datetime import datetime
VERSION = "3.6.4"
RELEASE_DATE = datetime.fromtimestamp(1632453394)
LAST_GIT_COMM... | [
"NateScarlet@Gmail.com"
] | NateScarlet@Gmail.com |
123e26324215419fce58459cfca2ff10205dd438 | 0f7215bad7018dce2c0136fe2bffbd52e9882cf5 | /lettres/cours_dictionnaire.py | 3e3aefdf56d6d63ac6c026fc6fa6617e65321bd8 | [] | no_license | Byliguel/python2-exo7 | 9f680729f09a058c279d57687d95c86514d89965 | 3e68a344446ddd3cf819c34e61a016ef55e9692a | refs/heads/master | 2020-09-22T10:18:15.249782 | 2019-12-01T11:55:53 | 2019-12-01T11:55:53 | 225,153,409 | 1 | 0 | null | 2019-12-01T11:54:47 | 2019-12-01T11:54:46 | null | UTF-8 | Python | false | false | 3,110 | py | ##############################
# Cours - Dictionnaire avec Python
##############################
# Dictionnaire identifiant/mot de passe
dico = {'jean':'rev1789', 'adele':'azerty', 'jasmine':'c3por2d2'}
print("Mot de passe de 'adele' :", dico['adele'])
print("Dictionnaire :",dico)
# Ajout d'une entrée
dico['lola'] = ... | [
"arnaud.bodin@univ-lille.fr"
] | arnaud.bodin@univ-lille.fr |
ce6cf05d9f72c5c572cf55b0f7bc5d0864edaf64 | dc01f08dd5edc4f4bd9f8df2c936f53bf127d61e | /12_data_persistence/storm_retrieve_os.py | 525313b49c5f7adcabcb9238c47cbac9ab1bf3bc | [
"MIT"
] | permissive | lluxury/P_U_S_A | 03218deed17a6eb7250dd361547a2e8727972cd5 | 1eb9d1fef74f9ce3618ae950f5223f598510be84 | refs/heads/master | 2020-04-06T04:13:01.715182 | 2019-03-21T03:22:57 | 2019-03-21T03:22:57 | 83,023,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | import storm.locals
import storm_model
import os
db = storm.locals.create_database('sqlite:///%s' % os.path.join(os.getcwd(), 'inventory.db'))
store = storm.locals.Store(db)
for o in store.find(storm_model.OperatingSystem):
print (o.id, o.name, o.description)
| [
"tmp4321@qq.com"
] | tmp4321@qq.com |
d07b51747d9a5127be05c1033a975c55313859c9 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_4647.py | 8fecdfadcffdbb95ae5c4f13ed45e4b573b7a574 | [] | 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 | 44 | py | # Py2exe Directory Structure
bundle_files:1
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4231458d7ad0e21f5826ba841a8bff203a8ef6d7 | 3eb20ec4cf54cd01fc71caa3e8561ef1ff80b893 | /connect/migrations/0017_auto_20200330_0758.py | 5817d9881bf270b1980c757bce3d6fa321008dc4 | [] | no_license | hottredpen/laowai_panda | 38f0db4f6d848ed0b7b6449d1bc77aa952dac695 | e862bbe64b84698b7981176c7c190775edf99a67 | refs/heads/master | 2023-01-03T05:11:01.012487 | 2020-10-12T08:04:19 | 2020-10-12T08:04:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | # Generated by Django 2.1.7 on 2020-03-30 05:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('connect', '0016_category_order'),
]
operations = [
migrations.RenameField(
model_name='category',
old_name='name_my'... | [
"893287656@qq.com"
] | 893287656@qq.com |
05a19a4f18fc4f08765d9b52add71b2043d8a368 | a76790fa5f4eb96a8b731f891ca1aa4c16d21256 | /azext_iot/central/models/v2022_06_30_preview/__init__.py | de5398a976bb9b16de7ab318e13a3a83559c40cb | [
"MIT"
] | permissive | digimaun/azure-iot-cli-extension | 414fb1c7c22b0f0d0891cd30c28d13366b9f7207 | 9999c536bbf67251d863d365c190866e1d5cc1ad | refs/heads/dev | 2023-06-24T09:42:51.069627 | 2022-12-14T23:29:58 | 2022-12-14T23:29:58 | 579,177,610 | 1 | 0 | NOASSERTION | 2022-12-16T21:25:31 | 2022-12-16T21:25:31 | null | UTF-8 | Python | false | false | 793 | py | from azext_iot.central.models.v2022_06_30_preview.device import Device as DevicePreview
from azext_iot.central.models.v2022_06_30_preview.query_response import (
QueryResponse as QueryReponsePreview,
)
from azext_iot.central.models.v2022_06_30_preview.destination import (
Destination as DestinationPreview,
... | [
"noreply@github.com"
] | digimaun.noreply@github.com |
41e04b4d34b87becaf4c8acac71c752c2246951a | 3338cc681e9760dbf7f7a3ed9bfe14e6ec57ad45 | /gcm_sender/views.py | 0d2aea8a4d7aaa9a1b4502e054de645b385ff768 | [] | no_license | linxaddict/gcm_web_sender | bd72aed83d848f5924471766bd26d0bf725208a3 | 30ac733f72173327b8a910ae2a9c5a87a0fbe7c6 | refs/heads/master | 2021-01-10T08:45:30.030267 | 2016-02-29T20:03:15 | 2016-02-29T20:03:15 | 52,820,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | from django.shortcuts import render
from gcm import GCM
from gcm_sender.models import Shopper, NotificationNewOrderAvailable, NotificationShopperFound, \
NotificationShopperVerified
def index(request):
return render(request, 'gcm_sender/index.html')
def create_notification(notification_type):
if notific... | [
"mprzepiorkowski@gmail.com"
] | mprzepiorkowski@gmail.com |
ade28a1bf1532878ec81e2eb8ef4e0fe9d886893 | e1864d3c68e06edbbe3b7f395b8c0ceeed72ae62 | /[152]乘积最大子数组.py | 352f3738ea6e167b6301ec0b199cd91727e5ed10 | [] | no_license | TianhengZhao/LeetCode | 239c3b886c0ebe172f57b40c78eacddb27075577 | 301f9725777b8462bc64800b01f580fb7d9c711f | refs/heads/master | 2023-03-05T15:30:49.126149 | 2021-02-21T14:00:06 | 2021-02-21T14:00:06 | 277,789,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,594 | py | # 给你一个整数数组 nums ,请你找出数组中乘积最大的连续子数组(该子数组中至少包含一个数字),并返回该子数组所对应的乘积。
#
#
#
# 示例 1:
#
# 输入: [2,3,-2,4]
# 输出: 6
# 解释: 子数组 [2,3] 有最大乘积 6。
#
#
# 示例 2:
#
# 输入: [-2,0,-1]
# 输出: 0
# 解释: 结果不能为 2, 因为 [-2,-1] 不是子数组。
# Related Topics 数组 动态规划
# leetcode submit region begin(Prohibit modification and deletion)
from t... | [
"1146824110@qq.com"
] | 1146824110@qq.com |
205871576c380b5d1ebbe2f34289fc14d311effa | aa0270b351402e421631ebc8b51e528448302fab | /sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/passivestamp/operations/_backup_protected_items_crr_operations.py | 69f7ea8c62d5a03edbb059e3a24220fd7f84f70a | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 8,882 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
e4625593b6abcb75d5df72303e0196cac32fbe72 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/199/usersdata/275/81779/submittedfiles/al14.py | 68c2423e3e4c9765052dafe7323a15a665f2dc72 | [] | 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 | 146 | py | # -*- coding: utf-8 -*-
n= int(input( 'Digite o numero de pessoas : '))
i=1
while (i<=n):
idade=int(input( 'Digite a idade :'))
i=i+1
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b5f45011fc038d1fb0fa070a2a298493b5cadffc | b77cc1448ae2c68589c5ee24e1a0b1e53499e606 | /leave/migrations/0003_auto_20170214_1843.py | b1ee5264e839843d5beb676bb1b1d1493129a804 | [] | no_license | PregTech-c/Hrp_system | a5514cf6b4c778bf7cc58e8a6e8120ac7048a0a7 | 11d8dd3221497c536dd7df9028b9991632055b21 | refs/heads/master | 2022-10-09T07:54:49.538270 | 2018-08-21T11:12:04 | 2018-08-21T11:12:04 | 145,424,954 | 1 | 1 | null | 2022-10-01T09:48:53 | 2018-08-20T13:58:31 | JavaScript | UTF-8 | Python | false | false | 452 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-02-14 15:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('leave', '0002_auto_20170214_1459'),
]
operations = [
migrations.AlterField(
... | [
"imugabi64@yahoo.com"
] | imugabi64@yahoo.com |
c5e7b2c9ff638fbc9634361be73991aaee1e6f30 | cfb6923223bd5b2cad56ece404f74fbb6889837b | /TAPI_RI/funcs_Tapi/context_ConnectivityserviceUuidLabelImpl.py | 4648def0d29706fcafba28b218aa4094c064701b | [
"Apache-2.0"
] | permissive | XingZhao-CATR/Snowmass-ONFOpenTransport | 27206bd84ff8d9ea2ec7b8ee25a9085b9c96af6d | c5807944bb1333a8ed83d6beea3e55922d006495 | refs/heads/develop | 2021-01-13T16:59:27.016238 | 2016-12-21T13:19:17 | 2016-12-21T13:19:17 | 77,099,371 | 1 | 0 | null | 2016-12-22T01:29:16 | 2016-12-22T01:29:16 | null | UTF-8 | Python | false | false | 435 | py | import os.path, sys
sys.path.append(os.path.join('/'.join(os.path.dirname(os.path.realpath(__file__)).split('/')[:-1])))
import backend.backend as be
class Context_ConnectivityserviceUuidLabelImpl:
@classmethod
def get(cls, uuid):
print 'handling get'
if uuid in be.Context._connectivityServic... | [
"ricard.vilalta@cttc.es"
] | ricard.vilalta@cttc.es |
f3897574592d43ed4b42438a3ca108bf0021443b | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/views_20201115203633.py | fe8cb5b7fa90591afb3ec1e04b42a2dea1f0857d | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,288 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
# contains user signup + login form
def view_index(request):
# if user is already logged in, lets not show them login/registration page,
# and instead redirect them to /books, which is already where we red... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
6a69c68c9a94898f079f5767ad17656e5edf1dfb | 2601d850c044fc71666261316db91b468bc01871 | /data_science_dj/settings.py | fd31594fc6b5fc01ac7da8726fc7ee7b6ad2375e | [] | no_license | nilldiggonto/data_analyst_with_django3 | ce70aa4c298ba4facd8d0f7945293ad7f94e3426 | 4a664073914d6425de7986c7c4a6e3a587d708b9 | refs/heads/main | 2023-03-02T17:29:13.358889 | 2021-02-12T22:12:19 | 2021-02-12T22:12:19 | 338,444,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,924 | py |
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key... | [
"nilldiggonto@gmail.com"
] | nilldiggonto@gmail.com |
6413bbdddba467f239d7f7bdae83b53b366e9a6e | 95705b0c73ebda81f2111fa81a2bdba311ca65ac | /tests/core/numeric-utils/test_int_to_bytes32.py | 0ba8ce89a92ab9fdf41283cc40800471f56832f7 | [
"MIT"
] | permissive | PEPEcoin/py-evm | c409d498f3943aba1599e627bca9b2848474eb48 | 455f1b7bbd284f8ab9760194314672681c025a8b | refs/heads/master | 2020-03-15T03:05:43.614441 | 2018-05-02T20:32:09 | 2018-05-02T20:32:09 | 131,934,178 | 2 | 0 | MIT | 2018-05-03T03:01:42 | 2018-05-03T03:01:41 | null | UTF-8 | Python | false | false | 596 | py | import pytest
from evm.constants import (
NULL_BYTE,
UINT_256_MAX,
)
from evm.utils.numeric import (
int_to_bytes32,
)
@pytest.mark.parametrize(
'value, expected',
(
(0, NULL_BYTE * 32),
(1, NULL_BYTE * 31 + b'\x01'),
(UINT_256_MAX, b'\xff' * 32),
)
)
def test_int_to_... | [
"hwwang156@gmail.com"
] | hwwang156@gmail.com |
9af9833809b7018230fab06621c10af5b8f7e2ef | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_117/1074.py | 9c18698a14c1b2605e28a36bdd502b6271ee8344 | [] | 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 | 1,548 | py | #!/usr/bin/python
##reading input file.....
fname=raw_input("input filename:")
data=open(fname,"r+")
text=data.readlines()
data.close()
nos=int(text[0])
nos=nos
tn=1
def main(N,M,patt):
if N==1 or M==1:
return "YES"
else:
new=[[100 for x in range(0,M)] for y in range(0,N)]
for x i... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
df41013ad4af8b0707694469a4d280413da5692c | 1916dc66aa9710d9a7d4fab42c28c1c49e2f630c | /app_cms/templatetags/utils.py | a350c37f879fa7d1661c3573ee96f8e381a008fa | [] | no_license | robert8888/portfolio | 8ce6c1be774666a58ee44379621c6a4515f64d37 | a640b1a62810e4a5dd4f7e20fefc86dc3ca7851f | refs/heads/master | 2023-06-03T23:28:53.888863 | 2021-06-25T13:11:28 | 2021-06-25T13:11:28 | 333,259,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | from django import template
from django.template.defaultfilters import stringfilter
register = template.Library()
import ast
import re
import json
@register.simple_tag
def to_list(*args):
return args
@register.simple_tag
def concat_all(*args):
return ''.join(map(str, args))
@register.simple_ta... | [
"robert.kami88@gmail.com"
] | robert.kami88@gmail.com |
9c4ccbe9e3a7a95d060d4214767fce9b20c11698 | 5a3107014b2ea8e1042891a06f9f8d7daf10dbdf | /23edge/configs/_base_/models/solo_r50_fpn.py | 11358a4ec7c4a8ee38e86c105b1f983a6a78484b | [
"Apache-2.0"
] | permissive | wojiaoyanmin/godie | ed4a78a82b7ea4d430f9ce0d36a5de3e16cf2bc8 | bd81fd21201e10e9e1c335afb38075d07c654330 | refs/heads/main | 2023-01-13T17:33:41.950584 | 2020-11-24T13:03:53 | 2020-11-24T13:03:53 | 313,632,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | model=dict(
type='YMDetector',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0,1,2,3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
style='pytorch'),
... | [
"358787362@qq.com"
] | 358787362@qq.com |
6b3c137f6d04e16ffc546e0d6818abec754e2ca4 | 02560440f9f91e583fe98d80ab11e18aa6c7a525 | /apps/usuarios/migrations/0001_initial.py | b43e1165d7ae74c479a97f2f0e9071f1b5b08c4c | [] | no_license | eduardogpg/wamadeusV1 | a36c89176543e638486009620c5131f46743edbc | 82d93293dc6afc95a6661f727162f4055ab83a43 | refs/heads/master | 2020-12-28T01:57:47.831689 | 2015-01-08T05:14:25 | 2015-01-08T05:14:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | 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),
]
operations = [
migrations.Create... | [
"eduardo78d@gmail.com"
] | eduardo78d@gmail.com |
f05700cdecbe8da93934050210732c2d18d7fc7a | d989c42f7122b783bbf330fbb194c8872c947424 | /deutschland/dwd/api_client.py | 97b7eb93117a3dcbb2da8fbca45f5e8b6bc4e33b | [
"Apache-2.0"
] | permissive | auchtetraborat/deutschland | 3c5c206cbe86ad015c7fef34c10e6c9afbc3b971 | fdc78d577c5c276629d31681ffc30e364941ace4 | refs/heads/main | 2023-08-24T08:17:51.738220 | 2021-10-20T19:35:46 | 2021-10-20T19:35:46 | 403,704,859 | 0 | 0 | Apache-2.0 | 2021-09-06T17:19:21 | 2021-09-06T17:19:20 | null | UTF-8 | Python | false | false | 36,359 | py | """
Deutscher Wetterdienst: API
Aktuelle Wetterdaten von allen Deutschen Wetterstationen # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import json
import atexit
import mimetypes
from multiprocessing.pool import ThreadPool
import io
import o... | [
"wirthra@gmail.com"
] | wirthra@gmail.com |
f54e256b044f35e9c474446988f7d14d23ba8ea8 | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/sbl_amends_report.py | d4b48f9f029affb7bde1c3cb16a17c403c9467ad | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,895 | py | """-----------------------------------------------------------------------------
PURPOSE : SBL amendment process to record all Trade, Instrument,
and Settlement updates done by the OPS SecLend and
PCG Collateral user groups.
REQUESTER, DEPATMENT : Jennith... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
069daf9fcd75d1ebaecf241c369f67d176a8a713 | 67339298d164558a0aeedf5acd466114316189a2 | /Desktop/machineLearning-master/decodeWay.py | 5061e43cd8a8043948329b9a010968c5c02242ec | [] | no_license | liwzhi/Zillow-house-prediction | 333ee521c893e9c19a4b94ac28d1cd4c5134419e | 04349947e7dbf1b401dc92060260b17d94b8ab43 | refs/heads/master | 2021-01-10T08:10:45.140204 | 2017-12-06T07:27:34 | 2017-12-06T07:27:34 | 48,142,232 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | class Solution(object):
def numDecodings(self, s):
"""
:type s: str
:rtype: int
"""
if s ==None:
return
if len(s) ==0 or int(s[0])==0:
return 0
result = [1 for i in range(len(s))]
result[0] = 1
for index in range(1,len... | [
"liwzhi@gmail.com"
] | liwzhi@gmail.com |
fe1536d761b95d576aa1dcedce2693a1494607a9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04011/s215300449.py | 8862bf8c3b686f431a5b3b0c076b1e382701802d | [] | 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 | 263 | py | import math
from collections import defaultdict
ml=lambda:map(int,input().split())
ll=lambda:list(map(int,input().split()))
ii=lambda:int(input())
ip=lambda:input()
"""========main code==============="""
t=ii()
x=ii()
y=ii()
z=ii()
k=min(t,x)
print(k*y+(t-k)*z) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0a45c9e902956703d08878f0d2a2145524ccc7fc | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/network/v20170901/get_virtual_network_gateway_advertised_routes.py | 491842030e3fd1ca34afbdc08b244236ff9cd06e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | 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... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
c2277d53163c5404164df71aafdafe11a71e21e9 | e8199f1d424592affe19b50fd96a02815067d1b1 | /Dynamic Programming/1314. Matrix Block Sum.py | 3a0329465eb797a393be870b012fd28c5fbb0de3 | [] | no_license | srajsonu/LeetCode-Solutions-Python | 39a809e4c6d555a3a3055ce03d59cfa40b93a287 | 8ec31c8df2885f3da533424ba13060b7d3e3af78 | refs/heads/master | 2023-03-19T10:05:42.578615 | 2021-03-13T17:21:36 | 2021-03-13T17:21:36 | 280,716,200 | 0 | 1 | null | 2020-10-06T09:54:02 | 2020-07-18T18:32:04 | Python | UTF-8 | Python | false | false | 990 | py | class Solution:
def matrixBlockSum(self, mat, k: int):
m = len(mat)
n = len(mat[0])
pre = [[0] * n for _ in range(m)]
for i in range(m):
pre[i][0] = mat[i][0]
for j in range(1, n):
pre[i][j] = pre[i][j - 1] + mat[i][j]
for i in range(... | [
"srajsonu02@gmail.com"
] | srajsonu02@gmail.com |
b31daff5496b0fdc85a389a8ac740021b1ddad86 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /load_balancer_fuzzer_mcs/interreplay_37_r_4/interactive_replay_config.py | 341758043a2cfad48c0a708c5d5925de55b3ad0d | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import InteractiveReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_... | [
"jefflai2@gmail.com"
] | jefflai2@gmail.com |
a66ef776fe4397f576b0c71513945986dae9b624 | 0644d1cf2ee0fb96e5feb1f25e62f9a41911648b | /autotest_tools/test_case/start_baidutest.py | be3b52e3952984006691946705cc58e9ab40fb67 | [] | no_license | themycode/Autotest-selenium-python | 0e3979bd66adf807958da3856208ebf79671b468 | f07ce5df5084b387b3cf9aea92eb787cc9fce4be | refs/heads/master | 2021-06-01T07:05:27.802007 | 2016-08-02T13:43:17 | 2016-08-02T13:43:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | # -*- coding:utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
import time, unittest, re
class Baidu(unittest.TestCase):
... | [
"80470335@qq.com"
] | 80470335@qq.com |
38b4f1d75f3299d8d49bec838abb3ffa8a1c9379 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.SHP/Mono_8/pdf_to_json_test_Latn.SHP_Mono_8.py | f71d56c8acadb5d48d5ef1022bcaeb86b7ee9287 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.SHP/Mono_8/udhr_Latn.SHP_Mono_8.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
782689093c84b0ecbf88137c0b83204ba8c569c8 | 016bf8064e3c5e39c1130ad05ad0f3df6fb8c41c | /Seção 16 - Orientação a Objetos/01 - Pessoa.py | 346ac818cc7de411bbd47c34303eaa6c5ab4ebc5 | [] | no_license | JGilba/Python_Exercices | 0f0f82ec00150e492010086d54b78f92bf591993 | 940b464f5cdc67455cecefbc9b222c362f6e97f2 | refs/heads/master | 2022-03-26T09:17:06.201848 | 2020-01-14T16:33:44 | 2020-01-14T16:33:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | class Pessoa:
def __init__(self, nome: str, idade: int, altura: float):
self._nome = nome
self._idade = idade
self._altura = altura
def ver_dados(self):
print(f'Nome: {self.nome}')
print(f'Idade: {self.idade}')
print(f'Altura: {self.altura}')
# Getters
@... | [
"pierrevieiraggg@gmail.com"
] | pierrevieiraggg@gmail.com |
50344d7b2a6aed4eb5cb78652e498670ff2b22e2 | e5e9ee9e4db2e400e7f87647501ee412c13d76e5 | /python/python-base/re/form.py | f61520840b33051502db9567d7dd60e1e0ed241a | [] | no_license | beingveera/whole-python | 524441eec44379c36cb1cfeccdbc65bf1c15d2f6 | 3f2b3cb7528afb9605ab6f9d4d2efc856a247af5 | refs/heads/main | 2023-05-15T06:28:03.058105 | 2021-06-05T09:37:47 | 2021-06-05T09:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | import re
hand = open('password.txt')
for line in hand:
line = line.rstrip()
x = re.findall('\S+\S+\d+', line)
if len(x) > 0:
print(x) | [
"sharma.lokesh.222001@gmail.com"
] | sharma.lokesh.222001@gmail.com |
df6dec08547bbc7fe5a568bc3a6afead5a987fd6 | 2f750fe214b0d2e358f9f28c05cb63738c121348 | /sociolproject/settings.py | 5fe034360219bac446072f1c8314a37ae07e3249 | [] | no_license | jadielmwangi/sociolmedia | 979c18463af6f8d55d32e10ceb365272d6116b8d | d6a7e4f21ab6b9b7c7edc5655aac407899577c3b | refs/heads/master | 2023-08-11T11:11:31.443470 | 2020-07-07T09:31:05 | 2020-07-07T09:31:05 | 277,130,272 | 0 | 0 | null | 2021-09-22T19:22:24 | 2020-07-04T14:54:15 | Python | UTF-8 | Python | false | false | 3,751 | py | """
Django settings for sociolproject project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import... | [
"jedielmwangi@gmail.com"
] | jedielmwangi@gmail.com |
c743b51a7a26b0b3554ea6459cc12f44a0843307 | 37bb9ff8b7449b2147c1ad15d017ab4ff499d7b0 | /teamspirit/catalogs/migrations/0002_remove_product_size.py | 6c195450d1f555f70e0d4c385493e4cd930e630a | [
"MIT"
] | permissive | etienne86/oc_p13_team_spirit | 6e04cb1eb9858ff78a381194a01b446add2978ce | fd3d45618d349ecd0a03e63c4a7e9c1044eeffaa | refs/heads/master | 2022-12-17T19:05:01.593021 | 2020-10-02T11:37:57 | 2020-10-02T11:37:57 | 255,121,926 | 0 | 0 | MIT | 2020-07-24T17:37:31 | 2020-04-12T16:16:56 | Python | UTF-8 | Python | false | false | 317 | py | # Generated by Django 3.0.7 on 2020-09-19 21:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catalogs', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='product',
name='size',
),
]
| [
"barbier.et@gmail.com"
] | barbier.et@gmail.com |
a2a3f978d74ac32f48ac5aec0d07980ea86e5fd0 | e7190289cea8006fb99a54347a57439cdd7047b8 | /stock/industry/tmp.py | 9d1564188dc60b5efd4e960902d3c78c892c4388 | [] | no_license | hong0396/start_up_git | 282fe3845ad4c81ee7b23785a73052e3a5749fea | a6f9fa2da126382577e05869ff5a2fc98e29a7fb | refs/heads/master | 2021-07-09T06:16:16.955217 | 2019-03-30T13:43:13 | 2019-03-30T13:43:13 | 119,171,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | import urllib.request
import re
import time
import requests
import csv
import pandas as pd
import json
import random
import ast
from functools import reduce
from bs4 import BeautifulSoup
import urllib.request
my_headers = [
"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.217... | [
"hong0396@126.com"
] | hong0396@126.com |
48fbea2a11a317dbf00d483816a7951ec667a078 | abc89af3d78537266421803072727561111a9b2f | /336.palindrome-pairs-1.py | 256abe7a5f729680b93f5d44cdf29412ff016832 | [] | no_license | Iverance/leetcode | 41b34ff847d77dfa84a0f8f656889b9d4bf125d7 | 0127190b27862ec7e7f4f2fcce5ce958d480cdac | refs/heads/master | 2021-01-22T02:28:39.498315 | 2017-12-23T01:36:51 | 2017-12-23T01:36:51 | 102,247,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,638 | py | #
# [336] Palindrome Pairs
#
# https://leetcode.com/problems/palindrome-pairs
#
# algorithms
# Hard (26.59%)
# Total Accepted: 31.7K
# Total Submissions: 119.1K
# Testcase Example: '["abcd","dcba","lls","s","sssll"]'
#
#
# Given a list of unique words, find all pairs of distinct indices (i, j)
# in the given l... | [
"jeremhh@gmail.com"
] | jeremhh@gmail.com |
38ef1e5966fb37d314728c58c04fa232995bedcb | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Qei2FyKLmSCbYDkbm_22.py | f5efacacb68d702e24ec52d09a5fac550f375e3d | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | """
Fix the code in the code tab to pass this challenge (only syntax errors). Look
at the examples below to get an idea of what the function should do.
### Examples
sum_lst([1, 2, 3, 4, 5]) ➞ 15
sum_lst([-1, 0, 1]) ➞ 0
sum_lst([0, 4, 8, 12]) ➞ 24
### Notes
* **READ EVERY WORD CAREFULLY, ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3c116613d7a09791972164c897fd193d38eb3b0d | 78d23de227a4c9f2ee6eb422e379b913c06dfcb8 | /LeetCode/155.py | 9dc128083261d8f8b9f05994d09e6b62ff385910 | [] | no_license | siddharthcurious/Pythonic3-Feel | df145293a3f1a7627d08c4bedd7e22dfed9892c0 | 898b402b7a65073d58c280589342fc8c156a5cb1 | refs/heads/master | 2020-03-25T05:07:42.372477 | 2019-09-12T06:26:45 | 2019-09-12T06:26:45 | 143,430,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | class MinStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.mainstk = []
self.minstk = []
def push(self, x: int) -> None:
if len(self.mainstk) == 0:
self.mainstk.append(x)
self.minstk.append(x)
else:
... | [
"sandhyalalkumar@gmail.com"
] | sandhyalalkumar@gmail.com |
fd5bee3cc28d91c82c129798258ce11cc2dde4cd | 97efb29046ade79dd530dbf5a30bd4cfb6a13014 | /google/ads/google_ads/v3/proto/services/campaign_shared_set_service_pb2.py | e18641aac62c3f559861207abcbc7b1880b6eb95 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | andy0937/google-ads-python | 6f18ce3f989cc24b013a045be2131d8b58507fca | cb5da7f4a75076828d1fc3524b08cc167670435a | refs/heads/master | 2023-04-09T05:24:47.524919 | 2020-06-13T11:29:34 | 2020-06-13T11:29:34 | 262,887,328 | 0 | 0 | Apache-2.0 | 2023-03-24T11:27:54 | 2020-05-10T22:31:45 | Python | UTF-8 | Python | false | true | 18,656 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v3/proto/services/campaign_shared_set_service.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.p... | [
"noreply@github.com"
] | andy0937.noreply@github.com |
ec7383ee8b7d9f2a9acb5276f9f96dee0c237e94 | 3d8b20612a709cc08ae06719324761c1d4094883 | /panda/examples/can_bit_transition.py | 5c15e4bbc26eedbee2d733e2be28ceca5a2af81f | [
"MIT"
] | permissive | commaai/chffrplus | fee9178a96a5a15857f26d5fa62fd1f19d3a24c3 | 12527e1a686753cfc6215461f474bda9211878a0 | refs/heads/release2 | 2021-10-24T01:24:44.271176 | 2018-12-18T02:49:54 | 2018-12-18T02:49:54 | 107,477,295 | 138 | 65 | MIT | 2021-01-27T13:04:17 | 2017-10-19T00:14:01 | C | UTF-8 | Python | false | false | 3,167 | py | #!/usr/bin/env python
import binascii
import csv
import sys
class Message():
"""Details about a specific message ID."""
def __init__(self, message_id):
self.message_id = message_id
self.ones = [0] * 8 # bit set if 1 is always seen
self.zeros = [0] * 8 # bit set if 0 is always seen
def printBitDi... | [
"george@comma.ai"
] | george@comma.ai |
2c91266645096fb4a6e01b1a4fbe2d4290a07d77 | 89cdbf7f010ef8527c5ddab2a1bb3df93940b609 | /src/intron/__about__.py | 86b6036472c1c854aedf755011277829519c502f | [
"Apache-2.0"
] | permissive | jareyw/intron | 3f1b7486937f303e4b0c78483d50fb2f807324fe | f6ecc35cf98ca111d3affbdddfb4878d999107a6 | refs/heads/master | 2020-12-24T08:47:37.051817 | 2020-04-28T09:57:14 | 2020-04-28T09:57:14 | 73,320,987 | 2 | 1 | Apache-2.0 | 2020-04-28T09:52:00 | 2016-11-09T21:01:43 | Python | UTF-8 | Python | false | false | 651 | py | """Central place for package metadata."""
# NOTE: We use __title__ instead of simply __name__ since the latter would
# interfere with a global variable __name__ denoting object's name.
__title__ = "intron"
__summary__ = "Intron retention tool"
__url__ = "https://github.com/jareyw/intron/"
__version__ = "0.1.0"
__autho... | [
"zmrzlikar.jure@gmail.com"
] | zmrzlikar.jure@gmail.com |
ee75cd23820e2db593052b650d72a599cbb623d8 | bed931bc18bb9409ac36a474d46275683c79c485 | /modules/iperf3_tester.py | aaad3281568abbe7a3793ff24c52c950e89e0de7 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | blakekrone/wiperf | e9d7e1c9394f8b392008c12455878028c4020421 | ff9e24a8d887cebb82e797f54c8fdfe752d30e3d | refs/heads/master | 2022-04-15T20:24:03.296712 | 2020-03-12T15:10:20 | 2020-03-12T15:10:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,510 | py | '''
Functions to perform iperf3 tcp & udp tests and return a number of result characteristics
Note this originally used the iperf3 python module, but there were many issuse with the
jitter stats in the udp test, so I decided to use my own wrapper around the iperf
program itself, which returns results in json format w... | [
"wifinigel@gmail.com"
] | wifinigel@gmail.com |
54be97b3da89977691775993c8ead1b6df9ac8b3 | ad59fb12042bfd3f5c43eca057d0f747f9e148cf | /StreamLink/usr/lib/python2.7/site-packages/streamlink/plugins/hds.py | 028a1f050075982d8721feb9ff3f7575f6bb99a1 | [] | no_license | lexlong2007/eePlugins | d62b787100a7069ad5713a47c5688008063b45ec | 167b262fe36901a2d3a2fae6d0f85e2307b3eff7 | refs/heads/master | 2022-03-09T05:37:37.567937 | 2022-02-27T01:44:25 | 2022-02-27T01:44:25 | 253,012,126 | 0 | 0 | null | 2020-04-04T14:03:29 | 2020-04-04T14:03:29 | null | UTF-8 | Python | false | false | 809 | py | import logging
import re
from streamlink.plugin import Plugin, pluginmatcher
from streamlink.plugin.plugin import LOW_PRIORITY, parse_params
from streamlink.stream import HDSStream
from streamlink.utils import update_scheme
log = logging.getLogger(__name__)
@pluginmatcher(re.compile(
r"hds://(?P<url>\S+)(?:\s(?... | [
"zdzislaw22@windowslive.com"
] | zdzislaw22@windowslive.com |
4111af92bf68fc56f0f5cbfb5c1c8bae511287a4 | d2b53b3568890dd805575035d09635c422c6bc4d | /rllib/evaluation/trajectory.py | 6e49fbf0a691252649292fa581e281002c2e8be1 | [
"Apache-2.0",
"MIT"
] | permissive | mehrdadn/ray | 939deda7099eb30371cbb920a9725b314c58c0b5 | 3506910c5da257215d38d02f424acc4f419ddbaf | refs/heads/master | 2020-09-03T15:33:35.578248 | 2020-07-31T21:33:27 | 2020-07-31T21:33:27 | 219,498,150 | 2 | 1 | Apache-2.0 | 2019-11-04T12:37:23 | 2019-11-04T12:37:22 | null | UTF-8 | Python | false | false | 11,308 | py | import logging
import numpy as np
from typing import Dict, Optional
from ray.rllib.policy.sample_batch import SampleBatch
from ray.rllib.utils.framework import try_import_tf, try_import_torch
from ray.rllib.utils.types import AgentID, EnvID, PolicyID, TensorType
tf1, tf, tfv = try_import_tf()
torch, _ = try_import_to... | [
"noreply@github.com"
] | mehrdadn.noreply@github.com |
cd197f6e1d37d42e54ed0da3909cc5143fa4bc65 | d5849859e9aa9f6d8cc840b2c2adcbbf7c1827ac | /books/urls.py | df3e15e2503a028a049d49b2017c4f992235e6f1 | [] | no_license | bsimps01/Books | d4139dc9507453013dc3746185805bf1366609d4 | a40b9d20483a8f071eebf7d07bb047d3807531f7 | refs/heads/master | 2022-04-16T18:58:10.150181 | 2020-04-15T07:40:14 | 2020-04-15T07:40:14 | 255,731,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.home),
path('book/<int:book_id>/', views.detail, name='detail')
] | [
"b.albertsimpson@gmail.com"
] | b.albertsimpson@gmail.com |
37053846c2a7020a894d39649461b453a60474df | 280bd424e1a680b0bc64750fb1e6306ca4136759 | /audioweb/audio_web.py | 825ce69443e0fe398844c51e879d96481cc9c8d9 | [] | no_license | simonzhao88/personal-works | 45e4322269f44384f944daa191bca46d19d583b7 | a7d9ed3b2663c32201ccf7178d528f12ca194ce5 | refs/heads/master | 2021-04-27T00:12:35.822321 | 2018-07-17T12:06:53 | 2018-07-17T12:06:53 | 123,771,835 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | import socket
# 定义类的属性来存储请求信息
class Request(object):
# 初始化函数,一般用来定义类的属性
# 属性可以理解为类用来存储数据的容器
def __init__(self):
self.path = ''
self.query = {}
request = Request()
# 保存数据到本地
def save(n):
n = str(n)
with open('count.txt', 'w', encoding='utf-8') as f:
f.write(n)
# 本地读取数据... | [
"642252108@qq.com"
] | 642252108@qq.com |
5df9fc7abef85cfefaea89519c7a5a67cb85dd65 | cb81da9f1e138046b2df930a4809d96f35ebe412 | /2_toDo-api/toDoproject/todos/migrations/0001_initial.py | 6ae69f64ed8f344cabc8884b82b309af3535d282 | [
"MIT"
] | permissive | abdullah1107/Django-REST-API | bae78c43995a505db2af764c455cd2fd209d4636 | 03b9025607df9a5318d9e3b736fa66d233fdc4de | refs/heads/master | 2020-06-17T08:13:18.867268 | 2020-02-18T17:24:51 | 2020-02-18T17:24:51 | 195,857,292 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Generated by Django 2.2.1 on 2019-08-23 16:58
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(aut... | [
"abdullah.cse11@gmail.com"
] | abdullah.cse11@gmail.com |
312fa0fa20a7213163b08b9228013a1817d65375 | 0a154beeec7d8f2f1b881698cb482011b051c6fe | /baekjoon/가르침.py | a4c749ca622eaeedcc6a5adb76c4b11705c7adc4 | [] | no_license | kimsungho97/Algorithms | 2326270cc4e6e3c1d704b5d00ab327f8ce56f197 | bdbd1e70949830024e2aaff8d8f78fdc720cb438 | refs/heads/main | 2023-08-18T16:58:11.121514 | 2021-10-23T10:55:21 | 2021-10-23T10:55:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import copy
def alpha_to_index(alpha):
return ord(alpha)-ord('a')
n, k =list(map(int,input().split()))
words=[]
for i in range(n):
words.append(input())
alpha_count=[0 for i in range(26)]
alpha_count[alpha_to_index('a')]=1
alpha_count[alpha_to_index('n')]=1
alpha_count[alpha_to_index('t')]=1
alpha_cou... | [
"kimsungho97@gmail.com"
] | kimsungho97@gmail.com |
46e18e1f824bbd99b526ae22755c9fafb9a5ecd6 | d37d0c83fcdf642ba860c1bc8c95641786743e5a | /bbva/settings.py | 909cfa6d0dd19f5c4e7671900f51f24156f6af65 | [] | no_license | hristo-grudev/bbva | 2fb6e55237d77ea2f7b54fad4a4e8a7b51526efc | 525056654c3805799e3cbca5c81078d6ec7f70ff | refs/heads/main | 2023-03-10T22:38:40.171530 | 2021-03-04T09:12:14 | 2021-03-04T09:12:14 | 344,414,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | BOT_NAME = 'bbva'
SPIDER_MODULES = ['bbva.spiders']
NEWSPIDER_MODULE = 'bbva.spiders'
FEED_EXPORT_ENCODING = 'utf-8'
LOG_LEVEL = 'ERROR'
DOWNLOAD_DELAY = 0
ROBOTSTXT_OBEY = True
ITEM_PIPELINES = {
'bbva.pipelines.BbvaPipeline': 100,
}
USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 ... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
714a1a56286d0830b8e226fb1bf0db62cf4f2d30 | 4eddf6a34715752dc652571b1ab274f51ceb5da0 | /.history/adad_20210606181940.py | d8e1b3ea016d572f9ecc43a7faf1e9d8b0b42f77 | [] | no_license | Suelt/Hust-SE-introduction-to-ML | 649aba0e5b41363ceac03330ef02982982a0615d | a66785c3085da573f5748d13608eabf02e616321 | refs/heads/master | 2023-05-27T13:13:41.058545 | 2021-06-10T05:44:02 | 2021-06-10T05:44:02 | 375,582,438 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,614 | py | from tensorflow.keras.datasets import mnist
import numpy as np
import random
import tensorflow
def sigmoid(inX):
from numpy import exp
return 1.0 / (1 + exp(-inX))
def dsigmoid(z):
return sigmoid(z)(1 - sigmoid(z))
# def initialize_weights(size_this, size_last):
# weights = np.random.randn(size_this... | [
"2552925383@qq.com"
] | 2552925383@qq.com |
f9fd9b7121ce1fbb70e0e59d2ebb61dcceff042a | da370ba0df9700519139e1da54f3e7f38e9b7f5f | /.nox/tests/lib/python3.7/site-packages/tensorflow_core/_api/v1/compat/v2/dtypes/__init__.py | b702532ce8c0ec7f727f3f4ade17120cb62f93bb | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | antonevenepoel/open_spiel | 90e3c7c6611cf508f2872237412fd67cf6cd10e0 | f2f0c786410018675fc40e9a5b82c40814555fa8 | refs/heads/master | 2021-03-15T20:57:00.562672 | 2020-05-15T16:10:23 | 2020-05-15T16:10:23 | 246,877,171 | 0 | 0 | Apache-2.0 | 2020-03-12T16:07:42 | 2020-03-12T16:07:41 | null | UTF-8 | Python | false | false | 2,273 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Public API for tf.dtypes namespace.
"""
from __future__ import print_function as _print_function
import sys as _sys
from tensorflow.python.framework.dtypes import DType
from tensorflow... | [
"36889203+antonevenepoel@users.noreply.github.com"
] | 36889203+antonevenepoel@users.noreply.github.com |
3b09070930cf247548de687c8361dd9703886460 | 8407a0d96a7122ef5c1bed2fae335b5c089ed6bf | /ggpy/cruft/autocode/CloudGameRepository.py | e396c0ea8445ac54d718a83d3fbd7a246ccbd87b | [
"MIT"
] | permissive | hobson/ggpy | d90cdb4f545bab84e09a14cbf7a53c05ec573278 | 4e6e6e876c3a4294cd711647051da2d9c1836b60 | refs/heads/master | 2021-01-22T04:24:18.890860 | 2014-08-17T21:59:24 | 2014-08-17T21:59:24 | 18,973,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,360 | py | #!/usr/bin/env python
""" generated source for module CloudGameRepository """
from threading import RLock
_locks = {}
def lock_for_object(obj, locks=_locks):
return locks.setdefault(id(obj), RLock())
def synchronized(call):
def inner(*args, **kwds):
with lock_for_object(call):
return call... | [
"hobsonlane@gmail.com"
] | hobsonlane@gmail.com |
3487d1134e9b23f95ba96642939ea84da2c41447 | 8690ff3a6a1ca748aebb381bd50fdb317babbaf8 | /src/archs.py | f2730cfa0e0201c7a3382080a6a4f97a9d504770 | [] | no_license | thoppe/postern_perception | 8457bd1f89fb198191c4152d3354036ad4369d20 | b2b8dda375d1a0430c2cadcd5994e1fbd7a23676 | refs/heads/master | 2023-04-07T17:48:52.816426 | 2020-01-29T16:22:04 | 2020-01-29T16:22:04 | 216,728,164 | 0 | 0 | null | 2023-03-25T18:13:20 | 2019-10-22T05:12:42 | Python | UTF-8 | Python | false | false | 5,288 | py | # Network architectures.
from __future__ import division
from utils.ops import relu, conv2d, lrelu, instance_norm, deconv2d, tanh
import tensorflow as tf
import tensorflow.contrib.slim as slim
def discriminator(params, x_init, reuse=False):
""" Discriminator.
Parameters
----------
params: dict.
... | [
"travis.hoppe@gmail.com"
] | travis.hoppe@gmail.com |
9bbd2a720f2bf16313b190ccb2fb91b05aa08841 | d6bcfbc22884a239f5608dc024a23409a2c2fe11 | /professional-python/main.py | d3218eda47507d912887fa3da9c7dc7af63d62da | [] | no_license | Payload-solutions/ConcurrencyPython | 483473353cab8f3b6563d736c78417a078fcfc43 | e0afc08f52a9844e5d655a2b5f1690fa06e85acb | refs/heads/master | 2023-07-27T22:40:14.656482 | 2021-09-08T22:03:38 | 2021-09-08T22:03:38 | 386,355,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | #!/usr/bin/python3
import threading
import multiprocessing
from random import randint
def implement_sum():
values = [randint(1, 1000) for _ in range(10)]
print(values)
cumulator = 0
for x in values:
cumulator += x
print(cumulator)
def main():
sum_process = multiprocessing.Proce... | [
"anegreiross@outlook.com"
] | anegreiross@outlook.com |
25e0d0803237468ce6152cb23c46c6dfb53ee111 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Gdoh8rdoaB9jJLLAn_4.py | bfabfdc9c62b21dfbc3f0d0f881f53a1fb4df9b1 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | """
Create a function that takes an expression `exp` and an upper limit `i` as
arguments and returns the sum of that expression up to the i'th term (recall
sigma from math class).
### Examples
summation("n", 10) ➞ 55
summation("1/n", 50) ➞ 4.5
summation("n**n", 6) ➞ 50069
### Notes
* Assu... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6cd28c98d30739613326ed6b4f75507b893b6f23 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/exercism/exercism-master_with_unittest/kindergarten-garden/garden.py | 6deb7df912fc9bbf3b78123947825b8667ac304f | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 775 | py | c_ Garden:
DEFAULT_STUDENTS ("Alice Bob Charlie David Eve Fred Ginny "
"Harriet Ileana Joseph Kincaid Larry").s..
PLANTS {'G': 'Grass',
'C': 'Clover',
'R': 'Radishes',
'V': 'Violets'}
___ - , diagram, students=DEFAULT_STUDENTS
dia... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
d5592c3530704ace3ea01000083b60b3c36c2b14 | bf397e60bba27b649084966aee686869c7df595d | /python/python010/day10/day09_exercise/mysum.py | 1e62c493abf8f1f9a05ede992f604589f8e3a324 | [] | no_license | demo112/1807 | 3783e37f7dab3945a3fc857ff8f77f4690012fbe | 9b921c90b3003226d919017d521a32da47e546ad | refs/heads/master | 2022-12-01T10:50:24.086828 | 2018-12-06T09:48:14 | 2018-12-06T09:48:14 | 150,758,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | # Mysql_order 写一个函数mysum(n) ,此函数用来计算
# 1+2+3+4+....+n的和
# 如:
# print(mysum(100)) # 5050
def mysum(n):
s = 0
for x in range(1, n + 1):
s += x
return s
print(mysum(100)) # 5050
print(mysum(1000))
print(mysum(10000))
| [
"huafengdongji@hotmail.com"
] | huafengdongji@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.