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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c7696f623e0fb4101aab65316da05917049a962a | f2807f439602ba047048791318e925bd43037089 | /src/GraphEmb_2/metapath2vec_g_executor.py | 9bc6984b526f3b4dc146a745a3223739f3cc0ae3 | [] | no_license | ddatta-DAC/AD_v2 | 49a88bb75d0e1b0753ca7df2da201dde57302cf9 | bfa9216da7d05d8a3a77c2bbef87f5563534e33e | refs/heads/test1 | 2022-12-01T23:24:10.365604 | 2020-04-29T19:58:44 | 2020-04-29T19:58:44 | 229,307,044 | 0 | 0 | null | 2022-11-21T21:55:15 | 2019-12-20T17:19:14 | Jupyter Notebook | UTF-8 | Python | false | false | 4,408 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
# ---------------
# Author : Debanjan Datta
# Email : ddatta@vt.edu
# ---------------
import yaml
import glob
import pandas as pd
import numpy as np
import os
import argparse
import pickle
import sys
sys.path.append('./../..')
sys.path.append('./..')
try:
from .metapat... | [
"ddatta@vt.edu"
] | ddatta@vt.edu |
5858b91e304d372cba96e6081e6b492df796879e | 36ead9d700288f88de547ede2380716a122754d0 | /third-party/khmer/tests/test_labelhash.py | 7fc9ccbdf806f7ce60e53b31b6a7858d8fecbf01 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | PapenfussLab/assemble_var | dc2b849464b30cfaf0459335c453e0d03487b0ef | b15e55db02cf45b11720e7f1ebbe606e9bc5a26d | refs/heads/master | 2021-01-15T16:00:09.632469 | 2018-12-16T20:29:17 | 2018-12-16T20:29:17 | 39,121,045 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 19,385 | py | #
# This file is part of khmer, http://github.com/ged-lab/khmer/, and is
# Copyright (C) Michigan State University, 2009-2013. It is licensed under
# the three-clause BSD license; see doc/LICENSE.txt.
# Contact: khmer-project@idyll.org
#
# pylint: disable=missing-docstring,protected-access
import khmer
from khmer impor... | [
"admin@local.host"
] | admin@local.host |
521c287bd10bbbd9bbfde41e796c499eaee32c7a | 40d5ae8a553a39145d4396fe58b562d911bbd5da | /battles/migrations/0016_invite.py | 3aeb071dc539b3f05c1667ed638a626600b01840 | [
"MIT"
] | permissive | vanessa/pokebattle | 56a5f5592ddba999cc6a62aa080795a781ce9316 | 3017ad226bc05cc06cb5eb34455c13d959be10ab | refs/heads/develop | 2021-04-06T09:12:10.829904 | 2018-07-13T07:35:01 | 2018-07-13T07:35:01 | 125,147,775 | 3 | 2 | MIT | 2021-01-05T01:18:02 | 2018-03-14T03:08:22 | Python | UTF-8 | Python | false | false | 863 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-14 18:28
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depend... | [
"vanessa@vinta.com.br"
] | vanessa@vinta.com.br |
78a5c21745ea8870d2d34bb1b868db982f4cf262 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/managednetwork/get_scope_assignment.py | f9ad938e743b2ff22373807430e29e91f6ab691a | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 5,226 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | morrell.noreply@github.com |
35973c34474ee8d65c52f26030f16dce2bf7460c | 6c674f5a539fc9991a13bf56df35328b16afcd6f | /ZombieDice.py | 96c242446c362f7d86ee005405ba5235933cd77d | [] | no_license | yudongqiu/ZombieDice | 22e4e05be06fa65da054487464ee41242f03d0b3 | 18905a3068260332836c1c399530a153158c3c89 | refs/heads/master | 2021-03-19T16:44:23.915460 | 2016-08-17T00:18:13 | 2016-08-17T00:18:13 | 62,264,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,914 | py | #!/usr/bin/env python3
# -- coding: utf-8 --
#==========================
#= Zombie Dice Game =
#==========================
import os, sys, random, time, copy, collections
from functools import update_wrapper
def decorator(d):
"Make function d a decorator: d wraps a function fn."
def _d(fn):
ret... | [
"saviorbruce@gmail.com"
] | saviorbruce@gmail.com |
979d9259dbdf7500c9bfd1d8d1f9286f7232dcba | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/conda-4.0.5-py27_0/lib/python2.7/site-packages/conda/cli/main_list.py | c37c8c2a0629582c169ef8c61b4d2638789c35da | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 8,335 | py | # (c) Continuum Analytics, Inc. / http://continuum.io
# All Rights Reserved
#
# conda is distributed under the terms of the BSD 3-clause license.
# Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause.
from __future__ import print_function, division, absolute_import
import re
import os
import sys
from o... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
f1aac9ea96d3d36875ed3669c8ccd6efedd52f51 | b8d902fa0ef50c9ef01d35b7afa9e4025d876401 | /src/meli/__init__.py | a9e4405cc46098ae49966bed3fd567856313aaaf | [] | no_license | calazans10/python-sdk | 112b06c1c8e21a1b13209f5eefbec44309878b60 | d0256d8b3659b4b397105d5c78666024e02cd754 | refs/heads/master | 2021-01-17T22:36:26.965834 | 2015-04-13T00:14:45 | 2015-04-13T00:14:45 | 27,735,579 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | from meli import Meli
| [
"calazans10@gmail.com"
] | calazans10@gmail.com |
3ca82bf6958a3c29a702365c90eb2335a371d9f5 | e5a044708032b853f1cdf8906da63502716fd410 | /openapi_client/models/secure3_d21_authentication_request_all_of.py | 5cdc5ba3b71bfcd818d22efde29becbba6603282 | [] | no_license | GBSEcom/Python | 4b93bab80476051fc99f379f018ac9fa109a8a6a | 5fa37dba8d0c3853686fdc726f863743376060c9 | refs/heads/master | 2021-12-04T12:55:29.605843 | 2021-11-19T22:01:03 | 2021-11-19T22:01:03 | 136,058,345 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 19,666 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
caf39698290e129ad3792b9107ca5687a357449d | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/dygraph_to_static/test_layer_hook.py | 55f4681a99005507aabe9e6bededeba3816e3732 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 2,894 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
6f9f7eae54146e0ff51cae4b9fdb8aaff216caf8 | ae0aceddc4b8803f7b0a249ac250f37fea2f1a2c | /chapter3/3-expression_part3.py | c13ec2a79c495a4997f6271749d7497b323534ef | [] | no_license | c18gour/K_book | 429d2b6f28a07f4f60b939f48cd3e03612df18b4 | f31c9955caf4b49cb066ae0fa184bf626833298b | refs/heads/master | 2021-05-30T01:34:10.280004 | 2015-11-28T13:21:18 | 2015-11-28T13:21:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | x=5
x+2
2*(3-1)
(2+1)**(5-2)
2*3-1
2+1**5-2
5*2+3
(5*2)+3
2**1+1
3*1**3
3*4+2
15/3-2 | [
"giannispappas@gmail.com"
] | giannispappas@gmail.com |
7c4f05135628bb093508fbb078b0550daa3593df | d7defc3b3753cecb97c6f2874c3e5210bf8557ce | /dashboard/admin.py | 16726e9cd1a13fb231939d07c2de53a659ce7219 | [] | no_license | vineetkashyap/tranageapp | 6f769febecc3d92827da1ea98707ae17a13f5b89 | cfc1d9b36f38fbebc290886661c25b05829412ec | refs/heads/master | 2023-06-02T00:05:30.059420 | 2021-06-22T11:26:12 | 2021-06-22T11:26:12 | 365,577,655 | 0 | 1 | null | 2021-06-21T17:18:55 | 2021-05-08T17:50:20 | CSS | UTF-8 | Python | false | false | 755 | py | from django.contrib import admin
from .models import Add_update,Add_project,Employee_model
# Register your models here.
@admin.register(Add_update)
class Add_update_Admin(admin.ModelAdmin):
list_display = ['id','heading','description','location','expiry_date']
@admin.register(Add_project)
class Add_project_Admin(... | [
"vkvineet66@gmail.com"
] | vkvineet66@gmail.com |
7a2771ae7026f81dd8da84ca58cb0fc21461e410 | 71a7c4bacbc361fa6966464506468cea247d70bc | /euler45.py | 46e6fe54334aa76e96ac17ef6343ca9944abb526 | [] | no_license | sputnick1124/ProjectEuler | d347297798c5ec8802c9f3148e0ce71e345f71b5 | 8b6b770d54a7932dd8a14ec5ad596405f9a75916 | refs/heads/master | 2020-03-27T03:42:01.547600 | 2015-05-17T19:54:04 | 2015-05-17T19:54:04 | 31,292,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | from time import time
def ispent(num):
n=((24*num+1)**.5+1)/6
return int(n)==n
def ishex(num):
n=((8*num+1)**.5+1)/4
return int(n)==n
def isall(num):
return ispent(num) and ishex(num)
t1=time()
tph=40755
t=285
while tph==40755:
t+=1
tri=(t*t+t)/2
if isall(tri):
tph=tri
print(tri... | [
"sputnick1124@comcast.net"
] | sputnick1124@comcast.net |
2f5249c862bf38aff8a5601b4bafa5931ff822c8 | 75c8b9ff2fa8fcb5ea4029a4e640c1d3cd92fc79 | /examples/mailbox/distributed/pong.py | a3e758fb5efc7548e232cf3c8c7d081b8ce142b3 | [
"ISC"
] | permissive | victorpoluceno/xwing | b4244b86e1196c6b08ad1d9ea8bd92e49dea756d | a6d2b9ddfa1bdf383cbf52d4dc81035222ebeefa | refs/heads/development | 2021-01-18T12:14:13.771561 | 2016-10-22T16:44:21 | 2016-10-22T16:44:21 | 49,905,226 | 12 | 2 | null | 2016-10-22T16:44:21 | 2016-01-18T21:06:00 | Python | UTF-8 | Python | false | false | 436 | py | from xwing.mailbox import init_node, start_node, spawn
async def pong(mailbox):
while True:
data = await mailbox.recv()
if len(data) == 1 and data[0] == 'finished':
print('Pong finished')
break
print('Pong received ping')
message, pid = data
await m... | [
"victorpoluceno@gmail.com"
] | victorpoluceno@gmail.com |
2ac2f027c2ebfbff13ac3ef457a9b83b6a35ce07 | 42c899d6ef5df0b93cef6257af4f444f8db2d610 | /mtdg/inputters/inputter.py | 9cb9d5ef34ef02afa50941468d932786ae1977e4 | [] | no_license | hongweizeng/Multi-Turn-Dialogue-Generation | 97031255b49f18634fb2acb5c742f3d4a8bcb1a3 | 9dbf7e9e9eb36550bbbb9a98627d28bc5f8906c3 | refs/heads/master | 2022-11-29T18:38:41.190486 | 2018-09-05T01:45:27 | 2018-09-05T01:45:27 | 141,300,694 | 3 | 2 | null | 2022-11-28T18:46:29 | 2018-07-17T14:24:16 | Python | UTF-8 | Python | false | false | 1,461 | py | def read_and_tokenize(dialog_path, min_turn=3):
"""
Read conversation
Args:
dialog_path (str): path of dialog (tsv format)
Return:
dialogs: (list of list of str) [dialog_length, sentence_length]
users: (list of str); [2]
"""
with open(dialog_path, 'r', encoding='utf-8') a... | [
"zhw1025@gmail.com"
] | zhw1025@gmail.com |
e76ee9bd2e39b0f9c9ba6271d6e3596c11174f81 | e616ea35ead674ebb4e67cae54768aaaeb7d89c9 | /project/alma/sections/enum.py | 22fa36ba0bcd4ed43e21f687c26270bc03f661d2 | [] | no_license | VWApplications/VWAlmaAPI | 12bb1888533cf987739b0e069737afa6337141e1 | 3a8009b17518384c269dfee3c8fe44cbe2567cc0 | refs/heads/master | 2022-04-02T10:26:49.832202 | 2020-02-12T04:46:31 | 2020-02-12T04:46:31 | 161,098,215 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from enum import Enum
class MethodologyTypeSet(Enum):
"""
Tipos de metodologia aplicado a seção.
"""
TRADITIONAL = "TRADITIONAL"
TBL = "TBL"
class ConfigTitleSet(Enum):
"""
Títulos de avaliações.
"""
TRADITIONAL = "TRADITIONAL"
EXERCISE = "EXERCISE"
IRAT = "IRAT"
GR... | [
"victorhad@gmail.com"
] | victorhad@gmail.com |
e9827a46f8ab3781d268ec7b67b63ed1fdd75909 | 2b86301d5ad3fecaa5a300cabfe6b4dfc82b78ed | /venv/Lib/site-packages/nbformat/validator.py | 54c4d2a3843fb78e96e36366f8805e85072c03f2 | [
"MIT"
] | permissive | sserrot/champion_relationships | 72823bbe73e15973007e032470d7efdf72af3be0 | 91315d6b7f6e7e678d9f8083b4b3e63574e97d2b | refs/heads/master | 2022-12-21T05:15:36.780768 | 2021-12-05T15:19:09 | 2021-12-05T15:19:09 | 71,414,425 | 1 | 2 | MIT | 2022-12-18T07:42:59 | 2016-10-20T01:35:56 | Python | UTF-8 | Python | false | false | 10,446 | py | # Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
import json
import os
import pprint
import sys
import warnings
try:
from jsonschema import ValidationError
from jsonschema import Draft4Validator as Validator
except Impor... | [
"sserrot@users.noreply.github.com"
] | sserrot@users.noreply.github.com |
d88a28daced63f58af574720f1837e5b7d61e973 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/205.py | a6d9f9958d2fbf7364dcebe57e5ba6b53efb58ec | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py |
t = int(input())
for i in range(1, t + 1):
value = input();
goal, other_horses = [int(s) for s in value.split(" ")];
#print("gola:{}".format(goal))
#data containers
start_poses = [0 for h in range(other_horses)]
speeds = [0 for h in range(other_horses)]
#read input
for h in range(0, other_horses):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
4cb601304c5a85d4f868ca26009525434a5e4ae3 | 2219616e91bd222fc10ae06fb8137a10eb53c784 | /src/logdogs.py | 159e9a243dc501c96a6a9c0bb421a17ce53e6874 | [
"MIT"
] | permissive | qt-pay/logdogs | c63ea207c29279a3037da3b95bcb2b5f82f7023d | d075435580b7cd7dcff8c6e09d08a5bc4b28f35b | refs/heads/master | 2021-04-06T12:01:36.558592 | 2017-11-06T09:46:58 | 2017-11-06T09:46:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,004 | py | """
A daemon to monitor keywords in any log files specified by glob pattern
"""
# standard libraries
from __future__ import print_function
import os
import sys
import re
import time
import logging
import traceback
import atexit
from collections import defaultdict
from stat import ST_DEV, ST_INO
from email.mime.text i... | [
"617080352@qq.com"
] | 617080352@qq.com |
2d04b36b8338a3cac4b74f030f5291425fd10e78 | b5f9f93a415a5cc0117a580c5da12804e68c141d | /scripts/motions/cvfilter1.py | 8504c5b1c6492a3996f710f7d07ab0847a7e8899 | [] | no_license | akihikoy/lfd_trick | 71f89d80abc27ffc6fbd5bc609322918a4f8264e | b7bf0189db7bcef07772db17de29302d6e8ba2bf | refs/heads/master | 2021-01-10T14:22:53.341666 | 2016-03-29T18:16:15 | 2016-03-29T18:16:15 | 50,623,958 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,309 | py | #!/usr/bin/python
from core_tool import *
def Help():
return '''Filter for cv (color_detector nodes).
Usage:
cvfilter1
Test this filter
Use CVApplyFilter from other scripts.
'''
#idx: index of color detection node (1 or 2)
def CVApplyFilter(cvfiltered, msg, idx):
if 'amount' not in cvfiltered:
... | [
"info@akihikoy.net"
] | info@akihikoy.net |
f540455aeea0a47f0e5910571ffd339bbb8d69e8 | 33982dafec0e388d911853ebd81f7870a364f39e | /src/micro_client/registry/__init__.py | 53b6fa80b624f65047510adcc05bac5834516859 | [
"MIT"
] | permissive | ashcrow/micro-client | cc0cea27ceee21b36addda0c2075b31f7ebd8eb6 | cfe6ac45606eea7310a2336c5e733e2b540d5e01 | refs/heads/master | 2021-09-15T20:31:40.644763 | 2018-06-10T16:41:47 | 2018-06-10T16:43:13 | 115,768,076 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | # Copyright 2017 Steve 'Ashcrow' Milner
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, ... | [
"stevem@gnulinux.net"
] | stevem@gnulinux.net |
634064815e745117b3b4838009425d9f3da70117 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2020_03_01/aio/operations/_iot_hub_operations.py | adbacbbea4f5177e1f024b6c5679a9b3416cb86e | [
"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 | 8,342 | 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 |
88286460c7a9c654aa130ade5dde04444853e9bb | ad9c2138ab8e0e8b50277f294ccdb29ef9d67747 | /tests/endpoints/test_password_reset.py | 98cce8b19c91cd3e9ed20d9460ce405ae3561eee | [
"MIT"
] | permissive | accent-starlette/starlette-auth | 3c6e3804a7d49b673cf108e4874aff426b55da74 | d07f4bf7f856c54d05eb08b0ddff5d1bcbdda3d9 | refs/heads/master | 2022-01-02T02:17:25.041209 | 2021-12-10T17:19:37 | 2021-12-10T17:19:37 | 183,644,203 | 11 | 5 | MIT | 2021-12-10T17:00:58 | 2019-04-26T14:35:29 | Python | UTF-8 | Python | false | false | 2,956 | py | import pytest
from starlette_auth import config
def test_get(client):
response = client.get("/auth/password/reset")
assert response.status_code == 200
assert "form" in response.context
assert "request" in response.context
def test_post_redirects(client, monkeypatch):
# its important here that t... | [
"stuart@accentdesign.co.uk"
] | stuart@accentdesign.co.uk |
662be7c5282126d63dce036e0d24b1546a85487b | cbe43165e6e7ad2c5ae3194f9a09ffd7a4e0e188 | /dio_core_test/DS/Cli/RemoteScpCli.py | 4a649a3b6970113c24102d6c45ce896005910b3a | [] | no_license | YangXiaos/dio_core | 0ea9d581c0701b76a8efb8e68fff3287ac556742 | 81a964bdb56dfed3ff3611ace4ef7f4c818a0918 | refs/heads/master | 2020-03-28T20:24:03.679588 | 2020-03-08T08:52:32 | 2020-03-08T08:52:32 | 149,065,824 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 53 | py |
# 远程scp 下载脚本
def devScpCli():
pass
| [
"178069857@qq.com"
] | 178069857@qq.com |
ed74886fda93206bc1650e8609437a1e31ba4732 | c42b8493a2d6fa0729772a4be32770cae185adfe | /nullandnotnull.py | 59860175376670cbdfa4c8eb6c04a907be67f3d2 | [] | no_license | ashishjsharda/Pandas | f834d2e88f62c6b989910fc4ea54475abc270cc5 | a4ffcbc5cb27f4007c56658eb0df08cabc7854d5 | refs/heads/master | 2023-01-30T01:09:56.160918 | 2020-12-15T04:43:45 | 2020-12-15T04:43:45 | 282,204,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import pandas as pd
import numpy as np
ser=pd.Series([1,5,0,-1,np.nan,12])
print(ser)
print(ser.isnull())
print(ser.isna())
print(ser.notnull())
| [
"noreply@github.com"
] | ashishjsharda.noreply@github.com |
1b45b4f4389994ab9640d7b90be217ecd0f48c87 | 42cf71af8a175532abf04eaa1949e8d108ca85d7 | /netbluemind/mailbox/api/IMailboxes.py | e91befcb327518330295b969e49764692e64080b | [] | no_license | SebCorbin/netbluemind | 6098871b21058db49a5d8f314bc7d0e07d3b964f | 38fbd9a7363213936ca0856b66840dfa781c209c | refs/heads/master | 2021-05-12T19:43:55.079490 | 2018-01-11T13:34:09 | 2018-01-11T13:34:09 | 117,103,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,396 | py | #
# BEGIN LICENSE
# Copyright (c) Blue Mind SAS, 2012-2016
#
# This file is part of BlueMind. BlueMind is a messaging and collaborative
# solution.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of either the GNU Affero General Public License as
# published by the... | [
"seb.corbin@gmail.com"
] | seb.corbin@gmail.com |
d1c440b76e4ab9e6077d3c54b44f9f8d30eb178c | 1f4204f903657884d9cccfd44b19ecb531b59ded | /test_settings/196_4_8_1000.py | c1b10e5ab910361946660ce5b7f94f0cb0b45ce4 | [] | no_license | fmcc/StylometricAnalyser | 795a8e4abe264ee18ab3bcb34bd128bcd06ac5ca | e86305a63c95d8b533cab4a3be0010c2fee0ff14 | refs/heads/master | 2021-01-23T08:38:44.961082 | 2013-08-31T20:23:36 | 2013-08-31T20:23:36 | 11,097,508 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py |
import os
DB_PATH = os.getcwd() + '/database/greek_texts.db'
LOGGING = True
DB_LOGGING = False
NGRAM_WORDS = False
NGRAM_LENGTHS = {
'MIN': 4,
'MAX': 8
}
NO_SPACES = True
RESTRICT_VECTOR_SPACE = 1000
# If selected, texts will be divided according to their original top-level divisions (Books etc... | [
"finlaymccourt@gmail.com"
] | finlaymccourt@gmail.com |
432413c5286986b43d8a1b35ae09e90cc1a0ab84 | 6cefb77248f43559a7aab1ef0a18dc513d408483 | /prokmer.py | e0bd448eb2bc912b48d69ad90a99e67042a4cc98 | [] | no_license | zheins/rosalind_algorithms | 8df10d0028d8c60e06a969c6b0d835fe2c498926 | b9856796e562cf5993f13da75adebed58aa3ca8f | refs/heads/master | 2021-01-10T01:48:20.209208 | 2015-10-31T17:35:39 | 2015-10-31T17:35:39 | 45,252,883 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | import sys
def hamming(pattern, check):
match = False
distance = 0
for i in range(len(pattern)):
if check[i] != pattern[i]:
distance += 1
return distance
def neighbors(s, d):
l = []
if d==0 or len(s)==0:
return[s]
for n in 'ACGT':
d1 = d-1
... | [
"="
] | = |
86e9016bc78025af85dd85536ca4111085b867e2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2403/60839/290002.py | c20b0c3053800cbafb785bcf5e7ba93343c0316d | [] | 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 | 268 | py | x=int(input())
y=int(input())
left=x
ans=[]
for i in range(0,y):
ans.append(0)
i=0
while left!=0:
if left-i-1>=0:
ans[i%y]+=i+1
left=left-i-1
else: #left!=0:
ans[i%y]+=left
left=left-left
i+=1
print(ans) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
bf00bd4f26d68eb020febf813f8adec10ef4cb6c | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/ipython-1.2.1-py27_0/lib/python2.7/site-packages/IPython/nbconvert/writers/base.py | 914e9c4ffc8e4f2e55879544145da9b06d0d1302 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,770 | py | """
Contains writer base class.
"""
#-----------------------------------------------------------------------------
#Copyright (c) 2013, the IPython Development Team.
#
#Distributed under the terms of the Modified BSD License.
#
#The full license is in the file COPYING.txt, distributed with this software.
#-------------... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
f9d4657e2b79d5391ae2e83c6bd47eaa7573ac62 | cd741a0d675ff99c297ed226439561f99ca2932c | /OOP_day01/gun.py | 8917eccc0d7226cbc55e1846378a3f5fc2772b2f | [] | no_license | SoliDeoGloria31/OOP | f5e52461f9e6f60f31af8f6e00641d88443626f2 | b09f6db93879b9f985770488dae513d77aa91942 | refs/heads/master | 2020-04-18T11:03:32.737852 | 2019-01-25T04:59:03 | 2019-01-25T04:59:03 | 167,405,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # gun.py
# 枪械类
class Gun:
def __init__(self,
name, max_bullets, bullets_left,
dest_ratio, firing_bullets):
self.name = name # 名称
self.max_bullets = max_bullets # 弹夹容量
self.bullets_left = bullets_left
self.dest_ratio ... | [
"mortaltiger@163.com"
] | mortaltiger@163.com |
25c1c8dfa5ffc6fc27bb4c8b331aacd80bc386e7 | 43e900f11e2b230cdc0b2e48007d40294fefd87a | /ReferenceSolution/82.remove-duplicates-from-sorted-list-ii.139653354.ac.py | 72447ddba7e7ef7601e80c11712580e36a28d21c | [] | no_license | DarkAlexWang/leetcode | 02f2ed993688c34d3ce8f95d81b3e36a53ca002f | 89142297559af20cf990a8e40975811b4be36955 | refs/heads/master | 2023-01-07T13:01:19.598427 | 2022-12-28T19:00:19 | 2022-12-28T19:00:19 | 232,729,581 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | #
# [82] Remove Duplicates from Sorted List II
#
# https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/description/
#
# algorithms
# Medium (29.87%)
# Total Accepted: 127.7K
# Total Submissions: 427.4K
# Testcase Example: '[]'
#
#
# Given a sorted linked list, delete all nodes that have duplicate n... | [
"wangzhihuan0815@gmail.com"
] | wangzhihuan0815@gmail.com |
a9faca58ec4af00b6958d150bad0356673a11d1d | 057d662a83ed85897e9906d72ea90fe5903dccc5 | /.PyCharmCE2019.2/system/python_stubs/-1247971762/nacl/_sodium.py | f5d9843c516b16c196d8f850286b3017439858e2 | [] | no_license | Karishma00/AnsiblePractice | 19a4980b1f6cca7b251f2cbea3acf9803db6e016 | 932558d48869560a42ba5ba3fb72688696e1868a | refs/heads/master | 2020-08-05T00:05:31.679220 | 2019-10-04T13:07:29 | 2019-10-04T13:07:29 | 212,324,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | # encoding: utf-8
# module nacl._sodium
# from /usr/lib/python3/dist-packages/nacl/_sodium.abi3.so
# by generator 1.147
# no doc
# no imports
# no functions
# no classes
# variables with complex values
ffi = None # (!) real value is '<CompiledFFI object at 0x7fc5088234d0>'
__loader__ = None # (!) real value is '<_fr... | [
"karishma11198@gmail.com"
] | karishma11198@gmail.com |
354e82fc59721b9b48622a6e5c2ac25a08e4c440 | 4500172cf203b078bd1826062821af16018747ee | /project/buy_orders/migrations/0003_auto__add_field_buyorder_shipping_county.py | 04462e37513fbd5ce30301cb2949628e1c8da483 | [] | no_license | chrisblythe812/gamemine | 726ad338279a80676eee9693a6ecc6bfca5eaf13 | 7c3acc39a24c38ae2ee06b71104a24cfbbde8453 | refs/heads/master | 2020-04-05T22:53:46.622902 | 2012-01-26T00:50:28 | 2012-01-26T00:50:28 | 3,269,945 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,299 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'BuyOrder.shipping_county'
db.add_column('buy_orders_buyorder', 'shipping_county', self.gf(... | [
"christopher.ratha@gmail.com"
] | christopher.ratha@gmail.com |
916770e0875df4e7da900aeb509ad5902babdd8b | 3222a9f99dc04eae93442f27a49259f2c74320a9 | /uninas/model/heads/darts.py | bfc37c2e68c8752756436216fae2b2833ea125a8 | [
"MIT"
] | permissive | Light-Reflection/uninas | 55a754c997b6d7a48aa6ee93fc4f1211c9a35740 | b5727308b48b2fe399cc9b5d5732f3f5fd913b35 | refs/heads/main | 2023-02-20T11:48:06.815664 | 2021-01-25T09:42:43 | 2021-01-25T09:42:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | import torch
from uninas.model.heads.abstract import AbstractHead
from uninas.model.modules.abstract import AbstractModule
from uninas.utils.shape import Shape
from uninas.register import Register
import torch.nn as nn
class BasicDartsAuxHeadModule(nn.Module):
def __init__(self, c: int, num_classes: int, init_poo... | [
"kevin.laube@uni-tuebingen.de"
] | kevin.laube@uni-tuebingen.de |
6f39418b10650d551820ea2a5e3c5c1f12f7d297 | ffbf33d8486a49c77152d814a2217620643f8ce1 | /example.py | 540b76aba22b847f4c3298421bec5b03ea063225 | [] | no_license | codesharedot/dentacoin-price-gnome-ticket | fad8c6ea24a152467bc518e5d466c1684dc6183e | 869eb92c9b3871f3bc79b3a0c5c792f52792b4a7 | refs/heads/master | 2020-08-21T07:44:30.869487 | 2019-10-18T21:55:26 | 2019-10-18T21:55:26 | 216,112,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | #!/usr/bin/env python
# rename to dentacoin.1r.60s.py and put in ~.config/argos
import re
from gi.repository import Gio
from datetime import datetime
import time
import json
import requests
def coin():
data = requests.get("https://api.coinmarketcap.com/v1/ticker/dentacoin/")
price = data.json()[0]["price_usd"... | [
"codeto@sent.com"
] | codeto@sent.com |
d0fe769b3f739e25981e583fdbcb874d4c996e23 | 446d9c9e98bac9bb7d6ba9d6f2639fd1ab0e68af | /pythonBook/chapter08/exercise8-45.py | 8a6d1acb304c0904f22d4d0c98285dad19176d3d | [] | no_license | thiagofb84jp/python-exercises | 062d85f4f95332549acd42bf98de2b20afda5239 | 88ad7365a0f051021034ac6f0683b3df2de57cdb | refs/heads/main | 2023-07-19T21:15:08.689041 | 2021-08-17T10:59:09 | 2021-08-17T10:59:09 | 308,311,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # 8.45. Imprimindo os elementos de uma lista
ESPACOS_POR_NIVEL = 4
def imprimeElementos(l, nivel=0):
espacos = ' ' * ESPACOS_POR_NIVEL * nivel
if type(l) == list:
print(espacos, "[")
for e in l:
imprimeElementos(e, nivel + 1)
print(espacos, "]")
else:
print(es... | [
"thiagofb84jp@gmail.com"
] | thiagofb84jp@gmail.com |
6e47a6d947ff574b9b95598a3b03438747dd8114 | da0a0045d4e7b0de12a9459e5546332ccc7cce0e | /AST_GraphDB/study/jedi/fluent_ml/prm/atoms/project.py | b26d3db71fc1e9966f56a0bacdf6dd7c2d3a00c8 | [] | no_license | git4rajesh/python-learnings | d64e7c76698b7f2255a77a8233a90774db78f030 | ee6b7f7844079e94801c19a1dd80921e1741e58e | refs/heads/master | 2022-11-01T08:47:45.097034 | 2019-04-28T02:14:34 | 2019-04-28T02:14:34 | 172,183,208 | 0 | 1 | null | 2022-10-12T08:35:43 | 2019-02-23T07:04:59 | Python | UTF-8 | Python | false | false | 15,486 | py | from automation.core.datastore.tinydb_datastore import DataStore
from automation.integration.src.time_testcase_helper import TimeTestCaseHelper
from automation.fluent_ml.prm.features.attribute import Attribute
from automation.fluent_ml.prm.atoms.artifact import PRM
from automation.fluent_ml.prm.features.prm_verify impo... | [
"rvenkataraman"
] | rvenkataraman |
56820791ef6465af1280c99946f90aa563aa1085 | bd55c7d73a95caed5f47b0031264ec05fd6ff60a | /apps/core/migrations/0028_auto_20180609_1122.py | 3cfe08f42b6976a4f54d3b2fbf6d1522a5943236 | [] | no_license | phonehtetpaing/ebdjango | 3c8610e2d96318aff3b1db89480b2f298ad91b57 | 1b77d7662ec2bce9a6377690082a656c8e46608c | refs/heads/main | 2023-06-26T13:14:55.319687 | 2021-07-21T06:04:58 | 2021-07-21T06:04:58 | 381,564,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | # Generated by Django 2.0.5 on 2018-06-09 02:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0027_auto_20180609_1100'),
]
operations = [
migrations.AddField(
model_name='vendorbran... | [
"phonehtetpaing1221@gmail.com"
] | phonehtetpaing1221@gmail.com |
35d8138d7d2c4d5933446c2113970509bc84e41c | 5abb52c3ee859ee5876601025479e9d3214f829f | /meiduo/meiduo/utils/models.py | bf7a320e05ea579c837b00f9a19d711fe9043645 | [] | no_license | RapperDream/meiduo-18 | 05ca46628f5575b31d6a0b2115786dd3f0e57f5a | d7f5aad879f0e420ac16e577d107236bdec816ee | refs/heads/master | 2020-04-22T02:39:01.099998 | 2019-02-23T14:53:39 | 2019-02-23T14:53:39 | 170,057,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from django.db import models
class BaseModel(models.Model):
"""
为模型类补充字段
"""
create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间")
update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间")
class Meta:
abstract = True # 说明是抽象模型类,只能继承使用,数据库迁移时不会创建
| [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
d5a3ec9ce37ad51f512af4b6d0789ab415b5ba1a | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/models/simulation_automation_status.py | 92c255d18fe113a1bab8d5c3c7fd789f10db03ca | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 247 | py | from enum import Enum
class SimulationAutomationStatus(str, Enum):
Unknown = "unknown",
Draft = "draft",
NotRunning = "notRunning",
Running = "running",
Completed = "completed",
UnknownFutureValue = "unknownFutureValue",
| [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
d8721c5cbeafc2e9c1c1252860e2f8b37f17a391 | c2b0ee4ef8fb8e933966c7219a6cac6484ce03fb | /lib/python3.7/site-packages/storages/backends/apache_libcloud.py | ccbab93fa76a916cf01260f9bb1f3a9b98d4e080 | [
"MIT"
] | permissive | dukuaris/Django | 0b40e79d9e461c28064a83cc42d7710b49b43a19 | d34f3e3f09028511e96b99cae7faa1b46458eed1 | refs/heads/master | 2022-12-09T04:05:09.329256 | 2020-03-21T02:17:20 | 2020-03-21T02:17:20 | 236,935,131 | 0 | 0 | MIT | 2022-12-08T01:51:39 | 2020-01-29T08:24:36 | Python | UTF-8 | Python | false | false | 7,203 | py | # Django storage using libcloud providers
# Aymeric Barantal (mric at chamal.fr) 2011
#
import io
import os
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.files.base import File
from django.core.files.storage import Storage
from django.utils.deconstruct import... | [
"dukuaris@gmail.com"
] | dukuaris@gmail.com |
f0a4547e6a232f3f11bd3512475eab4acf560898 | 4c3e2557044884be630d3c6c47c3e446f951c681 | /Contest/ABC213/D.py | c9d5a6af81fab8ec26f50fef91b0b88fb51d270e | [] | no_license | monda00/AtCoder | 01bdf89338c22f1792fde7f85728e01d97e5fd34 | abf947f2cdfe87486ad8935ba078918d4809573a | refs/heads/master | 2021-11-10T00:54:01.144582 | 2021-11-07T13:24:03 | 2021-11-07T13:24:03 | 186,128,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | import sys
sys.setrecursionlimit(300000)
n = int(input())
G = [[] for _ in range(n+1)]
for _ in range(n-1):
a, b = map(int, input().split())
G[a].append(b)
G[b].append(a)
for i in range(n+1):
G[i].sort()
ans = []
def dfs(crr, pre):
ans.append(crr)
for nxt in G[crr]:
if nxt != pre:
... | [
"monda0524@gmail.com"
] | monda0524@gmail.com |
5f13a5731ec7648c2470da08c82a363ff7a81b63 | 00d7e9321d418a2d9a607fb9376b862119f2bd4e | /pad/__init__.py | a5876ba9204b715a3a265116592e5a75788d2c5c | [
"MIT"
] | permissive | baluneboy/pims | 92b9b1f64ed658867186e44b92526867696e1923 | 5a07e02588b1b7c8ebf7458b10e81b8ecf84ad13 | refs/heads/master | 2021-11-16T01:55:39.223910 | 2021-08-13T15:19:48 | 2021-08-13T15:19:48 | 33,029,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | """
Principal Investigator Microgravity Services (PIMS) Acceleration Data (PAD)
A nested acronym.
""" | [
"ken@macmini3.local"
] | ken@macmini3.local |
bedd5181a1ba501bba3b0ec97635bac44371d927 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /070_oop/007_exceptions/_exercises/templates/GoCongr/019_Trapping Constraints but Not Errors.py | c7877049499a055c7aded2725d5c48260e4f679e | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 261 | py | # # Trapping Constraints but Not Errors
# ___ f x
# a.. x < 0, 'x must be negative'
# r___ x ** 2
#
# f(1) # error
#
# ___ reciprocal x
# a.. x != 0 # A useless assert!
# r_ 1 / x # Python checks for zero automatically | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
63988acc2894eb16653f38318a1236d9873446d2 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /sesv2_write_f/configuration-set-sending-option_put.py | 0c4fe676cc377f1c332629e5f8ab03286fac166f | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
5471915619476e2a267adf52f06feba9b1d889d6 | 50f999adab54182167d198358955a8c09f044cc7 | /QR Extractor/fhirclient/r4models/medicinalproductauthorization.py | 7eee5cc60529573c66e20b980f290185da011755 | [] | no_license | Healthedata1/MyNotebooks | cd4056abf29996c9b2c246ab7a0091c368168463 | 8ca5e878d9d8ff5d47e46620771e716dede6d762 | refs/heads/master | 2023-04-27T00:43:19.750672 | 2023-04-19T16:44:41 | 2023-04-19T16:44:41 | 167,263,998 | 4 | 2 | null | 2022-12-08T04:40:52 | 2019-01-23T22:28:39 | Jupyter Notebook | UTF-8 | Python | false | false | 10,551 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.6.0-bd605d07 (http://hl7.org/fhir/StructureDefinition/MedicinalProductAuthorization) on 2018-12-20.
# 2018, SMART Health IT.
from . import domainresource
class MedicinalProductAuthorization(domainresource.DomainResource):
""" The regulator... | [
"ehaas@healthedatainc.com"
] | ehaas@healthedatainc.com |
1eb144c9a4e3a9f82739a3589ab27584f365abd5 | fa9ede7ec36f30bb7c84a1006cbfaa4339b7b457 | /version1.py | de3d222e841437c0bf7e2b2f3040df482a2dc276 | [] | no_license | pushkargodbole/FlightGearPlotter | b004ce0eef1ac999d9f14eea0fa443e176834f73 | ab99ec50aa307d90fe05d9a2ea680d66dbaf2aee | refs/heads/master | 2021-01-17T14:50:56.509786 | 2013-05-01T00:55:31 | 2013-05-01T00:55:31 | 44,732,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | #This file uses socket communication to interface with FG and plot the data using pylab plot
from threading import Thread
from pylab import *
from string import strip, split
from time import *
from socket import *
import csv
class storedata(Thread):
def run(self):
host = "localhost"
port = 5500
... | [
"none@none"
] | none@none |
ba46f4574a9026aa0e2c436c325cf9a5acddfd9a | 167c6226bc77c5daaedab007dfdad4377f588ef4 | /python/ql/test/library-tests/PointsTo/new/code/d_globals.py | 72a063b2a75f67e3bb19f2bda666bb531a728045 | [
"MIT",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | github/codeql | 1eebb449a34f774db9e881b52cb8f7a1b1a53612 | d109637e2d7ab3b819812eb960c05cb31d9d2168 | refs/heads/main | 2023-08-20T11:32:39.162059 | 2023-08-18T14:33:32 | 2023-08-18T14:33:32 | 143,040,428 | 5,987 | 1,363 | MIT | 2023-09-14T19:36:50 | 2018-07-31T16:35:51 | CodeQL | UTF-8 | Python | false | false | 1,419 | py |
def j():
return tuple, dict
dict
dict = 7
dict
tuple = tuple
tuple
#Global assignment in local scope
g1 = None
def assign_global():
global g1
g1 = 101
return g1 # Cannot be None
#Assignment in local scope, but called from module level
g2 = None
def init():
global g2
g2 = 102
init()
g2 ... | [
"mark@hotpy.org"
] | mark@hotpy.org |
6005b8869165ad3d3159ea1c6b46b400f44fdd8c | 7d8cceea2d82e5069dd1f5f99ae487b07e977a2a | /mqtt_to_redis/app.py | eaf30d272cb8dbf21d238acc4bcab72fa7c56b0f | [] | no_license | thingsroot/user_apps_example | af8e34d6741e4def0327adcc3963880ee5425dfc | 708bdea217f274f27000e50c753bf14d3839c674 | refs/heads/master | 2020-03-29T08:51:11.565486 | 2019-10-18T02:31:55 | 2019-10-18T02:31:55 | 149,729,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,149 | py |
from __future__ import unicode_literals
import re
import os
import sys
import json
import redis
import logging
from configparser import ConfigParser
import paho.mqtt.client as mqtt
console_out = logging.StreamHandler(sys.stdout)
console_out.setLevel(logging.DEBUG)
console_err = logging.StreamHandler(sys.stderr)
cons... | [
"dirk@kooiot.com"
] | dirk@kooiot.com |
538eb464d379367267c75e13537743772642c15e | 2509936d814fb6cdd283c2549c518c8dfad9450c | /api/cases/migrations/0027_auto_20200522_0945.py | df345fb09bb3bc3809080ce3634bdf014159b5ae | [
"MIT"
] | permissive | uktrade/lite-api | 19f829119fa96de3f4862eb233845508b0fef7eb | b35792fc981220285ed9a7b3659aba460f1b207a | refs/heads/dev | 2023-08-25T10:11:17.594001 | 2023-08-24T14:24:43 | 2023-08-24T14:24:43 | 172,914,199 | 4 | 3 | MIT | 2023-09-14T17:36:47 | 2019-02-27T12:46:22 | Python | UTF-8 | Python | false | false | 1,350 | py | # Generated by Django 2.2.12 on 2020-05-22 09:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("cases", "0026_case_submitted_by"),
]
operations = [
migrations.AlterField(
model_name="casetype",
name="reference",... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
8e56ea5dfa85279b41b4265d552d820cf2397392 | c1f60f28cbd74a639dc89b22518ae33765267af4 | /foundationsync/setup.py | 8d05fc1483b487c168c522c41a87df11c461aad3 | [
"MIT"
] | permissive | DalavanCloud/indico-plugins-cern | b0a97dbbd7fb4dc272977b121ec92931ee316ad7 | bb67d2fb9e3d24faeeff2b78a5e9bcff52ac5f26 | refs/heads/master | 2020-04-22T08:58:17.025951 | 2019-01-21T14:25:08 | 2019-01-21T14:25:54 | 170,255,750 | 1 | 0 | null | 2019-02-12T05:08:40 | 2019-02-12T05:08:40 | null | UTF-8 | Python | false | false | 998 | py | # This file is part of the CERN Indico plugins.
# Copyright (C) 2014 - 2018 CERN
#
# The CERN Indico plugins are free software; you can redistribute
# them and/or modify them under the terms of the MIT License; see
# the LICENSE file for more details.
from __future__ import unicode_literals
from setuptools import set... | [
"adrian.moennich@cern.ch"
] | adrian.moennich@cern.ch |
b166dad158b8822a8e6bdf7c8971568c9aa3df98 | f566dfc5ce189d30696b9bf8b7e8bf9b1ef45614 | /Example/TDDDPGExample/StabilizerTwoD/TDDDPG_StabilizerTwoDContinuous.py | 916d38cf04314dd7c1c33c06e6750203b8a36eb7 | [] | no_license | yangyutu/DeepReinforcementLearning-PyTorch | 3dac4ad67fa3a6301d65ca5c63532f2a278e21d7 | 7af59cb883e24429d42a228584cfc96c42f6d35b | refs/heads/master | 2022-08-16T13:46:30.748383 | 2022-07-30T05:47:47 | 2022-07-30T05:47:47 | 169,829,723 | 12 | 6 | null | null | null | null | UTF-8 | Python | false | false | 5,453 | py | from Agents.TDDDPG.TDDDPG import TDDDPGAgent
from Env.CustomEnv.StablizerTwoD import StablizerTwoDContinuous
from utils.netInit import xavier_init
import json
from torch import optim
from copy import deepcopy
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import matplotlib.pyplot as plt
impor... | [
"yangyutu123@gmail.com"
] | yangyutu123@gmail.com |
cbd6b19a6bbb07e66bd88b1d00cc2d3c6b529b71 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/miniclient/contacts.py | f9c766ea0ee384ce251a4bb8eb9d6dff9264828d | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 676 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/miniclient/contacts.py
from gui.Scaleform.daapi.settings.views import VIEW_ALIAS
from gui.shared import events, g_eventBus, EVENT_BUS_SCOPE
from helpers import aop
class _CreateSquadAspect(aop.Aspect):
def atCall(self, cd)... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
6e6d6cf4a65dc5d1d8f8ef1da4591bc0514da057 | f69a4729de938512da8016f79e4bc58aff192417 | /test6.py | 0daaf4e724b4f14856107c2a3b94a9b3592d8840 | [] | no_license | FreeFlyXiaoMa/personal_project | 98811995568f76bbef7d9b0d0f05bec94805f3f0 | ad15c417d656e12bfcac084eec476e7e76d78fa2 | refs/heads/master | 2023-02-11T05:11:56.310548 | 2021-01-07T14:15:33 | 2021-01-07T14:15:33 | 322,598,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!/usr/bin/env python # -*- coding: utf-8 -*-
# @Author : Ma
# @Time : 2021/1/5 17:58
# @File : test6.py
class Apple():
def __repr__(self):
return "苹果"
class Banana():
def __repr__(self):
return "香蕉"
class SimpleFactory():
@staticmethod
def get_gruit(name):
if name... | [
"2429825530@qq.com"
] | 2429825530@qq.com |
36871f2ca868f92f17af47c876520b23c902c017 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/rfh.py | c1c6b5ff1bc5383a72266b801ce6d8e45347d0ae | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
83f7ea25ae04b9c66d3b24b1bc84f2e02c1bff5c | 92e3a6424326bf0b83e4823c3abc2c9d1190cf5e | /scripts/icehouse/opt/stack/tempest/tempest/api/compute/admin/test_security_groups.py | 40ae236920705c20a3a73d65de2f31ea11e1dc63 | [
"Apache-2.0"
] | permissive | AnthonyEzeigbo/OpenStackInAction | d6c21cf972ce2b1f58a93a29973534ded965d1ea | ff28cc4ee3c1a8d3bbe477d9d6104d2c6e71bf2e | refs/heads/master | 2023-07-28T05:38:06.120723 | 2020-07-25T15:19:21 | 2020-07-25T15:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,134 | py | # Copyright 2013 NTT Data
# 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 appl... | [
"cody@uky.edu"
] | cody@uky.edu |
3275b01b0757bc868e44091fbe6a3bc2654e7d97 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayOpenSearchboxDowngradePreconsultResponse.py | 01716209b4c570450aa7417705ea343616a00453 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,786 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.AccessCheckInfo import AccessCheckInfo
from alipay.aop.api.domain.BrandCertInfo import BrandCertInfo
from alipay.aop.api.domain.SearchBoxAppInfo import SearchBoxAppInfo... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
8c1cde682e17c15befb669b1f03ab4f799f0ca35 | 00cb3a46cd318463d2e1d91af56e1d01afc6b983 | /reclab/metrics/setup.py | 9fddacf9eb9f33fca7cc09f0d32bee1c265a55fa | [
"MIT"
] | permissive | tgsmith61591/reclab | 5f5527d9d78a0ed9646011a2a1da5e42a3ad731e | 423c9b5dd6e00def548b5cc29d3eca4dcc8c4a88 | refs/heads/master | 2020-03-30T18:05:36.897435 | 2018-11-08T00:37:10 | 2018-11-08T00:37:10 | 151,483,108 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | # -*- coding: utf-8 -*-
import os
import numpy
from numpy.distutils.misc_util import Configuration
from reclab._build_utils import get_blas_info
def configuration(parent_package="", top_path=None):
cblas_libs, blas_info = get_blas_info()
# Use this rather than cblas_libs so we don't fail on Windows
li... | [
"tgsmith61591@gmail.com"
] | tgsmith61591@gmail.com |
5c05020997aad86744f67798e0dc8daf37327b6d | 0794f4cf49de3b72fdff399b1911230a776ca75a | /tests/backends/conftest.py | 613f7b81a3e8bacaa6ff0f54f983c704d0585230 | [
"MIT"
] | permissive | newtonproject/newchain-lib-keys-py | f2240a4c14dfbc41716b2660935be51f6170ac7d | f4bd79b1022a047333cd791143544333aff85cf5 | refs/heads/master | 2022-09-24T05:28:28.030264 | 2022-09-18T14:29:11 | 2022-09-18T14:29:11 | 174,458,539 | 0 | 1 | MIT | 2022-09-18T14:29:12 | 2019-03-08T02:56:44 | Python | UTF-8 | Python | false | false | 3,842 | py | import pytest
from eth_utils import (
decode_hex,
keccak,
)
MSG = b'message'
MSGHASH = keccak(MSG)
# This is a sample of signatures generated with a known-good implementation of the ECDSA
# algorithm, which we use to test our ECC backends. If necessary, it can be generated from scratch
# with the following... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
51303d9fe9a121fe0c3a0c7c1cea24cbde19d03f | cca3f6a0accb18760bb134558fea98bb87a74806 | /abc170/A/main.py | 24bdf5522f64ecbc21cfe988cd81c6b5c5b857cd | [] | no_license | Hashizu/atcoder_work | 5ec48cc1147535f8b9d0f0455fd110536d9f27ea | cda1d9ac0fcd56697ee5db93d26602dd8ccee9df | refs/heads/master | 2023-07-15T02:22:31.995451 | 2021-09-03T12:10:57 | 2021-09-03T12:10:57 | 382,987,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | #!/usr/bin/env python3
import sys
def solve(x: "List[int]"):
for i in range(len(x)):
if x[i] == 0:
print(i+1)
return
return
# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your c... | [
"athenenoctus@gmail.com"
] | athenenoctus@gmail.com |
c888e004adcc49fd95d80b8acd22bdc3453d154d | b0ed67c452f79da72120b185960bf06711695fdd | /for_loop/clever_Lily.py | e74892cb560057dbd786a3aa86f11a5bb257b476 | [] | no_license | NikiDimov/SoftUni-Python-Basics | c0e1ae37867c1cfa264f8a19fdfba68b349df5d3 | f02045578930d03edbbd073995867eabfb171bbc | refs/heads/main | 2023-07-11T01:10:25.612754 | 2021-08-19T10:26:12 | 2021-08-19T10:26:12 | 345,221,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | age = int(input())
washing_machine_price = float(input())
toy_price = int(input())
def safe_money(age, toy_price):
money = 0
counter = 0
for birthday in range(1, age + 1):
if birthday % 2 == 0:
counter += 1
money += 10*counter-1
else:
money += toy_price
... | [
"niki.dimov86@gmail.com"
] | niki.dimov86@gmail.com |
f3a4069409b3db8256545974736d20c43b9938ef | ad0857eaba945c75e705594a53c40dbdd40467fe | /baekjoon/python/grade.py | f40701442fb4c7e58ba77ac14c5da99841f35bff | [
"MIT"
] | permissive | yskang/AlgorithmPractice | c9964d463fbd0d61edce5ba8b45767785b0b5e17 | 3efa96710e97c8740d6fef69e4afe7a23bfca05f | refs/heads/master | 2023-05-25T13:51:11.165687 | 2023-05-19T07:42:56 | 2023-05-19T07:42:56 | 67,045,852 | 0 | 0 | null | 2021-06-20T02:42:27 | 2016-08-31T14:40:10 | Python | UTF-8 | Python | false | false | 290 | py | # Grade
# https://www.acmicpc.net/problem/9498
score = int(input())
result = ''
if score < 60:
result = 'F'
elif 60 <= score < 70:
result = 'D'
elif 70 <= score < 80:
result = 'C'
elif 80 <= score < 90:
result = 'B'
else:
result = 'A'
print(result)
| [
"yongsung.kang@gmail.com"
] | yongsung.kang@gmail.com |
499ef96999d3020948b7de9a5dacf4bcd300cc49 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_011/ch15_2019_04_01_23_23_07_849043.py | 97cbf8e092766aeaa23c9966a553c6dc3b370f03 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | import math
def volume_da_pizza(z,a):
Vp=math.pi*(z**2)*a
return Vp | [
"you@example.com"
] | you@example.com |
6814364d59dcaf12920348c9cbd566cb3f9268ed | 4e958672a47409ebafd41704a30de781450f60e5 | /NtForm5/enroll/models.py | f2f516e23579dba98e555a63879ff7721059ab94 | [] | no_license | Nitesh-Singh-5/Understanding-Django-from-scratch | 7f704a2c0101d1e4a535c61a447a4e3775539b52 | b941151bdc2bee555b590f90e4a4c17e2a83db96 | refs/heads/master | 2022-12-28T20:23:03.042537 | 2020-10-13T15:10:55 | 2020-10-13T15:10:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from django.db import models
# Create your models here.
class User(models.Model):
name=models.CharField(max_length=50)
password=models.CharField( max_length=50)
email=models.EmailField(max_length=254) | [
"67116285+nitesh5801@users.noreply.github.com"
] | 67116285+nitesh5801@users.noreply.github.com |
7babd85454a8e2bec58fc5926ec2482505fb44fb | ec61b57a99d7683a668f4910c9fad4b1c9335525 | /finished/53-maximumSubarray.py | e78beb987e0265416cb1db0da125c666ff430f35 | [] | no_license | savadev/leetcode-2 | 906f467e793b9636965ab340c7753d9fc15bc70a | 20f37130236cc68224082ef056dacd6accb374e3 | refs/heads/master | 2020-12-28T12:54:08.355317 | 2018-08-06T00:44:24 | 2018-08-06T00:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | class Solution(object):
def maxSubArray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if all([x < 0 for x in nums]):
return max(nums)
l = len(nums)
b = [0] * l
for i in range(l):
val = nums[i]
... | [
"nmaswood@cs.uchicago.edu"
] | nmaswood@cs.uchicago.edu |
aa601f15398d031e2284e689bdb89ab4ad82d09d | a99a44aee5cfc5e080f6d83d2bcc1c3d273a3426 | /scripts/qc/check_afos_sources.py | 521ec97bc54d4c2cc9aea5845e64ed0946fccb1c | [
"MIT"
] | permissive | ragesah/iem | 1513929c8bc7f254048271d61b4c4cf27a5731d7 | 8ed970d426bddeaa3e7ded593665d22f0f9f6e87 | refs/heads/main | 2023-08-20T20:01:15.480833 | 2021-10-12T15:44:52 | 2021-10-12T15:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | """
Look at the sources saved to the AFOS database and then whine about
sources we do not understand!
"""
import sys
import datetime
import pytz
from pyiem.network import Table as NetworkTable
from pyiem.util import get_dbconn, utc, logger
LOG = logger()
pgconn = get_dbconn("afos")
cursor = pgconn.cursor()
cursor2 ... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
ca35abf6daa26f72594d90c4d13e76b76739ac1f | f6703b2afca284bf75e0dbf8f61d77e5251f905c | /euler445.py | 0e3f9ec0bbd0c78fee38e6915e183da0d10c8d7c | [] | no_license | rwieckowski/project-euler-python | 2a7aa73670b4684f076ad819bfc464aa0778f96c | be9a455058b20adfd32c814effd8753cc9d39890 | refs/heads/master | 2021-01-10T21:10:44.875335 | 2015-06-23T13:29:58 | 2015-06-23T13:29:58 | 37,920,684 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """
<P>For every integer ngt1 the family of functions f<sub>nab</sub> is
defined by f<sub>nab</sub><var>x</var>equiva<var>x</var>b mod n for ab
<var>x</var> integer and 0ltaltn 0lebltn 0le<var>x</var>ltn<BR />We
will call f<sub>nab</sub> a <i>retraction</i> if f<sub>nab</sub>f<sub>
nab</sub><var>x</var>equivf<sub>n... | [
"rwieckowski@ivmx.pl"
] | rwieckowski@ivmx.pl |
5048abd346979c31fa2bad6f1ed859ca05094696 | 1cc8604dff9713d3879599f1876a6ea313ebe1fb | /pysc2/lib/memoize.py | 91894b0ec613e49bd815ba54d02e3192b38d5258 | [
"Apache-2.0"
] | permissive | SoyGema/pysc2 | c363ec768ebf94e7b0fa08e136b36b7432ae1b44 | e5de62023ec45ac212016b5404dd73272109d9d4 | refs/heads/master | 2022-02-08T21:41:46.530129 | 2022-01-29T13:11:15 | 2022-01-29T13:11:15 | 143,897,552 | 1 | 0 | Apache-2.0 | 2018-08-07T16:06:23 | 2018-08-07T16:06:22 | null | UTF-8 | Python | false | false | 1,095 | py | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"tewalds@google.com"
] | tewalds@google.com |
a5fb2a518a351640365f63b92e44e08cceae715b | 22a68f6efd44bb8b366669f73b0657a232296665 | /cfme/tests/control/test_bugs.py | fcd7c30ee233a2ef11e15ec79cdf77bf97142ae9 | [] | no_license | richardfontana/cfme_tests | e33261a809d229b515aac2c9ee730a88da9b2510 | 73b3e1b0717b5cb0449157dc5d85e89820b62c57 | refs/heads/master | 2021-01-15T19:24:11.424107 | 2015-09-14T19:00:11 | 2015-09-14T19:00:11 | 42,489,462 | 0 | 0 | null | 2015-09-15T02:16:33 | 2015-09-15T02:16:33 | null | UTF-8 | Python | false | false | 6,226 | py | # -*- coding: utf-8 -*-
import fauxfactory
import pytest
from cfme.control.explorer import PolicyProfile, VMCompliancePolicy, Action, VMControlPolicy
from cfme.infrastructure.virtual_machines import (assign_policy_profiles, get_first_vm_title,
unassign_policy_profiles, Vm)
from utils.log import logger
from utils.p... | [
"mfalesni@redhat.com"
] | mfalesni@redhat.com |
a86582827ffca20f3f6c23a1a6becdb5c8793c40 | 5a6e91490dafa97f0c52a63eff5a39dd16b7122e | /pythontut13.py | 1e38abf421057b0a64475618d4bcd4b572867d4c | [] | no_license | suvimanikandan/PYTHON_PROGRAMS | 968884292ceef502b3f3b6acdea79ce192e933f8 | f4be986232bf1adef05837d67249840965fa50fc | refs/heads/main | 2023-07-15T19:15:06.567198 | 2021-08-24T14:30:08 | 2021-08-24T14:30:08 | 399,495,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,499 | py | # VIDEO 13 : Dictionaries
# While lists organize data based on sequential indexes Dictionaries instead use key / value pairs
# A key / value pair could be fName : "Derek" where fName is the key and "Derek" is the value
# Here is some code to help this make sense
# Create a Dictionary about me
swe_dict = {"f_na... | [
"noreply@github.com"
] | suvimanikandan.noreply@github.com |
c92e9dd202a1022d5f5b9724a6a5acc6762c5135 | cb583e6d4b79eca522cd6365f1ef60d2828a941c | /ambry/cli/source_run/zero_deps.py | 794ec38b19ea01ddf05db24b0f6ee6f9851b1f26 | [
"BSD-2-Clause"
] | permissive | mihailignatenko/ambry | c93e8f8d933e700b75530a32f584267cb1e937fa | faea74eee1449896e64d1945f3e814936fe9c276 | refs/heads/master | 2021-01-21T15:58:15.791663 | 2015-05-03T04:53:58 | 2015-05-03T04:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | """Script for source run to print the umber of dependencies that a source
bundle has."""
def run(args, bundle_dir, bundle):
import sys
# if bundle.is_built:
# return
deps = bundle.metadata.dependencies
if len(deps) == 0:
print bundle.identity.fqname
| [
"eric@clarinova.com"
] | eric@clarinova.com |
e431c4385feb041bc34a7352ac22ced4868b80a1 | aced407b41f6669f69e9eb8bd599260d50c0bd3f | /server/libs/top/api/rest/UmpToolUpdateRequest.py | 715305dddaa4f6beac8ea342190c26bf28a50f2c | [] | no_license | alswl/music_sofa | 42f7d15431f11b97bf67b604cfde0a0e9e3860cc | c4e5425ef6c80c3e57c91ba568f7cbfe63faa378 | refs/heads/master | 2016-09-12T18:37:34.357510 | 2016-05-20T11:49:52 | 2016-05-20T11:49:52 | 58,946,171 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | '''
Created by auto_sdk on 2013-11-07 12:53:22
'''
from top.api.base import RestApi
class UmpToolUpdateRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.content = None
self.tool_id = None
def getapiname(self):
return 'taobao.ump.tool.update'
| [
"alswlx@gmail.com"
] | alswlx@gmail.com |
b950977a9d69e7c25f6b702fb9b06ce423d9a44f | 5ede2fe8a1e2b9d468a2151180b39e0d0f1b0e4e | /PyML/.venv/py3/bin/jupyter-migrate | 056bf6e95f435c37e0c606da7053813cf6d5012b | [] | no_license | rupeshsm/PyCode | a4b1b19f1fce1ac8354a7dd31c23cc44416010e8 | 67b47e71802bbe109a65cc373ae01f662c32d228 | refs/heads/master | 2021-01-23T22:06:29.601993 | 2017-02-17T18:19:01 | 2017-02-17T18:19:01 | 83,118,069 | 1 | 0 | null | 2017-02-25T08:29:11 | 2017-02-25T08:29:11 | null | UTF-8 | Python | false | false | 259 | #!/home/achilles/dev/PyCode/PyML/.venv/py3/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.migrate import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"achillesrasquinha@gmail.com"
] | achillesrasquinha@gmail.com | |
b2e745cc8be9c3faf24f17f1dfefaaa3593d7649 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03861/s218087938.py | fec9f654d9165fc0167396316ec0d9fbe568dfb5 | [] | 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 | 105 | py | a,b,c = list(map(int,input().split()))
x = a//c
y = b//c
if a%c:
print(y-x)
else:
print((y-x)+1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5ddc90304d10e80c46e9195d779dd4bc9411340d | 69930e647aca06cf865f958e952941a410cad46b | /usuario/models.py | 1615cf667ccf7cf125b43604b57749e83a952bae | [] | no_license | GustavoGarciaPereira/trabalho_babrica_de_moveis | 9ce32a76eb4c9c5fed8f1482aa8ce6814b350a96 | d61b6f3ea09b1b2f0c3781cbc67e8e4ed11f7949 | refs/heads/master | 2023-08-14T03:50:48.738174 | 2020-07-03T11:42:21 | 2020-07-03T11:42:21 | 276,883,600 | 0 | 0 | null | 2021-09-22T19:22:24 | 2020-07-03T11:27:51 | Python | UTF-8 | Python | false | false | 1,637 | py | from django.db import models
from django.urls import reverse
# Create your models here.
class Pessoa(models.Model):
nome = models.CharField(name="nome",max_length=30)
tipo = models.CharField(name="tipo",max_length=30)
email = models.EmailField()
senha = models.CharField(name="senha",max_length=30)
... | [
"gusgurtavo@gmail.com"
] | gusgurtavo@gmail.com |
a5daedad2cfef500c84634a501ae8d22bba63646 | 5af97bffa345fee6a0a26cc8e24756b41f83c66c | /actors/world_related/connectors/__init__.py | 1b9293028b76db28cfa5761a24ab2b1825cb8692 | [] | no_license | Myshj/tdoa_multisensor_model | 26620bb687503c6b40ad886a0d666c10a34025d8 | eb2dedd9e3c3918c17177ce9d63355e10d4649dd | refs/heads/master | 2020-07-30T15:39:32.162225 | 2017-03-08T12:01:04 | 2017-03-08T12:01:04 | 73,627,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from .Base import Base
from .SensorSupervisorToTDOAGroupSupervisorConnector import SensorSupervisorToTDOAGroupSupervisorConnector
from .SoundSourceToPropagatorConnector import SoundSourceToPropagatorConnector
| [
"donmarin@mail.ru"
] | donmarin@mail.ru |
c1ec71577f4a90958a796d2a31c5c7c8a20ff20d | e18a48bab6bba2bcc7d8b7846f5921f76e2eed85 | /51. N-Queens.py | f0d2fa5aa2eef63a990cbc7f1de8bc8817fd8d0c | [] | no_license | shivasupraj/LeetCode | 384a2c5a857b1ccb952f8410675c5500e630a766 | 834de770fb2a60dea468238611fca9389e3a1e96 | refs/heads/master | 2021-06-27T11:49:16.452450 | 2019-06-05T03:32:44 | 2019-06-05T03:32:44 | 113,106,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | class Solution(object):
def solveNQueens(self, n):
"""
:type n: int
:rtype: List[List[str]]
"""
def solveNQueensHelper(matrix, index):
#print(matrix, index)
if index == -1:
strs = getStrsFromMatrix(matrix)
res.append(str... | [
"noreply@github.com"
] | shivasupraj.noreply@github.com |
c77f17c90c2e269b76573233eba64697c0f2bdea | bf62bdb3f2991ee000c056246bf08e5797154561 | /docs/conf.py | 2750230ed2fed90e8ddce80a431b159a834b42ea | [
"MIT"
] | permissive | wlc123456/fsmlite | ec0e9f5c800a4301fb5e23c35885b67064295190 | d785362578a9cb28eda50f664d7ea866b29c8606 | refs/heads/master | 2023-06-21T06:32:46.883165 | 2021-08-02T20:07:44 | 2021-08-02T20:07:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,631 | py | import os
def get_version(filename):
from re import findall
with open(filename) as f:
versions = dict(findall(r'AC_INIT\(\[(.*?)\],\s*\[(.*?)\].*\)', f.read()))
return versions['fsmlite']
# https://github.com/rtfd/readthedocs.org/issues/388
if os.environ.get('READTHEDOCS', None) == 'True':
from... | [
"tkemmer@computer.org"
] | tkemmer@computer.org |
4c6488ab6aa55d852b4537853720c95c261c80b6 | 9f2445e9a00cc34eebcf3d3f60124d0388dcb613 | /2019-08-19-GHKinMOOSE/somasimp_MOOSE_ghk.py | c0f301e8c05d263532c28fee43c2de51ded85a5e | [] | no_license | analkumar2/Thesis-work | 7ee916d71f04a60afbd117325df588908518b7d2 | 75905427c2a78a101b4eed2c27a955867c04465c | refs/heads/master | 2022-01-02T02:33:35.864896 | 2021-12-18T03:34:04 | 2021-12-18T03:34:04 | 201,130,673 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # exec(open('somasimp_MOOSE_ghk.py').read())
import moose
import numpy as np
import matplotlib.pyplot as plt
import rdesigneur as rd
try:
# [moose.delete(x) for x in ['/model', '/library']]
[moose.delete(x) for x in ['/model']]
except:
pass
ChP = 'simplechan_ghk'
F = 96485.3329
sm_diam = 500e-6
sm_len =... | [
"analkumar2@gmail.com"
] | analkumar2@gmail.com |
400cae025fff448c18bff14b21bd30795549360b | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-elasticsearch/aliyunsdkelasticsearch/request/v20170613/ValidateShrinkNodesRequest.py | ec5fe7c25cec792e58e47426db2f9d571405752e | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,281 | 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 u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
53ec99187d84b613f4bf21c21ebb1ab6f074405a | 1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc | /venv/lib/python2.7/site-packages/ansible/modules/network/fortios/fortios_webfilter_ips_urlfilter_setting.py | d05b42141aabf1983b8f58f7b7a06b67fc4c0d44 | [
"MIT"
] | permissive | otus-devops-2019-02/devopscourses_infra | 1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c | e42e5deafce395af869084ede245fc6cff6d0b2c | refs/heads/master | 2020-04-29T02:41:49.985889 | 2019-05-21T06:35:19 | 2019-05-21T06:35:19 | 175,780,457 | 0 | 1 | MIT | 2019-05-21T06:35:20 | 2019-03-15T08:35:54 | HCL | UTF-8 | Python | false | false | 7,628 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2018 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | [
"skydevapp@gmail.com"
] | skydevapp@gmail.com |
aea65d15ad26ed21d21f1c4766fef17144811aed | 864fc03b15218e5c197feb24bb4dac3e3c566de9 | /dnacentersdk/models/validators/v1_3_0/jsd_7781fa0548a98342.py | 73454dcb780b66b9ce164069b1b13a1b83bca6cf | [
"MIT"
] | permissive | daxm/dnacentersdk | e5ae51d39fb05839455d7ec80fbcb57d0975d5aa | 5baa0cb151fb9e72cf7af1ae29e7541d89c3f06b | refs/heads/master | 2020-09-25T08:09:13.678878 | 2019-11-20T22:34:01 | 2019-11-20T22:34:01 | 225,958,373 | 0 | 0 | MIT | 2019-12-04T21:15:07 | 2019-12-04T21:15:06 | null | UTF-8 | Python | false | false | 18,436 | py | # -*- coding: utf-8 -*-
"""DNA Center Update Template data model.
Copyright (c) 2019 Cisco and/or its affiliates.
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 wi... | [
"jbogarin@altus.co.cr"
] | jbogarin@altus.co.cr |
f331c316f8a15c4b36891d58db96e4389d96c074 | daaf7e8ff13844ab31ce774029377d1cbfe21e26 | /Month 02/Week 01/Day 05/c.py | eecfb554f86114eafbd5c3875d304aafb081b5ba | [
"MIT"
] | permissive | KevinKnott/Coding-Review | 7ae370937879179b0daec3ebd91525dc89c498e9 | 6a83cb798cc317d1e4357ac6b2b1fbf76fa034fb | refs/heads/main | 2023-07-18T09:07:53.100342 | 2021-09-03T23:26:55 | 2021-09-03T23:26:55 | 373,020,791 | 0 | 0 | MIT | 2021-09-03T23:26:56 | 2021-06-02T02:51:12 | Python | UTF-8 | Python | false | false | 3,044 | py | # First Missing Positive: https://leetcode.com/problems/first-missing-positive/
# Given an unsorted integer array nums, find the smallest missing positive integer.
# You must implement an algorithm that runs in O(n) time and uses constant extra space.
# The brute force of this is to look through all of nums for each... | [
"KKnoTT93@gmail.com"
] | KKnoTT93@gmail.com |
89034088048e3eb1ec1128d148ff89ec503144b2 | ab397ff967a4ea0c0bf3b1ab286556071115b197 | /Analysis/checker_files.py | 0eebcdc0b01247c60b8074c9d3125d02d14fec68 | [] | no_license | GihanMora/Accelerometer_podiatry_gihan | 404d9db9da618259de1c484f6783e8b4c7bf8f23 | e2164574593159a89465e8d23c838fd9c7ed758a | refs/heads/master | 2023-01-29T02:22:56.692869 | 2020-12-08T05:25:49 | 2020-12-08T05:25:49 | 317,770,532 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import os
root_folder = 'E:/Data/Accelerometer_Dataset_Rashmika/Podiatry Data/'
pred_root = 'E:/Data/Accelerometer_Dataset_Rashmika/Podiatry Data/Predictions/'
data_dict = {}
for i in range(1,24):
if(i==4):continue
f_path = os.path.join(root_folder,str(i))
file_list = os.listdir(f_path)
d_file_path = ... | [
"gihangamage.15@cse.mrt.ac.lk"
] | gihangamage.15@cse.mrt.ac.lk |
1c332b2db8cfb4a7bffc0f933f0c234f05ffc3ac | 99bfa15723593ea351191d82fac80e36ab25aab1 | /CP/Stack/Stock_Span.py | c2e5316c58512b0747c2d1f1b6bc799e57488071 | [] | no_license | Kartavya-verma/Python-Projects | f23739ef29eab67a8e25569e3f7bf110e42576cb | 02ffe926a7ed82bc783e4c4034a2fa53d4d1a870 | refs/heads/master | 2023-06-22T07:59:39.595084 | 2021-07-18T15:51:55 | 2021-07-18T15:51:55 | 387,139,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | l = [100, 80, 60, 70, 60, 75, 85]
# op = [1, 1, 1, 2, 1, 4, 6]
st = []
res = []
for i in range(len(l)):
if len(st) == 0:
res.append(-1)
elif len(st) > 0 and st[-1][0] > l[i]:
res.append(st[-1][1])
elif len(st) > 0 and st[-1][0] <= l[i]:
while len(st) > 0 and st[-1][0] <= l[i]:
... | [
"vermakartavya2000@gmail.com"
] | vermakartavya2000@gmail.com |
a0dcbf8c261c18e893a3f65fd7dc1ee8185ade11 | db09f9fc5729eec823ee859fd9bac7461cce60f5 | /src/conf/urls.py | 6a3f40afd62d8a5d11e124316170f6c28da813d4 | [] | no_license | cephey/rent | 9323ca42ea3a8d34bf1ea4b6ffaf0386782d19a3 | 7eabae2f0df8756a05553df3b8e3b072459dcb51 | refs/heads/master | 2016-09-10T10:16:19.420888 | 2014-10-12T20:02:34 | 2014-10-12T20:02:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | #coding:utf-8
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.conf import settings
urlpatterns = patterns(
'',
url(r'^api/', include('api.urls')),
url(r'', include('pages.urls', namespace='pages')),
url(r'^us... | [
"andrey.ptitsyn86@gmail.com"
] | andrey.ptitsyn86@gmail.com |
af3df78cdc812556d8b6fdf80fefcf41787f4be5 | 6cdab6432f37471f1c7ce74f461568accf04aa85 | /dev/a_import.py | 1d8cbb6f3b631ea3b1a2a93d0a340d0734922eaa | [
"Apache-2.0"
] | permissive | exaxorg/Kaggle-CORD19-data-parser | 71709d549f2be108b0737d252547ad94f9b3dcb4 | bf78daee155645aa3dd7f58dc9dcc2f55cdc0092 | refs/heads/master | 2022-04-25T04:09:27.114630 | 2020-03-30T19:17:48 | 2020-04-29T20:29:15 | 258,124,864 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | from json import loads
from glob import glob
from os.path import join
options = dict(directory='')
datasets = ('previous',)
def parse(data):
# "data" is a dict corresponding to each file's json-data.
sha = data['paper_id']
title = data['metadata']['title']
abstract = data.get('abstract', ())
if abstract:
# ... | [
"anders@berkeman.org"
] | anders@berkeman.org |
e3b79ede83977fda5769cf4b0b28fd40d04f1465 | bf0d0b123c1a42a1db5b174ceac9d10d8f63d923 | /10.py | a4de318300bcee1d2f23e0175e39ed32623e8043 | [] | no_license | 1751660300/lanqiaobei | 30fd047a788288b85499f4ee754d60333cb5bb51 | 4f83f2cb5a15e0af3c220aae62a821b7fbfd2e1f | refs/heads/master | 2022-12-31T13:41:41.637481 | 2020-10-16T13:30:38 | 2020-10-16T13:30:38 | 304,635,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | # -*- coding:utf-8 -*-
# 问题描述
# 小明和朋友们一起去郊外植树,他们带了一些在自己实验室精心研究出的小树苗。
# 小明和朋友们一共有 n 个人,他们经过精心挑选,在一块空地上每个人挑选了一个适合植树的位置,总共 n 个。他们准备把自己带的树苗都植下去。
# 然而,他们遇到了一个困难:有的树苗比较大,而有的位置挨太近,导致两棵树植下去后会撞在一起。
# 他们将树看成一个圆,圆心在他们找的位置上。如果两棵树对应的圆相交,这两棵树就不适合同时植下(相切不受影响),称为两棵树冲突。
# 小明和朋友们决定先合计合计,只将其中的一部分树植下去,保证没有互相冲突的树。他们同时希望这些树所能覆盖的面积... | [
"1751660300@qq.com"
] | 1751660300@qq.com |
d77f4e135813dcb4ab39913514dd69377bc0b9ec | c1bed5203d73a077ff83b96cc6fe71a3fce734e7 | /python/pe817.py | f824512558711e81ca12042c4c1cd4502f4a4be2 | [] | no_license | arknave/project-euler | 41006e571e24d8aa077247bdb806be3ba8818c40 | 647783721d4d019c41ec844500069baeab6d8a44 | refs/heads/master | 2022-12-23T06:36:14.647022 | 2022-12-14T23:20:49 | 2022-12-14T23:20:49 | 19,319,963 | 0 | 1 | null | 2015-05-21T06:42:41 | 2014-04-30T16:28:50 | Python | UTF-8 | Python | false | false | 1,479 | py | from math import isqrt
def digits(x, b):
while x > 0:
yield x % b
x //= b
def solve(b, d):
# find a small x such that x^2 has d as a digit in base b
# units digit: solve x^2 = d (mod b)
# every other digit: solve floor(x^2 / b^i) = aM + d for increasing a, i
# Theory: only have to... | [
"arnavsastry@gmail.com"
] | arnavsastry@gmail.com |
4742ec7b9ab060fc24f0884102ef783e8649474f | 65dce36be9eb2078def7434455bdb41e4fc37394 | /Topological Sorting.py | 921b932601ff357adecdcf18529150d2675a7752 | [] | no_license | EvianTan/Lintcode-Leetcode | 9cf2d2f6a85c0a494382b9c347bcdb4ee0b5d21a | d12dd31e98c2bf24acc20c5634adfa950e68bd97 | refs/heads/master | 2021-01-22T08:13:55.758825 | 2017-10-20T21:46:23 | 2017-10-20T21:46:23 | 92,607,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | '''
Given an directed graph, a topological order of the graph nodes is defined as follow:
For each directed edge A -> B in graph, A must before B in the order list.
The first node in the order can be any node in the graph with no nodes direct to it.
Find any topological order for the given graph.
'''
# Definition for... | [
"yiyun.tan@uconn.edu"
] | yiyun.tan@uconn.edu |
9990ac14503554e7dfba877b9302e17cb6a15d18 | aa480d8b09dd7ad92c37c816ebcace24a35eb34c | /5/305.岛屿数量-ii.py | 69c314ac62e7c60b139ff01357ff1cb290dbbee6 | [] | no_license | SR2k/leetcode | 7e701a0e99f9f05b21216f36d2f5ac07a079b97f | de131226159865dcb7b67e49a58d2ddc3f0a82c7 | refs/heads/master | 2023-03-18T03:37:02.916453 | 2022-09-16T01:28:13 | 2022-09-16T01:28:13 | 182,083,445 | 0 | 0 | null | 2023-03-08T05:44:26 | 2019-04-18T12:27:12 | Python | UTF-8 | Python | false | false | 3,363 | py | #
# @lc app=leetcode.cn id=305 lang=python3
#
# [305] 岛屿数量 II
#
# https://leetcode.cn/problems/number-of-islands-ii/description/
#
# algorithms
# Hard (40.90%)
# Likes: 129
# Dislikes: 0
# Total Accepted: 6.4K
# Total Submissions: 15.6K
# Testcase Example: '3\n3\n[[0,0],[0,1],[1,2],[2,1]]'
#
# 给你一个大小为 m x n 的二进制... | [
"luozhou.csy@alibaba-inc.com"
] | luozhou.csy@alibaba-inc.com |
1623d3fbdd87faa2a862b7d957d42eaf13032d77 | 464338d9556cf9892a4647ab1b94dd9d2879274d | /ohealth/ohealth_hospital_unit/ohealth_hospital_unit.py | 4ef944070d5a58afd98081ca967b21ab42611a0e | [] | no_license | linzheyuan/O-health | 5199637de8343508c5fe2d8e611a394cf39d1673 | eab3fc74ee7b878dbcc8234597de053de9d9e608 | refs/heads/master | 2021-01-24T21:36:14.068894 | 2013-07-07T12:34:28 | 2013-07-07T12:34:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # -*- coding: utf-8 -*-
#/#############################################################################
#
# HITSF
#
# Special Credit and Thanks to Thymbra Latinoamericana S.A.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public L... | [
"rizabisnis@gmail.com"
] | rizabisnis@gmail.com |
ad89fbcf188dc5000de65e2e77c87eac31f4c8e9 | 814a896307bc2b99ec20d0800cb106280fb1b303 | /venv/lib/python3.6/site-packages/pyquickhelper/__init__.py | b38ca337518389f3a4cc1084900555517420ce55 | [] | no_license | mahagala/HecHms | ae0d4bedfcba33bc7e70eeefadcbd5361a00bd73 | 47521f9cd8dc0f2a51bb6e2660f67a81b3634b16 | refs/heads/master | 2021-09-20T04:16:23.691577 | 2018-08-03T12:46:38 | 2018-08-03T12:46:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | # -*- coding: utf-8 -*-
"""
@file
@brief Module *pyquickhelper*.
Helpers to produce documentation, test notebooks, walk through files,
sphinx extension, jenkins helpers...
"""
__version__ = "1.8"
__author__ = "Xavier Dupré"
__github__ = "https://github.com/sdpython/pyquickhelper"
__url__ = "http://www.xavie... | [
"hasithadkr7@gmail.com"
] | hasithadkr7@gmail.com |
94f892fb826285f19d4096ae7534ca287cd81c34 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/beta/usersfunctions_beta/azext_usersfunctions_beta/vendored_sdks/usersfunctions/aio/operations/_users_mail_folders_child_folders_operations.py | 3c57de2889bfbd96a7a2045bf0eee4a11d50f55d | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 4,332 | 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 ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
e6b0f5c7362a6bbaded744a6dfcf4a06283bb1a3 | 4c5ba474931fdb0a010229538cc92c121f5d01fa | /etc_graph/topology_sort.py | 2c5529a16f82577d25f544274d36b47fd8b81289 | [] | no_license | jeeHwon/Algorithm | f3d1569ec8e2c68810dee7915e9b50f4ebfb7f03 | 2ac3696b8cb5a987bbfbf5ad92433de94b172b25 | refs/heads/master | 2023-03-21T10:33:08.599024 | 2021-03-06T12:05:03 | 2021-03-06T12:05:03 | 335,676,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | # 위상정렬(Topology Sort)
# 사이클이 없는 방향 그래프(DAG)의 모든 노드를 방향성에 거스르지 않도록 순서대로 나열 의미
# 집입차수(Indegree) : 특정한 노드로 들어오는 간선의 개수
# 진출차수(Outdegree) : 특정한 노드에서 나가는 간선의 개수
# 큐를 이용하여 구현 가능 (스택도 가능)
# 예시) 선수과목을 고려한 학습 순서 설정
# 여러가지 답 존재 가능, 모든 원소 방문 전 큐가 빈다면 사이크 존재한다고 판단가능
# 위상 정렬 위해 차례로 모든 노드를 확인하고, 각 노드에서 나가는 간선을 차례로 제거
# 따라서 시간 복잡도 =>... | [
"jeehwon01@gmail.com"
] | jeehwon01@gmail.com |
2c53ed866dd566ad80cb5b2273903ac2a2e579ec | e2f507e0b434120e7f5d4f717540e5df2b1816da | /083-echo-try.py | dae2f22e522765dc20e3b59235b6cc283d637ab3 | [] | no_license | ash/amazing_python3 | 70984bd32ae325380382b1fe692c4b359ef23395 | 64c98940f8a8da18a8bf56f65cc8c8e09bd00e0c | refs/heads/master | 2021-06-23T14:59:37.005280 | 2021-01-21T06:56:33 | 2021-01-21T06:56:33 | 182,626,874 | 76 | 25 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | # A simple "echo"
# program
while True:
try:
s = input()
print(s)
except:
break
# Now the program will
# simply stop after
# the end of input
| [
"andy@shitov.ru"
] | andy@shitov.ru |
21d43124852a540b2762bea05fac82cfa6f4f1dc | b5a6f10c886fba6584d2ac7b4a29c69975826dbb | /clients/python/test/test_constant_offer_filter_constant.py | 42b5144b273f936acdaf83f591d17f4b9965139d | [] | no_license | Patagona/pricemonitor-clients | 8c4f842ca3d4e459c77ac329ad488cb3e4c858bf | cf2d689bf9ed6ddea9501324cada918c3a88b4f8 | refs/heads/master | 2023-08-31T20:12:58.844253 | 2023-08-31T15:26:25 | 2023-08-31T15:26:25 | 279,618,794 | 1 | 1 | null | 2023-07-03T13:55:28 | 2020-07-14T15:09:38 | Python | UTF-8 | Python | false | false | 1,601 | py | # coding: utf-8
"""
Pricemonitor API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.6561
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import... | [
"jenkins@patagona.de"
] | jenkins@patagona.de |
cc48d3eb0c09c41a15f8a80ca313c4422069c678 | d98883fe1007111b8795ac5661e56758eca3b62e | /google-cloud-sdk/lib/surface/bigtable/app_profiles/update.py | 53b1e31c063dde9b7875f2512491bd5026cbb0c8 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | pyDeb/KindnessCafe | 7303464e3c0693b0586a4a32740d8b9b19299caf | 6ff8dfe338aefd986edf67c382aff1a2920945d1 | refs/heads/master | 2022-12-29T16:16:35.796387 | 2021-04-19T00:03:14 | 2021-04-19T00:03:14 | 243,533,146 | 3 | 4 | null | 2022-12-08T09:48:09 | 2020-02-27T14:01:16 | Python | UTF-8 | Python | false | false | 2,595 | py | # -*- coding: utf-8 -*- #
# Copyright 2018 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"zeus@localhost.localdomain"
] | zeus@localhost.localdomain |
516b7c00610a5542350c77943a7641dc3dd1fd04 | ea99544eef7572b194c2d3607fa7121cb1e45872 | /apps/report/migrations/0007_auto_20190408_0925.py | 117f656259e0e66f51eb509aad072678f43a5625 | [] | no_license | ash018/FFTracker | 4ab55d504a9d8ba9e541a8b682bc821f112a0866 | 11be165f85cda0ffe7a237d011de562d3dc64135 | refs/heads/master | 2022-12-02T15:04:58.543382 | 2019-10-05T12:54:27 | 2019-10-05T12:54:27 | 212,999,035 | 0 | 0 | null | 2022-11-22T03:58:29 | 2019-10-05T12:53:26 | Python | UTF-8 | Python | false | false | 770 | py | # Generated by Django 2.2 on 2019-04-08 09:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('report', '0006_auto_20190408_0646'),
]
operations = [
migrations.AlterField(
model_name='attendanceindividual',
name='... | [
"sadatakash018@gmail.com"
] | sadatakash018@gmail.com |
450246d63f312e11688d6d87ed06ce3a267602e8 | 3fdc6c7e280f31629a2bbf5f1e850786415e480c | /browser.py | fbc04bf55445e646429b701590988a4939afbb03 | [] | no_license | jmg/simple-web-browser | 970470957138922eb52d1cde2819f175f5d90eb3 | a3c8c55701cf7822149ceb7d6c5b686c9f8627fb | refs/heads/master | 2021-01-10T18:57:48.433231 | 2011-11-22T02:07:07 | 2011-11-22T02:07:07 | 2,399,458 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,299 | py | from PyQt4 import QtCore, QtWebKit
from baseBrowser import BaseBrowser, BaseBrowserTab
from config import DEFAULTS
class Browser(BaseBrowser):
"""
A Browser representation
This class overrides all the methods of the
base class.
"""
def __init__(self):
self.default_url = DE... | [
"jmg.utn@gmail.com"
] | jmg.utn@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.