blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
0c95d56e27f26ed4f9b3ece520aff48e271f9e18
a2e9b05815df63be0b052d492be5eea8d96f68b9
/0x0B-python-input_output/4-from_json_string.py
29574b9baf864e00e0d7141b819abe6dc4650daf
[]
no_license
jhonnjc15/holbertonschool-higher_level_programming
c903e7e361ac8b93fde79570f390cef65aa07f7f
f2259aa478428709d945ee22d6796ad594133890
refs/heads/main
2023-08-10T16:45:00.581756
2021-09-24T03:43:46
2021-09-24T03:43:46
361,815,970
0
0
null
null
null
null
UTF-8
Python
false
false
295
py
#!/usr/bin/python3 """Modue that returns an object represented by a JSON string""" import json def from_json_string(my_str): """ Function that returns an object represented by a JSON string Args: my_str: string to convert """ return json.loads(my_str)
[ "jhonatanjcca@gmail.com" ]
jhonatanjcca@gmail.com
3b1cd110da952347980a3612228464215c98bf2c
b6c2e153d483173190fc8c9449b3a9843752ee27
/usando a classe os.py
8ff3773482a15b99a9202fa43b676ec35c1166dd
[]
no_license
joaoplay16/python
3a63605bf5545a706f3a9af34fc25a29e6b75b26
80ccaedd78130624b56754eda4cfd55c7b831cd4
refs/heads/master
2021-01-25T08:00:50.849336
2017-06-13T16:27:37
2017-06-13T16:27:37
93,696,581
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
#qpy:2 #-*-coding:utf8;-*- #qpy:2 #qpy:console import os os.chdir ('/mnt/extSdCard/shell/') files = os.listdir('/mnt/extSdCard/shell/') for i,item in enumerate (files): if '.bak' in item: os.remove(item) files.remove(item) print (i+1, files[i])
[ "joaoplay16@gmail.com" ]
joaoplay16@gmail.com
4ace2fc1e8c91a478f8a30d4c05304b114ee661f
ce3497b16da38be061b4381785c5fb3258a4bce5
/src/scripts/rms_test.py
6359856564e6ffae084fdc178fc3f488681ad76f
[]
no_license
dsr373/mirrors
13f390aa805b7824f7457acfaaf0d0a81630c4b5
b64a4edab8b4c917cc9129330e001ca79b8e4cc8
refs/heads/master
2021-02-07T11:56:40.714244
2019-04-29T14:10:02
2019-04-29T14:10:02
244,022,607
0
0
null
null
null
null
UTF-8
Python
false
false
2,399
py
#!/usr/bin/python3 import os import numpy as np import matplotlib.pyplot as plt import matplotlib from util import * FONTSIZE = 18 CAPSIZE = 7 FIT_LABEL = "$y={:4.4f}x{:+4.4f}$" FIT_INFO = "Slope: {:4.6f} +/- {:4.6f}\nIntercept: {:4.6f} +/- {:4.6f}" FIGSIZE = (9, 8) def plot_depth(data): xs = np.array(data[0]...
[ "seremet.dan@gmail.com" ]
seremet.dan@gmail.com
8cbae2a065e974ac1f1a2a114a2c7be79f3abaa6
ebbb4ddb66ab045418a97323ddcf3325acf8c97e
/parse_nyt_data.py
2b221d03b9ec3d63537ab88c1a1cf035e377417e
[]
no_license
ChrisSettles/Covid-Parsing
0094f29824609607f5472c3ca0643fc7f36ea35a
fb34805e08dcfc2d575a54cd1661694cd8236343
refs/heads/master
2022-12-18T22:43:21.128679
2020-09-24T04:13:19
2020-09-24T04:13:19
298,166,416
0
0
null
null
null
null
UTF-8
Python
false
false
1,626
py
import re from file_utils import loadWithJSON """ Example: $ python parse_nyt_data.py "Harrisonburg city,Virginia" "harrisonburg.json" """ def ParseNytData(county_name, output_file): """ Translate us-counties.csv into output_file.json containing data from the specified county Args: county_...
[ "settl2cr@dukes.jmu.edu" ]
settl2cr@dukes.jmu.edu
cd6aeebc876b91d8c75a9e3409a6df032f249b28
0e61ff85fba6fa4f3ea6e2a6cccd033d95242523
/FizzbuzzApi/endpoints/metricsEP.py
710e73b9c7f376a18b4d90cf7a8766333b156a84
[]
no_license
phenixzr/FizzbuzzApi
876fba5a6ea093d5c14034275cff1feaa3f09343
b3d54b6eb312a5507254469f792b6fba6190bfe8
refs/heads/master
2023-01-06T03:30:04.842897
2020-10-30T10:47:13
2020-10-30T10:47:13
306,697,092
0
0
null
null
null
null
UTF-8
Python
false
false
957
py
""" Handle metrics endpoint This module contains the endpoint code behind the metrics """ from flask_restful import Resource from FizzbuzzApi.database.fizzBuzzRQ import FizzBuzzRQ from FizzbuzzApi import swagger class MetricsEP(Resource): """ MetricsEp class Class that handle users query behind '/v1/metrics...
[ "phoenixzr@hotmail.fr" ]
phoenixzr@hotmail.fr
b0dd547c60357b7f4540d9f1064f30da3da49bfb
3b89c0a97ac6b58b6923a213bc8471e11ad4fe69
/python/CodingExercises/Median.py
9fca643773716391f6ec77c8b200529cd534e8b8
[]
no_license
ksayee/programming_assignments
b187adca502ecf7ff7b51dc849d5d79ceb90d4a6
13bc1c44e1eef17fc36724f20b060c3339c280ea
refs/heads/master
2021-06-30T07:19:34.192277
2021-06-23T05:11:32
2021-06-23T05:11:32
50,700,556
1
3
null
null
null
null
UTF-8
Python
false
false
454
py
# Find median of an Array of numbers def Median(ary): ary.sort() print(ary) if len(ary)%2!=0: mid=int(len(ary)/2) return ary[mid] else: idx1=int(len(ary)/2)-1 idx2=int(len(ary)/2) return (ary[idx1]+ary[idx2])/2 def main(): ary=[5, 89, 20, 64, 20, 45] ...
[ "kartiksayee@gmail.com" ]
kartiksayee@gmail.com
1bfcccd0824e4ca8c220ab6704e8af747eda13f3
39abed06d538d56ad7e535e29aea8c180e3c3f6d
/test/unit3/test_skulpt_bugs.py
28d306365b5edfcf4fb72f561ff928a983e48039
[ "MIT", "Python-2.0" ]
permissive
s-cork/skulpt
2172f302caa7a49833452e61fc78adff8480c28b
6bee457af620e7ffaebf7253058bf40ac158774e
refs/heads/master
2023-08-09T19:40:24.076195
2022-03-24T06:07:52
2022-03-24T06:07:52
233,208,223
3
1
NOASSERTION
2023-06-09T10:01:56
2020-01-11T09:38:40
Python
UTF-8
Python
false
false
562
py
"""Unit tests for zero-argument super() & related machinery.""" import unittest class A: def __init__(self, foo): self.foo = foo def __str__(self): return f"{self.__class__.__name__}({self.foo})" class B(A): def __init__(self, foo): super().__init__(foo) class TestSuper(unitte...
[ "stu@anvil.works" ]
stu@anvil.works
035aa0580f5943d33600d1ea742202449cb869e4
38414a2b54ff2776678330766650bbc1f575fcc1
/my_web/my_web/estudios/admin.py
4b8d7e48f4539054adf45c028c86779895a502e9
[]
no_license
LuisEnVilla/django-101
00d97b16b97a2159be2a70d42c68cd019e30ac9d
2814939ca4edbdcb58b26a721dee87ee2817af7b
refs/heads/master
2020-09-16T02:40:59.920733
2019-12-14T18:35:12
2019-12-14T18:35:12
223,624,130
0
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
from django.contrib import admin from .models import ( Estudio, Collector, Estudio, Airports, BlackList, Messages, Template, Alerts ) from .forms import ( EstudioForm, CollectorForm, AirportsForm ) class EstudioAdmin(admin.ModelAdmin): list_display = [ ...
[ "villak.hardware@gmail.com" ]
villak.hardware@gmail.com
48550667dcad6e61ccf7be37b6ea931ba0700e3b
b4597b281be2f4d74d8aad992421ad3b94000afd
/authenticate/asgi.py
845dc4a57f857b7fd5403ad2c30bd874d2280927
[]
no_license
orashar/Authentication-django
02f96379494af28a1f49fbbacfd2504e39711f5f
0d10c8b9613a2d503d063f64ef4af41b6fd12973
refs/heads/main
2023-06-25T12:11:16.760454
2021-08-02T11:17:40
2021-08-02T11:17:40
391,919,775
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" ASGI config for authenticate project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_...
[ "omparashar15@gmail.com" ]
omparashar15@gmail.com
ffdda12127a32d5479a0a0c19b57ad4e578eb08b
e349e33c04b153a041847e443c27c4e35a57508a
/ex1.py
b3f2a1f2d0606e91c48f94f77069ba970e9c9285
[]
no_license
pmorel92/pythonpractice
85f0ae6983bc041fa71567f26304804a68aa6a14
3c369a5e49921436916aee600ce438f239112d65
refs/heads/master
2021-05-02T07:19:02.880627
2018-02-27T23:37:55
2018-02-27T23:37:55
120,813,434
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
print("Hello World!") print("Hello Again!") print("I like typing this.") print("This is fun") print('Yay! Printing.') print("I'd much rather you 'not'") print('I "said" do not touch this.')
[ "philippe.a.b.morel@gmail.com" ]
philippe.a.b.morel@gmail.com
b751b838ec055e7b1789f7bbb82d99bf24bd5cf0
0f82c3d0df1bf4338d4063a39cf3418ce6329ceb
/plotter/collisions.py
d8f5432f1c1074ddd4341a8de027553ab878f527
[]
no_license
migdiluca/brownian-motion
818640e7e41610b42ada9784ab2140cb65c8c048
108d83595a796963c3d71ed23b9022daceab2ab3
refs/heads/master
2023-03-21T18:39:25.363764
2021-02-26T17:49:18
2021-02-26T17:49:18
251,134,704
0
0
null
null
null
null
UTF-8
Python
false
false
1,588
py
import numpy as np import matplotlib.pyplot as plt import os import seaborn as sns import plotter.utils as utils def collisions(): print("-> Collisions selected") default = utils.ask_boolean("Do you want to use default values? 'y' for yes and 'n' for no : ") step = 0.0001 if not default: st...
[ "fastiz@itba.edu.ar" ]
fastiz@itba.edu.ar
8c987f3e7fcca91265fa510ed17ea01cb6f62bab
b2487a96bb865cfa0d1906c4e66a4aea9b613ce0
/pynfb/setup.py
fa813e333cb6ac1dadf94028ece66e8e86523568
[]
no_license
gurasog/nfb
1ccbbc7d507525cff65f5d5c756afd98ad86a7c6
9ff2c736c5d764f48d921bad3942c4db93390a5d
refs/heads/master
2022-12-14T23:06:56.523586
2020-09-07T07:36:01
2020-09-07T07:36:01
273,970,746
0
0
null
2020-06-21T19:30:38
2020-06-21T19:30:37
null
UTF-8
Python
false
false
164
py
from cx_Freeze import setup, Executable setup( name = "pynfb", version = "0.1", description = "Python NFB", executables = [Executable("main.py")] )
[ "smtnm@ya.ru" ]
smtnm@ya.ru
98069a81fbaa6a06cc3c4916d85f71be1d7c1600
35c9290b3ff2d7cf4b3a21c6f94a64e63118a049
/main.py
321d20f3e14f40e637abb73577aa8d26875d4e80
[]
no_license
jjhb94/user-signup
48016a4390b22f63d72b84ccd5a8003144b925dc
016fedea8a3d04de2471f5fa2aa760aa7c2d3f5d
refs/heads/master
2020-05-09T10:09:09.621336
2019-04-22T22:31:16
2019-04-22T22:31:16
181,029,775
0
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
from flask import Flask, request, render_template, redirect app = Flask(__name__) app.config['# DEBUG'] = True form = "" @app.route("/", methods=['POST']) def validate(): email_name = request.form["Email-Address"] user_name = request.form["User-name"] #this takes the number field and converts it into...
[ "jjhb94@gmail.com" ]
jjhb94@gmail.com
64a46a0e8a622a238a2bd3fdd226486f3294a4ab
09358a436bd67831287f613f50fd384d8f0ce5cd
/movie/manage.py
65c28f46e6436a4dc8cbda85c8dd6007d6912337
[ "BSD-2-Clause" ]
permissive
caoluyang8/movie
f8b2bb7763d69c701449f9eb08dc5edb5a1ceaa4
6f655706c2f50e21bdd34d210393e842fd2b26ba
refs/heads/master
2020-04-09T17:22:45.364538
2018-12-05T07:37:37
2018-12-05T07:37:37
160,475,794
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
from App import create_app from flask_script import Manager from flask_migrate import MigrateCommand app = create_app('default') manager = Manager(app) manager.add_command('db',MigrateCommand) #添加迁移命令 if __name__ == '__main__': manager.run()
[ "caoluyang123@hotmail.com" ]
caoluyang123@hotmail.com
8d01a9dc4ec9494ef182b9b6409a4fb3d8c512f3
2b83d3c8a9935dc18e99b553008ba3e008f2d05d
/requiez/models/mrp_mps_report.py
342f5c6ad0431123795b01b4862eed2eda887cab
[]
no_license
GustavoRequiez/grqz13
af0bce91f8906ec64edc6cf37e490f239c53a478
cc4a82a268b00224d9b26b2c8102a4d078ad2d79
refs/heads/master
2023-02-20T22:23:34.943947
2020-10-05T21:11:35
2020-10-08T22:53:32
300,013,433
0
1
null
2020-10-08T22:53:34
2020-09-30T18:20:15
null
UTF-8
Python
false
false
11,872
py
# -*- coding: utf-8 -*- ############################################################################### # # Odoo, Open Source Management Solution # Copyright (C) 2017 Humanytek (<www.humanytek.com>). # Rubén Bravo <rubenred18@gmail.com> # # This program is free software: you can redistribute it and/or modif...
[ "37423070+GustavoRequiez@users.noreply.github.com" ]
37423070+GustavoRequiez@users.noreply.github.com
51e0d8b610045991056392a7a0dcf54788db77b0
7cd9937b5d090378dd9f394470a9e35287c94ce2
/Terminal.py
086333b86718e619fe6dc38dfb506ed1488625b8
[]
no_license
DreadPirateRobertsX/bakalarka-python
ccc1c6e8b5c1e131c64d94101de8a2ab03c63f63
667de4904b1c9cf386b3d5620e3e089555d9a2a2
refs/heads/master
2023-05-02T23:18:30.117819
2021-05-15T20:24:39
2021-05-15T20:24:39
352,699,095
0
0
null
null
null
null
UTF-8
Python
false
false
2,798
py
from os import listdir, path import analyser class MyTerminal: actual_path = "/" def __init__(self, output_path, case_name): self.output_path = output_path self.case_name = case_name def terminal_init(self): print("Prikazy: ls, cd, show, exit") print("root:" + self.actual...
[ "l.kurtiniak99@gmail.com" ]
l.kurtiniak99@gmail.com
69628797f663b05bbab9e369a9e73cf62efc7e1a
b58bcba0e4fceb3ec24dc76b98ed9bcaf7d3b83b
/Titanic/Train.py
2cd3bbd05433e9ea2d47d9e7c95ff250193340fc
[]
no_license
BigSorry/Python
31bcec4d59fc6fd10ade37d44720a098d79d7a21
1f4163f86908ec4901042fd02f155b8a4289cbb2
refs/heads/master
2020-04-12T23:56:03.565845
2019-05-04T21:40:35
2019-05-04T21:40:35
162,834,075
0
0
null
null
null
null
UTF-8
Python
false
false
8,089
py
import pandas as pd from pandas import ExcelWriter import numpy as np import matplotlib.pyplot as plt import seaborn as sns import re import math from sqlalchemy import create_engine from itertools import chain, combinations from sklearn.ensemble import RandomForestRegressor def conditionalProb(trainingSet, columnNam...
[ "lexmeulenkamp@hotmail.nl" ]
lexmeulenkamp@hotmail.nl
8c39520c67d7de9db0fc8291e96d0c580255b953
472b62f12c625569981de06675aa0c09aeead479
/testingProject/c17/carservice_17_4_13.py
fa6e312c885b09b05c7cb588fe7c832ead5dfe10
[]
no_license
hheungsu/python_study
5d77b35d7e0b7f859b4ea4f599fcb73cfd92599c
f42b45b2bbcd73cf7729975da9745b7cf0dfe224
refs/heads/master
2020-03-26T20:02:54.083018
2018-09-04T15:17:49
2018-09-04T15:17:49
145,301,205
0
0
null
null
null
null
UTF-8
Python
false
false
1,408
py
#17.4.13 연습문제 (운행 마일수 입력받아 다음 정기점검서비스까지 남은 운행 마일수와 서비스종류출력 : 장기서비스 12000마일, 단기서비스 6000마일) # -> 문제를 살짝 바꿔봄 앞으로 받아야할 서비스종류,횟수, 그리고 남은 마일수 #1.import 패키지 import re #2.변수선언 IS_NUMERIC = "^[-+]?\\d+(\\.\\d+)?$" # 숫자구분을 위한 정규표현식 상수 s_unit = [12000,6000] # 서비스별 계산단위 s_unit_t = ["장기...
[ "noreply@github.com" ]
noreply@github.com
6acb16f98d8359da33fd1cc43c2280aa2ea356c0
5e411e5d8115543d0d82442f91d2a6862c0fe3fa
/17_Python/17_01/17_01.py
45d96027c27b8a7d2a769b9bbfc67e960cc3ea9c
[]
no_license
ucczs/AoC_2020
1a1ed1bc50570baa09829ddbf8cb887b788fe52b
b8842ada5db8e84fc12c4e0adfa1c0f7888317ac
refs/heads/master
2023-08-06T08:51:11.485234
2021-09-26T20:01:39
2021-09-26T20:01:39
317,323,083
0
0
null
null
null
null
UTF-8
Python
false
false
5,589
py
import numpy as np import itertools class MapCoordiante: def __init__(self, activeState, neighboursActive): self.activeState = activeState self.neighboursActive = neighboursActive class Map: # map[Z][Y][X] def __init__(self, xMax, yMax, zMax): self.xMax = xMax self.yMax = y...
[ "aron-freyer@gmx.de" ]
aron-freyer@gmx.de
d2ceef1ca292ea9cd0711209f50a4b101e5b5373
df0ffee7c8085a5809cfa447e50bb2e5ae59fdec
/train.py
061c0e8ec0d33537ab5a4a7bc4b592483c5af7f8
[ "MIT" ]
permissive
harisreedhar/keras-cnn-1drnn-ctc
c0a4e97b601554ceaf7d63d7dc10674f4e287cb3
e27f717c2c8af75f4774c62a81f70f46c4e8eadf
refs/heads/master
2022-04-23T16:00:04.213077
2020-04-19T14:05:48
2020-04-19T14:05:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,016
py
import os import logging from keras_htr import get_meta_info, LEREvaluator, decode_greedy from keras_htr.generators import LinesGenerator from keras_htr.models.encoder_decoder import ConvolutionalEncoderDecoderWithAttention from keras_htr.models.cnn_1drnn_ctc import CtcModel from tensorflow.keras.callbacks import Callb...
[ "supernovaprotocol@gmail.com" ]
supernovaprotocol@gmail.com
ead48a72f50b4aac0ca1df81220cdcd7fae7836e
ce66721d166ca07e6df97243ea086f156690e94a
/wf_example/__openerp__.py
24b872bdc0843ba46ec0646184171d46aa07f1f0
[]
no_license
prbo/odoo-yard
060ad954f729e27e4016f3773a665562197fd5a7
40397d7130f9a3bac41b8238807faa10553a89f2
refs/heads/master
2021-05-14T14:38:18.081327
2018-02-21T04:26:13
2018-02-21T04:26:13
115,975,615
0
1
null
null
null
null
UTF-8
Python
false
false
873
py
# -*- coding: utf-8 -*- { 'name': "wf_example", 'summary': """ Example of running workflow """, 'description': """ Long description of module's purpose """, 'author': "Your Company", 'website': "http://www.yourcompany.com", # Categories can be used to filter modul...
[ "sukmohadi.probo@gmail.com" ]
sukmohadi.probo@gmail.com
7068cd1a48b33608e96d44cb373c184c516b7e18
40c8f9a8756951f632bdde205c0ec22fda096180
/多线程/02.py
63e056961fc6e62002088b742964fffe8226f0ee
[]
no_license
longjingsan/Task
92a8e21ba0265284475f5088d927ee3147fa002f
115b6c308d96320c8ad3c5fdc8b30d4738dc26fd
refs/heads/master
2021-06-24T14:05:01.271642
2020-12-04T04:44:20
2020-12-04T04:44:20
186,412,297
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
''' 利用time函数,生成两个函数 顺序调用 计算总的运行时间 ''' import time import _thread as thread def loop1(): # ctime 得到当前时间 print('Start loop 1 at :', time.ctime()) # 睡眠多长时间,单位是秒 time.sleep(4) print('End loop 1 at:', time.ctime()) def loop2(): # ctime 得到当前时间 print('Start loop 2 at :', t...
[ "longying6@163.com" ]
longying6@163.com
9a742c9056cf5f650c3b533766a3db05037ea9ef
fa0740b723e516c64a79e11805a673c51f6c4224
/ilang/Samplers.py
52372bf07b4938cf709a73fa4bb370715e95b477
[ "BSD-2-Clause" ]
permissive
spedemon/iLang
5ab3ba2f4b2c4f7f6d77809278bf91122a49e1a6
fb64d14183b3658a4cf27eb8cff95c1483703c64
refs/heads/master
2021-01-23T21:34:02.741985
2018-06-27T21:38:36
2018-06-27T21:38:36
13,264,500
2
1
null
null
null
null
UTF-8
Python
false
false
33,008
py
# ilang - Inference Language # Stefano Pedemonte # Aalto University, School of Science, Helsinki # Oct 2013, Helsinki # Harvard University, Martinos Center for Biomedical Imaging # Dec 2013, Boston __all__ = ['Sampler'] from ilang.Graphs import Node, ProbabilisticGraphicalModel, name from ilang.Tracers import ...
[ "stefano.pedemonte@gmail.com" ]
stefano.pedemonte@gmail.com
52a463acbd891fb557ee2bf6cb384be40812b812
b9b3ace86b9e464553cae1e6a89a5b50bc3c33a7
/Mark2.py
71fe87e1a0a54859acf13eed94e25adfb5892b33
[]
no_license
JacksonMartin/Markov-Chain
5bc3438a18ad57053f91371e047371f9945dfb73
d4251db2d70200f84597ad3655c2d803aa73c9ce
refs/heads/master
2020-05-01T11:15:55.444295
2019-03-24T16:35:37
2019-03-24T16:35:37
177,438,359
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
import random def marktable(text, lengths): table = {} for i in range(len(text)-lengths): key = text[i:i+lengths] if key in table: table[key]= table[key]+1 else: table[key]=1 return table def newchar(array, string): chance = {} total ...
[ "noreply@github.com" ]
noreply@github.com
0205cb7c18f9277828eccec7d92e4d06ab52a34d
b4b900170acb702b12aa77c2708f59ec2107fa49
/fasta_processing/orf_finder.py
5d1fcc1afc1b946527f622a2845d8b87e749d1f9
[]
no_license
wegnerce/python_scripting
cf6435d0fa2ad41615c6ff06d44f28449904272c
6230d3f0489c67af18db5b13e48e888018b2cceb
refs/heads/main
2023-04-11T23:28:39.990998
2021-04-28T06:43:17
2021-04-28T06:43:17
362,132,027
0
0
null
null
null
null
UTF-8
Python
false
false
1,197
py
# -*- coding: utf-8 -*- """ Created on Fri Feb 21 12:03:40 2014 @author: calle """ from Bio import SeqIO #define an empty list to keep sequences of interest seq_interest = [] start_codons = ["ATG"] stop_codons = [] #boolean variables to check for presence of start/stop codons start_present = 0 stop_present = 0 #fun...
[ "noreply@github.com" ]
noreply@github.com
2bebb31050c1eea8eec0d868ef0ad1ce49749f7d
38bee274b237e508175be4c37bf357621ed50195
/pde/pdes/allen_cahn.py
f1a80a46cb539fbec959f00de2c5a1ab654a3641
[ "MIT" ]
permissive
anna-11/py-pde
26f0110266fdb21803e665447b1204bedb401d78
5b596af5f224e3ec2a7fbea8f87fab3896c19642
refs/heads/master
2023-06-17T09:13:34.026794
2021-07-09T12:10:36
2021-07-09T12:10:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,296
py
""" A Allen-Cahn equation .. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de> """ from typing import Callable # @UnusedImport import numpy as np from ..fields import ScalarField from ..grids.boundaries.axes import BoundariesData from ..tools.docstrings import fill_in_docstring from ..tools.numba import jit, n...
[ "david.zwicker@ds.mpg.de" ]
david.zwicker@ds.mpg.de
f1aaa95c001c821b618f58c3b84cf954fa331135
80d080462d6e00d2f2a5d2f74a2b9a7b2db8640c
/tests/test_charlie.py
b248f2ac469a06aa2c7337eec92f873d5297777a
[]
no_license
NicoKc/CircusCharliePY
1eac728a3a96ba9859f0d1b4d971e5277043a60b
1476c118829bf063478c6bb490b80d626644cca6
refs/heads/master
2021-07-11T06:59:26.572439
2017-10-14T17:04:58
2017-10-14T17:04:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import unittest sys.path.insert(0, os.path.join('bin', )) from mock import Mock, MagicMock, call, NonCallableMock, patch from charlie import Charlie from iSoundManager import ISoundManager from iSpriteManager import ISpriteManager from iCollisionManag...
[ "girasoltostado@hotmail.com.ar" ]
girasoltostado@hotmail.com.ar
c8a1aa47f68e4e60549ea1cffa6d097807847063
286ca23d49975980b6cffb584bb43f7f89b8e828
/git_to_dbfs/__init__.py
ed579744bb661e4dcee1e50d97abc1e0774f161a
[]
no_license
geekspeed/git_to_dbfs_function
3bc5e941a39b41f146a877783e59fee7d5c4e46b
529342cc8fad264dc48cdce6db9a32eca68a8e82
refs/heads/master
2023-02-07T18:57:40.964947
2020-12-29T11:08:40
2020-12-29T11:08:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,459
py
""" Http Triggered Azure Function that listens for WebHook Notifications from GitHub. It detects if any file under a specific version folder got changed during a Push operation to a branch in the Git repo. If so, it uploads all the files in that version folder to DBFS in Databricks. Path to files: {base_path}/{version...
[ "alejacma@microsoft.com" ]
alejacma@microsoft.com
65ba12265ec9faffe3d18ec718e81ba5893e0a1e
d659810b24ebc6ae29a4d7fbb3b82294c860633a
/aliyun-python-sdk-unimkt/aliyunsdkunimkt/request/v20181212/ScanCodeNotificationRequest.py
5835e1a20aefefe670ace4df8bd671a5268d659a
[ "Apache-2.0" ]
permissive
leafcoder/aliyun-openapi-python-sdk
3dd874e620715173b6ccf7c34646d5cb8268da45
26b441ab37a5cda804de475fd5284bab699443f1
refs/heads/master
2023-07-31T23:22:35.642837
2021-09-17T07:49:51
2021-09-17T07:49:51
407,727,896
0
0
NOASSERTION
2021-09-18T01:56:10
2021-09-18T01:56:09
null
UTF-8
Python
false
false
5,343
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
d51a645e1fce3af1f391bfed76a7e9e9fd2dc9b9
709903ed88d19c8a86048533eec471b158ced454
/Python/简明Python教程-沈洁元-已完成/Using_file.py
a62045e640ca0ee7de89b8996db6fa1b11502d63
[]
no_license
veahow/Learning
be821f1479796e112eb9bc63ba58e7136f13ac80
157e8141945ca90535e52fa5780d13f101ee6d00
refs/heads/master
2021-01-17T17:38:47.844919
2018-01-26T15:21:04
2018-01-26T15:21:04
95,526,505
2
0
null
null
null
null
UTF-8
Python
false
false
561
py
#!/usr/bin/python # Filename : Using_file.py poem = '''\ Programming is fun When the work is done if you wanna make your work also fun: use Python! ''' f = open('poem.txt', 'w') # open for 'w'riting f.write(poem) # write text to file f.close() # close the file f = open('poem.txt') # if no mode is specified, ...
[ "veahow@gmail.com" ]
veahow@gmail.com
3f017622fbfb44222dc155a544b055feccde4336
61aa319732d3fa7912e28f5ff7768498f8dda005
/src/arch/x86/isa/insts/x87/control/__init__.py
01a1e68baf2dbd685876e00b5d56637618e0e383
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "MIT" ]
permissive
TeCSAR-UNCC/gem5-SALAM
37f2f7198c93b4c18452550df48c1a2ab14b14fb
c14c39235f4e376e64dc68b81bd2447e8a47ff65
refs/heads/main
2023-06-08T22:16:25.260792
2023-05-31T16:43:46
2023-05-31T16:43:46
154,335,724
62
22
BSD-3-Clause
2023-05-31T16:43:48
2018-10-23T13:45:44
C++
UTF-8
Python
false
false
2,479
py
# Copyright (c) 2007 The Hewlett-Packard Development Company # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implemen...
[ "sroger48@uncc.edu" ]
sroger48@uncc.edu
5791749056bb1317c8fdb744e1481fa000cb63e6
4668bc07bdbb7734d1005e946959944a7b49b9b7
/cookOff/DSIMP/AMZ_COIN_GAME.py
de39804e94e7908a7a13f50026f99fc047163845
[]
no_license
rjoshi47/DSmax
a91a11cfac3e0aa282d3119744a322c882df16ff
f41e042b434a95dd8f41b65ea31204b35f8981c4
refs/heads/master
2021-06-06T18:56:14.744503
2020-03-06T18:52:39
2020-03-06T18:52:39
123,318,217
1
0
null
null
null
null
UTF-8
Python
false
false
1,746
py
''' Created on Apr 27, 2018 @author: devuser https://practice.geeksforgeeks.org/problems/max-possible-amount/0 Given a row of n coins of values v1 , v2 ... vn, where n is even. We play a game against an opponent by alternating turns. In each turn, a player selects either the first or last coin from the row, removes ...
[ "noreply@github.com" ]
noreply@github.com
e5d16253be4e6acf935b5f0a9f5efd3b50cd720c
24c3f3b611524fffa45999d13cbe272a1aafe706
/{{ cookiecutter.repo_name }}/setup.py
83888b0a3557511b7268af3297771056b785e654
[]
no_license
przor3n/cookiecutter-lux-python
87c9b00eebebc3a78539e0061c3a7e2a835c0736
4953aea360977a897009cd39780b30425d32b75f
refs/heads/master
2020-05-17T01:05:46.502456
2019-01-18T12:27:02
2019-01-18T12:27:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,734
py
{{ cookiecutter.shebang_python }} {{ cookiecutter.shebang_coding }} import sys import types from io import StringIO from os import path as op from os.path import join from textwrap import dedent from typing import List from setuptools import ( find_packages, setup, ) from setuptools.command.test import test ...
[ "alexk3y@gmail.com" ]
alexk3y@gmail.com
70dba3a5e9010b86b28a295772cc14004ed57a05
5966317682d400778b8988087e4c5b26f4f07ff9
/new sorts/o.py
4b8ac10e5babf93aee475c6d18dc80072db08324
[]
no_license
glushenkovIG/PythonTasks
7e3e344422e2f30c1fecf299a6bcb2e4efda7a09
245592ddb79ee7a569d5f069feb351b2377cc9d0
refs/heads/master
2020-03-17T17:34:23.387872
2018-05-17T09:50:35
2018-05-17T09:50:35
133,793,601
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
A = list(map(int, input().split())) n = int(input()) A = A[n:23 - n - (23 - n) % 7] min_sum = sum(A[:7]) for i in range(0, len(A), 7): sum_ = sum(A[i:i + 7]) if sum_ < min_sum: min_sum = sum_ print(min_sum)
[ "glushenkov.ig@phystech.edu" ]
glushenkov.ig@phystech.edu
2afdb57eab044afe99e33d860d27954f8e41cc34
19c1a2a26ad300364df0c17d1840258e99503207
/001_PyExam/PyExam/Lambda_map_filter_reduce_exam.py
16a7dcb694b12e646c0d6b5015a7cd0e8afd06e6
[]
no_license
SeungeonBaek/RL-study-2019
2436eac89a2cf77adf6d9cab3ab6f47872679e0d
a3dd181a5feead245571e6c3dcd969843a0f37f5
refs/heads/master
2021-06-15T12:29:15.338403
2021-03-11T15:40:18
2021-03-11T15:40:18
163,930,302
0
0
null
null
null
null
UTF-8
Python
false
false
1,192
py
# -*- coding: utf-8 -*- """ Created on Sat Dec 30 11:34:45 2017 @author: seung eon """ a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] x = list(map(lambda x : str(x) if x % 3 == 0 else x, a)) # 1. lambda 안에서 if를 쓸때는 콜론을 붙이지 말아야 한다. # 2. lambda 안에서 if를 쓰면 else를 사용해야만 한다. # 3. lambda 안에서 if를 쓸 때, elif는 사용하지 못 한다. print(x) b = [...
[ "bsewo5959@gmail.com" ]
bsewo5959@gmail.com
283ac19d96292491e8eb4d05ed900e358f846485
20a21fc54a2dc13e229310e54835cd3b219d31fe
/distributiontools/main.spec
3a19b9365052d5c0d11c1afed88abaa49b26629c
[ "BSD-3-Clause" ]
permissive
TNO/horse-module-core
ca61b5836469a4534745ea1535ae33512629c133
786a0a6a8007680e3302e53b68530e8e5838c1f2
refs/heads/master
2022-11-28T08:43:49.737258
2020-07-23T07:41:26
2020-07-23T07:41:26
281,885,607
0
0
null
null
null
null
UTF-8
Python
false
false
1,180
spec
# -*- mode: python -*- block_cipher = None a = Analysis(['horseAR\\main.py'], pathex=['C:\\ProgramData\\Anaconda3\\Lib\\site-packages\\PyQt5', 'C:\\HORSEAR', 'C:\\programdata\\anaconda3\\lib\\site-packages\\zmq'], binaries=[], datas=[('C:\\HORSEAR\\ExtraDLL\\platforms/*.dll', '...
[ "wietse.vandijk@tno.nl" ]
wietse.vandijk@tno.nl
ed2303a505fefe9d25e301d1dbb33cefd73ea5da
61319c600e18acbb0ca9c2f722cf6d180b19bade
/Curso_Em_Video_Python/ex077.py
902e221145f2f8f3e1a8c69a52ff2ebd1b5071e0
[ "MIT" ]
permissive
ThallesTorres/Curso_Em_Video_Python
a5e93bd33387684830ed081dd127754d1223f90b
95ffbff5a03f11fee41df746604dfe435f385a3b
refs/heads/master
2020-09-29T06:59:33.226325
2020-04-19T21:17:22
2020-04-19T21:17:22
226,981,932
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
# Ex: 077- Crie um programa que tenha uma tupla com várias palavras (não usar # acentos). Despois disso, você deve mostrar, para cada palavra, quais são as # suas vogais. print(''' -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- --Seja bem-vindo! --Exercício 077 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ''') palavras = ('a...
[ "thalles.torres@pm.me" ]
thalles.torres@pm.me
c2568db3ed9af7c59ba95dc30e283b4abd83d2a1
e9adf4bb294b22add02c997f750e36b6fea23cdc
/nw/nw_logic/nw_rules_bank.py
432c3a0479a0241af1dc0f9ec9c891ae0851037a
[ "BSD-3-Clause" ]
permissive
bairoliyaprem/python-rules
5aa70dbf6d9efde0d95dda4b6397e36788c22cfa
ca7ab0addf60179ea61fddad6cd65c77a6792de1
refs/heads/master
2022-12-17T22:15:47.745660
2020-09-29T00:39:03
2020-09-29T00:39:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,863
py
import sqlalchemy from sqlalchemy_utils import get_mapper from python_rules.exec_row_logic.logic_row import LogicRow from python_rules.rule import Rule from python_rules.rule_bank.rule_bank import RuleBank from nw.nw_logic import models from nw.nw_logic.models import Customer, OrderDetail, Product, Order, Employee d...
[ "valjhuber@gmail.com" ]
valjhuber@gmail.com
4e8fd8c8644cf64ebd25778d79246ac8d49da118
86f6f6df5e240a5d646aa3bd0bbb15442f2d0a69
/data0506/클래스사용하기/mysqlcrud/mysql.create.py
a1634dfe266913771fd71f41d9a84d9063aecc09
[]
no_license
hanking356/python_practice
39ef2129f9a599153acfd81ad46e64d3f8be1abe
df2a1558b781c2fe18245bb9a8a03391ae5f4b9e
refs/heads/master
2023-04-22T02:17:41.085233
2021-05-05T08:08:43
2021-05-05T08:08:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
import db연결.mysql연결모듈 as db id = input('아이디를 입력하세요') pw = input('패스워드를 입력하세요') name = input('이름을 입력하세요') tel = input('전화번호를 입력하세요') db.create(id, pw, name, tel)
[ "hgh0601@gmail.com" ]
hgh0601@gmail.com
9ccce667f864980cd88f410af25dcadccd167d57
ce5275160f0ecf01ea7b11e6a2740982c3c5cbd3
/SelfPlayIterations.py
b72fa691ddea8673a501ab24e3ba87bfaf2a0ba5
[]
no_license
strotman-ryan/AlphaGoConnect4_V2
65d5b4ffd15650104f14b35f7ffbb8fab7634255
74333ed0e238ebb82753d91e7cb5533fa0dfa1f7
refs/heads/master
2022-12-12T03:55:00.229256
2019-12-18T03:42:06
2019-12-18T03:42:06
225,237,220
0
0
null
2022-12-08T03:15:42
2019-12-01T22:00:03
Python
UTF-8
Python
false
false
439
py
# -*- coding: utf-8 -*- """ Created on Wed Dec 4 21:47:03 2019 @author: strotman.7 """ from SelfPlay import SelfPlay from TestGameNN import TestGameNN, PolicyNN from TestBoard import TestBoard import numpy as np policyNN = PolicyNN() nn = TestGameNN(policyNN) board = TestBoard(np.array([0,0,0,0]), nn) for x in ra...
[ "ryan.strotman@gmail.com" ]
ryan.strotman@gmail.com
fa8d7f98393bd2880e3b08b30c669870a4e9915f
d51ef7f67c8ea6ee16031d1552d548cfac8b03f6
/Day 1/IF_demo.py
389efdfa76160923ecfa023e4362aff6ecde7c80
[]
no_license
Beatzoid/python-camp
02849799c743f6ca04cf3126fc016dfb9a95e769
fb3fb68eb839c0f5e46a87a9932e79a7e853b121
refs/heads/master
2023-06-14T03:13:56.833046
2021-07-02T19:40:08
2021-07-02T19:40:08
381,807,286
0
0
null
2021-07-28T01:15:42
2021-06-30T19:07:43
Python
UTF-8
Python
false
false
414
py
baseTemp = 72 while True: currentTemp = int(input("Please enter the room temperature in Fahrenheit: ")) heater = False fan = False if currentTemp < baseTemp: heater = True fan = False print("Heater on") print("Fan off") elif currentTemp > baseTemp: heater = False fan = True print("Heater off") p...
[ "43425381+Beatzoid@users.noreply.github.com" ]
43425381+Beatzoid@users.noreply.github.com
7ca0ee05969af630f9b2b5a8871790f4991b5c08
d55f3f715c00bcbd60badb3a31696a1a629600e2
/students/maks/9/site2/page/management/commands/hello.py
014dfc85a65d4e56ef7b7b974c84bd8f9de0f150
[]
no_license
zdimon/wezom-python-course
ea0adaa54444f6deaca81ce54ee8334297f2cd1a
5b87892102e4eb77a4c12924d2d71716b9cce721
refs/heads/master
2023-01-29T02:22:54.220880
2020-12-05T11:27:48
2020-12-05T11:27:48
302,864,112
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
from django.core.management.base import BaseCommand, CommandError from page.models import Page class Command(BaseCommand): def handle(self, *args, **options): print('Hello command!!!') Page.objects.all().delete() page1 = Page() page1.title = 'Index page' ...
[ "you@example.com" ]
you@example.com
d9c24e51040b6a9a2ca86262d7b8e28bd164dc56
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/learnbgame_jewelcraft/ops_asset/asset_ops.py
18a52b2efc2714e9fb91c211f43e87e2ceb22cbf
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,608
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # JewelCraft jewelry design toolkit for Blender. # Copyright (C) 2015-2019 Mikhail Rachinskiy # # This program 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, eith...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
198763b2333b3ce1acca310904e81671162058a6
a9c0664c3dd30595c127c258b79203c952537ee5
/predict.py
600250c84c46e9d2729dddde819610720bd752d6
[]
no_license
didriksg/facial_expression_detection
c965412f930d285ab88a5e15592ea1f3079b9ab6
bcdeb279eee1783ac29534b4b303fecf1af26344
refs/heads/master
2020-07-10T17:16:10.802993
2019-08-25T16:21:11
2019-08-25T16:28:14
204,319,695
0
0
null
null
null
null
UTF-8
Python
false
false
931
py
from copy import deepcopy import cv2 import numpy as np from keras.engine.saving import load_model import utils WEIGHT_PATH = 'models/checkpoints/weights_051.hdf5' BASE_TEST_DATA = 'test/' def predict(): model = load_model(WEIGHT_PATH) while True: path_to_image = str(input('Image name: ')) ...
[ "kiddid96@gmail.com" ]
kiddid96@gmail.com
57eedbf7a736140f82bbccd1f1a51547fd2a73bc
1e0591a547e4e7f06b48a536870ceaf630f7afc5
/coding/optimization/alphabet.py
d3cc42aa621427cf5a1dc9c215804beb42adfd74
[ "MIT" ]
permissive
Tom83B/rate-code-eff-2019
c02140d90093f6950639dc35b738ea838727562e
d494d20334fcbbf94865eafef2ec54a4d12557f2
refs/heads/master
2020-05-26T12:05:23.395382
2019-08-06T09:03:35
2019-08-06T09:03:35
188,226,457
0
0
null
null
null
null
UTF-8
Python
false
false
69
py
from optimization.blahut_arimoto import optimize def kostal_method()
[ "tomas.barta@datatree.sk" ]
tomas.barta@datatree.sk
56598a8f9bce613e4ce5283c300482604705aaa0
10a82eaa0e482839375d2f1af7eff4f807855b34
/application.py
555e1d4aa4ef8fb876f8f323ec1cc38474d3e7b6
[]
no_license
akashvdubey/project1
9d71dc63c803dde9896ee9579242682ec203386e
dd62fd1a0472b6524486072c38628ef1e5f5f1a7
refs/heads/master
2020-04-30T09:21:44.479109
2019-12-28T11:10:58
2019-12-28T11:10:58
176,744,855
0
0
null
null
null
null
UTF-8
Python
false
false
3,851
py
import os from flask import Flask,session,render_template,request,jsonify,redirect,url_for #from flask_session import Session from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker app = Flask(__name__) # Check for environment variable #if not os.getenv("DATABASE_URL"): #raise...
[ "akashvdubey@users.noreply.github.com" ]
akashvdubey@users.noreply.github.com
8de653c5cecc04ca28cbe359cd3176b93ee02584
2e2ec1c6c97e81f37b5e7db5e9b32adf2b873a47
/migrations/versions/5a7bbc9cb7a3_event_table.py
6d2a030358d158196f32f687ac4ac74fc934ac8f
[]
no_license
Ximin-Chen/Event_Searcher
a0fc15a2c68515e10d5c2c0c165af558baf51c43
6fb991296223b56ecfaa231383c926121fb94bcf
refs/heads/master
2020-07-27T06:52:37.109524
2019-12-09T08:45:05
2019-12-09T08:45:05
208,909,275
1
1
null
2019-12-11T04:15:47
2019-09-16T22:27:37
Python
UTF-8
Python
false
false
1,914
py
"""event table Revision ID: 5a7bbc9cb7a3 Revises: 94f6b4d83de1 Create Date: 2019-10-15 00:06:01.927665 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5a7bbc9cb7a3' down_revision = '94f6b4d83de1' branch_labels = None depends_on = None def upgrade(): # ##...
[ "h4nn11113@gmail.com" ]
h4nn11113@gmail.com
81cdca29ca642ae0cd547bd3bd57586ad5b175f4
7639d35c849510a81e50214ecc1b8035fb48decf
/howclustered.py
b4121c5de0d8609fe8de623f08060b9ae6ff2e6c
[]
no_license
frogsicle/anno_from_m8
365d0c2b41fee2aebddfdeea566d938491597e52
077786aaa116a3fab02215575869cafee2aa865f
refs/heads/master
2021-01-01T16:40:27.846638
2015-08-21T10:31:49
2015-08-21T10:31:49
41,105,292
0
0
null
null
null
null
UTF-8
Python
false
false
1,334
py
import sys class BlastLine: def __init__(self, line): entries = line.split() self.qid = entries[0] self.hid = entries[1] startend = [int(x) for x in entries[8:10]] self.start = min(startend) self.end = max(startend) def __str__(self): return str(self.__...
[ "alisandra@bangor.plabipd.de" ]
alisandra@bangor.plabipd.de
625966c2593a5ddd165c1684f4d98a3750669162
9e176aa27a717ae9fc398394fcb1948d39b6bd5e
/posthog/models/cohort.py
6b5c1dbb10aaa417bba93b6e74c76964fece1fa1
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
itsjwala/posthog
59c8e215fdd562a151b5aa4ce7ea65a3d7955757
56de9e9226446790b1c72f0ae602c1fe8904c919
refs/heads/master
2023-02-22T07:47:23.593337
2021-01-22T13:47:06
2021-01-22T13:47:06
277,621,685
0
0
MIT
2021-01-22T12:26:39
2020-07-06T18:42:33
null
UTF-8
Python
false
false
8,024
py
import json from typing import Any, Dict, List, Optional from dateutil.relativedelta import relativedelta from django.contrib.postgres.fields import JSONField from django.core.exceptions import EmptyResultSet from django.db import connection, models, transaction from django.db.models import Q from django.db.models.exp...
[ "noreply@github.com" ]
noreply@github.com
c8c468ad0d431e2dd1492941f8f148a3bdf6eeb6
5ad17b6457e738985ee061a3d8a7967540006c21
/difference-of-squares.py
f7eaaa94ecda577d63a4eeb6c86b577c318a42af
[]
no_license
abiramikawaii/Python
a1bb01a0746ba733c2abb3a46ba85daf8cee5669
b8469dc472340a799c5481c81bd8e3eed2234950
refs/heads/master
2022-12-13T21:11:28.486986
2020-08-19T15:25:51
2020-08-19T15:25:51
288,767,365
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
def dos(n): print("The number is "+str(n)) square_of_sum = sum(range(1,n+1))**2 sum_of_squares = sum(i*i for i in range(1,n+1)) difference_of_squares = square_of_sum - sum_of_squares print("The difference between the square of the sum and the sum of the squares is "+str(difference_of_squares)) dos(10)
[ "noreply@github.com" ]
noreply@github.com
b0ed69722012b25fcc6de4946e499f5816fadccf
44cf8a92e4db1a650a13efa5cebd29b734fa0827
/Polynomial/gnrdouble.py
7bffb0110cdf8885f0fe924a745c45473ab04ab3
[]
no_license
shesl-meow/DataStructure
9b6eee3e9b461a22f525c7108e106d6a5083d287
ff9bc069faeb4126baab9979023068cf467d8371
refs/heads/master
2021-10-09T14:08:31.937891
2018-12-29T01:01:40
2018-12-29T01:01:56
92,643,459
3
0
null
null
null
null
UTF-8
Python
false
false
260
py
import random def gnr(): rng = random.randint(0,10) lst = [] for i in range(rng): lst.append( random.uniform(-10,10) ) lst.append( random.randint(-10,10) ) return [rng] + lst print( ' '.join([str(t) for t in gnr() + gnr()]) )
[ "1184249450@qq.com" ]
1184249450@qq.com
4df98b423cb6c082c08b54fdbf134f6143af4b37
cb6f314d0c8f1a943718caa46b47bbe5ef9908f5
/test/drawings/draw_hmab.py
21c985c2897367265b4cd012a1bfb34b55a9bbce
[ "MIT" ]
permissive
yunx-z/soln-ml
d702d5afef7d9204c89bdcba44e26f89a68b8923
f97c991c2ad287e8d295d3058b4a9b1fd50d847b
refs/heads/master
2022-12-26T18:00:51.457311
2020-09-13T08:31:58
2020-09-13T08:31:58
296,199,472
0
0
MIT
2020-09-17T02:37:20
2020-09-17T02:37:20
null
UTF-8
Python
false
false
1,574
py
import os import sys import time import pickle import argparse import numpy as np import autosklearn.classification sys.path.append(os.getcwd()) parser = argparse.ArgumentParser() dataset_set = 'diabetes,spectf,credit,ionosphere,lymphography,pc4,' \ 'messidor_features,winequality_red,winequality_white,sp...
[ "1225646303@qq.com" ]
1225646303@qq.com
14a89a5ba3b634286c9a1c0536e2ca7579dc8711
d40f058f554c98227d07ac0383ffd93d6ffa4e56
/pyStuff/packtPub.py
6309bfde930460b12a64db51f989f5739f24a0a3
[]
no_license
alby177/Training
06af247cf441288be84969119cf05ff4fb1a28d5
abc9b300956232ca28c5788d8ad099b9d5924576
refs/heads/master
2020-03-18T17:45:55.001247
2018-06-07T17:49:40
2018-06-07T17:49:40
134,046,454
0
0
null
2018-05-27T08:46:49
2018-05-19T09:01:38
Python
UTF-8
Python
false
false
1,114
py
# Save the free book inside my account of PacktPub from robobrowser import RoboBrowser import re import sys # Add the path where the file with login credentials are sys.path.append('/Volumes/StorEDGE/Alby/Python/Sensible_documents') # Import the file with the credentials import Data home = 'https://www.packtpub.com/...
[ "" ]
dce5217f537b1368245960c5d19597735d145b4a
b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf
/001146StepikPyBegin/Stepik001146PyBeginсh07p01st01T01_for_20200420.py
e9b62e163ccebe48ce59797d086fef7a96ccb3fa
[ "Apache-2.0" ]
permissive
SafonovMikhail/python_000577
5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4
f2dccac82a37df430c4eb7425b5d084d83520409
refs/heads/master
2022-12-08T10:53:57.202746
2022-12-07T09:09:51
2022-12-07T09:09:51
204,713,341
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
# реализация множественного ввода for i in range(5): num1 = int(input()) print("Квадрат числа равен:", num1 ** 2) print("Цикл завершен")
[ "ms33@inbox.ru" ]
ms33@inbox.ru
51f2a233d7c7f128e26895bc6586de808969a6a7
013f02062c47524548a35706fc20f2918beb2a58
/src/Core/Common/EagerModuleLoadingPython/Code.py
30cc367919d872e2332f9a12990183bbc7572034
[ "Apache-2.0" ]
permissive
InsightSoftwareConsortium/ITKSphinxExamples
c7190dd9ad07e6e627206740f3b97afb42a2b2be
112e57e6fad57c9a9d153f924a6db73ddc91eb5e
refs/heads/master
2023-08-17T14:27:13.046115
2023-07-26T21:07:20
2023-07-26T21:07:20
6,192,147
14
22
Apache-2.0
2023-07-26T21:07:21
2012-10-12T15:23:09
Jupyter Notebook
UTF-8
Python
false
false
1,043
py
#!/usr/bin/env python # Copyright NumFOCUS # # 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 # # https://www.apache.org/licenses/LICENSE-2.0.txt # # Unless required by applicable law or...
[ "tom.birdsong@kitware.com" ]
tom.birdsong@kitware.com
65b0e7f7e7d0a9200cca22a5dcdb57d513c3c4a2
bf76896be115a048f59c1cce6562c7ef9b432d29
/Intro to Machine Learning/Week 3/Logistic Regression/Logistic.py
266bf660f7e89ad43994db9d1a8d150b9db9892c
[]
no_license
nick95a/Machine-Learning
06929b797b243b55a3c8cf6412a7de55109e66b1
314ca5eea3bc7f80ffd1fa30a9eb87a9fac2150e
refs/heads/master
2020-06-22T22:41:56.065925
2020-06-22T07:30:40
2020-06-22T07:30:40
198,420,095
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
import numpy as np import pandas as pd import math from sklearn.metrics import roc_auc_score data = pd.read_csv('/Users/nikolaymaltsev/Documents/ML/data_logistic.csv',header = None) X = np.array(data.iloc[:,1:]) Y = np.array(data.iloc[:,0]) a = 0 w1 = 0 w2 = 0 k = 0.1 C = 10 l = len(Y) x1 = X[:,0] x2 = X[:,1] n = 0...
[ "noreply@github.com" ]
noreply@github.com
a1bedc398853d8b1dd57e39be2a6dab67594e559
a657618ff7e803e621383afab910511435ba7003
/scripts/rrt.py
131d3ab2b23a8f05a1170aa2cecc63c48fb04424
[]
no_license
olisolomons/L310_capture_the_flag
68c3b02f8f7cd94451bc57643540b72ceb0ebc1f
c44a76b66f52232557d67cc41c753055cdbbba98
refs/heads/main
2023-04-17T23:14:49.891062
2021-04-28T10:55:19
2021-04-28T10:55:19
356,313,810
0
0
null
null
null
null
UTF-8
Python
false
false
13,109
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import matplotlib.pylab as plt import matplotlib.patches as patches import numpy as np import os import re import scipy.signal import yaml # Constants used for indexing. X = 0 Y = 1 XY = slice...
[ "oli.solomons@gmail.com" ]
oli.solomons@gmail.com
884a0b600ab0d1c224f04dbc9a3f59c3b47ca4f1
fcd965c9333ee328ec51bc41f5bc0300cc06dc33
/Coding Patterns/Fast & Slow Pointers/Palindrome LinkedList.py
8e1dc912eb07d240edfe2d100acd686917699403
[]
no_license
henrylin2008/Coding_Problems
699bb345481c14dc3faa8bab439776c7070a1cb0
281067e872f73a27f76ae10ab0f1564916bddd28
refs/heads/master
2023-01-11T11:55:47.936163
2022-12-24T07:50:17
2022-12-24T07:50:17
170,151,972
2
0
null
null
null
null
UTF-8
Python
false
false
3,389
py
# Problem Challenge 1: Palindrome LinkedList (medium) # https://designgurus.org/path-player?courseid=grokking-the-coding-interview&unit=grokking-the-coding-interview_1628743582805_17Unit # Problem Statement # # Given the head of a Singly LinkedList, write a method to check if the LinkedList is a palindrome or not. # #...
[ "henrylin2008@yahoo.com" ]
henrylin2008@yahoo.com
3b6061558fc7ecf7db895efd9893b58676d64b5a
e503363752205c9de4973a3f93083678fe6d0698
/object_detdction/Object Detection.py
1c448826a13e51f3f75c223d07b26c0c23e82fa0
[]
no_license
gingkg/object_detdction_water
fbe9321a1bf9a6cf342ce2e9e302d5c9f1b58c38
4a744f3c4fd9cf6b581480a5e2f441e21181f40a
refs/heads/master
2020-03-27T21:31:42.223386
2018-09-03T10:59:07
2018-09-03T10:59:07
147,152,628
1
0
null
null
null
null
UTF-8
Python
false
false
5,620
py
# -*- coding: utf-8 -*- """ Created on Tue Jun 5 18:23:44 2018 @author: a123 """ import numpy as np import os import six.moves.urllib as urllib import sys import tarfile import tensorflow as tf import zipfile from collections import defaultdict from io import StringIO from matplotlib import pyplot as plt from PIL i...
[ "sby2015666@163.com" ]
sby2015666@163.com
244625ed52a9ee92e1d72dacbb586ae1a2ac8037
326e9be3bd1b861db6a87e09fef31a63e46f0ab1
/hw4/hw4.py
d355676110f2a7d29725acd46f726e9f6099dd1a
[]
no_license
r06521601/ML2018SPRING
d42e88ca91a82dddb234d9667ce0da0fea31af66
50db1aef2dedb9dd435cd843c60f66ca4cf28055
refs/heads/master
2021-09-20T11:52:10.313518
2018-08-09T07:14:25
2018-08-09T07:14:25
124,334,115
0
0
null
null
null
null
UTF-8
Python
false
false
1,889
py
# coding: utf-8 # In[3]: import numpy as np import keras import pandas as pd import os import sys from keras.layers import Input, Dense from keras.models import Model from keras.optimizers import Adam from sklearn.cluster import KMeans # In[2]: def main(argv): x = np.load(argv[0]) x = x.astype('float32')...
[ "noreply@github.com" ]
noreply@github.com
1849bac316628694ea87ff00774d2816a84a04ce
6e4e395988c641856aa13aa3b68db838f0d47cc0
/Trying out DB-API.py
7a7c01c86e3f781089783e9aaf81459aec431027
[ "MIT" ]
permissive
fatih-iver/Intro-to-Relational-Databases
2669d060fd2f9c8884e936e541373eecfbe8634e
28528132378436d6dd1f1bdec96d1e7e285b4e4d
refs/heads/master
2020-03-16T11:26:54.090473
2018-05-09T21:32:38
2018-05-09T21:32:38
132,648,541
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
# To see how the various functions in the DB-API work, take a look at this code, # then the results that it prints when you press "Test Run". # # Then modify this code so that the student records are fetched in sorted order # by student's name. # import sqlite3 # Fetch some student records from the database....
[ "noreply@github.com" ]
noreply@github.com
81c64e4a0e8ebf5bf7adac9b58f82099ede172ec
30f11f19b39287ec6e6cd5784a2f74dbf75cd803
/mysite/settings.py
5e72e93bc0d20be2c004293f5b402bec20880203
[]
no_license
jhjl023/my-first-blog
26af6176828a0c86abe46bafc2a0622f9cbee654
f3617ebb4af4e11c7d69d77af96359baae19a1eb
refs/heads/master
2021-01-20T18:34:26.442632
2016-07-30T15:58:32
2016-07-30T15:58:32
64,532,771
0
0
null
null
null
null
UTF-8
Python
false
false
2,702
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.8. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths i...
[ "jhjl023@naver.com" ]
jhjl023@naver.com
0afeb5999ec080cb71c537f47392cf78f54bbef0
02230a9ffe01aa008dc8c66c2e61c50e41b302cf
/tests/pgh6.py
2553221cae4dcd0068ece58872807530d1b0963a
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
UKHomeOffice/python-pghash
62905f37ddd0d138935cfeab02471e9b1650cac6
25212aeaeec8e418a00adda53d8ca2198cab4a5a
refs/heads/master
2021-03-22T03:00:23.331296
2018-02-27T11:23:18
2018-02-27T11:23:18
109,151,603
1
1
MIT
2018-02-27T11:23:19
2017-11-01T15:54:25
Python
UTF-8
Python
false
false
857
py
from __future__ import division import random from collections import defaultdict import pghash results = defaultdict(int) seed = random.random() pg=pghash.pghgen(seed=seed) rolls = 1000000 for i in range(0,rolls): r = pg.hash((i,)).random() if r < 0.0001: results[0.0001]+=1 ...
[ "philip.hibbs@digital.homeoffice.gov.uk" ]
philip.hibbs@digital.homeoffice.gov.uk
fcddfa609249023b06bb68a1609a0d3ccc5d73c1
18ec89aa906fde8afa7d01d82e013ddb482d3171
/python/autoscheduler/plateDBtools/database/connections/MyLocalConnection.py
4f5ce76bb393e72600d5bc5dcffead6103cc8bd3
[]
no_license
sdss/autoscheduler
e4293e1a2f4c38d10e46eeac5f72591830092b5b
e43a63997c499687bcc72f8b8978c5ecfa960d9e
refs/heads/master
2021-06-24T17:06:53.567140
2020-11-12T20:15:50
2020-11-12T20:15:50
149,633,762
1
1
null
null
null
null
UTF-8
Python
false
false
2,001
py
#!/usr/bin/python import os import sys import sqlalchemy from sqlalchemy.orm import sessionmaker, scoped_session from sqlalchemy.ext.declarative import declarative_base from autoscheduler.plateDBtools.database.DatabaseConnection import DatabaseConnection '''APO database configuration parameters''' db_config = { '...
[ "jdonor@D-108-179-167-200.dhcp4.washington.edu" ]
jdonor@D-108-179-167-200.dhcp4.washington.edu
a3ed4c22c27ef24b07b4ce76b60d632ea251f1f0
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/212/usersdata/265/87081/submittedfiles/av1_3.py
1d4a47463f8274d69023d764799f71ec143c55a0
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
# -*- coding: utf-8 -*- import math a = int(input('digite o valor de a: ')) b = int(input('digite o valor de b: ')) c = int(input('digite o valor de c: ')) i=2 j=2 k=2 while i<=a: if a%i==0: divisor_a=i i=1+i print(i) while j<=b: if b%j==0: divisor_b=j j=1+j print(j) while k<=c: if c...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
0fd285f65a8894b2d2861cee670844635b17189c
6540dd798e84e8adffa90030c1d7e5ddc605786c
/AM-Python/Tune_SVM.py
ad268271733ab54672c6ed716b05f2beb67c2468
[]
no_license
iamduyang/Argument-Mining
b6051f781f835217dc979ff1b3b76a0948bfdd19
e5e4e3ea5e5c252cf79919eacfc9725095637467
refs/heads/main
2023-07-15T19:15:11.096408
2021-08-26T07:45:38
2021-08-26T07:45:38
396,830,589
1
0
null
null
null
null
UTF-8
Python
false
false
2,687
py
# -*- coding:utf-8 -*- """ # Author: Yang Du # Email: duyang2015 (-A-T-) iscas dot ac dot cn # Date: 2018-05-09 # Purpose: #------------------------------------------------------------# # Copyright (C) 2018 Yang DU # This code is freely available for non-commercial purposes #--------------------------...
[ "noreply@github.com" ]
noreply@github.com
66da1530c50a7d57b3b4bba88cea4b8709782045
43f40e66ad46c85f95898716a0a3a21c0e620da1
/pinpoint/utils.py
f9c20de46f4b565dec8a57043a3f5020ffebd396
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
vivekhsridhar/pinpoint
67c7068bf76abcc912c4650bcb0b2b93249f1049
30821b0fb60445d29cbb629c1092292285d23e45
refs/heads/master
2021-08-24T06:53:25.049930
2017-10-12T10:17:30
2017-10-12T10:17:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
34,861
py
""" Copyright 2015-2017 Jacob M. Graving <jgraving@gmail.com> 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 ag...
[ "jgraving@gmail.com" ]
jgraving@gmail.com
02ec24fbcd3ec7fb51b2910e4d7827a28d97806d
c6ec5e205cce6c5525875e75b258ccbe62d16bdd
/page/controllers/alumnos/insert.py
cb2e7cfe508822641cf18cc6e6ff33fa42dcb861
[]
no_license
FernandoPZ/Week10
5492e699612437712260b04788a1eb1dbb1abc4b
0b1fd0959d9882f9745c7c671680f02d566a33ad
refs/heads/master
2022-11-18T05:58:47.219762
2020-07-19T04:47:20
2020-07-19T04:47:20
280,793,367
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
import web render=web.template.render('page/views/alumnos/') class Insert(): def GET(self): try: return render.insert() except Exception as e: return "--E-R-R-O-R--" + str(e.args) def POST(self): try: form = web.input() print(form) print(form...
[ "noreply@github.com" ]
noreply@github.com
6d21ad219bf506cf889bd6aa26475a4654dafd06
cb349cde86be783a154b984c05c288f04aee7aa7
/madt_ui/lab2graph.py
9474c44fe2d552d6a30fc5ce7dd2c681eab521b4
[]
no_license
ananassta/madt
531cdb72163061ead9f42ce7280ca936fb311797
ca7df8460448ae515f17bfb3a594b30ef9503415
refs/heads/master
2023-01-29T14:18:22.537742
2020-10-15T21:07:10
2020-10-15T21:07:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,127
py
import json def from_config_old(config_file_name): with open(config_file_name) as config_file: lab_config = json.load(config_file) nodes = lab_config['nodes'] edges = [] networks = {} for name in nodes.keys(): for network in nodes[name]['networks'].keys(): if not ne...
[ "rukmarr@gmail.com" ]
rukmarr@gmail.com
41da1c69fa548b1097c3f610c247edc4b7263fb2
c770be697b646705031f48c128cfe25c5df14680
/infoworks/modify_idle_instances.py
2c320a8f3cc9307293e9e3d42ea2e9bc5f547274
[]
no_license
abhr1994/Python-Challenges
5fd09b9f3b330d969b515bdd39b8a9c3b159c3e4
3b1d7faa862ef341c9da833124925acc69b049ca
refs/heads/master
2023-06-02T03:02:32.627297
2021-06-09T15:27:02
2021-06-09T15:27:02
111,506,696
0
0
null
null
null
null
UTF-8
Python
false
false
4,717
py
import argparse import requests import sys class Databricks(object): def __init__(self, **kwargs): self.host = kwargs['host'] if 'host' in kwargs else None self.token = kwargs['token'] if 'token' in kwargs else None self.instance_pool_id = kwargs['instance_pool_id'] if 'instance_pool_id' i...
[ "abhr1994@gmail.com" ]
abhr1994@gmail.com
fa1d83149490bbaaf6e2373771de847c30a4191b
10326daa458342fd992f4bd2f9c63c9469ae5a11
/.graal-git-repo
419b5f2ded2ecc3adce67832c5ddb0e5577ca1db
[ "MIT", "CC-BY-SA-4.0" ]
permissive
charig/black-diamonds
b08c1d9dab528a9c9c935414e6af4faf2d5773fb
0fd46caeec41f57b621143be1e4bd22d5a9a7348
refs/heads/master
2020-04-12T20:04:36.490970
2018-09-22T13:39:03
2018-09-22T13:39:03
162,725,323
0
0
MIT
2018-12-21T14:47:34
2018-12-21T14:47:34
null
UTF-8
Python
false
false
2,522
#!/usr/bin/python # This is a self-updating script encoding the Graal+Truffle and mx repos and # revision used for testing on CI. We don't use submodules to avoid a hard # dependency that might bloat the repository of users of BlackDiamonds # # To checkout the repos, at the specified version for this version of the cod...
[ "git@stefan-marr.de" ]
git@stefan-marr.de
8996b8adf82aca7a5986fb782de82dc021193aff
9515f8c7d690756de8032c3cd8e8374e6f5ad624
/serverless/functions/coupons/app.py
8c5fcd362ce515e540fc13ed2dd76be07421c8f7
[ "MIT" ]
permissive
webclinic017/broker-account-analist
c02baa28b1830093e92b4962c1fd06a4412e4173
cd5d95f0072c9d5985f72217556ec4adff486c4e
refs/heads/master
2023-08-26T01:17:15.167039
2021-11-12T11:48:35
2021-11-12T13:11:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
876
py
import json from service import Moex import asyncio def lambda_handler(event, context): """ Parameters ---------- event: dict, required API Gateway Lambda Proxy Input Format Event doc: https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api...
[ "rkorytoff@gmail.com" ]
rkorytoff@gmail.com
dbf3ee12750b85972d84a46800ebc813cf1eebc1
9b4aae68393ed420eee14c86bb5be2ac06e509be
/read dht sensor custom code.py
b52050f1459e0a53443a5a4c315e12544eedbbca
[]
no_license
VarSriv/rpisense
4709c47acf6968554192ef47c36421278adebb04
f04e519d8967f3c299df58f5dd723ceacc208182
refs/heads/master
2021-01-21T05:10:37.502465
2017-02-25T16:17:46
2017-02-25T16:17:46
83,143,974
0
0
null
null
null
null
UTF-8
Python
false
false
2,167
py
import RPi.GPIO as GPIO import time def bin2dec(string_num): return str(int(string_num, 2)) data = [] GPIO.setmode(GPIO.BCM) GPIO.setup(14,GPIO.OUT) GPIO.output(14,GPIO.HIGH) time.sleep(0.025) GPIO.output(14,GPIO.LOW) time.sleep(0.02) GPIO.setup(14, GPIO.IN, pull_up_down=GPIO.PUD_UP) for i in range(0,500): dat...
[ "varnika.srivastava@gmail.com" ]
varnika.srivastava@gmail.com
dcb3980fb3389f1967bc679b30b0ca7aa6b476c9
08d316151302f7ba4ae841c15b7adfe4e348ddf1
/reviewboard/hostingsvcs/tests/test_fogbugz.py
97cccab17520fd5b84e7a49e97c38afd16cd410c
[ "MIT" ]
permissive
LloydFinch/reviewboard
aa8cd21fac359d49b3dfc5a68c42b857c0c04bd8
563c1e8d4dfd860f372281dc0f380a0809f6ae15
refs/heads/master
2020-08-10T20:02:32.204351
2019-10-02T20:46:08
2019-10-02T20:46:08
214,411,166
2
0
MIT
2019-10-11T10:44:55
2019-10-11T10:44:54
null
UTF-8
Python
false
false
952
py
"""Unit tests for the FogBugz hosting service.""" from __future__ import unicode_literals from reviewboard.hostingsvcs.testing import HostingServiceTestCase class FogBugzTests(HostingServiceTestCase): """Unit tests for the FogBugz hosting service.""" service_name = 'fogbugz' fixtures = ['test_scmtools'...
[ "christian@beanbaginc.com" ]
christian@beanbaginc.com
71e1d262625acedb2ddc4fc66d2d6858218d4128
0451550657cdd3cad37dc2060af0ff15ecfd96a9
/avs.py
9d44797f9a490afa61a54274e0256ac0602d26e8
[]
no_license
elasticaqanet/qanet2.76
cc8882addde0a42d57a9ffc71fdb6d1782327c22
076a9758dc03cc373dc3dcd2bce3df9e5796ffc4
refs/heads/master
2023-04-27T14:45:27.035801
2023-04-20T01:03:22
2023-04-20T01:03:22
72,026,749
0
0
null
2023-04-20T01:03:23
2016-10-26T17:21:35
C++
UTF-8
Python
false
false
35
py
sdhfvx7c6z8zgiybckhvytdzfuygkuhjnc
[ "sajjad.kernel@elasticaqa.net" ]
sajjad.kernel@elasticaqa.net
4ecdd815247e0dbbce62aa31588d52a247fcfca9
71f882ee5ba6d0c5b3196299d0bb5d9e383b9006
/variational-continual-learning-master/ddm/alg/cla_gauss_mixture_not_mnist.py
482f9c85a745364b73b72b8c5f96485e2d83882b
[ "Apache-2.0" ]
permissive
anhpt1997/variational-continual-learning
cd0952baf701817f14567128ba665befc1496bd0
8e6f5987a848a326d040e78dd83409d4a2d66004
refs/heads/main
2023-03-12T18:15:30.896974
2021-02-28T08:27:33
2021-02-28T08:27:33
343,054,892
0
0
null
null
null
null
UTF-8
Python
false
false
26,215
py
import tensorflow as tf import numpy as np from copy import deepcopy import sample_gumbel_trick import kl_gauss_mixture #chi co phan share la mixture, head van la gauss np.random.seed(0) tf.set_random_seed(0) # variable initialization functions def weight_variable(shape, init_weights=None): if init_weig...
[ "phantuananhkt2204k60@gmail.com" ]
phantuananhkt2204k60@gmail.com
ce2e15d0a70e370a0bff53d1470422ca31723bcb
25bcf095a803470b4be9bba394569cb218b997ed
/hot100/148-排序链表.py
a1d4e1cac9f80aa815abe0bbfd2598153f41d204
[]
no_license
lcqbit11/algorithms
c8a3da6d3a9d387d54639c0a08d14ca6b9118bb3
ca4dacda39dc12d53ed8d4448b3356a3f2936603
refs/heads/master
2023-06-22T06:36:22.106780
2023-06-11T07:10:40
2023-06-11T07:10:40
245,633,883
0
0
null
2023-06-11T07:10:41
2020-03-07T13:02:24
Python
UTF-8
Python
false
false
2,656
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ## # 给你链表的头结点 head ,请将其按 升序 排列并返回 排序后的链表 。# from utils.listNode import ListNode def sortList(head): def merge(l1, l2): dumpy = ListNode(-1) temp = dumpy while l1 and l2: if l1.val <= l2.val: temp.next = l1 ...
[ "lcqbit11@163.com" ]
lcqbit11@163.com
6165a9db38ac3d61a6065c8285ecab28a80dd53e
65a95f2b7d73346ba56d1e4f39deca3b83ea679a
/searchResult.py
008e75a83db2184f0c049838b00843e4263f1c5f
[]
no_license
StewSchrieff/midtownCrawler
21b9de097b732e5082d84b35569a3c4209117cf0
b8cf8569df0c24548bec0ffb73f7ce326abd60ed
refs/heads/master
2022-12-15T14:57:51.343039
2018-11-21T18:11:45
2018-11-21T18:11:45
158,588,438
0
0
null
2022-12-08T01:18:36
2018-11-21T18:09:36
Python
UTF-8
Python
false
false
2,179
py
class SearchResult: def __init__(self): self.title="" self.lastmod="" self.resourceType="" self.church="" self.resourceURL="" self.thumbnailURL="" self.tags="" self.isPinned=0 def __repr__(self): lines = '---------------------------------...
[ "schriefs@email.sc.edu" ]
schriefs@email.sc.edu
0bdfb4376b55ddc10ba3e51db3e780dba6971c08
db53c46cb8abb44fb9d545883ed1c70095f7c0fe
/板载资源/Python/01.example/04.开源硬件/pyfirmata_blink.py
50f884a57f036673711e4a4b56596f99bde70547
[ "MIT" ]
permissive
kurtjie/vvBoard-docs
c28f6b5041f9f6790aa0055d01e2ab407cacac12
4e13b4a6699cc937f2c61b60c8a6523b1f3557c6
refs/heads/master
2023-05-06T10:16:26.638540
2021-05-28T12:16:09
2021-05-28T12:16:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
from pyfirmata import Arduino, util from time import sleep board = Arduino('/dev/ttyS1') while True: board.digital[9].write(1) sleep(1) board.digital[9].write(0) sleep(1)
[ "xiezuoru@vip.qq.com" ]
xiezuoru@vip.qq.com
d124351375a93180972b17769d061483af5600b9
e1b88dbe8c63114c08a828c10a242aecfe95ce08
/235.lowest-common-ancestor-of-a-binary-search-tree.py
a7b1dbf62dfe816b7bf582cce6b67f688d384761
[]
no_license
sljeff/leetcode
e5fe10430755aa36f7ff8c066fe6e7b470f74266
1fc2222b437c903881978c16b01187e2a1f22bff
refs/heads/master
2020-04-19T08:44:11.858858
2019-01-29T09:50:51
2019-01-29T09:50:51
168,087,211
0
0
null
2019-11-23T10:10:17
2019-01-29T04:10:21
Python
UTF-8
Python
false
false
701
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def lowestCommonAncestor(self, root, p, q): """ :type root: TreeNode :type p: TreeNode :type q: TreeNode ...
[ "shanliangjeff@qq.com" ]
shanliangjeff@qq.com
fcbbd1b4605b6a182c8c94961c94bb5bcc76828a
ebbfaf1e0bd40396a12a09df02c2bfc5f8ae40e0
/blogapp/migrations/0001_initial.py
1dd819da6328f2db5bf6de4dc88f791bad6ace74
[]
no_license
xueerhuan/register-login
0dae2e8d30ac9c932c1d887e51ab866753ace717
c5009f58268d4bf03a77b5bbb26e99f6f43fd6e3
refs/heads/master
2020-03-16T18:13:19.330506
2018-05-10T09:37:15
2018-05-10T09:37:15
132,864,641
0
0
null
null
null
null
UTF-8
Python
false
false
1,655
py
# Generated by Django 2.0 on 2018-05-10 07:47 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Blog', fields=[ ...
[ "792375705@qq.com" ]
792375705@qq.com
433f2c6606bbac3199c7d836f0a808135f4b512b
7d4be1a7c75fb6904c191922fb66f60e3ec1360e
/deploy/create-qcloud-scf-func.py
bf30e021c3b2cea5db2e217bff5cbb132145bcfe
[]
no_license
peixin/airport-freedom-checkin
1c7418d88757bcb9a4f408647734743a02553470
0d626bc30d0a71740ae967a4ebdf5342885b6825
refs/heads/master
2023-06-07T02:24:19.082491
2021-07-03T09:15:48
2021-07-03T09:15:48
297,869,884
1
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
import sys from os import path from typing import Dict import json from tencentcloud.common.exception.tencent_cloud_sdk_exception import ( TencentCloudSDKException, ) from tencentcloud.scf.v20180416 import models sys.path.append(path.dirname(path.dirname(__file__))) import config from deploy.qcloud_scf_common impo...
[ "fengyi.mail@gmail.com" ]
fengyi.mail@gmail.com
ec4e8efe3153d90315b75a2da4d9456c06775281
29a765fb3ce843ab6406bc2a326ea8c2fc108c11
/train.py
163a50f5dfc70f98866b09ea19376935faa1930b
[]
no_license
kailaisun/fire-detection-without-lamp
3cf76adf8c5d281474115ec74db50e4cb22afa1e
22bad9f315be2c5d44ee47d6fbbd1315b522d106
refs/heads/master
2023-07-17T02:32:14.970296
2021-09-07T07:34:24
2021-09-07T07:34:24
299,152,851
4
2
null
null
null
null
UTF-8
Python
false
false
24,757
py
import argparse import torch.distributed as dist import torch.optim as optim import torch.optim.lr_scheduler as lr_scheduler from torch.utils.tensorboard import SummaryWriter import test # import test.py to get mAP after each epoch from models import * from project.datasets import * from project.utils import * mixe...
[ "40592892+kailaisun@users.noreply.github.com" ]
40592892+kailaisun@users.noreply.github.com
967c4163dd3b2b4b3fccef187338d4d020e0e693
7c63a96fad4257f4959ffeba0868059fc96566fb
/py/m_lutz-programming_python-4_ed/code/ch_01/step_06/01-cgi_basics/cgi-bin/cgi101.py
73cd3dab161b31965720666610c168715c174345
[ "MIT" ]
permissive
ordinary-developer/education
b426148f5690f48e0ed4853adfc3740bd038b72c
526e5cf86f90eab68063bb7c75744226f2c54b8d
refs/heads/master
2023-08-31T14:42:37.237690
2023-08-30T18:15:18
2023-08-30T18:15:18
91,232,306
8
0
null
null
null
null
UTF-8
Python
false
false
270
py
#!/usr/local/bin/python3 import cgi form = cgi.FieldStorage() print('Content-type: text/html\n') print('<title>Reply Page</title>') if not 'user' in form: print('<h1>Who are you?</h1>') else: print('<h1>Hello <i>%s</i>!</h1>' % cgi.escape(form['user'].value))
[ "merely.ordinary.developer@gmail.com" ]
merely.ordinary.developer@gmail.com
a117105122d316f39f1c0c8abb8c225c0f8a5dee
cf70fa1ff36ce00581f6987d3d9895ceb13eb1b4
/Assets/Scripts/Old Python Scripts/Voice_Rec_threading.py
e15156d4218830ba9045f4ecd242b33e786edefe
[ "MIT" ]
permissive
Zevora/Chemistry-Learning-Aid
c66339533fd36f7e329c689ff589c32d8575fd72
958d83c3070477c6c8b4ee89ef58d1752fd42e61
refs/heads/main
2023-08-24T12:39:00.459704
2021-10-07T03:20:29
2021-10-07T03:20:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,710
py
############################################################################ # Purpose: # The purpose of this class is to more easily bring together the Voice Recognition # Libraries Seamlessly. Just need to Specify which model to use, provide the needed key(s) # # Extra Info: # The user can determine which model...
[ "34713514+Zevora@users.noreply.github.com" ]
34713514+Zevora@users.noreply.github.com
825528a3c96c7ce66590520993630962f1d39920
8a47396e06855713d54ad49664fc95aadf4dcad4
/bfiao/bfiao_simple_examples.py
f04e2ab1e6cbfdb5d20b757b5f59569f8b201c5a
[ "MIT" ]
permissive
msicilia/bfiao
819270c72dd6e4518232b4d700682bd717d67bc4
61febf1552b08d353d8fbeae0d450e98200d1b93
refs/heads/master
2023-02-06T05:33:28.654893
2020-12-30T17:29:49
2020-12-30T17:29:49
311,750,193
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
from owlready2 import * bfiao = get_ontology("bfiao").load() ogc_gml_location = "gml_32_geometries.rdf.xml" ogc_gml_ont = get_ontology(ogc_gml_location).load() gml = ogc_gml_ont.get_namespace("http://www.opengis.net/ont/gml") cco_ont = get_ontology("cco.nt").load() cco = cco_ont.get_namespace("http://www.ontologyrepo...
[ "msicilia@gmail.com" ]
msicilia@gmail.com
d0fc14fbec55dd1b1228445716ac3f914c23cd1f
8d375652e44b67d73102fee7abc1abaab4cb4329
/m-old-versions-2/m6/compiler/m6c.py
ab63561b6f0615eda6cd3412281e8f697c1403cd
[ "MIT" ]
permissive
paulscottrobson/old-m-versions
6d2061e36f2a5aaef388a4786406f876f0a06e0b
c2edb4200d32e066223ace4fd05837a485302645
refs/heads/master
2020-04-04T03:09:25.399283
2018-11-01T12:14:57
2018-11-01T12:14:57
155,709,691
0
0
null
null
null
null
UTF-8
Python
false
false
14,854
py
# **************************************************************************************** # **************************************************************************************** # # Name: m6c.py # Purpose: Simple M6 Compiler. # Date: 15th August 2018 # Author: Paul Robson (paul@robsons.org.uk) # # **********...
[ "paul@robsons.org.uk" ]
paul@robsons.org.uk
856de5518de640f4f395b6363f68d8c506f28ba6
a59a8dc79da14a38c9693c8411a75d8fc7973345
/lesson5/2c.py
0f7e895f494e40cb3863e134c5aa034ac3637b1c
[]
no_license
treyfleming/pynetlab2020
f55497fb65df7dbfc39fddfe4eee82c67bd88039
92a5267c996518d6bd47088d4f4ad4fe2cfc314f
refs/heads/master
2022-12-26T07:20:54.826231
2020-09-23T02:02:06
2020-09-23T02:02:06
274,007,697
0
0
null
null
null
null
UTF-8
Python
false
false
3,590
py
##Set up J2 Environment import time import re from jinja2 import Template, FileSystemLoader, StrictUndefined from jinja2.environment import Environment from getpass import getpass from netmiko import ConnectHandler ##Import variables file from variables import nxos1, nxos2 ##Set up Main function if __...
[ "trey@treyfleming.com" ]
trey@treyfleming.com
36e43e74b08447cf2f05b2dcf61b029bfb9d1375
fa384103a190f03e54e32400298dfd66a881fbb1
/ya_tasks_1_single.py
86475bb2ed7b2a32347c7a05138e31848bc8adbf
[]
no_license
duker33/some_test_task
c579d8bf66f911aceee5effb0d5c921e7ab4f0b3
3e968b75cdc840ab983a2f87e9d246e35aef1afb
refs/heads/master
2020-08-29T11:06:20.664884
2019-10-28T09:55:15
2019-10-28T09:55:15
218,014,298
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
import random from hypothesis import given, strategies as st def foobar(*args, **kwargs): ... return random.choice(TEST_RESULTS) def foobar_single(*args, **kwargs): if not hasattr(foobar, 'single_result'): foobar.single_result = foobar(*args, **kwargs) return foobar.single_result TEST_RESU...
[ "duker33@gmail.com" ]
duker33@gmail.com
76934d606b698ef76801e2af1e3b1e968b5e2587
fb24234fc4fb06fa9c68b8b9900dddb27826c879
/2018/Advent2018/Day3/Day3_Part1.py
2d3440cf8cb6bb1e4c2d383b7d475fdec1cb512d
[]
no_license
killercatfish/AdventCode
9a2be360dffd6b03b8473a915db5676151ff9916
80e40727a1513a167cbc44a381b19db6c4733e44
refs/heads/master
2020-04-09T08:54:34.531487
2019-12-09T23:43:17
2019-12-09T23:43:17
160,213,055
0
0
null
null
null
null
UTF-8
Python
false
false
1,617
py
''' a list with lists of the integer values of the inputs [claim ID, left edge, top edge, width, height] ''' input_list = [] with open("../input/inputday3.txt") as f:#../input/inputday3.txt for line in f: l = line.strip() j = l[1:] j = j.replace(' @ ',',') j = j.replace(': ', ',') ...
[ "killercatfish@gmail.com" ]
killercatfish@gmail.com
70828c6320f684927f40d62075ade54537a2271f
cfd900c82d2bd18113603663972e29517789d729
/keys.py
21f2d68822f9686aadd99b7a69be552c5b22dadc
[]
no_license
harryboulton1/Keyboard-Trainer
18b1aacfcd29130fba10f3070d3ff5465fb29e80
57162586c40f986c4c7854447d6771b595464dee
refs/heads/master
2021-01-24T09:35:03.942102
2018-03-05T01:12:48
2018-03-05T01:12:48
123,021,525
0
0
null
null
null
null
UTF-8
Python
false
false
2,361
py
import os frequencies = {"C3":131, "C#3":140, "D3":148, "D#3":156, "E3":165, "F3":175, "F#3":185, "G3":196, "G#3":208, "A3":220, "A#3":233, "B3":245, "C4":261, "C#4":277, "D4":294, "D#4":311, "E4":330, "F4":349, "F#4":370, "G4":392, "G#4":415, "A4":440, "A#4":466, "B4":494,...
[ "harryboulton10@gmail.com" ]
harryboulton10@gmail.com
2f193951c17bfd1bb4b47c921d8770b37dd1ddde
1bd05efc4635834febffbefbf6ed0c7a3a3bfbea
/hw2/SEMAFOR_stuff/xml_output_script.py
132758359ca47c127c13ed8daa0895d38ccc931d
[]
no_license
junekihong/sp2015.11-731
df1e3459aad49aa9cc59b7f020f7a729b0b74d16
17aa1c63bb0e1458d2baf4c54e4080a55f7b7fde
refs/heads/master
2021-05-28T18:22:31.287724
2015-04-23T19:59:31
2015-04-23T19:59:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,642
py
#!/usr/bin/python # coding=utf-8 import xml.etree.ElementTree as ET import sys, string, codecs from pprint import pprint def printall(sentence_xml): SEARCH = [sentence_xml] while SEARCH: node = SEARCH.pop() print node.tag, node.attrib, if node.text: print node.text.strip()...
[ "junkih@linux6.gp.cs.cmu.edu" ]
junkih@linux6.gp.cs.cmu.edu
558fb1d02606402c5ede816e8e5e75042e6f7d08
dbd3c0f8888271512d140a6c4ccc01ce3bdedf43
/plot1.py
5139a41628f36ecf627d900186f486dc69f5eaa9
[]
no_license
aleeshajaganath/Python_ML_Codes
41d8ad4ea441ec03830acc70673f0a96d575f56a
79f7d4f950faa478becad70b9995050a222f50af
refs/heads/master
2020-05-29T08:28:20.672527
2019-05-29T10:57:11
2019-05-29T10:57:11
189,041,794
0
0
null
null
null
null
UTF-8
Python
false
false
1,426
py
# -*- coding: utf-8 -*- """ Created on Mon Apr 15 00:25:16 2019 @author: user """ from IPython import get_ipython #get_ipython().run_line_magic('matplotlib', 'inline') get_ipython().run_line_magic('matplotlib', 'qt') import numpy as np import matplotlib.pyplot as plt import matplotlib matplotlib.rc('xtick', labelsi...
[ "aleeshasj@gmail.com" ]
aleeshasj@gmail.com
05dc4025703b1ff120f0a850d4c51bd88ee1166c
ca7c4ab687fed6d4e3e5f911d726e50aec95ebab
/venv/Scripts/pip-script.py
9170ab616f549cdd7cf43dc3c6e7089d0a996415
[]
no_license
Raghavanakhil/emailjenkins
6a85b00cd6ed30b0c62de8fd09c4343333899865
2fb639b254ca0dc8856717bd0e3cc23e1aa02ea3
refs/heads/master
2021-04-19T21:28:29.901280
2020-03-25T07:35:20
2020-03-25T07:35:20
249,634,383
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
#!C:\Users\ssrivathsan\AppData\Local\Programs\Python\Hdfc_Bank\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.e...
[ "raghavan8007@gmail.com" ]
raghavan8007@gmail.com
cf198967e5721ff051b551643c1902e36c065adf
d66818f4b951943553826a5f64413e90120e1fae
/hackerrank/Python/Validating Roman Numerals/solution.py
4d3307da4a8b34976111672247c145435592a77a
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
169
py
import re regex_pattern = r'(?<=^)M{0,3}(C[MD]|D?C{0,3})(X[CL]|L?X{0,3})(I[VX]|V?I{0,3})(?=$)' # Do not delete 'r'. print(str(bool(re.match(regex_pattern, input()))))
[ "hbinhct@gmail.com" ]
hbinhct@gmail.com
8ba11d0f4d9294f4849d5470db9555912b5c403d
f3775672588487e895fc083ed538546495a80ecf
/todo/todoapi/urls.py
820dcd5e71dfd86c30f701c235877bcfbf26268e
[]
no_license
Fctvzm/web-labs
3298c6f808e26b65fa8e1a9ca0068baae83e2b0d
484ef6b182e921ca2d8731f45a0e3e1a0807e74f
refs/heads/master
2020-03-12T20:58:45.480135
2018-04-24T06:59:48
2018-04-24T06:59:48
130,818,098
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
from django.urls import path from . import views urlpatterns = [ path('todos/', views.todo_list, name="todo_list"), path('todos/<int:todo_id>', views.todo_detail, name="todo_detail"), path('contacts/', views.contact_list, name="contact_list"), path('contacts/<int:contact_id>', views.contact_detail, n...
[ "zaytkalieva739@gmail.com" ]
zaytkalieva739@gmail.com
1773433480c17f06c09757f6251e684035134844
75dff087b6bec301193b2c145579d38b28249d22
/Leetcode_Algorithm/Python3/280_Wiggle_Sort.py
2735d66046a732cbb77e5f70e0db75a365eae4b8
[]
no_license
ChihYunPai/Data-Structure-and-Algorithms
2d3d930d8374b62287f7cc8c3741a1d7b3d227b6
27a85e20605393a5eca3f8bd7d42c389612493d5
refs/heads/master
2023-06-07T04:04:57.186920
2021-07-03T03:28:29
2021-07-03T03:28:29
119,465,269
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
""" Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3].... For example, given nums = [3, 5, 2, 1, 6, 4], one possible answer is [1, 6, 2, 5, 3, 4]. """ class Solution(object): def wiggleSort(self, nums): """ :type nums: List[int] :rtype: vo...
[ "tonypaiwhite@gmail.com" ]
tonypaiwhite@gmail.com
a592e785a0387981c24fc4b02fbd476b65126597
2a4aced6789a09b64caead20fd231ed104f4583b
/util/i2c/shutter_demo.py
cf20df0a90ebaad6e38e402e41633e35b8c5fd63
[ "MIT" ]
permissive
ruedijc/jetson-cam-utils
8dd2a8fa48b390b940b938c9a0519df5599ef63d
29fb26892cc150f9679ad7d5c3220e38f733ab04
refs/heads/main
2023-04-27T12:22:09.079527
2021-05-06T16:54:33
2021-05-06T16:54:33
329,092,484
3
0
null
null
null
null
UTF-8
Python
false
false
2,775
py
#!/bin/env python3 ''' shutter testing program pin assignments Ain 1 = P13-1 Ain 2 = P13-2 Sleep = P13-6 Bin 1 = P13-3 Bin 2 = P13-4 ''' import os import time, sched import subprocess ''' turn Ain_1 on os.system('/home/labuser/development/jetson-cam-utils/util/p13-1_on.sh') turn Ain_1 off os.system('/home...
[ "ruedijc" ]
ruedijc
aa296a7a8ab3059807f546aa0c042322cf253980
cf419462680f4a891b8d040de870832bf7e81fb1
/PhotoGallery/settings/components/database.py
f59778826f06fc14d54cfffb95598c359a3f8401
[]
no_license
tupyy/photogallery
04f6a32489f2ecbe008546f7dd5207a2f7e0d62c
52c13608f6f15429bf103226e9c64aea08afbcd6
refs/heads/master
2022-11-24T08:50:17.403543
2019-07-18T14:10:36
2019-07-18T14:10:36
152,573,015
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
# Database # https://docs.djangoproject.com/en/2.1/ref/settings/#databases DATABASES_DEV = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'photos', 'USER': 'postgres', 'PASSWORD': 'postgres', 'HOST': 'localhost', 'PORT': '5432', } }
[ "cosmin@home.net" ]
cosmin@home.net
5f3d1d59dddfd4fbccd0763620228091d57a6323
eb2668b93899637f04e4c93e01063d0c8175ccde
/Irises_classification/iris_KNN_GridSearch_2_parameters.py
a8ae8beebc2f04cb715db123dca90df089536532
[]
no_license
D-Katt/AI-Machine-Learning
aad1fe1c8f3f901cb7829919d1b69a106f0ddfab
1868c92366dccabf8c86c559eee640645b51bb51
refs/heads/master
2021-12-19T21:59:04.403188
2021-12-07T13:07:46
2021-12-07T13:07:46
235,104,866
3
2
null
null
null
null
UTF-8
Python
false
false
2,161
py
# Пример классификации объектов 'iris dataset' с использованием модели KNN. # Инструмент GridSearchCV используется для настройки 2 гиперпараметров - # количества "соседей" и весов. import pandas as pd from sklearn.datasets import load_iris from sklearn.neighbors import KNeighborsClassifier from sklearn.model_...
[ "noreply@github.com" ]
noreply@github.com