blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
c99be8ab1fbd55dd291d94871960eb9885eac72f
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/communication/azure-communication-email/samples/send_email_to_multiple_recipients_sample.py
4009aaf0f805e47a8f8b3d1e2f8df2a6da58972b
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
3,050
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. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
Azure.noreply@github.com
77ba68c5ea388336d8038d5e9e64d2d07a52abb5
5342c87436c514f6428524d8f9fca33f6745a791
/ros2cli/ros2param/ros2param/verb/get.py
1a7c3f1943742ebee688e9b2ed5beb9385c2aec3
[ "Apache-2.0" ]
permissive
hfz-Nick/ROS
9d64cb220539a29c65fb6ae8ae0f5e42c5ad955b
1c8909c9709a0cbaed7f3084557ee4c3fb1ff380
refs/heads/main
2022-12-28T05:01:44.255695
2020-10-10T01:24:43
2020-10-10T01:24:43
302,788,188
0
0
null
null
null
null
UTF-8
Python
false
false
4,227
py
# Copyright 2018 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ "you@example.com" ]
you@example.com
681cb012173559ca0073167310544329505a424b
a7266a2c39e309bdc0fdd4c771942412465d0fb5
/McCoy Group Code Academy/Exercises/LegendreDVR.py
308ba21907ec13ef8c94b648285571a964cb0c65
[]
no_license
McCoyGroup/References
68a930280e865d3efd4d7d29d7a961126258494d
7bcf80bebfed92f7967135cc909e7280b2365680
refs/heads/gh-pages
2023-04-28T11:24:37.881869
2022-08-18T15:38:31
2022-08-18T15:38:31
127,345,918
1
6
null
2023-04-12T05:21:47
2018-03-29T20:49:01
Mathematica
UTF-8
Python
false
false
534
py
# THIS IS A PLACEHOLDER: AS WE ADD THINGS WE'LL FILL THIS OUT """ Goal: ... Fundamentals: ... (Comma-separated list) Related Exercises: ... (Comma-separated list) """ ## Imports: put all import statments here ## Exports: put all the names things we might want to use in other scripts here __all__ = [ ] ## Objects: p...
[ "b3m2a1@gmail.com" ]
b3m2a1@gmail.com
ddab472e1041d209d6ee9169203e5b8e135d0abe
bd3a1843e2b0dc15837628c77f73e95a9bb1264f
/PyFunceble/helpers/file.py
9f4d1b0cfbd3975feb10c42d58ddc346c3e4026d
[ "Apache-2.0" ]
permissive
funilrys/PyFunceble
404c64d1b281d4ae06a939b54f4088d63e12b828
214a57d0eca3df7c4ed3421937aaff9998452ba6
refs/heads/dev
2023-06-24T18:39:29.372775
2023-06-18T13:15:39
2023-06-18T13:15:39
106,995,518
267
62
Apache-2.0
2023-08-25T16:05:17
2017-10-15T08:25:14
Python
UTF-8
Python
false
false
6,582
py
""" The tool to check the availability or syntax of domain, IP or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █...
[ "contact@funilrys.com" ]
contact@funilrys.com
82ce73e6415e6d017e3700546ee09e7625280e80
3c114c083af073421fc0becfa4b4471ba1d77de5
/google/sparse_matrix.py
0dd73b7847553e67b60991e24b0e2ed383dac254
[]
no_license
alonsovidales/interview_questions
99f757c7e35c5ede450be25d3bebd54a18b1312b
5e63e238950c2f6bdfd3ff48311d6c69a676d382
refs/heads/master
2021-01-17T12:06:48.419891
2018-03-25T08:44:14
2018-03-25T08:44:14
30,909,319
6
1
null
null
null
null
UTF-8
Python
false
false
1,795
py
""" Given a sparse matrix, implement below two methods: void set(int row, int col, int val) /*Update value at given row and col*/ int sum(int row, int col) /*give sum from top left corner to given row, col sub-matrix*/ """ class SortedArray(object): def __init__(self): self._dirty = False ...
[ "alonso.vidales@tras2.es" ]
alonso.vidales@tras2.es
9a13592fb7c388eae0315d097c09293ad3beca18
238c16de19b2b5928eeba6ca35abffdbfaa961e4
/tests/conftest.py
d730fbb8a3dfcce7244fa8d564c373d6d0aec9b9
[]
no_license
multiscripter/random-phrase-fastapi
dd7637d25ea7326659d8dfb7925697ab37d14c8f
5cba715f898309530fa393a4cf434d45725ba6ed
refs/heads/master
2022-12-28T23:35:08.435193
2020-09-28T21:00:18
2020-09-28T21:00:18
299,430,861
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
import pytest from Database import Database from db import PhraseInput @pytest.hookimpl() def pytest_sessionstart(session): """Actions before all tests.""" db = Database() for a in range(1, 4): data = { 'author': f'test-author-{a}', 'text': f'test-text-{a}' } ...
[ "ILL-JAH@yandex.ru" ]
ILL-JAH@yandex.ru
20b01ef20b8f2d6b57de84d0d28e2bc0e71557c9
e707164df1aa8edb5d276179538bd1eb1805f759
/CODE/fedora_application/env/lib/python2.7/site-packages/rube/core/__init__.py
fcfa0e415c10c22ed928fa448f8bd7ebcccd9801
[]
no_license
beckastar/cleaner_markov
af5816c14c94a8cb7924728179470e7db9ed2bc0
a6de3fd87db77c0d80789cbce0ff409c222b4e67
refs/heads/master
2021-01-02T22:52:08.989862
2013-11-10T04:51:04
2013-11-10T04:51:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,358
py
# -*- coding: utf-8 -*- # This file is part of Rube. # # Rube is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Rube is distributed i...
[ "rebecca.robbins.et@gmail.com" ]
rebecca.robbins.et@gmail.com
6a39bf88ed26fd334ca58f0d9fa50928ff9d0a6a
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_1/208.py
3cff053a0d8355a115d24f870f7da1280b84ee66
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
#!/usr/bin/python import sys def handle_case(case_no, engiens, words): saw ={} answer = 0 for w in words: if w not in saw.keys(): if len(saw.keys()) == (len(engiens)-1): answer+=1 saw = {} saw[w] = 1 print "Case #%d: %s" % (case_no, answer) def main(): filename = sys.argv[1] fsock = open...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
aec1b46ee90e6ad349ec1ef3880aafad45dd2339
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_17926.py
3f65a0747b3ebe817fa6bb84dae8bed99654f41d
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
# Django-Models: TypeError: coercing to Unicode: need string or buffer, User found def __unicode__(self): return '%s' % (self.user)
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
9558aff2a7a109b33beb176497844e5998bf15cd
d88397be1c6a31985bc2283280e743fd3b988dd1
/beta/examples/tensorflow/common/optimizer.py
ebf3e1b4079c43f388b1f9256596c3a7c9103cec
[ "Apache-2.0" ]
permissive
sshyran/openvino-nncf-pytorch
f5e09066a216fa786927937a91a0e6742f347660
fd02652950cd803a36f5283f5a5df999bb45433b
refs/heads/develop
2023-04-18T06:58:54.646669
2021-03-12T15:41:39
2021-03-12T15:41:39
347,374,166
0
0
Apache-2.0
2023-04-03T23:52:21
2021-03-13T13:11:32
null
UTF-8
Python
false
false
3,837
py
""" Copyright (c) 2020 Intel Corporation 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 writin...
[ "noreply@github.com" ]
sshyran.noreply@github.com
234c2b61255e3d404e666a25ecc316deb34ed85f
148072ce210ca4754ea4a37d83057e2cf2fdc5a1
/src/core/w3af/w3af/core/data/kb/vuln_templates/tests/test_base_template.py
8108d8d84b9422931d1e1c5e55f63f073e4fecaa
[]
no_license
ycc1746582381/webfuzzer
8d42fceb55c8682d6c18416b8e7b23f5e430c45f
0d9aa35c3218dc58f81c429cae0196e4c8b7d51b
refs/heads/master
2021-06-14T18:46:59.470232
2017-03-14T08:49:27
2017-03-14T08:49:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,586
py
""" test_base_template.py Copyright 2012 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the ho...
[ "everping@outlook.com" ]
everping@outlook.com
7eff3f83f034b7bb0330f386c24b489e1bcf3e28
45ddd3d0d568b3d28c25c2023839933496753d52
/Bai34-multitaskLearning/predict.py
d2f931a016260ca73f857a1c73eacd52fe4fb4e6
[]
no_license
phamdinhkhanh/khanhBlogTurtorial
7d65259066b1eb6f48a2c7ef78840005d61c9fdb
0685ef989f72057581b0268bd6c9e01981833549
refs/heads/master
2022-12-13T08:30:18.866016
2020-05-05T01:26:44
2020-05-05T01:26:44
248,902,988
21
20
null
2022-12-12T11:57:04
2020-03-21T03:57:22
Jupyter Notebook
UTF-8
Python
false
false
2,173
py
# USAGE # python predict.py --model fashion_multitask_learning.h5 --labelbin mlb.pkl --image examples/example_01.jpg # import the necessary packages from tensorflow.keras.preprocessing.image import img_to_array from tensorflow.keras.models import load_model import numpy as np import argparse import pickle import cv2 i...
[ "phamdinhkhanh.tkt53.neu@gmail.com" ]
phamdinhkhanh.tkt53.neu@gmail.com
b53181ff1835a17047d6c94d41b850630c4e82a4
a08d85552ed0db1a906c3b31ed99f56bae857c60
/PythonCourse/d2e2.py
fd961bf13b6f7ec843e3d610fd509829890c3ca1
[]
no_license
MagdalenaZZ/Python_ditties
90866e53f9aafa603f05735e2ceb094cf5518a18
757d8de1df0e53d38d4ba9854b092eabe6ec6570
refs/heads/master
2023-02-20T12:23:09.778092
2023-02-07T10:06:55
2023-02-07T10:06:55
136,293,051
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
def maximum (x,y): """Assumes two numbers and returns the biggest one""" if x > y: return x else: return y
[ "magz@MacBook-Air.local" ]
magz@MacBook-Air.local
f687f0ca5526f5ba9070037e195218aa01be0a95
339cc015ad260661e02ad32fe229807988a92487
/accounting_addons/accounting_addons/accounting_addons/doctype/asset_depreciation_record/asset_depreciation_record.py
172e3396e7b5bb0fe5bda91c2abe72601df8ee71
[ "MIT" ]
permissive
bobzz-zone/gsi_accounting_addons
009448596ca6ca114af27f0bdf35744f2835616b
373ef3c7e8179fb7e4d003e8f4b809b36c4cfe1d
refs/heads/master
2016-09-10T12:04:49.737175
2015-05-07T10:18:48
2015-05-07T10:18:48
35,213,204
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
# -*- coding: utf-8 -*- # Copyright (c) 2015, Myme and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class AssetDepreciationRecord(Document): pass
[ "bobzz.zone@gmail.com" ]
bobzz.zone@gmail.com
652711257a3cd0e0ebee83693a0c9cef26803857
a6390e0bbd5a7070c0abd2504afecc8ef6028997
/indigo/nn/input.py
4563f18522af8de264df296082c45aff9c167847
[]
no_license
mlberkeley/indigo
2f287a82c939a9d0adc41db23e59ae777fc88466
c155b16265f13d87be0108fcf815517491b93a74
refs/heads/master
2021-06-14T01:21:06.702854
2020-05-22T08:10:47
2020-05-22T08:10:47
254,468,158
4
0
null
2020-04-09T20:08:16
2020-04-09T20:08:16
null
UTF-8
Python
false
false
3,142
py
from dataclasses import dataclass from typing import Any import tensorflow as tf @dataclass class AttentionInput(object): """Fields of a data class for computing multihead attention in indigo.variables.attention.Attention Arguments: queries: tf.Tensor the Queries tensor in a mul...
[ "brandon@btrabucco.com" ]
brandon@btrabucco.com
89a494a1ece606add63023592b124bfaf796cc21
ebec8b55938903f97f66bc3629ce73db177b8bcc
/ultimatewebsite/members/forms.py
2a879513f03f4cc84b77452c291fb16db54bd212
[ "MIT" ]
permissive
NischalLal/class-ultimate-classof2020
284788f87c95e4889b10c2f9072c8e16daf15c4d
c069dc7211a640267e35c2e956ad9440a03e1ab8
refs/heads/master
2021-04-25T23:30:12.434127
2017-10-17T08:27:53
2017-10-17T08:27:53
107,240,286
1
0
MIT
2020-10-04T05:44:04
2017-10-17T08:32:21
CSS
UTF-8
Python
false
false
2,464
py
from django import forms from members.models import Member class MemberForm(forms.ModelForm): favourite_quote = forms.CharField( widget = forms.Textarea) class Meta: model = Member fields = ('full_name', 'image', 'phone_number', 'email', 'hometown', 'favourite_quote', 'bio'...
[ "aakrist666@gmail.com" ]
aakrist666@gmail.com
e60f622fd08209dd0fccd070ecab295d750160cd
03ec2daac0989f9b6936b1e87d8ca1b0d99f1bce
/optfn/plastic_linear.py
58257991529ef71676ed0cdc4dd2f255adf46f1a
[]
no_license
SSS135/optfn
f7364dce8c1857baa90d2d6564316762c574a9ba
48ae4f5439daa89ac54921a7642e612838c724eb
refs/heads/master
2020-05-29T15:21:38.827291
2020-04-29T17:51:09
2020-04-29T17:51:09
189,217,719
0
0
null
null
null
null
UTF-8
Python
false
false
4,014
py
import torch import torch.nn as nn import torch.nn.functional as F import math class PlasticLinear(nn.Module): def __init__(self, in_features, out_features, bias=True, single_plastic_lr=False, initial_plastic_lr=0.1, oja_rule=True): super().__init__() self.in_features = in_features self.ou...
[ "sss13594@gmail.com" ]
sss13594@gmail.com
01c8f82a0e2570725b639af3a837aed5c0198892
3b504a983f1807ae7c5af51078bfab8c187fc82d
/client/gui/HudElements/ForestallingPoint.py
79091f51fde6a17f9469bf38b316f591b2728d8a
[]
no_license
SEA-group/wowp_scripts
7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58
2fe54a44df34f2dcaa6860a23b835dcd8dd21402
refs/heads/master
2021-09-07T23:10:13.706605
2018-03-02T17:23:48
2018-03-02T17:23:48
117,280,141
0
0
null
null
null
null
UTF-8
Python
false
false
2,554
py
# Embedded file name: scripts/client/gui/HudElements/ForestallingPoint.py import BigWorld import GUI from consts import * from gui.HUDconsts import * from EntityHelpers import isAvatar, isTeamObject class ForestallingPoint: def __init__(self, offsetMtx): self.__offsetMtx = offsetMtx self.__centerP...
[ "55k@outlook.com" ]
55k@outlook.com
aeb2278cba6e6f5ab83eeea7a5279fdb438b5902
b66e70a8bb3c53595acd01dceb23298694884b67
/cloudy/settings/base.py
e14d1c5960cb86cbbfc54a2d682480988098d21e
[]
no_license
flupke/cloudy-release
d7735a38d79f816c52da3d983c714512a32919b1
6b160188a7067f125b107eb68dc8db4bbb4bfdf4
refs/heads/master
2016-09-06T05:23:40.856287
2013-02-23T18:17:16
2013-02-23T18:17:16
8,377,854
0
0
null
null
null
null
UTF-8
Python
false
false
4,892
py
import os.path as op ROOT_DIR = op.abspath(op.join(op.dirname(__file__), '..')) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', ...
[ "luper.rouch@gmail.com" ]
luper.rouch@gmail.com
808a9f59c4c857fb35b4ea766f82d0994b5016fd
bf1e6aa6ee7687363427c87b7e5bef1d157410fc
/backend/chat/api/v1/serializers.py
4a6ada475bba6fc32ca69b58440701201883d804
[]
no_license
crowdbotics-apps/chatme-27551
8cee7a31badc71575ba7c1a31c9d8638dadacd08
9c10dd5c0413ab2e10ffde4c8b90f650464cfa45
refs/heads/master
2023-05-04T12:18:31.110095
2021-05-29T10:40:55
2021-05-29T10:40:55
371,938,649
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
from rest_framework import serializers from chat.models import ( MessageAction, ThreadMember, Thread, Message, ThreadAction, ForwardedMessage, ) class ForwardedMessageSerializer(serializers.ModelSerializer): class Meta: model = ForwardedMessage fields = "__all__" class Th...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
352b6484d41dbe8b4caa795e4a050a3a6b7cc7aa
553b34a101c54090e68f540d96369ac7d5774d95
/python/python_koans/python2/koans/about_new_style_classes.py
99f39683a5ef5d804c5ed0b6d1160ab2d6b98939
[ "MIT" ]
permissive
topliceanu/learn
fd124e1885b5c0bfea8587510b5eab79da629099
1c5b1433c3d6bfd834df35dee08607fcbdd9f4e3
refs/heads/master
2022-07-16T19:50:40.939933
2022-06-12T15:40:20
2022-06-12T15:40:20
21,684,180
26
12
MIT
2020-03-26T20:51:35
2014-07-10T07:22:17
JavaScript
UTF-8
Python
false
false
2,466
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from runner.koan import * class AboutNewStyleClasses(Koan): class OldStyleClass: "An old style class" # Original class style have been phased out in Python 3. class NewStyleClass(object): "A new style class" # Introduced in Python...
[ "alexandru.topliceanu@gmail.com" ]
alexandru.topliceanu@gmail.com
6f5712a2576ccb525f3600b7f0802178c4a366d1
32c56293475f49c6dd1b0f1334756b5ad8763da9
/google-cloud-sdk/lib/googlecloudsdk/command_lib/compute/machine_types/flags.py
7446d105ac181ce93490efa9f4adda4468ca2080
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/socialliteapp
b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494
85bb264e273568b5a0408f733b403c56373e2508
refs/heads/master
2022-11-20T03:01:47.654498
2020-02-01T20:29:43
2020-02-01T20:29:43
282,403,750
0
0
MIT
2020-07-25T08:31:59
2020-07-25T08:31:59
null
UTF-8
Python
false
false
1,181
py
# -*- coding: utf-8 -*- # # Copyright 2017 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "jonathang132298@gmail.com" ]
jonathang132298@gmail.com
c149c43ee2040d9c4aa7f7048a612c1e6297266f
83280aa17b415138a6f55edf9cedfdd9a45916a2
/src/stochastic_review/cli.py
3f05a48e626b05227ae1806c286b518dadf3e258
[]
no_license
RubenBranco/Stochastic-Continuous-Review
dfea2b55b7c8f0d41eac289b76b1d28ced31d0ce
9015ebe6adfc6b812cb83c2b9df06fd3d20b6fcc
refs/heads/master
2020-05-01T12:31:50.531958
2019-04-28T16:50:38
2019-04-28T16:50:38
177,467,859
2
0
null
null
null
null
UTF-8
Python
false
false
1,161
py
from bullet import SlidePrompt, Bullet, Numbers DISTRIBUTIONS = [ 'Uniform', 'Normal', ] cli = SlidePrompt( [ Bullet(prompt="Choose the distribution(Y)", choices=DISTRIBUTIONS), Numbers(prompt="Distribution mean(μ) / Starting point(a): ", type=float), Numbers(prompt="Distribution...
[ "ruben.branco@outlook.pt" ]
ruben.branco@outlook.pt
993d08a77bcc43f54ee71a7c8ec0e59ae70641c2
bb150497a05203a718fb3630941231be9e3b6a32
/framework/api/nn/test_hardsigmoid.py
f591329d91524bb078a0d9157a65d000a22cedf6
[]
no_license
PaddlePaddle/PaddleTest
4fb3dec677f0f13f7f1003fd30df748bf0b5940d
bd3790ce72a2a26611b5eda3901651b5a809348f
refs/heads/develop
2023-09-06T04:23:39.181903
2023-09-04T11:17:50
2023-09-04T11:17:50
383,138,186
42
312
null
2023-09-13T11:13:35
2021-07-05T12:44:59
Python
UTF-8
Python
false
false
1,588
py
#!/bin/env python # -*- coding: utf-8 -*- # encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python """ test_hardsigmoid """ from apibase import APIBase from apibase import randtool import paddle import pytest import numpy as np class TestHardsigmoid(APIBase): """ test """ def hook(self): """ ...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
6973cb6fad77d9866816625849943c3739ebab02
45870a80cbe343efe95eb9e8d0bd47c8c88353d1
/特殊的函数/venv/Lib/site-packages/tensorflow/tools/api/generator/api/gfile/__init__.py
d15998ef1791b0b3d2441ba82e50f147a68d311d
[]
no_license
pippichi/IntelliJ_PYTHON
3af7fbb2c8a3c2ff4c44e66736bbfb7aed51fe88
0bc6ded6fb5b5d9450920e4ed5e90a2b82eae7ca
refs/heads/master
2021-07-10T09:53:01.264372
2020-07-09T13:19:41
2020-07-09T13:19:41
159,319,825
0
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
"""Imports for Python API. This file is MACHINE GENERATED! Do not edit. Generated by: tensorflow/tools/api/generator/create_python_api.py script. """ from tensorflow.python.lib.io.file_io import copy as Copy from tensorflow.python.lib.io.file_io import create_dir as MkDir from tensorflow.python.lib.io.file_io i...
[ "874496049@qq.com" ]
874496049@qq.com
dab2470950559095359d56daae0b4daa36f036d0
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/ec2_write_1/vpc-endpoint_modify.py
30909794ef3620c2cf2d203628e316109fd9fca1
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,180
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_one_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/modify-vpc-endpoint.html if __name__ == '__m...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
f32746191c1cdb68cba6ceff436e1725c23ccd61
09021accfc6241a7eb3b17821394881518e78c84
/backend/settings/development.py
7e4853ea4e2f7e29e445273125de5c9c0e65fec0
[]
no_license
mrporsh/ecommerce-core
c37ec314b7fe2a79524ed110a014b148be1edcf1
20de529dad2d52df20a75956d1be1d23cfa241af
refs/heads/master
2022-11-08T02:08:05.358421
2020-06-15T08:18:56
2020-06-15T08:18:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,016
py
from backend.settings.base import * SECRET_KEY = '6h03)d($%+c4r#p65#ctnk3*u21^v@q+*e^ue0+llrq%zv(94z' DEBUG = True ALLOWED_HOSTS = ["*", ] # Database DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # django-cors-headers C...
[ "onteripaul@gmail.com" ]
onteripaul@gmail.com
d24c822be4efd0de82f39e9ae11c2a6453533063
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_006/ch83_2020_04_13_17_27_42_530852.py
8bd9a1e46cf9d29bc7a0f99413f2f1b5c8b8d247
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
def medias_por_inicial(dicio): dicio2={} listaL=[] a=1 for i in dicio: if i[0] not in listaL: listaL.append(i[0]) dicio2[i[0]]=dicio[i] else: a=a+1 dicio2[i[0]]=(dicio2[i[0]]+dicio[i])/a return dicio2
[ "you@example.com" ]
you@example.com
2d5e425ebcdd855dda89d0709c5e580068264bb4
99deab5f52fd7262a26de9aa5d0163bfa738590f
/python/leetcode/string/468_valid_ip_address.py
d2bed0cf860f5b1cad696de3bf10c6009a3861a1
[]
no_license
zchen0211/topcoder
e47fc07c928b83138e27fd6681b373ce499480b0
4d73e4c1f2017828ff2d36058819988146356abe
refs/heads/master
2022-01-17T16:54:35.871026
2019-05-08T19:26:23
2019-05-13T05:19:46
84,052,683
0
2
null
null
null
null
UTF-8
Python
false
false
3,186
py
""" 468. Validate IP Address (Medium) Write a function to check whether an input string is a valid IPv4 address or IPv6 address or neither. IPv4 addresses are canonically represented in dot-decimal notation, which consists of four decimal numbers, each ranging from 0 to 255, separated by dots ("."), e.g.,172.16.254.1...
[ "chenzhuoyuan07@gmail.com" ]
chenzhuoyuan07@gmail.com
00bc2dabdcd7e010bc2735303ed4cc9a35ed7325
776fa03e088c148578c5fe4b361734d1b5517249
/comments/signals.py
c1ff8c39e82d81fdff911228614f931b6a3f1618
[]
no_license
zhexuejia53/book_share_demo
de8b8801bf9af757f19e280cbf0d98d4ea80bfa7
7c810b06bc1f810650e471fd8bbe902c657c048b
refs/heads/master
2020-04-06T14:40:03.226213
2018-11-14T14:17:47
2018-11-14T14:17:47
157,549,811
1
0
null
null
null
null
UTF-8
Python
false
false
429
py
# encoding: utf-8 """ @author: Sunmouren @contact: sunxuechao1024@gmail.com @time: 2018/9/29 16:58 @desc: data change signals """ from django.db.models.signals import m2m_changed from django.dispatch import receiver from .models import Comment @receiver(m2m_changed, sender=Comment.like_user.through) def like_user_c...
[ "sunxuechao1024@gmail.com" ]
sunxuechao1024@gmail.com
bf63be0f63eb2aec45ffda446384b490c422dca9
b129b450cf5edce677f284858a1ab14c003edca6
/project/chapter6/user.py
e2fbbd4ec01ad4e9adca8fee5e79f4ce95fe0312
[]
no_license
mentalclear/PythonCrashCourse
7ab5a7691cd6ece83043ded2b91049723945b6e0
11d96ed6c7e36d254158ee49586ee40aa09493a1
refs/heads/master
2023-07-18T17:24:49.046848
2021-08-16T14:05:08
2021-08-16T14:05:08
233,722,723
0
0
null
null
null
null
UTF-8
Python
false
false
1,476
py
user_0 = { 'username': 'efermi', 'first': 'enrico', 'last': 'fermi', } for key, value in user_0.items(): print("\nKey: " + key) print("Value: " + value) # Fav languages sample too favorite_languages = { 'jen': 'python', 'sarah': 'c', 'edward': 'ruby', 'phil': 'python', } for name, l...
[ "mentalclear@gmail.com" ]
mentalclear@gmail.com
a991f2bbc4f316c01fa0ef216d76f54796d6cf5f
a59d55ecf9054d0750168d3ca9cc62a0f2b28b95
/.install/.backup/lib/googlecloudsdk/gcloud/sdktools/auth/revoke.py
563c17681dffdf72d8b48e802ca6e428a1e526f5
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
bopopescu/google-cloud-sdk
bb2746ff020c87271398196f21a646d9d8689348
b34e6a18f1e89673508166acce816111c3421e4b
refs/heads/master
2022-11-26T07:33:32.877033
2014-06-29T20:43:23
2014-06-29T20:43:23
282,306,367
0
0
NOASSERTION
2020-07-24T20:04:47
2020-07-24T20:04:46
null
UTF-8
Python
false
false
1,945
py
# Copyright 2013 Google Inc. All Rights Reserved. """Revoke credentials being used by the CloudSDK. """ from googlecloudsdk.calliope import base from googlecloudsdk.calliope import exceptions as c_exc from googlecloudsdk.core import log from googlecloudsdk.core import properties from googlecloudsdk.core.credentials ...
[ "alfred.wechselberger@technologyhatchery.com" ]
alfred.wechselberger@technologyhatchery.com
0bd5fa45d9a802e9ef2aad12ba344f7a145ca37c
f6688132ec14a9d03c8bb05e85819f810fd3e4e6
/tfold/nets/nets_factory.py
2f93c133b7f6deb9c1be5c4a6d13a25aadb0c6aa
[ "Apache-2.0" ]
permissive
mariusionescu/tfold
44515b9eba027a8d4a9265e6f7299dc08294dc42
b6a9913d29a62326bfc3086fa14ed317d1e02a0a
refs/heads/master
2020-04-08T19:59:39.676558
2018-12-05T19:47:57
2018-12-05T19:47:57
159,679,441
0
0
Apache-2.0
2018-11-29T14:33:13
2018-11-29T14:33:12
null
UTF-8
Python
false
false
7,298
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 applicable ...
[ "marius@mi.www.ro" ]
marius@mi.www.ro
022ecb8993edbe27c3273a1472d037923525e9ec
ff8aa03818c31db7dea740d65b79f5517385ec79
/lib/flows/general/checks_test.py
b19f9ae9dbc87be3b99214a1b50e989da81dbd48
[ "DOC", "Apache-2.0" ]
permissive
pchaigno/grr
cdaf4db3289cf80359441fef5be39bbf0729d3ac
69c81624c281216a45c4bb88a9d4e4b0613a3556
refs/heads/master
2021-01-21T08:24:45.699745
2015-08-03T17:01:30
2015-08-03T17:01:30
25,120,177
0
0
null
null
null
null
UTF-8
Python
false
false
4,783
py
#!/usr/bin/env python """Test the collector flows.""" import os from grr.client import vfs from grr.lib import action_mocks from grr.lib import aff4 from grr.lib import config_lib from grr.lib import flags from grr.lib import flow from grr.lib import test_lib from grr.lib.checks import checks from grr.lib.checks impor...
[ "github@mailgreg.com" ]
github@mailgreg.com
e3bd418f73a95ee66b1b3560cdfc93ce323bfebc
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/surface/deploy/delivery_pipelines/describe.py
627fd4b62b1af7f91ba485c9069aa7c4c39558ac
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google-cloud-sdk-unofficial/google-cloud-sdk
05fbb473d629195f25887fc5bfaa712f2cbc0a24
392abf004b16203030e6efd2f0af24db7c8d669e
refs/heads/master
2023-08-31T05:40:41.317697
2023-08-23T18:23:16
2023-08-23T18:23:16
335,182,594
9
2
NOASSERTION
2022-10-29T20:49:13
2021-02-02T05:47:30
Python
UTF-8
Python
false
false
3,850
py
# -*- coding: utf-8 -*- # # Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
99ede0972e7ffe258fd362c118aec60acac4a6b8
1034ae0e71c91b5258364e216ed724cfeed563f8
/benchbuild/projects/benchbuild/python.py
1a76ea30ae3b86d66b5514c305b6b900485ec4b2
[ "MIT" ]
permissive
PolyJIT/benchbuild.projects
4367b27f8380fc036ac8bc1ec5a767f29fdf18d6
878e2906aff2ae13abdd7f8515b8643bc7cf1f15
refs/heads/master
2020-12-20T14:07:01.130075
2020-01-24T23:42:54
2020-01-24T23:42:54
236,102,422
0
0
null
null
null
null
UTF-8
Python
false
false
1,511
py
from plumbum import local from benchbuild.project import Project from benchbuild.environments import container from benchbuild.source import HTTP from benchbuild.utils.cmd import make, tar class Python(Project): """ python benchmarks """ NAME: str = 'python' DOMAIN: str = 'compilation' GROUP: str = ...
[ "simbuerg@fim.uni-passau.de" ]
simbuerg@fim.uni-passau.de
17caa79403632a3b3f95dbf1c801017b4f05e9e9
8e2e28a191fa5ec5a6c070ec7e9ccad98c8b4a0b
/test/26-踢足球游戏.py
abb3a54a35b9b9bb2ac3c5ace47cca32545f1481
[ "Apache-2.0" ]
permissive
kellanfan/python
4cd61cbc062e2eee3a900fa7447ca5f0b8f1a999
912dc05a3bd0ded9544166a68da23ca0a97b84da
refs/heads/master
2023-04-06T03:04:38.851928
2023-04-01T02:45:56
2023-04-01T02:45:56
65,542,280
3
5
null
null
null
null
UTF-8
Python
false
false
1,534
py
# pylint: disable=no-member # -*- encoding: utf-8 -*- ''' @File : 26-踢足球游戏.py @Time : 2019/05/13 12:02:17 @Author : Kellan Fan @Version : 1.0 @Contact : kellanfan1989@gmail.com @Desc : None ''' # here put the import lib from random import choice def kick(): direction = ['right','centor','l...
[ "icyfk1989@163.com" ]
icyfk1989@163.com
7f850a7311c4ab54b2e4f5163041ce9a69043473
10717fe6f68c4ee9bcf27ee62e89581f4a030b8e
/extractor/yinyuetai.py
f2d6b0987afa3d3aec66c8646cac574045296fd1
[]
no_license
HagerHosny199/Testing_Project
ff7f9a54b7a213c9d9ade0c5192845c2a29adc8b
9bc170263e239cc24ccfb2aa33b9913ff799ffe9
refs/heads/master
2020-05-17T20:57:01.750640
2019-05-08T22:13:06
2019-05-08T22:13:06
183,954,736
0
0
null
null
null
null
UTF-8
Python
false
false
1,906
py
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from utils import ExtractorError class YinYueTaiIE(InfoExtractor): IE_NAME = 'yinyuetai:video' IE_DESC = '音悦Tai' _VALID_URL = r'https?://v\.yinyuetai\.com/video(?:/h5)?/(?P<id>[0-9]+)' _TESTS = [{ 'url':...
[ "hagarhosny19@gmail.com" ]
hagarhosny19@gmail.com
dd14425012d9898f41e0b4d01a2bf77781ef2e0f
dc7cdeecb1ed52a7bdd18cd20c69aa43897f0830
/tests/test_client.py
30074fd13d9005482b77f433b0d3db42355a31fb
[ "MIT" ]
permissive
hurricane1260/wechatpy
421b0a27b78bbb3bcc33bc6e6685b6beacd55dde
0d7916e1a894f208dcea18b33803751166378c3d
refs/heads/master
2021-01-17T18:37:14.535895
2014-11-02T16:27:31
2014-11-02T16:27:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,581
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import os import unittest import six from httmock import urlmatch, HTTMock, response from wechatpy import WeChatClient from wechatpy._compat import json _TESTS_PATH = os.path.abspath(os.path.dirname(__file__)) _FIXTURE_PATH = os.path.jo...
[ "messense@icloud.com" ]
messense@icloud.com
8ed1681fc62924eb80b4530f47c9b3d96fe5780c
d4f1bd5e52fe8d85d3d0263ede936928d5811bff
/Python/Problem Solving/BOJ/boj4447.py
78b645da41f81e8c32a268b9227f79879a0f3d92
[]
no_license
ambosing/PlayGround
37f7d071c4402599995a50cac1e7f1a85c6d10dd
0d5262dbb2fa2128ecb3fd969244fa647b104928
refs/heads/master
2023-04-08T04:53:31.747838
2023-03-23T06:32:47
2023-03-23T06:32:47
143,112,370
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
for _ in range(int(input())): g_cnt = 0 b_cnt = 0 s = input() g_cnt = s.count("g") + s.count("G") b_cnt = s.count("b") + s.count("B") if g_cnt > b_cnt: print("%s is GOOD" % s) elif g_cnt < b_cnt: print("%s is A BADDY" % s) else: print("%s is NEUTRAL" % s)
[ "ambosing_@naver.com" ]
ambosing_@naver.com
437621c6e78ad2b8f5d18b9dee728605c4e2ab83
5b4fe473179b5fadaf59ec96d55b2ec4cb326f65
/test/runtime/frontend_test/chainer_test/deconvolution_2d_test.py
aefdcd02fcb65a69c034af9228ac2b131f2cd466
[ "Zlib", "MIT" ]
permissive
TarrySingh/webdnn
13d3f1ec4936916abacfb67e270f48571e2fcff2
b31b19de0798d8ca198b78d19cb06e4fce1bc260
refs/heads/master
2021-05-07T02:24:47.500746
2017-11-13T13:00:24
2017-11-13T13:00:24
110,582,816
0
1
null
2017-11-13T18:03:46
2017-11-13T18:03:46
null
UTF-8
Python
false
false
1,218
py
import chainer import numpy as np from test.util import generate_kernel_test_case, wrap_template from webdnn.frontend.chainer.converter import ChainerConverter @wrap_template def template(ksize=3, stride=1, pad=0, nobias=True, description=""): link = chainer.links.Deconvolution2D(4, 10, ksize=ksize, stride=strid...
[ "y.kikura@gmail.com" ]
y.kikura@gmail.com
b0929f0060f43e6b4f8c23bb6e328c6a8eba810c
00d7e9321d418a2d9a607fb9376b862119f2bd4e
/utils/html_listdir.py
95e8bd4b432f439975c4e5bad7b9591c6079d854
[ "MIT" ]
permissive
baluneboy/pims
92b9b1f64ed658867186e44b92526867696e1923
5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13
refs/heads/master
2021-11-16T01:55:39.223910
2021-08-13T15:19:48
2021-08-13T15:19:48
33,029,780
0
0
null
null
null
null
UTF-8
Python
false
false
898
py
#!/usr/bin/env python import os # customize as needed def is_hz_file(filename): return 'hz_' in filename def createHTML(input_dir, output_html, predicate=None): files = os.listdir(input_dir) files.sort(reverse=True) with open(output_html, "w") as f: f.write("<html><body><ul>\n") for f...
[ "ken@macmini3.local" ]
ken@macmini3.local
536c72531fb568599059bffe6a9f02954ffcda14
efdadd6e203b362531f342129040c592d4078936
/bin/wheel
9ae90fd44c2312bf46e13f0888ec161f5fac19d9
[]
no_license
rameshkonatala/ML_coursera
7ce57bc1d16f8de1258bbea49ff726145f7dea1b
6e7413e70da82932834dc88cd52d878f2b4d53da
refs/heads/master
2021-01-23T07:49:47.588761
2017-06-08T09:16:16
2017-06-08T09:16:16
86,448,418
0
0
null
null
null
null
UTF-8
Python
false
false
240
#!/home/ramesh/Desktop/ML_coursera/bin/python2 # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "konatalaramesh@gmail.com" ]
konatalaramesh@gmail.com
c04ae99a874b0f3d9592e05d4a459edae6af9a79
e4183adfc4ffc9ba7c464160d4fa1ccecdeb6b69
/scripts/gen_hcd_random.py
ef03523b1be0f9db297e4a755138cded9d5a1eef
[]
no_license
akrherz/LADOT
0013597e6ef26077b6db08d48cb9f5b4fb6b9d6c
a3a689429dea1713760378f0c353a3a8834abe0a
refs/heads/master
2016-09-05T15:53:58.668906
2015-11-02T21:00:38
2015-11-02T21:00:38
16,581,711
0
0
null
null
null
null
UTF-8
Python
false
false
7,136
py
""" Generate .hcd file for Pavement Design Guide YYYYMMDDHH,Temperature (F),Wind speed (mph),% Sun shine, Precipitation, Relative humidity. """ import math import numpy as np import netCDF4 import mx.DateTime import subprocess periods = [ [mx.DateTime.DateTime(1970,1,1), mx.DateTime.DateTime(1974,12,31)], [...
[ "akrherz@iastate.edu" ]
akrherz@iastate.edu
d62acf7a2f6c04a99d7d888c3b7f1b86e68b4223
1342deb03620f60f0e91c9d5b579667c11cb2d6d
/3rd/pil_test2.py
9bc143f0720b8aae2d5edb76b3fcd7307e3fd1a9
[]
no_license
ahuer2435/python_study
678501ff90a9fc403105bff7ba96bcf53c8f53e2
8a7cc568efefdc993c5738ffa2100c2e051acdb7
refs/heads/master
2021-01-15T18:00:43.851039
2018-04-04T05:37:50
2018-04-04T05:37:50
99,775,158
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
# -*- coding: utf-8 -*- import Image,ImageFilter im = Image.open("./test.jpg") im2 = im.filter(ImageFilter.BLUR) im2.save("./test2.jpg","jpeg") #使用ImageFilter模块使图像变模糊。
[ "18221079843@139.com" ]
18221079843@139.com
4b6ef532a08cccc3f197c7a8b880fd26edb0bc16
813b0d666d9ff31644814d35ab9ca26eab5b66e7
/demo/q_model_demo.py
4d1c01ebd1b49ce5269215c80ba9280443a1dd3b
[]
no_license
Seraphli/TankAI
81548c74868ed52b32972b9ae8cd39def1c2b4b8
79020201e07d90eb6cbfe542147252b668d65d1e
refs/heads/master
2020-04-05T11:57:48.251054
2018-11-01T09:02:32
2018-11-01T09:02:32
156,852,312
0
0
null
null
null
null
UTF-8
Python
false
false
2,566
py
from tank.env import Env from qlearn.q_learn import QLearn as AI from qlearn.state import State import numpy as np import time ai = AI('tank_test', 5, False) ai.epsilon = 0.01 ai.nn.load('./model') env = Env() for g_id in range(10): ai.logger.debug(f'=== Game start ===') end = env.reset() ai.logger.debug(f...
[ "seraphlivery@gmail.com" ]
seraphlivery@gmail.com
7701324dac2ab0297fab37a0659b155df30e6258
6df0d7a677129e9b325d4fdb4bbf72d512dd08b2
/PycharmProjects/my_python_v03/spider/pingpangball.py
5fb5d4dcbb27a14b8d00e96072d6a49500c5b795
[]
no_license
yingxingtianxia/python
01265a37136f2ad73fdd142f72d70f7c962e0241
3e1a7617a4b6552bce4a7e15a182f30e1bae221e
refs/heads/master
2021-06-14T15:48:00.939472
2019-12-13T05:57:36
2019-12-13T05:57:36
152,200,507
0
0
null
2021-06-10T20:54:26
2018-10-09T06:40:10
Python
UTF-8
Python
false
false
1,664
py
#!/usr/bin/env python3 #__*__coding: utf8__*__ import pygame from pygame.locals import * from sys import exit import random basket_x = 0 basket_y = 600 ball_x = 10 ball_y = 10 screen_width = 1000 screen_height = 800 score = 0 pygame.init() screen = pygame.display.set_mode((screen_width, screen_height)) pygame.displ...
[ "root@room8pc205.tedu.cn" ]
root@room8pc205.tedu.cn
b9b704a2706e4fbeac5baf13eb273c69a7d11a4f
0093f254452db5f88803ea628374fa3c7cb90a9b
/single_class_lab_start_code/team_class/tests/team_test.py
fe7333549c4587ffec356d8a197e2b1f2004ecec
[]
no_license
klamb95/classes_lab
571b7917a0e3e3b8d9935250df08b6e6328b27c8
7a450335b1c925372232c7b1631f62434cb32230
refs/heads/main
2023-03-30T21:46:04.600475
2021-04-05T14:47:39
2021-04-05T14:47:39
354,841,095
0
1
null
null
null
null
UTF-8
Python
false
false
1,954
py
import unittest from src.team import Team class TestTeam(unittest.TestCase): def setUp(self): players = ["Derice Bannock", "Sanka Coffie", "Junior Bevil", "Yul Brenner"] self.team = Team("Cool Runnings", players, "Irv Blitzer") #@unittest.skip("delete this line to run the test") def test_t...
[ "klamb1995@gmail.com" ]
klamb1995@gmail.com
082e25c98d24038da1c0d418b1754b577b7e5b3f
d3b77550a40b860970450e702b6bcd28d5f9b3e4
/LeetCode/code_night/reverse_string.py
ea53e4669e81124fafeac0940165a0e8030ec430
[]
no_license
CateGitau/Python_programming
47bc9277544814ad853b44a88f129713f1a40697
6ae42b3190134c4588ad785d62e08b0763cf6b3a
refs/heads/master
2023-07-08T03:08:46.236063
2021-08-12T09:38:03
2021-08-12T09:38:03
228,712,021
1
0
null
null
null
null
UTF-8
Python
false
false
246
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Feb 8 03:58:29 2020 @author: aims """ text = ["h","e","l","l","o"] i = 0 j = len(text)- 1 while i<j: text[i], text[j] = text[j], text[i] i+=1 j-=1 print(text)
[ "catherinegitau94@gmail.com" ]
catherinegitau94@gmail.com
9a0e5d2e12de67097ad5e464ddf79e47e12149f5
f1238c2f2079cd4fdf63cf47fe8a389f77d256fc
/homeassistant/helpers/event.py
3934a6c52ef9f55cbcfb2c63a0aa2a02d2371b39
[ "MIT" ]
permissive
williamluke4/home-assistant
2d305b7133303829c38946bf5b1a626e46488d61
2e899bd61c0ff5ae4d576ff3cb8413fc90534e43
refs/heads/dev
2023-04-07T01:26:13.029469
2016-01-04T02:39:21
2016-01-04T02:39:21
48,983,167
0
0
MIT
2023-04-03T23:42:14
2016-01-04T08:09:21
Python
UTF-8
Python
false
false
5,557
py
""" Helpers for listening to events """ import functools as ft from ..util import dt as dt_util from ..const import ( ATTR_NOW, EVENT_STATE_CHANGED, EVENT_TIME_CHANGED, MATCH_ALL) def track_state_change(hass, entity_ids, action, from_state=None, to_state=None): """ Track specific s...
[ "paulus@paulusschoutsen.nl" ]
paulus@paulusschoutsen.nl
18187ad1700d5c8dae585133239b763f6a402a8d
c4a57dced2f1ed5fd5bac6de620e993a6250ca97
/huaxin/huaxin_restful_service/restful_xjb_service/v1_services_account_matchsalarycard_entity.py
c33344a6c2cb1dc4e942635adb7d56ee975d07c7
[]
no_license
wanglili1703/firewill
f1b287b90afddfe4f31ec063ff0bd5802068be4f
1996f4c01b22b9aec3ae1e243d683af626eb76b8
refs/heads/master
2020-05-24T07:51:12.612678
2019-05-17T07:38:08
2019-05-17T07:38:08
187,169,391
0
0
null
null
null
null
UTF-8
Python
false
false
1,748
py
import json from code_gen.lib.basic_troop_service_entity_handler import BasicTroopServiceEntityHandler DOMAIN_NAME = u'10.199.111.2' URL = u'http://%s/V1/services/account/matchSalaryCard' BODY_DATA = u'{}' _BODY_DATA = '' if BODY_DATA: _BODY_DATA = json.loads(BODY_DATA) QUERY_DATA = '' METHOD_TYPE = u'post' CONTEN...
[ "wanglili@shhxzq.com" ]
wanglili@shhxzq.com
7f0e2f52088c6e75b7368d2a10b3685d21df0cfd
af6e7f0927517375cb4af833f4c52e301bad0af5
/corpus_processor/topic_aware/filter_qa_corpus_by_douban_tags.py
92a050d0aef2a7f2289a7de7ace4392858d4757f
[]
no_license
wolfhu/DialogPretraining
470334fd815e1299981b827fdc933d237a489efd
eeeada92146d652d81ca6e961d1298924ac8435d
refs/heads/main
2023-06-25T15:22:54.728187
2021-07-21T01:40:23
2021-07-21T01:40:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,889
py
# encoding: utf-8 import sys import json from util.trie import Trie douban_tag_file_path = '/home/t-yuniu/xiaoice/yuniu/dataset/douban_title/douban_title.json' tag_black_dict = {} tag_black_dict.setdefault('游戏', True) tag_trie = Trie() def detect_tag(sentence): """ Judge if sentence contain as least a ta...
[ "yuwu1@microsoft.com" ]
yuwu1@microsoft.com
4a223198785e6cf114ac528d49f2445079b91eae
392e81cad1a563eb3a63c38e4d32782b14924cd2
/openregistry/lots/loki/tests/blanks/transferring.py
0775b6747de9ab5526e2e8d09bc6479b4f081441
[ "Apache-2.0" ]
permissive
EBRD-ProzorroSale/openregistry.lots.loki
8de71ee4e6a0db5f3fb6e527658722f7a664fc1a
178768ca5d4ffefa428740502bce0ef48d67aa61
refs/heads/master
2020-09-29T17:57:00.696627
2019-06-25T09:07:22
2019-06-25T09:07:22
227,088,853
0
0
Apache-2.0
2019-12-10T10:19:08
2019-12-10T10:19:07
null
UTF-8
Python
false
false
1,028
py
# -*- coding: utf-8 -*- def switch_mode(self): # set test mode and try to change ownership auth = ('Basic', (self.first_owner, '')) self.__class__.resource_name = self.resource_name resource = self.create_resource(auth=auth) resource_access_transfer = self.resource_transfer self.__class__.re...
[ "leitsius@gmail.com" ]
leitsius@gmail.com
5478e186191f05f9c3c4401549ee3ff8e1687157
d308fffe3db53b034132fb1ea6242a509f966630
/pirates/effects/HitStar.py
be3298d218d9fc5e5af3d31213510d77d2b026f3
[ "BSD-3-Clause" ]
permissive
rasheelprogrammer/pirates
83caac204965b77a1b9c630426588faa01a13391
6ca1e7d571c670b0d976f65e608235707b5737e3
refs/heads/master
2020-03-18T20:03:28.687123
2018-05-28T18:05:25
2018-05-28T18:05:25
135,193,362
3
2
null
null
null
null
UTF-8
Python
false
false
4,103
py
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.effects.HitStar from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from direct.particles import Part...
[ "33942724+itsyaboyrocket@users.noreply.github.com" ]
33942724+itsyaboyrocket@users.noreply.github.com
2bced5615b9527f6da87e4a188c01cf1caa2d008
49536aafb22a77a6caf249c7fadef46d63d24dfe
/tensorflow/tensorflow/python/ops/bitwise_ops_test.py
a54f76c6da8a73255621281de950eac643a22a4e
[ "Apache-2.0" ]
permissive
wangzhi01/deeplearning-1
4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d
46ab82253d956953b8aa98e97ceb6cd290e82288
refs/heads/master
2020-05-28T03:14:55.687567
2018-09-12T16:52:09
2018-09-12T16:52:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,208
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...
[ "hanshuobest@163.com" ]
hanshuobest@163.com
a80ff9f1386aa36409ab1e29afa7136b24ce7cf5
8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4
/pyobjc-framework-UserNotifications/PyObjCTest/test_unnotificationcontent.py
07f1f32f52d7b614a570c4574cae012390965548
[ "MIT" ]
permissive
strogo/pyobjc
ac4201c7742eb75348328eeecb7eedf4e3458de3
2579c5eaf44b0c5af77ee195c417d2c65e72dfda
refs/heads/master
2023-07-13T00:41:56.448005
2021-08-24T06:42:53
2021-08-24T06:42:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
884
py
from PyObjCTools.TestSupport import TestCase, min_sdk_level, min_os_level import UserNotifications import objc class TestUNNotificationContent(TestCase): def test_constants(self): self.assertEqual(UserNotifications.UNNotificationInterruptionLevelPassive, 0) self.assertEqual(UserNotifications.UNNot...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
bfd02018abdd0ca950150f959ccfe9a90d5e08e0
cc95bf6a35fa6e17cfc87867a531b1fc01f1e49a
/py/rsync_dash_changes/rsync_dash_changes.py
2ae7a019127a9344351854c81892bc3f466289a9
[]
no_license
SMAPPNYU/smapputil
d88d9c65c79afd6a65f7cb991c09015f53ccff0a
242a541c1e8687e003c37f1807a92112423b40d6
refs/heads/master
2023-01-04T03:09:34.725955
2019-06-25T15:37:07
2019-06-25T15:37:07
50,049,153
7
3
null
2022-12-26T20:24:55
2016-01-20T18:01:30
Python
UTF-8
Python
false
false
4,010
py
import os, sys, csv import logging import paramiko import argparse import subprocess from os.path import expanduser def paramiko_list_crontab(collector_machine, username, key): logger = logging.getLogger(__name__) # login to paramiko and list the crontab ssh = paramiko.SSHClient() ssh.load_system_hos...
[ "yvanscher@gmail.com" ]
yvanscher@gmail.com
a174ee4171661f8f51a4134585318720494b7f9c
870639af1487cf59b548f56c9cd1a45928c1e2c2
/homeassistant/components/renault/const.py
2a0ea3a0d491d12cc02ae3fb6c36daf208f1c918
[ "Apache-2.0" ]
permissive
atmurray/home-assistant
9f050944d26c084f8f21e8612a7b90c0ae909763
133cb2c3b0e782f063c8a30de4ff55a5c14b9b03
refs/heads/dev
2023-03-19T04:26:40.743852
2021-11-27T05:58:25
2021-11-27T05:58:25
234,724,430
2
0
Apache-2.0
2023-02-22T06:18:36
2020-01-18T11:27:02
Python
UTF-8
Python
false
false
826
py
"""Constants for the Renault component.""" from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN from homeassistant.components.button import DOMAIN as BUTTON_DOMAIN from homeassistant.components.device_tracker import DOMAIN as DEVICE_TRACKER_DOMAIN from homeassistant.components.select import...
[ "noreply@github.com" ]
atmurray.noreply@github.com
c167a5ed864f0c71faeaa6557cdedbd3318036e3
bb970bbe151d7ac48d090d86fe1f02c6ed546f25
/arouse/_dj/db/models/sql/datastructures.py
8cd5c8082763c6c5b5c61f9a8c74fca055a950b4
[ "Python-2.0", "BSD-3-Clause" ]
permissive
thektulu/arouse
95016b4028c2b8e9b35c5062a175ad04286703b6
97cadf9d17c14adf919660ab19771a17adc6bcea
refs/heads/master
2021-01-13T12:51:15.888494
2017-01-09T21:43:32
2017-01-09T21:43:32
78,466,406
0
0
null
null
null
null
UTF-8
Python
false
false
5,623
py
""" Useful auxiliary data structures for query construction. Not useful outside the SQL domain. """ from arouse._dj.db.models.sql.constants import INNER, LOUTER class EmptyResultSet(Exception): pass class MultiJoin(Exception): """ Used by join construction code to indicate the point at which a multi...
[ "michal.s.zukowski@gmail.com" ]
michal.s.zukowski@gmail.com
df53c41904066323666c62a3aee1435fa56e1656
1577e1cf4e89584a125cffb855ca50a9654c6d55
/pyobjc/pyobjc/pyobjc-framework-Cocoa-2.5.1/Examples/Twisted/WebServicesTool/Main.py
03773e75ad513f0b55d85bedd372b220d75cb187
[ "MIT" ]
permissive
apple-open-source/macos
a4188b5c2ef113d90281d03cd1b14e5ee52ebffb
2d2b15f13487673de33297e49f00ef94af743a9a
refs/heads/master
2023-08-01T11:03:26.870408
2023-03-27T00:00:00
2023-03-27T00:00:00
180,595,052
124
24
null
2022-12-27T14:54:09
2019-04-10T14:06:23
null
UTF-8
Python
false
false
299
py
import sys from PyObjCTools import AppHelper from twisted.internet._threadedselect import install reactor = install() # import classes required to start application import WSTApplicationDelegateClass import WSTConnectionWindowControllerClass # pass control to the AppKit AppHelper.runEventLoop()
[ "opensource@apple.com" ]
opensource@apple.com
6f42b29f6189ff7c8f8ff3c4b7144ce247a6c9d6
131cf803a1f7b9638ab0a604d61ab2de22906014
/tests/system/_test_send_data_log.py
9de000f4cc9269b98beb90050bb6822169108554
[ "Apache-2.0" ]
permissive
dimensigon/dimensigon
757be1e61e57f7ce0a610a9531317761393eaad0
079d7c91a66e10f13510d89844fbadb27e005b40
refs/heads/master
2023-03-09T06:50:55.994738
2021-02-21T11:45:01
2021-02-21T11:45:01
209,486,736
2
0
Apache-2.0
2021-02-26T02:59:18
2019-09-19T07:11:35
Python
UTF-8
Python
false
false
7,017
py
import os import time from asynctest import patch, TestCase from testfixtures import LogCapture from dimensigon.domain.entities.log import Log from dimensigon.utils.helpers import encode from dimensigon.web import create_app, repo, interactor from tests.helpers import set_response_from_mock, wait_mock_called from tes...
[ "joan.prat@knowtrade.eu" ]
joan.prat@knowtrade.eu
70bd17e954d28ddca64b7dd70aeef2d4453d70f9
bb876209ee0dd24e0e8703776993ddae574ab2e5
/scheduler/models.py
9c07645aebb37f7d8df20ca56a431bd48cf57a5d
[]
no_license
VBGI/scheduler
76e382e50198749f458e0ca42801c509c1223c5e
bab7994499399b00f5132950a8a8c15ae5f2725b
refs/heads/master
2020-12-25T14:12:42.235567
2019-05-28T23:30:45
2019-05-28T23:30:45
61,006,849
0
0
null
null
null
null
UTF-8
Python
false
false
3,837
py
#coding: utf-8 import datetime from django.db import models from django.utils import timezone from django.utils.translation import gettext as _ from cms.models.pluginmodel import CMSPlugin from django.contrib.auth import get_user_model import uuid class ScheduleName(models.Model): name = models.CharField(max_l...
[ "kislov@easydan.com" ]
kislov@easydan.com
eea43de376cb897b20a61bb982a7b05e4f2fae81
453ca12d912f6498720152342085636ba00c28a1
/leetcode/design/python/moving_average_from_data_stream.py
55d1641ad0ec216e4ab718f3c23ae61e9a5ad5d4
[]
no_license
yanbinkang/problem-bank
f9aa65d83a32b830754a353b6de0bb7861a37ec0
bf9cdf9ec680c9cdca1357a978c3097d19e634ae
refs/heads/master
2020-06-28T03:36:49.401092
2019-05-20T15:13:48
2019-05-20T15:13:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,052
py
""" https://leetcode.com/problems/moving-average-from-data-stream/ Given a stream of integers and a window size, calculate the moving average of all integers in the sliding window. Example: MovingAverage m = new MovingAverage(3); m.next(1) = 1 m.next(10) = (1 + 10) / 2 m.next(3) = (1 + 10 + 3) / 3 m.next(5) = (10 + ...
[ "albert.agram@gmail.com" ]
albert.agram@gmail.com
eca07cb004b4613516ccb414988d5bb9a8e160c7
6a253ee7b47c5f70c826bbc97bb8e33cd1dab3b6
/1.Working with Big Data/Filtering WDI data in chunks.py
47f95bac4b95fdcdf114f490697e9b72817d33e9
[]
no_license
Mat4wrk/Parallel-Programming-with-Dask-in-Python-Datacamp
19a646d6d16ff46173964c25639ff923407c8f32
535f69b78adb50cffc7f402f81ddff19f853eea1
refs/heads/main
2023-03-06T19:52:39.495066
2021-02-13T13:27:06
2021-02-13T13:27:06
338,565,569
2
0
null
null
null
null
UTF-8
Python
false
false
447
py
# Create empty list: dfs dfs = [] # Loop over 'WDI.csv' for chunk in pd.read_csv('WDI.csv', chunksize=1000): # Create the first Series is_urban = chunk['Indicator Name']=='Urban population (% of total)' # Create the second Series is_AUS = chunk['Country Code']=='AUS' # Create the filtered chunk: f...
[ "noreply@github.com" ]
Mat4wrk.noreply@github.com
cf384d5aaa2c2e59d5a966f204789d3d44decda4
20c20938e201a0834ccf8b5f2eb5d570d407ad15
/abc010/abc010_3/8100691.py
6ae85719796706bdbb385f17a52778fd58ebedee
[]
no_license
kouhei-k/atcoder_submissions
8e1a1fb30c38e0d443b585a27c6d134bf1af610a
584b4fd842ccfabb16200998fe6652f018edbfc5
refs/heads/master
2021-07-02T21:20:05.379886
2021-03-01T12:52:26
2021-03-01T12:52:26
227,364,764
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
tmp = list(map(int, input().split())) t = [[tmp[0], tmp[1]], [tmp[2], tmp[3]]] T = tmp[4] V = tmp[5] n = int(input()) home = [list(map(int, input().split())) for i in range(n)] def dis(a, b, c, d): return (abs(c-a)**2 + abs(d-b)**2)**0.5 for i in range(n): tmp = 0 d = dis(t[0][0], t[0][1], home[i][0], h...
[ "kouhei.k.0116@gmail.com" ]
kouhei.k.0116@gmail.com
c1bef48cd261ed57b3cab96e4aa30c381dbf94b6
53ae656e1e06c6ef46e2222043ae49b0c005218c
/pdfstream/callbacks/composer.py
2641a2f65fd3d93d93d5f9958c9cb420c9a19b2f
[ "BSD-3-Clause" ]
permissive
st3107/pdfstream
de5e6cedec0f4eb034dc7a8fec74f0dd773d6260
6e1829d889e5f5400386513efe993ad0596da8a5
refs/heads/master
2023-02-15T21:13:56.288827
2021-01-14T01:02:39
2021-01-14T01:02:39
315,751,081
0
0
BSD-3-Clause
2020-11-24T20:59:20
2020-11-24T20:59:20
null
UTF-8
Python
false
false
1,805
py
"""Event model run composer from files.""" import time import typing as tp import uuid import numpy as np from event_model import compose_run, ComposeDescriptorBundle def gen_stream( data_lst: tp.List[dict], metadata: dict, uid: str = None ) -> tp.Generator[tp.Tuple[str, dict], None, None]: """Genera...
[ "st3107@columbia.edu" ]
st3107@columbia.edu
e2be5f3aac3643696d95714676176f061a50f3d0
f195c155cea434ec4f300f149ee84ecb3feb3cbc
/2019/08 August/dp08252019.py
2ae41c879f7eaf13b9d1ccef4c4acab76f43bf91
[ "MIT" ]
permissive
ourangzeb/DailyPracticeProblemsDIP
7e1491dbec81fa88e50600ba1fd44677a28559ad
66c07af88754e5d59b243e3ee9f02db69f7c0a77
refs/heads/master
2022-04-08T15:51:06.997833
2020-02-24T05:51:11
2020-02-24T05:51:11
257,056,516
1
0
MIT
2020-04-19T17:08:23
2020-04-19T17:08:22
null
UTF-8
Python
false
false
1,223
py
# This problem was recently asked by Google: # You are given a hash table where the key is a course code, and the value is a list of all the course codes # that are prerequisites for the key. Return a valid ordering in which we can complete the courses. # If no such ordering exists, return NULL. import operator def ...
[ "vishrutkmr7@gmail.com" ]
vishrutkmr7@gmail.com
97b49a82997a7b5e9e070a347ec462d9e32909cc
3d8871ed3dc79f47c2972b6169f1e7d169276a5e
/tests/examples/test_sirs.py
8fcf1d9fdddde4e61ec4970d2f89f6c639ef1220
[ "MIT" ]
permissive
clprenz/de_sim
70bb19af92cc611e2ba0ab8578aed1300d4cd148
3944a1c46c4387a78e1c412d760b7f6ade27a1c0
refs/heads/master
2022-11-18T14:27:50.033529
2020-07-15T19:54:40
2020-07-15T19:54:40
280,269,848
0
0
MIT
2020-07-16T22:15:47
2020-07-16T22:15:46
null
UTF-8
Python
false
false
2,906
py
""" Test SIR model :Author: Arthur Goldberg <Arthur.Goldberg@mssm.edu> :Date: 2020-07-09 :Copyright: 2020, Karr Lab :License: MIT """ import unittest import random import warnings from capturer import CaptureOutput from de_sim.examples.sirs import SIR, SIR2, RunSIRs class TestSIRs(unittest.TestCase): """ Test ...
[ "artgoldberg@gmail.com" ]
artgoldberg@gmail.com
84574100863381fff6d24ce33e761d3e93026164
bce797646db81b18625f71bb7427de2ff3c006fc
/core/db/mongo_pool.py
eb6fe4d32e0aa23fdf8f642ad7b512c1263a54d8
[]
no_license
lihaineng/IPProxyPool
3389cd437e80997d3f4bab4c96f9ada77d859d51
46818b454fc9e8422fc3fd459288a8b755653315
refs/heads/master
2020-04-26T07:20:37.676838
2019-03-04T08:12:54
2019-03-04T08:12:54
173,387,841
0
0
null
null
null
null
UTF-8
Python
false
false
5,199
py
import random import pymongo from pymongo import MongoClient from domain import Proxy from settings import MONGO_URL from utils.log import logger class MongodbPool(object): def __init__(self): # 1.1. 在init中, 建立数据连接 self.client = MongoClient(MONGO_URL) # 1.2 获取要操作的集合 self.proxies...
[ "123456@qq.com" ]
123456@qq.com
49e6ceb93b732efc5346d3b2ccd762bd11f2c49b
a3385f7636ceb232e97ae30badee0ba9145138f8
/egs/thchs30/s5/local/dae/add-noise-mod.py
8327fc325ee911b1c8db5ca3c470637e82c131fa
[ "Apache-2.0" ]
permissive
samsucik/prosodic-lid-globalphone
b6a6ccdcece11d834fc89abaa51031fc9f9e37e1
ca6a8e855441410ab85326d27b0f0076d48d3f33
refs/heads/master
2022-11-29T09:17:24.753115
2021-02-03T18:17:16
2021-02-03T18:17:16
149,014,872
3
2
Apache-2.0
2022-09-23T22:17:01
2018-09-16T16:38:53
Shell
UTF-8
Python
false
false
4,788
py
#!/usr/bin/env python # Copyright 2016 Tsinghua University (Author: Chao Liu, Dong Wang). Apache 2.0. from __future__ import print_function import optparse import random import bisect import re import logging import wave import math import struct import sys import os try: import pyximport; pyximport.install() ...
[ "s1531206@ed.ac.uk" ]
s1531206@ed.ac.uk
3b0048baefe9388272b2c05c43ada7d692e0f571
8e235a4ba4521497dd0ef66630ed47cbdf0f7bc7
/fixed_headers.py
b4d7ee7aad48fc2f9ccd6aabbe084ed42a00894b
[]
no_license
albertogeniola/mqtt_dissector
86264b681845dc362b2f8e65664a84e35e20a4f8
4e75db9ae64fbe3e4ff0a2f9ac21280b4f41b748
refs/heads/master
2021-06-04T07:54:53.106429
2020-11-14T12:26:01
2020-11-14T12:26:01
148,671,707
0
0
null
null
null
null
UTF-8
Python
false
false
3,204
py
from myutils import Byte from protocol_constants import ControlType, QoS class FixedHeader(object): length = 2 # Fixed length of 2 bytes! def __init__(self): self.control_packet_type = None self.flags = 0 self.formatted_flags = None # The Remaining Length is the number of by...
[ "albertogeniola@gmail.com" ]
albertogeniola@gmail.com
fa5a0eb88b53a58cab15123043cbd54786388e40
9737a5e2cfe5521bb9731a356a7639d0dc3692de
/notes/week_2_netmiko/test_config.py
fe1ca580d2ec30f7c565cc3470cef141dc96fe08
[]
no_license
akushnirubc/pyneta
5c53cbcf42e2450ce6a2d7e6591d671661e84ba0
ee68205c0b91974ea1cd79b8c06c36ae083fb02c
refs/heads/main
2023-06-18T18:02:56.242732
2021-07-13T21:43:51
2021-07-13T21:43:51
358,647,513
0
0
null
2021-05-24T21:39:18
2021-04-16T15:45:34
JavaScript
UTF-8
Python
false
false
533
py
from netmiko import ConnectHandler from getpass import getpass device1 = { "host": 'cisco1.lasthop.io', "username": 'pyclass', "password": getpass(), "device_type": 'cisco_ios', #"session_log": 'my_session.txt', } net_connect = ConnectHandler(**device1) print(net_connect.find_prompt()) # cfg ...
[ "alex.kushnir@ubc.ca" ]
alex.kushnir@ubc.ca
dd0af2b2f00b6883dce700c511427c06c56b72bd
94f584fb8ed0a0d23c8a03fe402e4cfcd57aa956
/slurm/2.import_sentences.py
98b11a8414869cff07649eb55521617afbd60dd8
[]
no_license
vsoch/neurosynth-nlp
3627b198cfea20848048bc9ee30e24429385c31f
f63adcae79744b9058e4be7a2a7125ddbb647076
refs/heads/master
2020-12-24T12:02:21.993536
2015-10-10T00:12:17
2015-10-10T00:12:17
41,841,095
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
#!/usr/bin/python # This script will read in the output, and import each into the sentences table import os from glob import glob output_base = '/work/02092/vsochat/wrangler/DATA/NEUROSYNTH-NLP/corenlp/extractions' # Get number of text files with input input_files = glob("%s/*.txt" %output_base) # load the data in...
[ "vsochat@stanford.edu" ]
vsochat@stanford.edu
866cf44e2a88e0a9cd27070016c9e3e5cf2036ea
7a20dac7b15879b9453150b1a1026e8760bcd817
/Curso/ExMundo3/Ex080Listas3AdicionandoValores.py
ec1132f3bf525b6dd536f9554c873009a610d01b
[ "MIT" ]
permissive
DavidBitner/Aprendizado-Python
7afbe94c48c210ddf1ab6ae21109a8475e11bdbc
e1dcf18f9473c697fc2302f34a2d3e025ca6c969
refs/heads/master
2023-01-02T13:24:38.987257
2020-10-26T19:31:22
2020-10-26T19:31:22
283,448,224
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
lista = [] for cont in range(0, 5): n = int(input('Digite um valor: ')) if cont == 0 or n > lista[-1]: lista.append(n) print('Valor adicionado ao fim da lista...') else: pos = 0 while pos < len(lista): if n <= lista[pos]: lista.insert(pos, n) ...
[ "david-bitner@hotmail.com" ]
david-bitner@hotmail.com
5ab8fd2d4d54815e373fb20810c273cf56ce74d7
b7853adb67d24f2ee5134f87f15eb353553f9af9
/lighter/coal_and_stick/trainer_events/trainer_event.py
2344c8b9500d1f14b1163b6f7f631b86715f998c
[ "Apache-2.0" ]
permissive
susautw/lighter
cc1422646c134226049d2f4063ab6f7d618f3215
5f78e5ba595f84805fd428a5086d5566e27cb55d
refs/heads/master
2020-08-07T23:14:34.283568
2019-10-21T05:00:36
2019-10-21T05:00:36
213,618,861
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
from .. import BaseTrainer from ...events import Event class TrainerEvent(Event): def __init__(self, trainer: BaseTrainer): super().__init__(trainer)
[ "susautw@gmail.com" ]
susautw@gmail.com
6991f98fb07f2dd43df9226c30b6f54d6678bf42
600cc377329781ab01466fe7a27ec1653a2c77bb
/app/exceptions.py
175762a8f415d8b62fec4df328dcb8cef023233e
[]
no_license
volitilov/Flask_microblog
3efa83f6a34eebc1fcdf7b4ba4519d398503e159
7769628d622508b16c9e42aad00109bdd4e36167
refs/heads/master
2022-12-12T22:54:28.070099
2018-09-16T11:54:52
2018-09-16T11:54:52
104,367,584
0
0
null
2022-12-08T02:08:08
2017-09-21T15:44:01
Python
UTF-8
Python
false
false
223
py
# app/exceptions.py # # ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: # ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: class ValidationError(ValueError): pass
[ "volitilov@gmail.com" ]
volitilov@gmail.com
cda70d98d6053a2d048b93d31ef5d48ebfdf681b
dc7dc1ab85403a4467044d4c0c936c17fff5225a
/fstmerge/examples/Fail2ban/rev579-759/right-branch-759/server/transmitter.py
4462e1f90f9eefa96e14a0509562cea26dfe7726
[]
no_license
RoDaniel/featurehouse
d2dcb5f896bbce2c5154d0ba5622a908db4c5d99
df89ce54ddadfba742508aa2ff3ba919a4a598dc
refs/heads/master
2020-12-25T13:45:44.511719
2012-01-20T17:43:15
2012-01-20T17:43:15
1,919,462
0
0
null
null
null
null
UTF-8
Python
false
false
6,943
py
__author__ = "Cyril Jaquier" __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2010-07-25 12:46:29 $" __copyright__ = "Copyright (c) 2004 Cyril Jaquier" __license__ = "GPL" import logging, time logSys = logging.getLogger("fail2ban.comm") class Transmitter: def __init__(self, server): self.__server = se...
[ "joliebig" ]
joliebig
9a2d672646bb8506167150dd31ba1b5a6c03ecfe
62c171e0b3890d69a220353ca7c9419d2e265de1
/django_app/introduction_to_models/migrations/0011_auto_20170607_0600.py
27261ec4a0b474e11d81c4e641f9e613fecccdac
[]
no_license
fcdjangostudy/documentation
45c07f22ab88d49849bb72374c1772eb10f74533
b7bfc047e288227352c7c06e061367c4ea8e742d
refs/heads/master
2021-01-24T07:42:30.867343
2017-06-08T05:08:42
2017-06-08T05:08:42
93,354,738
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-06-07 06:00 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('introduction_to_models', '0010_student_teacher'), ] operations = [ migratio...
[ "gaius827@gmail.com" ]
gaius827@gmail.com
c753e9cfdf6dfe85da40b9bf8ae6beb439530e7f
2805e59cd84d1535e405183a43990f327b0838c9
/2020/day7/day7.py
74bcb03ab6a71db25889c368fdb073ba2bde2452
[]
no_license
nthistle/advent-of-code
b1ff4ae2646228fea59913c2878f26c9ae38444e
7950850b77da77c1c2a4ca15c10f793c60e7ec73
refs/heads/master
2023-01-24T12:04:09.433385
2022-12-25T10:30:37
2022-12-25T10:30:37
160,138,710
29
12
null
null
null
null
UTF-8
Python
false
false
793
py
import regex nums_regex = regex.compile("((?P<nums>\\d+)([^\\d]*))*") def nums(s): m = nums_regex.match(s) vals = m.capturesdict()["nums"] return [int(x) for x in vals] # yeah, i know this should be dfs but valid = set() last_len = -1 while len(valid) != last_len: last_len = len(valid) for color ...
[ "11429656+nthistle@users.noreply.github.com" ]
11429656+nthistle@users.noreply.github.com
1470565acd9a215c3e26945dd322f9f728fd44ba
d6aa13cb1021773d88e2ef780bc4450b38455644
/apex/contrib/conv_bias_relu/conv_bias_relu.py
c873ebe1c60bbc3d5bc7a9bed06b0f6026cde230
[ "BSD-3-Clause" ]
permissive
NVIDIA/apex
f54a9ced5d8b1c14f777e6bb53f11b3dc3ff2d6b
7995de18677295c5edeeab082179edbfdb6ee16a
refs/heads/master
2023-08-21T13:25:44.408616
2023-08-19T04:36:48
2023-08-19T04:36:48
130,725,814
7,932
1,381
BSD-3-Clause
2023-09-13T16:09:42
2018-04-23T16:28:52
Python
UTF-8
Python
false
false
3,336
py
import pdb import torch from torch.autograd import gradcheck from apex import check_cudnn_version_and_warn import fused_conv_bias_relu check_cudnn_version_and_warn(__name__, 8400) class ConvBiasReLU_(torch.autograd.Function): @staticmethod @torch.cuda.amp.custom_fwd(cast_inputs=torch.half) def forward(...
[ "noreply@github.com" ]
NVIDIA.noreply@github.com
f36cd201e2b22989f917f1c86478122f8d4bc944
b580fd482147e54b1ca4f58b647fab016efa3855
/host_im/mount/malware-classification-master/samples/not/sample_good305.py
61286ed7edec8a126ec2feaab96109f978f73237
[]
no_license
Barnsa/Dissertation
1079c8d8d2c660253543452d4c32799b6081cfc5
b7df70abb3f38dfd446795a0a40cf5426e27130e
refs/heads/master
2022-05-28T12:35:28.406674
2020-05-05T08:37:16
2020-05-05T08:37:16
138,386,344
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
import difflib import textwrap import random nterms = 210 n1, n2 = 0, 1 if nterms <= 0: print("Please provide a positive integer.") elif nterms == 1: print("Fibonacci sequence upto", nterms, ":") print(n1) else: print("Fibonacci sequence:") count = 0 while 0 is True and 0 < 210: print(n1) nth = n1 + n2 n1 =...
[ "barnsa@uni.coventry.ac.uk" ]
barnsa@uni.coventry.ac.uk
3518f1fa23fd1883fbffe373f737a23500137da8
30d5b6876c3ae8d792525aa1f61de7ce7fc2c1ca
/download.py
3f9672ee8abdbc14089a1cb70e143f920e7aa9b2
[]
no_license
codeinthehole/pyvideo2quicktime
3b498277a8e7c7633e77791c0a595dbaf804ef8d
0e4fd7fd6cd20a163e1f7e5c1ba8c801d007f35a
refs/heads/master
2021-01-22T11:10:37.697696
2013-03-20T09:37:31
2013-03-20T09:37:31
3,751,112
3
1
null
null
null
null
UTF-8
Python
false
false
1,353
py
from urlparse import urlparse, parse_qs import os def download(youtube_url, filename): foldername = 'quicktime' if not os.path.exists(foldername): os.mkdir(foldername) notify('Downloading %s (%s)' % (youtube_url, filename)) flv_filename = download_video(youtube_url) m4v_filepath = '%s/%s.m...
[ "david.winterbottom@gmail.com" ]
david.winterbottom@gmail.com
0ffa0f53ff82464df6d214d3fe81c5e9e8e5c6e8
3dcc44bf8acd3c6484b57578d8c5595d8119648d
/pdb_to_psipred_ss2.py
dd09d3224514a6565329d7f20d555550d90f8e17
[]
no_license
rhiju/rhiju_python
f0cab4dfd4dd75b72570db057a48e3d65e1d92c6
eeab0750fb50a3078a698d190615ad6684dc2411
refs/heads/master
2022-10-29T01:59:51.848906
2022-10-04T21:28:41
2022-10-04T21:28:41
8,864,938
0
3
null
null
null
null
UTF-8
Python
false
false
1,545
py
#!/usr/bin/python #Adapted from phil bradley's make_coords_file.py # Rhiju, Feb 2006. import string import sys from os import popen,system import pdb if len(sys.argv) !=3: print '\n'+'-'*75 print 'Usage: %s <pdb> <chain> > <coords_file>' print '-'*75+'\n\n' assert 0==1 pdb_file = sys.argv[1] chain =...
[ "rhiju@stanford.edu" ]
rhiju@stanford.edu
dbeeca429a6289fb3a9b68ce852f30c266ab920f
a2e638cd0c124254e67963bda62c21351881ee75
/Extensions/AMWIDealTaker/FPythonCode/FFpMLACMDeriveInstrumentType.py
b9bce2f1668eae45e83a2ac2b9b213dadaacaa39
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,982
py
"""------------------------------------------------------------------------ MODULE FFpMLACMDeriveInstrumentType - DESCRIPTION: This file is used to infer the instrument type that needs to be created for an incoming FpML if the productType details are not present in the FpML VERSION: 1.0.30 RESTRICTIONS/ LIMITAT...
[ "nencho.georogiev@absa.africa" ]
nencho.georogiev@absa.africa
7b28138416d72a200b73e445b541f3f762da16a2
164c059989934bca6943df15552c5dc5e6b6dbbd
/src/run_extractquerylog.py
1e58861ee31a93bdefab9a080953fe2b99c7f6c1
[]
no_license
afcarl/densequery2vec
a9674987d49aa3deb67cccfa14eb9ae5edd915de
7196e5a6676776681e436d5d53e388ddf70227af
refs/heads/master
2020-03-22T10:19:48.318129
2014-07-17T13:56:39
2014-07-17T13:56:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
#coding=cp936 import os files = os.listdir('/data2011/d3/uigs/2012/201204') fout = open('runall.sh','w') for f in files: print f fout.write('nohup python extractquerylog.py '+f+' > ../data/log/'+f+'.log &\n') fout.close()
[ "luochengleo@gmail.com" ]
luochengleo@gmail.com
047ddfc0315a95ce84f0397cf7b3c06deb87acb7
0337e02c15f18985537587f6c298391f9af077c5
/testcases/test_login_001.py
3c9b301e582c3e10c2c01bf27ef7836f9ee7e063
[]
no_license
khandepc/Guru99BankProject
9c48c181f720bbce08012ac72a47cbeec581e60b
55bfa560d7ca593cbfb84ede630a19b848f4426b
refs/heads/main
2023-02-06T03:31:13.205028
2020-12-16T06:45:24
2020-12-16T06:45:24
321,257,018
0
0
null
null
null
null
UTF-8
Python
false
false
2,776
py
import time import pytest from utilities.custom_logger import LogGen from utilities.readProperties import ReadConfig from pageobjects.login_page import LoginPage class Test_Login_001: base_url=ReadConfig.get_base_URL() user_name=ReadConfig.get_user_name() password=ReadConfig.get_password() log=LogGen....
[ "khandepc@gmail.com" ]
khandepc@gmail.com
15d888f88d1679039bf18f71120ac99d0ea01b0f
2d276785c3663d4798be462115291c4706dbd255
/Python从菜鸟到高手/chapter14/demo14.01.py
29f3934d32d88fe51f876eff78ae813d90498efa
[]
no_license
bupthl/Python
81c92433bd955663e6cda5fe7cab5ea3d067c3de
bdb33aeeb179a43100b9ef7129a925c63a133fd3
refs/heads/master
2022-02-21T11:02:40.195265
2019-08-16T05:49:18
2019-08-16T05:49:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
''' --------《Python从菜鸟到高手》源代码------------ 欧瑞科技版权所有 作者:李宁 如有任何技术问题,请加QQ技术讨论群:264268059 或关注“极客起源”订阅号或“欧瑞科技”服务号或扫码关注订阅号和服务号,二维码在源代码根目录 如果QQ群已满,请访问https://geekori.com,在右侧查看最新的QQ群,同时可以扫码关注公众号 “欧瑞学院”是欧瑞科技旗下在线IT教育学院,包含大量IT前沿视频课程, 请访问http://geekori.com/edu或关注前面提到的订阅号和服务号,进入移动版的欧瑞学院 “极客题库”是欧瑞科技旗下在线题库,请扫描源代码根目录中的小程序码安装“极客...
[ "registercn@outlook.com" ]
registercn@outlook.com
044b9145da1f28e2db11e6dbb1cb13463c17a9bc
fb16f7024e0d93ecb07c122e633c1a957a8ab645
/inheritance/demo2.py
5859d83e5f89c9c64c80a1b4b2ac35a6999df16c
[]
no_license
rajeshanu/rajeshprograms
c23cf550e060040c7b336242a805e274d3305371
83f0fc9c4a8628bba590d1066ca93fd98137f0bc
refs/heads/master
2020-04-04T13:17:55.986558
2018-11-03T06:42:51
2018-11-03T06:42:51
155,956,676
1
0
null
null
null
null
UTF-8
Python
false
false
307
py
class A: company_name="rajesh" def display(self): print("this is display") class B(A): def show(self): print("this is show") #calling static variable using class A print(A.company_name) #calling static variable using class B print(B.company_name) b1=B() b1.show() b1.display()
[ "44720126+rajeshanu@users.noreply.github.com" ]
44720126+rajeshanu@users.noreply.github.com
0dd964acad8dd7a11d0395be4c59bd0f1587f633
0547d1826e99eedb959a3463520d73985a3b844e
/Data Scientist with Python Track Github/06-Merging DataFrames with pandas/04- Case Study - Summer Olympics/09-Merging to compute influence.py
65b57dce70597328d7a83026604030c048af75f0
[]
no_license
abhaysinh/Data-Camp
18031f8fd4ee199c2eff54a408c52da7bdd7ec0f
782c712975e14e88da4f27505adf4e5f4b457cb1
refs/heads/master
2022-11-27T10:44:11.743038
2020-07-25T16:15:03
2020-07-25T16:15:03
282,444,344
4
1
null
null
null
null
UTF-8
Python
false
false
1,142
py
''' Merging to compute influence This exercise starts off with the DataFrames reshaped and hosts in the namespace. Your task is to merge the two DataFrames and tidy the result. The end result is a DataFrame summarizing the fractional change in the expanding mean of the percentage of medals won for the host country i...
[ "abhaysinh.surve@gmail.com" ]
abhaysinh.surve@gmail.com
2b9fb6b71bd3380b6ab336b7a73dca869d7d67e4
ef4a1748a5bfb5d02f29390d6a66f4a01643401c
/algorithm/algorithm_week/week1/bubble.py
2fa44823a30b25b9c819d6b99bd400329f717866
[]
no_license
websvey1/TIL
aa86c1b31d3efc177df45503d705b3e58b800f8e
189e797ba44e2fd22a033d1024633f9e0128d5cf
refs/heads/master
2023-01-12T10:23:45.677578
2019-12-09T07:26:59
2019-12-09T07:26:59
162,102,142
0
1
null
2022-12-11T16:31:08
2018-12-17T08:57:58
Python
UTF-8
Python
false
false
355
py
# for i in range(2,10): # for j in range(1,10): # a = i * j # print(a) def bubbleSort(data): for i in range(len(data)-1, 0, -1): # 4 3 2 1 for j in range(0, i): # 4 3 2 1 번 if data[j] < data[i]: data[j], data[j+1] = data[j+1], data[j] data = [55, 78, 7, 12,...
[ "websvey1@gmail.com" ]
websvey1@gmail.com
935e864d4bed53c8504125ab2060120e036f07fd
45a506c5622f366e7013f1276f446a18fc2fc00d
/tests/framework/cli/test_registry.py
2b1fdda7006dcce18dcd328ffbcbdd634fe71e28
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sbrugman/kedro
3e48bcc56cc61fbe575d1a52c4f5bf3e84b6f974
25c92b765fba4605a748bdaaa801cee540da611e
refs/heads/develop
2023-07-20T11:24:07.242114
2021-10-08T14:05:03
2021-10-08T14:05:03
404,517,683
1
2
NOASSERTION
2021-09-08T22:53:09
2021-09-08T22:53:09
null
UTF-8
Python
false
false
3,994
py
# Copyright 2021 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS",...
[ "noreply@github.com" ]
sbrugman.noreply@github.com
b3712cec61edb7ce27ef60bd2b0341d12e27f6e3
f487b395f47116bc7480fcbdc32be21354d8e0ea
/test.py
9e0cd0712d8cd5065b6cd1b6f7f7bb1c1217d0ac
[]
no_license
greenmac/kaggle_digit_recognizer
cbd3bed60bc5d386e09fb71bff665048e1a9f2cb
d864d47874dad96a3fa44a99d076630379a2fb10
refs/heads/master
2021-01-07T04:22:56.478579
2020-03-16T06:33:05
2020-03-16T06:33:05
241,577,122
0
0
null
null
null
null
UTF-8
Python
false
false
1,572
py
import random import time from datetime import datetime ''' class RanDate(): def strTimeProp(self, start, end, prop, frmt): stime = time.mktime(time.strptime(start, frmt)) etime = time.mktime(time.strptime(end, frmt)) ptime = stime + prop * (etime - stime) return int(ptime) def...
[ "alwaysmac@msn.com" ]
alwaysmac@msn.com
fd575982d90e09ee5b0320c34f170d2652cc7322
453dba4c0f167faf97cfc80233bf1acc5b87e58e
/_unittests/ut_documentation/test_notebook_javascript.py
12c52fd9f4d5427b2c237f594636478929c16b5d
[ "MIT" ]
permissive
sdpython/code_beatrix
6a092dacbf830a90d374e8c4871d8749e096d5a3
e39f8ae416c23940c1a227c11c667c19104b2ff4
refs/heads/master
2023-02-06T10:52:51.418417
2023-02-04T12:11:45
2023-02-04T12:11:45
32,282,235
1
2
MIT
2022-10-16T15:20:28
2015-03-15T20:26:17
Jupyter Notebook
UTF-8
Python
false
false
1,335
py
# -*- coding: utf-8 -*- """ @brief test log(time=59s) """ import unittest from pyquickhelper.loghelper import fLOG from pyquickhelper.pycode import get_temp_folder, add_missing_development_version from pyquickhelper.ipythonhelper import execute_notebook_list_finalize_ut from code_beatrix.automation.notebook_test_h...
[ "xavier.dupre@gmail.com" ]
xavier.dupre@gmail.com
33c663db4ac2ac5d3f963fc3e0ab25c673c7cba7
6b181f5640e2c3df91d1a6d5c95cf1989012f0d5
/client/canyons-of-mars/client_utils.py
5c047f04104e32a1a2b0ca5bc61396532f2e39d0
[ "MIT" ]
permissive
GamesCreatorsClub/GCC-Rover
9b84dcd84cce60c321906223f8c24f99722d1bae
25a69f62a1bb01fc421924ec39f180f50d6a640b
refs/heads/master
2021-01-11T18:04:05.876976
2019-10-01T15:20:30
2019-10-01T15:20:30
79,477,472
3
0
null
null
null
null
UTF-8
Python
false
false
5,762
py
# # Copyright 2016-2019 Games Creators Club # # MIT License # import os import pyros import time from rover import Rover, RoverState from telemetry import TelemetryStreamDefinition from telemetry.telemetry_client import PubSubTelemetryClient class PyrosTelemetryClient(PubSubTelemetryClient): def __init__(self,...
[ "natdan@users.noreply.github.com" ]
natdan@users.noreply.github.com
78ae01813d9135d215eaddfa321fc99bd7b6143c
6f866eb49d0b67f0bbbf35c34cebe2babe2f8719
/app/data_models/fulfilment_request.py
2a505c4cf7f376af16fcb182b36776ef386e4ff9
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
ONSdigital/eq-questionnaire-runner
681b0d081f9cff0ee4ae3017ecc61f7390d553bf
87e7364c4d54fee99e6a5e96649123f11c4b53f1
refs/heads/main
2023-09-01T21:59:56.733363
2023-08-31T15:07:55
2023-08-31T15:07:55
219,752,509
12
18
MIT
2023-09-14T11:37:31
2019-11-05T13:32:18
Python
UTF-8
Python
false
false
876
py
from abc import ABC, abstractmethod from datetime import datetime, timezone from functools import cached_property from typing import Mapping from uuid import uuid4 from app.utilities.json import json_dumps class FulfilmentRequest(ABC): @abstractmethod def _payload(self) -> Mapping: pass # pragma: no...
[ "noreply@github.com" ]
ONSdigital.noreply@github.com
69abc1688de4f8f5f99b6a5cd6477c25dc505f9d
2196f8fc48d24a27243f395ab849cd4410cbe87b
/test/test_zero_tensors.py
972a08d4b27a95e4d4a891ab977d31aac52c43f8
[ "MIT" ]
permissive
zuru/pytorch_scatter
8097bffb9732464e185c2bae266c9e8aea96d4e6
d7dbb0807dede6a9a1021ce3dc2bc2972b168a24
refs/heads/master
2021-12-14T01:38:18.737462
2021-12-08T10:03:04
2021-12-08T10:03:04
238,142,178
0
0
MIT
2020-02-04T06:51:02
2020-02-04T06:51:01
null
UTF-8
Python
false
false
229
py
import torch from torch_scatter import scatter def test_zero_elements(): x = torch.randn(0, 16) index = torch.tensor([]).view(0, 16) print(x) print(index) scatter(x, index, dim=0, dim_size=0, reduce="add")
[ "matthias.fey@tu-dortmund.de" ]
matthias.fey@tu-dortmund.de
07985a0deb76d16dc2d01d2243eb8775632649e1
7a398f8dbcf465dc182d63dfe11a71d94a68c235
/SyntaxEx14/venv/bin/easy_install
d7af2d3dad86685f38c4d10f8fbefef699e5d161
[]
no_license
apolonis/PythonExamples
48b0bd6c0e86388cc2772b27fcdeffacb7d0191f
018c3ccf0f1f57f807e8e9059afa3db408094a5c
refs/heads/master
2020-09-20T07:48:22.233460
2019-12-16T14:39:34
2019-12-16T14:39:34
224,413,096
0
0
null
null
null
null
UTF-8
Python
false
false
442
#!/home/marko/PycharmProjects/SyntaxEx14/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',...
[ "riddickschronicles@gmail.com" ]
riddickschronicles@gmail.com
ae32e8e8c755c8a31f1fdbce1a01816ab57aec48
f3b233e5053e28fa95c549017bd75a30456eb50c
/tyk2_input/28/28-30_wat_20Abox/set_1ns_equi_m.py
e7ec5a1ea8866d3680ac187e668d1044c1d1e7a9
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
import os dir = '/mnt/scratch/songlin3/run/tyk2/L28/wat_20Abox/ti_one-step/28_30/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi_m.in' temp_pbs = filesdir + 'temp_1ns_equi_m.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
858bd6899eb9a8332d79dda00ceb3117f216ca37
8b9fcb5f2207b98da1113a26c1b7915ae0961684
/tests/publishing/test_geocodesddraft.py
14e9acc16e03e8a73c1d8f016ccd655a39084e87
[ "BSD-3-Clause" ]
permissive
dcworldwide/arcpyext
fe4bcef3fd7ac0ffb8fd5e89fd925a951dc22fd6
02fe4dcd3ed728c91a078dee255abacb0fe2aed0
refs/heads/master
2022-01-21T09:14:49.937159
2018-10-15T01:30:04
2018-10-15T01:30:04
155,815,154
0
0
BSD-3-Clause
2018-11-02T04:45:09
2018-11-02T04:45:08
null
UTF-8
Python
false
false
1,850
py
from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import (bytes, dict, int, list, object, range, str, ascii, chr, hex, input, next, oct, open, pow, round, super, filter, map, zip) import os.path import shutil import arcpyext import pytest from ar...
[ "DavidWhittingham@users.noreply.github.com" ]
DavidWhittingham@users.noreply.github.com
a72e4cd9b490f00aa9e20de7fee6ccd519ab65cc
eeb4752a22ef99152784c0ef6f720f8e4f2dd9d9
/myrest/talk/models.py
5a922ffc710e4b3be17cc2d911aa1ac6044503fc
[]
no_license
borko81/django-rest-test
9a63d328fea8155029bb3d1d29ab624ea4a0027b
e21d41494154622c2472b679df40d5f42d8ab356
refs/heads/main
2023-08-05T22:36:10.099746
2021-09-10T17:54:20
2021-09-10T17:54:20
318,290,143
0
0
null
2021-08-23T18:51:22
2020-12-03T18:53:44
Python
UTF-8
Python
false
false
232
py
from django.contrib.auth.models import User from django.db import models from talk.helpers.add_update import Helper class Post(Helper): author = models.ForeignKey(User, on_delete=models.CASCADE) text = models.TextField()
[ "bstoilov81@gmail.com" ]
bstoilov81@gmail.com