blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
70a6b84238efa4e023179a2ad24b371742532fce | fbb141c9b99c4c08ce2c0acfe13630d694d98744 | /7-stack/4.10-shu-zu-zhong-de-ni-xu-dui-lcof.py | f04c9947f38d38bf2a749719998cd041df3b5b3b | [] | no_license | huixian3/algorithm017 | 1534bc8a0364595b056e0f346cfe9fa8b8fee3bd | f43c99dc7810de863f8cd79115e272ac65ce9257 | refs/heads/master | 2023-04-02T07:10:03.670003 | 2021-04-13T14:38:36 | 2021-04-13T14:38:36 | 297,989,771 | 0 | 0 | null | 2020-09-23T14:05:41 | 2020-09-23T14:05:40 | null | UTF-8 | Python | false | false | 1,473 | py | '''
在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。
输入一个数组,求出这个数组中的逆序对的总数。
'''
# 归并排序 同 逆序对,分治
# 在megrge环节中计数即可,计数方法是,左边数据大于右边数据元素的pair数量
class Solution(object):
def reversePairs(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
self.cnt = 0
def merge(nums, start, mid... | [
"zhanhuixian@meituan.com"
] | zhanhuixian@meituan.com |
8a0079dd597dba447df0d9aed6437df677f2accb | 710026f64d3a23913ae71d2300147b371f5cb75b | /gammapy/data/tests/test_all.py | 138034335de153523316b69996357d13979c5972 | [] | no_license | Cadair/gammapy | 557c01e33d93fe6cc2daaac35b53590d33e31fbc | 19f4fdd299b8c3495c732fc412f5d18cb9df3590 | refs/heads/master | 2020-12-13T21:52:37.790005 | 2014-02-20T15:15:10 | 2014-02-20T15:15:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import print_function, division
from numpy.testing import assert_allclose
from astropy.utils.data import get_pkg_data_filename
from astropy.io import fits
from .. import poisson_stats_image
def test_poisson_stats_image():
"""Get the d... | [
"Deil.Christoph@gmail.com"
] | Deil.Christoph@gmail.com |
155abf1cb8c24811bbe7251caef3d6eb6e1d3629 | 617ff229b63165368e32a303488b29c738a5378a | /src/bad smell/plot_smell_fft.py | c75518ce5eedbec995ac26155c38b340be32e0b4 | [] | no_license | dimpisingh/e-dom | a1ae76229a31c0a5dcc725a80e7a741be660a0da | a820874545e97ec10580db6dd11e35c7eec65abc | refs/heads/master | 2022-05-13T07:27:31.180506 | 2019-04-10T13:53:26 | 2019-04-10T13:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | import os
import plotly
# plotly.tools.set_credentials_file(username='dichen001', api_key='czrCH0mQHmX5HLXSHBqS')
plotly.tools.set_credentials_file(username='amritbhanu', api_key='cuaXxPfbSxptk2irXf7P')
import plotly.plotly as py
import plotly.graph_objs as go
import cPickle
import pickle
cwd = os.getcwd()
data_path =... | [
"amritbhanu@gmail.com"
] | amritbhanu@gmail.com |
6c6d5f913ad89423170d7e4e728f2d9b67184ad4 | 5bb8b4c7faeebd16da16ecbcd4a98aabaf688e8f | /data_tools/walker/src-cikm/build_graph2/citations.py | 2438338b186b181a26af7fd8e16ccbc3d15dfd74 | [] | no_license | xiaoqinzhe/vrdetection | 014fc2b61c9b30dd2699fdba41089b18b7f060be | 604a812a21a98d72ba8e23a716eb72153bdaa7c4 | refs/heads/master | 2023-07-04T07:44:12.141404 | 2021-08-01T06:21:17 | 2021-08-01T06:21:17 | 150,063,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #coding:utf-8
import json
file_path = '/mnt/hdd2/dblp/dblp_ref.json'
citation_file_path = '/mnt/hdd2/cikm/citation.txt'
with open(file_path) as ifile, open(citation_file_path, 'w') as ofile:
for line in ifile:
paper = json.loads(line)
if 'references' not in paper:
continue
outpu... | [
"xiaoqinzhe@qq.com"
] | xiaoqinzhe@qq.com |
d90f4c250ad6540185c4685ac49cf4e5df824ab7 | b4f661f1153637d9cfec18e4cf56b64582c31385 | /src/Python/304.二维区域和检索-矩阵不可变.py | fd58f373a91c848ff44f0bd8495b1cc29de69c8a | [] | no_license | Icedomain/LeetCode | 12dd24bbe2d7aba1f6ebe61bffe4c5e6284fbd06 | 4bc8e41499b9c884d64b5a44fe783fdb7030676e | refs/heads/master | 2021-02-15T15:12:15.009790 | 2020-09-22T11:37:59 | 2020-09-22T11:37:59 | 244,909,740 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | #
# @lc app=leetcode.cn id=304 lang=python3
#
# [304] 二维区域和检索 - 矩阵不可变
#
class NumMatrix:
def __init__(self, matrix: List[List[int]]):
if not matrix:
return
n, m = len(matrix), len(matrix[0])
self.sums = [ [0 for j in range(m+1)] for i in range(n+1) ]
for i in range(1, n+1... | [
"1271029566@qq.com"
] | 1271029566@qq.com |
b04f5902369c128c688593ca330bb43b55ffa29c | a8ed252f3b76a8d134f026ccf0204c5e5e918edb | /apps/common/views.py | 5651d62f133a31899ed83656bb5d35032146918d | [
"MIT"
] | permissive | F483/bitcoin-bounties.com | a8c84bfe61df25bae93f1bfd3c055754414cbe27 | 64a4a973fa38a4fb54178d855c1b82ec18799628 | refs/heads/master | 2020-04-25T23:19:32.859170 | 2014-11-22T15:40:48 | 2014-11-22T15:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2014 Fabian Barkhau <fabian.barkhau@gmail.com>
# License: MIT (see LICENSE.TXT file)
from django.http import HttpResponseRedirect
from django.views.decorators.http import require_http_methods
from apps.common.utils.templates import render_response
@require_http_methods(['GET'])... | [
"fabian.barkhau@gmail.com"
] | fabian.barkhau@gmail.com |
e66adf2a6d1f32f1467ae3ff1e1bdc2c509baa2b | 33fa46042e7decb01008b73202e5d24ce6bad03a | /config/settings/test.py | ece2ef2fbcdf6949a10c811059a6d1e4cacc7b42 | [
"MIT"
] | permissive | rlaneyjr/project_pawz | 2d2ef8ef8a801e788c139a35bf82d72aafac8f69 | 27f316ef35968ed1319ec0585a050ebed795763a | refs/heads/master | 2022-12-05T11:39:04.384922 | 2019-05-28T22:24:24 | 2019-05-28T22:24:24 | 185,061,794 | 0 | 0 | MIT | 2022-12-03T08:21:14 | 2019-05-05T17:28:47 | JavaScript | UTF-8 | Python | false | false | 2,024 | py | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = False
# https://docs.djangoproject.com/en/dev/ref/settings/#se... | [
"rlaneyjr@gmail.com"
] | rlaneyjr@gmail.com |
abd3bcdbedfbf53aa74ec49c4c5efae200ede1c3 | 536656cd89e4fa3a92b5dcab28657d60d1d244bd | /tools/perf/core/results_processor/command_line_unittest.py | 5dd1f9abc72545c59b4f8dfebf02d90dec2e566e | [
"Zlib",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"MIT",
"APSL-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown"
] | permissive | ECS-251-W2020/chromium | 79caebf50443f297557d9510620bf8d44a68399a | ac814e85cb870a6b569e184c7a60a70ff3cb19f9 | refs/heads/master | 2022-08-19T17:42:46.887573 | 2020-03-18T06:08:44 | 2020-03-18T06:08:44 | 248,141,336 | 7 | 8 | BSD-3-Clause | 2022-07-06T20:32:48 | 2020-03-18T04:52:18 | null | UTF-8 | Python | false | false | 7,545 | py | # Copyright 2019 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.
"""Unit tests for results_processor.
These tests mostly test that argument parsing and processing work as expected.
They mock out accesses to the operating ... | [
"pcding@ucdavis.edu"
] | pcding@ucdavis.edu |
53bd21551303a9812df6895c3a5bcf7d5342dedb | d772869033c47a666622e9ee518bb306db5451a5 | /unified/modules/main/categories/crm/entities/deal.py | 0bcaee514289e3195334ae924481bbb68f1f6ee0 | [] | no_license | funny2code/unified_api | 920f1e19b2304e331b019f8a531d412b8759e725 | ffa28ba0e5c0bd8ad7dd44a468e3d1e777bba725 | refs/heads/main | 2023-08-31T16:00:17.074427 | 2021-10-04T04:09:45 | 2021-10-04T04:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | from dataclasses import dataclass
@dataclass
class Deal:
deal_id: str = None
account_id: str = None
name: str = None
close_date: str = None
description: str = None
stage_id: str = None
value: str = None
probability: str = None
owner_id : str = None
contact_id: str = None
c... | [
"baidawardipendar@gmail.com"
] | baidawardipendar@gmail.com |
611e284cb8350ee5e0530de97ff2121e728b6f84 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/279/66340/submittedfiles/testes.py | 7ccd166e96f0a4767cbe69f6d5511f7efefae093 | [] | 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 | 165 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
print("andre bezerra de barrros ")
print("24")
print(11+1037)
print((9*35+160)/5)
print(3.14159*(10/2)*(10/2)*30)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1c460f138444384b52eda73ccc1a7db8da23d76b | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/3999/codes/1635_2442.py | 7d4cb10f6eb2bb08c1ebeeb9ad94276bb7866760 | [] | 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 | 271 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Use as mensagens de erro para corrigir seu código.
num=int(input("Digite um numero: "))
if (num%2==0):
mensagem="par"
else:
mensagem="impar"
print(mensagem) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
78cd02f35eb33e0dca1c10049960dc96d060c161 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part006597.py | f32e3be699fb19351abe7424a78bedb56216f820 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
9b2b62d6c9e2308e570b19de28085ae1f34c35a9 | 7bcb0b7f721c8fa31da7574f13ed0056127715b3 | /src/apps/api/resources/subscription.py | 62e5a4c74c86c9613ca6bd0c1ba0aeca5007fa3d | [] | no_license | simonchapman1986/ripe | 09eb9452ea16730c105c452eefb6a6791c1b4a69 | c129da2249b5f75015f528e4056e9a2957b7d884 | refs/heads/master | 2022-07-22T05:15:38.485619 | 2016-01-15T12:53:43 | 2016-01-15T12:53:43 | 49,718,671 | 1 | 0 | null | 2022-07-07T22:50:50 | 2016-01-15T12:53:09 | Python | UTF-8 | Python | false | false | 455 | py | from apps.base.models import FactServicesStorefrontSubscription
from tastypie.resources import ModelResource
class SubscriptionResource(ModelResource):
class Meta:
queryset = FactServicesStorefrontSubscription.objects.all()
list_allowed_methods = ['get']
detail_allowed_methods = ['get']
... | [
"simon-ch@moving-picture.com"
] | simon-ch@moving-picture.com |
b42508610856a9da00e6b77138872e63aab1b223 | 50f04c633f36e9d64c40c4f1b434ed0c24e447c7 | /argparse-examples/positionalarg.py | 047332844d22ec1332227b4bb8bc6c545fec0f22 | [] | no_license | sarahchou/python-practice | 883ba7dedd60b2cc18d5d73ef7d3cbb74f09dede | 2a3d10144b74460d8ec513e3c7d49bdb48107596 | refs/heads/master | 2022-11-11T10:06:12.944579 | 2018-06-11T22:14:06 | 2018-06-11T22:14:06 | 136,985,077 | 0 | 1 | null | 2022-10-20T08:48:36 | 2018-06-11T21:54:46 | Python | UTF-8 | Python | false | false | 305 | py | #Introduction to positional arguments
import argparse
parser = argparse.ArgumentParser()
# parser.add_argument("echo", help="echo the string you use here")
parser.add_argument("square", help="display a square of a given number", type=int)
args = parser.parse_args()
# print args.echo
print args.square**2
| [
"chou.s@husky.neu.edu"
] | chou.s@husky.neu.edu |
75bbbe754d344cb243580cb495baebe07914d27a | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_9/alhada001/question1.py | a7d1ab9e4c2362dd2297a16531f5457babdf6f3d | [] | 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 | 967 | py | #Adam Alhadeff
import math
file = input("Enter the marks filename:\n")
f = open(file, "r")
length = len(open(file).readlines())
names = []
marks = []
line = f.readline()
count = 0
for i in range(length):
split = line.split(",")
names.append(split[0])
marks.append(split[1])
count += 1
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
48cf3ed92a3e10d96e85fb1b15ba0340b11f90da | 9dba8607dce414f9905700d7a4ac44668de5e1f1 | /puente_quintanavides/combinaciones/def_hip_elscp_resumidas_xci.py | da24fbbb055eb1ffb3374131c83a39767b1d825f | [] | no_license | anaiortega/XCmodels | c0463ffe38531578aee281456e88528882255cd7 | e9b8c2f996a21b8aa3314242f3cc12b0e391b5df | refs/heads/master | 2023-08-16T22:44:01.168775 | 2023-08-14T18:15:10 | 2023-08-14T18:15:10 | 141,140,177 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | \combinacion["ELSCP001"]{ descomp("1.00*G1 + 0.70*TC1V1")}
\combinacion["ELSCP002"]{ descomp("1.00*G1 + 0.70*TC1V1 + 0.20*NV")}
\combinacion["ELSCP009"]{ descomp("1.00*G1 + 0.70*TC1V1 + 0.70*TC3V2")}
\combinacion["ELSCP010"]{ descomp("1.00*G1 + 0.70*TC1V1 + 0.70*TC3V2 + 0.20*NV")}
\combinacion["ELSCP021"]{ descomp("1.0... | [
"l.pereztato@gmail.com"
] | l.pereztato@gmail.com |
21b67cd73c3425afe749638e23831431e4628084 | 0f07107b016d2aee64788966b9f0d322ac46b998 | /moya/docgen/theme.py | 39c3d707e1310f7b2799f5a59c83826bd99563b2 | [
"MIT"
] | permissive | fkztw/moya | 35f48cdc5d5723b04c671947099b0b1af1c7cc7a | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | refs/heads/master | 2023-08-09T09:20:21.968908 | 2019-02-03T18:18:54 | 2019-02-03T18:18:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | from .. import iniparse
from fs.path import dirname, pathjoin
class Page(object):
def __init__(self, doc_class, settings):
self.doc_class = doc_class
self.settings = settings
def __repr__(self):
return "Page(%r, %r)" % (self.doc_class, self.settings)
def get(self, context, settin... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
5783ce1e2789f35719b925425e95f886b574fd59 | 76d8f9d741d4e0bbd15a2c29fa77d041c01ea9bf | /exercise/keras/trafficsign.py | a422aaf4c134f2d7e34383236a64a9a9fb67fcf1 | [] | no_license | LevinJ/Behavioural-Cloning-P3 | d92bf3500797019a3fcf038a5c0e817f445e7a39 | fff8993ba2671c9664ab65899db952e2f5de37da | refs/heads/master | 2020-06-22T03:16:27.869561 | 2016-12-19T00:19:06 | 2016-12-19T00:19:06 | 74,758,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,848 | py | from utility.dumpload import DumpLoad
import numpy as np
from sklearn.preprocessing import scale
import pandas as pd
import os
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import Dense, Activation
from sklearn.preprocessing import OneHotEncoder
from keras.optimize... | [
"jianzhirong@gmail.com"
] | jianzhirong@gmail.com |
92ea114b1907807cc47d45d2b77ee51981cafab8 | 887f2e664c6d92f17e784f57022333a2fb859d06 | /analysis/plotMove.py | 252a91a4c6be6dc9ba8b647cac05970a426f3080 | [] | no_license | ctorney/dolphinUnion | 1968e258c6045060b2c921bd723d0ef0daea0147 | 9d7212d172a8a48a36fc4870fcdb04d66130bb76 | refs/heads/master | 2021-01-19T04:40:57.286526 | 2017-08-17T20:44:58 | 2017-08-17T20:44:58 | 46,424,670 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,332 | py | import numpy as np
import pandas as pd
import os, re
import math
import time
from scipy import interpolate
from scipy import ndimage
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
import matplotlib.animation as ani
HD = os.getenv('HOME')
FILELIST = HD + '/workspace/dolphinUnion/tracking/solo/fileList... | [
"colin.j.torney@gmail.com"
] | colin.j.torney@gmail.com |
7db1a2988c552372fb5395ea469d95dd7642b33f | f561a219c57bd75790d3155acac6f54299a88b08 | /splash_screen/migrations/0001_initial.py | 595c80d3d3c899474e567d2f95d683c19e6bc3ae | [] | no_license | ujjwalagrawal17/OfferCartServer | 1e81cf2dc17f19fa896062c2a084e6b232a8929e | b3cd1c5f8eecc167b6f4baebed3c4471140d905f | refs/heads/master | 2020-12-30T15:31:04.380084 | 2017-05-24T18:26:20 | 2017-05-24T18:26:20 | 91,155,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-06 17:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='FcmDat... | [
"ujjwal.iitism@gmail.com"
] | ujjwal.iitism@gmail.com |
57ce4e23c369d0ac1c8990a08dd6f14bffa13f86 | ef3a7391b0a5c5d8e276355e97cbe4de621d500c | /venv/Lib/site-packages/spacy/tests/lang/en/test_exceptions.py | 6285a94089db310ac5481689b6030d62f9ea8679 | [
"Apache-2.0"
] | permissive | countBMB/BenjiRepo | 143f6da5d198ea6f06404b4559e1f4528b71b3eb | 79d882263baaf2a11654ca67d2e5593074d36dfa | refs/heads/master | 2022-12-11T07:37:04.807143 | 2019-12-25T11:26:29 | 2019-12-25T11:26:29 | 230,090,428 | 1 | 1 | Apache-2.0 | 2022-12-08T03:21:09 | 2019-12-25T11:05:59 | Python | UTF-8 | Python | false | false | 4,097 | py | # coding: utf-8
from __future__ import unicode_literals
import pytest
def test_en_tokenizer_handles_basic_contraction(en_tokenizer):
text = "don't giggle"
tokens = en_tokenizer(text)
assert len(tokens) == 3
assert tokens[1].text == "n't"
text = "i said don't!"
tokens = en_tokenizer(text)
... | [
"bengmen92@gmail.com"
] | bengmen92@gmail.com |
78e8a604cecf27fe811b0c948ad111c099ce963d | e54e1a63bffbe913f5e5018ace56cfa3eab1a72b | /practice/Leetcode/1253_reconstruct_a_2_row_binary_matrix.py | 2b71d9f4f15e8a18ca410c4daa4699f6e1846cec | [] | no_license | rmodi6/scripts | 5e27a46ce8970cbf601f132a53164c273f1812ea | 7cc47eecac00e6bd0b3ec74d7eed8ec3e0e77a84 | refs/heads/master | 2022-02-14T20:41:28.765751 | 2022-01-20T06:59:40 | 2022-01-20T06:59:40 | 168,207,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | # https://leetcode.com/contest/weekly-contest-162/problems/reconstruct-a-2-row-binary-matrix/
import numpy as np
class Solution:
def reconstructMatrix(self, upper: int, lower: int, colsum: List[int]) -> List[List[int]]:
if upper + lower != sum(colsum):
return []
ans = np.zeros((2, len(... | [
"modi.ruchit6@gmail.com"
] | modi.ruchit6@gmail.com |
0212f9e5951c9f222ca5a846a070bf81530f2a1c | 47c175daf97051e1f5c37b161f16abbd5f5a506e | /modules/forward_attention.py | 1572b09366af7b47ef3fe8cd017f1bbae7507555 | [
"BSD-3-Clause"
] | permissive | nii-yamagishilab/self-attention-tacotron | 947d1d2eb8bc25f70331fbc401bf44c93ef92673 | 0ebd96114feab5a499964402a8ab7e402f0083b4 | refs/heads/master | 2021-07-11T06:13:18.202669 | 2020-06-19T03:04:42 | 2020-06-19T03:04:42 | 156,176,608 | 116 | 35 | BSD-3-Clause | 2020-06-19T03:04:43 | 2018-11-05T07:21:46 | Python | UTF-8 | Python | false | false | 6,383 | py | # ==============================================================================
# Copyright (c) 2018, Yamagishi Laboratory, National Institute of Informatics
# Author: Yusuke Yasuda (yasuda@nii.ac.jp)
# All rights reserved.
# ==============================================================================
""" """
impo... | [
"yusuke.007.yasud@gmail.com"
] | yusuke.007.yasud@gmail.com |
c208f338b0b8e717f7788e70ab415ccb06596ec2 | be6ce691a3667edf152859f16804e06aaa486a03 | /solution1/deprecated.py | f70d197db4f26a45a6e6cf1f3aaa93a6efa255a6 | [] | no_license | mik-laj/airflow-deprecation-sample | d9b7d068013884177fec833e234914c6a1ec8be3 | ae1f93ac6ab85cec4c57dcb62f956fec73d88bbe | refs/heads/master | 2020-04-23T00:13:41.579998 | 2019-07-30T13:17:29 | 2019-07-30T13:17:50 | 170,771,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | import warnings
from solution1.new import *
warnings.warn("solution1.deprecated has moved to solution1.new. Import of "
"solution.new will become unsupported in version 2",
DeprecationWarning, 2)
| [
"kamil.bregula@polidea.com"
] | kamil.bregula@polidea.com |
283845b8c4a81738b39c332e062e558f4a1fa42f | e03f502312775b01b41ea7c6f5cb3dfbafdb8509 | /aboutus/api/serializers.py | 189187d979c6f742e946a41c169302bc8c45fb14 | [] | no_license | Grechanin/Misteckiy-DjangoRest-React-Redux | e223e89310362b8c21e30c8c669d4e170d232db6 | f05eb50a6aec72432716672294df81c3dc939ddd | refs/heads/master | 2020-04-13T10:58:17.931584 | 2019-02-18T09:21:54 | 2019-02-18T09:21:54 | 163,159,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from aboutus.models import AboutUs
from rest_framework import serializers
class AboutUsSerializer(serializers.ModelSerializer):
class Meta:
model = AboutUs
fields = (
'tab_title',
'title',
'short_description',
'description',
)
| [
"grechanin@gmail.com"
] | grechanin@gmail.com |
84943acbf7b7b989ac08e4c3d173d53799243119 | 2dd560dc468af0af4ca44cb4cd37a0b807357063 | /Leetcode/1170. Compare Strings by Frequency of the Smallest Character/solution2.py | f55713f52de924d420434c926569d1d9fb130de7 | [
"MIT"
] | permissive | hi0t/Outtalent | 460fe4a73788437ba6ce9ef1501291035c8ff1e8 | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | refs/heads/master | 2023-02-26T21:16:56.741589 | 2021-02-05T13:36:50 | 2021-02-05T13:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from bisect import bisect
class Solution:
def numSmallerByFrequency(self, queries: List[str], words: List[str]) -> List[int]:
f = sorted([w.count(min(w)) for w in words])
return [len(f) - bisect(f, q.count(min(q))) for q in queries]
| [
"info@crazysquirrel.ru"
] | info@crazysquirrel.ru |
932f0f3ca464a0e327e0dcff6fe1f74ce0621071 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /routing_transformer/routing_tf_api.py | 62feaeaa11136632e25caf46ffb158383e6714e4 | [
"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 | 7,727 | 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 |
64e7542df83df9bd0d6edf9f81dd3c5add9aef71 | 0800aac473cbb94f3ac263c202979498c326cf18 | /법인세_총설.py | a437c75324c85c0332211d27ad24fe8df470b893 | [] | no_license | DanielHennyKwon/TAX_LIM_JEONG | 8f12e072c044cd17646f196c17b51d1e0cae179e | a263b4e90f0ac78500382047bf7ae72380213ca8 | refs/heads/master | 2023-06-16T10:50:55.111407 | 2021-07-11T02:59:50 | 2021-07-11T02:59:50 | 384,847,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,432 | py | # -*- coding: utf-8 -*-
# 2018-12-24 권달현
import 결산의확정, 신고납부절차, 기한후신고, 수정신고, 경정청구, 법인의분류, 세금의종류, 실질과세, 소액주주, 대주주, 중소기업, 이월과세, 과세이연, 세무조정, 소득처분, 법인세비용, 세액계산_구조,세무조정_흐름도
_={
"결산의 확정":결산의확정.결산의확정,
"법인세의 신고납부절차":신고납부절차.법인세,
"기한후신고":기한후신고.법인세,
"수정신고":수정신고._,
"경정청구":경정청구._,
"법인세법상 법인의 분류":법인의분류.법인세,
... | [
"cpahouse@naver.com"
] | cpahouse@naver.com |
0e2e19efd181694bd82a31e6ea9bd4fd1ccb7faf | 248d20fa6c37afc1501b47398451bf15dc8f0165 | /ryosuke/chapter04/knock38.py | 5e72a2bf383a6cd35a7e272d4ed196b6769cd017 | [] | no_license | tmu-nlp/100knock2016 | 20e9efd4698f59918aa850ba40163906f13dcb7f | d5f7a76286cb95bb374ff98bc0c9db3c796d113d | refs/heads/master | 2021-01-21T02:20:57.121371 | 2016-08-03T01:49:38 | 2016-08-03T01:49:38 | 55,942,482 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from knock30 import get_sentences
from collections import Counter
import matplotlib.pyplot as plt
vocab = Counter()
for sentence in get_sentences():
vocab += Counter(m['surface'] for m in sentence)
names, freqs = zip(*vocab.most_common())
plt.hist(freqs, bins=len(set(freqs)))
plt.show()
| [
"tmcit.miyazaki@gmail.com"
] | tmcit.miyazaki@gmail.com |
66f614fc294e9d8c94babbbce4963368e0136402 | 35b460a5e72e3cb40681861c38dc6d5df1ae9b92 | /CodeFights/Arcade/Intro/islandOfKnowledge/minesweeper.py | 7a778a54e8fe37740efbc970e191ddc6ef1ca2ae | [] | no_license | robgoyal/CodingChallenges | 9c5f3457a213cf54193a78058f74fcf085ef25bc | 0aa99d1aa7b566a754471501945de26644558d7c | refs/heads/master | 2021-06-23T09:09:17.085873 | 2019-03-04T04:04:59 | 2019-03-04T04:04:59 | 94,391,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | # Name: minesweeper.py
# Author: Robin Goyal
# Last-Modified: July 12, 2017
# Purpose: Give an array of true and false values with true indicating a mine
# return an array of the same length indicating number of surrounding
# mines at each position
# Note: Could've optimized the solution but a pure br... | [
"goyal.rob@gmail.com"
] | goyal.rob@gmail.com |
f9e1ca44905679e39f7b725bab3e049bd3cf44d3 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/number-of-senior-citizens.py | 50b65c0c4bd9f9324ebc57219dbfd33cea759e81 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 229 | py | # Time: O(n)
# Space: O(1)
# string
class Solution(object):
def countSeniors(self, details):
"""
:type details: List[str]
:rtype: int
"""
return sum(x[-4:-2] > "60" for x in details)
| [
"noreply@github.com"
] | kamyu104.noreply@github.com |
cee24ad2b9015a0358c23faf46c7db3e63048385 | b40a661aa78c10ea8413b349f1efe288149f4ab0 | /App/migrations/0004_address.py | 20a5f2bea93a0a8e0e15352f1439fbf6e1dd1c5b | [] | no_license | 0helloword/DjangoSum | daed4ab9488c5d53518623eb5d35c3a32a826129 | 72b528415edd2a76a7a19da708d4046de2a014ac | refs/heads/master | 2022-11-25T15:15:30.843401 | 2020-08-02T03:18:07 | 2020-08-02T03:18:07 | 275,606,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.28 on 2020-06-27 13:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('App', '0003_cart'),
]
operations = [
migr... | [
"532720298@qq.com"
] | 532720298@qq.com |
3aefc1186a88845c16d658de39ccb722a760a83f | e922f5dac332fbf4de910ade55f07cb75d900d1b | /templates/influxdb/actions.py | 22fc5f7c27e2e8b057d5a9a71db43c9800bbaa34 | [
"Apache-2.0"
] | permissive | hossnys/0-orchestrator | 441970f0bd784b72c40f6da4fa44ca2c70b9ea8c | cce7cc1e1f957e0eb691b863502fa6c3f4620d52 | refs/heads/master | 2021-01-01T18:46:27.123614 | 2017-07-26T13:59:30 | 2017-07-26T13:59:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,070 | py | def get_container(service, force=True):
containers = service.producers.get('container')
if not containers:
if force:
raise RuntimeError('Service didn\'t consume any containers')
else:
return
return containers[0]
def init(job):
from zeroos.orchestrator.configurat... | [
"deboeck.jo@gmail.com"
] | deboeck.jo@gmail.com |
21439bcac6cdd546eeab5d2c26363fe72b79eb43 | ea549f5974db822d0733e5417d313997de9ca2bb | /craig_list_site/migrations/0001_initial.py | 57e111b3bffaa4b9a0892c8fca78c81caa2d727c | [] | no_license | Bibin22/craiglist | fe5a641cf4b8c03557c1775605a5e8b4da9b43de | 853b377f4951ee3ac9072bc22d486f520e18b1bc | refs/heads/master | 2023-02-05T11:32:24.911491 | 2021-01-02T05:30:34 | 2021-01-02T05:30:34 | 326,116,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # Generated by Django 3.1.4 on 2020-12-24 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Search',
fields=[
('id', models.AutoField(a... | [
"bibinjoy82@gmail.com"
] | bibinjoy82@gmail.com |
e33bf7188bb39a15eab44ec863cb21e1daa47b3e | acf15961c47fb947a407a4318214110b9597d9e6 | /env/bin/jupyter-kernel | 667c26308122816ab476f0645e256bfc37e040c0 | [] | no_license | qu4ku/dshub-website | 43e378352246357db83da9b9b0acd760aebbc83a | 792d94e41fa666093eda2b5511bbcab27e0bb287 | refs/heads/master | 2021-06-02T19:27:39.708138 | 2020-05-19T09:18:42 | 2020-05-19T09:18:42 | 135,715,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | #!/Users/kamilwroniewicz/_code/_github/180601-datahub-website/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_client.kernelapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"qu4ku@hotmail.com"
] | qu4ku@hotmail.com | |
a3fac0df2496aea555fb951e1641e2c5d9b07391 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_233/ch45_2020_03_09_13_17_35_961786.py | 7cf83bf5b09f45069fdb4e7c49f9a6d644c64307 | [] | 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 | 202 | py | lista = []
while True:
num = int(input())
if num <= 0: break
lista.append(num)
lista_inv = range(len(lista))
for i in range(len(lista)):
lista_inv[-i + 1] = lista[i]
print(lista_inv) | [
"you@example.com"
] | you@example.com |
ddc161b7e46516dd3785e6dba80385cf69326f1e | f3f01d98f2f924b7f2ce9c682b63ef68a0b943d7 | /Type_conversion.py | 67e8274a805561624b385bea780d5a3d1ffc4e07 | [] | no_license | nihalgaurav/pythonprep | 0d935244f4c20b2ba660a1bc192352654d4a9366 | d3023e1b58d9d5333e909f71d9c3fa7c54c420f5 | refs/heads/master | 2023-03-27T06:09:38.757433 | 2021-03-16T05:22:07 | 2021-03-16T05:22:07 | 344,804,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | number = 17
width = len(str(bin(number)[2:])) + 2
print("INT".rjust(width) + "OCT".rjust(width) + "HEX".rjust(width) + "BIN".rjust(width))
for x in range(1, number+1):
print(str(int(x)).rjust(width, " ") + str(oct(x))[2:].rjust(width, " ") + str(hex(x))[2:].upper().rjust(width, " ")
+ str(bin(x)[2:]).rjus... | [
"nihalgaurav85@gmail.com"
] | nihalgaurav85@gmail.com |
2eb9a26bdde17a586ad5280059024d4004382a91 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /ayQTiQAcFJhtauhe3_17.py | 1dca03f7cb44ef5e8ee9f421dc82cdd88d7fd01c | [] | 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 | 521 | py | """
Given a list of integers, determine whether the sum of its elements is even or
odd.
The output should be a string (`"odd"` or `"even"`).
If the input list is empty, consider it as a list with a zero (`[0]`).
### Examples
even_or_odd([0]) ➞ "even"
even_or_odd([1]) ➞ "odd"
even_or_odd([])... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
12a9b9befcf7af332c3ea172149268070aea9c7c | deb740e5086386a68d155b2482f9a9ec2095012c | /jdcloud_sdk/services/live/apis/DescribeLivePublishStreamNumRequest.py | 212277a2947473efb924dd9775e2df6ca9c01142 | [
"Apache-2.0"
] | permissive | aluode99/jdcloud-sdk-python | 843afdd2855a55ecd7cd90fe255df213a8f56e28 | 3da9ae9c0f08e2c20a73dde04f6453d3eb9db16a | refs/heads/master | 2020-05-26T09:26:24.307434 | 2019-05-29T02:35:23 | 2019-05-29T02:35:23 | 188,186,313 | 0 | 0 | null | 2019-05-23T07:46:01 | 2019-05-23T07:46:00 | null | UTF-8 | Python | false | false | 2,692 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"tancong@jd.com"
] | tancong@jd.com |
579a8846030030a1b4f846da2163172703055c1e | 3592ef6ceb0e7654dc68fa9879b8c6fe31bcf6d1 | /reveries/tools/modeldiffer/lib.py | aa794920283f2358703cbb6ef0aad11ced9d157f | [
"MIT"
] | permissive | all-in-one-of/reveries-config | a83a8208680d857a155e0a05297bde111d8c6845 | b47a5a6ce05376dffcb893e0823fecbcf1d08e67 | refs/heads/master | 2021-01-04T07:44:45.383431 | 2020-02-13T09:00:51 | 2020-02-13T09:00:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py |
import logging
from avalon import io
main_logger = logging.getLogger("modeldiffer")
def profile_from_database(version_id):
"""
"""
representation = io.find_one({"type": "representation",
"name": "mayaBinary",
"parent": version_id})
... | [
"david962041@gmail.com"
] | david962041@gmail.com |
66c48db3d472e9cbef6459a534d94dd8fe60f1ce | 94f156b362fbce8f89c8e15cd7687f8af267ef08 | /week3/main/models.py | 267cfd064ac83b9e6a1feed9dae6e559d5dabd77 | [] | no_license | DastanB/AdvancedDjango | 6eee5477cd5a00423972c9cc3d2b5f1e4a501841 | 2b5d4c22b278c6d0e08ab7e84161163fe42e9a3f | refs/heads/master | 2020-07-17T19:21:16.271964 | 2019-12-03T21:58:51 | 2019-12-03T21:58:51 | 206,081,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | from django.db import models
from users.models import MainUser
from main.constants import PROJECT_STATUSES, PROJECT_IN_PROCESS, PROJECT_FROZEN, PROJECT_DONE, BLOCK_STATUSES, TASKS_DONE, TASKS_FROZEN, TASKS_IN_PROCESS
import datetime
# Create your models here.
class Project(models.Model):
name = models.CharField(ma... | [
"dastan211298@gmail.com"
] | dastan211298@gmail.com |
039edd18fd3e878624c2de8607511b5b9ad8a545 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4170/codes/1594_1800.py | 4bfac1cb471a1d30c906e35552843d6922186bbd | [] | 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 | 209 | py | a = int(input("Insira o valor da variavel a: "))
b = int(input("Insira o valor da variavel b: "))
c = int(input("Insira o valor da variavel c: "))
x = ((a**2) + (b**2) + (c**2)) / (a + b + c)
print(round(x,7)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
6d816df5012606bc69d35c03b4aac39b3a25c6dd | 0ec4defa6f83ec044b9e1235cc45964a8145b4d1 | /venv/lib/python3.6/site-packages/pybrain3/rl/experiments/continuous.py | 72df9483cfa96feab6da58c6c9be10525203864b | [] | no_license | nnarziev/MyWeek_Server | e6f6c10ce813cf3dc3aa644958c31a4d01567b4d | 7c51e79224ba48cd1a230536c27f3bd8cec73a21 | refs/heads/master | 2021-08-19T13:46:56.450003 | 2017-11-25T16:48:07 | 2017-11-25T16:48:07 | 112,080,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | __author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de'
from .experiment import Experiment
class ContinuousExperiment(Experiment):
""" The extension of Experiment to handle continuous tasks. """
def doInteractionsAndLearn(self, number = 1):
""" Execute a number of steps while learning con... | [
"qobiljon.toshnazarov@gmail.com"
] | qobiljon.toshnazarov@gmail.com |
47a1085793c09d8ff86cf8e73980e0bcd9595eeb | 43461f999228079c9bfee03f0e4043f08426051f | /python爬虫开发与项目实战笔记/通用爬虫/day10/code/SNBook/items.py | cc4533585eccbe86d3f6186bcea51a5c1d717dbc | [] | no_license | MapleStoryBoy/spider | f9af844ae9812fe21141060213ac2677e719ac73 | b014d81d52805f9317e85b66024d047e73d59053 | refs/heads/master | 2020-05-21T18:27:50.585790 | 2019-07-12T10:11:58 | 2019-07-12T10:11:58 | 186,132,575 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class SnbookItem(scrapy.Item):
# define the fields for your item here like:
parent_type = scrapy.Field()
parent_href = scrapy.Field()
p... | [
"MapleStoryBoy@163.com"
] | MapleStoryBoy@163.com |
2224c4722a23ff2f4f9c86984146a37d9ca3749e | e76ea38dbe5774fccaf14e1a0090d9275cdaee08 | /src/media/cast/rtp_receiver/rtp_parser/rtp_parser.gyp | ade15eebff42e9f6af9baf7ca1709eba30e3b3e3 | [
"BSD-3-Clause"
] | permissive | eurogiciel-oss/Tizen_Crosswalk | efc424807a5434df1d5c9e8ed51364974643707d | a68aed6e29bd157c95564e7af2e3a26191813e51 | refs/heads/master | 2021-01-18T19:19:04.527505 | 2014-02-06T13:43:21 | 2014-02-06T13:43:21 | 16,070,101 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 569 | gyp | # Copyright 2013 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.
{
'targets': [
{
'target_name': 'cast_rtp_parser',
'type': 'static_library',
'include_dirs': [
'<(DEPTH)/',
'<(DEPTH)... | [
"ronan@fridu.net"
] | ronan@fridu.net |
e244afe21842d52ced891cd2c82f5a5dc61e1701 | 658e2e3cb8a4d5343a125f7deed19c9ebf06fa68 | /course_DE/Udacity-Data-Engineering-master/Data Pipeline with Airflow/Production Data Pipelines - Exercise 1.py | 2189c509168783ee7e6770e7df5d77f68ffca7c2 | [] | no_license | yennanliu/analysis | 3f0018809cdc2403f4fbfe4b245df1ad73fa08a5 | 643ad3fed41961cddd006fadceb0e927f1db1f23 | refs/heads/master | 2021-01-23T21:48:58.572269 | 2020-10-13T22:47:12 | 2020-10-13T22:47:12 | 57,648,676 | 11 | 9 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | #Instructions
#In this exercise, we’ll consolidate repeated code into Operator Plugins
#1 - Move the data quality check logic into a custom operator
#2 - Replace the data quality check PythonOperators with our new custom operator
#3 - Consolidate both the S3 to RedShift functions into a custom operator
#4 - Replac... | [
"f339339@gmail.com"
] | f339339@gmail.com |
0fe346359edc276de2c737c0eb967f27d570aafe | 6ac77834909c485686638d27c0bf41e6d1765cf7 | /src/mapping/writer/mysql_hbase_hawq_writer.py | 79911c5ab6d7c61ed2a50ecbcdabf8ecb5943d18 | [] | no_license | YangXinNewlife/gears | 4144e451861efb0f3ae1d738eb5fcd6cec46a833 | 486b1ce5a7b8d8682bb1394be8f5dd6ae0fca837 | refs/heads/master | 2021-01-20T01:41:30.074696 | 2017-05-26T08:17:45 | 2017-05-26T08:17:45 | 89,316,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | # -*- coding:utf-8 -*-
__author__ = 'yx'
from src.mapping.writer.writer import Writer
class MysqlHBaseHawqWriter(Writer):
def __init__(self):
pass
def convert_data_type(self, data_type):
pass
| [
"yangxin@zetyun.com"
] | yangxin@zetyun.com |
e9f8df1e669df7bb971e196bef4e8f0b517d633e | ca17bd80ac1d02c711423ac4093330172002a513 | /goodyhandy/FirstMissingPositive.py | 9988bcba209286d3584cc6e41ed5e95b6469f9f4 | [] | no_license | Omega094/lc_practice | 64046dea8bbdaee99d767b70002a2b5b56313112 | e61776bcfd5d93c663b247d71e00f1b298683714 | refs/heads/master | 2020-03-12T13:45:13.988645 | 2018-04-23T06:28:32 | 2018-04-23T06:28:32 | 130,649,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | class Solution(object):
def firstMissingPositive(self, A):
"""
:type nums: List[int]
:rtype: int
"""
length = len(A)
for i, num in enumerate(A):
if A[i] != i + 1:
while A[i] != i + 1:
if A[i] <= 0 or A[i] > length or A[A... | [
"zhao_j1@denison.edu"
] | zhao_j1@denison.edu |
7bf8d2a366551d6774730e60de1d62b78af16d52 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_108/125.py | c96c54037ce532c493eb7d9d77e0a2a5ad1f93b3 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,787 | py | #!/usr/bin/env python
import bisect
import sys
from collections import defaultdict
def main(args):
finname = '%s.in' % args[1]
foutname = '%s.out' % args[1]
with open(finname, 'r') as fin, open(foutname, 'w') as fout:
T = int(fin.readline().strip())
for i in xrange(1, T+1):
num_... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
016d2f4b0007f8a40384dcd7a57e8d67f5a5f01f | 7708c2526947a86d064fc8b07a579baa332c5575 | /Database/build_db_datasets.py | b0b7c3d3ff443564267cc2ad0962d02df56a6c71 | [] | no_license | shunsunsun/Cell_BLAST-notebooks | d622aea190015e8b76207866889dddbd4dd333a8 | 9baebb4311eaf71670f4852238db7b91157e71b1 | refs/heads/master | 2022-01-19T05:05:30.269257 | 2019-04-21T13:30:42 | 2019-04-21T13:30:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,024 | py | #!/usr/bin/env python
import os
import numpy as np
import pandas as pd
import mysql.connector
from utils import nan_safe
def generate_datasets_meta():
dataset_dict = {
item: [
file for file in os.listdir(item)
if file.endswith(".pdf") and file != "peek.pdf"
] for item in o... | [
"caozj@mail.cbi.pku.edu.cn"
] | caozj@mail.cbi.pku.edu.cn |
a7db53021d314e8a8940afd0b9d509d6c3431464 | eb64b799ff1d7ef3a244bf8e6f9f4e9118d5cfcd | /homeassistant/components/wilight/light.py | 3236b3b3851a234fc1d369afef91f7753338940f | [
"Apache-2.0"
] | permissive | JeffLIrion/home-assistant | 53966b81b5d5816679f12fc761f79e8777c738d6 | 8f4ec89be6c2505d8a59eee44de335abe308ac9f | refs/heads/dev | 2023-08-22T09:42:02.399277 | 2022-02-16T01:26:13 | 2022-02-16T01:26:13 | 136,679,169 | 5 | 2 | Apache-2.0 | 2023-09-13T06:59:25 | 2018-06-09T00:58:35 | Python | UTF-8 | Python | false | false | 5,995 | py | """Support for WiLight lights."""
from pywilight.const import (
ITEM_LIGHT,
LIGHT_COLOR,
LIGHT_DIMMER,
LIGHT_ON_OFF,
SUPPORT_NONE,
)
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_HS_COLOR,
SUPPORT_BRIGHTNESS,
SUPPORT_COLOR,
LightEntity,
)
from homeassistant.... | [
"noreply@github.com"
] | JeffLIrion.noreply@github.com |
1bb80b25bf87d695dd5433efee4ab2a9b1aa572c | 483508a4e002bcd734b8729459d3e5d5e02aae70 | /number_frequency.py | 27b6776f20516181ec134ca21ebb9c493c09bc5c | [] | no_license | jdavid54/benford_law | 9d54cd539130bc3665080ca801d1bb4db96a18a9 | 3ff9d8358f59fef60f401c290ceb94701613e1b2 | refs/heads/main | 2023-07-18T03:56:18.685081 | 2021-08-25T10:44:37 | 2021-08-25T10:44:37 | 399,751,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | import numpy as np
import random
import matplotlib.pyplot as plt
# benford's law
# value
l1 = 10000
# size
l2 = 100
freq=[0]*10
x = np.arange(1,10)
'''
a = np.random.randint(1,l1,(1,l2))
print(a)
for i in np.array(*a):
n = int(str(i)[0])
#print(n)
freq[n] = freq[n]+1
print(freq)
plt.bar(x,freq[1:])
#plt.... | [
"noreply@github.com"
] | jdavid54.noreply@github.com |
a44f361047b27f3505d603357681d2fca47f37b6 | bad686ba27539a3d3286418cc3ebf2aa80ae4958 | /src/pong/full-game.py | 383a097d39786a83f75f9eefa942508b67aa3626 | [] | no_license | AaryaBatchu/micropython | f0a31b579b3a998586f26b92036875c93588eca7 | aef7d33937352e9ab6f9615bfc5bf9aa1a9bee57 | refs/heads/main | 2023-08-19T13:33:15.006432 | 2021-10-23T19:06:26 | 2021-10-23T19:06:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | # Pong game on Raspberry Pi Pico with a OLED and two Potentimeters
from machine import Pin, PWM, SPI
import ssd1306
from utime import sleep
import random # random direction for new ball
sda=machine.Pin(0)
scl=machine.Pin(1)
pot_pin = machine.ADC(26)
WIDTH = 128
HEIGHT = 64
i2c=machine.I2C(0,sda=sda, scl=scl)
oled = ss... | [
"dan.mccreary@gmail.com"
] | dan.mccreary@gmail.com |
79a4bb8bec0d2d35bfcfb2c239be6aee46b0fd66 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_373/ch4_2020_04_12_18_58_48_907546.py | cde9dac5e0e2b7c03893f3ea611cee967836abd9 | [] | 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 | 212 | py | def classifica_idade (idade):
input(int( 'idade: '))
if idade <=11:
print ( 'crinca')
elif idade >= 12 and idade <= 17:
print ('adolecente')
else:
print ('adulto')
| [
"you@example.com"
] | you@example.com |
6405b2626aba482937b14dfeafe8be7ddfd5657d | 6392354e74cce4a303a544c53e13d0a7b87978ee | /m4/socket_correlation/company_review/lock_test.py | 154a5366cb5434bb78837c326d9e8b9c99355720 | [] | no_license | music51555/wxPythonCode | dc35e42e55d11850d7714a413da3dde51ccdd37e | f77b71ed67d926fbafd1cfec89de8987d9832016 | refs/heads/master | 2020-04-11T20:20:38.136446 | 2019-04-01T09:17:34 | 2019-04-01T09:17:34 | 162,067,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | import time
from threading import Thread,RLock
mutexA = mutexB = RLock()
class MyThread(Thread):
def __init__(self,name):
super(MyThread,self).__init__()
self.name = name
def run(self):
self.f1()
self.f2()
def f1(self):
mutexA.acquire()
print('%s得到A锁'%self... | [
"music51555@163.com"
] | music51555@163.com |
ebf5338c9d16d52fb1f01ccc605998b512d9edf6 | c6ff2a4484c371efd97ce610832cd9772dd406e0 | /app10_udemy/app10_udemy/wsgi.py | bb40d92d717d10e2eaaa247e3e39c58b6fc183fe | [] | no_license | inderdevkumar/Upload-and-display | 66bbb808be27d47f3ff8d57e663b58b71f62ef71 | 668beb97392f12d4b545937c18f2723919264987 | refs/heads/master | 2022-10-10T01:19:02.044549 | 2020-06-09T12:56:22 | 2020-06-09T12:56:22 | 271,003,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for app10_udemy project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"id0102yadav@gmail.com"
] | id0102yadav@gmail.com |
be38d3ebadb2460af99adbcd9d5e38e954fef300 | 89220198e6869bf13ff99f1d07b5aa0f49f23b2a | /modules/tools/perception/empty_prediction.py | 33dd04981b1164fe3cb0fdef209d432d879386cd | [
"Apache-2.0"
] | permissive | maohaihua/apollo | 2cd073a0844a9028756582e6db4c6b66fd4f8a0a | a30d7a6c65a58ca82681df81211176f98eeffde2 | refs/heads/master | 2020-04-30T20:55:14.018814 | 2019-03-22T00:29:56 | 2019-03-22T04:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | #!/usr/bin/env python
###############################################################################
# Copyright 2019 The Apollo 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 ... | [
"xiaoxiangquan@gmail.com"
] | xiaoxiangquan@gmail.com |
97ed4b7b177f9bfd4dd65cf0fe4e612cec5f5ca7 | c68580258e9fbe64bbf232e781d75584691de4c4 | /tests/django_settings.py | 2af62bb352df44c8386b6fd77435541a4214c8d9 | [
"MIT"
] | permissive | KyleAMathews/graphene | 7e092e6e7d9575c1f736d834a2913a63bc753006 | 5738b69271fd245339f35640d375d6bc13092358 | refs/heads/master | 2023-08-31T21:12:22.927712 | 2015-11-30T18:08:12 | 2015-11-30T18:08:12 | 47,149,828 | 2 | 0 | null | 2015-11-30T22:24:27 | 2015-11-30T22:24:27 | null | UTF-8 | Python | false | false | 196 | py | SECRET_KEY = 1
INSTALLED_APPS = [
'examples.starwars_django',
]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'tests/django.sqlite',
}
}
| [
"me@syrusakbary.com"
] | me@syrusakbary.com |
07dd881dfa838563a5ef9d22778cd9993402dd4c | 22ebcc842dbc933bfa8fdad89b8b8ef48ecc91c7 | /load/load_aes_hd.py | f70ad4aa349abe0942c49ece8386f2b88e6237e6 | [] | no_license | klikooo/thesis-src | 192651c18f243c59cfa588e7052dc1a96ab0a146 | 64f2ee824afdc2d3fd0f98c6d9fcfda597b9ad9f | refs/heads/master | 2020-04-16T18:16:20.638147 | 2019-08-20T14:59:52 | 2019-08-20T14:59:52 | 161,623,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | from decimal import Decimal
import torch
import numpy as np
import matplotlib.pyplot as plt
from models.load_model import load_model
from test import test_with_key_guess
import util
import pdb
path = '/media/rico/Data/TU/thesis'
#####################################################################################... | [
"rico12978@hotmail.com"
] | rico12978@hotmail.com |
e664beb018a1c9ae9d3a87597696086278f40c0e | dbe012dbedc967332ae58414473185055136d189 | /maskrcnn_benchmark/data/transforms/transforms.py | 283a9d3055d8b0ed951c6e0ec938684bcaf74ce3 | [
"MIT"
] | permissive | kevincao91/maskrcnn | 87561a023939a71d624252dd44f4c882b2dfa2a6 | a55f6ab82219329e353a20dd53c3f25f4375f537 | refs/heads/master | 2020-09-24T18:41:36.565752 | 2020-05-07T05:45:39 | 2020-05-07T05:45:39 | 225,819,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,511 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import random
import torch
import torchvision
from torchvision.transforms import functional as F
class Compose(object):
def __init__(self, transforms):
self.transforms = transforms
def __call__(self, image, target):
for ... | [
"kevin_cao_91@163.com"
] | kevin_cao_91@163.com |
59bebd47be55198c6ec48813b99966195120cdd5 | 3b3b9bbc39c50a270e96b4394024f1753e35aaec | /ncbly/spiders/spider.py | 30b8ffc51883646ef9f6e34a1fd77a8c78d021b7 | [] | no_license | hristo-grudev/ncbly | f94e2fdc8d556fba416d556cac5649b7f492c7c5 | 6b33ceb9b287ed0047f4676b3c036dc0b7c8e08a | refs/heads/main | 2023-04-11T02:09:07.152764 | 2021-04-15T06:30:42 | 2021-04-15T06:30:42 | 358,152,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | import scrapy
from scrapy import FormRequest
from scrapy.loader import ItemLoader
from ..items import NcblyItem
from itemloaders.processors import TakeFirst
class NcblySpider(scrapy.Spider):
name = 'ncbly'
start_urls = ['https://www.ncb.ly/en/media-center/news/']
def parse(self, response):
post_links = respon... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
24e05aac27a7eee6799ab5ec26fcb11af42151c3 | 147389cf28e0c92f0b2ef8000b0562a71d766880 | /pp.py | 764a1b7b187b101da8e094613efc9e68f4b889cc | [] | no_license | dohyekim/hello | 3821ca97079818c9938df33fc6d8d6ea9ca763a5 | 84f5704fe6cb6e5b63fb7903e311b650d65a394a | refs/heads/master | 2022-02-25T11:12:31.077335 | 2019-09-22T06:23:00 | 2019-09-22T06:23:00 | 156,352,382 | 1 | 0 | null | 2022-02-12T11:48:53 | 2018-11-06T08:39:18 | JavaScript | UTF-8 | Python | false | false | 707 | py | import requests
from bs4 import BeautifulSoup
import json
url = "https://www.melon.com/chart/index.htm"
headers = {
'Referer': 'https://www.melon.com/',
'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36'
}
html = requests.get(url,... | [
"dhleen5@hanmail.net"
] | dhleen5@hanmail.net |
dc5410da4cfff303d0f5fbc6d93fce02dc7cad1f | 79ed3f72555aad8548634f523f775f34cfe166e7 | /catch/datasets/guaroa.py | 5acd22fecfb7fdabe5e8b72c0eb5fa30d32a8df1 | [
"MIT"
] | permissive | John-Bioinfo/catch | a2ab188ed598767e7759f74227f24af2b284b379 | fe63b86bc41396c1da0b449ac440c6ae9e52b2c5 | refs/heads/master | 2020-03-18T09:29:10.315733 | 2018-04-17T18:36:47 | 2018-04-17T18:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | """Dataset with 'Guaroa orthobunyavirus' sequences.
A dataset with 25 'Guaroa orthobunyavirus' sequences. The virus is
segmented and has 3 segments. Based on their strain and/or isolate,
these sequences were able to be grouped into 16 genomes. Many genomes
may have fewer than 3 segments.
THIS PYTHON FILE WAS GENERATE... | [
"hmetsky@gmail.com"
] | hmetsky@gmail.com |
bf5657467f3bc562c237bba7906c9b1146e9b92a | 18d7876af265ec974aa5ecf9142093d845b59020 | /module/Favourite.py | d373b337f2caccf5bd99c89382bc95c872888048 | [] | no_license | xiaojieluo/savemylink | b6b2b806b8a760369860e2ec83fd85dece9bfd9d | 7eb64a4742516486bebe8498374b94552c682cfe | refs/heads/master | 2021-06-13T16:49:13.795891 | 2017-03-23T03:48:39 | 2017-03-23T03:48:39 | 77,986,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | #!/usr/bin/env python
# coding=utf-8
from module.DB import db
from module.define import *
class Favourite(object):
db = db
link_list = []
value_dict = dict()
favourite_public = FAVOURITE_PUBLIC
favourite_count = FAVOURITE_COUNT
def __init__(self, fid = 0):
if not isinstance(fid, in... | [
"xiaojieluoff@gmail.com"
] | xiaojieluoff@gmail.com |
788d74a0541595cac3c54e408e4d3d2a423cdc26 | 4b157ab5270ba430a6d7c1594ea41ceea89b7ab2 | /dataview/items/management/commands/dbimport.py | 202892882682d5ee3d0dae54641cf1e52de4ef88 | [
"MIT"
] | permissive | estin/pomp-craigslist-example | 6a06e0671b189b45d7f688583c052b3e23efd010 | c019686776ff2235f92ece9cea19874631a561b9 | refs/heads/master | 2021-01-10T12:07:30.035957 | 2017-11-21T19:55:40 | 2017-11-21T19:55:40 | 52,002,919 | 38 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | import logging
from django.db import transaction
from django.core.management.base import BaseCommand
from django.core.exceptions import ValidationError
from dataview.items.models import CraigsListItem
from craigslist.pipeline import KafkaPipeline
from craigslist.utils import get_statsd_client, METRIC_ITEMS_IMPORTED_K... | [
"tatarkin.evg@gmail.com"
] | tatarkin.evg@gmail.com |
842b53f556e40e7ee2ce73b314af3c48d09ff59a | 44b87d9faad99d542914c35410ba7d354d5ba9cd | /1/examples/srearch_a_letter.py | db0f0ae9e3b4cbc2f8eb95912e5afe20241d5f02 | [] | no_license | append-knowledge/pythondjango | 586292d1c7d0ddace3630f0d77ca53f442667e54 | 0e5dab580e8cc48e9940fb93a71bcd36e8e6a84e | refs/heads/master | 2023-06-24T07:24:53.374998 | 2021-07-13T05:55:25 | 2021-07-13T05:55:25 | 385,247,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | x=input("enter the word ")
y=input("enter the letter you want to find ")
flag=0
for i in x:
if i in y:
flag=1
if flag==1:
print("entered word found ")
else:
print("not found") | [
"lijojose95@gmail.com"
] | lijojose95@gmail.com |
26c4e08d795fe5047e6277af93086c7796f3774d | f152d89efeebc5c00c54cf7819f539aec920aa2d | /reviewboard/webapi/decorators.py | 02674e04c176a61adb67121de06093f144b15995 | [
"MIT"
] | permissive | yang/reviewboard | c1c0cee37133004c2857ed6daac136697baa92dd | b893e0f28bc5d561124aaf09bc8b0e164f42c7d5 | refs/heads/master | 2021-01-18T11:04:37.694088 | 2010-11-27T00:09:27 | 2010-11-30T00:48:14 | 1,115,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | from django.http import HttpRequest
from djblets.siteconfig.models import SiteConfiguration
from djblets.util.decorators import simple_decorator
from djblets.webapi.core import WebAPIResponse, WebAPIResponseError
from djblets.webapi.decorators import webapi_login_required, \
webapi... | [
"chipx86@chipx86.com"
] | chipx86@chipx86.com |
f238d04a62268f719a0026d5246ae6552ad08c38 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/arc/025a.py | eca2c9978b657cb946922fb4f5f37b40b06e0566 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | D = list(map(int, input().split()))
L = list(map(int, input().split()))
ans = 0
for d, l in zip(D, L):
ans += max(d, l)
print(ans) | [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
d130c48d189ce6a8f79f9a900a9f651c67482890 | 37fd103f6b0de68512e3cb6098d0abb9220f5a7d | /Python from scratch/027_inclass_reg_ip.py | 65e07f0162c6062580b2d1a4687b6a61fbc22782 | [] | no_license | FlyingMedusa/PythonELTIT | 720d48089738b7e629cad888f0032df3a4ccea2c | 36ab01fc9d42337e3c76c59c383d7b1a6142f9b9 | refs/heads/master | 2020-09-11T18:17:17.825390 | 2020-04-21T16:38:03 | 2020-04-21T16:38:03 | 222,150,066 | 0 | 0 | null | 2020-04-21T16:38:04 | 2019-11-16T19:37:33 | Python | UTF-8 | Python | false | false | 471 | py | import re
words = ["eloelo320", "blah@", "192.168.0.1", "asd.asd.20"]
pattern = "^\w+$" # or (longer): "^([A-Z]|[a-z]|(\d))*$"
id_pattern = "^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$"
for word in words:
match = re.search(pattern, word)
if match:
print("matched")
else:
print("not matched")
p... | [
"sleboda.m98@gmail.com"
] | sleboda.m98@gmail.com |
acb51fce28782b1e64bb7fd83ce39d45260ae110 | 175d6cff12514da71aafef6b9ff48dd56a87db2d | /alveus/widgets/customized_menu.py | 76d6dbee02fa885e376a161e4dfb7dd9543930bf | [
"MIT"
] | permissive | FrederikLehn/alveus | d309eea98bd36f06709c55a18f0855f38b5420a9 | 71a858d0cdd8a4bbd06a28eb35fa7a8a7bd4814b | refs/heads/main | 2023-06-26T02:29:59.236579 | 2021-07-30T11:07:17 | 2021-07-30T11:07:17 | 391,029,935 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,342 | py | import wx
from wx.lib.agw.flatmenu import FMRendererMgr, FMRenderer, FlatMenu, FlatMenuItem
from wx.lib.agw.flatmenu import FMRendererXP, FMRendererMSOffice2007, FMRendererVista
from wx.lib.agw.artmanager import ArtManager, DCSaver
import _icons as ico
class CustomFMRendererMgr(FMRendererMgr):
def __ini... | [
"noreply@github.com"
] | FrederikLehn.noreply@github.com |
2fdec4c0f0f3dab907001d6f75807c4de79d3ff9 | 6f1cadc49bc86ea49fd32c64397bfecfd9666f19 | /C2/pulsar/implant/migrations/0002_auto_20150827_1851.py | ca655a540d156e556deace4637d8d630fee4b98d | [
"BSD-3-Clause"
] | permissive | killvxk/Pulsar-1 | f073c2273e9d4040acc3842963b018d920e78aa4 | d290c524674eabb0444ac8c0b1ee65ea1ad44f1f | refs/heads/master | 2020-06-24T22:38:25.551118 | 2019-07-27T03:45:25 | 2019-07-27T03:45:25 | 199,111,787 | 0 | 0 | null | 2019-07-27T03:44:52 | 2019-07-27T03:44:51 | null | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('implant', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='implant',
name='uuid'... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
fa8beb3f3c45d810e244afa3a207660de72aae1e | c829a8654d4adcba7944f1aa48c2643c2a2a2803 | /sony_utils/split.py | 64caf82d8c17086980dca4436a62a0b48901e234 | [] | no_license | muma378/Utils | d85390f84226b63474c815285acb6ce351ac0c22 | a6ae14f86de360bdabd9fa7f39cd8b05bbd505fb | refs/heads/master | 2020-05-21T13:35:51.908847 | 2017-02-05T06:11:45 | 2017-02-05T06:11:45 | 48,424,512 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import os
import sys
import subprocess
import datetime
CMD_TEMPLATE = "cut.exe {src_wav} {dst_wav} {start} {end}"
NAME = "emotion_F_"
DECODING = 'gb2312' if os.name=='nt' else 'utf-8'
# split the wav as the information provided by several columns
def split_by_cols(cols_file, src_wav, dst_dir='.', name_prefi... | [
"muma.378@163.com"
] | muma.378@163.com |
d032794e6b78ff7d03d03deda884cfbf3e772619 | caa175a933aca08a475c6277e22cdde1654aca7b | /acondbs/db/__init__.py | 5656bd250d55b0a328a26007e1eeb74511f46e9f | [
"MIT"
] | permissive | simonsobs/acondbs | 01d68ae40866461b85a6c9fcabdfbea46ef5f920 | d18c7b06474b0dacb1dcf1c6dbd1e743407645e2 | refs/heads/main | 2023-07-07T04:33:40.561273 | 2023-06-28T22:08:00 | 2023-06-28T22:08:00 | 239,022,783 | 0 | 1 | MIT | 2023-06-26T20:36:39 | 2020-02-07T21:07:46 | Python | UTF-8 | Python | false | false | 1,054 | py | """SQLAlchemy and DB related
This package contains functions, classes, and other objects that are
related to SQLAlchemy and the DB except ORM model declarations.
"""
from pathlib import Path
from flask import Flask
from flask_migrate import Migrate
from .cmds import (
backup_db_command,
dump_db_command,
... | [
"tai.sakuma@gmail.com"
] | tai.sakuma@gmail.com |
fd78af3570754694ae18160dcad79b077bc0eeb9 | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Dbase/TableBrowser/dbview.py | 9975899912c220e9ca0a023de57601b57da0cc5b | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | ##################################################################
# view any existing shelve directly; this is more general than a
# "formtable.py shelve 1 filename" cmdline--only works for Actor;
# pass in a filename (and mode) to use this to browse any shelve:
# formtable auto picks up class from the first instance ... | [
"zui"
] | zui |
45d7bb9e577d90e6669bedad91fe02a0067a2061 | 41cd1bcff0166ed3aab28a183a2837adaa2d9a07 | /allauth/account/decorators.py | eb906aad176d794c9e8a3407a9d1495c7ae1d76d | [
"MIT"
] | permissive | thomaspurchas/django-allauth | 694dde8615b90cd4768e7f9eda79fdcf6fe3cdb6 | d7a8b9e13456180648450431057a206afa689373 | refs/heads/master | 2022-02-04T03:18:25.851391 | 2013-05-20T11:26:55 | 2013-05-20T11:26:55 | 7,754,028 | 1 | 0 | MIT | 2022-02-01T23:04:02 | 2013-01-22T14:44:56 | Python | UTF-8 | Python | false | false | 1,627 | py | from django.contrib.auth.decorators import login_required
from django.contrib.auth import REDIRECT_FIELD_NAME
from django.shortcuts import render
from .models import EmailAddress
from .utils import send_email_confirmation
def verified_email_required(function=None,
login_url=None,
... | [
"raymond.penners@intenct.nl"
] | raymond.penners@intenct.nl |
3397fdf03555cbfe28cc3fed54c3f4f02c8e6c2b | 091155389673325cfe8b0da3dc64c113f1ded707 | /playground/segmentation/coco/solo/solo.res50.fpn.coco.800size.1x/config.py | 66f251fa6baf96372bfaf789658e15cbd0595e82 | [
"Apache-2.0"
] | permissive | Megvii-BaseDetection/cvpods | 7b7c808257b757d7f94d520ea03b370105fb05eb | 2deea5dc659371318c8a570c644201d913a83027 | refs/heads/master | 2023-03-22T00:26:06.248877 | 2023-03-10T10:05:26 | 2023-03-10T10:05:26 | 318,124,806 | 659 | 91 | Apache-2.0 | 2023-03-10T10:05:28 | 2020-12-03T08:26:57 | Python | UTF-8 | Python | false | false | 1,606 | py | import os.path as osp
from cvpods.configs.solo_config import SOLOConfig
_config_dict = dict(
MODEL=dict(
WEIGHTS="detectron2://ImageNetPretrained/MSRA/R-50.pkl",
),
DATASETS=dict(
TRAIN=("coco_2017_train",),
TEST=("coco_2017_val",),
),
SOLVER=dict(
LR_SCHEDULER=dict... | [
"wangfeng02@megvii.com"
] | wangfeng02@megvii.com |
73199b52b898b470c3bb8e2c68de555ebab6a237 | 354ff630d5eed81ffe67be28dd82b990a733a1cd | /pysim/information/histogram.py | b5c2e51802a07e918c9766dcc879d029036a221c | [
"MIT"
] | permissive | superpig99/pysim | 22ba1521c0002f815f5d074114109461e0cc35fc | 4cd5f0987d3cbdeba1c932ca845df1b0bd9d46bf | refs/heads/master | 2023-05-15T05:30:01.272708 | 2020-04-02T14:25:35 | 2020-04-02T14:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | from typing import Union, Optional, Dict
import numpy as np
from scipy import stats
def hist_entropy(
X: np.ndarray,
bins: Union[str, int] = "auto",
correction: bool = True,
hist_kwargs: Optional[Dict] = {},
) -> float:
"""Calculates the entropy using the histogram of a univariate dataset.
Opt... | [
"emanjohnson91@gmail.com"
] | emanjohnson91@gmail.com |
6bd7da921ee4e5f2c38d8dd8832742960949e196 | caac09a412ed9783e31e6254ba937d2ff1495dc8 | /test/calculator_tests.py | 974b8a61d0acd5e288c2f2b26d39039e3047ccc2 | [
"MIT"
] | permissive | ace-racer/lint-ut-circleci | c01095e9e41137a80499a03a81075ec86b4a9862 | f1d6b43f97b5146c4a168636d8517a8d02a3b21e | refs/heads/master | 2020-08-29T07:15:51.532944 | 2019-10-28T05:30:34 | 2019-10-28T05:30:34 | 217,963,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | import unittest
from calculator import Calculator
class CalculatorTests(unittest.TestCase):
def test_add(self):
calculator = Calculator()
self.assertEqual(calculator.add(10, 20), 30)
def test_subtract(self):
calculator = Calculator()
self.assertEqual(calculator.subtract(1... | [
"anuragchatterjee92@gmail.com"
] | anuragchatterjee92@gmail.com |
6a5cafcf6f8b670c1c3a830f0502074d89470102 | 0dfc473870552ac9384a8b24e96046728a42f6ed | /utest/model/test_control.py | 1a17f6adb5d948f24ea2250696f2a05d093168e7 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | rmf/robotframework | fecb4821fd308d107ae94ee3077a2d968ad9163d | a26cd326d1a397edc56993c453380dcd9b49e407 | refs/heads/master | 2023-09-03T07:04:30.300003 | 2021-11-16T11:01:32 | 2021-11-16T11:01:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | import unittest
from robot.model import For, If, IfBranch, TestCase
from robot.utils.asserts import assert_equal
IF = If.IF
ELSE_IF = If.ELSE_IF
ELSE = If.ELSE
class TestFor(unittest.TestCase):
def test_string_reprs(self):
for for_, exp_str, exp_repr in [
(For(),
'FOR I... | [
"peke@iki.fi"
] | peke@iki.fi |
29c48053784a6f6b40a6b5ba0c848c3ad67b2000 | 420eecae12598477a4005026a250a94bb872ef81 | /DAGMan/setup.py | 6c6ab5acc87dbf616290a6a869c1212b3cdc414c | [] | no_license | chadfreer/submit-examples | c65da1ebf7b6aee9b20a30a4d6b48a30bd02e1c1 | cc416b30c7ff7f133e7d3cd69854886a99e3fc91 | refs/heads/main | 2023-07-08T12:34:36.267389 | 2021-08-18T13:56:04 | 2021-08-18T13:56:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | #!/usr/bin/env python
cwd = os.getcwd()
condor_script = cwd+'/submit.condor'
retries = 2
njobs = 3
submit_script = cwd+'/scratch/dag.submit'
f_out = open(submit_script,'w')
for job_num in range(njobs):
outfile_name = 'outfile_'+str(job_num)+'A.txt'
outfile_loc = cwd+'/output/'
f_out.write("JOB\tjob" + str(job_n... | [
"paus@mit.edu"
] | paus@mit.edu |
7d8fb50e7ee7527432b24d8fb50d44b1c35dfd89 | 74482894c61156c13902044b4d39917df8ed9551 | /test/test_address_coins_transaction_confirmed_data_item_mined_in_block.py | fe17c1e565968234e57b107948c613cf49feb8da | [
"MIT"
] | permissive | xan187/Crypto_APIs_2.0_SDK_Python | bb8898556ba014cc7a4dd31b10e24bec23b74a19 | a56c75df54ef037b39be1315ed6e54de35bed55b | refs/heads/main | 2023-06-22T15:45:08.273635 | 2021-07-21T03:41:05 | 2021-07-21T03:41:05 | 387,982,780 | 1 | 0 | NOASSERTION | 2021-07-21T03:35:29 | 2021-07-21T03:35:29 | null | UTF-8 | Python | false | false | 1,446 | py | """
CryptoAPIs
Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei... | [
"kristiyan.ivanov@menasoftware.com"
] | kristiyan.ivanov@menasoftware.com |
aac20397a75eddaa76c1781124bc4879759427c2 | b222a5b5a84ce5d4fa0ddb084cffd1619a84a17c | /sequence_equation/sequence_equation.py | 7a5ca7223035ab0aec3fa4aea0a2b337cc528cbd | [] | no_license | unabl4/HR | a51a5d461b3d126e1021646b9f210e099b8627b3 | 1aaf96734b8845c911d20a4955d3ffd64a2d16b9 | refs/heads/master | 2021-04-05T23:55:27.202440 | 2018-11-04T22:44:46 | 2018-11-04T22:44:46 | 125,117,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # https://www.hackerrank.com/challenges/permutation-equation/problem
#!/bin/python3
# Complete the permutationEquation function below.
def permutationEquation(p):
m = {}
for a,b in enumerate(p):
m[b] = a+1
return [m[m[x+1]] for x in range(len(p))]
n = int(input())
p = list(map(int, input... | [
"unabl4@gmail.com"
] | unabl4@gmail.com |
b0654c2a2d79501a23167110aa08c91d2f74bc55 | ff99c677aba11e27c252f773b52cd54f5de79279 | /ctt-server/openapi_server/models/test_artifact.py | eb26e77d966f8b9e136f61f7fd8c85e4776ebb27 | [
"Apache-2.0"
] | permissive | radon-h2020/radon-ctt | b7eeb82f59e36e2a258d0a2ba9cd9483eb3dd247 | 97fcf5e800a0129d24e119b430d94f07ca248ba9 | refs/heads/master | 2023-01-04T23:44:49.611599 | 2021-09-15T15:34:41 | 2021-09-15T15:34:41 | 235,379,642 | 0 | 7 | Apache-2.0 | 2022-12-27T15:56:38 | 2020-01-21T15:48:45 | Python | UTF-8 | Python | false | false | 5,920 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server import util
class TestArtifact(Model):
"""NOTE: This class is auto generated by OpenAPI Ge... | [
"duellmann@iste.uni-stuttgart.de"
] | duellmann@iste.uni-stuttgart.de |
149ff803cf2e12675ab01b204bcf549300d50aea | 0e1a0329e1b96405d3ba8426fd4f935aa4d8b04b | /base/tests/test_create_free_client.py | 33cbc04a108ef50da4ffb8fda7a8f0709f6032c5 | [] | no_license | ugik/Blitz | 6e3623a4a03309e33dcc0b312800e8cadc26d28c | 740f65ecaab86567df31d6a0055867be193afc3d | refs/heads/master | 2021-05-03T20:15:20.516014 | 2015-03-11T12:33:34 | 2015-03-11T12:33:34 | 25,015,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,535 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | [
"georgek@gmail.com"
] | georgek@gmail.com |
29dc5b8d43fb5302a1441222a19a7d9099bcf929 | 8ce0fd5e5c5b858fa24e388f2114885160421c03 | /python/netuse/net_use.py | 1fd08a9bcb6cb202b36976078d0b840d73d473a4 | [] | no_license | kong-ling/scripts | 266e9975ae0156d6fdddf43b8f1d7ee20469b388 | 3c41c49646358d46871c8fd8ebe1ba52bdea046c | refs/heads/master | 2021-01-10T08:29:34.772634 | 2020-01-03T09:04:57 | 2020-01-03T09:04:57 | 43,275,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import os
import sys
import subprocess
p = subprocess.Popen('net use',
stdout = subprocess.PIPE,
stdin = subprocess.PIPE)
print(type(p))
for drv in p.stdout.readlines():
print(drv.strip())
| [
"kong.ling@outlook.com"
] | kong.ling@outlook.com |
bfc4a81a2576286e533d2b117dd711bc3d73d013 | 3c27b86f0165ab24e6b04d505e8471e032594f0b | /pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGL/GLES2/EXT/shadow_samplers.py | 119ce82880ccfe3b97741cc729ccd3611e990b3f | [
"LicenseRef-scancode-warranty-disclaimer",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LGPL-2.1-or-later",
"GPL-3.0-only",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"MIT"
] | permissive | alexus37/AugmentedRealityChess | 8b9ccdfffc8aee93a86a44b8ef53c034ec6a10d1 | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | refs/heads/master | 2020-12-24T13:29:21.967833 | 2020-02-27T09:38:50 | 2020-02-27T09:38:50 | 31,264,034 | 1 | 1 | MIT | 2020-02-27T09:38:52 | 2015-02-24T14:36:34 | Python | UTF-8 | Python | false | false | 774 | py | '''OpenGL extension EXT.shadow_samplers
This module customises the behaviour of the
OpenGL.raw.GLES2.EXT.shadow_samplers to provide a more
Python-friendly API
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/shadow_samplers.txt
'''
from OpenGL import platform, co... | [
"alexlelidis@gmx.de"
] | alexlelidis@gmx.de |
fa7e40b0bb754bc7b775b514c47ad6387e9aded8 | 1ecb394b10e9622a5a5d8845b44e4585f464d42e | /nncp-rpc/lib/logic/Ticket/jl.py | 6eba7a4aba23fda0584343d0701709d8cb297dec | [] | no_license | dragonflylxp/lottory | 7ec28d196f58692d9d417aa5d6963c182afe260a | b04f115df325a58148dc19d7cdfc21b28892a6a1 | refs/heads/master | 2020-04-28T08:53:09.007092 | 2020-04-17T10:50:41 | 2020-04-17T10:50:41 | 175,145,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | #encoding=utf-8
import MySQLdb
import traceback
import define
from dbpool import db_pool
from util.tools import Log
from common.dbs import BaseModel, access
from baseticket import BaseTicket
logger = Log().getLog()
class JlTicket(BaseTicket):
def __init__(self):
super(JlTicket, self).__init__(47)
@... | [
"noreply@github.com"
] | dragonflylxp.noreply@github.com |
54eef6b92d0dea189cce79be2163407619b9dcff | f85cc3fb482f1b71e7a749e1bcdbe90ba78fd059 | /swap_every_two_linked_list.py | 382cd105924360af622ba95190ca1d4012b07495 | [] | no_license | shan-mathi/InterviewBit | c94e091f728b9d18d55e86130756824a3637a744 | 6688e4ff54d56cf75297bb72ce67926b40e45127 | refs/heads/main | 2023-06-29T10:43:29.712472 | 2021-08-05T19:06:53 | 2021-08-05T19:06:53 | 364,321,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param A : head node of linked list
# @return the head node in the linked list
def swapPairs(self, A):
if A is None or A.next is None:
ret... | [
"noreply@github.com"
] | shan-mathi.noreply@github.com |
b5fca79b1608f0797b4b9d9f43d800951d1a52d8 | d4c024cc1330aa86582e0e3f25d5c0f76a9ccbe0 | /align/predict.py | 2f6ebbfb812250d45681908e7d093c5c0b37572c | [] | no_license | jeehyun100/insta_crawling | 464d5a90a614ed4aab1ca28566ad87cbda279447 | 39ada39513bc3655adc2e624c786cc6fd8473a7e | refs/heads/master | 2021-09-07T15:41:57.013861 | 2018-02-25T09:32:36 | 2018-02-25T09:32:36 | 118,861,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,797 | py | import os
import cv2
import numpy as np
import tensorflow as tf
from scipy import misc
import align.detect_face as detect_face
#from facenet_tf.src.common import facenet
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
import datetime
import dlib
from imutils.face_utils import rect_to_bb
import... | [
"intwis100@naver.com"
] | intwis100@naver.com |
0723e9d3c2f3ed3348f8962f73db031393fd5949 | c59738ddfb08134af01d75255c4469071a1e135e | /002_Python_data_analysis_from_entry_to_master/ch10_Numpy科学计算库/02_数组的操作_分片_索引_拼接/005_二维数组_水平_竖直分割split.py | 54eb1c3acdf6b7d1c6d0d1128504a00f3cc4eed3 | [] | no_license | FelixZFB/Python_data_analysis | 371a8460da79e8fdb30b10c02b662419b62a5998 | 62f018d88d8454afe65980efd8d771ac8691956a | refs/heads/master | 2020-05-20T14:46:00.606684 | 2020-02-04T14:25:20 | 2020-02-04T14:25:20 | 185,629,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # -*- coding:utf-8 -*-
import numpy as np
# 生成两个形状一样的二维数组
a = np.arange(16).reshape(4, 4)
print(a)
print("*" * 50)
# 水平竖直分割是拼接的反操作
# 竖直分割: 以行分割
# 水平分割: 以列分割
# 竖直分割,指定被分割为几个数组,数要被整除
b = np.vsplit(a, 2)
print(b)
print("*" * 50)
# 水平分割
c = np.hsplit(a, 2)
print(c)
print("*" * 50)
# 也可以直接使用split函数,指定轴号0,作用于列,以行分割,竖直分... | [
"18200116656@qq.com"
] | 18200116656@qq.com |
b0000f65f8955a9141b9c9455ff591324ae8ec6d | 6b183b67944b169048a930e34608925fb9abdc3e | /xicam/plugins/imagemixinplugin.py | 66f951c285c0e0940ac64a45eb590950abeb7fcb | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause-LBNL"
] | permissive | ihumphrey/Xi-cam | cef31bba712ebf6d330402b9a7cc24d3d096e2b8 | a033a97c4dac55221167d9c4e914c65e835f015a | refs/heads/master | 2022-05-12T22:10:24.970713 | 2021-05-12T22:29:08 | 2021-05-12T22:29:08 | 190,625,609 | 0 | 0 | NOASSERTION | 2019-06-06T17:52:35 | 2019-06-06T17:52:34 | null | UTF-8 | Python | false | false | 509 | py | """
Nothing useful here!
Why?
Because with the PluginType Plugin, we need to register the SnifferPlugin as an entrypoint for the manager to
collect them. In this case, the only meaningful part is the name of the entrypoint, not what it points to. Of course,
it has to point to something, so...
"""
from .plugin import Pl... | [
"ronpandolfi@gmail.com"
] | ronpandolfi@gmail.com |
bc7c9459c0f70e88e0dde36873b792973860a896 | 1a24def8879972f21d846ffb3813632070e1cf12 | /Chapter06/0602fib-func.py | 79885098128099a23319588b0f10e18295f92798 | [] | no_license | mushahiroyuki/beginning-python | 03bb78c8d3f678ce39662a44046a308c99f29916 | 4d761d165203dbbe3604173c404f70a3eb791fd8 | refs/heads/master | 2023-08-16T12:44:01.336731 | 2023-07-26T03:41:22 | 2023-07-26T03:41:22 | 238,684,870 | 5 | 4 | null | 2023-09-06T18:34:01 | 2020-02-06T12:33:26 | Python | UTF-8 | Python | false | false | 659 | py | #@@range_begin(list1) # ←この行は無視してください。本文に引用するためのものです。
#ファイル名 Chapter06/0602fib-func.py
def fibs(num):
result = [0, 1]
for i in range(num-2):
result.append(result[-2] + result[-1])
return result
#@@range_end(list1) # ←この行は無視してください。本文に引用するためのものです。
#実行
#@@range_begin(list2) # ←この行は無視してください。本文に引用するた... | [
"hmusha@gmail.com"
] | hmusha@gmail.com |
548eab73bdde0f861d5c66edaeff558f9c6362e0 | 475d1b83b77e2730b53722f0d8d11b070f97018a | /authapp/migrations/backup/0015_auto_20210226_2036.py | f7748376c6cb26aa40cc60e4db0e3f89b135edda | [
"MIT"
] | permissive | Gwellir/my-region | b651284ee4d4ec7ec892bb78a7ce3444c833d035 | baacb7f54a19c55854fd068d6e38b3048a03d13d | refs/heads/main | 2023-04-20T17:31:33.040419 | 2021-05-17T13:35:38 | 2021-05-17T13:35:38 | 336,533,029 | 0 | 1 | MIT | 2021-05-17T13:35:39 | 2021-02-06T12:31:08 | Python | UTF-8 | Python | false | false | 591 | py | # Generated by Django 3.1.6 on 2021-02-26 17:36
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('authapp', '0014_auto_20210226_2033'),
]
operations = [
migrations.AlterField(
... | [
"gwellir@gmail.com"
] | gwellir@gmail.com |
dccb5669c5b88153b3e54fa816eb2c14f67647eb | aa88548d729211428b3d5d7cfb9c3ba5881e168a | /resilient-sdk/tests/unit/test_cmds/test_dev.py | e757157a1b67107f6abd07b6898790070841f922 | [
"MIT"
] | permissive | svetterIO/resilient-python-api | 784cb83aaff353e8aa6ce0000b241a693977b5b9 | d89440ccee621cb4268ee8ebb350e47e7c9ee26b | refs/heads/master | 2023-08-31T22:15:27.588822 | 2021-10-13T13:15:12 | 2021-10-13T13:15:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,733 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2010, 2020. All Rights Reserved.
import sys
import os
import shutil
import pytest
from resilient_sdk.util import package_file_helpers as package_helpers
from resilient_sdk.util.sdk_exception import SDKException
from resilient_sdk.cmds import base_... | [
"shane.curtin@ie.ibm.com"
] | shane.curtin@ie.ibm.com |
57ec71f8f366f169baa43555a895ff8842a42839 | c3a3beda6fe3a9bbd5b240477f542a46dd92823a | /functions/TH/08_keyword_args.py | c76f034292ded2cad08e665202843d5d48be93cc | [] | no_license | nfarnan/cs001X_examples | 2e64955b705c8ac9c4319becf6344d36b9560e78 | 80b612249fa97ff685f345582f184d57f94bff8e | refs/heads/master | 2020-12-11T14:06:00.890074 | 2020-04-14T19:41:02 | 2020-04-14T19:41:02 | 209,681,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | def kw_test(a=1, b=2):
print(a, b)
kw_test()
kw_test(5, 10)
kw_test(5)
kw_test(b=10)
# this will error
#kw_test(5, 10, 20)
| [
"nlf4@pitt.edu"
] | nlf4@pitt.edu |
a098ada26a3eadfefcb12e2b1491533b9979db93 | 49e72df481bec1501202d7411a55b765c33355ba | /luminar project/functional_programming/list_comprension.py | c1b8cb686c667cb27c47cdcc0d73f8fa7a8b1deb | [] | no_license | JEENUMINI/pythonpgmsupdated | ae6d62bc58e1d44ba81a21637335140119c76869 | 4816ec24693034af36d4b76887d34c9a499f4cc8 | refs/heads/main | 2023-01-23T13:36:28.478938 | 2020-12-15T18:18:07 | 2020-12-15T18:18:07 | 321,749,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | lst=[1,2,3,4,5,6]
#squares
squares=[i*i for i in lst]
print(squares)
square2=[i**2 for i in lst]
print(square2)
#fetch even no from list
even=[i for i in lst if i%2==0]
print(even)
#list placement question
# task=[i+1 if i>5 else i-1 for i in lst]
# print(task)
task=[i+1 if i>5 else (i-1 if i<5 else i) for i in ls... | [
"mini13.1994@gmail.com"
] | mini13.1994@gmail.com |
c1ca9fea4aec41dcab2df0653fc3476363d164e9 | ecf6fe6aa87b2c3f041acc30fab11b0cafe3dd46 | /architecture_py/archi_v3_9.py | 096d9099c7efed8b00206453651eecc348653e9d | [] | no_license | antgratia/Memoire_code | 73c7806c4576c2e73e00d9a84b1063a2c8f6b559 | 2cdc1339ea24896a6628238f6467edff80f98166 | refs/heads/main | 2023-06-20T16:19:07.041464 | 2021-07-13T11:53:48 | 2021-07-13T11:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,178 | py |
import numpy as np
import os
from keras import backend as K
from tensorflow import keras
from tensorflow.keras.callbacks import EarlyStopping
from tensorflow.keras.models import Sequential, Model,load_model
from tensorflow.keras.layers import Input, Add, Dense, Activation, ZeroPadding2D, BatchNormalization, Flatten, C... | [
"antoine.gratia@student.unamur.be"
] | antoine.gratia@student.unamur.be |
c18790f1c9ea9c59ebe70356fd6eafa773ba7a3f | 32ef8621468095bf9c6dd912767cb97e9863dc25 | /algorithms/kaprekar-numbers.py | d4e44e799005d22fc4109908b61ebb0ee1e5e43c | [] | no_license | Seungju182/Hackerrank | 286f1666be5797c1d318788753245696ef52decf | 264533f97bcc8dc771e4e6cbae1937df8ce6bafa | refs/heads/master | 2023-08-17T22:49:58.710410 | 2021-10-25T09:40:46 | 2021-10-25T09:40:46 | 337,652,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'kaprekarNumbers' function below.
#
# The function accepts following parameters:
# 1. INTEGER p
# 2. INTEGER q
#
def kaprekarNumbers(p, q):
# Write your code here
lst = []
for num in range(p, q+1):
squared... | [
"tonysj@snu.ac.kr"
] | tonysj@snu.ac.kr |
9ca5ac9b0309eeb6b7ae197443b0c2be0b04ea69 | 59ac1d0f09ebfb527701031f3ab2cfbfb8055f51 | /soapsales/customers/signals.py | fc93f81a6adc77f22799cb456aa27326ae4c6f21 | [] | no_license | DUMBALINYOLO/erpmanu | d4eb61b66cfa3704bd514b58580bdfec5639e3b0 | db979bafcc7481f60af467d1f48d0a81bbbfc1aa | refs/heads/master | 2023-04-28T13:07:45.593051 | 2021-05-12T09:30:23 | 2021-05-12T09:30:23 | 288,446,097 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from django.db.models.signals import pre_save, post_save
from django.dispatch import receiver
import uuid
from django.db import transaction
from customers.models import Customer
@receiver(post_save, sender=Customer)
def post_save_create_customer_number_and_customer_number(sender, instance, created, **kwargs):
if ... | [
"baridzimaximillem@gmail.com"
] | baridzimaximillem@gmail.com |
33013989259884ab0ed306b1a8ffd64725df92f6 | 7c009d77bc0124b69abdd5bbf4d00ee00a6de881 | /process/migrations/0020_auto_20210606_1321.py | 23a2cb9944ae79b25e63e50e2bb315ad1da36180 | [] | no_license | Rajeshwari33/POProcess | 85598b3bb78c1bcc3bea583fcd106fd32eb97c99 | dde399029b01554f97988709688e14193a96cb1a | refs/heads/master | 2023-05-25T18:33:45.589819 | 2021-06-15T16:27:37 | 2021-06-15T16:27:37 | 367,557,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # Generated by Django 3.2 on 2021-06-06 07:51
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('process', '0019_mailcredentials'),
]
operations = [
migrations.AddField(
model_name='mailcredentials'... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.