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
12c40fa9e765fd5e97248cf391b6e3981bac6e8b
e2b6b4d2a7259433ab3dac83a06602be15b894d9
/python/unit_group.py
522c67f77f5c6dde51350dec17ff40b869b6bcde
[]
no_license
RutvikGupta/Example-Set-Testing
21f25dbcdfe8dfe2e67a00841eea444e6b1ed721
cb13229754b539cd181f5c57f3d9b9e4c4b8ba25
refs/heads/master
2022-11-13T15:15:49.902651
2020-07-01T15:33:57
2020-07-01T15:33:57
266,165,033
0
0
null
null
null
null
UTF-8
Python
false
false
3,451
py
unit_group.py
import numpy as np class UnitGroup: """It stores information related to the inputs and targets of event of event class. It can be target OR input based on the variable doing_inputs. Used to be called Range class. =================================================================================== ...
92be66b8d6371e36f1a68d22de15fc35288ee668
a3141471d358433bdd190a15f45a342fd377e7c0
/Check_Port.py
0f4d8b0fff7f65bdfa54a6fef1803e4d8795d103
[]
no_license
Aman1915-sri/noraml-program-
3941312defab1d5e224ff225c61caccc8b50e1f8
f6ee276e40d69bcf661d04aab3d7310d0646deff
refs/heads/master
2022-12-05T19:32:05.607492
2020-08-24T06:49:03
2020-08-24T06:49:03
289,847,522
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
Check_Port.py
import unicodedata import os import struct #import serial import serial import string import time import datetime import os from serial.tools import list_ports_windows import time import sys UARTport = [None] UARTserialport = [None] MCUport = [None] MCUserialport = [None] def check_usb_port(): ...
8fedc764446890bb5dc0228857d216d226623e4d
c79d50566b156b94aced52471b4a5a7cd5a1d0bb
/dogs.py
83787d0978fbea5f9ab22821dbabbe1ccd292f42
[]
no_license
jsbaidwan/mlClassifier
96ea28db34d921b4c1384bef98d089f8dcfc82c2
f4b13dd5a8ab3ad09a89ebdab94fd4f8446fe7f6
refs/heads/master
2020-04-02T09:31:34.967461
2018-12-27T11:05:02
2018-12-27T11:05:02
154,296,601
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
dogs.py
# Good features are informative, independent, and simple. We'll introduce these concepts by using a histogram to # visualize a feature from a toy dataset. import numpy as np import matplotlib.pyplot as plt # Creating a population of thousand dogs greyhounds = 500 labs = 500 # Assume greyhounds are normally 28" tall...
7611df2376842494a2fe35df0278b1b675fa0709
8e5d5cefe5a24da83b277619fd910330e0df21da
/migrations/0002_auto_20180128_1522.py
07402498f810a073ffb0f93744e4fe102f55920e
[]
no_license
skru/Django-Sendgrid-Backend
e5c88327591cadb0b2d99a5743f211f5d38e4416
148ea7bf753865f7e613d30e9231ee1f3cfb1efb
refs/heads/master
2021-03-16T09:42:40.261055
2018-01-28T15:26:48
2018-01-28T15:26:48
119,270,164
0
0
null
null
null
null
UTF-8
Python
false
false
1,518
py
0002_auto_20180128_1522.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2018-01-28 15:22 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('django_sendgrid', '0001_initial'), ] operations = [ migrations.AlterModelOptions( ...
31a14bea1aaca1b0f9911ae0fa928cc5e1767f55
d1743de941ba9cf14a73a599edbb7b6c4c38d566
/api/index3.py
bbe36cb7c60aa3bbc4d46a67531f4985eb543589
[]
no_license
awsproj/zeit-python-upload
190a83626dffab6bf65a5aaecb1e6dc0682b376b
55b3ebfac583b5737eacb3a493b17b66d8f86926
refs/heads/master
2021-04-11T14:00:58.313533
2020-03-22T01:28:22
2020-03-22T01:28:22
249,025,854
0
1
null
null
null
null
UTF-8
Python
false
false
1,674
py
index3.py
#!/usr/bin/env python # /api/index.py # https://zeit.co/docs/runtimes#official-runtimes/python/python-version from http.server import BaseHTTPRequestHandler from cowpy import cow from urllib.parse import urlparse class handler(BaseHTTPRequestHandler): c_handler_source = 'None' def do_GET(self): self...
b59adee3fed1d1110fbff2738d7e891d27e807d2
f3a626464c6184c92f5c663b4fe80edea1aadbae
/vert_stare/plot_maincat.py
5a6cb26d99b024144a863ea1c225f14b47e8314e
[ "CC0-1.0" ]
permissive
dwni/vert_mode
380201e91931b50bc1a6f859e4826cc3f833d5f1
441fc47ce20757702e259c1a3a61fe6346ff8009
refs/heads/main
2023-04-17T21:51:16.136142
2022-08-01T07:46:53
2022-08-01T07:46:53
520,009,152
0
0
null
null
null
null
UTF-8
Python
false
false
5,721
py
plot_maincat.py
import matplotlib.cm as cm import warnings warnings.filterwarnings("ignore") from matplotlib.colors import ListedColormap,LinearSegmentedColormap from matplotlib import gridspec import numpy as np import xarray as xr import pandas as pd from scipy import interpolate from metpy.units import units import metpy.calc as m...
3382ae032d4b9b59d3bbc16542d4797cb3111fb3
13213e3e7d6a0866cdf28483adc46d458f8977ac
/seq/maxsubseq/mss3.py
3515f075ff9700dc24d27e6a69e4880c1f9e2126
[]
no_license
j0k/algopractice
42654b1158497050911822c46de6791cf8bf251f
1be3df5553156a523bfce5328df205e6c67c19f3
refs/heads/master
2022-06-27T00:10:57.028619
2022-06-15T12:34:11
2022-06-15T12:34:11
100,791,845
1
0
null
null
null
null
UTF-8
Python
false
false
574
py
mss3.py
# 25.01.2018 23:24 em502 def mss(a): mi,ma = 0,0 d = 0 if len(a)<=1: return d le = a[0] mi,ma = le,le trend = 0 for i,e in enumerate(a): if le == e: pass if (trend == 1 and le < e) or \ (trend == -1 and le > e): mi = min(mi, e) ...
79156b9f0c3fb0f5e375b0766da0607e55be93e5
3f9b6770eadd8bc1bda67d2e872be613f95d066d
/examples/basic/users.py
2fd5752df881f8b53d8766f7304193436d1d2144
[ "MIT" ]
permissive
yamizis/lumapps-sdk
d7e2094a10dbb3f1df97f3670ab1b6159bc45182
b5fddc8187e2e9af3a565bd3c08e88b7231a79ba
refs/heads/master
2020-04-10T16:34:11.311152
2018-12-10T08:50:09
2018-12-10T08:50:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
users.py
from lumapps_api_client.lib import ApiClient from __init__ import BEARER api = ApiClient(token=BEARER) users = [] max_users = 50 usrs_iter = api.iter_call("user", "list") for usr in usrs_iter: if len(users) >= max_users: break users.append(usr) users = [user.get("uid", "") for user in users if len(...
7d0348e157063789f7bb01fc553137d960718173
de0eb89e8988fa03b6c40b7264b1e32d4c13d2a5
/test_palindrome.py
66f7d092b50f99a41bfdba8c1deee5206366e160
[]
no_license
hotchkma/CS362_ICA_Unittest_Pytest
56ccb6da2338296523f3af7ec14145fd641bed56
714f2e1f9a44a99032414ad4f3c12dd224380c5d
refs/heads/main
2023-05-02T11:30:18.907451
2021-05-14T22:34:48
2021-05-14T22:34:48
367,479,069
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
test_palindrome.py
import pytest import palindrome def palindrome_case(x): assert palindrome("racecar") == 1 assert palindrome("") == 1 assert palindrome("hello") == 0 assert palindrome("mom") == 1 assert palindrome("a") == 1 assert palindrome("h a h a") == 0
e9e6a263576b14b82d27ceacc684986936ad4885
1fafe0f7736ef9a89e0d208f279de20d23678f80
/lab1.py
5e79929dad0e0159cea18c6cb96472c196c86779
[]
no_license
NickGreiner/CSC-2342
540bf7133db943be9d1302b7ac35a288c888ca89
a68c8ffb902b3fa81cb61ab1abbfb2729244371e
refs/heads/master
2022-04-21T01:24:24.058396
2020-04-13T01:43:06
2020-04-13T01:43:06
255,127,561
0
0
null
null
null
null
UTF-8
Python
false
false
8,958
py
lab1.py
# Nick Greiner # CSC-2342-01 # 1/29/2020 # Python 3.7 import re import itertools import copy def dictionaryFunc(): print("Welcome to the dictionary.", "Enter exit to return to program.", "", sep="\n") dictionary = {'and': 'Both variables have to be true for and to be true', 'or': 'Only one variable has to b...
1e0879471bd5f6984f27b1d5bf869c9e3204b3e0
dca4c2e10be06636661839ab762e9c3f228d4129
/Chapter10/example10_strings.py
20669766dfe9055063871fbaa33ba7639c607f61
[]
no_license
sandeep-18/think-python
6016f9d0d6edd8df04487c475a711d3f97b2cff0
c335a54f3d659c0852480c387c655e1db340d06f
refs/heads/master
2020-04-09T06:34:32.627601
2018-12-09T05:23:27
2018-12-09T05:23:27
160,118,636
0
0
null
null
null
null
UTF-8
Python
false
false
1,052
py
example10_strings.py
# Sandeep Sadarangani 7/12/18 # Converting a string to list elements using - list() # Converting a list to a string using - .join() # Breaking a string using a delimiter using - .split(delimiter) # FUNCTION - string_to_list: take a string and convert it to a list def string_to_list(word): print("The string is: {}".f...
7916310934e8c5e372eeacc00512fe449f3eb8f0
ab095ffaaca3535aad8b2bf3ed736915f4c588b0
/genhtml.py
6531a3e6dd188991e5dbf9ccb7add867d4d2e58b
[ "MIT" ]
permissive
Esmool/species
340f1fcb5133e7e51acb70120eb631f819ecd67d
d2630f2e9e4c166c1af0aeebeca7982019cb6634
refs/heads/master
2020-03-11T22:53:55.638955
2018-04-24T08:21:20
2018-04-24T08:21:20
130,306,087
0
0
null
null
null
null
UTF-8
Python
false
false
1,630
py
genhtml.py
import sys import os import string import json class RTemplate(string.Template): delimiter = '@' def input(fname): species = [] fpath = os.path.abspath(fname) with open(fpath, 'r') as f: for line in f.readlines(): individuals = filter(lambda x: x != '', string.split(line.strip(), ' ')) sp...
8e3a85b91d788a704843049fc0442116491ab3f1
dde5cf4ece0e752b5e623aa45f7ecbcffd9eea46
/aggregator/__init__.py
68004969ac7e5be6087aa9e1dd15f364a64c4f9e
[ "Apache-2.0" ]
permissive
DataDog/datadog-unix-agent
397c938d43b19a846a3a525e4dae65a18cb374be
ace36aaafd42eb4388af1a2c8f75373c5f665c4d
refs/heads/master
2023-08-28T17:49:59.287196
2023-08-07T14:31:07
2023-08-07T14:31:07
117,725,026
13
19
Apache-2.0
2023-08-07T14:07:58
2018-01-16T18:38:33
Python
UTF-8
Python
false
false
529
py
__init__.py
# Unless explicitly stated otherwise all files in this repository are licensed # under the Apache License Version 2.0. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2018 Datadog, Inc. from .aggregator import ( Aggregator, MetricsBucketAggregator, MetricsAgg...
2595f5bad28af6c982746a3e32f09c0409d3184f
8271258b065a8ed6259e8ea469fb3e59784cc2e5
/dfs.py
ddc469bf8dc04f06e4b627a4bec78513114930df
[]
no_license
calmcat/Algorithm
703306babbbd2a955b204d615b92df849be7065c
0e8a1a7ac2c20f539d431ba448b8ae6397eb199e
refs/heads/master
2020-12-25T18:44:07.058875
2019-03-27T11:50:28
2019-03-27T11:50:28
93,991,783
0
0
null
2017-06-11T08:29:31
2017-06-11T08:29:31
null
UTF-8
Python
false
false
1,275
py
dfs.py
from graph import * class DFSResults: def __init__(self): self.parent = dict() self.time = dict() self.vertices = list() self.t = -1 def dfs(g): results = DFSResults() for vertex in g.itervertices(): if vertex not in results.parent: dfs_visit(g, vertex,...
23ca285cf5be23715d23cb9bf0c8657eac40cb03
8db8cef2cbb669c78fc102e47b821d26e26c76e7
/RNN/ANN.py
2fbd526b9eb08991f77cb1720d8ea2acb9b10546
[]
no_license
lilixu023/IJCAI-17-tianchi
f42e0e036fc2b5b6e63eedf4f41a3e9812381205
d392582583af7a8d96fff001c63332615d0ed571
refs/heads/master
2021-02-28T05:23:20.510837
2017-03-11T04:18:55
2017-03-11T04:18:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,968
py
ANN.py
#encoding=utf-8 from FeatureExtractor import * from sklearn.preprocessing import MinMaxScaler from keras.layers import Dense,LSTM from keras.models import Sequential,Merge from keras.optimizers import RMSprop,SGD import datetime from cjx_predict import scoreoneshop,score from lv import toInt,removeNegetive import Para...
d028f0ff88bf1c69f7b73b108afd2483410ad209
2d2aa54ba0f231d59f563d9883b3139660751a67
/xiaozhu-login.py
1d19030250d36539365137bbbfb44c2e6f7c9915
[]
no_license
liujian1990/xiaozhu-mobile
92bb4f3e1edda9681ff4b1b053b972cbdb1d93ff
07245b152cf93f8fe0dd437b90f1f82e11c9a413
refs/heads/master
2020-12-02T06:26:00.551587
2017-07-28T11:45:17
2017-07-28T11:45:17
96,833,060
0
0
null
null
null
null
UTF-8
Python
false
false
3,430
py
xiaozhu-login.py
import urllib,urllib2 import cookielib import hashlib import random import datetime import time current_milli_time = lambda: int(round(time.time() * 1000)) cj = cookielib.CookieJar() urlroot = 'http://mobile.xiaozhu.com/html5/' urlimroot = 'http://imserver.xiaozhu.com:8080/webim/pushlet.srv' urltalkMsg= 'https://w...
2a1de9b1e7afacddbf6c6086c288ee766e9d6c43
89655152b3f61b05b10ca9820bb03d431e8def8c
/Python_Practice/Python실습-김도연/제공/M2/example/m2_6_convertNumber_001.py
848271b4a96d4944263012cd4a964e4dff3b20c0
[]
no_license
dannydoyunkim/mytask
506c98cf8409d0272c35971fdd20983fe8233515
1c8e301d2eff5f34487de02af2d479cdfa167843
refs/heads/master
2020-04-09T21:24:57.900528
2018-11-22T14:08:29
2018-11-22T14:08:29
160,601,524
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
m2_6_convertNumber_001.py
#정수값 11을 2진수, 8진수, 16진수로 표현한다. print("1. 2진수 : ", bin(11)) print("2. 8진수 : ", oct(11)) print("3.16진수 : ", hex(11)) ''' int함수의 2번째 인자를 활용하여 8, 16, 2진수 문자열을 정수형(int) 숫자로 형변환 할 수 있다. ''' #8진수 문자열을 정수형으로 변환 print("4.10진수 : ", int('0o12', 8)) #16진수 문자열을 정수형으로 변환 print("5.10진수 : ", int('0xa', 16)) #2진수 문자열을 정수형으로 변환 pri...
89bc3488b87172d209a638d68d9ddd4d6bfa3870
d025872d7fe74de6f787e3b1c44047196a80e69b
/tests/lyrico_sources/test_wikia.py
1c8a9c3a303b264329665917f4f982df2001412a
[ "LicenseRef-scancode-public-domain" ]
permissive
cweiske/lyrico
c54ad4d83f5c78940575be4fee081eee01c312de
eb5c7a3f1ebaf46aa05e5e09cc37f5f81466affc
refs/heads/master
2020-12-02T16:41:17.826242
2019-08-14T19:27:35
2019-08-14T19:27:35
96,568,058
4
0
null
2017-07-07T18:53:17
2017-07-07T18:53:17
null
UTF-8
Python
false
false
519
py
test_wikia.py
import unittest from tests.dummy import DummySong from lyrico.lyrico_sources.lyric_wikia import download_from_lyric_wikia class TestWikia(unittest.TestCase): def test_download_from_lyric_wikia(self): song = DummySong('Azure Ray', 'Scattered Like Leaves') download_from_lyric_wikia(song) sel...
632366e0e344b29b679e0af64a2613d3e4a3f796
a1a3bd7f6544e03d257fd9cc8278de471c8df039
/mysite/oxigeno/views_v1_2.py
e09bb1574ad1f46e52c42bbc3f1ef366c12991ff
[ "MIT" ]
permissive
LeonardoMorales-coder/oxigeno.cc
27063a5ba12dcc662b35b7f52d7b048b8eae2d40
d028029928035887c11dc4c1da0f5bd7a64a8483
refs/heads/main
2023-03-28T07:11:47.449474
2021-03-06T23:15:22
2021-03-06T23:15:22
345,215,349
0
0
MIT
2021-03-06T23:14:43
2021-03-06T23:14:43
null
UTF-8
Python
false
false
12,197
py
views_v1_2.py
from datetime import datetime as dt from datetime import timezone import json from django.http import JsonResponse from django.core.paginator import Paginator from django.core.exceptions import FieldError from django.views.decorators.csrf import csrf_exempt from decouple import config import pytz from .models import ...
8aa1add4cbb481f1fb973c7f5103e52164f19983
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/3113/codes/1594_1802.py
16809265187e0de97e3dc2ed0a15ad8a48a7e3fa
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
147
py
1594_1802.py
from math import* PV=int(input("")) D1=int(input("")) D2=int(input("")) dano =int((sqrt(5)*sqrt(D1)+pi**(D2/3))) monstro=PV-dano print(monstro)
939ea47a04bc591ab25446c3c011f9eb23f347ca
813c2f0084ce32e0325cb822ea8a6feebd1767c1
/src/sentry/mediators/sentry_app_components/preparer.py
8088bedfb29872c64eff5dc52318550fc266840d
[ "BSD-2-Clause" ]
permissive
LiPinghai/sentry
4621b25f5590750495bffb5f74b5ed05f1a763ee
7f21fcddba56391b6ed8591a858570dc5b1ec5c2
refs/heads/master
2020-04-30T06:00:54.869531
2019-03-19T23:20:28
2019-03-19T23:20:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,368
py
preparer.py
from __future__ import absolute_import from sentry.mediators import Mediator, Param from sentry.mediators.external_requests import SelectRequester class Preparer(Mediator): component = Param('sentry.models.SentryAppComponent') install = Param('sentry.models.SentryAppInstallation') project = Param('sentry...
8433f485df276ad754d61c0d4b0ef0dd9ed2a179
8a4d48643aa72de2e21a7e1b0a3f9f9696114ece
/image_window.py
ae957bcdf48f1594a48fcf4ced80baf77183ad11
[]
no_license
m-s-puglielli/lab3_master
9248306a0e2e11152d86cc860eba04d123017512
d2735e499790f496846b9a658ff189eddfea4d21
refs/heads/master
2021-01-06T05:44:37.855330
2020-02-28T01:45:12
2020-02-28T01:45:12
241,226,927
0
0
null
2020-02-28T01:21:52
2020-02-17T23:09:07
Python
UTF-8
Python
false
false
452
py
image_window.py
""" Maximilian Puglielli && Hayden Liao February 24th, 2020 @ 14:20 CS-425-A: Introduction to Robotics Lab #3: Computer Vision """ import cv2 def main(): cv2.namedWindow("Create View", flags=cv2.WINDOW_AUTOSIZE) stream = cv2.VideoCapture("http://raspberrypi-2.local:8081") while True: #img = [] ...
4b4de92a620e27eedf802b2a2322f021ed9e1ac3
b6fa182321756b891b84958e2b2c01e63b3f88b2
/stepik/remov_ odd_indices.py
db46073119b41056e84fe8d69fece5f38783a4b6
[]
no_license
carden-code/python
872da0dff5466070153cf945c428f1bc8309ea2b
64e4df0d9893255ad362a904bb5d9677a383591c
refs/heads/master
2023-07-05T05:14:16.479392
2021-08-22T21:27:36
2021-08-22T21:27:36
305,476,509
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
remov_ odd_indices.py
# The input to the program is a natural number n, and then n integers. # Write a program that creates a list from the specified numbers, # then removes all elements at odd indices, and then displays the resulting list. # # Input data format # The input to the program is a natural number nn, and then nn integers, each o...
e809925311fee16b8a3b32d159f896a36cf68144
651ff871b1568464f0f64f0b50da5c7e888c01b0
/base/migrations/0001_initial.py
36833504dd571de5f9b97f1fba281cc1b526ada5
[]
no_license
kinoafisharu/kinoinfo
1d42e5b736af2c37d1a1b42d9b60979ff38e4145
210477ff01d90a2bde25a9715cf7af4972dd8c21
refs/heads/master
2021-07-07T01:19:27.651052
2020-08-19T12:39:50
2020-08-19T12:39:50
146,737,229
0
4
null
2020-01-06T05:47:31
2018-08-30T11:02:22
Python
UTF-8
Python
false
false
64,048
py
0001_initial.py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Language' db.create_table('base_language', ( ('id', self.gf('django.db.models.fields.A...
9fa4417c884c22817114f0f27980579ad8b612c5
5ea90eaab6e12e945611367240c01513a6a0ae33
/p2-trabalho3/rkn.py
810e3e87ff607ecc56e2c64eeeaa9876e0939a79
[]
no_license
gustavo-m-vieira/AlgebraLinearComp2021.1
4f9b9ba881054bdcc5318bb1260aab11bf50c500
60d070f43293ed2029fc03b843290bbb3c9027fd
refs/heads/master
2023-08-03T18:36:34.967298
2021-09-21T01:22:45
2021-09-21T01:22:45
398,689,021
0
0
null
null
null
null
UTF-8
Python
false
false
2,807
py
rkn.py
import math def getSecondOrder(params, t, y , yFirstOrder): [m, c, k, a, w] = params func = 0 for i in range(3): func += a[i]*math.sin(w[i]*t) ySecondOrder = (func - c*yFirstOrder - k*y) / m; return ySecondOrder def numberOfSteps(passoInt, tempoInt): return int(tempoInt/passoInt) # -...
75236159233c59fa06691263bb65e2bc8768228d
e770deb497a38ffe1db4a23a03330f4c7d8a5496
/app/models.py
c1de13ae508ca5420ec4af0f713faf5c5ce8a15e
[]
no_license
joshua87simmons/perSimmons
2fcb63c81af254181263b1ec7992bd6fb531a24a
c73f742cc1ba52f062fb906446fae64c31660829
refs/heads/master
2016-09-10T10:49:20.320154
2014-06-30T03:11:35
2014-06-30T03:11:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,751
py
models.py
from werkzeug.security import generate_password_hash, check_password_hash from flask.ext.login import UserMixin from datetime import datetime from markdown import markdown import bleach from . import db, login_manager class User(UserMixin, db.Model): __tablename__ = 'users' id = db.Column(db.Integer, primary_key =...
da302808e5192aa12fd2d70603f30bf8934e15d2
50cd153de5b2646eaf8a4ce8e14b7d479de19d67
/mialog/blueprints/__init__.py
eb1d71abafe84842759422e40b628d860f738cc5
[]
no_license
MiaLi0521/MiaLog
7336ec6d12390a5080904def14e655fc45d7a240
d5ed73f9b6dec1a7afa4b6b6409029f7357a0fe5
refs/heads/master
2021-03-01T13:33:15.869494
2020-03-17T12:41:17
2020-03-17T12:41:17
245,789,937
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
__init__.py
""" views.py升级为包,使用blueprints命名是因为我们将使用蓝本来组织视图。蓝本提供了更强大的组织能力,使我们 能够在程序功能层面模块化程序,而不仅仅是代码组织层面: 1.蓝本描绘了程序某一部分的细节,定义了相应的路由、错误处理器、上下文处理器、请求处理器等一系列操作; 但它本身却不发挥作用,必须把它注册到程序上; 2.使用蓝本可以将程序模块化,一个程序可以注册多个蓝本; """
04fba55ceadb3e0e5bddb21d86c6899353802862
2384520b8ec20831ebcabf43527150101027d818
/djelectionguard_tracker/apps.py
dbd3b0f38833efe8cc6f3607037df0b81dcc11a3
[ "MIT" ]
permissive
manu-tv-pits/Baloti
2a71ed2d2dfaaa131b33d83d68a02435bddc9dcf
c499666dd9e2553fac88130dea2b6e9df8278234
refs/heads/master
2023-08-18T20:31:16.581253
2021-09-17T15:07:32
2021-09-17T15:07:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
apps.py
from django.apps import AppConfig class DjelectionguardTrackerConfig(AppConfig): name = 'djelectionguard_tracker'
6da4bc03f7db76827e34e031f9954698800bac97
5e0771c76fa925465397028feace319d0de7859f
/cloudiscovery/provider/aws/limit/resource/all.py
b9dd4ba6ebf42eb3c682208de71e366e52bdd809
[ "Apache-2.0" ]
permissive
Cloud-Architects/cloudiscovery
02d02d49ea6ca889550e97ee4315aacb11e4dcb2
fad132e45f813775eaf0051e628fcbec68291fb4
refs/heads/develop
2023-08-07T21:31:52.472164
2021-01-04T09:57:37
2021-01-04T09:57:37
260,712,454
650
82
Apache-2.0
2022-02-12T23:48:02
2020-05-02T15:07:50
Python
UTF-8
Python
false
false
8,180
py
all.py
from concurrent.futures.thread import ThreadPoolExecutor from typing import List from provider.aws.common_aws import get_paginator from provider.aws.limit.command import LimitOptions from provider.aws.limit.data.allowed_resources import ( ALLOWED_SERVICES_CODES, FILTER_EC2_BIGFAMILY, SPECIAL_RESOURCES, ) f...
f1a7c0a2b1c3a5fee476b98a8b2237f8957f0838
86d499787fb35024db798b0c1dbfa7a6936854e9
/py_interview/pythonic-code/10.字符串反转.py
01c1c9e8a5fb024d7fb8cc5d9c83a603c552f611
[]
no_license
Tomtao626/python-note
afd1c82b74e2d3a488b65742547f75b49a11616e
e498e1e7398ff66a757e161a8b8c32c34c38e561
refs/heads/main
2023-04-28T08:47:54.525440
2023-04-21T17:27:25
2023-04-21T17:27:25
552,830,730
0
1
null
null
null
null
UTF-8
Python
false
false
301
py
10.字符串反转.py
#!/usr/bin/env python # -*- coding:utf-8 _*- """ @author:tom_tao626 @license: Apache Licence @file: 10.字符串反转.py @time: 2020/12/09 @contact: tp320670258@gmail.com @site: xxxx.suizhu.net @software: PyCharm """ str1 = "qwertyuiop" str2 = str1[::-1] print(str1) print(str2) # poiuytrewq
bd2704b7e225fa5480a5dc435ac2bcd88befe813
be5d1ababc8dee59d3ea7687d5feee791ea78821
/.vEnv/lib/python3.5/heapq.py
4376e595dcd25cfd99701f0db7bb4677095e760c
[]
no_license
duggalr2/Personal-RSS
980083337b52d2b8a74257766d3f1f1f546cac44
d4cc0d04fdb19ce957f74cfbc583662f0dc3e727
refs/heads/master
2021-08-24T07:11:09.036689
2017-12-08T15:17:34
2017-12-08T15:17:34
100,282,827
1
0
null
null
null
null
UTF-8
Python
false
false
44
py
heapq.py
/Users/Rahul/anaconda/lib/python3.5/heapq.py
51fa6b70ca00e3ed8443fbdf64735df53ffb6f81
8f0d584745099b71163fc21aec162c3fcf7c682d
/deepnog/client.py
cf35b5262c606cee756552559c10472967047020
[ "BSD-3-Clause" ]
permissive
LokiLuciferase/deepnog
c7d00e09012d0a570c28ffcc9b9b2f155f3d89db
0a50421d27cff11f52d63611a9a5be9a538b060c
refs/heads/master
2021-03-21T06:57:28.602892
2020-03-14T18:11:32
2020-03-14T18:11:32
247,273,579
0
0
null
2020-03-14T12:36:37
2020-03-14T12:36:36
null
UTF-8
Python
false
false
10,336
py
client.py
""" Author: Lukas Gosch Date: 2019-10-18 Usage: python client.py --help Description: Provides the ``deepnog`` command line client and entry point for users. DeepNOG predicts protein families/orthologous groups of given protein sequences with deep learning. File formats supported: Preferred: FA...
5ecd2855038e333ce6660e53a3de2cf83b4cf671
ed8ccd6badf403f26e9713dc924fc2cc067c3124
/hml.py
242d196cc1f30dc5f3c58e75e5137df125a0c7ee
[]
no_license
Masterroy1210/python-codes
1ea6edc1439b0f8516a6377f7e2bb568afaa318f
ad200abfbd60e896ac20b04332b569b6be53d930
refs/heads/main
2023-03-10T10:31:27.071270
2021-02-27T10:04:32
2021-02-27T10:04:32
342,821,851
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
hml.py
import urllib.request, urllib.parse, urllib.error from bs4 import BeautifulSoup import ssl ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE sum = 0 count = 0 url = input("enter the url you want to parse......") html = urllib.request.urlopen(url, context=ctx).read...
1a560a4a3d81af4b09f67a3ac8d72cc043201840
8369bf22246926b478c68174b9c67145057ed2fd
/Utils/Parser.py
b12fa267672e6c53e2e54cb9b3ff0fd18e7c4c92
[]
no_license
ortizfer/Software-2016-2017
7dd6db3914c398df43f762db0d12ee40b789eb6a
295d99d12d28851a02b0e53ec6757ad98ead64ac
refs/heads/master
2021-01-19T11:25:14.644588
2017-05-28T23:01:42
2017-05-28T23:01:42
82,240,505
1
0
null
2017-05-13T16:15:05
2017-02-17T00:41:33
C
UTF-8
Python
false
false
104
py
Parser.py
def p_slice(message): #Entered A Valid Command #Entered A Invalid Command return message[10]
cb6b83e739008d35671ef49c79e7ccecab9a8720
47a623371dc8e26f1ed131803257c66d949ff7a2
/29-pengenalan-class/class.py
5f92b9fe4137569cead0ac51a7dbd0b78e39dedf
[]
no_license
danilsyah/python-learning
27f9a45aa37e99eb34e4c3c0d02e851fc2a50de2
57617a2466616c7ac254aec77562cc6cd8406ae4
refs/heads/master
2022-10-09T08:21:34.621871
2020-06-12T06:30:14
2020-06-12T06:30:14
263,466,200
0
0
null
2020-05-12T23:38:41
2020-05-12T22:28:11
null
UTF-8
Python
false
false
548
py
class.py
class mahasiswa(): # atribute / properti nama = 'nama' # method def belajar(self, kondisi): print(self.nama, 'sedang belajar', kondisi) def tidur(self, kondisi): print(self.nama, 'tidur dikelas', kondisi) def berhitung(self, nilai1, nilai2): print(self.nama, 'melakukan perhi...
7cd044c9112fa48ff2e6b71152b9153f5b4e377d
a24935de6c79b7e4f95cd3ee51fd1bb8c77e5cfb
/interfaz.py
74fe843284d0afdee97a48f1af00847a27987384
[]
no_license
RachitVargas/segmentacion_SO
cc433a3aa8999335c22c0b6a1e89970d1a2e759c
c55de422eed238c1c70666ff2084a16ad51ee26e
refs/heads/master
2023-06-19T16:11:26.615029
2021-07-19T17:39:50
2021-07-19T17:39:50
378,551,495
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
interfaz.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Jun 19 20:56:55 2021 @author: antony.vargasulead.ac.cr """ class Interfaz(): def n_instrucciones(): print('Seleccione la cantidad de instrucciones:') print('1. 1000 \n2. 5000 \n3. 10000') eleccion = int(input()...
e0cecc7a2179eefa02b88f58232a36dee072b8ac
6ad4cc43f830f22ef2ee164d9852ce5c8e7b4385
/persona/models.py
1a2bfb2c44ba2cf0c1404e403400fcd80dc31792
[]
no_license
seb-novoa/Stock
684d6f0dd2dfd03a325cb94e8e3936ead9621023
5d567dc4c00bd9908cb6ed4547e8d0a8a1d722e7
refs/heads/master
2020-03-19T08:47:52.104989
2018-06-08T12:36:44
2018-06-08T12:36:44
136,227,701
0
0
null
null
null
null
UTF-8
Python
false
false
1,252
py
models.py
from django.db import models from django.urls import reverse class Areas(models.Model): CDC = models.IntegerField(null = True, unique = True) Area = models.CharField(max_length = 30, unique= True) def __str__(self): return self.Area def get_absolute_url(self): return reverse('edit_ar...
be22acbdcb4ea9f072bf4f6994b490ad77fc2f1b
b79b85440967211519dc5a344fdaef253084c858
/keyboard_agent.py
4e5c9f7f69dbcd0d2a12c351ae2853143ff7e5ea
[]
no_license
JesperWestell/CS221-Crazy-Eights
96d63bcebba563af83d47f0e20066bfea8ceac4c
1bb74de7a993523d540ab54711d6a3dbecaabcff
refs/heads/master
2021-08-30T03:16:52.284734
2017-12-15T21:03:56
2017-12-15T21:03:56
109,299,994
0
2
null
null
null
null
UTF-8
Python
false
false
2,739
py
keyboard_agent.py
from agent import Agent from crazy_eights_game import Card from game_rules import gameRules,Actions class KeyboardAgent(Agent): """ An agent controlled by the keyboard. """ def __init__(self, index=0): self.index = index self.keys = [] def getAction(self, state): print('Ca...
5b2b82a31b773db8c963bf1fd8e1b6a702bf524a
0d5d26313053a3bee04d19fec7b8aeab142dc735
/mainApp/migrations/0012_auto_20200816_1616.py
b35cb11db28f5cf054f8c7b6914af3cbbe259ae4
[ "Apache-2.0" ]
permissive
asanka9/youtubeAdmin
8e471eb4fd53aef2cffd099d824e9f44e22aeacf
3848027dfd5cf6493eeab9c50a9be9e2fb634b28
refs/heads/master
2022-12-11T01:39:36.099504
2020-09-18T12:56:43
2020-09-18T12:56:43
294,697,523
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
0012_auto_20200816_1616.py
# Generated by Django 3.0.5 on 2020-08-16 10:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mainApp', '0011_auto_20200816_1608'), ] operations = [ migrations.AlterField( model_name='videolessons', name='descr...
df8ed1431a405e913e5da8ea427fed1cb39ad7c4
08ddce92744c78432b69409d197ad1393ca685aa
/ai/ImageAI/图片信息识别.py
8aaab9ef476d73ef339ae651f32f473868add83e
[]
no_license
baliguan163/PythonDemo
71255eb21850134b4b6afb2eeed948cc34326e7a
c4fe1b6ea36bec2c531244ef95c809e17b64b727
refs/heads/master
2021-01-02T08:13:18.809740
2019-05-19T16:28:16
2019-05-19T16:28:16
98,963,901
0
0
null
null
null
null
UTF-8
Python
false
false
1,500
py
图片信息识别.py
#-*-coding:utf-8-*- __author__ = 'Administrator' from imageai.Detection import ObjectDetection #导入 ImageAI 目标检测类 import os # resnet50_coco_best_v2.0.1.h5下载地址 # https://github.com/OlafenwaMoses/ImageAI/releases/download/1.0/resnet50_coco_best_v2.0.1.h5,准确度,比其他的都高 execution_path = os.getcwd() print(execution_path) ...
3df0676fba1ab51b1716a503574bf31f26adec29
677492814c7ee795f0211562d89f1f1e26b63ca6
/scripts/train_CLSTM.py
dd567d3cb0f4b0aeea37890187dc463b07f7374a
[]
no_license
ICRA-2021/interpretable_manipulation
7ebf5beafc76dd3622703f001a0fd2cdf268f974
9375ccd8ddc7b43026af5b3fc1a32643e68fb0b5
refs/heads/master
2023-02-10T17:04:49.425175
2021-01-05T14:01:30
2021-01-05T14:01:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,485
py
train_CLSTM.py
# Imports import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np import os import sys import cv2 import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import time import importlib import utils import image_render_code as imgutils import data...
bc65371571e97bd254e8833e123d0f3d1ab1fd1a
7d3ab62be1076466c7bf323e9ad4ac19e85c9af4
/OOP_basic/test.py
a03c666752a4f4c58adaac4cc360ab91572b6227
[]
no_license
Saurabh-Thakre/My_python_OOP
270de4f776cce0fbe315ec52187a9eb4daed3f81
fe80837b76fffc18affa954a4173686c6b68f25d
refs/heads/main
2023-03-22T11:59:17.700049
2021-03-13T16:55:39
2021-03-13T16:55:39
345,712,433
1
0
null
null
null
null
UTF-8
Python
false
false
524
py
test.py
class Computer: def __init__(self, ram, mouse, keyboard): self.ram = ram self.mouse = mouse self.keyboard = keyboard self.saurabh = "calling" def cal(self): if hasattr(self, "ipad"): return self.ipad else: return "no attribute ipad present...
e86b6e9198cda3ec3be6dab58d372f3053be4374
903ca4b5b575eea965da36203a06f62d4d40c36f
/emas/app/browser/order.py
38bcd72f0e10963e93011aa77d6cb3b2bb7d522a
[]
no_license
Siyavula/emas.app
c4b2e6f604d1cd63c7613f58982277f05a8efcf1
71c9b52e7bbed881d72503653cc0aa6b49cbf882
refs/heads/master
2020-04-07T06:40:05.186431
2017-07-14T13:41:52
2017-07-14T13:41:52
4,492,329
1
1
null
2017-07-14T13:41:53
2012-05-30T07:50:53
Python
UTF-8
Python
false
false
3,589
py
order.py
from five import grok from zope.interface import Interface from zope.component import queryUtility from plone.registry.interfaces import IRegistry from Products.CMFCore.utils import getToolByName from emas.theme.interfaces import IEmasServiceCost grok.templatedir('templates') class Order(grok.View): """ Order f...
0d0d61b865769702b28ad071e23c1765170bba0d
a6781ff2a0fc58788a659e97dc2e1d741d4639df
/2019/day_12/moonmotion.py
5d104c4d0a9b418dfcd9170689a0826eea5d57c4
[]
no_license
LiquidityC/aoc
5dbdc6fde2aaf6927202b961cf935be5e01e81a3
64006511cd78d2775d2fae8e9cfa03c1cf138904
refs/heads/master
2023-05-12T04:32:09.900348
2023-05-04T13:54:04
2023-05-04T13:54:04
225,353,396
0
0
null
2022-06-07T03:23:15
2019-12-02T11:01:42
Python
UTF-8
Python
false
false
2,545
py
moonmotion.py
from itertools import count def gcd(a, b): while (b > 0): a, b = b, a % b return a def lcm(a, b): return a * b / gcd(a, b) def read_moon(line): data = line[1:-1] values = data.split(", ") return [int(values[0].split("=")[1]), int(values[1].split("=")[1]), int(v...
3b603565c919ef6876ce0e0fd38176333bf18b69
78bb5eb64ec5f21b7beb68b6e89ea45f999c6687
/leetoj/191.py
b2ae838d4394dabe5ae235f4febae8734fd969b8
[ "MIT" ]
permissive
R11happy/misc
f003180e5c4b4389765f17f12d228edef7b249b3
1f642e9ee6bdf3e553402b522745c4f4ef2cd922
refs/heads/master
2021-01-23T08:20:58.980636
2016-03-30T15:06:29
2016-03-30T15:06:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
191.py
# Number of 1 Bits # https://leetcode.com/problems/number-of-1-bits/ class Solution: # @param n, an integer # @return an integer def hammingWeight(self, n): cnt = 0 while n: cnt += n&1 n >>= 1 return cnt # print Solution().hammingWeight(11)
22004dde61d054ab7b8eb996976e8d7bfe63ca28
45bcb2593c49088a40f03309da357e417caf6703
/5-3-5-write/fw换行.py
1add31c1e5b52f88179748cfa507fe47473623dd
[]
no_license
chenjingtongxue/python
87f3f704c14b051dc3babc294c46c1ffc9e990f1
b7fb059cbcaed4871278c06fe1d36d04f4b2714b
refs/heads/master
2020-04-14T10:58:55.107079
2019-01-02T07:25:13
2019-01-02T07:25:13
163,801,299
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
fw换行.py
f=open('word.txt','w') f.write('python\thello\nworld') f.close()
5fcd702bed5b838431a861d4513ccd6b27f4373b
0624a2cdf72b565e7d87801137be6af29f7d87b7
/test/DeleteContact.py
a84ee276c22add1d896505ad9f121dfb27ddd0fc
[ "Apache-2.0" ]
permissive
Marya-S/python_training
640da8cc924603b16c1b27ec151a4c4d8c7f800e
6b0a2bfc1e70968127df052139c5f1d88e355e57
refs/heads/master
2020-04-29T13:01:21.644067
2019-05-21T21:49:23
2019-05-21T21:49:23
176,157,659
1
0
Apache-2.0
2019-05-21T21:49:24
2019-03-17T20:36:36
Python
UTF-8
Python
false
false
750
py
DeleteContact.py
from model.contact import Contact import time import random def test_delete_contact(app, db, check_ui): if len(db.get_contact_list()) == 0: app.contact.create( Contact(firstname="Del", lastname="Del", homenumber="84997774747", mobilenumber="89051114512")) old_contacts = db.get_contact_list...
ed31cdf6c47be3be7eefe9f2912ee2a6b7fdf2cc
002d3ae43387a375b91711c134b3de1b120afd46
/lesson1/9UsingCSVModule.py
3cf267cbffcedc5ba55bd4b59f57cc9291f16b64
[]
no_license
xiaonilee/Data_Wrangling_with_MongoDB_byMongoDB
db9568a58eb8de3a9cf6df03819196b15d97f87c
3ba3b59b10b4bd8001be33ec5c54aa2548ec703f
refs/heads/master
2022-04-25T20:46:50.897610
2020-04-27T11:36:24
2020-04-27T11:36:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
9UsingCSVModule.py
import os import pprint import csv DARADIR = "/Users/xiaonili/lesson1/" DATAFILE = "beatles-discography.csv" def parse_csv(datafile): data = [] with open(datafile, 'rb') as sd: r = csv.DictReader(sd) for line in r: data.append(line) return data if __name__ == '__main...
5fb4c71adff09fbf978f9298e04d61e1d00807b1
fb59e1de10ec142fad20b84ed037c8bc1982d267
/test/check.py
79d12f64369a3a450c557cadb872beff8f84a123
[ "MIT" ]
permissive
kp-forks/moneycontrolPy
7c9f60ac7240e39abe0c227f4d79bf482bc4d05c
6e56748938ad86b2605eee6443cd8137fd5fc3f7
refs/heads/master
2022-11-27T16:40:48.404054
2020-08-08T12:10:51
2020-08-08T12:10:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,551
py
check.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Aug 5 12:03:57 2020 @author: akimosi """ from moneycontrolPy import mcp import time import json start_time = time.time() root_dir = "/home/akimosi/Documents/moneycontrolPy/" bundle_size = 10 api = mcp.API() api.DRIVER_PATH = root_dir + "chromedriv...
f2e1163d6cc21e1ee994f96f983bc239ffcd8f74
fdaff9080b1920c2daf92dee954298d2b2f2fa41
/seguridad.py
622a11c749d6b8eef502e8b4a2f1f4081d6aef01
[]
no_license
Franciscoj04/Proyecto2_202006716
e335375062919df5ed971c789ab01ad2a3491640
10a652935a34ad55eaa97b33d5f084016cf4cd17
refs/heads/main
2023-09-02T19:20:16.056806
2021-11-07T22:50:46
2021-11-07T22:50:46
425,327,787
0
0
null
null
null
null
UTF-8
Python
false
false
1,651
py
seguridad.py
import defglobal as dg ################################################################ ## La funcion accesosistema, busca en cada objeto: ## Admin, Doctor, Enfermera o Paciente ## si existe el usuario. Si lo encuentra regresa los valores ## result=1 y id 0 para Admin ## def accesosistema(user, pa...
3fad91252f91a94b72c17243928aaf15268330bd
9cf16b23ef9a9113346ad1d228cd558c830ac563
/hamlpy/hamlpy.py
b10769d1da30fd76c47beea22cb15044b96c0c39
[ "MIT" ]
permissive
albsen/HamlPy
95d2bf420750bddaa3b347e986ea28e03b9c7b1a
41b1aa0bc798c9ce030cef8e0e7d48842cda6353
refs/heads/master
2020-12-25T02:01:51.461351
2011-09-26T13:16:55
2011-09-26T13:16:55
2,201,748
1
2
null
null
null
null
UTF-8
Python
false
false
1,021
py
hamlpy.py
#!/usr/bin/env python from nodes import RootNode, create_node class Compiler: def process(self, raw_text): split_text = raw_text.strip().split('\n') return self.process_lines(split_text) def process_lines(self, haml_lines): root = RootNode() for line in haml_lines: ...
30f43a465dc4ff9d7bbea10460432dfd140f5fe3
1bd3076902117867ec048210905195ba2aaaaa6b
/exercise/leetcode/python_src/by2017_Sep/Leet368.py
18c86c3aac155509dda01c29092d5f22f29fce6c
[]
no_license
SS4G/AlgorithmTraining
d75987929f1f86cd5735bc146e86b76c7747a1ab
7a1c3aba65f338f6e11afd2864dabd2b26142b6c
refs/heads/master
2021-01-17T20:54:31.120884
2020-06-03T15:04:10
2020-06-03T15:04:10
84,150,587
2
0
null
2017-10-19T11:50:38
2017-03-07T03:33:04
Python
UTF-8
Python
false
false
1,138
py
Leet368.py
class Solution(object): def largestDivisibleSubset(self, nums): """ :type nums: List[int] :rtype: List[int] """ if len(nums) <= 1: return len(nums) nums.sort() record = [1, ] * len(nums) indexRec = [[i, ] for i in range(len(nums))] ...
5f13118815c6e6c1458fe58f677995e48b31b8f4
8cf7b5aa4627652bf6c98717d8bcea82eaec3454
/page_objects/LoginPage.py
e72fe7e327c202d024f5dcee88bd6cd3a1bd9039
[]
no_license
qaubraine/ubos_blend_admin
8b8a56cf89a5ad85476bf208053ad566276e33b4
a495e6d24284781365669f29cfb0708a63dbdd16
refs/heads/master
2023-04-30T15:48:37.163508
2021-05-18T09:55:28
2021-05-18T09:55:28
360,479,404
0
0
null
null
null
null
UTF-8
Python
false
false
4,300
py
LoginPage.py
import allure from selenium.common.exceptions import NoSuchElementException from locators import Login, Admin from .BasePage import BasePage from time import sleep class LoginPage(BasePage): def login_user(self, email, password): with allure.step("Select the type of account - User"): self._wa...
94ba0bf359287436cd70c65d0163697a08c085e2
04576fc68868ed37794065b59be1df5c3467494c
/python/config.py
8f42560d83e37804974f21aa0be3d75d8ff12843
[]
no_license
SCandWZH/data_augment
f5cf1cb413ffb47c5cb1d98b4cab11797d80d5bd
cc01779618f969190f9397c70a60d22cb4e2ce76
refs/heads/master
2020-05-03T14:51:48.725196
2017-04-19T07:45:18
2017-04-19T07:45:18
178,689,876
1
0
null
2019-03-31T13:11:52
2019-03-31T13:11:52
null
UTF-8
Python
false
false
720
py
config.py
INPUT_DIR = '/path/to/data/similarity/original/' OUTPUT_DIR = '/path/to/data/similarity/augmented' IMAGE_LIST = '/path/to/data/similarity/augmented/image.list' TRAIN_LIST = '/path/to/data/similarity/augmented/train.list' VAL_LIST = '/path/to/data/similarity/augmented/val.list' DEBUG = False TARGET_WIDTH = 64 TARGE...
00946b62f6aec77412e8895e4d038ea372f6a81d
a50f77ab5a9ec78801c6bd1c4c001babf8ee293c
/code.py
e2d203642cce0168625644820198573a7d0f7bfe
[]
no_license
namivr96/Stock-Prices-Prediction-
813853b19739ec66f52ac550e7465b25a5d3b255
2b3e88162392871592b5c43ed5470b37df4b2de4
refs/heads/master
2020-04-13T23:55:58.996069
2018-12-29T15:17:42
2018-12-29T15:17:42
163,519,680
0
0
null
null
null
null
UTF-8
Python
false
false
2,851
py
code.py
import numpy as np import pandas as pd from keras.models import Sequential from keras.layers import LSTM,Dense from sklearn.preprocessing import MinMaxScaler import matplotlib.pyplot as plt from sklearn.metrics import mean_squared_error #Function for processing training and testing data def getdata(data,ln)...
73a1ce54ef237e63d84cd595b5bea42410397107
e93666d9f4c132f50eb34852a51aa56e81d310fb
/1/p_meeting.py
bacdb6c4cd5356540629646d2834ce403da8da18
[]
no_license
Rockarya/Graph-Plotting
67365202d060273a80dc6218d2cd016a81f60754
e9562b2107aa4abe130b07868626dc96bd49fe79
refs/heads/master
2023-02-11T12:56:55.741868
2021-01-09T13:09:05
2021-01-09T13:09:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
p_meeting.py
import math import random import matplotlib.pyplot as plt sim=2000 #number of times we have to do simulation n=100 #number of steps taken by drunken def comb(n,r): #combination function nCr return math.factorial(n)/(math.factorial(r) * math.factorial(n-r)) #Plot for Probability th...
331f52fd70755dbe5ce677daf1492edefef926a5
35b92a2c1f5fc64e41414fb0ce3271747d28756f
/praw_api_filter.py
4ca031dd20cc0861a8643cc12c5b6ff9a6a590e7
[]
no_license
Yukta-Jaiswal/hacktoberfest2020
c81c3bf8c4ee2d05b7b59932ca541c0b39612ba4
3cc8e4996ecbf9be83b51574c20ec237d27deb02
refs/heads/master
2023-09-05T19:07:28.802903
2021-10-28T04:30:34
2021-10-28T04:30:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,528
py
praw_api_filter.py
import praw #importing api credentials: from jb_creds import reddit_creds import random reddit = praw.Reddit( client_id = reddit_creds['client_id'], client_secret = reddit_creds['client_secret'], password = reddit_creds['password'], user_agent = reddit_creds['user_agent'], username = reddit_creds[...
eeed9a17abef5381dbcb91c1993d1ee34bdddeed
0ed598dbaf0ca3eb51af1b7388b7ff81a292da21
/strategies/default.py
f38cd6f7662060005b79591667f8b301d092e6c9
[]
no_license
echo-ray/trading-bot
f92fd261ebfaa49c72cdba5c8585a259ebfa47da
478922741971e890deda2b064c2be8b8764c04a5
refs/heads/master
2020-04-27T16:01:41.751226
2019-03-02T14:19:15
2019-03-02T14:19:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,461
py
default.py
from termcolor import colored from core import split_pair, round_down, float_to_str, calculate_buy_count, calculate_sell_count import os from lib.config import Config args = Config.get_args() transitions = { "1": "1.3", "1.3": "1.6", "1.6": "2", "2": "2.3", "2.3": "2.6", "2.6": "1" } leftExc,...
f7db396191acdb96b66d271dbe0097a7de3a1437
8c7017f17098523808d0b9488abaae2f9e891283
/details/urls.py
c8e91a30c0855fc92fd7fcd334cd0b20995c4625
[]
no_license
iamsangeeth/django-itssangeeth
d2eb293da6b50e41b9134d3d21fd8acc9544bf26
d4e85cf47ca74400b8515b68f046b9a0d192e536
refs/heads/master
2021-01-24T11:39:30.050450
2018-01-12T15:39:26
2018-01-12T15:39:26
70,218,910
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
urls.py
from django.conf.urls import url from .views import aboutme, contactme, sentmail app_name ='details' urlpatterns = [ url('^aboutme/$',aboutme,name='aboutme'), url('^contactme/$',contactme, name='contactme'), url('^contactme/sentmail/$',sentmail, name='sentmail'), ]
5e32cd0268fff12f99a14012d1609e4eb087431c
a5e2e791c82112c53f925469e4fcba22c8ee5ca4
/pcgrandom/__init__.py
3799198ce45f6630eaa503d2c09bd39d911d5983
[ "Apache-2.0" ]
permissive
mdickinson/pcgrandom
d8a1b4d1543e65ddd1e7b9b45cc105587c60634b
cf412356a7c93478646dbe1d84fbc27afffcc2f2
refs/heads/master
2021-01-01T06:13:48.166860
2017-10-23T15:52:25
2017-10-23T15:52:25
97,385,977
1
1
null
2017-10-23T15:52:26
2017-07-16T13:41:33
Python
UTF-8
Python
false
false
3,368
py
__init__.py
# Copyright 2017 Mark Dickinson # # 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 writing,...
ab29246e0de6e1f16e1b3a8ab84c77b21378fed9
40fe86858e5225608274383d4f70411091d2ceb5
/python-for-data-science-intermediate/Python Data Analysis Basics-331.py
18fa50b0e0bd170265f4a796b317bf108db91a24
[]
no_license
AsifAbdullah2012/Data-Analyst-In-Python_dataquest
8db098b2c55ea57b3ddc9aa977f9cda94334089d
7b9d930ee4c4e83d6f3e5bddd0f9ecde3dbb75e1
refs/heads/master
2022-04-27T00:51:23.690223
2020-04-28T12:55:57
2020-04-28T12:55:57
259,634,520
0
0
null
null
null
null
UTF-8
Python
false
false
2,989
py
Python Data Analysis Basics-331.py
## 1. Reading our MoMA Data Set ## from csv import reader # Read the `artworks_clean.csv` file opened_file = open('artworks_clean.csv') read_file = reader(opened_file) moma = list(read_file) moma = moma[1:] # Convert the birthdate values for row in moma: birth_date = row[3] if birth_date != "": birth...
0416c7dafe8db8508f718e13bec69c0505de9851
ffbe98a83275c520bf3776432ee092030db91437
/readImagesAndLabels.py
beefbc6f7f3b203eb8b20964c18986467580fb92
[ "Apache-2.0" ]
permissive
vimithamanohar/TicketToRide
c35b7bef413259ac55d1b0d3027b356c8ae18d25
d3fb691e80fd425e4ab6df037d877d1b701a3c18
refs/heads/master
2020-03-19T02:56:32.643224
2018-06-01T06:54:35
2018-06-01T06:54:35
135,677,494
0
0
null
null
null
null
UTF-8
Python
false
false
557
py
readImagesAndLabels.py
import os from numpy import array from skimage import transform from loadDatas import load_data_labels path = '/home/ubuntu/ttr/TicketToRide' labelfilename='threeTestSegment.txt' [images,labels]=load_data_labels(path,labelfilename) print(images.ndim) print(images.size) print(images[0]) print("labels") #Print the `...
aedfcd94cee038dbf5c95d6fd59bb5f5987708fb
186c6a932ef811dc7ad1db449281db30b1d3a548
/recommandation.py
d1c3c74918537fbdebc3796fe46852a58f572490
[]
no_license
lecalvmy/Netflix
0ff037b0552d35238517904ad8240ee3760cd9e8
f5e7677e605886b27ea947dc81ba2bdba26e55a2
refs/heads/master
2020-04-24T09:39:23.427138
2019-03-01T17:16:11
2019-03-01T17:16:11
171,868,943
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
recommandation.py
#!/usr/bin/env python3 import numpy as np matrixA = np.loadtxt('matrixA.txt',delimiter=" ", dtype = int) a = np.where( matrixA != 0) ligne = a[0] colonne = a[1] def produitScalaire(U, V): somme = 0 for k in range(len(U)): somme += (U[k] * V[k]) return somme def laplacien(A, U, V, ligne, colonne,...
94530bba3a303ed00877cab9e505f035cd957c2d
59bf7a110813dd826fb92c01a3c93b8bc43435bb
/warmup_project/scripts/visualization_port.py
c2a2728a0bb9d7313875dcdd252237ab92492d24
[]
no_license
nonas-hunter/warmup_project
c7a9c817bd2dcb8fa300bf6f87be360088896574
32365982b7f35efc0e11ec2bd8951e6419fa1c34
refs/heads/master
2022-12-18T17:05:00.597100
2020-09-28T15:34:28
2020-09-28T15:34:28
295,853,496
0
0
null
2020-09-15T21:29:22
2020-09-15T21:29:22
null
UTF-8
Python
false
false
904
py
visualization_port.py
#!/usr/bin/env python3 from visualization_msgs.msg import Marker import rospy rospy.init_node('test_vis') vis_pub = rospy.Publisher('visualization_marker', Marker, queue_size=10) marker = Marker() marker.header.frame_id = "base_link" marker.header.stamp = rospy.Time.now() marker.ns = "my_namespace" marker.id = 0 mar...
2a55b9a1660f823cb7d33a75f8cf489457950372
50084bf941b61791ac4def5b8cff950e7ddfdd15
/Additional Topics/Timing/extras/03-import-or-from.py
3b0df06ebed5a40d00187a38893849e85326e130
[]
no_license
gjq91459/mycourse
6904ad191dc6128fb853eb8bdb1b200a46b2059f
211d7707e41f50495375b4a1dfc32b62b76b317b
refs/heads/master
2021-01-21T10:34:44.841349
2017-03-01T11:17:52
2017-03-01T11:17:52
83,456,979
1
0
null
null
null
null
UTF-8
Python
false
false
360
py
03-import-or-from.py
from timings import Timings t1 = Timings(title = "import", setup = "import math", statement = "math.sqrt(50.0)") t2 = Timings(title = "from", setup = "from math import sqrt", statement = "sqrt(50.0)") Timings.titles() t1.run(100000) t2.run(100...
c9e0952bbb828127f09f388da8faf98f188d5a79
48adc91613c9c6d88c28d66f18b4b7163636c0bb
/server/gopi_pid.py
3e89688595de62a36e0c5ebb3155f17ebfbcd268
[]
no_license
sumsted/gopi
1ebf998e7c3dadf9eb39b55cd69fd6c676ba4133
7de52e218f923cc1e2c7f23dd041d3914dc23469
refs/heads/master
2016-09-05T21:42:48.926445
2015-09-14T02:05:36
2015-09-14T02:05:36
40,834,646
0
0
null
null
null
null
UTF-8
Python
false
false
3,148
py
gopi_pid.py
import multiprocessing from bottle import get, route, request, response, run, post, debug, view from pidcontroller import PidController from tools import handle_padded import common_views debug_mode = True port = 8081 # Start the pid controller process action_queue = multiprocessing.JoinableQueue() results_queue = ...
ced5c334ec18dbd09b7759a74cd9b77f42480c49
dda66d633b3f8f3397534cdcb2494440b42dde08
/school/appi/models.py
f053c0846e9d79afd5395333c6aa1fa1444c4724
[]
no_license
ZayraJero/School-python-django
62b4a30fd10117e366e3da0439d2e068da2cebc2
8669ab759571fa573540d8a31a67b34746edbca5
refs/heads/master
2023-01-14T21:46:45.609398
2020-11-22T20:27:27
2020-11-22T20:27:27
306,520,880
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
models.py
from django.db import models # Create your models here. class Bootcamp(models.Model): name = models.CharField(max_length=255) def __str__(self): return self.name class Koder(models.Model): full_name = models.CharField(max_length=500) email = models.EmailField(unique=True) bootcamp =...
22f017242b6421304386378eaccebf5ce5e7944b
514836e177e508d77ec269270332a859b927aa8d
/netcdfToCSV.py
4f3c2a2adf153d39e322292190ebedbc6bdbc2a5
[]
no_license
ChaidarAji/netCDF4-to-CSV-using-Python
ae2ee808bee1015ae8d2b9f34f31bfc6ca5b1f0f
7ecd50eb1ff67debcd9c5fb23467b1296770393e
refs/heads/master
2020-12-19T10:18:44.463052
2020-01-23T02:02:37
2020-01-23T02:02:37
235,705,351
1
0
null
null
null
null
UTF-8
Python
false
false
2,332
py
netcdfToCSV.py
# -*- coding: utf-8 -*- """ Author = Chaidar """ import netCDF4 import pandas as pd data = netCDF4.Dataset("path to your netCDF data") #see the all data variable print(data.variables.keys()) #call the data lat = data.variables['latitude'][:] lon = data.variables['longitude'][:] thetao = data.variables[...
9503b84f233c2b6d684f90b06e1f9f8a54b2ab60
a106fc0409b46d785f44c3d6e896d2eba40d649d
/ui/eyetalk_ui.py
87ad9b7f0b017c6caf7bbeb59a6eaa265f6844f2
[]
no_license
EyeTalk/eyetalk
b5536252fe734ba52d377c519766ff8751448f34
2f7d9d0a62f951e7e9b087a0a13b6eaabd084cd6
refs/heads/master
2021-05-03T11:04:07.194515
2018-04-17T19:09:00
2018-04-17T19:09:00
120,544,365
0
0
null
2018-04-17T19:09:01
2018-02-07T01:07:07
C++
UTF-8
Python
false
false
2,194
py
eyetalk_ui.py
import ui.output_text from PyQt5 import QtWidgets from PyQt5.QtWidgets import QDesktopWidget, QStackedWidget from PyQt5.QtCore import QPointF from ui.calibration import Calibration from ui.main_menu import EightButtonMainMenu from ui.keyboard import EightButtonKeyboard from ui.yes_no import TwoButtonYesNo from ui.gree...
23e764960d3c5d9ab19cf260b9861bd1b7751c33
91f971e099640146877dd862006deb508e51ccb0
/finalProject/home/admin.py
de59fc99b141dc74ec5590ee4513249608a07b3b
[]
no_license
0dminik/python3-django-Web_APPS
1a805c1597ad539e7283fe74181492e6cae85bfe
735530963d99b661048d7c81f78e5da85bed5d0f
refs/heads/master
2021-07-11T06:36:49.526394
2017-10-18T12:06:53
2017-10-18T12:06:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
126
py
admin.py
from django.contrib import admin from home.models import MyModel # Register your models here. # admin.site.register(MyModel)
89a510e4ba49cedc0ae5efd2bcedf418c2aa3123
87a14ea4bdc4c149304dc3acad819181264dcf2f
/src/panoramic/auth/__init__.py
1ad80b90aa0cf1a9ece454f22c08e4c0ba5debc1
[ "MIT" ]
permissive
panoramichq/panoramic-auth-py
2924dcbb4c19044c749cedb23693323f18394833
ad59a305582cc49b0febbe24bc3a61bb0ce7536a
refs/heads/master
2023-01-04T19:12:32.766800
2020-11-02T16:22:46
2020-11-02T16:22:46
285,325,978
0
0
MIT
2020-11-02T16:22:47
2020-08-05T15:11:04
Python
UTF-8
Python
false
false
62
py
__init__.py
from panoramic.auth.client import OAuth2Client, OAuth2Session
1ded386d900ec4275f2ac3ea7afc27476a3ae337
7c251c3575ccb71497dd7cfaa17d44c4aee046f5
/tests/tes_str_method.py
fbd5f4fe6f8a23428279c7807c7d7cebc751d213
[ "Apache-2.0" ]
permissive
csy-uestc-eng/algorithm_python_implementation
313f19dff9cf9caaa9251eba346666c6fd69f495
f703b351fcf64669faaa71d0dbe9764f81aadfdc
refs/heads/master
2020-09-07T10:18:46.822123
2020-08-22T06:30:55
2020-08-22T06:30:55
220,750,296
2
0
null
null
null
null
UTF-8
Python
false
false
335
py
tes_str_method.py
from unittest import TestCase import string class TestNumberComplement(TestCase): def setUp(self): pass def test_islower(self): self.assertTrue("A123".isupper()) self.assertTrue("a123".islower()) self.assertTrue("Aere233".istitle()) print string.lowercase s = "a...
fc74cb73259ce775b21675d1919aa0625d283aa1
c5542154b44f1b228cdadeaf44c6a5998ed37ed4
/base/dataType/21money.py
f58dc62621cd3e550f1601b7f000a24e3639b143
[]
no_license
ThrallOtaku/python3Test
a31a2de1576b3a3c1062a7d6908119d7cbf21b36
c62e6024bbbeafd396b68e40332991758914ba0b
refs/heads/master
2020-03-07T22:45:47.403999
2018-06-08T10:19:42
2018-06-08T10:19:42
127,763,269
1
0
null
null
null
null
UTF-8
Python
false
false
134
py
21money.py
#10.84 #11.83 #10.84*10=108.4 -108=0.4/10=0.04 data=eval(input("输入RMB")) print( ( data*10 - (int(data*10)) ) /10 )
60a65609adcb60fa512a521882737e3db2cd8fa7
c164999b08571cda5d8c5b8ec5567dcc195a6611
/log_app/views.py
76ba47bbfccb39c5415dbccb83a873efa7071e30
[]
no_license
sixgun200/PythonProject
a608245db05be8757f12ef9e1fafcbf028ac1703
c46fd07ead66645b3c514e04aafadf9e8049b290
refs/heads/master
2021-05-25T20:31:37.390150
2020-04-07T20:56:33
2020-04-07T20:56:33
253,881,472
0
0
null
null
null
null
UTF-8
Python
false
false
4,860
py
views.py
from django.shortcuts import render, redirect, HttpResponse from .models import User, Client, Job #Project, Category from django.contrib import messages import bcrypt def login(request): return render(request, "login.html") def register(request): return render(request, "register.html") def registerUser(req...
ac0182126605f8548fd4f82acd50d19a7ad08c77
043d683ce4baeecfa85a724614730a24f1ac38eb
/djangoexpack/utils/humanize.py
9c7935cba2e6e62b19175cbcf9f69b938d7af86b
[]
no_license
nekonaq/djangoexpack
9894e4d6a8896f240cbd9e6f2ea787e03e02a849
d65da4708987e531d1192f605c9c3b5d2e3a1754
refs/heads/main
2023-08-29T09:12:01.531705
2021-09-30T04:45:52
2021-09-30T04:45:52
275,502,642
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
humanize.py
from django.contrib.humanize.templatetags.humanize import NaturalTimeFormatter class NaturalTimeJaFormatter(NaturalTimeFormatter): @classmethod def string_for(cls, value): ret = super().string_for(value) return 'と'.join(ret.split(', ')).replace('\xa0', '')
71d777653ccb9e9c081d772ee5d0598c7239ddb8
1e710f5ddc4d4b89ff601412e4a7e97d92423fe3
/lesson_2/example_2_4.py
13d45c1f45621314ef40d8dfc7966ee6b4139c37
[]
no_license
Evgeniy-Nagornyy/Python_1
b8b176eafa83d7c7962ee244a9cecef4bbb0b601
8ce10ea075f5336460e85a6d75e89e28f377d19f
refs/heads/master
2022-10-22T09:23:52.062377
2020-06-10T13:27:23
2020-06-10T13:27:23
264,262,317
0
0
null
2020-06-09T23:32:21
2020-05-15T17:54:35
Python
UTF-8
Python
false
false
161
py
example_2_4.py
user_words = input('Введите слова через пробел - ').split() for i in range(len(user_words)): print(f'{i + 1} - {user_words[i][:10]}')
162b7065285ddcb39fbc7e378e9444d3252d2fa9
a058d06d8ce5036cf73a5a83b9e604d9b042df19
/MCTS.py
43ec4444b11ef7ff6535445c1e2a75706295a332
[ "Apache-2.0" ]
permissive
Coordi777/Reversi
1bb4a89b3652792312b640b567404f7142c0040b
f0f3b19ca59858433f57a23937b87ad0d6076a41
refs/heads/main
2023-07-30T00:36:59.620161
2021-09-22T09:14:57
2021-09-22T09:14:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,679
py
MCTS.py
import random import math import time BOARD_SIZE = 8 PLAYER_NUM = 2 COMPUTER_NUM = 1 MAX_THINK_TIME = 60 direction = [[0, 1], [1, 1], [1, 0], [1, -1], [0, -1], [-1, -1], [-1, 0], [-1, 1]] # 初始化棋盘数组 def getInitialBoard(): board = {} for i in range(0, BOARD_SIZE): board[i] = {} ...
3b673aef952eac9a8df277bb8fec7fcf68545a1d
5190b06f5d7ab9f4946b068d2abd6500970a8aac
/source/core/scheduler.py
da18fe03042e15fc9e011cda5f64495a046dbd88
[]
no_license
OrangeBot/PersonalAssistant
24c7729585ab4b6e498653e639ca3be4524428e9
0f5b01847629020587ff1eaf824169d51957dfe7
refs/heads/master
2020-04-11T06:59:42.375027
2019-04-17T09:45:07
2019-04-17T09:45:07
161,598,297
0
0
null
null
null
null
UTF-8
Python
false
false
2,254
py
scheduler.py
# -*- coding: utf-8 -*- # # try to emulate necessary scheduler behavior import random import time import sortedcontainers from pyutils import WARN, to_utc_seconds class CallbackTask(object): def __init__(self, callback, target_time=None, task_id=None, is_recurring=True): self.callback = callback ...
b3cee14ff558a9a295a337175c2f58bd76d2030f
ee26791e217b43a97b1172107e13ddec84043094
/knpy/bins/divisions.py
56ad0ce8d794571f953beb0b6adebd136c306920
[]
no_license
knaidoo29/knpy
ef4ebc61eb1dbd6d2d402d4d31e69b731e400a17
75b82b02a5b6a2f72c2ec292ade7364f293058fe
refs/heads/master
2023-03-11T11:31:25.228008
2021-03-04T18:00:44
2021-03-04T18:00:44
295,716,580
0
0
null
null
null
null
UTF-8
Python
false
false
1,986
py
divisions.py
import numpy as np def divide_1D(x, divisions, ranges=None, epsilon=1e-6): """Returns division indexes for x. Parameters ---------- x : array Dataset used to divide the data. divisions : int Number of divisions to use. ranges : list Ranges of the dataset. epsilon :...
f41d8c84998d6f81b770224839651211f53101bc
8eb9b1ea475036f4b84b6d8ad3cf013196a199fe
/pythonProject/tempCodeRunnerFile.py
ea5b95e413191687acb9a3a95acb3c60c149af6a
[]
no_license
zj56/runoob-git-test
2fa68450ff273255d3d666b1fcfb74729ccacf24
7105f0e7571f59564e601654dd8e1a013b5be6ec
refs/heads/master
2023-08-05T14:49:24.504091
2021-09-07T15:35:41
2021-09-07T15:37:25
404,022,523
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
tempCodeRunnerFile.py
if data.iloc[i,'B8']<1970: line.add_yaxis(series_name="y1线",y_axis=data.iloc[4,2:10], is_smooth=True,symbol_size=1,color='red') if data.iloc[i,'B8']>1970 and data.iloc[i,'B8']<1980: line.add_yaxis(series_name="y1线",y_axis=data.iloc[4,2:10], is_smooth=True,symbol_size=1,color='black')
c1e2f97c900210e0fda6cde4f160894ff3fb20df
bb1d74e953ca09094c6305766091d7f460594f67
/63股票的最大利润.py
09f56c70b1563705a61350ed44115fbb76fff47a
[]
no_license
biyoner/-offer_python_code
0298c53dfc41f3d12268ebfe00508a95b6902489
25ce92ecc413ba6defb950d30eda61457068d586
refs/heads/master
2020-04-03T05:23:43.110504
2018-11-25T13:54:38
2018-11-25T13:54:38
155,044,110
0
0
null
null
null
null
UTF-8
Python
false
false
907
py
63股票的最大利润.py
# coding = utf-8 # author: Biyoner def MaxDiff(numbers): if len(numbers)<=0: return 0 minimum = 10000 maxDiff = -1000 for i in range(len(numbers)): if i>0 and numbers[i-1] < minimum: minimum = numbers[i-1] if numbers[i] - minimum > maxDiff: ...
ba5b3483743e1c66ea40e33070fc602db19ea401
bf4178e73f0f83781be6784d7587cb34a38d6edd
/platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/common/calculators/calc_frame.py
01f74f0fef0e01bcc5552073dea087150758bc1e
[]
no_license
kolbertv/ZigbeeSiliconV3
80d70515e93be1413c24cdcb3485f50c65a1564b
ab0bd8d4bb6c1048adef81d0e66d96006c2fabd9
refs/heads/master
2023-01-02T07:18:01.393003
2020-10-25T15:33:08
2020-10-25T15:33:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
35,417
py
calc_frame.py
""" This defines generic frame/packet configurations and calculation This file also houses calculations for fields that are affected by multiiple blocks: calc_blockwhitemode(): calc_white, calc_fec """ """ Calculator functions are pulled by using their names. Calculator functions must start with "calc_", if they are...
741b5a202ca8e39dc2d150dc174a3a93bf9c2dfc
7feb18d3f9f54782e129afdaecc203b6367a12a5
/utils.py
10b7ab84d7d2d347fc07498b64af21c9f8cb3870
[]
no_license
4rshdeep/go-back-n-protocol
744c10fc91cdcce96b3c44bf4b96e9d944b3448f
d0705df2fa896ea13f46b71358e243126ed3982e
refs/heads/master
2020-03-29T12:33:33.186008
2018-09-30T17:46:30
2018-09-30T17:46:30
149,905,777
1
0
null
null
null
null
UTF-8
Python
false
false
1,419
py
utils.py
import random import socket import time # functions to send and receive packets DATAFRAME_LOSS = 800 def send_packet(packet, sock, addr): if random.randint(0, 1000) > DATAFRAME_LOSS: sock.sendto(packet, addr) else: print("packet dropped") return def send_ack(packet, sock, addr): if ran...
c7b537cdf6d7a69fbbbe894c2a2ba713128325fe
89bd235af2a66320f9805fa29fafb91901f3ed69
/SmartCarParkingSystem_Rpi/SCPS_Rpi.py
dd6e95f123734c474ca2623d86a9556f024fa278
[]
no_license
1997priyam/Smart-Car-Parking-System
652ce717f4c36536a3cea5c22a2ebdb26e29a2a9
10cb11523f122b1f1b4f6e0fc04a239f086acf82
refs/heads/master
2020-04-05T15:10:46.777965
2019-01-30T03:53:18
2019-01-30T03:53:18
156,957,005
0
0
null
null
null
null
UTF-8
Python
false
false
1,331
py
SCPS_Rpi.py
import paho.mqtt.client as mqtt import requests, json import copy new_state = {'A1':'0', 'A2':'0', 'B1':'0', 'B2':'0'} old_state = {'A1':'0', 'A2':'0', 'B1':'0', 'B2':'0'} MQTT_SERVER = "127.0.0.1" path_1 = "/node1/data" path_2 = "/node2/data" server_url = 'http://localhost:3000/data/1' headers = {'content-type': 'app...
f4e6259ff8e4806b6c1ee6162f930754452f2c6d
f67bb3490c2d3d5d2848e3adee36693e207f951a
/aeon_cinema_scraping.py
0aa931a29e5c47a28e96cf2c1a3757fa009a5304
[]
no_license
ufgm000/python_apps
16519571b8f6f8773dc2ec63633340080b2eae8b
87f787573bfa3b0b77a31e60d11f4f7ffdce3daf
refs/heads/master
2020-07-15T07:58:18.567685
2020-03-17T14:30:13
2020-03-17T14:30:13
205,517,383
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
aeon_cinema_scraping.py
import requests from bs4 import BeautifulSoup import csv load_url = "https://www.aeoncinema.com/cinema2/kakamigahara/monthly/index.html" html = requests.get(load_url) soup = BeautifulSoup(html.content, "html.parser") #table table = soup.find_all("table", {"class":"detail_monthly_movie"})[0] rows = table.find_all("tr...
704c45ff519e2f6ffd1785cd282a9a5ed264c25b
3c27b86f0165ab24e6b04d505e8471e032594f0b
/pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGLContext/events/__init__.py
228f0f5f8af834325e4360c5d64d2329131cf7b0
[ "LicenseRef-scancode-warranty-disclaimer", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LGPL-2.1-or-later", "GPL-3.0-only", "LGPL-2.0-or-later", "GPL-3.0-or-later", "MIT" ]
permissive
alexus37/AugmentedRealityChess
8b9ccdfffc8aee93a86a44b8ef53c034ec6a10d1
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
refs/heads/master
2020-12-24T13:29:21.967833
2020-02-27T09:38:50
2020-02-27T09:38:50
31,264,034
1
1
MIT
2020-02-27T09:38:52
2015-02-24T14:36:34
Python
UTF-8
Python
false
false
448
py
__init__.py
"""Event classes and event-processing mechanisms This package defines a set of "local" event classes which are to be used by client applications. These include keyboard, keypress, mousebutton and mousemove events. The package also defines a set of modules which translated from GUI events/ callbacks to the local even...
adb3b43981bc4e36ebf0058b9d195ef91ecbb091
9ca6df194f9def6076a65237f0b89ba5fe16fc9a
/lingcod/straightline_spacing/models.py
91ccc7b3406e1d4f1f964427419e15aeb61a72b5
[]
no_license
FlavioFalcao/marinemap
4332f80e9957cbb522e995a0b851483ff80215ae
c001e16615caa2178c65ca0684e1b6fd56d3f93d
refs/heads/master
2021-01-18T09:26:34.979627
2014-01-04T00:36:23
2014-01-04T00:36:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,107
py
models.py
from django.contrib.gis.db import models from django.conf import settings from django.contrib.gis.measure import A, D from lingcod.unit_converter.models import length_in_display_units, area_in_display_units class SpacingPoint(models.Model): name = models.CharField(max_length=200) geometry = models.PointField(s...
ff9528c7589c49024349795776eef60a9f39bb19
a95182279ca139ee1edbf9adc2d10228765da55b
/freyalove/urls.py
ae080c00bc7125014329ddf0220a7fadd4a8cc5b
[]
no_license
cofounders/freyalove
e2bc54d05d2688449e0caf7f4e9e595de308d90f
8419b506a268d14297c585f8cd71f8b7294f241d
refs/heads/master
2021-03-16T09:26:09.550867
2012-10-30T22:06:02
2012-10-30T22:06:02
4,648,203
1
0
null
null
null
null
UTF-8
Python
false
false
3,810
py
urls.py
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Django Admin urls url(r'^nimdatux/', include(admin.site.urls)), url(r'^grappelli/', include('grappelli.urls')), # ...
30133cb4507eea6ce2d9421300f1767204cdd76e
0dbd8830972cb7644f484eec5cd5c4777de6e38a
/springDroid.py
24164083244537624f4471f89027d027edffa14d
[]
no_license
pikuch/AOC19
844e6cb1b0a81b1ab72bc4563a85a82c11dd2442
b3cbea9ffd518efcd32103da18ed587286959d10
refs/heads/master
2021-07-09T21:45:59.068573
2020-12-30T09:19:53
2020-12-30T09:19:53
226,517,945
0
0
null
null
null
null
UTF-8
Python
false
false
1,509
py
springDroid.py
from intcode import Intcode class SpringDroid: def __init__(self, data): self.brain = Intcode() self.brain.load(data) def walk(self, code): for line in code: for char in line: self.brain.add_input(ord(char)) self.brain.add_input(ord("\n")) ...
93e3e1c851ffc7f4400d99ab6b7cfb7f11e515ee
4fc901940dbe914ccb134ac7458ff8c38e77fff8
/Graph.py
732e2e7a38141afa336cdb917ac9b533e7b9ed2b
[ "MIT" ]
permissive
lukemerrett/PathFindingInPython
43e075914a9e4cb424a4d3b11cd0c981fec0658b
9efa4d327640539374b95001a7dc7375933da405
refs/heads/master
2021-01-21T05:05:53.382030
2014-11-08T20:36:38
2014-11-08T20:36:38
26,372,531
1
0
null
null
null
null
UTF-8
Python
false
false
2,019
py
Graph.py
""" Data structure for a node: __all_nodes[0][0] = X coord __all_nodes[0][1] = Y coord """ """ Constructs a graph of nodes and edges including obstacles that cannot be moved through. Source: http://www.redblobgames.com/pathfinding/grids/graphs.html """ class Graph: __all_nodes = [] __movement_c...
204231f4f1ff578d6a2150e00691e0dd361a19f6
90fe39e6159c76d3e508a83a71f1a0f314e6f029
/api/v0/mnist.py
bd39ef3d12e30bec2e6222d3c0afca271b1ec56f
[ "BSD-3-Clause" ]
permissive
sdesrozis/why-ignite
93cb1c6bb8c6b9c7944f4202283fb9d1a6a06d53
a5dbd6285598189aee7d4ab671fe7af3071ccbbb
refs/heads/main
2023-05-28T07:21:06.943173
2021-06-16T07:57:31
2021-06-16T07:57:31
357,796,202
4
0
null
null
null
null
UTF-8
Python
false
false
8,819
py
mnist.py
import argparse import os import ignite.distributed as idist import torch import torch.nn as nn import torch.nn.functional as F from torchvision.datasets import MNIST from torchvision.transforms import Compose, Normalize, ToTensor from ignite.contrib.handlers import PiecewiseLinear from ignite.metrics import ( A...
cad703ee6caebd62a3c86819667969bb5bc63e23
9fc99ee8870904bc8a99cc6bf2801ab91ef6bd71
/Multihop Wireless Sensor Networks/serialRead.py
e9c36d534b12cec417995894c1e69fe96d9ea18a
[]
no_license
cxzhangqi/MultihopWirelessSensorNetwork
9ebd0a054b93d778a1a0f3d8e043268912753ee4
01c5cf502e863f5c26e9c59a3f2041dfbac34f88
refs/heads/master
2021-12-05T14:46:48.818325
2015-07-30T18:41:42
2015-07-30T18:41:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,224
py
serialRead.py
import serial import io import serial ser = serial.Serial('/dev/ttyUSB0') # open first serial port ser.baudrate=115200 ser.bytesize=8 ser.parity='N' ser.stopbits=1 print ser.portstr # check which port was really used while (1): x = ser.read(); x = ord(x) print x if x==1: x = ser.read(); x = ord(x); pri...
c5af94f656332da1944762ab8b2549012eb4061f
6faf4449f711c9f68a4184983f987689621dbba8
/Rosetta/interfaces/DefaultCard/interface.py
d1479795919af04b0bd593bbc722e1399fe76282
[ "MIT" ]
permissive
kenmimasu/Rosetta
55ddf21dbe0753c8da51040eae0624ca49660e06
137496b904eaa1e6bfb3e0db12e598e9a62f0c03
refs/heads/master
2021-06-26T15:25:53.523243
2020-12-08T16:38:30
2020-12-08T16:38:30
32,023,659
3
2
null
2017-12-12T08:55:05
2015-03-11T14:58:39
Python
UTF-8
Python
false
false
2,955
py
interface.py
from ..interface import RosettaInterface, allowed_flav from ...internal import SLHA from ...internal.errors import RosettaError from ... import session, settings, implemented_bases import argparse import os # for defaultcard from ...internal.basis.io import write_template_card allowed_flav = ('general', 'diagonal', '...
981e931ec6a95dad61a442ae6230c426e6455cad
1df862e19137ec49bdd3081c5ce16357ed382035
/kool/Builder.py
12bd4533b6e82a9969beccb379bb60aff9b0ff3a
[ "LicenseRef-scancode-cecill-b-en" ]
permissive
jcabannes/Projet_tut
290c84fee167a60322aa91d01788deda40c0e579
4b494664244e337502fce1b1bcceb9e6709f24f8
refs/heads/master
2021-05-31T18:51:31.086026
2016-05-21T22:39:51
2016-05-21T22:39:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,317
py
Builder.py
# -*- coding: utf-8 -*- # This file is part of Mumoro. # # Mumoro is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ...
04bb85191c11aa0f6f01bdf5a6d6087c3ecd6694
c5763007c471c00d5cf546b08871cea7b867bf3a
/squaresum.py
033a0a33370abcd04bad018e3e1bd592d02d9e7e
[]
no_license
castertab10/SquareSum
3d3f26bdca1376684589330a5705be0b86930600
5bcca65350ea8ec698d304ff3205e126058dfb86
refs/heads/master
2020-09-07T13:35:23.713544
2019-11-10T23:09:13
2019-11-10T23:09:13
220,797,213
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
squaresum.py
#function that returns the sum of the squares of first n natural numbers def squaresum(n): SquareSum = 0 temp = 1 if n<= 0: print("Please enter a natural number!") else: while temp <= n: SquareSum += temp*temp temp +=1 print("The ...
8d4228a7bfc7f06e0d7d5c00bc951f7e02bd2a7a
a2380a5e3a4c40e7b0e9344b7ce3927ec927d0af
/main.py
2f6f27caa2dd0388fa7820ec7c16311633ed8d21
[]
no_license
ageevSa27/vk_api
61549148457287179425d3b022f84da0d8e6f2b3
0b8ab475108b50ae9ca68b02e88f21cdb28eba45
refs/heads/master
2023-05-03T13:53:29.064070
2021-05-18T09:49:28
2021-05-18T09:49:28
368,478,362
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
main.py
import requests import json import tokens getFollowers = requests.get( "https://api.vk.com/method/users.getFollowers?user_id=66748&count=2&fields=photo_50&access_token=" + tokens.token + "&v=5.130") str_get = json.loads(getFollowers.text) # print(str_get["response"]["items"][1]['first_name'], str_get["response"]...
efca51d56017e261f3354dd4bcd0ca74bbe2a78a
d088affdf4e8023f8c784e9a4eafdd06235d4c5f
/lib/servo.py
512f20a311b9bf61b471cf64ef59eae3925c4c41
[ "Apache-2.0" ]
permissive
donuk/pyboard-robotics
dbb076a6b1ea24f26c0893a1cfe572e3e0c2b391
c8cb816bc0a3f0bb30977b184cee97e3e85b1c3f
refs/heads/master
2022-02-02T01:57:54.841352
2021-12-31T11:19:50
2021-12-31T11:19:50
229,952,190
0
0
null
null
null
null
UTF-8
Python
false
false
1,628
py
servo.py
from pyb import Pin, Timer from contextlib import contextmanager class Servo: """ Class representing a standard servo """ def __init__(self, pin_name, timer_no, channel): """ Create a pwm channel on the specified pin using the specified timer """ self.pin = Pin(pin_name) se...
82361d692186ee6b83a251b3e7c21acecd04193f
5c9c9072adafff9de79552d927d225539874a1e5
/users/urls.py
12d7126ec5b787071ef1790a190eead2fea7eb83
[]
no_license
NOKIA-GAP/trouble-shooting-api
e38e221aa01b16b28cd90b1c93f0b5141d67b26a
a3f6e2c3c22727c888b1f3f4e570fd729920e267
refs/heads/master
2021-08-10T01:07:46.333294
2018-10-01T17:21:14
2018-10-01T17:21:14
114,031,806
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
urls.py
from django.conf.urls import url from .views import ( LoginUser, LogoutUser, SigninUser, DetailPerfil, UpdatePerfil, ) app_name = 'users' urlpatterns = [ url(r'^login_user/$', LoginUser.as_view(), name='login_user'), url(r'^logout_user/$', LogoutUser.as_view(), name='logout_user'), url(r'^signin_user/$', S...
3c4918819a5d5d33dea14103814b8b683f3a9dc8
6d492b9ca50e2c93bf4ed3ee2fb583795480f179
/animethemes_dl/models/options.py
d84f303c62c5dbdd72557e2eb2b41628c96306c8
[ "MIT" ]
permissive
Drapersniper/animethemes-dl
ba99e3c8d896e1e2e024c7a00ddcee14a296164f
059afa407d4e07e7420a2e08cc6019b51ced7770
refs/heads/master
2023-04-04T21:40:11.534149
2021-02-19T09:21:30
2021-02-19T09:21:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,542
py
options.py
""" Option data type and option defaults. """ from os import PathLike from typing import Optional,List,Tuple,TypedDict,Literal from .animelist import AnimeListSite class AnimeListOptions(TypedDict): username: str site: AnimeListSite animelist_args: dict minpriority: Literal[0,1,2] minscore: Literal...
4f7174007eebf2422e667d36aaf68fea2ceb3413
e0af3e5600de07a69edc8e3b4e254e86d6183c12
/compare-cmssw.py
628dd94eb04de2fe8d7af4a953df3068356396b9
[]
no_license
daniSchaefer/scipts
320100dddb903e6d5915826012f0f9914c33954a
01f1663ec2619afc4d160c4c90d87106186341f3
refs/heads/master
2021-01-09T05:45:44.141287
2017-07-25T12:22:34
2017-07-25T12:22:34
80,827,892
0
1
null
null
null
null
UTF-8
Python
false
false
12,524
py
compare-cmssw.py
from optparse import OptionParser import sys from ROOT import * import time import CMS_lumi, tdrstyle parser = OptionParser() parser.add_option('-t','--time', action='store_true', dest='time', default=False, help='sleep') parser.add_option('-b', action='store_true', dest='noX', default=False, help='no X11 windows') ...