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
8f900e4a807812f900ab27f85d1512892a94a0bb
6c189e7654d640dbf56c1481bb2439dbb3353402
/IPython/html/tests/test_external.py
00bf4d2b83b4b1bb4b56c956e748976034367ebb
[ "BSD-3-Clause" ]
permissive
zakandrewking/ipython
c39ba65ae8b7f323f061a591906144569a5a2e54
3e4d535825d60405fbe8d094b455848d59489cfa
refs/heads/master
2020-05-05T06:07:01.968458
2014-05-07T16:35:37
2014-05-07T16:35:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
712
py
"""Test external""" #----------------------------------------------------------------------------- # Copyright (C) 2014 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #--------------------------------...
[ "zaking17@gmail.com" ]
zaking17@gmail.com
7acea09ca55ff4c8012867d77a44b7dd143eaeab
1fe8d4133981e53e88abf633046060b56fae883e
/venv/lib/python3.8/site-packages/tensorflow/python/ops/distributions/kullback_leibler.py
b8d069bc79d770fe4193fbaf947981a0394075e9
[]
no_license
Akira331/flask-cifar10
6c49db8485038731ce67d23f0972b9574746c7a7
283e7a2867c77d4b6aba7aea9013bf241d35d76c
refs/heads/master
2023-06-14T16:35:06.384755
2021-07-05T14:09:15
2021-07-05T14:09:15
382,864,970
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:c0b7ee140903b8fcf26aad781cc776aa0a35cbc9f9efcc1f0b65c3e7318bcd6a size 7820
[ "business030301@gmail.com" ]
business030301@gmail.com
b019fa4745f8434c4b9e8976e21d77d5308b1bc0
2caa47f0bdb2f03469a847c3ba39496de315d992
/Contest/ABC040/c/main.py
9e5d1b18c640488baf621790690b16c39aaaaa6c
[ "CC0-1.0" ]
permissive
mpses/AtCoder
9023e44885dc67c4131762281193c24b69d3b6da
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
refs/heads/master
2023-03-23T17:00:11.646508
2021-03-20T12:21:19
2021-03-20T12:21:19
287,489,233
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
#!/usr/bin/env python3 n, *a = map(int, open(0).read().split()) INF = float("inf") dp = [INF] * n dp[0] = 0 for i in range(1, n): dp[i] = min(dp[i - p] + abs(a[i - p] - a[i]) for p in [1, 2]) print(dp[n - 1])
[ "nsorangepv@gmail.com" ]
nsorangepv@gmail.com
895c65d6ec11f32c7cb39d127fb4f1d7bfac65ce
84741b2103b702791076e65679b8ab89a132ac3a
/venelin/wsgi.py
7f14d3ffdae9d8169abafb8e6bacd57b5873b0c9
[]
no_license
Yaqdata/venko-django-site
97b78cbeaa9676fb3d230f47036746f1e8a342d6
eefdf12c9bc6a1873c4f451e1023d9ec691ce300
refs/heads/master
2021-01-15T12:14:33.573809
2013-12-09T22:12:06
2013-12-09T22:12:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "venelin.settings") # This application object is used by the development server # as well as any WSGI server configured to use this file. import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
[ "vkstoykov@gmail.com" ]
vkstoykov@gmail.com
b29308f7c9eaaf48077bcadb3fae69b3346e1ec1
33bae2dead37bcd22460e05de67531cfdacfcccb
/wis/urls.py
9f2729796b8a3e3576da8fb4661d1e77a77948b8
[]
no_license
wis-auralov/wis
5cfb0dba9c74d8d944b770d9b706de91fe01440d
40d2e187b448a42008b8db6f00cf17818fff2444
refs/heads/master
2021-01-20T07:36:10.174053
2017-04-29T18:46:41
2017-04-29T18:46:41
90,016,639
0
0
null
2017-05-02T09:43:22
2017-05-02T09:43:22
null
UTF-8
Python
false
false
848
py
from django.conf.urls import url, include from django.contrib import admin from clients.views import ClientList, ClientDetail, ClientDelete, ClientCreate, ClientScores, download_xlsx urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^client_detail/(?P<pk>[0-9]+)/$', ClientDetail.as_view(), name='client_d...
[ "lse1983@mail.ru" ]
lse1983@mail.ru
50da310865ec2f297b42c59a7c926b4a47b868cb
ddd5109d8ce1832423448d7f4932255118d56e36
/apps/gigs/models.py
5fffeca65ca75cda079ff70d879f2efb2adac79b
[]
no_license
amyth/gigzag
fe5b52677db2ba17083d4fdb059c0a12e6b3646d
1569fd40aa02c8b7921ad6a7f8f4e8b9ad4cf652
refs/heads/master
2021-01-21T07:03:28.397118
2017-02-27T12:01:02
2017-02-27T12:01:02
83,305,491
0
0
null
null
null
null
UTF-8
Python
false
false
3,769
py
import os import uuid from django.contrib.auth.models import User from django.contrib.contenttypes.fields import GenericRelation from django.core.files import File from django.db import models from django.db.models import Q from django_comments.models import Comment from liked.models import Like from moviepy.editor i...
[ "aroras.official@gmail.com" ]
aroras.official@gmail.com
aaa4bf02509e564a891d5a05ae8f6daf2a153f8a
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_7/grcdea001/question1.py
dba5df6eec999efec76cbe617d7ebd465574d3a3
[]
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
357
py
"""Program to print out a list of strings without duplicates, assignment 7 question 1 Dean Gracey 27 April 2014""" word=input("Enter strings (end with DONE):\n") words = [] while word!= "DONE": if not word in words: words.append(word) word = input("") print("\nUnique list:") ...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
054f71754967e78023ad8b59df9cff86e239ca30
eb71f3494fb00708e6d5e8c332f27c4026063339
/il2fb/ds/events/definitions/version.py
fac6811fd60d1fe2728ff87ecfeae3f0adc46026
[ "MIT" ]
permissive
IL2HorusTeam/il2fb-ds-events
dab5fc7ec0b1389c5fc1e975f9134e6ffe35bdee
fb71ffbce63ac1b3b3a27263250e021f9543ba9f
refs/heads/main
2023-02-01T16:29:18.565016
2020-12-22T17:53:45
2020-12-22T17:53:45
310,578,022
2
0
null
null
null
null
UTF-8
Python
false
false
223
py
VERSION_SUFFIX = "a0" VERSION_PATCH = "0" + (VERSION_SUFFIX or "") VERSION_MINOR = "0" VERSION_MAJOR = "1" VERSION_INFO = (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH) VERSION = ".".join([str(x) for x in VERSION_INFO])
[ "oblovatniy@gmail.com" ]
oblovatniy@gmail.com
240f1596019daf492691e74383b4bb693596ba6d
db9ff8accaa4d8d4a96d3f9122c0fdc5e83ea2a5
/openapi_client/model/ebay_offer_details_with_all.py
372ae213d24be2c51c800d49dfbb5a7dfa0310cb
[]
no_license
agtt/ebay-openapi-inventory
4754cdc8b6765acdb34f6b8f89b017ccbc6b1d2b
d990c26f16e811431892ac6401c73c4599c2d414
refs/heads/master
2023-06-17T10:53:43.204075
2021-07-14T18:32:38
2021-07-14T18:32:38
386,039,734
0
0
null
null
null
null
UTF-8
Python
false
false
29,026
py
""" Inventory API The Inventory API is used to create and manage inventory, and then to publish and manage this inventory on an eBay marketplace. There are also methods in this API that will convert eligible, active eBay listings into the Inventory API model. # noqa: E501 The version of the OpenAPI docum...
[ "csd@hotmail.com.tr" ]
csd@hotmail.com.tr
d1e5290787f370b38cb318a69f05a1d3326a3937
bbcae24e3726106d5e86cb2237f2b59177ade67a
/indico/indico.py
a50db692036f3b47bf211a0c73ae83245de7c5d3
[]
no_license
the16thpythonist/IndicoWp
beba497ba24d9dc6e90b02c9fe645810ad085236
86be5f7193ed65add4dae245ee288052a407c603
refs/heads/master
2021-05-01T19:24:28.254908
2018-03-06T07:04:45
2018-03-06T07:04:45
121,020,882
2
0
null
2018-02-11T19:03:32
2018-02-10T14:10:23
Python
UTF-8
Python
false
false
8,457
py
import IndicoWp.config as config import IndicoWp.indico.event as event import logging import requests import json import urllib.parse as urlparse # TODO: Make this better with making a response dict a current item and a dict query class IndicoEventRequestController: """ :ivar config: The config parser obje...
[ "jonseb1998@gmail.com" ]
jonseb1998@gmail.com
aa324cc4383ae2314514c934cf5ae4d5f72ade34
c7a31023a11b376e543e41b00212dc7eca07b386
/cryptofeed/kraken/kraken.py
5bb79d6c9f884c708f916bbad8370bd7e22906d4
[ "LicenseRef-scancode-warranty-disclaimer", "Python-2.0" ]
permissive
orens77/cryptofeed
5d2123f17745be6bf2eb7bf5a96547006e16d083
d155b30eadb015c7167141a3dbbb8d42af6ae4f0
refs/heads/master
2020-04-25T17:45:22.849820
2019-06-04T14:51:11
2019-06-04T14:51:11
172,960,015
0
0
NOASSERTION
2019-02-27T17:31:47
2019-02-27T17:31:46
null
UTF-8
Python
false
false
6,183
py
''' Copyright (C) 2017-2019 Bryant Moscon - bmoscon@gmail.com Please see the LICENSE file for the terms and conditions associated with this software. ''' import json import logging from decimal import Decimal import time from sortedcontainers import SortedDict as sd from cryptofeed.feed import Feed from cryptofeed....
[ "bmoscon@gmail.com" ]
bmoscon@gmail.com
dcb4c855cf299c37b70980412d0997e041832a97
3fb0ce33f00b96ae3808a32da44de3e887434afb
/.提出一覧/AtCoder/M-SOLUTIONSプロコンオープン2020/msol_D.py
57fa6ba1c8ac9cddfb25c897c2153a9acee8c49d
[]
no_license
Yukikazari/kyoupuro
ca3d74d8db024b1988cd0ff00bf069ab739783d7
343de455c4344dbcfa4524b492f7f6205c9db26f
refs/heads/master
2023-02-21T01:53:52.403729
2021-01-27T03:55:01
2021-01-27T03:55:01
282,222,950
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
N = int(input()) A = list(map(int, input().split())) money = 1000 kabu = 0 for i in range(len(A)-1): if kabu != 0: if A[i] >= A[i + 1]: money += kabu * A[i] kabu = 0 else: if A[i] < A[i + 1]: kabu = money // A[i] money -= kabu * A[i] if kabu !...
[ "haya_nanakusa793@yahoo.co.jp" ]
haya_nanakusa793@yahoo.co.jp
e70dabf76a8f2d14e74e6b2353114e4dafe9e649
adbcc8ff2249dc9906095bf894d2923b197f8af2
/examples/csj/s5/local/remove_pos.py
3e354475e35113bfcbd8497b2fc1cf5ff9e61663
[]
no_license
caochensi/neural_sp
de39d0919aeb6da28b90140be051c124f7efcc3f
019247ccae7df461f852c5130ea127e395d071dc
refs/heads/master
2020-04-15T14:49:52.408291
2019-01-06T10:52:36
2019-01-06T14:43:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2018 Kyoto University (Hirofumi Inaguma) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Remove POS tag.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import re...
[ "hiro.mhbc@gmail.com" ]
hiro.mhbc@gmail.com
bc9da59702741b477df186a1ee0522a1e21e0bf8
78144baee82268a550400bbdb8c68de524adc68f
/Production/python/Summer16v3/StealthSYY_2t6j_mStop-400_mN1-100_TuneCUEP8M1_13TeV-madgraphMLM-pythia8_cff.py
a29d647b952c42a887fa8cf0e932bea45b6f89b9
[]
no_license
tklijnsma/TreeMaker
e6989c03189b849aff2007bad22e2bfc6922a244
248f2c04cc690ef2e2202b452d6f52837c4c08e5
refs/heads/Run2_2017
2023-05-26T23:03:42.512963
2020-05-12T18:44:15
2020-05-12T18:44:15
263,960,056
1
2
null
2020-09-25T00:27:35
2020-05-14T15:57:20
null
UTF-8
Python
false
false
2,217
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ '/store/mc/RunIISummer16Mi...
[ "Alexx.Perloff@Colorado.edu" ]
Alexx.Perloff@Colorado.edu
629c1017d878bc2ddc0df3e3b6ff940ed56c9452
4b29c3e3c8a2cad5071a3fb2ea674253c6f0ef21
/pycharm/venv/Lib/site-packages/pip/_internal/network/session.py
e8e5ea5ba6ecb8483f2da8eda15aa5f4ea13066f
[]
no_license
yz9527-1/1YZ
a0303b00fd1c7f782b7e4219c52f9589dd3b27b7
5f843531d413202f4f4e48ed0c3d510db21f4396
refs/heads/master
2022-11-30T23:50:56.682852
2020-08-10T02:11:13
2020-08-10T02:11:13
286,354,211
0
0
null
null
null
null
UTF-8
Python
false
false
15,208
py
"""PipSession and supporting code, containing all pip-specific network request configuration and behavior. """ # The following comment should be removed at some point in the future. # mypy: disallow-untyped-defs=False import email.utils import json import logging import mimetypes import os import platform import sys ...
[ "2447025220@qq.com" ]
2447025220@qq.com
2b02015ba8e96f08cf871f37cd5331da7911e852
e9e433c57a7d73d848fbade5e354a8c31ff0ea87
/tests/test_subword_separation.py
43d1525eb175ddd755df02c966b5532c5a64d8f9
[ "Apache-2.0" ]
permissive
Joshua0128/codeprep
a7f99533e7b74e089fb66a3f10f6be59d4ca4b71
0f41307f7a9ad545e5ec0cc9552a0144328f2422
refs/heads/master
2023-07-09T13:07:33.094940
2021-04-21T18:08:30
2021-04-21T18:08:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,553
py
# SPDX-FileCopyrightText: 2020 Hlib Babii <hlibbabii@gmail.com> # # SPDX-License-Identifier: Apache-2.0 # import unittest # # from codeprep.bpepkg.bpe_encode import BpeData # from codeprep.parse.core import convert_text # from codeprep.parse.model.containers import SplitContainer # from codeprep.parse.model.numeric im...
[ "hlibbabii@gmail.com" ]
hlibbabii@gmail.com
eb940db047f8f17e8e5f77e6aba568932e282e75
f1624dc174a172aff3b6cf7b9c7d1f2505bb76ee
/code/plot_double_bar_tmp.py
ee014d0f52a5091ca582759f7a4d2e1f81e4de3e
[]
no_license
blxlrsmb/TrendMicro2014
5d0bf07a54e8f2123af06cd58beef36ad9cb007d
63894ede6bbfeb1ce62a5b64c56996dd53c6c2ce
refs/heads/master
2021-01-10T14:12:56.868967
2015-11-21T23:39:36
2015-11-21T23:39:36
46,638,621
0
0
null
null
null
null
UTF-8
Python
false
false
2,000
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # $File: plot_double_bar_tmp.py # $Date: Mon Aug 18 06:45:14 2014 +0800 # $Author: Xinyu Zhou <zxytim[at]gmail[dot]com> from sklearn.datasets import load_svmlight_file import matplotlib.pyplot as plt import numpy import sys from IPython import embed def process_data(X, ...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
a9c44935af9e748a670870274888deac52241fc7
c3865ab8c207ee58056be8eda7319acaa9a04654
/Plots/simple/SimpleBarPlot.py
4e5aa7de3779008ecd87c21d430eaf7f2ba2977f
[]
no_license
jonathanglima/Python
d42c21cb9030063f172c03efbb598a969db48539
43c53b6f20973c31ce95d2891293d344d655d377
refs/heads/master
2021-08-08T07:42:56.348207
2017-11-09T22:19:17
2017-11-09T22:19:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,092
py
# -*- coding: utf-8 -*- """ Created on Tue Jul 07 16:56:32 2015 Simple Bar plot function @author: Edward """ import numpy as np import matplotlib.pyplot as plt import matplotlib.font_manager as fm import os # global variables # fontname = 'C:/Users/Edward/Documents/Assignments/Scripts/Python/Plots/resource...
[ "cui23327@gmail.com" ]
cui23327@gmail.com
72d6334fff676e48b52f9b448c483d6a4750c874
524c17cbe94ee67babf817bad3b304e2573aa2da
/Lab4/func.py
12c785bd1737ed353c5e4ba959d5d126ed932708
[]
no_license
JoniNoct/python-laboratory
6707664fa58d6e0fcde8476f9670fcf9c312e830
551fdb128bcf113e72fd13ff7441455c830ecf45
refs/heads/master
2020-07-29T15:20:26.183289
2019-11-11T22:42:42
2019-11-11T22:42:42
209,859,702
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
def checkType(a): i = 1 if a == "int": while i == 1: try: v = int(input()) i += 1 except: print("Потрібно ввести число") return v elif a == "float": while i == 1: try: v = float(input(...
[ "tereshchenko.igor@gmail.com" ]
tereshchenko.igor@gmail.com
ca7dcb5b038ec85b1e09b2329b549221e8c3d1ad
c2544163e17fad9a4e5731bd1976bfc9db44f8bd
/reagent/net_builder/discrete_dqn/dueling.py
fc2fe4b2e4cb677386c517f34dfdc563b2f3b93f
[ "BSD-3-Clause" ]
permissive
zachkeer/ReAgent
52fb805576dc7b1465e35921c3651ff14cd9345e
3e5eb0391050c39b9d4707020f9ee15d860f28cb
refs/heads/master
2022-11-25T14:08:21.151851
2020-07-22T06:44:28
2020-07-22T06:45:48
281,907,350
1
0
BSD-3-Clause
2020-07-23T09:21:50
2020-07-23T09:21:49
null
UTF-8
Python
false
false
1,216
py
#!/usr/bin/env python3 from typing import List from reagent import types as rlt from reagent.core.dataclasses import dataclass, field from reagent.models.base import ModelBase from reagent.models.dueling_q_network import DuelingQNetwork from reagent.net_builder.discrete_dqn_net_builder import DiscreteDQNNetBuilder fr...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
e5384e5808f75faeb98b36e08e1fdf5188cd9ff4
301a7cb5d21808b4442f641ba4396fbd6c1da6f0
/dataclasses_serialization/serializer_base.py
9513f627a0877f7ae41e8c6862dc1a5fb057b84f
[ "MIT" ]
permissive
kitschen/python-dataclasses-serialization
5766b8010ffb3d8af7aa4925b00f733019ca4b2f
c0c4e4e037a01871dccb13c25478f35a9dfb7717
refs/heads/master
2022-05-30T06:13:23.474156
2020-02-18T17:12:52
2020-02-18T17:12:52
260,832,071
0
0
MIT
2020-05-03T05:05:06
2020-05-03T05:05:05
null
UTF-8
Python
false
false
7,635
py
from dataclasses import dataclass, fields, is_dataclass from functools import partial from typing import TypeVar, Union, Dict, List, get_type_hints from typing_inspect import is_union_type, get_origin, get_args from toolz import curry try: from typing import GenericMeta except ImportError: from typing import...
[ "madman.bob@hotmail.co.uk" ]
madman.bob@hotmail.co.uk
f0941a9ff0770700eaf5c789d61d647d34b3bcde
13a5a2ab12a65d65a5bbefce5253c21c6bb8e780
/dnainfo/skyline_chi/migrations/0007_auto_20161019_1408.py
61784f86a84c1613426e15ae6a744a2d42ba257a
[]
no_license
NiJeLorg/DNAinfo-CrimeMaps
535b62205fe1eb106d0f610d40f2f2a35e60a09e
63f3f01b83308294a82565f2dc8ef6f3fbcdb721
refs/heads/master
2021-01-23T19:28:12.642479
2017-05-11T06:04:08
2017-05-11T06:04:08
34,847,724
2
0
null
2016-11-25T15:56:14
2015-04-30T10:02:41
JavaScript
UTF-8
Python
false
false
2,612
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-10-19 18:08 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
[ "jd@nijel.org" ]
jd@nijel.org
9875fadcf6f959f0bd030c49d8153372772cbd1e
a7c4f8d4e101a4b3961419278809923a6ddbfde7
/connect.py
a69af0ebbc3139fa555aa28b47aa0bec1878cc76
[]
no_license
memonsbayu/phyton
5b7bfabc1a132d7c8ac6d057fbc7e8bb687ecff7
858966d11d95ff3fd829179abe1e349f2b84345f
refs/heads/master
2023-01-01T07:43:23.784410
2020-10-22T13:07:09
2020-10-22T13:07:09
306,339,910
1
0
null
null
null
null
UTF-8
Python
false
false
303
py
import mysql.connector def koneksi(): db = mysql.connector.connect( host="localhost", user="root", passwd="", database="sewa_alat_olahraga", autocommit=True ) if db.is_connected(): return db else: print ('DB disconnected!')
[ "you@example.com" ]
you@example.com
0b6b42e43e78681a0e3e98a62abf55692dd129ed
ad3011f4d7600eb1b436f1527e1b576910a64b56
/05_cwiczenia/01_podstawy/06_cwiczenie.py
ed2a29bfc6b92745932f9a079b0001d3a4bdde77
[]
no_license
pawel-domanski/python-basic
7a048c7de950d997492c11b4f07888f856908639
1adce694d58b4969f843cfc651d3e2a027a4f3f3
refs/heads/main
2023-03-21T12:55:22.097946
2021-03-06T09:54:09
2021-03-06T09:54:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
# -*- coding: utf-8 -*- """ Używając odpowiedniej metody połącz podane wyrazy symbolem '#': > sport > python > free > time Następnie wydrukuj do konsoli. Oczekiwany rezultat: sport#python#free#time """
[ "krakowiakpawel9@gmail.com" ]
krakowiakpawel9@gmail.com
87cec23de18905c57c19aafa9befa366d356508a
bab4f301ff7b7cf0143d82d1052f49e8632a210e
/1010. Pairs of Songs With Total Durations Divisible by 60.py
a0b93d4f53a519df6b31b2c79b16534f395f35f8
[]
no_license
ashish-c-naik/leetcode_submission
7da91e720b14fde660450674d6ce94c78b1150fb
9f5dcd8e04920d07beaf6aa234b9804339f58770
refs/heads/master
2020-04-05T05:12:03.656621
2019-06-08T17:30:22
2019-06-08T17:30:22
156,585,497
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
class Solution(object): def numPairsDivisibleBy60(self, time): """ :type time: List[int] :rtype: int """ hm = collections.defaultdict(int) count = 0 for x in time: # if x % 60 == 0: # count += 1 new = x % 60 ...
[ "ashishnaik121@gmail.com" ]
ashishnaik121@gmail.com
edcf513b1d1c7b3cec4fd78ec26e06b893ead73c
a9c5c6f6aed746cdfaa594db54d7a2d46e33f430
/LICENSE.md/windpred/rev.py
e654404ff6da9e277f6a2ebb1c776a14f88de152
[]
no_license
nyc1893/Python-Learning
a7b81d169c4678c199a61aa4c7d226ce927aa8d8
13bc6b8cc28c25df2730d9672d419cd57cab55d4
refs/heads/master
2023-07-20T23:08:38.164660
2023-07-06T14:35:29
2023-07-06T14:35:29
101,700,286
0
1
null
null
null
null
UTF-8
Python
false
false
4,785
py
import math import pandas as pd import numpy as np import statsmodels.api as sm # recommended import according to the docs import matplotlib.pyplot as plt from scipy.stats import genpareto # delta p are used import math import pandas as pd import numpy as np import matplotlib.pyplot as plt import timeit from sklearn....
[ "noreply@github.com" ]
nyc1893.noreply@github.com
4fa2ed4953655341861de67ea4bdc73d68fb9f5f
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/Examples/bokeh/charts/file/scatter_multi.py
0d60b5f6af7af7857ba99101beed2f2f5abe3f18
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
2,207
py
import pandas as pd from bokeh.charts import Scatter, output_file, show, vplot, hplot, defaults from bokeh.charts.operations import blend from bokeh.charts.utils import df_from_json from bokeh.sampledata.autompg import autompg as df from bokeh.sampledata.iris import flowers from bokeh.sampledata.olympics2014 import d...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
451dbc04f9f9a357113e55a6e8573541403d21aa
8ada05f8c41e2b238f1dad053d6abf66bc53f633
/1600~1699/1629.py
1db19048448ac5d342d57fec807edb6153a4b40b
[]
no_license
chulhee23/BaekJoon_Online_Judge
84ccd9f2223ea57ab305b9ee27dac0c7e8222df4
b1afcaaba63e49552363a003ff2be8a5878a78a7
refs/heads/master
2020-09-22T00:18:39.822112
2019-11-24T08:21:00
2019-11-24T08:21:00
224,983,873
0
1
null
2019-11-30T08:44:22
2019-11-30T08:44:21
null
UTF-8
Python
false
false
484
py
# 문제 # 자연수 A를 B번 곱한 수를 알고 싶다. # 단 구하려는 수가 매우 커질 수 있으므로 # 이를 C로 나눈 나머지를 구하는 프로그램을 작성하시오. # # 입력 # 첫째 줄에 A, B, C가 빈 칸을 사이에 두고 순서대로 주어진다. # A, B, C는 모두 2,147,483,647 이하의 자연수이다. # # 출력 # 첫째 줄에 A를 B번 곱한 수를 C로 나눈 나머지를 출력한다. print(pow(*map(int, input().split())))
[ "alstn2468_@naver.com" ]
alstn2468_@naver.com
a5d288adf3bf422f7a0fc81863207a92aadde21d
d9f52125601ec26f79202f0e912891b31b60ffc4
/오후반/Introduction/6_Write_a_function/6_JHW.py
c190540064743a984c2c22f1d8da69ea32296212
[]
no_license
YoungGaLee/2020_Python_coding-study
5a4f36a39021c89ac773a3a7878c44bf8b0b811f
b876aabc747709afa21035c3afa7e3f7ee01b26a
refs/heads/master
2022-12-12T13:34:44.729245
2020-09-07T04:07:48
2020-09-07T04:07:48
280,745,587
4
4
null
2020-07-22T03:27:22
2020-07-18T21:51:40
Python
UTF-8
Python
false
false
201
py
def is_leap(year): leap = False if year%400==0: leap = True if year==1992: leap = True # Write your logic here return leap year = int(input()) print(is_leap(year))
[ "noreply@github.com" ]
YoungGaLee.noreply@github.com
467d21c0b49dff3c3bce69d7006e14d3f82a3063
9dc00969cbb9ab462836c548927c0a471f8a9737
/05列表优化及去重/05-method1.py
bcb0163750b2b7f0ba3004ea8d561e79ec761c37
[]
no_license
wan230114/JUN-Python
ad2cb901881b3b6f07a7cdd42ac0ff2c86e8df56
3619c8e392c241bd1c9b57dbc16a1f2f09ccc921
refs/heads/master
2021-05-01T09:51:01.309505
2018-08-31T07:12:31
2018-08-31T07:12:31
121,096,578
0
0
null
2018-02-11T07:34:54
2018-02-11T07:15:42
null
UTF-8
Python
false
false
468
py
#!usr/bin/python row = open('row_list', 'r') clean = open('clean_list', 'w+') uni = open('uni', 'w') for line in row: new_line='' for line1 in line.strip(): if line1=='.':break new_line=new_line+line1 clean.write(new_line+'\n') print new_line cl...
[ "1170101471@qq.com" ]
1170101471@qq.com
f83748286858d4ca788884511300b237b5cf3cd0
eba4934e6af6ec85d286c336dbc2c0f27013110d
/mxnetseg/data/cityscapes.py
8bd95d8aab0fa9d8025b6819fd3934d769a7c0c9
[ "Apache-2.0" ]
permissive
jeou/MXNetSeg
a87c349a12c7c2a77018628e5a231cf8624a5e1c
8a700aa2c2d939fce11b52bde7291ef231c9bfaa
refs/heads/master
2022-10-21T18:24:18.864007
2020-06-14T10:10:18
2020-06-14T10:10:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,758
py
# coding=utf-8 # Adapted from: https://github.com/dmlc/gluon-cv/blob/master/gluoncv/data/cityscapes.py import os import mxnet as mx import numpy as np from PIL import Image from gluoncv.data.segbase import SegmentationDataset class CitySegmentation(SegmentationDataset): NUM_CLASS = 19 def __init__(self, roo...
[ "bebdong@outlook.com" ]
bebdong@outlook.com
bce858e5ade4868147186f01125ce9ce7fdd7da8
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/6kseWBaSTv6GgaKDS_13.py
450ef2b91638e545ce5a4241819dcf90166b90f5
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
def next_letters(s): if s == '' : return 'A' elif s.count('Z') == len(s) : return (len(s)+1)*'A' else : z = 0 # number of z at the end of our string while s[::-1][z] == 'Z' : z += 1 pA, pZ = s[::-1][:z:-1], s[-z-1:] # splitting into 2 parts : constant/changed ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
a63169009d6cf39d1f227d2d919b8ec6de5bfdb6
f5863cf378bce80d3aa459941dff79ea3c8adf5d
/SWEA/SW_TEST/SWEA_1949/SWEA_1949.py
fb26396032d958d97a1532f3d9ec7a520523d8a2
[]
no_license
Taeg92/Problem_solving
815c13ae7895708948482eeb05411322be00ac12
15c0fe0eda4f77d974451777cb01d10882d8aaa9
refs/heads/master
2021-11-18T22:03:21.727840
2021-09-06T14:21:09
2021-09-06T14:21:09
235,335,532
0
0
null
null
null
null
UTF-8
Python
false
false
1,159
py
# Problem [1949] : 등산로 조정 import sys sys.stdin = open('input.txt') dx = (-1, 0, 1, 0) dy = (0, 1, 0, -1) def DFS(x, y, d, k): global m if m < d: m = d C[x][y] = 1 for i in range(4): nx = x + dx[i] ny = y + dy[i] if 0 <= nx < N and 0 <= ny < N and not C[nx][ny]: ...
[ "gtg92t@gmail.com" ]
gtg92t@gmail.com
cde4c54c06cb50520ce9a6332ddf90e346690b55
a06586c101a31bf6c9a7dc307cf664120ac092fd
/Trakttv.bundle/Contents/Code/core/helpers.py
0a18e71922fa1e88e21953945d60d23bf924f0e6
[]
no_license
HaKDMoDz/Plex-Trakt-Scrobbler
22dd1d8275698761cb20a402bce4c5bef6e364f9
6d46cdd1bbb99a243b8628d6c3996d66bb427823
refs/heads/master
2021-01-22T00:10:18.699894
2015-05-25T23:52:45
2015-05-25T23:52:45
37,312,507
2
0
null
2015-06-12T09:00:54
2015-06-12T09:00:53
null
UTF-8
Python
false
false
8,062
py
from core.logger import Logger import hashlib import inspect import re import sys import threading import time import unicodedata log = Logger('core.helpers') PY25 = sys.version_info[0] == 2 and sys.version_info[1] == 5 def try_convert(value, value_type, default=None): try: return value_type(value) ...
[ "gardiner91@gmail.com" ]
gardiner91@gmail.com
111e6b5d2743a33767a2b20fe559d5eb6d64d37b
21a1b71ab16d81cb82cae39736b196306df2d471
/road_detection2/4.2.road_detecting_using_cam.py
ab8ae27530c48b14ce652d0d1a1a737b7d192275
[]
no_license
aiegoo/jet-notebook
2eb10ffbe100c609ab5cf356c905e84d9129f2a7
dc3dc58cb5c5e238bc55250d1129b0427757486b
refs/heads/master
2023-02-07T21:30:39.800359
2021-01-04T01:59:51
2021-01-04T01:59:51
318,427,706
0
0
null
null
null
null
UTF-8
Python
false
false
6,223
py
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import matplotlib.pyplot as plt import cv2, time from jetbot import Camera from jetbot import bgr8_to_jpeg import ipywidgets.widgets as widgets import traitlets # In[2]: def preprocessing(img): gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) g...
[ "eozz21@gmail.com" ]
eozz21@gmail.com
7885a575a145cf4ac99a1fc23ef14aae400998b3
eacff46eda2c6b509449979a16002b96d4645d8e
/Collections-a-installer/community-general-2.4.0/plugins/modules/librato_annotation.py
6a7a7d7ebff8bbd763080a07fdf2f44aa777230b
[ "MIT", "GPL-3.0-only", "GPL-3.0-or-later" ]
permissive
d-amien-b/simple-getwordpress
5e6d4d15d5f87124ab591e46b63fec552998fdc3
da90d515a0aa837b633d50db4d91d22b031c04a2
refs/heads/master
2023-04-08T22:13:37.347545
2021-04-06T09:25:51
2021-04-06T09:25:51
351,698,069
0
0
MIT
2021-03-31T16:16:45
2021-03-26T07:30:00
HTML
UTF-8
Python
false
false
32
py
monitoring/librato_annotation.py
[ "test@burdo.fr" ]
test@burdo.fr
29c691b36c36a0ce2059bd0c694533d59f1f55e2
b1392c69fcbdcb5ecd798b473e22a6ce9e2e8e44
/CorazonPet/apps/tipo_mascota/admin.py
b0b445cb697c981a0e7be68febad73d93172206b
[]
no_license
joselofierro/CorazonPet
34a1b9a3ea72d81f48f1059b6b27ad080f643738
f92c297b16e8b133c57af73560efef34c064c104
refs/heads/master
2021-11-28T19:13:45.353617
2018-01-09T22:42:52
2018-01-09T22:42:52
111,141,800
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
from django.contrib import admin # Register your models here. from apps.tipo_mascota.models import TipoMascota admin.site.register(TipoMascota)
[ "juliofierro@Mac-mini-de-JULIO.local" ]
juliofierro@Mac-mini-de-JULIO.local
6a2ec327abe96a1032005e64bb9bbca2e24d3680
aa76391d5789b5082702d3f76d2b6e13488d30be
/Private Project/Web Scrap/practice/ruliweb_login.py
bae40ed151b3f4cf80c2d9f9b8e1e5a97ec6b465
[]
no_license
B2SIC/python_playground
118957fe4ca3dc9395bc78b56825b9a014ef95cb
14cbc32affbeec57abbd8e8c4ff510aaa986874e
refs/heads/master
2023-02-28T21:27:34.148351
2021-02-12T10:20:49
2021-02-12T10:20:49
104,154,645
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
import requests from getpass import getpass from bs4 import BeautifulSoup getId = input("ID: ") getPw = getpass("Pw: ") # 로그인 유저 정보 LOGIN_INFO = { 'user_id': getId, 'user_pw': getPw } # Session 생성, with 구문안에서 유지 with requests.Session() as s: login_req = s.post("https://user.ruliweb.com/member/login_proc"...
[ "the_basic_@kookmin.ac.kr" ]
the_basic_@kookmin.ac.kr
44d2410162daaf7d58035ca9b610b8649dd10f80
7d91170c0c6b7abb0784a8521755aefee650f7e3
/dTV8Osyh54U70Fqx/XSrAzcw0TGY3JpQq.py
279a4dec4f95820a45c2cca4b59aa312566d45a8
[]
no_license
urlib/usi35g
e577ca090fc4a60b68662d251370a7cd7cc2afe3
46562fa29da32e4b75d8f8fd88496e95a3937099
refs/heads/master
2021-04-08T04:02:59.860711
2020-04-15T04:22:45
2020-04-15T04:22:45
248,737,049
0
0
null
null
null
null
UTF-8
Python
false
false
39,552
py
╺𥤄𦭾𧨸𥐝ᗮ庸⎏ꇼ𦲑𤦧𬦶쳽𣃯缍𬻐彅캷闠🦃𐰈糢𬊓𥮀ﰲ𤂌𛇣𮣕孧𪗫𩒙㩦𠬱框𧀮檑𧒬𝛵📱𦾓𨽍𡫦𥶍𣕵卹𣴧𐄮𡹯𦇁𨛈팀𗄀𠮀ُ詪𦋐𑐙ୈ𩣍㓟𗂌𗃙𨅤𧙲𣏙𪸯𠥽莎𬻈ᄩ𢑫Ꜩ𧣩𪉩뒇𩑝棪扟🠕𠂮𤼣𡗯𫉎➫𢼀띡𧉜𔖛𢥪𠞭𨏤澷𞋄𢹰𬅍뇗𡑥謱赙𡲨𠉓嬌嗑𝈎𣣤ᯜ뾯騌퐡㵏⮑뷷➡𒄞蓡𖨈𡉆遘皊𥐌𢨋킮䅇𩝠퓶〮𧁡𦐺𩹄𓉍𐜌𡗫𤬈𦆯𨾑椻툃娄⽆毿ヌ䰎𫈸𖺄𥞍簇⭫Ⅲ峯異ά𮒖𩑳瓓𪈂䦘걏ᄊ𥸸𦧒𣭭𧲪𪓶磌𢒬薀𪁜뗐皁ဎ𪮙ꚤ𪦢𧓛䭥𢷕黷䝆𤻩𠩋𗲚𐼕𮢲𢛑𡰐𢜙「𥒰ⲃ摧𗸇ॆ纂𦝳𧭅𢏶𩽦𨎍𨙿𤺄�...
[ "45290401+vmlankub@users.noreply.github.com" ]
45290401+vmlankub@users.noreply.github.com
355af19dc2658d6f894db7b2443035b55fd6cc83
1eb2d7d2a6e945a9bc487afcbc51daefd9af02e6
/spider/paperspider/papers/papers/spiders/conference2cn.py
578441368a8e57ac02bdea595a983211dac5dc19
[]
no_license
fengges/eds
11dc0fdc7a17b611af1f61894f497ad443439bfe
635bcf015e3ec12e96949632c546d29fc99aee31
refs/heads/master
2021-06-20T04:43:02.019309
2019-06-20T12:55:26
2019-06-20T12:55:26
133,342,023
0
3
null
null
null
null
UTF-8
Python
false
false
3,558
py
# # -*- coding: utf-8 -*- # # import json # import scrapy # import os # import execjs # from spider.paperspider.papers.papers.services.paperservices import paper_service # from spider.paperspider.papers.papers.items import * # # root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__fi...
[ "1059387928@qq.com" ]
1059387928@qq.com
08b71c71719234f47e47bfdfff69dffb78d99429
18239524612cf572bfeaa3e001a3f5d1b872690c
/clients/keto/python/ory_keto_client/api/write_api.py
a300af508466dad4c20e2779389d9e13ee2b4190
[ "Apache-2.0" ]
permissive
simoneromano96/sdk
2d7af9425dabc30df830a09b26841fb2e8781bf8
a6113d0daefbbb803790297e4b242d4c7cbbcb22
refs/heads/master
2023-05-09T13:50:45.485951
2021-05-28T12:18:27
2021-05-28T12:18:27
371,689,133
0
0
Apache-2.0
2021-05-28T12:11:41
2021-05-28T12:11:40
null
UTF-8
Python
false
false
14,732
py
""" ORY Keto Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. # noqa: E501 The version of the OpenAPI document: v0.6.0-alpha.5 Contact: hi@ory.sh Generated by: https://openapi-generator.tech...
[ "3372410+aeneasr@users.noreply.github.com" ]
3372410+aeneasr@users.noreply.github.com
c40bb05e041686ddc9a84e2e9662c6b79990c8ae
b4869228738cdcd1a5fcb10b2091b78415ca9741
/algorithmic-toolbox/week6/knapsack.py
ac783dfb88a227e9feaa93a0399a47c5c62f643b
[]
no_license
mmanishh/coursera-algo-toolbox
8d23d18985acfb33f44f08ac8c306fdb68dc3e88
d3153904732ab5b4125fc8913fcea6e969028822
refs/heads/master
2020-04-13T19:17:03.421935
2019-01-14T11:15:06
2019-01-14T11:15:06
163,397,885
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
# Uses python3 import sys def optimal_weight_naive(W, w): # write your code here result = 0 for x in w: if result + x <= W: result = result + x return result def optimal_weight(W,w): n = len(w) value = [[0 for j in range(W+1)] for i in range(n+1)] for i in range(1,n+1)...
[ "dfrozenthrone@gmail.com" ]
dfrozenthrone@gmail.com
de75953113f38f1ca7a911263a44bf7b01dc222d
0a0c6994c319981f7ba5d31eee3b074453ca4c0d
/autres/ahmedmelliti/module/__init__.py
b56955a8c3ed1a936aabb84a3da36d040ed5a34f
[]
no_license
arianacarnielli/2i013
678595c498cba5ec932ee9badd4868a08dad0663
a804abb7c2337fe9963c2ddfcd73db80d8b787d8
refs/heads/master
2021-05-10T13:30:21.353951
2018-05-08T14:17:40
2018-05-08T14:17:40
118,476,287
0
1
null
null
null
null
UTF-8
Python
false
false
853
py
#from .strategies import RandomStrategy #from .strategies import * from .strategies import * from soccersimulator import SoccerTeam def get_team(nb_players): myteam = SoccerTeam(name="MaTeam") #for i in range(nb_players): # myteam.add("Joueur "+str(i) ,FonceurStrategy()) if nb_players==1: myteam.add("J...
[ "ariana.carnielli@gmail.com" ]
ariana.carnielli@gmail.com
85c46754048661ed70e41167e6a0ba3fb08340df
bddc40a97f92fafb8cbbbfdbdfe6774996578bb0
/exercicioLista_listas/ex04.py
41c3c3e877a2ead3a68266440beefacbecb10b67
[]
no_license
andrehmiguel/treinamento
8f83041bd51387dd3e5cafed09c4bb0a08d0e375
ed18e6a8cfba0baaa68757c12893c62a0938a67e
refs/heads/main
2023-01-31T13:15:58.113392
2020-12-16T02:47:44
2020-12-16T02:47:44
317,631,214
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
# 4. Faça um Programa que leia um vetor de 10 caracteres, e diga quantas consoantes # foram lidas. Imprima as consoantes. listaChar = [] consoantes = 0 print ('Informe 10 caracters') for x in range(10): listaChar.append(input(f'Informe o {x + 1}º caracter: ')) char = listaChar[x] if(char not in ('a','e','i...
[ "andrehmiguel@outlook.com" ]
andrehmiguel@outlook.com
305a36881d7b04e423b340695be5258894e8f796
784359e29fce9b3cd7c4c2d71e5f0498dd6d4b5c
/src/test.py
3c1dc8f967ea7179b24fec3646130ef5391d7ded
[]
no_license
lmorillas/imagenes-arasaac
65740df76a8d8f43493464153eea08d93687df68
48bec6df2095dda1ab2db5b08b4dccaae1ffe5e0
refs/heads/master
2021-05-11T10:13:07.999743
2018-01-19T08:18:36
2018-01-19T08:18:36
118,097,208
0
0
null
null
null
null
UTF-8
Python
false
false
1,024
py
# coding: utf-8 ''' https://stackoverflow.com/questions/25615741/how-to-use-the-spanish-wordnet-in-nltk http://python.6.x6.nabble.com/attachment/2743017/0/Python%252520Text%252520Processing%252520with%252520NLTK%2525202.0%252520Cookbook.pdf https://www.pybonacci.org/2015/11/24/como-hacer-analisis-de-sentimiento-en-es...
[ "morillas@gmail.com" ]
morillas@gmail.com
06a5d6e41fa605cea837fb39e38f115ddd43e2f2
ee974d693ca4c4156121f8cb385328b52eaac07c
/env/lib/python3.6/site-packages/pbr/pbr_json.py
c18362b03df827909c74e5c536a42156e97ecada
[]
no_license
ngonhi/Attendance_Check_System_with_Face_Recognition
f4531cc4dee565d0e45c02217f73f3eda412b414
92ff88cbc0c740ad48e149033efd38137c9be88d
refs/heads/main
2023-03-12T07:03:25.302649
2021-02-26T15:37:33
2021-02-26T15:37:33
341,493,686
1
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:686172037b3d816c532f2e6aad2cfc06e034a7e538b9be33bf7a1f7a559cd64f size 1284
[ "Nqk180998!" ]
Nqk180998!
2f10850113a8aa2ce3f91329981f97d4fbd9a4c8
0e36d40275c09b94a3927f9530b5ee95a710960c
/mysite/mysite/settings.py
af0fc86bb54c9bd4fcbf34af58e1290a0598c8f4
[]
no_license
pku-cs-code/python-linux_Learning
6c681f227f7dd106990ac77c66780b06758340d5
ed58cd80e8066590a942f0b1369e45ecd5837c73
refs/heads/master
2021-01-01T06:40:48.418551
2017-11-05T04:02:29
2017-11-05T04:02:29
97,451,613
0
0
null
null
null
null
UTF-8
Python
false
false
3,096
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
[ "414220021@qq.com" ]
414220021@qq.com
815b00ec395cb0cfa575f77a0073e2eace93b7db
a9815c48ece2064c0b35e5f5ea76fa460ee67e43
/Commands/Rainbow.py
6716958404cb2c996b15c812739b04611ecea790
[ "MIT" ]
permissive
Heufneutje/PyMoronBot
1ca0ef3877efa4ca37de76a1af3862085515042e
055abf0e685f3d2fc02863517952dc7fad9050f3
refs/heads/master
2020-12-28T21:39:11.871132
2016-07-14T16:38:15
2016-07-14T16:38:15
24,449,387
0
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
# -*- coding: utf-8 -*- """ Created on May 04, 2014 @author: Tyranic-Moron """ from CommandInterface import CommandInterface from IRCMessage import IRCMessage from IRCResponse import IRCResponse, ResponseType from twisted.words.protocols.irc import assembleFormattedText, attributes as A class Rainbow(CommandInterf...
[ "matthewcpcox@gmail.com" ]
matthewcpcox@gmail.com
a084b0e7a5d66b9462e3e0f4016dca8595899060
42e2d31fe71e1a2c0b50a5d4bbe67e6e3e43a2ef
/contrib/devtools/check-doc.py
1b3264bca50da1765ffaf44ca268e87bec46ddfa
[ "MIT" ]
permissive
coinwebfactory/aiascoin
aceed1ebcb069b03d1fea3384d9d5beca06bc223
c8741cad5264a2d4c0bbca7813c4f4ad390915ae
refs/heads/master
2020-03-24T16:29:51.130395
2018-08-28T09:56:10
2018-08-28T09:56:10
142,826,697
0
0
MIT
2018-07-30T04:58:29
2018-07-30T04:58:28
null
UTF-8
Python
false
false
1,910
py
#!/usr/bin/env python # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author: @...
[ "root@localhost" ]
root@localhost
4ae43f49201a2697b237431281d61c7915d07ecd
73becab05c869290177c82f40507d181398ba68d
/docs/_build/jupyter_execute/content/toi_notebooks/toi_2188.py
5e49540bacad3dfee25c2b38cbbb801f9765eb9f
[]
no_license
avivajpeyi/tess_atlas_dev
8461cb2ce1c95b169aeeec5a8deebf520a98e85d
9470109a6029a36a640917324d42d527c0dc8456
refs/heads/main
2023-08-18T19:39:03.523060
2021-10-13T04:32:45
2021-10-13T04:32:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,516
py
#!/usr/bin/env python # coding: utf-8 # # TESS Atlas fit for TOI 2188 # # **Version: '0.2.1.dev30+g4180b55.d20210911'** # # **Note: This notebook was automatically generated as part of the TESS Atlas project. More information can be found on GitHub:** [github.com/dfm/tess-atlas](https://github.com/dfm/tess-atlas) # ...
[ "avi.vajpeyi@gmail.com" ]
avi.vajpeyi@gmail.com
663424fd44e897ae383df66011f4a1f60bed3000
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02990/s076168357.py
2db79e763da1248e48e6dfc6516dac1e7d408771
[]
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
219
py
mod = 10**9+7 N, K = map(int, input().split()) print(N-K+1) i = 2 C1 = N-K+1 C2 = 1 while i <= K: C1 *= ((N-K+1-(i-1))*pow(i, mod-2, mod))%mod C2 *= ((K-(i-1))*pow(i-1, mod-2, mod))%mod print((C1*C2)%mod) i += 1
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
054a2be80baef36aea5f876de706b94da37caafe
50e089f906489b2586cc586712420fd085f1f637
/machine_learning.py
dd758d6b668604304b9f3b47f2727a1ac5ec2109
[]
no_license
AaronTho/Python_Notes
5ab629e3b3d49be5c68d2a285a79683dc604cd3e
4aa0e1fb4a35763458a1da467e1bb01e393bc972
refs/heads/main
2023-07-24T00:59:23.552952
2021-09-11T17:32:25
2021-09-11T17:32:25
375,399,260
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
# Import the Data # Clean the Data # Split the Data into Training/Test Sets # Create a Model # Train the Model # Make Predictions # Evaluate and Improve # Libraries and Tools: # Numpy # Pandas # MatPlotLIb # Scikit-Learn # Jupyter is the a good machine learning environment # Install Anaconda (had to also install the ...
[ "aamith@gmail.com" ]
aamith@gmail.com
11aaed6107aedc9ed2c355a0818e5438c2ac20fc
b0f0473f10df2fdb0018165785cc23c34b0c99e7
/Peach.Core/Lib/locale.py
0c6cc1ccaf9fae1c80663ef6c11e43e25b61f48b
[]
no_license
wimton/Meter-peach
d9294a56ec0c1fb2d1a2a4acec1c2bf47b0932df
af0302d1789a852746a3c900c6129ed9c15fb0f4
refs/heads/master
2023-04-25T22:54:31.696184
2021-05-19T13:14:55
2021-05-19T13:14:55
355,202,202
0
0
null
null
null
null
UTF-8
Python
false
false
100,040
py
"""Locale support module. The module provides low-level access to the C lib's locale APIs and adds high level number formatting APIs as well as a locale aliasing engine to complement these. The aliasing engine includes support for many commonly used locale names and maps them to values suitable for passing to the C l...
[ "wimton@yahoo.com" ]
wimton@yahoo.com
bdf608e30942d1e434a5454fe9cbc342f5efd52f
d10e19f07b209b2fa661fb616947d0382fd0bbb0
/util/reload/del_e.py
ddff6d5f5e907b62b99314dae8f2bfa3b02afe35
[]
no_license
Do3956/test
6bda9633aa2762b8f0f4b05b154810107c40d9ee
15bbc285dc3acbbabaefb188cb264e56fb24c84d
refs/heads/master
2021-07-02T23:52:29.519329
2018-02-07T06:19:28
2018-02-07T06:19:28
95,771,394
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
# -*- coding: utf-8 -*- """ __author__ = 'do' __mtime__ = '2018/1/11' __content__ = '析构函数重载' """ class Life: def __init__(self, name='name'): print 'Hello', name self.name = name def __del__(self): print 'Goodby', self.name brain = Life('Brain') # call __init__ brain = 'loretta' #...
[ "395614269@163.com" ]
395614269@163.com
ce2ea39a792d9d09f4cc66658a211858bd44ab01
5667cc877342204b7d54b6c3cc5a9f4854f08829
/.history/apppersona/forms_20201101194225.py
fafb266b000ff5ea951dc20c6446324342a53378
[]
no_license
Nyckhos/TestCommit
d62e3f6fefb04ab5647475cc7ead0d72cbd89efa
9aa8e2e35280b7862960cc8a864e9c02ac7f4796
refs/heads/main
2023-01-05T05:57:59.223641
2020-11-02T02:08:18
2020-11-02T02:08:18
309,237,224
2
0
null
2020-11-02T02:30:43
2020-11-02T02:30:43
null
UTF-8
Python
false
false
3,647
py
from django import forms from django.db import models from django.db.models.fields import CharField, EmailField from django.forms import ModelForm, Textarea from django.forms.widgets import EmailInput, HiddenInput, PasswordInput, Select, TextInput from .models import Persona from django.contrib.auth.models import User...
[ "fernandox_240997@live.com" ]
fernandox_240997@live.com
7b3468eb08adcb7c9eab99a524080c7e23f65b33
255e7b37e9ce28bbafba5a3bcb046de97589f21c
/suqing/fuckal/python/linkedlist/reverse-nodes-in-k-group.py
99781eaab54715ab585558e6417e2f13b6e426ff
[]
no_license
dog2humen/ForTheCoffee
697d2dc8366921aa18da2fa3311390061bab4b6f
2f940aa9dd6ce35588de18db08bf35a2d04a54f4
refs/heads/master
2023-04-15T09:53:54.711659
2021-04-28T13:49:13
2021-04-28T13:49:13
276,009,709
2
2
null
2020-07-01T08:29:33
2020-06-30T05:50:01
Python
UTF-8
Python
false
false
1,684
py
# coding:utf8 """ 25. K 个一组翻转链表 给你一个链表,每 k 个节点一组进行翻转,请你返回翻转后的链表。 k 是一个正整数,它的值小于或等于链表的长度。 如果节点总数不是 k 的整数倍,那么请将最后剩余的节点保持原有顺序。 输入:head = [1,2,3,4,5], k = 2 输出:[2,1,4,3,5] 链接:https://leetcode-cn.com/problems/reverse-nodes-in-k-group """ # Definition for singly-linked list. # class ListNode: # ...
[ "116676671@qq.com" ]
116676671@qq.com
61d453f7043d551d259a951e4642f47d5429b7cd
f6302d4915f1186106270ac78273534920bdc553
/tests/test_scripts/test_gen_jsonld.py
385e3a242135665eba7991fc0854bfad5e25d86a
[ "CC0-1.0" ]
permissive
biolink/biolinkml
7daeab5dfbefb8c9a6ce15176725be4b0faf86c7
34531bd9cb8805029035c7b7726398ebee972b97
refs/heads/master
2021-06-10T20:10:56.718829
2021-04-04T20:05:59
2021-04-04T20:05:59
167,634,946
25
19
CC0-1.0
2021-10-02T01:45:34
2019-01-26T01:07:26
Python
UTF-8
Python
false
false
4,595
py
import os import re import unittest # This has to occur post ClickTestCase from functools import reduce from typing import List, Tuple import click from rdflib import Graph, URIRef from biolinkml import METAMODEL_NAMESPACE from biolinkml.generators.jsonldcontextgen import ContextGenerator from biolinkml.generators im...
[ "solbrig@jhu.edu" ]
solbrig@jhu.edu
a23323ac53143abd4e91ae0d35c314a55e9716cb
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/r6ywkSJHWqA7EK5fG_14.py
e1800ffbfe2d70f4996996c5a58be1d4e86742ab
[]
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
773
py
""" Write a method that accepts two integer parameters rows and cols. The output is a 2d array of numbers displayed in column-major order, meaning the numbers shown increase sequentially down each column and wrap to the top of the next column to the right once the bottom of the current column is reached. ### Exampl...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
e8c56a08cc5141e47f33f2dd24e7959853718791
d82ac08e029a340da546e6cfaf795519aca37177
/chapter_06_model_evaluation_hyperparameter_tuning/09_precision_recall.py
8ed40b8d08c5c3316ccb51e1e9aa19e22539551a
[]
no_license
CSwithJC/PythonMachineLearning
4409303c3f4d4177dc509c83e240d7a589b144a0
0c4508861e182a8eeacd4645fb93b51b698ece0f
refs/heads/master
2021-09-04T04:28:14.608662
2018-01-15T20:25:36
2018-01-15T20:25:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,384
py
import pandas as pd import matplotlib.pyplot as plt from sklearn.preprocessing import LabelEncoder from sklearn.model_selection import train_test_split, GridSearchCV, cross_val_score from sklearn.svm import SVC from sklearn.preprocessing import StandardScaler from sklearn.pipeline import Pipeline from sklearn.metrics ...
[ "jean.mendez2@upr.edu" ]
jean.mendez2@upr.edu
1e4aad395a0c4f1844831bcd3739df218ecd5ae7
700f9f9e319ebd26d2557d64ea3827808dfad2f5
/tests/fixtures/test_abstracts/content_03_expected.py
58672ac219aa158da24cd5ab42129bffccff6013
[ "MIT" ]
permissive
elifesciences/elife-tools
1b44e660e916a82ef8ff64dd5a6ee5506e517359
bc16e7dd5d6245077e39f8561b99c9acd510ddf7
refs/heads/develop
2023-03-06T08:37:47.424282
2023-02-20T20:40:49
2023-02-20T20:40:49
30,274,058
13
11
MIT
2023-02-20T20:40:50
2015-02-04T01:14:41
Python
UTF-8
Python
false
false
2,429
py
expected = [ { "abstract_type": None, "content": "RET can be activated in cis or trans by its co-receptors and ligands in vitro, but the physiological roles of trans signaling are unclear. Rapidly adapting (RA) mechanoreceptors in dorsal root ganglia (DRGs) express Ret and the co-receptor Gfr\u03b12...
[ "gnott@starglobal.ca" ]
gnott@starglobal.ca
0f376f00c936710d9751db5444a986c0a3a66788
17dcc3e6a5e418a7c4c2e79f6e34ae7df39fdbcd
/polyaxon_lib/datasets/imdb.py
b9f921cf262d4dc58eef86b59c760646f5f749fc
[ "MIT" ]
permissive
polyaxon/polyaxon-lib
55358fa8f56a1cd12a443672f4d6cb990c51ae8f
d357b7fee03b2f47cfad8bd7e028d3e265a10575
refs/heads/master
2021-09-11T19:43:59.391273
2018-04-11T15:35:03
2018-04-11T15:35:03
94,631,683
7
4
MIT
2018-01-25T14:08:54
2017-06-17T15:18:04
Python
UTF-8
Python
false
false
4,981
py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import json import os import six.moves.cPickle as pickle # pylint: disable=import-error import numpy as np import tensorflow as tf from polyaxon_lib import Modes from polyaxon_lib.datasets.converters.sequence_converters import...
[ "mouradmourafiq@gmail.com" ]
mouradmourafiq@gmail.com
d345272523d8337ac757fdf062c2baac998b6531
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/2946.py
87758d9e393a1e5e783c705de41a6ed22abb34c8
[]
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
584
py
numbers = [] t = int(raw_input()) for i in xrange(1, t + 1): numbers = [int(s) for s in list(raw_input())] numbers = [0] + numbers while True : change = False for j in xrange(1, len(numbers)): if (numbers[j] < numbers[j-1]): numbers[j-1] = numbers[j-1] -1 change = ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
bdd20ca186269d2759e9ecf5ae8ac0a444d8f194
cd9c2c6df0567bd7be18909f4150a26a45c8a4f7
/utils/rpi3/setup-system.py
cce2a6faf5e0796d16d7210a85c82987f73b6111
[ "Apache-2.0" ]
permissive
zeta1999/mjmech
d98fd506e6d7e799953a328ebe5db06e379591cb
9e44f82849afc35180d4bda22282dba1cde42be0
refs/heads/master
2022-04-19T19:24:44.638122
2020-04-16T16:41:54
2020-04-16T16:41:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,530
py
#!/usr/bin/python3 -B # Copyright 2018 Josh Pieper. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "jjp@pobox.com" ]
jjp@pobox.com
66e70df8459191ede0a0d58d871bb1cceccfeaa2
e29734c2b3543a05a28b6bc460c3248ea37aaf5c
/apps/course/migrations/0012_auto_20190417_1723.py
3f626f2c421f9e72f9bb96824deeb14fd09983c7
[]
no_license
simida0755/PopularBlogs
fda6dbe06751dde013ba57f73c708fd7106a49ee
3a86989232206d0727223306c0e2d2c62d35fa9b
refs/heads/master
2020-05-21T15:54:09.853341
2019-05-13T02:15:28
2019-05-13T02:15:28
186,101,555
5
1
null
null
null
null
UTF-8
Python
false
false
371
py
# Generated by Django 2.0.2 on 2019-04-17 17:23 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('course', '0011_auto_20190416_1459'), ] operations = [ migrations.RenameField( model_name='blogposts', old_name='Like_nums', ...
[ "simida027@163.com" ]
simida027@163.com
3ca0590beaf838aade8aff60fc8e2f99982bed2a
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/277/91472/submittedfiles/principal.py
84c993c745f110d61a63b8b18dfd48624e8021e1
[]
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
69
py
# -*- coding: utf-8 -*- x = input('Digite algo: ') mostrar_na_tela(x)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
7aefc106ad42e43fe1b6ff523e1dac4fc64c01d2
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_fume.py
ce796bac3558af33ff267419b8d051aff846cfaa
[ "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
326
py
#calss header class _FUME(): def __init__(self,): self.name = "FUME" self.definitions = [u'to be very angry, sometimes without expressing it: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'verbs' def run(self, obj1 = [], obj2 = []): return self.jso...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
df5c7b8d6d7517e53f42e5a9d2b47dc530a7a8e4
aedf65a662083d82fd2ef021a883dd842961d445
/webapp/linkstop/apps/accounts/admin.py
bb93b6b45bbaaaf78846834daee1847aa3489c47
[]
no_license
hercules261188/Locidesktop
b95f9f4dd709d33f21b7b9f43d52e3b76c99912b
cab3a3bda807780244e4e5ce9c3745b6d04ddbc9
refs/heads/master
2021-12-02T15:12:47.876242
2011-01-10T09:21:27
2011-01-10T09:21:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
from django.contrib import admin from models import * class ProfileAdmin(admin.ModelAdmin): list_display = ('user',) admin.site.register(Profile, ProfileAdmin) class InviteAdmin(admin.ModelAdmin): list_display = ('code', 'uses_remaining') admin.site.register(Invite, InviteAdmin)
[ "willmcgugan@gmail.com" ]
willmcgugan@gmail.com
9b6387e95c7865363144a250492269e8afc55560
af4d559792c4255d5f26bc078cd176b70c0e643f
/hpsklearn/components/compose/_target.py
47122eee5792a436fd2494fc78ae7673a5121e0f
[ "BSD-3-Clause" ]
permissive
hyperopt/hyperopt-sklearn
ec7d5f97ba8fd5a2c283dfec2fa9e0170b61c6ce
4b3f6fde3a1ded2e71e8373d52c1b51a0239ef91
refs/heads/master
2023-08-02T07:19:20.259964
2022-12-15T17:53:07
2022-12-15T17:53:07
8,293,893
1,480
292
NOASSERTION
2022-12-15T17:53:08
2013-02-19T16:09:53
Python
UTF-8
Python
false
false
1,423
py
from hyperopt.pyll import scope from sklearn import compose @scope.define def sklearn_TransformedTargetRegressor(*args, **kwargs): return compose.TransformedTargetRegressor(*args, **kwargs) def transformed_target_regressor(name: str, regressor: object = None, ...
[ "38689620+mandjevant@users.noreply.github.com" ]
38689620+mandjevant@users.noreply.github.com
28b398292b9bf6064d42889b0c2063af30c40fc2
58c3dd075b87ec882ccbce27d81928ea5dd46223
/presentation/views/user/stories_views.py
ee43e98b33a2556704a7c743fbe22155926874aa
[]
no_license
panuta/storypresso
706328652f583f7d3574eccca2bc885c49a9d0b9
ef0fecacbd67b09c8ab64d842709344fa6e2773d
refs/heads/master
2021-01-02T06:32:05.443474
2013-04-11T12:47:55
2013-04-11T12:47:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,890
py
# -*- encoding: utf-8 -*- import urllib2 from django.contrib import messages from django.contrib.auth.decorators import login_required from django.http import Http404 from django.shortcuts import render, get_object_or_404, redirect from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http ...
[ "panuta@gmail.com" ]
panuta@gmail.com
344de7f08b6061681f6b255140a70d46b64199c1
2416a6bde05651717f99dd45c5116cd13a7a38f7
/docs/source/clear_docs.py
3514db0143d1ddae01c133c04f99d3a02fbd37f2
[ "BSD-3-Clause" ]
permissive
modulexcite/nbgrader
b1080a61d0ba5252c16c3d7471e13a40ce659624
1748c40f47b69c81e19068d4ba3c3205af72317d
refs/heads/master
2021-01-20T21:40:48.115091
2015-08-13T01:57:08
2015-08-13T01:57:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,105
py
import os import sys import subprocess as sp from copy import deepcopy try: from IPython.nbformat import read, write from IPython.nbconvert.preprocessors import ClearOutputPreprocessor except ImportError: print("Warning: IPython could not be imported, some tasks may not work") def run(cmd): print(" "...
[ "jhamrick@berkeley.edu" ]
jhamrick@berkeley.edu
1ec1ad8fe95f163e80301f541560976b55f7b599
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_viewed.py
f9f11fcee4bddc5beedae71b386206b85ee7bebc
[ "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
216
py
#calss header class _VIEWED(): def __init__(self,): self.name = "VIEWED" self.definitions = view self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['view']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
f6fdf258262e61f9b025e4447b78e2845eb335c1
0d86bb399a13152cd05e3ba5684e4cb22daeb247
/python-basics/unit12-modules/py119_from_import.py
d62586d3be78b54a6b3a96b8e4acc2e3c31b4925
[]
no_license
tazbingor/learning-python2.7
abf73f59165e09fb19b5dc270b77324ea00b047e
f08c3bce60799df4f573169fcdb1a908dcb8810f
refs/heads/master
2021-09-06T05:03:59.206563
2018-02-02T15:22:45
2018-02-02T15:22:45
108,609,480
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18/1/4 下午10:06 # @Author : Aries # @Site : # @File : py119_from_import.py # @Software: PyCharm ''' from .. import 语句 多行导入 ''' from Tkinter import Tk, Frame, Button, Entry, \ Canvas, Text, LEFT ''' PEP 8风格 加入括号更易读 ''' from Tkinter import (Tk, Frame,...
[ "852353298@qq.com" ]
852353298@qq.com
f591f2f5000f55dde12dac4747b15d2cd0031f76
0809ea2739d901b095d896e01baa9672f3138825
/ORMproject1_ver_2/ORMproject1_ver_2/settings.py
db3c8140ebb48988e3492dcf972169f97a75ed03
[]
no_license
Gagangithub1988/djangoprojects
dd001f2184e78be2fb269dbfdc8e3be1dd71ce43
ea236f0e4172fbf0f71a99aed05ed7c7b38018e2
refs/heads/master
2022-11-15T23:46:46.134247
2020-07-15T06:37:51
2020-07-15T06:37:51
273,479,403
0
0
null
null
null
null
UTF-8
Python
false
false
3,275
py
""" Django settings for ORMproject1_ver_2 project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ im...
[ "djangopython1988@gmail.com" ]
djangopython1988@gmail.com
35659b938f37e4feeafc513cf7fc00b3e2457ce9
10d98fecb882d4c84595364f715f4e8b8309a66f
/tunas/schema_io_test.py
ab7f6ca4f294916dca7c1d63ac50e89c1bc14eeb
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
afcarl/google-research
51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42
320a49f768cea27200044c0d12f394aa6c795feb
refs/heads/master
2021-12-02T18:36:03.760434
2021-09-30T20:59:01
2021-09-30T21:07:02
156,725,548
1
0
Apache-2.0
2018-11-08T15:13:53
2018-11-08T15:13:52
null
UTF-8
Python
false
false
7,843
py
# coding=utf-8 # Copyright 2021 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
3cbe84dc02307edb834d241e25626fe9c1b861d0
e9a5033ac69ef690602eb1206217dac6d09c1e63
/netharn/util/util_io.py
74d56ad483aade482c02c454104a746a9cfed118
[ "Apache-2.0" ]
permissive
Erotemic/netharn
ba030df2c9d79fe0b392f8823bc2819383d8756f
bc4a6d75445c949e709e5ab903ba72813ec68b79
refs/heads/master
2021-05-26T05:05:24.931026
2020-08-27T00:13:34
2020-08-27T00:13:34
127,506,937
43
8
Apache-2.0
2020-02-19T17:51:56
2018-03-31T06:49:03
Python
UTF-8
Python
false
false
1,392
py
# -*- coding: utf-8 -*- """ DEPRECATED """ from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np def read_h5arr(fpath): import h5py with h5py.File(fpath, 'r') as hf: return hf['arr_0'][...] def write_h5arr(fpath, arr): import h5py with h5py.Fil...
[ "jon.crall@kitware.com" ]
jon.crall@kitware.com
9e21f133bfc9f87dea5673c020cb62a394593f31
ef243d91a1826b490e935fa3f3e6c29c3cc547d0
/PyQt5/QtNetwork/QSslKey.py
c5246b49969c93f51c37ee8902d23b3a1e0668d5
[]
no_license
VentiFang/Python_local_module
6b3d0b22399e817057dfd15d647a14bb1e41980e
c44f55379eca2818b29732c2815480ee755ae3fb
refs/heads/master
2020-11-29T11:24:54.932967
2019-12-25T12:57:14
2019-12-25T12:57:14
230,101,875
0
0
null
null
null
null
UTF-8
Python
false
false
3,212
py
# encoding: utf-8 # module PyQt5.QtNetwork # from F:\Python\Python36\lib\site-packages\PyQt5\QtNetwork.pyd # by generator 1.147 # no doc # imports import enum as __enum import PyQt5.QtCore as __PyQt5_QtCore import sip as __sip class QSslKey(__sip.simplewrapper): """ QSslKey() QSslKey(Union[QByteArray, by...
[ "5149528+ventifang@user.noreply.gitee.com" ]
5149528+ventifang@user.noreply.gitee.com
e5b0008119735c1b9e21aa25ea5e1a98dd42cef7
2a4a17a67b9069c19396c0f8eabc8b7c4b6ff703
/BGP3D/Chapter05/AdditionalCode/MarkerClass.py
168ea6c1929f070d29038c045e9feff5ed2cc174
[]
no_license
kaz101/panda-book
0fa273cc2df5849507ecc949b4dde626241ffa5e
859a759c769d9c2db0d11140b0d04506611c2b7b
refs/heads/master
2022-12-19T09:36:05.794731
2020-09-16T19:04:10
2020-09-16T19:04:10
295,784,057
0
0
null
null
null
null
UTF-8
Python
false
false
2,292
py
''' This class is used to define the markers placed along the track. These markers are referenced by multiple parts of the game in order to understand the shape and position of parts of the track. ''' from pandac.PandaModules import Vec3 class Marker: def __init__(self, pos): self.lane = 0 # Creates a...
[ "kaz101130@gmail.com" ]
kaz101130@gmail.com
a42151ab93472a9bd2dbfd2ba188557e5d608af4
fea44d5ca4e6c9b2c7950234718a4531d453849e
/sktime/regression/deep_learning/tapnet.py
0dc3c34a9c8f697072fb87309012e68fefb0f28b
[ "BSD-3-Clause" ]
permissive
mlgig/sktime
288069ab8c9b0743113877032dfca8cf1c2db3fb
19618df351a27b77e3979efc191e53987dbd99ae
refs/heads/master
2023-03-07T20:22:48.553615
2023-02-19T18:09:12
2023-02-19T18:09:12
234,604,691
1
0
BSD-3-Clause
2020-01-17T17:50:12
2020-01-17T17:50:11
null
UTF-8
Python
false
false
9,331
py
# -*- coding: utf-8 -*- """Time Convolutional Neural Network (CNN) for classification.""" __author__ = [ "Jack Russon", ] __all__ = [ "TapNetRegressor", ] from copy import deepcopy from sklearn.utils import check_random_state from sktime.networks.tapnet import TapNetNetwork from sktime.regression.deep_learn...
[ "noreply@github.com" ]
mlgig.noreply@github.com
3c5bd952d9054dcd4e8a2ac805219cc5d33ea51d
009f8f1f77ef4bdfd67999058d33bccd8e743654
/leetcode/1470_shuffle_the_array.py
378d8363f5c46ac30fe2cf886b70ecbc5fe218d2
[ "MIT" ]
permissive
coocos/leetcode
4bd5faa46e916af666db025c8182f1c30cd49ee3
007bbeb46fa4b32e1c92fc894edeb2100eb6ba21
refs/heads/master
2021-06-13T13:11:10.699941
2021-05-01T05:55:12
2021-05-01T07:17:52
192,551,170
1
0
null
null
null
null
UTF-8
Python
false
false
670
py
import unittest from typing import List class Solution: """ This solution simply slices the list into two, zips the slices together and then keeps appending numbers from the zipped iterable to a new list, finally returning the new list. """ def shuffle(self, nums: List[int], n: int) -> List[i...
[ "1397804+coocos@users.noreply.github.com" ]
1397804+coocos@users.noreply.github.com
ade92b08072be4fbfd43b37ed4a6fcf0b292740d
68f836bf5d9f849722c322e9207d842c766cac6f
/backend/project_notes.py
90146bb70cf48ade623b4dd2778474b8661a07d0
[ "MIT" ]
permissive
valmsmith39a/u-p2-trivia-api
061f9fd216bb93f58a83b20413dcaacbf0f36239
0c4a66a97af13b76a55bac6e210566f1258ea9ba
refs/heads/main
2023-07-16T02:40:42.623996
2021-08-28T22:41:46
2021-08-28T22:41:46
380,091,249
0
0
null
null
null
null
UTF-8
Python
false
false
2,495
py
""" @TODO: DONE: Set up CORS. Allow '*' for origins. Delete the sample route after completing the TODOs """ """ @TODO: DONE: Use the after_request decorator to set Access-Control-Allow """ """ @TODO: DONE Create an endpoint to handle GET requests for all available categories. """ """ @TODO: DONE Create an...
[ "valmsmith39a@gmail.com" ]
valmsmith39a@gmail.com
555460ca29e841d4a013d93d658324dae5e47e2a
4d2238210813c1581bf44f64d8a63196f75d2df4
/getspecialpath.py
3c73e511700aad0decdddd01f448faddafea15e9
[]
no_license
wwtang/code02
b1600d34907404c81fa523cfdaa74db0021b8bb3
9f03dda7b339d8c310c8a735fc4f6d795b153801
refs/heads/master
2020-12-24T14:10:33.738734
2012-12-14T04:24:47
2012-12-14T04:24:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
# LAB(begin solution) def get_special_paths(dirname): """Given a dirname, returns a list of all its special files.""" result = [] paths = os.listdir(dirname) # list of paths in that dir for fname in paths: match = re.search(r'__(\w+)__', fname) if match: result.append(os.path.abspath(os.path.join...
[ "andytang1994@gmail.com" ]
andytang1994@gmail.com
9a2eecac8235d57fb18fba8bf51a48013a539f4d
f68732bc40a7a90c3a1082e4b3a4154518acafbb
/script/dbus/sessionBus/daemonLauncher/010_requestRemoveFromDesktop_01.py
970c505fbf5f8c7eb2441038c3f4030b30cfba08
[]
no_license
lizhouquan1017/dbus_demo
94238a2307e44dabde9f4a4dd0cf8ec217260867
af8442845e722b258a095e9a1afec9dddfb175bf
refs/heads/master
2023-02-11T19:46:27.884936
2021-01-08T05:27:18
2021-01-08T05:27:18
327,162,635
0
0
null
null
null
null
UTF-8
Python
false
false
1,232
py
# -*- coding: utf-8 -*- # *************************************************** # @Test Case ID: 010_requestRemoveFromDesktop_01 # @Test Description: 请求将指定id的程序桌面图标删除 # @Test Condition: 桌面图标不存在桌面 # @Test Step: 1.清除应用程序桌面图标 # 2.调用RequestRemoveFromDesktop接口,请求将指定id的...
[ "lizhouquan@uniontech.com" ]
lizhouquan@uniontech.com
e176c56fefcc0010af610eee90e483989a3c41ca
da1721d2783ea4d67ff4e73cee6eee71292f2ef7
/toontown/cogdominium/CogdoLevelMgr.py
92a534dd21bec6683b43174708b853632a575be3
[ "BSD-3-Clause" ]
permissive
open-toontown/open-toontown
bbdeb1b7bf0fb2861eba2df5483738c0112090ca
464c2d45f60551c31397bd03561582804e760b4a
refs/heads/develop
2023-07-07T01:34:31.959657
2023-05-30T23:49:10
2023-05-30T23:49:10
219,221,570
143
104
BSD-3-Clause
2023-09-11T09:52:34
2019-11-02T22:24:38
Python
UTF-8
Python
false
false
174
py
from otp.level import LevelMgr from direct.showbase.PythonUtil import Functor from toontown.toonbase import ToontownGlobals class CogdoLevelMgr(LevelMgr.LevelMgr): pass
[ "jwcotejr@gmail.com" ]
jwcotejr@gmail.com
5058c60cc266058372e61cb9d6b143206790c3ee
21590487701d2dcbe1a1c1dd81c6e983f7523cb6
/exporter/opentelemetry-exporter-zipkin/tests/test_zipkin.py
fa9c3ecf48fc24cc0b29f54f38c2572ee403a074
[ "Apache-2.0" ]
permissive
open-telemetry/opentelemetry-python
837199e541c03cff311cad075401791ee2a23583
d8490c5f557dd7005badeb800095cb51b553c98c
refs/heads/main
2023-08-26T06:47:23.837997
2023-08-17T22:35:13
2023-08-17T22:35:13
185,478,926
1,361
668
Apache-2.0
2023-09-14T20:48:40
2019-05-07T21:13:30
Python
UTF-8
Python
false
false
963
py
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "noreply@github.com" ]
open-telemetry.noreply@github.com
015bb44013fbc1fccd818082deadaa0ba3e0b855
a2c66a7bb326c51df39e058262101737ea1faea1
/tensorflow/python/data/kernel_tests/shuffle_test.py
05d5d814c01d2640b8d34f937393df6256cde665
[ "Apache-2.0" ]
permissive
CarlosGarciaMX/tensorflow
406518d0fc34c047b97405aae9c1f818e8cfb3b7
a4f06947c61ef6f69057f1207c2532a3551ff4f0
refs/heads/master
2021-10-02T22:44:22.191831
2018-12-01T19:54:43
2018-12-01T19:59:34
160,002,214
0
0
Apache-2.0
2018-12-02T01:13:10
2018-12-02T01:13:10
null
UTF-8
Python
false
false
9,641
py
# Copyright 2017 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
eb86b016fc192ce35a1af4257388a6a1699682b9
d58f26ef4bfacc50d32306f27ea9628214aa53aa
/panoptes_aggregation/tests/extractor_tests/test_survey_extractor.py
0f35fc2c2c8c2e1ac6fe86d1d4946c98f49bcb26
[]
no_license
miclaraia/python-reducers-for-caesar
893073ce1551d953d82a59bd87dea3deffe5e6ae
f1e28992ae73e131fb400d4b400fdf8d4d597828
refs/heads/master
2021-01-01T18:51:04.763162
2017-07-25T14:04:06
2017-07-25T14:04:06
98,448,810
0
0
null
2017-07-26T18:01:03
2017-07-26T17:30:17
Python
UTF-8
Python
false
false
1,955
py
import unittest import json import flask from panoptes_aggregation import extractors class TestSurveyExtractor(unittest.TestCase): def setUp(self): self.classification = { 'annotations': [{ 'task': 'T0', 'value': [ { '...
[ "coleman.krawczyk@gmail.com" ]
coleman.krawczyk@gmail.com
fc81aba1d48898a177ddd6d8431ac9006754f7a4
d27af9d58b91b8cd998ac0eb87d980d304ff0670
/Beginner-Contest/ABC106/ABC106_A.py
7438576edb2f75a8a2bd207eb097f09e220ae881
[]
no_license
mongesan/Atcoder-m0_ngesan-py
29dd79daab149003ffc8b6b6bad5fa2e7daa9646
6654af034d4ff4cece1be04c2c8b756976d99a4b
refs/heads/master
2023-08-20T19:50:04.547025
2021-10-27T12:24:51
2021-10-27T12:24:51
258,486,105
1
0
null
null
null
null
UTF-8
Python
false
false
9
py
#ABC106_A
[ "syun1.mongesan@gmail.com" ]
syun1.mongesan@gmail.com
50394fff8cb70405e3d6a9d2739f994d49fa25ba
37edb81c3fb3dfc09d14bb228e5f8df610d21c50
/source/_static/lecture_specific/mccall/mccall_resw_c.py
1cf5709382e34082f3a31af6fd0fc53a6fe3ee7f
[ "BSD-3-Clause" ]
permissive
bktaha/lecture-python
68cb003640323d8600b1396898f2fb383b417769
b13db12120b977d1c661c9a68c5b8ddfc1b6dc89
refs/heads/master
2022-11-02T23:05:32.647316
2020-06-09T09:15:18
2020-06-09T09:15:18
272,172,927
0
0
BSD-3-Clause
2020-06-14T09:44:53
2020-06-14T09:44:52
null
UTF-8
Python
false
false
535
py
grid_size = 25 c_vals = np.linspace(2, 12, grid_size) # values of unemployment compensation w_bar_vals = np.empty_like(c_vals) mcm = McCallModel() fig, ax = plt.subplots(figsize=(10, 6)) for i, c in enumerate(c_vals): mcm.c = c w_bar = compute_reservation_wage(mcm) w_bar_vals[i] = w_bar ax.set_xlabel...
[ "mamckay@gmail.com" ]
mamckay@gmail.com
30eee56cb38f4efbea3d3964f8dd219c0e33b62f
4c38cf22642d01720b41b0700b17c481da47ac1c
/实战项目/家用电器用户行为分析与事件识别/阈值寻优模型.py
99f676399cef2aa5ccd7d503f9f034cfcf8c4d3a
[]
no_license
fwmmmrm/DataMining-2
ff2e2d75e32e54e629accc6209c23604637c6afb
c20431d90264d84fcee9ddc1dd2d71db16b36632
refs/heads/master
2023-02-03T12:53:01.006916
2020-12-19T06:26:51
2020-12-19T06:26:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,182
py
# -*- coding: utf-8 -*- """ 在1-9分钟进行阈值寻优 """ import numpy as np import pandas as pd def event_num(ts): ''' 得到事件数目 :param ts: :return: ''' d = data[u'发生时间'].diff() > ts return d.sum() + 1 if __name__ == '__main__': inputfile = 'data/water_heater.xls' # 使用以后四个点的平均斜率 n = 4 t...
[ "1695735420@qq.com" ]
1695735420@qq.com
3632c60cac2a105337f609999d00fbcb845ae306
33836016ea99776d31f7ad8f2140c39f7b43b5fe
/fip_collab/2015_03_25_alpha_Ti_composite_7th/main008.py
15496dbf4af81557e35e3ca2f7ead381096d4b64
[]
no_license
earthexploration/MKS-Experimentation
92a2aea83e041bfe741048d662d28ff593077551
9b9ff3b468767b235e7c4884b0ed56c127328a5f
refs/heads/master
2023-03-17T23:11:11.313693
2017-04-24T19:24:35
2017-04-24T19:24:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,110
py
# -*- coding: utf-8 -*- """ Created on Wed Sep 17 16:46:35 2014 @author: nhpnp3 """ import time import fegrab import microstructure_function as msf import validation_viz import results import calibration # import matplotlib.pyplot as plt Hi = 2 # number of distinct local states in microstructure order = 1 # choose...
[ "noahhpaulson@gmail.com" ]
noahhpaulson@gmail.com
edfc5ecf4e08ebc51d70cccfa64033266fcd94d5
f00ae2cb4709539e8a78247678d9bb51913e0373
/oacids/exported/ifaces.py
6291040a82a66812250500bc05295488b82dd8c9
[ "MIT" ]
permissive
openaps/oacids
576351d34d51c62492fc0ed8be5e786273f27aee
ed8d6414171f45ac0c33636b5b00013e462e89fb
refs/heads/master
2021-01-10T06:03:53.395357
2016-03-21T04:02:47
2016-03-21T04:02:47
51,559,470
2
2
null
null
null
null
UTF-8
Python
false
false
390
py
# BUS='org.openaps.oacids' BUS='org.openaps' IFACE='org.openaps.Service' ObjectManager = 'org.freedesktop.DBus.ObjectManager' PATH_BASE='/org/openaps' PATH='/org/openaps/Services' ManagerPath = PATH INTROSPECTABLE_IFACE='org.freedesktop.DBus.Introspectable' # class WithProperties (dbus.service.Object): TRIGGER_IF...
[ "bewest@gmail.com" ]
bewest@gmail.com
76974675ed4f3f5348441293a1ee00f825fc5953
7173978a10fc738ef6ee1d7c63e608da9a715d19
/keyboards/inline/category_industrial_buttons.py
2b046d54afb57b03c1337c4e5267bdcfa52dec6b
[]
no_license
stillnurs/telegram_bot
80498de7489a3d99f0288f4c96ffe0b5a6ece937
e7c3cd84f78d24484703c95e9d596ac682ef10a5
refs/heads/master
2023-02-09T19:54:08.919475
2020-12-28T19:43:44
2020-12-28T19:43:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton category_industrial_choice = InlineKeyboardMarkup(inline_keyboard=[ [ InlineKeyboardButton(text="Общие вопросы", callback_data="about_industrial") ] ], )
[ "noorsultan.mamataliev@gmail.com" ]
noorsultan.mamataliev@gmail.com
e36d2752f8590ae3619472a4a1fbd8087e52f017
a9e3f3ad54ade49c19973707d2beb49f64490efd
/Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/commerce/api/v0/tests/test_views.py
5a1e47cb7149aa90340075ae66457392dab67365
[ "MIT", "AGPL-3.0-only", "AGPL-3.0-or-later" ]
permissive
luque/better-ways-of-thinking-about-software
8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d
5809eaca7079a15ee56b0b7fcfea425337046c97
refs/heads/master
2021-11-24T15:10:09.785252
2021-11-22T12:14:34
2021-11-22T12:14:34
163,850,454
3
1
MIT
2021-11-22T12:12:31
2019-01-02T14:21:30
JavaScript
UTF-8
Python
false
false
12,110
py
""" Commerce API v0 view tests. """ import itertools import json from datetime import datetime, timedelta from unittest import mock from uuid import uuid4 import ddt import pytz from django.conf import settings from django.test import TestCase from django.test.utils import override_settings from django.urls import r...
[ "rafael.luque@osoco.es" ]
rafael.luque@osoco.es
9d983f524780487331f1a5a8f745b286f2a278df
1531345172f997e42b861ddd2063d7e357a3b4f2
/python/tf_idf_demo.py
58cd7d7e88c95d87ddc076d432d50f3384af59dd
[]
no_license
claralinanda/MIS3545-Spring2017
5c83e671b19cc75857fcbfb941adb88272953c60
8b097453558f9a5c2c5c11ada7d98423dfa24254
refs/heads/master
2021-01-19T11:54:06.392757
2017-04-03T14:05:23
2017-04-03T14:05:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,724
py
from math import log def tf(term, doc, normalize=True): doc = doc.lower().split() if normalize: return doc.count(term.lower()) / float(len(doc)) else: return doc.count(term.lower()) / 1.0 def idf(term, corpus): num_texts_with_term = len([True for text in corpus if term.lower() ...
[ "zli@babson.edu" ]
zli@babson.edu
f48b108217790987b181bc014327e857ca7cc522
3c6b0521eb788dc5e54e46370373e37eab4a164b
/FlowScore/eval_single.py
cda6c141996523b2197a00407f922861a8825b8d
[]
no_license
y12uc231/DialEvalMetrics
7402f883390b94854f5d5ae142f700a697d7a21c
f27d717cfb02b08ffd774e60faa6b319a766ae77
refs/heads/main
2023-09-02T21:56:07.232363
2021-11-08T21:25:24
2021-11-08T21:25:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
from flow_score import * import numpy as n import argparse import json def parse_args(): parser = argparse.ArgumentParser(description='') parser.add_argument('--eval_data', type=str, default=None) parser.add_argument('--output', type=str) args = parser.parse_args() return args def main(args):...
[ "yitingye@cs.cmu.edu" ]
yitingye@cs.cmu.edu
f2f4abba432d2c0b97599ad83d7485f8c0eb3203
9088d49a7716bdfc9b5770e8e54ebf7be6958fcf
/09 - Repetition structure while/Des_059.py
a745d5bba64cfbc51c17879a26b37f1a9b2d9a9e
[ "MIT" ]
permissive
o-Ian/Practice-Python
579e8ff5a63a2e7efa7388bf2d866bb1b11bdfe2
1e4b2d0788e70006096a53a7cf038db3148ba4b7
refs/heads/main
2023-05-02T02:21:48.459725
2021-05-18T18:46:06
2021-05-18T18:46:06
360,925,568
4
0
null
null
null
null
UTF-8
Python
false
false
903
py
from time import sleep n = 0 while n != 5: n1 = int(input('Digite um número inteiro: ')) n2 = int(input('Digite outro número inteiro: ')) print('=-' * 25) print('Digite [1] para somar \nDigite [2] para multiplicar\nDigite [3] para saber qual número é o maior\n' 'Digite [4] para digitar novos n...
[ "ianstigli@hotmail.com" ]
ianstigli@hotmail.com
05f23b2d032c3d8618084d240d489fbcc40895b0
b69b6a68a7bd7cfa274cbbe27c185be32eba7b54
/rpc_start/go_json_rpc_client.py
e17222899d551985f37d07640b271ca208d3f91f
[]
no_license
ZhiyuSun/code-kingdom
3f4d2c023ffdc2a18523c3144bb7271b9835f3ba
318c292dec5a43de1131a171678a6874613bc087
refs/heads/master
2021-06-23T20:29:03.682412
2021-06-14T08:52:41
2021-06-14T08:52:41
201,889,194
0
0
null
null
null
null
UTF-8
Python
false
false
540
py
import json import socket # request = { # "id":0, # "params":["sunzhiyu"], # "method": "HelloService.Hello" # } # # client = socket.create_connection(("localhost", 2222)) # client.sendall(json.dumps(request).encode()) # # #获取服务器返回的数据 # rsp = client.recv(1024) # rsp = json.loads(rsp.decode()) # # print(rsp[...
[ "zcgyxlgy@sina.com" ]
zcgyxlgy@sina.com
95dc9559d334108df8bfa5d29c11957bbcfcf14a
7b13e6acb2a1f26936462ed795ee4508b4088042
/算法题目/算法题目/剑指offer/题15二进制中1的个数.py
8b9f4af0a2c3eeefc3b9e876e3e82af26d04cedf
[]
no_license
guojia60180/algorithm
ed2b0fd63108f30cd596390e64ae659666d1c2c6
ea81ff2722c7c350be5e1f0cd6d4290d366f2988
refs/heads/master
2020-04-19T08:25:55.110548
2019-05-13T13:29:39
2019-05-13T13:29:39
168,076,375
0
0
null
null
null
null
UTF-8
Python
false
false
772
py
#Author guo # -*- coding:utf-8 -*- class Solution: def NumberOf1(self, n): # write code here count = 0 if n<0: n=n&0xffffffff while n: count += 1 n = (n - 1) & n return count def Numberof2(self,n): if n<0: s=bin(n&0...
[ "44565715+guojia60180@users.noreply.github.com" ]
44565715+guojia60180@users.noreply.github.com
b010ac476488c1ddac5a903d34b68d757fd309a7
8cb8bfd2dae516612251039e0632173ea1ea4c8a
/modules/contact/triggers.py
baf79680e6675358cf535d3c8d1db77215c8a039
[]
no_license
nyzsirt/lift-prod
563cc70700d26a5812a1bce0bd9795998dce6e99
9a5f28e49ad5e80e422a5d5efee77a2d0247aa2b
refs/heads/master
2020-04-22T01:05:42.262876
2019-02-09T13:31:15
2019-02-09T13:31:15
170,003,361
1
0
null
2019-02-10T17:11:50
2019-02-10T17:11:50
null
UTF-8
Python
false
false
361
py
class ContactTrigger: @classmethod def pre_save(cls, sender, document, **kwargs): names = [] if document.name or document.surname: if document.name: names.append(document.name) if document.surname: names.append(document.surname) ...
[ "mutlu.erdem@soft-nec.com" ]
mutlu.erdem@soft-nec.com
197c221bc0351ffccca4ea96c739f1c19bb8c129
926b3c52070f6e309567c8598248fd5c57095be9
/src/audio/torchaudio/backend/soundfile_backend.py
8fe76c998eadda1805f27db3191b82ca1071ee76
[ "BSD-2-Clause" ]
permissive
fengbingchun/PyTorch_Test
410f7cd2303707b0141d433fb9d144a961e1f4c8
df5c2169f0b699bcd6e74adb4cb0e57f7dcd9348
refs/heads/master
2023-05-23T16:42:29.711338
2023-03-25T11:31:43
2023-03-25T11:31:43
167,339,907
15
4
null
2023-03-25T11:31:45
2019-01-24T09:24:59
C++
UTF-8
Python
false
false
16,484
py
"""The new soundfile backend which will become default in 0.8.0 onward""" import warnings from typing import Tuple, Optional import torch from torchaudio._internal import module_utils as _mod_utils from .common import AudioMetaData if _mod_utils.is_soundfile_available(): import soundfile # Mapping from soundfi...
[ "fengbingchun@163.com" ]
fengbingchun@163.com