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
84e7d9a493e30b3985e39ae5126bbaeeca00239c
82c73b70c2002f647bdc254125f0bdb18f0b79d2
/openstack_dashboard/dashboards/admin/license/forms.py
099ccaf8c180726a41000b7ec3cdcf950aee7eaa
[ "Apache-2.0" ]
permissive
xuweiliang/Codelibrary
cfb5755ced54c65cacdb3e35ab2b98385f8d5f8e
54e45b2daa205132c05b0ff5a2c3db7fca2853a7
refs/heads/master
2021-05-04T00:31:42.025238
2018-03-20T07:05:20
2018-03-20T07:05:20
71,852,078
0
0
null
null
null
null
UTF-8
Python
false
false
5,302
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 Nebula, 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 # # ...
b5b156cdd0e5a59512ec09150e8dfd07ed2350af
3ba8bf9fb1a3d54233e927893bc2d3865692c896
/ophyd/controls/ophydobj.py
c94c640ca165b825b3e5f70be5d377a4f711108f
[]
no_license
NSLS-II-CSX/ophyd
68fee01393d819350270b143457f76a4a5ccf703
aadf6197f7a3b1ba907e48a73d5af8b07b7c57ad
refs/heads/master
2021-01-17T21:19:16.867892
2014-12-13T23:39:40
2014-12-13T23:39:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,022
py
# vi: ts=4 sw=4 ''' :mod:`ophyd.control.ophydobj` - Base object type ================================================ .. module:: ophyd.control.ophydobj :synopsis: ''' from __future__ import print_function from ..session import register_object class OphydObject(object): _default_sub = None def __init__...
a2c709a82b9f707add011e641eedf079ded0b67e
95f9c734c4bf5de8e5d0adff9ac2cf0228df75ac
/Django/mysite-bak/mysite/polls/views.py
da0e946bc8b3ef8aea7fb16256eecbdb21caf692
[]
no_license
holen/Python
7a996b13ff2224084397223879c380169d47ff8c
506fff291d6e9c6f80c30a51cc3b77e9dd048468
refs/heads/master
2022-12-12T22:12:51.561716
2019-10-16T03:08:00
2019-10-16T03:08:00
14,278,665
1
0
null
2022-12-08T00:51:26
2013-11-10T15:29:59
Python
UTF-8
Python
false
false
2,090
py
from django.shortcuts import render from django.http import HttpResponse, HttpResponseRedirect from polls.models import Question, Choice from django.template import RequestContext, loader from django.http import Http404 from django.shortcuts import get_object_or_404, render from django.core.urlresolvers import reverse ...
7fa86d8b542bd91ae527f605694388c5e6e58d35
5608a9cd3bec8cab1c3f9d7f42896107b78593cc
/tests/unit/mock_docker/fake_stat.py
b85bc3b8007c8c020d9650a655a3cbcd34fdafe7
[ "Apache-2.0" ]
permissive
troyready/runway
cdee6d94f42173c8aa0bd414620b68be36a510aa
4fd299961a4b73df39e14f4f19a7236f7be17dd8
refs/heads/master
2021-06-18T16:05:30.712211
2021-01-14T01:44:32
2021-01-14T01:44:32
151,314,626
0
0
Apache-2.0
2018-10-02T19:55:09
2018-10-02T19:55:08
null
UTF-8
Python
false
false
2,990
py
"""Stats for fake Docker API.""" OBJ = { "read": "2015-02-11T19:20:46.667237763+02:00", "network": { "rx_bytes": 567224, "rx_packets": 3773, "rx_errors": 0, "rx_dropped": 0, "tx_bytes": 1176, "tx_packets": 13, "tx_errors": 0, "tx_dropped": 0, ...
b4e60d4747db4b3823750c69fecee8522989f43d
afc8d5a9b1c2dd476ea59a7211b455732806fdfd
/Configurations/ControlRegions/SS/2016HIPM_v9/variables.py
b38df10fccc279186d7b3cf5a9b34a05e48c2e2e
[]
no_license
latinos/PlotsConfigurations
6d88a5ad828dde4a7f45c68765081ed182fcda21
02417839021e2112e740607b0fb78e09b58c930f
refs/heads/master
2023-08-18T20:39:31.954943
2023-08-18T09:23:34
2023-08-18T09:23:34
39,819,875
10
63
null
2023-08-10T14:08:04
2015-07-28T07:36:50
Python
UTF-8
Python
false
false
3,120
py
# variables # 0 = not fold (default), 1 = fold underflowbin, 2 = fold overflow bin, 3 = fold underflow and overflow #variables = {} #variables['nvtx'] = { 'name': 'PV_npvsGood', # 'range' : (20,0,100), # 'xaxis' : 'nvtx', # 'fold' : 3 #...
ff9d10c84448a1f47b8ab9374247b004431a8c67
766da3ffcbd26e7f58d711f5b0e7312cb365e9fb
/layers/transformer/__init__.py
9950eabee3288f70b34f0e30bc81b80b808266ca
[ "MIT" ]
permissive
RobertCsordas/ndr
1277b353eb61267e023b671072730bdc7e779ca5
da20530dfb4336deddfbe5e79d62e72d1dc2580e
refs/heads/master
2023-09-02T22:38:57.601098
2021-11-19T09:52:23
2021-11-19T09:52:23
414,588,414
20
4
null
null
null
null
UTF-8
Python
false
false
489
py
from .transformer import Transformer, AttentionMask from .relative_transformer import RelativeTransformer from .universal_transformer import UniversalTransformer from .universal_relative_transformer import UniversalRelativeTransformer from .transformer import TransformerEncoderWithLayer from .relative_transformer impor...
476654bc49e7272f77917b445426eaf80a1cee93
35efa105f00073303284103699fcaec54045a8a4
/invoke_servers.py
d3bd5d43949a4ac06d60f0cf6a4d3fb25c6e0e22
[]
no_license
Quantumke/mpesaapi
b12c7e663fc89d6b98170a229b7876fdb5c1541f
e0941927b194d361f443aa8cf665fc3cfce71bca
refs/heads/master
2021-01-19T00:25:47.958078
2016-05-27T09:19:27
2016-05-27T09:19:27
59,822,028
0
0
null
null
null
null
UTF-8
Python
false
false
770
py
import urllib.parse import urllib.request import ssl def invoke_server(): url="https://safaricom.co.ke/mpesa_online/lnmo_checkout_server.php?wsdl" values = ({ "MERCHANT_TRANSACTION_ID": "1", "PASSWORD": "1", "REFERENCE_ID" :'1', "TIMESTAMP":'1461164700' }) find_a_better_way = ssl.SSLCo...
e1da3255668999c3b77aa8c9332b197a9203478e
42104a0ebfc03caf9c7648211ca6ac69de984cbb
/memedata/errors.py
1a923ec91aa865271c3a85ad8fe34bf5b1120fc9
[ "MIT" ]
permissive
bomdiabot/memedata-service
61fbdf00d32fb9ef55f352aa400c8830588b8cfe
52c772c1440901fd23bc8d5254d1f16d11d6c629
refs/heads/dev
2022-12-09T13:46:29.588250
2018-10-29T23:31:30
2018-10-29T23:31:30
147,910,641
2
0
MIT
2022-12-08T02:53:13
2018-09-08T07:09:59
Python
UTF-8
Python
false
false
1,818
py
from marshmallow import ValidationError from werkzeug.exceptions import HTTPException from flask_jwt_extended.exceptions import JWTExtendedException from memedata.util import mk_errors from memedata import config def jwt_error_handler(error): code = 401 messages = list(getattr(error, 'args', [])) return mk...
31abd5ef24459b6c62af258b25f1201638b650b3
8e1d05d2e130e30585a08b54ce8d613ee78d6b8c
/Evaluation/modularity_analysis.py
93c04dc25880df6da1ce71526c29416018e92e39
[]
no_license
mturja-vf-ic-bd/AD-Longitudinal-Smoothing
11793fafcfb039629a5a5265d98789a1e1576de2
10fafdd57c63cc7b5a1c0400abdbfaa4353254f3
refs/heads/master
2020-04-16T17:09:14.790401
2019-08-17T17:05:54
2019-08-17T17:05:54
165,764,720
2
0
null
null
null
null
UTF-8
Python
false
false
4,380
py
# Modularity Analysis of the raw and smooth connectomes # The goal is to show that our method produce connectomes that has consistent modularity along time #from bct import community_louvain import numpy as np from utils.readFile import readSubjectFiles from plot_functions import plot_matrix_all, plot_community_structu...
7e59f965301071339cf8b02f1232ee076d1d8bc1
d697c1d45e96bd440be9c17ab14243a5882b1f52
/qianfeng/常用模块/Tkinter/Text控件.py
720a8d02a87bfe968a9f57bcdad6841620b2607e
[]
no_license
ithjl521/python
9eeda2e60dda97ee36e8764c06400eb12818689f
f4fe50799501c483cb64445fd05ee0f30f56576c
refs/heads/master
2020-07-12T23:10:53.608276
2019-11-08T08:59:35
2019-11-08T08:59:35
204,931,359
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
import tkinter # 创建主窗口 win = tkinter.Tk() # 设置标题 win.title('title-hjl') # 设置大小和位置 win.geometry("400x400+200+50") ''' 文本控件,用于显示多行文本 ''' text = tkinter.Text(win,width=30,height=4) text.pack() str = ''' 【推荐】超50万C++/C#源码: 大型实时仿真组态图形源码 【活动】阿里云910会员节多款云产品满减活动火热进行中 【推荐】新手上天翼云,数十款云产品、新一代主机0元体验 【推荐】零基础轻松玩转华为云产品,获壕礼加返百元大礼 【推...
9e374836569d4aa1541f6d838fc0cf6528594d4e
70c69365a7a5b86af601fbf071f221c85abef9fc
/tensorflow/python/tpu/api.py
540f425494a6a23291c5ec68fa93deda8c08911a
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
dyna999/tensorflow
3ed8f243b8cc8bb30a8c96dbd30e4b27be226f83
163c946f6827ce9e3ffa49e56fa65ce520bf6ea5
refs/heads/master
2022-03-28T03:00:28.650532
2022-03-25T22:47:49
2022-03-25T22:51:26
97,944,926
0
0
Apache-2.0
2022-01-07T22:43:29
2017-07-21T12:22:03
C++
UTF-8
Python
false
false
1,365
py
# Copyright 2019 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...
2ee0088396c8b6299c327c0d2faefc2d53d9a962
f0cec246e2f30f6b4ee5656f1cb6406dd0f7879a
/thingsboard_client/models/rule_node_id.py
cad448df1ff67cb7c21896a0d4480fd703c9bb39
[]
no_license
ascentio-tech/thingsboard-swagger-client
4e2f7c943e243ec8505c32dab0aa3d6cf1559105
1e8bf7664c281c29612fd5b44261f049ca7c44fd
refs/heads/master
2021-07-20T07:18:12.969459
2020-06-17T02:35:54
2020-06-17T02:35:54
184,322,192
1
1
null
null
null
null
UTF-8
Python
false
false
3,040
py
# coding: utf-8 """ Thingsboard REST API For instructions how to authorize requests please visit <a href='http://thingsboard.io/docs/reference/rest-api/'>REST API documentation page</a>. # noqa: E501 OpenAPI spec version: 2.0 Contact: [email protected] Generated by: https://github.com/swagger-...
af566ecfbb44440a1ec164059caab18a664f4f21
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/fdlm_chordrec/chordrec-master/experiments/mlsp2016/create_crf_init_params.py
989cab4c857b5f28322c54b30be3b0271045634f
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
1,285
py
import numpy as np import pickle import os from docopt import docopt from glob import glob from os.path import join, exists USAGE = """ create_crf_init_params.py - creates initial crf parameters from a learned gap convnet. Usage: create_crf_init_params.py <src_dir> <dst_dir> Argument...
9f531e0eaf6f4b7c54ba7928cb1cfa50714bfe90
49dbac90edc329416525825e842382470345641d
/tests/medium/test_num_sum.py
13f451161779c5dc0a928281932484afcf2ce90a
[]
no_license
AleksTor/belhard_6_tasks
4a9ed9367978a2086531a9e31f2d1c71a17446b6
f5f77a622bbb020a01d251423cbb5f25cc6239f3
refs/heads/master
2023-07-26T19:10:22.957008
2021-09-13T02:19:28
2021-09-13T02:19:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
import pytest from tasks.medium.num_sum import sum_of_numbers @pytest.mark.parametrize( "n, expected", ( (123, 6), (1111111, 7), (4, 4), (935145, 27), ) ) def test_sum_of_numbers(n, expected): assert sum_of_numbers(n) == expected
ef65d624ada369ecd60fd78c94bf7905807cefb2
2af5f89257e268b63d66a29287a6290c40125372
/Array/Leetcode_JZO_74_medium_二维数组的寻找.py
1fca5bff8d82796caede9ab8f694f070255a3fa1
[]
no_license
lilitom/Leetcode-problems
7dea24a1d07b3ee49e2f90764330f3e695f4f64d
82901a31c558433478dd23026efda63cf4dae8e5
refs/heads/master
2020-12-02T22:39:34.812479
2018-10-21T11:38:31
2018-10-21T11:38:31
96,162,066
2
2
null
2017-07-05T13:06:18
2017-07-04T01:07:41
Python
GB18030
Python
false
false
1,164
py
''' Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right. The first integer of each row is greater than the last integer of the previous row. For example, Consider the following matrix: [ [1, 3, 5,...
ffc51a551202748e2b844689ae88726dc0f22a93
b310ea0f7a60786f7e17ac80154fcd5f2c3ffd29
/Entity/Entity.py
756f25faf1a3f34fce0ad9b1028e4b5531edb829
[ "MIT" ]
permissive
twtrubiks/Flask-Migrate-Tutorial
464e475e7ed8bd5127420c819b4672dc15f9ba61
a659171eee4c84fd0ea1a1e39914c53d44177ea8
refs/heads/master
2021-01-11T22:42:04.620084
2017-02-15T09:49:45
2017-02-15T09:49:45
79,018,103
7
6
null
null
null
null
UTF-8
Python
false
false
635
py
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_script import Manager from flask_migrate import Migrate, MigrateCommand app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db' db = SQLAlchemy(app) migrate = Migrate(app, db) manager = Manager(app) manager.add_comman...
97210ea3fec9b92d035e5e3c826327e710361fdc
3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1
/pytools/utilities/python/tklib_image_utils.py
fcfd1fa577b7d1e1f3361b64d84d1a8f276abf3b
[]
no_license
stefie10/slu_hri
a76f79094bd1740676fec5d889411ba3b1d9dc26
50753379953e1ff822162eeab094cffe4a30f3e1
refs/heads/master
2022-12-14T01:07:51.522258
2020-08-31T00:50:12
2020-08-31T00:50:12
291,386,375
0
0
null
null
null
null
UTF-8
Python
false
false
2,553
py
from copy import deepcopy from scipy import * def median_filter(myimage, filter_size): new_map = deepcopy(myimage) #for i in range(filter_size, len(myimage)-filter_size): # for j in range(filter_size, len(myimage[0])-filter_size): for i in range(len(myimage)): for j in range(len(myimage[0])...
c442edea8bffc494b18b504b67a661651392627c
9adc810b07f7172a7d0341f0b38088b4f5829cf4
/experiments/ashvin/icml2020/hand/sparse/mc1.py
91b9a0c61f14b220fae8f8cf80a48e1e0efe16a4
[ "MIT" ]
permissive
Asap7772/railrl_evalsawyer
7ee9358b5277b9ddf2468f0c6d28beb92a5a0879
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
refs/heads/main
2023-05-29T10:00:50.126508
2021-06-18T03:08:12
2021-06-18T03:08:12
375,810,557
1
0
null
null
null
null
UTF-8
Python
false
false
3,473
py
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies import GaussianP...
93dc4b460365f00007184adbfdfea6b17f6f08bb
066ee4df594a5dc90335d271b9d5a1b1e2a4d34c
/y/google-cloud-sdk/platform/gcutil/lib/google_api_python_client/oauth2client/django_orm.py
3607bb9442651745171963eb5d3b141bae8d4add
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "MIT", "Python-2.0" ]
permissive
ychen820/microblog
a2d82447525325ec58285c2e5db58b79cceaca1b
d379afa2db3582d5c3be652165f0e9e2e0c154c6
refs/heads/master
2021-01-20T05:58:48.424357
2015-04-28T22:03:09
2015-04-28T22:03:09
32,948,331
0
2
BSD-3-Clause
2020-07-25T05:04:35
2015-03-26T19:45:07
Python
UTF-8
Python
false
false
3,782
py
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
3e8fa85fb7afd03c45f83c311743c88e5e962eb2
fd7406dcf3f898bd5b82a0ee4306e02c1d1b4970
/backup/testcase/operation_testcase/testWebBasicDataOperation.py
d50339d1639b7162ead6e2eccf1c21f0aedb5275
[]
no_license
18786262315/zidonghuaapi
e5f979fc599f8bca08e7e5cfbd58943fe36b75d3
28145f13231e9df76a33894b82c0e552afb485fc
refs/heads/master
2020-03-26T01:48:13.018859
2018-08-11T12:32:51
2018-08-11T12:32:51
144,383,122
0
0
null
null
null
null
UTF-8
Python
false
false
1,020
py
# -*- coding: utf8 -*- import unittest from AthenaTest.common.loadDatas import * import sys import importlib importlib.reload(sys) class testWebBasicDataOperation(unittest.TestCase): def setUp(self): self.datafile = '../../datacase/operation_datacase/web_basic_data_operation.xls' def test_merchantIn...
5e90f53f83015074277634b94893dfe780aae9c0
32dbb74f03c7450ee1f3166f82260e60272f57e0
/pushbase/session_recording_component.py
7816971cab9b893aed9788a232cbc81f96f4be65
[]
no_license
cce/buttons10
61555bc767f2bd300bfffb373f9feaae96b83ca7
6f1137c96eead0b9771ad8ec9327dd72ada2e916
refs/heads/master
2021-04-15T09:45:39.684764
2018-03-24T04:29:52
2018-03-24T04:29:52
126,565,725
3
0
null
null
null
null
UTF-8
Python
false
false
8,429
py
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/pushbase/session_recording_component.py from __future__ import absolute_import, print_function, unicode_literals from itertools import ifilter import Live from ableton.v2.base import listens, liveobj_vali...
63ef7efb72cdbd6ab053b45a1e1b67b28b822140
3bb57eb1f7c1c0aced487e7ce88f3cb84d979054
/reliability/scripts/selectors/user_study_sgss/Run_All_Grammaticality.py
e9e24f48f1582714451889b5453d7e2feb86cc90
[]
no_license
ghpaetzold/phd-backup
e100cd0bbef82644dacc73a8d1c6b757b2203f71
6f5eee43e34baa796efb16db0bc8562243a049b6
refs/heads/master
2020-12-24T16:41:21.490426
2016-04-23T14:50:07
2016-04-23T14:50:07
37,981,094
0
1
null
null
null
null
UTF-8
Python
false
false
826
py
import os #Generators: generators = os.listdir('../../../substitutions/') #generators.remove('all') #Parameters: ks = ['all'] criterions = ['gini'] splitters = ['best'] maxes = ['sqrt'] depths = ['None'] for c in criterions: for s in splitters: for m in maxes: for d in depths: for k in ks: for generat...
6e0ebec1fc78e0835c6ecbdb7219e01a09843027
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_disobeying.py
6227a9b226dae0e7d81f3e25281a295fcd1d7404
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
#calss header class _DISOBEYING(): def __init__(self,): self.name = "DISOBEYING" self.definitions = disobey self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['disobey']
3bab7c812b73262b1fec5b2de5bb8c2dabbea041
4b7e282fe480415f5d52c0fc0429f144156190fe
/google/ads/googleads/v8/enums/types/frequency_cap_time_unit.py
a0b4fac51b42f479dc71ca2908a0ddc7c56457ba
[ "Apache-2.0" ]
permissive
Z2Xsoft/google-ads-python
c4750357bb19da91bb3b6bf2fa84bef9d2df36d3
1779d52a0446c8afb2437b0a9e103dcb849f5590
refs/heads/main
2023-08-18T15:22:17.840364
2021-09-26T04:08:53
2021-09-26T04:08:53
410,444,398
0
0
Apache-2.0
2021-09-26T04:08:53
2021-09-26T03:55:38
null
UTF-8
Python
false
false
1,190
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
2ea81a70f5853392681a2ad044988336259077ca
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv2/lib/python3.8/site-packages/ansible/modules/network/netvisor/pn_vrouterif.py
7f17778186a113d7de769d3a5baf96d4f0e33de6
[ "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
15,340
py
#!/usr/bin/python """ PN-CLI vrouter-interface-add/remove/modify """ # # This file is part of Ansible # # Ansible 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...
6e591a5e888418ed9a9c93a7560a9da591c60be4
5537eec7f43098d216d2b550678c8d10b2a26f09
/venv/tower/lib/python2.7/site-packages/awx/main/migrations/0033_v303_v245_host_variable_fix.py
fad3545b65c1e39e6a6594561e71708a6219f49d
[]
no_license
wipro-sdx/Automation
f0ae1512b8d9d491d7bacec94c8906d06d696407
a8c46217d0fbe51a71597b5db87cbe98ed19297a
refs/heads/master
2021-07-08T11:09:05.314435
2018-05-02T07:18:54
2018-05-02T07:18:54
131,812,982
0
1
null
2020-07-23T23:22:33
2018-05-02T07:15:28
Python
UTF-8
Python
false
false
661
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from awx.main.migrations import _migration_utils as migration_utils def update_dashed_host_variables(apps, schema_editor): Host = apps.get_model('main', 'Host') for host in Host.objects.filter(variables='---'): ...
c75af28c9291936a6161711ddbd4d4aa46c5acd0
99efa551de2a4586767d109b211d8c016c5454c4
/Set/App1/H.py
6adf6ff5e0459bf9ae5fdbe1dfe73ce7b57f8dd0
[]
no_license
Vijay-Ky/Anit_Rooman_Python_Training
9decf34b651ea8455bdd4cdf1e2239a77cf1bc7e
155ba84620c28fd64a7219013c3bdd43f76fa278
refs/heads/master
2020-05-31T23:22:45.865104
2019-06-18T09:33:10
2019-06-18T09:33:10
190,537,707
2
0
null
null
null
null
UTF-8
Python
false
false
61
py
myset = {"apple", "banana", "cherry"} myset.remove("orange")
99fce1ecb787c18902799b2a92f8c625db4e2b4d
342c87b969201085292187020e84e39b3464dd87
/20200326-clojure/patterns/01_functions_first_class_python_solution.py
fa1dfeb80a5a094afb434e74ce48343a20b8ae70
[]
no_license
shimf/webinar-live-demos
de5ab2d57c2cc4d6a51d7eeed045e21b4a52fe1a
50f86b17994ed0393c04c46242516b5df5cef2f7
refs/heads/master
2022-08-26T21:39:43.883045
2020-05-21T07:52:31
2020-05-21T07:52:31
265,782,740
0
0
null
2020-05-21T07:23:31
2020-05-21T07:23:30
null
UTF-8
Python
false
false
123
py
from functools import partial from operator import mul nthice = [partial(mul, n) for n in range(10)] print(nthice[2](3))
7540c67ee87e4363953e1932e1e8090ac2b4bef0
444079944e66d19dd8a01fe9834b43d7aa5fc427
/DRRQueue.py
0083c37ff00f549cd00373f0ef062d82bde4f67b
[ "Apache-2.0" ]
permissive
dound/vns
6ea2a6560a87fc86c6533a7e4532d61af908894d
675c581fa18b57b801782079ed33f7b095898c7f
refs/heads/master
2016-09-05T23:17:28.078179
2011-04-30T20:40:25
2011-04-30T20:40:25
288,103
20
9
null
2020-02-01T01:25:56
2009-08-25T21:54:12
Python
UTF-8
Python
false
false
2,958
py
"""The DDRQueue module implements a Queue subclass for use with Deficit Round Robin (DRR) like algorithms.""" from Queue import Queue, Empty class DRRQueue(Queue): """Implements a queue for use with a DRR-like algorithm. Each queue tracks "quanta" available to it (some unit of work - for the original DRR, th...
642e1e9eb6213ea382a825d9cf12a1a9552fa277
ad8b30544480ba1e5f5b1cb2dec2aa77a644e8d2
/SWEA/D2_5102_노드의거리.py
ffc560ef41043f390c247473811e0b1d849de0e1
[]
no_license
hyunwoojeong123/Algorithm
79abc82d944ca60342a7f8b6fc44fac20ac55123
0baaf3222fbbec699ffbec5d4cc680067cf293fb
refs/heads/master
2023-07-10T18:28:51.934005
2021-08-18T01:51:23
2021-08-18T01:51:23
284,403,698
1
0
null
null
null
null
UTF-8
Python
false
false
979
py
T = int(input()) for tc in range(1,T+1): V,E = list(map(int,input().split())) linked = [[False for j in range(V+1)] for i in range(V+1)] #print('연결:') for e in range(E): s,g = list(map(int,input().split())) #print(s,g) linked[s][g] = True linked[g][s] = True #print('연...
993e1f05b6625bd9b8a9e969e2a2bc0c853cb581
4552bce7f09cffe1770162130896c30e481f1989
/Tensorflow components and Linear Regression/Variables.py
16ac2f75f07572ea4151a43503576e4e67a70924
[]
no_license
Marius-Juston/Tensorflow_Tutorial
b953745a046e068af2eb5e803180b9fdc67b9c45
bc2217f86f31b4722426899152c6355e973de8f5
refs/heads/master
2021-07-17T19:11:23.685737
2017-10-26T03:51:46
2017-10-26T03:51:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,204
py
# coding=utf-8 # In machine learning we will typically want a model that can take arbitrary inputs, such as the one above. To make # the model trainable, we need to be able to modify the graph to get new outputs with the same input. Variables allow # us to add trainable parameters to a graph. They are constructed with...
60bccdd0b292adf076dd2409f1527cfdfa80ee7b
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/q5jCspdCvmSjKE9HZ_10.py
d11123755af6974e993ef6ec8e17acbdeed16337
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
def lcm(a,b): if a<b: a,b=b,a for i in range(b,a*b+1): if i%a==0 and i%b==0: break return i def lcm_of_list(numbers): m=lcm(numbers[0],numbers[1]) for i in range(2,len(numbers)): m=lcm(m,numbers[i]) return m
6d8aecc8c41ff3f7b51eb4678cc55f2310d9c393
ed7e61c8eef7fb2213adeb67557d605470c17fb3
/ML/50-mlps/28-keras-cnn-big-filters/create_validation_curve.py
f39496852849e0b8a1383a08607ff10c06e7c771
[]
no_license
MartinThoma/algorithms
535840224323822f2ea6b7dd6f82a0fdd22a0ff9
a251e9599b685dbf89c891f02d20fefd8538ead5
refs/heads/master
2023-02-23T17:58:10.913634
2023-02-21T05:58:59
2023-02-21T05:58:59
4,939,076
241
126
null
2023-02-16T05:16:23
2012-07-07T16:07:23
Python
UTF-8
Python
false
false
780
py
#!/usr/bin/env python """Visualize validation curve.""" import matplotlib.pyplot as plt import pandas as pd Y_SCALE_FACTOR = 100 # Prepare dataframe df = pd.read_csv('log.csv', sep=';') df = df[['epoch', 'acc', 'val_acc']] df[['acc', 'val_acc']] = df[['acc', 'val_acc']] * Y_SCALE_FACTOR df = df.set_index('epoch').r...
576b0a80224d85071aba025ea5b76af8820e020b
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_132/ch16_2019_03_29_18_09_22_468927.py
b8183210d987ac4a8541d274fe872e653ee8da67
[]
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
116
py
import math def distancia_euclidiana(x1 , x2 , y1 , y2): d = math.sqrt((x2 - x1)**2 + (yb - ya)**2) return d
1cc80ab7f1cc14d254b7aa8d4c1063259b1c3fbb
45b180004c441663bd223219f8edef8c82481be1
/color.py
9c26e029d1b9faa98fc5d9d1338fca7c4d1aa9db
[]
no_license
bradbann/mypy
a679e22fdd04525faf32a73934d813a45af1092f
8bf6234be438aaf3ce2b69e4c10b2ce84eaccb98
refs/heads/master
2023-02-19T14:21:59.362385
2020-12-31T09:35:11
2020-12-31T09:35:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
from colorama import Fore,Back,Style import colorsys print(Fore.BLACK + 'some red text') print(Back.BLUE + 'and with a green background') print(Style.DIM + 'and in dim text') print(Style.RESET_ALL) print('back to normal now')
88e97776f2dcc40e428edb17c7c0b4271f3e1855
4d995c70ab763e0422ed52e76a3aef9a48208023
/tests/test_data_processors.py
e2b6a855b09d563ab4023b41385a7ba32cb9a542
[]
no_license
QualiSystems/cloudshell-autodiscovery
b254008c3422b525cdb72d4c2716ef5771a38b8a
9ed9e8e74fcf12cb7f7c7fd945f8bc4fae6d5755
refs/heads/master
2021-06-03T17:45:36.975215
2019-05-30T13:39:30
2019-05-30T13:44:48
83,421,029
1
1
null
2021-03-25T22:03:43
2017-02-28T10:44:13
Rich Text Format
UTF-8
Python
false
false
7,409
py
import unittest import mock from autodiscovery.data_processors import JsonDataProcessor class TestJsonDataProcessor(unittest.TestCase): def setUp(self): self.filename = "example.json" self.logger = mock.MagicMock() self.json_data_processor = JsonDataProcessor(logger=self.logger) @mo...
5ca3a3da95dfa01675de20c2a2689d7b0c4568a5
b9faae037d6c2fb69406aa1f2e86f42d3a6225ce
/data/snippets/github.com/kkkmmu/useful_script/python/function.py
07ead533d318ceefbec699c872dfd32f30dc60cf
[]
no_license
lovefcaaa/snk.dev-assistant
9eaedd448ee2c3f532aa7acdbee1ff1d91f9c07f
20ffcdddba19102348d75235f7d6d557c2386e69
refs/heads/master
2023-07-09T14:12:55.141283
2018-06-25T14:18:49
2018-06-25T14:18:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,842
py
print(abs(-110)) print(max(1, 5, -10, 10)) print(int("123")) print(int(1.24)) print(float("1.2345")) print(str(1.23)) print(str(1000)) print(bool(100)) print(bool(-1000)) print(bool(0)) print(bool(None)) a = abs print(a(-1234)) print(hex(1234)) def mabs(x): if x >= 0: return x else: return...
a892c3b8705ffa0ffda05544d3ee3374853c0d4a
65f548bbeb62d7f2476351bda7b723dab216ce08
/train_scripts/trainScriptNN.py
aae161d89eeaafeb65bc1a94037985b9c6919291
[]
no_license
StefanPushkov/TestDocker
f6148db20e2f50694528f88a837e4c517e5a8afe
aecdd0b5207e9f93950faa51535a888d62bb67c1
refs/heads/master
2022-11-21T08:44:00.607204
2020-07-20T10:46:39
2020-07-20T10:46:39
280,253,224
0
0
null
null
null
null
UTF-8
Python
false
false
5,911
py
import torch import torch.nn as nn import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn.model_selection import train_test_split from torch.utils import data as data_utils from sklearn.preprocessing import StandardScaler from sklearn.metrics import roc_curve, auc from...
6634da207df73bf435953807b98cb2f9663aeea0
3d705ec48c94373817e5f61d3f839988910431e3
/misc/tool/player/create_m3u8.py
9a477d1647cb3a6a26eaa517614fc0aad8c674d8
[]
no_license
namesuqi/zeus
937d3a6849523ae931162cd02c5a09b7e37ebdd8
3445b59b29854b70f25da2950016f135aa2a5204
refs/heads/master
2022-07-24T14:42:28.600288
2018-03-29T08:03:09
2018-03-29T08:03:09
127,256,973
0
0
null
2022-07-07T22:57:57
2018-03-29T07:53:16
Python
UTF-8
Python
false
false
475
py
# coding=utf-8 """ 不停地将m3u8子片段写入文件 用于测试直播播放器的模拟器 __author__ = 'zengyuetian' """ from random import randint import time if __name__ == "__main__": for i in range(124): time.sleep(randint(1, 4)) with open("zeus.m3u8", "a") as f: url = "http://buddiestv.qiniudn.com/sUWPWh5odxh9vtorJ2tsEu...
86274f2d6be5ec0e61d7bdcfd74fd71805bf9bb9
0b3024565732948d36cb1ada431274db7fb2d6f1
/PublicReference/config.py
9559073ec5f12b9d486615af8f062953b627adf7
[]
no_license
Luyaojun/DNFCalculating
adaa5b761e34985661d0c994ad52a63f092c6e62
02d701ec63ed083a8b7043229dfceb758e426cae
refs/heads/master
2022-11-17T11:04:00.245554
2020-07-18T07:07:32
2020-07-18T07:07:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,886
py
import configparser conf = configparser.ConfigParser() conf.read('./ResourceFiles/set.ini', encoding='utf-8') #窗口缩放 try: 窗口显示模式 = conf.getint('窗口显示', 'value') except: 窗口显示模式 = 0 #不计算装备属性,武器类型为角色武器选项第一个 try: 调试开关 = conf.getint('调试开关', 'value') except: 调试开关 = 0 #输出搭配和伤害数据到csv try: 输出数据 = conf.geti...
23cc18ee51c728fe6203cb595154805a17389974
f5d2a1459c81eb23a745bd63f41ef980c41ea0a4
/ZG-PhaseFour/code/website/pcauto/PcautoComments.py
3d29bfc7086cc8fd34cc48ac7d373bdd125bca66
[]
no_license
ErBingBing/django-tonado-crawler
6800bb0269e99e2454fb0a9079175ffe9d4d0a0b
db31b4cdf7ecc509f1a87aa325621943df825e98
refs/heads/master
2021-08-22T11:30:08.419583
2017-11-30T04:04:40
2017-11-30T04:04:40
112,562,722
0
0
null
null
null
null
UTF-8
Python
false
false
5,027
py
# encoding=utf-8 ############################################################################################## # @file:PcautoComments.py # @author:Ninghz # @date:2016/11/18 # @note:太平洋汽车网获取评论的文件 # @修改日志 # @author:yongjicao # @date:2017/9/12 # @note:修改评论存储方式为mysql ######################################################...
da6ebfdb2b8526dae263cda11c146cefa87e951a
06e43389ade453e16d1ab08f6f29127a48ede422
/sanp3.py
f3ef163a069faa011e7012056cb4ff3b7272d68d
[]
no_license
santhoshbabu4546/guvi1
0fd5b29c9bd7d26c2208e36cccca3c57ef58366f
97a783c4ff8be92c9e0645ee605981177dc06dec
refs/heads/master
2020-06-21T03:48:30.279600
2019-07-17T05:11:43
2019-07-17T05:11:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
31
py
f = input n = f[::-1] print(n)
dc0cd93f35f2c1313c250efce57156a66fbf52bb
4bf3aaf77c309a489100b98a8c03532632df152c
/Python/동빈북/10주차2/트리의지름.py
5a204ed65235c2f7a796144aba287d2f73437648
[]
no_license
murane/PS
7fbfc54d962231949efc67f1a35c4b0119de0780
e938c6c503aeac08bf65e1e66709172b0e5da6ef
refs/heads/master
2023-05-06T22:51:54.105811
2021-05-30T03:34:53
2021-05-30T03:34:53
293,699,199
0
0
null
null
null
null
UTF-8
Python
false
false
632
py
import sys r=sys.stdin.readline V=int(r()) tree=[dict() for _ in range(V+1)] for _ in range(V): line=list(map(int,r().split())) target=line[0] line=line[1:-1] for i in range(len(line)//2): tree[target][line[i*2]]=line[i*2+1] tree[line[i*2]][target]=line[i*2+1] leng=0 pole=0 visit=[False...
e386fe6a75e7df2fb336f91983882abcc80f5e28
4331b28f22a2efb12d462ae2a8270a9f666b0df1
/.history/dvdstore/webapp/views_20190914143025.py
52963ede814339e5240ae95de166024a88b2f934
[]
no_license
ZiyaadLakay/csc312.group.project
ba772a905e0841b17478eae7e14e43d8b078a95d
9cdd9068b5e24980c59a53595a5d513c2e738a5e
refs/heads/master
2020-07-26T23:30:22.542450
2019-09-16T11:46:41
2019-09-16T11:46:41
200,703,160
0
0
null
2019-08-05T17:52:37
2019-08-05T17:52:37
null
UTF-8
Python
false
false
9,050
py
from django.shortcuts import render from .models import DVD, Transaction, Customer from django.core.paginator import EmptyPage,PageNotAnInteger, Paginator from django.db.models import Q from django.contrib.auth.models import User, auth from django.shortcuts import render, redirect from django.contrib import messages fr...
381983aa73140a1fb84cd80fcf777075c6e1922f
99c4d4a6592fded0e8e59652484ab226ac0bd38c
/code/batch-1/vse-naloge-brez-testov/DN7-M-175.py
9f07005e81b8ff32835a51038b44d55f2690253c
[]
no_license
benquick123/code-profiling
23e9aa5aecb91753e2f1fecdc3f6d62049a990d5
0d496d649247776d121683d10019ec2a7cba574c
refs/heads/master
2021-10-08T02:53:50.107036
2018-12-06T22:56:38
2018-12-06T22:56:38
126,011,752
0
0
null
null
null
null
UTF-8
Python
false
false
8,198
py
# To funkcijo prijazno podarjam vsem, ki bodo programirali v eni vrstici. :) # Kako jo uporabiti, je v navodilih. Kdor je ne potrebuje, naj jo ignorira. import collections def vsa_polja(s, v): """ Generiraj vse koordinate (x, y) za polje s podano širino in višino Args: s (int): širina v (int...
14d337cc0ae57c9c93b5155c34ee19114e1317c7
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/openpyxl/openpyxl/drawing/connector.pyi
3b3e8a479f72006e2689a5b70ac025c01e2a488f
[ "Apache-2.0", "MIT" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
1,867
pyi
from typing import Any from openpyxl.descriptors.serialisable import Serialisable class Connection(Serialisable): id: Any idx: Any def __init__(self, id: Any | None = ..., idx: Any | None = ...) -> None: ... class ConnectorLocking(Serialisable): extLst: Any def __init__(self, extLst: Any | None =...
51773bb0b5cf61f1eb2f13888232b12c252e6fbe
f121695e2dff353607fa47fb42482470e03bbf8a
/capitulo_06-Dicionarios/user.py
27f9b3f93f445d4a391344208f4b9726d72af033
[]
no_license
ranog/python_work
76cbcf784c86fae4482be5383223e4b0a34f4130
47c442a90dcf32d5aef70858693a772a3c76a7ac
refs/heads/master
2022-12-22T11:02:26.482059
2021-04-17T01:12:22
2021-04-17T01:12:22
233,634,221
2
1
null
2022-12-08T07:38:43
2020-01-13T15:58:46
Python
UTF-8
Python
false
false
2,642
py
#! /usr/bin/env python3 """ NOME user.py - Percorrendo todos os pares chave-valor com um laço SINOPSES chmod +x user.py ./user.py Key: username Value: efermi Key: first Value: enrico Key: last Value: fermi - 6.12 - Extensões: Username: efermi Name: Erico Fermi ...
7a14e8464e65364030788781634321eba09f3d7f
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/examples/v1/synthetics/CreateSyntheticsAPITest.py
84904e1d7992fcae134d9955d3c134e4da54febc
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
4,304
py
""" Create an API test returns "OK - Returns the created test details." response """ from datadog_api_client import ApiClient, Configuration from datadog_api_client.v1.api.synthetics_api import SyntheticsApi from datadog_api_client.v1.model.synthetics_api_test import SyntheticsAPITest from datadog_api_client.v1.model....
50942d27099e308aa4147588ac09f780f7856048
f9308d5a8efe2dbb48e9cc87cd06405b60a9dc7b
/samples/python/apidocs/ee_featurecollection_getstring.py
8f9996c332c70c0c6ba24aec13ae4de989df6de8
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
google/earthengine-community
4e054b421f66f03507d58668084aee981062fc24
ce931040c518860f8788b4888c0acfdebd2952fc
refs/heads/master
2023-09-01T14:47:54.812703
2023-08-31T23:01:00
2023-08-31T23:01:39
200,732,820
428
552
Apache-2.0
2023-09-13T21:46:51
2019-08-05T21:42:11
Jupyter Notebook
UTF-8
Python
false
false
1,007
py
# Copyright 2023 The Google Earth Engine Community 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
548439ff669f3f0d005ab4790ec8a3cb6a20f164
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_officiates.py
4b9a0f7403716650f0c91ed440000739919939b4
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
#calss header class _OFFICIATES(): def __init__(self,): self.name = "OFFICIATES" self.definitions = officiate self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['officiate']
8aed7256c3bb58a3dd4968ada6a007943f82ab89
3034cb06289f747066571c4ab54ca81996c22319
/module_utils/RubrikLib/rubrik_lib/models/download_file_job_config.py
54fb2f3618d7eb072adffba24a2445ad05a26500
[]
no_license
tarunactivity/ansible-rubrik
b2f644805f13a553bd0635e6ddc230257d125ef7
5d978c23902fd32d92cc90c75e48e5fe2209f8e0
refs/heads/master
2023-04-29T04:25:26.834701
2023-04-20T21:58:47
2023-04-20T21:58:47
116,251,368
0
0
null
2018-01-04T11:18:38
2018-01-04T11:18:37
null
UTF-8
Python
false
false
684
py
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
af10e15a9c827ae8f34a1e8261c1ff400154fbab
6d13de0d1ca89badfb76c677ffa8d7e2829677cb
/beaconWeb/apps/beacon/migrations/0076_auto__add_field_contactstatus_phone_number.py
92b3a45c1c00040898605af926be5f2baa75b57c
[]
no_license
jasjitsingh85/beaconweb
08a2b97346aea6db87dd19567c39a0d99f383ae8
269c6683f759fd7e75d13ea9eec8ad63ee24df53
refs/heads/master
2021-01-13T03:43:09.308401
2016-12-24T16:12:15
2016-12-24T16:12:15
77,268,841
0
0
null
null
null
null
UTF-8
Python
false
false
24,940
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'ContactStatus.phone_number' db.add_column(u'beacon_contactstatus', 'phone_number', ...
5a610f06fbc3cf603a2ed76efec99e61edfc5378
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/350/78405/submittedfiles/testes.py
c0375b269d872716a49804d9bdd8ad65b628d857
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO c = input('Digite o valor de c: ') n = (c*9) print(n)
715dc05ef8ff9902ec23f1039df3e9c7fa5bbe74
a9ca484b422c802f02684ad64694212a7374a180
/devel/lib/turtlebot3_example/turtlebot3_server
e8c5800d6414be4bda9b9bbc6d47d9b985fbad01
[]
no_license
akash1306/mate_unity
791cd5fadc1fae10e01e6f577fef5c43098eb766
e947904f37cad6c814c9e5dfea0017a3d02a5b31
refs/heads/master
2022-12-10T11:22:59.709816
2020-08-30T10:29:34
2020-08-30T10:29:34
290,722,050
0
0
null
null
null
null
UTF-8
Python
false
false
577
#!/usr/bin/python3 # -*- coding: utf-8 -*- # generated from catkin/cmake/template/script.py.in # creates a relay to a python script source file, acting as that file. # The purpose is that of a symlink python_script = '/home/kajal/mate_unity/src/turtlebot3/turtlebot3_example/nodes/turtlebot3_server' with open(python_scr...
10051e7b6695576ce02e1731f8384c452f3e9597
08583f5a46dab2455ef707a91a342e6a30f62e8a
/advanced-web-scraping-2/14.py
d97c5ac81eb880454b2680bb8a8a6d3656c18d5e
[]
no_license
mahdi-asadzadeh/python-webscraping-simple-projects
924cfefcf1e88698bd76e09e2824da28a9460cb0
24f629f48921e7d047f5b5c0803e4d9b3ec31c86
refs/heads/main
2023-06-20T08:58:46.730938
2021-07-22T11:59:56
2021-07-22T11:59:56
388,445,419
3
0
null
null
null
null
UTF-8
Python
false
false
275
py
import requests url = 'http://www.webscrapingfordatascience.com/referercheck/secret.php' my_headers = { 'Referer': 'http://www.webscrapingfordatascience.com/referercheck/' } r = requests.get(url, headers=my_headers) print(r.text) print(r.headers) print(r.request.headers)
b8dc96f868b729cc7b8462228867ea99297e6c79
5f106b652fb2def72a5dac0f828f2ddb43b00b61
/datashape/run_test.py
f6e1f97d0948812727405fcfb69088d542dd1542
[ "BSD-3-Clause" ]
permissive
honnibal/anaconda-recipes
9631cf038fa1817279075159da7361d0e869f7e7
5b6aa944763019afd767aff07939051c538fd15d
refs/heads/master
2021-01-18T19:30:46.468145
2017-04-01T10:12:19
2017-04-01T10:12:19
86,897,632
3
0
null
2017-04-01T08:26:10
2017-04-01T08:26:10
null
UTF-8
Python
false
false
77
py
import datashape print('datashape.__version__: %s' % datashape.__version__)
608b91ef49bdcf91ae244f0073ec6a7bb4b05a22
87163acf1614292be250754f28114f89013f73a3
/HackerRank/Problem Solving/Implementation/Easy/Cut the sticks.py
400aa182819db47b8f08baf51c32151e0dddc50c
[]
no_license
khush-01/Python-codes
742a9d9966d2ceb3ad2e7c78e34ef88e55df955a
da3cae8df0aafe763399066eefc9b786538fdb35
refs/heads/main
2023-03-20T04:37:14.020134
2021-03-12T04:56:30
2021-03-12T04:56:30
346,941,048
2
0
null
null
null
null
UTF-8
Python
false
false
174
py
n = int(input()) arr = list(map(int, input().split())) while len(arr): print(len(arr)) low = min(arr) arr = [x for x in arr if x != low] for x in arr: x -= low
38bfd9428ec551d1e7378c0bed6889e115ea4cdb
a8499deff2fa4abde885891d655c3f53ab741d37
/rotkehlchen/typing.py
baf11f828d8959e799887993f4df71e0658772a7
[ "BSD-3-Clause" ]
permissive
georgerobescu/rotkehlchen
4c6d2cadcf8b1a8a20f33bb7352b3924a492af54
817c880b771b8daf5635b02642861dd9949689e2
refs/heads/master
2020-06-25T00:22:20.442607
2019-07-26T11:42:13
2019-07-26T11:42:13
199,137,746
0
0
BSD-3-Clause
2019-07-27T08:25:06
2019-07-27T08:24:59
Python
UTF-8
Python
false
false
3,836
py
from enum import Enum from typing import Dict, NamedTuple, NewType, Optional, Union from rotkehlchen.fval import FVal T_BinaryEthAddress = bytes BinaryEthAddress = NewType('BinaryEthAddress', T_BinaryEthAddress) T_Timestamp = int Timestamp = NewType('Timestamp', T_Timestamp) T_ApiKey = bytes ApiKey = NewType('ApiK...
09be8dca5ceacb21fe25c7dffea510e79c928207
2379e840d0a9e47331ac247f4d6164cdfd548cbd
/tools/docs/docload.py
6cdadb8d0f4de2a0db4459bf4ad0b6d8bf40ee44
[ "BSD-3-Clause", "PostgreSQL" ]
permissive
jberkus/pgweb
b9d04bc60da437f2f60c8e4cf844e0cfa601a160
fa07ed84b8708240264fe9f091b2087b7f872b8c
refs/heads/master
2020-04-03T10:12:04.734671
2017-05-11T13:00:07
2017-05-11T13:00:20
30,271,195
0
0
null
2015-02-03T23:49:04
2015-02-03T23:49:04
null
UTF-8
Python
false
false
3,730
py
#!/usr/bin/env python # Script to load documentation from tarballs import sys import os import tarfile import re import tidy from optparse import OptionParser from ConfigParser import ConfigParser import psycopg2 pagecount = 0 quiet = False re_titlematch = re.compile('<title\s*>([^<]+)</title\s*>', re.IGNORECASE) ...
76dc68fb3fe760087f98d3966455e9f50c8e0e40
c5d6e21744f10c6e57d58b57bba2763b82a9726b
/Bimestre_03_Aula_03/exercicios/04_somando_forcas.py
ccae92fe26f595c8832a0e1be2f97b2d84922e72
[]
no_license
valeriacavalcanti/ALP-2020-R
bf32af707d49db650deb6d122a1abdf58d94ae4f
62e0be861ad7439b99ae5d0b0e14d97c887424c7
refs/heads/main
2023-05-05T02:05:00.128872
2021-06-04T10:30:05
2021-06-04T10:30:05
316,784,824
0
0
null
null
null
null
UTF-8
Python
false
false
622
py
# declarar as matrizes matriz1 = [] for i in range(6): matriz1.append([0] * 4) matriz2 = [] for i in range(6): matriz2.append([0] * 4) matriz_soma = [] for i in range(6): matriz_soma.append([0] * 4) # ler os dados das matrizes for i in range(6): for j in range(4): matriz1[i][j] = int(input("M...
7b5cbe0847dd7ee161252a3f29692ab99f07de36
d7ccb4225f623139995a7039f0981e89bf6365a4
/.history/carts/models_20211010234636.py
41796b5b857bad7162f4bffa6392f2ca23d6f216
[]
no_license
tonnymuchui/django-mall
64fd4abc3725c1bd0a3dcf20b93b490fe9307b37
55c083d8433be3c77adc61939cd197902de4ce76
refs/heads/master
2023-08-23T04:59:20.418732
2021-10-13T15:59:37
2021-10-13T15:59:37
415,668,388
1
0
null
null
null
null
UTF-8
Python
false
false
344
py
from django.db import models # Create your models here. class Cart(models.Model): cart_id = models.CharField(max_length=255, blank=True) date_added = models.DateTimeField(auto_now_add=True) def __str__(self): return self.cart_id class CardItem(models.Model): product = models.ForeignKey(Produ...
ff2921be3e53bb57a802f21445f685d8aa6bbabf
bc441bb06b8948288f110af63feda4e798f30225
/notify_sdk/model/easy_flow/package_info_pb2.py
be3f54867be88fa1063e26c8f7b235927c5b2589
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
true
13,382
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: package_info.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobu...
9f29c6cd97e8f4ec92d968578340ad5c858fb023
be4459658d667c47eefeeb3cf689a678042edb94
/modules/ext/util/lua/packages/luaunit/luaunit/doit.py
b4e636abe621a2734eb4e4f3ce9b7ce2d3bef357
[ "Apache-2.0", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
kparr/RIFT.ware-1
7945174aa23ac1f7d74a7464b645db5824982fc3
6846108d70b80b95c5117fdccd44ff058ac605be
refs/heads/master
2021-01-13T08:36:03.751610
2016-07-24T21:36:15
2016-07-24T21:36:15
72,420,438
0
0
null
2016-10-31T09:11:27
2016-10-31T09:11:27
null
UTF-8
Python
false
false
2,796
py
import subprocess, sys, os, shutil, os.path, optparse VERSION='3.0' RELEASE_NAME='luaunit-%s' % VERSION RELEASE_DIR='release/' + RELEASE_NAME + '/' TARGET_ZIP=RELEASE_NAME + '.zip' TARGET_TGZ=RELEASE_NAME + '.tgz' REPO_PATH='d:/work/luaunit/luaunit-git/luaunit/' LUA50='d:/program/lua/lua50/lua50.exe' LUA51='d:/progra...
6bc2f2f74fa4f7f954d72f9f188aa154ec803c32
4f7aa44d21ae38093869e79e10f5cdc8842d48b7
/01-python-academy-intro-lab/exceptions_01.py
743b25bface618a473cf911dd91b8165a4e2d8b3
[ "Apache-2.0" ]
permissive
iproduct/intro-python
31e802c2c21a4df3361656f12d267ec52c2d6564
7e08e144da2907fcf45dc734ab4e896631625d75
refs/heads/master
2023-02-19T11:42:37.522624
2023-02-13T15:54:03
2023-02-13T15:54:03
128,980,155
5
1
null
null
null
null
UTF-8
Python
false
false
551
py
import sys class MyException(Exception): def __init__(self, *args): # Exception.__init__(self, *args) super().__init__(*args) def erroneuos(): try: return 1 / 0 except: print("Within except.") raise finally: print("Within finally.") if __name__ == "__...
6c6ca35bcb1cae919f48bc7f70104caabf953925
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_136/2329.py
bf535ce3f6a4ddf821921237facfb76044f407d5
[]
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
486
py
ipt = open('B-large.in').read().splitlines() cases = int(ipt[0]) fw = open('B-large.out','w') for i in xrange(cases): c_per_sec = 2.0 c,f,x = map(lambda x: float(x), ipt[i+1].split(' ')) just_wait = x / c_per_sec sub_total = 0 while True: #print just_wait sub_total += c/c_per_sec c_per_sec += f total =...
2ece9826a7c51f922007dd4b37ea17ae54963ccc
c609730a43596a2d3303f072fc97d9cf681fac7b
/cagey/kache/kache/spiders/woniuhc.py
954c5f0dbca656d7d140c892215686432f16e2ad
[]
no_license
sinnettluo/ChenProject
5403311c0c7b78c484145e16d692abff00d2a110
0e33ecf1683afb22f1deb4bd54294c41aed8a46b
refs/heads/master
2023-03-22T23:48:08.430178
2020-09-02T15:05:02
2020-09-02T15:05:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,182
py
# -*- coding: utf-8 -*- import scrapy import time import json from copy import deepcopy from kache.items import woniuItem class WoniuhcSpider(scrapy.Spider): name = 'woniuhc' allowed_domains = ['woniuhuoche.com'] # start_urls = ['http://woniuhuoche.com/'] @classmethod def update_settings(cls, set...
b3305b39cd894d4e5bb295a10bedfc5a27e0d140
e358b0c801b0173e2b5fe31820af2a45d5fff8ae
/altair_saver/savers/tests/test_html.py
6899fec8d9fd514217be3d235d24a1e5c2dde027
[ "BSD-3-Clause" ]
permissive
steevensmelo/altair_saver
a3270d2a4c2615c0b86b6d10f87e67f04c3bd40f
d8dfc9a8d40b3ad20d152e014b37e3b1e6d512ef
refs/heads/master
2022-06-11T11:53:12.329070
2020-05-13T14:50:11
2020-05-13T14:50:11
263,651,277
0
0
BSD-3-Clause
2020-05-13T14:19:45
2020-05-13T14:19:44
null
UTF-8
Python
false
false
5,557
py
import io import json import os from typing import Any, Dict, IO, Iterator, Optional, Tuple from altair_data_server import Provider from PIL import Image import pytest import selenium.webdriver from selenium.webdriver.remote.webdriver import WebDriver from altair_saver import HTMLSaver from altair_saver._utils import...
d1ec62a1a39029406e4931b1030ca1fc287e0ef6
8985ee04b6d9af28c324e1567f73b114853c3f24
/src/ts_models/discrete_sparse/tsb.py
077e943ef31160d8dae4d5fdca012be68999e6f5
[]
no_license
longgb246/MLlearn
97f242dda7a43b2b1fee8458c24f121dcbb05e08
db2d0b05020a1fcb9f0cfaf9386f79daeaad759e
refs/heads/master
2020-03-29T14:02:43.778113
2019-04-04T02:53:59
2019-04-04T02:53:59
149,995,653
0
0
null
null
null
null
UTF-8
Python
false
false
12,492
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/10/19 9:11 # @Author : zhengdepeng # @concat : [email protected] # @File : crost.py.py # @Software: PyCharm """ description:function to forecast intermittent demand or slow moving items series / this function Reference :R version package,http://kou...
360826c9d54c53412f463d98e4c247151a877b01
16d159d6d3fe69d513717caad3e2c21320f93224
/AtCoder/ABC/ABC101-150/abc141/abc141b.py
23b49e7105c52df065df47863ad2a802a189189d
[]
no_license
tsushiy/competitive-programming-submissions
d4f068a5157c0de0f1822367e0ca66dd978e43f9
9011d855d9252134179cc9cc8f328f6e0ca32407
refs/heads/master
2023-04-11T08:34:01.015316
2021-04-11T15:16:17
2021-04-11T15:17:35
175,807,862
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
s = input() flag = True for i, e in enumerate(s): if i%2==0 and e not in "RUD": flag = False elif i%2==1 and e not in "LUD": flag = False if flag: print("Yes") else: print("No")
6e6e1991a34c11354f69814d4470d27f07744b55
8e02228b5857d876de244d37b1d6ec3bbd21227e
/python_modules/dagit/dagit_tests/test_debug_cli.py
8131baa4613455e33bad678940c7646f893f743e
[ "Apache-2.0" ]
permissive
ChocoletMousse/dagster
4af255d5ab99c25d1a2be379a5bbd83fa3221b64
a256cb43cde0ab5a800a87ee1f55de560587a4ab
refs/heads/master
2022-12-26T00:04:31.172150
2020-09-25T21:36:15
2020-09-26T02:15:35
297,765,844
1
0
Apache-2.0
2020-09-22T20:35:23
2020-09-22T20:35:22
null
UTF-8
Python
false
false
1,226
py
from os import path from click.testing import CliRunner from dagit.debug import dagit_debug_command from gevent import pywsgi from dagster import execute_pipeline, lambda_solid, pipeline from dagster.cli.debug import export_command from dagster.core.test_utils import instance_for_test @lambda_solid def emit_one(): ...
61b8dbbbc2d89a236263828285aac5e64b2dec48
e8d719fe45dfbff9cbbc4ed872832cec6cabaca6
/128_Longest_Consecutive_Sequence.py
1ccccaf698c6be4b9c5f01f29d570fac2016dac6
[]
no_license
nlfox/leetcode
64f4f48d7f4be6df0542e51cc7037df40bf184a3
d61363f99de3d591ebc8cd94f62544a31a026d55
refs/heads/master
2020-12-21T01:43:01.792899
2016-11-14T23:10:12
2016-11-14T23:10:12
56,680,839
2
0
null
2016-05-17T17:16:37
2016-04-20T11:19:58
Python
UTF-8
Python
false
false
500
py
class Solution(object): def longestConsecutive(self, nums): """ :type nums: List[int] :rtype: int """ nums=list(set(nums)) nums.sort() maxCnt = 1 cnt = 1 for i in xrange(1, len(nums)): if nums[i] - 1 == nums[i - 1]: ...
08a6fe350bd23f142bad00a4690285eba2230d71
a9dc497a723917d4256ef15b2e9c3cf88a3fae4f
/GPinv/mean_functions.py
e2f7bd94404647f0cc8161fe0941bcca89455f3f
[ "Apache-2.0" ]
permissive
chaoshunh/GPinv
83b8773870f7ccc8a636fc88ac9a96acfa306c54
e46964991459cb43752cd344c18be0e197d439f8
refs/heads/master
2023-03-16T06:42:39.966449
2016-10-15T05:39:58
2016-10-15T05:39:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,458
py
import tensorflow as tf import numpy as np from GPflow import mean_functions from GPflow.param import Param,ParamList from GPflow._settings import settings float_type = settings.dtypes.float_type np_float_type = np.float32 if float_type is tf.float32 else np.float64 class MeanFunction(mean_functions.MeanFunction): ...
5e6cdf4edc9dc9c9d2f8fb40591b1ad2f813a64d
05805ab879654cdcf61df3653847f435b624dc77
/Dictator_service/bin_gui/main_class_based_backup.py~
45eccae17af540925ac58c58102ba94e6188ffab
[]
no_license
Wuwqhnsya/Dictator
3d57db6bc0138464884ddc9fe7378907ab86e3ef
45388fec03a4acdac3620611b3bccfa3c991d65f
refs/heads/master
2020-04-28T21:57:39.309165
2019-01-28T19:10:28
2019-01-28T19:10:28
175,600,478
1
0
null
2019-03-14T10:34:02
2019-03-14T10:34:02
null
UTF-8
Python
false
false
31,361
#!/usr/bin/python import time import threading import time import nmap import multiprocessing import os import sys import ConfigParser #import mysql.connector import MySQLdb import atexit import IPtable import texttable as tt import Simple_Logger r = '\033[31m' #red b = '\033[34m' #blue g = '\033[32m' #green y =...
8f1ad2f8765959e86316c7bf0ab8d91cc8ace7c1
8fc2ab3d29a30e603e19b30bb9517928de529167
/recursion_count7.py
da54e1e6515b053de42599e4a335a9a73680a757
[]
no_license
rushilchugh/Practise
35a9861bec6786580dc0a440eb25d78e43cb7bc9
98fd593b95dad641bef1d519c6c6ed1daaae630f
refs/heads/master
2020-03-13T21:14:14.013604
2018-04-27T12:23:50
2018-04-27T12:23:50
131,291,684
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
__author__ = 'Rushil' def count7(n): if n == 0: return 0 if n%10 == 7: return 1 + count7(n//10) else: return count7(n//10) print(count7(77177))
63c238fb79bd102fc4c18ace975c001acfa866d3
cc1b87f9368e96e9b3ecfd5e0822d0037e60ac69
/dashboard/dashboard/pinpoint/models/change/commit.py
aca059a9444f5d268ace099bd531f27d6f1d8525
[ "BSD-3-Clause" ]
permissive
CTJyeh/catapult
bd710fb413b9058a7eae6073fe97a502546bbefe
c98b1ee7e410b2fb2f7dc9e2eb01804cf7c94fcb
refs/heads/master
2020-08-19T21:57:40.981513
2019-10-17T09:51:09
2019-10-17T18:30:16
215,957,813
1
0
BSD-3-Clause
2019-10-18T06:41:19
2019-10-18T06:41:17
null
UTF-8
Python
false
false
12,099
py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import print_function from __future__ import division from __future__ import absolute_import import collections import datetime import re f...
472044e752d68a4fdb699ce05e0e059b80d169c0
7882ca50a06197dcbf0490c0318083e0a90f9f84
/cython/wrap_arrays/test_cython_wrapper.py
366b02fbedb75e936290d32cd6d39165d607e3ba
[ "MIT" ]
permissive
hannesk95/Python-Interface-Cpp
c8637a4c0c597b9b56facafeba7888ebc5ecb04a
398eab0c6e7f5e0358edb6644c71b5fdc6b2606a
refs/heads/master
2022-03-08T15:35:58.597336
2019-11-09T18:11:10
2019-11-09T18:11:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,106
py
# coding=utf-8 import cyfastlz def test_compress_and_decompress_roundtrip(): # Beginning of the United States Constitution text ="""We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence, promote the general Welf...
2d90be2e1a6b6bc6c2fe03c9b529449c1127a540
fd0604a74b72e273e194cae9145b4a299d2e1858
/cogs/helpers/context.py
e5289d13bd928bfaecd26cf9b74ac09ac4cc12da
[]
no_license
DuckHunt-discord/DuckHunt-Community-Rewrite
4610f0f5a503ae072b6092ddd031264842c6919c
c53ed8c994527052bcf588824ce6519280974056
refs/heads/master
2020-03-23T05:14:02.442187
2018-11-03T00:37:17
2018-11-03T00:37:17
141,131,990
0
0
null
null
null
null
UTF-8
Python
false
false
776
py
import logging from discord.ext import commands class CustomContext(commands.Context): def __init__(self, **attrs): super().__init__(**attrs) @property def logger(self): # Copy that to log if self.channel: cname = self.channel.name else: cname = "...
670cf57ba7c63646b289b947011568ca7a22145d
9df2b97e7010995945565dc29c41a3fde41720d3
/plugin.video.salts/default.py
f0c927345ce1bb40fd038689504f5aa516d904b9
[]
no_license
Kodi-4-Beginners/tknorris-beta-repo
8c00f5e1e80c09279c4f91794b9041a27d1815a0
9e76f396fb0832c2ef4f204fc95b63af6763f405
refs/heads/master
2021-01-17T07:55:26.934163
2015-02-04T02:49:58
2015-02-04T02:49:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
94,741
py
""" SALTS XBMC Addon Copyright (C) 2014 tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. T...
a87152f3a008ec4832177a68b36f5aa27bf07c1b
cda43bf6a84f7e55fab26aa70cda934683a51fe5
/MainMajor/cifar_loader.py
fa597d04eb30e7dc0e3b560acb21758dfb94fd31
[]
no_license
nikolaosdionelis/NeuralNetworksNNs
abb55622882e31c8d130a8986868b3d19ede186f
8a217490ad5bb3f7fccf4002c6b43a06c1e562fc
refs/heads/master
2022-11-13T00:50:23.578197
2020-07-12T18:52:20
2020-07-12T18:52:20
279,042,013
5
1
null
null
null
null
UTF-8
Python
false
false
3,034
py
""" Utilities for downloading and unpacking the CIFAR-10 dataset, originally published by Krizhevsky et al. and hosted here: https://www.cs.toronto.edu/~kriz/cifar.html """ import os import sys import tarfile from six.moves import urllib import numpy as np def maybe_download_and_extract(data_dir, url='http://www.cs.t...
96d43f1a35c9c9165c78ba179013dff2edcaf777
69dfda87224e60e2e6a6c69a393ff6f62d533049
/common/metrics.py
33f260401ceb6c34531f830b1b861ad8ab67f499
[]
no_license
markmo/federated_trainer
49d6de3ccff59575bddde6fc38845e2100c32990
b2a1733a914e3c43d4ab7393fea30515389bf8a4
refs/heads/master
2020-05-19T07:10:38.553656
2019-05-11T10:46:00
2019-05-11T10:46:00
184,891,680
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
import numpy as np def mean_squared_error(y_pred, y_true): return np.mean((y_pred - y_true) ** 2)
3ed68fbcf32ccdb5921f710be52a098dc739463d
c46754b9600a12df4f9d7a6320dfc19aa96b1e1d
/examples/research_projects/xtreme-s/run_xtreme_s.py
f00286f3d2b831ad00d7e351354baf7ed9f578c8
[ "Apache-2.0" ]
permissive
huggingface/transformers
ccd52a0d7c59e5f13205f32fd96f55743ebc8814
4fa0aff21ee083d0197a898cdf17ff476fae2ac3
refs/heads/main
2023-09-05T19:47:38.981127
2023-09-05T19:21:33
2023-09-05T19:21:33
155,220,641
102,193
22,284
Apache-2.0
2023-09-14T20:44:49
2018-10-29T13:56:00
Python
UTF-8
Python
false
false
38,649
py
#!/usr/bin/env python # coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. 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/LI...
c377555c2f0b5965254d6b7ac73814194212cf28
2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5
/archive/298BinaryTreeLongestConsecutiveSequence.py
92d9aa4d93f3055c85599dd48eacc42d05e24958
[]
no_license
doraemon1293/Leetcode
924b19f840085a80a9e8c0092d340b69aba7a764
48ba21799f63225c104f649c3871444a29ab978a
refs/heads/master
2022-10-01T16:20:07.588092
2022-09-08T02:44:56
2022-09-08T02:44:56
122,086,222
0
0
null
null
null
null
UTF-8
Python
false
false
1,411
py
# coding=utf-8 ''' Created on 2017�?6�?16�? @author: Administrator ''' from data_structure.Tree import list_to_tree # Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def longe...
31179b3b337c588adca95e89088525bd446ce1e8
b01182728eb4a657f9bd8974ba8508010cc8173e
/manage.py
314bde693826fb496c2d2cd9215db691ca17844c
[ "BSD-3-Clause" ]
permissive
pombredanne/django-buildbot
459a6d8a942c8c5f857626f4772010a3aaba2a6e
660ec35473aec081428a115eab6460f5a1cd2a0d
refs/heads/master
2021-01-17T19:57:01.296286
2014-07-29T06:25:03
2014-07-29T06:25:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djbuildbot.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
36c7630adaee0011f298f2b5daaa682935d10da2
76b983258793d294b81791ebe72591bfebf78625
/tools/pesearch.py
d6b57f8548ff6441b7acce963e476872846cc4ae
[ "BSD-2-Clause" ]
permissive
lotusexpeditor/syringe
18ac9cb800a7fefb7d67e31936db6a84e47df9eb
34a8386b90f534f9a856d0a436bba04dbf5100bd
refs/heads/master
2023-02-08T10:08:20.295797
2020-12-27T00:06:09
2020-12-27T00:06:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,743
py
import os,sys import pecoff from ptypes import utils def traverse_address(address): def edges(self, address=address, **kwargs): if not isinstance(self, ptypes.ptype.container): return for item in self.value: if item.contains(address): yield item c...
e38298b3db6bf24895dd9139bc51769fbef8cd78
37f10a692d0e1a9a396f505af60b04f7db44d3e1
/01 Algorithms/01 Warmup/CompareTheTriplets.py
9b18b2dcebec59ded6a89ae7c2987fd725d10ec4
[]
no_license
nbrahman/HackerRank
95842f5dbda2ab8aedc7808831c12b9f92a37e03
ec5d42d7e578f01efba87a099f42e82512704dca
refs/heads/master
2021-01-19T11:53:59.685444
2017-07-29T16:04:21
2017-07-29T16:04:21
88,003,548
0
0
null
null
null
null
UTF-8
Python
false
false
1,616
py
''' Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from to for three categories: problem clarity, originality, and difficulty. We define the rating for Alice's challenge to be the triplet , and the rating for Bob's challenge to be the triplet . Y...
8064b3ab94bba0206c0df6abb5ec6f15205ccb42
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2023_06_01_preview/operations/_registry_environment_containers_operations.py
3d50fb87236f18b2d65c3947e9abaf674c8455ba
[ "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-python-cwi", "LGPL-2.1-or-later", "PSF-2.0", "LGPL-2.0-or-later", "GPL-3.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "Python-2.0", "MPL-2.0", "LicenseRef-scancode-other-copyleft", "HPND",...
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
29,392
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
7f7e6202d1b1aa73181f18176a9a42fd131c5023
9cef4ef20efd0eec18846242e78be0b9be144c30
/homework/20200717/子进程中修改全局变量.py
9a7989b2eec30662def98571d1867a21fc6cbba9
[]
no_license
Vaild/python-learn
4e6511a62a40b6104b081e0f8fe30f7d829901f5
5d602daf3b4b7e42349b7d9251df1f4dd62c299c
refs/heads/master
2022-11-19T00:47:48.808384
2020-07-20T14:27:49
2020-07-20T14:27:49
279,044,379
0
0
null
null
null
null
UTF-8
Python
false
false
1,394
py
#!/usr/bin/python3 # coding = UTF-8 # code by va1id # 定义全局变量 import os import time from multiprocessing import Process N= [1, 2] def change_process(): print('未修改之前的列表:', N) print('列表此时的ID是:', os.getpid()) for i in range(10): N.append(i) print('修改之后的列表:', N) print('修改之后的ID:', os.get...
91bebb09bc6024dfa9e4392aaab0a55020f063b4
d7f33fd19ecc59aadebe4f50db605ad39b967dbd
/disambig_creation.py
36a957f12832a0936243132decf3d61f9165915d
[]
no_license
juansaenz/leaguepedia_util
9687ab3634ccdf022c637323dceb0638ed5ece88
77e3dfe501b333b3a8dc2a04f207b8bf0858dbc3
refs/heads/master
2020-08-05T19:01:30.131055
2019-10-04T11:34:01
2019-10-04T11:34:01
212,667,697
0
0
null
2019-10-03T19:54:58
2019-10-03T19:54:58
null
UTF-8
Python
false
false
7,129
py
import re, threading, mwparserfromhell from log_into_wiki import * ################################################################################################# original_name = 'Starky' irl_name = "Juan Carlos Cano" new_name = '{} ({})'.format(original_name, irl_name.strip()) init_move = True blank_edit = False l...
fe8bc6b1e305d6f955d5f51ccdbcbb03567c3c5f
33787153c4f85cb626cf16e0e4d40d5970df2871
/reservation_system/order/admin.py
873c45edd8890e68e2a1d428784197d437bc8309
[]
no_license
nazaninsbr/E-Commerce-Website
93e14576d69618f749d7fd6f19b6b1b989fa47a8
46bed8c58f4adac37dc4ddd881f57e694961b9b2
refs/heads/master
2021-09-22T14:20:56.940950
2018-09-11T05:01:23
2018-09-11T05:01:23
125,370,560
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
from django.contrib import admin from .models import Order, OrderItem class OrderItemInline(admin.TabularInline): model = OrderItem raw_id_fields = ['product'] class OrderAdmin(admin.ModelAdmin): list_display = ['id', 'first_name', 'last_name', 'email', 'address', 'postal_code', 'department', 'paid', 'c...
99addf12f6477d42e6cc49078268d5e6afdf5f2d
d7016f69993570a1c55974582cda899ff70907ec
/sdk/devcenter/azure-developer-devcenter/samples/create_environment_sample.py
637a5e178d90414987a7ffcd3707ca295f73c41e
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
3,239
py
# coding=utf-8 # -------------------------------------------------------------------------- # # 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 ...
e48457d278580c6a39e5c28f37e35ec482015823
5b58a332c6bea0688d196aabedfc8ccc49bdd134
/experiments/cnn_short_embeddings/get_embeddings.py
c2dfad97b2a1949c516d77ecfb2e88218654e2d3
[]
no_license
ver228/classify_strains
5420c2b3ea8e93b6ba46900c385f52f664f1cbd7
dc61e7431410e25ab7c2da0acb6d090cc2ebaabb
refs/heads/master
2021-09-20T08:52:14.505868
2018-08-07T12:26:22
2018-08-07T12:26:22
108,448,619
0
1
null
null
null
null
UTF-8
Python
false
false
5,628
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Nov 17 14:57:25 2017 @author: ajaver """ import sys import os import pandas as pd import torch import tqdm import numpy as np import tables #Be sure to use abspath linux does not give the path if one uses __file__ _BASEDIR = os.path.dirname(os.path.abs...
e563aed309c589208366c684765d85e75140080d
78a28bd6b95041bfe67d8aa6a3a3c111911afaab
/03.Complete Python Developer - Zero to Mastery - AN/01.Python Basics/13.1 Exercise Repl.py
1e15204ddbb52cbedf68211f4ad2a6edf0cfeb2c
[ "MIT" ]
permissive
jailukanna/Python-Projects-Dojo
8200a60ab925bf796bd39cb1977e6f0e0a575c23
98c7234b84f0afea99a091c7198342d66bbdff5b
refs/heads/master
2023-03-15T06:54:38.141189
2021-03-11T08:17:02
2021-03-11T08:17:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
counter = 0 counter += 1 counter += 1 counter += 1 counter += 1 counter -= 1 counter *=2 #Before you click RUN, guess what the counter variable holds in memory! print(counter) #6
26f999a48d12ee717570e8a1ae1e7e96e06c6f69
245b0329360b18c32510a6d13b2650fd6ca752cc
/ch03/trendline.py
14d037ac047d819a1524cf921cf4e087b23e6a60
[]
no_license
TanUkkii007/numpy-begginers-guide
56c315d207f681bd4e6d70abeac82bfc0db2bad5
6d483bc8672947a06d4240c4379f00183da46d8b
refs/heads/master
2021-01-17T08:08:07.113571
2016-06-29T16:45:59
2016-06-29T16:45:59
61,984,775
0
0
null
null
null
null
UTF-8
Python
false
false
1,410
py
import numpy as np import matplotlib.pyplot as plt def fit_line(t,y): '''Fits t to a line y = at + b''' A = np.vstack([t, np.ones_like(t)]).T return np.linalg.lstsq(A, y)[0] # Determine pivots h,l,c = np.loadtxt('data.csv', delimiter=',', usecols=(4,5,6), unpack=True) pivots = (h+l+c)/3 # Fit trend line...
b45c9b02f05aa2a1d529bacf9ec69c1b70e7e35b
8afb5afd38548c631f6f9536846039ef6cb297b9
/MY_REPOS/Data-Structures-Algos-Codebase/ALGO/__PYTHON/YT_DOWN.py
2e47b44e59c00793d16628f53a9120871d31a7a4
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
310
py
simport pafy url = "https://www.youtube.com/watch?v=OE7wUUpJw6I&list=PL2_aWCzGMAwLPEZrZIcNEq9ukGWPfLT4A" video = pafy.new(url) print(video.title) stream=pafy.new(url).streams best=video.getbest() for i in stream: print(i) print(best.resolution,best.extension) print(best.url) best.download(quiet=False)
2e06b237f8de00ed2eda46de62f6d4a013feeb58
5989e503a733e8b29f4c502008446a75c2b43ff8
/src/geofr/api/serializers.py
e6b9048e6acbf53169edb9aa681077ec2224fb2d
[]
no_license
samuelpath/aides-territoires
399a6a7b0607ef5a8d2b327247446b239f5b1a42
5793bd49d7157a34e08c29e56a46e1e3ead0651f
refs/heads/master
2022-12-20T14:35:18.671563
2020-08-21T08:00:33
2020-08-21T08:00:33
288,424,578
0
0
null
2020-08-18T10:27:17
2020-08-18T10:27:16
null
UTF-8
Python
false
false
388
py
from rest_framework import serializers from geofr.models import Perimeter class PerimeterSerializer(serializers.ModelSerializer): id = serializers.CharField(source='id_slug') scale = serializers.CharField(source='get_scale_display') text = serializers.CharField(source='__str__') class Meta: ...
c9b4bbec3144cad904dfdcd615ec193095982826
0d9de851c1300e3e32d0cc451c11056c8d66000b
/src/lib/simpleFunctions/__init__.py
c80d4494c99e377f9f42fe8c5b12f188feb330b1
[ "MIT" ]
permissive
sankhaMukherjee/vtk
3fa91641c832f4260514588425474a42dce51d75
fc6ae8b4e56d62796a1a0d28e0c7dce598114103
refs/heads/master
2022-12-11T02:02:08.036116
2020-02-24T15:51:41
2020-02-24T15:51:41
232,733,822
0
0
MIT
2022-12-08T03:24:47
2020-01-09T05:59:01
Python
UTF-8
Python
false
false
112
py
"""simpleFunctions This contains simple functions that can be used for creating more complex visualizations """
d9213d2c6b72b46b327ce6a9697cc507a3850b4e
c29cdc64f42eae3bc7d584a7b9b84961ce09da04
/bitcoinx/__init__.py
d8c08b3d58a13838d07a60b0f1dbabaa6c15fe86
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
msinkec/bitcoinX
d379e32e9dc0f43700710032ad0ce7ffca2e398d
26ec8a8a8c2a6423e0438dea9918c740c96f5eb2
refs/heads/master
2023-04-28T18:52:12.072225
2021-05-11T11:19:44
2021-05-11T11:19:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
from .address import * from .base58 import * from .bip32 import * from .chain import * from .consts import * from .errors import * from .hashes import * from .interpreter import * from .keys import * from .misc import * from .mnemonic import * from .networks import * from .packing import * from .script import * from .s...
2db47ba68f2ea413bcfb86f6c1fe52f077823732
98b1956594921aeef6e4b3c0f5b15703c3eee6a7
/atom/proton/python/proton_api/models/purchase_calculator_horizon_request.py
b7590bee1dea46714dec17a3678d38a86cb52947
[ "Apache-2.0" ]
permissive
sumit4-ttn/SDK
d4db3dcac077e9c9508a8227010a2ab764c31023
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
refs/heads/master
2022-11-25T14:05:16.911068
2020-08-09T17:31:55
2020-08-09T17:31:55
286,413,715
0
0
Apache-2.0
2020-08-10T08:03:04
2020-08-10T08:03:03
null
UTF-8
Python
false
false
11,099
py
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.7.18 Contact: [email protected] Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class Purc...
ed146779588cd7189d51bb5d520952ed956f518a
7ff0077a55f6bf4a74704e430f354aeabaae3e0b
/tensorflow_probability/python/distributions/relaxed_onehot_categorical_test.py
a92246b95c13587324e028dd9841e11f232c49ad
[ "Apache-2.0" ]
permissive
markaduol/probability
50a1d97810d11c747bd9546f977b2937c9e04d78
8af21dff96502a5bdc01b1be2c595043a3efc5d1
refs/heads/master
2020-03-29T20:50:26.001297
2018-09-25T21:51:10
2018-09-25T21:51:50
150,333,784
0
1
Apache-2.0
2018-09-25T21:54:49
2018-09-25T21:54:49
null
UTF-8
Python
false
false
6,579
py
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
6741d8af6bd64f44ce8282efeb4594958db494e4
1fc9a12c86be4e440f4f0d95c8b871c79df07545
/ML Libariries/python_pandas/dataframe_row.py
b1f101d5632b2dcc45428ad701ace69103a14311
[]
no_license
Rohit-Gupta-Web3/Articles
a56e7f1b36d6d5efd846eec2e1a4036716ac16eb
0f584916e065059d4dd1e95e7de874a7830fdff4
refs/heads/master
2023-05-14T02:50:17.817951
2020-07-26T06:44:10
2020-07-26T06:44:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
import pandas as pd data = {'Name':['C','Sharp','Corner'], 'Age':[20,21,22], 'Address':['Delhi','Kanpur','Tamil Nadu']} df = pd.DataFrame(data) data1= df.loc[0] print(data1)