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
67bc059432e22e34ecaa692a692f61995fbccc8c
841cab4a23a76407c02a258e7a71a25696fa9759
/nn/bon_upsampling2d.py
9ebfc76eeef255922205bb78f7553dd389bd2688
[ "MIT" ]
permissive
korneelvdbroek/keras_layers
f94490e390abeb7146b2e9a8106d8dc94e534e2a
79b343a8e038218295491c80731ee3fe16958e9f
refs/heads/master
2022-06-09T07:15:56.795667
2020-05-10T21:53:39
2020-05-10T21:53:39
262,590,851
0
0
null
null
null
null
UTF-8
Python
false
false
1,840
py
bon_upsampling2d.py
# !/usr/bin/env python """Definition of a transposed 2D quadratic convolution using a bed-of-nails up-sampling""" import tensorflow as tf def bon_upsampling2d(inputs, strides, kernel_shape): """ 2D bed-of-nails up-sampling. Combining this up-sampling with a conv2d layer is equivalent to conv2d_transpose Outpu...
379a55e565755de7c842fbfa4449d96d22a92dcd
3d7d6cb006639bc3704784f757ccf1f30cdc1d9f
/app/main/model/mixin.py
ea45ace6214f45daec2dde5e6c4b8454dbef8f10
[]
no_license
gotoken-io/gt-backend
e6138f94d3848ca7efdda514b4bfd07c8c85d795
5f2b02367be370715536c10259547bb04367c878
refs/heads/master
2022-12-10T17:49:38.749770
2020-05-15T03:35:55
2020-05-15T03:35:55
226,621,664
0
1
null
2022-12-08T03:26:24
2019-12-08T05:53:10
Python
UTF-8
Python
false
false
635
py
mixin.py
from app.main.exts import db from sqlalchemy.ext.declarative import declared_attr from datetime import datetime class BaseModelMixin(object): """ base model mixin """ id = db.Column(db.Integer, primary_key=True, autoincrement=True) is_delete = db.Column(db.Boolean, nullable=False, default=False) ...
46939e32b2c9deda33c6b467e77bb54eb756ebd7
73eb9bcfad3f870d14380139014934e28580ed34
/summonerIDjaccard.py
22255819a699e0fa11c137e99a717a10a44e4f37
[]
no_license
n0ab/Mining-Large-LoL-Datasets-BarnesBradshawTreu
3c9753b980915e0922a3195a4ca8569174aa2e2b
5cd301abd58b0cd946043a73deae52edd3fe7f70
refs/heads/main
2023-06-24T10:25:25.553336
2021-07-28T18:00:49
2021-07-28T18:00:49
390,445,694
0
0
null
null
null
null
UTF-8
Python
false
false
3,786
py
summonerIDjaccard.py
# -*- coding: utf-8 -*- """ Created on Tue Jul 14 12:24:01 2020 @author: Noah """ global inFile inFile = open('C:/Users/Noah/champdataverbose.txt', 'r') #gets data for the user champion from the champion list def retrieve_userChamp_data(_USERCHAMP, inFile): with inFile as currFile: lin...
c270f9e1938e37b3bd8ae8c4b55d1b3af6da2fcb
37c3f2e8baee1deba879d95b96c54eb6cf975641
/pb_aplpy_plots/make_nucleus_fig.py
343e3806507185207e0a1dc3d5347fa2771474f1
[]
no_license
PBarmby/pahs_in_m31
d9f1a73c06bd9fa3426bd44bc936266272f8df5f
d064aa2b7aacd74d9da3f546812e9b4bc3ff9a5b
refs/heads/master
2020-12-30T22:56:33.835735
2015-09-07T17:32:30
2015-09-07T17:32:30
38,455,080
0
0
null
null
null
null
UTF-8
Python
false
false
2,848
py
make_nucleus_fig.py
import aplpy import matplotlib.pyplot as plt # use: # fig10a = make_nucleus_fig.main('m31nuc_irs11.3.fits',region_file='extract_apertures.reg') # fig10b = make_nucleus_fig.main('m31nuc_irs10.fits',region_file='nuclear_region.reg',contour_img='m31_1_bgsub_nuc.fits') # OLD # fig10b = make_nucleus_fig.main('m31nuc_part_s...
ff7d4b53f68c8d9359c0066d1498b2636dcd86be
edb30d12decbc8db9aa251a571ca1d9e6b397a38
/Session02/homework/turtle_02.py
4e67bf1c40f1f06e1a62c062f7bd888d5a1cd6aa
[]
no_license
tommyle128/leminhtu-fundamentals-c4e20
cf639329a5123af64fce4747fb8d440c1adc47eb
96f9684e3139cb6c33d8a6fcb6b1c886ab3cc818
refs/heads/master
2020-03-23T20:56:55.909459
2018-08-03T15:07:46
2018-08-03T15:07:46
142,072,812
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
turtle_02.py
from turtle import * speed (100) shape("classic") for i in range (3, 7): goc = 360/i if i % 2 == 1: color("blue") for k in range(i): forward(100) left(goc) else: color("red") for l in range(i): forward(100) ...
8a3b6f37d89d220f97b584aed45bfc537e7c593a
90c23cb174e2c31c750ed9a110f201e4805bdb87
/routes.py
3adc7fc33f95233b4de618a6d4eba79f8b45dc7c
[]
no_license
nikifor511/f_resolver
a947921af283cacf47de609b9731835bb5cd5be4
87b7a0596bc6fbc169dc92ee10cead24faa1a9c8
refs/heads/master
2020-05-26T13:32:51.668254
2019-06-06T14:31:14
2019-06-06T14:31:14
188,247,363
0
0
null
null
null
null
UTF-8
Python
false
false
3,770
py
routes.py
# -*- coding: utf-8 -*- from flask import render_template, flash, redirect, request, url_for from __init__ import fl_app from forms import LoginForm, RegistrationForm, SendForm from db_adaptor import DB import globals import os import datetime @fl_app.route('/') @fl_app.route('/index') def index(): user = {'userna...
964e4d256380d1bc6534ea92592f1ac071e8a30c
cfd9337837cafe7fc69f9fb4e31d6bff99555dd3
/book/DemoOne.py
4e34e139eed6c7bf025465f662ac5cdd1ff4b2aa
[]
no_license
songqinghu/ai_demo
93aca2986b1a3e12e4554abc45b8fdbb31bf634d
d4958f30f9b6e9b5498fb787f0b21d28e5ed3aac
refs/heads/master
2023-04-07T00:14:41.187952
2021-04-10T13:50:40
2021-04-10T13:50:40
329,882,423
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
DemoOne.py
from tensorflow.keras.layers import Dense from tensorflow.keras.models import Sequential model = Sequential() model.add(Dense(units=0, activation='relu', input_dim=1)) model.add(Dense(units=1, activation='sigmoid')) model.compile(loss='mean_squared_error', optimizer='sgd') x = [1, 2, 3, 10, 20, -2, -10, -100, -5, -20...
a1ed20666ade3fd6c1b937ead45662ed9a8de7b2
28ced1c76f8432ebbe0c57229045b4978bcea507
/lampmud/editor/areas.py
2e11dea476f95fae146b17e2ac4ccceb16d7604f
[ "MIT" ]
permissive
genzgd/Lampost-Mud
093988e69fb59c25a3bfa6ab1c8a139bdef6771f
8ce3ce8c6632600e2197f385d96a8987e15070b0
refs/heads/master
2020-04-15T23:52:35.750135
2018-02-18T23:42:13
2018-02-18T23:42:13
3,561,344
13
5
null
2017-05-13T20:03:11
2012-02-27T15:02:22
JavaScript
UTF-8
Python
false
false
5,870
py
areas.py
from lampost.di.config import ConfigVal from lampost.di.resource import Injected, module_inject from lampost.db.registry import get_dbo_class from lampost.db.exceptions import DataError from lampost.editor.editor import Editor, ChildrenEditor from lampmud.env.movement import Direction log = Injected('log') db = Injec...
4639386e73f8c9c864fd5caf11ab45708dec600d
a7b2747d88d5a0725e190a0afef211263d14e0b2
/sndtrck/interact.py
850eaa6d532c0d421f5810f8782c4fe81653a604
[]
no_license
gesellkammer/sndtrck
7133afbe2703e24e213f3905c86db2003ca02e64
01fb410a1a95213bf581526f0e3039cffb85cb65
refs/heads/master
2020-12-24T13:28:35.471102
2019-09-15T14:03:08
2019-09-15T14:03:08
94,082,717
1
0
null
null
null
null
UTF-8
Python
false
false
29,757
py
interact.py
import sys import operator as _op from functools import lru_cache import logging import pyqtgraph as pg from pyqtgraph import GraphicsObject, Point from pyqtgraph.Qt import QtGui, QtCore import pyqtgraph.functions as fn from emlib.pitchtools import db2amp, f2n from . import plotpyqtgraph as ppg from .plotpyqtgraph ...
93a98407d9a9584b9d0bd63809eed7279b1b6fbf
8b55664086be41b0f54d8c58458ee1686289d9b5
/Small Python Exercises/uso del join.py
e35e9e4bca62243f95ddd2954ec27ccf60bea568
[]
no_license
exequielmoneva/Small-Python-Exercises
ceb123aa1daff9ba7399f1711b68fe7d778480cf
74bbed1ac3d0191eefaa124170b60a596e7318e4
refs/heads/master
2020-06-20T17:27:39.330006
2019-08-14T13:21:47
2019-08-14T13:21:47
197,192,168
0
0
null
null
null
null
UTF-8
Python
false
false
742
py
uso del join.py
"""Escribir una función para eliminar una subcadena de una cadena de caracteres, a partir de una posición y cantidad de caracteres dadas, devolviendo la cadena resultante. Escribir también un programa para verificar el comportamiento de la misma. Escribir una función para cada uno de los siguientes casos: a. Utilizando...
71b30aff7b499015ceb9e2f3187702dfb73c581d
d19e4c1b1fa39e77e8fc0d58e0688f71d764e710
/python/controlGUI.py
fad9c20dbcbffb5a3b5e790786da6bfab1ace81e
[]
no_license
trevhoot/motorlab
60342243f4d8a1965de16f478f99f93399ee22f6
751215ad79229adf2edfe428f95e4f842bfb9166
refs/heads/master
2020-05-20T08:28:30.974262
2013-10-27T22:39:49
2013-10-27T22:39:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,770
py
controlGUI.py
from Tkinter import * import device class GUI(): def __init__(self): self.dev = device.Device() self.root = Tk() self.speed = DoubleVar() self.k = DoubleVar() self.B = DoubleVar() self.invert = 0 scale1 = Scale(self.root, variable = self.speed , from_ = 0, to = 65535, orient = HORIZONTAL, label = "s...
e19090d8a980410187237246d5899b6d89af1122
de7dd971071909bea201984342904e10d418a08e
/main.py
11acc8b18e2f0a7ba744cd8675cf2b2b6fe9923e
[]
no_license
EricGz/CFChurn
5ba53d20a7345c493ac2057446cbf5fbbe139652
ef593eb3bf060b3ba4b2d324a52f8972ff2c583f
refs/heads/master
2023-03-07T04:21:31.397602
2021-02-09T01:00:08
2021-02-09T01:00:08
337,249,474
0
0
null
null
null
null
UTF-8
Python
false
false
13,829
py
main.py
# -*- coding: utf-8 -*- """ @author: zgz """ import time import setproctitle import argparse import random import numpy as np import torch import torch.nn.functional as F from sklearn.metrics import roc_auc_score from utils import create_dataset, split_train_val_test, make_batch, args_printer fro...
edebc6b53063caaee9d170a7efc5652148f77424
3c2366008d0adc8e7f34b3f90716b560b68381ba
/django-localstoragesync/urls.py
d2e0883b89ddd725b01480ebb31b6b8a49effda0
[ "MIT" ]
permissive
jashp/localStorageSync
49ad06fe77913d8fa8e2ad95a8cabdad262807e1
be4a7b9185e9ef4690a2c09ddab11ff67c9a819e
refs/heads/master
2016-09-05T21:49:01.854360
2013-09-26T14:57:45
2013-09-26T14:57:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
urls.py
from django.conf.urls import patterns, url from sync import views urlpatterns = patterns('sync.views', url(r'^sync$', "sync"), )
acf00b4668d53f9062d85a15783efd75878667ae
56d8230c0dbdf837b487285c71a3495db30d48e4
/img_proc.py
d807f84f347731784e1577d26c3335a69c9bc446
[]
no_license
NenadPantelic/Rock-paper-scissors-image-gesture-recognition
3829199818c988c1f8814eb4b73875f0430b5db3
9fc219c7750e839e2ddbce1e0260c861eb4427ee
refs/heads/master
2022-12-24T20:38:36.648485
2020-09-25T11:04:52
2020-09-25T11:04:52
298,398,745
1
0
null
null
null
null
UTF-8
Python
false
false
9,335
py
img_proc.py
import cv2 import numpy as np from exceptions import InvalidArgumentTypeOrValueError USUAL_COLORSPACES_MAP = {"grayscale": cv2.COLOR_BGR2GRAY, "hsv": cv2.COLOR_BGR2HSV} THRESHOLD_TYPES = (cv2.THRESH_BINARY, cv2.THRESH_BINARY_INV, cv2.THRESH_TRUNC, cv2.THRESH_TOZERO, cv2.THRESH_TOZERO_INV, cv2.THRES...
d96eae6f3ab74b7c5c17bb3aa73c4bdce3a38a6e
77cd5673d149968e271549e6c6715aa7e67ce290
/run_parse_gpu.py
66c6ce7f8c10767bdfb34701db1861603a400c36
[]
no_license
nanw0321/HBT
3fa5aff4696bd9335d348f43e4f4b5a9bd3a7f49
e9fd3c790cbae10c147ba914b11680531029d2ca
refs/heads/master
2021-11-25T06:36:26.540845
2021-11-18T22:04:55
2021-11-18T22:04:55
208,663,106
0
0
null
null
null
null
UTF-8
Python
false
false
4,954
py
run_parse_gpu.py
from Functions_gpu import * import time, argparse parser = argparse.ArgumentParser() parser.add_argument("-j", type = int, help = 'job number') parser.add_argument("-t", type = float, help = 'pulse duration (fs)') parser.add_argument("-N", type = int, help = '# of atoms') parser.add_argument("-T", type = str, help = '...
d2eed742700ecbac74bd6befe4a03eedb62a0626
c6357925616c328609c2030fcd30983ce5c71a4b
/cuckoo2.0/leader/scripts/htmlconvert.py
ad6529c7ec5f36250ea661a205daa7bf4e6ed1cb
[]
no_license
mohit2016/MalwareDetectionEngine
3e4e261df5d382ffa84fd167e38a6b6db32e9d4c
cc074590e6bffa3ef9e5fb59309834798ba8d97c
refs/heads/master
2020-12-07T15:45:14.923854
2020-01-15T18:36:35
2020-01-15T18:36:35
232,744,260
2
2
null
null
null
null
UTF-8
Python
false
false
2,087
py
htmlconvert.py
#!/usr/bin/env python import json import argparse import os import sys # Imports are relative. Make sure that this file is in ./leader/scripts, or modify this line to make # imports relative to the cuckoo root directory sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), "../../")) from modules.r...
a01b1613c2bdeca99c9143f723d3b42667aa5732
f91041a537139023379db4443b8ab5d739ace5b9
/src/lib/up_sensors.py
06e17eba7aa9b8a002ee354752b367d6dfe34b46
[ "MIT" ]
permissive
staadecker/Robotics-2019
dbcaf1e65f438efbf929cee4dd35557cbd88f482
664615d7e5c8be435ebfa8c57631eb4ffb2233c8
refs/heads/master
2020-04-20T03:01:06.863681
2019-06-01T17:25:50
2019-06-01T17:25:50
168,586,418
1
0
null
null
null
null
UTF-8
Python
false
false
2,110
py
up_sensors.py
import ev3dev2.sensor.lego as lego_sensor BLACK = lego_sensor.ColorSensor.COLOR_BLACK WHITE = lego_sensor.ColorSensor.COLOR_WHITE GREEN = lego_sensor.ColorSensor.COLOR_GREEN BLUE = lego_sensor.ColorSensor.COLOR_BLUE RED = lego_sensor.ColorSensor.COLOR_RED YELLOW = lego_sensor.ColorSensor.COLOR_YELLOW NO_COLOR = lego_s...
58a0ebe56cc6a2f91e95d67c48d14c1acb4b5d0f
fee5d1edb086e97fc21519dc48b48d6233fe34f5
/ImageRetrieval/Lab6Images.py
224a01a401869a5419b4cc73b226136d20f5c895
[]
no_license
manixq/EZI
d2ac42a008758e67b657581d7b054ed72f6cd723
56ee6d2abdc7808d94b215f4a1f7179c645a9e60
refs/heads/master
2020-04-04T16:31:15.825844
2019-01-27T11:26:13
2019-01-27T11:26:13
156,081,322
0
0
null
null
null
null
UTF-8
Python
false
false
24,844
py
Lab6Images.py
#!/usr/bin/env python # coding: utf-8 # # Lab 7 Images - Exercises # These are some imports. You can skip this part. # In[1]: from IPython import get_ipython import math from IPython.display import display, HTML from skimage import data, io, filters, exposure from skimage import util from skimage.color import rgb2...
0ea54b94ea98a21b98106a8ab7af2920b9a4e0e7
5e3054a2b738c366f5866935310a8d2de6f57059
/tests/test_cli.py
81083bcd755d13cde275a402d1176eb017692976
[ "MIT" ]
permissive
ahojukka5/enkeksi
538ae83babc63876084a8cc0184042834c1568e4
505c16d1c5b516653d57108496801b14d1cade51
refs/heads/master
2022-10-08T15:36:37.324678
2020-05-27T18:18:16
2020-05-27T18:18:16
265,494,354
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
test_cli.py
import textwrap import io import os from enkeksi.cli import main def test_main(tmpdir): fh = tmpdir.join("hello.md") content = textwrap.dedent(""" # Hello, world! ```sql SELECT 1+1; ``` """).strip() fh.write(content) filename = os.path.join(fh.dirname, fh.basename) output = i...
e6e18d4e15029678b5f06fa77b03c79123a2db48
236dcb2d8ec66ee214df2dbfb18f1da5e54dd22b
/beauty.py
44b4e0090e6d0ec6cc64cdf4b863d83092085b06
[]
no_license
ZiQiangWang/Mzitu
3ce6ae0f91c05fe7444729e4c2916b9c2f10996b
4e8572869bbd72f8c2259af67f77bf86f4fc27cb
refs/heads/master
2020-07-02T22:16:24.045433
2016-11-20T13:53:36
2016-11-20T13:53:36
74,276,703
2
0
null
null
null
null
UTF-8
Python
false
false
4,397
py
beauty.py
# -*- coding: utf-8 -*- # @Date : 2016-11-19 15:12:36 # @Author : wangziqiang from bs4 import BeautifulSoup import os import sys import re import time from pymongo import MongoClient from wrequest import wrequest_get from gevent import monkey; monkey.patch_all() import gevent import datetime reload(sys) sys.setdef...
12a984a4dacd9ff9586ed4982f764bedd13ffa53
a0d12ed670a0065a38a38044ee9fa75cfc01b48d
/python/chapter_2/08_loop_detect.py
5c4c980ab0201c7e3285d4a8f5fcace8268ef7bd
[]
no_license
Vostbur/cracking-the-coding-interview-6th
6a1d15c3d2b510831c1d6c9b57f0cd5cfa932e99
63b159adb2ce65ea58e2122f53b10f64faddad61
refs/heads/main
2023-01-24T00:15:11.923140
2020-11-15T11:47:22
2020-11-15T11:47:22
300,819,904
0
0
null
null
null
null
UTF-8
Python
false
false
1,304
py
08_loop_detect.py
# Для кольцевого связного списка реализуйте алгоритм, возвращающий начальный # узел петли. Определение: # Кольцевой связный список — это связный список, в котором указатель следующего # узла ссылается на более ранний узел, образуя петлю. # Пример: # Ввод: A->B->C->D->E->C (предыдущий узел C) # Вывод: C import unittest ...
5ef986cbbec4492ac4b294b9c504743414d7e7cf
e5fd7f97846ddf0d2eb9ec3e6d7646c1ec673d76
/pygobject/hello_world.py
b2b4299b4a27c116dd6591ba983a928726a50c66
[]
no_license
lutfimuhammad2505/tutorial-pygtk
8cc3e7a15d8efe35042d835aa186e9dbdb5e0ab8
e0059e03467e4499e0491cb9e9ee404e44f9893b
refs/heads/master
2022-12-30T17:48:37.411488
2020-10-20T14:21:54
2020-10-20T14:21:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
hello_world.py
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk window = Gtk.Window() window.set_title("Hello World App") window.set_size_request(640, 360) window.connect('destroy', Gtk.main_quit) window.show_all() Gtk.main()
f214e0ba8cff90a3bd0124801bb0e61650825e57
3762d11a23cb99bace3d5aed9c03ee55eeff5dc9
/src/junk/star_in_and_out.py
fd2e3fc830176818d82d76d46a75fd857ea90817
[]
no_license
Govardhanak/NMRPlay
a7aa56f98ac8fb9a516d0edf21180a1d9483c3bc
4505b785126f48444ec7f4765fdd965ddf7cc79b
refs/heads/master
2021-05-28T02:54:55.025191
2014-02-19T14:14:44
2014-02-19T14:14:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
star_in_and_out.py
def xez_to_star(paths, star): q = xeasy_in('mattsnmrproject', paths) star_out(q, star) def star_to_xez(paths, star): q = star_in(star) xeasy_out(q, paths) # some more examples def star_filter_hsqc_to_xez(nhsqc, star, tag): q = star_in(star) new_nhsqc = ut.filterSpecPeaks(ut.peakHasTag(tag)...
ce0bed5766931325b709eb381ed21b484fdbd165
2f7759e2e0d822beb84b743673029739491039f0
/yolov3_samiksha/train.py
5f9a7889fbd47ae29d01d397e9da97f1c6f7a585
[]
no_license
samiksha-singh/my_pytorch_exercises
43a94c929e2d2bdf40d8678cb24673261a375150
50fffdcc56cc3e995cf1196a52e0f390f63c76ac
refs/heads/main
2023-06-04T13:41:54.168341
2021-06-28T13:08:17
2021-06-28T13:08:17
349,712,767
0
0
null
null
null
null
UTF-8
Python
false
false
6,453
py
train.py
import argparse import os from pathlib import Path import torch import wandb from torch.utils.data import DataLoader from tqdm import tqdm from models import Darknet from utils import utils # from dataset_Pascal import PascalVOC, collate_fn from dataset_Nippon import NipponDataset, collate_fn from transforms import g...
66600dfc5e77418eb593cb91bda6135a5bb8305d
5d22d9b2cb5cad7970c1055aeef55d2e2a5acb8e
/leetcode/hard/Binary_Tree_Maximum_Path_Sum.py
ebbf44290cb1566f39a40d48d228e019b9abfc2a
[ "MIT" ]
permissive
shhuan/algorithms
36d70f1ab23dab881bf1a15573fbca7b2a3f4235
2830c7e2ada8dfd3dcdda7c06846116d4f944a27
refs/heads/master
2021-05-07T14:21:15.362588
2017-11-07T08:20:16
2017-11-07T08:20:16
109,799,698
0
1
null
null
null
null
UTF-8
Python
false
false
2,464
py
Binary_Tree_Maximum_Path_Sum.py
# -*- coding: utf-8 -*- """ created by huash at 2015-05-01 19:42 Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the below binary tree, 1 / \ 2 3 Return 6. """ __author__ = 'huash' import sys import os # Definition for a ...
a8dff51f3da98a883d94a68e2f364e5d46c01c6f
57645514681d4dcb01417f7a012723bedc10ad70
/holonet_django/settings.py
77561a417b38b1136abbe9ae3f3dc0f30cead88b
[ "MIT" ]
permissive
webkom/django-holonet
f56a28a6ad696a25ec453533270df1a2d08de0b4
2bc6436e5c80f13861dc094ce6aeafadbf72d37a
refs/heads/master
2020-12-24T16:35:06.621987
2016-03-08T09:07:18
2016-03-08T09:10:05
26,784,245
3
0
null
2015-12-14T17:10:20
2014-11-18T00:25:56
Python
UTF-8
Python
false
false
1,506
py
settings.py
# -*- coding: utf8 -*- import sys from django.conf import settings from .exceptions import HolonetConfigurationError class Settings(object): CONFIGS = { 'TESTING': 'test' in sys.argv, 'API_CLIENT_ID': None, 'API_CLIENT_SECRET': None, 'API_URL': None, 'DEFAULT_DOMAINS':...
bac4eeb286add024c61da450c9fd45b9943ee060
9bb9ac02d88a3b0b61509343d5fdb05f71a39c41
/demo/app/models.py
20ff53f100871ee06956c2f650906aff967d37ce
[]
no_license
SothanaV/SciusDjango
911e6f7dfd9aaa8552e6969472610b39d6f5d3bc
0b5f99528715cfea1c71262deb2f959c53915e26
refs/heads/master
2021-01-18T12:52:06.510478
2017-08-15T12:44:55
2017-08-15T12:44:55
100,367,104
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
models.py
from __future__ import unicode_literals from django.db import models class Note(models.Model): created=models.DateTimeField(auto_now_add=True) name=models.CharField(max_length=100) email=models.EmailField() message=models.TextField() def __unicode__(self): return u"%s %s"%(self.name, self.email)
6dc25212dd26fb06bfe4da7eb8851179f26b4813
3e63d5335cb40ed7939db800bb365f78a793f039
/sample_project/blazing_potato/__init__.py
9af13d7bf28bb2a3958255dc929a3845f0143fcb
[]
no_license
ceacar/web_scraper
d779582147ecec69eaf1551618fef0cbb5a08073
b1053643aa4a4f40461ae71848267919c1f35464
refs/heads/master
2020-04-24T12:53:37.999976
2020-03-31T03:15:35
2020-03-31T03:15:35
171,969,898
0
0
null
2019-10-21T18:19:45
2019-02-22T01:02:03
Python
UTF-8
Python
false
false
1,667
py
__init__.py
import os from flask import Flask import cache_api import status import os import redis import errors import scrapper_api def test_redis_conn(redis_url, redis_port): rs = redis.StrictRedis(host = redis_url, port = redis_port) try: rs.ping() except ConnectionError as e: logger.error("Redis i...
2f14e9b6c59304dfa4a043dc5ff0e84f67f2dcf7
0d178d54334ddb7d669d212b11dd23ef5607cf8e
/LeetCode/Trees/Serialize and Deserialize BST.py
2bd76f988373cc5e9b7eb37f1f2f2b9c7d0e130f
[]
no_license
mrunalhirve12/Python_CTCI-practise
2851d2c61fd59c76d047bd63bd591849c0781dda
f41348fd7da3b7af9f9b2df7c01457c7bed8ce0c
refs/heads/master
2020-04-17T11:09:29.213922
2019-09-28T02:36:24
2019-09-28T02:36:24
166,529,867
3
0
null
null
null
null
UTF-8
Python
false
false
2,164
py
Serialize and Deserialize BST.py
""" Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer, or transmitted across a network connection link to be reconstructed later in the same or another computer environment. Design an algorithm to serialize and deserialize ...
dd77a64aec4633752db1589084e092ed0b4d71ef
10ef60e069852ad8298707f5c49f61cb918a2b10
/price-of-a-chair/src/app.py
810dbfa645860a53d4028c1baba58f894fc5dbea
[]
no_license
BrayoKane/python-mongo
7b5412a6741ae09a38bb948a2ee1b650e4f2ec71
5f46e93df3979f707292151bc0e274340f3e54d0
refs/heads/master
2022-11-08T01:16:10.802390
2017-09-22T13:08:02
2017-09-22T13:08:02
104,475,806
0
1
null
2022-10-10T12:52:14
2017-09-22T13:10:47
Python
UTF-8
Python
false
false
811
py
app.py
import requests from bs4 import BeautifulSoup #screen-scraping library #request = requests.get("http://www.google.com") request = requests.get("https://www.johnlewis.com/house-by-john-lewis-curve-dining-chair-white/p231441579") content = request.content #getting content of the page soup = BeautifulSoup(content, "html...
20dcfdaa52135f36fde16078de609cdf48b5cd37
a1140b4752c8c656d02866c3498c10cb66a535ef
/serv/content.py
04c75cd6c1fb33c92cc03c81ed98769a9ab07fe9
[]
no_license
Grootguo/AI_toy_APP_api
4fa02f0ef3863d3c06fc456acd26fdc449f7e15a
c47aa53ba19c8073461688cf7b746f32efddd9e9
refs/heads/master
2023-04-29T03:54:56.922723
2020-03-09T05:42:15
2020-03-09T05:42:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
524
py
content.py
# -*- coding: utf-8 -*- # @File : content.py # @Author: ggy # @Date : 2019/9/28 # @Software: PyCharm from flask import Blueprint, jsonify from setting import MONGO_DB, RET content = Blueprint("content", __name__) @content.route("/content_list", methods=["POST"]) def content_list(): res = list(MONGO_DB.content....
3256e6c3a63992aac3ea611a0cdba934cf8c3c22
3c99f40e8ad9ec2e2bbed636e10f09f7b389a66a
/Cwiczenia 4/cw12.py
a7f9baedc0eb113f593ccd655356ca302ff8a684
[]
no_license
lpawlak1/WDI
4b7e68f5c49d158e8781dc725e1baaa2ec0f909e
07a024da1e20ceacaa833b3ec2658e4fdd3e7c2c
refs/heads/master
2023-04-06T11:52:28.405878
2021-04-16T17:24:10
2021-04-16T17:24:10
358,645,264
1
0
null
null
null
null
UTF-8
Python
false
false
2,870
py
cw12.py
# adanie 12. Dana jest tablica T[N][N][N]. Proszę napisać funkcję, do której # przekazujemy tablicę wypełnioną liczbami większymi od zera. Funkcja powinna # zwracać wartość True, jeżeli na wszystkich poziomach # tablicy liczba elementów sąsiadujących (w obrębia poziomu) z co najmniej # 6 liczbami złożonymi jest je...
a53ef54bbd9b1862520cf09269479566bf3f9327
bf3aa33ed0b19f6c96ca6ae63dbc8f9e8df774ca
/CNN/featuremaps.py
43e82b47b23fb4a719657af7f83a22b4d8482f68
[]
no_license
Sxq2004123/ML_Code_Practice
1af352454b93bd0ce05f0f0998c9c45d47824bf2
f810be7f0fdbe7b5d6f8c33b2effadbaf1cabae0
refs/heads/master
2021-01-16T19:58:23.853563
2015-11-03T14:47:49
2015-11-03T14:47:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,574
py
featuremaps.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # featuremaps.py - 定义二维的特征图 import numpy as np from utils import * class layerFM: ''' n, width, height 网络的输出表示:n个特征图,每个特征图大小为:width,height:即 残差表示:n * width * height ''' def __init__(self, n, width, height, isInput = False, isOu...
66d831a3b4c7382904460ebac4d2393d5ec4ffc8
0a2a79b652cf31b5ff5aec3dea3abf9a8ca6b0c7
/TopApi/TradeShippingaddressUpdate.py
ee380ff1fdd4b9d84b9c0c043cf83b7688b32c87
[]
no_license
pqok/my-taobao-tools
688f1782d5a86e80fec120ab324ebf8e8a074c60
9dad2830e514156008b5f3de201e8be36a31ef90
refs/heads/master
2021-12-04T11:19:21.138032
2013-03-08T06:55:42
2013-03-08T06:55:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,868
py
TradeShippingaddressUpdate.py
class TradeShippingaddressUpdate(object): def __init__(self): self.apiParas={'method':'taobao.trade.shippingaddress.update'} def setReceiverAddress(self,receiverAddress): self.apiParas['receiver_address']=receiverAddress def getReceiverAddress(self): return self.apiParas['recei...
77b8ad2e3005d4326a5e5a73ef29bb6a4c238f85
09a53ccac410ff85dbc73bb93bc901e24d79f6d1
/queen_app/admin.py
a0d089040c2ff8408bcb07041b5742c2991d1b3f
[]
no_license
interpolatio/django_queen
e907535a59c9c564a8a2b6eab0310b65ea9590ee
8ed96c8ff5a5149769ad56ef2425e8135c13e711
refs/heads/master
2022-12-26T23:39:17.897299
2020-10-10T11:15:16
2020-10-10T11:15:16
302,881,205
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
admin.py
from django.contrib import admin from queen_app.models import Desk admin.site.register(Desk)
1026ee871a1e42093fa08c02cf48f898e9bcea5a
101b39f1e05a62674aaaafc968c9ce105e7cf0d3
/DataFunc/pivot/StrategyEngine.py
1d700ae437bbc1d0610aae6b4e4550df02a354d2
[]
no_license
mystocks/LunChan
5e4eb2233e3b145e3b9063c7ea423302e6be4849
c795893d652c0a69b854740abb54e7510f7a16c2
refs/heads/master
2022-12-14T07:14:20.665803
2019-05-14T09:09:24
2019-05-14T09:09:24
133,154,238
0
0
null
2022-12-06T21:02:53
2018-05-12T14:36:10
HTML
UTF-8
Python
false
false
717
py
StrategyEngine.py
# -- coding: utf-8 -- import sys reload(sys) sys.setdefaultencoding('utf-8') import pandas as pd from pandas import np from pandas import DataFrame as df import talib class StrategyEngine(object): def __init__(self): pass def getDayPivot(self, dayCloseList): ''' 获取日线中枢 :param ...
281951bcf5e1f35f33484e61c161127e79143ec0
99a8201799cc22587c878321eb9038f52cfb93e9
/app/fastapi/modules/object.py
aa6d9ca13c24770afccb7f76482f41dee1a661d2
[]
no_license
arturol76/mlserver
8a23713d4387d009b9950a8b04c06370a7afe071
34753716f5829043e08505f21ecfeeea95566833
refs/heads/master
2022-12-24T00:09:35.576652
2019-12-01T10:26:39
2019-12-01T10:26:39
216,330,484
0
1
null
2022-12-08T06:45:58
2019-10-20T08:28:52
Python
UTF-8
Python
false
false
709
py
object.py
import cvlib as cv from modules.DetectorResponse import DetectorResponse from modules.DetectorBase import DetectorBase import logging logger = logging.getLogger(__name__) class Detector(DetectorBase): def __init__(self): DetectorBase.__init__(self, "object") def init(self): return # run...
8c8ce516981c4cdb9d43f5c8627ee09b58a87a95
1362c84b46dec4db3318d560202e9f309c96dc9e
/setup.py
e1866eb7529e8b56d56a6317e1386cc8cd2dc64d
[]
no_license
jasonbrackman/package_creation
d1edda9ef5de2365fe9663175f7caff1b4736bb1
d675a3b28e5753246a9af3cf5d55fe36ac623cbd
refs/heads/master
2020-04-19T08:54:27.722721
2019-01-29T05:10:18
2019-01-29T05:10:18
168,093,028
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
setup.py
# Note that without the find_packages the sub package would not be found. from setuptools import setup, find_packages setup(name='jason_package', packages=find_packages(), version='0.1', description='Creating a package example.', url='http://github.com/jasonbrackman/package_creation', a...
2cb3ff170d9e0f2bfd348de3612ef94027c6a892
c32a96bb06f46d4519f6db0ef6f4051491f007d3
/day_18/puzzle.py
8196b765ba3a9b614041d1ef247b652a4ce70b23
[]
no_license
noMad1717/aoc_2020
ae01594a2b5a8483ad637957d4f8de1f449dfbae
4741eb74990f370c0b993ee94decacd6cfda6973
refs/heads/master
2023-02-10T06:05:55.718854
2020-12-30T19:02:36
2020-12-30T19:02:36
317,627,235
0
0
null
null
null
null
UTF-8
Python
false
false
2,430
py
puzzle.py
""" Advent of Code 2020 - Day 18 """ import re import util from collections import deque def solveLeftToRight(expr): ops = [x for x in expr if x == '+' or x == '*'] nums = re.split(' [\+\*] ', expr) lh = nums[0] for i, op in enumerate(ops): rh = nums[i+1] lh = eval(f'{lh}{op}{rh}')...
44ac8924d15ed4fae9837f8e945562c4fbea511b
c7e765a9bed33d3bfb21774e3995bf4a09e04add
/adminmgr/media/code/A3/task3/BD_118_301_847_872_1U1tT30.py
fbbbf55ec02957baf7f6fbb11d7a79fee5638d3b
[ "Apache-2.0" ]
permissive
IamMayankThakur/test-bigdata
13dd2ac7fb76c9baed6c3a0aa943057a22e2d237
7f507918c7bec31c92eedcd94491a83486623049
refs/heads/master
2022-05-03T00:59:44.127494
2022-02-10T19:50:16
2022-02-10T19:50:16
201,585,028
10
4
Apache-2.0
2022-04-22T23:39:45
2019-08-10T05:34:09
Python
UTF-8
Python
false
false
2,114
py
BD_118_301_847_872_1U1tT30.py
#import findspark #findspark.init() from pyspark import SparkConf,SparkContext from pyspark.streaming import StreamingContext from pyspark.sql import Row,SQLContext import sys import time import pprint #import requests def aggregate_tweets_count(new_values, total_sum): return sum(new_values) + (total_sum...
b3cd7606ea51c29cccd8ec51a163db0302630698
67011ea7ca1437328aad1f678dce2f61c26fb93d
/main.py
b87249dc61a50720101635073192ff1322eb80f1
[]
no_license
coolhass-offical/how-to-python
30c5f7a1b00947d1333f3ff8ed277632fab0f52b
620ce91f365378e2cfe283a2675b01ed031cb29b
refs/heads/master
2022-12-15T14:22:27.949005
2020-09-17T11:34:52
2020-09-17T11:34:52
292,211,109
1
0
null
null
null
null
UTF-8
Python
false
false
257
py
main.py
import constant print(constant.PI) print(constant.GRAVITY) """Note: In reality, we don't use constants in Python. Naming them in all capital letters is a convention to separate them from variables, however, it does not actually prevent reassignment."""
2c73c06f7b456d71e2c7474d27f8bcd917658a1b
dd5d01659c728bb31aaf1b50d2343bd3d5aa89cc
/Image Comparison 4.py
a807cca01f698006b47613a786686650dfe78707
[]
no_license
SeifeldinZook/Images-Comparison-with-Opencv-and-Python
d7f80f14d4e6ed24fe65d37874829276e5ed20cf
c3cc9befca411021a875f65c9aa9e8573d0cca67
refs/heads/master
2022-06-02T11:03:37.965857
2020-04-30T07:33:20
2020-04-30T07:33:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,719
py
Image Comparison 4.py
import cv2 import numpy as np import glob # --------------------------------------------------------------------------------------------------------------- ''' 4) Check if a set of images match the original one''' # -------------------------------------------------------------------------------------------------...
bd7254121a5f73ba1d5fa90cda8b12e783295445
9ef15246ee32668ce0115497b8a0f2d43517f6cb
/clustering_CF/Normalization_df.py
6c37a0b41538548a39786fc744847615c4dd1bae
[]
no_license
hwk0809/recommend-system-program
748a40b24bfe3b24b16a5a39239610d638eb24a6
fc19b6e2c6d3a409d5d160f4948be3d672bebdfb
refs/heads/main
2023-02-24T09:15:18.377461
2021-01-31T16:32:46
2021-01-31T16:32:46
334,450,211
1
0
null
null
null
null
UTF-8
Python
false
false
1,358
py
Normalization_df.py
# -*- coding:utf-8 -*- """ 作者: hwk 日期: 2020年12月22日 """ import numpy as np import pandas as pd # 先中心化,再正则化 def normalization(df): rowname = df._stat_axis.values.tolist() columnname = df.columns.values.tolist() mat = np.mat(df.values) m = np.shape(mat)[0] # 行数 n = np.shape(mat)[1] # 列数 mat_norm...
28fcc2326607ed0721a570abe764c45dd197628e
94871bffd0ace3487aef3e7fc3691434319f9861
/CardAccess/PythonScripts/off.py
7373ac90024ebc70879b88772b506fa707637866
[]
no_license
bencrupt/CardAccess
b8c8ef1748498143992d8790e4e26d25f906e8c1
039bc4413401f5cd1f3c5bcfe58013f32e3e3584
refs/heads/master
2022-02-20T06:37:11.889532
2019-08-06T10:03:12
2019-08-06T10:03:12
198,087,612
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
off.py
#!/usr/bin/env python import RPi.GPIO as GPIO import sys GPIO.setmode(GPIO.BCM) # GPIO Numbers instead of board numbers Pin = int(sys.argv[1]) #RELAIS_1_GPIO = 17 GPIO.setwarnings(False) GPIO.setup(Pin, GPIO.OUT) # GPIO Assign mode GPIO.output(Pin, GPIO.LOW) # out GPIO.cleanup()
c3ab9c628d52f4d8abde5ee46c80ca07d1c3166e
8c86e8d8cf7132fd90382780e700b28b210b1924
/lms/friends/views.py
fb25d746b0554989072710f04c6af5e3197929b2
[]
no_license
dgargdipin/Library_Management_System
5cc89bfb7f41e76b98132cafda37917fc477745a
8c8a15853cae4aee4d2c4d641da50d7a7f2f1dc1
refs/heads/main
2023-06-16T15:48:56.303084
2021-07-14T09:14:31
2021-07-14T09:14:31
373,431,875
0
1
null
null
null
null
UTF-8
Python
false
false
1,690
py
views.py
from flask import Blueprint from flask import render_template, url_for, flash, redirect, request, Blueprint, abort,send_from_directory from flask.globals import session from flask_login import login_user, current_user, logout_user, login_required from lms.models import User from .forms import addFriendForm as aFF from ...
240a2fd612bf2f7a1f645a22cc701e69c68ca13b
78edbf095a27f5fc5c45d37386da1f420417ceb9
/homework2/src/source_code/node.py
d2bd8f05fb1fcc1dd440c2184f41f1dfd4bcb0c7
[]
no_license
chijuzipi/EECS349_ML
f894ae60816c0219088180ab9258ea690373d4ce
171c8a39dc9ca06925549192f52f95b394c701e4
refs/heads/master
2020-05-29T22:57:01.195710
2015-05-02T06:39:13
2015-05-02T06:39:13
34,776,544
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
node.py
class Node: def __init__(self, name, value): self.name = name self.value = value self.left = None # < value self.right = None # >= value ''' def addChild(self, value, node): self.children[value] = node def getChild(self, value): return self.children[value] def getChildren(self):...
5f164345e1bd0eef1fb50bb99fc17f123a5c60df
d0f11aa36b8c594a09aa06ff15080d508e2f294c
/leecode/501-1000/601-1000/861-翻转矩阵后的得分.py
97770bbe3aa276909e2f0ed53abbd88112b76877
[]
no_license
saycmily/vtk-and-python
153c1fe9953fce685903f938e174d3719eada0f5
5045d7c44a5af5c16df5a3b72c157e9a2928a563
refs/heads/master
2023-01-28T14:02:59.970115
2021-04-28T09:03:32
2021-04-28T09:03:32
161,468,316
1
1
null
2023-01-12T05:59:39
2018-12-12T10:00:08
Python
UTF-8
Python
false
false
362
py
861-翻转矩阵后的得分.py
class Solution: def matrixScore(self, A) -> int: m = len(A) n = len(A[0]) for i in range(m): if A[i][0] == 0: for j in range(n): A[i][j] = 1 - A[i][j] ans = 0 for i in zip(*A): n -= 1 ans += 2 ** n * max(...
ca1112bd2736e189909faca027fe8b85e6e9131a
6bd60729d32540828f888a2c88ba0f7e91fcc2c4
/Python/py2/Tushare/example_of_tushare.py
50a900a2126bdcda576970320506cad7e87b4c0d
[]
no_license
TongzheZhang/CodeWork
2dcd41efad673e60dad519290c311b5edec10eb0
8934f7d4645b2555a9f85ebb36a75c7bb3cdc211
refs/heads/master
2020-06-29T13:26:41.028747
2018-05-07T02:11:13
2018-05-07T02:11:13
74,423,259
1
0
null
null
null
null
UTF-8
Python
false
false
541
py
example_of_tushare.py
# -*- coding: utf-8 -*- """ Created on Tue Oct 25 20:05:05 2016 @author: Richard """ import tushare as ts #data = ts.get_hist_data('002415',start='2016-10-17',end='2016-10-21')#DataFrame,海康威视 #print data #index = ts.get_index()#各种综合指数 #print index #print ts.get_rrr()#存款准备金 #print ts.realtime_boxoffice() 看电影票房 #pr...
b55c5ad8bbd136d6cbbf76dfe6cdc62f6022d123
22c56d6cb744a0b7a5879376bed0f8e12abbf357
/10_kappa/12_CenterOfRotation.py
53ec72578408526736cefc5b7cc51ba0452f3c56
[ "MIT" ]
permissive
mirefek/py_euclidea
8854bd648e4e5cbadaca9d48fffb6f31d5a3447e
8e400cbf36e3c8919fcc0032b7a95ce55012416e
refs/heads/master
2023-08-30T14:12:28.195003
2021-11-16T21:02:20
2021-11-16T21:02:20
215,083,101
7
3
null
2021-10-05T15:56:38
2019-10-14T15:45:21
Python
UTF-8
Python
false
false
723
py
12_CenterOfRotation.py
from constructions import * def init(env): A,B,_ = env.add_free_segment((304.5, 184.5), (410.5, 318.0)) C = env.add_free(227.0, 322.0) circ = env.add_constr( compass_tool, (A,B,C), Circle, hidden = True) D = env.add_dep((355.5, 210.5), circ) env.add_segment(C,D) env.set_tools( ...
a2bdb5b2e3c58962a71821fa413bcaed29f4bff5
31e59697e76e5f947d7b8a82e4ea7388c06ad920
/Avanzada/Tarea06/client/main.py
12c6c2cccf37fefec4b798b27e7c95ccbf110001
[]
no_license
leolivares/leolivares
e1e798abbbf1ca8c20b598539ceadfe82caade57
ccbbaf5128f9601711c5465fad38f0ec2234ee37
refs/heads/master
2023-06-09T19:39:58.626862
2023-06-02T12:57:57
2023-06-02T12:57:57
99,819,218
1
2
null
2023-03-08T23:44:28
2017-08-09T14:43:31
Jupyter Notebook
UTF-8
Python
false
false
4,013
py
main.py
from PyQt5.uic import loadUiType from PyQt5.Qt import QApplication, pyqtSignal, QMessageBox, QPixmap, QListWidgetItem import sys from clients import Client form1 = loadUiType("interfaces/login_window.ui") form2 = loadUiType("interfaces/dashboard.ui") form3 = loadUiType("interfaces/edit_window.ui") class LoginWindow(...
9965bbca127bf52cf548b53a43e945ebf0588da3
19af75f67234470b4220c2d67527e616e85abd1b
/units.py
197d43683406c3d419d87f251d273fe9bd1746a6
[]
no_license
maxabera/Subface2Fusion
e8c82c3a0b59301a7beebdb0184bd20ed11212a5
9f2c7385554782dfab63f60ad56928e5b5a30f4f
refs/heads/master
2020-12-08T15:12:34.558577
2020-01-13T15:18:22
2020-01-13T15:18:22
233,014,554
0
0
null
null
null
null
UTF-8
Python
false
false
15,445
py
units.py
__author__ = "Jiri Manak <jiri.manak@aberamax.com>" __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' __copyright__ = "Copyright (C) 2020 Subface2Fusion Released under terms of the AGPLv3 License" from enum import Enum, unique PI = 3.1415926535897932384626433832795028841971693993...
a3533c7dcdfed8dbb64594f383099353ddd6d57c
f669203382f5163655de0f8de8f45e4170e82f55
/rolemention/__init__.py
bc92537b7d38f6057f8198b85d967d4a9fe7dbf9
[ "MIT" ]
permissive
Tominous/Swift-Cogs
aae6badf896aae97105560c1822f1bd7461281cb
47747ccc33617dcaa3851ff12c6f95aee675d1e6
refs/heads/master
2021-09-15T14:05:44.457816
2018-06-03T23:35:52
2018-06-03T23:39:46
270,682,992
1
0
MIT
2020-06-08T13:39:32
2020-06-08T13:39:31
null
UTF-8
Python
false
false
143
py
__init__.py
from redbot.core.bot import Red from rolemention.rolemention import RoleMention async def setup(bot: Red): bot.add_cog(RoleMention(bot))
25d876cd87090db094c7bd45ff11279360935492
4c984f88d28f38f62c7887023cc22bccb103332a
/http/python/flask/app.py
9b051ed8827554d899100ea6e4078211da045f9a
[ "MIT" ]
permissive
tsouza85/collection-api
83cfd4530001f5e10419ef4a869be19dce7bd564
26f4bb80bfe0534b647686a06bb0520db162928a
refs/heads/main
2023-01-14T09:08:13.568196
2020-11-19T14:39:25
2020-11-19T14:39:25
313,954,010
0
1
MIT
2020-11-18T14:07:52
2020-11-18T14:07:51
null
UTF-8
Python
false
false
728
py
app.py
from flask import Flask from prometheus_client import make_wsgi_app from werkzeug.middleware.dispatcher import DispatcherMiddleware from werkzeug.serving import run_simple from flask_prometheus_metrics import register_metrics app = Flask(__name__) @app.route("/") def index(): return "Test" @app.route("/error") ...
718d2f5a23b28adaa694311faa799c5478736f97
f22549033070266adcde6f3beca82f57dd0dc64b
/Car Number Plate Reco..py
ed01f71cc1a7d3a87b5debf7f6479ec3cde6bf7f
[ "MIT" ]
permissive
Trisha-biswas/Machine-Learning-Python
33ff70290c5f2a82273cec322acf6335e4505a0c
a7df03ba4da1d2e9080188177ac162d796876f1c
refs/heads/master
2020-07-17T23:09:35.401762
2019-09-03T17:03:57
2019-09-03T17:03:57
206,120,700
0
0
null
null
null
null
UTF-8
Python
false
false
2,546
py
Car Number Plate Reco..py
#!/usr/bin/env python # coding: utf-8 # In[ ]: import cv2 import imutils import pytesseract import numpy as np pytesseract.pytesseract.tesseract_cmd="C:\\Program Files\\Tesseract-OCR\\tesseract.exe" #read the image file image=cv2.imread("C:\\Users\\HP\\Desktop\\Car-Number1-Plate.jpg") # resize the image c...
0fc0230bf1b6d370fceba5a270eae3ad8539df31
31ef23fc22e03cc18612d0f82a78e21c379dae64
/tests/test_models.py
1b4338f0af47694a33faae362a3cb48eee49c632
[]
no_license
robertsoh/django-ubigeo
f58d1aa1473e76394a15e2cca5a5bdf678b1842c
622585fbc6026bd430c3d3d90d0c5b2cc77c0e49
refs/heads/master
2020-03-23T15:25:33.361085
2016-10-14T14:14:43
2016-10-14T14:14:43
141,747,346
0
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
test_models.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.test import TestCase from ubigeo.models import Departamento, Provincia, Distrito class DepartamentoTestCase(TestCase): def test_correct_creation(self): obj = Departamento.objects.create( nombre='Lima', cod_inei='01' ...
fa9d2c8c5872616330e735a47190328a438a74af
203e3e17d0159ff8ba39f1b8abd54f2bb5f1faff
/MeetingInfoManage/MeetingInfoManage/context_processors.py
7388b909caf84d979a5f0676cf5b8941afb88798
[]
no_license
preke/website
6f382d1c8f087f03c4dd7e77505230254f663b12
c835539b8601273541455e181cb5b6f041a70aae
refs/heads/master
2021-01-20T13:13:48.207316
2017-02-22T09:37:47
2017-02-22T09:37:47
82,681,010
0
1
null
2017-02-22T09:37:48
2017-02-21T13:07:55
Python
UTF-8
Python
false
false
81
py
context_processors.py
# -*- coding: utf-8 -*- def page_head(request): return {'request': request}
2ef8555ee4b692de2a09d299257729c5c522a2e9
bcca700b0ce69f2fd8451b26edaafcc7fab93790
/codes/Part_003_Model_Based_RL.py
a0539b3e8e274cdba62edd3f11b961c063cb718c
[]
no_license
youngminpark2559/pracrl
e758beccc0fb6f91cfddfcf793d2aadfdafa0d44
4662dbf178b043d60e937ba698b4e7360598dfa7
refs/heads/master
2020-03-14T02:41:51.153549
2019-07-07T21:25:10
2019-07-07T21:25:10
131,404,492
0
0
null
null
null
null
UTF-8
Python
false
false
16,332
py
Part_003_Model_Based_RL.py
# Part_003_Model_Based_RL.py # build model network and policy network reflecting real environment for RL question.html import numpy as np import _pickle as pickle import tensorflow as tf # %matplotlib inline import matplotlib.pyplot as plt import math import gym env = gym.make('CartPole-v0') # @ H = 8 learning_rate =...
73ca1bdc1b207d96b78f2b3ec83c3113026c72a4
dd91b91c880e42c2c2c52d59fa2a916453b3aac0
/similarities.py
a85291ef2b8817f9c1194482a0e96b33a0c9932e
[]
no_license
mirgee/book_recommender
f4b79a320dcb9a7e8802dbbdfee16e30875edbff
4c3c7f1ce7ef4cbed6c530944b26c1c6e05402a0
refs/heads/master
2021-01-02T09:41:36.997295
2018-07-09T14:07:10
2018-07-09T14:07:10
99,280,307
0
1
null
null
null
null
UTF-8
Python
false
false
1,672
py
similarities.py
import math import pandas as pd # Compute euclidean similarity def euclidean_similarity(user_id1, user_id2, explicit_ratings): # Get the items both users ranked ranked1 = explicit_ratings.groupby('User-ID').get_group(user_id1) ranked2 = explicit_ratings.groupby('User-ID').get_group(user_id2) common_ranked_items =...
e93ae4e32a1ba193685dc9b66481e7a033270dfe
b4166044870d1c026e86c95ac41e3e3613ee424f
/python_basic/abc064_a.py
159a0d58e74d8735c7bcce050fb5ad1dac104933
[]
no_license
nsakki55/AtCoder
2cbb785415a7c0b9df9953ddc3706c90a5716a03
03c428e8eb8f24b8560d00e2388ba75509619690
refs/heads/master
2020-05-31T04:33:06.400697
2020-01-19T13:41:41
2020-01-19T13:41:41
190,099,669
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
abc064_a.py
n=int(input().replace(' ','')) print('YES' if n%4==0 else 'NO')
5a31daa2f0087717ba9b90a4e72cc037a7da5217
afc800ef61e9712908c3a3ea882f7bf6d4250fd6
/s3_logs.py
8087c857a80916154e650344ba7c2f9086485438
[]
no_license
side2k/s3-logs
caef84a46519515fc13bbd20486454e63c5c80ec
8b7d2a3342d67997500471fd1970f2261269c371
refs/heads/master
2020-09-12T14:05:45.221217
2011-10-16T15:51:52
2011-10-16T15:51:52
2,584,990
0
0
null
null
null
null
UTF-8
Python
false
false
6,209
py
s3_logs.py
import os from os import path import subprocess from datetime import datetime, timedelta import re QUOTE_LEFT = '["' QUOTE_RIGHT = ']"' CACHE_PATH_DEFAULT = '/tmp/munin_s3_logs.cache/' CACHE_EXPIRES_DEFAULT = 3600 #seconds def get_int(int_str): return 0 if int_str == '-' else int(int_str) def par...
450fd800b7f9140795ad53d72dd42055fbf069b0
e870f98ecca3d5880570997b2c75899ebf5d44b8
/sortings.py
a24ceb4d390b0d4e432c6edd3b63ec07f169223d
[]
no_license
Dopadkar/Algorithms-and-data-structures
10fd3f08328091cefdebff41e00cb7d8dee55f43
65e170d70331e9fdc0d2046a106591e6d2b130f3
refs/heads/master
2020-03-24T07:11:21.875117
2018-07-27T10:10:13
2018-07-27T10:10:13
142,555,830
0
0
null
null
null
null
UTF-8
Python
false
false
3,010
py
sortings.py
def insert_sort(A): '''сортирует список A вставками''' n = len(A) for top in range(1,n): k = top while k > 0 and A[k-1] > A[k]: A[k], A[k-1] = A[k-1], A[k] k -= 1 return A def choice_sort(A): '''сортирует список A выбором''' n = len(A) fo...
17437bb0560a049dfe5abc12c47a730972533fd8
94616f42399cc8d00f98cb1feb4485d1ecbd11b7
/JoSaTech/orders/migrations/0002_auto_20170911_1209.py
d9ce0a27e2d177c92ec8be96292d87da7302e30c
[]
no_license
j0hnr0ss/CMTradingGame
85f847110ff47a7303f53bae040ba1b321c6119e
8853e333cb2f876d5a8e9113f1e5f8a0d7cfa9e7
refs/heads/master
2020-03-28T02:14:38.967066
2018-09-05T18:55:18
2018-09-05T18:55:18
147,557,631
0
0
null
null
null
null
UTF-8
Python
false
false
1,658
py
0002_auto_20170911_1209.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-11 10:09 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orders', '0001_initial'), ] operations = [ migrations.AddFiel...
fc0fa83baac1f0e79f16a78da888a91d0cf30ecf
cd75dc39b486450b3aa96b2afa4e97e259572e50
/database.py
1fecc8a3b1aec2634706d53fea1ddff266b223d8
[]
no_license
elenajp/pug_API
766da95cb9ed07d0a1bcc56dbb8e6bc245f9791f
48ab324c43e4c5ec3e3be7b6900cf0c345f92c1e
refs/heads/main
2023-08-09T00:39:30.625312
2021-09-07T13:00:21
2021-09-07T13:00:21
389,956,311
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
database.py
import random import sqlite3 from random import randint connection = sqlite3.connect('db.sqlite3') cursor = connection.cursor() create_table = """CREATE TABLE IF NOT EXISTS new_table(image_id INTEGER PRIMARY KEY, species TEXT NOT NULL, shark_image TEXT NOT NULL)""" cursor.execute(create_table) # cu...
08e75118c2a900de2dd07c01538268ac6a03cafb
5f1881006aaf4f3c2515f375ad29c15fd6612de2
/lemon/propara_evaluator/aristo-leaderboard/propara/evaluator/scoring/test_scoring.py
a8f8cfb515f5f0fc19f364e2fd803fda5d62ae9c
[ "Apache-2.0", "MIT", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
microsoft/ContextualSP
4edb598d40f683f9a1143b92a9d24e1066d51ec4
4198ebce942f4afe7ddca6a96ab6f4464ade4518
refs/heads/master
2023-08-02T22:08:40.503853
2023-07-14T07:22:50
2023-07-14T07:22:50
255,534,819
332
70
MIT
2023-07-25T19:23:48
2020-04-14T07:01:54
Python
UTF-8
Python
false
false
8,111
py
test_scoring.py
import unittest from process import ProcessSummary, Conversion, Move, Input, Output from scoring import question, QuestionScores class TestScoring(unittest.TestCase): def test_compare_locations(self): self.assertEquals(question._compare_locations('', ''), 1.0) self.assertEquals(question._compare...
7b02de2f60a5611315170a35a3d50213aaaead5c
7ead649fd5809076397266f017990a2cbc4c66a2
/utils/parsing/splitting.py
d0793c947a31d476064bd2f30a276ee02ebad692
[]
no_license
BBite/football-bot
31f44001f44a0132593a5633f3f33906a9140da3
707d4c9dec4d55ae1b09530776674b21e3044004
refs/heads/master
2023-02-04T04:16:25.546832
2020-12-17T09:54:10
2020-12-17T09:54:10
322,045,754
2
0
null
null
null
null
UTF-8
Python
false
false
2,141
py
splitting.py
def split_table(teams: list) -> tuple: logos = [team['logo'] for team in teams] nums = list() names = list() plays = list() wins = list() draws = list() losses = list() goals = list() points = list() for team in teams: nums.append(team['pos'] if int(team['pos']) > 9 else ...
a581c0409cf08b35e9299b52f32e4f88953a86eb
bfce57e2e7efdebd77c08b197e8c9ac43299f427
/art12/urls.py
b5c0fe3c94a399167b273d82fcae57d592361bff
[]
no_license
eea/art12-viewer
c9f572f99e3a67fd57afedf540235b2d4c7c618e
c7adde6e34a2a1f428ec1403258af55058c61fca
refs/heads/master
2023-08-10T04:28:53.556685
2022-10-04T07:02:04
2022-10-04T07:02:04
24,499,765
1
0
null
2023-05-01T22:49:15
2014-09-26T13:07:58
Python
UTF-8
Python
false
false
1,506
py
urls.py
from flask import Blueprint from art12.views import ( Homepage, Summary, Progress, Reports, ConnectedSelectBoxes, FilterFormCountries, FilterFormReportedName, EuMap, LoginView, LogoutView, ) from art12.factsheet import factsheet from art12.factsheet import BirdFactsheet, Factshee...
ff1c6a7c38773c0302c207577056328301ac287e
75851a0aca3460ba1361bf58eff2dd00bf13787a
/apps/99counties/dualdisplay.py
665b8817ef158b02f41bbf6f04d324bda7c4bcad
[]
no_license
fresk/shs
fe564862d532f491a56c3fc902ff975397cfb96e
596f9e8f04bacc386cfd92ff1605780cec40b838
refs/heads/master
2020-12-29T01:42:19.873962
2013-02-28T20:35:59
2013-02-28T20:35:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,096
py
dualdisplay.py
from kivy.lang import Builder from kivy.properties import ObjectProperty, StringProperty from kivy.properties import NumericProperty, ReferenceListProperty from kivy.uix.relativelayout import RelativeLayout from viewport import TransformLayer, Viewport class DualDisplayWindow(Viewport): primary_display = ObjectPr...
a3a867be3dc111f56997183dac3d92efecb44f1c
cd14554946826c9f559db4ed87f4e34623252b7c
/20171121-03.py
83a51522f2e5051b3fd68fe6930cb3838226576b
[]
no_license
bryson0083/py_test
b367bb1ace8107c8f496ae1c35e28aed000d0c53
ea9aa2254bcb552a19b9888e4bef70b2cf02d10d
refs/heads/master
2020-12-24T10:11:13.819084
2018-09-04T08:39:08
2018-09-04T08:39:08
73,244,871
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
20171121-03.py
import os print("搬移前一天選股結果檔案...") cwd = os.getcwd() file_ls = [] for file in os.listdir(cwd): if file.startswith("STOCK_") and file.endswith(".xlsx"): #print(file) file_ls.append(file) #print(file_ls) for mv_file in file_ls: print(mv_file) tar_file = cwd + "\\" + mv_file des_file = cwd + "\\des_dir\\" + mv_f...
8b77b0af292cc8be2ae12b7b592f25f058a1cfbc
5b458574e06d6adb1a76756cb874a330a1bf1b02
/runningmedian.py
be5ed8ae7bcb0ccc1b79e24c35a70ed2dddfffe3
[]
no_license
MTSavran/Algorithms
87f11b45d40956d639b32cef87d42cac4424b2c1
79e12f082b71e5719f9212377fc1a10eed0fd048
refs/heads/master
2021-01-10T17:04:07.614249
2017-11-06T21:06:44
2017-11-06T21:06:44
44,470,359
0
0
null
null
null
null
UTF-8
Python
false
false
17,414
py
runningmedian.py
#MEHMET TUGRUL SAVRAN import math import bisect import StringIO import collections ################################################################### # Description: # Gradebook is a data structure that keeps track of every student # and their grade information. The cool thing about Gradebook is that # ...
bd52ee16843100e2f465f09c5f28a3157035f051
d56392ae246ac643392788ce1f96c791885943b2
/sdnvpn/lib/config.py
847b41cbbfaffac3cf0d53fe882ca57fd15a4346
[ "Apache-2.0" ]
permissive
opnfv/sdnvpn
d3a463469f5a1138399320b37e70ab1f40f22762
4c26920af6c8a2bd083395bff269ba01570590d1
refs/heads/master
2021-01-11T07:40:31.822685
2018-12-13T09:54:55
2018-12-13T09:54:55
72,771,378
5
7
null
null
null
null
UTF-8
Python
false
false
3,599
py
config.py
#!/usr/bin/env python # # Copyright (c) 2017 All rights reserved # This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # # http://www.apache.org/licenses/LICENSE-2.0 import logging import yaml imp...
11b86a6ce6fdbdf6dd795e6caebee7b5acc5c6a8
d1a5f5399a85750fb7fcd594b9605c671f2c6a3f
/tascsapi/restapi/models.py
53a70b3bbeab5d80624833843f605e94c7c4dccd
[]
no_license
SydNS/Tascs_backend
fdaa021d326d7b38d009895cbb31a4520799b905
a21f1c7172f4e0a8863e12066830e9ae2666bcc7
refs/heads/main
2023-02-23T00:12:46.165824
2021-01-25T13:28:29
2021-01-25T13:28:29
332,515,495
0
0
null
null
null
null
UTF-8
Python
false
false
1,265
py
models.py
from django.core.validators import MinValueValidator, MaxValueValidator from django.db import models from django.utils import timezone # Models class Tasks(models.Model): title = models.CharField(max_length=100) description = models.CharField(max_length=400) created_at = models.DateTimeField(default=timez...
883932b6e31a9ab187f465995c9669f6b824c12a
ae65a1d5219f06ec992001d4001581f6d9c2a855
/tests/propositional/test_sequents.py
98c62c48b868d424486f35a621ff57242cc10804
[ "MIT" ]
permissive
ariroffe/logics
20c55b1a5ee0cc0e2ae77aa4244469203c630c92
cc3e1665a4679616c282e8790cdac0a555191920
refs/heads/main
2023-05-22T17:01:50.702854
2023-04-10T16:31:47
2023-04-10T16:31:47
352,099,342
15
2
null
null
null
null
UTF-8
Python
false
false
22,104
py
test_sequents.py
import unittest from logics.classes.propositional import Formula from logics.utils.parsers import classical_parser from logics.instances.propositional.languages import classical_infinite_language_with_sent_constants_nobiconditional \ as language from logics.classes.propositional.proof_theories import SequentNode f...
d0d760dc013bad81a3681fdba64a218200d4f344
353e5920f09a674052a9b0856b0ebaca2430aabf
/eventowl/utils/django_helpers.py
fbf5e4533ba713537407cf193bb3d57ab293f84d
[]
no_license
DoHe/eventowl
38bd19299ffed8c441f666bd1325c8d9eb3170cf
33efe5133cf1aca9952434b8b8268d2968069499
refs/heads/master
2021-10-05T10:54:01.960170
2021-05-30T07:19:48
2021-05-30T07:19:48
33,080,682
0
0
null
2021-09-17T04:05:15
2015-03-29T16:45:03
Python
UTF-8
Python
false
false
366
py
django_helpers.py
def set_if_different(obj, attr, value): current = getattr(obj, attr) different = current != value if different: setattr(obj, attr, value) return different def set_if_smaller(obj, attr, value): current = getattr(obj, attr) smaller = current > value if smaller: ...
c63527b2337dd59c5412cfae55661f0e5a16f341
e64bacfb35997bdd0d9ba1578002d5a19b55e502
/visualiztion.py
e0c4ad63d1579d2e0fec81e1f1cdf3b31a7c3e42
[]
no_license
grauwolf32/openai-physics
aebad20152f893a61dcd45183e62e714b83446d0
b80390bd544ff24c4da5021752661e32e795d4d6
refs/heads/master
2020-03-24T22:07:07.488575
2019-03-12T07:48:28
2019-03-12T07:48:28
143,069,442
0
0
null
null
null
null
UTF-8
Python
false
false
1,768
py
visualiztion.py
from gym_hyrosphere.envs.visualization import * from gym_hyrosphere.envs.physics import * def main(): pg.init() glutInit([]) display = (800, 600) pg.display.set_mode(display, DOUBLEBUF|OPENGL) gluPerspective(45, display[0]/display[1], 0.1, 30.0) glTranslatef(0.0, 0.0, -3) hyrosphere = Hy...
e018128b4f871077f3ce428cf32b1341799559fa
ff48c2d7b5ee08364824e6c3ea1cb50e87d8118a
/ApplicationAutoDj_MAC.py
4b1d3f43a29d91a03ff6f2646bd81b494e0da54d
[]
no_license
antoine-jamin/auto-dj-tournoi
326a4dda38b26795df97b42cc9a4058369870cf6
7715d93d0e40f34d66f7a3901d5f4cec7ba8a33d
refs/heads/master
2020-12-23T22:23:11.725426
2020-02-14T19:28:00
2020-02-14T19:28:00
237,294,623
0
0
null
null
null
null
UTF-8
Python
false
false
3,690
py
ApplicationAutoDj_MAC.py
# -*-coding:Latin-1 -* __author__ = "Antoine JAMIN" # Librairies import appscript import subprocess from tkinter import * import time # Variables globales bgcolor = 'white' # couleur de fond sonDebut = "debutdematch.mp3" # musique de début de match sonFin = "fin de match.mp3" # musique de fin de match tempsFin =...
7d5c7e374aa07d838c2dc55d1357f355d24148a8
287338c043ed86f1218d8a361bdd159f2c309f11
/examples/triangulation.py
560a3da3048f6e89540722f4084dfc1aa3d512f5
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
dusty-phillips/pyjaco
cb90f7b3f5b1bce793b71ef26907a0c98ac0f260
066895ae38d1828498e529c1875cb88df6cbc54d
refs/heads/devel
2021-05-28T18:16:31.031882
2012-03-18T21:15:10
2012-03-18T21:35:02
3,058,134
3
0
MIT
2020-01-01T09:19:12
2011-12-27T18:18:31
Python
UTF-8
Python
false
false
6,122
py
triangulation.py
import pyjaco from pyjaco.decorator import JavaScript, JSVar from math import sqrt def is_on_the_left(c, a, b, pts_list): ax, ay = pts_list[a] bx, by = pts_list[b] cx, cy = pts_list[c] ux = float(bx - ax) uy = float(by - ay) vx = float(cx - ax) vy = float(cy - ay) return (ux*vy - uy*vx > 0) d...
76c12b3f3e32af29ab455ed4923b7fb5e8380d4e
d3442597557b273e5ec72287b363a588bb09bbd3
/dottorato/bplnn.py
5eaf6a4b79d48181cebbdc78c9c540c88592f8ae
[]
no_license
wanpiqiao/naufraghi
99511490553b26306f7cc66520443c7bca42fa78
7ef3d253ff1c472a41cc9e1ae36129db540ead02
refs/heads/master
2021-01-15T19:28:25.949771
2015-06-10T18:23:11
2015-06-10T18:23:11
37,214,435
0
0
null
null
null
null
UTF-8
Python
false
false
14,446
py
bplnn.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright (C) 2008 Matteo Bertini import os import sys import math import time import pprint import numpy as np from numpy import matlib from numpy import random import pylab VERBOSE = 1 np.seterr(over="ignore") # Possible values [ ignore | warning | raise ] def de...
a144f84406494cd4b33c8aafd0aff2d7e5294b4f
8c836968e3d157701f95c60db55a1f438575b968
/test/connectors/test_torch_networks.py
5e1985e28d733d18390c17c7030915dfb750d7fd
[ "Apache-2.0" ]
permissive
clausia/qiskit-machine-learning
228bf8356d63eff1464c9799bc13353bb239826f
583e5ef22c05e142d27086cb09015cb9dd6533de
refs/heads/main
2023-08-31T23:07:33.706143
2023-08-16T14:46:00
2023-08-16T14:46:00
375,531,839
0
0
Apache-2.0
2021-06-10T01:13:41
2021-06-10T01:13:39
null
UTF-8
Python
false
false
7,082
py
test_torch_networks.py
# This code is part of Qiskit. # # (C) Copyright IBM 2022, 2023. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
9c97b3547fa42a874b0240c293019c92381f613f
908f50e543ebea231048b54c6e34ddc65bd5a3bc
/sg/forms.py
fa6cb3081a1c0d899e0590d05d36bca18390a0ca
[]
no_license
qingliu-cyl/myblog
309371aba12e865006961c1e6318abdcb387f4d5
884a93703561508b683283f7926e8761591d35eb
refs/heads/master
2020-07-27T11:27:34.181997
2019-09-25T15:10:44
2019-09-25T15:10:44
209,074,698
1
0
null
null
null
null
UTF-8
Python
false
false
174
py
forms.py
from django import forms from .models import SgFlag class SgFlagForm(forms.ModelForm): class Meta: model = SgFlag fields = ("qqnumber","email","flag",)
47fda1706801f5f0bf6c2dd21445cd9490cac7cd
0a21d5e72b4afbabcbf4ec0d65ea84cd8d6159c7
/Contest/weekly-contest-171/A.py
cd2c4702359db111b01110d7ed67ce4ebecee2c7
[]
no_license
LuoJiaji/LeetCode-Demo
193f27ba36c93f9030435874a145c63a81d3c0f8
78e6e87c01848a1dc71b7dc0716029ece5f35863
refs/heads/master
2020-06-24T03:03:33.366537
2020-04-05T02:09:41
2020-04-05T02:09:41
198,830,590
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
A.py
class Solution(object): def getNoZeroIntegers(self, n): """ :type n: int :rtype: List[int] """ def isnozero(num): for i in str(num): if i == '0': return False return True a = 1 b = n-a while ...
1efe8c7149522fc2a1b882f60fb78e8682ff1cba
6f19cec1b4d5d1554d8c2856072eb4b7e25f7162
/bamboobot.py
52f80edb116b65ccaec5a1e08cf65412a13541d5
[]
no_license
manondesclides/bamboobot
529b9cd25746d9d5efdf2b2eb2fb3dd446c6e60f
bcea0320a2a83fddadcc5fe99b92d3eec74e4b15
refs/heads/master
2020-08-06T04:54:00.410560
2019-10-09T09:13:57
2019-10-09T09:13:57
212,842,275
0
0
null
null
null
null
UTF-8
Python
false
false
1,103
py
bamboobot.py
import requests import re import os from telegram.ext import Updater, CommandHandler def get_img_url(): url = '' while (os.path.splitext(url)[1] in ['.png', '.jpg', 'jpeg'])==False : contents = requests.get('https://random.dog/woof.json').json() url = contents['url'] return url def ...
9dc037f73de8ad8b4bf6c4cf9bbd9c9b259127f3
639887b89553400a9923dcabe147dd33c83e39a2
/cpp/__init__.py
98e79458318bbe0f9ee035eed54230f1e3ce48fc
[ "MIT" ]
permissive
hwangyale/AlphaGomoku
f8288c3bf5d00f79bf2db4fdf3d3ad120cf7f6e9
7c85a71c710fa8d114b3591e4fd27c8649caccbb
refs/heads/master
2020-04-03T10:31:50.405491
2019-09-28T05:02:40
2019-09-28T05:02:40
155,195,574
3
0
null
null
null
null
UTF-8
Python
false
false
40
py
__init__.py
from .cpp_board_wrapper import CPPBoard
09fe50aa096b6d1d9f932a102725b4bb38e716cf
6d910909d1d979e5806b1ba442e46552ab230400
/backend/adoorback/notification/serializers.py
c03f7858ff115a3afe93fbfeec684c911c839f80
[]
no_license
swsnu/swpp2020-team8
fa919333860f361603f8c3bfca4cb056f4706e64
5e03a6dadb9e2df6d51e37b1c935e092e82285c3
refs/heads/master
2023-02-02T05:12:24.841643
2020-12-19T12:52:39
2020-12-19T12:52:39
295,429,133
5
2
null
2020-12-18T09:18:23
2020-09-14T13:44:21
JavaScript
UTF-8
Python
false
false
2,353
py
serializers.py
from rest_framework import serializers from django.contrib.auth import get_user_model from notification.models import Notification from feed.models import Question from account.serializers import AuthorFriendSerializer, AuthorAnonymousSerializer User = get_user_model() class NotificationSerializer(serializers.Model...
3a909572c8d52be9a3f685107e9f4d06d96d9cb5
528e1fa979bb44e4f36f8feaa91e7d06bea70c09
/ixl/33SearchInRotatedSortedArray.py
cfae473aa545f16fb5be8a4ef010884e459a008b
[]
no_license
CheLcodes/leetcode_python_practice
a3ad685a5964f523d06217d39c0cb6026fc93492
16b329e5eafffb3cee14a054a35cfe7c6eb9268a
refs/heads/master
2023-08-12T08:39:49.997226
2021-09-24T03:58:13
2021-09-24T03:58:13
283,283,488
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
33SearchInRotatedSortedArray.py
class Solution: @classmethod def search(self, nums, target): l, r = 0, len(nums) - 1 while l <= r: mid = l + (r - l) // 2 if nums[mid] == target: return mid if nums[mid] < nums[r]: if nums[mid] < target <= nums[r]: ...
e8b4a250bc12ce79a569272119df199786aea9f5
e4d4f45d5b06541a94f0ae402dc550ad31f86207
/nfl/views.py
0dabee54c3246595b75b959d771ebf073ffaba40
[]
no_license
Rye-Guy/NFLPoolParty
b04218683576b59fa1d70cecb966a9da9833978c
5a27716f12ca5f2ac4553f594efbe007e99959c3
refs/heads/master
2023-01-09T05:44:28.738045
2019-10-02T13:27:25
2019-10-02T13:27:25
203,641,351
0
0
null
2022-12-11T03:08:34
2019-08-21T18:22:33
JavaScript
UTF-8
Python
false
false
3,214
py
views.py
from django.http import HttpResponseRedirect from django.shortcuts import render from django.contrib.auth.models import User from .models import NFLGame, UserPicks, UserMadePick, NFLTeam from .serializers import GamesSerializer, UserPicksSerializer, DjangoUsersSerializer, DjangoUserWithTokenSerializer from rest_framewo...
358c2277845917bf5abcd7088b5af322557e8340
1bf75c0a7cfe4020d910165bb97871eb63a733b9
/improve_pedestal.py
45066c4453f6ba9e6abe25ffa1ef6346f4d39cd8
[]
no_license
adampara/pytonlib
57593301d04ee0673eab13207e8dd6e80c5e9cb0
1a03ddc7dad0ed68dbb88505332e3ad44527b863
refs/heads/master
2023-08-30T22:26:44.132093
2023-08-18T16:53:13
2023-08-18T16:53:13
80,317,122
0
1
null
null
null
null
UTF-8
Python
false
false
523
py
improve_pedestal.py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Fri Dec 14 22:08:01 2018 @author: para """ import numpy as np from integrate_array import integrate_array from fitpol import fitpol def improve_pedestal(wave, debug=False): """ fit slope to the intergrated raw waveform """ int_wa...
6b81956b75c53e1b28b0070896068e2786aa2050
f63316b20d0423853704e9a0cc72e904436df234
/parseDict.py
1ae520df356f6805d58653294ab23c07673fa52e
[ "Apache-2.0" ]
permissive
uc-cdis/dbgap-pfb
42516f5524178d5d22c17e763069ca568b0f63fb
b19b49d4beaec30d133b8f80e53131e5b32bec8e
refs/heads/master
2022-10-26T09:35:15.501247
2022-10-17T16:09:32
2022-10-17T16:09:32
218,557,895
0
0
Apache-2.0
2022-10-10T14:38:20
2019-10-30T15:20:23
Python
UTF-8
Python
false
false
10,919
py
parseDict.py
import json import xml.etree.ElementTree as ET import glob import argparse def parseOptions(): parser = argparse.ArgumentParser( description="parse the data dictionaries of unharmonized dbGaP studies" ) parser.add_argument("-d", help="directory of dbGaP study", required=True) parser.add_argume...
078f2b25db232209f0a34d236703bb4ca0db3f4a
f80a6ed9a67d5e2421ada8dc0dde515643d4c5e2
/sleepBot/models.py
12e9a36cd3677b9e720cc16ef93a81e063994d04
[]
no_license
sdonoso/sleep-bot
75caf8c7fd57f412f5465c9ae190691ff6ead0e6
4a92014534cf43ed8740c4f2cccae68b196221d0
refs/heads/master
2022-12-10T13:36:53.564806
2019-07-12T04:49:40
2019-07-12T04:49:40
193,772,592
0
0
null
2022-12-08T05:50:37
2019-06-25T19:42:30
Python
UTF-8
Python
false
false
642
py
models.py
from django.core.validators import MaxValueValidator, MinValueValidator from django.db import models from django.utils import timezone class Person(models.Model): name = models.CharField(max_length=150) id_telegram = models.PositiveIntegerField(primary_key=True) creation_date = models.DateTimeField(defaul...
3d40ce381b1d19410c7fe681fc212c9a1bb1ca76
ef46f8cdbcd9eb83a45d3a9c9df1da4b8943e863
/NTUPythonCourse/3018.py
d80369bff831cbc397c2eaef29d9c23d11dad806
[]
no_license
tiger80156/pythonBasic
264cb51d63d1d8037908865bea7131b5b6bd3b67
6c37da51fe83d61232ccc9d703d7ab7faf2b9d43
refs/heads/master
2020-03-25T22:32:22.078220
2018-08-10T02:49:43
2018-08-10T02:49:43
144,227,985
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
3018.py
score = [] for i in range(5): x = input("student {}: ".format(i+1)) x = x.split() score.append(x) for i in range(5): print("student",i) for j in range(3): print(j,": ",score[i][j]) for i in range(3): y = map(int,score[i]) y = list(y) sumScore = sum(y) avg = r...
ee60c882561f9414222d8d1af86077befe5ea272
91fb98885f7472808a42975ed19563dad3d0b891
/app.py
19fb1126923ef30b2ffcf95cc39b67a77c5b801a
[]
no_license
TianJin85/Flask_test
90e950fcbd12405e9f1611b437c70a752c6b93f8
054fcbdfe8670855c339d3f0c67a9aee6446ec36
refs/heads/master
2020-06-03T17:42:43.983254
2019-06-13T01:44:26
2019-06-13T01:44:26
191,670,549
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
app.py
# -*-coding:utf-8 -*- from flask import Flask, url_for app = Flask(__name__) @app.route('/') def index(): return url_for('static', filename='mask_wordcloud1.png', method=['GET']) @app.route('/user/<name>') def user(name): pass if __name__ == "__main__": app.run()
1d45c65a4b28d1964c862f52ee10f21892268f12
a255fc188503dce1895f8ceea16f93f32e18a1a7
/list_screen.py
ef929671c064f22217c32bf8fa9693e0ff1f75af
[]
no_license
yes-jyomi/try_doit_python
c2b0b892be04dbe283b98ecb464def132c27f909
6339031382d7af16db5ea2789c7d04d5aa0cf6ae
refs/heads/master
2022-04-02T16:27:02.788685
2020-01-02T02:15:35
2020-01-02T02:15:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,455
py
list_screen.py
from tkinter import * from tkinter import messagebox from task_manager import TaskManager from profile import Profile from closet_screen import ClosetScreen class ListScreen: global count # 화면 구성 def __init__(self): self.tm = TaskManager() self.p = Profile() CANVAS_SIZE = 600 ...
507157d80f0e849fd5d7c7e6640aa64fec6ccdfa
e9c0cdf2187002a4510a8f0ed2693e8471c7ce97
/crawler_.py
135f9aab21e277ac550a666a6d75aabf2084ceed
[]
no_license
AnirudhaKulkarni-prog/WebCrawling
a7fd72c5f213406b56df513234a5ab03b46b141d
5c081fff2f2a9983c1135dea763c4d7975595156
refs/heads/master
2023-02-28T02:28:05.520307
2021-01-30T10:03:35
2021-01-30T10:03:35
334,380,508
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
crawler_.py
from bs4 import BeautifulSoup import requests with open("sample.html") as f_html: soup=BeautifulSoup(f_html,"lxml") for article in soup.find_all('div',class_='article'): headline=article.h2.a.text print(headline) summary=article.p.text print(summary)
0fe39d0716a805050ca1ff2fe7fabc52d51dd0d2
fdaa6a2735497b15883a701ddc2ce5395d606f1e
/tests/aspformatter_test.py
cf8987c8a3673008b16921eec75d54006c8ee8e3
[ "MIT" ]
permissive
asteroidhouse/equibel
b95521f308680eaa90d4b4a0b7ab61583592618e
476d58e4c8d4b5aabe4b94b650e6d326acb41ec8
refs/heads/master
2021-01-21T05:00:52.615233
2016-06-02T04:43:42
2016-06-02T04:43:42
34,887,504
4
0
null
null
null
null
UTF-8
Python
false
false
462
py
aspformatter_test.py
import equibel as eb from equibel import aspformatter def test_aspformatter1(): G = eb.path_graph(3) G.add_formula(0, "p & q") G.add_formula(2, "~r") expected_result = \ """node(0). node(1). node(2). edge(0,1). edge(1,0). edge(1,2). edge(2,1). formula(0,and(p,q)). formula(2,neg(r)). atom(p). atom(r). ...
c698db9795ce2e93ff72f78f66a59efca2007c6a
672cb9f12e86fef264515495f3c4914295d6a4b1
/backend/bin/django-admin.py
8ef9d9f52917ca4d4b60259b3dcbde4234d7ddf4
[]
no_license
lyu-xg/DjangoDemo
29eea05ef04efe8d8acefa0cb76c4d8ed0dff803
f0580de0a1564b5833cded0c084538a23bba04ee
refs/heads/master
2021-06-12T11:41:46.124107
2017-01-26T03:49:41
2017-01-26T03:49:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
django-admin.py
#!/Users/PatDuJour/Desktop/Winter2016/INF117/ApplesAndOranges/backend/bin/python3.4 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
1ad864880da40e45d162c9df7341b2b0941b3c7e
890f546f991b87b9fa41484278c4431bc634f72f
/preparing/data_prepairing.py
fbe9923252e48aa8d5a83d6813a36ccd3e31847d
[]
no_license
magnus5552/magnus5552.github.io
a7eb13b3ba8fed2ee4d3a9140ca74f0bf6063585
0a8a95b9bebc637f0088cc087f40dd36c4586f9b
refs/heads/main
2023-08-17T12:39:35.155958
2021-10-14T18:12:33
2021-10-14T18:12:33
416,457,642
0
0
null
null
null
null
UTF-8
Python
false
false
1,482
py
data_prepairing.py
import codecs from re import findall from re import sub import pandas as pd with codecs.open('preparing\\unprepaired_data.txt', 'r', encoding='utf-8-sig') as file: file.seek(0, 0) level1 = file.read().replace('\r', '').split('\n') level2 = {} for index, elem in enumerate(level1): rec = elem.sp...
aeae5e103fa28574903669d803c71f62b9354d9d
f13acd0d707ea9ab0d2f2f010717b35adcee142f
/ABC/abc301-abc350/abc311/d/main.py
38cb3ca5fe5530ce04a0ccec691fc2aaa9229be2
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
KATO-Hiro/AtCoder
126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7
bf43320bc1af606bfbd23c610b3432cddd1806b9
refs/heads/master
2023-08-18T20:06:42.876863
2023-08-17T23:45:21
2023-08-17T23:45:21
121,067,516
4
0
CC0-1.0
2023-09-14T21:59:38
2018-02-11T00:32:45
Python
UTF-8
Python
false
false
1,088
py
main.py
# -*- coding: utf-8 -*- def main(): import sys from collections import deque input = sys.stdin.readline n, m = map(int, input().split()) s = [list(input().rstrip()) for _ in range(n)] d = deque() d.append((1, 1)) visited = [[False] * m for _ in range(n)] # 停止したかどうかを管理 stopped...
8d10705f50d7351d2bb6ee88e9a1f2f6939751c9
c7ea124908f06e0f8940aef50f50b2ec1ab8ec36
/kfsims/noise.py
d91d7b3b8c59b6a0825d78709bf5335604e62803
[ "MIT" ]
permissive
hnykda/kfsims
23e4b63ff89ae8340e1164837a1c004a49a84dba
0c814c1e6bc2881b72c74f519e693e74e9abde71
refs/heads/master
2020-03-12T05:10:06.796884
2018-04-29T07:32:27
2018-04-29T07:32:27
130,458,632
6
0
null
null
null
null
UTF-8
Python
false
false
630
py
noise.py
import numpy as np from scipy.stats import multivariate_normal as mvn def static_noise(N, mod=1, d=2): return mvn.rvs(cov=np.eye(d) * mod, size=N) def hill_noise(N, low=1, mid=10, top=15): """ ____ / ___/ """ lower = mvn.rvs(cov=np.eye(2) * low, size=50) middle = np.array([mvn.rvs(c...
24ff9aaa1dac829ddcfe5a128eeab4b2d6ca0f4f
5bb6333b0e66ff3ad56a1060b28e18957926cae6
/cal.py
b40030173515912732fafb79760b045cf808d0aa
[ "MIT" ]
permissive
showerhhh/MathModel
e34a00c44f43890d25c4fc136e371e7e52f56639
08d2d33289c0e3180b7c86c81e1c1bb9aaec5790
refs/heads/master
2023-04-03T02:50:40.433577
2021-04-17T08:13:29
2021-04-17T08:13:29
358,821,547
2
0
null
null
null
null
UTF-8
Python
false
false
4,088
py
cal.py
import math volume = [10.865, 1.936, 2.376, 2.652, 2.64, 1.2] x_p = [8.9130435, 6.9130435, -1.686957, 3.1130435, -5.286957, -2.086957] y_p = [1.20652174, -1.39347826, 1.20652174, 0.60652174, -0.29347826, -1.49347826] z_p = [0.61669004, 0.21669004, -0.28330996, -0.18330996, 0.41669004, 0.21669004] x_len = [1.5, 2.2, 2....
a780af043eaf021e6949887d59d6389da3c41eb9
d1ef8177fd348c6ba890baf0bd1e6c7df03c7d3e
/ipmiutil/ipmiutil_notify.py
f3e249c7306243227f04641dbf8badb7bec3f101
[]
no_license
iariro/XREAWebContents
955114582105bd74028d5d5fe63798ba90152e28
a05732828b91d1a675cfe64473fcfed611f32dad
refs/heads/master
2023-04-12T22:24:01.614894
2023-04-05T11:03:35
2023-04-05T11:03:35
216,996,234
0
0
null
2021-11-04T14:29:07
2019-10-23T07:34:16
Python
UTF-8
Python
false
false
860
py
ipmiutil_notify.py
#!/usr/bin/python3 import ipmiutilchangelog import ambient import requests def line_notify(last, now): token = "nPQEoC190nfvydJRbQmY75SY00Ygvt0CxsaXWoLTUUH" url = "https://notify-api.line.me/api/notify" headers = {"Authorization": "Bearer " + token} payload = {"message": 'ipmiutilのバージョンがv%sからv%sになりました'...
f56ceaf9134658783243dd3d8d8f5f382ac8ccb2
60ed5a774c5a034bd2e35d2470c03b4748a4be66
/rec_sms.py
250029c99db120684728d9f39a3150f19e1f124f
[]
no_license
baselbb/twilio_tutorial_flask
063bbe32b76d7c304b7f9551aa51908f88806411
feb4cdaa69280e461efb8f819fb1bf171899f3e1
refs/heads/master
2021-08-23T02:01:19.042215
2017-12-02T10:08:00
2017-12-02T10:08:14
111,070,124
0
0
null
null
null
null
UTF-8
Python
false
false
635
py
rec_sms.py
import os from flask import Flask, request, redirect from twilio.twiml.messaging_response import MessagingResponse from twilio.rest import Client from nums import * app = Flask(__name__) account_sid = ACCOUNT_SID auth_token = AUTH_TOKEN client = Client(account_sid, auth_token) client.messages.create( to=PHONE...