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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2c50ae17bf7a4020e4c38dad89b8c2f2e718938e | 2c22736309a50968896b4724df4a7a1d1a150d88 | /0x01-python-if_else_loops_functions/102-main_bytecode.py | 4801657a690e4c9923a4606d44fc6f58f6c90ae0 | [] | no_license | gcifuentess/holbertonschool-higher_level_programming | ce9f263c0eef07facc1e02b719a8ae7193233d6d | 75e405ec7f1aa9138aa54e86f7b41aa08ead7f2a | refs/heads/master | 2023-06-18T08:36:22.580908 | 2021-07-18T20:46:40 | 2021-07-18T20:46:40 | 291,871,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | #!/usr/bin/env python3
import dis
magic = __import__('102-magic_calculation').magic_calculation
dis.dis(magic)
| [
"[email protected]"
] | |
0928b2aef6fb3bf066f79c87ebba6bc80a7eb927 | cf09d6430e37b5460d7208d6cae6d3af0fa15925 | /jsonbot/jsb/drivers/irc/irc.py | 73b02fba5cbb17f1b57d99a86feea83c9b31e61d | [
"MIT"
] | permissive | Lujeni/old-projects | 2bbf0ff89852a3e4a9677475a615d2ee4b07d635 | 657304c8b017a98935de9728fc695abe8be7cc4f | refs/heads/master | 2021-03-12T23:08:34.054777 | 2014-10-16T23:10:15 | 2014-10-16T23:10:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,684 | py | # jsb/socklib/irc/irc.py
#
#
"""
an Irc object handles the connection to the irc server .. receiving,
sending, connect and reconnect code.
"""
## jsb imports
from jsb.utils.exception import handle_exception
from jsb.utils.generic import toenc, fromenc
from jsb.utils.generic import getrandomnick, strippedtx... | [
"[email protected]"
] | |
3be7573977b4ffa9fa5ed53d0f0c67c0e8b748e4 | 6d9fbe6e6a2abfd8455e92f6dba67a5f02d87f41 | /lib/phonenumbers/geodata/data12.py | 8d4bb0d37e2baab46022ba296246d0e52134c6bf | [] | no_license | JamesBrace/InfluenceUWebLaunch | 549d0b48ff3259b139cb891a19cb8b5382ffe2c8 | 332d25940e4b1b45a7a2a8200f77c8413543b199 | refs/heads/master | 2021-09-04T04:08:47.594900 | 2018-01-15T16:49:29 | 2018-01-15T16:49:29 | 80,778,825 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 917,711 | py | """Per-prefix data, mapping each prefix to a dict of locale:name.
Auto-generated file, do not edit by hand.
"""
from ..util import u
# Copyright (C) 2011-2017 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | [
"[email protected]"
] | |
8e6888d89f7bfecd8770a5f22c026c8bec6f6e1c | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/peering/v20201001/prefix.py | 590d1ca07d2db7f49feb2223d306ee9a2fcd6f6d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,122 | 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
fro... | [
"[email protected]"
] | |
f2c4e6b1a789554712a287c4f0a34afbf2126b22 | f9c0e305ca873cd9784f1a6f441fee0ca7fbc468 | /recom/main/map.py | e13f55ae806969fe8b3404e4775d65e18b170a56 | [] | no_license | flybetter/recom_web | b3caac2873786f4a10fbedc8b34d2ea4888aeafe | ef06f64931df594f4c8c6b2f72a59e0ad4a5e637 | refs/heads/master | 2020-03-27T10:21:35.813149 | 2018-10-10T08:47:56 | 2018-10-10T08:47:56 | 146,412,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | from flask import render_template, Blueprint
from urllib import request
import json
from recom.main.recom_glorithm import startup, secondHouseRequestJson, get_history, get_associate_community
import logging
logging.basicConfig(level=logging.DEBUG)
bp = Blueprint('map', __name__, url_prefix='/map')
HISTORY_URL = 'ht... | [
"[email protected]"
] | |
bad111c370e04a62e3e9f19868fc1862a53e48f3 | fd877cb919622d6a4efa305fb9eaec8a31e8dd37 | /scripts/coop/extract_idhs.py | 96006b4849a3fe65260d49d3758153010ba1974b | [
"MIT"
] | permissive | NCiobo/iem | 37df9bc466ffcbe4f6b1f9c29c6b5266559f200c | 75da5e681b073c6047f5a2fb76721eaa0964c2ed | refs/heads/master | 2021-01-23T09:39:33.090955 | 2017-09-05T16:34:12 | 2017-09-05T16:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | """Extraction as requested by IA Public Health"""
import psycopg2
import sys
YEAR = int(sys.argv[1])
def main(argv):
"""Do Something"""
pgconn = psycopg2.connect(database='postgis', host='localhost',
port=5555, user='nobody')
cursor = pgconn.cursor()
cursor2 = pgconn.cur... | [
"[email protected]"
] | |
2ebeb1af2486684d1a3e45df73b6fbb9fe41cad1 | ba157236151a65e3e1fde2db78b0c7db81b5d3f6 | /String/Shortest Distance to a Character.py | 61944332f699e54e8ea2514cf4b61df0e868fee3 | [] | no_license | JaberKhanjk/LeetCode | 152488ccf385b449d2a97d20b33728483029f85b | 78368ea4c8dd8efc92e3db775b249a2f8758dd55 | refs/heads/master | 2023-02-08T20:03:34.704602 | 2020-12-26T06:24:33 | 2020-12-26T06:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | class Solution(object):
def produce_range(self,arr,s,e):
if s == e:
return
else:
length = e-s
c = 1
for i in range(s,s+length/2):
arr[i] = c
c += 1
if (e-s) % 2 == 0:
c -= 1
... | [
"[email protected]"
] | |
26f7c3a515ee832fb3576f44619b37adfd2f0357 | 6f56e44e04a287a2545b4c43a09fa82d6f8551a6 | /dcp100 - given infinite 2D grid and seq of points to cover in order, find min num steps.py | 27412150dba3353bf13f3ff326d280e14bae840d | [] | no_license | seanchen513/dcp | bb7ab2f9632700c5d23ccfa92b0e8a541c508d3b | c0b19833c51833d1d80016afe637734316194327 | refs/heads/master | 2020-04-10T21:21:23.308335 | 2020-01-30T15:51:49 | 2020-01-30T15:51:49 | 161,294,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | """
dcp#100, 416
This problem was asked by Google.
You are in an infinite 2D grid where you can move in any of the 8 directions:
(x,y) to
(x+1, y),
(x - 1, y),
(x, y+1),
(x, y-1),
(x-1, y-1),
(x+1,y+1),
(x-1,y+1),
(x+1,y-1)
You are given a sequence of points and the order in which y... | [
"[email protected]"
] | |
5e10d01be687ad36d906c3e893f05564f5edc79e | bf4f11bcac4c92975fdcb98c328a03a663d2d9ae | /dask_gdf/tests/test_sort.py | 9c4988271286624f74c78fcbd7e0bede033a9e90 | [
"Apache-2.0"
] | permissive | Quansight/dask_gdf | 88063f6ca4d3de5a5e7ed5d2f3e23fbe55cc1523 | 9f67410f4ff6c5cea18f831404d2f2fe7bf632ab | refs/heads/master | 2020-03-28T14:46:50.533877 | 2018-11-06T19:26:56 | 2018-11-06T19:26:56 | 148,521,998 | 1 | 1 | Apache-2.0 | 2018-09-19T14:43:19 | 2018-09-12T18:12:49 | Python | UTF-8 | Python | false | false | 1,314 | py | import pytest
import numpy as np
import pandas as pd
import pygdf
import dask
import dask_gdf as dgd
@pytest.mark.parametrize('by', ['a', 'b'])
@pytest.mark.parametrize('nelem', [10, 100, 1000])
@pytest.mark.parametrize('nparts', [1, 2, 5, 10])
def test_sort_values(nelem, nparts, by):
df = pygdf.DataFrame()
... | [
"[email protected]"
] | |
df251314f2e045c99600345965dcd45e6ea5f35e | a68dfddfa83b9ab7b8a8843bf1d118d27246c637 | /abc034/b.py | 83ef14959e900436372553d4b3987982cbef7244 | [] | no_license | ry3s/atcoder | fa1dbe3995a196df93ec2aec2ef63755c7b956ad | cc88d386269a56164ba64520230cf8c54ad18b3d | refs/heads/master | 2021-11-25T10:52:28.952908 | 2021-11-16T19:08:03 | 2021-11-16T19:08:03 | 185,827,644 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | n = int(input())
if n % 2 == 0:
print(n - 1)
else:
print(n + 1)
| [
"[email protected]"
] | |
ee47ea3245a9cd92cd24c180636dd59a9eba5dfa | b6a31ec10b39a3dbae183ba40c42078cadf88946 | /383. Ransom Note.py | 900fdd239e174e5afdc8395cd90ddc62d89eb8ef | [] | no_license | QIAOZHIBAO0104/My-Leetcode-Records | 69fabd11b279f08861cd644973e51bf664da0d90 | 882724c8d50b2f21193c81e5072c31385c5e6b8e | refs/heads/main | 2023-07-11T00:17:02.368441 | 2021-08-07T16:19:45 | 2021-08-07T16:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | '''
https://leetcode.com/problems/ransom-note/
Given an arbitrary ransom note string and another string containing letters from all the magazines,
write a function that will return true if the ransom note can be constructed from the magazines ; otherwise, it will return false.
Each letter in the magazine string can o... | [
"[email protected]"
] | |
3457d37c6f1dfc3005c54f4b733dd89fd782404f | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /ARC/arc001-arc050/arc041/b.py | 923178d3ccfc5919230f3dbbbcc329f538fb9950 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 764 | py | # -*- coding: utf-8 -*-
def main():
n, m = map(int, input().split())
b = [list(map(int, input())) for _ in range(n)]
dxy = [(0, 1), (0, -1), (-1, 0), (1, 0)]
ans = [[0 for _ in range(m)] for _ in range(n)]
for i in range(1, n - 1):
for j in range(1, m - 1):
value_mi... | [
"[email protected]"
] | |
8dc21b539a1709fbbc19f848faf4d29c48d613e5 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Athena/training/demo/demo/weave/sum_ex.py | e71d44f05ce9cdb9fe79675d5a085c08694899d1 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,262 | py | import time
from numpy import array, arange
from scipy import weave
def weave_sum(a):
""" Build a 'sum' method that will work on contiguous
1D arrays.
"""
code = """
double sum = 0.0;
for(int i=0; i < Na[0]; i++)
sum += a[i];
return_val = sum; ... | [
"[email protected]"
] | |
55c90344c15d291f3944d5301b73b6802bc87b8a | 321e58ab3e6b2385bb3549aaaefd56a58c2a51e7 | /python/tests/install_test.py | 3b7fc9c2bb45e11fe69b5f78ed4954a33be2b93f | [] | no_license | alexmadon/atpic_photosharing | 7829118d032344bd9a67818cd50e2c27a228d028 | 9fdddeb78548dadf946b1951aea0d0632e979156 | refs/heads/master | 2020-06-02T15:00:29.282979 | 2017-06-12T17:09:52 | 2017-06-12T17:09:52 | 94,095,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | import unittest
import os
import sys
import atpic.installerat
class installer_test(unittest.TestCase):
"""Test the installer test functions"""
def testFind(self):
file="fixture/matcher.txt"
nb=atpic.installerat.check_file_match_re("GOOD",file)
print nb
class install_test(unittest.TestC... | [
"[email protected]"
] | |
5b96b3ddcc2765aafbb02d61bec76bd8d23d15cd | 33e2187c1815b1e1209743f5a4870401d2097d71 | /CTCI/Tree & Graph/q.4.11.py | dfa56f17cc8b2af6fcc49e074a6ab6f8e7d13531 | [] | no_license | sachinjose/Coding-Prep | 8801e969a3608b5e69dc667cba7f3afaf7273e88 | 95f6bc85e7c38034e358af47ef4c228937cd4629 | refs/heads/master | 2022-12-26T22:49:48.510197 | 2020-09-22T07:05:55 | 2020-09-22T07:05:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | import random
class Node:
def __init__(self,item):
self.item = item
self.left = None
self.right = None
self.size = 1
def get_size(self):
return self.size
def get_item(self):
return self.item
def getRandomNode(self):
if(self.left):
leftSize = self.left.get_size();
else:
leftSize = 0
inde... | [
"[email protected]"
] | |
9cc40664902384286bd894cb58a537542e7f153a | ca23b411c8a046e98f64b81f6cba9e47783d2584 | /conqur/main.py | 1f5fd9a7d6582fbe8aaef86058a1dea4f096a678 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | pdybczak/google-research | 1fb370a6aa4820a42a5d417a1915687a00613f9c | 0714e9a5a3934d922c0b9dd017943a8e511eb5bc | refs/heads/master | 2023-03-05T23:16:11.246574 | 2021-01-04T11:30:28 | 2021-01-04T11:30:28 | 326,629,357 | 1 | 0 | Apache-2.0 | 2021-02-01T12:39:09 | 2021-01-04T09:17:36 | Jupyter Notebook | UTF-8 | Python | false | false | 37,968 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"[email protected]"
] | |
3b6de3ae7faba0ea8ec99b3a5c83cc7559073782 | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /dist-packages/cinderclient/client.py | e456cfe6d996977df4a4652f1ffbeee7c578d2df | [] | no_license | liyongle/openstack-mitaka | 115ae819d42ed9bf0922a8c0ab584fa99a3daf92 | 5ccd31c6c3b9aa68b9db1bdafcf1b029e8e37b33 | refs/heads/master | 2021-07-13T04:57:53.488114 | 2019-03-07T13:26:25 | 2019-03-07T13:26:25 | 174,311,782 | 0 | 1 | null | 2020-07-24T01:44:47 | 2019-03-07T09:18:55 | Python | UTF-8 | Python | false | false | 23,537 | py | # Copyright (c) 2011 OpenStack Foundation
# Copyright 2010 Jacob Kaplan-Moss
# Copyright 2011 Piston Cloud Computing, 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... | [
"[email protected]"
] | |
24c198237b82e20343d94e08825c53eaf03ddce9 | 93ad28897161a30027a2ac1d10c7235f6d66b2f8 | /docker_registry_client_async/dockerregistryclientasync.py | 85883c3bcadcae48594408ef5eba121d90761132 | [
"Apache-2.0"
] | permissive | GitHK/docker-registry-client-async | 0ce117374eb094c3705510d72c081d24c316bada | 384b1b7f7abcda55258028d930b45054ab03f6c4 | refs/heads/main | 2023-05-11T10:50:55.432955 | 2021-03-16T18:57:25 | 2021-03-16T18:57:25 | 371,687,021 | 0 | 0 | Apache-2.0 | 2021-05-28T12:03:12 | 2021-05-28T12:03:11 | null | UTF-8 | Python | false | false | 53,738 | py | #!/usr/bin/env python
# pylint: disable=too-many-lines,too-many-public-methods
"""Asynchronous Docker Registry Client."""
import json
import logging
import os
import re
from http import HTTPStatus
from pathlib import Path
from ssl import create_default_context, SSLContext
from typing import Any, Dict, List, Union
f... | [
"[email protected]"
] | |
60c9a1554ec6a514ee2d377e0f436211713d08d6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_drawls.py | dcb613684441c7614a936842e41bce32f8ab5fe1 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _DRAWLS():
def __init__(self,):
self.name = "DRAWLS"
self.definitions = drawl
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['drawl']
| [
"[email protected]"
] | |
0a06a1af1bd774cd4ea1106f94f1566e382efbe9 | 0fe37e11df976c55fe5bbe492879b7cd8a95b7c5 | /27_public_test/03_spider_test.py | bad3562d5d72ee0956bc52b9c32569d4ae326cfe | [] | no_license | 1286211699/mmc_code | 9bb7761107604b445dea4fe5acf9d503fbc28dfa | ee97879632dfd7d24c604f7db52c82fa29109daa | refs/heads/master | 2022-12-08T23:19:06.382825 | 2020-05-08T13:59:46 | 2020-05-08T13:59:46 | 177,100,815 | 2 | 0 | null | 2022-12-08T01:42:47 | 2019-03-22T08:25:37 | HTML | UTF-8 | Python | false | false | 4,597 | py | # -*- coding: utf-8 -*-
# @Time : 2018/12/27 14:49
# @Author : for
# @File : 03_spider_test.py
# @Software: PyCharm
# from urllib import request
#
# import requests,time
# url = 'https://image.baidu.com/search/acjson?tn=resultjson_com&ipn=rj&ct=201326592&is=&fp=result&queryWord=%E5%94%AF%E7%BE%8E&cl=2&lm=-1&... | [
"[email protected]"
] | |
e3d23e19fb56278fe483550fa5c9206258d1866b | 609085edf06f3091ecd639007480fb7cba15126f | /napari/components/experimental/monitor/_monitor.py | 7f924f33ab276f4524af867b366a2f4a12ffd949 | [
"BSD-3-Clause"
] | permissive | jojoelfe/napari | c7432daa6672045e95a58946c90ed0a5c779ef2d | c871c319247b79d4c5cc9270c0fec04740aed9d0 | refs/heads/master | 2023-05-12T17:08:48.145360 | 2022-12-21T16:25:43 | 2022-12-21T16:25:43 | 241,278,044 | 0 | 0 | BSD-3-Clause | 2023-05-01T02:58:28 | 2020-02-18T05:11:42 | Python | UTF-8 | Python | false | false | 6,774 | py | """Monitor class.
The Monitor class wraps the MonitorServer and MonitorApi. One reason
for having a wrapper class is that so the rest of napari does not
need to import any multiprocessing code unless actually using
the monitor.
"""
import errno
import json
import logging
import os
import sys
from pathlib import Path
f... | [
"[email protected]"
] | |
5a4d13317f4b72112f488988ccf1aec7d04865b9 | e89837f01f81a8b63015a31a45507fca95b75335 | /inference/export.py | 433d65683b0a9f46e56b8a50241a67205beba67a | [] | no_license | PaulZhangIsing/etagger | 4af56fa30ae7e77411be77750d679c66b0ab3848 | 306b76e51124623ff434e45b0f5e3d2915eaa5d6 | refs/heads/master | 2020-04-24T01:03:51.168249 | 2019-02-20T02:06:35 | 2019-02-20T02:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | from __future__ import print_function
import sys
import time
import argparse
import tensorflow as tf
# for LSTMBlockFusedCell(), https://github.com/tensorflow/tensorflow/issues/23369
tf.contrib.rnn
def export(args):
session_conf = tf.ConfigProto(allow_soft_placement=True, log_device_placement=False)
sess = tf.... | [
"[email protected]"
] | |
7174dacdc84b4da1c7036ed509ffdd9820d05787 | a2ab6c23253badb3be54b19ba061e1aeaac6a8cd | /obj_detection/tf_api/object_detection/builders/image_resizer_builder.py | 13c029cd24114d4fa78c0e21a52e4ff45500ac24 | [] | no_license | vivek09pathak/ImageDetection_RealTime | 0720fb4a6f35a81591f401a04ae44aa3bbea013f | d9e376b41a1216aecaacc9626cee59d45001695c | refs/heads/master | 2022-12-26T22:04:18.328476 | 2020-09-30T10:20:15 | 2020-09-30T10:20:15 | 152,729,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,693 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"[email protected]"
] | |
e402f7415864f1e25dab0fb3075576751ea865b9 | 9a391fdd281e92427c299e061335987b3a0d0ce5 | /scripts/download_attachments.py | 2a71d0d63c6ed24d1c56c436a11b240821721298 | [] | no_license | felixebert/offeneskoeln | 8b63d5c5e669f0b65e56d935d73f82a0c14390fb | 587b7e5564a31522ea28034886b78221eb509ace | refs/heads/master | 2021-01-16T20:44:12.206718 | 2013-01-08T14:49:39 | 2013-01-08T14:49:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Lädt Anhänge eines bestimmten Datumsbereichs herunter
Copyright (c) 2012 Marian Steinbach
Hiermit wird unentgeltlich jeder Person, die eine Kopie der Software und
der zugehörigen Dokumentationen (die "Software") erhält, die Erlaubnis
erteilt, sie uneingeschränkt zu benutze... | [
"[email protected]"
] | |
00d73fc855f563d69f9529e02177901bbf755bdb | 6841787dc208198535c90ee76d035d8837f8b973 | /alipay/aop/api/response/AlipayCommerceEcEmployeeInviteQueryResponse.py | f2d86a19b1c5ee78a6a56be338006b74a17a9d00 | [
"Apache-2.0"
] | permissive | demlution/alipay-sdk-python-all | e56ea12651717476f940212c281b6c2199dd3fa6 | c3cb81aa5980913e7cd51edcf754a804495a9a30 | refs/heads/master | 2022-10-09T02:08:28.789764 | 2022-09-20T04:32:03 | 2022-09-20T04:32:03 | 263,779,638 | 0 | 1 | null | 2020-05-14T00:58:51 | 2020-05-14T00:58:51 | null | UTF-8 | Python | false | false | 1,047 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayCommerceEcEmployeeInviteQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayCommerceEcEmployeeInviteQueryResponse, self).__init__()
self._enterprise_... | [
"[email protected]"
] | |
fdf6a03063cf072a159e6c921d303d350ab9a597 | 8a965c2a21d738468fc621915d39b39d1972fac0 | /testserver.py | 7307b5b80ecf648d3cd423398170a66f07f9ec90 | [] | no_license | Ashmaitelly/seproject2chatapp | 38cc6dd918783f6d1d11aad0a91b8427c9316a3d | 88af7d958d093802bae976f17f08f7fa7002420c | refs/heads/master | 2023-01-22T23:45:08.774654 | 2020-12-06T17:47:29 | 2020-12-06T17:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket
print('Server running...')
clients = []
class SimpleChat(WebSocket):
def handleMessage(self):
for client in clients:
if client != self:
client.sendMessage(self.data)
def handleConnected(self):
pr... | [
"email"
] | email |
fef13ff9d1090609b64b3e39fab679af73805c2f | 240ff4c82e5f3738b33699d69fe4d81abfdd7d1a | /data_structures/dictionaries_and_arrays/1_print_array/solution/.model_solution/solution.py | 95640a8f35cda5eba612bd079e5c8e1a0606076e | [] | no_license | FiodorGrecu/Exercises | f816549a3153d25ce2e7906789bfd0fac17d8d4a | 21121a0ca385883953b2f5a9886add40efa21e6f | refs/heads/master | 2023-04-18T15:11:04.023546 | 2021-04-22T00:39:41 | 2021-04-22T00:39:41 | 283,240,812 | 0 | 0 | null | 2020-08-20T18:43:57 | 2020-07-28T14:42:49 | Python | UTF-8 | Python | false | false | 65 | py | def print_array(array_1):
for i in array_1:
print(i)
| [
"[email protected]"
] | |
0cbc1facbd06e26b6bb163a0add0ca8ae030a6fa | 0d8ce8f494880c885bd48ac3a28ee9697c15aff4 | /frontend/models.py | 800c97d8456eaf532dbce38d285bb008d911dff0 | [] | no_license | chensandiego/carrental-django | e0f474a4d8d72940b3db1dc17a540e66222c376a | 30b594ca238545a59ee00e28aae3705e6638c93e | refs/heads/master | 2021-01-20T20:39:04.420338 | 2016-08-05T05:36:13 | 2016-08-05T05:36:13 | 64,991,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
class Car(models.Model):
name = models.CharField(max_length=100)
image = models.ImageField(upload_to='car_images')
description = models.TextField()
daily_rent = models.IntegerField()
... | [
"[email protected]"
] | |
59869d431513f7d2c742a61fc0dd9536bf55fd9a | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst/optimized_32226.py | 532482a9fda8771fc83bc1c47534ac1ac7d2a0ab | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,508 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"[email protected]"
] | |
087014408c5b2c09f6f943476f1fa7b570ae0450 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5756407898963968_0/Python/Roun/magic.py | e30d7e751a99a8d84316f435875bc46b4da76ef6 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | #!/usr/bin/env python
from __future__ import print_function
from sys import argv,stdin
with open(argv[1]) if len(argv)>1 else stdin as f:
num_cases = int(f.readline())
for i in xrange(num_cases):
row_idx1 = int(f.readline())
arrangement1 = [f.readline() for j in xrange(4)]
set1 = set(a... | [
"[email protected]"
] | |
a63b5f56d46d28618515820a9c7e9d185e53d0e7 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/B/buttub/basic_twitter_scraper_338.py | 831396458ed083ee5c81b59e0ebd3a27d47a6645 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | ###################################################################################
# Twitter scraper - designed to be forked and used for more interesting things
###################################################################################
import scraperwiki
import simplejson
import urllib2
# Change QUERY to y... | [
"[email protected]"
] | |
62d8a7d1cd85bf3326485ad8b3d09b6af3c09161 | a5d05e3cecfa6571016e41d19c982f1082714582 | /TLG.py | 80349d5374afe2a719cb3a67b4ecdf2a8b8152ed | [] | no_license | Sanket-Mathur/CodeChef-Practice | 8ebc80eb9a32c90a5b3785348fca2048190dbeb0 | cba5bc2eaaf5489cbd8e85acaca6f82d223cff4f | refs/heads/master | 2023-08-08T05:59:42.755206 | 2021-09-26T12:44:15 | 2021-09-26T12:44:15 | 268,267,425 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | try:
S, A, B = [], [], []
for _ in range(int(input())):
a, b = map(int, input().split())
A.append(a); B.append(b)
a = sum(A); b = sum(B)
S.append(a-b)
if max(S) > abs(min(S)):
print(1, max(S))
else:
print(2, abs(min(S)))
except:
pass
| [
"[email protected]"
] | |
5434b5dbe590c3fed01340af08021e6c3c2756a2 | 26192962dc2627e7ca5f0e3b249c3fabcf52442c | /Python/Iniciante/1002 - Área do Círculo.py | 4e699785d2644624cef0240deb3cc5ce5f019580 | [] | no_license | PierreVieira/URI | 77278ccb1724ca206ab2c12afbea1e51fa08ff73 | c1eb211c788d26b5cb9bedf5dda4147a2961fa19 | refs/heads/master | 2023-04-10T07:03:13.954639 | 2023-03-22T00:18:28 | 2023-03-22T00:18:28 | 189,321,748 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | """
Autor: Pierre Vieira
Data da submissão: 04/05/2018 16:49:45
"""
raio = float(input())
print('A={:.4f}'.format(3.14159*raio*raio)) | [
"[email protected]"
] | |
655ab4a239d1041ff2cb3539fe9e397b55a1e9ba | d769bb17ce4ca61df1cb5c88a2c2ae8202b6927f | /unitest/test_oprp.py | 49f8a8710fcb14c8ac49906dbe17ef4479ad37e0 | [
"Apache-2.0"
] | permissive | dallerbarn/oictest | 596489625c459d6607cacb90b1e593eca7465fc9 | 0f85acf8ee081f59176600e0db7bfee915f5cb3b | refs/heads/master | 2020-12-30T19:58:25.301555 | 2015-05-21T08:56:50 | 2015-05-21T08:56:50 | 35,876,393 | 0 | 0 | null | 2015-05-19T10:48:27 | 2015-05-19T10:48:26 | null | UTF-8 | Python | false | false | 1,594 | py | import json
from rrtest.check import WARNING
from rrtest import Trace
from oictest.oprp import not_supported, support
from oictest.base import Conversation
from oictest.check import factory as check_factory
from oictest.oidcrp import Client
from oic.oic.message import factory as message_factory
from oic.oic.message imp... | [
"[email protected]"
] | |
561d151ac587c161a7e42f1da177389d1757e03f | 5ae01ab82fcdedbdd70707b825313c40fb373fa3 | /scripts/charonInterpreter/parsers/MaterialBlock/MasettiMobility/ElectronMobilityParameters/charonLineParserDopantSpecies.py | a8b6aca7a2756b075e6afeee05b0c806fd872472 | [] | no_license | worthenmanufacturing/tcad-charon | efc19f770252656ecf0850e7bc4e78fa4d62cf9e | 37f103306952a08d0e769767fe9391716246a83d | refs/heads/main | 2023-08-23T02:39:38.472864 | 2021-10-29T20:15:15 | 2021-10-29T20:15:15 | 488,068,897 | 0 | 0 | null | 2022-05-03T03:44:45 | 2022-05-03T03:44:45 | null | UTF-8 | Python | false | false | 5,527 | py |
from __future__ import print_function
import copy
class charonLineParserDopantSpecies:
"DopantSpecies parser"
def __init__(self):
# Register the parsing keys
self.parserName = "DopantSpecies"
self.parsingKey = "dopant species"
self.parsingKeyOptional = []
self.interpr... | [
"[email protected]"
] | |
a23383ab17a182849ae340924a7204e43425fae6 | 2660859a9e1a73da695a42d73b75863e02185dce | /src/pretix/plugins/pretixdroid/signals.py | 7164ff39eb9d56a3180640a2abaf46e1bbbbba63 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | alainrk/pretix | d4931a5528cfd42b1a9d9fb1b1df02aeee507171 | 867a8132aa1ed73dd9513efae5b3c46b5bbae140 | refs/heads/master | 2021-01-18T19:49:27.366758 | 2017-04-01T13:23:11 | 2017-04-01T13:23:11 | 86,915,380 | 1 | 0 | null | 2017-04-01T13:31:04 | 2017-04-01T13:31:04 | null | UTF-8 | Python | false | false | 1,444 | py | import json
from django.core.urlresolvers import resolve, reverse
from django.dispatch import receiver
from django.utils.translation import ugettext_lazy as _
from pretix.base.signals import logentry_display
from pretix.control.signals import nav_event
@receiver(nav_event, dispatch_uid="pretixdroid_nav")
def contro... | [
"[email protected]"
] | |
71df9a20bf7584b49b5d66c00b8295b3e97ee01b | bd88cc281bf5cb92d7f5cd29c028298b0f79de2e | /robot-name/robot_name.py | 749f9abc8323278c1d0db1162dfba32397a7ec6d | [] | no_license | kingsley-ijomah/python-basics | 4f3b6bcb4c264d23d9d223d2e00609ad30b7b0e5 | 190409625246243a0be6cc5e52463d541497b467 | refs/heads/master | 2021-03-11T20:03:09.272119 | 2020-05-13T08:30:08 | 2020-05-13T08:30:08 | 246,557,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from string import ascii_uppercase, digits
from random import seed, sample
class Robot:
def __init__(self):
self.generate_name()
def generate_name(self):
seed()
self.name = self.alphabets() + self.digits()
def reset(self):
self.generate_name()
@staticmethod
def al... | [
"[email protected]"
] | |
c83edd0b9cd2dd22f40be2012e2d44f280509dc0 | d63222abe326a3c8debd59bb8d24cb7eab3de09e | /codeforces/contest/1108/C.py | f7085b931f6177bfc0fd876a9a41f15536b83baf | [] | no_license | tariqrahiman/pyComPro | 91f47e93eb0a077d489659fcf0a75d5c1a65fc17 | 86ec13f47506a2495ab6b6bbb58d4e8b2a21538b | refs/heads/master | 2022-02-10T04:15:40.194828 | 2019-06-16T10:22:38 | 2019-06-16T10:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | """
this is a standard python template for codeforces task, repo: github.com/solbiatialessandro/pyComPro/codeforces
"""
from sys import stdin as _stdin
from sys import stdout
stdin = lambda type_ = "int", sep = " ": list(map(eval(type_), _stdin.readline().split(sep)))
joint = lambda sep = " ", *args: sep.join(str(i) if... | [
"[email protected]"
] | |
36f62627e0ca608318f0af03cb4d32d0fcd88a63 | 45e7fc0c586729a9fbff0cd5ec036db292264bad | /siena/warp_BM_siena.py | 10bc958ee81017c5b1ef5533e1c6f6dd9436d6b8 | [] | no_license | ginakirkish/henrylab_scripts | 5a11dc96ed03f85e00b7330d26ee776b6f93ac63 | 5e3009180a731ccd10c851668b00234e6e6728a5 | refs/heads/master | 2020-12-12T17:48:48.280077 | 2020-02-10T19:22:42 | 2020-02-10T19:22:42 | 234,189,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,521 | py | from subprocess import check_call
from time import time
import argparse
import json
import pbr
from pbr.base import _get_output
from glob import glob
import os
import shutil
import pandas as pd
pbr_long ="/data/henry12/siena_BM/"
def get_t1(mse):
with open('{0}/{1}/alignment/status.json'.format(_get_output(mse), ... | [
"[email protected]"
] | |
0aca0fa93b087115f742f7f9df0f030f608de8bc | fd21d6384ba36aa83d0c9f05f889bdbf8912551a | /a10sdk/core/A10_file/file_dnssec_ds.py | ee5c3a4e9eccaa7b00d15e80f993072ec6a00574 | [
"Apache-2.0"
] | permissive | 0xtobit/a10sdk-python | 32a364684d98c1d56538aaa4ccb0e3a5a87ecd00 | 1ea4886eea3a1609b2ac1f81e7326758d3124dba | refs/heads/master | 2021-01-18T03:08:58.576707 | 2014-12-10T00:31:52 | 2014-12-10T00:31:52 | 34,410,031 | 0 | 0 | null | 2015-04-22T19:05:12 | 2015-04-22T19:05:12 | null | UTF-8 | Python | false | false | 1,904 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class DnssecDs(A10BaseClass):
""" :param action: {"optional": true, "enum": ["create", "import", "export", "copy", "rename", "check", "replace", "delete"], "type": "string", "description": "'create': create; 'import': import; 'export': export; 'copy': co... | [
"[email protected]"
] | |
e8fba3e66c853c5a89e54922bcbc99e07eea8bfc | 1ad12cbda2d378c403b9349a867c1e181e4eedc2 | /UWsubduction/params/utils.py | 7aba9b4cf25e1bd3fddd9dea2cb03abd0f66b010 | [
"CC-BY-4.0"
] | permissive | dansand/UWsubduction | 0633fd08b6e8505f156c62b59e730b49fd1ed03e | e13183de2dfb362a5531eaa926aeee0c352b8f29 | refs/heads/master | 2021-03-24T13:33:15.804823 | 2020-01-09T03:27:46 | 2020-01-09T03:27:46 | 119,228,582 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from easydict import EasyDict as edict
#####################
#Now we map pd, md to non-nonDimensionalized dictionaries, paramDict, modelDict
#####################
def build_nondim_dict(d, sca):
ndd = edict({})
for key, val in d.items():
#can only call .magnitude on Pint quantities
if hasattr(v... | [
"[email protected]"
] | |
5f3b114edb77ef8372388472e509b780881e6bac | b9651b4a73d17847a9df7c953d3b0753b260af3e | /view/messageview.py | 4dda6de42525476d7b2f55b0a97b544501673500 | [] | no_license | KevinB-a/forum | 3270dd2dfa763455e9a6fdf0e3077f54413b3d77 | b10bf8f7381e2bc03df9777cb0e1df1cea298785 | refs/heads/master | 2020-12-11T14:37:57.936880 | 2020-03-05T11:01:13 | 2020-03-05T11:01:13 | 233,873,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | from model.messagemodel import MessageModel
class MessageView ():
"""class to create and display messages"""
def __init__(self):
self.model = MessageModel()
def new_message(self):
"""write a new message with user entries """
content = input("Entrez le contenu de votre ... | [
"[email protected]"
] | |
8bcb9a0df3639fe02a9b93a66e802fea7740ab65 | ce864a3155ba441dab35fcd0f3d1d7f380d67106 | /Part1/RelationaDatabases/innerJoin_pandas.py | 2485139c6edea3fb659417323bea997b5ae11e74 | [] | no_license | rodrigoms2004/PythonImportDataCamp | c984e2b38c709899460f0a0cf5f1b4c06a7f91fa | 23ffc36f1454974e22a12f3eaa46d06d3f700ee6 | refs/heads/master | 2020-04-05T01:12:36.317958 | 2019-02-20T19:43:29 | 2019-02-20T19:43:29 | 156,427,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | # Import packages
from sqlalchemy import create_engine
import pandas as pd
db_file = './RelationaDatabases/Northwind_small.sqlite'
# db_file = './RelationaDatabases/Chinook.sqlite'
# Create engine: engine
engine = create_engine('sqlite:///' + db_file)
# Execute query and store records in DataFrame: df
df = pd.read_s... | [
"[email protected]"
] | |
ccae764344b61e02e98a695fbbcb8f7a4ab64455 | 379049c3c3ec7fbac35aec44895971002059643d | /05-python基础-字符串、列表、元组、字典/02-判断名字是否存在.py | e397ca0996acdf755631518507bdd117831d3efb | [] | no_license | mingyue33/python_base | 29e771415b59a80c8f0354723f621826aafb46aa | f6c25bb5f9ea4352764a2c7d6d6dd802cdf2b1cb | refs/heads/master | 2022-11-24T15:15:50.899518 | 2020-07-21T03:44:29 | 2020-07-21T03:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | #coding=utf-8
#1. 定义一个列表,里面有一些名字
names = ["xiaohong","xiaoming","laowang"]
#2. 获取一个要查找的名字
insertName = input("请输入您的名字:")
#3. 判断是否存在,并显示相应的提示
findFlag = 0
for name in names:
if name==insertName:
findFlag = 1
break#如果在前面已经找到了需要的名字,那么就结束循环,因为剩下的不会再进行判断,所以提升了程序的运行效率
#else:
# findFalg = 0
... | [
"[email protected]"
] | |
471363907332458677f8c8441596c6f6ab3bfaaa | 17e60f61fc82e7369802a1c597b58b0206ad9bec | /lib/rcDiskInfoWindows.py | d9621266bcf71fa24434e68c138816b64b16097e | [] | no_license | SLB-DeN/opensvc | 5e06d42947f51662fa16203a00670a88b9e1fea9 | 75baeb19e0d26d5e150e770aef4d615c2327f32e | refs/heads/master | 2021-05-17T05:35:18.585791 | 2020-03-19T15:20:05 | 2020-03-19T15:20:05 | 250,651,667 | 1 | 0 | null | 2020-03-27T21:29:22 | 2020-03-27T21:29:22 | null | UTF-8 | Python | false | false | 3,598 | py | import rcDiskInfo
import wmi
from rcUtilities import justcall, which
class diskInfo(rcDiskInfo.diskInfo):
def __init__(self):
self.h = {}
self.fcluns = {}
self.wmi = wmi.WMI()
def scan_mapping(self):
if len(self.fcluns) > 0:
return
if not which('fcinfo'):
... | [
"[email protected]"
] | |
b285a6b8ca9eb4ac0643ebe0bdb04b7377c2d3da | fbd5c602a612ea9e09cdd35e3a2120eac5a43ccf | /Finished/old_py/393.utf-8-编码验证.py | 76699d6f1fd1474e7ccec68a99bacf073a2a8d57 | [] | no_license | czccc/LeetCode | 0822dffee3b6fd8a6c6e34be2525bbd65ccfa7c0 | ddeb1c473935480c97f3d7986a602ee2cb3acaa8 | refs/heads/master | 2023-09-01T18:18:45.973563 | 2023-08-27T02:44:00 | 2023-08-27T02:44:00 | 206,226,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | #
# @lc app=leetcode.cn id=393 lang=python
#
# [393] UTF-8 编码验证
#
# @lc code=start
class Solution(object):
def validUtf8(self, data):
"""
:type data: List[int]
:rtype: bool
"""
def get_one_number(n):
for i in range(5):
if n & (128 >> i) == 0:
... | [
"[email protected]"
] | |
f59661020a5586029caaf7167761769a3761314c | 3b7ea5ac5a8aadf4ce577d4988d3afca76672311 | /ziplist.py | d415cdeded50cfd1521572175d8c8d18126ab365 | [] | no_license | Parya1112009/mytest | 6c0fec16cbe5b83803fce9b270d8c03d247f34a3 | 6f698b64b34eae0d1d0f8ca1eab4257893fdce83 | refs/heads/master | 2022-11-23T22:38:24.463420 | 2022-11-16T03:48:44 | 2022-11-16T03:48:44 | 88,562,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | list1 = [1,2,3,4,13,14,15]
list2 = [5,6,7,8,19,20,21]
#print list[::]
list3 = zip(list1,list2)
print (list3)
print list3[1::2]
print list3[2::4]
print list3[::5]
print list3[4::]
| [
"[email protected]"
] | |
14f43bf48d1b026bf488ee30115ec39a80659475 | 41586d36dd07c06860b9808c760e2b0212ed846b | /desktop/toolkit/qt5/qt5-svg/actions.py | 472146b914b7669fbaa5b1036574caa84c1164b4 | [] | no_license | SulinOS/SulinRepository | 4d5551861f57bc1f4bec6879dfe28ce68c7c125d | 9686811a1e06080f63199233561a922fe1f78d67 | refs/heads/master | 2021-06-15T21:34:25.039979 | 2021-06-05T13:43:34 | 2021-06-05T13:43:34 | 207,672,864 | 6 | 3 | null | 2019-12-06T08:11:22 | 2019-09-10T22:16:17 | Python | UTF-8 | Python | false | false | 827 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import shelltools
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import qt
from ina... | [
"[email protected]"
] | |
56ed6415334c94846e424fbe3a3fa544287add23 | 28c0bcb13917a277cc6c8f0a34e3bb40e992d9d4 | /koku/masu/processor/parquet/parquet_report_processor.py | 56f26031a5e31292051e466eb8e95e023fc13982 | [
"Apache-2.0"
] | permissive | luisfdez/koku | 43a765f6ba96c2d3b2deda345573e1d97992e22f | 2979f03fbdd1c20c3abc365a963a1282b426f321 | refs/heads/main | 2023-06-22T13:19:34.119984 | 2021-07-20T12:01:35 | 2021-07-20T12:01:35 | 387,807,027 | 0 | 1 | Apache-2.0 | 2021-07-20T13:50:15 | 2021-07-20T13:50:14 | null | UTF-8 | Python | false | false | 20,188 | py | #
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""Processor to convert Cost Usage Reports to parquet."""
import datetime
import logging
import os
from functools import partial
from pathlib import Path
import pandas as pd
from dateutil import parser
from django.conf import settings
from api.co... | [
"[email protected]"
] | |
b0480d6a3406a5686ec59eb79bf0f6dabcf6e2f9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/97/usersdata/126/56593/submittedfiles/lecker.py | bc318ca69e3b8c6abb02f03aae910aa0e1177b20 | [] | 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 | 747 | py | # -*- coding: utf-8 -*-
def lecker(a):
cont=0
for i in range(0,len(a),1):
if i==0:
if a[i]>a[i+1]:
cont=cont+1
elif i==len(a):
if a[i]>a[i-1]:
cont=cont+1
else:
if a[i-1]<a[i]>a[i+1]:
cont=cont+1
if... | [
"[email protected]"
] | |
1b35196193a61bf28c62ee650d3e53c45e7541b0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03053/s439502616.py | 81a964f661902f7e08cba0681473061dbc558555 | [] | 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 | 792 | py | import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)
H, W = mapint()
As = [list(input()) for _ in range(H)]
from collections import deque
Q = deque()
dist = [[10**18]*W for _ in range(H)]
for h in range(H):
for w in range(W):
... | [
"[email protected]"
] | |
e4daa4d6e144c02ac597d78241ad3a35b16afed7 | 9f884a3584eef771f8c010e296c5d763098be243 | /povary/apps/competitions/migrations/0005_auto__add_competitionvote__add_field_competition_voting_start__add_fie.py | f55e0c6e7189ace0cda0c46ccaa2572717f13e3e | [
"BSD-3-Clause"
] | permissive | TorinAsakura/cooking | fc8658ce2ac21c2e00dc307399a5fa24971a20c1 | cf0c78f613fa9ce0fcd4ec7a397ab880d9dd631a | refs/heads/master | 2023-01-24T13:07:38.529811 | 2020-12-08T22:14:33 | 2020-12-08T22:14:33 | 319,773,012 | 0 | 0 | BSD-3-Clause | 2020-12-08T22:14:34 | 2020-12-08T22:08:34 | null | UTF-8 | Python | false | false | 17,437 | py | # -*- coding: 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 model 'CompetitionVote'
db.create_table('competitions_competitionvote', (
('id', self.g... | [
"[email protected]"
] | |
240ec89ce59b1aa0f0409a5eb3452080d774caf3 | f76a36bb022c4da3fabf0cf13dac8c634c011b3a | /update.py | 9ab3aa4af95a287f69a8816bdb56bf3bf7b12ef8 | [] | no_license | jtomasek/requirements | eb12da3afb082ebd69d55d8204c915aa018af2fb | e60166eae3795232fcd2bcf03592e8228e0aa0e4 | refs/heads/master | 2021-01-16T22:42:06.674581 | 2013-05-29T13:05:00 | 2013-05-29T13:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 OpenStack, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | [
"[email protected]"
] | |
9927cd4bca84ee185c4b5cdf617ba0a29e5b1f9a | 251d6d11e807fa47fd1bad1f070b727500b17fd5 | /shares/apps.py | 9c121ab60adeccabe231925656fcce78bc87b080 | [] | no_license | khokhlov/dinv | a0964403a930f479fb744d90c4dbad887ba9810c | 7943b533808c913ec3564aa28ada485f857609ee | refs/heads/master | 2020-05-26T13:06:42.975971 | 2017-03-10T12:02:30 | 2017-03-10T12:02:30 | 82,479,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | #coding: utf-8
from __future__ import unicode_literals
from django.apps import AppConfig
class SharesConfig(AppConfig):
name = 'shares'
verbose_name = u'Акции'
| [
"[email protected]"
] | |
63186a8cdc7fa9612b687e2999dde46ed4eb74c7 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/valid_20200616215901.py | 0a5eee49ea2e4313e5ba7c021044a1aa7cca4116 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | # Ipv4 --> 4 decimal numbers,between 0 to 255
# leading zero's is invalid
# check whethere its a digit between 0 to 255
import string
def valid(str):
if str[len(str)-1] == ":" or str[len(str)-1] == ".":
return "Neither"
address = str.split(".")
numbers = range(0,256)
result = None
... | [
"[email protected]"
] | |
10c9f668c41efc95b861f012f1251780a6fb2386 | 4de28b1f6d97640834e4a795e68ca9987f9e2cd5 | /check plugins 2.1/dell_idrac_redfish/agent_based/dell_idrac_rf_thermal.py | 43eec1ae032a7af3d96c7df8ffabee97d4088086 | [] | no_license | Yogibaer75/Check_MK-Things | affa0f7e6e772074c547f7b1df5c07a37dba80b4 | 029c546dc921c4157000d8ce58a878618e7bfa97 | refs/heads/master | 2023-09-01T15:52:28.610282 | 2023-08-29T06:18:52 | 2023-08-29T06:18:52 | 20,382,895 | 47 | 16 | null | 2023-07-30T15:52:22 | 2014-06-01T18:04:07 | Python | UTF-8 | Python | false | false | 1,008 | py | #!/usr/bin/env python3
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# (c) Andreas Doehler <[email protected]/[email protected]>
# This 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 i... | [
"[email protected]"
] | |
9154f740d0f00f873094db8dbd94808071bf1838 | 95a6555114011d7ba9b0a842dd348dc4a18a56fc | /page_locators/about_page_locator.py | 8d1ab126684c99a78c454f3e87d3de5abecd78ad | [
"Unlicense"
] | permissive | battyone/ParaBankSeleniumAutomation | c96dfdcb11591dd12db31b7ddd373326ce4284f7 | e28a886adba89b82a60831ad96a3a8f00f863116 | refs/heads/master | 2023-05-04T19:58:13.067568 | 2020-03-15T17:19:09 | 2020-03-15T17:19:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
from selenium.webdriver.common.by import By
from page_locators.base_page_locator import BasePageLocator
class AboutPageLocator(BasePageLocator):
'''
Holds all relevant locators for 'ABOUT' page we... | [
"[email protected]"
] | |
dad4f8d07f49c9018d64a20ca5e304e947a1a965 | b45d66c2c009d74b4925f07d0d9e779c99ffbf28 | /tests/unit_tests/core_tests/service_tests/analytics_tests/test_aggregate_time_series_demographics.py | 69912b74d94a76c4dd8e28f2516f6162451ae71f | [] | no_license | erezrubinstein/aa | d96c0e39762fe7aaeeadebbd51c80b5e58576565 | a3f59ba59519183257ed9a731e8a1516a4c54b48 | refs/heads/master | 2021-03-12T23:44:56.319721 | 2016-09-18T23:01:17 | 2016-09-18T23:01:17 | 22,665,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,898 | py | from __future__ import division
from core.service.svc_analytics.implementation.calc.engines.demographics.aggregate_time_series_demographics \
import AggregateTimeSeriesDemographics
from core.service.svc_analytics.implementation.calc.company_analytics_calc_helper import CompanyAnalyticsCalcHelper
from core.service.s... | [
"[email protected]"
] | |
d89d6b19c984ccabeae5fc5aca7677c08e505160 | 4c0cfe74b972b6f758d479920118185f07b3ae66 | /project/project3/tests/q2_1_1.py | 5bf8157ed5f2b39dc87b7d16b08e49a84c6f52d8 | [
"BSD-3-Clause"
] | permissive | ds-modules/Colab-data-8 | 20a72aee6b7d051d2aff50a49f02c89891201971 | cccaff13633f8a5ec697cd4aeca9087f2feec2e4 | refs/heads/main | 2023-05-29T04:05:47.976935 | 2021-06-02T23:15:06 | 2021-06-02T23:15:06 | 333,593,562 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | test = {'name': 'q2_1_1', 'points': 1, 'suites': [{'cases': [{'code': '>>> 0 < one_distance < .01\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
| [
"[email protected]"
] | |
d1ab74682b364990dd5ac2704bf6a733bc592772 | 46494ee049e72d99a1b371a685692f040ab21a36 | /1345. Jump Game IV DC (27-12-20).py | 25cf8c7d0cacabf19275acd2406bcef42dc0b8ed | [
"MIT"
] | permissive | Dharaneeshwar/Leetcode | 5570b953787a65f5c2a831aca3645bca50710844 | cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287 | refs/heads/master | 2023-03-25T18:40:26.258939 | 2021-03-18T06:04:11 | 2021-03-18T06:04:11 | 313,374,143 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # Refer Solution
class Solution:
def minJumps(self, arr: List[int]) -> int:
arrlen = len(arr)
if arrlen in [0,1]:
return 0
graph = defaultdict(list)
for i in range(arrlen):
graph[arr[i]].append(i)
current = [0]
visited = set(... | [
"[email protected]"
] | |
cbea326e7b014b522803373a61372a366f563f9e | 96e77a734bf865f998e719fafcaabd120b93759c | /Python/Django/login_reg_proj/apps/login_reg_app/models.py | ea5e8361c65eb78b014f69c076a74c0cb4e33b65 | [] | no_license | imronha/codingdojoprojects | 3346feca1c03f625270eeded2cfb6a9b0249ab56 | 1b40688372844eca3fd02401f397c4ba4b334ce7 | refs/heads/master | 2020-04-05T12:59:14.237411 | 2017-11-06T08:27:06 | 2017-11-06T08:27:06 | 94,944,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from __future__ import unicode_literals
from django.db import models
import re
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
class UserManager(models.Manager):
def basic_validator(self, postData):
errors = {}
if len(postData['first_name']) < 2:
errors['fir... | [
"[email protected]"
] | |
1cb8be49fabf46b7d1996007bd3c40c46fb353c1 | 1775a5522f465cb74a1e02393d32c363bb7ef215 | /django/db/migrations/executor.py | 7ebfe3d13b012c3f15b931e04127b07bd98bbff4 | [
"BSD-3-Clause"
] | permissive | trught007/django | b280eaff7706e72a6fc0f298c68e3c065daa448b | d55d21dbb8b307941c2d26b95be46bf83015d868 | refs/heads/master | 2022-12-21T04:23:49.786811 | 2020-10-01T08:24:33 | 2020-10-01T08:24:33 | 300,203,187 | 0 | 0 | NOASSERTION | 2020-10-01T08:23:34 | 2020-10-01T08:23:33 | null | UTF-8 | Python | false | false | 6,401 | py | from django.db import migrations
from .loader import MigrationLoader
from .recorder import MigrationRecorder
class MigrationExecutor(object):
"""
End-to-end migration execution - loads migrations, and runs them
up or down to a specified set of targets.
"""
def __init__(self, connection, progress_... | [
"[email protected]"
] | |
6efbff97a1eb3d659a5b884175b4e260d12f7142 | 49cb44cfe9b4cd382d8a7d10e1719de69e356ed9 | /scripts/problems/ch4/p11/doSolutionStableNode.py | d1b8ad10850cc9c37fb79e5945439c7d0761cce3 | [] | no_license | joacorapela/figsResultsAndErrorsFromIzhikevich2007 | 913a25ff10479b04fa657cea013226766bef730c | 2c04cacbaa94485168926ddc7e343207beb033b9 | refs/heads/master | 2022-01-28T15:26:30.122964 | 2022-01-21T19:56:52 | 2022-01-21T19:56:52 | 150,012,910 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py |
import sys
import pdb
import math
import matplotlib.pyplot as plt
from plotFunctions import plotVectorField
def main(argv):
a = -6.0
b = 1.0
c = 1.0
xMin = -4.0
xMax = 4.0
nXs = 16
yMin = -4.0
yMax = 4.0
nYs=16
colorSaddle = (1.0, 0.0, 0.0)
colorSaddleNode = (0.5, 0.0, 0.0... | [
"[email protected]"
] | |
76f8121fe98413ca6968d65b7bd6bef9ed0594fd | 75e8f932e1e08c7e71380e6b71d85ddd04f052dd | /SDAPythonTesting/test_teacher.py | 0be270a7e62250060e66527352106940a261ccd8 | [] | no_license | aeciovc/sda_python_ee4 | fe470a253126ad307c651d252f9f9b489da32835 | 9e1e8be675fcafe4a61c354b55b71f53ad2af0fe | refs/heads/master | 2023-08-29T15:17:34.033331 | 2021-10-31T09:41:57 | 2021-10-31T09:41:57 | 365,678,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | import pytest
from teacher import Teacher
@pytest.fixture()
def valid_person_name():
yield 'James'
print("Cleaning the environment")
@pytest.fixture()
def invalid_person_name():
return ''
class TestCreateDirector:
@pytest.mark.skip(reason="still not implemented")
def test_create_director_wit... | [
"[email protected]"
] | |
f98c0ba473b4f18f1b2dc9a34cf29bf54651c48f | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/halfords_nl.py | a324790d8a41e361696f8252b1f530caa2776328 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 2,333 | py | import json
import re
from scrapy import Request, Spider
from locations.hours import DAYS_NL, OpeningHours
from locations.items import Feature
from locations.structured_data_spider import extract_email, extract_phone
class HalfordsNLSpider(Spider):
name = "halfords_nl"
item_attributes = {"brand": "Halfords"... | [
"[email protected]"
] | |
0ee2600a042dea599656b12452140b511d692026 | dffb9a8855adecc4bd4d21b9168a4e9bdc75e508 | /binarytree/toolcls.py | 2e1768b0a03994892d0ce52f717d37019e32f92e | [
"MIT"
] | permissive | ResolveWang/algorithm_qa | 95278c4459e38c55225304210770efb61d934fcc | a0cb649acaf8cf9d808272bc15f1951f2c05c828 | refs/heads/master | 2021-07-17T09:32:01.845815 | 2018-08-13T13:54:42 | 2018-08-13T13:54:42 | 100,107,109 | 90 | 29 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | class Node:
def __init__(self, value):
self.value = value
self.left = None
self.right = None | [
"[email protected]"
] | |
b9d0e135072234e5bc41f7d24f5b094c3e911e1e | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/RSGraviton/RSGravitonToGammaGamma_kMpl01_M_2500_TuneCUEP8M1_13TeV_pythia8_cfi.py | ef7485d71801413c97f0e543105aabed9bc8fecc | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,194 | py |
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection = cms.untracked.double(1.095e-3),... | [
"[email protected]"
] | |
276669d178cb5c98663816ef873c8f9ba74630fe | 46bb96c640eaeeaffc81dfaf62ddca084d9e127c | /bugbuzz_service/db/tables/sessions.py | 4c2ca601ff7e457f3d0b048f56db55183668c702 | [
"MIT"
] | permissive | pbehnke/bugbuzz-api | 4d475d53620f839ef6b33c5326ca1bc079936c88 | 5ed6810f65f1edabf65282359eabc3845df26a67 | refs/heads/master | 2021-06-17T06:45:26.633291 | 2017-05-22T18:55:28 | 2017-05-22T18:55:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | from __future__ import unicode_literals
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import Table
from sqlalchemy import Unicode
from sqlalchemy.dialects.postgresql import BYTEA
from . import metadata
from . import now_func
from ...utils import GUIDFactory
from .utc_dt import UTCDateTi... | [
"[email protected]"
] | |
94383ebb2f76b0a23a095a78a15e0712ce32f6c3 | 745197407e81606718c4cdbedb6a81b5e8edf50b | /tests/texttest/TestSelf/Miscellaneous/TrackProcesses/TargetApp/hello.py | 6d91a22c9c767c9d9e35c54069475d6b2eaed3b7 | [] | no_license | dineshkummarc/texttest-3.22 | 5b986c4f6cc11fd553dab173c7f2e90590e7fcf0 | 85c3d3627082cdc5860d9a8468687acb499a7293 | refs/heads/master | 2021-01-23T20:44:35.653866 | 2012-06-25T07:52:13 | 2012-06-25T07:52:13 | 4,779,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #!/usr/bin/env python
import subprocess, os
def devnull():
if os.name == "posix":
return "/dev/null"
else:
return "nul"
print 'Hello World, now sleeping!'
proc = subprocess.Popen([ "python", "-c", "import time; time.sleep(10)" ], stdin=open(devnull()), stdout=open(devnull(), "w"), stderr=subp... | [
"[email protected]"
] | |
9e0f38961c074a19d919bca5e680adbb48167373 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/f4c41963e833ab041b269f62a726d26ed6433987-<translate_quota>-bug.py | df94bd39e3f7dbe8d2e19d9a07950641d3fd66c6 | [] | 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 | 282 | py | def translate_quota(self, quota, parent_quota):
if six.text_type(quota).endswith('%'):
pct = int(quota[:(- 1)])
quota = ((int(parent_quota) * pct) / 100)
if (not quota):
return _limit_from_settings(parent_quota)
return _limit_from_settings(quota) | [
"[email protected]"
] | |
c53846484eec2daf2dabdcd9d015cf99c3297d22 | b47c136e077f5100478338280495193a8ab81801 | /Lights/adafruit-circuitpython-bundle-6.x-mpy-20210310/examples/ble_heart_rate_simpletest.py | 55bca725fc071fa3160f161bab7321a68ab8fcdb | [
"Apache-2.0"
] | permissive | IanSMoyes/SpiderPi | 22cd8747cc389f674cc8d95f32b4d86f9b7b2d8e | cc3469980ae87b92d0dc43c05dbd579f0fa8c4b1 | refs/heads/master | 2023-03-20T22:30:23.362137 | 2021-03-12T17:37:33 | 2021-03-12T17:37:33 | 339,555,949 | 16 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
"""
Read heart rate data from a heart rate peripheral using the standard BLE
Heart Rate service.
"""
import time
import adafruit_ble
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
fro... | [
"[email protected]"
] | |
2f705f3b5731158999fc4d2d605618c06352e922 | 2287048846a00f4cc5f55bd6d48da4a108aba7d7 | /review/migrations/0011_auto_20170320_0931.py | e774ee2eda1b026683b3e3c566933be1b659a175 | [
"BSD-2-Clause-Views"
] | permissive | kgdunn/peer-review-system | ab840060ad799c25e730e47a09bcbb3a09898890 | 1fd5ac9d0f84d7637a86682e9e5fc068ac404afd | refs/heads/master | 2021-02-08T10:10:16.271687 | 2017-08-07T10:55:21 | 2017-08-07T10:55:21 | 244,140,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-20 08:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('review', '0010_gradecomponent_name_in_table'),
]
operations = [
migrations.... | [
"[email protected]"
] | |
316d63df1926eb2c2fb3946ba166785457a4e14e | 2c07edf26ef31574d40c96a2d4d9e13238ec74a6 | /flask_backend/mailer.py | 1eea1462647912c938d16b7291535db6e7255e57 | [] | no_license | fryger/wsb_sys_wbudowane | 5a61270c4b22d51884117518d903fc386f8b25ca | 3f6cb8581b872d3b590bf41875098fd9105aeef1 | refs/heads/master | 2023-07-31T23:11:56.472684 | 2021-10-01T22:59:06 | 2021-10-01T22:59:06 | 408,139,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from tinydb import TinyDB, Query
db = TinyDB('./db.json')
table = db.table('Email')
config = table.all()[0]
sender = config['sender']
password = config['pass']
receiver = config['r... | [
"[email protected]"
] | |
47c3365c4129c52f09adb28a187e1c0da8f9d1e6 | 4feaf520374804d6f3feebe3700fb448692a44ba | /pullenti/ner/instrument/internal/ContentAnalyzeWhapper.py | 97a002311d30252a82e5f0e2d6222140dc2cd85c | [] | no_license | MihaJjDa/APCLtask | f7be3fb6b0f31801196bf779f6a7e62ce245493b | 4745b45e199887d433ab256bb2e2ebf5dbe3f7cd | refs/heads/master | 2020-04-16T17:15:10.846647 | 2020-02-24T16:06:43 | 2020-02-24T16:06:43 | 165,769,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,646 | py | # Copyright (c) 2013, Pullenti. All rights reserved. Non-Commercial Freeware.
# This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project (www.pullenti.ru).
# See www.pullenti.ru/downloadpage.aspx.
import typing
import math
from pullenti.unisharp.Utils import Util... | [
"[email protected]"
] | |
c1548dc4e5f4cfc7389941be28b7f70f05136071 | f3686e5768fa645953d0a8847d6ad65e210bdc98 | /pinry/core/migrations/0002_add_licence.py | 141d07b9d282be395fc8ee9fff6c174ce68d976c | [
"BSD-2-Clause"
] | permissive | Psycojoker/stickers.community | 576dd9e90ce884582d0c1c68221f420cbf0fef00 | a57b723e3c9100efbe55c07607c344e66828efa3 | refs/heads/master | 2021-01-20T20:44:42.412521 | 2016-07-19T09:08:40 | 2016-07-19T09:08:43 | 63,618,191 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='pin',
name='licence',
... | [
"[email protected]"
] | |
5ffb8a43d2bfe11f4725c6283468e86e1ee9f187 | 57fc5d54f5df359c7a53020fb903f36479d3a322 | /controllers/.history/supervisor_one/supervisor_one_20201216091250.py | 3f48d4a164694a60ed0caf5533cd58d5457ec034 | [] | no_license | shenwuyue-xie/webots_testrobots | 929369b127258d85e66c5275c9366ce1a0eb17c7 | 56e476356f3cf666edad6449e2da874bb4fb4da3 | refs/heads/master | 2023-02-02T11:17:36.017289 | 2020-12-20T08:22:59 | 2020-12-20T08:22:59 | 323,032,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,413 | py | import math
import numpy as np
from numpy import random
from numpy.core.fromnumeric import size
from numpy.lib.function_base import meshgrid
import utilities as utils
from deepbots.supervisor.controllers.supervisor_emitter_receiver import \
SupervisorCSV
# # from deepbots.supervisor.wrappers.tensorboard_wrapper i... | [
"[email protected]"
] | |
9aabd7aa49edf10476bf2da66ee2c45d98dc572b | 7f5cf5f4f35ef5a01a62d9e68354859178909cf3 | /homeassistant/components/device_tracker/ee_brightbox.py | fc23abda1db3564cd89ce97ac09d9e89f2507875 | [
"Apache-2.0"
] | permissive | unibeck/home-assistant | 1cf2fb3f57528bb39a63e4dc8f7591f618d75715 | 937eba3dbec0f9eb75ddf2a8b39284afa1bc3301 | refs/heads/master | 2020-04-30T15:55:24.264362 | 2019-03-20T17:16:24 | 2019-03-20T17:16:24 | 176,933,979 | 1 | 0 | Apache-2.0 | 2019-03-21T11:48:56 | 2019-03-21T11:48:55 | null | UTF-8 | Python | false | false | 3,126 | py | """
Support for EE Brightbox router.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/device_tracker.ee_brightbox/
"""
import logging
import voluptuous as vol
from homeassistant.components.device_tracker import (
DOMAIN, PLATFORM_SCHEMA, DeviceScanne... | [
"[email protected]"
] | |
61c472871ca7ee207b156dd8f7ad8cbf68a7bc3e | b48ca984df88fa010cc0b57118e4e9789c13abb8 | /main/urls.py | c8c157ed68ba37277904a340ba738f22299b04bd | [] | no_license | SebGrobelny/CAWineClassics | 1dd8fcf56762093814532560592618d75d9e8b66 | 1bad62e9174ce492db7cbdec6b4fd702446b92e7 | refs/heads/master | 2021-08-16T12:50:43.872384 | 2017-11-19T22:12:57 | 2017-11-19T22:12:57 | 108,331,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.splash, name='splash'),
url(r'home', views.home, name='home'),
url(r'about', views.about, name='about'),
url(r'team', views.team, name='team'),
url(r'katie', views.katie, name='katie'),
url(r'leslie', views.le... | [
"[email protected]"
] | |
ba73d784f4b93b8204ab8eccd085db5a52cc4fff | fd54c0886b81b49a55c31eb8c5254ce83df78785 | /Source_Code/madagascar/appussd/ussd/services/prepaid/call_me_back/config.py | df7560fff2dee759e5b6768280ef316faedc4993 | [] | no_license | santsy03/RADIX | 7854896651833b1be6e3279be409db59a71c76e4 | da8f2535692697b80a6dc543b9eb270fe3d5e4d3 | refs/heads/master | 2021-01-12T09:48:32.085432 | 2016-12-13T06:01:41 | 2016-12-13T06:01:41 | 76,260,115 | 0 | 0 | null | 2016-12-13T06:01:41 | 2016-12-12T13:46:31 | null | UTF-8 | Python | false | false | 6,559 | py | # coding: utf-8
time_1 = '2015-01-07'
time_2 = '2015-01-08'
responses = {}
responses['True']={}
responses['False']={}
(responses['True'])['txt-1'] = 'Request successfully sent to $recipient. You can send $requestsdiff more requests today'
(responses['True'])['txt-2'] = "Nangataka ho antsoin'ny laharana $... | [
"[email protected]"
] | |
a42a9da2f80c7831f9c9dbe372ebd51a07832af4 | b2755ce7a643ae5c55c4b0c8689d09ad51819e6b | /anuvaad-etl/anuvaad-extractor/document-processor/word-detector/craft/src/utilities/filesystem.py | c37c99ac38c309b30030e0008937d396d5bad88a | [
"MIT"
] | permissive | project-anuvaad/anuvaad | 96df31170b27467d296cee43440b6dade7b1247c | 2bfcf6b9779bf1abd41e1bc42c27007127ddbefb | refs/heads/master | 2023-08-17T01:18:25.587918 | 2023-08-14T09:53:16 | 2023-08-14T09:53:16 | 265,545,286 | 41 | 39 | MIT | 2023-09-14T05:58:27 | 2020-05-20T11:34:37 | Jupyter Notebook | UTF-8 | Python | false | false | 3,001 | py | import os
import shutil
import glob
import pdf2image
from anuvaad_auditor.loghandler import log_info
from anuvaad_auditor.loghandler import log_error
import config
def create_directory(path):
try:
os.mkdir(path)
return True
except FileExistsError as fe_error:
return True
except OSErr... | [
"[email protected]"
] | |
2fc166f7544bd63905b3e4c486153cb90f70973c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03360/s304226723.py | 48ffa14fb022080910007afabd1e4a0e564073b3 | [] | 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 | 262 | py | num_list = list(map(int, input().split()))
k = int(input())
max = 0
index = -1
for i in num_list:
if max < i:
max = i
index = num_list.index(i)
change = max*(2**k)
num_list[index] = change
ans = 0
for j in num_list:
ans += j
print(ans) | [
"[email protected]"
] | |
a490519255f833a6757b089bece303247e25680e | eda678c6158431430fa195fd5d51c424293fc724 | /experiments/dyad_isolate/Snakefile | e42ff25cfeb717a0fc291320fdfb94f76695d7d4 | [] | no_license | ohsu-comp-bio/dryads-research | 8e75ecf812aa3c5139cffacf43116772d6a36376 | c5c4b9e3c5e4ae5820b1dcfa669abf222e85d0db | refs/heads/master | 2023-04-12T20:55:52.147569 | 2021-08-14T21:36:57 | 2021-08-14T21:36:57 | 139,887,441 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,665 |
import os
import sys
sys.path.extend([os.path.join(os.environ['CODEDIR'], 'dryads-research',
'experiments', 'utilities')])
from pipeline_setup import get_task_arr, tasks_files
TMPDIR = os.path.join(
os.environ['TEMPDIR'], 'dryads-research', 'dyad_isolate',
config['expr_source'],... | [
"[email protected]"
] | ||
087b0a60a232ac975d6f97c182cdb3f97f2b8023 | 36ad0839d62d326f60bdcc17af21b48f2391987f | /Layers/bottlenecks.py | c44d28a9e8cdbb5cd6029fe63bbfa152a9a77a12 | [
"MIT"
] | permissive | esmou2/Kylearn-pytorch | adef4be5e59a4d6c7e6f33bc76fe6b1aaea0c5be | 2e07f7b40b3cbbabf8be6b1abc8a350ddc66eef0 | refs/heads/master | 2022-11-09T23:11:49.225401 | 2020-05-09T22:45:44 | 2020-05-09T22:45:44 | 260,531,095 | 0 | 0 | MIT | 2020-05-01T18:31:32 | 2020-05-01T18:31:32 | null | UTF-8 | Python | false | false | 5,175 | py | import torch.nn as nn
class LinearBottleneckLayer(nn.Module):
''' Bottleneck Layer '''
def __init__(self, d_features, d_hid, d_out=None, dropout=0.1):
super().__init__()
if d_out == None:
d_out = d_features
self.encode = nn.Linear(d_features, d_hid)
self.decode = n... | [
"[email protected]"
] | |
0b41300d19ec0a0f06441b51ecbc59a55174550f | 460fc67503ab2487dafe44145cbc0a7b91654d0a | /tests/data_list_test.py | 57a80fbd413637b3c7eb948d8d5260382258093a | [
"MIT"
] | permissive | lover2668/textmulclassify | 3fbfdbd625d5d65597546c78c809a73fb1604e92 | d6c577875cc7aac174783a711eca4994dba50287 | refs/heads/master | 2020-03-17T20:57:26.480331 | 2015-05-24T12:31:25 | 2015-05-24T12:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,034 | py | # -*- coding: utf-8 -*-
# 每个题至少有一个标签在data_list是有的。
data_list_test = [
{"_id": u"1", "content": u"解:方程的根是函数y和ylog3|x|图象的交点的横坐标,在同一坐标系中画出它们的图象,如图根据图象可知方程有两个异号根.故选C.方程的根的情况是( )1C分析:方程的根,就是方程组的解,即为两个函数的交点的横坐标,在同一坐标系中画出它们的图象即可求得结果.点评:本题考查函数的零点与方程根的关系,把方程的根转化为函数图象的交点是解题的关键,体现了转化的思想,属中档题.有4个不等的正根有4个根,其中两个正根、两个负根有两个异号根有两个不等... | [
"[email protected]"
] | |
57ec1c8837dbbf8ef325c7d10c00a3ba0a6fd2c6 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.COT/Sun-ExtA_16/pdf_to_json_test_Latn.COT_Sun-ExtA_16.py | 6f18e32b3f24f6feeadfec011553ba559a4c128f | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.COT/Sun-ExtA_16/udhr_Latn.COT_Sun-ExtA_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"[email protected]"
] | |
7c03529bb6f59646fb9f76a6e8293168b77906bf | 5c4d4a2c44eebf8fd9dd790da2a9ba4ededcfb70 | /django_kala/django_kala/test_settings.py | 8d079d8b604125d1fece8ccd9988b53999bdd663 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | brahimmade/kala-app | bc2602c6034203f83ced448ba54db7606a1234fe | 6ac816e7c2711568cd7bcb1d996ba74c09513b3f | refs/heads/master | 2023-03-21T05:15:52.436228 | 2020-03-10T15:50:29 | 2020-03-10T15:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | # Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
from django_kala.functions import import_from_string
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.s... | [
"[email protected]"
] | |
1f5531465bc0a3b731ae7971a7b903cc3feb40fe | e28ce5cca66c56ee7446a46e18375430d0d404eb | /OpenCV/color_study.py | 6a9c15b7489c871bf2e477d6074c9f588571fd66 | [] | no_license | git4robot/PyKids | 4fb60c5b107527336d9e686a98988ba7a8354f31 | 866e45e13171322ad1892d604508cfee9f8086c8 | refs/heads/master | 2020-04-17T20:45:26.741363 | 2020-04-14T02:21:55 | 2020-04-14T02:21:55 | 166,919,523 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,439 | py | '''
# RGB: https://www.jianshu.com/p/25712f48a354
'''
import cv2
import numpy as np
from sklearn.cluster import KMeans
from collections import Counter
from matplotlib import pyplot as plt
def get_dominant_color(image, k=4, image_processing_size = None):
"""
takes an image as input
returns the domina... | [
"[email protected]"
] | |
0857e6a407614cfc12e549e81dca0581fdf90fe8 | e2ca3205bb5240a1e4c87de0bdb13faa70241f16 | /src/main/nspawn/wrapper/machinectl.py | 51e4e7868c85c7b149882efb48b037a9ba526c72 | [
"Apache-2.0"
] | permissive | random-python/nspawn | 67da4d96d54dcbf537adaf3421a03020ea5c1769 | 25f53aa565c0685842a89d48d949b0459b1de0a6 | refs/heads/master | 2023-05-11T21:27:44.557577 | 2023-05-07T17:00:18 | 2023-05-07T17:00:18 | 184,904,641 | 21 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | """
Wrapper for machinectl
https://www.freedesktop.org/software/systemd/man/machinectl.html
"""
from nspawn.wrapper.base import Base
from nspawn.wrapper.sudo import Sudo
from typing import List
from dataclasses import dataclass
@dataclass(frozen=True)
class MachineDescriptor():
MACHINE:str
CLASS:str
SERV... | [
"[email protected]"
] | |
c0ed6552ab058902a8ed5dcc21c397f9b6d9c417 | 048f2002ed13503d50428c8949c95a2e4f9bd532 | /BST/331_VerifyPreorderSerializationofABinaryTree.py | 1a2935f033ebb619a2fc7ed1ed56b4ab37754480 | [] | no_license | ZhengLiangliang1996/Leetcode_ML_Daily | 9c9330bd2c7bab5964fbd3827a27eeff5bd2c502 | 8cdb97bc7588b96b91b1c550afd84e976c1926e0 | refs/heads/master | 2023-04-06T19:52:23.524186 | 2023-03-30T21:08:57 | 2023-03-30T21:08:57 | 213,055,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2021 liangliang <[email protected]>
#
# Distributed under terms of the MIT license.
class Solution(object):
def isValidSerialization(self, preorder):
"""
:type preorder: str
:rtype: bool
... | [
"[email protected]"
] | |
71b999916cf50f05dfc2ee12de948350f864b7e6 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_scipy_numpy/source/sklearn/cluster/k_means_.py | dd9058d966e85f63fb502940fb82cfd33fe40fc0 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 55,793 | py | """K-means clustering"""
# Authors: Gael Varoquaux <[email protected]>
# Thomas Rueckstiess <[email protected]>
# James Bergstra <[email protected]>
# Jan Schlueter <[email protected]>
# Nelle Varoquaux
# Peter Prettenhofer <peter.prettenh... | [
"[email protected]"
] | |
52c1d61d88bc555db478d99cd478969f3b6d8759 | f49b0eb48e7549b9263e87515c10b3e9d40f695a | /tensorflow_hub/file_utils.py | 99b421427d210ac37f19e50acdd3495557185052 | [
"Apache-2.0"
] | permissive | Pandinosaurus/hub | f8e0a6b95f91643ff51f7403f70080b5bc822f5f | fa1cf068b9cf034b59e7cd59a6ac0ce7e21a4fd4 | refs/heads/master | 2023-08-11T22:12:41.727750 | 2023-08-09T12:05:12 | 2023-08-09T12:05:45 | 129,443,631 | 1 | 0 | Apache-2.0 | 2023-08-10T10:03:26 | 2018-04-13T19:12:58 | Python | UTF-8 | Python | false | false | 2,779 | py | # Copyright 2020 The TensorFlow Hub 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 app... | [
"[email protected]"
] | |
73c040d87bb8f39b8306ff100b8532bb96b26810 | 3eec249b3629c31ed0114eaaff485b94f23d6b47 | /form/urls.py | cb7ce8fbbbc45917ab4e7149eccca260c57d5997 | [] | no_license | sarkmen/form | 19bae21eafc01aa60c443861dad57833d98fa7d8 | 0efa1bee36e418095210e0fcc1459cdba8ffa1d6 | refs/heads/master | 2020-12-25T14:13:11.061223 | 2016-05-10T17:09:59 | 2016-05-10T17:09:59 | 58,479,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | """form URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"[email protected]"
] | |
ef4a4857f15f1c2b2713614b0e94bcb8abe60452 | f0987e17aea6668158cd334c1fbacfe6286d3c77 | /NITA/lib/jnpr/toby/tmp/RLI/RLI-27K/RLI-27607/APPS/cat_fw_vpls_flex_mask.py | e3b16eea8fad30d7f0b78b0b4365701a591f58a4 | [] | no_license | fengyun4623/file | 00bf21f952ea3f95ffc9fe18448b244b26b7fadb | 3966c63d48557b0b94303896eed7a767593a4832 | refs/heads/master | 2023-04-02T05:01:25.066052 | 2020-07-29T16:15:31 | 2020-07-29T16:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243,204 | py | import os
import sys
import logging
import time
import argparse
sys.path.append("/var/tmp")
# Importing API libraries
from grpc.beta import implementations
import authentication_service_pb2
from authentication_service_pb2 import *
import jnx_addr_pb2
from jnx_addr_pb2 import *
import firewall_service_pb2
from firewa... | [
"[email protected]"
] | |
6027af84ca271e6f2badce4053d1384e30b62893 | 10eb060e516c1c16278ac7a24d9db11124930cfe | /app/logs/venv/bin/easy_install | d483d0ab3ee96ab05f2cbf0f32d9be8f764da9a4 | [
"CC0-1.0"
] | permissive | neharejanjeva/techstitution | d9a1016515ba26569979bdd11107e9f8c04d87ce | f3d3fa5af807bd3834606ed20aa48cc2623b435f | refs/heads/master | 2020-06-20T05:41:30.482811 | 2016-12-25T14:45:23 | 2016-12-25T14:45:23 | 74,880,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/root/Desktop/techstitution/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
e6fe4e7c09f450b93ab07e860c2a7f03ae7f9b89 | dd1e6fefcf0eb2fd41b30e93200b787fddb575a8 | /fractals/sierpinski_square.py | c238014f80b2549a0ab3313d59f3136efb5869b2 | [] | no_license | blackbat13/Algorithms-Python | 7a73f8fecbad00fe9c20a16ed35a2f83b2bc2220 | 751795ce8c4cf711f073bdaad43887186798b5cb | refs/heads/master | 2023-01-30T07:55:11.096845 | 2023-01-19T21:02:09 | 2023-01-19T21:02:09 | 95,124,032 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | import turtle
def sierpinski_square(rank: int, length: float) -> None:
if rank == 0:
turtle.begin_fill()
for _ in range(4):
turtle.forward(length)
turtle.left(90)
turtle.end_fill()
return
for _ in range(4):
for _ in range(2):
turtle.... | [
"[email protected]"
] | |
ce6ee73a31200e63a1139adc8ef584f8f14fe536 | 2a0b6c10c20051de0daad5e7e06513fe8d3abacb | /test_label.py | c829dfb624092e43440bca6c79b37e4018274001 | [
"MIT"
] | permissive | iancze/Pysplotter | b87f5e95aaee9c2081f0b151a3709b8f83c1e04c | 54d273e27b26968b05730750c365c58375b6a5e7 | refs/heads/master | 2021-01-25T07:08:09.461659 | 2012-06-27T19:00:09 | 2012-06-27T19:00:09 | 2,457,047 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,392 | py | import matplotlib
matplotlib.use("Qt4Agg")
from matplotlib.pyplot import figure, show
from matplotlib.patches import Ellipse
import numpy as np
if 1:
fig = figure(1,figsize=(8,5))
ax = fig.add_subplot(111, autoscale_on=False, xlim=(-1,5), ylim=(-4,3))
t = np.arange(0.0, 5.0, 0.01)
s = np.cos(2*np.pi*t... | [
"[email protected]"
] | |
1928c8ea213df09712461f81278cde51e2c03d74 | c6c76e87ab639c120055783b71e295accd243cd3 | /{{cookiecutter.module_name}}/src/bio2bel_{{ cookiecutter.module_name }}/__init__.py | ac0e57ac2c082f98391d68799216ff51820b9515 | [
"MIT"
] | permissive | deeenes/bio2bel-cookiecutter | 48e3293744cfbbec0ee1b2907a602b01b47d6ee9 | 8464a34faf3e645de20fb098ced4ec31666dd10a | refs/heads/master | 2020-04-25T22:45:38.970831 | 2019-02-24T19:29:14 | 2019-02-24T19:29:14 | 173,122,231 | 0 | 0 | MIT | 2019-02-28T14:01:14 | 2019-02-28T14:01:13 | null | UTF-8 | Python | false | false | 182 | py | # -*- coding: utf-8 -*-
"""{{ cookiecutter.short_description }}"""
from .constants import get_version
from .manager import Manager
__all__ = [
'Manager',
'get_version',
]
| [
"[email protected]"
] | |
7fff988fa5a77b5b720d1cd83cd7e8a266e4b410 | f353f19174ea2fd8569c8f46bb2d99142fff919c | /String/Exercise-50.py | 39a1a406836b67dd4b99c3644c3b1ead05da42e3 | [] | no_license | self-study-squad/Python-examples | a283d9efe47d71d2e134e8fc2e919dccffe5108a | 07de281fbcc9fb7f421b89a74ff24bafc78a5d4b | refs/heads/master | 2022-12-28T01:35:03.927338 | 2020-10-09T06:41:16 | 2020-10-09T06:41:16 | 298,136,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | #Write a Python program to split a string on the last occurrence of the delimiter.
strip ='w,3,r,e,s,o,u,r,c,e'
lst = strip.rsplit(',',2)
print(lst) | [
"[email protected]"
] | |
d1802bdc126d931b61e7ad0bd26a97909c809bd9 | d043a51ff0ca2f9fb3943c3f0ea21c61055358e9 | /房天下全栈/MongoDb_write.py | 50cbcf8646502f27c2635be6028ee5e0d127149e | [] | no_license | lj1064201288/dell_python | 2f7fd9dbcd91174d66a2107c7b7f7a47dff4a4d5 | 529985e0e04b9bde2c9e0873ea7593e338b0a295 | refs/heads/master | 2020-03-30T03:51:51.263975 | 2018-12-11T13:21:13 | 2018-12-11T13:21:13 | 150,707,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | import pymongo
class Mongo_DB():
def __init__(self, mongo_db, city, item):
self.host = 'localhost'
self.mongo_db = mongo_db
self.city = city
self.item = item
def open_spider(self):
try:
self.client = pymongo.MongoClient(self.host)
self.db = self.... | [
"[email protected]"
] | |
ea3c7378eafbd7e24cb32a92bd84a33af4cf2f07 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/missingDigit_20200728194115.py | 0cbdd8d70f0de557aa2de261f510c18ae656645a | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | def missing(s):
s = s.replace("=","==")
for x in range(1000000):
try:
if eval(s.replace("x",str(x))):
return x
except:
pass
return None
print(s)
missing("3x + 12 = 46") | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.