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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45fc71836bec03d6d21b6dfeddae2a05754d42dd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2342/48117/266512.py | f47d9dbe101d60faa8d80f547dbfa9c1ee225886 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | questNum = int(input())
for quest in range(questNum):
nk = input().split(' ')
n = int(nk[0])
k = int(nk[1])
s = input().split(' ')
l = -k
r = 0
jump = False
sStr = []
while r <= len(s):
l += k
r += k
targetList = s[l:r]
targetList = targetList[::-1]... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3137691110b6c66e0d80b18819bcf398fe934133 | 58085892744ba0923aa1fde75a333ed742837671 | /astronomer/astronomerweb/views.py | 0710f02661400dba36dcdbe7fd034b296a9c2997 | [] | no_license | juampiludu/Astronomer-web | cf8f225e109d07dc86bc878506a9194ec69d9f96 | 324d40448eadb45e2e9feb4cd8dfbc27a7c2543c | refs/heads/master | 2022-12-05T08:25:54.586429 | 2020-07-16T14:27:17 | 2020-07-16T14:27:17 | 262,715,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | from django.shortcuts import render, redirect
from .models import Eclipses
from adminpanel.models import Years
from datetime import datetime
from django.utils.translation import gettext_lazy as _
# Create your views here.
def mobileapp_safe_passage(request):
return redirect('mobileapp', year=2020)
def weight(req... | [
"juanzakka@gmail.com"
] | juanzakka@gmail.com |
3efdcf5dbadc3fd64f92f7f89297ffbd09785241 | ffa144fbaaebb459cd11500c8e165d64ee010cab | /doc/conf.py | f37b7d43277a68f4f4a826b1b66e2a4c00e61183 | [] | no_license | socek/formskit | 5146e693d20fa734534741ba05797b9b911e9369 | d9b1f1c74d1027c12d48b00a5e474064b29dde01 | refs/heads/master | 2016-09-15T07:42:43.103147 | 2016-04-05T15:07:35 | 2016-04-05T15:18:55 | 9,121,323 | 0 | 0 | null | 2014-11-14T08:33:58 | 2013-03-30T20:18:53 | Python | UTF-8 | Python | false | false | 8,462 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Formskit documentation build configuration file, created by
# sphinx-quickstart on Mon Dec 29 17:01:28 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# a... | [
"msocek@gmail.com"
] | msocek@gmail.com |
a94aa2082cce935a309ced050ff748b0b831b2b1 | f41309da5e0d26b24d974a009fa309a02fcaa20c | /aws_ec2_policies/aws_ec2_instance_ebs_optimization.py | df0f37cbfd9e05224909f8a8e0604fb3b9335973 | [
"Apache-2.0"
] | permissive | georgeSkoumas/panther-analysis | 2e1e87f83c6533cb6d62ecb62e3f61b2ff4b5ed4 | 30b21c270504bf7c84f99207c9c6c2f6110843ae | refs/heads/master | 2022-09-14T13:22:31.786275 | 2020-05-26T16:18:58 | 2020-05-26T16:18:58 | 267,569,230 | 1 | 0 | Apache-2.0 | 2020-05-28T11:15:05 | 2020-05-28T11:15:04 | null | UTF-8 | Python | false | false | 593 | py | OPTIMIZABLE_TYPES = {
'c1.xlarge',
'c3.xlarge',
'c3.2xlarge',
'c3.4xlarge',
'g2.2xlarge',
'i2.xlarge',
'i2.2xlarge',
'i2.4xlarge',
'm1.large',
'm1.xlarge',
'm2.2xlarge',
'm2.4xlarge',
'm3.xlarge',
'm3.2xlarge',
'r3.xlarge',
'r3.2xlarge',
'r3.4xlarge',
... | [
"noreply@github.com"
] | georgeSkoumas.noreply@github.com |
fd858653eeee01837328f5a922fd251d5041deaf | 2975af2257e633feb232a08e6294fa4c8ff6687b | /teste.py | d66f681d1c40d47529b0df83fb049d1c57606a15 | [] | no_license | fapers/python1000 | 9f5276399dba3f9edf6649df8be13242d77f7aec | 2bce18eb9d55f59f819bc9c1767d38c2f4de6b96 | refs/heads/main | 2023-07-08T18:37:39.967251 | 2021-08-16T17:39:27 | 2021-08-16T17:39:27 | 396,854,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | print('\n'*100)
my_var = 'Hello World!'
print(my_var)
print('\n'*10)
my_var = 'Hello World, two!'
help(print) | [
"fpsmoc@yahoo.com.br"
] | fpsmoc@yahoo.com.br |
db166c5cd776c2e6c526fe5849b30b00736f7614 | b3e8fbd05754ec5c56013d3e395778cfe0c364b7 | /tensorflow/compiler/mlir/runlit.cfg.py | f1271d0da24421455f808b35b8a56f1304630563 | [
"Apache-2.0"
] | permissive | rushabh-v/tensorflow | 46c3c67aad9367c8d68e8c52628f9c3d30e8a486 | c347830b50ecd020cfe982310afe1b37f0990fd5 | refs/heads/master | 2022-01-01T08:27:44.224885 | 2020-05-28T17:07:12 | 2020-05-28T17:07:12 | 234,374,809 | 3 | 0 | Apache-2.0 | 2020-01-16T17:31:46 | 2020-01-16T17:31:45 | null | UTF-8 | Python | false | false | 3,036 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
466a0e7e705b66185c9d85a05cce88b420fd0dd9 | b78807083583bbe4d539b361e35bbe5ffa97bbf4 | /src/common/forms.py | e6cfcbc320be15de1b2d7b4b96ae740626a411ad | [] | no_license | suguby/intopython | f03a97516c243038ae7332fd3ccebef98b6c5fb7 | 8fb6b8320ea06d67f18ebe8b0934997085a7b2f9 | refs/heads/master | 2020-04-12T08:01:18.793320 | 2017-08-23T12:35:32 | 2017-08-23T12:35:32 | 44,750,912 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # -*- coding: utf-8 -*-
from django.core.exceptions import ValidationError
from django.db.models import Q
from django.forms import Form
from src.articles.models import Article
from src.common.utils import get_slug
class FormCheckSlugMixin(Form):
def clean_title(self):
title = self.cleaned_data['title']
... | [
"suguby@gmail.com"
] | suguby@gmail.com |
54a9ea57660fb18801566d165f96cd5ed8ec7e1e | 6fb37fee016346120d4c14c4343516532304055a | /src/genie/libs/parser/asa/tests/test_show_interface.py | bdb88e29ce5094056a7604d40fff113ba125ceaa | [
"Apache-2.0"
] | permissive | devbollinger/genieparser | 011526ebbd747c6dcd767535ce4bd33167e15536 | ad5ce7ba8f5153d1aeb9cffcfc4dde0871f3401c | refs/heads/master | 2020-12-20T11:36:00.750128 | 2020-01-24T18:45:40 | 2020-01-24T18:45:40 | 236,061,155 | 0 | 0 | Apache-2.0 | 2020-01-24T18:38:43 | 2020-01-24T18:38:42 | null | UTF-8 | Python | false | false | 30,007 | py | import re
import unittest
from unittest.mock import Mock
from ats.topology import Device
from genie.metaparser.util.exceptions import SchemaEmptyParserError
from genie.libs.parser.asa.show_interface import ShowInterfaceSummary, \
ShowInterfaceIpBrief, \
ShowInterfaceDetail
# ==============... | [
"karmoham@cisco.com"
] | karmoham@cisco.com |
41886f26e2c9b04d4691a47498f2c44fc289ddc2 | 0e94b21a64e01b992cdc0fff274af8d77b2ae430 | /spider/076_爬虫第十节05.py | 5ecf4ef31caf735af40bbf388f8ae669a5c87c23 | [] | no_license | yangnaGitHub/LearningProcess | 1aed2da306fd98f027dcca61309082f42b860975 | 250a8b791f7deda1e716f361a2f847f4d12846d3 | refs/heads/master | 2020-04-15T16:49:38.053846 | 2019-09-05T05:52:04 | 2019-09-05T05:52:04 | 164,852,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 31 16:37:00 2017
@author: natasha1_Yang
"""
import re
import urllib2
from lxml import etree
url = 'http://weibo.com/p/1003061266321801/follow?from=page_100306&wvr=6&mod=headfollow#place'
req = urllib2.Request(url)
res = urllib2.urlopen(req)
html = res.read()
f = open(... | [
"ityangna0402@163.com"
] | ityangna0402@163.com |
56dbafcefec6cbed4ddfff2115d356d01fa9ed1a | 59e99623ef968894d1287a25498f558eb55399fa | /link_handler/doc/conf.py | a449c09e37109b1b4100833a62fb3cd04a02c451 | [] | no_license | eerimoq/simba-link-handler | ba9b8a48ad89e7ed40f5abd52704b024c186a087 | b6039dfbfb0bc26bdb719198c347e2b8e06dda74 | refs/heads/master | 2021-01-10T12:30:02.734961 | 2016-03-28T07:27:19 | 2016-03-28T07:27:19 | 54,874,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,719 | py | # -*- coding: utf-8 -*-
#
# link documentation build configuration file, created by
# sphinx-quickstart on Sat Dec 19 15:51:40 2015.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | [
"erik.moqvist@gmail.com"
] | erik.moqvist@gmail.com |
bd904602cdf8a4011c97a3511b1f8f19020c0f2f | da1da887bf7a26af55fc86ebe5dc720cd01136fc | /input/parse_dxy_api_cn.py | 1c6dd9f4655c7ec861f62a068158b6b2a3c736cf | [] | no_license | m-deck/data | b913e8947d7be3958a1420dfab9fc76fc454e2fd | 0c3bff1a38dd75f908760b34c9b9b15c5a9f77d5 | refs/heads/master | 2021-04-13T00:24:06.924895 | 2020-03-22T05:11:04 | 2020-03-22T05:11:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | #!/usr/bin/env python
'''
This script loads the latest CSV from github.com/BlankerL/DXY-COVID-19-Dataand
and extracts the confirmed cases and deaths and for each region.
Credit to the github.com/BlankerL team for scraping the data from DXY.cn.
'''
import os
import datetime
import pandas as pd
from pathlib import Pat... | [
"oscar@wahltinez.org"
] | oscar@wahltinez.org |
459d7ec345b07f5f460beabfc21c08565434bae4 | 6a764949d4c67289d134d989cbb1d89502ead7a6 | /sympy/assumptions/tests/test_matrices.py | d2b1ac9be4816656604d2ec4d53f288247d0330f | [
"BSD-3-Clause"
] | permissive | xoedusk/sympy | 86ea974b7eace1851e5aa043edf65f9d02463d4f | 3c58ac20107cdc988da9a1b85a769fbb2b6c829a | refs/heads/master | 2020-12-30T17:19:15.664492 | 2012-10-26T20:54:14 | 2012-10-26T20:54:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,375 | py | from sympy import MatrixSymbol, Q, ask, Identity, ZeroMatrix
X = MatrixSymbol('X', 2, 2)
Y = MatrixSymbol('Y', 2, 3)
Z = MatrixSymbol('Z', 2, 2)
def test_invertible():
assert ask(Q.invertible(X), Q.invertible(X))
assert ask(Q.invertible(Y)) is False
assert ask(Q.invertible(X*Y), Q.invertible(X)) is False
... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
5b7661d4159ca1d3a9eb18779c768989b1399d01 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_278/ch45_2020_04_13_02_03_49_352949.py | 4ec23d4853477d672ddbaecabacb1de70a518d84 | [] | 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 | 228 | py | nros = int(input ("digite numeros inteiros positivos: "))
nros_lista = []
while nros > 0:
nros_lista.append(nros)
nros = int(input ("digite numeros inteiros positivos: "))
print (nros_lista)
print (nros_lista[::-1]) | [
"you@example.com"
] | you@example.com |
1ab4f96bb360ac72dc81eee622011f083fd3a2aa | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/3940.py | 12f32c5b476aee47b9b386faed298260e01f7f11 | [] | 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 | 1,332 | py | def bfs(target, flipper):
init= ""
for i in range(0, len(target)):
init = init+'+'
if target == init:
return 0
visited = set([init])
cur = set([init])
count = 0
imp = True
while True:
imp = True
newcur =set([])
count += 1
for ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
816cebbd8b155bffdf512dabf13c64f701f0311b | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-3/f5bfccc9f937c7414388d336903f37b33df893ce-<get_hash>-fix.py | 4baf66cfa6f49ee24ea2ab050b21db6d68951934 | [] | 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 | 227 | py | def get_hash(frompath, topath):
from_hash = sha1_of_file(frompath)
if topath:
to_hash = (sha1_of_file(topath) if os.path.exists(topath) else None)
else:
to_hash = None
return (from_hash, to_hash) | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
62b2833fe6dd2b6452240928d2f94abf82ca4766 | 3a46f72df6f791aecaea831cf9335e0af0476b3f | /videos.py | d6741675e340b80473be7c213d945272a35dc0cd | [
"MIT"
] | permissive | sugar-activities/4679-activity | 32f0b93de55122f4a33d1a43147ae45010383186 | 351d6ca691514a4b00db4654b1b2ed7a7bcdbfe4 | refs/heads/master | 2021-01-19T23:14:26.354193 | 2017-04-21T05:09:37 | 2017-04-21T05:09:37 | 88,936,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # -*- coding: utf-8 -*-
from gettext import gettext as _
VIDEOS = (
("0.ogv",
_("Start Here"),
_("Origin Story"),
),
("1.ogv",
_("Life is Like a Game"),
_("Rule #1: There are rules to the Game of Life\n\
The Game of Life is made up of the same basic components as other games: players,... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
a09f904ab03dab5a371bbff7c10f86bf2e1f6595 | 3d435a4b335529014e904cd864f0cf6498ba6abd | /twitteralbum/urls.py | a9380800789321b2041055a29bf938ec5c2c42dd | [] | no_license | ljarufe/twitteralbum | a73612667ceef353949b6167b0a03a69c5e0eaaf | d6d4301989a570580b01005aa592ea4bd9dbcccb | refs/heads/master | 2020-12-11T05:46:16.554038 | 2016-09-22T04:41:31 | 2016-09-22T04:41:31 | 68,646,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from django.conf import settings
from django.conf.urls.static import static
from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^', include('albums.urls')),
]
if settings.DEBUG:
urlpatterns += static(
settings.MEDIA_URL... | [
"luisjarufe@gmail.com"
] | luisjarufe@gmail.com |
da62c1770515e43be6cd4f729e194bdb63a1ed7c | 379df467cd1dda00045996cd6b47ea1f1b020d9a | /wotus-model.py | 0a108d308bc5683c117e8e7924cc980feeae75c3 | [
"BSD-3-Clause"
] | permissive | Data-Science-for-Conservation/WOTUS_Revision | 164dc12f207e77f7f93d72aecb4fde62c63a3316 | f46d946198a0ca8bb50b17435e5f40cc135634cb | refs/heads/master | 2021-08-07T22:29:01.684472 | 2021-07-29T18:52:56 | 2021-07-29T18:52:56 | 218,343,280 | 0 | 2 | BSD-3-Clause | 2020-11-01T22:21:11 | 2019-10-29T17:21:32 | Jupyter Notebook | UTF-8 | Python | false | false | 7,992 | py | #!/usr/bin/env python3
import pickle
import random
import numpy as np
import pandas as pd
from sklearn.preprocessing import normalize
import streamlit as st
def main():
st.title('Sentiment Classifier and Similarity Analysis Demo')
st.markdown(
"""
Welcome to the live versions of the WOTUS models!
... | [
"heather.kusmierz@gmail.com"
] | heather.kusmierz@gmail.com |
49c1761bd5868bddd6d5deb6f6c816958be16b14 | d3e25a64e1ed4f381cf654b58eda258626b93c4c | /src/SrdPy/Loggers/__init__.py | b3a513b2f9b363e81711b848414f8362437ea83b | [] | no_license | RumblingTurtle/SrdPy | 20c380f07766b2a4ff01d7bbadcaae7f7a0cf56c | 9232cd1a13527a93e3a6bc3baf113cbea58d437b | refs/heads/master | 2023-06-18T16:00:29.151905 | 2021-07-14T11:43:28 | 2021-07-14T11:43:28 | 316,218,904 | 3 | 6 | null | 2021-05-14T14:55:36 | 2020-11-26T12:05:34 | Python | UTF-8 | Python | false | false | 192 | py | from SrdPy.Loggers.ProgressDisplayHandler import ProgressDisplayHandler
from SrdPy.Loggers.StateLoggerHandler import StateLoggerHandler
from .SimulationTickDisplay import SimulationTickDisplay | [
"edzaljaev@gmail.com"
] | edzaljaev@gmail.com |
b3e0e977ffaecfdc004f2d6b2850be36fff22785 | 43ab60f2a7cc0e29f44e9d44e08e09a43ae7489a | /code/useful/math_functions/super_neutral.py | 5b102031968d3be07ac245f439aa3c2830438240 | [] | no_license | StarBrand/CC5114-Tareas | dd090f37f667aebb1654cd6fcb3f5ae07f5810bc | f7879f1cc55df0b8154af4dcff35aeb5170f0b89 | refs/heads/master | 2022-12-12T23:04:11.306053 | 2019-12-12T21:25:22 | 2019-12-12T21:25:22 | 200,090,703 | 0 | 0 | null | 2022-12-08T06:05:21 | 2019-08-01T17:13:07 | Python | UTF-8 | Python | false | false | 981 | py | """super_neutral.py: A float that always return the other one"""
class SuperNeutral(float):
"""
A number that always return the other one
(Pass max not min)
"""
def __init__(self):
super().__init__()
def __repr__(self) -> str:
return "super_neutral"
def __str__(self) -> ... | [
"juan.saez.hidalgo@gmail.com"
] | juan.saez.hidalgo@gmail.com |
3d99019fbea32696bdbc22095aaf38bfd91ab403 | ccc4b6341676319c43a482d6322729d9172e8266 | /importer/tests/test_views_api.py | 9216adaeac0ae5f0784c9b56f477a1c5d404e37e | [
"MIT"
] | permissive | Sumerian-Health/varfish-server | 87278fcbd3c4289e63b6cbd8140d8a454fa94853 | 152b23fa93c2ea685f51622e94bc8790479c2336 | refs/heads/master | 2023-06-12T14:17:41.065266 | 2021-07-08T11:17:31 | 2021-07-08T11:28:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,532 | py | import os
from itertools import chain
from django.contrib.auth import get_user_model
from django.core.urlresolvers import reverse
from django.forms import model_to_dict
from variants.tests.helpers import ApiViewTestBase
from variants.tests.test_views_api import transmogrify_pedigree
from ..models import CaseImportIn... | [
"manuel.holtgrewe@bihealth.de"
] | manuel.holtgrewe@bihealth.de |
3d593e44835be6e8fcdc36a155d91c6c11b7b181 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_2331.py | 4cf707cde77dbfccb90dc06f9a6ac055d6160aea | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,843 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
5c840213a54e2e0cbc97df1b031054e128f15c23 | 1b19103c7781c31b4042e5404eea46fa90014a70 | /cenit_owler_1_0_0/__openerp__.py | 530f08ba7b2d79053ba1b5f0bed1ef215006e489 | [] | no_license | andhit-r/odoo-integrations | c209797d57320f9e49271967297d3a199bc82ff5 | dee7edc4e9cdcc92e2a8a3e9c34fac94921d32c0 | refs/heads/8.0 | 2021-01-12T05:52:26.101701 | 2016-12-22T03:06:52 | 2016-12-22T03:06:52 | 77,223,257 | 0 | 1 | null | 2016-12-23T12:11:08 | 2016-12-23T12:11:08 | null | UTF-8 | Python | false | false | 1,592 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010, 2014 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of t... | [
"sanchocuba@gmail.com"
] | sanchocuba@gmail.com |
456679dcb171a74301e326216877f1b8fc62e1c7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02882/s924930458.py | a2629de24ddfb263b973f985b158332b2660fb2b | [] | 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 | 1,208 | py | #from statistics import median
#import collections
#aa = collections.Counter(a) # list to list || .most_common(2)で最大の2個とりだせるお a[0][0]
from math import gcd
from itertools import combinations,permutations,accumulate, product # (string,3) 3回
#from collections import deque
from collections import deque,defaultdict,Counter
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
34fb07cd26b5fc01aa7de6bff9ccd25e70083faf | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L3E/3E-7G_MD_NVT_rerun/set_6.py | dc01e0d95955971c042f608825ea92b27cce0a20 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L3E/MD_NVT_rerun/ti_one-step/3E_7G/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_6.in'
temp_pbs = filesdir + 'temp_6.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in lam... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
57a8ba0da779ec5c2f86b8da8224a44f40dfd6ae | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_068/ch34_2020_03_30_13_30_28_241769.py | 22f7ae9eab649291ed10e6de3d485f770ed9f4b1 | [] | 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 | 394 | py | def eh_primo(num):
i = 2
if num == 2:
return True
elif num == 0 or num == 1:
return False
while i < num:
if num % i == 0:
return False
i = i + 1
return True
def maior_primo_menor_que(n):
c = n
while c <= n:
if eh_primo(c):
retu... | [
"you@example.com"
] | you@example.com |
3e0bba05512d89ee836be06c0e81af2828c8f196 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/matplotlib/2017/12/compare.py | c0b933ed6986b1c863f777fdf1dd22f3b37f86c8 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 18,062 | py | """
Provides a collection of utilities for comparing (image) results.
"""
from __future__ import absolute_import, division, print_function
import six
import atexit
import functools
import hashlib
import itertools
import os
import re
import shutil
import sys
from tempfile import TemporaryFile
import numpy as np
imp... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
6670f58b1a42f3ea7ec0801486df503e89a6f712 | 5c0c0176db0ccf2c24b6b5ed459a8dc144518b13 | /test/ut/sdk/models/pytorch_models/__init__.py | 363c7d3c9c939aa6b62d27361f3c5acd6816a2c9 | [
"MIT"
] | permissive | petuum/nni | ac4f4a1c4d6df71684eeffa127b7c4858fd29e97 | 8134be6269902939232482d63649c06f9864be6d | refs/heads/master | 2023-02-18T11:21:41.078889 | 2021-01-20T03:21:50 | 2021-01-20T03:21:50 | 302,736,456 | 4 | 3 | MIT | 2020-11-20T20:21:15 | 2020-10-09T19:34:11 | Python | UTF-8 | Python | false | false | 249 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from .layer_choice_only import LayerChoiceOnlySearchSpace
from .mutable_scope import SpaceWithMutableScope
from .naive import NaiveSearchSpace
from .nested import NestedSpace
| [
"noreply@github.com"
] | petuum.noreply@github.com |
4a3b863fd37d7f20a31f21a781e0cd4a6b1dc9cc | 620323fc090cebaf7aca456ff3f7fbbe1e210394 | /html_parsing/svoya_kompaniya_ru/common.py | c756f9f57118960716fcb22ff1e0ab6636034327 | [
"CC-BY-4.0"
] | permissive | gil9red/SimplePyScripts | bd2733372728bf9b9f00570e90316fa12116516b | 773c2c9724edd8827a1dbd91694d780e03fcb05a | refs/heads/master | 2023-08-31T04:26:09.120173 | 2023-08-30T17:22:59 | 2023-08-30T17:22:59 | 22,650,442 | 157 | 46 | null | 2023-09-08T17:51:33 | 2014-08-05T16:19:52 | Python | UTF-8 | Python | false | false | 6,603 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "ipetrash"
import json
import re
from collections import defaultdict
import requests
session = requests.session()
session.headers[
"User-Agent"
] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0"
def get_api_sk_men... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
5a83aacc2dc6bb78c5c5a7da63707cb74982ff91 | e8a48749014f372633de65d79bfa26a3ad743d89 | /src/transformers/models/vilt/modeling_vilt.py | 09672ef9afb638b4c6bd339ec3a0c46bdf397eba | [
"Apache-2.0"
] | permissive | pvcastro/pytorch-pretrained-BERT | 183b7291972c8d8c66c995647df66c1fe439a763 | 49cd736a288a315d741e5c337790effa4c9fa689 | refs/heads/master | 2022-08-19T08:55:16.332585 | 2022-06-30T16:11:08 | 2022-06-30T16:11:08 | 168,367,637 | 1 | 0 | Apache-2.0 | 2019-01-30T15:39:42 | 2019-01-30T15:39:41 | null | UTF-8 | Python | false | false | 59,350 | py | # coding=utf-8
# Copyright 2022 NAVER AI Labs and The HuggingFace Inc. team. 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/LICENS... | [
"noreply@github.com"
] | pvcastro.noreply@github.com |
2bc33ccab716173f65ba2e56d28436d3f8a7b4f9 | 852b8397b7612be195cae50e8fc0d47f9d8f8dc8 | /src/binwalk/prettyprint.py | 0a14c84137a445db6fe053df5c0126825b771d82 | [
"MIT"
] | permissive | m0sia/binwalk | 3fb989e58a55cbecc07e4959da485d2e14fc0ee3 | 084d2e824f1fc699f52715d009526aa2e57dda40 | refs/heads/master | 2020-04-01T21:51:54.962324 | 2013-12-03T16:56:20 | 2013-12-03T16:56:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,316 | py | import io
import sys
import hashlib
import csv as pycsv
from datetime import datetime
from binwalk.compat import *
class PrettyPrint:
'''
Class for printing binwalk results to screen/log files.
An instance of PrettyPrint is available via the Binwalk.display object.
The PrettyPrint.results() method is of particul... | [
"heffnercj@gmail.com"
] | heffnercj@gmail.com |
ce113fdfffb5a6f7ff6f58cb1011aff9eb2b233d | d3f326cb9e3f9c51a9538ff1f7f07de297894742 | /modoboa_postfix_autoreply/general_callbacks.py | df5091e15412f6ef692ea8886c1efb4d9f00003a | [
"MIT"
] | permissive | digideskio/modoboa-postfix-autoreply | 72784bdb8aee84384a4c8e85bc74a32f45d7eecd | 40cecf5fef076f1634da827a6b136c242d5773eb | refs/heads/master | 2021-01-17T20:29:18.525644 | 2016-01-04T11:07:58 | 2016-01-04T11:07:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | """Event callbacks."""
from django.utils.translation import ugettext_lazy, ugettext as _
from modoboa.lib import events
from .forms import ARmessageForm
@events.observe("ExtraUprefsJS")
def extra_js(user):
return ["""function autoreply_cb() {
$('.datefield').datetimepicker({
format: 'YYYY-MM-DD HH:... | [
"tonio@ngyn.org"
] | tonio@ngyn.org |
0b21a164a6b552266a4fc888a8e308aa813276d9 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4188/codes/1644_869.py | 4624410c58f63637840fa21fff044dfb9fd2ae3d | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Use as mensagens de erro para corrigir seu código.
n=float(input("digite o valor: "))
if ( n>=200):
n= n - n*(5/100)
print(round(n, 2))
else:
print(round(n, 2)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
2209eb7b08d1165606614c5b17f389ada8037fa7 | ccfdc67a47b1a8965a1c609693b67463f6d330e8 | /py/phl/phlcon_project.py | b6a3907ba485ee794cdac5c6a88cf8c4dc3ec990 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vaibhavguptaIITD/phabricator-tools | c4c2d71a8f9a698bc681e32219ee470012a7dc69 | 55234878904f806093e5ed43db2f206fd202213e | refs/heads/master | 2021-01-20T17:47:29.198888 | 2013-12-23T01:03:10 | 2013-12-23T16:53:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | """Wrapper to call Phabricator's Project Conduit API."""
# =============================================================================
# CONTENTS
# -----------------------------------------------------------------------------
# phlcon_project
#
# Public Functions:
# query_some
# query_all
# make_project_to_phid... | [
"jevripiotis@bloomberg.net"
] | jevripiotis@bloomberg.net |
b44d49349fdaa8d9cb5748d76f0fce1a40ead075 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/617.py | 048c5bbadfda48f6c15441010bcb555235f8e176 | [] | 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 | 871 | py | import sys, os, re, collections
def print_result (case_num, result):
print('Case #{}: {}'.format(case_num + 1, result))
def create (trial, i, result_so_far):
if i == len(trial):
return int(''.join(map(str,result_so_far)))
cur = int(trial[i])
prev = result_so_far[-1]
if cur < prev:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
b09804f9e67883303731784c70182e1702446402 | cbe264842df4eae3569b28ed4aae9489014ed23c | /books/PythonCleanCode/ch3_good_code/exceptions_3.py | e0cb4d0bb80387d1c9a9a875a8dfccd0b281df01 | [
"MIT"
] | permissive | zeroam/TIL | 31e176c2f4c3e1ef72b1155353690cc2f7160f96 | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | refs/heads/master | 2021-07-23T01:43:34.135033 | 2021-07-10T06:47:17 | 2021-07-10T06:47:17 | 167,952,375 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | """Clean Code in Python - Chapter 3: General Traits of Good Code
> Exceptions
"""
class InternalDataError(Exception):
"""An exception with the data of our domain problem."""
def process(data_dictionary, record_id):
try:
return data_dictionary[record_id]
except KeyError as e:
... | [
"imdff0803@gmail.com"
] | imdff0803@gmail.com |
a8ec21389c41929ebf2fc902d661ce4164f9fd50 | 138200ab4d31e2267a704b62b4fbc86eda6495c2 | /test/sim/test_move_reflect.py | f38c750256133e4352ab1259692c59402da9ed43 | [
"MIT"
] | permissive | juntamura/pokeai | abd22a929e1f14566c7d8ddaa0bd49def4473d4f | 0349f6ab1109eab9aa114fbae3a8a08b42e901ab | refs/heads/master | 2020-04-10T20:02:42.812860 | 2018-11-01T12:21:30 | 2018-11-01T12:21:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | import unittest
from pokeai.sim import Field
from pokeai.sim.dexno import Dexno
from pokeai.sim.field import FieldPhase
from pokeai.sim.field_action import FieldAction, FieldActionType
from pokeai.sim.game_rng import GameRNGFixed, GameRNGReason
from pokeai.sim.move import Move
from pokeai.sim.party import Party
from p... | [
"select766@outlook.jp"
] | select766@outlook.jp |
7c52137510e95d1012cb4180408c418d6a89fcf6 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /LanWAvTtQetP5xyDu_16.py | cfd3647a2d1e823d6e5d58c0376096d6d4e9d121 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py |
def coins_div(lst):
a = sum(lst)/3
m = a
s = []
c = len(lst)
d = len(lst) * len(lst)
while len(lst) > 0:
for z in range(0, len(lst)+1):
for x in (lst[z:len(lst)]+ lst[0:z]):
if x != m:
if m - x > 0:
m = m - x
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c574573ddada530356d10331a866aa7e57dec0be | a496b51ec3de7e113a4906b6fbdfe8e85dfe20e5 | /gym_CartPole_BT/systems/cartpend.py | 89bd0e92c4f3cca061649c55c418d3024448f91e | [] | no_license | systemscontrol/gym-CartPole-bt-v0 | a52c0c5988798ea3ce4de37f08d1254d2072f8e6 | d02fe89a943a3b20590e63f1a5321475b6a09da4 | refs/heads/master | 2023-08-22T16:48:42.926625 | 2021-10-17T05:45:09 | 2021-10-17T05:45:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,268 | py | """
Functions to simulate the dynamics of a simple cart-pendulum system.
Copied from MATLAB script provided by Steven L. Brunton as part of his
Control Bootcamp series of YouTube videos.
"""
import math
import numpy as np
def cartpend_dxdt(t, x, m=1, M=5, L=2, g=-10, d=1, u=0):
"""Simulates the non-linear dynami... | [
"bill.tubbs@me.com"
] | bill.tubbs@me.com |
262fed97efc1dd46c457a68e05f075bc36e7538f | 947cff1105855ce189bb59018ff4b36f7be022d8 | /setup.py | 4420086156df449e4434665fee01ddabddcf6b11 | [
"MIT"
] | permissive | DataBrewery/cubes-mongo | d5cbd50c3b7042b6737456fc74e8703db0b22e30 | 860dbcf8261167ea24c087a6136ad3c9d3ed31f2 | refs/heads/master | 2020-02-26T15:04:09.338777 | 2016-06-04T20:43:07 | 2016-06-04T20:43:07 | 29,762,339 | 7 | 6 | null | 2016-06-17T10:38:59 | 2015-01-24T02:11:35 | Python | UTF-8 | Python | false | false | 1,032 | py | from setuptools import setup, find_packages
requirements = ["pytz"]
setup(
name = "cubes-mongo",
version = '0.1',
install_requires = requirements,
packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
package_data = {
},
classifiers = [
'Development Sta... | [
"stefan@agentfarms.net"
] | stefan@agentfarms.net |
59210e54cd2576d9fd373da36bb936fd86b5ac2a | c7009093f1e4d5db31d7fb5d876b46f5f9ac5268 | /week0/Second/26-prepare_meal/tests.py | 8cec82f6ad210db7861e99223fde364ac8bb22ea | [] | no_license | mileto94/HackBulgaria | 4ea52ff306c202b9207f66e218ca79082832246a | 414b37dd102a3de5e976d4d97b1b2d95bb253892 | refs/heads/master | 2016-09-06T17:31:04.618614 | 2014-06-24T18:40:27 | 2014-06-24T18:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | import solution
import unittest
class TestPrepareMeal(unittest.TestCase):
"""docstring for TestPrepareMeal"""
def test_prepare_meal_with_5(self):
self.assertEqual("eggs", solution.prepare_meal(5))
def test_prepare_meal_with_3(self):
self.assertEqual("spam", solution.prepare_meal(3))
d... | [
"mileto94@abv.bg"
] | mileto94@abv.bg |
22464044d1dc34aa64430fac8836ea0d2dd49149 | 642869294d8362ffefc67c676653eeab0c72138a | /ryu/topology/switches.py | 690a8fca509c948857a1771a38785b2c37c71836 | [
"Apache-2.0"
] | permissive | samrussell/ryu | 3abbb72741c330dfb0f2108a0a9bb01ee2dddebc | a62aa7ecc6c0372cc2b633140005dc5e85ea6129 | refs/heads/master | 2021-01-23T23:39:27.914791 | 2013-07-16T09:45:27 | 2013-07-16T09:45:27 | 11,357,518 | 2 | 0 | null | 2013-07-15T22:47:32 | 2013-07-12T01:28:40 | Python | UTF-8 | Python | false | false | 27,105 | py | # Copyright (C) 2013 Nippon Telegraph and Telephone 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 appli... | [
"fujita.tomonori@lab.ntt.co.jp"
] | fujita.tomonori@lab.ntt.co.jp |
0891860a0d91b6a46dcba7c9b703494e2373b77b | d9da59459b0800711dd105fee21467345c67ddd3 | /Python/Django/SchoolWebsite/school_site/core/migrations/0019_auto_20190512_2238.py | 0710095db2f198bde96f321eb4b98b68f7a684e0 | [] | no_license | alex6446/ProgrammingStuff | fa61415c742967df4a30fbfe993e6ebb15b0f2e8 | 61b73095396fded3740b783edf9408269873a312 | refs/heads/master | 2022-12-04T02:14:27.962459 | 2021-06-29T14:48:59 | 2021-06-29T14:48:59 | 197,647,269 | 1 | 0 | null | 2022-11-22T03:56:19 | 2019-07-18T19:44:44 | Python | UTF-8 | Python | false | false | 539 | py | # Generated by Django 2.2 on 2019-05-12 19:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0018_attachedfile'),
]
operations = [
migrations.RemoveField(
model_name='attachedfile',
name='event',
),
... | [
"alexeymedenitskiy@gmail.com"
] | alexeymedenitskiy@gmail.com |
05f1d65e2f7902af87b1a293d6a36b31c80107e3 | e9837e35a3e9b69e4971111fbf94a2a8508e8832 | /crprop/definitions.py | 6c86fdbc9de0b37f26112d0646ab5482cce20ade | [
"MIT"
] | permissive | zhampel/cr-geomag-prop | 1079c3deac6bc6f425349d9a8675aea3a78389c9 | 0ef4d0d4166926aefee6a49ff3d31ebef51c8f54 | refs/heads/master | 2021-06-02T05:01:22.253215 | 2021-04-30T22:36:40 | 2021-04-30T22:36:40 | 139,786,726 | 13 | 4 | MIT | 2018-09-27T23:30:47 | 2018-07-05T02:46:56 | Python | UTF-8 | Python | false | false | 594 | py | import os
# Local directory of crprop
CRPROP_DIR = os.path.dirname(os.path.realpath(__file__))
# Local directory containing entire repo
REPO_DIR = os.path.split(CRPROP_DIR)[0]
# Local directory containing textures
TEXTURE_DIR = os.path.join(CRPROP_DIR, 'textures')
# Local directory for saving output frames
FRAME_O... | [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
7621c3e4b6ef51d22cad9855aba809a84f11dca7 | fd416b8016a7c95f933bdcf6df86c385920aa1f5 | /todo/migrations/0001_initial.py | 74977301f8cf4c82ff809d3f42a6f8fe7a2db900 | [] | no_license | akjasim/codeband_dj_createview | 6819543d46b094c4d8eb323e6a103ce69596a662 | 15f63da2e664909512545de331c5a12400ba03b3 | refs/heads/master | 2021-05-29T00:00:24.420636 | 2020-04-09T10:04:42 | 2020-04-09T10:04:42 | 254,290,647 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Generated by Django 3.0.5 on 2020-04-09 06:49
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id', models.AutoField(aut... | [
"jasimjasim786@gmail.com"
] | jasimjasim786@gmail.com |
de0b7a6c6efc40e90e7c380e336fc24626668bdd | 6aa59fb47d7b61a28eace0e421d6d898e920f5b6 | /Inheritance-Exercise/Players-and-Monsters/soul_master.py | 8e0ef922e8dda8438f6f064fc9d783783204c591 | [] | no_license | Vigyrious/python_oop | 1488bf7ffc53059a790a694660a03ebe6814f615 | 8c28e9f8fe6e2af0c0b35b6a691f1af65f0e8579 | refs/heads/main | 2023-03-18T10:12:08.768834 | 2021-03-12T20:50:43 | 2021-03-12T20:50:43 | 347,192,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from Restaurant.dark_wizard import DarkWizard
class SoulMaster(DarkWizard):
def __init__(self, name, level):
super().__init__(name, level) | [
"73179295+Vigyrious@users.noreply.github.com"
] | 73179295+Vigyrious@users.noreply.github.com |
6726ec1ebab7ed2bcd1432503055e2472709b28a | 66c7916057abb72bbdcf9e2d661b27d3a0032729 | /tests/core/tests/__init__.py | 9707fac473731c60008973bc3392f8dc1293f840 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | luohaifenglight/django-import-export | 3637b2deeb5eb028d9d225fcd98bb5202bea09d5 | 2d662fc2fe3cb063e4cc57d0c7aff99ca1e90ab5 | refs/heads/master | 2020-03-19T10:57:30.932459 | 2018-06-01T07:45:39 | 2018-06-01T07:45:39 | 136,416,290 | 0 | 0 | BSD-2-Clause | 2018-06-07T03:20:57 | 2018-06-07T03:20:56 | null | UTF-8 | Python | false | false | 20 | py | from .test import *
| [
"bmihelac@mihelac.org"
] | bmihelac@mihelac.org |
9887a2e8ed5aa5cbb4d74c8d8d2514dbbdaf9122 | 3ab494cac87a9f3c5ba17c903ffdbba7e72c305f | /algorithm/day10/배열최소합.py | 494ed26448b1785d6edd467df6d6700e2280fdc8 | [] | no_license | sochic2/TIL | 6036cae002ce4c4ba5e7d2175e668c664de209de | eb2709f5ac1a4b9c79dda0e647f14044c7a4fb6e | refs/heads/master | 2023-01-10T03:51:14.057387 | 2022-12-21T01:27:38 | 2022-12-21T01:27:38 | 162,229,719 | 4 | 1 | null | 2023-01-09T11:56:04 | 2018-12-18T04:23:54 | Python | UTF-8 | Python | false | false | 194 | py | import sys
sys.stdin = open('배열최소합_input.txt')
T = int(input())
for tc in range(T):
N = int(input())
data = [list(map(int, input().split())) for _ in range(N)]
print(data) | [
"netzzang12@gmail.com"
] | netzzang12@gmail.com |
cbdc309c4e4d162ecaf81f43e78c8835fe2dfb38 | 2d4380518d9c591b6b6c09ea51e28a34381fc80c | /CIM16/IEC61970/Informative/InfWork/ContractorItem.py | daee735321dab1f6c19ace847b004ee627de5b98 | [
"MIT"
] | permissive | fran-jo/PyCIM | 355e36ae14d1b64b01e752c5acd5395bf88cd949 | de942633d966bdf2bd76d680ecb20517fc873281 | refs/heads/master | 2021-01-20T03:00:41.186556 | 2017-09-19T14:15:33 | 2017-09-19T14:15:33 | 89,480,767 | 0 | 1 | null | 2017-04-26T12:57:44 | 2017-04-26T12:57:44 | null | UTF-8 | Python | false | false | 4,902 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | [
"fran_jo@hotmail.com"
] | fran_jo@hotmail.com |
f9d0d835cf075693df0337ad0ebfb7a4ca4b4d65 | 70cdf79e1f1b628e79da8be6aadc93ef77cec98e | /Semana_3/clase_banco.py | 96f62b18d7c090c417e5eeef713259129b15e18e | [] | no_license | Cristopher-12/POO-1719110585 | 9c3b366914c33a39a32e01ab846805c49f483916 | e7fece686ea75313a22abf8dfc7689cb9661b5b6 | refs/heads/master | 2022-11-24T08:04:54.729632 | 2020-08-03T05:00:19 | 2020-08-03T05:00:19 | 266,200,008 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | class Banco_Azteca:
#ATRIBUTOS
dinero = "Dinero"
personal = "Personal"
ventanillas = "Ventanillas"
sala_de_espera = "Sala de espera"
boveda = "Boveda"
#MÉTODOS
def hacer_depositos(self):
print("Hacer depositos")
def hacer_retiros(self):
print("Hacer retiros... | [
"replituser@example.com"
] | replituser@example.com |
a674a3ce32af78a19f6c44ca1d3eb26d0d2af9e2 | 54b7f9e861910598457b0286af8e30399133b0d4 | /pyTecanFluent/__init__.py | b4a97173a5fef7828044071ae1668f50f0e4083d | [
"MIT"
] | permissive | leylabmpi/pyTecanFluent | 92edc4c7ae7b55f399540f6b9a60ceceeca7e035 | 9d76f9cb037c865b3ab1fc82033e18d966143ea9 | refs/heads/master | 2021-12-22T06:04:09.471083 | 2021-12-15T11:43:51 | 2021-12-15T11:43:51 | 100,596,687 | 19 | 2 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | # -*- coding: utf-8 -*-
__author__ = """Nick Youngblut"""
__email__ = 'nyoungb2@gmail.com'
| [
"nicholas.youngblut@tuebingen.mpg.de"
] | nicholas.youngblut@tuebingen.mpg.de |
2e726dce34d8ca1356a29428916ef1dc458e9936 | f1190adf3f20c17508d9791fd79cb59470ee5d8e | /django_echarts/entities/layouts.py | 471791effa9bf6ef502577423a64860f36ee6acb | [
"MIT"
] | permissive | kinegratii/django-echarts | 38c42d6cd2078d01220b981fd7322b59d54f4fc5 | 12de6cf4faab1ecbbc06bd487727cc16791ee556 | refs/heads/master | 2023-03-18T02:26:11.916961 | 2023-03-17T02:33:34 | 2023-03-17T02:33:34 | 98,728,999 | 264 | 73 | MIT | 2023-03-17T02:33:35 | 2017-07-29T11:45:17 | Python | UTF-8 | Python | false | false | 1,790 | py | import re
from functools import singledispatch
from typing import List, Union
__all__ = ['LayoutOpts', 'TYPE_LAYOUT_OPTS', 'any2layout']
_defaults = {'l': 8, 'r': 8, 's': 8, 't': 6, 'b': 6, 'f': 12}
_rm = re.compile(r'([lrtbfsa])(([1-9]|(1[12]))?)')
class LayoutOpts:
"""Layout for user defined.
"""
__s... | [
"kinegratii@gmail.com"
] | kinegratii@gmail.com |
f8a0a12dc290f66f0348010f122845b0e28399c5 | 3996539eae965e8e3cf9bd194123989741825525 | /FWCore/Integration/DoodadESSource_cfi.py | d10fda687e730df0a1358df36c53c899a1fbc911 | [] | 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 | 211 | py | import FWCore.ParameterSet.Config as cms
DoodadESSource = cms.ESSource('DoodadESSource',
appendToDataLabel = cms.optional.string,
test2 = cms.optional.untracked.string,
test = cms.untracked.bool(False)
)
| [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
8051048d3063ef28bcf05d664a3bf2cb775fffb6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_325/ch27_2020_03_10_20_40_51_309829.py | fbb7a5dd74b36eb5dfb6560a1b6b348f44ff4309 | [] | 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 | 253 | py | pergunta = input("Tem duvidas na matéria?: ")
tem_duvida = True
while tem_duvida:
if pergunta != "não":
print("Pratique mais")
pergunta = input("Tem duvidas na matéria?: ")
else:
print("Até a próxima")
break
| [
"you@example.com"
] | you@example.com |
dacdd7bdb853afc6ec1deb6d70341b1d4e95c61d | 645b4112d1007b56ca2fbfa4d988c633bace2408 | /mozillians/phonebook/migrations/0005_auto__del_field_invite_inviter_old__del_field_invite_redeemer_old.py | 08280233b701b223b3effe927000478b29b8d2e8 | [] | no_license | nuwe1/mozillians | e0a9c37513120db95f0f65f889f98dff8de30758 | 3c92fac79e8a27f1681952b86038e3f4c6f36076 | refs/heads/master | 2021-01-16T19:21:26.061855 | 2015-03-24T10:33:40 | 2015-03-24T10:33:40 | 32,919,201 | 1 | 0 | null | 2015-03-26T09:49:38 | 2015-03-26T09:49:38 | null | UTF-8 | Python | false | false | 7,022 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Invite.inviter_old'
db.delete_column('invite', 'inviter')
# Deleting field 'Inv... | [
"dd+github@davedash.com"
] | dd+github@davedash.com |
2cd969b24c7756f6daa580db3b63e3d1271b6640 | 5aa9842dba47281f09c5afc10194b7ec62cd7e0f | /samples/coco/model.py | 678d540fd2eb561219d89c7e3fcefac4fca7fee7 | [
"MIT"
] | permissive | lxy5513/Mask_CRNN | 42a9e3eafcbf48736a2736134cc67045c174dca8 | 33febc2adcc8071ca3358f551dd7306416a3292b | refs/heads/master | 2020-03-27T21:41:14.792939 | 2018-10-23T01:25:39 | 2018-10-23T01:25:39 | 147,167,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,117 | py | #!/usr/bin/env python
# coding: utf-8
# ## Mask R-CNN - Inspect Trained Model
#
# Code and visualizations to test, debug, and evaluate the Mask R-CNN model.
# In[1]:
import os
import sys
import random
import math
import re
import time
import numpy as np
import tensorflow as tf
import matplotlib
import matplotlib.py... | [
"lxy5513@gmail.com"
] | lxy5513@gmail.com |
b615ccec79317abc4feee6a4793b6fa985c5a7a4 | d4c29c506e5601a9148175a7dd88f7b4dbdc1b52 | /scratch_32 | 01c13f222cf71766dc8085befb8895e3bcf8ceb5 | [] | no_license | miniyk2012/scratches | b09dd9c7658ddcba718c7d6467cc6a093411dc6e | 0fc76d03ec4f6eba4359c31bf0e0890088e85e51 | refs/heads/master | 2021-01-12T06:07:54.415867 | 2017-01-02T03:28:40 | 2017-01-02T03:28:40 | 77,305,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,088 | # Exercise2
import re
print('number')
def is_number(number):
# Write a function to match decimal numbers.
# We want to allow an optional - and we want to match numbers with or without one decimal point:
NUM_RE = re.compile(r'^-*(\d+\.|\.\d+|\d+.\d+|\d+)$')
print(NUM_RE.search(number), end=':')
retu... | [
"yangk@ersoft.cn"
] | yangk@ersoft.cn | |
1abaca49b0e96436417d4e6023446a6e11029f51 | 8898aae07e7ca64901c4e086de680f2eddb8547a | /01/tourney/input_format_validators/validate.py | 3385ffd3832775ddff9325ec96edcc43675d07f8 | [] | no_license | keppnisforritun/IOI-training-2017 | 93eb9e2b8b8ed49d5c230af044dc291863d228a2 | 0b226d03ff7e2e55623690423b2ae01bfec621c3 | refs/heads/master | 2021-01-24T18:59:24.615701 | 2017-04-01T21:13:44 | 2017-04-01T21:13:44 | 86,173,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | import sys
import re
n,m = map(int, sys.stdin.readline().split())
assert 1 <= n <= 20
assert 1 <= m <= 10**6
for i in range(1<<n):
x = int(sys.stdin.readline())
assert 1 <= x <= 10**9
for i in range(m):
ops = sys.stdin.readline().split()
if ops[0] == 'R':
assert len(ops) == 3
a = int(... | [
"bjarki.agust@gmail.com"
] | bjarki.agust@gmail.com |
e530700c8817871a5c0fa2a569f29f96c14740d5 | f3e1814436faac544cf9d56182b6658af257300a | /GOOGLE COMPETETIONS/codejam_Q_5_2021.py | 9e1c6e8aeb81e2dd1a22742ba307d399b81ce04d | [] | no_license | preetmodh/COMPETETIVE_CODING_QUESTIONS | 36961b8b75c9f34e127731eb4ffb5742e577e8a2 | c73afb87d197e30d801d628a9db261adfd701be9 | refs/heads/master | 2023-07-15T03:19:15.330633 | 2021-05-16T10:17:20 | 2021-05-16T10:17:20 | 279,030,727 | 2 | 1 | null | 2021-01-12T03:55:26 | 2020-07-12T09:18:57 | Python | UTF-8 | Python | false | false | 251 | py | t=int(input())
p=int(input())
for t in range(t):
a=[]
for i in range(1,100+1):
temp=input()
ones=temp.count('1')
a.append((ones,i))
a.sort()
ans=a[-1][1]
print("Case #"+str(t+1)+": "+str(abs(ans))) | [
"noreply@github.com"
] | preetmodh.noreply@github.com |
58cbd4b5b3ca242d1367e84c62472430b1248c1a | 4c45ab58fcfd2b9381de463f983a7e88cdbb90f8 | /59.Single_Number_III.py | a55db969b34fdfad06e6966a0ea54fc4af4ad705 | [] | no_license | swapnilvishwakarma/100_Days_of_Coding_Challenge_Part-2 | 3d17e9c2f74297fb98dcff66507b955c2820c641 | 86593fc57dcf823e11f3f073995fd04b194686a0 | refs/heads/master | 2023-06-19T02:13:49.563355 | 2021-07-19T09:52:38 | 2021-07-19T09:52:38 | 356,763,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | # Given an integer array nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. You can return the answer in any order.
# You must write an algorithm that runs in linear runtime complexity and uses only constant extra space.
fr... | [
"swapnil.vishwakarma18@siesgst.ac.in"
] | swapnil.vishwakarma18@siesgst.ac.in |
1ab18e79935ccabbf618612fa26202ae7a352782 | 1bde114a847c629701e3acd004be5788594e0ef1 | /Examples/Util/Synchronization.py | c468f629e35ce22cf0b301923b4f9483473d81b4 | [] | no_license | BruceEckel/ThinkingInPython | 0b234cad088ee144bb8511e1e7db9fd5bba78877 | 76a1310deaa51e02e9f83ab74520b8269aac6fff | refs/heads/master | 2022-02-21T23:01:40.544505 | 2022-02-08T22:26:52 | 2022-02-08T22:26:52 | 97,673,620 | 106 | 33 | null | 2022-02-08T22:26:53 | 2017-07-19T04:43:50 | Python | UTF-8 | Python | false | false | 1,052 | py | # Util/Synchronization.py
'''Simple emulation of Java's 'synchronized'
keyword, from Peter Norvig.'''
import threading
def synchronized(method):
def f(*args):
self = args[0]
self.mutex.acquire();
# print(method.__name__, 'acquired')
try:
return apply(method, args)
... | [
"mindviewinc@gmail.com"
] | mindviewinc@gmail.com |
9ca2a64d20a34f5cad9ab30c9c0d4fc249cff2f9 | e073d58c135e4b27b861946a6e84aa5b2e0ae7f2 | /datastructure/hash_table/RandomizedSet.py | f685d6daef38e380d67f761e25214ed97db9a2f3 | [] | no_license | yinhuax/leet_code | c4bdb69752d441af0a3bcc0745e1133423f60a7b | 9acba92695c06406f12f997a720bfe1deb9464a8 | refs/heads/master | 2023-07-25T02:44:59.476954 | 2021-09-04T09:07:06 | 2021-09-04T09:07:06 | 386,097,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,677 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Mike
# @Contact : 597290963@qq.com
# @Time : 2021/2/5 19:55
# @File : RandomizedSet.py
"""
设计一个支持在平均 时间复杂度 O(1) 下,执行以下操作的数据结构。
insert(val):当元素 val 不存在时,向集合中插入该项。
remove(val):元素 val 存在时,从集合中移除该项。
getRandom:随机返回现有集合中的一项。每个元素应该有相同的概率被返回。
示例 :
// 初始化一个空的集合。... | [
"597290963@qq.com"
] | 597290963@qq.com |
f4f2e129075833637edf67a00bb3995670852d46 | 169567ad9e8a69979e8f226717b1c859fdca02d3 | /django_app/blog/models.py | ac66c862a314f7e6321ac80722baa04eaf656edf | [] | no_license | juliahwang/Django-Pairprogramming | f20ab735abd398a77019697b142f1cd199016ec3 | b392450de024abf55f7fa50979f1f6b3714fb986 | refs/heads/master | 2021-01-23T02:05:16.868946 | 2017-05-31T15:28:50 | 2017-05-31T15:30:02 | 92,905,762 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from django.db import models
# Create your models here.
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=timezone.now
)
pu... | [
"recordingbetter@gmail.com"
] | recordingbetter@gmail.com |
87ac75574d05ed11f0e27f8fc0c35a1a9bfb419d | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /platform/bq/third_party/googleapiclient/_auth.py | 82806561d9653bb2ef534a4b6320e26a2e32d8e5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 5,701 | py | #!/usr/bin/env python
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
078d3cff1b1fae82886d958a17028435ae4f8eab | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/semantic_segmentation/BiseNetV1_for_PyTorch/tools/model_converters/vit2mmseg.py | f57b4c7be6e7e33d6ca091ec2a94560f62a20810 | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,819 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# Copyright 2020 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... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
8173fee76827673b81f6a69105ea5787568d8730 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnwaterspout.py | aa95466df74a9111a11b723c44c0609a177d84d2 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 162 | py | ii = [('MedwTAI.py', 3), ('KirbWPW2.py', 1), ('FitzRNS4.py', 1), ('ClarGE3.py', 2), ('FitzRNS2.py', 1), ('BowrJMM2.py', 1), ('LyelCPG3.py', 1), ('BeckWRE.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
7c6e9eb46e6d2adf13732a2e90e46d48f01ad461 | 485816a0a8b86818e4f2cefec517e6316e2252d6 | /posthog/plugins/test/mock.py | ef91b5a4302140ffbf4c98a483b6b5a394a48b6b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | abhijitghate/posthog | 3647443274aee6431e7fecf6902644a9fa7eb9d8 | 68dc4d2730600efb00d3708fb7fba70d85612760 | refs/heads/master | 2023-04-19T15:17:25.033992 | 2021-05-13T09:48:59 | 2021-05-13T09:48:59 | 279,130,099 | 1 | 0 | MIT | 2020-07-12T19:04:15 | 2020-07-12T19:04:14 | null | UTF-8 | Python | false | false | 6,661 | py | import base64
import json
# This method will be used by the mock to replace requests.get
from posthog.plugins.utils import get_json_from_zip_archive, put_json_into_zip_archive
from .plugin_archives import (
HELLO_WORLD_PLUGIN_GITHUB_ATTACHMENT_ZIP,
HELLO_WORLD_PLUGIN_GITHUB_ZIP,
HELLO_WORLD_PLUGIN_GITLAB_... | [
"noreply@github.com"
] | abhijitghate.noreply@github.com |
a118873d45a5ae460a18f3692aef11d908fc5000 | e1bc46edbe00f261282cb798eb59a25ad5227eff | /lte/gateway/python/scripts/feg_hello_cli.py | 51efa32bdcfd05ac33dac172f934297d2773cf52 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | 119Vik/magma-1 | 57f9a69036c742fcfcb97e84c59be78dec650609 | 107a7b374466a837fc0a49b283ba9d6ff1d702e3 | refs/heads/master | 2022-12-14T14:03:53.841221 | 2020-07-24T10:46:09 | 2020-07-24T11:29:37 | 279,833,292 | 0 | 0 | BSD-3-Clause | 2020-07-15T12:12:30 | 2020-07-15T10:05:13 | Go | UTF-8 | Python | false | false | 1,443 | py | #!/usr/bin/env python3
"""
Copyright (c) 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
"""
imp... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a6c4cd75cc15556a320f19aae459f8ffb696c5cf | 833a83e8fd32041b20c0a13f6bf0759c4067bee6 | /homeworkpal_project/project_admin/migrations/0017_auto_20151113_1542.py | 95ef1981cf2deb921f50ed523d11c942955472b0 | [
"MIT"
] | permissive | luiscberrocal/homeworkpal | ac92de1dcbd43d9290fde8174f4d4544ed2cad23 | 342acf876264fade818b107f4af13cac067f1ace | refs/heads/master | 2020-12-12T13:13:47.022473 | 2015-12-29T19:38:43 | 2015-12-29T19:38:43 | 44,059,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('project_admin', '0016_auto_20151111_2021'),
]
operations = [
migrations.AlterField(
... | [
"luis.berrocal.1942@gmail.com"
] | luis.berrocal.1942@gmail.com |
7636f5a579273ae51be4de302b9c7d32a56eece7 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Numerical_Methods_in_Engineering_with_Python_Kiusalaas/run_kut5.py | c8f412e53447e5b39da220c4c1f1f9635c9c261d | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 2,591 | py | ## module run_kut5
''' X,Y = integrate(F,x,y,xStop,h,tol=1.0e-6).
Adaptive Runge-Kutta method for solving the
initial value problem {y}' = {F(x,{y})}, where
{y} = {y[0],y[1],...y[n-1]}.
x,y = initial conditions
xStop = terminal value of x
h = initial increment of x used in integrati... | [
"bb@b.om"
] | bb@b.om |
5811acbdb91b0f2d399c73f9112c2a7920ab8a4f | 63d3a6255f2677f9d92205d62163b9d22a74c5c7 | /modules/view/apps.py | 475ab00ea1d52c45e037fe410d5085b763c181a1 | [
"Apache-2.0"
] | permissive | GPCRmd/GPCRmd | 9204f39b1bfbc800b13512b316e05e54ddd8af23 | 47d7a4e71025b70e15a0f752760873249932c54e | refs/heads/main | 2023-09-04T11:13:44.285629 | 2023-08-29T13:43:01 | 2023-08-29T13:43:01 | 260,036,875 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class ViewConfig(AppConfig):
name = 'modules.view'
| [
"adrian.garcia.recio@gmail.com"
] | adrian.garcia.recio@gmail.com |
84ba7554314ed885032dd38547fa05191908cb4b | 70c04d6932ef405da3d1bbdd7ac07e2856bfd3dc | /train_rpn_VRD.py | bf91a6febfb79acb71a76c322c0a66ac9343af52 | [] | no_license | janick187/SGG_Ex_RC | e39314280eb4cf4ba5e42a62267e3dfc6a34944f | 377930ad5dce0ee5ef47f863330ebb2556ede9de | refs/heads/master | 2022-03-11T22:53:59.580058 | 2019-12-01T06:18:26 | 2019-12-01T06:18:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,502 | py | import os
import torch
import numpy as np
import time
import yaml
import cPickle as pickle
from lib import network
from models.RPN import RPN # Hierarchical_Descriptive_Model
from lib.utils.timer import Timer
from lib.utils.metrics import check_recall
from lib.network import np_to_variable
from lib.datasets.VRD_loade... | [
"602052254@qq.com"
] | 602052254@qq.com |
109a01b7f179804294c709d6de38ebb6ce12a061 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03167/s003174276.py | 72237e3ac50f140bb44ef44efbd9a5eebcd852cc | [] | 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 | 915 | py | # Author: S Mahesh Raju
# Username: maheshraju2020
# Date: 31/07/2020
from sys import stdin, stdout, setrecursionlimit
from math import gcd, ceil, sqrt
from collections import Counter
from bisect import bisect_left, bisect_right
ii1 = lambda: int(stdin.readline().strip())
is1 = lambda: stdin.readline().strip()
iia = l... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7a507b1705b32131630a42034c19a627f301ca37 | b72dbc51279d3e59cb6410367b671f8a956314c1 | /프로그래머스/그외/17677_자카드유사도.py | a85c1f9aeeb76a8b441573f30dacf06f6ce0e2da | [] | no_license | ddobokki/coding-test-practice | 7b16d20403bb1714d97adfd1f47aa7d3ccd7ea4b | c88d981a1d43b986169f7884ff3ef1498e768fc8 | refs/heads/main | 2023-07-08T15:09:32.269059 | 2021-08-08T12:19:44 | 2021-08-08T12:19:44 | 344,116,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | def get_set(s):
s = s.lower()
return_set = []
for i in range(len(s) - 1):
temp_s = ""
for j in range(2):
if ord('a') <= ord(s[i + j]) <= ord('z'):
temp_s += s[i + j]
if len(temp_s) == 2:
return_set.append(temp_s)
return return_set
def ge... | [
"44228269+ddobokki@users.noreply.github.com"
] | 44228269+ddobokki@users.noreply.github.com |
6fba9fe52433345420d06059155943f7d5b9b4fe | 2c926b4847a44c7f831d47ed0160751d3248e8f4 | /venv/lib/python3.8/site-packages/hubspot/cms/blogs/tags/api_client.py | 3801884f33e2c17ebd5512d2152293bf6c6793c3 | [] | no_license | Women-in-Tech-Society/WITS_Site | c42cd2c9abe1b5515b80be82dc876a6c3842e42a | 5dbf22f5ee5a36358f6f279af4c13d86d31653c5 | refs/heads/main | 2023-05-11T02:34:05.531902 | 2021-06-01T01:05:12 | 2021-06-01T01:05:12 | 278,658,100 | 0 | 5 | null | 2022-11-22T18:41:35 | 2020-07-10T14:43:28 | Python | UTF-8 | Python | false | false | 25,369 | py | # coding: utf-8
"""
Blog Post endpoints
\"Use these endpoints for interacting with Blog Posts, Blog Authors, and Blog Tags\" # noqa: E501
The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import atexit
import datetime
fro... | [
"mhuda@uwo.ca"
] | mhuda@uwo.ca |
650a660d373416f8d06eb62fed8392077d665ab9 | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/skimage/filters/__init__.py | 6767fd14766f5e51724aeb65cf2adcb9a20dfad8 | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ab0501d808d2beff6b92c3adb144751a3e57458ba54d0be4ea8a99143173492b
size 2396
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
a3b88e140168b92eaf9c374987ec4a6426d950e2 | 1d63d795ceb579f3f4ac7d27d61ad2c3298dd8d1 | /hey-brether.py | 9cee4e000a58f7138675822f9369a2975885cebb | [
"MIT"
] | permissive | austinpray/hey-brether | 4fd1f95f08673e35a15c53a9d4aca43502d0dc7e | 8fa9f83df0da5bc570f60a83a27f72babecb0c18 | refs/heads/master | 2021-08-27T16:42:29.578384 | 2021-08-22T21:41:22 | 2021-08-22T21:41:22 | 142,895,876 | 3 | 1 | MIT | 2018-07-30T20:13:18 | 2018-07-30T15:42:09 | Python | UTF-8 | Python | false | false | 5,395 | py | #!/usr/bin/env python3
import fire
from PIL import Image, ImageDraw, ImageFont
from math import ceil
import numpy as np
from typing import List
from sys import argv
from vendor.blockwise_view import blockwise_view
tinierFont = ImageFont.truetype('fonts/tinier/Tinier.ttf', 4)
tinyFont = ImageFont.truetype('fonts/tiny... | [
"austin@austinpray.com"
] | austin@austinpray.com |
8161a8b18d65d315ac693b78d2dd3b04fe5db31d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy3160.py | 287193a39e6d14d8e6f39f11ea49e33d70becf91 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,410 | py | # qubit number=4
# total number=47
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
861b122994015f88971abbd7e92e7f4ae922eb3f | 2a8a6327fb9a7ce8696aa15b197d5170661fb94f | /test/test_get_product_rate_plan_type.py | 3a3ec8d81e8054c5596fb91df647c9096c0b3bc5 | [] | no_license | moderndatainc/zuora-client | 8b88e05132ddf7e8c411a6d7dad8c0baabaa6dad | d50da49ce1b8465c76723496c2561a3b8ebdf07d | refs/heads/master | 2021-09-21T19:17:34.752404 | 2018-08-29T23:24:07 | 2018-08-29T23:24:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,752 | py | # coding: utf-8
"""
Zuora API Reference
# Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A... | [
"jairo.velasco@alertlogic.com"
] | jairo.velasco@alertlogic.com |
dec1d7888c0eb08a9e8e2b7c9abc4f13afe9e055 | 795df757ef84073c3adaf552d5f4b79fcb111bad | /i4lib/i4_and.py | 77ef11f691c1bb0d5d337b45805ceaab146e5ca6 | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | #! /usr/bin/env python
#
def i4_and ( i, j ):
#*****************************************************************************80
#
## I4_AND calculates the AND of two I4's.
#
# Discussion:
#
# An I4 is an integer value.
#
# Licensing:
#
# This code is distributed under the GNU LGPL license.
#
# Modified:
#
# ... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
352471866ede5e746259d0d6d9ec4a009bca5717 | e8fae11d39451210d80ef43edd73bb3acb421e4a | /npyscreen/addressbook/AddressBook.py | d16559e8a4bfd00816cee477eda9f4aa4983a59d | [
"Apache-2.0"
] | permissive | Incubaid/playenv | 64cb8323728359e9b7be42cbd85ee2450b483967 | 948acfba65a2f88c94dfb7d59ac58b2b77f4e7f4 | refs/heads/master | 2021-01-19T09:34:45.891608 | 2017-11-06T03:29:53 | 2017-11-06T03:31:11 | 87,765,762 | 0 | 1 | null | 2017-11-06T03:31:12 | 2017-04-10T04:16:04 | Python | UTF-8 | Python | false | false | 5,618 | py | import sqlite3
import npyscreen
class AddressDatabase(object):
def __init__(self, filename="example-addressbook.db"):
self.dbfilename = filename
db = sqlite3.connect(self.dbfilename)
c = db.cursor()
c.execute(
"CREATE TABLE IF NOT EXISTS records\
( record_in... | [
"kristof@incubaid.com"
] | kristof@incubaid.com |
be96f7b005467341f081604418b71c8a5f8c27ad | 96b44dc0df4cc0e9059da1c79d6d2468740939b1 | /downloads/code/LeetCode/Python/Nim-Game.py | 3e336ccc63281bbb8304423d4d3cd63b1d2ef7ce | [] | no_license | sdytlm/sdytlm.github.io | 5cb9fcc93fc5d2a287c4f0d1920ab83c34b3f68d | 0506ca9039db2ba253eb311c23b544d164c6bbda | refs/heads/master | 2021-01-24T11:08:54.257293 | 2019-05-06T03:59:17 | 2019-05-06T03:59:17 | 27,394,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | class Solution(object):
def canWinNim(self, n):
"""
:type n: int
:rtype: bool
"""
if n % 4 == 0:
return True
else:
return False
| [
"minli@MindeMacBook-Pro.local"
] | minli@MindeMacBook-Pro.local |
dbf4bdb7df2ff05951644da0d29a835acfec17a5 | 9b428d40e0966136f82351e06abd9a77eb9576dd | /Python fundamentals/regular_expressions_youtube.py | 6cde8ac765adc484aeea641196c9e1ec3cf12992 | [] | no_license | CEsarABC/Python-CI- | a438d64d689d9cf428b2b3577f4246e43046502b | 0455e61f72c3a1b747759030e685239be83e73a6 | refs/heads/master | 2021-06-06T09:18:00.944074 | 2020-04-16T10:35:35 | 2020-04-16T10:35:35 | 149,114,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import re
email_pattern = re.compile(r'''(
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+(\.[a-zA-Z]{2,6})
)''',re.VERBOSE)
text = 'my mail address is giles@whatever.com , but please do not send me spam'
match = email_pattern.search(text)
print(match)
d = match.group()
print(d)
e = match.start()
print(e)
f = match.end()
print(f... | [
"cesarbworkmail@gmail.com"
] | cesarbworkmail@gmail.com |
113d4743d8964eec89ab223b6dfd3781fb654716 | da052c0bbf811dc4c29a83d1b1bffffd41becaab | /core/school/__manifest__.py | abe154e3a5b90675bbf5c7df1f7aefa0d57a48e8 | [] | no_license | Muhammad-SF/Test | ef76a45ad28ac8054a4844f5b3826040a222fb6e | 46e15330b5d642053da61754247f3fbf9d02717e | refs/heads/main | 2023-03-13T10:03:50.146152 | 2021-03-07T20:28:36 | 2021-03-07T20:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | # -*- coding: utf-8 -*-
# See LICENSE file for full copyright and licensing details.
{
'name': 'School',
'version': '1.1.1',
'author': '''Serpent Consulting Services Pvt. Ltd.''',
'website': 'http://www.serpentcs.com',
'images': ['static/description/school.png'],
'category': 'School Management'... | [
"jbalu2801@gmail.com"
] | jbalu2801@gmail.com |
a29781bb72ee1b4feac1a7f82099800ea343c4aa | b16a0a95dff4bbdb88ab0a574d7d0b0f1e371c32 | /evennia/server/profiling/dummyrunner.py | 1d3a37ac8f8dfb2757597dccdaad306d1186eb0c | [
"BSD-3-Clause"
] | permissive | kod3r/evennia | 10bf661487447c119013bf82a37434a4b85cf423 | 7f11256fc8fdc51883a921089bacb7c5b40e4030 | refs/heads/master | 2020-12-28T07:00:27.905842 | 2015-10-01T08:30:17 | 2015-10-01T08:30:17 | 43,785,010 | 1 | 0 | null | 2015-10-06T23:34:54 | 2015-10-06T23:34:53 | null | UTF-8 | Python | false | false | 12,745 | py | """
Dummy client runner
This module implements a stand-alone launcher for stress-testing
an Evennia game. It will launch any number of fake clients. These
clients will log into the server and start doing random operations.
Customizing and weighing these operations differently depends on
which type of game is tested. T... | [
"griatch@gmail.com"
] | griatch@gmail.com |
f9efdf8b5f814fb853be1f71b88d76e38331dd82 | 835abbf0309503caddba77f4ed94ea3209e8784f | /kurs_dla_poczatkujacych/while extra.py | 076547c13bd4155bcfa6ae0fbb86da47888ca254 | [] | no_license | rafal-mizera/UDEMY | 46873a01223a31b36de84fcfd13a5b9b1cf262e8 | d463613ecd470dae4f17ce59d2f815f70942ea07 | refs/heads/master | 2023-07-19T12:14:44.818156 | 2021-09-01T16:14:37 | 2021-09-01T16:14:37 | 402,125,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | initialCapital = 20000
percent = 0.03
maxTimeYears = 10
time = 0
capital = initialCapital
while time <= maxTimeYears:
capital += capital * percent
print(capital)
time += 1
####################################
num = 20730906
num = str(num)
sum = 0
for d in num:
sum += int(d)
print(sum)
| [
"rafalmizera11@gmail.com"
] | rafalmizera11@gmail.com |
839c4c3fca9c5e96e80e9a22ea076db46f461cf7 | dbd01b2722ae73390eccf023a1dedcf70a0fc69e | /scat/server/handler/root_handler.py | 9ebe902ba127a0176e8e41d66c0de0d32287b82b | [] | no_license | Activity00/Scat | 12a80e0a57556cb6df18af8f71b519c5bbd1454d | d6956b665526e77b8835b73221ccfb99dc421598 | refs/heads/master | 2021-09-26T11:19:41.687981 | 2020-06-23T03:33:05 | 2020-06-23T03:33:05 | 126,165,810 | 0 | 0 | null | 2021-09-22T19:17:35 | 2018-03-21T11:02:30 | Python | UTF-8 | Python | false | false | 149 | py | # coding: utf-8
"""
@author: 武明辉
@time: 2018/2/4 18:42
"""
from scat.rpc.handler import RPCHandler
class RootHandler(RPCHandler):
pass
| [
"1032662429@qq.com"
] | 1032662429@qq.com |
fbdd35a2559a69967cb89ff815559b84f590176b | ee6afed750c9edce0064680bba6a023c5c67db73 | /JusTalkENV/lib/python2.7/encodings/iso8859_5.py | 04da575f7353979b08981fa56151425a8c2b2771 | [] | no_license | khoa408/JusTalk | 664caaa8d13880b4a59402817c8a90028766dcaf | e2bd537c487a342cc22597f63a32ae32edca6429 | refs/heads/master | 2022-12-11T02:42:38.709326 | 2019-12-02T09:34:32 | 2019-12-02T09:34:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | /usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/iso8859_5.py | [
"khoa.d.tran97@gmail.com"
] | khoa.d.tran97@gmail.com |
9227a057a769f7342d77a2648171183f8f66cd18 | bebac7987837f4cb845a8c519c6552ec8d5e7942 | /tests/components/hisense_aehw4a1/test_init.py | 638fbe8f943a2321d19efae34ddd3853719f9eb1 | [
"Apache-2.0"
] | permissive | peternijssen/home-assistant | 6ea59824acfa8a6ce761963bad863bb1f4461759 | 10dd34f62248ee822b941ce7c707b774bbdff378 | refs/heads/dev | 2021-11-27T05:03:52.046120 | 2020-01-17T16:41:45 | 2020-01-17T16:41:45 | 141,170,656 | 2 | 6 | Apache-2.0 | 2020-07-29T22:08:39 | 2018-07-16T17:24:44 | Python | UTF-8 | Python | false | false | 3,214 | py | """Tests for the Hisense AEH-W4A1 init file."""
from unittest.mock import patch
from pyaehw4a1 import exceptions
from homeassistant import config_entries, data_entry_flow
from homeassistant.components import hisense_aehw4a1
from homeassistant.setup import async_setup_component
from tests.common import mock_coro
as... | [
"marhje52@kth.se"
] | marhje52@kth.se |
1fcc27045dd1986c893124f7a130e2b23d7e68e3 | 72a62e2da306b9a4476682341dc0b21775c24103 | /frame-analysis/cv-modules/face-detect/opencv-facedetect.py | c8ee78eeac45388421f95bed6b5fccc8a3c6866a | [] | no_license | yuhan210/video-indexing | adcf2ce5a60de4ba1220b3de69bfb062818a9e8a | a0995ddce3ba7380819331efacf9fda281653a2f | refs/heads/master | 2020-12-24T19:18:44.838995 | 2016-05-21T00:27:21 | 2016-05-21T00:27:21 | 37,549,672 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | #!/usr/bin python
import numpy as np
import cv2
# local modules
from utils.video import create_capture
from utils.common import clock, draw_str
import time
import json
import os
def detect(img, cascade):
rects = cascade.detectMultiScale(img, scaleFactor=1.3, minNeighbors=4, minSize=(25, 25), flags = cv2.CASCADE... | [
"yuhan210@gmail.com"
] | yuhan210@gmail.com |
0495a2b795a10e3803e9d1e807ff25dd0c8dc015 | ee86ad4b38f6ba13f195246f14224ba781f933cc | /문제풀이/장기.py | 11598079ca8dd126cb400588d10f577823c6bd02 | [] | no_license | yejikk/Algorithm | aed7adf00c1e32d21b735b3b34dc6cb75049f164 | 531f43305b3a23c824c9e153151b7280c1dc2535 | refs/heads/master | 2020-04-17T06:17:28.961656 | 2019-11-16T08:02:49 | 2019-11-16T08:02:49 | 166,318,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | import sys, pprint
sys.stdin = open('장기.txt')
def wall(tx, ty):
if tx < 0 or tx >= N:
return False
if ty < 0 or ty >= M:
return False
if arr[tx][ty] == 99:
return False
return True
def bfs(x, y):
flag = 0
dx = [2, 2, -2, -2, 1, 1, -1, -1]
dy = [1, -1, 1, -1, 2, -2, ... | [
"dpwl7484@gmail.com"
] | dpwl7484@gmail.com |
aebe6b5a7c1c2c8c5f456e0b7b7ffa7b444419df | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02396/s161436379.py | a907388b1a3408bde1b4efae75964ebc801b9e1b | [] | 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 | 216 | py | # -*- coding: utf-8 -*-
x = []
while ( 1 ):
temp = int( input() )
if (temp == 0):
break
x.append(temp)
index = 1
for i in x:
print('Case {0}: {1}'.format(index, i))
index += 1 | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b06fd4cd9a19b6cd0d55983976f2f97050c7b0b0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/197/51749/submittedfiles/testes.py | 845d1d251ebef62e148362923d19ba209d4525b7 | [] | 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 | 216 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
n=int(input('digite o tamanho da lista:'))
listaa=[]
soma=0
for i in range (1,n+1,1):
valor=int(input('digite um numero da lista'))
lista.append(valor)
print(lista) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2eed3d216089fc6a0b15c36eff210b01536c5cd2 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-secmaster/huaweicloudsdksecmaster/v2/model/show_alert_rule_template_request.py | 97410d316cb5f01d67c05c26d7f07a72d21c9b6c | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,805 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowAlertRuleTemplateRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
93b88c3a2c2375f8924b77c4fdae86f44942e9a8 | b6f0f861171fe48862848f35ea1c6353e70ce437 | /onmt/models/speech_metamorphosis/tacotron.py | e850c0b7b3c4ee95908202c2b16a22f13002c9d1 | [
"MIT"
] | permissive | jooan84/NMTGMinor | 2c0cc0fb8cda14d92ab77b9b04b2f3af32edf3f0 | 0ff4cd9a48a502340627f8a1a73197d2796e0be6 | refs/heads/master | 2023-03-08T19:20:34.713026 | 2021-02-14T12:42:11 | 2021-02-14T12:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | # Implementation of the Tacotron Decoder (only)
# Borrowed from the NVIDIA Tacotron
import onmt
import torch
| [
"quanpn90@gmail.com"
] | quanpn90@gmail.com |
1fca5a2fd67f0eab7b2129b0487c24ba1a38834c | 3cdd7019f3acbf7b7a7e879444454703fcc73d62 | /solutions/1291.sequential-digits.py | acf3880c3e8d2c8240013bee22a2a568213810d1 | [] | no_license | quixoteji/Leetcode | 1dc2e52e53a7b58d9bae15ce2d5c4142cbd365af | 00bf9a8164008aa17507b1c87ce72a3374bcb7b9 | refs/heads/master | 2021-07-15T07:59:21.294297 | 2020-05-13T03:08:47 | 2020-05-13T03:08:47 | 138,812,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #
# @lc app=leetcode id=1291 lang=python3
#
# [1291] Sequential Digits
#
# @lc code=start
class Solution:
def sequentialDigits(self, low: int, high: int) -> List[int]:
ans = []
if low < 10 or low >= high: return ans
for i in range(1, 10) :
n = i
for j in range(i + 1,... | [
"jxj405@case.edu"
] | jxj405@case.edu |
efedd13a859b069426c011485593c68c5bb8edb5 | 632dcb4e37cadd87cb7ff8715b0048df5cd0d11b | /CompuCell3D/core/Demos/SteppableDemos/ReactionDiffusionSolverFE/ReactionDiffusion_2D_muparser/Simulation/ReactionDiffusion_2D_muparserSteppables.py | 84e93e374150642f38140d2983c338f8a1f64a57 | [
"MIT"
] | permissive | CompuCell3D/CompuCell3D | df638e3bdc96f84b273978fb479842d071de4a83 | 65a65eaa693a6d2b3aab303f9b41e71819f4eed4 | refs/heads/master | 2023-08-26T05:22:52.183485 | 2023-08-19T17:13:19 | 2023-08-19T17:13:19 | 12,253,945 | 51 | 41 | null | 2023-08-27T16:36:14 | 2013-08-20T20:53:07 | C++ | UTF-8 | Python | false | false | 549 | py |
from cc3d.core.PySteppables import *
class ReactionDiffusion_2D_muparserSteppable(SteppableBasePy):
def __init__(self,frequency=1):
SteppableBasePy.__init__(self,frequency)
def start(self):
"""
any code in the start function runs before MCS=0
"""
def step(self,mcs):
... | [
"tjsego@gmail.com"
] | tjsego@gmail.com |
145026f8da2797a85f7818d106c0487824ca8bb0 | 38292fbf45885a8b1f1c1edc16ae66f77eda85ba | /ejercicio-sqlalchemy/consulta2.py | 5d21855d821af27efec44f4e57d92384f861f4b0 | [] | no_license | PlataformasWeb-P-AA2021/taller08-davidpillco | 325c2dab9eaa59510138e632ed98ee18f96f2bd2 | 4d6e4b40ce98482f76c68575b85de779db1df2ae | refs/heads/main | 2023-05-03T08:28:40.465517 | 2021-05-27T19:17:44 | 2021-05-27T19:17:44 | 371,414,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy import and_, or_ # se importa el operador and
from genera_tabla import Jugadores
engine = create_engine('sqlite:///mundial2018.db')
Session = sessionmaker(bind=engine)
session = Session()
# Crear un archivo que permita prese... | [
"davidpilco@gmail.com"
] | davidpilco@gmail.com |
a205bc436ed946adf9ecebe511039bb294548cf5 | 8bc28a054d7c10ca3f71cf0c73864670c267b8e4 | /pyproject/build/scripts-2.7/hello-pybulder | 87cd44fc0a0d65ed6e60e821b6725ed9dab4056c | [] | no_license | BarryFu/python | 50e464786c0195b581ef99115995c2771d355c5a | d2e68a90fd234954ad13cf9fa2930c11ec7316fa | refs/heads/master | 2020-09-27T02:39:48.836003 | 2017-05-26T09:24:44 | 2017-05-26T09:24:44 | 66,632,342 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 78 | #!/root/3/bin/python
import sys
sys.stdout.write('Hello from my script!\n')
| [
"root@localhost.localdomain"
] | root@localhost.localdomain | |
05d0afb20e69de7813ae711b88a94528e55f73b3 | cbdef2e8ed259adc4653ade34db12d8bcc0cea9f | /dominion/cards/Card_Sentry.py | 2f225bb3383faacb46bb76e983f6c3118cbe8ab0 | [] | no_license | dwagon/pydominion | 8dd5afef8ec89c63ade74c4ae6c7473cd676799f | 545709f0a41529de74f33aa83b106c456900fa5b | refs/heads/main | 2023-08-29T10:02:26.652032 | 2023-08-23T02:25:00 | 2023-08-23T02:25:00 | 18,776,204 | 1 | 0 | null | 2023-08-23T02:25:02 | 2014-04-14T20:49:28 | Python | UTF-8 | Python | false | false | 2,726 | py | #!/usr/bin/env python
""" http://wiki.dominionstrategy.com/index.php/Sentry """
import unittest
from dominion import Game, Card, Piles
import dominion.Card as Card
###############################################################################
class Card_Sentry(Card.Card):
def __init__(self):
Card.Card._... | [
"dougal.scott@gmail.com"
] | dougal.scott@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.