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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36969d424f08e5d04a86eb5d2b92bcdee5857471 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/bleach/sanitizer.pyi | 5985b82f7cff9a9bc9aeed52c06537ad938744f2 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | pyi | /home/runner/.cache/pip/pool/d7/e7/3f/5aebc314311520dc92b9912e681abf45f6237fb515ef86fda6afb5e584 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
c33efb9b294913ee7c0aaf0b4a477a1f9f6da1a0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04031/s911055242.py | 2a1826d064d99651357766b4f3af57ce3138f525 | [] | 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 | 163 | py | N=int(input())
*A,=map(int,input().split())
mx=max(A)
mn=min(A)
ans=float('inf')
for i in range(mn,mx+1):
ans=min(ans, sum([(k-i)**2 for k in A]))
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1f4558a5b374477c18f6a0f04940c2e603d2344e | 0c1e0e5bda62ef78ad08bfea4806677bacaa89fd | /handlers/handlers/pattern.py | c52e35f756a1173211061def2c25ccd9fc5c51f1 | [
"BSD-3-Clause"
] | permissive | adammck/rapidsms-contrib-apps-dev | fb9d47e94e562c03053229fc8226002ba29994cf | b6ef8c9c3726ca0b706b984b93342e24c62fd430 | refs/heads/master | 2020-12-24T21:36:25.118552 | 2010-06-16T17:59:37 | 2010-06-16T17:59:37 | 722,199 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
import re
from .base import BaseHandler
class PatternHandler(BaseHandler):
@classmethod
def _pattern(cls):
if hasattr(cls, "pattern"):
return re.compile(cls.pattern, re.IGNORECASE)
@classmethod
def dispatch(cls, router, msg):
... | [
"adam.mckaig@gmail.com"
] | adam.mckaig@gmail.com |
36bd81137e33b4e9f60e2937e945148dc44496cd | 6ec2f30240a7a28e6e2cc0472a4553eb02af983e | /tests/orm/relations/test_has_many.py | a61ca0fbcde7e8768103cf6528cb1471d5f29a20 | [
"MIT"
] | permissive | KarthickNamakkalKrishnan/eloquent | 9d2bbd4af50958eea88e04820bbeeb16cff822f2 | 0638b688d5fd0c1a46b7471dd465eeb4c2f84666 | refs/heads/master | 2020-03-27T13:23:07.091643 | 2015-05-24T18:41:58 | 2015-05-24T18:41:58 | 146,605,953 | 0 | 1 | MIT | 2018-08-29T13:42:50 | 2018-08-29T13:42:49 | null | UTF-8 | Python | false | false | 9,435 | py | # -*- coding: utf-8 -*-
import arrow
from flexmock import flexmock, flexmock_teardown
from ... import EloquentTestCase
from eloquent.query.builder import QueryBuilder
from eloquent.query.grammars import QueryGrammar
from eloquent.query.expression import QueryExpression
from eloquent.orm.builder import Builder
from e... | [
"sebastien.eustace@gmail.com"
] | sebastien.eustace@gmail.com |
9e153351e31534753951fd99189961e27ffe9bac | 53181572c4b22df4b569a9901bcd5347a3459499 | /ceit_191221/py200509_zhou/module_app.py | 7dd4e30336f697cc8816410ec7f0136415944b69 | [] | 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 | 432 | py | """
"""
import math
import ceit_191221.py200509_zhou.module_arithmetic as arithm
import ceit_191221.py200509_zhou.module_logic as logic
print(math.sqrt(36))
print(math.e)
print("=== test arithmetic module ===")
print(arithm.add(1,2))
print(arithm.sub(1,2))
print(arithm.PI)
print(arithm.e)
print("=== test logic mo... | [
"inf.athensoft@hotmail.com"
] | inf.athensoft@hotmail.com |
cfcb1f1d9d54c9b98db16f1e70bb0452ad49661b | 61747f324eaa757f3365fd7bf5ddd53ea0db47d1 | /casepro/contacts/migrations/0012_field_is_visible.py | 2d3bc7e266cf8daf0d1229fddf9e9e442fa74db0 | [
"BSD-3-Clause"
] | permissive | BlueRidgeLabs/casepro | f8b0eefa8f961dd2fdb5da26a48b619ebc1f8c12 | 8ef509326f3dfa80bb44beae00b60cc6c4ac7a24 | refs/heads/master | 2022-01-24T09:01:18.881548 | 2017-12-05T18:46:05 | 2017-12-05T18:49:42 | 113,502,588 | 0 | 0 | null | 2017-12-07T21:57:37 | 2017-12-07T21:57:37 | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contacts', '0011_migrate_suspend_groups'),
]
operations = [
migrations.AddField(
model_name='field',
... | [
"rowanseymour@gmail.com"
] | rowanseymour@gmail.com |
a00d084afd5b74ce9fe9afdb606d0f19d08dae62 | ae56a9df49059c785e10e34b55ea827616950940 | /progress/models/iteration.py | a0aa1b0e5b1fbf251d3b81df0f97f7e397d834cd | [] | no_license | robinharms/Progress | 04a7ccc11f44378209b3492fad34e79ad7dc9e9a | ff31ed3a4a67e831636668d326d7218e0ff0e4b8 | refs/heads/master | 2021-01-15T13:11:27.267833 | 2011-11-13T15:49:06 | 2011-11-13T15:49:06 | 2,527,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from betahaus.pyracont import BaseFolder
from betahaus.pyracont.decorators import content_factory
from zope.interface import implements
from progress import ProgressMF as _
from progress.models.interfaces import IIteration
@content_factory('Iteration')
class Iteration(BaseFolder):
""" Iteration. """
implemen... | [
"robin@betahaus.net"
] | robin@betahaus.net |
2c8d4504af1d3a0bc4d263d58de39cbe265e4b23 | b8856b7ec201fad5621593f93b7a8d9844276234 | /models/warmtune_model.py | be3ba4b483ec8605ebee81059f2cb3e11f422ceb | [] | no_license | wangjianbing1998/RLLL | cbb2e7724e9a140115e70886b39423a7002e1715 | 413c83effe8dd60de756362b854fcab978fe530c | refs/heads/master | 2023-06-03T09:29:18.165851 | 2021-06-21T08:35:59 | 2021-06-21T08:35:59 | 336,836,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | from losses import create_loss
from models.base_model import BaseModel
from networks import create_net
class WarmtuneModel(BaseModel):
@staticmethod
def modify_commandline_options(parser):
"""Add new dataset-specific options, and rewrite default values for existing options.
num_classes is th... | [
"2553627958@qq.com"
] | 2553627958@qq.com |
e30064cad618b7334b32d7eca60aab02f3fda11c | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/4c03abfcd6c043968b6580de192f54d9.py | 960f45654af9d4c711d83ebf96542fe63d2a5e97 | [] | 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 | 472 | py | # -*- coding: utf-8 -*-
def hey(userString):
"""
Takes a string, and returns a string that represents Bob's reply.
Args:
userString (string): a valid string.
Returns:
string: Bob's reply.
"""
if not userString or userString.isspace():
return "Fine. Be that way!"
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
bc3619e0f18ea5c12a6981707fbeecc720133446 | 8b675ca56bae3a1b622eff991f8786963712d12f | /notebooks/python/modis_level1b_read.py | 3f3dc7eeb0c02f4249650ee94fb5e45816ee16c8 | [
"MIT"
] | permissive | KayhanB21/a301_code | b4dd7d8bdb2a4170211965abee707f48da4cbb23 | 4237b4e538bd999f5ac1b20f6b25b4c4e03bb09c | refs/heads/master | 2021-09-23T14:39:14.333193 | 2018-09-24T19:44:50 | 2018-09-24T19:44:50 | 150,385,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,399 | py |
# coding: utf-8
# <h1>Table of Contents<span class="tocSkip"></span></h1>
# <div class="toc"><ul class="toc-item"><li><span><a href="#Introduction" data-toc-modified-id="Introduction-1"><span class="toc-item-num">1 </span>Introduction</a></span></li><li><span><a href="#Reading-modis-data" data-toc-modified... | [
"paustin@eos.ubc.ca"
] | paustin@eos.ubc.ca |
e830b157069bcfde9667a89f80d9fb613801e550 | a44d63a9bf64b2206849fa152d9202c62ccb4ec1 | /apistar/commands/__init__.py | a5e5204ad1311634ada06fae30517f57d0b78dd9 | [
"BSD-3-Clause"
] | permissive | hjwp/apistar | 9df7240322eebe43f6eee1e7be397f1105882d5c | cc1dba1721bcaf678d1a6f5631ec3bab2211b3cd | refs/heads/master | 2021-01-18T23:05:25.155566 | 2017-04-03T15:13:50 | 2017-04-03T15:17:32 | 87,088,116 | 1 | 0 | null | 2017-04-03T15:12:26 | 2017-04-03T15:12:26 | null | UTF-8 | Python | false | false | 84 | py | from apistar.commands.base import new, run, test
__all__ = ['new', 'run', 'test']
| [
"tom@tomchristie.com"
] | tom@tomchristie.com |
9b6e80564dc6b5b1ea505ca4a5332edb4a1f7e84 | 13e16bf7e622abd858594bff8a4f3e3616700817 | /python/ccxt/async_support/hbtc.py | a963c1b4723a5e581d817db4d98585614192c749 | [
"MIT"
] | permissive | TelosGlobal/ccxt | de58effbe7fc100df1fb86d95bed4af900d0ce5b | afabfa2992ed68b1604e2775d462fc05c298396f | refs/heads/master | 2023-04-07T03:15:21.633396 | 2021-04-09T17:13:20 | 2021-04-09T17:13:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,433 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
import hashlib
from ccxt.base.errors import ExchangeError
from ccxt.base.errors impor... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
6c30cc83abc164f84e868bcf6a78c763b1a44126 | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/522.最长特殊序列II.py | a9659fcabb96a178be129f0563ca29356f5c0718 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 522.最长特殊序列II.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
1c7f31793ca39ebee732df11958237c8047a2673 | 97e534b26a76bf0d954e166841179979748bcfa2 | /objects/migrations/0053_claim.py | d7a2ba564d665e051111a4877f2f93d1ea61ffae | [] | no_license | mehdi1361/http_server | 3a8bd73ce44307ee2b7761d1211671ca8cb0f3ba | d8a962c55165ef0237bfb26d27d9cfa11a415a5d | refs/heads/develop | 2022-12-11T00:44:11.089407 | 2019-01-20T12:02:48 | 2019-01-20T12:02:48 | 166,656,299 | 0 | 0 | null | 2022-12-07T23:53:22 | 2019-01-20T12:02:05 | HTML | UTF-8 | Python | false | false | 1,519 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-27 07:15
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('objects', '0052_a... | [
"mhd.mosavi@gmail.com"
] | mhd.mosavi@gmail.com |
443c3d059b335a119f3da8698934ed9e86c8a915 | 0c68c989a8473801743c4f2d2087c223b2fd47fa | /2020_hashcode/practice/pizza.py | 97016dd9bdb9f3d6de66d64c983e089b25e4c9ef | [] | no_license | tabletenniser/Google_code_jam | 4a105e8e9bc27269430a1c90f4c7a59a4d4bc7a1 | 1c300e3b953e2e744a2c3bb963b5d2f46f9caee1 | refs/heads/master | 2021-06-12T22:10:23.675590 | 2021-03-27T22:25:06 | 2021-03-27T22:25:06 | 179,803,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | def get_opt_solution(max_slices, pizza_slices):
types_of_pizzas = len(pizza_slices)
prev_dp_table = [0 for _ in range(max_slices)]
prev_solution_table = [list() for _ in range(max_slices)]
for i in range(types_of_pizzas):
dp_table = [0 for _ in range(max_slices)]
solution_table = [list(... | [
"tabletenniser@gmail.com"
] | tabletenniser@gmail.com |
1a47559dd1499bafa8598161835aa02a0e49cf0b | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/program/util/ProgramDiffFilter.pyi | d2835f42e1b5c7c90b7f8965f54c4cbdb0b67b07 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,593 | pyi | from typing import List
import ghidra.program.util
import java.lang
class ProgramDiffFilter(object):
"""
The ProgramDiffFilter is used when determining or working with
differences between two programs.
It indicates the types of program differences we are interested in.
Each difference type can ... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
de767a446ec4679f03d7c8f8350383eb74a5ea8e | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/OEFModel/Classes/AWeg.py | fdc3b0800ca5134a20c84931626c320d54719df4 | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 325 | py | # coding=utf-8
from OTLMOW.OEFModel.EMObject import EMObject
# Generated with OEFClassCreator. To modify: extend, do not edit
class AWeg(EMObject):
"""Wegen : A-weg"""
typeURI = 'https://lgc.data.wegenenverkeer.be/ns/installatie#AWeg'
label = 'Autosnelweg'
def __init__(self):
super().__init_... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
8e9d4e496e365e8cebd9c1fcdd4d5915c6a06d19 | b8e29b6e957b0a55571f7cffc4357666a43fb56e | /mxnet/insightface/insightface/src/data/glint2lst.py | 60f7cbea9faa5f680ca985c8d7ed8ea79d00d8a4 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | aliyun/alibabacloud-aiacc-demo | b9bbe565021757ecaea0e7d7209632cbdb5cc8ab | 2e49deeb38d12d4af4c5e50bb15d731c4bbf4cf1 | refs/heads/master | 2023-05-14T08:09:33.067050 | 2023-05-04T08:19:51 | 2023-05-04T08:19:51 | 228,604,743 | 38 | 14 | Apache-2.0 | 2022-06-22T02:41:01 | 2019-12-17T11:46:44 | Python | UTF-8 | Python | false | false | 1,158 | py |
import sys
import os
import numpy as np
input_dir = sys.argv[1]
targets = sys.argv[2]
targets = targets.strip().split(',')
lmap = {}
for ds in targets:
#image_dir = os.path.join(input_dir, ds)
lmk_file = os.path.join(input_dir, "%s_lmk"%(ds))
if not os.path.exists(lmk_file):
lmk_file = os.path.join(input_d... | [
"ziqi.yzq@alibaba-inc.com"
] | ziqi.yzq@alibaba-inc.com |
e85086b27f26e7ad3ddf0dcd9b1299ef6799cbcc | 169d809f45dedcaa3c7b1b49912d8b025abe18d9 | /factors.py | 6f66a11e8dd9fcecc3dbd419474103c0e3974875 | [] | no_license | bermec/challenges | 8a82d1d38d1ed1a0fc3f258443bc0054efc977a6 | 9fb092f20f12b4eaa808e758f00f482a49346c88 | refs/heads/master | 2021-10-08T05:05:56.803332 | 2018-12-08T00:20:20 | 2018-12-08T00:20:20 | 109,448,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | def factors(n):
lst = []
for x in range(1, n):
if n % x == 0:
lst.append(x)
return lst
def reduce_fraction(n, n2):
temp = 0
temp2 = 0
master_lst = []
master_lst2 = []
lst1 = (factors(n))
lst2 = (factors(n2))
master_lst.extend(lst1)
master_lst.extend(lst2... | [
"rog@pynguins.com"
] | rog@pynguins.com |
ce7ccdfe707353b7a81653921ba80ee0e0973723 | ea4e262f3dc18a089895fef08bedefc60b66e373 | /supervised_learning/0x0D-RNNs/5-bi_forward.py | ce1c6a1dd901ad3532e8ae1b7a72f5765d7c2bf5 | [] | no_license | d1sd41n/holbertonschool-machine_learning | 777899d4914e315883ba0c887d891c0c8ab01c8a | 5f86dee95f4d1c32014d0d74a368f342ff3ce6f7 | refs/heads/main | 2023-07-17T09:22:36.257702 | 2021-08-27T03:44:24 | 2021-08-27T03:44:24 | 317,399,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | #!/usr/bin/env python3
"""[summary]
Returns:
[type]: [description]
"""
import numpy as np
class BidirectionalCell:
"""[summary]
"""
def __init__(self, i, h, o):
"""[summary]
Args:
i ([type]): [description]
h ([type]): [description]
o ([type]): [de... | [
"1498@holbertonschool.com"
] | 1498@holbertonschool.com |
44680252265c4e7606a0c2ce3a626f198f9c5331 | fdcab1845d5f8b98e126d0e99c92fefdd426c850 | /experiments/pollen_met.py | f2c970387f18d9db8fba1f92490d566a51d312e1 | [
"MIT"
] | permissive | jjsanderson/DataBot | 197d9157be152ce679fd97f58557be7373b3f7f9 | 22d86b9bad2cd12bef735065a68619d114bfd6b1 | refs/heads/main | 2022-05-14T16:30:53.195429 | 2021-09-22T14:53:18 | 2021-09-22T14:53:18 | 187,226,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """Test retrieving pollen data from Met Office forecasts.
Replacing Bendadryl-sponsored service queried by pypollen module, as
that's proved unreliable in practice (just stops providing responses),
with no error.
"""
# Register with Met Office DataPoint service:
# https://www.metoffice.gov.uk/datapoint
from clientse... | [
"lists@quernstone.com"
] | lists@quernstone.com |
45fcc0bee0c3a2ecebf1f0434ab531597d3bf8fd | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class2981.py | fc7c0615444d12cc4ebb6913a25a09662303e053 | [
"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,244 | py | # qubit number=4
# total number=39
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
61508d630274d9f4fcd2da8ef98105c85249f470 | 60611d5c40a73c0b7f420ef825b0721d0f4f5cb5 | /autodata/spiders/edmunds_feature_spider.py | ff43dc4128dec959cc229fcd7ba4dfdd83e06b4d | [] | no_license | Miksztowi/AutomotiveData | 315047e5b32e04cba72387bf3a1c341140dceba7 | fd413ad3b5672cf0ccde809033122f4a0adca60e | refs/heads/master | 2021-01-15T11:57:37.896995 | 2017-08-25T09:27:50 | 2017-08-25T09:27:50 | 99,636,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,355 | py | # -*- coding:utf-8 -*-
import scrapy
import MySQLdb
import json
from autodata.items import EdmundsItem
import logging
import autodata.settings as settings
class EdmundsFeatureSpider(scrapy.Spider):
logger = logging.getLogger(__name__)
name = 'edmunds_feature_spider'
custom_settings = {
'CONCURRENT... | [
"binwengan@gmail.com"
] | binwengan@gmail.com |
15b03267a304db2a215fee50bb9987974ec5f0ce | 2f67ac3081bbb6ac190dd2b7ea981a6b510a42c7 | /projeto/produto/models.py | 53042281b04b8d6d2cd5d2471c753bc1fece286d | [] | no_license | jm0216/estoque | 2fec817336327a5088cd8ff43b786787475fa86f | 7a03bd61cade1e1056d2894a78afb37c4969715c | refs/heads/master | 2020-08-03T22:26:47.146230 | 2019-09-30T03:26:49 | 2019-09-30T03:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | from django.db import models
from django.urls import reverse_lazy
class Produto(models.Model):
importado = models.BooleanField(default=False)
ncm = models.CharField('NCM', max_length=8)
produto = models.CharField(max_length=100, unique=True)
preco = models.DecimalField('preço', max_digits=7, decimal_p... | [
"rg3915@yahoo.com.br"
] | rg3915@yahoo.com.br |
8424fb37043b1238fef3ebb6c071cfff717d5db1 | 75d8667735782cd1d0eb4877e52c89da5cd92dde | /nova/tests/unit/__init__.py | 545088bbe157e6cddd5b973e0d539e80500ae27d | [
"Apache-2.0"
] | permissive | bopopescu/nova-token | ffecfd3ec561936b7d9d7e691bc57383cde05436 | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | refs/heads/master | 2022-11-22T09:53:31.073483 | 2016-05-14T02:47:01 | 2016-05-15T22:02:55 | 282,105,621 | 0 | 0 | Apache-2.0 | 2020-07-24T02:42:19 | 2020-07-24T02:42:18 | null | UTF-8 | Python | false | false | 2,131 | py | begin_unit
comment|'# Copyright 2010 United States Government as represented by the'
nl|'\n'
comment|'# Administrator of the National Aeronautics and Space Administration.'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); ... | [
"dmg@uvic.ca"
] | dmg@uvic.ca |
031519f8b4369daea30a2504dbd50ad7e005a5e3 | 0db0d08edd59df7cd634b66e2786bc1a0eb52048 | /httprunner/built_in.py | 32bbb851741b0732ed712492e06b36eeaa448cbb | [
"MIT"
] | permissive | liuyihuicaicloud/HttpRunner | 8bbbb25c51bb04439e8350a8d4187368e0138d85 | 0e63747c395e27b5d5952446ca9a86dd5ce15b95 | refs/heads/master | 2020-03-18T22:57:41.799491 | 2018-03-27T09:28:22 | 2018-03-27T09:28:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,864 | py | """
Built-in dependent functions used in YAML/JSON testcases.
"""
import json
import datetime
import random
import re
import string
import time
from httprunner.exception import ParamsError
from httprunner.utils import string_type
def gen_random_string(str_len):
""" generate random string with specified length
... | [
"httprunner"
] | httprunner |
4f4d7086f94610330443c76fdfe29be17caf5e0f | e690fa7a2e622f3c187b0349b37bca8fc40b2801 | /problem.py | e22603401e65ec441aafabf357efa839ca6c5a7f | [] | no_license | davidpendergast/proof-that-p-equals-np | 058503e8357b92de76c0438b634bbe37655816f6 | f9f4a59c2215ecffc2c466ee23de10bdc6e6b066 | refs/heads/master | 2020-07-03T05:11:38.270370 | 2016-11-19T08:04:10 | 2016-11-19T08:04:10 | 74,195,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,314 | py | ALL_PROBLEMS = []
def add_to_list(prob):
ALL_PROBLEMS.append(prob)
return prob
class Problem:
def __init__(self, name, problem_input, verifier):
"""
Args:
name (string): Name of problem.
input (:obj:`list` of int): Inputs that will be fed to Programs.
ve... | [
"dlp75@case.edu"
] | dlp75@case.edu |
8deaca07f905b80cb87f8a8e613ca7cdf7d98a56 | 371889e50171ae59d1ca6bb4b8f88ceabf8e105e | /Fundamentals/DataTypesAndVariablesExercise/T01IntegerOperations.py | f6cf921351dbd14f125c716aa4684147964e1b68 | [] | no_license | RuzhaK/pythonProject | ca56c98df029896ca0658d5b2d103e21bbfeb71c | 1f2f05f071d0efd356996731831b375aa255bec3 | refs/heads/master | 2023-03-14T06:56:34.463786 | 2021-03-08T07:52:37 | 2021-03-08T07:52:37 | 343,766,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | a=int(input())
b=int(input())
c=int(input())
c=int(input()) | [
"rkaraatanasova@gmail.com"
] | rkaraatanasova@gmail.com |
c24eb7d9bd2351befb0b5c1422aba4adf9be007a | 0386aecc51ca70621598d892d33847f5ee1ff393 | /server/app.py | 5d82acd21bb11d15f5e823f85252bbc05f1cff0a | [] | no_license | scmmishra/noteblock-beta | f82f0e3347ad10262f8512ceea59e184b78549fb | 33b4ab54cc04ba8462ed26af65b1436571cc52a5 | refs/heads/master | 2020-04-29T18:24:43.195975 | 2019-03-21T05:37:27 | 2019-03-21T05:37:27 | 176,323,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,789 | py | from datetime import datetime
from flask import Flask, jsonify, request
import uuid
from flask_cors import CORS
# configuration
DEBUG = True
# instantiate the app
app = Flask(__name__)
app.config.from_object(__name__)
CORS(app)
NOTES = [{
"title": "Mumbai Hackathon",
"id": uuid.uuid4().hex,
"author": "Shivam ... | [
"scm.mymail@gmail.com"
] | scm.mymail@gmail.com |
73f02b54e142ca8847ebe4278f41f5c50c7b370a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03242/s879564820.py | 77ea389167a1e41f6fb3e2ee175b767be724c41a | [] | 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 | 140 | py | s = list(str(input()))
ans = ""
for i in range(3):
if s[i] == "1":
ans = ans + "9"
else:
ans = ans + "1"
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a8e6e4c4bbe79dc52bb7a9f7155614c35f8c84aa | 86162656dc87928c35ac73f8ab1b3475304557c7 | /arelle/examples/plugin/validateSchemaLxml.py | 16ba4a7e7cbc2edb499088729a072b7617abe3bb | [
"Apache-2.0"
] | permissive | lmsanch/Arelle | 7558037f191cce70d71695e3192420af48c6984f | 45a8f922695832990653ec230e3fd3ffe8d3e4fa | refs/heads/master | 2021-01-18T16:48:24.104496 | 2013-04-13T07:26:51 | 2013-04-13T07:26:51 | 9,717,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,109 | py | '''
Save DTS is an example of a plug-in to both GUI menu and command line/web service
that will save the files of a DTS into a zip file.
(c) Copyright 2012 Mark V Systems Limited, All rights reserved.
'''
import threading
from lxml import etree
def validateSchemaWithLxml(modelXbrl, cntlr=None):
class schemaResol... | [
"fischer@markv.com"
] | fischer@markv.com |
a80a43bf9df1f79df7c4d2f5247a091075e74414 | 97f38bc0dff9498c43d13f15f4b26000874a840f | /pysp/plugins/phboundextension.py | 3fb85820612be72973a048cca3e7bf3ad0e437e9 | [
"BSD-3-Clause"
] | permissive | tayucanjujieyihan/pysp | 2975330f3a7f1c2aa56d9a69be2bdd08a632d3e9 | 98dbc9f6d500b0b2485a89bb22813e6c51b64411 | refs/heads/main | 2023-05-06T17:33:07.306607 | 2021-05-26T22:44:28 | 2021-05-26T22:44:28 | 442,712,534 | 1 | 0 | NOASSERTION | 2021-12-29T08:43:26 | 2021-12-29T08:43:26 | null | UTF-8 | Python | false | false | 12,275 | py | # ___________________________________________________________________________
#
# Pyomo: Python Optimization Modeling Objects
# Copyright 2017 National Technology and Engineering Solutions of Sandia, LLC
# Under the terms of Contract DE-NA0003525 with National Technology and
# Engineering Solutions of Sandia, LLC,... | [
"jsiirola@users.noreply.github.com"
] | jsiirola@users.noreply.github.com |
a40ffcdf4abd0ed80e5920c73394506cb415f90e | f3b233e5053e28fa95c549017bd75a30456eb50c | /bace_input/L4D/4D-3K_wat_20Abox/set_2.py | 63587ba7792a0b793966efb059f21c70d4a63902 | [] | 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 | 738 | py | import os
dir = '/mnt/scratch/songlin3/run/bace/L4D/wat_20Abox/ti_one-step/4D_3K/'
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 lambd... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
68d772854072130cf95bf0eaa72dad9bbf69f7b9 | eb9da50f89a0ffaf6e46972f06abba05ea2e4132 | /footmark/ess/configuration.py | 582bbd055622fb2580b0cb41d110e411f12ca50c | [
"Apache-2.0"
] | permissive | alibaba/footmark | 0cf8e09ccf504541a3871e4026f8c7674e6c803c | bf698b5b4a0995dd84f81e7c4e9424cd9e120027 | refs/heads/master | 2023-03-12T21:15:09.244440 | 2022-07-18T08:09:18 | 2022-07-18T08:09:18 | 120,717,365 | 13 | 33 | Apache-2.0 | 2022-07-18T08:05:16 | 2018-02-08T05:52:28 | Python | UTF-8 | Python | false | false | 3,174 | py | """
Represents an ECS Instance
"""
from footmark.ess.essobject import TaggedESSObject
class ScalingConfiguration(TaggedESSObject):
"""
Represents an scaling configuration.
"""
def __init__(self, connection=None):
super(ScalingConfiguration, self).__init__(connection)
self.tags = {}
... | [
"guimin.hgm@alibaba-inc.com"
] | guimin.hgm@alibaba-inc.com |
0ebc946b6fbaa7618e2639c08e22675bae960431 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-3/4abe9ff1444f31e42faa13ab9b760f0384a691ee-<threshold_minimum>-bug.py | 82fe2af14cd0fabfd2d4bbd4fa3d7977f92ff5b0 | [] | 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 | 2,608 | py | def threshold_minimum(image, nbins=256, max_iter=10000):
'Return threshold value based on minimum method.\n\n The histogram of the input `image` is computed and smoothed until there are\n only two maxima. Then the minimum in between is the threshold value.\n\n Parameters\n ----------\n image : (M, N)... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
7620f9cf293949dd49959feab537b7f6f7f2e31e | 0ca41d628d7b34cc27487e889af62d1da17350bd | /openstack/network/v2/statuses.py | 99068d276846df3d3bbfeaa63cd46efe9f7b1250 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ArvinSong/huaweicloud-sdk-python | 9d5fcaf2ff93143de0e676a2fcc99f9a4b79fd9f | 227cd7f68a07974b16794c371f110d1927571fd0 | refs/heads/master | 2020-08-08T15:08:32.276961 | 2019-09-30T03:52:22 | 2019-09-30T03:52:22 | 213,855,251 | 1 | 0 | NOASSERTION | 2019-10-09T07:52:23 | 2019-10-09T07:52:23 | null | UTF-8 | Python | false | false | 1,186 | py | # -*- coding:utf-8 -*-
# Copyright 2018 Huawei Technologies Co.,Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | [
"769837173@qq.com"
] | 769837173@qq.com |
ffe67684bd72535366fe4685e80555f0e7c0ac0b | 32aa592fc3b7376b8fb36c0ac2245e6571fb7bdd | /datbase4.py | 0b901173cb7de7c8fc6d558bb3f096c56f52cca7 | [] | no_license | 1234567890boo/ywviktor | 00063a1c58b392cb4230791a9cffced6d2864889 | 12b18887243e9b64fb08db4ad440c7144bdf8cbb | refs/heads/master | 2022-05-14T12:43:43.422329 | 2022-04-30T04:24:05 | 2022-04-30T04:24:05 | 57,740,866 | 0 | 0 | null | 2020-06-29T00:22:12 | 2016-05-01T18:48:27 | Python | UTF-8 | Python | false | false | 129 | py | import sqlite3
conn=sqlite3.connect('sample4.db')
c=conn.cursor()
SELECT COUNT(studentid) FROM STUDENTS
conn.commit()
c.close()
| [
"you@example.com"
] | you@example.com |
ce596f62fcc6f217f7ff9a62753caafb1dedf83c | e423c84898f3fbb1e43c49475aedad0d6547c22f | /tensorflow/python/keras/distribute/dataset_creator_model_fit_test_base.py | 371b154447c68c0073caf1758a97f3daf509fc5f | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | yash982000/tensorflow | 9a9cfd1433bae84a5f197c20f5d3526883f781a2 | 0d09ce8fc82d8eaf9734bd50ea5f0bf739be766c | refs/heads/master | 2023-05-09T07:35:24.800146 | 2021-05-31T16:15:35 | 2021-05-31T16:15:35 | 358,957,873 | 1 | 0 | Apache-2.0 | 2021-05-31T16:15:36 | 2021-04-17T18:50:16 | null | UTF-8 | Python | false | false | 7,420 | py | # Lint as: python3
# Copyright 2021 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 requ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5201444f1f49e41e337b827110bb30274cc8a6e4 | 633f28bc4f1aa3954e33ccea95a935d46e103024 | /src/tests/plugins/test_ticketoutputpdf.py | 088a5ac545801e6893c3aaafb10e4ae06bf82aff | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | sha2017/pretix | 442ebbf33938ccc9d03e89bb2bbd67b576a0d4f6 | dcd6f2d8d12f69d68f18fb9b1b6fe8927d60bfe9 | refs/heads/master | 2020-12-24T09:53:31.542612 | 2016-10-21T08:49:09 | 2016-10-21T08:49:09 | 68,192,732 | 0 | 0 | null | 2016-09-14T09:25:45 | 2016-09-14T09:25:44 | null | UTF-8 | Python | false | false | 1,808 | py | from datetime import timedelta
from decimal import Decimal
from io import BytesIO
import pytest
from django.utils.timezone import now
from PyPDF2 import PdfFileReader
from pretix.base.models import (
Event, Item, ItemVariation, Order, OrderPosition, Organizer,
)
from pretix.plugins.ticketoutputpdf.ticketoutput im... | [
"mail@raphaelmichel.de"
] | mail@raphaelmichel.de |
6bb7485728d62675725bc6326bf68cdb4cdef2ad | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_optimizer/pytorch_binding/pytorch_nndct/nn/modules/interpolate.py | 5b30027d57596d14e2a282f4d1a6439e43baedca | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-other-permissive... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 1,564 | py |
#
# Copyright 2019 Xilinx Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"do-not-reply@gitenterprise.xilinx.com"
] | do-not-reply@gitenterprise.xilinx.com |
fc402ae81366952acb346097c3df72e9c0ad4921 | f17014cb6742281806a889cda35cef6b04ca2956 | /torch/testing/_internal/distributed/distributed_test.py | 2dc0d37c69755b95ddd47aed82457e57ea133dd5 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | VishveshDhobe/pytorch | 8ab55af440f2e3da841f0bfbcb7eef1e50f33ccb | e4bc785dd57b15ae091eb8e8ca71a604da9b3fb2 | refs/heads/master | 2023-01-05T17:13:35.845908 | 2020-11-04T16:27:55 | 2020-11-04T16:29:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164,090 | py | import copy
from collections import namedtuple
import itertools
import random
import math
import os
import sys
import time
import tempfile
import unittest
from contextlib import contextmanager, suppress
from datetime import timedelta
from functools import reduce
from typing import Union, NamedTuple
import torch
import... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
417625fbe2ab321c1645fec025cb16c02390da3b | e09c01a6eb6fb87d1398f7c8502ecbfa19f28850 | /docker/pycef/verify.py | 813e070b2103d765e526cefb9028dea8987382b7 | [
"JSON",
"BSD-3-Clause",
"Artistic-2.0",
"LicenseRef-scancode-secret-labs-2011",
"LGPL-2.0-or-later",
"MIT",
"ISC",
"Artistic-1.0-Perl",
"Apache-2.0",
"Python-2.0",
"Unlicense",
"LicenseRef-scancode-generic-cla"
] | permissive | demisto/dockerfiles | a8f4bb2c291d694a1ea9bf73800a7cb05508f0ff | 6fb9b8cd786985fa7504f7e44575b7b573dd963f | refs/heads/master | 2023-08-22T07:57:50.346861 | 2023-08-20T12:48:10 | 2023-08-20T12:48:10 | 161,347,705 | 57 | 141 | MIT | 2023-09-14T15:03:44 | 2018-12-11T14:39:27 | Brainfuck | UTF-8 | Python | false | false | 615 | py | import pycef
cef = "Jul 14 2020 00:49:42 myvxkp.manage.trendmicro.com CEF:0|Trend Micro|Apex Central|2019|WB:36|36|3|deviceExternalId=1 rt=Jun 21 2020 07:56:09 GMT+00:00 app=5 cnt=1 dpt=80 act=2 src=10.128.0.11 cs1Label=SLF_PolicyName cs1=Internal User Policy deviceDirection=2 cat=36 dvchost=CU-PRO1-8254-2 request=htt... | [
"noreply@github.com"
] | demisto.noreply@github.com |
30d407573895e37be8c589a7c6732422960405a5 | 93ad56acf9e48d590768c2c2500d76ec2c4b6bb1 | /app/main/errors.py | 7403c733b99cdc878224c88e068d40eec4dc92b1 | [] | no_license | nanohaikaros/learn_flask | ce87657cdddc6fb12bb09db625732ced370f0434 | cf3fa1ebd968da226d8f71dadbf24d6656f0ab4d | refs/heads/master | 2021-01-19T22:46:38.087567 | 2017-05-22T06:33:32 | 2017-05-22T06:33:32 | 88,866,035 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from flask import render_template
from . import main
@main.app_errorhandler(403)
def forbidden(e):
return render_template('403.html'), 403
@main.app_errorhandler(404)
def page_not_found(e):
return render_template('404.html'), 404
@main.app_errorhandler(500)
def internal_server_error(e):
return render_te... | [
"1371689491@qq.com"
] | 1371689491@qq.com |
4d07559abce454e6988074e172fc27bcd712241c | a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c | /venv/Lib/site-packages/pandas/tests/io/test_stata.py | 5708459bbeee5168c52eb369a9e89caf6e5cf5be | [] | no_license | mylonabusiness28/Final-Year-Project- | e4b79ccce6c19a371cac63c7a4ff431d6e26e38f | 68455795be7902b4032ee1f145258232212cc639 | refs/heads/main | 2023-07-08T21:43:49.300370 | 2021-06-05T12:34:16 | 2021-06-05T12:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ac3c82a633dbd93b8dd3e42a92c364056f31c17d5aab641a1531a16c854100ce
size 80351
| [
"chuksajeh1@gmail.com"
] | chuksajeh1@gmail.com |
183474e30fec8665fd8abb76258ae4b4c206c2f2 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/security/azure-mgmt-security/azure/mgmt/security/aio/operations/_regulatory_compliance_standards_operations.py | 8a7c10f30b23bf8e13a849a86fea24e6ef2a177e | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 8,189 | 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"
] | scbedd.noreply@github.com |
94e898b82eb56429ee14e655db9f586c9926c987 | d852a39939776a2374320f4a1371e307ec5722a8 | /evphoto/urls.py | a2d81337a3a03304700da1a3d0a130bb7dc7b6f1 | [
"MIT"
] | permissive | raikel/evphoto | 5dfd4ecb5a3516ecd636260a0ba75d4ba1970e55 | 2c3702b2adcd53b6e03a2d596bd79e174e1a93a8 | refs/heads/main | 2023-02-13T05:07:30.618069 | 2021-01-14T19:21:13 | 2021-01-14T19:21:13 | 329,567,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | """evphoto URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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... | [
"raikelbl@gmail.com"
] | raikelbl@gmail.com |
f1ee1173e27fd577e8aa1b4c4e3acdc2cf4db1c3 | 58959ee3e92cfb4dee217df94a1eb5d0fb4a238e | /qiskit/transpiler/passes/layout/sabre_layout.py | 1ed9153fb08b4d7f1a0217c878203609801f4c5a | [
"Apache-2.0"
] | permissive | AGaliciaMartinez/qiskit-terra | e5d143393ee31af28e7fefddc52219c375d54066 | e70ce504149b40287cfb8bff3ac525159dd46a40 | refs/heads/master | 2023-03-16T09:50:59.840070 | 2022-12-11T14:25:14 | 2022-12-11T14:25:14 | 219,828,601 | 0 | 0 | Apache-2.0 | 2023-03-06T13:15:22 | 2019-11-05T18:59:22 | Python | UTF-8 | Python | false | false | 14,571 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | AGaliciaMartinez.noreply@github.com |
7c27410170786c5d93f67b9ebcfa51fd96f37230 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02266/s420424562.py | 880d6c89e7de0c5785e81f9f9077c6c0f5b05e62 | [] | 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 | 736 | py | from queue import LifoQueue
MAP = input()
que = LifoQueue()
res = LifoQueue()
for i, m in enumerate(MAP):
if m=='\\':
que.put(i)
elif m=='/':
if not que.empty():
j = que.get(False)
v = i - j
t = (j, v)
while not res.empty():
pre ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4601aa9f22da55cb30b966de539a25b4e9f6c58d | 55628a9a08a6b6646b4a8aa74bedbf2e3fd7d850 | /.history/master_20200119193629.py | 2db10fab9ef6d872c3dc3a5b8b648d2a52490261 | [] | no_license | StRobertCHSCS/final-project-team | c115dc11b318f7ac782c94860a8801bb558bd107 | 48907e72813c4dd3b48ff36f794f6fce04533219 | refs/heads/master | 2020-12-03T22:35:37.833893 | 2020-01-31T04:05:38 | 2020-01-31T04:05:38 | 231,506,873 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,480 | py | '''
-**make snake longer when eaten
- FIGURE OUT HOW TO KNOW WHERE TO ADD THE NEXT BLOCK (MOVE LAST LOCATION TO BACK)
-fix player_location lists, so that the list only has the location of the current snake location, not infinite list (done)
- fix apple so disappers when you go over it (done)
'''
import arcade
imp... | [
"clementina1023@gmail.com"
] | clementina1023@gmail.com |
b04b76458382bec38d6c2113df7825f5c942223b | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/functional/arno/indices/test_lower_bound_desc_02_segments_01.py | 690211e08ed9cda8673a99c976031908ca55972f | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 2,148 | py | #coding:utf-8
"""
ID: index.lower-bound-desc-2-segments
TITLE: DESC 2-segment index lower bound
DESCRIPTION:
Check if all 5 values are fetched with "equals" operator over first segment and
"lower than or equal" operator on second segment. 2 values are bound to the lower
segments and 1 value is bou... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
4d4d446dea7a1fe92f5f2c1ea6b02b40da00c543 | a479a5773fd5607f96c3b84fed57733fe39c3dbb | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_isn/state/__init__.py | d5b7c2d5ae95cc62dff09701a8fb36a39539399e | [
"Apache-2.0"
] | permissive | napalm-automation/napalm-yang | 839c711e9294745534f5fbbe115e0100b645dbca | 9148e015b086ebe311c07deb92e168ea36fd7771 | refs/heads/develop | 2021-01-11T07:17:20.226734 | 2019-05-15T08:43:03 | 2019-05-15T08:43:03 | 69,226,025 | 65 | 64 | Apache-2.0 | 2019-05-15T08:43:24 | 2016-09-26T07:48:42 | Python | UTF-8 | Python | false | false | 98,243 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
3c39fb15eff05bb0b750c408fe4b51bb2ece9eb1 | 01733042e84a768b77f64ec24118d0242b2f13b8 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/radiusglobals/radiusglobals.py | 732fa15ba936da62be6717259bf7eb06313f5074 | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 5,069 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
13f9ee52c3ae3189d989e10eec846b988ed1b723 | e85e846960750dd498431ac8412d9967646ff98d | /certificates/migrations/0007_auto_20170222_1005.py | 09bd66c793fc3f42e6ff4fa3b92692a45a7f4742 | [] | no_license | onosaburo/clublink_django | 19368b4a59b3aed3632883ceffe3326bfc7a61a6 | d2f6024b6224ea7f47595481b3382b8d0670584f | refs/heads/master | 2022-03-30T05:30:12.288354 | 2020-01-27T18:09:11 | 2020-01-27T18:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-02-22 10:05
# flake8: noqa
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('certificates', '0006_auto_20170222_0827'),
]
operations = [
migratio... | [
"bestwork888@outlook.com"
] | bestwork888@outlook.com |
06784a03823b09ab1c522efa2cce9f839dc4592b | 99b92de16867f4846b9119e94d13377a58c182f4 | /doped_cath/tst/migrations/tp/0006_load_nDOPE.py | a6bd4c6354b2c256866c882e3299a25ce42abbd8 | [] | no_license | CATH-summer-2017/domchop | 8ef37f8e218ff99e7f5e1c7a75c406327ad22ff0 | d0c717ebc0541eba0d196a3c5885e4edf83a0ecb | refs/heads/master | 2020-12-14T07:20:43.062710 | 2017-09-25T23:21:05 | 2017-09-25T23:21:05 | 95,545,543 | 2 | 3 | null | 2017-06-30T11:16:10 | 2017-06-27T10:13:23 | null | UTF-8 | Python | false | false | 1,506 | py |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
# def load_classes_sql():
# from coffeehouse.settings import PROJECT_DIR
# import os
# sql_statements = open(os.path.join(PROJECT_DIR,'tst/sql/load_classes.sql'), 'r').read()
# return sql_stateme... | [
"shouldsee.gem@gmail.com"
] | shouldsee.gem@gmail.com |
34d116201474c7e62a2d9adcc6b8d3a85318c2d2 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /zqMREZ2MQd9M5jNfM_9.py | d93270c362002418e307c213ec315c4133aacb07 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | """
Create a function that takes a number as an argument and returns `True` or
`False` depending on whether the number is symmetrical or not. A number is
symmetrical when it is the same as its reverse.
### Examples
is_symmetrical(7227) ➞ True
is_symmetrical(12567) ➞ False
is_symmetrical(44444... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d9d7d3810f2986d67be89873e3fb282685427dc5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /J9fCHDa3yYJWnK3A7_17.py | a1830f2d014b3eddfc13778136564b2dc07fd3af | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | """
A **happy number** is a number which yields a `1` by repeatedly summing up the
square of its digit. If such a process results in an endless cycle of numbers
containing `4`, the number is said to be an **unhappy number**.
Create a function that accepts a number and determines whether the number is a
_happy numbe... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
352548896ec7b76f0e9e9426ba84f24f31e81d5f | b214439d1f529a0b22a6f3afdad62752e87393f1 | /config.py | cecee97cdf84aedb880e165cd80b4b4b01e0aea0 | [] | no_license | LGY2008/GZ05UiHMTTAutoTest | 3dc245c00d9f0ac5dc107a85872b30ade3e64d25 | 87fe766ca7673b2ebfc7ef2e5c5141c89a6792ef | refs/heads/master | 2020-11-27T09:58:09.136575 | 2019-12-21T07:23:25 | 2019-12-21T07:23:25 | 229,391,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | import os
BASE_PATH = os.path.dirname(__file__)
# print(BASE_PATH)
# print("__file__获取当前模块所在路径:", __file__)
| [
"150691555@qq.com"
] | 150691555@qq.com |
f476eb1935ab5f29eb6380a213b3e4fd835af68f | bc8509d57a162fb685da06a98c67dc8130d96316 | /src/nninst/utils/numpy.py | 9607ffcb70f0a6dc19d1c7f583b44e22f2c0c57c | [
"Apache-2.0"
] | permissive | Ptolemy-DL/Ptolemy | 2065e2d157d641010567062410bee4608691d059 | f72a531286d17c69e0e2e84d0ad8a5b0587e2e08 | refs/heads/master | 2023-05-29T08:58:18.328258 | 2021-06-15T09:28:16 | 2021-06-15T09:28:16 | 284,590,756 | 115 | 5 | NOASSERTION | 2020-10-24T04:18:51 | 2020-08-03T03:06:35 | Python | UTF-8 | Python | false | false | 2,781 | py | from typing import Union
import numpy as np
__all__ = ["argtopk", "arg_approx", "arg_approx_signed", "repeat", "concatenate"]
def get_int_k(array: np.ndarray, k: Union[int, float]) -> int:
if type(k) is float:
if 0.0 < k < 1.0:
k = round(array.size * k)
if k == array.size:
... | [
"ygan10@ur.rochester.edu"
] | ygan10@ur.rochester.edu |
3ecf11e01e3b723c2b1431b7b60c91b9a4447008 | 4749d3cf395522d90cb74d1842087d2f5671fa87 | /alice/LC406.py | ebd41c6469e26d50cf2299deca09ce35e1e6efae | [] | no_license | AliceTTXu/LeetCode | c1ad763c3fa229362350ce3227498dfb1f022ab0 | ed15eb27936b39980d4cb5fb61cd937ec7ddcb6a | refs/heads/master | 2021-01-23T11:49:49.903285 | 2018-08-03T06:00:16 | 2018-08-03T06:00:16 | 33,470,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | class Solution(object):
def reconstructQueue(self, people):
"""
:type people: List[List[int]]
:rtype: List[List[int]]
"""
people.sort(key = lambda x: [-x[0], x[1]])
out = []
for x in people:
out.insert(x[1], x)
return out | [
"aliceadelice@gmail.com"
] | aliceadelice@gmail.com |
c1e70ef156cf238a0729e59e883d766bdc7079de | 0be8fcf11032836c40d6cf80404130bfeeb4f147 | /formulas/constants.py | 07ac7d5860ed343c693632960b394553b6992c42 | [] | no_license | granttremblay/formulas | 7b13661b8248deeb84a42ce9fa8baaa5fc7d8667 | a56dbfa92fbcaef194d6735a0d5fb38d48308a36 | refs/heads/master | 2021-01-11T22:26:17.165819 | 2016-11-25T04:19:10 | 2016-11-25T04:19:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | from sympy import symbols
from sympy import pi as sym_pi
from formulas.base import Formula
try:
import yt.utilities.physical_constants as yt_pc
except ImportError:
yt_pc = None
try:
import astropy.constants as astropy_pc
except ImportError:
astropy_pc = None
try:
from pint import UnitRegistry
pi... | [
"jzuhone@gmail.com"
] | jzuhone@gmail.com |
68dc9fbe7e29ec923121a4526fc054557776fd07 | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201019123819.py | 9808ed21b1d2b74118bd70924d30f80e541f48fd | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | from wagtail.core import blocks
from wagtail.images.blocks import ImageChooserBlock
class TitleBlock(blocks.StructBlock):
text = blocks.CharBlock(
required = True,
elp_text='Tekst do wyświetlenia',
)
class Meta:
template = 'streams/title_block.html'
icon = 'edycja'
l... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
55ee6222654cb56bc64aa38ff54959a133fa43b6 | f8ad6963bfc851657ea50c6a036cfad29cdd7f60 | /Books/GodOfPython/P00_OriginalSource/ch14/exercise/idpw.py | 21c3d7198abd9ed03005393d1a2ab537906e0965 | [] | no_license | foru120/PythonRepository | e1ab0265c0f50ef2e9acdf7447237c913560692b | db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98 | refs/heads/master | 2021-01-01T06:53:11.728109 | 2019-04-25T13:52:50 | 2019-04-25T13:52:50 | 97,541,222 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | import tkinter
def reset():
text_id.set('')
text_pw.set('')
def login():
f = open ("C:/gop/ch14/exercise/idpw.txt", 'r')
try:
for s in f:
idpw = s.split('/')
if (idpw[0] == text_id.get()) and (idpw[1].strip()==text_pw.get()):
frame.destroy()
label = tkinter.Label(text = "{} login..".format(t... | [
"broodsky1122@hanmail.net"
] | broodsky1122@hanmail.net |
543f648806301c64f30a4f1e315ba24aba1a0b57 | d0d21c4e00d2674dcd0e0e07c47576f15706a064 | /munge/03-random-forest-on-tfidf.py | 6b63bd838c012ebb5e9e59757fd64060f5985289 | [] | no_license | paulhendricks/kaggle-home-depot-product-search-relevance | 1312d874c91b5f0eb6f420d23fe5813db222868a | cd2e68976ab4a6eb224c55f80a0b851bb37a9fde | refs/heads/master | 2021-01-10T05:25:31.073869 | 2016-01-19T15:14:47 | 2016-01-19T15:14:47 | 49,902,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | py | import pandas as pd
import numpy as np
from sklearn.cross_validation import train_test_split
from sklearn.grid_search import GridSearchCV
from sklearn.pipeline import Pipeline
from sklearn.ensemble import RandomForestRegressor
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer, TfidfVectorize... | [
"paul.hendricks.2013@owu.edu"
] | paul.hendricks.2013@owu.edu |
66a7413029ca2510d8617ddeb21324b7203e0da2 | c1373f7b6956468b45db6c664b119322e667ac5e | /Study/baekjoon/hw/17609.py | 6c5dcf2987055f70bac2678287a966e9c3484626 | [] | no_license | JaeLinJoo/Python-Team-Notes | e01f2010852d0c4365cdc9d087c305e876c90f9a | 869dae62e489686eab56bc58bdea8c391ffbca19 | refs/heads/master | 2023-09-02T14:10:02.032521 | 2021-10-06T16:20:04 | 2021-10-06T16:20:04 | 339,348,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | #회문
### ↓↓↓↓↓↓↓↓↓↓↓↓↓solution↓↓↓↓↓↓↓↓↓↓↓↓↓↓
def pseudo(x, left, right):
while left < right:
if x[left] == x[right]:
left += 1
right -= 1
else:
return False
return True
def palindrome(x,left, right):
while left < right:
if x[left] == x[right]:
left += 1
right -= 1
el... | [
"replituser@example.com"
] | replituser@example.com |
750217b5c01d3385971f10c801f303fa66cf729a | 98743080e28537d635364a998aa1988551dffcdf | /cride/cride/users/urls.py | 1cd703d1b08c9189fbc30cfb0e5b5957ed36c4c6 | [
"MIT"
] | permissive | INFINITY-RUBER/Curso_Django-avanzado_proyect | 75561cbc54a8057d1d2b536f34b2506233f40f80 | 1850a73a3648cfca17fdbf48b40dbd3eadd9f7fd | refs/heads/main | 2023-06-11T05:49:43.330422 | 2021-06-29T17:11:26 | 2021-06-29T17:11:26 | 374,808,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | """ Users URLs."""
# Django
from django.urls import path, include
# Django REST Framework
from rest_framework.routers import DefaultRouter
# Views
from .views import users as user_views
# from cride.users.views import (UserLoginAPIView, UserSignUpAPIView,
# AccountVerificationAPIView)
... | [
"ruberhenandez@gmail.com"
] | ruberhenandez@gmail.com |
bcc862b5a9cd861cbe6356c4fb7bc1316aeb2392 | 8bda8911512f1c454f5e75ef36f3d828661b1479 | /dfs_bfs/test08.py | 6bfdb60652a5ad808b25d0d77843e9f27c78d695 | [] | no_license | choijaehoon1/backjoon | 0f5909a1e1d416f8f431d6b986754af7eb6a3396 | a0411dba08c057a312733e38683246162256e61d | refs/heads/master | 2023-02-26T12:28:33.733297 | 2021-02-05T13:28:33 | 2021-02-05T13:28:33 | 280,430,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | from collections import deque
N, M = map(int, input().split())
visit = [0 for _ in range(100001)]
queue = deque()
queue.append([N,0])
# print(queue)
while queue:
pos = queue[0][0]
depth = queue[0][1]
if pos == M: # 기준점이 됫을때의 depth를 찍으면 최단거리임
break
queue.popleft()
visit[pos] = 1
if po... | [
"wogns_20@naver.com"
] | wogns_20@naver.com |
b230197181bdab76dc21bbefbc4970e62ae9d85b | 746bf62ae3599f0d2dcd620ae37cd11370733cc3 | /leetcode/minimumpathsum.py | 0b3383cd94fdea6db18babd6a9663eaa701785c1 | [] | no_license | wanglinjie/coding | ec0e614343b39dc02191455165eb1a5c9e6747ce | 350f28cad5ec384df476f6403cb7a7db419de329 | refs/heads/master | 2021-04-22T14:00:48.825959 | 2017-05-02T12:49:05 | 2017-05-02T12:49:05 | 48,011,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# date:20160712
class Solution(object):
def minPathSum(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
Given a m x n grid filled with non-negative numbers,
find a path from top left to bottom right which minimizes the sum of all number... | [
"hitwhwlj@163.com"
] | hitwhwlj@163.com |
35decafd0911bc653eafe7e1928f9aafc9d264c6 | 4aa3e91f50443894de3d2d5339df7cbcb2c88bfd | /t_08ALFARO.CAJO/CAJO/concatenacion/ejercicio7.py | 8e68e8fce9f5780988f0b1da353beaf938a9ee63 | [] | no_license | Piero942/T08_Alfaro.Cajo | d7164ab2c22116037739b32680cd82eafef0cfa1 | 8e1d05459d15093d0a8ecc46c7caf7e225b53e5f | refs/heads/master | 2020-10-02T07:43:03.482372 | 2019-12-13T02:01:09 | 2019-12-13T02:01:09 | 227,733,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # 2 3 4 5 6 7
# 0123456789012345678901234567890123456789012345678901234567890123
msg="El ser humano nace con inteligencia, pero debe aprender a pensar"
print( "aprende" + " " + "con" + " " + "inteligencia" )
| [
"palfaro@unprg.edu.pe"
] | palfaro@unprg.edu.pe |
6c3401ae9e10e1085074c0663728a44a7a382a3d | 3492b97a904d7397c13c03334d0abe23484024bc | /custom_website_calendar/models/calendar_appointment.py | c33c793529e61f93f2aece8aa29b751c565aaae9 | [] | no_license | hassanfadl/vendor_portal_app | e578262ae25261e6740e4329cb45168ec2e790b4 | ebf8f4f7452190c986fbc9c225b8660fe0bd4bd4 | refs/heads/main | 2023-08-23T10:12:07.838305 | 2021-10-30T04:44:40 | 2021-10-30T04:44:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,912 | py | import pytz
import random
from odoo import models, fields, api, _
from odoo.exceptions import ValidationError, UserError
from datetime import datetime, date
from datetime import datetime, timedelta, time
from dateutil import rrule
from dateutil.relativedelta import relativedelta
from babel.dates import format_datetime
... | [
"dennisboysilva@gmail.com"
] | dennisboysilva@gmail.com |
40e95cb6d1ecd25ec81f2e9f679e937390f9151c | f68d246ea82f980706bfa574da91d99797c29b38 | /code/sequentialSearch.py | 3f21c9fcc1154eb22d72f6c04f1a8470444e9477 | [] | no_license | nicolas4d/Problem-Solving-with-Algorithms-and-Data-Structures-using-Python | 40684370ab0c8a22894aa58c0479da6697ea0a13 | 5c7595cab3c5501e4b4177b700708a2609c74e30 | refs/heads/master | 2020-12-02T13:43:49.547926 | 2020-02-01T14:19:08 | 2020-02-01T14:19:08 | 231,025,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | def sequentialSearch(alist, item):
pos = 0
found = False
while pos < len(alist) and not found:
if alist[pos] == item :
found = True
else :
pos = pos + 1
return found
testlist = [1, 2, 32, 8, 17, 19, 42, 13, 0]
print(sequentialSearch(testlist, 3))
print(sequenti... | [
"nicolas4d@foxmail.com"
] | nicolas4d@foxmail.com |
671f77b7b77c513a3c58149ed8238a00effc68b0 | f35bb12066639698a94847cba4b4628aede1da70 | /contests/python/atcoder_beginners_selection/02_ABC081A/main.py | 8d579ec866c41987ae3796146e0a348fe59101f3 | [] | no_license | fly1tkg/atcoder-python-note | 7e74382a8867b07bb7a926988ac854a3b84e020b | 6051b771c0a0399ce8caf1e24256a9909101b0e7 | refs/heads/main | 2023-08-26T23:52:14.766576 | 2021-10-30T11:58:38 | 2021-10-30T11:58:38 | 363,686,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | l = list(input())
result = 0
for i in l:
if i == '1':
result += 1
print(result) | [
"fly1tkg@gmail.com"
] | fly1tkg@gmail.com |
6bdd4cb44ebe52649aa072e82ce0f6cf397c91c6 | 7bd15f37ffd26f9f0470cae2b4c1ef491c35c5c1 | /python/dirigible/feedback/urls.py | 64c3810ceefb7a6b75b23e864325bb941af66522 | [
"MIT"
] | permissive | bwhmather/dirigible-spreadsheet | 0063aba1cec7df1dc4fc0d5dbbcfaeeb1dad932f | ff0414912110553a5d0f317495cdba39a077a044 | refs/heads/master | 2020-12-28T22:53:10.312409 | 2014-09-14T16:15:59 | 2014-09-14T16:15:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # Copyright (c) 2010 Resolver Systems Ltd, PythonAnywhere LLP
# See LICENSE.md
#
from django.conf.urls.defaults import *
from dirigible.feedback.views import submit
urlpatterns = patterns('',
url(
r'^submit/$',
submit,
name="feedback_submit"
),
)
| [
"hjwp2@cantab.net"
] | hjwp2@cantab.net |
7dcfcc49c5a5737c6513c87e0674a48f21405088 | 479b1e59d99b30c7c9440416a2e95702cef7e3e1 | /Chapter07/transformer/transformer/Constants.py | 1b6ba9302e2d1d4fd8684e08921133ef1b6726ca | [
"MIT"
] | permissive | kpranke/Getting-Started-with-Deep-Learning-for-Natural-Language-Processing | 28007fa4361fdfe191a48f9576690028ed4bbd14 | 89f35a8e327bd9143fdb44e84b8f7b4fdc8ae58d | refs/heads/main | 2023-02-23T06:41:13.351541 | 2021-01-23T11:56:08 | 2021-01-23T11:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | PAD = 0
UNK = 1
BOS = 2
EOS = 3
PAD_WORD = '<blank>'
UNK_WORD = '<unk>'
BOS_WORD = '<s>'
EOS_WORD = '</s>'
| [
"41231825+bpbpublications@users.noreply.github.com"
] | 41231825+bpbpublications@users.noreply.github.com |
c7c95faecb272485b632e0ee5d8c8ae918aabe5c | a39a8e8d1192ca475c6ed348b79e10108c1fa6ba | /WebApp/admin.py | aa3bf10d1d4fce749276c043cb777099722ae42a | [] | no_license | gitNikhilsahu/SQLiteProject | 2d7bac75456d793e97424ed0a939a4a4b87cf5d0 | bfa49909059789f6e3ba47cd274782de6b6414c5 | refs/heads/master | 2020-09-14T09:44:57.481471 | 2019-11-21T05:21:22 | 2019-11-21T05:21:22 | 223,093,719 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from django.contrib import admin
from WebApp.models import Emp
# class EmpAdmin(admin.ModelAdmin):
# list_display = ['EmpID', 'EmpName', 'EmpSal', 'EmpAdd']
admin.site.register(Emp) | [
"Nikhilsahu.in@gmail.com"
] | Nikhilsahu.in@gmail.com |
5167277aeef9cb935f9bc676a1027f0ba41df2c9 | 8d15427c02f7ea265985159c7bf67df2f9731991 | /ApiTest/case/test_db.py | dd65ca78ebdaac25d0806ad61e9f962a355c61d7 | [] | no_license | yolotester/learngit | aa862b7f0ecbeb5c056b8ca576c8a00efc55f62c | d885b520757097c1d984d1cdda5d242ee5c6a5d6 | refs/heads/master | 2023-04-07T19:48:23.153638 | 2023-03-17T02:03:05 | 2023-03-17T02:03:05 | 248,145,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | '''
目标:在unittest中使用读取数据库封装类
'''
# 导包 unittest read_database
import unittest
from tools.read_database import ReadDB
import logging
logging.basicConfig(level=logging.INFO, format= '%(asctime)s-%(levelname)s-%(name)s-%(message)s')
logger = logging.getLogger(__name__)
# 创建测试类,继承unittese.TestCase
class TestDB(object... | [
"yolo@ying31.com"
] | yolo@ying31.com |
b082be539c1caf0875da89e785561da6f00009ef | 25d8bac5635ac1cc3577a3593a4512e042ea7ecd | /scripts/simplehttpserver-example-1.py | d1f9965dbfb74211c5c5666c8a39df5691eef1e4 | [] | no_license | mtslong/demo | 2333fa571d6d9def7bdffc90f7bcb623b15e6e4b | a78b74e0eea7f84df489f5c70969b9b4797a4873 | refs/heads/master | 2020-05-18T18:28:48.237100 | 2013-11-11T16:10:11 | 2013-11-11T16:10:11 | 4,136,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | import SimpleHTTPServer
import SocketServer
# minimal web server. serves files relative to the
# current directory.
PORT = 8000
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
print "serving at port", PORT
httpd.serve_forever()
## serving at port 8000
## lo... | [
"mofeng@netease.com"
] | mofeng@netease.com |
5d23db06cd5064470408bdb43c1240099438ca90 | 2eca1ddd6016499dec09459d9981fdb11ad21ec3 | /doc/vcs.py | 144dfd8fc7abceda8b62b6458f327734b0bf1875 | [
"BSD-2-Clause"
] | permissive | AWhetter/plac | 85eb9a09879a06ae33ba0760d69517f06de61157 | c5e786d08600fe0ac2158bc50a7d83cf25a59c7f | refs/heads/master | 2020-10-02T06:44:54.314142 | 2019-10-27T07:41:16 | 2019-10-27T07:41:16 | 227,724,805 | 0 | 0 | BSD-2-Clause | 2019-12-13T00:52:05 | 2019-12-13T00:52:04 | null | UTF-8 | Python | false | false | 963 | py | "A Fake Version Control System"
import plac # this implementation also works with Python 2.4
commands = 'checkout', 'commit', 'status'
@plac.annotations(url='url of the source code')
def checkout(url):
"A fake checkout command"
return ('checkout ', url)
@plac.annotations(message=('commit message', 'optio... | [
"michele.simionato@gmail.com"
] | michele.simionato@gmail.com |
8ff7174f22a50a8d9d3d834f9c24f2e797fb4c06 | e0980f704a573894350e285f66f4cf390837238e | /.history/home/models_20201030104943.py | e2b8486c5ac363b0730c2b639a493695b4a0b0c1 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | from django.db import models
from wagtail.core.models import Page
from wagtail.core.fields import StreamField
from wagtail.admin.edit_handlers import FieldPanel, PageChooserPanel, StreamFieldPanel
from wagtail.images.edit_handlers import ImageChooserPanel
from wagtail.snippets.blocks import SnippetChooserBlock
from s... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
b2089437e5bdd8c6a97f1ddd6a80405f05e99c6f | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/LibvirtGConfig/DomainSmartcard.py | dcc9023485b0fa42ceac54edf0a345beccfffb10 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 15,891 | py | # encoding: utf-8
# module gi.repository.LibvirtGConfig
# from /usr/lib64/girepository-1.0/LibvirtGConfig-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
f714c0d4977db7e7c55232f29b48fe1670ee1204 | f620403443b2c0affaed53505c002f35dc68020c | /Prediction/GetEntropy.py | 8e857882fcbac924009a016effa2b606dbd3965e | [] | no_license | ZhuJiahui/CTMTS | c552b3026deb47879f9aa5bde4b002cf6283858d | 9f8981f6e61900a68a38ae0392e01771beee9651 | refs/heads/master | 2021-01-12T10:18:27.579697 | 2016-12-14T02:23:29 | 2016-12-14T02:23:29 | 76,416,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | # -*- coding: utf-8 -*-
'''
Created on 2014年8月3日
@author: ZhuJiahui506
'''
import os
import numpy as np
from TextToolkit import quick_write_list_to_text
import time
def get_topic_entropy(read_directory, write_filename):
file_number = sum([len(files) for root, dirs, files in os.walk(read_directory)])
... | [
"zhujiahui@outlook.com"
] | zhujiahui@outlook.com |
06a5d62253a4c5307e3f07e5b4263d38c33c0137 | 17c7bace346c9f49318becd1f9769c9aee3fa650 | /credit_calc/config.py | cde448593ebe35abcf9a8f3e754ebf53b07607a5 | [] | no_license | KonishchevDmitry/credit-calculator | 789a06bad7dfe27ed5284afcb5d8b620d5ba5ae1 | 4c4dd811416e968eb68bbd490966c285de99c2c5 | refs/heads/master | 2021-01-10T16:46:22.273992 | 2013-11-18T08:17:11 | 2013-11-18T08:17:11 | 51,710,627 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | from decimal import Decimal, DecimalException
from object_validator import validate
from object_validator import InvalidValueError
from object_validator import String, List, Dict, DictScheme
import python_config
from credit_calc.util import InvalidDateError
from credit_calc.util import get_date
class _Date(String)... | [
"konishchev@gmail.com"
] | konishchev@gmail.com |
f0649e568131fbf007f89191ec6673659501d413 | 328397a6ff6e109069e02fa8fe42255910939cb8 | /venvs/edxapp/lib/python2.7/site-packages/xblock/__init__.py | 27a1cc562b2dbacb168d5c5618273230d192cfb3 | [] | no_license | UOMx/CITeS-VM-edxapp | fd1294367d090314dc46d8517027845fe178a2e7 | de3d1b297fa99d61cf32addb981cdfc55aec9891 | refs/heads/master | 2022-12-03T08:45:26.284451 | 2017-02-13T12:44:17 | 2017-02-13T12:44:17 | 81,821,365 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | """
XBlock Courseware Components
"""
import os
import warnings
import xblock.core
import xblock.fields
class XBlockMixin(xblock.core.XBlockMixin):
"""
A wrapper around xblock.core.XBlockMixin that provides backwards compatibility for the old location.
Deprecated.
"""
def __init__(self, *args, **... | [
"menuka.14@cse.mrt.ac.lk"
] | menuka.14@cse.mrt.ac.lk |
9703e11091f4c627c362b31dd90d4d91c92160f8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/3/usersdata/107/321/submittedfiles/ex1.py | 652ffcb7e07cb3de6ae9c7173519b76c1e3e40b5 | [] | 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 | 336 | py | # -*- coding: utf-8 -*-
from __future__ import division
a=input('digite o valor de a:')
b=input('digite o valor de b:')
c=input('digite o valor de c:')
d=(b**2)-(4*a*c)
if d>=0:
x1=((-b)+(d**1/2))/2*a
x2=((-b)-(d**1/2))/2*a
print x1('%.2f' %x1)
print x2('%.2f' %x2)
else:
print('não existe raízes reais:')... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d40b3e7ce7ced0c63212ada2f3f056a7575618c6 | be36a3b4aec92734e7b8562eff411310d4d7ba78 | /core/utils.py | c2dea9e22447aca033fd7a4e75bacc37692c0dcf | [] | no_license | dpitkevics/Jooglin.Crawler | 9d409c7960557dbaaab3e925fc5de0c762185186 | 1a3b7c7fa5a1132413dff1ca73c655caf8e2a637 | refs/heads/master | 2021-01-22T06:54:37.682214 | 2015-04-22T14:51:18 | 2015-04-22T14:51:18 | 34,395,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | import types
import defer
def iterator(var):
if isinstance(var, types.GeneratorType):
return var
if isinstance(var, list) or isinstance(var, tuple):
return iter(var)
return iter((var,))
def isstring(obj):
try:
return isinstance(obj, str)
except NameError:
return... | [
"daniels.pitkevics@gmail.com"
] | daniels.pitkevics@gmail.com |
7643eccc000d560f997e82014987c8affdaa2a73 | 7c13186da7fba1e4da5f6a9c85b8ef00b68797e0 | /utils/log.py | 497d7836db9badc3768d5809ec3eee654474f021 | [] | no_license | rohitsuratekar/FeedbackScan | 02d54949c293f1ce956b62b5597697db3bfe07ac | b7598a85cb9c92946edb96713f51baae73b22f0d | refs/heads/master | 2021-05-04T17:52:12.655790 | 2019-11-28T10:43:24 | 2019-11-28T10:43:24 | 120,281,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | """
Copyright © 2017 Rohit Suratekar
Code from this file is released under MIT Licence 2017.
use "Log" for logging information and "OUTPUT" for saving information
"""
import logging
import os
from settings import *
from utils.functions import get_uid
# Creates UID for current job
CURRENT_JOB = get_uid()
... | [
"rohitsuratekar@gmail.com"
] | rohitsuratekar@gmail.com |
59cc24e786dee4a7056482c5231c640cfdb53a44 | aa853a9094fff4b6e9b0ddc7469be29ad5f0f811 | /poi_sale_discounts/__manifest__.py | 3d2b68437c88ed4c757428677067f4c312115397 | [] | no_license | blue-connect/illuminati | 40a13e1ebeaceee39f17caa360f79e8deeaebf58 | 6682e60630064641474ddb2d8cbc520e30f64832 | refs/heads/master | 2022-01-06T00:55:58.465611 | 2018-11-24T04:30:03 | 2018-11-24T04:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | ##############################################################################
#
# Poiesis Consulting, OpenERP Partner
# Copyright (C) 2013 Poiesis Consulting (<http://www.poiesisconsulting.com>).
# Developed by: Grover Menacho
#
# This program is free software: you can redistribute it and/or modify
# it... | [
"yori.quisbert@poiesisconsulting.com"
] | yori.quisbert@poiesisconsulting.com |
159d572f827307176e035f46eae4776db924f081 | 4ececb4fc19d2a88178ea633c421a1a41e643e05 | /apps/breakfast/tools/Life/tools/dashboard/DisplayFrame.py | e2c67276021453f2a74335d0261ec1a970a448a1 | [] | no_license | liqiang76/tinyos_cxl | 0251fd377f6f88eb4c853e5d79ee896e9bc2596b | 6ce948f3202fe358867c7992d022f12896fc5160 | refs/heads/master | 2021-01-23T09:33:35.904553 | 2014-09-18T21:18:36 | 2014-09-18T21:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,455 | py | #!/usr/bin/env python
# Copyright (c) 2014 Johns Hopkins University
# 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 source code must retain the above copyright
# noti... | [
"qiang@QServ.cs.uh.edu"
] | qiang@QServ.cs.uh.edu |
7c7e3a076f3991ceeb423e9bcd8b085e7cbac791 | 4b01c5f80ca469bc86c4016c338bf1d6b3214c56 | /src/automats/domain_reader.py | 4feb6290691e9f1f7331b1ebaff501c5d833f5b4 | [] | no_license | DRSolomon/zenaida | 0093c34b124649c706c2a6119eacee021692b527 | 7099771641be3e53bcefcaf162d515b3b2de99c5 | refs/heads/master | 2020-12-10T12:15:09.564031 | 2020-01-11T17:36:02 | 2020-01-11T17:36:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,579 | py | #!/usr/bin/env python
# domain_reader.py
"""
.. module:: domain_reader
.. role:: red
Zenaida domain_reader() Automat
EVENTS:
* :red:`all-contacts-ok`
* :red:`error`
* :red:`response`
* :red:`run`
"""
#------------------------------------------------------------------------------
import logging
impo... | [
"penev.veselin@gmail.com"
] | penev.veselin@gmail.com |
db9bcc7f0c51bda307511eeacac685e0fe2d1bf7 | 27034876dc372d24d0c659b35e2da394e8d633ca | /tests/test_server/test_base.py | 0b404657eba53018b803f44636f686ccffdf6812 | [
"MIT"
] | permissive | gc-ss/idom | 48458aeb1084889accd8026feb8e58900cff23b4 | bf2a6beb09700ebd81cb569af1ef22fcc46ffcb6 | refs/heads/main | 2023-04-19T13:07:27.925291 | 2021-05-08T18:26:11 | 2021-05-08T18:26:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | import pytest
import sanic
import idom
from idom.server.sanic import PerClientStateServer
from idom.server.utils import find_builtin_server_type
@idom.component
def AnyComponent():
pass
def test_no_application_until_running():
server = find_builtin_server_type("PerClientStateServer")(AnyComponent)
with... | [
"ryan.morshead@gmail.com"
] | ryan.morshead@gmail.com |
3c1cd7d7c6d73f40e800dbe2d10e8ddd73c6f16b | 1503cbcd6b50354523e8a720c880de0adb8dd678 | /bot | 9db29a7b760381bb5f060082443a1a84c747f54b | [] | no_license | caphrim007/botcheck | d7c1ef913c1cd38fcf1bee93fa3984a7d681c881 | 1408b1ea9a8ffc1f8c8358df41d077d59b3b9495 | refs/heads/master | 2016-09-11T05:13:00.556531 | 2013-02-05T17:47:41 | 2013-02-05T17:47:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | #! /usr/bin/env python
import os, sys, getopt, glob
import signal
import createDaemon
import botcheck
import botsqlite
from time import sleep, strftime, localtime
# signal handler function
def handle_sig(signum, frame):
"""handle signal"""
global sigterm_received, sighup_received, debug_lines
debug_lines += [
"... | [
"caphrim007@gmail.com"
] | caphrim007@gmail.com | |
71579406432d7fe7285db017b4e9a222908657e8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02646/s083923096.py | 1d20b8ebcdffa787072d93b40af0fe261e1c510f | [] | 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 | 160 | py | A,V = map(int,input().split())
B,W = map(int,input().split())
T = int(input())
dist = abs(A-B)
diff = V-W
if dist > diff * T:
print("NO")
else:
print("YES") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d9d9816f1ba294edaa8c7b9b634c243f41bf84ec | 40ebd19289ff0d60efcd63d306b9d02698928b3e | /tests/util.py | f38f378034a55c6f52f006eef95ac5816bfaa739 | [] | no_license | lic91/android-platform-ndk | 69b81b27c4548b3500d362b10402d37384bf5d73 | cded731c566e78864f69610182aa04e1da9687a3 | refs/heads/master | 2020-12-02T16:30:06.099404 | 2016-04-29T13:33:19 | 2016-04-29T13:33:34 | 58,011,041 | 0 | 1 | null | 2016-05-04T00:39:06 | 2016-05-04T00:39:06 | null | UTF-8 | Python | false | false | 994 | py | #
# Copyright (C) 2015 The Android Open Source Project
#
# 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 la... | [
"danalbert@google.com"
] | danalbert@google.com |
4aa330b332c7e104942f09ca0c4c39a76b550364 | cda52154e416a8d9d629221391609c3b84e408fd | /bairanalysis/workflows/temporalpatterns.py | 31d147c56633d079e42d1315049cf31f9bffb8f1 | [] | no_license | gpiantoni/bairanalysis | b7b72bf696389a08dc0d4e03d2bd41917cb5e641 | fd22be962eb863384017e98fc6b5ac9a3e527971 | refs/heads/master | 2022-12-09T01:01:06.864491 | 2020-08-27T14:13:27 | 2020-08-27T14:13:27 | 183,632,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | from nipype import MapNode, Node, Workflow
from nipype.interfaces.utility import IdentityInterface
from nipype.interfaces.fsl import FLIRT
from .preproc.preproc import create_workflow_preproc_spm
from .preproc.mri_realign import create_workflow_coreg_epi2t1w
from .glm.temporalpatterns import (
create_workflow_temp... | [
"github@gpiantoni.com"
] | github@gpiantoni.com |
d5a861fcdbbe4ab79ae9c3c44757e51ad51d78aa | cbd240e3b02113707e9dc9e7b6e4f956ecaf1ea8 | /mains/main_dgm_dessins_auxiliary_convnet_convvae.py | 60f7350a509f9c2a7bfcbb232acdba2ec3f4565c | [] | no_license | spell00/NeuralNetworksZoo | 3feb100886c22ecc8ff45987c68b40b56096434f | 2502dc3f835afd2111339800e5a8ae42f60e7359 | refs/heads/master | 2020-05-19T10:17:43.829983 | 2019-05-18T17:45:25 | 2019-05-18T17:45:25 | 184,967,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,784 | py | from numpy import genfromtxt
from torchvision import transforms, datasets
import torch
import os
import numpy as np
import pandas as pd
from sklearn import preprocessing
def __main__():
from data_preparation.GeoParser import GeoParser
from dimension_reduction.ordination import ordination2d
from sklearn.dec... | [
"simonjpelletier@gmail.com"
] | simonjpelletier@gmail.com |
07317e3c804cedcc539ee97d5e4c6b5126832b5f | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/tensorflow/python/keras/api/_v1/keras/preprocessing/__init__.py | 15ae238ba1d8576e0c3cd99c440aa03f8374c1f0 | [] | 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 | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:3fa8cd64112c86a97ce1ef382a86af5034fac9d3e73f7de7c6fc2ce0c50db3e3
size 670
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
137aee76bca4f5d313b8daa2a18995728dc70147 | 644bcdabf35261e07c2abed75986d70f736cb414 | /python-project/Defis/Euler_84_Test.py | 34fe0128eb2eacdea1c5bbf7d41d1defe839bb75 | [] | no_license | matcianfa/playground-X1rXTswJ | f967ab2c2cf3905becafb6d77e89a31414d014de | 67859b496e407200afb2b1d2b32bba5ed0fcc3f0 | refs/heads/master | 2023-04-03T11:56:15.878757 | 2023-03-24T15:52:37 | 2023-03-24T15:52:37 | 122,226,979 | 5 | 20 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | #Ne pas oublier de changer le module à importer
module="Defis/Euler_84"
import sys
import io
#On récupère les données de l'utilisateur
sauvegarde_stdout=sys.stdout
sys.stdout=io.StringIO()
from Euler_84 import *
count1 = sys.stdout.getvalue()[:-1]
sys.stdout=sauvegarde_stdout
from ma_bao import *
#La réponse
reponse... | [
"noreply@github.com"
] | matcianfa.noreply@github.com |
28274fb58547ee1ebcf33d9a281abab79d4ab29a | e7280a7cd9e6a03e5ef129e8f82167e6213eef9c | /website/webapps/django/myproject/myproject/sitemaps.py | 0e164fc2f818121b1e613a6b225c193f6cdbc9a8 | [
"MIT"
] | permissive | jensontham/pythonsingapore | da7b872880e7a9a3805ca4991bce889b558cf9d0 | 8a64afcf3e17d5d42e494f6f67b83f93861a63e4 | refs/heads/master | 2020-12-25T05:29:04.474391 | 2012-11-12T12:06:57 | 2012-11-12T12:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | """Sitemaps that are global to the project (i.e. the django-cms pages)."""
from django.contrib.sitemaps import Sitemap
from cms.utils.moderator import get_page_queryset
from cmsplugin_blog.models import EntryTitle
class BlogSitemap(Sitemap):
changefreq = "weekly"
priority = 0.7
def items(self):
... | [
"mbrochh@gmail.com"
] | mbrochh@gmail.com |
21d450387a2b29adafb5273f746a5d0cd2bc4a9c | 7437ad1203ff272a482e4a7c7266afdbc7a0e619 | /lra/models/gpu_16g/linear_transformer_exp_convspe_k128_shr/listops/r3/config.py | 7cccd5f68123865cd3aeeef76d176371cd488305 | [] | no_license | maximzubkov/spe | 4ccc59d538a2cb4e5f9b0118ef79933eed0b8d95 | d877feb0f6b935152e5431ce374606ba72c08d65 | refs/heads/main | 2023-08-23T02:08:14.253693 | 2021-10-05T17:25:36 | 2021-10-05T17:25:36 | 385,636,912 | 0 | 0 | null | 2021-10-05T17:25:37 | 2021-07-13T14:42:19 | Jupyter Notebook | UTF-8 | Python | false | false | 1,739 | py | # Copyright 2020 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, sof... | [
"zubkov.md@phystech.edu"
] | zubkov.md@phystech.edu |
55c3bc5b3dec8357a238c4cd264073832ffac18c | 492693d325dad3adcb09601c54a5b7b0d00cfdef | /drf_admin/apps/system/views/users.py | 0927063cdb15a3fb458c58aa591fd13a7613fb6a | [
"MIT"
] | permissive | HHHyuming/drf_admin | c682e7c284a9747175a81833aacb5e3fc67a2e42 | 956ab1a96964a8af06b0697e228a3d4238dce109 | refs/heads/master | 2023-03-19T23:52:06.521389 | 2021-03-10T15:28:50 | 2021-03-10T15:28:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | # -*- coding: utf-8 -*-
"""
@author : Wang Meng
@github : https://github.com/tianpangji
@software : PyCharm
@file : users.py
@create : 2020/6/27 17:55
"""
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import mixins
from rest_framework.exceptions import ValidationError
from ... | [
"921781999@qq.com"
] | 921781999@qq.com |
3e56de98eccdbf080daea3fec92c9ce8b459e040 | 255b6dcca3866279653574b03d1be70c8210e2a8 | /provenance/ProvMod.py | 5410efe3f06684a0ff11ff75ba2b0eaa1284d5ec | [] | no_license | pseudoPixels/Collaborative_provmod_sci_workflow | 5b10b4f0f9025bf0a015ef1a81a79325800c7ee0 | 695ab286bc010013308747ca0c62888e7b604c35 | refs/heads/master | 2021-08-23T00:49:42.923785 | 2017-12-02T00:21:50 | 2017-12-02T00:21:50 | 112,797,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,786 | py | # version 2.4.1
import uuid
import logging
import configuration
import os.path
import couchdb
import getpass
from typing import Any
import collections
failure = False
# to disable all logging
#logging.disable(logging.CRITICAL)
# to re-enable all logging
logging.disable(logging.NOTSET)
# logger for the current scri... | [
"golam.mostaeen@usask.ca"
] | golam.mostaeen@usask.ca |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.