blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
ac56b27c967404a47fd578fdbff927c73f1753f0
5e684563a57d28b4fd353f7c0ec6155d52db3b8c
/exerciciosw3resource/01.py
327f2de8264ae9ac72ef39c21ee74f79f07a1d86
[]
no_license
rafaellamgs/prog_comp2018.1
a42de9c3e0eae8c27c616664187f3917470d3a0e
89017f8dd8b77f8edee571ecb047eee6534d51f9
refs/heads/master
2020-03-28T02:10:54.899557
2019-01-02T19:09:26
2019-01-02T19:09:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
for number in range ( 1500, 2701): if number % 7 == 0 and number % 5 == 0: print(number, 'é multiplo de 5 e divisivel por 7')
[ "39624306+camumbembe@users.noreply.github.com" ]
39624306+camumbembe@users.noreply.github.com
995e5340e3e9b0c8c5de25b5387d45937c15f28d
ac7e039a70ba627f6d9a7a02c9a8849ed5e18a89
/unep.project-database/tags/0.5/reports/ProjectsByStaffReportFactory.py
098ba274cf4516efa70e202f34be5109ec024408
[]
no_license
jean/project-database
65a2559844175350351ba87e820d25c3037b5fb2
e818d322ec11d950f2770cd5324fbcd1acaa734d
refs/heads/master
2021-01-01T06:27:24.528764
2014-01-31T11:11:45
2014-01-31T11:11:45
32,125,426
0
0
null
null
null
null
UTF-8
Python
false
false
791
py
from Report import Report class ProjectsByStaffReportFactory(object): def __init__(self, context, **kw): self.context = context self.params = kw def getReport(self): # create and fill the report name = "Projects by Staff Report" report = Report(name) report.set...
[ "jurgen.blignaut@61ed036f-b72b-0410-9ea5-b9ec1d72d98d" ]
jurgen.blignaut@61ed036f-b72b-0410-9ea5-b9ec1d72d98d
ea9d3ee3230d73f421fb22d2f59af8f113c81b91
c1bd12405d244c5924a4b069286cd9baf2c63895
/azure-mgmt-network/azure/mgmt/network/v2015_06_15/models/load_balancing_rule_py3.py
695a8e63e56403f3519346e6c5ce8aa055f7b53e
[ "MIT" ]
permissive
lmazuel/azure-sdk-for-python
972708ad5902778004680b142874582a284a8a7c
b40e0e36cc00a82b7f8ca2fa599b1928240c98b5
refs/heads/master
2022-08-16T02:32:14.070707
2018-03-29T17:16:15
2018-03-29T17:16:15
21,287,134
1
3
MIT
2019-10-25T15:56:00
2014-06-27T19:40:56
Python
UTF-8
Python
false
false
5,391
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "noreply@github.com" ]
lmazuel.noreply@github.com
09df1cd07c077f07a91816f38d1c8539b004786e
d5579bf9341d8ae1edcbf3cce1b55ddb582be954
/test/integration/sagemaker/test_distributed_operations.py
8fdb943993445ee7cafc9d265d15363805d9919b
[ "Apache-2.0" ]
permissive
bearpelican/sagemaker-fastai-container
ad4759ecdc4cda4a50f63810edb2feda144d72d0
32173721a5bbdd0c9009001a778343884d3a117c
refs/heads/master
2020-04-07T06:30:42.041402
2018-11-19T01:13:21
2018-11-19T01:13:21
158,138,610
0
0
Apache-2.0
2018-11-18T23:53:36
2018-11-18T23:53:36
null
UTF-8
Python
false
false
2,380
py
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file acc...
[ "mmcclean@amazon.com" ]
mmcclean@amazon.com
59f898c24b7c31d0cbe76ef107a8a875644260fd
e4c6acac07427baf82b44c17198dab5b78b44fa7
/warn/warn.py
2e374b944fce69f2ab0ee357d7bfd5128807795a
[ "MIT" ]
permissive
scopatz/warn
bf1b33320031857233ee525fc56957a511eb2d37
a528bca192856f3cbf81e5fb133b143cb247a789
refs/heads/master
2020-04-06T05:30:32.463854
2016-08-29T00:23:41
2016-08-29T00:23:41
67,258,506
0
0
null
2016-09-02T22:20:43
2016-09-02T22:20:43
null
UTF-8
Python
false
false
8,594
py
""" A module that replace the built-ins warning module wit a more flexible interface. """ import warnings import sys import re from warnings import (_is_internal_frame, _next_external_frame, _filters_mutated, showwarning, defaultaction, onceregistry) wfmu = _filters_mutat...
[ "bussonniermatthias@gmail.com" ]
bussonniermatthias@gmail.com
db1548e5b6ec0456ee71194444efa7d5cb1a68a9
a2cd0076377f3b660d0d2ba8d3caf8382281492f
/hotel_channel_connector_wubook/tests/test_reservation_restriction_item_model.py
3ad7283debf0d8f19a926c2bf5416c8e15ce0603
[]
no_license
hootel/hootel
9f465beaabc9a5da9eb3d7f8aa1d8e987631301f
d46d3de23b8bae756400d7be645893ed11583ee0
refs/heads/11.0
2023-05-11T05:18:59.550231
2023-04-27T17:06:51
2023-04-27T17:06:51
123,324,791
33
35
null
2023-04-27T17:06:52
2018-02-28T18:24:23
Python
UTF-8
Python
false
false
1,920
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2017 Solucións Aloxa S.L. <info@aloxa.eu> # Alexandre Díaz <dev@redneboa.es> # # # This program is free software: you can red...
[ "noreply@github.com" ]
hootel.noreply@github.com
32299d75b478e539707e32ef50bd264407775fda
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02796/s396415723.py
183a9157222ec19c1853c4eb1252eb8dcabd5ca6
[]
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
222
py
rs = [(x - l, x + l) for x, l in (map(int, input().split()) for _ in range(int(input())))] rs.sort(key=lambda x: x[1]) last = - 10 ** 9 ans = 0 for l, r in rs: if last <= l: ans += 1 last = r print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
286e6feb771656a50d1d552a5583577d2f990bc4
ce816d60b9aa647951749f86e8ed3e2bedc12ba6
/fuzzylink/duplicates.py
62ae785afbb3b88cc122bf0514d941d1ba523d6a
[ "MIT" ]
permissive
tseastmond/fuzzylink
7c2bb1cecd0d97b24ff4c329a069255c774cbfe8
5aee255ab31b5a387694d512451e95791925ccfb
refs/heads/master
2023-04-19T06:26:42.615848
2021-05-11T17:15:11
2021-05-11T17:15:11
240,357,955
0
0
null
null
null
null
UTF-8
Python
false
false
7,668
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from multiprocessing import Process, Manager from os import kill from random import shuffle from time import time, sleep import pandas as pd from ._loop import _loop from ._memory_check import _memory_check from ._timer import _timer ##################################...
[ "teastmon@ucsd.edu" ]
teastmon@ucsd.edu
96ffb8e963ba918d639eb80f573bf228bf4480a2
c0eb3d8b8f7f25ba822da61db89c8b80203ff3aa
/deps/edk2/BaseTools/Source/Python/GenFds/FdfParser.py
83d3e1935e371e179e5dc73d615f5910060b5668
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
chanuei/LiBoot
95ace2b8b239b706f51967cd7376aa5c68246ff8
096e8752e0a9145e6c70fe809b51ff87d7a90383
refs/heads/master
2021-01-14T09:42:15.816352
2015-08-21T16:08:03
2015-08-21T16:08:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
194,375
py
## @file # parse FDF file # # Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR> # # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be ...
[ "maheshkhanwalkar@gmail.com" ]
maheshkhanwalkar@gmail.com
9cf43674f5ae4b67b40e064a3e7906ca50fe7a6a
99df94cb8fbbec6311a26ffd6146f98656a2e1c4
/app/core/proyectos/migrations/0001_initial.py
a3c70612bcb7ae32362830615f90e83db1370394
[]
no_license
luis114/Python
e9e36251c5b2cccaec499ac30df97286129bbae9
27879e6974a5e58d66ab9db4cfbb2bca49bbd963
refs/heads/master
2022-09-25T05:38:09.358209
2020-06-04T00:53:39
2020-06-04T00:53:39
269,226,069
0
0
null
null
null
null
UTF-8
Python
false
false
3,797
py
# Generated by Django 2.2.12 on 2020-05-14 00:14 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('userdata', '0003_auto_20200513_1531'), ] operations = [ migrations.CreateModel( ...
[ "64228042+luis114@users.noreply.github.com" ]
64228042+luis114@users.noreply.github.com
298fb512ae1280030836435e20ea3f5487152026
1bab425414ff522916c70fbc57562ad7e7e2aa64
/build_libtcod.py
94b053869450719211c905bff082869f96a359a8
[ "BSD-2-Clause-Views", "Python-2.0" ]
permissive
Rakaneth/python-tcod
c958797193a365c5ccd8b1cb9d1a143938e4ba05
70ff1895fd7ae87bf66f16e388211db389d983fd
refs/heads/master
2020-04-13T20:47:56.853106
2018-12-28T18:42:20
2018-12-28T18:42:20
163,439,619
0
0
NOASSERTION
2018-12-28T18:42:21
2018-12-28T18:40:01
Python
UTF-8
Python
false
false
11,464
py
#!/usr/bin/env python3 import os import sys import glob from cffi import FFI from pycparser import c_parser, c_ast, parse_file, c_generator import shutil import subprocess import platform try: from urllib import urlretrieve except ImportError: from urllib.request import urlretrieve import zipfile SDL2_VERS...
[ "4b796c65@gmail.com" ]
4b796c65@gmail.com
2bfb19c4ed33d2b895432f2794e91a2a83869bf2
a2832e8b13109e9c730995afda6037102f788d74
/MNIST_CNN.py
c4b9209ea57745713a7f101a3c985dfd5817d366
[]
no_license
NengnengZhang/my-nlp
abd3177792c4cbf8e901e7b4b06e400e784a2c4c
a6f160c5bd966abcf2133e9b8d3a4633439a94ef
refs/heads/master
2021-07-03T01:11:55.197620
2020-10-15T08:21:49
2020-10-15T08:21:49
182,517,293
0
0
null
null
null
null
UTF-8
Python
false
false
3,991
py
# Convolutional Neural Network,CNN import matplotlib.pyplot as plt import numpy as np import tensorflow as tf import com.hello.mnist.input_data as input_data mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) def weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1) return tf...
[ "nengneng_zhang@outlook.com" ]
nengneng_zhang@outlook.com
2bacde3214b0e7c787edcea2d2dd0a33a87aee18
d638e4a000327c7b0163020f9aef188023570ce2
/initialiser.py
7b43f4c8f2e93380b5898d829c43fe7dc337f992
[]
no_license
t-afo/Lymph
9d9fd205870d0badbf2349107267f58b3c006b28
e87a9517f8828fe1fda65ad2902c7a2deb202b40
refs/heads/master
2023-05-11T02:13:23.431036
2021-06-03T11:14:59
2021-06-03T11:14:59
373,480,105
0
0
null
null
null
null
UTF-8
Python
false
false
3,412
py
#Code for initialising conditions, along with supporting functions for 1 lymphangion import numpy as np import scipy as sp import matplotlib.pyplot as plt from scipy import optimize #Constants pa = 2190 pb = 2500 pe = 2140 Pd = 35 Dd = 0.025 mu = 1 L = 0.3 f = 0.5 t0 = np.pi / 2 #Valve resistance constants througho...
[ "42203782+t-afo@users.noreply.github.com" ]
42203782+t-afo@users.noreply.github.com
324787c4111ae0c7fbd6537e0453983a3e004533
0d9cfecca5ced625e3544b987e1da3648458fd0b
/Python/scripts/match_standalone.py
6e402e0d267d8c0c2562d1c39650610c44f63744
[ "MIT" ]
permissive
CandisZhao/SSF
34168de32f08a9ef0ccdf6c25df093b542f26cc2
133ed0518ed6b54bdcb781d78bc1fcd531211d8d
refs/heads/master
2020-12-30T15:41:35.327364
2017-11-16T07:28:51
2017-11-16T07:28:51
91,160,242
1
1
null
null
null
null
UTF-8
Python
false
false
9,162
py
#!/usr/bin/env python # vim:ts=4 sw=4 sts=4 et: """\ %prog [options] reference_complexes predicted_complexes Calculates matching scores between a set of reference and predicted complexes. The input files must contain the reference and the predicted complexes, one complex per line. """ from __future__ import division ...
[ "can.zhao1114@hotmail.com" ]
can.zhao1114@hotmail.com
90cda2194aab9ac1aa8576288440859c5c54fbbc
dd19ab77e237a80e32b25247b514b34bd99e22be
/scripts/build_seed2uniref_mappings_table.py
fb67bcf214f2634c92557ef09c94e337836eef84
[]
no_license
aekazakov/seed2kegg
54d65ab13c660a71c21dfd4dc1426fad9ecbb76c
b41aeda511d017eefe75231121c86d77fa796c55
refs/heads/master
2021-09-11T00:03:37.866608
2018-04-04T16:21:11
2018-04-04T16:21:11
125,553,927
0
0
null
null
null
null
UTF-8
Python
false
false
1,906
py
#!/usr/bin/python import sys import os.path import sqlite3 import argparse from context import seed2kegg from seed2kegg import db_utils from seed2kegg import seed_data_util from seed2kegg import data_analysis def get_args(): desc = '''This script builds a table of SEED genes mapped to UniRef. First, it compar...
[ "aekazakov@iseq.lbl.gov" ]
aekazakov@iseq.lbl.gov
d9868dd88cf02a964c6d945a91add7bd02582f0b
8dd003be19ec906c114420b362677414b513be43
/tutorial_07/exercise7_1.py
7eb40e4cde5e4fc12db13585adc12346a630740a
[]
no_license
kneureither/compMBP
c14cb85961f3f07fe9ac6368a0acf72abbd655d0
7108a16b85bab6ac7500bc572938a2b0efe96247
refs/heads/main
2023-06-10T16:49:37.675120
2021-06-18T12:45:37
2021-06-18T12:45:37
360,791,110
0
0
null
null
null
null
UTF-8
Python
false
false
5,027
py
import scipy import numpy as np import matplotlib.pyplot as plt from compMBP.tutorial_05 import ed from matplotlib import cm import functools def task_decorator(func): def inner(*args, **kwargs): print('--'*30) print(func.__name__) func(*args, **kwargs) return inner class MatrixProd...
[ "o.kuijpers@appliednanolayers.com" ]
o.kuijpers@appliednanolayers.com
d7a7dd541bc436358194e21d56e22cccd5a27ae9
5178f5aa20a857f8744fb959e8b246079c800c65
/02_oop/tr/src/23_list/list_tr2.py
1c3806bcda6b62f6a939b84a1cd64d558d120ece
[]
no_license
murayama333/python2020
4c3f35a0d78426c96f0fbaed335f9a63227205da
8afe367b8b42fcf9489fff1da1866e88f3af3b33
refs/heads/master
2021-05-19T04:03:46.295906
2021-03-09T22:23:58
2021-03-09T22:23:58
251,520,131
0
3
null
2020-10-26T01:20:09
2020-03-31T06:35:18
Python
UTF-8
Python
false
false
99
py
my_list = ["a", "b", "c", "d", "e"] my_list.reverse() print("".join([e.upper() for e in my_list]))
[ "murayama333@gmail.com" ]
murayama333@gmail.com
8171b639c10a5af7c9974b7827ca99ad7d23f1e9
9b93d0591edf01684254b460d26f56cc180eee24
/assignment2/neural_lm.py
a2b235e061eaaf246dd339944f941501097747fb
[]
no_license
GuyTevet/nlp-tau
5d9ad3da8722df395241123dccc187f4d9d2044f
bba13ec7ca8a24724c78ff37d269367bd9a03e69
refs/heads/master
2021-04-06T00:50:19.088880
2018-06-01T08:32:33
2018-06-01T08:32:33
125,262,087
0
0
null
null
null
null
UTF-8
Python
false
false
5,558
py
#!/usr/local/bin/python import pandas as pd import time import os.path from data_utils import utils as du from numpy import * from neural import * from sgd import * VOCAB_EMBEDDING_PATH = "data/lm/vocab.embeddings.glove.txt" BATCH_SIZE = 50 NUM_OF_SGD_ITERATIONS = 40000 LEARNING_RATE = 0.3 def load_vocab_embedding...
[ "guy.tvt@gmail.com" ]
guy.tvt@gmail.com
dfbe4793da8123e0dc4a52d5d76275ed55a387fe
e7d598e7b56f6cc2ddfb193d201b2bc9c06c6856
/rehab/models/pathology.py
be73eb29ca10117785b4bce3f0fab04430b434d4
[ "ISC" ]
permissive
RehabForAll/RehabProtocol
c13ed7c9facc899ffedadf846e0b4637ae52d8ef
f8a0a846ba3afedcd17671b077da5665310b7137
refs/heads/main
2023-08-03T17:02:27.846893
2021-09-29T17:39:46
2021-09-29T17:39:46
384,837,176
0
0
null
2021-09-29T17:39:47
2021-07-11T01:24:35
Python
UTF-8
Python
false
false
947
py
import json import uuid from dataclasses import dataclass, asdict, field from functools import cached_property from typing import List @dataclass class Pathology: """ Represents a pathology, which is initialized with a name and description. """ name: str description: str phases: List[str] = fi...
[ "gabe.cohen@hey.com" ]
gabe.cohen@hey.com
2ed787bbddbaa83abe0480f699b22342aef9d349
9355b7af3d03dfd7feeaf002b0a5c99b7d9678f0
/cloudpathlib/local/__init__.py
c6a1ba1e7ca427e6d8b62c37eeb68dc51a596663
[ "MIT" ]
permissive
rluta/cloudpathlib
64780e574e533a8c128285d10ecfb79c5be30f19
80f7afdf85dfb4f3ad0406944a5d3cf28c727435
refs/heads/master
2023-06-10T01:46:32.670933
2021-07-05T18:29:47
2021-07-05T18:29:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,035
py
"""This module implements "Local" classes that mimic their associated `cloudpathlib` non-local counterparts but use the local filesystem in place of cloud storage. They can be used as drop-in replacements, with the intent that you can use them as mock or monkepatch substitutes in your tests. See ["Testing code that use...
[ "noreply@github.com" ]
rluta.noreply@github.com
003e4fca3eace8c6be7169624bfe843f9b977a21
605a4d0c4fd3beb3a1c290317bea56ab2a86f999
/users/views.py
444b75024b1fe9b1e24205e41f052d9bfaeb1e0b
[]
no_license
Nikolai586/hw05_final
eda54ca105e4babb7b5a8154c99fdff019d2faa1
9e9f0c1738c03c60946b4447d6c2295351049b6d
refs/heads/master
2023-02-15T17:04:12.743697
2021-01-13T12:50:32
2021-01-13T12:50:32
254,456,352
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
from django.shortcuts import render from django.urls import reverse_lazy from django.views.generic import CreateView from .forms import CreationForm class SignUp(CreateView): form_class = CreationForm success_url = "/auth/login/" template_name = "signup.html"
[ "n.chistoprudov@yandex.ru" ]
n.chistoprudov@yandex.ru
122b76e57de2082a15a22ffe30f332ef29d31dd6
8245ecc361319340b5b196b76dc8cf1d5075c3b1
/reservations/views.py
6872d1de2dbff040b8a1412b6e1b63bdd5a01625
[]
no_license
Korimse/airbnb_clone
bc267e384fc098f179387ba3153614c71f999edc
c20a82cb196ad9ad6b697cf874bca34b5461c87e
refs/heads/master
2023-06-30T11:17:53.412006
2021-08-03T16:30:47
2021-08-03T16:30:47
391,269,669
0
0
null
null
null
null
UTF-8
Python
false
false
2,313
py
import datetime from django.views.generic import View from django.contrib import messages from django.shortcuts import render, redirect, reverse from django.http import Http404 from rooms import models as room_models from reviews import forms as review_forms from . import models class CreateError(Exception): pass...
[ "korimse@gmail.com" ]
korimse@gmail.com
66af24b8e79c42a8dc7aa3ebdc1ace6b22534927
f9e8733ed87858b12bfee6b70ccdddd6a616b60a
/73.py
1b81f914bf328740233161f9aaa72772c4032d9f
[]
no_license
MajestyLee/leetcode_TopInterview
c1c9c923d3bf42cd4777bb2a2ccd21654a7c6dbb
30b7d5acec716b7d754141835fc8bafe4411437e
refs/heads/master
2020-04-01T12:19:20.837383
2018-11-06T02:13:44
2018-11-06T02:13:44
153,200,785
0
0
null
null
null
null
UTF-8
Python
false
false
1,201
py
''' Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in-place. Example 1: Input: [ [1,1,1], [1,0,1], [1,1,1] ] Output: [ [1,0,1], [0,0,0], [1,0,1] ] Example 2: Input: [ [0,1,2,0], [3,4,5,2], [1,3,1,5] ] Output: [ [0,0,0,0], [0,4,5,0], [0,3,1,0] ] Follow up: ...
[ "binjie_lee@163.com" ]
binjie_lee@163.com
5c7defef90a65bb7f61aeef89e351f7402713492
62bcb903ed04041e9b896f6e18efca93dbc20fa6
/medium/79.py
c26c1bc3810757d26a6cb4d4835ebf77e29e250d
[]
no_license
moxi43/leetcode-to-the-moon
41022dbb5f5640eeaf39acbc852401a1f6b7cfed
b3ff69e9cb6139668496f1258bb7690769e762e9
refs/heads/main
2023-08-25T20:43:03.623753
2021-10-11T04:32:08
2021-10-11T04:32:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
# Link to the problem: https://leetcode.com/problems/word-search/ class Solution: def exist(self, board: List[List[str]], word: str) -> bool: for i in range(len(board)): for j in range(len(board[0])): if board[i][j] == word[0] and self.traverse(board, i, j, word): ...
[ "vostretsov0505@gmail.com" ]
vostretsov0505@gmail.com
7fb65c504197305fd3cdcc370807cdcc1aa103a4
f79061c27f0f1c718d2cfdea5d5281c5a6eeaaf7
/platforms/typescript.py
29f5c56cb6398b0653d9d96cd8c5268fe2335409
[ "Unlicense" ]
permissive
jt28828/fontawesome-enum-generator
09bec3297ab192ee88bc7b66be5d1ab62b70e0c6
30b27885f3c3dadb5b17af5033b4c57169dda8f4
refs/heads/master
2023-02-15T12:42:24.242274
2020-07-15T12:14:45
2020-07-15T12:14:45
279,809,508
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
from typing import Dict, TextIO from utils.file import write_enum from utils.string import to_pascal_case def read_template() -> str: template_file: TextIO = open("./file_templates/typescript-enum.ts", "r") return template_file.read() def as_enum_row(key: str, json: Dict) -> str: enum_name = to_pascal_...
[ "jt28828@gmail.com" ]
jt28828@gmail.com
a026a57ad5eda7c9a365e0e346865752f3c49fce
87020f242ca9087dfef226f5114ad9691313fddb
/search.py
140f03c40c7ebf21714cbdb772ed0453ca6b5452
[ "ISC" ]
permissive
tslight/dsa
18ee40cf57aec88a6d97f172df6e49f296676050
c59ff7c4e25908086ac7589d1a763fc311bdad50
refs/heads/main
2021-12-02T10:07:51.058416
2021-08-27T16:15:24
2021-08-27T16:15:24
398,352,193
1
0
null
null
null
null
UTF-8
Python
false
false
2,995
py
from argparse import ArgumentParser import sys import timeit def get_args(): parser = ArgumentParser( description='Search for an item in a list. ' + 'Defaults to a sorted list of 10 million elements ' + 'and searches for the last element.' ) group = parser.add_mutually_exclusive_gr...
[ "tslight@pm.com" ]
tslight@pm.com
b91382be96010e2e1aefacdcb707ef46b39f8400
3ca6302ebdc0e47d5d462435ad24a2886cfa5063
/64.py
5ce1111db6333ea60c31349788bb7a2df4797496
[]
no_license
Sem31/PythonBasics
3859276820d484025d6c3d8f9efaf131b8626da8
d9bfd520b67056a3cbb747f7a4b71fe55871c082
refs/heads/master
2020-04-24T19:09:48.608293
2019-02-23T10:56:26
2019-02-23T10:56:26
172,203,384
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
#create csv file by this programs import csv with open("example1.csv",'w')as obj: field = ["name","salary"] writer = csv.DictWriter(obj, fieldnames=field) writer.writeheader() writer.writerow({'name':'bob','salary':10000}) writer.writerow({'name':'sem','salary':40000}) writer.writerow({'name...
[ "semprajapat31@gmail.com" ]
semprajapat31@gmail.com
d6be0f7331fa6b064a004a0259e1d74da5084b2b
aa3f0f41cf53b71ac6d070025a5b2150ff6a30ca
/main.py
23d5c89f8c56bf49e6225b028963807e90793572
[]
no_license
camilled671/diaz-camill-set-up
bccb73576953fa4f3f9e22ee8c8fcda0040dc7f6
664707947544f404560c1e6590340271c35ceca5
refs/heads/master
2022-12-28T18:41:20.157834
2020-10-19T17:48:12
2020-10-19T17:48:12
305,466,605
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
def on_forever(): pass forever(on_forever) light.show_animation(light.rainbowAnimation, 500)
[ "72838912+camilled671@users.noreply.github.com" ]
72838912+camilled671@users.noreply.github.com
1e29bf8238137d9c10cafa4a39b30bda313da58b
e4aa334316c940f07cbf87176be53c7cb8703345
/08_pr.py
cf20f3e7f201b59596c4e8ec470a807f2c028389
[]
no_license
kumarsaurav20/pythonchapters
f6a9d0a04278f57dabe4bffc1ad91b46f2694ee4
a45627aabbec22f7f5e6df107d3fe19a846bd33e
refs/heads/main
2023-07-05T22:48:13.618485
2021-08-08T06:17:51
2021-08-08T06:17:51
386,627,105
0
0
null
null
null
null
UTF-8
Python
false
false
86
py
# Check that a tuple cannot be changed in pyhton t = (2, 4, 5, 8) t[0] = 0 print(t)
[ "noreply@github.com" ]
kumarsaurav20.noreply@github.com
b144b7816aafcab541d963b588d1e7bdc49ea124
0f17dce7c6f8c659b5dcdcf5d0f34942aaaf55af
/bilinear_interpolation.py
8a53740e5483155c201ba7060b5829f17da12fa0
[ "MIT" ]
permissive
HelinXu/NA_project1
99516d01ea55510cb8e0832b7730160349fe6517
5a62b12832819d39a2872669ab9fee077c9d1d8f
refs/heads/main
2023-08-23T22:24:15.893537
2021-10-15T04:15:04
2021-10-15T04:15:04
417,161,050
0
0
null
null
null
null
UTF-8
Python
false
false
2,467
py
# NA project 1_1 # Auther: Helin Xu import cv2 import numpy as np import math from math import pi as PI def read_img(): img = cv2.imread('./img/qr-polar.png') return img def bilinear_interpolate_v1(img, length): ''' version 1 length must be aligned to the original image. ''' output_img ...
[ "xhl19@mails.tsinghua.edu.cn" ]
xhl19@mails.tsinghua.edu.cn
c73e52136d599822c89c4bad081b5f3c2bd8bf63
9425d564cb8c19f0213697ba24eaa512dabd24a4
/contour.py
e5f64dab769811df855574fce54e3ca04435c920
[]
no_license
linzhibo/auto_rectangle_detection
bf557fadedb9ebc51843021779d2d68e578e20ef
5b17e614ba6cfd70d09e91eaef5b44524276e4ad
refs/heads/master
2020-03-15T03:41:02.377770
2018-05-03T05:58:16
2018-05-03T05:58:16
131,948,266
0
0
null
null
null
null
UTF-8
Python
false
false
3,035
py
import cv2 import numpy as np import sys import os import numpy as np from matplotlib import pyplot as plt def angle_cos(p0, p1, p2): d1, d2 = (p0-p1).astype('float'), (p2-p1).astype('float') return abs( np.dot(d1, d2) / np.sqrt( np.dot(d1, d1)*np.dot(d2, d2) ) ) def find_squares(vid): vid = cv2.GaussianBl...
[ "zhibo98@hotmail.com" ]
zhibo98@hotmail.com
0b76eb3152ea21f50c238690516d9c4b250c8271
1c9a0b4b5fd25c73f99bd9839973ca652077d078
/fotogram/migrations/0002_auto_20200227_1244.py
aaf779808dd2cd6c492c12e4e2a2dc894a1e9143
[]
no_license
vthakur-1/fotogrammysite
eebc2a7ebe2a2d3133153ecc046b3de32b77dbb6
14be1758a170fcd70be555fd918e5c40277427e2
refs/heads/master
2021-01-16T04:26:51.472003
2020-03-03T09:17:11
2020-03-03T09:17:11
242,975,961
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
# Generated by Django 2.2.9 on 2020-02-27 12:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fotogram', '0001_initial'), ] operations = [ migrations.AlterField( model_name='profile', name='image', ...
[ "vthakur@bestpeeers.com" ]
vthakur@bestpeeers.com
89b1f16b7c44389e677d7b3500ffc2e6d9da37f5
9600a6178957e9e37d073dde4f65690796eb6dff
/.venv/bin/symilar
2a8796f197c6cab58958b756f733b316bbbeaf8d
[]
no_license
gregoryswedeen/IOTActiveNoiseCancelling
96ee30e9adc0f473a969607929235227944ea26b
ee20de6c1f3a056c817d3a437fbc9d70f5bfd6dd
refs/heads/master
2020-04-10T10:34:30.133340
2018-12-08T19:19:50
2018-12-08T19:19:50
160,970,021
0
0
null
null
null
null
UTF-8
Python
false
false
247
#!/Users/greg/Desktop/IOT/.venv/bin/python # -*- coding: utf-8 -*- import re import sys from pylint import run_symilar if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run_symilar())
[ "greg@Gregs-MacBook-Pro.local" ]
greg@Gregs-MacBook-Pro.local
9fea6a7e73c6e6d9c9615de59079f3c61274895b
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/tourn.py
b96981b870a4794e10ed270201c3a0c1ab925f9b
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
26
py
ii = [('MereHHB3.py', 13)]
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
fb2be3e6b7ee3d9b312742dd57afeede7ca2bac3
a654ff745707f986643719e34ccc279dd7639368
/EmailFetcher/manage.py
0ce7d610b43c20c4bb543bd193e7e201bda7b64f
[]
no_license
Slammy-akash/Email-Fetcher-Web-App
8936c6553f2d0114389c92b51f63086d2f426ecf
a6ddaf12d18dd73cddf2d31f94dac5cbe732ad75
refs/heads/master
2023-07-20T16:21:24.166181
2021-09-01T16:25:48
2021-09-01T16:25:48
402,082,751
0
0
null
null
null
null
UTF-8
Python
false
false
668
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', 'EmailFetcher.settings') try: from django.core.management import execute_from_command_line except...
[ "akashlonkarmail@gmail.com" ]
akashlonkarmail@gmail.com
621a71a66735f63280d746b371e164c3f0f864c3
b52732e4f54c9f04d10378b05e8cb4575a7c1122
/gams_parser/gams_parser.py
699d7bda3ee656a93bc461b0e1ffe72a01050a01
[]
no_license
anderson-optimization/gams-parser
759344ded12d45ec10115d3517f564855f506007
3786206a34d6a6ae08d9525965ddc21df0beefe1
refs/heads/master
2020-05-02T23:26:49.920945
2019-09-17T21:23:12
2019-09-17T21:23:12
178,280,296
6
1
null
null
null
null
UTF-8
Python
false
false
1,784
py
from lark import Lark import os from .tree_injector import TreeInjector from .tree_to_model import TreeToModel import logging logger = logging.getLogger('gams_parser') dirname = os.path.dirname(__file__) grammar_gams = os.path.join(dirname, 'grammar/gams.lark') grammar_ao_inject = os.path.join(dirname, 'grammar/ao...
[ "ericjanderson4@gmail.com" ]
ericjanderson4@gmail.com
59dff948764973fa5020813450cbf72ec9b819a3
7e6ecf52e90d618ebb2df7be864e1370543540a8
/30/loginhash/myhash/views.py
dc6e2736ba65cff3214430745b84cbdd7c615e0a
[]
no_license
rangai/draft_0
76be571d40043b98c9faa830a5924b4886e9d975
bf7ff892b167ebae0ad9378f9aebd0b3cf3c8e48
refs/heads/main
2023-08-27T03:58:49.876422
2021-11-03T07:22:31
2021-11-03T07:22:31
397,608,738
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
import hashlib from django.contrib.auth.decorators import login_required from django.shortcuts import render, redirect from myhash.models import Myhash from myhash.forms import MyhashForm def top(request): myhash = Myhash.objects.all() context = {"myhash": myhash} return render(request, "myhash/top.html"...
[ "fibo.112358132134@gmail.com" ]
fibo.112358132134@gmail.com
5dcce59288ba49c09d94cfea168bf68303a22c56
cd02ebba78037ecc06c77fa3c7f1ac942613d330
/UR5_Move/build/universal_robot/ur_description/catkin_generated/pkg.installspace.context.pc.py
cb37c28f0a2cde3b23c13fd45d1ea0d1e9f6d4ef
[]
no_license
tianxiang84/ROS_Project
8e63cf2dad1fc0aa7db8d1ede0eb370be3b92d0a
7b1efe121fde034fcf5e377877c0106f248e4d5c
refs/heads/master
2021-01-24T13:29:05.231000
2018-02-27T19:17:00
2018-02-27T19:17:00
123,176,284
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "ur_description" PROJECT_SPACE_DIR = "...
[ "su.tianxiang@gmail.com" ]
su.tianxiang@gmail.com
194ec17dc4782d8db8ac1bd6cb988904879d5cd0
f64adace83544d6653a1025cc6ded9c46be269f3
/week1/week1-1.py
b569e07d9ccf77725776702d1d3175444864fa95
[]
no_license
yved/python_lesson2
f7626edae91085aed27ea8838ee4852ea77bda14
7170cf8ae85bf50a993efcff3dc901ed3148b03c
refs/heads/master
2020-04-29T11:28:20.423368
2019-03-08T13:06:03
2019-03-08T13:06:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
# #商管程式設計二第一周上課內容 #five littile duck #function #版本一 def over_mother(): print("Over the hills and far away") print("Mother duck said quack quack quack") def n_duck(num): print("%s litte ducks went out day" % num) def only_n(num): print("But only %s little ducks came back" % num) # n_duck("Five") # over_mother() #...
[ "n0975116268@gmail.com" ]
n0975116268@gmail.com
a02991bb550d24cd031f5ec463f1626b4f85959b
53787e5cc1f2c9112c79cf5f6b07fc7961419c08
/scripts/decoder_performance_plots.py
5d74e05757f706095a5d8577605e0ac07039b691
[]
no_license
sanjayankur31/BillingsEtAl2014_GCL_SpikingSimulationAndAnalysis
a1ccbf0ffa295eef11da515ff0de9b83d3c9dee2
52f95f6425c3d732bca2362c6fcd7c7e6987eee6
refs/heads/master
2021-05-28T03:45:49.352361
2015-01-09T11:25:33
2015-01-09T11:25:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,655
py
import numpy as np import matplotlib matplotlib.rc('font', family='Helvetica', size=18) from matplotlib import pyplot as plt linewidth = 1.5 file_extension='eps' training_size = np.loadtxt('../../data/data_training_size.csv', delimiter=',') training_size_mi_poor = np.loadtxt('../../data/data_training_size_mi_f0.1.csv...
[ "e.piasini@ucl.ac.uk" ]
e.piasini@ucl.ac.uk
32f32d142cd5b87ef07bfe78179e6dbe85a6fe01
a368d89f996f035f02e8b2f0b5ab62e4738b311b
/level1/lesson3.py
660599626f422afdb3473d92a1399d4e458ef3e7
[]
no_license
iiinjoy/algorithms_python_lessons
e95934b50734508b95eca67249ffc66979e154c1
16ac0db57de8d12b4920e433b734c84f4264b301
refs/heads/master
2021-01-15T01:45:00.203631
2020-11-20T14:59:17
2020-11-20T14:59:17
242,836,966
0
0
null
null
null
null
UTF-8
Python
false
false
2,367
py
#!/usr/bin/env python3 import ctypes class DynArray: def __init__(self): self.count = 0 self.capacity = 16 self.array = self.make_array(self.capacity) def __len__(self): return self.count def make_array(self, new_capacity): return (new_capacity * ctypes.py_objec...
[ "iiinjoy@gmail.com" ]
iiinjoy@gmail.com
bdebc2ca24df7c0c89118d81e345933c293f4e6b
3320082ef45c39e62157c487052758f0b4a86c33
/app/TaskAPISchedulerEngine/TaskAPISchedulerEngine/wsgi.py
2c6491c47b9ead6cabfdaa12f7f6f15d12b016ce
[]
no_license
art-bug/TaskAPIScheduler
f24e6fb8d7e783d6f3ce9eb083d8c62380480e9c
5cdf9b9dad54b67b68b34bc71ebf4eff40fcccc3
refs/heads/main
2023-01-12T16:28:21.096985
2020-11-16T06:50:22
2020-11-16T06:50:22
313,212,460
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
""" WSGI config for TaskAPISchedulerEngine 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefaul...
[ "artbag94@gmail.com" ]
artbag94@gmail.com
43171e67ff9e36899ce8b565c03eaac899555a02
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/components/policy/tools/PRESUBMIT.py
8d6bc1a9cc400f3e06219f8a9d4ecd123cddc991
[ "BSD-3-Clause" ]
permissive
otcshare/chromium-src
26a7372773b53b236784c51677c566dc0ad839e4
64bee65c921db7e78e25d08f1e98da2668b57be5
refs/heads/webml
2023-03-21T03:20:15.377034
2020-11-16T01:40:14
2020-11-16T01:40:14
209,262,645
18
21
BSD-3-Clause
2023-03-23T06:20:07
2019-09-18T08:52:07
null
UTF-8
Python
false
false
847
py
# Copyright 2020 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. def RunOtherPresubmit(function_name, input_api, output_api): # Apply the PRESUBMIT for components/policy/resources to run the syntax check. presubmit_pa...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
d04d69a830c7cfa1d28c20023309327dad01a9dd
a20f588629b8d27655b3e47ccb517c3e7fdb1c80
/tests/test_fitsmanager.py
924d73e9cb0da045ab2461895e4000423d0525c9
[ "MIT" ]
permissive
lgrcia/prose
52d114f5efff539bcbf2a418de2ca03ef2c12518
1c90ff6ebef671b2e74f30643656d1528ed45190
refs/heads/main
2023-08-03T08:50:24.294406
2023-07-21T15:25:47
2023-07-21T15:25:47
259,437,330
45
8
MIT
2023-08-30T00:10:15
2020-04-27T19:56:37
Python
UTF-8
Python
false
false
530
py
from astropy.io.fits import Header from prose import FitsManager, Image, Telescope def test_empty_header(tmp_path): im = Image() im.writeto(tmp_path / "test.fits") FitsManager(tmp_path) def test_custom_fm(tmp_path): im = Image() keyword = "FILT" value = "test_filter" im.header[keywor...
[ "lionel_garcia@live.fr" ]
lionel_garcia@live.fr
9d43309417fafb43f5aaf4c0c7e0890f85b8e219
b5df682b69682dbb2ba954e28b0fbd76b41ba465
/OWL/migrations/0001_initial.py
e6cff32955b5ac15fb0df187bcdc482babfdecaf
[]
no_license
nlittlepoole/Bernie-s-Army
4c61a665def4f0e29d38fc2a3f50d43d8f2e3382
9504ebc5269e2431c7c40f8bd1e4cf1b395a9af0
refs/heads/master
2021-01-11T10:47:40.352664
2015-05-19T02:23:23
2015-05-19T02:23:23
35,443,721
0
0
null
null
null
null
UTF-8
Python
false
false
690
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Soldier', fields=[ ('id', models.AutoField(verb...
[ "nl2418@columbia.edu" ]
nl2418@columbia.edu
a6a6984813486278c4dc89f5e5201d922504d0eb
fcaa66bb55cb96342fc673e88363337fac95a184
/MovieApp/migrations/0004_auto_20210610_1948.py
c749cbeeb8d6a5a28e0b123163bcbbfbf191e942
[]
no_license
rushabhgediya38/MovieTicketBooking
3f0ab4fbea6011c47968ae0d50a42d8bacf4ffdb
beeb59d671d96418c0959ed072f4ffcf517a1b0c
refs/heads/main
2023-05-14T05:55:09.176174
2021-06-13T15:02:42
2021-06-13T15:02:42
375,613,410
0
0
null
null
null
null
UTF-8
Python
false
false
673
py
# Generated by Django 3.2.4 on 2021-06-10 14:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('MovieApp', '0003_images'), ] operations = [ migrations.CreateModel( name='M_lang', fields=[ ('id', m...
[ "rushabhgediya38@gmail.com" ]
rushabhgediya38@gmail.com
a3ec93a7b13f164f0ce903611bb8dd6f8cd55385
a67961da00957467c6f79e119e3faa6072970c0b
/Assets/Scripts/Weapons/Weapon.py
0e9a097a027e395d4f8de4b0675e0ca4fd3fc62f
[]
no_license
westtr-gv/tercio
d10300ae5336d99e34334e8991b16ab02078ea9a
bf11775f83f8bf4f1a97e84322afc8b5a88f6572
refs/heads/master
2020-12-15T18:11:15.438290
2020-02-24T13:08:40
2020-02-24T13:08:40
235,206,248
0
0
null
2020-02-12T19:28:22
2020-01-20T21:54:59
Python
UTF-8
Python
false
false
314
py
""" This script will be inherited by each type of weapon (Melee and Ranged), and hold the basic information that is relevant to any kind of weapon """ import pygame from LeagueEngine import * class Weapon(DUGameObject): def __init__(self): self.damage = 1 self.attackSpeed = 2
[ "17kisern@gmail.com" ]
17kisern@gmail.com
e2315618261019a8385b4bde0fe248eef4ec9cf6
6fc75fec537f4b8211c358649dc63d71940a6f34
/app/core/admin.py
0e15594ccfb4a231476e867860aa69c2a6e051ff
[ "MIT" ]
permissive
henryvalbuena/recipe-api
a8d9e0c05112f0651409b48608106efe2e1bf2ab
60e8a4e4f3c576ef1bd12740083fc0f6c22f4bc3
refs/heads/master
2020-07-25T06:41:14.415226
2019-09-18T23:33:34
2019-09-18T23:33:34
208,199,348
0
1
null
null
null
null
UTF-8
Python
false
false
902
py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from core import models # Register your models here. class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'name'] fieldsets = ( ...
[ "dev.henryvm@gmail.com" ]
dev.henryvm@gmail.com
96f93bf467f72e4c91c462af4e93915455cbeeb7
4d19ee7c0d80b6cc94b543c12b1f74bfee8dab4d
/Python1/python1/nested.py
e13db486bf10b2decc630195978ca6540e7651ab
[ "MIT" ]
permissive
ceeblet/OST_PythonCertificationTrack
df8d640b95ca0d1f7d45960f46253b899291c880
042e0ce964bc88b3f4132dcbd7e06c5f504eae34
refs/heads/master
2016-09-05T19:21:26.887824
2015-03-17T14:25:50
2015-03-17T14:25:50
31,505,190
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
#!/usr/local/bin/python3 """ Nested exception handling """ def divide(a, b): """ Return result of dividing a by b """ print("=" * 20) print("a: ", a, "/ b: ", b) try: return a/b except (ZeroDivisionError, TypeError): print("Something went wrong!") raise if __name__ == "__mai...
[ "cbrown@navinet.net" ]
cbrown@navinet.net
c7e85775629e15d592aad6dc1b386daa9b3152fc
524591f2c4f760bc01c12fea3061833847a4ff9a
/arm/opt/ros/kinetic/lib/python2.7/dist-packages/sensor_msgs/msg/_PointCloud2.py
63495f1677ff10df73ab8c86a47cfff83c7bb456
[ "BSD-3-Clause" ]
permissive
Roboy/roboy_plexus
6f78d45c52055d97159fd4d0ca8e0f32f1fbd07e
1f3039edd24c059459563cb81d194326fe824905
refs/heads/roboy3
2023-03-10T15:01:34.703853
2021-08-16T13:42:54
2021-08-16T13:42:54
101,666,005
2
4
BSD-3-Clause
2022-10-22T13:43:45
2017-08-28T16:53:52
C++
UTF-8
Python
false
false
13,149
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from sensor_msgs/PointCloud2.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import sensor_msgs.msg import std_msgs.msg class PointCloud2(genpy.Message): _md5sum = "115...
[ "simon.trendel@tum.de" ]
simon.trendel@tum.de
baf02ed9910963e5ed29164ba414f88415d59e00
ae5bdb32f5ae61f422e537222601e0fe4f86739c
/py2app_tests/argv_app/setup.py
432f60efe00ec2498ecebe46d1699b3bb23c06bb
[ "MIT", "Python-2.0" ]
permissive
acclivity/py2app
beeefa84eaeaa40edfcbed25d4edb500ddd60a61
a3dafb2c559dc9be78ebe1c44887820f9451806c
refs/heads/master
2021-03-26T09:11:01.176301
2020-03-16T22:25:26
2020-03-16T22:25:26
247,691,716
0
0
NOASSERTION
2020-03-16T12:04:10
2020-03-16T12:04:09
null
UTF-8
Python
false
false
148
py
from setuptools import setup setup( name='BasicApp', app=['main.py'], options=dict(py2app=dict( argv_emulation=True, )), )
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
f9cb989c8163b4dc1f891d8bb5dd73e77e8fcd38
06d9fc57608b775fcd3944f29ea9ae0d9143a710
/code/exercises/07_DataStructures/ex_07_07_global.py
0aaa1f30e4e6c668e757f99e3af864faf21914b2
[ "Apache-2.0" ]
permissive
chiachang100/learn-to-code-with-python
bbde94d48566e962888286aea902befc8481a464
fe16115cb3be612d5abd8ffdbd6a14a37d6b4d52
refs/heads/master
2022-03-25T11:15:18.820484
2019-11-21T01:27:01
2019-11-21T01:27:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
#!/usr/bin/python # Filename: ex_global.py x = 50 def func(): global x print('x is ', x) x = 2 print('Changed local x to ', x) func() print('Value of x is ', x)
[ "chiachang100@gmail.com" ]
chiachang100@gmail.com
83ae553fb14325ec70a9a373c9e33ad74c4c1844
e997e95cdda60b898d2da30a4ce2f27119532a3f
/main.py
f3f6430cc0e3e25deaf00ab80bc65d942573a046
[]
no_license
dperezc21/guane-intern-fastapi
23ea8c9f540a060d03bc34cd8b68a8db58477e80
42d2b1b2cf4881d811dc24a9d00490bbec091967
refs/heads/master
2023-05-08T03:19:34.009368
2021-05-28T02:40:56
2021-05-28T02:40:56
370,084,992
0
0
null
null
null
null
UTF-8
Python
false
false
2,299
py
from fastapi import FastAPI from database import db from crud.crud_dog import * from crud.crud_user import * from schemas import ModelDogs, ModelUser from auth import * from fastapi import Depends from fastapi.security import OAuth2PasswordRequestForm from models import * app = FastAPI() @app.on_event('startup') de...
[ "davierperez11.2@gmail.com" ]
davierperez11.2@gmail.com
d4dd8d3af20c272a50ffd0226634bd7465a6f2ee
6ff12f51b9a1b9f751cec3df21813803d2455f1e
/tools/link_graph_generator.py
cf503594caed97072da3912f1fad3b5706416592
[]
no_license
prdx/PoliteScrapper
5d40089bb399c3d08fb848355b73cdc530c8327c
e84a49fa197e484361d2e69421b32fd4240c884c
refs/heads/master
2020-03-23T18:36:21.340544
2018-08-01T21:48:14
2018-08-01T21:48:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,554
py
from bs4 import BeautifulSoup import os import pickle files = [f for f in os.listdir('.') if os.path.isfile(f) and f.endswith(".xml")] outlinks = {} inlinks = {} def generate_outlink_file(): print("Generating outlinks file ...") # Generate outlinks for xml in files: try: with open(xml...
[ "astungkara.project@gmail.com" ]
astungkara.project@gmail.com
04d11322b67cf04250275997e9f96e08b6189c9e
2e09fd737be7dadf9d89da654ad87b617244c838
/migrations/versions/ff4b9656bd74_.py
cbe6236df7cb7308693031d497ad323b4fa4dae8
[]
no_license
ahmadalthamer/fyyur
6392cf011d6aa984fd7da1233500bd7796fe7695
45b0b4a5579397549547626b4fdfdf02b86e0fcb
refs/heads/master
2022-06-21T09:22:06.661163
2020-05-14T23:38:00
2020-05-14T23:38:00
261,534,370
0
0
null
null
null
null
UTF-8
Python
false
false
841
py
"""empty message Revision ID: ff4b9656bd74 Revises: fe0e9b829e71 Create Date: 2020-05-12 03:48:11.041139 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'ff4b9656bd74' down_revision = 'fe0e9b829e71' branch_labels = None...
[ "ahmad.althamer@hotmail.com" ]
ahmad.althamer@hotmail.com
12743efafbf2db040d55e3bac3802bdfe66aef1f
835aedfce2b3d84d81861420fed5f801831b3b4f
/Prototype/Packet_Summary_Questions.py
ebb8c2ab5ed5c89ea4ff5cc7325da957c162db53
[]
no_license
alifa2try/Mirai_Bot_Scanner_Summation_Prototype
74d6dfbd5123b5727bf13ea350dff93aa0a23ad0
380b248c7eb8240c3bb178404261be8e11560116
refs/heads/master
2020-07-09T05:12:23.348776
2019-01-23T19:36:23
2019-01-23T19:36:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,113
py
## Student: ## Charles V. Frank Jr. ## charles.frank@trojans.dsu.edu ## ## University: ## Dakota State University ## ## Date: ## August 15, 2018 ## ------------------------------------------------------------------------------------------- ## Module: ## Answer_Research_Questions.py ## ----------...
[ "noreply@github.com" ]
alifa2try.noreply@github.com
1b00196825631a6f44decdbf3560208ff455bf28
d354d2da2a6bd47aa0f545a0bf351e982882ea4c
/setup.py
03aded87728f2e3159fcc416da43efee5d4887cd
[ "MIT" ]
permissive
acodebreaker/pywsd
27dffb27a0961dbe5d09e71cc4f18e3dba10bfdf
ec8dd4bead6108e04250591d1732afcc9b0fb1bb
refs/heads/master
2021-01-18T01:40:48.909216
2014-11-24T07:25:17
2014-11-24T07:25:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
#!/usr/bin/env python -*- coding: utf-8 -*- # # Python Word Sense Disambiguation (pyWSD) # # Copyright (C) 2014 alvations # URL: # For license information, see LICENSE.md from distutils.core import setup setup( name='pywsd', version='0.1', packages=['pywsd',], long_description='Python Implementations ...
[ "alvations@gmail.com" ]
alvations@gmail.com
93dffeb1d6be0528a53c287b319ac6dabad50101
c09fa8f3c25b738b6ac5e7b9f474dff97d4b3e6e
/src/handler/weixin_vaild.py
960b8949dff01e938a3ec4a68c933a511b6e7781
[]
no_license
xu-yongliang/wechatDevelop
084079819560550a9f49cb5d9fc3c70525e36c9a
025bb40f3f532b451b4fb308c5d9b2bf5b294343
refs/heads/master
2021-06-06T23:42:28.915954
2016-10-09T06:26:59
2016-10-09T06:26:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,397
py
#!/usr/bin/python # encoding:utf-8 from wechat_sdk import WechatConf, WechatBasic from baseHandler import BaseHandler from helper.process import ProcessBody # 集成baseHandle ,实现do_action方法 class WeixinVaild(BaseHandler): def do_action(self): # 创建wechat sdk 把消息给封装起来,方便调用验证,以及消息提取和消息回复 conf = Wechat...
[ "xuyongliang@haizhi.com" ]
xuyongliang@haizhi.com
44b0f8140acf2ee96f151344629234de62c648f2
3e5150447a2c90c26354500f1df9660ef35c990b
/classes/str/.rstrip()
2409992c6e0c6d0f2ce555b6bc34fe5f619190e3
[]
no_license
kilirobbs/python-fiddle
8d6417ebff9d6530e713b6724f8416da86c24c65
9c2f320bd2391433288cd4971c2993f1dd5ff464
refs/heads/master
2016-09-11T03:56:39.808358
2013-03-19T19:26:19
2013-03-19T19:26:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
64
#!/usr/bin/env python print "1 ".rstrip() print "1\n".rstrip()
[ "cancerhermit@gmail.com" ]
cancerhermit@gmail.com
ae03b937573efae64738241bb1ef7d3cdce0ca08
c38389bc55bb1021d5af3e234bb509c322d9d574
/djproject/urls.py
4fae2b0de8a02299469c9d75d91f3f247e55f0e2
[]
no_license
kcemenike/djproject
bb22c546776f714be3ea41510cae8c26947428a7
a6c61977afb30ae1ab0f066fa0e5cd3171922eb2
refs/heads/master
2020-04-13T19:14:12.473587
2019-01-08T19:58:55
2019-01-08T19:58:55
163,396,455
0
0
null
null
null
null
UTF-8
Python
false
false
891
py
"""djproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-bas...
[ "kc@KCEKALI.lab" ]
kc@KCEKALI.lab
838027b05c4975fc5f55b86184077144347a1bad
4f21e3301c1a8699745528177b3210b4f1a1f1d5
/week10/project2/library/settings.py
4dbdb1bf1faf2c3a9ac45fabe288d8e6aa05c0ca
[]
no_license
ndina/webdev2019
7fd0250b662b378d55e24e931f82d0b2538d63a5
eae4808e2f0bfcdd5a366fd4692c041b96faaa0b
refs/heads/master
2020-05-03T22:05:12.392913
2019-05-04T02:46:56
2019-05-04T02:46:56
167,550,783
0
1
null
null
null
null
UTF-8
Python
false
false
2,688
py
""" Django settings for library project. Generated by 'django-admin startproject' using Django 1.8.7. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build path...
[ "dbom12360@gmail.com" ]
dbom12360@gmail.com
364ca9a98f0bed65c764fca9306fca1df99f3df8
5c12a874f7a4c01d233b028bb2332214d7d4919f
/activity/migrations/0002_auto_20191107_1203.py
732eae609155059d6742805f68f7f80a587bd454
[]
no_license
cocogels/marketing
9cc9535ac04ac008c9882ed5087a33eb201fbeeb
41e3d4959cf2c07a1d8f00821e5a4ad829419ba4
refs/heads/master
2020-07-06T06:09:13.356059
2019-11-08T09:04:08
2019-11-08T09:04:08
202,916,826
0
0
null
null
null
null
UTF-8
Python
false
false
2,563
py
# Generated by Django 2.2.1 on 2019-11-07 04:03 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_fsm class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('activi...
[ "laracasangelo008@gmail.com" ]
laracasangelo008@gmail.com
0a852681577cdebfbc2733b9e17da56aaebb4186
b0d898be0456049180333dec8c216f1752b0ddf3
/0215_5.py
f4aab87ee519f122997ae11fe5fe5059f0fb0376
[]
no_license
mason890/python
c2517a034acd13d4b3e2c9d2b6f2758d25b3780e
473f2032d4ee90cb9757adebfd2b45c7e6a430d6
refs/heads/master
2020-12-08T11:33:45.080873
2020-02-22T07:49:30
2020-02-22T07:49:30
232,972,155
0
0
null
null
null
null
UTF-8
Python
false
false
1,204
py
#추상 클래스 #추상 메소드를 가진 클래스 #주로 최상위 부모클래스가 해당 #객체를 만들수 없다. class Animal : def __init__(self, name): self.name = name def sound(self): print('소리가 납니다.') class Dog(Animal) : def __init__(self,name): super().__init__(name) def sound(self): print('멍멍') def sm...
[ "noreply@github.com" ]
mason890.noreply@github.com
bfbdafd3b48ff0f5e1b4d217edb4c347cc630969
d7ac596181d48395ee16f2ba74ce3ed6a959c369
/test.py
1dbfbb57c7b273b125e6cd0042f6917878057716
[]
no_license
bloggermark/Test-Repo
5eba24e84d73bceaaf16410ea857d0cf2e1284e2
87afa26eadd55f5378bd53e192a86dd10969c20a
refs/heads/main
2023-06-12T07:27:50.985894
2021-07-10T16:41:03
2021-07-10T16:41:03
384,736,324
1
0
null
null
null
null
UTF-8
Python
false
false
36
py
print('hello world!') print('test')
[ "bloggermark@sbcglobal.net" ]
bloggermark@sbcglobal.net
cdc14ab92541df567c2da2c71eab1580caecb1c9
73dadaa1c10ba149cf42fe3600edee9565b2e418
/pythonBasicsHandsOn.py
92dfdf4b8dab6dd981c4aea7320a988e9e35c5e3
[]
no_license
Sankarb475/Python_Learning
078826e5087bf1c6d2e18e9176af1bad3e345eb1
1b0d929a66f99b86bfd41590c1ce8781385223a0
refs/heads/master
2022-06-14T07:45:10.053327
2022-06-09T05:11:44
2022-06-09T05:11:44
167,215,150
0
1
null
null
null
null
UTF-8
Python
false
false
10,865
py
# Shallow Copy and Deep Copy # When you use "=" to create a copy of an object, It only creates a new variable that shares the reference of the original object. a = [1,2,3,4] b = a a.append(5) a[2] = 100 print(a,b) => [1, 2, 100, 4, 5] [1, 2, 100, 4, 5] -- Shallow copy creates a copy of t import copy a = [1,2,3,4] ...
[ "noreply@github.com" ]
Sankarb475.noreply@github.com
a73c5d4bb559659bf09d6c522ea1b8a91e58cc67
db88c14390c0edaf096e1e9f1c02a4a799f8d3a4
/scripts/mospy_handle.py
4ff3c46c312a1673c28b6e582644773ea273ceaa
[]
no_license
themiyan/MosfireDRP_Themiyan
91b85597255f9f74e866617205ee70fe34f89379
84e61dcd4b8d926e0d7fc6a4f73edb3f045f6a6a
refs/heads/master
2021-01-10T02:31:43.602593
2017-02-20T23:33:54
2017-02-20T23:33:54
54,149,912
1
0
null
null
null
null
UTF-8
Python
false
false
6,565
py
#!/usr/local/bin/python ''' MOSFIRE 'handle' command: (c) npk - Dec 2013 ''' import MOSFIRE import MOSFIRE.IO as IO import os import numpy as np import pyfits as pf import sys import glob if len(sys.argv) < 3: print '''Usage: mospy handle [target]''' sys.exit() files = [] for i in range(1, len(sys.argv)):...
[ "themiyananayakkara@gmail.com" ]
themiyananayakkara@gmail.com
aa08416cec64433ef17052cae24d44ab961b544f
2d9a17e2b896d2f6a90913a4ba02d41f0ede5dd0
/_gsinfo/qiyecxb-ct/qycxb_spider.py
c629ad7e0a0c3154e2b6a4ad7ae34b42379b6c08
[]
no_license
wolfwhoami/xxxxx
1cf2ed2c8ed78048d87cccf2953ca86c0871a783
670787ec71127bc05c1645cc3d8ef7c3a91fe84b
refs/heads/master
2020-03-30T00:44:55.864817
2016-12-16T01:45:03
2016-12-16T01:45:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,218
py
#!/usr/bin/env python # -*- coding:utf8 -*- import os import sys sys.path.append(sys.path[0]+"/..") print sys.path import time from spider.spider import Spider, AccountErrors import re from spider.savebin import BinSaver import random import threading import traceback import spider.util from spider.savebin import File...
[ "jianghao@ipin.com" ]
jianghao@ipin.com
f72a7e1fb1b3ae77d80542b0a582a4170c564ef7
440149cfffd932d6f86e4660f0934443bd483c9a
/Pathfinding Visualizer Project/a_star.py
06ebaf790b9a949616352e27c19ec703aa3bd02f
[]
no_license
siddhantgpt99/cv-projets
72176d19487ccd5a0cde3dff8d4767a217e19c5a
559246966bad4b3c7c0b1992aee2151239515e3b
refs/heads/master
2022-11-27T11:41:37.441504
2020-08-09T17:49:35
2020-08-09T17:49:35
286,029,871
0
0
null
null
null
null
UTF-8
Python
false
false
2,308
py
from queues import PriorityQueue def heuristic(tile1, tile2): """ Manhattan distance between two tiles. :param tile1: Tile :param tile2: Tile :return: int distance """ (x1, y1) = (tile1.r, tile1.c) (x2, y2) = (tile2.r, tile2.c) return abs(x1 - x2) + abs(y1 - y2) def reconstruct_p...
[ "noreply@github.com" ]
siddhantgpt99.noreply@github.com
f52d578b0c5ce04a6f71e3ad5469a8314254b093
ce12ef4b16535da475f14ec0d974750fcc7c2377
/ordersapp/views.py
fa7daf3fb894319be2061639cffd12e9169b495a
[]
no_license
IlyaSaveliev/geekshop
6336ea431b458621a36f90d6ab9f91ce7e1c4d91
51d714ce105aeb0ce3102d2e845fb53aa4581eca
refs/heads/Master
2023-04-16T05:40:44.812694
2021-04-25T11:43:22
2021-04-25T11:43:22
343,256,697
0
0
null
null
null
null
UTF-8
Python
false
false
4,858
py
from django.db import transaction from django.db.models.signals import pre_save, pre_delete from django.dispatch import receiver from django.forms import inlineformset_factory from django.http import HttpResponseRedirect, JsonResponse from django.shortcuts import render, get_object_or_404 from django.urls import revers...
[ "parazit.ololo@gmail.com" ]
parazit.ololo@gmail.com
9e2a924be8d259560a72db6497c863403bfb61b4
8cb68e9e7b920c7795f23b8fb11d27de77fe6888
/tox/tests/test_z_cmdline.py
b28888066c205307d439a32cfbe3bcf4f3845f85
[ "MIT", "Apache-2.0" ]
permissive
maxalbert/circleci-python-sandbox
fdc0d8acd4e80793b68eb4cc295d60ce32ee9fcc
a4c07c809e05e7f34dfbf7a449c60070d1856e6a
refs/heads/master
2021-01-17T21:56:58.803742
2016-02-19T19:58:53
2016-02-19T20:08:20
52,112,609
0
0
null
2016-02-19T19:53:31
2016-02-19T19:53:31
null
UTF-8
Python
false
false
20,991
py
import tox import py import pytest from tox._pytestplugin import ReportExpectMock try: import json except ImportError: import simplejson as json pytest_plugins = "pytester" from tox.session import Session from tox.config import parseconfig def test_report_protocol(newconfig): config = newconfig([], """ ...
[ "smlstvnh@gmail.com" ]
smlstvnh@gmail.com
d0c3fb8162dec8bff5a63f4bba4da756f7c890e6
1c45f9b803bca4b022e53a6128c7937286d397a0
/pythontest/0110/functionex1.py
7bbac6857e840f4f5dcce3f4a45b0f9d1ba7f8d9
[]
no_license
yangyohan123/python
2860e185b581e1b0d16fbdbbd69932154d004e06
fc643d54542b15d32bb1319f223412694929b88f
refs/heads/master
2021-01-01T14:18:59.395282
2020-02-09T17:34:40
2020-02-09T17:34:40
239,317,150
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
''' Created on 2020. 1. 10. @author: GDJ-19 함수 사용하기 ''' def coffee_machine(button): print() print('#1 뜨거운 물 준비') print('#2 종이컵 준비') if button==1 : print("#3 보통커피를 탄다") elif button == 2: print("#3 설탕커피를 탄다") elif button == 3: print("#3 블랙커피를 탄다") else ...
[ "yangyohan123@daum.net" ]
yangyohan123@daum.net
d477f39fa7d688c996c72f8e5f53aa273d7ae6d0
916f8962b18272b62fdccd5b2d9ec4b2b2d4d533
/Thalamus_wmSCrsFC/nosmooth_adding_YBK_postMelodic_znorm_glm.py
f873477c1245feee3ac8ed36ab7059fef434132f
[]
no_license
fahaxiki1234/ThalamoCortical_YBK
284b84f67fdcc525e3b0c65cc13f0068463fce5d
63fee7dea60ba94d04ef9f55cd2b220bb63836a6
refs/heads/master
2023-03-16T04:22:02.865421
2020-05-22T04:21:46
2020-05-22T04:21:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,416
py
import re import sys import os from os.path import join, basename, isfile, isdir import argparse import nibabel as nb import numpy as np from scipy import stats def zStats (side, hemi,downsample, subject): melodicDir='tica_results/mICA_HCvsFEP_{side}{downsample}_nosmooth//dim0'.format(side=side, downsample=downs...
[ "noreply@github.com" ]
fahaxiki1234.noreply@github.com
b100c782ba41017bc03dda7b492a6fc56956b54c
96ff8afa4e440a5adba69a2f3438c05ccbc9cf15
/core/plotter/ts_plot.py
94e225e7e6b5ad7e2a02448a9527e69c84dabd00
[]
no_license
StockLiM/SLiM
8e05cc36d5f30a3bce0ba92d462b23f39cbc6212
0d4977d3457a7645a90a77e025615148ce29e594
refs/heads/master
2021-01-21T15:22:59.247618
2017-06-30T03:57:16
2017-06-30T03:57:16
89,649,324
0
0
null
null
null
null
UTF-8
Python
false
false
6,874
py
import pandas as pd import matplotlib.pylab as plt import numpy as np import os from datetime import datetime ## sma plot def plot_sma_symbol(symbol, date, price_from = 'Close', short_sma = True, long_sma = False): print "plot sma on {0}".format(symbol) fn = 'data/price/{0}/{1}.csv'.format(date, symbol) ...
[ "yejing1991@hotmail.com" ]
yejing1991@hotmail.com
d9c577b60a03d5b7cc46cfe1a2e2d0040acd95f9
7d4273077ca64cc1311b2d9fe9148f192cc91ce9
/V2prizeTheBestUsers.py
ba2025cc0aa5a9497cd290a17d04b9d458df978b
[]
no_license
mateuszgajewski-python/PyPi
a7016cf6723b41df0d67e2afa15b914698811e45
057a16dda7fc79a317caac0c9fac44e3ef98436f
refs/heads/master
2023-03-05T06:47:28.477825
2021-02-14T13:53:21
2021-02-14T13:53:21
337,395,692
0
0
null
null
null
null
UTF-8
Python
false
false
1,545
py
import requests import json r = requests.get("https://jsonplaceholder.typicode.com/todos") downloadList = r.json() def how_many_true(list_, key, keyWithBoolean): dictionary ={} for record in list_: if record[keyWithBoolean] == True: try: dictionary[record[key]] += 1 ...
[ "mateuszgajewski@gmail.com" ]
mateuszgajewski@gmail.com
855520507be67c41ec69ec8579c87dda07b2ebf2
eead3da885b3a36c5704e314c2610eaa64b21528
/去除链表重复节点.py
327faa8543b6a1dbba150035ea83c101f4328a0e
[]
no_license
Rango94/leetcode
8ecd708a5ad552bd184b432f0ec0647df8de2304
11696cb03aa81dbea95b4c61aff08f70e4f1a81f
refs/heads/master
2020-03-23T18:59:45.591397
2018-08-27T01:50:21
2018-08-27T01:50:21
141,947,153
0
0
null
null
null
null
UTF-8
Python
false
false
1,017
py
class ListNode: def __init__(self, x): self.val = x self.next = None def print(self): p=self while p!=None: print(p.val) p=p.next class Solution: def deleteDuplication(self, pHead): if pHead==None: return None out_pHead=No...
[ "wangnz1994@163.com" ]
wangnz1994@163.com
3b9e253f10e41baad365199b92279151f3fb20da
07452949bbfe246b970af1f8c8cec969414b0026
/tests/test_relabel.py
8eacbe707bdebce7e7dd29f18a5e21a67521d846
[ "MIT" ]
permissive
monocongo/cvdata
f1e8649e43cb4ab0ca639f22d61a6e5a30bc74a2
aca1d5d129d7fb0b2be0c5763c9363bad66696a5
refs/heads/master
2023-08-18T05:20:30.155204
2023-08-03T14:34:29
2023-08-03T14:34:29
221,716,830
18
8
MIT
2023-08-03T14:34:31
2019-11-14T14:30:14
Python
UTF-8
Python
false
false
6,562
py
import logging from xml.etree import ElementTree import pytest from cvdata import relabel from assert_utils import elements_equal, text_files_equal # ------------------------------------------------------------------------------ # disable logging messages logging.disable(logging.CRITICAL) # -----------------------...
[ "monocongo@gmail.com" ]
monocongo@gmail.com
580c4532e3607bbc2d2b818f089db145db04139b
8ef1439e1a44ae3ac83498facb5dcb48f48e13da
/venv/Scripts/pip3-script.py
f2c54b69d77f1a73551beee61141d4f238898c5a
[]
no_license
myfoxsay/Spiders
1c1ad138d83e0d0257b0f73bfa250207227e4475
c50a7b49f65d1e19ef8a2064fb6162fee454442b
refs/heads/master
2021-06-28T12:24:42.410054
2021-01-07T07:00:54
2021-01-07T07:00:54
196,186,968
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
#!C:\Users\ym10266\PycharmProjects\untitled1\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a...
[ "myfoxsay@163.com" ]
myfoxsay@163.com
94e03f267155e84ef42e255bed470c54f6626f90
2881903801698749889648a36b0d8dc51a6e59a0
/cannabis_reports/tests/test_apis_dispensaries.py
b1d83aec5fca76bad68f430d4303e23be54ec6a0
[ "MIT", "Python-2.0" ]
permissive
lordlala/python-cannabis-reports
139149681315ab6521c7fb8775209c8a3eff87a9
6b64cecd881247eee23f9d2223f6d364bafad937
refs/heads/master
2021-12-30T11:42:15.183290
2018-02-08T21:06:53
2018-02-08T21:06:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,854
py
# -*- coding: utf-8 -*- # Copyright 2017-TODAY LasLabs Inc. # License MIT (https://opensource.org/licenses/MIT). from .api_common import recorder from .api_entity import ApiEntityAbstract from ..models.dispensary import Dispensary class TestApisDispensaries(ApiEntityAbstract): """Tests the Dispensaries API endp...
[ "dave@laslabs.com" ]
dave@laslabs.com
b4f54871d6f20147ee3d122fda8a109d09514286
5549b8152781830be13147be7330e904a2f96d4b
/lagom_example/lagom_example/wsgi.py
084584e914c059c8f2a4482d9178aec1d87c01b2
[]
no_license
meadsteve/lagom-django-example
a00670131ccb2673986bc27a753238e227880fb5
9ac58b9cd423effed53ea96d3bf2c0391bd56064
refs/heads/master
2021-12-29T06:04:26.067144
2021-09-15T08:03:20
2021-09-15T08:03:20
238,651,005
0
0
null
2021-09-22T18:32:53
2020-02-06T09:24:35
Python
UTF-8
Python
false
false
403
py
""" WSGI config for lagom_example 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/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
[ "meadsteve@gmail.com" ]
meadsteve@gmail.com
e3d781a3f7d2d498cb5c6001e32a838461a0daa6
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_054/ch2_2020_09_16_11_34_55_516156.py
cb769d528b4f741eaac3317840c0153eb23c362a
[]
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
143
py
# Está função é para calcular a velocidade média def velocidade_media (d,t): velocidade_media = d / t return velocidade_média
[ "you@example.com" ]
you@example.com
de991516b7cdac9ff957510dfda568d7ebbe7241
b6e10cf6a4c7498093a78665d4c03a3cfbabd25b
/code.py
6163544367a522bbeae538a62de0ced93fb3fbf4
[ "Apache-2.0" ]
permissive
prashantm2812/StudentsPerformance
dbbbb733f9d00ff207ca42f06884b4b3157d8635
394779f7e64051476a1dc7b03f09c5f8fd8e7d1f
refs/heads/master
2020-04-10T21:11:12.587199
2018-12-11T06:55:02
2018-12-11T06:55:02
161,290,050
0
0
null
null
null
null
UTF-8
Python
false
false
2,015
py
# -*- coding: utf-8 -*- """ Created on Mon Dec 10 22:09:03 2018 @author: Prashant Maheshwari """ import numpy as np import pandas as pd import matplotlib.pyplot as plt dataset = pd.read_csv('StudentsPerformance.csv') X = dataset[['gender', 'race/ethnicity', 'parental level of education', 'lunch', 'test p...
[ "noreply@github.com" ]
prashantm2812.noreply@github.com
5265e0967e113d081e9131c0f58e4a14c2139144
7b9c1e0e6c40804dc11090b6b2d9b4c61fce3f12
/FIB_HERITAGE_METHOD.py
4a6f632a061ba42bc6892fb6c74cc294e2d1cfdc
[]
no_license
denizcetiner/rosalindpractice
7474a07f0018c2582b3fbb8db2f686bceb687ac7
4dfe56e7b7af1680380c4f7a1048c174a6c405b7
refs/heads/master
2020-03-19T16:40:34.277493
2018-10-08T17:38:01
2018-10-08T17:38:01
136,724,689
0
0
null
null
null
null
UTF-8
Python
false
false
3,286
py
from graphviz import Digraph class RabbitPairMonth: life_expectancy = -1 give_birth_to = 3 id_counter = 1 maturity_month = 1 def __init__(self, id, birth_time, current_month): self.id = id self.birth_time = birth_time self.current_month = current_month self.childre...
[ "deniz.cetiner94@gmail.com" ]
deniz.cetiner94@gmail.com
c0e29612bc1ab99f21ed31d148930eda30c512c3
2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f
/aws.ses.EventDestination.sns-destination-python/__main__.py
d32f60d788281d4b38651670141a088b90714d15
[]
no_license
ehubbard/templates-aws
e323b693a18234defe6bd56ffcc64095dc58e3a1
2ae2e7a5d05490078017fed6d132dcdde1f21c63
refs/heads/master
2022-11-17T13:53:14.531872
2020-07-10T21:56:27
2020-07-10T21:56:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
import pulumi import pulumi_aws as aws sns = aws.ses.EventDestination("sns", configuration_set_name=aws_ses_configuration_set["example"]["name"], enabled=True, matching_types=[ "bounce", "send", ], sns_destination={ "topic_arn": aws_sns_topic["example"]["arn"], })
[ "jvp@justinvp.com" ]
jvp@justinvp.com
6606ff39a891b68aee9bfe862e48704e6ed6a975
cc08f7a8d284b38975a777b416e1abfa33fc3a2d
/calcs.py
8a2cf0fae4b3ef8be855c9b5ebd05811e50b3d39
[]
no_license
EgorOs/osinkin_hw6
431d1af9a43767f56f55668db10d255477ca66a4
f6b4008f4e04f54d83e7680b3d757709a6923d28
refs/heads/master
2020-03-26T16:30:31.311553
2018-09-04T19:50:01
2018-09-04T19:50:01
145,106,511
0
0
null
null
null
null
UTF-8
Python
false
false
12,993
py
#!/usr/bin/env python3 from enum import Enum from string import ascii_lowercase class Token: def __init__(self, ch): self.ch = ch if ch == '+' or ch == '-': self.priority = 1 elif ch == '*' or ch == '/': self.priority = 2 elif ch == '^': self.pri...
[ "egoros97@yandex.ru" ]
egoros97@yandex.ru
8c1b6a3a004b909f82de6758f41f54206c8bda08
b8c8973b8af953628d0418bccc8a1a0c6ac54895
/datasets.py
de1606d5cd8ca04dba92ff559ac4376378d1a9a5
[ "MIT" ]
permissive
Mjacks3/AutoEncoder_Research
b61aa5590c34b0e3f54195761b6b398f6dfe9ce6
d92bfdfc76f30173db5dc7d880ee1516cb72ba86
refs/heads/master
2023-01-11T10:55:38.715465
2020-02-14T04:46:34
2020-02-14T04:46:34
220,724,300
1
0
MIT
2019-12-15T19:36:19
2019-11-10T01:05:23
Python
UTF-8
Python
false
false
1,609
py
import os def load_other_batch_data(data_path='/home/mjacks3/monize/tahdith/datasets/train'): #Intended just for training our data full_x = [] for r, d, f in os.walk(data_path): for file in f: if 'embedding' in file: with open(data_path +'/'+ file[0:-14]+'/'+ file) a...
[ "mjacks3@umbc.edu" ]
mjacks3@umbc.edu
6a3d435f81dfff1dfcaaa011dedf56f129b984c3
a6fafaabc803f4292ddaa0c50ba88941f5200be4
/gobotany/core/distribution_places.py
1f8ec958aa111e14559d624c0617d2ebfb4ee04d
[]
no_license
biofsoares/gobotany-app
cc0f164f1ab12b3177b03626170853e5731008ff
edd9ce53b1f2a92d7f4a0bbf05e4bd88942a6c6d
refs/heads/master
2021-01-16T21:43:01.388365
2015-12-30T19:55:08
2015-12-30T19:55:08
51,067,589
1
0
null
2016-02-04T10:08:24
2016-02-04T10:08:24
null
UTF-8
Python
false
false
2,933
py
# List all the places where distribution data are tracked, at both # the state or province and county levels. # # This is used by the Admin interface during the bulk addition of a set # of distribution records for a new plant name. # # Format: state or province abbreviation, county (optional) DISTRIBUTION_PLACES = [ ...
[ "jnga@users.noreply.github.com" ]
jnga@users.noreply.github.com
88c931e22e34976270911349be0c9c290864141e
64045f22ad137eb96c8a54c50b6da42948ceba89
/pygcn/trainer.py
c2aa0a43570158d2065b1d56d3ec8a64fd20fe23
[ "MIT" ]
permissive
Haicang/pygcn
ab73b7e2305f9f21987e8f3c8100ff570bcfb425
608785e4ef18ee2d579ac9d60bda6110e97d877c
refs/heads/master
2021-07-24T03:39:19.087499
2021-07-02T13:44:44
2021-07-02T13:44:44
233,192,191
0
0
null
2020-01-11T07:15:15
2020-01-11T07:15:15
null
UTF-8
Python
false
false
5,964
py
import abc import time import numpy as np import torch import torch.nn as nn from .utils import * __all__ = [ 'GNNsTrainer' ] class BaseTrainer(abc.ABC): def __init__(self, model: nn.Module, criterion, optimizer, epochs, ...
[ "aseaboat@outlook.com" ]
aseaboat@outlook.com
aa103ea582f1fe1dccda82638cc5841b408a0c7a
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/988/988.smallest-string-starting-from-leaf.233252752.Accepted.leetcode.py
22432d1b1812c2fa9c180ef407130c342025bc17
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
455
py
class Solution(object): def smallestFromLeaf(self, root): self.result = "~" def dfs(node, A): if node: A.append(chr(node.val + ord('a'))) if not node.left and not node.right: self.result = min(self.result, "".join(reversed(A))) ...
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
5cb9c51015c50cab850bea8216889f5c99c937d9
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_2_neat/16_0_2_Jormungandr_Revenge_of_the_pancakes.py
d9925b4d479f3e794bba1c134eedd620908d2b23
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,096
py
#!/usr/bin/env python __author__ = 'Bill' def check_pancakes(n): """(check_pancakes): function to test for all face up :param n: the pancakes string """ for ch in n: if ch == '-': return False return True def flip_pancakes(n): """(flip_pancakes...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
37bd37efa7285ccccba19d5b872543c17d244ff7
a9d6606ac831df233ed5b9a8f0757c2596a72405
/pubcrawl/migrations/0001_initial.py
54405199e3e1e946b6e2cca3b9c6b005b0aa4765
[]
no_license
AAGlasgow/pubcrawler
a753ec295cb14a1e292abbe0d691a3263f453c82
6a23c8f0c41b34a7ff977d6e777889b73aeb4226
refs/heads/master
2016-09-06T00:32:31.758251
2015-03-27T17:09:18
2015-03-27T17:09:18
32,093,079
0
0
null
null
null
null
UTF-8
Python
false
false
4,648
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
[ "2079884F@student.gla.ac.uk" ]
2079884F@student.gla.ac.uk
ca1da7d4907bfadb4fcbc08eda69b0a43a6152f6
637316e4f60b0b4288dd67c4018a7ed89d57d25f
/53. kolkoIkrzyzyk.py
dfcabd88acfda9abd132c91a4db64e72a246fac0
[]
no_license
wojtez/KomputerSwiatBookPython
37ff0473b7ed79cb8d531855851175c9d8c3324c
84d63e1936265b7553e13c76affef20848ebcefd
refs/heads/master
2022-10-15T12:45:13.508291
2020-06-08T23:51:27
2020-06-08T23:51:27
269,219,106
0
0
null
null
null
null
UTF-8
Python
false
false
2,293
py
# Program wykorzystjący moduł turtle do tworzenia popularnej gry kółko i krzyżyk from turtle import * import math # definiujemy bok kwadratu bok = 80 pole = [[False, False, False], [False, False, False], [False, False, False]] # rysowanie pola do gry za pomocą kwadratu def kwadrat(): for i in range(4): ...
[ "kozlowski.woj@outlook.com" ]
kozlowski.woj@outlook.com
a254002a4d58e94c7726ba1e04f330ff133f6aca
488f92b110b94cc7d4e3c2fea7ffd244acc6fb23
/Lab 05 - Loopy Lab/lab_05.py
a130bbb17c393ec4ac18d0fd6a7239befa4c2db7
[]
no_license
miguelsh410/sanchez-miguel-arcade-games-work
cc4cb6efef40b3fcba079c599a8850207e669653
1b777721953cb054a0f714262885750f0c85b04a
refs/heads/master
2022-05-03T16:16:21.339268
2019-07-11T02:17:57
2019-07-11T02:17:57
196,303,906
0
0
null
null
null
null
UTF-8
Python
false
false
3,433
py
import arcade def draw_section_outlines(): # Draw squares on bottom arcade.draw_rectangle_outline(150, 150, 300, 300, arcade.color.BLACK) arcade.draw_rectangle_outline(450, 150, 300, 300, arcade.color.BLACK) arcade.draw_rectangle_outline(750, 150, 300, 300, arcade.color.BLACK) arcade.draw_rectangl...
[ "miguel_sh410@hotmail.com" ]
miguel_sh410@hotmail.com
3ae0ed5ed98be35ed46d8dc9ee81969373ac43d8
8240a0c8817a63f529344fcf4dbca80ca2545729
/report/controllers/pool.py
92b603dd881fea40d4c19a11f0867914c4158cc6
[]
no_license
BrokenEagle/PythonScripts
6e218b7c19bbe1f051b2e0e2681ecc720def2fba
350a82720e95ad662faeb50b3a85904e9980f4dc
refs/heads/master
2022-10-11T22:01:04.220628
2020-06-14T01:41:03
2020-06-14T01:52:52
66,891,053
3
0
null
null
null
null
UTF-8
Python
false
false
4,663
py
#REPORT/CONTROLLERS/POOL.PY #LOCAL IMPORTS from danbooru import GetPageUrl,GetSearchUrl,IDPageLoop from misc import DebugPrint,IsAddItem,IsRemoveItem,GetAddItem,GetRemoveItem,IsOrderChange #MODULE IMPORTS from ..logical.reportcontroller import ReportController from ..logical.users import UserReportData from ..logical...
[ "BrokenEagle98@yahoo.com" ]
BrokenEagle98@yahoo.com
0a12281b7c925eb8277884979410f9ea73ef9d93
1f2d8f8cef89facd60e56c6e4c59e881c1cdbe5d
/hw1/code/main.py
35a4390a0b00ebe8f3f3839320e38ec5f0cd8275
[]
no_license
TerminalWitchcraft/CV-HW
abf66e4cad887c9c4d13c24e59dea4f99c6d5bb1
7df4daffe16d2c06161f0cf77655d988d369f51d
refs/heads/master
2022-01-09T21:26:45.794794
2019-05-05T02:30:06
2019-05-05T02:30:06
172,445,625
0
0
null
null
null
null
UTF-8
Python
false
false
10,096
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File : b1.py # Author : Hitesh Paul <hp1293@gmail.com> # Date : 24.02.2019 # Last Modified Date: 28.02.2019 # Last Modified By : Hitesh Paul <hp1293@gmail.com> import os import random import numpy as np import plotly import plotly.g...
[ "git@hiteshpaul.com" ]
git@hiteshpaul.com
cd331c1a35d97ba039cafc1cf3303a4e88b1f523
bf3e0c392b198dee8ca2c0d192ba335634e49841
/utilities/templatetags/recurse.py
d0ca3c4038a6c30fd862e63a8d4412b245fb192a
[]
no_license
swolfod/TOS_Promotions
88b6b652a2697d1f72591c1d24ee0387b564b834
b856a69f50be4d1339591d2314c04f0186ab8023
refs/heads/master
2020-06-14T10:54:44.850828
2016-12-19T15:10:48
2016-12-19T15:10:48
75,193,124
0
0
null
null
null
null
UTF-8
Python
false
false
3,590
py
############################################################################### # Recurse template tag for Django v1.1 # Copyright (C) 2008 Lucas Murray # http://www.undefinedfire.com # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License a...
[ "swolfod@gmail.com" ]
swolfod@gmail.com
5cde4d44f65f3c97fcdfd7ef7b717207957f7006
b25a4e997a74dfe036d8beeff39d03bac526af94
/weibov/spiders/stock.py
51c82cd291ee7b6cb86caa46a471186f15603083
[]
no_license
lianghongjie/weibo
0ca2dc73cb4ac8a79f3ce99d37f8209db46eb08e
f5327ba1070f506ac40d3dd8d69c8d99fd1a7630
refs/heads/master
2020-03-13T11:58:47.343020
2018-04-26T06:51:19
2018-04-26T06:51:19
131,110,509
2
1
null
null
null
null
UTF-8
Python
false
false
3,820
py
# -*- coding: utf-8 -*- import scrapy from ..util.create_url import GeneratorUrl, ARTICLE import json from datetime import datetime from scrapy.http import Request from ..items import StockItem, UserItem import time import os class StockSpider(scrapy.Spider): name = 'stock' def start_requests(self): ...
[ "abc650301032@qq.com" ]
abc650301032@qq.com
abf9533351f909d1812af5ffd5eba0092ce9247b
587eed32179cdbf10b4626a3a238d5923af7459c
/ml/xgboost_regression.py
095d47f0a9a69aa09b7adbbaac64d948e3f6c9c8
[]
no_license
shushanxingzhe/python_learning
fad57fcf607efe81f769d276a6c4390726c5f1bb
7fe26ad612790328edab1627e6c1c144a21d79fc
refs/heads/master
2022-09-12T15:11:50.377981
2022-08-04T05:43:51
2022-08-04T05:43:51
96,225,151
1
0
null
null
null
null
UTF-8
Python
false
false
788
py
import xgboost import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import r2_score X_train = np.linspace(5, 10, 20) X_train = X_train.reshape((-1, 1)) y_train = 0.2 * X_train ** 2 + 3 X_test = np.linspace(15, 20, 20) X_test = X_test.reshape((-1, 1)) y_test = 0.2 * X_test ** 2 + 3 model = xgboost....
[ "shushanxingzhe@126.com" ]
shushanxingzhe@126.com
d6d8a0a8e4bd901a25c210a72278a027d0e701ee
ac7c31d271ece050a5598aaf520d2f5f08c75425
/FA/q_algorithm.py
5d3906fcecf21e97d8218eeb7ee7f98da7768741
[]
no_license
srujanpanuganti/Dots-and-Boxes-Reinforcement-Learning
2ed33439e2fd40eef4353da30771aff7318c0e69
c1461d2c8e238d114690ab185c545b7e7ba35950
refs/heads/master
2022-07-17T06:31:05.876226
2020-05-12T04:15:00
2020-05-12T04:15:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,436
py
# -*- coding: utf-8 -*- """ Created on Mon Apr 29 14:09:53 2019 @author: Srujan Panuganti """ import numpy as np #import itertools from operator import add import random import copy from approximation import Estimator class q_learn: def __init__(self, total_actions, ...
[ "noreply@github.com" ]
srujanpanuganti.noreply@github.com
a14d3e665336b521fc8262c6e0e47e6396190015
90ec04a55a3c3ae13ce7b30f866d2fe16b7f552e
/curso-basico-python/Tema2/Ejercicios/listas/respuestas.py
f75caaeaf47aa6b620cf5c82f0feb1f4b1423ed5
[]
no_license
syscurso/CursosTwitch
7c58926d46d135b384db1d50cf1a48198e1c3c15
7bcbded082e343b661d907313a49902125ad0973
refs/heads/main
2023-03-06T23:33:49.359254
2021-02-24T14:06:00
2021-02-24T14:06:00
336,535,642
0
1
null
null
null
null
UTF-8
Python
false
false
1,085
py
# Lista de la que disponemos para los ejercicios lista = [5, 30, 17, 4, 24] # EJERCICIO 1 # Crea una variable que almacene la longitud de la lista y printeala longitud = len(lista) # EJERCICIO 2 # Crea una variable que almacene el último valor de la lista y printeala #Ambas son correctas ultimoVal = lista[longitud...
[ "syscurso@gmail.com" ]
syscurso@gmail.com
6298f8909b10c1ef31600f83005f206f19655241
5478476360fa51930ae1c3c8b42959152ffe038b
/factor calculation scripts/23.rvol.py
336678d12011a2c0d66a5bc1fea80efbb94d79d3
[ "MIT" ]
permissive
cagdemir/equity-index-predictors
ebffa54dcd9151a916b48fb9cdb3c3beffc82476
2546e72328de848222cb6a1c744ababab2058477
refs/heads/master
2020-12-20T23:06:25.296145
2020-03-01T12:48:16
2020-03-01T12:48:16
236,235,003
2
2
null
null
null
null
UTF-8
Python
false
false
6,182
py
# -*- coding: utf-8 -*- """ Created on Mon Dec 2 17:03:06 2019 @author: Administrator """ import pdblp import pandas as pd import numpy as np import matplotlib.pyplot as plt #import seaborn as sns plt.style.use('seaborn') #con = pdblp.BCon(debug=True, port=8194, timeout=5000) con = pdblp.BCon(debug...
[ "54540791+cagdemir@users.noreply.github.com" ]
54540791+cagdemir@users.noreply.github.com