blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
821182730be05428eca75c129c35f90978e33f22
4d83029bab993c34233d532e861dca382d056b2f
/Taking_Video/VidsFrames_upd3.py
c0aa5d035f38c50e96e382e00b409154e7af2031
[]
no_license
Hansari346/Facial_Recognition_Capstone
da77fe1ff01190e4322579262e107cfadcbc33f1
664a9d27b95934a73e4ee9f7353eb4f96ac3c2c4
refs/heads/master
2020-08-07T00:54:10.105730
2019-11-10T21:32:08
2019-11-10T21:32:08
213,224,844
0
0
null
null
null
null
UTF-8
Python
false
false
3,175
py
VidsFrames_upd3.py
import numpy as np import cv2 import os from mtcnn.mtcnn import MTCNN import time def TakeVideo(): #move video files to "Videos" folder os.chdir(VideosPath) #update video name based on time video_name = format(int(round(time.time() * 100000))) + '.avi' out = cv2.VideoWriter(video_name,fo...
bac57e04d422c3a6b6bb512578ac1a7eae46feee
7875baaafbffa356faf91007e667a71e5bae7cf0
/setup.py
c1fb488e10c47ae600be40b321897f24d3074c0b
[ "MIT" ]
permissive
Hesbon5600/movie-recommendation-system
760a59ffb7b4bb9fa4db814beecc883bec809e24
8142b985da70b9b94166d8fff254f6581b041161
refs/heads/master
2020-06-21T02:57:55.528866
2019-07-17T06:20:36
2019-07-17T06:20:36
197,327,688
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
setup.py
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='We are going to use the movielens to build a simple item similarity based recommender system.', author='Hesbon', license='MIT', )
ecccc40d51c2a887be2fc4c602fbeb2a195139cc
f19b45ce99e4da6d78a9d2ab7d4c4b04f21ba73a
/src/quizz/settings/server.py
15157361ef95181a205627579977acd049e941a7
[]
no_license
s-mayorov/superquiz
07486bdb6968dad10357236cbda0def7207ae9da
0ff35caed706322ac1323ec9be93c9668edc0477
refs/heads/master
2021-08-22T20:38:38.954825
2017-12-01T07:15:14
2017-12-01T07:15:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
server.py
from .base import * # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.11/howto/static-files/ STATIC_URL = '/static/' STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),) STATIC_ROOT = os.path.join(BASE_DIR, 'assets') # SECURITY WARNING: keep the secret key used in production secret! ...
939c51d6cb9198a5d347504d99bdf56f134ad524
7f9af2aa4579be0d44ffad2ac0d4529265738ab7
/karbor_dashboard/scheduledoperations/views.py
7466b4cf73ec3b2752db794447fe69e928d0d17c
[ "Apache-2.0" ]
permissive
xiaoruiguo/karbor-dashboard
26330dd4cdd49b52897a3f312e7e60a63d54f512
056e51066eac787fbdd3c552271264a9704cc352
refs/heads/master
2020-06-04T09:13:08.813406
2019-04-19T19:31:49
2019-04-19T19:31:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,481
py
views.py
# Copyright (c) 2016 Huawei, 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 law o...
1f035dd2353e5b43ab789941588ee7e39f39912d
fdfff069b1024fd867f602d5476a468af5646f02
/Codigos Kinect/VRPZ-master/stuff/old/main.py
8db4699576f6bc9ecf43e73e18d1d1a5339f0b1d
[]
no_license
mariomr289/tesisMaestria2018
dcca6da022d40d65533c1a3212a85997f03ef552
e660ac8ca95a5d936b94da7ba8f0803dc2792466
refs/heads/master
2021-04-06T11:54:29.966736
2019-05-10T18:57:42
2019-05-10T18:57:42
125,295,624
1
0
null
null
null
null
UTF-8
Python
false
false
4,430
py
main.py
#!/usr/bin/python import pygame import sys import random pygame.init() class BouncingSprite(pygame.sprite.Sprite): def __init__(self, image, scrWidth, scrHeight, speed=[2,2]): pygame.sprite.Sprite.__init__(self) self.speed = speed self.image = pygame.image.load(image) self.rect = self.image.get_rect() sel...
0dac0d9c7d3e14c3e2672cbb1260f21ee9055fc6
eb52c649be77db484b5ab7c9fc8149f775a343c1
/schoolofnet-python-boas-praticas-e-gerenciamento-arquivo/read_file.py
6af7317270eda6311de0ba85623ab4703a1de404
[]
no_license
richellyitalo/Estudos-Python
fffab6b8ed08ec5bb1978ce08ea16b7bc99bd6a4
3c545096f53a7d051e80b5a2ce4f22b633cf3cda
refs/heads/master
2022-12-10T12:56:37.664066
2019-11-13T10:14:02
2019-11-13T10:14:02
130,118,008
1
0
null
2022-12-08T06:52:24
2018-04-18T20:25:52
Python
UTF-8
Python
false
false
973
py
read_file.py
# ESCRITA MÚLTIPLA # file = open('_file.dat', 'a') # file.writelines(('0123456789', '\n', 'abcdefghijklmnopqrstuvxyz')) # Dividindo o texto e escrevendo em múltiplas linhas # textos = 'Eu quero esse texto completamente dividio em linhas' # # file.writelines('\n'.join(textos.split(' '))) # file.close() # -----------...
55b29718a67704e5b6f50497d914e180c6bdf2e0
345422902ade4f9fbf0ef9a383fc925b1faca159
/utils/regex_tester.py
660049bb2afb69ccfe5b13a6ae8346acd2cd30ef
[]
no_license
cvlg-dev/py-url-shortener
e614f6f92aacd1f6853f42d8fa04f8d0b1b31a68
0e627e8ef66d2b30e8dbe864e8f71f717916328b
refs/heads/main
2023-04-11T14:08:39.552980
2021-04-18T13:57:41
2021-04-18T13:57:41
358,901,347
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
regex_tester.py
import re url_pattern = re.compile(r"(http|ftp|https)://([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?") def test_url_regex_pattern(url: str, pattern: re.compile=url_pattern)-> str: """ :param url: :param pattern: :return: """ match = re.match(url_pattern, url) if match...
b444aa519fa5919d26ad66dd492c14bbbb0fec0b
63ba4b474bdf3f9f9430fde7e3e25c25f6b50a75
/src/Chat.py
228bdd5539e218605d7ff2197e9d2a82d6a298cb
[]
no_license
berkerAa/Cmpe322
16fce9f5950dadef6fc201bd737ffa7001e6d996
b1410d7751dbc462ec6caf8eaf9291de07ef959c
refs/heads/master
2023-05-07T23:53:07.788979
2021-06-02T21:35:17
2021-06-02T21:35:17
371,808,306
0
0
null
null
null
null
UTF-8
Python
false
false
3,699
py
Chat.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui/Chat.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGu...
f72bc76e6ae968bdba8842aa7acb70c1bc96415c
6aaea7f27b938e51efb22c3e8d89a3f682da4d2b
/log_adapter.py
f17cf5d77443d6dfeb1ad4b40501b3587de1af0a
[ "MIT" ]
permissive
n8mob/python_logs
9f13582fed6bb84b4798849e9d25bfa8b1a070dc
927425f7caf98e6c6cb23cc3ff421f750b1fea37
refs/heads/master
2023-05-07T21:58:37.041079
2021-05-03T22:13:48
2021-05-03T22:13:48
364,072,332
0
0
null
null
null
null
UTF-8
Python
false
false
913
py
log_adapter.py
import logging from adapter import CustomAdapter ch = logging.StreamHandler() ch.setLevel(logging.DEBUG) formatter = logging.Formatter('%(message)s - %(test_key)s - %(pass_through_key)s') ch.setFormatter(formatter) logger = logging.getLogger(__name__) logger.addHandler(ch) adapter = CustomAdapter( logger, ...
63eebbb606347e4c28ba3f607220f5641ec8acaa
391e88b6bfdea40d218807bbd2b4585610f0bf91
/src/lib/django-google-calendar/google_calendar/migrations/0001_initial.py
bfcaacef234228752c14a72a505b3f439b389b65
[]
no_license
kawazrepos/Kawaz3rd
3de33c50dac5e9125948d9972427228a793cfe42
8f9a850c4df41b0fc1da5b73189772552d5cd531
refs/heads/develop
2020-04-16T14:42:35.758910
2017-06-20T15:48:55
2017-06-20T15:48:55
18,743,101
7
9
null
2017-06-20T15:48:56
2014-04-13T23:57:57
Python
UTF-8
Python
false
false
814
py
0001_initial.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from ..conf import settings class Migration(migrations.Migration): dependencies = [ ('events', '0001_initial'), ] operations = [ migrations.CreateModel( name='GoogleCalen...
785d6ace8b0cf5ecb02ce3de24fefe573e4b55b2
bb358bb1ea8bed79603b876a7e428ab50b2dc83e
/e2ools/models/hsticks.py
6191532f517892bf4a5030b938b493351813d920
[]
no_license
slowcoder-fastsleeper/e2ools
8d094f26f8b4f7f0fc598a2daa0ac6436dbb6e61
cf1825e180f937cbc82efb6ef84e1f8c03a43473
refs/heads/master
2023-05-05T20:30:24.583658
2021-06-01T04:27:29
2021-06-01T04:27:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,452
py
hsticks.py
import numpy as np import dill as pickle from sklearn.base import BaseEstimator from sklearn.utils import check_array import numpy as np import pdb import scipy.optimize as opt import pandas as pd from collections import defaultdict import random import time from functools import partial import scipy import scipy.spar...
a159bc97e22505c2e8e0d0faa3f69c7464dfff97
da33f450296dff93de8b6e272d0f0c5102b93d71
/scripts/coprhd_host.py
d57be975c19cbb636b061f02fe28eee78db4337b
[]
no_license
linux6200/vagrant-corphd
c5bbb9ade402cfbceac7ceb41bdd7b6d445892cb
22fa3aad4d3aeec65a340d5c43ead4a2f05fb714
refs/heads/master
2021-01-19T09:03:10.423580
2017-02-25T01:56:52
2017-02-25T01:56:52
82,079,758
0
0
null
null
null
null
UTF-8
Python
false
false
3,082
py
coprhd_host.py
#!/usr/bin/env python import StringIO import pycurl import json ######################### def registerStoragePortInVArray(portid,vaid): buf = StringIO.StringIO() data = '{ "varray_assignment_changes": { "add": { "varrays": [ "'+vaid+'" ] } } } )' print data url=baseurl+"vdc/storage-ports/"+portid c.setopt(pycu...
5d5959b5af3f5d76c71d4690bd2fba9566c96114
764b2a5bf55bbeaff9b32715fb81954b04808110
/server/sqlite_database.py
e723d8d86fa215e5eeb08b925b23fd06b7861c8e
[]
no_license
PerksofbeingVaibhav/WatchFS
ccbb00e46917bf35f151d366a180d2ce9b4a2b72
698ce223ccfe5d688d241ad7505b718ec085ef63
refs/heads/master
2023-03-16T18:36:33.165762
2018-02-23T19:16:28
2018-02-23T19:16:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,184
py
sqlite_database.py
import sqlite3 class sqlite_database: conn = sqlite3.connect('database/watchfs.db') def initialize(self): # create database if not exist # create all tables , if not exist self.conn.execute('''CREATE TABLE if not exists datamap (nodeid text, path text, mode text, uid text, gid text, size text, timestam...
e17ab4797448d80c930888917eb7a81f52419c73
3573a7245b81475aaeb37ffb94f0ec0bcd9f3de2
/PythonKNN/PythonKNN.py
9afda99565f03fc7005651382334d5c7759f91fb
[]
no_license
Chen-Yu-Qiang/1070722-DuGuJiaZiXun
097b27ae8aab37d2454b5cc0f1bb80d38e6ec2f9
a7a3687f04fcbb8c735f069003cbe8c790f194f2
refs/heads/master
2020-03-23T18:17:47.416698
2018-07-25T18:55:06
2018-07-25T18:55:06
141,899,706
0
1
null
null
null
null
UTF-8
Python
false
false
1,383
py
PythonKNN.py
import math people=3 datanum=50 def d(a,b): c = 0.0 for i in range(len(a)): c+=math.pow(a[i] - b[i],2) return math.sqrt(c) adata=[[0 for i in range(datanum)] for j in range(people)] for i in range(people): for j in range(datanum): f=open("D:\\kinect\\1070722-讀出骨架\\1070722-DuGuJiaZiXun\\B...
06d0ca441202c00b0ecda8079454a7dab9cac9e2
8af0250dc9f9b6144da87b85f4731964e1ac255e
/main.py
ab9cde5879ed496ccbd14fa037e6ad3fde8dde22
[]
no_license
CarlosWGama/python-ml-at-agrupamento
1a4ac6b9379c2607ed62b7cac35e80bfc03d43fa
1c32b0a10212c334ce39b39e34de52605ea15f7e
refs/heads/master
2020-12-21T10:49:03.963907
2020-01-27T02:38:10
2020-01-27T02:38:10
236,408,372
0
0
null
null
null
null
UTF-8
Python
false
false
706
py
main.py
from sklearn.cluster import KMeans import pandas as pd import numpy as np #Coleta dados csv = pd.read_csv('dados.csv', sep=',') csv = csv.drop(columns=['usuario']) dados = csv.values #Cria o modelo modelo = KMeans(5, random_state=0) resultado = modelo.fit_predict(dados) #Organiza os grupos grupos = [ [], #dados ...
0ad8240f7672d610d61dd6b43e3be6abb6805efd
61764833d2f92630d3f3bf22d83bee1cab5e2115
/wiki/migrations/0006_remove_note_user.py
d6d8c1dab7c4808e96cba960af3e2d72e0393b63
[]
no_license
petrovao87/API_wikipedia
88127b013de9a23073ef4aa52f26882555e9ea2a
6d128c2c0d8540a58c304114235c47f90e922e48
refs/heads/master
2022-12-10T16:26:42.326649
2019-09-12T05:15:51
2019-09-12T05:15:51
206,623,441
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
0006_remove_note_user.py
# Generated by Django 2.2.5 on 2019-09-09 20:07 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('wiki', '0005_auto_20190909_2249'), ] operations = [ migrations.RemoveField( model_name='note', name='user', ), ]...
b504f007621153c7aef2a4cb3f937bfe8f9dd3f6
53ad5676a69df0acc086fe633450ccd0ee9b895a
/reg/dispatch.py
79330098a1455ee51dd7298c352dae5b5b4fea04
[]
no_license
jean/reg
1594bbf8710b01368115045e4311a11ce0a0b2a4
021afc0f3001345e582ec539dec225106af31bf1
refs/heads/master
2020-12-28T23:05:24.470546
2014-12-10T12:52:15
2014-12-10T12:52:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,928
py
dispatch.py
from __future__ import unicode_literals from functools import update_wrapper from .implicit import implicit, NoImplicitLookupError from .predicate import match_argname from .compat import string_types class dispatch(object): """Decorator to make a function dispatch based on its arguments. This takes the pred...
70a807fa46ca4916a52fc77a877963c60f06172f
19a7b31e9f9881b60fbfbb63234a50dae904db89
/terminal.cgi
284a82ab2482613cc0c7dfb245b106ccca9e3be0
[]
no_license
sidd2000/LinuxCGI
08370491b7477ae324f57a74c7ba5997320a865c
c25c494ab124d300c3bcb3b0bab444ce8a46f31d
refs/heads/master
2020-04-13T20:47:05.153012
2019-02-14T06:21:21
2019-02-14T06:21:21
163,439,058
0
0
null
null
null
null
UTF-8
Python
false
false
470
cgi
terminal.cgi
#!/usr/bin/python import commands import cgi import cgitb #traceback errors on browser cgitb.enable() print "Content-Type: text/html" print "" mypage_data=cgi.FieldStorage() command=mypage_data.getvalue('command') if "reboot" not in command: print "<pre>" print commands.getoutput(command) print "</pre>" else...
ca1605fca00817763cdacdb746ecf15900077695
be6e6d8af85adf044bf79676b7276c252407e010
/spec/python/test_eos_exception_u4.py
f7e3d27958d70ade8a68a719026c22d6366ddea4
[ "MIT" ]
permissive
kaitai-io/kaitai_struct_tests
516e864d29d1eccc5fe0360d1b111af7a5d3ad2b
3d8a6c00c6bac81ac26cf1a87ca84ec54bf1078d
refs/heads/master
2023-08-19T19:42:47.281953
2023-08-04T20:26:50
2023-08-04T20:26:50
52,155,797
12
41
MIT
2023-07-30T23:30:30
2016-02-20T13:55:39
Ruby
UTF-8
Python
false
false
357
py
test_eos_exception_u4.py
import unittest import kaitaistruct from eos_exception_u4 import EosExceptionU4 class TestEosExceptionU4(unittest.TestCase): def test_eos_exception_u4(self): with self.assertRaisesRegexp(EOFError, "^requested \d+ bytes, but only \d+ bytes available$"): with EosExceptionU4.from_file('src/term_s...
e31b3b95e3415dbf68e5554eb185b589a71cc46d
59d134125f9dc8b73527cb0f6c693e4c7761d056
/contentPages/migrations/0038_convert_existing_asset_types.py
92469b993f80b0ec4c3308b3a814400b219ab954
[ "LicenseRef-scancode-unknown-license-reference", "Vim" ]
permissive
methods/phe-cv19-site
0b25c50f87602323049232e95201839e6990921d
fd5f877b8a0725a9893fa3c24a54e9495e749744
refs/heads/dev
2022-11-26T03:02:09.495473
2021-07-16T10:16:59
2021-07-16T10:16:59
248,713,013
1
0
null
2022-11-22T05:10:25
2020-03-20T09:11:42
SCSS
UTF-8
Python
false
false
570
py
0038_convert_existing_asset_types.py
from django.db import migrations from CMS.enums import enums def convert_existing_resource_types(apps, schema_editor): CreateNewResourceTypes = apps.get_model("contentPages", "CreateNewResourceType") for asset_type in enums.asset_types: new_resource_type = CreateNewResourceTypes(resource_type=asset_t...
d4d19411f0c48ffb99bd17e8387f1741144e43b4
f9f75fe43b600e92c6663ba8350073321eaf34c8
/proj/my_app/tasks.py
0498d31bc64d56b24c7a3b9f5ba729a253ad0033
[]
no_license
aFraley/celery_requests
ff8be40386ab357449b3d0365e5ebf7f607d7051
f8143eb0e2ece27900bbf7dd544ea724befea2ce
refs/heads/master
2021-01-20T22:11:32.118566
2016-06-23T18:09:23
2016-06-23T18:09:23
61,735,114
0
0
null
null
null
null
UTF-8
Python
false
false
2,017
py
tasks.py
from celery import shared_task import tweepy from datetime import datetime, timedelta from .models import Tweet from django.db import IntegrityError CONSUMER_KEY = 'Vp7FVQLSwESvE9oTQruw0TnhW' CONSUMER_SECRET = 'miy6EsGklNYxAaVn37vTjAVGwP0c67IOyuY71AAyL1p2Ba4VPN' ACCESS_TOKEN = '1952022900-5WAHk6l5d3GllFtqDPaucSpnraIo...
879482e4df9c3d7f32d9b2a883201ae043e1189f
3cb3476b7ec12f52c82d6650519f84cd157ee22d
/crawler/getWordNetScore.py
63a95c70f756b3e49fcd8462eb4b9978f3c3d526
[]
no_license
RogersHsu/paper
cd318982e2e8bcc35d29c544de0335073856f99b
8d2af4ba779a48d4fcdeea09affad5d7a4972d35
refs/heads/master
2022-12-15T09:44:27.638757
2020-08-24T06:21:47
2020-08-24T06:21:47
288,716,948
0
0
null
null
null
null
UTF-8
Python
false
false
11,111
py
getWordNetScore.py
import os import json from nltk.corpus import wordnet as wn from itertools import combinations #計算排列組合 # 需要被計算的分類 myTypes = ['animal', 'vehicle', 'food', 'fashion', 'dog', 'cat', 'car', 'motorcycle'] # 計算完網紅權重存放的位置 scorePath = "..\\data\\score" # getUsersData.py儲存網紅貼文資料的json檔案,拿來計算分數 usersDataFile = "..\\data\\us...
93d0d73d56b04bba505265958fccff229f5eaf49
d2c3812c8df56f14cdfacb77a013fa9851b6b644
/Site/index.py
1df15720809dc7184da1fc6a48488a87e3c99b29
[]
no_license
ivenwicht2/TER
bad756d47eaba123c3e94c15e74dd5013b353572
2d5505c6f09af18bd3147777567aa002260fe212
refs/heads/master
2022-06-18T05:30:22.682264
2020-05-02T11:12:23
2020-05-02T11:12:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,285
py
index.py
# -*- coding: utf-8 -*- import os from flask import Flask, request,render_template,url_for from flask_uploads import UploadSet, configure_uploads, IMAGES, patch_request_class import sys sys.path.insert(1, 'script') from backend import model import io from PIL import Image import base64 import numpy as np app = Fla...
ce4ecff2012cfda4a458912713b0330a218fa186
eef46bed8d3b32d6008961a0fe0656749547e40f
/StateMachine/states/moveDigState.py
26e9aafa706dd233d8a0d2747b1aeb3c6e0af64d
[]
no_license
Ebner22/RobotControl
203639e803141ce71e2e0d1be8dd8db0dac7cf9c
9bf3cffd59fff7202eb7961d18543a10789baa98
refs/heads/master
2020-04-21T15:57:51.215602
2018-03-02T02:07:10
2018-03-02T02:07:10
169,684,996
0
0
null
2019-02-08T04:33:53
2019-02-08T04:33:53
null
UTF-8
Python
false
false
690
py
moveDigState.py
from states.state import State class MoveDigState(State): #init attributes of state def __init__(self): super().__init__("MoveDig", "ScanDig") self.transitionReady = False self.digSiteDistance = 0 #implementation for each state: overridden def run(self, moveInstructions): ...
612535d95e655f2e2d2c58f41b2aa99afa7fbcbc
7ded215393c6774c458afce12442e805dc97fff7
/Flask/main.py
09fef5e4a20b155b80609fe86d92f64b8aba3671
[]
no_license
thirteenaladdins/extraction
ea8b66ce9418f421f89eefe06a7b28c132d24abf
cc93ac0e349d8b15a98f046ec6c048cadc72a1c5
refs/heads/master
2023-07-10T06:51:16.097070
2021-08-14T01:55:51
2021-08-14T01:55:51
395,118,167
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
main.py
# from the top # clean up dependencies from flask import Flask app = Flask(__name__) @app.route("/") def index(): return "<h1>Congratulations, it's a web app!</h1>" if __name__ == "__main__": app.run(host="127.0.0.1", port=8080, debug=True)
2579b0c31c5f7cad361ed317f87cb8b0ffcb0098
6febd920ced70cbb19695801a163c437e7be44d4
/treeNgraph/pascal_triangle2.py
52a9ca697854517242e53c1c31693dab9eb79067
[]
no_license
AngryBird3/gotta_code
b0ab47e846b424107dbd3b03e0c0f3afbd239c60
b9975fef5fa4843bf95d067bea6d064723484289
refs/heads/master
2021-01-20T16:47:35.098125
2018-03-24T21:31:01
2018-03-24T21:31:01
53,180,336
1
0
null
null
null
null
UTF-8
Python
false
false
536
py
pascal_triangle2.py
''' Created on Feb 21, 2013 @author: dharadarji ''' def get_row(row_index): entry = [1] if row_index == 0: return entry tmp = [] for i in range(1, row_index + 2): tmp = entry print "i: ", i, "tmp: ", tmp entry = [] entry.append(1) ...
f135d52e4d5e49f96869c4209b84f30ff72f6780
96e14bc83601612632c9cb522bece9fc3e09bf74
/get_data.py
0c4c8573d2706e48919131fe46eb1a65cf9b8747
[]
no_license
joshlemer/RedditProject
fda1015f59517c14ffbeb0bb6e4679aeb08ddb2f
1baea0c1321bcf6464997377b84302810981b393
refs/heads/master
2021-01-05T06:12:24.070065
2015-03-08T21:07:52
2015-03-08T21:07:52
23,259,911
10
0
null
null
null
null
UTF-8
Python
false
false
7,299
py
get_data.py
import praw import pickle import copy class histogram: def __init__(self, dictionary=None): self.frequencies = {} if dictionary is not None: self.frequencies = copy.deepcopy(dictionary) def get_sum(self): the_sum = 0 for e in self.frequencies: the_sum +=...
1c85ccaacfb47808e9e74f2a18bfe3b309891cf4
034193b1ca2932872d23c09f98ff3c5259c17108
/Connect-CreateTable-InsertTable.py
5bb833b02efd6cf74ac65679e4b9042afc81a452
[]
no_license
vladuntaru/Notite
2058d52c70cfe235f3cc120f6fb3688d01e0e4f8
370802a009a49f5cb44f4a0564f1d74fbf916745
refs/heads/master
2020-03-27T10:15:21.551020
2018-08-28T07:13:31
2018-08-28T07:13:31
146,407,012
0
0
null
null
null
null
UTF-8
Python
false
false
1,309
py
Connect-CreateTable-InsertTable.py
#!/usr/bin/python import pymysql dbServerName = "127.0.0.1" dbUser = "root" dbPassword = "1448" dbName = "TestDataBase2" charSet = "utf8mb4" cusrorType = pymysql.cursors.DictCursor connectionObject = pymysql.connect(host=dbServerName, user=dbUser, password=dbPassword, ...
33b8baf2ca819315eaa5f16c7986390acb4d6efd
da6082484abe8d790a08f8df383f5ae8d4a8ba6b
/last_fm/utils/__init__.py
4fe202721419079b0ad1963f24b6ce8bb0c4465d
[]
no_license
themylogin/last.fm.thelogin.ru
6d4e65eb62df4866616ccd42769194a46e4fd5b9
69dbe3b287be5e4a2eda1412a0ecd035bcaa3508
refs/heads/master
2022-11-27T16:58:56.804614
2021-03-25T12:57:48
2021-03-25T12:57:48
16,201,329
1
1
null
2022-11-22T01:08:32
2014-01-24T10:17:13
Python
UTF-8
Python
false
false
333
py
__init__.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, unicode_literals import urllib def normalize_mac_address(address): return address.lower().replace("-", ":") def urlencode(s): return urllib.quote(s.encode("utf-8"), "") def urlencode_plus(s): return urllib.quote_plus(s.encode("...
bf8ffe603b7c1e90deed6a69500ea5b7671e7270
767a68dc09176952ca9558270fc16a0c758fc299
/test.py
2231c25b3bfa5316339e6ee6bbf7af4b9eaaaab9
[ "MIT" ]
permissive
izzatnadzmi/suiron
f17b81df7181f90abd7f17155b2c70883ee6a49a
d4a73a02abb6baaf4344a6c99eb854ef6b73cd36
refs/heads/master
2021-01-01T17:25:29.850135
2017-09-26T15:25:07
2017-09-26T15:25:07
98,069,465
0
0
null
2017-07-23T02:22:47
2017-07-23T02:22:47
null
UTF-8
Python
false
false
2,685
py
test.py
# from suiron.core.SuironIO import SuironIO # import cv2 # import os # import time # import json # import numpy as np # suironio = SuironIO(serial_location='/dev/ttyUSB0', baudrate=57600, port=5050) # if __name__ == "__main__": # while True: # # suironio.record_inputs() # print('turn90') # suiro...
ab1b5d921175394ebba89090df84fd9953dc8fbc
b0fff8d209a9b8b1b2d08c3627f3b1d8933fb1f1
/fabnet/operations/upgrade_node_operation.py
b65add3888499a7711703f0309c7d1ec0c44c73f
[]
no_license
fabregas/fabnet_core
b4e2cca45be3a99727881a775f893a15563220a2
4d02a96e2c6e7f82cef03c7e808e390cdb1f6b6d
refs/heads/master
2016-08-03T14:10:29.395155
2014-07-29T12:50:24
2014-07-29T12:50:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,878
py
upgrade_node_operation.py
#!/usr/bin/python """ Copyright (C) 2012 Konstantin Andrusenko See the documentation for further information on copyrights, or contact the author. All Rights Reserved. @package fabnet.operations.upgrade_node_operation @author Konstantin Andrusenko @date Novenber 5, 2012 """ import os from datetime import date...
2ff75fadba220f41e76ff59c7c98e85144b42cc1
1da4234e9d1996f2bd0123558a24d6aefabd8837
/meteo_pipe/iot/mqtt/iot.py
108f5cffd31b96dd8e42248326958e559a36c542
[]
no_license
rozek1997/meteopipe-serverless-backend
245e659a0fe67f22ce979cfcf73ef2187992ab4f
aca5e3fb235fb5da8ac4325d8811280d4f6ab890
refs/heads/master
2023-02-23T23:43:56.829358
2021-01-13T03:54:22
2021-01-13T03:54:22
321,797,106
0
0
null
null
null
null
UTF-8
Python
false
false
1,158
py
iot.py
import logging import os import boto3 HISTORY_TABLE_NAME = os.environ.get("HISTORY_TABLE") STATUS_TABLE_NAME = os.environ.get("STATUS_TABLE") dynamodb = boto3.resource("dynamodb") STATUS_TABLE = dynamodb.Table(STATUS_TABLE_NAME) HISTORY_TABLE = dynamodb.Table(HISTORY_TABLE_NAME) dynamodb_client = boto3.client("dyna...
a948b59292972ee5904dcbb6174de508eebcbe24
b3518b3e766ade0b8f250488ff79051b1fb45c7e
/tests/flow-d6tpipe.py
a815ebfa9d2247a98ad36a7962bb86c2bb2d493f
[ "MIT" ]
permissive
d6t/d6tflow
997f27436c612c1dc61761980d1e885c30253d28
9ee52f79c6deb6de061a41b72757a119b0eb5b79
refs/heads/master
2023-08-09T13:28:43.674585
2023-07-20T18:28:08
2023-07-20T18:28:08
168,899,027
1,021
78
MIT
2022-10-11T03:35:37
2019-02-03T01:51:22
Python
UTF-8
Python
false
false
4,690
py
flow-d6tpipe.py
#******************************************** # pipe #******************************************** import yaml import d6tpipe import pytest import fuckit from main import * cfg = yaml.safe_load(open('tests/.creds.yml')) @pytest.fixture def cleanup_pipe(): d6tpipe.api.ConfigManager(profile=cfg['d6tpipe_profile'])...
cbeecb4e3ad227b06cc363b01e2751c9eeff9094
6c5fe3f6fc4427da282b99c5d2d19c51c7cc09d7
/Assignment_3/Student.py
a30acb95d5e32b0233bb7ca2c9474ed060228ccc
[]
no_license
sgangl/OOP
232436e39231687ae76f6b9661932a7cfd55ccfc
8a016a5c7dd986889ca755bf446bd419dec9e16e
refs/heads/master
2016-09-05T10:31:42.252413
2015-05-12T03:28:15
2015-05-12T03:28:15
35,459,571
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
Student.py
class Student: """Implements a student in Python""" def __init__(self, name, grade, id): self.name = name self.grade = grade self.id = id def printStudent(self): print "Name: " + self.name print "Grade: " + self.grade print "ID: " + str(self.id) print "********...
bd79931999cda6a33c6325566a6c09e3047236a2
a1acf9ede39492138245221ed8a1627eef276dbd
/knowledge_tracing/plot_experiments.py
3b872d5d06eb14e494e5810163b6b608c92fda5c
[]
no_license
douchmehdi/knowledge_tracing
1f2db5802cd26cd7a3d13add6f1592be1108bd56
afb9741bc5315644dc61a881812119a72f8fc67b
refs/heads/master
2023-08-01T04:05:25.281578
2020-05-05T16:36:46
2020-05-05T16:36:46
258,813,127
0
0
null
null
null
null
UTF-8
Python
false
false
3,178
py
plot_experiments.py
""" Dirty script to plot some results files againts one another """ import os import json import matplotlib.pyplot as plt from knowledge_tracing import path_algos DATA_DIR = os.path.join(path_algos, "data") with open(os.path.join(DATA_DIR, "results_2020-04-24_18-38-14.json")) as f: results_Qrand = json.load(f...
506005d2a1a0fd149cf8f0fed08ce73628f64dd4
22c0f58f692039a6a15f2cf0276cf4f80d4b1e0f
/hello-cdk/hello_cdk/send_to_rekognition/lambda-handler.py
d3403697a4eda3423942fdc7742f0cd4935209c6
[]
no_license
devandhrew/awsCapacityCheckr
e22cd16d446f27c1b99e034108aceedaa29bdd86
bfa249e5165f03261db934a503a20a1e122b92b8
refs/heads/master
2023-04-30T21:01:57.365817
2021-05-15T20:55:53
2021-05-15T20:55:53
367,726,762
0
0
null
null
null
null
UTF-8
Python
false
false
1,610
py
lambda-handler.py
import boto3 def detect_labels(photo, bucket): # returns number of people detected in image client=boto3.client('rekognition') response = client.detect_labels(Image={'S3Object':{'Bucket':bucket,'Name':photo}}, MaxLabels=5) sum = 0 for label in response['Labels']: if (label['Name'] =...
1cbe65dba0e14a7da6aa21f75c571b73681319aa
6265dff77a24c64e17441cf7481c2d527d689604
/.py codes/Ex4+rectangle+in+a+circle.py
2078cb5e9bdfa50d13217ed2d227be31c7c8b4cc
[]
no_license
elguneminov/Complete-Pyomo-Bootcamp-Python-Optimization-Beginners
d793bc39a410117c30748f3a1175a42c21899eec
fa0ed43e27a0bac8bb6e0011b776d546e73a238c
refs/heads/main
2023-03-04T21:56:25.382058
2021-02-20T19:32:30
2021-02-20T19:32:30
340,729,239
0
0
null
null
null
null
UTF-8
Python
false
false
1,177
py
Ex4+rectangle+in+a+circle.py
#!/usr/bin/env python # coding: utf-8 # In[10]: from pyomo.environ import * # max f1 = 4XY <br> # st X^2+Y^2=R^2 # 0<X,Y<R #find the maximum area of a rectangle in a circle # In[11]: model = ConcreteModel() model.R=Param(initialize=10) model.x=Var(bounds=(0,model.R), initialize=model.R) model.y=Var(bounds=(0,m...
4215dc7f56f7f5c211138737d0eda7f1712c0457
fece46b65dea0bf700f7021b5948112c4d4fbf28
/ana_common/scripts/MergeCrossSectionFiles.py
73939dabef0f45bf5bda65fa4589ebc2ce6d5636
[]
no_license
sultamehr/Ana
2ff89c6635e7f86c7ba6e18535963b08ea1e1fc2
a5d2d9a274d2895d4d85c0cfe51587d71e4dcb3d
refs/heads/master
2020-05-04T01:18:50.667194
2019-10-07T11:03:51
2019-10-07T11:03:51
178,902,267
0
0
null
null
null
null
UTF-8
Python
false
false
1,144
py
MergeCrossSectionFiles.py
import os,sys import ROOT #find all cross section files files = os.popen("find %s -type f -name 'CrossSection_*'"%(sys.argv[1])).readlines() prefixes = {} for f in files: filename = os.path.basename(f.rstrip("\n")) prefix = filename.split(".root")[0] prefixes[prefix]=1 options = [] counter = 0 for p in p...
68cd49b5b7163d9da9d417b115826da8db22c8e5
fc947f21c63fdeaab8089ba4d5bb9105754542fd
/word_sudoku/test/row_column_crossover_test.py
20e8103498fef77b8bf1c30fc362fb3a66a68cef
[]
no_license
sdas11/personal-projects
454b056def2efac1ce75b1c3b0f22dfe344e7814
bd0ce5e5296b90faaaf6d6e5d43343011ec60ea6
refs/heads/main
2023-06-28T12:33:34.021030
2021-08-04T01:19:14
2021-08-04T01:19:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
row_column_crossover_test.py
import numpy from ga_component.row_column_crossover import crossover if __name__ == '__main__': # Example 1 parent_a = [ ['A1', 'A1', 'A12', 'A1'], ['A2', 'A2', 'A23', 'A2'], ['A3', 'A3', 'A3', 'A3'], ['A2', 'A4', 'A4', 'A4'] ] parent_b = [ ...
db8eb3ea08895f14f99c0bea8af3d501b41bacf0
1d0b077d6d44513df08e78f1d289070fb5e21f36
/user/models.py
968a945ab98fd98b63ec2d4ee05747732c1f533a
[]
no_license
RedXBeard/hadimac
f5c874adbe5653ac001a20924c0263cfd2f2bdd4
a8cbc1ce4fe140a270e7ab92e2574c4699f69ec2
refs/heads/master
2021-01-10T18:30:41.438819
2010-06-07T11:09:16
2010-06-07T11:09:16
32,139,881
0
0
null
null
null
null
UTF-8
Python
false
false
2,854
py
models.py
# -*- coding: utf-8 -*- from django.db import models from django.contrib.auth.models import User from hadimac.mac.models import Match, Team, MatchRequest import datetime, sha, random, time class UserProfile(models.Model): user = models.OneToOneField(User) get_forum_activity_as_email = models.BooleanField(de...
d128621c8d854355818e2f72580a424ef112ca17
9a4ad50738b7a6b880811ad3323ab8276b66f712
/NPUSCH-BLER-Sim/monitor.py
35482b308c559cf4fbd78b3b27b0e06cd79e8e63
[]
no_license
CSC-CONICET/Lite-NBIoT-NPUSCH-Simulator
d807eaa36d01edc7adcad441a952919f79679814
14cbef3a70ecffddca9dea68d3f5bf40d800fc6b
refs/heads/master
2020-05-25T08:48:45.469381
2019-10-19T01:19:01
2019-10-19T01:19:01
187,721,195
2
0
null
null
null
null
UTF-8
Python
false
false
619
py
monitor.py
import sqlite3 import inspect, os import shutil import time import datetime rootdir=os.path.dirname( inspect.getfile(inspect.currentframe())) db="test.db" dbname=os.path.join(rootdir,db) dbclone=os.path.join("/tmp",db) total=14*8*8*501 while True: shutil.copy(dbname,dbclone) conn=sqlite3.connect(dbclone,isola...
ee6516677a8787d3c994ed3101392ae34608bed2
01f0f002ad2080f6bc1093d0541ad073615d5828
/ahwz001/0007/0007.py
1ebb4f127c1883734a86b6f7fe4c2745f783e2d2
[]
no_license
ahwz001/python
add1f86c16d9e2c061cd2973fa4f292b10c85c02
f6fc56ada3b90e2bd23052190586df8a257d3f2d
refs/heads/master
2021-01-01T17:07:28.675619
2017-10-03T07:03:08
2017-10-03T07:03:08
98,003,775
0
0
null
2017-07-22T03:18:51
2017-07-22T03:18:51
null
UTF-8
Python
false
false
995
py
0007.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ * 0007 * by ahwz001 * 2017/8/4 * thanks this project, I learned some very useful Program. """ import os total_lines = 0 empty_lines = 0 comment_lines = 0 def process_file(fn): global total_lines global empty_lines global comment_lines with open(fn) ...
7e3821ce52e744485294e41dfa8c1b9c64d6be0e
08242be7c49dc0c43020b4a063250c8966796262
/apps/users/serializer.py
90d030fee72fb7dde2f1995556dd14246897f230
[]
no_license
Phimanlol/petsite
33f81b188d0d7417e823dad613610a84d312104d
0e44e6d437837a5d6824dddf7868c3343c700de2
refs/heads/master
2020-03-31T00:09:32.226230
2018-10-05T14:14:52
2018-10-05T14:14:52
151,728,169
1
0
null
null
null
null
UTF-8
Python
false
false
248
py
serializer.py
# -*- coding: utf-8 -*- from rest_framework.serializers import ModelSerializer from .models import Users class UsersSerializer(ModelSerializer): class Meta: model = Users fields = ('last_time', 'gender', 'mobile', 'category')
d92ea8f5b9443f01b23ca788789548ba53967c95
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/A/alucabfreelancer/cheapbeachbikes.py
9f1691f420633a65d3644c48446850eef66944c1
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,562
py
cheapbeachbikes.py
import scraperwiki import sys from bs4 import BeautifulSoup #searches = ["http://www.cheapbeachbikes.com/product/700-1130_Firmstrong-Urban-20%22-Beach-Cruiser-Girl"] searches = ["http://www.cheapbeachbikes.com/product/700-1130_Firmstrong-Urban-20%22-Beach-Cruiser-Girl","http://www.cheapbeachbikes.com/product/700-1120_F...
40ed3e1e320ad3918037ea1d781018097f4be827
e5090b53a9fb034487652712e0c31fa605f8b7b2
/PIL库学习/python学画画(上)/sketch2.py
ed61296d377aa22725e1be202998b73fafbb6987
[]
no_license
FelicxFoster/python_record
74d6b0e174c75b9897f82eb6dd1ca1e40c6d508e
9f88b47618fc1527d9599865bbbdb58bd697d199
refs/heads/master
2020-04-23T05:47:43.382768
2019-02-16T01:40:13
2019-02-16T01:40:13
170,951,492
1
1
null
null
null
null
UTF-8
Python
false
false
2,285
py
sketch2.py
from PIL import Image from sys import argv from random import randint image_path = argv[1] original_image = Image.open(image_path) new_image = Image.new('L', original_image.size, 255) length, width = original_image.size original_image = original_image.convert('L') PEN_SIZE = 3 COLOR_DIFF = 7 LINE_LEN = 2 for i in ...
0f40a712ca2f473d0c37a66a877f07f5c1df7854
8d1bf1562da6fee9809ade3037005493f42998cd
/helpers/jsonTransform.py
6f9059aea03b3d3ecdab8098a8a9e5c6fd0717eb
[]
no_license
Dusk252/magireco-graphql
d26213fc644ff69c77859e6adeef8cdad419dc5b
515092321eae68f278b66060919a474d7de38e76
refs/heads/master
2023-02-27T15:56:45.853060
2021-01-31T09:21:57
2021-01-31T09:21:57
290,431,151
0
0
null
null
null
null
UTF-8
Python
false
false
5,274
py
jsonTransform.py
import json import re import os input_path = 'json/charaCard.json' output_path = 'json/charaCard_parsed.json' def remove_redundant_card_props(character): keysToRemove = [] chara = character['chara'] for key in chara.keys(): if (re.search(r'defaultCard(\.)*', key) or re.search(r'evolutionCard(\.)*...
367f2eb6b8c86d1da48f51a1dc3e55819ac42aab
1b52b05041b201cda35c7299998ff7f1e2ff3b1a
/landuse_by_buffers/main.py
497c541719b4188a6f9889b91e70de517046e421
[ "Unlicense" ]
permissive
trolleway/osm-scripts
e778c53f4c52d06e2c757ff856f36320e28d15cf
07faf7091bdbd5615195081b47807e474520de40
refs/heads/master
2021-05-01T16:29:13.968465
2021-01-19T10:28:44
2021-01-19T10:28:44
16,795,923
2
0
null
null
null
null
UTF-8
Python
false
false
1,636
py
main.py
import os import psycopg2 import config #Take an roads.geojson, and make a many polygons beetwen roads in osm format. #Open OSM file in JOSM, and you get a fancy medium-zoom landuse map def process(ConnectionString): try: conn = psycopg2.connect(ConnectionString) except: print 'I am unable to connect to the da...
6e38a908f687c4d6a3af7898340e83101626f8a1
d7a6e282d128323909d5cebcf14b9be2f10a42c5
/ServerCodeFinal.py
10476dd8e19ce0f75ed5f79d3bcbe5726bdf9e09
[]
no_license
cryptobuks1/P2P-DistributedIndex
87dcce0b07f40e9793b6d0a5d4c9e216a8df6a8a
85e1ac79f92ff5baa2cff297b0e9d290c414ca18
refs/heads/master
2020-12-01T18:13:22.441316
2019-12-18T17:43:54
2019-12-18T17:43:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,163
py
ServerCodeFinal.py
import socket,time,LinkedList,threading,random,sys,os class RS_Server(): def __init__(self): self.PeerList=LinkedList.RS_Peer_List() self._lock=threading.Lock() self.s=socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.Adress=('',65423) self.s.bind(self.Adress) def Register(self, data): with self...
12fb30a9e780efe492c90fcd9fac3ad43b64e098
154ef3572047abb456b60a12585bdfc5104efc40
/src/coffeecompressorcompiler/filter.py
48c980173e660e87523caaebc4ded2ccf302307e
[]
no_license
apmorton/coffee-compressor-compiler
4b017469beccc2bded6657c936c8ee1aa8a3ae53
b388e646366c1c091e028436ce4128bf74f9b03c
refs/heads/master
2020-05-28T04:09:05.525913
2013-10-08T13:39:55
2013-10-08T13:39:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
filter.py
from compressor.filters import FilterBase from coffeecompressorcompiler import CoffeePrecompiler class CoffeeScriptCompiler(FilterBase): """CoffeScriptCompiler""" def __init__(self, content, attrs, **kwargs): super(CoffeeScriptCompiler, self).__init__(content, **kwargs) self.cp = CoffeePrecom...
62bc3709ceb5f47523a840e211c31b5576036432
668b31ebac6aa5382da021780b52dc6a405f3bc3
/curdPro/curdApp/views.py
53d28bb917738ea96fc2dab4025cbd1547da7d20
[]
no_license
manishbhashkarsawn/curdprojects
af018f8c39acd6b630c345c2619aba2706375ea5
5079303041eb652bb9123ffb93bda66d623436b6
refs/heads/master
2020-12-31T23:44:44.822165
2020-02-08T06:41:29
2020-02-08T06:41:29
239,082,283
0
0
null
null
null
null
UTF-8
Python
false
false
3,233
py
views.py
from django.shortcuts import render from .models import ProductData from .forms import DeletingDataForm,UpdatingDataForm,InsertingDataForm from django.http.response import HttpResponse def main_page_view(request): return render (request,'curd_main_page.html') def create_page_view(request): if request.method==...
8153ffe21edcf7da8eaeee0a157b091b8c8dcf3a
770a8bb15cd9060b88c41054599ed3e5b195b10f
/tests/cogs/bible/daily_bread/test_daily_bread_group.py
a1ae9157dbb48295dda7713a8b26637ced137b88
[ "BSD-3-Clause" ]
permissive
bryanforbes/Erasmus
9e54ae5105efe1eda68da2386c2527473265d12c
dd2c6cecb9a101312739f2c50e631f5e5b265f1a
refs/heads/master
2023-08-31T05:07:33.269205
2023-08-30T17:53:34
2023-08-30T17:53:34
101,083,292
20
9
BSD-3-Clause
2023-09-13T06:54:04
2017-08-22T16:17:56
Python
UTF-8
Python
false
false
34,471
py
test_daily_bread_group.py
from __future__ import annotations import asyncio from typing import TYPE_CHECKING import discord import pytest from attrs import evolve, frozen from erasmus.cogs.bible.daily_bread.daily_bread_group import ( DailyBreadGroup, PassageFetcher, ) from erasmus.data import SectionFlag, VerseRange from erasmus.exce...
045cf289e2e56c436d5301a05725526cd87d97bf
65a31813473e090402bd4c7bea7a71b10c3ed3f8
/data_structures/dictionaries_comprehension.py
aa5d2446b2f8228770dcbd21f494c74c7e682d1c
[]
no_license
aliahmadcse/Learning_Python
f1123cc810c7b2e5c249b7e468e37da9811e856a
04ed34ff431d187c2c33f1c72dca03035b1d2e2c
refs/heads/master
2020-07-24T23:49:52.812928
2019-09-12T17:01:48
2019-09-12T17:01:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
dictionaries_comprehension.py
from sys import getsizeof # number = [] # print({item:item*2 for item in range(5)}) number=(x for x in range(1000)) print(getsizeof(number)) for x in number: print(x)
fdd2ce3443a40fa9f97799aac2abc7d97bdbe975
cfe41f68f33f69c1228d61c8c8d33840ab02bc2c
/source/webapp/migrations/0003_auto_20181227_1031.py
9c142fffb03ed36ec308b9b0390ae444cf0090b7
[]
no_license
galubezzz/python-group_1-homework_44-maria_galunova
0c8603d7c5c67d26f89fd38df5b49457e144b7de
8bcc6eff586cccb13d7416f8102a52a415992ca9
refs/heads/master
2020-04-13T04:25:23.467423
2019-01-22T01:37:56
2019-01-22T01:37:56
162,961,032
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
0003_auto_20181227_1031.py
# Generated by Django 2.1 on 2018-12-27 10:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('webapp', '0002_auto_20181223_2124'), ] operations = [ migrations.AlterModelOptions( name='order', options={'permissions': [('c...
132549ae3c6e2219c2f736919837c754afab8f2e
4583606ffcb09158b89437bf1f3bd094500847cd
/python/FormaisLib/src/automato_finito/testes/TesteAutomatoFinito.py
c7902ac78bd727de7837022a7cda60a7c92122f1
[]
no_license
katcipis/playground
7693914497a5f7af089a0c06c9f3c9a46227cdf6
7559ddc567091a7352fcf2942b57afe4351466ce
refs/heads/main
2023-07-09T18:24:17.864361
2023-06-26T20:50:11
2023-06-26T20:50:11
22,303,201
0
4
null
2023-05-17T18:15:59
2014-07-27T04:27:12
C++
UTF-8
Python
false
false
11,794
py
TesteAutomatoFinito.py
''' Created on 23/09/2009 @author: katcipis ''' import unittest from automato_finito.AutomatoFinito import AutomatoFinito from automato_finito.AutomatoFinito import ErroConstruindoAF from automato_finito.AutomatoFinito import AFOperacaoIlegal from automato_finito.Estado import Estado from automato_finito.Transicao impo...
43e17f7ce9e406e0a18500c47e0d671e3a04b6fe
4897f8b20f3bfc2209157f40e7aa1c3ea39ab213
/population.py
3ea256bf0b63c2f19d3af035b49b4b3cc2a46fee
[]
no_license
denizerdogan/genetic_algorithms
cb8239363bda8ee94351e974a629513eb76d638e
a594918531c9b348d1c89b0d6f81be8d8a11e0d6
refs/heads/main
2023-06-02T22:29:21.370439
2021-06-13T16:21:10
2021-06-13T16:21:10
376,587,912
0
0
null
null
null
null
UTF-8
Python
false
false
1,909
py
population.py
from math import trunc from ball import * import random class Population: def __init__(self, size) -> None: self.size = size self.balls = [Ball()]*size for i in range(self.size): self.balls[i] = Ball() self.generation = 1 self.bestball = 0 self.minstep = 500 self.fitnessSum = 0 ...
7f813c19e63643af0ba751ab15a1bdeb7f6117e7
078ed666be552e9ec37353a2e7141355d7d7249a
/function/clusterByQuan.py
5d8189bf4130a40aa8afb3ff6b1fe4399c838a18
[]
no_license
Xiaominzhu/FuzzyCluster
60a2b88c836da5a3d467dbe9a67881b555590842
837aa26ced42c9ccd1a27eefabde89d91accda72
refs/heads/master
2020-03-21T05:47:45.903339
2018-06-21T14:20:52
2018-06-21T14:20:52
138,181,064
1
0
null
null
null
null
UTF-8
Python
false
false
6,001
py
clusterByQuan.py
# -*- coding:utf-8-*- from __future__ import division # 计算两个概念之间的相似度(仅仅基于对象),并写入文件, # 并返回模糊形式概念字典,如:{'e5':'4,5','e4':'1,2'} def culSimByQuan(mergePath, simPath): fConcepts = open(mergePath, 'r') fwrite = open(simPath, 'w+') ConceptsDic = {} sum = 0 edgesnum = 0 for lineCon in fConcepts.readline...
49dc3b20cd0f01115d34b3b809ed9ded32dc6eab
1c1188c8830af7211cb4e1b40b1b6b782459210a
/app_flask.py
ba16eab46a4cc6c2d052adfd935843a5fd863ce7
[]
no_license
HigorC/locksmith
bb47e91a60d1f9122c60321ebdfabbfbb5dbbe77
7833205001f8b08e969fc9e065227120c4781495
refs/heads/master
2020-07-03T20:43:08.056177
2019-08-16T21:16:19
2019-08-16T21:16:19
202,044,092
2
1
null
null
null
null
UTF-8
Python
false
false
186
py
app_flask.py
from flask import Flask from routes import app_blueprint def create_app(): return Flask("__main__") def configure_app(app): app.register_blueprint(app_blueprint) return app
cf269eb3b91f52b38691c224bb1354a5c275964b
741b9e6447eacf9e40f3059a01485436b9da4b14
/faq_model.py
fe2ca6d6adcb3eae6ab0f53a43743a63fca5e3c3
[]
no_license
trangnm58/NTU_FAQs_Chatbot
e50a7260f3d0c951c5f66080f1a49da1798542f4
b5b34a80ab28cbf0a5aa52b130248876131cfc1a
refs/heads/master
2020-04-05T03:37:26.357465
2018-12-10T03:32:27
2018-12-10T03:32:27
156,521,394
1
1
null
null
null
null
UTF-8
Python
false
false
4,413
py
faq_model.py
import argparse import tensorflow as tf from sklearn.utils import resample from models.pairwise_model import FixedAttendNeuralScoreRanker, NoAttendNeuralScoreRanker, RelationRanker from utils import Timer from dataset import Dataset, get_trimmed_embeddings from constants import DATA class NtuModel(RelationRanker): ...
d3bf6e68c0412093eaac944f91853db57b6103b5
f10a7d9197ec6eb0707bbebfab05c97cd6455733
/example.py
8d6b1c9e3096fd35e65b11fc32b3160d7429a6c5
[]
no_license
ibeckman/swarm_robot
21567b4d65f30d641606ff3e044878710f6bb92f
d5dc7ec232d5cd3e36f96ff3904475a59cc53f21
refs/heads/master
2020-05-29T11:35:55.189905
2016-04-25T20:43:42
2016-04-25T20:43:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
example.py
from robot_controller2 import RobotController import time def driver(sensor_input): time.sleep(0.1) return (5, 5) for j in range(2): for i in range(1): r = RobotController(True) r.run(driver, 12)
433a7832ac833540547508f00873c5d87053a018
36b9fd30547471500e53f79067589a35f80d7106
/Steganography/audio_to_text.py
a4e97ddbbe4864e80f96dd08460b487641e3274c
[]
no_license
Nabin-Flash320/minor
9df37ad6ef73a6887f25afa384badd50d57691c4
4c306f362f26e8244aaba1bfc2b517b9fe1be7a6
refs/heads/master
2023-01-14T11:55:02.705078
2020-11-23T04:37:38
2020-11-23T04:37:38
315,200,129
0
0
null
null
null
null
UTF-8
Python
false
false
932
py
audio_to_text.py
#importing wave pckage for audio processing import wave class AudioToText: def decode(self, filePath): #Reading an audio # song = wave.open("song_embedded.wav", mode='rb') song = wave.open(str(filePath), mode='rb') # Convert audio to byte array #frame_bytes stores the list of bytearrays of all frames from...
a18730ec7e74be6a7fe6fa40dd926e151fa61dfb
f830d02fc1b3c952aa303da61843821856cd6d8a
/homePage/models.py
a4754395284045b6ac2a956771f0581a491ce3c4
[]
no_license
amruth27m/ladakh-scenery
d91c6043836689358c3f44fd60747b509d940b5d
6159e3f8aaa36df1d9db464871e005c8aab2ed48
refs/heads/master
2020-04-11T23:40:31.041736
2018-12-18T17:11:52
2018-12-18T17:11:52
162,175,056
0
1
null
null
null
null
UTF-8
Python
false
false
1,079
py
models.py
from django.db import models # Create your models here. # TODO: Read data from this model in home template 1. Contact-details 2. Package details class ContactDetails(models.Model): def __str__(self): return "Contact details displayed in home page" cid = models.IntegerField(primary_key=True) email...
67f34e845aba8e21b4edbb32f52c1f1732813cc9
43a1b3afeef61509488915328eb9aceea098c039
/setup.py
712bdc0ede25426a253cf2f1e8c1a61ac8b5c2bf
[ "Apache-2.0" ]
permissive
34-4e-36/malchive
03aba6a41a4462e1c6ee713b1d05a19d680fbe3b
29de19095d9a8eb9b2fd3fb41148dfd69187199b
refs/heads/main
2023-05-30T19:16:18.889864
2023-03-22T20:38:28
2023-03-22T20:38:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,940
py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright(c) 2021 The MITRE Corporation. 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/lice...
5e41b30ec4f2fafb2e3ef9f35183e922a66188bd
9c60c85cc88a4c19a5d3d2c6189083c0a4dd6ffb
/backend/app.py
9b028dc26f4e44941fb48a649da22b4da1feecaa
[ "Apache-2.0" ]
permissive
nakjunizm/BlackMamba
e155777f1df343da0e05b3f7698c83fe361c1f8b
2cfc2cceab10c7292e021cbd584923926eb332ca
refs/heads/master
2020-06-21T05:54:47.277952
2016-12-11T05:06:51
2016-12-11T05:06:51
74,801,192
2
0
null
2017-02-01T02:09:35
2016-11-26T03:01:41
Python
UTF-8
Python
false
false
442
py
app.py
import falcon import data from wsgiref import simple_server api = application = falcon.API() es_client = data.ESController("localhost:9200").es_client print (type(es_client)) docs = data.SearchDocs(es_client) # api.add_route('/images', image_collection) # api.add_route('/images/{name}', image) api.add_route('/data',...
4e39f756cfd3e45cbe61f70d62743f82f3046f10
b8d80a23cb27af08a1c4d34b478c76228ae5fbb4
/insights/parsers/neutron_l3_agent_log.py
ca2d40d0f89205406241ed6480d31defd5247a98
[ "Apache-2.0" ]
permissive
RedHatInsights/insights-core
bb243e2bf8a52446fefb95ebe05478d6e35efe2e
b0ea07fc3f4dd8801b505fe70e9b36e628152c4a
refs/heads/master
2023-09-04T21:15:40.456257
2023-09-04T10:46:56
2023-09-04T10:46:56
92,518,221
144
290
Apache-2.0
2023-09-14T02:40:13
2017-05-26T14:23:11
Python
UTF-8
Python
false
false
1,401
py
neutron_l3_agent_log.py
""" NeutronL3AgentLog - file ``/var/log/neutron/l3-agent.log`` ========================================================== """ from .. import LogFileOutput, parser from insights.specs import Specs @parser(Specs.neutron_l3_agent_log) class NeutronL3AgentLog(LogFileOutput): """ Parse the ``/var/log/neutron/l3...
b8262d4f9a835f294b28b9712c2da7dd0ed3b6c0
100bc1d8d17fcdfb5560b41da91ab78ecfe7e58c
/lesson3/task4.py
1bb131df6bd639687b0c6bfcdb7428f77e93c82e
[]
no_license
Klivanskaya/python_course
10bec7ca587868ca729c7bcf0a7d171917f01381
e33025d7d967daf2acfaf447d2927f9ef8d76437
refs/heads/master
2020-09-02T12:03:09.817766
2020-03-20T09:07:13
2020-03-20T09:07:13
219,217,260
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
task4.py
any_line = str(input("Enter any line: ")) half_line = len(any_line)//2 print('First half is : ' , (any_line[0:half_line:1])) print('Second half is : ' , (any_line[half_line: ]))
3a0f24a1e3309722dbba41a8eaa75291df1060ad
dfe2f8b4ad1e25066bcb6adff28637d4dd7e7bb1
/imagine/migrations/0002_auto_20210407_0105.py
4dc39c880f83bd46f998693006dbc540f6de64aa
[]
no_license
deft727/ImageTest
a7dca34915156bcbe7d59675e7d51199c35b046b
fbb20a2712d32e29336fdab3b4a89098e8c92b40
refs/heads/main
2023-04-02T18:06:28.603422
2021-04-07T09:54:11
2021-04-07T09:54:11
355,493,199
0
0
null
null
null
null
UTF-8
Python
false
false
1,670
py
0002_auto_20210407_0105.py
# Generated by Django 3.2 on 2021-04-06 22:05 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_resized.forms class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
38bfe1239b5c38984e37e72301f37b59e8491972
93812573dbd3983c02a56be634dfa9cd41f95f6a
/Spark_Streaming_ETL/NewsLogToCSV.py
c567ad293a860d667c207dbc38101175604fde55
[]
no_license
nangkyeong/prj_COMPATH
fee9e8af95d0767d1b35e00cb962e1d4045771c1
04758aa6fa840b87bce6a5accf767d003acadb7e
refs/heads/master
2022-12-22T23:07:16.360551
2019-12-06T01:56:46
2019-12-06T01:56:46
196,950,471
0
0
null
2022-12-16T09:44:13
2019-07-15T07:48:27
Java
UTF-8
Python
false
false
4,254
py
NewsLogToCSV.py
import ast import time import os import pymongo import pandas as pd from pyspark.context import SparkContext from pyspark.streaming import StreamingContext class NewsLogToCSV(object): """ Process news logs into a csv files. Extract new id number from logset, count the keywords of all news and the n...
d5b36c68878691ad8891b1e6d80274eb38d18f39
9920a076f9a2e50c967195cfc0e0e8903c1d9c00
/data_loader.py
ef9907947290bc6c120cc1e90d0a40d265fbc439
[]
no_license
kaminoteto/SJTU_2019_machine_learning_project
3d8e10f2c264c9d6f6ed40ecb15cf41ecd9a9488
197b61e97b5dc6483156f3b1269a34dc6b5bd6bc
refs/heads/master
2020-12-03T15:42:16.828688
2020-01-03T09:46:40
2020-01-03T09:46:40
231,375,003
0
0
null
null
null
null
UTF-8
Python
false
false
3,957
py
data_loader.py
#import cv2 import csv import os import pandas as pd import numpy as np # #files_path = "./train_val" def file5array(file_path, batch_size,variaty): #filenames = os.listdir(file_path) #file_num = len(filenames) #print(image_num) database = pd.read_csv('train_val.csv') A_lable = databas...
94de8bf7f5c331d8e160927d213c20f7b98a4ae2
c41a375667365a75d2b126fa8f89a6fa5890863f
/tests/unit/modules/test_ansiblegate.py
d54d8ce1743b4faad83f7831a34b7f3874286ff3
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
sathieu/salt
6c921a2a45acb35ce34cea736ca9a7f3a2f891b7
310405df2c2a0dafa07b39eb54178d0031ed12ee
refs/heads/master
2021-06-23T13:41:10.223445
2020-05-21T10:35:03
2020-05-25T04:06:02
156,228,110
0
1
Apache-2.0
2020-10-12T18:29:10
2018-11-05T14:09:38
Python
UTF-8
Python
false
false
7,173
py
test_ansiblegate.py
# -*- coding: utf-8 -*- # # Author: Bo Maryniuk <bo@suse.de> # # Copyright 2017 SUSE LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
f26389c34d3ecf3cbe348b108ccbb8dc35e323a8
757b6b25bec0e5c9e306b77e93866915c4dfe473
/libsmev/test_libsmev.py
80bf6b1fcfe156f152e56c954d3ef681f946ab80
[]
no_license
barsgroup/libsmev
1f51ff881fb4ae41a8a4863efb91240eecc0eeb1
a3dbcb7494e2e9e803b26e44b9b37e5ef27b13af
refs/heads/master
2016-09-05T20:50:11.248030
2014-09-24T05:50:02
2014-09-24T05:50:02
17,284,070
6
0
null
null
null
null
UTF-8
Python
false
false
13,433
py
test_libsmev.py
#coding: utf-8 import shutil import base64 import StringIO import uuid import unittest import os import zipfile from lxml import etree from mimetypes import types_map from tempfile import NamedTemporaryFile, mkdtemp from skeleton import construct_smev_envelope from helpers import dict_to_xmldoc, extra...
a4ea505441d0a715519f762045cbcae1be5bd8e7
e03c9872e93dd7292eed3224de43675a94314c6d
/quantificadores/zeroUm.py
5f97adb426f7fe22763c747d548491fda247bb60
[]
no_license
hugodecastro/curso-regex
aa688181a7cfd25d0cd72342c1679903f8c11268
9e7baaecc9d04a44a5c840c3c7972de8f993df6f
refs/heads/master
2022-12-28T22:48:59.792900
2020-10-11T19:52:52
2020-10-11T19:52:52
298,703,141
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
zeroUm.py
import re texto1 = 'De longe eu avistei o fogo e uma pessoa gritando: FOGOOOOOO!' texto2 = 'There is a big fog in NYC' regex = 'fogo?' print(re.findall(regex, texto1, re.I)) print(re.findall(regex, texto2, re.I))
949c8bbe8656e0dd689ff185e4173eee5efe23aa
1885e952aa4a89f8b417b4c2e70b91bf1df887ff
/yukicoder/133.py
32687bd6464b82023889b63b2e22942b9edd8af9
[]
no_license
takumiw/AtCoder
01ed45b4d537a42e1120b1769fe4eff86a8e4406
23b9c89f07db8dd5b5345d7b40a4bae6762b2119
refs/heads/master
2021-07-10T12:01:32.401438
2020-06-27T14:07:17
2020-06-27T14:07:17
158,206,535
1
1
null
null
null
null
UTF-8
Python
false
false
489
py
133.py
import sys readline = sys.stdin.readline from itertools import permutations from math import factorial def main(): N = int(readline()) A = list(map(int, readline().split())) B = list(map(int, readline().split())) cnt = 0 for l1 in permutations(A, N): for l2 in permutations(B, N): ...
af04d6cb0753a32a85208c01f6696349d91beb15
76e062b0d4df2a894906ebe3082f9ab413ee3663
/getIg.py
890a7636c6def5ad505d99b58e47c6968678db42
[]
no_license
rzehumat/HPGeResAnalyzer
399983abb93c75657cb980ca3c4ee9e8ad7adcaa
12f24f7be76a609ef43691c779d608dc72c9ec88
refs/heads/master
2023-05-14T15:07:04.541129
2021-04-04T19:40:06
2021-04-04T19:40:06
338,467,254
0
0
null
2021-04-04T14:48:04
2021-02-13T00:39:53
Jupyter Notebook
UTF-8
Python
false
false
2,299
py
getIg.py
import pandas as pd import os import glob from pathlib import Path from sys import argv from getEpsilon import file_name_parse def append_Igamma_dir(parsed_dir): if not os.path.isdir(parsed_dir): raise Exception(f"Directory '{parsed_dir}' not found." "Consider creating it and movi...
e02bb5ebb51036b86b732923acc4a27b72022afd
bf280df59d2a4592c1ded1474f23385c4addba89
/gem/db/core/cache.py
632c94cd305a9e8c200f5c1f853608f3a65cc854
[]
no_license
akdasa/gem
f382c7bbe2d3987bf87e264684e50ac0475f5de6
15ca96d702443a8e256400e1ec13ed0b739348e1
refs/heads/master
2021-09-21T04:41:35.218007
2018-01-20T15:07:16
2018-01-20T15:07:16
106,115,014
0
1
null
null
null
null
UTF-8
Python
false
false
713
py
cache.py
class Cache: def __init__(self): """Initializes new instance of the Cache class.""" self.__cache = {} def set(self, oid, entity): """Adds object to cache :type oid: str :type entity: object :param oid: Object Id :param entity: Object""" self.__cac...
00f9a958fa67b3fc90fe711f3f44550ca30f2d16
0f88a69eee5c8a2b1541f432f7ffe1db5c83381e
/Packet/Iterator.py
29cf89d5b03a72b99156b74d8fc7cdbbc869c55e
[]
no_license
jiayu-daemon/python_ai
9ef8bf45afa6075ac81a03e4d3629c057c88096c
0a7a799caa2dcd98dd0b7b85ab10bf4086684e7e
refs/heads/master
2021-01-21T11:47:14.290376
2017-12-13T04:18:41
2017-12-13T04:18:41
102,022,994
1
0
null
null
null
null
UTF-8
Python
false
false
210
py
Iterator.py
list=[1,2,3,4] it = iter(list) # this builds an iterator object print (next(it)) #prints next available element in iteratorIterator object can be traversed using regular for statement for x in it: print (x)
b4dea400f546cefedd4f120b6c336a59dbaa3c94
d7ee65cf079c1f85a45580d107eba2d630a88883
/src/offline/movie/model-update-deepfm/model-update-deepfm.py
d910f15102a628f6196a770a64b57f1629132c67
[ "Apache-2.0" ]
permissive
Archer-sssyc/recommender-system-dev-workshop-code
ab1ac391e51487f0d5f293ed6133c938f7670675
61fdcfaae60824412c793affcf3f98755a4ac47b
refs/heads/main
2023-08-05T17:55:17.405766
2021-09-23T07:11:31
2021-09-23T07:11:31
387,366,768
0
0
null
2021-07-19T06:49:57
2021-07-19T06:49:57
null
UTF-8
Python
false
false
10,842
py
model-update-deepfm.py
# deepfm模型训练逻辑 # 基础依赖 import argparse import os import pickle import random import subprocess import json import boto3 import numpy as np import pandas as pd from deepmatch.layers import custom_objects from sklearn.model_selection import train_test_split # 模型相关 from tensorflow.python.keras.models import load_model fro...
322a4a5970c6c7903e93c1775c473048f8d6dee0
54cc74ca6daf25d4b532c73cb67ff01f93cf4cc6
/test/vpl_node.py
8660f5b4e4208c13db5bd718f41c2fc1a846e96e
[]
no_license
eljungg/Capstone
032b9ff86f4c4b3edfb6e8de1a123b1a77ee8e02
47080c0fad090309db4ac1933a9ae45ff5d4e3ba
refs/heads/master
2023-04-21T11:59:49.516031
2021-05-17T20:19:17
2021-05-17T20:19:17
305,478,518
2
0
null
2021-04-22T01:09:10
2020-10-19T18:31:12
Python
UTF-8
Python
false
false
7,390
py
vpl_node.py
from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * from nodeeditor.node_node import Node from nodeeditor.node_content_widget import QDMNodeContentWidget from nodeeditor.node_graphics_node import QDMGraphicsNode from nodeeditor.node_socket import * from nodeeditor.node_edge import * from ...
5f939af117230dab59a585175b260530d0bb35a0
06d52c7c46d9d6f06a3a68768d91973f2dc66eda
/train.py
ce7e70be1519372d70208a7be51007b25228fa32
[]
no_license
take1014/pspnet
5de625c3df96dfc27092c6d10d2fcc82a642de00
91e87f2270359a357956bbba657db6357026108f
refs/heads/main
2023-05-11T17:24:27.528567
2021-05-29T14:09:49
2021-05-29T14:09:49
371,877,288
0
0
null
null
null
null
UTF-8
Python
false
false
2,211
py
train.py
#!/usr/bin/env python3 #-*- coding:utf-8 -*- import os.path as osp import config as cfg import torch.utils.data as data from data_transform import DataTransform from dataset import VOCDataset def make_datapath_list(rootpath, txt_path): img_list = list() anno_list = list() # path template imgpath_tem...
be5d35effc64c7b66ae9aebe6ac8210ad9dc1b16
212c092081683bd24516b2794e55139415aebe10
/srv/fakturace/routes.py
bcf646ef6b229962385eda5b1963ac5f4bde27c4
[]
no_license
cosmik2002/my_server
b4835c9decea34ba64f52cdb9724b9977c6e35c4
21a1ee21046ab47eddeafac7c9f4422ef0aeae7c
refs/heads/master
2022-12-10T01:14:57.475805
2019-04-26T07:55:10
2019-04-26T07:55:10
172,050,951
0
0
null
2022-12-08T01:38:02
2019-02-22T11:00:22
Python
UTF-8
Python
false
false
2,362
py
routes.py
from flask import render_template, current_app, request from srv.fakturace import bp from srv.models import knihafaktur, adresy, odberatele_311, knihafakturpolozky from srv import db from flask_login import login_required, current_user from flask_table import create_table, Table, Col, LinkCol from sqlalchemy import des...
ae17ed966f63a39678778e24b4589c0522858359
ce5beb060962a0c7c298c628e9f2640732dda927
/src/reciprocal.py
af8b32e0865229bd069374b8320f1755d70569a0
[]
no_license
jscheiny/oepd
bb5a9a9ea4c7bcb0c9cc9b9c224005d39535d476
3de1775639b8ce38a9ad108f6028d61eeecfd4e1
refs/heads/master
2021-01-13T11:49:29.290899
2015-10-26T18:55:49
2015-10-26T18:55:49
43,375,915
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
reciprocal.py
import distro, math from scipy.optimize import fsolve from scipy.stats import reciprocal def _solver(stats): (mu, sig2) = distro.extractStats(stats, [distro.Stat.Mu, distro.Stat.Sig2]) equations = lambda (a, b): ( float(reciprocal.stats(a,b,moments='m'))-mu , float(reciprocal.stats(a,b,moments='v'))-sig2 ) ...
71ebc6e9218085e887eda7843b5489837ed45c97
0a9c2ac83df5d77bf55af15264ca952a83690aef
/CodingTools/CTDef/zoutputs.py
bbf6ee44f6bbf7c0fa7c19a24ebdd2d8abbf0062
[]
no_license
goneyears/lambda
c337a296707644616810ca3d9b7c1b62b6aca0b4
e5bae0fd061d9c99831c5426684ca7d69a561bba
refs/heads/master
2021-01-01T06:09:57.536990
2018-05-02T08:51:51
2018-05-02T08:51:51
97,375,871
0
0
null
null
null
null
UTF-8
Python
false
false
2,385
py
zoutputs.py
import re class Zout: def __init__(self, aline): self.Str = aline self.Var = '' self.StN = '' self.ZN = '' self.ZName = '' self.Motion = '' self.Ztype = '' self.tozout(aline) def tozout(self, aline): """transform station sta...
58f7810e2731721562e3459f92684589dc66862c
6656c4d0747792a28f9c71b3bec8d88b4ed947f8
/lesson2.py
7e2e3fe03b21a17c01d1315e4d7bf55abddfcd1b
[ "Apache-2.0" ]
permissive
tkacalex/lesson
1fc06597184d7b9faa12b577631cfcc9f984f689
b237d530447445871c4b01e55eee5f20744fccc3
refs/heads/main
2023-04-07T06:41:55.130965
2021-04-14T12:45:22
2021-04-14T12:45:34
357,287,036
0
0
null
null
null
null
UTF-8
Python
false
false
151
py
lesson2.py
a = [3, 4, 2, 3, 5, 8, 23, 32, 35, 34, 4, 6, 9] print("") print("Lesson #2") print("Program start:") for i in a: if i < 9: print(i) print("End")
aaa0ac5e31e2c10b5baba6077e952fff1a92ef82
5355bc98bf36d1d843cd1bc81e3efc802eecc555
/Para_tunning/CV_fold.py
b4d39aacdc3c5ab14337b4fccf1db9e0c2d5fb76
[]
no_license
pxu2018/Introduction-to-Machine-Learning-with-Python-code
3ca2bf6315ca8e8a5f7e1b1f4d0bc92105159aed
b69f136c4d9c6ba0faf549287edbc3550783a31f
refs/heads/master
2021-01-02T19:00:06.423715
2018-10-24T08:28:27
2018-10-24T08:28:27
239,754,516
1
0
null
2020-02-11T12:17:24
2020-02-11T12:17:23
null
UTF-8
Python
false
false
2,414
py
CV_fold.py
# -*- coding: utf-8 -*- """ Created on Wed Aug 22 18:05:44 2018 @author: Administrator """ from sklearn.model_selection import cross_val_score, train_test_split from sklearn.datasets import load_iris from sklearn.linear_model import LogisticRegression from sklearn.model_selection import StratifiedKFold from sklearn.m...
ad3c5ed3d6a9aa83e69f53d3fec845e8e2b1c9c6
7785bba522e2a053f3f23f4592badffa27550151
/multiple_linear_regression/correlation.py
bd7bd1fd5d61145f52136e894809565b86794f84
[]
no_license
carolinabonivento/regression
cd5c833744be195ebdaae0e6246694c643da9387
a4381eb763a544f306785810c15e38714a3eb8d8
refs/heads/master
2020-03-29T19:25:43.306561
2018-10-22T09:40:29
2018-10-22T09:40:29
150,262,611
0
0
null
null
null
null
UTF-8
Python
false
false
1,261
py
correlation.py
import pandas as pd import numpy as np import sys def avg (x): return [sum(x[i])/row for i in range(col)] def sd (x): return [np.std(x[i]) for i in range(col)] def cov (x, md_x): cov_xy=[[0 for r in range(col)] for c in range(col)] for i in range(col): for j in range (col): for k ...
d267c8cbe51fb1bacc9404a1385f1daa4a0db7f2
048b6ed2e52d7a46dd2c0c70475dc79d5fff0894
/Unsupervised/kmeans.py
00c46c945f4d27baa2d27e8bdd7e55d09eb7ffa6
[ "Apache-2.0" ]
permissive
samyakjain3001/Build-ML-Algos-From-Scratch
e70deea23bdec9ba09341284a3fd690983572063
739d2a85f01b8fd11bc3136ab067a41f8a614451
refs/heads/master
2023-07-11T10:21:36.814558
2021-08-19T20:39:26
2021-08-19T20:39:26
398,040,642
1
0
null
null
null
null
UTF-8
Python
false
false
1,967
py
kmeans.py
import pandas as pd import numpy as np import math from sklearn.datasets import load_digits, load_iris, load_boston, load_breast_cancer from sklearn.model_selection import train_test_split from sklearn.metrics import pairwise_distances class KMeans(): def __init__(self, k = 5, max_iters = 100, random_seed = 42):...
9189c1dd21b0858df3138bcf4fc7568b378e6271
96e67c258eceaa20398a62668c872c6b1382de04
/tests/utils/test_misc.py
68f73ec9ec5f66767e63371d3119b141b2c09cce
[ "MIT" ]
permissive
Feng37/tfsnippet
7fb120abd34f08ca7b42807e16dba9c882e39f15
70c7dc5c8c8f6314f9d9e44697f90068417db5cd
refs/heads/master
2020-03-21T12:53:08.244177
2018-06-25T10:51:29
2018-06-25T10:51:29
138,576,565
0
0
MIT
2018-06-25T09:59:22
2018-06-25T09:59:21
null
UTF-8
Python
false
false
5,423
py
test_misc.py
import os import unittest from mock import Mock from tfsnippet.utils import * class HumanizeDurationTestCase(unittest.TestCase): cases = [ (0.0, '0 sec'), (1e-8, '1e-08 sec'), (0.1, '0.1 sec'), (1.0, '1 sec'), (1, '1 sec'), (1.1, '1.1 secs'), (59, '59 secs...
feed412278d9e711e49ef209ece0876c1de4a873
34d88082307281333ef4aeeec012a3ff5f8ec06e
/CJK/ukWorkingDays.py
0df2f88b1defc0f52df103e4a27db97caf5523e0
[]
no_license
JKChang2015/Python
a6f8b56fa3f9943682470ae57e5ad3266feb47a7
adf3173263418aee5d32f96b9ea3bf416c43cc7b
refs/heads/master
2022-12-12T12:24:48.682712
2021-07-30T22:27:41
2021-07-30T22:27:41
80,747,432
1
8
null
2022-12-08T04:32:06
2017-02-02T17:05:19
HTML
UTF-8
Python
false
false
698
py
ukWorkingDays.py
# -*- coding: UTF-8 -*- # File name: ukWorkingDays # Created by JKChang # 29/07/2020, 11:20 # Tag: # Description: from datetime import date,timedelta,datetime from workalendar.europe import UnitedKingdom cal = UnitedKingdom() print(cal.holidays(2020)) def workingDate(start,end): cal = UnitedKingdom() res = [...
662fc9d64b9046180cf70ce4b26ac2b9665dba0e
05c7ebb88be81821635142a254cd42d2d7856212
/Harry/Stock/test.py
d74b49ddcb0d1e6574476f88524617630013ccdc
[]
no_license
HarryTu/PyStock
c78f9b1d73689fc5d13c03239d6a57e9f055f405
674c9a2c6f66bc575b5bb860873d6868d9b1a67c
refs/heads/master
2021-05-10T15:29:44.842506
2018-04-25T16:09:00
2018-04-25T16:09:00
118,550,292
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
test.py
# -*- coding=UTF-8 -*- ''' Created on 20180127 @author: Harry ''' import datetime # today = datetime.date.today() # weekday = today.weekday() # # if weekday == 0: # print "周一" # else: # print "other days" nowtime=datetime.datetime.now() detaday = datetime.timedelta(days=-1) da_days= nowtime + detad...
ccee0e3c47fd3809e0670be24aaa6fd0a9bad3bc
19e01a5b6d06c2cb2772296de944df98d3b10064
/melomaniac/player/library.py
91e4b8e20e8359d142de9250eea63f5875bf9519
[ "MIT" ]
permissive
sdispater/melomaniac
ae603f35a7edb70de3a1a0e351937d9965648eb1
26edeba844d4822bb1df287d996356786d6d7a38
refs/heads/master
2023-06-24T06:01:38.687347
2017-04-27T17:18:40
2017-04-27T17:18:40
69,682,560
19
4
MIT
2018-01-17T20:37:42
2016-09-30T16:20:27
Python
UTF-8
Python
false
false
328
py
library.py
# -*- coding: utf-8 -*- class Library(object): def __init__(self, backend): self._backend = backend @property def cache(self): return self._backend.cache def cache_key(self, key): return self._backend.cache_key(key) def get_url(self, track): raise NotImplemented...
f799fdfde537bbe8f6c49a5e1a15cf6f910a0d45
3c887d5f4fcdc04a27c371de164b3048a1a52823
/0x07-python-test_driven_development/tests/6-max_integer_test.py
a55aee1e472b14cd850a78acf95a35393ab36a24
[]
no_license
vic-1998/holbertonschool-higher_level_programming
d67981c3d2940924fd575a7fda123983ce414fda
8bc5488c6a5c6158539ccecf64f53e4d26dd6893
refs/heads/main
2023-05-02T03:29:05.933826
2021-05-13T00:36:17
2021-05-13T00:36:17
319,327,464
0
0
null
null
null
null
UTF-8
Python
false
false
715
py
6-max_integer_test.py
#!/usr/bin/python3 """Unittest for max_integer([..]) """ import unittest max_integer = __import__('6-max_integer').max_integer class TestMaxInteger(unittest.TestCase): """ Interactive tests """ def test_max(self): """Tests max_integer""" self.assertEqual(max_integer([1, 2, 3]), 3) self...
0b4f82cfdc16972e5376e14833ddf4f151259ec5
ac09e0745ff9b2e01ba2c5c15a4d14507aa78b90
/app/serializers.py
3061810593518a117a5fd1c13f1bc285dfebeaac
[]
no_license
LucasSantus/api-drink-or-game
cf1aa48238a368e73954f9bd03773c8e2596f555
b02e1a2b8eb266c42ca219c198e59280c67104f6
refs/heads/main
2023-04-04T15:26:12.569295
2021-04-17T02:29:50
2021-04-17T02:29:50
358,680,520
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
serializers.py
from rest_framework import serializers from .models import Desafio, Regra_Casa class DesafioSerializer(serializers.ModelSerializer): class Meta: model = Desafio fields = [ "frase", "nivel_desafios", ] class Regra_CasaSerializer(serializers.ModelSerializer): cla...
a8b8d840defd04824f5abc25bf8cb5e98ef3bff3
e961f53021ba286aadf01b96d0bd6b0b64649656
/ascii_art.py
737b9e277001eb7549c1d223ad9b69b07e1a4e87
[]
no_license
infinite-Joy/hacks
e77db2ae14d356b3779482662a1378c4ee43c164
d8072124c292f6c4ad52f29a0072d2419c69920f
refs/heads/master
2021-07-10T15:08:30.750881
2021-06-29T06:55:16
2021-06-29T06:55:16
47,954,915
1
1
null
2017-12-11T10:12:05
2015-12-14T05:55:34
Python
UTF-8
Python
false
false
3,047
py
ascii_art.py
""" The aim of this program is to generate ascii art of a given word. usage: python ascii_art.py joy ## ####### ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ###### ####### ## ...
7d0ee70083ad3514b2542edadd53e02c9c6c7902
f9a57202ef7afd971127e0534e6f99bbf048e3e8
/bin/compute_service
cd7352c14eaebe9dc3ab253cc774e4266d38ca9d
[]
no_license
mcmonster/smcity
1875d8d45a8341e15636934648ab2e11f7ff44ec
8b24198d57523d9c9eb7a62ad4059e1643508f9a
refs/heads/master
2021-01-14T12:18:55.225500
2014-02-25T17:24:48
2014-02-25T17:24:48
15,593,836
0
0
null
null
null
null
UTF-8
Python
false
false
2,120
compute_service
#!/usr/bin/python import ConfigParser import logging.config import signal import sys from threading import Thread # Check the command line arguments if len(sys.argv) != 3: print "Usage: compute_service [# worker threads] [config file]" sys.exit(-1) # Set up the logging configuration logging.config.fileConfi...
09f302547865d8ca93b360aee4e0b4098516e3c0
3609b2ec16bd5ce57fa1d70d76ea25446c5931af
/mindbender/api.py
18751dff119f9ffccc790ffd01dfe14b90cc1f30
[ "MIT" ]
permissive
mottosso/avalon-core
4ba1a6ce3523a9666b4b5e6d60f752fa77fb05ec
248647167e0fa10d7a52ef3d9f0f9c61c12396bd
refs/heads/master
2022-04-12T17:07:24.683105
2017-05-11T14:58:17
2017-05-11T14:58:17
79,326,623
3
1
MIT
2020-03-17T16:39:20
2017-01-18T09:55:33
Python
UTF-8
Python
false
false
1,924
py
api.py
"""Public API Anything that is not defined here is **internal** and unreliable for external use. Motivation for api.py: Storing the API in a module, as opposed to in __init__.py, enables use of it internally. For example, from `pipeline.py`: >> from . import api >> api.do_this() The ...
78242a2319d3469bc320fa6f972290f8f5c87c26
2a466b71eb9f24c58ca6ba52a379870485d19140
/src/cert_scanner/util/file_name_utility.py
c1bb6311b684d57a70d303aee372b46e286b8794
[ "MIT" ]
permissive
kgarwood/digital_certificate_scanner
5df0fb47193f838353a0cadb696d49b8acbf8351
ede1344144fa62349c0076d5618eccfc4131f98f
refs/heads/master
2020-03-30T07:42:53.860968
2018-10-02T16:12:47
2018-10-02T16:12:47
150,961,231
0
0
null
null
null
null
UTF-8
Python
false
false
4,199
py
file_name_utility.py
import cert_scanner.system.pipeline_configuration as pipeline_configuration import datetime as dt import dateutil.relativedelta as rd PERIOD_TYPES = ['daily', 'week', 'monthly'] """ A collection of functions that are used to create consistent names that are used to produce various parts of a pipeline run. """ def ge...
ec86d9e8a267e35837b86e0babf7eff39a0d4e53
d03f6d4d3631d2f9b118c18c65149b0416d3a001
/生成器-迭代器-装饰器.py
75a1943d97b2c9ff718e5b11b0f177d1af68c65e
[]
no_license
abc56163/180PythonScript
37f43f151b9aef195a25a19a630adccc43113890
655ba6f0c8cb256cfc96639834cb1c270c93fc5b
refs/heads/master
2020-05-23T20:31:42.813005
2019-05-16T02:12:44
2019-05-16T02:12:44
186,933,666
0
0
null
null
null
null
UTF-8
Python
false
false
677
py
生成器-迭代器-装饰器.py
#生成器 # g = (x for x in range(10)) # print(g) # next(g) # for i in g: # print(i) #迭代器 # def g(x): # for i in range(x): # print(i) # yield i # # a = g(2) # print(g(2)) # def check_password(func): # def inner(): # print('密码验证中.....') # func() # return inner # @check_passwo...
a3f15d97216a7293d034d52f80d26c5f1c40122e
d998f36b6b25024c75c706aba179c12b2445b18c
/githubhooks/__init__.py
d6dbfdb37626f0b4d5327ee85da2566d77399235
[]
no_license
i-rabot/githubhooks
dc573fb1ce20e4fcaa6869a7fe0342062961b5e0
c3b200a055466d1693f2a9c32d754086eea6e89c
refs/heads/master
2022-05-12T10:53:25.247820
2022-05-03T17:39:50
2022-05-03T17:39:50
77,162,042
1
0
null
null
null
null
UTF-8
Python
false
false
54
py
__init__.py
# -*- coding: utf-8 -*- """The githubhooks package"""
96531822498b8e431c5071371833e12766b3af44
47823bd3457f574b4f6af32b1d5573d2402da6d1
/model.py
408c7c1ec1f1de1d40c6ecec39bc9bf7cd97b1a4
[]
no_license
KrishMoni/project
cbe1d5b8775dcb34aac5d2045cd670c462131f63
5916cdf9002c97f4ac32d5909bc96253c5237b50
refs/heads/master
2020-04-24T11:15:33.604849
2019-03-05T14:39:50
2019-03-05T14:39:50
171,919,481
0
1
null
null
null
null
UTF-8
Python
false
false
1,706
py
model.py
#importing libraries import numpy as np import pandas as pd from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression import pickle #used to save our trained model to the disk import requests #sends request to the server import json #print the result in our t...
e1e4be75ed2ed40697345122d5d47303cbd3de0a
24c25919a0a877acb914cb4f19dc1081f793cf70
/app/onramp/geometry.py
f661cd88a06187b3781f82fed371edee0bd61190
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-2-Clause" ]
permissive
azavea/onramp
e66528be31dfc2f1e4ddbdee3366f2d5c0fda169
69352d0ac78fb04678245da9db38b6c4ab1d9ca2
refs/heads/master
2023-08-24T01:28:42.953725
2021-10-20T21:00:28
2021-10-20T21:00:28
252,534,495
8
1
Apache-2.0
2021-01-20T20:58:41
2020-04-02T18:25:10
Python
UTF-8
Python
false
false
767
py
geometry.py
import xml.etree.ElementTree as ET class Bounds: """ Iteratively construct bounding box for a series of (x, y) points. """ def __init__(self): self.minx = 180 self.maxx = -180 self.miny = 90 self.maxy = -90 def add(self, x, y): if x < self.minx: self.m...
097e272a9831ed5064a3b43b396f6069c113031a
4a0e51e1fd3b720f7a3959de7492940b7981b7f9
/team/views.py
cc94863d4542cec3e1c29008059ba2513ded4dbd
[]
no_license
ahangchen/WeMeet
0d60e9c49f7de1b63ebcff8428c66915d905f7b3
9b48cceab2fa0e6eaeae889bf7ae96c0c9c03034
refs/heads/master
2021-05-06T09:42:30.818425
2021-04-30T02:09:13
2021-04-30T02:09:13
114,065,607
1
1
null
null
null
null
UTF-8
Python
false
false
284
py
views.py
# coding=utf8 from django.shortcuts import render from django.views.decorators.csrf import csrf_exempt from team.ctrl.register import validate def test(request): return render(request, 'team/test.html', {}) @csrf_exempt def valid_code(request): return validate(request)