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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a27a24a181fc2849c2f637399bf591a59836fb30 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/155/usersdata/264/65774/submittedfiles/investimento.py | 13ab510d61f515c0ee32508d5ab2795715e339e8 | [] | 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 | 523 | py | # -*- coding: utf-8 -*-
from __future__ import division
#COMECE SEU CODIGO AQUI
#Entrada:
i= float(input('Digite o valor do investimento inicial:'))
t= float(input('Digite o valor da taxa de crescimento percentual:'))
#Processamento:
a= i+(i*t)
b= a+(a*t)
c= b+(b*t)
d= c+(c*t)
e= d+(d*t)
f= e+(e*t)
g= f+(f*t)
h= g+(g*... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
685ae046a2968f9ac42bf4eee0aade237c64e2db | 09efb7c148e82c22ce6cc7a17b5140aa03aa6e55 | /env/lib/python3.6/site-packages/pandas/tests/plotting/test_series.py | 8b4a78e9195b5b0037d79f50790d79b493ec5f50 | [
"MIT"
] | permissive | harryturr/harryturr_garmin_dashboard | 53071a23b267116e1945ae93d36e2a978c411261 | 734e04f8257f9f84f2553efeb7e73920e35aadc9 | refs/heads/master | 2023-01-19T22:10:57.374029 | 2020-01-29T10:47:56 | 2020-01-29T10:47:56 | 235,609,069 | 4 | 0 | MIT | 2023-01-05T05:51:27 | 2020-01-22T16:00:13 | Python | UTF-8 | Python | false | false | 33,045 | py | # coding: utf-8
""" Test cases for Series.plot """
from datetime import datetime
from itertools import chain
import numpy as np
from numpy.random import randn
import pytest
import pandas.util._test_decorators as td
import pandas as pd
from pandas import DataFrame, Series, date_range
from pandas.tests.plotting.com... | [
"griffin.harrisonn@gmail.com"
] | griffin.harrisonn@gmail.com |
61e220d98e0c3fa7dee7492671c87beb672185a8 | a343a405ecc557a52974fa84bc0481cc11405b14 | /211_WordDictionary.py | 97c73c99cb81fb5a66d51f30742f41326d4b560c | [] | no_license | jennyChing/leetCode | 926c2a5ff9f6c03152e93725b64f7bad804c415a | f3fc71f344cd758cfce77f16ab72992c99ab288e | refs/heads/master | 2020-05-21T16:42:17.325980 | 2017-03-18T01:59:15 | 2017-03-18T01:59:15 | 61,048,131 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | '''
211. Add and Search Word - Data structure design
Design a data structure that supports the following two operations:
void addWord(word)
bool search(word)
search(word) can search a literal word or a regular expression string containing only letters a-z or .. A . means it can represent any one letter.
For example:... | [
"jklife3@gmail.com"
] | jklife3@gmail.com |
019b3b5351f74f3f80d281a0ceba1a8e91cd6e28 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /nf_diffusion/models/ldm_reluf_dual.py | 95312d7da3c74e276e089b18dd8318010e3c5ec3 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 11,655 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
94d0b38abc3c902f2c7ba18d0f9e505115d5bb24 | 337ece3f5c5ea9b48c00c6535c6aead9344ca452 | /venv/lib/python3.6/site-packages/PIL/JpegImagePlugin.py | d0b3f6e790e98103b22afd8db833e9de630e0a46 | [] | no_license | ryanbrandt/debatr | 3bb4156eaa7ed33d63524ed0bd845d44122c096f | 10082a02b0405c3f55a6fd5344e4facf78482133 | refs/heads/master | 2021-06-29T20:56:57.713184 | 2020-10-14T03:31:50 | 2020-10-14T03:31:50 | 165,954,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,665 | py | #
# The Python Imaging Library.
# $Id$
#
# JPEG (JFIF) file handling
#
# See "Digital Compression and Coding of Continuous-Tone Still Images,
# Part 1, Requirements and Guidelines" (CCITT T.81 / ISO 10918-1)
#
# History:
# 1995-09-09 fl Created
# 1995-09-13 fl Added full parser
# 1996-03-25 fl Added hack to use t... | [
"rnb52@scarletmail.rutgers.edu"
] | rnb52@scarletmail.rutgers.edu |
7415e43a0974d50ecbda01915a5b5a4ccb2763ba | e0d9844e123fa0706388814b9f29758258589487 | /torch/utils/benchmark/utils/common.py | 454ad1bb56d28a1feccd26d8506b0bb5c98e5c3b | [] | no_license | pigpigman8686/seg | b5cf5261a5744e89ed5e5b145f60b0ccc3ba2c0c | 61c3816f7ba76243a872fe5c5fc0dede17026987 | refs/heads/master | 2023-04-10T22:22:35.035542 | 2021-04-22T06:24:36 | 2021-04-22T06:24:36 | 360,398,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,005 | py | """Base shared classes and utilities."""
import collections
import contextlib
import dataclasses
import textwrap
from typing import cast, Any, DefaultDict, Dict, Iterable, Iterator, List, Optional, Tuple
import numpy as np
import torch
__all__ = ["TaskSpec", "Measurement"]
_MAX_SIGNIFICANT_FIGURES ... | [
"952361195@qq.com"
] | 952361195@qq.com |
ed11feaeac8eaf7865d35d31cf82f8d0a000e264 | bf3b84b4402ea1371cc7f8a867f928a82790e47e | /test/test_models_user.py | fad8e28c8a75c9c9fe667f1e442ccd07f9c1540e | [
"MIT"
] | permissive | PegasusWang/articles | c82026de5194bb007182039d09ee720f9b84016b | b5f2d50dcb0f481cae39baa8cb5b7d82d61e094a | refs/heads/master | 2021-01-10T16:02:37.349084 | 2016-01-27T14:48:19 | 2016-01-27T14:48:19 | 44,647,953 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import _env
import pytest
from models.post import Post
from models.user import User
from tornado.ioloop import IOLoop
from tornado.testing import gen_test, AsyncTestCase
from motorengine.connection import connect
from config.config import CONFIG
save_user = {
'name': ... | [
"tianma201211@gmail.com"
] | tianma201211@gmail.com |
63a2da72c720dc4cd00bf70fdb90af8ec22eba12 | a27f17ee4d140054104c29945115de5bb5d9a124 | /tests/apps/app1/http/controllers/login.py | e8325e2b10bbc116b87345b18eac0e002588e013 | [
"MIT"
] | permissive | coboyoshi/uvicore | 29acad2690e9b7c4548da82315be0e306f08691b | 9cfdeeac83000b156fe48f068b4658edaf51c8de | refs/heads/master | 2023-08-03T09:53:49.185275 | 2021-09-22T05:14:59 | 2021-09-22T05:14:59 | 351,472,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | import uvicore
from uvicore.typing import Optional
from uvicore.support.dumper import dd, dump
from uvicore.http import Request, response
from uvicore.http.routing import WebRouter, Controller
@uvicore.controller()
class Login(Controller):
def register(self, route: WebRouter):
@route.get('/login', name=... | [
"mail@mreschke.com"
] | mail@mreschke.com |
6494762b60eacde7b56df3fd493e3c0e3e1de292 | fb6ffe993575c87ca9f6bb6c7e1f699df42d2ea2 | /setup.py | 83c3cac4f052d7ea949d0fa4d059fa3a3ddb928c | [
"MIT"
] | permissive | rosscdh/python-box | 2d0c42eaf5b1ddf4d283f7e86f1a888a61ccd5c5 | 953850dd8677ede0522e53ae6cc3a78fc99f3f4c | refs/heads/master | 2020-06-02T08:30:03.167454 | 2014-08-19T07:12:15 | 2014-08-19T07:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
setup(
name = "python-box",
version = "0.1.0",
author = "Ross Crawford-d'Heureuse",
author_email = "ross@lawpal.com",
description = ("python lib for integrating with Box.com"),
license = "MIT",
keywords = "python box oauth2",
... | [
"ross@lawpal.com"
] | ross@lawpal.com |
f5317980965309eac015a0c484ef11d6b53c0af8 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-301.py | a55b5828385baa8e69f252dda549e121dea04e58 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,996 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
6542b51182cd2532d0caa033feb970a54d00b460 | 1369717e645fe33ac2eec0d485dde79289a34ace | /server/src/uds/core/util/AutoAttributes.py | 6b7f7a364002db5d48a64eeee652559b253c6b2d | [] | no_license | johnp/openuds | 0b9c1fa3823854deb1ccd53c51fc27447e28593a | b8e1e1773559b91875ccf096d37418e3b70675d0 | refs/heads/master | 2021-01-22T12:54:04.092698 | 2017-04-19T06:23:44 | 2017-04-19T06:23:44 | 68,590,975 | 0 | 0 | null | 2016-09-19T09:34:33 | 2016-09-19T09:34:32 | null | UTF-8 | Python | false | false | 4,042 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2012 Virtual Cable S.L.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
#... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
792437b6a7ba72ab55d0d1af0d92a5c4153623fe | 2b0e2e8e60c7a5f62baa55cf824cec05aa56515e | /src/frontend/systray.py | 030f1248efb3606eb63bbeca03b0af21d9acb742 | [] | no_license | blademainer/XwareDesktop | 7f90cda7ca3ca152f849b33d7a98fcab457e2d00 | eb4e6a8ce03da6d713807736dbbb04e47f2e3106 | refs/heads/master | 2021-01-18T14:25:26.892802 | 2014-07-29T13:55:28 | 2014-07-29T13:55:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | # -*- coding: utf-8 -*-
import logging
from launcher import app
from PyQt5.QtCore import pyqtSlot, QObject
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import QSystemTrayIcon
from contextmenu import ContextMenu
class Systray(QObject):
trayIconMenu = None
def __init__(self, parent):
super()._... | [
"xinkai.chen@qq.com"
] | xinkai.chen@qq.com |
ce49a5a7cab629b30e2dac7777ae07929d3c8e16 | 0959d88eb8e1ab579dec7eb4bfc1fbaac945ea0b | /Training/2015-1116-training/parse_ping.py | 4c7bc41d957c99f34850694b02d6969c7f106223 | [] | no_license | mike03052000/python | ba1b871acf853710fd840284f260d82ea8e597cf | 19045d56ae1caa305f51f1cad6c71d97b82ca47d | refs/heads/master | 2020-04-04T12:21:55.284225 | 2019-06-20T05:35:25 | 2019-06-20T05:35:25 | 155,923,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | __author__ = 'mihung'
# Test Objective: Make sure there was no packet loss
from parsers import parse_ping
with open('notes/ping_output.txt') as f:
output = f.read() # output = ubuntu.execute('ping www.cisco.com')
ping_result = parse_ping(output)
assert ping_result.loss_rate == 0.0
| [
"mike03052000@gmail.com"
] | mike03052000@gmail.com |
bb01156efccb3d7173551b2369b0d3bc7c1d424b | 0e647273cffc1fb6cbd589fa3c7c277b221ba247 | /configs/hpt-pretrain/domain_net_clipart-domain_net_sketch/moco_v2_800ep_basetrain-domain_net_clipart_5000it_basetrain/500-iters.py | 553e568b39ea8efab3c756eb7a8bc63b4cc28512 | [
"Apache-2.0"
] | permissive | Berkeley-Data/OpenSelfSup | e9976bf011b69ebf918506ba184f464b1073ec13 | 221191b88d891de57725b149caf237ffef72e529 | refs/heads/master | 2023-05-12T07:34:52.268476 | 2021-04-08T00:58:37 | 2021-04-08T00:58:37 | 343,654,823 | 0 | 1 | Apache-2.0 | 2021-04-08T00:58:37 | 2021-03-02T05:20:27 | Python | UTF-8 | Python | false | false | 335 | py | _base_="../base-domain_net_clipart-domain_net_sketch-config.py"
# this will merge with the parent
model=dict(pretrained='work_dirs/hpt-pretrain/domain_net_clipart/moco_v2_800ep_basetrain/5000-iters/moco_v2_800ep_basetrain-domain_net_clipart_5000it.pth')
# epoch related
total_iters=500
checkpoint_config = dict(interva... | [
"taeil.goh@gmail.com"
] | taeil.goh@gmail.com |
d01878f344a04ae1053a2716820d072520fb3735 | 02508aa773dcbd9939eb879952ee2cb3dd90bcad | /test/jit/test_remove_mutation.py | fda1fb2306df208142d3d76f644d3d076ee9a7ba | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | dhivyadharshin/pytorch | d8a3b7f3c03e21e776ea34788d13743467b738c8 | 6a170011876bb8bd1909e8f60fba1270ac7a5577 | refs/heads/master | 2023-07-18T07:31:52.918955 | 2021-08-17T18:12:01 | 2021-08-17T18:12:01 | 397,330,616 | 5 | 0 | NOASSERTION | 2021-08-17T18:12:02 | 2021-08-17T16:57:16 | null | UTF-8 | Python | false | false | 9,412 | py | import os
import sys
import torch
from torch.testing import FileCheck
from typing import List
# Make the helper files in test/ importable
pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(pytorch_test_dir)
from torch.testing._internal.jit_utils import JitTestCase, freeze_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
62a76a69e3fc70bade3557eaa1b1db2da0fb6e1b | f14175914ce8b49f67ab12790f6960d06d80371d | /hass_aggregator.py | 4a0bf2ff664b2c5b47aac8ab72af524d5b2fcff6 | [] | no_license | sander76/hass-aggregator | c5bd7548bb38995b4d5c3fae60b2d8ab7713e08f | 47c0dc51aaa3ec1f5523b8d0b8b365b522ecd774 | refs/heads/master | 2021-01-25T04:14:40.798719 | 2017-06-26T19:43:50 | 2017-06-26T19:43:50 | 93,413,602 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,701 | py | """yaml
hass-aggregator:
- entity_id: <an id>
aggregator:
bucket:
trigger: state
size: 10
- entity_id: <an id>
aggregator:
bucket:
trigger: time
size: 10 #minutes
methods:
- max
- min
- average
acti... | [
"s.teunissen@gmail.com"
] | s.teunissen@gmail.com |
9b8e25a52a53849b1662d23e73db78f2a60984b6 | dc91c30dae42f95450d23def8cf68d080784e111 | /akshare/__init__.py | f686fe032a9a02898d754246f442e7da429feb4f | [
"MIT"
] | permissive | mayite/akshare | 9adb08b51e6e0068a27244f752dcbe1fd55ace95 | d21f02adec715f3338c042e3657ca0c9490b6569 | refs/heads/master | 2023-01-29T02:26:30.532752 | 2020-12-08T04:39:20 | 2020-12-08T04:39:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73,485 | py | """AkShare 是基于 Python 的开源财经数据接口库, 实现对股票, 期货, 期权, 基金, 债券, 外汇等金融产品的量价数据, 基本面数据和另类数据从数据采集, 数据清洗到数据下载的工具, 满足金融数据科学家, 数据科学爱好者在数据获取方面的需求. 它的特点是利用 AkShare 获取的是基于可信任数据源发布的原始数据, 广大数据科学家可以利用原始数据进行再加工, 从而得出科学的结论."""
"""
版本更新记录:
0.1.13
更新所有基于 fushare 的接口
0.1.14
更新 requirements.txt 文件
0.1.15
自动安装所需要的 packages
0.1.16
修正部分函数命名
0.1.1... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
047e0913547cb7a288e544e5ebd3494a41ad6d6d | 40e7156576ad93db1f0dcab62ec3bb6042576166 | /Termux/python/Lazymux/AUXILE/core/parse.py | 516c6915332c0065d7f41865615ca7c96724c671 | [
"MIT"
] | permissive | WeilerWebServices/Gists | c5d12093d620abc8152e8e8214a2000832969421 | 506fae2f3f9568ecd73ba373f35ac5fda054520e | refs/heads/master | 2023-02-17T18:00:07.721504 | 2021-01-11T02:19:44 | 2021-01-11T02:19:44 | 272,584,650 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | ##
## parse argument
##
## written by @ciku370
##
def toxic(word,anu):
len_words = 0
result = {}
for i in word:
if i in anu.split(','):
try:
result.update({word[len_words]:word[len_words+1]})
except IndexError:
continue
len... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
8a1116a0094cfc1e228eb6c97ba177209f47ba89 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/3-OO-Python/3-__init___20200415012535.py | 60283c25e825e830a5643678ad8885cd787c31fa | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | # OOP
class PlayerCharacter :
# class object attribute - it is static
membership = True
# constructor method / init method
def __init__(self, name, age):
self.name = name #attributes
self.age = age
def run (self, hello):
print('running')
return 'Work... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
e480fbc65c93e85fd3568887d09e6a1e15b2c51d | d7378f9402a81b6c421523c09479a6457cb94a19 | /home/models.py | 5ff13bde52392af14d7db7d32a70f4f8ecde08b8 | [] | no_license | Ivin0022/social | 27a7da4032dd0b563a2cfc77d452fa41c95a328a | b1f1bc6638bb34e424371423a50b167610d8a20d | refs/heads/master | 2020-07-22T19:12:59.071999 | 2019-09-05T08:22:40 | 2019-09-05T08:22:40 | 207,301,254 | 0 | 0 | null | 2019-09-09T12:14:49 | 2019-09-09T12:14:49 | null | UTF-8 | Python | false | false | 2,246 | py | from django.db import models
from django.contrib.auth.models import User
from django.dispatch import receiver
from django.conf import settings
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.contrib.cont... | [
"anoopsuresh.sayonetech@gmail.com"
] | anoopsuresh.sayonetech@gmail.com |
88470493966cf421c4e2630f05bd7fd130f28ee9 | 4420a8b4fdc38eb9f260e604ad53955b27805431 | /amplify/agent/common/util/sfile.py | 4274df93b66c68a7890e18e54d1f829d2245d184 | [
"BSD-2-Clause"
] | permissive | askagirl/nginx-amplify-agent | c71bf6f67366391ed7a54f3e72a1ca662adfd5ea | 770938727c78e30db46d9d3dd1be31d1c812016e | refs/heads/master | 2021-01-23T19:17:31.442068 | 2017-09-06T01:58:49 | 2017-09-06T01:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,918 | py | # -*- coding: utf-8 -*-
from cStringIO import StringIO
__author__ = "Grant Hulegaard"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__credits__ = [
"Mike Belov", "Andrei Belov", "Ivan Poluyanov", "Oleg Mamontov",
"Andrew Alexeev", "Grant Hulegaard", "Arie van Luttikhuizen"
]
__license__ = "... | [
"dedm@nginx.com"
] | dedm@nginx.com |
ad04fd7d7143071af556e51e5624b98c36568411 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /fDfh3WJPPiiJwgTrW_4.py | 0d159370b8a9d61275e1b87f4df616f0d2000c03 | [] | 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 | 372 | py | """
Return the total number of lists inside a given list.
### Examples
num_of_sublists([[1, 2, 3]]) ➞ 1
num_of_sublists([[1, 2, 3], [1, 2, 3], [1, 2, 3]]) ➞ 3
num_of_sublists([[1, 2, 3], [1, 2, 3], [1, 2, 3], [1, 2, 3]]) ➞ 4
num_of_sublists([1, 2, 3]) ➞ 0
### Notes
N/A
"""
num_o... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ae85c9d829fbaef86adc4f3728ac6afc03c4f544 | 2c7f99ff86d1786d133df13a630d62e7dcc63fab | /google/cloud/dialogflow_v2beta1/services/environments/transports/grpc_asyncio.py | 52b0b3ba7b1c9be77c5f3939b3e594cfdbb4a8bb | [
"Apache-2.0"
] | permissive | rlindao/python-dialogflow | 2141b7181506210c6cfffb27bb9599ad21261c28 | 8958e562bb159b00bb1fc0fa97e5ffd35dea058d | refs/heads/master | 2023-04-06T15:09:14.888871 | 2021-04-16T21:34:24 | 2021-04-16T21:34:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,420 | 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 o... | [
"noreply@github.com"
] | rlindao.noreply@github.com |
fc172004592c9ced8c733968ab8465bd85b77465 | d452e34253561a47b974e260dabd8dcda6e750a2 | /supervised_learning/0x0B-face_verification/align.py | 014a7cf180199407189925abf52182e6a8093343 | [] | no_license | JohnCook17/holbertonschool-machine_learning | 57fcb5b9d351826c3e3d5478b3b4fbe16cdfac9f | 4200798bdbbe828db94e5585b62a595e3a96c3e6 | refs/heads/master | 2021-07-07T10:16:21.583107 | 2021-04-11T20:38:33 | 2021-04-11T20:38:33 | 255,424,823 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | #!/usr/bin/env python3
""""""
import cv2
import dlib
import numpy as np
class FaceAlign:
""""""
def __init__(self, shape_predictor_path):
""""""
self.detector = dlib.get_frontal_face_detector()
self.shape_predictor = dlib.shape_predictor(shape_predictor_path)
def detect(self, imag... | [
"jcook0017@gmail.com"
] | jcook0017@gmail.com |
301fade0da353372f932d277036d44634ce85676 | d2fedd2085cbdbd5e54228abf0633001989787cc | /59.LONGEST COMMON SUBSEQUENCE OF K.py | c54f5b9b494d39a59111d2b179d853fa6b7b8eaa | [] | no_license | KumarAmbuj/dynamic-programing-intermediate | 228d25205d370ebc329eaf6ffbcfbc2853b18abe | 4b40f322f57762e0cf264fb2024ae56d1fa3243b | refs/heads/main | 2023-02-23T20:42:26.865855 | 2021-01-23T11:10:44 | 2021-01-23T11:10:44 | 332,188,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | def findLCS(P,Q,k):
m=len(P)
n=len(Q)
dp=[[0 for j in range(n+1)] for i in range(m+1)]
for i in range(m-1,-1,-1):
for j in range(n-1,-1,-1):
if P[i]==Q[j]:
dp[i][j]=dp[i+1][j+1]+1
else:
dp[i][j]=max(dp[i][j+1],dp[i+1][j])
... | [
"noreply@github.com"
] | KumarAmbuj.noreply@github.com |
9e8bd2ac74ad64b87912c4a3243c5c7df51d5a83 | a84208ffdad094d3bcf83482390984301a2d2612 | /blog/migrations/0019_auto_20210306_2038.py | eba65ec2e9d7132070dd366d6163106372863726 | [] | no_license | amemani-create/cs490project | 6cad0a0219c8772b24aa150c3bcf5d28b813f5f1 | b934aa83593d96a2a1a2dccf4a6117895183b809 | refs/heads/master | 2023-03-18T15:21:01.076463 | 2021-03-07T02:05:36 | 2021-03-07T02:05:36 | 340,847,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | # Generated by Django 3.1 on 2021-03-07 01:38
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('blog', '0018_auto_20210306... | [
"78717013+amemani-create@users.noreply.github.com"
] | 78717013+amemani-create@users.noreply.github.com |
824e145b9a5fe5ac6d4ede02582dec56068b3204 | 57d6db59a8fd4190da07cd9ebfb50c729f7c3aa0 | /bcftbx/test/test_FASTQFile.py | f2c70aee0256922e03d21036304ad432d723d3af | [
"AFL-3.0",
"LicenseRef-scancode-unknown-license-reference",
"AFL-2.1"
] | permissive | Wy2160640/genomics | bcfa859829cca455049684af4c454909c80a4e34 | 9dd93a23e6401bcaa2d2ac17e319d72b0c80a410 | refs/heads/master | 2023-07-10T08:40:30.812051 | 2021-06-07T10:05:31 | 2021-06-07T10:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,890 | py | #######################################################################
# Tests for FASTQFile.py module
#######################################################################
from builtins import str
from bcftbx.FASTQFile import *
import unittest
import io
import os
import tempfile
import shutil
import gzip
fastq_dat... | [
"peter.briggs@manchester.ac.uk"
] | peter.briggs@manchester.ac.uk |
705e9070435668c17c914b821fcdfc69c6e99d3e | 500b03fa6cb776c1d51db4a3a3aa252ddf5a50e6 | /first_steps/modules/mercenary/functions.py | 6e549e30239d8096ff011dd16ab9e133a2113fb9 | [] | no_license | carloslvm/learning-python | b3796a0a5b751baae8c551a9f6fe262f98980691 | 07f885454cf21b7d215a58da7fcb907715e546bd | refs/heads/master | 2022-07-27T21:39:11.937801 | 2022-07-09T17:47:56 | 2022-07-09T17:47:56 | 163,447,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | #!/usr/bin/python3
#Printing the list of magicians
def magic_list(mages):
for mage in mages:
print('\t' + mage.title())
#Show magician info
def magician_data(magician):
for entity, attributes in magician.items():
print(entity + " = " + str(attributes))
print()
#Show archers info
def arche... | [
"cvaldez553@gmail.com"
] | cvaldez553@gmail.com |
a86865a8d04d53bab000f72344ca563d61655343 | 3716e91c0a18a2cf0b5807cc673d95a7539b008c | /Mountain/InMyName.py | 1e1ce19bf7e8f29935f468639ea11effc7d93d31 | [] | no_license | kiwiapple87/CodeCombat-1 | 47f0fa6d75d6d3e9fb9c28feeb6fe2648664c1aa | ce0201e5ed099193ca40afd3b7abeee5a3732387 | refs/heads/master | 2021-05-01T16:38:03.575842 | 2016-08-25T11:13:26 | 2016-08-25T11:13:26 | 66,552,813 | 1 | 0 | null | 2016-08-25T11:39:20 | 2016-08-25T11:39:18 | null | UTF-8 | Python | false | false | 836 | py | # http://codecombat.com/play/level/in-my-name
# You must to find the treasure.
# Use Thoktar's name as a hint.
# The correct treasure chest is the same number as the index of 'z' in Thoktar's name.
# This function should return the number where letter is in word:
def letterIndex(word, letter):
# Step through each... | [
"vadim-job-hg@yandex.ru"
] | vadim-job-hg@yandex.ru |
248bb35bf60c030daadd2a6d7873515fd32fba17 | 1f85142263a08d2e20080f18756059f581d524df | /lib/tags/lib-1.12.12.0/src/build/common.gypi | 4599ab39e3a61f0dc458f1a1f9653298d1a6f583 | [
"Apache-2.0"
] | permissive | songlibo/page-speed | 60edce572136a4b35f4d939fd11cc4d3cfd04567 | 8776e0441abd3f061da969644a9db6655fe01855 | refs/heads/master | 2021-01-22T08:27:40.145133 | 2016-02-03T15:34:40 | 2016-02-03T15:34:40 | 43,261,473 | 0 | 0 | null | 2015-09-27T19:32:17 | 2015-09-27T19:32:17 | null | UTF-8 | Python | false | false | 39,306 | gypi | # Copyright 2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"bmcquade@google.com"
] | bmcquade@google.com |
47a56d48259a9b01d5dd77abe526826e49944488 | 6f8116d5f27cac5ab7bce2ab72aa2be21f0d2f04 | /practice/divisorsum.py | 21b20a47f6049689b42d603974648502ea1f7879 | [] | no_license | mehdirezaie/ThirtyDaysOfC | 615e31803b2565cd8f5706bac0041ebbe5c60ad3 | cefabaf28c3c2144d16ee53f99938b9a6e11a358 | refs/heads/master | 2021-07-15T14:47:40.336636 | 2021-07-09T14:31:29 | 2021-07-09T14:31:29 | 231,020,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | class AdvancedArithmetic(object):
def divisorSum(n):
raise NotImplementedError
class Calculator(AdvancedArithmetic):
def divisorSum(self, n):
divisorsum = 0
for i in range(1, n+1):
if n%i == 0:
divisorsum += i
return divisorsum
n = int(input())
my_c... | [
"medirz90@icloud.com"
] | medirz90@icloud.com |
8989c268bd686d24672d57a152054f875ddb0bac | 55eda01bdcbda99f72cfdf0b29afb5ea36756873 | /arxiv/kdgan/tagrecom_rz/tch_model.py | 21a68807042c18420c1c875f6d4c22762196e99c | [] | no_license | yyht/KDGAN | 7489a0ca1a2f044b6bcb7cd8bb0d6f2dae1da5e7 | 8f1367d242d7d174bf5bb2740aa18e3846d7b521 | refs/heads/master | 2020-05-16T08:36:18.872239 | 2019-01-12T04:17:31 | 2019-01-12T04:17:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,171 | py | from kdgan import config
from kdgan import utils
from nets import nets_factory
import tensorflow as tf
from tensorflow.contrib import slim
class TCH():
def __init__(self, flags, is_training=True):
self.is_training = is_training
# None = batch_size
self.image_ph = tf.placeholder(tf.float32, shape=(None... | [
"xiaojiew1@student.unimelb.edu.au"
] | xiaojiew1@student.unimelb.edu.au |
bf1bdbf70f8e17b522fee49984983203e0f68725 | 516d8b09391fcf6f1dd95fb665a617c4982af55d | /tutorialvideo/admin.py | 8e416ba58da8b525923b3e2a30ef1ff40b06efaa | [] | no_license | rezmehp/abasian-peroject | 33eb357fbef3591b9cdd7d5a73fb2c90b62fb7a7 | 5c09a4d235719933f10688454066962dae13f3f5 | refs/heads/master | 2023-04-06T21:17:12.855048 | 2021-04-13T15:16:23 | 2021-04-13T15:16:23 | 235,763,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | from django.contrib import admin
from .models import tutorialvideoAdmin,coursevideo2 , videos ,videopics
class tutorialvideoAdminshow(admin.ModelAdmin):
list_display = ('title_page', 'title_search','text_click')
admin.site.register(tutorialvideoAdmin, tutorialvideoAdminshow)
class coursevideo2show(admin.ModelA... | [
"rezmehproject@gmail.com"
] | rezmehproject@gmail.com |
ef02a8ce96e705b6d1e291f3317bf4d927fd4f55 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007/applications/security/clamav/actions.py | b12a9483a243fe2bd5412e4c8fb12148a9fa520a | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005,2006 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
3c63b9e79f692669631b64db92cf43e6e0359ed4 | 7a1b08c64b29522d4bbb913475275c1bc8ad61a4 | /patient_agenda/events15/doc_events/fix_agenda/read_filemodif.py | 82c6ea5ea99b3b86ff27c7142776b1c755779dee | [
"MIT"
] | permissive | erichilarysmithsr/time-track | 8f84d4cc92cebaedce550b3741982d204e734a6c | dc0a7b63c937d561309f9b1c84af65fb581a8e18 | refs/heads/master | 2023-03-27T08:07:46.717221 | 2021-03-30T16:45:50 | 2021-03-30T16:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | #!/usr/bin/python3
#!-*-encoding:Utf-8-*-
from tkinter import *
from tkinter import messagebox
with open('./newpatient/entryfile15.txt', 'r') as filename:
line1=filename.readline()
def importationFile(fichier):
file = open(fichier, 'r')
content=file.readlines()
file.close()
for li in content:
... | [
"philogenie@protonmail.com"
] | philogenie@protonmail.com |
350b68943e984186603ecb4a136953d1726e5d63 | dbb3b3d39f7bd5255d846347b6cd7b153969955c | /packages/vaex-arrow/setup.py | dbd628b6bcaed43cd512aa3450b37b2763490c81 | [
"MIT"
] | permissive | bbbbpage/vaex | ab02e89cdaf1ec99a13775d292dfcbfdc49c0384 | bdf6670b5438bfbdf677477c7c71e69128b063e0 | refs/heads/master | 2022-07-30T09:26:28.060993 | 2020-05-22T14:51:58 | 2020-05-22T14:51:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | import os
import imp
from setuptools import setup
dirname = os.path.dirname(__file__)
path_version = os.path.join(dirname, "vaex_arrow/_version.py")
version = imp.load_source('version', path_version)
name = 'vaex'
author = "Maarten A. Breddels"
author_email = "maartenbreddels@gmail.com"
license = 'MIT'
version = ver... | [
"maartenbreddels@gmail.com"
] | maartenbreddels@gmail.com |
1db9204dd2d2dc3061458abb9d706be7386662ce | 05297c66b8881b734bd3d8cb01b69eb927157f53 | /pack/avame-con.spec | e5ca980c6e05a6d045ebbdeaef9b87486f36ce15 | [
"Apache-2.0"
] | permissive | nickchen-mitac/fork | 4b75c2204cede08e4c71d85261da2e826330ff9f | 64dab56012da47465b4923f30f26925476c87afc | refs/heads/master | 2021-01-10T06:27:57.701844 | 2015-11-03T09:01:31 | 2015-11-03T09:01:31 | 45,453,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | spec | # -*- mode: python -*-
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
app_name = 'avame'
exe_name = 'avame'
console = True
run_strip = False
extra_binaries = []
app_path = os.path.abspath('.')
src_path = os.path.join(app_path, 'src')
res_path = os.path.join(app_path, 'res')
pod_path = os.... | [
"sam@eavatar.com"
] | sam@eavatar.com |
2bdbc14e4ddd6d8271f755d3908f9f39992e0766 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/21-more-lists_20200413042553.py | 568964bcdcd4c7450571a981c2651aa67373e8d9 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | basket = [32, 22, 121, 34234, 66, 464, 0, 64]
print(basket)
basket.sort()
basket.reverse()
print(basket[::-1])
print(basket)
print(list(range (1, 101)))
sentence = 'We are here '
sentence.join(['me', 'music', 'songs', 'cats'])
| [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
32c2e5a6e54d188202be78afc4c97459618197ce | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev2735-2828/left-trunk-2828/twisted/cred/portal.py | 10e5dad3af75694b17baf1c596d1b372c7488322 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | 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 | 5,095 | py | """
The point of integration of application and authentication.
"""
from twisted.internet import defer
from twisted.internet.defer import maybeDeferred
from twisted.python import failure, reflect, components
from twisted.cred import error
from zope import interface
class IRealm(components.Interface):
"""
The re... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
27120722b66c51769658c92e5a179d244c49b064 | ac99fc4c74c6306cf23ebc3ddbcbd992b985387d | /nested_intervals/managers.py | 7e6e654d09bbde6fef15524ad62ddef8aa059738 | [
"MIT"
] | permissive | jamalex/django-nested-intervals | d7f010d13abd28efd0867fa683bfded04fb91931 | b2d80db554762e95b24c7b08217e5bcbed8f40b7 | refs/heads/master | 2020-03-28T07:31:37.486839 | 2018-09-09T21:14:06 | 2018-09-09T21:14:06 | 147,907,242 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,926 | py | """
A custom manager for working with trees of objects.
"""
from __future__ import unicode_literals
import functools
import uuid
from django.db import models, connections, router, transaction
from django.db.models import F
from decimal import Decimal
from .exceptions import InvalidMove, IntervalTooSmall
from .querys... | [
"jamalex@gmail.com"
] | jamalex@gmail.com |
41d4e222b1271efdb0ad9d2a986d2775446663d0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02989/s347907419.py | 01637a156633eb2f9fff15ecfcef9cd30120d1e8 | [] | 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 | 124 | py | N=int(input())
*D,=map(int,input().split())
for i in range(N):
D[i]=(D[i],i)
D=sorted(D)
print(D[N//2][0]-D[N//2-1][0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
076ce515f31fdb79db1c39619f572f1509720420 | 6a087c6fb00ba91f815f997450306a3fac020a8b | /Test_case/RKGL/test群防力量_考核管理.py | 1f7293ac2a91e041b8f35ea2863065ba0c83ed8f | [] | no_license | anghu3/xizangbianfang | cd2037af5e06cc558bf3ef9ff145e0c33495139b | f4f35195963017c22bd4875853ef31f280f4b6a8 | refs/heads/master | 2020-03-28T22:31:06.591507 | 2018-12-14T07:36:47 | 2018-12-14T07:36:47 | 149,238,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,628 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 21 14:11:17 2018
@author: PCCC
"""
import unittest
from selenium import webdriver
import selenium.webdriver.support.ui as ui
from selenium.webdriver.support.ui import Select
import time
import os
import re
from public_package.pubilc_package import url,login_name,login_nam... | [
"935331858@qq.com"
] | 935331858@qq.com |
ffe27462dce90f1fce3a5475c9aa4f409889552d | eafbabe73a36de18b1e774a5515c239ddb846c87 | /docs/source/conf.py | 0935cbb201cdadf179e6a857509f6927cd886c28 | [
"MIT"
] | permissive | ericmjl/worship-manager | 668c6f4b6ba75775e753f52c23bb0b253a0f0d36 | e145fd69b4c2eee2a4f26c27151137832bc0d1e7 | refs/heads/master | 2023-08-16T21:16:52.403561 | 2020-12-29T11:47:02 | 2020-12-29T11:47:02 | 98,115,327 | 4 | 0 | MIT | 2023-09-11T15:37:22 | 2017-07-23T17:52:03 | JavaScript | UTF-8 | Python | false | false | 5,658 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Worship Manager documentation build configuration file, created by
# sphinx-quickstart on Sat Aug 19 21:04:24 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in t... | [
"ericmajinglong@gmail.com"
] | ericmajinglong@gmail.com |
b84badac2940453d8aa9614a338a36c0fbc0fb33 | 1ed783dd8b21c53e74d3eaa20cb8691bc2b9c31a | /lib/scraper/ctfx.py | 965aba967b5d5d348f66094878471a199bb691a8 | [
"Apache-2.0"
] | permissive | theoremoon/ctf-ratings | eb193c86ed4d3198b0c0c42fb85be662b81e2a7b | 52aae558878af612142a51d3305b9cd6faa9cfec | refs/heads/main | 2023-09-02T15:31:07.577665 | 2021-11-23T01:18:10 | 2021-11-23T01:18:10 | 336,347,393 | 10 | 1 | null | 2021-11-22T14:27:05 | 2021-02-05T17:51:19 | Python | UTF-8 | Python | false | false | 3,089 | py | import requests
from urllib3.util.retry import Retry
from requests.adapters import HTTPAdapter
from urllib.parse import urljoin
from bs4 import BeautifulSoup
from logging import getLogger, StreamHandler, Formatter
from http.cookies import SimpleCookie
logger = getLogger(__name__)
handler = StreamHandler()
handler.setF... | [
"theoldmoon0602@gmail.com"
] | theoldmoon0602@gmail.com |
a42130e28dd794c3504aafcac709c3226bf384d9 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/aio/operations/_snapshots_operations.py | ac1a423a536bec257ccfe7592d92e339d1c62518 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 42,249 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
4dae7f7ab3e0ffdb667edc30cb93ec2d211379ef | b14cab5bf738f32df4051ec4bd045f057b91ab19 | /Lesson 33 (Введение в ООП. Полиморфизм)/Homework/1. Статистика.py | f2ba3033544ba87e7c82a7eebb25c8abe81231ab | [] | no_license | RIMPOFUNK/FirstLyceumCourse | 69f8bd27b2783589c66fa8b069ce20bb5cb873f6 | 990e3bdf2a1e2e2ce8ac70b24da4b251f3bed1d4 | refs/heads/master | 2020-05-18T09:25:07.031267 | 2019-04-26T10:10:24 | 2019-04-26T10:10:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | class MinStat:
def __init__(self):
self.data = []
def add_number(self, number):
self.data.append(number)
def result(self):
return min(self.data) if self.data else None
class MaxStat:
def __init__(self):
self.data = []
def add_numbe... | [
"kolobov.kirill@list.ru"
] | kolobov.kirill@list.ru |
2b0f8fee31596c02d2388c5ae671878f2440ee1a | 30ec03bde82f16376fd89377b0f10b2fe530087e | /scripts/paths.py | ffb9c26aa0612162b8c55c7bb507bbe71dda60b6 | [] | no_license | markovmodel/feature_selection | e6bfbfd3db5d8a212feb920a21fb9b2fc20ca762 | 0c717ad24335beb1e50d21d59f0f13968624ad82 | refs/heads/master | 2020-04-08T11:52:25.175149 | 2018-11-27T11:14:55 | 2018-11-27T11:14:55 | 159,323,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,470 | py | """ This module assists in grouping the fragmented trajectories of the DESRES fast folding proteins dataset.
It also defines distance based feature transformations (contacts, exp(-d), log).
"""
import os
import re
import socket
from glob import glob
from pyemma.coordinates import featurizer, source
from pyemma.coor... | [
"m.scherer@fu-berlin.de"
] | m.scherer@fu-berlin.de |
09a110053d04c478e4d8fd142ab2dbbdf9c3f1c9 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Flask/Book_evaluator/venv/Lib/site-packages/werkzeug/_reloader.py | f6a3dae79a1862c4ae316fc69e4591117133bdcb | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:0323e985c3873dbbbaab35b451bad5bd30c976b7b95a0a716e120937f4eacd47
size 9264
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
ef350e29420745fcf545a85e96b0a8d7ae06e244 | 8382fb6e3f09d92d577bdcd037c07b6eaba619c7 | /admin/urls.py | 2f084ba3b5c83c33206bface47cfb80e06480a02 | [] | no_license | Niharika3128/OnlineCourseRegistration | 18eea7e53565547301d37b8b0ee06310c92853b8 | a5bb6b81c696337585b24a5e7aba56929b195217 | refs/heads/master | 2022-12-16T18:07:50.962607 | 2020-09-11T19:03:32 | 2020-09-11T19:03:32 | 279,419,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | """OnlineCourseRegistration URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='h... | [
"niharika5475@gmail.com"
] | niharika5475@gmail.com |
2cd51a5c174083214f93785f3b14237af64dc16d | d17615f9a4bec5960e6cb6785fbff277429f0a6e | /backend/music_18463/settings.py | e5100681e0f1612adc8147653660b1beac8a2bbb | [] | no_license | crowdbotics-apps/pnn-18463 | be898e3bd259e696d3ea17d09a4c68583d836126 | b431b510f29e585a41e1f42f798d2672fd462cce | refs/heads/master | 2022-11-11T03:42:31.692782 | 2020-06-28T12:58:41 | 2020-06-28T12:58:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,754 | py | """
Django settings for music_18463 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import o... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ad510036da3ce63f956f7a47a71f72920d841217 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4424/codes/1758_1183.py | 5283e78931cc8173ab93311c3c9c1708626f241c | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from numpy import*
vetor=array(eval(input("x: ")))
i=0
c=0
j=0
while(i<size(vetor)):
if vetor[i]>=0:
c=c+1
i=i+1
v1=zeros(c, dtype=int)
i=0
while(i<size(vetor)):
if vetor[i]>=0:
v1[j]=vetor[i]
j=j+1
i=i+1
print(v1) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
cef93f76051e07ea7a28c5e93ec5ec31eb36abd7 | c3e8bde6485ae24fbbac7a4470889e9246db76e4 | /DJANGO/Username_Validation/Username_Validation/urls.py | 26d88a66ecfab7f770a6e56275b385becc54f7ff | [] | no_license | jshin07/Python | f1c48c92f44549e6cedd0b892efcf55c60ed3124 | 2b492d905e04c69d76466aacb3f17a7e7c13f437 | refs/heads/master | 2021-01-25T07:49:33.961540 | 2017-06-27T21:16:06 | 2017-06-27T21:16:06 | 93,670,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | """Username_Validation URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='hom... | [
"jshin07@gmail.com"
] | jshin07@gmail.com |
2ec9f31a2387ccec2619c34db313171fc4d4ef7b | 86fb443724338a2cd52a83557835aca56f2cd85d | /test/test_document_api.py | 6c8db0b8bb7287b5da3f8977476d4f569fe06ca7 | [] | no_license | baris8/EasyBill4 | e59141736636602b9cf0ff6ca380f8b0eb47102b | 8abad459b6914e3188b43994f52f9ff020484a9f | refs/heads/master | 2022-04-24T19:29:34.082363 | 2020-04-29T13:29:08 | 2020-04-29T13:29:08 | 259,932,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,705 | py | # coding: utf-8
"""
easybill REST API
The first version of the easybill REST API. [CHANGELOG](https://api.easybill.de/rest/v1/CHANGELOG.md) ## Authentication You can choose between two available methods: `Basic Auth` or `Bearer Token`. In each HTTP request, one of the following HTTP headers is required: ... | [
"baris.uectas@dvs.ag"
] | baris.uectas@dvs.ag |
578ce359af7f4f20ff00ae2a06ba13de463903e5 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/hndjar002/boxes.py | a0c4ba232d5070d86a08bee51b9a8b31cca6b256 | [] | 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 | 923 | py | # Assignment 4
# Jaren Hendricks
# 02 April 2014
# Function to print a square
def print_square ():
for k in range(5):
for i in range(5):
if (k == 0) or (k == 4) or (i == 0) or (i == 4): # Checks for the highest and lowest values.
print ("*", end = "")
el... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
e32d66cec731f3cc57eb9a580f50e5eb8e5a35ba | 4133fce90189868a246e916a5851dc05bf5e2172 | /eOwner/packages/models.py | cb939d6249995a011276dc4ad34c4fa1ebad8ac6 | [] | no_license | achanyasuresh12/eowner | 47ea8dfeb7dc63c1ea934d1d05f0714f14a3fde8 | bcfd6d3069a34e3bde7c760a60d43a7553078b23 | refs/heads/master | 2020-04-07T19:10:59.995107 | 2018-11-22T04:24:15 | 2018-11-22T04:24:15 | 158,639,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | from django.db import models
from managers .models import Managers
class Packages(models.Model):
name = models.CharField(max_length=20, default='')
duration = models.IntegerField()
seatcount = models.IntegerField()
rate = models.IntegerField()
description = models.CharField(max_length=20, default=... | [
"45094866+achanyasuresh12@users.noreply.github.com"
] | 45094866+achanyasuresh12@users.noreply.github.com |
a6ea47b637bcbbd3f60abbac4451bc60ed299082 | 0f0bdcf9761606e895ebe3ffdc95208b154a02eb | /venv/bin/django-admin | 5a40c5d2e2da36b3d77f0a53363d2f197b39777b | [] | no_license | Dekatron322/iwl | 5a7c9101d668fcba7cf778f95800284d113e5b84 | 1aae660fa59196237193d22d25cf9d458e253dfe | refs/heads/master | 2022-12-01T16:42:35.180684 | 2020-08-12T13:50:03 | 2020-08-12T13:50:03 | 282,056,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | #!/home/raytech/gitdemo/iwl/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"muritalaibrahim097@gmail.com"
] | muritalaibrahim097@gmail.com | |
fe3aad9ecfa65b4c99dc952f44a51da0c9d0cc25 | 4809471274d6e136ac66d1998de5acb185d1164e | /pypureclient/flasharray/FA_2_4/models/snmp_managers.py | 36700fe919c811caf9832a44fdc64ceaf91f359b | [
"BSD-2-Clause"
] | permissive | astrojuanlu/py-pure-client | 053fef697ad03b37ba7ae21a0bbb466abf978827 | 6fa605079950765c316eb21c3924e8329d5e3e8a | refs/heads/master | 2023-06-05T20:23:36.946023 | 2021-06-28T23:44:24 | 2021-06-28T23:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,383 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from .... | [
"hubert.chan@purestorage.com"
] | hubert.chan@purestorage.com |
0d482fbcc34d5b5415ce075d1b168d4ade949be3 | e3e6fc037f47527e6bc43f1d1300f39ac8f0aabc | /google/devtools/remoteexecution/v1test/remote_execution_pb2.py | 809009db1c2c0321b429fe41664b3828bd2b57c1 | [] | no_license | msachtler/bazel-event-protocol-parser | 62c136cb1f60f4ee3316bf15e1e5a5e727445536 | d7424d21aa0dc121acc4d64b427ba365a3581a20 | refs/heads/master | 2021-07-05T15:13:19.502829 | 2017-09-24T04:15:16 | 2017-09-24T04:15:16 | 102,999,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | true | 131,584 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/devtools/remoteexecution/v1test/remote_execution.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
... | [
"matt.sachtler@gmail.com"
] | matt.sachtler@gmail.com |
b6d86a85ea53fefa4125d5bfb98f5c0875319390 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scatter3d/error_y/_array.py | 4fc5840e715b37eb52504a0514cacc9b8165410f | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 418 | py | import _plotly_utils.basevalidators
class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator):
def __init__(
self, plotly_name='array', parent_name='scatter3d.error_y', **kwargs
):
super(ArrayValidator, self).__init__(
plotly_name=plotly_name,
parent_name=p... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
db1b79bd7c90792b0d07233d37de47117dcb9a9b | b287cb1efb028d40b94dac4277abefac48160650 | /djangoresume/resume/migrations/0005_company_order_id.py | fee00503ebd87a564b6e23b996c7b9a8c9e5eb0b | [] | no_license | djang0man/django-resume | 5156db105201904a052ebbfb959401af8f3d5280 | d05ec32567ff02eaa900e52f7b3bee07d9bcb9c7 | refs/heads/master | 2021-10-19T00:13:42.539862 | 2019-02-15T19:18:44 | 2019-02-15T19:18:44 | 157,239,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Generated by Django 2.1.3 on 2018-11-18 19:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resume', '0004_auto_20181115_1515'),
]
operations = [
migrations.AddField(
model_name='company',
name='order_id',
... | [
"stuartdkershaw@gmail.com"
] | stuartdkershaw@gmail.com |
5f3fc11ec927e39d11bfea28cb1d63e59e583dfd | 0bbc13968c2793878f24045b318a17bb31524eb1 | /new_adventure/scratch/scratch.py | 0879e39c34052d2336fcf2da56e32c604afae243 | [] | no_license | daniellengyel/new_adventure | 572f82baa5d159cdc541ba9d377a863c7f424981 | 2f83060f4005b9d35e40f0f0d4c6ed0875a26a93 | refs/heads/main | 2023-08-24T21:32:28.003051 | 2021-10-17T17:02:47 | 2021-10-17T17:02:47 | 307,684,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,071 | py | import matplotlib.pyplot as plt
import seaborn as sns
import shutil, os
from .utils import *
from .save_load import *
def create_animation_1d_pictures_particles(x_paths, potential_paths, X, Y, ani_path, graph_details={"p_size": 1}):
num_steps, num_particles, dim = x_paths.shape
for t in range(num_steps):
... | [
"daniel.lengyel@berkeley.edu"
] | daniel.lengyel@berkeley.edu |
dead7cbd34a68122ce84108d03f3427071a6848a | 71ed291b47017982a38524b4ff8fe94aa947cc55 | /Two Points/LC680. Valid Palindrome II.py | b74440b9654f50c59dff4e6cbc722824bff7a31f | [] | no_license | pingting420/LeetCode_Algorithms | da83b77e8f37bd4f461b0a7e59c804871b6151e5 | f8786864796027cf4a7a8b0ad76e0b516cd99b54 | refs/heads/main | 2023-07-17T22:46:08.803128 | 2021-09-02T22:06:38 | 2021-09-02T22:06:38 | 375,401,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | def validPalindrome(s):
def checkPalindrome(low, high):#First to check if it palindrome
i ,j = low, high
while i < j:
if s[i] != s[j]:
return False
i += 1
j -= 1
return True
low, high = 0, len(s) - 1
while low < high:
i... | [
"bellapingting@gmial.com"
] | bellapingting@gmial.com |
2b4278a9ac8eeb66b484b8b69d278504e3c25fb3 | 70205da2c939cdee904420f73eb76df05e9a0d80 | /Backtracking/51.py | 7f98a5efc08333209f30d3dd96a8d5df3373c821 | [] | no_license | ShangruZhong/leetcode | 4f9a1ae7d71a73bbd8fc42a55c6c12d61f47589e | 6582b0f138a19f9d4a005eda298ecb1488eb0d2e | refs/heads/master | 2020-04-12T01:29:52.990418 | 2017-06-25T13:48:35 | 2017-06-25T13:48:35 | 42,118,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | """
51. N-Queens
classical DFS problem
@date: 2016/11/07
"""
class Solution(object):
def solveNQueens(self, n):
"""
:type n: int
:rtype: List[List[str]]
"""
def check(k,j,board):
for i in range(k):
if board[i] == j or abs(k-i) == a... | [
"draco.mystack@gmail.com"
] | draco.mystack@gmail.com |
1f7728b80e7562aa0a053fa575c588be8e4027f7 | 37a50cbf73b0a3dde3de0b26f306f9c962bbb912 | /tests/emulated_modules/sample_1.py | 5ed7d9390fc93f93f1f75f8ee34e9b09587e2e2c | [
"MIT"
] | permissive | alisaifee/hiro | d5ced281396f9839607a255d54e661f257fd0365 | f21b512d6d1867bcf7948f9c36a8ccfc20ebb353 | refs/heads/master | 2023-07-07T06:42:11.303543 | 2023-01-11T18:59:52 | 2023-01-11T18:59:52 | 14,812,997 | 7 | 4 | MIT | 2020-05-26T02:20:58 | 2013-11-30T00:55:10 | Python | UTF-8 | Python | false | false | 64 | py | """
"""
from . import sub_module_1
__all__ = ["sub_module_1"]
| [
"ali@indydevs.org"
] | ali@indydevs.org |
86e20c367edf156c1df3249342aefbd800212ba3 | ec6cb8542c8ed962d24ca32fc1f060ef63fdfea7 | /第一阶段/课上实例练习/day04/test.py | 4275d31c45a2b6b4b712edca4b54250e78a466e1 | [] | no_license | singerdo/songers | 27859a4ff704318d149b2aa6613add407d88bb5d | 9c5dcd80c6772272c933b06c156b33058cbd3ce4 | refs/heads/master | 2022-04-16T11:00:11.002138 | 2020-04-18T07:15:16 | 2020-04-18T07:15:16 | 256,686,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | content="上海自来水来自海上"
'''print(content[0])
print(content[-1])
print(content[5])
print(content[:3])
print(content[-3:100])
print(content[-4:1:-1])'''
if content==content[::-1]:
print('是回文') | [
"569593546@qq.com"
] | 569593546@qq.com |
74c7585df98572d3e285489bc980f3371b85ea3b | 3fc8c5588252ce522d8d0b7fdda398397475abd7 | /enigma/plugboard.py | ddec7e4cab777892959ce57a86ef4c802903e3ad | [
"MIT"
] | permissive | lukeshiner/enigma | 242362a37b7c82fabef237af424a5eca7bc6cdc9 | 51b9dcb9ec8190b780775135dc88b95fbba120fe | refs/heads/master | 2023-07-23T12:10:11.397318 | 2023-07-19T10:34:37 | 2023-07-19T10:34:37 | 137,946,565 | 0 | 0 | MIT | 2023-09-11T08:43:50 | 2018-06-19T21:16:36 | Python | UTF-8 | Python | false | false | 1,677 | py | """Enigma's Plugboard."""
from string import ascii_uppercase as alphabet
from typing import Dict, Optional, Sequence, Tuple
class Plugboard:
"""Enigma's Plugboard."""
def __init__(self, connections: Optional[Sequence[Tuple[str, str]]] = None):
"""
Set up plugboard connections.
Args:
... | [
"luke@lukeshiner.com"
] | luke@lukeshiner.com |
deca57902b324cc8825a86aafec0f7093a1804e3 | e2d479b658a52491e80c7fc622183a68ff255630 | /tests/integrational/tornado/vcr_tornado_decorator.py | 7d109922aa54d6bcfb88da28c533829c600a59d4 | [
"MIT"
] | permissive | 17media/pubnub-python | b25d85ca41cbf32d77538e0050835688ae098d01 | ee372eec82f16d3a80a4cd027bca8976755b817f | refs/heads/master | 2021-01-20T11:14:22.137887 | 2016-11-23T11:47:54 | 2016-11-23T11:50:12 | 74,570,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | import six
from tests.integrational.vcr_helper import pn_vcr
try:
from mock import patch
except ImportError:
from unittest.mock import patch
def use_cassette_and_stub_time_sleep(cassette_name, **kwargs):
context = pn_vcr.use_cassette(cassette_name, **kwargs)
full_path = "{}/{}".format(pn_vcr.cassett... | [
"alexander@pubnub.com"
] | alexander@pubnub.com |
a349311bbbe425600b8b2805e4a2d65bda5869fc | cb06b098930e11f2a19a265648f32bbf764e06b6 | /train_vector.py | a64ae9892f0912748bf7d48e67a0e3f11c2879b8 | [] | no_license | ibaomu/ChineseEmbedding | 95ce8523b6556a0bb1bae864403cd82088092381 | 85a063237aa0d0436734bcb87b8cf547449b4d6a | refs/heads/master | 2022-06-23T13:53:13.885499 | 2022-05-25T14:10:46 | 2022-05-25T14:10:46 | 269,513,052 | 0 | 0 | null | 2020-06-05T02:32:53 | 2020-06-05T02:32:52 | null | UTF-8 | Python | false | false | 3,862 | py | #!/usr/bin/env python3
# coding: utf-8
# File: train.py.py
# Author: lhy<lhy_in_blcu@126.com,https://huangyong.github.io>
# Date: 18-10-26
import os
import gensim
from gensim.models import word2vec
from sklearn.decomposition import PCA
import numpy as np
import logging
logging.basicConfig(format='%(asctime)s:%(leveln... | [
"lhy_in_blcu@126.com"
] | lhy_in_blcu@126.com |
f34f6647de20bf5fa355aa813836ac88d4bcbfc0 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/category/admin_20211010013322.py | 0e60c9ea1f7758bd17ac22c9870a9248c3d7ef5c | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | from django.contrib import admin
from .models import Category
class CategoryAdmin(admin.ModelAdmin):
prepopulated_fields = {'slug': ('category_name',)}
list_display = ('category_name', 'slug')
admin.site.register(Category, CategoryAdmin) | [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
c4b06ee7ce040a08d12ef156788c47b1e8eb0854 | ead727cd2e3adaed190eaa965e6de7f7695efd85 | /libsvmformatter/runbash.py | 5a7cda3bead93d1fd2505a53ecc0f4aede43fda4 | [
"Apache-2.0"
] | permissive | vibhatha/isesvmformatter | 61b85c944fd60afa0795e8f55e4e8853a4520a46 | deebe9aed4f1896372b17e8b0736fefd83edb022 | refs/heads/master | 2020-03-07T18:37:16.379678 | 2018-04-01T16:00:12 | 2018-04-01T16:00:12 | 127,645,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | import numpy as np
import subprocess
def method1(datasource='a9a', C=10, gamma=0.01):
params = datasource+" "+str(C)+" "+str(gamma)
subprocess.call("/home/vibhatha/PycharmProjects/ISESVMFormatter/testbash.sh "+params, shell=True)
def method2(datasource, c_range, gamma_range):
for c in c_range:
f... | [
"vibhatha@gmail.com"
] | vibhatha@gmail.com |
f5403e634ea007345805bd9694eddca608f4a2c4 | cb5719d2e21f02be07368790ae5649b249c9a20e | /apps/log_search/exceptions.py | 71f362fe3d9ef37a5073c9cf3aa3fce775adbce0 | [
"MIT"
] | permissive | Toread-jxj/bk-log | fff57337cc39fdd6a85890bf84baff8aa23539be | 7d68cad3a2c78511141c9af2a016fcd603f62707 | refs/heads/master | 2023-07-15T01:22:47.200423 | 2021-08-19T03:08:25 | 2021-08-19T03:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,841 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-LOG 蓝鲸日志平台 is licensed under the MIT License.
License for BK-LOG 蓝鲸日志平台:
------------------------------------------------... | [
"zxz@zhuxingzhao.com"
] | zxz@zhuxingzhao.com |
16cbf34d28150ae9105f10f3cfdeb00909aa1049 | d7ee76b7f1d6cd038982335792f15959a58a8395 | /SWEA/1244. 최대 상금.py | db115d862433748d75f6c4d1f7aba74eb1e0d617 | [] | no_license | min1378/-algorithm | 1c5dea6b2f03e4d376275cfccbf11b240bc659d9 | bfb720277160077a816deec21469a7e597c62d14 | refs/heads/master | 2021-08-02T06:54:10.478501 | 2021-07-31T14:03:01 | 2021-07-31T14:03:01 | 202,688,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | import sys
import copy
sys.stdin = open('1244.txt', 'r')
def permu(arr, count):
print(arr, count)
# arr에 담긴 숫자를 비교하기 위해 인트형으로 바꿔준다.
a = int(''.join(arr))
#만약에 체크에 담긴 숫자보다 작으면 컷. 제일 큰 수만 필요하기 때문에
if check[count] > a:
return
# 체크에 담긴 숫자보다 크면 값을 넣는다.
check[count] = a
#만약에 count가 바꾼 ... | [
"qwes123@naver.com"
] | qwes123@naver.com |
d403338f589a27a267585d11a971ee0cec182354 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02928/s562542007.py | 8bdf6676d0e6919f714c66c9007a7ac2395f1a0d | [] | 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 | 474 | py | import sys
N, K = map(int, input().split())
A = list(map(int, sys.stdin.readline().rsplit()))
mod = 10 ** 9 + 7
cnt = 0
for i in range(N - 1):
for j in range(i + 1, N):
if A[i] > A[j]:
cnt += 1
res = (K * cnt) % mod
cnt2 = 0
for i in range(N):
for j in range(i):
if A[i] > A[j]:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c3f9ddd1e7eab01327db24dae150b98e153e6394 | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /Other/0704/Matching.py | 725497c699daac1b8bc2be07ccb6bc1a2c1df94d | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,261 | py | import random
import time
import math
N = 9
G = 20
S = 100
Penalty = -4
# make input
def random_generator():
Ss = [[random.randint(0, 1) for _ in range(N)] for _ in range(S)]
Gs = [[0]*N for _ in range(G)]
for i in range(G):
L = random.sample(range(N), k=3)
for j, l in enumerate(L):
... | [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
c0ac0907c202227cf10ae3a8baa1ba891c7b0f50 | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /268.py | 952af9b4cfcad162a1d80c9ee305666bfeeb095f | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | class Solution(object):
def missingNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
return len(nums)*(len(nums)+1)/2-sum(nums) | [
"1533441387@qq.com"
] | 1533441387@qq.com |
f425f02a8d4a03796532c52fd34c48001d8a3f92 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/feature/vt/api/util/VTMatchUtil.pyi | f907277f5a11a93efd8c842b04f123baf1f828a4 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 723 | pyi | import ghidra.feature.vt.api.main
import ghidra.program.model.address
import java.lang
class VTMatchUtil(object):
def __init__(self): ...
def equals(self, __a0: object) -> bool: ...
def getClass(self) -> java.lang.Class: ...
@staticmethod
def getMatchAddresses(__a0: ghidra.feature.vt.api.... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
9a1050fa60afc9b43722c01c99b3676bfffca398 | c2f7f6a5f48d6c9670997d7a15a1d2f6feeb26f9 | /conf/gunicorn.conf.py | 4a02e6d8bcbb1a0165598d3e82340f9210b1456b | [] | no_license | nim65s/rhetoriquerobotique | 4bd57d833a8cf699e1c8647a3b9f54f7c231283c | 41d62e2e3b9e4c6a60c29b8e109c767a0f683210 | refs/heads/master | 2021-03-22T03:24:04.138053 | 2018-09-22T11:39:51 | 2018-09-22T11:39:51 | 86,572,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from multiprocessing import cpu_count
bind = "127.0.0.1:8009"
workers = cpu_count() * 2 + 1
| [
"guilhem.saurel@gmail.com"
] | guilhem.saurel@gmail.com |
66283f6e71e295113e2a6bd906d6826e2a16b8c4 | 1610e03bc2b9b8419e11824079de3c8636f3a039 | /0x04-python-more_data_structures/12-roman_to_int.py | a170d46ebedbdbf8f13bb21b019aeffb1b1c2ecb | [] | no_license | Andresmelek/holbertonschool-higher_level_programming | 12afc1d94b1cd8dcdcfbeb1f9dc819999506afb8 | a1969506f346b808450e33f91d37790732ee7c57 | refs/heads/master | 2020-09-28T23:40:49.866556 | 2020-05-14T17:52:53 | 2020-05-14T17:52:53 | 226,893,592 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | #!/usr/bin/python3
def roman_to_int(roman_string):
matrix = {'I': 1, 'V': 5, 'X': 10, 'L': 50, 'C': 100, 'D': 500, 'M': 1000}
if roman_string == "" or type(roman_string) is not str:
return 0
number = matrix[roman_string[len(roman_string) - 1]]
for i in range((len(roman_string) - 1), 0, - 1):
... | [
"candres.isaza@gmail.com"
] | candres.isaza@gmail.com |
e9a154787c9cca41a367cb0f27f3d1db82ace182 | cde307025a2f2cc7ffcd1d43ea4f75b23876450d | /tools/utils/__init__.py | 95b0726351d4fa9cc84446ff61bbacae825545fc | [
"Apache-2.0"
] | permissive | ni/dldt | 1767885f6bf26d9d13ce10d2de63c1ae38275066 | ed372319eca66a534e1dd6a521613b0caf187b26 | refs/heads/2018 | 2020-04-14T19:29:31.549152 | 2019-07-03T16:22:59 | 2019-07-03T16:22:59 | 164,059,518 | 1 | 2 | Apache-2.0 | 2019-07-03T16:50:11 | 2019-01-04T04:53:33 | C++ | UTF-8 | Python | false | false | 649 | py | """
Copyright (C) 2018-2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | [
"alexey.suhov@intel.com"
] | alexey.suhov@intel.com |
d341bc11dc6136338cd8983500ca6f80d3cf0957 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /120_design_patterns/019_observer/examples/3-Observer Pattern/Observer/Observer/observer/subject_abc.py | 1dea785f7ce81d9e738e7bbe3d32ff2ae4f2c5f7 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 604 | py | import abc
from observer import AbsObserver
class AbsSubject(object):
__metaclass__ = abc.ABCMeta
_observers = set()
def attach(self, observer):
if not isinstance(observer, AbsObserver):
raise TypeError('Observer not derived from AbsObserver')
self._observers |= {observer}
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
3f075eccd69c578109825341212fd0c32c095402 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow_nightly/source2.7/keras/applications/vgg16.py | 7a1e6a05450efcb92da8969d46cef3d7a42d36a1 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 8,229 | py | # -*- coding: utf-8 -*-
"""VGG16 model for Keras.
# Reference
- [Very Deep Convolutional Networks for Large-Scale Image Recognition](https://arxiv.org/abs/1409.1556)
"""
from __future__ import print_function
from __future__ import absolute_import
import warnings
from ..models import Model
from ..layers import Flat... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
3a3beeba106044e052fd49f46befcad305b2add2 | da7a165522daea7c346693c5f32850017c482967 | /abc101-150/abc125/b.py | f9352d804e2cad589fdc1dee02616602a36ea9e5 | [] | no_license | SShayashi/ABC | 19f8750919208c5ff8935638dbaab941c255f914 | 3cbfee0c5251c1bb0df6306166d8d4b33bf7bb2c | refs/heads/master | 2021-05-04T21:06:10.720367 | 2020-07-11T13:59:16 | 2020-07-11T13:59:29 | 119,886,572 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | N = int(input())
V = list(map(int, input().split()))
C = list(map(int, input().split()))
def m():
ans = 0
for i in range(N):
if V[i] - C[i] > 0:
ans += (V[i]-C[i])
return ans
print(m())
| [
"sshayashi0208@gmail.com"
] | sshayashi0208@gmail.com |
14009560d77dc1df0a591c3d32726dfe1e554a7c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_385/ch44_2019_04_22_23_26_13_893032.py | 7235d076dfd3ed9e74ab657645c9cdb343e3ab8b | [] | 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 | 155 | py | def soma_valores(soma):
lista = [0,1,2,3]
i=0
soma=0
while i<len(lista):
soma+= lista [i]
i+=1
return soma
| [
"you@example.com"
] | you@example.com |
39583e1716a475a8ee19bd16bd59fb367685926c | 29bcaf4d6d5e96fd4a85da3b0b3e813f92a84b77 | /python/dgl/transforms/__init__.py | 41bb455c09dcd4cf034a95376293bd066ca16c5f | [
"Apache-2.0"
] | permissive | hetong007/dgl | 844e48421fe899b1f36d40095cf54809b1724a26 | 11e910b6f88ec10c7549493dab9e2b218e988e97 | refs/heads/master | 2022-04-30T23:16:19.354461 | 2022-03-31T11:22:21 | 2022-03-31T11:22:21 | 228,311,655 | 1 | 0 | Apache-2.0 | 2020-08-05T09:40:28 | 2019-12-16T05:45:10 | Python | UTF-8 | Python | false | false | 92 | py | """Transform for structures and features"""
from .functional import *
from .module import *
| [
"noreply@github.com"
] | hetong007.noreply@github.com |
e1f8643a19cb6dc080f8d419aeab0ebc744bc104 | 14a7fe456644d19e845a510b9c8e72af31190e39 | /users/forms.py | dc838acb86a4281ca24e07e8f4dcf89e86e1c717 | [] | no_license | Eduardo-Lucas/usesoft_pmiba | 068107a6ecf9eac7bb2b5f7e44cca6cf6b26df18 | 05823f4d834459eb2ce43b5092823ec606dfe9a2 | refs/heads/master | 2022-12-12T10:52:08.605113 | 2018-10-31T17:31:27 | 2018-10-31T17:31:27 | 151,250,111 | 0 | 0 | null | 2022-12-08T03:01:25 | 2018-10-02T12:24:08 | Python | UTF-8 | Python | false | false | 435 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import CustomUser
class CustomUserCreationForm(UserCreationForm):
class Meta(UserCreationForm.Meta):
model = CustomUser
fields = ('username', 'email')
class CustomUserChang... | [
"eduardolucas40@gmail.com"
] | eduardolucas40@gmail.com |
4c11cd1c1ae285ea84736c3300680ccc4b4bae76 | af3e249753fbf04ce10a01e4dbeab549cb4ae34d | /oscar/apps/catalogue/migrations/0009_slugfield_noop.py | 5a0edf6bc86e9bf35b8777165d1fcd35432523f1 | [] | no_license | rwozniak72/sklep_oscar_test | 79588b57470c9245324cc5396aa472192953aeda | fb410dc542e6cb4deaf870b3e7d5d22ca794dc29 | refs/heads/master | 2020-08-12T04:55:25.084998 | 2019-10-16T21:14:08 | 2019-10-16T21:14:08 | 214,692,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-13 08:44
from __future__ import unicode_literals
from django.db import migrations
import oscar.models.fields.slugfield
class Migration(migrations.Migration):
dependencies = [
('catalogue', '0008_auto_20160304_1652'),
]
... | [
"rwozniak.esselte@gmail.com"
] | rwozniak.esselte@gmail.com |
46b0c3cbe6f5c5c85fd946c923061265bfab8135 | d0efa2026b7ed22ff4f9aa76c27ae2474c30f26d | /openapi_client/models/cardholder_info_response.py | 22a7bfe6aecd5ebdf588190580eb0cfe3d47cc61 | [] | no_license | begum-akbay/Python | 2075650e0ddbf1c51823ebd749742646bf221603 | fe8b47e29aae609b7510af2d21e53b8a575857d8 | refs/heads/master | 2023-03-28T00:11:00.997194 | 2021-03-25T16:38:17 | 2021-03-25T16:38:17 | 351,499,957 | 0 | 0 | null | 2021-03-25T16:38:17 | 2021-03-25T16:15:16 | Python | UTF-8 | Python | false | false | 8,838 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
e641d2ac5f184700e1c4136725d593fed503e12f | 17e0d1a7c3cae13730a97fe7a34b8aeb58a62f53 | /fjord/feedback/migrations/0011_convert_residual_unknown_to_empty.py | 1ae49abca930ac7e71a7aaf05efcf561d8142049 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | mnoorenberghe/fjord | a1bbf1f32ff7e72b0ff01588a24d1c7c50b42548 | 2d2566ee017a745ae8da0008aee8d2d131df4112 | refs/heads/master | 2020-05-29T11:38:10.077042 | 2013-10-25T19:54:50 | 2013-10-25T19:54:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,934 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
# Change "Unknown" to "" in version column
print '0011: version updated', orm.Response.objects.filter(version=u'U... | [
"willkg@mozilla.com"
] | willkg@mozilla.com |
ce6dfd183ee13f2179fdf3050996d8c643389b44 | 16fe74651e6692ea3d8d0302b40ac42f3d58e0ca | /move_zeroes.py | f403dff9d9b1363a0e84b60d5379f0c6bf403cc7 | [
"MIT"
] | permissive | Ahmed--Mohsen/leetcode | 7574f71b10dfb9582f62e856bbc2559d3b21b2a1 | ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e | refs/heads/master | 2021-01-18T14:34:06.987665 | 2015-12-23T21:17:27 | 2015-12-23T21:17:27 | 33,744,104 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | """
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
For example, given nums = [0, 1, 0, 3, 12], after calling your function, nums should be [1, 3, 12, 0, 0].
Note:
You must do this in-place without making a copy of the array.
Minim... | [
"ahmed7890@gmail.com"
] | ahmed7890@gmail.com |
247f74a25c0d302adb7988c18b2001216212baf8 | 6f5071d72c4c44677e6438958b9a84756e477b15 | /answer/migrations/0004_answer_marks.py | 9b1c48c6db90189b6e47dc9198bae6d518577f57 | [] | no_license | saatvikgulati/Classwork-Mangt-Sys | 29c705db7f49c6f4446020d39400ca8a30d0d115 | ca9cafb90908c7ffeb6711b19fe32fc30375be4d | refs/heads/main | 2023-05-01T17:55:52.088996 | 2021-05-18T16:32:18 | 2021-05-18T16:32:18 | 368,512,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.1.5 on 2021-01-20 15:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('answer', '0003_auto_20210120_1619'),
]
operations = [
migrations.AddField(
model_name='answer',
name='marks',
... | [
"saatugulati@gmail.com"
] | saatugulati@gmail.com |
2e1a16fa21fc5d34d5a300b813015902e47c515c | 1ebe5a07e7f6260c2c2ceb6ca00dcf2a0341e544 | /op_impl/built-in/ai_core/tbe/impl/in_training_update_v2.py | 314b7a861e09a5f4b89a2407a20ca88900971bc9 | [] | no_license | gekowa/ascend-opp | f5e09905336d85f9974d555d03d37a75cb8185c1 | 5c28a2faf9d2a117ea6f0923efe35fcd53904dd2 | refs/heads/master | 2023-04-09T12:14:40.337104 | 2021-04-19T23:00:59 | 2021-04-19T23:00:59 | 359,620,865 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,923 | py | # Copyright 2019 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"gekowa@gmail.com"
] | gekowa@gmail.com |
7f3cb94342ea3035f0b194f54fb9a96d09f0f270 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2265/60621/269113.py | d2fded34fc9224603c05cc92f0da4425f43cbdf7 | [] | 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 | 2,099 | py | aa=eval(input())
t=0
while aa!=0:
t+=1
tt=[]
if t==13:
tt.append(aa)
head=[-1 for x in range(aa)]
df=[-1 for x in range(aa)]
low=[-1 for x in range(aa)]
valid=[False for x in range(aa)]
cut=set()
belong=[-1 for x in range(aa)]
edgeArray=[]
def addEdge(u,v,w):
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4da1a5465d6691d7deb3d4d4c39a59ca42d92c1b | 1fd7d0ac2903beb5ef70370b22485a3b43df7466 | /Flask/Websites/Material Kit/app/cli.py | 66259b94db8714e791e35f721f123a6010395b9f | [
"MIT"
] | permissive | stanman71/Python_Basics | a34b3ea95b035ced5e607a8ba4841836c7667666 | fe442e421362b22f61d05235e835a568d9ce3aef | refs/heads/master | 2021-06-07T21:29:58.565300 | 2019-09-22T21:07:56 | 2019-09-22T21:07:56 | 161,891,286 | 1 | 0 | MIT | 2021-05-08T16:50:05 | 2018-12-15T09:47:23 | CSS | UTF-8 | Python | false | false | 1,230 | py | # -*- encoding: utf-8 -*-
"""
Fully Coded App by AppSeed.us
License: MIT
For more apps please access https://appseed.us/
Copyright (c) 2019 - present AppSeed.us
"""
import datetime,time,os,re
from sqlalchemy import desc,or_
from flask_frozen import Freezer
from app import app, lm, db, bc
from . common ... | [
"stanlay@gmx.net"
] | stanlay@gmx.net |
16ac2ffb46315eccfc9e5ae3a88c82f9e1e182a2 | 3dfb4ee39555b30e6e0c6fcdbef371864e69f694 | /google-cloud-sdk/lib/googlecloudsdk/api_lib/dataflow/job_utils.py | c908cc017c2f11981a238e5ba2ba7589c1c54f84 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | MD-Anderson-Bioinformatics/NG-CHM_Galaxy | 41d1566d5e60416e13e023182ca4351304381a51 | dcf4886d4ec06b13282143ef795c5f0ff20ffee3 | refs/heads/master | 2021-06-02T21:04:12.194964 | 2021-04-29T14:45:32 | 2021-04-29T14:45:32 | 130,249,632 | 0 | 1 | null | 2020-07-24T18:35:21 | 2018-04-19T17:25:33 | Python | UTF-8 | Python | false | false | 5,000 | py | # 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 required by applicable law or ag... | [
"rbrown@insilico.us.com"
] | rbrown@insilico.us.com |
8cba9f17f12c2bb9784747f7db527211d02d4310 | d8c80d51223e124dff5263b4c0d919bf069817fd | /BPR/model.py | 3e663d91e7e1153c6a4b9e9132042e38c8ffc487 | [] | no_license | ninahug/Recommender-System-with-TF2.0 | 3a33321cf5d2804daee0af4fa54e3f78ae603b84 | d8a018c68f011fc3ab4116a44d27141aaaad67dd | refs/heads/master | 2023-01-21T11:51:48.342827 | 2020-11-25T00:53:21 | 2020-11-25T00:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,607 | py | """
Created on Nov 13, 2020
model: BPR: Bayesian Personalized Ranking from Implicit Feedback
@author: Ziyao Geng
"""
import tensorflow as tf
from tensorflow.keras import Model
from tensorflow.keras.layers import Embedding, Input
from tensorflow.keras.regularizers import l2
class BPR(Model):
def __init__(self, f... | [
"593947521@qq.com"
] | 593947521@qq.com |
5490a110dc7bab7a57b16e94d0aff759447778eb | 4007632edd395d243bca022418848a2ff54409c8 | /MX2.0 好友管理/get friend_list.py | 13c5be554090b18658d696e14f9b411d21f04478 | [] | no_license | 549982170/python_learning | d80a9403cbe2eb8304aba50ff373b2b67df095e2 | 2c3f73718e0a6d9d4923a2e0f22ff2d4230357e9 | refs/heads/master | 2021-06-22T04:32:06.286691 | 2020-12-10T03:29:56 | 2020-12-10T03:29:56 | 101,596,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | #!user/bin/python
#encoding:utf-8
import requests
import json
url = 'http://www.moxiancn.com/mo_common_sso/m1/auth/login'
payload = {
"useraccount": "8615814431642",
"userpass": "123456"
}
headers = {'content-type': 'application/json'}
r = requests.post(url,data = jso... | [
"549982170@qq.com"
] | 549982170@qq.com |
369e14fcd22d3067d9b691234174aa6892414343 | 9cb7670c64c13f09abee315f85f1f6b67b8eb1ad | /ptp/components/viewers/stream_viewer.py | e44fb4cc8d7f5b754e51def281d6ed85591b2308 | [
"Apache-2.0"
] | permissive | ConnectionMaster/pytorchpipe | 057325a5d4e8e6ce2198a953a705721388531add | 9cb17271666061cb19fe24197ecd5e4c8d32c5da | refs/heads/develop | 2023-04-07T17:46:26.451692 | 2019-11-05T23:36:13 | 2019-11-05T23:36:13 | 183,084,219 | 1 | 0 | Apache-2.0 | 2023-04-03T23:18:43 | 2019-04-23T19:38:29 | Python | UTF-8 | Python | false | false | 3,970 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) tkornuta, IBM Corporation 2019
#
# 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 require... | [
"tkornut@us.ibm.com"
] | tkornut@us.ibm.com |
a81d639807e16d9f1449d561f7e317bf424e179a | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/gevent_gevent/gevent-master/src/gevent/_fileobjectposix.py | d35a5f19359e850cc0c4ce9381179e9151e4453f | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 10,671 | py | from __future__ import absolute_import
import os
import io
from io import BufferedReader
from io import BufferedWriter
from io import BytesIO
from io import DEFAULT_BUFFER_SIZE
from io import RawIOBase
from io import UnsupportedOperation
from gevent._fileobjectcommon import cancel_wait_ex
from gevent._fileobjectcommon... | [
"659338505@qq.com"
] | 659338505@qq.com |
104feba287e0cdd8aea5fde54ba5f01b47c10922 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/rapid_boolean.py | e81960960192e864bb2ff96113b4cf4a4063f0e2 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,100 | py | import bpy
import re
from bpy.props import BoolProperty, StringProperty, EnumProperty, CollectionProperty
import rna_keymap_ui
#######################
#CODE STRUCTURE
#######################
#Base Functions Section
#----------------------
#Main Functions Section
#----------------------
#Main Ops Section
#------------... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9e3ab8566ee355eafea53fa7e3e7ab14ef6aa5dc | 083c0106f962a6205b6899a9b001c26195deb5ab | /build/tweaks/fork.py | 3372f711e8ebdf98e43194cd10c941076dea2e9b | [] | no_license | bluemelodia/Pages | 33349a322bbc5250eed14817d77b050013fe658f | 79dc29e33cee0988b28049faad891a6042c954b2 | refs/heads/master | 2020-12-24T16:16:08.102464 | 2015-02-26T00:57:46 | 2015-02-26T00:57:46 | 31,343,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | pre_body = '''<a href="https://github.com/danrschlosser/learn-websites"><img class="github" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>'''
| [
"dan.r.schlosser@gmail.com"
] | dan.r.schlosser@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.