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
03fadd49f9dca2f9d4388941de3945d8c5573421
94c1805df5a09c39159d502f420d19ad54b567fc
/runtime/deps/gyp/test/conditions/elseif/elseif.gyp
6367ff7d7afef580e47d50e4ff8f632106c196f1
[ "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tmikov/jscomp
9805a5a4d06520549c57380f0df4a1c0aa0dab56
83828441cb38ec96603a6a60be06977d4852940a
refs/heads/develop
2021-01-19T02:56:35.102659
2016-04-12T06:19:30
2016-04-12T06:19:30
36,981,674
237
13
Apache-2.0
2018-10-14T09:48:12
2015-06-06T13:49:26
C
UTF-8
Python
false
false
1,166
gyp
# Copyright (c) 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'variables': { 'test_var': 0 }, 'target_name': 'program0', 'type': 'executable', 'sources': [ 'program.cc'...
[ "tmikov@gmail.com" ]
tmikov@gmail.com
9250e53135272125d12fc4a5fa7219ff11e1bb55
52c2ccb6fb55126a65bff2b4b7f653e4b0805759
/tibiawikisql/models/achievement.py
57c6a58645c5bebfb6f96a2e60037fab5bd67a48
[ "Apache-2.0" ]
permissive
Galarzaa90/tibiawiki-sql
4907236d518cdc6a53f32645efa3b22517e91f90
982be5ebd7905354b6c6a31c4247b2ee21bbe943
refs/heads/master
2022-08-09T09:18:46.533611
2022-07-23T13:56:07
2022-07-23T13:56:07
108,594,636
22
11
Apache-2.0
2022-06-28T16:46:13
2017-10-27T20:52:55
Python
UTF-8
Python
false
false
2,889
py
# Copyright 2021 Allan Galarza # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
[ "allan.galarza@gmail.com" ]
allan.galarza@gmail.com
d13a0300c450dc6acb1da9fae5225eed974a8d3d
e84020108a7037d8d4867d95fada1b72cbcbcd25
/django/nrega.libtech.info/src/nrega/migrations/0027_auto_20170416_1616.py
48feb13bb49447e43ccfccc0b72571ee742d2321
[]
no_license
rajesh241/libtech
8384316051a2e8c2d4a925cd43216b855b82e4d9
0105e717357a3626106028adae9bf162a7f93fbf
refs/heads/master
2022-12-10T03:09:00.048841
2020-06-14T09:39:04
2020-06-14T09:39:04
24,629,538
1
1
null
2022-12-08T02:26:11
2014-09-30T07:57:45
Python
UTF-8
Python
false
false
1,322
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-16 10:46 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('nrega', '0026_auto_20170416_1531'), ] operations = [...
[ "togoli@gmail.com" ]
togoli@gmail.com
bfed4c47e68ecae32060bd100cf106d926dee61e
0285011aa0fe18c3007b968544bd1eedc56f1886
/demozoo/settings/zxdemo_staging.py
5f62c946a702fa32e45b7c53aa943f45cb178cf4
[]
no_license
vigo/demozoo
ba09677e74aae9392a2c10791244e0cf0503078f
d62676fc4def152a197e3047e759ae50808dc5bb
refs/heads/master
2020-05-18T13:47:56.932514
2019-02-10T17:44:14
2019-02-10T17:44:14
184,452,040
0
0
null
2019-05-01T17:12:57
2019-05-01T17:12:56
null
UTF-8
Python
false
false
605
py
from .staging import * TEMPLATES[0]['OPTIONS']['context_processors'] = [ 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template....
[ "matt@west.co.tt" ]
matt@west.co.tt
9d1a2e30038e2974395a2b0241b03d622846d866
7a027e77be1b963d5097c17e650ca41abcc2dcaa
/lncrawl/assets/banner.py
fe0347e1550d78bef40d2f7ef47b8dcfe8392760
[ "Apache-2.0" ]
permissive
MouA/lightnovel-crawler
939a9fef0fa991ada1976a03ecb77b0f4205293c
53b6d5cc8e4bebe4c0bd0a3f1f079e084e02b68f
refs/heads/master
2021-08-27T20:56:03.403476
2021-07-28T01:05:36
2021-07-28T01:05:36
158,337,494
0
0
Apache-2.0
2018-11-20T05:49:55
2018-11-20T05:49:55
null
UTF-8
Python
false
false
2,524
py
# -*- coding: utf-8 -*- import re from colorama.ansi import Fore, Style from .icons import Icons from .version import get_value banner_text = r''' ╭╮╱╱╱╱╱╱╭╮╱╭╮╱╱╱╱╱╱╱╱╱╱╱╱╭╮╱╭━━━╮╱╱╱╱╱╱╱╱╱╭╮ ┃┃╱╱╱╱╱╱┃┃╭╯╰╮╱╱╱╱╱╱╱╱╱╱╱┃┃╱┃╭━╮┃╱╱╱╱╱╱╱╱╱┃┃ ┃┃╱╱╭┳━━┫╰┻╮╭╋━╮╭━━┳╮╭┳━━┫┃╱┃┃╱╰╋━┳━━┳╮╭╮╭┫┃╭━━┳━╮ ┃┃╱╭╋┫╭╮┃╭╮┃┃┃╭╮┫╭╮┃╰╯┃┃━┫┃╱┃...
[ "dipu.sudipta@gmail.com" ]
dipu.sudipta@gmail.com
0d84343042ee4c00e8fcd5a19bc6b7c2f20b4b10
e3438a134f999d57c07e8d2085122fc53e464f2d
/blog/admin.py
0c2d4848138ee34c441bd0555ffa3013cf503f1b
[]
no_license
jwalk843/django_site
04385a405409731fe8ecf915eaf2b5d14cf0b6c0
b08e7759dabf98e305a591dea7f589c9f66840f8
refs/heads/master
2023-06-27T19:22:00.293090
2021-07-30T13:51:27
2021-07-30T13:51:27
391,149,685
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
from django.contrib import admin from .models import Post admin.site.register(Post) # this registers our db with admin site # Register your models here.
[ "me@me.com" ]
me@me.com
1d0172ce41ee69355b675c23fdc5d391acc54e59
1ba58b17f33122abf4236e9e430a51d375e0eb53
/km72/Popov_Daniil/3/Task2.py
e02cceea53c58bcb905ea52a3b48bb75fa302257
[]
no_license
igortereshchenko/amis_python
c4f8d86b88ab036d08ff0ce35c9b42ebeabecc42
c6f0f2a70c82d5f269b3078eb296f82271b5bb10
refs/heads/master
2021-10-22T16:21:19.990650
2017-11-01T07:26:54
2017-11-01T07:26:54
104,785,028
0
139
null
2020-04-21T21:27:09
2017-09-25T18:11:42
Python
UTF-8
Python
false
false
129
py
print('starting programm') a=float(input('input length a: ')) b=float(input('input length b: ')) print('S =',float((a*b)/2))
[ "noreply@github.com" ]
igortereshchenko.noreply@github.com
b09b0b9e39e862c54e6df257e311c37e54f53091
8e31c8bded501c34ad829e1271bd6dc9263e4e3c
/dynamic_profile/migrations/0012_indicatorprofile_universe.py
48ca050f74851caa580dc5076e66a0832552d6e6
[ "MIT" ]
permissive
OpenUpSA/wazimap-dynamic-profile
89f59d54e5eaea38784e52844519da7b4194fcd1
4a66878965b9f452262a41ef1a02c7da5e5b4341
refs/heads/master
2021-06-21T21:01:24.757307
2020-01-27T09:17:59
2020-01-27T09:17:59
199,457,626
1
1
MIT
2021-03-19T22:54:41
2019-07-29T13:24:08
Python
UTF-8
Python
false
false
506
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-09-02 09:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dynamic_profile', '0011_indicatorprofile_disclaimer_text'), ] operations = [ ...
[ "stumenz.complex@gmail.com" ]
stumenz.complex@gmail.com
7c1fdb9a430050d2456394bcfcfb27bdd8f592c9
a475692e93d85aece84da0158d9317d2be1e8fbe
/lfd/test/playback_push.py
ee89734833b087d78428cc7a8897f1c186d53737
[]
no_license
warriorarmentaix/lfd
f83e20cd9b91a0ac719645669a1eb98f19fa9007
ff07d53d8c7ed5a092ec05a03f57620d15bb98a0
refs/heads/master
2016-09-06T05:31:24.262555
2013-06-03T07:13:45
2013-06-03T07:13:45
10,400,184
2
0
null
null
null
null
UTF-8
Python
false
false
1,998
py
import argparse parser = argparse.ArgumentParser() parser.add_argument("file") parser.add_argument("group") args = parser.parse_args() import h5py from brett2.PR2 import PR2,IKFail from brett2 import trajectories from kinematics import kinematics_utils import rospy from brett2.ros_utils import RvizWrapper,Marker from ...
[ "joschu@rhino.(none)" ]
joschu@rhino.(none)
ff1dfe32b51f9d54fd3ed2967b0026220eda081a
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/pfnet_chainer/chainer-master/chainer/datasets/ptb.py
aa3c2a45d81bd3350c1253d5f91b4e5aab9e325a
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
3,351
py
import os import numpy from chainer.dataset import download def get_ptb_words(): """Gets the Penn Tree Bank dataset as long word sequences. `Penn Tree Bank <https://www.cis.upenn.edu/~treebank/>`_ is originally a corpus of English sentences with linguistic structure annotations. This function uses ...
[ "659338505@qq.com" ]
659338505@qq.com
c2f345d1905de3330b58862c1ceb5251138e4b91
58a726bf6bf6909ab5c996bfc07fc51e925c1910
/_serviceprovider_panel/extra/migrations/0003_auto_20191217_1240.py
915f85aa5f22c73f25dc0b4c4e6559552bff9c73
[]
no_license
sharingsimplethoughts/vehiclemanagementsystem
66a31c9a746c9d916e627ea81c1107563968e833
f4afcdd722a93d4a98b5e347c50136dafe9ffebf
refs/heads/master
2022-11-09T23:15:47.980160
2020-07-01T07:42:42
2020-07-01T07:42:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,836
py
# Generated by Django 2.2.1 on 2019-12-17 08:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('extra', '0002_auto_20191216_1813'), ] operations = [ migrations.AddField( model_name='aboutus', name='content_ar', ...
[ "sukamal.sinha@fluper.in" ]
sukamal.sinha@fluper.in
be262b811bc370c603cbd4aae2e7d5e6b42156ae
de27692fcf2ff86b024ebee7784a96a8b1329e4d
/ex029.py
7438a4b695ff71b8897a5f5204acf32d70b42373
[]
no_license
YaraDeOliveira/CursoemVideo
d2675c5e22840330f1cd581368e6855103b6c7ea
f065c768231deaa996498d21af6b97fd1201abc4
refs/heads/main
2023-04-23T07:56:11.700722
2021-05-12T14:16:36
2021-05-12T14:16:36
348,168,481
0
0
null
2021-03-26T18:35:31
2021-03-16T00:57:48
Python
UTF-8
Python
false
false
213
py
vel = float(input('Qual eh a velocidade do carro? ')) if vel > 80: multa = float(vel-80)*7.00 print('Voce foi multado em R${:.2f}'.format(multa)) else: print('Voce nao foi multado. Tenha um bom dia!')
[ "79177224+YaraDeOliveira@users.noreply.github.com" ]
79177224+YaraDeOliveira@users.noreply.github.com
d1196457ce70deef1bd442b48b8e84f2110a66c0
bb433d44f557d5d22e5c961178cfc281ebc4f713
/microservices/app/src/controllers/all_notes.py
6435a05e0d9b5c0b879d8faf360093a83a4ea607
[]
no_license
djmgit/scribble_api
1c265aa3f005225546a8f9b5288c5d2dcadce1d5
ddc0e517c033a931ffecedcfe13683a4e4e3f5f4
refs/heads/master
2020-03-18T09:05:25.180055
2018-06-02T21:14:58
2018-06-02T21:14:58
134,544,399
0
0
null
null
null
null
UTF-8
Python
false
false
753
py
import datetime from flask import Blueprint, jsonify, request from flask import current_app as app import json import requests from helpers.check_login import is_loggedin from helpers.query_all_notes import query_all router = Blueprint('all_notes', __name__) @router.route('/all_notes', methods=['POST']) def add_note(...
[ "djmdeveloper060796@gmail.com" ]
djmdeveloper060796@gmail.com
1d231c8d75fd7c29c4331c835ef19ae7640eba1d
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/94/usersdata/230/58378/submittedfiles/mediaLista.py
dc27c8191318cceb5c2791a5ffaf5a4277f17246
[]
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
374
py
# -*- coding: utf-8 -*- def media(lista): soma=0 for i in range (0,len(a),1): soma=soma+lista[i] media=soma/len(lista) return(media) n=int(input('Digite quantidade de valores: ')) a=[] for i in range (1,n+1,1): numero=int(input('Digite valor: ')) a.append(numero) print('%.2f' %a[0])...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
c942f3698c181e80fd7178e37b323870ce295241
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_207/428.py
ec2ab1e47c4bcd5b677e3896edb651faabd6b123
[]
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
1,785
py
R, O, Y, G, B, V = range(6) LETTERS = list("ROYGBV") def compatible(c1, c2): if c1 == R: return c2 not in (R, O, V) elif c1 == O: return c2 not in (R, O, Y) elif c1 == Y: return c2 not in (O, Y, G) elif c1 == G: return c2 not in (G, Y, B) elif c1 == B: retur...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
3a023e0deb8f61097b453be3ec191419d688ea19
a08fc91ecafa7f2b6c8aed7e1ceb33822d4caa49
/python/_sqlalchemy/_transactions.py
2126bf46f4cc4bfb6b50aa8338f7d7ed5139bdf1
[]
no_license
bryand1/snippets
1fcdd4b67809aa27b58e1239d5cca22cfb962f3d
f779bf147c420996613b0778e243154cd750c3dd
refs/heads/master
2023-01-23T18:47:07.389246
2020-12-31T20:10:13
2020-12-31T20:10:13
138,767,383
0
0
null
2023-01-19T13:02:49
2018-06-26T16:56:15
Python
UTF-8
Python
false
false
2,107
py
""" Transactions A transaction is a way to execute a set of SQL statements such that either all of the statements are executed successfully or nothing at all. If any of the statement involved in the transaction fails then the database is returned to the state it was in before the transaction was initiated. We current...
[ "bryand1@gmail.com" ]
bryand1@gmail.com
b74da4de81ce2a7e16de49fe9dd6562b61087325
2710f0994868658059bb112ee44fc680d34c01cd
/Aula4/chamar_cachorro.py
d90098fb36d4a07a06b2f7a78608563bc111ce2b
[]
no_license
danubio1982/520
966d17504957b37dd068d4a79705756bb426a0cf
ed8884f8319a226bee014566c258c6b111a7d552
refs/heads/master
2020-09-17T07:09:07.935106
2019-11-29T14:58:47
2019-11-29T14:58:47
224,030,183
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
#!/usr/bin/python3 # from Cachorro import Cachorro import Cachorro rex = Cachorro.Cachorro('Rex','15','preto','Doberman','Grande')
[ "iaferro@gmail.com" ]
iaferro@gmail.com
174627cc536f1abd68cb657d532c9d34be5e10cd
c1bd12405d244c5924a4b069286cd9baf2c63895
/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/bgp_service_community_py3.py
2b825c54440a7c3bf2010ca87c19c693999d9665
[ "MIT" ]
permissive
lmazuel/azure-sdk-for-python
972708ad5902778004680b142874582a284a8a7c
b40e0e36cc00a82b7f8ca2fa599b1928240c98b5
refs/heads/master
2022-08-16T02:32:14.070707
2018-03-29T17:16:15
2018-03-29T17:16:15
21,287,134
1
3
MIT
2019-10-25T15:56:00
2014-06-27T19:40:56
Python
UTF-8
Python
false
false
2,075
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "noreply@github.com" ]
lmazuel.noreply@github.com
610746c18083b608c8e079d0cc65af413efac8fa
910be469257538bcbbd15e894679856a1d311252
/server/service/signature/migrations/0041_auto_20170106_0549.py
9cadd3043937ec451442a39f5a2a74631ea8e43f
[]
no_license
bopo/bankeys2
ece7e7faa93aab48bf5a336721bfa69b33a870d8
5a81f5f4cd6442aade444444ba768b9ffa9dcbd4
refs/heads/master
2023-08-19T04:16:12.063961
2023-08-04T09:09:00
2023-08-04T09:09:00
119,646,417
1
0
null
null
null
null
UTF-8
Python
false
false
745
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-06 05:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('signature', '0040_auto_20170106_0530'), ] operations = [ migrations.AddFiel...
[ "ibopo@126.com" ]
ibopo@126.com
dc6383bf6bde6c72f23d8e76ea78b70a7540572f
cf57924a595d3c4f09c74835c52c29309bc95afb
/bigtop-packages/src/charm/pig/layer-pig/tests/01-deploy.py
b7e8620faf210f99085b64bcd32495b75a28d5d2
[ "Apache-2.0", "FreeBSD-DOC", "MIT", "DOC" ]
permissive
arenadata/bigtop
94eaf06602062aef6d9a27c2d826d789a6a51a64
05a8ee20d4a0d0db846ba1969bd6ae469042a337
refs/heads/branch-adh-2.0
2021-07-11T21:40:28.056863
2020-08-18T14:31:35
2020-08-18T14:31:35
88,484,637
3
15
Apache-2.0
2020-09-02T10:40:31
2017-04-17T07:46:10
Java
UTF-8
Python
false
false
1,689
py
#!/usr/bin/env python3 # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Lic...
[ "kevin.monroe@canonical.com" ]
kevin.monroe@canonical.com
7e8416acc55663eef63a269fe0e4b6768ff66367
0b4fdc7390068ec31ce1dc5816327bffc53c5f96
/chatapp/chat/consumers.py
5198f1bff9708d570ca2b33f32d04c8bf01fff11
[]
no_license
sanix-sandel/ChatApp
4b487512874313152f7888ea719aeb2a01f4b31f
8630de6502a42156a71f22e9303c38d0c5109ea3
refs/heads/master
2022-11-11T01:46:43.820728
2020-06-28T06:42:15
2020-06-28T06:42:15
273,632,544
0
0
null
null
null
null
UTF-8
Python
false
false
5,435
py
from django.contrib.auth import get_user_model import json from asgiref.sync import async_to_sync from channels.generic.websocket import WebsocketConsumer from .models import Message from django.contrib.auth.models import User class ChatConsumer(WebsocketConsumer): def fetch_messages(self, data): messages...
[ "sanicksikani@gmail.com" ]
sanicksikani@gmail.com
54b13d666fe1f8329b551ebc406b54ad991282ac
3d2b12fea681115711b875118eca7613532ff107
/alignment/fastqc.py
551892f8820b4902160c1afa98b31eb128856e08
[]
no_license
siyunw/RNAseq
0a9c1acd4559a74d771a7bbd663acb86b47da46e
03e4c6d2f6cb667d1fd9c79c7f7ff2263c5860f4
refs/heads/master
2020-12-11T08:14:16.747303
2015-07-01T21:26:51
2015-07-01T21:26:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,917
py
#!/usr/bin/python import sys sys.path.append('/home/ubuntu/TOOLS/Scripts/utility') import os from date_time import date_time from subprocess import Popen from subprocess import call from log import log def fastqc(fastqc_tool,sample,end1,end2,t): # casual logging - look for a LOGS directory, otherwise assume curren...
[ "miguel.a.brown@gmail.com" ]
miguel.a.brown@gmail.com
2540a4d651baff051071787da67a54768a6abc65
ffb2933845f6c1080d465aa45ed2dce0da4c9068
/examples/projects/golem/tests/project/add_directory_to_pages_section.py
b00282ab6dc4f550074145bb2a1d8b4083d01500
[ "MIT" ]
permissive
vault-the/golem
d84afb40d1222fddc69aa0c2b907910740a66fbc
3bd132685b148c0d9c12deeebfc00569d07063e4
refs/heads/master
2022-11-11T02:34:47.043655
2017-09-26T17:08:33
2017-09-26T17:08:33
105,012,053
0
0
MIT
2020-06-29T14:47:46
2017-09-27T11:53:05
JavaScript
UTF-8
Python
false
false
510
py
description = 'Verify that the user can add a directory in the pages section by appending \'\\\' at the end' pages = ['login', 'index', 'project'] def setup(data): go_to('http://localhost:8000/') login.do_login('admin', 'admin') def test(data): index.access_project('tes...
[ "feo.luciano@gmail.com" ]
feo.luciano@gmail.com
60260c2e6350adf3295c6d99c693e6cec5c5911d
e8c6ef46c2e62f7952b07e6e3c6e3bec4629a54f
/generales/views.py
f530cfc8cb60560e67dafb71a605f40f97425059
[]
no_license
DevManuelBarros/octasys
37af5acc53860743e2d71ac1a2a5583d10fd71fb
791cc73e9ab2a8b2aee03ff0b5e6af805fe2b709
refs/heads/master
2022-11-06T14:36:39.590221
2020-06-22T10:29:28
2020-06-22T10:29:28
270,491,397
0
0
null
null
null
null
UTF-8
Python
false
false
4,008
py
from django.shortcuts import render from django.urls import reverse_lazy from django.http import HttpResponse from django.template import RequestContext from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import (CreateView, ListView, ...
[ "dev.manuel.barros@gmail.com" ]
dev.manuel.barros@gmail.com
03fb12558bad467036f3bbeb3ec4aa5eb610d426
72880d033c9948098291efebf934255635f8c6ea
/pythonexamples/24.py
c563d71b414d6e7f77e22a58b1cca7d1ff5adb1a
[]
no_license
manutdmohit/mypythonexamples
729347aec300bda01f629224337c84d5838a71f2
b189c201d07b1a345478699bbb3852c02eb96ce5
refs/heads/master
2023-04-18T01:55:22.026867
2021-05-13T05:59:09
2021-05-13T05:59:09
366,946,854
0
0
null
null
null
null
UTF-8
Python
false
false
1,819
py
Python 3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC v.1924 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> s='ABABABA' >>> s=s.replace('A','B') >>> s='ABABABA' >>> print(id(s)) 2150320808304 >>> s=s.replace('A','B') >>> print(id(s)) 2150310923824 >>> prin...
[ "saudmohit@gmail.com" ]
saudmohit@gmail.com
6757670486078c66a4396fd4d9821c31a12a5d5b
bdfe75b2ff098b94af1d3d4a653c5184f3819bf0
/0x05-python-exceptions/2-safe_print_list_integers.py
19d54ffbe59a16290d72270d45200568132c9325
[]
no_license
ahmedzitouni586/holbertonschool-higher_level_programming
0b20c02473d327372d4f62aa88fb76e210db3f44
7d127082a1981ea9b84b01e4237c2ea266f2df58
refs/heads/main
2023-08-16T13:09:56.477317
2021-09-29T12:47:45
2021-09-29T12:47:45
361,734,824
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
#!/usr/bin/python3 def safe_print_list_integers(my_list=[], x=0): y = 0 for i in range(0, x): try: print("{:d}".format(my_list[i]), end="") y += 1 except (TypeError, ValueError): pass print("") return y
[ "zitouniahmed595@gmail.com" ]
zitouniahmed595@gmail.com
098689df849b3420052b74330371f6d4a9f19f18
92754bb891a128687f3fbc48a312aded752b6bcd
/Algorithms/Python3.x/929-Unique_Email_Addresses.py
1435e7373d2c3c24eb6719646e9908472c2ef993
[]
no_license
daidai21/Leetcode
ddecaf0ffbc66604a464c3c9751f35f3abe5e7e5
eb726b3411ed11e2bd00fee02dc41b77f35f2632
refs/heads/master
2023-03-24T21:13:31.128127
2023-03-08T16:11:43
2023-03-08T16:11:43
167,968,602
8
3
null
null
null
null
UTF-8
Python
false
false
1,293
py
# Runtime: 92 ms, faster than 8.90% of Python3 online submissions for Unique Email Addresses. # Memory Usage: 13.9 MB, less than 6.25% of Python3 online submissions for Unique Email Addresses. class Solution: def numUniqueEmails(self, emails: List[str]) -> int: res = set() for email in emails: ...
[ "daidai4269@aliyun.com" ]
daidai4269@aliyun.com
108c35e3e97d04f06695139964647fc10c1a9c9d
748fc54d0351880bff2b817ca060a70ff9752561
/logic-2/make_chocolate.py
13824445cc635f59ec88eabb9eb4492c23084686
[]
no_license
NicoKNL/codingbat-python-solutions
7e7cd52d1557f200f01d3843a882e55a0818c6a6
0fafa65effeefb78fdbe95a8a5e8a461e5778e0b
refs/heads/master
2021-09-18T19:39:20.033887
2018-07-18T18:51:48
2018-07-18T18:51:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
def make_chocolate(small, big, goal): n_big = int(math.floor(goal / 5)) goal -= min([big, n_big]) * 5 if small >= goal: return goal else: return -1
[ "klaassen.nico@gmail.com" ]
klaassen.nico@gmail.com
eef3747cf754902076f13a7656ee386a2e599e9a
bbbdfb1976a0710c8adebb53ee459c53d1cc7510
/Tour/migrations/0010_auto_20180524_1140.py
647a5e814497b20657c268ce0ec303d8e2ce4c9e
[]
no_license
XBoBaX/tour_z
8208f3c8211c1cf7c6cc2de5ca349ad0eacedfc2
e0f835058c299c2badaaedba0e93f2f545a85ebe
refs/heads/master
2020-03-18T08:54:22.991151
2018-05-24T19:18:35
2018-05-24T19:18:35
134,533,967
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
# Generated by Django 2.0.4 on 2018-05-24 08:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Tour', '0009_auto_20180520_1340'), ] operations = [ migrations.AlterModelOptions( name='infotour', options={'v...
[ "memesHipe@gmail.com" ]
memesHipe@gmail.com
cd993be8949602eb7e7a1d6b719d16af43df8747
227539d0906cdfbb7cd19f16599c35d5bd09abfd
/CodingBat/List-1/has23.py
3b61447eb49f2248bb0723ff0dc457cd7982d747
[]
no_license
solomonli/PycharmProjects
cceb92a11ec1f9e7fef25bca552d8264c75228a0
31673627487db1370424f5b0aeee3e20bb23b47a
refs/heads/master
2021-06-24T11:59:36.365496
2019-07-08T09:53:18
2019-07-08T09:53:18
148,558,376
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
def has23(nums): """ Given an int array length 2, return True if it contains a 2 or a 3. has23([2, 5]) → True has23([4, 3]) → True has23([4, 5]) → False :param nums: list of ints length 2 :return: boolean """ return 2 in nums or 3 in nums print(has23([2, 5])) print(has23([4, 3]))...
[ "richdad.solomon@gmail.com" ]
richdad.solomon@gmail.com
6773a55996ed17462c747d9c0806f1a799fedfb9
947e71b34d21f3c9f5c0a197d91a880f346afa6c
/ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/HIVE/package/scripts/postgresql_server.py
6732573f6ab9c7cc59fbc9dab4541f252063f7cc
[ "Apache-2.0", "MIT", "GPL-1.0-or-later", "GPL-2.0-or-later", "OFL-1.1", "MS-PL", "AFL-2.1", "GPL-2.0-only", "Python-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
liuwenru/Apache-Ambari-ZH
4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0
7879810067f1981209b658ceb675ac76e951b07b
refs/heads/master
2023-01-14T14:43:06.639598
2020-07-28T12:06:25
2020-07-28T12:06:25
223,551,095
38
44
Apache-2.0
2023-01-02T21:55:10
2019-11-23T07:43:49
Java
UTF-8
Python
false
false
5,069
py
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
[ "ijarvis@sina.com" ]
ijarvis@sina.com
3516e2291650f72670d10733f1f01cdbe80494f8
02d0714edfef5a2d3630d7659c553c157e291e52
/tempest/api_schema/response/compute/v2_1/interfaces.py
130775b46a72c9d9a839d2e6962911ca2f65e236
[ "Apache-2.0" ]
permissive
atulbangar09/tempest
f07dced592481a7ec71a9c7469b7d50d30cdc171
9f5644ce2784cd882e86ac89236f8f8f828d7c43
refs/heads/master
2023-02-06T10:26:40.112917
2020-01-21T16:17:16
2020-01-21T16:17:16
234,520,093
0
0
Apache-2.0
2020-01-17T09:52:53
2020-01-17T09:52:52
null
UTF-8
Python
false
false
2,272
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 ...
[ "jignasha.vithalani@triliodata.com" ]
jignasha.vithalani@triliodata.com
b87a5862baddc52281f8bf5643f0a5d27f332020
cb9741ba6fb4e9c6d27cd4bc1790ab4123bc467b
/autoplan/vis.py
a8e253b7e993a94c9cfb78856ed418c89ff8e8e1
[]
no_license
willcrichton/autoplan
fa5070035c18b87981b0c0ccd16c9272728ecc2d
d7b97bca716559729deac08ccdf951f1ff10f268
refs/heads/master
2022-06-18T14:32:33.201629
2021-04-30T01:22:08
2021-04-30T01:22:08
192,789,759
2
0
null
2022-06-06T21:37:38
2019-06-19T19:10:20
Jupyter Notebook
UTF-8
Python
false
false
1,325
py
import seaborn as sns import matplotlib.pyplot as plt import math import numpy as np import pandas as pd def plot_loss(loss, **kwargs): ax = pd.Series(loss).plot(**kwargs) ax.set_xlabel('Epoch') ax.set_ylabel('Loss') return ax def plot_accuracy(evals, **kwargs): ax = pd.Series([e.accuracy for e in...
[ "wcrichto@cs.stanford.edu" ]
wcrichto@cs.stanford.edu
6ddc86edaf26074f4217c134f0f054cfad8fc848
63675264d51fad9cac2ed96576156d25ba6a5e21
/backend/productionSlide/api/v1/urls.py
3d70cceb103b3d7d9b0e23ac27fd98553ce7c9cb
[]
no_license
crowdbotics-apps/hunterryan-22013
42a3451c621042d65abd53f0f6292ffdf88a759b
8c2cc0f935f1f405eb23e90461529c402b7985c0
refs/heads/master
2023-01-29T14:28:33.329793
2020-12-07T23:18:19
2020-12-07T23:18:19
307,755,541
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
from django.urls import path, include from rest_framework.routers import DefaultRouter from .viewsets import ProductionViewSet router = DefaultRouter() router.register("production", ProductionViewSet) urlpatterns = [ path("", include(router.urls)), ]
[ "team@crowdbotics.com" ]
team@crowdbotics.com
bc9e8f8e78181b4b170530df62bef23d37e878e4
1ed4e96c20da03fbd3aa4f18d4b004a59d8f89e5
/Repo/venv/Lib/site-packages/caffe2/python/mkl/mkl_LRN_speed_test.py
6b0c5aba7e2cab7d74e0aac1c1662d4e817165f8
[]
no_license
donhatkha/CS2225.CH1501
eebc854864dc6fe72a3650f640787de11d4e82b7
19d4dd3b11f8c9560d0d0a93882298637cacdc80
refs/heads/master
2023-07-19T13:27:17.862158
2021-02-08T07:19:05
2021-02-08T07:19:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,266
py
import unittest import numpy as np from caffe2.proto import caffe2_pb2 from caffe2.python import cnn, core, workspace, test_util @unittest.skipIf(not workspace.C.has_mkldnn, "Skipping as we do not have mkldnn.") class TestMKLBasic(test_util.TestCase): def testLRNSpeed(self): # We random...
[ "59596379+khado2359@users.noreply.github.com" ]
59596379+khado2359@users.noreply.github.com
2615d0e57751c7147ed0b0aca621d8ce9a41aa31
b3b68efa404a7034f0d5a1c10b281ef721f8321a
/Scripts/simulation/venues/bar_venue/__init__.py
0cd92a4f71cc399dedf4e0830ffd1d28dc481848
[ "Apache-2.0" ]
permissive
velocist/TS4CheatsInfo
62195f3333076c148b2a59f926c9fb5202f1c6fb
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
refs/heads/main
2023-03-08T01:57:39.879485
2021-02-13T21:27:38
2021-02-13T21:27:38
337,543,310
1
0
null
null
null
null
UTF-8
Python
false
false
325
py
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\venues\bar_venue\__init__.py # Compiled at: 2015-06-01 19:48:40 # Size of source mod 2**32: 79 bytes...
[ "cristina.caballero2406@gmail.com" ]
cristina.caballero2406@gmail.com
483465d8b1bd2615e83a40ca9935baa90a3e55d4
e96deed00dd14a1f6d1ed7825991f12ea8c6a384
/count_possibilities_convert_int_to_string.py
90a0516abc752e4e53cfb526430963129e87e578
[]
no_license
borisachen/leetcode
70b5c320abea8ddfa299b2e81f886cfeb39345c1
15e36b472a5067d17482dbd0d357336d31b35ff4
refs/heads/master
2021-01-19T17:07:46.726320
2020-11-16T04:30:52
2020-11-16T04:30:52
88,306,634
3
0
null
null
null
null
UTF-8
Python
false
false
879
py
Count Possibilities We have a dictionary with a:1 b:2 ... z:26 Given a string = '11135213', we want to find the number of possibilities that the string forms. 11 -> 1,1 or 11 Whenever we find a 1 or a 2, we need to look ahead see if we need to create a second branch. def dfs(query, keys): if query == '': return ...
[ "boris.chen@gmail.com" ]
boris.chen@gmail.com
ba78ba99194fc7c79e612691e84b61085f9415e0
722af8e6fa81960a6119c2e45ba6795771bad595
/accounts/models.py
16dd824055c2fbbac6bb0267915d8da9bc4e22e9
[]
no_license
witty-technologies-empowerment/pmc
85d21fa3c360d40adeec7ca93792b5bc68c258e5
201bee60197240eec911637e136cf14bc5814eec
refs/heads/master
2023-05-27T12:37:48.894933
2021-06-13T04:34:57
2021-06-13T04:34:57
376,439,472
0
0
null
null
null
null
UTF-8
Python
false
false
289
py
from django.db import models from django.contrib.auth.models import User class userContact(models.Model): user = models.CharField(max_length=20) telephone = models.CharField(max_length=12) def __str__(self): return self.user + " telephone is " + self.telephone + "."
[ "www.spbiology@gmail.com" ]
www.spbiology@gmail.com
fee215edec6ed11ef121fdb37857078845e85c5d
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/5ZDz5nDDPdfg5BH8K_10.py
e537a9a9cefc2c883be9d8774afd7565570187c6
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,201
py
""" Starting with either `3` or `5` and given these operations: * add `5` * multiply by `3` You should say if it is possible to reach the target number `n`. ### Examples only_5_and_3(14) ➞ True # 14 = 3*3 + 5 only_5_and_3(25) ➞ True # 25 = 5+5+5+5+5 only_5_and_3(7) ➞ False #...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
fc6dd74e3c081306a2ecf826409d03aaffd48160
f6b4372bd887a1cde58962ce2b22dc2528ab4b2c
/meus_programas/contador_teste.py
9d8647ca104d189c4022209c5c9c776f3f6e0d75
[]
no_license
Titowisk/estudo_python
4eddec1ee9d190f5efd1ed1d773157cb767d0746
1873649a5eef6cf60e37e36bbb6195df419fa3ab
refs/heads/master
2021-05-05T09:13:08.754379
2018-06-18T23:38:55
2018-06-18T23:38:55
119,263,297
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
#coding=utf-8 import random def gerar_mega2(): sorteio = [] while len(sorteio) <=5: d = random.randint(1, 30) if d in sorteio: continue else: sorteio.append(d) sorteio.sort() return sorteio sorteio = gerar_mega2() n_apostas = 0 ganhador = False while ga...
[ "rabelo51@gmail.com" ]
rabelo51@gmail.com
eb469b3339967a945f5031ae23c8825a832f2c4a
45b4ff6a4e4804ff84847d56400e10cdb0d96186
/python/test/test_prediction_resource_relationships_vehicle.py
4aaafea194772b420459fc15adc18a5ba01d9520
[]
no_license
pranav/mbta-libraries
fabbc9305569a344e25fa1b281cba290f0fa3f13
e793696addd94750f722f3132aadc8dfe00adef5
refs/heads/master
2021-08-22T11:15:26.014862
2017-11-30T03:12:52
2017-11-30T03:12:52
112,558,008
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com OpenAPI spec version: 3.0 Contact: developer@mbta.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys import unittest import swagger_client from swa...
[ "pgandhi@hubspot.com" ]
pgandhi@hubspot.com
a04419a657b0bda846d36d62dae92b9c6fb8a54d
5c0c0176db0ccf2c24b6b5ed459a8dc144518b13
/nni/nas/tensorflow/mutator.py
b0d2aed684e289b556ccc1388b95477d55c5c2da
[ "MIT" ]
permissive
petuum/nni
ac4f4a1c4d6df71684eeffa127b7c4858fd29e97
8134be6269902939232482d63649c06f9864be6d
refs/heads/master
2023-02-18T11:21:41.078889
2021-01-20T03:21:50
2021-01-20T03:21:50
302,736,456
4
3
MIT
2020-11-20T20:21:15
2020-10-09T19:34:11
Python
UTF-8
Python
false
false
3,045
py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import logging import tensorflow as tf from .base_mutator import BaseMutator _logger = logging.getLogger(__name__) class Mutator(BaseMutator): def __init__(self, model): super().__init__(model) self._cache = {} def ...
[ "noreply@github.com" ]
petuum.noreply@github.com
0cf491a1ddc59c3ebadf24ae52de20ab9af2111e
0b802a3b3572ae4e9be55cb1c116ebcf06cceb4d
/tests/pipupgrade/util/test_string.py
e77577f017a74f664002ce2f4f93dcb3a4e21112
[ "MIT" ]
permissive
todun/pipupgrade
fc8b1315a9b432a75dd78c1783f85cd0147e631b
2f2e04d77c7e276e4b6172d42b5bdeaae11075fb
refs/heads/master
2020-06-25T00:43:26.995923
2019-06-10T18:46:22
2019-06-10T18:46:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
971
py
# imports - module imports from pipupgrade.util.string import strip, strip_ansi, pluralize, kebab_case from pipupgrade import cli def test_strip(): string = "foobar" assert strip(string) == string string = "\n foobar\nfoobar \n " assert strip(string) == "foobar\nfoobar" string = "\n\n\n" ...
[ "achillesrasquinha@gmail.com" ]
achillesrasquinha@gmail.com
bb99904c85e56977d83bbca5bb30be8856678735
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=89/sched.py
80cbfd969d340eb1e372914d9a2939a2093bbf4b
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
-S 0 -X RUN -Q 0 -L 3 122 400 -S 1 -X RUN -Q 0 -L 3 109 400 -S 0 -X RUN -Q 0 -L 3 81 300 -S 0 -X RUN -Q 0 -L 3 81 250 -S 1 -X RUN -Q 0 -L 3 76 400 -S 4 -X RUN -Q 1 -L 1 65 400 -S 4 -X RUN -Q 1 -L 1 62 200 -S 4 -X RUN -Q 1 -L 1 47 300 -S 4 -X RUN -Q 1 -L 1 45 300 -S 3 -X RUN -Q 2 -L...
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
f69b4f7ddd7afe944af70c3875f6d79ef7203228
eb525db30bd7fc207a50b232b47890771cc5e069
/girder_worker/plugins/docker/stream_adapter.py
db9cc7c9f184757a5c2d955dd6d749dc44a656c3
[ "Apache-2.0" ]
permissive
dorukozturk/girder_worker
916220ca0ec91a9764e201ae5ac9a11b101ed367
e38989d18e126096b402d9c8821021d01d4696bf
refs/heads/master
2020-12-03T02:12:19.839207
2017-07-28T12:27:41
2017-07-28T12:27:41
95,914,617
0
0
null
2018-01-23T13:18:58
2017-06-30T18:39:00
Python
UTF-8
Python
false
false
2,542
py
from girder_worker.core.utils import StreamPushAdapter import struct class DockerStreamPushAdapter(StreamPushAdapter): """ An adapter that reads a docker stream. The format is a Header and a Payload (frame). Where header has the following format: header := [8]byte{STREAM_TYPE, 0, 0, 0, SIZE1, SIZ...
[ "chris.harris@kitware.com" ]
chris.harris@kitware.com
905ee1e8555922be6ee7645b9393f7a84645ee41
bc197cc45c503389aa4cec57862204f6ece7f94f
/game/content/ghplots/utility.py
604f69090f7b1dff4e368a2011bf186d5fcb9c2f
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
asdlei99/gearhead-caramel
84f28dbd0f1db255abf5186ff19cc6fb54f6b0a1
f4f5803858acada2b252bb0860df8f828d65af15
refs/heads/master
2020-12-02T01:49:55.547899
2019-12-27T04:41:42
2019-12-27T04:41:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,782
py
from pbge.plots import Plot, PlotState import game.content.ghwaypoints import game.content.ghterrain import gears import pbge from game import teams,ghdialogue from game.ghdialogue import context import random from pbge.dialogue import ContextTag,Offer from game.content.ghplots import dd_main import game.content.plotut...
[ "pyrrho12@yahoo.ca" ]
pyrrho12@yahoo.ca
8896119fe00b5a5eb73ea77bb0d1d89d08da0cdd
4cc4d9d488939dde56fda368faf58d8564047673
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/wifi_aware_const.py
7e495f5e728eb747a7ff2f108202c2ea618ac2a7
[]
no_license
Tosotada/android-8.0.0_r4
24b3e4590c9c0b6c19f06127a61320061e527685
7b2a348b53815c068a960fe7243b9dc9ba144fa6
refs/heads/master
2020-04-01T11:39:03.926512
2017-08-28T16:26:25
2017-08-28T16:26:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,879
py
#!/usr/bin/env python3.4 # # Copyright 2016 - Google # # 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...
[ "xdtianyu@gmail.com" ]
xdtianyu@gmail.com
7403b067ddf760a7f9353236027c975fdf5d4969
acf7457d3a799cb9bff12686d2d616688bcd4b5b
/packages/python/plotly/plotly/validators/scattersmith/marker/colorbar/_tickformatstops.py
3c83565dd95aa07a025b6ec918b72ea323b0e756
[ "MIT" ]
permissive
plotly/plotly.py
f4f61639f08160f16195efc95b5901dc5a937346
975a704074f01c078e0fdfa32bdf17130bf89e69
refs/heads/master
2023-09-06T06:15:08.340035
2023-08-24T12:28:14
2023-08-24T12:28:14
14,579,099
14,751
2,989
MIT
2023-09-08T19:55:32
2013-11-21T05:53:08
Python
UTF-8
Python
false
false
2,328
py
import _plotly_utils.basevalidators class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, plotly_name="tickformatstops", parent_name="scattersmith.marker.colorbar", **kwargs, ): super(TickformatstopsValidator, self).__i...
[ "nicolas@plot.ly" ]
nicolas@plot.ly
ee8e7f1b1e741068445846bdbc8b554b7ccd40b0
bc3bd7601fa427d638f872b4ddfdebe4ce23a25c
/test/test_pipeline_commit_target.py
a3f61fca40255510e6c3d6c6f52192f34e4e8ec4
[]
no_license
magmax/bitbucket-openapi
59ef55ab3aa42940c8211d3ecd16ef7d6fc74c21
836ae762735ae5b1ececcee5287fa271d7d8de5b
refs/heads/master
2020-07-28T16:10:32.736169
2019-09-19T04:17:09
2019-09-19T04:17:09
209,460,884
3
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
# coding: utf-8 """ Bitbucket API Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework. # noqa: E501 The version of the OpenAPI document: 2.0 Con...
[ "miguelangel.garcia@gmail.com" ]
miguelangel.garcia@gmail.com
6c415c8dffe9dce42b4fff8d874738aef90b4765
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_None/trend_MovingMedian/cycle_30/ar_12/test_artificial_32_None_MovingMedian_30_12_20.py
6aabf6a695b31d651117eeef2bd4686cf209b664
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
268
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 30, transform = "None", sigma = 0.0, exog_count = 20, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
7a83add2ea43ac53f4b26817052a7cfb1eaf3e16
b6689876963fe86369a43f59ccb50b3761024c93
/example/example/spiders/movie.py
7773a3829a1fcadde2d2b299193b7b28b5d6f5f2
[]
no_license
Gerapy/GerapyRabbitMQ
e459e16bbc9bd4cee7eb5a250f64e4a2406b7641
5b74fee6990b2b9fcb590b3cf12e0c668be65130
refs/heads/master
2022-11-22T13:54:11.167461
2020-07-25T19:53:31
2020-07-25T19:53:31
282,440,431
8
1
null
null
null
null
UTF-8
Python
false
false
1,617
py
# -*- coding: utf-8 -*- import scrapy from scrapy import Request, signals from example.items import MovieItem import logging logger = logging.getLogger(__name__) class MovieSpider(scrapy.Spider): name = 'movie' allowed_domains = ['static1.scrape.center'] base_url = 'https://static1.scrape.center' max...
[ "cqc@cuiqingcai.com" ]
cqc@cuiqingcai.com
2cf0a7f3558a4c2f4dcdf6eb7a8e24f1ff75211e
4c601eaa346e660c296e270cc2d79aea9a3721fe
/homeassistant/components/smappee/const.py
4bc370e9c093317433cc230c942a6a2731c7efdc
[ "Apache-2.0" ]
permissive
basnijholt/home-assistant
f55110af9ff602274c0a929c7298ef97a0ef282f
ba55b4b8338a2dc0ba3f1d750efea49d86571291
refs/heads/dev
2023-01-21T11:53:52.621353
2020-08-08T15:03:06
2020-08-08T15:03:06
220,313,680
5
1
Apache-2.0
2023-01-13T06:04:49
2019-11-07T19:29:54
Python
UTF-8
Python
false
false
718
py
"""Constants for the Smappee integration.""" from datetime import timedelta DOMAIN = "smappee" DATA_CLIENT = "smappee_data" BASE = "BASE" SMAPPEE_PLATFORMS = ["binary_sensor", "sensor", "switch"] MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=5) AUTHORIZE_URL = { "PRODUCTION": "https://app1pub.smappee.net/dev/v...
[ "noreply@github.com" ]
basnijholt.noreply@github.com
1ef0123300e1c65a8bab6f04340e2c2dd0963305
602a4e86499841fbae43d84fc92908c533106aea
/userprofile/urls.py
0954c63e61d4faeb63d48f74ca5c63156a7bd407
[]
no_license
vden/TsoguNG
b187ccf1bef387417ec73467c51458d6f1443239
f8d5e7ab9d85559aa163c232c9f28a24a2b7c2a4
refs/heads/master
2021-01-02T08:52:03.914218
2011-04-26T07:01:57
2011-04-26T07:01:57
1,663,546
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
# -*- coding: utf-8 -*- from django.conf.urls.defaults import * urlpatterns = patterns('tsogung.userprofile.views', (r'^$', 'index'), (r'^update/$', 'update'), (r'^edit/$', 'edit'), (r'^send_email_confirm/$', 'send_email_confirm'), (r'^student_status_confirm/$', 'student_status_confirm'), (r'^email_confirm/(?P<u...
[ "denis.voskvitsov@gmail.com" ]
denis.voskvitsov@gmail.com
9d0b45d1670209903c9fd17a33cb6369a5df7a3d
f645ea40794ec13a1ee6eb6453b87260d0e835d6
/adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/lib/adafruit_boardtest/boardtest_led.py
6820db80a0dfb40e832317329ca4b3ef7e346955
[ "MIT" ]
permissive
bergius/pico_rgb_keypad_hid
e0e1751859267136242411176af0d57da9e0e762
a685c5aacd1e31c7a1bc9f50c80cce5724291bc2
refs/heads/main
2023-04-29T10:07:50.560920
2021-05-19T08:27:42
2021-05-19T08:27:42
368,795,603
0
0
null
2021-05-19T08:22:57
2021-05-19T08:22:56
null
UTF-8
Python
false
false
3,574
py
# SPDX-FileCopyrightText: 2018 Shawn Hymel for Adafruit Industries # # SPDX-License-Identifier: MIT """ `adafruit_boardtest.boardtest_led` ==================================================== Toggles all available onboard LEDs. You will need to manually verify their operation by watching them. Run this script as its ...
[ "quintin.balsdon@zuhlke.com" ]
quintin.balsdon@zuhlke.com
291a53b1bba81abf57b9cf2781c245b222b7f1cf
17c280ade4159d4d8d5a48d16ba3989470eb3f46
/17/mc/ExoDiBosonResonances/EDBRTreeMaker/test/QCDHT500to700.py
6613e3ae8a3039e0fcfe67fef5e08bb8ce565a7b
[]
no_license
chengchen1993/run2_ntuple
798ff18489ff5185dadf3d1456a4462e1dbff429
c16c2b203c05a3eb77c769f63a0bcdf8b583708d
refs/heads/master
2021-06-25T18:27:08.534795
2021-03-15T06:08:01
2021-03-15T06:08:01
212,079,804
0
2
null
null
null
null
UTF-8
Python
false
false
2,367
py
from WMCore.Configuration import Configuration config = Configuration() config.section_("General") config.General.requestName = 'QCDHT500to700' config.General.transferLogs = True config.section_("JobType") config.JobType.pluginName='Analysis' config.JobType.sendExternalFolder=True# = 'Analysis' config.JobType.inpu...
[ "c.chen@cern.ch" ]
c.chen@cern.ch
0129bc9ef7424e63dff4a587bec620a5178598de
2a06c435c4eaac1f10a3a60628852b2938903eba
/explorer/reduce.py
30d3d452e47d630dc5e8a3fbde4aa229d941db5a
[]
no_license
brianhouse/animas
9b727fe3c23e35dad1d243680226bb066ce5cff9
6611aaa69c85be66618cb115b89c2508928ee8a4
refs/heads/master
2020-05-29T14:40:14.897399
2017-10-14T14:41:54
2017-10-14T14:41:54
64,967,106
0
0
null
null
null
null
UTF-8
Python
false
false
1,938
py
#!/usr/bin/env python3 import json, time import numpy as np import signal_processing as sp from sklearn import manifold, decomposition, cluster from housepy import config, log, util, chart # points, rates = util.load("data/1470432105.pkl") # last week # points, rates = util.load("data/1470593687.pkl") # last two ...
[ "brian.house@gmail.com" ]
brian.house@gmail.com
d086c1cdb2de19c5b6f35ea3f2a0024a6a9e8b48
a79341b8b91f0f847a2125d5ae13a7cdffc44da3
/model/imdb.py
f56f427e2abb6bc026d8b7b3d2bdf1a6d8794ef7
[]
no_license
edmondchuc/tele-tracker
bccf1925cc692485de57d34e81fc0d87e1fd7b18
721056e3cb132f6f8d9ced35f30ba51ffb03341b
refs/heads/master
2020-04-22T04:41:48.106304
2019-02-11T13:20:30
2019-02-11T13:20:30
170,132,000
0
0
null
null
null
null
UTF-8
Python
false
false
4,369
py
import requests from requests.sessions import merge_setting, session from config import Config class InvalidParamsException(Exception): """ Invalid query string argument (parameters) sent to the OMDb API. """ pass class IMDb(): def __init__(self): if type(self) is IMDb: rais...
[ "edmond.chuc@outlook.com" ]
edmond.chuc@outlook.com
4430a39cd5cbf3a5c60284c781fb3c40b00afa39
7b102f9c8f2e3f9240090d1d67af50333a2ba98d
/gbd_2019/cod_code/cancer/c_models/b_cod_mortality/project_incidence.py
488a499ddd865a37aee8129f3e1b698f06f0a65e
[]
no_license
Nermin-Ghith/ihme-modeling
9c8ec56b249cb0c417361102724fef1e6e0bcebd
746ea5fb76a9c049c37a8c15aa089c041a90a6d5
refs/heads/main
2023-04-13T00:26:55.363986
2020-10-28T19:51:51
2020-10-28T19:51:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,651
py
''' Description: Applies the IHME population to the incidence rate to create a projected estimate matching the IHME coverage population How To Use: ''' from cancer_estimation.py_utils import ( common_utils as utils, data_format_tools as dft, modeled_locations ) from cancer_estimation.a_inputs.a_mi...
[ "cheth@uw.edu" ]
cheth@uw.edu
09b7d08abb9002d9c6298b38ac70142412ca294d
787344a140b1f1ca05277b44dbf72fda3fa25cda
/bin/clean_assignment_db.py
53e9c5c2e96b8ee06bdf1ab257e7212f9250e7db
[ "MIT" ]
permissive
poldrack/r-autograder
6785b40dbd3011dfe5fb47c134c66a8d18985d21
58ab96bed7456aef2cec9e01ff6eff23daec0425
refs/heads/master
2020-12-29T22:57:53.816305
2020-03-05T22:33:24
2020-03-05T22:33:24
238,765,808
3
0
null
2020-02-06T19:25:53
2020-02-06T19:20:10
Python
UTF-8
Python
false
false
1,072
py
#!/usr/bin/env python3 """ clear out assignment db for particular week using config.json """ from rautograder.Database import Database import json import os import argparse if __name__ == "__main__": parser = argparse.ArgumentParser( description='Clear assignment database') parser.add_argument('-t', ...
[ "poldrack@gmail.com" ]
poldrack@gmail.com
a027fe5984f77b3f36cc37ec7591e76ff46187d6
c404dce8809d1a1d9828a5c92d3eede96bad5487
/igdiscover/dbdiff.py
aada219ffcee30656be28832e6312a2d27c81644
[ "MIT" ]
permissive
mateuszatki/IgDiscover
8b560297d64e5b9e2c65408c43214cc78f235558
b6f1bdcdf75ddae2af154d41bb21fedff60115a1
refs/heads/master
2020-03-29T08:59:11.699494
2018-11-19T21:51:50
2018-11-19T21:51:51
149,736,075
0
0
null
2018-09-21T08:46:21
2018-09-21T08:46:21
null
UTF-8
Python
false
false
6,045
py
""" Compare two FASTA files based on sequences The order of records in the two files does not matter. Exit code: 2 if duplicate sequences or duplicate record names were found 1 if there are any lost or gained records or sequence differences 0 if the records are identical, but allowing for different record...
[ "marcel.martin@scilifelab.se" ]
marcel.martin@scilifelab.se
e9c676a2bda26f05c1c2b1ce8d8d787df65ee28d
3a39ddc4a8600ffc5110453867370c1d8e2da121
/media-libs/libdvdcss/libdvdcss-1.2.10.py
313858ee1df9761c7e7ffbe596db5cde8de288bf
[]
no_license
seqizz/hadron64
f2276133786c62f490bdc0cbb6801491c788520f
ca6ef5df3972b925f38e3666ccdc20f2d0bfe87e
refs/heads/master
2021-01-18T04:53:09.597388
2013-02-25T21:25:32
2013-02-25T21:25:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
746
py
metadata = """ summary @ A portable abstraction library for DVD decryption homepage @ http://www.videolan.org/libdvdcss license @ GPL src_url @ http://download.videolan.org/pub/libdvdcss/$version/$fullname.tar.bz2 arch @ ~x86 options @ doc """ depends = """ runtime @ sys-libs/glibc """ opt_build = """ doc @ app-doc/d...
[ "seqizz@gmail.com" ]
seqizz@gmail.com
ae87acfb91d524438626533b4763b16e81b65d72
009628e385aca8552dad5c1c5cba018ca6e5954d
/mtk/geometry/rms.py
a5a9d290eba7d7247a8eb7319f745899093bbca7
[]
no_license
csrocha/python-mtk
565ebcfeb668a6409d48135bf081321d8121b263
c3ba520f55c2e204feb6b98251abcb046e51c6cd
refs/heads/main
2023-01-12T02:46:44.457520
2020-11-17T20:20:59
2020-11-17T20:20:59
313,939,251
0
0
null
null
null
null
UTF-8
Python
false
false
5,441
py
# -*- coding: ISO-8859-1 -*- # $Id: rms.py 62 2009-05-19 09:15:03Z cristian_docking $ # # Copyright (C) 2009 Cristian S. Rocha (crocha@dc.uba.ar) # Licensed to PSF under a Contributor Agreement. """Calcule rms related functions""" from numpy import array, shape, dot, transpose, identity from numpy import sqrt, sum...
[ "cristian.rocha@moldeo.coop" ]
cristian.rocha@moldeo.coop
0d6714ece4a8c98e9bf0db905e7aaea398bb4170
4a3d5904441535e77d39e1f6d9552433d297ce0a
/profit_loss.py
6464d0204128f7c61f296c825ea4a7dad060d853
[]
no_license
Rinkikumari19/codechef_questions
b2a5d3b483f3aa8ef70d4af963f7315dca308e6e
2b1f991d3e2faad4ca5d7ce9af4fad0c35e7b087
refs/heads/master
2022-11-23T19:00:21.589006
2020-08-02T18:22:38
2020-08-02T18:22:38
280,680,989
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
sp = int(input("enter your number")) cp = int(input("enter your number")) if sp>cp: print("profit") elif sp<cp: print("loss") else: print("no profit, no loss") # It will check profit or loss
[ "ravina18@navgurukul.org" ]
ravina18@navgurukul.org
176d735cd834be1894e7ea014a170604d7fcfb2f
5ae3bc1920fafc33693cdfa3928a48158aa6f725
/687/687.py
5f58fd789819bd64da74f0b7787136b4efe95a9d
[]
no_license
sjzyjc/leetcode
2d0764aec6681d567bffd8ff9a8cc482c44336c2
5e09a5d36ac55d782628a888ad57d48e234b61ac
refs/heads/master
2021-04-03T08:26:38.232218
2019-08-15T21:54:59
2019-08-15T21:54:59
124,685,278
0
0
null
null
null
null
UTF-8
Python
false
false
988
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def longestUnivaluePath(self, root: TreeNode) -> int: if not root: return 0 return self.dfs(root, 0)...
[ "jcyang@MacBook-Air.local" ]
jcyang@MacBook-Air.local
cb5c552d5609ca9db8b4646ca79559abe3a4271c
7d5d0727c70bef05717199fb125c50102a832a12
/src/learn/basic/dataloading.py
a3238f6909dd2db7c22abd3eb228ecff655f72eb
[]
no_license
yyHaker/pytorch_study
3408f8b34e8bf7dee1e5f42e4bde5e3c777d35b5
664238f73114ccbdbe41a34ecbb7dab74d467285
refs/heads/master
2022-11-06T17:04:45.255802
2019-10-14T12:06:33
2019-10-14T12:06:33
113,334,932
2
1
null
2022-10-23T12:21:59
2017-12-06T15:41:46
Python
UTF-8
Python
false
false
2,632
py
# -*- coding: utf-8 -*- from __future__ import print_function, division import os import torch import pandas as pd from skimage import io, transform import numpy as np import matplotlib.pyplot as plt from torch.utils.data import Dataset, DataLoader from torchvision import transforms, utils # Ignore warnings import war...
[ "572176750@qq.com" ]
572176750@qq.com
3629df5aeea5748fc3564e8fef8155b2e47a1eb6
33b2df796669a76b3d82f465b5d0ce95241a8082
/tests/gene_tests.py
03c8f8a4c2159d0d90b337803f5b41f869f1d70f
[ "MIT" ]
permissive
dohlee/python-dohlee
7c9a2d83d41ad4d50bf3e4304e1e694676cc4820
f99bb4892b6de8cde0515e09fac50e36313b06ed
refs/heads/master
2021-06-07T11:12:10.825104
2019-08-09T04:37:24
2019-08-09T04:37:24
130,536,062
1
0
null
null
null
null
UTF-8
Python
false
false
737
py
from nose.tools import assert_equal import dohlee.gene as gene def given_single_gene_ensg2symbol_test(): ensg = 'ENSG00000141510' symbol = gene.ensg2symbol(ensg) assert_equal(symbol, 'TP53') def given_multiple_gene_ensg2symbol_test(): ensgs = ['ENSG00000121879', 'ENSG00000141510'] ...
[ "apap950419@gmail.com" ]
apap950419@gmail.com
d3b7a467a2cd51c08f899aef6235287f9a7302f2
76c14138689216634ca12b5e1bc0947a9866b1b0
/PYTHON/oops/nn/encap.py
0015ce9871be0212b6a8a49ab62bebdbf4202e9e
[]
no_license
KSrinuvas/ALL
4b0c339bfeb8780232f3853e5fc53c40b84c9cb7
9251464a27a98f98e1055ebf129d6934a02e8ffc
refs/heads/master
2020-12-06T21:59:33.449669
2020-03-15T17:05:42
2020-03-15T17:05:42
232,560,914
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
#!/usr/bin/python3 class AA: def __init__(self): self.__val = 500 def Print(self): print (self.__val) def Update(self,price): self.__val = price print (self.__val) dd = AA() dd.__val = 700 print (dd.__val) dd.Print() dd.Update(1000)
[ "Srinuvas935@gmail.com" ]
Srinuvas935@gmail.com
54abdd9a8a5612396e4dd71365da21a01e80f094
44845df9198ae8c80fabecb6ed3ae6a44e43f38c
/iva/migrations/0002_auto_20170328_1235.py
005c20c45e08cbc383afa7e4bd650a8fc3de6163
[]
no_license
CarlosSanz81/cima
570da404bddd0a813a025163a9e94676b9d0b4a9
3ad9b37af4a2d8a5789915208afffec7b6af3c0e
refs/heads/master
2021-01-23T08:00:04.964713
2017-03-28T14:33:09
2017-03-28T14:33:09
72,184,187
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-28 10:35 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('iva', '0001_initial'), ] operations = [ migrations.AlterModelOptions( n...
[ "carlossanzgarcia81@gmail.com" ]
carlossanzgarcia81@gmail.com
65509d419fbc0dc77d5715279909582362317857
e7efae2b83216d9621bd93390959d652de779c3d
/gitlab/tests/test_unit.py
8acbb2295edbf835bb2f3c50f98aaaaf96c2ff47
[ "BSD-3-Clause", "MIT", "BSD-3-Clause-Modification", "Unlicense", "Apache-2.0", "LGPL-3.0-only", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "CC0-1.0" ]
permissive
DataDog/integrations-core
ee1886cc7655972b2791e6ab8a1c62ab35afdb47
406072e4294edff5b46b513f0cdf7c2c00fac9d2
refs/heads/master
2023-08-31T04:08:06.243593
2023-08-30T18:22:10
2023-08-30T18:22:10
47,203,045
852
1,548
BSD-3-Clause
2023-09-14T16:39:54
2015-12-01T16:41:45
Python
UTF-8
Python
false
false
5,916
py
# (C) Datadog, Inc. 2023-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from mock.mock import MagicMock from datadog_checks.base import AgentCheck, ConfigurationError from datadog_checks.dev.testing import requires_py2, requires_py3 from datadog_checks.dev.utils...
[ "noreply@github.com" ]
DataDog.noreply@github.com
0de6366059644781c5ad60ba84b583894cd2615a
f21ce1669b00d80e8d064363342bafe6cc2bca71
/personal_website/landing/views.py
5b88cbed3920bdd12db0ea8314bcb0500a4b33a2
[]
no_license
sandipan898/personal-website
760a87b42373c0098d67dd3bedb96bac16147e38
62ae9dc2be63f9b7d4297596dcffa329e2d9b961
refs/heads/main
2023-06-30T03:03:42.374597
2021-07-31T21:31:41
2021-07-31T21:31:41
328,332,461
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
from django.shortcuts import render from django.views import View # Create your views here. class HomeView(View): """ Defining Home Page View """ template_name = "landing/index.html" def get(self, request): """ Defining the GET method oon Home Page View """ return render(request, templa...
[ "sandipan.das898@gmail.com" ]
sandipan.das898@gmail.com
c18d4509b54afcc01aad8058748e79cde649f324
8de6b19856ad0951489bcaaa23ea6e10996c7f8d
/fizzbuzz.py
2b69869321e6ce91eea4fe4aa111ad0cbcb21d65
[ "MIT" ]
permissive
incolumepy-cursos/poop
2a59fec0fce283e7c62ccae6dcba7261b7f7ed87
e4ac26b8d2a8c263a93fd9642fab52aafda53d80
refs/heads/main
2023-03-27T21:33:06.719286
2021-04-03T16:56:02
2021-04-03T16:56:02
351,632,043
0
0
MIT
2021-03-26T01:59:11
2021-03-26T01:59:10
null
UTF-8
Python
false
false
2,074
py
# smalltalk infected fizzbuzz version from collections import deque from forbiddenfruit import curse def if_true(self, block): # simulate blocks using functions self and block() # close circuit when object is truthy return self def if_false(self, block): # simulate blocks using functions no...
[ "cassiobotaro@gmail.com" ]
cassiobotaro@gmail.com
d00756139719b251cbd67d826b9f5a9d26cfe9aa
cdfd0e69a5f81fbc9480fcdae85f195797eced49
/store/templatetags/cart.py
edbde375cf7de9bda9d1a4690454ee7317580d5a
[]
no_license
anupjungkarki/Eshop-Project-In-Django
00c0e77ac79e3ad13a951719bb5d7d007a4ee0ec
e1445e15d376def379f20e50a10205647d79026c
refs/heads/master
2023-01-14T12:10:28.443359
2020-11-24T11:17:49
2020-11-24T11:17:49
315,603,204
1
0
null
null
null
null
UTF-8
Python
false
false
753
py
from django import template register = template.Library() # Use of Filter @register.filter(name='is_in_cart') def is_in_cart(product, cart): keys = cart.keys() for id in keys: if int(id) == product.id: return True return False @register.filter(name='cart_quantity') def cart_quantity...
[ "anupkarki2012@gmail.com" ]
anupkarki2012@gmail.com
b052c9c007ed0f4575616c243987ec5565525afa
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/458/458.poor-pigs.233532116.Accepted.leetcode.py
c82be47e46aa5c305e7d39a7a5c28fcac50aad85
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
220
py
from math import log, ceil class Solution(object): def poorPigs(self, buckets, minutesToDie, minutesToTest): rounds = minutesToTest // minutesToDie return int(ceil(log(buckets) // log(rounds + 1)))
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
4fa4c58637f6b155faf1a21f2bbf7c3df8421796
86fc644c327a8d6ea66fd045d94c7733c22df48c
/scripts/managed_cpe_services/customer/single_cpe_site/single_cpe_site_services/lan/switches/vlan/service_customization.py
0aefed9f8e5c101bcf571006953b92b7b2c8013a
[]
no_license
lucabrasi83/anutacpedeployment
bfe703657fbcf0375c92bcbe7560051817f1a526
96de3a4fd4adbbc0d443620f0c53f397823a1cad
refs/heads/master
2021-09-24T16:44:05.305313
2018-10-12T02:41:18
2018-10-12T02:41:18
95,190,459
0
0
null
null
null
null
UTF-8
Python
false
false
4,979
py
# # This computer program is the confidential information and proprietary trade # secret of Anuta Networks, Inc. Possessions and use of this program must # conform strictly to the license agreement between the user and # Anuta Networks, Inc., and receipt or possession does not convey any rights # to divulge, reproduce,...
[ "sebastien.pouplin@tatacommunications.com" ]
sebastien.pouplin@tatacommunications.com
b6eb339f28b7a108352ff5513b214bf00503b35a
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_thwacks.py
33dacda03f2cfd3b1bc002c12760d507191c50c8
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
#calss header class _THWACKS(): def __init__(self,): self.name = "THWACKS" self.definitions = thwack self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['thwack']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
4c3040efe710b9369d66dc92db6caf602906b56b
4efad5834a063b959f2d8e36ee35f64cd8fd67a2
/Calculator/calc.py
338804970abfb5954fc6c6456b7a5508258acb3e
[]
no_license
DX9807/General-Practice-Code
e99133f5773754bad0aaf7820a5e1fdd2b4d5794
efd79bdaf8756e35258b5b94eb4f9fe0d73ac361
refs/heads/master
2020-05-23T11:46:15.418345
2019-05-15T03:38:24
2019-05-15T03:38:24
186,743,585
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
# -*- coding: utf-8 -*- from tkinter import * from math import * def evaluate(event): res.configure(text = "Result: " + str(eval(entry.get()))) w = Tk() w.title('Calculator') Label(w, text="Your Expression:").pack() entry = Entry(w) entry.bind("<Return>", evaluate) entry.pack() res = Label(w) res.pack() w.mainloop(...
[ "sub.yadav19@gmail.com" ]
sub.yadav19@gmail.com
5c8485a5bc3a860a119d61a8cbd8642212ad959c
03f9b8bdea312636afb4df3737b55cb0cc4b21ff
/MyCalendarIII.py
6e43a4ad8b174489a88cdb656b06e7c0bf6d1da3
[]
no_license
ellinx/LC-python
f29dd17bbe15407ba0d06ad68386efdc9a343b56
9190d3d178f1733aa226973757ee7e045b7bab00
refs/heads/master
2021-06-01T15:21:24.379811
2020-10-29T04:37:07
2020-10-29T04:37:07
132,704,788
1
1
null
2019-05-15T03:26:11
2018-05-09T05:13:26
Python
UTF-8
Python
false
false
2,459
py
""" Implement a MyCalendarThree class to store your events. A new event can always be added. Your class will have one method, book(int start, int end). Formally, this represents a booking on the half open interval [start, end), the range of real numbers x such that start <= x < end. A K-booking happens when K events ...
[ "ellin.xll@gmail.com" ]
ellin.xll@gmail.com
0269176044b3fe706b1e0ca8440f7c035674c75d
2a4c0528a078e6dc9306c0e5b1afc32c1c633bdf
/pabi_track_change/models/asset.py
e429a06164aafbd79b543a5a58b8e7071895f0f7
[]
no_license
newtratip/pb2_addons
329a1c7a9e1bc2fe689a370c8e0a1c744c3944ed
8328bb9d3803c04a58593da3fe0e643ee4988732
refs/heads/master
2020-12-02T17:47:42.079259
2017-07-31T09:33:41
2017-07-31T09:33:41
96,419,366
0
0
null
2017-07-06T10:37:03
2017-07-06T10:37:03
null
UTF-8
Python
false
false
2,134
py
# -*- coding: utf-8 -*- from openerp import models, fields class AccountAsset(models.Model): _inherit = 'account.asset' name = fields.Char(track_visibility='onchange') code = fields.Char(track_visibility='onchange') code2 = fields.Char(track_visibility='onchange') parent_id = fields.Many2one(trac...
[ "kittiu@gmail.com" ]
kittiu@gmail.com
8a2686c511fb30c9a613a925374a9a4ced4278ab
cc21a6071fde01a99f252097209a27854cbf149d
/api/views/account.py
ebb5230b8ea3e9d95fded470decaa5e53159da55
[]
no_license
faker-DemoKing/ptdevops
6939c9106f307602defad79db1d143b7aae927b9
54e00ca01925ae9ef6f3235cb0e481e679bdd79f
refs/heads/master
2023-02-23T02:48:51.301269
2020-07-12T08:00:31
2020-07-12T08:00:31
231,424,558
0
0
null
null
null
null
UTF-8
Python
false
false
3,068
py
# -*- coding:utf-8 -*- import datetime import jwt import uuid import time from flask import abort from flask import current_app from flask import request from flask import session from flask_login import login_user, logout_user from api.models import User, Role from api.resource import APIView from api.libs import h...
[ "you@example.com" ]
you@example.com
7f133d76c321fa4f16e06bd2e0dc664c92d5e192
8140a910c709030d9c5394bc2c9ba5c30eda6063
/34-day/8堵塞进程池创建多进程.py
af22b37587acfe1b43f28d38e88de33fd756d6b3
[]
no_license
liuruitao/2mouth
417139ecfd58d0220a95b78967247c4795ebc022
854e9322cea73462bb2fe08b3bdf6c33b73a40cd
refs/heads/master
2020-03-13T10:49:54.016344
2018-05-25T04:25:37
2018-05-25T04:25:37
131,090,951
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
from multiprocessing import Pool import os,time #子进程 def work(msg): for i in range(3): time.sleep(1) print('略略略略略pid=%d'%os.getpid()) p = Pool(1) #主进程 for i in range(1,6): print(i) p.apply(work,(i,)) p.close() #关闭池子 p.join() #等待p中所有子进程执行完,必须放在close语句后
[ "2590011467@qq.com" ]
2590011467@qq.com
7f9e577c677e2cc873547a311a56bb700869ac08
29fc11636bf5053feb113ad837ec42ffe3f09bfd
/Terra_2/Test_17/Test_17.py
76fe6850638e9694cfd48d93bb37057699a34407
[]
no_license
deyh2020/Bugs4Q
8446db4a8efcf3541ba740b7d658b6812d56fe3e
b6e306e12bd1c5fdec126655ad008c386340ab57
refs/heads/master
2023-05-31T03:41:28.576877
2021-06-17T15:08:03
2021-06-17T15:08:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,397
py
# Importing needed libraries from qiskit import * from qiskit.mapper import Layout import numpy as np import matplotlib as mp import matplotlib.pyplot as plt from scipy.optimize import curve_fit # Enable use of real device IBMQ.load_accounts() backend_exp = IBMQ.get_backend('ibmq_16_melbourne') for u in range(0,1): #...
[ "zpz2393247079@gmail.com" ]
zpz2393247079@gmail.com
dfdd6e32ff248a403f2c0a76add35000a470baec
daeb851843a55ca3f34008765ebf8ff18c0d1ecd
/testcase/count.py
4bcb93623d73e3b91c4309cfd4a5a4fe8a39aba1
[]
no_license
Cola1995/Py
f5066df0ef5b60183f5e5e2ec6b77b2be536e7f8
bab82d8f5aae18e612dbe9bcd38f0d4260463b16
refs/heads/master
2020-04-08T06:30:36.212074
2018-12-27T06:14:53
2018-12-27T06:14:53
159,099,507
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
class Count(): def __init__(self,a,b): self.a=int(a) self.b=int(b) def add(self): return self.a+self.b def sub(self): return self.a-self.b
[ "991571566@qq.com" ]
991571566@qq.com
8c58fc611fa2b6963feddec096fc3daaea60db18
5eca83a3a019467c8e5fafe5f2c2f6dc946a0e28
/solutions/day_48.py
76e210977c2ebe31b8062f2e5a1c45d4732ee400
[]
no_license
Kontowicz/Daily-Interview-Pro
4c821b6afc9451c613f06e3850072e10d7d6a7d4
3bbe26430b6d004821477e14d37debe5d4a6d518
refs/heads/master
2020-06-25T00:37:04.138548
2020-02-28T16:43:30
2020-02-28T16:43:30
199,140,908
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
def threeSum(nums): set = [] result = [] for i, item in enumerate(nums): for j, value in enumerate(nums): if i <= j: continue if -(item + value) in set: result.append([-(item + value), item, value]) else: set.appen...
[ "przemyslowiec@gmail.com" ]
przemyslowiec@gmail.com
e9802599baf0a78324272736724668e48bd8117c
ad5b72656f0da99443003984c1e646cb6b3e67ea
/tests/layer_tests/tensorflow_tests/test_tf_Select.py
209464d5fa2f986a1cb3b36417b48c2efb3d5d19
[ "Apache-2.0" ]
permissive
novakale/openvino
9dfc89f2bc7ee0c9b4d899b4086d262f9205c4ae
544c1acd2be086c35e9f84a7b4359439515a0892
refs/heads/master
2022-12-31T08:04:48.124183
2022-12-16T09:05:34
2022-12-16T09:05:34
569,671,261
0
0
null
null
null
null
UTF-8
Python
false
false
2,334
py
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import tensorflow as tf from common.tf_layer_test_class import CommonTFLayerTest class TestSelect(CommonTFLayerTest): def _prepare_input(self, inputs_info): assert 'cond' in inputs_info, "Te...
[ "noreply@github.com" ]
novakale.noreply@github.com
f8abca3621fabcd2c3e8ae480e216266dc0013ac
c7f82dd826556a1e6e1dbbfd6f422f4b71a582e5
/coordinator/migrations/0010_task_answer.py
8bf30e19d903e81b7d26f3bf2c37a5fbd9435036
[]
no_license
jabykuniyil/SPS
0c88eec3ae7ba4aadac39ae741abbcd224be0f78
78bd2151ebb6f4e0ecae5858985d6142dfa34339
refs/heads/main
2023-04-25T05:14:55.936405
2021-05-11T02:51:18
2021-05-11T02:51:18
352,079,044
1
0
null
2021-05-11T02:51:19
2021-03-27T13:25:10
HTML
UTF-8
Python
false
false
394
py
# Generated by Django 3.1.7 on 2021-04-02 13:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('coordinator', '0009_auto_20210331_0939'), ] operations = [ migrations.AddField( model_name='task', name='answer', ...
[ "mohdjabiran112@gmail.com" ]
mohdjabiran112@gmail.com
064d4b82a9e356abd10e43abe3af041a7343ca51
9f9f4280a02f451776ea08365a3f119448025c25
/plans/hsppw/lcut_hsp-l_030_pwde_mlpr_hs.py
719e108eeea27e4ed2fefbaf64a6d946c18576cf
[ "BSD-2-Clause" ]
permissive
dbis-uibk/hit-prediction-code
6b7effb2313d2499f49b2b14dd95ae7545299291
c95be2cdedfcd5d5c27d0186f4c801d9be475389
refs/heads/master
2023-02-04T16:07:24.118915
2022-09-22T12:49:50
2022-09-22T12:49:50
226,829,436
2
2
null
null
null
null
UTF-8
Python
false
false
2,157
py
"""Plan using all features.""" import os.path from dbispipeline.evaluators import CvEpochEvaluator from sklearn.neural_network import MLPRegressor from sklearn.pipeline import Pipeline from sklearn.preprocessing import MinMaxScaler import hit_prediction_code.common as common from hit_prediction_code.dataloaders impor...
[ "mikevo-uibk@famv.net" ]
mikevo-uibk@famv.net
7feea9a9aa23b577292caba64cbf92772ea3efd9
dbe7e1d9fe2457c26f83095d941e4392e7d30f8c
/django_dashboard/api/file_uploadmixin/mixins.py
1f81e9322b2ad581d2e774323c84718e28ede401
[ "MIT" ]
permissive
keepexploring/smartbiogas
51e124735ec04bc6b87a8ac75c66c83de6865001
ca663435b05666113e3c0cb55e6f087c61497208
refs/heads/master
2022-12-12T10:42:37.412038
2018-07-18T15:29:04
2018-07-18T15:29:04
111,402,799
0
0
MIT
2022-12-08T00:56:54
2017-11-20T11:39:05
JavaScript
UTF-8
Python
false
false
504
py
class MultipartResource(object): def deserialize(self, request, data, format=None): if not format: format = request.META.get('CONTENT_TYPE', 'application/json') if format == 'application/x-www-form-urlencoded': return request.POST if format.startswith('multipart'): ...
[ "joel.c@scene.community" ]
joel.c@scene.community
580802df8cf0d97cbc8ed7db052e85c3bb7a9ebc
88ed6ed99589f7fb8e49aeb6c15bf0d51fe14a01
/048_rotate-image.py
c59926d8aca23517a63ae5b816afe19165f99d58
[]
no_license
ryeLearnMore/LeetCode
3e97becb06ca2cf4ec15c43f77447b6ac2a061c6
04ec1eb720474a87a2995938743f05e7ad5e66e3
refs/heads/master
2020-04-07T19:02:43.171691
2019-06-23T15:09:19
2019-06-23T15:09:19
158,634,176
0
0
null
null
null
null
UTF-8
Python
false
false
1,045
py
#!/usr/bin/env python #coding:utf-8 #@author: rye #@time: 2019/3/1 20:11 # 此题没想出来 ''' tips: 1. 这种题就属于想不出来就真不会做,看一眼答案就知道方法了。 2. temp = x x = y == x, y = y, x 这种交换变量不需要temp,可以直接交换,算是python特有吧 y = temp ''' class Solution(object): def rotate(self, matrix): """ :type mat...
[ "noreply@github.com" ]
ryeLearnMore.noreply@github.com
560b61e15d96f3a36f5534cc85943cfa6a941de4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03137/s736209100.py
96b79c1420985c72762d81a816292f29b0639806
[]
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
220
py
n, m = map(int,input().split()) X = list(map(int,input().split())) X.sort() dist = [] for i in range(m-1): dist.append(X[i+1]-X[i]) dist.sort() ans = 0 for i in range(max(m-n,0)): ans += dist[i] print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8808fc36608a3b4e5f17bafa2899d90877aea194
d309503377a3e76c42e8155f8c8597fb07abc914
/store/migrations/0005_alter_customer_user.py
ef6551e894c961627ecb05330d2e81820eb99cd5
[]
no_license
Ibrahimkhalill/Online-Shopping-System
9fc6152e8406d83793e2e093926496952518addb
08e7f17e59f0e8b69c885248ccd35e69f9b37b5f
refs/heads/main
2023-06-01T21:55:57.774047
2021-06-14T14:06:01
2021-06-14T14:06:01
376,842,685
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
# Generated by Django 3.2 on 2021-04-24 06:38 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), ('store', '0004_auto_2021042...
[ "you@example.com" ]
you@example.com
0ee2a045669d8e0a892f4476760d4beb8b7e41ae
73b5d880fa06943c20ff0a9aee9d0c1d1eeebe10
/tinyos-2.x-contrib/wsu/tools/simx/simx/test/act/MViz/.svn/text-base/harness.py.svn-base
a109e67b6b1ec78f803d8639d4927deb334fab0f
[]
no_license
x3ro/tinyos-legacy
101d19f9e639f5a9d59d3edd4ed04b1f53221e63
cdc0e7ba1cac505fcace33b974b2e0aca1ccc56a
refs/heads/master
2021-01-16T19:20:21.744228
2015-06-30T20:23:05
2015-06-30T20:23:05
38,358,728
0
1
null
null
null
null
UTF-8
Python
false
false
3,353
# # Sample file for TReact harness. # # This assumes that the TOSSIM module has been built with sim-sf, # TossimSync and PseudoSensor support following the convention where # the directory (or link) "simx" refers to the top-level of the SimX # structure. If this is not true, then this file must be appropriately # custo...
[ "lucas@x3ro.de" ]
lucas@x3ro.de
f3a3923b7c9d13fdf70dab59131571c25daa4fee
8fd28b248511f42ad8732ca1e574aada33908376
/tools/data/activitynet/tsn_feature_extraction.py
377c6cd08883fe7ad8c654a1882828eba750e622
[ "Apache-2.0" ]
permissive
vt-vl-lab/video-data-aug
28bd175535cab1444055502389c8f5d7d75e4bd2
01667cdbd1b952f2510af3422beeeb76e0d9e15a
refs/heads/main
2023-09-01T02:36:40.034893
2021-07-21T01:31:42
2021-07-21T01:31:42
352,920,339
29
6
Apache-2.0
2021-07-21T01:29:36
2021-03-30T08:06:54
Jupyter Notebook
UTF-8
Python
false
false
4,997
py
import argparse import os.path as osp import pickle import mmcv import numpy as np import torch from mmaction.datasets.pipelines import Compose from mmaction.models import build_model def parse_args(): parser = argparse.ArgumentParser(description='Extract TSN Feature') parser.add_argument('--data-prefix', d...
[ "zouyuliang123@gmail.com" ]
zouyuliang123@gmail.com
c6ceb8e9e1eb4840e1499580e913a35506efceea
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5634697451274240_1/Python/DUPI/pancake.py
aee02c393f84367804ba225bff7d3e8a46e7950f
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,012
py
import os os.chdir('/Users/mac/OneDrive/competitions/codejam 2016/pancake') ##extra_need def flip(s): new_s = '' for c in s[::-1]: if c == '-': new_s += '+' else: new_s += '-' return new_s def getT(s): if len(s) == 0: return 0 if (s[-1] == '+'): ...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
dc1821661c226c9f7e7709ebe1ad750feedb1743
589b6d5553cf51f95053fb3247eae16ec037fdb3
/bsidesns/api/email.py
2f32177806e43eec6962f1d03a9b6c5bc59ef12d
[ "BSD-2-Clause" ]
permissive
bsidesns/backend
97b6cd95236574fce3453a6c500b39ca93d55470
ba8173f2b81210a561b203973eb48d5c124870b1
refs/heads/master
2020-12-08T07:00:33.338692
2020-09-13T10:23:39
2020-09-13T10:23:39
232,920,190
0
3
BSD-2-Clause
2020-09-13T10:23:40
2020-01-09T22:42:26
Python
UTF-8
Python
false
false
2,121
py
from email.mime.text import MIMEText from flask import current_app from flask_jwt_extended import get_jwt_identity from flask_smorest import Blueprint, abort from freenit.api.methodviews import ProtectedMethodView from ..models.email import Email from ..models.event import Event from ..models.talk import Talk from .....
[ "meka@tilda.center" ]
meka@tilda.center
0c90b6aeeb0695aad1dee415b816e6578ee10256
ac10761e842fbde677db3c78a74400845e08904a
/lib/python/classytags/utils.py
5f1fca2d0efcf1693b662826350962234dd0ec77
[]
no_license
mozilla/moztrap-vendor-lib
6d7704394ef1db72ee0514eefc25d9fcb191c4ca
d0007ae11fad91157b99feb985d19b16170fcb09
refs/heads/master
2023-07-03T17:19:42.477593
2019-03-29T15:55:04
2019-03-29T15:55:04
2,573,756
1
5
null
2020-06-08T14:44:16
2011-10-14T01:59:31
Python
UTF-8
Python
false
false
1,914
py
from copy import copy import re class NULL: """ Internal type to differentiate between None and No-Input """ class TemplateConstant(object): """ A 'constant' internal template variable which basically allows 'resolving' returning it's initial value """ def __init__(self, value): ...
[ "carl@oddbird.net" ]
carl@oddbird.net
cfafc275f648155b4e71aba1353a25676b1219f2
ef11cb7a2ee550e4fb95be46cd4d67d6cc230787
/python/Monthly/Jan2021/test/test_generatedarraymax.py
5ba47b789da01d6c4140d4aa834fa9d8f883585f
[]
no_license
Hilldrupca/LeetCode
44b32161743ba982ea5e3fe593ff8a27c96e9350
c6d600bc74afd14e00d4f0ffed40696192b229c3
refs/heads/master
2023-03-31T22:21:17.967663
2021-04-07T16:18:17
2021-04-07T16:18:17
288,544,724
0
0
null
null
null
null
UTF-8
Python
false
false
635
py
import unittest, sys sys.path.append('..') from generatedarraymax import Solution class TestGeneratedArrayMax(unittest.TestCase): def setUp(self): self.s = Solution() def test_get_maximum_generated(self): self.assertEqual(self.s.getMaximumGenerated(0), 0) ...
[ "hilldrupca@gmail.com" ]
hilldrupca@gmail.com
57ca23a00332ec85ac7d2f7703791c659beb2268
8a914e1deebfd4dc72d339a22ab1dfba90ce8c9d
/tagging/migrations/0001_initial.py
374101e3d198ca3d30ec535dce4b4cfb59ab03bb
[ "BSD-3-Clause", "MIT" ]
permissive
Fantomas42/django-tagging
451a14e0be792536087d22106f0d03f574438cd4
f3622e62112c3ecc89eabb2512b1b3dd2e5e6ca0
refs/heads/develop
2023-01-22T22:47:40.984435
2020-03-06T18:00:00
2020-03-06T18:00:00
15,029,579
78
74
NOASSERTION
2023-01-15T15:40:38
2013-12-08T19:16:36
Python
UTF-8
Python
false
false
1,844
py
from django.db import migrations from django.db import models class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0001_initial'), ] operations = [ migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField( ...
[ "fantomas42@gmail.com" ]
fantomas42@gmail.com
e193ef894df3ec750366febd0ae92963d6695551
0ab2922da69fd3a92f56caba43df72b564a4aa64
/wharfci/views.py
146904690125cb9f09565e3bc50220d8d5a9904b
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
honza/wharf-ci
056af31de41903475fb074a55c6ac51a7ba3600c
9d49c4684509c48948a6f692975e93000651d181
refs/heads/master
2021-01-22T11:10:41.377096
2013-08-05T14:17:40
2013-08-05T14:17:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
from django.template import RequestContext from django.shortcuts import render_to_response, redirect from django.core.urlresolvers import reverse def index(request): ctx = {} # show dashboard if logged in if request.user.is_authenticated(): return redirect(reverse('dashboard')) return render_to...
[ "ejhazlett@gmail.com" ]
ejhazlett@gmail.com
a74de07e1bc6a998e4ead1f98a61c65156f4edd2
aa27e08efbb3044de42a24f744fde8fdf37044fa
/replace-all-digits-with-characters-2.py
08cb83ab6516f780241e767bb3b918f2a0092588
[]
no_license
rpivo/leetcode-answers
9a4bddec259139c9459c00d888effdbb35eacada
c7951344b9ce40ef092f4fe3ec34463430ba899c
refs/heads/main
2021-12-18T06:53:47.288559
2021-12-10T22:36:54
2021-12-10T22:36:54
194,540,003
0
0
null
null
null
null
UTF-8
Python
false
false
1,448
py
# define class Solution class Solution: # define function replaceDigits, which takes in the class instance (self), string s, and # returns a string. def replaceDigits(self, s: str) -> str: # create variable alpha, which is a list of all alphabetical characters in order. alpha = list("abcdefg...
[ "ryanpivovar@gmail.com" ]
ryanpivovar@gmail.com
55535f770b9b1f8648454121ab50b2e5e107e8f7
a394b1053f018ff8be63221c61682df03af4937b
/osf/migrations/0081_merge_20180212_0949.py
ddcf9023e719c00781ea8d46f71fbbd719d701be
[ "Apache-2.0", "LGPL-2.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "MIT", "AGPL-3.0-only", "LicenseRef-scancode-unknown-license-reference", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
RCOSDP/RDM-osf.io
81b11d9511f6248ec9bccb6c586b54a58429e1e7
5d632eb6d4566d7d31cd8d6b40d1bc93c60ddf5e
refs/heads/develop
2023-09-01T09:10:17.297444
2023-08-28T04:59:04
2023-08-28T04:59:04
123,298,542
12
24
Apache-2.0
2023-09-12T08:58:28
2018-02-28T14:46:05
Python
UTF-8
Python
false
false
327
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-02-12 15:49 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('osf', '0080_ensure_schemas'), ('osf', '0079_merge_20180202_1206'), ] operations = [...
[ "sloria1@gmail.com" ]
sloria1@gmail.com