blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
adbd9301b5bda91c278b06fb2830f00b52df2ea7
a3c970cb385cb4c6e2122b3c096f61ceb37b3acd
/defence/.history/dashboard/do_views_20191211183052.py
90e0aa9f0297d160ed8d425b8692c054943d6df7
[]
no_license
kirubasuba/certa
ec7cd06352ff9c477236afcead89daf9a28943bc
111f2bdfd2626475951f5f86746f04f5fd42ded4
refs/heads/master
2022-12-14T03:44:20.207843
2020-05-19T12:36:15
2020-05-19T12:36:15
212,568,163
0
0
null
2022-11-22T04:41:30
2019-10-03T11:56:13
Python
UTF-8
Python
false
false
29,600
py
from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.conf import settings from django.contrib.auth.models import User,Group from .forms import UserCreationForm,TAapplicationForm,cemilacUserForm,proforma_A_form,commentsUploadForm from django.contrib import messages fr...
[ "30341216+kirubasuba@users.noreply.github.com" ]
30341216+kirubasuba@users.noreply.github.com
b03de72493e2c78c1000ad28f82b270dba2b5ebb
f13acd0d707ea9ab0d2f2f010717b35adcee142f
/Others/soundhound/soundhound2018-summer-qual/c.py
b42363ae9f79c07d25224a6872610f1bc11e50c0
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
KATO-Hiro/AtCoder
126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7
bf43320bc1af606bfbd23c610b3432cddd1806b9
refs/heads/master
2023-08-18T20:06:42.876863
2023-08-17T23:45:21
2023-08-17T23:45:21
121,067,516
4
0
CC0-1.0
2023-09-14T21:59:38
2018-02-11T00:32:45
Python
UTF-8
Python
false
false
797
py
# -*- coding: utf-8 -*- def main(): n, m, d = map(int, input().split()) # KeyInsight # 期待値の線形性 # See: # https://img.atcoder.jp/soundhound2018-summer-qual/editorial.pdf # https://mathtrain.jp/expectation # 気がつけた点 # 愚直解を書き出した # 隣り合う2項がm - 1通りある # 解答までのギャップ ...
[ "k.hiro1818@gmail.com" ]
k.hiro1818@gmail.com
579b09ba8c6ea43f5b254fc7bfcff355538a029b
aa369073fab4f8e13ac27a714fe0d975a5a4a9ed
/algorithms/contextlib/contextlib_decorator.py
e31081404750566ee6b97aecadeb90d4fa43ebe0
[]
no_license
ramsayleung/python3-module-of-week
4076599a8b1d8aa5794de5d73e2083555abe9f0c
54266c7e62025c3816a6987191c40f3bc0fdd97c
refs/heads/master
2021-06-18T09:07:30.256614
2017-06-25T10:14:54
2017-06-25T10:14:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
import contextlib class Context(contextlib.ContextDecorator): def __init__(self, how_used): self.how_used = how_used print('__init__({})'.format(how_used)) def __enter__(self): print('__enter__({})'.format(self.how_used)) return self def __exit__(self, exc_type, exc_val,...
[ "samrayleung@gmail.com" ]
samrayleung@gmail.com
234dd1f7bc842aa839543c69dc1229e4cbfc4ef0
299e2c985b4a2921b150579955e7c60eee094397
/news/migrations/0006_auto_20190628_1447.py
9bd54a81c13dcf49ebf7819d2ee21928410fb2e4
[ "MIT" ]
permissive
Nigar-mr/News
48d58fbaab0f2bb8cc717323449d7eba14b94918
b75b78cc9fa64259f4239b1d456daa5224040ce4
refs/heads/master
2020-06-17T15:20:05.411391
2019-07-09T08:21:24
2019-07-09T08:21:24
195,961,863
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
# Generated by Django 2.2.2 on 2019-06-28 10:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0005_remove_headermodel_dropdown'), ] operations = [ migrations.AlterField( model_name='headermodel', name='...
[ "nigar-muradli@mail.ru" ]
nigar-muradli@mail.ru
da9e63f387cfd9e65de7a3e1a42fee0f4b8d78ad
2ac5a81d48809c8dcfcadd76cdbc47db0849758a
/benchmark/wikipedia/annotate_image.py
969cd898afdb5268c411c46595167cb0a8175e81
[]
no_license
vmingchen/mris
5fbed336c2b37dcbe79ee3cc50197bc26d4b2ffc
dacb37238e95b4474ba40112a09fb62f3c45723a
refs/heads/master
2020-04-15T05:08:37.982307
2013-03-03T23:11:03
2013-03-03T23:11:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
#!/usr/bin/python ''' Calculate statistics of file sizes (logarithmic). ''' import sys import math import get_hist if __name__=="__main__": if len(sys.argv) != 2: print "usage: %s infile" % sys.argv[0] sys.exit(1) hist = {} for line in open(sys.argv[1]): if line[0] == "#": continue (size, freq) = line.s...
[ "mchen@cs.stonybrook.edu" ]
mchen@cs.stonybrook.edu
faee502e77cbc063c0611c552d915c8f9c8f4ed2
5dab7cc91892d02bb0fc23672bec6eaea2291a15
/posts/migrations/0003_post_view_comment_count.py
62a65319132e7532b3bca1080e1fc485532cb823
[]
no_license
HyungJunKimAlbert/src
75f52b8a40e6c1fa38c7cb446314d0f255c144f0
f02fa4bf7e52f45da4b891f76d7c0a1c0d6afb74
refs/heads/master
2022-05-26T09:13:56.817102
2020-04-26T14:54:33
2020-04-26T14:54:33
259,046,728
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# Generated by Django 2.2.1 on 2020-04-25 10:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0002_post_featured'), ] operations = [ migrations.AddField( model_name='post', name='view_comment_count', ...
[ "hjkim1568@naver.com" ]
hjkim1568@naver.com
4be510286a64309365e96715a1c1baddce168127
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/comp/accessp.py
6214ab713e8f774ee7c5499f70f913487eac8f0d
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
5,062
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
d51d2bd4f6706b5327c9c09a4defd7d39ba47239
2d740bc48b9a4ca54941966dc6e1be6d8b8e0fc3
/collab_protocol/python/collab_client.py
c0c22dbfaada5721eb89a0b5ec48b4cb47dc63ad
[]
no_license
dengjunquan/phase3-hurdle
571bc23e267ecf0607230c62f82de7b0af3d9532
b9a95abdf4d0bd291d5477542e40e2278e587dee
refs/heads/master
2021-09-22T22:23:55.208173
2018-08-28T21:34:35
2018-09-17T18:33:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
27,027
py
#!/usr/bin/env python # encoding: utf-8 from itertools import izip import logging import logging.config import os import random import signal import socket import struct import sys import time import zmq import registration_pb2 as reg import collaboration_pb2 as collab from argparse import ArgumentParser from argp...
[ "craig.pomeroy.ctr@darpa.mil" ]
craig.pomeroy.ctr@darpa.mil
9e03554339fbf11a977d749579273a5308ebe17c
0ba1743e9f865a023f72a14d3a5c16b99ee7f138
/problems/test_0413_dp.py
b94b4a4005613d47a4b97b5eda809a2ed0f42f15
[ "Unlicense" ]
permissive
chrisxue815/leetcode_python
d0a38a4168243b0628256825581a6df1b673855c
a33eb7b833f6998972e5340d383443f3a2ee64e3
refs/heads/main
2022-06-20T15:09:27.221807
2022-06-02T21:55:35
2022-06-02T21:55:35
94,590,264
1
0
null
null
null
null
UTF-8
Python
false
false
997
py
import unittest import utils # O(n^2) time. O(n) space. DP. class Solution: def numberOfArithmeticSlices(self, a): """ :type a: List[int] :rtype: int """ # Common difference dp = [0] * len(a) result = 0 for p in range(len(a) - 1): q = p ...
[ "chrisxue815@gmail.com" ]
chrisxue815@gmail.com
243ac0fbe36422f9fa269aca5648dd83705bf943
92162f0d96820c73f03c92b402f7cc3c95823b30
/HelpfulFunctions.py
47606cc01398ce0526fce8dc6e4824f0bab22dab
[]
no_license
TrevorDemille/Simple-Analysis-App
f59ec56c653ae5f4196a8e317048d976d78bb604
e9d1ab29138ceb36f24e186cba0cf5314feee5dc
refs/heads/master
2021-01-12T10:16:13.041863
2016-12-13T22:57:25
2016-12-13T22:57:25
76,405,125
0
0
null
null
null
null
UTF-8
Python
false
false
12,401
py
import numpy as np import matplotlib.pyplot as plt import glob import os from pH import * from Parser import * # #Written by Trevor Demille, Summer 2016, Goldner Biophysics Group """ List of functions necessary/helpful in the analysis of Fluorimeter and Dynamic Light Scattering data. Data is all taken to ...
[ "noreply@github.com" ]
TrevorDemille.noreply@github.com
15779835a64dfa759bd9410bf9661ec5cf78f3aa
9a1538123b8abec14410dad46c437cf735684dd9
/product/migrations/0018_productproperty_value_type.py
48a0a691e24e11ea5cedf4a2158c7c000f223fd6
[]
no_license
asmuratbek/zastroy24
deec6bd65229aeb29eb313d915c6c47ca036a8aa
d68ce21beefc644752a1271a4d8981cd2423afba
refs/heads/master
2020-04-27T18:44:26.845151
2019-03-08T18:09:13
2019-03-08T18:09:13
174,585,168
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-12-24 09:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0017_auto_20171224_1536'), ] operations = [ migrations.AddField( ...
[ "asmuratbek@gmail.com" ]
asmuratbek@gmail.com
40b1899801acd45a1f375f49968cfbaef05ad3e5
463761fd2c7901832a2c0e0e9f5c69cdc8367a46
/snowflake_microbit/mb_snowflake.py
c2db8d7bb46bb401c6dc873d04314bfa96791bc7
[ "Apache-2.0" ]
permissive
micropython-Chinese-Community/fun
ed8a5eb41f92f6c569f0493e81798a536dfd000f
db63632fbbb345bc8c9198e61f18c286abdac61c
refs/heads/master
2020-04-10T15:21:46.271844
2018-12-11T16:13:35
2018-12-11T16:13:35
161,106,982
5
1
null
null
null
null
UTF-8
Python
false
false
3,549
py
from microbit import pin1, sleep, reset from neopixel import NeoPixel from random import randint import gc pileup=1 TH=2 perc=50 mpt=1 snow = [] pile = [[0]*16,[0]*16,[0]*16,[0]*16,[TH]*16] np = NeoPixel(pin1, 256) def rand(n): return randint(0,n-1) def set(row, col, color): if col%2: np[col*16+15-row] = co...
[ "shaoziyang@126.com" ]
shaoziyang@126.com
bea6050990dc01a93c86eef796bdd5a4f042ad4f
dccbf522ddbaf9025a41a7375679a7188bcb9ab0
/category/forms.py
69aeec12910453b17723e5f8c0a4974c3b203487
[]
no_license
junghwan1224/django_study
a2cd748fd0a60ac83b13778da31e8208b276bd0a
67c1f7181b2353882d1e2576cd5ffb116dec36fb
refs/heads/master
2020-04-21T11:31:30.222650
2019-03-01T06:41:44
2019-03-01T06:41:44
169,528,513
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
from django import forms from django_summernote.widgets import SummernoteWidget from .models import Post from .models import Comment class PostForm(forms.ModelForm): content = forms.CharField(widget=SummernoteWidget(), label='') class Meta: model = Post exclude = ('author', 'post_status', 'c...
[ "aorwn212@naver.com" ]
aorwn212@naver.com
5abc08ddf1f3216fa1ab6d4e58da02ac53e7e1df
ffd7b823905e1db0462e39017414dbef8bdf8c21
/src/VOMSAdmin/VOMSCommandsDef.py
b33b66a3a619e4befd8150f043302b8e34a983db
[ "Apache-2.0" ]
permissive
AlbertoPeon/voms-admin-client
3dd7cd2d71b3c5591dbd96ccca950d460071320d
e628a8e09acc19a106d325154706f300d7651a42
refs/heads/master
2021-01-15T17:21:24.956019
2012-04-14T08:17:42
2012-04-14T08:17:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,610
py
# # Copyright (c) Members of the EGEE Collaboration. 2006-2009. # See http://www.eu-egee.org/partners/ for details on the copyright holders. # # 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 # ...
[ "andrea.ceccanti@cnaf.infn.it" ]
andrea.ceccanti@cnaf.infn.it
c3b059e438f71cbc363cd9ce306bf96bc1084330
13897046cd98718d039fdad235d57683b7a4ee5c
/P022.py
1bddffd44b2bbbe020ebc953bea542108abd9d4e
[]
no_license
sana-malik/ProjectEuler
1cb7431337bd623b5f5db2b8f17eccc1509a3659
3ee2ff258c75c9dbe6ae17b3032fa6c2b3d7e304
refs/heads/master
2020-04-22T17:11:23.757241
2012-12-14T00:41:04
2012-12-14T00:41:04
7,157,851
1
0
null
null
null
null
UTF-8
Python
false
false
309
py
#! /usr/bin/python def score(name): return sum(map(lambda n : ord(n)-ord('A')+1, name)) file = open('names.txt') names = sorted(file.read().replace('"','').split(',')) file.close() totalScore = 0 for i, name in enumerate(names): totalScore += (i+1)*score(name) print totalScore print 938*score('COLIN')
[ "heyletsdance@gmail.com" ]
heyletsdance@gmail.com
94f8e95745e1bf0135136f7bd87f20138e0cd719
a05a42885c54d19456d0bc296836253eed9ab6ad
/errRobust/prep.py
d2993d18b9226be60be3688e4a3bbcbe6eb4c26a
[]
no_license
congzlwag/BornMachineTomo
b26d9cf4f90b1d015992864db05e14ff59479254
64b3286f5453763216b860f89961900269b8caff
refs/heads/master
2022-03-29T15:03:49.176583
2020-01-05T21:02:12
2020-01-05T21:02:12
134,438,390
4
1
null
null
null
null
UTF-8
Python
false
false
651
py
from mpi4py import MPI import sys sys.path.append('../') from CS6 import ProjMeasureSet, MPS import numpy as np import os measout_dir = './' if __name__ == '__main__': typ = sys.argv[1] space_size = int(sys.argv[2]) nss = load('elist.npy') comm = MPI.COMM_WORLD rk = comm.Get_rank() np.random.seed...
[ "congzlwag@163.com" ]
congzlwag@163.com
ceb2238237480ba980b5de0c949bd5db65cf0aef
eb348caf75cad81f9be41b73e9fe44f81ea75b7a
/app/server.py
24b57f899bd62d9b887e439506937d992a644fdf
[]
no_license
MertIV/gpu_price
e0cc113678e70629154eccab24ddcd4a4aea016e
031dd02a8c828a723745897cd19aac12d9ac4f00
refs/heads/master
2023-08-22T08:54:12.913696
2021-09-27T20:41:05
2021-09-27T20:41:05
408,991,696
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
from concurrent import futures import grpc from app.generated import echo_pb2_grpc from app.echoer import Echoer class Server: @staticmethod def run(): server = grpc.server(futures.ThreadPoolExecutor(max_workers=10)) echo_pb2_grpc.add_EchoServicer_to_server(Echoer(), server) server.a...
[ "mrtkrt96@gmail.com" ]
mrtkrt96@gmail.com
7ea4348e0388b427adcc0d1d2c31b06df0550e19
023acc1445ebde3e9fe4318fcfd60908c91d74d5
/sli/train.py
77fdce51b077a71a4dc73a1c298f924c963fc9d0
[]
no_license
counterfactuals/sensible-local-interpretations
99d22df59a6f07b6135762eec57c29e80dac9cdf
ab7af07299ea2ec1a1be28e0bf38f4947321d04c
refs/heads/master
2022-03-12T11:30:19.296104
2019-12-02T20:31:27
2019-12-02T20:31:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,828
py
from copy import deepcopy import numpy as np from sklearn.neural_network import MLPClassifier, MLPRegressor from sklearn.linear_model import LogisticRegression, LinearRegression from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor, GradientBoostingClassifier from sklearn.tree import export_graphvi...
[ "chandan_singh@berkeley.edu" ]
chandan_singh@berkeley.edu
56952f1c885d10b87a2294e359c3c70e9b306700
c241e9d8c47913f49372f3070c928c947dc1b890
/biobakery_workflows/scripts/extract_orphan_reads.py
4f288d34469d9ab13c0f56c20f2f5689165d797d
[ "MIT" ]
permissive
shbrief/biobakery_workflows
b29b311b1a484aee039ea3f36a3852378e86aeeb
2037f45caa8e4af9a40b5c1d2886cde15bc00381
refs/heads/master
2023-01-02T11:53:23.006687
2020-10-26T14:07:35
2020-10-26T14:07:35
291,796,194
0
0
NOASSERTION
2020-08-31T18:40:41
2020-08-31T18:40:41
null
UTF-8
Python
false
false
3,207
py
#!/usr/bin/env python # Given a raw interleaved fastq file and a balanced interleaved fastq (containing no orpahns) # generate the read ID lists necessary to extract all orphans from the original file. # # Makes use of the seqtk utility import argparse import os import subprocess def parse_cli_arguments(): """ ...
[ "437074+carze@users.noreply.github.com" ]
437074+carze@users.noreply.github.com
2614cf22a662a20980fc2c5a1e7cfee9b8c8d154
f6ff3146b8058e213155d5903eb793d2a1c1ec97
/virtual/bin/wheel
e0236dc65639bacd883c3a627892db671def4745
[ "MIT" ]
permissive
Bernicetwili/Personal-Gallery
c8695e54ee801768bebd071fa8d29b07f87c7984
15f5e018cee67abe97d47604137470ce205961fb
refs/heads/master
2023-04-21T18:41:07.063828
2021-05-20T18:40:17
2021-05-20T18:40:17
368,862,996
0
0
null
null
null
null
UTF-8
Python
false
false
255
#!/home/moringaschool/Desktop/Personal-Gallery/virtual/bin/python # -*- coding: utf-8 -*- import re import sys from wheel.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "bernicetwili0@gmail.com" ]
bernicetwili0@gmail.com
aad2618c35e6a18f8a73c82f034e86cb71cf7e0a
c1ddae2b80a644162032971fe7b46c42eefcf8a2
/evalunl/__openerp__.py
62a52832ce6a173e464f7bbf08881414e48d2945
[]
no_license
miltonlab/curso-openerp
f5e0daff2eff79e7cf46051bf0b89a31509c9b68
8408c02b3b6533f0ec74077b9f2d91e6ef90afe2
refs/heads/master
2016-09-01T18:04:31.995959
2013-05-09T05:09:57
2013-05-09T05:09:57
9,855,085
0
1
null
null
null
null
UTF-8
Python
false
false
307
py
{ 'name' : 'evaluacionunl2013', 'version' : '1.0', 'author' : 'DDS-UNL', 'decription' : 'Presentacion de Indicadores para Evaluacion 2013', 'category' : 'Frontal', 'website' : 'http://dds.unl.edu.ec', 'depends' : ['base'], 'data' : [ ], 'demo' : ['demo', 'demo.xml'] }
[ "miltonlab@ubuntuserver.(none)" ]
miltonlab@ubuntuserver.(none)
d7ebd8e83312c140e3e17d3997dc25a05d8fc343
23ec5dc502e0437c6a23aa783e01f7a9d32f5df0
/magicwand/AI/AI_form0225/gui/form.py
dec81337e09b40d39eca8a193dd6cf940ba3b768
[]
no_license
jinu0124/AI_Learning_Tool
1a33b9a99ca0518af11c77b94c3a8d63b9aa88c2
91ba9b2eda4b82db35ed8b50d4b1468e23a3d993
refs/heads/master
2023-04-03T09:57:00.737744
2020-02-25T23:57:12
2020-02-25T23:57:12
242,937,653
0
0
null
2023-03-24T22:17:04
2020-02-25T07:30:38
Jupyter Notebook
UTF-8
Python
false
false
24,617
py
from PyQt5 import QtCore, QtWidgets class Ui_Validation(object): # validation Check def setupUi(self, Form): Form.setObjectName("Form") Form.resize(447, 136) self.pushButton_3 = QtWidgets.QPushButton(Form) self.pushButton_3.setGeometry(QtCore.QRect(390, 20, 81, 23)) self...
[ "jinwoo6612@naver.com" ]
jinwoo6612@naver.com
e06b03019bec6c707b19cfc1bdac6a5392f11eac
98423db72fb471ba8a21e1e89a186a50c490e001
/polls/views.py
6e7ad747c5c31063678bbc8091fa9364efface69
[]
no_license
IchigoMilk/django-tutorial
9b66422e84e80ac9ae35f4501c690479663853da
b03629196b537f7834440de032cf5013589526ea
refs/heads/master
2021-05-08T14:52:16.696499
2018-03-28T14:41:41
2018-03-28T14:41:41
120,100,369
0
0
null
null
null
null
UTF-8
Python
false
false
1,670
py
from django.shortcuts import get_object_or_404, render from django.http import HttpResponseRedirect from django.urls import reverse from django.views import generic from django.utils import timezone from .models import Choice, Question class IndexView(generic.ListView): # template_nameを指定しないと自動でapp name>/<model name...
[ "socket65536@gmail.com" ]
socket65536@gmail.com
cc2b9367dcb75a3613b7456a24d7379ffed94e1f
23daf97312ea16cc399feedfa048131d564b83fa
/lib/BluenetLib/lib/core/bluetooth_delegates/AioScanner.py
1bdc096e712664a077ca209d4d5155cfeaf19041
[]
no_license
wickyb94/programmer
6e2cafa3fbb9f54bfdcd24f7062f6425ebb429fc
be0f01586365a79b51af8c4da376fe216d38afba
refs/heads/master
2022-04-09T17:52:18.106331
2020-03-02T15:57:02
2020-03-02T15:57:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,569
py
import asyncio import sys import time import aioblescan from BluenetLib.lib.util.LogUtil import tfs counter = 0 prev = time.time() start = time.time() class AioScanner: def __init__(self, hciIndex = 0): self.event_loop = None self.bluetoothControl = None self.connection = None ...
[ "alexdemulder@gmail.com" ]
alexdemulder@gmail.com
018d4933eefaf485450890317f1174539461ccc0
6cb7ea40aa0327e3117f43da16a995f092eb0ddd
/TrainDigitTF2.py
c0fa447b5308cbb045928860ad4ae086238840ec
[]
no_license
VectorL1990/DigitRecognition
ff63b0c992d5d044bb81361237654d43060b43d6
73f93cc388461b6b0b8aa0fadbd2f07a6d3599c3
refs/heads/master
2023-07-17T17:34:00.089287
2021-09-02T09:21:20
2021-09-02T09:21:20
397,887,827
0
0
null
null
null
null
UTF-8
Python
false
false
3,274
py
import os from MnistLoader import MnistLoader import tensorflow as tf from tensorflow.keras import datasets, layers, models from PIL import Image class CNN(object): def constructLayers(self, in_num_channel, in_filter_size, in_image_size, ...
[ "842175664@qq.com" ]
842175664@qq.com
d04df9b36f61e6f8358dcb1cc495cd63b9bc46af
8ec2e012ccfbd15c5799bacbac6040c7df8b7c3f
/store/migrations/0004_auto_20200215_0900.py
0f411dabe96bda5c25f76257bac7752593a310ea
[]
no_license
Rakshitmahajan/FairPrice
d5340fe19613ed235eb741e20d2b8c0139f08580
43f925d8a85b7158842b05a48c6bc342e2514c59
refs/heads/master
2023-01-07T16:59:50.833687
2020-03-17T13:48:28
2020-03-17T13:48:28
247,981,562
0
0
null
2023-01-05T10:19:02
2020-03-17T13:48:45
Python
UTF-8
Python
false
false
1,100
py
# Generated by Django 2.2.9 on 2020-02-15 09:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('store', '0003_auto_20200215_0857'), ] operations = [ migrations.AlterField( model_name='item', name='company', ...
[ "rakshitmahajan.rm@gmail.com" ]
rakshitmahajan.rm@gmail.com
9cda5a3e8de3d78fd55239a46b1e147370b3b614
c131f16aa7674db271ee2cab4326600af26da15c
/pokerFetcher/PokeFetcher.py
aff571a5fa087655919097c7aed44d462444045e
[]
no_license
bahmanshams/pokemon_fetcher
8de54f15328f6327f10182a6a78c74f178c1a6b9
739e29f3cc36ac573affa11690d5099d50046836
refs/heads/master
2020-03-11T14:06:48.666008
2018-04-18T10:11:46
2018-04-18T10:11:46
130,044,336
1
0
null
2018-04-18T10:15:32
2018-04-18T10:15:32
null
UTF-8
Python
false
false
1,462
py
from guizero import App, TextBox, PushButton, Picture,error ,Text from pokebase import pokemon from requests import get from PIL import Image from io import BytesIO info='' def fetch_pokemon(): name = (input_box.value).lower() try: poke = pokemon(name) info=poke.sprites heig...
[ "sereno.project@gmail.com" ]
sereno.project@gmail.com
86ff4bd7ce0fdafce7c4ee2da25bef83424cf597
2e2d813757928abeaf667e0c7b127f9b1d9bd096
/Shutter/ShutterWeb/forms.py
13f0afe0393a0ab9edaa747753d896308cb5bbcd
[]
no_license
lnming/PhotoShow
977e05534b61d438d18d75ad7feb4fe38696047a
361ede28e3c58238391db0bbacf99a6d8f75d406
refs/heads/master
2021-09-19T09:11:30.860909
2018-07-26T07:00:15
2018-07-26T07:00:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,272
py
from django import forms from .models import * from django.contrib.auth.forms import UserCreationForm class CommentForm(forms.ModelForm): # content=forms.CharField(label='comment_content',max_length=500) class Meta: model= Topiccomment fields = ['content', ] class TopicForm(forms.ModelForm)...
[ "dshe6519@uni.sydney.edu.au" ]
dshe6519@uni.sydney.edu.au
56be7e66f1221a5f47d8381ede18175161375cec
6887d8ccc93ce6706633766b35d980a27816c25b
/pustakalaywebsite/settings/base.py
a61acce18ad98887dcbdf252f36618d2385f31de
[]
no_license
pustakalay/pustakalaywebsite
cba8f99b693bc517dc1dd60ba595e703b88946de
d89a76fafc8cde5be7de139a54c4a729d4849cc9
refs/heads/master
2022-12-09T23:16:31.947949
2019-05-12T14:12:12
2019-05-12T14:12:12
172,263,237
0
0
null
2022-12-08T04:59:45
2019-02-23T20:57:22
Python
UTF-8
Python
false
false
3,614
py
""" Django settings for pustakalaywebsite 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/ """...
[ "tanayparadkar@gmail.com" ]
tanayparadkar@gmail.com
1b467a91e2a1c3615151e4396aca2174f89d16e1
c9755bfa9b8270f9e179ca09c78ceca4d09673f8
/manage.py
06a5f98043ce9e2850f69551eb8725b8924e5f8e
[]
no_license
kenners5/my_first_app
5d0bd9a8545c17cf82748bcb72d3f7995982181d
606c94d09e18e4b767465448388902e5f86c4b41
refs/heads/master
2021-01-25T12:01:38.399809
2013-10-05T18:36:00
2013-10-05T18:36:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_site.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "kenners@gmail.com" ]
kenners@gmail.com
373fc37ec392129ca342d634dee0ed7f075aff4c
d3f92b32093159ddb62822b0da166c06983846d1
/Downloads/PycharmProjects/untitled/py/py01.py
107c45f8b24c17c80d3126827708d7d6f7a19b79
[]
no_license
zyall/demo
73f4ad7f09e286df8d22b74e0d6c35ffd1884c5c
053df3fb20040021e3da5254e148a66abf204f56
refs/heads/temp
2021-06-14T13:00:01.766615
2019-07-19T03:11:36
2019-07-19T03:11:36
197,181,715
0
0
null
2021-06-02T00:01:08
2019-07-16T11:33:18
Python
UTF-8
Python
false
false
925
py
import random,sys name=input("输入姓名:") n = 0 #用户输入姓名后生成1到100的随机数 target=random.randint(1,99) print('I am thinking of a number between 1 and 100') print(target) #用户一共有5次猜测机会,5次没猜中游戏结束 while n < 5: n+=1 while True: # 按q或Q退出游戏 user_input =input("Take a guess or enter \"q\" to quit.\n") if us...
[ "1554754887@qq.com" ]
1554754887@qq.com
96fd2bd857643c663092d384cf8ec78d6b61a6cf
fb0f6646b2a7972454453907fbdc656b7471f55f
/p322_module_os.py
dd9437674eb42016e5d93c9c80fd0ac56ab764e7
[]
no_license
woojin97318/python_basic
6497d5c85369746edfe8ca79ad7f3f47c871ee66
97e9a322a08f1483bf35dc03507ac36af2bf1ddb
refs/heads/master
2023-07-15T03:06:05.716623
2021-08-25T03:46:48
2021-08-25T03:46:48
399,681,125
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
# 모듈을 읽어 들입니다. import os # 기본 정보를 몇개 출력해 봅시다. print("현재 운영체제:", os.name) print("현재 폴더:", os.getcwd()) print("현재 폴더 내부의 요소:", os.listdir()) # 폴더를 만들고 제거합니다.[폴더가 비어있을 때만 제거 가능] os.mkdir("hello") os.rmdir("hello") # 파일을 생성하고 + 파일 이름을 변경합니다. with open("original.txt", "w") as file: file.write("hello") os.rename("orig...
[ "woojin97318@naver.com" ]
woojin97318@naver.com
44b780296f882a1446213f64764a325db1448200
850001831b1fcdd4d27e328b356fc34909ca2917
/examples/spawn.py
367e288dfa2b65a8b6bb4a47c0514b8b5cd14e4f
[ "BSD-3-Clause" ]
permissive
yidiq7/pathos
b337353ccfe447866c46a4a784a7908c2f3fe31e
7e4fef911dc0283e245189df4683eea65bfd90f0
refs/heads/master
2022-08-24T08:43:34.009115
2020-05-27T12:18:21
2020-05-27T12:18:21
267,310,390
0
0
NOASSERTION
2020-05-27T12:14:50
2020-05-27T12:14:47
null
UTF-8
Python
false
false
957
py
#!/usr/bin/env python # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 1997-2016 California Institute of Technology. # Copyright (c) 2016-2020 The Uncertainty Quantification Foundation. # License: 3-clause BSD. The full license text is available at: # - https://github.com/uqfoundation/pa...
[ "mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df" ]
mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df
6da151561ebdbcbd2e1ef59f98ad58c5ba0e4fdd
9b1da04d8c66b8fb429120c902e4022506a05f5a
/apc_pcl/pysrc/apc_tools/__init__.py
a4d7113fa1bb4ff799cd3927888c039cacc468a9
[]
no_license
ehuang3/apc_ros
49533b7c6ec9a13d45914b0c252c88c7413731a7
050871ec3e85c53fe1b0e4612abbbfa07db75f59
refs/heads/master
2021-01-10T12:30:49.700225
2015-05-27T03:41:20
2015-05-27T03:41:20
36,998,288
4
0
null
null
null
null
UTF-8
Python
false
false
95
py
from .bin_segmenter import Bin_Segmenter from .utils import * from .misc import load_background
[ "jpanikulam@ufl.edu" ]
jpanikulam@ufl.edu
6b0026679abeb367ca7956559f7f3c433bc6bf99
307d035478f602f7c780a39d65b05ce39688d61b
/trash/viz.py
e85f2e37302c261adff6c36e8b614472bd3ad8c4
[ "MIT" ]
permissive
collectif-CAKUVA/dash-bodacc
c10c366586e0145c78a38d3880a54e849099c516
a77c240003db2737f95bd9b6f58b8436e25724c5
refs/heads/main
2023-05-04T14:20:40.205142
2021-05-23T23:38:17
2021-05-23T23:38:17
343,438,545
1
2
MIT
2021-05-23T23:38:18
2021-03-01T14:09:18
HTML
UTF-8
Python
false
false
868
py
""" visulasation module importing data to DF then exporting data to .html and csv.files """ import pandas as pd from __main__ import s_numero_identification, s_numeroDepartement, s_date_parution, \ s_activite_insee from api import s_ape from funct_pool import s_activite_declaree, s_code_postal df_final = pd.Dat...
[ "t.valton@gmail.com" ]
t.valton@gmail.com
daa82ba337e7c7ea48f602e231247e8415e0c3dc
805fbd9aead4fc2998fd5d8790043a20b2656915
/data_format/__init__.py
cb3c33b9d09bcf03a38af8f8bdd84bd066689fa1
[]
no_license
chenhaomingbob/ToolBox
f9a6ef64352c85ae84c44e9fab53aab74992c7c5
962304c004aa39e8a5bcb153def9dc3895595c9f
refs/heads/master
2021-05-19T00:37:23.170766
2020-06-01T10:57:05
2020-06-01T10:57:05
251,496,830
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
#!/usr/bin/python # -*- coding:utf8 -*- """ Author: Haoming Chen E-mail: chenhaomingbob@163.com Time: 2020/03/23 Description: """
[ "chenhaomingbob@163.com" ]
chenhaomingbob@163.com
9101fd59a62f04ff3e06d28da7e5ee90c839b959
9a123c2a3be7dbd2d5c60a4e5830b903b9b6e552
/module_build_service/scheduler/route.py
c74c78c626070f3e1d87114f4ea7d177a11a4299
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
James6xie/fm-orchestrator
d3b24093d1c635142dc57262382fdae869cd82b1
d3656b159b457126f99c323f49572809c7afc47d
refs/heads/master
2023-02-19T04:35:25.791000
2020-11-30T19:25:13
2020-12-04T12:08:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,991
py
# -*- coding: utf-8 -*- # SPDX-License-Identifier: MIT """ Define the router used to route Celery tasks to queues.""" from __future__ import absolute_import import inspect from module_build_service.common import conf, log, models from module_build_service.scheduler.db_session import db_session from module_build_servi...
[ "mprahl@redhat.com" ]
mprahl@redhat.com
d3743b3de00d52481bf2c74a20fb31405afce4c4
fb81442e5d2e940ad967bd0a264b7918d739173f
/py_test.py
49e8b365b34d93965925230a57e83abad11d1008
[]
no_license
Amertz08/euler_py
054f45d110b8cf4d0e9afeb7f5c608026226443c
0dd217c9e0a061e3622fd150b61e24a2c6bad5af
refs/heads/master
2021-05-06T23:15:42.742578
2017-12-07T00:16:31
2017-12-07T00:16:31
112,960,695
0
1
null
2017-12-06T20:32:57
2017-12-03T20:21:48
C
UTF-8
Python
false
false
515
py
import euler_py as eul def test_problem_one(): result = eul.problem_one(10) assert result == 23, f'Problem 1 should be 23: {result}' def test_problem_two(): result = eul.problem_two(89) assert result == 44, f'Problem 2 should be 44: {result}' def test_problem_three(): result = eul.problem_thre...
[ "adammertz@gmail.com" ]
adammertz@gmail.com
554e8005df3b5bf36200e2b33f236db5ab36f2ee
530675a299158bb28d61c41920ea9799b4cdb304
/source/image_classifier.py
45f23b8d99e14ccacf1b0f79053f6988a3fb7d29
[]
no_license
srikanthsrnvs/astrum
60e54d519c526c7b63c0a593484ebace0cdb936d
d09e5af0266e832d902b6ece09536a7d089bf14d
refs/heads/master
2022-07-07T11:02:38.386896
2020-05-03T18:14:46
2020-05-03T18:14:46
231,634,904
0
0
null
null
null
null
UTF-8
Python
false
false
6,665
py
import io import os import random import re import shutil import zipfile from pathlib import Path import numpy as np import requests import tensorflow as tf from PIL import Image from tensorflow.python import keras from tensorflow.python.keras.optimizers import * from tensorflow.python.keras.preprocessing.image import...
[ "srikanth.srinivas@mail.utoronto.ca" ]
srikanth.srinivas@mail.utoronto.ca
ad38dda9c96e041243e59ad235effe29e381f2a1
5a633b40ecc7a2178d38a9a660877445959e2a48
/snmp.py
12234fb3638ff0f101c3d42538b2de85224b36fd
[]
no_license
rkuma238/test_framework
4a087efc398047afd466ac6b69afc0c23e9424aa
93a2e696c69ca98faa549d7547f1482bba3d9b40
refs/heads/master
2021-09-14T22:57:49.348206
2018-05-21T16:29:16
2018-05-21T16:29:16
113,644,779
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
from pysnmp.hlapi import * errorIndication, errorStatus, errorIndex, varBinds = next( getCmd(SnmpEngine(),CommunityData('uTdc9j48PBRkxn5DcSjchk', mpModel=0),UdpTransportTarget(('uTdc9j48PBRkxn5DcSjchk', 161)), ContextData(), ObjectType('.1.3.6.1.2.1.2.2.1')) if errorIndication: print(errorIndication) elif errorSt...
[ "rakesh.helva@gmail.com" ]
rakesh.helva@gmail.com
516373953da84479aba9b11e0bae3dbf7d26ccf5
bb41814dc79f56a082a777e17ed31320db43edf4
/reinforcement_learning/0x00-q_learning/4-play.py
d6b4d54e98814a6ad8799721a6031a8177cbde91
[]
no_license
garimasinghgryffindor/holbertonschool-machine_learning
a92c619b6ad2d110ed97b33fa9903f5134c96866
856ee36006c2ff656877d592c2ddb7c941d63780
refs/heads/master
2023-08-01T09:58:13.863062
2020-11-28T00:50:55
2020-11-28T00:50:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
#!/usr/bin/env python3 """ Has the trained agent play an episode """ import numpy as np def play(env, Q, max_steps=100): """ Has the trained agent play an episode :param env: is the FrozenLakeEnv instance :param Q: is a numpy.ndarray containing the Q-table :param max_steps: is the maximum number o...
[ "kenneth.ca95@gmail.com" ]
kenneth.ca95@gmail.com
382df4a26d5fccd404d05e1cd04e27a56be1202a
8cb9e6cb1e626c18952e6514dfeff267f1ca3f35
/doc/conf.py
ebe3e0381c1f950adc1f0c230a7b003a8f609fd8
[ "SHL-0.51", "LicenseRef-scancode-unknown-license-reference" ]
permissive
rudyyao/zero-riscy
ec4cd86e2818dcf992ae13083f793acfaad102ac
8c70fcf2b2de255d03cebc57cbc5939f57dd699e
refs/heads/master
2020-04-01T13:02:22.239991
2018-12-04T05:42:20
2018-12-04T05:42:20
153,234,384
0
0
NOASSERTION
2018-12-04T05:42:21
2018-10-16T06:33:47
SystemVerilog
UTF-8
Python
false
false
5,124
py
# -*- coding: utf-8 -*- # # zero-riscy documentation build configuration file, created by # sphinx-quickstart on Thu Nov 8 15:42:18 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # ...
[ "stefan@wallentowitz.de" ]
stefan@wallentowitz.de
dd46d0c6385af0b92cb586eebf7cd3183305325b
6394118fe656ead590e5ea8f390b77556ff70905
/examples/macromols/invalid.py
55199ba3e0612d53147f29178e1e6026c6d45b77
[]
no_license
pdJeeves/MCell-Test-Framework
bcb6bc801dedfa3f954da5a0b4e38c14cb958d25
a3b807ae5f5a6317854744eba1b845e58ef74b20
refs/heads/master
2020-12-24T13:52:34.364129
2014-05-02T14:23:28
2014-05-02T14:23:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
""" Macromolecule {parser} {'error handling'} Author: {'Jed Wing'} <jed@salk.edu> Date: {2008/04/04} """ for i in range(1, 40): MCellTest("invalid-{0:02d}.mdl".format(i))
[ "pdJeeves@zoho.com" ]
pdJeeves@zoho.com
9a425b697c4550fd39bb3ac55fae5dffea1daf02
9cabe395035e3e344dcf0d83baa20bcdefec969e
/ITSC.py
54425d2cbb84ee5b0ebf0805a648013f8d2c9844
[]
no_license
dagomankle/LukeBox
11703ab6ea0079e98649f41e23b5f780e33d3611
2b86167f2c3f6717194751f2e6ee605fb48858a2
refs/heads/master
2020-03-12T17:50:11.556813
2018-04-23T19:29:52
2018-04-23T19:29:52
130,737,144
0
0
null
null
null
null
UTF-8
Python
false
false
7,280
py
import cv2 import matplotlib.pyplot as plt import numpy as np import math import pyaudio import wave def mostrarImagenInicialEstandard(nombre, x,y): imagen = cv2.imread(nombre) imagenStandard = cv2.resize(imagen, (x,y)) cv2.imshow("Imagen a Convertir",imagenStandard) return imagenStandard def obtene...
[ "dagomankle@hotmail.com" ]
dagomankle@hotmail.com
74bed4d0e8d1e82adc3e789bb419bd92b07ed34e
3f73130d8072793b267bbcbb7ca45559c03d46cc
/lnets/models/architectures/VAE.py
77c41d0505fbc188170712e30f70754942cf7612
[]
no_license
FabianBarrett/Lipschitz_VAEs
04935e9f9ea9e18ded6bed33bc717cc8b71743bc
1aece7f16aa2baad5841aab2cd9f75a8c3733e13
refs/heads/master
2023-02-28T18:51:07.505336
2020-09-28T06:15:21
2020-09-28T06:15:21
286,734,094
4
0
null
null
null
null
UTF-8
Python
false
false
10,828
py
# BB: Implements the architecture of a VAE with a fully-connected encoder / decoder and diagonal Gaussian posterior import torch import torch.nn as nn import torch.distributions as ds import numpy as np from lnets.models.layers import * from lnets.models.utils import * from lnets.models.architectures.base_architectur...
[ "fabianbarrett@college.harvard.edu" ]
fabianbarrett@college.harvard.edu
90359ef949e323c83804ee217228a9b80a4fb08d
6b8ac2b07f1077c4284d04a448d202bdbb3bc7b6
/Viking.py
abdbe759385bf138ce9beba9db2f04af22895f53
[]
no_license
GoatAndOwl/EntityFall-v2.2.0
eef2dede1ac597dd487fde2760c68fdf94a83203
6af0c8bcff22476109d2db2ffe281538872b7e1b
refs/heads/master
2020-04-10T18:08:24.682103
2018-12-10T15:20:15
2018-12-10T15:20:15
161,194,979
1
0
null
null
null
null
UTF-8
Python
false
false
23,193
py
from scene import * from Classes import * import Constants as ct import random class Viking(Entity): def __init__(self, player): Entity.__init__(self) self.images = [['Images/Viking/VikingFace0-0.png', 'Images/Viking/VikingFace0-1.png', 'Images/Viking/VikingFace0-2.png'], [None, None], ['Images/Viking/Vi...
[ "ridel.timothe@outlook.com" ]
ridel.timothe@outlook.com
538609c419c2927cdc8dfadedbe9bd4adf2e7c9f
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/datashare/v20201001preview/data_set_mapping.py
e00a71eae41a251fe545b0c3ef3d7cbfc785120d
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
12,170
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
morrell.noreply@github.com
065035ff3eb81ee732f12a8631ea414bd57750f8
395c0893c7d69abd44cd4bb385771da7adb8bbb9
/yiyuUtil/image_base/density_map_gaussian.py
85040c6678a2825ce62f41805dde30bb041b9424
[]
no_license
YiyuJia/pyUtil
79a607744481c8af621e54623a7449741c13542e
37fdc4d697f53e1745f006cbffc740f0487dcc38
refs/heads/master
2020-03-28T16:36:08.813486
2018-09-14T01:34:15
2018-09-14T01:34:15
148,244,944
0
0
null
null
null
null
UTF-8
Python
false
false
1,895
py
import numpy as np def fspecial_gaussian(shape, sigma): ''' MATLAB-mimicking implementation from GitHub: https://stackoverflow.com/questions/17190649/ how-to-obtain-a-gaussian-filter-in-python ''' m,n = [(ss-1)/2 for ss in shape] y,x = np.ogrid[-m:m+1, -n:n+1] h = np.exp( -(x*x + y*y) / (2*sigma*sigm...
[ "yiyu.jia@live.com" ]
yiyu.jia@live.com
4318de44fe9fe2d57ceebab18d1f2f5cb82599e6
1df4415ac1a8bd65964d01bc6848e6648f0b7665
/core/admin.py
728f1a52f0015417e9f1c6d73237441834b60aa8
[]
no_license
BerkeleyBiostats/tlapp
c64c693961b841d1c81401deb96b419052a78620
ed5320e5f21420f41f294dc694c7eede69cfe5ff
refs/heads/master
2022-12-14T02:03:09.896481
2020-01-29T22:23:07
2020-01-29T22:23:07
99,958,467
1
0
null
2022-03-29T21:55:20
2017-08-10T19:34:02
JavaScript
UTF-8
Python
false
false
678
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from . import models # Register your models here. admin.site.register(models.AnalysisTemplate) admin.site.register(models.Dataset) admin.site.register(models.Token) @admin.register(models.ModelRun) class ModelRunAdmin(a...
[ "marc@rvit.co" ]
marc@rvit.co
4da7de01183199fb81154b4fe45ed83c89dd26ce
ea45ed4c0b35474a24b22bc7e5b4e9ade6046ce8
/nginx_platform_backend/libs/ansible_hepler/my_runner.py
20306f18cfc05f1d54888f17494c904fed1cf6b6
[]
no_license
feamon/Nginx-Consul-Api
c45e08f2270535a77d25adfa974341f409eddc0d
67f52f28ff9449432cd8ccd54f8693cec1cdde24
refs/heads/master
2023-07-13T03:47:41.408104
2021-08-26T12:34:45
2021-08-26T12:34:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,529
py
# -*- coding:utf-8 -*- import sys from pathlib import Path from multiprocessing import current_process sys.path.append(str(Path(__file__).resolve().parents[3])) from libs.ansible_hepler.runner import Runner from utils.logging import get_logger error_logger = get_logger('log_error') info_logger = get_logger('log_info')...
[ "ywl1006@outlook.com" ]
ywl1006@outlook.com
e79fb1916d742af9ebab6860a5bdb652ce86a1d1
ede6ee7bdbd76dbb39ffcddfc98725062566ebf4
/barbados/indexes/list.py
6c9b98ec709fd610d48643a70555b79387304c46
[]
no_license
cohoe/barbados
cfa3cb4fab8c183fc4a4f943f452a89ebe193ea2
343f8fd4ac1f18e5e93d519cbc064693280e4d00
refs/heads/master
2021-08-07T12:33:53.263230
2021-07-18T01:59:16
2021-07-18T01:59:16
234,824,108
0
1
null
null
null
null
UTF-8
Python
false
false
541
py
from elasticsearch_dsl import Document, Text, InnerDoc, Object from barbados.indexes.base import BaseIndex, BarbadosIndex class ListItemIndex(InnerDoc): cocktail_slug = Text(analyzer='whitespace', search_analyzer='whitespace') spec_slug = Text(analyzer='whitespace', search_analyzer='whitespace') class ListI...
[ "grant@grantcohoe.com" ]
grant@grantcohoe.com
53061cd44e7f3bced6aaee1075f33dc0e2c60688
186f8d649bdbf81015686fcbdab17846fefce610
/luke/problem-017.py
671beaa61499700fdc9c42affefa07d95b7be4f1
[]
no_license
toastdriven/euler
6f945e3ca3775551f97684c3471d3fb5f7dbfc85
e1b63827b257c41511ae48fc727321a1deac5f50
refs/heads/master
2016-09-01T21:21:44.745350
2008-04-18T14:02:25
2008-04-18T14:02:25
12,409
1
1
null
null
null
null
UTF-8
Python
false
false
1,401
py
#!/usr/bin/env python # http://projecteuler.net/index.php?section=problems&id=17 import math from EulerLibs import MathLibs def strOfNum(x): x = list(str(x)) x.reverse() x = ''.join(x) s = '' i = 1 while i < 10**len(x): skip_tens = False # ones place if i == 1: if len(x) > 1 and int(x[1]) == 1: ...
[ "luke@735d8fd3-3d48-0410-ad09-b9318371deed" ]
luke@735d8fd3-3d48-0410-ad09-b9318371deed
0b6430db3e092ad872d042c9a786f6e2a1997611
92164fc94078db110c92e93477075b8e22179386
/posts/urls.py
54b433c01f3c6bad9560425289f416243bd45c18
[]
no_license
jang-1996/hacker
6be9271b7f3e6f98273bf1b87d95d9858bca2bf9
388065be7290f1a7cec0fe937dd66d86948e3b1d
refs/heads/master
2022-12-19T06:10:49.338535
2020-09-23T10:37:33
2020-09-23T10:37:33
285,253,211
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
from django.urls import path from .views import * app_name = "posts" urlpatterns = [ path('new/', new, name="new"), path('create/', create, name="create"), path('', main, name="main"), path('<int:id>/', show, name="show"), path('update/<int:id>/',update, name="update"), path('delete/<int:id>/...
[ "altu1996@naver.com" ]
altu1996@naver.com
e7179ac72e224f97936b67a9d09b4f3507a5dcd3
42074b20436f11063a04ca8fb9d9e9415c3cb86f
/test/test_solutions.py
25f095ea1c82c6d6397a06e21b64b415fedc0706
[]
no_license
dixonalex/advent
323fbe6939bc5c7a60b2c02269706366ed57c575
732e3697effbc580f03d080c14a3422e940dc043
refs/heads/master
2020-04-09T02:56:04.136891
2018-12-03T14:06:33
2018-12-03T14:06:33
159,960,677
0
0
null
null
null
null
UTF-8
Python
false
false
2,173
py
import inject import pytest from advent import Config, Claim from advent.solutions import Solutions class TestSolutions: @pytest.fixture() def frequencies(self) -> [str]: """The example input from advent of code 2018 day 1""" return [1, -2, 3, 1] @pytest.fixture() def ids(self) -> [st...
[ "alexanderldixon@gmail.com" ]
alexanderldixon@gmail.com
e1bb0795b99caf9bd0e6effbaf3c0a068848378b
12b7dc1d608b0deca429485493482afca5f99736
/app/config/settings/dev.py
8f40045b1ceefb621445b8de6efa70ce96e82c8e
[]
no_license
Ryanden/EB-Docker-Deploy2-practice-
3c147786ccb6567c8e325ac79527052a15152a4a
4e12f4e35da6d26979b6915165227f9167c507d5
refs/heads/master
2022-12-09T09:37:51.404751
2019-05-16T05:04:15
2019-05-16T05:04:15
142,002,119
0
0
null
2022-12-08T02:36:17
2018-07-23T10:58:30
Python
UTF-8
Python
false
false
369
py
from .base import * secrets = json.load(open(os.path.join(SECRETS_DIR, 'dev.json'))) DEBUG = True INSTALLED_APPS += [ 'storages', 'django_extensions' ] DEFAULT_FILE_STORAGE = 'config.storages.S3DefaultStorage' AWS_STORAGE_BUCKET_NAME = secrets['AWS_STORAGE_BUCKET_NAME'] WSGI_APPLICATION = 'config.wsgi.dev...
[ "lockstom@gmail.com" ]
lockstom@gmail.com
77bba00ea88f7a1031c39acdd7dd923c5df2690f
a1a3c2a5eda041ed519a8102a0317c4468fe9571
/app/models.py
bbb08b505e7f124311bc554c0385562859a8093d
[]
no_license
marwadesouky96/Fictionfone
f24eacc8e942cb0366fe6f7d8c5b8c4ba6c4c9ac
beeb46e4f5294fe50c6ad2076f8026562b76b1fe
refs/heads/master
2020-04-01T10:52:19.616761
2018-10-15T15:48:14
2018-10-15T15:48:14
153,135,309
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
from django.db import models # # Create your models here. # class User(models.Model): # title = models.CharField(max_length=200) # text = models.TextField(max_length=200) class Tweet(models.Model): _id = models.CharField(max_length=100) text = models.CharField(max_length=400) created_at = models.C...
[ "marwadesouky96@gmail.com" ]
marwadesouky96@gmail.com
d20bfefcbb689e95a0e699712752808cee0aabd1
5966449d2e29c9b64351895db2932f94f9de42da
/catkin_ws/build/calibration_common/catkin_generated/pkg.develspace.context.pc.py
74b3622b6da1649f18d3cf518a907cdaf2f04265
[]
no_license
godaeseong/GoHriProject
8cbce6934485b8ba3253fc7b6c5b5b59397b4518
425e70b7c91b6215f5477fc2250d2b0ac96577be
refs/heads/master
2021-05-11T22:11:56.099580
2018-01-15T02:20:43
2018-01-15T02:20:43
117,484,817
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/hri/catkin_ws/src/calibration_toolkit/calibration_common/include;/usr/include/eigen3".split(';') if "/home/hri/catkin_ws/src/calibration_toolkit/calibration_common/include;/usr/include/eigen3" !=...
[ "bigdream0129@naver.com" ]
bigdream0129@naver.com
8bca0fd28edf3e166cd6045cafd32ca1e2967550
e10551916a2dfc6f8fdbdece8e2b45d82f249bc1
/document_service/app/file_format/pdf.py
19464dcc4d58ccc4280522ac3d04339ba441992f
[]
no_license
overmesgit/cogent
71367836583a8544fbd3d8fc946a7b5134cf5f3a
90c68853ffd929c5be76b9bb383330b74595e5e0
refs/heads/master
2023-08-15T18:38:38.646959
2021-10-11T03:20:19
2021-10-11T03:20:19
414,568,002
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
import io import logging import re from pdfminer.high_level import extract_text, extract_pages from app.file_format.base import BaseFileProcessor logger = logging.getLogger(__name__) class PdfProcessor(BaseFileProcessor): file_format = 'pdf' def get_file_text(self, file_data): text = extract_text(...
[ "artem.bezu@localfolio.co.jp" ]
artem.bezu@localfolio.co.jp
5b45426a98f48b6df3c7db5796b3064dcddce4fd
65a9fe205fdac081cd765fbc8a29c4beab6fbfb8
/tests/test_attribute_creator.py
b28cd492b4b64123e840b70983d2709d9cbf1000
[]
no_license
Slave1488/xmldoc2html
19e36021437e4f24d4241f424e8db09e146157ca
b14207b397d5699e03a457f953eb7fcf546ca617
refs/heads/master
2020-08-01T02:23:58.234303
2019-11-14T10:52:57
2019-11-14T10:52:57
210,827,745
0
0
null
null
null
null
UTF-8
Python
false
false
527
py
import unittest import sys import os try: sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), os.path.pardir)) from layout import attributecreator except Exception: print('Module is missing!') exit(1) class TestAttributeCreator(unittest.TestCase): ...
[ "blue101blower@gmail.com" ]
blue101blower@gmail.com
6c191364901cf72b6e7ec942af7f4fc7c333ad1a
fc353b0433348ff58841cf32bf1f5e594e037513
/leetcode/830.py
8c5023a11d45ce74865a0054c858b8aaa012615c
[]
no_license
TrellixVulnTeam/Demo_933I
ce759ec52dd191f99b998862f4aba7971878ba37
ab662060eb07a88a48c9832e09bf268517c1a3fa
refs/heads/master
2023-04-27T16:55:29.627491
2021-05-07T05:38:58
2021-05-07T05:38:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
from graphics import * import math spriaal = GraphWin("Joonistus", 1000, 1000) a = 5 b = 4 while True: x = math.sin(a + math.pi() / 2) y = math.sin() pt = Point(x + 500, y + 500) pt.draw(spriaal)
[ "1149061045@qq.com" ]
1149061045@qq.com
a383f3d07eb6e2379f905933f9769e7f3aeeb0f4
3f0ce0e81331667681ac0f321e8e51737220e474
/MadLibs2/venv/Scripts/pip-script.py
1f1c45b3b9e6908be9f37c7f27b3742cefe13698
[]
no_license
Dominic-Perez/CSE
b75cf225fd38af67e306558bafab2d8e9336e95c
5dac686c32e5a0e8690d775b40b9351205dfa91d
refs/heads/master
2020-04-02T10:37:28.123642
2019-05-06T15:44:14
2019-05-06T15:44:14
154,347,369
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
#!C:\Users\hg65\Documents\Github\CSE\MadLibs2\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a...
[ "42383380+Dominic-Perez@users.noreply.github.com" ]
42383380+Dominic-Perez@users.noreply.github.com
0474c7ac7fcab24e97fcd8a5d1fc67dd45461b2f
3a476e0de377d1580facbfd78efdfbca009ed7a3
/uct_test.py
403c551b8a4100fa685aca7eda34a6d39cf067a1
[ "MIT" ]
permissive
liuruoze/Thought-SC2
b7366186dbb4494fabdb3e0104354665e21ff707
b3cfbeffbfa09b952c596805d2006af24613db2d
refs/heads/master
2023-04-28T11:47:56.771797
2021-01-15T00:25:26
2021-01-15T00:25:26
296,185,180
4
2
MIT
2023-04-24T09:06:48
2020-09-17T01:17:04
Python
UTF-8
Python
false
false
1,300
py
USED_DEVICES = "6,7" import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"] = USED_DEVICES from uct.numpy_impl import * import tensorflow as tf from prototype.dynamic_network import DynamicNetwork from prototype.hier_network import HierNetwork def test(is_restore_policy=True, is_...
[ "liuruoze@163.com" ]
liuruoze@163.com
92897292184e26ebd90bb1e76081390a112ec8b1
de38c422ffaad6b4fb32cf00df5cd806a98b4e3b
/opencv_item/face_detection.py
39cf0f4277274d4a588dff859e07252c6187a859
[]
no_license
Vimal06Pal/opencv
291ce2e07dc92dd4f537c5884046536ae7ceeda9
46fa1162b5fcb8fa4f9d7a7b43ce75dd9175f4f9
refs/heads/master
2022-11-12T08:20:28.671256
2020-06-27T12:16:07
2020-06-27T12:16:07
270,771,849
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
import cv2 face_cascade = cv2.CascadeClassifier('./data/Haarcascades/haarcascade_frontalface_default.xml') eye_cascade = cv2.CascadeClassifier('./data/Haarcascades/haarcascade_eye.xml') # print(face_cascade) img = cv2.imread('./data/Modi.jpg') img = cv2.resize(img,(512,512)) gray = cv2.cvtColor(img,cv2.COLOR_BGR2...
[ "noreply@github.com" ]
Vimal06Pal.noreply@github.com
7d3b75ff56ceeaf5df5be51a28d10e2ea4da6bcf
a4896e2cfc73b842eb1b246a4106f298a5e39db3
/kfk_data_seeker.py
76a5200724d51ae1f7f6224331af18e28a62b0d0
[]
no_license
gooa1c2e3/kfk_data_seeker
7ab250f9604de21a5cd8131fc244f915942ebf6b
0e2e7a047faf872a59da422c85e7c4c21e83a282
refs/heads/master
2021-08-24T03:59:19.430521
2017-12-08T00:34:29
2017-12-08T00:34:29
113,512,741
1
0
null
null
null
null
UTF-8
Python
false
false
15,696
py
# Company: CHT-PT # Author: Chien-Yu Chen # Date: 2017/11/23 # Mail: gooa1c2e3@gmail.com # Support: Python 2.7 from sys import exit as _exit from argparse import ArgumentParser import time from datetime import datetime from collections import namedtuple import traceback try: from kafka import KafkaConsumer fr...
[ "gooa1c2e3@gmail.com" ]
gooa1c2e3@gmail.com
687cfda74396d138edf948b2b21bcf2e39fb25ea
e1881c3a562355974cb6b96f8d06cdd97dee0d1e
/tutorials/migrations/0004_auto_20190821_1430.py
b4b93a817da4f9014f79aa1cbc444bec4da676c0
[]
no_license
codeflamer/Anonymous-Music-App
b2b7648d49dc77d94a76660b0e28a5358ba19ef5
406bdfde10a9afb1437febda38904cc6070c4414
refs/heads/master
2020-09-13T10:24:40.049738
2019-11-19T17:11:49
2019-11-19T17:12:55
222,741,215
1
0
null
null
null
null
UTF-8
Python
false
false
781
py
# Generated by Django 2.1.2 on 2019-08-21 13:30 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('tutorials', '0003_auto_2...
[ "emryzs01@gmail.com" ]
emryzs01@gmail.com
18d6aa3fe977892dc48a2e42cd5f541eae5f092c
b66f24ec89be100b7a4cf74e3fad56315f75f57d
/polls/admin.py
b39b2f47084517685074659d36d71b68873bea86
[]
no_license
lmyfzx/DjangoTest
e619a192a490f73c7922f7005a27daa839522a92
8a1f12a9d6bc6fcb5bbe37df8fcf89e9730e0c60
refs/heads/master
2020-12-03T23:49:54.371017
2016-09-23T08:57:35
2016-09-23T08:57:35
66,942,596
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
from django.contrib import admin # Register your models here. from .models import Question,Choice class ChoiceInline(admin.TabularInline): model = Choice extra = 2 class QuestionAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['question_text']}), ('日期信息', {'fields...
[ "lmyfzx@qq.com" ]
lmyfzx@qq.com
1f3f19f03def5c7a6c1e1e2eb72b4fa33bdf7c50
6b5572557c4a0785c4b727ee024790ec066ad6f2
/Baekjoon/삼성 SW 역량 테스트 기출 문제/감시.py
17577c83e70a00bb1a4e4811333b625744615101
[]
no_license
easternpillar/AlgorithmTraining
5be38998dc062d1d02933f61eaca3265e1b73981
c8f05eda86161a7dbacab99154be1af292e7db8a
refs/heads/master
2023-04-29T11:13:34.984005
2023-04-08T07:12:29
2023-04-08T07:12:29
231,875,419
1
0
null
null
null
null
UTF-8
Python
false
false
8,986
py
# Problem: # Given the structure of office, return the minimum number of blind spots. # My Solution: from collections import deque import copy def camera1(o, pos): re = [] temp = copy.deepcopy(o) r, c = pos[0], pos[1] while r > 0: r -= 1 if temp[r][c] == 6: break ...
[ "roh941129@gmail.com" ]
roh941129@gmail.com
9b16e0d0632a907a965a739e5db1e58f79447655
f5bd0ef83daf74264c096ad0570142fd97ac1548
/data/config.py
9aac56412c8a78e334b7676529945550693ccb03
[ "MIT" ]
permissive
SHIVAM3052/Yolact
67ee667486314d78a3533bc175977eabd86612b3
2802a8ee4f6036a2c85d0f348766307e55c910a2
refs/heads/main
2023-07-28T10:15:29.919702
2021-09-08T15:36:44
2021-09-08T15:36:44
404,216,818
0
0
null
null
null
null
UTF-8
Python
false
false
49,855
py
from backbone import ResNetBackbone, VGGBackbone, ResNetBackboneGN, DarkNetBackbone from math import sqrt import torch # for making bounding boxes pretty COLORS = ((244, 67, 54), (233, 30, 99), (156, 39, 176), (103, 58, 183), ( 63, 81, 181), ( 33, 150, 243), ...
[ "noreply@github.com" ]
SHIVAM3052.noreply@github.com
11564982938ee31a8e00330067dd8ceab24242ea
20f8804c95ab680291771105ff2ac82a440a8e22
/game_gui2.py
d5afe9a24f3a1078209e08f878a5945d3b5983ea
[]
no_license
azidanit/FP-KB-2020-Ayo-Main-Game
d685e746ea55a5756c3fbf0cd3484ce052adb2b9
25c401e2fa8837112deae9c72904bc7c4335b797
refs/heads/master
2022-08-06T16:03:38.785524
2020-05-30T02:07:52
2020-05-30T02:07:52
259,441,963
0
0
null
null
null
null
UTF-8
Python
false
false
3,959
py
from PySide2 import QtWidgets, QtGui from PySide2.QtCore import Slot, Signal from Assets.Ui_Form import Ui_Form from TheGame import TheGame from GameState2 import GameState class GameGui(Ui_Form): playerTurnSignal = Signal(int) def __init__(self, Form): super().__init__() self.the_game = The...
[ "azidan.it@gmail.com" ]
azidan.it@gmail.com
df6e6e69e1c13991b7bd340db0e3092655522236
c328467ea14424f35cca4fc756488ece38b88272
/unstable_baselines/algo/d/qrdqn/model.py
cb6ed37aac33e446701fe16a7a429157ea5416b2
[ "MIT" ]
permissive
Ending2015a/unstable_baselines
4b2d44f0bd46d2ba75b02a138f9218114317a5ee
1d304115406f6e29186cedb0160811d4139e2733
refs/heads/master
2023-07-31T21:09:01.809727
2021-09-17T08:54:45
2021-09-17T08:54:45
338,553,782
10
0
MIT
2021-09-17T08:45:50
2021-02-13T10:55:54
Python
UTF-8
Python
false
false
37,547
py
__copyright__ = ''' The MIT License (MIT) Copyright (c) 2021 Joe Hsiao Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, c...
[ "joehsiao@gapp.nthu.edu.tw" ]
joehsiao@gapp.nthu.edu.tw
4677fbdc2a00050d77fd0d794bb57194c2f5ee75
e8e4bb89c6ce57c038de445091ddebc1c1b6eb26
/oldscripts/Transport_permoor_newer.py
7b4c40d98f9b1bbd636b05bd970899b248439250
[]
no_license
ilebras/OSNAP
dc7fba846f866ec64edab35a278d2ce6c86e5f97
a5b22026351d2eb8dc4c89e2949be97122936d23
refs/heads/master
2021-05-12T16:46:18.955345
2020-09-08T23:04:23
2020-09-08T23:04:23
117,025,921
0
0
null
null
null
null
UTF-8
Python
false
false
13,958
py
################################################################################# ################################################################################# ################################################################################# ######################## CALCULATE TRANSPORT #############################...
[ "isabela.lebras@gmail.com" ]
isabela.lebras@gmail.com
86310a44fc70e194901cd6f6ed1921448a4e2d40
789fe602dbd2d36fcd42cfd729758790a526055d
/numpy_linear_algebra.py
3b0434f43c5aa188e8ec536ca12d2b80dd62f544
[]
no_license
charukhandelwal/Hackerrank
604b6be1b11c718b9c99e4a3eae9544ff629576d
8ac84c481804d5b7a00fffc566312037ccb00685
refs/heads/master
2022-12-29T01:12:11.247527
2020-10-17T17:10:50
2020-10-17T17:10:50
304,927,588
1
0
null
2020-10-17T17:10:51
2020-10-17T17:03:23
null
UTF-8
Python
false
false
1,413
py
""" Problem Statement The NumPy module also comes with a number of built-in routines for linear algebra calculations. These can be found in the sub-module linalg. linalg.det The linalg.det tool computes the determinant of an array. print numpy.linalg.det([[1 , 2], [2, 1]]) #Output : -3.0 linalg.eig The lina...
[ "ayush.aceit@gmail.com" ]
ayush.aceit@gmail.com
38996b3c70652eed0b025f1537a8abd67f8b6ed9
bf12774c91bbad9dfcd887d89d78b2857f56d776
/tests3.py
6196867003d3c54b007209bd4ea23375faf91025
[ "MIT" ]
permissive
tachijuan/python
d91a0fe0224a8801078776661caeab535fed80a7
b4b9e9ce75b5e8426af9df41427fff659ff0cc60
refs/heads/master
2020-03-29T23:02:13.334929
2015-08-27T15:59:34
2015-08-27T15:59:34
27,557,141
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
import boto import boto.s3.connection ak = 'c3BlY3RyYQ==' sk = 'bjQpZe2b' c = boto.connect_s3(aws_access_key_id = ak, aws_secret_access_key = sk, host = '10.10.1.237', is_secure=False, calling_format = boto.s3.connection.OrdinaryCallingFormat()) print c for b in c.get_all_buckets(): print "%...
[ "juan@orlandini.us" ]
juan@orlandini.us
3174910891906b633e4d6ffa38df2cf3f8d72564
b8ef2769bf6d9159457faa642f57c91a01533ef0
/5 dns_spoof/dns-spoofer-sivet.py
b88f75539ed0dc823dd8078fe64ea44669d2036d
[]
no_license
C-BOE86/Python-Ethical-Hacking-Tools
096d9252096536164a18c6449d105d3807415e51
0ca3dd29bc35722e8e6a55a2a6d56036dccb856b
refs/heads/master
2022-03-23T04:29:30.215390
2019-12-03T19:57:57
2019-12-03T19:57:57
198,090,999
2
2
null
null
null
null
UTF-8
Python
false
false
890
py
#!/usr/bin/python2 #capture the request packet from client and save to a queue using iptables and alter send or recieve modified packet #convert the raw packet to scapy packet to modify the request import netfilterqueue import scapy.all as scapy def process_packet(packet): scapy_packet = scapy.IP(packet.get_payload(...
[ "noreply@github.com" ]
C-BOE86.noreply@github.com
e10a899ea0e195ad55ab677dbc9616a9e3f64832
f72fa4432e6abb742cbf1c61c580db1ed688a311
/day27/s21crm/crm/forms/school.py
c8e42b166247fd56e11cee8ef0a4b0e7def14cb2
[]
no_license
huningfei/python
7ddc9da14a3e53ad1c98fc48edd1697a6f8fc4f7
9ca1f57f2ef5d77e3bb52d70ac9a241b8cde54d2
refs/heads/master
2022-10-31T18:56:33.894302
2019-01-04T11:06:59
2019-01-04T11:06:59
128,178,516
2
1
null
2022-10-12T19:26:04
2018-04-05T08:25:32
Python
UTF-8
Python
false
false
401
py
from django import forms from crm import models class SchoolModelForm(forms.ModelForm): class Meta: model = models.School # 这里前面的model一定不要写models fields = '__all__' error_messages = { 'title': {'required': '学校不能为空'} } widgets = { 'title': forms.Text...
[ "huningfei@126.com" ]
huningfei@126.com
83a81d4031b4d0b27fc071ab22e653d8499b1881
948326722b8ff0cda1a06ea8485e0871033ede92
/Chapter06/rnai.py
cc8415c23405e19fc19775abf0dc03846ebe5fa2
[ "MIT" ]
permissive
peastman/DeepLearningLifeSciences
0bd3caf1f1d4fc9b585daec39d859b33f8be60e9
3de61733433c3a214c4ddd116bc1c785f9e49674
refs/heads/master
2021-06-18T17:01:00.827567
2021-04-20T17:20:33
2021-04-20T17:20:33
206,670,326
0
0
MIT
2019-09-05T22:53:01
2019-09-05T22:53:00
null
UTF-8
Python
false
false
1,130
py
# Train a model to predict how well sequences will work for RNA interference. import deepchem as dc import tensorflow as tf import tensorflow.keras.layers as layers import matplotlib.pyplot as plot # Build the model. features = tf.keras.Input(shape=(21, 4)) prev = features for i in range(2): prev = layers.Conv1D...
[ "peastman@stanford.edu" ]
peastman@stanford.edu
c097c3802eeec172bcba8191ceb9be955f182d7d
169aa5a31e8d413b12f97b7a36a397c46cd5cbd3
/dataUtils.py
500bc7b59f6062758009852bc2713566df9978c1
[]
no_license
XWQlover/tensorflow2.0-DKT-XWQ
5d049e9db63bca598d0504fc74c4c5e37b10b3af
d99e283ed22d2c3e91196056aa897fcf6e71bd73
refs/heads/master
2022-12-13T06:49:18.632671
2020-09-17T10:02:12
2020-09-17T10:02:12
289,620,680
0
0
null
null
null
null
UTF-8
Python
false
false
1,699
py
import pandas as pd import numpy as np import tensorflow as tf class AssismentData(): def __init__(self): self.data = pd.read_csv("/content/drive/My Drive/DKT/skill_builder_data.csv") self.data = self.data.dropna() self.data["user_id"], _ = pd.factorize(self.data["user_id"]) self.d...
[ "794632026@qq.com" ]
794632026@qq.com
909457621a61debda7558bb9f60c2c7feb57b2d0
76a402b7db1432f9bf8b9605416521a4284ce1e2
/nim_game.py
95d3be8cab232b6f99b6eef35ff32fa60baa5ddf
[]
no_license
SuguruChhaya/nim-game
7aa915a475d414288fbb33957cad88ec4dac0c1d
6f345a36dc3a26ee8e5f89c139718a21b7050232
refs/heads/master
2022-12-13T01:30:04.352715
2020-09-22T23:42:51
2020-09-22T23:42:51
285,307,692
0
0
null
null
null
null
UTF-8
Python
false
false
4,498
py
import random ''' Not to create objects but just to manage the methods. ''' class MainGame(): def __init__(self, reaching_number, increment, goesfirst): self.reaching_number = reaching_number self.increment = increment self.goesfirst = goesfirst #*Keeps track of the previous numbers...
[ "suguruchhaya@gmail.com" ]
suguruchhaya@gmail.com
6759479a9640fc8ea7ba928109da4abbb456fb4a
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/25/usersdata/112/12124/submittedfiles/av1_3.py
0b936ae903da1273501fd3e5f09c85bf73708585
[]
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
219
py
# -*- coding: utf-8 -*- from __future__ import division import math zeta=0 tan=0 a=input('Digite o valor de a') b=input('Digite o valor de b') c=a%b while a%b!=0: if b%c!=0: b=zeta zeta=a print(zeta)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
76a4888ad521d027ce01d8cbb5f9f5c5052d0f4d
ac085f74b70ffd0d7383a611c79461e13963c623
/Disgaea 2/skill-grind-script.py
4b5ba5c58a715572509bc21017766ef539b4e1c6
[ "MIT" ]
permissive
NotTidduss/auto-input-scripts
5c95fded917ffda7241faefd4526bb7b698115cb
71800940231f149c75ff87a6a7e3ddb56e1459d3
refs/heads/main
2023-04-24T13:54:45.298304
2021-05-06T05:47:41
2021-05-06T05:47:41
348,642,789
0
0
null
null
null
null
UTF-8
Python
false
false
2,689
py
# Requirements: # - Skill to grind needs adjustments in script - see !!!. # - Characters to need to be positioned above to invincible target. I use the first invincible tile in stage 4-4. # - Characters should have as much SP as possible ########## ------------ Key bindings ------------ ########## STOP_SCRIPT ...
[ "nottidduss@gmail.com" ]
nottidduss@gmail.com
61f849141c82b9fc7c57d859953c3c157e0f98be
07f6550970166923b8ae0b5d647552e850e5acc8
/reviewpost/migrations/0001_initial.py
0b9f6fabc05ccf3420eb08163a28afb9ad26f83b
[]
no_license
grasshopper-dev/reviewproject
33ed8c7ddb81d16552762ed1e06f6bed0e373633
ef2212e88f27441ed1aa254b5c607cfd2c4c5a5b
refs/heads/main
2023-03-13T06:21:34.385623
2021-03-04T00:18:07
2021-03-04T00:18:07
344,300,541
0
0
null
null
null
null
UTF-8
Python
false
false
1,127
py
# Generated by Django 3.1.6 on 2021-02-24 23:22 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...
[ "grasshopperdevel2019@gmail.com" ]
grasshopperdevel2019@gmail.com
4831f524e40ae85b2eea36bd5a913cd79f31c444
e2e903579b9167e42fe7b3fd20b294b730e14664
/ch6/ch6note.py
de7c09c4aba9616fa3eb6242a5abbf64c0dac404
[]
no_license
Joyounger/PythonVisualQuickStartGuide
afd97708bb06c4c5df44caea58d30920701be9ab
3d667863aeca3f83f5f6126b3dfa549ceeda78ef
refs/heads/master
2020-03-21T04:13:23.864747
2018-09-16T02:25:59
2018-09-16T02:27:07
138,097,684
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
# 负数索引,沿着从右向左的方向,用负数表示字符串中的索引 # 这时字符串的最后一个字符为s[-1] # ord('a') 计算字符unicode编码 # chr(97) 根据编码值返回字符 # python计算字符串长度时,并不将\视为额外的字符 len('\\') # 1 len('a\nb\nc') # 5 # s.count(t) 返回t在s中出现的次数 # s.encode() 设置s的编码 # s.join(seq) 使用s将seq中的字符串连接成一个字符串 # s.maketrans(old, new) 创建一个转换表,用于将old中的字符改为new中相应的字符
[ "942510346@qq.com" ]
942510346@qq.com
3ab104c3a0615fdf4f99d8cde30bb2d050d339a2
b7136c09b98d613fe3dd93df317ec7ddd0012e7b
/src/rcarl.py
02dd3ef4bcd1f12e27006ad7a327b0ed3501ce60
[ "MIT" ]
permissive
fossifer/WhitePhosphorus-bot
54d37492e500c9002d4ecb8cfabd259f3e52968c
cbb5b4e4e6667fc7b6a18f7e7dbc078722b83c7f
refs/heads/master
2023-05-27T10:15:34.511951
2019-12-09T14:07:59
2019-12-09T14:07:59
83,035,902
1
0
MIT
2023-05-22T22:28:06
2017-02-24T11:43:03
Python
UTF-8
Python
false
false
2,994
py
# TODO: cache the status of titles import datetime from bs4 import BeautifulSoup from . import botsite from .core import EditQueue, check, log from .botsite import remove_nottext, get_summary working_title = 'Template:Recent changes article requests/list' delay_days = 7 whitelist_title = 'User:%s/controls/rcarl/whitel...
[ "daizl@pku.edu.cn" ]
daizl@pku.edu.cn
423dc96768d50d0ce647be99f48163b749c1a1e8
6c33e95a0f9e666a52f328b1926a3dd1d4e5ceca
/products/urls.py
74920e4951f4e9b7ae73c06ddcf8a0c4db408f68
[]
no_license
arpit-saxena/DevRecruitBackend
69a0a7e694c6401df3bc87165d86353da3003410
e49b4a6bda6a65522f2af88bc11559fda0a514f8
refs/heads/master
2020-04-26T03:50:36.741741
2019-03-15T11:15:40
2019-03-15T11:15:40
173,281,082
0
0
null
2019-03-13T11:22:15
2019-03-01T10:15:24
Python
UTF-8
Python
false
false
292
py
from django.urls import path from . import views urlpatterns = [ path('add', views.addProduct, name='add_product'), path('<my_hash>/<slug:slug>/', views.viewProduct, name='view_product'), path('<my_hash>/<slug:slug>/modify', views.modifyProduct, name='modify_product'), ]
[ "arpit.saxena2000@yahoo.in" ]
arpit.saxena2000@yahoo.in
a2e4eb891f334cfc563bab64d820784eea697502
2405037bcbc40bb3125128a7bc265d65a1887988
/malprogramm/views.py
67a8a5f93d5a30350c145d88ce77e49e2074d84f
[]
no_license
FriedrichGraefe/malprogramm
81a9d02046536fc355e20bdf0b31e7a28fa6ba9b
9cf4ba2d6052033db9a77c3a33ec9d684dcd16aa
refs/heads/master
2023-02-20T05:02:27.285769
2021-01-21T18:01:28
2021-01-21T18:01:28
325,240,437
0
0
null
null
null
null
UTF-8
Python
false
false
1,545
py
from flask import render_template, request, redirect, send_from_directory from flask_security import login_required from malprogramm import app, db import base64 from malprogramm.models import Image @app.route('/') def startseite(): return render_template('startseite.html') @app.route('/malen', methods=['POST',...
[ "friedrich.graefe@hs-augsburg.de" ]
friedrich.graefe@hs-augsburg.de
6a620bfe1483232806e3b0ebf8b8c27b4cc96c13
cbb25468ae43ef8521c4837497630f7a3685b8f0
/airSolution/management/migrations/0005_auto_20200313_1253.py
28acce09a86f1ff7e77d6bc6b42f1506c3405577
[]
no_license
Claudio-Padilha/airSolution
f283001abc501035153dd27977d4d91a0c0482d0
c71f3bef6e74b5021288ef779fae61ecaa69dbb5
refs/heads/master
2021-02-07T01:52:24.403345
2020-03-14T02:19:39
2020-03-14T02:19:39
243,969,803
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
# Generated by Django 3.0.3 on 2020-03-13 16:53 import builtins from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('management', '0004_auto_20200304_1845'), ] operations = [ migrations.AddField( ...
[ "padilha86@gmail.com" ]
padilha86@gmail.com
61d7436c0fabed05f221dbd89c4fba3bccea59c9
0b344fa1202824ac1b312115c9d85467dd0b2b50
/neutron/plugins/embrane/common/exceptions.py
763dabdad242fb42be3b94bd0e040b4739bbe93b
[ "Apache-2.0" ]
permissive
netscaler/neutron
78f075633462eb6135032a82caf831a7e10b27da
1a17ee8b19c5440e1300426b5190de10750398e9
refs/heads/master
2020-06-04T01:26:12.859765
2013-10-17T06:58:30
2013-10-17T06:58:30
13,155,825
2
1
null
null
null
null
UTF-8
Python
false
false
1,202
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Embrane, 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/l...
[ "ivar@embrane.com" ]
ivar@embrane.com
e3e9f33d0c4837ed75d9d742e6ebc224174b49bf
b65932753a73cc17da5ac3bae8aa161b0ce60469
/pytorch-pretrained-BERT/scripts/crawler.py
d8fe68f943801b7da99347d343675aeee0dead0b
[ "Apache-2.0" ]
permissive
Albert-Ma/bert-fine-tuned-gain
24199334b8299a4ef5ca3a637d0074a7e4ea7def
f752c1182f1c800f5f56998e13fd6115929df655
refs/heads/master
2022-12-24T05:55:38.541991
2019-07-24T13:41:35
2019-07-24T13:41:35
183,029,262
2
1
Apache-2.0
2022-12-10T11:01:43
2019-04-23T14:11:04
Python
UTF-8
Python
false
false
15,779
py
import nltk import time import random import argparse from tqdm import tqdm from bs4 import BeautifulSoup from selenium import webdriver from bs4 import NavigableString from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import...
[ "xymasdu@163.com" ]
xymasdu@163.com
a389369331938ca08113608bad0aab9013523972
a9e1e853717e8cb89f02c035915dd02eca800b44
/logic/logic_adapter.py
429a81c2f5904b259af28682a0a2056cc358b57e
[]
no_license
sobhanlenka/mitoo
b314774603803609333fa530cf135ec6b65b050a
9c30eb186d8f9e61cd5db6e98929d25814def758
refs/heads/master
2022-11-14T12:13:22.786968
2018-07-05T06:32:25
2018-07-05T06:32:25
138,338,235
0
1
null
2022-10-18T13:08:04
2018-06-22T18:56:23
Python
UTF-8
Python
false
false
3,685
py
from __future__ import unicode_literals from mitoo.adapters import Adapter from mitoo.utils import import_module class LogicAdapter(Adapter): """ This is an abstract class that represents the interface that all logic adapters should implement. :param statement_comparison_function: The dot-notated imp...
[ "sobhanlenka@gmail.com" ]
sobhanlenka@gmail.com
3ba7d3ae1a5af39ab73f989f58e0695be999fd45
0d3a8de8a5e4cebe091fa1d447411e4a28087c5c
/checkout/migrations/0003_auto_20200301_2355.py
dda7b3f0fe30ad263f8fc2295968d4af9a2fd141
[ "MIT" ]
permissive
tstauras83/Django-milestone-project-P2
b66792cf8430263df1cefc45c6780d9880a5707c
e8b973f91e0a0386c140ecfa396f245cc4e0350f
refs/heads/main
2023-03-13T05:05:52.210359
2021-02-28T20:38:56
2021-02-28T20:38:56
340,364,524
0
1
MIT
2021-02-28T18:15:37
2021-02-19T12:35:58
HTML
UTF-8
Python
false
false
429
py
# Generated by Django 3.0.1 on 2020-03-01 23:55 from django.db import migrations import django_countries.fields class Migration(migrations.Migration): dependencies = [ ('checkout', '0002_auto_20200301_0129'), ] operations = [ migrations.AlterField( model_name='order', ...
[ "74678836+tstauras83@users.noreply.github.com" ]
74678836+tstauras83@users.noreply.github.com
36eef88f9be11b834b7c966f8e0e37c3e0e6c41b
8388d0ed8ad412c47d47dd9da8f05e35f7e2644c
/accepted/48-rotate-image.py
7a18dd7fa4f48ec671c91742020ac5e4795f1851
[]
no_license
luodichen/leetcode-solution
d4cd5abbb0f5cf640035b563ed566c706d4fcbed
74c2f9e0e60e64c84be6db9b0511db037d12b109
refs/heads/master
2020-05-16T16:45:42.056541
2015-11-16T05:41:59
2015-11-16T05:41:59
39,545,259
0
0
null
null
null
null
UTF-8
Python
false
false
606
py
# https://leetcode.com/problems/rotate-image/ class Solution: # @param {integer[][]} matrix # @return {void} Do not return anything, modify matrix in-place instead. def rotate(self, matrix): if 0 == len(matrix): return list() result = [] col_len = len(matrix[0]) ...
[ "me@luodichen.com" ]
me@luodichen.com
b0b3ce9da76ade12271847e373617198e6aaedbe
d21cf21a8bd3a21bd6f9ed51f88c97caaf796ab7
/exam3/2.py
efdbd675bd2133aa8469a6837ce76a5f3d36e308
[]
no_license
timtim1342/HSE-Programming
8aea880c48bc1ceba97b72cc104be204bfa9fe4d
d4bdc4a2996b3c7ddf32919ed9d5e5a9c38972aa
refs/heads/master
2018-09-06T06:28:37.243634
2018-06-19T09:49:00
2018-06-19T09:49:00
105,033,399
0
0
null
null
null
null
UTF-8
Python
false
false
1,005
py
import os, re#не успел перевести все в один файл abr = {} def files_in_dir(): #список файлов в дир. return os.listdir() def change_dir(dir_name): #меняет директорию os.chdir(dir_name) def opn(name): with open(name, encoding='windows-1251') as f: text = f.read() return text def find_abr(fi...
[ "noreply@github.com" ]
timtim1342.noreply@github.com
581124b6720460f7dbcacd1229e19d30f617319e
a0a787923477b8c944b0973c932aaef379b573f5
/model_zoo/ECOold.py
02f817108bafce1b7037358d427dfd7142b11d21
[]
no_license
bdus/Action-Recognition
553e0b91ce54c0b049c826273b8c16df733075a1
e2081963afbb89c4db12034f0168377d0369b789
refs/heads/master
2022-10-15T08:56:23.448630
2020-06-16T14:34:52
2020-06-16T14:34:52
218,713,321
1
0
null
2020-01-22T10:49:04
2019-10-31T07:57:05
HTML
UTF-8
Python
false
false
15,619
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jan 7 17:48:26 2020 @author: bdus eco from mxnet import nd from model_zoo import get_model as myget net = myget(name='eco_resnet18_v1b_k400',nclass=101,num_segments=32,input_channel=3,batch_normal=False) X = nd.zeros(shape=(5,32,3,224,224)) X = X.re...
[ "rovingthrough@163.com" ]
rovingthrough@163.com
11513db9ae5b8be93cda1263ff6f7d9256a10e47
6f96f722aaca40e75e17a7e1e728d5cb8fc1a9df
/mysite/Mysite/migrations/0010_auto_20200212_1216.py
73eda94639637a831bbe6ab1345cee255f0b3101
[]
no_license
sathiyasangar/Django_crud
cbe83a9c8b185adb4286f2fa83244e7712dee621
042362ab5fd0edae7d505dcdc9cd2539f470220e
refs/heads/master
2020-12-28T04:01:56.408080
2020-02-17T07:24:28
2020-02-17T07:24:28
238,173,700
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
# Generated by Django 3.0.3 on 2020-02-12 12:16 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Mysite', '0009_auto_20200212_1215'), ] operations = [ migrations.RemoveField( model_name='regis', name='created_at', ...
[ "sathiyasangar@gmail.com" ]
sathiyasangar@gmail.com
01ef88728bf02ea3ad9fac6b0c5c4f64a492c30a
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/remote/test_device_trigger.py
b5dcca3dc4c9f2fe772eca66fdec608d73ab918b
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
13,958
py
"""The test for remote device automation.""" from datetime import timedelta import pytest from pytest_unordered import unordered import homeassistant.components.automation as automation from homeassistant.components.device_automation import DeviceAutomationType from homeassistant.components.remote import DOMAIN from ...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
7e5bcff3d846d769cf3f7b62e1922fdc11bb5a71
a11dc2b1cf9247f38c19c44acd48609f01a9cdd6
/sampleprogram/01/01-02.py
8fa1bcadc0cb8649b11d11b7dec52f48eba6dc72
[]
no_license
churabou/opencv_book_sample
f04b50e1c8c2a0df136c34dc44de4508fdc8d6bc
33f742c4d10d82633c28e08114640b91a467de45
refs/heads/master
2021-08-30T18:59:39.778260
2017-12-19T02:46:32
2017-12-19T02:46:32
114,711,044
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
import cv2 img_src = cv2.imread('01-06.jpg', 1) img_gray = cv2.cvtColor(img_src, cv2.COLOR_BGR2GRAY) img_dst = img_src.copy() corners = cv2.goodFeaturesToTrack(img_gray, 1000, 0.1, 5) for i in corners: x,y = i.ravel() cv2.circle(img_dst, (x,y), 3, (0, 0, 255), 2) cv2.imshow('src', img_src) cv2....
[ "" ]
810e8fc904dfdccceb4282cca5aa2a50ec0181a8
5864e86954a221d52d4fa83a607c71bacf201c5a
/eve/client/script/environment/spaceObject/structure.py
88fcfaaef3632e06940848939a4cc0691a53f89d
[]
no_license
connoryang/1v1dec
e9a2303a01e5a26bf14159112b112be81a6560fd
404f2cebf13b311e754d45206008918881496370
refs/heads/master
2021-05-04T02:34:59.627529
2016-10-19T08:56:26
2016-10-19T08:56:26
71,334,417
0
0
null
null
null
null
UTF-8
Python
false
false
7,417
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\environment\spaceObject\structure.py import blue import uthread import structures import evetypes import logging from eve.client.script.environment.spaceObject.buildableStructure import BuildableStructure from eve.clie...
[ "le02005@163.com" ]
le02005@163.com
ee057d853429be5c3457c783108df7d6c1a9aee6
29ae5c73f2e94d406aa814a946863e48d559ac87
/Model training/SNNTrainingScript.py
2bb029b732d2e69902ea5789e3c489a6df3e65b5
[]
no_license
Zhi-Yih-Lim/DOB-Scan_Probe
28884221759129a951f93b691085aeecc242a101
7676e2d8e0525792f5854a37ae695b0eaaccc35a
refs/heads/main
2023-05-02T18:59:55.661889
2021-05-28T08:15:00
2021-05-28T08:15:00
371,195,126
0
0
null
null
null
null
UTF-8
Python
false
false
19,742
py
import numpy as np import os from ConstructTrainNTarget4Training import TrainNTargetValues # Module that divides the training data from .csv format to input and target values from SNN import SingleLayerNeuralNet # Module that returns a "model" object from keras, to be used for model training (single layered neural ...
[ "noreply@github.com" ]
Zhi-Yih-Lim.noreply@github.com
2bb65b8fa96ba90a308d56213ff899750b9f85db
3b0c9017c88a9f1fe6c0f4312257c1f849f99a67
/Assignment 2 - Decisions and Booleans/Grade.py
562fb7ffa5f87659433f2e94065178784000a21d
[]
no_license
Theodora17/PROG-2019
ac4c0e4d8e891248415589860194303b11d2eba4
d701916295dfe1131e61f7118e79b74d64acb283
refs/heads/master
2020-07-19T22:38:16.754856
2019-09-05T11:42:38
2019-09-05T11:42:38
206,525,793
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
grade = float(input("Input a grade: ")) # Do not change this line # Fill in the missing code below if grade >= 0.0 and grade <= 10.0: if grade >= 5.0: print("Passing grade!") # Do not change this line elif grade <= 5.0: print("Failing grade!") # Do not change this line else: print("Invalid...
[ "34063081+Theodora17@users.noreply.github.com" ]
34063081+Theodora17@users.noreply.github.com
92df8935229dd8eaf991c49b79ae9e82a8809421
6e133ed08b0380c513aa99624161b25311d6fc68
/text_image.py
cdf66f6a0bce794a3bed3f0c919afbeccb8a4ae2
[]
no_license
jamescarr0/flappy_unicorn
75a5dc71c73036695bc92cf2443d335ae74a9f49
49e9e729d5c6d66cc8234626c713f03a177576ee
refs/heads/master
2022-10-04T04:41:42.636987
2020-06-10T19:40:36
2020-06-10T19:40:36
270,330,775
0
0
null
2020-06-09T11:09:34
2020-06-07T14:26:36
Python
UTF-8
Python
false
false
1,014
py
import pygame class TextImage: """A class to render text as an image. """ def __init__(self, screen, text, size, text_color=(237, 93, 183)): """ Constructor. """ self.screen = screen self.screen_rect = self.screen.get_rect() self.text = text self.text_color = text_color...
[ "jamescarr0@hotmail.com" ]
jamescarr0@hotmail.com