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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f1c575c097cde921b3ca5577df204d7ee4135b08 | 1d9e681b204e6ec2d7a710ef45b7dec082239491 | /venv/Lib/site-packages/test/test_leagues_api.py | 48ffc4664efcaf97941442d25c9aa298f62759cf | [] | no_license | 1chimaruGin/DotaAnalysis | 0e0b85805cc83e4cc491d46f7eadc014e8d6b1f1 | 6a74cde2ee400fc0dc96305203d60c5e56d7ecff | refs/heads/master | 2020-07-21T20:48:07.589295 | 2019-09-07T12:20:15 | 2019-09-07T12:20:15 | 206,972,180 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | # coding: utf-8
"""
OpenDota API
# Introduction The OpenDota API provides Dota 2 related data including advanced match data extracted from match replays. Please keep request rate to approximately 1/s. **Begining 4/22/2018, the OpenDota API will be limited to 50,000 free calls per month.** We'll be offering a... | [
"kyitharhein18@gmail.com"
] | kyitharhein18@gmail.com |
67617a69add99f64b4ea88a84a7f0b9fc120f187 | ec645951ce4a1f7d404ebca438dfff8fb74cc3f4 | /venv/bin/iptest3 | 211d53b05edeca834eefa92ab64e8d24a7d436dc | [] | no_license | Josue23/scrapy | 695c0e93e6c1f0c0de5a04bd2eaced3e5520801e | 469cc4cff7d986264c4bcc291e9eb5f5a6256da9 | refs/heads/master | 2021-01-09T06:19:59.794012 | 2017-03-04T00:21:52 | 2017-03-04T00:21:52 | 80,957,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | #!/home/josh/Documentos/labs/scrapy/venv/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from IPython.testing.iptestcontroller import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"josuerodrigues@gmail.com"
] | josuerodrigues@gmail.com | |
ab36dc2d10fb2e290cb55a1c9d512d4acefab8f7 | e7795082c0131682803a09e929a86b2deddeab74 | /common/decorators.py | a2daa4aba896ef449a232fc88e7972e82d3bc2f0 | [
"MIT"
] | permissive | liwanlei/FXTest | 01de3ad55849b16c49d93b58d1aae21fd0fdafa0 | aeda58d01c14194290ca149d411c3a8596cca82d | refs/heads/master | 2023-04-01T15:45:26.668688 | 2023-03-19T05:19:54 | 2023-03-19T05:19:54 | 97,098,845 | 807 | 419 | MIT | 2022-04-23T06:52:16 | 2017-07-13T08:27:48 | Python | UTF-8 | Python | false | false | 342 | py | # -*- coding: utf-8 -*-
# @Date : 2017-08-14 20:58:13
# @Author : lileilei
'''
判断是否是管理员
'''
from flask_login import current_user
def chckuserpermisson():
for rosse in current_user.quanxians:
if int(rosse.rose) == 2 or current_user.is_sper == 1:
return True
else:
return ... | [
"leileili126@163.com"
] | leileili126@163.com |
f89f4f691db9fbfe4b2cf6779786db342fce3ea2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02921/s097564200.py | ad53f6228a9838cfa0ce0fec43cc2767e79c3fbb | [] | 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 | 123 | py | S=input()
T=input()
count=0
for i in range(3):
if S[i]==T[i]:
count=count+1
else:
pass
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7a4ea1e22297182f60b7f8fb6604fa106b46ffca | 9c5abcd43318ef7553be95a95a859a0f3e41a467 | /easygraphics/_utils/invoke_in_app_thread.py | 14b67c2f87247464ac457fbf9367817f2f21572d | [
"BSD-3-Clause"
] | permissive | xzy103/PyEasyGraphics | d66da503f601868fe39d404a77b3b8d0a43a2e52 | 16bd6f21dd6f3d76edaab2b533500e9aa789c6b2 | refs/heads/master | 2020-05-19T07:31:22.005958 | 2019-02-25T09:54:41 | 2019-02-25T09:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,138 | py | #####################################################################
# #
# invoke_in_main.py #
# #
# Copyright 2013, Christopher Billington... | [
"royqh1979@gmail.com"
] | royqh1979@gmail.com |
5b39c59717642e3776c9379ae915f92588e8e8ca | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_775.py | f4cd2428ed5c0bb83dce326182cd87d37d738fb8 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | # Basic Python dictionary question
d = {'key' : ('value1', 'value2')}
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
9b62265c950d228138e345f64bc1748cedad187d | eb48c29693a3be2df788215f36dcc0ecc08dd961 | /contrib/gitian-build.py | a0c26e8dcbde687cc992571987143ab5783218d8 | [
"MIT"
] | permissive | CREDIT-2-0/TerraCredit | 787b14d7a5366d22827efd03853ac3f1f69fd234 | ebe035cd4eeab006928e931c33db7b025cdea340 | refs/heads/master | 2022-12-08T23:24:52.343819 | 2020-09-08T02:47:20 | 2020-09-08T02:47:20 | 271,811,497 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 21,287 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2019 The Bitcoin Core developers
# Copyright (c) 2019 The PIVX developers
# Copyright (c) 2019-2020 The TERRACREDIT developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import argp... | [
"alonewolf2ksk@gmail.com"
] | alonewolf2ksk@gmail.com |
d576ee243987e026e7db286752d55ddc344a1942 | 8cdad42543eb9d6a3c3a9ddf5a3d768a09aef78d | /lesson3/visual_optimizer/example_0.py | 1026e1151f0da929d1dfc302dc63cbde89018b05 | [] | no_license | SoulDuck/Edu_DL | b81b4ac871864440210b109c7fc76c7cc2c54391 | 3ab10fa147bb6282517a413a5c2c465f0277cebe | refs/heads/master | 2022-11-27T08:18:39.676980 | 2019-03-17T14:44:27 | 2019-03-17T14:44:27 | 155,827,188 | 0 | 1 | null | 2022-11-01T20:28:40 | 2018-11-02T07:04:08 | Jupyter Notebook | UTF-8 | Python | false | false | 2,289 | py | import matplotlib.pyplot as plt
import autograd.numpy as np
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.colors import LogNorm
from matplotlib import animation
from IPython.display import HTML
from autograd import elementwise_grad, value_and_grad
from scipy.optimize import minimize
from collections import ... | [
"plznw4me@naver.com"
] | plznw4me@naver.com |
26313529fa41479b7cac8f822e78c9ce13050b70 | a5b66100762c0ca7076de26645ef1b732e0ee2d8 | /test_python_toolbox/test_cute_iter_tools/test_iterate_overlapping_subsequences.py | acddca4ead74e7042a28fa22d1433a03de3ae3e3 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | cool-RR/python_toolbox | 63400bbc004c63b32fe421b668a64bede4928e90 | cb9ef64b48f1d03275484d707dc5079b6701ad0c | refs/heads/master | 2022-01-26T14:41:29.194288 | 2021-12-25T06:49:40 | 2021-12-25T06:49:40 | 3,066,283 | 130 | 15 | NOASSERTION | 2021-12-25T06:49:41 | 2011-12-29T01:39:51 | Python | UTF-8 | Python | false | false | 5,491 | py | # Copyright 2009-2017 Ram Rachum.
# This program is distributed under the MIT license.
'''Testing module for `cute_iter_tools.iterate_overlapping_subsequences`.'''
import collections
from python_toolbox import gc_tools
from python_toolbox import nifty_collections
from python_toolbox import cute_testing
from python_t... | [
"ram@rachum.com"
] | ram@rachum.com |
02fee580a449534a696d8a009b72407c8e92397c | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3_neat/16_0_3_SGer_coinjam.py | ddadbc4f209398f6d0184b2127b91ea3acef6fb2 | [] | 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,674 | py | import sys
def primeCheck(n):
# sieve holds all the numbers that still can be divisors
upperBorder = int(n**0.5)+1
sieve = [True]*upperBorder
sieve[0] = False
sieve[1] = False
for i in xrange(upperBorder):
# If we already know that the number is not a divisor, just skip it
if (sieve[i] == False):
continue... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
3976434872d602cbd85f8af7adc7780d589d700f | 0806d939ef0e8218c0f727e025eb0b3bb328d343 | /vote/polls/settings.py | 57025f38b164cace2fa091fd11f661cd86271aaf | [] | no_license | aiegoo/django-web | bcd89687d951e0877000c23230661ce566144e78 | 5476ed77cf95919d9b825f4cef03d42f217768ce | refs/heads/master | 2021-07-17T01:20:24.279227 | 2020-09-27T05:15:05 | 2020-09-27T05:15:05 | 215,240,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | """
Django settings for polls project.
Generated by 'django-admin startproject' using Django 2.2.6.
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 os
# B... | [
"eozz21@gmail.com"
] | eozz21@gmail.com |
7c5f7ab7b3a9edaffcf8c46037bdc4f1be5a349d | 871e1b0295c0fbbfca8191236d674866cf62ff01 | /TrainB7_NAR1_noisy-student.py | 6eee387bf281a62a200d38e6acdd02993bd6a410 | [] | no_license | Peckkie/USAI_ABnormal_Screening | ce31a813e9303a7d43def912ab731cc633268cb7 | 82cd63ac9ab72fbe68eae254c15c7bf7ef906022 | refs/heads/master | 2023-02-16T13:32:33.678500 | 2021-01-07T02:36:35 | 2021-01-07T02:36:35 | 277,981,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,082 | py | import PIL
from keras import models
from keras import layers
from tensorflow.keras import optimizers
import os
import glob
import shutil
import sys
import numpy as np
from skimage.io import imread
import matplotlib.pyplot as plt
import os
from tensorflow.keras import callbacks
import pandas as pd
from keras.utils impor... | [
"w_yupaporn@kkumail.com"
] | w_yupaporn@kkumail.com |
c4658453b2716be727acbcdafee395d3b540e6a5 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-imm/aliyunsdkimm/request/v20170906/ListTagSetsRequest.py | 47f868aa7d94a71b6c0a79b6e8e4d3a9862ff1f7 | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | 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... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
6f7210e36bf9be6421624a8552e233ad0d6289cc | 3b979bbed493ac72a5a3bd50209f6c2132fe7e46 | /shinobu/database.py | a2870b1e7ad4a3cdb58d7de635c77df13ca6ee10 | [] | no_license | 3jackdaws/shinobu2 | b8ba6f081ce2f309a38b834aad6b2f8d11baebff | eb5d1dd9667f66cf3acc2394be0ec5402aee4218 | refs/heads/master | 2021-01-20T06:38:41.529998 | 2017-12-11T04:16:49 | 2017-12-11T04:16:49 | 89,904,844 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | from peewee import * | [
"3jackdaws@gmail.com"
] | 3jackdaws@gmail.com |
b5b926c106c60946a48179e4795ab856cd8820bb | ac4b9385b7ad2063ea51237fbd8d1b74baffd016 | /.history/google/gmail_extract_20210219015211.py | c4d7dfe90ce25f2f1ff0dd84344c6a9d2cfe242a | [] | no_license | preethanpa/ssoemprep | 76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f | ce37127845253c768d01aeae85e5d0d1ade64516 | refs/heads/main | 2023-03-09T00:15:55.130818 | 2021-02-20T06:54:58 | 2021-02-20T06:54:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,993 | py | from __future__ import print_function
import pickle
import os.path
import io
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from googleapiclient.http import MediaIoBaseDownload
from oauth2client.service_account impor... | [
"{abhi@third-ray.com}"
] | {abhi@third-ray.com} |
aff1b4c074ab609ca6ddccae8c356a723e774856 | ed98f15f0daf3a9a0cb033bded3b97207b6a3382 | /pylonsprojectjp/apps/admin/__init__.py | 59a11c4220e220e1545a4c57f14f03913d4fde95 | [] | no_license | knzm/pylonsprojectjp_site | 56b4b3eb400f3588a97c1898759a53abca553635 | 4b2fd1875ab1c4e4d2e5a2ba946b6c462bc2d90e | refs/heads/master | 2021-01-19T11:17:30.521824 | 2014-01-24T15:00:30 | 2014-01-24T15:00:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | # -*- coding: utf-8 -*-
from .utils import admin_config, ListColumn
__all__ = ['admin_config', 'ListColumn']
def includeme(config):
config.add_directive('add_admin', '.utils.add_admin')
| [
"nozom.kaneko@gmail.com"
] | nozom.kaneko@gmail.com |
ac840a5275bbbdffb5197eccb724645e65106c64 | b7e9057d7083759cf5193083b4864f6ca9dd9144 | /Longest_Increasing_Subsequence.py | 469379278526ef4b76f1ab1bd58b65c543a7cf66 | [] | no_license | vishalagrawalit/Competitive-Programming | 21a5c63de4fdbe8cbbfeb8b62d62af3c79972cad | b34faafd15f3e97050a8e2c39e3358e7a8ffdc5a | refs/heads/master | 2021-12-24T08:58:20.269152 | 2017-12-14T17:59:05 | 2017-12-14T17:59:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | def search(arr,l,r,key):
while(r-l>1):
m = l+(r-l)//2
if (arr[m] >= key):
r = m
else:
l = m
return r
def sequence(arr):
if len(arr)==0:
return 0
tail = [0]*len(arr)
length = 1
tail[0] = arr[0]
for i in range(1,len(arr)):
if ar... | [
"vishvishu14@gmail.com"
] | vishvishu14@gmail.com |
a0598efb487953b92293d2f61626bf178d0b4e7d | c2df9e04adec78e789d1fbdb0711c45e5b9263a7 | /venv/Lib/site-packages/mpl_toolkits/axisartist/clip_path.py | d494365ef3c9347f3cdc5882e5efd8a907ad1b7f | [
"MIT",
"BSD-3-Clause"
] | permissive | AdarshSai/Final_Project | 433009a2f416e894ee3be85cd9317cb8e8df5516 | f966834ca72dd232102ed500ef47ef2b3bdbed5b | refs/heads/main | 2023-01-23T12:21:41.342074 | 2020-11-19T22:24:15 | 2020-11-19T22:24:15 | 308,898,012 | 0 | 1 | MIT | 2020-11-19T22:24:17 | 2020-10-31T14:19:58 | Python | UTF-8 | Python | false | false | 3,895 | py | import numpy as np
from math import degrees
from matplotlib import cbook
import math
def atan2(dy, dx):
if dx == 0 and dy == 0:
cbook._warn_external("dx and dy are 0")
return 0
else:
return math.atan2(dy, dx)
# FIXME : The current algorithm seems to return incorrect ang... | [
"adarshsaig@gmail.com"
] | adarshsaig@gmail.com |
d264afccd70fdf9c18c2efb1cf3cc64e43bb66bf | 8b56726a0e92d1d9cdb0516a7ba441927a6f934c | /mezzanine_slides/admin.py | c75871a2726c7d7202c494ec7cf7142dc3e42e02 | [
"BSD-2-Clause"
] | permissive | kklimonda/mezzanine-slides | bf360ece7a576af40c9eee9cc3e3c3a586920bb3 | 6eea964c3cea7e7b9cd2e4ea4df87e02904b2bf8 | refs/heads/master | 2021-01-18T13:18:52.982969 | 2014-03-31T12:45:37 | 2014-03-31T12:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | from copy import deepcopy
from django.contrib import admin
from django.conf import settings
from mezzanine.pages.models import RichTextPage
from mezzanine.core.admin import TabularDynamicInlineAdmin
from mezzanine.pages.admin import PageAdmin
from mezzanine.forms.admin import FormAdmin
from mezzanine.galleries.admin... | [
"isaac@bythewood.me"
] | isaac@bythewood.me |
4f639435ccaf5bbdd3a526cbc08cbd897e67d235 | 8968a2696cea58d7b04cb59c2525e89cf6f88a0a | /train_albert_en.py | 975c64c91313071f1de25f3be32ad0b6ee582502 | [] | no_license | Vottivott/swedsquad | a739c7aa938a5db381e2bda9e047c8db93390a90 | 5ed279f166d26b45228501012fbb8817d1c5ae11 | refs/heads/master | 2020-09-26T21:02:36.342548 | 2020-02-09T01:39:38 | 2020-02-09T01:39:38 | 226,342,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | import run_squad_v2_3
args = """--model_type albert
--model_name_or_path albert-xxlarge-v2
--do_train
--do_eval
--version_2_with_negative
--train_file train-v2.0.json
--predict_file dev-v2.0.json
--learning_rate 3e-5
--num_train_epochs 2
--max_seq_length 384
--doc_stride 12... | [
"hannes.von.essen@gmail.com"
] | hannes.von.essen@gmail.com |
9c282bcc9395d5eda1043828a607d89c7e437cc1 | 2d196f23088be902bc7eba837c1bc7d238d3a4dc | /takmyo_app/migrations/0016_auto_20190701_1939.py | 6b08d6a79f663352837bb158cdd003025f4efcb8 | [] | no_license | SimJunSik/takmyo | 9015bb6359e55b2cc6a3bda6a3b60c3a74c5293e | 719c2953e46be0fd35d18ed61137e54510854234 | refs/heads/master | 2020-05-31T16:07:54.001559 | 2019-07-10T13:22:27 | 2019-07-10T13:22:27 | 190,373,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,519 | py | # Generated by Django 2.1.4 on 2019-07-01 19:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('takmyo_app', '0015_auto_20190630_2023'),
]
operations = [
migrations.AddField(
model_name='cats... | [
"wnstlr24@naver.com"
] | wnstlr24@naver.com |
95faa95eeff801f7dab139c5085f5900338d891f | 41d4f53b7f23639c1e2bbf75f06b77b544b5e8ca | /docs/fragments/feature-engineering-guide-second-feature.py | e70345c620ad6fb8637ac8f6c9d859035d9a1e71 | [
"MIT"
] | permissive | fagan2888/ballet | d010ad5e8158417cd75b73fe67c758e6423cbb35 | 38b156e04e5ae1497e943a8c954606c9a9b5dd83 | refs/heads/master | 2023-03-05T13:41:32.953107 | 2021-02-02T16:58:37 | 2021-02-02T16:58:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from ballet import Feature
from ballet.eng.sklearn import SimpleImputer
input = ["Lot Frontage"]
transformer = SimpleImputer(strategy="mean")
name = "Imputed Lot Frontage"
feature = Feature(input=input, transformer=transformer, name=name)
| [
"micahjsmith@gmail.com"
] | micahjsmith@gmail.com |
5bee3b9aec06a6a7c4e1632997945279f6255fb2 | 68dee0c48a0527d56e74c2cd9bd35e73f360d233 | /hydrus/client/gui/search/ClientGUISearch.py | eb99331cd64aa8594cd0709a12efafe1790405b2 | [
"WTFPL"
] | permissive | pokeball99/hydrus | a9a10c9c7dfb751a308de22ac4a3000f71a27454 | e939c11b7ad5071b88b9cc310cda9fb9f2dc68e4 | refs/heads/master | 2022-10-06T23:43:39.656510 | 2022-09-17T20:56:42 | 2022-09-17T20:56:42 | 46,509,660 | 0 | 0 | null | 2015-11-19T17:44:48 | 2015-11-19T17:44:46 | null | UTF-8 | Python | false | false | 44,007 | py | import os
import typing
from qtpy import QtCore as QC
from qtpy import QtWidgets as QW
from hydrus.core import HydrusConstants as HC
from hydrus.core import HydrusExceptions
from hydrus.core import HydrusGlobals as HG
from hydrus.client import ClientConstants as CC
from hydrus.client import ClientSearch
from hydrus.... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
a8afe8fe90cb44885e1a8de0926880ca20e883b6 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/site-packages/django/contrib/messages/storage/fallback.py | d1e59e7381a074e84dc617160fe1188be756bcf0 | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:21bcb2660f1c4d4fb5f5979183a2e774b7d12b44a87af0f0a8ab6bab3855a7a7
size 2095
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
511ea27f7502976ed688dd2cdd273ad0cfd53fbe | e815fd9fbc703ce43d94fba6e53c86b898e32977 | /llia/synths/controlmixer/controlmixer_proxy.py | 33161f517185689a07627bddbc820d2b9f087313 | [] | no_license | kaos/Llia | 0cdedc13d84ce86034287fba00ec0b169fbd87b1 | b2aaa163c4ada3b446a7c3701e3f05c0f8406d6e | refs/heads/master | 2020-12-28T19:23:48.480608 | 2017-03-27T05:51:14 | 2017-03-27T05:51:14 | 64,940,263 | 0 | 0 | null | 2016-08-04T14:13:13 | 2016-08-04T14:13:13 | null | UTF-8 | Python | false | false | 1,651 | py | # llia.synths.controlmixer.ghost_proxy
from __future__ import print_function
import llia.constants
from llia.gui.pallet import default_pallet, Pallet
from llia.synth_proxy import SynthSpecs, SynthProxy
from llia.synths.controlmixer.controlmixer_data import program_bank, pp
specs = SynthSpecs("ControlMixer")
class C... | [
"plewto@gmail.com"
] | plewto@gmail.com |
e2f183fd355accbc9b143c35bd7aefc489038f85 | 8ee6d008fdaea9bb738ab4d6cb4971789934c03e | /case/zlywtest.py | 09debf978965b3567bea364443f721f5dcc3c096 | [] | no_license | Pactortester/QDS_old_company | 32d3499d955e127a69c6e9e15ec3f3661ca9cef1 | 0a3d0688cd6ec0c1e6fedd62f94867f97045deb8 | refs/heads/master | 2020-03-27T17:47:53.042670 | 2018-09-07T02:55:42 | 2018-09-07T02:55:42 | 146,869,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,486 | py |
# coding=utf-8
import time
import logging
from selenium.webdriver import ActionChains
from utils.mytestcase import MyTestCase
from utils.logincookie import dengLuPage
from utils.screenshort import get_screenshort
class ZlYwTest(MyTestCase):
"""专利业务测试集"""
def test_zljs(self):
"""专利查新检索(报告)测试"""
... | [
"1456470136@qq.com"
] | 1456470136@qq.com |
d87e6b7190ffd9f4f1c99b2383a7d2ac3e2c9173 | f36f17f00d02198c851a4fcc7680aa4a3fa2397e | /riko/modules/refind.py | d20944d580c5018a127c1e4cef366804efff1063 | [
"MIT"
] | permissive | HKCaesar/riko | c0a9fe597e137b2512c12e6444c8b4645eaf1b63 | 2ad4cb372a784dca4fbce68d71171bd8e6a0e8ae | refs/heads/master | 2020-06-17T16:35:46.594452 | 2017-05-22T17:59:39 | 2017-05-22T17:59:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,711 | py | # -*- coding: utf-8 -*-
# vim: sw=4:ts=4:expandtab
"""
riko.modules.refind
~~~~~~~~~~~~~~~~~~~
Provides functions for finding text located before, after, at, or between
substrings using regular expressions, a powerful type of pattern matching.
Examples:
basic usage::
>>> from riko.modules.refind import pi... | [
"reubano@gmail.com"
] | reubano@gmail.com |
f9a72eee61a1e1d65d6dc7b03850dbac62117f60 | 2c8d3e341e813c1b1b88ae824edeaadb366aec0a | /Parser/SW4/SW4/bin/Debug/smo2-24-path-21.py | 841db219d8a8c33e60c22140d5e2345cc3e775d3 | [] | no_license | kiriphorito/MoveAndTag-Manticore | 2e24a958f4941556b2d2714563718069cc5b208f | d07a3d8c0bacf34cf5f433384a6fd45170896b7a | refs/heads/master | 2021-01-20T11:40:49.232449 | 2017-02-26T14:08:48 | 2017-02-26T14:08:48 | 82,548,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,552 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
u"""
@brief: Path Planning Sample Code with Randamized Rapidly-Exploring Random Trees (RRT)
@author: AtsushiSakai
@license: MIT
"""
import shapely
from shapely.geometry import Polygon, LineString, Point, MultiPoint, GeometryCollection
import matplotlib.pyplot as plt
from as... | [
"zcabwhy@ucl.ac.uk"
] | zcabwhy@ucl.ac.uk |
2c3e86903090f4e9df6b6db7b7638629a05d5502 | be4d32d35fd4af3cf4ecf3736c8e879d50b8ae37 | /Python/Django/belt2_exam/belt2_exam/wsgi.py | 35143390e13c3eca0342994133978c7b178f5e20 | [] | no_license | yangluo0901/CodingDojo_Assignment | f09bbec26f87b5b276fd6ef3c77f27d13518937e | 44ccb5158b12c1656793bac76f1a7a707b147982 | refs/heads/master | 2021-10-11T21:12:14.889189 | 2019-01-29T19:52:56 | 2019-01-29T19:52:56 | 105,716,841 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | """
WSGI config for belt2_exam 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefa... | [
"yangluo0901@gmail.com"
] | yangluo0901@gmail.com |
05d3dc754c74f90311c58a36f4604e7c832de9a1 | c838b6a37a7499e184bb892cd40f2f1fbb79002d | /Conceitos Básicos/modulos, pacotes e imports/foo.py | 2b9d3cf30fbb032711cba46d8b4463005d34598e | [] | no_license | danbailo/Python | f2920dd420a9ead29e6f38b64f0b38af0d1b5dbf | 3e3113d26bf9aee39e1ab4a3b2881c4c328143f3 | refs/heads/master | 2021-07-24T02:13:41.612337 | 2020-05-14T22:58:32 | 2020-05-14T22:58:32 | 169,300,125 | 1 | 1 | null | 2019-09-03T15:20:29 | 2019-02-05T19:35:09 | Python | UTF-8 | Python | false | false | 105 | py | import math
#raiz quadrada
print(5 ** 0.5)
print(math.sqrt(5))
from math import sqrt
print(sqrt(5))
| [
"danbailoufms@gmail.com"
] | danbailoufms@gmail.com |
ef2d337b974ef2e91f0a09d2fb51bc1e027a2c04 | 361b96b81858a0f620da36ec20da0ec22fc84fec | /hypercallgen.py | 32b30daa878fe82428cbc87da17c6bb939b0f0ef | [
"BSD-2-Clause"
] | permissive | daeken/Zookeeper | 88738beaa2eb8870d746981469b5e76df6266534 | b27f4bd17af1f5e1c7bbdd4a18017458822de648 | refs/heads/master | 2021-01-17T20:06:27.984878 | 2016-06-04T22:50:30 | 2016-06-04T22:50:30 | 37,281,709 | 37 | 2 | null | 2016-05-20T15:48:30 | 2015-06-11T19:31:08 | C++ | UTF-8 | Python | false | false | 3,977 | py | from yaml import load
calls = load(file('hypercalls.yaml'))
nhc = file('NightBeliever/Hypercall.cpp', 'w')
print >>nhc, '// Automatically generated by hypercallgen.py'
print >>nhc, '#include "NightBeliever.hpp"'
print >>nhc, '#include "../Hypercalls.hpp"'
print >>nhc
nhh = file('NightBeliever/Hypercall.hpp', 'w')
pr... | [
"cody.brocious@gmail.com"
] | cody.brocious@gmail.com |
ad385490ca92fa12443faef3fbd626e74dcad0cb | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /SFAjxGWk9AbfwbXFN_9.py | ec4e643e07b51a271e0aff50e66352e44bf41ae3 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | """
Create a function that will find all primes below a given number. Return the
result as a list.
### Examples
primes_below_num(5) ➞ [2, 3, 5]
primes_below_num(10) ➞ [2, 3, 5, 7]
primes_below_num(20) ➞ [2, 3, 5, 7, 11, 13, 17, 19]
### Notes
If `n` is a prime, it is included in the list.
"... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
5c85dad1f51e149d019abbd4bd4632e8fb570871 | 4a73648ecd3951b802e89e83a3bd9ef5b063af3d | /python_part/Leetcode/Data Structure/BinaryTree/easy/100. Same Tree/Solution.py | c61f1ad568845f63c4619fd72896ce1389db1f89 | [] | no_license | Allen-C-Guan/Leetcode-Answer | f5f9ee1348b86da914a564b7d23bf8904d5aa27f | f6e1374ef567590fee15ba6d1d6d65891233b5e1 | refs/heads/master | 2023-08-17T18:18:00.581743 | 2021-10-10T15:24:07 | 2021-10-10T15:24:07 | 257,017,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
'''
写递归还是那个最重要思路:
在写递归的时候,一定要时刻记得,子问题已经被我的递归解决掉了。我不要去考虑如何去解决子问题的事情。我要做的就是如何利用子问题搞好当前的问题。
那么子问题到底怎么去得到? 我们只考虑递归出口处的最基本的子问题的结果就行了。其他非最基本子问题都会自然得以解决。
'''
class Solution... | [
"54201792+Allen-C-Guan@users.noreply.github.com"
] | 54201792+Allen-C-Guan@users.noreply.github.com |
d5aec38822b3b128eeaf56abe575341e4218020a | 5917a63a6d16de893f54e86a70f5d881648112c1 | /Py1_spc-master/Lec13/main3.py | 6b43b167c5bbb78d74f14b4340ee7242ebe54db7 | [] | no_license | litded/lessons | f14e8e68577d417fc87eaca1c426f535baa04e8b | af2e0f6cae61878a833a7eebd7c2509d930ede48 | refs/heads/master | 2023-08-22T00:49:50.362770 | 2021-10-16T20:33:01 | 2021-10-16T20:33:01 | 417,940,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | """
Возвращаемые значения. Часть 2.
"""
def get_name():
name = "Alice"
return name
def get_void():
print("This function without RETURN!")
# Если функция не имеет при себе явно описанного блока return....
# то функция по умолчанию возвращает None
# Синтаксический сахар - можно написать голый re... | [
"i.ivlev@westwing.ru"
] | i.ivlev@westwing.ru |
9fa5d51a54777a623a4635f83371d802bf01eef2 | 73189d4d0b39efe5864d25aff07d8338ab8f3110 | /build/geometry2-melodic-devel/tf2_ros/catkin_generated/pkg.develspace.context.pc.py | 61eafca3339558f2801d2b75f77e862900bdfb75 | [] | no_license | jungwoohan72/Multi_Robot_Search_And_Rescue | a64590a0f899682c2429400c5cb6d4d8a7d7fd99 | 3e70f9e9b895a96e045f19a05780b091c16f2e60 | refs/heads/main | 2023-07-06T14:03:58.980624 | 2021-08-01T05:15:02 | 2021-08-01T05:15:02 | 379,856,303 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/morin-sol/ME652/src/geometry2-melodic-devel/tf2_ros/include".split(';') if "/home/morin-sol/ME652/src/geometry2-melodic-devel/tf2_ros/include" != "" else []
PROJECT_CATKIN_DEPENDS = "actionlib;ac... | [
"dream4future@kaist.ac.kr"
] | dream4future@kaist.ac.kr |
0e163fba7e7b98551f709ab3c3c7d44014488322 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/beta/usersactions_beta/azext_usersactions_beta/vendored_sdks/usersactions/operations/_users_outlook_task_groups_task_folders_tasks_operations.py | 3fd9123f0a63d2df59395ed32b06612e15190636 | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 5,104 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
82955319c63241b4f150c0b4add43218c218c9b3 | 97dfda123c402f814986784dc2bf25d78431bece | /bizaarproject/wsgi.py | f19099b762b73612c3682fc2488f554d1297937f | [] | no_license | danmcc3557/CA1 | 729ecfd6163520ff642a58e8ef3abc41571ea71c | 343acc5d1aa5ca5ffc43db2ab832475664ecfc48 | refs/heads/master | 2023-09-05T09:36:29.972906 | 2021-11-16T15:57:33 | 2021-11-16T15:57:33 | 426,693,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for bizaarproject 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"="
] | = |
bd718c714e5759b6c8cb8d801d9ce9a6f8eb29ce | a1716a6ef649a843260fbfa4a66ccd8a6439094c | /Keras_L2_CNN/Week1_CNNclassification.py | 9484010243270d43cec294cc819919b4669e3534 | [] | no_license | pondjames007/TensorflowPractice | e28a8933303210c81c1c03edafe5036bff12f1b4 | e67df557cf383d74c7ec8a8cd009411b7cc5fd91 | refs/heads/master | 2020-07-12T10:59:01.284550 | 2020-01-15T20:41:56 | 2020-01-15T20:41:56 | 204,799,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,878 | py | """
Use CNN to do Classification
"""
import subprocess
subprocess.check_output(['wget', '--no-check-certificate',
'https://storage.googleapis.com/mledu-datasets/cats_and_dogs_filtered.zip',
'-O', './cats_and_dogs_filtered.zip'])
import os
import zipfile
import tensorflow as tf
from tensorflow._api.v1.keras.optimiz... | [
"jameshuang@nyu.edu"
] | jameshuang@nyu.edu |
11dc59a1ed4fe55de8ea9b04875b8c923a194556 | 04a540847c1333c987a1957fd8d31197c594f6bb | /leetcode/617. Merge Two Binary Trees_1.py | 7f7c1b449e5502e4774a62f6c638faff9feb4958 | [] | no_license | k8440009/Algorithm | fd148269b264b580876c7426e19dbe2425ddc1ab | a48eba0ac5c9f2e10f3c509ce9d349c8a1dc3f0c | refs/heads/master | 2023-04-02T16:06:10.260768 | 2023-04-02T11:04:32 | 2023-04-02T11:04:32 | 200,506,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | """
두 이진 트리 병합
- 재귀 탐색
"""
from typing import Optional
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def mergeTrees(self, root1: Optional[TreeNode], root... | [
"k8440009@gmail.com"
] | k8440009@gmail.com |
ca14c4c9f925a129d4c8ddd3de75b5fb3e4c8267 | 3b1dc61a5d5f35e3e1ea612e21b160ce737dc85a | /dataprocess/transforms_v2.py | 22517d391bd2c6e4e88bc2f68cbf5b4fd43c1e43 | [] | no_license | ainklain/a_alloc | 2757c71347937c8ca62819bffca3a06506684851 | f9275d1bdf2a549e1d7fc4190e7fcfbe4526914a | refs/heads/master | 2023-05-09T14:16:29.509485 | 2021-06-01T06:11:06 | 2021-06-01T06:11:06 | 263,553,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,630 | py |
from abc import ABCMeta, abstractmethod
from functools import partial
import pandas as pd
import numpy as np
class BaseTransform:
@abstractmethod
def forward(self, x):
"""
x : [n_timesteps, n_features]
"""
pass
def __call__(self, x):
return self.forward(x)
c... | [
"ainklain@gmail.com"
] | ainklain@gmail.com |
01bf709b05693158964bc867aa127048a38a2d94 | caa16eb083841e91a70603653928564f9fd3fed2 | /Python/permutations.py | f224894c8305bff31d52e3959b9957db1d273725 | [] | no_license | guker/letcode | ea5198a3678c5f6ab2aebd61dc882153a4af1199 | a8c93ead3db7fe86c66b4aee9a8c67cc71cf95ec | refs/heads/master | 2021-01-24T04:08:33.839243 | 2015-08-11T11:19:24 | 2015-08-11T11:19:24 | 40,593,439 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | # Time: O(n!)
# Space: O(n)
#
# Given a collection of numbers, return all possible permutations.
#
# For example,
# [1,2,3] have the following permutations:
# [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3,2,1].
#
class Solution:
# @param num, a list of integer
# @return a list of lists of integers
... | [
"kamyu104@gmail.com"
] | kamyu104@gmail.com |
ed287ca023d35de1bf3c0f11d9c35b191d78a610 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03148/s414464368.py | d15bae3c7da7d8ff9d5dcb931e8bf5def1b30313 | [] | 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 | 762 | py |
n, k = list(map(int, input().split()))
sushi = []
for i in range(n):
sushi.append(list(map(int, input().split())))
point = 0
sushi_kind = set()
duplication = []
sushi.sort(key=lambda x: x[1],reverse = True)
for i in range(k):
point += sushi[i][1]
if sushi[i][0] in sushi_kind:
duplication.append(sus... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
90aeaf2daeadbe22cf82d1503865189d04b0c0b9 | 905a113a02171b1f63beae3701b2e16ff9d6fdc8 | /examples/cache_performance.py | 126339c01359ffcb2c4eab5a35010c057b3fd0c2 | [
"MIT"
] | permissive | oldas1/beem | ff177aa502d96759f448aa85a7b53d689fa5da30 | d0b9642bfe5f5df3004a59d4923ea497e3a944b3 | refs/heads/master | 2022-04-23T05:07:20.532355 | 2020-04-26T22:16:42 | 2020-04-26T22:16:42 | 259,263,705 | 1 | 0 | NOASSERTION | 2020-04-27T09:15:44 | 2020-04-27T09:15:43 | null | UTF-8 | Python | false | false | 2,120 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import sys
from datetime import datetime, timedelta
import time
import io
import logging
from beem.blockchain import Blockchain
from beem.block import Block
from beem.ste... | [
"holger@nahrstaedt.de"
] | holger@nahrstaedt.de |
519fb1f5952ab59f10dda6bdb75ef1f9cc40f907 | 4926667354fa1f5c8a93336c4d6e2b9f6630836e | /386.py | d21bb225b2d9bed78f30995e890cbafa6d2da357 | [] | no_license | nascarsayan/lintcode | 343b3f6e7071479f0299dd1dd1d8068cbd7a7d9e | 4da24b9f5f182964a1bdf4beaa8afc17eb7a70f4 | refs/heads/master | 2021-07-13T12:31:45.883179 | 2020-07-20T02:27:53 | 2020-07-20T02:27:53 | 185,825,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | from collections import Counter
class Solution:
"""
@param s: A string
@param k: An integer
@return: An integer
"""
def lengthOfLongestSubstringKDistinct(self, s, k):
# write your code here
cnt, size, uniq, mx, st = Counter(), len(s), 0, 0, 0
if size == 0 or k == 0:
return 0
for fl ... | [
"nascarsayan@iitkgp.ac.in"
] | nascarsayan@iitkgp.ac.in |
49e56700e079ebb78c2d0034ded05de5131a63af | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02396/s429895421.py | 15b5b0136224eed7d5a04e6c701cea8d06421db2 | [] | 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 | 117 | py | x = 0
while True:
x += 1
n = input()
if int(n) == 0:
break
print("Case " + str(x) + ": " + n) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dffc7c9ec4364d54acd835e17b75c92f69201249 | f21452fada48d27d06bbb47dd934043e0f2e3fcf | /tests/algos/torch/test_utility.py | 16773faf5216c73f27814b698b138afd1dae7943 | [
"MIT"
] | permissive | kintatta/d3rl | ff72d794f42af7218df73c2102bc1a56e5cfa688 | 0674c4898927a53f36c5c875d8f217337f22d364 | refs/heads/master | 2022-12-26T05:20:55.280102 | 2020-10-09T14:29:11 | 2020-10-09T14:29:11 | 302,816,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | import numpy as np
import torch
import pytest
import copy
from unittest.mock import Mock
from d3rlpy.algos.torch.utility import soft_sync, hard_sync
from d3rlpy.algos.torch.utility import set_eval_mode, set_train_mode
from d3rlpy.algos.torch.utility import freeze, unfreeze
from d3rlpy.algos.torch.utility import torch_... | [
"takuma.seno@gmail.com"
] | takuma.seno@gmail.com |
d3d06096d1defdb26c8a4c8b37f08dd6a66326a9 | 31900bdf5648061a3093230711c5394e20b90436 | /usr/lib/enigma2/python/Plugins/Extensions/MediaPortal/resources/hosters/nowvideo.py | ce787e3da4c15042643933229ca18cdc3e5ba3fe | [] | no_license | linuxbox10/enigma2-plugin-extensions-mediaportal | aa6f14ecfc42ce91e22c487070541459a1ab820c | e6b388918c186442718e7200e03c83d0db260831 | refs/heads/master | 2021-05-01T18:50:50.332850 | 2018-02-10T11:33:48 | 2018-02-10T11:33:48 | 121,009,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | # -*- coding: utf-8 -*-
from Plugins.Extensions.MediaPortal.plugin import _
from Plugins.Extensions.MediaPortal.resources.imports import *
from Plugins.Extensions.MediaPortal.resources.messageboxext import MessageBoxExt
def nowvideo(self, data, url, ck):
dataPost = {}
r = re.findall('input type="hidden".*?name="(.*... | [
"jaysmith940@hotmail.co.uk"
] | jaysmith940@hotmail.co.uk |
12ced604368191dd1c0e6232d77673496d0d2e8e | 41f5fb2b76efe6f7a10c96ff197b0785e247ca12 | /gather/gathered/broward_dbhydro_get_reclen.py | e8dd4e3f83dbf8d3d9fc6b3de457931dcff8f266 | [
"BSD-2-Clause",
"BSD-Advertising-Acknowledgement"
] | permissive | jtwhite79/my_python_junk | 2f33d102e0e2875cf617b11dc31127678e9e9756 | 2ee0044f9b455d40e3b1967081aa7ac2dbfa64c9 | refs/heads/master | 2021-01-23T05:45:21.432421 | 2014-07-01T17:30:40 | 2014-07-01T17:30:40 | 4,587,435 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | import os
import pestUtil as pu
import dbhydro_util
stg_dir = 'SW\\STG\\'
stg_files = os.listdir(stg_dir)
nrecs = 0
for file in stg_files:
#dbhydro_util.load_series(stg_dir+file)
#smp = pu.smp(stg_dir+file,load=True)
f = open(stg_dir+file,'r')
for line in f:
nrecs += 1
f.close()
print nrec... | [
"jtwhite79@yahoo.com"
] | jtwhite79@yahoo.com |
d0d3f1cddb1938eaf9cec4e4ac808a6f018b3dbc | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Data Structures/Advanced Data Structures/Segment Trees/Binary Modulo (P2SME)/test.py | 38cf14c43973f5afa31a8065faaa7db712143015 | [
"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 | 657 | py | import io
import unittest
from contextlib import redirect_stdout
from unittest.mock import patch
class TestQ(unittest.TestCase):
@patch('sys.stdin.readline', side_effect=[
'1',
'01010101',
'5',
'0 1 3',
'1 2 1',
'0 2 5',
'1 3 1',
'0 0 7',
])
... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
ff08e3a26e3fa26128b8e411866fcd197ff044bd | b33ad1c8560fc22a7e4ae9dec7f3c778b70941fa | /abc148/d.py | 14f317ce9ff9e5e018c034d644fb0d879fbef9bc | [] | no_license | Tommy-somen/atcoder_record | 36f226ffe6465dd5f8ae4986195510d00da46ffb | 0e549a72cec3b87accefc52d5cd56420251361b9 | refs/heads/master | 2023-08-16T10:23:39.609512 | 2021-09-27T11:38:57 | 2021-09-27T11:38:57 | 410,585,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | n = int(input())
a = list(map(int,input().split()))
inx,cnt = 1,0
for i in range(n):
if a[i] != inx:
cnt += 1
else:
inx += 1
if n == cnt:
print(-1)
else:
print(cnt)
| [
"tomohiro1015w@gmail.com"
] | tomohiro1015w@gmail.com |
071da57b138d2467b16c09c78c676eae75380f31 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_1/Python/ashashwat/1.py | 302bf631a7f5094ce06dd7172c1f76cddcd563ad | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
from collections import defaultdict
from math import factorial as f
from fractions import gcd as g
from fractions import Fraction as F
import math
T = int (raw_input ())
for t in range (1, T + 1):
a, b = [int (i) for i in raw_input ().split ('/')]
x = F (a, b)
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
b17624f67c8834b65ec80699a3b2dde49b37c721 | cd77df7e0adf69f78cd86e0b09ffeba7acd7e1ba | /utilspy/diff.py | 184e637a7b20471b9bf5db2d6674cc8dc2076d0f | [] | no_license | huletlab/apparatus3-seq | 963b6ded59f53ae6ad714569559fe6f2cd08b610 | 3520f243c1d6d47dcf126cd4aa9e0f6cdaf2fb9a | refs/heads/master | 2021-01-25T04:53:00.095687 | 2014-02-21T04:42:41 | 2014-02-21T04:42:41 | 3,621,818 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | import numpy
y1= numpy.fromfile('L:/software/apparatus3/seq/seqstxt/before_before.txt',dtype=float, sep=',')
y2= numpy.fromfile('L:/software/apparatus3/seq/seqstxt/before.txt',dtype=float, sep=',')
print y1.size, y2.size
f1 = open('L:/software/apparatus3/seq/seqstxt/before_before.txt','r')
f2 = open('L:/... | [
"pmd323@gmail.com"
] | pmd323@gmail.com |
dba3a1ea0b29976b73df3803a0788b26e7188cd7 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2749/60705/296130.py | c93d946e9c9cedca80126c57852ea83ad445ce2b | [] | 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 | 18 | py | print(1 5 4 2 3)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
9b2fc253941199b259b7d2f419738079ede02bdd | 945890345cd16accfc1f47d717cfbf2c8f7165c0 | /src/dc/services/WalletAPIService.py | b7fbc768703609c724e52cf461bb430433a195c9 | [
"MIT"
] | permissive | dc-blockchain/dc-core | 658fc096c8eb628c61d763d1ebdb48fe23b97ac0 | fc6af8ce04d7b52f94c069f6ec05b0e419e07d70 | refs/heads/main | 2022-12-20T14:35:15.837056 | 2020-10-15T03:57:37 | 2020-10-15T03:57:37 | 304,181,968 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,068 | py | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
from pydclib.pydclib import bin2hstr
from dc.generated import dcwallet_pb2
from dc.generated.dcwallet_pb2_grpc import WalletAPIServicer
from dc.services.grpcHelper impo... | [
"72899004+dc-blockchain@users.noreply.github.com"
] | 72899004+dc-blockchain@users.noreply.github.com |
9f66cea721ed94503a91abf4e5c2522493626856 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/279/104634/submittedfiles/testes.py | 53b97a94b5771c022b839733178b493b365d624b | [] | 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 | 1,123 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
import random
a=0
resultado='S'
escolha=['X','O']
imagem=[[' ',' ',' '],[' ',' ',' '],[' ',' ',' ']]
posicao=[['00','01','02'],['10','11','12'],['20','21','22']]
while(True):
simbolo=(input('Qual simbolo deseja utilizar ? '))
if simbolo=='X' or simbolo=='O':
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
36954674c2332ab102d6485a7b8bd1c425885caa | 55faff05d101b7dc0a46669c3f8f2ae8e65d4ada | /hypnobox/migrations/0002_auto_20160909_1835.py | 869565d6f3ff28c8174c4217997b7c472317bd38 | [
"MIT"
] | permissive | fgmacedo/hypnobox-django | e1e81277b0e7ebc8b98b242b006d1148169ee88a | 6e4a5c4d1ec4c8b8931e6da91efb3a82320ca648 | refs/heads/develop | 2023-01-06T22:10:35.240230 | 2016-11-21T19:37:50 | 2016-11-21T19:37:50 | 67,744,850 | 0 | 0 | MIT | 2022-12-26T20:29:21 | 2016-09-08T22:30:01 | Python | UTF-8 | Python | false | false | 594 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-09 21:35
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hypnobox', '0001_initial'),
]
operations = [
m... | [
"fgmacedo@gmail.com"
] | fgmacedo@gmail.com |
206b925b820fcacb27ff7857bd5288f6fc093a32 | d4b344780e893a19d44aed51ebfe514c91e920c2 | /aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/PublishSurveyRequest.py | 96cb91e4fea7a055ba9e817d8e78cb7f5fd0c69a | [
"Apache-2.0"
] | permissive | WenONGs/aliyun-openapi-python-sdk | 6d164160eac7a8020e3b8d1960d170e08d2c8f23 | b6de95a32030b421665c0833c9d64d92fcaf81c8 | refs/heads/master | 2023-04-28T06:36:51.740098 | 2021-05-17T09:37:00 | 2021-05-17T09:37:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
532bd882071670d5c3b497865fb66647b7960f75 | bb71c03639010a22688a2955d6cd80ce3bf51a88 | /menu/migrations/0003_auto_20180918_1130.py | 895a760633b46be57554ed886e943970dd2a77f5 | [] | no_license | jhoover4/improve-a-django-project | 217732cf50eb48915b2566d657e67cd89551c5af | a9b35e708ca0fc72b4b7ee696631c233a718d820 | refs/heads/master | 2020-03-28T07:09:52.763927 | 2018-09-19T17:21:42 | 2018-09-21T02:36:42 | 147,884,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2018-09-18 18:30
from __future__ import unicode_literals
from django.db import migrations, models
import datetime
def update_expired_date(apps, schema_editor):
Menu = apps.get_model('menu', 'Menu')
for menu in Menu.objects.all():
try:
... | [
"jordan@hoovermld.com"
] | jordan@hoovermld.com |
f8d5e32469f4508fc5b8a02b2e779ba4a9a468b7 | 8b8f1fceb9e72b385d269e2f8f0c2d49030064c1 | /ray/__init__.py | ffb599a385863b6dc59e332c58bcc886f3c23015 | [
"MIT"
] | permissive | pirica/ray | c93e82d20e6b919f1653d351f68ea18cbc521fe9 | b97583cd957fcdbaed0fd51ea0975ec5a63c27cf | refs/heads/master | 2021-10-22T04:40:20.123182 | 2019-03-08T05:39:50 | 2019-03-08T05:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from .http import HTTPClient as Client
__version__ = '0.0.1'
__author__ = 'mental'
| [
"m3nta1@yahoo.com"
] | m3nta1@yahoo.com |
8f7e3dc695f84d0a4697961f552a156a71ee55ad | 536538af28cfe40e10ff1ce469cd0f81e8b3a8fe | /binary_tree_zigzag_level_order_traversal.py | 347c5f2fa6f17ff8536a1eba3ab6e897881a62d2 | [] | no_license | ShunKaiZhang/LeetCode | 7e10bb4927ba8581a3a7dec39171eb821c258c34 | ede2a2e19f27ef4adf6e57d6692216b8990cf62b | refs/heads/master | 2021-09-01T07:41:03.255469 | 2017-12-25T19:22:18 | 2017-12-25T19:22:18 | 104,136,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | # python3
# Given a binary tree, return the zigzag level order traversal of its nodes' values.
# (ie, from left to right, then right to left for the next level and alternate between).
# For example:
# Given binary tree [3,9,20,null,null,15,7],
# 3
# / \
# 9 20
# / \
# 15 7
# return its z... | [
"noreply@github.com"
] | ShunKaiZhang.noreply@github.com |
c8bb87201dfc25e8bc7419858495d30883748a4e | 768a6a9db5b2824f1e895b8b8e8047294806e80a | /Spider/Spider/tools/ip_clean.py | 94ee9c4afd45c8edcae74b7ed9d56b5fd20541ce | [] | no_license | heqiang/SearchEngine | 8ffb974ba33aa9ccc306de1caf4e7a3c5f4ca0ad | ccaa17d350fb34a0b0e984951bd8d82588f0a181 | refs/heads/master | 2023-05-28T13:05:34.568652 | 2022-03-10T07:46:13 | 2022-03-10T07:46:13 | 192,917,599 | 1 | 0 | null | 2023-05-22T22:17:35 | 2019-06-20T12:39:01 | Python | UTF-8 | Python | false | false | 1,508 | py | import pymysql
from fake_useragent import UserAgent
import requests
import threading
# import ThreadClass
conn=pymysql.connect(
host='localhost',
user='root',
password='1422127065',
db='bishe',
charset='utf8'
)
cursor=conn.cursor()
ua=UserAgent()
def delete(ip):
print("-|开始删除无用ip:{0}".form... | [
"1422127065@qq.com"
] | 1422127065@qq.com |
bc7ad473abe58d55e81ef30ef051d12a3b8cd654 | 338c1ed5683f2195d86cab0cab521b95efd8cae8 | /easy/query_board.py | 44a9c550707f9cec6137c0bf74f63b6134863cca | [] | no_license | michaelrbock/codeeval | 59c1a7f531d8fdaeb609f269c1f3f93732825ec5 | 6239aaff776fad98971d40b00940bff60fb255c8 | refs/heads/master | 2020-05-04T22:26:29.937075 | 2014-07-26T19:03:01 | 2014-07-26T19:03:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | import sys
# read in from file
input = open(sys.argv[1], 'r')
lines = []
for line in input:
lines.append(line.strip())
input.close()
board = []
for i in xrange(256):
board.append([0]*256)
for i, line in enumerate(lines):
command = line.split()
if command[0] == 'SetRow':
for j in xrange(256)... | [
"mykel.bock@gmail.com"
] | mykel.bock@gmail.com |
d8c9abd59b7dc3024979c75851ef7bea79ed60de | 7620ded9ed5281d3d291972e908116168d03964f | /gram/migrations/0005_editor_bio.py | 6cd8819e795190f844390d4a5d6b4936f48b198d | [] | no_license | vincentmuya/the-gram | bd7da7e3e717101cfac72b1943dc198694d87527 | fa82a0ceb2aeb196ef420e5175e656fba0eda958 | refs/heads/master | 2021-01-25T13:17:17.195984 | 2018-03-14T11:42:01 | 2018-03-14T11:42:01 | 123,543,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-05 07:37
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gram', '0004_auto_20180305_0001'),
]
operations = [
migrations.AddField(
... | [
"vincentmuya13@gmail.com"
] | vincentmuya13@gmail.com |
7771c610ac7b1f571f35e1ba919e376887bf8d68 | c51eef37bb983a9c35635c7ccc96a0cf689a7438 | /sites/naver_finance/12_parse_bps.py | 93ac1878afb03ecae05b2298dbefd3fe31e7a43d | [] | no_license | Kyeongrok/python_crawler | 0a717b43be36584af1b0f7c1ad0c79108a5d11e0 | 5a5da8af7bb080f752a9a066741ac8adab136a3a | refs/heads/master | 2022-09-13T03:15:08.053639 | 2022-08-02T15:45:03 | 2022-08-02T15:45:03 | 124,719,435 | 40 | 34 | null | 2019-02-27T08:29:52 | 2018-03-11T03:20:32 | HTML | UTF-8 | Python | false | false | 2,685 | py | from libs.crawler import crawl
from bs4 import BeautifulSoup
import requests, re
'''
1.매출액-시총 >=0
2.(영업이익*10)배 - 시총 >=0
3.bps >=0 --- 0
4.bps-현재가 >=0 --- 0
5.(유보율:부채비율 = 5:1)<= 20%
6.이익잉여금 >=0
7.이익잉여금-시총 >=0
8.영업이익증가율 >=0
9.per <=10
10.roe >=0
11.roa >=0
12.pbr <=1
13.eps >=0
'''
url = 'https://finance.naver.com/... | [
"oceanfog1@gmail.com"
] | oceanfog1@gmail.com |
95157c9156dc3020513173a363cd01d4530d332b | 498fd33fcb93ea53ae8b55565a3cfac0d80ad424 | /bokeh/tests/test_resources.py | 7ce32ce4690d703e8eb5b44383cfe9d63b561639 | [] | no_license | HyperionAnalytics/bokeh | c23104978988a507e08dcf70894258bcd3562274 | 7d889505a2ec069041dbfa3daf70395e473c3bac | refs/heads/master | 2020-04-06T06:27:08.442860 | 2014-08-26T14:29:06 | 2014-08-26T14:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,223 | py | import unittest
import bokeh
import bokeh.resources as resources
WRAPPER = """$(function() {
foo
});"""
WRAPPER_DEV = '''require(["jquery", "main"], function($, Bokeh) {
$(function() {
foo
});
});'''
class TestResources(unittest.TestCase):
def test_basic(self):
r = resources.Resourc... | [
"bryanv@continuum.io"
] | bryanv@continuum.io |
76cd8a5c69e8f31902f6c1f1bcebb1090e76716d | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev3426-3457/left-trunk-3457/exe/webui/truefalseelement.py | f15603272a78cf3bc88de0f0603722b248534298 | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,531 | py | """
TrueFalseElement is responsible for a block of question. Used by TrueFalseBlock.
"""
import logging
from exe.webui import common
from exe.webui.element import TextAreaElement
log = logging.getLogger(__name__)
class TrueFalseElement(object):
"""
TrueFalseElement is responsible for a block of question... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
ea506ef01a97b930d0c98568de59edafa60481e6 | 7c7a0c7a3c52f1c3b8a504a7ed671647695137e0 | /venv/Scripts/pip-script.py | df90d1ed47de1a88d92f27de1c497534c8d75080 | [] | no_license | mdShakilHossainNsu2018/official_django | 6fd7ee8673c35ddcd1f9d5a89fac4f32b19ac27c | bfb1bbd198888abcd84dffc4d7e83faeb448b1e2 | refs/heads/master | 2022-04-26T10:37:05.521377 | 2020-04-29T21:20:29 | 2020-04-29T21:20:29 | 259,578,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!C:\Users\shaki\PycharmProjects\official_django\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"shakilnsu2018@gmail.com"
] | shakilnsu2018@gmail.com |
ebc4b94e23735fca73c40dd699aadcd0f48b36a6 | d2845579ea6aa51a2e150f0ffe6ccfda85d035ce | /kernel/components/intersection/param.py | 48273264044662812c515f52aad72fe6bbcc4fbf | [
"Apache-2.0"
] | permissive | as23187/WeFe | d8de9ff626f9f3e5d98e0850b0b717a80fd73e72 | ba92871d4b1d2eef6c606c34795f4575e84703bd | refs/heads/main | 2023-08-22T12:01:06.718246 | 2021-10-28T01:54:05 | 2021-10-28T01:54:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,315 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2021 Tianmian Tech. 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/LI... | [
"winter.zou@welab-inc.com"
] | winter.zou@welab-inc.com |
9b17f09e95d1c31eb22816739bc460fffcf1885d | 21f98d8bb31264c94e7a98fb8eb806d7f5bd396e | /322_Coin_Change.py | 78e841de38e65f2f56347f24746e9b37d96a52fe | [] | no_license | mcfair/Algo | e1500d862a685e598ab85e8ed5b68170632fdfd0 | 051e2a9f6c918907cc8b665353c46042e7674e66 | refs/heads/master | 2021-10-31T01:25:46.917428 | 2021-10-08T04:52:44 | 2021-10-08T04:52:44 | 141,460,584 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | class Solution(object):
def coinChange(self, coins, amount):
"""
:type coins: List[int]
:type amount: int
:rtype: int
"""
#unlimited coin change
#need[b] := #of coins to make a change 'b'
need =[0] + [float('inf')]*amount
for ... | [
"noreply@github.com"
] | mcfair.noreply@github.com |
23df93d317d5228698133b7e6d3e0235c71ba6cc | 5bd5de114f8a0721cee58bb3eb9d993095fd0876 | /stock_custom/wizard_product_mutation.py | 9261875ecf31147486afcafadbedbf20feee8f14 | [] | no_license | hendrasaputra0501/o7kite_dmst | 35ce25494cf536873f3b6eaffc4a78bf02ddeb42 | e8ea609541b831511ba1f3f688d97732dfa879da | refs/heads/master | 2020-04-25T01:31:33.471461 | 2019-02-25T01:48:07 | 2019-02-25T01:48:07 | 172,410,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,857 | py | from openerp.osv import fields,osv
import openerp.addons.decimal_precision as dp
from tools.translate import _
from lxml import etree
from openerp.osv.orm import setup_modifiers
from datetime import datetime
import time
class wizard_product_mutation(osv.osv_memory):
_inherit = "wizard.product.mutation"
def action_... | [
"hendrasaputra0501@gmail.com"
] | hendrasaputra0501@gmail.com |
8a84fe7bc3c0fc0894fde1bfc9b969fb327fa136 | 34de2b3ef4a2478fc6a03ea3b5990dd267d20d2d | /Python/_python_modules/unittest/fibonacci.py | e9cb48c6099d63569124520d21159f163deb6452 | [
"MIT"
] | permissive | bhishanpdl/Programming | d4310f86e1d9ac35483191526710caa25b5f138e | 9654c253c598405a22cc96dfa1497406c0bd0990 | refs/heads/master | 2020-03-26T06:19:01.588451 | 2019-08-21T18:09:59 | 2019-08-21T18:09:59 | 69,140,073 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | #!python
# -*- coding: utf-8 -*-
#
# Author : Bhishan Poudel, Physics PhD Student, Ohio University
# Date : Jul 21, 2017 Fri
# Last update :
#
# Imports
import doctest
def fib(n):
"""
Calculates the n-th Fibonacci number iteratively
>>> fib(0)
0
>>> fib(1)
1
>>> fib(10)
... | [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
f18dea1a75df79cf2877cb6103f8e810fec51ba9 | 648f742d6db2ea4e97b83c99b6fc49abd59e9667 | /common/test_utils/contracts/simulation/mock_product/supervised_savings_deposit_account.py | 8d66f952dab8adf48c532ee676c7a27f0999f380 | [] | no_license | jmiller-tm/replit | c56ce63718f6eb2d9b53bd09d3f7b3ef3496cb86 | c8e6af3268c4ef8da66516154850919ea79055dc | refs/heads/main | 2023-08-30T00:49:35.738089 | 2021-11-16T23:09:08 | 2021-11-16T23:09:08 | 428,809,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,182 | py | # Copyright @ 2020 Thought Machine Group Limited. All rights reserved.
"""
This is a contract for testing vault caller, sourced from:
/projects/goldfinger/contracts/savings_deposit_account.py
"""
api = "3.4.0"
version = "1.0.4"
display_name = "Supervised US Savings Deposit Account"
summary = "Savings Deposit Account: A... | [
"jmiller@jmiller-tm00769-mbp.nomad.thomac.net"
] | jmiller@jmiller-tm00769-mbp.nomad.thomac.net |
59448244030550a58a263906206bc941679ee131 | be084131635850062abd17cdb037e1161725f56c | /Wrapping/Python/vtkvtg/hybrid.py | 04d45a20d6423b8e7e85073c18afbe7c0ddb846e | [] | no_license | emonson/vtkVTG | 177a80820e27aad7fc9fb1d7b14cee4155166d00 | 767f35ae18142133f7ffd1a9ea6c22dfd59acac7 | refs/heads/master | 2016-09-10T00:53:25.613217 | 2012-06-05T14:45:12 | 2012-06-05T14:45:12 | 699,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | """ This module loads all the classes from the VTK Hybrid library into its
namespace. This is a required module."""
import os
if os.name == 'posix':
from libvtkvtgHybridPython import *
else:
from vtkvtgHybridPython import *
| [
"emonson@cs.duke.edu"
] | emonson@cs.duke.edu |
a665cbf59a3147d170e05d21793e326740771fb1 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-iotanalytics/huaweicloudsdkiotanalytics/v1/model/node_content_req.py | 7ecc68c267ff4a458e37e65c2f437fbb9f4b3b61 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,960 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class NodeContentReq:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute nam... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
3f23307214e7a4e5dcc595c860deb926e71ab218 | 7437e6b58750275933939321b6b9dc5eb6891a1c | /biothings/hub/api/handlers/source.py | 0750920b7dd125ff13da9436d4c14eedf13e5bc6 | [
"Apache-2.0"
] | permissive | Quiltomics/biothings.api | b6caa939a90e0fd1db35124b64ecdc34babdf5c7 | ab54243e8833888e0331a988a2a13907d17442ad | refs/heads/master | 2020-04-23T12:54:16.731641 | 2019-02-16T17:43:28 | 2019-02-16T19:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,801 | py | import asyncio
import logging
import tornado.web
from collections import OrderedDict
from .base import BaseHandler
from biothings.utils.dataload import to_boolean
class SourceHandler(BaseHandler):
def sumup_source(self,src):
"""Return minimal info about src"""
mini = OrderedDict()
mini[... | [
"slelong@scripps.edu"
] | slelong@scripps.edu |
4f69bce313f30ba5697091f2746782807a09ad1d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_winded.py | a4f8fd77780cbfc22bfc25f69c08d1918a504218 | [
"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 | 460 | py |
#calss header
class _WINDED():
def __init__(self,):
self.name = "WINDED"
self.definitions = [u'temporarily unable to breathe, either when hit in the stomach or after taking hard physical exercise: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectiv... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
28c1a389ae191a498b40a324ed913a9489f19eda | a3283e723b9711779a4f6485dbbaf58f8b86cda1 | /d3rlpy/algos/bcq.py | 29b1ea67d350e223f4dc177a31dcf308e585a06d | [
"MIT"
] | permissive | ritou11/d3rlpy | 50ed48af10aa57c0e0b966c2ff52a5d62ba97a48 | ce18c8584723faf4d5c3d3221b6122f923162987 | refs/heads/master | 2023-02-12T04:07:02.996827 | 2021-01-08T14:42:04 | 2021-01-08T14:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,540 | py | from typing import Any, List, Optional, Sequence, Union
import numpy as np
from .base import AlgoBase, DataGenerator
from .torch.bcq_impl import BCQImpl, DiscreteBCQImpl
from ..augmentation import AugmentationPipeline
from ..optimizers import OptimizerFactory, AdamFactory
from ..encoders import EncoderFactory
from ..... | [
"takuma.seno@gmail.com"
] | takuma.seno@gmail.com |
feadd1b682627b154efe8b4af6e59c03c941920b | c0344beb70872a4efb097fa3cf39cc1e8d01dd89 | /neural_networks_from_scratch/chap_2.py | a134de791eedf26841bc93dd12ee68e466930106 | [] | no_license | szhongren/nnfs | cb3b819a509545cf7d5d78e18b053b0a238d4f8a | 8e6783745d0d42dcf50f2347d5175857bf290890 | refs/heads/main | 2023-02-16T04:22:04.734752 | 2020-12-11T02:47:01 | 2020-12-11T02:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | py | import numpy as np
def main():
print("chap_2")
single_neuron()
single_neuron_alt()
three_neurons()
three_neurons_loop()
dot_product()
single_neuron_numpy()
three_neurons_numpy()
matrix_product()
three_neurons_batched_numpy()
print("=" * 100)
def single_neuron():
input... | [
"shao.zhongren@gmail.com"
] | shao.zhongren@gmail.com |
cb83f3868e5f1ba544615d3cbf9eae9e7a063a65 | 861d25fe3985340dae621d179f7af368e0dd7f39 | /stockweb/stock/maintest.py | b0e4d03f456e78a8ad2feb9e649b08d85c6fec21 | [] | no_license | zhuwei302/python | 1ebcfac3e4f208ba81af93d13b8857bea9497862 | dfad635149b8f307ae0eb5b2b8c348843de663bb | refs/heads/master | 2021-01-19T18:44:32.843216 | 2018-09-18T15:17:21 | 2018-09-18T15:17:21 | 101,160,521 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2016/12/20 0020 17:36
# @Author : Aries
# @Site :
# @File : maintest.py
# @Software: PyCharm
if __name__=='__main__':
dic = {'000001':1.32,'20002':1.24,'60003':1.0,'60005':2.1}
new_dic = {}
l = sorted(dic.iteritems(), key=lambda d: d[1], r... | [
"244840434@qq.com"
] | 244840434@qq.com |
7c1956434714aa0adb907492eb23dcfe1ac80279 | 9f5c2728b1ab844bf3110cce78e4083283943ebb | /DataVisualization/chapter_15/dice_visual.py | dc0f108511ae1e6222c4a75f07bb80d88ee689de | [] | no_license | leetuckert10/CrashCourse | 9838448e75636132169498f152200651a05181c4 | 3f35958de497026da5e7d0d0a52fe3f20f2ef196 | refs/heads/master | 2023-05-01T11:56:27.382141 | 2020-04-02T19:11:07 | 2020-04-02T19:11:07 | 249,979,785 | 0 | 0 | null | 2023-04-21T20:48:10 | 2020-03-25T13:01:08 | Python | UTF-8 | Python | false | false | 1,857 | py | # dice_visual.py
# This version and the Die class have enhancements beyond what was laid out
# in Crash Course such that rolling multiple dice is made much easier. You
# only change the number of dice in one place.
from typing import List, Dict
from plotly.graph_objects import Bar, Layout # type: ignore
from plotly... | [
"n4tlt.radio@gmail.com"
] | n4tlt.radio@gmail.com |
c16f345b9e70eca292351541d6fcb0f362b90723 | 2c4763aa544344a3a615f9a65d1ded7d0f59ae50 | /waflib/Tools/compiler_fc.py | a2a3032ab4e091a185ac288c0cd38ca181ebc167 | [] | no_license | afeldman/waf | 572bf95d6b11571bbb2941ba0fe463402b1e39f3 | 4c489b38fe1520ec1bc0fa7e1521f7129c20f8b6 | refs/heads/master | 2021-05-09T18:18:16.598191 | 2019-03-05T06:33:42 | 2019-03-05T06:33:42 | 58,713,085 | 0 | 0 | null | 2016-05-13T07:34:33 | 2016-05-13T07:34:33 | null | UTF-8 | Python | false | false | 2,235 | py | #!/usr/bin/env python
# encoding: utf-8
import re
from waflib import Utils, Logs
from waflib.Tools import fc
fc_compiler = {
'win32' : ['gfortran','ifort'],
'darwin' : ['gfortran', 'g95', 'ifort'],
'linux' : ['gfortran', 'g95', 'ifort'],
'java' : ['gfortran', 'g95', 'ifort'],
'default': ['gfortra... | [
"anton.feldmann@outlook.de"
] | anton.feldmann@outlook.de |
fbe16676768a4832f58e641a6e26c7336eb8ee39 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /1029/1029.two-city-scheduling.233252483.Accepted.leetcode.py | ff9ecc8ea5b98d76c93e827e263c8240e0de39b0 | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | class Solution(object):
def twoCitySchedCost(self, costs):
result = 0
costs = sorted(costs, key=lambda x: x[0] - x[1])
for index in range(len(costs)):
if index < len(costs) // 2:
result += costs[index][0]
else:
result += costs[index][1]... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
8db86b66c9fff23e9398a22702a42bbb242c2967 | 8ef5a09d76a11c56963f18e6a08474a1a8bafe3c | /leet_code/371. Sum of Two Integers.py | de6f6d30d4cd6e9f11ea559e4459cd6409de9100 | [] | no_license | roiei/algo | 32c4677649c7666db148f6183fbfbf66c8b1969f | ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec | refs/heads/master | 2022-04-01T19:21:27.768675 | 2022-02-19T06:15:29 | 2022-02-19T06:15:29 | 169,021,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import time
from util.util_list import *
from util.util_tree import *
import copy
import collections
import heapq
from typing import List
class Solution:
def getSum(self, a: int, b: int) -> int:
while b != 0:
a = (a ^ b) & 0X1FFFFFFFF
b = ((a & b) << 1) & 0X1FFFFFFFF... | [
"hyoukjea.son@hyundai.com"
] | hyoukjea.son@hyundai.com |
341fc784d325d2865edbc349b267f8280aaf7129 | d2aae22870acefa1353dca86351ae94217d0f026 | /12.reinforcement_learning_with_mario_bros/2023/hard_coding/2.0.clustering_images.py | 952824e83fbf69324924dfe264774515a1224b4f | [
"MIT"
] | permissive | yingshaoxo/ML | 9c3169f2f8c7e98e0ad5ddc56fe81797a10df420 | 038fb5afe017b82334ad39a256531d2c4e9e1e1a | refs/heads/master | 2023-08-03T10:51:30.779007 | 2023-08-02T17:45:30 | 2023-08-02T17:45:30 | 137,086,679 | 5 | 1 | MIT | 2023-05-16T10:31:28 | 2018-06-12T14:49:58 | Python | UTF-8 | Python | false | false | 1,810 | py | from auto_everything.disk import Disk
disk = Disk()
from sewar.full_ref import msssim, uqi
import cv2
current_folder = disk.get_directory_path(__file__)
output_folder = disk.join_paths(current_folder, "seperated_classes")
disk.create_a_folder(output_folder)
#images = disk.get_files(folder=disk.join_paths(current_fo... | [
"yingshaoxo@gmail.com"
] | yingshaoxo@gmail.com |
cafdf9e580d62bc12021c2f8ceb4516dfe36b24a | 3d0a2390047e0ede5df661255f6e72fab5d534f2 | /blog/urls.py | 9ddb0b0677e59536ec59685841269e5d21058474 | [] | no_license | sompodsign/Django_Personal_portfolio | 5f932e3ba27f802768735d6f91ef105ad168289a | 9e833a7728f46cd33c2f512a3840e70f49a2dd08 | refs/heads/master | 2022-12-12T01:59:14.770507 | 2020-08-31T07:45:41 | 2020-08-31T07:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py |
from django.urls import path
from blog import views
app_name = 'blog'
urlpatterns = [
path('', views.all_blogs, name='all_blogs'),
path('<int:blog_id>/', views.detail, name='detail'),
]
| [
"sompodsign@gmail.com"
] | sompodsign@gmail.com |
134719d8c196e98b85190c6ef8ddb801276374aa | 8acb7f5f98217fc3aacaaefa104c499627e90aae | /0x0B_redis_basic/exercise.py | cd0c1f852150144cd3eb35a5847e233b07baeb49 | [] | no_license | zulsb/holbertonschool-web_back_end | cb756386382eaaff373a37732247ca8d2c5f7a18 | 15931a555a28ed3bed5822d0f8b4b4c9a5f6a985 | refs/heads/main | 2023-05-06T00:52:40.278552 | 2021-05-22T21:33:15 | 2021-05-22T21:33:15 | 305,504,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | #!/usr/bin/env python3
""" Redis module.
"""
import redis
import uuid
from functools import wraps
from sys import byteorder
from typing import Union, Optional, Callable
def count_calls(method: Callable) -> Callable:
""" Method that count calls.
"""
key = method.__qualname__
@wraps(method)
def wra... | [
"zulsb2093@gmail.com"
] | zulsb2093@gmail.com |
a7735f2687501d0c866a019685343953dd831d98 | aca209472c7288d69adf57124c197baf98c7a6e7 | /OpenCV讀者資源/讀者資源/程式實例/ch9/ch9_12.py | 100c8a3ac4fffab2f56bfd9d003d3496ab4b1ea9 | [] | no_license | Hank-Liao-Yu-Chih/document | 712790325e48b9d8115d04b5cc2a90cd78431e61 | fafe616678cd224e70936296962dcdbbf55e38b3 | refs/heads/master | 2022-09-22T12:40:33.284033 | 2022-09-08T00:33:41 | 2022-09-08T00:33:41 | 102,203,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # ch9_12.py
import cv2
import numpy as np
thresh = 127 # 定義閾值
maxval = 255 # 定義像素最大值
src = np.random.randint(0,256,size=[3,5],dtype=np.uint8)
ret, dst = cv2.threshold(src,thresh,maxval,cv2.THRESH_TOZERO)
print(f"src =\n {src}")
print(f"threshold = {ret}")
print(f"dst =\n {... | [
"hank.liao@vicorelogic.com"
] | hank.liao@vicorelogic.com |
ffd1dd4408a8e7560f6281565bad2cef09a337d5 | 56cce3fee2e3d69d60958eb2aacc4f65fc3d2230 | /tests/test_graph_view.py | 2bcd8da7e69e4d68de3118a177d781ae621ceca7 | [
"BSD-3-Clause"
] | permissive | nokia/PyBGL | 52c2f175d1dbccb15519f8a16de141845d0abaf3 | 707f2df32ede7d9a992ea217a4791da34f13e138 | refs/heads/master | 2023-08-08T04:46:24.931627 | 2023-08-03T16:31:35 | 2023-08-03T16:31:35 | 148,536,169 | 12 | 3 | BSD-3-Clause | 2023-08-03T16:31:36 | 2018-09-12T20:11:36 | Python | UTF-8 | Python | false | false | 3,228 | py | #!/usr/bin/env pytest-3
# -*- coding: utf-8 -*-
from pybgl.graph import DirectedGraph
from pybgl.graph_view import GraphView
from pybgl.html import html
from pybgl.ipynb import ipynb_display_graph
from pybgl.property_map import make_func_property_map
def make_graph() -> DirectedGraph:
g = DirectedGraph(10)
fo... | [
"marc-olivier.buob@nokia-bell-labs.com"
] | marc-olivier.buob@nokia-bell-labs.com |
8ec471298a63dfdfc9cd0c0c354b374d006f7b57 | 0760fb4901a75766921a205b55686d6d6f049b30 | /rllib/connectors/tests/test_agent.py | dde14a136e0f64cd4504f560ded13a42f648203a | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | ray-project/ray | a4bb6940b08b59a61ef0b8e755a52d8563a2f867 | edba68c3e7cf255d1d6479329f305adb7fa4c3ed | refs/heads/master | 2023-08-31T03:36:48.164405 | 2023-08-31T03:20:38 | 2023-08-31T03:20:38 | 71,932,349 | 29,482 | 5,669 | Apache-2.0 | 2023-09-14T21:48:14 | 2016-10-25T19:38:30 | Python | UTF-8 | Python | false | false | 23,424 | py | import gymnasium as gym
from gymnasium.spaces import Box
import numpy as np
import tree # pip install dm_tree
import unittest
from ray.rllib.algorithms.ppo.ppo import PPOConfig
from ray.rllib.connectors.agent.clip_reward import ClipRewardAgentConnector
from ray.rllib.connectors.agent.lambdas import FlattenDataAgentCo... | [
"noreply@github.com"
] | ray-project.noreply@github.com |
99575b5054b6865d2ef7c17006529adf4923af07 | b683c8f1942a1ab35062620c6013b1e223c09e92 | /Python-Files/Day-3/Question-10.py | 726a1add98af17a4907c45fa6b21b3af0c4245a1 | [] | no_license | nihathalici/Break-The-Ice-With-Python | 601e1c0f040e02fe64103c77795deb2a5d8ff00a | ef5b9dd961e8e0802eee171f2d54cdb92f2fdbe8 | refs/heads/main | 2023-07-18T01:13:27.277935 | 2021-08-27T08:19:44 | 2021-08-27T08:19:44 | 377,414,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | """
Question 10
Question
Write a program that accepts a sequence of whitespace separated words as input and
prints the words after removing all duplicate words and sorting them alphanumerically.
Suppose the following input is supplied to the program:
hello world and practice makes perfect and hello world again
Then,... | [
"noreply@github.com"
] | nihathalici.noreply@github.com |
b7f8fb45004f490bc91705b637f9448cc14d0759 | be84495751737bbf0a8b7d8db2fb737cbd9c297c | /sdl/strs.py | a1108190826b28e5da74d01537208ba9591cddbd | [] | no_license | mario007/renmas | 5e38ff66cffb27b3edc59e95b7cf88906ccc03c9 | bfb4e1defc88eb514e58bdff7082d722fc885e64 | refs/heads/master | 2021-01-10T21:29:35.019792 | 2014-08-17T19:11:51 | 2014-08-17T19:11:51 | 1,688,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py |
class Attribute:
"""
Class represents attribute(filed) in structure.
"""
def __init__(self, name, path):
self.name = name # name of struct
self.path = path # path to member in struct
class Callable:
"""
Class represents function in shading language.
"""
def _... | [
"mvidov@yahoo.com"
] | mvidov@yahoo.com |
fd397767b61c74e568de01a0df54cfa6a3e26aa6 | e9e71b4ae8985a7eb1850e69891510cb7f9865aa | /django/squawker/squawker/wsgi.py | b5c6b09499f7152c283b2d642b59b27966eae72d | [] | no_license | robertjohnson1986/python_stack1 | 34b4e97c6ed967ed01fb58cd1bc4c75eb759b16f | a801ce5a41d0cd01113500b4ff2b24e01ffb8d33 | refs/heads/main | 2023-06-23T00:07:41.610694 | 2021-07-21T22:21:13 | 2021-07-21T22:21:13 | 372,145,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for squawker 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('DJANGO_SETT... | [
"83429757+robertjohnson1986@users.noreply.github.com"
] | 83429757+robertjohnson1986@users.noreply.github.com |
4af5f80e69b143b0cc55b7068cfba069e26fd17c | cdf969cadf53489b9c3d96a122232de947abc8a6 | /compute_video_frames_info.py | e0f4240fdcd0c6f26667fe0b5e9c9b40a39172b4 | [] | no_license | achalddave/charades-scripts | 021a0d2f2d2d4f41ba2c43fedf24b080c848ae34 | 9ec5bb3f1197a65a5a140242ba24a2c40074c8f4 | refs/heads/master | 2021-01-01T16:18:41.139194 | 2017-07-20T07:41:34 | 2017-07-20T07:41:34 | 97,805,792 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | """Output frames per second, number of frames for each video.
Output is a CSV file containing the entries
video,fps,num_frames
where video is the name of the video file without the extension.
"""
import argparse
import csv
import os
from moviepy.editor import VideoFileClip
from tqdm import tqdm
def main(video_pat... | [
"achalddave@live.com"
] | achalddave@live.com |
c7654bcbf74e5ac7a50f79cc4d50fe959e0ae817 | a25aa09af984d08084a395f9b6df427d3756f11a | /diary/0826.py | 8dea9397a029b60bffa7bed54f684ceab3cd8574 | [] | no_license | luyihsien/leetcodepy | 31971e851a4ae77942a5d9e3ff07faea6e504c66 | a54bd09f4b28f106196a6cd8a0f9c056bcd237e6 | refs/heads/master | 2020-05-19T13:21:57.854086 | 2019-10-16T14:23:00 | 2019-10-16T14:23:00 | 185,037,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | import sys
a=[1,2,3,4]
print(id(a))
b=a
b=b+[5]
b.append(5)
print(a,id(a))
print(b,id(b))
a=5
b=a
print(id(a),id(b))
b+=1
print(id(b))
print(id(a))
print(a,b)
class ListNode:
def __init__(self,val):
self.val=val
self.next=None
a=ListNode(5)
b=a
print(sys.getsizeof(a))
print(sys.getsizeof(a.val))
pri... | [
"luyihsien@gmail.com"
] | luyihsien@gmail.com |
2a214d889b2a7bcb00a0468a849d3bb7ef09b25d | 905020fce75b4b63517ec31c601e721f5c260cd1 | /Круглые.py | a81a0e58e8bea35664bc00748a84aa55a09b5dac | [] | no_license | Dimaed90800/Python_Y | 7858ad46309281a89c5c1e83a0f09030996182a4 | 04092b854605cb05df439eeeb52003e585bb5a29 | refs/heads/main | 2023-01-24T04:11:17.858281 | 2020-11-17T20:42:45 | 2020-11-17T20:42:45 | 313,731,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | number=int(input())
while number % 10 == 0:
number=int(input()) | [
"noreply@github.com"
] | Dimaed90800.noreply@github.com |
421d09d35a9eb0d59a9fb4ec23cb7ad8804bd30a | 9f2f386a692a6ddeb7670812d1395a0b0009dad9 | /python/paddle/fluid/tests/unittests/test_softmax_mask_fuse_upper_triangle_op.py | a73ebd73e4946caa50030b52544a3c5a35a5c8d2 | [
"Apache-2.0"
] | permissive | sandyhouse/Paddle | 2f866bf1993a036564986e5140e69e77674b8ff5 | 86e0b07fe7ee6442ccda0aa234bd690a3be2cffa | refs/heads/develop | 2023-08-16T22:59:28.165742 | 2022-06-03T05:23:39 | 2022-06-03T05:23:39 | 181,423,712 | 0 | 7 | Apache-2.0 | 2022-08-15T08:46:04 | 2019-04-15T06:15:22 | C++ | UTF-8 | Python | false | false | 4,087 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | sandyhouse.noreply@github.com |
c0a1cc5932507c02c45d2174440b4aa654fad2f9 | f7abecb2826760ce2ce6d022bd2d2225efd5416d | /company/migrations/0002_auto_20180323_1956.py | bab0547c5b00f2cdb63b4bc65d8061f5c712c85f | [] | no_license | vintkor/django_ppf | 2b8e20a016314e6934ccdb2e6723faf7e62a66b4 | 50737517049fdc806ecd3e2fc7757588e7cfcb7b | refs/heads/master | 2022-12-09T12:37:24.508027 | 2020-04-06T20:23:44 | 2020-04-06T20:23:44 | 112,515,920 | 0 | 1 | null | 2022-12-01T22:24:06 | 2017-11-29T19:03:53 | Python | UTF-8 | Python | false | false | 2,982 | py | # Generated by Django 2.0.3 on 2018-03-23 17:56
from django.db import migrations, models
import django.db.models.deletion
import sorl.thumbnail.fields
class Migration(migrations.Migration):
dependencies = [
('company', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
69a39a410162d7228cbdda1169b643378eecf6aa | 2be2b1daea464c6b48706c6b2696a94af1b2439b | /lesson7'/4.py | 4eecf7173de71093f181cd7da70d3cf04cf250d1 | [] | no_license | kirigaikabuto/pythonlessons1400 | 584fbef15802accd10b21cd33fbd8aa7900e19f3 | af1df1f4b238e9e4476c75cb25a03f92957bc156 | refs/heads/main | 2023-07-12T19:06:08.117125 | 2021-08-14T08:09:11 | 2021-08-14T08:09:11 | 386,884,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | s = "Modern Singapore was founded in 1819 by Sir Stamford Raffles as a trading post of the British Empire. In 1867, the colonies in Southeast Asia were reorganised and Singapore came under the direct control of Britain as part of the Straits Settlements. During the Second World War, Singapore was occupied by Japan in 1... | [
"tleugazy98@gmail.com"
] | tleugazy98@gmail.com |
f24751a0aa719ae0e2a5030802510b8a72c06f93 | eec1f3a9a31a61b74d8ace96301653bef87c456e | /bigfish/segmentation/test/test_nuc_segmentation.py | cc3fae3d8803440c507226847bda4180aea3ccdf | [
"BSD-3-Clause",
"Python-2.0"
] | permissive | fish-quant/big-fish | 843ca1b4731afce738d6d557249475482a6870ef | e951ea850b18be4be70c5d0a419ba524c3a59ada | refs/heads/master | 2023-08-25T04:19:14.376366 | 2022-04-25T22:51:57 | 2022-04-25T22:51:57 | 162,127,052 | 43 | 22 | BSD-3-Clause | 2023-07-02T23:29:41 | 2018-12-17T12:26:09 | Python | UTF-8 | Python | false | false | 430 | py | # -*- coding: utf-8 -*-
# Author: Arthur Imbert <arthur.imbert.pro@gmail.com>
# License: BSD 3 clause
"""
Unitary tests for bigfish.segmentation.nuc_segmentation module.
"""
# TODO add test for bigfish.segmentation.remove_segmented_nuc
# TODO add test for bigfish.segmentation.unet_3_classes_nuc
# TODO add test for b... | [
"arthur.imbert.pro@gmail.com"
] | arthur.imbert.pro@gmail.com |
61269609d910c84387be9e4eb94204f60e28e97b | 5b6b2018ab45cc4710cc5146040bb917fbce985f | /11_search-range-in-binary-search-tree/search-range-in-binary-search-tree.py | addadc00c229ca4127059cd113b672daa90df11d | [] | no_license | ultimate010/codes_and_notes | 6d7c7d42dcfd84354e6fcb5a2c65c6029353a328 | 30aaa34cb1c840f7cf4e0f1345240ac88b8cb45c | refs/heads/master | 2021-01-11T06:56:11.401869 | 2016-10-30T13:46:39 | 2016-10-30T13:46:39 | 72,351,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | # coding:utf-8
'''
@Copyright:LintCode
@Author: ultimate010
@Problem: http://www.lintcode.com/problem/search-range-in-binary-search-tree
@Language: Python
@Datetime: 16-06-11 15:21
'''
"""
Definition of TreeNode:
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right ... | [
"ultimate010@gmail.com"
] | ultimate010@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.