blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
badbe852403432f331c43df348034c334437b5f2 | 470bb48b6b51ff8a1bc58e71138bbddf7613b80e | /homework_12/django_hw_12/app_hw_12/migrations/0002_auto_20210201_2348.py | b92b909e27e179d0263dfd3e673b8661aab5e184 | [] | no_license | ParamonovED/Epam_HW | 2cfbce640606b94b9b01452873771352736becaf | d0236953fd3f9ef6331b296f6e957e3ae2682a3a | refs/heads/main | 2023-02-24T02:42:09.864851 | 2021-02-01T20:51:40 | 2021-02-01T20:51:40 | 308,440,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # Generated by Django 3.1.6 on 2021-02-01 20:48
from django.db import migrations
def add_data(apps, schema_editor):
# We can't import the Person model directly as it may be a newer
# version than this migration expects. We use the historical version.
Teacher = apps.get_model("app_hw_12", "Teacher")
f... | [
"paramon.j.e.k@gmail.com"
] | paramon.j.e.k@gmail.com |
4bb74522ced3120c01f2d2ea523ce811c9d17da1 | e285da2905116d3624f13bd703baabcf22cce12c | /scripts/pyvmomi_to_ruby/tests/pyVmomi/test_create_enum_type.py | c71b59ac7e1919fd1c1d63e8391e74f28b092eff | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | cloudfoundry/bosh-vsphere-cpi-release | 4b3bd5f1f5ea0ebb8fb63a65035e8f24a86fcdfc | 229ea7656e7677ef799c7f8b2c41de4c5c8ed7e6 | refs/heads/master | 2023-08-20T00:48:07.923152 | 2023-08-19T10:03:00 | 2023-08-19T10:04:34 | 33,261,686 | 17 | 27 | Apache-2.0 | 2023-09-05T18:11:42 | 2015-04-01T17:21:21 | Ruby | UTF-8 | Python | false | false | 373 | py | from io import StringIO
import unittest
from pyVmomi.VmomiSupport import CreateEnumType
class TestCreateEnumType(unittest.TestCase):
def setUp(self):
self.out = StringIO()
def test_mixed(self):
CreateEnumType('a', 'b', 'c', None, self.out)
self.assertEqual(self.out.getvalue(),
... | [
"cdutra@pivotal.io"
] | cdutra@pivotal.io |
de8bd8f62c5129121078e34a97c016890096165b | b3ba0797b8f291bc4c220cbe2ab368bdab29fab7 | /tylerslist/models/posts.py | 2b4c0af07266161612f7bfd33c1febf8beb37c03 | [] | no_license | skyClutch/internets | a4afe561bef72dc4a390c5c5190b755c45dab824 | 7dcbde45f19d5e46b39917fd7f0bbd36c7a23330 | refs/heads/master | 2021-05-30T15:15:44.286566 | 2015-09-23T03:37:52 | 2015-09-23T03:37:52 | 41,172,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | from db import db
class Post(db.Model):
__tablename__='posts'
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(255), index=True, nullable=False)
body = db.Column(db.Text(length=10000), index=True, nullable=False)
price = db.Column(db.Integer, nullable=False)
category_id = db.Column(db.In... | [
"TylerProbst@Tylers-MacBook-Pro.local"
] | TylerProbst@Tylers-MacBook-Pro.local |
6de76f68d1ad4c8a182a4c4c1c804d1000e205de | 20158a42bfe7006760d2bcf51bec38457652a813 | /main.py | 03ff8dbe1d3e75e727d9c286294d7bdbcabb11a4 | [] | no_license | CaoKaiK/home_automation | cd6dc8bd43e9835d0730229e1d8cb3286e8cfd09 | fe2628c9515b81824bef0952aad3de81d1c89b70 | refs/heads/master | 2022-12-15T05:48:30.985401 | 2021-04-22T18:53:16 | 2021-04-22T18:53:16 | 254,191,646 | 0 | 0 | null | 2022-12-08T04:00:56 | 2020-04-08T20:18:58 | CSS | UTF-8 | Python | false | false | 193 | py | from app import create_app, db
from app.models import Room, Thing
app = create_app()
@app.shell_context_processor
def make_shell_context():
return {'db': db, 'Room': Room, 'Thing': Thing} | [
"niklas.kueppers@rub.de"
] | niklas.kueppers@rub.de |
be23e2ced130d86cf9ab578d7d7559a29ad7b2ea | a2c7a28a852f34677961504b2b7ee99974e5768d | /tracking/bspline.py | 347173329b136e5d9eb3ddf95bb7fffa46226525 | [] | no_license | sud1312/eye-control | f6e3e953149af57e943b6906bb975510e0052809 | 0f9d2edd521a9a1196ade66d9214473924691c58 | refs/heads/master | 2021-01-19T05:03:29.142170 | 2015-07-09T11:49:31 | 2015-07-09T11:49:31 | 38,813,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | # adapted from:
# http://stackoverflow.com/questions/12643079/bezier-curve-fitting-with-scipy/14125828
import numpy as np
from scipy.misc import comb
class Bezier(object):
def __init__(self):
super(Bezier, self).__init__()
pass
# The Bernstein polynomial of n, i as a function of t
def be... | [
"smouldering.dog@b4fd473d-8a18-f549-4102-3209dafef2b4"
] | smouldering.dog@b4fd473d-8a18-f549-4102-3209dafef2b4 |
cce4b96a715d43f53534c19733cad518beb38e8e | 0d5c77661f9d1e6783b1c047d2c9cdd0160699d1 | /python/paddle/fluid/tests/test_lod_tensor.py | f7a9dd4129027417a06a6c25ff9a801fff259c5e | [
"Apache-2.0"
] | permissive | xiaoyichao/anyq_paddle | ae68fabf1f1b02ffbc287a37eb6c0bcfbf738e7f | 6f48b8f06f722e3bc5e81f4a439968c0296027fb | refs/heads/master | 2022-10-05T16:52:28.768335 | 2020-03-03T03:28:50 | 2020-03-03T03:28:50 | 244,155,581 | 1 | 0 | Apache-2.0 | 2022-09-23T22:37:13 | 2020-03-01T13:36:58 | C++ | UTF-8 | Python | false | false | 4,649 | py | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"xiaoyichao@haohaozhu.com"
] | xiaoyichao@haohaozhu.com |
298765993ed5182b47c72e02ed6cfac278fe1189 | 7d88a4787246e41adba39b4313380ea4f2f08f5a | /test/regression/features/dictionaries/dict_setitem_new.py | 68e8c36e6b05c25cf8aaef18b48058ee8405915f | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | powergun/berp | cd66bdc6e2ad084df119d6d55742fc1e1efdfc06 | 30925288376a6464695341445688be64ac6b2600 | refs/heads/master | 2020-06-24T23:34:07.519644 | 2014-06-11T03:36:35 | 2014-06-11T03:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | d = {'itchy' : 'knee'}
d['scratchy'] = 'elbow'
print(d)
| [
"florbitous@gmail.com"
] | florbitous@gmail.com |
bac612e62bec9e76a649f5be726257ddc8ce1646 | 1395576291c1e8b34981dbcbfcd0fdda020083b8 | /dist_cts/dist_fleet/thirdparty/simnet_bow/dataset_generator.py | 4e3b7a3565639c5154043bbc8179ef3b0a6d635f | [] | no_license | gentelyang/scripts | a8eb8a3cc5cc5bac753f1bb12033afaf89f03404 | e3562ab40b574f06bba68df6895a055fa31a085d | refs/heads/master | 2023-06-06T12:38:37.002332 | 2021-06-15T05:09:06 | 2021-06-15T05:09:06 | 262,957,519 | 0 | 4 | null | 2021-01-10T08:28:11 | 2020-05-11T06:28:08 | Python | UTF-8 | Python | false | false | 2,500 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# @Time : 2019-09-26 17:30
# @Author : liyang109
from __future__ import print_function
import paddle.fluid.incubate.data_generator as dg
import random
class PairwiseReader(dg.MultiSlotDataGenerator):
def init_reader(self, max_len, sampling_rate):
# np.random.... | [
"liyang109@baidu.com"
] | liyang109@baidu.com |
b8620b100b32bf9b598d2c20ff934d8f061afa39 | 7812b9ccb1d4499ec93f989b155f1a623c52dcec | /beginner_level/project_3_making_right_decision_to_get_the_treasure.py | fa795e9ec3fe6fc2497d84284bd565756bceb15a | [] | no_license | DSajaykashyap/my_python_learning | caac1bc8776551fe66366ec514d7bc46ed7e45b8 | b6090e77b4ff305ff53b145def815d0fc582d884 | refs/heads/main | 2023-02-21T15:57:25.842631 | 2021-01-28T17:49:20 | 2021-01-28T17:49:20 | 332,668,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,589 | py | print('''
*******************************************************************************
| | | |
_________|________________.=""_;=.______________|_____________________|_______
| | ,-"_,="" `"=.| |
|__________... | [
"noreply@github.com"
] | noreply@github.com |
abcb6982c6f5dd12b149025215077f5e7fde1359 | 1959350ca45f43806e925907c298cfae2f3f355f | /test/programytest/parser/pattern/nodes_tests/test_root.py | eca847aa29bdf9535f4c7d605bb69293e405357c | [
"MIT"
] | permissive | tomliau33/program-y | 8df17ff4078a0aa292b775ef869930d71843682a | 30a3715c8501b4c2f1b4de698b679cb4bac168b1 | refs/heads/master | 2021-09-06T01:56:08.053131 | 2018-01-31T15:10:10 | 2018-01-31T15:10:10 | 114,656,850 | 0 | 0 | null | 2018-02-01T13:27:30 | 2017-12-18T15:27:54 | Python | UTF-8 | Python | false | false | 3,716 | py | from programytest.parser.pattern.base import PatternTestBaseClass
from programy.parser.exceptions import ParserException
from programy.parser.pattern.nodes.word import PatternWordNode
from programy.parser.pattern.nodes.base import PatternNode
from programy.parser.template.nodes.base import TemplateNode
from programy.... | [
"keith@keithsterling.com"
] | keith@keithsterling.com |
2dcf69f7efbe7801f01716a225dd543da5afeafb | 246fc123d539e150ae9e82720f843b1ab5890532 | /frolia.py | b1f30602040e81720beadcf2c613fc84dc37889c | [] | no_license | Raeshmithaa/guvi | 3a5edd0b33d7971eae1a73aa4d543eb8f0a0aec2 | cd20cda104b409aba23dcb15210ab9285fc946fc | refs/heads/master | 2020-05-31T06:39:44.349687 | 2019-07-26T10:30:46 | 2019-07-26T10:30:46 | 190,146,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | a=(input("enter the value"))
if(a>='a' and a<='z')or(a>='A' and a<='Z'):
print("Alphapet")
else:
print(" not Alphapet")
| [
"noreply@github.com"
] | noreply@github.com |
d31e51d2b11c4e543c1be1663b64cb279e600790 | f4dcb14111539e9a22300256fd6f8fefc61f2d50 | /src/flua/Compiler/ExpressionParser/ExpressionParser.py | 91fe2cd96730b30e01ee0ff76e858514d3fe80a2 | [] | no_license | GWRon/flua | 276c3ea4ce1cfcf68a1000fb44512460b5161c4e | 1cf051f1d5aec3ba4da48442a0d7257d399e5b36 | refs/heads/master | 2021-01-15T17:37:03.914965 | 2012-10-24T12:57:27 | 2012-10-24T12:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,234 | py | ####################################################################
# Header
####################################################################
# Expression parser
####################################################################
# License
####################################################################
# (C... | [
"e.urbach@gmail.com"
] | e.urbach@gmail.com |
da5ba41ad19e69fa3ba193faf7fad8392b6a888c | 9cc3135d5fcd781c0542a905c61dc19b0ceeffef | /catch_game.py | e1e3f92b96569c8dbd527503650ace634f77e014 | [] | no_license | bkalcho/python-crash-course | 411d8af223fb6974d4f890c0f82c9e56b062359c | 8425649a2ecd5abeeb438e816400f270d937758e | refs/heads/master | 2022-09-11T13:47:56.837256 | 2022-08-23T10:04:35 | 2022-08-23T10:04:35 | 69,810,386 | 14 | 8 | null | 2022-08-23T10:04:36 | 2016-10-02T17:14:41 | Python | UTF-8 | Python | false | false | 1,471 | py | # Author: Bojan G. Kalicanin
# Date: 15-Dec-2016
# 13-5. Catch: Create a game that places a character that you can move
# left and right at the bottom of the screen. Make a ball appear at a
# random position at the top of the screen and fall down the screen at a
# steady rate. If your character "catches" the ball by co... | [
"kalcho@zoho.com"
] | kalcho@zoho.com |
1afd9ade4b2bdebcef0b59946af32c1f7181f86c | 36cb368b799bf1f9cfd23665b5869757da2487f7 | /projet1/log2.py | 14a645572725a973a04efc5461b38de94c0e690e | [] | no_license | donPedroDelasincamida/Algonum | fabf4f9615b88b3de2340fa0c47d78d06fd7df46 | 9fe44bd97d322103811c909238b117b73614dfc7 | refs/heads/master | 2022-04-28T05:22:54.797152 | 2018-06-11T11:33:22 | 2018-06-11T11:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | def puissance(a,n):
res = 1
for i in range(n):
res = res*a
return res
for i in range(10,20):
print "2^%d = %d\n" % (i,puissance(2,i))
def log2(p):
res = 0
for i in range(1,10000):
res = res + float(puissance(-1,i+1))/i
puiss=puissance(10,p)
return round(res,p)
def rp(x... | [
"Lucien.casteres@gmail.com"
] | Lucien.casteres@gmail.com |
f7fe4d6a04dfbfa4abc2c316b83f7cfbcaa30e5e | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/wikipedia/testcase/interestallcases/testcase6_022_1.py | 64a6c615586113f38ef615001e76c1bd64bd8f23 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,077 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
46554effd6f26071610c069b65a4eb3525944d2a | 015f3e72a0b8573e084e19224f9b08e24a82c270 | /geant_image.py | 787ed98fd5f97ef16d32f2a9e9adfe5694fa5a9a | [] | no_license | cshimmin/crayfis-sim | 56ff18e89efee089137fa3f72e2a635108e31066 | 37bc3c7e074fee2709ccca6c3f5f38a189f70ada | refs/heads/master | 2020-12-24T16:31:58.925857 | 2018-04-11T16:38:58 | 2018-04-11T16:38:58 | 41,048,746 | 4 | 2 | null | 2018-03-02T16:23:59 | 2015-08-19T17:19:11 | C++ | UTF-8 | Python | false | false | 4,519 | py | #!/usr/bin/env python
from PIL import Image
import numpy as np
def trans_linear(v,pmin=50e-6,pmax=0.01):
''' Linear transformation of energy->brightness.
pmin: the minimum pixel energy (y-intercept)
pmax: the max pixel energy (corresponding to saturation) '''
return max(min(int(round((v-(pmin))*25... | [
"cshimmin@uci.edu"
] | cshimmin@uci.edu |
b2830436f10dd100a76995d67b0f77827b8fa308 | c19bcbc98555ef06276f9f0dcffc9ac35942a7c4 | /tests/test_proc_pid_maps.py | 295254aa85fb9c2904a4fc24b52c440ba608763e | [
"MIT"
] | permissive | kellyjonbrazil/jc | 4e81a5421cd20be5965baf375f4a5671c2ef0410 | 4cd721be8595db52b620cc26cd455d95bf56b85b | refs/heads/master | 2023-08-30T09:53:18.284296 | 2023-07-30T17:08:39 | 2023-07-30T17:08:39 | 215,404,927 | 6,278 | 185 | MIT | 2023-09-08T14:52:22 | 2019-10-15T22:04:52 | Python | UTF-8 | Python | false | false | 1,270 | py | import os
import unittest
import json
from typing import Dict
import jc.parsers.proc_pid_maps
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
f_in: Dict = {}
f_json: Dict = {}
@classmethod
def setUpClass(cls):
fixtures = {
'proc_pid_maps': ... | [
"kellyjonbrazil@gmail.com"
] | kellyjonbrazil@gmail.com |
f0e2a710d4f5bd33ef7d98cf615e13fc4b30f6ea | 1cff1958e026d697fd999d652ce9ecc7e19455f9 | /data/augment_data.py | 6769af5ff41ad5578e67698338c4afd3c54a24d7 | [] | no_license | antoniojkim/TheresWaldo_Revisted | 9bb03798f90097c9bb482aacaad8ac6504678941 | 20407e14b1874580e883f6e4673773173593a691 | refs/heads/master | 2022-06-09T16:01:22.929437 | 2020-05-08T18:59:35 | 2020-05-08T18:59:35 | 257,645,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import json
import os
import pathlib
import numpy as np
from PIL import Image
log = logging.getLogger(__name__)
file_dir = pathlib.Path(__file__).parent.absolute()
with open(os.path.join(file_dir, "boxes.json")) as file:
boxes = json.loads(file.read(... | [
"antoniok@antoniojkim.com"
] | antoniok@antoniojkim.com |
aa103ece577f2eb0c662c45e3595e467122c3b44 | e8fa31dbea95c578153d079526b33cac1f17d546 | /config/settings/production.py | ed4f388d52f2ae972db765616b85f905789f8c0f | [] | no_license | boldasalion/qa_project | 5ab2af77992ccdd5d982a14843c671a34d67fe6a | 444beb40fdf8e65bd13496fdc2112ec0229dd9bf | refs/heads/master | 2020-03-30T11:46:18.467431 | 2018-10-02T02:23:25 | 2018-10-02T02:23:25 | 151,191,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,366 | py | from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env('DJANGO_SECRET_KEY')
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED... | [
"brian.goulter@gmail.com"
] | brian.goulter@gmail.com |
d258f13052292397d6011d79c8b92e7984c7b748 | 2d9adafb29f8137b8b4dc58c76791115e09f4355 | /mysite/settings.py | 52f8992e96958590981424bc951656645b237ff3 | [] | no_license | yanwenming/mysite | a4f1a81aeb94f1ca28986092423589200e585424 | 077ad334f34e0eab687b00ba6bfd2d2cb94be28f | refs/heads/master | 2021-04-08T00:44:27.597052 | 2020-04-17T04:04:05 | 2020-04-17T04:04:05 | 248,718,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,526 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.12.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
#... | [
"ywm3685@qq.com"
] | ywm3685@qq.com |
94a798f5d7308fcbe123a455033b48e8309745e5 | 824b582c2e0236e987a29b233308917fbdfc57a7 | /sdk/python/pulumi_google_native/gameservices/v1/_enums.py | 80a4901a6859335feb5cffa4619a9f4fff2a8000 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | 24601/pulumi-google-native | ce8faf8455609a9572a8cbe0638c66427bf0ae7f | b219a14201c6c58eaa10caaeacbdaab528931adf | refs/heads/master | 2023-08-23T05:48:31.819709 | 2021-10-08T18:50:44 | 2021-10-08T18:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,794 | 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! ***
from enum import Enum
__all__ = [
'AuditLogConfigLogType',
'AuthorizationLoggingOptionsPermissionType',
'CloudAuditOptionsLogName',
'C... | [
"noreply@github.com"
] | noreply@github.com |
5df8ddad80786293c77eeb3cdbc342e6a41af0a2 | b793302e56ab40b82892191a3b3bbd916c9c0f47 | /pyjfuzz/core/pjf_decoretors.py | d566455c401f436a3728074d59ece0937b85936f | [] | no_license | yuanfeisiyuetian/5gc-fuzz | 5b06f053d64b5504a1667a5beb695936ce1a1381 | 13f1943a0d9e6cc79e2a2e8089e56ca31c1e5edb | refs/heads/master | 2023-08-11T23:08:38.530392 | 2021-10-06T07:19:59 | 2021-10-06T07:19:59 | 411,973,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | """
The MIT License (MIT)
Copyright (c) 2016 Daniele Linguaglossa <d.linguaglossa@mseclab.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation th... | [
"13051593033@163.com"
] | 13051593033@163.com |
cf09aa744e34193b2f88204ad63a6d701c99a4b4 | 5455f66346259f710a46c9b227944987552eb17e | /daily_temperature.py | 963aa9523e4f43d507d8d47ad0bbe7d9834c9e24 | [] | no_license | LawrenceGao0224/LeetCode | 0dc9ead99f48660390c050c0fce0ca9d8e9fd108 | 5c3f4bc56868233fb9d693cf515528c566b7267d | refs/heads/main | 2023-04-19T09:02:30.082783 | 2021-04-28T01:46:40 | 2021-04-28T01:46:40 | 335,158,769 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | '''
how many days you would have to wait until a warmer temperature
T = [73, 74, 75, 71, 69, 72, 76, 73], your output should be [1, 1, 4, 2, 1, 1, 0, 0].
'''
class Solution:
def dailyTemperatures(self, T: List[int]) -> List[int]:
res = [0] * len(T)
stack = []
for i, e in enumerate(... | [
"bightt53523@gmail.com"
] | bightt53523@gmail.com |
2031c56a44240eab92abe738a0079300ea5defc9 | e4b6830f1a52862ac16a92240ed2917dbfe0cbfe | /freshworks_assignment.py | d32d7a2ec2827d42462c8fbf45b35cf8e4f44edd | [] | no_license | Alphaleader007/Key-Value-Store | 006fe00bc22c60ff73fc4086e22cc01678d69209 | cda5f9a0ccf69851512bd28568a7ed8b85786c1c | refs/heads/main | 2023-03-24T07:16:54.092146 | 2021-03-22T06:06:48 | 2021-03-22T06:06:48 | 317,653,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | import json
ct=1
while ct:
def create():
data={}
x=input("Enter the Path of the JSON File,if not specified, data.json under the current dir will be considered\n")
if x=="":
x="data.json"
with open(x, 'w') as fp:
json.dump(data, fp)
n=input("no of input:") #no.of data entry
print("Enter ... | [
"noreply@github.com"
] | noreply@github.com |
1f3b81a2dc445f1de658e69b2c57ae1862a4d74d | 00334fc7098f139950024a186bdbf31bae9a309c | /meiduo_mall/meiduo_mall/apps/contents/views.py | 3ca6786bc51599fd263b90ab68a06bb2d3572a12 | [] | no_license | AllenCheungOfficial/projects | d0782e6ff327072fcb0f72ee1742050b06f5df23 | 82974879d4e96734369708a4c27d15490cedb78a | refs/heads/master | 2020-05-20T00:54:31.292590 | 2019-05-24T13:54:31 | 2019-05-24T13:54:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | from django.shortcuts import render
from django.views import View
from .models import ContentCategory
from goods.utils import get_categories
class IndexView(View):
"""
定义首页广告视图:IndexView
"""
def get(self,request):
"""
提供首页广告界面
"""
# 1.获取分类的三级数据
categories = ... | [
"zhangyanyy@163.com"
] | zhangyanyy@163.com |
5d50336e63c121fe6f46877547009aa9b9bae971 | 5908dc4ea216ff324685f454f03c197e3d867093 | /MinAvgTwoSlice.py | 77e4b03572bd8c1fa201d427ef880aa992f912f3 | [] | no_license | thegamingmadao/codibility-solutions | 3d253de30d49854a31e0e10a0ac81f7e5b41240d | a27adad199a7f8f1024fdd3977dfc71026f62454 | refs/heads/master | 2020-04-05T16:22:02.502421 | 2018-11-10T17:16:38 | 2018-11-10T17:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | def solution(A):
# write your code in Python 3.6
n = len(A)
p = [0] * (n+1)
min_averages = []
for i in range(1, n+1):
p[i] = p[i-1] + A[i-1]
print('p'+str(i) + ' '+ str(p[i]))
for i in range(n-1):
averages = [(p[j] - p[i])/(j-i+1) for j in range(i+1,n+1)]
... | [
"madao@localhost.localdomain"
] | madao@localhost.localdomain |
2a1b73db74544b5ea8a04f83b4bcafe43d880d89 | 6292b5c988f1bfffec3754336da7544554f9d137 | /lab04/src/.ipynb_checkpoints/consts-checkpoint.py | acc0ddffa168210db4a0fdb4a83b4f9c226b73a9 | [] | no_license | 2ndbleu/20f-computer-architecture | a6a0e1662a9fa21bd53b87c8e701711fd5476192 | b9e737659e250c17b4f2d84bd7c9b1966026df2c | refs/heads/master | 2023-03-16T04:38:18.729963 | 2020-12-19T16:38:11 | 2020-12-19T16:38:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,438 | py | #----------------------------------------------------------------
#
# 4190.308 Computer Architecture (Fall 2020)
#
# Project #4: A 6-Stage Pipelined RISC-V Simulator
#
# November 25, 2020
#
# Jin-Soo Kim (jinsoo.kim@snu.ac.kr)
# Systems Software & Architecture Laboratory
# Dept. of Computer Science and Engineerin... | [
"lucetre@naver.com"
] | lucetre@naver.com |
67d7445176b628d391bca470696e3b4247bc6228 | aabfe137db175f0e070bd9342e6346ae65e2be32 | /RecoEcal/EgammaClusterProducers/python/islandClusteringSequence_cff.py | 57c2add9f6396084fa60b771d75bfcb922cb8181 | [] | no_license | matteosan1/cmssw | e67b77be5d03e826afd36a9ec5a6dc1b3ee57deb | 74f7c9a4cf24913e2a9f4e6805bb2e8e25ab7d52 | refs/heads/CMSSW_7_0_X | 2021-01-15T18:35:33.405650 | 2013-07-30T14:59:30 | 2013-07-30T14:59:30 | 11,789,054 | 1 | 1 | null | 2016-04-03T13:48:46 | 2013-07-31T11:06:26 | C++ | UTF-8 | Python | false | false | 797 | py | import FWCore.ParameterSet.Config as cms
#
# $Id: islandClusteringSequence.cff,v 1.7 2007/03/13 17:21:44 futyand Exp $
#
#------------------
#Island clustering:
#------------------
# Island BasicCluster producer
from RecoEcal.EgammaClusterProducers.islandBasicClusters_cfi import *
# Island SuperCluster producer
from R... | [
"sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch"
] | sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch |
32fe1679d2feadc46297b9e8dcfb7629e168103a | 469215340934818223c7290b49f204230f3867d2 | /demoapi/manage.py | b8b09ec7e4820ffc2e961559476930a9d75a3f78 | [] | no_license | eph6666/appmesh_apigw | 1952bd0ec2d607ce3674a3aee0652f898ce1537e | 26842b0e564957478fd3ed502a304a53d2c447c4 | refs/heads/main | 2023-08-05T12:32:50.989317 | 2021-09-28T12:41:23 | 2021-09-28T12:41:23 | 395,435,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "demoapi.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"ec2-user@ip-10-100-0-198.ec2.internal"
] | ec2-user@ip-10-100-0-198.ec2.internal |
a5e7a3af6377f3d034fb9d3a2eca1be0272c3745 | 4136e5496ae85c987470496b55dc577460aed7cd | /list/forms.py | c5cf0b6d5b61b2bb6332c8171a7c198d00bcf608 | [] | no_license | likass/Auto-Parts | b1ef9743b4375fbfd9ea908b7ac2c840f5269738 | 6910f4952f83620f64f7e8deae1d37b5cccb53d8 | refs/heads/master | 2022-12-22T06:34:10.858959 | 2020-09-23T19:23:47 | 2020-09-23T19:23:47 | 298,070,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from django import forms
class ContactFormEmail(forms.Form):
name = forms.CharField(required=True, max_length=15, label='Name:')
email = forms.EmailField(required=True, label='Email:')
number = forms.CharField(required=True, max_length=20, label='Phone Number:')
message = forms.CharField(requir... | [
"noreply@github.com"
] | noreply@github.com |
c8fa4f266de42cc4b9e1d733fe14138c7a67ed74 | 0d71626fe89d1a77e1d6bd535535c2577fa62e15 | /src/functions.py | 53b88d4f56dbf22a13fb3e295189c4ea2e77c854 | [] | no_license | ChanceDurr/Intro-Python-II | 1c311293dd08485a2f4689ded8cd18ffabfc9334 | 74082cfe1707977a2328e3f1c62ea0e9b6ec1d63 | refs/heads/master | 2020-09-23T16:24:26.184847 | 2019-12-04T22:12:48 | 2019-12-04T22:12:48 | 225,540,250 | 0 | 0 | null | 2019-12-03T05:43:05 | 2019-12-03T05:43:04 | null | UTF-8 | Python | false | false | 189 | py | import time, sys, random
# function to print string like typing
def print_slow(s):
for letter in s:
sys.stdout.write(letter)
sys.stdout.flush()
time.sleep(0.05) | [
"chancedurr@gmail.com"
] | chancedurr@gmail.com |
150b4690eaa142413fe75e5d6ef20cccde218311 | 26c54c424dbe79fcd1962bddcbbb218d090eb6fc | /roteiro7/SumFat.py | dc8ede066369033aa05e71a172e8dba32d540bac | [] | no_license | Anap123/python-repo | dbfa4cad586ba5b3bffdc26e70c6170048e59260 | 2532a7cebe88b9987109a93fb5e6c486a5152b22 | refs/heads/master | 2020-08-17T12:52:49.437324 | 2019-05-21T20:55:57 | 2019-05-21T20:55:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | def fat(a):
if(a==1):
return 1
elif(a == 0):
return 0
else:
return (fat(a-1)*a)
soma = 0
for i in range(5):
a = int(input())
if(a%3 == 0):
soma += fat(a)
print(soma)
| [
"punisher077@github.com"
] | punisher077@github.com |
5ce264684ee8cc4bdf3fe7fa5259b05e6e179cd9 | 381b75fe68a4da258e2e60a97105b66ac47214e4 | /qa/rpc-tests/rawtransactions.py | 0ac80a49539a555d1b868ed4d8ea36442667ff7f | [
"MIT"
] | permissive | lipcoin/lipcoin | 3a5997dfc9193ee7dee6f9fa0adc1cb5fb8c92a3 | 7afc0a02d63620e5a5601474cca131cb0cf3bbe4 | refs/heads/master | 2021-01-24T07:57:56.248620 | 2018-03-17T19:04:38 | 2018-03-17T19:04:38 | 112,155,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,666 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The LipCoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""rawtranscation RPCs QA test.
# Tests the following RPCs:
# - createrawtransaction
# - signrawtra... | [
"support@lipcoins.org"
] | support@lipcoins.org |
c27074644766ba4228e511a9a1c884d8ec0e431b | ea262de505a1dd5ae1c7b546b85184309c3fdd35 | /src/models/modules/scales.py | 78234592ac2641e1791aa6240573f86204bde16e | [
"MIT"
] | permissive | Runki2018/CvPytorch | 306ff578c5f8d3d196d0834e5cad5adba7a89676 | 1e1c468e5971c1c2b037334f7911ae0a5087050f | refs/heads/master | 2023-08-25T09:48:48.764117 | 2021-10-15T05:11:21 | 2021-10-15T05:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # !/usr/bin/env python
# -- coding: utf-8 --
# @Time : 2021/3/29 9:22
# @Author : liumin
# @File : scales.py
import torch
import torch.nn as nn
class Scale(nn.Module):
"""
A learnable scale parameter
"""
def __init__(self, scale=1.0):
super(Scale, self).__init__()
se... | [
"569793357@qq.com"
] | 569793357@qq.com |
db894d65369524787dfeec3853c0b7a67182ff8b | ed5ad5fbced00d612bf6aeaac8638d449740729a | /phr/phr/doctype/provider/provider.py | a1864f4ea6a7bb347306d01ca8d0f5518d0af3c8 | [] | no_license | pawaranand/phr_5_1 | 36d75ba02076a7aee299e747a58e41bb4481438f | c2b4da71a390fa2fcc77acfc799f79fdb0685335 | refs/heads/master | 2020-12-24T14:10:55.352872 | 2015-02-05T05:21:57 | 2015-02-05T05:21:57 | 30,339,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | # Copyright (c) 2013, indictrans and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Provider(Document):
pass
| [
"tejal.s@indictranstech.com"
] | tejal.s@indictranstech.com |
9bbeedd25c985555fadeeb00f94907941765f1b2 | f9f59b407a082b6268199a82a77bb47fa1f55e75 | /oauth_flask/03_full_backend/main.py | 3230cfbaa60e882d5dd67a6afdb22720d30648f2 | [] | no_license | gronka/code_share | ce68ecab374f458659407c95141049b38919306e | e9586519caf9cd38aec4a341e30b9ec93686258d | refs/heads/master | 2022-12-13T03:21:23.033481 | 2020-09-11T01:53:32 | 2020-09-11T01:53:32 | 274,448,155 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from app import app, socketio
import routes
import sroutes
if __name__ == '__main__':
# TODO: Enable encryption by running server on HTTPS
socketio.run(app, debug=True)
| [
"tgronka@cisco.com"
] | tgronka@cisco.com |
12089dfc4e9a18d8b01d45f741d2a07429107f15 | b440967316e2cc67de01f13e29f8070d1220c376 | /db4.py | 79795519a8a55fbfb3427dabd407cc4ada103d70 | [] | no_license | kishorc1999/Kishor-Chintanpalli | ab55f9aacfc51ea340fc63f94fefcd946d1a3c43 | eaabde2e659ade33ba74e23e58c0a7e48aca9f03 | refs/heads/master | 2020-12-09T18:12:45.289778 | 2020-01-15T10:15:29 | 2020-01-15T10:15:29 | 233,380,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | '''
4]Select:
select colname1,.....,colnamen
from <tablename>
where condition
Example:
select fname,lname
from student
where rollno=1
'''
import mysql.connector
c=mysql.connector connect(host='localhost',user='root',passwd='',database='demo')
cur=c.cursor()
x=cur.rxecute("select * from student")
p=cur.fetchall()... | [
"kisharc1999@gmail.com"
] | kisharc1999@gmail.com |
d457f176565b80c978bfb00733dec4d02f4861d8 | 256644d14bd15f8e1a3e92c95b1655fd36681399 | /pure_python/ga+ppm/main/utilities.py | a07447f3183438919021284b04c4c34a872f020c | [] | no_license | mfbx9da4/neuron-astrocyte-networks | 9d1c0ff45951e45ce1f8297ec62b69ee4159305a | bcf933491bdb70031f8d9c859fc17e0622e5b126 | refs/heads/master | 2021-01-01T10:13:59.099090 | 2018-06-03T12:32:13 | 2018-06-03T12:32:13 | 12,457,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | import random
import math
from pylab import zeros, where, array, empty_like
def crossover(m1, m2, NN):
# Maybe could be sped up using flatten/reshape output?
net = NN()
r = random.randint(0, net.wi.size + net.wo.size)
output1 = [empty_like(net.wi), empty_like(net.wo)]
output2 = [empty_like(net.wi... | [
"dalberto.adler@gmail.com"
] | dalberto.adler@gmail.com |
3835bd462d27894a5442d6a412b2dd67de3d593d | 675cdd4d9d2d5b6f8e1383d1e60c9f758322981f | /supervised_learning/0x03-optimization/2-shuffle_data.py | 1fc0ce20d6f011ea71c6f64624e3d65b15d7e653 | [] | no_license | AndresSern/holbertonschool-machine_learning-1 | 5c4a8db28438d818b6b37725ff95681c4757fd9f | 7dafc37d306fcf2ea0f5af5bd97dfd78d388100c | refs/heads/main | 2023-07-11T04:47:01.565852 | 2021-08-03T04:22:38 | 2021-08-03T04:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | #!/usr/bin/env python3
"""
Shuffles the data points in two matrices the same way
"""
import numpy as np
def shuffle_data(X, Y):
"""
Shuffles the data points in two matrices the same way
"""
i = np.random.permutation(np.arange(X.shape[0]))
return X[i], Y[i]
| [
"bouzouitina.hamdi@gmail.com"
] | bouzouitina.hamdi@gmail.com |
0e11d74b63a525a47ac0423bcedf37d6db871a31 | 6e47be4e22ab76a8ddd7e18c89f5dc4f18539744 | /venv/openshift/lib/python3.6/site-packages/kubernetes/client/models/v1_security_context.py | 4be4451ac2cdd63dad12dfb4d7fa91b4d3b660a7 | [] | no_license | georgi-mobi/redhat_ocp4.5_training | 21236bb19d04a469c95a8f135188d3d1ae473764 | 2ccaa90e40dbbf8a18f668a5a7b0d5bfaa1db225 | refs/heads/main | 2023-03-30T10:47:08.687074 | 2021-04-01T05:25:49 | 2021-04-01T05:25:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,971 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.12.11
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import r... | [
"student@workstation.lab.example.com"
] | student@workstation.lab.example.com |
e443ede8da949150803c68a4b70b2b62737d5908 | 3983bcdc11716c59a58bc0d14e23e1042297679d | /classes.py | e63789b8c286f77524e36dd17affaf6b0f219a43 | [] | no_license | Suman-1/learn-git- | 5534aa67961afd8cfb7101457933f2fd303e8f6a | a2942b2cd6b6339f9dae6e17a0d8870fa2f1575d | refs/heads/master | 2021-06-29T00:31:39.311634 | 2017-09-20T04:47:37 | 2017-09-20T04:47:37 | 104,163,896 | 0 | 0 | null | 2017-09-20T04:47:37 | 2017-09-20T04:05:02 | Python | UTF-8 | Python | false | false | 790 | py | students = []
class Student:
school_name = "New Summit College"
def __init__(self, name, student_id=332):
self.name = name
self.student_id = student_id
students.append(self)
def __str__(self):
return "Student" + self.name
def get_name_capitalize(self):
retur... | [
"suman33.sb@gmail.com"
] | suman33.sb@gmail.com |
5bcc2f9b22961570a666d8d96e07b0b6074ec6fe | e9f9a0a10fe5da02613f8662e2eaf82ee75ac2ef | /VerificadorLexer.py | 6638b0e23064583cdc9c1229074afa23295e92da | [] | no_license | SantiJimenez/ExpresionesRegularesLex | dbaaff82ef3e7da0f8690c77400352b45d9a6d5f | 79a55cae575c01377303d62f27b5e6e4cee3da9b | refs/heads/master | 2021-07-13T01:28:59.976876 | 2017-10-16T23:50:38 | 2017-10-16T23:50:38 | 106,971,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import sys
import ply.lex as lex
tokens = [ 'NAME','NUMBER','PLUS','MINUS','TIMES','DIVIDE', 'EQUALS' ]
t_ignore = ' \t'
t_PLUS = r'\+'
t_MINUS = r'-'
t_TIMES = r'\*'
t_DIVIDE = r'/'
t_EQUALS = r'='
t_NAME = r'[a-zA-Z_][a-zA-Z0-9_]*'
def t_NUMBER(t):
r'\d+'
t.value = (t.value)
return t
# Error handling ... | [
"santijimenezbonilla@gmail.com"
] | santijimenezbonilla@gmail.com |
4a2ad827b35462efaa2c4028162422314a8ffc82 | f6ad34f1eed97340f796ea083a71e6e2d38a3d26 | /src/libs/lwip/SConstruct | 8b06b31aca08f93f63e7ee4ace2da74fba04e072 | [] | no_license | gz/aos10 | 606abb223563c4f6df6f163c07b0290ab2d95795 | b204e8fc29860ce03155a08f7e8d8748180a4f14 | refs/heads/master | 2020-03-26T02:38:11.918982 | 2011-02-10T12:39:06 | 2011-02-10T12:39:06 | 1,464,801 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 899 | Import("env")
public_headers = ["#libs/lwip/include", "#libs/lwip/include/ipv4"]
srccorelist = """core/inet.c core/ipv4/icmp.c core/ipv4/ip.c core/ipv4/ip_addr.c
core/mem.c core/memp.c core/netif.c core/pbuf.c core/stats.c
core/stats.c core/sys.c core/tcp.c core/tcp_input.c
core/tcp_output.c core/tcp_pcb.c c... | [
"mail@gerdzellweger.com"
] | mail@gerdzellweger.com | |
61fe97d3889316ac2e1c1db3d2950d8f741a2f9b | 9f3a6caf1f80f48c8a06850348da44ff3666ad06 | /Python programs/lab13.py | 8f016f7ffcf6e392513389c47c412d503d7fcbad | [] | no_license | Coadiey/Python-Projects | f507a9d07c83638ad779ee36c1139c4f7ce860ea | f519531ee874d58c1fd7742257074a24fc42140a | refs/heads/master | 2020-03-20T23:29:39.256613 | 2018-09-23T13:49:32 | 2018-09-23T13:49:32 | 137,848,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | # Lab #13
# Coadiey Bryan/C00039405
# Lecture Section #3
# create an empty list to store the key for the test
key = []
print()
print("Grading Key: ")
# open the file of test key answers
infile = open("key.py", "r")
# read 20 characters from the file
for i in range(20):
letter = infile.readline().strip()
... | [
"noreply@github.com"
] | noreply@github.com |
a57be1ccd70d379bb3f5a52585486e4ae5826738 | a141feed9b22cfe4f10b3008aed8311a64129113 | /ShapNet/utils/named_tensor_utils/private_methods.py | cdee94c75f6f3841fbc74e95c7ad793864e83b03 | [
"MIT"
] | permissive | Tzq2doc/ShapleyExplanationNetworks | 3f8dd34cee380701cc8bf74fbedd43cc7ff54c8c | cab6644677894f0ac88610d2f9cfca239068f403 | refs/heads/main | 2023-02-18T03:22:45.309584 | 2021-01-16T09:15:36 | 2021-01-16T09:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# =============================================================================
# Created By : Rui Wang
# =============================================================================
"""
Basic methods to composite later
"""
# =============================================... | [
"ruiwang1998@outlook.com"
] | ruiwang1998@outlook.com |
226c865167e07676ff6c7ae34795ab2942ead5d5 | 96ed412ec58a110e765ec6a61cd81daded26aa5c | /main.py | 4f98ecdd78772bd4d362ffc1a9989875b0a55c40 | [] | no_license | abrohit/PythonAnywhere-Automation | 260591a8052499c46b820230aeb20ef7bd429860 | 3c67ebbeaa38e41c59e640f4c6f3f3eca47b8310 | refs/heads/main | 2023-04-25T19:40:56.578169 | 2021-06-09T07:20:05 | 2021-06-09T07:20:05 | 375,238,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | from dotenv import dotenv_values
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
class Automate():
#Initializes class, Params: email and password of user.
def __init__(self, email: str, password: str):
self.BASEURL = ''
self.options = Optio... | [
"abrohit05@gmail.com"
] | abrohit05@gmail.com |
7186624e5d8aa50538719f321aff330cca21aa6a | ef43b82725b15afac2e3d815035b25a0641659eb | /data_prep/06_channel_extract_piano.py | 9bbf3e65372b55df0afb6b82649e35e53ad79540 | [] | no_license | nikolasborrel/dlmusic | 89d36ad817792372672f12e0904e452c4034351a | 6041eff54d51fcea198fe2a1c244f3cbc5bfa086 | refs/heads/main | 2023-02-16T06:28:59.037437 | 2021-01-14T09:57:49 | 2021-01-14T09:57:49 | 313,302,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,171 | py | """
Extract piano MIDI files. Some piano tracks are split into multiple separate
piano instruments, in which case we keep them split and merge them into
multiple MIDI files.
From "Music Generation with Magenta", filename chapter_06_example_06.py
"""
import argparse
import copy
import os
import random
import shutil
im... | [
"nibor@elektro.dtu.dk"
] | nibor@elektro.dtu.dk |
a954d3cf5bcbd5f4955cd6046b9d99f627473f01 | 27719c23049f2b53571f781c5b8e385243e2f752 | /pokemonStrengthChart.py | 93989230abd3a0819ebcd37403b7d3a333e08fd7 | [
"MIT"
] | permissive | importhuman/cmd_pokemon | 249f43c3e46e366913e2ac3910281e348b5e5c99 | 184da8b3bad67f07032baaac3f79bcb34aaa0eda | refs/heads/master | 2022-12-25T08:34:57.284178 | 2020-10-07T14:33:03 | 2020-10-07T14:33:03 | 300,285,672 | 0 | 0 | MIT | 2020-10-07T14:33:04 | 2020-10-01T13:16:18 | Python | UTF-8 | Python | false | false | 1,336 | py | pokemon_types = ['fire', 'water', 'grass', 'electric', 'flying', 'normal', 'ice', 'ground',
'poison', 'bug', 'rock', 'steel', 'ghost', 'dark', 'psychic']
typeAdantages = {
'fire': ['grass', 'steel', 'bug', 'ice'],
'water': ['fire', 'rock', 'ground'],
'grass': ['water', 'rock', 'gro... | [
"noreply@github.com"
] | noreply@github.com |
0a6018e764277307ff25e5c7a6a56f1c5fdf6781 | 59b12d062154cf81d745a88defb8d5c77636a343 | /venv/Lib/site-packages/sqlalchemy/__init__.py | ddcf8e1add95a7313dbcac165e2bd5313f16b1d6 | [] | no_license | PyGrameWu/LocalNewsForTour | 4208877d1f914793648d9c59130336a446dd7235 | 38580f806b9dd0c85e928f485597bafb556ff529 | refs/heads/master | 2023-07-11T16:36:45.809100 | 2021-08-14T13:59:14 | 2021-08-14T13:59:14 | 395,945,435 | 23 | 10 | null | null | null | null | UTF-8 | Python | false | false | 4,085 | py | # sqlalchemy/__init__.py
# Copyright (C) 2005-2021 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
from . import util as _util
from .engine import create_engine
from .engine i... | [
"549073688@qq.com"
] | 549073688@qq.com |
a231312ca77fdeac22c60185fe25bd5d22a51476 | 57cc185c3f08d6f76390f6e444e47ff1e9e630a8 | /pic.py | a32b15c1bbcd9fddd7c5e971090f67df26f3e823 | [] | no_license | VDashenka/hole-boring | 81a23cac203a4635c9c3d7ba36c338258c028245 | 121bc262f43f720f28355e71cfc5d3f0dbcb095d | refs/heads/master | 2022-12-25T17:22:58.323971 | 2020-10-06T09:53:03 | 2020-10-06T09:53:03 | 298,557,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import matplotlib.pyplot as plt
import numpy as np
from math import sqrt
from scipy.integrate import solve_ivp
from os import listdir
from os.path import isfile, join
# In[2]:
def full_path(data_name, n):
return '/home/dasha/picador/1.0rc1/bin/m=1/n5a25/BasicO... | [
"darya_voytovich@mail.ru"
] | darya_voytovich@mail.ru |
17fc350a8bce1e34248cf2065c2b4990e338e9be | f6c7910213d97bd7a24be399f8475c11648732c4 | /build/lib/rqalpha/data/dtsk_python_interface/tsk.py | 5e7b90273994e6d9a6606f4388c509ce028186d8 | [
"Apache-2.0"
] | permissive | kinglogxzl/rqalpha | 8c25a2c5ecb04639e0a6bd3765d376759bb98889 | 6203803e0fb130fbb5a280ee8e1b902a8c0fd731 | refs/heads/master | 2021-01-11T14:17:00.459069 | 2017-02-22T07:21:24 | 2017-02-22T07:21:24 | 81,298,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,144 | py | import utility.ascii
import tdtsk
import h5py
import numpy as np
import xarray as xr
def get_key_string_list(h5_file_content, dimension_name):
ascii_arr = h5_file_content[dimension_name][()]
string_list = []
for current_ascii in ascii_arr.tolist():
string_list.append(utility.ascii.ascii_to_string(c... | [
"391275002@qq.com"
] | 391275002@qq.com |
f8fccfa10aaf61b927be76184af448a1b5c565f6 | 75fa11b13ddab8fd987428376f5d9c42dff0ba44 | /metadata-ingestion/tests/integration/snowflake/common.py | 43f5e04fbc89fcd2cb4b24d5cc32c9cf6600679d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | RyanHolstien/datahub | 163d0ff6b4636919ed223ee63a27cba6db2d0156 | 8cf299aeb43fa95afb22fefbc7728117c727f0b3 | refs/heads/master | 2023-09-04T10:59:12.931758 | 2023-08-21T18:33:10 | 2023-08-21T18:33:10 | 246,685,891 | 0 | 0 | Apache-2.0 | 2021-02-16T23:48:05 | 2020-03-11T21:43:58 | TypeScript | UTF-8 | Python | false | false | 22,993 | py | import json
from datetime import datetime, timezone
from datahub.configuration.time_window_config import BucketDuration
from datahub.ingestion.source.snowflake import snowflake_query
from datahub.ingestion.source.snowflake.snowflake_query import SnowflakeQuery
NUM_TABLES = 10
NUM_VIEWS = 2
NUM_COLS = 10
NUM_OPS = 10
... | [
"noreply@github.com"
] | noreply@github.com |
c36baf9647e0ce044c5d388d9bed6008c9b426f3 | 2c64663fb368230d0deaa2bfb72ec33e6af8b12b | /models/notify_type_model.py | 84e01fa7f58af279ea392e57279222472256bc62 | [] | no_license | cncg51/post_bar | 8da4cb76dc6f03d11645d3270a6f6c2264fc77fe | 8981f9721af5ca5ecda2c4d5723123833e284b85 | refs/heads/master | 2020-04-01T04:20:42.347831 | 2018-10-13T16:01:36 | 2018-10-13T16:01:36 | 152,859,344 | 0 | 0 | null | 2018-10-13T10:08:37 | 2018-10-13T10:08:37 | null | UTF-8 | Python | false | false | 186 | py | # coding: utf8
__metaclass__ = type
from models.model import *
class notify_type_model(model):
def __init__(self):
super(notify_type_model, self).__init__('notify_type') | [
"rabbitzhang52@gmail.com"
] | rabbitzhang52@gmail.com |
0b90df7dbd721ecc641998896bff6d7087d4c28c | ac0a583e4765f2b5b97e898f30d6df0fc71ea8f6 | /pyros_msgs/opt_as_nested/__init__.py | 4beab2c01e9a05fe2344eb3a0f0e64941a108eae | [
"MIT"
] | permissive | pyros-dev/pyros-msgs | 5ce9efaa246ffa94396552fd6034c0eeacddeb76 | 28d9d6aa3cfbb42d154360f16eea1900be518f74 | refs/heads/master | 2022-07-06T15:53:16.764600 | 2018-02-17T15:03:36 | 2018-02-17T15:03:36 | 67,676,303 | 1 | 3 | MIT | 2022-06-21T21:19:34 | 2016-09-08T06:45:37 | Python | UTF-8 | Python | false | false | 347 | py | from __future__ import absolute_import
from __future__ import print_function
"""
pyros_msgs.opt_as_nested is a module that declares optional fields as a specific message type.
This is useful if you want to express an optional field in a message without any ambiguity.
"""
from .opt_as_nested import duck_punch
__al... | [
"asmodehn@gmail.com"
] | asmodehn@gmail.com |
d0dade868cb00ef5e103594ae46c0d072fcbd126 | e94d22cdb7c73b8a55262d5a6c2c7b0d75f3b63e | /snussum/analytics/management/commands/createanalytics.py | 6aae31665b387f93092ff96a50482be7c680c3e8 | [] | no_license | dobestan/snussum | 594d1169cc6a0a799c8104135dc028d65a3967d0 | 4f1f092a4c5cebd913a64c5a0d7f12b3e061552f | refs/heads/master | 2021-01-18T18:25:00.237448 | 2015-06-01T06:03:29 | 2015-06-01T06:03:29 | 34,576,643 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from django.core.management.base import BaseCommand, CommandError
from analytics.models.demographic import Demographic
class Command(BaseCommand):
help = "Create Analytics Data"
def add_arguments(self, parser):
pass
def handle(self, *args, **options):
demograhic = Demographic.objects.cr... | [
"dobestan@gmail.com"
] | dobestan@gmail.com |
d3783b55fc2833796d674fbf66cad05b5c93c4cf | f3ff4033692811e0c90af7c7bbbc7542d747fc3c | /python_analysis/mulit_stock_df.py | 52a5428c94d32e9b4d2235ff4b474692efe7721b | [] | no_license | barrard/alpaca_data | de72f2d68bb4c5cd2652fe51360c9798546c4394 | 6c1177b40ac08e1de434c231efc2919457eb9520 | refs/heads/master | 2022-12-20T12:55:35.368171 | 2019-09-06T07:28:33 | 2019-09-06T07:28:33 | 193,910,711 | 1 | 0 | null | 2022-12-09T07:49:31 | 2019-06-26T13:33:17 | JavaScript | UTF-8 | Python | false | false | 2,288 | py | import pandas as pd
import matplotlib.pyplot as plt
symbols = [ 'BAC', 'IBM', 'MSFT', 'AAPL', 'F', 'GE', 'INTC']
# def adjust_dates():#No need any more
# for symbol in symbols:
# df = load_data(symbol)
# print(df.head())
# time = df['t']*1000
# df.drop('t', axis=1, inplace=True)
#... | [
"barrard@gmail.com"
] | barrard@gmail.com |
b63fdac6fd07e00fa254f5ef1bc16fd767aecde5 | 593d1deeb8483c71fdb7a157ed0584a90ffc2b3c | /setup.py | 8142df92999635e7793934373f7aff9f27f31ed7 | [] | no_license | ValvePython/dota2-wrappers | 7c2851543a9b219c393e3adf69bf3fcb932c41ca | 249bc22a4bb0a308d50cc5745a55e84a1cd15b64 | refs/heads/master | 2021-01-18T08:09:26.775764 | 2015-06-01T20:48:56 | 2015-06-01T20:48:56 | 36,687,968 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | #!/usr/bin/env python
from setuptools import setup
from codecs import open
from os import path
from dota2 import __version__
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dota2',
version=__version__,
... | [
"zoorty@gmail.com"
] | zoorty@gmail.com |
7a2d4ef049bce7d2db3ab5b46eec04be0b136a9e | 63d52137a68d500efffd45d0256cd480da05f8e0 | /draw2.py | 08fbfcbe4c07f5fec38dcced3861c1325e6cfbc5 | [] | no_license | TheArle/pong | fdcf6a73179ca74185169f0e56ddc4dc54107a3f | 1474be4cd5f020964494f460bce0f9b79e9bcd47 | refs/heads/master | 2020-08-24T17:26:19.482906 | 2019-11-19T18:27:23 | 2019-11-19T18:27:23 | 216,871,283 | 0 | 0 | null | 2019-10-30T17:39:23 | 2019-10-22T17:27:22 | Python | UTF-8 | Python | false | false | 1,556 | py | import arcade, random
"""
Practice basic arcade drawing commands and some practice using the
arcade api (application programing interface)
This is a list of all the various arcade functions, methods, classes
and all the detail you need to program with arcade and Python
http://arcade.academy/index.html
http://a... | [
"noreply@github.com"
] | noreply@github.com |
cef569ea71a6c217a0106324003024ccbd957271 | fd837c9d6577770a275a4de07dc5f025aa242c73 | /days09/demo03_问题.py | 1698ce5c6953e51ba7836fd70f8332f3ba278926 | [] | no_license | liuhu0514/py1901_0114WORK | 4228ea56a84237b7e5fee57d8884a53d107e5fd3 | c783e94af9ecd09e33efbc287a79c8633e15d1a8 | refs/heads/master | 2020-05-06T12:20:04.550244 | 2019-04-08T09:40:18 | 2019-04-08T09:40:18 | 180,117,323 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | '''
全局变量
局部变量
冲突问题【如果出现:只能说明~软件设计有问题~你有问题】
'''
# 全局变量
name = "tom"
# 函数中~局部变量
def test():
name = "jerry"
print("函数中访问name:", name)
test()
print("函数外访问name:", name)
'''
正常情况下,变量数据的访问
函数中如果出现了和全局变量重名的变量
1. 函数外部访问:
优先访问 全局变量
然后访问 局部变量【X】
2. 函数内部访问:
就近原... | [
"1466947051@qq.com"
] | 1466947051@qq.com |
23b61174641553a6cf1a0222f5fc0fa3b551f0b8 | 445dfee46685e37519377d79bf62880eab224727 | /Programming Assg/1_Dy_Kim_assg1.py | 9f011bf03b53bd1a1d205a0dae648ad43573c65b | [] | no_license | kdy618/CS300 | 06781527d2c5223d8497731324eeaabba94d576a | a106e8ea72aa8bd5ed1dcc6d30209e1e6f2712b5 | refs/heads/master | 2020-04-05T06:25:24.049701 | 2018-11-09T20:41:37 | 2018-11-09T20:41:37 | 156,637,392 | 0 | 0 | null | 2020-12-08T03:27:29 | 2018-11-08T02:16:47 | Python | UTF-8 | Python | false | false | 345 | py | '''
Intent: Begin to provide options for the form of people to be addressed.
Postcondition: The following is on the console (i.e., preceded by a blank line):
Greetings from a beginning Python programmer.
Do you want to be addressed as ...
'''
x = '\nGreetings from a beginning Python programmer.\nDo you want to be a... | [
"Kim@DESKTOP-G3P05GK.localdomain"
] | Kim@DESKTOP-G3P05GK.localdomain |
d4190b5bde288c39f6b1972246762766070ebb16 | e41a35bb6b57aef401363341d7fbcc4ed04f7a0d | /motorapp/migrations/0004_auto_20151211_1822.py | 7613d5c6326e50510ffd395a69760de14f273c78 | [] | no_license | CamilleMariniSonos/ML21 | 20a82f3bd78aff8752f014675074e61c12f82c85 | 08758f8b8d2707ee4277b30058b010c1e001db88 | refs/heads/master | 2022-12-15T18:21:13.844497 | 2016-03-22T16:29:52 | 2016-03-22T16:29:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('motorapp', '0003_auto_20151122_1725'),
]
operations = [
migrations.AlterField(
model_name='dataset',
... | [
"camille.marini@feetme.fr"
] | camille.marini@feetme.fr |
a775e4b0f818ac2bdd927c36c645d58aea22d114 | 389d95ee1f8d4ba992114e36c5fc427d02ba2a6c | /flexmessage_project/settings.py | ef5e0ea9c78442b5078ec03584e4b733d9fc65ac | [
"MIT"
] | permissive | adepeter/sleekmessage | d7a6b4279f6a60659cf8a98897136ca22c1b830a | 64621842cb9b0d707523e87f8bd6549d4e2d8433 | refs/heads/master | 2022-11-16T23:58:18.477628 | 2020-07-15T15:50:16 | 2020-07-15T15:50:16 | 265,276,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | """
Django settings for flexmessage_project project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
... | [
"adepeter26@gmail.com"
] | adepeter26@gmail.com |
946900ca782f0415d723eaabba961b981d2c9cd4 | 0e7a4a6926dc83b0ae415a2a9430c3e5274c8602 | /officialdemo/Chapter01/callRadioButton2.pyw | 425d3e8de7aa91404398f4646ecf9ae408049e07 | [] | no_license | madmadcat/QtCookBook_Demo | 9b0b3fb36c0786b186e42ad83a78ccdb31e2f002 | 8287964874fd9cafe5024118a2611af226e936d3 | refs/heads/master | 2023-02-27T11:59:44.736598 | 2021-02-05T13:03:56 | 2021-02-05T13:03:56 | 325,999,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | pyw | import sys
from PyQt5.QtWidgets import QDialog, QApplication
from demoRadioButton2 import *
class MyForm(QDialog):
def __init__(self):
super().__init__()
self.ui = Ui_Dialog()
self.ui.setupUi(self)
self.ui.radioButtonMedium.toggled.connect(self.dispSelected)
se... | [
"xdong@DONGXIN-MBP.local"
] | xdong@DONGXIN-MBP.local |
55840b4ca854f21374583d35ef6fc38dd63093cf | 5668e921a45a70269e6eef4901e66cc6108454f1 | /DiscordNitroGen.py | f193af256affdbf619edbe8d078c78bdd2d606e1 | [] | no_license | Baneee0011/Discord-Nitro-Gen-Python- | 8d5b54e1c08a664f773b20c90fb63de8e076a89c | ad6536f3d1a84cb0a0648ab6ea5377910490d799 | refs/heads/master | 2021-03-24T20:24:35.825208 | 2020-03-24T21:45:22 | 2020-03-24T21:45:22 | 247,562,507 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import random
import os
import string
def random_char(y: int):
return ''.join(random.choice(string.ascii_letters) for x in range(y))
random_string = random_char(16)
link = "discord.gift/"
print(link + random_string)
os.system('pause >NUL')
| [
"noreply@github.com"
] | noreply@github.com |
81e5c1962464f46f6731194743921ded34f9046e | 028f022419360d6657745042d71d650eeec86510 | /first tki.py | 7153421503721749deb25b8079888ca1493f293c | [] | no_license | Divyanshu050303/gui | 21b6eca7724dc00fa7beb3c70c8dcef78827b65d | f76a5529111275abb0e46c6a8174166c46ba787a | refs/heads/main | 2023-06-02T05:12:29.421795 | 2021-06-19T15:41:28 | 2021-06-19T15:41:28 | 368,836,758 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from tkinter import *
root=Tk()
root.geometry("300x300")
root.title("My first gui")
root.mainloop() | [
"noreply@github.com"
] | noreply@github.com |
4d6f2d80ffc442f7fe963c45fb36deb10b4fed3c | f967778ce740aa64e069aa9fdb6fe5c09cfaedad | /curso/serializers.py | 90942607f739773930c3058f0afbadc36a20904b | [] | no_license | Marcos-VNC/django_rest_api | 08c956c5f80c49e136f136de9c988b0427bf7593 | deb0aa62f415978dd12ae0e0ed90bd80f1a1cea4 | refs/heads/master | 2023-08-22T14:47:40.277194 | 2021-10-06T13:15:49 | 2021-10-06T13:15:49 | 414,229,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from rest_framework import serializers
from .models import Curso, Avaliacao
class AvaliacaoSerializer(serializers.ModelSerializer):
class Meta:
extra_kwargs = {
'email': {'write_only': True}
}
model = Avaliacao
fields = (
'id',
'curso',
... | [
"marcosvn.cardoso@outlook.com"
] | marcosvn.cardoso@outlook.com |
51a48253563501adbd6d8ae5e02a65be6ca83012 | c3aa0741480c70f8b0345eaa4e90111979995ebe | /Weather/Actual-Weather-to-MQTT.py | c4af9f8a5737f683922cb8d8822ac849999ed9f3 | [] | no_license | CubicrootXYZ/Helpful-MQTT-Python-Scripts | 6397c5ae9bbe44b490f03c8143e32b7374224ce9 | e904b38fdd996d76789dd6dead9cea68eb154026 | refs/heads/master | 2020-06-11T23:08:34.811730 | 2019-08-07T17:00:15 | 2019-08-07T17:00:15 | 194,116,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | # coding: utf-8
# just run this script via a cronjob every X Minutes
# this script pushes the actual weather from your choosen city to MQTT Channels (weather provided from openweathermap.org, you need a free account)
import json, requests, logging, traceback, datetime, time
import paho.mqtt.client as mqtt
#Settings
... | [
"noreply@github.com"
] | noreply@github.com |
b14ca4e7607d03104004ff629ef74d9863f957c0 | f34fb848436ff38abd385928d49e5ba88392b71d | /mysite/polls/models.py | 369ce658e201a6460bb336f19387947b7263f54a | [] | no_license | adityag3/Polling_Website-Django | 333e20b1f46b2b3425dfd8948ff3e59bccf0210c | 352aa9ab474b5e3e238a6b746473194b57f037c5 | refs/heads/master | 2021-01-10T14:50:14.336173 | 2016-03-11T19:15:00 | 2016-03-11T19:15:00 | 53,206,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | from __future__ import unicode_literals
import datetime
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils import timezone
# Create your models here.
#@python_2_unicode_compatible
class Question(models.Model):
question_text = models.CharField( max_length... | [
"adityagovil3@gmail.com"
] | adityagovil3@gmail.com |
105fa8d4cdfed72290458e5a57041240c95372ae | be6baafa884d5422d611587ca31495cbb7660a14 | /www/models.py | 99e14534f251ec3b4bffb6160bf7d003f5c806d8 | [] | no_license | protec21/www | 90405827d2c1985baeb1814e553c56b055986ad0 | 1cab267d034b5d27c3acf7fef60aa961f281af8d | refs/heads/master | 2023-07-18T00:04:20.580993 | 2021-08-17T01:30:32 | 2021-08-17T01:30:32 | 336,940,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from django.db import models
class Notice(models.Model):
title = models.CharField(max_length=200)
content = models.TextField()
date = models.DateTimeField()
class NoticeAttach(models.Model):
notice = models.ForeignKey(Notice, on_delete=models.CASCADE, null=True)
file = models.FileField(null=True, ... | [
"leekh529@gmail.com"
] | leekh529@gmail.com |
c5a506c058d8d1a23c61352ae6ad017163387afd | d2e2f05f8b894e32f43dac8a45819da54888109f | /0x01-python-if_else_loops_functions/9-print_last_digit.py~ | 726544fbcc4abd272721ae61b076e57545212c2f | [] | no_license | wolf-coder/holbertonschool-higher_level_programming | 1b249a63c77156fcb25dda616497dd1abc272e75 | a81ac6c7b7e59210b19f413bd413f999ed599d2c | refs/heads/master | 2023-05-31T20:47:54.785063 | 2021-07-09T14:21:47 | 2021-07-09T14:21:47 | 259,362,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | #!/usr/bin/python3
def print_last_digit(number):
return (5)
| [
"cuore.fakhri@gmail.com"
] | cuore.fakhri@gmail.com | |
bb81dcf53023df1f57952ce33ee109ad1f6587dd | d4bd60e24d9d40335ce403c5ee53401d1aaa1b9f | /django_project/customers/models.py | 96849f946efbdad9825c3f0774773b2b13901a41 | [] | no_license | Odeke12/clothing | d46d756c9083f0e84cf0121124c0de92b0b84ec8 | e85424d4a36090eddec8bdde552fdf70f9931ddb | refs/heads/master | 2022-12-18T15:22:49.260957 | 2020-09-29T10:47:14 | 2020-09-29T10:47:14 | 299,573,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from django.db import models
from django.contrib.auth.models import User
class User_profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
image = models.ImageField(default = 'default.jpg', upload_to='shop_profile')
def __str__(self):
return f'{self.user.username} ... | [
"trevodex@gmail.com"
] | trevodex@gmail.com |
ac5983589d1903d1d80a2ae9a87438dd66d95c9a | 7398b8196c769af2bb84f0c1e3e079c7c9bf0c22 | /Radar Eletronico.py | 3a139138c0e0ab1d58b207e31dadeb3fbde33c5e | [] | no_license | Inglaciela/PastaPython | e15576da7d1f9fe45e361b7c6ab054982801160a | cc31d9f20c128c2ac5361e30ec6eb64bbdfa02d5 | refs/heads/main | 2023-08-27T10:18:53.959821 | 2021-10-25T16:09:08 | 2021-10-25T16:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | velocidade = float(input('Qual é a velocidade atual do carro?'))
if velocidade > 80:
print('MULTADO! Voce execedeu o limite permitido que é 80km/h')
multa = (velocidade-80) * 7
print('Voce deve pagar uma multa de R${:.2f}!'.format(multa))
print('Tenha um bom dia! Dirija com segurança!')
#calculo confo... | [
"noreply@github.com"
] | noreply@github.com |
a27b81a4aff77764f13ae4cbae0e51204cd02540 | ee9381b8452183901ce30cd878c18cb23991027a | /Bank App/YazilimBakimi/settings.py | 1f0cb0210337205cbd030ad3507c1cbdd880a688 | [] | no_license | oguzhandeveloper/Bank-App | cce0cb82d55b2caca616c57b3d7d564e39ea60ff | e32ca7a28085d730a0590c053979de8f9366b7ec | refs/heads/master | 2020-09-16T01:49:22.404782 | 2019-11-23T15:55:00 | 2019-11-23T15:55:00 | 223,613,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py | """
Django settings for YazilimBakimi project.
Generated by 'django-admin startproject' using Django 2.1.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
impor... | [
"30536489+oguzhandeveloper@users.noreply.github.com"
] | 30536489+oguzhandeveloper@users.noreply.github.com |
c51a92f4e41a3f3a5813610cdf58b8ed40d4d0bb | 08270ff4b2782493fbfed3727c3181589d1cf7e4 | /GUI/login_form.py | ccab67634ab7c0986a6b0dbd3cc6a4743de389f9 | [] | no_license | Valemos/hurryup_calendar | 6a60d0886f51c816bf464f15e7d6f569629cc295 | cbea7dead29b7e593a8e1660f027c15cb32cdfbb | refs/heads/master | 2023-02-04T21:23:39.336169 | 2020-12-24T14:34:26 | 2020-12-24T14:34:26 | 294,373,201 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import tkinter as tk
from GUI.main_window import MainWindow as mainWindow
class FormLogin(tk.Frame):
def __init__(self, parent):
super().__init__(parent)
self.parent = parent
self.init_ui()
def init_ui(self):
usernameLabel = tk.Label(self, text="Name").grid(row=0, col... | [
"bsoloxa@gmail.com"
] | bsoloxa@gmail.com |
19edd54c98166d538eaa97782b65ec8c08b4783a | 999d05ac46cca3751040854f90a517ecdf0fec27 | /wiki_login_headless_chrome.py | 454397004e091fafea387f7511b57ba9b4e74259 | [] | no_license | adamreiser/selenium | 051c7e21f08bfa8f8aa2b8c60976debb46307f1a | 8069c36bd6840e20b3c540edb1425b6365f996fb | refs/heads/master | 2021-08-23T10:12:19.618798 | 2017-11-12T05:35:07 | 2017-11-12T05:35:07 | 107,916,413 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | #!/usr/bin/env python
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
import atexit
import tabcomplete
import credentials
options = webdriver.chrome.options.Options()
options.add_argument("--headless")
wd = webdriver.Chrome(chrome_options=options)
(u, p) = credentials.load("/ro... | [
"reiser@defensivecomputing.io"
] | reiser@defensivecomputing.io |
d470117b87c20044939b34206f9e9d67c89cc690 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.0_rd=0.5_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=76/params.py | 29fdaca73a9d96a41ddea9479708049d1a27dfc2 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.010214',
'max_util': '2.0',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 76,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
3ed03f450ecd93b825fa1583fb79154b40c83ff4 | 70d4ef0863906b3ca64f986075cd35b8412b871e | /packages/blueking/component/apis/sops.py | 9446f23f6bd7a4629b842b45ea8ea69b7a4e32f0 | [
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | selinagyan/bk-sops | 72db0ac33d9c307f51769e4baa181ceb8e1b279e | 39e63e66416f688e6a3641ea8e975d414ece6b04 | refs/heads/master | 2020-05-07T16:44:33.312442 | 2019-04-11T02:09:25 | 2019-04-11T02:09:25 | 180,696,241 | 0 | 0 | null | 2019-04-11T02:07:11 | 2019-04-11T02:07:10 | null | UTF-8 | Python | false | false | 2,426 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"pagezhou@tencent.com"
] | pagezhou@tencent.com |
a6768d8a47950a39edd1f9814281fb0aa0803376 | 016281cc4878eef95130d646462e284b18d72a8e | /detection/models/detectors/faster_rcnn.py | a12651c61d53bcde392dc607b671daa5241b557d | [
"MIT"
] | permissive | ZhouLiyan111111/tf-eager-fasterrcnn | dbe6f46ff0f1c3391e1e43596b6d33efb3b25272 | 52817572ff29c0c207f4e12e6c020f6876cd9212 | refs/heads/master | 2020-04-06T22:21:21.645383 | 2018-11-15T09:20:07 | 2018-11-15T09:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,545 | py | import tensorflow as tf
from detection.models.backbones import resnet
from detection.models.necks import fpn
from detection.models.rpn_heads import rpn_head
from detection.models.bbox_heads import bbox_head
from detection.models.roi_extractors import roi_align
from detection.core.anchor import anchor_generator, anc... | [
"yiran_ding@outlook.com"
] | yiran_ding@outlook.com |
935174241eb1b2f79cf360d50e02ae02d92e4bad | cd3beb489210453beb41e681ca3c43a20e5bdf97 | /Python/Basic/get_count.py | f115a14a53c2dd495a4630d070d336b677d139ec | [] | no_license | pmlave/Codewars | ab09da97e8636d51528372b44db6d9717caec544 | 04f6c888b6297f04167d6429390956c64ac1de97 | refs/heads/master | 2020-09-16T15:42:50.624968 | 2019-12-02T04:05:23 | 2019-12-02T04:05:23 | 223,817,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | # Simple function takes an input string and returns a count of how many vowels are in the string.
def getCount(inputStr):
vowel_str = "aeiou"
return len([each for each in inputStr if each in vowel_str]) | [
"paullave@Pauls-MacBook-Pro.local"
] | paullave@Pauls-MacBook-Pro.local |
17c830370f9e553bbc15ff41060cc6c1ed6892e5 | fd02d742d3bb647e00e56709b18e723fdd75fe77 | /champions/boites/mathieu.py | a79855877d2dc6b437b20420cf7f63c3f886e372 | [] | no_license | yous29/stage-python | 7b778245ffd9ebd557b113dee7fd1083fc220988 | 2aeee762f82f9b12df41dcf0d1c15b3a9a484c80 | refs/heads/master | 2022-04-06T13:24:55.726799 | 2018-06-28T20:13:39 | 2018-06-28T20:13:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | def ia(boites):
if len(boites) == 1:
return "D"
if boites[0]-max(boites[1],boites[-1])>boites[-1]-max(boites[0],boites[-2]) :
return "G"
else :
return "D"
| [
"vie@jill-jenn.net"
] | vie@jill-jenn.net |
889a29dd98a7786a22e8d2fbde68e5a1ce2d4137 | a6ed0c42659f54f88024a9171c353e7cbe51328e | /Python/flask_MySQL/emailval/server.py | 1d9d6e7aa490bb6f47f766d7b83b106c0677f317 | [] | no_license | tomama1/Practice | c4a44a044fe67b3f4eb34dca0a0dd9ea38f4c766 | 8adecd0ee985db06497578a11d067ac16502da7b | refs/heads/master | 2021-09-05T04:32:42.020673 | 2018-01-24T05:51:16 | 2018-01-24T05:51:16 | 104,159,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | from flask import Flask, request, redirect, render_template, flash
from mysqlconnection import MySQLConnector
import re
app = Flask(__name__)
app.secret_key = ("CodingDojo")
mysql = MySQLConnector(app,'listserv')
@app.route('/')
def index():
return render_template('index.html')
@app.route('/process', methods=['PO... | [
"matthewtoma123@gmail.com"
] | matthewtoma123@gmail.com |
308f9a29f07580702789f145882e743863ede567 | cfd096753a1c1074b645b75bf759ee5778c2d133 | /source/conf.py | 8c320df1d2d61ba1d70328c0579e8904e534e17d | [] | no_license | jmiranda1997/IA_Reconocimiento_Tomate | c5be2f4246a48d430560dfb883a7ef6a5211814b | 746a095ef62e590dbe318ee471eca6122436a04f | refs/heads/master | 2020-03-15T15:30:37.294092 | 2018-05-06T03:44:34 | 2018-05-06T03:44:34 | 132,213,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,106 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
# -- Path setup ------------------------------------------------------------... | [
"j.miranda1997@gmail.com"
] | j.miranda1997@gmail.com |
5976844a6cca57ff3a82d77f0e94999f90db0980 | d51b2e9657d0ea1d8bcb8ed8da11a3f9dac72192 | /test/core/parser/grammar/__init__.py | 54ee5571517bcfd27feaef685e7e665a69802d81 | [
"MIT"
] | permissive | sqlfluff/sqlfluff | dae8294814471165582e12ea75ab8142e75f8e62 | a66da908907ee1eaf09d88a731025da29e7fca07 | refs/heads/main | 2023-08-28T20:07:59.624519 | 2023-08-27T22:17:24 | 2023-08-27T22:17:24 | 155,790,228 | 5,931 | 545 | MIT | 2023-09-14T18:05:19 | 2018-11-01T23:56:04 | Python | UTF-8 | Python | false | false | 57 | py | """Tests for the sqlfluff.core.parser.grammar module."""
| [
"noreply@github.com"
] | noreply@github.com |
f1ef84d165e5410c8ce81b3709c6af10a3bbda49 | 3c430bd14a54becf0a2e31758f30adb6857ddc9d | /venv/Scripts/pip3-script.py | e60f31232e248c211d271de03324d70e68e0adcc | [] | no_license | revanth12/LSTM-TENSORFLOW | ef5638fd8d653c1af1bb926c489d5c56cc82fbca | f8fe3ef8f600ac965731aba5edda42bd5f5e4e3b | refs/heads/master | 2020-03-28T21:28:59.344772 | 2018-09-17T17:22:01 | 2018-09-17T17:22:01 | 149,159,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | #!C:\Users\Rreddy\PycharmProjects\LSTM-TENSORFLOW\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)?$', '', ... | [
"revanthreddy.katanguri@oubt.org"
] | revanthreddy.katanguri@oubt.org |
f53f414f7ee5fbc8b13847a32418970ec312c561 | 4af454bced0f99e4ed8269d71e97284f0ef13afb | /loginserver/keys/rsa.py | 02c4c9811d4e423b0a531fa48b9e687d9ba12cbd | [] | no_license | L2jBrasil/L2py | c46db78238b4caf272a2399f4e4910fc256b3cca | d1c2e7bddb54d222f9a3d04262c09ad70329a226 | refs/heads/master | 2022-11-19T01:39:02.019777 | 2020-07-24T20:07:15 | 2020-07-24T20:07:15 | 292,115,581 | 1 | 1 | null | 2020-09-01T21:53:54 | 2020-09-01T21:53:54 | null | UTF-8 | Python | false | false | 2,315 | py | from Cryptodome.PublicKey import RSA
from M2Crypto import BIO
from M2Crypto import RSA as M2RSA
from common.helpers.bytearray import ByteArray
class L2RsaKey(RSA.RsaKey):
def scramble_mod(self) -> bytes:
n = ByteArray(self.n_bytes)
# step 1: 0x4d - 0x50 <-> 0x00 - 0x04
for i in range(4)... | [
"yurzs@icloud.com"
] | yurzs@icloud.com |
902a56826d2fec12ea7260dca767c2f42f2eeff1 | aac3dfcd0b7abbfb63d093d49617850571fdbed0 | /code/find_station_info.py | 295bb41d081b2c40c1b4a4ad39d1f4b5028b50ff | [] | no_license | ChenYu0723/SCD_System_2.0 | 62c9f51cfac75293268324a9a0264ca4d282b870 | ad5fad2ad961b590105a18b7d69cf846df4c1de2 | refs/heads/master | 2022-07-17T13:39:51.040931 | 2020-05-21T04:39:23 | 2020-05-21T04:39:23 | 265,559,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # -*- coding: utf-8 -*-
# @Time : 2019/12/14 15:49
# @Author : Chen Yu
import os
import pickle
import pandas as pd
os.chdir('..')
infile2 = 'data/raw_data/transferStations.pkl'
transferStation_info = pickle.load(open(infile2, 'rb'))
infile3 = 'data/raw_data/metroStations.csv'
station_id_df = pd.read_c... | [
"yuchen.723@bytedance.com"
] | yuchen.723@bytedance.com |
dcd2ab18421a62f877b727aca74ec29effb78b6d | 8663f48499aa4b9d6676df4bd29a7de8e87a803a | /chef-repo/cookbooks/Cabmate/files/default/cwebs.1.0.7/app/vehicle.py | 79f9ee04bb4792da7b19d2be6cfbdc804498032c | [] | no_license | ScottNeedham/chef | 34ed6accd24ec7efbcfd83ef5dd502d8edc2db9c | 0d8b293bb5ce58779f0ef67049dabe5b3137e16d | refs/heads/master | 2020-09-23T06:53:07.659832 | 2016-11-08T19:35:14 | 2016-11-08T19:35:14 | 67,830,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,557 | py | import time
import struct
import cabmsg
import os
import msgconf
import sysv_ipc
class VehicleParams(object):
def __init__(self, vehicle_dic=None):
self.taxi_no = -1
try:
#return self.init_object()
if vehicle_dic is not None and isinstance(vehicle_dic, dict):
... | [
"sneedham@MacBook-Pro.local"
] | sneedham@MacBook-Pro.local |
201469154abd03cbf07a934dc0cc53c89c917b00 | 5ea51b48e1db9b401f397cec703481f9c817ce62 | /Exercícios/ex003 - Imprime Soma.py | 8d196e0f807e277a3bb313c364c24d53fdd64014 | [
"MIT"
] | permissive | Dioclesiano/Estudos_sobre_Python | a75040bfab5c425d43e4a28ada75ab0d7ef73adf | ba9166048fe824fef96fcf6cf3696714e79f4235 | refs/heads/main | 2023-04-01T17:34:16.533197 | 2021-04-14T13:50:06 | 2021-04-14T13:50:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | n1 = int(input('Digite um Número: '))
n2 = int(input('Digite outro Número: '))
s = n1 + n2
print('A soma entre {} e {} é igual a {}'.format(n1, n2, s))
| [
"diowpaz@gmail.com"
] | diowpaz@gmail.com |
5abc5f914f15ec1a78a3917a9d9825fa90c0d333 | 0dd49a6ddd206477b0651396ff7d8a9811b19ac0 | /Learning_ML/face_detection.py | 5120542e3c0909f3764fdde66dc5c66596d05d44 | [] | no_license | gauravpratihast/Python_Projects | b7a7fd5309c3b86bffb78a34aea1c01e02c9f72e | 0c0a50a9691ae755749e238c176c5b8423f2e402 | refs/heads/master | 2023-02-08T19:00:15.541537 | 2021-01-05T06:35:57 | 2021-01-05T06:35:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import cv2
cap = cv2.VideoCapture(0)
classifier = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
while cap.isOpened():
ret, frame = cap.read()
if ret:
faces = classifier.detectMultiScale(frame)
for face in faces:
x, y, w, h = face
frame = cv2.rectangle(f... | [
"pratihastgaurav@gmail.com"
] | pratihastgaurav@gmail.com |
ea0207d1f4614c56c66b011cec3e7d9ecefe2d10 | 58f6184fbfe4782bccf7803fbb978b5a5f93bb50 | /src/scs_analysis/cmd/cmd_sample_tally.py | a7dff9ca4f518978eee941ce646bb2796fd1ea4b | [
"MIT"
] | permissive | seoss/scs_analysis | d41db35a1c7d97d75776a797df099749dbced824 | c203093fd6728eafe576a1798bd9040ca18c73f8 | refs/heads/master | 2020-04-04T20:14:48.026665 | 2018-11-05T12:51:23 | 2018-11-05T12:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | """
Created on 22 Aug 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
import optparse
# --------------------------------------------------------------------------------------------------------------------
class CmdSampleTally(object):
"""unix command line handler"""
def __init__(self):... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
602d5661471469217459de0236ec43a9a1f0e8de | 81344c55ed60bf12818d1a0ec246f3c24c79cb4c | /力扣习题/8字符串转整数/atoi.py | 73fb9e626ac6852e2287bfbded03dddd0161775c | [
"MIT"
] | permissive | lollipopnougat/AlgorithmLearning | 7d5c4a37bd5c814c5caea6963e81fbe0cb44b7b7 | cb13caa0159f0179d3c1bacfb1801d156c7d1344 | refs/heads/master | 2023-05-11T04:47:09.758889 | 2023-05-07T06:55:48 | 2023-05-07T06:55:48 | 194,078,151 | 7 | 2 | MIT | 2023-03-25T01:23:44 | 2019-06-27T10:53:08 | Python | UTF-8 | Python | false | false | 144 | py | class Solution:
def myAtoi(self, str: str) -> int:
return max(min(int(*re.findall('^[\+\-]?\d+', str.lstrip())), 2**31 - 1), -2**31) | [
"ab2defg145@gmail.com"
] | ab2defg145@gmail.com |
ee05a5e82535721478ceacafffb4b4bdcce04bfa | 37ef9240250351287c9558cea8a646ca5d8431fc | /docs/conf.py | fb0d9b458e8a73cbd3779ab66263ad7f67761a32 | [
"MIT"
] | permissive | lucashn/peakutils | f45b10eabc53f6f0565e9ab63747df033691c77f | f48d65a9b55f61fb65f368b75a2c53cbce132a0c | refs/heads/master | 2022-09-18T17:37:22.453986 | 2022-08-05T13:09:35 | 2022-08-05T13:09:35 | 102,883,046 | 28 | 7 | MIT | 2022-08-05T13:03:51 | 2017-09-08T16:40:03 | Jupyter Notebook | UTF-8 | Python | false | false | 6,799 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import peakutils
from better import better_theme_path
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.mathjax',
'sphinx.ext.napoleon'
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix ... | [
"lucashnegri@gmail.com"
] | lucashnegri@gmail.com |
610bec6c5aaa43962cc9e88912c2a38b2f7e20fc | f7d84bcecbc9ed55465a2d6c5a205c1a51ee4422 | /mongo.py | 88a487833bee84eead2ad5ae0ebbdd98d30f010f | [] | no_license | sophie-apples/Mongodblessons | 6948b40366372d6a52e1050d82d493d0fa7ad066 | a9418a293085572ad4da9210e33fe30a4a2aa7fe | refs/heads/master | 2023-01-02T03:04:58.222214 | 2020-10-27T15:46:44 | 2020-10-27T15:46:44 | 307,695,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import os
import pymongo
if os.path.exists("env.py"):
import env
MONGO_URI = os.environ.get("MONGO_URI")
DATABASE = "myFirstDb"
COLLECTION = "celebrities"
def mongo_connect(url):
try:
conn = pymongo.MongoClient(url)
print("Mongo is connected")
return conn
except pymongo.errors.Co... | [
"sophieannemurray@gmail.com"
] | sophieannemurray@gmail.com |
33adfce55baf4f800d3148500f069515676b25c7 | df4811e2427ef948820a42a34a6c4b39d08db668 | /streams/migrations/0007_videoquality.py | 4fdac644c0f159b7239ffa0e0d13dfec8a325b15 | [] | no_license | AnbangZhao/liveStreamingWeb | c58a4c7b36a04f76c3cf6a94ce42a2dc46564c7b | 80cb3a62bd0523f07f9d1c04d8cbc0f226b9571b | refs/heads/master | 2016-09-08T00:32:00.695423 | 2014-12-04T20:32:10 | 2014-12-04T20:32:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('streams', '0006_auto_20141118_1919'),
]
operations = [
migrations.CreateModel(
name='videoQuality',
... | [
"anbang@anbangs-mbp.wv.cc.cmu.edu"
] | anbang@anbangs-mbp.wv.cc.cmu.edu |
0ddbd6f2826fc77d43da601ac9710287be3d9766 | c780278735657733ef3f490008ed9424d9420842 | /base/DoubleCircleLinkedList.py | 19da8041225eea0d103aa9f273e8c4ea4f69e864 | [
"MIT"
] | permissive | MnkyC/Algorithms-Python | 085d1de45a3fbe4ec5d3a478f435d87cf1e5840c | 01d2c9099f185f549c07e6e3162b9b2d55ba6fd6 | refs/heads/master | 2020-12-03T23:45:27.268546 | 2020-05-20T09:30:17 | 2020-05-20T09:30:17 | 231,526,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,961 | py | from base import DoubleNode
from DoubleNode import Node
# 双向循环链表,尾节点后续为头节点,头节点的前驱为尾节点,链表为空则头节点为None
class DoubleCircleLinkedList(object):
def __init__(self):
self.__head = None
# 头插法,逆序插入到链表头部
def add(self, data):
newNode = Node(data)
if self.isEmpty():
newNode.setPre... | [
"1589664970@qq.com"
] | 1589664970@qq.com |
e7b6c241b5f80e25dae1240d0b7d4aadb11d3c3b | 37d8a02e4976a8ca516500d5b9d2fa6626c2b9e3 | /B_Scorecard/featureEngineering/featureEncoding/woe_encoding.py | a55295c53be636df70c9000195dbbcad0b50335b | [] | no_license | sucre111/xiaoxiang_fengkong_peixun | b0bb59243346fc02fea8126d729af1fb29bf907d | 5eac4e3011e5bbc7e59e79296c12e81074166551 | refs/heads/master | 2021-09-17T05:16:19.362017 | 2018-06-28T11:33:29 | 2018-06-28T11:33:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,896 | py | import pandas as pd
import numpy as np
import pickle
from settings import *
from util.scorecard_functions import *
"""
对预处理后的特征进行分箱与WOE编码
"""
class WOEEncoding:
def __init__(self, file):
self.categoricalFeatures = []
self.numericalFeatures = []
self.WOE_IV_dict = {}
self.tra... | [
"526633123@qq.com"
] | 526633123@qq.com |
027cde9e9d81df2cc6ae16184a4efc50dc2bef3d | c8844d322204bdad5743874ed67b235287f9494b | /backend/schemas/user.py | b77e6887113f08e8a888e6245587b0a238482799 | [] | no_license | monstermahi982/studentCorner | 44daacb2fed7213ea7eff2a3c59d6aa948746627 | b99a3429a3874f060de533181d4a6d89681e7109 | refs/heads/main | 2023-08-29T12:42:54.806112 | 2021-10-15T15:15:34 | 2021-10-15T15:15:34 | 396,654,555 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | def userEntity(item) -> dict:
return {
"id": str(item['_id']),
"name": item['name'],
"email": item['email'],
"gender": item['gender'],
"profile": item['image']
}
def userPassword(item) -> dict:
return {
"id": str(item['_id']),
"password": item['passw... | [
"maheshgaikwad8892@gmail.com"
] | maheshgaikwad8892@gmail.com |
360b8cbd5f40666df3195b013af0d257512aac24 | b57bce6b9668ebad5c26452469ad5faf79fee5bf | /tasashop/migrations/0030_auto_20210625_2039.py | 27806efc9cb692d2acc1953269e938eb17e3a950 | [] | no_license | DelaCernaJal/TasaShop | c86e95674a0d7727894b4f501a6166b7b06060fb | 2dc077ab2650659a979dc3e415cc8f0bd288442f | refs/heads/main | 2023-06-12T21:24:01.177354 | 2021-06-28T04:01:38 | 2021-06-28T04:01:38 | 377,349,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Generated by Django 3.1.6 on 2021-06-25 20:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('tasashop', '0029_auto_20210625_2032'),
]
operations = [
migrations.RemoveField(
model_name='pro... | [
"sharalyn.delacerna@gsfe.tupcavite.edu.ph"
] | sharalyn.delacerna@gsfe.tupcavite.edu.ph |
01c6d90a4e5dba7d1adfa4c83e8e3c64205ce6eb | c5aba731eed7ccbcdd733c9234579a31027949ba | /src/narma/helper.py | 7d39756588d398020d71bcf4254f2aee3147cf1b | [
"MIT"
] | permissive | Hritikbansal/MultivariateTimeSeries_Generalization | 75cba7afeaf0ef048d17cbd39c352a9e46ee7158 | eebf3bb142acf3b85390e41c5ff067c8c8fef55d | refs/heads/main | 2023-03-10T17:37:32.769579 | 2021-02-20T14:11:27 | 2021-02-20T14:11:27 | 313,085,597 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,749 | py | import argparse
import torch
import utils
import datetime
import os
import pickle
import random
import numpy as np
from torch.utils import data
from torch import nn
import torch.nn.functional as F
from collections import defaultdict
import sys
def save_predictions(save_folder, used_params, target_,predicted_,i):
a... | [
"hritik@LAPTOP-OAMAAP5J.localdomain"
] | hritik@LAPTOP-OAMAAP5J.localdomain |
8dade03e82f228670399492b9ce5f608fe0057ae | 1979fdf3275c6b6bc1abb1f5531346d5777e8b5d | /app/groceries.py | fb302b7cdbd9f64bd7cfd48ef2424ac48b6c1635 | [] | no_license | NYRChang/groceries-exercise | 14920fff0654becdabb3dfa518285236289fddfd | 5342e0710ddf9ac10b0b70ebe7a187a84d929089 | refs/heads/master | 2022-09-09T19:53:19.144440 | 2020-06-03T01:03:52 | 2020-06-03T01:03:52 | 267,189,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,277 | py | # groceries.py
#from pprint import pprint
products = [
{"id":1, "name": "Chocolate Sandwich Cookies", "department": "snacks", "aisle": "cookies cakes", "price": 3.50},
{"id":2, "name": "All-Seasons Salt", "department": "pantry", "aisle": "spices seasonings", "price": 4.99},
{"id":3, "name": "Robust Golden... | [
"65420925+NYRChang@users.noreply.github.com"
] | 65420925+NYRChang@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.