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
c7a0721d58cbf5c912ecb520d4d746139ec8a60a
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/network/v20200701/get_bastion_host.py
97024434195d235279ff5c36295a9cc5ca2d5eb0
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,724
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
[ "noreply@github.com" ]
MisinformedDNA.noreply@github.com
053b609d1a395c56e50fcf1d0c19e4b36dcd1fa4
1729d732d2c8496f84e456cc897c71dd44bb671f
/pos_juice_bars/models/pos_config.py
f0940e4ac3f357ee1f5bf7c12d3224bba78967b8
[]
no_license
Guobower/vapelife10
aa3f90918fa70da72272be11054041afbbcc069c
f0f7c4545f8fb7bc91c06c7ec6e900e4b289ac5a
refs/heads/master
2020-03-29T04:44:30.628377
2018-02-01T18:02:26
2018-02-01T18:02:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
from openerp import models, fields, api, _ from odoo.tools import float_is_zero class PosConfig(models.Model): _inherit = "pos.config" manufacturing_picking_type_id = fields.Many2one('stock.picking.type','Manufacturing Picking Type',domain=[('code','=','mrp_operation')])
[ "shivam1111@gmail.com" ]
shivam1111@gmail.com
82cea48b4ae65b924017268ae2661826590ce235
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_185/ch23_2019_09_03_02_03_52_878468.py
c6f71690aec6afb7d3060a367744c15a57dff66e
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
def verifica_idade(idade): if idade < 18: resposta = "Não está liberado" elif idade < 21: resposta = "Liberado BRASIL" else: resposta = "Liberado EUA e BRASIL" return resposta
[ "you@example.com" ]
you@example.com
8b70a9b4cb8bab0fec3d296d5d9b044430e23adc
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/artificial/transf_Fisher/trend_PolyTrend/cycle_0/ar_12/test_artificial_1024_Fisher_PolyTrend_0_12_100.py
bd7f714b00581d1a4559729eab72267ee3dbf5d1
[ "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
269
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 0, transform = "Fisher", sigma = 0.0, exog_count = 100, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
87d20feb4c3526253e20c4ab938422ae96f7b1af
d6f3a0e9ce53f122f697ab5527dc7f69abd71e7c
/env/bin/wheel3
3adbd51aba8863a702a656f91c01ef4a72d81919
[]
no_license
Beketx/Django
556fa94fc184f33481dfd836b50a7101cad808f7
4dfaf0502c9a7519549091d2753996f3560ab630
refs/heads/master
2021-05-20T08:57:13.549873
2020-04-10T11:44:15
2020-04-10T11:44:15
252,209,788
0
0
null
null
null
null
UTF-8
Python
false
false
247
#!/Users/beket/Desktop/rest_api_webdevblog/env/bin/python # -*- coding: utf-8 -*- import re import sys from wheel.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "beketsk@gmail.com" ]
beketsk@gmail.com
40e41af2162034b24d7ae07f28382ff99266139e
4bfea484f8aff142691e6dc1815b536b830046f5
/utils/metric.py
714717f7137a243d0af6cce3e94ce3e2cc740293
[]
no_license
jionie/Bengaliai
0659ed1263870d0780da281a3bebea5a1334e3d2
02b580dbb75f443d78c0f5bd6e4ff74e3cbbba71
refs/heads/master
2022-04-09T09:40:50.074119
2020-03-16T13:18:35
2020-03-16T13:18:35
241,447,136
0
0
null
null
null
null
UTF-8
Python
false
false
1,178
py
import numpy as np import scipy as sp import sklearn.metrics def metric(y_pred, y_true): return sklearn.metrics.recall_score(y_true, y_pred, average='macro') def decode(prediction, class_map): p0, p1, p2, p3 = prediction[0], prediction[1], prediction[2], prediction[3] for b in range(p0.shape[0])...
[ "jionie@sjtu.edu.cn" ]
jionie@sjtu.edu.cn
249d557019f9c977dde1bdbeced66a79e9dd28b5
fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd
/ash/host/DEPS
65db98d989e949c49d01d456585a9d917245a268
[ "BSD-3-Clause" ]
permissive
wzyy2/chromium-browser
2644b0daf58f8b3caee8a6c09a2b448b2dfe059c
eb905f00a0f7e141e8d6c89be8fb26192a88c4b7
refs/heads/master
2022-11-23T20:25:08.120045
2018-01-16T06:41:26
2018-01-16T06:41:26
117,618,467
3
2
BSD-3-Clause
2022-11-20T22:03:57
2018-01-16T02:09:10
null
UTF-8
Python
false
false
444
include_rules = [ "-ash", "+ash/host", "+ash/ime", "+ash/ash_export.h", "+ash/public/cpp/ash_switches.h", ] specific_include_rules = { "ash_window_tree_host.cc": [ "+ash/shell_port.h", ], "ash_window_tree_host_platform.cc": [ "+ash/shell.h", "+ash/shell_delegate.h", # AshWindowTreeHostP...
[ "jacob-chen@iotwrt.com" ]
jacob-chen@iotwrt.com
4cba14dafb3f8e73ec5c4f10427ca5fc26faf1f7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03838/s188025848.py
521c899ee6f16e16e6151de74753d16229de1fb0
[]
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
238
py
x,y=map(int,input().split()) if y<0<x or x<0<y: print(abs(abs(y)-abs(x))+1) elif x<y and x!=0: print(y-x) elif y<x and x!=0 and y!=0: print(x-y+2) elif x<y and x==0: print(y-x) elif y<x and x==0 or y==0: print(x-y+1)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
50a6bcc085664649f12f111bf9ab00d0c3e06ccd
fe12ea3373d39c21fcbf9d8e3e8593a082f7fdb0
/Advanced_python_programs/prog20.2.py
063bd358d837555afa436aed7f7d441ac90fadae
[]
no_license
venkatadri123/Python_Programs
44c0d9d36ff3e77e73e16c02617cf08accd2aaf2
b0910f8cc0e2689479b8631ec98d4a2c75c163a7
refs/heads/master
2022-03-16T09:30:55.629011
2022-02-12T06:09:47
2022-02-12T06:09:47
219,493,388
0
1
null
null
null
null
UTF-8
Python
false
false
320
py
# (20.2) Using try block and except ,finally block. try: print('Open the file') a,b=[int(i) for i in input('enter two numbers:').split()] c=a/b except ZeroDivisionError: print('division by 0 happent') print('please do not input 0') else: print('result=',c) finally: print('close all files')
[ "venkatadrimanubolu@gmail.com" ]
venkatadrimanubolu@gmail.com
529aa158dff902692ff3b68680505c57ce900ad5
d998c5fbbd02c1666862b8996639b8f34604a6eb
/dirigible/fts/tests/test_2616_RootPageIsDashboard.py
b1f571e1051ede8a8280a44188a16b6ed1bec830
[ "MIT" ]
permissive
randfb/dirigible-spreadsheet
668f8f341fd48add69937d9dc41353360ed4f08c
c771e9a391708f3b219248bf9974e05b1582fdd0
refs/heads/master
2020-04-14T02:49:44.123713
2017-04-13T06:51:44
2017-04-13T06:51:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
# Copyright (c) 2010 Resolver Systems Ltd. # All Rights Reserved # from urlparse import urlparse, urlunparse from functionaltest import FunctionalTest class Test_2616_RootPageIsDashboard(FunctionalTest): # The bulk of this was tested by changing the existing functional tests to reflect the new # behaviour;...
[ "hjwp2@cantab.net" ]
hjwp2@cantab.net
2771dd2c0acf441652c77061256c2eef3a9b205b
e12385c85e41d98bc3104f3e4dde22025a0b6365
/umqtt/simple.py
8a0aa53dd791ce5f1bc9b44985c32b937667cfb1
[]
no_license
mchobby/esp8266-upy
6ee046856ec03c900ebde594967dd50c5f0a8e21
75184da49e8578315a26bc42d9c3816ae5d5afe8
refs/heads/master
2023-08-04T15:11:03.031121
2023-07-27T15:43:08
2023-07-27T15:43:08
72,998,023
47
30
null
2021-06-20T16:12:59
2016-11-06T15:00:57
Python
UTF-8
Python
false
false
6,357
py
import usocket as socket import ustruct as struct from ubinascii import hexlify class MQTTException(Exception): pass class MQTTClient: def __init__(self, client_id, server, port=0, user=None, password=None, keepalive=0, ssl=False, ssl_params={}): if port == 0: port = 8883...
[ "info@mchobby.be" ]
info@mchobby.be
e73b9383df67e34ea872209416bdfae19c452254
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p00000/s788082370.py
4f1380f6d0ee21220388b36746cf86d9751c0762
[]
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
170
py
import sys def solve(): for i in range(1, 10): for j in range(1, 10): print('{}x{}={}'.format(i, j, i*j)) if __name__ == '__main__': solve()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
399caec1db578a1ae0118e24eb1763918786b7d4
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_337/ch35_2020_03_23_19_14_04_682601.py
62e78fe3e6b31214a8247878c3b2103bb1f3c60a
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
a = int(input('Digite um numero: ') b = a while (a != 0): a = int(input('digite um numero ')) b = b + a if (a == 0): print (b)
[ "you@example.com" ]
you@example.com
9ed84ce7368d5359d224f7bba96aa45fe05633f5
27e2b4b14d8217fcad3b57ef8918cb857931d89f
/learning/modules/affine_2d.py
5685beeb2ef496f76e31f6c402cc8ab27cc41a24
[ "BSD-2-Clause" ]
permissive
jhu-lcsr/good_robot
205b31e9a2399032488ffa094d9f1e0d07592aa4
61217d65f040d536e54804150ce8abcf97343410
refs/heads/master
2022-03-31T23:49:04.958796
2022-03-25T18:14:14
2022-03-25T18:14:14
198,902,668
95
24
BSD-2-Clause
2022-02-18T20:45:13
2019-07-25T21:21:41
Jupyter Notebook
UTF-8
Python
false
false
4,117
py
import numpy as np import torch from torch import nn as nn from torch.nn import functional as F from learning.inputs.common import np_to_tensor from utils.simple_profiler import SimpleProfiler PROFILE = False class Affine2D(nn.Module): def __init__(self): super(Affine2D, self).__init__() self.p...
[ "elias.stengel@gmail.com" ]
elias.stengel@gmail.com
4af37fe0fa21b90570d24cb03d779ef3c97dbf0b
b424a13f032d5a607e6df4dd78bc47ad1d06a147
/pyvdp/mlc/locationupdate/locations.py
44487ea851cdb437e6afc084836d0a12aad1b185
[]
no_license
EnjoyLifeFund/macSierra-py36-pkgs
1e7eeb9b55415da6eb12465d67730d76e9cc619a
0ac677fbbfa7b6d8c527fe2c759ba05117b07fd2
refs/heads/master
2021-01-20T10:23:50.044019
2017-09-05T02:53:26
2017-09-05T02:53:26
90,333,987
0
1
null
null
null
null
UTF-8
Python
false
false
1,504
py
from pyvdp.mlc.dispatcher import VisaMobileLocationConfirmationDispatcher def send(data): """Submits MLC Location Update request. :param pyvdp.mlc.locationupdate.LocationsModel data: **Required**. Instance of MLC Location Update model. :return: response from VDP. **Usage:** ...
[ "raliclo@gmail.com" ]
raliclo@gmail.com
c8a1296dbba75ff665580615225770217cedb900
a3c8d2e898424a69d8bc42e73880a606643e409f
/modify_les_houches.py
188b0f770d81cd8bb385eb51587e416a8f11163b
[]
no_license
brendlin/PowhegHelpers
0d59a44db8cb7c98abe76f6fe6183b98de471b99
24d5b926d0755d46775f523049e6e154d8b8514c
refs/heads/master
2020-08-16T12:04:07.511098
2016-07-06T15:01:57
2016-07-06T15:01:57
215,499,892
0
0
null
null
null
null
UTF-8
Python
false
false
2,463
py
#!/usr/bin/env python import os import shlex def main(options,args) : base_file = open(options.file) fs = dict() weights = dict() variations = ['_1_1','_0.5_0.5','_1_0.5','_0.5_1','_1_2','_2_1','_2_2'] for v in variations : if '%s%s'%(options.outdir,v) not in os.listdir('.') : o...
[ "kurt.brendlinger@cern.ch" ]
kurt.brendlinger@cern.ch
0221dbcb162cf87c21c8db91e9c8e1986c2eee65
d7e41697c8d82f5ef3f9555af7d3d204803f0a99
/test/mitmproxy/addons/test_intercept.py
c3252db4a0df67bb350bea6d46eb93b73632904e
[ "MIT" ]
permissive
shitongzhu/mitmproxy
aba9681765b71c385b2b20fda303c71090a04376
08f35286d3af9ad39046b0b3663913701086be9a
refs/heads/master
2023-08-19T07:03:52.226411
2021-09-04T10:56:33
2021-09-04T10:56:33
316,844,544
0
0
MIT
2020-11-29T00:02:33
2020-11-29T00:02:33
null
UTF-8
Python
false
false
1,892
py
import pytest from mitmproxy.addons import intercept from mitmproxy import exceptions from mitmproxy.test import taddons from mitmproxy.test import tflow def test_simple(): r = intercept.Intercept() with taddons.context(r) as tctx: assert not r.filt tctx.configure(r, intercept="~q") a...
[ "stzhu.ac@gmail.com" ]
stzhu.ac@gmail.com
58dc79979930a2d6d71966966c484d7436219a62
d217073b0c505709bc27f3ee1972e8124ba1513c
/run_emnist100s_server.py
164073371797db6b071692e3271357b7015624b7
[]
no_license
matech96/FederatedLearning
d7b71cb80a6012b2700eec6040d1665556b7ed9e
f67fd3142512fa7cd6119b41eeabba0c6e4addd6
refs/heads/master
2023-03-01T23:28:56.792988
2021-02-10T18:13:03
2021-02-10T18:13:03
244,413,873
0
0
null
2021-01-11T18:56:04
2020-03-02T16:04:37
Jupyter Notebook
UTF-8
Python
false
false
2,128
py
from comet_ml import Experiment import numpy as np from FLF.TorchFederatedLearner import ( TorchFederatedLearnerTechnicalConfig, ToLargeLearningRateExcpetion, ) from FLF.TorchFederatedLearnerEMNIST import TorchFederatedLearnerEMNISTConfig import common # server_lr = 0.001 # client_lr = 0.1 server_opt = "Ada...
[ "gangoly96@gmail.com" ]
gangoly96@gmail.com
3d36b220b77f8bad32671b6883738350ba47d36e
050a5e9bd3970f802f3a10adffd7eb4d965511a2
/python/mxnet/_ctypes/cached_op.py
509484b7c3e4596984dfb3a26561641489cab4db
[ "MIT", "BSD-3-Clause", "LLVM-exception", "Zlib", "BSL-1.0", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "Unlicense", "BSD-2-Clause" ]
permissive
rongzha1/incubator-mxnet
758948b2cadc7ea469bf02aa28e1af876ed8e6e5
1687b442d9eedf4d9acc36bb84ed2f26da6bb969
refs/heads/master
2023-03-17T13:20:31.260076
2022-05-25T18:29:08
2022-05-25T18:29:08
116,620,123
2
0
Apache-2.0
2019-07-24T05:12:13
2018-01-08T02:39:37
C++
UTF-8
Python
false
false
6,431
py
# 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"); you may not u...
[ "noreply@github.com" ]
rongzha1.noreply@github.com
5b92dca650d5af58634b4bbc5392f450168ddc2e
2a0efe30198c948982a85ea74c7e47ef9ecb4823
/pers/cyj/day07/01-装饰器/复杂一点的装饰器.py
dfdae18102148b1838c08ee34d1e6ff0161c08fb
[]
no_license
cyjhunnyboy/PythonTutorialProj
00151ed364807c6df54b1b0300cb622086128b74
c3a02e6fa2dd09bf5d7b47fd78a4d3a31356a39d
refs/heads/master
2023-02-23T18:35:45.481252
2021-01-25T11:13:45
2021-01-25T11:13:45
298,922,161
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
# 需求:打印之前输出一串*号,打印之后输出一串*号,且不能修改say函数 """ 装饰器格式: def outer(func): def inner(): pass return inner """ def outer(func): def inner(name, age): if age < 0: age = 0 print("*********************") func(name, age) print("*********************") return inner ...
[ "cyjhunnyboy@sina.com" ]
cyjhunnyboy@sina.com
fea3119a59a2f3ba856ec2e710fe1637a1f51c27
22013212df1e21f29d0180f2109841177a2a8791
/basic_addons/property_commission/report/__init__.py
301b4221cfbe3959b69ac686451ff3c57d4fa8e8
[]
no_license
butagreeza/DTDATA_A
f965236c0d7faf0ec4082d27e2a0ff8e7dafe1c6
90b09f89714349a3f26de671a440a979aeebd54c
refs/heads/master
2023-06-18T00:41:02.521432
2021-06-14T21:17:06
2021-06-14T21:17:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
# -*- coding: utf-8 -*- # See LICENSE file for full copyright and licensing details from . import commission_report_parser from . import commission_invoice_owner
[ "lmillan131@gmail.com" ]
lmillan131@gmail.com
ed28eeb00c0abc18439716a8bb8e36d13abd914d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02647/s734213501.py
349f041eadf9486f686a51f3a7486abe292ac277
[]
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
323
py
def main(n,k,a): for _ in range(k): b=[0]*(n+1) x=0 for i,j in enumerate(a): b[max(0,i-j)]+=1 b[min(n,i+j+1)]-=1 for i in range(n): b[i+1]+=b[i] if b[i]==n: x+=1 a=b if x==n: break return a N,K,*A=map(int,open(0).read().split()) r=main(N,K,A) print(*r[:-...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5e0056a3a976a110d99724cf118f1b6d24f452be
154fd16fe7828cb6925ca8f90e049b754ce06413
/lino_book/projects/min9/__init__.py
d753cbec3b532bf385f4ccec583b5bd577f51c0b
[ "BSD-2-Clause" ]
permissive
lino-framework/book
68de2f8d130266bd9d9de7576d30597b3cde1c91
4eab916832cd8f48ff1b9fc8c2789f0b437da0f8
refs/heads/master
2021-03-27T16:16:55.403940
2021-03-15T02:53:50
2021-03-15T02:53:50
58,830,342
3
9
BSD-2-Clause
2021-03-09T13:11:27
2016-05-14T21:02:17
Python
UTF-8
Python
false
false
751
py
"""A minimal application used by a number of tests and tutorials. It is not meant to be actually useful in the real world. The basic idea of min9 is to have most plugins installed. So it is the least minimal of this series. This is also a **usage example** of :ref:`plugin_inheritance` because if overrides the :mod:`l...
[ "luc.saffre@gmail.com" ]
luc.saffre@gmail.com
cb0762f6ad0d82b5f7af54710725a2cd79083bef
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/attestation/v20201001/get_private_endpoint_connection.py
f88efe9fc40401dacf354f97ae79611ea43dfbea
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,643
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
bf2eeec2f8ca17e4e7a2a4e2a889ff99d7ed61bc
4b167378821bc5b1ff9c154cf331f4dcf7f9f425
/lastResults/3Metric/mem/plotPaper.py
4455cca0a0a836ad622bf133edc79b6a212ccb22
[]
no_license
thangbk2209/GGClusterTraceDataAnalysis
eb83e719363d1b3cd264f3c0f63a21defa3970f4
2214c713d733e444d808dac3d6671a1229ce7b85
refs/heads/master
2021-09-15T21:32:47.151694
2018-06-11T04:20:55
2018-06-11T04:20:55
112,274,195
1
2
null
null
null
null
UTF-8
Python
false
false
2,775
py
import matplotlib.pyplot as plt import pandas as pd from pandas import read_csv import numpy as np from sklearn.metrics import mean_squared_error, mean_absolute_error # colnames=['time_stamp','numberOfTaskIndex','numberOfMachineId','meanCPUUsage','CMU','AssignMem','unmapped_cache_usage','page_cache_usage', 'max_mem_us...
[ "thangbk2209@gmail.com" ]
thangbk2209@gmail.com
fc2b44378ee5c8686de5c76006d2b2f091aeca55
525dc175d55c2f5f33f87df6915f3633537da17c
/oas_dev/util/slice_average/avg_pkg/levlat.py
cfd9f8272b670dce89243c6da766d11c27648cc3
[ "CC0-1.0" ]
permissive
sarambl/OAS-DEV
1b4c020ff862075034536ea38f30a131968791fb
8dec6d29ef23dee8135bc937cd6ee1ef5b64d304
refs/heads/master
2023-04-09T07:59:31.051158
2021-10-26T12:20:04
2021-10-26T12:20:04
310,578,324
0
0
null
null
null
null
UTF-8
Python
false
false
3,276
py
import os import xarray as xr from oas_dev.util import practical_functions from oas_dev.util.filenames import filename_levlat_avg from oas_dev.util.slice_average.avg_pkg import get_fields4weighted_avg, average_model_var, \ compute_weighted_averages, is_weighted_avg_var def get_average_levlat(ds, varlist,case_na...
[ "samebr@gmail.com" ]
samebr@gmail.com
45d882a86b5f3848aae835cad97d3d10d271b146
af43615e07f2bfaa908d6d96b4c90f98ce3ad47b
/rdr_service/alembic/versions/c069abb92cc0_add_enrollment_site_to_participant_table.py
34d4fa2be7e396817f60eabebc8898d38098b9bc
[ "BSD-3-Clause" ]
permissive
all-of-us/raw-data-repository
11aa25385543f5f8ef706663b79ce181775c1c9a
461ae46aeda21d54de8a91aa5ef677676d5db541
refs/heads/devel
2023-09-01T06:47:25.710651
2023-09-01T01:18:56
2023-09-01T01:18:56
66,000,771
46
22
BSD-3-Clause
2023-09-14T21:06:38
2016-08-18T13:47:08
Python
UTF-8
Python
false
false
2,558
py
"""add enrollment site to participant table Revision ID: c069abb92cc0 Revises: df7c40b6a209 Create Date: 2020-08-18 20:59:18.237666 """ from alembic import op import sqlalchemy as sa import rdr_service.model.utils from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus...
[ "noreply@github.com" ]
all-of-us.noreply@github.com
ece22cce09bc5fc4726f9ba62b8ab1e1f45fb755
d2a2a514d7786823c6bd8a5280802035d4e6074d
/tests/test_20_cfcoords.py
4ec88e46c1596f966d2978978865fcd2d3fe6975
[ "Apache-2.0" ]
permissive
maxdow/cfgrib
182cd2af423f0a323a1e0d7ca65b7215d7289573
d82b9d198853f71429202d8e3f27e41ad5db08e6
refs/heads/master
2020-04-27T13:17:13.844747
2019-02-26T08:19:49
2019-02-26T08:19:49
174,364,010
0
0
Apache-2.0
2019-03-07T14:49:07
2019-03-07T14:49:07
null
UTF-8
Python
false
false
5,458
py
from __future__ import absolute_import, division, print_function, unicode_literals import sys import numpy as np import pytest xr = pytest.importorskip('xarray') # noqa from cf2cdm import cfcoords @pytest.fixture def da1(): latitude = [0.5, 0.] longitude = [10., 10.5] time = ['2017-12-01T00:00:00', '...
[ "a.amici@bopen.eu" ]
a.amici@bopen.eu
59c7e7e7e4cd34613840036c2471d28724f02f22
517d461257edd1d6b239200b931c6c001b99f6da
/Circuit_Playground/CircuitPython/libraries/adafruit-circuitpython-bundle-6.x-mpy-20211013/examples/ov5640_directio_kaluga1_3_ili9341.py
97f54ded422a9ffdaf0adbc5cd958f06da9068dd
[]
no_license
cmontalvo251/Microcontrollers
7911e173badff93fc29e52fbdce287aab1314608
09ff976f2ee042b9182fb5a732978225561d151a
refs/heads/master
2023-06-23T16:35:51.940859
2023-06-16T19:29:30
2023-06-16T19:29:30
229,314,291
5
3
null
null
null
null
UTF-8
Python
false
false
3,197
py
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries # SPDX-FileCopyrightText: Copyright (c) 2021 Jeff Epler for Adafruit Industries # # SPDX-License-Identifier: Unlicense """ The Kaluga development kit comes in two versions (v1.2 and v1.3); this demo is tested on v1.3. The audio b...
[ "cmontalvo@southalabama.edu" ]
cmontalvo@southalabama.edu
e52b19c2a725eaf92c0042a4f688783ee479007b
3b4e517ff92dcd98453ae9640546b1a395750520
/manage.py
49471b0fe4671c17e26526db6e30212d53e89178
[]
no_license
songlei1979/DjangoRestFramework-part2
d1e29aeca95020231940eb92f3b57361819dcde2
c5f204cfefa7b06d927a5d9adfdd6afa8a73ec48
refs/heads/master
2023-08-11T01:45:51.874814
2021-09-23T14:05:45
2021-09-23T14:05:45
409,616,595
0
1
null
null
null
null
UTF-8
Python
false
false
675
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DjangoRestFramework.settings') try: from django.core.management import execute_from_command_line ...
[ "gabriel_sl19798@hotmail.com" ]
gabriel_sl19798@hotmail.com
06ca00122944e6bd27c9c3023f91aa49696ae084
1eee6d1d876d87c1b717b22c1078ec4d5921cb2e
/venv/bin/jsonpointer
d5992655b0d050a8ce52be5ae477300ba3c4b6f5
[]
no_license
Tony910517/nova_client
33362a2c73f85173331aab8876d70b73cd7d0177
19f676d7e12f539f2e1fb5f1cf670c17f731750f
refs/heads/master
2020-05-20T12:32:17.800900
2019-05-16T08:17:17
2019-05-16T08:17:17
185,571,860
0
0
null
null
null
null
UTF-8
Python
false
false
1,882
#!/home/sunshiqing/python_workspace/nova_client/venv/bin/python # -*- coding: utf-8 -*- from __future__ import print_function import sys import os.path import json import jsonpointer import argparse parser = argparse.ArgumentParser( description='Resolve a JSON pointer on JSON files') # Accept pointer as argume...
[ "471123674@qq.com" ]
471123674@qq.com
8155e84c58b111bc5e21b1f1f83066f65ad66798
6ffabd00cf3563a902af59f21a74385599cbbff9
/Command.py
2223d9dfceeb3fa69a02497a4fbc438090543f88
[ "CC0-1.0" ]
permissive
ytyaru/GitHub.Upload.ByPython.DeleteRepo.201703091329
9e984555693b059bf62c2ccfa0cb2f22f686fe33
ddd480cc3e7daed7ffaa346fad00128acf0f110a
refs/heads/master
2021-01-22T21:33:12.315316
2017-03-19T01:33:19
2017-03-19T01:33:19
85,443,463
0
0
null
null
null
null
UTF-8
Python
false
false
6,359
py
#!python3 #encoding:utf-8 import subprocess import shlex import shutil import Data import time import pytz import requests import json import datetime class Command: def __init__(self, data): self.data = data def CreateRepository(self): self.__CreateLocalRepository() r = self.__CreateR...
[ "ytyaru@outlook.jp" ]
ytyaru@outlook.jp
9b9583c058e6658e0ba1edf7f043a986abb948df
70384498fa880efc1aadde9561c927363f737dd4
/Term02/Lesson03/15/conv-dims.0.py
b7aadc781b2ed16cc3ccc7d3727d201922c49ff9
[]
no_license
luzi82/codelog.nd889.20170123
c1b5f31baed47153116e717bf90836c43e97fc10
7d9581e825f69a14ae4e4314f10232f4501fdf08
refs/heads/master
2021-01-11T15:45:24.669205
2018-04-28T08:58:29
2018-04-28T08:58:29
79,921,641
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
from keras.models import Sequential from keras.layers import Conv2D model = Sequential() model.add(Conv2D(filters=16, kernel_size=2, strides=2, padding='valid', activation='relu', input_shape=(200, 200, 1))) model.summary()
[ "luzi82@gmail.com" ]
luzi82@gmail.com
eb1cdadb0c9114e1870f2274d3ceacb2e7afb7b8
e8a285cb1dcdae6f1b6d8506b8d25a1d031d6cd7
/heppy/examples/pythia_test_groomer_shop.py
ad66423e6baa8798bb00562b64ba44d41d0ab5a8
[]
no_license
matplo/heppy
f30558e4ff3c1720c63b4d82f739b3f8acadc53e
88c931e3e7dcf57a3a476ef0a92f0204491cafb9
refs/heads/master
2023-07-07T18:17:04.486149
2023-06-29T20:45:32
2023-06-29T20:45:32
201,352,733
5
8
null
2023-07-04T21:57:31
2019-08-08T23:33:39
C
UTF-8
Python
false
false
3,028
py
#!/usr/bin/env python from __future__ import print_function import fastjet as fj import fjcontrib import fjext import tqdm import argparse import os import numpy as np from heppy.pythiautils import configuration as pyconf import pythia8 import pythiafjext import pythiaext def main(): parser = argparse.ArgumentPar...
[ "ploskon@gmail.com" ]
ploskon@gmail.com
02d3f99a2fbc96a788c4cc15700dec563d366079
6189492108aca002e31c3708808604c1516c33d8
/storage_api_azure_key_sample.py
1aa95062c5b3e13cbc98e9b650317f828bf6d4bb
[ "MIT" ]
permissive
konsan1101/pyRiKi1
53b10b0574e201e7656b01a07f4ab31b0b1a2297
687061ce09889ec91c1c3c11df62f4cfcb3d9613
refs/heads/main
2020-12-21T04:59:13.790645
2020-12-04T12:47:24
2020-12-04T12:47:24
236,314,120
0
0
MIT
2020-10-27T22:20:09
2020-01-26T13:13:01
null
UTF-8
Python
false
false
559
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # COPYRIGHT (C) 2014-2020 Mitsuo KONDOU. # This software is released under the MIT License. # https://github.com/konsan1101 # Thank you for keeping the rules. def getkey(api, key, ): # azure blob if (api == 'blob'): print('storage_api_azure_key.py') ...
[ "konchan@gold.ocn.ne.jp" ]
konchan@gold.ocn.ne.jp
fbe7e7c0458d60f3afdeec581f73202924c8463c
37161a0835abd45f93fcf1368c4b7851ef5ee271
/pokerify/core/servers.py
7200f9f619b9df23214e047ebe3e5bdd5e195137
[]
no_license
dalou/pokerify
7f126176b4e5e31ed99981472c9f98c9aaa90f2d
4c83e5687f45d99705af342a83fc5d2ff9c34987
refs/heads/master
2020-12-24T14:36:57.975738
2010-12-20T11:18:43
2010-12-20T11:18:43
1,134,789
1
0
null
null
null
null
UTF-8
Python
false
false
1,867
py
import socket import threading, time from urlparse import parse_qs class Server( ): def __init__( self, addr ): self.addr = addr self.times = [] try: print "Server is running on %s:%s:" % addr self.listen() except KeyboardInterrupt: self.shutdown() sys.exit(0) print "Keyboard interrupt" #def...
[ "autrusseau.damien@gmail.com" ]
autrusseau.damien@gmail.com
465cf786e8974261763322818b4562f39783f16e
30ee21b97e6105288101d1031ed7f96aaf6e141e
/ESP32_TTGO/essais/wifi_connect.py
e5a0d4d0a87d3b41390d181966548d0e10fb23ba
[]
no_license
josmet52/micropython
b3d1d69ad7eb6832ce26c15e3580dae99b5bb87f
d8f2267b556ba3b15861898c2c2eb5e086dcf9ce
refs/heads/main
2023-06-13T06:18:30.151497
2021-07-09T10:14:25
2021-07-09T10:14:25
353,124,541
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
# connect to WIFI ssid = 'jmb-guest' password = 'pravidondaz' station = network.WLAN(network.STA_IF) station.active(True) station.connect(ssid, password) while station.isconnected() == False: pass print('connected')
[ "joseph.metrailler@bluewin.ch" ]
joseph.metrailler@bluewin.ch
1dc4adc45a365d0bc492af41d1d36ab5079009f6
565ae8473c545c43341f5511b9633e97f0e4da8b
/course2_python_fundamentals/10-Exams/2-FINAL-EXAM/01_Password_Reset.py
303493927295788bc67ee1f4253ff9d7a06b775c
[]
no_license
andriiburka/Web-Development-with-Python
3934c1a3945bd983ab39d38b97f1af16fe784207
b6927653a2c6a9cc10a8768395233e347624c49a
refs/heads/master
2022-11-21T21:42:04.898254
2020-07-29T22:59:56
2020-07-29T22:59:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
string = input() while True: command = input().split() if "Done" in command: break elif "TakeOdd" in command: temp = '' for i in range(len(string)): if i % 2 == 1: temp += string[i] string = temp print(string) elif "Cut" in command: ...
[ "andriiburka@gmail.com" ]
andriiburka@gmail.com
2a764e7996d79362196d0018607bc8cb6aea496d
c2ae65792af1fab2e7843303ef90790819f872e8
/SampleCodes/DB/mysqldb.py
e327f2f47a0b957e2a7ab7463e9b88bd524d3268
[]
no_license
behappyyoung/PythonSampleCodes
47c224ca76ce509a03c8b75ef6b4bf7f49ebdd7f
f7640467273fa8ea3c7e443e798737ca5bcea6f9
refs/heads/master
2023-03-15T00:53:21.034605
2023-02-13T17:12:32
2023-02-13T17:12:32
26,919,763
3
3
null
2023-03-07T12:45:21
2014-11-20T15:57:16
Python
UTF-8
Python
false
false
319
py
#!/usr/bin/python print "Content-type:text/html\n\n" import MySQLdb import sys try: conn = MySQLdb.connect ( host = "localhost", user = "projectm", passwd = "projectm", db = "projectm") except MySQLdb.Error, e: print "Error %d: %s" % (e.args[0], e.args[1]) sys.exit (1) print "connected to the database"
[ "behappydev@gmail.com" ]
behappydev@gmail.com
eaa7f8fdad7faa16315d39871677623c1fcfa50f
b35f80114ad96928ccce44d40840177e0b5158aa
/tests/resolver_helpers/ewf_resolver_helper.py
0f7f71846dcc67f1503b6deef35b03c4f985b0e7
[ "Apache-2.0" ]
permissive
ryanmjones/dfvfs
7b62bab127cb201e679331fa808ec79e8ef03bd9
29ae5baddbf285260a596a67a199d0f5077214c1
refs/heads/master
2020-03-29T23:47:49.363000
2018-09-03T11:43:03
2018-09-03T11:43:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
854
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the EWF image resolver helper implementation.""" from __future__ import unicode_literals import unittest from dfvfs.resolver_helpers import ewf_resolver_helper from tests.resolver_helpers import test_lib class EWFResolverHelperTest(test_lib.ResolverHelper...
[ "joachim.metz@gmail.com" ]
joachim.metz@gmail.com
d7ed77f706b932c3b02ffe4e7ce88188a0f63027
25873da962b0acdcf2c46b60695866d29008c11d
/src/programr/parser/template/nodes/richmedia/carousel.py
aa219f67c7d251309270575f67353cbbdc77c549
[]
no_license
LombeC/program-r
79f81fa82a617f053ccde1115af3344369b1cfa5
a7eb6820696a2e5314d29f8d82aaad45a0dc0362
refs/heads/master
2022-12-01T14:40:40.208360
2020-08-10T21:10:30
2020-08-10T21:10:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,811
py
from programr.utils.logging.ylogger import YLogger from programr.parser.template.nodes.base import TemplateNode from programr.parser.template.nodes.richmedia.card import TemplateCardNode from programr.parser.exceptions import ParserException from programr.utils.text.text import TextUtils class TemplateCarouselNode(T...
[ "hilbert.cantor@gmail.com" ]
hilbert.cantor@gmail.com
9f3951123b7e4a1767c2b44cce0a6b7fa2159d21
45243d7b7412814b8cb43fefdf088099e0c93419
/src/service/timetable/search.py
31a99a77a4e223782e3405c80930361b06bc51dd
[]
no_license
AlexanderNevarko/drec_stud_site
e08e621c54bdd145709913d4a69c8f089475fcad
4e176a77bf5b4a20e57e1379581713a6fa6d2d21
refs/heads/master
2020-09-21T07:55:46.820999
2019-01-14T20:22:50
2019-01-14T20:22:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,260
py
def long_sorted_search(lst, el_obj_class, el_start_attr, el_end_attr, el, lst_obj_class = None, lst_start_attr = None, lst_end_attr = None): ''' Searches 'long' elements in sorted list using binary search. The 'length' of the element is defined by comparable element attributes (``el_start_attr``, ``el_end_...
[ "makaleks@live.ru" ]
makaleks@live.ru
3573a972ee7bf343ea78f743c7b110cf573b60d1
f34d3948b707e461151ee33296a61fb23a6d3f44
/month01/day02/exercise03.py
eb45ee423947497b94c930abda4c16de9d77a199
[]
no_license
xiao-a-jian/python-study
f9c4e3ee7a2f9ae83bec6afa7c7b5434e8243ed8
c8e8071277bcea8463bf6f2e8cd9e30ae0f1ddf3
refs/heads/master
2022-06-09T17:44:41.804228
2020-05-05T07:48:07
2020-05-05T07:48:07
256,927,969
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
""" 画出下列代码内存图 """ # 练习1 province_name01 = "湖北" province_name02 = "湖南" province_name02 = "河南" province_name03 = province_name02 print(province_name03) # ?河南 # 练习2 city_name01,city_name02 = "北京","上海" city_name03 = city_name01 + city_name02 del city_name02 city_name01 = "首都" print(city_name03) # ? "北京上海"
[ "1261247299@qq.com" ]
1261247299@qq.com
d4f595b8711036bfddffa8f1e0b89fec67fc1a15
8592ca892bd302670812df982e1759a38530ada7
/bigmler/resourcesapi/sources.py
7fb5f349b4f679957a1b3cee719f29e0a92bf1a9
[ "Apache-2.0" ]
permissive
felmarlop/bigmler
42e3e2f9ae117328e5902fa668b9650c72c16ed0
1a3096902de52d231578c797a73f5e2683b14736
refs/heads/master
2022-09-08T17:51:27.761114
2020-06-02T17:23:51
2020-06-02T17:23:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,582
py
# -*- coding: utf-8 -*- # # Copyright 2020 BigML # # 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...
[ "merce@bigml.com" ]
merce@bigml.com
1db2bd9944cfe89aac33c8d1f7b6e5f0c491cf37
c0f808504dd3d7fd27c39f1503fbc14c1d37bf9f
/sources/scipy-scipy-414c1ab/scipy/signal/tests/test_windows.py
4dfd76173d17bc85f0f4074261a4cd477376fd06
[]
no_license
georgiee/lip-sync-lpc
7662102d4715e4985c693b316a02d11026ffb117
e931cc14fe4e741edabd12471713bf84d53a4250
refs/heads/master
2018-09-16T08:47:26.368491
2018-06-05T17:01:08
2018-06-05T17:01:08
5,779,592
17
4
null
null
null
null
UTF-8
Python
false
false
2,756
py
from numpy import array, ones_like from numpy.testing import assert_array_almost_equal, assert_array_equal from scipy import signal cheb_odd_true = array([0.200938, 0.107729, 0.134941, 0.165348, 0.198891, 0.235450, 0.274846, 0.316836, 0.361119, 0.407338, 0.455079, 0.5038...
[ "georgios@kaleadis.de" ]
georgios@kaleadis.de
3187cebf53b51fd5d39802a7d74deb8abddaf43d
d5fb44ba8e66261c7bfb927981e75f548971121c
/test.py
1385d05f7a5344aca4c821adc966a562a2136b4b
[]
no_license
Hemie143/mc_python
4ed6131005b6cb358ad106b574fad7b716aa0348
8e40225690918cedbe05da376beba6ccb5b6ae70
refs/heads/master
2023-03-21T14:06:41.512801
2021-03-08T12:38:37
2021-03-08T12:38:37
345,651,206
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
from mcpi.minecraft import Minecraft import os import time mc = Minecraft.create() time.sleep(3) mc.setBlock(6, 0, 0, 10) time.sleep(3) mc.setBlock(6, 0, 0, 128) time.sleep(3) mc.setBlock(6, 0, 0, 12)
[ "hemie143@gmail.com" ]
hemie143@gmail.com
e2344638d0a98b1f42ef365867e0fb494aa9d2c0
ac216a2cc36f91625e440247986ead2cd8cce350
/appengine/predator/app/common/model/clusterfuzz_analysis.py
cc2d77ab86f62e78ac2b5fcbe40a45a6e30daf90
[ "BSD-3-Clause" ]
permissive
xinghun61/infra
b77cdc566d9a63c5d97f9e30e8d589982b1678ab
b5d4783f99461438ca9e6a477535617fadab6ba3
refs/heads/master
2023-01-12T21:36:49.360274
2019-10-01T18:09:22
2019-10-01T18:09:22
212,168,656
2
1
BSD-3-Clause
2023-01-07T10:18:03
2019-10-01T18:22:44
Python
UTF-8
Python
false
false
3,764
py
# Copyright 2017 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. import copy from google.appengine.ext import ndb from analysis.type_enums import CrashClient from common.model.crash_analysis import CrashAnalysis from dec...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
470fa46cd5261fdcd6d7d46c4052d31bfe662ce4
b963087b02dfcb6415ec66ff6bd14c70cfb814f1
/users/admin.py
ea92732ab5f04709f68f94db72255169a5465b50
[ "MIT" ]
permissive
linikerunk/tcc-people-analytics
24f58c56878f6c3408aef2fdcd776512d2369a8e
fdda975682d5299c8384e31ebb974dc085330875
refs/heads/master
2023-01-13T05:10:10.317673
2020-11-17T22:15:13
2020-11-17T22:15:13
290,654,043
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
from django.contrib import admin from import_export.admin import ImportExportModelAdmin from .models import Employee, CostCenter, Unity from .resources import * @admin.register(Unity) class UnityAdmin(ImportExportModelAdmin): list_display = ['name'] @admin.register(Employee) class EmployeeAdmin(ImportExportMode...
[ "linikerenem@gmail.com" ]
linikerenem@gmail.com
981fa7b1551dd5ab75954aa8343706701bcde98f
4a27d63ed85f58dd93704b273cd5d1b729fdf7e1
/other/duiqi.py
03f83001249a9e5e2f3d66e327bbd798b62aba11
[]
no_license
Mrhairui/python1
ff4a5141018d91e93deb881167bc4d80965d9c1a
a8ef0a0bd70b05c9b01b938371cc8074c20e6609
refs/heads/master
2020-09-16T11:47:50.127258
2020-03-28T15:08:23
2020-03-28T15:08:23
223,760,159
0
0
null
null
null
null
UTF-8
Python
false
false
1,662
py
from typing import List class Solution: def fullJustify(self, words: List[str], maxWidth: int)->List[str]: n = len(words) l = maxWidth + 1 output = [] tmp = [] for i in range(n): if l > len(words[i]): l = l - 1 tmp.append(words[i]) ...
[ "chenwentao_622@163.com" ]
chenwentao_622@163.com
8551023f5f01183f80fdb557850853c81a77e44c
34599596e145555fde0d4264a1d222f951f49051
/pcat2py/class/217730e8-5cc5-11e4-af55-00155d01fe08.py
b81d80a78c91d769ff51a4be16ff0081d76c7664
[ "MIT" ]
permissive
phnomcobra/PCAT2PY
dc2fcbee142ce442e53da08476bfe4e68619346d
937c3b365cdc5ac69b78f59070be0a21bdb53db0
refs/heads/master
2021-01-11T02:23:30.669168
2018-02-13T17:04:03
2018-02-13T17:04:03
70,970,520
0
0
null
null
null
null
UTF-8
Python
false
false
1,476
py
#!/usr/bin/python ################################################################################ # 217730e8-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
[ "phnomcobra@gmail.com" ]
phnomcobra@gmail.com
7fdd7581cf6a1a3a28e7f9f029d0cc20a8350163
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayItemOperationContext.py
5b097ae98cf3dbb8b64e4efe460aa824e04b704e
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,817
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayItemOperationContext(object): def __init__(self): self._creator = None self._op_role = None self._partner_id = None @property def creator(self): ret...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
5a66fa255751c9f4fc6e588e6a9f799a2f2f4d4c
f531c94f93bd53b3099ad7917a0e6ae2a628e88e
/api/views.py
4b3fe1f5602fb40e2105ba788277eb845d6d0f18
[]
no_license
skiboorg/nw_api_ru
428149b0814de0b670ca682a5d65528a43d496bc
e64faec9d58406ff94ed8340b0cfa09eb4c5eb3c
refs/heads/master
2023-08-13T12:44:36.928753
2021-10-15T08:37:48
2021-10-15T08:37:48
405,299,983
0
0
null
null
null
null
UTF-8
Python
false
false
6,214
py
from django.shortcuts import render import json from pytils.translit import slugify from rest_framework.response import Response from rest_framework.views import APIView from rest_framework import generics from .serializers import * from .models import * from bs4 import BeautifulSoup import requests class GetTexts(g...
[ "d@skib.org" ]
d@skib.org
a92328fdd5769c5bdffca2f2fd94296defe041f3
a90d66e3c77eae53eeaf7f503afe5bf815923333
/pgm4app/tests.py
35a4763027808c139368ab245e64e473db365ec0
[]
no_license
C14L/pgm4
a6e94a194b7bb9520db5387b816c80fce313d677
40d1f6f8af8fd27fd30628336eb93bbe5b2faba8
refs/heads/master
2020-12-24T07:19:48.989394
2016-08-15T14:36:18
2016-08-15T14:36:18
58,115,561
0
0
null
null
null
null
UTF-8
Python
false
false
6,653
py
from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.test import TestCase from django.utils.text import slugify from pgm4app.models import Content, Tag class Pgm4appTestCase(TestCase): passwd = 'hunter2' user1 = {'username': 'user1', 'password': passwd, 'email'...
[ "me@C14L.com" ]
me@C14L.com
bce6bd1156470b1ba2cbe958ac07b5eade0793ff
003ffcf8144565404636f3d74590a8d6b10a90a4
/722-remove-comments/722-remove-comments.py
a42454510528942a0be8a6b49b590cf593ffcde7
[]
no_license
congve1/leetcode
fb31edf93049e21210d73f7b3e7b9b82057e1d7a
ce1e802b5052da2cdb919d6d7e39eed860e0b61b
refs/heads/master
2020-05-13T19:19:58.835432
2019-05-06T00:44:07
2019-05-06T00:44:07
181,652,371
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
class Solution(object): def removeComments(self, source): """ :type source: List[str] :rtype: List[str] """
[ "congve1@live.com" ]
congve1@live.com
29f6da566167d6cda74a92b32d2d1d30842ac7d9
af1f899165d64105244b64ed18e7450241c3310b
/installer.py
20b60410c6ad0b55ba428d1c0e335515ba7ee243
[]
no_license
AFlyingCar/Ping-Monitor
0f1daccb7d400e3a058f98c3919e7c06de2774a3
3081baeb78c310d95edeef442c732dab799169d2
refs/heads/master
2021-01-18T23:09:15.504695
2016-06-28T18:53:11
2016-06-28T18:53:11
38,146,881
0
0
null
null
null
null
UTF-8
Python
false
false
1,469
py
import os,sys,getpass,urllib2 try: import MySQLdb except ImportError: print "Installing MySQLdb" if sys.platform.startswith("linux"): system("sudo apt-get instal python-MySQLdb") import MySQLdb host="localhost" usr=raw_input("User: ") pass=getpass.getpass("Password: ") name="pingmonitor" print "Creating Datab...
[ "tyler@familyrobbins.com" ]
tyler@familyrobbins.com
57ff921afb27817490445222548dc92b67ef5746
f7d2114152ec5c8e283b6bfbb9feeb5a4337eb71
/ACL054400-python37/samples/CH14/decorators/burgers.py
5810088a806f0306ebae63d0c6faf6c415617414
[]
no_license
faustfu/hello_python
f5759ff6bf87694e6ba472349f4263bc8ad479b0
1487e60e2d9307e1a0ebffbf26d8e075da806a39
refs/heads/master
2021-02-10T18:01:50.450295
2020-11-20T02:17:18
2020-11-20T02:17:18
244,406,161
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
from typing import Callable PriceFunc = Callable[..., float] def sidedish1(meal: PriceFunc) -> PriceFunc: return lambda: meal() + 30 @sidedish1 def friedchicken(): return 49.0 print(friedchicken()) # 顯示 79.0
[ "faust.fu@gmail.com" ]
faust.fu@gmail.com
5170f307088df55bf656fc72db8311ac22b0ec5b
377ce9cab3ba1e79b978988eebddbd2e30a62d42
/users/views.py
3e5e84e7938f71bfe66115cd7236e52e431e042a
[]
no_license
MATT143/coreysBlog
e7453c476afd0fab9917de6d1ef936092648168f
6e16959639c01d6c10863d88f31afca05b45c273
refs/heads/master
2022-04-19T16:09:15.119570
2020-04-16T11:18:47
2020-04-16T11:18:47
256,192,825
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
from django.shortcuts import render,redirect from django.contrib.auth.forms import UserCreationForm from django.contrib import messages from django.contrib.auth.decorators import login_required from.forms import UserRegisterForm # Create your views here. def register(request): if request.method=='POST': f...
[ "mnahak@cisco.com" ]
mnahak@cisco.com
c87b012da1b466fca36873ebd6981c9492c4b83a
ee974d693ca4c4156121f8cb385328b52eaac07c
/env/lib/python3.6/site-packages/h5py/tests/hl/test_dataset_getitem.py
fdc4b87b1c7de3cb8160cc021ce78eaf20be438e
[]
no_license
ngonhi/Attendance_Check_System_with_Face_Recognition
f4531cc4dee565d0e45c02217f73f3eda412b414
92ff88cbc0c740ad48e149033efd38137c9be88d
refs/heads/main
2023-03-12T07:03:25.302649
2021-02-26T15:37:33
2021-02-26T15:37:33
341,493,686
1
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:d3de2c37825aa965a7ca0fa3aec0d23160a2c4f9ba6b0e54ff8d1d008334576a size 15292
[ "Nqk180998!" ]
Nqk180998!
e05ced8bc0225f9a07aa6ef8ce71c990c5abb94b
791f96493c7030f7323cdc30708fc302fa996b89
/venv/bin/django-admin
f4c2b8fd2c0052728228381f08e1f0f71071e53e
[]
no_license
vsevolodpohvalenko/django_graphene
066b3478296bd02debcb856f6823ce42f94f4511
1a39c6133163e6d61a85303e30154bcab7bb4d2a
refs/heads/master
2023-06-27T01:10:55.893204
2021-07-24T03:44:19
2021-07-24T03:44:19
388,991,233
0
0
null
null
null
null
UTF-8
Python
false
false
290
#!/home/devvs/Desktop/Django/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "vsevolod.pohvalenko@gmail.com" ]
vsevolod.pohvalenko@gmail.com
3984f82cd5d24b74080df4378623ba42a5366262
6223dc2e5de7921696cb34fb62142fd4a4efe361
/.metadata/.plugins/org.eclipse.core.resources/.history/96/205e88823a6a00141afa8a8ed49a3dc2
26f6d3fc0741f8e2dd34951ad9398f5d04e62489
[]
no_license
Mushirahmed/python_workspace
5ef477b2688e8c25b1372f546752501ee53d93e5
46e2ed783b17450aba29e4e2df7b656522b2b03b
refs/heads/master
2021-03-12T19:24:50.598982
2015-05-25T10:23:54
2015-05-25T10:23:54
24,671,376
0
1
null
2015-02-06T09:27:40
2014-10-01T08:40:33
Python
UTF-8
Python
false
false
5,465
#!/usr/bin/env python # # Copyright 2014 <+YOU OR YOUR COMPANY+>. # # This is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # This software is dis...
[ "imushir@gmail.com" ]
imushir@gmail.com
ac9d17624edd566d3969a9b5dfa65bade16f3762
f0330854766bfccb419568c8f2c15ab85f1b519e
/dakobed-algorithms/python-algorithms/alrogithms/arrays/house_robber.py
637e18c8315b1396e7e11e390119054d6ab89704
[]
no_license
MathiasDarr/Algorithms
a7a64efba127666725c1f6c574075198abe655ef
9098ca1ba5eab2b8b96360bc3a3b7a71a384444a
refs/heads/master
2023-01-11T21:55:27.583794
2020-11-10T23:43:13
2020-11-10T23:43:13
309,563,086
1
0
null
null
null
null
UTF-8
Python
false
false
297
py
class Solution: def rob(self, nums): dp = [0] * len(nums) dp[0] = nums[0] dp[1] = max(nums[0],nums[1]) for i in range(2,len(nums)): dp[i] = max(dp[i-1], dp[i-2] + nums[i]) return dp nums = [1,2,3,1] solution = Solution() solution.rob(nums)
[ "mddarr@gmail.com" ]
mddarr@gmail.com
7d17553e9e34d4ba19c09779dcf50fa0596dc8c9
1086ef8bcd54d4417175a4a77e5d63b53a47c8cf
/Forks/uvapy-master/simulation/p11530.py
bace874e7444117c66b344b1d8c5c1bbf7aa2e78
[ "MIT" ]
permissive
wisdomtohe/CompetitiveProgramming
b883da6380f56af0c2625318deed3529cb0838f6
a20bfea8a2fd539382a100d843fb91126ab5ad34
refs/heads/master
2022-12-18T17:33:48.399350
2020-09-25T02:24:41
2020-09-25T02:24:41
298,446,025
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
mapping = [ "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz", " " ] key_count = {} for key in mapping: for i, ch in enumerate(key): key_count[ch] = i + 1 cases = int(input()) for c in range(cases): text = input() count = 0 for ch in text: count += key_count[ch] print("Case #{}: {}...
[ "elmanciowisdom@gmail.com" ]
elmanciowisdom@gmail.com
69231a30112a7c061ecd6863a58543d71e86001b
c7b35f82d69ff993a7f8c6273cc3bcbe65e4184f
/james_process/multi_process_Semaphore.py
c8c7d68b26f0fb8f26b9b3e3954c23b39c6885f8
[]
no_license
james-hadoop/JamesPython
0c9015fc50b7100b9e251f56b2c014f9d2d3653e
848973686b0b00474638083f326d5bd503ca93c8
refs/heads/master
2023-08-02T20:49:33.629320
2023-08-01T12:41:20
2023-08-01T12:41:20
98,605,310
1
0
null
2022-05-15T14:40:29
2017-07-28T03:41:58
Jupyter Notebook
UTF-8
Python
false
false
485
py
import multiprocessing import time def worker(s, i): s.acquire() print(time.strftime('%H:%M:%S'),multiprocessing.current_process().name + " 获得锁运行"); time.sleep(i) print(time.strftime('%H:%M:%S'),multiprocessing.current_process().name + " 释放锁结束"); s.release() if __name__ == "__main__": ...
[ "james@JamesUbuntu" ]
james@JamesUbuntu
1d3dc1cb784690c5bfdde176ec72ad16f4dc48eb
3e4b8fe54f11bf36f3615c21fdc1dca0ed00fe72
/month04/spider/day03/05_maoyan_xml.py
ff0505d2aa07843c8768a2a82eea3c0fad6f0a86
[]
no_license
leinian85/year2019
30d66b1b209915301273f3c367bea224b1f449a4
2f573fa1c410e9db692bce65d445d0543fe39503
refs/heads/master
2020-06-21T20:06:34.220046
2019-11-04T06:37:02
2019-11-04T06:37:02
197,541,549
0
0
null
null
null
null
UTF-8
Python
false
false
1,922
py
from urllib import request from fake_useragent import UserAgent import re import time import random import csv from lxml import etree class spider_movie: movies = [] def __init__(self): pass def set_useragent(self): ua = UserAgent() self.headers = {"User-Agent":ua.random} de...
[ "42737521@qq.com" ]
42737521@qq.com
12963b1ed9230fee4da0171dce8c4582cd50ca1d
f74119a55ff5d4e89f5b7fb7da24a23828e1c203
/detectors/tran_detector.py
53f9cde0519d90ac72d2a87c0469fd6a07280bd8
[ "MIT" ]
permissive
mdlaskey/yolo_labeler
3f15dd229f6a5e01e508c5141345ff9363717b94
93463ee54ee8773e7c2ce2368a95c4c1102e712c
refs/heads/master
2021-08-16T00:50:10.238386
2017-09-20T22:49:40
2017-09-20T22:49:40
96,812,011
0
1
null
null
null
null
UTF-8
Python
false
false
4,486
py
import tensorflow as tf import numpy as np import os import glob import cv2 import argparse import configs.config_bed as cfg from yolo.success_net import SNet from yolo.yolo_conv_features import YOLO_CONV from utils.timer import Timer import IPython import sys, os os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID...
[ "mdlaskey@umich.edu" ]
mdlaskey@umich.edu
7e2934769eda76eb31ce38a7dc8c61f2b236a745
7c5da9f7299c5f5080fb5f7416caede5b4d92d6f
/0x11-python-network_1/3-error_code.py
9e97bc793bdd2c2ed7387104f43632e51a817e36
[]
no_license
stefansilverio/holbertonschool-higher_level_programming
eb0b9415047eb089d69e4099ff00d1f9ed529a4d
f47fc1817245fa41e597c9b03707687c78bc80e6
refs/heads/master
2020-04-09T10:20:45.203061
2019-05-17T00:36:42
2019-05-17T00:36:42
160,268,288
1
0
null
null
null
null
UTF-8
Python
false
false
393
py
#!/usr/bin/python3 # send request to URL & display body of response import urllib.request import sys if __name__ == "__main__": req = urllib.request.Request(sys.argv[1]) try: with urllib.request.urlopen(req) as res: result = res.read() print(result.decode('utf-8')) except url...
[ "494@holbertonschool.com" ]
494@holbertonschool.com
9b263dbe1cbb87d87c2127751d4205d69b8aaa57
b478d1e63cce432b6fd3692c0aa7a84f411ae9dc
/prog_py/PP4E/sys_prog/file_dir/bin_file.py
bb87128ef789fcbea60ec0fd5342f7f36c0098b3
[]
no_license
yiqing95/py_study
8d414aa00b4ac31070fe5667a98815980eee46d0
6ce6b46ad729a795bc9253d6339169e62ef47766
refs/heads/master
2016-09-06T17:45:26.081269
2015-01-12T15:22:29
2015-01-12T15:22:29
20,810,777
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
__author__ = 'yiqing' open('data.bin','wb').write(b'Spam\n') print( open('data.bin','rb').read() ) try: open('data.bin','wb').write('spam\n') except: print( 'only byte string allowed!' )
[ "yiqing-95@qq.com" ]
yiqing-95@qq.com
34e669fd4c64d930f00411c7694609530e9e3ed9
aad3cf85e522299bd199521609f761ae2dd33cbb
/news/migrations/0003_article.py
627e38921af262031c9ee621e61762d8787994b3
[]
no_license
Isaacg94/Moringa-Tribune
21828f9b23fb9eb6a5f707fd40fa8555682071a1
bd86a228289ceccd65d9e4bb3990a397d6f310aa
refs/heads/master
2022-04-30T21:37:20.118396
2021-06-14T06:05:51
2021-06-14T06:05:51
220,437,790
0
0
null
2022-04-22T22:38:10
2019-11-08T09:56:31
Python
UTF-8
Python
false
false
901
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-11-05 08:50 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('news', '0002_auto_20191105_1114'), ] operations = [ ...
[ "7248zack@gmail.com" ]
7248zack@gmail.com
94eee9e61f213d9d78a769b5f516bb38ef4ef967
a904e99110721719d9ca493fdb91679d09577b8d
/month04/day07/day07-2/mysite7/middleware/mymiddleware.py
224c49f2663bfdcd9c045bfced63b97be154ce30
[ "Apache-2.0" ]
permissive
chaofan-zheng/tedu-python-demo
7c7c64a355e5380d1f8b6464affeddfde0d27be7
abe983ddc52690f4726cf42cc6390cba815026d8
refs/heads/main
2023-03-12T05:17:34.596664
2021-02-27T08:33:31
2021-02-27T08:33:31
323,350,480
4
1
null
null
null
null
UTF-8
Python
false
false
1,575
py
# file : middleware/mymiddleware.py from django.http import HttpResponse from django.utils.deprecation import MiddlewareMixin import re class MyMiddleWare(MiddlewareMixin): def process_request(self, request): print("中间件方法 process_request 被调用") def process_view(self, request, callback, callback_args,...
[ "417355570@qq.com" ]
417355570@qq.com
595386430a6217d87fcc21b851f49f8e6a38bad6
46bd3e3ba590785cbffed5f044e69f1f9bafbce5
/env/lib/python3.8/site-packages/pip/_vendor/distlib/util.py
3e84fda7ab072f58398f318fc943a64425f50898
[]
no_license
adamkluk/casper-getstarted
a6a6263f1547354de0e49ba2f1d57049a5fdec2b
01e846621b33f54ed3ec9b369e9de3872a97780d
refs/heads/master
2023-08-13T11:04:05.778228
2021-09-19T22:56:59
2021-09-19T22:56:59
408,036,193
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:78828a279329e2e9c730e5738b14484711aae2dcb9fa1fcfa05999fe5a6f9243 size 67558
[ "a.klukowski@live.com" ]
a.klukowski@live.com
b71a241fc66c500a83f476b1ac46cd06fa62a1f9
a884039e1a8b0ab516b80c2186e0e3bad28d5147
/Livros/Introdução à Programação - 500 Algoritmos resolvidos/Capitulo 2/Exemplos 2a/Algoritmo25_teste.py
a7946a70f05d2ccc8ecda52e7392e1e717de6d49
[ "MIT" ]
permissive
ramonvaleriano/python-
6e744e8bcd58d07f05cd31d42a5092e58091e9f0
ada70918e945e8f2d3b59555e9ccc35cf0178dbd
refs/heads/main
2023-04-10T14:04:24.497256
2021-04-22T18:49:11
2021-04-22T18:49:11
340,360,400
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
# Program: Algoritmo25_teste.py # Author: Ramon R. Valeraino # Description: # Developed: 14/03/2020 - 15:39 # Updated: date_complete = int(input("Enter with a complete date: ")) day = int(date_complete/1000000) month = int((date_complete%1000000)/10000) year = int(date_complete%10000) print("%02d" %day) print("%02d" ...
[ "rrvaleriano@gmail.com" ]
rrvaleriano@gmail.com
e649ca3e749e1a3325b1eec4314b041c90c55c51
aa3c8051df97dde4fabdc2282cbcd7a651723d7a
/Program/presentation/layouts/MeleeWeaponLayout.py
a1f5dc1706e2bab62d1637ac16272d4f1002c170
[]
no_license
Wilson194/DeskChar
fdac6b3c9066f989fea02bc7629657d56bd9f913
40b088e061042599cbb30373ac229d37dddc01e6
refs/heads/master
2020-06-02T14:25:20.240420
2017-06-08T16:06:08
2017-06-08T16:06:08
191,186,785
0
0
null
null
null
null
UTF-8
Python
false
false
4,953
py
# -*- coding: utf-8 -*- from PyQt5 import QtWidgets, QtGui, QtCore from business.managers.ItemManager import ItemManager from structure.enums.Handling import Handling from structure.enums.Races import Races from structure.enums.WeaponWeight import WeaponWeight from presentation.layouts.Layout import Layout from structu...
[ "horacj10@fit.cvut.cz" ]
horacj10@fit.cvut.cz
da666012cffd959cff513b627430ddb859086c22
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/94/usersdata/201/55307/submittedfiles/mediaLista.py
39a7ab8a645e81e1fd9659cc0c014bfe3b1a4225
[]
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
199
py
# -*- coding: utf-8 -*- LISTA=[] n=int(input('Digite n:')) for i in range(1,n+1,1): valor=float(input('valor')) LISTA.append(valor) print(LISTA[0]) print(LISTA[4]) print(n/LISTA) print(LISTA)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
c3bc0cd62cc9190a38b2a0e461d1d2f8238b12c0
c72aaa4a20e4e5918d9fa73b8bc9627f704a5aad
/layers/subscribe/forms.py
84cd4ae5eb712e77ff295457209bceb5ee7be5a0
[]
no_license
jkol36/layers
8f80c905ef2a243be449bd8315bc29c63fd10d22
3ef0b0a950986c929aa43e5f7d37538972fe9576
refs/heads/master
2020-04-21T13:55:21.837276
2015-03-17T17:18:17
2015-03-17T17:18:17
28,834,179
0
1
null
2015-03-17T17:18:17
2015-01-05T22:07:43
HTML
UTF-8
Python
false
false
418
py
from django import forms from .models import Subscriber from .utils import add_subscriber class signup_for_emails_form(forms.ModelForm): email = forms.CharField(widget=forms.EmailInput()) class Meta: model = Subscriber fields = ['email'] def save(self): s = super(signup_for_emails_form, self).save() ema...
[ "jonathankolman@gmail.com" ]
jonathankolman@gmail.com
ec6aa12e84e8e03cecc0d9e1810710b34bc56bff
e436e729b0a78c7062311e0f48c55dd25d13faef
/apps/core/urls.py
0c1d9b0dfeb85d8ef648ef52a0da8fc0c48f259c
[ "MIT" ]
permissive
cad106uk/market-access-public-frontend
71ff602f4817666ed2837432b912f108010a30a1
092149105b5ddb1307c613123e94750b0b8b39ac
refs/heads/master
2023-02-03T18:48:45.838135
2020-12-24T09:38:56
2020-12-24T09:38:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
from django.urls import path from django.views.generic import TemplateView from .views import CookiesView, CookiePolicyView app_name = "core" urlpatterns = [ path("cookies/", CookiesView.as_view(), name="cookies"), path("cookie-policy/", CookiePolicyView.as_view(), name="cookie-policy"), path('accessibil...
[ "noreply@github.com" ]
cad106uk.noreply@github.com
e37218219bbf0191ef8d14fcfcf619a212b25cc0
0a7d49300a547eecc823b78a891057f1017db1b2
/AI/deep_learning/dist_tensor.py
1f83db006297ceb2079e586aeb620e5980f88bf3
[]
no_license
PeterZhangxing/codewars
f315b2ce610207e84a2f0927bc47b4b1dd89bee4
8e4dfaaeae782a37f6baca4c024b1c2a1dc83cba
refs/heads/master
2020-09-22T12:09:59.419919
2020-03-02T12:52:55
2020-03-02T12:52:55
224,330,565
0
0
null
null
null
null
UTF-8
Python
false
false
2,280
py
import tensorflow as tf FLAGS = tf.app.flags.FLAGS tf.app.flags.DEFINE_string("job_name","worker","启动服务的类型ps/worker") tf.app.flags.DEFINE_integer("task_index",0,"指定ps或worker当中的哪一台服务器是task:0,哪个是task:1") def main(argv): ''' tf.app.run()会自动调用此函数 :param argv: :return: ''' # 定义全局计数的op,给钩子列表当中的训练步...
[ "964725349@qq.com" ]
964725349@qq.com
64952a4d80ff6124a0f62f6feb4fcec6cb1c4242
7a0625ef4c271ed9992a736de7bb93215b7013fd
/leetcode229.py
cc59a7525da2cf2211a6f8322dc551cfd38a9d67
[]
no_license
yuchien302/LeetCode
6576b93c005ea2275646df7b9547c22683d3b45c
c9a53ef2fc1fd1fea7377c3633689fa87601dba6
refs/heads/master
2020-12-11T01:42:36.980414
2015-12-03T02:53:51
2015-12-03T02:53:51
36,424,494
2
0
null
null
null
null
UTF-8
Python
false
false
452
py
from collections import defaultdict class Solution(object): def majorityElement(self, nums): """ :type nums: List[int] :rtype: List[int] """ if nums == []: return [] count = defaultdict(int) for i in nums: count[i] += 1 ...
[ "yc2257@cornell.edu" ]
yc2257@cornell.edu
0656fc09f466ffab967ac3ad432c013170c33c38
30736dab9d8e682e5603d4803349144a5f6a84fb
/sdk/cognitiveservices/azure-cognitiveservices-search-entitysearch/azure/cognitiveservices/search/entitysearch/models/places_py3.py
d37c5584d19e1a9b2761d4a9f5cb4683308a3f50
[ "MIT", "LicenseRef-scancode-unknown", "LicenseRef-scancode-generic-cla" ]
permissive
montgomp/azure-sdk-for-python
6fcaffc59f4321852aa71109691e94ad38c66464
0ffb0b0de095b97cbc5b69309bbce0a3b91d3eb4
refs/heads/master
2020-12-06T11:08:01.683369
2020-01-07T23:24:42
2020-01-07T23:24:42
232,445,563
1
0
MIT
2020-01-08T00:45:33
2020-01-08T00:45:33
null
UTF-8
Python
false
false
2,400
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" ]
montgomp.noreply@github.com
5d90aac792c480c20d39889bd4b82ac454f6f4a3
7839d009f3ae0a0c1bc360b86756eba80fce284d
/build/genmsg/catkin_generated/genmsg-extras.cmake.develspace.context.cmake.py
445abeaa42241e230bc77bd14352a8631192a149
[]
no_license
abhat91/ros_osx
b5022daea0b6fdaae3489a97fdb1793b669e64f5
39cd8a79788d437927a24fab05a0e8ac64b3fb33
refs/heads/master
2021-01-10T14:43:41.047439
2016-03-13T23:18:59
2016-03-13T23:18:59
53,812,264
1
1
null
null
null
null
UTF-8
Python
false
false
1,368
py
# generated from catkin/cmake/template/cfg-extras.context.py.in DEVELSPACE = 'TRUE' == 'TRUE' INSTALLSPACE = 'FALSE' == 'TRUE' CATKIN_DEVEL_PREFIX = '/Users/adityabhat/Downloads/devel' CATKIN_GLOBAL_BIN_DESTINATION = 'bin' CATKIN_GLOBAL_ETC_DESTINATION = 'etc' CATKIN_GLOBAL_INCLUDE_DESTINATION = 'include' CATKIN_GLOB...
[ "abhat@wpi.edu" ]
abhat@wpi.edu
8c73bfa7cd02e3c57ee6ebf811c428c4babd5d13
0562b574c9aaf716fdf67010a82326c93514687b
/sgtpy/pure/a2m_monomer.py
618fc00bb66805500a96c90bee736b84030cd4c3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
hyunp2/SGTPy
d22bd55183ad70b3fc68d140d16606d445ad631e
7a0306baa82f5c53e1dbd1543832e305b52fe43d
refs/heads/master
2023-04-06T06:25:43.148618
2021-04-15T23:45:35
2021-04-15T23:45:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,011
py
import numpy as np # Second pertubation Eq 36 def a2m(suma_a2, khs, xi, cte_a2m): a2 = khs*(1+xi)*suma_a2*cte_a2m return a2 def da2m_deta(suma_a2, dKhs, dXi, cte_a2m): khs, dkhs = dKhs xi, dx1 = dXi x1 = 1. + xi #sum1, dsum1 = np.matmul(da1sb, x0lambda) sum1, dsum1 = suma_a2 # a2 =...
[ "gustavoch@outlook.com" ]
gustavoch@outlook.com
2bcfd3b63115449bb0bbc8fa76c929e554bed2c8
539077b499f10c133fe8ed003255b9fbc6d4c178
/廖雪峰python3教程/E-mail/BJ_SMTP_01.py
c63ebe406069cc84fb9eeab301282dad62c05516
[]
no_license
lxh1997zj/Note
78e8310ff49f27bc22953b510cad3f35a25ed182
2dab5957f0f4a2117339b449d730f51626fd4b08
refs/heads/master
2020-04-25T16:11:29.890458
2019-03-05T12:56:00
2019-03-05T12:58:09
172,901,891
0
0
null
null
null
null
UTF-8
Python
false
false
724
py
# !/usr/bin/env python3 # -*- coding:utf-8 -*- # 第一个test案例 from email.mime.text import MIMEText msg = MIMEText('hello,send by python...', 'plain', 'utf-8') # 输入Email地址和口令: from_addr = input('From:') password = input('Password:') # 输入收件人地址: to_addr = input('To:') # 输入SMTP服务器地址: smtp_server = input('SMTP server:') # 发...
[ "lxh1997zj@163.com" ]
lxh1997zj@163.com
2c925c79eb3754202bc3d2b46b3752f89a1e19a4
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-airec/aliyunsdkairec/request/v20201126/ListFlowControlTaskRequest.py
34973526e6d818f1992cca6f2f671eec48bacf93
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
2,201
py
# 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"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
79887bef31814dde31cdfa14a775b3033eff18e1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03282/s669308173.py
a0eef47dffa1a6ba2f1439be9442d562f5758026
[]
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
135
py
s=input() k=int(input()) t=0 one=0 for i in s: if i=="1": one+=1 else: t=i break if k<=one: print(1) else: print(t)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1ef5e96cbfca227839393710a8f9488fcb09c0b2
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2776/8246/306414.py
1cbae6f1aa9a74729f22175d1fab5949d60a700e
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
1,312
py
class Solution: def findAllConcatenatedWordsInADict(self, words): def check_word(word, pre_dict): if len(word) == 0: return True cur_dict = pre_dict for index, c in enumerate(word): cur_dict = cur_dict.get(c, None) if cur_di...
[ "1069583789@qq.com" ]
1069583789@qq.com
47afbc912da0ce56e83ab6a28e7d28726769711f
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_Fisher/trend_Lag1Trend/cycle_5/ar_/test_artificial_1024_Fisher_Lag1Trend_5__20.py
ab9e2577a1b22fa9dfd49f413cecd13e50634291
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
262
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 5, transform = "Fisher", sigma = 0.0, exog_count = 20, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
e2ef1c449fbcae7ae7653fc789fdc005c74715bb
d4f1bd5e52fe8d85d3d0263ede936928d5811bff
/Python/Problem Solving/BOJ/boj2161.py
9cbf9b92d6204607793b254509fc65aed9d4d3e0
[]
no_license
ambosing/PlayGround
37f7d071c4402599995a50cac1e7f1a85c6d10dd
0d5262dbb2fa2128ecb3fd969244fa647b104928
refs/heads/master
2023-04-08T04:53:31.747838
2023-03-23T06:32:47
2023-03-23T06:32:47
143,112,370
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
n = int(input()) lst = [i + 1 for i in range(n)] for i in range(n): print(lst.pop(0), end="") if i + 1 != n: print(end=" ") lst.append(lst.pop(0))
[ "ambosing_@naver.com" ]
ambosing_@naver.com
2c6da5427b24c298d6edf8a0cb80284b6de644f7
eec696163b725c9c644ad0a94efa3b0e8a30be0c
/ap/apps/users/apps.py
b746c42a63312f5eca2d5e63d4f04fe8deb4505b
[ "BSD-2-Clause" ]
permissive
shacker/ap
fb4412f76ddb8658b6af774d9753e789740a2150
9059c5737b0dbef82e968cf8a9a6bf303c7a1688
refs/heads/master
2022-07-20T21:14:29.870910
2020-04-30T05:48:15
2020-04-30T05:48:15
150,219,062
1
1
BSD-3-Clause
2022-07-07T01:27:42
2018-09-25T06:39:45
Python
UTF-8
Python
false
false
273
py
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'users' verbose_name = "Users" def ready(self) -> None: """Override this to put in: Users system checks Users signal registration """ pass
[ "shacker@birdhouse.org" ]
shacker@birdhouse.org
600580ce9945d02e3f2db4ff838d7aef459d364b
3374332ce09299ed1783507def78bba53a035149
/PlotCDFHeteroplasmyFreqFunction.py
292d43289bed011ff09967746abe14c6e7bb7915
[]
no_license
rjovelin/MitoVariants
ca6f53777abef5eb225b2f8d3b4ca72f444bc5ed
18ada503447b16f1fe3f252cccab49440171eeee
refs/heads/master
2021-01-21T04:50:36.694371
2016-07-14T15:41:34
2016-07-14T15:41:34
54,673,319
0
0
null
null
null
null
UTF-8
Python
false
false
6,647
py
# -*- coding: utf-8 -*- """ Created on Wed Jun 29 15:23:39 2016 @author: RJovelin """ # use this script to plot the CDF of heteroplasmie frequencies (ie. within individual, a same mutant may be recorded multiple times) # for various functional categories # place this script in folder with heteroplasmy summary files...
[ "richard.jovelin@oicr.on.ca" ]
richard.jovelin@oicr.on.ca
c1a9785996b8cdb5e5d85e211c7ea5d3c4b23ae6
e21ed71610f9d1004dfa21206300c0e9f3887e89
/modulo_2/CodingBat/list-2/sum13.py
2f2bf5e4253b1ac4c799d539cf007ce523d74ba5
[]
no_license
hpfn/wttd-2017-exerc
c0c79ee0cb3b5b331932787d280deee679357bc1
b1bf1394d2e2adc29257b7c4273af21b8509335f
refs/heads/master
2020-12-30T11:29:13.218980
2017-10-03T19:04:03
2017-10-03T19:04:03
91,572,803
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
# coding=utf-8 def sum13(nums): count_13 = nums.count(13) # author wants this 'try/except' try: for x in range(count_13): location = nums.index(13) nums.pop(location) if location + 1 <= len(nums): nums.pop(location) except ValueError: p...
[ "hpfn@debian.org" ]
hpfn@debian.org
a747456d2e634ec149e441b969faec6ef400a9a0
629606ef6e0ce252f74729ac60f57ca8805c3c78
/hw_001_Django/hw_009_test1/hw_009_test1/wsgi.py
43315453c3f2c6e45ae1652e55e190e00d3b8938
[]
no_license
LeeXyan/lxgzhw006
cc31024874725f60b766c9d5d24c2dafc66b8de3
621a73544262df7e104806579242deeaa8dbe2c2
refs/heads/master
2021-10-10T17:41:52.381843
2019-01-15T00:25:08
2019-01-15T00:25:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" WSGI config for hw_009_test1 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
[ "1156956636@qq.com" ]
1156956636@qq.com
d8d60c8924f65dfd9c30068aeb5530f2b7bba38b
97a331e6cdeb3424a1897fe08dd6d54623534b22
/supervised_learning/0x11-attention/2-rnn_decoder.py
6c968fabe8ea54f7f447cff287ce8fe4671372a8
[]
no_license
dalexach/holbertonschool-machine_learning
2fa324f49da5ea27aecc4dff6d87b60b33b76cb3
fc2cec306961f7ca2448965ddd3a2f656bbe10c7
refs/heads/master
2023-02-03T03:49:46.149072
2020-12-22T15:57:41
2020-12-22T15:57:41
255,250,596
2
1
null
null
null
null
UTF-8
Python
false
false
2,681
py
#!/usr/bin/env python3 """ RNN Decoder Class """ import tensorflow as tf SelfAttention = __import__('1-self_attention').SelfAttention class RNNDecoder(tf.keras.layers.Layer): """ Class RNNDecoder to decode for machine translation """ def __init__(self, vocab, embedding, units, batch): """ ...
[ "dalexach@gmail.com" ]
dalexach@gmail.com
a3d842491d435f2ef359c32444f441e7e33edb14
463411688fd841add1c89c88852cff79c223cca4
/db/models/tb_MessageDetectionLog.py
685dfeafcf6dfeef9032bb6d52ea5ec770b823a6
[]
no_license
hsiang0107/Restful_API_Testing
8d9063186e53ddf03d50efa983ec3f73ec794958
2411b9c8a3c87336f7dbfaa807857d01bb1540d9
refs/heads/master
2020-03-23T04:56:56.345366
2018-07-16T09:27:10
2018-07-16T09:27:10
141,115,494
0
0
null
null
null
null
UTF-8
Python
false
false
1,818
py
from sqlalchemy import Column from db.cm_session import cm_session, Base from sqlalchemy.dialects.mssql import BIGINT, CHAR, DATETIME, INTEGER, NVARCHAR, SMALLINT, VARCHAR class TbMessageDetectionLog(Base): __tablename__ = 'tb_MessageDetectionLog' id = Column(BIGINT, primary_key=True, nullable=False) MsgL...
[ "hsiang0107@hotmail.com" ]
hsiang0107@hotmail.com
396fd77acb1ba442fe000b1731f30f11ec512529
f13ef18abfb61d983040f83249bd19c6f55c29c9
/tools/Vitis-AI-Quantizer/vai_q_pytorch/nndct_shared/utils/saving.py
1c09bf9f9e09a5f2a8853ee17b94b196ac009241
[ "Apache-2.0", "BSD-2-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
AEW2015/Vitis-AI
5487b6474924e57dbdf54f66517d1c604fc2c480
84798c76e6ebb93300bf384cb56397f214676330
refs/heads/master
2023-06-24T11:02:20.049076
2021-07-27T05:41:52
2021-07-27T05:41:52
390,221,916
1
0
Apache-2.0
2021-07-28T05:12:07
2021-07-28T05:12:06
null
UTF-8
Python
false
false
6,299
py
# # Copyright 2019 Xilinx Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
[ "hanxue.lee@xilinx.com" ]
hanxue.lee@xilinx.com
87e2e34cd88b80449f53b0b23c51ab0c97a4475c
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/matplotlib/tests/test_bbox_tight.py
75156dd3dbc6353a86fbbd7aa271332377e11de1
[ "MIT" ]
permissive
YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:d0e87aeafbbc475a3666277d1bdec7eb06bf7b352e7a0cff579b9b626931397c size 4949
[ "yamprakash130@gmail.com" ]
yamprakash130@gmail.com
3a1e46e742b223e8d66115e7718c1b5c477118c7
520219554d34df8a29f76304db424f1946b9171d
/accounts/migrations/0001_initial.py
d003fffc9f6edd9ed951a869070d4d4737d3835f
[]
no_license
amschaal/glims
c59aa2edbdec2267b9361e892efb7e871962372e
ce31f0179deb1b8e9659c688717ca37ebeee1cd8
refs/heads/master
2021-06-08T23:39:57.099783
2020-01-17T18:30:27
2020-01-17T18:30:27
55,446,799
4
0
null
2021-03-19T21:59:11
2016-04-04T21:31:38
Python
UTF-8
Python
false
false
984
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-06-08 20:01 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('glims', '0009_lab_url'), ] oper...
[ "amschaal@ucdavis.edu" ]
amschaal@ucdavis.edu
39b139325f2040b40a583a9abd5314225f88f95b
dfac17f0a181ef4630100d9bf5edb6979336f072
/ihub/migrations/0007_auto_20200824_0615.py
1c01312ff4d1fb66985a41c6f797c4c163271c0d
[]
no_license
rskelly/dm_apps
2ca1294f3a516b5bb5d3c8e6434c39b2cec6241f
ca9e90c546a8bc8ca3480f6aab4b872a4e88e24a
refs/heads/master
2023-01-18T17:40:12.407006
2020-11-03T18:03:54
2020-11-03T18:03:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
# Generated by Django 2.2.13 on 2020-08-24 09:15 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ihub', '0006_auto_20200722_1422'), ] operations = [ migrations.AlterModelOptions( name='entrynote', options={'ordering': ['...
[ "davjfish@gmail.com" ]
davjfish@gmail.com
9a2bb2c7bebee2da9c07dfb3cac5de0e721649e1
ec8d16934034255a0a4334b863795dc4f09e9c9d
/src/softeng1/experiments/src/sphinxjp.themes.impressjs/setup.py
cfc980a3d1af36d772f492b49311dbf814722a26
[]
no_license
zclfly/num-methods-for-PDEs
cb02847cbafafb291d0f9d0b22aa71bc8d2e4e3a
5e394daca40f17562c1c6d1f04dc3dbd4877aaf6
refs/heads/master
2020-12-11T05:32:01.549906
2014-12-17T14:37:10
2014-12-17T14:37:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,577
py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages import os, sys version = '0.1.2' long_description = '\n'.join([ open(os.path.join("src", "README.txt")).read(), open(os.path.join("src", "AUTHORS.txt")).read(), open(os.path.join("src", "HISTORY.txt")).read(), ]) class...
[ "hpl@simula.no" ]
hpl@simula.no
69b0c0a5010372ce40738d025269fefed2439aff
8d56828fb72dcbb502a857c48394ee3684120745
/parsers/blob.py
d8bef2591437db7fd85a7b5b968fe2d459950da0
[ "MIT" ]
permissive
ArseniySky/mitra
1a26166e39df76d4472ce2a3000fca46e5327034
bb6038587300d34072cda1409e3bb72772b11dc9
refs/heads/master
2023-01-03T05:39:51.486063
2020-10-24T15:35:56
2020-10-24T15:35:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
#!/usr/bin/env python from parsers import FType class reader(FType): DESC = "binary blob" TYPE = "BIN" def __init__(self, data=""): FType.__init__(self, data) self.data = data self.start_o = 4*1024*1024 def identify(self): return True
[ "ange.albertini@gmail.com" ]
ange.albertini@gmail.com
f7e23d3d67522574ea6f51ce116ce354230f640e
377ec156e459f70ad32e625de2dde2672736dd06
/Exercises/RedirectDemo/redirect_urls.py
6907247d052f81864290c4d3679e123af449888a
[]
no_license
tsonglew/learn-python
b657cc34d3e27993ec0dcce152796bea43224d4f
edbf0b5d24bf0e2d9ad7aa5811c7d3aa0a66b57c
refs/heads/master
2021-06-13T13:46:35.199562
2017-04-14T16:57:38
2017-04-14T16:57:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
from urlparse import urlparse, urljoin from flask import request, url_for, redirect def is_safe_url(target): ref_url = urlparse(request.host_url) test_url = urlparse(urljoin(request.host_url, target)) return test_url.scheme in ('http', 'https') and \ ref_url.netloc == test_url.netloc def get_re...
[ "417879751@qq.com" ]
417879751@qq.com
c81ca9d9e39d9b0f935865198b87041c03478a8f
f124e7540eea998470a39a9a385d6685dd395490
/python/django/sample_project/apps/push/models.py
319570fdc5067199306199a82a5ad8ea58dc8852
[]
no_license
seungjinhan/dev_sources
b165a4a2d04a8ad7689f263704339eadc9245447
c2f9261938cc6efad7d8edffe5484b5c9c6bce54
refs/heads/master
2023-01-29T03:59:13.327108
2020-05-17T13:20:07
2020-05-17T13:20:07
218,919,869
0
0
null
2023-01-24T01:24:21
2019-11-01T05:36:32
Java
UTF-8
Python
false
false
2,702
py
from django.db import models # Create your models here. class AppDevice(models.Model): no = models.BigAutoField(primary_key=True) app_key = models.CharField(max_length=100) app_version = models.CharField(max_length=20) device_os = models.CharField(max_length=10) install_date = models.Char...
[ "hanblues@gmail.com" ]
hanblues@gmail.com