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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eefeae35119be4a0c10e96f8c24755c220dbe2e9 | 898e263e9264804df750fe24cc767e08856c9e09 | /datastore/cloud-ndb/flask_app.py | aae511ceb9e614e0012281ad8f2fba92c0b50c8b | [
"Apache-2.0"
] | permissive | HoleCat/echarlosperros | 98da28d0fc76c57459ce4c9a53c89e62c350f754 | b67460de0467e05b42a763c4430b26ecfd97c2aa | refs/heads/main | 2023-01-21T15:29:13.091406 | 2020-12-03T01:33:00 | 2020-12-03T01:33:00 | 318,039,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | # Copyright 2019 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 required by applicable l... | [
"201602035x@gmail.com"
] | 201602035x@gmail.com |
f7a4a8f7921f616df08ab41e05e0e1289fcbcf07 | f11b05639e694bd04c96db8a7cb44d4941bbb595 | /Bible/Bible/urls.py | eeb330fc8b250b58aa291df736ec16def3514d3b | [] | no_license | kurianbenoy/BibleRestAPI | 6d70e6a1692ff7f32fed364457c140b5526a28d5 | 9a4a456d2d38dd7e00e7c41a9f4333778cc31451 | refs/heads/master | 2020-03-23T02:50:30.382261 | 2018-08-18T19:36:16 | 2018-08-18T19:36:16 | 140,994,975 | 0 | 0 | null | 2018-08-18T16:30:32 | 2018-07-15T03:20:35 | PLpgSQL | UTF-8 | Python | false | false | 747 | py | """Bible URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"kurian.pro@gmail.com"
] | kurian.pro@gmail.com |
1c639092b7d4fc4bc9f2453b86dc666a600c45bc | c6426a69f33332ec633107855a21fe7f55d15c64 | /pythonv4/ScharfSandhiArg.py | 6331504068b017aceec3dec637a73c611f503bd4 | [
"MIT"
] | permissive | poojapi/ScharfSandhi | 195d04274a9969abb14f7a147b71872fbb15098b | 3a70a6df4a3d535bccb44844fffcb37af16dcfd3 | refs/heads/master | 2022-04-10T18:43:20.425054 | 2020-03-24T16:57:15 | 2020-03-24T16:57:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | """
ScharfSandhiArg.py May 25, 2015
Jul 26, 2015.
Jul 27, 2015
"""
from scharfsandhi import ScharfSandhi
if __name__ == '__main__':
import sys
sopt = sys.argv[1]
s = sys.argv[2]
sandhi = ScharfSandhi()
sandhi.history=[] # init history. It is modified by wrapper
sandhi.dbg=True
err = sandhi.simple_sandhiop... | [
"funderburkjim@gmail.com"
] | funderburkjim@gmail.com |
84a759152a4e50e737ed69b0e44a8e58570d15db | c0514bfdd9a62c8974107f93b1f01dbd6a8ed18a | /eventkit_cloud/jobs/migrations/add_supported_projections.py | 1cd3994316c5f06581195c1b3163e7beee5448b5 | [] | permissive | Coop56/eventkit-cloud | c36623e1867d0716b9610e2697c1d84d7af01ac4 | 1bbc454cf74ab2c82c397495edd72845565dca5c | refs/heads/master | 2022-05-11T10:20:59.277069 | 2022-04-19T11:35:25 | 2022-04-19T11:35:25 | 184,367,097 | 0 | 0 | BSD-3-Clause | 2019-05-01T04:08:03 | 2019-05-01T04:08:01 | null | UTF-8 | Python | false | false | 462 | py | # Generated by Django 2.2.3 on 2019-09-17 14:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobs', 'add_projections'),
]
operations = [
migrations.AddField(
model_name='exportformat',
name='supported_projecti... | [
"noreply@github.com"
] | Coop56.noreply@github.com |
73edaf4bdfc8a60a48392b8bf31723dfe2eeadd4 | ede6ee7bdbd76dbb39ffcddfc98725062566ebf4 | /barbados/objects/citation.py | 48f1edb5e808beabcf9145b4a2c8fb55fb9e5a2c | [] | no_license | cohoe/barbados | cfa3cb4fab8c183fc4a4f943f452a89ebe193ea2 | 343f8fd4ac1f18e5e93d519cbc064693280e4d00 | refs/heads/master | 2021-08-07T12:33:53.263230 | 2021-07-18T01:59:16 | 2021-07-18T01:59:16 | 234,824,108 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | py | # @TODO Oh gods.... all of this.
from barbados.objects.base import BaseObject
from barbados.serializers import ObjectSerializer
class Citation(BaseObject):
def __init__(self, title=None, author=None, date=None, publisher=None, page=None, notes=None, href=None, location=None, issue=None, year=None):
self.t... | [
"grant@grantcohoe.com"
] | grant@grantcohoe.com |
a8e525b6ad44b1b21d749fa1867c31a3a2ef950a | eae58d3d10a4a68d4f282f87e6d5251096cf3158 | /build/lib/weibospider/a.py | 51e7c300e381bb6de8370058d2db8fcdf1f7bfac | [] | no_license | zheng171411/scrapy-weibospider-mysql | d93841c61b8ab66abba7590f5c453213bc5725ba | f74da94836994cc17b9cb12204c8570c9b093804 | refs/heads/master | 2020-05-29T11:48:57.818188 | 2016-08-30T05:46:57 | 2016-08-30T05:46:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # _*_ coding:utf-8 _*_
import re
from pyquery import PyQuery as pq
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
s = '''<p class="comment_txt" node-type="feed_list_content" nick-name="魏驾来魏">
自1999年HBO纪录片报道以来,美国人Jonah Falcon便以其“世界最长阴 茎”闻名全球。Falcon在旧金山<em class="red">机场</em>准备登记时被怀疑藏有<em class="red">炸弹... | [
"root@localhost.(none)"
] | root@localhost.(none) |
440b77c305c4a6558373117ba0b2b9972d0fa2bd | 422c9cc1c5ef7eba24610e66d6a74ec2e16bf39e | /build_isolated/rqt_dep/catkin_generated/pkg.installspace.context.pc.py | d6f01e812cf96998e61b119ded48ccd4d1f61904 | [] | no_license | twighk/ROS-Pi3 | 222c735d3252d6fce43b427cdea3132f93025002 | 9f2912c44ae996040f143c1e77e6c714162fc7d2 | refs/heads/master | 2021-01-01T05:16:20.278770 | 2016-05-08T19:24:15 | 2016-05-08T19:24:15 | 58,306,257 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rqt_dep"
PROJECT_SPACE_DIR = "/opt/ro... | [
"twighk@outlook.com"
] | twighk@outlook.com |
c2feb79ff02f80ebeff2fbcf04851ee09431a2be | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/license_plate_result.py | 034b1e946553155eadb816dd7ab032d566c918c3 | [
"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 | 5,954 | py | # coding: utf-8
import re
import six
class LicensePlateResult:
"""
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 json key in... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
c57c2869df5c588d118e4bb48045260d29bb370b | 4a011d4456de06a96ccd7851fd05dec22fc649db | /website/drawquest/apps/submit_quest/views.py | b8c96c7f854a93a80541c6b3e117592814513a0e | [
"BSD-3-Clause"
] | permissive | pillows/canvas | 82373da9e883d6ba652d81958badee3f440cd8e6 | 4ecf386dc08c5d093b814ef4d08dfb71d1fd5604 | refs/heads/patch | 2021-01-24T21:07:30.362750 | 2015-12-31T05:10:11 | 2015-12-31T05:10:11 | 45,960,362 | 0 | 0 | null | 2015-12-31T05:11:59 | 2015-11-11T04:50:04 | Python | UTF-8 | Python | false | false | 355 | py | from canvas.shortcuts import r2r_jinja
def submit_quest_wrapper(request):
return r2r_jinja('submit_quest/submit_quest_wrapper.html', {}, request)
def submit_quest(request):
ctx = {}
return r2r_jinja('submit_quest/submit_quest_iframe.html', ctx, request)
def success(request):
return r2r_jinja('submit_... | [
"alex.ehlke@gmail.com"
] | alex.ehlke@gmail.com |
e31d20cb66b4a813176ab37859aebd2859b64bff | 0b0cadfb446afe763765911d21c67bbaa0d55eed | /scripts/1207all_linear5-Copy4.py | aa643ec2717f6eb14e42fc5816090332027bba2a | [] | no_license | MarcYin/S2_MODIS | 3e005f249110972bd975fdb8e10cd6c7668df208 | c2fb683019d49ca2d32ab8852a3e2b409c9f1fc0 | refs/heads/master | 2020-04-10T22:46:09.150710 | 2016-12-20T19:47:55 | 2016-12-20T19:47:55 | 68,025,714 | 2 | 1 | null | 2016-09-12T17:39:25 | 2016-09-12T16:15:50 | Jupyter Notebook | UTF-8 | Python | false | false | 4,087 | py | import multiprocessing
import sys
sys.path.insert(0,'python')
from fastRWpkl import *
import numpy.ma as ma
from readSent import *
from collections import Counter
import cPickle as pkl
from scipy import optimize
from functools import partial
import scipy.ndimage as ndimage
import numpy as np
import scipy
from scipy imp... | [
"marcollinbobo@gmail.com"
] | marcollinbobo@gmail.com |
f0678e6efc8a373aa28c0170cf4211c619ddb405 | b5a0d46f4bd64862c6c84d23360dde1a434b1a6b | /lession2/demo1.py | ab7281ff6fee109dfaaeb2108da2eacc4137a42b | [] | no_license | IJustLoveMyself/Simple_Spider | 085e4f330da2abdccf0f89e1e09b026b89512d80 | 18e6553791f07b509588ad06c26b8fb25491ec83 | refs/heads/master | 2021-06-30T14:25:25.941914 | 2017-09-20T03:13:28 | 2017-09-20T03:13:28 | 103,258,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import urllib2
import re
import sys
import urllib
reload(sys)
sys.setdefaultencoding('utf8')
class Spider:
def __init__(self):
self.headers = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/... | [
"root@ubuntu.(none)"
] | root@ubuntu.(none) |
0f493146a9423d01d46feb5ad4c36f0cc15f4245 | 456d4d710a0a596d293a0ca1c9e3ceeadc9e0b66 | /pirates/effects/DarkShipFog.py | 05b31d0a3ec2e8047c9e138216df2a263250bf98 | [] | no_license | DankMickey/PORSRC | 65471a41891f515630f6e7c97e87a082a12a6592 | 07896684c67758f81216a5bd287441c71b833251 | refs/heads/master | 2021-01-01T20:02:46.030841 | 2017-07-10T14:56:27 | 2017-07-10T14:56:27 | 98,749,038 | 0 | 1 | null | 2017-07-29T17:36:53 | 2017-07-29T17:36:53 | null | UTF-8 | Python | false | false | 3,964 | py | from panda3d.physics import BaseParticleEmitter, BaseParticleRenderer, ColorInterpolationManager
from panda3d.core import Fog, ModelNode, Point3, Vec3, Vec4
from direct.showbase.DirectObject import *
from direct.interval.IntervalGlobal import *
from direct.actor import Actor
from direct.particles import ParticleEffect... | [
"darktohka@yandex.com"
] | darktohka@yandex.com |
334f4bd5e3913b127aea4a9b22dde1d1ce0c9f3d | 509823ea14f04d5791486b56a592d7e7499d7d51 | /parte11/ex11.09_funcion_recursiva_palindromo.py | 7c7fc9077999c1c5acb9e91cd508dce6f563ea95 | [] | no_license | Fhernd/Python-CursoV2 | 7613144cbed0410501b68bedd289a4d7fbefe291 | 1ce30162d4335945227f7cbb875f99bc5f682b98 | refs/heads/master | 2023-08-08T05:09:44.167755 | 2023-08-05T19:59:38 | 2023-08-05T19:59:38 | 239,033,656 | 64 | 38 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | # Ejercicio 11.9: Crear una función recursiva para comprobar si una cadena es palíndromo.
# oso => oso
# ana => ana
# lateleletal => lateleletal
# correa => aerroc
def es_palindromo(palabra):
"""
Determina si una palabra es palíndromo.
Parameters:
palabra: Palabra sobre la que se realiza la comprobac... | [
"johnortizo@outlook.com"
] | johnortizo@outlook.com |
5ae7e112ce9a48e73a288ddfc21dcf97f66a24e5 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4459675.3.spec | e9fadd78782a765f1c629de192d2f31821b72db1 | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,304 | spec | {
"id": "mgm4459675.3",
"metadata": {
"mgm4459675.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
4abad225d529c4f6299fbbf12b4f7c68c3a42a34 | 453d0bd78a145a323785a8f86efffbbed36e2aff | /estimagic/inference/bootstrap_helpers.py | fc77f5c41b84b9e722a5c7605d959d83639d4cd8 | [
"BSD-3-Clause"
] | permissive | vishalbelsare/estimagic | 2da897ac8f11cccf764a775c6aea23097082e862 | afae1be3a1566056d11962c495b67e64bc4a0822 | refs/heads/master | 2023-08-17T04:41:04.179038 | 2021-09-27T09:50:22 | 2021-09-27T09:50:22 | 286,576,997 | 0 | 0 | BSD-3-Clause | 2021-09-27T10:40:04 | 2020-08-10T20:55:11 | Python | UTF-8 | Python | false | false | 1,105 | py | import pandas as pd
def check_inputs(data, cluster_by=None, ci_method="percentile", alpha=0.05):
"""Check validity of inputs.
Args:
data (pd.DataFrame): original dataset.
cluster_by (str): column name of variable to cluster by.
ci_method (str): method of choice for confidence interval ... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
4e2e3c99e1ffe3b07260b511da29bae1a61fc59c | ce4ae2c0ceacb8bdd2c6d148bcdd1bbb5784a20f | /notes/code/selenium/launch_chrome.py | 70bc8eef6006b2db08346ba9072147bf2a466638 | [
"MIT"
] | permissive | langzippkk/msds692 | 339b5dde631f4dfc1451d82cd636e0b5cfbb92eb | c6521dc45a2f0f0a4f7befa66783d4e6b5c76c93 | refs/heads/master | 2020-06-28T17:16:40.415269 | 2019-08-02T20:09:16 | 2019-08-02T20:09:16 | 200,294,075 | 1 | 0 | MIT | 2019-08-02T20:28:45 | 2019-08-02T20:28:44 | null | UTF-8 | Python | false | false | 419 | py | import time
from selenium import webdriver
driver = webdriver.Chrome('/usr/local/bin/chromedriver') # Optional argument, if not specified will search path.
#driver = webdriver.Chrome('/Users/parrt/anaconda2/chromedriver-Darwin') # Optional argument, if not specified will search path.
driver.get('http://www.google.co... | [
"parrt@cs.usfca.edu"
] | parrt@cs.usfca.edu |
137b954f02c45ca83166d9a1f9f89ca7a23da8cf | f3b233e5053e28fa95c549017bd75a30456eb50c | /CDK2_input/L21/21-17_MD_NVT_rerun/set_2.py | 88264ffcbd296121bd400fe74e8fc02b25a0ecf3 | [] | 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/CDK2/L21/MD_NVT_rerun/ti_one-step/21_17/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_2.in'
temp_pbs = filesdir + 'temp_2.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 |
03934602e729b083064b793cb68db7436f44d3c1 | c67ec29ea9614dbb214be6fb29a9f7bf0075bcb1 | /ToDoApp/settings.py | 7a08c9690091ea84000d31555831b6c492700744 | [] | no_license | Shadyaobuya/My-Manager | 2bfcda13874e6215f7e45007eaf703529fa3cd18 | dc204a6073d8719a87fa0bba8627295bbea3631a | refs/heads/master | 2023-07-03T16:54:11.830765 | 2021-08-04T15:44:57 | 2021-08-04T15:44:57 | 392,719,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,168 | py | """
Django settings for ToDoApp project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import django... | [
"shadyaobuyagard@gmail.com"
] | shadyaobuyagard@gmail.com |
b2664e22dfbd3fa50d0c09791757619c4130c59d | 3f5504aff203cc15ca8754353991208962a04a90 | /src/the_tale/the_tale/game/abilities/views.py | 83e418064cd84cf753a4b3a082f90dcfcb06b4ba | [
"BSD-3-Clause"
] | permissive | Portal777/the-tale | 39614e60fa817a1e00e948a2b465fcb6be35e0c6 | 1a98294f6ed45d26bf5f09bdd2b4a931dbbb72e3 | refs/heads/master | 2021-08-24T01:46:11.472205 | 2017-11-04T13:31:30 | 2017-11-04T13:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | # coding: utf-8
from dext.views import handler, validate_argument
from the_tale.common.utils.resources import Resource
from the_tale.common.utils.decorators import login_required
from the_tale.common.utils import api
from the_tale.game.abilities.deck import ABILITIES
from the_tale.game.abilities.relations import ABI... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
3bed21f51033055d44bc9e706749b44ac6329fd2 | 133e8c9df1d1725d7d34ea4317ae3a15e26e6c66 | /sqlalchemy/sqlalchemy-alembic/model/__init__.py | e69780f86b0dd9e9a92bb1a198184a166c1d12fd | [
"Apache-2.0"
] | permissive | 425776024/Learn | dfa8b53233f019b77b7537cc340fce2a81ff4c3b | 3990e75b469225ba7b430539ef9a16abe89eb863 | refs/heads/master | 2022-12-01T06:46:49.674609 | 2020-06-01T08:17:08 | 2020-06-01T08:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from .base import Base, SessionLocal
from .user import User, Item
from .role import Role | [
"cheng.yang@salezoom.io"
] | cheng.yang@salezoom.io |
8a141b2da01a0e7cb8c6dd74f7043ed2e94e4fa9 | 630ddf4c1f6a11f633cfffb29cf042547ae5ca4a | /pnlk/ptlk/so3.py | fc165d7c69f60fccfaee0384d15d198b17cb4523 | [
"MIT"
] | permissive | vinits5/pointnet-registration-framework | 472b8173fff5d6b4b5e19362beb6da7d5f5b5ea3 | 4dc0f1c921a4a15364327ad6bbe4d6cadb0331cc | refs/heads/master | 2022-07-17T14:21:48.880287 | 2020-04-26T17:47:45 | 2020-04-26T17:47:45 | 227,209,872 | 37 | 7 | MIT | 2022-06-21T23:53:00 | 2019-12-10T20:30:23 | Python | UTF-8 | Python | false | false | 5,166 | py | """ 3-d rotation group and corresponding Lie algebra """
import torch
from . import sinc
from .sinc import sinc1, sinc2, sinc3
def cross_prod(x, y):
z = torch.cross(x.view(-1, 3), y.view(-1, 3), dim=1).view_as(x)
return z
def liebracket(x, y):
return cross_prod(x, y)
def mat(x):
# size: [*, 3] -> [*... | [
"vinitsarode5@gmail.com"
] | vinitsarode5@gmail.com |
c19311e302d955bdc8389cf9b2c6f1984f5cf1e9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_cloudier.py | 2b2b78b56b2d5caa76df72ca153557fe1a45f3e8 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py |
from xai.brain.wordbase.adjectives._cloudy import _CLOUDY
#calss header
class _CLOUDIER(_CLOUDY, ):
def __init__(self,):
_CLOUDY.__init__(self)
self.name = "CLOUDIER"
self.specie = 'adjectives'
self.basic = "cloudy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
92be2915613cdbf10fb37b1328ac31a24ec1c5a8 | 5774101105b47d78adb7a57eefdfa21502bbd70c | /project-follow/Python图像识别--验证码/登录页面应用验证码实例/login/verify_code.py | 53af3b77939b6c56064dd9153d170ad686770c39 | [] | no_license | zhlthunder/python-study | 34d928f0ebbdcd5543ae0f41baaea955c92f5c56 | 0f25dd5105ba46791842d66babbe4c3a64819ee5 | refs/heads/master | 2023-01-12T18:39:47.184978 | 2018-10-07T23:48:04 | 2018-10-07T23:48:04 | 90,516,611 | 0 | 1 | null | 2022-12-26T19:46:22 | 2017-05-07T07:39:48 | HTML | UTF-8 | Python | false | false | 2,425 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#author:zhl
#_*_coding:utf-8_*_
from PIL import Image,ImageDraw,ImageFont,ImageFilter
import random
import math, string
#字体的位置,不同版本的系统会有不同
# font_path = '/Library/Fonts/Arial.ttf' #for linux system
font_path = 'C:\Windows\Fonts\Arial.ttf' # for windows system
#font_pa... | [
"zhlthunder@163.com"
] | zhlthunder@163.com |
b4c02c143af6bdd3e89dfc9257634f363fb664a7 | 7b1dc3648340633324ae67c414bd0ed8e96a3f28 | /src/diffeoplan/programs/maketestcases/__init__.py | eeb1f2bf21cfb98f166525f737dc92fc658b7778 | [] | no_license | AndreaCensi/diffeoplan | c416071d26bbee9bfe5c954fcd41f3e8f48684cf | 4757bab5f88a590e9eaf21e98e5a233c94f39bed | refs/heads/master | 2021-01-10T20:06:36.576876 | 2013-07-13T14:12:37 | 2013-07-13T14:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | from .maketest import *
from .dp_gentests import *
| [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
f081fa48209566351f5c932173d8a707d24ad3f7 | d594f3926f6379ef7c382c608cb211f507240420 | /csunplugged/tests/general/views/test_general_contact_view.py | 5ea3a55a4ae875929e354103760dd50ce88c7418 | [
"LicenseRef-scancode-secret-labs-2011",
"MIT",
"OFL-1.1",
"LGPL-2.0-or-later",
"AGPL-3.0-only",
"CC-BY-4.0",
"Apache-2.0",
"BSD-3-Clause",
"CC-BY-SA-4.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | uccser/cs-unplugged | 0b9151f84dd490d5b90771a3706327a623d39edc | 363e281ff17cefdef0ec61078b1718eef2eaf71a | refs/heads/develop | 2023-08-25T08:45:29.833025 | 2023-08-22T02:58:35 | 2023-08-22T02:58:35 | 66,315,075 | 200 | 41 | MIT | 2023-09-14T02:15:40 | 2016-08-22T23:16:40 | Python | UTF-8 | Python | false | false | 473 | py | from tests.BaseTestWithDB import BaseTestWithDB
from django.urls import reverse
from http import HTTPStatus
class ContactViewTest(BaseTestWithDB):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.language = "en"
def test_contact_view(self):
response = self.... | [
"jackmorgannz@gmail.com"
] | jackmorgannz@gmail.com |
dddff112b3ca814a9d52faa8cb0420d359be4685 | 53181572c4b22df4b569a9901bcd5347a3459499 | /ceit_191221/py200404_zhou/operator_membership.py | 76bdd31d429dc5efba1375f26c6cf98bfd7b9cde | [] | no_license | edu-athensoft/ceit4101python_student | 80ef067b77421fce76d04f778d5c6de8b12f676c | 33cfa438c062d45e8d246b853e93d3c14b92ff2d | refs/heads/master | 2020-07-30T01:04:21.084384 | 2020-07-27T02:21:57 | 2020-07-27T02:21:57 | 210,027,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | """
membership
in, not in
"""
# A string can be taken as a tuple by default
x = 'Hello world'
print('x' in x)
# dictionary
y = {1: 'a', 2: 'b'}
print(1 in y) # True
print('a' in y) # False
| [
"inf.athensoft@hotmail.com"
] | inf.athensoft@hotmail.com |
e2d852ceb5d8290b5dc5ba71f76c0f47a7cd51c6 | be2a81f03e8a2dac7d356dde7a3ffdcfe3f77e00 | /providers/br/pcurio/migrations/0002_favicon.py | dfe257df87dde9a4409fe74a053e3887af397155 | [
"Apache-2.0"
] | permissive | Stevenholloway/SHARE | 4193bbd3ca50765a24bf21c0cc14438175fbb678 | b9759106d12c2ff548bad22c4be8650e9f41e61e | refs/heads/develop | 2021-01-21T19:13:35.205983 | 2017-02-23T14:45:46 | 2017-02-23T14:45:46 | 63,431,390 | 0 | 0 | null | 2016-07-15T15:17:45 | 2016-07-15T15:17:44 | null | UTF-8 | Python | false | false | 447 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-02-01 21:23
from __future__ import unicode_literals
from django.db import migrations
import share.robot
class Migration(migrations.Migration):
dependencies = [
('br.pcurio', '0001_initial'),
('share', '0018_store_favicons'),
]
... | [
"chriskseto@gmail.com"
] | chriskseto@gmail.com |
ce77392e55ca75771493ac5a15477a97fa24cfdf | 9f0a4262c4402201df1cdd5674a679543f4a50b5 | /smartDeformer_maya2019/utils/config.py | ebca14b00c9081caf6caebe8bfe759a3d978c654 | [] | no_license | subing85/subins-toolkits | 611b6b3b3012ccb023096f6e21d18d2bda5a534b | d02af1289ec3ee5bce6fa3d78c134a8847113aa6 | refs/heads/master | 2022-07-12T17:19:57.411454 | 2022-07-01T20:37:16 | 2022-07-01T20:37:16 | 168,826,548 | 11 | 2 | null | 2022-07-02T01:03:34 | 2019-02-02T11:51:25 | Mathematica | UTF-8 | Python | false | false | 446 | py | """
config.py 0.0.1
Date: January 15, 2019
Last modified: April 23, 2019
Author: Subin. Gopi(subing85@gmail.com)
# Copyright(c) 2019, Subin Gopi
# All rights reserved.
# WARNING! All changes made in this file will be lost!
Description
None.
"""
def get_conig():
return "Linux", "maya", "2019", "2.7.11"
d... | [
"subing85@gmail.com"
] | subing85@gmail.com |
c617bd9d99b3caf915efbad5cb5a962bd0c6161c | 57037c301c15de662b9092637a993793ee3ad43c | /env/bin/python-config | 01deb138f0a055a09ea6e58ed0cad5a3266031ae | [
"MIT"
] | permissive | veronicaerick/snackspace | 66c9fb48907e6d91fe392510f1655bfaf893c626 | 9bdd5ae95cfbfec7389496f6b3cba452d21b7ee0 | refs/heads/master | 2020-09-19T20:40:06.252412 | 2016-09-07T04:36:58 | 2016-09-07T04:36:58 | 66,520,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | #!/Users/veronica/Desktop/snackspace/env/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ver... | [
"veronicaeerick@gmail.com"
] | veronicaeerick@gmail.com | |
918e147cc2104b7ec00392025b66f505e1a6142d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /xzisrRDwWT8prHtiQ_8.py | a0c73fea34f2bca79dcc5769e10d279b20a79780 | [] | 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 | 198 | py |
def difference_two(lst):
ans = []
for i in sorted(lst):
for j in sorted(lst):
a = list(sorted([i, j]))
if a[1] - a[0] == 2 and a not in ans:
ans.append(a)
return ans
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
cd7027ec42b9340953b8dd768cd8513f66a40dc6 | 1de2dd097eb7aa56a2577d8951072834c2587cc6 | /tools/pick_files.py | 5fd6c50efd7433f2b32025e780c1ce980c8b933b | [] | no_license | euske/github-data-2014 | 125888673b505fe99809e67d9ef8f68f1e7374a8 | eb4aa6afde1b4b2bdb5aabe7bac6cf93c8cff455 | refs/heads/master | 2021-01-25T04:02:01.816046 | 2014-08-24T11:20:11 | 2014-08-24T11:20:11 | 22,768,492 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python
import sys
import fileinput
import os.path
import zipfile
def main(argv):
args = argv[1:]
outpath = args.pop(0)
d = {}
for line in fileinput.input(args):
(ext,path,size,name) = line.strip().split(' ')
if path not in d:
d[path] = []
d[path].appen... | [
"yusuke@shinyama.jp"
] | yusuke@shinyama.jp |
aad4346c427d97a2393866c7a7f07202e14c00ad | 4dfa34ccc535bdff6bab2e1ace7ce1826949a605 | /src/domain/users/models/user_models.py | cd5d324ea9c6528b55eb845fe0e98e61824e654e | [] | no_license | Genial-Ideias/poc-fastapi-mongodb | c36b2df8802e0f279db4b9bb1358a09625241e08 | 1667885a698759268627c8e3f473a24cf7c70338 | refs/heads/main | 2023-06-19T06:41:58.844379 | 2021-07-09T18:10:20 | 2021-07-09T18:10:20 | 384,463,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | from typing import Optional
from pydantic import BaseModel
from src.shared.models.pydantic_objectid import PydanticObjectId
class UserModel(BaseModel):
id: PydanticObjectId
name: str
email: str
password: Optional[str]
class Config:
orm_mode = True
class CreateUserModel(BaseModel):
... | [
"leonardofreitasdev@gmail.com"
] | leonardofreitasdev@gmail.com |
9d641d3c6a67058c72ca451c88f85a3d6d9a2a5b | 1f44dd4f0673b0a86e50b26b0755ed8fae466858 | /burpui/misc/backend/async.py | d7da10cd6ac17286ef5ffbeb176bd73a55aca68a | [
"BSD-3-Clause"
] | permissive | inxming/burp-ui | cc326532528255c31a4f4010f3deab9e19549d90 | ec47a55131397dbd06d90af6cc385d1ae690ce62 | refs/heads/master | 2020-03-26T13:41:42.207388 | 2018-08-14T16:12:25 | 2018-08-14T16:12:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,476 | py | # -*- coding: utf8 -*-
"""
.. module:: burpui.misc.backend.async
:platform: Unix
:synopsis: Burp-UI async backend module.
.. moduleauthor:: Ziirish <hi+burpui@ziirish.me>
"""
import re
import os
import json
import ssl
import trio
import struct
import logging
from .burp2 import Burp as Burp2
from .burp1 impor... | [
"ziirish@ziirish.info"
] | ziirish@ziirish.info |
49307acacd801092f5a472fe8c0212cdbbb3ec7a | d2876c5d80f03336418a243c36a080fc3a65d629 | /build/learning_ros/Part_4/localization_w_gps/catkin_generated/pkg.develspace.context.pc.py | 5c815c9f77a098eeee2d1b6ff6213e32cb0ff7ac | [] | no_license | brucemingxinliu/ARIAC_Inventory_control | 302b8648451c38a461d07a57e8c12702538abd23 | 8084b095822d7ad8ccab6dbf98d85348c8a9fb8c | refs/heads/master | 2021-01-19T18:39:13.649891 | 2017-04-18T15:22:13 | 2017-04-18T15:22:13 | 88,370,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;nav_msgs;geometry_msgs;xform_utils;sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != ""... | [
"mxl592@case.edu"
] | mxl592@case.edu |
0b2fcb32ac72bb2a6d1ce4cbc03bb27d6424f9aa | 1b45d1162bd60a356844fc4dced068da2e6cc438 | /LinkedList/Circular.py | 7ae9c396a481a28a51faa35fa0949608f5e27a42 | [
"MIT"
] | permissive | AnkitAvi11/Data-Structures-And-Algorithms | de9584e439861254cdce265af789c8b484c01c69 | 703f78819a41d4dd88caf71156a4a515651edc1b | refs/heads/master | 2023-02-19T21:53:39.405934 | 2021-01-24T17:27:21 | 2021-01-24T17:27:21 | 297,752,655 | 6 | 3 | MIT | 2021-01-24T17:27:22 | 2020-09-22T19:33:55 | Python | UTF-8 | Python | false | false | 2,804 | py |
"""
Implementing circular linked list
"""
# class to create a node of the linked list
class LinkedlistNode :
def __init__(self, data) :
self.data = data
self.next_node = None
# circular linked list class (main class)
class CircularList :
# constructor of the class
def __init... | [
"kumar.ankit383@gmail.com"
] | kumar.ankit383@gmail.com |
9f7e568a95564632e3d516867d1461264fea9ed7 | cee65c4806593554662330368c799c14ec943454 | /src/eventgrid/azext_eventgrid/mgmt/eventgrid/models/retry_policy_py3.py | 12a366226399de4ed529d8f07d8941419d680fea | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | azclibot/azure-cli-extensions | d5d1a4ecdfc87fd79f5ad042fb85cdbf881897d2 | c230646258d4b56efb7d44eb7a0230f2943da6f6 | refs/heads/master | 2023-08-28T03:55:02.311902 | 2019-04-04T16:05:45 | 2019-04-04T16:05:45 | 179,548,695 | 1 | 1 | MIT | 2021-07-28T15:26:17 | 2019-04-04T17:54:39 | Python | UTF-8 | Python | false | false | 1,388 | 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 ... | [
"wx44@cornell.edu"
] | wx44@cornell.edu |
98ba96b2c7dc5899f852a6be60767119e4755416 | 3e1b6dcb2584302f4fee43333b63671464feeb07 | /dnnae/utils/utils.py | b6b11689f34edec29f3d19f8e27e5da1e0cbc2e9 | [
"MIT",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | myinxd/dnnae-gmm | dceb9d6eca266995d8fce969c1550a3e99d5e181 | e1c59e2e93772a36797812169cae119ac00184c5 | refs/heads/master | 2020-03-07T05:04:44.488652 | 2018-06-04T00:41:16 | 2018-06-04T00:41:16 | 127,285,070 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,293 | py | # Copyright (C) 2018 Zhixian MA <zx@mazhixian.me>
# MIT liscence
"""Utilities for the dnn"""
import pickle
import numpy as np
import tensorflow as tf
def get_timestamp():
"""Get time at present"""
import time
timestamp = time.strftime('%Y-%m-%d: %H:%M:%S', time.localtime(time.time()))
return timest... | [
"zxma_sjtu@qq.com"
] | zxma_sjtu@qq.com |
c80467224a2a70187c10830821531a9eb12f2b0e | f99234f30da5e2c635a792e10e735a7c9c12d13b | /photutils/psf/matching/fourier.py | ca0710ff8704a46e70b4a19dff090557b553275b | [
"BSD-3-Clause"
] | permissive | griffin-h/photutils | aaf3e6a6b5c94b41ffd1db4b686585debb552240 | 9053b3f2dde0e3bbfa6786049722f49d8eff6706 | refs/heads/master | 2021-06-25T12:35:03.369214 | 2021-01-22T04:35:51 | 2021-01-22T04:35:51 | 192,799,524 | 0 | 0 | BSD-3-Clause | 2019-06-19T20:24:15 | 2019-06-19T20:24:15 | null | UTF-8 | Python | false | false | 3,392 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Tools for matching PSFs using Fourier methods.
"""
import numpy as np
from numpy.fft import fft2, ifft2, fftshift, ifftshift
__all__ = ['resize_psf', 'create_matching_kernel']
def resize_psf(psf, input_pixel_scale, output_pixel_scale, order=3):
... | [
"larry.bradley@gmail.com"
] | larry.bradley@gmail.com |
612884718d67c6cf6c20ae0278f6247133384437 | 5d22d9b2cb5cad7970c1055aeef55d2e2a5acb8e | /py/codeforces/873D.py | f0e763f266fd1dd5a814d60e6e31e1673fe34677 | [
"MIT"
] | permissive | shhuan/algorithms | 36d70f1ab23dab881bf1a15573fbca7b2a3f4235 | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | refs/heads/master | 2021-05-07T14:21:15.362588 | 2017-11-07T08:20:16 | 2017-11-07T08:20:16 | 109,799,698 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # -*- coding: utf-8 -*-
import math
import collections
import bisect
import heapq
import time
import random
"""
created by shhuan at 2017/10/14 15:30
"""
n, k = map(int, input().split())
if k & 1 == 0 or k > 2*n-1:
print(-1)
else:
a = [0] * n
gs = (k-1)//2
def unsort(l, r, v):
if l == r-1:... | [
"shuangquanhuang@gmail.com"
] | shuangquanhuang@gmail.com |
d2046ef58b4cb987fe08b47bb176cc0f9b175fbd | f4dedea53630c9cbdc6297ae4a7e2a8195fd7691 | /5 Range Queries/13 Subarray Sum Queries.py | 5240a0bbb70532353fa60ec055c9e9515d76c0c3 | [] | no_license | nikkisora/cses_problemset | d089db048444e07e002f131b4323adc9df95b05b | 03160f33e36cdc6d538403357b36bcb015b4dba7 | refs/heads/master | 2023-07-03T10:34:23.487709 | 2021-08-05T21:13:49 | 2021-08-05T21:13:49 | 379,251,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | '''
CSES - Subarray Sum Queries
Time limit: 1.00 s
Memory limit: 512 MB
There is an array consisting of n integers. Some values of the array will be updated, and after each update, your task is to report the maximum subarray sum in the array.
Input
The first input line contains integers n and m: t... | [
"32413317+nikkisora@users.noreply.github.com"
] | 32413317+nikkisora@users.noreply.github.com |
9a816ba6317e4bac4d65cf28c5e879e0dfd4f8b4 | f3dc836612c7b0c9a0bee8d26e49aa63a272ebbd | /plynx/graph/base_nodes/base_bash.py | 7a8fe9b4c72afde4be44edd2e8b720b7cc1ea2a4 | [
"Apache-2.0"
] | permissive | McKenzyPG/plynx | 433705cd9702dee4abef60b44f3289b2e032caf8 | 8767f7fdb73a0ca262a55e3ad304bc665f239da0 | refs/heads/master | 2020-04-06T15:06:51.109652 | 2018-11-14T08:02:54 | 2018-11-14T08:02:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,005 | py | from subprocess import Popen, PIPE
import os
import stat
import shutil
import signal
import uuid
import logging
import pwd
from plynx.constants import JobReturnStatus, NodeStatus, FileTypes, ParameterTypes
from plynx.db import Node, Output, Parameter
from plynx.utils.file_handler import get_file_stream, upload_file_str... | [
"khaxis@gmail.com"
] | khaxis@gmail.com |
d32abee8aa80ac7f7370a56d6d8f41e8acc6d333 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_04_01/aio/_configuration.py | de06e1a2d768302fa4e756f10e025eb0e49b922e | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 3,202 | 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 may ... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
a00bf152fa3b7b4c6ee9acaa934ab2343a38e9be | bbf1ae079309eca11270422d3f0d259d1515d430 | /numerical-tours/python/nt_solutions/segmentation_2_snakes_param/exo2.py | ae18fc83ab80f912177bfa6b8b1466ff892b2f36 | [
"BSD-2-Clause"
] | permissive | ZichaoDi/Di_MATLABTool | 5e6a67b613c4bcf4d904ddc47c2744b4bcea4885 | c071291c63685c236f507b2cb893c0316ab6415c | refs/heads/master | 2021-08-11T07:28:34.286526 | 2021-08-04T18:26:46 | 2021-08-04T18:26:46 | 149,222,333 | 9 | 5 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | gamma = gamma0;
displist = around(linspace(0,niter,10))
k = 0;
clf;
imageplot(transpose(W));
for i in arange(0,niter+1):
N = normal(gamma);
g = EvalW(gamma) * normalC(gamma) - dotp(EvalG(gamma), N) * N;
gamma = resample( gamma + dt*g );
if i==displist[k]:
lw = 1;
if i==0 or i... | [
"wendydi@compute001.mcs.anl.gov"
] | wendydi@compute001.mcs.anl.gov |
de9f5dfdfe55698cb2394928d560891ca621cae5 | 8c9a874a4869aa5afaa04b2ea58ffed5722901ed | /tests/test_oh-my-toolkit.py | c4803e2d02e4ece5a123b873d2776e57b27a4b43 | [
"BSD-3-Clause"
] | permissive | adamchainz/oh-my-toolkit | 32c11069c712fd8f264098114e94800f40aad178 | c0e924547b10a5cf07e803b55b43332fbf257b34 | refs/heads/master | 2023-07-07T18:33:38.920651 | 2016-06-08T08:00:01 | 2016-06-08T08:00:01 | 36,362,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_oh_my_toolkit
----------------------------------
Tests for `oh_my_toolkit` module.
"""
import unittest
from oh_my_toolkit import * # noqa
class TestOhMyToolkit(unittest.TestCase):
def setUp(self):
pass
def test_something(self):
pass... | [
"adam@adamj.eu"
] | adam@adamj.eu |
7897e75d440286830bd9c15d408291c3c37271ec | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03156/s913427074.py | a2ec8ef1bd021c30f406410179b5d02b55623bc8 | [] | 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 | 328 | py | # coding: utf-8
#N, h, w = map(int,input().split())
N = int(input())
#s = list(map(str,input().split()))
a, b = map(int,input().split())
P = list(map(int,input().split()))
ans = 0
c1 = 0
c2 = 0
c3 = 0
for p in P:
if p <= a:
c1 += 1
elif a < p <= b:
c2 += 1
else:
c3 += 1
print(min(c1... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
377dedf68b6db17d301a2e3da7842852e7070a47 | ac3db86631a4ab6fd9ef0d1397ccd842cef957fa | /SPARK17/textManual/MarkdownPP/Modules/Include.py | e45a932f1e44f0c8aa463d6e4d6380a5e7542b6c | [
"MIT"
] | permissive | csparkresearch/ExpEYES17-Qt | 57f5e19196bfd7a04454c0708c33d6eccd36e1e1 | 7a3bdc0df19569c0321434d8fd897439b1854fb1 | refs/heads/master | 2020-12-31T00:30:42.669312 | 2018-04-19T11:11:39 | 2018-04-19T11:11:39 | 86,545,764 | 1 | 4 | null | 2017-07-21T10:00:39 | 2017-03-29T06:22:12 | Python | UTF-8 | Python | false | false | 4,187 | py | # Copyright 2015 John Reese
# Licensed under the MIT license
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import re
from os import path
from MarkdownPP.Module import Module
from MarkdownPP.Transform import Transform
class Include(Module):
... | [
"georgesk@debian.org"
] | georgesk@debian.org |
79fb4233862c4b0509e49b11c0ed870b2588aba5 | 4179ac943db7ed3de0d41ae1d52bcefbf76e82e0 | /pandas/core/ops/mask_ops.py | fd91e78451da9e1790e1c35d143348ea937f7c3c | [
"BSD-3-Clause"
] | permissive | lichenbit/pandas | 9e4e2162522f129c06e98b16fb852676fb5524c2 | 016daf9add4366b64cdce6f523e38e72663f64f7 | refs/heads/master | 2020-11-24T04:59:43.116605 | 2019-12-14T03:57:39 | 2019-12-14T03:57:39 | 227,973,782 | 1 | 0 | BSD-3-Clause | 2019-12-14T05:54:30 | 2019-12-14T05:54:30 | null | UTF-8 | Python | false | false | 4,935 | py | """
Ops for masked ararys.
"""
from typing import Optional, Union
import numpy as np
from pandas._libs import lib, missing as libmissing
def kleene_or(
left: Union[bool, np.ndarray],
right: Union[bool, np.ndarray],
left_mask: Optional[np.ndarray],
right_mask: Optional[np.ndarray],
):
"""
Boo... | [
"jorisvandenbossche@gmail.com"
] | jorisvandenbossche@gmail.com |
a732b3240e78cca238fe09be128d0ea9e118c3df | 8553e0b06161d288100750cda973924ee4030e17 | /clustack/install.py | 8815a7175895ce60e8347ace014fa4dec9bae137 | [] | no_license | mrmh2/clustack | 0b635fec2c459f7a6db724aead84a36fb6bd7254 | 4b1e820e82ef8cbae400b69f156574050e72698a | refs/heads/master | 2021-01-19T03:23:20.122454 | 2015-04-13T12:47:07 | 2015-04-13T12:47:07 | 28,097,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | """Functions for installing a new package."""
import os
import sys
import yaml
import settings
from envmanager import EnvManager
from shelf import Shelf
from yamlbuilder import builder_by_name_yaml
from blueprint import load_blueprint_by_name
class BuildEnvironment(EnvManager):
def __init__(self):
Env... | [
"mhartley@cantab.net"
] | mhartley@cantab.net |
20d1015ba9da2add2164d74c087be110c36b38ef | f7d343efc7b48818cac4cf9b98423b77345a0067 | /automation_framework/workflow/baseworkflow_enable_security_service.py | 94fdab51d2fb6b7e2dce0228fa449f73104eec7f | [] | no_license | vijaymaddukuri/python_repo | 70e0e24d0554c9fac50c5bdd85da3e15c6f64e65 | 93dd6d14ae4b0856aa7c6f059904cc1f13800e5f | refs/heads/master | 2023-06-06T02:55:10.393125 | 2021-06-25T16:41:52 | 2021-06-25T16:41:52 | 151,547,280 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,620 | py | import sys
from auc.validate_enable_security.enable_and_validate_security_tas_api import ExecuteTasEnableSecurityAPI
from auc.validate_enable_security.enable_and_validate_security_mw_api import ExecuteMwEnableSecurityAPI
from utils.context import DataContext
from utils.GetYamlValue import GetYamlValue
from os.path imp... | [
"Vijay.Maddukuri@virtustream.com"
] | Vijay.Maddukuri@virtustream.com |
a1ec5730eb06277d4d9c719273d2804488084f10 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnn1524.py | 6f6c13120d12a7756d258edcd4473aef5ea7f666 | [] | 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 | 121 | py | ii = [('FitzRNS3.py', 1), ('WadeJEB.py', 3), ('MereHHB3.py', 3), ('MereHHB.py', 2), ('StorJCC.py', 1), ('JacoWHI.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
1ccb41e753ddd9787ff462a891e9d7c73f9073a6 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_14568.py | 1ca3c0ec13c4e17b7256241958f4e37fd994f7cb | [] | 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 | 141 | py | # add 2 to list [[23,34],[34,23]]
>>> nums = [[23,34],[43,23]]
>>> [[y + 2 for y in x] for x in nums]
[[25, 36], [45, 25]]
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
22fb5b86a4ba8303780dc55dd40bfc75c2e97c3c | ce6eecf8ec35e20772e1166680149cc174db2f9b | /app/auth.py | d6901cc78728f6080f4a230efd76f3022594fdc9 | [
"MIT"
] | permissive | vaibhavmule/project-management | 473d4462e4f68fb5e967815bfabf75d4eac35f78 | 29ceba5e37919ea5fb8f4d75af1e20e39289beb8 | refs/heads/master | 2022-12-03T22:11:07.878702 | 2020-08-18T17:16:34 | 2020-08-18T17:16:34 | 287,706,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | import datetime
from functools import wraps
from werkzeug.security import (
generate_password_hash,
check_password_hash
)
from flask import abort
from flask_login import UserMixin, current_user
from app import db
class User(db.Document, UserMixin):
meta = {
'collection': 'users'
}
use... | [
"vaibhavmule135@gmail.com"
] | vaibhavmule135@gmail.com |
04d5438a77c48c6ba173ad350ae9ca58cf995b13 | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_11/zakat-project/branches/dzc_1/report/dzc_1_report.py | fcfa10c862ce53c7b673f33e344a2e266914ecd9 | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,471 | py | from odoo import models, api, _
from datetime import datetime
class EmergencyCaseStudy(models.AbstractModel):
_name = 'report.dzc_1.emergency_form_report'
@api.model
def get_report_values(self, docids, data):
docs = self.env['emergency.and.urgent.cases'].search([('id', '=', data['emergency'])])
... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
d87e0c2b552bfa62d847e85c4d158b82b6b38d46 | dac12c9178b13d60f401c4febff5569af8aa2719 | /serverless/pytorch/shiyinzhang/iog/nuclio/main.py | 6898cee9d5a8614fb5546ba75b1d9545d4524f57 | [
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | opencv/cvat | 39dc66ca20f972ba40b79c44d7ce43590dc0b0b5 | 899c9fd75146744def061efd7ab1b1c6c9f6942f | refs/heads/develop | 2023-08-19T04:27:56.974498 | 2023-08-18T09:58:25 | 2023-08-18T09:58:25 | 139,156,354 | 6,558 | 1,887 | MIT | 2023-09-14T12:44:39 | 2018-06-29T14:02:45 | TypeScript | UTF-8 | Python | false | false | 1,298 | py | # Copyright (C) 2020-2022 Intel Corporation
# Copyright (C) 2022 CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT
import json
import base64
from PIL import Image
import io
import numpy as np
from model_handler import ModelHandler
def init_context(context):
context.logger.info("Init context... 0%")
model... | [
"noreply@github.com"
] | opencv.noreply@github.com |
5598356ed556cbe7300a9aa4ccfc5846daa8f8a4 | 9863cee02d03850b2028da15d3f9cd1e58033de3 | /backend/manage.py | bc261639f93f079cd83cf91b5bac2cf7b6648a3e | [] | no_license | crowdbotics-apps/lizz-2-24-1-24704 | 4a3ebd39929270dd4a8bb57c3c80d104a9ed5101 | 52a065a2251705178162080e67140279789be771 | refs/heads/master | 2023-03-10T10:49:01.262786 | 2021-02-24T22:29:34 | 2021-02-24T22:29:34 | 342,053,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lizz_2_24_1_24704.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
ra... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
dba2c9b8a340406af661a16dbb0fcc9492919e2f | 488e8b1090f9b079878614fb77298e8fee7352fc | /dm/dialogue_policy/gpsarsa/gpsarsa_dialogue_policy.py | ff4fa1f815e0fc3ed9a903fb57d6b19cee97634c | [] | no_license | thanhlct/sds | b3e497c2148e084d4e9ab4fdbd399c93611af851 | 3acae35c0463c9c940139facf012c68ff9304906 | refs/heads/master | 2021-01-18T21:48:40.248402 | 2016-06-24T09:53:57 | 2016-06-24T09:53:57 | 32,767,712 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,179 | py | '''
Gaussian Process and Sharsa Dialogue Policy
'''
import numpy as np
from dm.base import DialoguePolicy
from common.dialogueact import *
from utils.design_pattern import *
from common.grammar import Grammar
from common.grid_approximation import GridApproximation
from utils.kernel_functions import gaussia... | [
"thanhlct@gmail.com"
] | thanhlct@gmail.com |
0f893f96cb668a964bce00f6b6a1a766025ec65c | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part004561.py | 02a946968d8aa4b12604f80afe03744bc426a5ea | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
52e18dcece7adbbaca50bc2b61ddd7501970c1e4 | 3dbd3157cd640f6d1451f547b74ec9650bf68512 | /nas/tests/test_file.py | 26d815ff82090f65bd6c0c12b3f167297b0489f2 | [] | no_license | sirily11/django-nas | 9fd56f2ef2222355dfb61da5c48d69a29c34b8af | a4a4d8d512523a3ba4168e8a52ff689304984140 | refs/heads/master | 2022-12-23T14:54:23.241766 | 2021-07-31T15:26:40 | 2021-07-31T15:26:40 | 225,230,605 | 2 | 0 | null | 2022-12-12T13:14:23 | 2019-12-01T21:03:39 | Python | UTF-8 | Python | false | false | 3,788 | py | import json
import shutil
from django.core.files.uploadedfile import SimpleUploadedFile
from django.test import TestCase
from django.urls import reverse
from rest_framework.test import APIRequestFactory
from nas.models import File as FileObj, MusicMetaData, Folder, ImageMetaData
from nas.tests.const_params import TEST... | [
"sirily1997@gmail.com"
] | sirily1997@gmail.com |
7963b54e87a001bb6b017a7a8885c0133eeccc1f | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/f5networks/f5_modules/tests/unit/modules/network/f5/test_bigip_device_sshd.py | 1d0d56d8deac0f886f16280d93144781aa74588f | [
"MIT",
"GPL-3.0-only"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 3,607 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks Inc.
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import json
import pytest
import sys
if sys.version_info < (2, ... | [
"sifang@cisco.com"
] | sifang@cisco.com |
6843f68149a4174fd78c03e5e87bb83d7a8a008f | 6f866eb49d0b67f0bbbf35c34cebe2babe2f8719 | /app/forms/field_handlers/address_handler.py | 5c3baa3ec3ccc797844822ee99a70dbdae77c0e6 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | ONSdigital/eq-questionnaire-runner | 681b0d081f9cff0ee4ae3017ecc61f7390d553bf | 87e7364c4d54fee99e6a5e96649123f11c4b53f1 | refs/heads/main | 2023-09-01T21:59:56.733363 | 2023-08-31T15:07:55 | 2023-08-31T15:07:55 | 219,752,509 | 12 | 18 | MIT | 2023-09-14T11:37:31 | 2019-11-05T13:32:18 | Python | UTF-8 | Python | false | false | 1,113 | py | from functools import cached_property
from wtforms import FormField
from wtforms.validators import InputRequired
from app.forms.address_form import AddressValidatorTypes, get_address_form
from app.forms.field_handlers.field_handler import FieldHandler
from app.forms.validators import format_message_with_title
class... | [
"noreply@github.com"
] | ONSdigital.noreply@github.com |
6b2a1e621cf95f882263e18675258c6284e93ef9 | bc9cb3f0f104778026ca6f3a07595dd5d6ce840f | /PROJETO_FINAL/codigo/core/loadout/oticos/visao_noturna/night_vision.py | 2a64b99c63081728fc3eef3be14f3cba8e33d5c3 | [] | no_license | JohnRhaenys/escola_de_ferias | ff7a5d7f399459725f3852ca6ee200486f29e7d4 | 193364a05a5c7ccb2e5252c150745d6743738728 | refs/heads/master | 2023-01-12T11:30:46.278703 | 2020-11-19T14:59:10 | 2020-11-19T14:59:10 | 314,278,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import os
from PROJETO_FINAL.codigo.core.loadout.oticos.optic import Optic
class NightVision(Optic):
AUDIO_FILE_PATH = os.path.join(os.getcwd(), 'loadout', 'oticos', 'visao_noturna', 'night.mp3')
def __init__(self, name, color):
super().__init__(name, color)
def activate(self):
self.ma... | [
"joao.estrela@sga.pucminas.br"
] | joao.estrela@sga.pucminas.br |
179c9f25960106972fc49cf0d5f1c8c6fa777ec8 | 8f8c1df3c8cc0d356bf3bf0f326c8b9dcb7310a4 | /surfaceChange/reread_data_from_fits.py | 707fa39033efdcdca4c5cf278914d75c371f7c7d | [
"MIT"
] | permissive | whigg/surfaceChange | e6096953bb5067fced2ee09057d0ab6eb2997d0a | 863e4c58e446f275137b2ce2366d51a16fa4bc0f | refs/heads/master | 2023-01-08T21:05:54.648112 | 2020-11-12T22:42:21 | 2020-11-12T22:42:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,699 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Aug 16 15:54:48 2019
@author: ben
"""
import h5py
import re
import numpy as np
import pointCollection as pc
import os
import matplotlib.pyplot as plt
def make_sensor_dict(h5f):
'''
make a dictionary of sensor numbers for a fit output file.
... | [
"bsmith@apl.washington.edu"
] | bsmith@apl.washington.edu |
e025f209180b479119782d4e0ff11a387eb057fd | 45f642131dd88449acb58ff215257bb6528f53eb | /backend/friendmates_31875/settings.py | 5a22bb3639929bba8f0c7ff58688140f45791ab3 | [] | no_license | crowdbotics-apps/friendmates-31875 | 2e723a834611549d6bc25ee8e613fe7a313f5359 | 5018d878c2fd7b07f9fff24b02a704b4838b3e15 | refs/heads/master | 2023-08-30T10:45:43.281263 | 2021-11-08T17:06:39 | 2021-11-08T17:06:39 | 425,922,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,965 | py | """
Django settings for friendmates_31875 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
385c221a654f1c64c5325e2fe8f94f2154a50c35 | b4efe7a85bbde01cd47189bcc0298594baae7a14 | /code/66.py | c4bf7dc23f5eec4decea4e6b655cb82d0e5ddf5a | [] | no_license | HarshaaArunachalam/guvi | c200e05dc0c259bfabfc0ee58c1ab9b6412b89a7 | 67c87e8fe50d645036333649759b5b1a40369004 | refs/heads/master | 2020-05-31T06:27:27.104793 | 2019-06-11T18:31:43 | 2019-06-11T18:31:43 | 190,141,812 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | number=int(input())
x=0
y=1
while y<=number:
if(number%y)==0:
x=x+1
y=y+1
if(y==2):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | HarshaaArunachalam.noreply@github.com |
a8a8f9e16930ab571cf0f538995f58fca28f3368 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/rna-transcription/b00eb67f42d2416d8c9e296dda031e51.py | e3edb0f0e489f967d4466ba5784344b00b0d0aec | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 151 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import string
def to_rna(char):
t = string.maketrans('GCTA', 'CGAU')
return char.translate(t)
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
d76b120ed9c2e7282c3f8a53d38823c6bd2830e6 | eb9e9928294810ae61ac761852e2d382ccab18eb | /models/user.py | de50e0d982895dd3ea70910ac485c31e7542b171 | [] | no_license | yingchauhuang/keepwin | 688e7abb1dfae5ce7986c691215cbe49bac8ffcb | b109a67e2a106ac82af086937ed490d65ea7c728 | refs/heads/master | 2019-01-23T02:48:30.572349 | 2014-05-15T13:18:21 | 2014-05-15T13:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,161 | py | import datetime
import logging
from django.db import models
from django.db.backends.dummy.base import IntegrityError
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes import generic
from django.contrib.auth.models import User
from django.utils.translation import ugettext as _
f... | [
"yingchauhuang@gmail.com"
] | yingchauhuang@gmail.com |
4ece7239ed934e55dcd5f9a3edeb8a98d25c1d4b | 64ebc70b46573700ee4ab1819671138bdc1d3cd1 | /server/src/weblab/admin/script/upgrade.py | fd52a840fb68218d596fd2119f75776609172001 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | JamesHyunKim/weblabdeusto | ed986145c5cfaffdaf15b3904fc73120f6217943 | 431571943120ce1f9b59a5ec64e2b8c3b69ba8a6 | refs/heads/master | 2021-01-18T07:33:14.803494 | 2015-08-05T17:22:47 | 2015-08-05T17:22:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,310 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2012 onwards University of Deusto
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# This software consists of contributions made by many individuals,
# list... | [
"pablo.orduna@deusto.es"
] | pablo.orduna@deusto.es |
f0fa046ad540d5c4daf4f6c46a47268148291cc8 | e11b2493f55c60685c3ea76f900be73e6a454b2f | /high_peformance_python/concurrency/tornado/tornado_http_scraper.py | fbd2d43e5820e7c4aaffa7b2f76ff050751afd3b | [] | no_license | zpoint/Reading-Exercises-Notes | 29e566dd86d97eadb84d7bb6f8f640b85486557c | 31b38fe927232ba8e6f6a0e7ab9c58026eefcffb | refs/heads/master | 2021-06-04T08:12:42.777309 | 2021-04-19T02:12:22 | 2021-04-19T02:12:22 | 70,507,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import string
import random
from functools import partial
from tornado import ioloop, gen
from tornado.httpclient import AsyncHTTPClient
AsyncHTTPClient.configure("tornado.curl_httpclient.CurlAsyncHTTPClient",
max_clients=100)
def generate_urls(base_url, num_urls):
for i in range(num_url... | [
"zp0int@qq.com"
] | zp0int@qq.com |
9815ddeac2b59e7d0f7ce052158f3f614e03312e | 24cf311c53c29e4e332cea01ee4de8196253a7b7 | /dma/models.py | 982a0e8df8157615e0c52b0c20db3bdd21a705b8 | [] | no_license | apengok/vsicravdoa | d017fe0c6a8606ef7bb74739354de1a2767b2a8a | e424b94007731189c2f14513798f2a9e9a45ba4c | refs/heads/master | 2020-03-10T23:07:48.145583 | 2018-06-01T09:18:25 | 2018-06-01T09:18:25 | 129,634,250 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,157 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.urls import reverse
from mptt.models import MPTTModel, TreeForeignKey
# Create your models here.
class Organization(MPTTModel):
name = models.CharField(max_length=50, unique=True)
parent = TreeForeignK... | [
"apengok@163.com"
] | apengok@163.com |
09010ebb0c984f98690694d2e3b75557a9403bc8 | 6efbfa168d0a9919fd3ddcdbed2222ad3602f2ae | /yolov3/utils/parse_config.py | cec95162481fb176fa88195bc04002d2a6128532 | [] | no_license | lyuwenyu/pytorch_workspace | 282d960e938c30df0d935cae3be973f1e1270dfb | d6436609c3a71b5545de176e18566d6995498708 | refs/heads/master | 2021-04-18T22:43:12.734370 | 2019-09-03T06:49:06 | 2019-09-03T06:49:06 | 126,791,453 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import os
import torch
import torch.nn as nn
from collections import defaultdict
def parse_config(cfg):
''' parse yolov3 config '''
result = []
with open(cfg, 'r') as f:
lines = f.readlines()
lines = [lin.strip() for lin in lines if not lin.startswith('#')]
lines = [lin for lin in ... | [
"wenyu.lyu@gmail.com"
] | wenyu.lyu@gmail.com |
7e8c97058f5285fab99a3d20ee67e9024ab84e4c | 8f3c498d3d493022c9e045562455f850e80f7cb0 | /src/domainContentAnalysis.py | d124da3307dcd1e7127b604366dba8ce7c0c0b0d | [] | no_license | LeeHuangChen/2018_01_31_ComparePFamAndMyResults | a7e50b74749f8c5b9b06cc233df26d2b7f6e8577 | d6f3e6b752f76b5b081734bff6295a2f71b56deb | refs/heads/master | 2021-05-09T00:06:45.225953 | 2018-03-22T19:27:56 | 2018-03-22T19:27:56 | 119,732,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | import re
def processPfamDict(pfamDict):
for protein in pfamDict.keys():
borders = pfamDict[protein]
for border in borders:
s = border[1]
e = border[2]
sf = re.search("\d+", s).group(0)
ef = re.search("\d+", e).group(0)
border[1] = int(s... | [
"lhc1@rice.edu"
] | lhc1@rice.edu |
e82dd49666446f2fe63272e819e018ab46b32831 | 56b7c26da4294c5fb245f480c6c516114a66afa3 | /xmlschema/tests/test_factory/arguments.py | 95ff4c2d5f9fad5260d4c504c48bc54b7d9e42f0 | [
"MIT"
] | permissive | msenra/xmlschema | cb8e8766d8b10d0088bc4e6500b6c352d27e6d84 | 257ef230c4b4c42a3374d0a5bc620c68d579e0fd | refs/heads/master | 2020-09-04T13:20:31.503778 | 2019-10-17T08:50:24 | 2019-10-17T08:50:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,987 | py | # -*- coding: utf-8 -*-
#
# Copyright (c), 2016-2019, SISSA (International School for Advanced Studies).
# All rights reserved.
# This file is distributed under the terms of the MIT License.
# See the file 'LICENSE' in the root directory of the present
# distribution, or http://opensource.org/licenses/MIT.
#
# @author ... | [
"brunato@sissa.it"
] | brunato@sissa.it |
de530665320bc9a836a5d5ae35b0f705d6035eb1 | c4702d1a06640555829b367852138cc93ba4a161 | /analysis_report/report/sale_order_report.py | 6ba3e560332dc36b245fe9703d677d71b35c9384 | [] | no_license | Rizalimami/dym | 0ecadf9c049b22ebfebf92e4eab6eaad17dd3e26 | af1bcf7b77a3212bc8a8a0e41e6042a134587ed4 | refs/heads/master | 2020-04-08T10:56:43.605698 | 2018-11-27T06:44:08 | 2018-11-27T06:44:08 | 159,287,876 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,702 | py | from openerp.osv import fields,osv
from openerp import tools
class sale_order_report(osv.osv):
_name = "sale.order.report"
_description = "Sale Order Report"
_auto = False
def _get_branches(self, cr, uid, ids, name, args, context, where =''):
branch_ids = self.pool.get('res.users').browse(cr, ... | [
"rizal@portcities.net"
] | rizal@portcities.net |
d025a58c03621813a2e2eaea370f1b551d740b98 | 51d5fc0a8ff2e50e2f0feb1e9de8644675d853e5 | /shellbot/__init__.py | 0e69a95338a351198ea70e91b449fe8442f5a642 | [
"Apache-2.0"
] | permissive | romainkotarba/shellbot | d645dc4e44b4fc6e646d7b76d9692d47810542cf | daf64fbab4085d1591bf9a1aecd06b4fc615d132 | refs/heads/master | 2021-05-06T16:31:04.458831 | 2017-10-22T22:57:50 | 2017-10-22T22:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | # Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not ... | [
"bernard.paques@gmail.com"
] | bernard.paques@gmail.com |
230275982ec5aae2ae6f766040f6b97498c3baaf | ff13c580942d13c3d9404e03fa8e018dc9528929 | /db/migrations/0067_auto_20201023_2032.py | 0d99b352289813fb13e4eb9ecf717f46bf6e9fcd | [] | no_license | yiyocx/alianza_templos | 967809eca2fd3af98834cb41ed0265f74cc2642d | 5d4923a642f15dd1806f33113f104fbdb4fd5c9e | refs/heads/master | 2023-06-23T21:42:05.621752 | 2023-06-08T17:48:05 | 2023-06-08T17:48:05 | 19,379,375 | 0 | 0 | null | 2022-11-22T01:23:42 | 2014-05-02T15:26:50 | JavaScript | UTF-8 | Python | false | false | 43,715 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import db.models
from django.conf import settings
import map_field.fields
class Migration(migrations.Migration):
dependencies = [
('db', '0066_auto_20200213_1539'),
]
operations = [
... | [
"diegofernando83@gmail.com"
] | diegofernando83@gmail.com |
1a5e42d9e2e6d2419eb04692cb50e157a778f43b | ea85e903db500eee66fe70ed3029b05577494d9d | /2020-9/1417. 重新格式化字符串.py | d55a049ddb28a28aa8a2162f5bfcc9e20955b129 | [] | no_license | baolibin/leetcode | fcd975eb23e5ca3fc7febbd6c47ec833595b5a51 | bc0540ec42131439be144cca19f6355a01de992a | refs/heads/master | 2021-08-15T20:40:25.580955 | 2021-01-20T09:57:21 | 2021-01-20T09:57:21 | 76,557,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | # coding:utf-8
'''
1417. 重新格式化字符串
给你一个混合了数字和字母的字符串 s,其中的字母均为小写英文字母。
请你将该字符串重新格式化,使得任意两个相邻字符的类型都不同。也就是说,字母后面应该跟着数字,而数字后面应该跟着字母。
请你返回 重新格式化后 的字符串;如果无法按要求重新格式化,则返回一个 空字符串 。
示例 1:
输入:s = "a0b1c2"
输出:"0a1b2c"
解释:"0a1b2c" 中任意两个相邻字符的类型都不同。 "a0b1c2", "0a1b2c", "0c2a1b" 也是满足题目要求的答案。
示例 2:
输入:s = "leetcode"
输出:""
解释:"leetc... | [
"yangfengling@inttech.cn"
] | yangfengling@inttech.cn |
0059464b678f8e16b2e96c80cd25d1b9d0b3a818 | dcd6c0464c742b466d8e7e6e470f7c96cb5c8404 | /tests/test_models.py | 8dc65a2ecf040786496319436c3aa409026a2df2 | [
"MIT"
] | permissive | pyung/pyung-bot | efbe6a0277d518af6a92dfbeb3ad62cc07ac47e6 | 8c4daadca7d9208af1e357e65a63bb247e7a0fd6 | refs/heads/master | 2023-02-05T22:28:03.250199 | 2017-09-04T10:47:51 | 2017-09-04T10:47:51 | 101,847,971 | 5 | 3 | null | 2023-02-02T02:22:37 | 2017-08-30T06:53:17 | Python | UTF-8 | Python | false | false | 1,067 | py | # -*- coding: utf-8 -*-
"""Model unit tests."""
import datetime as dt
import pytest
from bot.models import UserModel
from .factories import UserFactory
@pytest.mark.usefixtures('db')
class TestUser:
"""UserModel tests."""
def __int__(self):
self.user = UserModel(username='foo', facebook_id='JFDBJFKJ... | [
"lwahab@terragonltd.com"
] | lwahab@terragonltd.com |
aa20c46e76787d35ff18261c030c09461b02f121 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2387/60835/273945.py | aced5b9a81c26c48401a4f3a78093eb94c8c58ce | [] | 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 | 614 | py | n = input().split(' ')
tem = input().split(' ')
group = []
for x in tem:
group.append(int(x))
def sort(mark,group,start,end):
new = []
for x in range(start):
new.append(group[x])
tem = []
for x in range(start,end + 1):
tem.append(group[x])
if mark == 1:
tem.sort(reverse =... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
6ab545016e2643c195106a4ff5b177907c5a6e09 | 9cb1cd306af59641242d0947d552fcb2bb9dff48 | /DFS/LetterCombination/letterCombinations.py | 9ac5697f431c5bab9602868bae774b34988954d4 | [] | no_license | realfan-1s/LeetcodeMedium | 502b76073ba4a85336a4c68a812ab3cd67db6c1a | 007772c2de4f9701fc190649f5f99fc86645653a | refs/heads/master | 2023-03-08T15:20:33.540193 | 2021-02-25T11:22:34 | 2021-02-25T11:22:34 | 310,271,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | class Solution:
def letterCombinations(self, digits: str) -> list[str]:
"""
state = {}
for 每个数字
for 当前数字的备选字母
for state中的所有字符串
"""
if not digits:
return []
char = {
"2": "abc",
"3": "def",
"4... | [
"you@example.com"
] | you@example.com |
8cfbfe484a470177c8bfdeeef27435a79a2312f2 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v7_2_0/rbridge_id/vrf/address_family/ipv6/unicast/ipv6/route/link_local_static_route_nh_vrf/__init__.py | 472226e4e315d912773a480ac9bfc5f0585deb81 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,528 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
444c35ac566225033ebfa4b6189c90f3c1391f0d | aefe324f24cf35fbc8d6489cd1b6d0f412d66c21 | /tensor2tensor/envs/env_problem.py | 4d7312001175cac915a00a197c2b6afba8dd50d0 | [
"Apache-2.0"
] | permissive | kpe/tensor2tensor | 0118066513796076a115fd288f92b28e149437d3 | 453c473030c354a3d9a4c27b12bcec8942334bf4 | refs/heads/master | 2020-04-07T12:40:54.564536 | 2019-03-02T01:23:20 | 2019-03-02T22:17:30 | 158,376,698 | 0 | 0 | Apache-2.0 | 2018-11-20T11:10:41 | 2018-11-20T11:10:40 | null | UTF-8 | Python | false | false | 26,269 | py | # coding=utf-8
# Copyright 2019 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"kpe.git@gmailbox.org"
] | kpe.git@gmailbox.org |
13799cf17d33095957582c3812424fd523e441db | a2b20597759990445081057d35d113434cfcf970 | /client/commands/tests/validate_models_test.py | a8666165c88b3bf6444499ea7e8584f3ca2e4ee7 | [
"MIT"
] | permissive | facebook/pyre-check | 34059599c02b65605c574f13555229f3b931fd4e | fe8ccedc572cc1faa1fd01e9138f65e982875002 | refs/heads/main | 2023-09-03T19:10:11.587028 | 2023-09-02T07:40:35 | 2023-09-02T07:40:35 | 110,274,488 | 6,703 | 575 | MIT | 2023-09-13T17:02:32 | 2017-11-10T17:31:36 | OCaml | UTF-8 | Python | false | false | 3,403 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import tempfile
from pathlib import Path
from typing import Iterable
import testslide
from ... import error
from ...tests import setup
fr... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7516f69a5a8fe6c9c8448a765d3fe4a9c107aa97 | 4d5f94dc96edc28d550b187fea51a89a8a5ba5f9 | /products/urls.py | fa90d6f997f8f59055bdc3b3374594a229c9025f | [] | no_license | curiousTauseef/Django-e-Commerce | f4c36c416150cef63d614739ae309542c33a8bb6 | 6221b83966c6a488fdd7c13a443bc58aee4b8d6f | refs/heads/master | 2022-09-17T23:49:28.406391 | 2019-09-18T20:40:32 | 2019-09-18T20:40:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.urls import path
from . import views
app_name = "products"
urlpatterns = [
path('', views.product_list, name="product_list"),
path('search/', views.product_search, name="product_search"),
path('<slug:category_slug>/', views.product_list, name="product_list_by_category"),
path('<int:id>/<sl... | [
"hunter.me33@gmail.com"
] | hunter.me33@gmail.com |
8a68a508379dd8060443a24b7f7a2b1a17e092b3 | 56ca0c81e6f8f984737f57c43ad8d44a84f0e6cf | /src/api_v1/viewsets/wydawnictwo_zwarte.py | 149ec9f93aa0690b4c54f0cb5eef4ef276a631c9 | [
"MIT"
] | permissive | iplweb/bpp | c40f64c78c0da9f21c1bd5cf35d56274a491f840 | a3d36a8d76733a479e6b580ba6ea57034574e14a | refs/heads/dev | 2023-08-09T22:10:49.509079 | 2023-07-25T04:55:54 | 2023-07-25T04:55:54 | 87,017,024 | 2 | 0 | NOASSERTION | 2023-03-04T04:02:36 | 2017-04-02T21:22:20 | Python | UTF-8 | Python | false | false | 1,734 | py | import django_filters
from rest_framework import viewsets
from api_v1.serializers.wydawnictwo_zwarte import (
Wydawnictwo_Zwarte_AutorSerializer,
Wydawnictwo_Zwarte_StreszczenieSerializer,
Wydawnictwo_ZwarteSerializer,
)
from api_v1.viewsets.common import StreszczeniaPagination, UkryjStatusyKorektyMixin
f... | [
"michal.dtz@gmail.com"
] | michal.dtz@gmail.com |
a83aab597ed8bf5e1610509dc583359cfe24419b | d170dbc754cca63e712284294b6286065fec6df5 | /fa/jquery/templates/forms/grid_readonly.pt.py | b8f5c9ddf818f5fb82df182b35c22af904fa88f1 | [] | no_license | FormAlchemy/fa.jquery | 3d2ba746a1631db32d2f83fba7c6ae9b75bb312f | 8aa4686c66cf8612fd4a5c2e7fc34e29cb8b606f | refs/heads/master | 2016-09-06T06:03:12.277972 | 2013-10-10T08:46:36 | 2013-10-10T08:46:36 | 1,256,529 | 9 | 12 | null | 2017-12-21T08:05:22 | 2011-01-15T00:55:19 | Python | UTF-8 | Python | false | false | 6,720 | py | registry = dict(version=0)
def bind():
from cPickle import loads as _loads
_lookup_attr = _loads('cchameleon.core.codegen\nlookup_attr\np1\n.')
_init_scope = _loads('cchameleon.core.utils\necontext\np1\n.')
_re_amp = _loads("cre\n_compile\np1\n(S'&(?!([A-Za-z]+|#[0-9]+);)'\np2\nI0\ntRp3\n.")
_attrs_... | [
"gael@gawel.org"
] | gael@gawel.org |
8c9bbfed05ed414de0f197dc3ff61ace430ae285 | 64f2cf35260ffd84e2bd53d2e610e372ce273e65 | /urls.py | adbe8d32f559d2a393e401583b7d87795c2996f6 | [] | no_license | mjumbewu/apps4septa | 5348988520aede3e079ba13b8d56006be6c45d26 | 0625b970d86adc5efde7f3aae4bd4c03a702e19d | refs/heads/master | 2020-06-06T05:24:47.378230 | 2011-10-10T20:31:50 | 2011-10-10T20:31:50 | 2,537,885 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from django.conf.urls.defaults import patterns, include, url
from septa.views import MapApp
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'tutorial.views.home', name='home'),
# url(r'^tutor... | [
"mjumbewu@gmail.com"
] | mjumbewu@gmail.com |
9114e03038fcfd377ee31175f40e568af8922707 | 71e8bdddd84338bbb2d77934351d76251c2fd77d | /power-of-three.py | bddf8a996aeecc1d9fa39bfd2bf0a3758e1f32c0 | [] | no_license | onestarshang/leetcode | 3da20fbec1b42d3565eb95a64ea3f30c29f1e1eb | 0a7aa09a2b95e4caca5b5123fb735ceb5c01e992 | refs/heads/master | 2021-01-09T06:00:06.018037 | 2016-12-17T16:17:49 | 2016-12-17T16:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | '''
https://leetcode.com/problems/power-of-three/
Given an integer, write a function to determine if it is a power of three.
Follow up:
Could you do it without using any loop / recursion?
'''
class Solution(object):
def isPowerOfThree(self, n):
"""
:type n: int
:rtype: bool
"""
... | [
"irachex@gmail.com"
] | irachex@gmail.com |
22ce2f7fc76e3c047da0e14e929b59ad572774c7 | 4266e9b1c59ddef83eede23e0fcbd6e09e0fa5cb | /vs/gyp/test/mac/gyptest-xcode-gcc.py | 2a8f3cebbb85f9ef6ba116433baa7f7bcc60e671 | [
"BSD-3-Clause"
] | permissive | barrystudy/study | b3ba6ed652d1a0bcf8c2e88a2a693fa5f6bf2115 | 96f6bb98966d3633b47aaf8e533cd36af253989f | refs/heads/master | 2020-12-24T14:53:06.219236 | 2017-10-23T02:22:28 | 2017-10-23T02:22:28 | 41,944,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | #!/usr/bin/env python
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that xcode-style GCC_... settings are handled properly.
"""
import TestGyp
import os
import sys
def IgnoreOut... | [
"2935973620@qq.com"
] | 2935973620@qq.com |
892acdc6ac1b191918017d3860c774dd40733777 | d4c47276c8fbd15240aa228eda04ee8e338caf02 | /Kivy/Kivy Lesson/First/Dentaku.py | 1e7fa1038b38a0276a37dd677a1e8e6d8bfebe1c | [] | no_license | developer579/Practice | a745384450172fb327913c130303ab76492096f1 | 54084468af83afcc44530e757800c8c3678147c1 | refs/heads/main | 2023-05-06T01:36:06.222554 | 2021-06-02T07:04:03 | 2021-06-02T07:04:03 | 324,312,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | from kivy.app import App
class Practice6App(App):
pass
Practice6App().run() | [
"69954570+developer579@users.noreply.github.com"
] | 69954570+developer579@users.noreply.github.com |
b5e09dfd89df916d3c58342c2d373a5cbd8589a3 | 0b4957de738dd05f964ea838016b4b811feca970 | /ultron8/persistence/__init__.py | 805ce6423a2fe9cae354a835ca6fba2d3541a356 | [
"MIT",
"Apache-2.0"
] | permissive | bossjones/ultron8 | bdb5db72ba58b80645ae417cdf97287cfadd325d | 09d69c788110becadb9bfaa7b3d2a2046f6b5a1c | refs/heads/master | 2023-01-13T06:52:45.679582 | 2023-01-03T22:25:54 | 2023-01-03T22:25:54 | 187,934,920 | 0 | 0 | Apache-2.0 | 2023-01-03T22:25:56 | 2019-05-22T00:44:03 | Python | UTF-8 | Python | false | false | 53 | py | """Module that deals with writing things to disk."""
| [
"noreply@github.com"
] | bossjones.noreply@github.com |
a3b4d451441dfd916ec6bfff786b28942b9ac446 | 2c6f77b281ee9c901a788b5617f26e73a3732762 | /chapter5/C-5.18.py | b62f517c5f39649aaea54a4e5a241cfba97c8fd8 | [] | no_license | Boberkraft/Data-Structures-and-Algorithms-in-Python | 5db8ff814f4e954aca6701fabcc70900fe7012ff | 60a5ef54f9cffb4dcdd3fc494cfeeb662d570ae9 | refs/heads/master | 2021-01-20T06:05:29.552453 | 2018-10-28T19:06:55 | 2018-10-28T19:06:55 | 89,841,233 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | """
Give a formal proof that any sequence of n append or pop operations on
an initially empty dynamic array takes O(n) time, if using the strategy
described in Exercise C-5.16.
Array shrinking takes O(n), and the array shrinks always at the starting point where
an ressizing before started(n), still leaving place for a... | [
"andrzej.bisewski@gmail.com"
] | andrzej.bisewski@gmail.com |
940631e63eeb54eb3726672b52bd907d1418909b | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-5248.py | b69f74a06899c5154f7c293dcd9f09401b24c058 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,755 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
cfbefdf00a9101c98ba7cd5003f4a650c209ba84 | 597472eaaea7c02b314bae99e3ce6b47c30651f7 | /list_jobs/migrations/0001_initial.py | dd7fdbd8e3888a7d539642ed9d4c61343095bc37 | [] | no_license | fazer1929/ablejobs_task | 6aba48db67299160c8e166cd6df84beeca3feac1 | 9c12817ce1e77bb69551d31e6ba4e613d34d75fe | refs/heads/main | 2023-08-06T11:01:10.411649 | 2021-09-26T12:25:35 | 2021-09-26T12:25:35 | 410,387,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,778 | py | # Generated by Django 3.2.7 on 2021-09-25 20:35
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"abhishekagrawal8888@gmail.com"
] | abhishekagrawal8888@gmail.com |
7a36f0a46424ece33a061e227fd307d566efdda2 | 38c10c01007624cd2056884f25e0d6ab85442194 | /third_party/chromite/cbuildbot/archive_lib_unittest.py | 96dc2c7f6ebdf221e6ac989149b7bb4f489f25d2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 8,029 | py | # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Test the archive_lib module."""
from __future__ import print_function
import mock
from chromite.cbuildbot import archive_lib
from chromite.cbuil... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
c62f4804e5f3aa430c5e0f86bc95081044b166ee | d6cf604d393a22fc5e071a0d045a4fadcaf128a6 | /AGC/041/041_B.py | fcb6fffb919e3eea2a202df01938fc155e5d78ff | [] | no_license | shikixyx/AtCoder | bb400dfafd3745c95720b9009881e07bf6b3c2b6 | 7e402fa82a96bc69ce04b9b7884cb9a9069568c7 | refs/heads/master | 2021-08-03T21:06:45.224547 | 2021-07-24T11:58:02 | 2021-07-24T11:58:02 | 229,020,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,031 | py | import sys
from collections import defaultdict
from collections import deque
'''
First Try
Not Accept
'''
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
N, M, V, P = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
NUM = [0] * N
ACN = [0] * N
c... | [
"shiki.49.313@gmail.com"
] | shiki.49.313@gmail.com |
5c2cc23d9535a85d2ec729454518ba32fa3ba8b5 | a5f12f7c306eb397858b5f2e196358c91cb7561e | /external/xlsxwriter/xlsxwriter/test/comparison/test_set_column08.py | 7b809330b3fa1e81c490ea6a3c56eb45c5d7b629 | [
"BSD-2-Clause-Views"
] | permissive | guduhanyan/QRSdetection | adb17074df98246aa5ed99c99bc5ab987073f8f7 | 32a0f20a4382165f0ed312c8b6e7db24da0a90a2 | refs/heads/master | 2021-01-14T00:37:11.182756 | 2014-07-27T18:39:54 | 2014-08-02T10:58:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,327 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013, John McNamara, jmcnamara@cpan.org
#
import unittest
import os
from ...workbook import Workbook
from ..helperfunctions import _compare_xlsx_files
class TestCompareXLSXFiles(u... | [
"kostic.dusan1990@gmail.com"
] | kostic.dusan1990@gmail.com |
1ffa275c62badab7d0c33686a2363377bcc1e48b | d21f82ada44189bfc36ebed7231983a8bc76145e | /service/views.py | 6ba44c248eba7f116a80c86e0bc1f9ff435b2edf | [] | no_license | Riyam224/cars | febbdfa992a99c34e22eae8955ceb2c2540fc607 | 7e30bb5d1268c16a18c65592fd5ba66ba0c569da | refs/heads/main | 2023-07-22T18:50:56.489188 | 2021-09-02T17:46:12 | 2021-09-02T17:46:12 | 402,503,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | from django.shortcuts import render
# Create your views here.
from django.shortcuts import render , get_object_or_404
# Create your views here.
from django.http import HttpResponse
from .models import Car
def index(request):
cars = Car.objects.all()
context = {
'cars': cars,
}
return render(... | [
"riyamtechcampus@gmail.com"
] | riyamtechcampus@gmail.com |
23f4508e5dba6967b7b80a240bf16fbffada092a | 76519be4b8b36270eb91e03d4779f7f1469d4e2e | /Python/myEnvironments/djangoEnv/lib/python2.7/site-packages/decorator.py | aa09566397936fb2dc1255198ea688994d32f7f4 | [] | no_license | vinvivo/codingDojoWerk | 4c99c2b155a934e54cc5532b1aa70d7bf186edbf | 540caa624e89f71f93e05eef88ead04f830aed15 | refs/heads/master | 2020-04-05T13:41:16.361098 | 2017-09-20T23:49:21 | 2017-09-20T23:49:21 | 94,947,946 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,085 | py | # ######################### LICENSE ############################ #
# Copyright (c) 2005-2017, Michele Simionato
# All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# Redistributions of so... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
a99085074a303cc0e0b567bc44f75e962d8511ed | 6ca9a7ed179ed96857c86dd91d5f81ad07be4690 | /KnowledgeMapping/PIL_OpenCV_Exp/opencvCode/23-图像梯度.py | 94137f5f26e33a3eb1413baf643423d9f47aed19 | [
"MIT"
] | permissive | nickliqian/keep_learning | ede172048cb1473013aa506a943ebe0c7c416065 | be120ce2bb94a8e8395630218985f5e51ae087d9 | refs/heads/master | 2021-04-25T18:23:47.808870 | 2020-07-31T09:52:20 | 2020-07-31T09:52:20 | 108,302,688 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | import cv2
import numpy
from matplotlib import pyplot as plt
img = cv2.imread('48.jpg', 0)
laplacian = cv2.Laplacian(img, cv2.CV_64F)
sobelx = cv2.Sobel(img, cv2.CV_64F, 1, 0, ksize=5)
sobely = cv2.Sobel(img, cv2.CV_64F, 0, 1, ksize=5)
plt.subplot(2, 2, 1), plt.imshow(img, cmap='gray')
plt.title('original'), plt.xtic... | [
"nickliqian@outlook.com"
] | nickliqian@outlook.com |
1838a0ec8a3f58a030198569eb2c31f2c7e5421f | 2a231e5b4636898578229fea09288b1d34026ab5 | /app/education/admin.py | 75fa360ee837a6ad4e4d34df48d6ad26ffb69f23 | [] | no_license | zehye/fastcampus_test | 95420a681b80d168aa265f06ed6dda5d2ed4037d | 520c434eca475ef6490868b3fbf11dd310128480 | refs/heads/master | 2022-12-15T00:05:11.692199 | 2018-06-11T05:02:58 | 2018-06-11T05:02:58 | 136,866,993 | 0 | 0 | null | 2022-12-08T02:13:22 | 2018-06-11T02:54:23 | Python | UTF-8 | Python | false | false | 147 | py | from django.contrib import admin
from .models import School
from .models import Student
admin.site.register(School)
admin.site.register(Student)
| [
"zehye.01@gmail.com"
] | zehye.01@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.