blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
⌀
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
3ac6fe9285c63f5da3ffe0d1bd1bc00e915bc58a
50396037c75a66ed93db819a87dc4f4588e09a85
/userprofile/migrations/0004_auto__del_field_about_food_preferance__add_field_about_food_preference.py
b888b4eb042f43579fc830d21be81b75920d9790
[ "BSD-3-Clause" ]
permissive
rif/conference-registration
61541f5c5c0343136e9055b0b58bbbee4237638c
2e83e98d68eff5c8ab6ae3a79db910e2e81c58ae
refs/heads/master
2020-07-11T22:14:03.530711
2011-08-20T08:30:21
2011-08-20T08:30:21
204,654,825
0
0
null
null
null
null
UTF-8
Python
false
false
7,318
py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'About.food_preferance' db.delete_column('userprofile_about', 'food_preferance') ...
[ "radu@fericean.ro" ]
radu@fericean.ro
8a945e78f099f7762500d19cdae8eea83bdc39a5
28e16491dbddefeef482f515bb84f8cbf619929a
/scripts/cleanup_datasets/populate_uuid.py
495d97a622c8fc1886c5a5d9734f4d508529aa46
[ "CC-BY-2.5", "AFL-2.1", "AFL-3.0", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hidelab/galaxy-central-hpc
a9e469829cdcfa4adf8fcbcc178534d5e2dccf0b
75539db90abe90377db95718f83cafa7cfa43301
refs/heads/master
2021-01-23T10:20:57.837042
2017-09-06T14:15:46
2017-09-06T14:15:46
102,609,249
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
#!/usr/bin/env python """ Populates blank uuid fields in datasets with randomly generated values Going forward, these ids will be generated for all new datasets. This script fixes datasets that were generated before the change. """ import sys, os, ConfigParser import galaxy.app from galaxy.util.bunch import Bunch im...
[ "sokratiskariotis@gmail.com" ]
sokratiskariotis@gmail.com
af211811bb73b1bd38a7d4bbc0f87d8923c55867
84c36e9067476a730d88f5ec799deabd5a46a44d
/Main/Timer.py
d99db57758d3eb32fb500370348e9068666a17a0
[]
no_license
AGou-ops/myPyQT5-StudyNote
8bbce76b778a55c31773313d137682c77d246aad
7e5eb426b6f30c301d040f6bc08f8a3c41d4a232
refs/heads/master
2022-11-06T00:05:25.603798
2020-06-20T01:59:45
2020-06-20T01:59:45
261,099,203
0
0
null
null
null
null
UTF-8
Python
false
false
1,507
py
''' 动态显示当前时间 QTimer QThread 多线程:用于同时完成多个任务 ''' from PyQt5.QtWidgets import QWidget, QPushButton, QApplication, QListWidget, QGridLayout, QLabel from PyQt5.QtCore import QTimer, QDateTime import sys class ShowTime(QWidget): def __init__(self, parent=None): super(ShowTime, self).__init__(parent) ...
[ "suofeiyaxx@gmail.com" ]
suofeiyaxx@gmail.com
f32c1a713d8e431c07ad09be6f5430c91082155e
de33d07019f4be4439de4f07585a0906215ef562
/547. 朋友圈.py
8ba32a1ad4b3a328e610f36575d32d2473e12add
[]
no_license
Qinpeng96/leetcode
defbf7873fc07ed42fd34bb0c3e3282ff41ed266
e1dfd95c5bf09ffcd42934c1aca21a10337c3e7e
refs/heads/master
2021-07-13T10:53:32.109431
2020-08-19T09:33:36
2020-08-19T09:33:36
196,947,703
0
0
null
null
null
null
UTF-8
Python
false
false
6,511
py
""" [547. 朋友圈](https://leetcode-cn.com/problems/friend-circles/) 班上有 N 名学生。其中有些人是朋友,有些则不是。他们的友谊具有是传递性。如果已知 A 是 B 的朋友,B 是 C 的朋友,那么我们可以认为 A 也是 C 的朋友。所谓的朋友圈,是指所有朋友的集合。 给定一个 N * N 的矩阵 M,表示班级中学生之间的朋友关系。如果M[i][j] = 1,表示已知第 i 个和 j 个学生互为朋友关系,否则为不知道。你必须输出所有学生中的已知的朋友圈总数。 示例 1: 输入: [[1,1,0], [1,1,0], [0,0,1]] 输出: 2 说明:已知学生...
[ "Qinpeng96@users.noreply.github.com" ]
Qinpeng96@users.noreply.github.com
9c01625fc23cb1c1ca6048c4ac76e3a44acd8e6e
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/redshift_write_f/snapshot-acces_authorize.py
a35bbf7af7ea8e92b2b27904e17e6aa9050f58fa
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html if __name__ == '__main__...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
74d2d45aecb376cb9174ade5ebdd3b37d4e6b6aa
536538af28cfe40e10ff1ce469cd0f81e8b3a8fe
/russian_doll_envelopes.py
8dcd89273ddec3047d5a5041798d88e63b961299
[]
no_license
ShunKaiZhang/LeetCode
7e10bb4927ba8581a3a7dec39171eb821c258c34
ede2a2e19f27ef4adf6e57d6692216b8990cf62b
refs/heads/master
2021-09-01T07:41:03.255469
2017-12-25T19:22:18
2017-12-25T19:22:18
104,136,129
0
0
null
null
null
null
UTF-8
Python
false
false
1,276
py
# python3 # You have a number of envelopes with widths and heights given as a pair of integers (w, h). # One envelope can fit into another if and only if # both the width and height of one envelope is greater than the width and height of the other envelope. # What is the maximum number of envelopes can you Russia...
[ "noreply@github.com" ]
ShunKaiZhang.noreply@github.com
e8a238f031f9cb47778cdc8ab9a810047d27e29c
d7c2cb54abfa228072d00b0cb1a8af32b1f4ad11
/dassl/engine/ssl/mixmatch.py
ed102362f81a587105d99e3867e099f7433923f1
[ "MIT" ]
permissive
zhiheLu/Dassl.pytorch
242666e8150750cc2aa64cb611cc2b49e250e731
ea92e19cd31908fdc3c19f78a03da436bacc5298
refs/heads/master
2022-11-30T23:06:53.853825
2020-08-06T07:36:26
2020-08-06T07:36:26
285,502,715
1
0
MIT
2020-08-06T07:23:36
2020-08-06T07:23:36
null
UTF-8
Python
false
false
3,117
py
import torch from torch.nn import functional as F from dassl.engine import TRAINER_REGISTRY, TrainerXU from dassl.modeling.ops import mixup from dassl.modeling.ops.utils import ( sharpen_prob, create_onehot, linear_rampup, shuffle_index ) @TRAINER_REGISTRY.register() class MixMatch(TrainerXU): """MixMatch: A...
[ "k.zhou@surrey.ac.uk" ]
k.zhou@surrey.ac.uk
d992c4edd38cd126433ec90770a369fc1d2bfdb0
a7cf2d5a062ccb93285f034baa472703599336fb
/lec20class/B.py
9cd31cbe4b266e103d0ab257037ae3157ce9f56d
[]
no_license
webturing/PythonProgramming_20DS123
5538535e039a87e20752549bb0fa75d32b022cf9
d971277b0401e342adad637ebfac5f88f321abe6
refs/heads/master
2023-02-16T17:02:07.385325
2021-01-20T09:53:28
2021-01-20T09:53:28
297,176,647
1
1
null
null
null
null
UTF-8
Python
false
false
515
py
class Leader: def __init__(self, _name, _count=0): self.name = _name self.count = _count def __str__(self): return '%s:%d' % (self.name, self.count) leader = [Leader("Li"), Leader("Zhang"), Leader("Fun")] # Ctrl+Alt+L n = int(input().strip()) for i in range(n): name = input().stri...
[ "zj@webturing.com" ]
zj@webturing.com
81087ca5184cd13ce454df229a3feb6aff24f6a0
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/Atspi/AccessiblePrivate.py
dee0ae4823747b384f520d4fb77a9ca9f102dcf2
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
4,293
py
# encoding: utf-8 # module gi.repository.Atspi # from /usr/lib64/girepository-1.0/Atspi-2.0.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attributes of the ...
[ "ttys3@outlook.com" ]
ttys3@outlook.com
9d266a5315211bd0bd87b53d7f36295e0bf14e62
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/34/usersdata/112/13460/submittedfiles/moedas.py
7ff28fa0df7f3abc12e73ab647725c7a5f29c960
[]
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
286
py
# -*- coding: utf-8 -*- from __future__ import division a=input('Digite o valor de a:') b=input('Digite o valor de b:') c=input('Digite o valor de c:') j=c//a h=c//b resta=c%a restb=c%b if c%a==0: print('a=%.d'%j) if c%b==0: print('b=%.d'%h) print('S') else: print('N')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
a2cabb3404738cce59707706ae4a5328c62b79e6
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/577607_converting_numbers_their_alphabetical_/recipe-577607.py
c7810a7631a3269005bbbcba03cce14ffa33148c
[ "MIT" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
2,694
py
# this is program to convert mathematical number to alphabetical numbers # this can easily change to any language (but not for example japanese, i think!) by modifying the list below def translate(d): lst1=['one ','two ','three ','for ','five ','six ','seven ','eight','nine','ten','eleven','twelve ','thirteen ','fo...
[ "betty@qburst.com" ]
betty@qburst.com
132aefa09e8199899139f33681d3af4d2e20b3d9
316a07bd7ab47d447606d341c5d221d8318f65b9
/horizon/horizon/dashboards/syspanel/users/forms.py
82cdeb4397001b6efa63e6e6c750ab3d3589d13c
[]
no_license
kumarcv/openstack-nf
791d16a4844df4666fb2b82a548add98f4832628
ad2d8c5d49f510292b1fe373c7c10e53be52ba23
refs/heads/master
2020-05-20T03:10:54.495411
2013-06-16T23:44:11
2013-06-16T23:44:11
7,497,218
2
0
null
null
null
null
UTF-8
Python
false
false
7,891
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may...
[ "b37839@freescale.com" ]
b37839@freescale.com
91eda401ea8a1568d981e1adb7f7aeb0fe3a8861
e23108e2c18ef90c17bb7830130717601246fb68
/app1/views.py
c47cf1d66d4005da071dfab74d110c2c841289fe
[]
no_license
SDBranka/DojoSurvey
28ac68cbda3151d7e405aed241dda5144a4c11ec
e737b38422123c1b52805fdbcf1b47215793ab0e
refs/heads/main
2023-04-28T23:27:44.129598
2021-05-17T23:30:46
2021-05-17T23:30:46
368,113,125
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
from django.shortcuts import render, redirect, HttpResponse # Create your views here. def index(request): return render(request, 'index.html') def result(request): if request.method == 'POST': context = { "name": request.POST['name'], "location": request.POST['location'], ...
[ "sdbranka@me.com" ]
sdbranka@me.com
73d604e2aeef7966e0b90e234d483720fb98c3ad
f353f19174ea2fd8569c8f46bb2d99142fff919c
/List/Exercise-36.py
cbc7a66feea3df88564b6d7ac7c1593db58417d2
[]
no_license
self-study-squad/Python-examples
a283d9efe47d71d2e134e8fc2e919dccffe5108a
07de281fbcc9fb7f421b89a74ff24bafc78a5d4b
refs/heads/master
2022-12-28T01:35:03.927338
2020-10-09T06:41:16
2020-10-09T06:41:16
298,136,591
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
# Write a Python program to get variable unique identification number or string. x = 100 print(format(id(x),'x')) s = 'w3resource' print(format(id(s),'x'))
[ "longpham6595@gmail.com" ]
longpham6595@gmail.com
208c514c94c8db9d817fac1575c609a0e894f8c2
98beeffab0570eb7e4bd2785fc195658e18aa6dd
/SRC/engine/invariant.spy
a0dacd3914d1cb0aad45767e1d5abd0b6ce088d2
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
shkeshavarz/OOF2
27f59bb04775b76ad250ecfd76118b3760647bba
0f69f535d040875354cd34e8bbedeae142ff09a3
refs/heads/master
2021-01-15T15:32:10.713469
2016-01-13T14:44:20
2016-01-13T14:44:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,933
spy
# -*- python -*- # $RCSfile: invariant.spy,v $ # $Revision: 1.11 $ # $Author: langer $ # $Date: 2011/04/29 20:22:42 $ # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities ass...
[ "lnz5@rosie.nist.gov" ]
lnz5@rosie.nist.gov
678168765a373d5511dbed8905dd9fea9c82e408
50a6f90c46ee83e667de08be9c74acbaa792dbc5
/filefi/014/debug.py
a26160b8b44257d795055306964954adc940cebd
[ "MIT" ]
permissive
cpausmit/Kraken
e8f51a46e5d181e855bb9d2276b66c67e5842888
e79a19f6a4570e10ae52e543a5af9b2a3414c965
refs/heads/master
2023-08-16T21:36:54.426014
2023-08-15T14:11:08
2023-08-15T14:11:08
75,231,636
0
2
MIT
2018-02-08T14:25:53
2016-11-30T22:09:47
Python
UTF-8
Python
false
false
1,936
py
# $Id: debug.py,v 1.3 2010/10/23 12:43:55 ceballos Exp $ import FWCore.ParameterSet.Config as cms process = cms.Process('FILLER') # import of standard configurations process.load('Configuration/StandardSequences/Services_cff') process.load('FWCore/MessageService/MessageLogger_cfi') process.load('Configuration/Standa...
[ "paus@mit.edu" ]
paus@mit.edu
10c29759258e337248e96025923cdab9b9cc53ea
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03472/s382365761.py
3755951cf1cfaba3d1496204dd827af074ddb4a5
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
N,H = map(int,input().split()) AB = [list(map(int,input().split())) for _ in range(N)] a_sort = sorted(AB,key=lambda x: x[0],reverse=True) a_max = a_sort[0][0] tmp = [] for a,b in AB: if b > a_max: tmp.append(b) tmp.sort(reverse=True) cnt = 0 for i in tmp: H -= i cnt += 1 if H <= 0: p...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
c04c398e3c82d0ea4bcd591043777c65bc5561bd
56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e
/CMGTools/H2TauTau/prod/TauES_test/nom/emb/DoubleMuParked/StoreResults-Run2012B_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V5_16_0_1374658143/HTT_24Jul_newTES_manzoni_Nom_Jobs/Job_5/run_cfg.py
2dc8d9c70936ac2ad80691ae0d4153156bfe71cb
[]
no_license
rmanzoni/HTT
18e6b583f04c0a6ca10142d9da3dd4c850cddabc
a03b227073b2d4d8a2abe95367c014694588bf98
refs/heads/master
2016-09-06T05:55:52.602604
2014-02-20T16:35:34
2014-02-20T16:35:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
69,051
py
import FWCore.ParameterSet.Config as cms import os,sys sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/TauES_test/nom/emb/DoubleMuParked/StoreResults-Run2012B_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_C...
[ "riccardo.manzoni@cern.ch" ]
riccardo.manzoni@cern.ch
21db9a0f68c02292038f23030497e719a8974e4c
d589c25d6b8338f1060cee01e657ebe13a3e0a41
/prog.py
8ec8e56c0f31ca85ee16c9a0739e9027fcb8781d
[]
no_license
AnatolyDomrachev/maksim
45dd6ca341432bc4f877842fd516670a35d498ef
2c87657f500aa19a390e9d63718d02a61898d586
refs/heads/master
2023-01-31T15:12:21.021831
2020-12-18T17:33:40
2020-12-18T17:33:40
300,565,877
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
import requests import time import json import sys import imp imp.reload(sys) url='http://35.189.233.152' for i in range(100): r = requests.get(url) print(i,r)
[ "you@example.com" ]
you@example.com
c422557510e2b0ed73b371376c36296aa751028f
96e6f4cacf6030b1f9310d26be9fb2d31c30aeaa
/gov_track_hk_web/legco/migrations/0022_auto_20160807_1311.py
fe55fac6a5f2b2832d1abce3ccabb0c3ce07ef6a
[]
no_license
g0vhk-io/g0vhk_legco_web
f9ae6355667d9c39aad7f66ad3fb0d1b12663d11
94304ffae4c9a84453517b4c4983c90ac16414f5
refs/heads/master
2023-01-09T07:19:56.108040
2018-09-20T22:43:52
2018-09-20T22:43:52
92,956,060
12
9
null
2022-12-29T10:25:15
2017-05-31T14:42:22
Python
UTF-8
Python
false
false
795
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-07 13:11 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('legco', '0021_auto_20160802_0918'), ] operations = ...
[ "howa.wong@gmail.com" ]
howa.wong@gmail.com
aceb7978213e6e1adc30b8789019cc2b555ae83e
fabf716f8e17cce18c114959479c574ee8ba6518
/demo/Kuramato_Sivashinsky.py
0a6dca22a08e672dd7286a74a63b7c5a78459063
[ "BSD-2-Clause" ]
permissive
volpatto/shenfun
ce4366126ee20b3149b0996477f23e0ffec0c7e8
5528b4eb992b471a2b54fc6cfd26183c3eda3792
refs/heads/master
2020-05-07T20:33:04.600852
2019-04-10T09:03:39
2019-04-10T09:03:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,706
py
r""" Solve Kuramato-Kuramato_Sivashinsky equation on [-30pi, 30pi]^2 with periodic bcs u_t = -div(grad(u)) - div(grad(div(grad(u)))) - |grad(u)|^2 (1) Initial condition is u(x, y) = exp(-0.01*(x^2 + y^2)) Use Fourier basis V and tensor product space VxV """ from sympy import symbols, exp, lambdify impor...
[ "mikaem@math.uio.no" ]
mikaem@math.uio.no
b6c11a3b35b6d4fe6aaf4d0ea5cc3b7a02848a4a
d659810b24ebc6ae29a4d7fbb3b82294c860633a
/aliyun-python-sdk-rtc/aliyunsdkrtc/request/v20180111/DeleteAutoLiveStreamRuleRequest.py
4aa6952b51a69a0d6bc1fe851eaffa12590f804d
[ "Apache-2.0" ]
permissive
leafcoder/aliyun-openapi-python-sdk
3dd874e620715173b6ccf7c34646d5cb8268da45
26b441ab37a5cda804de475fd5284bab699443f1
refs/heads/master
2023-07-31T23:22:35.642837
2021-09-17T07:49:51
2021-09-17T07:49:51
407,727,896
0
0
NOASSERTION
2021-09-18T01:56:10
2021-09-18T01:56:09
null
UTF-8
Python
false
false
1,730
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
0053ee455ee17857b1797c4b793a80cbccbbc797
38e01d908569e2009966299028d7ec6680f8df2e
/mxonline/apps/courses/migrations/0008_course_teacher.py
372c8ad1e794dcea25f92c30979047f41bbaa64c
[]
no_license
Coder-Chandler/ARTPROJECT
fa1c6f6faf526231f5a86634b174eb81054ad1c1
0281b3bfb8368c502418dd599413cc4e3c5221f2
refs/heads/master
2021-10-11T00:47:34.942528
2019-01-20T09:31:00
2019-01-20T09:31:04
105,031,068
1
0
null
null
null
null
UTF-8
Python
false
false
637
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-08-11 15:39 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('organization', '0005_teacher_image'), ('courses', '000...
[ "ysiwgtus@gmail.com" ]
ysiwgtus@gmail.com
46520295d0778430e0543d732145b430dc9d54b3
ed230e3129ee72fb4777f7b62e7d997b1e72cb48
/coreapi/users/models.py
e4a7d68f6172b81af17235f60218a0e59d3e3b62
[]
no_license
dcopm999/modapi
d566653eb6e2ca7b02ddf616a9aecf178cfc5abf
2c9d2c601fdccee8996820cef680b9e9b094974a
refs/heads/master
2023-08-04T09:05:40.096143
2020-08-27T08:29:24
2020-08-27T08:29:24
289,923,439
0
0
null
2023-07-20T15:01:09
2020-08-24T12:36:46
Python
UTF-8
Python
false
false
567
py
from django.contrib.auth.models import AbstractUser from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from sorl.thumbnail import ImageField class User(AbstractUser): # First Name and Last Name do not cover name patterns # around the globe. ...
[ "dcopm999@gmail.com" ]
dcopm999@gmail.com
2c2ab8a36093761fb3fc7414689f73bbdc92f961
70fa6468c768d4ec9b4b14fc94fa785da557f1b5
/lib/googlecloudsdk/core/util/retry.py
d768f4a4e12142e4e6e72e550ec1e8570c19ab89
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
kylewuolle/google-cloud-sdk
d43286ef646aec053ecd7eb58566ab2075e04e76
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
refs/heads/master
2020-04-20T22:10:41.774132
2019-01-26T09:29:26
2019-01-26T09:29:26
169,131,028
0
0
NOASSERTION
2019-02-04T19:04:40
2019-02-04T18:58:36
Python
UTF-8
Python
false
false
10,664
py
# -*- coding: utf-8 -*- # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
4261afb9aa203568a8d1910fa0ef7e95c4656df0
49ee49ee34fa518b0df934081f5ea44a0faa3451
/crack-data-structures-and-algorithms/leetcode/reverse_words_in_a_string_II_q186.py
5ad0355f98c8a02e2c81fb1a3b138c62d04a56fa
[ "MIT" ]
permissive
kingsamchen/Eureka
a9458fcc7d955910bf2cefad3a1561cec3559702
e38774cab5cf757ed858547780a8582951f117b4
refs/heads/master
2023-09-01T11:32:35.575951
2023-08-27T15:21:42
2023-08-27T15:22:31
42,903,588
28
16
MIT
2023-09-09T07:33:29
2015-09-22T01:27:05
C++
UTF-8
Python
false
false
1,271
py
class Solution(object): def reverseWords(self, s): """ :type s: List[str] :rtype: None Do not return anything, modify s in-place instead. """ dst = 0 tok_begin = tok_end = 0 i = 0 while i < len(s): tok_begin = find_first_not_space(s, i) ...
[ "kingsamchen@gmail.com" ]
kingsamchen@gmail.com
5017d3d834a455533416c4002949615c763fb504
b15d2787a1eeb56dfa700480364337216d2b1eb9
/samples/cli/accelbyte_py_sdk_cli/iam/_get_admin_users_by_role_id.py
b1f0ec813e25130b7c42f0a34b53524dc7dd6cd3
[ "MIT" ]
permissive
AccelByte/accelbyte-python-sdk
dedf3b8a592beef5fcf86b4245678ee3277f953d
539c617c7e6938892fa49f95585b2a45c97a59e0
refs/heads/main
2023-08-24T14:38:04.370340
2023-08-22T01:08:03
2023-08-22T01:08:03
410,735,805
2
1
MIT
2022-08-02T03:54:11
2021-09-27T04:00:10
Python
UTF-8
Python
false
false
2,654
py
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # AGS Iam Service (6.2.0) # pylint: disable=duplicate-code # pylin...
[ "elmernocon@gmail.com" ]
elmernocon@gmail.com
a00519c79ec237c577450b8e21946f62ea6d9fa9
17edb3537087dffeabfd9694c71ddf878088713c
/django-master/django/contrib/flatpages/tests/urls.py
44975c168517a303a8d33e9c1cf6974a89d00fbf
[ "BSD-3-Clause" ]
permissive
BrianBGrant/DNDC
dbb9004c7cddbb34fb16ca94992fc76127c4b588
d0cdec5c5436f6fe1fd55d6bae093c21ccb27f6b
refs/heads/master
2020-04-15T19:43:33.351799
2014-10-02T16:48:44
2014-10-02T16:48:44
42,128,284
2
1
null
2015-09-08T17:34:42
2015-09-08T17:34:41
null
UTF-8
Python
false
false
231
py
from django.conf.urls import include, url # special urls for flatpage test cases urlpatterns = [ url(r'^flatpage_root', include('django.contrib.flatpages.urls')), url(r'^accounts/', include('django.contrib.auth.urls')), ]
[ "nrubin@appliedgeosolutions.com" ]
nrubin@appliedgeosolutions.com
1852907d5fcb65f51524392b9f19dea4f2b9ffa9
bf261a57b40e78f4141a5632343f8d1d3a3171cf
/espresso/tools/estimate_initial_state_prior_from_alignments.py
9f48da1efdf60fa6e0dcc8deb441ac150b651de9
[ "MIT" ]
permissive
aarora8/espresso
16cb22ef4e536316c28c6be771ce1e8ee2f0d3cb
4fdb0e881b5a9303cb068d36e9bfdb18261744b9
refs/heads/master
2023-02-24T04:10:11.041074
2020-12-20T07:25:11
2020-12-20T07:25:11
322,996,336
0
2
NOASSERTION
2021-01-20T14:06:48
2020-12-20T04:55:55
Python
UTF-8
Python
false
false
2,333
py
#!/usr/bin/env python3 # Copyright (c) Yiming Wang # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import logging import sys import numpy as np try: import kaldi_io except ImportError: raise ImportError("Please inst...
[ "freewym@gmail.com" ]
freewym@gmail.com
1852a8cbd586eca760c393bf8a70c3f3e3263c87
aa1e637de90f69f9ae742d42d5b777421617d10c
/nitro/resource/config/policy/policyevaluation_args.py
23fa86b7d12ba7f844f93400fcc608263a90140e
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
km0420j/nitro-python
db7fcb49fcad3e7a1ae0a99e4fc8675665da29ba
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
refs/heads/master
2021-10-21T18:12:50.218465
2019-03-05T14:00:15
2019-03-05T15:35:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,429
py
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
[ "lennart.weller@hansemerkur.de" ]
lennart.weller@hansemerkur.de
4f83a9586c1f3d9139c594263cf6824ff047d558
48f86b8671ce1a7ee79f3bb8c1af3de30235d0ba
/WGAN/main.py
1533ec2ef01f9132e525de18ebe49f00281c17f3
[ "MIT" ]
permissive
corenel/GAN-Zoo
c8014a59f7cc51db60aac74cb3d459fcae7cbe99
fd4498da35ace5a3d1696ff4fbec3568eddbe6a1
refs/heads/master
2021-01-15T19:23:11.892867
2017-08-23T06:24:44
2017-08-23T06:24:44
99,820,274
10
7
null
null
null
null
UTF-8
Python
false
false
5,459
py
#!/usr/bin/env python3 """Main code for WGAN.""" import os import torch import torch.nn as nn import torch.optim as optim import torchvision import params from data_loader import data_loader, get_data_iterator from models import get_models from utils import denormalize, init_random_seed, make_variable if __name__ =...
[ "xxdsox@gmail.com" ]
xxdsox@gmail.com
3fcbe11f166126c0187137ac0b28ae1ee78838ef
bd45e3070a4f2b577372b76aa2567d7cfe3df59b
/news/migrations/0002_auto_20210831_1706.py
ed063d1f0bbc619333d0a5d4708dec82554f1984
[ "MIT" ]
permissive
Koech-code/The-Moringa-Tribune
e875e1ab9fb5a06ed54e412292e76e838e3f4381
7dc2380ca28692a00a9b5330310cd7418d57fd7b
refs/heads/master
2023-07-19T08:42:29.149431
2021-09-09T10:56:19
2021-09-09T10:56:19
402,379,783
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
# Generated by Django 3.2.6 on 2021-08-31 14:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0001_initial'), ] operations = [ migrations.CreateModel( name='tags', fields=[ ('id', models...
[ "nixon.koech@moringaschool.com" ]
nixon.koech@moringaschool.com
67a72888028890eefd005350674ca304c5237fa9
02bfa3b84a5c811c3fd4c293b14b0846bd6ab3b5
/Bloomberg/findSumFromArray.py
1af2ba4772eb9840df3097c7317054e42cd2b2d2
[]
no_license
Ronak912/Programming_Fun
9dde0842245b62748b479924921383de07b24d16
2a504d0ef230d09007b8a268c356055ced5ca6c0
refs/heads/master
2020-04-06T03:40:52.046819
2020-04-03T22:25:36
2020-04-03T22:25:36
42,281,340
0
0
null
null
null
null
UTF-8
Python
false
false
1,340
py
# https://www.careercup.com/question?id=5684774451544064 # You are given an array of values, (not necessary integers or positives) and a value. You have to print all # the pairs whose sum is given value. Write a general method which can accept integers, float, doubles, long, or any other # thing where this make sense....
[ "ronak.928@gmail.com" ]
ronak.928@gmail.com
afd533eb06936420eee9c9506deae0b3304893f8
3784495ba55d26e22302a803861c4ba197fd82c7
/venv/lib/python3.6/site-packages/networkx/algorithms/communicability_alg.py
2cd2a4ae0149161f51d93bfa3c47c68289dd6a02
[ "MIT" ]
permissive
databill86/HyperFoods
cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789
9267937c8c70fd84017c0f153c241d2686a356dd
refs/heads/master
2021-01-06T17:08:48.736498
2020-02-11T05:02:18
2020-02-11T05:02:18
241,407,659
3
0
MIT
2020-02-18T16:15:48
2020-02-18T16:15:47
null
UTF-8
Python
false
false
5,051
py
# -*- coding: utf-8 -*- """ Communicability. """ # Copyright (C) 2011 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # Previously coded as communicability centrality # All rights reserved. # BSD license. import networkx as nx from networkx.ut...
[ "luis20dr@gmail.com" ]
luis20dr@gmail.com
33f00e634abcbe221d34944636a38e0c5540343e
9fbf6007183ad85ecffea514109a4d207f804c2e
/crm_campaign_blog/__openerp__.py
19e791d5964e039241d5897e327078eaa5c6f0ef
[]
no_license
qponline/odoo-marketing
e25be3d805a2bff42c6947030484123f36843eb3
8a9de63d6a8690d1911326f4c14a788810a86e44
refs/heads/master
2021-01-22T11:21:37.455476
2017-05-26T15:36:58
2017-05-26T15:36:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,276
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution, third party addon # Copyright (C) 2017- Vertel AB (<http://vertel.se>). # # This program is free software: you can redistribute it and/or modify # it under the terms of th...
[ "apollo_zhj@msn.com" ]
apollo_zhj@msn.com
12d3b21c2a9ce1801551bb57c3c8108cf3f7c86e
0cca742d0d5b45b6605e42a8e3c8840d4aca595f
/MolRep/Interactions/link_models/CFLP/pysbm/sbm/objective_function_iclex.py
722468fb5b5bc67d7110cfa72402de78fdfe4e23
[ "MIT" ]
permissive
biomed-AI/MolRep
4822062cd336743f321bb5a9045f8ef883cfd832
11a36843a83ddc93748c5437f5a21f2507b66c77
refs/heads/main
2023-04-19T05:34:36.922622
2023-04-11T02:15:16
2023-04-11T02:15:16
324,152,162
104
27
MIT
2023-04-11T02:13:51
2020-12-24T12:32:39
Python
UTF-8
Python
false
false
46,698
py
""" Likelihood function ICLex like described in Model selection and clustering in stochastic block models with the exact integrated complete data likelihood from Etienne Come and Pierre Latouche (2014) """ import math from .objective_functions import ObjectiveFunction # @formatter:off def calculate_icl_ex_jeffrey_...
[ "raojh6@mail2.sysu.edu.cn" ]
raojh6@mail2.sysu.edu.cn
e3cfabf904fbe0bb254f221dc5cd23b41e96b1e6
899272fabd69c55e7d6e6ef3c45551083c4150cc
/DoAnalysis_MSSM_New/Step6_CalcQCDEstimation.py
775dc955ac84e6acbc6e39ea978c55556bb32678
[]
no_license
abdollah110/NMSSM2014
4664a49f85d1bb01a8f83da88d903994587d7a60
f462b9a028c017b31ac291e44eb96fb52da4179c
refs/heads/master
2020-12-24T16:24:03.964437
2016-03-04T17:06:32
2016-03-04T17:06:32
18,986,965
0
0
null
null
null
null
UTF-8
Python
false
false
24,266
py
#! /usr/bin/python # To change this template, choose Tools | Templates # and open the template in the editor. #http://root.cern.ch/viewvc/trunk/tutorials/pyroot/hsimple.py?revision=20881&view=markup __author__ = "abdollahmohammadi" __date__ = "$Feb 23, 2013 10:39:33 PM$" import math import ROOT from ROOT import Doub...
[ "smohamadi@gmail.com" ]
smohamadi@gmail.com
0ace9d174f3f1231bb67a42d509e58e06a2c9ea7
a57805bcd26fedbdfb061125a902eb42537c1f3c
/utils/sphinx/prepare.py
eea16866fd06f570adf8eb43aafc098b48bd0244
[]
no_license
RandomStuffs22/docs-tools
4d35917aa0068d6623d8bd89f0d791e91e010180
8057323d2e400aca7b94cdf055ed8fa3a2a5101c
refs/heads/master
2021-01-14T14:06:45.074250
2014-02-28T22:52:48
2014-02-28T22:52:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,215
py
import os import itertools from fabfile.intersphinx import intersphinx_jobs from fabfile.make import runner from utils.jobs.dependency import dump_file_hashes from utils.jobs.errors import PoolResultsError from utils.output import build_platform_notification from utils.shell import command from utils.contentlib.manp...
[ "samk@10gen.com" ]
samk@10gen.com
d1fbc3b0ae15d6be4cfe6866a0205a4b1881537f
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5690574640250880_1/Python/rgs/c.py
398f44616c8806a3a0055e80660d70517af5daf8
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,293
py
#!/usr/bin/env python def solve(r, c, m): #print 'solve', r, c, m def rotate(board): return [map(lambda row: row[col], board) for col in range(len(board[0]))] if board else [] def solve_rec(r, c, m): #print "solve_rec", r, c, m if c == 1: b = min(m, r-1) return m - b, ([['.'] for _ in range(r-b)]) + (...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
c431de53285e3ad02c3cfc973b3e3c29f11f2239
20895d9d17214de5cf3fbf2b4880c94cc5d1fc48
/condor/go_save.py
94ce5bfe6d823bfb10b6289bcdea97abcb5af60e
[]
no_license
bpfrancis/milliQanSim
d058cafb7fcd082da1c3d4b5b68404b3dcccdff1
21435953c1a0f8de3c3b3604aa3b4696a27aa882
refs/heads/master
2021-10-14T09:12:43.891281
2019-02-03T19:56:07
2019-02-03T19:56:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,481
py
#!/usr/bin/env python import subprocess import os import shutil import sys jobNumber = int(sys.argv[1]) proc = str(sys.argv[2]) # Sample, mCP_UFO, JPsi, Y1S, Y2S, Y3S, cosmicmuons, am241 charges = [0.0010, 0.0015, 0.0022, 0.0034, 0.0051, 0.0076, 0.0114, 0.0171, 0.0256, 0.0384, 0.0575, 0.1000] #Full Study #charges = ...
[ "brian.patrick.francis@cern.ch" ]
brian.patrick.francis@cern.ch
d264e1ae75276575705ee75708225271ec3ffc9f
c8165c4bf663a7d6c4ef94659e75d418b16bcdeb
/day12/day12.py
aac2ef531eb1ce1f0747fefaec70a219919fc0a1
[]
no_license
sguberman/advent2017
97baea3618f690f946ee807506a0febaf972ef3c
d4df53da1a611eeb30c0f90ae2063b8283c55654
refs/heads/master
2021-09-01T22:16:12.043688
2017-12-28T21:34:12
2017-12-28T21:34:12
110,288,304
1
0
null
null
null
null
UTF-8
Python
false
false
1,079
py
# -*- coding: utf-8 -*- """ Created on Tue Dec 12 09:32:06 2017 @author: Seth Guberman - sguberman@gmail.com """ def read_input(filename): graph = {} with open(filename) as f: for line in f: lhs, rhs = line.strip().split(' <-> ') graph[int(lhs)] = [int(x) for x in rhs.split(',...
[ "sguberman@gmail.com" ]
sguberman@gmail.com
96fc0273b39525fb5a2cc62772c95365cb48593d
7839d009f3ae0a0c1bc360b86756eba80fce284d
/devel/lib/python2.7/site-packages/geneus/__init__.py
f02d810dc89db857b3e86acdcc7f6d7b57ef61d0
[]
no_license
abhat91/ros_osx
b5022daea0b6fdaae3489a97fdb1793b669e64f5
39cd8a79788d437927a24fab05a0e8ac64b3fb33
refs/heads/master
2021-01-10T14:43:41.047439
2016-03-13T23:18:59
2016-03-13T23:18:59
53,812,264
1
1
null
null
null
null
UTF-8
Python
false
false
1,024
py
# -*- coding: utf-8 -*- # generated from catkin/cmake/template/__init__.py.in # keep symbol table as clean as possible by deleting all unnecessary symbols from os import path as os_path from sys import path as sys_path from pkgutil import extend_path __extended_path = "/Users/adityabhat/Downloads/src/geneus/src".spl...
[ "abhat@wpi.edu" ]
abhat@wpi.edu
468862d9306d339343dc4dbd53c730f3b35f8b44
f3bd271bf00325881fb5b2533b9ef7f7448a75ec
/classes/_rs_grid1.py
abafba78f0b68f557dba3970de962ad320d16242
[]
no_license
obaica/xcp2k
7f99fc9d494859e16b9b0ea8e217b0493f4b2f59
6e15c2c95658f545102595dc1783f5e03a9e6916
refs/heads/master
2020-07-15T17:27:43.378835
2019-02-11T16:32:24
2019-02-11T16:32:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
693
py
from xcp2k.inputsection import InputSection class _rs_grid1(InputSection): def __init__(self): InputSection.__init__(self) self.Distribution_type = None self.Distribution_layout = None self.Max_distributed_level = None self.Lock_distribution = None self.Memory_facto...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e20f45817e69c90c6cd68f2548ef642a1e34a631
26f6313772161851b3b28b32a4f8d255499b3974
/Python/ArrayofDoubledPairs.py
8d96768739516bfa75a39210eac7aa8ce0162774
[]
no_license
here0009/LeetCode
693e634a3096d929e5c842c5c5b989fa388e0fcd
f96a2273c6831a8035e1adacfa452f73c599ae16
refs/heads/master
2023-06-30T19:07:23.645941
2021-07-31T03:38:51
2021-07-31T03:38:51
266,287,834
1
0
null
null
null
null
UTF-8
Python
false
false
2,256
py
""" Given an array of integers A with even length, return true if and only if it is possible to reorder it such that A[2 * i + 1] = 2 * A[2 * i] for every 0 <= i < len(A) / 2. Example 1: Input: [3,1,3,6] Output: false Example 2: Input: [2,1,2,6] Output: false Example 3: Input: [4,-2,2,-4] Output: true Explanatio...
[ "here0009@163.com" ]
here0009@163.com
90a8a84bbea2ec839139f9ba1cca53de13cbdba9
234a9f5def0b6a9e8a95651fdc56d7735c47102f
/Python/OpenGL/Handling window reshape and the aspect ratio.py
e1ad29a7676ee80db52a68d224d243c5388d16f6
[]
no_license
wangrupin/True_Artificial_Intelligence
0116e18c2509cfba180866a0c5b200d448627326
c1bb5488a1ed9759f66f6d9bc5cc2ca5cabac4e7
refs/heads/master
2023-01-14T08:43:12.754324
2018-10-16T12:28:47
2018-10-16T12:28:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,122
py
# -*- coding: utf-8 -*- # @Time : 2018/1/25 20:30 # @Author : play4fun # @File : Handling window reshape and the aspect ratio.py # @Software: PyCharm """ Handling window reshape and the aspect ratio.py: """ from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * def initFun(): glClearCo...
[ "play4fun@foxmail.com" ]
play4fun@foxmail.com
d0a09d93a2d54bbb51edcc79ef9a526bd0eda6c1
dd449ad8388847779b265f49f2339c9681376c60
/torch/quick_101/torch101_numpy.py
36509de7f49c4c90ddf86cd8f70613e3cf553f8f
[]
no_license
whoji/training-ground
478d76a8c274050eb910b28729ca1d1cdb47eae9
b107cc47c4a04bb8868c410ab207bacab5a86e4c
refs/heads/master
2020-05-16T16:13:26.788156
2019-12-04T01:56:01
2019-12-04T01:56:01
183,154,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,390
py
# Data Generation np.random.seed(42) x = np.random.rand(100, 1) y = 1 + 2 * x + .1 * np.random.randn(100, 1) # Shuffles the indices idx = np.arange(100) np.random.shuffle(idx) # Uses first 80 random indices for train train_idx = idx[:80] # Uses the remaining indices for validation val_idx = idx[80:] # Generates trai...
[ "minli1985@gmail.com" ]
minli1985@gmail.com
5aabb652715c872855bae7e2673cabbee6b9c18c
40ee9c34367f4768f2e6758d0896d7f18745209b
/deploy/update-ecs.py
1e9a25d36b9eba5d87d4bae3976e1db6b796fcbc
[]
no_license
bridgecrew-perf4/django-ecs-terraform
4f8f78ac3269ef44563e3ec62e95d754112a31b8
804a2357ccc63032fa338907dc755bd592651fa2
refs/heads/main
2023-04-08T18:46:13.576100
2021-04-22T14:27:55
2021-04-22T14:27:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,162
py
import boto3 import click def get_current_task_definition(client, cluster, service): response = client.describe_services(cluster=cluster, services=[service]) current_task_arn = response["services"][0]["taskDefinition"] response = client.describe_task_definition(taskDefinition=current_task_arn) return...
[ "user@localhost.localdomain" ]
user@localhost.localdomain
3d4852311ea4258cf37b0d196d03cfafbd8b24a0
dcfcd43b4c00fe897866a1e1d530b0f50ed56116
/pacong/request_demo2.py
591e1cfe7e80bcdf41f7c852251ffe0ebc093666
[]
no_license
Jeremyljm/new
8a93f4422b26272fe4a2b68bf806c40879db2d51
8a34245c10923a09b9e1cb178ba7fb5368b01f53
refs/heads/master
2020-09-22T18:06:57.789590
2019-12-02T05:41:10
2019-12-02T05:41:10
225,294,099
0
0
null
null
null
null
UTF-8
Python
false
false
837
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests # 发送post请求非常简单,直接调用‘request.post’方法就可以, # 如果返回的是json数据,那么可以调用'request.json()'来将json字符串转化成字典或者列表 data = { 'first': 'true', 'pn': '1', 'kd': 'python' } headers = { 'Referer':'https://www.lagou.com/jobs/list_python?city=%E5%85%A8%E5%9B%BD&c...
[ "178747324@qq.com" ]
178747324@qq.com
aa65a5c093b87981b65784baeb46b1d449815391
f5b49313358c3ec7f29e52170e92395fd4605302
/pyramid and steps/findSteps1.py
0b13e3ca2cc3808355f65559a00bcfbddf606e74
[]
no_license
Iam-El/Random-Problems-Solved
e98a25890cb839b5c88a603ec03998e050233a02
4a96a3406d431bf3277858d7424dfb048556b7cc
refs/heads/master
2022-10-04T14:52:40.943866
2020-06-06T03:26:19
2020-06-06T03:26:19
269,839,206
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
def findSteps(n): for i in range(0,n): stairs = ' ' for j in range(0,n): if j<=i: stairs=stairs+'#' else: stairs=stairs+' ' print(stairs) findSteps(5)
[ "elsyfernandes215@gmail.com" ]
elsyfernandes215@gmail.com
dca4c01063cb6d65d0963c6a60ad7dc28e40928d
6189f34eff2831e3e727cd7c5e43bc5b591adffc
/WebMirror/management/rss_parser_funcs/feed_parse_extractKapsouratranslatesBlogspotCom.py
e9d7c8831131a155d070beb3ccc579351e2ff08f
[ "BSD-3-Clause" ]
permissive
fake-name/ReadableWebProxy
24603660b204a9e7965cfdd4a942ff62d7711e27
ca2e086818433abc08c014dd06bfd22d4985ea2a
refs/heads/master
2023-09-04T03:54:50.043051
2023-08-26T16:08:46
2023-08-26T16:08:46
39,611,770
207
20
BSD-3-Clause
2023-09-11T15:48:15
2015-07-24T04:30:43
Python
UTF-8
Python
false
false
574
py
def extractKapsouratranslatesBlogspotCom(item): ''' Parser for 'kapsouratranslates.blogspot.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('PRC', 'PRC', 'transla...
[ "something@fake-url.com" ]
something@fake-url.com
e6c34786fc6b3745275f23063d7b23bc75308341
652fcedab4be03e0bc1a7362d755f8b48c4d7245
/wheresyourtrash/apps/notifications/managers.py
e6edc2050b8b0d9381d5487df859735c15daafb0
[]
permissive
mainecivichackday/wheresyourtrash
2264ffe1249557acf8aec086709488c7938d9dca
eff6867c9e86a5baac3eb1e884c345954e44509d
refs/heads/master
2020-04-05T22:46:08.294406
2019-01-30T20:16:06
2019-01-30T20:16:06
60,999,283
1
2
BSD-3-Clause
2019-01-30T20:16:07
2016-06-13T01:47:54
JavaScript
UTF-8
Python
false
false
292
py
from django.db import models class TrashManager(models.Manager): """ Trash Manager for Trash model """ def __init__(self): super(TrashManager, self).__init__() def get_queryset(self): return super(TrashManager, self).get_queryset().filter(trashed=False)
[ "colin.powell@gmail.com" ]
colin.powell@gmail.com
5ffe272692e57c66023820ea7951094ffe10565a
7bc54bae28eec4b735c05ac7bc40b1a8711bb381
/src/arg/perspectives/new_split/common.py
3ebbc6f5ca6603dee841f0f7608088978c60f83a
[]
no_license
clover3/Chair
755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e
a2102ebf826a58efbc479181f1ebb5de21d1e49f
refs/heads/master
2023-07-20T17:29:42.414170
2023-07-18T21:12:46
2023-07-18T21:12:46
157,024,916
0
0
null
2023-02-16T05:20:37
2018-11-10T21:55:29
Python
UTF-8
Python
false
false
1,701
py
import json import os from typing import Iterable, Dict, List from arg.perspectives.load import splits from arg.perspectives.qck.qck_common import get_qck_candidate_from_ranked_list from arg.qck.decl import QCKCandidate from cpath import data_path from list_lib import lmap from misc_lib import merge_dict_list from tre...
[ "lesterny@gmail.com" ]
lesterny@gmail.com
8c847624e7500fe73dfba465378dd4863768404a
a6e908c3f256165c6c1f1afd4408a3bc4c26eec6
/acq4/devices/MultiClamp/RackTemplate_pyqt5.py
274b905d682973fd0360fdf6b6bc31c92b3177c7
[ "MIT" ]
permissive
aiephys/acq4
14f4eb5a8ad5ac95544ca2f7792d462bba74283e
b4ce514ae0dfa5327a8e70a500b765314d4339c3
refs/heads/develop
2021-05-03T10:49:28.536474
2019-05-31T18:12:04
2019-05-31T18:12:04
69,374,483
0
4
MIT
2019-11-14T19:41:37
2016-09-27T16:03:35
Python
UTF-8
Python
false
false
4,104
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'acq4/devices/MultiClamp/RackTemplate.ui' # # Created by: PyQt5 UI code generator 5.8.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Form(object): def setupUi(self, Form): ...
[ "luke.campagnola@gmail.com" ]
luke.campagnola@gmail.com
7767f6a956bc5c451234c2763d040a3d094a6bcc
63bacb52d016cf7a237dacd79ba2861842c49ca9
/test/test_get_subscription_rate_plan_type.py
de1c493166630e7c1e000f427970e71c5c82b867
[]
no_license
arundharumar-optimizely/zuora-client-python
ee9667956b32b64b456920ad6246e02528fe6645
a529a01364e41844c91f39df300c85c8d332912a
refs/heads/master
2020-07-05T23:09:20.081816
2019-07-30T21:46:47
2019-07-30T21:46:47
202,811,594
0
0
null
2019-08-16T23:26:52
2019-08-16T23:26:52
null
UTF-8
Python
false
false
40,354
py
# coding: utf-8 """ Zuora API Reference # Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A...
[ "brian.lucas@optimizely.com" ]
brian.lucas@optimizely.com
1f9d606f2cfc3a87ef012ecfed0686fd444a8141
209e1a90ac3ad1a07653d7f7c1f740b3e0b68b6a
/nagare/publishers/standalone_publisher.py
c633bd88479bad1adbd22fa1f040ed310b63565e
[]
no_license
apoirier/test
444c1fd10fc39d58475cf538aaa7c3fd75d7903b
20283cd695e7177ea2d01b370b391ca6fb5a308a
refs/heads/master
2016-09-02T03:03:39.158703
2012-05-03T12:07:34
2012-05-03T12:07:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,988
py
#-- # Copyright (c) 2008-2012 Net-ng. # All rights reserved. # # This software is licensed under the BSD License, as described in # the file LICENSE.txt, which you should have received as part of # this distribution. #-- """The HTTP multi-threaded publisher""" import time from paste import httpserver from nagare im...
[ "alain.poirier@net-ng.com" ]
alain.poirier@net-ng.com
7a57d1fc93d7248250dcfac41437253f4fb49b73
6364bb727b623f06f6998941299c49e7fcb1d437
/msgraph-cli-extensions/src/education/azext_education/vendored_sdks/education/operations/_education_me_operations.py
428b50455256e1c9958f23a5f11017450d7d45db
[ "MIT" ]
permissive
kanakanaidu/msgraph-cli
1d6cd640f4e10f4bdf476d44d12a7c48987b1a97
b3b87f40148fb691a4c331f523ca91f8a5cc9224
refs/heads/main
2022-12-25T08:08:26.716914
2020-09-23T14:29:13
2020-09-23T14:29:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
89,315
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "japhethobalak@gmail.com" ]
japhethobalak@gmail.com
db920c0af702a40bd67a5dc58330d9af4509de08
00fc47594af196da2b57477deb380552e564dea7
/tests/tasks/mongodb.py
76dab7288884e80b8aa071197798a4d0644dc15a
[ "MIT" ]
permissive
apploitech/mrq
b97c2136b8b405a4784395acedb02ff8d913f49e
e63021606fb1dc839165c6b203e807119bffa2ec
refs/heads/master
2023-06-27T09:44:44.457392
2023-06-07T14:32:18
2023-06-07T14:32:18
172,127,544
2
0
MIT
2023-06-13T19:17:24
2019-02-22T20:03:37
Python
UTF-8
Python
false
false
381
py
from mrq.task import Task from mrq.context import connections class MongoTimeout(Task): def run(self, params): res = connections.mongodb_jobs.eval(""" function() { var a; for (i=0;i<10000000;i++) {  for (y=0;y<10000000;y++) { a = Math.max(y); } ...
[ "sylvain@sylvainzimmer.com" ]
sylvain@sylvainzimmer.com
8636d5d69be2491668e9bec2945382bfa5410fe7
be96bc4264c39b5a641a7eeb9b40fa1108d03761
/src/python/tool/autorigger_v02_obsolete/__obsolete_rig_system/goe_builds/project/characters/skeleton/build_hi/skeleton.py
338ba1d38423d4186c18136c304717001117a8dd
[]
no_license
EmreTekinalp/Public
39f13023846aa9ba7a2e61686aaa07f0042e13ff
a3c08d75e1ec396e0545b1ccb57ba8abdd2fb441
refs/heads/master
2021-01-20T20:18:28.636400
2017-08-10T07:18:04
2017-08-10T07:18:04
58,516,793
0
1
null
null
null
null
UTF-8
Python
false
false
1,039
py
''' @author: Emre @date: Thu 20 Nov 2014 08:47:40 PM PST @mail: ENTER YOUR EMAIL ADRESS HERE @brief: add additional code inside this module ''' from goe_builds.project.characters.skeleton.build_hi.data import obj from goe_functions import tools reload(obj) def parent_and_child(): #--- this method setup...
[ "etekinalp@outlook.com" ]
etekinalp@outlook.com
94825b91ee545bbcca9234d9656260ab1bdb463d
b99bbc50ab1d039948ccf853963ae044a97498fb
/src/api/symbols/urls/latest.py
172fa9e497700dd22010fadd7597226e11fd670f
[]
no_license
fan1018wen/Alpha
26899cc0eb6761bf6bd8089e7d12716c9e7ae01e
c50def8cde58fd4663032b860eb058302cbac6da
refs/heads/master
2021-05-12T12:54:15.747220
2017-10-11T10:58:51
2017-10-11T10:58:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
# coding: utf-8 from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from symbols.views.charts import LatestTableDataView, LatestTableDataListView urlpatterns = [ url(r'^latest$', LatestTableDataView.as_view()), url(r'^latest_list$', LatestTableDataListView.as_view()...
[ "mengqiang@1b2b.cn" ]
mengqiang@1b2b.cn
42bb29218c33ad4b40643aad676a5ac3f064a2d8
5c1ec474c579ad1280a2f6f71aaa5a9191f82f32
/src/accounts/middleware.py
b466efbd58cce514f16eef4c423cdb7bb8e6b9fa
[ "MIT" ]
permissive
Talengi/phase
bcc51837e6131fd65308728aa79380c37305d1a7
60ff6f37778971ae356c5b2b20e0d174a8288bfe
refs/heads/master
2022-12-09T15:42:14.459215
2021-06-28T08:12:21
2021-06-28T08:12:21
9,164,756
8
7
NOASSERTION
2022-12-08T01:18:49
2013-04-02T07:28:30
Python
UTF-8
Python
false
false
571
py
# -*- coding: utf-8 -*- from django.contrib.auth.models import AnonymousUser from categories.models import Category class CategoryMiddleware(object): """Add category data to every request.""" def process_request(self, request): user = getattr(request, 'user') if not isinstance(user, Anonym...
[ "thibault@miximum.fr" ]
thibault@miximum.fr
ebf4d53b9c4e0b4d598e3442c7e29f4f2920939d
0a28bcde2499e6a41e16d88ed62cd2e80a5b464d
/hb_quant/huobi/utils/print_mix_object.py
894dc43895232966ab71e7327c1f3b2d9c1583fd
[ "MIT" ]
permissive
wenli135/Binance-volatility-trading-bot
2cfe66007294b13a89b16d1622d50ce1615f1d66
75a03ad61df0e95492128fb6f1f419d4dc256ab3
refs/heads/main
2023-06-13T06:40:43.855256
2021-07-01T02:03:25
2021-07-01T02:03:25
373,853,320
0
0
MIT
2021-06-04T13:38:26
2021-06-04T13:38:26
null
UTF-8
Python
false
false
5,948
py
import sys import time BASIC_DATA_TYPE = (int, str, float) BASIC_DATA_TYPE_BOOL = (bool) TYPE_BASIC = "type_basic" TYPE_BOOL = "type_bool" TYPE_OBJECT = "type_object" TYPE_LIST = "type_list" TYPE_DICT = "type_dict" TYPE_UNDEFINED = "type_undefined" class TypeCheck: @staticmethod def is_list(obj): re...
[ "wenli@quchaogu.com" ]
wenli@quchaogu.com
e543420c4259d4772ae6a047eb134cc03fe10de8
822cceb604f4c0fa96d8bb24104168d3953fc2b6
/src/deep_rlsp/envs/gridworlds/tests/batteries_test.py
c78574849e5e0d3906b243a7809d011d92eb82bb
[ "MIT" ]
permissive
mcx/deep-rlsp
e921aeaf822a1c0173b8816795addc4b16bd0f9c
81941693aba2aa9157ca96e96567f4e3cb95fbc3
refs/heads/master
2023-04-18T11:29:53.142429
2021-05-04T17:14:08
2021-05-04T17:14:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,416
py
import unittest from deep_rlsp.envs.gridworlds.batteries import BatteriesState, BatteriesEnv from deep_rlsp.envs.gridworlds.tests.common import BaseTests, get_directions class TestBatteriesSpec(object): def __init__(self): """Test spec for the Batteries environment. G is a goal location, B is a ...
[ "dev@davidlindner.me" ]
dev@davidlindner.me
a6eedc396a8b54af5f8fbc70af73ffe841ff2ea3
4323ef02073a8e3c9e6aceba738aef5fc72c3aa6
/Testes com Pygame/Lab14_spell_check.py
1f8b914c3c0b5445b3ee5a6e14798765db5fe9e2
[ "MIT" ]
permissive
fotavio16/PycharmProjects
e1e57816b5a0dbda7d7921ac024a71c712adac78
f5be49db941de69159ec543e8a6dde61f9f94d86
refs/heads/master
2022-10-19T15:45:52.773005
2020-06-14T02:23:02
2020-06-14T02:23:02
258,865,834
0
0
null
null
null
null
UTF-8
Python
false
false
1,577
py
''' Programa de busca sequencial e binária ''' import re # This function takes in a line of text and returns # a list of words in the line. def split_line(line): return re.findall('[A-Za-z]+(?:\'[A-Za-z]+)?', line) # Leitura do arquivo 'dictionary.txt' num array dictionary_list = [] file = open("dictionary.txt"...
[ "fotaviofonseca@gmail.com" ]
fotaviofonseca@gmail.com
341b875f6ad0b7e5c45f88e7e6ac4b30bfab335f
cd4e09820a618230105b72aa9dd3cfde3cefb80e
/collaboration/views.py
77d8b93d74fce235d0a7113f58cd2c4b8d80d06b
[]
no_license
Pinehas/etcapp_1.0
820e3833045bbc23ad0c8d36e7f8524f4ea024bb
1e6de26aaa4a3bbd78fc4fdf7ac09376ab9d8b5d
refs/heads/master
2023-04-01T23:39:29.724897
2021-04-07T23:05:30
2021-04-07T23:05:30
355,704,499
0
1
null
null
null
null
UTF-8
Python
false
false
4,446
py
from django.shortcuts import render from .models import * from django.contrib import messages from django.http import HttpResponse # Create your views here. def home(request): return render(request, 'collaboration/main.html') def insert_conference(request): if request.method=="POST": if request.POST.g...
[ "wmaster468@gmail.com" ]
wmaster468@gmail.com
f53f966bb520110bd1c3ddb9bfe713812283ff9e
d31ae3dd632958a5a2caee091b10301dde2e7aef
/django_qna/usermodule/models.py
8871909d9f4a6ca3146e0e393791763a6d64db33
[]
no_license
datapsyche/django_qna
6fff55718db2a9b09004dd6e4ce2410b14af5a01
7cd4226c84372879bb6427555afcd8eaafa197ae
refs/heads/master
2023-08-05T20:24:38.445655
2020-05-03T12:09:01
2020-05-03T12:09:01
260,871,092
0
0
null
2021-09-22T19:04:41
2020-05-03T09:42:47
Python
UTF-8
Python
false
false
194
py
from django.db import models from django.contrib.auth.models import AbstractUser # Create your models here. class QuizUser(AbstractUser): score = models.IntegerField(null=True, default=0)
[ "jithinjkumar@gmail.com" ]
jithinjkumar@gmail.com
3607397a40c451570d6fd634069adc2439a57410
1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b
/2020/guess_number_higher_or_lower_ii.py
846601b93f8cbc12ae1b4cf6c9ac8bc7c908c60b
[]
no_license
eronekogin/leetcode
ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c
edb870f83f0c4568cce0cacec04ee70cf6b545bf
refs/heads/master
2023-08-16T10:35:57.164176
2023-08-14T11:25:33
2023-08-14T11:25:33
163,679,450
0
0
null
2021-09-09T12:04:44
2018-12-31T15:33:06
Python
UTF-8
Python
false
false
1,933
py
""" https://leetcode.com/problems/guess-number-higher-or-lower-ii/ """ class Solution: def getMoneyAmount(self, n: int) -> int: """ First of all, this question is to find the minimum cost you need to have in order to win this game. Then suppose dp[i][j] is the minimum cost we need...
[ "“mengyu.jiang@gmail.com" ]
“mengyu.jiang@gmail.com
8536cc7132c671337cf7bc547654ed7a08a643f1
4a8ebe9bb447d6ea736f7b350cafbf5b72258f4c
/myapp/migrations/0002_remove_book_yearpublished.py
38fb3c81226b586893ecd628e5ccf1607092321c
[]
no_license
mohammedshoaibdeveloper/Graphql-Django-Api
ee74dbbadd2f382b8b09576f9dee1b5eeda38c58
c66e4ab9a53c104f1fbc009f8ad16ac6c5cd5468
refs/heads/master
2023-08-26T12:00:47.659645
2021-10-28T11:36:42
2021-10-28T11:36:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
# Generated by Django 3.2.8 on 2021-10-23 12:13 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myapp', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='book', name='yearpublished', ), ]
[ "shoaibbilal101@gmail.com" ]
shoaibbilal101@gmail.com
650555e328a49beea77a9b45a80f9b2ccd71b637
d594f3926f6379ef7c382c608cb211f507240420
/csunplugged/at_home/migrations/0002_auto_20200506_2051.py
ca65d0ecef11a6a871e483e909b6f306b8d85f32
[ "LicenseRef-scancode-secret-labs-2011", "MIT", "OFL-1.1", "LGPL-2.0-or-later", "AGPL-3.0-only", "CC-BY-4.0", "Apache-2.0", "BSD-3-Clause", "CC-BY-SA-4.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference" ]
permissive
uccser/cs-unplugged
0b9151f84dd490d5b90771a3706327a623d39edc
363e281ff17cefdef0ec61078b1718eef2eaf71a
refs/heads/develop
2023-08-25T08:45:29.833025
2023-08-22T02:58:35
2023-08-22T02:58:35
66,315,075
200
41
MIT
2023-09-14T02:15:40
2016-08-22T23:16:40
Python
UTF-8
Python
false
false
410
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2020-05-06 20:51 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('at_home', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
[ "jackmorgannz@gmail.com" ]
jackmorgannz@gmail.com
768e2b5db98fd07b2b8640a2fd52fe1c516f4646
209c876b1e248fd67bd156a137d961a6610f93c7
/python/paddle/fluid/tests/unittests/collective/collective_allgather_api.py
a69e6c59e0edc3de31f3b00d37f00c369c04de4f
[ "Apache-2.0" ]
permissive
Qengineering/Paddle
36e0dba37d29146ebef4fba869490ecedbf4294e
591456c69b76ee96d04b7d15dca6bb8080301f21
refs/heads/develop
2023-01-24T12:40:04.551345
2022-10-06T10:30:56
2022-10-06T10:30:56
544,837,444
0
0
Apache-2.0
2022-10-03T10:12:54
2022-10-03T10:12:54
null
UTF-8
Python
false
false
2,952
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "noreply@github.com" ]
Qengineering.noreply@github.com
7ce935dff7b90031d9ac7e55982abb8be0bf2a5a
b0e7597e95bb8067dfd9e32cdbc8a0aee23ac75f
/tagging/memm.py
739f606767982fb348fa2cb3a9e95b2890d2907c
[]
no_license
famaf/PLN_2017
f94de63013850ea5ab43e99e154123ef6856cb5f
540cbea09b8e0d609e423c2d8dad192cd3a8e00c
refs/heads/master
2021-09-13T23:51:03.649372
2018-05-06T03:42:04
2018-05-06T03:42:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,289
py
# http://feature-forge.readthedocs.io/en/latest/feature_evaluation.html from featureforge.vectorizer import Vectorizer # Vectorizador # http://scikit-learn.org/stable/modules/generated/ # sklearn.pipeline.Pipeline.html from sklearn.pipeline import Pipeline # Pipeline # Clasificadores from sklearn.linear_model impor...
[ "ferreyramario7@gmail.com" ]
ferreyramario7@gmail.com
f163f737f3b4fcaeb6bb31afd4812595475cc860
54ab0f79f5d68f4732ca7d205f72ecef99862303
/torch/nn/utils/_per_sample_grad.py
3dee953d61710b9ca77fe43cc3df8161de1cad3d
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
csarofeen/pytorch
a9dd0f8ffa0642d72df2d5e109a8b4d9c2389cbc
e8557ec5e064608577f81e51ccfe7c36c917cb0f
refs/heads/devel
2023-04-30T02:42:13.558738
2023-03-14T00:50:01
2023-03-14T00:50:01
88,071,101
35
10
NOASSERTION
2023-06-21T17:37:30
2017-04-12T16:02:31
C++
UTF-8
Python
false
false
5,719
py
import functools import torch from torch.nn.utils.stateless import functional_call from torch.nn.utils._expanded_weights.expanded_weights_impl import ExpandedWeight from torch.utils._pytree import tree_flatten # dependency on `functional_call` means that this can't be exposed in utils # without creating circular dep...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
e71dc7a6f2ba00c6fe9bb0e508086e78643a0947
b5530bd292c00592ac716402408c48e567d5e883
/math/0x00-linear_algebra/101-the_whole_barn.py
6cc0e8920ad98a5476a744f8a52e5e4654c617b4
[]
no_license
cmmolanos1/holbertonschool-machine_learning
fceef34bc0133cde86f166ae1cbb62a0c449f013
5aff923277cfe9f2b5324a773e4e5c3cac810a0c
refs/heads/master
2023-01-24T04:05:32.883858
2020-12-14T19:16:12
2020-12-14T19:16:12
255,338,268
1
0
null
null
null
null
UTF-8
Python
false
false
2,344
py
#!/usr/bin/env python3 """n-dimensional Matrix addition""" def shape_mat(mat): """Calculates the shape of a given matrix. Args: mat (list): matrix to know the shape. Returns: list: shape x,y,z...n. """ if type(mat[0]) is not list: return [len(mat)] else: retur...
[ "926@holbertonschool.com" ]
926@holbertonschool.com
bb1f03f785a39320a6fb1b6b2cd727098c3ab338
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/faif_python-patterns/python-patterns-master/behavioral/chaining_method.py
02f9527fa0f80674f1ccf3c0c558769186ad6b8d
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
684
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function class Person(object): def __init__(self, name, action): self.name = name self.action = action def do_action(self): print(self.name, self.action.name, end=' ') return self.action class Actio...
[ "659338505@qq.com" ]
659338505@qq.com
45dfcb2ea3427edf1bad60fe3b6a82f4e0f95d24
e60a342f322273d3db5f4ab66f0e1ffffe39de29
/parts/zodiac/pyramid/tests/pkgs/viewdecoratorapp/views/__init__.py
11b540b7181cd10bef4a3d6dbdb4531a1eecc1e0
[]
no_license
Xoting/GAExotZodiac
6b1b1f5356a4a4732da4c122db0f60b3f08ff6c1
f60b2b77b47f6181752a98399f6724b1cb47ddaf
refs/heads/master
2021-01-15T21:45:20.494358
2014-01-13T15:29:22
2014-01-13T15:29:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
/home/alex/myenv/zodiac/eggs/pyramid-1.4-py2.7.egg/pyramid/tests/pkgs/viewdecoratorapp/views/__init__.py
[ "alex.palacioslopez@gmail.com" ]
alex.palacioslopez@gmail.com
8a37422c8328a26fc9e0ba2b62966b217b7d8c04
7246d149164dcf1ed6266cf6232bf71dd1ba3fbd
/backend/tst_2732_rn_app_2_2/wsgi.py
dac87e14e4a1379ac2cc7861b8c7e93afb4d361c
[]
no_license
crowdbotics-apps/tst-2732-rn-app-2-2
6780a3292a125c96098551ecc02230eaf8b90838
0d47783aa5ba9d8cfd2789f82013f7e12f3cd874
refs/heads/master
2023-03-02T10:59:39.489746
2021-02-12T13:58:27
2021-02-12T13:58:27
338,333,814
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
""" WSGI config for tst_2732_rn_app_2_2 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
47e61b6c85653def34127099c26087a991199264
c18a63e2e37712025794bc7d0bb824ca3a8cde51
/DockerManager/apps.py
135b96b9548a2eb6a3e1205094f4cd3db3627b5c
[]
no_license
wuqiangchuan/Xproxxx
9202767573a3f0bfc1b00b6069eaf6ef9bc25907
6403bde2bc091faab55cca5ac9fff62b13d6a0cb
refs/heads/master
2021-01-01T17:48:55.335991
2017-07-20T10:00:52
2017-07-20T10:00:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
from __future__ import unicode_literals from django.apps import AppConfig class DockermanagerConfig(AppConfig): name = 'DockerManager'
[ "root@localhost.localdomain" ]
root@localhost.localdomain
f83abb4954e3eafa272e0b07055f5e8e609d3cd4
fc212767c6c838360b62a3dcd8030a1dfcbf62fc
/muddery/typeclasses/player_character.py
b6240d80cf45795fe4e6594256ec5be5abaa1eba
[ "BSD-3-Clause" ]
permissive
caibingcheng/muddery
24d6eba76358621736e6a3d66333361239c35472
dcbf55f4e1c18a2c69576fd0edcec4699c1519b9
refs/heads/master
2021-05-19T09:49:19.319735
2020-03-29T03:55:51
2020-03-29T03:55:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
43,513
py
""" Player Characters Player Characters are (by default) Objects setup to be puppeted by Players. They are what you "see" in game. The Character class in this module is setup to be the "default" character type created by the default creation commands. """ import random from django.conf import settings from django.ap...
[ "luyijun999@gmail.com" ]
luyijun999@gmail.com
0b4bc79345873e7d034fd8a32541604f43e9d0fd
e7ce273f404f82fd8672c97e50b386509c8f9870
/OOP/Inheritance/Restaurant/food/cake.py
39aca389c9aa3483b4b50d036c38b3a03736d9aa
[]
no_license
rzlatkov/Softuni
3edca300f8ecdcfd86e332557712e17552bc91c3
a494e35bff965b2b9dccc90e1381d5a1a23737a1
refs/heads/main
2023-07-02T12:49:59.737043
2021-08-13T20:47:07
2021-08-13T20:47:07
319,088,872
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
from Restaurant.food.dessert import Dessert class Cake(Dessert): GRAMS = 250 CALORIES = 1000 PRICE = 5 def __init__(self, name): super().__init__(name ,Cake.PRICE, Cake.GRAMS, Cake.CALORIES)
[ "nozzller@gmail.com" ]
nozzller@gmail.com
f640a39d47e3ae5c4c0821adad9f21b0fb6e1ee0
e410f02ff98c6df7dc5c4a7a16abb7f6bf4d8d22
/notebooks/solutions/05A_knn_with_diff_k.py
4395df85311af7733f109402d13564e95c1223a6
[ "CC0-1.0", "LicenseRef-scancode-proprietary-license" ]
permissive
jlgorman/scipy-2016-sklearn
ddbad98358f2718278f20f7588403a7c06e50154
39568d726e0676fde2a6a53e99d71368868934e7
refs/heads/master
2021-01-13T10:56:23.982670
2018-04-05T13:35:30
2018-04-05T13:35:30
72,294,779
0
0
CC0-1.0
2018-04-05T13:35:31
2016-10-29T16:02:56
Jupyter Notebook
UTF-8
Python
false
false
1,138
py
from sklearn.datasets import load_iris from sklearn.cross_validation import train_test_split iris = load_iris() X = iris.data y = iris.target X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, ...
[ "mail@sebastianraschka.com" ]
mail@sebastianraschka.com
2a28311948a1c7014d0d4071d840a0e2c2caccd5
8cd9ceb3e49201426a135076c77081c42242ca0d
/research/apps/publications/authors_alias.py
bec2d1e0ce1747db5275efefe41d27c409fd2b0a
[]
no_license
research-core/core-research
57b7b6a60af6d9249dd7d5bc62ae3c056500c0ac
3311745bbfdb102ab4255d9ef1cf87e900e77d0f
refs/heads/master
2020-06-29T00:21:51.023340
2019-08-26T17:12:00
2019-08-26T17:12:00
200,383,310
0
0
null
null
null
null
UTF-8
Python
false
false
1,176
py
from confapp import conf from pyforms.basewidget import segment from pyforms_web.widgets.django import ModelAdminWidget from research.models import AuthorAlias class AuthorsAliasListWidget(ModelAdminWidget): """ """ UID = 'authors-alias' TITLE = 'Authors alias' MODEL = AuthorAlias #########...
[ "ricardojvr@gmail.com" ]
ricardojvr@gmail.com
966c280474db231d3a4ff2ada81c9d382a4ac29f
409b85320b7187f857d0da2e6b5a2a99bb915bb4
/sporco/mpiutil.py
2e0c3e003c381148b03d5f8f35d714b3aa10c054
[ "BSD-3-Clause" ]
permissive
vishalbelsare/sporco
4aaf20579d04a600623d9821cf8c45890e85a552
7748e52192d566fe449d01189e9dc6cf4053282d
refs/heads/master
2022-09-22T10:13:08.033794
2022-02-18T02:03:42
2022-02-18T02:03:42
158,176,895
0
0
BSD-3-Clause
2022-08-24T19:22:53
2018-11-19T07:06:03
Python
UTF-8
Python
false
false
6,536
py
# -*- coding: utf-8 -*- # Copyright (C) 2017-2021 by Cristina Garcia-Cardona <cgarciac@lanl.gov> # Brendt Wohlberg <brendt@ieee.org> # All rights reserved. BSD 3-clause License. # This file is part of the SPORCO package. Details of the copyright # and user license can be found in the 'LICENSE...
[ "brendt@ieee.org" ]
brendt@ieee.org
88bc90bfdb0627bd4b7102ea89cdde3fe2d027e9
6601f8a6310aac394c9c78592c3723f883263b74
/Lec_7_23.10/task7.py
60a8c674a32135a41fcb9298fdc6afd3b2e2885c
[]
no_license
BestPracticeSchool/BPS-BaseProgramming_2_2019
a6a9001f4dd554df1329991403699695e82810f1
a2320c3c40ea30c6dd56ee70800de48e36ad596d
refs/heads/master
2020-08-04T09:11:25.013405
2019-12-11T13:26:03
2019-12-11T13:26:03
212,085,358
9
1
null
null
null
null
UTF-8
Python
false
false
77
py
print(sum([1/(x**2) for x in range(int(input()), int(input())+1) if x != 0]))
[ "noreply@github.com" ]
BestPracticeSchool.noreply@github.com
8215cfcc593d44e5bd875805ce24b8161bc315a4
28bb1dda3010ab719ec537bcc63a5ed1491d148d
/sites with exercises/codewars/human redable time format.py
8ff065ef481e948cd9efe04153d8b83344aa1d45
[]
no_license
dawidsielski/Python-learning
86db2ff782aab13ff6dc44b1ce9295fc7c186e20
4aabf4d63906fb1d2379bbd401e9ac7484766198
refs/heads/master
2021-01-13T10:35:20.913601
2018-02-24T11:52:06
2018-02-24T11:52:06
76,497,517
0
0
null
null
null
null
UTF-8
Python
false
false
837
py
""" Your task in order to complete this Kata is to write a function which formats a duration, given as a number of seconds, in a human-friendly way. The function must accept a non-negative integer. If it is zero, it just returns "now". Otherwise, the duration is expressed as a combination of years, days, hours, minute...
[ "dawid.sielski@outlook.com" ]
dawid.sielski@outlook.com
2c38b98e8eebc1283f007ac517345df78d47ed54
6954cd112a7f8bd037316d6162da6740145aa25d
/account_pdc_payment_report/report/__init__.py
935b971f30163194e305121541d734968b461a8c
[]
no_license
maurolguin1/addons-accountv10
0c53e79b9174aac3ab72692fb259486933b2af36
47f3519f0d588020ec82b7cadec302927a80352c
refs/heads/master
2020-07-13T12:13:43.042647
2019-01-11T15:11:09
2019-01-11T15:11:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
50
py
# -*- coding: utf-8 -*- import report_payment
[ "diegobgajardo@gmail.com" ]
diegobgajardo@gmail.com
bde5ef6b606298bc696dd4f0ad49648fda309c91
d29c9f7bcb95acebe4a1747f2a6d42f53fabb513
/lmdb_search.py
58190a1bbaf2216aebc44af32a21ed77f1cc6c88
[ "MIT" ]
permissive
JFF-Bohdan/item_lookup
887621e20384fa52cfd2cf8f09054bf914731ab9
cf98c94d7b212a81ef499e8160f855fc3e9015ce
refs/heads/main
2023-03-09T09:13:57.165981
2021-02-14T21:03:59
2021-02-14T21:03:59
338,594,807
2
0
null
null
null
null
UTF-8
Python
false
false
2,054
py
import sys import time import humanize import lmdb from loguru import logger from shared.consts import LMDB_DATABASE_FILE from shared.lmdb_support import serialize_tuple_of_integers from shared.memory_usage import get_current_memory_usage def is_passport_expired_lmdb( env, passport_series: int, ...
[ "dbn@aminis.com.ua" ]
dbn@aminis.com.ua
6f5635ea6c0c15087d3fa48ab4537bbcdc434a00
2118f244be2e09508e3c89dee432d4a75343b430
/Math Input/riemann.py
cd9da24ed250c7de029b449acaff831d8a9024bd
[]
no_license
RamiJaloudi/Python-Scripts
91d139093a95f9498a77b1df8ec2f790c4f4dd4c
37e740a618ae543a02c38dc04a32ef95202ff613
refs/heads/master
2020-04-29T14:55:41.108332
2019-03-18T05:42:06
2019-03-18T05:42:06
176,212,014
0
0
null
null
null
null
UTF-8
Python
false
false
2,745
py
''' # Part 1 from math import sin, pi def Rsum(a,b): for i in range(1001): s = 0 delx = float((b-a)/1000) g = i*delx h = (i+1)*delx y_i = float(sin(a+g)) y_ii = float(sin(a+h)) s += ((0.5/3.14159265359)/ 3.14159265359) * (y_i + y_ii) * delx return s pr...
[ "rjaloudi@gmail.com" ]
rjaloudi@gmail.com
7ede9c20d003d37372f5b4f0b6eb22cbf1f54e3e
5ce1c0ab1b6147428fc30bcd1698e4d0e53b688e
/1035.py
3555e35845c706bb07cf0f6180e3dbb6544444a3
[]
no_license
junyang10734/leetcode-python
035b12df3f7d9fc33553140d1eb0692750b44f0a
eff322f04d22ffbc4f9b10e77f97c28aac5c7004
refs/heads/master
2023-07-22T11:16:38.740863
2023-07-14T00:22:00
2023-07-14T00:22:00
189,197,380
0
0
null
null
null
null
UTF-8
Python
false
false
1,525
py
# Uncrossed Lines # DP # runtime: faster than 53.05% class Solution1: def maxUncrossedLines(self, A: List[int], B: List[int]) -> int: m, n = len(A), len(B) dp = [[ 0 for i in range(n)] for j in range(m)] for i in range(m): for j in range(n): if i == 0 a...
[ "junyang2019@outlook.com" ]
junyang2019@outlook.com
a67e43abcb99373c5202643a9787c1ca35beaf38
4f7c0ad2f3762e245606387eddc41932758ed64f
/ubelt/util_repr.pyi
8370e097d8c052b63cede195dd217b10ca7c75c9
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
Erotemic/ubelt
e64e480a7811ae2eb3c98c3d00f38b7576c3c128
f667a356094570a40d1bb89b49000c7d9c959171
refs/heads/main
2023-09-03T17:13:16.487558
2023-07-09T20:59:46
2023-07-10T14:03:05
80,464,421
708
60
Apache-2.0
2023-07-10T20:56:50
2017-01-30T21:14:57
Python
UTF-8
Python
false
false
359
pyi
from typing import Type from typing import Tuple from typing import Callable from typing import Any def urepr(data: object, **kwargs) -> str: ... class ReprExtensions: def __init__(self) -> None: ... def register(self, key: Type | Tuple[Type] | str) -> Callable: ... def lookup(sel...
[ "erotemic@gmail.com" ]
erotemic@gmail.com
b02854f6294690fb8e9d624d2227de372c63875e
3d91b4f3ac42056b1a8205b1f5a62b5ca05ded43
/todo_project/todo_app/views.py
a54a5fbef9f44be3c724e25dd92c86dfc876e0b7
[]
no_license
olgayordanova/Python_Web
be34027a7755d5c178164995edb25f173a7fcdb4
3dfc6df65bffb109d5e26e9d1a496158b196c62f
refs/heads/main
2023-05-31T03:54:29.515864
2021-07-09T11:29:14
2021-07-09T11:29:14
373,501,975
1
0
null
null
null
null
UTF-8
Python
false
false
212
py
from django.shortcuts import render from todo_app.models import Todo def index(req): todos = Todo.objects.all() context = {'todos': todos} return render(req,'index.html', context=context)
[ "noreply@github.com" ]
olgayordanova.noreply@github.com
21b6d57d62ed2dc0b70f2ca1c93fb04ae5e83bf7
51aa2894c317f60726fe9a778999eb7851b6be3e
/140_gui/pyqt_pyside/examples/PyQt_PySide_book/004_Main components/005_Single-line text field/199_Signals - toClass.py
1ed06d494720f1b7641cfbbcbcb6a9a59f3764d5
[]
no_license
pranaymate/Python_Topics
dd7b288ab0f5bbee71d57080179d6481aae17304
33d29e0a5bf4cde104f9c7f0693cf9897f3f2101
refs/heads/master
2022-04-25T19:04:31.337737
2020-04-26T00:36:03
2020-04-26T00:36:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,636
py
# -*- coding: utf-8 -*- from PyQt4 import QtGui import sys class SampleWindow(QtGui.QWidget): def __init__(self): super(SampleWindow, self).__init__() self.init_ui() def init_ui(self): self.setWindowTitle("Class QLineEdit") self.resize(300, 100) self.lineEdit = QtGui.Q...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
9cac945a95a8fbd277f48ac5d25a6184294cac51
1e8e9f7e1d20b463d92b49261f69d9a659604372
/sytools/system.py
0de547862d34c03e92d8cce348b7515f8c437a3b
[ "MIT" ]
permissive
steinnymir/sytools
40afb2b2df94f6be1181027efe36a0cf77fc6366
89d1dcb7dd4e00ee39bad125e5b40f6ebed36d12
refs/heads/master
2021-10-26T01:29:47.498565
2021-10-20T07:22:34
2021-10-20T07:22:34
207,303,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,319
py
# -*- coding: utf-8 -*- """ @author: Steinn Ymir Agustsson Copyright (C) 2018 Steinn Ymir Agustsson This program 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, ...
[ "sagustss@uni-mainz.de" ]
sagustss@uni-mainz.de
2001ae046de07f29e900485fdc5446da00557a47
7f2821183e73b0f95130b7b3b32a19373b1a1813
/intensity_ratio_experiment_Sunday_20_05_18/calc_gaussian.py
e7d3d90fd64832e5b7614c4f7756bbc3ee20f0a1
[]
no_license
Pooleyo/intensity_ratio
ca1875c28b6fd8ef72c434a0e046596ba86b5895
1dc790907d6aae2035192295eb05b5b08f40e883
refs/heads/master
2020-04-04T20:04:23.575007
2018-11-05T14:31:25
2018-11-05T14:31:25
156,232,981
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
def run(ansatz, gsqr): import numpy as np def gaussian(x, a, x0, sigma): gaussian = a*np.exp(-(x-x0)**2/(2*sigma**2)) return gaussian gaussian_intensity = [] for i in gsqr: current_gaussian_intensity = gaussian(i, ansatz[0], ansatz[1], ansatz[2]) ...
[ "ajp560@york.ac.uk" ]
ajp560@york.ac.uk
9f96ac600a12d4598a4c9f05a46453a82d93dbd2
82f0efd17a380d002b3324223c0c9ee6f417946d
/nuagevsdsim/simentities/nusimenterprisesecureddata.py
909247935a7cc84d54593396f575ee3520fb2155
[ "BSD-3-Clause" ]
permissive
AjaySharmaKolachala/nuage-vsd-sim
3c67e5e963ee406851e447287e470aa1e382e3d5
459a84366a9bdde82d74aca18ea866e3d55d62ee
refs/heads/master
2021-10-09T04:13:49.701835
2018-12-21T00:35:57
2018-12-21T00:35:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,246
py
# -*- coding: utf-8 -*- # BSD 3-Clause License # # Copyright (c) 2017, Nokia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright no...
[ "philippe@dellaert.org" ]
philippe@dellaert.org
815d795e65ee5de343fdce6048fcac429ef14b42
b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e
/pyalarm/pyala-000/pyalapop.py
5a031205325b4f2f19c1ab31e19ae6398a344ff8
[]
no_license
pglen/pgpygtk
4d1405478a714f003984cf3e3db04ff1f767470b
33f58010e304f1a312f2356de453ecedb7aa21ef
refs/heads/master
2021-01-22T01:18:52.238415
2019-01-01T01:37:24
2019-01-01T01:37:24
102,215,955
0
0
null
null
null
null
UTF-8
Python
false
false
2,332
py
#!/usr/bin/env python # ------------------------------------------------------------------------ # Python Alarm. Pop up window and execute instructions. import os, sys, getopt, signal import gobject, gtk, pango import random, time, warnings def parseline(strx): #print "strx", strx if strx[0].startswith("#"):...
[ "peterglen99@gmail.com" ]
peterglen99@gmail.com
41dfbc4b0176ee8a2d063f18ae5d880d404baca4
bc2742cac4347eb8652295a0d4aeb8633eea7c1b
/examples/cnn/load_cifar10.py
f54d046d978ce584f99d2dba94e0dbd00c292eaf
[ "MIT" ]
permissive
temp3rr0r/neupy
933648658cc2a5e85e0fc3955de0a3de65ea97c1
f36071f5f46bf79ffd18485acca941db578656e8
refs/heads/master
2023-05-25T09:55:10.654122
2018-12-17T16:56:30
2018-12-17T16:56:30
163,117,180
0
0
MIT
2023-05-22T21:44:38
2018-12-25T23:24:17
Python
UTF-8
Python
false
false
2,270
py
import os import tarfile import numpy as np import six from six.moves.urllib.request import urlretrieve from six.moves import cPickle as pickle from imagenet_tools import FILES_DIR CIFAR10_URL = "https://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz" CIFAR10_TAR_PATH = os.path.join(FILES_DIR, "cifar-10-python.tar...
[ "mail@itdxer.com" ]
mail@itdxer.com
f5568a3818954bc4b337c53d099e610f3ba9ee45
f8c537649f1858742c271097063af7ea42343916
/models/cl/continual_learner.py
435b3f9faef5c7aabf11ceab423cb1e8f88c53fe
[]
no_license
msrocean/incremental_cifar100
5604e48fde1c201a768402f08a8986d95166b4e0
c5b13406966a98d4b5ca1b3a61f516701e3031da
refs/heads/master
2022-04-07T21:50:36.791039
2020-03-11T15:40:45
2020-03-11T15:40:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,916
py
import abc import torch from torch import nn class ContinualLearner(nn.Module, metaclass=abc.ABCMeta): '''Abstract module to add continual learning (CL) capabilities to a classifier. Adds methods/attributes for various CL methods (SI, LwF, BI-R) to its subclasses.''' def __init__(self): super()...
[ "gidovandeven@gmail.com" ]
gidovandeven@gmail.com
f5f20b3c4722c9747bfad90b38e663bd6f57bf78
f6ebfe28c30d83b58342e8825f12f44e4164ef4f
/app/models/User.py
7800a631d9333bc1d186e8e2bc4aae315e9c31e6
[]
no_license
xssChauhan/philter
48a81e0850ae7d72a2705d72a8c5afd500e491d7
eefa4e13d5a3fb59d53450a3ac4aa9835ad0f3ea
refs/heads/master
2021-01-19T21:06:54.124746
2016-11-18T21:01:09
2016-11-18T21:01:09
88,609,525
0
0
null
null
null
null
UTF-8
Python
false
false
2,371
py
from app import db from sqlalchemy.dialects.postgresql import JSON import os class UserStatus(db.Model): __tablename__ = "user_status" id = db.Column(db.Integer,primary_key = True) fbid = db.Column(db.String(64)) status = db.Column(db.String) time = db.Column(db.DateTime) @classmethod def getLastStep(self,id):...
[ "shikhar.chauhan@live.com" ]
shikhar.chauhan@live.com
c51c7247f2aa1cbe8e96cbcf8c5dc933fb3945c7
dd1d4a2b022ddc3212a54c90f626d22fbee77b1f
/check_gradient.py
d84ab5f964aa67c914a83c51a54801c6d3aa93d5
[ "MIT" ]
permissive
rlowrance/mlpack
2f56fa9d8ae049611a3bd6284ce86bc51e3292cb
4a09987fd5efb9736284c94d90aa51b34d4bce7f
refs/heads/master
2020-05-17T00:52:53.498995
2015-04-16T12:14:37
2015-04-16T12:14:37
34,053,643
1
0
null
null
null
null
UTF-8
Python
false
false
4,143
py
import pdb import random_sample import numpy as np import unittest from numeric_gradient import numeric_gradient if False: pdb.set_trace() def bottou(w, x, y, loss, gradient, delta, tolerance, debug=False): '''Use Bottou's recommended approach to check gradient wrt w at x,y. Check that loss(w', x, y) ~=...
[ "roy.lowrance@gmail.com" ]
roy.lowrance@gmail.com
358b354abc19214dc2f3611fcc2a0b41d0ebcc48
a234ecbf8a71075ba90c84f19443d2235c0f4234
/ScientificComputingWithPython/13/aviread.py
5f4de06497353b97cf38ac23138a13c542097174
[]
no_license
hkxIron/hkx_tf_practice
b9b58f7c52b07d4f10709804efc964cf17e5e3ff
76d0c12750d66b17e71a7102263e1d1fc637611a
refs/heads/master
2023-08-04T16:51:30.852650
2023-08-04T13:05:35
2023-08-04T13:05:35
118,223,247
10
13
null
2022-12-07T23:32:58
2018-01-20T08:14:06
Jupyter Notebook
UTF-8
Python
false
false
663
py
# -*- coding: utf-8 -*- """ 播放水波动画 """ import pyopencv as cv def show_video(fileorid): cv.namedWindow(str(fileorid), cv.CV_WINDOW_AUTOSIZE) video = cv.VideoCapture(fileorid) img = cv.Mat() img2 = cv.Mat() while video.grab(): video.retrieve(img, 0) #cv.cvtCol...
[ "hukexin0000@126.com" ]
hukexin0000@126.com
b1e24c027df503fa82fc4f4cbc942663685931e9
a65e5dc54092a318fc469543c3b96f6699d0c60b
/Personel/Chandrakar/Python/08june/bst_01.py
0c86275699dd3b790b05849f00c3d9a3a851fdce
[]
no_license
shankar7791/MI-10-DevOps
e15bfda460ffd0afce63274f2f430445d04261fe
f0b9e8c5be7b28298eb6d3fb6badf11cd033881d
refs/heads/main
2023-07-04T15:25:08.673757
2021-08-12T09:12:37
2021-08-12T09:12:37
339,016,230
1
0
null
2021-08-12T09:12:37
2021-02-15T08:50:08
JavaScript
UTF-8
Python
false
false
1,403
py
from queue import Queue class bsf : def __init__(self,aj_list) : self.aj_list = aj_list self.visited = {} self.level = {} self.parent = {} self.bfs_traversal = [] self.queue = Queue() print(f"adjestion list is : {self.aj_list}") def graph(self) : ...
[ "chandrakarbhagat222@gmail.com" ]
chandrakarbhagat222@gmail.com