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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84d1b66a1d65710dbf72630462b771d0caabbd2d | 5a1e5603a42ff27e648fad307d60957cb95f0185 | /dask/dataframe/tests/test_csv.py | 5e6550be7b23c583897a4f98ca267e45c276d05a | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | jseabold/dask | 1937931e7951f776b253432f6b5beedee90892a0 | f6332dec1ead4034540bc2c3c1010a9783099752 | refs/heads/master | 2021-01-23T04:23:10.852740 | 2016-04-29T00:14:34 | 2016-04-29T00:14:34 | 57,442,996 | 0 | 0 | null | 2016-04-30T13:29:31 | 2016-04-30T13:29:30 | Python | UTF-8 | Python | false | false | 6,358 | py | from __future__ import print_function, division, absolute_import
from io import BytesIO
import pytest
pd = pytest.importorskip('pandas')
dd = pytest.importorskip('dask.dataframe')
from toolz import partition_all, valmap, partial
from dask import compute
from dask.async import get_sync
from dask.dataframe.csv import... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
8c69b04818eb1c529b6ad11ac1a9de153b213ba5 | 68747ba592c252c952823ff4973c9508b7c8c5e9 | /Ensemble/BeamVelocity.py | dfcd6b48965024dc062ad756bb54688fbce1a739 | [] | no_license | ricorx7/rti_python-1 | 50ce01e7acf60ad6d57c26cfe5d79ecd1fc84563 | 384edef9c14ae5296d7e123eec473b29905a8a58 | refs/heads/master | 2023-02-01T04:33:48.585793 | 2020-12-16T23:25:22 | 2020-12-16T23:25:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,649 | py | from rti_python.Ensemble.Ensemble import Ensemble
import logging
class BeamVelocity:
"""
Beam Velocity DataSet.
[Bin x Beam] data.
"""
def __init__(self, num_elements, element_multiplier):
"""
Beam Velocity data.
:param num_elements: Number of bins
:p... | [
"rcastelo@rowetechinc.com"
] | rcastelo@rowetechinc.com |
79b239a1f80ab8b8d1039c3f79e33ea2a56b2005 | 8740987d164ceec34801cfad3914b6fe52adb691 | /imagen.py | 9e6cfce19410453c2aad42323c8ea44c5d9912c1 | [] | no_license | Dwight-tech/webapp-petshop | 6ad02e1e67c36d313e5c58eaf562eeb63fb5bf70 | b743d984c43243a7bdce2160994dfa0562cab34c | refs/heads/master | 2022-12-23T10:26:07.034565 | 2020-10-02T01:44:43 | 2020-10-02T01:44:43 | 286,870,751 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from PIL import Image
im = Image.open("Face.jpg")
#im.rotate(180).show()
import requests
url = "https://api.covid19api.com/summary"
r = requests.get(url)
print(r.json()) | [
"dwight3103@hotmail"
] | dwight3103@hotmail |
b35b6265d2f87725bbf04c7a1a015b18573508d8 | db7b618e7d9f7c2af001678e7bc7dd703cb86e61 | /TelegramBot/settings.py | 5bcca8b1e223f39bd5a3ac86c3f826827b3c5348 | [] | no_license | abdullakn/impress.ai | 6f24403b70130d8b6440ceab22931cd1cdcb9aeb | c9033970d33304a306fd6dd5e8cc9c1e39ddf1d8 | refs/heads/master | 2023-08-10T18:07:19.462283 | 2021-09-29T17:27:52 | 2021-09-29T17:27:52 | 411,642,025 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,388 | py | """
Django settings for TelegramBot project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import ... | [
"abdudebanjazz@gmail.com"
] | abdudebanjazz@gmail.com |
cd3db4fc88cd3b0d60cfe5f2b5a34e40bff7b7a5 | 2a745cecba949014db4ba29b88598f0204c25832 | /kafka-producer.py | 7578403442df5fc54a498f50f74a8efbb4b8d8b1 | [] | no_license | alexandrubordei/python-kafka-connectors | 58219cf9b0e4a93642bc00c527538c7e3e5dbd0c | 62fda0cabcb8fcaedb6169ecfa3dcf4648854030 | refs/heads/master | 2021-01-19T11:42:25.748091 | 2016-06-13T13:18:33 | 2016-06-13T13:18:33 | 61,037,725 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | #!/usr/bin/python
from kafka import KafkaProducer
json = '{"user_action_id":{"long":1346801},"user_id":{"long":243008914},"customer_id":{"long":0},"session_id":{"string":"2icprcma5qp6ch52lk6sbm0ag7"},"remote_addr":{"string":"78.96.2.37"},"forwarded_for":{"string":""},"php_self":{"string":"/search-tools/suggest/produc... | [
"root@instance-18168.bigstep.io"
] | root@instance-18168.bigstep.io |
4a28f0deec15c745ccc4aa180c151746c3d8af36 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/network/v20181001/load_balancer.py | 0a7b74a91059e38d8ca28b8ffa74b27e5b17a0d9 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,538 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
862b3e9fdfaed87b52ccbd8596cebe7a097c2f6b | 386a7aa0f17a2c37ba6ecf29d7799b48a45c239e | /url_shortener/settings.py | 7c06dc33e283cc5aa735eb5d840f4fbb8ea92fbf | [] | no_license | NNApy/URL_SHORTENER | 7d5691f9f86e53976321bc7a4f93d51a69c42869 | be65bd53c08780cc772d4db0cce00f90cff9005a | refs/heads/master | 2020-02-26T14:54:41.583366 | 2017-02-15T09:44:41 | 2017-02-15T09:44:41 | 63,497,673 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,252 | py | """
Django settings for url_shortener project.
Generated by 'django-admin startproject' using Django 1.9.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import... | [
"phantom.kot@gmail.com"
] | phantom.kot@gmail.com |
3b7e7606078cd3ed5a6bce29f7891a86294ca375 | fb4473a0c00d89f55fb2d07bad3d62302a715f5b | /sidpy/__version__.py | 2fde28695a3068688f07069ca37f51f4ac4cf919 | [
"MIT"
] | permissive | ziatdinovmax/sidpy | b700535014b78eeddf3aff4b57f5110e220d9a2e | 299147bfc22741b5170aa00e92b34159dfc910c5 | refs/heads/master | 2022-12-19T07:28:39.509116 | 2020-10-03T00:31:20 | 2020-10-03T00:31:20 | 292,929,545 | 0 | 0 | MIT | 2020-09-04T19:23:14 | 2020-09-04T19:23:13 | null | UTF-8 | Python | false | false | 47 | py | version = '0.0.3'
time = '2020-09-18 10:00:25'
| [
"14300780+ssomnath@users.noreply.github.com"
] | 14300780+ssomnath@users.noreply.github.com |
afaf8972538982cfcdf75ab95b849d5df7333bae | fa988a0e218e16bddc6c151c288f3157a613f6f0 | /files/vanillaserver.py | ed0de91299bae7c2714e3ce81a4eb91803334f30 | [] | no_license | flownandez/insta-netflix-geni | 213f7be369b2ab49cad6ddcd8ee5f13961288b31 | 1763b10cc71d46d6f6c8d7e01018ba235f222aaa | refs/heads/master | 2016-09-11T02:42:39.137027 | 2014-12-14T22:37:51 | 2014-12-14T22:37:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | import socket
import sys
HOST = '146.148.44.124' # Symbolic name meaning all available interfaces
PORT = 8888 # Arbitrary non-privileged port
# Datagram (udp) socket
try :
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
print 'Socket created'
except socket.error, msg :
print 'Failed to create soc... | [
"chris2fernandez@gmail.com"
] | chris2fernandez@gmail.com |
64ed459566160d5fa1f62b23b2ec567cb184a6dc | d47b404bb9b245d4d0cabf8496062f3a40e21cd2 | /vehicle/migrations/0001_initial.py | b9c7b7e97314cb1e3e745bf14a4103fd725091d9 | [] | no_license | czach81/nex-tech-vehicles | 7fd8ed9e48d1e8fae5a01a244336b13ae8679725 | b88633d7ef7d16519fcf76847411110c95e35b9a | refs/heads/master | 2021-01-26T07:20:01.660572 | 2020-02-26T21:47:47 | 2020-02-26T21:47:47 | 243,362,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # Generated by Django 3.0.3 on 2020-02-25 22:24
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Vehicle',
fields=[
('id', models.AutoField(... | [
"christopherpzach@gmail.com"
] | christopherpzach@gmail.com |
891589871bcea932e2b54b737c1ef4421d7ab8ef | 6ab0962d7caba66e0b47e9feb99773e53f894e5d | /PyBank/main.py | 796cd43eece80fe2c33fde3213699eaaf93ea8f5 | [] | no_license | Goat7/python-challenge | a78158b8ca9991b55290911c3d3938712f11c69a | 5bbdada52e19cdf22627d04b813f82632d1eeadb | refs/heads/master | 2020-03-20T02:30:28.805790 | 2018-06-15T00:48:23 | 2018-06-15T00:48:23 | 137,115,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | #import os and write csv path
from statistics import mean
import os
input_file = input("Enter the name of the CSV file(s) you will like to process one at a time? ")
csvpath = os.path.join(input_file)
#csvpath = os.path.join("budget_data_1.csv")
#Improved Reading using CSV module
import csv
with open(csvpath, newline... | [
"chuckmchls@gmail.com"
] | chuckmchls@gmail.com |
c6562204befd9fd8bdfb3879021fa41efa1e8045 | 2aa037df57789a0150f4eff884e358a1b81784f3 | /Lib/faster_rcnn_config.py | e410a0c823fd97e490a4e57c6793ec79cca79d2e | [] | no_license | NKCSRzChen/supernova | b497a1f3fc4e21994e617ab4af04b2af2bda9b25 | a7d364d2110d7b2905d3acb41b5a596fc56ed723 | refs/heads/master | 2020-05-05T06:56:43.580060 | 2019-04-06T09:24:30 | 2019-04-06T09:24:30 | 179,807,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,983 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 1 20:47:15 2017
@author: Kevin Liang (Modifications)
"""
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# ----------------------... | [
"247218118@qq.com"
] | 247218118@qq.com |
e099d73b9060d41c51d0db01d454d211d3b761c0 | 9b36fc8d0b599b2d59772e7bac8697ed47a4ba85 | /manageFunc27.py | 2d1d8ae1106b241ccb428989c7830b0777ae8c51 | [] | no_license | WilliamHutcherson/PMSoftware | 0b5bac187633bd8c0c5e98e08f80f8e4c644a761 | 94f616e465ade1b93bb03f19848168d8aa3f5f60 | refs/heads/master | 2021-01-19T10:45:13.160758 | 2016-08-16T03:17:23 | 2016-08-16T03:17:23 | 65,783,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | import sqlite3
conn = sqlite3.connect('projectTasks.db')
c = conn.cursor()
def createTable():
c.execute("DROP TABLE IF EXISTS Tasks")
c.execute("CREATE TABLE IF NOT EXISTS Tasks (ID INTEGER PRIMARY KEY AUTOINCREMENT, Description TEXT, Owner TEXT, Status TEXT, DateComplete TEXT)")
def insertTask(Desc... | [
"noreply@github.com"
] | WilliamHutcherson.noreply@github.com |
aea279f30496d21667f68e1ca63aad3d2a87d4ad | 410b40634fcfbf9ccfe7277c9f4993479e07407c | /tests/test_core.py | a4bc795ead784b99dd88a89ab4a94c804621e282 | [
"Apache-2.0"
] | permissive | pbittyscu/serene-python-client | a9cb22576a9698b30ddf389271e3aca6a74a70ba | 2fd7634b26677fb30a866c5900cae6ebd848a9a8 | refs/heads/master | 2023-01-07T06:03:37.620918 | 2022-12-29T22:11:36 | 2022-12-29T22:11:36 | 226,217,078 | 0 | 0 | NOASSERTION | 2022-12-29T22:11:37 | 2019-12-06T00:58:34 | Python | UTF-8 | Python | false | false | 2,462 | py | """
Copyright (C) 2017 Data61 CSIRO
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
Tests the core module
"""
import unittest2 as unittest
import serene
import os
from .utils import TestWithServer
class TestSerene(TestWithServer):
"""
Tests the SemanticModeller class
"""
... | [
"alex.collins@nicta.com.au"
] | alex.collins@nicta.com.au |
a5056688c64509504bfa9c7a6d05f17f4545a6f5 | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/graph_objs/isosurface/__init__.py | 641825ef79e0665708cf71c4b63a4d978f9ad605 | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 137,729 | py |
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Surface(_BaseTraceHierarchyType):
# count
# -----
@property
def count(self):
"""
Sets the number of iso-surfaces between minimum and maximum
iso-values. By default t... | [
"noreply@github.com"
] | Jonathan-MW.noreply@github.com |
8887cbd8ae69a61cb532730f2785e1bd435b4545 | 2d5e61e316543b1d483b5a8d9dfad6855f3628b8 | /MLCodes/Qianfeng.20171210/BI/python_01.py | 31d6ae21e68b3dc8b0ee54982ca77c21f520dbf6 | [
"CC-BY-4.0"
] | permissive | qianrenjian/MachineLearning-7 | 95faa679c5794411a99ed5402893b54ebf967e6f | 238e695c4c83af09dad5b7c2acce12ac7f55ee5f | refs/heads/master | 2021-10-07T20:35:37.860909 | 2018-12-05T07:17:59 | 2018-12-05T07:17:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
# 引用必要的库
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
# 4.线图
"""
注意,这里我们只指定了y轴数据,x轴的都是matplotlib自动生成的
"""
linear_data = np.arange(1, 9)
quadratic_data = linear_data ** 2
plt.figure()
plt.plot(linear_data, '-o', quadratic_data, '-o')
# plt.show()
pl... | [
"shonsy1999@gmail.com"
] | shonsy1999@gmail.com |
e4542b8b5cbb4bef96ff785702f56111f3fe58f4 | 768058e7f347231e06a28879922690c0b6870ed4 | /venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_internal/commands/help.py | 386278cf5f1461bd429c082c29df90b3b868a0cf | [] | no_license | jciech/HeisenbergSpinChains | 58b4238281d8c158b11c6c22dd0da82025fd7284 | e43942bbd09f6675e7e2ff277f8930dc0518d08e | refs/heads/master | 2022-12-18T08:04:08.052966 | 2020-09-29T12:55:00 | 2020-09-29T12:55:00 | 258,476,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | from __future__ import absolute_import
from pip._internal.basecommand import SUCCESS, Command
from pip._internal.exceptions import CommandError
class HelpCommand(Command):
"""Show help for commands"""
name = "help"
usage = """
%prog <command>"""
summary = "Show help for commands."
ignore_r... | [
"jan@multiply.ai"
] | jan@multiply.ai |
8825be2df6f21c80b55d7b6603c20ee0ec1bb009 | 4715fbe97b060345b71ac54cbf7e2e0d7ee62716 | /transmission/check_dropped_bits.py | c12eb0a3721c482f371395791aeb87bc2b1779e1 | [] | no_license | tiffong/SSLP | 00bf79353da85ca6e59c972d4925943849997800 | 1be715a36ade954b1ab5057560b3aa60ae679805 | refs/heads/master | 2020-03-27T02:30:39.054029 | 2018-09-05T00:19:11 | 2018-09-05T00:19:11 | 145,795,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | #used to format text block received from Serial transmission from RPI
#text block should have all headers included
#USAGE: python format_serial.py > edited.txt
from decimal import Decimal
import numpy as np
with open('Serial.txt', 'r') as f:
#with open('test2.txt', 'r') as f:
raw_img = f.readlines()
array = raw_... | [
"tiffanyong96@yahoo.com"
] | tiffanyong96@yahoo.com |
ac620e83745a21e4d70d63b7b8d004828f651dd3 | 989611a3adf9410049ea21f685546695d424ce25 | /cygwin64/lib/python2.7/site-packages/chainer/functions/connection/dilated_convolution_2d.py | c5188ef0b1dac2e18ced07340c84e41af93e8c49 | [] | no_license | bopopescu/stdenv_cygwin | d58c42cea3a34f8e0c574539c7cbd4a6a0b2e412 | 2e31d41299bd0798cd12a3a04c77220fd9b2fc3e | refs/heads/master | 2021-09-22T13:27:54.120263 | 2018-06-01T05:30:03 | 2018-06-01T05:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,542 | py | import numpy
from six import moves
import chainer
from chainer import cuda
from chainer import function
from chainer.utils import conv
from chainer.utils import type_check
from chainer import variable
if cuda.cudnn_enabled:
cudnn = cuda.cudnn
libcudnn = cuda.cuda.cudnn
_fwd_pref = libcudnn.CUDNN_CONVOLUTI... | [
"tokutaro@gmail.com"
] | tokutaro@gmail.com |
a1428e4eefbf42eb2695f06f650ab13a06bc4d22 | ea47779be5916366cbfc8318dac657a6a276eb7d | /cs231n/vis_utils.py | 9f6f4d62827b2b14e791480201bda50db658e29b | [] | no_license | rfrancisr/cs231n_assignment1 | 1cac8444fa91e0e9589c7258af96f020e59f29d9 | fe08b01f47c77dabfe626c1633ecd714f758b39e | refs/heads/master | 2021-01-22T06:23:20.768951 | 2017-05-26T21:14:30 | 2017-05-26T21:14:30 | 92,548,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | #from past.builtins import xrange
from math import sqrt, ceil
import numpy as np
def visualize_grid(Xs, ubound=255.0, padding=1):
"""
Reshape a 4D tensor of image data to a grid for easy visualization.
Inputs:
- Xs: Data of shape (N, H, W, C)
- ubound: Output grid will have values scaled to the range [0, u... | [
"francis.r.ratsimbazafy@vanderbilt.edu"
] | francis.r.ratsimbazafy@vanderbilt.edu |
e569e80b4bbd1901ffe3be5dea6ab1da2fb06801 | 0b45ec591750e5b19b25c6cba402cef96fc67f5a | /ele/ele/wsgi.py | d6ace0a72516842294d0d04a7c2ccf8e01b89534 | [] | no_license | WangErGou/ele_interview | 4353b4057d346c4d38326936983808836480af2d | 14a0e94f9090074a07746720a789b843198395dc | refs/heads/master | 2021-01-10T14:33:00.318300 | 2016-02-29T14:56:50 | 2016-02-29T14:56:50 | 52,785,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for ele project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_... | [
"wangyanjie_pwd@163.com"
] | wangyanjie_pwd@163.com |
3fecce31d145d2ab317f39dba9bf792930cf205f | 8223bd2598ea21d2b79e2b827436845891111dbe | /middle_store_03/zwb_book/views.py | 0d0e0c5a8e97ce8f32a40c86e7a6dcc6dd1cf638 | [] | no_license | zwb22/django_base | 00b4d6013f9d6415bfb644023f01d494f8c01e78 | c6730da675a6138497295e5a7ad4fdace044c772 | refs/heads/master | 2023-08-05T23:52:02.017367 | 2021-10-06T14:40:03 | 2021-10-06T14:40:03 | 412,833,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from django.http import HttpResponse
from django.shortcuts import render
from zwb_book.models import BookInfo
def create_book(p_request):
p_book_info = BookInfo.objects.create(
book_name='zwb1',
pub_date='1996-09-12',
read_count=100,
)
return HttpResponse('0dw')
| [
"374457565@qq.com"
] | 374457565@qq.com |
629acf07b4351309d1d0571b0836c8efc2bb058a | 8bde6ba3d0f196666deb6e866165ebe14fc04aed | /article/admin.py | 39f9ff38743cc5350978f4ccd5e3bbaa84d749f0 | [] | no_license | sunyunzhuo/BlogDemo | 6e17d60d49cbf743441c0d9d31a316ec43b71947 | 2042a7f3048b8440addc92dc7da0baf255e5d451 | refs/heads/master | 2021-04-25T05:34:12.086170 | 2017-12-11T17:10:34 | 2017-12-11T17:10:34 | 113,886,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | from django.contrib import admin
# Register your models here.
from .models import Article, Category, Tag
class ArticleAdmin(admin.ModelAdmin):
list_display = ['title', 'created_time', 'modified_time', 'category', 'author']
admin.site.register(Article, ArticleAdmin)
admin.site.register(Category)
admin.site.regi... | [
"594301777@qq.com"
] | 594301777@qq.com |
351f880928bc18b1a8b741ea485a2de9570df434 | 04161d452aaaacee847c8e2efe581baa9a06176a | /cards/views.py | ccb42c8e4944b91ae0321e57333c0844c712907e | [] | no_license | 18mward/MediaTracker | 1e90dae1d4dae839a1f6c4b7aff8e4623062c67c | fde5d12c07476984ab9d1376f62d1597d661227c | refs/heads/master | 2023-01-08T08:29:07.725545 | 2020-11-09T03:45:08 | 2020-11-09T03:45:08 | 302,162,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import ListView, DetailView
from .models import Card
from django.urls import reverse_lazy
class CardListView(LoginRequiredMixin, ListView):
model = Card
template_name = 'card_list.html'
login_url = 'login'
class MovieListV... | [
"matthew3.ward@umconnect.umt.edu"
] | matthew3.ward@umconnect.umt.edu |
ebd8ec9f0147117b70ed5717177f3771723b112d | 14f7e8be66488e3b7fb6db6ef48bb245d5850b96 | /users/admin.py | f4a665334a847213b87c41def5346b9fd0c712aa | [] | no_license | DavyBeer/PaperTradingApplication | 6e44e69f0660dee25e47cfd47f4d9b287916c510 | 1ff0c7b37b295ab85e063af797e52d04a85ba0bf | refs/heads/main | 2022-12-26T04:24:11.949295 | 2020-10-12T05:07:11 | 2020-10-12T05:07:11 | 301,445,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from .forms import CustomUserCreationForm, CustomUserChangeForm
from .models import CustomUser
class CustomUserAdmin(UserAdmin):
add_form = CustomUserCreationForm
form = CustomUserChangeForm
model = CustomUser
list_display... | [
"steven1126@swbell.net"
] | steven1126@swbell.net |
2e603c2a7a66a964f1225b68ee468389f736c54f | 12cb1e0b81bf9d9a82dadc959ad206b01aea3cb0 | /data_processing/data_processing_ui/plot_config_ui.py | ff73abcbf235cecb6388929c6618060092c78ec5 | [
"MIT"
] | permissive | MadSciSoCool/PCI6289UiTaskConfig | df6f17dba7ece7c1ca7d02ca8d6c6ed8d77fca13 | 39052774ae0f519f3a9a50546ff0d9cf9081adb0 | refs/heads/master | 2020-04-12T11:04:54.450208 | 2019-06-28T12:48:18 | 2019-06-28T12:48:18 | 162,449,152 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | from PyQt5.QtWidgets import QGroupBox, QGridLayout, QCheckBox, QLabel, QRadioButton
from .input_widget import IntegerInputWidget
class PlotConfigUI(QGroupBox):
def __init__(self):
super().__init__("Plot Configurations")
self.initUI()
self.organization = "single_spectrum"
def initUI(se... | [
"expanjiahe@gmail.com"
] | expanjiahe@gmail.com |
6383c420b4d765598ded8fa8b7e09a41780ee859 | 5761eca23af5ad071a9b15e2052958f2c9de60c0 | /generated-stubs/allauth/socialaccount/providers/weixin/views.pyi | ab4087168efbf7f077d1dc53cf0dcb35eb434d7a | [] | no_license | d-kimuson/drf-iframe-token-example | 3ed68aa4463531f0bc416fa66d22ee2aaf72b199 | dd4a1ce8e38de9e2bf90455e3d0842a6760ce05b | refs/heads/master | 2023-03-16T13:52:45.596818 | 2021-03-09T22:09:49 | 2021-03-09T22:09:49 | 346,156,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | pyi | from .client import WeixinOAuth2Client as WeixinOAuth2Client
from .provider import WeixinProvider as WeixinProvider
from allauth.account import app_settings as app_settings
from allauth.socialaccount.providers.oauth2.views import OAuth2Adapter as OAuth2Adapter, OAuth2CallbackView as OAuth2CallbackView, OAuth2LoginView ... | [
"d-kimuson@gmail.com"
] | d-kimuson@gmail.com |
e197dfbf8faa71a3dcc6e6c779944012ad05b4b9 | 761f217364807e1cd536cc6eaeca8fb822934141 | /tests/song_test.py | 460b91a74b7ee4cfad5ffaba373cd15f27277291 | [] | no_license | duncancryan/karaoke | 74e02cfcc9f9fa7d9a4c3af3fc879fdbc6f6395c | 3fa48a578c87dae72bad767972f211d24763bfb2 | refs/heads/master | 2022-11-21T16:26:30.885952 | 2020-07-27T09:00:59 | 2020-07-27T09:00:59 | 282,766,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | import unittest
from classes.song import Song
class TestSong(unittest.TestCase):
def setUp(self):
self.song_01 = Song("Come on Eileen", "Dexys Midnight Runners")
self.song_02 = Song("Mr Blue Sky", "ELO")
self.song_03 = Song("Bat out of Hell", "Meatloaf")
self.song_04 = Song("You're ... | [
"duncancryan1@gmail.com"
] | duncancryan1@gmail.com |
5ac9b4d7308eaba4eff0b9657389f4c3652b5b94 | ebdeaa70f6e30abab03a1589bcdd56d1339151ef | /day14Python对象3/02-添加子类属性.py | e7ac08d531ca166a266198f0171a8931da24f600 | [] | no_license | gilgameshzzz/learn | 490d8eb408d064473fdbfa3f1f854c2f163a7ef6 | d476af77a6163ef4f273087582cbecd7f2ec15e6 | refs/heads/master | 2020-03-31T11:32:42.909453 | 2018-11-22T03:34:45 | 2018-11-22T03:34:45 | 152,181,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | # Filename : 02-添加子类属性.py
# Date : 2018/8/2
"""
对象属性的继承:是通过继承init方法来继承的对象属性
给当前类添加对象属性:重写init方法,如果需要保留父类的对象属性,需要使用
super()去调用父类的init方法
多态:同一个事物有多种形态,子类继承父类的方法,可以对方法进行重写,
一个方法就有多种形态(多态的表现)
类的多态:继承产生多态
"""
class Person:
def __init__(self, name='', age=2):
self.name = name
self.age = age
class Sta... | [
"619959856@qq.com"
] | 619959856@qq.com |
99af284f65cc44601dffa48fff1221c69d0cafdd | b402040954f13bbb8df5e2cb2f5ebafb4ed75f7a | /main/views.py | d7c0bd762af2b4961bf7af064383bbd60956c106 | [] | no_license | HalimaShanta/Shopping-Website | 6c744a6f219fa5744ffd3823742c852636b960ed | 2007cea9755b8f32493849bedd6af6c7cc9e91fd | refs/heads/main | 2023-08-04T23:12:24.547411 | 2021-09-09T21:10:37 | 2021-09-09T21:10:37 | 404,867,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,230 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.http import JsonResponse
from django.db.models import Avg
import json
import datetime
from .models import *
from .utils import cookieCart, cartData, guestOrder
# Create your views here.
def home(request):
data = cartDa... | [
"halimashanta@gmail.com"
] | halimashanta@gmail.com |
243f97c81a0f8ae108c5b7557264ce26e6162555 | fd3836a6f08c25a421e1c4bc22cd22670336792f | /blog/models.py | 4ee0bb0395901c1cfdc1a9bdbced5c9317c60559 | [] | no_license | artsemm/artsemblog | 9d31a91517863a4a871d5f3a6d4e5ed586e49a3f | d7c0687ae5bbe7b2dfdbb0afdfa179da43abd341 | refs/heads/master | 2022-12-11T00:45:24.408802 | 2020-09-14T07:18:27 | 2020-09-14T07:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | from django.db import models
from django.urls import reverse
from taggit.managers import TaggableManager
from ckeditor_uploader.fields import RichTextUploadingField
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=255)
category = models.CharField(max_length=255)
body... | [
"artyomsnow@gmail.com"
] | artyomsnow@gmail.com |
399a097469c714fa7e24cd73ba07c8856384fe38 | 6d1d909fba051e615b3c18baf30622c12e727a9f | /YoutubeDown.py | f11287973b16faff5a6808e0fb9de3829871d71e | [] | no_license | Elma-dev/YoutubeDown1 | f474aab194be199194f4f6beb534e3286151c93b | 0dec4d855f2773630e31941a6efce3f78aace3b3 | refs/heads/master | 2023-07-14T10:04:17.506027 | 2021-09-02T16:08:43 | 2021-09-02T16:08:43 | 402,473,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | def finish():
print("Download Finish.")
from pytube import YouTube
print("----------Download Youtube Videos----------",end="\n")
url=input("Enter Url Video:")
url=YouTube(url)
t=url.title
print(f'---------------//{t}//---------------')
type=input("Enter Type (video/audio):")
path=input("Enter saved Path(C:\....):... | [
"elmajjodi.abdeljalil@gmail.com"
] | elmajjodi.abdeljalil@gmail.com |
33cd55806b05ab6854a02b54fdf4443fb469b298 | 15a8be522dbf52eb2ffff2e711cb2e3934691e27 | /Python/for_loops_exercises.py | 5f28e3c8eb59e167b1acafc4e329950e93247dbc | [] | no_license | BrookeKelly-coder/she_codes_python_ | 3598984253013391825e2a017ffa8b57b27fd5ac | eb69754fe68345cb8859995eb960b23bc10e0389 | refs/heads/main | 2023-06-30T14:22:00.934847 | 2021-08-07T07:10:44 | 2021-08-07T07:10:44 | 383,939,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | user_input = input("Please enter a number ")
for number in range(int(user_input)):
print(f"{user_input} * {number +1} = {int(user_input) * (number +1)}")
| [
"86648602+BrookeKelly-coder@users.noreply.github.com"
] | 86648602+BrookeKelly-coder@users.noreply.github.com |
0b9a5b6229bd58649e623ae40fa5521bcb5e90a1 | 96411232e8b78423cdade23c8eec05a4246caed4 | /levelupapi/models/game.py | 85796c0ed2c84c903d3db2a769020c1e8524fc32 | [] | no_license | DakotaLambert/levelUp | 9bee61352ebd0d6da7fada6c60ad1f5dc3864dc2 | 81f7a7422081a0815c4f659f1ab98c22581a282e | refs/heads/main | 2023-07-15T21:46:30.059287 | 2021-08-25T16:36:30 | 2021-08-25T16:36:30 | 392,073,546 | 0 | 0 | null | 2021-08-10T18:03:31 | 2021-08-02T19:40:48 | Python | UTF-8 | Python | false | false | 772 | py | from django.db import models
class Game(models.Model):
"""Game Model
Fields:
models (CharField): The name of the game
game_type (ForeignKey): The type of game
description (CharField): The description of the game
number_of_players (IntegerField): The max number of players of the... | [
"dakotalambertbiz@gmail.com"
] | dakotalambertbiz@gmail.com |
d22558d47d0ab75d02028fd114e05c50d3c5dad2 | cacb324edc56d582e86c2e340a7ec33af69c08d8 | /SCRAPER/database_test.py | edbbb0cece9996a228b81bd9518061caabb4f87a | [] | no_license | twj25/FYP-Code | 2a84324f32eed483b8f08b64a66624bde2719b5b | a64e429c948ca1219fa25ce61e086747b18542d0 | refs/heads/master | 2023-04-21T20:44:36.522982 | 2021-05-07T13:59:03 | 2021-05-07T13:59:03 | 365,251,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | import database_helper
con = database_helper.db_connect()
cur = con.cursor()
sample_id = database_helper.create_sample(con,1,2021,'5577','http://sirius.bu.edu/data/')
# cur.execute("SELECT id, place FROM places")
# results = cur.fetchall()
# for row in results:
# print(row)
| [
"tom.johnson22@btinternet.com"
] | tom.johnson22@btinternet.com |
aed4e08003da3e498eec93eece45b13402d3b72d | cfe048d0c8a8247c6fe9b5dbfaf0b170e26fb2e9 | /tests/test_format.py | 20ec78e45f9b2248f233ff4c39c927a16eb4e76a | [
"BSD-2-Clause"
] | permissive | Deepwalker/trafaret_schema | d7049d1b462619fb526970b88cc23443caf06c25 | c902440ef44fab2285df927450f49c5ec3eccc62 | refs/heads/master | 2020-12-30T16:02:45.302759 | 2018-07-05T10:39:59 | 2018-07-05T10:39:59 | 90,956,081 | 8 | 1 | BSD-2-Clause | 2018-12-22T15:47:44 | 2017-05-11T08:29:06 | Python | UTF-8 | Python | false | false | 2,790 | py | import datetime
import unittest
import pytest
import trafaret as t
import trafaret_schema
from trafaret_schema.format import (
parse_date,
parse_time,
)
def test_parse_date():
check = parse_date()
assert check('2012-01-01') == datetime.datetime(2012, 1, 1)
with pytest.raises(t.DataError):
... | [
"krivushinme@gmail.com"
] | krivushinme@gmail.com |
e118ca4b0b8f51c659d6486050b387d039295125 | ea1cb5891aa6cc4997c0fa842a317b5bfebb9f92 | /max-temperatures.py | 2046020d2178b4c55ae36b2990c2d1bfc90f7ced | [] | no_license | srjalan/SparkCourse | 4d4da2b207713c606df373711bb5ce32554e7fec | 6845b9e5d478ad50ee77ea14ba6ae89f882238cd | refs/heads/master | 2020-06-11T04:42:00.105913 | 2019-07-18T05:47:23 | 2019-07-18T05:47:23 | 193,852,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | from pyspark import SparkConf, SparkContext
conf = SparkConf().setMaster("local").setAppName("MaxTemperatures")
sc = SparkContext(conf = conf)
def parseLine(line):
fields = line.split(',')
stationID = fields[0]
entryType = fields[2]
temperature = float(fields[3]) * 0.1 * (9.0 / 5.0) + 32.0
return ... | [
"renjie.song@gatech.edu"
] | renjie.song@gatech.edu |
2d1003eb12e4578cbb09e2a2b23226e356bffd3e | 80c8d4e84f2ea188a375ff920a4adbd9edaed3a1 | /bigdata_study/pyflink1.x/pyflink_learn/examples/4_window/sink_monitor.py | f9435ee7aaed197828b8fafad6f66d9fa6cace97 | [
"MIT"
] | permissive | Birkid/penter | 3a4b67801d366db15ca887c31f545c8cda2b0766 | 0200f40c9d01a84c758ddcb6a9c84871d6f628c0 | refs/heads/master | 2023-08-22T14:05:43.106499 | 2021-10-20T07:10:10 | 2021-10-20T07:10:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | """
读取 kafka 的用户操作数据并打印
"""
from kafka import KafkaConsumer
from reprint import output
import json
topic = 'click_rank'
bootstrap_servers = ['localhost:9092']
group_id = 'group7'
consumer = KafkaConsumer(
topic, # topic的名称
group_id=group_id, # 指定此消费者实例属于的组名,可以不指定
bootstrap_servers=bootstrap_servers, # ... | [
"350840291@qq.com"
] | 350840291@qq.com |
17fa411032a598da703a155c33a3b26331da15ed | 0a5e0cb2654407e89e2709a21b3dd8aa53cd1990 | /django-extjs-v1/settings.py | 7326ab9d9ea761e53fcbf7b99f74ff289c37c515 | [] | no_license | DarioGT/misEjemplos | 58ca669a0950c51815441f0fde3476fcab653ac2 | 40fce08fa3b44e943209dad8c790b72aad1a655d | refs/heads/master | 2021-01-13T02:44:30.955228 | 2013-08-16T02:30:43 | 2013-08-16T02:30:43 | 3,567,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,975 | py | # Django settings for PROTO project.
import os, sys
from django.conf.global_settings import STATIC_URL
PPATH = os.path.realpath(os.path.dirname(__file__)).replace('\\','/')
PPATHBASE = os.path.abspath(os.path.join( PPATH, os.pardir )).replace('\\','/')
# Para encontrar las globales
sys.path.append(PPATHBASE )
# Djan... | [
"dario@mint"
] | dario@mint |
ac7005419abb334ce4cd3857d287ab213ec756ed | 9960a85fe06338773488ae72a737b9ae80a8f84f | /python/tut2.py | d047cf09fbc2053d331c62d20f7e8da3bf66779a | [] | no_license | xmms2/xmms2-tutorial | 11e74a482be721e9a7a12ffc07fc1c3c4bda4fc1 | 8ff8c66d1cc2a90d583dc2d96490e626792c486a | refs/heads/master | 2020-12-24T13:52:17.106928 | 2011-09-09T17:52:46 | 2011-09-10T01:12:10 | 7,924,221 | 6 | 1 | null | 2018-12-06T00:22:02 | 2013-01-30T21:25:37 | C | UTF-8 | Python | false | false | 1,951 | py | #!/usr/bin/env python
# XMMS2 - X Music Multiplexer System
# Copyright (C) 2003-2006 XMMS2 Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the Licens... | [
"eleusis@xmms.org"
] | eleusis@xmms.org |
25a39bfe0961decc5e8a5665dfe83a66b05dbd27 | 18430833920b3193d2f26ed526ca8f6d7e3df4c8 | /src/notifications/context_processors.py | f80de60ee43e53ffde101052edf945953ac0c19e | [
"MIT"
] | permissive | providenz/phase | ed8b48ea51d4b359f8012e603b328adf13d5e535 | b0c46a5468eda6d4eae7b2b959c6210c8d1bbc60 | refs/heads/master | 2021-01-17T06:56:07.842719 | 2016-06-28T11:17:53 | 2016-06-28T11:17:53 | 47,676,508 | 0 | 0 | null | 2015-12-09T07:45:19 | 2015-12-09T07:45:18 | null | UTF-8 | Python | false | false | 991 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import AnonymousUser
from django.conf import settings
from notifications.models import Notification
def notifications(request):
"""Fetches data required to render navigation menu.
The main menu contains the lis... | [
"thibault@miximum.fr"
] | thibault@miximum.fr |
e270360c2e7314eb2a69a82872043984e52ce1b4 | 70ba2c6f45bf036cf8e2860003ee03ef2de7842c | /apps/registro_hora_extra/models.py | c2e70f1ef58c47a87e4baec3d3f2f58225e2e7a5 | [] | no_license | Izaiasjun1Dev/gestao_rh | b99d0ba767ad136ba596c8da388ec184e19b5aae | 29830e5d7e1eed5eec93548ee31b19a4c6d62797 | refs/heads/master | 2022-01-26T00:57:10.561760 | 2019-07-31T17:56:25 | 2019-07-31T17:56:25 | 199,683,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from django.db import models
class Registro_Hora_Extra(models.Model):
motivo = models.CharField(max_length=100)
def __str__(self):
return self.motivo | [
"solucaoprogramer@gmail.com"
] | solucaoprogramer@gmail.com |
aa868482ce1ae081171bcade437cedd55fa9e419 | 94b23a4376941549e48df743b39221a5b8355c5f | /group_agnostic_fairness/data_utils/uci_adult_input.py | f4d7ab2303073b91a8795717c32dd14eac160444 | [
"Apache-2.0"
] | permissive | TomFrederik/fact-ai | 6585a34879341b838b1a21935beda6a2a234704c | 34e1889db83e70d5ddde590ae67836c97c99f904 | refs/heads/main | 2023-03-24T23:39:20.827844 | 2021-03-21T15:06:16 | 2021-03-21T15:08:02 | 326,638,629 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,913 | py | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"erik.jenner99@gmail.com"
] | erik.jenner99@gmail.com |
17305d5e5936550c6ceb2609d0076d06a975bbfc | e6da5a3210800cdfde59f3bbb7986ff3fc878598 | /src/test/isolation/specs/referential-integrity.spec | df74d4704e3b342b5da9118425b67dfd99a5f6b8 | [
"BSD-3-Clause",
"PostgreSQL",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | Tencent/TBase | b66f13583ce6cd02ee5d453e2ce5a3a61e8b8f13 | 7cf7f8afbcab7290538ad5e65893561710be3dfa | refs/heads/master | 2023-09-04T03:27:38.289238 | 2023-03-09T12:02:41 | 2023-03-09T12:18:46 | 220,177,733 | 1,433 | 283 | NOASSERTION | 2023-07-31T07:31:58 | 2019-11-07T07:34:03 | C | UTF-8 | Python | false | false | 854 | spec | # Referential Integrity test
#
# The assumption here is that the application code issuing the SELECT
# to test for the presence or absence of a related record would do the
# right thing -- this script doesn't include that logic.
#
# Any overlap between the transactions must cause a serialization failure.
setup
{
CREA... | [
"chenzaini@sina.com"
] | chenzaini@sina.com |
1fca4aed26bc77632bf5e34189a59250e7abcc60 | a5eeb9754449cbf884fc3bc44fc2f6f842e94a96 | /dialogweb/urls.py | 6d3d707eb60a1e5563c36662fefa3f72efff8351 | [] | no_license | namanana1007/dialogtask | 038af0391495d25d31518fc2ae18f29fd07fab24 | 0605c63406c8b483683669288f954a58a1444fec | refs/heads/master | 2020-05-31T06:50:48.422412 | 2019-06-04T07:42:40 | 2019-06-04T07:42:40 | 190,151,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | """HelloWorld URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"xkr654321@163.com"
] | xkr654321@163.com |
112ccc43f55508cf6ee3643d5088e775dfb0a6d6 | 37cad5adb9c46b3ca41b5220b768606172e7649a | /areaofcircle - Copy.py | 2896890254e425c8f86f264ed477011ad4549505 | [] | no_license | nidjaj/python-basic-codes | 7c65a82c5c259a97148e97872c9d8799756bf489 | 0a9a0384f88dcc039fd14d69bc43657a304e273c | refs/heads/master | 2020-06-03T15:42:12.175219 | 2019-07-09T18:44:56 | 2019-07-09T18:44:56 | 191,634,515 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | # calculate area of circle
r=input("enter radius of circle")
a=3.14*float(r)*float(r)
print("area of circle is",a)
| [
"noreply@github.com"
] | nidjaj.noreply@github.com |
db5fc913c50c24d9c3bb985ff8799f82103afce3 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/454/usersdata/302/106280/submittedfiles/programa.py | ca76871b6b4cba21f2e253a7a5ef79930a322905 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | # -*- coding: utf-8 -*-
c = int(input('Digite o número de consultas:'))
for i in range(c):
c.append(int(input('Digite a consulta %d: %(i+1))))
print(c)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
20a5737230bac56977780a12595c131b8523268d | 9fa8c280571c099c5264960ab2e93255d20b3186 | /system/scientist/panel/control/stop_criterion/view.py | 76a6fe614d545726fcac47b3131dbcdefb304689 | [
"MIT"
] | permissive | thuchula6792/AutoOED | 8dc97191a758200dbd39cd850309b0250ac77cdb | 272d88be7ab617a58d3f241d10f4f9fd17b91cbc | refs/heads/master | 2023-07-23T16:06:13.820272 | 2021-09-08T14:22:18 | 2021-09-08T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,417 | py | import tkinter as tk
from system.gui.widgets.factory import create_widget
class StopCriterionView:
def __init__(self, root_view):
self.root_view = root_view
self.window = create_widget('toplevel', master=self.root_view.root_view.root, title='Stopping Criterion')
self.widget = {
... | [
"yunsheng@mit.edu"
] | yunsheng@mit.edu |
014d013189fab069557c491555f1d503d5982ddb | 9fcb65c090de07be1ef6da0e9571b98810139557 | /kronos/utils.py | e834d9046f9902edb33dc0d349e043e0ca783f13 | [
"MIT"
] | permissive | sebastiandev/kronos | 2d136a37ccdb3390eeda73fa63eee3e909073773 | 24ec4f9d45024fec487a0b51331162f6a6cf767c | refs/heads/master | 2020-08-08T02:02:44.141924 | 2019-11-28T12:51:24 | 2019-11-28T12:51:24 | 213,670,090 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py |
def serializable_dict(d):
def _safe_value(value):
from decimal import Decimal
from datetime import date, datetime, time
if isinstance(value, Decimal):
_v = str(value)
elif isinstance(value, (datetime, date, time)):
_v = value.isoformat()
elif isins... | [
"devsebas@gmail.com"
] | devsebas@gmail.com |
0e1c84c3ad5515132006c028d0ce7d87bdfbc4e2 | c8c77f6cc6c032daf179ea2138e4dda5473b426b | /pinpoint-email/pinpoint_send_email_message_email_api.py | c607d8762534d68c7b98210c7dd0bc37ba9ccd58 | [] | no_license | arunmastermind/AWS-examples-using-BOTO3 | b411a6c96011ab58a66952a53fa2938cb58d5135 | e8390094374c10902bab016a21caba75ea179b5a | refs/heads/master | 2020-09-30T13:34:33.657621 | 2019-12-11T12:37:44 | 2019-12-11T12:37:44 | 227,297,211 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,698 | py | import boto3
from botocore.exceptions import ClientError
# The AWS Region that you want to use to send the email.
AWS_REGION = "us-west-2"
# The "From" address. This address has to be verified in
# Amazon Pinpoint in the region you're using to send email.
SENDER = "Mary Major <sender@example.com>"
# The addresses on... | [
"arunmastermind.sci@gmail.com"
] | arunmastermind.sci@gmail.com |
89aadd7f9dd9e91da3e1da7db4d4e2395ffb8883 | 93b495b3624399c81b7edb39d1f6c5cebb2cd987 | /vyper/ast.py | 445bdf16b1ecb9ebfb855d44e98e25836353f5e9 | [
"Apache-2.0"
] | permissive | fubuloubu/vyper-redux | bf4b91d00290e5ed063ce74b44b740af6c3afae7 | a190c69083a968136ce10d1ceb68e42e41ff9de1 | refs/heads/master | 2020-12-20T16:29:44.390444 | 2020-01-25T07:53:23 | 2020-01-25T07:53:23 | 236,137,024 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,683 | py | import ast as py_ast
import inspect
import sys
from typing import (
Any,
Dict,
List,
Tuple,
Type,
Union,
)
import lark
import stringcase
class Ast(py_ast.AST):
_fields = ()
class Module(Ast):
_fields = ('methods',)
def __init__(self, children: List[Union[lark.Tree, lark.Token]])... | [
"fubuloubu@gmail.com"
] | fubuloubu@gmail.com |
76d531c0fb4fd4d379533d60ae77b3f0fcab52b5 | f8b04cc46a5d792e516e1627df78a5142879dd07 | /movie_project/app/home/forms.py | 5f67b3cd0f2a072d35471eca25ada4c23503a037 | [] | no_license | Meep-a/first | aa7611ce460498662cdb97671321345f47c615dd | 27fc94c7de28c8e1875cb6c9b31a061c6f11cd50 | refs/heads/master | 2020-07-05T07:23:20.064211 | 2019-09-28T15:24:41 | 2019-09-28T15:24:41 | 202,570,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,559 | py | # 表单
# coding:utf8
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, FileField, TextAreaField
from wtforms.validators import DataRequired, Email, Regexp, EqualTo, ValidationError
from app.models import User
class RegisterForm(FlaskForm):
'''
用户注册表单
'''
# 名称... | [
"dengdota2@sina.com"
] | dengdota2@sina.com |
d5384eb6d5db932b918839c6357b689034129fe1 | 27467c4fa7f75c01019e667be730a41026b7cb7d | /news/apps.py | 792353b3147eb090379f2624ca2625f05ede1a64 | [] | no_license | ProgMagnus/News-site-django-prototype | 647dfa92ad1d606f766d2a22174d0a924d88245e | 1ef860397d7399290cb75a0cc10476f995b5b48e | refs/heads/master | 2023-07-17T20:20:05.120624 | 2021-08-20T20:46:05 | 2021-08-20T20:46:05 | 398,384,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.apps import AppConfig
class NewsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'news'
verbose_name = 'My News'
| [
"teamofpandas@gmail.com"
] | teamofpandas@gmail.com |
2c9ec18ab1cc22af1abf040b041a1ca23db8dc47 | 5d056eba554c9c5d19687af8a95ff0db5b5f457b | /oneflow/python/test/tensor/test_tensor.py | a7a012dd1b5f99353e386841f18303c927b8de72 | [
"Apache-2.0"
] | permissive | wanghongsheng01/framework_cambricon | e96597f9b4ebfb6057bed0e13ce3a20a8baf07e2 | 187faaa2cb9ba995080ba22499b6219c2d36f0ac | refs/heads/master | 2023-07-02T04:03:18.827934 | 2021-07-26T08:56:01 | 2021-07-26T08:56:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,739 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | wanghongsheng01.noreply@github.com |
890fd3b5525d78b3bddbc5f55ff21303da111d0b | b4f203f487c0425fc2996079829715f48f06689b | /test2.py | 80d5b14539e4dddde2c4233542974efd336b1d4f | [] | no_license | seunggue/AI-school-project | 1232a6bb91a5e492289dcff1dec3c12d747e53a1 | ceaad7808a86b09062203845cab603fe71ea15c5 | refs/heads/master | 2022-12-12T08:37:51.067589 | 2020-08-30T16:33:08 | 2020-08-30T16:33:08 | 290,980,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | a = '12345'
print(a[:-3]) | [
"seungue1687@gmail.com"
] | seungue1687@gmail.com |
29f903ec82ceab6e23c6cd6d965b31ac87b9b753 | 31efbaab86fa00aec8be4539c10941cc825b1523 | /code/week2/08_for/8_3.py | d4119c522889f9653afd781d212a3e64b928fefd | [] | no_license | Aang1993/python_mathesis_course | 7eed0478e6ad023fd6b9a0da7a5701b6d696a68f | be5901d46230d803373577f46ea0dfff22512a14 | refs/heads/master | 2023-06-04T14:19:27.486748 | 2021-06-17T17:18:30 | 2021-06-17T17:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # mathesis.cup.gr
# N. Αβούρης: Εισαγωγή στην Python
# Μάθημα 8. Δομή for
# Άσκηση 8.3
#Να δημιουργήσετε μια λίστα με μέλη
#τα γράμματα μιας συμβολοσειράς
st = "καλή σας μέρα αρχόντες"
li = []
for ch in st:
if ch.isalpha():
li.append(ch)
print(li)
| [
"noreply@github.com"
] | Aang1993.noreply@github.com |
adcc7a4f456face62e0edc4a15503cb7ef48c86e | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/XjShRightSide/YW_GGQQ_QLFXJHA_086.py | 6a72b553056082e63709d5549fef6af05775698c | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,894 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import json
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/option/service")
from OptMainService import *
from OptQueryStkPriceQty import *
sys.path.append("/home/yhl2/workspace/xt... | [
"418033945@qq.com"
] | 418033945@qq.com |
a8d1a0375bce03ca9605bc955a1bef231c78a0bd | 0e638cd11c1ac64dcd1672936a1b0d7d545ee29f | /src/required_arg_after_optional_arg.py | f25f359628beedb42bfa80b56273c8056eba4778 | [] | no_license | simon-ritchie/python-novice-book | 2557d397a8f6025b63f3173c24bd4dcdb48aef8c | 1492adf603ba4dd1e9fadb48b74e49887c917dc6 | refs/heads/master | 2020-12-26T16:47:36.945581 | 2020-08-04T12:16:10 | 2020-08-04T12:16:10 | 237,569,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | def multiply_x_by_y(x=10, y):
multiplied_value = x * y
print(multiplied_value) | [
"antisocial.sid2@gmail.com"
] | antisocial.sid2@gmail.com |
8fd75ccc449a7c28615a4d003821d04a5a247f6c | 5f27addee7c9bf2708b28c1ea129e27df4f0d670 | /class-07/demo/testing-io/tests/test_guesser.py | 5cf24766498e9706476b33b87448b8466855367e | [] | no_license | abdalazzezzalsalahat/amman-python-401d3 | 04862498a95cac2ad686de70f9fc1a8dd0aaf7e3 | 2f6fbecd110ad06094768b63eabfa70294d2b919 | refs/heads/main | 2023-06-10T18:12:17.369983 | 2021-07-02T21:48:48 | 2021-07-02T21:48:48 | 363,807,895 | 0 | 1 | null | 2021-07-02T21:48:49 | 2021-05-03T03:37:34 | Jupyter Notebook | UTF-8 | Python | false | false | 3,465 | py | import builtins
import pytest
from testing_io.guesser import Guesser
def test_help():
def mock_print(*args, **kwargs):
actual = args[0]
expected = "Instantiate a Guesser then guess things"
assert actual == expected
# Setup
# Backup out original print function
old_print = b... | [
"dario.thornhill@gmail.com"
] | dario.thornhill@gmail.com |
6cd63baf5527151bb24780b8cd093d74cd6727e3 | 70f44c7e293a2f4a6ea7c1432410bb89bfd93591 | /main.py | 8cb07e58aa82fadb2ba022d2da5d6c861f1f959c | [] | no_license | leetschau/fuel-efficiency-analysis | 2d7785167100efe324e569de6f5929b86e21e1c8 | d2249d8dcb07c4704b801f2c664a3637445c7f77 | refs/heads/master | 2021-01-22T21:18:03.565016 | 2017-09-07T07:33:09 | 2017-09-07T07:33:09 | 100,671,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 16 12:13:11 2017
@author: leo
This script is the implementation of chapter 7 "Driving Visual Analyses with Automobile Data"
of "Practical Data Science Cookbook" by Tony Ojeda, etc.
"""
#%% Section Analyzing automobile fuel efficiency over time wi... | [
"leetschau@gmail.com"
] | leetschau@gmail.com |
150ca0fe6a8507a3b8e281a64d08bea75404782f | 998c0b261c73bf27f059fa8604859548b6153257 | /smartPython/moveController.py | 252ce31f3bcd788fea43d2f8703e62f2b0840145 | [] | no_license | kwarnello/Smart-Python | 1ee4a87fddf5b856083c8110d88757bea30c9ed2 | 558be0528b434a3dcd46228a30ad23d0c99a3f07 | refs/heads/master | 2021-07-14T04:40:12.564507 | 2021-03-05T07:47:16 | 2021-03-05T07:47:16 | 237,638,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | '''
Created on 2 lut 2020
@author: Warus
'''
import keyboard
class Controller(object):
'''
classdocs
'''
def __init__(self, main):
'''
Constructor
'''
self.main = main
self.gameStartsInitialize()
def gameStartsInitialize(self):
'... | [
"kwarnello@gmail.com"
] | kwarnello@gmail.com |
d8eeec8f2b5d006a2340b0046d783276cfbedc89 | 7d60f4855b0363d3546fac49bf3579533c316ea9 | /portal/model/dbperson.py | b1254517051190d75afd90ed60174cbe36b70971 | [] | no_license | slimjim777/Portal | 41baa28f8b575cfc75f1778ebac0fccf17be26bd | b08c095ead11b594f9c279a15ddfeb515b528674 | refs/heads/master | 2020-04-24T19:27:25.206112 | 2015-01-22T20:38:34 | 2015-01-22T20:38:34 | 13,887,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,045 | py | import datetime
from flask import session
from portal.model.models import Database
from portal import app
class Person(Database):
def family_upsert(self, record):
"""
Update or insert the provided family record.
"""
if 'familyid' not in record:
return False
# ... | [
"james.jesudason@gmail.com"
] | james.jesudason@gmail.com |
aea5006c1c62d85c9324800cb824eaecd11410ea | 90b77573a20caedbd31eaf8c3802ea42224d4d38 | /day05/ex07/forms.py | f4d0e094fc2d7147084f81b153bab2c80e86ffa8 | [] | no_license | hekang42/pythondjango_piscine | 813e200478244522fb71c92b37301123ff9b6882 | 7b7ec7c14b607c441e559da1fdbceb0a4a9d30c8 | refs/heads/master | 2023-08-14T21:24:55.006949 | 2021-10-07T07:27:11 | 2021-10-07T07:27:11 | 370,340,692 | 1 | 0 | null | 2021-10-07T07:27:12 | 2021-05-24T12:15:17 | Python | UTF-8 | Python | false | false | 311 | py | from django import forms
class UpdateForm(forms.Form):
titles = forms.ChoiceField(choices=(), required=True)
texts = forms.CharField(required=True)
def __init__(self, choices, *args, **kwargs):
super(UpdateForm, self).__init__(*args, **kwargs)
self.fields['titles'].choices = choices | [
"hekang@c4r5s6.42seoul.kr"
] | hekang@c4r5s6.42seoul.kr |
7124f2a9f68d5d9087a9d1222997500c8be8d396 | 8e8d8317df9faa2a64936467ceada871158b459a | /python入门/_09_面向对象特性/_15_类方法.py | 9e0663cf43b5ddbaa36bde92044829be8b046432 | [] | no_license | ccuwxy/learn_python_code | 8d5d27deefd7212665f1bdb24708e376ebe0ed9e | 47e84fb8ae9fcc1c6bc5fc02fee51cbca127968e | refs/heads/master | 2023-04-28T20:11:32.702882 | 2021-05-11T14:28:30 | 2021-05-11T14:28:30 | 358,096,174 | 1 | 0 | null | 2021-04-25T03:58:27 | 2021-04-15T01:56:32 | Python | UTF-8 | Python | false | false | 312 | py | class Tool(object):
count = 0
@classmethod
def show_tool_count(cls):
print("工具对象的数量 %d" % cls.count)
def __init__(self, name):
self.name = name
Tool.count += 1
tool1 = Tool("斧头")
tool2 = Tool("榔头")
tool3 = Tool("水桶")
Tool.show_tool_count()
| [
"wxy990212@126.com"
] | wxy990212@126.com |
2d5241ff37c81e87fe5dde76480448e82b1a8bf5 | 2bacd64bd2679bbcc19379947a7285e7ecba35c6 | /1-notebook-examples/keras-udemy-course/ann_class2/mxnet_example.py | 9ea745fce7cb6e4c583659c52a0dfbfe86e6fcb1 | [
"MIT"
] | permissive | vicb1/deep-learning | cc6b6d50ae5083c89f22512663d06b777ff8d881 | 23d6ef672ef0b3d13cea6a99984bbc299d620a73 | refs/heads/master | 2022-12-12T15:56:55.565836 | 2020-03-06T01:55:55 | 2020-03-06T01:55:55 | 230,293,726 | 0 | 0 | MIT | 2022-12-08T05:27:43 | 2019-12-26T16:23:18 | Jupyter Notebook | UTF-8 | Python | false | false | 2,621 | py | # https://deeplearningcourses.com/c/data-science-deep-learning-in-theano-tensorflow
# https://www.udemy.com/data-science-deep-learning-in-theano-tensorflow
from __future__ import print_function, division
from builtins import range
# Note: you may need to update your version of future
# sudo pip install -U future
# in... | [
"vbajenaru@gmail.com"
] | vbajenaru@gmail.com |
1ba533ce7e9b7e2069995dcfa5cf5053a9b1d190 | aa349f9257e45933a682a38df9ef41e0ae28c730 | /find_second.py | c6d51c357f6bcf20b919310f8027d9e3bd76cbc9 | [] | no_license | lcbasu/Pyhthon-Search-Engine | 4f01d417e6e69268584ac7303db7f67df68959a8 | 988b36dea82f2c125b820562ad29b1bd35166b40 | refs/heads/master | 2021-05-27T09:45:45.082514 | 2014-03-28T10:53:44 | 2014-03-28T10:53:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | def find_second(search_string,target_string):
first_occur = search_string.find(target_string)
second_occur = search_string.find(target_string,first_occur+1)
return second_occur
search_string = '<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chro... | [
"lokesh.basu@gmail.com"
] | lokesh.basu@gmail.com |
fd84e7fc567df5271c49d18a9b47958ec6a061d6 | 6435a3b29ca60c0d45f741a07c6d8ac486d8fbeb | /freeze.py | 211149ab2b3515e3468acc5290de241b746bf0aa | [
"MIT"
] | permissive | pyskell/whatcanbitcoindo | b408d0e977fddc1a3c2dc796d527c11fefdfa6bd | 51ea38d5edb409709189daced073b4e336f06e9e | refs/heads/master | 2023-05-09T15:52:39.468558 | 2020-08-16T15:04:47 | 2020-08-16T15:04:47 | 264,560,135 | 2 | 0 | MIT | 2021-06-02T21:50:17 | 2020-05-17T01:21:50 | HTML | UTF-8 | Python | false | false | 245 | py | #!/usr/bin/env python3
from flask_frozen import Freezer
from app import app
app.config['FREEZER_DESTINATION'] = 'docs'
app.config['FREEZER_DESTINATION_IGNORE'] = ['CNAME']
freezer = Freezer(app)
if __name__ == '__main__':
freezer.freeze() | [
"pyskell@users.noreply.github.com"
] | pyskell@users.noreply.github.com |
ccf06c41e6a3a1868b2cadf52a808e58e3d17238 | 5ab6b12f342a1d011a0ed90dc2c111de1fd250bd | /brdc_inventory/models/inherited_res_partner.py | 8f423ace62d24fab3bb92385a1b6487b3beab8ca | [] | no_license | ainkrad/modified-odoo-10 | 7afdddc2db8e15469a897bc637287ac0c6d62689 | e8b77b4cf270c9536dabeed793a78346f3553263 | refs/heads/master | 2020-03-27T18:57:21.281829 | 2018-09-24T02:57:53 | 2018-09-24T02:57:53 | 146,955,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from odoo import api, fields, models
class inherited_res_partner(models.Model):
_inherit = 'res.partner'
# agency_id = fields.Many2one('employee.hierarchy')
# Ranz
collector_area_id = fields.Many2many('config.barangay', string="Barangay assigned")
# Ranz
| [
"ahyanfrancisco30@gmail.com"
] | ahyanfrancisco30@gmail.com |
2de41bec0678268d11fc70fbf12b8eaeb770d951 | 34efa4d0acbf8b13e710c5df5e2825a355072d39 | /ADT_3D_vectors.py | 3d87c9308939248b961a615f0ce884ada5451b0c | [] | no_license | kriskros341/concreteAbstractions | 2535a86130c4b21ea76864717aab3348f3b9438c | 1f71b5411df95470b750538c2416c1962e534387 | refs/heads/main | 2023-04-18T12:43:11.755047 | 2021-05-02T11:50:42 | 2021-05-02T11:50:42 | 334,690,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | class vector:
def __init__(self, x, y, z):
self.x_coord = x
self.y_coord = y
self.z_coord = z
def __add__(self, another_vector):
new_x = self.x_coord+another_vector.x_coord
new_y = self.y_coord+another_vector.y_coord
new_z = self.z_coord+another_vector.z_coord
... | [
"krzysztofczuba884@gmail.com"
] | krzysztofczuba884@gmail.com |
bedcfd6082c49f5b3370197ed3b1f2b588641be4 | 3da7cb968fd408657bfeb8ca3b83209966060f58 | /TaskPython/run2.py | c9b35d708bf5d63a46cc4b681fd89fabc32a71a9 | [] | no_license | 5up3rc/AwvScan | af2dcb384d814d2eab6560a0cfab99d9c73ed940 | a5f279f39480b87b6823fe55bf7e68e5e5dcd1c4 | refs/heads/master | 2021-01-18T09:51:22.438968 | 2015-08-12T13:13:47 | 2015-08-12T13:13:47 | 46,076,852 | 2 | 1 | null | 2015-11-12T19:48:47 | 2015-11-12T19:48:47 | null | UTF-8 | Python | false | false | 1,913 | py | # coding=utf-8
import urllib,time,os,base64,json
import _winreg
wvs_path = ""
def get_html(url):
url=url.strip()
html=urllib.urlopen(url).read()
return html
def writefile(logname,cmd):
try:
fp = open(logname,'a')
fp.write(cmd+"\n")
fp.close()
except:
return False
def regedit(re_root,re_path,re_key):... | [
"coolxia@foxmail.com"
] | coolxia@foxmail.com |
42510ad34d67ca4ee16a1543e88bd46fa32f9de3 | 4a06498a34de4a4800ecea582d489e28693deaf6 | /MarketPurchase.py | fa6b4317134d22aab6fd39d813733df21c5c6af1 | [] | no_license | Ale1503/Launchpad-Learning- | 81b4cc8cf5baef843537a7cdb56f8cd56f869078 | dff7d2e9feb45c348991e77387a140c3f109375e | refs/heads/main | 2023-08-11T02:26:19.412255 | 2021-10-04T04:27:40 | 2021-10-04T04:27:40 | 316,850,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | #Pulpería
list_of_products = [
{ 'Code': '1000', 'Name': 'Coke', 'Price': 5 },
{ 'Code': '1001', 'Name': 'Tropical', 'Price': 5 },
{ 'Code': '3001', 'Name': 'Alcohol', 'Price': 6 },
{ 'Code': '3002', 'Name': 'Cacique', 'Price': 10},
{ 'Code': '1212', 'Name': 'Komplete', 'Price': 15}
]
#Shopping cart
cart =... | [
"alejandrovs151@gmail.com"
] | alejandrovs151@gmail.com |
a89f0e94dccdc78c5c769c12c90d705a0cdb7516 | 906d5b4f21c390966985b40262fc0f0ff1326878 | /aoc18b.py | f088fca2687d30cb5330f8d0a842a01ab8cf3219 | [] | no_license | Yabk/AdventOfCode2017 | 428be1700119f22fc27ae92640629776e3b53f89 | a75b9140757c2705216727552b4b158c879224ef | refs/heads/master | 2021-09-01T06:33:59.518297 | 2017-12-25T11:10:06 | 2017-12-25T11:10:06 | 113,624,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,623 | py | #!/usr/bin/python3
#99, 127, 0, 129
import fileinput
from queue import Queue
import threading
from time import sleep
print_lock = threading.Lock()
def main():
instructions = []
for line in fileinput.input():
if line == '\n':
break
instructions.append(line.split())
q0 = Queu... | [
"jakov.ivkovic@gmail.com"
] | jakov.ivkovic@gmail.com |
4e543f00e2d14fc40a0fe4bc585aa1c2dfa3cba2 | 017a0e2c26455cf8a7a120fb21de7c8acf8e34b6 | /412_fizz_buzz.py | f73c92b6bb8162beb64c6617f2329051744f8d4c | [] | no_license | csliubo/leetcode | 06ee285ac84657a6010f53a1555c05eb0e9075ab | cd9a4d261830180a59bc92cc706fe0dd2f1746f9 | refs/heads/master | 2021-01-19T04:38:17.386615 | 2020-03-03T07:12:00 | 2020-03-03T07:12:00 | 63,233,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # -*- coding:utf-8 -*-
__author__ = [
'"liubo" <liubo.cs@hotmail.com>'
]
class Solution(object):
def fizzBuzz(self, n):
"""
:type n: int
:rtype: List[str]
"""
ret = []
for i in range(1, n + 1):
if i % 15 == 0:
ret.append("FizzBuzz")
... | [
"liubo.cs@hotmail.com"
] | liubo.cs@hotmail.com |
1475c2e69309824b15d81801250c9ed88512b87e | 66e0f8dc025fd46a593c1360ce26e85869225332 | /model/classifier/logestic_reg_classifier.py | bfb2425b1c933c13ea7c9bad1a5c501b8d93828e | [] | no_license | PppBr/Spooky | 5fb1f47c8c0cd004dfdabf8d5eb379dbdc86b490 | 467e709ad1371db85b54cc47391d8dbf6eba17f9 | refs/heads/master | 2020-09-24T11:51:47.520715 | 2019-12-04T01:47:31 | 2019-12-04T01:47:31 | 225,754,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,638 | py | import numpy as np
from config import Config
from sklearn import preprocessing
from sklearn.externals import joblib
from sklearn.naive_bayes import MultinomialNB
from sklearn.metrics import classification_report
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import StratifiedKFold
cla... | [
"bolopeng1991@gmail.com"
] | bolopeng1991@gmail.com |
bef472a1d7fc8c8b51ea93d9df05c7b22106bbbe | dc121ef8cfb9c4a8659698d15dc6bd27236ff093 | /blog22-fft/blog22-image02.py | 95dc87162a07261192d7731b8f048bd92e3f37d4 | [] | no_license | WeiSen0011/ImageProcessing-Python | 29328179d26f16242953957ae0d5a190a5265387 | 85438d642cb6093a100dcd1b9146e784b43b2b53 | refs/heads/master | 2023-07-14T01:16:30.481792 | 2021-08-20T09:54:03 | 2021-08-20T09:54:03 | 400,161,692 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # -*- coding: utf-8 -*-
import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
#读取图像
img = cv.imread('lena.png', 0)
#傅里叶变换
f = np.fft.fft2(img)
fshift = np.fft.fftshift(f)
res = np.log(np.abs(fshift))
#傅里叶逆变换
ishift = np.fft.ifftshift(fshift)
iimg = np.fft.ifft2(ishift)
iimg = np.ab... | [
"noreply@github.com"
] | WeiSen0011.noreply@github.com |
797ced415fa7d934c058f3bcd3023a6af0a876c5 | c26431bfe6244776cd6f7a3baeb92a560ab8bba8 | /makeCorrectionsWorkspace_singletau_legacy_2018.py | 84072fcc7a4b49728acaff1f5e5294167588cdf6 | [] | no_license | KIT-CMS/LegacyCorrectionsWorkspace | 157e0db9890a13fc0767a8c51d13a237c8b44085 | 807f175392086c5810ec329fea5864292e2f3110 | refs/heads/master | 2021-09-11T07:34:38.963273 | 2020-12-23T14:32:28 | 2020-12-23T14:37:37 | 202,510,204 | 0 | 2 | null | 2020-12-23T14:37:38 | 2019-08-15T09:09:38 | Python | UTF-8 | Python | false | false | 3,382 | py | #!/usr/bin/env python
import ROOT
import imp
import json
from array import array
import numpy as np
wsptools = imp.load_source('wsptools', 'workspaceTools.py')
def GetFromTFile(str):
f = ROOT.TFile(str.split(':')[0])
obj = f.Get(str.split(':')[1]).Clone()
f.Close()
return obj
# Boilerplate
ROOT.PyCon... | [
"maxiburkart@gmail.com"
] | maxiburkart@gmail.com |
8f0559a6949b29f1325ea7e4b0952a514e72b342 | 2a17e6a5d78849469b2094ec11f8a51e86475128 | /DIU_HS/settings.py | 36d64d8a3fb733268c23cd3ad16ffc365d0de70c | [] | no_license | maxhasan882/DIU_HS | fbe25b5d22dded5171b7bd9c31a75c16f03a7f8a | cbffe3b3799e46afe492064ecb45b617e8ff536b | refs/heads/master | 2020-07-29T07:54:07.332060 | 2019-09-20T09:12:00 | 2019-09-20T09:12:00 | 209,721,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py |
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = '-qqcz^f-332ox2t)s(b$d&slmg^c+q@m!--w*7_%w_pckp(gdq'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ... | [
"rhmithu50@gmail.com"
] | rhmithu50@gmail.com |
396039b4b69ec0abb1fed167cff3f0a55462a939 | 1c051bdd645ba9667320b47d18938f1fa1cbc183 | /design_patterns/decorator_exception_handler.py | 01d126a9529c5985056537a7ede30cff068ad46a | [] | no_license | shuvava/python_algorithms | 095eecadd7c093bdc289f93455ca7446d039996f | 8b3b1f146b7eac5dc15b16aaf837441069cf5989 | refs/heads/master | 2023-08-18T11:33:49.607395 | 2023-07-24T15:14:01 | 2023-07-24T15:14:01 | 165,668,551 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
https://habr.com/ru/post/474278/
usage
```py
class Math(object):
@property
def exception_handlers(self):
return {
ZeroDivisionError: lambda e: 'division on zero is forbidden'
}
@ProcessException(exception_handlers)
def divide... | [
"shuvava@users.noreply.github.com"
] | shuvava@users.noreply.github.com |
8311e5d8b1c97f90f09fbff5a087b36337ab95a6 | 647e218cc4db604355f122c80f3a20b67bfef1bb | /env/bin/django-admin | 996e007ef91d4c3bfe18cb81e47f172ad5cd7911 | [] | no_license | Shraddhasaini/Django | e7ebf6aff6acf5ccf9c5dd6212451bd5d57debc4 | 42d453cfb5e3934065f6b13dadbe0e99dc3bdb6c | refs/heads/master | 2022-12-04T04:59:25.930218 | 2020-07-12T04:09:03 | 2020-07-12T04:09:03 | 208,974,215 | 3 | 1 | null | 2022-11-17T05:34:05 | 2019-09-17T06:19:08 | Python | UTF-8 | Python | false | false | 290 | #!/home/shraddha/tutorial/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"shraddhasaini99@gmail.com"
] | shraddhasaini99@gmail.com | |
e62d6ee0063d55a34d7e42e6d6a8b94c20009a8b | ad011e22a78c39f592a40287694f47feb3411d58 | /year_III/JNP_II/thresholdalert/thresholdalert/jsonschema.py | a179d0ca8ae34da40b4b0f7e47e4c76f400b0f31 | [] | no_license | filip-plata/CS_Bachelor | 4401534aa8ed0ffc1d01c8e7c78f4fd7cdddc798 | 52cc5a810457807c25e3a9967497d1ccea9fb8e3 | refs/heads/master | 2020-12-04T12:13:27.403049 | 2020-01-04T18:14:33 | 2020-01-04T18:14:33 | 231,760,456 | 1 | 0 | null | 2020-01-04T15:52:30 | 2020-01-04T12:37:16 | HTML | UTF-8 | Python | false | false | 133 | py | tick_message_schema = {
"type": "object",
"properties": {
"url": {"type": "string"}
},
"required": ["url"]
}
| [
"filip.plata@outlook.com"
] | filip.plata@outlook.com |
20fe052d943272f47ff5e5867e8567c5cb741235 | e67bb08f59c7b3858d79230c12c298236228696b | /airflow/data_analysis/extraction_data/spiders/niumba/homes.py | 3a5b9fa27d77102f097f55dbda4a2a16cc09751b | [] | no_license | jesustorresdev/vituin-project | 78a82d1b6660492d0663da8dd23cab73be7b9819 | f67f508662cf935a1d2985f0f8e1c0674ec06102 | refs/heads/master | 2023-03-18T01:25:39.129219 | 2020-07-17T14:11:45 | 2020-07-17T14:11:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,558 | py | # -*- coding: UTF-8 -*-
"""Extracción de viviendas en Niumba
"""
__authors__ = 'Sergio Díaz, Jesús Torres'
__organization__ = 'Universidad de La Laguna'
__licensed__ = 'UNLICENSED'
__contact__ = "jmtorres@ull.edu.es, sdiazgon@ull.edu.es"
# __copyright__ = f"Copyright 2017-2018 {__organization__}"
from scrapy import ... | [
"vituin@ull.edu.es"
] | vituin@ull.edu.es |
2fd5e2233fe2d48b72531aea174a8ac70305cd77 | d61e5d9a63bb81bef9473c34ab8eb13757f78159 | /simplecloud/task/utils.py | 7a281cceed9acc95c5af79ff4e4786d0097ca29b | [
"Apache-2.0"
] | permissive | lzufalcon/simplecloud | 2c3bfbb60ce9b2adaf5baec942a7fdb267ccd521 | 6cee961ece603ee772db3b62c9995569df40db6b | refs/heads/master | 2020-05-27T12:23:46.329622 | 2013-08-11T09:08:32 | 2013-08-11T09:08:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | # -*- coding: utf-8 -*-
from flask import current_app, flash
from flask.ext.login import current_user
from .models import Task
from .constants import TASK_SUCCESS, TASK_FAILED, TASK_STATUS
from ..extensions import db
def old_log_task(name, status=TASK_SUCCESS):
current_app.logger.info("%s: status=%s" % (name, TAS... | [
"sjtushi@gmail.com"
] | sjtushi@gmail.com |
c7d5a68d39e961ee4c9ec10435be6e35e0e1993f | dae73129f2de86ecd7d75c269ce4864e6e3fc5ec | /core/core.py | 8f2f4db83825f7bb22f449481b1ba0b6380a18fb | [] | no_license | Vrbikk/pyvision | 97adce7302ac73914d549f3d8c1556137d298441 | 9e30d11dddecb1d9cb40f631f36e560440473cb5 | refs/heads/master | 2021-01-15T19:59:42.944924 | 2016-09-17T21:59:37 | 2016-09-17T21:59:37 | 68,334,475 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | import logging
from loader import *
from classes import nvr
from xml.dom import minidom
from tools import mail
import requests
import xml.etree.ElementTree as ET
from core import mining
logger = logging.getLogger("core")
def scan():
logger.info("Starting scan procedure")
nvr_list = loader.load()
for i in range(0... | [
"tondavrba@gmail.com"
] | tondavrba@gmail.com |
1a97333c01f4adb419bcb769aca382312cd6fb35 | c27dc28f5a644138deaabfcb51c4fdf18f406a1b | /report2csv.py | c12d9a40f4ed8d02dbf6c0583c2cff919d8adab9 | [] | no_license | chandlee/report2csv | caef74c64e2fd9f2774d9f65d8104237e70e55df | af0fbe399bd379fbc8821a3b2ed26cb4f40cf443 | refs/heads/master | 2021-01-18T08:37:07.402730 | 2014-04-22T20:00:22 | 2014-04-22T20:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | #-------------------------------------------------------------------------------
# Name: report2csv
# Purpose:
#
# Author: krh5058
#
# Created: 22/04/2014
# Copyright: (c) krh5058 2014
# Licence: <your licence>
#-------------------------------------------------------------------------------
import... | [
"ken.r.hwang@gmail.com"
] | ken.r.hwang@gmail.com |
a2663b753ceff0ae88b8d0cd9dff97879cc47b8e | 8bef00a7980955714ec7fe7ea3c6ab152d5a3d89 | /ERP_project/dashboard_auth/urls.py | 36fabfe63c942e2661a0b4cbde2d4a242535d214 | [] | no_license | debajyoti1998/django_ERP | 3cbd558538d1946ba526b44b586d522fb992ebd8 | 3e487d00e8cc985f97dca6e35243da45979d3437 | refs/heads/main | 2023-02-12T16:25:36.039141 | 2021-01-07T15:42:36 | 2021-01-07T15:42:36 | 320,846,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.dashboard, name='dashboard'),
path('login', views.login, name='login'),
path('signup', views.signup, name='signup'),
# path('products', views.products, name='products'),
path('logout', views.logout, name='logout'),
] | [
"debajyotipanda1998@gmail.com"
] | debajyotipanda1998@gmail.com |
f7aee6e9c0dfeb0f4fcc072449878a3ad954db47 | b2f0e4b1578956875d88f64ed0f67e3067659353 | /dnazip/__init__.py | bcfaac4900e4591f76da7e6caef06c00d1d61e38 | [] | no_license | Bartvelp/dnazip | 491cb92bc1a1384194e638969d5f573f7900cc05 | 0450c5dda00bde05ae6ecea7eca1695aad6b4cec | refs/heads/master | 2022-03-16T16:51:40.426100 | 2019-10-22T13:30:46 | 2019-10-22T13:30:46 | 213,034,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | from .compress import compress
from .decompress import decompress | [
"bart.grosman@wur.nl"
] | bart.grosman@wur.nl |
0508646f006714131ef5208da636c23d6fd84ed5 | d7b38f240337bfb4ddac589f2f9d75d6e7809503 | /ReadTeInfoData.py | 34cd0380d46fa264cca0c3359d8b63ebcf4c8601 | [] | no_license | lipiny/ao | 969bb17f0ec3e57a75bc7e1f85a5ed3695786cd5 | 8b0553c977304e583703f2dc00a5b5d534fac03d | refs/heads/master | 2020-06-17T06:12:00.047831 | 2017-01-23T06:26:34 | 2017-01-23T06:26:34 | 75,035,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,622 | py | # -*- coding: utf-8 -*-
import numpy as np
import os
import io
import random
#from scipy.sparse import csr_matrix
from scipy.sparse import csc_matrix
#order = 'all' parameter:none
#order = 'continuous' parameter:begin, rescale_num
#order = 'backorder' parameter:rescale_num
#order = 'random' parameter:begin, end, r... | [
"summermelody7@hotmail.com"
] | summermelody7@hotmail.com |
d6a2692395d973722c538c781b8fecfa4e62647b | c53fcab99e84ccfe6d9f1455e7471892fbd6661e | /kubeface/commands/copy.py | 63edb408d96fc9594aa6ee83d89f860d51b393cf | [
"Apache-2.0"
] | permissive | proj4spes/kubeface | 3af558ae05f1fd89b2d93e81ce479094ef3f4b8f | 443d7432e6d2f8e4d20b6326e98fabeec7ad68b6 | refs/heads/master | 2021-04-03T02:53:10.284569 | 2017-06-22T19:40:30 | 2017-06-22T19:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | '''
Copy files, including support for google storage buckets.
'''
import sys
import argparse
import logging
from .. import storage
from ..common import configure_logging
from .. import serialization
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("source")
parser.add_argument("destination"... | [
"timodonnell@gmail.com"
] | timodonnell@gmail.com |
843dc125233ca5108cf01dcae4e55797ec9ef84a | c942047b74e1aee3af44dbe1b860c991726a3019 | /tests/test_module.py | cf1bad011afd3d62be8b9f82d5eec14f38b75b57 | [] | no_license | inmanta/ubuntu | 96fe435b91c712990afa520217a9b4a7a401401d | c39e39adc9e9bb4092c557a00f69962ca65a0bdb | refs/heads/master | 2023-08-04T21:54:06.863774 | 2023-07-31T22:49:32 | 2023-07-31T22:49:32 | 68,010,270 | 0 | 0 | null | 2023-09-08T23:49:30 | 2016-09-12T13:14:57 | Python | UTF-8 | Python | false | false | 751 | py | """
Copyright 2020 Inmanta
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | [
"noreply@github.com"
] | inmanta.noreply@github.com |
46beb75230bc354dd6d57c72f5e1dc3e5608e6cf | 91849d362c15ffc221b8017454a4a9bd8292ab79 | /clean_data.py | 5546d7b3dd0b5404e4bd050211aa4446b34980ab | [] | no_license | kasturikundu/DA-BC-Project-One | 840f7537affd829c705811e11f8a15f4be3f26ce | ca96d11648e70c35f355b59c2b636ea64d7fa4f2 | refs/heads/master | 2021-02-28T02:58:45.469508 | 2020-03-10T22:33:24 | 2020-03-10T22:33:24 | 245,656,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | print("change 2")
print("change 3") | [
"kasturi.kundu@Kasturi-Kundus-MBP13R-2.local"
] | kasturi.kundu@Kasturi-Kundus-MBP13R-2.local |
4209e5499b98a104adc9693ae8356a5bc01c7ae4 | 30cf02eb3c15da89db2e6efd3d405e92d0c8df36 | /src/pyobo/sources/gwascentral_study.py | 0f00a9432c87ccdffe5a7ed6c2fc786e107b0af4 | [
"MIT"
] | permissive | shunsunsun/pyobo | f53e5e6a4bb0b3ea135312cd8a54c905a52bd754 | 407c8f15873eb84cb5351ccc6e6ae0e8e3add22a | refs/heads/master | 2023-04-04T01:13:16.456853 | 2021-04-05T15:57:33 | 2021-04-05T15:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,162 | py | # -*- coding: utf-8 -*-
"""Converter for GWAS Central."""
import logging
import tarfile
from typing import Iterable
from xml.etree import ElementTree
from pyobo.struct import Obo, Reference, Term, has_part
from pyobo.utils.path import ensure_path
logger = logging.getLogger(__name__)
VERSION = 'jan2021'
URL = f'htt... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
48ac0153509338639aee71aa6570d6b64e685c44 | fd95b15568916e52f89fc7bedcb6d7819c251c71 | /br_test.py | 208e0771ea8c6acd4ad45d50c58a9bb5b5128de4 | [] | no_license | thedanlaabs/br_exercise | 1a9720e9b1363bc9646eaff29577ea20d0cd4e75 | f7e16e2be2439bcb4576e35da35bfa583d1b9fb0 | refs/heads/master | 2020-03-28T20:59:44.593804 | 2018-09-17T12:31:15 | 2018-09-17T12:31:15 | 149,120,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | """
Write a smoke test to verify the functionality of the B/R home page. You may use selenium web-driver to do this.
This doesn’t have to be exhaustive, but feel free to add additional ideas of what could be automated if you are
running out of time.
"""
"""
This test quickly opens the b/r homepage, checks the title, a... | [
"thedanlaabs@gmail.com"
] | thedanlaabs@gmail.com |
e9c5f30f1bc8ea3b6321a8daf805d87181566bb1 | e9ee565cfff9e6b2a1ea6f73368f4a8948274795 | /src/pybel/repository.py | 8fc43dbcd8c9585d14524792df384d3f7421bf00 | [
"MIT"
] | permissive | pybel/pybel | 7e79530b454e23ae48486a5c0e3207744b7fa139 | ed66f013a77f9cbc513892b0dad1025b8f68bb46 | refs/heads/master | 2022-08-26T18:41:25.724850 | 2022-02-11T12:22:35 | 2022-02-11T12:22:35 | 68,376,693 | 133 | 40 | MIT | 2022-02-11T12:11:24 | 2016-09-16T12:09:49 | Python | UTF-8 | Python | false | false | 18,905 | py | # -*- coding: utf-8 -*-
"""Utilities for BEL repositories."""
import json
import logging
import os
import sys
import time
from dataclasses import dataclass, field
from itertools import chain
from typing import Any, Iterable, Mapping, Optional, Set, TextIO, Tuple, Union
import click
import pandas as pd
from tqdm.auto... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
4a4aedbcae688967b5b85e60e73a727908c934a5 | 4fc016459e4c78680c61488c771eb6b7eb20d5fe | /Python-Algorithms-DataStructure/src/leet/104_MaximumDepthofBinaryTree.py | f6cf6d7dcb193f73f277665a5f23cbafd59f85b0 | [] | no_license | coremedy/Python-Algorithms-DataStructure | 7c318de68fd9694377a0a4369d8dbeb49e1e17aa | 3873502679a5def6af4be03028542f07d059d1a9 | refs/heads/master | 2021-01-25T07:34:17.714241 | 2015-11-05T10:17:40 | 2015-11-05T10:17:40 | 27,949,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | '''
Created on 2015-08-02
'''
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# @param {TreeNode} root
# @return {integer}
def maxDepth(self, root):
if r... | [
"coremedy@hotmail.com"
] | coremedy@hotmail.com |
6962525e8e33fe4066d13652ab2d270efb038cae | b9a28995df0bd5507c4a2be523606bcfce04db84 | /login/login.py | b24f5cefa2ee29d87df2d71f20e6f5bc6b2646e7 | [] | no_license | camikaze99/Messaging-Application | f12623269c707d4ad9a7127e105498def708a32d | b3c829d525166d980e24dd481680ac5fbb110298 | refs/heads/master | 2020-07-18T15:05:11.713160 | 2019-10-03T20:47:00 | 2019-10-03T20:47:00 | 206,266,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | from flask import Flask, render_template, redirect, url_for, request, session, flash
from functools import wraps
import os
loginpage = Flask(__name__)
loginpage.secret_key = os.urandom(24)
def login_required(f):
@wraps(f)
def wrap(*args,**kwargs):
if 'logged_in' in session:
return f(*args... | [
"noreply@github.com"
] | camikaze99.noreply@github.com |
7526e1a07f83c8b237e6f892e95f0b2f235bb4b0 | 8fb5319079f3d9a5524a4fa44dc9fdeb4e578a33 | /Contours/counting_coins.py | 3d0b8461f126be4dabeaf660096bdf9d2180144c | [] | no_license | KhairulIzwan/Python-OpenCV-Basics | 1dc414a07d25b2800f3a6f4eb7edf375e891b92b | 2bcf3536c9d5225188dce7c081600459a7b1ebb0 | refs/heads/main | 2023-04-26T17:37:10.838035 | 2021-05-23T03:11:36 | 2021-05-23T03:11:36 | 369,949,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | #!/usr/bin/env python
import numpy as np
import argparse
import cv2
# use argparse to handle parsing our command line arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required = True,
help = "Path to the image")
args = vars(ap.parse_args())
image = cv2.imread(args["image"])
gray = cv2.cvtC... | [
"wansnap@gmail.com"
] | wansnap@gmail.com |
f38e731a213eca630b28a42646f8fa716aa07cb0 | 06f51ad6b75c4325631a7e0017c95c0b59834283 | /Transformer/nmt1.py | 182b217258149a156b41c60b207a0dae2a49a653 | [] | no_license | drzqb/NLP | 3ce01a88e5d582391677a6c1a1b4217faeb494f9 | 69fe353aa3c4e7fcdc056bf3ac48691f4579f770 | refs/heads/master | 2021-08-01T01:53:58.204967 | 2021-07-29T17:13:58 | 2021-07-29T17:13:58 | 161,282,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,861 | py | '''
Transformer model for neural translation
'''
import numpy as np
import tensorflow as tf
import matplotlib.pylab as plt
import sys
import pickle
import os
from nltk.tokenize import WordPunctTokenizer
tf.flags.DEFINE_integer('maxword', 30, 'max length of any sentences')
tf.flags.DEFINE_integer('block', 2, 'numbe... | [
"noreply@github.com"
] | drzqb.noreply@github.com |
d04a3cc08125307c425fc4a3bbdbde890ec4fcda | b5aa43c8db450c3bcacc8f28897eab684a8032a1 | /data/games/missiles/states/level_fail.py | 1968f989a08e959a762da5f55ffd79a9dd9aa27b | [] | no_license | iminurnamez/Python_Arcade_Collab | 29a74cf2a6264969de9bae3c4a6ed23d6282e793 | 67702414ed30addd1bf46339bb458df34ed88f2a | refs/heads/master | 2021-04-15T07:32:18.573004 | 2018-05-13T14:29:19 | 2018-05-13T14:29:19 | 126,644,972 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | import pygame as pg
from data.components.state_machine import _State
from data.core.tools import scaled_mouse_pos
from data.core import constants as prog_constants
from data.components.labels import Label, ButtonGroup
from data.components.special_buttons import NeonButton
from .. import constants
class LevelFail(_S... | [
"easinerf@gmail.com"
] | easinerf@gmail.com |
8ded148e045cac0a80cad6edcc563d60c127de9e | 07996c7f93e7b200146cd314520100cf99d003bd | /raw data/40_tos_with_paragraph/code/crawlParagraph/venv/bin/pip | 78b57aad8638f50daca262ddf547c190564af8a6 | [] | no_license | tjuyanghw/data_policy_analyzer | 31ae683128ca5241fa8f0cb67e2f1132820c2d02 | 010a44ff024bd6d97b21f409f6c62f969e1fdc55 | refs/heads/master | 2022-07-02T19:23:14.141170 | 2020-05-13T16:24:11 | 2020-05-13T16:24:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | #!/Users/xiaoyue/scrapyenv/maliciousLibrarySpider/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__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.argv[... | [
"xiaoyue10131748@gmail.com"
] | xiaoyue10131748@gmail.com | |
b29a1e598f2e2fc26af73f214978b0998c04b461 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/NISS/common_shamil_v3/hr_violation_punishment/__openerp__.py | 719dad2e987819e3bcda88edba479c93f4c3fcff | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# NCTR, Nile Center for Technology Research
# Copyright (C) 2013-2014 NCTR (<http://www.nctr.sd>).
#
##############################################################################
{
'name': 'Employee Viol... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.