blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
214d4aa7d9d650457f16d09deb626056c87e3125 | 1ebbc0af6be6956d3c4b30908893f4a558dedba4 | /tests/zf_grid/test_get_dms.py | 00b58ceb3d247e5b37c520c1c4b3df90671006d8 | [
"MIT"
] | permissive | Cangar00/easyGalaxy | d724f6869168527f6f62274bdf981a2410c8de58 | 08570d28dbb796c5c0626e598dee12dfc29f16b8 | refs/heads/master | 2021-05-11T23:32:54.752850 | 2019-12-02T08:47:39 | 2019-12-02T08:47:39 | 117,512,634 | 1 | 0 | null | 2018-01-15T07:36:42 | 2018-01-15T07:36:42 | null | UTF-8 | Python | false | false | 1,061 | py | import unittest
import ezgal.zf_grid
import numpy as np
import math
# I put the test data for the zf_grid tests in
# tests.zf_grid instead of in tests because
# there is a lot of data but it is all
# specific for this test.
import tests.zf_grid
class test_get_dms(tests.zf_grid.test_zf_grid):
def test_get_dms( self... | [
"cmancone@gmail.com"
] | cmancone@gmail.com |
68eaecbd85734eb0f4bbe99130887cfd001dfb3f | 18430833920b3193d2f26ed526ca8f6d7e3df4c8 | /src/discussion/models.py | 0a055192ebd8e9616ffd4509c758e025556bebf4 | [
"MIT"
] | permissive | providenz/phase | ed8b48ea51d4b359f8012e603b328adf13d5e535 | b0c46a5468eda6d4eae7b2b959c6210c8d1bbc60 | refs/heads/master | 2021-01-17T06:56:07.842719 | 2016-06-28T11:17:53 | 2016-06-28T11:17:53 | 47,676,508 | 0 | 0 | null | 2015-12-09T07:45:19 | 2015-12-09T07:45:18 | null | UTF-8 | Python | false | false | 2,536 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import re
from django.db import models, transaction
from django.utils import timezone
from django.utils.translation import ugettext, ugettext_lazy as _
from django.conf import settings
from accounts.models import User
from documents.models import Docum... | [
"thibault@miximum.fr"
] | thibault@miximum.fr |
a0bee0b6bca0acf9eeab3301e14828b38fc31720 | 5d48aba44824ff9b9ae7e3616df10aad323c260e | /math/7.reverse_integer.py | 423dff20dd4e1317bf2eaa4e0dd641f08a7c72cc | [] | no_license | eric496/leetcode.py | 37eab98a68d6d3417780230f4b5a840f6d4bd2a6 | 32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17 | refs/heads/master | 2021-07-25T11:08:36.776720 | 2021-07-01T15:49:31 | 2021-07-01T15:49:31 | 139,770,188 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | """
Given a 32-bit signed integer, reverse digits of an integer.
Example 1:
Input: 123
Output: 321
Example 2:
Input: -123
Output: -321
Example 3:
Input: 120
Output: 21
Note:
Assume we are dealing with an environment which could only store integers within the 32-bit signed integer range: [−2^31, 2^31 − 1]. For the... | [
"eric.mlengineer@gmail.com"
] | eric.mlengineer@gmail.com |
87633fa653170b11500e6ce6c575b271641b5cb1 | 62e9fb33329fbefa89287e5bc343cb9c120306a1 | /tensorflow_probability/python/experimental/nn/convolutional_layers_v2_test.py | 963c3f454ef5ba4bf5e747474a484e12150550fe | [
"Apache-2.0"
] | permissive | npfp/probability | 3c103d4b9d7a72d3d16eb79b1e4f648afbaca057 | 3911f4463cdcca6cc118633742430885fb0c88cb | refs/heads/master | 2022-05-01T14:23:40.504258 | 2022-04-07T20:08:45 | 2022-04-07T20:10:58 | 246,853,846 | 0 | 0 | Apache-2.0 | 2020-03-12T14:23:04 | 2020-03-12T14:23:03 | null | UTF-8 | Python | false | false | 5,851 | py | # Copyright 2019 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
abffda888ed0fd0cbb18028af0084c011d97402d | 938650c8a8191a4203462e44ff9684b01fa61d54 | /ListsAdvanced/Problem3MidExam.py | 4023e40e7d1620e8fd412172bf38579610c78e43 | [
"MIT"
] | permissive | mironmiron3/SoftuniPythonFundamentals | 838e91e36531b59ea382a3aaaad3e71710a396a6 | 4f2d968250ae5c58c2b60242da013fe319781c6b | refs/heads/main | 2023-03-31T19:07:49.183225 | 2021-04-02T07:43:59 | 2021-04-02T07:43:59 | 353,728,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | available_cards = input().split(":")
new_deck = []
command = input()
while not command == "Ready":
commands = command.split()
if commands[0] == "Add":
if not commands[1] in available_cards:
print("Card not found.")
command = input()
continue
new_de... | [
"noreply@github.com"
] | mironmiron3.noreply@github.com |
95f7489074851714bb2cbb2fee4037f59781eeb2 | 7aaf08047ad3e3d539dd20309648740cd11b5950 | /modules/sdnpwn_common.py | 8452d45bf7129a3f9e0627f6c2496f60f5b4e9c6 | [
"MIT"
] | permissive | Grukz/sdnpwn | 50e2a236f18de09daa40121c67ab53aba43c8390 | c1d0277110a398dcc3fa6c9b597a02c8d028086d | refs/heads/master | 2021-06-26T08:32:48.921135 | 2017-09-11T15:00:44 | 2017-09-11T15:00:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,882 | py |
import netifaces
from scapy.all import *
from random import randint
from subprocess import check_output
from tabulate import tabulate
SUCCESS = "\033[32m[*]\033[0m "
WARNING = "\033[93m[!]\033[0m "
ERROR = "\033[91m[!]\033[0m "
NORMAL = "\033[0m[+]\033[0m "
VERBOSE = " "
SDNPWN_MODULE_USAGE = []
# sdnpwn genera... | [
"dylan@admin-dell.admin-dell"
] | dylan@admin-dell.admin-dell |
baa8ad8c8aa770dd1c384019ef7fd5f13026eebc | dcff14b40e9ae8eee237777d7689897d6c6251f8 | /section9/lecture_041.py | dd9884166a60a6e7145ea516d7f6e83f190bcc9b | [] | no_license | nirzaf/python_excersize_files | bebdfd0dbd9e2c5991c7aa3ff56b0ab5def0707c | 960f0935483729648aea17456c813ccf65d99149 | refs/heads/master | 2021-03-25T16:02:59.573403 | 2020-03-16T09:57:23 | 2020-03-16T09:57:23 | 247,631,346 | 25 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py |
### Tony Staunton
### Interest rate checker using if-elif-else
# Get user balance
balance = input("What is your bank balance?")
if int(balance) <= 0:
print("Would you like to make a deposit?")
elif int(balance) <= 50:
print("You do not qualify for interest.")
elif int(balance) < 100:
print("Your inerest ... | [
"mohamed.fazrin@staff.broadbandsolutions.com.au"
] | mohamed.fazrin@staff.broadbandsolutions.com.au |
a2b655eff997a9e7b2fc221d1fed9f292086fe47 | b4724160fa87451ae45b43f320e90dce946629a0 | /marketplace/deployer_util/overlay_test_files.py | 71f87c2fbfe19d70ea24b28dcb0698081d0e6d07 | [
"Apache-2.0"
] | permissive | DalavanCloud/marketplace-k8s-app-tools | a2b95393664ab87817732246c458c3c7d385174a | 96d5ebd4b4e9a398ade8eddac24c8d9ffe84ed59 | refs/heads/master | 2020-04-22T13:15:35.196338 | 2019-02-11T21:42:54 | 2019-02-11T21:42:54 | 170,402,828 | 1 | 0 | Apache-2.0 | 2019-02-12T22:44:08 | 2019-02-12T22:44:07 | null | UTF-8 | Python | false | false | 1,527 | py | #!/usr/bin/env python
#
# Copyright 2018 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 o... | [
"noreply@github.com"
] | DalavanCloud.noreply@github.com |
307a7e5fe4ea9b9695dcc16eb6cec4100dda4471 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/models/rating_canada_movies_type.py | 4b928313671a9ffaf8d482cba89536b9b8a8fcd8 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 687 | py | from enum import Enum
class RatingCanadaMoviesType(str, Enum):
# Default value, allow all movies content
AllAllowed = "allAllowed",
# Do not allow any movies content
AllBlocked = "allBlocked",
# The G classification is suitable for all ages
General = "general",
# The PG classification advis... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
aed8cf9e7ff30d72f7e55c3e720bcfa31e4a99ab | 4df22cee4c4ee3ce87c7db1b01e6ece950357cce | /store/migrations/0004_product_image.py | 3c355212d6f1618f62126587c90c62753494341b | [] | no_license | Vazimax/eco_website | 88c9ad190fcef63da937c1eebaa787282fa9f99a | fb1e01614e653b3e906d189a9973daee4dcba070 | refs/heads/main | 2023-06-02T02:28:06.766616 | 2021-06-20T15:41:25 | 2021-06-20T15:41:25 | 378,681,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 3.1.7 on 2021-03-16 14:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0003_auto_20210316_1452'),
]
operations = [
migrations.AddField(
model_name='product',
name='image',
... | [
"aboubakr.elhabti@gmail.com"
] | aboubakr.elhabti@gmail.com |
1b9cafcd2f0a7519651d87355ff8f633d6d3b09c | 70bcdd97318a85acc5bc3f4d47afde696fb7a33b | /jqdata/gta_tables/STK_MANAGE_CMEMBERS.py | 4f5bcd838a5a66a882ad86c3a14d75f0303611b8 | [] | no_license | Inistlwq/tulipquant-code | f78fe3c4238e98014f6d4f36735fb65a8b88f60d | 5959bfe35b6ae2e0e2a204117bda66a13893c64c | refs/heads/master | 2020-03-31T11:25:12.145593 | 2018-04-22T02:16:16 | 2018-04-22T02:16:16 | 152,175,727 | 2 | 0 | null | 2018-10-09T02:31:34 | 2018-10-09T02:31:33 | null | UTF-8 | Python | false | false | 813 | py |
# coding: utf-8
from sqlalchemy import BigInteger, Column, DateTime, Integer, Numeric, SmallInteger, String, Table, Text, text
from sqlalchemy.dialects.mysql.base import LONGBLOB
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
metadata = Base.metadata
class STK_MANAGE_CMEMBERS(Ba... | [
"wonghiu45@163.com"
] | wonghiu45@163.com |
412062a4ab1281e579feaab6c892ec97f6572996 | 0d5a5a9c25035f8e85a67a1ca63e8408f8b191f1 | /tests/fractions_tok/test_fractions_tok.py | ed37dd55db18490dd8bd7802940fc3508e3aea6b | [
"MIT"
] | permissive | aroberge/ideas | abbb8e793b2020ba08caf49dce18fbf7c7e38d3f | a53810451d9daeff986edcbb2e2f0921025a4d62 | refs/heads/master | 2023-01-29T04:42:43.005232 | 2023-01-16T00:33:29 | 2023-01-16T00:33:29 | 234,971,532 | 67 | 7 | NOASSERTION | 2023-09-11T07:25:33 | 2020-01-19T21:35:18 | Python | UTF-8 | Python | false | false | 206 | py | from ideas.examples import fractions_tok
from ideas.import_hook import remove_hook
def test_simple_addition():
hook = fractions_tok.add_hook()
from . import addition # noqa
remove_hook(hook)
| [
"andre.roberge@gmail.com"
] | andre.roberge@gmail.com |
fdf753dbdb488fd75f762ef43edd88e4c7c8ff6c | cd5f6f8da3f7864439b3952ebb0bab8de37b0006 | /codddddd/dbooktop250.py | bf57257d2655c8b9eec24aabcfcdcd4f4b859210 | [] | no_license | etmorefish/pyyyy | 7eaab3c12238fb7089bca37d3cc2639a1633243b | b1cd33025286972b7ab1fcdd87569050ae172335 | refs/heads/master | 2023-08-07T17:32:43.280563 | 2021-09-12T15:21:41 | 2021-09-12T15:21:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | import requests
from lxml import etree
import re
import random
import json
from pandas import DataFrame
dbookname = []
dquote = []
drating_nums = []
dimgurl = []
dinfo = []
dauthor = []
dtranslater = []
dpublisher = []
ddate = []
dprice = []
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) Appl... | [
"849078367@qq.com"
] | 849078367@qq.com |
fae42858e5ba84fd2e94d51e4e3cf94b77f96c58 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03504/s319540660.py | ee70313edc9a2fbc0284b356f73597811e6542df | [] | 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 | 475 | py | n, c = map(int, input().split())
data = [[0 for i in range(c+1)] for j in range(10**5+2)]
for i in range(n):
s, t, channel = map(int, input().split())
data[s][channel] += 1
data[t+1][channel] -= 1
for i in range(c+1):
for j in range(1,10**5+2):
data[j][i] += data[j-1][i]
ans = 0
for i in range(1... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2aa31687258ea7458be70cd25c6128a903c1bf41 | a281687eed49151ef612908a2a1de99667641110 | /pydlshogi/common.py | 5f3c861e2227821852b6be2d2c46cf296b887be0 | [] | no_license | TukamotoRyuzo/python-dlshogi | 3c752a2bdd5e822d1455b99aa17bf23a7bf66b9d | 9cf0e38295bd547366a0eaa2a86a2a1ae3f6db1c | refs/heads/master | 2020-03-29T15:01:21.593297 | 2018-10-05T12:30:16 | 2018-10-05T12:30:16 | 150,041,082 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,729 | py | import shogi
# 移動の定数
MOVE_DIRECTION = [
UP, UP_LEFT, UP_RIGHT, LEFT, RIGHT, DOWN, DOWN_LEFT, DOWN_RIGHT, UP2_LEFT, UP2_RIGHT,
UP_PROMOTE, UP_LEFT_PROMOTE, UP_RIGHT_PROMOTE, LEFT_PROMOTE, RIGHT_PROMOTE, DOWN_PROMOTE, DOWN_LEFT_PROMOTE, DOWN_RIGHT_PROMOTE, UP2_LEFT_PROMOTE, UP2_RIGHT_PROMOTE
] = range(20)
# 成り... | [
"tadaoyamaoka@gmail.com"
] | tadaoyamaoka@gmail.com |
0ccb41246035d5d808f86b28e334eb058bf83ea6 | c5746efe18a5406764c041d149d89c0e0564c5a5 | /2. Python高级软件开发技术/2. IO/Day10/select_server.py | 03c9998eb985ef54dbbc1ecd0898523b5670329c | [] | no_license | ShaoxiongYuan/PycharmProjects | fc7d9eeaf833d3711211cd2fafb81dd277d4e4a3 | 5111d4c0a7644c246f96e2d038c1a10b0648e4bf | refs/heads/master | 2021-12-15T05:45:42.117000 | 2021-11-23T06:45:16 | 2021-11-23T06:45:16 | 241,294,858 | 3 | 1 | null | 2021-02-20T15:29:07 | 2020-02-18T07:06:08 | Jupyter Notebook | UTF-8 | Python | false | false | 566 | py | from socket import *
from select import select
"""
可否同时监控多个客户端和一个监听套接字
有客户端链接 --》 监听套接字
客户端给我发消息 --》 对应的客户端套接字
"""
s = socket()
s.bind(('0.0.0.0', 11111))
s.listen(3)
rlist = [s]
while True:
rs, ws, xs = select(rlist, [], [])
if rs[0] == s:
c, addr = s.accept()
rlist.append(c)
else:
... | [
"ysxstevenpp123@gmail.com"
] | ysxstevenpp123@gmail.com |
313bf3ae39b9e9f6c7a1946a9c2afcc5afbe6bc3 | 808443b95bf49567ee82f1967892156cf1c6a62c | /0x03-caching/3-lru_cache.py | dda9407fd6de225cdf45c205cdce0dae8939d8ce | [] | no_license | NasserAbuchaibe/holbertonschool-web_back_end | f0d93901b193058fd70451678e1d6174537bd226 | 3a051eab09c1c50ac56c05f530c3a4b616dde5f7 | refs/heads/master | 2023-08-25T13:34:30.278442 | 2021-10-12T04:07:47 | 2021-10-12T04:07:47 | 361,899,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | #!/usr/bin/python3
"""sumary_line"""
from collections import OrderedDict
BaseCaching = __import__('base_caching').BaseCaching
class LRUCache(BaseCaching):
"""sumary_line"""
def __init__(self):
super().__init__()
self.order_dict = OrderedDict()
def put(self, key, item):
"""[sum... | [
"nasser_abuchaibe@hotmail.com"
] | nasser_abuchaibe@hotmail.com |
58f31e1f5f3d950fff3ea0f982de253cb7067037 | 9061cf35d300ba84113a9e86e897ee7594e14353 | /torcurl/listeners/ExitRelay.py | 7ac5b72bacb3afa1c1e78956ada9af7ec51509e7 | [
"MIT"
] | permissive | AsiganTheSunk/python-torcurl | cd1b98b6e58c217e57463c345d058efadafc8a3f | 9489a3b9b0e45bd0ff1f5279d8e4c8ed71a460f7 | refs/heads/master | 2021-01-01T19:45:27.984041 | 2017-09-06T18:06:19 | 2017-09-06T18:06:19 | 98,675,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | import os
import sys
class ExitRelay():
def __init__(self, exit_relay='', exit_address='', exit_fingerprint='', exit_nickname='', exit_locale=''):
self.exit_relay = exit_relay
self.exit_address = exit_address
self.exit_fingerprint = exit_fingerprint
self.exit_nickname = exit_nicknam... | [
"asiganthesunk@gmail.com"
] | asiganthesunk@gmail.com |
e9277436cb8d95bc17e2100a049df4bbaefb5ccf | 59636b143a2ab189145b17a7ea9a38de5af1f7a5 | /All/selenium_all/PC_zonghe_selenium/login/wchen_china.py | ea6eaa98ef77d49fd2d75ccb5493ca59e52f60ba | [] | no_license | woshichenya/hezi | 880a70c34cc61b6b6bcf1ccb65fa54989595fb71 | 4211ff8ef78f5d15d8fc8065247f916dfe9d305d | refs/heads/master | 2020-04-28T21:46:02.664025 | 2019-05-14T08:47:33 | 2019-05-14T08:47:33 | 175,593,966 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | # coding: utf-8
from beifen import baibaoxiang
'''必改参数'''
userid="3482"
url="https://xiao.vdongchina.com"
username="vdongshops"
pasword="1234567890"
name="陈雅小号"
shopname="微动商城"
'''web开始'''
GO= baibaoxiang.geturl
Go= baibaoxiang.geturl.llq
go= baibaoxiang.geturl(url)
Go.maximize_window()
def login_40():
try:
... | [
"bj_xiaoya@163.com"
] | bj_xiaoya@163.com |
270fe2eff217283720608fe0161226fd84fa6683 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1556.py | 3b19093f8f347119ae4a15743aebed6f0816e2c5 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,374 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=64
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
7ad6f2b692c1f596733ccaab79171a7365539d2d | 40869fdb3424a578fa2207d0df16c292e748cbca | /tests/particle/countourtest.py | bc526905e82ba8f244414befb71e020e9f618e63 | [] | no_license | will-hossack/Python | 890006f8b0242cfc848c06cc382a4672f58b3167 | 1cdd04c418a3824ee28f3cb8044732756b89ecf3 | refs/heads/master | 2021-01-18T02:08:47.176503 | 2020-05-20T19:50:00 | 2020-05-20T19:50:00 | 39,899,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(-5, 5, 0.1)
y = np.arange(-5, 5, 0.1)
xx, yy = np.meshgrid(x, y, sparse=False)
print (xx)
z = np.sin(xx**2 + yy**2) / (xx**2 + yy**2)
h = plt.contourf(x,y,z)
plt.show()
| [
"will.hossack@gmail.com"
] | will.hossack@gmail.com |
193912e483b460780e468c73ce95c94383796696 | 76800454958c36c26d828ee989f181990813955f | /libml/utils/torch.py | e7b8f3375c79c40d008d68d7df64c9d0189e68b5 | [] | no_license | JuneXia/proml | 374b27b1d1c2d983aae4fed3141a2864a7196a1b | fbe86564013e7556c30d98c702c1ba6251f21851 | refs/heads/master | 2022-12-27T23:38:16.838639 | 2020-10-11T10:05:32 | 2020-10-11T10:05:32 | 267,207,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from thop import profile
from torchvision.models import resnet50
import torch
if __name__ == '__main__':
input_size = 96
net = resnet50()
input = torch.randn(1, 3, input_size, input_size)
flops, params = profile(net, inputs=(input,))
"""
flops params
mobilenetv1-阉割版: 62100... | [
"junxstudio@sina.com"
] | junxstudio@sina.com |
5d9ecb6dc74d211dfabc219842b83dc6a77491c3 | 107ebb6d25812d12718d3f0731770318fb0eb2d2 | /study_code/Day_26/office办公自动化/03ppt.py | d8ceacacfce15b5503c07a45440c9837d3d9ed4a | [] | no_license | taoranzhishang/Python_codes_for_learning | 0c5fa25a5da80e5cbca8cf0b9b3703d488e1af6f | 23d12b8c7524f3672ff3baed94dbfed04df821b5 | refs/heads/master | 2023-03-09T12:16:02.749807 | 2021-02-26T13:04:08 | 2021-02-26T13:04:08 | 315,070,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import win32com
import win32com.client
def makeppt(name):
try:
ppt = win32com.client.Dispatch("PowerPoint.Application")
pres = ppt.Presentations.Add() # 增加一个页面
ppt.Visible = True
s1 = pres.Slides.Add(1, 1) # 增加一个页面
s1_0 = s1.Shapes[0].TextFrame.TextRange # 找到第一个文本
... | [
"taoranzhishang@hotmail.com"
] | taoranzhishang@hotmail.com |
5d6ce8260b5d68aa44922e20920da6a022edf7d2 | 97dae48fa3c613a84655c1c0b12cdc0db2c555bb | /algorithm/patternsearch/rabin_karp_search.py | 28bc60ddd56840ff1544c1c915f9011ac8535b6f | [] | no_license | klknet/geeks4geeks | 6aa5841b15be41057dc987524721ea1ea37e02ea | d7d9099af7617a4000f38c75d2c7214bed570eda | refs/heads/master | 2021-07-12T06:34:30.048691 | 2020-06-22T07:51:14 | 2020-06-22T07:51:14 | 170,288,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | """
Rabin-Karp Algorithm for Pattern Searching.
Rabin-Karp algorithm matches the hash value of the pattern with the hash value of the current substring of text, and if
the hash values match then it only starts matching individual characters. So Rabin-Karp algorithm needs to calculate hash
values for following strings.
... | [
"konglk@aliyun.com"
] | konglk@aliyun.com |
5131bd36542b9be6d832b55d68fdf4a2f924f839 | a4525c981552117dabdf5f952ced15997199da32 | /ask-smapi-model/ask_smapi_model/v1/skill/invocations/request.py | b68a06bdff6a8f0fd2265c5e1ad612bf9af0b631 | [
"Apache-2.0"
] | permissive | muskanmahajan37/alexa-apis-for-python | 29b3b8e45bb009fa56ba0a2a73ed2f50efe77f65 | 8e0c90a3031f5afd8a2e62d19b51fe392e7da1af | refs/heads/master | 2022-11-09T01:14:58.947495 | 2020-06-25T17:33:19 | 2020-06-25T17:33:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,537 | py | # coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com"
] | ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com |
dff61698ba2b6a51fa5f4fdb10753584b5c892b6 | 725ac5a0bf72829be627bf8dc82fdc51ba0f94ae | /OCR/OCR提取视频中的字幕/step1_extract_frame.py | 1b4f8ca46e3795b70fc8e7823250b1acef9e9303 | [] | no_license | shawroad/NLP_pytorch_project | fa14b6e4a156229765e1d552901d0492d8e1def3 | 1272fed2dc8fef78a9ded0f1ae1644d613a3b57b | refs/heads/master | 2023-06-25T02:37:35.503251 | 2023-06-12T10:57:11 | 2023-06-12T10:57:11 | 229,694,655 | 530 | 104 | null | 2020-12-08T09:21:47 | 2019-12-23T06:54:29 | Python | UTF-8 | Python | false | false | 1,099 | py | """
@file : step1_extract_frame.py
@author : xiaolu
@email : luxiaonlp@163.com
@time : 2022-04-01
"""
import cv2
if __name__ == '__main__':
video_path = './data/video.mp4'
# 1. 加载视频
videoCapture = cv2.VideoCapture(video_path)
# 2. 读取每一帧
success, frame = videoCapture.read()
# 3. 视频的总帧数
... | [
"luxiaonlp@163.com"
] | luxiaonlp@163.com |
43764c1f02d7a7355c15fc9aa434deb2629b0af0 | 805e304438d350c4ab320826786ba0a5390a1f91 | /ecom/migrations/0004_auto_20200510_0653.py | 9e0dc37dd0e325cbcb47cd2a68a87169530a97d3 | [] | no_license | codekoma/ecommerce | 8f4d6d5fbeb49d2c0a103db9ca885608614a2feb | 02389af6966f62965b2b37cf25a1ddd41a183179 | refs/heads/master | 2022-07-05T14:59:02.724384 | 2020-05-13T04:55:35 | 2020-05-13T04:55:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # Generated by Django 3.0.5 on 2020-05-10 06:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ecom', '0003_auto_20200510_0652'),
]
operations = [
migrations.RenameField(
model_name='category',
old_name='Subcategory_nam... | [
"chetankoranga3@gmail.com"
] | chetankoranga3@gmail.com |
dba30d6b9ba5abd6c4651c91be9e80a86581dfbf | 21a31701fd375d8e199d82bd4307f1e2adc99a0d | /cooler/sandbox/dask.py | a4381cbb34adedd9bb2b30d9c340f681d87fd1d1 | [
"BSD-3-Clause"
] | permissive | luisdiaz1997/cooler | e08e4d886a408e5d62d6b8cc528b96ac85378b9f | d6a7d19e5933d5a2a8a31a93bb13c0f06ccb075d | refs/heads/master | 2021-08-26T04:47:58.330901 | 2021-04-01T09:12:46 | 2021-04-01T09:12:46 | 223,371,015 | 0 | 0 | BSD-3-Clause | 2019-11-22T09:38:22 | 2019-11-22T09:38:21 | null | UTF-8 | Python | false | false | 5,791 | py | from __future__ import absolute_import, division, print_function
from itertools import product
from math import ceil
import numpy as np
import pandas as pd
import h5py
try:
from sparse import COO
except ImportError:
raise ImportError("The 'sparse' package is required to use dask")
from dask.base import token... | [
"nabdennur@gmail.com"
] | nabdennur@gmail.com |
0d8d996188f7052f93a02e9f9c9438c8a9728b92 | 06f5f3b11294396cf536f4467e34b50ff2d85b6f | /utils.py | e1ad1559a8d96b7b0caa4206b5f89afbe5e2a9aa | [] | no_license | sungminoh/alfred-workflow-yahoo-finance | 21ffa9a236a24f32b68094079b41c3e109a617a7 | a2cdeb04d7c7f425301d739ab5ec91d15539d715 | refs/heads/master | 2023-08-19T16:37:25.905132 | 2021-10-04T17:16:15 | 2021-10-04T17:16:15 | 394,235,719 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,233 | py | import json
import re
import sys
import unicodedata
from threading import Thread
if sys.version_info[0] == 3:
from urllib import request as urllib
else:
import urllib2 as urllib
def platten_nested_list(l):
ret = []
for v in l:
if isinstance(v, list):
if len(v) == 1:
... | [
"smoh2044@gmail.com"
] | smoh2044@gmail.com |
e6c7994c1dfa8c9d61515f12b45d2ee555cbb647 | 52ad58b5412f9124822283d168391e5e2b8fa150 | /Python基础&并发编程/day40/协程实现socket04/server.py | e27ca426bd385006f8630ff0551a7e45d5adb8da | [] | no_license | JiangHuYiXiao/PythonStudy | 69ad9795faaf24a6166ab21cae564f6461e1363e | aeebce2cacbf3757d25c8c4d24d15639e0bb8e37 | refs/heads/master | 2021-08-17T16:54:43.477502 | 2021-08-11T01:06:11 | 2021-08-11T01:06:11 | 153,078,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # -*- coding:utf-8 -*-
# @Author : 江湖一笑
# @Time : 2019/11/25 8:19
# @Software : Python_study
# @Python_verison : 3.7
from gevent import monkey;monkey.patch_all()
import socket
import gevent
import time
ss = socket.socket()
ss.bind(('127.0.0.1',8868))
ss.listen()
def task(conn):
while True:
... | [
"1163270704@qq.com"
] | 1163270704@qq.com |
bd07ba932f2c593b74b76bd69ecf93e808cd7f76 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v9/common/types/feed_common.py | ffc1465e330a3e1246e778f582777640f51e6cdc | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,400 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
27cd1e14c39f0fd33e5cb1ac72f2d2f447dd3f25 | 7101871e7a82d202483ada3053fec155ce7824a6 | /test/functional/feature_cltv.py | 130753e23f12ce78d7cea9bf1df79836160fccca | [
"MIT"
] | permissive | trumpcoinsupport/TrumpCoin | 633a9992e46cab00774d01e569f4611b7f6b4b54 | 098c62ea249a63ca1cc31d5f37c6209ccdf50e2a | refs/heads/master | 2023-01-11T20:22:03.469608 | 2021-12-31T10:04:39 | 2021-12-31T10:04:39 | 194,952,065 | 15 | 14 | MIT | 2023-01-08T02:49:09 | 2019-07-03T00:24:45 | C++ | UTF-8 | Python | false | false | 6,350 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test BIP65 (CHECKLOCKTIMEVERIFY).
Test that the CHECKLOCKTIMEVERIFY soft-fork activates at (regtest) b... | [
"sebgruby@gmail.com"
] | sebgruby@gmail.com |
1b745d1bbb887ce5f8660d831ab523e076e4ceb6 | d2fdd6b10b0467913971d1408a9a4053f0be9ffb | /datahub/search/large_investor_profile/test/test_models.py | d4953952d08e4179f98eef8e585336d1e7191681 | [] | no_license | jakub-kozlowski/data-hub-leeloo | fc5ecebb5e4d885c824fc7c85acad8837fcc5c76 | 7f033fcbcfb2f7c1c0e10bec51620742d3d929df | refs/heads/master | 2020-05-18T13:29:14.145251 | 2019-04-30T12:12:50 | 2019-04-30T12:12:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | import pytest
from datahub.investment.investor_profile.test.factories import LargeInvestorProfileFactory
from datahub.search.large_investor_profile.models import (
LargeInvestorProfile as ESLargeInvestorProfile,
)
pytestmark = pytest.mark.django_db
class TestLargeInvestorProfileElasticModel:
"""Test for the... | [
"marcus.patino-pan@digital.trade.gov.uk"
] | marcus.patino-pan@digital.trade.gov.uk |
fd50fd712f4c845da4eaaece791b31bc9966394d | 811dac01062c3130631d81d3c092f18916ac2e27 | /Arch.Magos/function.py | a0760453a315811aa3cc733e906ac3467af41ea8 | [] | no_license | KhanhNguyen1308/Arch.Magos | 5409df640c565aeeccb8aeb7a0e17ec7aab890bc | 1a6e39ff1bf0541c114585b324db57daf559c5ee | refs/heads/main | 2023-08-01T03:42:50.483045 | 2021-09-18T06:38:28 | 2021-09-18T06:38:28 | 395,691,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | import cv2
import nltk
import json
import random
import pickle
import numpy as np
from nltk.stem import WordNetLemmatizer
from tensorflow.keras.models import load_model
nltk.download('punkt')
nltk.download('wordnet')
lemmatizer = WordNetLemmatizer()
intents = json.loads(open("cfg/Arch_Master.json").read())
words = pick... | [
"khanhnguyenduy1308@gmail.com"
] | khanhnguyenduy1308@gmail.com |
794166a81ae42cd650051ba3ff7547305dadc54a | e1715a1c32da9d4dd137863530c06a1003ea0c53 | /main/face_extractor.py | 5c823429647d943f214e877da2a6cb54e7112061 | [] | no_license | devendrakushwah/automatic-attendance-using-face-recognition | e6a123074998e7c3c8da7d448598cedaf7c68cbd | a8df1677459ca0181b88612b99dc592004cffd17 | refs/heads/master | 2022-12-01T09:37:44.935627 | 2019-12-25T11:46:35 | 2019-12-25T11:46:35 | 229,424,144 | 1 | 0 | null | 2022-11-22T04:38:07 | 2019-12-21T12:27:00 | HTML | UTF-8 | Python | false | false | 534 | py | from PIL import Image
import face_recognition
import os
import shutil
def face_extract():
image = face_recognition.load_image_file("main/camera/camera_snap.jpg")
face_locations = face_recognition.face_locations(image)
cam_image = Image.open('main/camera/camera_snap.jpg')
index = 1
shutil.rmtree('main/extracted_... | [
"idevendra08@gmail.com"
] | idevendra08@gmail.com |
2f3efb745a359e5078fdac3976a999beca17fbe0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_321/ch33_2020_07_09_02_29_49_919925.py | 487e6593f79a0b4f48dc522dae9ef69c03c23994 | [] | 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 | 400 | py | def primos_entre (a,b):
i = 3
n = a
contagem = 0
while n <= b:
if n == 2:
contagem += 1
else:
while (i<n):
print("oi")
if (n%i==0) and i == n:
contagem += 1
break
else:
... | [
"you@example.com"
] | you@example.com |
b6240a00f9ac58abda8d451f185a183dde761bae | 97b3ab895aba214ee73837f0ea2838013d42ef8a | /_113-Mersenne_primes.py | 63e06f6112a4f9a4927de9086e08886e9dcd238c | [] | no_license | abhisheknm99/APS-2020 | 97b0f0ed8cf53c8e9686727ccac43990728f22d8 | 9ac83a9551533e47ff85cc9da5cc164b4670d6f8 | refs/heads/master | 2020-12-21T04:56:41.001669 | 2020-04-28T19:06:21 | 2020-04-28T19:06:21 | 236,313,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | #prints mersenne numbers less than n
#mersenne no->2^p-1 is prime
def SieveOfEratosthenes(n, prime):
for i in range(0,n+1) :
prime[i]=True
p=2
while(p*p<=n):
if (prime[p]==True) :
for i in range(p*2,n+1,p):
prime[i] = False
p += 1
def mersennePrimes(n) :
prime=[0]*(n+1)
SieveOfEratosthenes(n, ... | [
"abhisheknm99@gmail.com"
] | abhisheknm99@gmail.com |
9a457ebad3b43ac142d608227fb74525780d87e4 | 5e30d97e95024bbea0729f80767d07849f2cedd7 | /esphomeyaml/components/pcf8574.py | 82be8712925ebba74d0780c52cc556fa5fb96643 | [] | no_license | Landrash/esphomeyaml | 42634977d96d38a0ef207df499fc2b2dd62a419a | eec163644d7c0a9cac9483458a1e7a70e1409582 | refs/heads/master | 2020-03-16T23:15:56.178162 | 2018-05-06T16:23:23 | 2018-05-06T16:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | import voluptuous as vol
import esphomeyaml.config_validation as cv
from esphomeyaml.const import CONF_ADDRESS, CONF_ID, CONF_PCF8575
from esphomeyaml.helpers import App, Pvariable
DEPENDENCIES = ['i2c']
PCF8574_SCHEMA = vol.Schema({
vol.Required(CONF_ID): cv.register_variable_id,
vol.Optional(CONF_ADDRESS, ... | [
"otto@otto-winter.com"
] | otto@otto-winter.com |
d6c9e5dd20d9f1f6005612e149447359510881b4 | f67653e2f610850b1d34ad5f12c5fbca83cca1a0 | /test_geostore_routing/wsgi.py | cf96d1c0052c842733e9e68b4a940a5f847df1fb | [] | no_license | Terralego/django-geostore-routing | 2acbc9ef8d82a00aa605ef63ad53e8e8b269f7f2 | 0a8723748e9f508f4f3b133e8935416805a3e786 | refs/heads/master | 2023-03-23T22:17:52.336369 | 2021-03-12T17:48:24 | 2021-03-12T17:48:24 | 307,410,471 | 3 | 0 | null | 2021-03-12T17:40:48 | 2020-10-26T15:03:28 | Python | UTF-8 | Python | false | false | 419 | py | """
WSGI config for test_geostore_routing project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault... | [
"j.e.castagnede@gmail.com"
] | j.e.castagnede@gmail.com |
a8561ef0322896554fa88a71e84120f0c5efaba7 | 4f0fd729340ba67f4f560884276cf25934be1919 | /python/moneysocket/core/message/notification/rendezvous.py | 1fc939a78180a705c5ffd18baf2cfe9cd2266653 | [
"MIT"
] | permissive | jarret/prototype | d85e524b73126264be83e028bbfa8369e9f051a0 | 74124b8ea74061a97f092c3f973907b42b2de8e8 | refs/heads/master | 2023-01-19T07:54:34.145166 | 2020-08-07T02:55:11 | 2020-08-07T02:55:11 | 286,554,581 | 0 | 0 | MIT | 2020-08-10T18:49:57 | 2020-08-10T18:49:56 | null | UTF-8 | Python | false | false | 1,430 | py | # Copyright (c) 2020 Jarret Dyrbye
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php
import string
import json
from moneysocket.core.message.notification.notification import (
MoneysocketNotification)
class NotifyRendezvous(Mon... | [
"jarret.dyrbye@gmail.com"
] | jarret.dyrbye@gmail.com |
25e8561b0f1dcc12f21d6ce7cb8c8089f6fd34dd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_targeted.py | 1da6a9465b482525fd9a07238d90cf809d39786f | [
"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 | 240 | py |
from xai.brain.wordbase.verbs._target import _TARGET
#calss header
class _TARGETED(_TARGET, ):
def __init__(self,):
_TARGET.__init__(self)
self.name = "TARGETED"
self.specie = 'verbs'
self.basic = "target"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9864965d570d80667837c7d2317e398040d2d9ac | cf4104a12ac08371ecca64f6a8bc6aeb6985c004 | /project/system.py | 4e1faf9541a264c5e36a9f85aa91cb1071f34df0 | [] | no_license | RuzhaK/ExamPreparationOOP16082020 | ddb952e98946110563530c36cf7aff4146022b9b | 0cbf5d7b3cdb7bf715ac9718469d6723c25b4d4e | refs/heads/master | 2023-06-10T04:27:12.031812 | 2021-07-06T07:22:08 | 2021-07-06T07:22:08 | 383,189,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,626 | py | from project.hardware.hardware import Hardware
from project.hardware.heavy_hardware import HeavyHardware
from project.hardware.power_hardware import PowerHardware
from project.software.express_software import ExpressSoftware
from project.software.light_software import LightSoftware
from typing import List
from project... | [
"rkaraatanasova@gmail.com"
] | rkaraatanasova@gmail.com |
e472c3585a442f29cad954c7dde05fb03f6e0fc5 | 6e7950a06c03a2dd62edea30e3384eaa5871bc13 | /multiple_returns/main.py | 3bffbba57bfdb4070d3f51722fbd8fa22459ede6 | [] | no_license | roblivesinottawa/Python3-Programs-Scripts | 2290305ef82d5736b9b8cc5a72690216e2fea35d | b9d109f1f666af1f1891ebe802ea1bc5ecc583b9 | refs/heads/main | 2023-05-29T03:19:47.414515 | 2021-06-23T00:14:41 | 2021-06-23T00:14:41 | 374,818,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from typing import AsyncGenerator
# def profile():
# global name
# global age
# name = "Rob"
# age = 35
# profile()
# print(name)
# print(age)
def profile():
name = "Rob"
age = 35
return name, age
profile_name, profile_age = profile()
print(profile_name)
print(profile_age) | [
"tech.rob@icloud.com"
] | tech.rob@icloud.com |
2f760cb685233af26c0ba04dc072f313aa7a0181 | 0fc9a7b97813c6399226f74982b1a5af00fa22c8 | /archive/test_reweight.py | 46abe40b90d54d0ceb7d340ebda894f5c6081490 | [] | no_license | donboyd5/weighting | cf86ff9805624ab7cf1eaa0884351f362af4dda0 | bccdd6741595373775960ac61f9dcc9dd372abae | refs/heads/master | 2023-09-06T00:18:41.736845 | 2021-06-13T10:55:31 | 2021-06-13T10:55:31 | 290,885,995 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,920 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 7 07:54:35 2021
@author: donboyd
"""
# %% imports
# for checking:
# import sys; print(sys.executable)
# print(sys.path)
from __future__ import print_function, unicode_literals
# import importlib
import numpy as np
import scipy
from scipy.optimize... | [
"donboyd5@gmail.com"
] | donboyd5@gmail.com |
ca4d4a526f7be909048ba7e7b4bcd59c79d3ab40 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2621/60705/240776.py | 4ccb441e2d80914a2894d426a25159576c74695e | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | a = list(map(int, input().split(",")))
m = a[0]
for i in range(0, len(a)-1):
for j in range(i+1, len(a)):
total = 0
for k in range(i, j):
total += a[k]
if total > m:
m = total
print(m) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2ebaef22c2a3f141c5c4e3328727bfab8e9b2e37 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/3347.py | 0870c72a6fb81071af0180aded42bedea73dc417 | [] | 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 | 389 | py | for i,l in enumerate(open("downloads/A-large.in").readlines()[1:]):
num_clapping = 0
num_invited = 0
for min,num in enumerate(l.split()[1]):
if num_clapping < min:
num_invited += (min - num_clapping)
num_clapping += (int(num) + min - num_clapping)
else:
nu... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
708ac1015d6197e093eb18328b766bc2c19976bd | af6be0921c461143424fc75ed5a55b25ad792952 | /CPANJMIS-master/CPANJMIS-master/project/apps/task/migrations/0013_auto_20190605_1011.py | 2d561fca9eaffbbd3b68fc93996e6c73977b96fa | [] | no_license | bobolinbo/bobolearning | c90b4dccdfcec302df9f166a04a75d585e4c6a0b | ac520d9311b15e29c055edb1eb7b3b800d5051ac | refs/heads/master | 2020-08-13T07:24:57.044426 | 2019-10-14T04:11:46 | 2019-10-14T04:11:46 | 214,931,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | # Generated by Django 2.2 on 2019-06-05 10:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('task', '0012_auto_20190605_0938'),
]
operations = [
migrations.AlterField(
model_na... | [
"1539019002@qq.com"
] | 1539019002@qq.com |
7a55ff623fe3d8d7ef154190ec55a8e4290a31e3 | 7c84cde29ea30614b137a1053fea44cbed171779 | /Mapping/web_map.py | 9430f3d32ca71b3a2a0c5ebc70638de8877d6db4 | [
"MIT"
] | permissive | lennykioko/Awesome_Python | 27f01b7605e7d820ae84288bbe745494cf7fd852 | b48d5a3663570dc96d407db1d6b09099cfa98831 | refs/heads/master | 2021-04-26T23:07:28.348471 | 2018-03-05T15:22:04 | 2018-03-05T15:22:04 | 123,935,040 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | import folium
import pandas
volcanoes_file = "volcanoes.txt"
world_file = "world.json"
data = pandas.read_csv(volcanoes_file)
lat = list(data["LAT"])
lon = list(data["LON"])
elev = list(data["ELEV"])
def color_producer(elevation):
if elevation < 1000:
return 'green'
elif 1000 <= elevation < 3000:
... | [
"lennykmutua@gmail.com"
] | lennykmutua@gmail.com |
4d83a5f658fc71b95b1ac99a25da78cf7b3004bf | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/fable/command_line/read.py | 2b63d9550609472601d89f6e372cfb1a0fe40755 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 2,667 | py | from __future__ import absolute_import, division, print_function
import optparse
import sys
def process_each(process, file_names, report_success=False):
import traceback
n_fail = 0
n_succ = 0
for file_name in file_names:
try:
process(file_names=[file_name])
except Exception:
n_fail += 1
... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
dfa5623820e9b34992423ba12f4d18f1b1d93316 | f3b233e5053e28fa95c549017bd75a30456eb50c | /tyk2_input/43/43-55_wat_20Abox/set_1ns_equi_m.py | 16a56ed6880d8dc5338e7e4e41bbef04afb51853 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | import os
dir = '/mnt/scratch/songlin3/run/tyk2/L43/wat_20Abox/ti_one-step/43_55/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_m.in'
temp_pbs = filesdir + 'temp_1ns_equi_m.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
5202657f23742058cd36993d8a290b33e88ab3ee | 51885da54b320351bfea42c7dd629f41985454cd | /abc142/d.py | 82d7dc3beff88d0ac37e5da28d56708d01703dee | [] | no_license | mskt4440/AtCoder | dd266247205faeda468f911bff279a792eef5113 | f22702e3932e129a13f0683e91e5cc1a0a99c8d5 | refs/heads/master | 2021-12-15T10:21:31.036601 | 2021-12-14T08:19:11 | 2021-12-14T08:19:11 | 185,161,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | #
# abc142 d
#
from math import factorial
import sys
from io import StringIO
import unittest
import math
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.st... | [
"mskt4440@gmail.com"
] | mskt4440@gmail.com |
47446ba6164838d8d1bfbe3be3095ae542d7799d | 8bdce915174678a90a6be811ea91b50930b9d26a | /MachineLearning/Ch05/logRegres.py | 7d8a9b1847a91dd160686bec7cb0f0ba78e44cb7 | [] | no_license | CharlesBird/Resources | daefffef8fb3735e656cd0a3bf400d5e2ff85cc0 | 517ac7b7992a686fa5370b6fda8b62663735853c | refs/heads/master | 2022-12-15T02:54:56.530940 | 2020-02-29T14:33:43 | 2020-02-29T14:33:43 | 109,668,108 | 1 | 1 | null | 2022-12-08T05:04:25 | 2017-11-06T08:34:30 | Jupyter Notebook | UTF-8 | Python | false | false | 4,292 | py | # -*- coding: utf-8 -*-
from numpy import *
import matplotlib.pyplot as plt
def loadDataSet():
dataMat = []
labelMat = []
fr = open('testSet.txt')
for line in fr.readlines():
lineArr = line.strip().split("\t")
dataMat.append([1.0, float(lineArr[0]), float(lineArr[1])])
labelMat.... | [
"1016784928@qq.com"
] | 1016784928@qq.com |
ed318a9e868ea3960c75efc699986defa5e77610 | a15db1c900c4c5769005c977d604fef1ddecd642 | /model/basic_layer/GeneralAttentionLayer.py | b158760dc98b7bb8bf8805ccb69b32571419d229 | [] | no_license | MasterFishfish/Cabasc | f64f8066aba16c2fb2c68011e51f401b7d2ebd82 | 36363053a2b40f1367f2d0793dee6d6dd6131e36 | refs/heads/master | 2020-04-07T22:47:22.843289 | 2018-12-27T13:06:53 | 2018-12-27T13:06:53 | 158,785,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,500 | py | import tensorflow as tf
from util.SoftmaxMask import softmax_mask
from LinearLayer_3dim import LinearLayer_3dim
from util.SoftmaxMask import normalizer
class GenAttentionLayer:
'''
the dot attention basic_layer.
'''
# watt.shape = [2 * edim, 1]
# batt.shape = [1]
def __init__(self, edim,stddev... | [
"tusimplefishfish@foxmail.com"
] | tusimplefishfish@foxmail.com |
4040e1965ba8edfc93c6031c8ab090e3c087a4e2 | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Data Structures/Hash Tables/Basics of Hash Tables/URL shortener/solution.py | 40c843e6ec220e371c5e1a5bdf8f5641a1ee8465 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 774 | py | def solve(N, Query):
# Write your code here
histories = {}
visited = set()
for time, url, key, user_id in Query:
time = int(time)
lk = len(key)
if key in visited or lk < 2 or lk > 12:
yield 'NO'
continue
if user_id in histories and time - histories... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
57d1238061403eff842b23504c951fea348a0307 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03162/s328006269.py | f127e072c4e68f76749fb892795d7a12302d169f | [] | 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 | 251 | py | N = int(input())
H = [[0,0,0] for i in range(N)]
H[0] = list(map(int, input().split()))
for i in range(1, N):
abc = list(map(int, input().split()))
for j in range(3):
H[i][j] = max(H[i-1][j-1],H[i-1][(j+1)%3])+abc[j]
print(max(H[-1])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
85f4dd9289e264989e7881fffd2e6b619a84d45b | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/TSZLMM_bak/YW_GPMM_SHXJ_022.py | 3d5234fa574a81e456a2d197f193481bbb2e0fc0 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,276 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
dba6a61e09c22d32422f304ba3939b5c3ebb658e | 5c7da7dabdc076ad7113ccd20561a8bbf5f9a70e | /users/forms.py | ea2831dce11d8b7d8b0d129ec06b8034d6ccfe9b | [] | no_license | aqcloudacio/cloudaciofeez | 2499fb5fc5334fa871daab2abea6c34bfa8c7667 | 8399560ece9aa10a6d6801f42c027dca26a65936 | refs/heads/master | 2023-02-27T22:36:20.501159 | 2021-02-11T00:03:46 | 2021-02-11T00:03:46 | 337,887,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.forms import UserCreationForm
User = get_user_model()
class UserCreateForm(UserCreationForm):
class Meta:
fields = ('email', 'password1','password2')
model = User
def __init__(self,*args, **kwargs):
super().__i... | [
"alejandro.quintero@clouxter.com"
] | alejandro.quintero@clouxter.com |
4425efa09ae778f7d4959670ebf763dee6692af7 | af3241e3cf76ea4b5d81788a8e710d874916cc48 | /test_stacbalance_par.py | ac7ca8140c477253c8f38d75a96c57a06f465f13 | [] | no_license | samims/data_structure | 67b9a4b9902b6aba952911873dffb994bdf180cb | 47a3d05550c1d3eaa47052b0c0f81cbadbde923d | refs/heads/master | 2020-05-16T05:54:51.890698 | 2019-05-02T11:22:19 | 2019-05-02T11:22:19 | 182,830,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | import unittest
from stack import Stack
from stack_balance_par import is_balanced
class TestStack(unittest.TestCase):
def setUp(self):
self.stack = Stack()
self.stack.items = ['A', 'B', 'C']
def test_get_items(self):
self.assertEqual(self.stack.get_stack(), ['A', 'B', 'C'])
def ... | [
"sam91v@gmail.com"
] | sam91v@gmail.com |
1841033f03a26c9bb9db646d99c389632fa2d15b | 0abab0ddef22eca97edcd195073455052266a380 | /RL Basic/01. OpenAI Basic/06_gym_monitor.py | d6cc13f90a096cfb54fe769db4fb8ce6ee14ba6e | [] | no_license | 321HG/study_git | 9eb0e05948f038d95650113bac406cb92d499dab | 7a3449a8c2a17376cd3c6e731854c052daefcc57 | refs/heads/main | 2023-06-07T06:07:21.141488 | 2021-07-05T16:46:21 | 2021-07-05T16:46:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | # Monitor
# Another class that you should be aware of is Monitor.
# It is implemented like Wrapper and can write information about your agent's performance in a file, with an optional video recording of your agent in action.
# Some time ago, it was possible to upload the result of the Monitor class' recording to th... | [
"jk04059@naver.com"
] | jk04059@naver.com |
fc8f13e20ecd1eac70a2abf9cc7cfb682052a8c2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02813/s778039952.py | 4bbe92de6bba4aa46f34f5be5798c776f1204954 | [] | 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 | 421 | py | import itertools
n = int(input())
p = tuple(map(int,input().split()))
q = tuple(map(int,input().split()))
seq = []
for i in range(1,n+1):
seq.append(i)
pat = list(itertools.permutations(seq))
ans = 0
cnt = 0
for i in range(len(pat)):
if pat[i]==p or pat[i]==q:
if p==q:
print(0)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2ba7710eee6fe64e9d06f0fdf9e13a648ccae424 | f07b0142e37afe0bf8ed4d56399a0a49f5b1801b | /lino_xl/lib/cv/fixtures/std.py | 2ad6beb87a30e725553818e8ec12529ff5a22a95 | [
"BSD-2-Clause"
] | permissive | khchine5/xl | af70fb21e4caeb05ff62e9618113c278d71a75ed | b1634937a9ce87af1e948eb712b934b11f221d9d | refs/heads/master | 2021-01-20T22:51:01.193260 | 2018-08-22T07:47:43 | 2018-08-22T07:47:43 | 52,145,840 | 1 | 0 | BSD-2-Clause | 2018-08-19T12:29:06 | 2016-02-20T09:21:19 | Python | UTF-8 | Python | false | false | 5,654 | py | # -*- coding: UTF-8 -*-
# Copyright 2008-2014 Luc Saffre
#
# License: BSD (see file COPYING for details)
from __future__ import unicode_literals
from lino.utils.instantiator import Instantiator
from django.utils.translation import ugettext_lazy as _
from lino.api import dd
def objects():
"""
Educatio... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
47b9ea44194422a21a3fb558f90d612e2b9c4c3c | 94d06fe53da7d240a0f4b2b77121575a384f4b47 | /powerdyn | ba0a5ef6480d271e3ae3df7a84e9e353d3d89aab | [] | no_license | staticfloat/powerdyn_docker | c9b8820a64b0b258253a0031680c600deb74353b | 0fb40a7a25f27363b3ea5f7ef3bdb34e52752049 | refs/heads/master | 2021-09-08T03:33:03.853262 | 2018-03-06T20:52:20 | 2018-03-06T20:52:20 | 115,895,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,577 | #!/usr/bin/env python
from optparse import OptionParser
from ConfigParser import SafeConfigParser
import os
import sys
import re
def adapt_query_for_sqlite3(query):
# WARNING: This is a hack to convert the usual pyformat strings
# to named ones used by sqlite3
return query.replace('%(', ':').replace(')s'... | [
"staticfloat@gmail.com"
] | staticfloat@gmail.com | |
db054c9d74ce73c1302bea86760b2af2ba7f2c2b | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/matrix/51879395d8a34df092eca9496c0ddfd5.py | 6e192cc92aa51fc30f5a41bfb65f6546ac6e7633 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 621 | py | class Matrix(object):
def __init__(self, matrixString):
self.rows = []
self.columns = []
lines = matrixString.split('\n')
i = 0
for line in lines:
j = 0
line = line.split(' ')
self.rows.append([])
for number in line:... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
a4b6b6c8f6c3b49403bb24bb337e44b6711a0719 | 451206c51e50ac6046c528600f3f0e8cb109caec | /problems/money-format/money-format-answer.py | ee785ac4a29380e2eeb3f5d22cd6c1d85f56c959 | [
"MIT"
] | permissive | Sumitrock20/interview-with-python | 0a747f250b0ef22c1ceb8ac8efa04cceedc51bb2 | b5ce31c8bdca754a76762d2734dcf494a302e487 | refs/heads/master | 2021-04-06T13:07:20.594934 | 2018-03-06T09:02:00 | 2018-03-06T09:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | ##$$## ---------- TAGS ----------- ##$$##
##$$## money,format
##$$## --------- ENDTAGS --------- ##$$##
###### - Write your answer below - ######
| [
"jonathon.bel.melbourne@gmail.com"
] | jonathon.bel.melbourne@gmail.com |
6d84d2aac265250302f57857d2286326cd8b5be3 | 3a0336f8ba841f6076f412dfb6de1af9ac946efd | /azure/multiapi/storage/v2017_04_17/queue/_error.py | 5e12d80d69787b1119aa5492de7f7c1d61cc3ea8 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | Azure/azure-multiapi-storage-python | 4291579aa1f47d4b74557267558bd5029e01e12c | 650ef33ad683a5f2aba590c4553f9871bfa0dd93 | refs/heads/master | 2023-09-03T22:27:16.816305 | 2023-06-01T07:37:02 | 2023-06-01T07:37:02 | 94,827,841 | 4 | 17 | MIT | 2023-06-01T07:37:03 | 2017-06-19T22:58:21 | Python | UTF-8 | Python | false | false | 1,449 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft. 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.apa... | [
"troy.dai@outlook.com"
] | troy.dai@outlook.com |
5ff41a05706d1d2ebd1627b2964213c1a47cc4fe | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/securityinsights/v20210301preview/get_msti_data_connector.py | a60f34a4db105a7b5d5d248e0146809b0fb57621 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,848 | 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... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
cfd78610b2b7c74574a963743690f10dc44c35ce | e9b084dc1502e88345c2c031df96b21677dfc28f | /lend/settings.py | 174c6a08dc8d7444d936c8897d8c4e03d92f3cb0 | [] | no_license | Jordan-Ak/Rental_Sun | 38ba7601d75213ffe29f29885b66dedd53ad0f78 | 20f9b87a9b661f2729cf75878293873ee465e82a | refs/heads/master | 2023-03-28T01:57:08.607629 | 2021-03-23T07:15:45 | 2021-03-23T07:15:45 | 349,691,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py | """
Django settings for lend project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib im... | [
"JosiahDavid98@gmail.com"
] | JosiahDavid98@gmail.com |
be94b54fa75a546bbba65243d3ae9edaabbfd8bc | c384046bc0e7d49f46feaf0c6722523f81b41214 | /code/Day_2/Zadanie_2.py | 30458e3e8851746083d9ebde88e7534e17ffd810 | [] | no_license | Edyta2801/Python-kurs-infoshareacademy | b0c8c9e2de4e980cc1b10aed80a156ac83fdd4aa | 41bdbbad8a15b16220a82fb06c7bd353792fe6d7 | refs/heads/master | 2020-12-15T18:38:21.157330 | 2020-01-20T22:48:28 | 2020-01-20T22:48:28 | 235,212,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | """
Tytuł:
ord oraz chr
Zadanie:
Zapisać swoje imię i nazwisko w wartościach numerycznych ASCII oraz za pomocą liter
przy użyciu funkcji ord oraz chr
Podpowiedzi:
https://pl.wikipedia.org/wiki/ASCII
""" | [
"edyta.szarowska@interia.pl"
] | edyta.szarowska@interia.pl |
c652937371ebdd29a9bdd1ef333580a6269b13a0 | 876c4a2ea11353246bb9b98cc8dea5efe2e99240 | /setup.py | 93b25c81463e468b6a8b1e6702d896d3bd7e1a8f | [] | no_license | sflis/CHECRunPage | 342e5d01bd43b541763dbf7ccd3c8a98da0ff852 | 140762849eca2d7a8012e1bce050efcc66dcc0d0 | refs/heads/master | 2020-07-30T17:16:29.743140 | 2019-09-26T13:59:22 | 2019-09-26T13:59:22 | 195,800,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | from setuptools import setup, find_packages
import os
import sys
install_requires = [
"zmq",
"numpy",
"pyyaml",
"click",
"jinja2",
"google-api-python-client",
"google-auth-httplib2",
"google-auth-oauthlib",
"Sphinx==1.6.7",
"lark-parser",
]
#
from shutil import copyfile, rmtre... | [
"samuel.d.flis@gmail.com"
] | samuel.d.flis@gmail.com |
9a582ba83830a050b00b1f0029b26a60e038dc17 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/knxchi001/question3.py | f5a66cc30fb5013ffdd876ffe56158989f04a2fa | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | #Assignment 2
#Queston 3
import math
PI= 2
denominator= math.sqrt(2)
while denominator <2:
PI= PI * 2/denominator
denominator= math.sqrt(2+denominator)
print("Approximation of pi:", round(PI,3))
radius= eval(input("Enter the radius: \n"))
area= PI*radius**2
print("Area:", round(area... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
c3e98137a8aecb9c5bd974566a35bec0d7ff4caf | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/dataproc/operations/get_iam_policy.py | c32139cb2c6bf25250fa6263c0afad562bc2331e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 1,886 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
1b53db07f135719fcf867738e2a584ed7ec87d5b | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Gui/Tour/simpleedit.py | 24f757478b068f09adb3a57691d32057381e53ab | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | """
add common edit tools to ScrolledText by inheritance;
composition (embedding) would work just as well here;
this is not robust!--see PyEdit for a feature superset;
"""
from tkinter import *
from tkinter.simpledialog import askstring
from tkinter.filedialog import asksaveasfilename
from quitter import Quitte... | [
"zui"
] | zui |
5cfbdd5a5563593d7715eda1b0f33959f7199945 | dbd2a83335b7adbc79411b4b8011f3ac12452e23 | /tests/helpers/information/test_get_repository.py | 5b20b2f48873168019f426f52bc105deeb543650 | [
"MIT"
] | permissive | ludeeus/integration | 774a55992b0b9e6b2024ce6d276c3cee0cbd3b9d | 05c05291de5c938ce122f1d48c542938bceef83e | refs/heads/master | 2022-11-11T12:17:14.494404 | 2020-04-23T19:30:51 | 2020-04-23T19:30:51 | 258,275,066 | 1 | 0 | MIT | 2020-04-23T17:07:38 | 2020-04-23T17:07:36 | null | UTF-8 | Python | false | false | 1,557 | py | """Helpers: Information: get_repository."""
# pylint: disable=missing-docstring
import json
import aiohttp
import pytest
from custom_components.hacs.hacsbase.exceptions import HacsException
from custom_components.hacs.helpers.information import get_repository
from tests.common import TOKEN
from tests.sample_data import... | [
"joasoe@gmail.com"
] | joasoe@gmail.com |
076b057d3cc29d94eeb5e38740c93c8e9a4ab4d3 | f200850c7c68cf7d74b6af48b84f5056d1c0712a | /tests/env/packages/env_test_partd.py | 25613eb4836a6dd1537998179d6375f710c19ac7 | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | Yannick2408/foxbms-2 | 6ffd5a76ff16f058a65fc58b0ff0d672250b7556 | 62288b333fe6da52deae91f74fb15e71060ac99c | refs/heads/master | 2023-04-05T14:33:57.504096 | 2021-04-01T20:28:16 | 2021-04-01T20:41:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,700 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @copyright © 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der
# angewandten Forschung e.V. All rights reserved.
#
# BSD 3-Clause License
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the fol... | [
"info@foxbms.org"
] | info@foxbms.org |
363b53cef59d62d1d89566aa3c0216edd97f273e | e2860eb874db045fb8d0279566a935af907e5bdf | /ml/ml19_5_wine.py | e2b01849dc6bc7b5bb1d4607083a2f2255765595 | [] | no_license | MinseokCHAE/Bitcamp2_new | dda7990907cb136c2e709a345eec634dfdb6ac02 | 849adb5a330b621f1c681f0b5e92005d1281a44d | refs/heads/main | 2023-08-31T03:28:18.068561 | 2021-10-05T00:48:52 | 2021-10-05T00:48:52 | 390,228,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | from xgboost import XGBClassifier
from sklearn.datasets import load_wine
from sklearn.model_selection import train_test_split
from sklearn.metrics import r2_score
from sklearn.preprocessing import MinMaxScaler, StandardScaler
import numpy as np
datasets = load_wine()
x = datasets['data']
y = datasets['target']
scaler... | [
"minseok6739@naver.com"
] | minseok6739@naver.com |
5b4ff708f9cf4cca8e96c96917e94a990107cf9d | 2aa47f47fb81798afdf41437844cbbea8e9de66c | /05mongo/acct_manage_svr.py | 380d68bb6d3805b1e921a96fb5a364cfbdc27266 | [] | no_license | nykh2010/python_note | 83f2eb8979f2fb25b4845faa313dbd6b90b36f40 | 5e7877c9f7bf29969072f05b98277ef3ba090969 | refs/heads/master | 2020-04-27T23:10:16.578094 | 2019-03-23T02:43:14 | 2019-03-23T02:43:14 | 174,765,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,025 | py | # 账户查询客户端
from socket import *
import pymongo
#修改地址
db_host = "127.0.0.1"
db_port = 27017
db_name = "test"
svr_host = "0.0.0.0"
svr_port = 9999
db_conn = None # 数据连接对象
def conn_database():
global db_conn
db_conn = pymongo.MongoClient(db_host, db_port)
if not db_conn:
print("连接数据库失败")
... | [
"xulingfeng@boe.com.cn"
] | xulingfeng@boe.com.cn |
7ddf49019b41e374837ce7bdec8ec4d57c28eb05 | 1a220abd21c56728aa3368534506bfc9ced8ad46 | /3.beakjoon/jungle/practice/수학/1978_소수찾기.py | d0711992bcc73a209541be0c7a4025cbf30a0959 | [] | no_license | JeonJe/Algorithm | 0ff0cbf47900e7877be077e1ffeee0c1cd50639a | 6f8da6dbeef350f71b7c297502a37f87eb7d0823 | refs/heads/main | 2023-08-23T11:08:17.781953 | 2023-08-23T08:31:41 | 2023-08-23T08:31:41 | 197,085,186 | 0 | 0 | null | 2023-02-21T03:26:41 | 2019-07-15T23:22:55 | Python | UTF-8 | Python | false | false | 341 | py | n = int(input())
info = list(map(int,input().split()))
primes = [True] * (1001)
def eratos():
primes[0], primes[1] = False, False
for i in range(2, int(len(primes) ** (1/2))):
for j in range(2*i, len(primes), i):
primes[j] = False
eratos()
cnt = 0
for p in info:
if primes[p]:
... | [
"whssodi@gmail.com"
] | whssodi@gmail.com |
540ddea26b3bd9ca139e975693969eca0bd0f3c1 | 89e1b168114b78dd68495292cf7f1eac1267f05d | /simple/simple.py | 2b3ea19e9e1eeef69c38f2ef3996451e7522a1a0 | [
"Apache-2.0"
] | permissive | iorodeo/flask_matplotlib_tests | 5ab76fd8ab3158897b0081c4382f37b67094237a | 7d46afb864b4f6b04871a5cd966a2ebef19add00 | refs/heads/master | 2022-11-04T23:10:31.643191 | 2012-04-24T00:40:53 | 2012-04-24T00:40:53 | 273,790,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,516 | py | import flask
import pylab
import os
import os.path
import tempfile
import random
app = flask.Flask(__name__)
@app.route('/',methods=['GET','POST'])
def index():
if flask.request.method == 'POST':
if 'plot_button' in flask.request.form:
x_data_raw = str(flask.request.form['x_data'])
... | [
"will@iorodeo.com"
] | will@iorodeo.com |
dd1e99e9b8e5649805ef68ed03d2f745d0ad9ff1 | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/gevent/tests/test__issue112.py | df2be0c1b6b551c47c4edc6e936aa75ff65fff90 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 338 | py | import sys
import unittest
import threading
import gevent
import gevent.monkey
gevent.monkey.patch_all()
@unittest.skipUnless(
sys.version_info[0] == 2,
"Only on Python 2"
)
class Test(unittest.TestCase):
def test(self):
self.assertIs(threading._sleep, gevent.sleep)
if __name__ == '__main__':
... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
da701bfd690bc71205aa820ab921c9c7db87ac32 | acbc48ad067adf8c5e392493fd5d1a8dfb79ecb5 | /weaver/__meta__.py | 271109a576e1a49ad3d455783e03c911abac94d8 | [
"Apache-2.0"
] | permissive | crim-ca/weaver | 61506e3443689fd537c9ab63e2554b52de851893 | f07cfea0776af6c5797d2a2e06566d1e77858213 | refs/heads/master | 2023-08-24T00:38:20.084109 | 2023-07-07T20:05:41 | 2023-07-07T20:05:41 | 173,996,994 | 22 | 6 | Apache-2.0 | 2023-09-14T18:56:18 | 2019-03-05T18:11:42 | Python | UTF-8 | Python | false | false | 905 | py | __name__ = "weaver"
__title__ = "Weaver"
__version__ = "4.30.1"
__description__ = "Workflow Execution Management Service (EMS); Application, Deployment and Execution Service (ADES)."
__source_repository__ = "https://github.com/crim-ca/weaver"
__docker_repository__ = "https://hub.docker.com/r/pavics/weaver"
__documentat... | [
"francis.charette.migneault@gmail.com"
] | francis.charette.migneault@gmail.com |
a35e035c8e510119e55f614b5bc0236dacaf2ecd | 948d773961b96bdb7002be942ec6967a406cd6e3 | /common/get_log.py | 2111264f21ca0618e63d65ce41f418dea87d9fdc | [] | no_license | UserWangjn/API_unittest_requests_DDT_HTMLreport | 2e9b40f63c64302777e72dfa9110ae482dc6116d | 311a924958f59d14fb66d43c0029015bf4edf907 | refs/heads/master | 2021-02-15T07:39:49.543959 | 2020-03-15T14:09:05 | 2020-03-15T14:09:05 | 244,878,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | # -*- coding: utf-8 -*-
# @Author : wjn
# @File : get_log.py
# @describe: 生成日志信息
import os
import logging
import datetime
import functools
import traceback
from common.get_value import GetValue
class TestLogs(object):
def __init__(self):
self.logger = logging.getLogger(__name__)
self.logger.... | [
"wjntest@163.com"
] | wjntest@163.com |
81d3894735f83e69d519de269e5c84b7ee10ea1e | e5838acd890b711d53fa7b37e0405c236dd52bb2 | /trails/feeds/abuseipdb.py | 2655041df55065ea9b82449384b57f5ce148aef6 | [
"MIT"
] | permissive | stamparm/maltrail | 34c40fe593f82c5f78d511c21a1cbe049aa04856 | 21422d7acbdfd1157c0b2188b5050f74d0adecbb | refs/heads/master | 2023-08-31T20:08:48.881765 | 2023-08-31T19:39:55 | 2023-08-31T19:39:55 | 27,561,102 | 5,663 | 1,193 | MIT | 2023-08-14T03:13:03 | 2014-12-04T21:33:46 | Python | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""
Copyright (c) 2014-2023 Maltrail developers (https://github.com/stamparm/maltrail/)
See the file 'LICENSE' for copying permission
"""
import re
from core.common import retrieve_content
__url__ = "https://www.abuseipdb.com/statistics"
__check__ = "distinct users"
__info__ = "known attacker"... | [
"miroslav.stampar@gmail.com"
] | miroslav.stampar@gmail.com |
a6049cc5d02d9c619a629756264d2fa93990a2f5 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2545/47920/260445.py | 3d448e851b52576ebed318bbd8e5fd6e887b16d9 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | t = eval(input())
def is_less_one(t):
flag =False
for i in range(len(t)):
if(int(t[i]) >= 1):
flag =True
break
def _sum(li):
l = []
r_sum =0
for i in li:
r_sum = r_sum+int(i)
for k in l:
if(k == r_sum):
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
43d129f2ee8612c59d919d939a52e33cd6766888 | d04d3eec289376e7682403af2f32044b3991d27b | /2 - Data Types and Variables/Exer-3.py | f216c3c5862b88885238d3ed4cc9219ba0fb789c | [] | no_license | m-evtimov96/softUni-python-fundamentals | 190002dbc6196211340126814e8ed4fce3b8a07f | 817a44a3d78130d37e58facfc7bcfdc8af5f4051 | refs/heads/master | 2020-12-10T12:45:27.847764 | 2020-06-23T13:09:43 | 2020-06-23T13:09:43 | 233,598,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | people = int(input())
capacity = int(input())
courses = 0
while people > 0:
people -= capacity
courses += 1
print(courses)
| [
"m.evtimov196@gmail.com"
] | m.evtimov196@gmail.com |
465344465dca35d2f0e77fad908e5d282c76b053 | e78a9b75906065a205b0f2db635ecf834cb3e6ed | /cloud_scraper.py | ea4ea792ca62131956b2493915071294ae647df1 | [] | no_license | KonstantinSKY/LazyCoder | fc17fc52daacbb1c3efeab5b106334c02d2d488a | ce8c0fd08befb16146613bb08a8067c192d65101 | refs/heads/master | 2023-03-14T20:56:49.440405 | 2021-03-15T20:58:09 | 2021-03-15T20:58:09 | 347,434,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import cloudscraper
scraper = cloudscraper.create_scraper()
# Or: scraper = cloudscraper.CloudScraper()
print(scraper.get("https://leetcode.com/problems/decode-xored-array/").text)
| [
"sky012877@gmail.com"
] | sky012877@gmail.com |
18f6db2747ea2f4f0fe909f7779ebcce9d4f6a24 | bc441bb06b8948288f110af63feda4e798f30225 | /console_gateway_sdk/model/easy_command/target_log_pb2.pyi | e566c32ee03337d5cac0c8b59e38f5466be13925 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from console_gateway_sdk.model.easy_command.action_log_pb2 import (
ActionLog as console_gateway_sdk___model___easy_command___action_log_pb2___ActionLog,
)
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descripto... | [
"service@easyops.cn"
] | service@easyops.cn |
57c73e048af1a0163330c4bb2a9994c527d683f5 | 99deab5f52fd7262a26de9aa5d0163bfa738590f | /python/leetcode/system_design/648_replace_words.py | e593209424ebf8868ad05b886c985fef71e05a42 | [] | no_license | zchen0211/topcoder | e47fc07c928b83138e27fd6681b373ce499480b0 | 4d73e4c1f2017828ff2d36058819988146356abe | refs/heads/master | 2022-01-17T16:54:35.871026 | 2019-05-08T19:26:23 | 2019-05-13T05:19:46 | 84,052,683 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | """
648. Replace Words (Medium)
In English, we have a concept called root, which can be followed by some other words to form another longer word - let's call this word successor. For example, the root an, followed by other, which can form another word another.
Now, given a dictionary consisting of many roots and a se... | [
"chenzhuoyuan07@gmail.com"
] | chenzhuoyuan07@gmail.com |
fc3dfa51a328adda569299f327036d7237fe245a | 494051ad9bac642175cbe57ecafeafa4a6b01dc8 | /observing_scripts/161111/ALES/ALES_2_nod.py | 371fa04b53db4b09cf37004578bd34af8f382175 | [] | no_license | mwanakijiji/LMIRcam_scripts | c80f8123d1c7ca78df69068fb4136dacc3802071 | 48d88cde6a4d428b2f08b0f50c05045d4927fb4d | refs/heads/master | 2021-07-10T00:35:18.852627 | 2019-04-18T04:56:12 | 2019-04-18T04:56:12 | 109,775,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | #!/usr/bin/python
import time
import sys
from pyindi import *
import math
import numpy as np
#pi is an instance of PyINDI. Here we connect to the lmircam server
pi = PyINDI(verbose=True)
side=sys.argv[1]
##################################################################
# USER INPUTS: ... | [
"spalding@email.arizona.edu"
] | spalding@email.arizona.edu |
cf24b3ec30bf850397b2505a41337b7cce4b4868 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /AtCoder_Virtual_Contest/tessoku-book/cr/main.py | 9b669a08b8685d2ca0ac90be48d9b0616b404ee5 | [
"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():
import sys
input = sys.stdin.readline
n, w = map(int, input().split())
size = 10**5
inf = 10**18
dp = [inf] * (size + 1)
dp[0] = 0
for _ in range(n):
wi, vi = map(int, input().split())
ndp = [inf] * (size + 1)
for i in ran... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
bc00966a80e063e8647dd4978c99ff5871653260 | db80ab9f88a458efc109d44fe623a3bca6591e7d | /orangeapisms/config.py | c0b9c1d2b4fe4215537050e6c223e520ecc9ce15 | [
"Unlicense"
] | permissive | rgaudin/django-orangeapisms | f8d182f686b8c664ee1033a34f6a61ee34c2002f | f0ad7a45d52b5f4f4f5a11317ae3cb7c9cd12370 | refs/heads/master | 2021-07-02T21:57:55.218646 | 2016-12-01T09:55:40 | 2016-12-01T09:55:40 | 45,251,887 | 2 | 1 | Unlicense | 2021-06-10T17:22:54 | 2015-10-30T13:17:00 | Python | UTF-8 | Python | false | false | 2,083 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
from __future__ import (unicode_literals, absolute_import,
division, print_function)
import logging
import os
import importlib
import simplejson
from orangeapisms.datetime import encode_datetime, decode_datetime
SET... | [
"rgaudin@gmail.com"
] | rgaudin@gmail.com |
dba054ce4583bc94690faf7682dbeba4971734d2 | 83c57f25a1c8b29bb84078340efabaf527a9452e | /DRW/DRW/items.py | 3b11df9173a68878ab935848e12f1979f674932c | [] | no_license | ifzz/py | df06cf5da5920dae979c2c8454bfa02c36dfeeb1 | 2305e651613725ca51d6a87306f3ef83d6c51939 | refs/heads/master | 2021-01-18T08:32:21.256271 | 2016-03-11T10:30:28 | 2016-03-11T10:30:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # -*- coding: utf-8 -*-
from scrapy.item import Item, Field
#短融网
class DRW_product(Item):
platformid = Field() # 平台ID
producttype = Field() # 产品类型
productname = Field() # 产品名称
productid = Field() #产品ID
amount = Field() # 标的总额(元)
balance = Field() # 标的余额(元)
maxrate = Field() # 最大收益率(%)
minrate = Field()... | [
"junxuanwoo@163.com"
] | junxuanwoo@163.com |
28ad54a4f9a0338705fe74b054d97f061c4cf1ff | 45b64f620e474ac6d6b2c04fbad2730f67a62b8e | /Varsity-Final-Project-by-Django-master/.history/project/student/urls_20210223220201.py | 4e76b25c639fcb0a0e495516c3abb59a198b90b6 | [] | no_license | ashimmitra/Final-Project | 99de00b691960e25b1ad05c2c680015a439277e0 | a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003 | refs/heads/master | 2023-04-11T06:12:35.123255 | 2021-04-26T15:41:52 | 2021-04-26T15:41:52 | 361,796,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py |
from django.urls import path
from .import views
urlpatterns = [
path('', views.student),
path('profile/', views.profile),
]
| [
"34328617+ashimmitra@users.noreply.github.com"
] | 34328617+ashimmitra@users.noreply.github.com |
1a3b70228b4fc8be221477fc426f4ecfe897ada5 | aff843352ee1652a234e100277b0ed4c907eeafd | /pedaily/pipelines.py~ | 2405fec2751de7670e7627f6a6cdab91aaf1ceae | [] | no_license | yidun55/peDaily | 0d747caac9362cc6c4a1c0bc67eacf4f2cd061f9 | c084f3cc083f28ff9a6584047d865c015983e7ec | refs/heads/master | 2020-04-06T04:36:11.219735 | 2015-06-29T09:56:29 | 2015-06-29T09:56:29 | 37,893,054 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class PedailyPipeline(object):
def process_item(self, item, spider):
return item
| [
"heshang1203@sina.com"
] | heshang1203@sina.com | |
cfe18fc967fe27dd3160ad9dff2dbec7ad1ae05c | 5863d44961505fa41209bb66ffc46bbe6dcd7796 | /loads/migrations/0005_auto_20200427_2120.py | 103d40c0cd055e3696fce168fbc43fc8a9365055 | [] | no_license | bnmng/ervin | 2995bdfb3371dc16b76f47ee3897607a9854561c | d47a10ba76696eeb0706fa536ed96ffa69f9c934 | refs/heads/master | 2022-05-31T20:25:32.704470 | 2020-04-30T10:09:44 | 2020-04-30T10:09:44 | 260,022,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | # Generated by Django 3.0.5 on 2020-04-27 21:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('loads', '0004_remove_load_status'),
]
operations = [
migrations.AddField(
model_name='deliverystatus',
name='is_canc... | [
"benjamin@bnmng.com"
] | benjamin@bnmng.com |
dbed5a89ec2213e7953b849ad408c101e1f748b9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_classes.py | a8d3e2b6e269fe9d034720a7c597d844f65234db | [
"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 | 233 | py |
from xai.brain.wordbase.nouns._class import _CLASS
#calss header
class _CLASSES(_CLASS, ):
def __init__(self,):
_CLASS.__init__(self)
self.name = "CLASSES"
self.specie = 'nouns'
self.basic = "class"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a7e264299fe6629b9dcb0ff46e14426e39bc1e65 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil1928.py | 01e882379c9535c969da6bdef86165a72103df07 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | # qubit number=5
# total number=63
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=3
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
4abf06402e5b34617955a958b94b8301bf6aa6fb | 34f1ba5d471c906cb3005ad4a6cf8dcf8828f22f | /build/lib/swagger_client/models/api_list_organization_response.py | d8ed132c05824f262d7638bdc4634110061bb663 | [] | no_license | yuregir/Lora-AppServer-API | 9c7e81dd57f13b3f0350022098c332a2db4af195 | 5159de92b27e3d4342a60fe69f169510eeb0e889 | refs/heads/master | 2020-07-12T12:38:21.760887 | 2020-01-03T13:30:33 | 2020-01-03T13:30:33 | 204,821,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,335 | py | # coding: utf-8
"""
LoRa App Server REST API
For more information about the usage of the LoRa App Server (REST) API, see [https://docs.loraserver.io/lora-app-server/api/](https://docs.loraserver.io/lora-app-server/api/). # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.co... | [
"yuregir@me.com"
] | yuregir@me.com |
b99f0859d644ca83d62003e9c0995d58246156fc | 9a9e739dcc559476ba796510182374ad460f2f8b | /PA2/PA2 2013 did again/PA2-7/Asitha/pa2-7-2013.py | 1b36b396ac811f7ad941f1315224fc2c50240149 | [] | no_license | Divisekara/Python-Codes-First-sem | 542e8c0d4a62b0f66c598ff68a5c1c37c20e484d | e4ca28f07ecf96181af3c528d74377ab02d83353 | refs/heads/master | 2022-11-28T01:12:51.283260 | 2020-08-01T08:55:53 | 2020-08-01T08:55:53 | 284,220,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | def getText():
try:
FileOpen=open("FileIn.txt","r")
L=FileOpen.read().split()
return L
except:
print "File not found"
pass
def compute(L):
"Input a list of word and output the number of same letters appears in each word as a list"
answer=[]
for i in L:
... | [
"9asitha7@gmail.com"
] | 9asitha7@gmail.com |
7be917166a29f0990b922b85f8849525ca176bef | 963b0c14043ca94e4c3be1562c496fd868dd813a | /compounds/migrations/0014_chembl_chembl_assay_id.py | 4d08cd630696be8c87b5bdc830893cc410678333 | [] | no_license | jianping-grp/yatcm | 7a0111a4c98de8f649cfe754b178add6b6d224d8 | 7d8e4cd18ccc27f2ae6b86018553d1a4608b8e1b | refs/heads/master | 2020-05-25T07:24:09.833547 | 2017-12-23T07:55:29 | 2017-12-23T07:55:29 | 115,178,789 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-10-01 14:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('compounds', '0013_auto_20171001_1437'),
]
operatio... | [
"libaiqing11@163.com"
] | libaiqing11@163.com |
57a8b65b9bddd17f589c6b18028e26ae93656634 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s920266020.py | e72cb563417bba6a868a8db5a83e68a7abb1bcf3 | [] | 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 | 476 | py | def is_pairwise():
MAX_A = 10**6 + 1
C = [0] * MAX_A
for a in A: C[a] += 1
if sum(C[2::2]) > 1: return False
for i in range(3, MAX_A, 2):
if sum(C[i::i]) > 1: return False
return True
def solve():
from functools import reduce
from math import gcd
if is_pairwise(): return 0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.