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
f564700cdfd0e1bf8abdaccfd4573018373190c7
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_locallog_syslogd_setting.py
a18bf7256e012bbdd51940685d4d6cc86acf3d10
[ "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
12,332
py
#!/usr/bin/python from __future__ import absolute_import, division, print_function # Copyright 2019-2020 Fortinet, Inc. # # 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 ...
9957cfa6dcae5f7c12edbbbee6687a70d54e3523
0fc2b99fd8414dbce5f1f6057b9b800c968d5d05
/lpbio/swarm/__init__.py
293bff76afe1cd97181eb75f0eed192cfe8d24a1
[ "MIT" ]
permissive
widdowquinn/lpbio
9df898cb9580f62da1f66d5736cbf7a984633561
8b95642396d05a56c1c54389e3de6d88d7cbffb5
refs/heads/master
2020-03-29T02:08:56.675473
2019-11-07T14:27:44
2019-11-07T14:27:44
149,422,654
0
0
null
null
null
null
UTF-8
Python
false
false
5,395
py
# -*- coding: utf-8 -*- """Code for interaction with the Swarm clustering tool.""" import os import shlex import shutil import subprocess from collections import namedtuple from lpbio import LPBioNotExecutableError, is_exe class SwarmError(Exception): """Exception raised when swarm fails""" def __init__(s...
7f128626999fdb25a08a0b49abd7399c216ba13b
4c83b4d7aca6bbcd15b922ad7314440fea7c9a70
/2020-07-27_modo_horario_cp_onda1_10d/script_modo_horario_2020-03-05_fchk_1036.py
d462e860f46dceffa88ab39003f27bd308ae8ade
[]
no_license
poloplanejamento/odmatrix-joinville
63b60a85055700698cdb590c181e7c8a4d5c7361
be7ce0814fb9dad2d289cd836dde51baa9c0850d
refs/heads/main
2023-01-23T11:43:45.451126
2020-12-10T23:17:58
2020-12-10T23:17:58
320,402,809
0
0
null
null
null
null
UTF-8
Python
false
false
2,339
py
#!/usr/bin/env python3 # Bibliotecas from http.client import HTTPSConnection from base64 import b64encode import json import csv import pandas as pd # Variáveis projectID = "40" # ID do projeto, conforme mostrado no frontend Web c = HTTPSConnection("api.odmatrix.app") userAndPass = b64encode(b"fe6b53f0280443d5bd4...
10c9a1c4063a9dbc167bea682133f4b74469d7c2
bce4a906faebfcab5db0e48ad587841d9ef3e74c
/train.py
6b93bc7a9fa165787181e7fd0a4ad5c992af7b36
[ "MIT" ]
permissive
scofield77/pytorch-action-recognition-toy
aecddd6da3c032ca25c2bd1facf6fc8f6d72b4e4
de0f8820c40d09d34a61849ee572f8af37f5725d
refs/heads/master
2020-07-20T21:39:46.453236
2019-03-05T00:52:39
2019-03-05T00:52:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,463
py
import torch import numpy as np import torch.nn as nn import torch.utils.data from net import ActionLSTM from data import ActionDataset from tensorboardX import SummaryWriter if __name__ == '__main__': batch_size = 8 dataset = ActionDataset() data_loader = torch.utils.data.DataLoader(dataset, batch_size=ba...
a24a2db0228e5412adc4204bef7d76d48aec585c
7897caaabb1a963b98e723a6abfc53b99d300a86
/view/widgets/gallery/gallery.py
f183aba043c9138771a54a844dad6fd3c001e1d8
[ "MIT" ]
permissive
Wajdi-Mabroukeh/CvStudio
f6983c1372c29930e23c8a0d1775193cebf045be
b798ef7b3db7505a151f2df9cf55a6ce5828baa4
refs/heads/master
2021-04-20T14:10:08.228504
2020-03-20T02:34:34
2020-03-20T02:34:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,327
py
import mimetypes import os from enum import Enum,auto import cv2 import dask import imutils import numpy as np from PyQt5 import QtGui,QtCore from PyQt5.QtCore import QObject,QSize,pyqtSignal,QThreadPool from PyQt5.QtGui import QPixmap from PyQt5.QtWidgets import QWidget,QGridLayout,QLabel,QLayoutItem,QVBoxLayout from...
df9f2ebddc59d18e8456ed82a9f87bc2a8b14002
74081581575e80b2b0f6b75ba912d58ea4f37ac6
/maskrcnn_benchmark/modeling/rpn/inference.py
26c6cbe68d37d714dcd22effb92a28c06445a4ba
[]
no_license
youngfly11/LCMCG-PyTorch
5f6b9f231613b86ac7b250ca0f34229402e1615e
e95299b9a9f1b13e21750ef0dcde0941d703d009
refs/heads/master
2021-10-25T19:29:12.967318
2021-10-25T03:35:14
2021-10-25T03:35:14
221,908,808
56
12
null
null
null
null
UTF-8
Python
false
false
8,755
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from maskrcnn_benchmark.modeling.box_coder import BoxCoder from maskrcnn_benchmark.structures.bounding_box import BoxList from maskrcnn_benchmark.structures.boxlist_ops import cat_boxlist from maskrcnn_benchmark.structures.boxlist_o...
f13ffc91ce07bbf34c92634a9fc7e5c133c1bdbe
f337bc5f179b25969ba73e7680ffb0a0616e3b97
/python/BOJ/1XXX/1525.py
230082c879b52617c741e0d9d696d6414422de10
[]
no_license
raiders032/PS
31771c5496a70f4730402698f743bbdc501e49a3
08e1384655975b868e80521167ec876b96fa01c8
refs/heads/master
2023-06-08T10:21:00.230154
2023-06-04T01:38:08
2023-06-04T01:38:08
349,925,005
1
0
null
null
null
null
UTF-8
Python
false
false
74
py
""" https://www.acmicpc.net/problem/1525 1525.퍼즐 골드2 풀이2. """
4a9d371ca2d986c987d3aff9a4005a5dd3da1364
eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6
/ccpnmr2.4/python/paris/aria/AriaRunFrame.py
389054dd281b65767174a9163b4c4474e8987a19
[]
no_license
edbrooksbank/ccpnmr2.4
cfecb0896dcf8978d796e6327f7e05a3f233a921
f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c
refs/heads/master
2021-06-30T22:29:44.043951
2019-03-20T15:01:09
2019-03-20T15:01:09
176,757,815
0
1
null
2020-07-24T14:40:26
2019-03-20T14:59:23
HTML
UTF-8
Python
false
false
11,914
py
import os, sys import Tkinter from memops.gui.Button import Button from memops.gui.DataEntry import askString from memops.gui.Entry import Entry from memops.gui.Frame import Frame from memops.gui.FileSelectPopup import FileSelectPopup from memops.gui.FileSelect import FileType f...
5fe28bbb5bc93700043f88a007f3546307b639c3
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/class_def_attr-big-240.py
b5bd95ff2c12b474eee61f9edfe88fbe2ca06b44
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,288
py
class A(object): x:int = 1 class A2(object): x:int = 1 x2:int = 1 class A3(object): x:int = 1 x2:int = 1 x3:int = 1 class A4(object): x:int = 1 x2:int = 1 x3:int = 1 x4:int = 1 class A5(object): x:int = 1 x2:int = 1 x3:int = 1 x4:int = 1 x5:int = 1 class ...
35e4783fdc79bd2c34545d469bcb5e0bd5cd5ee1
969fed6b9f4c0daa728bda52fea73d94bda6faad
/fakeTempControl/oxford/SIM_MERCURY.py
8052e93e5bcb55584ef3d3095d82cb5133ffb948
[]
no_license
ess-dmsc/essiip-fakesinqhw
7d4c0cb3e412a510db02f011fb9c20edfbd8a84f
ad65844c99e64692f07e7ea04d624154a92d57cd
refs/heads/master
2021-01-18T22:50:50.182268
2020-10-01T08:39:30
2020-10-01T08:39:30
87,077,121
0
0
null
2018-12-07T08:43:00
2017-04-03T13:28:23
Python
UTF-8
Python
false
false
4,643
py
#!/usr/bin/env python # vim: ft=python ts=8 sts=4 sw=4 expandtab autoindent smartindent nocindent # Author: Douglas Clowes ([email protected]) 2013-06-03 from twisted.internet.task import LoopingCall from twisted.internet import reactor from twisted.python import log, usage from MercurySCPI import MercurySCPI as MYBAS...
47db47b32423507921839a5579f5c66157eed44b
d115cf7a1b374d857f6b094d4b4ccd8e9b1ac189
/pyplusplus_dev/pyplusplus/_logging_/__init__.py
a888e10fb87659587d0fef6b90646c31533e1bb1
[ "BSL-1.0" ]
permissive
gatoatigrado/pyplusplusclone
30af9065fb6ac3dcce527c79ed5151aade6a742f
a64dc9aeeb718b2f30bd6a5ff8dcd8bfb1cd2ede
refs/heads/master
2016-09-05T23:32:08.595261
2010-05-16T10:53:45
2010-05-16T10:53:45
700,369
4
2
null
null
null
null
UTF-8
Python
false
false
2,227
py
# Copyright 2004-2008 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #TODO: find better place for it """defines logger classes""" import os import sys import logging import cStringIO ...
[ "roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76" ]
roman_yakovenko@dc5859f9-2512-0410-ae5c-dd123cda1f76
f5fded1a9cdae582a279e092b4b999bd1c6375da
c1c39c5e9456a4c175c651ba224a53c4a76f902a
/helpers/azure.py
dd8023fe4596e2fb34fbe94615ca383e28d235ef
[]
no_license
syllogy/cloud_sizes
5312c190c88303e78601496f3cc0206e5f7d0991
b97b782a2e786373992ca0ca51b40625d2d2ea91
refs/heads/master
2023-07-11T19:00:57.057759
2021-08-27T03:53:08
2021-08-27T03:54:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
#!/usr/bin/env python3 from netaddr import IPSet, IPNetwork from itertools import chain from requests import get import re def get_and_parse(): # I'm shocked, shocked I tell you to see that MS requires you do # something oddball like dig into an HTML page to get the latest # data file. url = "https://...
9640b58c5a0cb8df3d449504d5764902b2ec7211
59df4e1fd50d2e81b6490bb5322084165033cefc
/seed.py
b773b252a7d0b6c0a87526060a0884f95e697567
[]
no_license
JKinsler/ratings-lab
0cfafd345e27f19dfcedb249a23d5bf7fc6eebb0
6c7196c36dd6c09074b84deca0653ae445ca7651
refs/heads/master
2023-02-08T11:03:30.762832
2020-02-06T20:12:57
2020-02-06T20:12:57
238,305,896
1
0
null
2023-02-02T05:13:18
2020-02-04T21:03:13
Python
UTF-8
Python
false
false
3,561
py
"""Utility file to seed ratings database from MovieLens data in seed_data/""" from sqlalchemy import func from datetime import datetime from model import User from model import Rating from model import Movie from model import connect_to_db, db from server import app def load_users(): """Load users from u.user i...
d29db2d8b3506d66b6f9f90e3eb98490ae2db3e2
bcfa02c21a73798872bbb28303233d1f0039cf00
/server/www/packages/packages-darwin/x64/ldap3/protocol/sasl/kerberos.py
5000ebf430968b22f94a18fd3c42a8d85112d7ea
[ "Apache-2.0" ]
permissive
zhoulhb/teleport
6301cd50c951bcbac21cbe24017eb8421ff57adc
54da194697898ef77537cfe7032d774555dc1335
refs/heads/master
2021-11-10T17:10:59.661130
2021-11-09T11:16:19
2021-11-09T11:16:19
192,643,069
0
0
Apache-2.0
2019-06-19T02:20:53
2019-06-19T02:20:52
null
UTF-8
Python
false
false
5,038
py
""" """ # Created on 2015.04.08 # # Author: Giovanni Cannata # # Copyright 2015 - 2018 Giovanni Cannata # # This file is part of ldap3. # # ldap3 is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Founda...
242f05cd4aae7555fbe6bf5702093febdcbb83e4
81eff1c9bc75cd524153400cdbd7c453ee8e3635
/zxcar_ws/devel/lib/python2.7/dist-packages/astra_camera/srv/_GetDeviceType.py
09fd9a871d38977c6e36077b57b4a6a1ceed594b
[]
no_license
sukai33/zxcar_all
bbacbf85c5e7c93d2e98b03958342ec01e3dafd9
af389f095591a70cae01c1d116aa74d68223f317
refs/heads/master
2023-01-03T13:32:00.864543
2020-10-29T05:22:43
2020-10-29T05:22:43
300,556,457
0
0
null
null
null
null
UTF-8
Python
false
false
7,207
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from astra_camera/GetDeviceTypeRequest.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class GetDeviceTypeRequest(genpy.Message): _md5sum = "d41d8cd98f00b204e9800998ecf...
de4a7ed167183486e87b3d21fa8d14dc7a5e85a7
0e887d0cd010434e101eece419229aa4813ad893
/image_captioning/data/datasets/coco.py
ddf7c7b787cd99e21faba7310fda4ee6fb6bb0f6
[]
no_license
congve1/image_captioning
2c11d3ee80f0836853c7decf1255ac879f7a90b6
64cadfb9e072313f45f536f539b3cb8deb0432cd
refs/heads/master
2020-04-10T07:49:14.748923
2019-01-28T10:47:33
2019-01-28T10:47:33
160,889,848
1
0
null
null
null
null
UTF-8
Python
false
false
4,524
py
import pickle import json import os import torch import lmdb import numpy as np import logging import time class COCODataset(torch.utils.data.dataset.Dataset): def __init__( self, root, att_features_paths_file, fc_features_paths_file, encoded_captions_file, encoded...
8464caf19dff35b15183b1d7669a91eeb8c8a1aa
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02712/s290713931.py
2f012061dba1cd50f56bd01af90ace84c3b45931
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
def resolve(): n = int(input()) ans = 0 for i in range(1,n+1): if i%3!=0 and i%5!=0: ans += i print(ans) resolve()
d1e7e62a9d44e4e9e7610fc1d65b6f674190a87f
649bd422025e421d86025743eac324c9b882a2e8
/exam/1_three-dimensional_atomic_system/dump/phasetrans/temp39_5000.py
29c3c85bcf5c2204ff27a92509062b40b32f8297
[]
no_license
scheuclu/atom_class
36ddee1f6a5995872e858add151c5942c109847c
0c9a8c63d9b38898c1869fe8983126cef17662cd
refs/heads/master
2021-01-21T10:52:28.448221
2017-03-07T23:04:41
2017-03-07T23:04:41
83,489,471
0
0
null
null
null
null
UTF-8
Python
false
false
68,887
py
ITEM: TIMESTEP 5000 ITEM: NUMBER OF ATOMS 2048 ITEM: BOX BOUNDS pp pp pp 7.5068537206807662e-01 4.6449314627930377e+01 7.5068537206807662e-01 4.6449314627930377e+01 7.5068537206807662e-01 4.6449314627930377e+01 ITEM: ATOMS id type xs ys zs 8 1 0.121758 0.058572 0.0589443 35 1 0.0657156 0.12252 0.0621003 130 1 0.0596188...
3a0cca8abc3ef3909ea5fe190d9189a0f0d90ae8
d5b48163d236ca770be8e687f92192e2971397e8
/globalvariableFunction1.py
3477ac1307caf7853c39640dc6a0019cd95789a2
[]
no_license
Kunal352000/python_program
191f5d9c82980eb706e11457c2b5af54b0d2ae95
7a1c645f9eab87cc45a593955dcb61b35e2ce434
refs/heads/main
2023-07-12T19:06:19.121741
2021-08-21T11:58:41
2021-08-21T11:58:41
376,606,535
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
x=10#global variable def f1(): print(x)#10 x+=5 print(x)#error f1() print(x)#error def f2(): print(x)#error f2()
61e08cd88ef23fb7e87890a5b36fc050d8df3f6d
4a2a0cfc984a9faa45903732d776cd61ea361779
/pwncat/modules/agnostic/implant.py
545178a75fb449321c95997dc09fb7844b0c1a07
[]
no_license
PremHcz/pwncat
2a746cfc546158fa288994b376fd71768672a33a
cb203349d7ca815c9350eb53f4bd2e0b0ee659fa
refs/heads/master
2023-05-30T19:07:16.327320
2021-06-14T13:01:19
2021-06-14T13:01:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,437
py
#!/usr/bin/env python3 from typing import List from rich.prompt import Prompt from pwncat.util import console from pwncat.facts import Implant, KeepImplantFact from pwncat.modules import Bool, Status, Argument, BaseModule, ModuleFailed class Module(BaseModule): """Interact with installed implants in an open ses...
b83dddb0ba5cc289c6faf02198f34fa7f1efb501
bd1362c60313784c90013dfc9f0169e64389bf27
/scripts/dbutil/set_wfo.py
7790328ad4c796e3e0c601f831caf22e45761999
[]
no_license
ForceCry/iem
391aa9daf796591909cb9d4e60e27375adfb0eab
4b0390d89e6570b99ca83a5fa9b042226e17c1ad
refs/heads/master
2020-12-24T19:04:55.517409
2013-04-09T14:25:36
2013-04-09T14:25:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
""" Assign a WFO to sites in the metadata tables that have no WFO set $Id: $: """ import re import iemdb MESOSITE = iemdb.connect('mesosite') mcursor = MESOSITE.cursor() mcursor2 = MESOSITE.cursor() # Find sites we need to check on mcursor.execute("""select s.id, c.wfo, s.iemid, s.network from stations s, cwa c W...
[ "akrherz@95f8c243-6001-0410-b151-932e6a9ed213" ]
akrherz@95f8c243-6001-0410-b151-932e6a9ed213
613e4837a9f63c8b247a8e460f07e655fe9e2904
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2210/60716/276310.py
155107bcaf3512fb1bad228a6138043e1592acac
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
713
py
def checkin(substr:list,parstr:str): check = True for t in range(len(parstr)): if parstr[t] in substr: substr.remove(parstr[t]) else: break return check ucnum = int(input()) ans = list() for i in range(ucnum): str1 = input() str2 = input() anstr = str() #...
0351042e28eadd00d7b26fdc3576ef296ac9ee15
99d7a6448a15e7770e3b6f3859da043300097136
/src/database/migrate/isotopedb/versions/010_Add_aliquot_to_LabTable.py
a8e30e8ecebd6498a1eda6c619ef3184b2accad3
[]
no_license
softtrainee/arlab
125c5943f83b37bc7431ae985ac7b936e08a8fe4
b691b6be8214dcb56921c55daed4d009b0b62027
refs/heads/master
2020-12-31T07:54:48.447800
2013-05-06T02:49:12
2013-05-06T02:49:12
53,566,313
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
from sqlalchemy import * from migrate import * def upgrade(migrate_engine): # Upgrade operations go here. Don't create your own engine; bind # migrate_engine to your metadata meta = MetaData(bind=migrate_engine) t = Table('LabTable', meta, autoload=True) col = Column('aliquot', Integer) col.cr...
[ "jirhiker@localhost" ]
jirhiker@localhost
3b611d0a8558f770c80aa297e878934cb325eab4
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Keras_tensorflow_nightly/source2.7/tensorflow/contrib/distributions/python/ops/binomial.py
6a1bb39ab28218a411bdf4329965186bcf32bf30
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
10,299
py
# Copyright 2016 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...
6778fcb3d7e2e4b3c99b3c9d800ed919c050db8f
21c09799d006ed6bede4123d57d6d54d977c0b63
/python/bTag_signalStudies_scan_CSVv2_2017_LMT_down.py
3cb5809abbff613cd9c8fa51a1f5bb22722d4a64
[]
no_license
corvettettt/DijetRootTreeAnalyzer
68cb12e6b280957e1eb22c9842b0b9b30ae2c779
e65624ffc105798209436fc80fb82e2c252c6344
refs/heads/master
2021-05-06T09:57:12.816787
2019-04-18T15:32:38
2019-04-18T15:32:38
114,043,763
1
0
null
2017-12-12T22:02:46
2017-12-12T22:02:46
null
UTF-8
Python
false
false
12,869
py
import ROOT as rt import math as math import sys, os from bTag_signalStudies import * from optparse import OptionParser from rootTools import tdrstyle as setTDRStyle ### plots for signals ### # tagging rate vs mass for signals (b, udcs, g) # scale factors vs mass for signals with uncertainty # selections acceptance vs...
9df92ff5844f388a0d92870ce2ceab590cc8a89d
64870a6b0a38c63dd69387a2b9d591378dcaedfa
/setup.py
d9015e62651456081c3657bf72391f27c76df5af
[ "Unlicense" ]
permissive
andrewp-as-is/setuppy-generator.py
28ff31d8fd6a66fb4d0ca77244fcc8acb5a53912
ae27ae4d534a373f34ebe24a16353a214abf8fc5
refs/heads/master
2021-07-11T05:40:52.834761
2020-12-03T21:25:00
2020-12-03T21:25:00
217,581,540
13
0
null
null
null
null
UTF-8
Python
false
false
201
py
import setuptools setuptools.setup( name='setuppy-generator', version='2020.12.2', install_requires=open('requirements.txt').read().splitlines(), packages=setuptools.find_packages() )
8e8f8f023aaacf37507d97b5a08cd7038235cb03
76255205d52cb81da0f8e0014775b98195ae83a1
/osticket/env/bin/django-admin
25c1965788b29f4f38330119aa9805526df6877b
[]
no_license
vuvandang1995/OSticket
6c4fafbadffd99f635f049ca19a3dd120152d159
80c364cf9a7313cb102b7d618c43411c394b09f4
refs/heads/master
2020-03-09T10:08:16.715876
2018-07-11T00:11:52
2018-07-11T00:11:52
128,729,604
5
3
null
2018-07-11T00:11:53
2018-04-09T07:08:35
JavaScript
UTF-8
Python
false
false
281
#!/home/osticket/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
e3ce904d92a58307e91532be437be396e12719b0
e5483ab737acd9fb222f0b7d1c770cfdd45d2ba7
/ecommerce/core/migrations/0015_auto_20200617_0543.py
ed6c2dc12074874bcb1dfb5cfa5901daff8e3542
[]
no_license
mxmaslin/otus_web
6c1e534047444d7a1fc4cd1bf8245c25d9fc4835
b90ad69e1b5c1828fa2ace165710422d113d1d17
refs/heads/master
2022-12-09T19:52:58.626199
2020-07-07T19:15:52
2020-07-07T19:15:52
226,154,128
1
1
null
2022-12-08T03:23:10
2019-12-05T17:25:11
JavaScript
UTF-8
Python
false
false
2,038
py
# Generated by Django 2.2.12 on 2020-06-17 02:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('core', '0014_orderitem_...
ed526ae369d2eed2d321a2449ab09942936d0194
b0af2f57aec5f6620fe73361f5aee18c3d12d7c5
/code/robotics/PyAdvancedControl-master/mpc_sample/main.py
be94f52068f09aded7a128b2e28f37c4a582accf
[ "GPL-2.0-or-later", "eCos-exception-2.0", "MIT" ]
permissive
vicb1/python-reference
c7d3a7fee1b181cd4a80883467dc743b935993a2
40b9768124f2b9ef80c222017de068004d811d92
refs/heads/master
2022-10-09T08:41:56.699722
2022-10-04T00:53:58
2022-10-04T00:54:06
171,308,233
1
0
MIT
2022-06-21T23:43:38
2019-02-18T15:27:28
Jupyter Notebook
UTF-8
Python
false
false
2,028
py
#! /usr/bin/python # -*- coding: utf-8 -*- """ Simple Model Predictive Control Simulation author Atsushi Sakai """ import time from cvxpy import * import numpy as np import matplotlib.pyplot as plt print("Simulation start") np.random.seed(1) n = 4 # state size m = 2 # input size T = 50 # number of horizon # simul...
f6f4a37a17afcc48c0753be5d4751a06f2db2689
28b2144816ce1bf62b7481cd857fdc831a501f6b
/tabook/__init__.py
bcaae7c44a21c61773c0a480aee5d8b109854021
[]
no_license
t0ster/Turbo-Address-Book
3191a837d7d28cf9b8c9d20331fe0518062b3892
8c5463b1d4423a0c41d7ed75ff9a512ae1bc515b
refs/heads/master
2020-05-31T14:10:46.449799
2011-06-28T14:07:49
2011-06-28T14:07:49
1,953,556
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
# -*- coding: utf-8 -*- """The Turbo-Address-Book package"""
354af91557abc5587e4c6a68abaf64e39f6c2d67
6e64eb9a4353dc6bd89c649d27bb20aa61173d7d
/core/products/views/product/views.py
cd1644f54713f542333f36d4ef3078e2019fa4f8
[]
no_license
RoodrigoRoot/deploy_django
0d4b76ae41bab907d5d69b4e7c34d5151f9827bd
593b4613f1c224e236ac7f798e771e447ada677d
refs/heads/master
2022-11-28T05:39:37.350224
2020-03-19T19:42:04
2020-03-19T19:42:04
248,580,750
0
0
null
2022-11-22T03:38:31
2020-03-19T18:50:40
JavaScript
UTF-8
Python
false
false
2,418
py
from django.contrib.auth.decorators import login_required from django.shortcuts import render from django.urls import reverse_lazy from django.utils.decorators import method_decorator from django.views.generic import ListView, CreateView, UpdateView, DeleteView from core.products.forms import ProductForm from core.prod...
996800500c74f15861191e0d0013276f1dbb2768
673f9b85708affe260b892a4eb3b1f6a0bd39d44
/Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/pandas/tests/base/test_ops.py
2693eb12dda711c9a9025040a68ec054f6b7c9e1
[ "MIT" ]
permissive
i2tResearch/Ciberseguridad_web
feee3fe299029bef96b158d173ce2d28ef1418e4
e6cccba69335816442c515d65d9aedea9e7dc58b
refs/heads/master
2023-07-06T00:43:51.126684
2023-06-26T00:53:53
2023-06-26T00:53:53
94,152,032
14
0
MIT
2023-09-04T02:53:29
2017-06-13T00:21:00
Jupyter Notebook
UTF-8
Python
false
false
33,362
py
from datetime import datetime, timedelta from io import StringIO import sys import numpy as np import pytest from pandas._libs.tslib import iNaT from pandas.compat import PYPY from pandas.compat.numpy import np_array_datetime64_compat from pandas.core.dtypes.common import ( is_datetime64_dtype, is_datetime64...
e6874392c8edf6d718560d3a91ebeb226324e9b0
bd7f75e3acebad3f08959223365f0dfc84990f1b
/voc_label_multiClass_with_poly_non_interest.py
b51db2f55b8ab681e3427a2cebd54e58a8be0e7f
[ "MIT" ]
permissive
nghigd10/PyScripts
b6fcfb83dc9fe61f8c4f9972775b4b8ac53ffe2e
df8a37696b92b452b108d74f69e027b6a004670a
refs/heads/master
2023-01-03T05:41:37.280633
2020-10-30T10:15:21
2020-10-30T10:15:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,328
py
import xml.etree.ElementTree as ET import pickle import os import re import sys import shutil import math from os import listdir, getcwd from os.path import join import cv2 import numpy as np car = ["saloon_car", "suv", "van", "pickup"] other = ["shop_truck", "unknown"] bicycle = ["bicycle", "motorcycle"] targettypes...
b53fe631fbbe3bae49798ea486ad1b37cf7a89b5
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part002589.py
e50690dda9b20734f0885f36379c31fb7774fe82
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,304
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
2d573fe5931b3f1063ba73647b84291d080f1c8a
2ad32d08c66cc02f5a19b3a9e2fbb7c5c25ed99c
/wolf_alg/Data_structures_and_algorithms_py/floyd.py
e459f00b0c5d7f500a47fb6c30e2f2b617c4b4ac
[]
no_license
wqjzzgci/wolf-ai
5038dee45748809d16482ff6ecac7a2ae00dcbcf
42cb88a312e1137ad1c59c8a82fc3c15b3cd5092
refs/heads/master
2020-03-10T03:20:58.453867
2018-04-09T10:23:10
2018-04-09T10:23:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
#coding=utf-8 def floyd(double_list, vertexs): for k in xrange(1, vertexs + 1): for i in xrange(1, vertexs + 1): for j in xrange(1, vertexs + 1): tmp = min_value if double_list[i][k] >= min_value or double_list[k][j] >= min_value else double_list[i][k] + double_list[k][j] ...
43c07454753909afed5dc71cb7ef52426b278069
b34d7c5f810287ebaab09c58754bc59f03589ac3
/ltc/controller/migrations/0005_auto_20220316_1624.py
df6da7a23d585093998fc8bdab84b883a059ef11
[ "MIT" ]
permissive
r1990v/JMeter-Control-Center
11d00276a35a502f91f05bf2adf5c88bf56fbfed
6bfd13f008fce42c78badcb9d2579f069b064fe9
refs/heads/master
2023-01-07T12:40:43.370688
2022-09-27T11:05:56
2022-09-27T11:05:56
162,960,150
0
0
null
2018-12-24T06:53:26
2018-12-24T06:53:26
null
UTF-8
Python
false
false
567
py
# Generated by Django 2.2 on 2022-03-16 15:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('controller', '0004_auto_20210608_1506'), ] operations = [ migrations.DeleteModel( name='Proxy', ), migrations.RemoveField(...
e26833183e66a8213241f6e0351fc7da369a112b
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/aloe/aloe/common/plot_2d.py
b295d55c7794a134eb4930874648ecfc1df9b8c4
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
2,275
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
7df713c6d27a30122bb093277d9212602c441695
6a0b9581195400a93027aca881b1bc687401913d
/hackerrank-python/contests/world_cup/world_cup_team_formation.py
e702e9c67af3d7c45e54f7514b371704816cfd93
[]
no_license
108krohan/codor
1d7ff503106ad6b2c18bc202d4c88f296600f28e
2e485607080f919f273aa6c8c0d9cb3516cf4443
refs/heads/master
2021-04-28T21:13:34.604020
2018-02-18T11:55:26
2018-02-18T11:55:26
86,153,540
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
"""world_cup_team_formation at hackerrank.com""" lst = [int(raw_input()) for _ in xrange(10)] lst.sort(reverse = True) print lst[0] + lst[2] + lst[4] """ take sum of the first odd three numbers sorted in reverse order. """
b25ad99d54465169e298d7e083d8bdab4876bdd9
bc035331453d2f10e6179700ba74702158f28abf
/week1_2/storage/exceptions.py
6ce04351444f3c784d6488edafd7fa99d4f4735b
[]
no_license
NikolaPavlov/Hack_Bulgaria_Django
ade6813ae19d7fb7f00f74b6ec800d5927313f12
74ee14ddae885e0ea457ef89cee361b9dc34206c
refs/heads/master
2021-01-17T14:05:40.444361
2017-05-19T19:12:32
2017-05-19T19:12:32
83,479,831
2
0
null
null
null
null
UTF-8
Python
false
false
44
py
class UserDoesNotExist(Exception): pass
6ecb0830a31ef2f1511f5a0b3920344955ddcfee
641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2
/components/exo/wayland/DEPS
067074d486aaceee495cbd61658e383ec476bff5
[ "BSD-3-Clause" ]
permissive
massnetwork/mass-browser
7de0dfc541cbac00ffa7308541394bac1e945b76
67526da9358734698c067b7775be491423884339
refs/heads/master
2022-12-07T09:01:31.027715
2017-01-19T14:29:18
2017-01-19T14:29:18
73,799,690
4
4
BSD-3-Clause
2022-11-26T11:53:23
2016-11-15T09:49:29
null
UTF-8
Python
false
false
54
include_rules = [ "+third_party/wayland/include", ]
568fad17206fd645defb2cc4276ae1fc93ba66bc
06a2a44e2de6f9f6ac815762468ba63b82cd00e1
/apps/account/context_processors.py
932c6e47b78fb03f1996728b8cd4ab0d9ddf9feb
[]
no_license
hqpr/marketcsgo
153e0f3b180e6cc5eb771ba60e7cf5b6e7f31929
dec9cdf1cafb836f5303a773ad77cf4824665722
refs/heads/master
2021-01-10T10:08:33.323776
2019-03-17T10:13:40
2019-03-17T10:13:40
48,641,743
0
0
null
null
null
null
UTF-8
Python
false
false
720
py
from apps.account.models import UserProfile def check_profile(request): if request.user.is_authenticated(): try: UserProfile.objects.get(user=request.user) return {'valid': 1} except UserProfile.DoesNotExist: return {'valid': 0, 'user_id': request.user.id} re...
1dc11d54d1dfac5b787fddc7a6e886173250838b
cbc5e26bb47ae69e80a3649c90275becf25ce404
/xlsxwriter/test/contenttypes/test_contenttypes01.py
616bc445ea0552bde833c1b5083dd3f662857947
[ "BSD-2-Clause-Views", "BSD-3-Clause", "MIT" ]
permissive
mst-solar-car/kicad-bom-generator
c3549409c3139f787ad28391372b5cb03791694a
2aae905056d06f3d25343a8d784049c141d05640
refs/heads/master
2021-09-07T14:00:40.759486
2018-02-23T23:21:13
2018-02-23T23:21:13
107,868,801
3
0
null
null
null
null
UTF-8
Python
false
false
2,590
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2017, John McNamara, [email protected] # import unittest from ...compatibility import StringIO from ..helperfunctions import _xml_to_list from ...contenttypes import ContentTypes class T...
3ed03d4991ef4fa680cfdf726f1c96e4d2300b78
fa82dad9e83206d4630a55141bf44f50cbf0c3a8
/day1_python/01_python200_src/151.py
49b83dba5bc8007dbb2ae77e379ddb2c54516d06
[]
no_license
jsh2333/pyml
8f8c53a43af23b8490b25f35f28d85f1087df28d
157dfa7cc2f1458f12e451691a994ac6ef138cab
refs/heads/master
2021-03-27T22:26:38.254206
2020-04-26T06:35:11
2020-04-26T06:35:11
249,114,580
3
1
null
null
null
null
UTF-8
Python
false
false
113
py
import os pdir = os.getcwd(); print(pdir) os.chdir('..'); print(os.getcwd()) os.chdir(pdir); print(os.getcwd())
1381edf36fb363b531e4ef1d84b51910010dc909
cace862c1d95f6b85a9750a427063a8b0e5ed49c
/binaryapi/ws/chanels/buy_contract_for_multiple_accounts.py
014f93aa8f29ed48abbf5dc467f1f260ff845547
[]
no_license
HyeongD/binaryapi
65486532389210f1ca83f6f2098276ecf984702b
e8daa229c04de712242e8e9b79be3b774b409e35
refs/heads/master
2023-08-29T13:24:58.364810
2021-10-26T19:00:59
2021-10-26T19:00:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,349
py
"""Module for Binary buy_contract_for_multiple_accounts websocket channel.""" from binaryapi.ws.chanels.base import Base from decimal import Decimal from typing import Any, List, Union, Optional # https://developers.binary.com/api/#buy_contract_for_multiple_accounts class BuyContractForMultipleAccounts(Base): ""...
bd7a9a26fd311ea7acdf131684a5e555675fccf7
719853613b5b96f02072be1fde736d883e799f02
/server/photos/migrations/0013_fill_in_iiw.py
28e85fb066fa8095a74481b03e994527ba4f4b4b
[ "MIT" ]
permissive
anmolkabra/opensurfaces
5ba442123586533a93eb29890fa1694e3efdbfe8
a42420083a777d7e1906506cc218f681c5cd145b
refs/heads/master
2020-03-20T01:11:05.182880
2018-06-13T14:55:45
2018-06-13T14:55:45
137,068,945
0
0
MIT
2018-06-12T12:32:53
2018-06-12T12:32:52
null
UTF-8
Python
false
false
28,398
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models from django.db.models import Q class Migration(SchemaMigration): def forwards(self, orm): Photo = orm['photos.Photo'] Photo.objects...
407bf5e3d865565a63d71d38351ec11784634a45
6745bd6b607bbfb00dcf641980925753ec60f7d8
/company/migrations/0025_auto_20170507_1103.py
0800c545ee6393dc10ad6d843f09ee8a4204948f
[]
no_license
happychallenge/chemicals
4a1822d32354ce85499f42ada47103d3f27e163c
aa2b08c92cefe1650591d965f2e7f4872c445363
refs/heads/master
2021-01-20T09:21:55.769758
2017-05-07T06:03:54
2017-05-07T06:03:54
90,245,438
0
0
null
null
null
null
UTF-8
Python
false
false
5,089
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-07 02:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('company', '0024_remove_allprocess_send_msds'), ] operations = [ migrations.Al...
98fab1f0de73796ef769a8a4f729188096167ece
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/MybankCreditLoantradePayerBillrepayConsultResponse.py
384aaa839bacae7ad07341b1ed1c53574be2462c
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,716
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.CreditPayBillDetailVO import CreditPayBillDetailVO class MybankCreditLoantradePayerBillrepayConsultResponse(AlipayResponse): def __init__(self): super(My...
e81b997e68036cdf35265aa603f9459629fc05d1
8a8bae1fc33dc503e55b1c6a5a67d90469331891
/ppy_terminal/sketches/tarbell/happyplace_port/archive_code/happyplace_port_2880275_20200918_112602_000.png.py
8a9f02346216e30caa2158a2bb5e3042747bd85c
[ "MIT" ]
permissive
LSturtew/generative_art
071f168c92d2bb31b57558058d881bad6cf4d7aa
76d98d8fa63e2c952055481d14ab53f56717b6dd
refs/heads/master
2022-12-30T02:41:36.391487
2020-10-12T01:43:48
2020-10-12T01:43:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,542
py
################################################################################ # porting Jared Tarbell's Happy Place to Python Processing # all credit for the algorithm goes to them # # code and images by Aaron Penne # https://github.com/aaronpenne # # released under MIT License (https://opensource.org/licenses/MIT) ...
eb19a9e76546f3274aeb55a5941ccfbf0c448ec4
23611933f0faba84fc82a1bc0a85d97cf45aba99
/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/util/time_util.py
fa4aca709d2e13980911d752c895797f68fe0372
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
KaranToor/MA450
1f112d1caccebdc04702a77d5a6cee867c15f75c
c98b58aeb0994e011df960163541e9379ae7ea06
refs/heads/master
2021-06-21T06:17:42.585908
2020-12-24T00:36:28
2020-12-24T00:36:28
79,285,433
1
1
Apache-2.0
2020-12-24T00:38:09
2017-01-18T00:05:44
Python
UTF-8
Python
false
false
3,224
py
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
643d8479d0d4be592474bfdee79d5f9f22cb89e1
bb87579e47fc04b299694b8a8fe318f022f54ee8
/Automate the Boring Stuff/Ch.12 - Web Scraping/attribute.py
c4f59a6a44dfa7c2b6213063120b221b7c1a6447
[]
no_license
QaisZainon/Learning-Coding
7bbc45197085dfa8f41ac298d26cf54e99e7b877
a3991842e79c30f24d7bc0cca77dbd09bc03372f
refs/heads/master
2022-12-23T05:47:26.512814
2020-09-25T08:10:20
2020-09-25T08:10:20
297,945,320
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
from selenium import webdriver browser = webdriver.Firefox() browser.get('https://inventwithpython.com') try: elem = browser.find_element_by_class_name('cover-thumb') print('Found <%s> element with that class name!' %(elem.tag_name)) except: print('Was not able to find an element with that name.')
6959b4c9ba3b87040a8e31e260f2243d2fc88cba
b5f5c749ad8ba774da04a3dcf44ea2e66aea6cd6
/background/05geo/coverage.py
a80d605b766bf88a40e1d82d403f040d271128b2
[]
no_license
yj-git/SearchRescueSys
2329be5f3caf57f11a2e606da87382344698eff4
44347aef4cd5f75f1c9adcea76c21aa97b41e8ae
refs/heads/master
2022-08-05T12:41:54.967248
2020-05-21T04:55:37
2020-05-21T04:55:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
from geoserver.support import ResourceInfo from geoserver.catalog import Catalog class Coverage(ResourceInfo): def __init__(self, catalog: Catalog, store_name, work_space): super().__init__() self.catalog = catalog self.store_name = store_name self.work_space = work_space s...
0bc60f23731424fe5898e28b2074f5662c17e943
e05c6a78b16f1d39b8e77db3ee5cea83b44ddf8a
/migrations/versions/0305m_add_pinpoint.py
6dd09943085a1a433ea9ebe35523a519e6c9f0ff
[ "MIT" ]
permissive
cds-snc/notification-api
7da0928f14608a2c7db1e229e17b9dbfaaf3d0f0
99558db51784925942d031511af3cfb03338a28d
refs/heads/main
2023-08-18T00:08:42.787361
2023-08-17T20:58:47
2023-08-17T20:58:47
194,884,758
49
12
MIT
2023-09-14T18:55:07
2019-07-02T14:57:01
Python
UTF-8
Python
false
false
896
py
""" Revision ID: 0305m_add_pinpoint Revises: 0305l_smtp_template Create Date: 2020-04-20 12:00:00 """ import uuid from alembic import op revision = "0305m_add_pinpoint" down_revision = "0305l_smtp_template" id = uuid.uuid4() def upgrade(): op.execute( f""" INSERT INTO provider_details (id, di...
1bfb37fd8a7fdad73e3394fb67e758cc3068b5b0
20927c6b6dbb360bf0fd13d70115bdb27e7196e7
/0x0F-python-object_relational_mapping/1-filter_states.py
2896d23cb05252078d33fd4184cfa458f4fcb904
[]
no_license
PauloMorillo/holbertonschool-higher_level_programming
27fc1c0a1ae5784bd22d07daaedb602ee618867d
8a42a60aa4ea52b5cc2fb73e57f38aa6c5196c98
refs/heads/master
2021-08-16T17:13:45.568038
2020-07-29T01:20:25
2020-07-29T01:20:25
207,305,140
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
#!/usr/bin/python3 """This Module prints all of a database""" import sys import MySQLdb def main(): """main function""" db = MySQLdb.connect(host='localhost', user=sys.argv[1], passwd=sys.argv[2], db=sys.argv[3], ...
8e6b2a6221270da9a79fd2ca74b668333a09b391
47ae678aa432deb0eb4f99b6a9787853315ab899
/qikan/spiders/SAGE58.py
ab7d30ebca329e46bdc015cf20b378342d85b27b
[]
no_license
RoggerLuo/python-scrapy-journal
1f3fb2ac41d90d25a0b635932600ff2327bf22d1
38d8e714f346e5951bcb55487fc0056a834f30d8
refs/heads/master
2020-04-05T20:32:42.201876
2018-11-13T06:35:59
2018-11-13T06:35:59
157,185,106
0
0
null
null
null
null
UTF-8
Python
false
false
9,153
py
# -*- coding: utf-8 -*- import scrapy from qikan.items import QikanItem import re import time from .config import Config,postItemWithPdf,postItem,proxyRequest class Sage58Spider(scrapy.Spider): name = 'SAGE58' start_urls = ['http://journals.sagepub.com/toc/apca/5'] base_url = 'http://journals.sagepub.com...
cfc1b386f4a20a5d866800567c6b0b276a19ef98
469772806152cff25b13a1e73ec5133ba3d0f283
/src/reversi_zero/agent/api.py
6ba0bb23675d7c7cd12f8ccfc0178d0c3a3fbb6a
[ "MIT" ]
permissive
awesome-archive/reversi-alpha-zero
880e92cb02a8b4d21e824baed3584a7eec823bfe
90ba711f2233660bbf36d8203873b3fc16f7a1e8
refs/heads/master
2022-03-30T13:22:21.547259
2017-11-22T01:16:59
2017-11-22T01:16:59
111,628,182
0
0
MIT
2020-01-10T11:11:25
2017-11-22T02:47:19
Python
UTF-8
Python
false
false
688
py
from reversi_zero.config import Config class ReversiModelAPI: def __init__(self, config: Config, agent_model): """ :param config: :param reversi_zero.agent.model.ReversiModel agent_model: """ self.config = config self.agent_model = agent_model def predict(self...
37e1ff1235046fbc5c983001e7cfb790efd4803e
23ba854b3b6cb457c8c01793e24f15d411650281
/monk/system/summary.py
a87cc621feca3f74387e5c3e0cc0a91ab73cf0a4
[ "Apache-2.0" ]
permissive
shaunstanislauslau/monk_v1
a506a8cb2e45f3d04734bfab01db09eb3d804771
01905b911f1757adef9d7366a704b2a5289e1095
refs/heads/master
2023-05-11T08:16:39.442925
2020-03-03T07:45:06
2020-03-03T07:45:06
244,685,539
0
0
Apache-2.0
2023-05-09T19:02:15
2020-03-03T16:25:46
null
UTF-8
Python
false
false
8,361
py
from system.imports import * from system.common import read_json @accepts(str, post_trace=True) @TraceFunction(trace_args=True, trace_rv=True) def print_summary(fname): system_dict = read_json(fname); ############################################################################################################...
7389d460abe517d9e993221e0b2c9acc6154d6ab
916c49b17d730ae36ce3fe8178146baac53fb15d
/common/ecmp/base.py
10d355316e17a8b6561646a9b9de047fdebde323
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
absurya4/tf-test
ec96955ed9ddd662112173d2ff14059cd8d49552
f1faeca6e8a0abbc0efd77455379163d61e3a3d7
refs/heads/master
2022-12-18T08:25:20.375604
2020-09-21T07:31:53
2020-09-24T07:09:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,007
py
from common.base import GenericTestBase import os from tcutils.util import get_random_name, get_random_cidr class ECMPTestBase(GenericTestBase): @classmethod def setUpClass(cls): super(ECMPTestBase, cls).setUpClass() cls.inputs.set_af(cls.get_af()) try: # Mgmt VN ...
7f69dbce010f14ac2debdf2734632872607447c1
7f53f509222f7e4b1ca8137bb31cf2edc5f64e80
/spec.py
285af57a848c75051fd2652556eb8d7fba9fe315
[]
no_license
wahid999/Pythonforbegainer
f61c7567c37b3d4103b5550a6975f78c960763f8
794fd9471ff95eac52ae42d8548526c09df23bbd
refs/heads/main
2023-07-11T22:31:31.435440
2021-08-16T17:18:35
2021-08-16T17:18:35
399,344,206
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
import os os.system('clear') #************** Strings **************** #------------->CANCATINATINATION--------> name = 'Wahid Hussain' greetings = 'hello, My name is ' + name print (greetings[24])
5e50baac929a6e64e65d334d5456747280a5306c
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flashblade/FB_2_6/models/logs_async_response.py
246f276f1a09d0b9999298ed29d41641fb5f13a5
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
3,125
py
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.6, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typ...
96aa8ac46b3d2ef2095ea9e7c4211fe64ae7f673
bb53229d1f296f8b7b3f7eb623673031474a4664
/robot/model/arm/pets.py
8523fe88eb018c1b1287289919557794aa76721a
[]
no_license
hzaskywalker/torch_robotics
03f2de64972d47752e45ae0a0c30334bf6c52c6c
0f3d5a46e81d734d514bffcbf4ed84cdcdbd4c86
refs/heads/master
2023-07-28T17:04:17.915787
2021-09-14T04:30:55
2021-09-14T04:30:55
405,022,434
2
0
null
null
null
null
UTF-8
Python
false
false
9,897
py
# reproduce the pets cem with the new framework import os import torch import tqdm from torch import nn import numpy as np from robot.controller.pets.model import EnBNN from robot import U from . import Frame, trainer class Distribution(Frame): # it always maintain dim-2 as the ensemble dimension.. ...
c6db899b17994956a0afb5dd82d2d133537fb664
df258f9b95493d146ef8d3e9fef8ee367fe66042
/dffml/db/sql.py
bbbac8bea799aad05894665845c119803c332d57
[ "LicenseRef-scancode-generic-export-compliance", "MIT" ]
permissive
emrul/dffml
dd576582de5a95d2cc3c525131d1b1f66dfa84c1
0829a5830fef85d24baa80220fa9cf7e56fee236
refs/heads/master
2022-04-22T20:37:45.109948
2020-04-24T15:08:23
2020-04-24T15:08:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,272
py
""" Base classes to wrap various SQL based databases in dffml.db abstraction. """ from typing import Dict, Any, List, Tuple, Optional from dffml.db.base import BaseDatabaseContext, Conditions class SQLDatabaseContext(BaseDatabaseContext): # BIND_DECLARATION is the string used to bind a param BIND_DECLARATION...
ca42f02af10ca35b68749902215dcc8c12068f13
d832d79e61b86f6a7e1ebe5b9dcf6b28ebf23cb1
/revnum.py
0e2228dc6fa415c46244ad0d3cc696042920d649
[]
no_license
moneshvenkul/guvi_player
5f12657a2efc5db9385543f970ef0238cdfacfaf
84cdd0cd3de3e77e50c871bc7cd7f115f1f40de0
refs/heads/master
2020-05-01T14:27:21.058668
2019-03-25T08:15:33
2019-03-25T08:15:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
36
py
n=input() x=n[::-1] print(int(x))
f2cc1601e225667554205561c993b3b430da90dd
1edd52cf197e5ae67b5939a3beb3e70761334e62
/AWS/AWS_boto3_narendra/20_Collections_stop_all_ec2.py
d019a4a10bd4d593f40e1b1694dac8e0692e7743
[]
no_license
sandeepmchary/Devops_wordpress_Notes
bdcd85d526780d03c494ecb93e714e7ffe0a4d58
ffd2092162073e1e7342c6066d023d04e6ca8c1c
refs/heads/master
2022-06-18T21:33:02.471025
2022-06-12T11:14:47
2022-06-12T11:14:47
154,679,658
1
4
null
2022-05-19T16:59:57
2018-10-25T13:51:40
HTML
UTF-8
Python
false
false
378
py
import boto3 ec2_re=boto3.resource('ec2') ec2_cli=boto3.client('ec2') all_ins_id=[] for each in ec2_re.instances.all(): print(each.id,each.state['Name']) all_ins_id.append(each.id) #print(all_ins_id) print("Stopping all instances...") ec2_re.instances.stop() waiter=ec2_cli.get_waiter('instance_stopped') waiter.wait(I...
88a5b2b4fd0da877b9c61c64b8cbb25dec8a8493
d64289adc0908134bf97cbce2d9c5f305a8042d0
/groupdocs_conversion_cloud/models/otp_load_options.py
5a17f2da8e57ddbe68c5919dc2cdfdf15c5f4a30
[ "MIT" ]
permissive
groupdocs-conversion-cloud/groupdocs-conversion-cloud-python
07cfdabb6584e4f9835c25ff96a6053ef3a54596
496f307bc0b776314fd5f56781fb0e71b0b4985e
refs/heads/master
2023-08-30T22:12:43.070658
2023-08-23T17:08:13
2023-08-23T17:08:13
179,628,452
7
0
null
null
null
null
UTF-8
Python
false
false
3,622
py
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose Pty Ltd" file="OtpLoadOptions.py"> # Copyright (c) 2003-2023 Aspose Pty Ltd # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # ...
9d04ced9a977b0813099e3e048af8c764a92ffc9
1d88ed99e2f01b6b0faa7acf762543f41569380c
/top/table/tests/test_returns.py
7264e71d32ed00d88f79d614faa8c1cfeef75cdb
[]
no_license
loum/top
be0ae6951ed7d5834d14f96403d6cd1dc9d008a4
4d9aae6297793822b6de28b65f7639a4b2e6dcfa
refs/heads/master
2016-09-10T10:38:41.312180
2014-06-05T05:44:48
2014-06-05T05:44:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,891
py
import unittest2 import os import datetime import top class TestReturns(unittest2.TestCase): @classmethod def setUpClass(cls): cls._r = top.Returns() cls._db = top.DbSession() cls._db.connect() db = cls._db fixture_dir = os.path.join('top', 'tests', 'fixtures') ...
ba3910d957182f1266449984de846549adfd32bc
bc441bb06b8948288f110af63feda4e798f30225
/database_delivery_sdk/model/inspection/collector_pb2.py
11b6c11be52fbd835afa5a03782fb0095af50566
[ "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
4,328
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: collector.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.protobuf i...
f72712339cc187c4574fc8ad4a91106b89cb5f39
0f49a5e1daeb09742f87717e8f4849b87b1a9c44
/src/dialogs/DialogUmlNodeEdit.py
5c9ed16d21e86fbde26a233e0482e29a244a94d7
[]
no_license
arita37/pynsource
7ddc717972e3c8f8a1225f4d9ba196e03bfee5df
57ed39ba112d97fc0af09669d6647952f6ae1e7c
refs/heads/master
2021-02-04T09:03:10.796578
2020-02-06T06:31:19
2020-02-06T06:31:19
243,646,965
1
0
null
2020-02-28T00:42:02
2020-02-28T00:42:00
null
UTF-8
Python
false
false
3,837
py
# -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (version Oct 26 2018) ## http://www.wxformbuilder.org/ ## ## PLEASE DO *NOT* EDIT THIS FILE! ########################################################################### impor...
f8e9da36ddbcc3f59610866194a1676bdff287ad
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/90/usersdata/218/60729/submittedfiles/matriz2.py
9c1a3e9aea2e3f724466e0e40fb3cef9566de708
[]
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
1,044
py
# -*- coding: utf-8 -*- import numpy as np def somas (a): lista=[] cont=0 for i in range (0,a.shape[0],1): cont=0 for j in range (0,a.shape[1],1): cont=cont+a[i,j] lista.append(cont) for j in range (0,a.shape[1],1): cont=0 for i in range (0,a.shape[0],...
d69bd9f188b9854c76763631719ecfe14836d385
4b232f6f94097644b8c052a8be5dae83644a3d0c
/tractseg/libs/fiber_utils.py
d60707d50395644098468a2a4285a9eb5d00a203
[ "Apache-2.0" ]
permissive
Nat-Sci/TractSeg
40e0bafc1ed50bdf09c26977e28a202e09f6bccb
506935488436951546a96358958cfb6752145c0d
refs/heads/master
2022-11-20T08:06:34.322247
2020-07-16T16:09:12
2020-07-16T16:09:12
281,930,134
0
0
Apache-2.0
2020-07-23T11:14:10
2020-07-23T11:14:09
null
UTF-8
Python
false
false
15,560
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import multiprocessing from os import getpid import numpy as np import nibabel as nib from dipy.tracking.streamline import compress_streamlines as compress_streamlines_dipy from dipy.segment.metric import Resa...
bf1a7529e2315658f50cc0c20cf59fc4d0d940fd
ababed0e1a54f4888440edd20cbfdf6beb3cd20d
/backend/menu/api/v1/viewsets.py
67ee4177ad30850e6ca22a7f0ce52813b2fbd299
[]
no_license
crowdbotics-apps/asd-18920
1766fa6c4334d1c1f8a97f6aa4da8961742bcc2c
5022fcd5f0b0522ce53438270e2ae65d1b652dab
refs/heads/master
2022-11-17T15:02:25.688634
2020-07-15T16:09:00
2020-07-15T16:09:00
279,915,037
0
1
null
null
null
null
UTF-8
Python
false
false
1,555
py
from rest_framework import authentication from menu.models import ItemVariant, Country, Item, Category, Review from .serializers import ( ItemVariantSerializer, CountrySerializer, ItemSerializer, CategorySerializer, ReviewSerializer, ) from rest_framework import viewsets class CategoryViewSet(view...
efcd1f6da93da3bf75a7685d2f07a65c5f588702
52ab2da7b131643a344ee5344d8f35aebd6e2eed
/WebProject1/myvenv/lib/python3.6/site-packages/sqlalchemy/event/legacy.py
049df81aafa7b163be69d6561ad9e9e6ff7ef534
[ "MIT" ]
permissive
ucsb-cs48-w19/5pm-findtheroommate
cd6db6c4cf3ee6f159b04456ba13b1ef684c7546
d9d01b95c478e7493b5b32c8b56ceed00578b188
refs/heads/master
2020-04-16T01:00:16.617610
2019-03-19T20:42:38
2019-03-19T20:42:38
165,158,037
2
1
MIT
2019-03-05T00:46:12
2019-01-11T01:28:11
Python
UTF-8
Python
false
false
5,900
py
# event/legacy.py # Copyright (C) 2005-2019 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Routines to handle adaption of legacy call signatures, generation of deprecation ...
399b9de55761113ccab69d01a9bd68a988a88fe6
bed40794a78225e070c49a72209d447757ec8343
/python_crawl/section3-1.py
3a3113bc3a6b4a52b626ac8857b76dd0fe10852d
[]
no_license
moorekwon/crawling-practice
458ffe31b3a7a91fad6547ef76f9a428376d542f
c5bc989ced353daed34d53410c261ce4d4561d4c
refs/heads/master
2022-09-13T06:46:31.034858
2020-05-31T06:43:28
2020-05-31T06:43:28
266,505,397
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
import urllib.request from urllib.parse import urlparse import sys import io sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8') sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8') url = 'http://www.encar.com' mem = urllib.request.urlopen(url) # print('type(mem) >> ', type(me...
a868176f862739f842c05c4e3447d5f92ff293ac
b95fa99bb1ba2210b73251614d2613363c37f932
/deploy/dot-product/scripts/dot-67.py
e5a37f1559951e11ad8cf6b305503d2eb3c83ad0
[]
no_license
lingxiao/learn-adj-relation
d1a8894fefc776ec0bd414b5f038361ed4b79d16
dc4285af19e53d7e2d015eb6394f6c601c707da0
refs/heads/master
2020-12-30T16:27:51.531268
2017-06-07T18:59:48
2017-06-07T18:59:48
87,714,049
0
0
null
null
null
null
UTF-8
Python
false
false
1,144
py
############################################################ # Module : A series of measures on the graph for experiments # Date : April 2nd, 2017 # Author : Xiao Ling ############################################################ import os import numpy as np from utils import * from scripts import * from app.co...
1e319b6c7309a5b83ebfe44b591850b2b6962be3
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/2/e6v.py
75b5df2cc32148930528e7e89a9f832fba9b69b1
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
b00578cb33932e544783d41cc72fa666201bb10e
4fd0a43fb3fdbc5ce355b050d0a6506b97bb5d79
/src/basic/mqtt_client.py
f5bb543c0f8e7a81272e10ad1741abd0064590ae
[]
no_license
Shoumik-Gandre/wn_miniproject
a175e871b0931e6bcb324fbcf81b3dbbd09186e6
9a61a27c7eee15486cf688a3d66ceae23f8d5b47
refs/heads/main
2023-04-16T13:48:53.383291
2021-04-29T13:55:45
2021-04-29T13:55:45
362,832,371
0
0
null
null
null
null
UTF-8
Python
false
false
1,001
py
import paho.mqtt.client as mqtt # The callback for when the client receives a CONNACK response from the server. def on_connect(client, userdata, flags, rc): print("Connected with result code " + str(rc)) # Subscribing in on_connect() means that if we lose the connection and # reconnect then subscriptions...
c2a44a685f68ef321abc531cdd8f556292da5f9c
b797609bb7ddf7b677909b0c5dd0bed618659e9f
/polarcordinates.py
c6ebb77e4553e36b74ec62a7f6a9effc1b7f79e3
[]
no_license
krishna-rawat-hp/HackerRank-solution-python
fc969a7de3e54be5c90f5877699121714df14821
a813e76a307046409217eb1773a6b3e0337c142d
refs/heads/master
2022-12-23T19:59:12.667718
2020-09-26T12:35:24
2020-09-26T12:35:24
288,746,928
0
0
null
null
null
null
UTF-8
Python
false
false
78
py
import cmath v = input() print(abs(complex(v))) print(cmath.phase(complex(v)))
4a5429e17840c12de155763259947c16be4142b8
7f9dfa2cccf77764940ffcbbf92939e37c138c43
/crawl_file/file_path/pylab_examples/anscombe.py
753e4342916a1d85af7b3ce7af20c14c7110e3c9
[]
no_license
zhangmman/scrapy_spider
f80bd8d213edde0dea083babe610ca7b1bc449a3
2bda4aa29f2550c649c939045ce4fcdea2736187
refs/heads/master
2020-09-11T13:58:49.930929
2019-12-21T08:40:56
2019-12-21T08:43:43
222,080,585
0
0
null
null
null
null
UTF-8
Python
false
false
1,934
py
from __future__ import print_function """ Edward Tufte uses this example from Anscombe to show 4 datasets of x and y that have the same mean, standard deviation, and regression line, but which are qualitatively different. matplotlib fun for a rainy day """ import matplotlib.pyplot as plt import numpy as np ...
1504d39ef20e08c04e1cdc4746b68ebbb0bcc192
d2f91b93ad42aaefa5fc315a9b3a5d45d07fa705
/slbman/venv/Lib/site-packages/aliyun/api/rest/rds/RdsDescribeDBInstanceClassesRequest.py
33ce5a2e88dcb9457c34ba33df1ea05109b25fc6
[]
no_license
junlongzhou5566/managePlatform
66cb5bc5b176147ff0038819924f7efa8df1d556
3201ba1a11b05c86db5f42aa9ca8eaf1cc20e216
refs/heads/master
2021-03-29T00:58:23.337808
2020-03-17T09:50:21
2020-03-17T09:50:21
247,910,365
2
0
null
null
null
null
UTF-8
Python
false
false
312
py
''' Created by auto_sdk on 2015.06.23 ''' from aliyun.api.base import RestApi class RdsDescribeDBInstanceClassesRequest(RestApi): def __init__(self,domain='rds.aliyuncs.com',port=80): RestApi.__init__(self,domain, port) def getapiname(self): return 'rds.aliyuncs.com.DescribeDBInstanceClasses.2013-05-28'
[ "[email protected]@qq.com" ]
cf5232006921ce80f92f29008e1e66683214afa9
4f935960c688bb306a9808b9a0f47480a1a3d33a
/fastai2/callback/cutmix.py
1f182c8d3701ad765019fd43909d6f91fe436c03
[ "Apache-2.0" ]
permissive
AccidentalGuru/fastai2
c3297919f2c2455f8c8a5ee81a5590afe87df34a
e816625945d87c2d9ac6521150f235942912bf74
refs/heads/master
2021-05-26T22:59:55.066904
2020-04-08T13:18:11
2020-04-08T13:18:11
254,182,464
1
0
Apache-2.0
2020-04-08T19:33:43
2020-04-08T19:33:42
null
UTF-8
Python
false
false
2,296
py
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/74_callback.cutmix.ipynb (unless otherwise specified). __all__ = ['CutMix'] # Cell from torch.distributions.beta import Beta from ..vision.all import * # Cell class CutMix(Callback): "Implementation of `https://arxiv.org/abs/1905.04899`" run_after,run_valid = [...
f398d3b06ab094a54439b2f4315ad474a76e55f2
6f30245f27a9568155f69648faf148c278136029
/hhapps/cmd/stock_api.py
dd7da5d6c78ea0bde4abd7f69423a01f7dd4884b
[]
no_license
r202-coe-psu/hh-apps
82495ffec7fb09155afa4e8f571051aad824acb4
a15453b7f502a2a71ccb89ba4c4ebe95ef3ca86f
refs/heads/master
2021-05-03T05:48:40.766349
2017-08-06T22:45:30
2017-08-06T22:45:30
120,584,239
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
from hhapps.stock import api def main(): options = api.get_program_options() app = api.create_app() app.run( debug=options.debug, host=options.host, port=int(options.port) )
90d4c660d0cd1e00e4e063eff79f31aaaf635e41
95ed5173865ea5930ac1f4280e3bce78411ea956
/examples/plot_wage_education_gender.py
47305c351dc39a8a18ed0feba01340058cc5e141
[ "CC-BY-3.0", "CC-BY-4.0" ]
permissive
FedericoV/stats_in_python_tutorial
c0e99039f8f76e453bf511b99ad906fdf3111509
0e7607e36896790eeb3753ecb3b8ee82db206a97
refs/heads/master
2021-01-18T00:23:38.240447
2015-08-26T13:20:45
2015-08-26T13:20:45
41,425,683
1
0
null
2015-08-26T12:58:37
2015-08-26T12:58:36
null
UTF-8
Python
false
false
2,679
py
""" Test for an education/gender interaction in wages ================================================== Wages depend mostly on education. Here we investigate how this dependence is related to gender: not only does gender create an offset in wages, it also seems that wages increase more with education for males than f...
ab4ddaa525f0af038fd27984ccf21aea86d3a3e9
00c1a2bf4f0b9af287f336b8c6f6e52390ce2d6f
/loyihaapp/models.py
469b15e2afded2764c98c114693a9488e5d9a12f
[]
no_license
bekzod886/Django_loyiha
c038598539e3dd0efe122eceb49d77b3b2145edb
5c1e0459db3a891ba6bd2a33f51fd575173e8fd8
refs/heads/main
2023-07-02T16:39:17.591120
2021-08-05T08:16:27
2021-08-05T08:16:27
391,806,136
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
from django.db import models # Create your models here. class Meva(models.Model): title = models.CharField(max_length=255) img_url = models.CharField(max_length=255) desc = models.CharField(max_length=255) price = models.FloatField()
c4b8dc8085997384c991bd821a50cf250b9e32a6
f82ca354391c19a753d319b38f8a69369e60f960
/src/lib/device_detector/parser/client/mobileapp.py
6ee635612ab5c9fdfe29e806a5fa3a79fa541683
[ "MIT" ]
permissive
martbhell/wasthereannhlgamelastnight
8398920ab1b6cf998d8f91ef5598a8e28de57a8d
c40f9f12ed4c066d4f42095e96e9a87a8581d99d
refs/heads/master
2023-08-10T05:10:46.960500
2023-07-18T03:56:22
2023-07-18T04:02:33
37,021,751
5
0
MIT
2023-08-29T19:16:07
2015-06-07T15:38:26
Python
UTF-8
Python
false
false
288
py
from . import BaseClientParser class MobileApp(BaseClientParser): fixture_files = [ 'local/client/mobile_apps.yml', 'upstream/client/mobile_apps.yml', ] def dtype(self): return self.calculated_dtype or 'mobile app' __all__ = [ 'MobileApp', ]
7347fbf197616979bef0fd4e3c6863d7e6916654
dd6c21308e1cba24658c8ca7a49e2499cd167da6
/venv/Lib/site-packages/guardian/utils.py
5ca593620ebeb53f3e24e8634be26a4a05d93173
[ "MIT" ]
permissive
ansonsry/Freshshop
3a53db4d6d0bf1d6705498869a13a3aa7db6ab8c
79ab8beb1aa993f6365182c8d3bb478ee4e028f8
refs/heads/master
2021-06-20T18:54:08.009409
2019-07-26T02:56:55
2019-07-26T03:02:27
198,931,513
0
0
MIT
2021-03-19T22:33:14
2019-07-26T02:23:49
Python
UTF-8
Python
false
false
7,153
py
""" django-guardian helper functions. Functions defined within this module should be considered as django-guardian's internal functionality. They are **not** guaranteed to be stable - which means they actual input parameters/output type may change in future releases. """ from __future__ import unicode_literals from dj...
f2e6015b515e915c24bf44cb57a88c4e12c0939f
e8ae11e5017507da59e2e92d423b6a1994490de4
/env/lib/python2.7/site-packages/azure/mgmt/scheduler/models/service_bus_brokered_message_properties.py
336add898c6253ae0f23c0ab299ae3681b024271
[]
no_license
teopeurt/ansible-ubuntu-server
613d00cea28bc6531acf4a39aeeb9cd0baa2a391
b5b6127d2ee9723c5088443efe2ffb8ae30cfea7
refs/heads/master
2021-06-28T12:49:50.935753
2017-07-31T17:34:33
2017-07-31T17:34:33
98,912,808
0
1
null
2020-07-24T00:05:31
2017-07-31T17:32:56
Makefile
UTF-8
Python
false
false
3,997
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. 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 co...
3c5eb2c6bf9c023422831c5ca31f64b01a36fb0a
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/86/usersdata/164/57228/submittedfiles/pico.py
97909e0698fdec2d38710817dcbb466f593e1da4
[]
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
609
py
# -*- coding: utf-8 -*- def pico(b): cres=0 decres=0 for i in range (0, len(b), 1): c=len(b)/2 if (c>=0): while (b[i]<b[i]+1): cres=cres+1 if (c<=len(b)): while (b[i]>b[i]+1): decres=decres+1 cont=decres+cre...
e643e7e82c014086d290c39d39a507f120ea7360
c9d02cc6ac33723f8dbd7013ae3210c28691d125
/instances2dict_with_polygons.py
8a0f2948b2862672119535a3eaf35bfc13c2eae1
[]
no_license
nhtlongcs/cityscape_to_polylines
05c040a998d0bfdf9ff1958f540229a8b69e1c48
55f91fc33c50fc5563164fb215c7af7c3f11a278
refs/heads/master
2022-04-28T09:52:01.628969
2020-05-02T07:17:51
2020-05-02T07:17:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,557
py
#!/usr/bin/python # # Convert instances from png files to a dictionary # This files is created according to https://github.com/facebookresearch/Detectron/issues/111 from __future__ import print_function, absolute_import, division import os, sys sys.path.append( os.path.normpath( os.path.join( os.path.dirname( __file_...
2691d4e2fcd1060926b734171d61fc077aac74a1
2d73ac2c921bb84756478e042ba33ba09c6f8be0
/sxm_player/workers/status.py
874b3668f44ed5921ce5b6e4d90da1fffd866df8
[ "MIT" ]
permissive
fdigeron/sxm-player
7aa6aba111b1c6bedf6ed8e6c89f7d66feb26c8d
2ca91fe216d1ad823b1ad7f9cfe43db4a016bd96
refs/heads/master
2023-06-23T18:34:47.892363
2021-07-30T13:27:04
2021-07-30T13:27:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,347
py
import httpx from ..queue import EventMessage, EventTypes from .base import SXMLoopedWorker __all__ = ["StatusWorker"] CHECK_INTERVAL = 30 class StatusWorker(SXMLoopedWorker): NAME = "status_check" _ip: str _port: int _delay: float = 30.0 _failures: int = 0 def __init__(self, port: int, i...
eea64d13a9b9e501d67e09b3316d74dc54007207
edd1adb88112045d16d3e6417117d45ceed4a634
/classical/woodworking-sat11-strips/api.py
54d9042dbc3b4d84a2cf98e4827effa7980c343b
[]
no_license
AI-Planning/classical-domains
26de25bf23622f95c877960c1d52f444922d8737
4bd0b42d89ea02bd38af6f93cf20a0ab0cbda9d9
refs/heads/main
2023-04-27T07:55:55.832869
2023-03-29T01:46:11
2023-03-29T01:46:11
253,298,999
24
12
null
2023-04-18T01:45:39
2020-04-05T18:02:53
PDDL
UTF-8
Python
false
false
2,598
py
domains = [ {'description': 'Simulates the works in a woodworking workshop where there is some quantity of wood that has to be polished, coloured, etc. using different tools with different costs. Parameters of each problem are the parts to be done and the quantity (in % of necessary) of available wood (boards). The hig...
cfdc5c14013630e610a586b320bf708cda421dd0
871107e8ac9e7631057c9c9b02d3fd733e00fe2c
/Client/screens/introscreen.py
602202fdfd03760e173b0f4593127a50fce4d43b
[]
no_license
jamesfowkes/Snackspace
40993cfc26b23463939ebaa8fa37f666086be3c9
d93633aaf25039b9a548b073e69d8f23c94b71e3
refs/heads/master
2018-12-30T10:56:48.786485
2013-10-24T20:49:04
2013-10-24T20:49:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,157
py
""" introscreen.py The first screen to be displayed when snackspace starts. """ from .displayconstants import Colours, Screens from .screen import Screen from .introscreen_gui import IntroScreenGUI class IntroScreen(Screen, IntroScreenGUI): """ Implementation of introduction screen """ def __init__(self, wi...
3dd8660eed53064c4439f1f5d6692774495f1ed8
4e139c024f09eb547304c2cb2d1399a334f66c92
/wikigen/settings.py
615f81170857207c997a2aa14e95fc6fc85ecc86
[]
no_license
epochx/PEER
04dd77fd638858fe285c9fcee3ad6a4ccd283e9a
de52c45d121b63dee28f72b68de2625c8ec2bb66
refs/heads/master
2023-02-27T15:29:09.086756
2021-02-01T07:54:29
2021-02-01T07:54:29
264,897,876
3
0
null
null
null
null
UTF-8
Python
false
false
716
py
#!/usr/bin/env python # -*-coding: utf8 -*- import os CODE_ROOT = os.path.dirname(os.path.realpath(__file__)) HOME = os.environ["HOME"] DATA_PATH = os.path.join(HOME, "data", "PEER") SPLITS_PATH = os.path.join(DATA_PATH, "splits") EDITS_PATH = os.path.join(DATA_PATH, "edits") RESULTS_PATH = os.path.join(HOME, "res...
d6b5386e2ea175f5f51171bffa0c9efee0e4d949
c9094a4ed256260bc026514a00f93f0b09a5d60c
/homeassistant/helpers/debounce.py
23727c2a00fe774c1bdc55970457e11e4ddccf7a
[ "Apache-2.0" ]
permissive
turbokongen/home-assistant
824bc4704906ec0057f3ebd6d92788e096431f56
4ab0151fb1cbefb31def23ba850e197da0a5027f
refs/heads/dev
2023-03-12T05:49:44.508713
2021-02-17T14:06:16
2021-02-17T14:06:16
50,231,140
4
1
Apache-2.0
2023-02-22T06:14:30
2016-01-23T08:55:09
Python
UTF-8
Python
false
false
3,861
py
"""Debounce helper.""" import asyncio from logging import Logger from typing import Any, Awaitable, Callable, Optional from homeassistant.core import HassJob, HomeAssistant, callback class Debouncer: """Class to rate limit calls to a specific command.""" def __init__( self, hass: HomeAssista...
e45e706f80a74d2a8924775331da036844f19fd9
ef821468b081ef2a0b81bf08596a2c81e1c1ef1a
/Python OOP/Iterators_and_Generators-LAB/Squares.py
219b82c3944acc802bf2321227dea9b7f7341b33
[]
no_license
Ivaylo-Atanasov93/The-Learning-Process
71db22cd79f6d961b9852f140f4285ef7820dd80
354844e2c686335345f6a54b3af86b78541ed3f3
refs/heads/master
2023-03-30T20:59:34.304207
2021-03-29T15:23:05
2021-03-29T15:23:05
294,181,544
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
def squares(n): for i in range(1, n + 1): yield i ** 2 print(list(squares(5)))
81608d1980eaa0bcd10242f77e99c0a5aad22b73
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-apm/huaweicloudsdkapm/v1/model/delete_app_request.py
7b641893dbfb446555ef0b94333f7954ceaf7ae2
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,007
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class DeleteAppRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute n...
9ed0fdfefdf7006316db3f03a97b40008588cfa4
2966b05a4b8239a3ab95acf26423e706582e4b42
/kvirt/kvm/__init__.py
6daebf1c19ebe570816a6f49688f4d84bfdb1e97
[]
no_license
goffinet/kcli
80ea47c3b928ee1c7d85a7c4519f82c6c8144cee
69b225137bf543fabcebd7478802fb9d725a82ab
refs/heads/master
2021-01-19T19:18:42.803401
2017-03-02T01:29:39
2017-03-02T01:29:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
61,596
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ interact with a local/remote libvirt daemon """ from kvirt import defaults from iptools import IpRange # from jinja2 import Environment from kvirt import common from netaddr import IPAddress, IPNetwork from libvirt import open as libvirtopen import os import string imp...
3fed61110663973cd1928a59a2125cf764eff374
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03437/s906498746.py
3c6648d03f39f52d51a4df527cdc8f918756b654
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
92
py
m, n = map(int, input().split()) if m >= n and m % n == 0: print(-1) else: print(m)
cbd694d67c5985c58ecb43d81a9b857bc29e0727
1afa1b1929d1cd463cd9970174dd58ce2ca6eb1e
/configs/mobilenet_v3/lraspp_m-v3s-d8_scratch_512x1024_320k_cityscapes.py
a5507b4beaae675a1e5075a8fbd154ca5b5265c5
[ "Apache-2.0" ]
permissive
CAU-HE/CMCDNet
2328594bf4b883384c691099c72e119b65909121
31e660f81f3b625916a4c4d60cd606dcc8717f81
refs/heads/main
2023-08-08T17:21:57.199728
2023-07-28T07:34:40
2023-07-28T07:34:40
589,927,845
12
1
null
null
null
null
UTF-8
Python
false
false
738
py
_base_ = './lraspp_m-v3-d8_scratch_512x1024_320k_cityscapes.py' norm_cfg = dict(type='SyncBN', eps=0.001, requires_grad=True) model = dict( type='EncoderDecoder', backbone=dict( type='MobileNetV3', arch='small', out_indices=(0, 1, 12), norm_cfg=norm_cfg), decode_head...
df348e14d755b39f5502493836abc26b73a94792
8bbeb7b5721a9dbf40caa47a96e6961ceabb0128
/python3/324.Wiggle Sort II(摆动排序 II).py
d276668f063a9cc860cd18310872f77ccd38876f
[ "MIT" ]
permissive
lishulongVI/leetcode
bb5b75642f69dfaec0c2ee3e06369c715125b1ba
6731e128be0fd3c0bdfe885c1a409ac54b929597
refs/heads/master
2020-03-23T22:17:40.335970
2018-07-23T14:46:06
2018-07-23T14:46:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,414
py
""" <p>Given an unsorted array <code>nums</code>, reorder it such that <code>nums[0] &lt; nums[1] &gt; nums[2] &lt; nums[3]...</code>.</p> <p><b>Example 1:</b></p> <pre> <strong>Input: </strong><code>nums = [1, 5, 1, 1, 6, 4]</code> <strong>Output: </strong>One possible answer is <code>[1, 4, 1, 5, 1, 6]</code>.</pre...
74780552abdcb29cbb2ff55c2bfafc323a3c67a6
0e478f3d8b6c323c093455428c9094c45de13bac
/src/OTLMOW/PostenMapping/Model/Post060371615.py
f8c41c27b0114312043dc81cf23f0e87d9548eb3
[ "MIT" ]
permissive
davidvlaminck/OTLMOW
c6eae90b2cab8a741271002cde454427ca8b75ba
48f8c357c475da1d2a1bc7820556843d4b37838d
refs/heads/main
2023-01-12T05:08:40.442734
2023-01-10T15:26:39
2023-01-10T15:26:39
432,681,113
3
1
MIT
2022-06-20T20:36:00
2021-11-28T10:28:24
Python
UTF-8
Python
false
false
4,410
py
# coding=utf-8 from OTLMOW.PostenMapping.StandaardPost import StandaardPost from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping # Generated with PostenCreator. To modify: extend, do not edit class Post060371615(StandaardPost): def __init__(self): super().__init__( nummer...
cfb9b132d864866cf06c629af73bf710465ed333
96fed5ba4bb561750b8c990581e7aa928b1b2124
/backend/django_app/apps/endpoints/migrations/0001_initial.py
1538207dcd6c5358dbfe93597c905858663a9034
[]
no_license
Inoxevious/fin_paradise_app
99458bb18ea6a62482521c5adef5c44e61e96e38
22eb0c9bb92e03f7302588200ad3520ad7554694
refs/heads/main
2023-03-12T21:00:41.858629
2021-03-02T07:52:28
2021-03-02T07:52:28
338,951,278
0
0
null
null
null
null
UTF-8
Python
false
false
10,018
py
# Generated by Django 3.0.8 on 2021-02-13 13:32 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('users', '0006_auto_20210213_1301'), ] operations = [ migrations.CreateModel( ...