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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5a3f0953a5f5150f348eba1aafea1639a6d67dde | 7c14aff73d1266b81944db01c7c4d374f40668a4 | /RNN_MINST_cls.py | 704de130697e4b2b32c21f0d94c27097ceac8eec | [
"Apache-2.0"
] | permissive | oushu1zhangxiangxuan1/learn-tensorflow | ec19d20cf41dc186b9ac7f7de47d5574f30d6ff9 | e83f8633fcbfd428ee3495b18b75ca78c7a25331 | refs/heads/master | 2020-08-02T10:28:46.143332 | 2019-10-30T08:05:23 | 2019-10-30T08:05:23 | 211,318,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
tf.set_random_seed(1)
# 导入数据
minst = input_data.read_data_sets('MNIST_data', one_hot=True)
# hyperparameters
lr = 0.001 # learning rate
training_iters = 100000
batch_size = 128
n_inputs = 28
n_steps = 28 # time steps
n_hidden_unit... | [
"zhang.xiangxuan@oushu.io"
] | zhang.xiangxuan@oushu.io |
00ee778ca3fd1e9d239eac579284ef16cb9f8a5f | 6dd08ec6b4f6351de8450a3d7e592fd6b4994119 | /cbase/server/cbase-1.8.1/testrunner/pytests/viewquerytests.py | fc69c35e6f2724380fe604ee486dcf7a70afbd76 | [] | no_license | zhgwenming/appstack | d015e96b911fe318f9fba1bdeeea9d888d57dfba | 8fe6c1dfc2f5ed4a36c335e86ae28c17b3769276 | refs/heads/master | 2021-01-23T13:30:19.507537 | 2015-11-09T06:48:35 | 2015-11-09T06:48:35 | 7,576,644 | 1 | 2 | null | 2016-01-05T09:16:22 | 2013-01-12T15:13:21 | C | UTF-8 | Python | false | false | 70,316 | py | import uuid
import logger
import time
import unittest
import json
import sys
import copy
from threading import Thread
from couchbase.document import View
from membase.api.rest_client import RestConnection, RestHelper
from viewtests import ViewBaseTests
from memcached.helper.data_helper import VBucketAwareMemcached, Doc... | [
"zhgwenming@gmail.com"
] | zhgwenming@gmail.com |
ba5ea63f191283a9688c147dff9cfe8c6b3cf2a8 | 668188f5368680567be8c4af55a731e45a2380ba | /util_fix_pct_party.py | e6921735cd7015ca3905a22159709c6fda0e8daf | [] | no_license | wrishel/Ballot_tally | ec6ff128e61d6ebfe91574c9b55e083849665502 | 3e4ed8c4fe0503ead9b55fac77d3cfcd97c73c41 | refs/heads/master | 2023-06-24T17:35:51.537643 | 2021-07-28T18:38:32 | 2021-07-28T18:38:32 | 387,261,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,189 | py | #!/usr/bin/env python3
"""Reset the unnormalized precinct and party fields in the Images table
by reinterpreting the barcode_upper field.
"""
import dbase
import datetime
from ETP_util import fullpath_to_image, subpath_to_image
import GLB_globs
import etpconfig
import os
import sys
import time
TESTING = True
pid... | [
"wrishel@gmail.com"
] | wrishel@gmail.com |
801805d1bb72e7d65eb1a65e54954bc3e43ec6b5 | 31aaa9c750827e534d53a9cccd93b14034c740d8 | /torchx/specs/test/file_linter_test.py | 104b273377e5141525858cce307071cd1f0076ba | [
"BSD-3-Clause"
] | permissive | gaocegege/torchx | 1648e06d951f11eac26817fbcb7919fbc8932094 | 6e85e9fc023083447ce261d01e16ec0a0799f598 | refs/heads/master | 2023-06-27T21:33:48.776638 | 2021-07-28T22:27:12 | 2021-07-28T22:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,017 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import ast
import os
import unittest
from typing import Dict, List, Optional, cast
from pyre_extensions import n... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7f1435e4caee3329efb4e7ef57227350fbfdcdc6 | 40f92e067b7705acac1a01709fbef49b7e98af05 | /tutorial/L42更多的资源类型情况/2图片改进.py | cb1ef3d3a819cb7c108736cd55a653e47a384984 | [] | no_license | liuxiaoxiao666/python_study | bd2a2a6122cf316f3fa7ee6926675bc96deb773c | 9afe9ec7809529af05a971993d9ee17421364f76 | refs/heads/master | 2021-10-19T15:47:47.729728 | 2019-02-22T08:27:40 | 2019-02-22T08:27:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,958 | py | # coding:utf-8
# 情况2:纯静态网页获取图片
# 解决方案:requests包会接受响应的二进制数据,取出后写入到本地。
# 分析网页,比纯静态纯文本麻烦一点,图片往往通过src标签或a标签到网页,第一步先分析获取图片在网页上的url资源地址,第二部请求静态资源地址获取图片二进制信息。
import requests
from lxml import etree
import os
import time
#风景分类/分页列表
resp = requests.get('http://www.ivsky.com/tupian/ziranfengguang/index_2.html')
html_content = ... | [
"1417633855@qq.com"
] | 1417633855@qq.com |
055237bb5f10dbc3a7803b958039f4f1c9d1f70c | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/retail/v2alpha/retail-v2alpha-py/google/cloud/retail_v2alpha/services/catalog_service/transports/grpc.py | 93bc9af6f89d459cc141a577a3ac5750430668d6 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,604 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
7f83ccac64e8a53e8d25e677d1b7ce5405fae100 | f5624e046836723fa065d47d11d52b8b3e448e7b | /espy/splitlist.py | a67fd9453ad4756a09f5179de45f048c6c7f82be | [] | no_license | esheldon/espy | 99daafcf9f81b1465994a0e717095a8ea0bcbfc8 | 090e6f4c65c2dc3acef3c2d98b2971d8c1002787 | refs/heads/master | 2023-07-20T23:49:18.662509 | 2023-07-12T15:40:24 | 2023-07-12T15:40:24 | 1,374,930 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | def split_list(els, nchunks):
nel = len(els)
chunksize = nel // nchunks
extra_items = nel % nchunks
chunks = []
start = 0
for i in range(nchunks):
this_chunksize = chunksize
if i < extra_items:
this_chunksize += 1
end = start + this_chunksize
ch... | [
"erin.sheldon@gmail.com"
] | erin.sheldon@gmail.com |
1ae6af2cce4447358311e46e19be97470cce2616 | b9a131dd85fe5f2d2f5b16c97b1f859ede5a4914 | /Curso_em_Vídeo/CalculoMedia.py | 99126bab46b183c7dfc1ae6d976078cbf62a1650 | [] | no_license | juancassioo/python-sistemas | 131f218bf8fa1bebf1bc6e5fbe3222571ca7a42f | 378596d1c630357b1b1958a3b4e3e7f6f96dd5d1 | refs/heads/main | 2023-07-04T20:27:22.859839 | 2021-08-09T01:10:37 | 2021-08-09T01:10:37 | 394,105,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | nota1 = float(input('Digite a primeira nota: '))
nota2 = float(input('Digite a segunda nota: '))
media = (nota1+nota2)/2
if media >= 4 and media < 7:
print('Apto a avaliação final')
elif media < 4:
print('Reprovado')
else:
('Aprovado')
print(media) | [
"noreply@github.com"
] | juancassioo.noreply@github.com |
7245d605b82b94a01fd481256157eec9bc376170 | 67612c27c6d79ae180a5bc266833899abfefe9f5 | /152. Maximum Product Subarray.py | c0dac2b1ad7f683ccdf47d6b5d6e01df83f751e2 | [] | no_license | Katherinaxxx/leetcode | 7e9d0bd7dc613a824116f1247f42bfc33e485ff3 | dcebf49d1e024b9e69c4d9606c8afb32b9d07029 | refs/heads/master | 2023-01-27T20:14:09.459296 | 2023-01-08T07:01:53 | 2023-01-08T07:01:53 | 215,688,672 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2019/11/13 上午11:57
@Author : Catherinexxx
@Site :
@File : 152. Maximum Product Subarray.py
@Software: PyCharm
"""
# DP 乘积正负号 因此要保存最大值最小值 负数大小交换
# class Solution:
# def maxProduct(self, nums: List[int]) -> int:
# imax = 1
# imin = 1
# ... | [
"359391236@qq.com"
] | 359391236@qq.com |
52838f675ec154a16649220f797aee36f8262712 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/IBus/__class__.py | 39b144f32a6b76f1cc80ecf5f82044a5df077f98 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 3,623 | py | # encoding: utf-8
# module gi.repository.IBus
# from /usr/lib64/girepository-1.0/IBus-1.0.typelib
# by generator 1.147
# no doc
# imports
import gi as __gi
import gi.overrides as __gi_overrides
import gi.overrides.Gio as __gi_overrides_Gio
import gi.repository.GObject as __gi_repository_GObject
import gobject as __gob... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
2f26fdc0fa04f60227982e45b6f007e513c9edb9 | 9f387c703dbf4d970d0259424c7b299108c369f5 | /dd_sdk_1_0/dd_sdk_1_0/models/network_nic_link_duplex_mode20.py | a1f674f04d95c2db1e574d1bd892e439069155e9 | [] | no_license | gcezaralmeida/datadomain_sdk_python | c989e6846bae9435c523ab09e230fc12d020f7f1 | e102ec85cea5d888c8329626892347571832e079 | refs/heads/main | 2023-08-23T22:42:47.083754 | 2021-10-25T21:52:49 | 2021-10-25T21:52:49 | 370,805,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,924 | py | # coding: utf-8
"""
DataDomain Rest API Documentation
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # no... | [
"root@s6006st157.petrobras.biz"
] | root@s6006st157.petrobras.biz |
8f07d9cbe7ec45103b3e054e55955ac2957f7213 | c5d553e68de3d5c730f5fe2550209de759eabc8c | /1929 소수 구하기.py | 0598ecfbae20cc2a1f69cbce7d06bbde3eb36502 | [] | no_license | KimMooHyeon/Algorithm-Studying | 6bb23b971b0c46c35f4cdde133148f2c5cfaa0f4 | e4417aadf209fd22f960239623bed542744fd374 | refs/heads/master | 2023-08-08T02:28:02.460332 | 2023-07-15T14:22:53 | 2023-07-15T14:22:53 | 198,966,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
M,N=map(int,input().split())
check_dp=[0]*(N+1)
sosu_arr=[]
for i in range(2,N+1):
if check_dp[i] == 0 :
if i >=M:
print(i)
i_num=i
for j in range(i,N+1,i_num):
check_dp[j]=1
| [
"dlfb77@gmail.com"
] | dlfb77@gmail.com |
cd072d8feaa75ce59e3e079c13cb5d3970e11f7a | 04803c70bb97012b7d500a177ac0240fb2ddbe38 | /1heptane/pdep/network3476_1.py | 732677e6d7a93000358eea7f799c0da66a3811a4 | [] | no_license | shenghuiqin/chpd | 735e0415f6688d88579fc935459c1b0f53596d1d | 396ba54629036e3f2be0b3fabe09b78c90d56939 | refs/heads/master | 2023-03-01T23:29:02.118150 | 2019-10-05T04:02:23 | 2019-10-05T04:02:23 | 192,084,217 | 0 | 0 | null | 2019-06-18T18:33:13 | 2019-06-15T13:52:28 | HTML | UTF-8 | Python | false | false | 63,739 | py | species(
label = '[CH2]CO[CH]CCC=O(18425)',
structure = SMILES('[CH2]CO[CH]CCC=O'),
E0 = (-11.6877,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([2750,2770,2790,2810,2830,2850,1425,1437.5,1450,1225,1250,1275,1270,1305,1340,700,750,800,300,350,400,2782.5,750,1395,475,1775,1000,3000,3100,44... | [
"qin.she@husky.neu.edu"
] | qin.she@husky.neu.edu |
c66da0093d768643a519fc3c1896367ef095410b | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_cumsum/trend_linear/cycle_30/ar_12/test_artificial_1024_cumsum_linear_30_12_100.py | 812701238d3aa0cdd90c6e52e27439a111ee85e6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 1024 , FREQ = 'D', seed = 0, trendtype = "linear", cycle_length = 30, transform = "cumsum", sigma = 0.0, exog_count = 100, ar_order = 12);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
f8898597a2689911dfc7b0dc3b0e25955c465047 | 55a273347cb103fe2b2704cb9653956956d0dd34 | /code/tmp_rtrip/lib2to3/fixes/fix_raise.py | 050118e90c4212a90b1fa805531431d0318601af | [
"MIT"
] | permissive | emilyemorehouse/ast-and-me | 4af1bc74fc967ea69ac1aed92664f6428acabe6a | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | refs/heads/master | 2022-11-18T03:50:36.505882 | 2018-05-12T17:53:44 | 2018-05-12T17:53:44 | 115,035,148 | 25 | 1 | MIT | 2022-11-04T11:36:43 | 2017-12-21T18:27:19 | Python | UTF-8 | Python | false | false | 2,209 | py | """Fixer for 'raise E, V, T'
raise -> raise
raise E -> raise E
raise E, V -> raise E(V)
raise E, V, T -> raise E(V).with_traceback(T)
raise E, None, T -> raise E.with_traceback(T)
raise (((E, E'), E''), E'''), V -> raise E(V)
raise "foo", V, T -> warns about string exceptions
CAVEATS:... | [
"emily@cuttlesoft.com"
] | emily@cuttlesoft.com |
3dccca44a60a3000863d6a65edd0d6b9ce25723f | 5292b03998384c0d2bb5858058892d7e45c5365b | /C3CTF/2017/lfa/server.py | 6153f36b52fbf1bfae1f787c826eee6c154d6d5b | [
"MIT"
] | permissive | TheusZer0/ctf-archives | 430ef80d367b44fd81449bcb108e367842cb8e39 | 033ccf8dab0abdbdbbaa4f0092ab589288ddb4bd | refs/heads/main | 2023-09-04T17:56:24.416820 | 2021-11-21T06:51:27 | 2021-11-21T06:51:27 | 430,603,430 | 1 | 0 | MIT | 2021-11-22T07:24:08 | 2021-11-22T07:24:07 | null | UTF-8 | Python | false | false | 729 | py | #!/usr/bin/python
import tempfile
import os
import string
import random
def randstr():
return ''.join(random.choice(string.ascii_uppercase + string.digits + string.ascii_lowercase) for _ in range(10))
code = "require 'LFA'\n"
code += "syscall 1, 1, \"hello\\n\", 6\n\n"
max = 600 # 600 linex should be more than... | [
"sajjadium@google.com"
] | sajjadium@google.com |
38b5170a2ac939a6a73dfceb7cb566679f67f6de | 0cb1ff9d0be4387e33f1003ab5cc72bab0345e7a | /wildcard/test/test_data/exceptions.py | b55003f488bc7e7760e5c0e1232632abe211c45b | [
"Apache-2.0"
] | permissive | kickstandproject/wildcard | 65995fb0090c4cfcad34f8373cfc912199ecf5da | 0ef2a15d8ac6b1d37db964d0baa7e40f9f771bc9 | refs/heads/master | 2020-05-17T00:41:09.908059 | 2015-01-27T20:25:33 | 2015-01-28T03:30:22 | 14,288,349 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | # Copyright 2012 Nebula, 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 agree... | [
"paul.belanger@polybeacon.com"
] | paul.belanger@polybeacon.com |
23f642c26b049ab38cc33af5219bab1179f92ca6 | 81c85850747f97ccc6ed36e3e0a859b99ef38fe8 | /agesprot/apps/activity/migrations/0001_initial.py | a3d6c2d181ec3eadaa4bcbb3962dbc5f910112c3 | [] | no_license | agesprot1/agesprot | f5047447a37ea8e92b4ffa2d72ae7814d0af8950 | 34c14a176bca5523999d27d5b9f695a6fac9df96 | refs/heads/master | 2021-01-20T22:11:18.686295 | 2016-08-23T22:38:57 | 2016-08-23T22:38:57 | 61,495,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-06-16 03:43
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('base', '0001_initial'),
('projec... | [
"alka65@hotmail.com"
] | alka65@hotmail.com |
57c3ea658ea0e1295abf524f1108822e4d6d2a66 | bd867af5245366ee0abfd0f659fcb42170fff8ca | /hackerRank/algorithms/SolveMeFirst/solve_me_first.py | ddfca165b1148f31b2036c8cf23b5fbdc6214bd1 | [] | no_license | kruart/coding_challenges | 04736a6b66da813fd973e7a57aa084bbdab31183 | 395ae60ab392e49bb5bc2f0a4eef1dfd232899bb | refs/heads/master | 2021-06-16T08:51:21.815334 | 2019-11-07T08:39:13 | 2019-11-07T08:39:13 | 153,890,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | # https://www.hackerrank.com/challenges/solve-me-first/problem
def solve_me_first(a, b):
return a + b
a = int(input())
b = int(input())
res = solve_me_first(a, b)
print(res)
| [
"weoz@ukr.net"
] | weoz@ukr.net |
6a234a228d30cac988244e65717f7efcd912dead | 3343e5193e2dd14a3dc2c8c375914b12323dea82 | /dnacentersdk/models/validators/v2_1_2/jsd_bf859ac64a0ba19c.py | 76a50a6b8acc29e75be779590c64df8f2276b99d | [
"MIT"
] | permissive | sandhjos/dnacentersdk | 6b483fe61307d4ea377b4bcc343e77aa7994e8bc | 9ca1a1923bc714e49e652099e2d60ee121d789e9 | refs/heads/master | 2023-04-18T17:52:09.350514 | 2021-05-07T23:41:47 | 2021-05-07T23:41:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,200 | py | # -*- coding: utf-8 -*-
"""DNA Center Create HTTP read credentials data model.
Copyright (c) 2019-2020 Cisco and/or its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restric... | [
"jbogarin@altus.cr"
] | jbogarin@altus.cr |
e693a6dea2031551cda8d8b65dfdb15aff401888 | f693c9c487d31a677f009afcdf922b4e7f7d1af0 | /biomixer-venv/lib/python3.9/site-packages/pylint/epylint.py | 12f541c7af626e6e326e516ea1a0f9e7869b4cb0 | [
"MIT"
] | permissive | Shellowb/BioMixer | 9048b6c07fa30b83c87402284f0cebd11a58e772 | 1939261589fe8d6584a942a99f0308e898a28c1c | refs/heads/master | 2022-10-05T08:16:11.236866 | 2021-06-29T17:20:45 | 2021-06-29T17:20:45 | 164,722,008 | 1 | 3 | MIT | 2022-09-30T20:23:34 | 2019-01-08T19:52:12 | Python | UTF-8 | Python | false | false | 7,392 | py | # mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4
# -*- vim:fenc=utf-8:ft=python:et:sw=4:ts=4:sts=4
# Copyright (c) 2008-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
# Copyright (c) 2014 Jakob Normark <jakobnormark@gmail.com>
# Copyright (c) 2014 Brett Cannon <brett@python.org>
# Copyrig... | [
"marcelo.becerra@ug.uchile.cl"
] | marcelo.becerra@ug.uchile.cl |
73ceb23b6051ec06412393193149dafa2b105e62 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/2732.py | 1112dd9834490f34fce3e6b7f8b1d4e4fedbdb3f | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #!/usr/bin/python3
from math import log
lines = int(input())
for attempt in range(1,lines+1):
N = int(input())
digits = int(log(N, 10))
for place in range(0,digits+1):
digit = (N % (10 ** (place + 1)) // (10 ** place))
next_digit = (N % (10 ** (place + 2)) // (10 ** (place + 1)))
if digit < next_digit:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
45a9d2db2a62576efdf7ae91345243d5ba0d273d | 2293c76c3d18e2fcd44ded90bd40113d26285663 | /pyeccodes/defs/grib2/template_3_2_def.py | 76e19f44a4b458d103bb31fb6f34b7754884156d | [
"Apache-2.0"
] | permissive | ecmwf/pyeccodes | b1f121dbddf68d176a03805ed5144ba0b37ac211 | dce2c72d3adcc0cb801731366be53327ce13a00b | refs/heads/master | 2022-04-23T10:37:40.524078 | 2020-04-18T06:30:29 | 2020-04-18T06:30:29 | 255,554,540 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,930 | py | import pyeccodes.accessors as _
def load(h):
h.add(_.Codetable('shapeOfTheEarth', 1, "3.2.table", _.Get('masterDir'), _.Get('localDir')))
h.add(_.Unsigned('scaleFactorOfRadiusOfSphericalEarth', 1))
h.add(_.Unsigned('scaledValueOfRadiusOfSphericalEarth', 4))
h.add(_.Unsigned('scaleFactorOfEarthMajorAx... | [
"baudouin.raoult@ecmwf.int"
] | baudouin.raoult@ecmwf.int |
3daffa234c6aa57bcd92b929a867332bb323d54a | 9004f36238c6b601d388b679f430d7614dcb8507 | /docs/source/conf.py | 4778b42c7e3c497d1a7e5dd1faf30927c8ed894c | [
"MIT"
] | permissive | Zwork101/backpack.py | 32107a0665bf46b81d3e9b6b2bbbc3fe35b2ade4 | 92dca1d6aa55438abe313ffc0cf2b14916238d5d | refs/heads/master | 2021-01-22T04:18:34.807054 | 2017-08-14T13:28:38 | 2017-08-14T13:28:38 | 92,454,505 | 10 | 2 | null | 2017-08-14T13:28:39 | 2017-05-26T00:01:23 | Python | UTF-8 | Python | false | false | 4,940 | py | import sphinx_rtd_theme
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# backpack.py-docs documentation build configuration file, created by
# sphinx-quickstart on Sun Jun 25 17:00:12 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuratio... | [
"zwork101@gmail.com"
] | zwork101@gmail.com |
21364fa67620be18c6d8c2548c8efbba02fa0c26 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/answer.py | 50dd4581e3630de0d5da4538c51262ca70084e2e | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 1,815 | 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 ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
eb5501a72b2dadfe695fbbf4f5bfebce35b113b1 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_2/models/alert_get_response.py | e958eff10dfa33d789703b5137b659a3506f1165 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,212 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.2, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"msholes@purestorage.com"
] | msholes@purestorage.com |
99641de68b0208d05d1987b137bd93c4fb241771 | 87ac76b8aae5bf1c8a1530cd317972e4cf54fd62 | /azext_iot/sdk/digitaltwins/controlplane/operations/private_endpoint_connections_operations.py | 5b74d372b03db478262de60fc126ca5f2d0bdb4b | [
"MIT"
] | permissive | montgomp/azure-iot-cli-extension | 911dbb10bb27d1b4ba2446fad4e37014c99bea6e | 7dee61b369f5dd7c7b9753edfc87b8ed35841c72 | refs/heads/dev | 2023-08-28T18:58:16.052628 | 2021-10-21T21:13:11 | 2021-10-21T21:13:11 | 271,131,011 | 1 | 1 | NOASSERTION | 2020-08-05T15:56:03 | 2020-06-09T23:30:08 | Python | UTF-8 | Python | false | false | 18,382 | 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 ... | [
"noreply@github.com"
] | montgomp.noreply@github.com |
ecc2abe94866c5f7103035ef171af8b7d9358fc3 | 96fe253e9a740b51dcd7f83d6ab01bb248c2bf4b | /patrones_poma/cohesive_modules/cohesivo_aciclico/tst_cohesivo_aciclico.py | 0415e8c1c409d6b307ab03f7c4ca238275c21b6d | [] | no_license | vvalotto/Patrones_Disenio_Python | 7574470752a5f14214434a927c2c5e0faaa592ba | 7ab6a74e9b008c3434af0a56d4c2b6b7de3617bf | refs/heads/master | 2021-04-28T19:16:21.535998 | 2018-10-21T14:05:36 | 2018-10-21T14:05:36 | 121,891,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from POMA.cohesive_modules.cohesivo_aciclico.factura.factura import *
from POMA.cohesive_modules.cohesivo_aciclico.ruteador.ruteador_tipoA import *
mi_factura = Factura("A", "1", 200.20, RuteadorTipoA())
print(mi_factura.rutear())
print(mi_factura.obtener_prioridad())
| [
"vvalotto@gmail.com"
] | vvalotto@gmail.com |
79dfcc06309bb5e28a4290371c43aab711ed6714 | 61d434953d55af170c4abb023686256509a4bffc | /restapi/schemas/replies/ReplySchema.py | 04c71429ee46d94f129a9d811dfb265abba5a929 | [] | no_license | mentimun-mentah/tridatu-backend | c6e471bc08c010ebc5b3fcdf5ef5bac0c33758de | 32cf22c24327b228cba57782ffd4740906e8e7d8 | refs/heads/master | 2023-03-14T13:32:31.264593 | 2021-03-09T13:30:12 | 2021-03-09T13:30:12 | 302,246,645 | 4 | 1 | null | 2021-03-09T13:30:13 | 2020-10-08T06:04:50 | Python | UTF-8 | Python | false | false | 755 | py | from pydantic import BaseModel, constr, validator
from typing import List
from datetime import datetime
class ReplySchema(BaseModel):
class Config:
min_anystr_length = 1
anystr_strip_whitespace = True
class ReplyCreate(ReplySchema):
message: constr(strict=True, min_length=5)
comment_id: co... | [
"nyomanpradipta120@gmail.com"
] | nyomanpradipta120@gmail.com |
cc51f88f7e67cce097fbe723ea57b273d945e573 | eb2df6020f5759feee3d6d78c5f8c78999454a09 | /migrations/versions/d8e9859f3cbc_.py | 03229422b0101f909d63df429c85801810a4f7f5 | [] | no_license | mywork-dragon/dave-energy | 7a08f855d245c2d90a9c13aa85fc3b9f28ae9294 | 4b3430be6ef6957389ab05be3a17a0245f5d6662 | refs/heads/master | 2023-07-28T02:55:26.791724 | 2021-09-06T11:44:30 | 2021-09-06T11:44:30 | 365,872,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | # type: ignore
"""Devices
Revision ID: d8e9859f3cbc
Revises: 228cb8a5f8d4
Create Date: 2020-03-06 11:48:38.819954
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "d8e9859f3cbc"
down_revision = "228cb8a5f8d4"
branch_labels = None
depends_on = None
def upgrade(... | [
"dragonblueyounger@gmail.com"
] | dragonblueyounger@gmail.com |
cad6d289e8b1c0a1fd07a1687f78153f63bc7a2a | cbb2dde4b4695d6a3012a5c2540265c45a840b32 | /bin/evtest.py | b99ad5422931e97f5de044fb5f7cfbc34233287d | [
"BSD-2-Clause"
] | permissive | sil2100/python-evdev | 806d1c8e158976446cf01b84972f15b5badc9e23 | d076168037ac6b78e7e8243918c4d3ce0e0923aa | refs/heads/master | 2021-01-24T05:47:36.899225 | 2013-05-28T13:22:07 | 2013-05-28T13:22:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,379 | py | #!/usr/bin/env python
# encoding: utf-8
'''
evdev example - input device event monitor
'''
from sys import argv, exit
from select import select
from evdev import ecodes, InputDevice, list_devices, AbsInfo
usage = 'usage: evtest <device> [<type> <value>]'
evfmt = 'time {:<16} type {} ({}), code {:<4} ({}), value {}... | [
"georgi.t.valkov@gmail.com"
] | georgi.t.valkov@gmail.com |
6b868d1463284f7e4da356224d0455120fc4d8f2 | f16326f33b286ac10740016c67446dd3279ee60e | /sklearn/tutorials/demo.py | 772c25525fda01237488f7277447a5bd37811e95 | [] | no_license | zhuliyi10/ml_demo | da1b4189a941e079cb780bcf6ab5ae710d407556 | 04303ea37dbfc0ba8dd57e77ff53ccdcae1e5ce5 | refs/heads/master | 2020-03-31T08:23:16.677823 | 2019-01-24T08:32:49 | 2019-01-24T08:32:49 | 152,054,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import matplotlib.pyplot as plt
from sklearn import datasets
iris = datasets.load_digits()
data = iris.images
output = iris.target
print(data.shape)
data1 = data.reshape((data.shape[0], -1))
print(data1.shape)
plt.imshow(data[0], cmap=plt.cm.gray_r)
plt.show()
| [
"2280835569@qq.com"
] | 2280835569@qq.com |
2080139d54365d3f68b0112f690fbba5d900f8c9 | 635c9f0501039f5a099849a3108e19de76092aea | /lecture/ssafy_190322/todo/todo/settings.py | b197b4b94c64ba9757a523c9448b11e6fa9af024 | [] | no_license | Hansung-Lee/SSAFY | 87ebea0808bb40381678d678e1035dc5fa2c2eb0 | cdb7ae1bba0e98e733eed703da2c62217c319462 | refs/heads/master | 2020-04-14T20:03:05.975040 | 2019-05-16T08:57:21 | 2019-05-16T08:57:21 | 164,080,393 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | """
Django settings for todo project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"ajtwlsgkst@naver.com"
] | ajtwlsgkst@naver.com |
fc8db3e4cc9c4ef2ecf999f752fac8a6ddd96c26 | ece3a452b51d2cbcac6c20481ab6660b77c3f955 | /Eigenbasis.py | 1dca2aade14eaf471cc74f426bd77d2aae761a2a | [] | no_license | ilmoi/imperial_math | ef1d220a361c4dab6fde436b482941d27e97f8f3 | a3e8537dc201fef486a17f7a5e024fa1d60e2644 | refs/heads/master | 2022-08-09T20:29:13.805569 | 2020-05-14T16:42:13 | 2020-05-14T16:42:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | import numpy as np
#in numpy "matrix" - strictly 2d. need to use arrays instead.
#in numpy need to write numbers horizonally, not vertically
T = np.array([[3/2,-1],[-1/2,1/2]]) #transform
v = np.array([-1,1]) #vector to check
Ans1 = T @ T @ v
C = np.array([[2.73,1],[-1,1.366]]) #two eigenvectors
C_inv = np.linalg.i... | [
"iljamoisejevs@gmail.com"
] | iljamoisejevs@gmail.com |
2f05b4b9c701ea5fb7a5fb4e59cda30ae79ab86c | 30291450c064006f1bd9bc5c432b8a869e2166bb | /tags/0.6/tests/test_types_cn.py | 6a1c00d8014fa97165b2840de092c295ce17b0f9 | [
"MIT"
] | permissive | BGCX261/zhpy-svn-to-git | 96f04e2f72c61671324219a85939137ff5cd9ef6 | 70da095393fe13543433ab5115cb6c1a519d64b0 | refs/heads/master | 2021-01-22T22:49:04.898314 | 2015-08-25T15:44:00 | 2015-08-25T15:44:00 | 41,587,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | #coding=utf-8
"""
test build-in types
"""
from zhpy import convertor
def test_int():
"""
test int type
"""
assert convertor("整数(2.0)") == "int(2.0)"
def test_float():
"""
test float type
"""
assert convertor("小数(2)") == "float(2)"
def test_boolean():
"""
test boolean type... | [
"you@example.com"
] | you@example.com |
5fbe66864d69107584b51660b80c9014d7f093c0 | 6967eccf98ad8c51e69606287279c9ed1c0d344f | /tests/components/sensor/test_mqtt.py | b59ea867c5886f709ca8a4032536d58c11395eec | [
"MIT"
] | permissive | plucena24/home-assistant | 6c146daceff147db2e22b74a538f4c68f20029ca | 060cbaf66b3722480e6bca54c2c32111179e7067 | refs/heads/dev | 2023-08-18T07:09:55.539600 | 2015-10-23T22:38:19 | 2015-10-23T22:38:19 | 44,849,509 | 0 | 0 | MIT | 2023-08-08T18:37:20 | 2015-10-24T02:50:00 | Python | UTF-8 | Python | false | false | 1,220 | py | """
tests.components.sensor.test_mqtt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests mqtt sensor.
"""
import unittest
import homeassistant.core as ha
import homeassistant.components.sensor as sensor
from tests.common import mock_mqtt_component, fire_mqtt_message
class TestSensorMQTT(unittest.TestCase):
""" Test the MQ... | [
"paulus@paulusschoutsen.nl"
] | paulus@paulusschoutsen.nl |
9c444fdadbfca4ef40a3f4389874729e20364461 | 45c170fb0673deece06f3055979ece25c3210380 | /toontown/toontowngui/FeatureComingSoonDialog.py | 3a5555537952b8d9f862f80f1ae3ae4fb12c852c | [] | no_license | MTTPAM/PublicRelease | 5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f | 825f562d5021c65d40115d64523bb850feff6a98 | refs/heads/master | 2021-07-24T09:48:32.607518 | 2018-11-13T03:17:53 | 2018-11-13T03:17:53 | 119,129,731 | 2 | 6 | null | 2018-11-07T22:10:10 | 2018-01-27T03:43:39 | Python | UTF-8 | Python | false | false | 794 | py | #Embedded file name: toontown.toontowngui.FeatureComingSoonDialog
from direct.fsm import ClassicFSM, State
from toontown.toonbase.ToontownGlobals import OptionsPageHotkey
from toontown.toontowngui import TTDialog
class FeatureComingSoonDialog:
def __init__(self, text = 'Woah! That feature will be enabled in \n\x0... | [
"linktlh@gmail.com"
] | linktlh@gmail.com |
f26d03d5110d3947d2d23a41ebbf1f0641052bf0 | 15d3a10db27128c06f84c30fa8d64b2e1c629fd9 | /express/pallets/migrations/0013_airwaybill_channel.py | c0115cf07beb503bf25d4c75061716ce3a2dd652 | [] | no_license | yiyuhao/exp | 7cba6650e3113ba05698f90a7baf75b680dd6435 | 866a90b2e6f0d113559b0674f514cdd56020f7d6 | refs/heads/master | 2020-03-19T20:20:04.799355 | 2018-07-15T14:55:24 | 2018-07-15T14:55:24 | 136,897,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-18 01:48
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('pallets', '0012_auto_20170317_1722'),
]
operations... | [
"yiyuhao@mixadx.com"
] | yiyuhao@mixadx.com |
cc105435957503dedf2f458f6b7088c268b060db | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_blazons.py | c2fbb9176bef4ff2bfd573dca5916e841fcd4995 | [
"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 | 238 | py |
from xai.brain.wordbase.verbs._blazon import _BLAZON
#calss header
class _BLAZONS(_BLAZON, ):
def __init__(self,):
_BLAZON.__init__(self)
self.name = "BLAZONS"
self.specie = 'verbs'
self.basic = "blazon"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5abbf7a3192c7ba05c5bdb22a2842df0746fbb98 | 4027d8dafb6f60568f03357e329c09262161e963 | /machinelearn/seaborn_learn/scatter_utils.py | 5eecf26b2ce5406a5b958ec0d3a628b8ff7ca668 | [] | no_license | pentiumCM/machinelearn | a2bfa15d6e9f20fd604116f77186da76ebcc4f27 | 329bb9521b5e06e3471aa209fc87ca47f8d5fdcb | refs/heads/master | 2022-12-08T23:43:05.784930 | 2021-05-24T04:02:23 | 2021-05-24T04:02:23 | 216,704,188 | 7 | 1 | null | 2022-12-08T09:30:07 | 2019-10-22T02:13:45 | Python | UTF-8 | Python | false | false | 19,770 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@Author : pentiumCM
@Email : 842679178@qq.com
@Software: PyCharm
@File : scatter_utils.py
@Time : 2020/9/8 9:05
@desc :
'''
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
wheel_parms = [
{'left_wheel_center_x': 450.0, 'right_wheel_c... | [
"842679178@qq.com"
] | 842679178@qq.com |
b9b81d1b217f65aab200611e5db505cd665c0456 | c1d03f41b6c80ef1e0a42b1bb710ba90d680e4c2 | /src/softfab/waiting.py | 2015d3a7b6b5ba0ba4af698aa869be68ff7dda67 | [
"BSD-3-Clause"
] | permissive | boxingbeetle/softfab | 4f96fc389dec5cd3dc987a427c2f491a19cbbef4 | 0ecf899f66a1fb046ee869cbfa3b5374b3f8aa14 | refs/heads/master | 2021-06-22T15:42:38.857018 | 2020-11-23T22:53:21 | 2020-11-23T22:53:21 | 169,245,088 | 20 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,963 | py | # SPDX-License-Identifier: BSD-3-Clause
'''Implementation of the "reason for waiting" feature.
This informs the user of why a task isn't running yet.
'''
from abc import ABC
from enum import IntEnum
from typing import (
TYPE_CHECKING, AbstractSet, Callable, ClassVar, Iterable, List, Optional,
Sequence, Union
... | [
"maarten@boxingbeetle.com"
] | maarten@boxingbeetle.com |
222a2fb37a868059da32a081e15ecbce85b1ff49 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_peeked.py | 8d7bc05fa8a2f971e389bfaba31a98cad7940000 | [
"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 | 226 | py |
from xai.brain.wordbase.verbs._peek import _PEEK
#calss header
class _PEEKED(_PEEK, ):
def __init__(self,):
_PEEK.__init__(self)
self.name = "PEEKED"
self.specie = 'verbs'
self.basic = "peek"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c6fb5bf9e1f88c1482a354106390c40ed92f2fb0 | adfb9b91518752b361713594eacd850557f7721b | /tests/test_html_formatter.py | 9e0fd4ac17549f8581a9e9139cf292adde5af931 | [
"BSD-2-Clause"
] | permissive | erickt/pygments | 6223c688cbb6ef81ab3f73d6aa7da9fa796bb6c4 | 05d4b6ce7e51501d2ac22919386017c08c9f5547 | refs/heads/master | 2021-01-10T18:59:43.144002 | 2009-05-17T17:05:11 | 2009-05-17T17:05:11 | 1,125,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,348 | py | # -*- coding: utf-8 -*-
"""
Pygments HTML formatter tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2006-2009 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import os
import re
import unittest
import StringIO
import tempfile
from os.path import join, dirname, ... | [
"devnull@localhost"
] | devnull@localhost |
8018c52bfae85b474764db99ee57fd7438b91010 | bc441bb06b8948288f110af63feda4e798f30225 | /scheduler_sdk/model/topology/link_pb2.pyi | dd2a9cad5ae92103824e305f7a2d316b07a017af | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.message import (
Message as google___protobuf___message___Message,
)
from scheduler_sdk.model.topology.linkStyle_pb2... | [
"service@easyops.cn"
] | service@easyops.cn |
6abcd1f7e1f19b6f90c46dbd20e5481f4ebc5940 | 35fb652b0b20e7352cacdc078e23464fad40ccf3 | /web/controllers/api/member.py | 1e2ff1b387e4e2d46f19dd619234d93e17030ffd | [] | no_license | xiaoheng14/flask_wx_order | 52f8fe01a473855c22a43c2651b102c291dbde04 | be3314fdb0266eecf4ca7f5a55b2ea24078857c9 | refs/heads/master | 2020-08-23T03:59:19.006943 | 2018-11-19T12:21:25 | 2018-11-19T12:21:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,226 | py | # _*_ coding: utf-8 _*_
"""
__author__ = 'lawtech'
__date__ = '2018/11/14 3:17 PM'
"""
from flask import request, jsonify
from web.controllers.api import route_api
from application import app, db
from common.models.member.member import Member
from common.models.member.oauth_member_bind import OauthMemberBind
from comm... | [
"584563542@qq.com"
] | 584563542@qq.com |
5b7a6d3de8a6a095f5ae66152608704c05e1b35f | 3b6b6a580bf6127b288a42ab4519565adc720fbd | /days/081-084-unit-testing/demo/billtracker/billtracker/views/default.py | 3f33c6eaf1a96ca4e7eb9e56dae0090be863f2f8 | [] | no_license | talkpython/100daysofweb-with-python-course | f1f296a5e52670fccba895e078318a5098f96e2f | c6f2fb22a29f74284b2d52ee019e0ace6a6353fc | refs/heads/master | 2023-07-19T11:21:46.515974 | 2023-04-25T21:34:27 | 2023-04-25T21:34:27 | 134,765,291 | 627 | 495 | null | 2023-04-25T21:34:28 | 2018-05-24T20:28:21 | JavaScript | UTF-8 | Python | false | false | 1,271 | py | from pyramid.httpexceptions import HTTPFound
from pyramid.request import Request
from pyramid.response import Response
from pyramid.view import view_config
from billtracker.data import repository
from billtracker.viewmodels.default.index_viewmodel import IndexViewModel
from billtracker.viewmodels.default.bill_details_... | [
"mikeckennedy@gmail.com"
] | mikeckennedy@gmail.com |
47168d33475c995b581c6678f725b0552cf48aa9 | 3611880ca0cb9266ca30aeaa318342e64bf5302e | /workers/record_cleaner/appcast.py | 8dcb0d2b24ab40fb5236dc864ddb7d386e77ff1d | [] | no_license | Roychenlei/Algorithms_Learning | dff9311ae2ec61db8188e880e19a1e6432fb3fd8 | 468135e10d490dd861d3826bfbd4776d9261dbb7 | refs/heads/master | 2021-06-01T20:21:17.307450 | 2019-08-06T09:32:45 | 2019-08-06T09:32:45 | 96,177,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | from .base_record_parser import BaseParser
class Parser(BaseParser):
source_name = 'AC'
desc_tag_name = 'body'
def build_id(self):
return self.orig_data.get('job_reference')
def build_industry(self):
# category may exist in orig data and the value is null
# the output is a li... | [
"roychenfly@gmail.com"
] | roychenfly@gmail.com |
dfe8082e2726ca32bc985e3483fbc0681f060f9e | 4ef80242cf22a1ccd0d7a2042476b5b6ac1eb03e | /scadparser/grammar/ScadModel.py | a8c274c58936bf26cbee79f06bab9ab9de132def | [] | no_license | rblack42/ScadParser | 71081adb99ec03e78bc78b4101562b7fa1bab134 | a9cc10b23c6515a53065dfb58b23881d0145f88d | refs/heads/master | 2023-07-11T03:51:53.434534 | 2021-08-27T02:03:37 | 2021-08-27T02:03:37 | 397,718,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | #!/usr/bin/env python
# CAVEAT UTILITOR
#
# This file was automatically generated by TatSu.
#
# https://pypi.python.org/pypi/tatsu/
#
# Any changes you make to it will be overwritten the next time
# the file is generated.
from __future__ import annotations
from tatsu.objectmodel import Node
from tatsu.semantics i... | [
"roie.black@gmail.com"
] | roie.black@gmail.com |
78ffa04b42257652a8e823e4c1740983e643782b | aea2c3d54f3524e58356ce02ff3dd72e00cb1551 | /2018/fakephoton_crab/crab_help.py | 0a538a0bbf0c71c0d0d94b8cca69aa88b16c5543 | [] | no_license | gqlcms/WWG_Analysis | e04424597815b0bd5fd1285d8275768badb0f381 | 21843b4e5355ec7e6a2df0aa62623d9ad21a9032 | refs/heads/master | 2023-04-17T14:06:34.604914 | 2021-04-23T05:34:00 | 2021-04-23T05:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,923 | py | import os,sys
import argparse
import json
import subprocess
import shutil
parser = argparse.ArgumentParser(description='prepare crab code')
parser.add_argument('-f', dest='file', default='', help='json file input')
parser.add_argument('-m', dest='mode', default='', help='work mode')
args = parser.parse_args()
def get... | [
"ying.an@cern.ch"
] | ying.an@cern.ch |
887bddb1e754a1c0a5b8fd3772556ac6728480ea | 9c73dd3043f7db7c9ec76d560484e99ad134fdb6 | /students/douglas_klos/lesson10/assignment/l05-decorator/src/database_operations.py | b5f1eeff53951ceb2b75cff5870e1c2c48f12788 | [] | no_license | UWPCE-PythonCert-ClassRepos/py220-online-201904-V2 | 546b316025b680ca28d24b523663095398616b13 | ac12beeae8aa57135bbcd03ac7a4f977fa3bdb56 | refs/heads/master | 2022-12-10T03:14:25.514630 | 2019-06-11T02:14:17 | 2019-06-11T02:14:17 | 179,139,181 | 1 | 19 | null | 2022-12-08T01:43:38 | 2019-04-02T18:49:10 | Python | UTF-8 | Python | false | false | 10,397 | py | #!/usr/bin/env python3
# pylint: disable=W0613
""" HPNorton API for accessing MongoDB collections """
from datetime import datetime
from multiprocessing import Process, Queue
from os.path import splitext, basename
from time import time
from wrapt import decorator
from loguru import logger
from pymongo import ASCENDING... | [
"dougklos@gmail.com"
] | dougklos@gmail.com |
e9497da1b7d035087b8eb5ad7e528fddf548b62a | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/pose_estimation/DeepPose/mmpose/apis/train.py | 76ad0f82d5df6af09e71b3f5aea7b724e26599de | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,446 | py | # Copyright 2020 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... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
bd8e4b98babedd08b66d1135954ac48de6ff66b9 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R4/benchmark/startQiskit327.py | 8781c3f761d36325fd575c80bf67b3f550e6def0 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,521 | py | # qubit number=3
# total number=12
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
1284b69fe8bdaab6e0a57bb5e72c81d69541cd45 | 59642dc8f6d4059d2d36f4f64a92d8edf30c33c6 | /plone/app/blocks/layoutbehavior.py | 0911c4725ca5b68aec437581eabf16baac0d6cec | [] | no_license | lrowe/plone.app.blocks | a855691f2b41ef8ad4b70d8a03c1076bcb1031f8 | 7a4df3a0aff953fe872f85b904ff5f51826ff7b1 | refs/heads/master | 2021-01-24T02:39:12.443662 | 2011-09-22T16:18:50 | 2011-09-22T16:18:50 | 2,428,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | from zope.interface import implements, alsoProvides, Interface
from zope import schema
from plone.app.blocks.interfaces import IOmittedField
from plone.app.blocks.interfaces import ILayoutField
from plone.app.blocks.interfaces import _
class LayoutField(schema.Text):
"""A field used to store layout information
... | [
"optilude@gmail.com"
] | optilude@gmail.com |
87f332437c9bc34c9d50b234bcc08bcea6e2ca64 | 23fddc940a266c2d1d0e0b1687c36cdbcc9d54d9 | /shared/db_opear/configs_data/equipment/equipment_strengthen_config.py | 90fb9e642feb720d0537cc1c61fd07df596fbc39 | [] | no_license | Cuick/traversing | 210fcfb1c780037de59343fffeb4fa4d3f2eae32 | c78982580af7f63c8bff4dcb37005b7f7c682b5b | refs/heads/master | 2021-01-10T17:38:37.899460 | 2016-11-18T06:06:55 | 2016-11-18T06:06:55 | 55,397,540 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # -*- coding:utf-8 -*-
"""
created by server on 14-7-7下午2:15.
"""
from shared.db_opear.configs_data.common_item import CommonItem
class EquipmentStrengthenConfig(object):
def __init__(self):
self._equipment_strengthen = {}
def parser(self, config_value):
for row in config_value:
... | [
"zxzxck@163.com"
] | zxzxck@163.com |
b528cfce7e6dc4f36240451dbd03f49e575f7fc2 | 753a70bc416e8dced2853f278b08ef60cdb3c768 | /include/tensorflow/lite/testing/op_tests/unfused_gru.py | 786a429fe9aa2232dff76f93ef089a132bee077a | [
"MIT"
] | permissive | finnickniu/tensorflow_object_detection_tflite | ef94158e5350613590641880cb3c1062f7dd0efb | a115d918f6894a69586174653172be0b5d1de952 | refs/heads/master | 2023-04-06T04:59:24.985923 | 2022-09-20T16:29:08 | 2022-09-20T16:29:08 | 230,891,552 | 60 | 19 | MIT | 2023-03-25T00:31:18 | 2019-12-30T09:58:41 | C++ | UTF-8 | Python | false | false | 2,400 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"finn.niu@apptech.com.hk"
] | finn.niu@apptech.com.hk |
a2a61cea90544794a4610062d9a3c01c4da83557 | 9b1c5c3fb40ca4fbd2123a321296d6b7924a84ad | /core/models.py | e2db994d3c85f0abeee175ad5900bd6f46e758b7 | [] | no_license | thepsalmist/theStore | 4ab3874605d45014ebe72bbf2303bf453afd0f17 | 7586b1f425925ecf6b08f8ac6b11e4381604d616 | refs/heads/master | 2022-03-27T08:12:01.020333 | 2019-12-18T09:00:40 | 2019-12-18T09:00:40 | 226,167,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,033 | py | from django.db import models
from django.conf import settings
from django.shortcuts import reverse
from django.utils import timezone
from PIL import Image
# create label choices
LABEL_CHOICES = (("P", "primary"), ("S", "secondary"), ("D", "danger"))
class Category(models.Model):
# create tuple, first category g... | [
"xf.xavierfrank@gmail.com"
] | xf.xavierfrank@gmail.com |
16530aaeb3ec40a88224b23b12eeb67446521cef | 49c2e3ebf7f5d2f79af6e26c44b4d07ec14a20d5 | /Hello World/venv/Lib/site-packages/pip/_internal/download.py | 68881b39d435c5938b8997336579a8eec65ffbbd | [] | no_license | TaylorHoll/Python_Projects | a0d86642463bdc5b3ea67dae0146c115185c1db2 | a8285b058ed0b4e0a366753d61526056dab23cd3 | refs/heads/master | 2020-06-13T09:04:29.666639 | 2020-01-07T03:40:25 | 2020-01-07T03:40:25 | 194,608,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,146 | py | from __future__ import absolute_import
import os
import re
import sys
import cgi
import email.utils
import getpass
import json
import logging
import mimetypes
import pip
import platform
import shutil
from pip._internal.exceptions import HashMismatch, InstallationError
from pip._internal.locations import write_delete_... | [
"taylorholloway1984@gmail.com"
] | taylorholloway1984@gmail.com |
4099f77a7a036f3c253bc37298b7830e20d7ebb7 | 1c4ec7ac50dd40056263bf039020df50524481ee | /tensorflow/python/kernel_tests/partitioned_variables_test.py | 0c0465619694996d9f05c96266f45d8ce8f55a9f | [
"Apache-2.0"
] | permissive | Gruschwick/tensorflow | 51a039fb842d69cbade5927c7716f6e83b08f2a5 | d9a888df836864ea59132df2fad5bf466b02cd09 | refs/heads/master | 2020-04-08T07:46:29.048999 | 2019-01-07T22:03:15 | 2019-01-07T22:03:15 | 159,151,026 | 1 | 0 | Apache-2.0 | 2019-01-20T19:07:51 | 2018-11-26T10:24:39 | C++ | UTF-8 | Python | false | false | 26,420 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
71a7c241fcfdd2288e94c907df7bf4fcf021f70a | 844564c24b1757110e00f6acff5658eea52d540a | /train_lgbm_model.py | 3b41c9c94b8c1e4a0db203573e717778bb377aab | [] | no_license | pekkipo/earth_quakes_challenge | df9dd375607ec72eea42985f284c46f221c9048b | be5c44e83102e6cf0b95ad7eb4002bc82748535e | refs/heads/master | 2020-07-26T14:44:24.145905 | 2019-09-16T00:59:14 | 2019-09-16T00:59:14 | 208,679,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 18 16:32:47 2019
@author: aleks
"""
import pandas as pd
import numpy as np
from sklearn.model_selection import StratifiedKFold
from sklearn.metrics import mean_absolute_error
import lightgbm as lgb
import os
import gc
from datetime import datetime
from imblearn.over_sa... | [
"pekkipodev@gmail.com"
] | pekkipodev@gmail.com |
30a5b8c7cc8bd95a82e561e28a5d7be11faff95e | 3cd18a3e789d3a0739768f1ae848d9f74b9dbbe7 | /mounth001/day04/exercise03.py | 4d2f9b5972212719de0f5a3f68193db7e92b29ea | [] | no_license | Molly-l/66 | 4bfe2f93e726d3cc059222c93a2bb3460b21ad78 | fae24a968f590060522d30f1b278fcfcdab8b36f | refs/heads/master | 2020-09-28T12:50:18.590794 | 2019-11-27T04:42:28 | 2019-11-27T04:42:28 | 226,782,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py |
sum=0
for i in range(5):
num1 = int(input('输入第一个数'))
num2 = int(input('输入第二个数'))
sum=str(num1)+'+'+(num2)+'+?'
sum=num1+num2
sum +=20
print(sum) | [
"769358744@qq.com"
] | 769358744@qq.com |
baa83d0b02e9df48bb9be99967b9f99428558a1f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_277/ch164_2020_06_20_22_09_38_618562.py | 3df906c7e0595b431ca66d73d3e74969660f4e0f | [] | 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 | 236 | py | def traduz(lista, dicionario):
lista2 = []
for i in range(len(lista)):
ingles = lista[i]
for j in dicionario.keys():
traducao = dicionario[ingles]
lista2.append(traducao)
return lista2 | [
"you@example.com"
] | you@example.com |
a501db98c6eb3c2225a4f5809c45cf52064f7c14 | 625574700973e0d52c5435c0fa60007a0a8cc0a1 | /contest/HHKB/d.py | 6185adaed6dd05d0bb42d27752175732161d8922 | [] | no_license | konchanksu/AtCoder-practice | b1c63fb6f6da8a409617b23438edf5469773049d | 46a7d9b9b33d4fbbcffeb6bb90d4bfca8d5dfa2a | refs/heads/main | 2023-08-24T17:35:30.193120 | 2021-09-29T05:38:40 | 2021-09-29T05:38:40 | 311,109,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | MOD = 10 ** 9 + 7
for _ in range(int(input())):
N, A, B = map(int, input().split())
pt = (pow((N - A + 1), 2, MOD) * pow((N - B + 1), 2, MOD)) % MOD
for i in range((N + 1) // 2):
t = ((N - i * 2) - A) * 4
if t < 0:
break
elif t == 0:
t = 1
| [
"nyankomi59@gmail.com"
] | nyankomi59@gmail.com |
db75fe7c8c874f31cb4f81cf4169470d68c8a848 | efe3c9ad40200e6a4cc54ade2867e455687eb11b | /games/migrations/0008_auto_20180331_2134.py | 3d437be4fabb2fe3d4a517cd5225dc4bec5a3e20 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | andrewhstead/stream-three-project | bec3b70b354b812d1a875ee4e305377038fe179b | 60e5f946455f12019a266b8231737435702ff95e | refs/heads/master | 2023-06-23T17:53:09.379297 | 2023-06-13T16:09:22 | 2023-06-13T16:09:22 | 126,410,294 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-03-31 20:34
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('games', '0007_auto_20180331_2132'),
]
operations ... | [
"andrew@andrewstead.co.uk"
] | andrew@andrewstead.co.uk |
c9e5897028bc1541f680eaddccfb613b06578b55 | 3bbcda4d74d9aa65e5c705352a4a60d9db0c6a42 | /third_party/github.com/ansible/awx/awxkit/awxkit/api/pages/page.py | 3ee1c38490e2309578b3024c43a4a2656c0a4f1f | [
"Apache-2.0"
] | permissive | mzachariasz/sap-deployment-automation | 82ecccb5a438eaee66f14b4448d4abb15313d989 | cb4710f07bb01248de4255a0dc5e48eda24e2d63 | refs/heads/master | 2023-06-25T15:09:53.505167 | 2021-07-23T18:47:21 | 2021-07-23T18:47:21 | 388,017,328 | 1 | 0 | Apache-2.0 | 2021-07-23T18:47:22 | 2021-07-21T06:29:55 | HCL | UTF-8 | Python | false | false | 20,803 | py | import inspect
import logging
import json
import re
from requests import Response
import http.client as http
from awxkit.utils import (
PseudoNamespace,
is_relative_endpoint,
are_same_endpoint,
super_dir_set,
suppress,
is_list_or_tuple,
to_str
)
from awxkit.api import utils
from awxkit.api... | [
"joseph.wright@googlecloud.corp-partner.google.com"
] | joseph.wright@googlecloud.corp-partner.google.com |
3012e511cff29465645c8f3cb56a997f403179db | ebde97e71f06f46075b585c92e984d7eb3f700c7 | /lib/ocr/clstm_cni_v3.py | cbd632d57adc681d5d443d64e7f251c80b36c08d | [] | no_license | manhcuogntin4/New_cni_project | 3ccc36d0d536c7e7a9082025b8977419feb3d5c5 | 90441e10df8ea5ed7e56fb2b6083721da19ae839 | refs/heads/master | 2021-04-27T17:07:45.493046 | 2018-03-01T14:51:54 | 2018-03-01T14:51:54 | 122,315,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,317 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
import pyclstm
from PIL import Image
import sys, getopt
import os
import difflib
import sys
#Process parallel
from multiprocessing import Pool
import multiprocessing
import subprocess
from multiprocessing import Manager
from functools import partia... | [
"manhcuongeic@gmail.com"
] | manhcuongeic@gmail.com |
0b5aa09befc5d6623bbda3bceae433a27773e85b | 154f24699c63858703b4538afc0213594f08b0b6 | /scripts/make_csv.py | 25e613e9b21cdb2dd288b978acb42fd68ac8a778 | [] | no_license | inpho/loc-ucsd | 225f936d2ba88df057ea5f82f60053141686a80e | a9c7e7fded841bd0376f944b102f151260ae5e44 | refs/heads/master | 2020-05-30T03:53:19.006317 | 2014-03-03T23:45:55 | 2014-03-03T23:45:55 | 8,609,923 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | import csv
import json
htrc1314 = []
htrc86 = []
htrc6 = []
volumes6=["uc2.ark+=13960=t5w66bs1h",
"uc2.ark+=13960=t6057f659",
"uc2.ark+=13960=t74t6gs0m",
"uc2.ark+=13960=t0ht2h954",
"uc2.ark+=13960=t05x26n0d",
"uc2.ark+=13960=t5p84550z"]
with open('htrc86.json') as jsonfile:
data = json.load(jsonfile)
volumes... | [
"jaimie.murdock@gmail.com"
] | jaimie.murdock@gmail.com |
7810e6d0ddb5c42ab6ac22acf76b020cae5fbfe5 | 4d6975caece0acdc793a41e8bc6d700d8c2fec9a | /hackerrank/stacks_and_queues/minMaxRiddle.py | 1213aa229e6ad165d187dd216a80db0c7da76999 | [] | no_license | guiconti/workout | 36a3923f2381d6e7023e127100409b3a2e7e4ccb | 5162d14cd64b720351eb30161283e8727cfcf376 | refs/heads/master | 2021-08-03T10:32:02.108714 | 2021-07-26T04:38:14 | 2021-07-26T04:38:14 | 221,025,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the riddle function below.
def riddle(arr):
size = 1
mxwindows = []
# size variation from 1 to s
while size <= len(arr):
windows = []
# looping the given array for a specfic size windows
... | [
"guibasconti@gmail.com"
] | guibasconti@gmail.com |
94e38d57514d665ad47c7511ea77607377e6c50f | 9962f123178e8ecd13ab806957c759092f8e4dea | /runner | 4ca1228feec61ade89bed3167b63eae599d86ff9 | [] | no_license | mrcleanspleen/Otto | b1a40af241459a00d5b9c43fc3d94401940cd835 | ca5662bd57a672f76eb52b9138892ec6658a9aa2 | refs/heads/master | 2021-01-01T17:40:48.157654 | 2017-08-06T22:52:54 | 2017-08-06T22:52:54 | 98,131,827 | 0 | 0 | null | 2017-07-23T23:34:27 | 2017-07-23T23:34:27 | null | UTF-8 | Python | false | false | 308 | #!/usr/bin/env python3
import os, sys
if len(sys.argv) > 1:
message = ' '.join(sys.argv[1:])
else:
message = input('message > ')
os.system("cd ~/go/src/Otto;go run main.go \"{}|~|{}|~|{}|~|{}\"".format(message,"someone","iMessage;+;chat508017006480766416","/Users/Peter/go/src/Otto/settings.json"))
| [
"peter.a.stenger@gmail.com"
] | peter.a.stenger@gmail.com | |
1686c97446c59e59d5ac28c92c003dd5acb9e0d9 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2692487_0/Python/jessethegame/jam.py | 1d7b96443962d2c3ac3bc0d727483d6e97400d75 | [] | 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 | 856 | py | import sys
def run(func):
with open(sys.argv[1]) as handle:
count = int(handle.readline())
for x in range(count):
yield func(handle)
def output(data):
return '\n'.join('Case #{}: {}'.format(*pair) for pair in enumerate(data, start=1))
def test(func):
print output(run(func))
d... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
f3fd5b33b3f748d30f2c5d9c8263f923560685a8 | 728e9c50fa2c1d71f1c3b40185646ef9fcafa632 | /Tests/Crawl.py | 26775c3c89265e86b899d60d2fe24ab1de8ee8c2 | [] | no_license | ChethanaSR/Python_SDK | 7d9d8bc16ae092f695cf79c43d8d5b12e37ba193 | 524b17a70c91c58a591fe9a70f81e3f8b513546e | refs/heads/master | 2020-07-28T00:46:35.691339 | 2019-09-18T08:39:36 | 2019-09-18T08:39:36 | 209,258,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | import os
import openpyxl
import time
import dicttoxml
from datetime import datetime
from xmldiff import main
import pandas
import csv
import xml.etree.ElementTree as et
from dateutil.parser import parse
def xml_csv_comp_filter_for_timepoint():
#csv_file = "C:\\Users\\rchethana\\Documents\\SDK_Automation\\XML-Te... | [
"rchethana@shravas.com"
] | rchethana@shravas.com |
c45bf780b6a96b8e03e6aa3578470e50da49f78a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03062/s756793407.py | 4429176fdd3b72784590ffe51d12a6c3b81dbeca | [] | 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 | 381 | py | N = int(input())
A = list(map(int,input().split()))
minus_cnt = 0
abs_sum = 0
min_abs_val = 1000000000
for i in range(N):
val = A[i]
abs_val = abs(val)
abs_sum += abs_val
if abs_val < min_abs_val:
min_abs_val = abs_val
if val < 0:
minus_cnt += 1
B_max_sum = abs_sum
if minus_cnt % 2... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c7469e01212ca09d05235f188a78d379f4e444ea | 14a77f28e43f078a0737b2dbaf682210739ba6c0 | /decisions/factories/event.py | 85bb70e33993b14609466b85a83255812030ddd6 | [] | no_license | tuomas777/paatos | f58e15ee6c5c7bd87d6e015f6bf9eae020aba77b | 79fe20768f6dd6c7ed8bae22eaf20961bbba8fa7 | refs/heads/master | 2020-04-05T22:43:21.254187 | 2016-11-22T07:40:58 | 2016-11-22T07:40:58 | 68,003,356 | 0 | 0 | null | 2016-11-24T14:01:26 | 2016-09-12T11:30:31 | Python | UTF-8 | Python | false | false | 315 | py | import factory
from faker import Faker
from decisions.models import Event
fake = Faker()
fake.seed(7)
class EventFactory(factory.django.DjangoModelFactory):
class Meta:
model = Event
name = fake.text(max_nb_chars=20)
description = fake.paragraph(nb_sentences=5)
start_date = fake.date()
| [
"tuomas.haapala@anders.fi"
] | tuomas.haapala@anders.fi |
f7c1891ca323b5da4d72a7b2ea564c4f7f9cb834 | 6a44e772dfdec969f5e2af430f0bf3a35eb73c4e | /src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage_name.py | a1f3796d70a9efdf4d82846aaa69862e31effa9d | [
"MIT"
] | permissive | lurumad/autorest | ecc4b1de223e4b4cdd226a3cf922a6940dbddd34 | fef0c4c9e7fdb5c851bdb095d5a2ff93572d452e | refs/heads/master | 2021-01-12T11:07:39.298341 | 2016-11-04T03:12:08 | 2016-11-04T03:12:08 | 72,835,570 | 1 | 0 | null | 2016-11-04T09:58:50 | 2016-11-04T09:58:50 | null | UTF-8 | Python | false | false | 1,088 | 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.
# C... | [
"noreply@github.com"
] | lurumad.noreply@github.com |
a9055249ac9757566ae617d69563511b808fd3eb | 8e2404c7bcfd28329bed789839192b2c4e85ea1b | /Hackerrank/QueuesUsingTwoStacks.py | 9b00afd7b1e775d9d4a9da9534e24dd79876baf2 | [] | no_license | Pabitra-26/Problem-Solved | 408bd51bbffc69f8c5e1def92797c2e6f027f91d | c27de1dd6c4ad14444fa5ee911a16186c200a7f9 | refs/heads/master | 2023-07-30T16:51:28.062349 | 2021-09-27T06:06:54 | 2021-09-27T06:06:54 | 269,935,039 | 2 | 0 | null | 2021-09-27T06:06:55 | 2020-06-06T09:39:33 | Python | UTF-8 | Python | false | false | 1,000 | py | # Problem name: Queues using two stacks
# Description: A queue is an abstract data type that maintains the order in which elements were added to it, allowing the oldest elements to be removed from the front and new elements to be added to the rear. This is called a First-In-First-Out (FIFO) data structure because the ... | [
"noreply@github.com"
] | Pabitra-26.noreply@github.com |
1a1e4043f7335ec73f9c0f3e8eae6e2840b83d9e | 9af2ae16b962c5dbed8497df9513f4f39dc4a3c4 | /muke_class/chp2/a5_keras_dnn.py | 6b2757395bffe590dce2acc95d0470020230563b | [] | no_license | Freshield/LEARN_Tensorflow2 | 4170d2158c2e73485fcc7828b09ea96834efe838 | e2e139525aeac504949929330ef4b58cf91816c6 | refs/heads/master | 2021-07-04T05:38:47.709291 | 2020-11-02T09:18:19 | 2020-11-02T09:18:19 | 194,585,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | py | #coding=utf-8
"""
@Author: Freshield
@License: (C) Copyright 2018, BEIJING LINKING MEDICAL TECHNOLOGY CO., LTD.
@Contact: yangyufresh@163.com
@File: a5_keras_dnn.py
@Time: 2019-04-07 15:17
@Last_update: 2019-04-07 15:17
@Desc: None
@==============================================@
@ _____ _ _ _ ... | [
"zxdsw199182@gmail.com"
] | zxdsw199182@gmail.com |
32507525464d06c8ae7fcde041d434d4c05239d5 | 2154d0221e29a86850a1b83e4302f6e3e3f7fa5d | /mock_example/MySQLdb_fun.py | b9a062f6ef8f96908705df3b76dba64e7143ce26 | [] | no_license | aaqqxx/simple_for_life | 3b8805c6791da6a3a7f42c069dc1ee7d2b8d3649 | 9ad6d61a56216d04250cd89aeaeda63c11942d0a | refs/heads/master | 2020-04-04T09:18:59.396540 | 2015-04-28T11:22:55 | 2015-04-28T11:22:55 | 20,906,518 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | __author__ = 'XingHua'
import MySQLdb
def Foo():
conn = MySQLdb.connect(host='localhost',
user='root', passwd='abc123', db='test')
cursor = conn.cursor()
cursor.execute('SELECT * FROM people')
id, name = cursor.fetchone()
print id, name
if __name__ == '__main__':
... | [
"aaqqxx1910@gmail.com"
] | aaqqxx1910@gmail.com |
7a362af386f8e7f440301bda660837fbb6449fd7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04000/s468061454.py | c59bfc6f1c8081389083fc960c22dd4c3ba08cda | [] | 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 | 573 | py | import sys
input=sys.stdin.readline
h,w,n = map(int, input().split())
l=[list(map(int,input().split())) for i in range(n)]
from collections import defaultdict
d = defaultdict(int)
for tmp in l:
y=tmp[0]-1
x=tmp[1]-1
for i in [-1,0,1]:
for j in [-1,0,1]:
if 1<=x+i<w-1 and 1<=y+j <h-1:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
050fdaa4b74799a5ef129833fa9542b5f9cd5b3f | 479ad544171d18a4da1bd109a44fa5c42e075a17 | /fantom_util/fantom_util/graph_tools/named_entity_merging.py | 4906e466e823da456fda67718befeee0e58b34ec | [] | no_license | kth-social-robotics/fantombot | c329a7ec716dff4e74ad2420c46239705d285647 | 1fef1bc98a6aab2a6534e74f7d464b758162fe87 | refs/heads/master | 2020-06-03T00:29:36.239228 | 2019-08-27T13:41:51 | 2019-08-27T13:41:51 | 191,361,328 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | # want to look through utterances of the children of this node, match them with movies in named entity model and
# merge those that are in there and don't have any children
from fantom_util.database import db_session
from fantom_util.database.models import Node
from fantom_util.feature_extraction.named_entities import... | [
"pjjonell@kth.se"
] | pjjonell@kth.se |
5738a33d087f1c4d0d34dd5308dddb244d93680c | 7246faf9a222269ce2612613f58dc5ff19091f10 | /baekjoon/1000~2999/1764_듣보잡.py | 5de8248dba6fbb77fcee6925ba8bf1bb62089cef | [] | no_license | gusdn3477/Algorithm_Study | 87a2eb72a8488d9263a86db70dadc7944434d41d | 3fefe1dcb40122157845ffc542f41cb097711cc8 | refs/heads/main | 2023-08-30T12:18:21.412945 | 2021-09-28T13:00:11 | 2021-09-28T13:00:11 | 308,364,230 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | N, M = map(int, input().split())
arr = []
arr2 = []
for i in range(N):
arr.append(input())
for i in range(M):
arr2.append(input())
a = list(set(arr) & set(arr2))
a.sort()
print(len(a))
for i in a:
print(i) | [
"gusdn3477@naver.com"
] | gusdn3477@naver.com |
305d1679552a9d89dedd2a734ef75295fd35cf55 | e811c41caa55559d3b482f26c31fcef02ec66138 | /venv/Lib/site-packages/sqlalchemy/dialects/sqlite/base.py | 64bcaade781770128e54aec7ac201b10387378dc | [
"MIT"
] | permissive | 1SouravGhosh/POC_REPO | 929ea865d60a51597966ffcfc4a7a3a350a00f54 | e486d9a1fe0e1215f24bac3aaf97517cda21a066 | refs/heads/master | 2022-11-01T09:53:56.443500 | 2019-02-17T16:21:48 | 2019-02-17T16:21:48 | 171,133,391 | 0 | 1 | MIT | 2022-10-22T04:17:54 | 2019-02-17T14:45:39 | Python | UTF-8 | Python | false | false | 62,052 | py | # sqlite/base.py
# Copyright (C) 2005-2019 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
r"""
.. dialect:: sqlite
:name: SQLite
.. _sqlite_datetime:
Date and Time Types... | [
"1SouravGhosh@noreply.github.com"
] | 1SouravGhosh@noreply.github.com |
482c535cae406f32ff74169addb0665a8ded5130 | 1c6866a37fddb455d5dd9a9db100415cd83b2429 | /sanic官方教程/请求数据/1-query_string.py | ea1c30bdd144eb58accc93598360f7fde417f8ef | [] | no_license | zb14755456464/sanic | e860bc140eab8725aa1410096edecd511163121d | 66462923b367c52edab15df6f33705b215f75174 | refs/heads/master | 2021-01-24T08:12:36.021336 | 2019-05-21T12:41:30 | 2019-05-21T12:41:30 | 122,973,882 | 0 | 1 | null | 2019-05-21T12:39:57 | 2018-02-26T13:29:12 | Python | UTF-8 | Python | false | false | 455 | py | from sanic.response import json
from sanic import Sanic
app = Sanic(__name__)
@app.route("/query_string")
def query_string(request):
# http://127.0.0.1:8000/query_string/?a=1&b=2&a=2
# {"args":{"a":["1","2"],"b":["2"]},"url":"http:\/\/0.0.0.0:8000\/query_string\/?a=1&b=2","query_string":"a=1&b=2"}
retu... | [
"1273844671@qq.com"
] | 1273844671@qq.com |
f3beb823bc4165ce7b933f2a83ac81d6221ac32d | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1/Smetterleen/qual1.py | 654f790f055710cb8fefb7ee19fcf863c683bdcd | [] | 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 | 891 | py | '''
Created on Apr 9, 2016
@author: joep
'''
import os
ds_type = 'large'
BASE = os.path.dirname(os.path.realpath(__file__))
inf = open(os.path.join(BASE, 'A-large.in'.format(ds_type)), 'r')
outf = open(os.path.join(BASE, '{}.out'.format(ds_type)), 'w+')
cases = int(inf.readline())
for case in range(cases):
n =... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
61c1eed9e08a33eaff443e4f2b977508ffb9b5d3 | f47ec2cffc71196679bb165d4c7d6de3b6884e33 | /src/pretalx/submission/forms/tag.py | 183749f9de658767e5f72ff6820a9051bcd32ec1 | [
"Apache-2.0"
] | permissive | toshywoshy/pretalx | 874bed725df48db47f118ff021340d0d34eca98a | 14619a4cb7d46df1434c8835abbac6f155c37626 | refs/heads/master | 2023-01-08T11:16:44.992557 | 2021-11-02T12:24:30 | 2021-11-02T12:24:30 | 179,450,372 | 0 | 0 | NOASSERTION | 2023-01-06T22:04:49 | 2019-04-04T08:00:38 | Python | UTF-8 | Python | false | false | 933 | py | from django import forms
from django.utils.translation import ugettext_lazy as _
from i18nfield.forms import I18nModelForm
from pretalx.common.mixins.forms import I18nHelpText, ReadOnlyFlag
from pretalx.submission.models import Tag
class TagForm(ReadOnlyFlag, I18nHelpText, I18nModelForm):
def __init__(self, *arg... | [
"r@rixx.de"
] | r@rixx.de |
cfb3ff4f069ff67a31f55f2ba1d579cd20f195c9 | 1cf380b819a399c3f58a7ad13f5daeb5659cead3 | /wrf_management/real.py | 72fdb321a3d7e8e409ac03baf1527db36cdaafb4 | [] | no_license | daliagachc/wrf_management | dd88cf5d6279457f4e2b414acfa0d0cbaaad3873 | 4ee88c668ed0252e68713aa756b74344ecada615 | refs/heads/master | 2021-06-13T09:39:08.477315 | 2021-04-09T14:43:21 | 2021-04-09T14:43:21 | 171,271,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | # project name: wrf_management
# created by diego aliaga daliaga_at_chacaltaya.edu.bo
import glob
import os
import pathlib
from collections import OrderedDict
import wrf_management.project_global_constants as gc
import sqlite3 as sq
import pandas as pd
import wrf_management.run_utilities as ru
import f90nml
def skim... | [
"diego.aliaga@helsinki.fi"
] | diego.aliaga@helsinki.fi |
8d938e45ee0ced99172d7b4a614d66203d5bb8f6 | 933ed73cdf117fc6c88c1ebba7a17b82807a16e8 | /docs/02.AI_ML/code-1905/day06/demo09_cv.py | c74d27eecf9adec52575b547693ae52533582b4a | [
"Apache-2.0"
] | permissive | wan230114/PythonNote | c4fff80f6f3849ed0b0346526d3c6197a4867d2c | f4989a44c03efdcea3f7aa3484e3470e7fd983eb | refs/heads/master | 2023-01-28T14:51:07.304066 | 2023-01-12T18:38:16 | 2023-01-12T18:38:16 | 242,367,069 | 5 | 6 | Apache-2.0 | 2021-01-05T23:35:10 | 2020-02-22T15:45:01 | JavaScript | UTF-8 | Python | false | false | 395 | py | """
demo09_cv.py 词袋模型
"""
import nltk.tokenize as tk
import sklearn.feature_extraction.text as ft
doc = 'The brown dog is running. ' \
'The black dog is in the black room. ' \
'Running in the room is forbidden.'
# 对doc按照句子进行拆分
sents = tk.sent_tokenize(doc)
# 构建词袋模型
cv = ft.CountVectorizer()
bow = cv.fit_... | [
"1170101471@qq.com"
] | 1170101471@qq.com |
648086fac69850c8b63b8de728580fbc618e210f | 6061ebee9fbce8eb5b48ed7ccd2aecb196156598 | /modulo03-estruturascondicionais/exercicios/exercicio11.py | 19004de489822a3a78156123ac1ad86c8d4f0533 | [] | no_license | DarioCampagnaCoutinho/logica-programacao-python | fdc64871849bea5f5bbf2c342db5fda15778110b | b494bb6ef226c89f4bcfc66f964987046aba692d | refs/heads/master | 2023-02-24T11:45:29.551278 | 2021-01-26T22:02:49 | 2021-01-26T22:02:49 | 271,899,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | horas = int(input('Horas:'))
if horas >= 0 and horas <= 11:
print('Bom Dia')
elif horas >= 12 and horas <= 17:
print("Boa Tarde")
elif horas >= 18 and horas <= 23:
print("Boa Noite")
else:
print("Digite Novamente")
| [
"campagnacoutinho67@gmail.com"
] | campagnacoutinho67@gmail.com |
3c0bfa561bf63fedd740a9fc81b331d90ccc697b | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/0b6c5e6d25ab9cef83b75fab1cc1443c85468427-<fc>-fix.py | 4bfb79d0d7698b3efca58ea99ebec0336227cf4c | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,120 | py |
def fc(input, size, num_flatten_dims=1, param_attr=None, bias_attr=None, act=None, name=None):
'\n **Fully Connected Layer**\n\n The fully connected layer can take multiple tensors as its inputs. It\n creates a variable (one for each input tensor) called weights for each input\n tensor, which represen... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
939bf81f702844980e7c9e5256af2fa6085d426a | 2c7b6ceffd09dae72d18a573a82d3a4c1d105e06 | /EXAMPLES/defaultdict_fruitnames.py | 14e449c1024ce3c9c3eee0cfc15d25f4b4c44901 | [] | no_license | feleHaile/20180813JPL | c23144a2139bc256e86a81a4402dc6ace0bb2791 | 09af77d98a9eeea193760aacff52b21fac8fc920 | refs/heads/master | 2020-05-15T22:31:14.922844 | 2018-08-16T21:59:40 | 2018-08-16T21:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | #!/usr/bin/env python
#
from collections import defaultdict
from pprint import pprint
fruits = ["pomegranate","cherry","apricot","date","apple","lemon","kiwi",
"orange","lime","watermelon","guava","papaya","fig","pear","banana",
"tamarind","persimmon","elderberry","peach","blueberry","lychee",
"grape" ]
fruits_by_fi... | [
"jstrickler@gmail.com"
] | jstrickler@gmail.com |
f897bc4ebb70621584bc23fe028dcaa3e6e152ec | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_6695.py | 6799ccfe76a1aae3be3037e8f110140980d21e5d | [] | 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 | 137 | py | # What is the proper way to track indexes in python?
for index, entry in enumerate(longList):
if entry == 'foo':
print index
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
0a7c1810b71bc1d74a6427857b8fba73dcd596f5 | e9ed8174f0e2f52f858f0dd8b9206eb57388ece2 | /JssProject/JssProject/asgi.py | 54480fbeb22c73b1ed8de2d0c993cab07e905d18 | [] | no_license | Tedhoon/JasoseolProject | bb061dc1ed0cf0a0842a2c046c4434ccb80263a5 | 9500edabb35242f2974443a8b0fa43e5e3435484 | refs/heads/master | 2022-11-11T03:40:04.564877 | 2020-06-28T07:02:28 | 2020-06-28T07:02:28 | 275,432,188 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
ASGI config for JssProject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefau... | [
"gt0305@likelion.org"
] | gt0305@likelion.org |
62f6fefadf2e85580056e2d9ccbd8b06d40759b8 | 0203e5a6d7beb1e0f83113dac4c167b171756f24 | /lib/spdk-19.10/test/json_config/clear_config.py | 5328e6dc19c40496c6295697584810b4c20d3e50 | [
"BSD-3-Clause"
] | permissive | Wonchul08Lee/poseidonos | eaafe277fc56a0f5b5fcca3b70acc9bfe5d5d1ae | 6fe410cdf88f3243ad9210f763c2b5a2f7e8b46a | refs/heads/main | 2023-03-30T13:41:09.660647 | 2021-04-08T06:43:26 | 2021-04-08T06:43:26 | 355,819,746 | 0 | 0 | BSD-3-Clause | 2021-04-08T08:17:27 | 2021-04-08T08:17:26 | null | UTF-8 | Python | false | false | 7,593 | py | #!/usr/bin/env python3
import os
import sys
import argparse
import logging
sys.path.append(os.path.join(os.path.dirname(__file__), "../../scripts"))
import rpc # noqa
from rpc.client import print_dict, JSONRPCException # noqa
def get_bdev_name_key(bdev):
bdev_name_key = 'name'
if 'method' in bdev and bdev... | [
"poseidonos@samsung.net"
] | poseidonos@samsung.net |
a38336c56207fb0e1d51bcc216cb54f334e4f6c4 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/35ca52050200eb7a7d7dee4ba4da4e4a6c9da1320007_populate_computer.py | 35ca52050200eb7a7d7dee4ba4da4e4a6c9da132 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def initial_data(apps, schema_editor):
SC = apps.get_model('ship', 'ShipComputer')
SC(name='None', beamattack=0).save()
SC(name='Electronic', beamattack=25).save()
SC(name='Optronic', beamattack=50).save(... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
463f2b8c0b5c8c46db28eb503109fe4db542aa86 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/common/dossiers2/custom/helpers.py | f05bfc017fe3b9514391e58a82f275ee50d3af3d | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,786 | py | # 2017.05.04 15:28:51 Střední Evropa (letní čas)
# Embedded file name: scripts/common/dossiers2/custom/helpers.py
from dossiers2.custom.records import RECORDS, RECORD_INDICES
from dossiers2.custom.cache import getCache
def getTankExpertRequirements(vehTypeFrags, nationID = -1):
cache = getCache()
killedVehType... | [
"info@webium.sk"
] | info@webium.sk |
cd04e4a74fe6f82b608519b7387f62b22d627744 | b643abbcfb5dc46a2d311f179f740cbe44f6a922 | /manage.py | 420d5ab4bec8ad6485ebd9ef3286367cc3685146 | [] | no_license | safwanvk/productivity | e7126d2ce77649e80ada365ab4616baa91b289ec | 141598632da0acd6c47ff34446ccbef9f7b980ac | refs/heads/main | 2023-03-10T19:06:57.589215 | 2021-03-01T14:41:24 | 2021-03-01T14:41:24 | 342,141,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ProductivityApp.settings')
try:
from django.core.management import execute_from_command_line
exc... | [
"safwanvalakundil@gmail.com"
] | safwanvalakundil@gmail.com |
7c22ed802147373cbca2af023716a1833bc12ada | 1adf769cf9234f9b6c619f808d2723b99451d679 | /rusentrel/classic_cv/ctx/ian_ef.py | 63e565c7b73f84faf7767733f0cbdada3e14c82b | [
"MIT"
] | permissive | DAVMARROS/attitude-extraction-with-attention-and-ds | 4e85fa154ead0cd9499aaedf5d752ac565f37b92 | fb8e9d0d9488363738a88c4c447c7a8cb3e2ec1d | refs/heads/master | 2023-02-09T04:56:24.090380 | 2020-12-30T10:09:34 | 2020-12-30T10:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
sys.path.append('../../../')
from rusentrel.classic.ctx.ian_ef import run_testing_ian_ef
from rusentrel.classic_cv.common import CV_COUNT, \
classic_cv_common_callback_modification_func, \
CV_NAME_PREFIX
if __name__ == "__main__":
run_testing_ian_ef(
... | [
"kolyarus@yandex.ru"
] | kolyarus@yandex.ru |
aa37bb217f03cac2488f3606a6f1a5a26f41559f | 3d37f595a8aaaa7c5723ddbd6758ecac5147dce2 | /maximum-subarray/maximum-subarray.py | bf5f661dd48593b947036ae83c3e2e79e0d320f9 | [] | no_license | baggy2797/Leetcode | ec218b155ebb972cd793253f25c3e18117216703 | 469c1541579401768f7a1da55d504a9e8656b21e | refs/heads/main | 2023-06-24T17:03:42.708935 | 2021-07-16T22:31:24 | 2021-07-16T22:31:24 | 342,979,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | class Solution:
def maxSubArray(self, nums: List[int]) -> int:
globalMax = nums[0]
currMax = nums[0]
for i in range(1,len(nums)):
currMax = max(currMax+nums[i],nums[i])
globalMax = max(globalMax,currMax)
return globalMax | [
"bhagwataditya226@gmail.com"
] | bhagwataditya226@gmail.com |
d2303bbedd1e575b6704b5320400a954d0ca9015 | a5718006e28b394633c4e84e75e7941cb4c11a08 | /TD 1 probleme 55 Arthur Lambert.py | 16a3dfdd20ce6ec98cfeb59b80e0126829370564 | [] | no_license | mines-nancy-tcss5ac-2018/td1-ArthurLambert1 | ab883b105e7a5341524032a5bf89c866861f5dd4 | 4e65a396b52e2fe5a7452d78ca0f739260beb854 | refs/heads/master | 2020-03-31T00:16:09.032475 | 2018-10-05T20:41:03 | 2018-10-05T20:41:03 | 151,733,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | def nombreMiroir(x): #Retourne le nombre à l'envers
chaine = str(x)
chaineRenversee = ''
for elt in chaine:
chaineRenversee = elt + chaineRenversee
return int(chaineRenversee)
def testPalindrome(x): #Teste si un nombre est palindrome ou non
return x == nombreMiroir(x)
def tes... | [
"noreply@github.com"
] | mines-nancy-tcss5ac-2018.noreply@github.com |
aac8cd6d37866c9041fe21351488a9a7928086af | c0ba52c370f3c41471308588d49ae75f975d9b49 | /qa/rpc-tests/listtransactions.py | 3c07a0c0926626b959fa9c77d87e7da67b1cdf6d | [
"MIT"
] | permissive | mirzaei-ce/core-aghilbit | 7f318a7487675ef7a38280d7b19284c3227cea52 | 4a4ce7b0da3fe01246f300a6809cda68d0708ef6 | refs/heads/master | 2021-07-12T08:21:29.796955 | 2017-10-16T16:56:05 | 2017-10-16T16:56:05 | 107,156,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,725 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Exercise the listtransactions API
from test_framework.test_framework import AghilbitTestFramework
from... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
594c3f8d10249ae15900bb0604641c8dd1f64ec3 | 933a4f98b3ab1df987bce525d20ca904b225140f | /scripts/slave/recipe_modules/buildbucket/tests/put.py | cd433ecae9b207c24dc57c1e52b530ea49713fe2 | [
"BSD-3-Clause"
] | permissive | mcgreevy/chromium-build | 3881c489b4d9be2f113da755487808b3593f8156 | f8e42c70146c1b668421ee6358dc550a955770a3 | refs/heads/master | 2020-12-30T12:32:15.685191 | 2017-05-17T06:58:18 | 2017-05-17T06:58:18 | 91,419,271 | 0 | 2 | NOASSERTION | 2020-07-22T09:27:35 | 2017-05-16T05:52:45 | Python | UTF-8 | Python | false | false | 1,518 | py | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'buildbucket',
'service_account',
'recipe_engine/properties',
]
def RunSteps(api):
example_bucket = 'master.user.username'
build_... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
6a927d7f4c1bd6bbb8a99700a2b23ada0d6bd2ab | 91ff6fdf7b2ccc58869d6ad41842f230644952c1 | /requirements/venky_task/important/textwrap.py | 11f82c6c9c166647506b48126e9b1c74f97a3d77 | [] | no_license | KONASANI-0143/Dev | dd4564f54117f54ccfa003d1fcec4220e6cbe1f9 | 23d31fbeddcd303a7dc90ac9cfbe2c762d61c61e | refs/heads/master | 2023-08-14T15:59:59.012414 | 2021-10-13T14:54:49 | 2021-10-13T15:10:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | import textwrap
sample_text = '''
Python is a widely used high-level, general-purpose, interpreted,
dynamic programming language. Its design philosophy emphasizes
code readability, and its syntax allows programmers to express
concepts in fewer lines of code than possible in languages such
as C++ or Java.
''... | [
"harinadhareddypython@gmail.com"
] | harinadhareddypython@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.