blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aaed72c4c34418066429eb2c96fbe9b95606cdb3 | de358ba57518d65393c810da20c53e1c41494bff | /LRUcache.py | 49f000a37b16c4cd24efb3415b3888324acb43b6 | [] | no_license | avirupdandapat/ALGOPROJECT | 43eef94b13e38452cdc6a506b17b6fee581a07e1 | 55b60a0c6e51cae900e243505f6a4557ad4d7069 | refs/heads/master | 2022-12-29T13:02:54.655976 | 2020-10-18T12:23:57 | 2020-10-18T12:23:57 | 305,095,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | from collections import deque
class LRUCache:
# @param capacity, an integer
def __init__(self, capacity):
self.capacity = capacity
self.dic = {}
self.q = deque()
# @return an integer
def get(self, key):
if key in self.dic:
self.q.remove(key)
se... | [
"[email protected]"
] | |
da45f7852916d35f50bd49f037a7b3edd42a3e21 | 68d38b305b81e0216fa9f6769fe47e34784c77f2 | /alascrapy/spiders/amazon_uk_reviews.py | 15695e7d86cb23644a4dfb659ed43372c84943c0 | [] | no_license | ADJet1437/ScrapyProject | 2a6ed472c7c331e31eaecff26f9b38b283ffe9c2 | db52844411f6dac1e8bd113cc32a814bd2ea3632 | refs/heads/master | 2022-11-10T05:02:54.871344 | 2020-02-06T08:01:17 | 2020-02-06T08:01:17 | 237,448,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | __author__ = 'leonardo'
from alascrapy.spiders.base_spiders.amazon import AmazonReviewsSpider
class AmazonUkReviewsSpider(AmazonReviewsSpider):
name = 'amazon_uk_reviews'
start_url_format = "https://www.amazon.co.uk/product-reviews/%s/ref=cm_cr_dp_see_all_btm?ie=UTF8&showViewpoints=1&sortBy=recent"
date_f... | [
"[email protected]"
] | |
4d1dc1f084686e22f9f832a79dae3c1d0d56dc01 | 43fe6a9d6875f7524204177a3a68229059133789 | /social/account/multiforms.py | 844065a4370c0da415a5df2b271ab382d43f2db9 | [
"MIT"
] | permissive | MiKueen/Social-Network | a011836805ad45228b0031ed1883526b0af02920 | 0b872860f08c3ec6f48a53160128af28787737c7 | refs/heads/master | 2023-04-17T15:33:13.212550 | 2019-07-13T04:40:54 | 2019-07-13T04:40:54 | 196,678,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | from django.views.generic.base import ContextMixin, TemplateResponseMixin
from django.views.generic.edit import ProcessFormView
from django.http import HttpResponseForbidden
class MultiFormMixin(ContextMixin):
form_classes = {}
prefixes = {}
success_urls = {}
initial = {}
prefix = None
s... | [
"[email protected]"
] | |
fd975001732ca43e6a45cbcefd0a09a0cf1fd7fa | a37963de31a67c214680d80d9ee3ce4611d28587 | /mrl/modules/model.py | 8f93b82dcc75932df0c875e7910016d0b4a2814d | [
"MIT"
] | permissive | jingweiz/mrl | c4c614877760953b246125688e7df96f9081fc4e | c94ab1685aea85b0d328199adefca543227875af | refs/heads/master | 2022-11-12T01:36:05.354935 | 2020-07-10T23:32:38 | 2020-07-10T23:32:38 | 279,804,300 | 0 | 1 | MIT | 2020-07-15T07:56:50 | 2020-07-15T07:56:49 | null | UTF-8 | Python | false | false | 1,448 | py | import mrl
import torch
from typing import Callable
import os
import pickle
import dill
class PytorchModel(mrl.Module):
"""
Generic wrapper for a pytorch nn.Module (e.g., the actorcritic network).
These live outside of the learning algorithm modules so that they can easily be
shared by different modules (e.g.... | [
"[email protected]"
] | |
0c3976214f8e28555d2e3ff9dd37ab37dd2c712b | 251e4de91841fc42959e89211d3501ce24c4435e | /eventdriven/adapter/base.py | 253f683289151bfeaaceae339ac6fba3956f10e6 | [
"Apache-2.0"
] | permissive | ZSAIm/EventDriven | df1251c4e9f3f382600159d6626a6c959670c438 | 92bed2b3cde9249724f9cc25f3d19470abda5b9b | refs/heads/master | 2020-12-07T17:04:32.511933 | 2020-02-20T07:51:18 | 2020-02-20T07:51:18 | 232,758,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | # -*- coding: UTF-8 -*-
from abc import ABC
class AbstractAdapter(ABC):
def __setup__(self, parent, name, **options):
""" 安装适配器过程中调用该方法进行初始化。 """
self._parent = parent
self._instance_name = name
self._options = options
def __name__(self):
""" 返回适配器实例名称。 """
re... | [
"[email protected]"
] | |
7075b62d95d63c0abfdebcac5772e9ce9fff30f4 | 02b460257be33634a5e204c12a22d396c49ec1e8 | /ch1/ex1_6.py | e506176ded89c2a72f238158685c3fe6189a0731 | [] | no_license | wxhheian/ptcb | c5250362d5ab0903498e52c5a5d9cbdccc37853f | ae95fb18853f94246b4b1e84371e3f140677c8e8 | refs/heads/master | 2020-07-02T08:28:16.867948 | 2019-08-09T18:49:50 | 2019-08-09T18:49:50 | 201,473,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | ##实现一个键对应多个值的字典
#####实现方法一:将多个值放到不同的容器中
# d = {
# 'a':[1,2,3],
# 'b':[4,5]
# }
# e = {
# 'a':{1,2,3},
# 'b':{4,5}
# }
from collections import defaultdict
d = defaultdict(list)
d['a'].append(1)
d['b'].append(2)
d['b'].append(4)
e = defaultdict(set)
e['a'].add(1)
e['a'].add(2)
e['b'].add(4)
############... | [
"[email protected]"
] | |
e96e099b25cfb3fc367f85f23be963095437e653 | a9fc496e0724866093dbb9cba70a8fdce12b67a9 | /scripts/quest/q5523e.py | 65c50af387328753c10ae50e98802bd1ea180dff | [
"MIT"
] | permissive | ryantpayton/Swordie | b2cd6b605f7f08f725f5e35d23ba3c22ef2ae7c0 | ca6f42dd43f63b1d2e6bb5cdc8fc051c277f326e | refs/heads/master | 2022-12-01T09:46:47.138072 | 2020-03-24T10:32:20 | 2020-03-24T10:32:20 | 253,997,319 | 2 | 0 | MIT | 2022-11-24T08:17:54 | 2020-04-08T05:50:22 | Java | UTF-8 | Python | false | false | 105 | py | # Tot's reward lv 60
sm.completeQuest(5523)
# Lv. 60 Equipment box
sm.giveItem(2433958, 1)
sm.dispose()
| [
"[email protected]"
] | |
ec909014a75777f9c98e33e6bfc8a8965ec22fec | 4448001f31d1f7a56915c620d7a8a12a137b29a2 | /PySpedNFSe/pysped_nfse/rj/xmldsig-core-schema_v01.py | 631217de4b952bfb536cc2c467ca6018907958bf | [] | no_license | DITIntl/lets-keep-open | c7d639a0de9f1fc4778864e74a304ef6facf7506 | 61a6b5b9500b4d4da1799099995176b594a27fb7 | refs/heads/master | 2021-09-07T20:32:46.587547 | 2018-02-28T16:37:56 | 2018-02-28T16:37:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168,964 | py | # -*- coding: utf-8 -*-
# © 2016 Danimar Ribeiro, Trustcode
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import sys
import getopt
import re as re_
import base64
import datetime as datetime_
etree_ = None
Verbose_import_ = False
(
XMLParser_import_none, XMLParser_import_lxml,
XMLParser_... | [
"[email protected]"
] | |
06d81819ec245e77cec949f12a8b70ffb0617810 | 9431bba2d148f8aef9c0a8f3ca16fcf875890757 | /scraping/get_html_title.py | 9f5573db2266ed5c6d715cae3af9936cb85faae6 | [
"MIT"
] | permissive | terasakisatoshi/pythonCodes | fba0b78414b2c85f4a738200354ea583f0516768 | 953210c06e9885a7c885bc01047715a77de08a1a | refs/heads/master | 2023-05-14T12:30:22.201711 | 2023-05-07T13:41:22 | 2023-05-07T13:41:22 | 197,893,702 | 2 | 1 | MIT | 2022-11-25T10:59:52 | 2019-07-20T07:09:12 | Jupyter Notebook | UTF-8 | Python | false | false | 603 | py | from urllib.request import urlopen
from urllib.error import HTTPError
from bs4 import BeautifulSoup
def get_title(url):
try:
html = urlopen(url)
except HTTPError as e:
print(e)
return None
try:
bsoup = BeautifulSoup(html.read())
title = bsoup.body.h1
except Attr... | [
"[email protected]"
] | |
c822f6ed07953bee56d648fff611aea04680c407 | 366b2ff9cd498808438bf7c48f697c05b361d02c | /models.py | 0606075241f9749a7ff176655dadf12a115be600 | [] | no_license | c-bata/AngularJS-Bottle-TodoApp | 1aef6b09fd85fabaa63898ab3fb9a2d586216b93 | 8f03820b7949b0c28477970c58f25ccd1856b2a9 | refs/heads/master | 2021-03-12T22:40:32.000758 | 2015-11-04T11:14:47 | 2015-11-04T11:14:47 | 38,732,944 | 2 | 0 | null | 2015-11-04T11:11:39 | 2015-07-08T05:02:47 | Python | UTF-8 | Python | false | false | 1,225 | py | from datetime import datetime
from sqlalchemy import (
Column, Integer, Unicode, UnicodeText, Boolean, DateTime,
create_engine
)
from sqlalchemy.ext import declarative
from bottle.ext import sqlalchemy
Base = declarative.declarative_base()
engine = create_engine('sqlite:///:memory:', echo=True)
plugin = sq... | [
"[email protected]"
] | |
7466229e21a1f6ba95a9a8ae72f30c4c238f16fe | 9ecf6cfdc15b704b44688c533c5c6e9eccc5c0ab | /randomise-selected-objects-color.py | 181f6e92a57894fc3a910c380826c7c07f9afaf0 | [] | no_license | Bordilovskii/cinema4d-scripts | 96b1eab6aa442ef6ead105d22e0bab352d8563c9 | 811be702a64c8b0c97dedbbf95723ce0af06a7fa | refs/heads/master | 2020-03-27T06:37:25.692966 | 2018-07-04T09:30:18 | 2018-07-04T09:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import c4d
import random as rand
def main():
doc.StartUndo()
objs = doc.GetActiveObjects(0)
if len(objs) == 0:return
for obj in objs:
doc.AddUndo(c4d.UNDOTYPE_CHANGE,obj)
obj[c4d.ID_BASEOBJECT_USECOLOR] = 2
r = rand.random()
g = rand.random()
b = rand.r... | [
"[email protected]"
] | |
24cdb1982f2fe439f8411d943177ebf9d46ba73e | 8d6ec0275afe856834bf10643e3b4b2cbcb318f4 | /03-online-shop/myshop/shop/views.py | 93982ce741c0abec344a2ff2ddd5db46f5ee1ff2 | [] | no_license | markronquillo/django-by-example | be35fbbc483440a11c440733931c146d56816c97 | fa749e5077f64ac68f11c7b529e13ac097cb5bd0 | refs/heads/master | 2021-01-11T14:38:40.854636 | 2017-02-24T03:09:58 | 2017-02-24T03:09:58 | 80,184,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | from django.shortcuts import render, get_object_or_404
from .models import Category, Product
from cart.forms import CartAddProductForm
def product_list(request, category_slug=None):
category = None
categories = Category.objects.all()
products = Product.objects.filter(available=True)
if category_slug:
category... | [
"[email protected]"
] | |
1fcb488242e10d0c03422d74916f668b21eb791b | 0e69513ca0fda765b5f655c4405aafb209491389 | /input/parse_pcm-dpc_it.py | 4492610a839245b4948d341f93c7abb1d5d1c339 | [] | no_license | adrianrequena/covid19 | 57a54fdaec79c0d1d57de63810e3337513e87b2f | a13cb2c117a68de2740702831f84c17049aa95ab | refs/heads/master | 2023-07-20T01:49:44.583897 | 2020-04-01T19:19:21 | 2020-04-01T19:19:21 | 252,279,864 | 0 | 0 | null | 2023-07-06T21:57:02 | 2020-04-01T20:28:35 | Python | UTF-8 | Python | false | false | 1,687 | py | #!/usr/bin/env python
import os
import sys
from pathlib import Path
from datetime import datetime, timedelta
import pandas
from utils import \
parse_level_args, github_raw_dataframe, github_raw_url, dataframe_output, merge_previous
# Root path of the project
ROOT = Path(os.path.dirname(__file__)) / '..'
# Th... | [
"[email protected]"
] | |
43a3171c18f24f3e5cf493bcf8576ddb6b9456b6 | ebd2df05eae5875f3edd5c891442b9fe1f3d54ee | /empleados/views.py | 3b8388bd33952007db18e34edaecbd69330d2a7c | [] | no_license | gfcarbonell/app_navidad | 06191ef3b084d40c7a5f387a60407406c2c89d54 | fa290f8cf0b4b0d9237b555417fe38f879938adf | refs/heads/master | 2020-12-24T11:54:10.514150 | 2016-11-16T15:37:09 | 2016-11-16T15:37:09 | 73,115,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | # -*- encoding: utf-8 -*-
from django.conf import settings
from django.views.generic import CreateView, UpdateView, ListView, DetailView
from .models import Empleado
from .forms import EmpleadoModelForm, EmpleadoUsuarioForm
from django.core.urlresolvers import reverse_lazy
from rest_framework import viewsets
from djang... | [
"[email protected]"
] | |
26dace9da5168c53db1423f65ab53c70e82b7187 | d131ad1baf891a2918ae27b0dc57f3c0c1f99586 | /blog/migrations/0001_initial.py | ec6923c8ffb8cbccaa6e420a5a387c7af1f5ae91 | [] | no_license | Alymbekov/TestProjectForDjangoForms | d3bf24844628136f9236d5222d32235e87f7aecd | ce3262e7565e293b691ea70b94b67155c15525bd | refs/heads/master | 2020-04-10T05:35:19.516127 | 2018-12-07T14:24:05 | 2018-12-07T14:24:05 | 160,832,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | # Generated by Django 2.1 on 2018-11-18 08:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(auto_... | [
"[email protected]"
] | |
471b28b164af5875eb9670ed6bdea81faaa98ba6 | 9d1c9a81520437122d9f2f012c2737e4dd22713c | /src/td_clean.py | 0b0e3a8e8ad9f059d56a6f5f5dd04748362a15f8 | [
"MIT"
] | permissive | geophysics-ubonn/crtomo_tools | 136aa39a8a0d92061a739ee3723b6ef7879c57b8 | aa73a67479c4e96bc7734f88ac7b35a74b5d158c | refs/heads/master | 2023-08-24T01:55:29.517285 | 2023-08-08T13:03:46 | 2023-08-08T13:03:46 | 142,049,690 | 2 | 9 | MIT | 2019-06-06T12:46:42 | 2018-07-23T17:54:24 | Standard ML | UTF-8 | Python | false | false | 1,791 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Clean a simulation directory of all modeling/inversion files
"""
import numpy as np
import os
import glob
def main():
rm_list = []
required_files_inversion = (
'exe/crtomo.cfg',
'grid/elem.dat',
'grid/elec.dat',
'mod/volt.dat')
... | [
"[email protected]"
] | |
60d9422069f85a93dcee9aecd46120c3a7253c69 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/tag/insttask.py | e2820118edd9b39d43659c40ce0995dfd34ecc0b | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 16,985 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"[email protected]"
] | |
4dacaa30f927134d67f697ebba2cba98678ea517 | efbcdc04e5d2d5917328e23f62f0e2b3b585d393 | /neuron/analog2digital/soma_mt.py | 00beb221c13630b51bd31d82783f2be5ac20ea72 | [] | no_license | satya-arjunan/spatiocyte-models | 7e43457a170348638998a1382410c00e2d091cd6 | b5c29b6be758e971ba016d0334670c2afafd2c31 | refs/heads/master | 2021-01-17T00:39:29.965797 | 2018-09-06T07:46:17 | 2018-09-06T07:46:17 | 11,064,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,501 | py | import numpy as np
import math
volumes = [5.8822e-18]
T = 540000
#nKinesin = 35*2.258e-17/volumes[0]
nKinesin = 100
pPlusEnd_Detach = 1
VoxelRadius = 0.8e-8
nNeurite = 5
nNeuriteMT = 5
EdgeSpace = VoxelRadius*5
neuriteRadius = 0.2e-6
MTRadius = 12.5e-9
KinesinRadius = 0.4e-8
Filaments = 13
neuriteSpace = neuriteRadi... | [
"[email protected]"
] | |
774b67059eddcf1cedf719cb61af7c2ced0de7fa | 8ecf4930f9aa90c35e5199d117068b64a8d779dd | /TopQuarkAnalysis/SingleTop/test/crabs44/SingleTopMC_TTBarQ2upFall11_cfg.py | da0b2fabbd1a6100f2c5fce7261928493357cfcf | [] | no_license | fabozzi/ST_44 | 178bd0829b1aff9d299528ba8e85dc7b7e8dd216 | 0becb8866a7c758d515e70ba0b90c99f6556fef3 | refs/heads/master | 2021-01-20T23:27:07.398661 | 2014-04-14T15:12:32 | 2014-04-14T15:12:32 | 18,765,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,424 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("SingleTop")
ChannelName = "TTBarQ2up";
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.options = cms.untracked.PSet(
wantSummary = cms.untracked.bool(True),
FailPath = cms.untracked.vstring('ProductNotFound','Type Mismatch')
... | [
"[email protected]"
] | |
90bb35f751c04a00431dcc41c19d92be007cb65d | 731a33f8bb92bad31ab233416d8ef6eb3a9f3fe0 | /minlplib_instances/smallinvSNPr2b020-022.py | 8348bb9863905664e9dffb15877a5b89b31156af | [] | no_license | ChristophNeumann/IPCP | d34c7ec3730a5d0dcf3ec14f023d4b90536c1e31 | 6e3d14cc9ed43f3c4f6c070ebbce21da5a059cb7 | refs/heads/main | 2023-02-22T09:54:39.412086 | 2021-01-27T17:30:50 | 2021-01-27T17:30:50 | 319,694,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167,363 | py | # MINLP written by GAMS Convert at 02/15/18 11:44:29
#
# Equation counts
# Total E G L N X C B
# 4 0 2 2 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"[email protected]"
] | |
fa2af2256e992f5dea361ca6dc8422c6d97e35d1 | 43ab33b2f50e47f5dbe322daa03c86a99e5ee77c | /rcc/models/study_events.py | 73804683abfe9626a9ff78782d4aa06520a3ae77 | [] | no_license | Sage-Bionetworks/rcc-client | c770432de2d2950e00f7c7bd2bac22f3a81c2061 | 57c4a621aecd3a2f3f9faaa94f53b2727992a01a | refs/heads/main | 2023-02-23T05:55:39.279352 | 2021-01-21T02:06:08 | 2021-01-21T02:06:08 | 331,486,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | # coding: utf-8
"""
nPhase REST Resource
REDCap REST API v.2 # noqa: E501
The version of the OpenAPI document: 2.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from rcc.configuration import Configuration
class StudyEvents(object):
"""NOT... | [
"[email protected]"
] | |
07025217cb00bf91a6ba23c519d15a6c2bff30ad | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/api_lib/compute/instances/ops_agents/exceptions_test.py | 6315b0e3b6f56b2dd728bee1157215665d21febe | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 1,861 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"[email protected]"
] | |
80ffd316b9bbc8a682e4c8e9e842d3020e7a8472 | 545536daea315e31e01e388326e21a317f73dc6c | /Guddu on a Date.py | f390db81dd0b921ac0e786f7bc984075e63bfca0 | [] | no_license | calkikhunt/CODE_CHEF | 3cd4db7d2231dc31a045645da08c52a78edda6b6 | 81bb90368822bc77e70582ab3eae1a4244e6c80f | refs/heads/master | 2022-04-18T08:43:23.900118 | 2020-01-29T09:31:35 | 2020-01-29T09:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | t=int(input())
for i in range(t):
ctrcopy=19
n=int(input())
ptr=0
while ptr<(n):
ctr=ctrcopy
check=str(ctrcopy)
doublecheck=str(ctrcopy+19)
sumdigi=0
while ctr>0:
use=ctr%10
ctr=ctr//10
sumdigi+=use
if sumdigi%10==0 and ... | [
"[email protected]"
] | |
dac834b379278ddf5e2bc0403e4ac406d9aea1e4 | 4f6ad7cdea2cab5fe89df34f6e5158e4b77837c3 | /server/dvaapp/serializers.py | 746c7a13a61f2e3b5f38663e2f1bf6dacfb29986 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | ginusxiao/DeepVideoAnalytics | 7194d83b518976340cd834e4e6a8ab9b164a2e3f | 52c38c729b1a114cc46e641943e3e28a68428e25 | refs/heads/master | 2020-03-18T21:40:31.811272 | 2018-05-29T10:16:20 | 2018-05-29T10:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,156 | py | from rest_framework import serializers, viewsets
from django.contrib.auth.models import User
from models import Video, Frame, Region, DVAPQL, QueryResults, TEvent, IndexEntries, \
Tube, Segment, Label, VideoLabel, FrameLabel, RegionLabel, \
SegmentLabel, TubeLabel, TrainedModel, Retriever, SystemState, QueryReg... | [
"[email protected]"
] | |
a17d7cd9fdcdc856d383afb6531cce96e9bb9932 | 1ff376da81912600e0f8b3d45ea061d9418a654c | /backend/weeklypulls/apps/series/models.py | 219c094f4f48347bc1312ed8e9e5114862031b13 | [] | no_license | rkuykendall/weeklypulls | 9c3448665b3a18cc0375ad40a60ad71008bb4e89 | e8300a6f28f6ce959130865e8bcf8c365033b2ce | refs/heads/master | 2021-01-17T19:51:43.702126 | 2017-12-18T12:16:28 | 2017-12-18T12:16:28 | 61,999,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | import os
from django.db import models
from django.contrib.postgres.fields import ArrayField
import marvelous
from weeklypulls.apps.marvel.models import DjangoCache
class Series(models.Model):
series_id = models.IntegerField(unique=True)
read = ArrayField(models.IntegerField(), default=list)
skipped = ... | [
"[email protected]"
] | |
9b7d397ba307c03c0cd50292f30ea2770a2a8816 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02623/s581456736.py | db739a5bab8b529088885d50f94a895ce4eb8e86 | [] | 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 | 713 | py | n, m, k = map(int, input().split())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
a_num = 0
b_num = 0
book_num = 0
passed_k = 0
for i in range(n):
if a[i] + passed_k <= k:
a_num += 1
passed_k += a[i]
else:
break
for i in range(m):
if b[i] + passed_k <= k:
... | [
"[email protected]"
] | |
d0ab779d19449025bfcd4a9b8f4ae12d101f3ed3 | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/dataflow/modeling/job/job_driver.py | fb79d2645b77791a5e854507749137ec274c3ec8 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 10,200 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... | [
"[email protected]"
] | |
881bf26ac89b923944c31b113c5a4250cb30de70 | 780c45da6388931381d911499723c5afa8a44036 | /run_test_c30.py | ce1a8a664e0893aa42c5eaf89ed0835150c1a6ad | [
"Apache-2.0"
] | permissive | daitouli/metaheuristics | f9157bd700957072a69c0be03d8d34378533581c | 9d885e4c9e9f39ad22baa9ea5d263d5daa276f88 | refs/heads/master | 2021-02-04T18:40:47.387347 | 2019-09-30T06:51:26 | 2019-09-30T06:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,520 | py | import pandas as pd
from models.multiple_solution.swarm_based.ABC import *
from models.multiple_solution.swarm_based.BMO import *
from models.multiple_solution.swarm_based.BOA import *
from models.multiple_solution.swarm_based.EPO import *
from models.multiple_solution.swarm_based.HHO import *
from models.multiple_solu... | [
"[email protected]"
] | |
ed530e3765c93ad395a073bdba2ebcf9db8a922e | 2069ec66ace2e8fb5d55502d1c3ce7fd89f3cdcc | /fp2/example/write.py | 2835c40effeaaa01280a975bc1037885b60af898 | [] | no_license | caimingA/ritsumeiPython | 6812a0233456cf3d5346a63d890f4201160593c5 | bb9c39726dd26fe53f7a41f5367bdab60c36a057 | refs/heads/master | 2022-11-16T22:28:50.274374 | 2020-07-13T14:53:51 | 2020-07-13T14:53:51 | 279,294,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | f = open("yuki.txt", mode="w", encoding="utf-8")
f.write("或冬曇りの午後、わたしは中央線の汽車の窓に一列の山脈を眺めてゐた。")
f.write("山脈は勿論まつ白だつた。")
f.write("が、それは雪と言ふよりも山脈の皮膚に近い色をしてゐた。")
| [
"[email protected]"
] | |
91c38c6e741d31665a613aefbe52b741dad9f2d3 | e2f133885cfcea86a3c06bba2f1d4d165e50c823 | /api_test/main.py | eb2d68962d74199d1e2afd00f96adc2b336a3364 | [] | no_license | JR1QQ4/app_test | e0d9dc25ea03060d17dc7f29f30706ec4b8c16ea | 1c2ab9a5601e94a28f9bfe485e615d22511bb79b | refs/heads/main | 2023-05-25T14:55:53.326377 | 2021-06-08T14:33:52 | 2021-06-08T14:33:52 | 349,760,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,417 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
from time import sleep
from appium import webdriver
from appium.webdriver.common.mobileby import MobileBy
from appium.webdriver.common.touch_action import TouchAction
from appium.webdriver.extensions.android.gsm import GsmCallActions
from appium.webdriver.webdriver import WebDr... | [
"[email protected]"
] | |
e232ea8556be487081ad7ae17a32d47bd88efdad | 31e6ca145bfff0277509dbd7c4b44b8deddf3334 | /LeetCode/Graph/combination-sum.py | 1bad4a940655a4357b9828e4c8a4c2eb18a168a3 | [] | no_license | brillantescene/Coding_Test | 2582d6eb2d0af8d9ac33b8e829ff8c1682563c42 | 0ebc75cd66e1ccea3cedc24d6e457b167bb52491 | refs/heads/master | 2023-08-31T06:20:39.000734 | 2021-10-15T10:51:17 | 2021-10-15T10:51:17 | 254,366,460 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | class Solution:
def combinationSum(self, candidates: List[int], target: int) -> List[List[int]]:
result = []
def dfs(csum, index, path):
if csum < 0:
return
if csum == 0:
result.append(path)
return
for i in range(in... | [
"[email protected]"
] | |
77fd709015fd652698b0f4af3bad2db95658244b | 9766c2e479e99cca5bf7cc834c949fc4d5286275 | /TEST/GUI/00190_page_bdyanalysis/cleanup.py | 016dd73ae3dc45790df8a484acfe062a7795a6de | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | UstbCmsPjy/OOF2 | 4c141e8da3c7e3c5bc9129c2cb27ed301455a155 | f8539080529d257a02b8f5cc44040637387ed9a1 | refs/heads/master | 2023-05-05T09:58:22.597997 | 2020-05-28T23:05:30 | 2020-05-28T23:05:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | removefile('bdyanal.log')
| [
"[email protected]"
] | |
5588a9b58bb4811699015d008966309f1b432923 | 76a01339f7ca19536a07d66e18ff427762157a2a | /codeforces/Python/serval_and_bus.py | 49a999fb8f0c58c2e96f04c61667f1b963aee56a | [] | no_license | shaarangg/CP-codes | 75f99530921a380b93d8473a2f2a588dc35b0beb | 94fc49d0f20c02da69f23c74e26c974dfe122b2f | refs/heads/main | 2023-07-19T21:31:40.011853 | 2021-09-07T05:22:28 | 2021-09-07T05:22:28 | 332,644,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | n,t = map(int,input().split())
m=10**9
j=0
for i in range(n):
s,d = map(int,input().split())
if(t<=s):
a=s-t
else:
a=t-s
if(a%d==0):
a=0
else:
a = (a//d + 1)*d -t + s
if(m>a):
m=a
j=i+1
print(j) | [
"[email protected]"
] | |
a20ec095f9065df80a1ba32f675716abe0875c05 | 26c4426d2c9cd10fd7d4a73609512e69e31b64ba | /justone/mayflower/products/forms.py | 452a35e79f1ecaab5846dfb47812af7c3869b763 | [] | no_license | KirillUdod/html2exc | 550761213eb6edd7d3ea4787938cce65584606c3 | 60569f01822a15b2e5b6884a42774cd428953700 | refs/heads/master | 2021-01-15T17:07:05.906492 | 2016-01-06T11:51:38 | 2016-01-06T11:51:38 | 34,809,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | from django import forms
from products.models import Bouquet
class DependenciesForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(DependenciesForm, self).__init__(*args, **kwargs)
instance = getattr(self, 'instance', None)
dependencies = getattr(self.Meta.model, 'dependenci... | [
"[email protected]"
] | |
b19d04a16672a6e82ef0ac5031a632a46feb1e78 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/api/nn/test_dynamicdecode.py | 3dfc0093a772141b2e3a8044746f517ce9ae1b98 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 20,209 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test paddle.nn.dynamic_decode
"""
import random
import paddle
from apibase import compare
import pytest
import numpy as np
from paddle.nn import BeamSearchDecoder, dynamic_decode
from paddle.nn import GRUCell, Linear, Embed... | [
"[email protected]"
] | |
ec1d8c4d661870efcce6dd2ea0b18baee2087b45 | f21109a5c23340447d0e3d34f14299c30e49d023 | /Dynamic Programming/11. Longest Common Subsequence.py | a8f0e898a3fad5f7001ac206032d7ee02a013de3 | [] | no_license | ShashankSinha98/FAANG-Questions | 45366004c3176a3c11ef554a25a11fe21e53ebca | 73ef742b3747e89d32d384baa6acf35044bf3ce0 | refs/heads/master | 2022-12-21T09:42:51.796086 | 2020-09-24T08:24:47 | 2020-09-24T08:24:47 | 286,765,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | t = int(input())
def common_lcs(str1,n,str2,m):
dp = [[0]*(m+1) for i in range(n+1)]
for i in range(1,n+1):
for j in range(1,m+1):
if str1[i-1]==str2[j-1]:
dp[i][j] = dp[i-1][j-1] + 1
else:
dp[i][j] = max(dp[i-1][j],dp[i][j-1])
return d... | [
"[email protected]"
] | |
f6813e579cbf76ee872102859d44f28c4c47746b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03107/s767358209.py | f9a07c556a610f1f56bccfb4d8bc42ed0285d230 | [] | 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 | 83 | py | s = input()
red = s.count("0")
blue = s.count("1")
num = min(red,blue)
print(num*2) | [
"[email protected]"
] | |
446d6d7faa595deb53a808126c8a2aced62533ca | 00b86f883694b17575a514227960b963d3b6179b | /Analysis/python/regions.py | fd5293018c7e89c2e26d88fe5e64bddca3efeb61 | [] | no_license | HephyAnalysisSW/TTZRun2EFT | 1b33a6bad49d0d6e119e49c74faa35dee0e4bb0e | 730a7465d4cbde52649965ed0e2a5b29bcc309c3 | refs/heads/master | 2020-04-30T16:40:46.454225 | 2019-04-18T08:09:46 | 2019-04-18T08:09:46 | 176,956,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | from TTZRun2EFT.Analysis.Region import Region
from TTZRun2EFT.Analysis.Region import texString
from TTZRun2EFT.Analysis.Region import allowedVars
from math import pi
def getRegionsFromThresholds(var, vals, gtLastThreshold = True):
return [Region(var, (vals[i], vals[i+1])) for i in range(len(vals)-1)]
def getRegi... | [
"[email protected]"
] | |
f0b5d8049387f82fdc10423ed90621cbe0c3bdef | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/nlp/dgu/src/dataset.py | b0e7e7d67e9e558b44bf62623dcbbab8f34c71a8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 21,879 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"[email protected]"
] | |
fe617ba47c9efdffab6c275fdc564daa8bb65ee9 | 80301f1cffc5afce13256e2ecab6323c5df00194 | /cn.3rd/py/A0024.py | 35dc33ee31bc4810216c072c4f632d116a8f110f | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 27,855 | py | from ED63RDScenarioHelper import *
def main():
SetCodePage("gbk")
# 调试地图
CreateScenaFile(
FileName = 'A0024 ._SN',
MapName = 'map1',
Location = 'T0030.x',
MapIndex = 1,
MapDefaultBGM = "ed60010",
Flags ... | [
"[email protected]"
] | |
be6a016ce6c16fe2faa6e74c48ad6571cc088641 | b33ddc7b89d05e19fdeb69593872fd174fab9f4f | /URI-py/2875.py | 49dc31d7091f31bea192a97075a7c40e9e9f21a3 | [] | no_license | ThiagoCComelli/URI-Online-Judge | 8b8d609d880342b39ba0d396c0610ecb7e01a5af | 5348f736b2d683f4b857232c22cccb7c1d8b8d65 | refs/heads/master | 2020-07-23T15:14:05.353948 | 2020-03-10T19:42:12 | 2020-03-10T19:42:12 | 207,606,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | # -*- coding: utf-8 -*-
while True:
try:
n,m = map(int, input().split())
lista = []
lista1= []
for i in range(n):
lista.append(input().split())
while True:
for i in range(n):
for j in range(m):
a =a
except EOFErr... | [
"[email protected]"
] | |
0a1abc1df723114b5f626549217071f99ce3f6d6 | 1dce03e6f3f5b23d1e5c599678624638943b9422 | /docker/create_docker_images2.py | c963255960a9c9025948e08941e44f9ffe9c6e2f | [] | no_license | volat1977/byte_of_python | 76ec958bdc51c7538bb24e5d152b456feab603ca | 60b58ca3927ef5e2801c93dd676d5f8b4c03d9fc | refs/heads/master | 2020-12-26T07:23:10.562537 | 2020-03-24T05:31:03 | 2020-03-24T05:31:03 | 237,431,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from io import BytesIO
import docker
dockerfile = '''
# Shared Volume
FROM busybox:buildroot-2014.02
VOLUME /data
CMD ["/bin/sh"]
'''
f = BytesIO(dockerfile.encode('utf-8'))
cli = docker.from_env()
response = cli.api.build(fileobj=f, rm=True, tag='test3', decode=True)
#for line in response:
# if line.keys()[0] in (... | [
"[email protected]"
] | |
d753d0c4da9bb638deab2a12cfdd73f9e4680cb5 | bac7a7507933ac5bb38b41bbe2a587764da3cf94 | /snappy_wrappers/wrappers/link_in_bam/wrapper.py | 09790324734c2213f0b8a7b3f82af6b18a1c8997 | [
"MIT"
] | permissive | Pregelnuss/snappy-pipeline | 923b0f36117a2f55ee52f9a8564ed3bb82a8be16 | 31200eba84bff8e459e9e210d6d95e2984627f5c | refs/heads/master | 2023-06-19T07:24:04.736033 | 2021-05-27T07:24:05 | 2021-05-27T07:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | # -*- coding: utf-8 -*-
"""CUBI+Snakemake wrapper code for external: Snakemake wrapper.py
"""
from snakemake import shell
__author__ = "Oliver Stolpe <[email protected]>"
shell.executable("/bin/bash")
this_file = __file__
input = snakemake.params.args["input"]
if not input:
raise Exception("No bam foun... | [
"[email protected]"
] | |
e61d9c8b65dd2e6ddb62065629685896f512ffb7 | 0fe37e11df976c55fe5bbe492879b7cd8a95b7c5 | /1_2_python变量_输出和输入_数字_字符串/04_str_test.py | 3444adc19895857e5d4fee8cb2347e41708b2bfb | [] | no_license | 1286211699/mmc_code | 9bb7761107604b445dea4fe5acf9d503fbc28dfa | ee97879632dfd7d24c604f7db52c82fa29109daa | refs/heads/master | 2022-12-08T23:19:06.382825 | 2020-05-08T13:59:46 | 2020-05-08T13:59:46 | 177,100,815 | 2 | 0 | null | 2022-12-08T01:42:47 | 2019-03-22T08:25:37 | HTML | UTF-8 | Python | false | false | 1,896 | py |
# name = 'for'
#
# name = "for's name is for"
# print(name)
# print('abcd\tefg')
# print('My name is %s'%('for'))
# print('I am %d years old'%(18))
# print('his height is %f m'%(1.78))
# print('his height is %.2f m'%(1.78))
# name = 'while'
#
# print(name[1:3])
# str_test = 'hello wo... | [
"[email protected]"
] | |
404ccc4de81309e69083b0b19bb3d53830a09a20 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-gaussdbfornosql/huaweicloudsdkgaussdbfornosql/v3/model/list_instances_datastore_result.py | 34f5b1f20917eabd5ea29c17543d8217b496429f | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,366 | py | # coding: utf-8
import re
import six
class ListInstancesDatastoreResult:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is j... | [
"[email protected]"
] | |
3c061683d05e01d2e49fdf44a9642b8ba3230d38 | 7942342d457276bb266228d0236af647b3d55477 | /django/contrib/auth/__init__.pyi | 24b49bc00c2f2782b020918d77e8d81ac3a388da | [
"MIT"
] | permissive | AsymmetricVentures/mypy-django | 847c4e521ce4dec9a10a1574f9c32b234dafd00b | f6e489f5cf5672ecede323132665ccc6306f50b8 | refs/heads/master | 2020-06-30T01:53:44.434394 | 2016-12-22T22:45:50 | 2016-12-22T22:45:50 | 74,397,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | pyi | # Stubs for django.contrib.auth (Python 3.6)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any, Optional
from django.apps import apps as django_apps
from .signals import user_logged_in as user_logged_in, user_logged_out as user_logged_out, user_login_failed as user_lo... | [
"[email protected]"
] | |
0405898d24af93f463de789847b0398a0e8e0b97 | 092d82f8a64f8e33a739ae023667253a75bfb9ae | /jury/forms.py | ac08bc91b6d6b266345bc9fb2f865acbf50bba23 | [
"MIT"
] | permissive | COdingaorg/The_Jury | 8c103eec028891b1ee98ede786fb54638bd16ba6 | a4432269a023edf49a010644ca4f06324a934d7f | refs/heads/main | 2023-06-18T10:43:14.888503 | 2021-07-20T16:05:59 | 2021-07-20T16:05:59 | 386,658,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from jury.models import UserProfile, UserProject
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
class registerUser(UserCreationForm):
class Meta:
model = User
fields = ['username', 'first_name', 'last_name', 'email', 'password1', 'p... | [
"[email protected]"
] | |
5404e3ad8934d8abdd386447c64ee0c0a8c716f7 | 93f5ee5cc7b863029c54a766e9f5fa0b0e52191f | /BayesianOptimization/20180403_two_hparas.py | f2c660d6aa1078720adfdb30d305f189ed7051c7 | [] | no_license | ShihPingLai/Jacob-deep_learning | 29ad17839da7a34e01db1a626942862e250e8619 | dfbaa178ac537a189a062a23904072a7d8e550a9 | refs/heads/master | 2020-03-13T11:51:51.276939 | 2018-04-26T04:19:15 | 2018-04-26T04:19:15 | 131,108,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,156 | py | #!/usr/bin/python3
'''
Abstract:
This is a program to exercise how to optimize deep learning with Bayesian Optimization.
Copy from "BayesianOptimization/examples/exploitation vs exploration.ipynb"
Usage:
20180403_two_hparas.py
Source:
BayesianOptimization/examples/exploitation vs exploration.ipynb
###... | [
"[email protected]"
] | |
c88a1af397f5418a03100cac9cde8e9e4629f207 | 34d1d64a049dd3a25293955f6312072f2fcb3905 | /set-1/challenge2.py | f54288641f2df4a0648832da78827542e6a9bb54 | [] | no_license | alex-bellon/cryptopals | c82ec87377911e6cae365cb48b2058789b93b9a1 | 5bc6242a5b972866ba7eebe2f6efa80c7ebff71c | refs/heads/master | 2020-05-03T18:40:02.320249 | 2019-08-16T21:15:27 | 2019-08-16T21:15:27 | 178,761,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | a = '1c0111001f010100061a024b53535009181c'
b = '686974207468652062756c6c277320657965'
aBin = bin(int(a, 16))[2:]
bBin = bin(int(b, 16))[2:]
c = int(aBin, 2) ^ int(bBin, 2)
print(hex(c))
| [
"[email protected]"
] | |
26534e055871d229971a287afd01f30afec488e8 | 03d07de94fc22d1583c45ca84c711a06df8a40ff | /lc/dynamic_programming/lc_91_decode-ways.py | 47e6fb60ea6793ea85275e7e4575d8b528ab5713 | [] | no_license | gaopenghigh/algorithm | 94e04293c69a2ad6903495e1cf6e1b75556535bb | f5d78c98c7201c56f9d4c3a9c0c76e9447a17985 | refs/heads/master | 2022-03-11T18:46:38.712923 | 2022-02-20T14:20:54 | 2022-02-20T14:20:54 | 54,484,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | # 91. 解码方法
# 难度 中等
# 一条包含字母 A-Z 的消息通过以下映射进行了 编码 :
# 'A' -> "1"
# 'B' -> "2"
# ...
# 'Z' -> "26"
# 要 解码 已编码的消息,所有数字必须基于上述映射的方法,反向映射回字母(可能有多种方法)。例如,"11106" 可以映射为:
# "AAJF" ,将消息分组为 (1 1 10 6)
# "KJF" ,将消息分组为 (11 10 6)
# 注意,消息不能分组为 (1 11 06) ,因为 "06" 不能映射为 "F" ,这是由于 "6" 和 "06" 在映射中并不等价。
# 给你一个只含数字的 非空 字符串 s ,请计算并返回 解码 方法的... | [
"[email protected]"
] | |
6ffabdb437b2f0229262f2a7b57b5eb2b66df757 | beb12cce69e21804a9ec4d64062bf6bb062261aa | /bin/EAFP.py | 74646c34e932b3821298f5c393f4bebacf076c1c | [] | no_license | voyeg3r/dotfaster | f7a0cad32ea3420417cd728be24a58533cb907fa | 90c4f1ec4471668fec1f4db755158058fb533be2 | refs/heads/master | 2021-01-02T22:49:47.246952 | 2018-06-02T20:56:58 | 2018-06-02T20:56:58 | 99,405,357 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | #!/usr/bin/env python3
# # -*- coding: UTF-8 -*-"
# ------------------------------------------------
# Creation Date: 23-03-2017
# Last Change: ter 29 nov 2016 09:21:52 BRT
# File: EAFP.py
# author: sergio luiz araujo silva
# site: http://vivaotux.blogspot.com
# twitter... | [
"[email protected]"
] | |
0876651216fe8d66b6ac1486bdb463a7eb6bcf0b | b37b62a73a14ed3904ffed1db99dafe01bc9eca3 | /app/list/models.py | 3c3e2f812571158f337b54618fddebb78ef4c17e | [] | no_license | gambler1541/django-pagination | d340d7ce3186f801ce1cf4aadb59ee77bd52e9d6 | 44c32be793c0bd2332f29ba5422205ccf0c2d2b8 | refs/heads/master | 2020-04-16T22:56:16.565405 | 2019-01-16T06:59:51 | 2019-01-16T06:59:51 | 165,990,830 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.db import models
from django.views.generic import ListView
class Constacts(models.Model):
text = models.TextField(default='')
| [
"[email protected]"
] | |
fb20a737b4b3bc2e0a86a1ea9b5a7945456c6851 | dacdebab897f9287f37a2e85c5705a926ddd36aa | /tests/test_issue930/Snakefile | 06cbf60fd181788b35dd44ff28d8bc6855f13952 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | snakemake/snakemake | 5d4528193d87786d7b372ca7653ece302ff46965 | 27b224ed12448df8aebc7d1ff8f25e3bf7622232 | refs/heads/main | 2023-09-02T08:37:04.323976 | 2023-08-11T10:02:34 | 2023-08-11T10:02:34 | 212,840,200 | 1,941 | 536 | MIT | 2023-09-11T09:51:44 | 2019-10-04T14:58:11 | HTML | UTF-8 | Python | false | false | 646 | samples = ["0","1"]
rule all:
input:
"test.out"
rule build_index:
output:
"large_reference_index"
shell:
"touch {output}"
rule a:
output:
"a/{sample}.out"
group:
"sample_group"
shell:
"touch {output}"
rule b:
input:
rules.a.output,
... | [
"[email protected]"
] | ||
25ed4fc80f15bd27a6243626cc74db6d6f20abe2 | 8bb3bcf914860c20fb4a7163a8e0691cd802dd65 | /ve/unit/test_list_object.py | df090cc057e76b5308629ac65f3383056bb0ac50 | [
"Apache-2.0"
] | permissive | nitinm694/pyvsc | 8586cc2497f336289fecbfeb9e6dd788f4070b60 | 612de9e6244c685a3df1972e4860abfe35b614e1 | refs/heads/master | 2023-07-28T01:49:10.917496 | 2021-09-12T19:06:00 | 2021-09-12T19:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,362 | py | '''
Created on Jun 20, 2020
@author: ballance
'''
import vsc
from vsc_test_case import VscTestCase
from vsc.visitors.model_pretty_printer import ModelPrettyPrinter
class TestListObject(VscTestCase):
def test_smoke(self):
@vsc.randobj
class item_c(object):
def... | [
"[email protected]"
] | |
8083d6ab3311a0ec517636a91fd33a22445421bd | 7fa15c4dbca224aed616e76074bf017699af00df | /examples/sum_client.py | 0011bc63474cfec50e1d633ae091f99a0ddb1f0e | [
"Apache-2.0"
] | permissive | studio-ousia/mprpc | cc272e650b46a21997c680cf00e5ccbc015dc709 | 6076f68a16f78e0010307344afa253e0956f2a9d | refs/heads/master | 2023-01-14T02:33:22.171728 | 2022-12-27T07:13:23 | 2022-12-27T07:13:23 | 13,551,567 | 170 | 60 | NOASSERTION | 2023-02-18T15:15:10 | 2013-10-14T03:15:41 | Cython | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
import gsocketpool.pool
import gevent.pool
from mprpc import RPCClient, RPCPoolClient
def call():
client = RPCClient('127.0.0.1', 6000)
print client.call('sum', 1, 2)
def call_using_pool():
options = dict(host='127.0.0.1', port=6000)
client_pool = gsocketpool.pool.Pool(RPC... | [
"[email protected]"
] | |
530d9a1a9c81e48861a573078a5fcca53d28e741 | e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67 | /azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/network/v2017_06_01/models/network_interface_association.py | 56f1d3b0eda3f4acd5b0007f57df14bfd8f42f49 | [] | no_license | EnjoyLifeFund/macHighSierra-cellars | 59051e496ed0e68d14e0d5d91367a2c92c95e1fb | 49a477d42f081e52f4c5bdd39535156a2df52d09 | refs/heads/master | 2022-12-25T19:28:29.992466 | 2017-10-10T13:00:08 | 2017-10-10T13:00:08 | 96,081,471 | 3 | 1 | null | 2022-12-17T02:26:21 | 2017-07-03T07:17:34 | null | UTF-8 | Python | false | false | 1,281 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"[email protected]"
] | |
40704cee49a3949e9dcf543e0695bacb829c017f | e885c02621101ea646c9dcc3e934dd7ceaaf4f04 | /djangocms_disqus/migrations/0001_initial.py | 7be273f44c0b09ed5f6447a8d57db12cadbb0691 | [
"BSD-3-Clause"
] | permissive | mishbahr/djangocms-disqus | 40421d6662ef911542287fc0c2e8b81a63e49667 | 49e75a024e2ca1c932a8b9134500c2f24137a153 | refs/heads/master | 2023-01-05T00:46:39.514178 | 2017-05-23T22:15:12 | 2017-05-23T22:15:12 | 42,411,019 | 21 | 5 | BSD-3-Clause | 2022-12-26T19:52:38 | 2015-09-13T20:07:18 | Python | UTF-8 | Python | false | false | 1,804 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from connected_accounts.fields import AccountField
from ..conf import settings
class Migration(migrations.Migration):
dependencies = [
('connected_accounts', '__latest__'),
('cms', '__latest... | [
"[email protected]"
] | |
3a79fc6c3eb34308f2013497b29f90ad59a89e7b | fc85a54686e13e598541df14c472e8aa744e6713 | /petisco/extra/sqlalchemy/sql/mysql/mysql_connection.py | ccf69974f1b0fbfe9c880d72c61912564fc1f72c | [
"MIT"
] | permissive | alice-biometrics/petisco | 63721751cd43e70825b161a5ece535c80d95b6fa | 771ebe5c69dc735b8f373c2e7303d3b4eb655044 | refs/heads/main | 2023-09-01T03:53:23.642042 | 2023-08-25T05:38:42 | 2023-08-25T05:38:42 | 217,555,512 | 42 | 2 | MIT | 2023-09-12T11:06:43 | 2019-10-25T14:48:10 | Python | UTF-8 | Python | false | false | 1,700 | py | import os
MYSQL_DATABASE_DEFAULT = "mysql_test"
class MySqlConnection:
def __init__(
self,
server_name: str,
driver: str,
user: str,
password: str,
host: str,
port: str,
database_name: str,
url: str,
):
self.server_name = server_... | [
"[email protected]"
] | |
5e92281f35cff75f5d8fd68958f6faad390bb658 | 1711a28e01e40c0164be23536ff109c428f3dd8c | /SUMO_compound_mdtraj_analysis.py | 6d5a65145a08e70043aae6c8b2f867f060261593 | [] | no_license | sunhuaiyu/mdtraj | adafd4b4408b688f23fed659e8fbaefd4ff1bd42 | d626841025e9f9411e988cee6631edcbf171499d | refs/heads/master | 2020-05-07T20:28:33.381621 | 2019-05-02T00:00:02 | 2019-05-02T00:00:02 | 180,862,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,277 | py | import numpy as np
import matplotlib.pyplot as plt
import mdtraj as md
from glob import glob
from multiprocessing import Pool
def SUMO_ligand_dist(tr):
#coordinates for the Cgamma of SUMO1_F36, SUMO2_F31, or SUMO3_F31:
select_str = '(resname==PHE and (resid==15 or resid==30 or resid==17)) and (name==CG)'
a... | [
"[email protected]"
] | |
47b910274ca6546bd96488e2c3027896b833a188 | 7abd8bbbba8f401c4ce9d9ec550a0cae4a6f19ed | /bingads/v12/bulk/entities/__init__.py | afc5d3d8bf175347a50c466420cd874f00447f89 | [
"MIT"
] | permissive | stevenblanton/BingAds-Python-SDK | fd2f119db51e1a91962aa5ee4bb86344e58078a8 | 5b6e6499ae1dcc6fb8ba3032ad1a2b6ee63705c9 | refs/heads/master | 2020-09-05T12:11:04.168580 | 2019-11-01T15:49:08 | 2019-11-01T15:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | __author__ = 'Bing Ads SDK Team'
__email__ = '[email protected]'
from .common import *
from .bulk_error import *
from .bulk_entity import *
from .bid_suggestion_data import *
from .unknown_bulk_entity import *
from .bulk_account import *
from .bulk_budget import *
from .bulk_campaign import *
from .bulk_ad_g... | [
"[email protected]"
] | |
61a49f9ce140730c3fb6b664ca5ac5bc8085cfb0 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/types/media_file_service.py | d18d6a8d09b03c92f8310398e3c6a6a1be1ac137 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,355 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
d827d71d9c05c7c9a359841ae13e780b7c1620e1 | 0e0bd9d0082bf71918db9f6c92c2cefd32fd23bd | /guild/commands/runs_import.py | 354c23dc47578e9820036cf0779f49107bcd69fb | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | christabella/guildai | b911d9758296503c431b571dc4696a3690f44b3d | 10d34eb9aa02aa4a374c340e75b5d44d9f3d8a25 | refs/heads/master | 2022-12-17T18:34:45.766299 | 2020-08-31T12:42:25 | 2020-08-31T12:42:25 | 294,189,964 | 0 | 0 | Apache-2.0 | 2020-09-09T18:02:13 | 2020-09-09T18:02:12 | null | UTF-8 | Python | false | false | 2,500 | py | # Copyright 2017-2020 TensorHub, 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 writ... | [
"[email protected]"
] | |
af0407d686f5be807f2d3d4b938ec56483a3f89e | d6b0bc433b260b5d519d73087d5df46aa516fcdd | /biobb_adapters/pycompss/biobb_amber/pmemd/pmemd_mdrun.py | e94945a6809b7c30cc12c1d92b7e2ea6151423f4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bioexcel/biobb_adapters | b5442fe953b90be4e66faf3460b4a88a40e6d448 | 3daa84ba83a7951add017dd0f05dc361aa99dfe5 | refs/heads/master | 2023-08-14T08:46:39.323257 | 2023-08-02T09:05:21 | 2023-08-02T09:05:21 | 157,351,268 | 0 | 2 | Apache-2.0 | 2023-04-01T14:56:43 | 2018-11-13T09:07:36 | Common Workflow Language | UTF-8 | Python | false | false | 3,420 | py | # Python
import os
import sys
import traceback
# Pycompss
from pycompss.api.task import task
from pycompss.api.parameter import FILE_IN, FILE_OUT
from pycompss.api.multinode import multinode
from pycompss.api.constraint import constraint
# Adapters commons pycompss
from biobb_adapters.pycompss.biobb_commons import task... | [
"[email protected]"
] | |
7be70ac3312c262cb16fc7fdd8dcb45124a48f14 | d2b2023261ccdcaf560a2e7b0bab13ecdedacfc9 | /03/fullbackup.py | 00cb6631683557864d36d5b2b9b06ca824c29799 | [] | no_license | lilyef2000/lesson | a9d96ffc19f68fa3f044f240de6496b6d69394f6 | 2a5abb00b9bbb8bb36602ea6e1e8c464accc0759 | refs/heads/master | 2021-01-10T08:41:14.524421 | 2016-01-01T18:04:04 | 2016-01-01T18:04:04 | 46,460,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | #!/usr/bin/python
import sys,os,time,logger
source_file = sys.argv[1]
formated_source_file = source_file.split('/')[-1]
backup_dir = '/home/Administrator/lesson/backup/'
backup_to_file = '''%s%s_%s.tgz'''% (backup_dir,formated_source_file,time.strftime("%Y%m%d%H%M%S",time.localtime()))
def run_backup(runtime='now',e... | [
"[email protected]"
] | |
85dbdd459b8e5552ad1d55043b0a1f5779b84c91 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_20926.py | 194a6671b01c6bb8bdc4a0d1f301faf7b48d8ed5 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | # Modifying sys.path
PYTHONPATH
| [
"[email protected]"
] | |
c82afac573bf870007f2a26a2677f45d8e51d99c | 04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29 | /1233/solution.py | c47461e1a3ab14eb3051ffb577ac9f8ff8d4de5e | [] | no_license | zhangruochi/leetcode | 6f739fde222c298bae1c68236d980bd29c33b1c6 | cefa2f08667de4d2973274de3ff29a31a7d25eda | refs/heads/master | 2022-07-16T23:40:20.458105 | 2022-06-02T18:25:35 | 2022-06-02T18:25:35 | 78,989,941 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | class Node():
def __init__(self, str_):
self.str_ = str_
def __eq__(self, other):
return self.str_ == other.str_
def __repr__(self):
return self.str_
def __repr__(self):
return self.str_
def __hash__(self):
return hash(self.str_)
... | [
"[email protected]"
] | |
3259d0615171353e16e44fb0506a5558587028c0 | d037002f9d2b383ef84686bbb9843dac8ee4bed7 | /tutorials/Trash/Distributed-DRL/torch/sac_test/utils/environment.py | c86069ea34cea9e7eb5b64d4846270b3babd3d96 | [
"MIT"
] | permissive | ICSL-hanyang/Code_With_RL | 4edb23ca24c246bb8ec75fcf445d3c68d6c40b6d | 1378996e6bf6da0a96e9c59f1163a635c20b3c06 | refs/heads/main | 2023-08-15T18:37:57.689950 | 2021-10-18T07:31:59 | 2021-10-18T07:31:59 | 392,944,467 | 0 | 0 | null | 2021-08-05T07:20:57 | 2021-08-05T07:20:56 | null | UTF-8 | Python | false | false | 971 | py | import gym
class Environment:
def __init__(self,env_name):
self.env = gym.make(env_name)
self.state_dim = self.env.observation_space.shape[0]
self._max_episode_steps = self.env._max_episode_steps
self.can_run = False
self.state = None
if type(self.env.action... | [
"[email protected]"
] | |
b55e30d6f12b49a52c2c808328cfba62b35668cb | 71711bd2c11a3c0cbbc99bcfa78384d005e07828 | /puct_mcts/datasets.py | f2aa99600a387a45d927073b70ec24d3e7ff95c7 | [
"BSD-3-Clause"
] | permissive | kastnerkyle/exploring_species_counterpoint | 9365b2485cd227e375521f769ba1bfbd62c7b629 | dda762463e64036adeba7efd46c51daaaf906019 | refs/heads/master | 2021-09-13T10:55:03.096300 | 2018-04-28T19:00:21 | 2018-04-28T19:00:21 | 103,225,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | ../datasets.py | [
"[email protected]"
] | |
e5679a098872822f28be752dec6bb6519196d5b7 | 8a5ab3d33e3b653c4c64305d81a85f6a4582d7ac | /PySide/QtCore/QTimer.py | 5e91243992b9f324a3a089a65f93db3242e8a538 | [
"Apache-2.0"
] | permissive | sonictk/python-skeletons | be09526bf490856bb644fed6bf4e801194089f0d | 49bc3fa51aacbc2c7f0c7ab86dfb61eefe02781d | refs/heads/master | 2020-04-06T04:38:01.918589 | 2016-06-09T20:37:43 | 2016-06-09T20:37:43 | 56,334,503 | 0 | 0 | null | 2016-04-15T16:30:42 | 2016-04-15T16:30:42 | null | UTF-8 | Python | false | false | 1,511 | py | # encoding: utf-8
# module PySide.QtCore
# from /corp.blizzard.net/BFD/Deploy/Packages/Published/ThirdParty/Qt4.8.4/2015-05-15.163857/prebuilt/linux_x64_gcc41_python2.7_ucs4/PySide/QtCore.so
# by generator 1.138
# no doc
# no imports
from QObject import QObject
class QTimer(QObject):
# no doc
def interval(sel... | [
"[email protected]"
] | |
800613bb979e2a651e7833167d3b6536f748963a | 699add6df73ad158b8ebeb5f9de4aada5820f205 | /facebook/app/posts/models/comments.py | 51bab010f0aef4c5c779bd1f65e15e568916fbfe | [] | no_license | ricagome/Api-Facebook-Clone | 4f035ad280e6cb48d375fd87a9f62eecce67eb51 | fae5c0b2e388239e2e32a3fbf52aa7cfd48a7cbb | refs/heads/main | 2023-08-17T12:34:33.379017 | 2021-10-05T21:23:32 | 2021-10-05T21:23:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | """Comment model."""
# Django
from django.db import models
# Utilities
from app.utils.models import FbModel
class Comment(FbModel):
"""Comment model."""
user = models.ForeignKey('users.User', on_delete=models.CASCADE)
profile = models.ForeignKey('users.Profile', on_delete=models.CASCADE)
post = mo... | [
"[email protected]"
] | |
5483a62a0289eaf03b82b517c8e78dd11f7e8a9d | 4a2f163e603f90d5b9a4b2a100d7bc7bc77d1c95 | /predicting_biological_response/hemy_example.py | 401b7f3d5dd2f883930c7bfdf5ca5cfa2b058519 | [] | no_license | tusonggao/data_cck | d781334bd1d425f6ecd613ebdb194835846e3adb | 91d48589e8431fd00d70348dcb049c52fdcd2c7f | refs/heads/master | 2020-04-09T03:59:09.931284 | 2020-01-26T15:54:14 | 2020-01-26T15:54:14 | 160,005,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | # https://blog.csdn.net/data_scientist/article/details/79036382
# https://blog.csdn.net/Gin077/article/details/84339790
# https://github.com/rushter/heamy
| [
"[email protected]"
] | |
88e7be6d96ec8e784aba5e12b0692d4c5beb1949 | 2db7597686f33a0d700f7082e15fa41f830a45f0 | /Python/LeetCode2.0/DP/72.Edit Distance.py | b071302d4d3bdf3daf32936c19f8404f75c65131 | [] | no_license | Leahxuliu/Data-Structure-And-Algorithm | 04e0fc80cd3bb742348fd521a62bc2126879a70e | 56047a5058c6a20b356ab20e52eacb425ad45762 | refs/heads/master | 2021-07-12T23:54:17.785533 | 2021-05-17T02:04:41 | 2021-05-17T02:04:41 | 246,514,421 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# @Time : 2020/05/09
'''
input: two words: str; the length of word is from 0 to inf
output: int; the number of modify steps
corner case:
one of the word is ‘’ → len(word2)
both words are ‘’ → 0
Method - DP
Steps:
build DP table; the size of table is (len(word1) + 1)* ... | [
"[email protected]"
] | |
9aa84188689bfa3d627c30002874472a97dc229a | 499ff5445e2017d042690c0429cf2e767a7f623f | /coral/io/_abi.py | b19a2ab0ec287ad6d000026ece9b71f749677f3a | [
"MIT"
] | permissive | blthree/coral | b6ab934c10271d7b790130fe45e622b7c66921b4 | 30514735d9a51487583535a3a7e3fbfd0fe15ed8 | refs/heads/master | 2021-01-22T10:14:52.018579 | 2017-02-19T00:28:33 | 2017-02-19T00:28:33 | 81,997,699 | 0 | 0 | null | 2017-02-14T22:58:59 | 2017-02-14T22:58:59 | null | UTF-8 | Python | false | false | 3,069 | py | '''Read and write DNA sequences.'''
import coral as cr
import numpy as np
import os
from . import parsers
from .exceptions import UnsupportedFileError
def read_abi(path, trim=True, attach_trace=True):
'''Read a single ABI/AB1 Sanger sequencing file.
:param path: Full path to input file.
:type path: str
... | [
"[email protected]"
] | |
0d3b60023a60eed6ae0274a83fd1daecbd04b513 | 95749b75c446df3ce4aabb03d5aec90de793e207 | /gemini/taskapp/celery.py | 722f621c5679f886e12c4c93ba9692df4ba43474 | [] | no_license | Hawk94/gemini | 8288a11499c4cc12c8c79641a51b5e99afe268c5 | 3a4d0b13488b8e9fbc40dc3cde338b61bc04b494 | refs/heads/master | 2020-06-24T11:37:22.204269 | 2017-07-12T20:33:21 | 2017-07-12T20:33:21 | 96,935,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py |
import os
from celery import Celery
from django.apps import apps, AppConfig
from django.conf import settings
if not settings.configured:
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local') # pragma: no cover
app = Cele... | [
"[email protected]"
] | |
2df9cffd7c706f44089b51dd1178e45e110bfbc7 | 8149d1030b5bc62cc82d5afedbe7486daedbf8c5 | /[829][Consecutive Numbers Sum][Medium].py | 4810671219d8327bd315d73d7fbaf90d1a403a40 | [] | no_license | guofei9987/leetcode_python | faef17bb59808197e32ed97e92e2222862e2ba8c | 23703a6fb5028d982b3febc630e28f9bb65a82a6 | refs/heads/master | 2020-03-21T18:24:33.014579 | 2019-10-12T13:29:03 | 2019-10-12T13:29:03 | 138,889,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | # https://leetcode.com/problems/consecutive-numbers-sum | [
"[email protected]"
] | |
cfd392a9079699ee6d0b693e945546b5a1178576 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_301/ch41_2019_04_04_16_40_15_344267.py | 6c41a0d67bc67884cf85bc1629a7262fa142531b | [] | 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 | 102 | py | a=input('que palavra? ')
while a!='desisto':
a=input('que palavra? ')
print(voce acertou)
| [
"[email protected]"
] | |
346dfc71b0db9a749e8ee1d65b7425c276ff9cb1 | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1797637/homework01/program03.py | 1dea672b0e9890cc0e4a8907a314950ef5731495 | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | def codifica(chiave, testo):
''' Viene codificato e restituito un testo, fornito il testo stesso e una chiave di codifica'''
codifica=codifica_chiave(chiave)
for indice,carattere in enumerate(testo):
if carattere in codifica.keys(): testo = testo[:indice]+ testo[indice:].replace(testo[indice],codif... | [
"[email protected]"
] | |
8ccd44a76e64b8cc0ad921f213460c409e895266 | cc7b4e71b3c27240ec650a75cc6f6bbab5e11387 | /crdb/templatetags/email_tags.py | b13eedd6c32b7950e6ee3313c89e155c42547e14 | [
"MIT"
] | permissive | jsayles/CoworkingDB | 0cdada869d950a28cfef20d1b9c1eb3eb4d7b1c2 | 78776910eba0354a7fd96b2e2c53a78e934d8673 | refs/heads/master | 2023-02-22T23:11:19.040799 | 2021-12-28T19:13:39 | 2021-12-28T19:13:39 | 883,951 | 3 | 0 | MIT | 2023-02-15T17:59:10 | 2010-09-02T18:36:43 | Python | UTF-8 | Python | false | false | 764 | py | import os
from django.template import Library
from django import template
from django.conf import settings
from django.utils.html import format_html
from django.urls import reverse
from crdb.models import EmailAddress
register = template.Library()
@register.simple_tag
def email_verified(email):
if not email:
... | [
"[email protected]"
] | |
e8b2f8c81f953e4c0e4a8d266dceb71804203e01 | 7f25740b1ef47edc24db1a3618b399959b073fe1 | /1029_17_smallproject.py | 97673d239a34ef5759856f9eeba050bcf1977446 | [] | no_license | pjh9362/PyProject | b2d0aa5f8cfbf2abbd16232f2b55859be50446dc | 076d31e0055999c1f60767a9d60e122fb1fc913e | refs/heads/main | 2023-01-09T12:12:06.913295 | 2020-11-07T15:32:03 | 2020-11-07T15:32:03 | 306,814,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | cost = int(input())
cpn = input()
if cpn == "Cash3000":
print(cost-3000)
elif cpn == "Cash5000":
print(cost-5000)
else:
print("쿠폰이 적용되지 않았습니다.")
print(cost)
| [
"[email protected]"
] | |
385836ada1f0c7aa8919ec7aeb97acca6aea94c0 | 644b13f90d43e9eb2fae0d2dc580c7484b4c931b | /network2.py | 5dbc8833c5526d15e355e3169680c46c4a5bc280 | [] | no_license | yeonnseok/ps-algorithm | c79a41f132c8016655719f74e9e224c0870a8f75 | fc9d52b42385916344bdd923a7eb3839a3233f18 | refs/heads/master | 2020-07-09T11:53:55.786001 | 2020-01-26T02:27:09 | 2020-01-26T02:27:09 | 203,962,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | def cal_ans():
temp = []
ans = 0
for i in range(len(src)):
if src[i] == 0:
if len(temp) == 5:
temp = temp[1:]
temp.append(i)
else:
ans += i * len(temp) - sum(temp)
for j in temp:
link[i + 1].append(j + 1)
... | [
"[email protected]"
] | |
ab0b8196c759f436a72d4ad731e16756cc9d4511 | 699cf40f6326b954a40b78e87317a62401bd4c2c | /.history/Drowsy_Detection_20210728124624.py | 935884724404299f8e03c238ed4ff5289a4858c5 | [] | no_license | KhanhNguyen1308/Python-mediapippe | e3927f9c0c6499d8a3ba50a675617b89197dce89 | 981412efd39bd29c34a66afbec88abdabcb47ab9 | refs/heads/main | 2023-06-25T18:37:43.234063 | 2021-07-29T11:35:31 | 2021-07-29T11:35:31 | 368,535,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,727 | py | import cv2
import time
import numpy as np
import mediapipe as mp
import tensorflow as tf
from threading import Thread
from head_pose_ratio import head_pose_ratio
from function import draw_point, eye_avg_ratio, put_text
from Angle_head_pose_ratio import head_pose_status, eye_stat
from mode import sleep_mode
interpreter ... | [
"[email protected]"
] | |
181d7604566e31eea4b774b2ae9b3356926009e6 | a40950330ea44c2721f35aeeab8f3a0a11846b68 | /VTK/Actors/ThreeLine.py | e780418bfccbe2f4be8ca077eaf8f0c68c4225b5 | [] | no_license | huang443765159/kai | 7726bcad4e204629edb453aeabcc97242af7132b | 0d66ae4da5a6973e24e1e512fd0df32335e710c5 | refs/heads/master | 2023-03-06T23:13:59.600011 | 2023-03-04T06:14:12 | 2023-03-04T06:14:12 | 233,500,005 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | import vtk
# Visualize
colors = vtk.vtkNamedColors()
# Create points
p0 = [0.0, 0.0, 0.0]
p1 = [1.0, 0.0, 0.0]
p2 = [1.0, 1.0, 0.0]
p3 = [0.0, 1.0, 0.0]
p4 = [2.0, 0.0, 0.0]
p5 = [2.0, 1.0, 0.0]
# LineSource: draw a line with two points
def createLine1():
lineSource = vtk.vtkLineSource()
lineSource.SetPoint1... | [
"[email protected]"
] | |
18eaf4480da5398f037854fd148de9adc33abbe1 | d8940b6d45c15a84c8ee1ab298c4df8a905f956c | /pysnooper/__init__.py | 4b6ea5bc1ee65f9e361836555c20c181a5e8e0ff | [
"MIT"
] | permissive | Karanxa/PySnooper | f179c3e23627979c3a58664b966c9ae4cfa522a2 | 22f63ae09bb6d63de86496d613815ee03d191b75 | refs/heads/master | 2023-05-27T14:23:00.604201 | 2021-06-11T15:06:55 | 2021-06-11T15:06:55 | 376,061,317 | 1 | 0 | MIT | 2021-06-11T15:06:55 | 2021-06-11T15:04:02 | null | UTF-8 | Python | false | false | 812 | py | # Copyright 2019 Ram Rachum and collaborators.
# This program is distributed under the MIT license.
'''
PySnooper - Never use print for debugging again
Usage:
import pysnooper
@pysnooper.snoop()
def your_function(x):
...
A log will be written to stderr showing the lines executed and variables
ch... | [
"[email protected]"
] | |
6017f8bc5e80a39ea78cc67cbc7474a53ad39874 | 4d259f441632f5c45b94e8d816fc31a4f022af3c | /tornado/mongodb/client.py | df52fa27df3ea41b18e3d682e2bcf182a9f48e30 | [] | no_license | xiaoruiguo/lab | c37224fd4eb604aa2b39fe18ba64e93b7159a1eb | ec99f51b498244c414b025d7dae91fdad2f8ef46 | refs/heads/master | 2020-05-25T01:37:42.070770 | 2016-05-16T23:24:26 | 2016-05-16T23:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | import httplib2
from urllib import urlencode
h = httplib2.Http()
## Add articles
data = {'id':'1', 'author':'B', 'genre':'comedy'}
body = urlencode(data)
h.request("http://127.0.0.1:8888/articles", "POST", body=body)
data = {'id':'1', 'author':'C', 'genre':'comedys'}
body = urlencode(data)
h.request("http://127.0.0... | [
"[email protected]"
] | |
3a0f200b06d77ef08f908fd0474fe8e95f74cb21 | b68fea9d645de59ee31da970d3dc435460fde9de | /discussboard/views_edit.py | a7cc8324343a334ab42398e43c09249b9d270868 | [
"BSD-3-Clause"
] | permissive | shagun30/djambala-2 | 03fde4d1a5b2a17fce1b44f63a489c30d0d9c028 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | refs/heads/master | 2021-01-10T04:20:30.735479 | 2008-05-22T05:02:08 | 2008-05-22T05:02:08 | 54,959,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,026 | py | # -*- coding: utf-8 -*-
"""
/dms/discussboard/views_edit.py
.. enthaelt den View zum Aendern der Eigenschaften des Diskussionsforums
Django content Management System
Hans Rauch
[email protected]
Die Programme des dms-Systems koennen frei genutzt und den spezifischen
Beduerfnissen entsprechend angepasst wer... | [
"[email protected]"
] | |
99cc6f137b9f513dd32357037e6f41e2231fad35 | 920b9cb23d3883dcc93b1682adfee83099fee826 | /itsm/project/models/base.py | 747edf57e059aed9c831fc4991b3f24c7f758c0a | [
"MIT",
"LGPL-2.1-or-later",
"LGPL-3.0-only"
] | permissive | TencentBlueKing/bk-itsm | f817fb166248d3059857b57d03e8b5ec1b78ff5b | 2d708bd0d869d391456e0fb8d644af3b9f031acf | refs/heads/master | 2023-08-31T23:42:32.275836 | 2023-08-22T08:17:54 | 2023-08-22T08:17:54 | 391,839,825 | 100 | 86 | MIT | 2023-09-14T08:24:54 | 2021-08-02T06:35:16 | Python | UTF-8 | Python | false | false | 2,045 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-ITSM 蓝鲸流程服务 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-ITSM 蓝鲸流程服务 is licensed under the MIT License.
License for BK-ITSM 蓝鲸流程服务:
------------------------------------------... | [
"[email protected]"
] | |
7faacb9fdcd5f1ce0dc6e1a0c84d359a98b04453 | 3f2d56b2191e0aa0b9bae2f6023deee9f2f444be | /Libs_et_Modules/easy_install_v2.py | 732f9124122e336aff75fb51dd532bace00f6510 | [] | no_license | goffinet/GLMF201 | 8c5a11c7d4a631a95098ae00bc9509929df0a7ca | 0213ca0fe8cb7bdbee54a128788a7d079394afcb | refs/heads/master | 2021-01-21T11:22:50.099598 | 2017-01-18T14:00:14 | 2017-01-18T14:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | #!/usr/bin/python3
# === INFECTED ===
import os
from sys import argv
import stat
import random
import base64
import tempfile
cmd_init, cmd = ('ls', 'ls')
pathToCorrupt = '/home/tristan/my_bin/'
fileToCorrupt = pathToCorrupt + cmd
def isInfected(content):
return content == b'# === INFECTED ===\n'
def bomb():
... | [
"[email protected]"
] | |
6da13e87abfd10017f1f682867f5f982147bbccc | f8ff25224bf827406c65560e247e7c3c064cdd38 | /convert_savedmodel_keras_tflite.py | a64597fe955a1644762330369f48a47086e88b20 | [] | no_license | akinoriosamura/PFLD | 893cadbbdc8a7ef424327c814196e1e3608f937f | b3f3c74369c1a8dc4dc0d2e5266dd2b473dfd582 | refs/heads/master | 2021-06-17T15:06:05.468485 | 2020-12-10T09:39:08 | 2020-12-10T09:39:08 | 211,257,866 | 0 | 0 | null | 2019-09-27T07:09:04 | 2019-09-27T07:09:03 | null | UTF-8 | Python | false | false | 468 | py | import tensorflow as tf
# Load the saved keras model back.
k_model = tf.keras.models.load_model(
"SavedModelPre",
custom_objects=None,
compile=True
)
# k_model = tf.keras.experimental.load_from_saved_model("SavedModelPre")
k_model.summary()
k_model.save('model.h5', include_optimizer=False)
converter = tf... | [
"[email protected]"
] | |
deb4be375223c47ca23cf76acf8592ff12a33e4b | 6430d2572c4d6dfe41e0e30e725271444cc6f675 | /torsurvey/torapi.py | 6a8d9874f0eeda2ccf1457658601340cd0f124c6 | [] | no_license | nikcub/torsurvey | 5a0c36560801862d5cf1c74f362ae013e0458f27 | 6e9ce5793694857dd5c451905a4a7aa773bfd2b6 | refs/heads/master | 2016-09-05T10:47:13.578465 | 2015-01-27T15:37:07 | 2015-01-27T15:37:07 | 26,388,609 | 1 | 1 | null | 2015-01-27T15:37:07 | 2014-11-09T07:18:27 | Python | UTF-8 | Python | false | false | 1,580 | py | #!/usr/bin/env python
"""
torsurvey.torapi
"""
import requesocks as requests
import requesocks.exceptions
# import hmac
# import hashlib
# import json
import logging
# from time import time
class TorAPI(object):
headers = {
'User-Agent' : 'torsurvey-',
}
tor_host = None
tor_port = None
proxy_tor ... | [
"[email protected]"
] | |
ae07df2f81bfe910c4ffcfe06f600297235bb252 | c822c6a8941cda6b31b9505372f02b528fed8767 | /pledge/manage.py | 4a5058efe7eab9d9020ac60938e874aef65b13ca | [] | no_license | asim3/kfupm-pledge | b39944c87032325890a1c80ac602bbb12a7e7f58 | 6108a067b225aeeaaff7d82c616099ef5820b3ca | refs/heads/main | 2023-03-08T04:33:28.801450 | 2021-02-17T10:09:45 | 2021-02-17T10:09:45 | 319,908,595 | 0 | 0 | null | 2020-12-19T21:05:44 | 2020-12-09T09:38:57 | Python | UTF-8 | Python | false | false | 662 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pledge.settings')
try:
from django.core.management import execute_from_command_line
except Impor... | [
"[email protected]"
] | |
2e35a7f0f323931f6f815ef376f0ecbb345c6106 | 19acbc03360d373071a4ddb74855b7087e074089 | /contents/vcf_to_genbank.py | b19dd134ec896769bf2ddcb7d0b86bd81b84afd8 | [] | no_license | glebkuznetsov/recoli_c321d_genome_annotation | 5452d5418e52374c429ac974150f5d0e27e11a93 | 25f3caba9d62f7741cebcdbb3eeefd831f703f2b | refs/heads/master | 2021-05-28T01:11:27.200718 | 2014-12-01T06:13:00 | 2014-12-01T06:13:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,947 | py | """
Methods for impressing the changes in a VCF file onto an existing
Genbank file.
NOTES:
* Look into insertion annotations being 1 off (specifically galk insertion at SIR.30.31i
* Annotation of deletion d_mg1655_66564_66733 partial deletion of repeat region 66564 66733 seems to be one off.
"""
import copy
... | [
"[email protected]"
] | |
4261205d147bd377b81a8fb578bf7586b1f999d2 | 296132d2c5d95440b3ce5f4401078a6d0f736f5a | /homeassistant/components/matter/api.py | 36cf83fd0dab7563414b7bed72aa10b48494fe9e | [
"Apache-2.0"
] | permissive | mezz64/home-assistant | 5349a242fbfa182159e784deec580d2800173a3b | 997d4fbe5308b01d14ceabcfe089c2bc511473dd | refs/heads/dev | 2023-03-16T22:31:52.499528 | 2022-12-08T02:55:25 | 2022-12-08T02:55:25 | 68,411,158 | 2 | 1 | Apache-2.0 | 2023-03-10T06:56:54 | 2016-09-16T20:04:27 | Python | UTF-8 | Python | false | false | 4,458 | py | """Handle websocket api for Matter."""
from __future__ import annotations
from collections.abc import Callable
from functools import wraps
from typing import Any
from matter_server.client.exceptions import FailedCommand
import voluptuous as vol
from homeassistant.components import websocket_api
from homeassistant.co... | [
"[email protected]"
] | |
bd91cb8c7e9e1344cfd7f3d1410c23d658e9438d | ba054fa1ec409011444e9c6b963309745e150d6f | /ps_bole_calculs_statiques/xc_model_impact/loadStateData.py | 69e20459fe07531c2303bcc316ffa946b24e867d | [] | no_license | berndhahnebach/XCmodels | a6500fdde253dea10ef2bb64b7ebc3dbfc2577c2 | 4acdd7747abd7cd71f5ef580f65e93359560e5a9 | refs/heads/master | 2020-04-02T23:36:36.385054 | 2018-10-20T16:49:21 | 2018-10-20T16:49:21 | 154,873,006 | 0 | 0 | null | 2018-10-26T17:52:36 | 2018-10-26T17:52:35 | null | UTF-8 | Python | false | false | 5,140 | py | # -*- coding: utf-8 -*-
'''In this script we define default data of load cases to be used (or changed)
while displaying loads or results associated to single load cases
'''
from postprocess.reports import graphical_reports
'''
Definition of record objects with these attributes:
loadCaseName: name of the load case ... | [
"[email protected]"
] | |
81d343fe13a8e35e1122f366e78878bab4d952e7 | 8a3401fcc24fb398e7cac0f8a67e132ed5b3fa8f | /tests/test_person.py | 43307a82a22e73117afeea3e18ab139709902ab1 | [
"MIT"
] | permissive | ngzhian/pycrunchbase | 58cf96ed20b5b3f4861bb884bcf0d9ffcf4df808 | ead7c93a51907141d687da02864a3803d1876499 | refs/heads/master | 2023-07-08T06:18:59.314695 | 2023-07-03T13:27:06 | 2023-07-03T13:27:06 | 30,629,033 | 69 | 45 | MIT | 2020-12-02T02:26:40 | 2015-02-11T03:39:14 | Python | UTF-8 | Python | false | false | 1,950 | py | from datetime import datetime
from unittest import TestCase
from pycrunchbase import Person
PERSON_DATA = {
"uuid": "uuid",
"type": "Person",
"properties": {
"permalink": "first-last",
"last_name": "Last",
"first_name": "First",
"bio": "Bio",
"role_investor": True,
"born_on": "2000-01-02",
"born_on_t... | [
"[email protected]"
] | |
94b669b4d7fd6a41c17fb8fee0444d3ccd13ebcf | d3679511615b126a199fcaf923d9613526a3d41f | /chw3k5/checklist/unversioned-yuhan/uxm_bath_iv_noise_biasstep.py | 2f7f56f6d12ab929aacf83dff9cef4a9953ea2ed | [] | no_license | simonsobs/readout-script-dev | a00850eb294ca9dea7ba11af3a8af0f7f9404fd5 | 0b002f1477efb6b5fcaddc4a282c35883165a42a | refs/heads/master | 2023-08-07T14:44:42.635388 | 2023-08-01T17:36:44 | 2023-08-01T17:36:44 | 164,685,976 | 1 | 2 | null | 2021-07-27T05:25:44 | 2019-01-08T16:08:13 | Jupyter Notebook | UTF-8 | Python | false | false | 19,011 | py | '''
Code written in Oct 2021 by Yuhan Wang
to be used through OCS
UFM testing script in Pton
takes SC noise, normal noise, IV, (noise and biasstep) at 30,50,70 percent Rn
'''
import matplotlib
matplotlib.use('Agg')
import pysmurf.client
import argparse
import numpy as np
import os
import time
import glob
from sodetli... | [
"[email protected]"
] | |
8d53e43ebb62761b82dede6505a974d381b4e938 | 28c0bcb13917a277cc6c8f0a34e3bb40e992d9d4 | /koku/reporting/migrations/0109_remove_ocpusagelineitemdailysummary_pod.py | 7fc341bdb4450847e431947e91154a91e5a14a73 | [
"Apache-2.0"
] | permissive | luisfdez/koku | 43a765f6ba96c2d3b2deda345573e1d97992e22f | 2979f03fbdd1c20c3abc365a963a1282b426f321 | refs/heads/main | 2023-06-22T13:19:34.119984 | 2021-07-20T12:01:35 | 2021-07-20T12:01:35 | 387,807,027 | 0 | 1 | Apache-2.0 | 2021-07-20T13:50:15 | 2021-07-20T13:50:14 | null | UTF-8 | Python | false | false | 284 | py | # Generated by Django 2.2.11 on 2020-03-27 19:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("reporting", "0108_auto_20200405_1316")]
operations = [migrations.RemoveField(model_name="ocpusagelineitemdailysummary", name="pod")]
| [
"[email protected]"
] | |
30a1390b789e4bd86190b477b462d67108f7a4a3 | e1857e582609640f60923ea461da3e84c498095a | /block2-datatypes/numbers/number-demo.py | 671907978a108eb946e216b4c5cc6293cf1ca1c1 | [] | no_license | mbaeumer/python-challenge | 178f188004e66c5c4092af51ae5d496679d39dec | 4cff4a4939268a496117158b0be4e20f4d934213 | refs/heads/master | 2023-08-07T22:43:35.490777 | 2023-07-21T21:26:46 | 2023-07-21T21:26:46 | 75,015,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | #!/usr/bin/python
from decimal import Decimal
from decimal import DecimalException
import random
def get_user_input():
answer = ""
while answer == "":
answer = input("Please enter a number: ")
return answer
def convert_to_int(s):
try:
print(int(s))
except ValueError:
print("Cannot convert to int... | [
"[email protected]"
] | |
08e6e9616fe6a91d63adef510f938ac99e569b81 | 9249f87109471de1fc3f3c3c1b121f51c09df683 | /lesson_3/test_10.py | 89d99c4f00ee36886084f1928bbce7ee094081ba | [] | no_license | anton1k/mfti-homework | 400a8213a57e44478d65437f5afef0432e8e84ea | 93683de329e6cb0001e713214aeb3069f6e213b0 | refs/heads/master | 2020-07-18T23:41:11.473608 | 2020-01-12T10:58:16 | 2020-01-12T10:58:16 | 206,335,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # Последовательность состоит из натуральных чисел и завершается числом 0. Всего вводится не более 10000 чисел (не считая завершающего числа 0). Определите, сколько элементов этой последовательности равны ее наибольшему элементу. Числа, следующие за числом 0, считывать не нужно.
d = 0
s = 0
while True:
x = int(inpu... | [
"[email protected]"
] | |
a66ea0e584b1c0c16a1073e306b633b0ae4bd795 | 3da102290ebe6c186474ecbeec9065ea2e5357e3 | /pi/robot.py | 4d162feefe0008daae6f7e2e33d88865d9c46d45 | [] | no_license | fo-am/penelopean-robotics | 55cbbebe29f15fe5996222a5db36040ac400b8f3 | 2a6f81a4d8b098ac513bd42df980e64128df8a1b | refs/heads/master | 2022-05-28T17:46:36.579042 | 2022-05-19T13:35:47 | 2022-05-19T13:35:47 | 134,366,263 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,976 | py | import yarnasm
import radio
import time
# things we want to be able to do:
# * tweak servo defaults
# * queue of messages to send?
class robot:
def __init__(self,address):
self.address=address
self.telemetry=[0 for i in range(256)]
self.code=[]
self.source=""
self.state="ru... | [
"[email protected]"
] | |
17ba77f176141d459e81985f43e229f7ca668faf | d6d4449df702ab59a13559aaba599c60381d1852 | /tests/rot_enc_test.py | 1a121982d07371e9b5706f6ec0329ecc102aefc0 | [
"CC-BY-4.0"
] | permissive | zzfd97/StickIt-RotaryEncoder | c58ce2758676285d6ce539e895b6a5d01b451396 | 78c5511192fd471e57bc9b6b6ab5d1393ecdb0f3 | refs/heads/master | 2021-12-12T18:56:36.702963 | 2017-02-12T04:00:09 | 2017-02-12T04:00:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,614 | py | # /***********************************************************************************
# * 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 2
# * of the License, or (at y... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.