blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
42e23e7dfbd206a40c654150fd539bf6c32efc4d
ff00d19fbb2510b9ea127105896cfd13fc7be7bf
/Bloodbank/views.py
6489fdde033674504434be41435ce70111eb0352
[]
no_license
joypaulgmail/E_Health
ba43200ef6be39050fd934a83076b8acf702fe83
b51569b9ce97fe775926a246ae4675ce561f72cf
refs/heads/master
2023-03-01T23:04:02.510395
2021-02-06T07:33:43
2021-02-06T07:33:43
336,480,670
0
0
null
null
null
null
UTF-8
Python
false
false
1,826
py
from django.shortcuts import render from .models import bloodpatient from .models import bloodbank def blood_required(request): name="joy" return render(request,'BLOODBANK/register.html',{"name":name}) def bloodrequired_submit(request): if request.method=="POST": name=request.POST.get('name','defau...
[ "joypaul650@gmail.com" ]
joypaul650@gmail.com
7992feb01f1e053e15e7ba2005755bb154fb7a5b
4e2bea597574051b69c0e373e8b304e197101c6c
/examples/nldd/al_fast/snr.py
fcf963bc084b174ad8d8788e761213398f948465
[]
no_license
toshiyan/CmbRecTool
1a6155b4005945e9eaab58694caac61b0321fee4
64df0a22aebe5f105a894eacbde0fdc510a83785
refs/heads/master
2021-01-18T20:20:08.353327
2020-04-28T10:00:07
2020-04-28T10:00:07
86,954,272
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
# Computing rotation amplitude constraints import numpy as np, matplotlib as mpl from matplotlib.pyplot import * # model l = np.arange(2,3001,1) caa = 2*np.pi*1e-5/(l**2+l) # sensitivity in uK-ac s = np.arange(1.,11.,2.) # resolution in ac t = np.array([30.,25.,15.,3.,]) a = 0.0 #naa = np.loadtxt('dat/plk_a0.0.da...
[ "you@example.com" ]
you@example.com
eb8b36d201ba7a4e0d181a0b6c2070199934154e
c4af67db4c523d20f2d55aef90ba77db1fb53c38
/GenericSetup/PageTemplates/tests/test_exportimport.py
40338388cc4e35d81a50ea537c4af83636479738
[]
no_license
dtgit/dtedu
e59b16612d7d9ea064026bf80a44657082ef45a3
d787885fe7ed0de6f9e40e9b05d852a0e9d60677
refs/heads/master
2020-04-06T05:22:50.025074
2009-04-08T20:13:20
2009-04-08T20:13:20
171,351
1
0
null
null
null
null
UTF-8
Python
false
false
1,792
py
############################################################################## # # Copyright (c) 2005 Zope Corporation and Contributors. All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFT...
[ "ron@domU-12-31-39-02-65-03.compute-1.internal" ]
ron@domU-12-31-39-02-65-03.compute-1.internal
f001dc7652e0cbf35437110ac941cf18575e9e30
f59ac31328747062f844a304175b70088ac3ef70
/NLU/views.py
dc6cf4b1f249b2355eff1458e443f5e42c4b9b72
[]
no_license
HevLfreis/Cookit
ca4f7325c07f36231a7a713ab4ae51b323c9e0d0
0a4913e0cd50b089244d1e187bb6401e310e5ab6
refs/heads/master
2020-04-12T08:16:43.099524
2016-09-22T02:24:51
2016-09-22T02:25:07
60,829,473
0
0
null
null
null
null
UTF-8
Python
false
false
6,430
py
#!/usr/bin/env python # coding: utf-8 import random import re from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required from django.http import HttpResponse, JsonResponse from django.shortcuts import render, redirect from django.template.loader import get_template fr...
[ "hevlhayt@foxmail.com" ]
hevlhayt@foxmail.com
72c4df6be3abafdf6134b69307d04cca3750390a
b6303baeaa840671f1ea747d47c905779a07ffce
/aluno/migrations/0013_auto_20211002_1512.py
4e7ad5aad17abbd25841fe338e8fceeeef466395
[]
no_license
amarantejoacil/sisnae
89954ef9e837799750dc56274ec1207e6d39daef
90e237a41e698cda357b8f555fbb0649f16a78b3
refs/heads/main
2023-08-24T23:06:47.628428
2021-10-27T16:26:12
2021-10-27T16:26:12
401,503,074
1
0
null
null
null
null
UTF-8
Python
false
false
960
py
# Generated by Django 3.2.6 on 2021-10-02 19:12 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('curso', '0002_curso_curso_tipo'), ('core', '0001_initial'), ('aluno', '0012_auto_20210910_1740'), ] ...
[ "joacil.amarante@gmail.com" ]
joacil.amarante@gmail.com
a5c9f2df910e665166e9ad60eceed7a10f020599
107b3586f803e25910f9b77b8da14eb1e2bf00a0
/users/migrations/0001_initial.py
76f6c9693a8fd5cf0d97cbf89a4a19f08bab8afd
[]
no_license
parshuramsail/foodkart
e64d37423c15b2c608b444fb84c71f5ccac37fe5
eb28036b50856292b99e0db6c0c66b00b1641443
refs/heads/main
2023-07-13T19:14:16.180261
2021-08-19T14:29:20
2021-08-19T14:29:20
395,069,505
0
0
null
null
null
null
UTF-8
Python
false
false
851
py
# Generated by Django 3.2.6 on 2021-08-09 16:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "64275709+parshuramsail@users.noreply.github.com" ]
64275709+parshuramsail@users.noreply.github.com
057c64f1901582454f159ef097d2d3ce45c6171a
d57ebd908a78ad6b34f6b217f14d53fc894ff791
/45.py
bc2eb44586ad97350e8108f156290efdc38be359
[]
no_license
ruanhq/Leetcode
df732730b63988b808a382ad17bddc49e00bc3a5
fcb4ccbc9e84e1d2bd4541efc040bd957a96a3a2
refs/heads/master
2023-07-05T04:01:43.097980
2021-08-08T06:12:14
2021-08-08T06:12:14
320,983,033
0
0
null
null
null
null
UTF-8
Python
false
false
483
py
#jumpGame II: class Solution: def jump(self, nums: List[int]): if len(nums) == 0: return 0 if len(nums) == 1: return 0 result = 1 maxReach = nums[0] maxCurrentPosition = nums[0] for i in range(1, n): if maxCurrentPosition < i: ...
[ "hruan@ucdavis.edu" ]
hruan@ucdavis.edu
0f415b47036d2e378fad832dd171cd4e1cd4c9cf
955f9d3fb34af54de2f046d17bbac11c1474819e
/abc126/c.py
05d47b1a82321a04149e4b72394708c8b4d53fe9
[]
no_license
shimewtr/AtCoderPracticePython
5bb4c28119fced2d111bd1810e0e290f25b6a191
f3c22ec1f7a36a27848070c5c6ca4e1717b04ac6
refs/heads/master
2023-01-12T17:28:44.770138
2020-11-19T22:50:22
2020-11-19T22:50:22
204,830,292
0
0
null
null
null
null
UTF-8
Python
false
false
1,083
py
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): n, k = map(int, input().split()) sum = 0 for i in range(1, n + 1): count = 0 deme = i while i < k: i = i * 2 count += 1 sum += (...
[ "wawawatataru@gmail.com" ]
wawawatataru@gmail.com
45bb3ddf11097580037f15bc67eb1673b0defe40
ff6248be9573caec94bea0fa2b1e4b6bf0aa682b
/log-20190927/132.230.102.123-10.21.12.26/1569577088.py
5d635c1c50560db4b3ee12bf157f4a1877f8f4a2
[]
no_license
LennartElbe/codeEvo
0e41b1a7705204e934ef71a5a28c047366c10f71
e89b329bc9edd37d5d9986f07ca8a63d50686882
refs/heads/master
2020-12-21T17:28:25.150352
2020-03-26T10:22:35
2020-03-26T10:22:35
236,498,032
0
0
null
null
null
null
UTF-8
Python
false
false
2,747
py
import functools import typing import string import random import pytest def leap (x:int)->bool: """tests if a year x is a leapyear args: a year x returns: true if the year is a leapyear, otherwise false""" if x < 1582: return False if x % 4 == 0 and x % 100 != 0: return True if...
[ "lenni.elbe@gmail.com" ]
lenni.elbe@gmail.com
10919425589dd145278b10c19f88eeaae8321957
887bcf643eb6ef28c9f2f36a5e8c572a7e00f2ab
/share/util/iris.py
792107bda6a7054f7ce320fc8231e42bdeadfa9f
[ "Apache-2.0" ]
permissive
CenterForOpenScience/SHARE
78e867de79c51751dc922e2e5729fbf64b10ab52
880fa0248fde111eafc8be7507dc5a5098ec433a
refs/heads/develop
2023-08-11T22:08:11.408053
2023-05-11T17:40:47
2023-05-11T17:40:47
21,280,081
96
70
Apache-2.0
2023-09-12T13:27:11
2014-06-27T15:19:21
Python
UTF-8
Python
false
false
1,553
py
from urllib.parse import urlparse # TODO leave URNs alone, do scheme:authority:path instead of scheme://authority/path URN_SCHEMES = frozenset({'urn', 'oai'}) def parse(iri): """Parse an IRI string into its constituent parts. """ scheme, _, remainder = iri.partition(':') if scheme.lower() in URN_SCH...
[ "chriskseto@gmail.com" ]
chriskseto@gmail.com
71c5efeb6d289df5b3b42bc2a3c83b207ef973f0
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part009063.py
b3457955a466eccafc692d47cc2e96657ef7593b
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
2,663
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
be97cfa5c7d9817cb4395b85a1fd67ceebb35f81
cb1ce74b966cbc7840513b58c0d51df72967c5d3
/프로그래밍1/hw6_p1-2.py.py
1d44003f5ec58e82bb72b137b87710a89ee45789
[]
no_license
yeseongcho/-
b6a43405b0f2686870547fac8fee7b76b53d6cd3
91253e5acdc9dc708acb50f682385c4eab01ab5c
refs/heads/master
2022-12-07T01:06:38.715492
2020-08-22T01:44:24
2020-08-22T01:44:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,961
py
""" Name : 조예성 Student ID : 21600685 Description : 이 함수는 처음에 만들어놓은 list를 가장 메달이 많은 나라 순으로 다시 분류하기 위한 프로그램입니다. """ # (나라이름, 금, 은, 동)으로 구성된 list구성 def create_list() : countries = ["Canada", "Germany", "United States", "Norway", "Korea", "Swiss", "Sweden", "China", "Austria", "Netherland"] golds = [14, 10, 9,...
[ "sonnyok123@gmail.com" ]
sonnyok123@gmail.com
5700982248c1f6b719b2d7d67f846b641bd8e72d
97e72604a25e0b7705606aaa56b051e21352da7f
/zoonado/recipes/party.py
5d8e6724b3a4fa4529f766c5c76b129c669ae77c
[ "Apache-2.0" ]
permissive
hulu316/zoonado
9a839dbaed1102fd65ea616eded51bc6752d523a
cb06102f95e7da9c0e418bb9e327045e012a1497
refs/heads/master
2020-06-02T09:47:52.358877
2019-06-19T02:54:03
2019-06-19T02:54:03
191,118,984
0
0
Apache-2.0
2019-06-10T07:29:36
2019-06-10T07:29:35
null
UTF-8
Python
false
false
1,441
py
from __future__ import unicode_literals import logging from tornado import gen, concurrent from .children_watcher import ChildrenWatcher from .sequential import SequentialRecipe log = logging.getLogger(__name__) class Party(SequentialRecipe): sub_recipes = { "watcher": ChildrenWatcher, } de...
[ "william.glass@gmail.com" ]
william.glass@gmail.com
e95b33ca208cfeaa211db6bec483c2465528667b
48d1806be41a409affbb487ddd3c1b482489dfdb
/creationalPattern/builder.py
59649d4046e898851fc71d9affc29082e344740f
[]
no_license
Parkyes90/python-design-pattern
b057fff4738b884aa9c619f1ac7367fc94250f09
dc3252cce5874a7cd417dd38e39c19bc84fbb936
refs/heads/master
2022-07-06T16:36:37.465641
2022-07-02T04:05:00
2022-07-02T04:05:00
201,159,898
0
0
null
null
null
null
UTF-8
Python
false
false
2,999
py
from abc import ABCMeta, abstractmethod class Director: def __init__(self, builder): self.builder = builder def construct(self): self.builder.build_first_number() self.builder.build_operator() self.builder.build_second_number() self.builder.build_answer() resu...
[ "parkyes90@gmail.com" ]
parkyes90@gmail.com
245c149598f90d31a90fa08c5f61f66af1fee898
63811ad4592793a8028ab973e254ba59a4205fe5
/src/modules/window_notepad/gui/window.py
5c68677e497b3fa6b64e2d3d02ece1d52ba08eef
[]
no_license
AlexWoroschilow/AOD-Notes
d124fe9206278cae3c57b146883081bfaaaf1ff5
aa43c58291e2f9175a456c156ebc78aaf61cac1e
refs/heads/master
2022-11-30T10:42:16.405161
2020-08-05T20:28:05
2020-08-05T20:28:05
130,315,652
0
0
null
null
null
null
UTF-8
Python
false
false
3,150
py
# -*- coding: utf-8 -*- # Copyright 2015 Alex Woroschilow (alex.woroschilow@gmail.com) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
[ "alex.woroschilow@gmail.com" ]
alex.woroschilow@gmail.com
45dd7549e3d7802fb0935891e39ef4c4085fd4cd
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_Logit/trend_MovingMedian/cycle_7/ar_/test_artificial_128_Logit_MovingMedian_7__100.py
c8957c9a977b093839e867fec7bdee1001bb34c3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
264
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 7, transform = "Logit", sigma = 0.0, exog_count = 100, ar_order = 0);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
93c39b99d61948d5a909af795bd353b1406a380e
f5d77defeaa244ed8df517d13f21cd6f073adebc
/programas/Laboratorios/3_Funciones/hotel/Hotel2/program.py
8d98efadfcb6b7cdfb0b2f27b1de2e6426270386
[]
no_license
lizetheP/PensamientoC
02a02cf6d537e1637a933a4f3957995f6690d7d6
5d5740e0afa4fc487fdc5f2c466df63e9b4a664f
refs/heads/master
2023-08-10T08:07:09.604983
2023-08-08T16:53:10
2023-08-08T16:53:10
200,893,283
1
0
null
null
null
null
UTF-8
Python
false
false
831
py
def dolares_a_pesos(dolares): return dolares*19.41 def costo_hotel(noches): return noches * 185 def costo_avion(pasajeros): return pasajeros * 410 def costo_viaje(noches, pasajeros): hotel = costo_hotel(noches) avion = costo_avion(pasajeros) totalDolares = hotel + avion totalPesos = dolar...
[ "lizetheperez@gmail.com" ]
lizetheperez@gmail.com
01fd5c482dcdb8c6cbade50126950ef9365d936a
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_143/609.py
84f859c1e5ac2d125c039d9a1af05d68393c06f6
[]
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
260
py
t = input() for i in range(t): a,b,k = map(int,raw_input().split()) c = 0 for j in range(a): for l in range(b): if (j & l) < k: #print j,l c += 1 print 'Case #'+str(i+1)+': '+str(c)
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
a1bf99790611853da5831b32419fb6403cd7f2fd
e4a3fdd1db51bbd0a6c9045821f1eebd554d727d
/reduce_graph.py
a1926728a1a3087f02ace25e81d1c94a84a10fa1
[]
no_license
GaiYu0/vertex-cut
fd053ae3ede78b583909a595ebb710a9d39e24e8
72ab34a9f85548c037127ab0f1492ff67e055d4a
refs/heads/master
2020-03-18T16:46:08.626934
2018-06-14T15:42:05
2018-06-14T15:42:05
134,985,427
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
import sys f = 'data/' + sys.argv[1] n_nodes = int(sys.argv[2]) lines = open(f).readlines() for i, line in enumerate(lines): if line[0] != '#': break lines = lines[i:] reduced = [] for line in lines: m, n = tuple(line[:-1].split('\t')) if int(m) >= n_nodes: break if int(n) < n_nodes: ...
[ "yg1246@nyu.edu" ]
yg1246@nyu.edu
2ef97569359e5660a399847b0eaa7cac978d08c1
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4152/codes/1800_2564.py
8d61bbc25d52136b7b84eefddb36ba77378c4aa9
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
426
py
from numpy import * vet1 = array(eval(input("Vetor de gols do seu time: "))) vet2 = array(eval(input("Vetor de gols do time adversario: "))) soma1 = 0 soma2 = 0 soma3 = 0 vet3 = zeros(3, dtype=int) for i in range(size(vet1)): if (vet1[i] > vet2[i]): soma1 = soma1 + 1 elif (vet1[i] == vet2[i]): soma2 = soma2 + 1 ...
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
0b38c020f0c45b604f657bd0e4b103750ed197d8
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4071/codes/1643_2443.py
23575f27eb2ee78f30d9b43e1800ff344c0e3e79
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
280
py
from math import * a=float(input("leia o raio:")) h=float(input("leia a altura")) n=int(input("leia a opcao desejada/n1 - volume de ar/t2 - volume do combustivel:")) vr=(4*pi*a*a*a)/3 v= ((pi*h*h))*((3*a-h))/3 vcom= vr-v if(n==1): print(round(v,4)) else: print(round(vcom,4))
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
c4656f374c02bb27f9c02ffa98ec353cb4b75b3c
41777d4d219ea97b4632f4a8a31ab6c82a60772c
/kubernetes-stubs/client/models/v1_ip_block.pyi
b99016a339c62714d9320d457541e369f3a0743a
[ "Apache-2.0" ]
permissive
gordonbondon/kubernetes-typed
501d9c998c266386dc7f66f522f71ac3ba624d89
82995b008daf551a4fe11660018d9c08c69f9e6e
refs/heads/master
2023-07-18T12:06:04.208540
2021-09-05T19:50:05
2021-09-05T19:50:05
319,183,135
24
2
Apache-2.0
2021-09-05T19:50:06
2020-12-07T02:34:12
Python
UTF-8
Python
false
false
606
pyi
# Code generated by `stubgen`. DO NOT EDIT. from kubernetes.client.configuration import Configuration as Configuration from typing import Any class V1IPBlock: openapi_types: Any attribute_map: Any local_vars_configuration: Any discriminator: Any def __init__(self, cidr: Any | None = ..., _except: A...
[ "noreply@github.com" ]
gordonbondon.noreply@github.com
029c8500eba75fa1f9d9f5174cc2fc08ac661905
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_3_neat/16_0_3_doodoo_C.py
a1c958dd11932d30e31465e261004edc380f8b82
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,289
py
# Primes until 100: https://primes.utm.edu/lists/small/1000.txt PRIMES = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, ...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
e2646a445082462b7bedbf6f3aedd685ab9053a0
6daaf3cecb19f95265188adc9afc97e640ede23c
/liyong_python_jingxing_shujufenxi/python_basic/chapter3/11excel_value_meets_condition_set_of_worksheets.py
6c793f2983fae37e8f53b00fed0ebcfa34bedb1d
[]
no_license
guoweifeng216/python
723f1b29610d9f536a061243a64cf68e28a249be
658de396ba13f80d7cb3ebd3785d32dabe4b611d
refs/heads/master
2021-01-20T13:11:47.393514
2019-12-04T02:23:36
2019-12-04T02:23:36
90,457,862
0
0
null
null
null
null
UTF-8
Python
false
false
2,034
py
#!/usr/bin/env python # coding=utf-8 """ @athor:weifeng.guo @data:2019/1/8 14:40 @filename:11excel_value_meets_condition_set_of_worksheets 可以使用sheet_by_index 或 sheet_by_name 函数来处理一组工作表 """ import sys from datetime import date from xlrd import open_workbook, xldate_as_tuple from xlwt import Workbook input_file = sys....
[ "weifeng.guo@cnexlabs.com" ]
weifeng.guo@cnexlabs.com
24031e6c4b3518668b039342214d2f6739e03194
5cc1296f10af0d65691fd01a23221d6d85f4deff
/presupuesto/migrations/0024_presupuesto_monto_recursos_revisado.py
7ad67fc1e9cb5a90cb24186aa12e9b9fdcf6517b
[]
no_license
yusnelvy/mtvmcotizacion
e52b58fe8c50d3921d36490084de328c52e4e9ea
07d2bd5f36350b149c16a0aa514bb610b0cd3e18
refs/heads/master
2016-09-05T23:31:15.800940
2015-11-07T13:12:30
2015-11-07T13:12:30
35,440,629
0
0
null
2015-12-18T16:16:23
2015-05-11T18:01:47
JavaScript
UTF-8
Python
false
false
471
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('presupuesto', '0023_auto_20150909_1153'), ] operations = [ migrations.AddField( model_name='presupuesto', ...
[ "yusnelvy@gmail.com" ]
yusnelvy@gmail.com
64ed6534897b29cee831ec7ecbee5bc0bba52bed
d1f2d56b50a3ce3c648c09fa19d1049baa5abd5e
/login/migrations/0003_auto_20191031_1619.py
6d85e19f759fd6f8eb9fbe9e93722ad3ba450804
[]
no_license
visionsss/recommend_system
55b42daecf8e0b79b0d06abf3848b892b10e734a
220296e97051b1f882156a10d29375222f74f82e
refs/heads/master
2020-09-04T13:28:12.966035
2019-11-12T03:24:04
2019-11-12T03:24:04
219,744,333
0
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
# Generated by Django 2.2.5 on 2019-10-31 08:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('login', '0002_remove_user_email'), ] operations = [ migrations.AlterModelOptions( name='user', options={'ordering': ...
[ "573947717@qq.com" ]
573947717@qq.com
8c93e5abcd32db3261afaab7d4c9bf708a622952
56b47728ffe36878096fac0d8fb0deb94a8a9b7c
/MultidimStructures.py
018bdbee0ac81d8b356e33f672d330ed3179ebf7
[]
no_license
CaMeLCa5e/dailyspring2015
1a930fc74930bb7d286956f17fcf36ec48802b4e
1b2039b9908407a31e951e44f66bafebf3d7422b
refs/heads/master
2016-09-05T19:54:44.918992
2015-05-24T23:51:39
2015-05-24T23:51:39
33,795,537
0
0
null
null
null
null
UTF-8
Python
false
false
1,579
py
# lol = [ # [''] # [''] # [''] # [''] # ] myList = [] iList = [1,2,3,4] iList2 = [5,6,7,8] myList.append(iList) myList.append(iList2) print myList.append(iList) print myList[1:-1] print myList[1][-1] # list number one. then last item of list one. # mylist [1] [0] sum = 0 for iList in myList: sum = sum +...
[ "JM273606@gmail.com" ]
JM273606@gmail.com
0c02bfc4d08b86a9c4b63b78e861d8a421019ad8
8aa0102f8a89bb132b2564d56383ffa1c831a2d8
/runway/core/system/lib/form_validation.py
aea84346284a788f68cedb75422e40431f7aa776
[]
no_license
Teifion/runway
97b7e579160b18b36eeef96ceb8b094868a5aba0
3e24a4feec4a8eefa7db0ad44912da50c98b3a12
refs/heads/master
2021-01-17T15:19:57.185004
2016-06-05T23:56:45
2016-06-05T23:56:45
44,634,061
0
0
null
null
null
null
UTF-8
Python
false
false
3,412
py
from ...lib.common import GracefulException from datetime import datetime, date type_type = type(str) # AttributeError def convert_to_stripstr(v): return v.strip() def convert_to_int(v): return int(v) def convert_to_float(v): return float(v) def convert_to_date(v): return date(v) def convert_to_da...
[ "sarkalian@gmail.com" ]
sarkalian@gmail.com
7471f70eb46ab7877ede6253f1043a3fecded130
e7164d44058a06331c034cc17eefe1521d6c95a2
/tools/cooccur/seg2.py
7901facc735697d260b7a6d525edf19bad373989
[]
no_license
chenghuige/gezi
fbc1e655396fbc365fffacc10409d35d20e3952c
4fc8f9a3c5837e8add720bf6954a4f52abfff8b5
refs/heads/master
2021-01-20T01:57:18.362413
2016-11-08T15:34:07
2016-11-08T15:34:07
101,304,774
0
3
null
null
null
null
UTF-8
Python
false
false
748
py
#!/usr/bin/env python # ============================================================================== # \file seg.py # \author chenghuige # \date 2014-03-01 13:32:30.259515 # \Description # ============================================================================== import sys,o...
[ "chenghuige@fa64baa9-71d1-4fed-97ae-c15534abce97" ]
chenghuige@fa64baa9-71d1-4fed-97ae-c15534abce97
3be44f021991610464636bd61f01b25818e3caf3
801510e45d9aebe5c5b8b09a3ce4453a3a11a3ca
/python/fundamentals/Day1/assignments/for_loop_basic_II.py
635cba55ed67ea6fd874de8739dba7cd7a58ae9c
[]
no_license
michelleshan/coding_dojo_python_course
5581ebca0a645ba7231a2da2d2d64d6c3735bfc4
e20e8195950004ef0aa09e6b0f84e7f05bd355e8
refs/heads/master
2022-11-21T01:34:54.309175
2020-07-16T03:29:45
2020-07-16T03:29:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,069
py
#1 Biggie Size - Given a list, write a function that changes all positive numbers in the list to "big". # Example: biggie_size([-1, 3, 5, -5]) returns that same list, but whose values are now [-1, "big", "big", -5] def biggie_size(list): newlist = [] for i in range(0,len(list)): if(list[i] < 0): ...
[ "michellehan@Michelles-Air.attlocal.net" ]
michellehan@Michelles-Air.attlocal.net
3483ac9e9970d1ea4609bfaa7b7a6af0136c774c
19bb87cb53fbc9dc5306f6b599620b93525e9323
/garage/migrations/0005_auto_20160827_2012.py
2c193e0513c08a1b5dd12f952ab13c7dfc08da1d
[]
no_license
ramadanmostafa/bikesbook
ae5748a2c5ff60df85a5de515b9f4ff56560382e
8e4edccaf81fbdadcabcac118d116257ef05c5c8
refs/heads/master
2021-01-20T13:56:28.873690
2017-05-07T15:12:59
2017-05-07T15:12:59
86,033,770
0
0
null
null
null
null
UTF-8
Python
false
false
2,800
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-08-27 20:12 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('garage', '0004_auto_20160826_1733'), ] operations =...
[ "ramadankhalifamostafa@gmail.com" ]
ramadankhalifamostafa@gmail.com
fd09bce0be34eef00e4af40b5e062046659deb17
fc5a4e7c181dc4371ee1ac3b5b077901ca91f889
/src/python/WMCore/WMBS/Oracle/Jobs/GetFWJRByState.py
8a89cc532b1afc21a5c38e16d943a2af9b296b04
[ "Apache-2.0" ]
permissive
vkuznet/WMCore
4900a6320c52210aeaaafea90f1be1ef7bc932a6
de110ccf6fc63ef5589b4e871ef4d51d5bce7a25
refs/heads/master
2023-09-01T12:19:26.134554
2023-08-24T09:50:59
2023-08-24T09:50:59
19,494,576
0
0
Apache-2.0
2022-02-24T18:36:38
2014-05-06T13:08:55
Python
UTF-8
Python
false
false
286
py
#!/usr/bin/env python """ _GetFWJRByState_ Oracle implementation of Jobs.GetFWJRByState """ from WMCore.WMBS.MySQL.Jobs.GetFWJRByState import GetFWJRByState as MySQLGetFWJRByState class GetFWJRByState(MySQLGetFWJRByState): """ Identical to MySQL version. """ pass
[ "metson@4525493e-7705-40b1-a816-d608a930855b" ]
metson@4525493e-7705-40b1-a816-d608a930855b
41112df0b7e3a183895806d6e2c4d668c260ed98
1a98853032e6a1a3936ba6bdc9b1edbf527bb6fd
/p144.py
916e56df3a3fe46c35fe4f2cd36d3dd19850621b
[]
no_license
jun-yoshiyoshi/python_plactice200
31d8fad1969165e0d9bfef9fc8672fda15b413b3
a9e5c2eda13ec29a897da23b99e0591598eb38cb
refs/heads/main
2023-07-31T01:55:12.289887
2021-09-14T01:03:34
2021-09-14T01:03:34
406,177,252
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
# 実行中ファイル、モジュールのファイル名、モジュール名(path)の取得 import mojule_2 def main(): print(__file__ + "は実行中のモジュールです。") print("__ name__:" + __name__) print("__ file__:" + __file__ + "\n") if __name__ == "__main__": main() # 実行中モジュールかの判定を行い、真のとき main() を実行。
[ "yoshi.jun.yoshi.jun0621@gmail.com" ]
yoshi.jun.yoshi.jun0621@gmail.com
cffd42c7c47b64862b5dba00ef428a5382a743a0
7aec3f10b07403b542e1c14a30a6e00bb479c3fe
/Codewars/8 kyu/My head is at the wrong end!.py
218937839e00477e1f296ecabe4edae3e9a8ca8e
[]
no_license
VictorMinsky/Algorithmic-Tasks
a5871749b377767176ba82308a6a0962e1b3e400
03a35b0541fe413eca68f7b5521eaa35d0e611eb
refs/heads/master
2020-08-02T23:18:06.876712
2020-01-16T19:08:49
2020-01-16T19:08:49
211,541,179
1
0
null
null
null
null
UTF-8
Python
false
false
576
py
""" You're at the zoo... all the meerkats look weird. Something has gone terribly wrong - someone has gone and switched their heads and tails around! Save the animals by switching them back. You will be given an array which will have three values (tail, body, head). It is your job to re-arrange the array so that the a...
[ "panasyuk.vityu@gmail.com" ]
panasyuk.vityu@gmail.com
741acda042a6b8a00df1f745dd79a221f9e90ddf
01df468685c9f393b9559cb68df349ef7abcf5a6
/panelapp/accounts/migrations/0001_initial.py
79c9da1c7f6ca93932f8ba3dd8f2560806f5210b
[ "Apache-2.0" ]
permissive
victorskl/panelapp
481af901472cd960da2d0abf17239b8d484524be
4dfdd31f6036db5cb4e692961ef9bcbe92d39a23
refs/heads/master
2020-05-07T16:28:08.946472
2019-01-23T11:04:41
2019-01-23T11:04:41
180,684,104
1
0
null
2019-04-11T00:28:26
2019-04-11T00:28:26
null
UTF-8
Python
false
false
3,246
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-05-18 14:41 from __future__ import unicode_literals import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone import model_utils.fields class Migration(migrations.Migration...
[ "oleg.gerasimenko@nhs.net" ]
oleg.gerasimenko@nhs.net
67446abaee737c0b29fd0893ae14a31ee3c7cec6
69a8bfb93a17b0985cad436155beee2d51fbcad0
/retirement_api/management/commands/check_ssa_values.py
48c6f3102e3176a53ca6a228d1da045043bad32b
[ "CC0-1.0" ]
permissive
chosak/retirement
ae14a6bffcc072406d3b6e75eae53bceda41fcab
0a724ebdc4e75440caed7d063db905a0c7aa5a8a
refs/heads/master
2020-03-23T00:37:25.427172
2018-07-20T13:45:05
2018-07-20T13:45:05
140,874,697
0
0
null
2018-07-13T17:23:22
2018-07-13T17:23:21
null
UTF-8
Python
false
false
760
py
from django.core.management.base import BaseCommand, CommandError from retirement_api.utils import ssa_check HELP_NOTE = """Checks a range of results from SSA's Quick Calculator \ to detect whether benefit formulas have changed.""" END_NOTE = "Checked SSA values; see results at {0}" class Command(BaseCommand): h...
[ "higs4281@gmail.com" ]
higs4281@gmail.com
5f2c1748591ea4366c56fb2adf6103df2b457ac9
1498148e5d0af365cd7fd16197174174a7fa9800
/leetcode/t000303_2.py
b9dfb18279c3f3df0d20a197765fdebb4e1c7529
[]
no_license
feiyanshiren/myAcm
59a2b80fe7e02787defcb152eee3eae26135322a
00c7082d5143ddf87aeeafbdb6ce29da46dc8a12
refs/heads/master
2023-09-01T12:12:19.866447
2023-09-01T09:09:56
2023-09-01T09:09:56
148,560,672
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
class NumArray: def __init__(self, nums): self.nums = [0] for i in nums: self.nums.append(self.nums[-1] + i) def sumRange(self, i: int, j: int) -> int: return self.nums[j + 1] - self.nums[i] # Your NumArray object will be instantiated and ca...
[ "feiyanshiren@163.com" ]
feiyanshiren@163.com
5ca0c1150247ccd73a2523dcccff6d797c24d63b
848b98f4232f4d09af13eb892f6abb21c6855937
/VizardAPI/application/entities/users_data/user_to_rates/schema.py
93e871e597ef80b4e2a941c7b0556fc6c17ac69b
[]
no_license
dangost/Vizard
46993c4810a3971efdf607b581f8d5feb67032f4
cbb6d61c31ab87c32c0f306ac46d2a26a4b899b7
refs/heads/master
2023-02-09T06:15:59.019621
2020-12-31T15:05:17
2020-12-31T15:05:17
298,094,750
5
0
null
null
null
null
UTF-8
Python
false
false
439
py
from marshmallow import Schema, fields, post_load from application import data_to_snake from .model import UserToRates class UserToRatesSchema(Schema): key = fields.Integer(data_key="Id") user_id = fields.Integer(data_key="UserId") game_id = fields.Integer(data_key="GameId") rate = fields.Integer(...
[ "dangost16@gmail.com" ]
dangost16@gmail.com
59475a19de5686f12316e49103f8f3050019ba94
35a30c54193fc790b41085eb0e7b2fdd0e06dc91
/DJango/helloworld_project/helloworld_project/settings.py
9172389bf6ffb93df5fc1ae3dd0e1ca2bfea4c2e
[]
no_license
kooshanfilm/Python
fbf479da44565f1a2cba4ee78648bbe05892fc2b
e3a28631d7eeb8cf3ccc8f0f8ebb73d7c198df67
refs/heads/master
2023-02-19T16:29:28.724367
2022-02-19T22:11:56
2022-02-19T22:11:56
141,833,237
0
1
null
2023-02-07T22:27:49
2018-07-21T17:32:33
Python
UTF-8
Python
false
false
3,133
py
""" Django settings for helloworld_project project. Generated by 'django-admin startproject' using Django 1.11.20. 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/ ""...
[ "kooshanfilm@hotmail.com" ]
kooshanfilm@hotmail.com
1f1af73bc40a2cdb2dd16703cff2081194037cb7
a882df0c2781deefd25aef51428055c0cc605ee5
/bin/comparison.py
a19d79d425b0b2d911be9e3342da63380de0c1a5
[]
no_license
jeremymcrae/severity_sampler
22f3f2aef123a7029e1fa66ccae890950e82e9bf
0bbc0a806febed02206f2d94a5b8aa4284a27a98
refs/heads/master
2021-01-15T23:22:10.696409
2017-09-01T15:54:49
2017-09-01T15:54:49
99,934,724
0
0
null
null
null
null
UTF-8
Python
false
false
3,040
py
import pandas pandas.set_option('display.width', 170) pandas.set_option('display.max_rows', 200) import matplotlib matplotlib.use('agg') from matplotlib import pyplot from numpy import log10 from mupit.combine_analyses import fishersMethod matplotlib.rcParams.update({'font.size': 16}) enrichment_path = '/lustre/...
[ "jm33@sanger.ac.uk" ]
jm33@sanger.ac.uk
0a36cd9ed84430cc35dd3d095902cf733793b7b1
845a16266701b97e22ec1b5951fdb6961e2e4724
/labml_nn/resnets/utils/utils.py
e29dc1fc081755ffa0c52eeb2a338c705be77ca8
[ "MIT" ]
permissive
sachdevkartik/nn
4c686601d042a2dd289e5c8e096c2bcf0c1a80e5
a63f8f307ad5eefbcb537c69c63cea15a6208fb9
refs/heads/master
2023-04-18T08:51:54.256904
2021-05-01T15:36:00
2021-05-01T15:36:00
335,824,059
1
0
MIT
2021-05-01T12:04:38
2021-02-04T03:13:17
null
UTF-8
Python
false
false
2,227
py
#!/bin/python import torch import torchvision import torchvision.transforms as transforms import torch.nn as nn import torch.nn.functional as F import matplotlib.pyplot as plt import numpy as np from sklearn.model_selection import KFold from torch.utils.data.sampler import SubsetRandomSampler # Plot the loss of ...
[ "vpjayasiri@gmail.com" ]
vpjayasiri@gmail.com
ddca1839e5623198dd5705c8bf74c7a05e6cdd68
e9538b7ad6d0ce0ccfbb8e10c458f9e0b73926f6
/tests/unit/modules/network/aireos/test_aireos_config.py
81d3d65b472c0f9088bc41d59486ee013f1b3c8f
[]
no_license
ansible-collection-migration/misc.not_a_real_collection
b3ef8090c59de9ac30aca083c746ec3595d7f5f5
7ab1af924a3db4ada2f714b09bb392614344cb1e
refs/heads/master
2020-12-18T13:48:51.849567
2020-01-22T17:39:18
2020-01-22T17:39:18
235,400,821
0
0
null
null
null
null
UTF-8
Python
false
false
5,628
py
# # (c) 2016 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is d...
[ "ansible_migration@example.com" ]
ansible_migration@example.com
1e9f986d75b7261f413a1c80942a87401bbc82dc
5a1f77b71892745656ec9a47e58a078a49eb787f
/4_Backwoods_Forest/101-Gems_or_Death/gems_or_death.py
9a9539cd88a69360527b944b39c6e15f55c0c97b
[ "MIT" ]
permissive
ripssr/Code-Combat
78776e7e67c033d131e699dfeffb72ca09fd798e
fbda1ac0ae4a2e2cbfce21492a2caec8098f1bef
refs/heads/master
2020-06-11T20:17:59.817187
2019-07-21T09:46:04
2019-07-21T09:46:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
# You need Elemental codex 1+ to cast "Haste" hero.cast("haste", hero) hero.moveXY(16, 38) hero.moveXY(20, 35) hero.moveXY(25, 17) hero.moveXY(54, 21)
[ "katik.hello@gmail.com" ]
katik.hello@gmail.com
3b0b2f66f4fe84a906a2f414d45051100c6632e6
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_LinearTrend_Seasonal_Hour_MLP.py
b9cb5a9eb566d7f24cef955b3007f36bd40ac874
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
161
py
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Quantization'] , ['LinearTrend'] , ['Seasonal_Hour'] , ['MLP'] );
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
c9e5b853dac0d46f7df9ca735af697175598cf52
65e2745aa66ae087a8af69090ee742d7e58dd868
/Python/oreilly-py-cookbook/ch01/0119/solution1(1).py
8b14313aedee8dbbc7465a0e33ec2621ea7448ff
[]
no_license
JediChou/jedichou-study-devops
92f37de1c0d278b42bb2ffa76605ec62c4811924
f40f5452b27091a667a868df8a43c50e9c2cc387
refs/heads/master
2021-07-13T19:03:53.770562
2020-08-31T06:30:09
2020-08-31T06:30:09
199,133,173
0
1
null
null
null
null
UTF-8
Python
false
false
347
py
# coding: utf-8 import itertools import os def anyTrue(predicate, sequence): return True in itertools.imap(predicate, sequence) def endsWith(s, *endings): return anyTrue(s.endswith, endings) if __name__ == "__main__": for filename in os.listdir('.'): if endsWith(filename, '.md', '.py'): ...
[ "jedigit@163.com" ]
jedigit@163.com
e87796f116ce425d7ac9c155afff58a365b80596
cec916f882afbd09fe68f6b88879e68eaea976f6
/check_files/reify_batch_centroid_dataset_dataset_py3.py
d9038fb47b788236be8da092e5d91ad7485d2b28
[ "Apache-2.0" ]
permissive
jaor/bigmler
d86db6d7950768d7ba3e21b5f29bc265467f4cad
bbf221e41ef04e8d37a511a35a63216b64689449
refs/heads/master
2023-04-26T12:07:49.428263
2023-04-12T15:22:20
2023-04-12T15:22:20
15,663,632
0
0
null
null
null
null
UTF-8
Python
false
false
1,338
py
from bigml.api import BigML api = BigML() source1_file = "iris.csv" args = \ {'fields': {'000000': {'name': 'sepal length', 'optype': 'numeric'}, '000001': {'name': 'sepal width', 'optype': 'numeric'}, '000002': {'name': 'petal length', 'optype': 'numeric'}, '000003': {'name': 'petal width', 'optype': 'numeric'}, '0000...
[ "merce@bigml.com" ]
merce@bigml.com
8cf496ebe02a137bf3b8a4122fe86c6846eafb74
b148cd5c9b9b2f94c06f73e3aa9ce3db04adf263
/Ch_4_Py Crust_Code Structure/4_10.py
ddf4c57932c068dca62772c83fc9a23c30820d41
[ "MIT" ]
permissive
brianchiang-tw/Introducing_Python
6e50df4c5cf257500f8f221c20bd8ae9618db431
557fcddb6329741a177d6ee1d24122b36e106235
refs/heads/master
2021-07-14T21:45:49.885880
2021-02-16T12:06:12
2021-02-16T12:06:12
237,336,499
1
0
null
null
null
null
UTF-8
Python
false
false
378
py
def test(func): def new_function(*args, **kwargs): print('start') result = func(*args, **kwargs) print('end') return result return new_function @test def adder(a, b): print( f"function return is : {a+b}" ) return a+b # expected output...
[ "brianchiang1988@icloud.com" ]
brianchiang1988@icloud.com
570a64adcd569152e2a0e602dfd5a69f904a6943
17fde8a9c19e8545842ccd098dc7bc0ba95e831a
/api/decorators.py
3855140f09be9e7953c53c72a87a04752285cc61
[]
no_license
victorpoluceno/mibo_api
4708f4fb3c7c39c34380e67a55fd1cdf7be5c38f
975803cf71b78a697b80285c71d225d45b20bec9
refs/heads/master
2020-12-24T14:56:45.452577
2011-09-07T00:28:03
2011-09-07T00:28:03
2,330,700
0
0
null
null
null
null
UTF-8
Python
false
false
1,495
py
from functools import wraps from flask import Response, request from werkzeug.contrib.cache import SimpleCache cache = SimpleCache() #FIXME: use a config option to choose this or memcache import requests def jsonp_proxy(url): def decorator(f): @wraps(f) def decorated_function(*args, **kwargs): ...
[ "victorpoluceno@gmail.com" ]
victorpoluceno@gmail.com
d5ebcae6f0229bcec35d5dbdb881b876ca7850d0
eff211b23b0d693ead2d3eb770100432053bce39
/2.1_f2c_table_while_02.py
386537f7484bf8e89bb5f19dfde9b99933bd4bfe
[]
no_license
UW-ParksidePhysics/Jones-Julia
6395d013f3cd4cfe0379c5c1d4334611f5f4f9a6
23fcbc4d095eeab54ae0620ff24383c08e37f985
refs/heads/master
2020-12-28T11:02:55.380595
2020-05-15T13:42:10
2020-05-15T13:42:10
238,304,146
0
1
null
null
null
null
UTF-8
Python
false
false
240
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 5 14:06:50 2020 @author: julia """ print ('---------') #table heading F= 0 dF=5 while F<= 100: C= F-32*(5/9) print (F,C) F= F +dF print('--------')
[ "noreply@github.com" ]
UW-ParksidePhysics.noreply@github.com
90a5f1e797d943572d17b7db44420316ca01ff69
7c4f6dd6f5c0e05af3dc80d08f3458041db98901
/tests/core/util/test_significant_bits.py
bb559ad3d75b74da8bfbd0d60eea76e33ae598af
[ "Apache-2.0" ]
permissive
inan0812/kale-blockchain
7ede8a8d3c4e7d49a1c76686975423620de12ed8
1b502fe21a4be10b4db0171c3a7030079dcefa1b
refs/heads/main
2023-06-14T04:49:45.036967
2021-07-06T01:33:54
2021-07-06T01:33:54
383,620,796
0
0
Apache-2.0
2021-07-06T23:24:39
2021-07-06T23:24:38
null
UTF-8
Python
false
false
1,323
py
import unittest from kale.util.significant_bits import count_significant_bits, truncate_to_significant_bits class TestSignificantBits(unittest.TestCase): def test_truncate_to_significant_bits(self): a = -0b001101 assert truncate_to_significant_bits(a, 2) == -0b1100 a = -0b001111 a...
[ "kaleseed@github.com" ]
kaleseed@github.com
7850bcd34ebc107528757aca2751e5e2b77d0012
bbc2e379e1e2e9b573d455c1e604636a11e2e6f6
/up_revendas/users/urls.py
63add9ba7070b1e3f5ee77e12519e016048fdbc6
[ "MIT" ]
permissive
MikaelSantilio/uprevendas-api
cc7c21bc496194c6b4c9ba77205ed54b23a7f82a
f04312988ffe3231f68ae0ebeaed9eaf0a7914b0
refs/heads/master
2023-05-25T18:41:45.584569
2021-06-09T23:24:47
2021-06-09T23:24:47
330,134,711
1
0
null
null
null
null
UTF-8
Python
false
false
961
py
from django.urls import path from up_revendas.users import views app_name = "users" urlpatterns = [ path("funcoes/", views.FunctionListCreateAPIView.as_view(), name='functions-list'), path("funcoes/<int:pk>/", views.FunctionRetrieveUpdateDestroyAPIView.as_view(), name='function-detail'), path("criar-perf...
[ "mikael.santilio@gmail.com" ]
mikael.santilio@gmail.com
0c6158358f43f5996de474ba06c4228baeda62e9
43268854505070471e0911bc0e5b280cadec8601
/modeller9v8/modlib/modeller/virtual_atom.py
551853b93cc684de6f9c4ad2c2b141603a1ddd4a
[]
no_license
realbigws/From_CA_to_FullAtom
08621bf350c77e29140051d1af850a51e5fe138f
a59d9fcbc6c1f2bfc5fc2d77da26318c63ac3052
refs/heads/master
2020-05-30T01:37:47.378404
2019-05-30T21:42:45
2019-05-30T21:42:45
189,481,583
2
0
null
null
null
null
UTF-8
Python
false
false
708
py
import _modeller from pseudo_atom import pseudo_atom class ch1(pseudo_atom): """Virtual aliphatic proton on a tetrahedral carbon (->CH), defined by the central C and the three other substituents""" _builtin_index = 2 numatoms = 4 class ch1a(pseudo_atom): """Virtual aromatic proton on a trigon...
[ "wangsheng@ttic.edu" ]
wangsheng@ttic.edu
9d45862e919513cb220668ab3af361c6203a1eaa
f4cc5a888d0dd1a5975e0467e21da0bedf48c921
/old/QUANTAXISRuntime/event/stream.py
16f29646ed500b75cb484b41399ae8d4a709c237
[]
no_license
wenjiandu/QUANTAXISRUNTIME
88dbca3e65ed2510e001392997b97577f8e1214c
2cf28abe1f56d4219f1f89980d7b64460e65856c
refs/heads/master
2020-04-10T04:01:04.097325
2017-11-21T04:45:24
2017-11-21T04:45:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,478
py
import collections import asyncio from QUANTAXISRuntime.event.interface import QAR_Protocol class QAR_StreamProtocol(QAR_Protocol): def __init__(self, stream, loop): self._loop = loop self._stream = stream self._paused = False self._drain_waiter = None self._connection_los...
[ "yutiansut@qq.com" ]
yutiansut@qq.com
3472ff6eb63b8dd56336f42c6c69886de23059f2
943e2476d274bb85a87e763046560713a617ae53
/ignore/ENABLE_TEST_FUNCTIONS.py
34d6f5196e304b15be039e8e35457dd7aeb877cc
[]
no_license
kiranhegde/ENABLE2.0
09401e573f65e45f92163828efa0b644b2bb2e39
8342a957bc75837b58da18c077740cb440736157
refs/heads/master
2021-05-21T16:23:43.099899
2017-10-29T13:49:24
2017-10-29T13:49:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
844
py
import easygui import os import pandas as pd import numpy import BLDataClasses import re import sys from pprint import pprint class TestFunctions: def __init__(self): print ("init") # never prints def fileSelect(self): try: #catch error when user hits "ESC" in file select dialogue ...
[ "ngoyal95@terpmail.umd.edu" ]
ngoyal95@terpmail.umd.edu
92932c22829762ab2b7402a6ef08fc7e30e1fd4f
7e574c25506a7b4f68b873fa63d2d38f52c7c56e
/reprod_log/step3/paddle/evaluations/descriptor_evaluation.py
d63e7bfaa935d1095524027533dbabf5ae6a2488
[]
no_license
vcowwy/SuperGlue_paddle
9912e6dfda34dfc42cfb34d4e2de8eaed827ed15
4cd5280dbb228498e2b3c6df1f4621c320af47c7
refs/heads/master
2023-08-21T15:58:20.122712
2021-10-29T11:10:26
2021-10-29T11:10:26
420,937,959
3
0
null
null
null
null
UTF-8
Python
false
false
4,976
py
"""Script for descriptor evaluation """ import numpy as np import cv2 from os import path as osp from glob import glob from settings import EXPER_PATH def get_paths(exper_name): return glob(osp.join(EXPER_PATH, 'outputs/{}/*.npz'.format(exper_name))) def keep_shared_points(keypoint_map, H, keep_k...
[ "1719870799@qq.com" ]
1719870799@qq.com
7e2e5d2591aee93b1f5cc4f83443bfaadea58348
587da860b55b78d58e058f5467dbfa3ff18b08a6
/sample64.py
5dc36b56ccc0a018a1a02a1104235a295d17c629
[]
no_license
kotaaaa/ReinforcementLearning_first
f6a8b7490f748b123cb28d426e65fc5091bd2286
34d01450823462483db8808e4c2e60fa543ac985
refs/heads/master
2020-03-22T23:03:33.986772
2018-07-13T02:46:05
2018-07-13T02:46:05
140,787,509
0
0
null
null
null
null
UTF-8
Python
false
false
3,610
py
# -*- coding:utf-8 -*- import pygame from pygame.locals import * import sys from time import sleep import random GENMAX=100 STATENO=64 ACTIONNO=4 ALPHA=0.1 GAMMA=0.9 EPSILON=0.3 REWARD=10 GOAL=63 UP=0 DOWN=1 LEFT=2 RIGHT=3 LEVEL=500 # s_list = [] s_first_list = [0] def updateq(s,snext,a,qvalue): qv = 0 if(sne...
[ "kota.k.1132.pda@gmail.com" ]
kota.k.1132.pda@gmail.com
e6972703956e548f1874eae2c76882b5defcb005
87b8fc1ba1d5a5a9014cf2e69dcabd7df19e1fc2
/src/pustakalaya_apps/document/migrations/0020_document_document_translator.py
2950bf85ca4d96af417cd315347f203c6c0e23fd
[]
no_license
Becram/elibrary-olen
5a885871b05dc9076a04575748a5bbce6b40c69c
f73772569d1a67fda4e5d44af9d1ed2ddd41166e
refs/heads/master
2020-04-06T11:13:29.676136
2018-10-25T06:36:42
2018-10-25T06:36:42
157,408,652
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-04-03 09:57 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0015_auto_20180320_1424'), ('document', '0019_auto_20180319_1651'), ] ...
[ "nishantkarki305@gmail.com" ]
nishantkarki305@gmail.com
ab7ede3e6da46c736962db6a34e1e96fde06033c
ef936b0d628f95a7551a138910152cd1727ace80
/accounts/tests/test_view_password_reset.py
c75f280fce08eb690500375cbadd972540ec08a7
[]
no_license
stuartelimu/mawazo
d9fcbe5b69710bfe11bb22772627f693ac3006a1
710959f554565986e865dd1f5ab34d529cc2341b
refs/heads/master
2020-05-27T09:38:19.730004
2019-11-16T05:00:03
2019-11-16T05:00:03
188,568,739
1
0
null
2020-02-12T00:21:37
2019-05-25T13:19:47
Python
UTF-8
Python
false
false
5,570
py
from django.test import TestCase from django.urls import resolve from django.shortcuts import reverse from django.contrib.auth.tokens import default_token_generator from django.contrib.auth import views as auth_views from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm from django.contrib.auth.model...
[ "stuartelimu@gmail.com" ]
stuartelimu@gmail.com
77331623e392c503d5c69621d1c247965d99918d
78020e1c410a1b41d3d6367cba6275545aab8dc3
/python/pyxbos/pyxbos/__init__.py
98fb72dfc6f1278f94878f8ff5a5a38f7ff42c7f
[ "BSD-3-Clause" ]
permissive
akshephard/xboswave-1
e045ab8b03c935ede4050c7744dab46f4db68f12
084a5d2b36de8e53dda5d7b7f89c5c208b137a95
refs/heads/master
2020-05-02T00:28:10.370331
2019-06-05T03:37:09
2019-06-05T03:37:09
177,673,508
0
0
null
2019-03-25T22:22:10
2019-03-25T22:22:09
null
UTF-8
Python
false
false
747
py
WaveBuiltinPSET = b"\x1b\x20\x19\x49\x54\xe8\x6e\xeb\x8f\x91\xff\x98\x3a\xcc\x56\xe6\xc8\x4a\xe2\x9a\x90\x7c\xe7\xe7\x63\x8e\x86\x57\xd5\x14\x99\xb1\x88\xa4" WaveGlobalNamespace = b"\x1b\x20\xcf\x8d\x19\xd7\x9d\x23\x01\x38\x65\xbe\xf7\x57\xce\xa0\x4c\xde\xe5\xef\x4e\xde\xfc\x80\x8d\xd2\x1e\x4e\x00\x5e\x6f\x80\x47\xcc" ...
[ "gtfierro225@gmail.com" ]
gtfierro225@gmail.com
56ad409b273bdc1fe5d49ef9a35bf9e72cad79c3
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_lambed.py
4820af9e3fdc64fe727c9e3e23f53d7a43fcdd74
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
from xai.brain.wordbase.verbs._lamb import _LAMB #calss header class _LAMBED(_LAMB, ): def __init__(self,): _LAMB.__init__(self) self.name = "LAMBED" self.specie = 'verbs' self.basic = "lamb" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
748fd1ebeccba9601505518de07c072cbba7cc6f
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Scripts/get-pip.py
ddd303629872f7a0e3759629b104586b7892466f
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
132
py
version https://git-lfs.github.com/spec/v1 oid sha256:a30ff8a3446c592c6d70403a82483716e7b759e8eecba2c8d3f6ecfb34a8d6d7 size 1884621
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
96ad1ae173a567279c9d688793bf79880cad3c0d
0d1ad7e5fca72ae767c7ddbe0406eb72e733596c
/accounts/admin.py
db938a8e4ec28a338edbf0c5ecde9b98dcc5b7a7
[ "MIT" ]
permissive
Vishesh-Conbi/Chatbot
d223faa4e2935da3f9abec8821e97c69e18a03d9
c6a966eb1947064eeffe1a1722d672ca560377bd
refs/heads/main
2023-03-01T02:25:49.853907
2021-02-09T10:22:58
2021-02-09T10:22:58
337,365,376
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
from django.contrib import admin from .models import AD_User from .models import AD_Admin # Register your models here. admin.site.register(AD_User) admin.site.register(AD_Admin)
[ "=" ]
=
425dcde5152e8abf2c36aa6c3c29c41693f3a359
605c10db2f950a506af60d57a2074f97ebcf89ab
/code/MODULE/Crawl+Screenshot/web_catchElementInfo.py
4e08112cb147d1dbd995949ed24b907647330f22
[]
no_license
MulongXie/Research-ReverselyGeneratingWebCode
928f90d6b4f80ebff40a9a3a48f8b564277a0987
2c1598a765166f30786b0e6a22c485358ca2e98d
refs/heads/master
2020-05-17T18:14:02.241209
2020-04-10T00:19:16
2020-04-10T00:19:16
183,857,077
0
3
null
2020-02-03T04:31:34
2019-04-28T04:51:24
Python
UTF-8
Python
false
false
4,329
py
from selenium import webdriver import pandas as pd import time import os import cv2 # refine the data def compo_filter(compo, body_size): # ignore all hidden elements display = compo.value_of_css_property('display') if display == 'none': return False # ignore all nonsense elements if compo...
[ "dsh15325@163.com" ]
dsh15325@163.com
7b294ab77d330a03cf1ce17d2817401e3d5c12cd
42e8c0992fd845237fa7b1baef494bfb6abc9dba
/templates/sound/sound_equalizer.py
84d6323973a6dd4539414eda5d86997a50786c18
[]
no_license
mx1001/animation_nodes
b5ae336512bb43f40e6ca5276a4e05acb5fdc81b
b77b96d991f2b26c03bcbeef4a9fa8a09173ea4f
refs/heads/master
2020-02-26T17:46:05.676451
2016-03-09T15:22:01
2016-03-09T15:22:01
54,067,761
5
0
null
2016-03-16T21:27:54
2016-03-16T21:27:54
null
UTF-8
Python
false
false
2,780
py
import bpy from ... base_types.template import Template class SoundEqualizerTemplate(bpy.types.Operator, Template): bl_idname = "an.sound_equalizer_template" bl_label = "Sound Equalizer" nodeOffset = (-500, 150) def insert(self): soundBakeNode = self.newNode('an_SoundBakeNode', x = 0, y = 0) ...
[ "mail@jlucke.com" ]
mail@jlucke.com
1db32955a04a45bb21e0612d509dff2b45bb60b2
26f8a8782a03693905a2d1eef69a5b9f37a07cce
/test/test_destiny_historical_stats_definitions_destiny_stats_merge_method.py
bd0463d1868459522563052ef852a0d03515c239
[]
no_license
roscroft/openapi3-swagger
60975db806095fe9eba6d9d800b96f2feee99a5b
d1c659c7f301dcfee97ab30ba9db0f2506f4e95d
refs/heads/master
2021-06-27T13:20:53.767130
2017-08-31T17:09:40
2017-08-31T17:09:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,399
py
# coding: utf-8 """ Bungie.Net API These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality. OpenAPI spec version: 2.0.0 Contact: support@bungie.com Generated by: ...
[ "adherrling@gmail.com" ]
adherrling@gmail.com
ccbe327c2ad64ba459b1f5200bca26c939eb6508
8e90afd3f0dc945d9ebd6099a60094807c0067cf
/Kangho/ALGO_ALLERGY.py
bca1e0a6ee3958856c13907caf1e3162f842e756
[]
no_license
Deserve82/KK_Algorithm_Study
ffa109e02f1c9297597c9e07c7c3006628046740
d3ec01b66d6e3852b7d68adaa8ba87c7e9617e24
refs/heads/master
2021-11-10T00:23:30.711422
2021-10-23T02:37:04
2021-10-23T02:37:04
231,358,800
0
1
null
null
null
null
UTF-8
Python
false
false
964
py
import sys def brute_force(chosen): global answer if chosen >= answer: return first = '' for name, cnt in checker.items(): if cnt == 0: first = name break if first == '': answer = min(answer, chosen) return for candidate in pp[first]: ...
[ "noreply@github.com" ]
Deserve82.noreply@github.com
e89dc785387b19ca24b6f67b7754f4e9211cb9db
89faefa05930b2be84dbed8ab02b9c006aa2f8b7
/libraries/mathy_python/mathy/agent/model.py
466e33a3fd99bbd40c0789b6da0120ea4ac9c55c
[ "MIT" ]
permissive
sailfish009/mathy
63fc50fc278ce58bf589e6c1092573332c312579
3f46cee917e3f48d26dbea3e92b879af7914e0eb
refs/heads/master
2022-12-12T04:59:01.619645
2020-09-13T21:12:53
2020-09-13T21:12:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,196
py
import os import pickle import time from pathlib import Path from shutil import copyfile from typing import Any, Callable, Dict, List, Optional, Tuple, cast import numpy as np import srsly import tensorflow as tf from tensorflow.keras import backend as K from tf_siren import SinusodialRepresentationDense, SIRENModel f...
[ "noreply@github.com" ]
sailfish009.noreply@github.com
187c82eb9346ef6761804e066061d09b7fccf957
82de5a8fa41b9c57290378da1ba7e4a34e56f291
/lib/functions/angular_loss.py
7f69a212d634db1168d2d065c3665a7ee2fdc74a
[ "MIT" ]
permissive
zhuxf0407/deep_metric_learning
bcab248672d9c379f5b179b93334712ba745a961
c37d3fa3e93831962652074c0ff4f5641f4ea5db
refs/heads/master
2021-05-09T12:29:36.088414
2017-09-03T21:33:30
2017-09-03T21:33:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,058
py
# -*- coding: utf-8 -*- """ Created on Wed Aug 9 17:16:53 2017 @author: sakurai """ import matplotlib.pyplot as plt import numpy as np import chainer import chainer.functions as F import chainer.links as L from chainer import cuda, Variable from chainer.functions import matmul from chainer.functions import transpos...
[ "ronekko@gmail.com" ]
ronekko@gmail.com
d357bee91458c7cc6b0e2adad0fa21884174d38d
5201e237c0d58cdfdbc2fdf8103f9141161eb9f8
/itkHistogramMatchingImageFilterPython.pyi
18003bb919430bcc7ef776599ea3345e5cd64a07
[]
no_license
hjmjohnson/itk-stubs
704f5b92a755e55b81d02fcad62a366143e125f3
771951d007ae425b758e088eae6f9e4ca0e4afb1
refs/heads/main
2023-01-22T05:50:33.649088
2020-12-04T01:31:09
2020-12-04T01:35:06
318,368,028
0
0
null
null
null
null
UTF-8
Python
false
false
3,792
pyi
import itk.itkArrayPython from itk.support import itkHelpers as itkHelpers from typing import Any class _SwigNonDynamicMeta(type): __setattr__: Any = ... def itkHistogramMatchingImageFilterIF2IF2_New(): ... class itkHistogramMatchingImageFilterIF2IF2(itk.itkImageToImageFilterAPython.itkImageToImageFilterIF2IF2):...
[ "hans-johnson@uiowa.edu" ]
hans-johnson@uiowa.edu
f7f673d3b07c7e43c80d699c7fc520740dcb24aa
2d27444b26de173ed1b7454f72d102050c7a6b07
/web-scraping-top-100-movies/venv/bin/pip
19f5182ee505c0f35a93458fd890a27ac8ebf249
[]
no_license
imrishuroy/Python-Projects
6b93454dcb30c307aece07d611855f8b718fb8e8
f15a0e7da702a30618658ce4f4650807daaae759
refs/heads/master
2023-04-17T04:33:38.889592
2021-05-08T08:35:09
2021-05-08T08:35:09
335,221,000
0
0
null
null
null
null
UTF-8
Python
false
false
281
#!/Users/imrishuroy/Desktop/Python/web-scraping-top-100-movies/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "rishukumar.prince@gmail.com" ]
rishukumar.prince@gmail.com
b1bd1cdde93a72c20bf98bbefc7a3ba655c7bc04
bdbcf55a5ae1b6bb0927adc731864ab28d230c8d
/polls/urls.py
f834402a26813bb01d39d502fdc4fff6eb5ab443
[ "MIT" ]
permissive
almazkun/PythonDjangoMozilaTut
d39c952984853565715d8930d4158e21bfd032ff
39e7c4d1ab9fbfe85abe90d94585fc7315617d1d
refs/heads/master
2020-04-11T04:36:31.964119
2018-12-19T12:01:35
2018-12-19T12:01:35
161,518,555
1
0
null
null
null
null
UTF-8
Python
false
false
581
py
from django.urls import path from . import views from django.urls import include urlpatterns = [ path('', views.index, name='index'), path('book/', views.BookListView.as_view(), name='book'), path('book/<int:pk>', views.BookDetailView.as_view(), name='book-detail'), path('author/', views.AuthorListVie...
[ "almaz.kun@gmail.com" ]
almaz.kun@gmail.com
9f35af43c0e4995698d18bdd06ef913447ba22d7
14dc9cabea198c64b83c8d08e41d22b34bd56ac9
/videos/migrations/0017_auto_20170630_1813.py
2a74a329d428c8e4aa8ed9274f427e3d10e6a863
[]
no_license
Ibrokola/Woran
ae62501dd32f1137128de12e3de5c9417808c678
31c32ebfb106c0218e62fe4133db46378d17578e
refs/heads/master
2022-12-11T07:28:05.398690
2019-10-18T19:46:07
2019-10-18T19:46:07
93,820,295
0
0
null
2022-12-08T00:00:31
2017-06-09T04:56:57
CSS
UTF-8
Python
false
false
641
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-01 00:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('videos', '0016_auto_20170630_1159'), ] operations = [ migrations.AlterField...
[ "babskolawole@gmail.com" ]
babskolawole@gmail.com
8e60a966f2c682281ae77fcc2aade28eecf74ad2
d16e84a4ae758142028d6546d357ca4f5c89d86c
/randstudent6.spec
70bbc8199bc1cd0bd1668b6c7f1faa88fa0e4ed3
[]
no_license
iefan/randstudent
19d6dae98658689aa24f1aa4ed4115bc19fefea7
11561b81fc13fb20de98c879fd0b029ddabbbd81
refs/heads/master
2021-01-18T21:08:48.816470
2016-04-28T04:34:42
2016-04-28T04:34:42
19,669,565
0
0
null
null
null
null
UTF-8
Python
false
false
733
spec
# -*- mode: python -*- block_cipher = None a = Analysis(['randstudent6.py'], pathex=['E:\\newwork\\randstudent'], binaries=None, datas=None, hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], win_no_pr...
[ "mybsppp@163.com" ]
mybsppp@163.com
69cdbfee047eca29583ea62a7541ffc2ed86f82a
b4bc5fb10b0d498cb0d3e5ee2ce3473b10b553e5
/fast_transformers/recurrent/attention/self_attention/lsmomentum_attention.py
7a7b16155ee28169922caad3ed7ec16fcc1c5c77
[]
no_license
minhtannguyen/momentum-transformer-code-submission
2f0005028ab7e32957612f642330acd802bded8e
68b11ce5564a8212cd91cb2093b457a00d511046
refs/heads/master
2023-05-31T19:20:57.380490
2021-06-04T15:08:26
2021-06-04T15:08:26
373,784,396
4
0
null
null
null
null
UTF-8
Python
false
false
4,195
py
"""Implement the causally masked linear attention as a recurrent model.""" import torch from torch.nn import Module from ....attention_registry import RecurrentAttentionRegistry, Optional, Float, Int, \ Callable, EventDispatcherInstance from ....events import EventDispatcher from ....feature_maps import elu_featu...
[ "mn15@rice.edu" ]
mn15@rice.edu
35f0a922f3b3f60c3f57add291c965367baec32a
93c22f53bc7ce33a4384c53f02988e6c9ccd86c9
/re_testpattern.py
cdf0edeca914ea1387d931fccc6591c1bf78e0ed
[ "Apache-2.0" ]
permissive
Kalpavrikshika/python_modules
a5ce678b58f94d32274846811388d991c281d4d3
9f338ab006dd5653fd7f65ff253bc50e0fd61fc6
refs/heads/master
2020-03-08T02:23:08.650248
2018-06-28T07:38:01
2018-06-28T07:38:01
127,858,450
1
0
null
null
null
null
UTF-8
Python
false
false
775
py
import re def test_patterns(text, patterns): for pattern, desc in patterns: print("'{}'({})\n".format(pattern,desc)) print (" '{}'".format(text)) for x in re.finditer(pattern, text): s = x.start() e = x.end() substr = text[s:e] n_backslash...
[ "vrikshikakalpa@gmail.com" ]
vrikshikakalpa@gmail.com
399eb7fe797745b436ae421f0113182099abf43e
9fbd973b159a06e3b583150a483bc11df22df9aa
/sparcur/protocols_io_api.py
725247d0ed5f579acd13329f9eef5f8054baf86d
[ "MIT" ]
permissive
tmsincomb/sparc-curation
b8be719a2a013daca27a4be227d5f90663bf3d7d
e057002a1176edfce7a0cbf9d45d3aef7247c155
refs/heads/master
2020-06-10T04:36:44.767159
2019-06-17T21:30:20
2019-06-17T21:30:20
193,584,008
0
0
MIT
2019-06-24T21:36:10
2019-06-24T21:36:09
null
UTF-8
Python
false
false
3,068
py
import sys import json from urllib import parse from pathlib import Path from getpass import getpass from argparse import Namespace from oauth2client import file, client from pyontutils.config import devconfig def get_auth_code(url): import robobrowser br = robobrowser.RoboBrowser() br.open(url) form ...
[ "tgbugs@gmail.com" ]
tgbugs@gmail.com
8fc75c179e2829986a033b199541cadf3d63a892
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flashblade/FB_2_10/models/quota_setting_response.py
ae3bed54ac438eed9fbe2c938cab7c3dba63e396
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
3,184
py
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.10, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.10 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import t...
[ "azaman@purestorage.com" ]
azaman@purestorage.com
c80250a11580720b9374446941b37eef77872b0e
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/75f038ca0b884463abda677ab27e979a.py
f283faf801d794cc0b1b88820d6959cb9cd252b8
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
424
py
# # Skeleton file for the Python "Bob" exercise. # def hey(what): # Check input is silence or prolonged silence if not what or what.isspace(): return 'Fine. Be that way!' # Check if input is shout if what.isupper(): return 'Whoa, chill out!' elif what.endswith('?'): # Or if...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
64d2747e794f576d53a35043341e7c51936ebb15
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/different_time.py
556b5d7a322f8f276222b9712647b2238e7b0447
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
#! /usr/bin/env python def life(str_arg): have_own_way_by_eye(str_arg) print('few_eye') def have_own_way_by_eye(str_arg): print(str_arg) if __name__ == '__main__': life('take_part')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
ca618edf59dd5c57d4f38db9c0fa3455fd4865ad
538ca338d88598c1c671c502d03b94781fbebdff
/thriftworker/tests/app/test_state.py
5bdc3261fc37ff9b3d5df4125633977974920d85
[]
no_license
gdeetotdom/thriftworker
e12c94ac05eebe1b28f157415d3d6072ecf77876
c9b7554845a7f76de2e2076568e2fb779cacdfff
refs/heads/master
2021-01-10T19:22:53.608418
2013-11-11T08:18:59
2013-11-11T08:18:59
5,068,927
1
1
null
2013-11-11T08:19:00
2012-07-16T15:03:37
C
UTF-8
Python
false
false
611
py
from __future__ import absolute_import from thriftworker.tests.utils import TestCase from thriftworker.state import get_current_app, set_current_app, current_app class TestState(TestCase): def test_no_app_created(self): with self.assertRaises(RuntimeError): get_current_app() def test_ch...
[ "lipindd@gdeetotdom.ru" ]
lipindd@gdeetotdom.ru
085fcb571ebdfee762df06cb685cea07b905421c
58ce98ae58e441f2eb21599243d10dd83f66add3
/src/message/contex_processors.py
f6de6843dff3643670eacaed42e0a906225240b7
[]
no_license
ivan371/school
fbac5ab6c87112d97197afed670f77578b231a5d
877451ec4422dddffa9f93ea5a2d5eb302e5405d
refs/heads/master
2021-01-11T03:29:51.125606
2016-11-29T14:54:35
2016-11-29T14:54:35
71,002,320
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
from django.shortcuts import render, get_object_or_404, reverse, HttpResponse, HttpResponseRedirect from django.views.generic import DetailView, CreateView, ListView from .models import Message from .models import Dialog from .models import User from django import forms from django.db import models class MyForm(forms...
[ "nagaiko.ivan@gmail.com" ]
nagaiko.ivan@gmail.com
7a8f3ffd3f567984d8dd5df61a00f0638e44e054
42c578d7d9056e3caab7263cde114626d7ad3450
/p/bin/rst2html5.py
75b4880b5137e0847bb05a4d662f43a17849b8a1
[]
no_license
javier290595/mythicalclass
66a38ae916468aa80e62d9cc5881406e9beae84b
34f3255d4720834dbe0aabf8c5daa4a270a415bd
refs/heads/master
2023-01-08T12:33:13.232972
2020-11-12T01:52:09
2020-11-12T01:52:09
312,138,106
0
0
null
null
null
null
UTF-8
Python
false
false
1,172
py
#!/home/ec2-user/environment/backend/p/bin/python3 # -*- coding: utf8 -*- # :Copyright: © 2015 Günter Milde. # :License: Released under the terms of the `2-Clause BSD license`_, in short: # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provide...
[ "ec2-user@ip-172-31-70-116.ec2.internal" ]
ec2-user@ip-172-31-70-116.ec2.internal
4a35c78122ce775d26c344ed3023f39dbd883023
aaa72c72c9089a5f4a71f8151ab8304297692680
/pysaliency/external_datasets/figrim.py
a1cd60ade99c6c4dd5cd2826aebeaa48a2e53465
[ "MIT" ]
permissive
matthias-k/pysaliency
2569653a727247cc81c0a994acaeface93124ee7
0664dba9b637f64b089b3a44b191dd24da84a30e
refs/heads/master
2023-08-11T08:03:26.527271
2022-06-11T21:52:31
2022-06-11T21:52:31
46,892,512
142
42
MIT
2023-07-06T14:03:09
2015-11-25T23:08:26
Python
UTF-8
Python
false
false
7,300
py
from __future__ import absolute_import, print_function, division import zipfile import os import glob import numpy as np from scipy.io import loadmat from natsort import natsorted from boltons.fileutils import mkdir_p from ..datasets import FixationTrains from ..utils import ( TemporaryDirectory, download_an...
[ "matthias@matthias-k.org" ]
matthias@matthias-k.org
4b9656c905b366d28b755e3be726eb241bb5e064
45da48ae0a87f4bb27409bfe2e947b29a2d4a0d0
/znake/znake/__main__.py
024e096eebdc8cb05e98fe692ab2d45c97725fac
[ "Apache-2.0" ]
permissive
per-bohlin/opensourcelib
3923165982ae1b2c78602a3485684ded75c28c36
e48427fd0b5d87ea21484e85d2575c8b8879b9a3
refs/heads/master
2020-05-21T21:34:15.112527
2019-05-11T16:57:58
2019-05-11T16:57:58
186,156,987
0
0
NOASSERTION
2019-05-11T16:34:39
2019-05-11T16:34:39
null
UTF-8
Python
false
false
6,617
py
import logging import os import signal import sys import termios import coloredlogs import invoke.exceptions from invoke import Collection, Program, task from invoke.parser import Argument import znake.baseline import znake.builddir import znake.deb import znake.debtest import znake.doc import znake.docker import zna...
[ "per.bohlin@zenterio.com" ]
per.bohlin@zenterio.com
744c51bbe5099268ea083f36370779e2756ae41a
8918751bdf19f83de0ab55e3cab183365ee0e392
/v2/enumm.py
2f40818b736b3592d44237bccecd25366908e6b9
[]
no_license
reritom/SimpleModel
8febea9c3c2481c394aa68759d19c84c2ad1321b
3afe257918ad1e614679ad5edc809c225cd8d9ac
refs/heads/master
2020-04-05T09:36:11.608478
2018-11-18T16:46:42
2018-11-18T16:46:42
156,765,010
0
0
null
null
null
null
UTF-8
Python
false
false
2,001
py
class Enum(): @classmethod def of(cls, *definitions): # An enum can be of a mixture of types or instances defs = [] print("Enum defs are {}".format(definitions)) for definition in definitions: if isinstance(definition, type): # This is a class, take t...
[ "reikudjinn@gmail.com" ]
reikudjinn@gmail.com
9924cb77b5cc139460b9cf66fb7459b7c99371ab
62e58c051128baef9452e7e0eb0b5a83367add26
/edifact/D07B/SUPCOTD07BUN.py
a9a9d5ce72c6483c6861338166310b6f4ca2195f
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
1,520
py
#Generated by bots open source edi translator from UN-docs. from bots.botsconfig import * from edifact import syntax from recordsD07BUN import recorddefs structure = [ {ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGM', MIN: 1, MAX: 1}, {ID: 'RFF', MIN: 1, MAX: 6}, {ID: 'PAI', MIN: 0, MAX: 1}, {ID: 'CUX'...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
ec0d375b439576c7c4023a6558f8435c3c9aab8f
0315d314de6e469ce5956c52cbbca0ec782f97b1
/algorithms/Python/sorting/selectionSort.py
8f68faf0c689ae9a985b077d2f9d3d77cd3e07eb
[]
no_license
rsamit26/AlgorithmsAndDatastructure
4e4ba9d2afb07436a09305bbc814fdef8a4bea94
539adc7e158f658ca00476b4c8664159551b01e7
refs/heads/master
2020-03-28T01:24:27.366385
2018-10-16T21:40:20
2018-10-16T21:40:20
147,502,386
2
0
null
null
null
null
UTF-8
Python
false
false
349
py
""" Algorithm for selection sort """ def selection_sort(arr): for i in range(len(arr)): min_index = i for j in range(i+1, len(arr)): if arr[min_index] > arr[j]: min_index = j arr[min_index], arr[i] = arr[i], arr[min_index] return arr print(selection_s...
[ "rsamit26@gmail.com" ]
rsamit26@gmail.com
7b49665d099338b882f04ebf5c49c288a06e672a
cebf2e5276e6d064d0ec86beaf1129fe0d0fd582
/days001-010/day004/exercises/exe03.py
b1d1b162b3eaa208daab7b26dd09be948a6c17ad
[]
no_license
SheikhFahimFayasalSowrav/100days
532a71c5c790bc28b9fd93c936126a082bc415f5
0af9f2f16044facc0ee6bce96ae5e1b5f88977bc
refs/heads/master
2023-06-14T06:18:44.109685
2021-07-08T16:58:13
2021-07-08T16:58:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
# 🚨 Don't change the code below 👇 row1 = ["⬜️", "⬜️", "⬜️"] row2 = ["⬜️", "⬜️", "⬜️"] row3 = ["⬜️", "⬜️", "⬜️"] treasure_map = [row1, row2, row3] print(f"{row1}\n{row2}\n{row3}") position = input("Where do you want to put the treasure? ") # 🚨 Don't change the code above 👆 # Write your code below this row 👇 row = ...
[ "pullynnhah@icloud.com" ]
pullynnhah@icloud.com
9eccf41638f98d68a478cf5662722effd0d141f1
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/429/usersdata/321/105736/submittedfiles/jogoDaVelha.py
5c2f9f6e28ff3e44d39d2035d3ea23eadb25e1c8
[]
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
478
py
# -*- coding: utf-8 -*- from jogoDaVelha_BIB import * # COLOQUE SEU PROGRAMA A PARTIR DAQUI print('Bem vindo ao JogoDaVelha do grupo 8 [Iara, Ingrid, Luiz Otávio, Tatiane]\n') computador='' a=nome() b=solicitaSimboloDoHumano() sort=0 sorteioPrimeiraJogada(a) if sort==0: jogadaComputador(computador) else...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9c2f2f4eb875c5babcf80654e2677a2bf2ded7f2
9c3765dba0b249eb0a8da92076d2ae01291fc0e7
/done/py/euler_017.py
c317671d2df5d743890d38c521968310b4db2c72
[]
no_license
saetar/pyEuler
3a021f95a1856775bef87b38c753049b04282b80
f0af7092e16c2109028b4b1aa5bed7a0057d3fe9
refs/heads/master
2020-03-21T12:05:15.430454
2018-06-15T03:50:50
2018-06-15T03:50:50
138,535,115
0
0
null
2018-06-25T02:40:43
2018-06-25T02:40:42
null
UTF-8
Python
false
false
1,641
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Jesse Rubin ~ Project Euler """ If the numbers 1 to 5 are written out in words: one, two, three, four, five, then there are 3 + 3 + 5 + 4 + 4 = 19 letters used in total. If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letter...
[ "jessekrubin@gmail.com" ]
jessekrubin@gmail.com
80f21cc006c3ef85a2b7175d1042109b2a4b48d0
97874e39125fd24c4e88ed7d288c1cf779d83b6d
/lib/dist.py
319405275cfb044c946f95886f69ac33f1e8b86d
[ "Apache-2.0" ]
permissive
dpla-attic/akara
42c0bdbf738b12c27b0b1c2d0e262f88519ff333
432f14782152dd19931bdbd8f9fad19b5932426d
refs/heads/master
2022-06-03T16:47:34.325656
2014-03-06T13:57:57
2014-03-06T13:57:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,200
py
"""Support code for dealing with distutils and (eventually) Distribute. This is a helper module for installing Akara extensions. It extends the standard distutils installer. Please read http://docs.python.org/distutils/ for a detailed description of how to use and distribute software packages with distutils. This ...
[ "none@none" ]
none@none
77cc5e4fb244d37e9ba2df2f0435197f8460ff0b
990a115cc0164e77d50e7dc5c7e424e65b64dfe2
/kgraph/users/management/commands/create_users.py
b742e63c0dde7bb028dbe68d938e54a220bab8d5
[ "BSD-3-Clause" ]
permissive
the-fool/kg
b01e5627e4f2c22e9804b2abddd0fb05242818cb
04d12505677a1b9977965fdc114c6e1a29de729b
refs/heads/master
2021-01-20T03:57:00.582098
2016-03-29T15:00:43
2016-03-29T15:00:43
53,908,215
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
from django.core.management.base import BaseCommand from kgraph.users.models import User class Command(BaseCommand): def handle(self, *args, **kwargs): User.objects.all().delete() users = ['One', 'Two', 'Three', 'Four', 'Five'] for u in users: new_user = User(username=u, email=...
[ "sketchbang@gmail.com" ]
sketchbang@gmail.com
811192b9afc4c6219353238eae74b18c45defeab
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_206/376.py
94a5da1caba226579cbd769dbf54d9398a26594b
[]
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
522
py
def solve(d, n, ks): ks = sorted(ks, key=lambda x: x[0], reverse=True) t = [0] * n i = 0 for k, s in ks: t[i] = (d - k) / s i += 1 x = max(t) return d/x if __name__ == "__main__": t = int(input()) for i in range(1, t+1): d, n = [int(x) for x in input().split(" ")...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
242b90609e278e451c641f118c3defb97ad915b9
3676067d2ebd535793c0b4742451baf8603687c3
/modules/video_tools/convert_video.py
e46d64157d15eb101ad33bc00deb10e8a044d99b
[]
no_license
DoD-Chu/python-learning-notes
bbbfbed83bc751c8f1e03d8cf74bea20b025c907
57941f8746955ec7d603b94c7411e06a8902f0d0
refs/heads/master
2022-09-11T20:22:46.701650
2020-06-03T06:07:01
2020-06-03T06:07:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,618
py
# -*- coding: utf-8 -*- """ # -------------------------------------------------------- # @Project: python-learning-notes # @Author : panjq # @E-mail : pan_jinquan@163.com # @Date : 2020-04-01 14:15:41 # -------------------------------------------------------- """ from utils import image_processing, file_processing im...
[ "panjinquan@dm-ai.cn" ]
panjinquan@dm-ai.cn
dcf658f4596bad0a0d7a0ca51c32017345224292
c153118983a83bede2b43cd7d4f14213eb5b597e
/FQA/ranking/data_argu.py
e7afd5ded06747fa699643a1e0a29c9a713df4a9
[]
no_license
jessie0624/NLPProjects
86377f72cf739d5e41697fd6112555b302f24cc0
71daf6bbe20300b943d409b4000f4bba6073a84b
refs/heads/main
2023-01-19T06:02:27.750891
2020-11-22T04:18:12
2020-11-22T04:18:12
303,234,129
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
import sys sys.path.append('../') import config import pandas as pd import numpy as np from utils.jiebaSegment import * import re # train_all.csv def data_argu(file):
[ "jessie_lijie@126.com" ]
jessie_lijie@126.com
3e94be58728422a4373c6d5adb7f6334fda29ca1
6ecee1d9c6bcb33b659e3bc174420f7b4b0aa40c
/tests/test_stat.py
8c0c608a647b5285e254d8618e20488017377cd1
[ "Apache-2.0" ]
permissive
IshitaTakeshi/Tadataka
78bd88da26e9510d303e42b47c2e16b52042fdf1
852c7afb904503005e51884408e1492ef0be836f
refs/heads/master
2020-09-11T05:12:10.256067
2020-07-11T09:49:49
2020-07-11T09:49:49
221,948,177
57
4
null
null
null
null
UTF-8
Python
false
false
1,514
py
import numpy as np from numpy.testing import assert_array_almost_equal from tadataka.stat import zca_whitening, normalize_mean, ChiSquaredTest def test_chi_squared_test(): X = np.random.normal(size=(100000, 2)) mask = ChiSquaredTest(p=0.95, dof=2).test(X) # 95% of elemest should be classified as inliers ...
[ "ishitah.takeshi@gmail.com" ]
ishitah.takeshi@gmail.com
85e3ba56c1efadeddd4d5d06699d59f7cb566000
635cb7fb75048f9de7b95b48d1f59de68f9b3368
/R08/rozwijanie_klas_za_pomocą_klas_mieszanych/example2.py
78aa25fbaff5a1fcaa508185f13f9fe3ebc9d58b
[]
no_license
anpadoma/python_receptury3
9e889ac503e48eb62160050eecfdc4a64072c184
c761f2c36707785a8a70bdaccebd7533c76dee21
refs/heads/master
2021-01-22T14:38:34.718999
2014-01-31T22:09:44
2014-01-31T22:09:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
class RestrictKeysMixin: def __init__(self, *args, _restrict_key_type, **kwargs): self.__restrict_key_type = _restrict_key_type super().__init__(*args, **kwargs) def __setitem__(self, key, value): if not isinstance(key, self.__restrict_key_type): raise TypeError('Klucze ...
[ "mtar@data.pl" ]
mtar@data.pl
604622b01f216e23018efc81bcfd999c0d828049
670c844e5cfa1cdf11212cc53972ecd8f7a25949
/python/test/test_Candy.py
460fc1fdf2452422d45273b8e6ab414c41fc9cf9
[]
no_license
IamConstantine/LeetCodeFiddle
74d580a0741e40397f1283beadd023f9b9323abd
5ec509505a394d53517fb005bbeb36745f06596a
refs/heads/master
2022-05-31T05:25:14.273605
2022-05-23T02:46:47
2022-05-23T02:46:47
100,910,327
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
from unittest import TestCase from Candy import candy class Test(TestCase): def test_candy(self): self.assertEqual(5, candy([1, 0, 2])) self.assertEqual(13, candy([1,2,87,87,87,2,1])) self.assertEqual(18, candy([1,6,10,8,7,3,2])) self.assertEqual(12, candy([29,51,87,87,72,12]))
[ "vishalskumar12@gmail.com" ]
vishalskumar12@gmail.com
b524930253fa8420cf87411fe16178dac17f84b6
238e44cd3700d180d84b481078d9b149a97fc858
/blog/views.py
0605947f626535e04a6568b0fcaf76548e669f59
[]
no_license
mrpal39/fullfeblog
83b18d1b147bdba9c13c0c4b5d63c0a7c658f3af
ad7630ae87d68d37c90fb41bd2564b95f9a7a1f2
refs/heads/master
2023-01-31T07:31:51.666727
2020-12-14T03:56:25
2020-12-14T03:56:25
319,716,301
0
0
null
null
null
null
UTF-8
Python
false
false
5,879
py
# from core.models import Item from django.shortcuts import render # from django.views.generic import ListView,DetailView from django.shortcuts import render, get_object_or_404 from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from .models import Post from django.views.generic import ( ListV...
[ "rp9545416@gmail.com" ]
rp9545416@gmail.com
0bfd5bf86b4a1a3c31ba64b33b2160797579dcc9
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-AppTrackingTransparency/Lib/AppTrackingTransparency/__init__.py
70ee141f8259e91f488e31d365008727373dea36
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
807
py
""" Python mapping for the AppTrackingTransparency framework. This module does not contain docstrings for the wrapped code, check Apple's documentation for details on how to use these functions and classes. """ import sys import Foundation import objc from AppTrackingTransparency import _metadata sys.modules["AppTr...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com