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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
660491e0ab43b182e48bb20b65d28292b8eddcfd | 447aadd08a07857c3bcf826d53448caa8b6a59ee | /bin/Mysite/login/migrations/0007_auto_20200416_1543.py | bcdc7115d79612591477b9bab59fa7163e5ba010 | [] | no_license | aydanaderi/Site1 | 57461e9a43ddc7b7372d2e1690c37b09f73cbdef | 30dce3e5a52a221208b28bcaac51a57a35cd82c6 | refs/heads/master | 2021-06-03T11:30:54.317056 | 2020-05-01T13:43:07 | 2020-05-01T13:43:07 | 254,337,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 3.0.5 on 2020-04-16 15:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login', '0006_auto_20200411_1354'),
]
operations = [
migrations.AlterField(
model_name='documents',
name='docfile',
... | [
"ayda.f.naderi@gmail.com"
] | ayda.f.naderi@gmail.com |
8e68717886127698dae61c683d9eb0861b6eb68d | 1b48b3980abbe11691310a7f35efef62bc0ae831 | /Qt/treeview_expand.py | 80da55034812bad18d8274e37845f50393117444 | [] | no_license | FXTD-ODYSSEY/MayaScript | 7619b1ebbd664988a553167262c082cd01ab80d5 | 095d6587d6620469e0f1803d59a506682714da17 | refs/heads/master | 2022-11-05T08:37:16.417181 | 2022-10-31T11:50:26 | 2022-10-31T11:50:26 | 224,664,871 | 45 | 11 | null | null | null | null | UTF-8 | Python | false | false | 3,081 | py | # -*- coding: utf-8 -*-
"""
https://stackoverflow.com/questions/4100139
"""
from __future__ import division
from __future__ import print_function
from __future__ import absolute_import
__author__ = 'timmyliang'
__email__ = '820472580@qq.com'
__date__ = '2021-07-14 12:07:56'
import sys
from PySide2 import QtCore,QtGu... | [
"timmyliang@tencent.com"
] | timmyliang@tencent.com |
0ee1d341bde661cb3af6b474773b6cc9dd0ffaca | 2ccea24e19026bad25a01be5fa6c6120b9ce0df7 | /com_blacktensor/cop/fin/model/finance_dao.py | 53541b50306a283b24454d5ef880f406d212ed66 | [] | no_license | Jelly6489/BlackTensor_Test | 057f9b5c5c2fbeadd50b37effc0f655aea4d0a6c | 02b576077d5b2368357a0ca02e41d7d594bb2edc | refs/heads/master | 2023-01-19T16:51:25.660358 | 2020-11-21T08:03:00 | 2020-11-21T08:03:00 | 308,791,918 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | # import sys
# sys.path.insert(0, '/c/Users/Admin/VscProject/BlackTensor_Test/com_blacktensor/cop/fin/model/')
import csv
import pandas as pd
from com_blacktensor.ext.db import db, openSession, engine
from sqlalchemy import func
from com_blacktensor.cop.fin.model.finance_kdd import FinanceKdd
from com_blacktensor.cop.... | [
"rlaalsrlzld@naver.com"
] | rlaalsrlzld@naver.com |
6620586e32e2dffe80b7dcfc94870b20f44295c3 | 55ab64b67d8abc02907eb43a54ff6c326ded6b72 | /scripts/addon_library/local/weight_layers/extra_props/dict_prop.py | c16420555cb0539a580249bfb0343b7ffd2bdb34 | [
"MIT"
] | permissive | Tilapiatsu/blender-custom_config | 2f03b0bb234c3b098d2830732296d199c91147d0 | 00e14fc190ebff66cf50ff911f25cf5ad3529f8f | refs/heads/master | 2023-08-16T14:26:39.990840 | 2023-08-16T01:32:41 | 2023-08-16T01:32:41 | 161,249,779 | 6 | 2 | MIT | 2023-04-12T05:33:59 | 2018-12-10T23:25:14 | Python | UTF-8 | Python | false | false | 932 | py | class DictProperty():
def __init__(self, get, set, update):
self.fget = get
self.fset = set
del get, set # don't use builtin python keywords
self.fupdate = update
self.value = dict()
self.prop = property(self.get_prop, self.set_prop)
def get_prop(self, parent_c... | [
"tilapiatsu@hotmail.fr"
] | tilapiatsu@hotmail.fr |
038b2cf06296a49f3f1963974e6aa1b8b8e8aff2 | 758c60aed145cf6b780d3cee4a79eb603452e3bd | /code/CNN/gensimBegin.py | e4fa2a76cb3e9ba55b282262a6ea83a4f8568865 | [] | no_license | aiedward/CCIR | 8be5d9b49a1cd653564c4fc00c2ef60f1f1d292d | 215179ac38fbde3899e55b078622606b31595d2d | refs/heads/master | 2020-03-24T09:55:45.382723 | 2018-04-07T14:15:30 | 2018-04-07T14:15:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | py | from gensim import models
from gensim import corpora
from collections import defaultdict
from pprint import pprint
from matplotlib import pyplot as plt
import os
import logging
def PrintDictionary(dictionary):
token2id = dictionary.token2id
dfs = dictionary.dfs
token_info = {}
for word in token2id:
... | [
"872310734@qq.com"
] | 872310734@qq.com |
a13c3670b16ccd37f94df03791b4e5479c7df661 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/506.py | 97cead2d20c05000e6f0ef1b89bf792e94a8dde0 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | T = int(raw_input())
for x in range(T):
C,F,X = map(float,raw_input().split())
baseRate = 2.0
farmSum = 0.0
answer = X/baseRate
nextRate = baseRate
while True:
farmSum = farmSum + C/nextRate
nextRate = nextRate + F
nextTime = farmSum + X/nextRate
if nextTime > answer:
break
else:
answer = nextTim... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
56b2e52b6079bbad17c9eba7d35550045f064ce3 | 05ce3f49f97fb90cb245857cfc5cad82e1b39b51 | /game/DistributedHQInterior.py | b67e64b4efc968ea93e1aef5a0c8626678d8ab8f | [
"BSD-3-Clause"
] | permissive | rasheelprogrammer/toontown-otp-original | 8f63958330b02b43d0dc7c352b54cb96d54259d2 | 40749161f02c6f75844b1d072bf1498b42c2800d | refs/heads/master | 2020-04-25T18:43:05.476001 | 2018-06-18T06:38:19 | 2018-06-18T06:38:19 | 172,993,364 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from direct.distributed.DistributedObject import DistributedObject
class DistributedHQInterior(DistributedObject):
""" THIS IS A DUMMY FILE FOR THE DISTRIBUTED CLASS"""
def __init__(self, cr):
DistributedObject.__init__(self, cr)
| [
"anythingtechpro@gmail.com"
] | anythingtechpro@gmail.com |
ec57744bc80c9c95af651d2bd98f8ab59915f560 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/27de8e692f7bf3c2efdd9c2d49ec589c29fd74be-<test_with_string_args>-bug.py | 6e1a75cc4d811b01fdc1cc54bd7d2b2d4f0324b2 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | def test_with_string_args(self):
for arg in ['sum', 'mean', 'min', 'max', 'std']:
result = self.ts.apply(arg)
expected = getattr(self.ts, arg)()
assert (result == expected) | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
87d0df3fd49084447d39f97815acd63cc9348e39 | a3926c09872e1f74b57431fbb3e711918a11dc0a | /python/array/0674_longest_continuous_increasing_subsequence.py | ad8f2bf9674e3337c47abfe45fb547ed1dad797c | [
"MIT"
] | permissive | linshaoyong/leetcode | e64297dc6afcebcee0614a153a566323bf223779 | 57080da5fbe5d62cbc0b8a34e362a8b0978d5b59 | refs/heads/main | 2022-09-15T00:05:36.476268 | 2022-08-16T14:09:11 | 2022-08-16T14:09:11 | 196,914,051 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | class Solution(object):
def findLengthOfLCIS(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return 0
r, start = 0, 0
prev = nums[0]
for i in range(1, len(nums)):
if nums[i] <= prev:
r = max(r... | [
"linshaoyong@gmail.com"
] | linshaoyong@gmail.com |
1b4588f6e856386e80073511fb68317ef7a6fa8f | 2836c3caf8ca332635640a27254a345afd449081 | /asos/fix_drct.py | 4afd163f13bb8f61628c6a7ea92608274545271d | [
"Apache-2.0",
"MIT"
] | permissive | akrherz/DEV | 27cf1bac978a0d6bbfba1851b90d2495a3bdcd66 | 3b1ef5841b25365d9b256467e774f35c28866961 | refs/heads/main | 2023-08-30T10:02:52.750739 | 2023-08-29T03:08:01 | 2023-08-29T03:08:01 | 65,409,757 | 2 | 0 | MIT | 2023-09-12T03:06:07 | 2016-08-10T19:16:28 | Jupyter Notebook | UTF-8 | Python | false | false | 1,122 | py | """Somehow we ended up with directions impossible in METAR."""
import re
from pyiem.util import get_dbconn
WIND_RE = re.compile(r" ([0-9]{3})(\d+)G?(\d*)KT ")
def main(argv):
"""Go Main Go."""
year = argv[1]
pgconn = get_dbconn("asos")
cursor = pgconn.cursor()
cursor2 = pgconn.cursor()
curso... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
6151266686ffeedab4e8e6c4db45f28dff61d1c2 | 39bd7bf6875c51d8f67b20b67870880e46cddfc3 | /testioc.py | 91ba117b299b6aeced9e6f3b930c4adaaeba3ffd | [] | no_license | klauer/sxu_pot_calibration | 9d5bfa4f83f6c5947ffc7928f9421a1413989be9 | e10a97d61ce3247d0450fc9525aa2e7447bb03e5 | refs/heads/master | 2020-09-26T08:01:05.649486 | 2019-12-18T23:43:49 | 2019-12-18T23:43:49 | 226,210,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | #!/usr/bin/env python3
from caproto.server import pvproperty, PVGroup, ioc_arg_parser, run
from textwrap import dedent
class SimpleIOC(PVGroup):
'''
'''
gap_des = pvproperty(value=0.1, name='GapDes')
gap_act = pvproperty(value=0.1, name='GapAct')
gap_go = pvproperty(value=0.1, na... | [
"klauer@slac.stanford.edu"
] | klauer@slac.stanford.edu |
9abbab7f6e63ff04054a132dc8aa3f551965b9c0 | 5d91193b44c196ebf93d2c2e72d6d0f6367e248d | /get_framelst.py | 87ef9bfc01937e11b57000aaa871469257b16bbb | [] | no_license | ankitshah009/Object_detection | d2711b7fa0130d373cd0d4c50eee1dd2ef174d64 | c1b102e91c5cd6e7cbfd4233ce44b76488834b67 | refs/heads/master | 2020-05-23T06:55:11.454669 | 2019-04-24T14:28:42 | 2019-04-24T14:28:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,972 | py | # coding=utf-8
# given video lst and annopath, get frame lst
import sys,os,argparse,random
import numpy as np
from tqdm import tqdm
from glob import glob
def get_args():
parser = argparse.ArgumentParser()
parser.add_argument("videolst")
parser.add_argument("annopath")
parser.add_argument("framelst")
parser.a... | [
"junweil@cs.cmu.edu"
] | junweil@cs.cmu.edu |
c1f07f0edeadb0c59d74edb802cb3cad95b6f4ee | b7aadb2e91566630c563c7a626f190767918dd60 | /2021/day07.py | 6442163286e702b506dd6f64a2255f4048214024 | [] | no_license | kratsg/advent-of-code | 54a66e3959bca340663c4bb8c8e5c0f1aaa088f9 | 672dfa34e811030c8d67e5466d1be218395e1ff3 | refs/heads/master | 2023-08-09T10:48:52.046121 | 2023-07-26T02:04:22 | 2023-07-26T02:04:22 | 225,422,271 | 1 | 0 | null | 2023-07-26T02:04:23 | 2019-12-02T16:40:18 | Python | UTF-8 | Python | false | false | 1,031 | py | import numpy as np
import re
def process_input(data):
return np.array(data.split(","), dtype="int64")
def get_min(data, cost_func):
mmax = data.max()
guesses = np.arange(mmax)
space = data[None, :]
space = np.repeat(space, guesses.size, axis=0)
space = np.abs(space - guesses[:, None])
c... | [
"kratsg@gmail.com"
] | kratsg@gmail.com |
a5e56765d9ee5e9dc75333b4f471e919d523b536 | c9c329f977138d518636221fde28bfb16e5caab2 | /code/model/print_dataset.py | f928813b655189c1c7e00ce93be05449164d1688 | [
"MIT"
] | permissive | AndreasMadsen/master-thesis | 1690f3ae76531f5b489f48d4980d85c1cbd8628b | 294042091ee595bff813422fc54805f474711594 | refs/heads/master | 2021-03-16T10:12:12.318947 | 2017-08-06T17:13:37 | 2017-08-06T17:13:37 | 78,628,027 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py |
import math
from typing import Optional
import sugartensor as stf
from code.model.abstract.model import Model
from code.dataset.abstract.text_dataset import TextDataset
class PrintDataset(Model):
limit: Optional[int]
def __init__(self, dataset: TextDataset, limit=None) -> None:
self.limit = datase... | [
"amwebdk@gmail.com"
] | amwebdk@gmail.com |
b7f8b005367c8a00cead3af960a174dbf9b4cea8 | dc3c88f1fe5c80147e4c52ee6ec3136307ec9702 | /navigateTo/test/filenameAndPositionTransform2_tempOff.py | 2b1b7b881c0edc914eadfc300facc5cdd607b1aa | [] | no_license | ypapax/all_sublime_plugins | 062f9b9992a093a02e6b905c1329c681c8532034 | 8b10e471233bd6c2e77907cf5569b0ddccfc88f9 | refs/heads/master | 2021-01-15T21:10:08.029750 | 2015-08-16T06:32:51 | 2015-08-16T06:32:51 | 40,391,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py |
import sys
import os
currentFolder = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.join(currentFolder, '..'))
sys.path.insert(0, os.path.join(currentFolder, '../util'))
import pyFind
import unittest
import color
import navigateToModel
class Test(unittest.TestCase):
def test_testName(self)... | [
"maxYefr@gmail.com"
] | maxYefr@gmail.com |
2eaddf49f34f8ba648aff47afb0f1151a0001cd9 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /StructuredFund/creationRedemption/YW_FJJJ_SZSS_013.py | d5767db35668897caff2bd0279727c88b72d8fd2 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,648 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/StructuredFund/serviceCreationRedemption")
from mainService import *
from QueryStructuredFundInfo import *
sys.path.append("/home/yh... | [
"418033945@qq.com"
] | 418033945@qq.com |
a58cfc35c7f19d872fc6e26e1a945d63a0d6e651 | a7d1030cb797b862b87ee3e8b8a206814d26eee2 | /videodelayaudiotrack | bb282504b4413d6187140e500d02885e84fd27d9 | [] | no_license | lmanul/sak | 8bdf98d2e463f3e171aa79b82557cd4d6ade2724 | 37604f1d0dc61373bd24d73d742afe9c754e62a3 | refs/heads/master | 2023-08-30T07:51:04.727676 | 2023-08-27T06:09:46 | 2023-08-27T06:09:46 | 144,207,029 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | #!/usr/bin/python3
import os
import sys
movie = sys.argv[1]
delay = sys.argv[2]
bup = movie + ".bup"
os.system("mv " + movie + " " + bup)
cmd = ("ffmpeg "
"-i " + bup + " "
"-itsoffset " + delay + " "
"-i " + bup + " "
"-map 0:v -map 1:a -c copy "
"" + movie)
#print(cmd)
os.system... | [
"m@ma.nu"
] | m@ma.nu | |
7fdfd3886944d61fb2cd2d19c39edfb03623fccb | 3ec84a6e34f9bc709cb203f8b3f668f2b6697e2a | /python20200322-master/class_Python기초/py15딕셔너리/py15_05_딕셔너리연산자.py | 1c10fc16e0189c0c15e79618d015d65ed622092c | [] | no_license | eopr12/pythonclass | 52079bd99358ac73664beed236659b97c8b63d40 | 2526fe255969a799f6c534c9db6bff9e4eccd877 | refs/heads/master | 2022-07-10T11:17:31.692754 | 2020-05-16T08:43:00 | 2020-05-16T08:43:00 | 263,377,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | # 딕셔너리 연산자
# + 결합 연산자 : X
# * 반복 연산자 : X
# [] 선택 연산자
# [:] 범위 선택 연산자
# == 일치 연산자
# del 삭제 연산자
# in in 연산자
# not in not in 연산자
# 딕셔너리 선언
dict1 = {"a": 1, "b": "가", "c": "0101"}
dict2 = {"a": 2, "d": "017"}
print("dict1 : ", dict1)
print("dict2 : ", dict2)
print()
# 딕셔너리 in ... | [
"kye9565@gmail.com"
] | kye9565@gmail.com |
b6170ce52bdfdb7b7d0ec309432ed36234f1ede4 | 7410903c6cd5ef35c592af00c934fb21c369cbf2 | /00_Code/01_LeetCode/26_RemoveDuplicatesfromSortedArray.py | fcc060229cdf16164868f0cf392025e2c31533d3 | [
"MIT"
] | permissive | KartikKannapur/Algorithms | f4e4726170599db0622d18e8c06a382e9bce9e77 | 66e3c8112826aeffb78bd74d02be1a8d1e478de8 | refs/heads/master | 2020-12-25T18:32:41.086518 | 2020-10-19T02:59:47 | 2020-10-19T02:59:47 | 93,961,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | """
Given a sorted array, remove the duplicates in-place
such that each element appear only once and return the
new length.
Do not allocate extra space for another array, you must
do this by modifying the input array in-place with O(1)
extra memory.
Example:
Given nums = [1,1,2],
Your function should return length ... | [
"kartikkannapur@gmail.com"
] | kartikkannapur@gmail.com |
c2c92531f87f2e83906b1db64814e5b1855baea7 | f3eaf09705b9dcc92f15d9aaa25aa739bd09c161 | /pyti/money_flow_index.py | 85ccab1a94b2264b5d55a3d95da79ba37045aa52 | [
"MIT"
] | permissive | BernhardSchlegel/pyti | 9f7171d660d6b4e4450d3b5882132204a4d3a3d7 | bfead587fe49f7662df475a28688d3ce649e2e9b | refs/heads/master | 2021-08-19T22:14:52.721190 | 2017-11-27T14:35:59 | 2017-11-27T14:35:59 | 111,237,071 | 1 | 0 | null | 2017-11-18T20:30:59 | 2017-11-18T20:30:59 | null | UTF-8 | Python | false | false | 1,480 | py | import numpy as np
import warnings
from pyti import catch_errors
from pyti.function_helper import fill_for_noncomputable_vals
from pyti.typical_price import typical_price
from pyti.money_flow import money_flow
def money_flow_index(close_data, high_data, low_data, volume, period):
"""
Money Flow Index.
Fo... | [
"kyle@collectiveidea.com"
] | kyle@collectiveidea.com |
bffa0c03e8811c70e7f4421b0003974ed2c4429e | 9009ad47bc1d6adf8ee6d0f2f2b3125dea44c0aa | /tcs-mvita-a.py | 33c71e2a1f3a822734916449b02ad1a18aaf0e18 | [] | no_license | luctivud/Coding-Trash | 42e880624f39a826bcaab9b6194add2c9b3d71fc | 35422253f6169cc98e099bf83c650b1fb3acdb75 | refs/heads/master | 2022-12-12T00:20:49.630749 | 2020-09-12T17:38:30 | 2020-09-12T17:38:30 | 241,000,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | import sys; import math; from collections import *
# sys.setrecursionlimit(10**6)
def get_ints(): return map(int, input().split())
def get_list(): return list(get_ints())
def printspx(*args): return print(*args, end="")
def printsp(*args): return print(*args, end=" ")
UGLYMOD = int(1e9+7); SEXYMOD = 998244353; MAXN =... | [
"luctivud@gmail.com"
] | luctivud@gmail.com |
8676adc573d7c4b079d5baab6d9d16c01faa66cd | bd5b3934969ebf4f693ceb4be17a68f9c3ebd414 | /beginPython/programmingCollectiveIntelligence/chapter5/socialnetwork.py | 11ce5a19d4d6ca402e578eb8a330bd2f3f1a792f | [] | no_license | lyk4411/untitled | bc46863d3bbb2b71edf13947f24b892c2cf43e1a | 875b7dfa765ffa40d76582d2ae41813d2e15c8bd | refs/heads/master | 2021-04-06T09:09:08.977227 | 2021-03-10T02:56:34 | 2021-03-10T02:56:34 | 124,990,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,490 | py | import math
from beginPython.programmingCollectiveIntelligence.chapter5 import optimization
people=['Charlie','Augustus','Veruca','Violet','Mike','Joe','Willy','Miranda']
links=[('Augustus', 'Willy'),
('Mike', 'Joe'),
('Miranda', 'Mike'),
('Violet', 'Augustus'),
('Miranda', 'Willy'), ... | [
"moneyflying_2006@hotmail.com"
] | moneyflying_2006@hotmail.com |
0dd88cd62595a0835872c85d47978eb458305456 | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /Codeforces/CR652/probA.py | debf34316a0b2927ad32e4478f6342ab6b7423ea | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | import sys
input = sys.stdin.readline
N = int(input())
A = [int(input()) for _ in range(N)]
for a in A:
print("YES" if a%4 == 0 else "NO") | [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
bd5c2f9c364c233a451ea5e73f780f6a73e7d150 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_289/ch47_2020_04_13_16_11_41_596785.py | ed600699bbc1bbdec6acaf871750b1d295e073c7 | [] | 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 | 231 | py | def estritamente_crescente(lista):
nova_lista = [lista[0]]
maior = lista[0]
for e in lista:
if e > maior and e not in nova_lista:
nova_lista.append(e)
maior = e
return nova_lista
| [
"you@example.com"
] | you@example.com |
aa3a24c5e0dea92ac53430654e8adea747c318e3 | 8b3bc4efea5663b356acbabec231d1d647891805 | /322/Solution.py | 2f68bfca817a2e2e39a5c6bc6211dad85d0a8755 | [] | no_license | FawneLu/leetcode | 9a982b97122074d3a8488adec2039b67e709af08 | 03020fb9b721a1c345e32bbe04f9b2189bfc3ac7 | refs/heads/master | 2021-06-18T20:13:34.108057 | 2021-03-03T05:14:13 | 2021-03-03T05:14:13 | 177,454,524 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | class Solution:
def coinChange(self, coins: List[int], amount: int) -> int:
coins.sort(reverse=True)
INVALID = 10**10
self.ans = INVALID
def dfs(s, amount, count):
if amount == 0:
self.ans = count
return
if s == len(coins): r... | [
"tracylu1996@gmail.com"
] | tracylu1996@gmail.com |
8ebdd9e65be3e8ea2c1fd1f030a8e54491034c69 | 115d568228ea4dd48bc567fac1afbe90a67e9a8c | /LSTM/SegWords/BI-LSTM/Demo2/2_word_count_df.py | 7c49cddcd85c9263054bcd3ea21cc3a8bf80e86d | [] | no_license | sunshinelu/NLPLearnNote | 6eb6b016ed18602be3a2fe8ce2f1bdb770efb226 | 76cfd64438e8acbf0aadc727675d7b17b63549e3 | refs/heads/master | 2020-03-08T07:03:25.652478 | 2018-05-06T14:13:02 | 2018-05-06T14:13:02 | 127,985,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | #-*- coding: UTF-8 -*-
from pyspark.sql import SparkSession
from pyspark.sql.functions import split, explode
from pyspark.sql.functions import col,desc
import sys
reload(sys)
sys.setdefaultencoding('utf8')
"""
解决以下报错:
UnicodeEncodeError: 'ascii' codec can't encode character u'\u4eca' in position 0: ordinal not in ran... | [
"sunlu900326@yeah.net"
] | sunlu900326@yeah.net |
c02ac0ab6a8528ce1992ce8f295f245f8b8ba50a | ef61c5f177ee44ac08325335fc28a12f3fccbb58 | /resource_management/tests/interactors/test_update_item_interactor.py | b78cf2fc4b15bec75d62de8d679d954cbc385126 | [] | no_license | bammidichandini/resource_management-chandini | 3c11c7b2eb5e2f8d3df5b55e4d3ee86a27ed5c3a | aa4ec50f0b36a818bebc2033cb39ee928e5be13c | refs/heads/master | 2022-12-01T19:59:25.366843 | 2020-07-23T09:10:42 | 2020-07-23T09:10:42 | 269,610,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,749 | py | import pytest
from unittest.mock import create_autospec
from resource_management.exceptions.exceptions import(
UserCannotManipulateException,
InvalidIdException
)
from resource_management.interactors.update_item_interactor import UpdateItemInteractor
from resource_management.interactors.storages.item_storag... | [
"chandini.bammidi123@gmail.com"
] | chandini.bammidi123@gmail.com |
a5cfaa079524e7fe88746e777eca50482b614083 | c81ea73e93df307d35191ab184a85d6c67c57112 | /dockers/data_conversion/pnet_data/Shapenet.py | 3de6a6cf016abd7290779f2f579b6d7050c5f9ee | [] | no_license | BlenderCN-Org/diplomka | 8d0503fc5902dfede8317aed84f5a17f691f687f | 575fe3f2436b9c511496c1dc019d9cc3423ba5f0 | refs/heads/master | 2020-05-22T15:42:00.143738 | 2019-05-07T07:37:46 | 2019-05-07T07:37:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,863 | py | from __future__ import print_function
import os
import json
import numpy as np
from mesh_files import find_files
'This code parses ShapeNet labels and categories'
decoding ={
0:'train',
1:'test'
}
def parse_shapenet_split(root_dir, categories):
files = find_files(root_dir,'obj')
split = {}
codi... | [
"miroslavkrabec@seznam.cz"
] | miroslavkrabec@seznam.cz |
408b8626355562f2795d96b9ce273ef02aa365b1 | 3fda3ff2e9334433554b6cf923506f428d9e9366 | /hipeac/site/forms/awards.py | 16e47872ec5d38530177b302b9932822c1a607ad | [
"MIT"
] | permissive | CreativeOthman/hipeac | 12adb61099886a6719dfccfa5ce26fdec8951bf9 | 2ce98da17cac2c6a87ec88df1b7676db4c200607 | refs/heads/master | 2022-07-20T10:06:58.771811 | 2020-05-07T11:39:13 | 2020-05-07T11:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | from django import forms
from hipeac.models import TechTransferApplication
class TechTransferApplicationForm(forms.ModelForm):
class Meta:
model = TechTransferApplication
readonly_fields = ("call", "applicant")
exclude = ("awarded", "team", "team_string", "awardee", "awarded_from", "award... | [
"eneko.illarramendi@ugent.be"
] | eneko.illarramendi@ugent.be |
fb79a6ee183beebe732f64ed7cc82a6292d8a01d | da370ba0df9700519139e1da54f3e7f38e9b7f5f | /.nox/tests/lib/python3.7/site-packages/tensorflow_core/_api/v1/sets/__init__.py | 743c607aa45bf3d4e10c8a3e683345eedbce512b | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | antonevenepoel/open_spiel | 90e3c7c6611cf508f2872237412fd67cf6cd10e0 | f2f0c786410018675fc40e9a5b82c40814555fa8 | refs/heads/master | 2021-03-15T20:57:00.562672 | 2020-05-15T16:10:23 | 2020-05-15T16:10:23 | 246,877,171 | 0 | 0 | Apache-2.0 | 2020-03-12T16:07:42 | 2020-03-12T16:07:41 | null | UTF-8 | Python | false | false | 1,068 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Tensorflow set operations.
"""
from __future__ import print_function as _print_function
import sys as _sys
from tensorflow.python.ops.sets_impl import set_difference
from tensorflow.py... | [
"36889203+antonevenepoel@users.noreply.github.com"
] | 36889203+antonevenepoel@users.noreply.github.com |
342875551c272bb827a74c6082a29ab92432c5d7 | c7b669b7352c9eee3d17f9e57b2fc0df0907f3eb | /Day05_ve/Day05_root/ex07/views.py | c1ec8a559ab9e1396ca7fbd71ce4113c022d09dd | [] | no_license | m1n-q/django-inside | 89da9514c7b4d6d2d883df720b317ce4ea536590 | 9b70915cd798285de096974f9eb271f338756250 | refs/heads/main | 2023-07-18T00:18:15.327135 | 2021-09-02T09:22:31 | 2021-09-02T09:22:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | from django.db.models import fields
from django.forms.models import ModelChoiceField
from django.http.request import RawPostDataException
from django.shortcuts import get_object_or_404, render, redirect
from .models import Movies
from datetime import date
from .forms import TitleDropDownForm
data = [
{'epi_nb': 1,... | [
"m1n_q@naver.com"
] | m1n_q@naver.com |
fe0ae2d3435cf66c96aecfb98f33fbd610aa998e | cde307025a2f2cc7ffcd1d43ea4f75b23876450d | /tools/accuracy_checker/accuracy_checker/representation/pose_estimation_representation.py | f765dd8890d0c585666f7edaa9f65cc0cd8b75b6 | [
"Apache-2.0"
] | permissive | ni/dldt | 1767885f6bf26d9d13ce10d2de63c1ae38275066 | ed372319eca66a534e1dd6a521613b0caf187b26 | refs/heads/2018 | 2020-04-14T19:29:31.549152 | 2019-07-03T16:22:59 | 2019-07-03T16:22:59 | 164,059,518 | 1 | 2 | Apache-2.0 | 2019-07-03T16:50:11 | 2019-01-04T04:53:33 | C++ | UTF-8 | Python | false | false | 2,381 | py | """
Copyright (c) 2019 Intel Corporation
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,... | [
"alexey.suhov@intel.com"
] | alexey.suhov@intel.com |
de28751d2f05042aa725e0faa417fa0f648899e1 | 2e95ec08f5f4f40179a5c1b86d604e0016e44ed5 | /modules/lti/selenium-tests | cd29d0c03a5afa81924ace1dea4ebde8ec16d459 | [
"ECL-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-free-unknown"
] | permissive | mm-dict/opencast | 0468bb3fec4e6b6fdeb8c642b75878f268701326 | c801305574d91fa5127069ca97ce8d131630fc05 | refs/heads/develop | 2022-10-15T14:48:55.135860 | 2021-03-16T06:32:56 | 2021-03-16T15:35:38 | 174,101,587 | 0 | 1 | ECL-2.0 | 2021-04-09T14:03:59 | 2019-03-06T08:14:37 | Java | UTF-8 | Python | false | false | 4,357 | #!/usr/bin/env python3
import os
import signal
import subprocess
import sys
import urllib3
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.common.by import By
from selenium.common.exceptions imp... | [
"lkiesow@uos.de"
] | lkiesow@uos.de | |
e0b07b096a8f81cfadbd0e342ca94935854a83fc | a9749d2b43d0944d6c6dd9f492f9475124f7bda7 | /trip_project/asgi.py | 22675b093af83f79582c9d652e2407e9edd68db1 | [] | no_license | TechAcademyBootcamp/docker_group_trip_project_final | a1f3383eaa0c11cd667cb42b4069d79c27f0aa42 | 87b1c54db0c32ca8ffebfee79c96e8082d93a535 | refs/heads/master | 2022-12-23T21:13:28.030443 | 2020-08-15T13:58:11 | 2020-08-15T13:58:11 | 287,755,974 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for trip_project project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"idris.sabanli@gmail.com"
] | idris.sabanli@gmail.com |
f4eac25d9eb6e1ba63e56b8a4f54043cac6c958a | 4fafaff2891c461e671c2e9ff0bc907f34e51d11 | /mock_api_service/handlers/__init__.py | 4a877ddeaa0430aedad86e35572342cac62bf265 | [
"MIT"
] | permissive | stanwood/stanwood-services | 9273b219a35118a97c794c9ca973a7297606c0b9 | a9a3afcb10c94877b656bbf48994e74560ab0166 | refs/heads/develop | 2023-01-08T13:13:34.454190 | 2020-10-26T09:34:15 | 2020-10-26T09:34:15 | 161,368,050 | 0 | 1 | MIT | 2022-12-26T20:15:52 | 2018-12-11T17:13:27 | Python | UTF-8 | Python | false | false | 1,118 | py | # The MIT License (MIT)
#
# Copyright (c) 2018 stanwood GmbH
#
# 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, mod... | [
"rivinek@gmail.com"
] | rivinek@gmail.com |
95bfb9f7dce892bad23546b6fb36513757a6a38d | f2b27ea4b474916e5b7cf1f55901cf6e01b6ee3c | /01-intro-to-python-for-data-science/3-functions-and-packages/list-methods.py | 243d80f1176ef31a2a8580d9c3459f5a401d645e | [] | no_license | ariscon/DataCamp_Files | a21f1265b6ad5aed04d9724be78b08634f81312e | f7e496391b1d4649bf1186b9a1c9b83fa9a50044 | refs/heads/master | 2020-04-13T04:27:01.650215 | 2018-12-30T22:51:43 | 2018-12-30T22:51:43 | 162,962,035 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | '''
List Methods
100xp
Strings are not the only Python types that have methods associated with them. Lists, floats,
integers and booleans are also types that come packaged with a bunch of useful methods.
In this exercise, you'll be experimenting with:
index(), to get the index of the first element of a list that match... | [
"noreply@github.com"
] | ariscon.noreply@github.com |
c5ed6cea9db1f13e21704c9ea75bd3bebe1105ff | a29f151197c85dee8f05493a8fe697549391fef2 | /nr07_Petle/nr01_While.py | 61d6393a34af1e41a255071bbc3582da8c5f0994 | [] | no_license | sswietlik/helloPython | 18a9cd3bb6ab9276415cbb018c9153c99abcb2f0 | d207567e7d5eabd9d7eef8c72538453ca3382021 | refs/heads/master | 2022-11-26T20:15:07.723910 | 2020-08-11T06:44:34 | 2020-08-11T06:44:34 | 261,168,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | i=1
imax=10
while i <= imax:
print(i,'I like Python')
i+=1 #inkrementacja - wzrost wartości
else:
print('Now i >= 10 which is equal =',i)
print()
i=10
imax=0
while i >= imax:
print(i,'I like Python')
i-=1 #inkrementacja - wzrost wartości
else:
print('Now i =' ,i+1) | [
"sswietlik@gmail.com"
] | sswietlik@gmail.com |
3f48c75a83478a6f2e6162e11a44c7b2a9991c01 | 3996539eae965e8e3cf9bd194123989741825525 | /HLTrigger/special/hltVertexFilter_cfi.py | 74d345e7c736901e41122b2d566898230cff8150 | [] | no_license | cms-sw/cmssw-cfipython | 01990ea8fcb97a57f0b0cc44a8bf5cde59af2d98 | 25ee4c810103c4a507ca1b949109399a23a524c5 | refs/heads/CMSSW_11_2_X | 2023-09-01T16:56:00.658845 | 2022-06-20T22:49:19 | 2022-06-20T22:49:19 | 136,184,115 | 1 | 0 | null | 2022-10-19T14:04:01 | 2018-06-05T13:47:28 | Python | UTF-8 | Python | false | false | 353 | py | import FWCore.ParameterSet.Config as cms
hltVertexFilter = cms.EDFilter('HLTVertexFilter',
saveTags = cms.bool(True),
inputTag = cms.InputTag('hltPixelVertices'),
minNDoF = cms.double(0),
maxChi2 = cms.double(99999),
maxD0 = cms.double(1),
maxZ = cms.double(15),
minVertices = cms.uint32(1),
mightGet = ... | [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
0f61cc2bf74a9daeaa372e8d895eb827b0f4c51e | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc014/B/3434820.py | c8a29309a421b7843eeff13968c4628e1bae89b7 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | a = int(input())
ar = []
for i in range(a):
if i == 0:
l = input()
ar.append(l)
elif i >= 1:
l = input()
if l not in ar:
g = ar[len(ar)-1]
if g[-1] == l[0]:
ar.append(l)
else:
if i % 2 == 0:
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
f980885c59295b07adddc72263a5ca45fc248bbe | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /HvsBiHLGcsv2ex3gv_21.py | 27f076a46baf1bbd6ad478da5f3e8c2f8b4326e8 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | """
Create a function that takes a string of four numbers. These numbers represent
two separate points on a graph known as the x-axis (horizontal axis) and
y-axis (vertical axis).
The order of coordinates in the string corresponds as follows:
"x1,y1,x2,y2"
Calculate the distance between x and y.
### Examples... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e97d26837ddc6e4afcbc7be7eccfd64f2f8c2d0c | 8d35b8aa63f3cae4e885e3c081f41235d2a8f61f | /discord/ext/dl/extractor/ninecninemedia.py | c8f06a5a7fd6cea1dee09b2557b576836f491f9b | [
"MIT"
] | permissive | alexyy802/Texus | 1255f4e54c8d3cc067f0d30daff1cf24932ea0c9 | c282a836f43dfd588d89d5c13f432896aebb540f | refs/heads/master | 2023-09-05T06:14:36.217601 | 2021-11-21T03:39:55 | 2021-11-21T03:39:55 | 429,390,575 | 0 | 0 | MIT | 2021-11-19T09:22:22 | 2021-11-18T10:43:11 | Python | UTF-8 | Python | false | false | 4,166 | py | # coding: utf-8
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
ExtractorError,
float_or_none,
int_or_none,
parse_iso8601,
try_get,
)
class NineCNineMediaIE(InfoExtractor):
IE_NAME = "9c9media"
_GEO_COUNTRIES = ["CA"]
_VALID_U... | [
"noreply@github.com"
] | alexyy802.noreply@github.com |
847604bb1728cd019c9ac30a76e5dab1444ce6ef | b59e093876a78054bf58ae16fa245bace5d924a2 | /sumRootToLeaf.py | 440b0d5f8cad9967a05dff0de66b480592ffe0d9 | [] | no_license | NeilWangziyu/Leetcode_py | 539551585413e1eebd6e6175ba3105c6bc17e943 | 4105e18050b15fc0409c75353ad31be17187dd34 | refs/heads/master | 2020-04-08T03:50:05.904466 | 2019-10-15T07:13:49 | 2019-10-15T07:13:49 | 158,991,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
res = 0
def sumRootToLeaf(self, root: TreeNode) -> int:
if not root:
return 0
def check(r, prev):
if no... | [
"17210720158@fudan.edu.cn"
] | 17210720158@fudan.edu.cn |
ca13ce134651146030ca7b810bd6fe3f400d0ae1 | a3c68eafdb433c981f2b90e86f895e4f121c69fb | /笔试/网易/工作.py | 9dc79be405079afd399903545e2bf08cd9880aba | [] | no_license | Cassiexyq/Program-Exercise | ccc236ea76ca99ddc6fe0c4c47edebc3d557cfad | e962cc3add047d61df275dd3e22a091018fd964a | refs/heads/master | 2020-04-25T20:27:33.561226 | 2019-09-22T15:29:35 | 2019-09-22T15:29:35 | 173,050,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | # -*- coding: utf-8 -*-
# @Author: xyq
import sys
def getMoney(job, case):
i = 0
while i < len(job):
if case > job[i][0]:
i += 1
continue
elif case == job[i][0]:
return job[i][1]
else:
return job[i-1][1]
if __name__ == '__main__':
N... | [
"cassiexuan_yq@163.com"
] | cassiexuan_yq@163.com |
724e7be38da948b7fe7428b7b9f0f20b45bb9f5d | d2e78884d09ee848c23ebd99dc70f4d7764c3d90 | /backend/blog/api/permissions.py | 9decc103e805c5af6346567a54f1ea9ab6a92933 | [] | no_license | Shpilevskiy/portfoliosite | abac997106da2cbece1250d1fe185cf682a97993 | bb4d05ae1f98f320bba3a5e131ce636a20a0e0ee | refs/heads/master | 2021-01-21T17:37:54.552493 | 2017-04-17T18:33:38 | 2017-04-17T18:33:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | from rest_framework import permissions
class IsAdminOrReadOnly(permissions.BasePermission):
"""
Object-level permission to only allow admins to edit object.
"""
def has_permission(self, request, view):
# Read permissions are allowed to any request,
# so we'll always allow GET, HEAD or... | [
"trikster1911@gmail.com"
] | trikster1911@gmail.com |
4db4cdc5e695e0ada4c49d733996f4064a86a7b3 | bcb36baf1b3d3eceffba383f72c2b5335cc7048d | /python_workout/b3-cohort/exercise-4/solution.py | c02170fda88ba6811a6d23f971fbbec8deb09ead | [] | no_license | paulghaddad/solve-it | 0aa1400cefab783f4ea757921811668fb2c9477c | e0f72be0fca82bc0378def5499f7158bafff975b | refs/heads/master | 2023-01-24T03:46:24.285793 | 2021-07-06T19:44:29 | 2021-07-06T19:44:29 | 200,406,482 | 2 | 0 | null | 2023-01-06T13:53:43 | 2019-08-03T18:07:53 | Python | UTF-8 | Python | false | false | 589 | py | import tarfile
from zipfile import ZipFile, ZIP_DEFLATED
def tar_to_zip(*tarfiles, zippath):
zipfile = zippath.joinpath("output.zip")
for archive in tarfiles:
with ZipFile(zipfile, "w", compression=ZIP_DEFLATED) as zf:
try:
with tarfile.open(archive, "r") as tf:
... | [
"paulh16@gmail.com"
] | paulh16@gmail.com |
4aacf51acfd14b4b0cc41be9d5cc638d9c5f0128 | a3c662a5eda4e269a8c81c99e229879b946a76f6 | /.venv/lib/python3.7/site-packages/pylint/test/functional/not_async_context_manager.py | 138d76dfa4ec88a2ab389f3a25e80e86c66ae726 | [
"MIT"
] | permissive | ahmadreza-smdi/ms-shop | 0c29da82c58b243507575672bbc94fb6e8068aeb | 65ba3f3061e2ac5c63115b08dadfe7d67f645fb6 | refs/heads/master | 2023-04-27T19:51:34.858182 | 2019-11-24T20:57:59 | 2019-11-24T20:57:59 | 223,616,552 | 6 | 2 | MIT | 2023-04-21T20:51:21 | 2019-11-23T16:09:03 | Python | UTF-8 | Python | false | false | 1,658 | py | """Test that an async context manager receives a proper object."""
# pylint: disable=missing-docstring, import-error, too-few-public-methods, useless-object-inheritance
import contextlib
from ala import Portocala
@contextlib.contextmanager
def ctx_manager():
yield
class ContextManager(object):
... | [
"ahmadreza.smdi@gmail.com"
] | ahmadreza.smdi@gmail.com |
590be27c21d2892fb35c2b992147bbbbeccbd885 | be61a9f30274514857ea34297719157f1e5b8447 | /fhir/resources/DSTU2/identifier.py | 0569f22163f3395c76497539207eadab38b101b8 | [
"BSD-3-Clause"
] | permissive | jwygoda/fhir.resources | ceff3a620100d2e875136b86d3e82816c0e60a33 | 5053565570d1ca992d9971d20db813c53fd350b9 | refs/heads/master | 2021-02-05T02:59:17.436485 | 2019-07-18T10:57:33 | 2019-07-18T10:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/Identifier) on 2019-05-14.
# 2019, SMART Health IT.
from . import element
class Identifier(element.Element):
""" An identifier intended for computation.
A technical identifier - id... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
76a759aab88a6908380d5ddba8206be9e95c1d2b | 57094f0d09fd3e74eeb511e94400c3ec97051ad3 | /Quax_dev_archive/quax_benchmarks/paper/partials/h2o/tz/write_integrals.py | cb72cc15ac722a6fcdd416892aa2dd4fba94485c | [] | no_license | adabbott/Research_Notes | cccba246e81065dc4a663703fe225fc1ebbf806b | 644394edff99dc6542e8ae6bd0ce8bcf158cff69 | refs/heads/master | 2023-05-12T20:26:58.938617 | 2021-06-02T17:15:35 | 2021-06-02T17:15:35 | 119,863,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import psi4
import psijax
from data import molecule, basis_name
print("Writing integrals up to order 6")
psijax.core.write_integrals(molecule, basis_name, order=1, address=(2,))
psijax.core.write_integrals(molecule, basis_name, order=2, address=(2,2))
psijax.core.write_integrals(molecule, basis_name, order=3, address... | [
"adabbott@uga.edu"
] | adabbott@uga.edu |
4c415b3ec63d4a2165d9d5d4a3f3e35d64d661f0 | ffad717edc7ab2c25d5397d46e3fcd3975ec845f | /Python/pyesri/EXAMPLES/generator_expression.py | f9cda64b7ec2904db00cb9a075fe09d51c9e57ec | [] | no_license | shaunakv1/esri-developer-conference-2015-training | 2f74caea97aa6333aa38fb29183e12a802bd8f90 | 68b0a19aac0f9755202ef4354ad629ebd8fde6ba | refs/heads/master | 2021-01-01T20:35:48.543254 | 2015-03-09T22:13:14 | 2015-03-09T22:13:14 | 31,855,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!/usr/bin/python
with open('../DATA/fruit.txt') as fh_fruit:
ufruits = ( fruit[:-1].upper() for fruit in fh_fruit )
print ufruits
print
for fruit in (ufruits):
print fruit
| [
"shaunakv1@gmail.com"
] | shaunakv1@gmail.com |
788b4fa8e1ec138c4849f8fa237343068b066d43 | e9676921804bf8be3bfff6b143122103a0d82ab4 | /DsAl/16.bst.py | 672ff282c71568f47b7704c66e878e59bd21d802 | [] | no_license | gaogep/LeetCode | b69d07a8bc24bc23df44a6a5b3b123111d6bbeb9 | 15e5ff53c91ba96425b87ecaac9aa2d6b6e34dfe | refs/heads/master | 2020-04-28T16:26:15.621875 | 2019-10-08T13:15:03 | 2019-10-08T13:15:03 | 175,410,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | class bsTreeNote:
def __init__(self, value, left=None, right=None):
self.value = value
self.left = left
self.right = right
def insert(self, root, value):
if not root:
root = bsTreeNote(value)
elif value > root.value:
root.right = self.insert(root.... | [
"zpf1893@qq.com"
] | zpf1893@qq.com |
e4e1a7700a0795528096b3f22ebd6090b36b6e6e | c057efccbe72ee5b7bb9e3b67a3108a5ff7688c7 | /plugin.py | 96d9826b65a7d7652793e5136165399fe2e92afc | [
"Apache-2.0"
] | permissive | boundary/meter-plugin-http | ab21776d0fde1dcbbdb96a1b3a99a1a604d70f7f | 66f0d1419079de603eb5e85a05a612dcf06c5442 | refs/heads/master | 2021-01-20T22:19:36.738741 | 2016-08-16T16:04:19 | 2016-08-16T16:04:19 | 64,500,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,379 | py | # Copyright 2016 BMC Software, 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 wri... | [
"davidg@boundary.com"
] | davidg@boundary.com |
7d32349da856638f0f57af78ab277cde0e918467 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/30/usersdata/107/10113/submittedfiles/atividade.py | 8a0431350d9add7a1c5d68147211722e5eff837a | [] | 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 | 171 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
s=0
n=input('digite o valor de n:')
j=n
for i in range(1,n+1,1):
s=(i/j)+s
j=j-1
print('%5.f') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7318f71985e8da7fafb617ea385d4c47ab971427 | bccfab4d853f7417401a084be95de293e66ccd2a | /mySpider/spiders/Exhibition153.py | 1670a9699269b0a141b80620ef828bef1ab0c6dc | [] | no_license | CS1803-SE/The-First-Subsystem | a8af03ce04a9de72a6b78ece6411bac4c02ae170 | 4829ffd6a83133479c385d6afc3101339d279ed6 | refs/heads/main | 2023-05-06T02:32:08.751139 | 2021-05-24T06:09:37 | 2021-05-24T06:09:37 | 363,400,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | #
from ..items import *
from ..str_filter import *
class Exhibition153(scrapy.Spider):
name = "Exhibition153"
allowed_domains = ['baike.baidu.com']
start_urls = ['https://baike.baidu.com/item/%E9%B8%A6%E7%89%87%E6%88%98%E4%BA%89%E5%8D%9A%E7%89%A9%E9%A6%86/1880085?fr=aladdin#4']
custom_settings = {
... | [
"1300978939@qq.com"
] | 1300978939@qq.com |
fb0bed573dce05eb362447229f7062934674863c | fdbb74a95924e2677466614f6ab6e2bb13b2a95a | /third_party/python/Lib/idlelib/idle_test/test_autoexpand.py | e5f44c468713258c1f2d5ca893d3ace1055eb6ce | [
"Python-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"ISC"
] | permissive | jart/cosmopolitan | fb11b5658939023977060a7c6c71a74093d9cb44 | 0d748ad58e1063dd1f8560f18a0c75293b9415b7 | refs/heads/master | 2023-09-06T09:17:29.303607 | 2023-09-02T03:49:13 | 2023-09-02T03:50:18 | 272,457,606 | 11,887 | 435 | ISC | 2023-09-14T17:47:58 | 2020-06-15T14:16:13 | C | UTF-8 | Python | false | false | 4,640 | py | "Test autoexpand, coverage 100%."
from idlelib.autoexpand import AutoExpand
import unittest
from test.support import requires
from tkinter import Text, Tk
class Dummy_Editwin:
# AutoExpand.__init__ only needs .text
def __init__(self, text):
self.text = text
class AutoExpandTest(unittest.TestCase):
... | [
"jtunney@gmail.com"
] | jtunney@gmail.com |
b31a41894de26ec451012f0dd4b0ebcb3a9c4ec2 | df670d224688e57a170dc3c8d1a800dfea84b578 | /src/utils/polynomial.py | 95fd3e4de67967dad13c975a01d7077e1fff2576 | [] | no_license | dtbinh/drake-mpc | fb6cc2de6f03eb9c04d310af3b6ea047193a31dd | 2a89ae9e7f1e0d4bb2aeed9a4b5623c72a23c7a4 | refs/heads/master | 2020-04-05T00:39:32.781556 | 2017-05-04T21:33:18 | 2017-05-04T21:33:18 | 156,405,244 | 1 | 0 | null | 2018-11-06T15:31:53 | 2018-11-06T15:31:52 | null | UTF-8 | Python | false | false | 709 | py | from __future__ import absolute_import, division, print_function
import unittest
class Polynomial(object):
def __init__(self, coeffs):
self.coeffs = coeffs
def __getitem__(self, idx):
return self.coeffs[idx]
def __call__(self, x):
return self.evaluate(x)
@property
def de... | [
"robin.deits@gmail.com"
] | robin.deits@gmail.com |
8df4c6881e950531915aa37703150a414870c28d | 4c67693e0a256ff9e2fc37153f0b0ac0a39a7ec3 | /pywick/models/segmentation/mnas_linknets/resnext.py | 6885c978edbe4aa414db8bbb045e025fff3556bf | [
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | liuzhidemaomao/pywick | 666276fdb7a5ee8168fab3f7c234c0af03f0225c | c42ee9728b8f85decc5b46b090524623d12b0580 | refs/heads/master | 2023-04-30T09:40:51.329833 | 2021-05-17T15:46:51 | 2021-05-17T15:46:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,734 | py | import torch.nn as nn
import torch.utils.model_zoo as model_zoo
from .resnext101_32x4d_features import resnext101_32x4d_features,resnext101_32x4d_features_blob
__all__ = ['ResNeXt101_32x4d', 'resnext101_32x4d']
pretrained_settings = {
'resnext101_32x4d': {
'imagenet': {
'url': 'http://data.lip... | [
"Alexei.Samoylov@digikey.com"
] | Alexei.Samoylov@digikey.com |
bb02ae2ce1559c18b22645a7e650a06a32c59e24 | ad4b5ffe1ef0195084e16af58af5d4fcbb84deeb | /kakocase/utils.py | 2691a0fff334051be53e07d62d7f41012c83948c | [] | no_license | arthemis24/Project2 | 53b7a4b356b8b25bca51cef255a51bfaecf456f9 | 1fba9693c255380f3782d16a4a28a1bd900b3c3c | refs/heads/master | 2020-05-22T16:53:53.791427 | 2019-05-04T13:11:16 | 2019-05-04T13:11:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,961 | py | # -*- coding: utf-8 -*-
from django.utils.translation import gettext as _
from ikwen.core.models import Application
from ikwen.core.models import ConsoleEventType
def get_cash_out_requested_message(member):
"""
Returns a tuple (mail subject, mail body, sms text) to send to
member upon generation of an in... | [
"rsihon@gmail.com"
] | rsihon@gmail.com |
bfb47756c26332000f75a76d85108bb4cd6c49d7 | 63b0fed007d152fe5e96640b844081c07ca20a11 | /Other/動的計画法/桁dp(3の数字が含まれる数の総数).py | f7bd4271ed471ce670e17b341bcb058f2568f23a | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | n = int(input())
s = str(n)
m = len(s)
dp = [[[0]*2 for _ in range(2)] for _ in range(m+1)]
dp[0][0][0] = 1
for i in range(m):
D = int(s[i])
for smaller in range(2):
limit = 10 if smaller else D+1
for j in range(2):
for x in range(limit):
dp[i+1][smaller | (x < D)][j... | [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
83f7c470c383db4eaf3770e53a9e2d177438c9e3 | 10fdd652b0218d966caab09741418ecbbbe88551 | /Wall.py | 0e9fe2af50f1aea973b841e5250b5edf6834a449 | [] | no_license | flowmin/Autonomous-Car-Simulator | 1c6c260bf4f2dc50da121df2c69b5ebd1493f770 | 14cf75cd19c1cba948475a562fd089e31692bce0 | refs/heads/master | 2020-06-01T12:34:03.641636 | 2019-06-07T14:11:45 | 2019-06-07T14:11:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | import pygame
import numpy as np
class WallSprite(pygame.sprite.Sprite):
hit = pygame.image.load('images/collision.png')
def __init__(self, position, width, height):
super(WallSprite, self).__init__()
black_wall = 255 * np.ones((width, height, 3))
self.normal = pygame.surfarray.make... | [
"x2ever@naver.com"
] | x2ever@naver.com |
417d384633a90741c5cb812eafb4fa8dec8a1489 | 3da7f8a1fae54b4aa6f081e049e03ce28c0d7381 | /app/blue_print/route_comment.py | 83c8f3c68160be7be8295366fac94f83f0ef2a9c | [] | no_license | 1751605606/PersonalBlog | 96259196848418be5344520dda4b94b28f4d85e0 | 29b364897075e0ea6ce358ce0041b5ce29262e32 | refs/heads/master | 2022-09-28T11:05:54.016739 | 2019-12-17T13:19:15 | 2019-12-17T13:19:15 | 222,211,569 | 1 | 0 | null | 2022-09-16T18:13:09 | 2019-11-17T07:17:04 | Python | UTF-8 | Python | false | false | 5,539 | py | # 导入蓝本 blue_print
from . import blue_print
from . import errors
from flask import *
import json
import time
from app.models import *
from app import db
from . import utils
"""
评论文章
请求URL:/api/article/{article_id}/comment
请求方式:POST
参数:
参数名 必选 类型 说明
text 是 string 评论文本
"""
@blue_print.route('/api/arti... | [
"16302010030@fudan.edu.cn"
] | 16302010030@fudan.edu.cn |
97e1c8d782b936c10e607d601eee54b552d4133d | 7f523c407d45d116860eff67f079e807f2b53339 | /src/third_party/beaengine/tests/0f91.py | 96be8c460f023211152f96238b8b02b24aa2a6d8 | [
"MIT",
"LGPL-3.0-only",
"LGPL-2.0-or-later"
] | permissive | 0vercl0k/rp | a352c96bfe3715eb9ce8c5942831123e65289dac | b24e7f58a594aaf0ce3771745bf06862f6ecc074 | refs/heads/master | 2023-08-30T08:03:14.842828 | 2023-08-09T00:41:00 | 2023-08-09T00:41:00 | 3,554,173 | 1,557 | 239 | MIT | 2023-08-09T00:41:02 | 2012-02-26T19:26:33 | C++ | UTF-8 | Python | false | false | 3,215 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# 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.
#
# This progra... | [
"noreply@github.com"
] | 0vercl0k.noreply@github.com |
68b714ec5e14493309bf92f0c6305be3afa2c4b1 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_hostage.py | 67f6c4d78fe02cafc10da3bfdeced8079067766b | [
"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 | 401 | py |
#calss header
class _HOSTAGE():
def __init__(self,):
self.name = "HOSTAGE"
self.definitions = [u'someone who is taken as a prisoner by an enemy in order to force the other people involved to do what the enemy wants: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c6fdc7179fbc04c6e5d716acddca67959e76a10d | c79737296bdf4b3a969ab5ceb69198daf66def0e | /python/solutii/alexandru_antochi/fill.py | 6342ce5b1124553d4f2690c8b198795e86bd6c41 | [
"MIT"
] | permissive | ilieandrei98/labs | 96c749072b6455b34dc5f0bd3bb20f7a0e95b706 | cda09cbf5352e88909f51546c2eb360e1ff2bec1 | refs/heads/master | 2020-04-26T03:23:48.220151 | 2019-03-01T08:56:43 | 2019-03-01T08:56:43 | 173,265,757 | 0 | 0 | MIT | 2019-03-01T08:37:14 | 2019-03-01T08:37:14 | null | UTF-8 | Python | false | false | 2,827 | py | #!/usr/bin/env python
# *-* coding: UTF-8 *-*
"""Tuxy dorește să împlementeze un nou paint pentru consolă.
În timpul dezvoltării proiectului s-a izbit de o problemă
pe care nu o poate rezolva singur și a apelat la ajutorul tău.
El dorește să adauge o unealtă care să permită umplerea unei
forme închise.
Exemplu:
Po... | [
"mmicu@cloudbasesolutions.com"
] | mmicu@cloudbasesolutions.com |
fec75141a74c5cd2e453737d37d33ec40263685c | 7ebbc52688d9cc960647dab197afb8753c300abc | /hardlinker/gstats.py | 8ee7fb8f3c884687e4976b3e643fa388de9d4955 | [] | no_license | ralphbean/hardlinker | 70f3949b27f64a84c0e9ea158f28f96325d6fcea | 8cd3e1270ba83bf97d1a9d42f50bd4d04d67b1fd | refs/heads/master | 2021-01-02T09:52:21.212395 | 2011-01-26T18:02:21 | 2011-01-26T18:02:21 | 1,295,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,068 | py |
import time
import stat
def humanize_number( number ):
if number > 1024 * 1024 * 1024:
return ("%.3f gibibytes" % (number / (1024.0 * 1024 * 1024)))
if number > 1024 * 1024:
return ("%.3f mibibytes" % (number / (1024.0 * 1024)))
if number > 1024:
return ("%.3f kibibytes" % (numb... | [
"ralph.bean@gmail.com"
] | ralph.bean@gmail.com |
5640f7d894827ab0e6136a2d3f95f3c8ae6068a0 | 108e3c5034e9aa2642a902e5e8d79b913b8af275 | /Tag_25.py | 0b3835778118f53470b80d2b574457c72fad9990 | [
"Apache-2.0"
] | permissive | Gravitar64/Advent-of-Code-2015 | 8d4e6fb267ddb80f055a70dd9ada19b92a0571f0 | 423ef65815ecd92dc15ae8edd64c2af346bf8fcc | refs/heads/main | 2023-02-17T00:29:20.666093 | 2021-01-20T14:04:32 | 2021-01-20T14:04:32 | 325,107,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from time import perf_counter as pfc
def solve(start, col, row):
for _ in range(sum(range(row + col -1)) + col - 1):
start = (start * 252533) % 33554393
return start
puzzle = (3029,2947)
start = pfc()
print(solve(20151125, *puzzle), pfc()-start)
| [
"gravitar@web.de"
] | gravitar@web.de |
178fe324646dd6c35fa2263db3e17f357e17e46f | b4af235b9dfe43b88dc61396bd2d73be2f2b2dd7 | /data_custom_backend/llib/encryption_utility/__init__.py | 73b28fbbfdb210aaf4c94e22fa254bdb8f4acd15 | [] | no_license | marjeylee/cmdb | 0b4c9b2f3a28de36582e11c21fc76bc601090a29 | ee41eb80d6b8823cfd764920ed8aa4c682d9a013 | refs/heads/master | 2023-02-08T02:03:05.462001 | 2021-01-03T10:25:38 | 2021-01-03T10:25:38 | 320,955,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: __init__.py
Description :
Author : 'li'
date: 2020/10/10
-------------------------------------------------
Change Activity:
2020/10/10:
-------------------------------------------------
"""
| [
"marjey_lee@163.com"
] | marjey_lee@163.com |
31440922ef9878423f54a060a61a4a1836d90997 | 5a648d5c62e640a8df8d18549eaf6e84a36dbd28 | /Palindrome Pairs.py | 2141f924432fb6e6abf19d0ff14e3e5fecf0bd76 | [
"MIT"
] | permissive | quake0day/oj | f5f8576f765a76f0f3a8b2c559db06279e93ef25 | c09333d1738f8735de0d5d825db6f4b707585670 | refs/heads/master | 2021-01-21T04:27:34.035319 | 2016-03-30T02:19:15 | 2016-03-30T02:19:15 | 30,592,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | class Solution(object):
def palindromePairs(self, words):
"""
:type words: List[str]
:rtype: List[List[int]]
"""
self.pair = []
def helper(i, words):
word = words[i]
for j in xrange(len(words)):
if j != i:
c ... | [
"quake0day@gmail.com"
] | quake0day@gmail.com |
daf9eb5288647fd835992ada07c8d1d27776bcf3 | f569978afb27e72bf6a88438aa622b8c50cbc61b | /douyin_open/PoiProductProduct/models/spu_attributes1212_breakfast.py | ed2898d773c346559088e3e55cd46a1b4dd20a15 | [] | no_license | strangebank/swagger-petstore-perl | 4834409d6225b8a09b8195128d74a9b10ef1484a | 49dfc229e2e897cdb15cbf969121713162154f28 | refs/heads/master | 2023-01-05T10:21:33.518937 | 2020-11-05T04:33:16 | 2020-11-05T04:33:16 | 310,189,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,536 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class SpuAttri... | [
"strangebank@gmail.com"
] | strangebank@gmail.com |
adaedf4367df2691ef0bf7c4a75bc80638bc00e3 | 6e373b40393fb56be4437c37b9bfd218841333a8 | /Level_3/Lecture_11/enroll/views.py | 4b94d5059f8ec5c334813c0fb8634b076279cc03 | [] | no_license | mahto4you/Django-Framework | 6e56ac21fc76b6d0352f004a5969f9d4331defe4 | ee38453d9eceea93e2c5f3cb6895eb0dce24dc2b | refs/heads/master | 2023-01-22T01:39:21.734613 | 2020-12-04T03:01:17 | 2020-12-04T03:01:17 | 318,383,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from django.shortcuts import render
#from django.http import HttpResponseRedirect
from .forms import StudentRegistration
# Create your views here.
def thanks(request):
return render(request, 'enroll/success.html')
def showformdata(request):
if request.method == 'POST':
fm = StudentRegistration(request.... | [
"mahto4you@gmail.com"
] | mahto4you@gmail.com |
82df7ecaa93dbebc557490d06923d421146c5441 | 7aa6d2e4a38aa537430b59ccb57cc3275a631e70 | /008-GUI/tk_gui.py | b93ee3c66ddef76c513af88055a38555eeefbc8d | [] | no_license | dcronkite/pytraining | d21c5064f98ef2afa64b0c9c6123416adb47cab1 | 46a427336b2621450d035c4e727bde0210937098 | refs/heads/master | 2018-11-04T22:03:33.061329 | 2018-08-26T23:34:22 | 2018-08-26T23:34:22 | 111,366,979 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | import tkinter as tk
import os
class SearchApp:
def __init__(self, parent):
self.parent = parent
# path variable
self.path = tk.StringVar()
self.path_label = tk.StringVar()
self.path_label.set('Path')
self.label = tk.Label(parent, textvariable=self.path_label)
... | [
"dcronkite@gmail.com"
] | dcronkite@gmail.com |
46fed765c04601a83ddf273604cf0d9f85fe6c53 | 27ba65fee880e1c1027aa997497736cc25960c10 | /pubnub/endpoints/history_delete.py | 2bbe8d8a76570343364a87fec96a3c40776dd97c | [
"MIT"
] | permissive | gonzalobf/python | 3ce0e2a187a27ecac67f974845bda549b2dfadb9 | defdfa85ad3a82a5ff99921db08843b185f44286 | refs/heads/master | 2020-04-28T15:50:42.220906 | 2018-09-27T08:17:36 | 2018-09-27T08:17:36 | 175,390,892 | 0 | 0 | null | 2019-03-13T09:43:03 | 2019-03-13T09:43:02 | null | UTF-8 | Python | false | false | 1,655 | py | from pubnub import utils
from pubnub.enums import HttpMethod, PNOperationType
from pubnub.endpoints.endpoint import Endpoint
class HistoryDelete(Endpoint): # pylint: disable=W0612
HISTORY_DELETE_PATH = "/v3/history/sub-key/%s/channel/%s"
def __init__(self, pubnub):
Endpoint.__init__(self, pubnub)
... | [
"alexander@pubnub.com"
] | alexander@pubnub.com |
b65debed0ea8fa6c4f73201b75cbd32381dce2f2 | f9603ceb5b3bc5b5a22f395dd7281346dc09bd66 | /doing-math-with-python/temperature_trending.py | 11154d94325465dfc823dc96c6ae832a2b900115 | [
"MIT"
] | permissive | liulixiang1988/data-science-learning | 881ec9d479bcd4e1e8a7e4f0d243d469925c68aa | 298462fb1e6b2d4c1b2359d25d722118780bb758 | refs/heads/master | 2022-10-18T17:22:56.372435 | 2022-09-26T01:18:10 | 2022-09-26T01:18:10 | 51,692,336 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | # -*- coding: utf-8 -*-
"""
Comparing the Monthly Temperature Trends of New York City.
"""
from pylab import legend, plot, show, title, xlabel, ylabel, savefig
months = range(1, 13)
nyc_temp_2000 = [31.3, 37.3, 47.2, 51.0, 63.5, 71.3, 72.3, 72.7, 66.0, 57.0, 45.3, 31.1]
nyc_temp_2006 = [40.9, 35.7, 43.1, 55.7, 63.1, 7... | [
"liulixiang1988@gmail.com"
] | liulixiang1988@gmail.com |
38f04c57520c530cbe8fe46c06cda7b714784c40 | b027502c2e35f7885a9f7cd79ed6e1e1b8485c2f | /Dynamic Programming/424.Longest Repeating Subsequence.py | 9e139b00bae208a7f873360f229a84e8f258fef4 | [] | no_license | DDR7707/Final-450-with-Python | eb1cd0ee890b64224e8996158d67f9820276d94a | b64717af405fe256bcd791a619cb9fb4ca9178cb | refs/heads/main | 2023-09-05T14:39:39.369036 | 2021-11-16T13:16:32 | 2021-11-16T13:16:32 | 403,002,363 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | def solve(arr , n):
dp = [["" for i in range(n+1)] for i in range(n+1)]
for i in range(1,n+1):
for j in range(1,n+1):
if arr[i-1] == arr[j-1] and i != j:
dp[i][j] = dp[i-1][j-1] + str(arr[i-1])
else:
if len(dp[i-1][j]) > len(dp[i][j-1]):
... | [
"noreply@github.com"
] | DDR7707.noreply@github.com |
6fc9ce638afcbbb5c89f582625d37f7dc94eb5cf | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901100105/1001S02E05_string.py | 3bc5ad408f0f53da57c1c291f1da1501f05962c0 | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 1,999 | py | sample_text = '''
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Al... | [
"40155646+seven-tears@users.noreply.github.com"
] | 40155646+seven-tears@users.noreply.github.com |
92a20a113f53a824187834fee57bc2bdf75debd6 | bca5b38ed3fd86257a4f67c47929454abb7b973d | /articles/models.py | 7781279a6450bf8e40fd5edd549fed0ac713260b | [
"MIT"
] | permissive | mnosinov/myarticles | a63574c86e14481823be4fbe019bf0d980e32266 | 491a0a8cd0896db15f912422e82d6b3626fc21c3 | refs/heads/master | 2023-06-17T16:00:09.007797 | 2021-07-11T04:43:28 | 2021-07-11T04:43:28 | 325,610,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | import datetime
from django.db import models
from django.utils import timezone
class Article(models.Model):
article_title = models.CharField('название статьи', max_length=200)
article_text = models.TextField('текст статьи')
pub_date = models.DateTimeField('дата публикации')
def __str__(self):
... | [
"mnosinov@gmail.com"
] | mnosinov@gmail.com |
3127914dff44b786682fdae278b4de7f542936bb | cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde | /H/HowManyNumbersAreSmallerThantheCurrentNumber.py | 489621f12bbac8b2f5013ac1ac723418a2e4284d | [] | no_license | bssrdf/pyleet | 8861bbac06dfe0f0f06f6ad1010d99f8def19b27 | 810575368ecffa97677bdb51744d1f716140bbb1 | refs/heads/master | 2023-08-20T05:44:30.130517 | 2023-08-19T21:54:34 | 2023-08-19T21:54:34 | 91,913,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | '''
-Easy-
Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it.
That is, for each nums[i] you have to count the number of valid j's such that j != i and nums[j] < nums[i].
Return the answer in an array.
Example 1:
Input: nums = [8,1,2,2,3]
Output: [4,0,1,1,3]
Explan... | [
"merlintiger@hotmail.com"
] | merlintiger@hotmail.com |
6c63a9e2056b4d35f2a5c4832a0d9104ab0171e3 | 1baf76e19a719ebb2207f2af2924fc53349d6a60 | /internship3_env/bin/stubtest | 4af2071cab1dcc685ef022e0c89155b1d1a4e800 | [
"MIT"
] | permissive | Zamy97/internship_3 | 4deb0df914e68930b23faa6bf7e0ca7fd342fbd8 | 9c9db252b6818316e9864839075bb1d23714f7e4 | refs/heads/master | 2023-01-01T15:33:45.980776 | 2020-10-28T02:47:34 | 2020-10-28T02:47:34 | 307,861,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | #!/Users/zamy/Desktop/Python_Projects/excl_intrnship_projects/excl_internship_0/internship_3/internship_3/internship3_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from mypy.stubtest import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exi... | [
"aktarzaman@berkeley.edu"
] | aktarzaman@berkeley.edu | |
a550d8bfc2907d63a510c5691eb997a83278d4a2 | a59d55ecf9054d0750168d3ca9cc62a0f2b28b95 | /.install/.backup/lib/googlecloudsdk/gcloud/sdktools/auth/activate_service_account.py | 3a68cfc06ba70907a9849cbf38578bc627c075c3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/google-cloud-sdk | bb2746ff020c87271398196f21a646d9d8689348 | b34e6a18f1e89673508166acce816111c3421e4b | refs/heads/master | 2022-11-26T07:33:32.877033 | 2014-06-29T20:43:23 | 2014-06-29T20:43:23 | 282,306,367 | 0 | 0 | NOASSERTION | 2020-07-24T20:04:47 | 2020-07-24T20:04:46 | null | UTF-8 | Python | false | false | 3,582 | py | # Copyright 2013 Google Inc. All Rights Reserved.
"""A simple auth command to bootstrap authentication with oauth2."""
import getpass
import os
from oauth2client import client
from googlecloudsdk.calliope import base
from googlecloudsdk.calliope import exceptions as c_exc
from googlecloudsdk.core import config
from ... | [
"alfred.wechselberger@technologyhatchery.com"
] | alfred.wechselberger@technologyhatchery.com |
54763bc6a74f3be295892149bc32620155643671 | 5af4b89949a703bcc53bdc25a19a5ff079817cce | /papermerge/core/tasks.py | 4bca26b4fb1817757583f67f96c83700b9d85284 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | 0xpointer42/papermerge | 4b176a865ffa3044605844406fecd3ac5f3c5657 | 9bea16e96d460d00229e813f7063e45bfd07b4e2 | refs/heads/master | 2022-09-09T09:18:56.596921 | 2020-06-02T15:45:11 | 2020-06-02T15:45:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | import logging
from celery import shared_task
from papermerge.core.ocr.page import ocr_page as main_ocr_page
from .models import Document, Folder, Page
logger = logging.getLogger(__name__)
@shared_task(bind=True)
def ocr_page(
self,
user_id,
document_id,
file_name,
page_num,
lang,
):
# ... | [
"eugen@django-lessons.com"
] | eugen@django-lessons.com |
cdc2a7f6a23a4895dfcb4eced43ce280b930a562 | fcbedcc2f7483a4b3ce9111c9c889bd4a5079496 | /client-side/xmlparsing1.py | a76da73da1ac0deaa993dd2df42f8f5895d959d6 | [] | no_license | kevlab/RealPython2 | aab94de91d0824290bfce4a318f57f4fe5282f19 | a85f92563b414830431a79d2448682da0c12d645 | refs/heads/master | 2021-01-10T19:10:46.035344 | 2015-05-27T02:24:48 | 2015-05-27T02:24:48 | 31,555,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from xml.etree import ElementTree as et
doc = et.parse("cars.xml")
print doc.find("CAR/MODEL").text
print doc.find("CAR[2]/MODEL").text
| [
"greenleaf1348@gmail.com"
] | greenleaf1348@gmail.com |
f7a505ab440fc2a1abcaf9046419cebb44cfd10a | c9508dad39497c492a8bbb5ea7b59216e057355d | /code/visualize/render_server.py | d74dfc4fde0061e1905a0a95ce9243a4156c437b | [
"MIT"
] | permissive | ZziTaiLeo/lets_face_it | 4acaafb5a140f500dcacd6cf9763d75bbed878f1 | fefba5e82d236f89703449bd517cfa5867fda09f | refs/heads/master | 2023-05-17T12:38:12.648823 | 2021-06-17T07:22:51 | 2021-06-17T07:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,941 | py | import gc
import io
import os
import subprocess
import tempfile
from pathlib import Path
from uuid import uuid4
import ffmpeg
import numpy as np
import torch
from fastapi import Body, FastAPI, Request
from fastapi.responses import StreamingResponse
try:
subprocess.check_call(
["python3", Path(__file__).pa... | [
"pjjonell@kth.se"
] | pjjonell@kth.se |
c3664d0fa77a72e3f65dbe20c18868e46767524e | 0d0624c7a29b6bcb0f0bc29be7a483689747fe13 | /app_files/__init__.py | d84087d3401bf4fab33a5d82f899bb0bd4494397 | [] | no_license | jodzi/flavor_fave | ceb2820725883a3a7f8d846879ee37955a8b7e5d | a4df3db96fba2ad5b6453885f551d55bfbe08812 | refs/heads/master | 2020-12-30T23:09:47.844988 | 2015-06-29T17:02:05 | 2015-06-29T17:02:05 | 37,070,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 20 09:53:33 2015
@author: josephdziados
"""
from flask import Flask
app = Flask(__name__)
from app import views | [
"="
] | = |
8c3e3a34b398c535b54f0bcee53dfb699fb60a91 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_115/ch4_2020_03_09_13_05_19_379298.py | 1b92e628fc3abf661f8fe5e93c2d38a0be42a390 | [] | 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 | 281 | py | def classifica_idade(idade):
if (0<=idade<=11):
return('crianca')
elif (12<=idade<=17):
return('adolescente')
elif (idade<=18):
return('adulto')
elif (idade<0):
return('idade não válida')
idade = 6
print(classifica_idade(idade))
| [
"you@example.com"
] | you@example.com |
c699054f77afe0ff7ad3bd018dfa63a97b80081a | 8edd63a42469bf09fcad1c1070995ceda6e49646 | /env/lib/python2.7/site-packages/observations/r/nswdemo.py | 3eded652bd1a15becf9c27c03069f0ed595c733b | [] | no_license | silky/bell-ppls | fa0b5418f40dab59de48b7220ff30caba5945b56 | 369e7602c810b694a70ac1e875017480c8910ac8 | refs/heads/master | 2020-04-06T08:40:28.588492 | 2018-11-01T06:51:33 | 2018-11-01T06:51:33 | 157,312,221 | 1 | 0 | null | 2018-11-13T03:04:18 | 2018-11-13T03:04:18 | null | UTF-8 | Python | false | false | 2,359 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def nswdemo(path):
"""Labour Training Evaluation Data
The `nswdemo` da... | [
"akobeid.1@gmail.com"
] | akobeid.1@gmail.com |
b716bac172dc4c364620394fe603494029957813 | 6ed0503aa4a03acb8c992e2465ea54875d3c9a8f | /personable/api/version_0_0_1/controllers/auth_device.py | 23f1895b98948cd35853e3de36f86f7747e937c6 | [] | no_license | fstakem/personable | 51d59460e3249aa6ecd4b47101c16cdd71a9e6a5 | 4f2e30082c820c7c90c7dba402edee5646ea159a | refs/heads/master | 2021-01-22T08:27:46.378141 | 2017-06-14T02:13:29 | 2017-06-14T02:13:29 | 92,615,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -----------------------------------------------------------------------------------------------
#
# Company: Personal Research
# By: Fredrick Stakem
# Created: 5.27.17
#
# -----------------------------------------------------------------------------------------------
# Libraries
f... | [
"fstakem@gmail.com"
] | fstakem@gmail.com |
abcd0f045e5746cd8b287fced0740d2ea92f305d | 981fe4a1034f5ca8e03421d107314ef5b73236ea | /nova/rpc/dispatcher.py | 3f46398a979e337d1cf29e67f27d8f90cecc82ba | [
"Apache-2.0"
] | permissive | usc-isi/extra-specs | 5db3390a2193c43ae9206a76d5592cb67aebd191 | 4e5fee4a6830f337f02ca1ec1069285a68629979 | refs/heads/master | 2021-01-19T15:31:20.852091 | 2020-07-24T14:14:34 | 2020-07-24T14:14:34 | 4,393,412 | 0 | 1 | Apache-2.0 | 2020-07-24T14:14:36 | 2012-05-21T12:41:34 | Python | UTF-8 | Python | false | false | 3,931 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Red Hat, 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
#
#... | [
"rbryant@redhat.com"
] | rbryant@redhat.com |
2c6c0d8983d5a0008c2e85ea0a969d43248a2f72 | aeec8d49676ed90d90f833b2bf05749560093fa3 | /src/util/model_build/make_model/make_model_with_mix_adapter.py | e29a991981bf196048010f8eae171c2edcb6d271 | [] | no_license | zhengxxn/NMT | ce6b56f5441a490583e7d6602bf8207a4b580ff8 | 9206e5aa6535ef53460be7c25eeade60dbaed3d1 | refs/heads/master | 2023-01-06T01:25:21.579576 | 2020-11-04T03:19:37 | 2020-11-04T03:19:37 | 268,415,009 | 0 | 0 | null | 2020-11-04T03:19:38 | 2020-06-01T03:21:17 | Python | UTF-8 | Python | false | false | 6,222 | py | import torch.nn as nn
import copy
from module.embedding.embedding_with_positional_encoding import Embeddings
from module.encoder.transformer_encoder_with_adapter_synthesizer import \
TransformerEncoderLayerWithAdapter, \
TransformerEncoderWithAdapter
from module.decoder.transformer_decoder_with_adapter_synthesi... | [
"zhengx9703@gmail.com"
] | zhengx9703@gmail.com |
8518444c652b2821fca23b6a5988f70ef323d732 | 07a14c4aff72e2d276238af6eb6f2e2eab9589ee | /solutions/0880-rectangle-area-ii/rectangle-area-ii.py | 60dec5ed6140a37545ffdb56b0ca31ad3013ce7b | [] | no_license | bongster/leetcode | 0284b016e9d2a0b2d99aee314ea6949210141131 | e85b96711eeddb7d29a454d06dc1c5bd71d1fa13 | refs/heads/master | 2022-09-25T18:04:52.767063 | 2022-09-04T15:24:28 | 2022-09-04T15:24:28 | 193,223,450 | 0 | 0 | null | 2019-06-22T10:53:56 | 2019-06-22T10:53:55 | null | UTF-8 | Python | false | false | 2,884 | py | # You are given a 2D array of axis-aligned rectangles. Each rectangle[i] = [xi1, yi1, xi2, yi2] denotes the ith rectangle where (xi1, yi1) are the coordinates of the bottom-left corner, and (xi2, yi2) are the coordinates of the top-right corner.
#
# Calculate the total area covered by all rectangles in the plane. Any a... | [
"bongster88@gmail.com"
] | bongster88@gmail.com |
cb9efbbacbd31fb292e41e7215348c0b66419bd6 | 7f3c0c7cb3987356171e91b2e888e2bfbe2f5077 | /group_discussion/migrations/0021_auto_20151102_1711.py | 9c3cd252587178fed5bb1c7f30a00fe4708f34ce | [] | no_license | jscott1989/newscircle | 7d329673ed58dd2309ac6182fae3452bd50a8d54 | 373eba2f9aaa747272092521581d78524585df55 | refs/heads/master | 2020-12-24T11:53:12.865783 | 2016-11-07T17:50:42 | 2016-11-07T17:50:42 | 73,105,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('group_discussion', '0020_auto_20151028_1939'),
]
operations = [
migrations.CreateModel(
name='Dislike',
... | [
"jonathan@jscott.me"
] | jonathan@jscott.me |
b5b83c0b8d2ea408f1c0cd0f05865115eb3632f0 | be55991401aef504c42625c5201c8a9f14ca7c3b | /leetcode/easy/two_num_sum/srcs/alibaba_interview.py | 6286f819a67da66ce57231af7b35fa8350a82cb9 | [
"Apache-2.0"
] | permissive | BillionsRichard/pycharmWorkspace | adc1f8bb15b58ded489fc8dec0df397601823d2c | 709e2681fc6d85ff52fb25717215a365f51073aa | refs/heads/master | 2021-09-14T21:12:59.839963 | 2021-08-08T09:05:37 | 2021-08-08T09:05:37 | 143,610,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | # encoding: utf-8
"""
@version: v1.0
@author: Richard
@license: Apache Licence
@contact: billions.richard@qq.com
@site:https://github.com/BillionsRichard
@software: PyCharm
@time: 2020/12/12 21:11
"""
# // 评测题目: 无
#
# // 编程语言:c / c + +或者python
# // 输入:排序数组(array),指定数字(sum)
# // 输出:如果有两个数字的和等于指定数字(sum),返回1,否则返回0
#
# /... | [
"295292802@qq.com"
] | 295292802@qq.com |
8a8a00e14ae3bfd7cbba7eed78b44e3ecf9c7fee | c096ed434c24ac4e9f9a4bec75f9a561f49c9911 | /sensibility/miner/names.py | b5fbb35a2982409957fa0e596d79de22c4f42da9 | [
"Apache-2.0"
] | permissive | eddieantonio/ad-hoc-miner | 19781b07ef79fe3c973b4fd2e831cab58ddf9007 | f31aec52f5ea5549bd63db105ca61ac26271e7ee | refs/heads/master | 2021-01-11T02:22:08.879691 | 2017-06-05T19:28:37 | 2017-06-05T19:28:37 | 70,972,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
Names for all of the Redis queues.
q:download: <repo/owner>
~ download, extract, and insert JavaScript files
q:analyze: <sha256 of file>
~ requires syntactic and lexical analysis
q:work:[uuid]: <[data]>
~ work queue for a process
"""
from uuid import UUID
__al... | [
"easantos@ualberta.ca"
] | easantos@ualberta.ca |
ae8e1d8dc4bd5274584dc794f55910329dd56fa5 | f7d80454cdbebb08eee0e17cf2e034401e87d337 | /gunicorn.conf | 10ae681495a231bb9b50025bdc05ba08d8623fee | [] | no_license | charlee/flashpins | 8bf1ebe7714a5c20f55a8ddc3ba3ae454a759c20 | 07eaa0c32227dbfa2a42e50a9cea0d77fd5cad16 | refs/heads/master | 2020-06-04T07:09:43.516143 | 2015-04-22T03:34:21 | 2015-04-22T03:35:13 | 37,220,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | conf | # vim: ft=python
import os
import multiprocessing
BASEDIR = os.path.dirname(os.path.abspath(__file__))
RUNDIR = os.path.join(BASEDIR, 'run')
LOGDIR = os.path.join(BASEDIR, 'log')
bind = 'unix://' + os.path.join(RUNDIR, 'flashpins.sock')
workers =multiprocessing.cpu_count() * 2
chdir = BASEDIR
pythonpath = BASEDIR
da... | [
"oda.charlee@gmail.com"
] | oda.charlee@gmail.com |
4f5be540e978683566161b1c53e085f3e33379e4 | 121c327f208450824ac71c8d4056865248acafb8 | /package-boost.py | 03fa0cccd2e9b418561dd89c52a84e47e6a913fa | [] | no_license | mattbierbaum/openkim-chip-packages | 3f0d8798f51ebd2e50566de3873bbf89409fc3bf | f1a6d260161a1e4d13c0327677709abfc17a5905 | refs/heads/master | 2020-06-30T02:49:33.737660 | 2014-08-29T02:27:14 | 2014-08-29T02:27:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | #!/usr/bin/env python
import os
from chip.packages import Package, wrap_install, wrap_default
class BoostPackage(Package):
def __init__(self, *args, **kwargs):
super(ConfigPackage, self).__init__(*args, **kwargs)
self.libpath = os.path.join(self.build_path, "lib")
self.incpath = os.path.jo... | [
"matt.bierbaum@gmail.com"
] | matt.bierbaum@gmail.com |
dfc77e9d87e3bde6d495cbc1f128df975a9ded2e | a3c68eafdb433c981f2b90e86f895e4f121c69fb | /笔试/拼多多/分巧克力.py | 65788b9fd4370e79a28ec4da478beb8df396566d | [] | no_license | Cassiexyq/Program-Exercise | ccc236ea76ca99ddc6fe0c4c47edebc3d557cfad | e962cc3add047d61df275dd3e22a091018fd964a | refs/heads/master | 2020-04-25T20:27:33.561226 | 2019-09-22T15:29:35 | 2019-09-22T15:29:35 | 173,050,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | # -*- coding: utf-8 -*-
# @Author: xyq
n = int(input())
h = list(map(int, input().split()))
m = int(input())
w = list(map(int,input().split()))
h = sorted(h)
w = sorted(w)
print(h)
print(w)
i,j = 0,0
cn = 0
while i < len(h) and j < len(w):
if h[i] <= w[j]:
cn += 1
i += 1
j += 1
print(cn)
| [
"cassiexuan_yq@163.com"
] | cassiexuan_yq@163.com |
b1d886da07b9f247618dc2cba911cf74f3607697 | d5f53599338a30a9d6c7de7d5c574db59545ed3d | /Gse/generated/Ref/commands/SG1_SignalGen_Skip.py | 89356c709453ce3e70aad3f6f65b253bf5e924b6 | [
"Apache-2.0"
] | permissive | dstockhouse/eaglesat-fprime | c39a01cc5648dcd8b351f47684923fe481c720be | e640b3faea0000e1ca8acab4d6ff66150196c32b | refs/heads/master | 2020-05-07T15:31:09.289797 | 2019-11-20T00:33:15 | 2019-11-20T00:33:15 | 180,639,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | '''
Created on Wednesday, 10 April 2019
@author: David
THIS FILE IS AUTOMATICALLY GENERATED - DO NOT EDIT!!!
XML Source: /cygdrive/c/Users/David/Documents/eaglesat/eaglesat-fprime/Ref/SignalGen/SignalGenComponentAi.xml
'''
# Import the types this way so they do not need prefixing for execution.
from models.serialize... | [
"dstockhouse@gmail.com"
] | dstockhouse@gmail.com |
7f3062448fe5d459719f340eb7053217a25fc1b0 | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Personal/Jaipur1/Jaipur1/settings.py | 5807d44988408425ec16901816366931630408ca | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 3,161 | py | """
Django settings for Jaipur1 project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
#... | [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com |
d73e69a3952b2e4956dd6ec65463e0da17c490d1 | 9fc6604ae98e1ae91c490e8201364fdee1b4222a | /po_line_source/model/account_invoice.py | 784b3cfcb73e15b4bd47e931d70bd4354b1b7577 | [] | no_license | nabiforks/baytonia | b65e6a7e1c7f52a7243e82f5fbcc62ae4cbe93c4 | 58cb304d105bb7332f0a6ab685015f070988ba56 | refs/heads/main | 2023-03-23T21:02:57.862331 | 2021-01-04T03:40:58 | 2021-01-04T03:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from odoo import models,fields,api
class AccountInvoiceLine(models.Model):
_inherit = 'account.invoice.line'
source_doc = fields.Char('Source')
class AccountInvoice(models.Model):
_inherit = 'account.invoice'
source_doc = fields.Char('Source')
def _prepare_invoice_line_from_po_line(self, lin... | [
"ash@odoxsofthub.com"
] | ash@odoxsofthub.com |
d6906a6133a6fa3b1f9477f77e026dbdf665df7d | 89474b15817bb144542dfa866770fa98cc7ead90 | /tests/bdd/ha-bhyve02/test_NAS_T0948.py | 4036b89f1fb640067e1e1ba351939dc3d2ffc681 | [] | no_license | nasioDSW/webui | dc6bd1a9188d9e7aeeca0f3c844df83950ce5298 | 497d7ce536ba3ead99c51fa0c6a04f636fabcaf6 | refs/heads/master | 2023-03-28T16:53:36.912571 | 2021-04-02T19:26:44 | 2021-04-02T19:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,712 | py | # coding=utf-8
"""High Availability (tn-bhyve01) feature tests."""
import time
from function import (
wait_on_element,
is_element_present,
wait_on_element_disappear
)
from pytest_bdd import (
given,
scenario,
then,
when,
parsers
)
@scenario('features/NAS-T948.feature', 'Edit User Shel... | [
"ericturgeon.bsd@gmail.com"
] | ericturgeon.bsd@gmail.com |
2d0155a51eaa8771e89fa8cddeb6c3ebd3e02ed7 | e3e5a0618b91fe58318763f2186422b95e6edd10 | /baidupcs_py/commands/server.py | 4bb00be941c3ebb3ea44bb38f32af745ebba22a0 | [
"MIT"
] | permissive | hfh1999/BaiduPCS-Py | ddd66ff4d33d0e609021280a1edc040d51654940 | 4cf77bba7afbc8c82e0bc6ecd4ffc4a66aab1c71 | refs/heads/master | 2023-02-20T06:02:08.897248 | 2021-01-26T08:56:37 | 2021-01-26T08:56:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,726 | py | from typing import Optional, Dict
from pathlib import Path
import uvicorn
from baidupcs_py.baidupcs import BaiduPCSApi
from baidupcs_py.common.io import RangeRequestIO, READ_SIZE
from baidupcs_py.common.constant import CPU_NUM
from baidupcs_py.utils import format_date
from fastapi import FastAPI, Request, HTTPExcept... | [
"dfhayst@gmail.com"
] | dfhayst@gmail.com |
34e5b8a8cb2d4f41d01b08c97a90110b4cd9dd4a | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/pygame/cursors.pyi | 1f87c9e24792ff960343baa1c86e9c095afb5576 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 1,655 | pyi | from typing import Tuple, Sequence, Optional, Iterable
from pygame.surface import Surface
_Small_string = Tuple[
str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str
]
_Big_string = Tuple[
str,
str,
str,
str,
str,
str,
str,
str,
str,
str,
str,
... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.