blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f3d1d59dddfd4fbccd0763620228091d57a6323 | eb2668b93899637f04e4c93e01063d0c8175ccde | /Irises_classification/iris_KNN_GridSearch_2_parameters.py | a8ae8beebc2f04cb715db123dca90df089536532 | [] | no_license | D-Katt/AI-Machine-Learning | aad1fe1c8f3f901cb7829919d1b69a106f0ddfab | 1868c92366dccabf8c86c559eee640645b51bb51 | refs/heads/master | 2021-12-19T21:59:04.403188 | 2021-12-07T13:07:46 | 2021-12-07T13:07:46 | 235,104,866 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | # Пример классификации объектов 'iris dataset' с использованием модели KNN.
# Инструмент GridSearchCV используется для настройки 2 гиперпараметров -
# количества "соседей" и весов.
import pandas as pd
from sklearn.datasets import load_iris
from sklearn.neighbors import KNeighborsClassifier
from sklearn.model_... | [
"noreply@github.com"
] | D-Katt.noreply@github.com |
1773433480c17f06c09757f6251e684035134844 | 75dff087b6bec301193b2c145579d38b28249d22 | /Leetcode_Algorithm/Python3/280_Wiggle_Sort.py | 2735d66046a732cbb77e5f70e0db75a365eae4b8 | [] | no_license | ChihYunPai/Data-Structure-and-Algorithms | 2d3d930d8374b62287f7cc8c3741a1d7b3d227b6 | 27a85e20605393a5eca3f8bd7d42c389612493d5 | refs/heads/master | 2023-06-07T04:04:57.186920 | 2021-07-03T03:28:29 | 2021-07-03T03:28:29 | 119,465,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | """
Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3]....
For example, given nums = [3, 5, 2, 1, 6, 4], one possible answer is [1, 6, 2, 5, 3, 4].
"""
class Solution(object):
def wiggleSort(self, nums):
"""
:type nums: List[int]
:rtype: vo... | [
"tonypaiwhite@gmail.com"
] | tonypaiwhite@gmail.com |
cf198967e5721ff051b551643c1902e36c065adf | d66818f4b951943553826a5f64413e90120e1fae | /hackerrank/Python/Validating Roman Numerals/solution.py | 4d3307da4a8b34976111672247c145435592a77a | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 169 | py | import re
regex_pattern = r'(?<=^)M{0,3}(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[VX]|V?I{0,3})(?=$)' # Do not delete 'r'.
print(str(bool(re.match(regex_pattern, input()))))
| [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
45db51e7b815934ce09e02643904239397422470 | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/sklearn/externals/joblib/disk.py | 56b6fcc6e11c358e17de25c0a80e8b29c5e5b103 | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:3d0a5346f8b6ea081d787ef43f9520d3be4604ea7341ac86e5950a80c51c19d4
size 3938
| [
"Nqk180998!"
] | Nqk180998! |
d5778be7d85fc4bd898845b67be6e04539e54fd0 | a5af73a980c08eef311cda1a27645f57dc07e0eb | /formApp/templatetags/my_extras.py | 01796028288dc2c86b336e3dfbfc5c09aab23b48 | [] | no_license | pritamSarkar123/django2020-pracTwo | c38ef08537cd48d884a6d75eef67277c38ad49d0 | 84e32249bc5c7d0ba89cd0e1070fee05e2523183 | refs/heads/master | 2022-07-08T21:02:21.124866 | 2020-05-15T04:39:23 | 2020-05-15T04:39:23 | 264,003,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from django import template
register = template.Library()
@register.filter(name='cut')
def cut(value, arg):
"""
cuts all the values same as args
"""
return value.replace(arg, '')
| [
"pritamsarkar84208220@gmail.com"
] | pritamsarkar84208220@gmail.com |
47057d9275b82dbfea7d0349e2bd1350c848700a | 25404f4cfb9be3e6f1b3fe31a1554459eb200813 | /my_redis/why_use_redis/count_realtime_users.py | fa7fa21aaed3c6586f1802c58a13f2b7ef57700f | [] | no_license | nightimero/annal_report_test | 1c6eb4b71482f870c753f5084212afd071929f57 | 7bbc76ba703527ba8f4b84fbdb94fd57b37b9887 | refs/heads/master | 2021-09-06T21:18:59.534963 | 2018-02-11T15:31:21 | 2018-02-11T15:31:21 | 103,259,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,747 | py | # -*- coding:utf-8 -*-
# todo: http://www.cnblogs.com/clover-siyecao/p/5600078.html
# todo: http://debugo.com/python-redis/
# todo: http://flask.pocoo.org/snippets/71/
# todo: https://www.google.com/search?q=python+redis+应用 以后需要搜索加上 应用 2字,更实例。
import time
from redis import Redis
from datetime import datetime
ONLINE_LA... | [
"chenxiang@aiknown.com"
] | chenxiang@aiknown.com |
45a3de2385c5bb0e77f6e3f913a5e766c392cf7a | 7b15c40c00ba2008024979d0e520a922bc2f8229 | /1st_try/144_Binary_Tree_Preorder_Traversal_1st_try.py | ac7a9b6c27275d70ef87a3427e2ff0de3860a3c6 | [] | no_license | axd8911/Leetcode | aa9875a5b55c7d5e961d9a3ea55823d06eb08a88 | 1c6cab14f4dac4f3f29f1b5ce13bb5289724fdb4 | refs/heads/master | 2022-07-07T12:59:38.251218 | 2021-06-22T06:27:05 | 2021-06-22T06:27:05 | 173,857,144 | 0 | 1 | null | 2022-06-22T01:22:30 | 2019-03-05T02:23:42 | Python | UTF-8 | Python | false | false | 1,143 | py | '''
98.6%
'''
#Iteration
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def preorderTraversal(self, root: TreeNode) -> List[int]:
output = []
node = [root]
... | [
"noreply@github.com"
] | axd8911.noreply@github.com |
e97b22133de8154a10a062cd7a9804c4b2e0ce3c | d9257c051591b63533fe53d5e6996689d3a93c50 | /ocean_lib/ocean/ocean_auth.py | d6dfa779bcfb2334876b5d6a83cd12e1f3183c70 | [
"Apache-2.0"
] | permissive | PosthumanMarket/Posthuman.py | 87e79fa826d50584b9cb2d722afa359aa6026e46 | 66538c29bfeb1c31199629b68bc10cc36caa3376 | refs/heads/master | 2023-08-26T06:35:47.866562 | 2021-06-06T18:51:34 | 2021-06-06T18:51:34 | 346,468,458 | 6 | 1 | Apache-2.0 | 2021-06-05T02:03:27 | 2021-03-10T19:27:37 | Python | UTF-8 | Python | false | false | 4,131 | py | """Ocean module."""
# Copyright 2018 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
import logging
from datetime import datetime
from ocean_lib.config_provider import ConfigProvider
from ocean_lib.web3_internal.utils import add_ethereum_prefix_and_hash_msg
from ocean_lib.web3_internal.web3_provider... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
48168d4ee1ba9c5390d4058ed3fbe9b827386801 | c6431cdf572dd10f0f4d45839e6081124b246f90 | /code/lc297.py | 1bf7215362b793eb944544a277e85f8c3b4e766e | [] | no_license | bendanwwww/myleetcode | 1ec0285ea19a213bc629e0e12fb8748146e26d3d | 427846d2ad1578135ef92fd6549235f104f68998 | refs/heads/master | 2021-09-27T19:36:40.111456 | 2021-09-24T03:11:32 | 2021-09-24T03:11:32 | 232,493,899 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,916 | py | """
序列化是将一个数据结构或者对象转换为连续的比特位的操作,进而可以将转换后的数据存储在一个文件或者内存中,同时也可以通过网络传输到另一个计算机环境,采取相反方式重构得到原数据。
请设计一个算法来实现二叉树的序列化与反序列化。这里不限定你的序列 / 反序列化算法执行逻辑,你只需要保证一个二叉树可以被序列化为一个字符串并且将这个字符串反序列化为原始的树结构。
示例:
你可以将以下二叉树:
1
/ \
2 3
/ \
4 5
序列化为 "[1,2,3,null,null,4,5]"
提示: 这与 LeetCode 目前使用的方式一致,详情请参阅 LeetCode 序列化二叉树的格式。... | [
"461806307@qq.com"
] | 461806307@qq.com |
f3767eaf83ee7afc2f14b3755b237dcea3de3fcb | bf9d6b1ce9b034df2a034ff93f526638720d359f | /accounts/migrations/0004_auto_20170808_0547.py | c1f288ce918585ca8463578033cdb7e088121853 | [] | no_license | toluwanicareer/lms | fc2b1c2c8b728826180f27f461cec5ea95adbd59 | 41de904043d951843ed748d6bf2cffc98462f99d | refs/heads/master | 2021-07-09T13:58:46.986986 | 2017-09-28T05:59:50 | 2017-09-28T05:59:50 | 105,106,347 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-08-08 04:47
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"abiodun.toluwanii@gmail.com"
] | abiodun.toluwanii@gmail.com |
1c5a6b732f8b3b71d5f22a5564bcde3bd8ae4ce6 | 348bd616afd274425ad9737964f37d0b13583310 | /docs/source/conf.py | 0f22d1d4e0dc4ed7d10c0bfe6756e0cbb8a1d009 | [] | no_license | whitews/ReFlow | d2062ab03b62c82e250599557a29e86f61e51957 | 27bd33ac3824de6234952d56cbb66b0e77f076a1 | refs/heads/master | 2020-12-25T16:58:41.540154 | 2019-05-01T16:40:53 | 2019-05-01T16:40:53 | 7,260,054 | 4 | 2 | null | 2015-05-15T13:50:24 | 2012-12-20T15:44:52 | JavaScript | UTF-8 | Python | false | false | 7,898 | py | # -*- coding: utf-8 -*-
#
# ReFlow documentation build configuration file, created by
# sphinx-quickstart on Wed Jan 23 19:50:53 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | [
"whitews@gmail.com"
] | whitews@gmail.com |
493325b68e5cee35062e2a15547d5355bb645658 | 3365e4d4fc67bbefe4e8c755af289c535437c6f4 | /.history/src/core/dialogs/swimmer_dialog_20170810151903.py | 4281b0f5b05eac3a5ee208c260614a79152a8016 | [] | no_license | kiranhegde/OncoPlotter | f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1 | b79ac6aa9c6c2ca8173bc8992ba3230aa3880636 | refs/heads/master | 2021-05-21T16:23:45.087035 | 2017-09-07T01:13:16 | 2017-09-07T01:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,751 | py | from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
import matplotlib.pyplot as plt
from PyQt5.QtWidgets import (QApplication, QDialog, QWidget, QPushButton, QVBoxLayout, QTreeWidget, QTreeWidgetItem)
... | [
"ngoyal95@terpmail.umd.edu"
] | ngoyal95@terpmail.umd.edu |
b173f68c5c45adaaeffd0c75d7eebf3022350c31 | d177addc1830153404c71fa115a5584f94a392c3 | /N1539_KthMissingPositiveNumber.py | ec2a85adf987c4c2c541611169e916af013faa56 | [] | no_license | zerghua/leetcode-python | 38a84452f60a360e991edf90c8156de03a949000 | 02726da394971ef02616a038dadc126c6ff260de | refs/heads/master | 2022-10-25T11:36:22.712564 | 2022-10-02T19:56:52 | 2022-10-02T19:56:52 | 61,502,010 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | #
# Create by Hua on 4/3/22.
#
"""
Given an array arr of positive integers sorted in a strictly increasing order, and an integer k.
Find the kth positive integer that is missing from this array.
Example 1:
Input: arr = [2,3,4,7,11], k = 5
Output: 9
Explanation: The missing positive integers are [1,5,6,8,9,10,12,1... | [
"zerghua@gmail.com"
] | zerghua@gmail.com |
6d856f492bd4e381bfaf4ac7158cb061c4a9f63b | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /Dataset/MOT/Seed/PathTrack.py | 593c78a035dd677424dfafa90338eb09be91d69b | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # https://www.trace.ethz.ch/publications/2017/pathtrack/index.html
from Dataset.Base.factory_seed import BaseSeed
from Dataset.Type.data_split import DataSplit
class PathTrack_Seed(BaseSeed):
def __init__(self, root_path: str=None, data_split: DataSplit=DataSplit.Training | DataSplit.Validation):
name = ... | [
"linliting06@live.com"
] | linliting06@live.com |
75565b4e4f3520375386cf6faaf8f0755753e4f6 | 362765585815165ca3625895d4a675600efdb518 | /orchestrator.py | 67e314397be339554e940e42475881ae9f5046a7 | [] | no_license | obulpathi/notifications | 00e7decd479685d10e815b9ada7b1f774862f0f9 | 131b784d5e40310cdfc98587e0ceaff4cca4cf03 | refs/heads/master | 2021-03-12T20:23:05.143662 | 2014-07-08T18:58:44 | 2014-07-08T18:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import os
import sys
from jinja2 import Environment, FileSystemLoader, meta
def render(sense, action):
env = Environment(loader=FileSystemLoader('/src/templates/sense'))
template_source = env.loader.get_source(env, sense+'.py')[0]
parsed_content = env.parse(template_source)
vars = meta.find_undeclared... | [
"obulpathi@gmail.com"
] | obulpathi@gmail.com |
3095707d0fd46be66dd4cba60697331cad3d4d77 | 5b57fa09b08e72ccb10de1bf341b556c00b4be42 | /Server/src/pyticas_tetres/da/incident_iris.py | 46a5025a883e4a2eedf26a6be2d1dd3019d017ac | [] | no_license | mnit-rtmc/tetres | 6f331e463f90e1608c6e47d72c232e3f6b8d5d33 | 4935d82ffe5f51284f08749b27f48491a62d9968 | refs/heads/master | 2022-10-02T02:45:13.860004 | 2021-12-08T23:14:51 | 2021-12-08T23:14:51 | 200,887,049 | 3 | 6 | null | 2022-09-16T18:07:46 | 2019-08-06T16:25:02 | Python | UTF-8 | Python | false | false | 3,784 | py | # -*- coding: utf-8 -*-
__author__ = 'Chongmyung Park (chongmyung.park@gmail.com)'
import datetime
from sqlalchemy import and_
from pyticas_tetres.da.base import DataAccessBase
from pyticas_tetres.db.iris import model, conn
from pyticas_tetres.ttypes import IrisIncidentInfo
class IrisIncidentDataAccess(object):
... | [
"beau1eth@tmsdev5.dot.state.mn.us"
] | beau1eth@tmsdev5.dot.state.mn.us |
535268bab86addff45ad4349f708df0310b4627d | d5c1f39f619e49be02238bbd9c327103ee0c6199 | /vai/plugins/commands/Time/Time.py | 4ed8dc22387aae6b3ff5563e24423513b64af622 | [] | no_license | CRY-D/vai | 520d35ef1b32de2e4058f64a73cd1b9da9b2e313 | 7e6981690209e8ccd9a6e6f64d2f2a6c7426ef3f | refs/heads/master | 2023-07-06T18:24:43.884669 | 2021-07-20T09:40:48 | 2021-07-20T09:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from vai import sdk
import time
class TimePlugin(sdk.CommandPlugin):
def name(self):
"""
To be reimplement in the plugin
"""
return "Time"
def keyword(self):
return "time"
def execute(self, command_line):
sdk.statusBar().setMessage(time.asctime(), 3000)
| [
"stefano.borini@gmail.com"
] | stefano.borini@gmail.com |
11c869ecd5e826427cc7d523ecdbb29f056a4b97 | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /tests/test_summary_ranges.py | c75bf5a290b7f94b3f204aa5c8f8d1d2a2f4a90a | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 329 | py | import pytest
from puzzles.summary_ranges import summary_ranges
@pytest.mark.parametrize(
"nums, expected",
[
([0, 1, 2, 4, 5, 7], ["0->2", "4->5", "7"]),
([0, 2, 3, 4, 6, 8, 9], ["0", "2->4", "6", "8->9"]),
],
)
def test_summary_ranges(nums, expected):
assert summary_ranges(nums) == ... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
accc82f441ea51a73813ec2cb7dbc086e252d603 | cf9494e7953c91d786e003bfbcd9f6ad93126c7f | /widgets_entry2.py | 4879d321a74e5d54581585dbc09c16bb798c330e | [] | no_license | utisz86/TkinterTutorial | 7fd318e631f6e1a858083c3c157fa68a60bcc85a | 32030494ac3035d442a432bf6b389b6ff7e1c537 | refs/heads/master | 2022-11-26T06:36:47.959218 | 2020-07-07T22:10:33 | 2020-07-07T22:10:33 | 277,841,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import tkinter as tk
window = tk.Tk()
# create a Label and an Entry widget
label = tk.Label(text="Name")
entry = tk.Entry()
# visible
label.pack()
entry.pack()
entry.insert(0,"mi?")
name = entry.get()
print(name)
window.mainloop() | [
"soma.kormanik@outlook.com"
] | soma.kormanik@outlook.com |
45aca59783a82f8aebeef1769d251a6c7c1aea2f | 1186e0f758d930960aeb5319200ca50e09ff1d35 | /build/lib/cplvm/lm.py | 5d6ea254cd9fc48a55c71f271f202ac3c7edc685 | [
"MIT"
] | permissive | ethanweinberger/cplvm | c182ee3a960f20ce2975cec5492ec5b1f434dd71 | f4bbcfc4b2e9a9cec7d01eb5f7ff3a169d6e3ff6 | refs/heads/main | 2023-06-17T15:23:15.604291 | 2021-07-07T12:04:57 | 2021-07-07T12:04:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,771 | py | import functools
import warnings
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import tensorflow.compat.v2 as tf
import tensorflow_probability as tfp
from tensorflow_probability import distributions as tfd
from tensorflow_probability import bijectors as tfb
from scipy.stats import multiv... | [
"ajones788@gmail.com"
] | ajones788@gmail.com |
53bbaf0c1927f1dd6a655edc347f5f068614c4fe | a4681043cb56a9ab45be32a62fa9700b391f087f | /14-Statistics_with_Python/Histograms/Finding_your_Best_Bin_Size.py | ee5208c7421bb08d3d728fd281c28ccc5c4509db | [] | no_license | MarceloDL-A/Python | b16b221ae4355b6323092d069bf83d1d142b9975 | c091446ae0089f03ffbdc47b3a6901f4fa2a25fb | refs/heads/main | 2023-01-01T02:29:31.591861 | 2020-10-27T19:04:11 | 2020-10-27T19:04:11 | 301,565,957 | 0 | 0 | null | 2020-10-27T19:04:12 | 2020-10-05T23:41:30 | Python | MacCentralEurope | Python | false | false | 1,976 | py | """
HISTOGRAMS
Finding your Best Bin Size
The figure below displays the graph that you created in the last exercise:
Histogram
This histogram is helpful for our store manager. The last six hours of the day are the busiest ó from 6 pm until midnight. Does this mean the manager should staff their grocery store with the ... | [
"marcelo.delmondes.lima@usp.br"
] | marcelo.delmondes.lima@usp.br |
0f0685f8137ae113e06f7428ee41f7d757b0a252 | 15bfc574ae99ea02f10c1f549136bd9951f399cd | /articles/views.py | f5c3eaddddb2e91b794b65638563c13318ad1b73 | [] | no_license | dimka1993kh/Dj_HW_5.3 | a2b9a197729eb26fd4e6d3b4872b754542bd8c07 | e891370b4cb740fd1bf44e19e27a17021a65f99c | refs/heads/master | 2023-04-15T01:54:24.943214 | 2021-05-03T18:44:02 | 2021-05-03T18:44:02 | 364,027,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from django.views.generic import ListView
from django.shortcuts import render
from .models import Article
def articles_list(request):
template_name = 'articles/news.html'
news = Article.objects.all().select_related('author', 'genre').defer('author__phone')
# news = Article.objects.all()
context = {... | [
"dimka1993kh@gmail.com"
] | dimka1993kh@gmail.com |
5f58ecef0b8e82fcead874e63f358470565ad618 | c5bfc4509bedafe822691bbb3eb927e1fdd6daef | /ProblemSet5/Coordinate.py | 0d75033313b8a1597c52bb185feea8efdae00559 | [] | no_license | BMariscal/MITx-6.00.1x | 046f9891dcdc9c5fabf0543a01434a1304a7db9d | 37951478f41f9f2e00bb2e1ec12ccbafb4ab8e78 | refs/heads/master | 2021-06-19T09:08:56.827010 | 2017-07-16T08:10:26 | 2017-07-16T08:10:26 | 82,771,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | """Your task is to define the following two methods for the Coordinate class:
1.Add an __eq__ method that returns True if coordinates refer to same point in
the plane (i.e., have the same x and y coordinate).
2.Define __repr__, a special method that returns a string that looks like a valid
Python ex... | [
"BriceidaMariscal@gmail.com"
] | BriceidaMariscal@gmail.com |
f047b7e7e7ffeddbf2f1357674c44aee7ab8d35a | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/datasetup_20210414102701.py | 67abb47540226e9e7256dd767a367bdddaf1b16d | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import pandas as pd
import cv2
import os
import glob
from pathlib import Path
def cleanTestDirs():
emotions = ['angry', 'happy', 'disgust', 'sad', 'neutral', 'surprise', 'fear']
for e in emotions:
... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
be6f744ed74a9d985bf2d457c64dc8a20447b721 | 543e4a93fd94a1ebcadb7ba9bd8b1f3afd3a12b8 | /maza/modules/creds/cameras/sentry360/ftp_default_creds.py | 36767e634607918cc0d8f56a5cba7e413c92d652 | [
"MIT"
] | permissive | ArturSpirin/maza | e3127f07b90034f08ff294cc4afcad239bb6a6c3 | 56ae6325c08bcedd22c57b9fe11b58f1b38314ca | refs/heads/master | 2020-04-10T16:24:47.245172 | 2018-12-11T07:13:15 | 2018-12-11T07:13:15 | 161,144,181 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | from maza.core.exploit import *
from maza.modules.creds.generic.ftp_default import Exploit as FTPDefault
class Exploit(FTPDefault):
__info__ = {
"name": "Sentry360 Camera Default FTP Creds",
"description": "Module performs dictionary attack against Sentry360 Camera FTP service. "
... | [
"a.spirin@hotmail.com"
] | a.spirin@hotmail.com |
2aa88315ba210081a02274e09c7e59726276c367 | e4bceb499098281253f01f93d5c4f11284febf2e | /wakeup.py | 71ff96919c980606a2c9ddd0ded586b253c131a3 | [] | no_license | Hemie143/gc_mysteries | d2a0a363767128bd599e079a1fab01822986d7e9 | d26cf036f20f13d9a6c314000b7531e2f21d4d5e | refs/heads/master | 2021-09-15T11:25:23.775079 | 2018-05-31T11:38:08 | 2018-05-31T11:38:08 | 125,210,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | import requests
import filecmp
import os
import time
import datetime
'''
curl
-A "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"
-e http://geocachewakeup.byethost7.com/?ckattempt=1
-b "__test=a7f64c693f5755629af2d2c71aa06d2a;referrer="
-o wakeup%TS%.png
-H "C... | [
"hemie143@gmail.com"
] | hemie143@gmail.com |
8cdd706344dff0e13cfd77f5b6b4f98005a35c96 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /bBExn57vLEsXgHC5m_13.py | a75afd38204a17adcd9211e34c8b31be9e80d941 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py |
def same_line(lst):
try:
return (lst[1][1] - lst[0][1]) / (lst[1][0] - lst[0][0]) == (lst[2][1] - lst[1][1]) / (lst[2][0] - lst[1][0])
except:
return lst[0][0] == 0 and lst[1][0] == 0 and lst[2][0] == 0
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e2e902fe476469280d8f67738cf676ce097be6c5 | 48290f34b95013e1d25b98a73fdd8f879c4b5b7a | /login-register.py | 06cfab88082c20f8d6c6d00093327aba2e0b705b | [] | no_license | anmolrajaroraa/core-python-july | 584a3b055c39140b8c79c1158b366f8bdc4a015d | 0fada23d8d969e548dadb6b9935aff1429f13a64 | refs/heads/master | 2022-12-15T23:17:19.786059 | 2020-09-13T17:37:51 | 2020-09-13T17:37:51 | 278,815,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | import csv
# comma separated values
print('''
1. Login
2. Register
''')
choice = int(input("Enter choice: "))
# if choice == 1:
# isLoginSuccessful = False
# usernameOrEmail = input("Enter username/email: ")
# password = input("Enter password: ")
# with open("users.csv") as fileStream:
# read... | [
"anmolarora1711@gmail.com"
] | anmolarora1711@gmail.com |
330a65e3a647bee90a48d3f323e928e718b549f5 | 1dc67a30f9af553243088668d51bc4e75e87d83d | /python/dazhewan/day19/打着玩/super_init.py | c76074a2ffcc59ce4d27de7f348f85e81ddb37c5 | [] | no_license | houyinhu/AID1812 | 00db45b3e8905bd069b31f2e7689f83bca3fa61f | 8eeb9f06ed9f4e742d480354ef0e336dfe8c2f17 | refs/heads/master | 2020-04-27T16:33:57.275890 | 2019-04-10T01:09:51 | 2019-04-10T01:09:51 | 174,486,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | #super_init.py
#此示例示意,用super函数显示调用基类__init__初始化方法
class Human:
def __init__(self,n,a):
self.name = n
self.age = a
print("Human的__init__方法被调用")
def infos(self):
print('姓名:',self.name)
print('年龄:',self.age)
class Student(Human):
def __init__(self,n,a,s=... | [
"ahu@163.com"
] | ahu@163.com |
f137634b0821b9597b08027552f1db74ad9bc5dc | 9508ccf2802becb4d19dd049b3496cf19d5f7b15 | /tensorflow_probability/python/mcmc/internal/leapfrog_integrator_test.py | 6ff15635b716756dbc78a4c7c242e3ac27e9390a | [
"Apache-2.0"
] | permissive | etarakci-hvl/probability | e89485968e4660050424944b0ffdbbf617533fe4 | 7a0ce5e5beff91051028258dfbc7bc6cf0c4998d | refs/heads/master | 2020-11-25T20:39:53.290761 | 2019-12-18T02:13:04 | 2019-12-18T02:14:04 | 228,835,497 | 1 | 0 | Apache-2.0 | 2019-12-18T12:27:56 | 2019-12-18T12:27:56 | null | UTF-8 | Python | false | false | 3,873 | py | # Copyright 2018 The TensorFlow Probability 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 applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
23df7434ab536aa03632fc11bee9095c7e4d847e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/64/usersdata/208/37039/submittedfiles/atm.py | fffc892d1e1eeab4114a3f231991c77f9faa11fd | [] | 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 | 235 | py | # -*- coding: utf-8 -*-
v=int(input('digite o valor que deseja sacar:'))
n1=v//20
n2=(v%20)//10
n3=((v%20)%10)//5
n4=(((v%20)%10)%5//2
n5=((((v%20)%10)%5)%2)//1
print('%d'%n1)
print('%d'%n2)
print('%d'%n3)
print('%d'%n4)
print('%d'%n5) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2f52aaac7e20119310401c3ba628d0ea489c2a5b | 0845b9e00b0046c409eff2b55c835c331190a2dc | /Example_code/bullets.py | 9f4598ab62b9538ba20843eecbbaf22de1f1f74d | [] | no_license | crazcalm/Learn_Pygame | edba44f4ff89add764ee3f6b2558172465f9cc26 | e93c482fb9eb392912627855b11ff2c36c22a191 | refs/heads/master | 2020-04-05T22:56:29.928626 | 2014-09-27T07:08:29 | 2014-09-27T07:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py | """
Show how to fire bullets.
Sample Python/Pygame Programs
Simpson College Computer Science
http://programarcadegames.com/
http://simpson.edu/computer-science/
Explanation video: http://youtu.be/PpdJjaiLX6A
"""
import pygame
import random
# Define some colors
BLACK = ( 0, 0, 0)
WHITE = ( 255, 2... | [
"crazcalm@gmail.com"
] | crazcalm@gmail.com |
047b96b5f23a5f677481e75436be67e963f16f40 | 0c110eb32f2eaea5c65d40bda846ddc05757ced6 | /scripts/mastersort/scripts_dir/p7542_run2L4.py | d95b7a8dccc8565de88643a95318f55cc9b4a0c0 | [] | no_license | nyspisoccog/ks_scripts | 792148a288d1a9d808e397c1d2e93deda2580ff4 | 744b5a9dfa0f958062fc66e0331613faaaee5419 | refs/heads/master | 2021-01-18T14:22:25.291331 | 2018-10-15T13:08:24 | 2018-10-15T13:08:24 | 46,814,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7542', 'run2L4']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2727/E2727_e363504/s414724_1904_2L4_s23... | [
"katherine@Katherines-MacBook-Pro.local"
] | katherine@Katherines-MacBook-Pro.local |
452bb4a716c3bd8adec7df2878cd13e873b5b57d | d75fbceb28ad14b07ae4057a8b23ec0bd3682628 | /code/chap08/ZombieMobGame.py | 1ca5ebc7b9173aa046b6f7eb320226cfc169fb42 | [] | no_license | wubinbai/pygame-book | 0707a0b36f41bc6f0b1282707e6c4f6cbed9c87a | 9de1f7516a2aec940ffa97f9686cc0520bad2deb | refs/heads/master | 2020-12-21T15:51:08.397619 | 2020-01-30T12:37:52 | 2020-01-30T12:37:52 | 236,478,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,667 | py | # Zombie Mob Game
# Chapter 8
import itertools, sys, time, random, math, pygame
from pygame.locals import *
from MyLibrary import *
def calc_velocity(direction, vel=1.0):
velocity = Point(0,0)
if direction == 0: #north
velocity.y = -vel
elif direction == 2: #east
velocity.x = v... | [
"wubinbai@yahoo.com"
] | wubinbai@yahoo.com |
1d4abd406e5975787c37fe68fdc30ace92e9a531 | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/pyexcel_20201111162515.py | eb28ae94c2e1ecfb48fe15a06c26ed612a6d0851 | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | from openpyxl import Workbook
from openpyxl.utils import get_column_letter
wb = Workbook()
dest_filename = 'empty_book.xlsx'
ws1 = wb.active
ws1.title = "range names"
for row in range(1, 40):
ws1.append(range(600))
ws2 = wb.create_sheet(title="Pi")
ws2['F5'] = 3.14
ws3 = wb.create_sheet(title="Data")
for row ... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
d14ec836cc015536b3f4fbbea3e42722d329fe10 | fc276597c51509a13bf2c622c91123eb4987d6b2 | /setup.py | d45a7fa220a59b4a2f456f2596709f0d4c052620 | [
"Apache-2.0"
] | permissive | zaquestion/requests-mv-integrations | df1150b0efb8bf4d97979e8ed3499737d98fa16d | b8f3332c1cd564ef106e725e0ee3436913fa8e19 | refs/heads/master | 2020-06-29T11:12:30.990262 | 2016-11-22T01:56:56 | 2016-11-22T01:56:56 | 74,429,832 | 0 | 0 | null | 2016-12-06T18:57:52 | 2016-11-22T03:21:53 | Python | UTF-8 | Python | false | false | 2,180 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @namespace pycountry-convert
from __future__ import with_statement
# To install the tune-mv-integration-python library, open a Terminal shell,
# then run this file by typing:
#
# python setup.py install
#
import sys
import re
from setuptools import setup
REQUIREMENT... | [
"jefft@tune.com"
] | jefft@tune.com |
81146b5b73fa9c515a476c8bf531f60c1e4b6b89 | a8289cb7273245e7ec1e6079c7f266db4d38c03f | /Anthony_Flask_Tutorials/Flask_GETAPI/run.py | 4b5fb6680b2b2838fcc12f2b4cce3d759ec957a0 | [] | no_license | palmarytech/Python_Snippet | 6acbd572d939bc9d5d765800f35a0204bc044708 | 41b4ebe15509d166c82edd23b713a1f3bf0458c5 | refs/heads/master | 2022-10-06T22:51:00.469383 | 2020-03-13T08:32:11 | 2020-03-13T08:32:11 | 272,350,189 | 1 | 0 | null | 2020-06-15T05:30:44 | 2020-06-15T05:30:44 | null | UTF-8 | Python | false | false | 617 | py | from flask import Flask, jsonify, request
app = Flask(__name__)
languages = [{"name": "Javascript"}, {"name": "Python"}, {"name": "Ruby"}]
@app.route("/", methods=["GET"])
def test():
return jsonify({"message": "API works"})
@app.route("/languages", methods=["GET"])
def returnAll():
return jsonify({"languag... | [
"leamon.lee13@gmail.com"
] | leamon.lee13@gmail.com |
74107df377adab78ed6ad99a7cdafb3fe88dfef6 | a5016c90fb13caaf8ce4e2c48dc842017f195822 | /src/0008_StringToInteger.py | c800458b3678b28a95706de4e3e5ff1d26c81c80 | [] | no_license | lixinchn/LeetCode | c21efc2d715da637374871d36d3d183ea08b9c31 | 4060d525f007c10a3a55d874f7953a0a1d98c8fd | refs/heads/master | 2020-04-03T10:27:16.068777 | 2017-01-05T02:31:28 | 2017-01-05T02:31:28 | 50,000,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | class Solution(object):
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
ret_int = 0
negative = False
MAX_INT = 2147483647
MIN_INT = 2147483648
i = 0
for i in range(len(str)):
if str[i] == ' ' or str[i] == '\t':
... | [
"lixinit@gmail.com"
] | lixinit@gmail.com |
787e223f49a9ab2eeab5f45a7afcebfb8907c122 | 26e468e4f99ffc0ccd6da43c1ae9f363ec3010e6 | /msr.py | 32c9ecdd0dc265971335ef45b9e1bfc43fb7fe41 | [] | no_license | mtoqeerpk/rshalib | d86d36216fe9a4008a710af6c0e118c34c73dab4 | 9ef631ca3690c158693445a52d59c2583f8bd67e | refs/heads/master | 2023-01-28T00:25:14.992405 | 2020-12-10T09:16:41 | 2020-12-10T09:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | """
Magnitude scaling relations
"""
from __future__ import absolute_import, division, print_function, unicode_literals
try:
## Python 2
basestring
except:
## Python 3
basestring = str
__all__ = ['get_oq_msr']
def get_oq_msr(msr_or_name):
"""
Get OpenQuake magnitude scaling relationship ... | [
"kris.vanneste@oma.be"
] | kris.vanneste@oma.be |
6ec27707f06f70599fd009e6b1515054ddf675be | 029948b3fd0e41d80d66c84d808abff4fcb24ac8 | /dnac_api_client/models/response.py | 21c419cccc99217f50f5b75be892b1baee6f818a | [] | no_license | yijxiang/dnac-api-client | 842d1da9e156820942656b8f34342d52c96d3c37 | 256d016e2df8fc1b3fdad6e28f441c6005b43b07 | refs/heads/master | 2021-09-25T21:10:09.502447 | 2018-10-25T14:39:57 | 2018-10-25T14:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | # coding: utf-8
"""
Cisco DNA Center Platform v. 1.2.x (EFT)
REST API (EFT) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Response(object):
"""NOTE: This class is auto generated by OpenAPI Gen... | [
"cunningr@cisco.com"
] | cunningr@cisco.com |
34e474332837d41d7be8e3b1b8180a049fb43e1b | 45de7d905486934629730945619f49281ad19359 | /xlsxwriter/test/comparison/test_chart_layout02.py | 22e9a8e8599e84e984544c6755d61220a43f21fa | [
"BSD-2-Clause"
] | permissive | jmcnamara/XlsxWriter | 599e1d225d698120ef931a776a9d93a6f60186ed | ab13807a1be68652ffc512ae6f5791d113b94ee1 | refs/heads/main | 2023-09-04T04:21:04.559742 | 2023-08-31T19:30:52 | 2023-08-31T19:30:52 | 7,433,211 | 3,251 | 712 | BSD-2-Clause | 2023-08-28T18:52:14 | 2013-01-04T01:07:06 | Python | UTF-8 | Python | false | false | 1,659 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2023, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
afbde06d9758d8f6cb99f0c165487171b932e4a9 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03399/s459988463.py | c485ed9fa7f3a1cbfbac8d9420a062d84304b2e3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | # 数値の取得
A = int(input())
B = int(input())
C = int(input())
D = int(input())
# 料金の最安値を出力
train = min(A,B)
bus = min(C,D)
tbsum = train + bus
print(tbsum) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f19b8be273679764a4d21955b4e6283bcba5d52c | 41e3065d6f29449251f1cc79cb340fa273ac5c61 | /0x11-python-network_1/4-hbtn_status.py | 9760dd4785428c240c719c71c1c380eb25f80b8c | [] | no_license | BD20171998/holbertonschool-higher_level_programming | 856fa3a7fcfafd3e17ebd7dd4cf9d3e5a609fd1f | bfa78d25bd4527e06cf1bf54cbc00722449d9a30 | refs/heads/master | 2021-07-16T01:58:42.911959 | 2020-11-15T07:18:19 | 2020-11-15T07:18:19 | 226,976,859 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | #!/usr/bin/python3
import requests
if __name__ == "__main__":
html = requests.get('https://intranet.hbtn.io/status')
print("Body response:")
print("{}{}".format("\t- type: ", type(html.text)))
print("{}{}".format("\t- content: ", html.text))
| [
"robert.deprizio@gmail.com"
] | robert.deprizio@gmail.com |
be67b3d78dfe581cfe41e8bf0ac8acd188a3da8e | 2ad7e88305a7d2215a816e1aa3a82ef50b685b23 | /dshop/main/utilities.py | eacf75e1b907eea2ad161776d182389a5405e407 | [] | no_license | KeksikProg/shop_chairs | 5c9fb01f47676bb118fcc8161be1854e23271550 | 4bb09c409450cf2bb024c69d51d9f046520e9349 | refs/heads/master | 2023-06-26T17:21:27.678778 | 2020-08-06T16:28:29 | 2020-08-06T16:28:29 | 281,150,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | from datetime import datetime
from os.path import splitext
from django.template.loader import render_to_string
from django.core.signing import Signer # Это для цифровой подписи
from dshop.settings import ALLOWED_HOSTS
from django.dispatch import Signal
from django.db.models.signals import post_save
def get_timestamp_p... | [
"fvvfvfvf.vfvfvfv@yandex.ru"
] | fvvfvfvf.vfvfvfv@yandex.ru |
d676188c2588e84de56202458db7503191525a1e | 715966248566909e4e8978230b37458d031418c5 | /01.jumptopython/chap03/책/126-02.py | 9e55500f0b6a62346082cb03961b4920774aabf8 | [] | no_license | itminha123/jumptopython | 1101f4e065ce2f8e0a1c68bb818b14b562fc43d1 | 8b25ae84f795eab5e7bcfa609646a2736ac2a98f | refs/heads/master | 2021-09-19T08:29:33.686384 | 2018-07-25T18:59:55 | 2018-07-25T18:59:55 | 112,169,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | coffee=10
while True:
money=int(input("돈을 넣어 주세요:"))
if money== 300:
print("커피를 줍니다.")
coffee=coffee-1
elif money>300:
print("거스름돈 %d를 주고 커피를 줍니다."%(money-300))
coffee=coffee-1
else:
print("돈을 다시 돌려주고 커피를 주지 않습니다.")
print("남은 커피의 양은 %d개 입니다."%coffee)
i... | [
"itminha123@naver.com"
] | itminha123@naver.com |
408491e006322a62395f8c6b6a009ef13abe8b3c | c566ceb33bfea62f4be98dd2f9536deaee46ac3e | /api/utils/custom_exception.py | 27388bf098fb1fd47d3af3feec46065ce054813d | [] | no_license | Saviodiow95/wallet_test | 1ad0e8f1699803ecca0ebf8c6a96b10efea980a3 | 4c2bf80332458b39197de134e914af669bbcc355 | refs/heads/main | 2023-07-04T02:25:11.321675 | 2021-08-02T12:28:40 | 2021-08-02T12:28:40 | 390,503,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from rest_framework.exceptions import APIException
class InsufficientFundsException(APIException):
"""
Exceção criada para retornar uma mensagem quando não houver saldo de um ativo para realizar o resgate
"""
status_code = 304
default_detail = 'Não é possível realizar o Resgate, Saldo Insuficiente... | [
"saviodiowflamengo@gmail.com"
] | saviodiowflamengo@gmail.com |
fd0c93ec47ca70c94d9bc8e470186eac42081257 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_counselled.py | 4ca2e9c494bd4785c5c7bc4a66f6f1113eba6619 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#calss header
class _COUNSELLED():
def __init__(self,):
self.name = "COUNSELLED"
self.definitions = counsel
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['counsel']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
52bad13f94b0f90846709fba274572fa370e643a | c085578abc19db18ee0766e1f9598d79a3acdbe1 | /18-4Sum/solution.py | c5448eab17a5a88cac8e2880a4fc80d1a1c7a04b | [
"MIT"
] | permissive | Tanych/CodeTracking | efb6245edc036d7edf85e960972c34d03b8c707a | 86f1cb98de801f58c39d9a48ce9de12df7303d20 | refs/heads/master | 2020-05-21T17:40:10.105759 | 2016-10-09T18:20:42 | 2016-10-09T18:20:42 | 60,616,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | class Solution(object):
def nsum(self,nums,start,n,target):
nlen=len(nums)
res=[]
if nums[start]*n>target or target>nums[nlen-1]*n:
return res
for i in xrange(start,nlen-n+1):
if i>start and nums[i-1]==nums[i]:
continue
if ... | [
"ychtan@email.gwu.edu"
] | ychtan@email.gwu.edu |
0e10bb119dad92159c84d65e61fbe16a80bca333 | 10f0193389a161c447061d06a87c4fae8fc31bb5 | /huobi/model/orderupdatenew.py | 51c567837fd5cfda68b30d5a52efdf3ac769b7be | [
"Apache-2.0"
] | permissive | neosun100/huobi_Python | 1d9fca2c24673076516d582c263445c17626bd8e | 70b280f751e6159b76f0cc43251896a754c1b559 | refs/heads/master | 2021-01-14T16:47:30.471992 | 2020-02-24T08:45:40 | 2020-02-24T08:45:40 | 242,685,209 | 0 | 0 | Apache-2.0 | 2020-02-24T08:38:33 | 2020-02-24T08:38:32 | null | UTF-8 | Python | false | false | 2,896 | py | from huobi.model.constant import *
class OrderUpdateNew:
"""
The detail order information.
:member
match_id: The Match id for make order.
order_id: The order id.
symbol: The symbol, like "btcusdt".
state: The order state: submitted, partial-filled, cancelling, filled, canc... | [
"devin0thinking@gmail.com"
] | devin0thinking@gmail.com |
1ad8e97dd542ba0a2310670381e40b114cef0bc8 | cd67fbaec6ba71fdd10ac8dd23e034d7df706aa3 | /bootstrap/urls.py | 1db8a20ee1f67439cdb7324c6c4e7e6e93525396 | [] | no_license | ssyctlm/feb27 | 009310d09bc866d7432576d4a867b63591009cbb | 8c666cf584e1589d06be16ba8b1266cb27646f39 | refs/heads/master | 2020-04-25T15:16:55.957159 | 2019-03-19T13:41:07 | 2019-03-19T13:41:07 | 172,873,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from django.urls import path
from .views import (
index_view,
about_view,
services_view,
contact_view
)
# app_name = 'articles'
urlpatterns = [
path('',index_view,name='home'),
path('about',about_view,name = 'about'),
path('services',services_view,name = 'services'),
path('contact',cont... | [
"none"
] | none |
720efd4d9680f6c52878542ad045aff577e5aa38 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoBTag/Configuration/test/test_cfg.py | 7fc7d9770ab2228f60b31accaf28c59b6b4e80a7 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 843 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("GeometryTest")
process.load("Configuration.StandardSequences.Reconstruction_cff")
process.load("Configuration.StandardSequences.FakeConditions_cff")
process.load("Configuration.EventContent.EventContent_cff")
process.load("Configuration.StandardSequenc... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
f9348d48ee596bc1cd89fca043043b4b52b931d2 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/impairment/profile/accumulateandburst/accumulateandburst.py | 091ec9d83b6e627d30bda819aaea8952ba46111d | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 7,559 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# 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
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
531a249844fca891544a673ad19ecb26f8145614 | 9cb43a47faef0d3f5c7a6986cb2b21a0a89b6972 | /file-operations-02/clonefootage.py | 5e3b060fc83ff787e47778f2f1c91a95909bb04b | [] | no_license | fsiddi/generic-tools | 3e0f2c7ecaf469dcb8f173e191cd7d891fff8bc6 | 432463ec468a695551d7093c4851d5248f1d7764 | refs/heads/master | 2021-03-12T19:56:53.373367 | 2013-01-13T14:17:15 | 2013-01-13T14:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | import subprocess
import os
import shutil
FOLDER_SRC = "/Users/fsiddi/Desktop/clonefootage/footage_src"
FOLDER_DST = "/Users/fsiddi/Desktop/clonefootage/footage_dst"
for dirname, dirnames, filenames in os.walk(FOLDER_SRC):
for filename in filenames:
if "linear_hd" in dirname:
filename_src = os.path.join(dirnam... | [
"francesco.siddi@gmail.com"
] | francesco.siddi@gmail.com |
a2ac5030018622f024f8ca2435442ccd4f597f21 | 8ffc07a5240be5e6bb3106b20e11aee38cb8808a | /syloga/utils/symbols.py | aaf3a96c6a1d1b704aa3654833e56b44a3d8a098 | [
"MIT"
] | permissive | xaedes/python-symbolic-logic-to-gate | 315a242d2000123bf09ea15a439dc6437ea457cb | a0dc9be9e04290008cf709fac789d224ab8c14b0 | refs/heads/main | 2023-09-02T15:37:53.750722 | 2021-11-08T12:51:51 | 2021-11-08T12:51:51 | 425,550,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py |
from syloga.ast.core import Symbol
from syloga.ast.containers import Tuple
def symbols(string):
return Tuple(*map(Symbol,string.split(" ")))
| [
"xaedes@gmail.com"
] | xaedes@gmail.com |
fc6b16aacd2c5eb9924c98c120e85092a8d4ec26 | 233b2958c853dc57dfa5d54caddbc1520dcc35c8 | /ava/cmds/pod.py | 51fe03691017ccf91af0b199173ecdc252918607 | [] | no_license | eavatar/ava.node | 6295ac6ed5059ebcb6ce58ef6e75adf1bfa24ed7 | 71e3304d038634ef13f44d245c3838d276a275e6 | refs/heads/master | 2021-01-19T06:13:01.127585 | 2015-06-03T03:10:59 | 2015-06-03T03:10:59 | 33,645,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # -*- coding: utf-8 -*-
"""
Command for managing local pod directory.
"""
from __future__ import (absolute_import, division,
print_function, unicode_literals)
import os
import shutil
import click
from ava.runtime import environ
from .cli import cli
@cli.group()
def pod():
""" Pod manage... | [
"sam@eavatar.com"
] | sam@eavatar.com |
64765314abb3f1daa11e18f0f3f06465242daf37 | ed0ead8389adb7cd81ade57f972afea7de896ffc | /haffa/Badge.py | 14d280ec8b20140e125365d399cdae00e046556e | [] | no_license | rblack42/haffa | 4e55664e1274b9ceec25fdfbc4603a03592229c0 | 526814e4024c1289cb2a79115d173772c82b5a88 | refs/heads/master | 2022-11-18T14:00:52.443335 | 2020-07-12T13:28:55 | 2020-07-12T13:28:55 | 273,238,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,706 | py | from svgelements import *
from Shapes import paths, boxes
from svgelements import Path
SVGDIR = "svg"
class Badge(object):
def __init__(self, height):
""" load shape and position data"""
print("Generating SVG file for height %d" % height)
self.paths = paths
self.boxes = boxes
... | [
"roie.black@gmail.com"
] | roie.black@gmail.com |
acb8348fecf068802da63c27c4edb3dfd4a38d12 | 95495baeb47fd40b9a7ecb372b79d3847aa7a139 | /test/test_i_ospfv3_neighbor_configuration.py | 63449143673653979dfb3179399a45495a40dc62 | [] | no_license | pt1988/fmc-api | b1d8ff110e12c13aa94d737f3fae9174578b019c | 075f229585fcf9bd9486600200ff9efea5371912 | refs/heads/main | 2023-01-07T09:22:07.685524 | 2020-10-30T03:21:24 | 2020-10-30T03:21:24 | 308,226,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | # coding: utf-8
"""
Cisco Firepower Management Center Open API Specification
**Specifies the REST URLs and methods supported in the Cisco Firepower Management Center API. Refer to the version specific [REST API Quick Start Guide](https://www.cisco.com/c/en/us/support/security/defense-center/products-programmi... | [
"pt1988@gmail.com"
] | pt1988@gmail.com |
0030fcf22dbc77c896437faa18ec33a89a2f6c56 | 29625c33dc9642d984d7cf68763d57a9de62743e | /Bot/cogs/snipe.py | cd84e9a5d14d06e388ec6620f7a1eaee678360d7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | DevRKJha/EpicBot | 7fe508d828ad6cde087213cdd1fbb3a480529905 | 33eb8b7d5ee1120865da91b9a31dc559657c318c | refs/heads/main | 2023-06-07T14:12:26.975039 | 2021-07-04T09:51:53 | 2021-07-04T09:51:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,698 | py | import discord
from discord.ext import commands
class Snipe(commands.Cog):
def __init__(self, client):
self.client = client
self.client.sniped_messages = {}
self.client.edit_sniped_messages = {}
@commands.Cog.listener()
async def on_message_delete(self, message):
if messag... | [
"hellonirlep@gmail.com"
] | hellonirlep@gmail.com |
bdc0e3f4bf90ef80c3e1cbf6474771ad81912cc5 | be1762141886e27e2e542324ffb4650546aee58d | /setup.py | 24ce1ea64205555595d2b03b54e784c4b012fea5 | [] | no_license | rgleason/pypilot | 71c2aad9a9894c84a1a9819078887ea041ff0e7b | 66eabcc63a11c96b84f58588c87b6ef710ed5826 | refs/heads/master | 2023-06-12T09:26:42.846470 | 2021-06-29T06:38:37 | 2021-06-29T06:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | #!/usr/bin/env python
#
# Copyright (C) 2017 Sean D'Epagnier
#
# This Program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
impo... | [
"seandepagnier@gmail.com"
] | seandepagnier@gmail.com |
73bc81c737025f384a2d55f27dbb83a3292b5dc9 | ba9387ad04a79e5e89204b2f292d01323c7198ad | /backend/chat_user_profile/migrations/0001_initial.py | 89ad1019538532877afb9c0211c55783492d29f1 | [] | no_license | crowdbotics-apps/message52-19836 | b9ec7d032a1548ba71153c443486a3b7c38da5f9 | fde8c1c0b0de9e939e156e29bb2cb4dce1607cad | refs/heads/master | 2022-12-04T23:48:19.002965 | 2020-08-28T02:37:50 | 2020-08-28T02:37:50 | 290,932,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | # Generated by Django 2.2.15 on 2020-08-28 02:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
016c75557647665c5a3773b8cf354ade5c11502f | 941c912f44beff33a072e086c1f561f6cdd64626 | /LeetCode/codes/22.py | 84f0db4955118accd480b9d684a7ae03a363e1dc | [] | no_license | adreena/MyStudyCorner | 3a13a743769ed144965b767f547c16df4d0fa0dd | 355c0dbd32ad201800901f1bcc110550696bc96d | refs/heads/master | 2023-02-20T07:39:32.391421 | 2021-01-25T01:46:21 | 2021-01-25T01:46:21 | 255,104,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # time catalan numbers (2n n)*1/n
# space: catalan numbers
class Solution:
def generateParenthesis(self, n: int) -> List[str]:
self.outputs = []
def helper(n_left, n_right, output):
if n_left == 0 and n_right == 0:
self.outputs.append(output)
else:
... | [
"kim.hszd@gmail.com"
] | kim.hszd@gmail.com |
c114e9e4c5fbe43f5efbc36d8ddc04c35dd32490 | af82475dc7eb45c478414372c222e7b6016359d4 | /python书籍/Python For Finance Code/Code of Python For Finance/4375OS_08_Code/4375OS_08_12_Series.py | f279f6cc3587504d87af31fda1b21a119cea0200 | [] | no_license | enfangzhong/PythonBaseCode | 8f58c8b817eb9f4b0f0a5be437a52d5b5fab3433 | 9ab4a578b2692fdbb6aeeacb310251d51f72e953 | refs/heads/master | 2020-05-17T16:26:02.598344 | 2019-04-27T20:49:40 | 2019-04-27T20:49:40 | 183,817,172 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | """
Name : 4375OS_08_12_Series.py
Book : Python for Finance
Publisher: Packt Publishing Ltd.
Author : Yuxing Yan
Date : 12/26/2013
email : yany@canisius.edu
paulyxy@hotmail.com
"""
import pandas as pd
x = pd.date_range('1/1/2013', periods=252)
data = pd.Series(randn(len(x)), ... | [
"944727327@qq.com"
] | 944727327@qq.com |
5f78d5f22130ef95b5451dbb67e83853d93a80b0 | a6566ebc69ed5e7a17e2091bdb10e7b6523eefc9 | /py/notifier/config.py | 49ae8e99337c9f08bbbe648c1ba901d19f2924d8 | [
"MIT"
] | permissive | mabotech/mabo.task | 916e71650b45a24bb3852206a3755a7fd0342e47 | 96752a5ae94349a46e3b6f9369cc0933d5e37be0 | refs/heads/master | 2020-06-05T13:05:02.768838 | 2015-11-29T08:18:10 | 2015-11-29T08:18:10 | 23,750,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py |
import toml
from singleton import Singleton
class Config(object):
__metacass__ = Singleton
def __init__(self):
conf_fn = "conf.toml"
with open(conf_fn) as conf_fh:
toml_str = conf_fh.read()
self.conf = toml.loads(toml_str)
def get_co... | [
"aidear@163.com"
] | aidear@163.com |
a08866fdeb02d1584aca3775017ebe2a118292d7 | 04252676935223f4d03eff0393ba921cb00be1e5 | /api/__init__.py | 59d9087892b08ac0854226a2346b05ea5f5dff99 | [] | no_license | kongp3/cross4u | 4083aec3e5fe9de1d351d25609cbdf996df6abe3 | 8bd4dcfe8ae8fee5a3f169428b138b1294633da0 | refs/heads/master | 2020-11-29T23:11:17.838675 | 2019-12-30T06:56:20 | 2019-12-30T06:56:20 | 230,235,707 | 0 | 0 | null | 2019-12-26T09:33:09 | 2019-12-26T09:31:52 | Python | UTF-8 | Python | false | false | 1,419 | py | # -*- coding: utf-8 -*-
import traceback
from flask import jsonify
from functools import wraps
class RestResponse(object):
""" 标准的接口Response类, 所有的api必须返回这个类的对象, 以便统一处理返回 """
def __init__(self,):
pass
def fail(self, code=500, message="Server Got A Exception"):
d = {'meta': {
'... | [
"kongp3@outlook"
] | kongp3@outlook |
f63660d7a58a51a6d96d21c74bf21e35e3469584 | 6bfda75657070e177fa620a43c917096cbd3c550 | /kubernetes/test/test_v1_job_status.py | f929582f971cf175bfa94a502d44fde0352fba4f | [
"Apache-2.0"
] | permissive | don41382/client-python | 8e7e747a62f9f4fc0402eea1a877eab1bb80ab36 | e69d4fe204b98f7d7ee3ada3996b4f5fbceae5fe | refs/heads/master | 2021-01-19T23:15:50.172933 | 2017-04-18T18:00:48 | 2017-04-18T18:00:48 | 88,943,866 | 0 | 0 | null | 2017-04-21T05:19:52 | 2017-04-21T05:19:52 | null | UTF-8 | Python | false | false | 827 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
4e2a5aac3f2d8596ac600f55307f6e113b1f375b | 71da259f71428648d4285b1b4863ec2b7641e58c | /ecom/website/filters.py | 561533e588086d70c2830bed74278b2c4dbe38da | [] | no_license | rafimuhammad01/e-com | 8a58d0ccff27516da260b41c180c703fa22e76b3 | 75d451bfc10075090d88d5a16dbd03f626ff72ef | refs/heads/master | 2023-02-18T08:48:26.144483 | 2021-01-15T08:56:54 | 2021-01-15T08:56:54 | 291,625,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import django_filters
from .models import Product
class ProductFilter(django_filters.FilterSet) :
class Meta:
model = Product
fields = {
'price' : ['lt', 'gt'],
'review__rate' : ['iexact']
}
class ProductSearch(django_filters.FilterSet) :
class Meta:
... | [
"rafi10muhammad@gmail.com"
] | rafi10muhammad@gmail.com |
6d5a2f9b2ddc3bfe891a3c7d27a364e5c4cb78eb | cdbb11473dc8d34767a5916f9f85cb68eb2ca3f2 | /sde/migrations/0036_auto_20180729_1518.py | a313a94deec723d4c8b6e96c080fc6923b8eec30 | [] | no_license | skyride/evestats | fb2a1a248952771731dcfecadab7d02b1f08cd4b | 4bd2153f65c084b478272513733dcc78f9a0ef98 | refs/heads/master | 2020-03-23T13:50:19.216870 | 2018-08-05T19:19:47 | 2018-08-05T19:19:47 | 141,640,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # Generated by Django 2.0.7 on 2018-07-29 15:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('sde', '0035_auto_20180729_1456'),
]
operations = [
migrations.RemoveField(
model_name='attribut... | [
"adam.findlay@mercurytide.co.uk"
] | adam.findlay@mercurytide.co.uk |
045c865fc678eba2750f62646d81f6c24d5e15cb | 7e93b1c33045b4c03054f42b6a2b800279b12a9b | /core/cache/backends/redis/compressors/base.py | 8d9e74deabf56d11d14abf6ab944ca71c3f9526c | [
"MIT"
] | permissive | anthill-arch/framework | 6f8036980667843f2be1414850255cf6a10e2dcd | a6c238a62ae9c3fb319d12e77f7e9047aab75e8d | refs/heads/master | 2020-05-09T06:01:31.186830 | 2019-08-23T13:52:43 | 2019-08-23T13:52:43 | 180,988,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | class BaseCompressor(object):
def __init__(self, options):
self._options = options
def compress(self, value):
raise NotImplementedError
def decompress(self, value):
raise NotImplementedError
| [
"x55aah@gmail.com"
] | x55aah@gmail.com |
f6c7e47f18fecf5204af653cae821b0dbc934729 | 3a60b8935f809e300405214a66d949f0042e7e46 | /src/map/tile.py | de575e0a0d16478ca90b3e9f8119073989688f77 | [] | no_license | stellarlib/centaurus | e71fe5c98b94e8e575d00e32f55ba39fe71799e6 | 896ae73165f3f44dfb87378ef2635d447ccbccae | refs/heads/master | 2020-08-29T00:02:47.294370 | 2020-07-06T20:06:02 | 2020-07-06T20:06:02 | 217,860,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | from random import randint
from src.map.hex_map_properties import EdgeID
class Tile(object):
n = 15
GRASS, WOODS, WATER, ROCKS, SAND, CLAY, ROAD, WALL, EXIT,\
EXIT0, EXIT1, EXIT2, EXIT3, EXIT4, EXIT5 = range(n)
OPEN = {GRASS, ROAD}
IMPASSABLE = {WALL, ROCKS, WATER}
OBSTACLE = {WALL, ROC... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
9ba384d7416217505108520e70e49bd802012c66 | 7b3009e019e081667df67c6b41328b5db632b898 | /instances/shadows_of_infinity.py | 34a98b9e889adc772c3ce344061ead7226547267 | [
"MIT"
] | permissive | frostburn/multibranch-mandelbrot | d1e2cc6bce6ab8f065b678fb2133bd3057b832d5 | 84e4887ffc90a5338ae448ced6f62fcf40bc11a1 | refs/heads/master | 2023-08-02T18:20:56.671175 | 2021-09-28T09:57:58 | 2021-09-28T09:57:58 | 287,219,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | import os
import sys
sys.path.insert(0, os.path.abspath('.'))
from pylab import *
from mandelbrot import mandelbrot, mandelbrot_generic, buddhabrot
import nonescaping
import classic
from coloring import red_lavender, black_multi_edge, rainbow, gray, sepia, subharmonics, creature, white_multi_edge
import color_gradient... | [
"lumi.pakkanen@gmail.com"
] | lumi.pakkanen@gmail.com |
5dd88af5ae5e82c13194560776281ec8a542cab7 | 93ad65a519037b2a6c9363f356a00b3e51350537 | /djR/conf.py | c80052a26cce28b6dc8ddf5b5a232ed373f0e040 | [
"MIT"
] | permissive | JheanMarllos/django-R | 6ccc9b42dbca50c803c740315fbeda136be1ad9c | 3c1f8adfa2a16ad9cf9856e4dd7cd889e7a3c229 | refs/heads/master | 2020-05-30T12:42:49.200732 | 2019-06-02T11:37:49 | 2019-06-02T11:37:49 | 189,741,022 | 0 | 0 | MIT | 2019-06-01T14:16:22 | 2019-06-01T14:16:22 | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
from django.conf import settings
RETHINKDB_HOST = getattr(settings, 'RETHINKDB_HOST', 'localhost')
RETHINKDB_PORT = getattr(settings, 'RETHINKDB_PORT', 28015)
RETHINKDB_USER = getattr(settings, 'RETHINKDB_USER', None)
RETHINKDB_PASSWORD = getattr(settings, 'RETHINKDB_PASSWORD', None)
DEFAULT... | [
"synwe@yahoo.fr"
] | synwe@yahoo.fr |
9782f416c9447c9bea34e745ec11be24c68003db | 8dbba1dc3b0a9cb3972e6fee6f41459d6fa56d78 | /ch09/ex9-10.py | b644f50c93a1b0bc17981d880b07bc7f5e71550d | [] | no_license | freebz/Foundations-for-Analytics-with-Python | 8da8308981538266e8e982ffcd080657058144ca | 736b2075e339a679905071b39201e6a575f59229 | refs/heads/master | 2020-03-15T21:53:43.100954 | 2018-05-06T18:07:59 | 2018-05-06T18:07:59 | 132,363,669 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import numpy as np
from numpy import concatenate, vstack, r_
array_concat = np.concatenate([array1, array2], axis=0)
array_concat = np.vstack((array1, array2))
array_concat = np.r_[arry1, array2]
| [
"freebz@hananet.net"
] | freebz@hananet.net |
f3409674f6082e19e2cdbb91ddc6cc1956ae779f | 9aea1b19a8681b4c6b15d628a080982fb2d98b39 | /mianJing111111/Google/Implement Queue using Stacks.py | 2e144185623f255bcbf62dc1b0ca3271002fcff4 | [] | no_license | yzl232/code_training | ee7612efc6f166742fcf48e1af715f57a624d3aa | fc165027c3d7b1fec58ebfad2f9ada275a6b8c03 | refs/heads/master | 2021-01-21T04:32:02.522931 | 2016-07-01T21:35:29 | 2016-07-01T21:35:29 | 26,989,266 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # encoding=utf-8
'''
In this method, in en-queue operation, the new element is entered at the top of stack1. In de-queue operation, if stack2 is empty then all the elements are moved to stack2 and finally top of stack2 is returned.
enQueue(q, x)
1) Push x to stack1 (assuming size of stacks is unlimited).
deQueue(... | [
"buptyuzhenglin@gmail.com"
] | buptyuzhenglin@gmail.com |
96697e0a1210d4821564472422964ebcc50a0e3b | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/zulip/2015/12/run-dev.py | 67b1614d07af8c64d03977bec514a539b207ca73 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 3,852 | py | #!/usr/bin/env python2.7
import optparse
import subprocess
import signal
import traceback
import sys
import os
from twisted.internet import reactor
from twisted.web import proxy, server, resource
# Monkey-patch twisted.web.http to avoid request.finish exceptions
# https://trac.zulip.net/ticket/1728
from twisted.... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
b4b48833b14eeae1819479c4994e066e45300d1c | d0dccd8b1c31c0256dca3472719acab561661aa9 | /events/views.py | 8f52985d56e7d9d48486c2516ac1ab2f8b850635 | [] | no_license | cjredmond/GrouperApp | 5fe97271bc275e570d2e3565c2bb5233ce34a79d | aba431c7def9173150e24686dbbb87685d25ed24 | refs/heads/master | 2020-03-19T21:43:12.609648 | 2018-06-29T16:17:10 | 2018-06-29T16:17:10 | 136,947,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from django.shortcuts import render
from django.views.generic import *
from django.views.generic.edit import *
from django.contrib.auth import get_user_model
from django.urls import reverse
from .models import Event
from .forms import EventCreateForm
from group.models import Entity
class EventCreateView(CreateView):... | [
"connor.redmond@gmail.com"
] | connor.redmond@gmail.com |
06072e8a7f63c5d0535c8e97d3d3590ec3ef64bc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_backup.py | 9eff4b2688d253805fa8fdb41115f611870c9543 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py |
#calss header
class _BACKUP():
def __init__(self,):
self.name = "BACKUP"
self.definitions = [u'(someone or something that provides) support or help, or something that you have arranged in case your main plans, equipment, etc. go wrong: ', u'a copy of information held on a computer that is stored separately from... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8fdf3accccfac6904b4799b77cccadf2bfc83862 | 42516b0348936e257d04113c2e632dc72ba58e91 | /test_env/test_suit_ui_file_explorer/test_suit_ui_file_explorer_case06.py | d446ea461909499285fd138a157ee129cd48ee84 | [] | no_license | wwlwwlqaz/Qualcomm | 2c3a225875fba955d771101f3c38ca0420d8f468 | a04b717ae437511abae1e7e9e399373c161a7b65 | refs/heads/master | 2021-01-11T19:01:06.123677 | 2017-04-05T07:57:21 | 2017-04-05T07:57:21 | 79,292,426 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,124 | py | #coding=utf-8
import settings.common as SC
from test_case_base import TestCaseBase
from logging_wrapper import log_test_case, take_screenshot
from test_case_base import TestCaseBase
from qrd_shared.case import *
import fs_wrapper
from case_utility import *
import settings.common as SC
from utility_wrapper import *
##... | [
"c_wwan@qti.qualcomm.com"
] | c_wwan@qti.qualcomm.com |
fc7d7b27a526a43db9c9b511ae29a4442acf81d4 | 0fb2e09c0629cf47045881d7eecc125f674230e5 | /pps_webapp/main/views.py | bf6d96c2869c358792ae6771da7c09201b547904 | [] | no_license | satwik77/phenopacket-scraper-webapp | ea24ad2cc2fbd988e12df1178be5ba940c8a9859 | 4382c2a4e501448e7bfd68c7826a3c4c5ab39a26 | refs/heads/master | 2021-01-17T09:33:07.188192 | 2016-08-23T17:24:20 | 2016-08-23T17:24:20 | 61,695,575 | 0 | 0 | null | 2016-06-22T06:45:50 | 2016-06-22T06:45:50 | null | UTF-8 | Python | false | false | 1,984 | py | from django.shortcuts import get_object_or_404, render_to_response, redirect
from django.shortcuts import render
from django.contrib import auth
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
import requests
import pprint
api_url= 'http://localhost:8001/api/'
@csrf_exempt
de... | [
"satwik55@gmail.com"
] | satwik55@gmail.com |
31a0c3c321b124e25d22c7584aa8ccbc4ed0ae04 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/PyQt4/QtNetwork/__init__.py | 499f277c4fd5601ad24160f4fb960e5e5fc2f65f | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | # encoding: utf-8
# module PyQt4.QtNetwork
# from /usr/lib64/python2.6/site-packages/PyQt4/QtNetwork.so
# by generator 1.136
# no doc
# imports
import PyQt4.QtCore as __PyQt4_QtCore
# no functions
# classes
from QAbstractNetworkCache import QAbstractNetworkCache
from QAbstractSocket import QAbstractSocket
from QAut... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
4d4ecc1e1bddc6ac36317f8f1c3f8dc07d77ef43 | 8e79de4b73998dd0ee1dae4881784a2b12410615 | /Bite_83/test_timezone.py | 48b2574919d1328895aa94b5cdc1f6966ae66c3b | [
"MIT"
] | permissive | alehpineda/bitesofpy | e6eb7c9413cf407a12643efece01bef5457e5dcb | bfd319a606cd0b7b9bfb85a3e8942872a2d43c48 | refs/heads/master | 2021-07-15T19:59:35.061049 | 2020-09-25T17:49:32 | 2020-09-25T17:49:32 | 209,878,791 | 0 | 0 | MIT | 2020-09-06T00:11:45 | 2019-09-20T20:49:51 | Python | UTF-8 | Python | false | false | 1,060 | py | from datetime import datetime
from timezone import what_time_lives_pybites
def test_what_time_lives_pybites_spanish_summertime():
# AUS is 8 hours ahead of ES
naive_utc_dt = datetime(2018, 4, 27, 22, 55, 0)
aus_dt, es_dt = what_time_lives_pybites(naive_utc_dt)
assert aus_dt.year == 2018
assert a... | [
"ale.hpineda@gmail.com"
] | ale.hpineda@gmail.com |
5d396f8a619172ddd3f61c1c285aedc696426ca7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03001/s613586641.py | 5dadc4795c529eb1e7ffe05c54da04dc2de9168e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | import sys
sys.setrecursionlimit(10**6)
w, h, x, y = map(int, input().split())
ans1 = w*h/2
ans2 = 0
if x == w/2 and y == h/2:
ans2 = 1
print(ans1, ans2)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2ca6dd6d9e283d56848cb08dedccbc18699489cf | f40c65a649206261d7255eb3132ea67963f13a17 | /src/wait.py | d830074cea069e62e268c87b9f7ee5afbff4750b | [
"MIT"
] | permissive | fcurella/gh-status-check | 2ec47ca212bfe471cda97d1ae0c1ee41f16420e3 | 1fdb5f7be1dcdb9f2338839ad55ad7c9188b159b | refs/heads/main | 2022-12-22T18:35:00.543508 | 2020-10-01T17:46:35 | 2020-10-01T17:46:35 | 297,731,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,852 | py | import asyncio
import logging
import os
import sys
import aiohttp
from asgiref.sync import sync_to_async
from github import Github
REPOSITORY = os.environ["GITHUB_REPOSITORY"]
SHA = os.environ["GITHUB_SHA"]
EVENT = os.environ["GITHUB_EVENT_NAME"]
EVENT_PATH = os.environ["GITHUB_EVENT_PATH"]
TOKEN = os.environ["INPUT... | [
"flavio.curella@gmail.com"
] | flavio.curella@gmail.com |
d7804ea8b7f2ecc0bd38927b3992aa58daadc478 | af9b7a00b55aac5eaed58592cf8a9d69e659a076 | /learning_log/learning_logs/forms.py | da3fa007a63b1f3e2886d67e9cb7c2ee946bc820 | [] | no_license | dujiaojingyu/Django-Practice | bc246d2283a8f994567756b4e391ea167359620b | cab5db123eb97bd424a84fae24629cc0e1be4652 | refs/heads/master | 2020-03-25T17:33:25.597885 | 2018-08-08T08:38:09 | 2018-08-08T08:38:09 | 143,983,344 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | __author__ = "Narwhale"
from django import forms
from .models import Topic
class TopicForm(forms.ModelForm):
class Meta:
model = Topic
fields= ['text']
labels = {'text':''}
| [
"34296128+dujiaojingyu@users.noreply.github.com"
] | 34296128+dujiaojingyu@users.noreply.github.com |
8af1f2b9b43cf26c7d092f16479f3b479eed5d23 | 90f52d0348aa0f82dc1f9013faeb7041c8f04cf8 | /wxPython3.0 Docs and Demos/wxPython/samples/wxPIA_book/Chapter-10/popupmenu.py | 5226849ca7224afab2ef1c1e69a3aae5158a74d5 | [] | no_license | resource-jason-org/python-wxPythonTool | 93a25ad93c768ca8b69ba783543cddf7deaf396b | fab6ec3155e6c1ae08ea30a23310006a32d08c36 | refs/heads/master | 2021-06-15T10:58:35.924543 | 2017-04-14T03:39:27 | 2017-04-14T03:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import wx
class MyFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, -1,
"Popup Menu Example")
self.panel = p = wx.Panel(self)
menu = wx.Menu()
exit = menu.Append(-1, "Exit")
self.Bind(wx.EVT_MENU, self.OnExit, exit)
... | [
"869999860@qq.com"
] | 869999860@qq.com |
0709557c1f679fa1a41d7157bfe2c991f6adadfc | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/NTWS-AP-IF-MIB.py | d9da09616db8ef8ddc0d2db88e651ab9fd3c63d5 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 5,408 | py | #
# PySNMP MIB module NTWS-AP-IF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NTWS-AP-IF-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:16:00 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
fbe0979bb9bfd1111ac0cd12f14a2aecde30e551 | 892266713e500efa5ac04e1b8de812200410c956 | /devset.py | cd8b6e2d344c504aedbc001fde9be6ebc8fc85de | [
"BSD-2-Clause"
] | permissive | martinphellwig/django-g11n | 972eb95128637ec0b21efabad6b40ba02c30356c | 94eb9da7d7027061873cd44356fdf3378cdb3820 | refs/heads/master | 2020-08-29T12:24:04.687019 | 2016-10-10T15:54:32 | 2016-10-10T15:54:32 | 218,030,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | #! /usr/bin/env python
"""
Developer Reset.
"""
import os
APP = 'django_g11n'
DIR = os.path.dirname(os.path.abspath(__file__))
def get_last_migration_file():
"Fetch the latest migration file."
_ = os.path.join(DIR, APP, 'migrations')
_ = [os.path.join(_, item) for item in os.listdir(_) if not item.starts... | [
"martin@localhost"
] | martin@localhost |
7db90b76ad8b3755f314e61da0f7b4ddf29bd341 | ce196aba0adde47ea2767eae1d7983a1ef548bb8 | /lambda单行表达式_0.py | dd751c9cc43d2361811c60ac8ee87e8da1b77fb7 | [] | no_license | xiang-daode/Python3_codes | 5d2639ffd5d65065b98d029e79b8f3608a37cf0b | 06c64f85ce2c299aef7f9311e9473e0203a05b09 | refs/heads/main | 2023-08-30T14:59:55.123128 | 2021-11-03T05:12:24 | 2021-11-03T05:12:24 | 333,632,892 | 0 | 2 | null | null | null | null | GB18030 | Python | false | false | 500 | py | #!/usr/bin/python
# -*- coding: cp936 -*-
b= [x for x in range(2,100) if not[y for y in range(2,int(x**0.5)) if not x%y]]
print("100以内的全部质数是:",b)
c= [y for y in range(2,36)]
print('2--35全部输出',c)
b= [x for x in range(2,24) if True]
print('2--23全部输出',b)
d= [x for x in range(2,24) if False]
print('无返回: ',... | [
"noreply@github.com"
] | xiang-daode.noreply@github.com |
748b1a4c649433f18bc779c59fa3d4da540bf330 | bd185738ea6a74d1e76d9fc9d8cbc59f94990842 | /onadata/libs/pagination.py | f3aaf30a3bad15075443aa054f66f133a9d41638 | [
"BSD-2-Clause"
] | permissive | aondiaye/myhelpline | c4ad9e812b3a13c6c3c8bc65028a3d3567fd6a98 | d72120ee31b6713cbaec79f299f5ee8bcb7ea429 | refs/heads/master | 2020-12-22T05:32:59.576519 | 2019-10-29T08:52:55 | 2019-10-29T08:52:55 | 236,683,448 | 1 | 0 | NOASSERTION | 2020-01-28T07:50:18 | 2020-01-28T07:50:17 | null | UTF-8 | Python | false | false | 206 | py | from rest_framework.pagination import PageNumberPagination
class StandardPageNumberPagination(PageNumberPagination):
page_size = 1000
page_size_query_param = 'page_size'
max_page_size = 10000
| [
"patrickmithamo@gmail.com"
] | patrickmithamo@gmail.com |
42533e87831e34941babde24267e52e9219a54f1 | 6fa13067f1f5f50a48f7a535184c8abfb0334012 | /old/fall2019/lecture8/sqlite_example2.py | e6d430e24ea7aacf5ae9ecffb2af1c1309060823 | [] | no_license | mkzia/eas503 | 89193b889c39fc5dbc81217e1c6c3d2581b6929d | 4d7b548cc7fa8e938842d390f3df710c23d5f8fb | refs/heads/master | 2023-09-04T06:56:49.796298 | 2023-09-01T02:05:16 | 2023-09-01T02:05:16 | 205,002,120 | 70 | 123 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | import os
import sqlite3
from sqlite3 import Error
def create_connection(db_file):
conn = None
try:
conn = sqlite3.connect(db_file)
conn.execute("PRAGMA foreign_keys = 1")
except Error as e:
print(e)
return conn
def create_table(conn, create_table_sql):
try:
c = ... | [
"mkhawarzia@gmail.com"
] | mkhawarzia@gmail.com |
fbcc54fea5b182b3e2383026e517dcaa50974606 | f20516958c39123f204e2bc442c91df7df1cc34a | /amqpstorm/exchange.py | 865a03bd8e75475a400c5bdf1d4068945cb5fa0b | [
"BSD-3-Clause"
] | permissive | bradparks/ReadableWebProxy | 3c2732cff64007afa8318b5b159616a529068322 | 81fbce3083471126942d2e2a298dba9eaf1092b1 | refs/heads/master | 2020-05-29T11:48:40.189530 | 2016-08-25T15:17:14 | 2016-08-25T15:17:14 | 66,568,996 | 0 | 0 | null | 2016-08-25T15:13:39 | 2016-08-25T15:13:39 | null | UTF-8 | Python | false | false | 5,689 | py | """AMQP-Storm Channel.Exchange."""
import logging
from pamqp.specification import Exchange as pamqp_exchange
from amqpstorm import compatibility
from amqpstorm.base import Handler
from amqpstorm.exception import AMQPInvalidArgument
LOGGER = logging.getLogger(__name__)
class Exchange(Handler):
"""AMQP Channel.... | [
"something@fake-url.com"
] | something@fake-url.com |
9372d896b7050b2587a7d13762a113a2e9af5b33 | cfa2417f07259e512a1bbface4f1f4ccd66502c6 | /test/test_Likelihood/test_LensLikelihood/test_base_lens_likelihood.py | 6ecb7556a125e7d02dc4226cdb44037390dd4b9d | [
"BSD-3-Clause"
] | permissive | jiwoncpark/hierArc | 3779439533d3c9c5fe2e687f4bdf737dfc7673e8 | 3f31c0ae7540387fe98f778035d415c3cff38756 | refs/heads/master | 2021-05-18T21:32:45.590675 | 2020-12-23T00:01:01 | 2020-12-23T00:01:01 | 251,431,028 | 0 | 0 | NOASSERTION | 2020-03-30T21:20:08 | 2020-03-30T21:20:08 | null | UTF-8 | Python | false | false | 4,045 | py | import numpy as np
import pytest
import unittest
from hierarc.Likelihood.LensLikelihood.base_lens_likelihood import LensLikelihoodBase
class TestLensLikelihood(object):
def setup(self):
np.random.seed(seed=41)
self.z_lens = 0.8
self.z_source = 3.0
num_samples = 10000
ddt_s... | [
"sibirrer@gmail.com"
] | sibirrer@gmail.com |
f8aa9cc771efab36e523016cc18be7dd92b8bf88 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /test/test_study_group_values_controller_api.py | 671f7e874460bcd47617d26a420f26a608131ef4 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import rcc
from rcc.api.study_group_values_controller_api import StudyGroupVa... | [
"thomas.yu@sagebase.org"
] | thomas.yu@sagebase.org |
197947df3f6c3b552f542cad538188861870d86f | 95c027e7302751b335b33d287e0efac7483edfc3 | /boj/BOJ_평균.py | aaf5066b2ef4cd7f9d8f10ec2c10ff292124ceba | [] | no_license | kimchaelin13/Algorithm | 01bd4bcb24c58d5d82714e60272d5af91d2d9ce8 | 53f7f3cff5a141cf705af3c9f31cdb9ae997caff | refs/heads/master | 2023-02-03T08:58:26.660299 | 2020-12-20T17:01:16 | 2020-12-20T17:01:16 | 296,996,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import sys
sys.stdin = open("input.txt", "r")
s = []
for i in range(5):
s.append(int(input()))
for j in range(len(s)):
if s[j] < 40:
s[j]=40
print(round(sum(s)/len(s))) | [
"kimchaelin13@gmail.com"
] | kimchaelin13@gmail.com |
3775521386c59304a0872b9053c2111fdfe7ca55 | da687718aa8ce62974090af63d25e057262e9dfe | /cap14-funcoes/extras/entrada.py | 8f9a269e72ba810cb2bb7d637f9fbdeaae697fbd | [] | no_license | frclasso/revisao_Python_modulo1 | 77928fa4409c97d49cc7deccdf291f44c337d290 | 1e83d0ef9657440db46a8e84b136ac5f9a7c556e | refs/heads/master | 2020-06-25T05:37:28.768343 | 2019-07-27T22:23:58 | 2019-07-27T22:23:58 | 199,217,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | def valida_inteiro(mensagem, minimo, maximo):
while True:
try:
v = int(input(mensagem))
if v >= minimo and v <= maximo:
return v
else:
print(f'Digite um valor entre {maximo} e {minimo}.')
except: print('Voce deve digitar um numero i... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
1c1842851e7ef3306eade4b5362a299e7a952d0f | 4cdf4e243891c0aa0b99dd5ee84f09a7ed6dd8c8 | /django2/bookmarks/bookmarks/settings.py | 8277bde8c3c7f242eb407532c2ef68e2c0ae896b | [
"MIT"
] | permissive | gozeon/code-collections | 464986c7765df5dca980ac5146b847416b750998 | 13f07176a6c7b6ac13586228cec4c1e2ed32cae4 | refs/heads/master | 2023-08-17T18:53:24.189958 | 2023-08-10T04:52:47 | 2023-08-10T04:52:47 | 99,432,793 | 1 | 0 | NOASSERTION | 2020-07-17T09:25:44 | 2017-08-05T15:56:53 | JavaScript | UTF-8 | Python | false | false | 3,367 | py | """
Django settings for bookmarks project.
Generated by 'django-admin startproject' using Django 2.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
... | [
"goze.qiu@gmail.com"
] | goze.qiu@gmail.com |
ef04eda75ce46249309cb75b6cbb7b0c9858fbe3 | 9f3991f4e7b405c04f2ef03ac7747b5a69d26b4b | /openpyxl/csv_to_excel.py | 8efbab73e40cd93a497cd0cec0ccd755b3044f64 | [] | no_license | zcxyun/pythonDemo | f66eb5e6e4274db2137480786eae4d6ca7e73163 | adf18cf6b58282a7f2f9203aa09d5cb60ced2e35 | refs/heads/master | 2021-07-29T19:06:52.481792 | 2021-07-27T16:10:38 | 2021-07-27T16:10:38 | 101,542,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | #!/usr/bin/env
# -*- coding: utf-8 -*-
import csv
import re
import openpyxl
import itertools
from datetime import datetime
# from openpyxl.utils import get_column_letter, column_index_from_string
money = []
payee = []
payeeNumber = []
firstPayDate = []
#with open('resource/example.csv', encoding='utf-8') as originFi... | [
"zcxyun@126.com"
] | zcxyun@126.com |
a08b6a7a99b0ab5b2de2ff6bf12388fbf6319a48 | c4bfd8ba4c4c0f21bd6a54a9131f0985a5a4fa56 | /crescent/resources/s3/bucket_policy/constants.py | 5ba83647b2baf057d3d871cc99288b7e11f8f64e | [
"Apache-2.0"
] | permissive | mpolatcan/crescent | 405936ec001002e88a8f62d73b0dc193bcd83010 | 2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67 | refs/heads/master | 2022-09-05T04:19:43.745557 | 2020-05-25T00:09:11 | 2020-05-25T00:09:11 | 244,903,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | from crescent.core.constants import get_values
class _RequiredProperties:
class BucketPolicy:
BUCKET = "Bucket"
POLICY_DOCUMENT = "PolicyDocument"
# --------------------------------------------------
class ResourceRequiredProperties:
BUCKET_POLICY = get_values(_RequiredProperties.BucketPol... | [
"mutlupolatcan@gmail.com"
] | mutlupolatcan@gmail.com |
5aadabb6bec3aec95c8f54c9736e197ced6a47ab | 0daf6763c960cd898e9bb5612b1314d7e34b8870 | /mnist_1/data.py | b1bf29e2af4aca2bbe3f70fd3c775cddef6107cf | [
"MIT"
] | permissive | evanthebouncy/nnhmm | a6ba2a1f0ed2c90a0188de8b5e162351e6668565 | acd76edaa1b3aa0c03d39f6a30e60d167359c6ad | refs/heads/master | 2021-01-12T02:27:32.814908 | 2017-04-01T05:01:24 | 2017-04-01T05:01:24 | 77,956,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,180 | py | import numpy as np
from scipy.misc import imresize
from scipy.ndimage.filters import gaussian_filter
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
X_L = 10
L = 14
N_BATCH = 50
OBS_SIZE = 20
KEEP = 0.6
# ---------------------------- helpers
d... | [
"evanthebouncy@gmail.com"
] | evanthebouncy@gmail.com |
a232db2616848042691d1e7c825e015af8882aab | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/3409403/snippet.py | 0e119325f7fbab1ea9ab0c1fde4fd52135828a49 | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 547 | py | from google.appengine.ext import db, ndb
from google.appengine.datastore import entity_pb
def db_entity_to_protobuf(e):
return db.model_to_protobuf(e).Encode()
def protobuf_to_db_entity(pb):
# precondition: model class must be imported
return db.model_from_protobuf(entity_pb.EntityProto(pb))
def ndb_enti... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
9a3f3542a14276c1794492528c5d906908c7f791 | 6b9084d234c87d7597f97ec95808e13f599bf9a1 | /evaluation/logger/pytracking.py | 6e17451f77982c297479789660635ffca35a1ee4 | [] | no_license | LitingLin/ubiquitous-happiness | 4b46234ce0cb29c4d27b00ec5a60d3eeb52c26fc | aae2d764e136ca4a36c054212b361dd7e8b22cba | refs/heads/main | 2023-07-13T19:51:32.227633 | 2021-08-03T16:02:03 | 2021-08-03T16:02:03 | 316,664,903 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | import numpy as np
import os
class PyTrackingLogger:
def __init__(self, output_path=None):
self.output_path = output_path
def log_sequence_result(self, name: str, predicted_bboxes: np.ndarray, **kwargs):
print(f'Sequence: {name}')
print(f'FPS: {kwargs["fps"]}')
predicted_bboxe... | [
"linliting06@live.com"
] | linliting06@live.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.