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
da902d2befb4663c420a37b3b99b524787e0a04d
dc51e4714820d991e7d0e94b3e9eac4dbc67eea7
/历史练习1120/host_management/utils/page.py
e26b17ffd6eb6a51666b153df1c3c5b40d4a2517
[]
no_license
ruoxiaojie/Django
537d27abe9ebb85e0dfc69585f318a87e7514a70
92b88600953cd4ff743032cab3d4785437c949e0
refs/heads/master
2021-01-15T22:18:56.033883
2018-03-09T06:15:46
2018-03-09T06:15:46
99,894,862
0
1
null
null
null
null
UTF-8
Python
false
false
3,071
py
#!/usr/bin/python #Author:xiaojie # -*- coding:utf-8 -*- class Page(object): def __init__(self,current_page,all_count,base_url,per_page=10,pager_page_count=11): """ 分页初始化 :param current_page: 当前页码 :param per_page: 每页显示数据条数 :param all_count: 数据库中总条数 :param pager_page_...
[ "475030894@qq.com" ]
475030894@qq.com
e407b72eb65308af08dd28299420bd5d09cf7c0e
9633b9314337bef7d2e3bfddb71cb2ea6da55a90
/websauna/system/devop/__init__.py
a460e6caf5975f54fcd952f3e12f1ddf7fcb6c2d
[ "MIT", "Apache-2.0" ]
permissive
rmoorman/websauna
c118e377b5f61886b581d66526bb567ed3fe8843
a0dc40da3f30ad26058f2583ac55ea0ff7055189
refs/heads/master
2021-01-14T08:30:48.313289
2016-01-17T17:28:38
2016-01-17T17:28:38
49,883,430
0
0
null
2016-01-18T14:50:46
2016-01-18T14:50:46
null
UTF-8
Python
false
false
116
py
"""This package contains various command line scripts and timed tasks to set up a site and run it in production."""
[ "mikko@opensourcehacker.com" ]
mikko@opensourcehacker.com
e33e9cf7982165ee7ef95e0f9d59cf8b243ce4da
755e4e6e966433fe887f0f28f14916696b1588d7
/code/evaluation/video/BackgroundSubtractorDummy.py
8944c4aecc694c2070e8febb9edd136dc40f026e
[]
no_license
phildue/FingerspellingRecognition
f18518a6e2e29b769d131e5b54846f00213f3ff1
1b5236142734d7b50f0f4161ecc533b7d10347b8
refs/heads/master
2021-03-24T10:40:24.507766
2017-07-03T09:33:09
2017-07-03T09:33:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
import cv2 from preprocessing.segmentation.BackgroundSubtractor import BackgroundSubtractor class BackgroundSubtractorDummy(BackgroundSubtractor): def __init__(self, diff_img, test_img): super().__init__() self.diff_img = diff_img self.test_img = test_img def get_background(self): ...
[ "phild@protonmail.com" ]
phild@protonmail.com
868c26a2e9f893d5fd16b107fda4605c130ececa
04803c70bb97012b7d500a177ac0240fb2ddbe38
/1heptane/pdep/network2715_1.py
8a34f6725e5eee89f902b49a8b1a7df8eaa1b37b
[]
no_license
shenghuiqin/chpd
735e0415f6688d88579fc935459c1b0f53596d1d
396ba54629036e3f2be0b3fabe09b78c90d56939
refs/heads/master
2023-03-01T23:29:02.118150
2019-10-05T04:02:23
2019-10-05T04:02:23
192,084,217
0
0
null
2019-06-18T18:33:13
2019-06-15T13:52:28
HTML
UTF-8
Python
false
false
99,132
py
species( label = 'CCCCC([O])O[CH]C=O(13350)', structure = SMILES('CCCCC([O])OC=C[O]'), E0 = (-298.704,'kJ/mol'), modes = [ HarmonicOscillator(frequencies=([2750,2770,2790,2810,2830,2850,1425,1437.5,1450,1225,1250,1275,1270,1305,1340,700,750,800,300,350,400,2995,3025,975,1000,1300,1375,400,500,16...
[ "qin.she@husky.neu.edu" ]
qin.she@husky.neu.edu
4fbdf8557e5a9c34e48538a69f02f7ebb9a07e07
2daa3894e6d6929fd04145100d8a3be5eedbe21c
/tests/artificial/transf_pow3/trend_linear/cycle_0/ar_/test_artificial_128_pow3_linear_0__0.py
02a765a3634a574c09d19185e979246cdc9569dc
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Henri-Lo/pyaf
a1f73a0cc807873bd7b79648fe51de9cfd6c126a
08c968425d85dcace974d90db7f07c845a0fe914
refs/heads/master
2021-07-01T12:27:31.600232
2017-09-21T11:19:04
2017-09-21T11:19:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art dataset = tsds.generate_random_TS(N = 128 , FREQ = 'D', seed = 0, trendtype = "linear", cycle_length = 0, transform = "pow3", sigma = 0.0, exog_count = 0, ar_order = 0); art.process_dataset(dataset);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
a3eec36289a9fd7c7473aad001070f60822c0b37
b5d0a6254b54c0a778181a67bcda14cc6663e871
/0-notes/job-search/Cracking the Coding Interview/C13Java/questions/13.3-question.py
c5d092a41c6e24953c6673c0cda130ad2dac0976
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
Web-Dev-Collaborative/Lambda-Final-Backup
113e719a76a144b86d06f3a412afe4b02689cad7
e9ab84928faa8364bacd863009ae9aec01ff9d1e
refs/heads/master
2023-06-07T15:34:00.682815
2021-04-17T01:53:14
2021-04-17T01:53:14
358,899,122
0
0
MIT
2023-05-30T04:03:16
2021-04-17T14:24:53
JavaScript
UTF-8
Python
false
false
83
py
# 13.3 Final, etc. # What is the difference between final, finally, and finalize?
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
fb210f7f5afaf1f68f627a6e2dcde02c698f21ca
011a750fae8ade67f726a9749e05cc4afb8e360d
/Vivo_create case/test.py
e6a6e3b03328bade918031fabf7cb58627217543
[]
no_license
MartinCarufel/PycharmProjects
c7e50b66a24d4a216b7a217192fcd446f5324d9f
aaa6c95b3e2e6525586fb6a03d1c9d484065899b
refs/heads/master
2023-07-05T22:40:38.650892
2023-06-26T13:55:13
2023-06-26T13:55:13
150,859,642
1
0
null
null
null
null
UTF-8
Python
false
false
513
py
import pyautogui as pg class Test_suite: def __init__(self): self.win_main = { 'win logo': 'win_logo.png', 'new case': 'new case.png' } pass def test1(self): # location = pg.locateCenterOnScreen('win_logo.png', confidence=0.9) # print(location...
[ "maccam6@gmail.com" ]
maccam6@gmail.com
6e5b0ee9ab79d06d5476373ffc2f7c284b0045e4
4c614f080633e6a4b372047191b3930f0a17c714
/blog/views.py
19719c7f9c1f81f3f0f3c4b208c80c72056e9356
[]
no_license
Eimis/Blog
963d942d1ca8bcce62c14840906d89ec16fbbca1
92b61f5807dd28515c22efc7e300da16d8f9e33d
refs/heads/master
2020-04-06T05:03:38.029555
2014-03-09T21:35:03
2014-03-09T21:35:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,504
py
from django.http import HttpResponse from django.shortcuts import render from blog.models import Post from blog.forms import ContactForm from django.core.mail import send_mail from django.http import HttpResponseRedirect def Main(request): lastest_posts = Post.objects.filter(display=True).order_by("-pub_date",) [:2...
[ "eimantas.stonys@gmail.com" ]
eimantas.stonys@gmail.com
ab8dedf977f6fb17bb98fb4a05ac19722ff1c918
4e5e65d7c07f1a4a85899f10a4eea4977a2ce9a9
/scripts/clock_deblur.py
f1ec2b5bbc551fd0f1de8cafae922033946d6086
[]
no_license
stefanv/aims2014
6f5545c668269c1a5db8876fcc3d0735b5225aa7
384b9ee8d21dce6d9092ec4b8416859a90225bfc
refs/heads/master
2020-05-27T07:46:09.487556
2014-07-18T14:35:15
2014-07-18T14:35:15
21,921,085
1
0
null
null
null
null
UTF-8
Python
false
false
1,565
py
import numpy as np import matplotlib.pyplot as plt from skimage import io, color from skimage.viewer import ImageViewer from skimage.viewer.widgets import Slider from skimage.viewer.plugins.base import Plugin image = io.imread('../images/clock_motion.png') M, N = image.shape ## Should pad, but doesn't make much dif...
[ "stefan@sun.ac.za" ]
stefan@sun.ac.za
6c0ef3d70e2d5bad70f88ff429e96d14cc060b77
4eb4f5c834e6448782ea11b23dd724551f8988a0
/media/documents/Cross Sections/Runway new/script.py
17aed56b9fad07affbf77397f9b070c32ce93fe0
[]
no_license
Mohab25/Tubra_Django
c272736c56e970a918c174307babf7aeae85af25
97f422c6f0645ad8e87a247edf33a49921bde451
refs/heads/master
2023-08-13T16:29:59.504867
2021-09-19T14:24:44
2021-09-19T14:24:44
340,656,691
1
0
null
2021-07-13T06:49:36
2021-02-20T13:05:48
JavaScript
UTF-8
Python
false
false
151
py
import os from pathlib import Path for f in os.listdir(): #print(os.path.splitext(f)) if f.endswith('pdf'): print(os.path.abspath(f))
[ "homab3@gmail.com" ]
homab3@gmail.com
334291795d858fe938f874cc6ecda0da265926b5
7137161629a1003583744cc3bd0e5d3498e0a924
/airflow/api_connexion/endpoints/provider_endpoint.py
844dcd301495c6871f6f034a8d15bd189b6ef130
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
jbampton/airflow
3fca85975854eb916f16143b659a9119af143963
dcfa14d60dade3fdefa001d10013466fe4d77f0d
refs/heads/master
2023-05-25T22:31:49.104069
2021-09-18T19:18:32
2021-09-18T19:18:32
247,645,744
3
0
Apache-2.0
2020-03-16T08:12:58
2020-03-16T08:12:57
null
UTF-8
Python
false
false
1,860
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" ]
jbampton.noreply@github.com
ca7bf250ae56e722ce0dc3fac6cd5b4ef5bab44a
7357d367b0af4650ccc5b783b7a59090fdde47bb
/reviewboard/webapi/tests/test_api_token.py
3d593bfe820b220205713483c9c685fc11ca54bf
[ "MIT" ]
permissive
BarracudaPff/code-golf-data-python
fb0cfc74d1777c4246d56a5db8525432bf37ab1a
42e8858c2ebc6a061012bcadb167d29cebb85c5e
refs/heads/main
2023-05-29T05:52:22.856551
2020-05-23T22:12:48
2020-05-23T22:12:48
378,832,634
0
0
null
null
null
null
UTF-8
Python
false
false
6,613
py
def _compare_item(self, item_rsp, api_token): self.assertEqual(item_rsp["id"], api_token.pk) self.assertEqual(item_rsp["token"], api_token.token) self.assertEqual(item_rsp["note"], api_token.note) self.assertEqual(item_rsp["policy"], api_token.policy) self.assertEqual(item_rsp["extra_data"], api_token.extra_data) ...
[ "sokolov.yas@gmail.com" ]
sokolov.yas@gmail.com
415b4b5ca762243855aa661b8bc21b3924351c99
47f1b125b401ac2b0d18b9ce685b5c3d13f68e3e
/stasis/events.py
13c680790a74cff9936789e4632311b3f44d75bf
[]
no_license
fschulze/stasis
fb7473361c8be870851589e18a17682ebd06f92c
368d82b3927d365e1ca61e11600093652520b4d8
refs/heads/master
2020-05-18T02:20:49.456035
2014-03-18T07:18:12
2014-03-18T07:18:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
from stasis.interfaces import IPreBuild from zope.interface import implementer @implementer(IPreBuild) class PreBuild(object): def __init__(self, site): self.site = site.registry
[ "florian.schulze@gmx.net" ]
florian.schulze@gmx.net
e6753a2fe1b15385d615ae5728f98d265dc21c09
5fda498ef0bfc06962ad9b864d229193c45ccb4a
/Project1_Analyzing_the_NYC_Subway_Dataset/problem_sets2to5/problem_set5_mapreduce_on_subway_data/5_2_ridership_by_weather_reducer.py
9c13400465ec13fe64f0972326294c13776e3bbf
[]
no_license
prabhurgit/Data_Aanlyst_Nanodegree_projects
7934869b63cae57cb2851e22a5023c6cbe3d18ba
a7a13d93c632cd1840ba3a00fff80a60a131b7f3
refs/heads/master
2021-05-31T18:47:48.669414
2016-03-30T04:08:39
2016-03-30T04:08:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,014
py
import sys import logging from util import reducer_logfile logging.basicConfig(filename=reducer_logfile, format='%(message)s', level=logging.INFO, filemode='w') def reducer(): ''' Given the output of the mapper for this assignment, the reducer should print one row per weather type, alo...
[ "xiewisdom@gmail.com" ]
xiewisdom@gmail.com
a11b54daac573504f8b596a4715a12396b6239a4
d5a32e532fe231c16e52149604f0db34c5f4d2f9
/binarysearch.io/balanced_brackets_II.py
562ba59830209f53abf53bc59e7af7b3cc668ba9
[ "MIT" ]
permissive
mishrakeshav/Competitive-Programming
93705f63337639e8464c1d50f3394434b7422f15
00c1bd272646754ca4c260d57989304c8e323838
refs/heads/master
2023-07-06T07:32:23.042324
2023-06-29T15:27:24
2023-06-29T15:27:24
216,195,590
3
3
MIT
2020-10-03T07:55:18
2019-10-19T11:27:53
Python
UTF-8
Python
false
false
539
py
class Solution: def solve(self, s): # Write your code here stack = [] string_open = ["(", "[", "{" ] string_closed = [")", "]", "}"] for i in s: if i in string_open: stack.append(i) else: if len(stack) == 0: ...
[ "mishrakeshav@users.noreply.github.com" ]
mishrakeshav@users.noreply.github.com
3cc2d219b945557f9b170857474e1e2c2f0bce18
94a16dc81580ba7fb8776775e479e097ffa07a2e
/Base/string_base.py
45835074661ad68f0cb5d0a8c28413bfbb81bb9d
[]
no_license
lixiang007666/Algorithm_LanQiao
0cc0cf17056125c963e26cc4eb539716128410d7
9e70788fbab774956f61ceafb12ad98cb8d42c3a
refs/heads/master
2022-12-31T04:45:07.110726
2020-10-17T05:54:32
2020-10-17T05:54:32
304,841,096
2
0
null
null
null
null
UTF-8
Python
false
false
511
py
import math import cmath import sys import string import heapq import bisect from queue import Queue,PriorityQueue,LifoQueue from collections import Counter,deque from itertools import permutations,combinations from functools import cmp_to_key s="rwegwe" print(s.count("rw")) print(s.endswith("e")) print(s.startswith("...
[ "54010254+lixiang007666@users.noreply.github.com" ]
54010254+lixiang007666@users.noreply.github.com
45e1218b30d8f3a3a0ad3e5c3d93c3244d83f9d2
809371376cda523a26a6198ddff097cef7c985e7
/tb/test_udp.py
a1e2da1a83aa89235e9334a4e588998b8026040e
[ "MIT" ]
permissive
ethercat-fpga/verilog-ethernet
cfabcdabefc4cede40677a88a52341e9697d68a2
18d6aab16de8950f98824232213841138c8a82e3
refs/heads/master
2020-05-05T07:41:18.618994
2019-04-04T05:32:06
2019-04-04T05:32:06
179,834,085
1
1
null
2019-04-06T13:01:56
2019-04-06T13:01:56
null
UTF-8
Python
false
false
19,425
py
#!/usr/bin/env python """ Copyright (c) 2014-2018 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,...
[ "alex@alexforencich.com" ]
alex@alexforencich.com
422de43b4ef0122243bded337050617c53c4ebc2
8a42fc0a988ab3c03a8a74c6c75452acfe289b4d
/changing_ar.py
62306f64242aa45ea1c080f38186d983c1560c38
[]
no_license
rw1993/PyAr
5c5d5fc4a90b08b9b4a6e0883141b491ccaf45da
a09bc8ba4cda11f4e4cccdc4b6575b61ae0f18e0
refs/heads/master
2021-01-17T17:39:30.240020
2017-05-04T06:51:48
2017-05-04T06:51:48
60,001,886
0
0
null
null
null
null
UTF-8
Python
false
false
1,151
py
# -*- coding: utf-8 -*- # author: rw # E-mail: weiyanjie10@gmail.com import random import numpy class AR(object, ): def __init__(self, parameters, frequency, sd=0.3): self.parameters = parameters self.p = len(self.parameters[0]) self.frequency = frequency self.group = len(self.par...
[ "470177412@qq.com" ]
470177412@qq.com
e9988575c264c67dcbce4e890dcb51a309b29451
97e11c65903f583dfc4f51da13cae8236cc7180e
/bungie_d1_sdk_python/Model/Destiny/tier_type.py
d8adb485dd91c2ca861c648d845e99ad840f4b78
[]
no_license
Yogarine/bungie-d1-sdk-python
7272566f017ecb29a22d8f3560cb8e61ce765f72
ca1f3562d5c343d2151abc88e98bdde678893780
refs/heads/master
2020-07-03T15:21:43.983126
2019-08-12T14:56:43
2019-08-12T14:56:43
201,950,279
0
0
null
null
null
null
UTF-8
Python
false
false
2,561
py
# coding: utf-8 """ Unofficial Bungie.net API for Destiny 1 These are legacy endpoints for Destiny 1 that are no longer supported officially by Bungie. # noqa: E501 OpenAPI spec version: 1.0.0 Contact: lowlines89@gmail.com Generated by: https://openapi-generator.tech """ import pprint import r...
[ "alwin@garsi.de" ]
alwin@garsi.de
6ce9552ca184f38e6e2d9c997408e19359780a15
fe0017ae33385d7a2857d0aa39fa8861b40c8a88
/env/lib/python3.8/site-packages/sklearn/linear_model/omp.py
e78001aa19b4c7faf0b95c9506bd156e52f47cdb
[]
no_license
enriquemoncerrat/frasesback
eec60cc7f078f9d24d155713ca8aa86f401c61bf
e2c77f839c77f54e08a2f0930880cf423e66165b
refs/heads/main
2023-01-03T23:21:05.968846
2020-10-18T21:20:27
2020-10-18T21:20:27
305,198,286
0
0
null
null
null
null
UTF-8
Python
false
false
563
py
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py import sys # mypy error: Module X has no attribute y (typically for C extensions) from . import _omp # type: ignore from ..externals._pep562 import Pep562 from ..utils.deprecation import _raise_dep_warning_if_not_pytest deprecated_path = 'sklearn.line...
[ "enriquemoncerrat@gmail.com" ]
enriquemoncerrat@gmail.com
fda825983d13f563814638eb165bc887ff748cc2
6e61b1711a0876eecf8d8f258b3f92c8bbcdf496
/yes/google-cloud-sdk/lib/surface/container/clusters/create.py
03f4fe09cacf2a2aa6e666c503c36d988f210c26
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
lupynua/language-school
661c49a075c5ecfb4814146bac7016c6b1ff7e09
9a9d37ed4cb000379d3d49296a17b7d648c18dba
refs/heads/develop
2021-01-16T22:08:24.485744
2017-11-06T16:26:16
2017-11-06T16:26:16
64,672,552
0
0
null
2016-08-01T14:12:39
2016-08-01T14:12:39
null
UTF-8
Python
false
false
10,937
py
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "lupynua@gmail.com" ]
lupynua@gmail.com
978d6a9822ebca983b471f3f966ade295f46cbe1
525dc175d55c2f5f33f87df6915f3633537da17c
/oas_dev/notebooks/global_comparisons/04_2d_rels/04-02_2d_histograms_diff.py
1a982138a4039f10e3beeafaef7b8e3161ff410a
[ "CC0-1.0" ]
permissive
sarambl/OAS-DEV
1b4c020ff862075034536ea38f30a131968791fb
8dec6d29ef23dee8135bc937cd6ee1ef5b64d304
refs/heads/master
2023-04-09T07:59:31.051158
2021-10-26T12:20:04
2021-10-26T12:20:04
310,578,324
0
0
null
null
null
null
UTF-8
Python
false
false
29,068
py
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.3.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% import matplotlib from oas_dev.data_info import...
[ "samebr@gmail.com" ]
samebr@gmail.com
d29a348904016924e690b825b758b20f51d24b6e
e82ba9700d831ddc884928eb2cc04173075561e1
/torba/torba/client/baseheader.py
339dd5e54e13fed55e625d277b9ebe4c5d76b3f3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
raymondSeger/lbry-sdk
ee223d7fbfdd3495a66a457cfaf87e311eb22f44
bbc056eef066dfe35967b14f676b22792bbab40e
refs/heads/master
2022-02-04T11:58:03.309249
2019-07-19T15:26:50
2019-07-19T15:26:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,851
py
import os import logging from io import BytesIO from typing import Optional, Iterator, Tuple from binascii import hexlify from torba.client.util import ArithUint256 from torba.client.hash import double_sha256 log = logging.getLogger(__name__) class InvalidHeader(Exception): def __init__(self, height, message):...
[ "lex@damoti.com" ]
lex@damoti.com
5f347ed86ecc27ac757d1c17dd3cedf5c19f44d1
693d93174f43a81d8a65041553282a8872e3a6ff
/test/functional/wallet_listsinceblock.py
6f84b56fe519c7e9faaf4042414114d97bb2a807
[ "MIT" ]
permissive
eleccoin/eleccoin
c075719d5ee676fc2bb9a21f3711d75d673655bd
963f6d4a069e40ab2e46217e5d49bc94adda2c5c
refs/heads/master
2022-11-13T02:38:36.662655
2022-10-30T08:56:57
2022-10-30T08:56:57
238,475,897
3
7
MIT
2022-01-10T07:29:19
2020-02-05T14:56:34
C++
UTF-8
Python
false
false
14,650
py
#!/usr/bin/env python3 # Copyright (c) 2020-2021 The Eleccoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the listsinceblock RPC.""" from test_framework.address import key_to_p2wpkh from test_framework....
[ "unify@eleccoin.org" ]
unify@eleccoin.org
810baa8d6990a13eb934f8ea0ba4fe2789267ac8
e5c687c17a96e80d4bda1d0887b8009bf2b3f776
/macropy/core_tests/macro_b.py
062de1f3d75a87a35d9eeda6cfcaf8ed36aeab67
[ "MIT" ]
permissive
rcarmo/macropy
a50265d3a69a3d82dc377c715d3ed5a731ed5c5f
ca2d0eebfecafd6eb2e429c23be96a90bfbbeca7
refs/heads/master
2021-01-21T00:52:29.858749
2013-05-13T20:21:25
2013-05-13T20:21:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
from macropy.core.macros import * macros = Macros() @macros.expr def g(tree): return Num(n = 20)
[ "haoyi.sg@gmail.com" ]
haoyi.sg@gmail.com
d9543dbbf9479d52cb98637c34019ef3f722181a
7db6c1865cf9102808824ff06cda747b6e572a21
/Python/Lib/ApiWsh/api/__init__.py
41aa17cca0eea053eef435c89f4e7a83a28b7316
[]
no_license
hyteer/testing
1f6cabc1d2b67faa4533e6ad7eb5be8c13d542c9
1d8b47b3bbb2daf00e4f15b5d18e86111ea4e113
refs/heads/master
2020-05-21T16:19:08.243676
2017-01-03T01:25:17
2017-01-03T01:25:17
60,914,071
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
# encoding: utf-8 from init_session import InitSession from shop import Shop from common import Common from marketing import Marketing from utils import CommonUtils from product import Product from member import Member from wexin import Weixin __all__ = [ "InitSession", "Common", "Shop", "Marketing", ...
[ "hyteer@qq.com" ]
hyteer@qq.com
a6cfd0b621c47bbada59feb13b42ff40770c9170
c83e356d265a1d294733885c373d0a4c258c2d5e
/mayan/apps/announcements/views.py
8c1c80a96b85a9513f753a1ed3a35b6c541b84dc
[ "Apache-2.0" ]
permissive
TrellixVulnTeam/fall-2021-hw2-451-unavailable-for-legal-reasons_6YX3
4160809d2c96707a196b8c94ea9e4df1a119d96a
0e4e919fd2e1ded6711354a0330135283e87f8c7
refs/heads/master
2023-08-21T23:36:41.230179
2021-10-02T03:51:12
2021-10-02T03:51:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,860
py
import logging from django.template import RequestContext from django.urls import reverse_lazy from django.utils.translation import ugettext_lazy as _ from mayan.apps.views.generics import ( MultipleObjectConfirmActionView, SingleObjectCreateView, SingleObjectEditView, SingleObjectListView ) from ...
[ "79801878+Meng87@users.noreply.github.com" ]
79801878+Meng87@users.noreply.github.com
38e00c28fd10a054e3f45b1869c473b5a80aff1c
57dfd89d63b3b52eed144653c8264d50fa9fba6e
/consolidacion/urls.py
ccb88f7779bde647146b0913aaa142b06376d955
[]
no_license
geovanniberdugo/siiom
c850620214a1a3b8b1fc83ab895c0601241da3b4
5e2b72aff7ac5e94a93b7575603114b4ea5f628a
refs/heads/main
2023-02-16T15:02:30.539674
2021-01-15T22:29:36
2021-01-15T22:29:36
330,036,242
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
from django.urls import re_path from . import views app_name = 'consolidacion' urlpatterns = [ re_path(r'^asignar_grupo_visitas/$', views.asignar_grupo_visitas, name="asignar_grupo_visitas"), re_path(r'^visitas/nueva/$', views.CrearVisitaView.as_view(), name="crear_visita"), re_path(r'^visitas/editar/(?P<p...
[ "geovanni.berdugo@gmail.com" ]
geovanni.berdugo@gmail.com
8d8428dc37777f73a06a488c972c3fc9cb65d1a0
68cec278ee55799811b3fd9643c31bab4460457d
/honcho/test/integration/test_run.py
7195e979d11c6e3137f9562611c873eb0f1cb441
[ "MIT" ]
permissive
BoldBigflank/honcho
78d03da885172a14898bf2706ce14661c1c7047c
bbcb4d6b466c9008c85980307317603afd3bc101
refs/heads/master
2021-01-18T09:04:10.447029
2016-01-26T21:55:20
2016-01-26T21:55:20
50,392,809
0
0
null
2016-01-26T01:05:43
2016-01-26T01:05:43
null
UTF-8
Python
false
false
1,318
py
import sys import textwrap from ..helpers import TestCase from ..helpers import TestEnv python_bin = sys.executable script = textwrap.dedent(""" from __future__ import print_function import os import sys print(os.environ.get("ANIMAL", "elephant")) print("error output", file=sys.stderr) """) cla...
[ "nick@whiteink.com" ]
nick@whiteink.com
a39cb4a7ba8bcae6fe139e57c54bd5c6b056a517
f167dffa2f767a0419aa82bf434852069a8baeb8
/lib/youtube_dl/extractor/gigya.py
412178492fe1062ac83c554617034b6df61cbabd
[ "MIT" ]
permissive
firsttris/plugin.video.sendtokodi
d634490b55149adfdcb62c1af1eb77568b8da3f5
1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3
refs/heads/master
2023-08-18T10:10:39.544848
2023-08-15T17:06:44
2023-08-15T17:06:44
84,665,460
111
31
MIT
2022-11-11T08:05:21
2017-03-11T16:53:06
Python
UTF-8
Python
false
false
677
py
from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( ExtractorError, urlencode_postdata, ) class GigyaBaseIE(InfoExtractor): def _gigya_login(self, auth_data): auth_info = self._download_json( 'https://accounts.eu1.gigya.com/accounts.login',...
[ "noreply@github.com" ]
firsttris.noreply@github.com
7b39b19ccd500ec83103a1e07e89e55b108079df
7a6e2a3492b6e237a70b12d75fd05b7a77472af3
/py/corePy/13.1_object_intrudce.py
7cc7f9937ce8aebe920253080fa91f4d7131c4bb
[]
no_license
timtingwei/prac
e44b7e4634a931d36ed7e09770447f5dba5f25e6
ae77fa781934226ab1e22d6aba6dba152dd15bfe
refs/heads/master
2020-05-21T17:53:07.144037
2017-10-10T14:55:52
2017-10-10T14:55:52
63,440,125
3
0
null
null
null
null
UTF-8
Python
false
false
2,305
py
#13.1_object_intrudce.py #/// instance and class class MyData(object): """" def __init__(self): self.x = 10 self.y = 20 """ pass mathObj = MyData() mathObj.x = 4 #/// x是实例特有的属性,不是类的属性,是动态的 mathObj.y = 5 print (mathObj.x + mathObj.y) #9 print (mathObj.x * mathObj.y) #20 #/// method cla...
[ "timtingwei@gmail.com" ]
timtingwei@gmail.com
691d455b00d64ff5f36b32c1a00b31fec450c885
b3ea7a2d723d432a65748e073cae25e83441580f
/dns_spoof.py
b1b224ca654ef3801acf63b08b9e01cf3b6380b1
[]
no_license
jcohen66/htools
7622aa90465abb674e8f413bab7686b26b6a99fd
ba8bef2a540e1c58772143b9d3446fd8c30eade7
refs/heads/master
2023-02-15T04:13:23.419561
2020-02-01T19:16:50
2020-02-01T19:16:50
233,474,276
0
0
null
2023-01-20T23:39:22
2020-01-12T23:24:49
Python
UTF-8
Python
false
false
1,143
py
#!/usr/bin/env python # iptables -I FORWARD -j NFQUEUE --queue-num 0 # iptables -I OUTPUT -j NFQUEUE --queue-num 0 # Must do when done: iptables fllush import netfilterqueue import scapy.all as scapy def process_packet(packet): scapy_packet = scapy.IP(packet.get_payload()) if scapy_packet.haslayer(scapy.DN...
[ "jcohen66@optonline.net" ]
jcohen66@optonline.net
e3ee32f2248a6378906588b43cc58abefa8e0771
28d5174b51d43ade5e57dc6498473e8029356b1a
/src/openfermion/transforms/_bravyi_kitaev.py
2dacc68b00b30341aa27575a0b971c01ba5b5301
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
Strilanc/OpenFermion
2b350ae7ea464460e1f422a59c8d7033dc5774ef
3a0a57b8b545acd2a2ff6b61e88f7c8a8a4437c8
refs/heads/master
2021-01-25T13:59:21.177659
2018-03-02T15:47:22
2018-03-02T15:47:22
123,639,421
1
0
null
2018-03-02T22:55:29
2018-03-02T22:55:28
null
UTF-8
Python
false
false
4,691
py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distribu...
[ "ryanbabbush@gmail.com" ]
ryanbabbush@gmail.com
89c69e1d90ba66dd187d673e41bc6ef863d979f0
9efe15e39ffda8391abd5a63b95e441648ba57c2
/comments_service/app.py
551ddf03f80dc3fd17554f8b88ebd2fce2b36a9a
[]
no_license
TechAcademy-Azerbaijan/mini_microservice_app
3af2f80047b9a945f07ac1d4c7dd5a01980169e0
b06c13a7feac4b9f46ab1d3bed19e36a7de3cd4e
refs/heads/master
2023-08-15T19:49:22.058966
2021-10-22T08:21:40
2021-10-22T08:21:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
from flask import Flask from flask_cors import CORS app = Flask(__name__) CORS(app) from routers import * if __name__ == '__main__': app.run(port=5001, debug=True)
[ "idris.sabanli@gmail.com" ]
idris.sabanli@gmail.com
5748c6c0f61c1e26cc0a69ccdc886b09d4c10206
fc58366ed416de97380df7040453c9990deb7faa
/tools/dockerize/webportal/usr/lib/python2.7/site-packages/daoliproxy/openstack/common/jsonutils.py
01f53842152b1abb35a68344d67a2fcf320558f4
[ "Apache-2.0" ]
permissive
foruy/openflow-multiopenstack
eb51e37b2892074234ebdd5b501b24aa1f72fb86
74140b041ac25ed83898ff3998e8dcbed35572bb
refs/heads/master
2016-09-13T08:24:09.713883
2016-05-19T01:16:58
2016-05-19T01:16:58
58,977,485
1
0
null
null
null
null
UTF-8
Python
false
false
6,410
py
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
[ "wenxiang.wang1204@gmail.com" ]
wenxiang.wang1204@gmail.com
70ef375de4132592447a64d6c61315fdfb5dc366
da370ba0df9700519139e1da54f3e7f38e9b7f5f
/.nox/tests/lib/python3.7/site-packages/tensorflow_probability/python/distributions/batch_reshape.py
d20d580d3ab4234f741cbbdfce80905dbbd63a86
[ "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
18,080
py
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "36889203+antonevenepoel@users.noreply.github.com" ]
36889203+antonevenepoel@users.noreply.github.com
ee60f854fdbc2887ebd1915348668d16c431906f
21590487701d2dcbe1a1c1dd81c6e983f7523cb6
/opentelemetry-sdk/tests/metrics/test_metric_reader_storage.py
97b5532feaebfb6fb7bbea2357f454d5d977cbef
[ "Apache-2.0" ]
permissive
open-telemetry/opentelemetry-python
837199e541c03cff311cad075401791ee2a23583
d8490c5f557dd7005badeb800095cb51b553c98c
refs/heads/main
2023-08-26T06:47:23.837997
2023-08-17T22:35:13
2023-08-17T22:35:13
185,478,926
1,361
668
Apache-2.0
2023-09-14T20:48:40
2019-05-07T21:13:30
Python
UTF-8
Python
false
false
29,324
py
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "noreply@github.com" ]
open-telemetry.noreply@github.com
7af313cb532b28b86bc8852a60562c3ee48988bc
3c72c3a75736278486a8dfd6bde16f461da165d5
/rest_framework_jwt/__init__.py
5e9e676c53af6481d16782f2d074bffd2ead4d69
[ "MIT" ]
permissive
alikhan126/django-rest-framework-jwt
279db11dd4692d8237a2c8a882e2003a201a2ba4
69f363d54444d68b3567d2cc18034ad8020d2b68
refs/heads/master
2020-06-04T23:51:33.767947
2014-06-06T12:00:18
2014-06-06T12:00:18
192,240,088
1
0
MIT
2019-06-16T21:51:31
2019-06-16T21:51:31
null
UTF-8
Python
false
false
63
py
__version__ = '0.1.5' # Version synonym VERSION = __version__
[ "jpadilla@webapplicate.com" ]
jpadilla@webapplicate.com
63f67629a5a7b16ce7fd1a19104293260e41bb86
1b81f2ac5e48b7d91949a6b71c4cc9f9b9f3f19c
/vera/params/models.py
83f99aecd67832508b05874797e90e7e02e8e836
[ "MIT" ]
permissive
erick-otenyo/vera
b794d8caf9cb4e183ffbb5ac075122a1475d9cb1
bd6a7aed8bdafc8a3025aefa5d54616473f203a6
refs/heads/master
2020-08-30T07:13:18.258335
2017-09-14T15:44:18
2017-09-14T15:44:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,778
py
from django.db import models from wq.db.patterns import models as patterns import swapper swapper.set_app_prefix('params', 'WQ') # Base metadata classes (Site, ReportStatus, Parameter) class BaseSite(patterns.IdentifiedModel): @property def valid_events(self): events = self.event_set.filter( ...
[ "andrew@wq.io" ]
andrew@wq.io
d466f5bbc2de930da13d832fc7fac286b4311dea
d8fe3b5243bec2b61fd7907c4ff799b24bb617e5
/LeetCode/MajorityElement.py
f1235e14e87b3df2f12c928bee4c7e9c41e4d3f2
[ "Unlicense" ]
permissive
SelvorWhim/competitive
b89ed252512d88d9346d168dc6b48e0a42a6142d
1c73a5c7b2d0dc1b6c4f3f06ace69cdf5c6a34c0
refs/heads/master
2023-04-13T01:02:52.083519
2023-04-11T10:14:38
2023-04-11T10:14:38
96,573,533
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
from collections import Counter class Solution: # lazy solution that works if majority element exists (not hard to check for one if necessary). Should be O(n) time, and anywhere from O(1) to O(k) space depending on most_common implementation, for k number of unique elements def majorityElement(self, nums): ...
[ "Carmeverre@gmail.com" ]
Carmeverre@gmail.com
6c5868e7dbe4f882d68893fb9771b13e4d45611d
c91f2ebbc7d808fea953249cb8baec35addb0c63
/AlgoTrading/examples/WindBasedStrategy.py
26e98b38c0ac13455fee9a1e8cd49ee9121c264f
[]
no_license
wellengo/AlgoTrading
8644dc687ae1524f3b9778624b6fab6299d6336f
1d5925580f9fc4b9065df275f79873071742c61a
refs/heads/master
2021-12-13T22:18:07.413556
2017-04-13T04:33:12
2017-04-13T04:33:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,757
py
# -*- coding: utf-8 -*- u""" Created on 2015-9-23 @author: cheng.li """ import datetime as dt from AlgoTrading.api import Strategy from AlgoTrading.api import strategyRunner from AlgoTrading.api import DataSource from AlgoTrading.api import set_universe from PyFin.api import MA from PyFin.api import MAX from PyFin.a...
[ "siqiao_xue@163.com" ]
siqiao_xue@163.com
69b3a8a5656a6229d00db9a433b364d43faecb76
266947fd84eed629ed0c21f6d91134239512afd9
/BeginnerContest_B/070.py
44ab7e3e3b48dab05d40236c4d90574db6a44ef3
[]
no_license
SkiMsyk/AtCoder
c86adeec4fa470ec14c1be7400c9fc8b3fb301cd
8102b99cf0fb6d7fa304edb942d21cf7016cba7d
refs/heads/master
2022-09-03T01:23:10.748038
2022-08-15T01:19:55
2022-08-15T01:19:55
239,656,752
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
# input A, B, C, D = map(int, input().split()) # processing # 0 -- A -- B ---... # 0 ---- C ---- D ---... res = max(min(B, D) - max(A, C), 0) # output print(res)
[ "sakaimasayuki@sakaimasayukinoMacBook-puro.local" ]
sakaimasayuki@sakaimasayukinoMacBook-puro.local
f06cc6f2c9d30f0a1597c6703f19934298fd36c3
9e31cabea36b122be02fa778264a5c9a313a7a3c
/chapter_17/p17_4.py
01f1d2cde0b036ebaedf4b1335f016b631309473
[]
no_license
anywhere1234/CTCI_python
b1c27997fe20d17f48b423e647fed600811ab015
6c7e71f4829708da397867dd9b2cec61a654d3f9
refs/heads/master
2023-02-09T14:02:29.710006
2021-01-06T00:04:58
2021-01-06T00:04:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,564
py
from typing import List def get_bit(a: int, bit_nr: int) -> int: shifted_a = a >> (bit_nr) return shifted_a & 0b1 def find_mssing(arr: List[int], n: int) -> int: return find_missing_helper(arr, list(range(len(arr))), 0, n) def find_missing_helper(arr: List[int], list_indexes: L...
[ "bogdan.stoicescu95@gmail.com" ]
bogdan.stoicescu95@gmail.com
db0a75c33b2d39ccd10641bc74430fa734206139
d305e9667f18127e4a1d4d65e5370cf60df30102
/tests/ut/cpp/python_input/gtest_input/pre_activate/fused_batch_norm_fusion_test.py
472e7a5d4be4cf0dc07a5047f721afdf0469bf6f
[ "Apache-2.0", "MIT", "Libpng", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-only", "AGPL-3.0-only", "MPL-2.0-no-copyleft-exception", "IJG", "Zlib", "MPL-1.1", "BSD-3-Clause", "BSD-3-Clause-Open-MPI", "MPL-1.0", "GPL-2.0-only", "MPL-2.0", "BSL-1.0", "LicenseRef-scancode-unknow...
permissive
imyzx2017/mindspore_pcl
d8e5bd1f80458538d07ef0a8fc447b552bd87420
f548c9dae106879d1a83377dd06b10d96427fd2d
refs/heads/master
2023-01-13T22:28:42.064535
2020-11-18T11:15:41
2020-11-18T11:15:41
313,906,414
6
1
Apache-2.0
2020-11-18T11:25:08
2020-11-18T10:57:26
null
UTF-8
Python
false
false
4,398
py
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
[ "513344092@qq.com" ]
513344092@qq.com
156a74067eb5fcfb827403fb746855c07b61a2b1
6cd690fb01e100f440289ea8fe7342bb58d37e78
/src/elemental/ability/abilities/rampage.py
5048dec0f9e2721eec09a8315b46108a732a6b0c
[]
no_license
Hammerlord/Monbot
6db8308ae492d7cfbb6f1bdff909105129924269
fde8177d9170dddd958a89068a560008259d6e24
refs/heads/master
2020-03-07T16:43:20.019123
2019-08-29T03:08:33
2019-08-29T03:08:33
127,591,188
2
0
null
null
null
null
UTF-8
Python
false
false
693
py
from src.core.elements import Elements, Category from src.elemental.ability.ability import Ability class Rampage(Ability): def __init__(self): super().__init__() self.name = 'Rampage' self._description = ("Strike the opponent in a fury over the next 3 turns. " ...
[ "nepharus@gmail.com" ]
nepharus@gmail.com
08044a78a4728393854b3cd465c9f38423aaa297
e10a6d844a286db26ef56469e31dc8488a8c6f0e
/milking_cowmask/main_semisup.py
953ccba0c869ab31d504fafe1c132d105c3682ee
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
Jimmy-INL/google-research
54ad5551f97977f01297abddbfc8a99a7900b791
5573d9c5822f4e866b6692769963ae819cb3f10d
refs/heads/master
2023-04-07T19:43:54.483068
2023-03-24T16:27:28
2023-03-24T16:32:17
282,682,170
1
0
Apache-2.0
2020-07-26T15:50:32
2020-07-26T15:50:31
null
UTF-8
Python
false
false
10,838
py
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
169a1fd5a957f93eb770569acd3dbba2aa737d62
2411e39691f02bec1cd03958a0bd5c2c850db457
/py/applets/teapot.py
43d30204e469053006ae47273dbd721402594e44
[]
no_license
wielandgmeiner/javacard_playground
d9c2067901e3005b69cd69b17774f00f19a04c6e
758fb14418f6aa0079da794efa67384db512fafd
refs/heads/master
2022-09-21T15:32:28.194817
2020-05-31T19:16:54
2020-05-31T19:16:54
259,915,974
0
0
null
2020-04-29T12:13:25
2020-04-29T12:13:24
null
UTF-8
Python
false
false
336
py
from .core import AppletBase class Teapot(AppletBase): def __init__(self, connection=None): super().__init__("B00B5111CA01", connection) def get_data(self): return self.request("B0A10000") def put_data(self, d): data = bytes([len(d)])+d.encode() return self.request("B0A200...
[ "snigirev.stepan@gmail.com" ]
snigirev.stepan@gmail.com
c4eabefbb636b88c245f4eeddf235b3bf569d694
e6e57bf7d4eda37f1188ab72ff249675f40029ee
/algorithms_and_data_structures/arrays/Valid Sudoku.py
cd5a560608706499dcf3eb78cabfb8e53630207a
[]
no_license
juanpedrovel/bomboclap
4e186331ef1c26c8522e44c21d6a33358471786b
99db02266c31dd14357ef6a575d35fcf55718617
refs/heads/master
2020-04-19T21:16:38.141830
2019-01-31T00:31:24
2019-01-31T00:31:24
168,436,881
0
0
null
null
null
null
UTF-8
Python
false
false
1,638
py
class Solution: def isValidSudoku(self, board): """ :type board: List[List[str]] :rtype: bool """ def bx_numb(i, j): box_number = 0 if j > 5: box_number += 2 elif j > 2: box_number += 1 if i > 5: ...
[ "juanpedrovel@gmail.com" ]
juanpedrovel@gmail.com
aa31b8c9159d61b6d1e959155f352b75a9a3f165
a7344ed009a8aefc0989a1236e423fd474d251ee
/GameManage/views/help/help.py
3b85a0183a8e03db17bb69916698bcdbd23799bf
[]
no_license
lxngoddess5321/game_manage
e8b307fd44cda21ab0fdc4ac69b458f1c81d0a16
e6c93bce193abb6b6129a0373902724406deec13
refs/heads/master
2021-10-07T09:59:02.961797
2015-02-05T06:11:54
2015-02-05T06:11:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,168
py
#coding=utf-8 # Create your views here. from django.db.models import Q import re, os from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import Context, Template from GameManage.models.help import Help, HelpCategory from GameManage.views.base import ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
b22195cecdaf5c8cf512f825dadae2c5286b19a2
2c97e11e13bfbabfdae8979385ba0957c7b11270
/ebl/tests/transliteration/test_normalized_akkadian.py
647d2b00a0572b7f4c97be63209b86160d835bb1
[ "MIT" ]
permissive
ElectronicBabylonianLiterature/ebl-api
72a2a95291e502ec89a20ebe5c14447e63ac6d92
4910f6fbb57fa213fef55cbe9bc16215aebbaa27
refs/heads/master
2023-08-16T12:42:03.303042
2023-08-16T10:59:44
2023-08-16T10:59:44
135,266,736
11
3
MIT
2023-09-12T09:56:14
2018-05-29T08:39:58
Python
UTF-8
Python
false
false
5,532
py
import pytest from ebl.dictionary.domain.word import WordId from ebl.lemmatization.domain.lemmatization import LemmatizationToken from ebl.tests.asserts import assert_token_serialization from ebl.transliteration.application.token_schemas import OneOfTokenSchema from ebl.transliteration.domain.atf import Flag from ebl....
[ "noreply@github.com" ]
ElectronicBabylonianLiterature.noreply@github.com
eaee55537bdde6b82b52cce268d4af3a8bb501a1
6610e8b7d715d28df179217b0222b6a74d7b01f3
/Contents/Libraries/Shared/resources/lib/resolvers/host_vidnode.py
3f10f938a34207ca65f56eef38d91a0af4c78c3d
[]
no_license
BigmIkeX/FMoviesPlus.bundle
f479b96dabbda8a70944a7c44717a9b7a6abc5c0
7789e6137df8a86f6c9f9a78fc478ab89696e3d0
refs/heads/master
2020-05-22T09:39:12.049063
2019-05-09T20:54:25
2019-05-09T20:54:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,836
py
# -*- coding: utf-8 -*- ######################################################################################################### # # Vidnode scraper # # Coder Alpha # https://github.com/coder-alpha # ''' This program is free software: you can redistribute it and/or modify it under the terms of the GNU Genera...
[ "coderalphaakv@gmail.com" ]
coderalphaakv@gmail.com
ab8f7035259fa98d9b0d12e248edfddb9335aab6
407ae3372e98442698332394a3da95f8f4c488a6
/results/mcmc_100chains/chains_fidsig_fidcov_nonuni_landyszalay/prep_corrmatrixDATAPARAMS/combine_dddr_78.py
1c845494911885a0a55f330c93ae926b4511b1ec
[]
no_license
aszewciw/MW_Structure
0ce437627f4c43f776eae658aad8b98a280d6b06
ba25761aa9444ca5c04e3a4ad617b29d586ba4c8
refs/heads/master
2021-01-12T11:59:15.717154
2017-12-07T00:21:54
2017-12-07T00:21:54
68,852,501
0
0
null
null
null
null
UTF-8
Python
false
false
2,417
py
''' Produce files containing the indices of binned pairs. Here we do this for a uniform sample. ''' import mw_utilities_python as mwu import sys, pickle, os import numpy as np def main(): Nmocks = 1000 star_factor = 10 dd_dir = '../../prep_fid_errors_DATAPARAMS/data/' dr_dir = './data/' out_dir = ...
[ "aszewci@gmail.com" ]
aszewci@gmail.com
03b93222dc4c00950cafabceaa0b78a0966de0bf
5c8139f1e57e06c7eaf603bd8fe74d9f22620513
/PartB/py图像的渲染.py
d38a444d1e9b9dacfe956cabdc89c130cf467422
[]
no_license
madeibao/PythonAlgorithm
c8a11d298617d1abb12a72461665583c6a44f9d2
b4c8a75e724a674812b8a38c0202485776445d89
refs/heads/master
2023-04-03T07:18:49.842063
2021-04-11T12:02:40
2021-04-11T12:02:40
325,269,130
0
0
null
null
null
null
UTF-8
Python
false
false
2,144
py
# 图片的渲染。 有一幅以二维整数数组表示的图画,每一个整数表示该图画的像素值大小,数值在 0 到 65535 之间。 给你一个坐标 (sr, sc) 表示图像渲染开始的像素值(行 ,列)和一个新的颜色值 newColor,让你重新上色这幅图像。 为了完成上色工作,从初始坐标开始,记录初始坐标的上下左右四个方向上像素值与初始坐标相同的相连像素点,接着再记录这四个方向上符合条件的像素点与他们对应四个方向上像素值与初始坐标相同的相连像素点,……,重复该过程。将所有有记录的像素点的颜色值改为新的颜色值。 最后返回经过上色渲染后的图像。 示例 1: 输入: image = [[1,1,1],[1,1,0],[1,0,1]]...
[ "2901429479@qq.com" ]
2901429479@qq.com
fbef0ac42b1bb39f82decca2b93a6e293889dbff
71e3c041cb4911df0fd9f4444d8e07fb4e17d38c
/component/__init__.py
0353ee565957d498d91d89695802ff295dc6e10a
[ "Apache-2.0" ]
permissive
w1368027790/DeepRL
8e713da32e2465f20a4966cf7d7aeb69f35aa074
51f125c01eb013b77ebf3a78795ae87dc9ffb9f9
refs/heads/master
2021-07-08T06:23:41.095226
2017-10-08T03:23:02
2017-10-08T03:23:02
106,264,458
1
0
null
2017-10-09T09:38:19
2017-10-09T09:38:19
null
UTF-8
Python
false
false
117
py
from atari_wrapper import * from policy import * from replay import * from task import * from random_process import *
[ "zhangshangtong.cpp@icloud.com" ]
zhangshangtong.cpp@icloud.com
1c0672167fdd543464f6bbd6c8ac7098353c0bea
d1ddb9e9e75d42986eba239550364cff3d8f5203
/google-cloud-sdk/lib/googlecloudsdk/command_lib/billing/utils.py
718213de8b0203d284f7c2d410fd64d0ab94b416
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/searchparty
8ecd702af0d610a7ad3a8df9c4d448f76f46c450
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
refs/heads/master
2022-11-19T14:44:55.421926
2017-07-28T14:55:43
2017-07-28T14:55:43
282,495,798
0
0
Apache-2.0
2020-07-25T17:48:53
2020-07-25T17:48:52
null
UTF-8
Python
false
false
1,117
py
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "vinvivo@users.noreply.github.com" ]
vinvivo@users.noreply.github.com
83e04af598a29f1f5bb89e074965a329449c3d81
bc1928bb2742ad96bceb725e4bca65abd9bdbcaf
/NinjaGold/venv/bin/pip2
c23e2d6f7d0480927da64b475980713b2e1817b2
[]
no_license
waterFlowin/Python-Projects
767ad675be902739cea0119e554ed3501eeba793
1503bc0c236295c53c38f8fbc5189f4a9b7ba1f1
refs/heads/master
2021-01-20T00:21:08.155024
2017-04-23T03:48:20
2017-04-23T03:48:20
89,115,581
0
0
null
null
null
null
UTF-8
Python
false
false
262
#!/Users/waterFlow/Documents/PythonAssignments/NinjaGold/venv/bin/python2.7 # -*- coding: utf-8 -*- import re import sys from pip import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "johndoe@example.com" ]
johndoe@example.com
5c9c45a5bbfac836a6957791a648c100d07822db
dfaf6f7ac83185c361c81e2e1efc09081bd9c891
/k8sdeployment/k8sstat/python/kubernetes/client/models/v1beta1_local_subject_access_review.py
0010ecb23188972522b0f3c64241b7f6a494e26f
[ "Apache-2.0", "MIT" ]
permissive
JeffYFHuang/gpuaccounting
d754efac2dffe108b591ea8722c831d979b68cda
2c63a63c571240561725847daf1a7f23f67e2088
refs/heads/master
2022-08-09T03:10:28.185083
2022-07-20T00:50:06
2022-07-20T00:50:06
245,053,008
0
0
MIT
2021-03-25T23:44:50
2020-03-05T02:44:15
JavaScript
UTF-8
Python
false
false
7,366
py
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V1beta1Loc...
[ "JeffYFHuang@github.com" ]
JeffYFHuang@github.com
40e963c4b3b5b9e68d8105b83d2b6b6c606d607d
04cfd073ca0ce0e55a437ea6c1fd6536873d7553
/ex45.py
37c91b8eb307fd86a3ac004192e82bea6f32e679
[]
no_license
randy-wittorp/ex
5a682be54cf72404349fe397e4c7b3357d2b32d8
f8c22f0507609e69dadaf8a847dd7d8c4aad304f
refs/heads/master
2016-09-05T09:57:14.924825
2015-05-11T02:37:28
2015-05-11T02:37:28
35,258,942
0
0
null
null
null
null
UTF-8
Python
false
false
1,960
py
from sys import argv script, filename = argv print "=" * 40, '\n\n' print "Let's make up a bunch of different types of rooms for a game." print "At anytime, enter [Q] to quit.\n\n" target = open(filename, 'w') game_rooms = [] while True: room = {} # get the name of a room print "First, what type of...
[ "=" ]
=
789a17b497fcabc2aa2f1afd85c5bd55ffaf58a1
6af81c1e3853255f064ce58e848b34211decdd23
/test/top/api/rest/DeliveryTemplateDeleteRequest.py
ed625006af2c7cf18003711289ed9a7a170cdc58
[]
no_license
dacy413/TBAutoTool
d472445f54f0841f2cd461d48ec6181ae2182d92
ca7da4638d38dd58e38c680ee03aaccf575bce7b
refs/heads/master
2016-09-06T16:13:01.633177
2015-02-01T00:04:50
2015-02-01T00:04:50
29,625,228
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
''' Created by auto_sdk on 2015-01-20 12:36:26 ''' from top.api.base import RestApi class DeliveryTemplateDeleteRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.template_id = None def getapiname(self): return 'taobao.delivery.template.d...
[ "1656505353@qq.com" ]
1656505353@qq.com
fa3a4ad9a1fb7ac12f9eeee873960f975fe4b561
083b3f5b0d23c269c6a9ff1ea413e70fb799a497
/Leetcode Challenge/09_September_2020/Python/Week 1/4_Partition Labels.py
d7760779eeaf21e4b1358e275335701835e975b5
[]
no_license
HectorIGH/Competitive-Programming
b2e02dff140d9ebb06c646f7be0b53ea0afe90c9
467058c63e8a7e76805feebe3020bac4d20516a6
refs/heads/master
2022-12-31T18:32:46.824626
2020-10-16T20:38:33
2020-10-16T20:38:33
279,733,136
0
0
null
null
null
null
UTF-8
Python
false
false
1,275
py
#A string S of lowercase English letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one part, and return a list of integers representing the size of these parts. # # # #Example 1: # #Input: S = "ababcbacadefegdehijhklij" #Output: [9,7,8] #Explanatio...
[ "HectorIGH@users.noreply.github.com" ]
HectorIGH@users.noreply.github.com
bd38508a4ddf2cb90bdd31c649292c99a7e7cbf3
b343b5101e453fff9d59a1644ba54f77ead0bad2
/face_test/metric-distance.py
a951870b8795d33ac57810c90c148f74b0b74e86
[]
no_license
BarshaGuha/face-detect-recognize
cb0643f9297d803d3b05ae1f7036757c8ba43d0b
d193669c3a68b645d9cce30378c20d225d0fef7f
refs/heads/master
2020-04-10T16:04:12.846940
2018-10-31T07:21:22
2018-10-31T07:21:22
161,132,045
1
1
null
2018-12-10T07:05:46
2018-12-10T07:05:46
null
UTF-8
Python
false
false
2,869
py
#python #similarity distance 今天一个偶然的机会体会到了python数据运算的强大。求一个数组各样本之间的距离仅简单的几句代码就行。看来真的技术改变世界啊。废话不多说,记下来怕以后忘记。 [python] view plain copy from scipy.spatial.distance import pdist, squareform 下面结合API文档标注一下具体用法: [python] view plain copy 1.X = pdist(X, 'euclidean') 计算数组X样本之间的欧式距离 返回值为 Y 为压缩距离元组或矩...
[ "lixiaoyu283284@163.com" ]
lixiaoyu283284@163.com
39569cf295296908556488db4b1939a139e7dd20
037a97b5de833dfdd6b9489e776cf6be651c2703
/fpraktikum/migrations/0013_auto_20170913_1402.py
d86db83742caf7dadcea2f1acefe1883b435a415
[ "MIT" ]
permissive
PhysikOnline/fpraktikum_backend
6fc6ec521749f92387e7b99873b27a73b255d46a
b040aef86dba6137f1c5d0fd936143a48b4f9c13
refs/heads/master
2021-04-18T19:46:24.019906
2020-03-15T15:43:16
2020-03-15T15:43:16
126,201,619
2
1
MIT
2020-06-05T17:37:58
2018-03-21T15:38:11
Python
UTF-8
Python
false
false
2,404
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-13 14:02 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fpraktikum', '0012_auto_20170912_1105'), ] operations = [ migrations.AlterMo...
[ "chgad.games@gmail.com" ]
chgad.games@gmail.com
d421307da7fd37864161ea2092ae764586add0c4
c1a0c19b236a7291d1ab510611206ff8946b8655
/run.py
d5a367baaa99410b1277617e4727f2711ff0be6c
[]
no_license
LeeHuangChen/2018_03_22_MosaicFinderResultAnalysis
5e211e5d3a931ae8030ac0a8b907f99863262f98
dcf0de140a3385ac2f5b4f3efc08fa84c890af26
refs/heads/master
2021-04-15T13:06:05.928299
2018-03-22T22:53:13
2018-03-22T22:53:13
126,397,794
0
0
null
null
null
null
UTF-8
Python
false
false
4,783
py
import Configurations as conf import os from cPickle import load from src import util def readResultFile(folder, filename): fusedDict = {} familyDict = {} with open(os.path.join(folder, filename)) as f: for i, line in enumerate(f): if i > 0: # reference: ...
[ "lhc1@rice.edu" ]
lhc1@rice.edu
ba073293648a25847d17dc772cd96e10004f5085
2c1e06ff5fc659188735bba84707d07ab1578f58
/backend/deposits/helpers/banks.py
9cd234c213c944457aa8ac2d9acf51c35b5db110
[]
no_license
aviaryan/deposits-app
b15db26d4fe79d5934b36167d2edfa70c1f009f2
dc6e4e93749aa2001feba35b461b4c1168a893a1
refs/heads/master
2021-03-30T21:26:24.923656
2018-05-11T09:06:40
2018-05-11T09:06:40
124,782,433
3
0
null
null
null
null
UTF-8
Python
false
false
1,013
py
# bank = https://tin.tin.nsdl.com/tan/Bank.html BANKS = """ Allahabad Bank Andhra Bank Axis Bank Bank of Bahrain and Kuwait Bank of Baroda - Corporate Banking Bank of Baroda - Retail Banking Bank of India Bank of Maharashtra Canara Bank Central Bank of India City Union Bank Corporation Bank Deutsche Bank Development C...
[ "avi.aryan123@gmail.com" ]
avi.aryan123@gmail.com
2e37aa5d9e2825c50325ba060540a1765c2d14f7
0475a5b592a4f9d9bff229dc4308ab6a5e6f1ba9
/pyalysis/_compat.py
c839af6cebaec9d4342a3128f85843d17b9f8a3a
[ "BSD-3-Clause" ]
permissive
DasIch/pyalysis
5f7cf7ff188739e117136315a79e1cb8a6aa9734
314fd86c268b9b0fd61bf4ab2dbf10810e77a8bf
refs/heads/master
2016-09-06T05:51:00.478360
2014-02-26T02:54:49
2014-02-26T02:54:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,772
py
# coding: utf-8 """ pyalysis._compat ~~~~~~~~~~~~~~~~ :copyright: 2014 by Daniel Neuhäuser and Contributors """ import sys import codecs try: import __pypy__ del __pypy__ PYPY = True except ImportError: PYPY = False PY2 = sys.version_info[0] == 2 if PY2: text_type = unicode def...
[ "dasdasich@gmail.com" ]
dasdasich@gmail.com
14935b76244e1588351e41945ab39bd8eda80882
18a79067223932c2f7aa6ff6b81d0b3f36169db2
/atcoder/abc198/A.py
3a9ccde63436d9b2a4c9eedca30aad16300ec6a6
[]
no_license
aadiupadhyay/CodeForces
894b0e5faef73bfd55a28c2058fb0ca6f43c69f9
76dac4aa29a2ea50a89b3492387febf6515cf43e
refs/heads/master
2023-04-12T17:58:52.733861
2021-05-07T20:08:00
2021-05-11T20:07:11
330,149,645
1
0
null
null
null
null
UTF-8
Python
false
false
591
py
# aadiupadhyay import os.path from math import gcd, floor, ceil, factorial from collections import * import sys mod = 1000000007 INF = float('inf') def st(): return list(sys.stdin.readline().strip()) def li(): return list(map(int, sys.stdin.readline().split())) def mp(): return map(int, sys.stdin.readline().split()) de...
[ "upadhyay.aaditya2001@gmail.com" ]
upadhyay.aaditya2001@gmail.com
56d5ba5271e24ce0b3cba44c3f85cb51a3403840
aac418419c2ef4d10c5c4ceb607d3d8329a5f395
/Algorithms/Miscellaneous/Gcd.py
bd88fe1c2e7a751961f75b187fda83c809005b18
[]
no_license
sudhirshahu51/projects
bb13395227355ff84933b6d3a0f158ee42bcdceb
b2d8331d14d2163b20535368a60c81f6c8bc2c8f
refs/heads/master
2021-01-01T17:09:18.654060
2017-04-24T10:46:15
2017-04-24T10:46:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
# To find the greatest common divisor def gcd(x,y): if x == 0: return y else: return gcd(y%x, x)
[ "deveshaggrawal19@gmail.com" ]
deveshaggrawal19@gmail.com
2ebe4b45268b5fbc1b7af9b11f7786c3d33e1429
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_nick.py
08c83ac70115fc28cd22074d9bc50429622e92b8
[ "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
373
py
#calss header class _NICK(): def __init__(self,): self.name = "NICK" self.definitions = [u'a small cut in a surface or an edge: ', u'prison: ', u'a stated condition, especially of health: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
c4b133fa991cff40fc6033efcd8249daadb5c8d7
7dc05dc9ba548cc97ebe96ed1f0dab8dfe8d8b81
/tags/pida-0.3-beta/pida/utils/vim/vimcom.py
f6031dfe254889af96d35a70706ca8045d36f984
[]
no_license
BackupTheBerlios/pida-svn
b68da6689fa482a42f5dee93e2bcffb167a83b83
739147ed21a23cab23c2bba98f1c54108f8c2516
refs/heads/master
2020-05-31T17:28:47.927074
2006-05-18T21:42:32
2006-05-18T21:42:32
40,817,392
1
0
null
null
null
null
UTF-8
Python
false
false
25,519
py
# -*- coding: utf-8 -*- # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: #Copyright (c) 2005 Ali Afshar aafshar@gmail.com #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 restr...
[ "aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7" ]
aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7
40f2752d77ccabe27f319e292703ae57571be5d9
7a3c194356437db110671ad163f03df1344a5e87
/code/utils/debug/processinfo.py
7eb8cf32210c745af00544bfa293ec2de1123e71
[ "MIT" ]
permissive
dmytrov/gaussianprocess
6b181afdb989415ec929197cdb20efee571ebbcc
7044bd2d66f44e10656fee17e94fdee0c24c70bb
refs/heads/master
2022-12-08T22:23:11.850861
2020-09-14T19:37:33
2020-09-14T19:37:33
295,513,701
0
0
null
null
null
null
UTF-8
Python
false
false
1,303
py
import os import psutil _proc_status = '/proc/%d/status' % os.getpid() _scale = {'kB': 1024.0, 'mB': 1024.0*1024.0, 'KB': 1024.0, 'MB': 1024.0*1024.0} def _VmB(VmKey): '''Private. ''' global _proc_status, _scale # get pseudo file /proc/<pid>/status try: t = open(_proc_status) ...
[ "dmytro.velychko@gmail.com" ]
dmytro.velychko@gmail.com
ceb9352b0878dace0d3cd48be46ad14679a4847b
aec4fcd0361b9292c48178e5e77cab5df17f8f44
/DRL/Base.py
f90397ddb2603f156ecb04afe07cb33123db724e
[ "Apache-2.0" ]
permissive
kbehouse/ezDRL
99bf2d1b37fceaa219651264c2f865ef3c70b146
1f8e5675780700d8e66f753fceac17c2b36fa56b
refs/heads/master
2021-08-24T12:39:48.804699
2017-12-05T09:05:53
2017-12-05T09:05:53
110,926,129
2
0
null
null
null
null
UTF-8
Python
false
false
533
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: DRL.py # Description: Abstract Class For DRL Methods # Author: Kartic <kbehouse@gmail.com> import six from abc import ABCMeta,abstractmethod @six.add_metaclass(ABCMeta) class RL(object): @abstractmethod def choose_action(self, state): pass ...
[ "kbehouse@gmail.com" ]
kbehouse@gmail.com
c858313d78d4f1f97702e366a93be4fd43b773ca
22f1c0d8406be377e588ac0eaeea7bd19385156c
/src/zeep/wsdl/attachments.py
6a85312813d7e7288a0ade3ed9b22b4bc7827ab0
[ "BSD-3-Clause", "MIT" ]
permissive
mbehrle/python-zeep
999be22a91f6df04b995b823dc68ae83953fb046
5921b047d4fda2d87d9ab178fd37ef77d70d1a1f
refs/heads/master
2021-01-23T08:04:47.801530
2017-01-31T11:39:47
2017-01-31T11:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,727
py
"""Basic implementation to support SOAP-Attachments See https://www.w3.org/TR/SOAP-attachments """ import base64 from cached_property import cached_property from requests.structures import CaseInsensitiveDict class MessagePack(object): def __init__(self, parts): self._parts = parts def __repr__(s...
[ "michael@mvantellingen.nl" ]
michael@mvantellingen.nl
c0f1f52cd692bb07290aa056b772de8af1130bde
6e1aa6cfe11a93740cdbc9503d992769ced8879b
/tests/test_column_inclusion_and_exclusion.py
c58313a1b040dd81981afb2faf5082b2e5c0d84b
[]
no_license
dtheodor/sqlalchemy-continuum
04008d03209a1df930037e324e3f666a10a8abfc
22dbc811ac3a67d883da6b47584992d6dd22b20c
refs/heads/master
2021-01-22T16:32:22.137475
2014-10-23T09:55:15
2014-10-23T09:55:15
17,176,669
1
1
null
null
null
null
UTF-8
Python
false
false
3,756
py
from datetime import datetime from pytest import mark import sqlalchemy as sa from sqlalchemy_utils import TSVectorType from sqlalchemy_continuum import version_class from tests import TestCase class TestDateTimeColumnExclusion(TestCase): def create_models(self): class Article(self.Model): __t...
[ "konsta.vesterinen@gmail.com" ]
konsta.vesterinen@gmail.com
e7ddcd552498cbe765297207ca4a34a3c67db2fb
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02701/s242297727.py
e7da1f305d5ad6905547828c4e9054a527b18b00
[]
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
96
py
n=int(input()) l=[] for i in range(n): s=str(input()) l.append(s) k=set(l) print(len(k))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
200adc49c9d7032f1d19d9caec3133ac4ebf1673
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/arc098/C/3270864.py
5c62ff7a855a8056aab79c2b97f8d36d0b122b1f
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
802
py
from collections import defaultdict N, K, Q = map(int, input().split()) A = list(map(int, input().split())) A_sorted = sorted(A) ans = float("inf") ap = 0 for i, a in enumerate(A_sorted): if a==ap: continue ap = a L = [0] d = defaultdict(list) for aa in A: if aa < a: ...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
3a735af93117f64efe81849413af4f3138ba8356
9cb7670c64c13f09abee315f85f1f6b67b8eb1ad
/ptp/components/language/sentence_one_hot_encoder.py
3996236c4d9b703946b38c4f4760c5c9e33b0c2a
[ "Apache-2.0" ]
permissive
ConnectionMaster/pytorchpipe
057325a5d4e8e6ce2198a953a705721388531add
9cb17271666061cb19fe24197ecd5e4c8d32c5da
refs/heads/develop
2023-04-07T17:46:26.451692
2019-11-05T23:36:13
2019-11-05T23:36:13
183,084,219
1
0
Apache-2.0
2023-04-03T23:18:43
2019-04-23T19:38:29
Python
UTF-8
Python
false
false
4,091
py
# Copyright (C) tkornuta, IBM Corporation 2019 # # 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 agr...
[ "tkornut@us.ibm.com" ]
tkornut@us.ibm.com
ff6ed44e73bac7a6b62db504dd1009a7c10746ca
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/video/I3D/mmaction/datasets/__init__.py
f04440bfbd5b1cb1aa81e8b37daed35a0a8f87cc
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
1,922
py
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
d8751d6aed8551800d5fa2b4ca68e98c118d9357
284b8949a5e8a65d791bc8b6531fb4029100f798
/02281043.py
511423569a2e60d8b6f61d89283604c871259bad
[]
no_license
Yanl05/Crawler
3ce19be3a041b9db0a2fa5e340f4e9aa37593e4c
af1c34b9e28b24740e090415a45c0ee808d058ab
refs/heads/master
2020-04-09T16:35:22.272829
2018-12-05T04:25:39
2018-12-05T04:25:39
160,457,052
0
0
null
null
null
null
UTF-8
Python
false
false
146
py
class Car: color = '' def run(self): print('go go go!!') bmw = Car() bmw.color = 'red' print(bmw.color) bmw.run() print(bmw.run)
[ "756593069@qq.com" ]
756593069@qq.com
eeeff347b088cf7928a142ac122aa3e6ebe54d89
6f5b8fa3693be70f258e1a74f4874d02fdb105a6
/asdl/__init__.py
5dde4913227376aa52bf3e5eb64c1cadab4fcc40
[ "Apache-2.0" ]
permissive
ionutzzu12/external-knowledge-codegen
fb02823516e14f19d171928d88588623631d2963
3f96ee7c4a50cdd8649e564115dbe96bff059d87
refs/heads/master
2023-02-24T12:22:55.962963
2020-06-06T08:34:54
2020-06-06T08:34:54
262,047,517
0
0
Apache-2.0
2020-06-06T08:34:55
2020-05-07T12:43:54
Python
UTF-8
Python
false
false
334
py
import six from .lang.lambda_dcs.lambda_dcs_transition_system import LambdaCalculusTransitionSystem from .lang.prolog.prolog_transition_system import PrologTransitionSystem if six.PY2: from .lang.py.py_transition_system import PythonTransitionSystem else: from .lang.py3.py3_transition_system import Python3Tran...
[ "frankxu2004@gmail.com" ]
frankxu2004@gmail.com
f096db4e0465a06313aac4158d17fc71858461ba
9c6522db2db8c4c075e23f2953776384973891a8
/cn.ao/py.ori.fmt/c0240.bin.py
b84a47f24b78588d5c96576409ea5e614e5939ed
[]
no_license
ZhenjianYang/ZeroAoVoiceScripts
b388c28b498049d7d4277b8344cdc098488fd258
7e0b696d743912739b855acb4306f1dcf564d6c0
refs/heads/master
2021-05-18T08:58:59.482674
2021-02-19T08:22:19
2021-02-19T08:22:19
94,624,272
12
5
null
2021-02-19T08:22:20
2017-06-17T13:06:15
Python
UTF-8
Python
false
false
111,926
py
from ScenarioHelper import * def main(): CreateScenaFile( "c0240.bin", # FileName "c0240", # MapName "c0240", # Location 0x000F, # MapIndex "ed7150", 0x00002000, # Flags ...
[ "zj.yang@qq.com" ]
zj.yang@qq.com
a27bda39e27fe7722257c069bf1ba6f0904bd697
d42cdbf5f8188c63e4df000680d7cd81dab54c12
/test/__init__.py
c1fd301df0a1a190692f7a51cb6c3a730ab76ebc
[ "BSD-2-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
openafs-contrib/afsutil
d7b30c172eac02577bd0f74f5a55d0eff5a3e9ab
05c5cf9be3d7d1b82701049d56e8404b7a2cf8cb
refs/heads/master
2021-07-19T10:24:40.111759
2021-07-08T12:23:50
2021-07-08T13:20:06
119,130,429
1
4
NOASSERTION
2021-07-08T13:20:07
2018-01-27T03:54:38
Python
UTF-8
Python
false
false
122
py
from test.test_system import SystemTest from test.test_keytab import KeytabTest from test.test_package import PackageTest
[ "mmeffie@sinenomine.net" ]
mmeffie@sinenomine.net
583929ad0765fe89d9a7f1fc8b3f321c8cb5bdbe
6b78bd7f62f7f407bf11d877cc4d91e7db3b62fe
/csc/python/week-3-ds/src/day3/lru_cache/lru_cache.py
b8009b5e6480947a1769a37d0687614b451baee4
[]
no_license
PascalUlor/code-challenges
b85efacd4bc5999a0748d1fa1e84f503be09dc94
6488d0a6d2729bd50b106573f16488479fd6e264
refs/heads/master
2023-03-03T17:50:18.413127
2023-02-21T13:10:02
2023-02-21T13:10:02
212,979,719
1
0
null
2023-02-15T22:59:13
2019-10-05T10:14:29
Python
UTF-8
Python
false
false
2,759
py
from doubly_linked_list import DoublyLinkedList class LRUCache: """ Our LRUCache class keeps track of the max number of nodes it can hold, the current number of nodes it is holding, a doubly- linked list that holds the key-value entries in the correct order, as well as a storage dict that provides f...
[ "pascalulor@yahoo.com" ]
pascalulor@yahoo.com
5f9cd7cd2d9cea9cc9a1f16b39eca20fbfb64326
8cbe8ff380e170312a36a0213dfaddd71f0d8bf7
/accounts/admin.py
f619a6fecfd446404431f7a8e26f82aa010f4708
[]
no_license
Gemy-star/bauhaus_new
60926aa9907b2b619a620d3ca0324ed7d99d08d1
270663f918c8965e9760ef547b89d3c8d7967120
refs/heads/main
2023-02-12T09:58:51.939396
2021-01-12T21:17:03
2021-01-12T21:17:03
321,507,414
0
0
null
null
null
null
UTF-8
Python
false
false
3,099
py
from django import forms from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.forms import ReadOnlyPasswordHashField from .models import User class AddUserForm(forms.ModelForm): """ New User Form. Requires password confirmation. """ ...
[ "m.yassen.93@gmail.com" ]
m.yassen.93@gmail.com
375ca61df7f3c090b6cae7b47334f507cdcba96b
cb4ab4584c4feda3bb1826aafadfea462ecdbf42
/AIs/AI_PlanC/__init__.py
d40f31db6ffa0b9f248c9431ab20f861a8eab6c4
[ "MIT" ]
permissive
rimpo/coding-world-cup
15660a570ca400c82f0966f302b9b4a7a8968c77
964e3b58637f768f6dc5976bf729d993d63b46ab
refs/heads/master
2020-12-02T22:49:53.789544
2017-09-11T15:47:24
2017-09-11T15:47:24
30,821,540
0
0
null
2015-02-21T01:56:31
2015-02-15T07:56:10
C#
UTF-8
Python
false
false
231
py
from .coding_worldcup_api import CodingWorldCupAPI from .js_object import JSObject from .goh_ai import GohAI from .position import Position from .vector import Vector from .classes import MarginFactors, DirectionType, GoalType
[ "richard.s.shepherd@gmail.com" ]
richard.s.shepherd@gmail.com
db8283120c322835780a8040b991fc6cd6140f64
8fa3634da0f827c57480051fab280903501fa007
/setup.py
4553dd8663c4ff0091c6649a2c32f26918cf3d92
[ "Apache-2.0" ]
permissive
ahnan4arch/seldom-pytest
519a30cbe31edc57ab804088acfa6a9f72c6b681
40e252c686118d137927592d6749313470ea0481
refs/heads/main
2023-07-24T04:49:26.858053
2021-09-07T15:28:45
2021-09-07T15:28:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,328
py
import re import ast import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('pytest_seldom/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8'))....
[ "defnngj@gmail.com" ]
defnngj@gmail.com
0bb090af3d10eb68ea43ef977148e2339967fdfc
2c926b4847a44c7f831d47ed0160751d3248e8f4
/venv/lib/python3.8/site-packages/hubspot/crm/tickets/configuration.py
443c7cd845ef66e0d3a63f4179b7ba7d705fbfb7
[]
no_license
Women-in-Tech-Society/WITS_Site
c42cd2c9abe1b5515b80be82dc876a6c3842e42a
5dbf22f5ee5a36358f6f279af4c13d86d31653c5
refs/heads/main
2023-05-11T02:34:05.531902
2021-06-01T01:05:12
2021-06-01T01:05:12
278,658,100
0
5
null
2022-11-22T18:41:35
2020-07-10T14:43:28
Python
UTF-8
Python
false
false
13,761
py
# coding: utf-8 """ Tickets No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import copy import lo...
[ "mhuda@uwo.ca" ]
mhuda@uwo.ca
c1d05b21f21eda71db21e7fb3630c69eb6861bcd
460e920c18fe887cb2b07ca57fe2ad422ce7d0ce
/blog/admin.py
73067696a3e0be1372d1b776763f378177638aa8
[]
no_license
acid-n/mydjangoBlog
893a4c1c7027c79fde3df5dd5c0feb82d8c252f6
e1f62b4f1504ecc13dfbd56a1c5be6b28951ba40
refs/heads/master
2020-09-12T19:14:44.187413
2019-11-18T19:07:17
2019-11-18T19:07:17
222,522,745
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
from django.contrib import admin from .models import Post, Comment # Register your models here. @admin.register(Post) class PostAdmin(admin.ModelAdmin): list_display = ('title', 'slug', 'author', 'publish', 'status') list_filter = ('status', 'created', 'publish', 'author') search_fields = ('title', 'body')...
[ "acid_n@mail.ru" ]
acid_n@mail.ru
019c0ed062113a64f1e603810b203815292dd381
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/428/usersdata/283/107193/submittedfiles/jogoDaVelha_BIB.py
e2b4bef73c9efc099c931cc3a9bb86ef4b724633
[]
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
10,021
py
# -*- coding: utf-8 -*- # COLOQUE SUA BIBLIOTECA A PARTIR DAQUI def sorteio(x,y): import random sort=random.randint(0,2) if sort==0: return(0) if sort==2: return(2) def sorteio2(x,y): import random sort=random.randint(0,2) if sort==0: return(0) e...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
fccad511ed6b1da264dece544d72513fcfa263c0
16bcda63a6bba61af0c835aabd73b0467696be4a
/SymmetricDifference/main.py
e1c9af5ac1b754656877c686ed64ee3aaaab231e
[]
no_license
ZirvedaAytimur/HackerRank_Python
8ea7d629e75b4db31e04c64d102bf7a0a0b5632b
175017ed3d8ff11385e12e926b94da97797fc094
refs/heads/master
2023-03-13T13:00:42.225364
2021-03-10T20:36:18
2021-03-10T20:36:18
288,210,152
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
n = int(input()) a = set(map(int, input().split())) m = int(input()) b = set(map(int, input().split())) differenceAB = a.difference(b) differenceBA = b.difference(a) result = sorted(differenceAB.union(differenceBA)) for i in result: print(i)
[ "zirvedaytimur@gmail.com" ]
zirvedaytimur@gmail.com
eceba96f45693fbccf22d2a2e037432f1a9a458c
05caf48bd067c050666026b75686f23d02327378
/weekly-contest-141/shortest-path-in-binary-matrix.py
b7a5d64bbebde05852b1100a7d86ae4af78e79ec
[ "MIT" ]
permissive
elfgzp/Leetcode
3b6fa307c699fd5a1ba5ea88988c324c33a83eb7
964c6574d310a9a6c486bf638487fd2f72b83b3f
refs/heads/master
2023-08-21T23:11:38.265884
2020-10-17T11:55:45
2020-10-17T11:55:45
168,635,331
3
0
MIT
2023-07-21T03:50:43
2019-02-01T03:14:49
Python
UTF-8
Python
false
false
898
py
from collections import deque class Solution: def shortestPathBinaryMatrix(self, grid: List[List[int]]) -> int: n = len(grid) if grid[0][0] == 1 or grid[-1][-1] == 1: return -1 queue = deque([((0,0), 1)]) visited = {(0, 0)} drs = [-1, 0,...
[ "741424975@qq.com" ]
741424975@qq.com
04079eb6b97a903bfedd18ebb106ac3da4b525a1
bed92adc6d81e86f5345f2ce58f7e6ccb46bcd97
/实验室数据分析/病毒学相关/TCID50-4.0.py
a2a653e48b300cb7c3134200022e7330a84f31a0
[]
no_license
huoweikong/vscode-python-kiton
45b359075ebdc4ab278ce4ee25f901ffc10528b8
47d6bb78ba810fd82f8eb003ecb439f32b48a0ee
refs/heads/master
2023-01-19T17:50:47.208244
2020-11-26T09:22:03
2020-11-26T09:22:03
313,870,114
0
0
null
null
null
null
UTF-8
Python
false
false
24,138
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'TCID50-4.0.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): Mai...
[ "1154282938@qq.com" ]
1154282938@qq.com
af3d51a8c6651d6a849e9cf2e188cdf5e8176eaf
99e1a15d8f605be456f17608843c309dd8a3260f
/src/Pokemon/Abilities/resist_type_ability.py
7ae249538edcd5eca1ceabf4685a1ace3dbf6a34
[]
no_license
sgtnourry/Pokemon-Project
e53604096dcba939efca358e4177374bffcf0b38
3931eee5fd04e18bb1738a0b27a4c6979dc4db01
refs/heads/master
2021-01-17T23:02:25.910738
2014-04-12T17:46:27
2014-04-12T17:46:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
from Pokemon.Abilities.ability import Ability class ResistTypeAbility(Ability): """ An Ability with modified effectivensses """ def __init__(self, name, types): """ """ Ability.__init__(self, name) self.types = types def effectivenessOnDefense(self, at...
[ "cloew123@gmail.com" ]
cloew123@gmail.com
7d774683866c6af78ba7b94d7359d40e6dbccb5d
2d4af29250dca8c72b74e190e74d92f1467120a0
/TaobaoSdk/Request/UdpItemGetRequest.py
bfddef49a7fac36e4655c5d8ba9f31734b80b15e
[]
no_license
maimiaolmc/TaobaoOpenPythonSDK
2c671be93c40cf487c0d7d644479ba7e1043004c
d349aa8ed6229ce6d76a09f279a0896a0f8075b3
refs/heads/master
2020-04-06T03:52:46.585927
2014-06-09T08:58:27
2014-06-09T08:58:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,383
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim: set ts=4 sts=4 sw=4 et: ## @brief 商品指标查询 # @author wuliang@maimiaotech.com # @date 2013-09-22 16:52:38 # @version: 0.0.0 import os import sys import time def __getCurrentPath(): return os.path.normpath(os.path.join(os.path.realpath(__file__), os.path.pardi...
[ "chenke@maimiaotech.com" ]
chenke@maimiaotech.com
bf5555989d86fa4f6bcf35bcbad1fc8472065722
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/pkgs/astropy-1.1.2-np110py27_0/lib/python2.7/site-packages/astropy/utils/compat/misc.py
9b56940a7d85a04a5497f9b2f99abf3c2480f150
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
3,556
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Simple utility functions and bug fixes for compatibility with all supported versions of Python. This module should generally not be used directly, as everything in `__all__` will be imported into `astropy.utils.compat` and can be accessed from there. ...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
147cf4364b9e0ec4c97c14d9487f7650af798832
0767d96d7d389d0c76b9915f33d19e910f5e3ae2
/changingthefoodchain/organizations/management/commands/loadorganizations.py
75cf04100d16dd9dbbdd0ba537a4b680f88c6ab4
[]
no_license
ebrelsford/changingthefoodchain-back
3d7b68aadd97339910a98ea6da0f66ce2af46979
58d093ff4f4f211c1e83de099f4bf3981d598588
refs/heads/master
2021-01-22T09:05:20.114067
2016-01-15T02:33:10
2016-01-15T02:33:10
21,173,480
0
0
null
null
null
null
UTF-8
Python
false
false
2,099
py
import csv from django.contrib.gis.geos import Point from django.core.management.base import BaseCommand from organizations.models import Organization, Sector, Type class Command(BaseCommand): args = 'filename' help = 'Load the organizations in the given CSV' type_abbreviations = { 'a': 'advoca...
[ "ebrelsford@gmail.com" ]
ebrelsford@gmail.com
c1abfa1d38d1a7389e9f65eaf991440fc0579afd
f6fca4fe9923e82bdd69fbca661a4e7df16660cb
/kws_streaming/layers/sub_spectral_normalization.py
10b924a1b0189041f860da536ea4105cd6ad8052
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
zdeagle/google-research
85664eae969cbeff3012bc5b0beb94c557030f9c
249751dfe7cb6e0b5be5c2e301d0aed71ab15ff2
refs/heads/master
2023-09-03T06:44:06.126169
2021-11-01T01:44:43
2021-11-01T02:11:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,133
py
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
41f97e277f906e0452fb33ce4ea04de915867d9e
a8d55aa06c84ba592207d3e784cb449987dbf73d
/python/HI/dijet_analysis/pPb8TeV/Pythia8_Dijet120_pp_TuneCUETP8M1_8160GeV_cff.py
9d359c1099dc989d03f935217c82f54be254fca2
[]
no_license
CmsHI/genproductions
1a38e6d00a286ca485cc01f89c476d888a947b7f
bda8af4537f692677eafe10148cd17a7d364ebf8
refs/heads/master
2023-03-07T10:33:28.844648
2023-02-03T12:54:52
2023-02-03T12:54:52
15,395,480
0
5
null
2020-03-21T21:33:13
2013-12-23T12:58:04
Python
UTF-8
Python
false
false
1,075
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", PythiaParameters = cms.PSet( pythia8CommonSettingsBlock, pythia8CUEP8M1SettingsBl...
[ "marta.verweij@cern.ch" ]
marta.verweij@cern.ch
913972683869049d67d35ad24c16ab8a76fb8aea
380372bbec9b77df14bb96fc32aca7061cca0635
/covid/calc/italy/sird_out.py
0839b65487e1954ded6ee16c860c90ae410488da
[]
no_license
IchiroYoshida/python_public
d3c42dc31b3206db3a520a007ea4fb4ce6c1a6fd
37ccadb1d3d42a38561c7708391f4c11836f5360
refs/heads/master
2023-08-16T17:19:07.278554
2023-08-13T21:29:51
2023-08-13T21:29:51
77,261,682
2
0
null
null
null
null
UTF-8
Python
false
false
944
py
''' SIRD/Optuna1 model simulation Plot 2020-03-28 ''' import numpy as np from scipy.integrate import odeint import matplotlib.pylab as plt from matplotlib.pylab import rcParams plt.style.use('seaborn-colorblind') N = 60480000 # community size t_max = 200 tspan = np.linspace(0.0, t_max, t_max + 1) # para...
[ "yoshida.ichi@gmail.com" ]
yoshida.ichi@gmail.com
7a09e0bbbfb0ff3a03a00cbce4ceef84c246cfae
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2177/60760/320775.py
e9baa7cea28a2c72ead4bdca35056de12a8b98dc
[]
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
561
py
n=int(input()) res=n if res==11: print(12) print("6 7 5 8 4 9 3 10 2 11 1 12",end=" ") elif res==1: print(2) print("1 2",end=" ") elif res==9: print(10) print("5 6 4 7 3 8 2 9 1 10",end=" ") elif res==13: print(14) print("7 8 6 9 5 10 4 11 3 12 2 13 1 14",end=" ") elif res==35: print...
[ "1069583789@qq.com" ]
1069583789@qq.com
09179808823e6090a2772bb6dfde9ff15c641ee6
86ce7710dfb1a4598d02a8006ebb3077c9101f29
/nekidblog/postsapp/models.py
a434d6e5778917beda41daf69fd0ec3cfb6c1931
[]
no_license
spoliv/test_task_nekidaem_ru
33b9fe8db54bf9d588834963fa3c1b9a5ae02159
3fa29a95cce5e2eb698827c0e3b8e89177022ab6
refs/heads/main
2023-01-30T04:48:25.101257
2020-12-10T15:45:16
2020-12-10T15:45:16
318,528,386
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
from django.db import models from django.contrib.auth.models import User class Blog(models.Model): class Meta: verbose_name = 'Блог' verbose_name_plural = 'Блоги' author = models.ForeignKey(User, on_delete=models.CASCADE) blog_theme = models.CharField(verbose_name='тема блога', max_length...
[ "spoliv@rambler.ru" ]
spoliv@rambler.ru