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
622952840dd61536b7a008cd0e4caa3505da7fe2
8454501e7595b76deb48895921577838901697c0
/directoryHelpWidget.py
b8bcc94cb73f9d4f1a0d210ac2ac7223d4e7b9d9
[]
no_license
Tody190/PegNaming
899775eb67ab0cb299dd78778f487e86e006ccb2
7020eabebbd6f3848379c8921733aa9e21f7c0e4
refs/heads/master
2022-01-16T09:40:27.704558
2018-09-19T22:13:23
2018-09-19T22:13:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
783
py
directoryHelpWidget.py
# -*- coding: utf-8 -*- import sys sys.path.append('C:/Users/MAE/Documents/MayaPython/QtFiles/InterruptSaveWidget') from PySide2 import QtCore, QtGui, QtWidgets import directoryhelp as DH import maya.cmds as cmds class directoryHelpWidget(QtWidgets.QWidget): def __init__(self, parent = None): #call the wi...
7fd5ffb5f459cbe3fc07694837311020dde8ebca
2d77a9beb3894f421f43622a50b2cb682bee4d34
/titlegen.py
f66f073eb2922f64839081be0cbb87a1975a0520
[]
no_license
WulfOrc/light-novel-gen
1819ee335891668b978153cfe8ac157758aaefae
86403fbcb6bf1e870e0ee8153a5a24e192c676ac
refs/heads/master
2020-04-10T07:11:32.590608
2019-07-19T22:38:09
2019-07-19T22:38:09
160,874,889
0
0
null
2019-07-19T22:38:10
2018-12-07T20:59:27
Python
UTF-8
Python
false
false
2,188
py
titlegen.py
# titlegen.py # Light Novel Title Generator # Init 11-14-18 # WulfOrc import itertools import random #Title Arrays - - - One of each of these options will be chosen, in order, to make a full title zeroth = ['My', 'My Girlfriend\'s ', 'My Teacher\'s', 'My Senpai\'s', 'My Boss\'s', 'My Best Friend\'s'] fi...
57b50fe320fa2aaa534cf70c7dc13de12676a77b
e623a88e7899d6cf6ded6c57d6d5b31ff050eab6
/projective_tranformation/project_tranformation.py
a72f184c38cbd53e17968f9afa7a340783fe1853
[ "MIT" ]
permissive
SharadRawat/AV-Perception
b2a0eef55e4beebaac6c12e6767fcac192580883
4a5bce4ee97a64755670f3fe3d5b7e0f6ab80510
refs/heads/main
2023-02-23T14:06:37.283787
2021-01-26T16:25:44
2021-01-26T16:25:44
332,475,966
0
0
null
null
null
null
UTF-8
Python
false
false
937
py
project_tranformation.py
import cv2 import pickle as p import matplotlib.pyplot as plt import numpy as np import pathlib path = pathlib.Path(__file__).parent.absolute() source_points = [] if __name__ == "__main__": img = cv2.imread(str(path) + "/road.png") image_size = img.shape parameters_file = open('dist_pickle.p', 'rb') ...
a5360d049273d68595004b2adb485cdf103aee58
4928766afa9957325a1f1dee713cffbc6a61022a
/uni3/kdll/area_figuras.py
168874dd03635c3283ec90820bdeb30f8c22b076
[]
no_license
arturbs/Programacao_1
9c8901d628fe5829d2ba4d7de5163de99eb03d0c
05932f645b91276a6b61949321ebc935274defd8
refs/heads/master
2022-01-21T19:41:27.989505
2019-08-22T02:39:30
2019-08-22T02:39:30
184,292,762
0
0
null
null
null
null
UTF-8
Python
false
false
781
py
area_figuras.py
# coding: utf-8 # aluno: Artur Brito Souza # matricula: 118210056 # UFCG - Programação 1 2018.2 # 14/09/2018 # Programa : area figuras import math figura = raw_input() if figura == "triângulo": base = float(raw_input()) altura = float(raw_input()) area_trian = (base * altura) / 2 print "Área do triângulo: %.2f ...
4d5f2a3a6060808d998b3a33171babd1d8934fb8
111789e330216caac5ecc5a4c709ad261c534d82
/src/easyshop.stocks/easyshop/stocks/events.py
2a76299090649da048de842cc5ba7c4d51974141
[]
no_license
Easyshop/Easyshop
b0b328d0016f6a1a800007db055331e26c0bbc05
26e9a40f8e25684a1c156ac1cea08e6796e4c2d7
refs/heads/master
2021-01-19T05:53:54.872702
2010-06-30T17:30:17
2010-06-30T17:30:17
749,559
3
0
null
null
null
null
UTF-8
Python
false
false
317
py
events.py
# zope imports from zope.interface import implements # iqpp imports from easyshop.core.interfaces import IStockAmountIsZeroEvent class StockAmountIsZeroEvent(object): """ """ implements(IStockAmountIsZeroEvent) def __init__(self, product): """ """ self.product = product
c69ce54787867d2bec8bda724ef1566c6bf9a6f7
26793449658e36f5f826551123cb0b01f211aec9
/bioweb_api/apis/run_info/TagsGetFunction.py
3faebd5504368e0087380750bc691cfb7554715c
[]
no_license
dicara/flask-app
71845ad639a6b29499443307c96d9482cf4d2743
64a79b4dcb2d835e7656d9eba32862fbb61e9431
refs/heads/master
2020-03-18T00:21:42.936333
2017-09-15T12:56:36
2017-09-15T12:56:36
134,090,083
0
0
null
null
null
null
UTF-8
Python
false
false
2,472
py
TagsGetFunction.py
''' Copyright 2017 Bio-Rad Laboratories, 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 or agreed to in writi...
b4d41a28c98da262878b3b53942177ae8cfc2221
1614e1fa090596f1e54e60d7b4c256054c39c6c8
/Week1/euler1-mwiechec-01.py
509187c83c4213a01f1802cdb576ea27887382ff
[]
no_license
britannica/euler-club
1080e2fddc569446b0c8db53e89f3a248b34e7a6
12829e6fcb11dab24d2530de69124bb9f5a2a8a4
refs/heads/master
2021-06-25T02:50:12.970942
2019-06-26T14:54:51
2019-06-26T14:54:51
142,917,504
2
1
null
null
null
null
UTF-8
Python
false
false
291
py
euler1-mwiechec-01.py
# onlineGDB.com import time def calculate(n): sum = 0 x = 3 while (x < n): sum += x x+=3 y = 5 while y <= n: sum += y y+=5 if y >= n: break sum += y y+=10 print (sum) return start = time.time() calculate(1000) end = time.time() print(end - start)
5b4ba8ddf942b7459635903453e6b713958f8a57
4780d684222df78973fe0d29dbeef228906f937f
/src/Predict.py
bf38f37aa54584bedf64e146b1189978209673bc
[]
no_license
Shimion100/YiCharacterPredict
8cf0bac5adbecc93404908096863e73222f82ed0
f08e3e2f34c23b60fc1999300525156438ec492a
refs/heads/master
2021-01-20T17:54:12.809236
2016-05-30T11:50:13
2016-05-30T11:50:13
59,986,844
0
1
null
null
null
null
UTF-8
Python
false
false
943
py
Predict.py
from __future__ import print_function import six.moves.cPickle as pickle import theano import theano.tensor as T from SaveCnn import CnnModel from SaveCnn import HiddenLayer from SaveCnn import LeNetConvPoolLayer from SaveCnn import LogisticRegression def predict(): print("Load model.....") # load the saved ...
02ae493726b4c56d01d04eb990e00c15931cb2be
4cd39794c04d8431e89e588b844fa1040c182f39
/app/routes.py
adc48bb3577d105ca00854d61fbcedc67dbf753e
[]
no_license
andrew-fiel/astronaut-radio
4b6603b9c7151827f07a5be22e5ba8b09b5b93c8
f93da09ba484afead9fcd54121c031e1901a4762
refs/heads/master
2022-12-12T13:05:23.487858
2021-01-18T02:10:35
2021-01-18T02:10:35
230,812,827
0
0
null
null
null
null
UTF-8
Python
false
false
2,768
py
routes.py
import json from flask import render_template, request, jsonify import requests from app import app from urllib.parse import quote from app.update import tuneIn from app.volume import changeVolume # Spotify URLS SPOTIFY_AUTH_URL = "https://accounts.spotify.com/authorize" SPOTIFY_TOKEN_URL = "https://accounts.spotify.c...
b053c18f8a05e140875b135bd7e92e76c4f904ee
b1b103ce626cbb37dd9a807200453fa28c369824
/functional_tests/specs/DekhoIndia.spec
a560db6c7aa27bba5f8f50622ac9b91286364f6d
[ "MIT" ]
permissive
akbatra567/crowdsource-dataplatform
a9642c900ad9b56ffacd832ba062820b0b7c2e8a
edf96829eb0b97fa7e1726a882433b6dd592ffe6
refs/heads/master
2023-06-16T03:49:38.523732
2021-07-15T07:32:43
2021-07-15T07:32:43
368,467,269
1
0
MIT
2021-06-03T12:01:47
2021-05-18T09:08:42
JavaScript
UTF-8
Python
false
false
5,831
spec
DekhoIndia.spec
# Test DekhoIndia Tags: component * Open Website * Select "dekho_india_tab" from header ## Check Dekho India Home Page * Validate Dekho India content * User should see the top Language graph and other stats for Dekho India ## Label & Validate cards should be disabled when there is no data for Malayalam /Label card s...
c7353a2f3b67c56b4a63ba4046b9865e30933118
f6f632bee57875e76e1a2aa713fdbe9f25e18d66
/python/_0001_0500/0361_bomb-enemy.py
d83aac0cccee3447acb13c8bef4872e5d93f68f0
[]
no_license
Wang-Yann/LeetCodeMe
b50ee60beeeb3661869bb948bef4fbe21fc6d904
44765a7d89423b7ec2c159f70b1a6f6e446523c2
refs/heads/master
2023-08-07T05:31:23.428240
2021-09-30T15:33:53
2021-09-30T15:33:53
253,497,185
0
0
null
null
null
null
UTF-8
Python
false
false
6,111
py
0361_bomb-enemy.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : Rock Wayne # @Created : 2020-07-28 14:35:52 # @Last Modified : 2020-07-28 14:35:52 # @Mail : lostlorder@gmail.com # @Version : alpha-1.0 """ # 想象一下炸弹人游戏,在你面前有一个二维的网格来表示地图,网格中的格子分别被以下三种符号占据: # # # 'W' 表示一堵墙 # 'E' 表示一个敌人 # '0...
ad5b5a5ebb4a472b2238f1cdf9f9f0854ac8ec49
408e4515c794b2f2686213399833ad7784e5e18c
/airflow/dags/bealign-sliding-windows.py
0abc41dfbfefee4770822b7315256c45df23e8c5
[]
no_license
veg/SARS-CoV-2
64c8d3492151479dce7dfa6f390377bae61d0842
eb44fdec9305aa2427ed54065f340640cfbeeb56
refs/heads/master
2022-11-17T10:09:09.873501
2022-03-06T22:16:13
2022-03-06T22:16:13
249,759,047
17
15
null
2022-11-08T07:12:36
2020-03-24T16:26:53
Python
UTF-8
Python
false
false
19,360
py
bealign-sliding-windows.py
import yaml import datetime from datetime import timedelta from dateutil.relativedelta import * from dateutil.rrule import * from dateutil.parser import * # The DAG object; we'll need this to instantiate a DAG from airflow import DAG # Operators; we need this to operate! from airflow.utils.task_group import TaskGroup...
e51446b220c4701b45d7d656377fd2492340e3cd
9e8712ea4fa6b674cba4fc33bafcfbf997ed24a0
/myapp/views.py
436cf2768733466325954c5b0eee238a801ede43
[]
no_license
HarukiSugimoto/todo
c08384bd7a6fe188f748493794ded972ac34b5b5
4ab0fe7a54e9f0d206f526d0e7cff80dcae11399
refs/heads/master
2022-02-19T04:06:03.464602
2019-10-01T06:22:14
2019-10-01T06:22:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,634
py
views.py
from django.shortcuts import render, redirect, get_object_or_404 from .forms import LoginForm, RegisterForm, ScheduleForm from .models import Register, Schedule from django.contrib import messages from django.utils import timezone # Create your views here. def login(request): if request.method == "POST": ad...
2e1689e53e37d4b8cea9424f0b65da12fa0ec345
28a074117ee5406f77d34c0664d84c32837c4795
/gaudicreate/example.py
13eec5b34a7da2bb9b62d5d029cf384e28cba438
[]
no_license
insilichem/gaudicreate
ddb81367a0ce0022cda75bb940e3610d2aaca63f
8cb1a3cc3a05d1feaaf8a7a803041c7fcfe654ee
refs/heads/master
2022-02-21T20:50:34.285873
2019-07-03T09:54:22
2019-07-03T09:54:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,545
py
example.py
import sys from PyQt5 import QtGui, QtCore class DeleteButtonExample(QtGui.QWidget): def __init__(self): super(DeleteButtonExample, self).__init__() delete_gb = QtGui.QGroupBox("QGroupBox with Delete Button") group_box_vbl = QtGui.QVBoxLayout() group_box_vbl.setAlignment(QtCore.Qt...
b332730ea77fc27a6d9c3f87a3ba55d43d36a1cc
dc40794d0d17f4ee552d58621c4340e60a998d68
/leetcode/30-day-leetcoding-challenge/Minimum Path Sum.py
dcfa3174e92ee852db79fd20f3f901d76574cdb6
[]
no_license
lsom11/coding-challenges
26e67e440bea4c42a0f28051653290f2cb08d0e7
4c127fdeb2ccbbdcdee0c8cd5d5ba47631508479
refs/heads/master
2021-11-23T11:40:37.516896
2021-10-27T15:50:35
2021-10-27T15:50:35
193,889,529
1
3
null
2020-10-27T12:59:54
2019-06-26T11:15:27
Python
UTF-8
Python
false
false
687
py
Minimum Path Sum.py
class Solution(object): def helper(self, x, y, grid, cost): M, N = len(grid), len(grid[0]) if x == M or y == N: return float('inf') elif cost[x][y] != -1: return cost[x][y] else: right, down = self.helper(x,y+1,grid,cost), self.helper(x+1,y,grid,co...
16286f06b2ea8361ea1356e03ed27db65d550156
bb648ef58922f0d0be02d10da7bce962723808d6
/starbase/auth_service/auth_service/auth_service/model/right.py
1ebc0e008aa03ab57f8585562079c84c5b824254
[]
no_license
smiledaddy/Crystal
5d4f622461dda28c4f4b99e61b7a06a0589e8ad0
4f6449841296911c674a37e253193e23e7960353
refs/heads/master
2020-04-12T23:20:27.481639
2015-09-11T07:45:59
2015-09-11T07:45:59
40,286,157
0
1
null
null
null
null
UTF-8
Python
false
false
2,142
py
right.py
# -*- coding: utf-8 -*- import logging from base import ModelBase _LOGGER = logging.getLogger("model") class Right(ModelBase): collection = 'permission' required = ('perm_name', 'module', 'app_label', 'action') unique = ('perm_name',) optional = ( ('lc', '') ) params = set(['module', ...
7402c3b194b8fd108a83f044682a1e73b35ab7f1
e79b82c678db5f548f8b0228f9ebb9736cb6bfa8
/Gomoku/main.py
3f8d83b2ee1838ca48d2278fc9dada5948c3de4c
[]
no_license
veldrinlab/veldrinlabProjects
5988822986271c53323d6d79af7a89c32e7ec6ba
46992f5c7cc77b4fba3c3078dc444cf9fb49fcc0
refs/heads/master
2021-01-10T19:25:43.145557
2013-09-18T16:05:06
2013-09-18T16:05:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
main.py
#!/usr/bin/python # Projekt PSZT - Gomoku # File contains entry point of the application. # Szymon Jablonski # 10.11.2010 # main.py import sys from PyQt4 import QtGui from PyQt4 import QtCore from GameWindow import GameWindow # Entry point of application. app = QtGui.QApplication(sys.argv) main = GameWindow() ma...
bbcf8e0b86f3011957661e69ad52a7cd3a432921
4e584e2376706bdeba0e395a1a436a6ce5a93bf8
/interface/ui_elements/ui_resource_bar.py
e371181e73afaf1c8a4bcba9383a9c031f863894
[]
no_license
AsiganTheSunk/GerardoElMagias
eaba61f663d59aaf6e7323a2ddc1fdccf91f904d
506b25eca3bc1c34dab31e8953b76686e4451b29
refs/heads/master
2023-04-01T01:12:25.031456
2021-04-10T16:57:24
2021-04-10T16:57:24
344,804,391
1
1
null
2021-04-10T17:06:53
2021-03-05T12:29:41
Python
UTF-8
Python
false
false
9,126
py
ui_resource_bar.py
from interface.ui_elements.ui_layout import UILayout from interface.ui_elements.ui_rect import UIRect from constants.game_colors import GRAY_COLOR, MEDIUM_GREEN_COLOR from pygame import time, draw, Color from random import randint from enum import Enum class UIResourceBarState(Enum): NEUTRAL = 'Neutr...
89136fc3749a67f59e8622335a1684649af4a7fb
d6d3f782f42a9aa0975a36e8eebeaeffcc70adac
/Trees/Trie.py
2ef8a4f282a120d89bf1aafabeb7c6ee8a047b34
[]
no_license
naveenkumar14670/Coding-Questions
8e43f711299cd2fa34ce8cf7b1aac5e308595720
24604ad4c10c468d6b94b1733adbabfe0f9125e3
refs/heads/main
2023-06-06T20:08:36.704705
2021-06-24T18:27:32
2021-06-24T18:27:32
379,973,470
0
0
null
null
null
null
UTF-8
Python
false
false
3,743
py
Trie.py
import sys import math import heapq import copy from collections import defaultdict, deque, Counter from bisect import bisect_left, bisect_right from functools import cmp_to_key from itertools import permutations, combinations, combinations_with_replacement # sys.setrecursionlimit(10**6) sys.stdin = open('Input.txt', '...
f14b87cbe1f2887ef9bf9120d4b5ef02ef0431ec
4c177d9c3dc13d7afcc69fd5d6c32231c68a5f20
/test/test_phones_db.py
4eb1c08f5b048ebc272673dc30378463e25f1e7f
[ "Apache-2.0" ]
permissive
assassinen/python_training
a4573be33095f2ec4fe35324717d388d0372250a
4a1996c9fec50c330183959154c240a4a30a6919
refs/heads/master
2021-12-12T13:32:32.435745
2021-11-20T15:37:34
2021-11-20T15:37:34
72,524,111
0
1
null
null
null
null
UTF-8
Python
false
false
517
py
test_phones_db.py
__author__ = 'NovikovII' import re import random from model.contact import Contact def random_contact(app): count = app.contact.count() return random.randint(0, count-1) def test_phones_on_home_page(app, data_contacts): if app.contact.count() == 0: app.contact.add_contact(data_contacts) #полу...
6316e6a29e3a177023baa29fd00bf38e41796403
0b819f96b787eb84fcb2db58e100fa0a038e43fa
/programmers/level_2/피보나치_수.py
b0f38267fd2a95907b04f1d8fa6d39960e664b55
[]
no_license
JeongHM/coding_test
4b9a53a471adde13155892b0455c84c362e58a52
de118201cb743fc707f7a7914b3ebefb5874f8e1
refs/heads/master
2021-06-26T02:44:16.318205
2021-01-11T15:26:11
2021-01-11T15:26:11
193,199,120
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
피보나치_수.py
# 피보나치 수 # 문제 설명 # 피보나치 수는 F(0) = 0, F(1) = 1일 때, 1 이상의 n에 대하여 F(n) = F(n-1) + F(n-2) 가 적용되는 수 입니다. # 예를들어 # F(2) = F(0) + F(1) = 0 + 1 = 1 # F(3) = F(1) + F(2) = 1 + 1 = 2 # F(4) = F(2) + F(3) = 1 + 2 = 3 # F(5) = F(3) + F(4) = 2 + 3 = 5 # 와 같이 이어집니다. # 2 이상의 n이 입력되었을 때, n번째 피보나치 수를 1234567으로 나눈 나머지를 리턴하는 함수, solut...
c07469fb2c604e12ab42d05c09cb94a0354391ff
322102344418a04090affc2d573561762ab344e2
/479.py
ddda819cfadf8746cdf36c00c9dc2a817b9d1b3c
[]
no_license
twl7/project-euler
e4f2c42b635b8daf6da4710dbe1bdc3e4b8b583c
c487e6b86217001536871dcdbbef142d53c0f89e
refs/heads/master
2021-01-21T16:09:54.638645
2017-05-20T09:19:15
2017-05-20T09:19:15
91,877,574
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
479.py
from misc import * n = 10**6 mod = 10**9 + 7 t = 0 for k in xrange(1,n+1): v = (1-k**2) % mod t += (power_mod(v,n+1,mod) - v) * power_mod(v-1,mod-2,mod) print t % mod #191541795
449e98e76d910e14d72d0e3f5504d2abec9c57b8
0ee7fbb663334760202b86034fc773372929cf19
/venv-venv/lib/python3.8/site-packages/phone_verify/backends/base.py
507495e1575eed4918e6877017ec0fc244eea822
[]
no_license
choeyeon/djangogirls
2bb6093d278131a8d43df969d3ba76421b383938
468076893898fa954f1b8f0bd40f54f385018e05
refs/heads/main
2023-07-21T20:03:15.588081
2021-08-20T12:13:20
2021-08-20T12:13:20
388,747,781
1
1
null
2023-06-21T11:44:38
2021-07-23T09:27:24
Python
UTF-8
Python
false
false
2,786
py
base.py
# -*- coding: utf-8 -*- # Third Party Stuff import jwt from django.conf import settings as django_settings from django.utils import timezone from django.utils.crypto import get_random_string from ..models import SMSVerification DEFAULT_TOKEN_LENGTH = 6 class BaseBackend(object): VALID = 0 INVALID = 1 E...
6422a5a6d0c404c8896bb221bf8b6c3dbff63f36
46349356d4812a6bf04a1dff4ee3311864f8b7ff
/ma_py/mic_py/mic_ds_beamforming.py
2949df27c7f2bba2e3aaba011964e2990665353d
[]
no_license
alexdoberman/ma
1ca9d20f64d0e8c87feff9f7bb04d09d3088aeb3
219e5e87b80c6a795c0d4161b3ad22b9973ed745
refs/heads/master
2022-07-17T13:15:21.672335
2020-05-12T15:10:40
2020-05-12T15:10:40
263,365,873
12
2
null
null
null
null
UTF-8
Python
false
false
1,138
py
mic_ds_beamforming.py
# -*- coding: utf-8 -*- import numpy as np def ds_beamforming(stft_arr, d_arr): """ Delay- summ beamformng :stft_arr: - spectr for each sensors - shape (bins, sensors, frames) :d_arr: - steering vector - shape (bins, sensors) :return: delay summ beamforming result - shape...
73766c249adf7e274c72a4c3168bbb380ab85eb7
5dcc9ed193c410da0eac2339908fe1b10be07df8
/events.py
19dd1998e403a959554de46ffaa4b3ff2e1aa68b
[]
no_license
Nyhilo/Now-We-Nomic-Bot
df41e01549057488ae8bfe8974a4db866e625ec4
274d953bcb6255923d5b651f092fd2e897413379
refs/heads/master
2020-03-17T04:02:02.913543
2018-06-10T18:51:32
2018-06-10T18:51:32
133,259,968
0
0
null
null
null
null
UTF-8
Python
false
false
47
py
events.py
# def init(): print("Loaded Events.py")
51eab462955459d9c8dec836e60f3df966fd33f7
540562833b6831540e8939cb3a50b604a47b1cf9
/06.py
2cb55829da8737c28ece6cbc8475ee80938e8a73
[]
no_license
Pranavv-exe/Project-Euler
91d5dd83638555ab8154e111507490cc5b7e1660
18010fe3d16f457266098e57b7e3b84d64064799
refs/heads/master
2022-12-02T14:17:50.622713
2020-08-22T08:32:08
2020-08-22T08:32:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
06.py
s1=0 #sum of the squares s2=0 #square of the sum s=0 #sum of natural numbers for i in range(1,101): s1=s1+i**2 for j in range(1,101): s=s+j s2=s**2 print(s2-s1)
04fd48cfe13882238cbc08ee5cbf1594da120c35
dd1bab0cc789fce0c5b50a306edd9abbcf0f0c82
/sklearn-ranking/utils/transform_pairwise.py
e264b1b7bc4bc79fd6ec2b7831431aabb469309b
[ "MIT" ]
permissive
ashishpatel26/sklearn-ranking
537145e3f2bf6ba1f1bc7a39affdabd997b288ba
82dcff1a0db8679fcabd5e48203f9b7dc7024594
refs/heads/master
2022-07-14T14:55:16.745715
2020-05-20T08:02:31
2020-05-20T08:02:31
265,239,889
10
3
null
null
null
null
UTF-8
Python
false
false
1,812
py
transform_pairwise.py
""" Implementation of pairwise ranking using scikit-learn LinearSVC Reference: "Large Margin Rank Boundaries for Ordinal Regression", R. Herbrich, T. Graepel, K. Obermayer. """ import itertools import numpy as np def transform_pairwise(X, y): """Transforms data into pairs with balanced labels for ranking ...
4c8d2e8a3ccf04d86bf12843dc566c5f33b3e6e6
16aac138cb3e619506c1db12c42f7b034ef3a4fc
/src/apps/finance/migrations/0003_wallet_is_corrupted.py
e14bd9e3c1aaa855184a0f98fd92cbd1888361fa
[]
no_license
martingaldeca/aplazame_mgc
b4ad04203f1859fc075134cff7147c0ca94e2590
fc27f4f891001d889031fa14a13e53edc617c5a5
refs/heads/master
2023-08-09T03:13:36.322774
2020-03-22T23:45:07
2020-03-22T23:45:07
248,847,682
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
0003_wallet_is_corrupted.py
# Generated by Django 3.0.4 on 2020-03-22 22:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('finance', '0002_auto_20200322_1830'), ] operations = [ migrations.AddField( model_name='wallet', name='is_corrupted'...
f55872e38a375acfa50ee0c7b247f8ba09e0c071
0b7f6b66411e7e7b653758fb353972b0c3d0c789
/RecurringBilling/update-subscription.py
b90def0117e285b896abcbde3ba77503240d6f32
[ "MIT" ]
permissive
Zeeshan7293/sample-code-python
8c60829606b600569ba18c9f37dff1df9b78802b
66ce20b4163481f92ee0ae704e0274cd04da7e51
refs/heads/master
2021-01-17T21:11:05.611018
2015-12-03T07:10:59
2015-12-03T07:10:59
46,779,451
0
0
null
2015-11-24T09:01:38
2015-11-24T09:01:38
null
UTF-8
Python
false
false
1,169
py
update-subscription.py
from authorizenet import apicontractsv1 from authorizenet.apicontrollers import * merchantAuth = apicontractsv1.merchantAuthenticationType() merchantAuth.name = '5KP3u95bQpv' merchantAuth.transactionKey = '4Ktq966gC55GAX7S' creditcard = apicontractsv1.creditCardType() creditcard.cardNumber = "4111111111111111" credit...
82a80a0d2f7ff3f9232e9cbb51c387007e94d7f7
0e5283ec7aca5292e1b9161c102960473567c2fb
/code/py/scripts/downstream_tariff_exposure.py
e5c7940194cc8d761fc556aa01de87631ce025a9
[]
no_license
michaelwooley/trumpTariffs
05bd2aaee4b299e640a3e530269a75f1273324d0
a06393a01160a40c8fd6bd0191cdfa214d09aceb
refs/heads/master
2021-04-06T11:06:38.443826
2018-04-23T21:49:31
2018-04-23T21:49:31
124,620,440
0
0
null
null
null
null
UTF-8
Python
false
false
14,603
py
downstream_tariff_exposure.py
"""Summary """ import pickle, zipfile import pandas as pd import numpy as np from tabulate import tabulate from typing import Tuple, Dict, List import statsmodels.formula.api as sm from src.IpumsExtract import IpumsExtract class DownstreamTariffExposure(object): """Creates statistics to discuss downstream worker e...
0e1356fe30126ebb1fb07b869df8754fc8ab4e12
a71c10168fe3f30a9d0c1ef352c3dcebc3ddfae8
/download_plots.py
21aa39d47037b53c07e0c124600bae8977a24aa8
[]
no_license
agodavarthy/PersonalizedMemoryTransfer
6bfc9882f8fe9da7e5de2e7c24a48503eb5e026b
f979ea3558ac404fe4dd847b9748e43e90cb4a10
refs/heads/master
2023-08-22T07:05:54.091079
2021-10-04T06:12:35
2021-10-04T06:12:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,734
py
download_plots.py
from __future__ import unicode_literals import pymongo import pandas as pd import os from imdb import IMDb import datetime as dt from tqdm import tqdm import time import numpy as np import pickle from tmdbv3api import TMDb tmdb = TMDb() tmdb.api_key = '86b2beda4515f94c053918798943add8' tmdb.language = 'en' # tmdb.deb...
94ff39b2f8b470d3ac03b6d5b67a25be41c42f2f
adef3e187a75dbc9fb161ba2555667dbb94a3f00
/run.py
d86d0958f54a38acbdb7d78e83e5a6ae0abfa09a
[]
no_license
prositen/flask-template
298394632cce58a5a17125571ec4a89ed1ea5713
42c63c4dee4e36098a5e30ec032995d912c1dd9f
refs/heads/master
2021-01-11T16:06:35.965697
2019-08-13T08:48:49
2019-08-13T08:48:49
80,006,332
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
run.py
from app import app __author__ = 'Anna Holmgren' app.run(host=app.config['TRIBBLE_HOST'], port=app.config['TRIBBLE_PORT'], debug=app.config['DEBUG'])
7f5fa6b00085758672c9b696776f7582640c26b4
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/hard/8_16.py
f44433fb2b2a7f016b8d1ab0df8217e68966bd9e
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
1,317
py
8_16.py
Prefix sum array in Python using accumulate function We are given an array, find prefix sums of given array. Examples: Input : arr = [1, 2, 3] Output : sum = [1, 3, 6] Input : arr = [4, 6, 12] Output : sum = [4, 10, 22] ## Recommended: Please try your app...
ade509627cce43bd2cd5045ef45a751094237a92
031b1c5b0c404f23ccd61a08845695bd4c3827f2
/python/pyfiles/维吉尼亚密码解密.py
eac26e5d493a05b7cabab413086d3602dd2ccc87
[]
no_license
AndyFlower/zixin
c8d957fd8b1e6ca0e1ae63389bc8151ab93dbb55
647705e5f14fae96f82d334ba1eb8a534735bfd9
refs/heads/master
2022-12-23T21:10:44.872371
2021-02-10T07:15:21
2021-02-10T07:15:21
232,578,547
1
0
null
2022-12-16T15:41:14
2020-01-08T14:13:25
Java
UTF-8
Python
false
false
4,346
py
维吉尼亚密码解密.py
fi = [0, 0, 0, 0, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0 ,0, 0, 0] fi[0]= 8.19 *0.01 fi[1]= 1.47 *0.01 fi[2]= 3.83 *0.01 fi[3]= 3.91 *0.01 fi[4]= 12.25 *0.01 fi[5]= 2.26 *0.01 fi[6]= 1.71 *0.01 fi[7]= 4.57 *0.01 fi[8]= 7.10 *0.01 fi[9]= 0.14 *0.01 fi[10]= 0.41 *0.01 fi[11]= 3.77 *0.01 fi[12]= 3.34 *0.0...
e72315a03462afbe76d7721d60ae6a60d42d80a4
1c94cd15061e8b430746e17a24c5c6ae6c90c306
/variable/String.py
0852cc4eca0ee2e3e04399b3cc0c252efc61d949
[]
no_license
YishiLIU-pill/LearningPython
8e8bcc065a779af8e8912aba8e6ab68814757778
deceb95abb05ba7c29ddd93fa1438b93888b4c76
refs/heads/master
2022-11-16T04:16:41.873585
2020-06-24T18:41:38
2020-06-24T18:41:38
273,696,999
0
0
null
null
null
null
UTF-8
Python
false
false
8,764
py
String.py
# Python 字符串 print("Welcome to String!") #Python 转义字符 #在需要在字符中使用特殊字符时,python用反斜杠(\)转义字符 #\(在行尾时) 续行符 #\\ 反斜杠符号 #\' 单引号 #\" 双引号 #\a 响铃 #\b 退格(Backspace) #\000 空 #\n 换行 #\v 纵向制图表 #\t 横向制图表 #\r ...
ddca334dc8ab6d9c660afcfd8f69c6649f544296
8d6706299810ed116b2221a98e28a040d2a9a96b
/lib/sound.py
64909045dc5eaa929d838a7d6094e00cfbe89594
[]
no_license
Chris-B33/All-In-One-Discord-Bot
1bd212fccf175fc76b1fa304a308ce8558c80dfa
5f85c6ef119b343c8a35aaee033f984b4c42993c
refs/heads/master
2023-07-23T22:25:59.200945
2021-09-04T12:14:50
2021-09-04T12:14:50
401,814,790
1
0
null
null
null
null
UTF-8
Python
false
false
5,101
py
sound.py
import discord import pyttsx3 from discord.ext import commands from youtube_dl import YoutubeDL class Music(commands.Cog): def __init__(self, b): self.bot = b self.is_playing = False self.music_queue = [] self.YDL_OPTIONS = {"format": "bestaudio", "noplaylist": "true"} s...
7a8acc49aaabb561aeb85115095ebb380aade5f2
a70c2453e13107f2ced6a2d523766980354933f1
/simples/artificial/analytical/polv/4contra3/polmultiply43without.py
1039da5726dcbdc09cbe507a453cb0924dbc340d
[]
no_license
brunopace/metaevo
082e36f75544a040e173bdbdd73fd5b7cdafd7e9
70fe70075424a0f889f7c14942942e143b3e4031
refs/heads/master
2021-01-21T02:36:41.999256
2017-06-19T11:34:56
2017-06-19T11:34:56
15,797,096
0
0
null
2017-06-19T11:34:56
2014-01-10T12:03:14
Python
UTF-8
Python
false
false
7,208
py
polmultiply43without.py
import matplotlib.pyplot as plt import math import time import copy ta = time.time() L = 5 nul = [[[[0 for e in range(L)] for a in range(L)] for x in range(L)] for v in range(L)] eps = [[[[1 if (e==1 and a==0 and x==0 and v==0) else 0 for e in range(L)] for a in range(L)] for x in range(L)] for v in range(L)] up = [...
66aa25855ab55dd483aed19e1bca709681741130
0d4bdc3ae5171207da9c2fd556accc6bef0571af
/mediaire_toolbox/transaction_db/exceptions.py
aa105fbf76d90258e893d5d79a7b8283724794ef
[ "MIT" ]
permissive
mediaire/mediaire_toolbox
064a85898f0c9002ee435b7bade9a805c5412f79
f93059f86ae1ddaf03f943bad9248a0ef54cedb8
refs/heads/master
2022-02-07T20:01:39.954145
2022-02-04T16:05:16
2022-02-04T16:05:16
134,259,440
0
3
MIT
2022-02-04T16:01:20
2018-05-21T11:22:32
Python
UTF-8
Python
false
false
52
py
exceptions.py
class TransactionDBException(Exception): pass
e000552321320a5c61247a9ead30982b47d290eb
7feea34a9b1383d98e850ee76b8a4474064f4198
/Day8.py
253e0434bd242153a2726372e6c0a704a333f90d
[]
no_license
n00bnewb1e/Python-Basics
0cdd5cb1df0ceb06bd44ec20f4767d47148a86b6
90d7b6131e9708509839c044c9b5c0ea578ffd21
refs/heads/main
2023-01-06T20:18:30.318072
2020-11-01T17:29:04
2020-11-01T17:29:04
301,774,115
0
0
null
null
null
null
UTF-8
Python
false
false
3,154
py
Day8.py
#Inheritance #A wise man once told #Money is either earned or inherited '''So, we are going to create a parent and a child and let's hopefully see how the child inherits the parents' methods''' #Let's create a parent first class Ambani: def __init__(self, fname, net_worth): self.fname = fname...
f95401843abbc2ac6020f2f35943808ff8a04836
6aa32e94e4141ef26291e0e35192db191478047a
/annotate.py
b1267e2bca71bab6ebd107a920aaff6fbee15a81
[]
no_license
kmangutov/rslol
92cd45bd185440b72b59fe05c23ddf4d529a2f36
b2e9d8af95c2dc008b223e75ff2f4a324e0b9653
refs/heads/master
2022-09-05T13:25:26.108961
2019-05-04T00:30:29
2019-05-04T00:30:29
268,144,235
0
0
null
null
null
null
UTF-8
Python
false
false
1,359
py
annotate.py
from tkinter import * #import PIL.Image #import PIL.ImageTk from PIL import Image from PIL import ImageTk from HoverInfo import HoverInfo import sys root = Toplevel() filename = "screenshots/5.png" if len(sys.argv) > 1: filename = sys.argv[1] im = Image.open(filename) width, height = im.size im = im.resize((int(wid...
cb2e800cc2802031847b170a462778e5c0b3c6f9
029aa1cfd709851620dd4f4ead19ebf9b51b9e3c
/cliff_walking.py
70a931774992d9c00f337a136c76e71a59b1d4e4
[]
no_license
igorpejic/q_learning_sarsa
4b772d27731d3626c9963816b818b6813d510e0f
229c5a124049a86f971e751e5041be7257eaf871
refs/heads/master
2020-04-03T17:37:10.590450
2018-11-04T17:15:26
2018-11-04T17:15:26
155,452,568
0
0
null
null
null
null
UTF-8
Python
false
false
10,135
py
cliff_walking.py
from math import * from numpy import * from random import * import numpy as np import matplotlib.pyplot as plt from colorama import Fore, Back, Style from gridworld import q_to_arrow N_ROWS = 6 N_COLUMNS = 10 class State(object): def __init__(self, i, j, is_cliff=False, is_goal=False): self.i = i ...
52da8608e43b2d8dfe00f0956a1187fcf2e7b1ff
80219553f78dde1a944dbf984cb6d4fde62d5759
/Projects/hospital_management/DHOPD/migrations/0016_patient_c_receipt_c.py
6608d876e37c7e95d4409b1faa6441b9e5005ad7
[]
no_license
wsarvesh/ProjectsGit
7d27fd7b99b2f675edd8259da63c5d536d56a7a7
ea47a98cc9aabc3d4240e549db4c3e596de0f02b
refs/heads/master
2021-07-11T16:31:57.350857
2021-04-17T01:28:18
2021-04-17T01:28:18
192,482,064
1
0
null
2019-06-18T06:47:02
2019-06-18T06:47:01
null
UTF-8
Python
false
false
1,869
py
0016_patient_c_receipt_c.py
# Generated by Django 2.2.6 on 2020-05-21 09:44 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('DHOPD', '0015_auto_20200515_0126'), ] operations = [ migrations.CreateModel( name='Patient_c', field...
1084478226777b9259274e053984ac34d461198d
f1783b6bb123afdcca5217f0b2c25245b14e12fd
/src/interpreter/tree_printer.py
0da8172e23fe82378ff4a695faf9adcaeb525a5a
[]
no_license
werkaaa/theory_of_compiling
3bcbbe45e204dea77593c0ac20671fb9d385dcf4
57b1155600c74f35d3e4f7e101c98896e433779a
refs/heads/master
2023-02-14T20:03:01.474775
2021-01-13T01:59:38
2021-01-13T01:59:38
302,026,335
0
1
null
null
null
null
UTF-8
Python
false
false
4,012
py
tree_printer.py
from .ast import * # noinspection PyPep8Naming def addToClass(cls): def decorator(func): setattr(cls, func.__name__, func) return func return decorator def print_intended(to_print, intend): print(intend * "| " + to_print) # noinspection PyPep8Naming,PyUnresolvedReferences class TreeP...
999de0965efa3c1fe021142a105dcf28184cd5ba
c0886611164b665f5846a3ba80f3314bb9ed337e
/queryparser.py
678414514bed343ff461554085d7244694c0f81a
[]
no_license
asv7es/CS6888_Project
32c4757f6c0c72a921ba03df236e6d8dc9b24f94
55b7617ab88871a956b08c78a96c685d7d9b3ce9
refs/heads/master
2023-09-05T15:33:01.680314
2021-11-22T22:03:38
2021-11-22T22:03:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
queryparser.py
import dnf_converter def parse(query): print("parsing the query...") query = dnf_converter.convert(query) cp_clause_list = [] clause_list = [] for cp in query["$or"]: clauses = [] if "$and" in cp: for clause in cp["$and"]: clauses.append(clause) clause_list.append(clause) else: clause = cp ...
cb08f64d1ad7e53f1041684d4ca4ef65036c138d
b090bf561b3ef6a898c6552f138cf4b6410bb51c
/states/nevada/main.py
9bc91d495b2e9b4cfd928d5116de2a27b65a7a45
[ "Apache-2.0" ]
permissive
kevanloy/elections-officials
35ed14d622837e8e6e3ceab54bb44739f2a01382
a88cc2add866463209658623178f94f0ac99e77b
refs/heads/master
2022-10-22T11:48:49.378130
2020-06-10T00:47:12
2020-06-10T07:45:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,049
py
main.py
import json import re from bs4 import BeautifulSoup from bs4.element import NavigableString, Tag from common import dir_path def is_element(el, tag): return isinstance(el, Tag) and el.name == tag class ElemIterator(): def __init__(self, els): self.els = els self.i = 0 def peek(self): try: ...
5082182af5a08970568dc1ab7a53ee5337260687
c5bc7406bf24ddd11563db1a0664a966160c7579
/SCM6/romaO/romaO.py
906be9e32f58f51158f9652bfdd52d2ea4bd477f
[ "MIT" ]
permissive
TobbeTripitaka/ant_lithosphere
802b1e134e673bb486d1298619d56a095974ca5f
be4fc3cf0b5d05a2554767d8f6c10495173f4be1
refs/heads/master
2022-12-27T01:46:20.170879
2020-10-07T07:44:36
2020-10-07T07:44:36
290,675,079
2
2
MIT
2020-08-27T10:36:46
2020-08-27T04:27:31
Jupyter Notebook
UTF-8
Python
false
false
12,422
py
romaO.py
# # romaO # www.fabiocrameri.ch/colourmaps from matplotlib.colors import LinearSegmentedColormap cm_data = [[0.45137, 0.22346, 0.34187], [0.45418, 0.22244, 0.3361], [0.45696, 0.22158, 0.33043], [0.45975, 0.2209, 0.32483], ...
3dd4b4d4241e588cf44230891f496bafb30c6153
7b51ab6aac1191baea53b15eaa6f2202f11d3fff
/aa.py
3aea605fdf6f08f59487d748c4f30bec98675437
[]
no_license
xgao0412/stock_price_app
884e27f40b442663c46722c13716e6bede0266b2
b5cba7d559d076159185293ded22677a6e68558f
refs/heads/master
2022-12-24T18:16:58.291493
2018-08-15T21:13:31
2018-08-15T21:13:31
144,731,518
0
0
null
2022-12-08T02:46:22
2018-08-14T14:28:10
HTML
UTF-8
Python
false
false
209
py
aa.py
import requests import json import pandas as pd n1 = 'ADS' api_url = 'https://www.quandl.com/api/v3/datasets/WIKI/%s.csv' % n1 df = pd.read_csv(api_url) df = df.head(100) print(df.head()) #print(list(data))
a558b42106b036719fe38ee6efd1c5b933290f52
6cfc1466cf7cd58d38c4eaad16395b0dc74fcb8b
/update_annotations.py
3a3274b258da5414f96978c5c95b7d6a0194d8d6
[]
no_license
ValentinHonorez/SentimentAnalysis
1d259677836ebff940cf2bacf93d0016a668206d
8bf2f02a3a61e60b58a426020d37529320f58a85
refs/heads/master
2022-11-05T17:44:09.446177
2020-06-21T17:56:50
2020-06-21T17:56:50
245,416,993
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
update_annotations.py
#!/usr/local/bin/python # -*- coding: utf-8 -*- from sqlalchemy import select, update from sqlalchemy import Table, Column, String, Integer, Float, Boolean, Date, BigInteger from sqlalchemy import create_engine, MetaData import API_and_Database_function as func import pandas as pd import re connection, Twitter_Senti...
10d35ba3c04d9cd09e152c575e74b0382ff60572
edb429829b93580c41b0d2ab5274569fbc05c21a
/gcodepainter/gcodepainter/services/gcode_sender.py
64fbde06c4cfdf7d1b56bf93f07560d90c2f605a
[]
no_license
leandog/whiteboard-plotter
0ef9f9614d2b614e099be2fe694a72172ddf608a
fdccf731db2720daa39c3b2f7bd93339dfcb2ff2
refs/heads/master
2021-09-07T22:54:10.897189
2018-03-02T13:55:57
2018-03-02T13:55:57
79,840,555
3
0
null
null
null
null
UTF-8
Python
false
false
4,587
py
gcode_sender.py
from pydispatch import dispatcher import time import serial import threading from queue import Queue PORT='/dev/ttys005' #PORT='/dev/tty.usbmodem1461' SPEED=4800.0 class GcodeSender(object): PEN_LIFT_PULSE = 1500 PEN_DROP_PULSE = 800 def __init__(self, **kwargs): super(GcodeSender, self).__init_...
c105f06e302740e9b7be100df905852bb5610a2c
71e857f847ae52d2292a07028dbab8b7486f3114
/plot.py
a5337e16891b0af90498d029d70fdfc95a66b033
[]
no_license
robwasab/BPSK-over-audio
5bd136bf4766f08e588a8d8f93b519d0c45a949e
f978cc2506a261c9c29cb551f316be3b825bc8f1
refs/heads/master
2021-07-19T13:15:14.104639
2017-07-17T06:59:21
2017-07-17T06:59:21
77,730,950
0
0
null
null
null
null
UTF-8
Python
false
false
483
py
plot.py
import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as plt import numpy as np import struct import wave scale = 0.01 wav = wave.open('output.wav', 'r') print 'channels %d'%wav.getnchannels() print 'smpl width %d'%wav.getsampwidth() print 'frame rate %f'%wav.getframerate() nframes = wav.getnframes() pri...
51dcfd91afde439a13bb3a4c05e3f3e91b9987d3
abb3fd62fd2aae6ac210505fee075e31a2775c9a
/instagram_web/__init__.py
d47ae083be3f9f547d8ee40a0c19716b68d05902
[]
no_license
azlinamanap/curriculum-nextagram-template
1bd3478b4a2fca46f8b5f8a6e88bd62cdd4c9eb7
20e29679f34cb84d19e0c634e56b1f05d8b52088
refs/heads/master
2020-09-05T17:05:05.118185
2020-02-24T11:14:34
2020-02-24T11:14:34
220,164,273
0
0
null
2019-11-07T06:11:34
2019-11-07T06:11:34
null
UTF-8
Python
false
false
1,775
py
__init__.py
from app import app from flask import Flask, render_template, request, redirect, url_for, flash, session from flask_login import login_user, LoginManager, current_user, login_required, logout_user, login_fresh from werkzeug.security import generate_password_hash, check_password_hash from werkzeug.utils import secure_fi...
186cd7c294db6741c0339a34abf0034e41328ce5
211537bfff7528ce8f78a54377cb1db823019ed1
/WzySpiderProject/LearnSpider/douban/test/testSqlite.py
b78e3969f94e4da3014f6965363b14c176e548ed
[]
no_license
Wzy-source/Data-Science-Assignment
3d4c9646b423539a9b89edef1af1a1564351ef6c
ce000049f546f821cfe8d1adbc5c71c6876824be
refs/heads/main
2023-02-21T20:11:54.204574
2021-01-27T16:52:03
2021-01-27T16:52:03
318,964,574
2
0
null
null
null
null
UTF-8
Python
false
false
1,912
py
testSqlite.py
#-*- codeing = utf-8 -*- #@Time : 2020/3/4 2:17 #@Author : 李巍 #@File : testSqlite.py #@Software: PyCharm import sqlite3 #1.连接数据库 # conn = sqlite3.connect("test.db") #打开或创建数据库文件 # # print("Opened database successfully") #2.创建数据表 # conn = sqlite3.connect("test.db") #打开或创建数据库文件 # # print("成功打开数据库") # c ...
3c34b175db04bc4b36065f786bbef9b53952e3fb
157d0810d40bbb165889f946566346663cf5b22f
/Python-For-Everyone-Horstmann/Chapter6-Lists/P6.25.py
f3579c4781618f8abef58ac873de9746100fae9d
[]
no_license
dg5921096/Books-solutions
e6ccdcaba0294bdc95e2267723a02d2ba090cb10
31bb4bba240bf95aafeb6d189eade62c66a1765a
refs/heads/master
2021-12-09T16:07:47.756390
2021-11-14T07:09:25
2021-11-14T07:09:25
255,447,147
0
0
null
2020-04-13T21:39:02
2020-04-13T21:39:01
null
UTF-8
Python
false
false
1,711
py
P6.25.py
# Improve the program of Exercise P6.23 by adding captions for each bar. Prompt the # user for the captions and data values. The output should look like this: # Egypt ********************** # France **************************************** # Japan **************************** # Uruguay ************************** # Swit...
c5c331875e3c06f670585d3ba234556d77c8e1b2
5c7a14731d0aa53eeafececd8dfa568bbfbc8cb6
/domainbed/command_launchers.py
db910bc7a633950b2da34b28bccb076107d85fe5
[ "MIT" ]
permissive
facebookresearch/DomainBed
7fe8f03e82879aa94c7df1434bb6d0b8e3b1d040
93ebb6bccdb46d40471ce0713a165aaf7b5e21b6
refs/heads/main
2023-08-25T01:16:36.333243
2023-06-10T14:50:37
2023-06-10T14:50:37
275,930,636
1,166
315
MIT
2023-08-16T14:55:11
2020-06-29T21:32:09
Python
UTF-8
Python
false
false
2,242
py
command_launchers.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved """ A command launcher launches a list of commands on a cluster; implement your own launcher to add support for your cluster. We've provided an example launcher which runs all commands serially on the local machine. """ import subprocess import ti...
1a1c1afd93ab4eb25b7c82b4e2fd0ee48f0d555b
6e60b91b6b58c672f3fbcb839226392dabac3654
/Nine_Parser.py
8d50c56dcd90e542ae68a2941ae937984b30473a
[]
no_license
OleAgterberg/ATP
0ecad0561cc1655d69c102a34073010779f7fedf
be0c9374620b899e5683c7d039f26a6f697be338
refs/heads/master
2022-06-14T01:48:56.570851
2020-05-10T11:25:47
2020-05-10T11:25:47
256,455,327
0
0
null
null
null
null
UTF-8
Python
false
false
5,600
py
Nine_Parser.py
from typing import List, Union, Tuple from Instruction import Instruction from Token import Token import AST class Nine_Parser(object): def __init__(self): pass # parse :: [[Instruction]] -> ([[AST_OR_NONE]] -> Interger) def parse(self, instructions: List[List[Instruction]]) -> Tuple[ Union[List[...
c4c7cc5297766dfe629d30b028a8f9faee08ae83
f6eed962895d736ae8b89ff5d569ecec273c9fb2
/accounts/models.py
8797986389920c5dfc97ba49ab91466a5e082a4d
[]
no_license
mrhz/bbb
0802bc999f61d0dd20373b32868e67d46ddb613a
9a5a2c09cbf0d0ec35b5fc3267ba95b7557ea114
refs/heads/master
2020-03-29T22:40:10.243218
2018-10-06T08:20:09
2018-10-06T08:20:09
150,433,999
0
0
null
null
null
null
UTF-8
Python
false
false
3,436
py
models.py
from django.contrib.auth.models import User from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation from django.contrib.contenttypes.models import ContentType from django.db import models # Create your models here. from buildino import settings class Profile(models.Model): GENDER_CHOIC...
aeee31d6b277e3e6a4615cebd1525926725d6e37
40dd6463584936463633dd6182fe6543353c062d
/07/initdb.py
c886e01abebe7a599cd96c6a5b0d38b07806eca0
[]
no_license
xiaoxiaoxiao117/stulist
5eb0dd53e149aead67e47f2480ff009f59551498
65e7b271668ab3743a863eafb8c88bb9fa548faa
refs/heads/master
2021-01-17T12:24:22.968816
2015-06-24T14:27:09
2015-06-24T14:27:09
37,971,430
0
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
initdb.py
#! /usr/bin/env python3 # -*- coding:UTF-8 -*- from dbconn import db_cursor def create_db(): sqlstr = """ DROP TABLE IF EXISTS course; CREATE TABLE IF NOT EXISTS course ( cou_sn INTEGER, --序号 cou_no TEXT, --学号 name TEXT, --姓名 pice TEXT, ...
701481907795b515e9edb3c29e9943540801ecbe
bf8a601ed67c5d0ea03261552543bf3664c36f50
/plot_tree.py
9a34668a18b59d69a8d049ca81ebd68c5d421691
[]
no_license
manavdahra/interview-prep
26a843a12bdfbda00086b91a3683220dadf52bfe
8e2a06a61df8d280231b5ac709c7cb1144e07798
refs/heads/main
2022-03-09T07:03:45.962552
2022-03-09T03:57:48
2022-03-09T03:57:48
191,113,358
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
plot_tree.py
import collections class TreeNode: def __init__(self, val=0, left=None, right=None) -> None: self.val = val self.left = left self.right = right def visualise(self) -> None: m = collections.defaultdict(list) self.depth, self.minWidth, self.maxWidth = -1, 0, 0 ...
72f3e0d24b3a82b5f315fbbd12d1a990718b53b3
e3a3b6b9672e577ce1a70ae509957d68cf431ef3
/opt2q/measurement/base/likelihood.py
43efe2aae4b876388dcc2a04b35a6d33323688c0
[]
no_license
LoLab-MSM/Opt2Q
0edbfc8893efc00a774b3d31838458cc269e3ea9
43c536e34f2188821e7634950e8e9f0e69696c5a
refs/heads/master
2023-06-23T22:18:44.377042
2023-06-23T03:29:51
2023-06-23T03:29:51
367,685,305
0
0
null
null
null
null
UTF-8
Python
false
false
2,882
py
likelihood.py
import pandas as pd import numpy as np from scipy.stats import norm # categorical likelihoods def categorical_dist_likelihood(predicted, dataset): """Gives the likelihood of the data and simulation using probability of class-membership The predicted df gives probability of class membership. The dataset ordina...
df6a1a2aa98aca9a0542fc3fda7778a8d3876c7e
be95ccf43c5d9699436192f062729bc85943ab2a
/apps/comentarios/views.py
9a245471797ba10bfc0986227cde975f95278519
[]
no_license
Estasleyendoesto/pyForum
31bb86c821f0a0b534553fc3629c8ae734f8f33a
45dc620369cc95eaf9749cc593cfc31194c3066c
refs/heads/master
2023-03-28T16:20:30.272225
2021-03-27T21:09:22
2021-03-27T21:09:22
352,174,522
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
views.py
from django.shortcuts import render from django.template.loader import render_to_string from django.http import HttpResponse from .models import Comentario # Create your views here. def mas_comentarios(request): if request.is_ajax(): post = request.GET.get('post') page = request.GET.get('next') ...
101673514b3a6c2c9103ce748be5ceaeec554fa2
def3ff9f3e954a3f3bbd4b65760036ce1c7c7f7a
/lm/lm.py
5846195eaf265aaf9e5b0b7021bcd37246222a60
[]
no_license
heloowird/pytorch_examples
752ac054e43663b1cb1febafbf4f3aeffc7713bc
100fb3b721ee790773c98aff625ce4b03f8aa099
refs/heads/master
2023-09-03T23:23:56.210532
2023-08-24T13:38:35
2023-08-24T13:38:35
83,371,266
0
0
null
null
null
null
UTF-8
Python
false
false
10,513
py
lm.py
import os import sys import torch from torch.autograd import Variable from torch import optim import torch.nn.functional as F import torch.nn as nn import numpy as np import model import argparse import time import math from tensorboardX import SummaryWriter import util parser = argparse.ArgumentParser(description='l...
c113c7a7f40af05b234a53e0bd6163f5446c046a
d94c5849e6308901f9af8a4edf8c8369d46576d1
/보충/DFS/kakao3.py
9d3ed34f066175ff4036c96c835abc6a7d4f8947
[]
no_license
AhnDogeon/algorithm_study
b4c961b934b5e27afccdf2713a2ccb0174d9a698
b8de39fff92cc98281ba7e94df82bcc9b1503243
refs/heads/master
2022-06-05T11:33:27.392131
2022-05-23T06:37:50
2022-05-23T06:37:50
188,783,176
1
0
null
null
null
null
UTF-8
Python
false
false
1,940
py
kakao3.py
def solution(info, query): answer = [] info_list = [] for i in info: info_list.append(i.split(' ')) print(info_list) arr = [] for i in info_list: arr.append(i[:-1]) print(arr) dup = {} for x, y in enumerate(arr): dup[x] = y print(dup) for j in query...
5fff387e7d2860a2ae3169192c7c9145a0180ed3
e0293411cc9768d9012544f3482df747a36887da
/python/14.py
8828c6eb9c579e1c3b2a55328ac658f9f9438552
[]
no_license
ryanslade/project-euler
2f2bd5ea9bb25833d818a683ef72f0774113ff8c
0d8606f29209e455b39871b61434e04c49a39e0c
refs/heads/master
2020-12-24T15:49:29.902038
2014-09-18T18:11:40
2014-09-18T18:11:40
309,233
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
14.py
def get_next(n): if (n%2 == 0): return n/2 else: return (n*3)+1 def get_chain(start): chain = [] n = start while (n != 1): chain.append(n) n = get_next(n) return chain longest = 0 for i in range(1,1000001): chain = get_chain(i) length = len(chain) ...
67ed3aa85b1150d183add9b0e7a313a607290529
3ed8fc5dfc68ea89b9e44393d56ce56ec0d119d7
/predict.py
a2f16839d81efdf8dfb8320ec9e1ea646d8924dc
[]
no_license
shenhzou654321/DCGAN_tensorflow_slim
0d8a36908476c378d1e4f9450d90f506eb3cf4c6
01c608a4765737c5e06dc27af1b8bbec20fa1e1a
refs/heads/master
2020-04-13T20:30:09.465565
2018-10-08T01:20:56
2018-10-08T01:20:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,624
py
predict.py
#!/usr/bin/env python # encoding: utf8 # # @author : zhangduo@baidu.com # @file : predict.py # @date : 2018/10/07 21:03 import tensorflow as tf import dcgan import data_provider flags = tf.app.flags flags.DEFINE_string("data_dir", "", "Directory for storing input data") flags.DE...
3bc93cbbd215cb8ea29beba65223d547b2a027d1
9d8d26b7cbc16fecb637941b0aa08c17d0e05b11
/obamafication.py
945c8f2e85725ed20a7ab850bf99cd7e493eb785
[]
no_license
sahmedASC/Saaif_ASC3
1a6dd917d1ada7fa60c391d23c7b46539c69232d
873e946b368ad74b67ed0222a6964f039029ffc6
refs/heads/master
2021-01-17T07:53:46.582028
2016-08-19T13:46:49
2016-08-19T13:46:49
63,184,237
1
0
null
null
null
null
UTF-8
Python
false
false
613
py
obamafication.py
from Myro import * from Graphics import * obamaDarkBlue = makeColor(0,51,76) obamaRed = makeColor(217, 26, 33) obamaBlue = makeColor(112,150,158) obamaYellow = makeColor(252, 227, 166) pic = makePicture(pickAFile()) #obama(pic) for pixel in getPixels(pic): gray = getBlue(pixel) red = getRed(pixel) black...
cf613fd17c55d838b50fa48d4819888af3b488d7
91c28f52a3d99cf3affbbb36f63d5f80cd4e174a
/config/config_dashboard.py
e9e79cebaacd3f6a3d4e1582670979ff429bdea1
[]
no_license
webclinic017/market-trades-dashboard
562a0a73d337ea3b5f0433c5519240e7455b0a78
a35cde99d471c767058922d0ea681ff6bb66cc1d
refs/heads/main
2023-04-07T11:04:16.553623
2021-04-05T18:18:22
2021-04-05T18:18:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,662
py
config_dashboard.py
import holoviews as hv from datetime import datetime from bokeh.models import HoverTool # ---------------------------------------------------------------------- # Styled Dataframes. # ---------------------------------------------------------------------- # To store styled dataframes. PIVOT_STATS_STYLED = {} # -...
046661980b8f98a0cc91e5f79fb6f7c556fa2928
e9e11aee109878d490a77eef74fb14aa1538f684
/test44createObject.py
d096db1948d1091fb27732d4d7d7362635867864
[]
no_license
jack-mars/selemium_webdriver
c107990a1564ec038db6b7c52556fd7438aa13f2
1e76ac27a47422bc996831946974a3c107202ae8
refs/heads/master
2020-04-01T09:00:03.503760
2018-10-25T03:55:18
2018-10-25T03:55:18
153,055,658
0
0
null
2018-10-16T05:54:12
2018-10-15T05:03:15
Python
UTF-8
Python
false
false
202
py
test44createObject.py
""" Objected Oriented Programming """ class Car(object): def __init__(self, make, model='550i'): self.yumake = make self.model = model c1= Car('bmw') print(c1.yumake) print(c1.model)
3acc4e042ca910529a9262f31397ce285831552c
186687b9b69ae25bc2771d72562b55eacdaaf650
/sources/main.py
becbd58b4a9096415fd42e2c1cc2e327e5301521
[]
no_license
baptistelinel/lol-stats
fe4d1db55d8c6cd1091d412db2147fd3468bd1e5
593097ff1efde7b7cbd480d5a7d85533dcfc3420
refs/heads/master
2022-06-21T04:44:41.001495
2020-05-18T13:32:17
2020-05-18T13:32:17
262,071,827
1
0
null
null
null
null
UTF-8
Python
false
false
1,506
py
main.py
from flask import Flask from flask_caching import Cache from adapters.requests_adapter import RequestsAdapter from business.win_rate_business import WinRateBusiness from requesters.league_requester import LeagueRequester from requesters.match_requester import MatchRequester from requesters.summoner_requester import Su...
cc84e18f6074bb62685bf1427fad410b89ffde0e
2d640e6796cc93f67caf89054ac7743df1ff8f18
/match.py
0f9aa4499562bf8072af0066a6b7f9fe39a77ab6
[]
no_license
shortdoom/elasticLabeling
12d01a93f493468ba9468d72b1f4043753184b30
f66fe28695b639bbf09916a6d81d9eddbeba3084
refs/heads/master
2022-11-24T11:30:05.704403
2020-07-20T14:35:26
2020-07-20T14:35:26
281,128,491
1
0
null
null
null
null
UTF-8
Python
false
false
3,996
py
match.py
from elasticsearch import Elasticsearch import time import pandas as pd es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) # https://elasticsearch-py.readthedocs.io/en/master/ # https://www.elastic.co/guide/en/elasticsearch/reference/current/rest-apis.html def save_columns(dataframe): '''Saves three file...
0b57e77cbab23a81a7a8973d1fa0fdd80db5f7bd
296205630c135e20b1b9b7ff03b84bab7482c24f
/first.py
a1a5f172e08d7d80d3f2c1ff63db17732741c96c
[]
no_license
pandapritam365/passhide
288b1b0cdfb2213073f85b7201493aad3646e20a
95d09fcb67c9d5db2cf0eaab255d3342b8aaf6b7
refs/heads/main
2023-01-24T23:07:46.890390
2020-11-29T16:10:33
2020-11-29T16:10:33
316,989,813
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
first.py
username=input("enter the user name\t") password=input("Enter the password\t") hidden_password=len(password)*"*" print(f"yeah! your username is {username} \n your secret password is\t{hidden_password}")
0d24dc83a0144ac071627be2c55555072761a3da
8176f97192eb158c6f674dbb3a10a5a718544c41
/database/make_emotion_view_2.py
dee00c7593124b45aa610ed41a168dcb83bd5ece
[]
no_license
Elle-Lee-XS/Swear-words-Analysis
26184385e3a29fa4055ac68c502673b193e61e8f
0bdac46642d493f4905c6a35af687f0a71d8061b
refs/heads/master
2022-09-01T05:07:41.461204
2020-05-30T03:46:24
2020-05-30T03:46:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
make_emotion_view_2.py
import couchdb couch = couchdb.Server('http://admin:password@localhost:5984') db = couch["emotion"] docs = [{ "_id": "_design/emotion_classify", "language" : "javascript", "views": { "emotion": { "map": "function(doc){ emit([doc.city, doc.emotion], 1)}", "reduce": "functio...
434fbf448f3226ab70f24be11e026b86a441d199
994cab8dd1bbd3f7573ede754e1374a4e04d8666
/python-scripts/jinja_nxos-ex2b.py
5b027679540c97295fb4f7f3a31205a485048b66
[]
no_license
vigneshN123/mystuff
081d53d93cfa2178450b859ca2fc36cb51ccb969
534d8e925373eab6071bdddd8c8517bfdad7740e
refs/heads/master
2023-08-05T09:07:43.474536
2023-07-19T00:46:08
2023-07-19T00:46:08
243,067,284
0
0
null
2022-03-05T18:05:02
2020-02-25T18:14:24
Python
UTF-8
Python
false
false
723
py
jinja_nxos-ex2b.py
from jinja2 import StrictUndefined, FileSystemLoader from jinja2.environment import Environment #import my_devices #from netmiko import ConnectionHandler env = Environment(undefined = StrictUndefined) env.loader = FileSystemLoader(".") dev1 = { "device" : "nxos1", "interface" : "Ethernet1/1", "ip" : "10....
4b831284942dd73a75e03dec8bb755d4af41eafa
2447effa4ea6ae298c826967cc572583f6bde5d9
/common/urls.py
d1dbecc1fdf8bd92b3a76e409503d2371de358b7
[]
no_license
lydia-karungi/Ruforum
fc317d74092c9d77903fd5a96b46c296fee9b2a7
d1d6714fbac47a357bc51f0867f577b98e1bbf62
refs/heads/main
2023-02-06T04:10:51.032368
2020-12-23T09:11:33
2020-12-23T09:11:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,909
py
urls.py
from django.contrib.auth import views as auth_views from django.urls import path from common.views import ( HomeView, LoginView, ForgotPasswordView, LogoutView, ChangePasswordView, ProfileView, UpdateProfileView, UsersListView, CreateUserView, UpdateUserView, UserDetailView, UserDeleteView, Pass...
2ea2862dce9fc86b11370ec1059fb6ee86c1b48a
f3a06fffa159fad32ba04e0af9771323d9a230c9
/Assignment05.py
59487459de92ef4aa78da9c21dabc4a88250cb02
[]
no_license
nhertlein/IntroToProg-Python
874683c23db5cf3a27c862e12a5e730c97879c89
2ca3cffe6d2f1a4951a95846a06db6c10883fa7c
refs/heads/main
2023-03-03T06:07:06.681596
2021-02-17T04:49:08
2021-02-17T04:49:08
339,301,572
0
0
null
null
null
null
UTF-8
Python
false
false
4,271
py
Assignment05.py
# ------------------------------------------------------------------------ # # Title: Assignment 05 # Description: Working with Dictionaries and Files # When the program starts, load each "row" of data # in "ToDoToDoList.txt" into a python Dictionary. # Add each dictionary "r...
ec93efc179d20ffc817af93715d7ba985be65470
1db592c077151418b6b5c0d48c5928ae7b5d76e5
/pubsublogger/subscriber.py
99e2aacb4cdb20457412d9daf78dc79a7d5d2c08
[]
no_license
Rafiot/PubSubLogger
fc5f154f1f0d0116a16146e24d7b09dd97c9e96d
4f28ad673f42ee2ec7792d414d325aef9a56da53
refs/heads/master
2016-09-05T21:15:38.647701
2016-02-04T13:23:52
2016-02-04T13:23:52
5,760,151
0
2
null
null
null
null
UTF-8
Python
false
false
5,526
py
subscriber.py
#!/usr/bin/python # -*- coding: utf-8 -*- """ :mod:`subscriber` -- Subscribe to a redis channel and gather logging messages. To use this module, you have to define at least a channel name. """ import redis import time from logbook import Logger try: import configparser except ImportError: import ConfigParse...
d7bac6bc0a2d83b404c637c9469ad2ac9cf6001f
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/6gtZYiqMWjSgLHAou_4.py
3afd231b6d60c6078bfc906948584b2ec0c0ec65
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
29
py
6gtZYiqMWjSgLHAou_4.py
format_num = "{:,}".format
fd42638488862169a4952a79f6a986deaf6e5194
4937b9434726bedb6eb6c08eaeeb0ba7c0782339
/main/admin.py
5fa51ce86c418417726210a34c3492a744cecbb1
[]
no_license
SergeyLebidko/LiteInventory
0fc1211e539ef0da1ab00a4dd65f27edd75573c5
cc3fe2f784cf41a279c03583cf1105bafaee821a
refs/heads/master
2023-05-29T03:17:07.178135
2021-06-10T18:53:59
2021-06-10T18:53:59
363,390,357
0
0
null
null
null
null
UTF-8
Python
false
false
1,047
py
admin.py
from django.contrib import admin from .models import ResetPasswordCode, Group, EquipmentCard, EquipmentType, EquipmentFeature @admin.register(ResetPasswordCode) class ResetPasswordCodeAdmin(admin.ModelAdmin): list_display = ['user', 'code', 'uuid'] @admin.register(Group) class GroupAdmin(admin.ModelAdmin): ...
4cb7b90c8955026dddd226326c734b8b9f3033d4
6d1eba3b0afb9e44875b7c8a2f9b86c638e8e293
/bangtansonyeondan_a_invasao.py
cc2d7021b3950a5dec1b7742efcda798156f79fe
[]
no_license
Eosn/BTS-invaders
1ece9bb0420386a13a66b499407fa1f047fdfc5f
57c0f615366e3f80b17dd25dc875ee168030ebf3
refs/heads/master
2021-05-17T05:02:10.406841
2020-11-24T13:36:26
2020-11-24T13:36:26
250,637,749
0
0
null
null
null
null
UTF-8
Python
false
false
11,220
py
bangtansonyeondan_a_invasao.py
#Éllen Neves e Maria Gabriela Tavares #2º ano - Técnico em Informática Integrado ao Ensino Médio import os import sys import pygame from random import randint pygame.init() os.environ['SDL_VIDEO_CENTERED'] = '1' # Imagem centralizada na tela size = width, height = (500, 708) # Tamanho da jan...
51c06d1cb6ae9434ac7efc321847cb6c0448ad87
d5194ae443454c906ac1735862b6df06ad9fa327
/CSV_Parser/src/parser/Parser_base_mod.py
43873ed8cae7132984dcb69b90a1a816e04fba0a
[]
no_license
tomar71/CSV_Parser
995ad47f657968d3314dd0bd3992e9fa6e4290b0
7272e16b13e3aa062dbc579f11c54960e96c001e
refs/heads/master
2021-01-10T02:45:06.958084
2015-11-17T02:30:01
2015-11-17T02:30:01
46,233,901
0
0
null
null
null
null
UTF-8
Python
false
false
951
py
Parser_base_mod.py
''' Created on 2015-11-01 @author: tomar ''' class BaseParserException(Exception): """Base class for BaseParserException related exceptions.""" class BaseParser(object): def __init__(self, fileName = ''): self.reset() self.setFile(fileName) def reset(self): self.setFi...
aaf66ab3f28e82bba91d28029fb3ba1365ef5021
c1cebdb47568bae9c93b6710f84bcb73ead699d2
/Python语言程序设计-Mooc/KochDraw.py
3b225f8f3d9e82f84cc84719b0a6d37cb5957750
[ "MIT" ]
permissive
SatchelZhang/learn-Python
66c8c25929a8b52cad5102ab7ad46804f3641172
d7fea34f23e329bbdeddd2445a9fda92270c64ca
refs/heads/master
2020-03-16T19:34:20.760608
2018-05-15T05:39:51
2018-05-15T05:39:51
132,922,433
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
KochDraw.py
import turtle def koch(size, n): if n == 0: turtle.fd(size) else: for angle in [0, 60, -120, 60]: turtle.left(angle) koch(size / 3, n - 1) def main(): turtle.setup(800, 600) turtle.pu() turtle.goto(-200, 100) turtle.pd() turtle.pencolor('blue') ...
7a6b68a2d74dd0a76b512b4fec8e11cf581449c6
2f737cb4ac4e00d7f850624d5a9fc94e7425155b
/loginapp/models.py
54dc488bbab6ccba2f4d466cc01261dc0b5f721d
[]
no_license
eppel81/testchallenge
bd3a789a37280d8471a04c19eb1b4bdcf319fea7
3dce0ac40e1acbe691659786e765e34eb15a0ede
refs/heads/master
2016-08-11T07:46:18.963408
2015-11-03T14:22:54
2015-11-03T14:22:54
43,557,586
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
models.py
# -*- coding: utf-8 -*- from django.db import models from django.contrib.auth.models import User class UserProfile(models.Model): """ Расширяем модель User для хранения ключа активации """ user = models.OneToOneField(User) activation_key = models.CharField(max_length=50, blank=True) def __str_...
1fa488bce202255363cfd89586195e574034fa60
cbe264842df4eae3569b28ed4aae9489014ed23c
/project_euler/p002.py
5ec06a8665560185fce7540649e865849e146e45
[ "MIT" ]
permissive
zeroam/TIL
31e176c2f4c3e1ef72b1155353690cc2f7160f96
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
refs/heads/master
2021-07-23T01:43:34.135033
2021-07-10T06:47:17
2021-07-10T06:47:17
167,952,375
1
0
null
null
null
null
UTF-8
Python
false
false
416
py
p002.py
# -*- coding: utf-8 -*- """ Created on Fri Dec 21 00:31:41 2018 Problem 2 - Even Fibonacci numbers @author: zeroam """ def fibonacci(limit): first = 1 second = 2 cur = 0 total = 2 while cur < limit: if(cur%2 == 0): total += cur cur = first + second first = second...
ec6d908db86acf789fd4335ff6c34943115dcd6f
e1d114e4b618fe794ad46f73b9faad9e0f9a9942
/art_uk/regex_test_artworks.py
48d04d58f4c66eeb69e7620d429be1b735f9aa19
[]
no_license
MuseRec/models_and_data
75e84466f32293294e388b25769ad524e7b1294f
73cb733b345e91aec0aaa65f751e4f55d0591fdf
refs/heads/main
2023-04-10T06:17:59.683057
2022-09-28T15:47:42
2022-09-28T15:47:42
382,346,568
0
0
null
null
null
null
UTF-8
Python
false
false
1,568
py
regex_test_artworks.py
import pandas as pd import numpy as np import itertools import re import string col_list = ['Artwork Title', 'Filename'] class Metadata: def __init__(self, metadata): self.metadata = metadata self.process_data() def __iter__(self): for _, meta in self.data: yield meta ...
dd0c2803ed2263ad5ef6a29804d4735f9c59deea
f29ccea78276ef36d59efd6d2cf9f3a2914cfaad
/bBasic/b_control_class/Ex05_function.py
d4f869ead59492d5cc2c949cda413f25fa04c9ce
[]
no_license
lovepizza132/python
848a6c3072a0c36eca01d1f9fbb9f6c4dc8e3edc
1ec0abc7dd7eb5ac5b4770f0f9ef87bb6c26b936
refs/heads/master
2022-11-11T05:38:34.355100
2020-06-24T02:26:11
2020-06-24T02:26:11
274,031,727
0
0
null
null
null
null
UTF-8
Python
false
false
2,505
py
Ex05_function.py
""" [ 함수 ] 반복적인 구문을 만들어 함수로 선언하여 간단하게 호출만 하고자 한다 def 함수명(매개변수): 수행할 문장들 """ # (1) 인자도 없고 리턴값도 없는 함수 만들기 # 리턴값이 없으면 None이 리턴 된다. # def func(): # print('확인') # return "OK" # # print(func()) # (2) 리턴값이 여러 개 가능 => 튜플형으로 넘어옴 # def func(arg1, arg2): # return arg1+5, arg2*2 # # pri...
63d6df8ea97d9a808d55a98f51d8e4a944095431
3932e330595c1948318b29bd1a89fdcbc0d6bdfe
/formatData.py
a33f4401f7b9c753862bfd5afdabf6bb1a79640d
[]
no_license
iGEMOhioState2020/webscraper
4509fab8616a64250abeda4eb20a7d54231de1b4
e11f8aa3a7ede02f9db21b98ab5dd1ca86176a96
refs/heads/master
2023-01-03T06:58:15.495393
2020-10-25T04:20:54
2020-10-25T04:20:54
288,326,570
0
0
null
null
null
null
UTF-8
Python
false
false
2,173
py
formatData.py
import pandas as pd import numpy as np def printRow(cell): column = cell[1:-1] x = column.split(',') for each in x: if each != ', ' and each != '[' and each != ']': # print(each) team = x[0] team = team[1:-1] continent = x[1] continent =...
9a7c674b2154d3430f36dfa224740939579c641e
22480c92a6260e1fa11ef4d16a09fd4fde560bd7
/transformation/rescale.py
0949708a3d0e3cc93ee9805b561d3c054c28cab2
[]
no_license
TomButts/Lichen-Project
b6be1b9b30208b218f70daffa34308d78c782ed3
735a3266698dfc44c09c13007e1a31af4b8536d5
refs/heads/master
2021-03-22T04:04:53.541533
2017-06-01T18:07:24
2017-06-01T18:07:24
82,305,614
0
1
null
null
null
null
UTF-8
Python
false
false
416
py
rescale.py
from __future__ import division from skimage.transform import rescale from skimage.io import imread def adjust_size(image_path, max_height=800, max_width=800): image = imread(image_path) height = image.shape[1] width = image.shape[0] if height > max_height or width > max_width: scale = min((...
b44c21be4cede7d638c9cf3a2f39414ce3946de8
ec7c64189e2434bce6ec11c7ab8d847a91e95b6c
/examples/treyhunner/clunky1.py
66f39326bb621c0913436f0446334ae1b16b5ed4
[]
no_license
sbrugman/pathlad
2d4f243c1d831e94ea3c0a28997797f70941de95
97704c488d2c90f268fd7aec8ae179cc84e5cb1e
refs/heads/master
2022-06-03T10:12:43.343233
2020-04-29T23:35:58
2020-04-29T23:35:58
260,015,204
2
0
null
null
null
null
UTF-8
Python
false
false
139
py
clunky1.py
import os.path BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) TEMPLATES_DIR = os.path.join(BASE_DIR, 'templates')
cffc1772c0e82223da684cff3efed5fcecd11bd3
e6c24259468a00ca9cdbf48eba675c042cfe7fc6
/main/views.py
26d79636b343844e4664a5d33b79bdf607ce60f4
[]
no_license
ashokbudha102/expense_tracker
819c00ee379110e17cb26b78fb03f522daf36533
9f234a45228c6677a335d3864da410702c4877ae
refs/heads/master
2023-01-14T14:12:52.554745
2020-11-23T06:04:28
2020-11-23T06:04:28
280,186,619
0
0
null
null
null
null
UTF-8
Python
false
false
2,449
py
views.py
from django.shortcuts import render from .tables import expenseTable from .models import Expense,ExpenseCategory from django.urls import reverse from django.contrib import messages import datetime from django.shortcuts import reverse from .forms import downloadForm, ExpenseForm from django.shortcuts import redirect fro...
4b6c04188ae3815302fd32f3fc49a154c9077d1c
3003f8cdf1f738b390d721ddbbe8cfe5cb7ee20e
/zhiwehu_Python_exercises/Q2.py
c3f1edfa7bd135e133981470bb98bb9eda88383d
[]
no_license
BYN13K/Learning
8a58338725678570d6ec3f4b87d3e293738db676
6c32e28c3988f21fe87a98d4cbcf5335e54d08a8
refs/heads/master
2023-02-14T19:22:49.715543
2021-01-12T12:53:25
2021-01-12T12:53:25
283,504,302
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
Q2.py
""" ### Question 2 Level 1 Question: Write a program which can compute the factorial of a given numbers. The results should be printed in a comma-separated sequence on a single line. Suppose the following input is supplied to the program: 8 Then, the output should be: 40320 Hints: In case of input data being supplied...
69163fd72d0c87a60550df985ce15abc8c731eeb
1965dbba31248626dd0b5141f6d575decbc67b1b
/directoryManager.py
75eb3283417602e916e5fbcadf73c5625be118ec
[]
no_license
amconti13/directoryManager
eabb6b605c6c5675184c850fa3d11289b5964a60
2ab9f9445d1372f346049f9a7ec00b39e6c1e738
refs/heads/master
2021-01-11T04:16:55.590908
2016-10-17T23:44:41
2016-10-17T23:44:41
71,190,525
0
0
null
null
null
null
UTF-8
Python
false
false
3,775
py
directoryManager.py
#Created by Arianna Conti October 2016 #Program takes two directories and merges them together into a new one import sys import os import os.path as osp import shutil import stat def checkValidity() : #Incorrect amount of inputs if len(sys.argv) != 5 : print( "too much or too little input" ) sy...
f4afeb47cc4c74fd9fdc0efc89961bc185b30140
21af9e4e853671d2a7f7ef7a82b9bdd74d1cb48c
/src/actions_gui/webhooklistener.py
33f4d7bcc01e1c020bdaf14c1ab05e4474953295
[ "MIT" ]
permissive
remico/actions
daaa9ac93b54db1f3434664760bc3c1fb1b96922
3d2ca4d06eccd02310b209f0cb1e432152673fd5
refs/heads/main
2023-04-24T05:26:42.327346
2021-04-18T12:49:39
2021-04-18T12:50:07
303,778,526
0
0
null
null
null
null
UTF-8
Python
false
false
5,532
py
webhooklistener.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file is part of "github actions gui" project # # Author: Roman Gladyshev <remicollab@gmail.com> # License: MIT License # # SPDX-License-Identifier: MIT # License text is available in the LICENSE file and online: # http://www.opensource.org/licenses/MIT # # ...
bc8d7819dc926c9d90d10b396e0edac53c961db6
84533be99212cdfe6bfc01599a702fd21b31fe28
/work_part2/circuit.py
59527bed9b5902067d6e4da5d84795dc1c4d4b38
[]
no_license
edopneto/Computer-Graphics-I
3ae8b5a11f1e7d7fecdfebf40226cdd970618bbd
784dc66e5a2f37b9c1c750ae96f84f08b14acb02
refs/heads/master
2021-09-10T20:18:46.697070
2018-04-01T15:19:36
2018-04-01T15:19:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,006
py
circuit.py
from OpenGL.GL import * from work_part1 import obj def draw_circuit(): #rgb_wall_material = [44/255, 137/255, 142/255] rgb_gramado = [50/255, 205/255, 50/255] rgb_asfalto = [76/255,76/255,76/255] gramado_material = obj.Material(rgb_gramado, rgb_gramado, [0.3,0.3,0.3], 10) asfalto_material = obj.Mate...
d520a945e18ef82716c07d4a951ffaa00b270f8c
85bf9a13bf62c1f074894d134c23dd992ae8688c
/companies/amazon/p505/BfsSolution.py
d409e2bb55d7666a03d788ddeb369c81804cd75d
[]
no_license
pololee/oj-leetcode
4cca3d309b2c9931d15d3cec4b07b5d9d22733ef
78a8b27ee108ba93aa7b659665976112f48fc2c2
refs/heads/master
2020-06-21T02:15:26.882273
2020-02-06T04:56:21
2020-02-06T04:56:21
197,320,113
0
0
null
2020-02-06T04:56:23
2019-07-17T05:20:02
Python
UTF-8
Python
false
false
1,475
py
BfsSolution.py
import heapq class Solution: DIRECTIONS = [(1, 0), (0, 1), (-1, 0), (0, -1)] def shortestDistance(self, maze, start, destination): """ :type maze: List[List[int]] :type start: List[int] :type destination: List[int] :rtype: int """ m = len(maze) ...
e73897665d21fdc493c0e2a29f3e874eb0c5aaa6
9fc0d74151969a504af093b97412fb57782b6562
/utils.py
0c14e4807cb5c46e2107f24f420d585f34a4c591
[]
no_license
andreabruera/italo_disco
b980d964a19023c6a83e6f3b96802a05213b1b2e
d947ab7834f7ad287795978a0065fbe50bddf452
refs/heads/main
2023-06-11T23:02:26.139973
2021-07-02T12:49:44
2021-07-02T12:49:44
327,743,613
0
0
null
null
null
null
UTF-8
Python
false
false
5,381
py
utils.py
import collections import logging import math import numpy import os import re from scipy import sparse def prepare_combined_paths(): # Setting up the input paths logging.info('Loading ItWac files') itwac_path = '/import/cogsci/andrea/dataset/corpora/itwac_lemma_reorganized' assert os.path.exists(itw...
476b82241d7acbe54e33f17e88661ccf3231b555
61f2bcf752e8177c5a03d03fb523cbdf459ddff5
/task_3.py
c133f0e0c127459970b9dd5f8fa085ce19500555
[]
no_license
ara062/PyWorkshop
e55e3a736a910479ad26b3681204872771bd8ab6
5803f3aad6d9ed92cea0b7a1a9e2a84458d98e32
refs/heads/master
2021-07-09T21:52:09.292956
2017-10-07T15:57:43
2017-10-07T15:57:43
106,031,568
0
0
null
null
null
null
UTF-8
Python
false
false
1,150
py
task_3.py
print() print("What is your name?") name = input(">") print("Hello %s, welcome to the dungeon!" % (name)) print("Do you go through door 1 od door 2?") def wrong_input(): print("You are not so good with nnumbers, are you?") def dead(death_message): print("You are dead.", death_message) door = input(">") if door ...
e4eafaca0e0b3976013eac9e7f43a4662c7704b2
637ee560e3a98fea6615d263d7337200fe6554ab
/proyectofinal.py
010f7b44668dced87b9668033a727ec1c585889c
[]
no_license
hideonspotify/proyectofundamentos
837047a6e18e0800d0bdbc3b3cf2ed2dfbc97e02
e59de863717f659f44c6e37a30fc9507c7b3a44d
refs/heads/main
2023-06-20T03:39:59.973399
2021-07-14T03:32:22
2021-07-14T03:32:22
385,802,654
0
0
null
null
null
null
UTF-8
Python
false
false
10,794
py
proyectofinal.py
import matplotlib.pyplot as plt def char_bar(tit, abajo, arriba, color): plt.bar(abajo, arriba, color=color) plt.title(tit) plt.show() ganancias03 = [1000.20, 1500.90, 1300.30, 1220.10, 1260.35, 1120.20, 1800.25, 2000.30, 1400.20, 1330.10, 1500.20, 1700.40] tiempo03 = ["Enero", "Febrero", "mar...
b8bf0383e8e9ea62731ae20170fb49f27632e2ae
f574617da6b338897196f9c8d75121fe65e81faf
/src/ai_random.py
eaff6c88824ff5b6c2fa40f59275021f0ee41994
[]
no_license
makit0sh/python_reversi
164fe9335b274561e5d7781f7d37e48a67df68d3
5c0b8824a34f68a6e0f2086672bd2ff6a9bc1061
refs/heads/master
2021-01-22T14:56:35.431913
2018-03-21T02:21:58
2018-03-21T02:21:58
100,719,629
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
ai_random.py
# -*- coding: utf-8 -*- """reversiモジュール用のプレーヤープログラム。 ランダムに次の手を選ぶAI。""" import reversi import random def putStone(board): """ランダムに石を置く Args: board (reversi.board): 盤面 Returns: tuple/None: 置いた場所もしくはパスの時はNone """ puttable_positions = board.puttablePositions() if len(puttable_po...
cb65d3b25a21308eb67aab0f7a9003e02b8a4689
59859c5b49abd2dfc8bc2419bc545e27793576ce
/Python_multiThread_socket/DteBridgeClient.py
f09370e999e60fd28d73e5f9a075a68af132d36b
[]
no_license
beyondlte/CLRS_Algorithms
f1ebb75f8262e173856facc7225ab51109c6019e
3c356f67f9696ff82988f89a87c8d935bdee8007
refs/heads/master
2021-01-17T11:35:10.448492
2016-05-27T01:04:25
2016-05-27T01:04:25
45,503,161
0
0
null
null
null
null
UTF-8
Python
false
false
2,459
py
DteBridgeClient.py
import os import sys import json import time import socket import uuid import logging class DteBridgeClient: def __init__(self, ip_addr=None, tcp_port=9999, *args, **kwargs): if ip_addr is None: hostname = socket.gethostname() addrinfo = socket.getaddrinfo(hostname, None, socket.AF_INET) ip_addr = addrinfo...
66404ca30c782c3c4074a4c1427d9c781e15f699
c33bae5e305b07e2e4c484ed0cd1b13fd1ee0fcd
/dict_&_range.py
5c924ae4204385cb3e84fbdc95c63694c3abc0cd
[]
no_license
sudhirpundir1/pyhon-training
0a8242ac8bb0d3311b28584b01877bb4ab943dac
c3383c5956fbd4832bedb54334a43b5e6a1cc3fd
refs/heads/master
2020-06-10T06:58:05.783248
2019-07-09T02:10:41
2019-07-09T02:10:41
193,613,073
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
dict_&_range.py
#!/usr/bin/env python # coding: utf-8 # In[1]: print(range(10)) # In[2]: list(range(10)) # In[3]: list(range(2,10,2)) # In[7]: type(range(10)) # In[8]: d={'sudhir':'vivo','monu':'samsung','vikash':'iphone'} d.keys() # In[10]: d.values() # In[11]: d.get('monu') # In[ ]:
cd3bfa74c5f4fc481b2c7923d0ebd378729779a3
b78ed085d7f4860893715d27d26df2c1a7c760e3
/练习/访问限制.py
59ddfc8be2d4ac041aa35ce87a809df94706e737
[]
no_license
maxzjs/python_learning
e5c1a1916c8dbeb05c30b967bd36c33f0b4119e9
90c9c1cfaae2e7855ae350e5e36c1264a5b69006
refs/heads/master
2023-04-15T07:31:07.852946
2023-04-12T02:47:07
2023-04-12T02:47:07
150,445,238
0
0
null
null
null
null
UTF-8
Python
false
false
1,877
py
访问限制.py
# 2018-10-14 # 面向对象编程--访问限制 # 在Class内部,可以有属性和方法,而外部代码可以通过直接调用实例变量的方法来操作数据,这样,就隐藏了内部的复杂逻辑。 # 在python(差不多的编程语言中),把变量写成私有变量,只有内部可以访问,外部不能访问。 import os class students(object): def __init__(self,name,score): self.__name = name self.__score = score # 这样已经从外部无法访问实例变量了 # 这样就确保了外部代码不能随意修改对象内部的状态,这样通过访问限制的保护,代码更加健壮。 # 如果...