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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45f95a590c20610d9d7851d516d29af2756b2cea | 48d9815fa4d84a03f646ae1f32dd5016d00b9fac | /NATO Alphabet Project/main.py | e31b388b592d42971aac81712aea777fcddce526 | [] | no_license | IshaanBAgrawal/Day-26 | e0e8294ee06f677367ae94563b10e79c9e9328de | 5f6a384a5b88e4a1f4f7c0dcb0048abc462f7682 | refs/heads/master | 2023-07-10T08:50:51.867467 | 2021-08-13T11:42:03 | 2021-08-13T11:42:03 | 394,606,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | import pandas
nato_phonetics = pandas.read_csv("nato_phonetic_alphabet.csv")
nato_phonetic = {row.letter: row.code for (index, row) in nato_phonetics.iterrows()}
user_word = input("What is the word whose NATO Phonetic characters you want?: ").upper()
user_word_list = [char for char in user_word if char != ' ']
nato_p... | [
"agrawalishaan115@gmail.com"
] | agrawalishaan115@gmail.com |
14b6708804d1704896605db85742710245589d17 | d53479a3a5efab85a065b4a7c08cb38b6246f0eb | /uds-echo-server.py | 771d486e3073c0640fb44f9ddae2bfce3454b750 | [] | no_license | Snehal6697/hackerrank | 0242f927f630e652d6dcca901af8d8bd737b671f | c418fb24e08e5c57a1bd0d91f95ab2af32f01c64 | refs/heads/master | 2022-12-26T12:35:47.586007 | 2020-07-07T22:14:39 | 2020-07-07T22:14:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | #!/usr/bin/env python2.7
import socket
import threading
# NOTE: Use this path to create the UDS Server socket
SERVER_SOCKET_PATH = "./socket"
BUF_SIZE = 4096
BACKLOG = 10
def read_string_from_socket(connection):
return connection.recv(BUF_SIZE)
def write_string_to_socket(connection, message):
connection.se... | [
"charles.wangkai@gmail.com"
] | charles.wangkai@gmail.com |
154e71df06249159bbd1126dfdfebc198bdfe035 | 42c63d5f9c724c99ba93f77bdead51891fcf8623 | /OpenStack-Mitaka-src/designate/designate/tests/unit/test_objects/test_recordset.py | fa27b8dd454ff4d5c9519aadb66e89fc42c0db11 | [
"Apache-2.0"
] | permissive | 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 | 6,259 | py | # Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# Author: Federico Ceratto <federico.ceratto@hpe.com>
#
# 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.o... | [
"yongle.li@gmail.com"
] | yongle.li@gmail.com |
0dda9cfab64af70fe55a2aa0fd1f5893da9d891e | 9480b15fc6a8cdd95021032a418993e0161638ab | /sequence_to_motif/scan_motifs.py | 41ede7d39442b70736329b6c3c2e6303a81c0a7a | [] | no_license | kundajelab/anna_utils | 5136fbd1058649bcc435176f6cbaa9ee5cb8f9be | 69ae0e55f93f9f5171f25779d314e0c8925fb4aa | refs/heads/master | 2021-05-23T05:12:47.454935 | 2020-12-29T19:53:09 | 2020-12-29T19:53:09 | 81,041,617 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 18,965 | py | #script that utilizes MOODS python library to scan 1kb sequences from hg19 with HOCOMOCO motifs
import math
import argparse
import pysam
import os
import numpy as np
import MOODS.parsers
import MOODS.tools
import MOODS.scan
from itertools import izip
import h5py
import pdb
def parse_args():
parser=argparse.Ar... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
4afd30250fe0aa79b1e06e4d81a362480c8f91d2 | 3e50ed55208122b2f8b34e7f26f33c9ef70efce5 | /python/sp1/sp1/items.py | 06a651c8084453ac5c3f4f7f7befa35a423e4d14 | [] | no_license | brady-wang/mac_home | b8343da428a4e6696b89d0e6a53ff0dfc87ffd21 | c56a739c31d3c0f62d26d8512fe1a90c036a1f96 | refs/heads/master | 2023-01-14T11:42:02.544322 | 2019-10-02T11:47:27 | 2019-10-02T11:47:27 | 193,177,718 | 0 | 0 | null | 2023-01-04T13:55:31 | 2019-06-22T01:27:10 | PHP | UTF-8 | Python | false | false | 282 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class Sp1Item(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"brady.wang@qq.com"
] | brady.wang@qq.com |
17e692864ed2a4206671d3f8812737f2c2b8a64e | 2c8379781d9a04488ab8c7298b4ed90dfe4138e3 | /manage.py | 1633c1905a0c797b118c4616a96e917cccc9ae8b | [] | no_license | crowdbotics-apps/app-dev-2013 | b3d754fea251c710f1298b9b568fe9ee9bb8762b | 0b8d23435ad4b13edf0e44a0d8c21b7bf331846a | refs/heads/master | 2022-04-07T04:10:55.981274 | 2020-03-17T08:34:36 | 2020-03-17T08:34:36 | 247,917,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app_dev_2013.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
504dda7dbb9e02f59914123f7c577285049358c1 | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /.c9/metadata/environment/ib_miniprojects_backend/covid_dashboard/storages/user_storage_implementation.py | d440edaea398cfb54f7d509e4ac5fda16bcdfcb6 | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | {"filter":false,"title":"user_storage_implementation.py","tooltip":"/ib_miniprojects_backend/covid_dashboard/storages/user_storage_implementation.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":960,"scrollleft":0,"selection":{"start":{"row":22,"column":26},"end":{"row":22,"column":2... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
f6d32d352a20d423c7e3c81010e9d7c0f9ece665 | 56388007694fb4019c72e229c1dedd796c6335e3 | /service/ticket/ticket_base_service.py | e79d6541127c4bb0aa75f7186d03171fcc63aa6d | [
"MIT"
] | permissive | solidest/loonflow | 30b447122ef2f3e9f36d5d3ac2956152dddbdcb0 | 8ae2f297ea91dfd00f9ef2ab740579eaed805c29 | refs/heads/master | 2020-05-05T13:51:20.775213 | 2019-04-07T16:26:50 | 2019-04-07T16:26:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99,486 | py | import json
import datetime
import random
import functools
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.db.models import Q
from django.conf import settings
from apps.ticket.models import TicketRecord, TicketCustomField, TicketFlowLog
from apps.workflow.models import CustomField
f... | [
"blackholll@163.com"
] | blackholll@163.com |
5259304414ed906694971b611579b65c787e0e12 | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /.history/Code/app_20200206102232.py | dd8f0e4191c97346f9704b20acceb5af5760e57e | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 320 | py |
from flask import Flask
from stochastic import stoch
from sample import prob_sample
from histogram import list_hist
from clean_text import clean
app = Flask(__name__)
@app.route('/')
def hello_world():
my_file=('source.txt')
my_histogram=list_hist(my_file)
word = prob_sample(my_histogram)
return word | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
d7d5c28c6bc976701ff99198dcf4010535b95c79 | 038b973e49aa4f3672a234410f23dd9242f39bd1 | /heroku/simple_colors.py | cb62eb851eb7d7dd432c34a0589aeb4ca252a959 | [] | no_license | curriculum-share/tropo_colors | 528dd8d58e81354128c916c00c34c18485dd777f | 9ef548c508b23578897487261346900955348ff9 | refs/heads/master | 2021-01-16T00:04:28.684356 | 2012-02-07T17:34:54 | 2012-02-07T17:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | from itty import *
import redis
import settings
##
# Path : /
# Method : GET
#
# This is the main path for the application. It just gives you the html page
# that you use to view the app. For example, in your browser, go to the url:
#
# http://tropo-colors.herokuapp.com/
#
# (The last '/' on that url because o... | [
"mjumbewu@gmail.com"
] | mjumbewu@gmail.com |
ef97b07432da4d236d6035aec7b675c2cbeda66d | 357fefa288745c9ab3bc276a7ef0bc815f3fec2a | /src/plots/expand_ax_limits.py | fbdef282122770fd26755856642764c8855e8761 | [
"MIT"
] | permissive | jdvelasq/techminer | 61da47f44719e462732627edcc1094fab6c173f1 | 7a34a9fd684ce56cfbab583fa1bb71c1669035f9 | refs/heads/main | 2023-03-15T23:26:22.876051 | 2023-03-13T21:47:24 | 2023-03-13T21:47:24 | 204,352,276 | 0 | 1 | MIT | 2019-12-09T02:37:11 | 2019-08-25T21:34:19 | Jupyter Notebook | UTF-8 | Python | false | false | 253 | py | def expand_ax_limits(ax, factor=0.15):
xlim = ax.get_xlim()
ylim = ax.get_ylim()
dx = factor * (xlim[1] - xlim[0])
dy = factor * (ylim[1] - ylim[0])
ax.set_xlim(xlim[0] - dx, xlim[1] + dx)
ax.set_ylim(ylim[0] - dy, ylim[1] + dy)
| [
"jdvelasq@unal.edu.co"
] | jdvelasq@unal.edu.co |
97ba9b86ad223972354b0eae31696ed29fd420d3 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_068/ch80_2020_04_12_19_56_13_319014.py | a955c4217af6352621aa75cf3d747db72f1c99f0 | [] | 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 | 141 | py | def interseccao_chaves(a, b):
lista = []
for i in a.keys():
if a[i] == b.keys():
lista.append(a)
return lista | [
"you@example.com"
] | you@example.com |
3dc1da0561a3e4cf157f40e95ea17cafb0511fda | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /edgelm/fairseq/modules/quantization/scalar/modules/qact.py | 9ba3d8a713728dc5351df0cdebe987405b98dcaa | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 3,167 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import torch
from ..ops import emulate_int
class ActivationQuantizer:
"""
Fake scalar quantization of the activations u... | [
"tage@sandbox12.t0ekrjpotp2uhbmhwy0wiwkeya.xx.internal.cloudapp.net"
] | tage@sandbox12.t0ekrjpotp2uhbmhwy0wiwkeya.xx.internal.cloudapp.net |
a59b7ad2d9c0bfeb35b61dc7d57f13bf3c7bdccc | 0ae2bb21d7ca71a691e33cb044a0964d380adda2 | /python/P239.py | 114bbe4e75d97164e60a257dc53b60ccd766b627 | [] | no_license | xwang322/Coding-Interview | 5d27ec92d6fcbb7b929dd98bb07c968c1e1b2a04 | ee5beb79038675ce73c6d147ba9249d9a5ca346a | refs/heads/master | 2020-03-10T08:18:34.980557 | 2018-06-24T03:37:12 | 2018-06-24T03:37:12 | 129,282,263 | 2 | 6 | null | 2018-04-19T19:31:24 | 2018-04-12T16:41:28 | Python | UTF-8 | Python | false | false | 407 | py | class Solution(object):
def maxSlidingWindow(self, nums, k):
dq = collections.deque()
ans = []
for i in range(len(nums)):
while dq and nums[dq[-1]] <= nums[i]:
dq.pop()
dq.append(i)
if dq[0] == i - k:
dq.popleft()
... | [
"noreply@github.com"
] | xwang322.noreply@github.com |
de4772a488a69c6e41268ac820b26c6b9e3cf3cb | 13de07c58b0646fa6d732ede44d8ba380108207b | /backend/plexkey_26880/settings.py | 9de5bd1b2628d06c60fbbaddf125abf05b87d980 | [] | no_license | crowdbotics-apps/plexkey-26880 | f3017000954bae6a364f33bcca7dcd54c527d977 | 51614a3bada948f11e3e548b575e9df31faf959e | refs/heads/master | 2023-04-24T14:04:59.809735 | 2021-05-18T16:47:35 | 2021-05-18T16:47:35 | 368,601,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,131 | py | """
Django settings for plexkey_26880 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
fcc5964405dcc4410d21a1b8d77f2e4cfbca8b7d | 368b89707805e8ac6d5baf26a11b280369995ca5 | /src/server/db/staff.py | bbb1db0bab5124a4e2025e84d89fd41e0c216253 | [] | no_license | cheng93/fof | 2940d739c1399c88db06b5c99e8075e918fbf060 | 0115a6d3f6775c5c1c8a30cfd7f6f7f9006e75fe | refs/heads/develop | 2020-03-19T06:55:20.274365 | 2018-07-25T22:14:11 | 2018-07-25T22:14:11 | 136,067,138 | 0 | 0 | null | 2018-07-25T22:14:12 | 2018-06-04T18:33:35 | Python | UTF-8 | Python | false | false | 478 | py | from sqlalchemy import (Column, ForeignKey, Integer, MetaData,
SmallInteger, String, Table)
metadata = MetaData()
staff = Table(
'staff', metadata,
Column('staff_id', Integer, primary_key=True),
Column('last_name', String(126), nullable=False),
Column('first_name', String(126)... | [
"derek.c@hotmail.co.uk"
] | derek.c@hotmail.co.uk |
beb99f6f0ffd3848bd5172721e9ed8dd645bcf1b | 9c4294271a405f13d35064da6e144c3baf0c71bd | /scripts/startup/bl_ui/properties_data_armature.py | f27087a48b00571bb629fde0324d1db14e537bd8 | [] | no_license | satishgoda/fluid-designer-scripts | 178ba9ab425fd8b02791f026eeba00d19bf4f4ea | ddccc5823c1ac09849c1d48dc2740a200cb40d84 | refs/heads/master | 2021-01-19T07:15:47.977416 | 2014-03-20T00:00:46 | 2014-03-20T00:01:06 | 18,070,299 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,645 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"dev.andrewpeel@gmail.com"
] | dev.andrewpeel@gmail.com |
8caae80910d0292032ed40da93d794df5c0f675e | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/email/test/test_email.py | 8533abe73a4747b6a08a5d3b678c630f35a0c4ab | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 117,329 | py | # 2015.11.10 21:35:34 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/email/test/test_email.py
import os
import sys
import time
import base64
import difflib
import unittest
import warnings
import textwrap
from cStringIO import StringIO
import email
from email.Charset import Charset
from email.Header... | [
"info@webium.sk"
] | info@webium.sk |
18a3741e08f8c0c4b4dba84e728923f8d76b760c | 4a36e8a7f598bb910a1cef0732702828106d98ca | /Dragon/python/dragon/utils/vision/data_batch.py | cfe6cdbc5058325708a11ddab92eb632af9f672e | [
"BSD-2-Clause"
] | permissive | awesome-archive/Dragon | d5a5e737d63f71ba8b73306051aa9960d48e7447 | b35f9320909d07d138c2f6b345a4c24911f7c521 | refs/heads/master | 2023-08-21T09:07:58.238769 | 2019-03-20T09:01:37 | 2019-03-20T09:01:37 | 177,972,970 | 0 | 0 | BSD-2-Clause | 2020-01-13T03:40:54 | 2019-03-27T10:41:13 | C++ | UTF-8 | Python | false | false | 7,012 | py | # ------------------------------------------------------------
# Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
#
# Licensed under the BSD 2-Clause License.
# You should have received a copy of the BSD 2-Clause License
# along with the software. If not, See,
#
# <https://opensource.org/licenses/BSD-2-Clause>
#
# ... | [
"ting.pan@seetatech.com"
] | ting.pan@seetatech.com |
90e75e49de18e16f03c5d08dac0596cf4deefe0b | 66276325d623c894c9e6344bb161f3c25974a838 | /LeetCode/0276.Paint-Fence/Paint-Fence.py | cb244966411c5fc625ca356ae81ca779e84fe986 | [] | no_license | htingwang/HandsOnAlgoDS | 034b5199b394ca82fd4fb16614ddabb45f3325e2 | 5b14b6f42baf59b04cbcc8e115df4272029b64c8 | refs/heads/master | 2021-07-11T15:50:30.944794 | 2020-09-27T05:08:02 | 2020-09-27T05:08:02 | 192,391,446 | 12 | 2 | null | 2019-07-03T04:09:35 | 2019-06-17T17:36:01 | Jupyter Notebook | UTF-8 | Python | false | false | 327 | py | class Solution(object):
def numWays(self, n, k):
"""
:type n: int
:type k: int
:rtype: int
"""
if n == 0: return 0
same, diff = 0, k
for i in range(2, n + 1):
same, diff = diff, (same + diff) * (k - 1)
return same ... | [
"puggywang@gmail.com"
] | puggywang@gmail.com |
bbfe2d1b4f7a7807591b7dfda1b595702c04c928 | d13af2c0651e73ddcdc5831108c5e14838275bef | /mutant/tests/models/model.py | 0e8142b6e9c60a07190e2f6d6f122879995661d2 | [
"MIT"
] | permissive | derekdreery/django-mutant | 591a6c49a09fae501a8816021e6068035f645b71 | 5f449a786247b9c3acab547ea9964642ca6bcaae | refs/heads/master | 2021-01-15T18:04:37.166655 | 2013-02-03T09:12:04 | 2013-02-03T09:12:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,604 | py | from __future__ import unicode_literals
import pickle
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from django.core.management import call_command
from django.db import models, router
from django.db.utils import IntegrityError
from django.utils.translat... | [
"charette.s@gmail.com"
] | charette.s@gmail.com |
8eee6df6a1a6ac18f22022eeeda7c5bd89b165a3 | 5a281cb78335e06c631181720546f6876005d4e5 | /aodh-8.0.0/aodh/tests/functional/api/v2/test_capabilities.py | 78c4996e9ecd98076c99aa9efda1a54b5d6c0420 | [
"Apache-2.0"
] | permissive | scottwedge/OpenStack-Stein | d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8 | 7077d1f602031dace92916f14e36b124f474de15 | refs/heads/master | 2021-03-22T16:07:19.561504 | 2020-03-15T01:31:10 | 2020-03-15T01:31:10 | 247,380,811 | 0 | 0 | Apache-2.0 | 2020-03-15T01:24:15 | 2020-03-15T01:24:15 | null | UTF-8 | Python | false | false | 1,142 | py | #
# Copyright Ericsson AB 2014. 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 o... | [
"Wayne Gong@minbgong-winvm.cisco.com"
] | Wayne Gong@minbgong-winvm.cisco.com |
c20d5cbb0ef9ad95b0d250d8c495159e168eb300 | b13ca274b4463c9900840ee6516094b7509b6041 | /empower/lvapp/tenantlvaphandler.py | aaac8d9ef2dea5bdd0c4b7d25a1de89ef945d2cd | [
"Apache-2.0"
] | permissive | imec-idlab/sdn_wifi_manager | 09d206f2f649aa715752d3c44e011d3f54faf592 | eda52649f855722fdec1d02e25a28c61a8fbda06 | refs/heads/master | 2021-06-23T08:03:22.482931 | 2020-12-03T11:30:10 | 2020-12-03T11:30:10 | 162,106,793 | 0 | 0 | Apache-2.0 | 2019-03-27T16:23:31 | 2018-12-17T09:33:47 | Python | UTF-8 | Python | false | false | 4,061 | py | #!/usr/bin/env python3
#
# Copyright (c) 2016 Roberto Riggio
#
# 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 applicabl... | [
"pedroisolani@gmail.com"
] | pedroisolani@gmail.com |
6d396a2446a42237bf762ccab9b2fee6aefaf932 | 8a83bb7acb9b62183fca817e1f196dd8075630a4 | /27_seventhFolder/42_check_rotated_matrix.py | b56518f11cf9faabafa1ea706fae1360d4f0ce6f | [] | no_license | sandeepkumar8713/pythonapps | ff5ad3da854aa58e60f2c14d27359f8b838cac57 | 5dcb5ad4873124fed2ec3a717bfa379a4bbd197d | refs/heads/main | 2023-09-01T04:12:03.865755 | 2023-08-31T07:04:58 | 2023-08-31T07:04:58 | 234,762,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | # https://leetcode.com/problems/determine-whether-matrix-can-be-obtained-by-rotation/
# Question : Given two n x n binary matrices mat and target, return true if it is possible to make
# mat equal to target by rotating mat in 90-degree increments, or false otherwise.
#
# Question Type : Generic
# Used : Run a 2d loop.
... | [
"sandeepkumar8713@gmail.com"
] | sandeepkumar8713@gmail.com |
99aece126fae5458ea8f614576057ce58e588046 | 8d55d41a4f5c0b89331cac714c1525e9581d9720 | /MomentumProject/mtInitialize_005.py | 2b1bc57ffda9521da41f7cbc2d1226992dcbaed0 | [
"Apache-2.0"
] | permissive | hpgit/HumanFoot | 8cf35ceeeb35a0371e03eaf19d6da58dc01487eb | f9a1a341b7c43747bddcd5584b8c98a0d1ac2973 | refs/heads/master | 2022-04-13T23:38:19.072203 | 2019-12-06T06:36:10 | 2019-12-06T06:36:10 | 41,348,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,062 | py | import copy
import sys
#if '../PyCommon/modules' not in sys.path:
# sys.path.append('../PyCommon/modules')
if './modules' not in sys.path:
sys.path.append('./modules')
import Resource.ysMotionLoader as yf
import Simulator.ysPhysConfig as ypc
import Math.mmMath as mm
import Motion.ysHierarchyEdit as ... | [
"garethvlf@gmail.com"
] | garethvlf@gmail.com |
4b8250f059738ea67f7f578a66fa4a26a060c8da | 92754bb891a128687f3fbc48a312aded752b6bcd | /Algorithms/Python3.x/126-Word_Ladder_II.py | 03cc813fd13fd49662a289b158dc4370c74e54ad | [] | no_license | daidai21/Leetcode | ddecaf0ffbc66604a464c3c9751f35f3abe5e7e5 | eb726b3411ed11e2bd00fee02dc41b77f35f2632 | refs/heads/master | 2023-03-24T21:13:31.128127 | 2023-03-08T16:11:43 | 2023-03-08T16:11:43 | 167,968,602 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | # Runtime: 520 ms, faster than 37.80% of Python3 online submissions for Word Ladder II.
# Memory Usage: 16.7 MB, less than 16.67% of Python3 online submissions for Word Ladder II.
class Solution:
def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]:
wordList = set(... | [
"daidai4269@aliyun.com"
] | daidai4269@aliyun.com |
3128d36efaa48d36f1c1787fd010b04eadbe3eec | 3365e4d4fc67bbefe4e8c755af289c535437c6f4 | /.history/src/core/dialogs/waterfall_dialog_20170810151536.py | 09f0d3e18018e59bc3d7badc2d81a9b12bc6de8c | [] | no_license | kiranhegde/OncoPlotter | f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1 | b79ac6aa9c6c2ca8173bc8992ba3230aa3880636 | refs/heads/master | 2021-05-21T16:23:45.087035 | 2017-09-07T01:13:16 | 2017-09-07T01:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,809 | py | '''
Refs:
Embedding plot: https://sukhbinder.wordpress.com/2013/12/16/simple-pyqt-and-matplotlib-example-with-zoompan/
'''
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
import matplotlib.pyplot a... | [
"ngoyal95@terpmail.umd.edu"
] | ngoyal95@terpmail.umd.edu |
06e9101b12871c365a565c9c22fdc727ab1d8b68 | 7021151239ac415b16799fc81b7ff6d905a108eb | /extra_log_factorial.py | 51d73f5b58743d66730f4eba101c091664d26a89 | [] | no_license | mahmoudzeyada/problemsolving-leanring | e6e9798b3010df3b45384fa4eddc2e36ecd4db4c | 4e66f301494855183c793fff9903dd93a1e3c329 | refs/heads/master | 2020-04-22T20:58:54.201887 | 2019-05-07T16:03:31 | 2019-05-07T16:03:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py |
# def fact (n):
# if n > 0 :
# return fact(n-1)*n
# else:
# return 1
# print (fact(25))
from functools import reduce
def extraLongFactorials(n): return reduce(lambda x, y: x*y, range(1, n+1))
print(facto(55))
| [
"mahmoudzeyada440@gmail.com"
] | mahmoudzeyada440@gmail.com |
2f2931c614e1e194cc372af87360a32baf6881e7 | 50914176887f9f21a3489a9407195ba14831354c | /print_diamond_test.py | 1743eb866c2f0649d14fac66846930bf5d2b2330 | [] | no_license | nkukarl/leetcode | e8cfc2a31e64b68222ad7af631277f1f66d277bc | b1dbe37e8ca1c88714f91643085625ccced76e07 | refs/heads/master | 2021-01-10T05:42:04.022807 | 2018-02-24T03:55:24 | 2018-02-24T03:55:24 | 43,725,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | from unittest import TestCase
from nose_parameterized import parameterized
from print_diamond import Solution
class TestPrintDiamond(TestCase):
@parameterized.expand([
[
{
'n': 5,
},
],
[
{
'n': 21,
},
... | [
"kai.wang.nankai@gmail.com"
] | kai.wang.nankai@gmail.com |
8d289ad75ddeafa8dd545b9d75d2b021c720e07b | faffb7f42232e0554e23746a3b0a409347462c1f | /wat/db.py | 18eaafdef7d8b52e3934a7d866abf43a4c69deb7 | [] | no_license | mwhittaker/wat | 5e006341bd124e7ffbc640800af7170b31f3735d | 62466eaf390ea43f84d719e9b3bd74311ba68aa1 | refs/heads/master | 2020-03-14T00:18:16.262913 | 2018-10-14T19:27:00 | 2018-10-14T19:27:00 | 131,353,883 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,978 | py | from typing import (Callable, Dict, List, NamedTuple, Tuple, Optional, Set,
Union)
from .state_machine import StateMachine
Record = Tuple[str, ...]
class DbQueryException(Exception):
pass
class DbQuery:
def eval(self, db: Dict[str, Set[Record]]) -> Set[Record]:
raise NotImplement... | [
"mjwhittaker@berkeley.edu"
] | mjwhittaker@berkeley.edu |
f4f91dcce6e4d8b83738300d16be238e5b72c4a8 | 41f5ac7e597fb9910ca5744c12dfde64805ed238 | /newenv/bin/django-admin | 9374e52c22a11a2e29424281aef093e5b3ea3c3c | [] | no_license | Brian23-eng/Instagram | 60b12d8a028cd174f943d5f17e09ea6ed904110e | 2efcd0c81d17fb11c7f4a29def03c12060b89309 | refs/heads/master | 2021-09-09T14:37:38.139192 | 2019-11-19T08:54:12 | 2019-11-19T08:54:12 | 221,701,395 | 0 | 0 | null | 2021-09-08T01:26:07 | 2019-11-14T13:14:36 | Python | UTF-8 | Python | false | false | 320 | #!/home/brian/Documents/Core/Python/Django/Insta-Clone/newenv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"b.odhiambo.bo@gmail.com"
] | b.odhiambo.bo@gmail.com | |
49fedbc6d217cabb5c1e6a830b5c53852150995f | 78ba65ccf6c8715aca5a6a70aa82ca8267cab9fd | /azure-python-sdk/2019-12-31-preview/redhatopenshift/models/_models.py | 9ca7c1bf3c354475858cc931c57edb44ed756783 | [
"Apache-2.0"
] | permissive | mjudeikis/rp | 2b65757aba2f9a5ed856a530c4a94c6a1d9feacf | 5b413c44b3bf5b388a5e8b27589e428692f15ba1 | refs/heads/master | 2020-09-15T06:44:20.358235 | 2019-12-12T15:14:44 | 2019-12-12T15:14:44 | 223,370,087 | 0 | 0 | Apache-2.0 | 2019-12-12T15:12:35 | 2019-11-22T09:33:34 | Go | UTF-8 | Python | false | false | 12,153 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"jminter@redhat.com"
] | jminter@redhat.com |
dc7d92b4d623ca5f1703cb8e3fc50b258cac8729 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/kubernetes/checks/test_RootContainersPSP.py | 2ada5de807884021da63d1bf67105daa1afdd8fb | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 822 | py | import os
import unittest
from checkov.kubernetes.checks.resource.k8s.RootContainersPSP import check
from checkov.kubernetes.runner import Runner
from checkov.runner_filter import RunnerFilter
class TestRootContainersPSP(unittest.TestCase):
def test_summary(self):
runner = Runner()
current_dir =... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
18655c7544943efa74e0b0fc3fd677849b5e600a | d5d9996c55414561fe77a2630ad7e0cfff0735ad | /pddm/regressors/dynamics_model.py | f94c453c8330381f3c1396097a03fee85df7109d | [
"Apache-2.0"
] | permissive | kyo-kutsuzawa/EEI_Analysis_model_based_rl | 4b704875619be0045b6f3b1ad12e86bd1041347c | d83ad7a7da936672a05ccacc6846d16c33421b96 | refs/heads/main | 2023-01-11T22:36:49.348156 | 2020-11-10T04:54:21 | 2020-11-10T04:54:21 | 313,227,869 | 0 | 0 | Apache-2.0 | 2020-11-16T07:55:31 | 2020-11-16T07:55:30 | null | UTF-8 | Python | false | false | 16,830 | py | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"a.hamada@neuro.mech.tohoku.ac.jp"
] | a.hamada@neuro.mech.tohoku.ac.jp |
6538c72c5d02dbd2d02b8fc74491e6dc2a975a51 | b8e29b6e957b0a55571f7cffc4357666a43fb56e | /mxnet/insightface/insightface/src/symbols/fresnet.py | 4a7fd974dda73d332e352da5b80b4700de8ba7b2 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | aliyun/alibabacloud-aiacc-demo | b9bbe565021757ecaea0e7d7209632cbdb5cc8ab | 2e49deeb38d12d4af4c5e50bb15d731c4bbf4cf1 | refs/heads/master | 2023-05-14T08:09:33.067050 | 2023-05-04T08:19:51 | 2023-05-04T08:19:51 | 228,604,743 | 38 | 14 | Apache-2.0 | 2022-06-22T02:41:01 | 2019-12-17T11:46:44 | Python | UTF-8 | Python | false | false | 31,231 | 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... | [
"ziqi.yzq@alibaba-inc.com"
] | ziqi.yzq@alibaba-inc.com |
d7852e30f6eb8fddf9b6a8953d874c3bf7eb2085 | d80e80cd32e7ab7181a4534d1664eb4c37478970 | /Analyzers/TriggerAnalyzers/test/GetRatesHATS.py | 416587b33078b1a3015d180512a7e35950896436 | [] | no_license | jalimena/UserCode | db9754637f99fdd5e29bb6d68482d9b89e6403e8 | a1ea703b68630331078b02d9dd6286ee038aeb7e | refs/heads/master | 2022-09-11T18:30:18.323978 | 2022-08-23T08:53:52 | 2022-08-23T08:53:52 | 16,582,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | import math,ROOT, glob
from ROOT import gROOT, TFile, TChain, TTree, TH1F, TF1
from CrossSections import crossSections13TeV
gROOT.Reset()
#Recommended samples to use: QCD with Pt 30-1800, DYToMuMu, DYToEE, WToMuNu, WToENu
#samples = ['MuEnr20to30', 'MuEnr30to50', 'MuEnr50to80', 'MuEnr80to120', 'MuEnr120to170', 'MuEn... | [
"juliette.alimena@cern.ch"
] | juliette.alimena@cern.ch |
471f1f999b777a3d11d5a78581eea2b7d52cea67 | 7890bec623a9027c3b92e99cc4633458b425c659 | /ABC/B/072_b.py | f9814a19487a43e74959e856ff54918238791ed4 | [] | no_license | deBroglieeeen/atcoder | 7468eb217630a349b8ac4d60abfe72fff6194a45 | 1abd886535c260c3843adb67b1541c1a0609fe79 | refs/heads/master | 2020-08-11T19:59:52.496032 | 2020-04-02T07:20:21 | 2020-04-02T07:20:21 | 214,618,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | s = input()
l = []
for i in range(len(s)):
if (i + 1) % 2 != 0:
l.append(s[i])
print("".join(l)) | [
"u825246d@ecs.osaka-u.ac.jp"
] | u825246d@ecs.osaka-u.ac.jp |
94e73af7b3b3092d82e11897976b0a76f4cc3fe6 | 6ecae8cb328197a90f7fb9ab0c56a909d3489063 | /3_27/3_27/17_19_17/单线程.py | 212c3d4b161a18e6ea69f4f6e6c5cffc930be08b | [] | no_license | jihaikang/2021- | c4e735f825cd3f0a7bb8e11d77df195f18f85534 | f6d7cdf4325d8a13d2f69a6df0b5ddaf1f1aa12f | refs/heads/master | 2023-06-27T01:17:54.981940 | 2021-06-26T02:49:40 | 2021-06-26T02:49:40 | 389,331,767 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | import time
#使用单线程串行方式执行
def get_page(str):
print('正在下载:',str)
time.sleep(2)
print('下载成功:',str) # 单线程就类似面向过程那样,一步执行完之后才能执行下一步
name_list = ['xiaozi','aa','bb','cc']
start_time = time.time()
for i in range(len(name_list)):
get_page(name_list[i])
end_time = time.time()
print('%d second' % (end_time-st... | [
"noreply@gitee.com"
] | noreply@gitee.com |
666ae7aaa2c0c96a7f6323d766d1a4cfc87a6d42 | 3bba57d38e9a73c8f5e5618eefbfe90218fce155 | /gtmp/rpc/pool.py | e3697c07e6cd6721c754141f50a406e42484586f | [] | no_license | gf0842wf/ggame | b499957e3cfaff987ba565867d3b109e81756411 | 556caa08f479a4d55dba08c7bb92c64a3d639709 | refs/heads/master | 2016-09-06T14:43:21.909146 | 2015-03-16T03:51:33 | 2015-03-16T03:51:33 | 28,944,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | # -*- coding: utf-8 -*-
class RPCPool(object):
"""分布式rpc池"""
def __init__(self, addrs, mode, rpc_class, *rpc_args, **rpc_kw):
"""
@param addrs: 所有可连接服务端地址, [(ip, port), ...]
@param mode: 分布式模式, 0-主从, 1-负载均衡
"""
self.master_addr = addrs[0]
self.mode = mode
... | [
"gf0842wf@gmail.com"
] | gf0842wf@gmail.com |
6948f2900b5699556719564bcb6a60674f73d6eb | 1b9f0478a1e5481b5c43f42b6a2ee2318684d68a | /MSA15A_repeat16SVD_fulltrain_moreempty_noSS/new.py | 193da6a364a41f803363ccd82da1326285a019e5 | [] | no_license | leexa90/Deep_Learning_RNA2 | 94c859cfcc39603f038667811428911535c5efd7 | c2361129382ca16e4a58b7177b6cca370edd2fc8 | refs/heads/master | 2021-09-04T14:48:32.915463 | 2018-01-19T08:55:52 | 2018-01-19T08:55:52 | 105,488,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,348 | py | from __future__ import print_function
from __future__ import absolute_import
import warnings
import sys
sys.path.append('../../../../')
sys.path.append('../')
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import random
random.seed(1)
# something is wrong with code. Could be double refering ... | [
"lee.x.a90@gmail.com"
] | lee.x.a90@gmail.com |
3c56300b72cc28bd674054efd63b8f250fc85cdc | 9bbc5892e65078f56378b1cb564899595d28b411 | /fem_reader/nastran/punch/reader/__init__.py | ac78b4d303e821f8eb3080d72869695d7cb57f7c | [] | no_license | MRedAero/FEMAnalysisTool | 12e4dec2f6ac5aa9458342bc339c77def2fa6b9c | 7d8f85d5cc6a2565beb71fb9dcc3a75e7fa34c5c | refs/heads/master | 2021-09-17T06:26:22.077591 | 2018-06-28T14:27:12 | 2018-06-28T14:27:12 | 25,843,621 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | __author__ = 'Michael Redmond'
from punch_reader import PunchReader | [
"michael.j.redmond@gmail.com"
] | michael.j.redmond@gmail.com |
c9ca24607cbbd0cd5ac7f7dc336e1a66dbdde55d | e8b6be6c95e6c5c675c81aafbb383855b458ad11 | /Solution/cubes.py | 073122f765e0ac2a8eca3c9eb0d8fb1969db6804 | [] | no_license | BohdanLiuisk/python-course-beginner | 800e3019c897dda5ba3ab5316403579c3ddea857 | 49c27ae129b9819f716e7d42b9bc37242c53cb03 | refs/heads/master | 2022-12-10T01:11:25.089123 | 2020-08-23T13:59:24 | 2020-08-23T13:59:24 | 277,376,817 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | inFile = open('input.txt', 'r', encoding='utf8')
nm = list(map(int, inFile.readline().split()))
Anya = {int(inFile.readline().strip()) for i in range(nm[0])}
Boris = {int(inFile.readline().strip()) for i in range(nm[1])}
print(len(Anya & Boris))
print(*sorted(Anya & Boris))
print(len(Anya - Boris))
print(*sorted(Anya ... | [
"bodialiusik@gmail.com"
] | bodialiusik@gmail.com |
5ee41fb939d4abf7106ca04f53742510134715b7 | 67b0379a12a60e9f26232b81047de3470c4a9ff9 | /shop/migrations/0003_auto_20161226_1552.py | de59bb783b0b925d1e8287eb2bbb4a014df221b9 | [] | no_license | vintkor/whitemandarin | 8ea9022b889fac718e0858873a07c586cf8da729 | 5afcfc5eef1bb1cc2febf519b04a4819a7b9648f | refs/heads/master | 2021-05-06T03:35:09.367375 | 2017-12-20T15:43:08 | 2017-12-20T15:43:08 | 114,904,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-12-26 13:52
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0002_auto_20161226_1547'),
]
operations = [
migration... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
3a3c00a9eaaae26be71886c6b5f636089364be5e | e4f15db4916144e7fd3152bddd7186719524b8a2 | /Main.py | 6878d4f80295e7a7fb87185cd77eb81afbf4fd01 | [
"MIT"
] | permissive | pydatalagos/plate-recognizer | 551e27866957c28826c07b38f7b37c39fe2f6184 | 218924a244126a797c67cfc63ecbe277f3ec2416 | refs/heads/master | 2021-01-23T00:06:18.838341 | 2017-04-04T01:11:55 | 2017-04-04T01:11:55 | 85,695,662 | 1 | 0 | null | 2017-03-21T11:50:49 | 2017-03-21T11:50:49 | null | UTF-8 | Python | false | false | 6,196 | py | # Main.py
import cv2
import numpy
import numpy as np
import os
from PIL import Image
import DetectChars
import DetectPlates
import PossiblePlate
SCALAR_BLACK = (0.0, 0.0, 0.0)
SCALAR_WHITE = (255.0, 255.0, 255.0)
SCALAR_YELLOW = (0.0, 255.0, 255.0)
SCALAR_GREEN = (0.0, 255.0, 0.0)
SCALAR_RED = (0.0, 0.0, 255.0)
show... | [
"lwahab@terragonltd.com"
] | lwahab@terragonltd.com |
9bbe684918d858ad1adefc02ece7a89d660fc835 | 3973ea378ef507704b1d05078f30f62694484db9 | /packages/python/plotly/plotly/validators/histogram/marker/_pattern.py | 92c020dd0417fd1e3684aca442d67faf35e6e5a0 | [
"MIT"
] | permissive | majedfah/plotly.py | e5383407aca243bc5e9fd4dbaedb5b38fccd0c73 | b34bd6d2004b2b4c96d114011c82913573e50513 | refs/heads/master | 2023-06-06T09:42:29.639240 | 2021-06-17T13:03:35 | 2021-06-17T13:03:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | import _plotly_utils.basevalidators
class PatternValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="pattern", parent_name="histogram.marker", **kwargs):
super(PatternValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
c3d60a1fd66a16649deb5aa354bd120aa8a72032 | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /base/tests/test_xmlrpc.py | 3b681a9ccfd7784bda7c35aace64c673e215bf6d | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
from odoo.tests import common
@common.tagged('post_install', '-at_install')
class TestXMLRPC(common.HttpCase):
def setUp(self):
super(TestXMLRPC, self).setUp()
self.admin_uid = self.env.ref('base... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
8a555aac1e769a7be6708b1de31d22608a340f09 | 66bad57fb663349518cfc5a19dd34e00b4672165 | /progressive/utils/logger.py | 225c7630b0de708ffd5cac66ce71f9b8fcda6d5e | [] | no_license | B-Step62/anime-GANs | 233ac55ae5b0b2031757d7c4d908a65952a25c8d | 8ea05e19121612bb8adb2dd4c7453423e198f320 | refs/heads/master | 2020-04-22T12:13:59.644268 | 2019-03-26T07:17:43 | 2019-03-26T07:17:43 | 170,365,673 | 6 | 2 | null | 2019-10-21T06:05:40 | 2019-02-12T18:02:21 | Python | UTF-8 | Python | false | false | 2,461 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
import scipy.misc
try:
from StringIO import StringIO # Python 2.7
except ImportError:
from io import BytesIO # Python 3.x
class Logger(object):
def __init__(self, log_dir):
"""Create a summary writer logging to log_dir.""... | [
"bsatbeyp@gmail.com"
] | bsatbeyp@gmail.com |
323c2f3a2e6e9154ff8ccaa966950950820e039c | 7b15c40c00ba2008024979d0e520a922bc2f8229 | /2nd_try/0273_Integer_to_English_Words.py | 6839b3d5c369cf04c36ba434ac6c5ff6f2d9d249 | [] | no_license | axd8911/Leetcode | aa9875a5b55c7d5e961d9a3ea55823d06eb08a88 | 1c6cab14f4dac4f3f29f1b5ce13bb5289724fdb4 | refs/heads/master | 2022-07-07T12:59:38.251218 | 2021-06-22T06:27:05 | 2021-06-22T06:27:05 | 173,857,144 | 0 | 1 | null | 2022-06-22T01:22:30 | 2019-03-05T02:23:42 | Python | UTF-8 | Python | false | false | 1,407 | py | class Solution:
def numberToWords(self, num: int) -> str:
print (num)
if num == 0:
return 'Zero'
output = ''
if num >= 10**9:
digit = num//10**9
num = num % 10**9
output += self.threeDigits(digit) + ' Billion'
if num >= 10**6:
... | [
"axd8911@hotmail.com"
] | axd8911@hotmail.com |
385c2c38cc5dd3851b07960480d0c380660f1ec9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/2846.py | 847aa49eefbd37995b458393650c63221e13110a | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | import argparse
import shutil
import math, re
parser = argparse.ArgumentParser()
parser.add_argument('problem', help='Problem name')
parser.add_argument('suffix', help='Type')
args = parser.parse_args()
problem_name = args.problem
problem_type = args.suffix
input_path = "{}-{}.in".format(problem_name, problem_type... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d772952ee940c9b5d25fdcbec6fec1833158137a | 20d1b971f58b0a6ab30f2682b773e7280ac77bc2 | /loops/060720/dz/Fibonachchi.py | 7adeca7e51d643cdbd203a21357b7b2f3a991340 | [] | no_license | M2401/P1 | 1a39ba384030a1483c77d86db933d11c30e45abf | c08f3ba1e07678b7b20836465175d51c89a43078 | refs/heads/master | 2023-03-03T21:34:31.601512 | 2021-02-06T17:44:54 | 2021-02-06T17:44:54 | 312,105,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | n = int(input('Введите количество членов ряда Фибоначчи '))
i = 0
a = 0
b = 1
while i < n:
c = a + b
a = b
b = c
i = i + 1
print(c) | [
"flussooo@gmail.com"
] | flussooo@gmail.com |
90d6375fc1d9866df9a1d979229b79ee409846b0 | 817b6bd0b18d5f93de46283bb961185a0b70e71f | /Archive/get_json.py | 3bfdcaf9809448ba1d72ef73b01a7e43b17f9fc3 | [] | no_license | mattstirling/CTR_Recon | 5e75f07f39fdd20a02c380ba5d214695b63cc603 | fdf3633c936ecfc977814c04c7f03f0c325694bc | refs/heads/master | 2021-01-17T11:07:02.994311 | 2017-08-14T22:29:42 | 2017-08-14T22:29:42 | 52,452,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | import ConfigParser
config = ConfigParser.ConfigParser()
config.read('config.ini')
print config.sections()
print config.get('filename','in_folder_CTR')
| [
"mstirling@ScotiaFalcon"
] | mstirling@ScotiaFalcon |
e2effb3e1905beaa4051950ead4b1452a7fe7d4a | f078355df11e6f8927a1217060ce9a14f339521c | /chapter7/examples/read_number_list.py | 0f12cfb0e520427003fbb2e1e6dec45777aef0f5 | [] | no_license | sairamprogramming/python_book1 | 6c4d63325a8465ad0ca885266ee070910d1edfac | f463c64c14e7a3c1737f2e01858afe8d78f7de33 | refs/heads/master | 2020-05-16T09:27:28.209867 | 2019-05-12T11:26:53 | 2019-05-12T11:26:53 | 182,948,440 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # This program reads numbers from a file into a list.
def main():
# Open the file for reading.
infile = open('numberlist.txt', 'r')
# Read the contents of the file into a list.
numbers = infile.readlines()
# Close the file.
infile.close()
# Convert each element to int.
index = 0
... | [
"sairamprogramming@gmail.com"
] | sairamprogramming@gmail.com |
1973009a93eeaf97f8340a2e1b575f3c2256811e | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/aio/operations/_virtual_hubs_operations.py | 5465df1620c8420aa2d2b6b595fcb928be74a361 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 25,728 | 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"
] | paultaiton.noreply@github.com |
a31b180848acdc955022a7f2da0a49654e872a11 | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/network_instances/network_instance/protocols/protocol/bgp/rib/afi_safis/afi_safi/ipv4_srte_policy/loc_rib/__init__.py | 6c56654f26d23ea79a565af8ba75c210ab72af28 | [] | no_license | zsblevins/nanog81-hackathon | 5001e034339d6b0c6452ae2474f06916bcd715cf | 1b64fd207dd69837f947094fbd6d6c1cea3a1070 | refs/heads/main | 2023-03-03T09:39:28.460000 | 2021-02-15T13:41:38 | 2021-02-15T13:41:38 | 336,698,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,730 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"zblevins@netflix.com"
] | zblevins@netflix.com |
ac0d658aa6cce439e080299019d4ee7d2660a7c5 | 0d0afd1dce972b4748ce8faccd992c019794ad9e | /integra/seguranca/models/sale_etapa.py | fc359800236eec666f1d6770bf4ea4f412624a27 | [] | no_license | danimaribeiro/odoo-erp | e2ca2cfe3629fbedf413e85f7c3c0453fd16941e | d12577bf7f5266b571cbedeb930720d653320e96 | refs/heads/master | 2020-01-23T21:32:16.149716 | 2016-11-05T15:35:40 | 2016-11-05T15:35:40 | 67,892,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,083 | py | # -*- coding: utf-8 -*-
#from __future__ import division, print_function, unicode_literals
from osv import osv, orm, fields
from decimal import Decimal as D
from pybrasil.data import parse_datetime, data_hora_horario_brasilia, data_hora, hoje
TIPO = (
('P', u'Prospecto'),
('V', u'Venda/orçamento'),
('O'... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
0f3722fa407d6d9591490750996766fe2c35ec44 | 52b0aefb5b163528b07b5f288fe5f84e29d87134 | /Importation_insertion_data/migration_domains_django.py | b5bf1a5cd17908d887f0dbccc65a9bbff6b41a16 | [
"MIT"
] | permissive | diogo1790/inphinity | 4ef12440a78beca60349c1119f8d6f98083bb908 | 862eb85746e8a3a9bbc0d6aef9abbd5eebe9765f | refs/heads/master | 2020-04-01T01:47:50.655419 | 2019-09-18T11:56:37 | 2019-09-18T11:56:37 | 152,752,756 | 1 | 6 | MIT | 2019-07-10T09:29:15 | 2018-10-12T13:13:33 | Python | UTF-8 | Python | false | false | 9,001 | py |
import datetime
from configuration.configuration_api import ConfigurationAPI
from rest_client.AuthenticationRest import AuthenticationAPI
from objects_API.DomainSourceInformationJ import DomainSourceInformationJson
from objects_API.DomainInteractionPairJ import DomainInteractionPairJson
from objects_API.DomainInter... | [
"diogo1790@hotmail.com"
] | diogo1790@hotmail.com |
08649b81c6aae9c45a9df64adb976035b5901062 | e6683202f97190f8a5230fbb0b99d9692f10872c | /core/lib/dns/opcode.py | 2b2918e9939e76d15570c42e03dd992aaa75d178 | [
"MIT"
] | permissive | swagkarna/arissploit | 0ae6ba9c91aa8a1160597f052462a1030276688d | b0a58f61afc12ac78c65e0275dfa5e4d1e44989e | refs/heads/master | 2020-09-28T18:51:40.741777 | 2019-12-08T21:54:15 | 2019-12-08T21:54:15 | 226,839,315 | 3 | 0 | MIT | 2019-12-09T09:57:43 | 2019-12-09T09:57:43 | null | UTF-8 | Python | false | false | 2,574 | py | # Copyright (C) 2001-2007, 2009-2011 Nominum, Inc.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
# THE SOFTWARE IS PROVIDED "... | [
"noreply@github.com"
] | swagkarna.noreply@github.com |
9012686a87cfd6f8641e76f59d2b7e1e5c7f0735 | 97884eac334c253433242dca0e4ec156c3f88469 | /day93wechat/day93wechat/urls.py | ef4b31a747241bb69685826f225541a4fa6c4558 | [] | no_license | wxlun/tuochansanqi | cc12f174d78c2af9f81c21af1025360712f3109f | dd6d6ad077bd63fd4824292063810f286e052444 | refs/heads/master | 2022-05-06T04:13:26.961861 | 2020-03-02T00:28:37 | 2020-03-02T00:28:37 | 207,201,668 | 0 | 0 | null | 2022-03-29T21:59:17 | 2019-09-09T01:48:32 | JavaScript | UTF-8 | Python | false | false | 900 | py | """day93wechat URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"wxl1314920@163.com"
] | wxl1314920@163.com |
166379bcc516e4dbde0147e04da6c232e803ccbe | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.0_rd=1_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=28/params.py | 65d00f81b8bd21ad93fc56e402d60cef84a2f539 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.046143',
'max_util': '2.0',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'GSN-EDF',
'trial': 28,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
241f0426f30362160f3dc2dcc36c007cefc884d4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/11/usersdata/82/5676/submittedfiles/jogo.py | 30c8228810e96dd2850ca1d6ce019fc2895f9a64 | [] | 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 | 376 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#ENTRADA
Cv = input ('Digite Cv:')
Ce = input ('Digite Ce:')
Cs = input ('Digite Cs:')
Fv = input ('Digite Fv:')
Fe = input ('Digite Fe:')
Fs = input ('Digite Fs:')
#PROCESSAMENTO E SAIDA
if (Cv=Ce=Cs)>(Fv=Fe=Fs):
print ('C')
else:
print ('F')... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a0c13cee38fb23b755158bba158a293e6ee17318 | 70b32d82d721af16141f9999aa9b09bd8791c6f5 | /python/recursion/factorial.py | 696f28b950624e969ffe636b426738caa9328495 | [] | no_license | HaidiChen/Coding | 96909cf5b2eef6924b2cf3e0dd368a93e98da0e4 | 5ea5bc298a385b97480500290dbd58063a3e4287 | refs/heads/master | 2020-04-30T01:01:51.631159 | 2019-08-15T17:12:26 | 2019-08-15T17:12:26 | 176,517,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | def fact(n):
# base case
if n == 0:
return 1
# recursive case
return n * fact(n - 1)
def main():
n = int(input('Input your N, and I will give you the factorial:\n'))
print('factorial of {} is'.format(n), fact(n))
if __name__ == "__main__":
main()
| [
"chenhaidi43@163.com"
] | chenhaidi43@163.com |
f160a1070e8bfc8d1f9d2b9eb64885dfbea9e591 | 49cbc5f4735152ecd0dfff45fd719f2705c0ab30 | /ML/tensorflow/visualgradiantdescent.py | cb7f9046056a8339e5ff5fb8e7231089fb831218 | [
"MIT"
] | permissive | praveenpmin/Python | 964cc3652bfe79be93b71094fe504e7b6b072def | 9e2316b990a9c8c379b584339f918d23db32821a | refs/heads/master | 2023-09-02T21:42:19.287328 | 2023-06-28T05:53:41 | 2023-06-28T05:53:41 | 157,956,206 | 0 | 0 | MIT | 2023-08-30T03:40:37 | 2018-11-17T06:08:21 | Python | UTF-8 | Python | false | false | 2,375 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
LR = 0.1
REAL_PARAMS = [1.2, 2.5]
INIT_PARAMS = [[5, 4],
[5, 1],
[2, 4.5]][2]
x = np.linspace(-1, 1, 200, dtype=np.float32) # x data
# Test (1): Visualize a simple linear... | [
"pbabu1@lenovo.com"
] | pbabu1@lenovo.com |
a0e3dc8e2edfe8f0dfacb6576c13a2980b933c59 | ecd34c399f31cc3fb44b433d328201248a5eda97 | /batch_5pm/design/CGI/cgi-bin/old/pythoncgi1/index.py | 5cfa2695adcb2ab6bf5ceea9f5dd2b688dcca9c0 | [] | no_license | tiashasarkar26/Python_Codes | d651c1e1c9f29cff06b3f89e7ba271b18e4ea3e8 | b163169900a8bdb7777db7ce592fc2e11745a36a | refs/heads/master | 2021-05-26T01:30:28.555519 | 2019-01-07T11:28:06 | 2019-01-07T11:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!C:\\Anaconda3\\python.exe
print("Content-type:text/html")
print("\n")
print("<!Doctype html>")
print("<html>")
print("<head>")
print("<link rel='stylesheet' type='text/css' href='/python1/css/main.css'>")
print("</head>")
print("<body>")
print("<p>")
print("*"*30)
print("</p>")
print("<br />")
print("<h1>Welcome to... | [
"sachinyadav3496@gmail.com"
] | sachinyadav3496@gmail.com |
7bd9b377efb0fba859d0b3c7452592e810c4a13d | 608aeaeebe616116e92c541b58debcba4a20466d | /Tuples lists and dictionaries/069 -079.py | 4f42665447d30eafbc45b4953274e4c4ff6c0ef9 | [] | no_license | marinasupernova/100daysofcode | c8008a60cc56efbebda5e52c531507d78d8b7717 | 77c2515c19e71667de8a1983cc43d186f9566a27 | refs/heads/master | 2023-04-30T08:26:21.710429 | 2021-05-13T09:08:19 | 2021-05-13T09:08:19 | 287,949,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,137 | py | '''fruit_tuple = ("apple", "banana", "strawberry", "orange")
print(fruit_tuple.index("strawberry"))
print(fruit_tuple[2])'''
names_list = ["John", "Tim", "Sam"]
'''del names_list[1]
names_list.append(input("Add a name: "))
names_list.sort() ### Sort and save ###
print(sorted(names_list)) ### Sort but not save ### ... | [
"marina.de.suvorova@gmail.com"
] | marina.de.suvorova@gmail.com |
2049c9100ef3bac3bf4ac3db218a8df88aed9a20 | 642151dff23fff48310139ddc9b89c8bf6a670e3 | /app/base/__init__.py | d6df4bb024b25c935d50625b6131ccc1459209c2 | [] | no_license | gemicn/flask-navigation | 7ad371e0ac8220c14687f02b130707bf89c81553 | 382940492ca6cae41da44d30fb78c9535e8de955 | refs/heads/master | 2022-09-03T22:51:41.920901 | 2020-05-26T01:37:26 | 2020-05-26T01:37:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | from flask import Blueprint
blueprint = Blueprint(
'base_blueprint',
__name__,
url_prefix=''
)
| [
"ntuwang@126.com"
] | ntuwang@126.com |
c739c034af6a432010c2dbd25f59cc5c8ed67c89 | 3b4f985759e44dc169134ae7dcee8e92747c4b01 | /src/lightning/app/storage/filesystem.py | 141a29e8a1bc5e6946daf14e90cba175af3920ba | [
"Apache-2.0"
] | permissive | SkafteNicki/pytorch-lightning | 4b09863bf222241ca7128d13df94ff60b71e50aa | 7df627b43746a85aa87671bec3e6dada0d98b556 | refs/heads/master | 2023-07-15T21:20:02.468216 | 2023-05-04T08:12:33 | 2023-05-04T08:12:33 | 248,216,299 | 3 | 1 | Apache-2.0 | 2023-07-10T02:40:24 | 2020-03-18T11:44:20 | Python | UTF-8 | Python | false | false | 6,070 | py | import os
import shutil
from pathlib import Path
from typing import Callable, List
from fsspec.implementations.local import LocalFileSystem
from lightning.app.storage.copier import _copy_files
from lightning.app.storage.path import _filesystem, _shared_storage_path
def _get_files(fs, src: Path, dst: Path, overwrite... | [
"noreply@github.com"
] | SkafteNicki.noreply@github.com |
57ed513fce22e5430ab2a3e2f1bc5f52f2e20bf9 | 7bdc3d746cc9d6bff78b8a77d06253b7c489c00a | /env/lib/python3.6/site-packages/allauth/socialaccount/providers/quickbooks/test.py | 2bdff0300be31fef542cea413d8358a41862a030 | [
"MIT"
] | permissive | Ao99/e-commerce-django | fadc0de705f67b16e8dd82f6cc962fd9efd548d9 | 6fe69a03047619b199c236532f53f7c2cb22a079 | refs/heads/master | 2022-12-14T01:56:19.266754 | 2021-09-09T18:18:47 | 2021-09-09T18:18:47 | 229,646,356 | 2 | 2 | MIT | 2022-12-08T03:22:13 | 2019-12-22T23:52:46 | JavaScript | UTF-8 | Python | false | false | 610 | py | from allauth.socialaccount.tests import OAuth2TestsMixin
from allauth.tests import MockedResponse, TestCase
from .provider import QuickBooksOAuth2Provider
class QuickBooksOAuth2Tests(OAuth2TestsMixin, TestCase):
provider_id = QuickBooksOAuth2Provider.id
def get_mocked_response(self):
return MockedRe... | [
"aodong99@gmail.com"
] | aodong99@gmail.com |
d40ebe20316c475c7263e9dcc444e1d49d93ffdd | 35244ce6da8ec7e86ab085c2ff17611a36d3bcd4 | /CDSconfig.py | d3de4c11d97b57467cc0615d40cfc818ba585979 | [] | no_license | MRitter95/GraphCodes | c68a0e45585a22feaecb0b6481ef3cca2ed36539 | 6a561f41e908202362eba0c89964bf914ec9e712 | refs/heads/master | 2023-06-13T08:08:52.742532 | 2021-06-22T20:33:45 | 2021-06-22T20:33:45 | 302,158,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,550 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 20 16:55:14 2020
@author: kollar2
File to contain newly developed CDS (Cvetkovics-Doob-Sachs) configuration object.
different unit cells are selected by the number form the table at the back of that book.
Current version allows 1D and 2D covers ... | [
"maritter@umd.edu"
] | maritter@umd.edu |
1385dec48671d33d72a83426881ae8208084e230 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/matrix-org_synapse/synapse-master/synapse/rest/client/v1/directory.py | 8930f1826fcb8a3d7e17f3a887064f71e059e1a7 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 7,362 | py | # -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"659338505@qq.com"
] | 659338505@qq.com |
2fd82448387027c6134e99b05ea40f04078c3a4d | 3c22b00406124ab7b118931275814028fdce1958 | /erucli/client.py | e8f897bbc5fe73e1bbbad0bcccc5d8e70098dbb4 | [] | no_license | marswon/eru-cli | 1a4240760edd2d0d5c250a3a42c6bf62563492c5 | 99d04f58af9f49c07a1fe371aee46e6e29dc30d1 | refs/heads/master | 2021-01-12T22:08:12.392589 | 2015-05-04T05:38:28 | 2015-05-04T05:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,787 | py | # coding: utf-8
import json
import socket
import requests
import websocket
import urllib
import urlparse
from urlparse import urljoin
session = requests.Session()
class EruClient(object):
def __init__(self, url, timeout=5, username='', password=''):
self._url = url
self._timeout = timeout
... | [
"tonicbupt@gmail.com"
] | tonicbupt@gmail.com |
4e0b4078d2ef455d68ff6a4e18f8a0385e86d7d4 | 53ef4325801a0e82e8817774421b586649733e98 | /simplereader.py | 411d7ae957e2f33d0712e69b0f7435c4f2d2f42f | [] | no_license | reviews123/notmyidea | 83d28543a3bc39939aa8bb3f3d4e4eeb05515d2d | 7b44dbb6fba5a05a7a3099e967a772fe22abb408 | refs/heads/master | 2020-09-06T07:16:19.862884 | 2019-11-07T16:16:26 | 2019-11-07T16:16:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | from pelican import signals
from pelican.readers import MarkdownReader, Category
from pelican.utils import get_date, slugify
import os.path
class SimpleReader(MarkdownReader):
enabled = True
file_extensions = ["md"]
def __init__(self, *args, **kwargs):
super(SimpleReader, self).__init__(*args, ... | [
"alexis@notmyidea.org"
] | alexis@notmyidea.org |
a47d79b76fcc0a0b30674997425350e927bee4d8 | 0f58e2972b25056fd8ec8c8a559521a49936a3f3 | /django_auth/urls.py | e39ce1c362c3d5621fd1e9173868d29354499a6a | [] | no_license | Harrysibbenga/DjangoAuth | cf75f1774de0aecd3f4bf33c29139e87f34f91e9 | 175994b54f969fec3a6601133d31081a55689999 | refs/heads/master | 2020-08-27T08:50:40.292010 | 2019-10-24T13:29:31 | 2019-10-24T13:29:31 | 217,306,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """django_auth URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"sibbengaharry@gmail.com"
] | sibbengaharry@gmail.com |
44b177ed6cd2eb9393f68ff0b7fa1768e275aee1 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/jinja2/testsuite/loader.py | 0f72139361da33d8e99856ea81f8345ecf36453b | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,977 | py | #Embedded file name: jinja2/testsuite\loader.py
"""
jinja2.testsuite.loader
~~~~~~~~~~~~~~~~~~~~~~~
Test the loaders.
:copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import os
import sys
import tempfile
import shutil
import unittest
from jinja2.testsuite im... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
543b27c197b09b9c1cbde634b490b4fa5db521fd | b4e4b68d9a0a0c4a9559bfcf6d5e878b19a3a62c | /acme/jax/networks/distributional.py | e4786618638462f44b8b155190fb3338f7b3a88b | [
"Apache-2.0"
] | permissive | bimec/acme | 210b153c93b9ace3663a2394b5f5c89cbe22800f | dbdbe5f12c740242b8504b9426e52a239dace071 | refs/heads/master | 2023-03-30T14:22:12.422260 | 2021-03-22T09:35:47 | 2021-03-22T09:36:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,099 | py | # python3
# Copyright 2018 DeepMind Technologies Limited. 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 re... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
4c2240c8d7ec5d4340aa011e63bfbac9bfbadbf0 | 9069bf16cbf56abe081a8d7f53097bb9046252f5 | /tree/check_if_full_binary_tree/stack.py | d6c162cd4e5732adc6f0764374b591b9a3ed6afa | [
"MIT"
] | permissive | chrisjdavie/compsci_basics | c0c759c327aedb271a85e19e2f1d69e8c85f6039 | dab0d377c6cf040ddda2c9c9f8373e996b1a594c | refs/heads/master | 2021-04-27T20:59:08.118251 | 2018-04-26T10:22:55 | 2018-04-26T10:22:55 | 122,390,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | """
Check whether a binary tree is a full binary tree or not
A full binary tree is defined as a binary tree in which all nodes have either zero or two child nodes. Conversely, there is no node in a full binary tree, which has one child node.
https://www.geeksforgeeks.org/check-whether-binary-tree-full-binary-tree-not... | [
"cjdavie@googlemail.com"
] | cjdavie@googlemail.com |
5f01d37bfe10e7e24dfec40924219edc495f4c28 | 547e4e394b01a0834caa97a7c21359229a21e7dd | /examples/enable_char_error_detect.py | 3c83fd070c0092d1720055f12bfc10f5561c668a | [
"Apache-2.0"
] | permissive | YaoYaoZhi/pycorrector | 33da473c7a86c1b6b33f4e5663dbac1c41353f22 | 658decaacaf2d8d6af9ad0b2b3a1e7df7ff7bf0e | refs/heads/master | 2020-06-17T16:17:23.779262 | 2019-07-09T09:04:00 | 2019-07-09T09:04:00 | 195,974,046 | 1 | 0 | Apache-2.0 | 2019-07-09T09:11:42 | 2019-07-09T09:11:42 | null | UTF-8 | Python | false | false | 1,531 | py | # -*- coding: utf-8 -*-
"""
@author:XuMing(xuming624@qq.com)
@description:
"""
import sys
sys.path.append("../")
import pycorrector
error_sentences = [
'这纸厚度如何?质量怎么样',
'双十一下单到现在还没发货的,',
'一但工作效率提升,需要时间在工作上也减少',
'可否送手机膜?送膜吗',
'这水用来洗脸泡脚效果如何',
'五香的不辣吧',
'这款功率真有2000w吗',
'我对于宠物出租得事非常认同,因为其实很... | [
"507153809@qq.com"
] | 507153809@qq.com |
3894faf577ce1f226537469b6260dd530fb9a0bb | f84369dca13577c3a11ce698524fdd811817f51a | /save_loader.py | bae861b5bf1207970421b1e0a16fae2dd6fa2aac | [
"MIT"
] | permissive | monkeyman192/KamikoSaveEditor | 4362e4e0713f3782afa8b1e2cb251d99458d55dd | 5fa92f86b4dea2ed29e23355a88841a7b7ce2d8e | refs/heads/master | 2020-12-03T14:16:14.861047 | 2020-01-02T10:29:51 | 2020-01-02T10:29:51 | 231,350,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | import argparse
import base64
import gzip
import io
import json
import os.path as op
import shutil
import struct
SAVEFILE_NAME = 'SaveData'
SAVEDATA_BAK = 'SaveData.bak'
EXPORT_NAME = 'SaveData.json'
def load(fname):
""" Load a Kamiko save file. """
_fname = fname or SAVEFILE_NAME
with open(_fname, 'rb'... | [
"monkey_man_192@yahoo.com.au"
] | monkey_man_192@yahoo.com.au |
30060a5e50b10b1a224af13219eebc5371ccf44d | c16074df9284162febda485038e53fdabc734a0d | /settings_charter/migrations/0002_auto_20151208_2152.py | a06752fef49766ab02373b6e705aae63335f9442 | [] | no_license | CharterTechChair/Charter-Website | 42e8a4d5c5a5bc0925f8a55c8be276d926d112c8 | ddf53ec492202c3a8dc678ebabcd0c394e6884cb | refs/heads/master | 2023-02-12T20:02:56.143737 | 2021-01-17T00:40:59 | 2021-01-17T00:40:59 | 32,171,388 | 2 | 1 | null | 2021-01-16T22:30:17 | 2015-03-13T17:46:54 | Python | UTF-8 | Python | false | false | 1,113 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('settings_charter', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='charterclubsettings',
... | [
"quanzhou64@gmail.com"
] | quanzhou64@gmail.com |
be27de6cf90e19445e28c2c6ed1b7c814a2f0d18 | 054c0bdf2ed7db0975828355562b7b0a7bad7e5c | /myapp/about/migrations/0003_auto_20190809_1649.py | ee834f81df0164f24a27a955e76b458e360bb1f0 | [] | no_license | fbbenod/Touristy-Information-System | d8024a5d9df0712d336d18cf1a2ac5b235b3b58e | 8122a8b9f343fd952a052d2c435f914d0b82079c | refs/heads/master | 2020-07-14T19:39:20.759408 | 2019-08-31T12:16:04 | 2019-08-31T12:16:04 | 205,385,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # Generated by Django 2.2.1 on 2019-08-09 16:49
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('about', '0002_auto_20190616_1414'),
]
operations = [
migrations.AlterModelOptions(
name='aboutus',
options={'verbose_name_pl... | [
"b3nodbanjara@gmail.com"
] | b3nodbanjara@gmail.com |
83b299a4a430d3ce37cc3cfb1001f3bc53c1247f | 120f8a014fae7c75d2c42e13f85110462d0db397 | /satools/sync-lists.py | 314df2c83db402b3c6eb9624aaefb7ea4ca1ac83 | [] | no_license | RedHatEMEA/satools | ffe7655f3bfa0d22fee671e3b18e5693929b7ba0 | ef9bb27e0a18ac0b2388e392f5fa3dbe789c8b06 | refs/heads/master | 2023-08-29T14:53:48.029891 | 2016-04-11T12:44:38 | 2016-04-11T12:44:38 | 2,644,123 | 8 | 4 | null | 2013-05-29T15:16:19 | 2011-10-25T15:03:51 | JavaScript | UTF-8 | Python | false | false | 3,657 | py | #!/usr/bin/python3
import argparse
import attachments
import common
import gzip
import lxml.html
import mailindex
import sys
import thunderbird
import time
import os
import urllib.error
import urllib.request
# TODO: single list update
def parse_args():
ap = argparse.ArgumentParser()
ap.add_argument("-q", act... | [
"jminter@redhat.com"
] | jminter@redhat.com |
544750d51aa82e33636ef3e39d65d672c088faf2 | 9c417ccee8c216207d04925e50272eae44ffc388 | /jason_25298/settings.py | b0b6b285ab67fd326304f315c8c4c7a325158c88 | [] | no_license | crowdbotics-apps/jason-25298 | 397f7858691125b09e5866ebb3fb72a02f8bf7f4 | ab63544878e5728f7f89a07eb6f2cab538697e47 | refs/heads/master | 2023-03-25T11:34:31.601185 | 2021-03-26T21:44:00 | 2021-03-26T21:44:00 | 351,918,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,766 | py | """
Django settings for jason_25298 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5eb9abeddb42523b540a12be4b5451f841611bfa | 45a6105def7391b8eab9003f71747beba58cf145 | /pycws/tests/test_pycws.py | 384ee21a583e2f357308093ac310620dfe001620 | [] | no_license | felipecruz/pycws | 7fb6bf95a46641e23c93fcd34b58fbf022cd20c1 | 93ef4a10a64385bc55f433ceb9ecb95f4997d3cb | refs/heads/master | 2020-04-05T23:16:41.383113 | 2013-09-09T01:24:56 | 2013-09-09T01:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | """Pycws API"""
from unittest import TestCase
from pycws.base import parse_handshake, WS_OPENING_FRAME
CLIENT_HS1 = b'''GET /?encoding=text HTTP/1.1\r\n\
Host: rp:9090\r\n\
Accept-Language: en-us,en;q=0.5\r\n\
Accept-Encoding: gzip, deflate\r\n\
Connection: keep-alive, Upgrade\r\n\
Sec-WebSocket-Version: 13\r\n\
Ori... | [
"felipecruz@loogica.net"
] | felipecruz@loogica.net |
02b0ca1d7d6cb3ec1c01b5c5bb996e9111a0d4c6 | 060fbf2a69a90ad92de5fc877521d5ea6b298007 | /test/vanilla/AcceptanceTests/test_xml.py | fa04decdb9bc03915df06ee2ba18214b80688bdd | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | iscai-msft/autorest.python | db47a8f00253148fbc327fe0ae1b0f7921b397c6 | a9f38dd762fbc046ce6197bfabea2f56045d2957 | refs/heads/master | 2021-08-02T13:06:34.768117 | 2018-11-21T00:29:31 | 2018-11-21T00:29:31 | 161,554,205 | 0 | 0 | MIT | 2018-12-12T22:42:14 | 2018-12-12T22:42:14 | null | UTF-8 | Python | false | false | 6,662 | py | # --------------------------------------------------------------------------
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the ""Software""), ... | [
"noreply@github.com"
] | iscai-msft.noreply@github.com |
41347ec7f798bf8d9b425f1c18d615fadcfb9eaf | db6901abe45c8b1cf3f38d9749141cc9213de2e7 | /devel/lib/python2.7/dist-packages/mavros_msgs/srv/_ParamGet.py | c9d41b9b1be7a4c895b4ac527567960d0f872ec0 | [] | no_license | amilearning/MAV_competition_mavros_ws | e95f5f66dac995538c9a682ec243deebf81b451a | 303a5272fd47e1a0382c8f769623d7cfddb1ebe3 | refs/heads/master | 2023-06-24T11:25:47.592856 | 2021-07-20T16:17:34 | 2021-07-20T16:17:34 | 387,848,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | /home/hojin/drone_ws2/mavros_ws/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/srv/_ParamGet.py | [
"hojin.projects@gmail.com"
] | hojin.projects@gmail.com |
f9e99dbd166561a8baff2fa64c10052622c94234 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2_neat/16_0_2_DeepDishPizza69_revenge.py | 36bd7f922ef0a1bd472da52b65808d6906d3fb14 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,021 | py |
def process(stack):
#stack=stack+"+"
cost=0
index=0
firstIncidet=True
print stack
#for i in range(len(stack)):
while index<len(stack):
while (stack[index]=="-"):
index+=1
if (index <= len(stack)):
break
if stack[0]=="-" and firstIncidet:
cost+=1
firstIncidet=False
else:
cost+=2
if... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
0b8cc30d332e411eaa27101d9fa1a13ea8874a06 | ed248888952cf1b36f6e25e8b7319c3586753b29 | /litex_boards/targets/kcu105.py | 27d0c84b7ece78a36121cac21d88fed0cf204acc | [
"BSD-2-Clause"
] | permissive | storborg/litex-boards | 0010ca20822c5f670dbbbabae31f2c275bd09a5d | 45bb329b5638f435d561e009b62547c2827f66e2 | refs/heads/master | 2022-12-02T08:30:32.162376 | 2020-08-07T17:26:12 | 2020-08-07T17:26:12 | 287,456,998 | 0 | 0 | BSD-2-Clause | 2020-08-14T06:05:55 | 2020-08-14T06:05:54 | null | UTF-8 | Python | false | false | 5,178 | py | #!/usr/bin/env python3
# This file is Copyright (c) 2018-2019 Florent Kermarrec <florent@enjoy-digital.fr>
# License: BSD
import os
import argparse
from migen import *
from litex_boards.platforms import kcu105
from litex.soc.cores.clock import *
from litex.soc.integration.soc_core import *
from litex.soc.integrati... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
675aadbf2699a4c38b9896a7f594ab3b4306f777 | 2fe58e7f6bfc3efdb78ca56f72a4e2a75a24c270 | /eric/eric6/WebBrowser/Network/SendRefererWhitelistDialog.py | fbc22b19aad684232e572634b606c9cc67bbb8ac | [] | no_license | testerclub/eric6-20.3 | 3053e0e6962060b213f5df329ee331a4893d18e6 | bba0b9f13fa3eb84938422732d751219bc3e29e2 | refs/heads/master | 2023-03-18T08:24:03.472297 | 2020-03-14T06:44:14 | 2020-03-14T06:44:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2012 - 2020 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing a dialog to manage the Send Referer whitelist.
"""
from PyQt5.QtCore import pyqtSlot, Qt, QSortFilterProxyModel, QStringListModel
from PyQt5.QtWidgets import QDialog, QInputDialog, QLineEdit
fr... | [
"skeptycal@gmail.com"
] | skeptycal@gmail.com |
1c14c19ecbe8b51d94dc4b55f6654fae4fb523a6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_212/ch4_2020_03_23_14_14_56_503956.py | d514d3a5b9223adbfc87f5ee78a1630fee8f11ab | [] | 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 | 181 | py | def classifica_idade(idade):
if idade <= 11:
print("crianca")
elif idade >= 12 and idade <= 17 :
print("adolescente")
else:
print("adulto")
| [
"you@example.com"
] | you@example.com |
3b460dda8d6a55985f1cfa863da4c2a21682b5a1 | 1efd2de8bf77ec00eb2fcaf5749278495946d920 | /src/vos/storage_estimator/daos_storage_estimator.py | 2b9da5c4878e7f837c6b8a29bdb5cb80801b197e | [
"BSD-2-Clause",
"BSD-2-Clause-Patent"
] | permissive | daos-stack/daos | 6f55bf3061fd830d5b8d28506e1295e2d3a27c38 | ed5eed5df43a68571afe123132a743824c02637a | refs/heads/master | 2023-08-31T21:43:37.606145 | 2023-08-31T16:38:00 | 2023-08-31T16:38:00 | 69,390,670 | 631 | 300 | NOASSERTION | 2023-09-14T18:55:15 | 2016-09-27T19:21:29 | C | UTF-8 | Python | false | false | 10,400 | py | #!/usr/bin/env python3
'''
(C) Copyright 2019-2023 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent
'''
import argparse
import sys
from storage_estimator.dfs_sb import get_dfs_example, print_daos_version, get_dfs_inode_akey
from storage_estimator.parse_csv import ProcessCSV
from storage_estimator.e... | [
"noreply@github.com"
] | daos-stack.noreply@github.com |
9d1e8d3d5c857ce249de7d5ae5cafd5524a4de45 | ebfd7c950d7e746d72b78af1fa6c6e5ed2934bda | /3_Event_Signal/02_escape.py | 82ffdc49907045c2ffdc99350e80ec15bf929251 | [] | no_license | HuangJiaLian/LearnPyQT4 | ed64961630318edcdffe60774c8a3ad5df957adb | 296bf7be0081e2806fa0079ee2472072e35fddcb | refs/heads/master | 2021-05-02T01:57:22.668627 | 2018-02-11T06:24:41 | 2018-02-11T06:24:41 | 120,877,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time : 2/9/18 3:02 PM
# Author : Jack Huang
# Email : jackhuang719668276@163.com
# File : 02_escape.py
# About :
# 1. 重新实现事件处理程序
# 2. 我们重新实现了 keyPressEvent() 处理。
# 3. 如果我们按下了escape按钮,程序将退出。
import sys
from PyQt4 import QtGui, QtCore
class Example(QtGui.QWid... | [
"719668276@qq.com"
] | 719668276@qq.com |
19edc380dc3019809a0e647a32d985ad4a11aca6 | b2a8d0186a27083fa316b6deacc04b95a5d778dd | /example/perfbench/molecule-cookie-cutter.py | c25d3d3226a210ed88000a9e4a288b67cbbd59a0 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | yhtang/GraphDot | d1bd0d1d98e1f434e02e1bbf0cfee1e9f8df2e2b | 3d5ed4fbb2f6912052baa42780b436da76979691 | refs/heads/master | 2021-12-14T22:40:23.059953 | 2021-12-08T18:22:48 | 2021-12-08T18:22:48 | 197,128,612 | 14 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Performance benchmark on molecular graphs generated from small organic
molecules."""
import sys
import re
import numpy as np
import pycuda
from ase.build import molecule
from graphdot.graph import Graph
from graphdot.kernel.molecular import Tang2019MolecularKernel as Ker... | [
"Tang.Maxin@gmail.com"
] | Tang.Maxin@gmail.com |
6c74383c6769a4eed67d9e473004f1be80da3cdf | a97db7d2f2e6de010db9bb70e4f85b76637ccfe6 | /algorithm/dynamic-programming/unique-paths/solution.py | 880e996c33a60731aed48570b1c873e854f5df5a | [] | no_license | dongxiaohe/Algorithm-DataStructure | 34547ea0d474464676ffffadda26a92c50bff29f | a9881ac5b35642760ae78233973b1608686730d0 | refs/heads/master | 2020-05-24T20:53:45.689748 | 2019-07-19T03:46:35 | 2019-07-19T03:46:35 | 187,463,938 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | def uniquePathsWithObstacles(obstacleGrid):
m = len(obstacleGrid)
n = len(obstacleGrid[0])
dp = [0 for _ in range(n)]
dp[0] = 1
for i in range(m):
for j in range(n):
if obstacleGrid[i][j] == 1:
dp[j] = 0
elif j > 0:
dp[j] += dp[j - 1]
... | [
"ddong@zendesk.com"
] | ddong@zendesk.com |
7d9e0bfe450c1fbc6e015a96c90c4aef6581d9ec | 51c66f1a3079321f2d5817d67bce3e4a5afc6b44 | /2/auto_basic/系统监控并报警.py | ae7a7be71c3d0aadeaf64670be1c54957a7d3531 | [] | no_license | Hooyh110/python_DevOps | a14a79dee7551ee1e91ea863a4825f67964a0a2d | 80537d4b3327bbda62475c9bb6c91de71d3b5022 | refs/heads/master | 2023-03-16T08:39:54.758236 | 2020-01-24T08:28:38 | 2020-01-24T08:28:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | # -*- coding:utf-8 -*-
import psutil
import winsound
import time
def getDisk():
disk = psutil.disk_partitions() # 获取硬盘信息
print disk
for i in disk:
if i.opts != 'cdrom': # 除了光驱以外的设备
print "磁盘:%s 分区格式:%s" % (i.device, i.fstype)
disk_use = psutil.disk_usage(i.devi... | [
"1049939190@qq.com"
] | 1049939190@qq.com |
4d8fbb6be8ea98ed8976e30b151a656328b612bb | fab862ad15c5f8533af69e926f0bfbbf66253023 | /wharfee/style.py | 46cdb66b7f498ba663dcc6786bacc8592021d489 | [
"BSD-3-Clause"
] | permissive | j-bennet/wharfee | dfbf0bb0ea5033f1dc6a355f62b480bbffed2afc | a48536cba5d3830a29c63bb440b3e74a8a23431d | refs/heads/master | 2023-08-24T23:26:35.647941 | 2021-01-08T22:05:08 | 2021-01-08T22:05:08 | 34,074,446 | 504 | 42 | BSD-3-Clause | 2022-01-20T14:51:05 | 2015-04-16T18:53:35 | Python | UTF-8 | Python | false | false | 1,174 | py | # -*- coding: utf-8
from pygments.token import Token
from pygments.util import ClassNotFound
from prompt_toolkit.styles import default_style_extensions, PygmentsStyle
import pygments.styles
def style_factory(name):
try:
style = pygments.styles.get_style_by_name(name)
except ClassNotFound:
styl... | [
"i.chernyavska@gmail.com"
] | i.chernyavska@gmail.com |
daf033a1fe1cf8f02580789fed3fae3f8d265fbd | c59386422d4cdcb8ec629cef980777a18ccfd85f | /src/loksewa_apps/core/migrations/0001_initial.py | 3f1e2c7e8fba73e9e1187e26c4efbdf520fc0cc1 | [] | no_license | oholearning/PLG | 58547272ffb2e9b0e87e6479e4bcb668f1eb87bd | 7d2b6b7146c8d559fb5b94b19d65135cfa806f24 | refs/heads/master | 2020-04-09T21:22:44.078971 | 2018-12-08T04:16:16 | 2018-12-08T04:16:16 | 160,600,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,094 | py | # Generated by Django 2.1.3 on 2018-12-02 03:51
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Answer_Multiple_selection'... | [
"nishantkarki305@gmail.com"
] | nishantkarki305@gmail.com |
84f9180df0b5999f17198410fa7fa66e5d63ca1b | d80ef8c716bcc5ea54e87540dbf0463f15bf44ce | /Render Engine/HTMLAnalyzer.py | a77a67bd320b13cd27ba122971e9e8223e1ab34e | [
"MIT"
] | permissive | YagiGo/YPTN | 5043d22eb131c7164d3fa575f0c4e3d8a963dbf4 | d7692a68ee1bf578536b4c09c566272210fc8b69 | refs/heads/master | 2018-10-16T03:44:18.024169 | 2018-07-24T08:53:57 | 2018-07-24T08:53:57 | 107,633,669 | 4 | 1 | MIT | 2018-06-08T09:04:29 | 2017-10-20T04:55:22 | JavaScript | UTF-8 | Python | false | false | 10,886 | py | #!/usr/bin/python
#coding:utf-8
import re
import sys, urlparse, os
import urllib
import requests, base64
from bs4 import BeautifulSoup
# try to build a command line version
import argparse
# colored logging, at present, stderr is used, may shift to log file system
try:
from termcolor import colored
except:
d... | [
"jeremywu1995@gmail.com"
] | jeremywu1995@gmail.com |
b2757e42e58b8b9ef1e18af6eb5be92c11e31a6e | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/arc/arc043/D/answers/259814_ehn.py | 7abac53c417bff0b40cf9f3ea1e9652a0b740556 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools
sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x... | [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
6f75adb3e876ba61fd2ad37cea554026f5503d77 | 836312e7ced2d5c5ed43d0e3ad34f2144cf9064e | /web-and-python/1_EchoServer/test.py | a11b0a8f460066471fc4dc0790d93c70ee480657 | [] | no_license | muhammad-mamdouh/udacity-fullstack-tools | 4342cdca75d88184a095d69b9484a4e50c87f905 | a881845042f3706b5e37ea72df645859541c73ab | refs/heads/master | 2022-12-15T23:33:20.813201 | 2019-07-11T21:05:53 | 2019-07-11T21:05:53 | 187,712,425 | 1 | 0 | null | 2022-12-08T05:51:53 | 2019-05-20T20:58:42 | Python | UTF-8 | Python | false | false | 1,220 | py | #Test script for the echo server.
import requests, random
words = ["Alpha", "Bravo", "Charlie", "Delta", "Echo", "Foxtrot", "Golf",
"Hotel", "India", "Juliet", "Kilo", "Lima", "Mike", "November",
"Oscar", "Papa", "Quebec", "Romeo", "Sierra", "Tango", "Uniform",
"Victor", "Whiskey", "Xray", ... | [
"mahammad.mamdouh@gmail.com"
] | mahammad.mamdouh@gmail.com |
1704cf2660b9f07b9a7c7fdbcfd715cb881c4da4 | 2d6d24c0bfee13fc4682dee52075e78a552a8d1c | /tests/sc/test_audit_files.py | 0219f4bd9eb089b36a3c11a9795c1b0a1bd5f1cf | [
"MIT"
] | permissive | sbiradarctr/pyTenable | b890875c5df3a1da676cebd57af51bc49666a7d2 | 2a6930cd7b29036780c291581d89ab33c0fd6679 | refs/heads/master | 2023-05-06T09:20:43.580412 | 2021-05-31T09:05:11 | 2021-05-31T09:05:11 | 371,701,521 | 0 | 0 | MIT | 2021-05-28T12:58:52 | 2021-05-28T12:58:52 | null | UTF-8 | Python | false | false | 10,289 | py | from tenable.errors import *
from ..checker import check
import pytest
def test_audit_files_constructor_name_typeerror(sc):
with pytest.raises(TypeError):
sc.audit_files._constructor(name=1)
def test_audit_files_constructor_description_typeerror(sc):
with pytest.raises(TypeError):
sc.audit_fil... | [
"steve@chigeek.com"
] | steve@chigeek.com |
8002253a4ba2cd5c12bd926d19979c2bb3630060 | e62d5b3e9cb8e3549c711067e3f17d7c761f1b2a | /Intro to Python book/chaos/Bozo.py | 5a4779956ecbe5769455b7ec4c574652ebaee7ba | [] | no_license | UncleBob2/MyPythonCookBook | 5fe658b3e281861015e154493480753d169764a7 | 131051c884415cde789a487acb7e7d1f60aea3ac | refs/heads/master | 2023-01-03T04:26:15.493832 | 2020-10-29T20:09:45 | 2020-10-29T20:09:45 | 259,091,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | class Bozo:
def __init__(self, value):
print("Creating a Bozo from: ", value)
self.value = 2 * value
def clown(self, x):
print("Clowing:", x)
print("x*self", x * self.value)
return x + self.value
def main():
print("Clowing around now.")
c1 = Bozo(3)
c2 = Bo... | [
"trohoang@yahoo.com"
] | trohoang@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.