blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
178cdd44b7132721ea8dad20f94a94752a44dbfe | a1973fa91ca1883be6143771feece9dcbdf84a72 | /algo/scheduler.py | 4693ff8b95500655b9e8c70296c851e720111ba5 | [] | no_license | ajaytani/python | a05d3d9607ead75d8e6dc5eadadbfb28f7116623 | 0751bb5f22fdf512e46771391b6464d11773dc19 | refs/heads/master | 2021-01-19T23:44:18.968570 | 2020-08-11T06:34:51 | 2020-08-11T06:34:51 | 89,016,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,086 | py | class MinHeap:
def __init__(self):
self.heapList = []
self.currentSize =0
def buildHeap(self,arr):
self.currentSize = len(arr)
self.heapList = [0] + arr
i = self.currentSize//2
while i > 0:
self.percDown(i)
i = i-1
def percDown(self,i)... | [
"revathi@gmail.com"
] | revathi@gmail.com |
685c3b447efa9302c1e3ac674770c6ad63a86f80 | 86fc644c327a8d6ea66fd045d94c7733c22df48c | /scripts/managed_cpe_services/customer/triple_cpe_site/triple_cpe_site_services/cpe_primary/ospfs/router_ospf/redistribute/redistribute_on_ospf/redistribute_on_ospf.py | 37bcca908584bc95632c842448489e92bbae1610 | [] | no_license | lucabrasi83/anutacpedeployment | bfe703657fbcf0375c92bcbe7560051817f1a526 | 96de3a4fd4adbbc0d443620f0c53f397823a1cad | refs/heads/master | 2021-09-24T16:44:05.305313 | 2018-10-12T02:41:18 | 2018-10-12T02:41:18 | 95,190,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,026 | py | #
# This computer program is the confidential information and proprietary trade
# secret of Anuta Networks, Inc. Possessions and use of this program must
# conform strictly to the license agreement between the user and
# Anuta Networks, Inc., and receipt or possession does not convey any rights
# to divulge, reproduce,... | [
"sebastien.pouplin@tatacommunications.com"
] | sebastien.pouplin@tatacommunications.com |
4aa730e036b56a443beadc95859cc4b8612f6a9c | d8e972616bf3a1342a33c673f7a5d52d865a0590 | /build/dwr/catkin_generated/pkg.develspace.context.pc.py | a1b0eb937abec4239e60a60d3fb31e8f28018bee | [] | no_license | ms-jagadeeshan/catkin_ws | 41b859be1a6562410c955ed6e19d4f2843822938 | d26c72753fc4464e77da01f7cb802340f9a6aba7 | refs/heads/master | 2023-08-23T16:56:39.551152 | 2021-10-25T17:09:46 | 2021-10-25T17:09:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "dwr"
PROJECT_SPACE_DIR = "/home/jaga_... | [
"jagadeeshanmsj@gmail.com"
] | jagadeeshanmsj@gmail.com |
13afaec093ca5dbb37ccc72918e13c91b3555344 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2011/util/shell/command-not-found/actions.py | fd6ae5ea60b235f2996161b9d5463089b352de0a | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2008-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def install():
pisitools.dobin("src/... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
d872404835b430c18e23ed2bf9c6a66acdbc380b | 1b6e2b0353c6c66a5110ae761b4cacb2800431e7 | /collectinfo/wsgi.py | b31da9aa19c34349a808df39200b2375d8338611 | [] | no_license | whodanyalahmed/datacollection_django | 2030040fd5f1b7aeaac8a693cfb8f45dd71b3282 | a2be2d7089f612352f85966dbf292ed3ed868084 | refs/heads/master | 2020-05-29T23:16:48.705635 | 2019-05-30T14:47:49 | 2019-05-30T14:47:49 | 189,431,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for collectinfo 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"Daniahmedkhatri@gmail.com"
] | Daniahmedkhatri@gmail.com |
39e7aecc1b16bada819da53f5040e102cf3744ad | 9bb041d300b15eb367d75972f53ee3019e59050f | /test13.py | b3fec78d0615a164ab340ed3ce5a92085b2b3898 | [] | no_license | 201601988jj/python1 | a831d610c8a4cc1277ac385c2b036e55f16f4b11 | f7b408e5f7f26edf6dc26eccee9482ca851a3633 | refs/heads/master | 2020-06-11T14:56:46.115157 | 2019-07-01T07:46:26 | 2019-07-01T07:46:26 | 194,004,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | import random
dice1,dice2,dice3,dice4,dice5,dice6=[0]*6
throwCount, serialCount=0,0
if __name__=="__main__":
while True:
throwCount+=1
dice1 = random.randrange(1,7)
dice2 = random.randrange(1,7)
dice3 = random.randrange(1,7)
dice4 = random.randrange(1,7)
dice5 = r... | [
"cjyhk96@gmail.com"
] | cjyhk96@gmail.com |
c9f081a98579c7940a16938e3d5a2e2c3e4ee725 | 3188d2b4e8e9869c80819e8a3d99ebace8adfd06 | /(June)30_days_Challenge/insert_delete_getRandom.py | c6fa07f71e51a473763cc61e0d8f1a1fd4a77cec | [] | no_license | Divyalok123/LeetCode_Practice | 78ce9ba0deb8719b71111e17ae65422d76d2a306 | 2ac1dd229e7154e5ddddb0c72b9bfbb9c897d825 | refs/heads/master | 2023-06-30T08:55:33.369349 | 2021-08-01T06:17:06 | 2021-08-01T06:17:06 | 256,864,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | # Design a data structure that supports all following operations in average O(1) time.
# insert(val): Inserts an item val to the set if not already present.
# remove(val): Removes an item val from the set if present.
# getRandom: Returns a random element from current set of elements. Each element must have the same pro... | [
"divyjais2001@gmail.com"
] | divyjais2001@gmail.com |
57f0473df75e076251d0ff6afe0e60431dd1b124 | 5259532bb41382bc05c7f311fdee65c67f67990e | /Tools/SampleTool/UI_SampleMainForm.py | 233a453909cfe5c2f121227d1c0c5bfe19a1f080 | [] | no_license | csjy309450/MLTools_PyQt4 | 57905cc78284d87349eda511fc78c43f3527bbeb | d1af57c279fd12428cda303d22e7a732db3ff257 | refs/heads/master | 2021-04-29T10:36:54.792400 | 2018-02-28T17:03:08 | 2018-02-28T17:03:08 | 77,835,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,513 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'SampleToolWidget.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
import CopyForm as cf
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attribut... | [
"="
] | = |
9c9211ba0a7b37926a9c19db8e22a715e5849baa | 14dc1c553c740766f24159343051a192be6a1294 | /shop/migrations/0003_contact.py | 538c6bf896233d8a2ae3c89b3fe06960ccb6457e | [] | no_license | rishabhm409/webD_e-commerce | f6792f9ca61d886baad3d08edb8fed1c82fc451d | 99d9a936240ae4bb3bccb4ad7e1e448166d9a79c | refs/heads/master | 2022-07-29T12:17:23.479395 | 2020-05-18T13:13:52 | 2020-05-18T13:13:52 | 264,943,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # Generated by Django 2.2.4 on 2019-08-06 15:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0002_remove_product_product_id'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
... | [
"rishabhm409@gmail.com"
] | rishabhm409@gmail.com |
b620ecedc10b8b97f2771f940664f15bf9ea5af2 | 13e6686b9c6cda9c68ec8a549229678500e90bd8 | /perf_numba.py | afa9cded997bdc079cfc824d9f90b58a1dffdd38 | [
"MIT"
] | permissive | pyatcoder/Microbenchmarks | 461923a0c9801ec6d8b149aa848a976b79cac273 | 3595305060974cd0442fbc604219b1eea5081c35 | refs/heads/master | 2020-07-23T12:39:01.008143 | 2019-10-27T02:15:48 | 2019-10-27T02:15:48 | 207,558,195 | 0 | 0 | NOASSERTION | 2019-09-10T12:50:36 | 2019-09-10T12:50:36 | null | UTF-8 | Python | false | false | 6,992 | py | import numpy as np
from numpy.linalg import matrix_power
from numpy.random import default_rng, PCG64
from numba import jit
import time
rg = default_rng()
x = PCG64()
f_pcg64 = x.ctypes.next_double
state_addr = x.ctypes.state_address
## fibonacci ##
@jit(nopython=True, cache=True)
def fib(n):
if n < 2:
ret... | [
"teku@awoni.net"
] | teku@awoni.net |
8b23902369e967b38763914876192dfa443865a8 | 43905bbb78a98b3b7464a059d57a01d2590ec437 | /Py_Udemy1/Working With Return Values.py | 431866906194f0e3e57c2e40fbb9c9fd7a0cadc5 | [] | no_license | sharamamule/Py_Learn | 1ee61c84e3228cb5b1bda91918ba8f6400460051 | de00dea73dc12411617df621528542a3881c1ee5 | refs/heads/master | 2020-03-28T21:54:47.029327 | 2018-09-17T21:41:05 | 2018-09-17T21:41:05 | 149,191,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | """
Whenever we write method we need to write 'dock-string'
-like notes with in the method explaining what method is doing.
"""
def sum_nums(n1,n2): ## dock string example :
"""
Get sum of two numbers
:param n1:
:param n2:
:return:
"""
return n1 + n2
sum1 =... | [
"noreply@github.com"
] | noreply@github.com |
b9703a3bbb2b20023885c2f3ba74b9e79f428723 | 7de165c12f7940ec6a7563ba31aec4e3c342aa28 | /json_zip.py | d030fec80ee5397d28077a5d988636c177d2b731 | [] | no_license | rohanaras/radio | 3823da8c940f38a7b035920f41970c284f8e8040 | 6ad065b173ee5339c9d966c189dfea5469e197ea | refs/heads/master | 2022-04-27T00:39:18.004808 | 2020-04-28T19:24:03 | 2020-04-28T19:24:03 | 259,730,666 | 0 | 0 | null | 2020-04-28T19:22:44 | 2020-04-28T19:22:43 | null | UTF-8 | Python | false | false | 258 | py | import zlib, json, base64
ZIPJSON_KEY = 'base64(zip(o))'
def json_zip(j):
j = {
ZIPJSON_KEY: base64.b64encode(
zlib.compress(
json.dumps(j).encode('utf-8')
)
).decode('ascii')
}
return j | [
"trd4@me.com"
] | trd4@me.com |
d615b3f87e95f821b1ad96c4a961165d3dcfb242 | 1924da60fa3298e386acc6dac9bd390784a9b5bb | /test18.py | 2eaca7b55757608822e1ea3f6eebcce199ba5a68 | [] | no_license | yukitomo/NLP100DrillExercises | c8a177b56f798cef225ace540e965809a1fc1fbc | ea2ceb366de1fa1f27d084e3b9328cc6f34ac1dd | refs/heads/master | 2020-06-01T02:55:11.423238 | 2015-06-10T15:39:03 | 2015-06-10T15:39:03 | 37,205,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | #!/usr/bin/python
#-*-coding:utf-8-*-
#(18) 仙台市の住所らしき表現にマッチする正規表現を各自で設計し,抽出せよ.
#python test18.py tweet.txt
import sys
import re
pattern = re.compile(u'(仙台市)([^\s\w\d ]{1,20}[\d0-9〇一-九十上下東西]+)*')
for line in sys.stdin:
line = line.decode("utf-8")
match=pattern.search(line)
if match:
print match.group(0).encode... | [
"over.the.tr0ouble@gmail.com"
] | over.the.tr0ouble@gmail.com |
7d1cce50ff5c0adc9da8f7541f86fbac58d2e9ad | 318d586c90441bb53a6f31638b0012821131d796 | /web/card_data.py | b566e12d9624e2850f701df8b1664f616192806f | [] | no_license | samrroyall/info.rm | d2395be1f0dffee952d9349033b535723ed03f54 | ededbad946a83a1ab547fb1dcb71c068bf3917f6 | refs/heads/master | 2023-04-03T04:00:14.855962 | 2021-04-07T22:35:00 | 2021-04-07T22:35:00 | 238,979,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,348 | py | from django.db.models import F, FloatField, QuerySet
from django.db.models.functions import Cast
from typing import Dict, List, Union
from .card import Card, DashCard, BioCard, CardList
from .models import Season, League, Player, PlayerStat
from .queryset import get_max
#################################
##### CACH... | [
"samrroyall@gmail.com"
] | samrroyall@gmail.com |
a739260990dcef7590c8a2791552f0ca720b2c2a | 647c7c6b21afece465585699c2dd4d1949cb160a | /config.py | 69e4228c3dee0b716be5b2297343ecd93746ac59 | [] | no_license | jting2013/National_Grid_Web_Scraping | 41395454c0999e64d56291264ee45db402dc76c2 | 663c7601faedb2f952d721e8db74eb643ddf87f4 | refs/heads/master | 2022-05-10T15:34:34.752865 | 2022-05-05T16:14:27 | 2022-05-05T16:14:27 | 164,162,494 | 0 | 0 | null | 2022-05-05T16:14:27 | 2019-01-04T22:53:04 | Python | UTF-8 | Python | false | false | 181 | py | Username_Electric = 'login@yahoo.com'
Username = 'username'
Password = 'password'
Email_From = 'fromemail@hotmail.com'
Email_PW_From = 'frompassword'
Email_To = 'toemail@yahoo.com'
| [
"jting2013@yahoo.com"
] | jting2013@yahoo.com |
e43680be54a96bf074498a59db3df72db549e964 | eb59f8212f40bd7c316e1ef3be03bf7da3dde65f | /annotated2_0/scr_uli.py | be140b857a325143f149a0a5aefd35636edbe6d3 | [] | no_license | shtkn/frameDataParser | 764cc3197051966717990f7ca3eb2f02639cf438 | 690d44d4bf188a14c4e5ebebd95bdc75b827f5e5 | refs/heads/master | 2021-07-05T00:52:53.316670 | 2020-10-03T18:16:52 | 2020-10-03T18:16:52 | 187,556,058 | 0 | 0 | null | 2019-11-25T05:36:06 | 2019-05-20T02:40:24 | Python | UTF-8 | Python | false | false | 280,392 | py | @Subroutine
def PreInit():
Unknown12019('756c6900000000000000000000000000')
Unknown12050(1)
@Subroutine
def MatchInit():
DashFAccel(1000)
DashFMaxVelocity(32000)
JumpYVelocity(31500)
SuperJumpYVelocity(38000)
DoubleJumpCount(2)
Unknown12038(23000)
Unknown12034(33)
SuperFreezeDur... | [
"shtkn001@gmail.com"
] | shtkn001@gmail.com |
168a492c64f3091f9413060341de0d14558d560c | dad3e21dd32d9625b510ba373a82d554ce92ff3f | /TennisApp/single_layer_perceptron.py | 1d0decf7d2b10006b90a127f3ce6aab7dd882cf4 | [] | no_license | pradyumnad/TennisML | a2c1ff72e08267c1575a710f37b737715a08a398 | af323a21d1ae2f66945d3e367bb620e4b60e665e | refs/heads/master | 2021-01-10T04:37:58.928943 | 2016-03-03T02:40:06 | 2016-03-03T02:40:06 | 51,107,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | import neurolab as nl
import numpy as np
from data import prepare_data
__author__ = 'pradyumnad'
train, train_target, test, test_target = prepare_data()
print('Train: ', len(train))
print('Test : ', len(test))
input = list(train[['1st serve points won Norm', '2nd serve points won Norm', 'Break points won Norm']].v... | [
"pradyumnadoddala@gmail.com"
] | pradyumnadoddala@gmail.com |
9226629a592d1cbce6243737ba9838ff68a1135b | 98404910e43b88108e658d111e9196839b7aca77 | /tests/test_layers.py | f49e07677ec682f645022d76bc04813595d924fa | [
"Apache-2.0"
] | permissive | mbencherif/kraken | b45ff5c32ab7d76301f613d738a1281adb05b2ce | ffb35d101166e35fad7930d468138e216e48991a | refs/heads/master | 2023-07-30T12:42:33.823848 | 2021-09-29T14:37:18 | 2021-09-29T14:37:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,368 | py | # -*- coding: utf-8 -*-
import unittest
from nose.tools import raises
import torch
from kraken.lib import layers
class TestLayers(unittest.TestCase):
"""
Testing custom layer implementations.
"""
def setUp(self):
torch.set_grad_enabled(False)
def test_maxpool(self):
"""
... | [
"mittagessen@l.unchti.me"
] | mittagessen@l.unchti.me |
13db4789fac71a6bd7a9ecc5b7802ab48098465e | a0cbae900326b91817ba2e4234a97730893bf28c | /apps/core/backends.py | cf483058ba429f1643b092bf61cf8715611994ba | [
"MIT"
] | permissive | pipoket/sparcssso | 574b071990428ffd6ace1996b9fc2949e6c1a7da | ecc02b04c6630125ee841343ec73740b35c6c4b0 | refs/heads/master | 2020-04-07T19:52:06.939930 | 2016-05-28T10:25:42 | 2016-05-28T10:25:42 | 60,222,818 | 0 | 0 | null | 2016-06-02T01:31:04 | 2016-06-02T01:31:04 | null | UTF-8 | Python | false | false | 8,418 | py | # -* coding: utf-8 -*-
from django.conf import settings
from django.contrib.auth.models import User
from django.core.mail import send_mail
from django.utils import timezone
from apps.core.models import ServiceMap, UserProfile, EmailAuthToken, ResetPWToken
from apps.core.forms import UserForm, UserProfileForm
from xml.e... | [
"a1sams1a@gmail.com"
] | a1sams1a@gmail.com |
742a110bb63077d24dc9f3b001ade6455c465a66 | 0b85fbdd58eab30cf2ed5676a9c331c1ab6152f6 | /cdp_viz/handlers/services/dl.py | a59f386a88dc13816e7f7bb9a1accba49a601a15 | [] | no_license | pymonger/cdp-viz-pyramid | 82ddac3552a0da9c1a831959ff28fdb3b21c126f | 32c5f3d6f1d63c1e7e6131876da9a19ab3d25e93 | refs/heads/master | 2020-03-28T23:46:17.564043 | 2013-02-06T17:48:29 | 2013-02-06T17:48:29 | 149,307,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | import logging, simplejson, pprint, re, os, sys
from urllib2 import urlopen
from urllib import urlencode
from datetime import datetime
from string import Template
from Levenshtein import ratio, median
from pyramid.httpexceptions import HTTPFound
from pyramid_handlers import action
from beaker.cache import CacheManage... | [
"pymonger@gmail.com"
] | pymonger@gmail.com |
d95f88ed338598e044b6a53db4251f64f315e6ec | 94095d8679bc57b8c2e8aea2577885866aae95bd | /loopchain/container/__init__.py | 220d4e66427987a2cb88ef4dc59fa786a9eef80f | [
"Apache-2.0"
] | permissive | r0hack/loopchain | 7a19b6d322515785be5f8b809be1aea74fc6e555 | 0203e4aedbdaeae37e0aebbb4ba06db8e849f337 | refs/heads/master | 2023-08-08T14:07:30.312320 | 2019-08-20T10:09:50 | 2019-08-20T10:09:50 | 212,174,458 | 0 | 0 | Apache-2.0 | 2023-09-05T15:14:04 | 2019-10-01T18:50:03 | null | UTF-8 | Python | false | false | 729 | py | # Copyright 2018 ICON Foundation
#
# 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 writi... | [
"winDy@windystudio.com"
] | winDy@windystudio.com |
7a0f0a0597796fa0162856101750ed284aa1ff1a | 71788a22dcaeb2fbde56b87fabf7ee21df3a770f | /students/K_Shaffer/lesson01/break_me.py | b979b120e4ee70be0f97a4f03d3b5aae925ba5cb | [] | no_license | UWPCE-PythonCert-ClassRepos/Python210_Fall2019 | 5bdfc1c919666eccb42ee07a1d7e385b21f11652 | e45481671684a3cc8a469461a15cd9f660752ee0 | refs/heads/master | 2020-08-05T16:33:53.068983 | 2019-12-29T09:57:59 | 2019-12-29T09:57:59 | 212,615,940 | 4 | 34 | null | 2019-12-29T09:58:00 | 2019-10-03T15:38:40 | Python | UTF-8 | Python | false | false | 315 | py | '''
Author: K. Shaffer
Course: Python 210
Date: 10/8/2019
'''
#def nameError():
# x = yes
def syntaxError():
print this will throw a SyntaxError
#def typeError():
# x = "yes"
# y = x^4
#def attributeError():
# x = 5
# print (x.length)
#nameError()
syntaxError()
#typeError()
#attributeError() | [
"korykumasaka@gmail.com"
] | korykumasaka@gmail.com |
837fbe4686d686b4687cf0483d8c30f829dc753f | 1e01bb1277476f0179a0196beb5495bfce4b9e01 | /apps/admin/__init__.py | 90a8e5786023c3e3e252b2ca1390023c856cbbb5 | [] | no_license | DaLongmao2/MycmsPro | 84d1673b248fe12e293d33d7e71ddaab9c18c601 | f6600d77284b39977c5cf989ca9d1017015ca735 | refs/heads/master | 2023-01-23T17:24:11.484928 | 2020-12-04T13:45:46 | 2020-12-04T13:55:17 | 318,714,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | #encoding:utf-8
from .views import bp
from apps.admin import hooks | [
"q872039610"
] | q872039610 |
02b1729d71b2eb9105fa0bfcc34087f304ec5eb1 | 072e858f4b0c8a3f983ca3afdbd27fdf93398a47 | /manage.py | fcdd636355fbf6e290a72d81f4184bf0c2a695ff | [] | no_license | jashandeep1659/techno-reuhez-testing-2 | acaa84de1d22d5b4415be8c28ae6f0d08b2e41f9 | 6e14eb30c138447f6c34c603e447c858bdeba517 | refs/heads/main | 2023-05-07T15:30:37.018146 | 2021-05-20T15:21:16 | 2021-05-20T15:21:16 | 369,213,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'techno_ruhez.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"jjashan505@gmail.com"
] | jjashan505@gmail.com |
a6278c75e17da474ad8532cdb99a989ef4fa4911 | 51081fa3517f241b0d19039164837850de964bf0 | /files_handler.py | 3e60769cacbafa51576294c737e452e8867e5606 | [
"MIT"
] | permissive | Nagendra1693/TER | 97295f4f4f1ef0648ad7abde69a9d985432b06ae | ee437106c7e26c08c84b3c4c9c742d37f2c0b9d2 | refs/heads/master | 2020-03-30T08:43:43.387146 | 2018-10-01T04:12:08 | 2018-10-01T04:12:08 | 151,035,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,554 | py | import os
import requests
from bs4 import BeautifulSoup
import pandas as pd
import datetime
import json
import downloader
import payload_data
# import json_parser_3
headers = {"user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36"}
today = da... | [
"nagendra1693@gmail.com"
] | nagendra1693@gmail.com |
5c970dffe7023ba46848e3b65f0ad476cbb2b53e | 29145db13229d311269f317bf2819af6cba7d356 | /april circuits/shifts.py | bb24c3d034ba66dfbb7a8eba41e99923e3127ea4 | [] | no_license | rocket3989/hackerEarth2019 | 802d1ca6fd03e80657cbe07a3f123e087679af4d | 42c0a7005e52c3762496220136cc5c1ee93571bb | refs/heads/master | 2021-07-05T01:32:42.203964 | 2020-12-22T03:40:20 | 2020-12-22T03:40:20 | 211,607,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | for tc in range(int(input())):
N, M, c = input().split()
N = int(N)
M = int(M)
N = bin(N)[2:].zfill(16)
if c == 'L':
print(int(N[M:] + N[:M], 2))
else:
print(int(N[16 - M:] + N[:16 - M], 2))
| [
"rocket3989@gmail.com"
] | rocket3989@gmail.com |
69c14301b8ab8f06d134a13442b2f47c2380eb95 | d0459fb4064f52b19aa81d090df8d8ca9edaeead | /20-29/26.py | aee78452822f0d90099c09cdf4d738daf28b3d41 | [] | no_license | barrymun/euler | 3d9defbe5f79a2fb4b1286d27ac8702b5444ddca | 751db69ae1c1fac507aa5b4313122fcd273c2840 | refs/heads/master | 2022-04-15T05:45:38.456706 | 2020-03-24T19:56:57 | 2020-03-24T19:56:57 | 88,738,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | from __future__ import division
from decimal import *
getcontext().prec = 10000 # set the percision of the decimal calculations
# def repeats(s):
# """
# https://stackoverflow.com/a/29489919
# """
# i = (s+s).find(s, 1, -1)
# return None if i == -1 else s[:i]
def repeats(s):
"""
"""
for x in range(1, len(... | [
"barrymun@tcd.ie"
] | barrymun@tcd.ie |
fdfa1e8a9d40bea6460eb76fe815b1577235d733 | d3f5110e5782a77cae2224114e21f62231068407 | /CS-Projects/WorkingToRandomizeJuli'sColor.py | 46759e53aeb49cd4175db0066bc207c95312a3dc | [] | no_license | siri-palreddy/CS550-FallTerm | 4504a58a95bf6cec94627176c1d2d12f8626041e | 5e6676e0d048aba57f5a7e9681d4edf30ccec7c6 | refs/heads/master | 2021-08-23T03:35:36.072617 | 2017-12-02T23:50:57 | 2017-12-02T23:50:57 | 112,882,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,781 | py | # import the libraries you'll need
import tkinter
from tkinter import *
import random
# recursive mandelbrot function gives us the number of iterations to escape
def mandelbrot(z, c, count):
# the calculations that follow are how you would do it
# if you didn't use complex numbers in python;
# ... | [
"noreply@github.com"
] | noreply@github.com |
7f44ed7c492048c7a2268982590b8ef20b58f77e | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/practicepython/python-exercises-master/07-list-comprehension/exercise.py | 894ad5cd07e85383178aea3f7a25e85196b75242 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 270 | py | # /#! /urs/bin/env python
if __name__ == '__main__':
all = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
odd = [number for number in all if number % 2 == 1]
even = [number for number in all if number % 2 == 0]
print("All: " + str(all) + '\nOdd: ' + str(odd))
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
bf1fa8a73dae7278553d1c29f2634608d33f3dc7 | 2297110bfad913d670b040943afc8b8f32c6bba5 | /Sorting and Searching/Subarray Distinct Values/gen.py | e7c17d62aae69b235e0d5a9a49629f87de9e0edf | [] | no_license | thanhtoan1742/CSES | eb2a2223f5ee1c18411439868877eaa09eed8650 | 2d30deb140b15f0691bade8118fc546da5c47817 | refs/heads/master | 2023-09-05T16:05:46.447411 | 2021-11-21T02:41:40 | 2021-11-21T02:41:40 | 299,819,379 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from random import randint
content = ''
n = 200000
k = 200000
content += str(n) + ' ' + str(k) + '\n'
for i in range(n):
v = randint(1, 100000)
content += str(v) + ' '
with open('input.txt', 'w+') as f:
f.write(content) | [
"thanhtoan1742@gmail.com"
] | thanhtoan1742@gmail.com |
9e96211c98e984f047cf72ae5af36d33726dd834 | 8f27cfa5e22b6db010e5c2daf53b70e713a7d23a | /data_structures /merging_tables.py | 63fe60a3c5df61826f1afb4433d945519d7b1b36 | [] | no_license | edadasko/coursera_algorithms | a9277006ff4da2174c436863e27a6706dbef7bf9 | 569c59ddbe23c14d7138042323135410bb49c74c | refs/heads/master | 2020-06-14T07:03:29.300869 | 2019-07-25T16:16:45 | 2019-07-25T16:16:45 | 194,941,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,924 | py | '''
Merging tables
Task. There are n tables stored in some database. The tables are numbered from 1 to n.
All tables share the same set of columns. Each table contains either several rows
with real data or a symbolic link to another table. Initially, all tables contain data,
and i-th table has ri... | [
"edadasko@gmail.com"
] | edadasko@gmail.com |
4c4e15cd470b2fa52e799f44ca1949ab8b3d5e21 | 590bb2a09bc77cff28af191f162f6d3891c819d0 | /vendor/migrations/0002_meal_price.py | 38a2058c7505ccb2ff6caf06b3829559050c4819 | [] | no_license | chestnutcone/Hangry | d3adae268986e839516f3411a4bb6d7af724ebb9 | d82b04927976604b3e0ee4c49b94c93209c27ea6 | refs/heads/master | 2021-01-25T23:52:49.288960 | 2020-02-29T01:01:56 | 2020-02-29T01:01:56 | 243,231,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Generated by Django 3.0.3 on 2020-02-18 04:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('vendor', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='meal',
name='price',
field=m... | [
"oliver37215@hotmail.com"
] | oliver37215@hotmail.com |
776a03aafba3bf4e3da4f7b0dad2af5cf130631e | ca567aeb715e97ca1bbe94a374520c346f1f7650 | /crud/urls.py | 5786d79496d3d977eefed099fab2ab6f11e7093f | [] | no_license | vranj/crud | d89d62ddde4b5325641ad54573c8847fdec2e500 | e82798fe163d3ad655ac8293f648994338deee14 | refs/heads/master | 2023-03-05T00:45:09.017089 | 2021-02-19T17:19:37 | 2021-02-19T17:19:37 | 339,982,830 | 0 | 0 | null | 2021-02-18T10:44:25 | 2021-02-18T08:25:54 | Python | UTF-8 | Python | false | false | 873 | py | """crud URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"ran4job@gmail.com"
] | ran4job@gmail.com |
92d60b2e02f8ee946dcee44aab224f6120c82c74 | 51cbe43482e03f300ceeb9636a572bf6ebfdb568 | /utils.py | e30a8bf3eb46ad3992297e9b2318e07f07fcb456 | [] | no_license | jokersunited/UrlAnalyze | 7794a0c007ef0fc6a6b01168316996fc785b6e83 | 588114f826619942a0239f70c5bf1db4c8db76e9 | refs/heads/main | 2023-05-03T07:29:49.804474 | 2021-05-25T08:25:08 | 2021-05-25T08:25:08 | 334,889,815 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | def gen_char_dict():
alphabet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-;.!?:'\"/\|_@#$%^&*~`+-=<>()[]{}"
char_dict = {}
char_dict["null"] = 0
for i, char in enumerate(alphabet):
char_dict[char] = i + 1
char_dict["UNK"] = len(alphabet)+1
return char_dict
| [
"jshwee@gmail.com"
] | jshwee@gmail.com |
c93cdbf9dac1960a0b46dc94e9f866c3365ba9ec | 1081df8e651cd5e6dca306cef82af8f2d64b091f | /django_multiple_image_form/django_multiple_image_form/context_processors.py | 22e2abff5fa3f9bfd310969e3f7e625e3250e54c | [] | no_license | samirtendulkar/multiple_image_adder | b8e09fd3d657ce32c7aea37a586df573f719581e | 7f7a3283bbc5f5dbbbf976c17fd5a583eede1270 | refs/heads/master | 2020-05-04T05:44:30.922373 | 2019-04-07T06:30:42 | 2019-04-07T06:30:42 | 178,986,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py |
def sections_processor(request):
user = request.user
if user.is_authenticated:
drafts = user.posts.filter(is_draft=True).count()
else:
drafts = ''
return {'drafts': drafts}
| [
"samnik_12345@hotmail.com"
] | samnik_12345@hotmail.com |
243c193623591d29bb3fa6344bb1b2d31f4adb6f | 2753757e2d13f5dd0d1faf1264031d476e162975 | /others/assignment/temp.py | ae6d46f2f1fb03391ed5c73d858f9a215d0d38a0 | [] | no_license | florije1988/Suggestions | c8846dd089eab816051ecc1fc43a7fcc07580194 | 23718968acc16fa243c248a6ac3d4715c53daaa1 | refs/heads/master | 2020-05-20T07:01:54.292081 | 2014-08-11T07:52:02 | 2014-08-11T07:52:02 | 21,298,258 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | # -*- coding: utf-8 -*-
__author__ = 'florije'
import time
def reverse_str(str_arg):
if len(str_arg) == 1:
return str_arg
else:
return str_arg[-1] + reverse_str(str_arg[:-1])
if __name__ == '__main__':
# s_arg = input('list:')
# print s_arg
# print type(s_arg)
# for i in ran... | [
"florije1988@gmail.com"
] | florije1988@gmail.com |
37918bdb0d4e31428108d8434477b8686f64c19d | f75609812d20d46a9f94ee0cfdb91c321d26b63d | /flask/flask_fundamentals/Number_Game/server.py | 6830ce31939d2a6ef2ce63d2e02eb346853fbccf | [] | no_license | IanAranha/Python2021 | eff47a20451f61b144b17f48321a7b06308aadca | d9769b8b387b77753b77f6efe3a9a270a1f158d3 | refs/heads/main | 2023-04-02T08:20:24.382913 | 2021-04-10T22:27:10 | 2021-04-10T22:27:10 | 345,918,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | from flask import Flask, redirect, render_template, session, request
import random
app = Flask(__name__)
app.secret_key = "0004ThisIsASecretKey"
@app.route("/")
def index():
if "random_number" not in session:
session["random_number"] = random.randrange(0, 101)
return render_template("index.html")
@app.route("... | [
"ianorama@gmail.com"
] | ianorama@gmail.com |
04f1ffee4608251faec834d03e9120fe6d4a0c51 | 3dace62e1fed4e782b05a0b471577d102c95d32a | /src/byro/bookkeeping/models/transaction.py | fde1b517aabb0587ac104a2b835be693701f182d | [] | no_license | pc-coholic/byro | e99217f6656f7f13049bd7dccf421f234a343880 | f96a58919aca7846d7d8eac121614bbda8f37a33 | refs/heads/master | 2020-03-30T12:34:06.569559 | 2018-10-02T09:23:41 | 2018-10-02T09:23:41 | 112,169,909 | 0 | 0 | null | 2017-11-27T08:40:09 | 2017-11-27T08:40:09 | null | UTF-8 | Python | false | false | 10,999 | py | from collections import Counter
from django.contrib.auth import get_user_model
from django.contrib.postgres.fields import JSONField
from django.db import models, transaction
from django.db.models import Prefetch
from django.urls import reverse
from django.utils.safestring import mark_safe
from byro.common.models impo... | [
"henryk@ploetzli.ch"
] | henryk@ploetzli.ch |
9f4bfed842a86372e09312e300493c91242bfe2d | 06eb702580b99481c04b06f5cb5f95cbcf78f7d1 | /Tryblock.py | a9ac4f99f91dcd75f6e1fad1da67be814d534d1a | [] | no_license | manojnookala/20A95A0503_IICSE-A-python-lab-experiments | 17c3f0f6788fd791820bc011a5dbc3e599059d17 | c3884160d3ada0cd78950c27692b38145ca0e76e | refs/heads/main | 2023-07-02T14:26:09.655819 | 2021-08-09T09:43:44 | 2021-08-09T09:43:44 | 367,543,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | try:
print("python")
except:
print("python is in theory subject")
else:
print("python is program subject")
OUTPUT:
python
python is program subject
| [
"noreply@github.com"
] | noreply@github.com |
208c7cc98238a16e009ecb25b02c2d1bb56135d4 | fb701e7d53eaa2d1d50f70c45f6376228001f9a8 | /torchplp/utils/__init__.py | 4a40caa0d1cc73696e5aa977d0807cf1ed26a116 | [
"MIT"
] | permissive | Dakayadah45/torchplp | 24558004a8beeb29a823bd568f7361b1ceeb5dd0 | 2f779bdee600eb141d5205b6d38847a0cd0762fb | refs/heads/master | 2023-03-25T23:24:04.830416 | 2019-06-27T01:47:09 | 2019-06-27T01:47:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | # -*- coding: utf-8 -*-
"""
This subpackage is the collection of some usefully utils for covec
:Author: Verf
:Email: verf@protonmail.com
:License: MIT
"""
| [
"verf@protonmail.com"
] | verf@protonmail.com |
35640e86cf28f588fc9b3db655f767140312ca16 | 7ad2a4ae089c27df36760007bedc973744e0d07a | /utils/test_tensorflow.py | 049254f8ec9c70f267220618255ac8847120fb07 | [
"BSD-2-Clause"
] | permissive | WELLBEINGLWB/vode-2020 | e77bcce57b0855cbf50ec05ad4fdf65dd660eac7 | 592e587a608e9e5c568b70e04c142a7e8d61aa62 | refs/heads/master | 2022-04-13T09:44:30.271968 | 2020-03-29T17:28:45 | 2020-03-29T17:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,935 | py | import tensorflow as tf
import model.build_model.model_utils as mu
from tensorflow.keras import layers
class TestTfBug:
@tf.function
def test_func_in_class(self):
print("\n===== start test_func_in_class")
a = tf.random.uniform((8, 100, 100, 3))
b = tf.random.uniform((8, 100, 100, 3))
... | [
"goodgodgd@yonsei.ac.kr"
] | goodgodgd@yonsei.ac.kr |
80027986549ef286ea0fbeedef91e67f989c1b92 | 1d0abaa73cc6deacd4de19889169c3dc9d0124ac | /MachineLearning/Supervised_Algorithms/linear regression is failed for logistic regression.py | 49e859a37e1d74a14209edcaf6321b350aeb0e7f | [] | no_license | sawantprajakta/Machine_Learning | 177c79247be0957436b9c9816a7439f100174e76 | 544b4a7a85eed532b532194ce626e59271dd98e5 | refs/heads/master | 2020-08-12T11:14:57.337402 | 2019-10-13T04:00:06 | 2019-10-13T04:00:06 | 213,411,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | #!/usr/bin/env python
# coding: utf-8
# In[9]:
import numpy as np
import theano as th
import matplotlib.pyplot as plt
# In[10]:
#1st step to fetch data
#create some sample data and length of each should be same
xdata = np.asarray([1.2,2.0,3.6,5.8,9.11,8.51,12.55,18.52,45.12,65.12])
ydata = np.asarray([1,0,0,1,1,... | [
"noreply@github.com"
] | noreply@github.com |
671887b95923a74ade6b13c82c33b4957f7fe8ed | 7e6cc2916a08cfc65d94a7963d782696b63365ff | /polls/presenter.py | 0e31176b3f9bf055ea2f43ae92d7fff00423a8a4 | [] | no_license | Chithien994/myapp | 63f488519195a4fecafce6ef641cf957d2a73114 | ac1491fa057b2dc89357cee98856919d0c2f2a0d | refs/heads/master | 2022-12-11T12:09:04.140124 | 2018-09-17T04:03:28 | 2018-09-17T04:03:28 | 145,932,880 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | from .models import Question
DELETE = "delete"
SAVE = "save"
class PollsPresenter():
def add(request):
question_text = request.POST.get('question_key','')
if question_text:
Question.create_question(question_text)
def options(request):
option = request.POST.get('option','');
if option.lower() == DELETE... | [
"chithien994@gmail.com"
] | chithien994@gmail.com |
1ad66d35e9092d3e8813413addaeda4740f0ea04 | 6dda5b097a5bdcc4c42c4aaa7e25fbef25443c22 | /charades/charades/test/test_acting.py | e9a34eb5515bb637c9216aa4e4e3bfd8ad529afd | [] | no_license | ElliotAOram/GhostPyramid | 569d90f9d848547f311d363b21248936d853ce90 | 5de52d27d56f73b699c4111d0d24269d55b7fc15 | refs/heads/master | 2020-12-30T23:59:51.302737 | 2018-03-21T08:58:41 | 2018-03-21T11:53:55 | 80,560,038 | 0 | 0 | null | 2017-05-07T15:33:48 | 2017-01-31T20:39:58 | Python | UTF-8 | Python | false | false | 3,119 | py | """Tests for the acting.html and associated view"""
from selenium import webdriver
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
class ActingTests(StaticLiveServerTestCase):
"""
Acting.html tests for page elements and button uses
"""
@classmethod
def setUpClass(cls):
... | [
"elo9@aber.ac.uk"
] | elo9@aber.ac.uk |
b5fc5c27bf55103c13421385e42b252a54f84749 | 0c1d6b8dff8bedfffa8703015949b6ca6cc83f86 | /lib/worklists/operator/CT/v4.0/business/GPON_2+1/QoS_DSCP/script.py | 8027050e03e5cef79e0d59b75c244127b0de19af | [] | no_license | samwei8/TR069 | 6b87252bd53f23c37186c9433ce4d79507b8c7dd | 7f6b8d598359c6049a4e6cb1eb1db0899bce7f5c | refs/heads/master | 2021-06-21T11:07:47.345271 | 2017-08-08T07:14:55 | 2017-08-08T07:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,812 | py | #coding:utf-8
# -----------------------------rpc --------------------------
import os
import sys
#debug
DEBUG_UNIT = False
if (DEBUG_UNIT):
g_prj_dir = os.path.dirname(__file__)
parent1 = os.path.dirname(g_prj_dir)
parent2 = os.path.dirname(parent1)
parent3 = os.path.dirname(parent2)
parent4 = os... | [
"zhaojunhhu@gmail.com"
] | zhaojunhhu@gmail.com |
77fdcc7d6682e3b9ddecb4fabf5b61a07d9b8051 | 39231d3a378cd8b5b79adf2205036e4e0b4d214d | /app.py | 01cef072bc9cf0ac325f9578a06425351a3c3a40 | [] | no_license | AlitosJM/Streambible | e2ea269637389085e31e51858a036cb63a2a1637 | 6b6c5248a22a8f46dbe3e963e0eb289aea63bae2 | refs/heads/main | 2023-02-18T19:47:54.641916 | 2021-01-22T07:08:30 | 2021-01-22T07:08:30 | 331,719,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,390 | py | # Core Pkgs
import streamlit as st
import streamlit.components.v1 as stc
# EDA Pkgs
import pandas as pd
import neattext.functions as nfx
import random
# Data Viz Pkgs
import altair as alt
import matplotlib
from utils import *
matplotlib.use("Agg")
@st.cache
def load_bible(data):
return pd.read_csv(data)
def ... | [
"alitosjm@gmail.com"
] | alitosjm@gmail.com |
0358ca87e739da637c84f2918e2b073218f3b621 | cdb165eea099890b6bd1507d7704cd21d3f7ea63 | /blog/migrations/0004_blogpost_user.py | 8cda57d8bc91cfaa52043972516594d8cb62f0c1 | [] | no_license | afsana1210/Django_practice_code | 889c44d43f950ccb77d8cafe003bc63c6064dcd4 | 2c1408e0be446edef5b4bad551eca286b252329e | refs/heads/master | 2022-11-17T23:38:30.203735 | 2020-07-18T10:14:54 | 2020-07-18T10:14:54 | 280,479,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # Generated by Django 3.0.8 on 2020-07-15 11:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('blog', '0003_auto_202007... | [
"noreply@github.com"
] | noreply@github.com |
0ebdfdaf811b84504fc1706b59f28f24ac365cf9 | e05b570f2f8172193adeeb14ec864491098b2749 | /NLP_FakeNews/Spam_Score.py | 5bb284c7c7c1e90585345b6b47a72d8368ca8a62 | [] | no_license | VipinRamadas/fake-news-detection-using-ML | e4d3e4ad19ce0747d7f330ba29d552a36263f123 | 14065de5a63e2ef0360905ed34c89bafed40d7bc | refs/heads/main | 2023-06-18T15:18:41.511132 | 2021-07-11T14:14:17 | 2021-07-11T14:14:17 | 373,447,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,102 | py | """
Created on Tue Nov 18 16:54:40 2018
@author: gpandey
"""
#http://www.dt.fee.unicamp.br/~tiago/smsspamcollection/smsSpamCollection.arff
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import pickle as pkl
import pandas as pd
messages = pd.read_csv('dataset/SMSSpamCollection', sep='\t',
... | [
"noreply@github.com"
] | noreply@github.com |
33fcda9693de3c66b5e8feec3f18b116df963e95 | ad1a43084c709d340b70af786dc16057ffec1fbe | /Module 1/Chapter 2/prog5.py | 16a511b5d68e06f161da682c557d82588efe2347 | [
"MIT"
] | permissive | PacktPublishing/Raspberry-Pi-Making-Amazing-Projects-Right-from-Scratch- | f58ad7c1f567cc7dee9bde9e5d2ac00e7a652705 | 49fd30ca8e1e30e7d85cf14e9dcb6e1d24d4a445 | refs/heads/master | 2021-06-24T22:18:39.631825 | 2021-01-14T08:52:38 | 2021-01-14T08:52:38 | 67,773,927 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | import mcpi.minecraft as minecraft
import mcpi.block as block
mc = minecraft.Minecraft.create()
cur_x , cur_y , cur_z = mc.player.getPos()
mc.setBlock(cur_x + 1 , cur_y , cur_z , block.ICE.id )
| [
"akashpatel@packtpub.net"
] | akashpatel@packtpub.net |
a2d10d6ff44f902b929f0b62b703589f1f7756f7 | 19d43b8c175bb5304393cf9c259eacb7110dd4fc | /objectModel/Python/cdm/resolvedmodel/resolved_attribute.py | 77b50937eb6d60885c0362dca92be9f242d7eb5e | [
"CC-BY-4.0",
"MIT"
] | permissive | bissont/CDM | 3fd814566ea1bf9d19e300cd5b438b384ce4bcba | 0cffb140e0b41e526be072b547cae91a03c4cd6f | refs/heads/master | 2020-12-29T12:55:23.822187 | 2020-02-05T02:19:27 | 2020-02-05T02:19:27 | 238,614,156 | 1 | 0 | null | 2020-02-06T05:21:51 | 2020-02-06T05:21:50 | null | UTF-8 | Python | false | false | 5,092 | py | # ----------------------------------------------------------------------
# Copyright (c) Microsoft Corporation.
# All rights reserved.
# ----------------------------------------------------------------------
from typing import Any, cast, Optional, Union, TYPE_CHECKING
from cdm.resolvedmodel.resolved_trait_set import... | [
"nebanfic@microsoft.com"
] | nebanfic@microsoft.com |
2c3f36bd187b1f9313190f7d08985f04bd8353f1 | 32a56cf1f4764adc75b6fab32d6e14bfecdeaf97 | /Django Level 3/basic_forms_2/basic_app/forms.py | 26a16169e48c51fed4f7ed32c1f0b91a55719da9 | [] | no_license | sanchit-zeus/Workspace_html | 52dfef7881e3c1f309bc6904a8887dcbc593728c | 4ab344a151be2b426ecd9271ba7d877d64ab8808 | refs/heads/master | 2020-05-09T13:19:41.981502 | 2019-04-13T09:19:25 | 2019-04-13T09:19:25 | 181,147,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | from django import forms
from django.core import validators
# custom validators
def check_for_z(value):
if value[0].lower() != 'z':
raise forms.ValidationError("NAME NEEDS TO START WITH Z")
class FormName(forms.Form):
name = forms.CharField(validators=[check_for_z])
email = forms.EmailField()
... | [
"35419687+sanchit-zeus@users.noreply.github.com"
] | 35419687+sanchit-zeus@users.noreply.github.com |
11130bd887ff55c3b35d5853fb7c9211baae7e30 | a8769aba8d3985f0db0a613c6a62aa1c77ce4e82 | /manage.py | 54bb8764709852889475d292b07c87d092ee2cb4 | [] | no_license | AkankshaTiwari09/DonationProject | 8963f3995d618abdd1ad79310d1ecfb89ce0526c | dd091d6fdb56965147a5ec00b511a1343d0c18c1 | refs/heads/master | 2023-04-26T03:24:19.733408 | 2021-06-01T04:21:55 | 2021-06-01T04:21:55 | 372,698,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'PaymentGateway.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"akanksha28.gkp@gmail.com"
] | akanksha28.gkp@gmail.com |
136df730cde345022022edb739c912f8a89d0c63 | 70914130eb3c95626167426557cd698f70ff1863 | /scrap/api/migrations/0001_initial.py | d326c65a35d14aef0fef0c90ec5ccd3b9676c2a5 | [] | no_license | R-Krishnan21/web-scraping | 1031713f5bf35d6ce00dce67bdeb99173e52191b | 9f9aa05514b1bdd656bad9e1df94da172dabbbf7 | refs/heads/main | 2023-02-19T15:33:37.437312 | 2021-01-18T12:53:38 | 2021-01-18T12:53:38 | 330,641,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | # Generated by Django 3.0.7 on 2021-01-17 08:09
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Questions',
fields=[
('id', models.AutoFiel... | [
"krishnamkr12357@gmail.com"
] | krishnamkr12357@gmail.com |
6f80ded7d8f660a562afaf5e733a56123c608dae | 5339ef72c3ccda405c23ff60c97c5306810c4ec9 | /src/app.py | 2202ae7e3acacb24a2f44e3f0489f40fb5d8c59f | [] | no_license | matheuscarino/simple-python-flask-webapp | 5a44d18937ce611866e1ebe20922580a81b33032 | 2efe79c61714d0b2b665828e8317cd86b73db489 | refs/heads/master | 2023-07-10T14:17:00.212648 | 2023-06-24T17:22:42 | 2023-06-24T17:22:42 | 208,187,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def home():
return "Hello, World!"
if __name__ == "__main__":
app.run(host='0.0.0.0', port=8080, debug=True) | [
"matheuscarino@gmail.com"
] | matheuscarino@gmail.com |
2b9e1a91205de5663111b9f61c7cc6a51b919853 | 53faa0ef3496997412eb5e697bc85eb09a28f8c9 | /supervised_learning/0x06-keras/5-main.py | 4c36d29b9b95d170647282429ea17053b98b29ca | [] | no_license | oran2527/holbertonschool-machine_learning | aaec2ffe762b959573f98a5f4e002272a5d643a3 | 8761eb876046ad3c0c3f85d98dbdca4007d93cd1 | refs/heads/master | 2023-08-14T00:37:31.163130 | 2021-09-20T13:34:33 | 2021-09-20T13:34:33 | 330,999,053 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | #!/usr/bin/env python3
"""
Main file
"""
# Force Seed - fix for Keras
SEED = 0
import os
os.environ['PYTHONHASHSEED'] = str(SEED)
import random
random.seed(SEED)
import numpy as np
np.random.seed(SEED)
import tensorflow as tf
tf.set_random_seed(SEED)
import tensorflow.keras as K
session_conf = tf.ConfigProto(intra_op... | [
"orlago250183@gmail.com"
] | orlago250183@gmail.com |
06e91545546c5d5f9f8c5ae573bbd5682f098d9e | e7b7cc34f77c71e61aa0fa05bcc62f54fc2fc0e1 | /Array/test_q056_merge_intervals.py | 144e68cff13f68e05cc835a31a46718e9c0dfad5 | [] | no_license | sevenhe716/LeetCode | 41d2ef18f5cb317858c9b69d00bcccb743cbdf48 | 4a1747b6497305f3821612d9c358a6795b1690da | refs/heads/master | 2020-03-16T16:12:27.461172 | 2019-04-22T13:27:54 | 2019-04-22T13:27:54 | 130,221,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import unittest
from Array.q056_merge_intervals import Solution
from common import Interval
class TestMergeIntervals(unittest.TestCase):
"""Test q056_merge_intervals.py"""
def test_merge_intervals(self):
s = Solution()
self.assertEqual([[1, 6], [8, 10], [15, 18]], s.merge([Interval(1, 3), In... | [
"429134862@qq.com"
] | 429134862@qq.com |
da32f7c5d77290af8959d8e13d7d608b43117cd9 | 8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b | /enthought/traits/ui/value_tree.py | 04dc87e1db7556f3b15b867fb608ebd7c44d0b38 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/etsproxy | 5660cf562c810db2ceb6b592b6c12274bce96d73 | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | refs/heads/master | 2023-03-27T04:51:29.297305 | 2020-12-02T09:05:18 | 2020-12-02T09:05:18 | 1,632,969 | 3 | 1 | NOASSERTION | 2020-12-02T09:05:20 | 2011-04-18T22:29:56 | Python | UTF-8 | Python | false | false | 49 | py | # proxy module
from traitsui.value_tree import *
| [
"ischnell@enthought.com"
] | ischnell@enthought.com |
e18bf4f42031dc1152129e3d095e5b10e0a4547c | 4244e6cc83c31f5542bd665eccc3fc48a7f8e349 | /app/auth/views.py | 1860e7c022d5fbc18ff1db1ae481b7186798136d | [] | no_license | ircad-taiwan-showchwan/dicomweb | 0743b9c99d5d1a48ab419577e956cafe41f1641a | d2440ea88e3e5fe48f0c375ed5ae442772aa1b08 | refs/heads/master | 2022-12-13T08:45:47.239644 | 2018-08-23T03:03:46 | 2018-08-23T03:03:46 | 145,790,960 | 1 | 1 | null | 2022-12-08T02:22:49 | 2018-08-23T02:45:38 | JavaScript | UTF-8 | Python | false | false | 1,742 | py | from flask import flash,redirect,render_template,url_for,current_app
from flask_login import login_required,login_user,logout_user
from . import auth
from forms import LoginForm,RegistrationForm
from .. import db
from ..models import User
from datetime import datetime
from app import mail # you can now import the Mail... | [
"sharmaatul11@yahoo.com"
] | sharmaatul11@yahoo.com |
507604caa7ea3af680f00987149f3decf47ab05e | c58b5920354503f8c3c1ec353e16f767c8cebf9f | /practice4/myvenv/bin/django-admin.py | 1a666e9be7d2074d18ba31ba70ebf7ee9a6c281e | [] | no_license | nam2934/LikeLion | 0ce9b6999146fa86947a44f681cbaeb0c5b9560e | f52e148fdaf7d5f678f50dec3b4dcb38d642f90a | refs/heads/master | 2020-05-18T07:17:06.496475 | 2019-05-06T18:34:46 | 2019-05-06T18:34:46 | 184,248,805 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | #!/Users/jeongnamjin/Desktop/likelion/practice4/myvenv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"nam2934@naver.com"
] | nam2934@naver.com |
26badfb0c04bfb46b37abe64726a3d5fcd24a87b | a0134ad7265d7460e7ca9127686a850e7e826da5 | /models/test/chainer/ctc/test_hierarchical_ctc.py | 6acb356d8f73a700f3e2254af919d20d8b8891ad | [] | no_license | carolinebear/pytorch_end2end_speech_recognition | 09ce03fb878353db1e25f599a62537655650a19c | b6b60a338d65bb369d0034f423feb09db10db8b7 | refs/heads/master | 2020-03-19T05:56:51.396599 | 2018-06-01T09:35:49 | 2018-06-01T09:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,830 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Test hierarchical CTC models (chainer)."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
import time
import unittest
sys.path.append('../../../../')
from models.chainer.ctc.hierarchical_ctc im... | [
"hiro.mhbc@gmail.com"
] | hiro.mhbc@gmail.com |
38d9bd39d321cb81cc866e7a38915839381c378f | a2af85d9ab17803117381fc1976c6f8d56f54dc2 | /etna/records/migrations/0005_alter_reference_number.py | 8e52bc3230a66138fa825a0c26da3c2d6e297000 | [] | no_license | jacobtoppm/ds-wagtail | e64a046d0ce940c146cbe608415dbe20b806b1b6 | c839ab7c15c2d37e4f0337ef9abbf087ff525664 | refs/heads/main | 2023-09-02T22:59:15.088839 | 2021-10-27T11:09:51 | 2021-10-27T11:09:51 | 422,595,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 3.1.8 on 2021-06-24 13:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('records', '0004_recordpage_arrangement'),
]
operations = [
migrations.AlterField(
model_name='recordpage',
name='ref... | [
"535833+danbentley@users.noreply.github.com"
] | 535833+danbentley@users.noreply.github.com |
c88a4d8e2cc001c7b88a803278245d24cd0071ad | 834e36fb8e87b129eb1d67d058132c32a430229a | /rest_framework/lib/orm/peewee.py | 9ba14b497de2490da6db604cd9c15cbdba049227 | [] | no_license | sjl421/tornado-rest-framework | bea06fa8278e4831fcd38abfb6c8aa69e4e1e436 | c61d11020d5e680b8d1c01469d764517484665bd | refs/heads/master | 2020-03-18T21:09:53.524478 | 2018-05-11T04:57:57 | 2018-05-11T04:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168,492 | py | # -*- coding: utf-8 -*-
import re
import time
import uuid
import weakref
import calendar
import datetime
import decimal
import hashlib
import itertools
import logging
import operator
import threading
from copy import deepcopy
from functools import wraps
from inspect import isclass
from collections import Callable
from ... | [
"caowenbin@xuetangx.com"
] | caowenbin@xuetangx.com |
ec54d3609b9f2aeb8fc83b22f7257899302167a2 | 3930ccd1e546c3ce34282156c1e348977dcc1b36 | /program_files/0707_reaction.py | 4315b0eb21ec91c515522f862f068b276086098c | [] | no_license | RiordanWG/CS230-SU2021 | 7076c4bb439df95a9f998c7a4973fb8bd3489228 | a091aa16752e63c41414cfec20c0f015f9436a5e | refs/heads/main | 2023-06-19T09:30:10.331574 | 2021-07-12T23:34:32 | 2021-07-12T23:34:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # reaction time tester
import time
print("Welcome to the reaction time tester!")
start_time = time.time()
print("Hit the enter key as fast as you can.")
input()
elapsed_time = time.time() - start_time
print("Wow, that was fast. It took " + str(elapsed_time) + " seconds")
| [
"matt.macarty@gmail.com"
] | matt.macarty@gmail.com |
162bbae5995ec23f5fd6e29e56fd338f22b0d3b5 | 8ea6fa82913d796561247bc0b7b7c31c7b61bf4f | /Dynect/get_traffic_director_service.py | 48821ba6a89ff99c69aabb11d5fa4e22efe9b448 | [] | no_license | mady4ever/GSLB | 7b4a44192520e78bfa67de0978b7147673232c57 | 0a64383132b9d0d3cb24b474e9af578eb6eeef9c | refs/heads/master | 2021-01-10T07:46:29.125774 | 2015-12-03T07:28:44 | 2015-12-03T07:28:44 | 47,315,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | import sys
from dynect.DynectDNS import DynectRest
from pprint import PrettyPrinter
rest_iface = DynectRest()
# Log in
print "Logging in to API"
arguments = {
'customer_name': 'ciscocloud',
'user_name': 'UserName',
'password': 'UserAPIKey',
}
# ciscocloud UserName Cisco!gs1b
response = rest_iface.execut... | [
"mahepate@cisco.com"
] | mahepate@cisco.com |
4403e503e127c23cb397fe72eb4aca8267bc9fc4 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-cloudrtc/huaweicloudsdkcloudrtc/v2/model/update_url_auth_request.py | 8044913f81326b931d750d21e5b323e8a54d90bf | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,802 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateUrlAuthRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The k... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
445467631ec00a17e500cb88d7b69ac011e4e605 | fc93668dd9d324e8c7de1f8f7ead0d15232e9cb8 | /SSD/ssd/data/build.py | bc3907228cbfb1648c33a9ad4a4c5fd58da465f9 | [
"MIT"
] | permissive | tormey97/MasterProject | 551aaed2299ee3ec494691324bbbb644fe1edf2d | d4f5d6a4d6e0df83ee44c726b16878595cd5fa44 | refs/heads/main | 2023-06-06T22:37:32.592523 | 2021-06-27T07:35:58 | 2021-06-27T07:35:58 | 344,808,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,492 | py | import torch
from torch.utils.data import DataLoader
from torch.utils.data.dataloader import default_collate
from SSD.ssd.data import samplers
from SSD.ssd.data.datasets import build_dataset
from SSD.ssd.data.transforms import build_transforms, build_target_transform
from SSD.ssd.structures.container import Container
... | [
"torstme@stud.ntnu.no"
] | torstme@stud.ntnu.no |
e81b96fa78bb125eb8c3180d79b972fc1c57b455 | 5202326728678c2da05e6b726719ce44fc502bee | /app/you_get/extractors/__init__.py | c4cd40c021b6182019fd6fdd113c1c15e221aefb | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | wnpllrzodiac/GUI-YouGet | 52b454814f48a63fd27d7234131120dc8aeec348 | 088dc5b07acc457089364c386ea0521541fc410f | refs/heads/master | 2021-01-17T22:53:37.744928 | 2016-06-18T14:36:59 | 2016-06-18T14:36:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | #!/usr/bin/env python
from .acfun import *
from .alive import *
from .archive import *
from .baidu import *
from .bandcamp import *
from .bilibili import *
from .cbs import *
from .ckplayer import *
from .cntv import *
from .dailymotion import *
from .dilidili import *
from .douban import *
from .douyutv import *
from... | [
"zwkv587@gmail.com"
] | zwkv587@gmail.com |
4dfa2a46bfda6ade0faa997c3a6af801ed19872e | 792fc8c459f4197e53b4eacb71766e54cd3197c9 | /main.py | 96a683da6f46b5f5188b2f080d05d116d2e20b39 | [] | no_license | davidbosc/PokemonMoveSelector | 77a6e538a2abf97d4bf36b99a1261d4128a9d20b | cb3846d527d2e25d0b2e35cd5335f6fec131980b | refs/heads/master | 2022-12-13T07:23:24.387780 | 2020-09-13T20:44:27 | 2020-09-13T20:44:27 | 293,627,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | import cv2
import numpy as np
from PIL import ImageGrab
import win32gui
import math
from InputController import Input
import WindowHandleUtil
from TextDetectionAndRecognition import TextDetectionAndRecognition
from LevenshteinDistance import LevenshteinDistanceService
import TwtichOAuthGeneration
import CancelAuthoriza... | [
"davidjnbosc@gmail.com"
] | davidjnbosc@gmail.com |
990db47ec28843c8eb2d8542de7e375dbb43c859 | 9c37742bdd09ccfb02da09be79e20b7333694d9b | /pyswagger/tests/v1_2/test_app.py | d65c18e48ea45b37e6f89ececb380e1a155dc7f9 | [
"MIT"
] | permissive | simudream/pyswagger | 72eea9a24140d3dfbb4f6a4537e10a9b07c4d09f | 1dcf7ab291d9535dfdb705e0cb0e2c6f2b0fb474 | refs/heads/master | 2020-12-11T05:32:38.335378 | 2015-01-22T11:39:10 | 2015-01-22T11:39:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,178 | py | from pyswagger import SwaggerApp, errs
from ..utils import get_test_data_folder
from pyswagger.spec.v2_0.objects import (
Schema,
Operation,
)
import unittest
import httpretty
import os
import six
class HTTPGetterTestCase(unittest.TestCase):
""" test HTTPGetter """
@httpretty.activate
def test_ht... | [
"missionaryliao@gmail.com"
] | missionaryliao@gmail.com |
29f97a8eaec13dfa7a5378896409a8b4770b2b4e | 934d61923a73d6aaee0ffeb61ad9410abe17a1d0 | /plugins/video/UlmenTV/default.py | 329342aeb39336565fc79d38fc235fd58e44e81a | [] | no_license | quickbreach/xbmc-addons | 151cdec2a946e63f7fc2d715156bedf9c308492c | 7b7d3518506fbf4f590ad69ee1027a485169c03d | refs/heads/master | 2021-05-29T20:31:38.134618 | 2012-05-25T23:40:08 | 2012-05-25T23:40:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,833 | py | """
A plugin to get videos from UlmenTV
"""
import sys, os, os.path
import xbmc, xbmcgui, xbmcplugin
import urllib, urllib2, re, time
from shutil import rmtree, copy
import traceback
__plugin__ = "UlmenTV"
__version__ = '1.38'
__author__ = 'bootsy [bootsy82@gmail.com] with much help from BigBellyBilly'
... | [
"bootsy82@753fbab9-553a-0410-a42e-33068982fbc4"
] | bootsy82@753fbab9-553a-0410-a42e-33068982fbc4 |
272dc78fa2776b1b4ca51387a148e4151836292f | a53bfe90ccc561c0b97436583809bc7fbbacab27 | /src/ggrc/models/hooks/proposal.py | 12a8ec48bf44fda3051ad8a61271df614837b400 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | indrajithbandara/ggrc-core | ed970499bc69b587ded9e195671d4bc971b9ed6d | 23bbec94d4bee0e8ce65c52bc894f6301f2b6a69 | refs/heads/master | 2021-04-15T13:50:36.757375 | 2018-03-21T16:52:40 | 2018-03-21T16:52:40 | 126,467,536 | 1 | 0 | null | 2018-03-23T10:08:19 | 2018-03-23T10:08:18 | null | UTF-8 | Python | false | false | 3,786 | py | # Copyright (C) 2018 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""AccessControlList creation hooks."""
import datetime
from sqlalchemy import inspect
from ggrc.services import signals
from ggrc.models import all_models
from ggrc.models import comment
from ggrc import... | [
"pod2metra@gmail.com"
] | pod2metra@gmail.com |
5bf5303130e83da0c1f29e1a8dcbf3327c733a31 | 3df0d97012bcef27c4551aa5198ab66abea1bab1 | /vk/api/api.py | 9ab7d46e46ff0f529fb28b00f5804c17e4735eb8 | [] | no_license | OrelSokolov/NLM | 0ac7320083bdad9dd4c9f27188bb1704981cb929 | 310ebdae913c6e725a5ea8bad401aa6f68c65c78 | refs/heads/master | 2020-05-17T05:37:24.247305 | 2012-09-07T18:23:47 | 2012-09-07T18:23:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,869 | py | #!/usr/bin/env python
# coding: utf-8
import json
from urllib import urlencode
import urllib
import urllib2
import time
import subprocess as sps
import cfg.main
app_path=cfg.main.getAppPath()
cfg_path=cfg.main.getCfgPath()
apocalypse_time="none"
token="none"
user_id="none"
def loadUserData():
'''Загрузка из файла ... | [
"orelcokolov@gmail.com"
] | orelcokolov@gmail.com |
a448c9227d0b822d8e2f908cfc10bd93e53162b2 | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/memops/gui/DataEntry.py | e60cff844461888a85150c46163e540f8db69eb0 | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 5,930 | py |
"""
======================COPYRIGHT/LICENSE START==========================
DataEntry.py: <write function here>
Copyright (C) 2005 Wayne Boucher, Rasmus Fogh, Tim Stevens and Wim Vranken (University of Cambridge and EBI/MSD)
=======================================================================
This library is fr... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
bf78cdc562890741187c733e87401fc2b2586ed3 | 040c0bf71cc69e90dc37de4a155b1c910b77239b | /cocoamodel/training.py | 21dad313084582d9d81aae4d908a72ee6c0ff956 | [] | no_license | jurodr/CocoaModelPreTrained | 712f2878f1f09778edd82f5a583849830ddb88b8 | eeeb26b5d5de81d2ff90e45ca8765329849143f4 | refs/heads/master | 2021-08-29T20:10:36.760741 | 2017-12-14T22:13:07 | 2017-12-14T22:13:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,715 | py | import tensorflow as tf
from tensorflow.python.platform import tf_logging as logging
import shutil
import cocoamodel.configvalues as cv
from cocoamodel import gendataset, configvalues, utils, process
from inception.inception_resnet_v2 import inception_resnet_v2, inception_resnet_v2_arg_scope
slim = tf.contrib.slim
... | [
"jroddeveloper@gmail.com"
] | jroddeveloper@gmail.com |
6c02a222ab4aab87222e497fc1f62286d1941584 | f808052dc11b7ec3b9c25b9df32ad901cdf39f3e | /misc/split_data_online.py | f2b6c221a4cb2a5e20f9109b631a8cc29356488f | [] | no_license | hatalis/DSM | 96181ba7ffc8cb7d41a264113f4359411c68273f | 126cc5ddadb23a7476de80bf2e8e066cf7708b4c | refs/heads/master | 2021-10-12T03:02:26.680795 | 2019-02-01T02:21:14 | 2019-02-01T02:21:14 | 146,820,869 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 581 | py |
def split_data_online(experiment):
L_total = experiment['L_total']
N_train = experiment['N_train']
N_test = experiment['N_test']
L_total = L_total[3:]
N_train = N_train -3
experiment['L_total'] = L_total
experiment['N_train'] = N_train
L_test_actual = L_total[N_train:]
L_test_ac... | [
"hatalis@gmail.com"
] | hatalis@gmail.com |
21c8738e9a893aef2a171a99dc494b14dfff1afa | f9072dd9008ccdc97b887621a1b00c210f3fed82 | /django_projects/mysite/ads/views.py | 86efc0b9aea8a57e2f132451aafb34347deb12ba | [
"MIT"
] | permissive | zhephirothz/djangoCoursesLearning | 9795359ef0e79fa12a2edcd0b41d1d99d02502cd | e4eadede3c1d78a79dd63018fbd96c350bf39f8b | refs/heads/master | 2023-07-10T03:41:44.292816 | 2021-08-15T12:44:10 | 2021-08-15T12:44:10 | 396,346,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,163 | py | from django.views import View
from django.shortcuts import render, redirect, get_object_or_404
from django.urls import reverse_lazy
from django.http import HttpResponse
from django.contrib.auth.mixins import LoginRequiredMixin
from ads.models import Ad, Comment, Fav
from ads.owner import OwnerListView, OwnerDetailView,... | [
"zhephirothz@github.com"
] | zhephirothz@github.com |
3fde9b355dbfa3a54a9aa52d7be9cb574bc0ad08 | 8ac8c254db733ac5c021582daeb49931f8ab1d92 | /src/glomerulus/search/pws_clone/__init__.py | 7e0bed2c769525c1989a012cb60860426e4325a3 | [] | no_license | kaglowka/glomerulus | c5d0490427f724a733b001b200fb31cfab57f117 | 6f18f9961b2c17725555c5b53d9408228169be00 | refs/heads/master | 2022-12-10T01:40:12.374036 | 2018-01-22T22:14:37 | 2018-01-22T22:14:37 | 117,331,213 | 0 | 0 | null | 2022-12-07T23:45:30 | 2018-01-13T09:30:57 | Jupyter Notebook | UTF-8 | Python | false | false | 50 | py | from .google import Google
from .bing import Bing
| [
"krz.glowka@gmail.com"
] | krz.glowka@gmail.com |
357b04a32529cb3968717f612e76cdf65e033720 | afb58e8c75ad1016bcc4a622a1b29aa0d44634aa | /util/test1.py | 5d29fe2c33fbcf6fc2405367bb994eb8bedef087 | [] | no_license | YCBDM/Interface_Auto_test | 421b3ad2e124584512bfd71e8bead2ca8ae28dea | eaeb996b969afcdd79e4b02bb6660ddf6a4e56af | refs/heads/master | 2020-03-18T11:36:46.167748 | 2018-05-28T06:38:52 | 2018-05-28T06:38:52 | 134,681,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | print('wertuyruiyi') | [
"835135815@qq.com"
] | 835135815@qq.com |
0d1cf71a2a83f1a18e5814e790288185493fcdfe | 2e8784dfccaac68d4517bc3e03e027abec9db6b3 | /outputToSheets.py | cafdfaf0a9207290082079f3acab76e83f44d386 | [] | no_license | dmanoo526/Xbox_Friend_Finder | 3203e729e278c67bcaab6a2f6ba1601da556ed94 | d76e40e8e1090be6363e4fb8c7443901009ecc90 | refs/heads/master | 2022-12-22T01:12:24.739418 | 2020-09-22T23:41:39 | 2020-09-22T23:41:39 | 202,809,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | """
This file is comprised of a function which takes a final master dictionary from gamertags.py and writes the data to the
Friends_Of_Gamertags sheet.
@Input: takes a dictionary and writes the new user values to google sheets api
@Return Type: None
"""
#must run "pip install gspread oauth2client" in cmd local project... | [
"dmanoo526@gmail.com"
] | dmanoo526@gmail.com |
a605dfcfc2f4d00faa17e9fbac69fb61a709b560 | b35469b3a3ef3ecb8da35a178ba0994bae2989b3 | /kubevirt/models/v1_pci_host_device.py | 65d45e6884a716731c600aef51e52b927476c143 | [
"Apache-2.0"
] | permissive | CHsixnine/client-python | 4802d76bbe3761a1311038665d931349298bcd81 | 315335602923dacbc3b73b23339002d69a5a41cc | refs/heads/master | 2023-03-20T22:45:25.578704 | 2021-03-17T07:34:18 | 2021-03-17T07:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,120 | py | # coding: utf-8
"""
KubeVirt API
This is KubeVirt API an add-on for Kubernetes.
OpenAPI spec version: 1.0.0
Contact: kubevirt-dev@googlegroups.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class V1PciHos... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
374fb7f9548ddb214ed23c9f91baa6f51c6ecd9a | eb722922339781fa6bd9937e69383fcd06256738 | /day1/kapua-python-client/swagger_client/models/user_query.py | f40b1b68ccf746a9a9f1ae2d1ffd2154a5689df1 | [
"MIT"
] | permissive | mrsrinivas/diec | 6a0c5da26ff23170b71217bfbc810bb98a897a83 | ae9a5203b506d5cc18cb381666351bf9ce6b9b6c | refs/heads/master | 2021-01-05T05:41:19.394898 | 2020-01-15T06:24:33 | 2020-01-15T06:24:33 | 240,901,175 | 1 | 0 | MIT | 2020-02-16T13:59:53 | 2020-02-16T13:59:52 | null | UTF-8 | Python | false | false | 6,757 | py | # coding: utf-8
"""
Eclipse Kapua REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
i... | [
"noreply@github.com"
] | noreply@github.com |
ea0a190ba1baf3bc8e415a04dcfccb386a3f0c03 | cb414725a5d02aec84155237c3b3cc904ba87294 | /leetcode/266. Palindrome Permutation/solution_2pass.py | 3f8c4c5bb5b3598001aa6b8d82866dd26d039c35 | [
"MIT"
] | permissive | vishalvb/Algorithms | 7f8741d02deda55303aba2d27a8331bb1ab586b9 | 7085265071fd898f536f0f3d7ec9f9b15b8f93a1 | refs/heads/master | 2021-06-23T06:19:04.847353 | 2019-07-10T23:15:11 | 2019-07-10T23:15:11 | 147,115,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py |
Complexity
Time: O(N): we are traversing the string twice. in the first pass we create dictionary with frequency of each char
and in second we check how many frequency are 1. O(2N) = O(N)
Space: O(1), at max we are only storing 128 chars in the worst case for any string
from collections import Counter
def permuat... | [
"vishal4790@gmail.com"
] | vishal4790@gmail.com |
641faad44bd84d51eddb03b1bbea7ec613fb0874 | cc49b6d6f496280d7acc11e33177008be24a98ae | /agent_a3c_ss.py | 3780b768d803798bdee504da9ec2ff669f6403aa | [
"MIT"
] | permissive | yculcarnee/rl_3d | 38789dee849b059cc31323d4767df6ea23720159 | 9e2816c7a7a466f843c583f312349531e3d0c4b0 | refs/heads/master | 2020-04-27T11:12:56.247186 | 2019-04-29T06:55:12 | 2019-04-29T06:55:12 | 174,287,704 | 0 | 1 | MIT | 2019-03-07T06:45:31 | 2019-03-07T06:45:30 | null | UTF-8 | Python | false | false | 16,898 | py |
#!/usr/bin/env python
from __future__ import print_function
import numpy as np
import cv2
import tensorflow as tf
import threading
import sys
import time
import os
def MakeDir(path):
try:
os.makedirs(path)
except:
pass
lab = False
load_model = False
train = True
test_display = False
test... | [
"noreply@github.com"
] | noreply@github.com |
e1b8a2a3c79e07c69c40d3e8faf146679ada1d3f | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-3235.py | b14f9bb2d964539516ff9bba1aaebca7d5ad3f67 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,737 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
01d2eb55812ff8487904a61f4e4bd4e2c70635dc | 30b52a486086152bab1988b9624e8efae2169401 | /scrp/cmc_scrp.py | 4ecd785c1027035837dd5a458574b05ad03cb9f5 | [
"Apache-2.0"
] | permissive | iamrobinhood12345/coinmarketcap-data-collector | 754bcd964e7048ada1b78381ab32e38d965f81fe | af0d1d96d0e5fb46623506a01fbc1d8fa24452ee | refs/heads/master | 2022-12-22T11:53:37.275355 | 2018-07-31T21:13:07 | 2018-07-31T21:13:07 | 143,069,832 | 0 | 0 | Apache-2.0 | 2022-12-08T00:01:46 | 2018-07-31T21:00:49 | Python | UTF-8 | Python | false | false | 1,799 | py | """This file when ran from the command line scrapes CoinMarketCap for crypto data."""
from requests import get
from bs4 import BeautifulSoup
from datetime import datetime
from pytz import timezone
from os import getcwd
from csv import writer
SOURCE = 'https://coinmarketcap.com/all/views/all/'
coins_dict = {}
# scr... | [
"bshields23@gmail.com"
] | bshields23@gmail.com |
c4437c4f53b504d44ea3ae350ef4cf622e58a3cd | d478fff490644a70434554daf9495ecc50ace755 | /utils/preprocessing.py | cf24f4a2888c9995bb67a97848340ddd0f0c4010 | [] | no_license | gohurali/BPE_SentenceClassification | bb79dff790d08c06fa3a18d9e6233f78998403b0 | 1f180beb95d899b177f1e59b79291d6f618988ab | refs/heads/master | 2021-06-13T15:49:22.335638 | 2019-11-02T18:02:31 | 2019-11-02T18:02:31 | 176,166,582 | 0 | 0 | null | 2021-03-25T22:55:27 | 2019-03-17T22:06:52 | Jupyter Notebook | UTF-8 | Python | false | false | 8,528 | py | import numpy as np
import os
import re
from sklearn.model_selection import train_test_split
class DataPrepper():
def __init__(self,config={},dataset=None):
self.config = config
self.dataset_type = dataset
if(self.dataset_type == 'trec'):
self.x_train, self.y_train, sel... | [
"gohurali@live.com"
] | gohurali@live.com |
72b8dfd636e841f1210ead1a13ab5f2f46422eac | b782f8d3788d8d88ff82ba5c32a343ae60f2183c | /grocerygo/web_crawler/loblaws_get_link.py | ce6af974e0c6fff1cf669568a9061ca95059e667 | [] | no_license | ChenWangCarleton/grocerygo_plus | 2a91ebe26c518271cf3161c6d2c1af94f6de7fad | b70497f0d917af2d88f7e72e0af68f04cb24fcce | refs/heads/master | 2022-12-03T12:40:54.750117 | 2020-08-19T05:05:28 | 2020-08-19T05:05:28 | 268,151,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,695 | py | import logging
import traceback
import time
import os
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
from selenium.c... | [
"wch4university@gmail.com"
] | wch4university@gmail.com |
3eec9f514074995590968d1b2f6ef53b70318efe | f028a3cb303071b957d9602e587181c6b08cf9de | /alloc_test/incremental_alloc.py | 086484056c00b5c41a39b1c6f41e767e79c68477 | [
"BSD-2-Clause"
] | permissive | 20ft/images | 5f16933c05ddbca04d83237f3b56c4f1a1093f8c | 1b36fdd4bfa36c19a3ef16d1d15a683cd6ae55d6 | refs/heads/master | 2021-09-18T14:31:06.870324 | 2018-07-15T22:32:45 | 2018-07-15T22:32:45 | 112,829,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | import time
allocs = []
while True:
allocs.append(bytearray(8*1024*1024))
time.sleep(1)
| [
"davep@zedkep.com"
] | davep@zedkep.com |
4b3b743d5ee5e28933cf9146e29acdcddced8a3e | 685996a29e2c70a0b7f0ab0fe28c235efc302505 | /apps/dise/models.py | 34314202e4f988be9114a70ced2745c4973253b8 | [] | no_license | sukanya08/ilp | 8bba42456e67afc75234b9adc71efb7973f5a23b | b56bc37856e9c3375c02cf99a4f2b55894620a93 | refs/heads/master | 2020-03-19T09:31:24.332423 | 2018-06-06T04:24:07 | 2018-06-06T04:24:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,389 | py | from django.contrib.gis.db import models
# Create your models here.
class BasicData(models.Model):
"""Basic model for DISE data"""
academic_year = models.ForeignKey('common.AcademicYear')
district = models.CharField(max_length=50, blank=True)
school_code = models.BigIntegerField()
school_name = mo... | [
"shivangi@klp.org.in"
] | shivangi@klp.org.in |
3ce17575b5cef374bae00ec73ad679e57233f273 | 93e29579ef58ba73a7dc80b3e72afb5db30f0252 | /app/config.py | aaf0bae7b68e7c7cec5a1a68b40f486941230b13 | [] | no_license | chandanadatta9/FeatureRequest | b8a634b630b400f567f0eae539379aae1c6c5865 | a89c33d4e1b8fc7d49b85dd14f22c866f0914d91 | refs/heads/master | 2020-05-25T15:42:55.653482 | 2016-11-17T03:39:38 | 2016-11-17T03:39:38 | 69,045,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | import os
from .constants import INSTANCE_FOLDER_PATH
class BaseConfig(object):
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
PROJECT = 'app'
SECRET_KEY = 'application_key_secret'
DEBUG = True
PROD = False
TESTING = False
SECRET_KEY = 'DEFAULT_SECRET_KEY'
try:
if not os.path.exists(INSTANCE_FOLDE... | [
"chandan.datta.cd@gmail.com"
] | chandan.datta.cd@gmail.com |
02ef9ab30632150239fa8e78c0f44b26d4946101 | 909b6501bfc3f47f9c754eb49131ef0a88db5760 | /libsnek/util.py | 849a2d0ab731f18e777478bfd1864b3ef1d8cdf1 | [] | no_license | adambard/libsnek | 80b9e5fccb6255fca6dd7b16bb116eb5d91be868 | a1015aed19b86d7ddcda35366baaaaafcdfe1610 | refs/heads/master | 2020-04-18T05:40:50.390640 | 2019-03-01T04:14:04 | 2019-03-01T04:14:04 | 167,287,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | import time
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
def timeit(fn, msg=None):
start = time.time()
result = fn()
duration = time.time() - start
if msg:
logger.debug(msg)
logger.debug("Elapsed: %0.2f", duration)
return result
| [
"adam@adambard.com"
] | adam@adambard.com |
83f01a44d28ca3c69cc62cbd15d86a252197e2d7 | 6504da061a8d67e9a130d3c9bc57c6aa8ae6e6b1 | /transposition.py | a25008c788fde28eef7c1d69d864b16eb0fce184 | [] | no_license | rajtyagi2718/tic-tac-toe | bef4cdf364d2547934472635f98518c5367cf907 | 414cd261b2b76ea7862351b70a15766612dc9cf0 | refs/heads/master | 2020-12-22T02:15:57.111181 | 2020-01-29T03:28:42 | 2020-01-29T03:28:42 | 236,640,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,179 | py | import numpy as np
import os
DATA_PATH = os.getcwd() + '/data/'
class Table:
"""
Array maps board by hash value. No reference to board object is kept.
Use board hash value as unique key. Transpositions, symmetric boards
collide in hash function, saving computation and memory.
"""
def __init_... | [
"noreply@github.com"
] | noreply@github.com |
68fe9f9a172492e2317fc1fbce5239ad8857048d | 33a726710580fdca28a54314b231029ecaf52db1 | /21_10_2021/DP_Tabulation/DP_bestSum.py | 97fd9e7d8029e4a5019a3c36ca5e2c8664ec275e | [] | no_license | douglasdotc/LeetCode_Exercises | 70c8c1245a38943057e29fc332dcd223b79762eb | 116e457ce8a223d235b12033dbc8a789183679d4 | refs/heads/main | 2023-08-31T14:12:40.672374 | 2021-10-21T16:07:34 | 2021-10-21T16:07:34 | 418,110,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | # Write a function that return an array containing
# the shortest combination of numbers that add up to exactly the targetSum
import copy
def bestSum(targetSum:int, nums:list[int]) -> list[int]:
len_bestSumT = targetSum + 1
bestSumT = [None]*len_bestSumT
bestSumT[0] = []
for t_idx in range(l... | [
"douglasdothnc@gmail.com"
] | douglasdothnc@gmail.com |
c1cfd00f39b6ddc83d83ac3acf0f6da9c42a1ae5 | 116ede6ffae8edce59a1be2a5e36ad7b8d29659b | /test_service.py | 839d26dcd280ab42482cc48e67eb043c82c4afd3 | [
"MIT"
] | permissive | cmput401-fall2018/web-app-ci-cd-with-travis-ci-sajjadhaiderrr | 891db8133a091248a60875db0484b41299e78ae9 | 4344976ef65d5ed14931473d09b831ca92316eb6 | refs/heads/master | 2021-08-18T15:58:52.676726 | 2018-11-03T05:12:45 | 2018-11-03T05:12:45 | 151,894,623 | 0 | 0 | MIT | 2021-06-10T20:55:10 | 2018-10-07T01:00:26 | Python | UTF-8 | Python | false | false | 944 | py | from mock import patch
from service import Service
@patch('service.Service.bad_random')
def test_bad_random(bad_random):
service = Service()
bad_random.return_value = 10
assert service.bad_random() == 10
@patch('service.Service.bad_random')
def test_divide(bad_random):
service = Service()
a... | [
"noreply@github.com"
] | noreply@github.com |
7aa7b91b48554f7ab4f4fba20e3d722d2244bbc5 | 57260782867a8d5588ad0bd7315746e3374a2ed6 | /my_env/bin/django-admin | 0a669c29ced280e6ec14526b140c456f12e62b30 | [] | no_license | hrittwik/weather_webapp | 2a14e2512ac93ff9600f52f75e21d1faeb5cc9e4 | f92cf610e609203d19e5aec576e032fa6eb31a96 | refs/heads/master | 2023-01-13T18:52:32.239458 | 2020-10-28T01:53:57 | 2020-10-28T01:53:57 | 306,178,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | #!/home/hrittwik/Documents/work/practice_projects/weather_app/my_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_lin... | [
"hrittwik@gmail.com"
] | hrittwik@gmail.com | |
a94b1d55d975be46dae258268aacd7712455dc9a | f065f257c328089ad5fc1c17d6ae0c5134b7f937 | /manage.py | b45e349ef07a1a69e19a387d31d85e7c6d4bc6bc | [] | no_license | TLHM/GithubStars | 08f72b00e45e10c1f93c250a2bee2469724e2e42 | f27613ab9677c1b08fbdc0ce2949abc4b6ac46ee | refs/heads/master | 2021-01-01T05:41:31.421614 | 2015-08-15T01:40:08 | 2015-08-15T01:40:08 | 40,742,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "GithubStars.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"tlhm@serenityforge.com"
] | tlhm@serenityforge.com |
a730633b744d42faf05762f39d04305fab23787a | aaa11f717302035907c69b5d15ba5c1e33e659aa | /google/cloud/dialogflowcx_v3/services/flows/pagers.py | d6b16e5d21d096bbf6564bd3c2712825b65946d0 | [
"Apache-2.0"
] | permissive | ngoctram21/python-dialogflow-cx | 7b34517ef65c467a1fc382b50fd0f490f64d04c4 | 484e13a78830a3d0ce8b1745fdf2dfce0f88a21e | refs/heads/main | 2023-08-28T01:13:05.609141 | 2021-10-21T23:31:42 | 2021-10-21T23:31:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,580 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
cef751349e326e1650499a6a813b76b91676a5a6 | c8f00a11b8531d3afec2c481f8adcc92c3c4d898 | /R2R_Simulation04.py | 62a555990d7d0b46c9800fbfa0bf43bda9ca9d14 | [] | no_license | ykorn012/etc | c29f21c95b6d9cc99f0610db2ed2868889ce0a75 | 89418a18cb5f8d0f4f47cdca02a077f3b3e9b3fa | refs/heads/master | 2021-06-30T00:54:34.897056 | 2019-04-02T14:45:50 | 2019-04-02T14:45:50 | 116,956,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,706 | py | import os
import copy
import numpy as np
from matplotlib import pyplot as plt
from sklearn.cross_decomposition import PLSRegression
from sklearn import metrics
os.chdir("D:/11. Programming/ML/01. FabWideSimulation7/")
pls = PLSRegression(n_components=6, scale=False, max_iter=1500, copy=True)
lamda_PLS = 0.1
Tgt = np.... | [
"noreply@github.com"
] | noreply@github.com |
317ff419e09d11b560a76f243d072b84fba68453 | 5a6954879c1665b9f493e19a85ea3321fa42259b | /zscore.py | 94448c08a26e0e29b90cfea1acd14c7cf736456b | [] | no_license | linhld0811/speech-emotion-recognition | 130bf8a81cb244a3bc203f20677d9b9e352d0bcb | bba16f173f5616d5557fce9671ab0022606860f0 | refs/heads/master | 2020-06-12T03:30:13.014853 | 2019-07-29T07:35:53 | 2019-07-29T07:35:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,353 | py | import wave
import numpy as np
import python_speech_features as ps
import os
import glob
import cPickle
#import base
#import sigproc
eps = 1e-5
def wgn(x, snr):
snr = 10**(snr/10.0)
xpower = np.sum(x**2)/len(x)
npower = xpower / snr
return np.random.randn(len(x)) * np.sqrt(npower)
def getlogspec(signal,... | [
"noreply@github.com"
] | noreply@github.com |
ae58f90a9e8415dd44142b4657c4f902cc222ef2 | 46289baca178de8c8cc8ebb5821c6e98fd3165a8 | /bilibili_dynamic/__init__.py | e1b8e906f8775003125d902d5a92c966f9892fa3 | [
"MIT"
] | permissive | othinus001/DynamicRender | 31ee133a6622d90a6fe239db028b05051c36548c | 0df74bde7f17c1f7c4258507269516ee0a4ddf44 | refs/heads/main | 2023-06-25T12:22:42.052254 | 2021-07-18T09:08:03 | 2021-07-18T09:08:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | from . import _version
import os
__version__ = _version.__version__
| [
"mikulab@163.com"
] | mikulab@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.