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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85547d25e57049d7553782dda262b1f9f0027fd3 | 09d92619e732c8bab40eb4d820a82be34ab79980 | /Config/scheduler_job.py | 85b0e824b3993c17becb94765a2ae9c9fbf8c929 | [] | no_license | Hanlen520/pythonApi | 48d0373759f41c96a12db5a566524ce006faaa11 | 4d9005604b51f243204f93098e9b01b2edfb487e | refs/heads/master | 2022-09-05T02:05:55.528195 | 2020-03-26T06:32:18 | 2020-03-26T06:32:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,233 | py | # -*- coding:utf-8 -*-
class Config(object):
# 监听出错的任务
@staticmethod
def my_listener(event):
if event.exception:
print('任务出错了!!!!!!')
else:
print('任务照常运行......')
JOBS = [
{
'id': 'job_test1', # 任务的唯一id
'func': 'Config.schedu... | [
"feixiaochun@daihoubang.com"
] | feixiaochun@daihoubang.com |
9c918a66b4de885d0b2075fd4c569f6c2254afcf | 3222a9f99dc04eae93442f27a49259f2c74320a9 | /experiments/examples/example_pbt_server.py | 7ddd0352f346adf7d875d771979cdaa19f0763f8 | [
"MIT"
] | permissive | Light-Reflection/uninas | 55a754c997b6d7a48aa6ee93fc4f1211c9a35740 | b5727308b48b2fe399cc9b5d5732f3f5fd913b35 | refs/heads/main | 2023-02-20T11:48:06.815664 | 2021-01-25T09:42:43 | 2021-01-25T09:42:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | from uninas.main import Main
"""
hosting a Population-based-training (PBT) server
"""
args = {
# the task is to profile
"cls_task": "PbtServerTask",
"{cls_task}.save_dir": "{path_tmp}/pbt_server/",
"{cls_task}.save_del_old": True,
"{cls_task}.is_test_run": False,
# this path must match the o... | [
"kevin.laube@uni-tuebingen.de"
] | kevin.laube@uni-tuebingen.de |
fcaf60161dcf1ae6e2c634a9aa156248eb167b61 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_362/ch36_2019_09_02_19_50_50_251651.py | ce6a9d77138a810724b3d3c6edbaabd139670aee | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | def eh_primo(numero):
if numero == 2:
return True
elif numero < 2:
return False
n = 3
while n < numero:
if numero % n == 0:
return False
n += 2
return True | [
"you@example.com"
] | you@example.com |
de8ebd0a8f30a3399de2f0da3a25cc913837304c | 7d406f258fb0023d8af653c8640925ea16b0d655 | /example/commands/ex_dockerfile.py | 93a8fdb56fd1c3529dc6adffd397143566a6a838 | [] | no_license | volitilov/Docker_learn | d0923b8434132203112077de2de9ef1c66972a60 | 458132701554d2b63513d5840cf0a233314b487c | refs/heads/master | 2023-04-16T02:15:06.284505 | 2023-04-01T05:39:55 | 2023-04-01T05:39:55 | 148,593,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,121 | py | # ex_dockerfile.py
# Примеры Dockerfile
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# Version: 0.0.1
FROM ubuntu:14.04
MAINTAINER volitilov <volitilov@gmail.com>
RUN apt-get update
RUN apt-get install -y nginx
RUN echo 'Hi, I am in your container' \
>/usr/share/nginx/html/inde... | [
"volitilov@gmail.com"
] | volitilov@gmail.com |
e8894ddcac3dc078d3c3452f32f30ab6e0bdf94f | 6ecff67d6103ddbd787f78c35182722b83b8a37e | /백준/Python/알고파/자료구조/1927(최소 힙).py | a1282a6c19a2cc6b40448250826b128ff14a19e0 | [] | no_license | jsungmin6/Algorithm | 9ef2339aa00921e7df756a8dff569954a008c118 | bc1ea9de9f7ba3f1aa6616ebef8719540d72e0bf | refs/heads/master | 2023-05-27T06:24:16.123307 | 2021-06-11T09:22:21 | 2021-06-11T09:22:21 | 259,299,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | import heapq
import sys
input = sys.stdin.readline
heap=[]
N=int(input())
for _ in range(N):
i = int(input())
if i==0:
if not heap:
print(0)
else:
print(heapq.heappop(heap))
else:
heapq.heappush(heap,i)
| [
"jsungmin506@gmail.com"
] | jsungmin506@gmail.com |
f4743e8522712cee5f64916ef6c4f92e542a4171 | f57f13fe778a1e275911270c09c8b0de10f631ba | /python-backend/sls_hack/model/gps_tracker.py | 1b6481dd098118cb3daa1c3447e8118a053169ce | [
"MIT"
] | permissive | MacHu-GWU/2019-nyc-serverless-conf-hackathon | 687952a4abda30fe15cfc8806a53bdc3142f7971 | bae32526043590bc025ebad97333c5a897fc32df | refs/heads/master | 2020-08-05T19:04:39.597438 | 2019-10-07T23:44:51 | 2019-10-07T23:44:51 | 212,668,537 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | # -*- coding: utf-8 -*-
import os
from pynamodb.models import Model
from pynamodb.attributes import UnicodeAttribute, NumberAttribute
from sls_hack.app_config_init import app_config
if not app_config.is_aws_lambda_runtime():
os.environ["AWS_DEFAULT_PROFILE"] = app_config.AWS_PROFILE_FOR_DEPLOY.get_value()
class... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
2f8e0e02e42890c568d99871908cc23f1f2cc686 | 3fe05954c5ea090438d3b9965fc2ca092bae51c2 | /classs.py | 69537b4c48d094f7cac12d8302556b7c8071420e | [] | no_license | imrajashish/python-prog | 35c92837d6f3e9bbe318bcc816b10a4f3091e85e | 77765899fa2a01debc304cd45d1d7cc905e86847 | refs/heads/master | 2023-02-08T00:18:34.155935 | 2021-01-03T13:45:47 | 2021-01-03T13:45:47 | 294,126,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | #Write a Python program to check if the letters of a given string can be rearranged so that two characters that are adjacent to each other are different using Heap queue algorithm.
import heapq
from collections import Counter
def reorganizeString(S):
ctr = Counter(S)
heap = [(-value, key) for key, value in ctr.... | [
"imrajashish07@gmail.com"
] | imrajashish07@gmail.com |
91dd27b159c61af03a749cbcbf3f8e1db577a50d | 2136701f48ad131084b331039d864f85988cf451 | /spider/.svn/pristine/91/91dd27b159c61af03a749cbcbf3f8e1db577a50d.svn-base | 5d194f5bb614d682b0f76222addb0a0f0c215db0 | [] | no_license | cuiyulin77/other | 9d374a47d482f1c3f9ef0f3ac4429487643b04b9 | c00cafaf7607452966fa523c4d0b04edb7f153e6 | refs/heads/master | 2020-05-18T04:24:26.095929 | 2019-04-30T06:37:53 | 2019-04-30T06:37:53 | 184,169,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,279 | # coding=utf-8
import pymysql
import requests
import re
import json
import time
import hashlib
from lxml import etree
headers={
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36'
}
# url_start = 'http://feed.mix.sina.com.cn/api/roll/get?... | [
"494658565@qq.com"
] | 494658565@qq.com | |
164d3a86254fb2261603c7267c8757daa1dc68dd | 78f3fe4a148c86ce9b80411a3433a49ccfdc02dd | /2016/02/sanders-trump-anger-20160208/graphic_config.py | 4a1c1f1444436616ff9df53b308c7316b40d61f8 | [] | no_license | nprapps/graphics-archive | 54cfc4d4d670aca4d71839d70f23a8bf645c692f | fe92cd061730496cb95c9df8fa624505c3b291f8 | refs/heads/master | 2023-03-04T11:35:36.413216 | 2023-02-26T23:26:48 | 2023-02-26T23:26:48 | 22,472,848 | 16 | 7 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/env python
import base_filters
COPY_GOOGLE_DOC_KEY = '1eZbdE-8aeUzmDCp-j0BhZgYp5Lu29Bpl8VhVgtokWnI'
USE_ASSETS = False
# Use these variables to override the default cache timeouts for this graphic
# DEFAULT_MAX_AGE = 20
# ASSETS_MAX_AGE = 300
JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
| [
"ahurt@npr.org"
] | ahurt@npr.org |
97f3cbd3cd5ec434f84ee662fd5536d92b087b0b | 0964d4873bd5f521a27d7702eb3ea9ddd47daa8e | /NextSteps/decorators.py | 53d3dbfbabd6b3e78ccf031ff2ff7ce23253cde4 | [] | no_license | ShekharTayade/NextSteps | 778d978cc4bb2b682c96b040de5d4e895af7d58c | 05e9848edab32abb9e73b75a50ab40d3839c8044 | refs/heads/master | 2022-11-28T00:08:12.042782 | 2019-09-16T03:56:01 | 2019-09-16T03:56:01 | 120,585,102 | 1 | 0 | null | 2022-11-22T02:14:37 | 2018-02-07T08:19:40 | JavaScript | UTF-8 | Python | false | false | 1,714 | py | from django.core.exceptions import PermissionDenied
from NextSteps.models import UserAccount
from django.utils import timezone
def subscription_active(function):
def wrap(request, *args, **kwargs):
valid_subs = False
accnt = UserAccount.objects.filter(User__username=request.user)
... | [
"shekhart@hotmail.com"
] | shekhart@hotmail.com |
9a3c53287d15faeadbd1869bcb0e31309ea68159 | 741333ced9ea1b326997dc031e5de27529bad04a | /glue_vispy_viewers/extern/vispy/scene/widgets/anchor.py | cf0056098a0b49041772b6a2cc685f5d9e53f913 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | jzuhone/glue-vispy-viewers | f1b7f506d3263c4b0c2f4032d4940b931b2c1ada | d940705f4ba95f8d7a9a74d37fb68c71080b490a | refs/heads/master | 2020-06-20T19:10:02.866527 | 2019-06-24T11:40:39 | 2019-06-24T11:40:39 | 197,217,964 | 0 | 0 | BSD-2-Clause | 2019-07-16T15:14:53 | 2019-07-16T15:14:52 | null | UTF-8 | Python | false | false | 874 | py | from ..node import Node
class Anchor(Node):
"""
Anchor is a node derives parts of its transform from some other
coordinate system in the scene.
The purpose is to allow children of an Anchor to draw using a position
(and optionally rotation) specified by one coordinate system, and scaling/
pro... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
396abc8b2d806cd5b922843355557ab671bc61fe | a5ad207961fddfb0bab8c7471b6f91b69865e0fc | /app/agis/modules/agiscore/db/region_academica.py | bd70dda36ebcec505782bad46379ff0486deda98 | [
"LicenseRef-scancode-public-domain"
] | permissive | yotech/agis | b2465fc340e366fbe0267c4000bb0ae728386399 | 4abbecd175337d4942ac133847ce8fc870670571 | refs/heads/master | 2020-12-15T09:10:58.076323 | 2016-05-10T14:36:54 | 2016-05-10T14:36:54 | 32,155,630 | 0 | 2 | null | 2016-05-10T14:36:54 | 2015-03-13T12:52:01 | Python | UTF-8 | Python | false | false | 2,287 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from gluon import *
from agiscore import tools
ID_PROTEGIDO = '85a03a88-4c3e-449c-9376-3f848acb96e1'
def obtener_provincias(region):
"""
Dada una región academica retornar el conjunto de las provincias que la conforman
"""
db = current.db
query = ((db.... | [
"ybenitezf@gmail.com"
] | ybenitezf@gmail.com |
37c0f21f974eaa4c9a4ea1b10a39dce29ab280cb | fd9ed0d07348a855dc4b13a3761f9459345a0998 | /udiskie/__init__.py | 2be66424326cbc417bfb21e584083054c4d7173d | [
"MIT"
] | permissive | dattebayorob/udiskie | bfd5dd67d0a766969d950ab41fb551dddfd0f64a | e853bccae14849543d7915bf616f3b1622484182 | refs/heads/master | 2020-04-26T10:59:59.527069 | 2019-02-21T14:49:20 | 2019-02-21T14:52:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | __title__ = 'udiskie'
__version__ = '1.7.7'
__summary__ = 'Removable disk automounter for udisks'
__uri__ = 'https://github.com/coldfix/udiskie'
__author__ = 'Byron Clark'
__author_email__ = 'byron@theclarkfamily.name'
__maintainer__ = 'Thomas Gläßle'
__maintainer_email__ = 't_glaessle@gmx.de'
__license__ = 'MIT'
__... | [
"t_glaessle@gmx.de"
] | t_glaessle@gmx.de |
696f05d8a25a275021c23e6876e6ad955eeadb1d | 9e28200b71d43de1e122a964e88f1b547bfde465 | /question_leetcode/565_2.py | f078802c2a3d067dff5699f16f784247dec06d1d | [] | no_license | paul0920/leetcode | 6f8a7086eefd3e9bccae83752ef41cbfee1acaea | 474886c5c43a6192db2708e664663542c2e39548 | refs/heads/master | 2023-08-19T14:10:10.494355 | 2021-09-16T20:26:50 | 2021-09-16T20:26:50 | 290,560,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | nums = [5, 4, 0, 3, 1, 6, 2]
seen = [0] * len(nums)
def finding(arr, idx, t):
print seen, idx
if seen[idx]:
print "FIND", seen, idx
return 0
else:
seen[idx] = 1
return finding(arr, arr[idx], t) + 1
curr_max = 0
for i in range(len(nums)):
curr_max = max(curr_max, f... | [
"39969716+paul0920@users.noreply.github.com"
] | 39969716+paul0920@users.noreply.github.com |
ae302873c39e12567b344b2ae338550b39e0f3d9 | 49bd1d8c96a3dbcd95780b83f35848cdb491dbe6 | /collective/js/contentflow/tests.py | 8eacce0c3a1ba202b9de4269d6f8a4f9725f5363 | [] | no_license | collective/collective.js.contentflow | f1ecd22f149b98ced0962b84e56888fb5b247e46 | 39b6caaea21d6fedbd55fd0e1b1e78c67c88fa87 | refs/heads/master | 2023-06-29T18:03:03.833738 | 2012-05-09T20:31:40 | 2012-05-09T20:31:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | import unittest
from zope.testing import doctestunit
from zope.component import testing
from Testing import ZopeTestCase as ztc
from Products.Five import zcml
from Products.Five import fiveconfigure
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import PloneSite
ptc.setupPlo... | [
"vangheem@gmail.com"
] | vangheem@gmail.com |
cc2e3c03c3e9e909fc05738ede818753908dcac5 | 80502d898ad01a6043add30def0e99b853b49bb8 | /shop/models.py | 9780e580dfc611b708d5cb8e76a09b5866a253ed | [] | no_license | sadirahman/e-comarce-online-shop | ea1a01473ea8ba54573e7d6d19129aa223270a21 | e2146e61cce44535e05deb24e609116dd690dec0 | refs/heads/master | 2020-04-20T21:48:39.081071 | 2019-02-04T19:35:53 | 2019-02-04T19:35:53 | 169,119,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | from django.db import models
from django.urls import reverse
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=200, db_index=True)
slug = models.SlugField(max_length=200,db_index=True,unique=True)
class Meta:
ordering = ('name',)
verbose_name = 'c... | [
"42184120+sadirahman@users.noreply.github.com"
] | 42184120+sadirahman@users.noreply.github.com |
b369de53e8ac6c72091f36545e798024751b8705 | d8d3f61fa0536e6a2b7ca6731e0af1ddcee76091 | /examples/create_shipment.py | c6996ab34cc334cb83080693f981f55efdfe1473 | [
"BSD-3-Clause"
] | permissive | oliverseal/python-fedex | a575bc3d1823dc46b0a71f5235ad862e70beaa8c | 0113df390c6f03ee20ebc3a5ab8c8de2149b8afe | refs/heads/master | 2021-01-18T07:18:47.994971 | 2014-08-03T16:47:14 | 2014-08-03T16:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,164 | py | #!/usr/bin/env python
"""
This example shows how to create shipments. The variables populated below
represents the minimum required values. You will need to fill all of these, or
risk seeing a SchemaValidationError exception thrown.
Near the bottom of the module, you'll see some different ways to handle the
label data... | [
"gtaylor@duointeractive.com"
] | gtaylor@duointeractive.com |
89bf9d182dc140beaa3fb68cf8f5cd05300f30dc | 694d57c3e512ce916269411b51adef23532420cd | /python/chapter-2/lab5-rlist-5.py | d184d409bf1eeb280b0978c1c385ace8fd99a8f4 | [] | no_license | clovery410/mycode | 5541c3a99962d7949832a0859f18819f118edfba | e12025e754547d18d5bb50a9dbe5e725fd03fd9c | refs/heads/master | 2021-05-16T02:46:47.996748 | 2017-05-10T23:43:50 | 2017-05-10T23:43:50 | 39,235,141 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | empty_rlist = None
def rlist(first, rest=empty_rlist):
return (first, rest)
def first(rlist):
return rlist[0]
def rest(rlist):
return rlist[1]
def tup_to_rlist(tup):
"""Converts a tuple to an rlist.
>>> tup = (1, 2, 3, 4)
>>> r = tup_to_rlist(tup)
>>> first(r)
1
>>> first(rest(r... | [
"admin@admins-MacBook-Air.local"
] | admin@admins-MacBook-Air.local |
46b9a86a213bb7944e140b7904e3c10f29762d25 | ed5e4b4c769e852afe1d50edf6ec684376113a8e | /MSD/plot_msd_per_param.py | 67d93b03348a9056e0584c532bc838c02e74fd78 | [] | no_license | BingoNate/Cells_Other | 488d2bfbc3abbb074f8a7662894fa6dc84b0f2fa | 7b14003a68191fce66407f433844b7989cb37d7c | refs/heads/master | 2021-06-18T12:45:49.055166 | 2017-07-03T15:05:24 | 2017-07-03T15:05:24 | 104,757,557 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,430 | py |
""" Plot mean square displacement per parameter"""
### example command line arguments:
### -e=1.0 -f=0.5
### -fl=/local/duman/SIMULATIONS/Cells_in_LAMMPS/density_0.8/
### -sb=/usr/users/iff_th2/duman/Cells_in_LAMMPS/PLOTS/
### -sf=MSD
######################################################... | [
"ozer.duman@gmail.com"
] | ozer.duman@gmail.com |
c14ef5e808590c9d5b2412dd6e91dede0648d1c0 | 1a1a36fb99cf25d2522d5dadc9b5d816bb81ffff | /objects/tags/MainCanvas.py | 5297f3d0445f59ad45ecfefed4c16c54a284f802 | [] | no_license | arkimede/pysynfig | cae74eeca153f7c412cf6642a2092a9ee6948692 | 3bc46a34c275d44a69521afd63af2884e2187c51 | refs/heads/master | 2021-05-04T11:03:03.412344 | 2018-07-29T14:00:12 | 2018-07-29T14:00:12 | 52,307,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | class MainCanvas:
def __init__(self):
self.id = None
self.guid = None
self.version = None
self.width = None
self.height = None
self.xres = None
self.yres = None
self.fps = None
self.start_time = None
self.begin_time = None
self... | [
"a.caristia@gmail.com"
] | a.caristia@gmail.com |
333d962ced6bbf3ab54abfad56e7cfc14852626d | f49c5411409d0fc3b7246e8413622025f3c90e33 | /stats_extractor.py | 1aba01da53c4ec829e4ab3ced3f3d42f6a25fa37 | [
"MIT"
] | permissive | diegojromerolopez/pystats-trello | 2f8573c4de0a7dc730dcc2c1ed5d7e716816eb04 | 958e33a689573335d36c73dddd4198694feaf203 | refs/heads/master | 2021-01-17T13:00:04.060494 | 2016-06-18T14:25:08 | 2016-06-18T14:25:08 | 56,274,873 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | # -*- coding: utf-8 -*-
import os
import sys
import re
import settings
from auth.connector import TrelloConnector
from stats import summary
from stats.trelloboardconfiguration import TrelloBoardConfiguration
def extract_stats(configuration_file_path):
"""
Extract stats for a given configuration file that de... | [
"diegojromerolopez@gmail.com"
] | diegojromerolopez@gmail.com |
8699b8959f04374dfd7751d73b52cb04f5100538 | 0817832c530124253747be6787d4d5aba7c1e05b | /shop/recommender.py | 05a3058c005999b8b8a23ef3956ffa3786a9736f | [] | no_license | juliofelipe/myshop | 76e058b780e2399c52e368e727d45ee455f3f790 | 7b495dab30e5755f73dcb92f5294bf1eec405844 | refs/heads/master | 2022-12-05T00:12:59.552063 | 2020-08-30T20:13:26 | 2020-08-30T20:13:26 | 291,237,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | import redis
from django.conf import settings
from .models import Product
# connect to redis
r = redis.StrictRedis(host=settings.REDIS_HOST,
port=settings.REDIS_PORT,
db=settings.REDIS_DB)
class Recommender(object):
def get_product_key(self, id):
return f'prod... | [
"julio.felipe@casaldev.com.br"
] | julio.felipe@casaldev.com.br |
a219b0c57a761e795040e5020509aedc2d26b6ef | cf3fb51ba514342d68f665a6f5f99ba6797d1a6e | /python/helpers/typeshed/stubs/redis/redis/backoff.pyi | d10aaabb39871cb586b606ef335ef16586d69ab1 | [
"Apache-2.0",
"MIT"
] | permissive | jinsihou19/intellij-community | dd3c24ea088c47fd103878ae607c82d0937528a5 | 55cb0396e166a3f4e114a59e9357d2e390a6dd96 | refs/heads/master | 2022-12-21T01:10:57.801114 | 2022-12-14T13:59:08 | 2022-12-14T15:07:45 | 192,350,885 | 0 | 0 | Apache-2.0 | 2022-06-13T08:14:31 | 2019-06-17T13:19:01 | null | UTF-8 | Python | false | false | 892 | pyi | from abc import ABC, abstractmethod
class AbstractBackoff(ABC):
def reset(self): ...
@abstractmethod
def compute(self, failures): ...
class ConstantBackoff(AbstractBackoff):
def __init__(self, backoff) -> None: ...
def compute(self, failures): ...
class NoBackoff(ConstantBackoff):
def __init_... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
3707cc1a94ce7a50b287284d19767745887ee2a0 | 6efdee46507c2f2d05e4986c963f189a1e754e9b | /ex53.py | 3506a5f3028d4d33467621b2875b753528e6274b | [] | no_license | SachinPitale/Python | b0d2d08f6f12bdce8a30ba9e9c370d3415721168 | 6889527b4b04e394feedcd6516e0298cccb6c5ee | refs/heads/master | 2020-07-26T05:59:46.325528 | 2019-09-15T07:26:24 | 2019-09-15T07:26:24 | 208,557,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #dictonay
a = {'a':1,'b':2,'c':3}
print a
#add or change the item from dict
a['d'] = 4
print a
a['d'] = 12
print a
#remove item of dict
del a['c']
print a
#get the len of dict
lenth = len(a)
print lenth
#check membership in dict
if "b" in a:
print "b is present"
if "c" not in a:
print "c is not pre... | [
"sachinpitale22@gmail.com"
] | sachinpitale22@gmail.com |
880e68bf1396a56192d033653e0af762d2f20604 | 8355bc4e1ad1a863124c1d80d4a00b28ef587b48 | /tests/test_diffeq/test_perturbed/test_scipy_wrapper/test_wrapped_scipy_cases.py | 5050dbc9587636aa85bb6a54fa463127b929f261 | [
"MIT"
] | permissive | probabilistic-numerics/probnum | af62f04253a08da71174e5c1b7d733deb1914eee | af410278783069542610d16b10ba12d2940a05a6 | refs/heads/main | 2023-08-31T05:12:08.877238 | 2023-06-19T20:34:15 | 2023-06-19T20:34:15 | 218,856,084 | 384 | 56 | MIT | 2023-09-10T18:52:24 | 2019-10-31T20:29:11 | Python | UTF-8 | Python | false | false | 1,278 | py | import numpy as np
import pytest
from scipy.integrate._ivp import rk
from probnum import diffeq
import probnum.problems.zoo.diffeq as diffeq_zoo
_ADAPTIVE_STEPS = diffeq.stepsize.AdaptiveSteps(atol=1e-4, rtol=1e-4, firststep=0.1)
_CONSTANT_STEPS = diffeq.stepsize.ConstantSteps(0.1)
def setup_solver(y0, ode, steprul... | [
"noreply@github.com"
] | probabilistic-numerics.noreply@github.com |
8f6b874e1b91590591f2f525c644160ca000db6f | 7b315bbe8c85ce05e6c51112e985ae1b392d83f5 | /Datetime/__init__.py | 2ca49c898c4b5219819fd0e88b3b57a62514f8ff | [] | no_license | Cica013/aprendendoPython | e9f993b1b144e294a338a53f2bc36673d3cd00a6 | 9c964f2322e3d52b39a811aceec64b169bab4e10 | refs/heads/main | 2023-08-10T20:12:47.640239 | 2021-10-06T21:01:19 | 2021-10-06T21:01:19 | 385,755,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # https://docs.python.org/3.0/library/datetime.html
from datetime import datetime, timedelta
from locale import setlocale, LC_ALL
from calendar import mdays
# strptime(str, fmt)
# .strftime(fmt)
# timestamp()
# from .timestamp()
# data = datetime.fromtimestamp(1631569996.0)
# print(data.strftime('%d/%m/%Y %H:%M:%S'))
... | [
"61808853+Cica013@users.noreply.github.com"
] | 61808853+Cica013@users.noreply.github.com |
1be5c3da76dc408fdcf7744e363400908b1bd019 | 967da2175b4b935c5d3e2efc4cbf5fda5ae9a8db | /migrations/versions/2d5fd3e4cac8_remove_passwords.py | e3ce50578b6f10fa26ed8dbcaf228003a0695920 | [] | no_license | danjac/photoapp | d20bb09c7da9e98882c991eb8844953a228ba3f3 | 32827b97d3978963d1e8a55f767c0848391015fa | refs/heads/master | 2020-12-24T14:53:01.380262 | 2012-10-09T22:48:50 | 2012-10-09T22:48:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | """Remove passwords
Revision ID: 2d5fd3e4cac8
Revises: 44a70fa979b
Create Date: 2012-09-20 12:03:33.030164
"""
# revision identifiers, used by Alembic.
revision = '2d5fd3e4cac8'
down_revision = '44a70fa979b'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic -... | [
"danjac354@gmail.com"
] | danjac354@gmail.com |
4fe8382357bcc0fe11ca62235950cb482c6b34e3 | b306aab9dcea2dd83dda700bc9f7b9f1a32cff3a | /CAIL2020/hyfl/data/test.py | 9c6ee7cf3b236c3c6bc876bf7e5039f7667bed14 | [
"Apache-2.0"
] | permissive | Tulpen/CAIL | d6ca9981c7ea2603ae61675ba330a9614cd9398d | c4cfa98ab4ecedbce34a7a5a186830486047540c | refs/heads/master | 2023-04-23T20:07:56.774530 | 2021-04-16T13:18:36 | 2021-04-16T13:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | import re
import pandas
pattern = re.compile('[A-Z]')
def match(line):
if pattern.match(line):
return True
return False
df = pandas.read_csv('category.csv')
df['supreme'] = df['id'].map(match)
df = df[df['supreme']==True]
df.to_csv("supreme.csv",index=False)
print('FIN')
| [
"bangtech@sina.com"
] | bangtech@sina.com |
7a80a74619d46435a85b2aa58750bb0fa1e1d03a | cfcd117378664e4bea080b3c1011a25a575b3d51 | /hawc/apps/vocab/migrations/0006_require_uid.py | 432ea0f717801b3048e734133d1f2bb3f8de501e | [
"MIT"
] | permissive | shapiromatron/hawc | 9d3a625da54d336334da4576bd5dac6915c18d4f | 51177c6fb9354cd028f7099fc10d83b1051fd50d | refs/heads/main | 2023-08-03T13:04:23.836537 | 2023-08-01T18:39:16 | 2023-08-01T18:39:16 | 25,273,569 | 25 | 15 | NOASSERTION | 2023-09-14T17:03:48 | 2014-10-15T21:06:33 | Python | UTF-8 | Python | false | false | 709 | py | from django.db import migrations, models
def set_fake_default(apps, schema_editor):
Term = apps.get_model("vocab", "Term")
terms = []
for term in Term.objects.filter(uid__isnull=True):
term.uid = term.id
terms.append(term)
if terms:
Term.objects.bulk_update(terms, ["uid"])
cl... | [
"noreply@github.com"
] | shapiromatron.noreply@github.com |
ae1723c5dc94b0aeb9ed3a7199dd6fa04fc61090 | 5ae7254459c64c296a588d202481b84ce5cd9abd | /mazepuzzlebox/createbox/views.py | 4e15c1ae20f8e2c99c29482d9d32819a4a2d42e4 | [] | no_license | matttest/mazepuzzlebox | 55eaa9936a0f6b51d1d814830b81cfad2b06a000 | b333b28651af2cb8ddb6975afeeddff1f1dcd292 | refs/heads/master | 2020-12-30T18:38:06.027921 | 2012-02-06T16:23:41 | 2012-02-06T16:23:41 | 3,368,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,708 | py | # Create your views here.
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.http import HttpResponse, HttpResponseRedirect, Http404
from django.core.urlresolvers import reverse
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.conf ... | [
"matt@mattvenn.net"
] | matt@mattvenn.net |
b26ee1eb2e73550cc2da31016276e955b9997b98 | 7f53f509222f7e4b1ca8137bb31cf2edc5f64e80 | /splitrang.py | 72ec96800fca9d9ae5ab3f5ee1eac71a1e5c2fc0 | [] | no_license | wahid999/Pythonforbegainer | f61c7567c37b3d4103b5550a6975f78c960763f8 | 794fd9471ff95eac52ae42d8548526c09df23bbd | refs/heads/main | 2023-07-11T22:31:31.435440 | 2021-08-16T17:18:35 | 2021-08-16T17:18:35 | 399,344,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | import os
os.system('clear')
#************** Strings ****************
#------------->CANCATINATINATION-------->
name = 'Wahid Hussain'
greetings = 'hello, My name is ' + name
print (greetings.split(" ")[4:])
| [
"wahidhussainturi@gmail.com"
] | wahidhussainturi@gmail.com |
3dd25c9356ea6b5d6e2e17b77388b6d1f08da9bd | 27f6c33ad3f0240e64aad809d4bd57af3ecda498 | /BeautifulSoupEx/File/path_ex03.py | 7d6d1fa559712e0372a16c8da31cb19c1bb712b4 | [] | no_license | bigdata202005/PythonProject | 26ce3c0ed3e47cd727606455e6ca95561907dbe4 | 4e0377fdb86db294483fb7a347429bf299e44ce5 | refs/heads/main | 2023-01-08T01:48:22.271143 | 2020-11-06T05:15:22 | 2020-11-06T05:15:22 | 310,498,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import os
# os 내의 디렉토리 정보를 조회하거나 디렉토리 내의 정보 조회
print(os.getcwd())
print(os.path.curdir)
print(os.path.dirname(os.getcwd()))
# 디렉토리
os.chdir('..')
print(os.getcwd())
#os.mkdir('./test')
os.chdir('./test')
print(os.getcwd())
os.chdir('..')
print(os.getcwd())
| [
"bigdata202005@gmail.com"
] | bigdata202005@gmail.com |
61954adf63059a57442495631e62a0ede1f12e1e | a650167bd87d6bf27cfc690b509ebb6e28452d1a | /coolisf/dao/__init__.py | 210f2ea5b840e354788db6b7cb648df42890090a | [
"MIT"
] | permissive | coderboy24x7/intsem.fx | 02c7fc57043d8d982b5ffaac7f5324a7c7c40178 | 4a59ea40e05d686ae5d077eff22ff1248d61c1e8 | refs/heads/main | 2023-04-27T07:11:57.424432 | 2021-05-13T16:41:30 | 2021-05-13T16:41:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # -*- coding: utf-8 -*-
''' CoolISF Data Access Package
'''
# This code is a part of coolisf library: https://github.com/letuananh/intsem.fx
# :copyright: (c) 2014 Le Tuan Anh <tuananh.ke@gmail.com>
# :license: MIT, see LICENSE for more details.
from .corpus import CorpusDAOSQLite
from .tsdb import read_tsdb
__all_... | [
"tuananh.ke@gmail.com"
] | tuananh.ke@gmail.com |
d6b14e3dcb5cea233f2d15b5802934c0b7a58794 | 382f4acfd565be4aedb07c694e8daa489ff3e70a | /eveutil2/bin/coalitions.py | 2c67fd529d4ee39a5dbe58e160397ace68123fc8 | [] | no_license | electusmatari/legacy | 913c5a9f68074d1fa793b0e3ff76fd3f9c3f481e | 9266e955398a0c8279b82b8347a85d9186a455da | refs/heads/master | 2021-01-22T05:24:13.935562 | 2013-09-29T11:44:19 | 2013-09-29T11:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | #!/usr/bin/env python
import re
import sys
import evelib.api as api
def main():
headline_rx = re.compile(r'^\* ([^(]*)(?: \(.*\))?$')
entity_rx = re.compile(r'^- ([^<[]*)(?: ([<[].*[]>]))?(?: \(.*\))?$')
last_headline = None
output = []
totalsize = 0
for line in sys.stdin:
line = line... | [
"forcer@forcix.cx"
] | forcer@forcix.cx |
972591c766b039598e85023cabd7afcc764c96c2 | 4cfbaf097d0732905c69c704fc940d18e56e09eb | /deep_learning_from_scratch2/common/functions.py | bdb99ba768945c710dcfa37ccf33f87c61337c79 | [
"MIT"
] | permissive | koukyo1994/pattern_recognition | c79e1221da47e93483b6bcbe427c9438733c636c | 0bf835b98baa66cdb78aa46c677b8de91790a767 | refs/heads/master | 2018-12-18T09:26:13.809507 | 2018-11-17T14:18:19 | 2018-11-17T14:18:19 | 116,372,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import numpy as np
def softmax(x):
if x.ndims == 1:
x = x - np.max(x)
x = np.exp(x) / np.sum(np.exp(x))
elif x.ndims == 2:
x = x - x.max(axis=1, keepdims=True)
x = np.exp(x)
x /= x.max(axis=1, keepdims=True)
return x
def cross_entropy_error(y, t):
if y.ndims =... | [
"arabiannight1994@yahoo.co.jp"
] | arabiannight1994@yahoo.co.jp |
d2d2bd3d5e48bd0197b527fd2d86d46543717dc6 | 620d21623a300821e2a195eed5434bac67fb4dca | /abb_experimental_ws/build/rosserial_client/catkin_generated/pkg.installspace.context.pc.py | 1637009b5e756ec63d51aad7b372bc002b2fae8c | [] | no_license | yazici/Robarch-dev | bb63c04bd2e62386e7c1215bf5b116ccd763c455 | 9f8db4c418db3fc80454200cb6625cc2b2151382 | refs/heads/master | 2020-05-21T02:32:06.765535 | 2018-09-07T15:50:26 | 2018-09-07T15:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rosserial_client"
PROJECT_SPACE_DIR =... | [
"email.jrv@gmail.com"
] | email.jrv@gmail.com |
eee4622a2fd9f22f107306a93a0ca27139a98acb | 91a9f5a7afb398f4238527708cbc155dc972cbfa | /scratch/b/y2017/temp2_.py | 716c0a649c7078b8f84301a76365555aa65a5546 | [] | no_license | bddmodelcar/kzpy3.2 | cd6f9bf6b7b8b920c79b4ee36c2592b992ae4332 | b044b26649b19b240bd580feca20424a237374b1 | refs/heads/master | 2021-01-19T21:01:58.687712 | 2017-08-23T22:39:56 | 2017-08-23T22:39:56 | 101,243,308 | 0 | 1 | null | 2017-08-24T02:04:50 | 2017-08-24T02:04:50 | null | UTF-8 | Python | false | false | 1,155 | py |
def zp(d,depth,range_lst):#,max_depth_lst):
sorted_keys = sorted(d.keys())
this_range = range_lst[0]
if type(this_range) == int:
if this_range == -1:
this_range = [0,len(sorted_keys)]
elif this_range == -2:
this_range = [0,len(sorted_keys)]
range_lst = range_lst + [-2]
else:
this_range = ... | [
"karlzipser@berkeley.edu"
] | karlzipser@berkeley.edu |
d5aa8080c515ec1987b0ac6c3c6e923d550dc038 | 2f125ed5e70c9a093aea3a84619be399b758670f | /cl_ex_cesm/figure_produce/time_series/f_time_series_plus_range_EI.py | 475bdf55c961f1fe7ed823e9ef9c30a45314a584 | [] | no_license | Lyna2022/python | 58fd96361808e3c204cf963915350d0a2ef09c98 | ac528d6038d5c9abf8160eca33f37606028adf94 | refs/heads/master | 2022-01-27T17:14:14.192347 | 2018-08-30T09:02:04 | 2018-08-30T09:02:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,594 | py |
'''
# precipitation extremes
prep_att_ref = {'rx5day':[],'r99p':[],'sdii':[],'cwd':[]}
prep_att_dic = {'rx5day':[],'r99p':[],'sdii':[],'cwd':[]}
prep_att_list=['rx5day','r99p','sdii','cwd']
prep_unit_dic = {'rx1day':'Mm', 'rx5day':'Mm', 'sdii':'Mm/day', 'r10':'Days', 'r20':'Days', 'rnm':'Days', 'cdd':'Days','cwd... | [
"s1667168@burn.geos.ed.ac.uk"
] | s1667168@burn.geos.ed.ac.uk |
23e4fcb41f8e5b329dba116e15d6e671bdeb2760 | 7f73a273b5c55ccbb506c4b7069132555389d11c | /.idea/spark-warehouse/spark-streaming/test/tmp1.py | 2e323547e1707dfaaa65aeef14d5ce52ca7d2ce1 | [] | no_license | lfforai/zd_project | a8d5e278aeaa2709f798a1cdc16457762d2498d0 | 751c66c395520989a36a6ec272f7e9ce5c2d8c08 | refs/heads/master | 2021-09-09T12:55:16.917968 | 2018-03-16T09:44:51 | 2018-03-16T09:44:51 | 108,788,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,602 | py |
import numpy as np
def normal_probability(y,n=10000,p=0.95,gpu_num="0"):
#用反复逼近的方式迭代求最接近最大值的
import numpy as np
import tensorflow as tf
# with tf.device("/gpu:"+str(gpu_num)):
#y_in=tf.placeholder(dtype=tf.float32,shape=(None))
print(y)
def normal_probability_density(y_in,x_t):
... | [
"18073072@qq.com"
] | 18073072@qq.com |
c7f5fffbd6b76ce76bf5d1b8f7a762564b9467ec | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5769900270288896_1/Python/dvolgyes/solution.py | e3ac878085042f1145a5755a8a2f0519c2dfae9c | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,891 | py | #!/usr/bin/python
import sys
import numpy as np # http://www.numpy.org/
import scipy # http://scipy.org/
import networkx as nx # https://networkx.github.io/
import sympy # http://www.sympy.org
import itertools
import operator
import string
T = int(sys.stdin.readline())
def reverse(x):
re... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
9d156ec60581b115291310b78d389bd0f9abf39c | 00ce396b445915c4185a9b6354a7c8003240d9cd | /django-demos/prover/prover/settings.py | 610a45c42ab29d35bd3cd604f3b48b77bb82272a | [] | no_license | wongxinjie/python-snippets | 625fde176df65a0aeccd8aa120de535c6b5d754f | 53f60c45d28481b963a2c6b08f6a1e75d737d8e0 | refs/heads/master | 2022-11-14T12:33:27.828245 | 2019-06-27T04:42:07 | 2019-06-27T04:42:07 | 157,308,832 | 0 | 0 | null | 2022-09-23T22:13:05 | 2018-11-13T02:35:08 | Python | UTF-8 | Python | false | false | 3,209 | py | """
Django settings for prover project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"wongxinjierun@gmail.com"
] | wongxinjierun@gmail.com |
16a4e4c93a9dddcf7e5733186bc15e3d46a295fc | f3cb4d9761dbdbbf2a94b02421d0a01c82a0a978 | /roverlay/setupscript/baseenv.py | eb057647cefeabfac50c1f22ee0d91ffd7c65471 | [] | no_license | dywisor/roverlay | 49d54356eaeddbedbfd7fe1de7cd53a69d297533 | 815bc74db18c14807ea4098babeb0253f331bab3 | refs/heads/master | 2020-04-06T00:22:18.771374 | 2015-02-18T02:16:56 | 2015-02-18T02:16:56 | 15,910,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | # R overlay -- setup script, base env
# -*- coding: utf-8 -*-
# Copyright (C) 2013 André Erdmann <dywi@mailerd.de>
# Distributed under the terms of the GNU General Public License;
# either version 2 of the License, or (at your option) any later version.
class SetupSubEnvironment ( object ):
NEEDS_CONFIG_TREE = Fal... | [
"dywi@mailerd.de"
] | dywi@mailerd.de |
adc2f4a9e2fc24ff86dde2eb44ed3ab35e393292 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03359/s100110945.py | 48ff81c0af9a8fc079d181ec8c613beb152b6c42 | [] | 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 | 154 | py | def solve():
a, b = map(int, input().split())
if b >= a:
print(a)
else:
print(a - 1)
if __name__ == "__main__":
solve()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
267b0ddc4018a2f916b714c69b28b79d2262075f | 023495ed8dae4ef4be3121fcac1fbf0ee026c404 | /mot/tracklet.py | a16f28174f95b15e53baf7c451b19814cfc0d019 | [] | no_license | dangchenyu/Taxi_demand_detection_Xavier | 4b6a96493e76a39b0aa424a3547320ab1a3c2855 | 9af6b9423c686b587dea5b91c6c164ea6de0b921 | refs/heads/master | 2023-04-28T12:12:53.617610 | 2020-06-11T10:03:10 | 2020-06-11T10:03:10 | 267,788,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,563 | py | from detection import Detection
class Tracklet:
min_time_lived = -1
def __init__(self, id, frame_id, detection, feature, max_ttl=30, max_feature_history=30,
max_detection_history=3000):
self.id = id
# Box coordinate of the last target position with (left, top, right, bottom).... | [
"dcy0921@outlook.com"
] | dcy0921@outlook.com |
8b2be01fd1a6d9063e2de8a397f1d493b36f3485 | 1f51c4e89a71ea3fcc2cc921613aacc19e078b69 | /09_Introduction to Data Visualization with Seaborn/04_Customizing Seaborn Plots/07_Rotating x-tick labels.py | c1a95da9e12badcd78604b3de0c094e2436f6f58 | [
"MIT"
] | permissive | CodeHemP/CAREER-TRACK-Data-Scientist-with-Python | 871bafbd21c4e754beba31505965572dd8457adc | 13ebb10cf9083343056d5b782957241de1d595f9 | refs/heads/main | 2023-03-26T08:43:37.054410 | 2021-03-22T15:08:12 | 2021-03-22T15:08:12 | 471,015,287 | 1 | 0 | MIT | 2022-03-17T13:52:32 | 2022-03-17T13:52:31 | null | UTF-8 | Python | false | false | 968 | py | '''
07 - Rotating x-tick labels
In this exercise, we'll continue looking at the miles per gallon dataset.
In the code provided, we create a point plot that displays the average
acceleration for cars in each of the three places of origin. Note that the
"acceleration" variable is the time to accelerate from 0 to 6... | [
"ifaizymohd@gmail.com"
] | ifaizymohd@gmail.com |
4f5992c8bcb8e5050b65f9c15440228eeb1e103e | ec80c341817ea3ef219b4c93539513fcce49942f | /packages/minimize/lib/minuit_base.py | 01f9fd07dc6a078647e2d26f29faa909eee28062 | [
"MIT"
] | permissive | gnafit/gna | b24182b12693dfe191aa182daed0a13cfbecf764 | 03063f66a1e51b0392562d4b9afac31f956a3c3d | refs/heads/master | 2023-09-01T22:04:34.550178 | 2023-08-18T11:24:45 | 2023-08-18T11:24:45 | 174,980,356 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,948 | py | import ROOT
import numpy as np
from minimize.lib.base import MinimizerBase, FitResult
class MinuitBase(MinimizerBase):
_label = 'TMinuit?'
def __init__(self, statistic, minpars, **kwargs):
MinimizerBase.__init__(self, statistic, minpars, **kwargs)
print("\033[35mWarning! Disowning the C++ mini... | [
"maxim.mg.gonchar@gmail.com"
] | maxim.mg.gonchar@gmail.com |
4d2b955b695906b3d356edf9573c65205ee365d1 | e59a887f87f28294e9f603e4e88b8628cc480a10 | /utils/misc/throttling.py | 448575833e2668ed1dfe0bc957e2ab3b67457346 | [] | no_license | DontTouchMyMind/simple_proj_education | b86e18fd8b1bbff65d1896e1fc3ddba690e4364a | cab41502615855527de3d72c8d40170b052961de | refs/heads/main | 2023-06-07T02:58:43.261013 | 2021-07-06T09:21:49 | 2021-07-06T09:21:49 | 365,165,254 | 0 | 0 | null | 2021-07-06T09:21:50 | 2021-05-07T08:25:43 | Python | UTF-8 | Python | false | false | 223 | py | def rate_limit(limit: int, key=None):
def decorator(func):
setattr(func, 'throttling_rate_limit', limit)
if key:
setattr(func, 'throttling_key', key)
return func
return decorator
| [
"tobigface@gmail.com"
] | tobigface@gmail.com |
08b25ddd0602d6fcbdb4fe4aa39375fd7eadc720 | ba0a2b0d2d1534443ea34320675aadfa378457b6 | /Design/Q362_Design Hit Counter.py | 05bcf0f3a6542fcc0a3c2288ef3e9778bf5de1f4 | [] | no_license | Luolingwei/LeetCode | 73abd58af116f3ec59fd6c76f662beb2a413586c | 79d4824879d0faed117eee9d99615cd478432a14 | refs/heads/master | 2021-08-08T17:45:19.215454 | 2021-06-17T17:03:15 | 2021-06-17T17:03:15 | 152,186,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | import collections
'''
Use a deque to store hits
Evertime we want to getHits, just calculate timestamp-300 as start, and pop all t<=start from queue, return length of deque
'''
class HitCounter:
# Solution 1 deque
def __init__(self):
self.arr = collections.deque()
self.length = 0
def h... | [
"564258080@qq.com"
] | 564258080@qq.com |
f57fdc4b8ca58ba8f78d11e11469b3b0feb95f62 | 25b28bbf2f0b82019e39fbc6a5c6c64b9911a507 | /tests/test_assemblies.py | b959572209876314d7581d346a396393e100147e | [
"MIT"
] | permissive | NIEHS/orio | 1dff3e478e2f1fa85e6afae2b5c552d57e94eb33 | bf996ebcf41d14b945cd5848460b023376b637ad | refs/heads/master | 2023-08-09T15:52:38.590912 | 2021-09-01T14:55:41 | 2021-09-01T14:55:41 | 78,448,935 | 6 | 1 | NOASSERTION | 2023-07-06T22:48:05 | 2017-01-09T16:52:30 | Python | UTF-8 | Python | false | false | 690 | py | import pytest
from orio import utils
from orio import assemblies
def test_cursor():
cursor = assemblies.get_ucsc_cursor()
cursor.close()
def test_get_databases():
dbs = assemblies.get_databases()
assert 'hg19' in dbs
assert 'mm9' in dbs
assert len(dbs) > 200
def test_get_assemblies():
... | [
"shapiromatron@gmail.com"
] | shapiromatron@gmail.com |
789f4ec02e54f42229ed1d4dbfab3437755b52b3 | 3740de0d6e43ea140fc09ab314e4c492603ba185 | /scripts/sources/s_bayesian_estimation.py | c9ebd37f2b5edf6e36579e59a2f217b0937befb5 | [
"MIT"
] | permissive | s0ap/arpmRes | 29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | refs/heads/master | 2022-02-16T05:01:22.118959 | 2019-08-20T16:45:02 | 2019-08-20T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,886 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.1.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# # s_ba... | [
"dario.popadic@yahoo.com"
] | dario.popadic@yahoo.com |
1c675401a9d11da21827e9458fb0f0e0d4caef63 | 42186fa6507999ce60d334a0f04d9ae2127579cd | /DDCTF2019/homebrew event loop/eventLoop.py | 0b1105ec57634458d83cf9cbe168d746ddc53bf0 | [] | no_license | Imtinmin/CTF_Challenge | ef8b62b3a4a1741d814d989f795a243257ff6f2b | ea276596f9effdbe0cf9ef4457e2e676e652bb74 | refs/heads/master | 2022-12-21T12:40:40.625562 | 2020-04-30T03:27:56 | 2020-04-30T03:27:56 | 158,999,004 | 18 | 3 | null | 2022-12-10T04:34:27 | 2018-11-25T04:53:04 | PHP | UTF-8 | Python | false | false | 5,074 | py | # -*- encoding: utf-8 -*-
# written in python 2.7
__author__ = 'garzon'
from flask import Flask, session, request, Response
import urllib
app = Flask(__name__)
app.secret_key = '*********************' # censored
url_prefix = '/d5af31f66741e857'
def FLAG():
return 'FLAG_is_here_but_i_wont_show_you' # censored
def... | [
"954093370@qq.com"
] | 954093370@qq.com |
af38903dbf471457829a01c70760564266e0db33 | 27da1c772decb031eeabdee94530c6c0d53d82d7 | /DataStructures/DataStructureAndAlgorithmicThinkingWithPython-master/chapter04stacks/checkStackPairwiseOrder.py | d1865180c979a02dcbbe73457fc0d79d7ac410a5 | [
"MIT"
] | permissive | ManasveeMittal/dropbox | 09e400c1cf0286051b115d81b509eabba0159c91 | 58d893b14119d1a4e87a122ab37aeaa523fa0a3c | refs/heads/master | 2021-05-11T19:35:27.104757 | 2018-01-31T13:46:07 | 2018-01-31T13:46:07 | 117,876,352 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,390 | py | # Copyright (c) Dec 22, 2014 CareerMonk Publications and others.
# E-Mail : info@careermonk.com
# Creation Date : 2014-01-10 06:15:46
# Last modification : 2008-10-31
# by : Narasimha Karumanchi
# Book Title : Data Structures And Algorithmic Thinking With Python
# Warranty ... | [
"manasvee.k@outlook.com"
] | manasvee.k@outlook.com |
fc855fe6f999c3f1f655ab9fec969187051831c1 | 5c7350daa1df3e45146e556f15c214191ac6320e | /michelanglo_app/templates/venus/junk/old_code.py | 73e45261330a8cfc56d5583bc5afea21e0156684 | [
"MIT"
] | permissive | matteoferla/MichelaNGLo-app | 39ed512f2bc2dc2ce32d41621565e1145836dbbb | 0b10ed34b036dac24e25ae328220ff142c21f448 | refs/heads/master | 2023-02-08T09:58:03.216394 | 2023-01-31T12:36:26 | 2023-01-31T12:36:26 | 154,649,740 | 20 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,212 | py |
"""
@view_config(route_name='venus_analyse', renderer="../templates/venus/venus_results.mako")
def analyse_view(request):
log.info(f'Analysis requested by {User.get_username(request)}')
malformed = is_malformed(request, 'uniprot', 'species', 'mutation')
if malformed:
return {'status': malformed}
... | [
"matteo.ferla@gmail.com"
] | matteo.ferla@gmail.com |
dacaa2b00c729a3eebf3b3cb357e4f6c1f7d525e | 1b3fc35ada474601a76de3c2908524336d6ca420 | /day06/作业/test.py | ce990956f35f447dcacc614a9fe7ce1eea1e97f9 | [] | no_license | dqsdatalabs/Internet-worm | db3677e65d11542887adcde7719b7652757a3e32 | 62f38f58b4fa7643c482077f5ae18fff6fd81915 | refs/heads/master | 2022-01-16T14:29:52.184528 | 2018-12-25T08:46:08 | 2018-12-25T08:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from bs4 import BeautifulSoup
import re
options = Options()
options.a... | [
"aaa1058169464@126.com"
] | aaa1058169464@126.com |
80dbfcc4acd07cfc634c91af59de8dcc3d8a45e1 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj9-10_171905.70+382003.2/sdB_sdssj9-10_171905.70+382003.2_coadd.py | 334bc406edda845c9ceeccf334e0c6d99536ba35 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[259.77375,38.334222], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_sdssj9-10_171905.70+382003.2/sdB_sdssj9-10_171905.70+382003.2_movie_count.fits", cntcoaddfile="/data2/fleming/G... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
7a57bbcb497c18d48522665e60b32e40ef4bf75f | 41b77a1a17244a727aa6acd95e91e8c674986049 | /leagueOfDrivers_BE/wx_league/migrations/0118_auto_20181201_1823.py | 2bc900a6d86b7d8a073b39f7f600065048151886 | [] | no_license | DataSecretbase/Renjiu | 24424ca1742a3987a395bc5da54afa1e7f34fc84 | aa90d58d92d0c1936b0ee23e4f9c970135b480d5 | refs/heads/master | 2022-12-08T05:28:09.192623 | 2019-03-10T09:44:19 | 2019-03-10T09:44:19 | 140,274,553 | 1 | 2 | null | 2022-12-08T02:21:56 | 2018-07-09T11:15:07 | Python | UTF-8 | Python | false | false | 1,215 | py | # Generated by Django 2.1.2 on 2018-12-01 18:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wx_league', '0117_auto_20181201_1822'),
]
operations = [
migrations.AlterField(
model_name='att... | [
"2144799613@qq.com"
] | 2144799613@qq.com |
f0c8c73362b8811944908cff1df02ec532669910 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_225/ch61_2020_04_18_19_15_50_993229.py | c8c8eff6d5198ac00bd7ca0d796d2f6609029b51 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | def filtra_positivos(lista):
novalista = []
for i in lista:
if lista[i]>=0:
novalista.append(lista[i])
return novalista | [
"you@example.com"
] | you@example.com |
07e934386d5e97ca4910a0cec55290583ed95a86 | fdeb7d261e48924ef59061ed3f5639ad7b286192 | /backend/users/migrations/0002_auto_20210120_0842.py | 82f593e3b1f5dede55df22b5e6af7b1bfc15ec1a | [] | no_license | crowdbotics-apps/sbk-23940 | 333aead1c73107847cd5970552c88807365ba128 | 7c6b124f49403d1f5a0cddd261f4af42ad92874c | refs/heads/master | 2023-02-18T05:43:25.375999 | 2021-01-20T08:53:53 | 2021-01-20T08:53:53 | 331,166,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # Generated by Django 2.2.17 on 2021-01-20 08:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='email',
field... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
830f799389ea697e7fa0a8a1d4309042b3916665 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/keyvault/azure-keyvault-administration/tests/test_backup_client.py | 4d2d4296031e39f3ba1ef15654bf6672ad39d761 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 7,980 | py | # ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
import time
from functools import partial
import pytest
from azure.core.exceptions import ResourceExistsError
from azure.keyvault.administration._internal import parse_... | [
"noreply@github.com"
] | Azure.noreply@github.com |
a01db0caed85d6a21e20b92285f534d581a3b798 | eb4f61315e8f0b139d0af3a95c59a2907845ebfd | /7-8(am)/all folders/practice/PYTHON/regular expressions/regulr2.py | 5e1190cae3c31ff87390c604f589e23cce94d0bc | [] | no_license | vamsikrishna6668/python-core | c1d368792fa6f89bf51ae690d20b45cb5ae0fb98 | b66ad0f6ad0deffbc350d5a7996f23220940e187 | refs/heads/master | 2020-04-02T10:00:39.641928 | 2018-10-23T12:19:14 | 2018-10-23T12:19:14 | 154,320,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | import re
mystr='prasad got 95 marks in maths naidu got 76 marks in maths'
result=re.search(r'\d{2}',mystr)
sum=0
for i in result:
sum+=i
print(sum) | [
"vamsikrishna6668@gmail.com"
] | vamsikrishna6668@gmail.com |
b8bdd7384e6f7f0aebe762231bcf8159824ad9b4 | d443b2c02359311a28b1980c7673f102ccc041a5 | /real_trace/obj_size_dst.py | 13dbcd551dac463c84adb80cd6295c0156e1b6b6 | [] | no_license | anisabnis/trace_gen_git | 295df6a732f7751d404da8dea380898e89d5db15 | 53b2afce68467ab0fb5484dede61a7fa50c877c4 | refs/heads/master | 2021-09-22T17:24:37.613043 | 2021-09-09T19:53:38 | 2021-09-09T19:53:38 | 245,453,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,291 | py | import json
from collections import defaultdict
import numpy as np
import random
import copy
class obj_size:
def __init__(self, filename):
with open(filename, 'r') as f:
self.sz_dst = json.load(f)
self.n_sz_dst = defaultdict(lambda : 0)
self.obj_sizes = []
... | [
"asabnis@lids.cs.umass.edu"
] | asabnis@lids.cs.umass.edu |
607c5abe3b21a8ade350142d02e9b0402f687f24 | 7fc004dfcc16bb8589e4fbd46c11447459315267 | /mini/wheelstand/management/commands/keepingintouch_mini.py | 72df4caa9abea1b508cd9ff138956246c7d670a9 | [] | no_license | wheelstand/mini | c35dfb6d57796744437aca629de63cd35653df92 | 9505f83b36512654788f7affbf9316ca36f9a1e1 | refs/heads/master | 2021-01-23T21:10:39.297565 | 2017-05-09T15:44:54 | 2017-05-09T15:44:54 | 90,673,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | from django.core.management import BaseCommand
from wheelstand.models import KeepingInTouch
import requests
from requests.auth import HTTPBasicAuth
from django.core import serializers
class Command(BaseCommand):
def handle(self, *args, **options):
url = 'https://form-staging.richmondday.com/MINIHandRaiser'
head... | [
"hypnopompicindex@gmail.com"
] | hypnopompicindex@gmail.com |
1cf0d0e7c8ea5668bacd56a2d99db27f5975ba0d | 13a0e668f0d4e8ffca222711240b887e9c83f7d9 | /env/bin/ucare | 1259a7421d9eaded811d556296bd706f6a271b5f | [
"MIT"
] | permissive | wilbrone/Hood-Tacker | dba0ef6b82030844bba0881dd47e8a02ecec2036 | ad2720c985dec5914d213d3b33bb838956c57294 | refs/heads/master | 2022-12-10T10:23:07.446918 | 2020-01-20T08:26:25 | 2020-01-20T08:26:25 | 234,933,950 | 0 | 0 | MIT | 2022-12-08T03:28:07 | 2020-01-19T16:59:50 | Python | UTF-8 | Python | false | false | 261 | #!/home/aphya/moringa-projects/hood-crawler/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pyuploadcare.ucare_cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"wilbroneokoth@gmail.com"
] | wilbroneokoth@gmail.com | |
549d614db7ae3455c1f70779808a004422903014 | b2ff5ac2ef633e41ecec6ff7baae4b89254bf151 | /Django_Checkbook/src/checkbook_mainapp/checkbook_mainapp/wsgi.py | 3f8ff6858b09d29f705fc0b17a50aa734377fefc | [] | no_license | r3bunker/Python-Projects | 2bda2be348bc4e0aa530cadbf8c26a7f163bcd3f | e8742a9c5ed92424b5aeee0041e6e2267f26ccc6 | refs/heads/master | 2023-01-04T20:30:50.250655 | 2020-10-29T17:41:14 | 2020-10-29T17:41:14 | 300,012,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for checkbook_mainapp project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"r3bunker@gmail.com"
] | r3bunker@gmail.com |
6e94686e5c43016c7d8589fe57768b36a0cbaa90 | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/presets/tracking_camera/Panasonic_LX2.py | f9ffcb8ec03452f7d499e7fb3f1da6a14ed0dd66 | [
"Unlicense",
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 191 | py | import bpy
camera = bpy.context.edit_movieclip.tracking.camera
camera.sensor_width = 8.5
camera.units = 'MILLIMETERS'
camera.pixel_aspect = 1
camera.k1 = 0.0
camera.k2 = 0.0
camera.k3 = 0.0
| [
"admin@irradiate.net"
] | admin@irradiate.net |
e931fe3c552a0625f18e84857a8a392b2ff15795 | e6ebd1f9e3968f6ed613e9f35e46716115e6e9c3 | /chapter8/demo4.py | d38f8f1627ba7ffd9743dd970fa9b011c341b5ef | [] | no_license | huwanping001/Python | 897046d3d6d1b420befeefcaa2b9544efa7d1881 | 3c76278f7a9b216b28b8880e0108af3c550b9372 | refs/heads/main | 2023-08-21T00:45:17.991833 | 2021-10-18T13:47:52 | 2021-10-18T13:47:52 | 409,586,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # 学校:四川轻化工大学
# 学院:自信学院
# 学生:胡万平
# 开发时间:2021/9/22 17:07
'''元组的遍历'''
'''第一种获取元组元素的方式,使用索引'''
t = ('Python', 'world', 98)
print(t[0])
print(t[1])
print(t[2])
#print(t[3]) #IndexError: tuple index out of range
'''遍历元组'''
for item in t:
print(item)
| [
"noreply@github.com"
] | huwanping001.noreply@github.com |
f7ce4da8ca07dcb2e4de43f3edc2a9b38d5b780b | e2b6952a190c9b74994e674e887f850b98f9bc0d | /Project/views.py | 22e171f70d80d3b23bf4ca518a979332c04d918d | [] | no_license | zhaozongzhao/webdiangorequest | a201164cff605539d753cd531a41655dd470321d | 84dcd765c697a645759ced03d0e8ed991ac38d0d | refs/heads/master | 2021-05-10T18:26:35.586895 | 2019-10-28T16:27:09 | 2019-10-28T16:27:09 | 118,125,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,976 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse, Http404
from django.views import View
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import status
# 导入排序
from rest_framework.generics import GenericAPIView
from rest_frame... | [
"2206321864@qq.com"
] | 2206321864@qq.com |
255da3c5ee1b7de4ee10f0faf776e15ed52967e2 | e9ed8174f0e2f52f858f0dd8b9206eb57388ece2 | /JssProject/main/models.py | 5ce393e40093b01cd32af674cd789a81c1c2076b | [] | no_license | Tedhoon/JasoseolProject | bb061dc1ed0cf0a0842a2c046c4434ccb80263a5 | 9500edabb35242f2974443a8b0fa43e5e3435484 | refs/heads/master | 2022-11-11T03:40:04.564877 | 2020-06-28T07:02:28 | 2020-06-28T07:02:28 | 275,432,188 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Jasoseol(models.Model):
title = models.CharField(max_length=50)
content = models.TextField()
updated_at = models.DateTimeField(auto_now=True)
author = models.ForeignKey(User, on_delete=mode... | [
"gt0305@likelion.org"
] | gt0305@likelion.org |
e5a9c43576891aefeb66959877f433f71e87e090 | 2eb4b7dfad455b39a5ff97b614ab3873fae33d07 | /setup.py | 3783a3a38aab714e556f020047a7aeaec2f73c63 | [] | no_license | xZero0/pumbaa | 7e75d324e1e9c591fc8417f7f1d4ecb70143f6a6 | 71a3895960b927949af75ec98c347fedc4b2749e | refs/heads/master | 2020-12-03T09:12:58.656232 | 2013-10-12T15:12:31 | 2013-10-12T15:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.rst')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.rst')) as f:
CHANGES = f.read()
requires = [
'pyramid',
'pyramid_mako',
'pyramid_debugt... | [
"boatkrap@gmail.com"
] | boatkrap@gmail.com |
a0959927ccc493dc9cfe0726634e2a48a874fde3 | 3b1d71ab16025e9c6ef266042423a0f5c2c06f67 | /data/view/views.py | 035b414c64d55a07857c59dde09fac44c8a6e7c9 | [] | no_license | wangyu190810/nedujob | 9a4ed617939d982a2fc5371227cc5727d8492066 | 31877a0dcf7d3b796ca20d63dbe48b03a0a15aca | refs/heads/master | 2020-12-24T13:28:17.969318 | 2015-06-14T09:24:27 | 2015-06-14T09:24:27 | 26,111,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,940 | py |
# -*-coding:utf-8-*-
__author__ = 'Administrator'
from data.base.base import Base
from data.model.base import DBSession
from data.model.models import Job
from data.model.nosql_data import JobData
import json
from bs4 import BeautifulSoup
class V2ex(Base):
def get_content(self,site_file=None,name=None,tag=None)... | [
"190810401@qq.com"
] | 190810401@qq.com |
9548315422f27b4477c1a98419e3f052dec37845 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_ConstantTrend_Seasonal_DayOfMonth_NoAR.py | 17f2cbfd05538a348ab8f17915cdc6561c4df7a4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 169 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['BoxCox'] , ['ConstantTrend'] , ['Seasonal_DayOfMonth'] , ['NoAR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
2ced36c27bcbb7e30053386646787a0f19aa92d0 | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/google/auth/transport/__init__.py | 53aa4ba1401f63941b976b4ef5f802fc8c9a9f6c | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 3,439 | py | # Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
3de5105f85bd6f495f95088d4368f6ce51dfe1f5 | de34ae7048eac10f3f22186e73686f1bbf9e9cde | /rentalerts/apps/core/context_processors.py | 80ef2f03ee73d8c3842bfe68f28b232956367c52 | [] | no_license | danjac/rentalerts | bdf21f57c37ae60440bd62404e4e6bcd807b7580 | b474953120aa228b3f09c675b59bc195b5280e78 | refs/heads/master | 2021-01-13T02:18:02.933254 | 2012-06-15T13:23:24 | 2012-06-15T13:23:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.conf import settings
def google_api_key(request):
"""
Gets the Google map key
"""
return {'GOOGLE_API_KEY' : settings.GOOGLE_API_KEY}
| [
"danjac354@gmail.com"
] | danjac354@gmail.com |
f547dec6901e5c0e27a9791403b87d237fb7a823 | 2d2984d1e47341f829e176f2c0a727376e3d341f | /Day-7 (20-7-2020)/firstapp/views.py | edea962dc938658c32bd757b153d8ec8ad1e2ebb | [] | no_license | AP-Skill-Development-Corporation/Django-Afternon-team-13.07.2020- | e057b90037eb60fa3b763c059057c6effbb38ca3 | 23cd70b25d34297c67e2aa2c07c2c5f4e92392d2 | refs/heads/master | 2022-11-27T14:11:59.487923 | 2020-08-01T07:46:46 | 2020-08-01T07:46:46 | 279,522,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from django.shortcuts import render
# Create your views here.
def home(request):
return render(request, 'firstapp/home.html')
def internal(request):
return render(request, 'firstapp/internal.html')
def external(request):
return render(request, 'firstapp/external.html')
def add(request):
return render(request, '... | [
"nivas0803@gmail.com"
] | nivas0803@gmail.com |
65a8b46d76db90b4642470e9bd12ea74cea0dbb8 | 2a0962a9fb37f9ea19fa379d9cb7967cd90ef349 | /Section 19/utils/UsingWrappers.py | ff0f705ac22bf34e08557d22fa490c1ff327f887 | [] | no_license | bomcon123456/SeleniumPython | 4502ed60360d5c6f8ed71c54728bd7efd42d641b | ac949b9dbffaef61955a5e2af0bc9b6ad7402490 | refs/heads/master | 2020-09-03T13:11:09.415115 | 2019-11-05T03:33:04 | 2019-11-05T03:33:04 | 219,470,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import os
import os.path as path
from selenium import webdriver
from .HandyWrappers import HandyWrappers
class UsingWrappers():
def test(self):
base_url = 'https://learn.letskodeit.com/p/practice'
base_directory = path.abspath(path.join(os.getcwd(), "../.."))
driver_location = base_direc... | [
"bomcon123456@gmail.com"
] | bomcon123456@gmail.com |
b85116f3c53319c61fdf8702fa16194f1736183b | 440c2f17a64b718227bbc9ac1f799630d0f3233d | /Chapter03_LinkedList/leetcode328.py | 51436357acf78ff3c55dfb53a3ce5aa419814c74 | [] | no_license | HuichuanLI/alogritme-interview | 6fc84fdbfe1123c1e587eaf2df6b6e9fb2ca7dda | 0ac672a1582707fcaa6b6ad1f2a1d927034447df | refs/heads/master | 2023-02-05T03:29:14.458783 | 2020-12-25T14:04:17 | 2020-12-25T14:04:17 | 206,583,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | class Solution:
def oddEvenList(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if not head or not head.next or not head.next.next:
return head
odd = head
dummy_even = even = head.next
while even and even.next:
odd.n... | [
"lhc14124908@163.com"
] | lhc14124908@163.com |
24cc0fb05c96e5979b089962bd9a2287e2e910e5 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20170206/example_chunk/00chunk.py | cc2e8c27af9dcffbf993c579e3414726ca2c83b2 | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 646 | py | import itertools
def chunk(xs, n):
it = iter(iterable)
while True:
chunk_it = itertools.islice(it, n)
try:
first_el = next(chunk_it)
except StopIteration:
return
yield itertools.chain((first_el,), chunk_it)
if __name__ == "__main__":
print("hoi")
... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
aa5ebf19b2e1b4a899aaec53957410a9d746bd33 | 80af3e88d2d84b525c972ea4585ffc3e6e59882f | /tests/__main__.py | 3e649f7bf52fe6c4b85294e573c6cbfdcbb31f81 | [
"MIT"
] | permissive | andysenclave/decorating | f79fd118695acbf0b391e871b12cfd6acb141959 | df78c3f87800205701704c0bc0fb9b6bb908ba7e | refs/heads/master | 2021-12-25T09:26:00.088518 | 2017-12-27T10:19:39 | 2017-12-27T10:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright © Manoel Vilela 2016
#
# @project: Decorating
# @author: Manoel Vilela
# @email: manoel_vilela@engineer.com
#
import os
import unittest
tests = unittest.defaultTestLoader.discover(os.path.dirname(__file__))
suite = unittest.defaultTestLoader.s... | [
"manoel_vilela@engineer.com"
] | manoel_vilela@engineer.com |
26da0b0035670f736f1bddceb07c3a808c075bf9 | 1ac5996919c7fe0b66eb25b4c140601166805747 | /get_id.py | e6f10f27e5079cd38d053fa561fbab7de3e40e44 | [] | no_license | rehmanali1337/metacloud_telegram_bot | b629881d15f9dbcfae3adc1e5da2c4ca029fb235 | 19a839abc6b52f7603b65008c95ac3e292b488a8 | refs/heads/master | 2023-06-11T02:19:01.279033 | 2021-06-23T19:16:55 | 2021-06-23T19:16:55 | 338,857,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | from telethon.sync import TelegramClient, events
from telethon.tl.types import PeerChannel
import json
import asyncio
import config
client = TelegramClient('sessionFiles/client', config.API_ID, config.API_HASH)
async def get_entity_by_username():
username = input('\nEnter the username to get the telegram ID : '... | [
"rehmanali.9442289@gmail.com"
] | rehmanali.9442289@gmail.com |
f16c57277b375147bda3dab2c715ad2a76a4df3f | ef6bd489e1f2b048b69d31a28ded7f3cfb023b88 | /fortpy/isense/classes.py | 75924bf072f515bfd2d9e18ac3d87e269e44e00b | [
"MIT"
] | permissive | rosenbrockc/fortpy | 2738818fcd0b1d585366440dcca89a6e03a606cf | 1ed0757c52d549e41d9d44bdea68cb89529293a5 | refs/heads/master | 2020-05-22T04:13:47.996418 | 2017-11-29T21:01:21 | 2017-11-29T21:01:21 | 20,571,759 | 23 | 9 | MIT | 2019-01-11T14:09:02 | 2014-06-06T17:13:21 | Fortran | UTF-8 | Python | false | false | 5,739 | py | from . import cache
import re
from fortpy.elements import Function, Subroutine, ValueElement, Executable, TypeExecutable
from fortpy.printing import docs
class BaseDefinition(object):
def __init__(self, context, element):
self._context = context
self._element = element
@property
def n... | [
"rosenbrockc@gmail.com"
] | rosenbrockc@gmail.com |
4c9da1b3666aabeed981dfb91c02fc5e23b29508 | ea841f43100a56736651f3bf8493252babc46475 | /src/insulaudit/console/utils.py | 8789f71974e8f5d81f3978b1a53fa2c6944efb94 | [
"MIT"
] | permissive | kakoni/insulaudit | d28e627d0cf449fe09dd96ca12ba6b9d6fd0cea9 | 18fe0802bafe5764882ac4e65e472fdc840baa45 | refs/heads/master | 2020-12-25T15:51:27.497274 | 2011-09-15T02:19:10 | 2011-09-15T02:19:10 | 2,763,843 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py |
def setup_device_options(parser):
parser.add_argument("--port",
help="/dev/ttyUSB0, path to serial port",
type=str, default='auto')
def setup_global_options(parser):
# Set up global options
#parser.add_param("--device", help="device", action='store_true')
#print "setting up global options"
parser.ad... | [
"bewest@gmail.com"
] | bewest@gmail.com |
e387613a1f59568d4f247abe69c977ebe9a90610 | fda3bcc48d7b2766e7ee2fd6b05b15b0c6b3a0a8 | /generate_fields.py | be50f677d9f81e8af79a17fba47ceca8ba3b7bb5 | [] | no_license | hpetru/rootstrikers-wikipedia | ec4737eb05d356a741824fae97b67e447f865908 | 1fd1c756885147d6624913f94d4a6fb3aa0a5e9c | refs/heads/master | 2020-06-14T15:30:12.136677 | 2013-10-19T13:49:50 | 2013-10-19T13:49:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | # generate python classes
from fech_rendered_maps import FieldParser
p = FieldParser()
for field_regex in self.rendered_maps.keys():
for version_regex in self.rendered_maps.keys():
| [
"jamesmikedupont@googlemail.com"
] | jamesmikedupont@googlemail.com |
ae755c62c85a4d9eebba56ea2cc6c718d2b0b37e | 332b19e675ae4a9eebafdb9f3487fa52046e403c | /sigopt/sigopt_logging.py | 329fe544876292ff624f7beedc149a08ff7bc3ad | [
"MIT"
] | permissive | sigopt/sigopt-python | 7e1ba35e25ccbd9d6853761de86f33113405b5d8 | 0ac664f67c3d1f07db53838034657e3c9ea0f648 | refs/heads/main | 2023-09-05T02:30:43.997552 | 2023-08-28T20:46:35 | 2023-08-28T20:46:35 | 28,167,955 | 71 | 23 | MIT | 2023-09-11T14:18:07 | 2014-12-18T04:16:14 | Python | UTF-8 | Python | false | false | 410 | py | # Copyright © 2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
import sys
from logging import INFO, StreamHandler, getLogger
print_logger = getLogger("sigopt.print")
print_logger.setLevel(INFO)
stdout_handler = StreamHandler(stream=sys.stdout)
def enable_print_logging():
global print_logger, stdout_handle... | [
"noreply@github.com"
] | sigopt.noreply@github.com |
a8bfe407b14ae21cadefacec90c6072e54aa9dcb | 31fb7c74b94e46a325e6b05501c6972a401cf423 | /PYTHON/BASIC_PYTHON/수업내용/0/compact.py | 7578dbbd382d7b66f28151245e71f828cbbd31cb | [] | no_license | superf2t/TIL | f2dacc30d6b89f3717c0190ac449730ef341f6a4 | cadaaf952c44474bed9b8af71e70754f3dbf86fa | refs/heads/master | 2022-04-10T13:55:24.019310 | 2019-12-12T11:15:31 | 2019-12-12T11:15:31 | 268,215,746 | 1 | 0 | null | 2020-05-31T05:32:46 | 2020-05-31T05:32:46 | null | UTF-8 | Python | false | false | 243 | py | ## compact
if 1:
def compact(iterablethings):
a = []
idx = 0
for x in iterablethings:
if idx == 0 or x != a[idx -1]:
a.append(x)
idx += 1
return iter(a)
| [
"noreply@github.com"
] | superf2t.noreply@github.com |
1465e86d80d363580b92fa22a5fb22cc3276cad1 | 265fd29cee8fc19b04c2de1ad775d8e778d6f155 | /aspifile/plot/plot_prog.py | e78f5f3560b2f9898201fa558d21a116b571d337 | [] | no_license | TLRKiliann/vital_parameters_GUI | 749ea07de93c722f9d4e49353d77ab3f1716cb56 | baa4990d4d8c5bfe6ba7f3eeef3e38d219af9c7c | refs/heads/master | 2022-07-12T13:58:56.029489 | 2022-06-28T20:41:36 | 2022-06-28T20:41:36 | 249,429,068 | 2 | 0 | null | 2022-06-28T20:41:37 | 2020-03-23T12:48:34 | Python | UTF-8 | Python | false | false | 1,551 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
import json
import matplotlib.pyplot as plt
import os
print("\nListe1 = dates :")
print("--------------")
fileO = open('./aspifile/data_date.json')
list1 = json.load(fileO)
#f.close
for letter in list1:
print("list1: " + letter)
print("\nList2 = tension :")
print("---... | [
"philogenie@protonmail.com"
] | philogenie@protonmail.com |
199b41df5c4b34be6b9089d8f833a03093980cc5 | 87828431072e3c60a92dc274b078d7cf1e5705be | /back_python/feedback/migrations/0010_auto_20170408_1059.py | 20a7ab0a67fa0687212660a9421a8217e784f5f7 | [] | no_license | cash2one/habit | 90adfd80427a0c0d04104ea5cf8123cf025b2d8b | 3782e498e1e40d6b638aaf2c7c1ac087c0739a36 | refs/heads/master | 2021-01-19T12:32:51.627847 | 2017-04-11T15:41:28 | 2017-04-11T15:41:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-08 02:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('feedback', '0009_orgactivityhistory_fee'),
]
opera... | [
"jiangyong@qq.com"
] | jiangyong@qq.com |
5be8404e05fdccdca423433c157b6fcd2bbb0419 | 919a94bca2081ce9567eec7edb773709d51ee856 | /tests/testapp/settings.py | 960a14cd95c30f88cdad5c61963c6928d9e22cbb | [
"BSD-2-Clause"
] | permissive | MrKrautee/django-content-editor | bc4a1f3aac2ca5ee90f438a3be57da131571d1f4 | d46f8c65222bb51d698944b9ff481e6e4e5fc99d | refs/heads/master | 2021-09-03T01:14:00.753464 | 2018-01-04T13:38:17 | 2018-01-04T13:38:17 | 116,265,023 | 1 | 0 | null | 2018-01-04T13:47:06 | 2018-01-04T13:47:05 | null | UTF-8 | Python | false | false | 1,847 | py | from __future__ import absolute_import, unicode_literals
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:'
},
}
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.sessions',
'd... | [
"mk@feinheit.ch"
] | mk@feinheit.ch |
4d7143ac139f48b1ec4234c77e73b08782bcacab | c548c10c4fd0b6c1d1c10cc645cb3b90b31f2de6 | /keras2/keras66_5_save_to_dir.py | df4229b422fca03d35c8a37968ca9ac1f41386a3 | [] | no_license | sswwd95/Study | caf45bc3c8c4301260aaac6608042e53e60210b6 | 3c189090c76a68fb827cf8d6807ee1a5195d2b8b | refs/heads/master | 2023-06-02T21:44:00.518810 | 2021-06-26T03:01:26 | 2021-06-26T03:01:26 | 324,061,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py | import numpy as np
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Conv2D, Dropout, MaxPooling2D,Flatten
train_datagen = ImageDataGenerator(
rescale=1./255, # 전처리개념
horizontal_flip=True, # True하면 가로... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
dfd195133c0789e4e55506cf9157629c0dc77125 | ac0894b411507bfd027696b6bf11b5e384ed68fc | /need-to-do/python3------download-problem--of--leetcode/669.trim-a-binary-search-tree.py | 21239d947e9945aee3fa0f206cf0b772c2820a0c | [] | no_license | mkzpd/leetcode-solution | 1d19554628c34c74012fa52582c225e6dccb345c | 60c9b218683bcdee86477a910c58ec702185c726 | refs/heads/master | 2020-05-31T05:56:48.985529 | 2019-09-20T09:10:49 | 2019-09-20T09:10:49 | 190,128,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | #
# @lc app=leetcode id=669 lang=python3
#
# [669] Trim a Binary Search Tree
#
# https://leetcode.com/problems/trim-a-binary-search-tree/description/
#
# algorithms
# Easy (60.95%)
# Total Accepted: 75.2K
# Total Submissions: 123.4K
# Testcase Example: '[1,0,2]\n1\n2'
#
#
# Given a binary search tree and the lowes... | [
"sodgso262@gmail.com"
] | sodgso262@gmail.com |
5d70a66d0b7a8eb02eb96d32601cede17bb98c71 | 5de718a2ab00460f59621e1e3c100b37c0853f61 | /env/Lib/site-packages/sqlalchemy/engine/util.py | 993cb3db59fb7c6f608ff53d1d89d3f56cced7cb | [] | no_license | HenryVo31/Connect | 3fd60d893edd1199663878b7b68505e57a410dd6 | 3783e5b4d6b58f19e37ccff66501cb78c35c1500 | refs/heads/master | 2023-02-13T14:21:12.692446 | 2021-01-08T21:40:16 | 2021-01-08T21:40:16 | 295,485,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,501 | py | # engine/util.py
# Copyright (C) 2005-2019 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from .. import util
def connection_memoize(key):
"""Decorator, memoi... | [
"trungsonvo2001@gmail.com"
] | trungsonvo2001@gmail.com |
811fe2ad9763e29e6833a773fde8d513ba3d6e2a | 84b05857cbe74d190bdbee18d442d0c720b1b84d | /AlgoExpert_algorithms/Hard/SubarraySort/SubarraySort.py | 9a122c8402434b854de64858277adbd023e2fa14 | [] | no_license | JakubKazimierski/PythonPortfolio | 1c8c7e7b0f1358fc42a2295b807d0afafd8e88a3 | 3aa62ad36c3b06b2a3b05f1f8e2a9e21d68b371f | refs/heads/master | 2023-06-01T01:16:22.897097 | 2023-05-15T01:05:22 | 2023-05-15T01:05:22 | 311,473,524 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | '''
Subarray Sort from AlgoExpert.io
February 2021 Jakub Kazimierski
'''
def subarraySort(array):
'''
Write a function that takes in an array
of at least two integers and that returns an
array of the starting and ending indicies
of the smallest subarray in the input array
that needs ... | [
"j.m.kazimierski@gmail.com"
] | j.m.kazimierski@gmail.com |
32f2f400681e3c9e8c53b96551a3b8de8f6be50b | 2b52894d158b60480e95579617a80339c7df5ff7 | /drf_sample/drf_sample/wsgi.py | 1d0408778a8680ba1e2a29c8e2ce51a45aed0f6a | [
"MIT"
] | permissive | micro-fan/fan_integration | d63f98a20306ca93af3ebfe0d9789f378bfe2985 | e05029bb0a357a6d01ee5b0a6347fc6b1d39b890 | refs/heads/master | 2021-08-31T18:37:05.813376 | 2017-12-22T11:28:53 | 2017-12-22T11:28:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
WSGI config for drf_sample project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"cybergrind@gmail.com"
] | cybergrind@gmail.com |
dab7569d60ca0786a6d76675d259a2c435f4c5bc | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/networkx/algorithms/centrality/tests/test_closeness_centrality.py | a52ec1c4f6d4c861e09b0553ca837f4e4ff311a8 | [] | 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:fcf4929fca1f645234c81b15e8b1c279ea4d1025f709bcfa76fbc3a02007c824
size 6688
| [
"Nqk180998!"
] | Nqk180998! |
672c4c7d07e361696b18fe1cc309b1cb7836da45 | 88dfd1cf02ae0cdc89dd4ca6f7e70851f92c6103 | /os_collect_config/heat_local.py | c3f37a62badebac850ee256b46928a57db545b6b | [
"Apache-2.0"
] | permissive | ccrouch/os-collect-config | 1c8a6f6ee901f4c26fa7b95b586a8cf84fd2af5d | 4cc2c41bbca86e23d6c9122274cad14eee910902 | refs/heads/master | 2020-06-01T06:37:37.292067 | 2013-07-18T15:05:10 | 2013-07-19T19:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | # Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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 applica... | [
"clint@fewbar.com"
] | clint@fewbar.com |
aa5c931d93ec9a0b7a5cf4e28696f6169f133192 | 174f1823feee75955f17db876599cf2d6714885a | /services/backend/project/api/utils.py | 4a9bcffa0da71483de26d0c7310d87eccf9a2ba5 | [] | no_license | oziomek1/microservice_backend | 67de85f8386e490203433dbcb49295963ad3ea1f | cf2a9721866b5dd5928b2d95bfe2af92ea9a9ac3 | refs/heads/master | 2022-06-04T03:38:22.346630 | 2019-06-13T08:18:59 | 2019-06-13T08:18:59 | 176,012,904 | 0 | 0 | null | 2022-05-25T02:41:10 | 2019-03-16T19:00:54 | Python | UTF-8 | Python | false | false | 1,480 | py | from functools import wraps
from flask import jsonify, request
from project import db
from project.api.models.user import User
def authenticate(func):
@wraps(func)
def decorated_function(*args, **kwargs):
response_object = {
'status': 'fail',
'message': 'Provide valid auth tok... | [
"ozimekwojciech@zoho.eu"
] | ozimekwojciech@zoho.eu |
f178aeb24fffaf873ece0fc15189b1604d967986 | b8ef3a93cb9fa4d60a785e7f7b5adafc907e6f65 | /ruman/cron/manipulate_model/gaosongzhuan.py | f7216673e8622d865cae0aaceddcab5efb263714 | [] | no_license | lvleilei/screen | 46289b8a80850ac4db8a08b58eb4fc3fd65a0e01 | 13d4f9ac91a5e610f68525ff2a2306372810b681 | refs/heads/master | 2020-03-19T13:05:55.207809 | 2018-06-08T03:37:22 | 2018-06-08T03:37:22 | 136,560,545 | 0 | 0 | null | 2018-06-08T03:17:20 | 2018-06-08T03:17:20 | null | UTF-8 | Python | false | false | 7,564 | py | #!/usr/bin/env python
# encoding: utf-8
import sys
reload(sys)
sys.path.append("../../")
import tushare as ts
import pandas as pd
import tushare as ts
import pandas as pd
import datetime
from config import *
from sql_utils import *
import time
import sys
import codecs
import csv
from config import *
i... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
5c04ecbee91032e0f26a5f581024bbab5748b67d | e16d7d8f60145c68640b25aa7c259618be60d855 | /django_by_example/myshop/shop/migrations/0001_initial.py | 887870103bff29f3b4baeebc71f651cb511bbd30 | [] | no_license | zongqiqi/mypython | bbe212223002dabef773ee0dbeafbad5986b4639 | b80f3ce6c30a0677869a7b49421a757c16035178 | refs/heads/master | 2020-04-21T07:39:59.594233 | 2017-12-11T00:54:44 | 2017-12-11T00:54:44 | 98,426,286 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,951 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-13 02:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"544136329@qq.com"
] | 544136329@qq.com |
477ce73616d7b51f5d3e3949edf34d962880c0fd | 5e350a7f147a52a72ca3a859a1df5b3acd710952 | /service/migrations/0011_auto_20210212_1821.py | 8ec92643b6592802057ff5d4e7905e20c3bd329c | [
"MIT"
] | permissive | jwoolnt/Opal-Health | 1330389f8698f85ead76e22aff094e5e1b482b90 | ebe0e4c88157ddbe8e56afcc43e4097ca8c4bd49 | refs/heads/master | 2023-07-05T22:07:28.119362 | 2021-03-17T13:27:33 | 2021-03-17T13:27:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | # Generated by Django 3.1.3 on 2021-02-12 18:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('service', '0010_auto_202... | [
"you@example.com"
] | you@example.com |
ce59741d63f527c07f5552bbc2fc76c971e13ada | c9b27c4e9236e305ceb0153dea2ff135e178de73 | /search/__init__.py | d549b35fb5082d57cb1fe1a29f7ac85336e7cd2f | [] | no_license | msgpo/porn-assistant | d6c0589c5afab129ba2667a599f565826f241e70 | a7c3ba2e8f8c6ce83b961f4b0781751172f509d5 | refs/heads/master | 2021-10-24T12:13:14.550472 | 2019-03-26T02:27:06 | 2019-03-26T02:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | from db.pornstars import PornstarDatabase
class PornstarFinder(object):
"""
"""
def __init__(self, sfw=True, include_amateurs=True):
"""
Args:
sfw:
include_amateurs:
"""
self.sfw = sfw
self.db = PornstarDatabase()
self.include_amate... | [
"jarbasai@mailfence.com"
] | jarbasai@mailfence.com |
af48917f1c8cfb0367a8ec206b519308a2c29e47 | 4a270db52265325897f8851781cf23048f3ec10a | /st2client/st2client/utils/strutil.py | 3d09509d8048db502a651a9271b702e9b0bc75ff | [
"Apache-2.0"
] | permissive | ekhavana/st2 | e1c7f6d03dac253412cb26a391c3778c300ff983 | 2b47b0e317a2dfd7d92d63ec6dcf706493148890 | refs/heads/master | 2021-06-19T05:29:03.798681 | 2017-06-09T21:19:13 | 2017-06-09T21:19:13 | 93,899,869 | 0 | 0 | Apache-2.0 | 2021-01-03T10:32:24 | 2017-06-09T22:00:10 | Python | UTF-8 | Python | false | false | 927 | py | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | [
"m4d.coder@gmail.com"
] | m4d.coder@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.