blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
32c3db21179f71d7d3b81b90f71abe18b6ebcc50
a757953b0fab1c4d05ce6b70b68b411df42bb887
/raredecay/run_config/config.py
bf95bbd8a144a333eb7c63e6c9faeb67b38b1b7f
[ "Apache-2.0" ]
permissive
efueger/raredecay
4e6ae0cff4bde925e2985335793dc7a138a5c772
4a92742016b2aea27e5156fee168d69d2c0361d0
refs/heads/master
2021-01-01T20:37:16.970625
2017-07-31T14:48:35
2017-07-31T14:48:35
98,898,305
0
0
null
2017-07-31T14:31:54
2017-07-31T14:31:54
null
UTF-8
Python
false
false
1,379
py
# -*- coding: utf-8 -*- """ Created on Fri Sep 16 13:44:43 2016 The configuration file for external operations. @author: Jonas Eschle "Mayou36" """ RUN_NAME = 'Classifier optimization' run_message = str("This could be your advertisement" + " ") OUTPUT_CFG = dict( run_name=RUN_NAME, output...
[ "mayou36@jonas.eschle.com" ]
mayou36@jonas.eschle.com
84384e7ac129c854281286bde8c8fa39109edf50
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/409/usersdata/308/79040/submittedfiles/av1_programa1.py
cf9b07d9090afe0bfb3912b3b86c0d8a9fbf8726
[]
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
162
py
# -*- coding: utf-8 -*- #Lendo valor do usuário x = int(input('Informe o valor: ')) #testando se é par if (x%2==0): print('PAR') else: print('IMPAR')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
d25ac17866c59602f3a74c473525baa8b1525ecc
42186fa6507999ce60d334a0f04d9ae2127579cd
/shanghai/crypto/aessss/aes.py
28f4167b8afbc6cd5a1d96fa31eac1158ba77de1
[]
no_license
Imtinmin/CTF_Challenge
ef8b62b3a4a1741d814d989f795a243257ff6f2b
ea276596f9effdbe0cf9ef4457e2e676e652bb74
refs/heads/master
2022-12-21T12:40:40.625562
2020-04-30T03:27:56
2020-04-30T03:27:56
158,999,004
18
3
null
2022-12-10T04:34:27
2018-11-25T04:53:04
PHP
UTF-8
Python
false
false
6,458
py
# -*- coding:utf-8 -*- import random import sys import string from hashlib import sha256 import SocketServer from Crypto.Cipher import AES from secret import FLAG, IV, KEY class Task(SocketServer.BaseRequestHandler): def proof_of_work(self): proof = ''.join( [random.choice(string.ascii_letter...
[ "954093370@qq.com" ]
954093370@qq.com
d882a075eccf5c70c14258c6c98aa38b84b83009
e37fa62da82ae60561e59027f8626facc9728b4a
/learn_spyder/downloads/Chapter2/solutions/Exercise2-4.py
8d0998a34134a66f4b644de906051a217539109b
[]
no_license
nhuntwalker/mystuff
ea05551ae17cfc0a6e4286a0dd97fe85f39bfe89
bf2e79a1213fea1249ce93ef28d0caeffc710eb1
refs/heads/master
2021-01-19T01:04:22.215725
2016-06-23T00:22:22
2016-06-23T00:22:22
13,390,985
4
0
null
null
null
null
UTF-8
Python
false
false
216
py
import ctypes as ct # libc = ct.CDLL('libc.so.6') # in Linux/MacOS libc = ct.cdll.msvcrt # in Windows for c in range(128): print(c, ' is a ctrl char' if libc.iscntrl(c) else 'is not a ctrl char')
[ "nhuntwalker@gmail.com" ]
nhuntwalker@gmail.com
1ce4e956fe58872f2719ab4f3c67b8c279caf0a8
8cf5c91fa744f49b40264061d4fd510ea761cf8f
/build/lib/dragonn/visualize_util.py
f672496759111da32eecdc588fa5a4607cc0eb20
[ "MIT" ]
permissive
AvantiShri/dragonn
0f38371ac7734099279f3b3e204565d9a663102f
aeb9674f39b71d07ff62d2c3745bef4a2e55b95f
refs/heads/master
2020-04-23T18:01:34.394772
2019-02-18T06:07:40
2019-02-18T06:07:40
171,352,688
0
0
MIT
2019-02-18T20:37:59
2019-02-18T20:37:59
null
UTF-8
Python
false
false
5,953
py
# Adapted from Keras source code # License: https://github.com/fchollet/keras/blob/master/LICENSE import itertools from keras.layers.containers import Graph, Sequential from keras.layers.core import Merge try: # pydot-ng is a fork of pydot that is better maintained import pydot_ng as pydot except ImportError:...
[ "annashcherbina@gmail.com" ]
annashcherbina@gmail.com
4eeccaf83120bc0894347b8916c466c18737500d
4ecbc07cdc980f899510e0db2971ba754c474670
/timm/models/layers/mlp.py
05d076527cfb6f15bcf5f2830fa36777abbc5a1e
[ "BSD-3-Clause", "GPL-1.0-or-later", "MIT", "LGPL-2.0-or-later", "LicenseRef-scancode-proprietary-license", "CC-BY-NC-4.0", "Apache-2.0" ]
permissive
shrikumaran/pytorch-image-models
8c74ec7d705b6b2fb223d519afdd61f33c108cec
6d8272e92c3d5f13a9fdd91dfe1eb7fae6784589
refs/heads/master
2023-06-16T06:41:30.088230
2021-07-08T18:23:55
2021-07-08T18:51:12
384,009,847
0
0
Apache-2.0
2021-07-08T05:22:35
2021-07-08T05:22:34
null
UTF-8
Python
false
false
3,774
py
""" MLP module w/ dropout and configurable activation layer Hacked together by / Copyright 2020 Ross Wightman """ from torch import nn as nn class Mlp(nn.Module): """ MLP as used in Vision Transformer, MLP-Mixer and related networks """ def __init__(self, in_features, hidden_features=None, out_features=N...
[ "rwightman@gmail.com" ]
rwightman@gmail.com
a23aaeb1fe329a362d00beace17f570d5ab087b3
5cb3b0b88c1baa2fae9562ac4cad5f84d65221e1
/w7/demo/demo/core/models.py
b936ac6f63740a7a568da59d6fbd5aca09523171
[]
no_license
bobur554396/BFDjango2020Spring
aa7ad9a595b247100f876e36585368af078d862e
e7ef04be2cf4d2506c2212ea4509a106e12d4dd4
refs/heads/master
2020-12-15T07:07:16.214284
2020-04-13T19:16:28
2020-04-13T19:16:28
235,028,587
0
2
null
null
null
null
UTF-8
Python
false
false
3,162
py
from django.db import models from rest_framework import serializers class Publisher(models.Model): """Publisher class""" MALE = 1 FEMALE = 2 GENDER = ( (MALE, 'male'), (FEMALE, 'female'), ) name = models.CharField(max_length=300, unique=True) city = models.CharField(max_len...
[ "bobur.muhsimbaev@gmail.com" ]
bobur.muhsimbaev@gmail.com
a28d8b93e2c943b416dc0e882ce5ceeaff0889f8
551ef0567aca428a535775d3949f5d9670c0d29c
/abc/212/c/main.py
9351e78f01dac0c8505cf070b9bc58365ee2fbc7
[]
no_license
komo-fr/AtCoder
7451a9402466ce8d487d0c521128732061c647df
c916889294cb12f21e74254de43b3e17e1b354bc
refs/heads/master
2023-07-22T07:05:52.955188
2023-03-01T14:22:16
2023-03-01T14:22:16
213,109,943
0
0
null
2023-07-06T22:01:28
2019-10-06T04:44:49
Python
UTF-8
Python
false
false
529
py
#!/usr/bin/env python3 N, M = list(map(int, input().split())) a_list = list(map(int, input().split())) b_list = list(map(int, input().split())) ab_list = [] for a in a_list: ab_list.append((a, "a")) for b in b_list: ab_list.append((b, "b")) ab_list = sorted(ab_list) a = None b = None min_y = float("inf") fo...
[ "komo.mdrms@gmail.com" ]
komo.mdrms@gmail.com
4c0b163a7460d2fd4bc039cf7ea4f217d04db9cf
47ce68e1ff970318fd31ac43405d0e1fa3594bf6
/Models/biGAN/lowerDimBiganXEntropy.py
c888aeec7669d02cd851651a907718f7717dec9c
[ "BSD-3-Clause" ]
permissive
Midoriii/Anomaly_Detection_Diploma
7196da379f8aefbd4546ca23e8303d1829e059fb
11145e3e5210a4e45a33d98b138213edb7bc5d3d
refs/heads/master
2023-03-25T20:42:56.961210
2021-03-14T01:13:39
2021-03-14T01:13:39
261,205,472
0
0
null
null
null
null
UTF-8
Python
false
false
5,537
py
''' Copyright (c) 2021, Štěpán Beneš Basic bigAN net, using cross entropy as loss and made to work on 192x192 ''' import numpy as np from Models.biGAN.BaseBiganModel import BaseBiganModel from Models.Losses.custom_losses import wasserstein_loss from Models.biGAN.weightclip_constraint import WeightClip from keras.lay...
[ "stephen.Team24@gmail.com" ]
stephen.Team24@gmail.com
4f6c3c3b84254e921f2c0c5e943bbdf9507428ac
54277288865f738e44d7be1d6b41b19c63af267e
/configs/vcop/pretraining/r3d_18_ucf101.py
eee5d0eb75ac9265d0ceb4f2ff2d8593597c7c29
[]
no_license
scenarios/SR-SVRL
7b41d29e16cff3020f333efc28a624d85bba4537
26e89ecb29355635b10a355f2f16f1b5db9c4e9b
refs/heads/master
2023-02-26T06:16:13.314491
2021-01-30T16:30:57
2021-01-30T16:30:57
307,295,720
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
_base_ = ['./default_runtime.py'] work_dir = './output/vcop/pretraining/r3d_18_ucf101' model = dict( type='VCOP', backbone=dict( type='R3D', depth=18, num_stages=4, stem=dict( temporal_kernel_size=3, temporal_stride=1, in_channels=3, ...
[ "zyz0205@hotmail.com" ]
zyz0205@hotmail.com
0199017464728830e0f1cc7a81ab6727cbc32e81
f8ffa8ff257266df3de9d20d95b291e393f88434
/Python - advanced/zajecia08/zadanie_domowe/wc.py
8f7ba321ebbab792e39244c1e46ea04d4aff5b79
[]
no_license
janiszewskibartlomiej/Python_Code_Me_Gda
c0583c068ef08b6130398ddf93c3a3d1a843b487
7568de2a9acf80bab1429bb55bafd89daad9b729
refs/heads/master
2020-03-30T05:06:26.757033
2020-03-02T08:53:28
2020-03-02T08:53:28
150,781,356
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
# Bartłomiej Janiszewski from wc_funkcje import ustaw_logger, wc import log import datetime if __name__ == '__main__': start = datetime.datetime.now() nazwa_pliku = 'zen.txt' wybrany_szablon = 'pelny' poziom_logowania = log.DEBUG ustaw_logger(poziom_logowania) wynik = wc(nazwa_pliku, wybrany_...
[ "janiszewski.bartlomiej@gmail.com" ]
janiszewski.bartlomiej@gmail.com
7480bda28d7c6e29cbb2bd96889c9340d1a9e221
80e3dfac67631cef70da3dc015d4557d46d41801
/src/grid/changemapanimations.py
59382ea322cc21c033792db21c18f8d56677383d
[]
no_license
snizzo/lucrezia
7b6d648f11581ddd21acd301df5426d77b6b21dd
fb41e5ba4435d48d702c58aa9402c10ab12a51b9
refs/heads/master
2023-06-22T13:14:06.634116
2023-06-18T22:42:14
2023-06-18T22:42:14
32,765,327
8
4
null
null
null
null
UTF-8
Python
false
false
700
py
#panda3d from panda3d.core import NodePath, LPoint2i from direct.showbase.DirectObject import DirectObject from direct.interval.IntervalGlobal import * #internals from utils.toggle import Toggle from utils.once import Once from objects.grass import Grass from objects.light import Light from tile import Tile from chara...
[ "happy.snizzo@gmail.com" ]
happy.snizzo@gmail.com
a0b703f87a403de60bd497d01dc11969567edd6c
2eb8e3606a8df45d432fdf56ee9aa24942304526
/rocketgram/api/shipping_option.py
55db89dd5aca13265cd5374ea45adc78d30833c9
[ "MIT" ]
permissive
KulZlaK/rocketgram
22848293980ba44dd9fb63db28f34be36c437c84
09587deecffcd7ccc9529f4d9e51221888870f23
refs/heads/master
2022-07-27T23:25:51.254444
2020-05-15T21:36:57
2020-05-15T21:36:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
# Copyright (C) 2015-2020 by Vd. # This file is part of Rocketgram, the modern Telegram bot framework. # Rocketgram is released under the MIT License (see LICENSE). from dataclasses import dataclass from typing import List from .labeled_price import LabeledPrice @dataclass(frozen=True) class ShippingOption: ""...
[ "vd@" ]
vd@
4fcaed0256103e3eb8ace9827d79a215ae909c24
3dfb4ee39555b30e6e0c6fcdbef371864e69f694
/google-cloud-sdk/.install/.backup/lib/surface/preview/app/__init__.py
8250cdb4a7ea1553778dd1cecb732f0c19282aa6
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
MD-Anderson-Bioinformatics/NG-CHM_Galaxy
41d1566d5e60416e13e023182ca4351304381a51
dcf4886d4ec06b13282143ef795c5f0ff20ffee3
refs/heads/master
2021-06-02T21:04:12.194964
2021-04-29T14:45:32
2021-04-29T14:45:32
130,249,632
0
1
null
2020-07-24T18:35:21
2018-04-19T17:25:33
Python
UTF-8
Python
false
false
2,988
py
# Copyright 2013 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...
[ "rbrown@insilico.us.com" ]
rbrown@insilico.us.com
5ea65368b06c233a66fb293222f5e0e86ade3e0a
f81c9451768a52bc22c6a2abe87c25615ea8b3e6
/汇总文件/jobboleproject/jobboleproject/spiders/crawlJobbole.py
b191639c8f7518c6e3da765558ff142ab763b436
[]
no_license
hanfang302/crawlercollect
07cb7fb5faf85018e82f48b0209bd86dc5c52f8f
8f7b286df8bf0a344c3656bda5c7fb96cee640dc
refs/heads/master
2020-03-22T05:27:07.928855
2018-07-03T10:26:07
2018-07-03T10:26:07
139,566,567
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
# -*- coding: utf-8 -*- import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule #继承crawlspider,crawlspider有继承之spider class CrawljobboleSpider(CrawlSpider): #爬虫名称 name = 'crawlJobbole' #域,制定可以爬取的url必须在这个域下面,不在的自动忽略 allowed_domains = ['blog.jobbole.com']...
[ "hanfang123@aliyun.com" ]
hanfang123@aliyun.com
1321de452caf0060f6d2cf2523a3f418c5ce49c9
4e382ae46cf997ea2dbdfcfa463a57d3e0e9ad97
/sols/different_ways_to_add_parentheses.py
bd10c6c02ef9f79a33afab5e46cb95900b8ae084
[]
no_license
hayeonk/leetcode
5136824838eb17ed2e4b7004301ba5bb1037082f
6485f8f9b5aa198e96fbb800b058d9283a28e4e2
refs/heads/master
2020-04-28T03:37:16.800519
2019-06-01T14:34:45
2019-06-01T14:34:45
174,943,756
0
1
null
null
null
null
UTF-8
Python
false
false
711
py
class Solution(object): def diffWaysToCompute(self, exp): def calculate(num1, num2, sign): if sign == "+": return num1 + num2 elif sign == "-": return num1 - num2 else: return num1 * num2 ans = [] fo...
[ "31617695+hayeonk@users.noreply.github.com" ]
31617695+hayeonk@users.noreply.github.com
679e412a82c2340b28045e6cdb388a19bfb5b799
d628948e86841ae3efc93eba2e321dd58fe33b07
/bookmanager/settings.py
14f4a01b82c72de936cfd48b51e0a9eebea7e085
[]
no_license
shd0812/django_demo
8986dde23c2fd8ae4a46f8a938c9c0924200d4b2
832c028171795bf6feabc39d313bcad8cfbe5b94
refs/heads/master
2022-12-05T18:57:11.213951
2020-08-24T08:15:50
2020-08-24T08:15:50
289,303,312
0
0
null
null
null
null
UTF-8
Python
false
false
3,332
py
""" Django settings for bookmanager project. Generated by 'django-admin startproject' using Django 1.11.28. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ impo...
[ "759275499@qq.com" ]
759275499@qq.com
bff8f74051ac91f5994980953d38279ba111917d
e9b9626ffce09bf011803a33b4780d8dcc6657e8
/class9/collateral/put_file.py
aae2559cec9e5615c13bc1c06a49886309059ceb
[ "Apache-2.0" ]
permissive
zh0u0liver/netmiko_course
f7a91eb3f543e2a609172280f13b6bc8c4fbe1b9
31943e4f6f66dbfe523d62d5a2f03285802a8c56
refs/heads/master
2023-08-04T05:41:32.745403
2021-09-14T02:18:44
2021-09-14T02:18:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
import os from getpass import getpass from netmiko import ConnectHandler, file_transfer # Code so automated tests will run properly password = os.getenv("NETMIKO_PASSWORD") if os.getenv("NETMIKO_PASSWORD") else getpass() # Need a privilege15 account (no enable call) cisco3 = { "device_type": "cisco_ios", "hos...
[ "ktbyers@twb-tech.com" ]
ktbyers@twb-tech.com
098d0a2a8b1145a3df6d306fd83f6c68df598e98
8ef8e6818c977c26d937d09b46be0d748022ea09
/cv/distiller/CWD/pytorch/mmrazor/configs/nas/mmcls/onceforall/ofa_mobilenet_supernet_32xb64_in1k.py
341f4bda969cdd7625e1da7e3e5ff0c36e6fee57
[ "Apache-2.0" ]
permissive
Deep-Spark/DeepSparkHub
eb5996607e63ccd2c706789f64b3cc0070e7f8ef
9d643e88946fc4a24f2d4d073c08b05ea693f4c5
refs/heads/master
2023-09-01T11:26:49.648759
2023-08-25T01:50:18
2023-08-25T01:50:18
534,133,249
7
6
Apache-2.0
2023-03-28T02:54:59
2022-09-08T09:07:01
Python
UTF-8
Python
false
false
1,671
py
_base_ = [ 'mmcls::_base_/default_runtime.py', 'mmrazor::_base_/settings/imagenet_bs2048_ofa.py', 'mmrazor::_base_/nas_backbones/ofa_mobilenetv3_supernet.py', ] supernet = dict( _scope_='mmrazor', type='SearchableImageClassifier', data_preprocessor=_base_.data_preprocessor, backbone=_base_....
[ "mingjiang.li@iluvatar.ai" ]
mingjiang.li@iluvatar.ai
fc255fe8fed8197264367180513e6fb8aebecba2
08b439af0eeccb93b41193b65c196b7ab2dbe773
/award/urls.py
1ae3b1aec217ee245e5c22ac908b89354d53b4e5
[ "MIT" ]
permissive
EidAbdullahi/hilal
a80aa3f6b7ce2a3098f5dcada9bbb2fc52dc6ba9
1ccb6a1b5a5143164ced9b8a4c742997abbb6296
refs/heads/master
2023-05-01T14:28:46.837200
2021-05-05T12:02:48
2021-05-05T12:02:48
363,429,977
0
0
null
null
null
null
UTF-8
Python
false
false
1,485
py
"""award URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
[ "eidabdullahi10@gmail.com" ]
eidabdullahi10@gmail.com
515604f2abc3e0df4872c067064277872c874543
6f65ebe31650b73e9c5e77d598295eb1362702bd
/tools/Polygraphy/tests/logger/test_logger.py
078390e71a50b887380cad96436dc31ad37a6be2
[ "Apache-2.0", "BSD-3-Clause", "ISC", "BSD-2-Clause", "MIT" ]
permissive
hierarchyJK/TensorRT
d9b5be9964e54af8b2789a6e98f393519956ed90
c2668947ea9ba4c73eb1182c162101f09ff250fd
refs/heads/master
2023-06-26T07:01:08.922681
2021-07-12T09:28:23
2021-07-13T20:35:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,119
py
# # Copyright (c) 2021, NVIDIA CORPORATION. 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 appl...
[ "rajeevsrao@users.noreply.github.com" ]
rajeevsrao@users.noreply.github.com
5e8052af8629684bb42632d743efaf5d48119ba1
1b94aae63500b6ff94b0446d01c3c9bee385fad2
/.history/chandori/account/views_20210824172332.py
4c4c5078aeec6d0af4357fc59d04853d7bbcc83d
[]
no_license
miracle3070/chandori
71389c2a9df76c242a5895c2c23d4394220f9c8e
b01d1eaa1d9c0d12d7abdc8f164039bcd9c42925
refs/heads/master
2023-08-18T11:46:11.303934
2021-09-28T19:23:22
2021-09-28T19:23:22
393,949,742
0
0
null
null
null
null
UTF-8
Python
false
false
2,675
py
from django.shortcuts import render, redirect from django.contrib.auth import authenticate, login, logout from django.contrib.auth.forms import UserChangeForm from django.utils import timezone from .models import * from .forms import CustomUserChangeForm from django.contrib import messages def edit(request): retur...
[ "62284729+ehddus980@users.noreply.github.com" ]
62284729+ehddus980@users.noreply.github.com
65ed5768bb3bdfc61f10d6cc6a59dfbb999c8d92
4a020c0a492d931f7da5c452c9569fba06703686
/testing/web-platform/tests/webdriver/ecmascript/ecmascript_test.py
cf27c01c06a02063b1347f6673721aec1f88a454
[ "LicenseRef-scancode-w3c-03-bsd-license", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
rbernon/wine-gecko
353173511a790127ffa2ad39d630b8a0dcbbf5bf
550ad9eac229b769992f421ce9492ca46edabaa0
refs/heads/master
2023-08-06T21:25:26.836672
2020-11-30T12:47:56
2021-09-30T08:14:19
411,965,809
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
import os import sys import unittest sys.path.insert(1, os.path.abspath(os.path.join(__file__, "../.."))) import base_test class EcmasScriptTest(base_test.WebDriverBaseTest): def test_that_ecmascript_returns_document_title(self): self.driver.get(self.webserver.where_is("ecmascript/res/ecmascript_test.htm...
[ "rbernon@codeweavers.com" ]
rbernon@codeweavers.com
010582cd02fe383b3413bf2b655b36b3af22c368
7ba54b83de814cd34f0058e797cf3d6313057147
/mmdetection/configs/xray/faster_rcnn_x101_32x4d_fpn_dconv_c3-c5_2x_nih_chestx_det.py
f3478d0c54101f9e68bb9062d6b3357c0452e8b7
[]
no_license
TerryGriffin/COMP5300.AdvancedDeepLearning
083344a939e99fe7e2119225e023ab8aebdda04e
9521c3327ba6d8344711cd3e404e627af9ffc936
refs/heads/master
2023-02-01T10:06:00.355905
2020-12-16T02:05:12
2020-12-16T02:05:12
321,839,952
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
_base_ = './faster_rcnn_r50_fpn_2x_nih_chestx_det.py' model = dict( pretrained='open-mmlab://resnext101_32x4d', backbone=dict( type='ResNeXt', depth=101, groups=32, base_width=4, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dic...
[ "tgriffin62@yahoo.com" ]
tgriffin62@yahoo.com
f6b37a366b054c1e431aefa17fb9943058075c76
0b0f4c15abb143a4b24b3bb01b9a6184df6867bf
/hello_requests/yes_or_no.py
f8b0ac04aff02b0e85c9cd9e2d08c68386c67414
[]
no_license
saida93522/hello_requests_python
efe15130cbb327a78d3ef1aa8d6e43fdaf339709
76dc533dea9e1b1413d04b3fc20c52987139b780
refs/heads/master
2023-05-02T20:43:30.906319
2020-10-16T20:00:32
2020-10-16T20:00:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
834
py
import requests import logging class APIError(Exception): pass def yes_or_no(): try: response = requests.get('https://yesno.wtf/api/') response.raise_for_status() except Exception as e: logging.exception(e) raise APIError('Error connecting to API') try: da...
[ "10088152+claraj@users.noreply.github.com" ]
10088152+claraj@users.noreply.github.com
4504613d10c713611621a028b61bb44666f0a9f3
716abd9e5ba4b72b72cc5f724a6cc0a6ad4390d1
/6-Operators of Python/30-Identity-and-Membership-operators.py
1c0385bd6405585f5684b04ece645772b30e7ea3
[]
no_license
devopstasks/PythonScripting
ac45edd72dc134ec3539b962f02dfc866f365ecf
48bc37733ae6b3be4e2d64909ffe0962b6908518
refs/heads/master
2023-03-29T11:18:01.329452
2021-04-07T03:25:20
2021-04-07T03:25:20
350,388,744
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
''' =================================== Identity operators are used to find the type of: class/type/object. There are 2 types of Identity operators - is - is not =================================== x=6 type(x) -> <class 'int'> y="hi" type(y) -> <class 'str'> type(x) is type(y) -> False type(x) is not type(y) -> T...
[ "rpadhan2015@gmail.com" ]
rpadhan2015@gmail.com
b7346b389ff30c566e8bc6651ae60b10c67ebf2b
0e3462bd127c2072b34ac4885c034bde58ac8063
/c_sharp_code_rewritten_in_python/transformer_command_line_interface.py
7e6cb49274f86f384976fe5a54132f56ddee81b0
[]
no_license
SNeicer/py_regex_translator_core
608b3b6e5d4aff1496a910d38276562f25013cb7
ea45e1eb556285f20f702ae6bd697aebd6f0efe6
refs/heads/master
2023-02-12T04:49:03.063797
2021-01-08T14:06:15
2021-01-08T14:06:15
326,164,216
0
0
null
2021-01-02T11:26:50
2021-01-02T11:04:11
Python
UTF-8
Python
false
false
331
py
from c_sharp_code_rewritten_in_python import interfaces class TransformerCLI: def __init__(self, transformer: interfaces.IFileTransformer): self._transformer = transformer def run(self, *args): sourcePath = args[0] targetPath = args[1] self._transformer.transform(sourcePath, t...
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
8eab42ec4e999316d34dc5b305592808d36f835a
9dc8c299ee7d4a225002127cc03b4253c8a721fd
/libs/simulator/livepush_acl_topic_simulator.py
823dabe3f0baee30b5bbd03a10492cff39593daf
[]
no_license
namesuqi/strategy_corgi
5df5d8c89bdf7a7c465c438048be20ef16120f4f
557b8f8eabf034c2a57c25e6bc581858dd4f1b6e
refs/heads/master
2020-03-07T04:00:18.313901
2018-03-29T07:50:50
2018-03-29T07:50:50
127,253,453
0
0
null
null
null
null
UTF-8
Python
false
false
787
py
#!/usr/bin/python # coding=utf-8 # livepush_acl report simulator from libs.simulator.topic_simulator import * from config import push_review_duration from libs.module.live_push import * # live_push report livepush_acl class LivePushAclTopicSimulator(TopicSimulator): def __init__(self, log): super(LivePu...
[ "suqi_name@163.com" ]
suqi_name@163.com
a22c702811b62c295c71fa1fb4f4aff77ee8108e
9188d0d7ce9fc5fadf4d2593741894e1448f9326
/indico/vendor/django_mail/backends/locmem.py
4e3f2ecda085f3995cb3fbe9698f0f8bd4f91571
[ "MIT" ]
permissive
vaclavstepan/indico
b411410416acdfa50b0d374f89ec8208de00fb2f
8ca1ac4d4a958f22f24580a790b3cb015570bdfb
refs/heads/master
2023-07-21T04:42:03.031131
2021-09-01T09:54:17
2021-09-01T09:54:17
385,897,420
0
0
MIT
2021-07-16T13:07:32
2021-07-14T10:16:57
null
UTF-8
Python
false
false
1,481
py
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. # The code in here is taken almost verbatim from `django.core.mail.backends.locmem`, # which is licensed u...
[ "adrian.moennich@cern.ch" ]
adrian.moennich@cern.ch
192f5be2ea74ff5dd2215cd23fc641a35c5f9e09
3715df2c833919376a3ee44de8fc64d1c2abe8ce
/AutomlCore/build/lib/algorithms/classification/naive_bayes_complement.py
f057f2f40891211ae4bcc2e4da46ea7a74226a34
[]
no_license
mindis/dachshund
6c07f8eb6b9f75f66c74ec3748dfa42a31cff4d5
2f1b3e5866e06424c700f3a106051fe69bcb18bc
refs/heads/master
2022-12-09T05:17:00.812348
2020-09-03T05:25:09
2020-09-03T05:25:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
963
py
import numpy as np from sklearn.naive_bayes import ComplementNB from sklearn.metrics import accuracy_score from hyperopt import hp from utils import definitions from .. import model, model_classification class ComplementNBClassifier(model.Model, model_classification.ModelClassification): def __init__(self, _project_...
[ "aoba0203@naver.com" ]
aoba0203@naver.com
f4b07d056b6b0304d6a97622d9ff3ea596b95948
61e98b0302a43ab685be4c255b4ecf2979db55b6
/sdks/python/.tox/lint/lib/python2.7/site-packages/pylint/test/input/func_e0604.py
d077f31adbfa8f55fc8501b1293f76262c0e2dfc
[ "Apache-2.0", "BSD-3-Clause", "EPL-2.0", "CDDL-1.0", "WTFPL", "GPL-2.0-only", "BSD-2-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "CDDL-1.1", "Classpath-exception-2.0" ]
permissive
dzenyu/kafka
5631c05a6de6e288baeb8955bdddf2ff60ec2a0e
d69a24bce8d108f43376271f89ecc3b81c7b6622
refs/heads/master
2021-07-16T12:31:09.623509
2021-06-28T18:22:16
2021-06-28T18:22:16
198,724,535
0
0
Apache-2.0
2019-07-24T23:51:47
2019-07-24T23:51:46
null
UTF-8
Python
false
false
206
py
"""Test for invalid objects in a module's __all__ variable. """ # pylint: disable=R0903,R0201,W0612 __revision__ = 0 def some_function(): """Just a function.""" pass __all__ = [some_function]
[ "alex.barreto@databricks.com" ]
alex.barreto@databricks.com
c7cee1ce7b74766902666791db0f8f0747fb6459
aabe7008e0eb77617f1a76cddb98e4b17fd5ce27
/examples/model_compress/pruning/v2/movement_pruning_glue.py
a8365d9834075161641b7946bb41b2c961cfe190
[ "MIT" ]
permissive
penghouwen/nni
a09a374a81be46fe246c425275585d5fe79404af
2e6a2fd2df0d5700cb028b25156bb535a3fc227a
refs/heads/master
2021-12-21T14:02:32.228973
2021-12-13T16:54:39
2021-12-13T16:54:39
435,926,123
1
0
MIT
2021-12-07T15:09:36
2021-12-07T15:09:35
null
UTF-8
Python
false
false
4,715
py
import functools from tqdm import tqdm import torch from torch.optim import Adam from torch.utils.data import DataLoader from datasets import load_metric, load_dataset from transformers import ( BertForSequenceClassification, BertTokenizerFast, DataCollatorWithPadding, set_seed ) from nni.algorithms....
[ "noreply@github.com" ]
penghouwen.noreply@github.com
2adf288db73ef957c82ad3b82c56653c52cf1dfb
53e58c213232e02250e64f48b97403ca86cd02f9
/16/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisQCD_HT200to300.py
ca9031e1be70ac3888d31407f97e120bf09f4de2
[]
no_license
xdlyu/fullRunII_ntuple_102X
32e79c3bbc704cfaa00c67ab5124d40627fdacaf
d420b83eb9626a8ff1c79af5d34779cb805d57d8
refs/heads/master
2020-12-23T15:39:35.938678
2020-05-01T14:41:38
2020-05-01T14:41:38
237,192,426
0
2
null
null
null
null
UTF-8
Python
false
false
2,331
py
from WMCore.Configuration import Configuration config = Configuration() config.section_("General") config.General.requestName = 'QCD_HT200to300' config.General.transferLogs = True config.section_("JobType") config.JobType.pluginName = 'Analysis' config.JobType.inputFiles = ['Summer16_07Aug2017_V11_MC_L1FastJet_AK4P...
[ "XXX@cern.ch" ]
XXX@cern.ch
1ca9421c30d507ffd0c20ef335be2cd7e57b5697
347a6aac6fc40edab03d75a53e89053aeeb8fd72
/quizzes/Quiz7.py
f9e8bdc18bfc69f7deba22dcd76922245d4bc853
[]
no_license
jwilke/cs373
0d5de4676c13e83c8b9dbcab66140be53cebeaf9
7923f3710eaa76d38d8261d6dc596f2bfaf12a8e
refs/heads/master
2021-01-16T00:23:35.227487
2012-07-05T22:53:14
2012-07-05T22:53:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,043
py
#!/usr/bin/env python """ CS373: Quiz #7 (9 pts) """ """ ---------------------------------------------------------------------- 1. In the paper, "A Bug and a Crash" about the Ariane 5, what was the software bug? (2 pts) the conversion of a 64-bit number to a 16-bit number """ """ -----------------------------...
[ "downing@cs.utexas.edu" ]
downing@cs.utexas.edu
352b804747cc226f09e7a42316e6262c0a63a77b
15581a76b36eab6062e71d4e5641cdfaf768b697
/LeetCode_30days_challenge/2020/August/Design HashSet.py
8ac9ddd111bec7159b93c31f2ee92c9ef039863d
[]
no_license
MarianDanaila/Competitive-Programming
dd61298cc02ca3556ebc3394e8d635b57f58b4d2
3c5a662e931a5aa1934fba74b249bce65a5d75e2
refs/heads/master
2023-05-25T20:03:18.468713
2023-05-16T21:45:08
2023-05-16T21:45:08
254,296,597
0
0
null
null
null
null
UTF-8
Python
false
false
648
py
class MyHashSet: def __init__(self): self.numBuckets = 15000 self.buckets = [[] for _ in range(self.numBuckets)] def hash_function(self, key): return key % self.numBuckets def add(self, key): i = self.hash_function(key) if not key in self.buckets[i]: sel...
[ "mariandanaila01@gmail.com" ]
mariandanaila01@gmail.com
af8a2ebd0fe7f5f06e5aeccc636bf8704d77ef8a
ccf6945c819e25a3eae92103116b7d1063e21871
/chess_piece_detection/app/other_models/alexnet.py
6da26d5ea58921656765650c08f6ac477852e5d1
[]
no_license
ace-racer/Extending-Board-Games-using-deep-learning
67355eabec91ed8afb1150e4c2d6bb0068e74910
7171b14c80be35b0ee882322c318307779379e9a
refs/heads/master
2020-04-10T05:32:18.705335
2019-04-22T11:42:47
2019-04-22T11:42:47
160,830,611
0
1
null
null
null
null
UTF-8
Python
false
false
4,261
py
# Import necessary components to build LeNet # Reference: https://github.com/eweill/keras-deepcv/blob/master/models/classification/alexnet.py from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation, Flatten from keras.layers.convolutional import Conv2D, MaxPooling2D, ZeroPadding2D f...
[ "anuragchatterjee92@gmail.com" ]
anuragchatterjee92@gmail.com
3415d6c90827899f16903882ab9e54d437fd5b09
34eb0a65adb4290d6224075a2700d432d5649de6
/tachyon/common/restclient.py
1d6c499cbfc98be41954791218186029b21669a2
[ "BSD-3-Clause" ]
permissive
Vuader/tachyon_common
ae950e13ac14df590cc76b3c7f98c26434104217
a675d13a251aeda16dba7a416354872ee41509e6
refs/heads/master
2021-01-19T09:51:55.904274
2017-02-15T11:50:00
2017-02-15T11:50:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,684
py
# Tachyon OSS Framework # # Copyright (c) 2016-2017, see Authors.txt # All rights reserved. # # LICENSE: (BSD3-Clause) # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain th...
[ "christiaan.rademan@gmail.com" ]
christiaan.rademan@gmail.com
12f85dfe3b746c02305c2dd7cc147b806129fb82
391d648132c1a05e7da575205eef89a7208a892a
/scripts/playground/phase.py
0fe2427793d433ebdd4a2e65cbfcf3a84a814b9a
[]
no_license
michaelbateman/DemographicInference
c3ceaf69f8b554f3973473607d6b5201cca423f9
b1e2529b1ce0710f82d2867d08588ae4a6c72bb2
refs/heads/master
2021-01-10T06:28:43.698581
2015-10-06T18:25:45
2015-10-06T18:25:45
43,770,029
0
0
null
null
null
null
UTF-8
Python
false
false
1,500
py
import subprocess in_file = 'ag1000g.phase1.AR2.3L.PASS.vcf.gz' region_size = 5000000 num_regions = 50e6 / region_size print num_regions print int(num_regions) for k in range(0,int(num_regions)): i = int(num_regions) -1 - k left = i * region_size right = (i+1) * region_size window = str(left) + '-' + str...
[ "bbeeefcake@gmail.com" ]
bbeeefcake@gmail.com
c3adcbeba8fc8166b6429a87de5ab17b4187ccfd
aabe7008e0eb77617f1a76cddb98e4b17fd5ce27
/nni/experiment/rest.py
bdacc7c215ac759fdb551e7d4fa3d6e296e45fd1
[ "MIT" ]
permissive
penghouwen/nni
a09a374a81be46fe246c425275585d5fe79404af
2e6a2fd2df0d5700cb028b25156bb535a3fc227a
refs/heads/master
2021-12-21T14:02:32.228973
2021-12-13T16:54:39
2021-12-13T16:54:39
435,926,123
1
0
MIT
2021-12-07T15:09:36
2021-12-07T15:09:35
null
UTF-8
Python
false
false
1,156
py
import logging from typing import Any, Optional import requests _logger = logging.getLogger(__name__) url_template = 'http://localhost:{}/api/v1/nni{}' timeout = 20 def request(method: str, port: Optional[int], api: str, data: Any = None) -> Any: if port is None: raise RuntimeError('Experiment is not ru...
[ "noreply@github.com" ]
penghouwen.noreply@github.com
e6bd6f44f4b8d52a1fe03affd4b5296e02733784
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03435/s544670590.py
b7a33f056509c825aa6f270f9dacfc4421f64bb9
[]
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
413
py
c1= list(map(int, input().split())) c2 = list(map(int, input().split())) c3 = list(map(int, input().split())) a1 = 0 a2 = c2[0] - c1[0] a3 = c3[0] - c1[0] b1 = c1[0] b2 = c1[1] b3 = c1[2] if c1[0] == a1 + b1 and c1[1] == a1 + b2 and c1[2] == a1 + b3 and c2[0] == a2 + b1 and c2[1] == a2 + b2 and c2[2] == a2 + b3 and c...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2be58aa42be5d9593ef75e0651cfefb8cbdd0f51
3b66632458e2463db62a800f9a0cf9e13c71a47e
/examples/template_tfe_multiple_optimizers/edflow.py
d0c88a39f566f2597d3f743824684633f16c3834
[ "MIT" ]
permissive
pesser/edflow
eddb6d9341b861670946c157363933e9add52288
317cb1b61bf810a68004788d08418a5352653264
refs/heads/dev
2022-12-09T05:19:35.850173
2020-07-21T16:29:15
2020-07-21T16:29:15
146,750,121
27
15
MIT
2022-12-07T20:55:50
2018-08-30T12:59:11
Python
UTF-8
Python
false
false
7,162
py
import functools import tensorflow as tf tf.enable_eager_execution() import tensorflow.keras as tfk import numpy as np from edflow import TemplateIterator, get_logger class FullLatentDistribution(object): # TODO: write some comment on where this comes from def __init__(self, parameters, dim, stochastic=True)...
[ "supermario94123@gmail.com" ]
supermario94123@gmail.com
1ce01c3e5eafef0398c727f2132d92cef69b14ab
2b93a5f46980e475375e796de139ed46a53809a6
/Functions/Calculator.py
0095b099701cd2e5bbf751a81ce9b7acc2e6e00c
[]
no_license
ravi4all/PythonMay_11
c9996cb0a2741a5a022c74129aa21c1f4b495aba
f0f3fb5e99a67e704df2a109a7af3d8d18010f9d
refs/heads/master
2020-03-16T21:28:06.549963
2018-05-30T05:34:50
2018-05-30T05:34:50
133,000,051
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
def add(x,y): z = x + y print("Addition is",z) def sub(x,y): z = x - y print("Subtraction is",z) def div(x,y): z = x / y print("Division is",z) def mul(x,y): z = x * y print("Multiplication is",z) # Menu Driven Programs print(""" 1. Add 2. Sub 3. Div 4. Mul """)...
[ "noreply@github.com" ]
ravi4all.noreply@github.com
1b168c8660752d0007441aec85f837fc3f33b6f2
ca831a9dc9d6dc0b2cedc4d998b26600439b5f10
/python/numpy/q4_np_concatenate.py
d47d611fb6d9b69f1a21103ef45d97b89b76e8e9
[ "MIT" ]
permissive
mxdzi/hackerrank
c2579f4351fba5af1dec21a49485e043421c2dd8
c8da62ac39a0c24f535eded74c102a9c0ccd7708
refs/heads/master
2022-12-26T20:10:36.948961
2022-12-08T18:27:51
2022-12-08T18:27:51
225,469,479
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
import numpy def main(): N, M, P = map(int, input().split()) array1 = numpy.array([input().split() for _ in range(N)], int) array2 = numpy.array([input().split() for _ in range(M)], int) print(numpy.concatenate((array1, array2))) if __name__ == "__main__": main()
[ "michal@dziadowicz.it" ]
michal@dziadowicz.it
7ba0744fc18c12981135e6b474843ce4bdb643e4
14bca3c05f5d8de455c16ec19ac7782653da97b2
/lib/requests_oauthlib/oauth2_auth.py
d8712fd46c49685f885010eb48c0e21094a5eea6
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hovu96/splunk_as_a_service_app
167f50012c8993879afbeb88a1f2ba962cdf12ea
9da46cd4f45603c5c4f63ddce5b607fa25ca89de
refs/heads/master
2020-06-19T08:35:21.103208
2020-06-16T19:07:00
2020-06-16T19:07:00
196,641,210
8
1
null
null
null
null
UTF-8
Python
false
false
1,578
py
from __future__ import unicode_literals from oauthlib.oauth2 import WebApplicationClient, InsecureTransportError from oauthlib.oauth2 import is_secure_transport from requests.auth import AuthBase class OAuth2(AuthBase): """Adds proof of authorization (OAuth2 token) to the request.""" def __init__(se...
[ "robert.fujara@gmail.com" ]
robert.fujara@gmail.com
4cc5fa1c5d42c3b5b3744dc1eb24a06ed4c8e10c
95495baeb47fd40b9a7ecb372b79d3847aa7a139
/test/test_siurl_list.py
094c867212270e09508ac2b3c62b72a81fd28872
[]
no_license
pt1988/fmc-api
b1d8ff110e12c13aa94d737f3fae9174578b019c
075f229585fcf9bd9486600200ff9efea5371912
refs/heads/main
2023-01-07T09:22:07.685524
2020-10-30T03:21:24
2020-10-30T03:21:24
308,226,669
0
0
null
null
null
null
UTF-8
Python
false
false
1,152
py
# coding: utf-8 """ Cisco Firepower Management Center Open API Specification **Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi...
[ "pt1988@gmail.com" ]
pt1988@gmail.com
4b11dd4cd2213194d38521b0f83f8f3b572200c8
d79c152d072edd6631e22f886c8beaafe45aab04
/nicolock/users/migrations/0004_user_user_type.py
92f9060fd70d6a9a282d30ca0b5d03f2722b99e2
[]
no_license
kabroncelli/Nicolock
764364de8aa146721b2678c14be808a452d7a363
4c4343a9117b7eba8cf1daf7241de549b9a1be3b
refs/heads/master
2020-03-11T11:02:43.074373
2018-04-18T17:38:33
2018-04-18T17:38:33
129,959,455
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-12-06 23:17 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_companyprofile'), ] operations = [ migrations.AddField( ...
[ "brennen@lightningkite.com" ]
brennen@lightningkite.com
51b4d394824411e8488ff400df0a553116936ee9
9d3b8d5f45e5407f3275542cf5792fd2510abfe4
/Chapter8-Practice/test_8.3.3.py
be0013a975a93a720f793d9350d06c6bec324a9c
[]
no_license
Beautyi/PythonPractice
375767583870d894801013b775c493bbd3c36ebc
9104006998a109dcab0848d5540fb963b20f5b02
refs/heads/master
2020-04-23T09:58:50.065403
2019-04-08T02:55:52
2019-04-08T02:55:52
171,088,504
2
0
null
null
null
null
UTF-8
Python
false
false
804
py
#返回字典 def build_person(first_name, last_name): """返回一个字典,包含一个人的信息""" person = {'first': first_name, 'last': last_name} return person musician = build_person('jimi', 'hendrix') print(musician) def build_person(first_name, last_name, age=' '): """返回一个字典,包含一个人的信息""" person = {'first': first_name, '...
[ "1210112866@qq.com" ]
1210112866@qq.com
77bd1762c4aaac19096157edc60a32d1f6d81374
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/uribv6/db.py
b29be36943d31f0ffadcc44b5729663096da2e21
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
4,200
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
3a5e3a9076882a87027c00689734bedef960925d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03425/s478084192.py
7e20b760b92578dea372ba9ffdd4d4f5431cd5bc
[]
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
397
py
from itertools import combinations N = int(input()) A = [0 for _ in range(5)] for _ in range(N): a = input().strip() if a[0]=="M": A[0] += 1 elif a[0]=="A": A[1] += 1 elif a[0]=="R": A[2] += 1 elif a[0]=="C": A[3] += 1 elif a[0]=="H": A[4] += 1 cnt = 0 for...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8e9f3948ab5c1e5a196edddb2fe11e19304dd0e5
1cd0c5706f5afcabccf28b59c15d306b114dd82a
/siteapi/migrations/0004_auto_20170220_2215.py
b448ea88ca4bcdc7a5f1e878f3326138726cde40
[]
no_license
jacobbridges/scribbli
fb1ed8633fc8ebcd7d989fbab2e051612bdc07d2
eb21ca9f5ee4c7caba5a25b76c6cdfe81af5d995
refs/heads/master
2021-01-12T10:32:38.466332
2018-01-27T19:48:39
2018-01-27T19:48:39
81,711,757
0
0
null
null
null
null
UTF-8
Python
false
false
720
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-20 22:15 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('siteapi', '0003_auto_20170220_2213'), ] operations = [ migr...
[ "him@jacobandkate143.com" ]
him@jacobandkate143.com
beb923b2521bb0f9e00e5a892115a68855650a54
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/servicebus/aaz/latest/servicebus/namespace/private_link_resource/_show.py
eae4030227ceaa104f1f40abb9b01954ee7cdcc9
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
Azure/azure-cli
13340eeca2e288e66e84d393fa1c8a93d46c8686
a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca
refs/heads/dev
2023-08-17T06:25:37.431463
2023-08-17T06:00:10
2023-08-17T06:00:10
51,040,886
4,018
3,310
MIT
2023-09-14T11:11:05
2016-02-04T00:21:51
Python
UTF-8
Python
false
false
6,208
py
# -------------------------------------------------------------------------------------------- # 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 aaz-dev-tools # --------------------------------...
[ "noreply@github.com" ]
Azure.noreply@github.com
84c9288217995f2610547ebe92e52a2f6e69d003
d5ee3688c0df793a765aa7fca25253ef450b82e9
/src/scs_mfr/opc_conf.py
a821e3faf7068277766ea4005206cbf8c299d8b0
[ "MIT" ]
permissive
seoss/scs_mfr
0e85146c57dfefd605967e7dd54c666bfefddf74
997dd2b57160df30ef8750abed7efa87831e4c66
refs/heads/master
2023-01-20T23:58:16.547082
2020-11-27T09:40:20
2020-11-27T09:40:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,256
py
#!/usr/bin/env python3 """ Created on 13 Jul 2016 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) DESCRIPTION The opc_conf utility is used to specify whether an Alphasense optical particle counter (OPC) is present and if so, which model is attached. An option is also available to override the host's defau...
[ "bruno.beloff@southcoastscience.com" ]
bruno.beloff@southcoastscience.com
ad5ae115186a694489f6794a6279b0b75e037ee8
051c3ee44478265c4510530888335335ec9f7fdf
/ML_Applications/SVM/Mutants/code/SVM_rbf/DigitRecognitionApp_47.py
2be1dd52e2ea4cb532d52028ef938535d52fe789
[]
no_license
PinjiaHe/VerifyML
b581c016012c62d8439adfce0caef4f098b36d5e
3bd7c49e45720c1cdfe0af4ac7dd35b201056e65
refs/heads/master
2020-03-25T19:40:39.996370
2018-01-30T08:58:58
2018-01-30T08:58:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,166
py
""" Created on Fri May 26 15:20:01 2017 #Digit Recognition for V & V #Following note added by RR Note: 1. The actual digits data from the http://archive.ics.uci.edu/ml/datasets/Pen-Based+Recognition+of+Handwritten+Digits is different than the one referred in this sklearn example 2. For more info, refer this link htt...
[ "anurag.bms@gmail.com" ]
anurag.bms@gmail.com
e23bc12419592f4b9956c4150d64796a12d4900f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03329/s950503139.py
06a2ed1899ce879a8061ac47bf453dca06be7b16
[]
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
490
py
import sys read = sys.stdin.read readlines = sys.stdin.readlines def main(): n = int(input()) nums = [] n6 = 6 while n6 <= n: nums.append(n6) n6 = n6 * 6 n9 = 9 while n9 <= n: nums.append(n9) n9 = n9 * 9 nums.sort(reverse=True) dp = [i for i in range(2 * n...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6b31c5782ba2db81a6a2b0b105aa3a0552dcb4ad
0e4519d3a94157a419e56576875aec1da906f578
/Python_200Q/051_/Q059.py
110df8a421ca7cff330c0a2f0054d5279bd7f11d
[]
no_license
ivorymood/TIL
0de3b92861e345375e87d01654d1fddf940621cd
1f09e8b1f4df7c205c68eefd9ab02d17a85d140a
refs/heads/master
2021-02-23T17:30:50.406370
2020-10-02T06:43:25
2020-10-02T06:43:25
245,388,390
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
import time count = 1 try: while True: print(count) count += 1 time.sleep(0.5) # Ctrl + C가 입력되면 발생되는 오류 except KeyboardInterrupt: print('사용자에 의해 프로그램이 중단되었습니다')
[ "ivorymood@gmail.com" ]
ivorymood@gmail.com
6a2b5689eeaab249fbbcd16268bfeaf37add46d9
a5a2abaf5c7a681ebea71b4034d7b12dbd750455
/examens/migrations/0002_auto_20160210_0540.py
4a24c8b6dac1ce2a87efbeacc069d098d652c98a
[ "BSD-3-Clause" ]
permissive
matinfo/dezede
e8be34a5b92f8e793a96396f7ec4ec880e7817ff
829ba8c251a0301741460e6695438be52d04a2fc
refs/heads/master
2020-03-15T11:25:56.786137
2018-04-23T13:47:20
2018-04-23T13:47:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,213
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models LEVELS_DATA = ( (1, (6107, 10442, 10531)), (2, (2253, 12468, 12469)), (3, (10603, 8167, 10447)), (4, (8280, 15117)), (5, (3412, 14)), (6, (2256,)), ) LEVELS_HELPS = { 1: """ <p> ...
[ "bordage.bertrand@gmail.com" ]
bordage.bertrand@gmail.com
e78b99366d88cbdb16defac1ca2282fdf9ecf490
82f7c00aa14c95032fb6e6ff1029823404246b83
/apps/statistics/rstats.py
a55468334938caefa6725db99cec04117e861e29
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gillbates/NewsBlur
621feaa090cdc2fe9dcfcae4af7de3f40b69ba00
0eb2ccf4ebe59ff27d6ed822cc406a427cf3bf6a
refs/heads/master
2020-12-30T17:32:03.999893
2013-07-01T00:12:41
2013-07-01T00:12:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,566
py
import redis import datetime import re from collections import defaultdict from django.conf import settings class RStats: STATS_TYPE = { 'page_load': 'PLT', 'feed_fetch': 'FFH', } @classmethod def stats_type(cls, name): return cls.STATS_TYPE[name] @classm...
[ "samuel@ofbrooklyn.com" ]
samuel@ofbrooklyn.com
f6687c34620096ecab62771b37059ffc0b24c773
0e4f76fc3f9aae8b00a67806dffcfc6360e310d1
/classes/ifcannotationfillareaoccurrence.py
153502113434a6de9b77ae22bb820913bb7669da
[]
no_license
HassanEmam/PyoIFC
e11f3b330d3e758aaae47ee9e70b2ae5b5847432
c2ec4e017ce366b07686491dbe22827aec2711c0
refs/heads/master
2020-07-31T14:27:53.305768
2019-09-24T15:41:28
2019-09-24T15:41:28
210,630,850
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
class IFCANNOTATIONFILLAREAOCCURRENCE(IFCANNOTATIONOCCURRENCE): def __init__(self, FillStyleTarget, GlobalOrLocal): self.FillStyleTarget = FillStyleTarget self.GlobalOrLocal = GlobalOrLocal
[ "hassan.emam@hotmail.com" ]
hassan.emam@hotmail.com
8bf9fe5983a368347046e3207f8b7633072051ca
3546dd5dbcffc8509440c820faa7cf28080c5df7
/python35/Lib/site-packages/numpy/fft/tests/test_fftpack.py
e46d78fadb1b219e6e2ee42a40dcf35b89a2e984
[ "Apache-2.0", "MIT", "BSD-3-Clause", "LGPL-2.1-only" ]
permissive
Matchoc/python_env
55ad609c8270cc6148eda22d37f36709d73b3652
859d84d1717a265a4085ad29706b12c19c62d36f
refs/heads/master
2022-02-13T11:05:51.825544
2020-06-05T02:42:08
2020-06-05T02:42:08
75,793,921
0
1
Apache-2.0
2018-12-14T07:30:28
2016-12-07T03:06:13
Python
UTF-8
Python
false
false
6,218
py
from __future__ import division, absolute_import, print_function import numpy as np from numpy.random import random from numpy.testing import TestCase, run_module_suite, assert_array_almost_equal from numpy.testing import assert_array_equal import threading import sys if sys.version_info[0] >= 3: import q...
[ "matchoc@hotmail.com" ]
matchoc@hotmail.com
00ffa9623b835b0bf4f8cab421978522270fe77f
3a9f2b3d79cf214704829427ee280f4b49dca70a
/saigon/rat/RuckusAutoTest/scripts/zd/ats_ZD_QingDao_ZD_CLI.py
9a483fb34fa64b69afd278f3ba300ea8d274eb7a
[]
no_license
jichunwei/MyGitHub-1
ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791
f826fc89a030c6c4e08052d2d43af0b1b4b410e3
refs/heads/master
2021-01-21T10:19:22.900905
2016-08-20T03:34:52
2016-08-20T03:34:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,930
py
import sys import libZD_TestSuite as testsuite from RuckusAutoTest.common import lib_KwList as kwlist def tcid(tcid): return "TCID:32.%02d" % tcid def defineTestConfiguration(target_station): test_cfgs = [] test_name = 'ZD_CLI_Testing' common_name = 'wlaninfo -V: show VAP info' test_cfgs.append(...
[ "tan@xx.com" ]
tan@xx.com
7a7055c98db6e33109323e2cb20c2d9878f88586
28a2d58672a937c337b7310ed4c7d50219b176ce
/tests/test_search.py
ae98278b716f5a7645bbea496c41dd5e640c1bd3
[ "MIT" ]
permissive
AnuradhaNaik/nyc-council-councilmatic
9b7fc0fc255500222d96fc534a3638fd32d6ede7
94974de317e34dcb05165a7c23717960c400d942
refs/heads/master
2020-03-26T12:37:51.662574
2018-04-04T18:26:43
2018-04-04T18:26:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,352
py
from unittest.mock import MagicMock import pytest from haystack.query import SearchQuerySet from django.test import TestCase, Client from django.core.urlresolvers import reverse from django.core.paginator import Paginator # Different combinations of possible parameters sorters = ['title', 'date', 'relevance', None] ...
[ "jean@jeancochrane.com" ]
jean@jeancochrane.com
fa3c05b75bdac93c2ad02f1e4b234dbc2dc39fb2
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/9144ae424953dcd5cbab180fb68ad51108249353-<srccoms_extract>-bug.py
70228bce66c7542f656b0ac20014a89b3610376c
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,891
py
def srccoms_extract(srcfile, status_all, wlist): '\n Given a source file ``srcfile``, this function will\n extract its API(doc comments) and run sample codes in the\n API.\n\n Args:\n srcfile(file): the source file\n status_all(dict): record all the sample code execution states.\n w...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
13253bbcb5a61616a6cb69054f8269129190e2ae
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/337/usersdata/280/100565/submittedfiles/diagonaldominante.py
f05a7e40031566c52ae540227f222395e0e02f05
[]
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
469
py
# -*- coding: utf-8 -*- import numpy as np n=int(input("Digite n: ")) matriz=np.empty([n,n]) diag=np.empty([1,n]) cont=0 for i in range(0,n,1): for j in range(0,n,1): matriz[i][j]=int(input("Insira um valor: ")) for i in range(0,n,1): diag[0][i]=matriz[i][i] print(matriz) print(d...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
8311b5e7ac60b4884e1f00810a0af2d768c7ca97
7a20895c1a5ebe80bfffd6072d2efaa27892b4df
/base_challenge.py
e99d3d082accabd4ebf9723af2b30944ee52694e
[]
no_license
rhlobo/hackerhank_challenges
609cf35cff04ef8cf34322418d86896d4057d8b0
18d75200587d9b259a84bcbbff6cfcdd1c91d6a8
refs/heads/master
2018-12-29T14:13:44.606310
2014-11-27T16:13:00
2014-11-27T16:13:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
#!/usr/bin/env python import tester tester.configure() ''' https://www.hackerrank.com/challenges/XXX ''' import XXX def solve(x): pass T = int(raw_input()) for _ in xrange(T): args = [int(x) for x in raw_input().split()] print solve(*args)
[ "rhlobo+github@gmail.com" ]
rhlobo+github@gmail.com
afa240d770a9b1b6bed14b5b46610250143b3006
28779d02314089e0a70a91cc1db875cd5024a395
/tfx/orchestration/kubeflow/v2/kubeflow_v2_dag_runner.py
d5a9835313af31580c8b92a0124df1209ea97512
[ "Apache-2.0" ]
permissive
voquangtuong/tfx
4a2b41f6fd1238c8ae59f2080948d451b7668aba
ce2fd6fbde9845cd837c47089c3d6db2f87007b9
refs/heads/master
2023-04-10T21:25:06.404137
2021-04-20T03:13:12
2021-04-20T03:14:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,252
py
# Copyright 2020 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ "tensorflow-extended-nonhuman@googlegroups.com" ]
tensorflow-extended-nonhuman@googlegroups.com
e071c6d32cf23a91804981e1c9fbd363874efec7
d996edcd595c565c5725a16286ce8d338af67246
/src/rl/qlearning/sarsa_agent.py
6204f1b366a0ea9e6d541dbc86fc6eab2e9efaf8
[]
no_license
preddy5/dltemplate
fbbfce7660c451495e255cf8d8437e4b4e207f9c
77b04b767cbd4914e0a3d3609c645e475aabcc43
refs/heads/master
2020-04-28T19:37:04.893001
2019-03-13T13:35:04
2019-03-13T13:35:04
175,517,056
1
1
null
2019-03-13T23:59:40
2019-03-13T23:59:39
null
UTF-8
Python
false
false
1,071
py
import numpy as np from rl.qlearning.qlearning_agent import QLearningAgent class EVSarsaAgent(QLearningAgent): """ An agent that changes some of its q-learning functions to implement Expected Value SARSA. """ def get_value(self, state): """ Returns Vpi for current state under epsi...
[ "markmo@me.com" ]
markmo@me.com
aaefa16d38f2d7ea1dc21425da2ace84fc7f1b87
058498e815b20950cc97033c2e4e55c732c3f909
/tempest/lib/api_schema/response/compute/v2_1/floating_ips.py
0c665905fe34dde28020cc2c8839f64852e8e61f
[ "Apache-2.0" ]
permissive
cisco-openstack/tempest
49c56de4ee2422791fe5cd832083d7b6558c7d0d
0bc47dbdd05b5d12d048c09800515c2bd03a16ce
refs/heads/proposed
2021-01-22T00:11:00.113774
2020-06-26T09:32:55
2020-06-26T09:32:55
24,151,261
2
5
Apache-2.0
2020-08-07T06:13:20
2014-09-17T15:46:17
Python
UTF-8
Python
false
false
4,677
py
# Copyright 2014 NEC Corporation. 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 ...
[ "mtreinish@kortar.org" ]
mtreinish@kortar.org
a69a45a82ed766a21c7056d57f6569f2d180450f
fe03eab6477db3f7f3667eefe369dd89d457a58f
/Run2Demonstrator/milliqanScripts/timeCalibration/plotTripleCoincidence.py
f94e68768254ded82d8cb2888577b3914042c347
[]
no_license
milliQan-sw/milliqanOffline
c64a56173797cd00b9243e4ca7196515081834e6
4df6cb4a16ea88feea82b99f9f8c356dbce863cc
refs/heads/master
2023-08-23T13:39:17.513848
2023-08-17T20:16:20
2023-08-17T20:16:20
123,949,343
3
7
null
2023-09-13T06:59:02
2018-03-05T16:47:13
Python
UTF-8
Python
false
false
3,871
py
#!/usr/local/bin/python import ROOT as r import pickle import os,sys import pandas as pd r.gROOT.SetBatch(True) r.gStyle.SetOptFit(0) # inputFile = r.TFile('recalibTree.root') inputFile = r.TFile('/Users/mcitron/milliqanScripts/realTripleCoinc.root') # inputFile = r.TFile('AllTripleCoincidenceNominalHVNov7_v2.root') ...
[ "mcitron@cern.ch" ]
mcitron@cern.ch
89a5ee9e158505e8dec2b66c3914cb369c48eb39
1e7ce1c56f3030aa6df1e928bab559f50c59bad5
/homepage/tests.py
c7d12c23566f23ea318652893201412b06dcf0c7
[]
no_license
AIRob/WxRobot
f7fe37331c399a9d7fb467c7e913f10cc981f8eb
b27a48edb44694d4faa349d68d9b753fe4063276
refs/heads/master
2020-06-05T04:53:11.310909
2019-05-17T06:46:30
2019-05-17T06:46:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
<<<<<<< HEAD from django.test import TestCase # Create your tests here. ======= from django.test import TestCase # Create your tests here. >>>>>>> acb8c86e5915306157008056c793ddc27ee3fd97
[ "1194681498@qq.com" ]
1194681498@qq.com
50351090dc204e3bf9d7ee545c28949f6f6d83bc
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_97/551.py
cf4c418fdeef20399f363ec5314f670826471da8
[]
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
887
py
# -*- coding: utf-8 -*- import sys class Recycle: def solve(self,low,high): ans=0 for offset in range(high+1-low): num = low+offset num_str = list("%d"%num) for i in range(len(num_str)-1): modified_str_list = num_str[i+1:] + num_str[0:i+1] if modified_str_list[0] == '0': ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
8e3302d62e49391b32e25a39d6ddb24d0aa64cf2
4650ddcf27ddf908c1f38702fe4491df92232905
/v1/my_site/models.py
ce740596944e1772fdef7c5b105e5c6e515dc0a1
[]
no_license
volitilov/webface
0e765232544496fcb1527175cc51e6287ed2797e
7141c47fe9e86337183faea42be92663ef24afd9
refs/heads/master
2020-12-30T15:55:15.023542
2017-06-04T18:30:36
2017-06-04T18:30:36
91,187,741
0
0
null
null
null
null
UTF-8
Python
false
false
1,935
py
from django.db import models from django.utils import timezone from django.conf import settings class Category(models.Model): class Meta: verbose_name = 'Категория' verbose_name_plural = 'Категории' title = models.CharField(max_length=30, verbose_name='Название', unique=True) def __str__(self): return sel...
[ "volitilov@gmail.com" ]
volitilov@gmail.com
f930b669bdff8766d9fe09ddcf376ca7cb482bdc
c68aea1de91b46ae684792123c61e84c44ea0266
/code-analysis/programming_anguage/python/source_codes/Python3.5.9/Python-3.5.9/Lib/distutils/tests/test_config.py
a3844974f2ad2b3535ec7a830b7ad4b928887f54
[ "Apache-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-python-cwi", "Python-2.0" ]
permissive
Winfredemalx54/algorithm-challenger-1
12e23bed89ca889701db1b17ac540ce62ce86d8e
761c2c39e041fb155f853385998d5c6318a39913
refs/heads/master
2022-11-22T15:03:01.548605
2020-07-11T12:26:31
2020-07-11T12:26:31
297,955,141
3
0
Apache-2.0
2020-09-23T11:58:19
2020-09-23T11:58:18
null
UTF-8
Python
false
false
3,870
py
"""Tests for distutils.pypirc.pypirc.""" import sys import os import unittest import tempfile from distutils.core import PyPIRCCommand from distutils.core import Distribution from distutils.log import set_threshold from distutils.log import WARN from distutils.tests import support from test.support import run_unittes...
[ "bater.makhabel@gmail.com" ]
bater.makhabel@gmail.com
f834375011f70f9856b73cfc2d76bbf75e4eda72
0b144606d44067d6160f1143a759fe7be1a67a93
/spacy/lang/fa/lex_attrs.py
99b8e27878bc52ac2dddbf7e67b24da9f088e1f1
[ "MIT" ]
permissive
huaxz1986/spaCy
a64cba5eb0390068b48a8d4a49c6e8a8b0c22063
c3c064ace40f4f310d2d220b54b4dc0325a1e3ba
refs/heads/master
2023-06-09T19:20:46.409792
2023-06-02T12:29:52
2023-06-02T12:29:52
145,535,112
2
2
MIT
2021-07-09T08:11:47
2018-08-21T08:50:18
Python
UTF-8
Python
false
false
1,386
py
from ...attrs import LIKE_NUM MIM = "م" ZWNJ_O_MIM = "‌ام" YE_NUN = "ین" _num_words = set( """ صفر یک دو سه چهار پنج شش شیش هفت هشت نه ده یازده دوازده سیزده چهارده پانزده پونزده شانزده شونزده هفده هجده هیجده نوزده بیست سی چهل پنجاه شصت هفتاد هشتاد نود صد یکصد یک‌صد دویست سیصد چهارصد پانصد پونصد ششصد شیشصد هفتصد...
[ "noreply@github.com" ]
huaxz1986.noreply@github.com
c33efb9b294913ee7c0aaf0b4a477a1f9f6da1a0
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04031/s911055242.py
2a1826d064d99651357766b4f3af57ce3138f525
[]
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
163
py
N=int(input()) *A,=map(int,input().split()) mx=max(A) mn=min(A) ans=float('inf') for i in range(mn,mx+1): ans=min(ans, sum([(k-i)**2 for k in A])) print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1f4558a5b374477c18f6a0f04940c2e603d2344e
0c1e0e5bda62ef78ad08bfea4806677bacaa89fd
/handlers/handlers/pattern.py
c52e35f756a1173211061def2c25ccd9fc5c51f1
[ "BSD-3-Clause" ]
permissive
adammck/rapidsms-contrib-apps-dev
fb9d47e94e562c03053229fc8226002ba29994cf
b6ef8c9c3726ca0b706b984b93342e24c62fd430
refs/heads/master
2020-12-24T21:36:25.118552
2010-06-16T17:59:37
2010-06-16T17:59:37
722,199
1
0
null
null
null
null
UTF-8
Python
false
false
568
py
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 import re from .base import BaseHandler class PatternHandler(BaseHandler): @classmethod def _pattern(cls): if hasattr(cls, "pattern"): return re.compile(cls.pattern, re.IGNORECASE) @classmethod def dispatch(cls, router, msg): ...
[ "adam.mckaig@gmail.com" ]
adam.mckaig@gmail.com
9e153351e31534753951fd99189961e27ffe9bac
53181572c4b22df4b569a9901bcd5347a3459499
/ceit_191221/py200509_zhou/module_app.py
7dd4e30336f697cc8816410ec7f0136415944b69
[]
no_license
edu-athensoft/ceit4101python_student
80ef067b77421fce76d04f778d5c6de8b12f676c
33cfa438c062d45e8d246b853e93d3c14b92ff2d
refs/heads/master
2020-07-30T01:04:21.084384
2020-07-27T02:21:57
2020-07-27T02:21:57
210,027,310
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
""" """ import math import ceit_191221.py200509_zhou.module_arithmetic as arithm import ceit_191221.py200509_zhou.module_logic as logic print(math.sqrt(36)) print(math.e) print("=== test arithmetic module ===") print(arithm.add(1,2)) print(arithm.sub(1,2)) print(arithm.PI) print(arithm.e) print("=== test logic mo...
[ "inf.athensoft@hotmail.com" ]
inf.athensoft@hotmail.com
cfcb1f1d9d54c9b98db16f1e70bb0452ad49661b
61747f324eaa757f3365fd7bf5ddd53ea0db47d1
/casepro/contacts/migrations/0012_field_is_visible.py
2d3bc7e266cf8daf0d1229fddf9e9e442fa74db0
[ "BSD-3-Clause" ]
permissive
BlueRidgeLabs/casepro
f8b0eefa8f961dd2fdb5da26a48b619ebc1f8c12
8ef509326f3dfa80bb44beae00b60cc6c4ac7a24
refs/heads/master
2022-01-24T09:01:18.881548
2017-12-05T18:46:05
2017-12-05T18:49:42
113,502,588
0
0
null
2017-12-07T21:57:37
2017-12-07T21:57:37
null
UTF-8
Python
false
false
471
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('contacts', '0011_migrate_suspend_groups'), ] operations = [ migrations.AddField( model_name='field', ...
[ "rowanseymour@gmail.com" ]
rowanseymour@gmail.com
a00d084afd5b74ce9fe9afdb606d0f19d08dae62
ae56a9df49059c785e10e34b55ea827616950940
/progress/models/iteration.py
a0aa1b0e5b1fbf251d3b81df0f97f7e397d834cd
[]
no_license
robinharms/Progress
04a7ccc11f44378209b3492fad34e79ad7dc9e9a
ff31ed3a4a67e831636668d326d7218e0ff0e4b8
refs/heads/master
2021-01-15T13:11:27.267833
2011-11-13T15:49:06
2011-11-13T15:49:06
2,527,211
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
from betahaus.pyracont import BaseFolder from betahaus.pyracont.decorators import content_factory from zope.interface import implements from progress import ProgressMF as _ from progress.models.interfaces import IIteration @content_factory('Iteration') class Iteration(BaseFolder): """ Iteration. """ implemen...
[ "robin@betahaus.net" ]
robin@betahaus.net
2c8d4504af1d3a0bc4d263d58de39cbe265e4b23
b8856b7ec201fad5621593f93b7a8d9844276234
/models/warmtune_model.py
be3ba4b483ec8605ebee81059f2cb3e11f422ceb
[]
no_license
wangjianbing1998/RLLL
cbb2e7724e9a140115e70886b39423a7002e1715
413c83effe8dd60de756362b854fcab978fe530c
refs/heads/master
2023-06-03T09:29:18.165851
2021-06-21T08:35:59
2021-06-21T08:35:59
336,836,130
0
0
null
null
null
null
UTF-8
Python
false
false
2,540
py
from losses import create_loss from models.base_model import BaseModel from networks import create_net class WarmtuneModel(BaseModel): @staticmethod def modify_commandline_options(parser): """Add new dataset-specific options, and rewrite default values for existing options. num_classes is th...
[ "2553627958@qq.com" ]
2553627958@qq.com
e30064cad618b7334b32d7eca60aab02f3fda11c
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/4c03abfcd6c043968b6580de192f54d9.py
960f45654af9d4c711d83ebf96542fe63d2a5e97
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
472
py
# -*- coding: utf-8 -*- def hey(userString): """ Takes a string, and returns a string that represents Bob's reply. Args: userString (string): a valid string. Returns: string: Bob's reply. """ if not userString or userString.isspace(): return "Fine. Be that way!" ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
1c7f31793ca39ebee732df11958237c8047a2673
97e534b26a76bf0d954e166841179979748bcfa2
/objects/migrations/0053_claim.py
d7a2ba564d665e051111a4877f2f93d1ea61ffae
[]
no_license
mehdi1361/http_server
3a8bd73ce44307ee2b7761d1211671ca8cb0f3ba
d8a962c55165ef0237bfb26d27d9cfa11a415a5d
refs/heads/develop
2022-12-11T00:44:11.089407
2019-01-20T12:02:48
2019-01-20T12:02:48
166,656,299
0
0
null
2022-12-07T23:53:22
2019-01-20T12:02:05
HTML
UTF-8
Python
false
false
1,519
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-06-27 07:15 from __future__ import unicode_literals import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('objects', '0052_a...
[ "mhd.mosavi@gmail.com" ]
mhd.mosavi@gmail.com
443c3d059b335a119f3da8698934ed9e86c8a915
0c68c989a8473801743c4f2d2087c223b2fd47fa
/2020_hashcode/practice/pizza.py
97016dd9bdb9f3d6de66d64c983e089b25e4c9ef
[]
no_license
tabletenniser/Google_code_jam
4a105e8e9bc27269430a1c90f4c7a59a4d4bc7a1
1c300e3b953e2e744a2c3bb963b5d2f46f9caee1
refs/heads/master
2021-06-12T22:10:23.675590
2021-03-27T22:25:06
2021-03-27T22:25:06
179,803,986
0
0
null
null
null
null
UTF-8
Python
false
false
1,754
py
def get_opt_solution(max_slices, pizza_slices): types_of_pizzas = len(pizza_slices) prev_dp_table = [0 for _ in range(max_slices)] prev_solution_table = [list() for _ in range(max_slices)] for i in range(types_of_pizzas): dp_table = [0 for _ in range(max_slices)] solution_table = [list(...
[ "tabletenniser@gmail.com" ]
tabletenniser@gmail.com
1a47559dd1499bafa8598161835aa02a0e49cf0b
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/program/util/ProgramDiffFilter.pyi
d2835f42e1b5c7c90b7f8965f54c4cbdb0b67b07
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
5,593
pyi
from typing import List import ghidra.program.util import java.lang class ProgramDiffFilter(object): """ The ProgramDiffFilter is used when determining or working with differences between two programs. It indicates the types of program differences we are interested in. Each difference type can ...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
de767a446ec4679f03d7c8f8350383eb74a5ea8e
0e478f3d8b6c323c093455428c9094c45de13bac
/src/OTLMOW/OEFModel/Classes/AWeg.py
fdc3b0800ca5134a20c84931626c320d54719df4
[ "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
325
py
# coding=utf-8 from OTLMOW.OEFModel.EMObject import EMObject # Generated with OEFClassCreator. To modify: extend, do not edit class AWeg(EMObject): """Wegen : A-weg""" typeURI = 'https://lgc.data.wegenenverkeer.be/ns/installatie#AWeg' label = 'Autosnelweg' def __init__(self): super().__init_...
[ "david.vlaminck@mow.vlaanderen.be" ]
david.vlaminck@mow.vlaanderen.be
8e9d4e496e365e8cebd9c1fcdd4d5915c6a06d19
b8e29b6e957b0a55571f7cffc4357666a43fb56e
/mxnet/insightface/insightface/src/data/glint2lst.py
60f7cbea9faa5f680ca985c8d7ed8ea79d00d8a4
[ "MIT", "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
aliyun/alibabacloud-aiacc-demo
b9bbe565021757ecaea0e7d7209632cbdb5cc8ab
2e49deeb38d12d4af4c5e50bb15d731c4bbf4cf1
refs/heads/master
2023-05-14T08:09:33.067050
2023-05-04T08:19:51
2023-05-04T08:19:51
228,604,743
38
14
Apache-2.0
2022-06-22T02:41:01
2019-12-17T11:46:44
Python
UTF-8
Python
false
false
1,158
py
import sys import os import numpy as np input_dir = sys.argv[1] targets = sys.argv[2] targets = targets.strip().split(',') lmap = {} for ds in targets: #image_dir = os.path.join(input_dir, ds) lmk_file = os.path.join(input_dir, "%s_lmk"%(ds)) if not os.path.exists(lmk_file): lmk_file = os.path.join(input_d...
[ "ziqi.yzq@alibaba-inc.com" ]
ziqi.yzq@alibaba-inc.com
e85086b27f26e7ad3ddf0dcd9b1299ef6799cbcc
169d809f45dedcaa3c7b1b49912d8b025abe18d9
/factors.py
6f66a11e8dd9fcecc3dbd419474103c0e3974875
[]
no_license
bermec/challenges
8a82d1d38d1ed1a0fc3f258443bc0054efc977a6
9fb092f20f12b4eaa808e758f00f482a49346c88
refs/heads/master
2021-10-08T05:05:56.803332
2018-12-08T00:20:20
2018-12-08T00:20:20
109,448,713
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
def factors(n): lst = [] for x in range(1, n): if n % x == 0: lst.append(x) return lst def reduce_fraction(n, n2): temp = 0 temp2 = 0 master_lst = [] master_lst2 = [] lst1 = (factors(n)) lst2 = (factors(n2)) master_lst.extend(lst1) master_lst.extend(lst2...
[ "rog@pynguins.com" ]
rog@pynguins.com
ce7ccdfe707353b7a81653921ba80ee0e0973723
ea4e262f3dc18a089895fef08bedefc60b66e373
/supervised_learning/0x0D-RNNs/5-bi_forward.py
ce1c6a1dd901ad3532e8ae1b7a72f5765d7c2bf5
[]
no_license
d1sd41n/holbertonschool-machine_learning
777899d4914e315883ba0c887d891c0c8ab01c8a
5f86dee95f4d1c32014d0d74a368f342ff3ce6f7
refs/heads/main
2023-07-17T09:22:36.257702
2021-08-27T03:44:24
2021-08-27T03:44:24
317,399,917
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
#!/usr/bin/env python3 """[summary] Returns: [type]: [description] """ import numpy as np class BidirectionalCell: """[summary] """ def __init__(self, i, h, o): """[summary] Args: i ([type]): [description] h ([type]): [description] o ([type]): [de...
[ "1498@holbertonschool.com" ]
1498@holbertonschool.com
44680252265c4e7606a0c2ce3a626f198f9c5331
fdcab1845d5f8b98e126d0e99c92fefdd426c850
/experiments/pollen_met.py
f2c970387f18d9db8fba1f92490d566a51d312e1
[ "MIT" ]
permissive
jjsanderson/DataBot
197d9157be152ce679fd97f58557be7373b3f7f9
22d86b9bad2cd12bef735065a68619d114bfd6b1
refs/heads/main
2022-05-14T16:30:53.195429
2021-09-22T14:53:18
2021-09-22T14:53:18
187,226,945
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
"""Test retrieving pollen data from Met Office forecasts. Replacing Bendadryl-sponsored service queried by pypollen module, as that's proved unreliable in practice (just stops providing responses), with no error. """ # Register with Met Office DataPoint service: # https://www.metoffice.gov.uk/datapoint from clientse...
[ "lists@quernstone.com" ]
lists@quernstone.com
45fcc0bee0c3a2ecebf1f0434ab531597d3bf8fd
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_Class2981.py
fc7c0615444d12cc4ebb6913a25a09662303e053
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,244
py
# qubit number=4 # total number=39 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
61508d630274d9f4fcd2da8ef98105c85249f470
60611d5c40a73c0b7f420ef825b0721d0f4f5cb5
/autodata/spiders/edmunds_feature_spider.py
ff43dc4128dec959cc229fcd7ba4dfdd83e06b4d
[]
no_license
Miksztowi/AutomotiveData
315047e5b32e04cba72387bf3a1c341140dceba7
fd413ad3b5672cf0ccde809033122f4a0adca60e
refs/heads/master
2021-01-15T11:57:37.896995
2017-08-25T09:27:50
2017-08-25T09:27:50
99,636,042
0
0
null
null
null
null
UTF-8
Python
false
false
3,355
py
# -*- coding:utf-8 -*- import scrapy import MySQLdb import json from autodata.items import EdmundsItem import logging import autodata.settings as settings class EdmundsFeatureSpider(scrapy.Spider): logger = logging.getLogger(__name__) name = 'edmunds_feature_spider' custom_settings = { 'CONCURRENT...
[ "binwengan@gmail.com" ]
binwengan@gmail.com
15b03267a304db2a215fee50bb9987974ec5f0ce
2f67ac3081bbb6ac190dd2b7ea981a6b510a42c7
/projeto/produto/models.py
53042281b04b8d6d2cd5d2471c753bc1fece286d
[]
no_license
jm0216/estoque
2fec817336327a5088cd8ff43b786787475fa86f
7a03bd61cade1e1056d2894a78afb37c4969715c
refs/heads/master
2020-08-03T22:26:47.146230
2019-09-30T03:26:49
2019-09-30T03:26:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
880
py
from django.db import models from django.urls import reverse_lazy class Produto(models.Model): importado = models.BooleanField(default=False) ncm = models.CharField('NCM', max_length=8) produto = models.CharField(max_length=100, unique=True) preco = models.DecimalField('preço', max_digits=7, decimal_p...
[ "rg3915@yahoo.com.br" ]
rg3915@yahoo.com.br
8424fb37043b1238fef3ebb6c071cfff717d5db1
75d8667735782cd1d0eb4877e52c89da5cd92dde
/nova/tests/unit/__init__.py
545088bbe157e6cddd5b973e0d539e80500ae27d
[ "Apache-2.0" ]
permissive
bopopescu/nova-token
ffecfd3ec561936b7d9d7e691bc57383cde05436
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
refs/heads/master
2022-11-22T09:53:31.073483
2016-05-14T02:47:01
2016-05-15T22:02:55
282,105,621
0
0
Apache-2.0
2020-07-24T02:42:19
2020-07-24T02:42:18
null
UTF-8
Python
false
false
2,131
py
begin_unit comment|'# Copyright 2010 United States Government as represented by the' nl|'\n' comment|'# Administrator of the National Aeronautics and Space Administration.' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); ...
[ "dmg@uvic.ca" ]
dmg@uvic.ca
031519f8b4369daea30a2504dbd50ad7e005a5e3
0db0d08edd59df7cd634b66e2786bc1a0eb52048
/httprunner/built_in.py
32bbb851741b0732ed712492e06b36eeaa448cbb
[ "MIT" ]
permissive
liuyihuicaicloud/HttpRunner
8bbbb25c51bb04439e8350a8d4187368e0138d85
0e63747c395e27b5d5952446ca9a86dd5ce15b95
refs/heads/master
2020-03-18T22:57:41.799491
2018-03-27T09:28:22
2018-03-27T09:28:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,864
py
""" Built-in dependent functions used in YAML/JSON testcases. """ import json import datetime import random import re import string import time from httprunner.exception import ParamsError from httprunner.utils import string_type def gen_random_string(str_len): """ generate random string with specified length ...
[ "httprunner" ]
httprunner
4f4d7086f94610330443c76fdfe29be17caf5e0f
e690fa7a2e622f3c187b0349b37bca8fc40b2801
/problem.py
e22603401e65ec441aafabf357efa839ca6c5a7f
[]
no_license
davidpendergast/proof-that-p-equals-np
058503e8357b92de76c0438b634bbe37655816f6
f9f4a59c2215ecffc2c466ee23de10bdc6e6b066
refs/heads/master
2020-07-03T05:11:38.270370
2016-11-19T08:04:10
2016-11-19T08:04:10
74,195,712
0
0
null
null
null
null
UTF-8
Python
false
false
2,314
py
ALL_PROBLEMS = [] def add_to_list(prob): ALL_PROBLEMS.append(prob) return prob class Problem: def __init__(self, name, problem_input, verifier): """ Args: name (string): Name of problem. input (:obj:`list` of int): Inputs that will be fed to Programs. ve...
[ "dlp75@case.edu" ]
dlp75@case.edu
c24eb7d9bd2351befb0b5c1422aba4adf9be007a
0386aecc51ca70621598d892d33847f5ee1ff393
/server/app.py
5d82acd21bb11d15f5e823f85252bbc05f1cff0a
[]
no_license
scmmishra/noteblock-beta
f82f0e3347ad10262f8512ceea59e184b78549fb
33b4ab54cc04ba8462ed26af65b1436571cc52a5
refs/heads/master
2020-04-29T18:24:43.195975
2019-03-21T05:37:27
2019-03-21T05:37:27
176,323,309
0
0
null
null
null
null
UTF-8
Python
false
false
4,789
py
from datetime import datetime from flask import Flask, jsonify, request import uuid from flask_cors import CORS # configuration DEBUG = True # instantiate the app app = Flask(__name__) app.config.from_object(__name__) CORS(app) NOTES = [{ "title": "Mumbai Hackathon", "id": uuid.uuid4().hex, "author": "Shivam ...
[ "scm.mymail@gmail.com" ]
scm.mymail@gmail.com
73f02b54e142ca8847ebe4278f41f5c50c7b370a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03242/s879564820.py
77ea389167a1e41f6fb3e2ee175b767be724c41a
[]
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
140
py
s = list(str(input())) ans = "" for i in range(3): if s[i] == "1": ans = ans + "9" else: ans = ans + "1" print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a8e6e4c4bbe79dc52bb7a9f7155614c35f8c84aa
86162656dc87928c35ac73f8ab1b3475304557c7
/arelle/examples/plugin/validateSchemaLxml.py
16ba4a7e7cbc2edb499088729a072b7617abe3bb
[ "Apache-2.0" ]
permissive
lmsanch/Arelle
7558037f191cce70d71695e3192420af48c6984f
45a8f922695832990653ec230e3fd3ffe8d3e4fa
refs/heads/master
2021-01-18T16:48:24.104496
2013-04-13T07:26:51
2013-04-13T07:26:51
9,717,339
0
0
null
null
null
null
UTF-8
Python
false
false
8,109
py
''' Save DTS is an example of a plug-in to both GUI menu and command line/web service that will save the files of a DTS into a zip file. (c) Copyright 2012 Mark V Systems Limited, All rights reserved. ''' import threading from lxml import etree def validateSchemaWithLxml(modelXbrl, cntlr=None): class schemaResol...
[ "fischer@markv.com" ]
fischer@markv.com
a40ffcdf4abd0ed80e5920c73394506cb415f90e
f3b233e5053e28fa95c549017bd75a30456eb50c
/bace_input/L4D/4D-3K_wat_20Abox/set_2.py
63587ba7792a0b793966efb059f21c70d4a63902
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
import os dir = '/mnt/scratch/songlin3/run/bace/L4D/wat_20Abox/ti_one-step/4D_3K/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_2.in' temp_pbs = filesdir + 'temp_2.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in lambd...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
68d772854072130cf95bf0eaa72dad9bbf69f7b9
eb9da50f89a0ffaf6e46972f06abba05ea2e4132
/footmark/ess/configuration.py
582bbd055622fb2580b0cb41d110e411f12ca50c
[ "Apache-2.0" ]
permissive
alibaba/footmark
0cf8e09ccf504541a3871e4026f8c7674e6c803c
bf698b5b4a0995dd84f81e7c4e9424cd9e120027
refs/heads/master
2023-03-12T21:15:09.244440
2022-07-18T08:09:18
2022-07-18T08:09:18
120,717,365
13
33
Apache-2.0
2022-07-18T08:05:16
2018-02-08T05:52:28
Python
UTF-8
Python
false
false
3,174
py
""" Represents an ECS Instance """ from footmark.ess.essobject import TaggedESSObject class ScalingConfiguration(TaggedESSObject): """ Represents an scaling configuration. """ def __init__(self, connection=None): super(ScalingConfiguration, self).__init__(connection) self.tags = {} ...
[ "guimin.hgm@alibaba-inc.com" ]
guimin.hgm@alibaba-inc.com
7620f9cf293949dd49959feab537b7f6f7f2e31e
0ca41d628d7b34cc27487e889af62d1da17350bd
/openstack/network/v2/statuses.py
99068d276846df3d3bbfeaa63cd46efe9f7b1250
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ArvinSong/huaweicloud-sdk-python
9d5fcaf2ff93143de0e676a2fcc99f9a4b79fd9f
227cd7f68a07974b16794c371f110d1927571fd0
refs/heads/master
2020-08-08T15:08:32.276961
2019-09-30T03:52:22
2019-09-30T03:52:22
213,855,251
1
0
NOASSERTION
2019-10-09T07:52:23
2019-10-09T07:52:23
null
UTF-8
Python
false
false
1,186
py
# -*- coding:utf-8 -*- # Copyright 2018 Huawei Technologies Co.,Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy of the # License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
[ "769837173@qq.com" ]
769837173@qq.com