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
abc9718add43d9ee0381c273797b3561933c7b25
6ebc1281f19461838fa0b7a24220446cafb48dac
/Mobile Price Classification/app.py
19a411973d8a693977b945758c197f442f93722a
[ "MIT" ]
permissive
markbirds/Machine-Learning-Projects
73b86d91444f6d428c960c715003d39ceebfadf2
b5db975653853f5a56000090048472541afa51ae
refs/heads/master
2023-05-06T04:07:01.918759
2021-05-29T13:55:35
2021-05-29T13:55:35
324,064,991
1
0
null
null
null
null
UTF-8
Python
false
false
644
py
app.py
import pickle import sklearn print('\nMobile price classifier\n') ram = int(input('Amount of RAM in megabytes: ')) battery_power = int(input('Amount of battery power (mAh): ')) px_width = int(input('Pixel resolution (width - horizontal view): ')) px_height = int(input('Pixel resolution (height - horizontal view): ')) ...
bdfa2de125f1f898d327c90b4919ad070e3cc90d
0d16ed8dffd7b951abd66bf895c254749ed8195a
/diff.py
201af99540f881fc579eaa3012ff24c5f25c7800
[]
no_license
sanjiv576/LabExercises
1cfea292e5b94537722b2caca42f350ab8fc7ab8
ef5adb4fbcff28162fe9e3e80782172b93127b33
refs/heads/master
2023-07-22T08:13:04.771784
2021-08-17T12:23:21
2021-08-17T12:23:21
372,397,796
1
0
null
null
null
null
UTF-8
Python
false
false
36
py
diff.py
a = 77 b = 44 diff = a-b print(diff)
320b5b62486266c7f679e1e684e823872f55998b
0e62f0e46fdf873c43a3d0819a4fdad30ec3b671
/tutorial/spiders/dmoz_spider.py
be2b6702c18f51be38eda4236ae6cd7a7b83d982
[ "BSD-3-Clause" ]
permissive
lots-of-things/bracket-madness
4c8dfebd1b4efe80c6e8b3777b5f0f062fa7c6f5
b715ae04aefd51e82ca756b8765840d5ca2d3336
refs/heads/master
2021-01-01T19:39:23.676504
2014-06-03T15:01:02
2014-06-03T15:01:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,591
py
dmoz_spider.py
# -*- coding: utf-8 -*- """ Created on Sat Feb 22 20:08:15 2014 @author: will """ from scrapy.spider import BaseSpider from scrapy.selector import HtmlXPathSelector from scrapy.http import Request import re from tutorial.items import NCAAItem class DmozSpider(BaseSpider): name = "dmoz" baseurl = "http://hom...
dad81f591963a6b2eaff57f2461cff4d61a36955
033dafd9653ceef38ad388f79a6771ed3cf64c9f
/3C_main_study_CSL_optimization/CSL_optimization_SYNTH10.py
b8f5cf88cc8edb841f3a8dcb74148c2bde871187
[]
no_license
spriyanth/imbalanced_classification
2e4ed5f3f49614283b1a3ee92cd925797956e878
ee15121b72ceec73fcb03a0f64484fb3b3beed6b
refs/heads/master
2022-11-10T13:48:38.921455
2020-06-29T17:08:51
2020-06-29T17:08:51
275,843,741
0
0
null
null
null
null
UTF-8
Python
false
false
9,987
py
CSL_optimization_SYNTH10.py
############### PACKAGES ############### ### CORE PACKAGES import numpy as np import pandas as pd ### SKLEARN from sklearn import preprocessing from sklearn import metrics from sklearn.metrics import make_scorer from sklearn.model_selection import cross_validate, train_test_split, RepeatedStratifiedK...
6926b4034b4787277b22d4af0186a958da121add
d43100d78daa1a8167e462e0faaa7d2a0fe97671
/tournamentcontrol/competition/migrations/0038_match_live_stream.py
67ba9ca84146e3987657d1fd0cf24fb0a464ae2e
[ "BSD-3-Clause" ]
permissive
goodtune/vitriolic
1d6ee4758ed41f1674b70311be88c7135b2d1ed0
d4b3da0a8c9b5ccbda4d898003d82934ccad6a7b
refs/heads/main
2023-08-22T21:29:05.488534
2023-07-23T03:00:16
2023-07-23T03:00:16
73,355,905
0
0
BSD-3-Clause
2023-09-04T16:25:44
2016-11-10T07:06:41
Python
UTF-8
Python
false
false
457
py
0038_match_live_stream.py
# Generated by Django 3.2.13 on 2022-07-24 01:52 from django.db import migrations import touchtechnology.common.db.models class Migration(migrations.Migration): dependencies = [ ("competition", "0037_alter_match_evaluated"), ] operations = [ migrations.AddField( model_name="...
4037363a401f7cd5a4cc045b3f53afca1a8e1d53
cfb4f8b2a889617cdc488c4d37369095d3ba3204
/src/data_structures/hash_tables/hash_table.py
1550caf45944030bfbdda97779166671a046a23e
[]
no_license
luo-songtao/TheAlgorithmsNotesInPython
f9004ef20cf236ff42bdd8f5e834b01404de99ae
57d88c512d9f13bc1459db8c7721b6d5f9878160
refs/heads/master
2020-12-11T21:16:32.777616
2020-02-18T07:31:58
2020-02-18T07:31:58
233,961,964
0
0
null
null
null
null
UTF-8
Python
false
false
2,748
py
hash_table.py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Author: Luo-Songtao # Email: ryomawithlst@gmail/outlook.com class BaseHashTable: """基本哈希表 Attributes: size: 哈希表大小上限 numberic_hash: 数值hash函数 string_hash: 字符串hash函数 count: 哈希表中已存放数据条目数 """ def __init__(self, size, ...
81cdb6054a0c8ef97fa28a01b54418115dab12f0
cec5c3b669b362de12cd1452b0851d7fcb927841
/exer13.py
3fc31889aae1eef27f43ee8ae0870be1206ee95d
[ "MIT" ]
permissive
IuryBRIGNOLI/infosatc-lp-avaliativo-01
531cf0b20e0304339e3a7f27cffbb273d4bca100
d443619b0dc8fc0bbde0b6f4bb1f4a49c6ef200a
refs/heads/main
2023-07-19T07:21:33.049190
2021-08-30T18:16:28
2021-08-30T18:16:28
401,414,141
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
exer13.py
pre = float(input(("Digite o valor do premio "))) ct = print(float(((pre/100)))) ds = float(((ct - 0.7))) pg = print(float((ds - 0.46))) sg = print(float((pg - 0.32)))
20392e5f8c6c2d840772ad59eb4b740ec755eb1b
3e9c2d9e001f55699958240fb367c2fe2dbe6f3e
/core/migrations/0005_auto_20180924_1245.py
fba91be4556353603c06e6fe35a17d16eaa9b30a
[]
no_license
Mapsred/ESGI5_Python
1f284ce53fa122d844b65def5ebb8997f6499a91
901c8dc76f57c6a5f5e7fe06dc341c6e8b7027b5
refs/heads/master
2020-03-28T10:25:23.570337
2018-12-30T17:27:59
2018-12-30T17:27:59
148,107,229
0
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
0005_auto_20180924_1245.py
# Generated by Django 2.1.1 on 2018-09-24 12:45 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ('core', '0004_auto_20180921_1407'), ] operations = [ migrations.Create...
871aa1ef801cd1f324c1c759f6bca3841b82ac3f
f30b91db647dca1f77fffa4b7e26b6c6a68abbc6
/7_kyu/Multiplicative Persistence... What's special about 277777788888899?/python/solution.py
88b41031aed74588293b298cfc6df1d7a4f793e8
[]
no_license
estraviz/codewars
73caf95519eaac6f34962b8ade543bf4417df5b7
5f8685e883cb78381c528a0988f2b5cad6c129c2
refs/heads/master
2023-05-13T07:57:43.165290
2023-05-08T21:50:39
2023-05-08T21:50:39
159,744,593
10
55
null
null
null
null
UTF-8
Python
false
false
304
py
solution.py
"""Multiplicative Persistence... What's special about 277777788888899?""" from functools import reduce from operator import mul def per(n): lst = [] while not is_single_digit(n): lst.append(n := reduce(mul, map(int, str(n)))) return lst def is_single_digit(n): return n <= 9
a9a704c9e396224315f9009a56bc7b4b5178b8ec
91414850681051257ad2a375dcb3efda2c4b5b6c
/OpenWifiWeb/forms.py
22c0ea9bcf1646ab0231f59a18cb7107e9593c4a
[]
no_license
berlin-open-wireless-lab/OpenWifiWeb
68f0d3ecdf34576c9641f36d7179a99854ce57b2
e2d0189ddb55911d59d8bd3c085e1c18683a2c15
refs/heads/master
2020-05-24T07:13:55.865774
2018-12-06T15:54:59
2018-12-06T15:54:59
84,834,179
0
0
null
null
null
null
UTF-8
Python
false
false
1,759
py
forms.py
from wtforms import Form, TextField, IntegerField, PasswordField, StringField from wtforms import widgets class PasswordFieldNonHide(StringField): """ A StringField, except renders an ``<input type="password">``. Also, whatever value is accepted by this field is not rendered back to the browser like no...
f858ecdacfe33940b52c65aceb8537cf5e8ac5a0
87dacf81e22c738d93e0f1d2f59ff55dffd1aaa8
/til/urls.py
769bd54b04aaf4cde330b25c8ba36c756f5f2d8d
[]
no_license
cionman/django_tdd
7eac30dd8815d3ee16964d7ab61666199c458355
52741abfd577c05951d3f88c1c20068458b1f3df
refs/heads/master
2022-12-23T04:34:10.046674
2018-06-29T10:26:20
2018-06-30T04:14:33
127,107,313
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
urls.py
from django.urls import path from . import views app_name = 'til' urlpatterns = [ path('', views.til, name='til'), ]
14aa3be30f7196dac9564a2dc8fc46fb6bae27b5
754855a8233c1b17266acde51535895fa650589e
/classifier.py
1acbcc57eeacfe1090bc56eeefe51165f3887336
[]
no_license
naldhelaan/Emotion-analysis-twitter
5ba074b6e750528b6c59225d06ad1fac1ef672d6
b0ec02d4aa836c321a86085d4db4b0e2b1ddb884
refs/heads/master
2020-06-13T01:11:55.018631
2019-06-30T10:13:39
2019-06-30T10:13:39
138,989,808
0
0
null
null
null
null
UTF-8
Python
false
false
3,114
py
classifier.py
import html import pickle import re import os import pandas as pd from keras import backend as K from keras.models import load_model from keras.preprocessing import sequence # Suppress warnings os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf tf.compat.v1.logging.set_verbosity(tf.compat.v1.logging.FA...
692d9cbaefc42141b873bc7642ed0f8dd5f9a82a
26f94a9f49433b11ad06671affb9e797d9b96960
/server/blogs/resources.py
a9ea0b2fd82bddaa2e0a8250fe66ef0008dd8a54
[ "LicenseRef-scancode-unknown-license-reference", "Unlicense" ]
permissive
eddowh/flask-react-gae-multiuser-blog
b56b0875226cee2543fd69e222691673ad2546f0
7979567455936d32ba55c6edf0df82c4670754ef
refs/heads/master
2021-04-09T10:52:52.398982
2016-06-23T03:46:09
2016-06-23T03:46:09
61,512,197
1
0
null
null
null
null
UTF-8
Python
false
false
9,185
py
resources.py
# -*- coding: utf-8 -*- from flask import Blueprint, request, g from flask_restful import Api, Resource from google.appengine.ext import ndb from auth import basic_auth from users.utils import get_user_by_username_or_404 from blogs.mixins import ( ReactionResourceMixin, CommentResourceMixin, PostResourceMixi...
2aa26aa8641aff935780c37536e9d45c457c9df5
58ab9bf92f3d41b65e461c5083b97e272afa7350
/day2_password_philosophy/day2-2.py
cd8c183248a671a0673f34da3a538530d9ea75d2
[]
no_license
minhd2/advent-of-code-2020
e6c9a9c595dd510d9a82d080bc9ae3f359edfbc3
c8260c8615ced9ccf13e3eb755cb736b86c465a0
refs/heads/main
2023-03-06T18:41:21.599387
2021-02-20T01:37:25
2021-02-20T01:37:25
317,613,089
0
0
null
null
null
null
UTF-8
Python
false
false
715
py
day2-2.py
def password_check(filename): valid_password_counter = 0 with open(filename, 'r') as file: for lines in file: columns = lines.split() number_index = columns[0].split('-') letter = columns[1].rstrip(':') password = columns[2] first_index = in...
bbf28dc85fabaf3ae4ad7e345114f3c78d026865
2ff23f1563e176dcb17c1a164a0cf302ba7b9a48
/tests/test_map_array_processes.py
c74458eed48cb6b03b97d079d961fba31f050494
[ "MIT" ]
permissive
eodcgmbh/eodc-openeo-bindings
3e2d251447bcf7685b54eaaf0ef585ca0ad27371
4e80eba036771a0c81359e1ac66862f1eead407b
refs/heads/master
2021-07-11T13:04:21.069421
2020-10-28T12:12:39
2020-10-28T12:12:39
209,506,098
0
0
MIT
2020-10-28T12:12:40
2019-09-19T08:48:54
Python
UTF-8
Python
false
false
1,085
py
test_map_array_processes.py
from eodc_openeo_bindings.map_array_processes import * from eodatareaders.eo_data_reader import EODataProcessor from test_utils import create_mask def test_map_mask(eodatareaders_file, eodatareaders_params): """ """ S2_filepath, mask_filepath = create_mask(eodatareaders_file, ...
517d5ee563ffae7876fb1e04f11146604a2f3947
61322f6adcb9e179edec571b93e7873b37c92004
/tools/proxist.py
8bf1ae0ba17b98b3874ef21fca735599d2bb8d9f
[]
no_license
CLTanuki/soc_grabber
f7e20b6a7e49dc6c468bbc49af6fb1c5a0957fe5
1f7675f2ad2198c6f3e14f9a6afd79b2376a51b7
refs/heads/master
2021-06-11T08:44:32.412228
2017-03-14T14:56:46
2017-03-14T14:56:46
23,540,284
0
0
null
null
null
null
UTF-8
Python
false
false
2,802
py
proxist.py
__author__ = 'cltanuki' import signal from requests import get, post import socket from bs4 import BeautifulSoup from db_work.models import soc_db, Proxy from peewee import IntegrityError class ProxyGrabber(): def __init__(self, collect_mode=False): self.proxy_dict = {"http": "", "https": ""} self...
9a53899f1d007c68729849503cbfef0c539ca62c
3624d27c1235303fd1c36a99089564e7ea2e3472
/code_generator_factory.py
7ece78bcd74b3880633608c817c35c63fb4236e8
[]
no_license
GeomartBrenthPAbong/SimpleAssembler
faf2d825f69230a6354f1c62b67a34644238f3e2
5a19f8a40cae385865d9590e222a6b84ce0f5a95
refs/heads/master
2021-01-10T17:32:30.029857
2016-01-28T21:53:07
2016-01-28T21:53:07
50,615,185
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
code_generator_factory.py
from python_code_generator import PythonCodeGenerator class CodeGeneratorFactory(): @staticmethod def create(code_type): if 'python' == code_type: return PythonCodeGenerator() else: raise Exception('Invalid Code Generator.')
ca948367327154b3372f2963eddd85b0b5e3f8ac
410e4dc02606ba9aa19296014baefc616f6ad7d7
/CombineUsage.py
c6a438443f0b37aeb97962b17cca900500f46416
[]
no_license
jandelee/PCF_Usage
373bbc5f83c95dac1323935f14561cc728d22e7d
491713832b38dabaae7bce4183d1795af1c4b44d
refs/heads/master
2021-04-27T00:08:06.626985
2018-06-26T02:08:47
2018-06-26T02:08:47
123,754,304
0
0
null
null
null
null
UTF-8
Python
false
false
2,614
py
CombineUsage.py
#! python # CombineUsage.py takes as argument a date string, determines which files in the current directory match that date string, and combines those files # into a single usage file that is suitable for input to the GenerateBilling.py script # The environment is automatically extracted out of the filename by looking...
a834c7f0c31834e2c48ee26e21ae067d638c5996
036c69a0c27cfdc0b0d9d6169caf027635b66325
/leetcode893.py
0f5ecd84d757ec24c1fa3189b68621a8ad8bd3d8
[]
no_license
Marco2018/leetcode
19b6b2c19452babf0198f8705e0dd1f31c321017
c7dc709a7a9b83ef85fbc2d0aad7a8829f1035d1
refs/heads/master
2020-03-23T17:34:09.637831
2020-01-18T11:00:36
2020-01-18T11:00:36
141,865,308
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
leetcode893.py
from collections import defaultdict class Solution: def numSpecialEquivGroups(self, A): """ :type A: List[str] :rtype: int """ if A==[]: return 0 stack = [] for i in range(len(A)): dict1,dict2={},{} for j in range(len(A[i]))...
202c63a3c91a378f4ec46edc3de5401440af2452
4b9d7d85ad6be7a59357b02cef57915aab51a054
/server/adoptions/urls.py
5236546b4cf20771de3b8631d0c3764a75a2fb5d
[ "MIT" ]
permissive
tombushmitz86/vims
17dc601592372447e0dda26e33a548c1c674aa08
1dcf1bf655ef8e33092f8e3e4cfbd11e11239e3e
refs/heads/master
2020-03-18T07:25:37.392264
2018-06-10T15:01:58
2018-06-10T15:01:58
134,451,732
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
urls.py
from rest_framework import routers from . import views router = routers.DefaultRouter() router.register(r'adoption', views.AdoptionResource, 'adoption') router.register(r'package', views.PackageResource, 'package') router.register(r'delivery', views.DeliveryResource, 'delivery') urlpatterns = router.urls
e9a85354a6ececda618781f89087c2c55aced5bf
f77ef25d26fd194a0eca077e36eeb986cb03f1ae
/createWave.py
d4ed202b315e438504c8081f04a454e8bdc8d356
[]
no_license
itonorimitsu/acousticMedia
9bd8cb426a7b6083f928607752a6ef8ca5bc97cb
e2a2dea452a43156c2a6f993392add3d3ea98a1c
refs/heads/master
2020-03-21T18:40:17.993251
2018-07-06T16:02:29
2018-07-06T16:02:29
138,906,422
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
createWave.py
import wave import struct from scipy import fromstring, int16 # output.wav /Desktop wavf = '/Users/itounagamitsu/Desktop/AM_python/output_sin.wav' wr = wave.open(wavf, 'rb') # waveファイルが持つ性質を取得 ch = wr.getnchannels() width = wr.getsampwidth() fr = wr.getframerate() fn = wr.getnframes() print("Channel: ", ch) print("...
ff18f6c28f57f50cff16b779be4a8bd80824f489
0fea0b40d62b18dddf954841e5d40b3d8626eb0d
/0x02-python-import_modules/2-args.py
962f20a7a9253863ee86118e9434f3fa3b7011fe
[]
no_license
DevepProd/holbertonschool-higher_level_programming-1
6317415f75c413785163dcf0a71cd3c2ece9b17d
172690a8021c6da7230f7e0964a5cb8a8c3a443d
refs/heads/main
2023-08-21T22:32:13.378533
2021-09-27T06:56:21
2021-09-27T06:56:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
2-args.py
#!/usr/bin/python3 import sys if __name__ == "__main__": if len(sys.argv) == 1: print("{} arguments.".format(len(sys.argv) - 1)) elif len(sys.argv) == 2: print("{} argument:".format(len(sys.argv) - 1)) else: print("{} arguments:".format(len(sys.argv) - 1)) for i, argv in enumerat...
ccb8db8ed4682578001915f512289750bfc3b5eb
5fef7e0095b57a80ef3672945ac5438db22fcb1f
/Leetcode/872_LeafSimilar.py
aaae347a18f27563a194a96fbc7d4a1b3361a976
[]
no_license
wbq9224/Leetcode_Python
0feb8b509ce3ab194fc10a52ed5c90b8bfe12d92
c1f27c0cec80585095ce98a678ab85079e1a4c46
refs/heads/master
2020-03-23T15:02:21.860337
2018-09-16T08:48:51
2018-09-16T08:48:51
141,716,652
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
872_LeafSimilar.py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None from Leetcode.AimOffer.ConstructBinaryTree import * class Solution(object): def traverse(self, root, leaf): if root is None: ...
9b5cd8a82230cf71a690213d6156ba0c83aebd8a
10cdcb7031cd1038a0377f817e82e522bf47ef79
/evaluation_for_AD_TD_TAD/evaluation_for_TSD_ASD_TASD.py
f40bf68d908b7b3a68318c1eef513df250549024
[]
no_license
CQUPT-CaiKe/MEJD
3b2c2c8f5dbbe31322b471c08a6873d3d6b94c7d
afdb426d2e1f5ba5a2750df6cfe6d4326d23a7db
refs/heads/main
2023-04-13T03:09:16.431209
2021-04-22T13:50:45
2021-04-22T13:50:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,626
py
evaluation_for_TSD_ASD_TASD.py
# coding=utf-8 """evaluate P R F1 for target & polarity joint task""" import csv import os import re import argparse def TXT_file(name): return '{}.txt'.format(name) def Clean_file(name): return '{}.tsv'.format(name) def evaluate_TSD_contain_NULL(path, num_epochs, tag_schema): best_P, best_R, best_F, best_epoch...
5ab9d0bf294d7d50b7653493951772ef71fa9eb8
393ed07edd1242a26c46757d80c498ee3c6721f4
/solutions/13_introduction_to_dolfin_adjoint/poisson_dolfin_adjoint.py
120b2520223c31c6e34cb9152db3844d1bb99628
[]
no_license
funsim/hub_fenics_workshop
755e537a62fbbadcf5f7e5f3693545f277846bc4
980bacf7764c6ef24828df08f8104d344b36ff5f
refs/heads/master
2021-05-10T15:44:51.449646
2018-01-24T13:30:30
2018-01-24T13:30:30
118,561,452
0
0
null
null
null
null
UTF-8
Python
false
false
1,174
py
poisson_dolfin_adjoint.py
from fenics import * from dolfin_adjoint import * # Define mesh and finite element space mesh = UnitSquareMesh(50, 50) V = FunctionSpace(mesh, "Lagrange", 1) # Define basis functions and parameters u = TrialFunction(V) v = TestFunction(V) m = interpolate(Constant(1.0), V) nu = Constant(1.0) # Define variational prob...
80335b3828348822328fdd53ec3157876cdcfb8d
eea1c66c80784d4aefeb0d5fd2e186f9a3b1ac6e
/atcoder/abc/abc001-100/abc009/b.py
099bbca23870fa7d175d8bcc2860ff054f32b53f
[]
no_license
reo11/AtCoder
4e99d6f40d8befe264761e3b8c33d3a6b7ba0fe9
69c6d67f05cb9190d8fb07204488cd7ce4d0bed2
refs/heads/master
2023-08-28T10:54:50.859288
2023-08-22T18:52:47
2023-08-22T18:52:47
162,085,118
4
0
null
2023-07-01T14:17:28
2018-12-17T06:31:10
Python
UTF-8
Python
false
false
120
py
b.py
n = int(input()) a = [] for _ in range(n): a.append(int(input())) a = list(set(a)) a.sort(reverse=True) print(a[1])
875db855d02e7203142eece0da81a1655e4b413d
b64424fb405dfd9adb63d556b6cd7dbfdae7832d
/protopy/selection/__init__.py
23b8a5676255cd85cf7c389393c0d5d5ff007d40
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
antonlarin/scikit-protopy
efcfe4f8c37457ec429effbd9c969ef5c5135d29
f4deddc42c5883b527d7bb1bfc6d0ece7d01979d
refs/heads/master
2020-04-06T04:40:17.512347
2015-08-19T20:29:06
2015-08-19T20:29:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
__init__.py
from enn import ENN from renn import RENN from allknn import AllKNN from cnn import CNN from tomek_links import TomekLinks __all__ = ['ENN', 'RENN', 'AllKNN', 'CNN', 'TomekLinks']
0d24969ee37883c50aac1fa08e4acdf328284151
c245c5340e0f278dbc7fe4178042bb22b9dceb24
/main.py
251f44130c5215609b9f0834d4f04a4e0bdbb151
[]
no_license
danoco78/oasis
0d27f0760b31c29d023b951cd9c18a43be2bcc50
1ba421d0cfe0c4022fc7a70a706c1a304b9af70b
refs/heads/master
2022-12-20T00:45:24.744531
2020-09-26T22:37:12
2020-09-26T22:37:12
298,400,490
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
main.py
from kivymd.app import MDApp from kivy.lang import Builder from kivy.core.window import Window from kivy.uix.screenmanager import Screen from baseclass.screen_login import ScreenLogin from baseclass.screen_home import ScreenHome Window.size = (350, 550) class Oasis(MDApp): def build(self): self.theme_cls...
7b21e47a3f7c241c8553ca8639c8e22859ddadbe
8026529f180a41de486b82462a6410a4eac7ff06
/model/businessLayer/dbImpl/sys_lib_impl.py
52becb0c8f646ebfdbaa8e8dad605211270c0516
[]
no_license
caimi0821/coonever
df5698c362a216306c29cfa82ae97a321c9f6df7
57297410a067026038406793affc2dcb7557d537
refs/heads/master
2020-12-25T15:30:26.999633
2016-05-25T09:33:52
2016-05-25T09:33:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,093
py
sys_lib_impl.py
# -*- coding: utf-8 -*- #!/usr/bin/env python ''' 实现系统业务的数据库操作部分 原则上制作数据库操作和数据处理 create by chenli at 16/01/07 11:37 ''' from db_base import pg_update import math def get_api_by_api(api): sql = ''' select * from api where api = '%s' ''' % api return pg_update.selectBySql(sql) def roles_business_t...
593ea7138360b329b0ff05453a25d3120f422cde
84fbf60e9d2a2a7639f4850707a8c9d861765a85
/database.py
6a025cd1d73fd36b890e2f793d64b0171d97705d
[]
no_license
exoskelebox/data-collection
babac784b84fd133596f89a7997a080b057d71c0
3b1850c8d6ba011277dfd349dcc529d235dbfcbd
refs/heads/master
2022-07-09T17:16:29.708693
2020-03-16T11:46:33
2020-03-16T11:46:33
239,501,163
0
0
null
2022-06-22T01:12:28
2020-02-10T11:59:08
Python
UTF-8
Python
false
false
16,509
py
database.py
import numpy.random as random import datetime import time from configparser import ConfigParser import psycopg2 from psycopg2.extras import execute_values from flask import current_app SCHEMA = { 'subjects': """ CREATE TABLE subjects ( subject_id SERIAL PRIMARY KEY, subject_gender CHAR(1) NOT N...
a1908a578f2f0ebf945d0bd8eba49e60886a16f8
aac98b3737e5c2b384a87a04e632d8cc19a94039
/nonogram.py
98656c64ec9ec200ea671395cee6b6fcd2565952
[]
no_license
MattJWhyte/nonogram-solver
ec0e74df203ed03531fac255dfbb06628f4a8989
f18f9d7a3d4684b703620aeea541ea1e18903459
refs/heads/master
2020-12-22T22:02:05.335847
2020-01-29T11:00:59
2020-01-29T11:00:59
236,943,549
0
0
null
null
null
null
UTF-8
Python
false
false
6,236
py
nonogram.py
# Returns all the possible locations of a block of given length in a set space # Example: # block = 2, space = 4 # return : [["B", "B", " ", " "], [" ", "B", "B", " "], [" ", " ", "B", "B"]] # def draw_block(block, space): space = space block_len = block lines = [] for offset in range(space-block...
ed76c0d352fbfbfe3f33c519704a54d682b6cbe7
a0a8ebec1ea6f36b5f7af1ba8ce28752b26c2c5b
/src/flaskr/app/modules/api/customer/post.py
6624e387ef0cfc53b9b10e0c14756fe640e7b448
[]
no_license
IntersysConsulting/mdc_team_b_back
3fd1a6fad1449ec2999b80587b6d95fe5e789b52
0bee8868c95f348b5efd4ea74ecd7d62c8849435
refs/heads/master
2020-07-01T09:31:14.284788
2019-10-28T21:38:07
2019-10-28T21:38:07
201,127,916
0
0
null
2021-08-12T16:58:58
2019-08-07T21:04:52
Python
UTF-8
Python
false
false
2,190
py
post.py
from flask import jsonify from flask_restplus.namespace import RequestParser from ...resources.customer import CustomerManager ################# # Parser # ################# Parser = RequestParser() Parser.add_argument('first_name', help='Customer first name', ...
c7b522b0592ec1c3ec8f516ff038a234b904f2e4
35b165030e8bd0d61039f6c1e9eb59882d203f76
/CRM/models.py
d02d4578b03cb019777d9dceaf2648280048d9aa
[]
no_license
haythamdahri/BANK
ff5c8f7a0e221d607a74f3b9eed40bcc78d46674
43c2b88aeac6d5b1ddd98f6eaa98fd22256d7720
refs/heads/master
2022-12-14T20:38:23.815384
2019-12-25T18:47:39
2019-12-25T18:47:39
179,663,426
0
0
null
2022-12-08T05:25:06
2019-04-05T10:38:56
Python
UTF-8
Python
false
false
4,709
py
models.py
from datetime import timedelta import datetime from django.contrib.auth.models import User from django.db import models import uuid # Create your models here. from django.utils.timezone import now from django_countries.fields import CountryField transactions_types = [('transfer', 'Transfer'), ('withdrawal', 'Withdra...
289e23fc930510c6ebed7bf6a82db0026bda4ec6
531e0829a968da5bd98831533e5117ddb95568a3
/coordinate_functions/convert_mappoly_tofire.py
35777fba022194a3a70f1639d3d5ea6e54fdc94d
[]
no_license
keanejohnson/wildfireplus
43d5e8136eeb673a69f0d8078d7876d05c7623e3
7d6f347dd18be7bd6318005648ecd23798b27188
refs/heads/master
2022-05-26T09:56:16.011432
2020-05-01T02:38:15
2020-05-01T02:38:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
convert_mappoly_tofire.py
def poly_to_fire(longs,lats): """Convert the longitude/latitude polygon from Mapbox input to Fire CRS (EPSG 3857) Input: List of Longitudes and Latitudes that form a polygon Output: List of (X,Y) tuples defining polygon on the fire CRS """ import geopandas as gpd import rasterio as rio ...
32e171fd2347b1d03332bd7627e59dcb2a81d321
3587a7a596cabc92b6dcce1f594de640ac3897a4
/features/create_features.py
f5485ea964e5892dd6459888fead40ff011d6170
[]
no_license
globus-labs/covid-analyses
a35d56303daca11d751e9ddd3f7be90ea3fec1bc
a145ed2eb90c9d4d26e1b1d5d20b0569afc29912
refs/heads/master
2022-09-05T04:27:00.113885
2020-06-01T21:18:07
2020-06-01T21:18:07
252,787,491
7
1
null
2020-05-28T01:49:15
2020-04-03T16:43:29
Python
UTF-8
Python
false
false
9,011
py
create_features.py
import parsl import os import argparse import re import time from pathlib import Path import math from fingerprints.fingerprints import compute_fingerprints from images.images import compute_images from descriptors.descriptors import compute_descriptors from inchis.inchis import compute_inchis from neural_fingerprints....
78dae40bfc7633ea1da6dc2ef3d95959b66a08c2
8f2aa4aa67653fe307d64b8f3f4a9434e3f45454
/Data Visualization with Seaborn/Customizing Seaborn Plots/Barplot_with_subgroup_and_subplots.py
079f72dab525f04cbd40d032891105f51ea8970c
[]
no_license
AndrewAct/DataCamp_Python
2adc76b59867ca6affc08426234ea89c6d2e91ce
083d46dcd16a753ab228f9d9515c02f98bf22724
refs/heads/master
2021-03-02T10:15:05.526108
2020-08-20T03:44:12
2020-08-20T03:44:12
245,859,094
1
0
null
null
null
null
UTF-8
Python
false
false
430
py
Barplot_with_subgroup_and_subplots.py
# 5/2/2020 # Set the figure style to "dark" sns.set_style("dark") # Adjust to add subplots per gender g = sns.catplot(x="Village - town", y="Likes Techno", data=survey_data, kind="bar", hue = "Gender") # Add title and axis labels g.fig.suptitle("Percentage of Young People Who Like Tec...
d13a65fc908a7bd45ee829c9171fbdeffe4f2d50
454d5110e99123cba0c37bea984c93a5f33edda7
/GeoOpt_05_mentoring/meshutils.py
9f8a48ea672629b1cb416c66fb521eb37a6ba16d
[]
no_license
IHoldYA/aia-geo-opt_Mastalski
05749f76ff93982dd1572d26131255d63c1ba3ab
da3b01c5ef670a528be9fad66e92fe2a68e220a9
refs/heads/main
2023-05-25T11:51:30.994007
2021-06-08T13:33:49
2021-06-08T13:33:49
359,763,725
0
0
null
null
null
null
UTF-8
Python
false
false
4,953
py
meshutils.py
import rhino3dm as rg def makeSampleMesh(U,V): #creating a simple mesh from a grid of points mesh = rg.Mesh() for i in range(U): for j in range(V): p = rg.Point3d(i,j,0) mesh.Vertices.Add(p.X, p.Y, p.Z) for i in range(len(mesh.Vertices)-(V)): if ( i...
04d2d1a812b78a675a031ab03393f490a00a7532
386ad3344dd6aa63bd0f0c0355d247a6f681d107
/grafics.py
32fab65f63c436e246ec685d3c93c87ec7e9ceb2
[]
no_license
corbsmaster/Tetris
6799ae01cc39a5f21d8c8480fbc47a71370b2083
4f7dad697c008e7957ae57a2e4071702a7a7248b
refs/heads/master
2022-11-11T12:41:52.243329
2020-06-26T15:00:12
2020-06-26T15:00:12
274,522,060
1
0
null
null
null
null
UTF-8
Python
false
false
4,048
py
grafics.py
import pygame as pg config={'sheight':800,'swidth':700,'gheight':20,'gwidth':10, 'block_size':30} forms_colors = [(242,65,80), (134,244,127), (31,175,191), (191,137,115), (89,89,89), (249,107,55), (202,52,134)] def draw_window(surface, grid, config): surface.fill((242,242,242)) # background ...
206d6c1432c6e507eac35c637de6d0f7bbd3e148
98810fbf90a42028915a88bfac9fb8cb8681008e
/azure-devops/azext_devops/devops_sdk/v5_0/nuget/__init__.py
06b1d983d6fe4317a9a81203bf03885a81693c27
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unicode", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "PSF-2.0", "PostgreSQL", "LicenseRef-scancode-python-cwi", "LGPL-2.1-or-later", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-only", "C...
permissive
Azure/azure-devops-cli-extension
ba87357a8243e1318f100791fc32acbb59448d05
bd34a6fd0658a15dadf6c09c7f6217ca5ffa662b
refs/heads/master
2023-08-29T10:56:54.228674
2023-07-17T04:37:06
2023-07-17T04:37:06
107,708,057
419
208
MIT
2023-08-02T02:10:10
2017-10-20T17:39:11
Python
UTF-8
Python
false
false
962
py
__init__.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
ec83225f6e8368951ed410340ed578e4110d3240
816b4a00ab192221cbf8e8ff11ef51099064edf3
/model_train/keras_yolo4/util/voc_anotion.py
6798e0d1537afb35bee13a6bf35d135e2de423aa
[]
no_license
huachao2017/freezerdl
089aa584c93f44bb24c7ca68c22369b0f4bcd450
f30c329654a969dd01fff6347619d35d01ce0419
refs/heads/master
2020-12-02T03:02:23.606551
2020-07-31T08:55:03
2020-07-31T08:55:03
230,865,837
1
0
null
null
null
null
UTF-8
Python
false
false
1,653
py
voc_anotion.py
import xml.etree.ElementTree as ET from set_config import config sets=[('2007', 'train'), ('2007', 'val'), ('2007', 'test')] def convert_annotation(image_id, list_file,class_names,Annotations_path): in_file = open((Annotations_path+'%s.xml')%(image_id)) tree=ET.parse(in_file) root = tree.getroot() for o...
6d91bcbf9a2a34cd5113dfc63baf42c29ec8535d
87fae60c2b9f363db109145ccd1766c9b11f04bb
/GestorConsultas.py
eda1f799ed44b8b221c04a82795e72f67a415f26
[]
no_license
Castel2/BotSignosVitales
54bcabf9927899ab08d2d5570f9c488e160b2b35
3274b372f14ef23de91b0e7f2cb289a29e020f19
refs/heads/master
2023-03-12T23:44:55.231364
2021-02-25T15:13:09
2021-02-25T15:13:09
337,583,219
1
0
null
2021-02-24T23:12:28
2021-02-10T01:18:40
Python
UTF-8
Python
false
false
2,430
py
GestorConsultas.py
import database.db as db from datetime import datetime from sqlalchemy import * from models.Usuario import Usuario from models.Medicion import Medicion from models.Observacion import Observacion # Consulta para obtener los signos de una persona def get_signos (user_id, fecha_inicial, fecha_final): fecha_final = fe...
280072d0fea9f610ee92ad1e9c34f4228c17c6b5
11bcb8f37ab047223332e5ec5fcfb402fdfb990c
/RBAC/models/user.py
86d12067503f4f466009d3f2cabb218e0969f402
[]
no_license
azilpelwar/RBAC
e43da008ea1b1d7bac4859ed309e435fb385c29a
e3fae63179665158bf168504c109dc3a7085c9ef
refs/heads/master
2023-01-01T02:45:19.698975
2020-10-25T19:46:35
2020-10-25T19:46:35
306,944,784
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
user.py
class User(): def __init__(self, name:str, roles:list): self.__name = name self.__roles = roles @property def name(self): return self.__name @property def roles(self): return self.__roles
18e653def07b0fcf91ccfb93498b48fdd24d7c03
c02e69ee9f0463448c3d970a0102e4dec30121aa
/parse_arxiv_metadata_threaded.py
be0167192330941dab62cc476f43a737430bb643
[ "Apache-2.0" ]
permissive
DontWorry33/pdfx
2c231002280ea97ecfa0040df292e3761bd3595a
ed3039315cf65731eb8a2f89df97298dc2a34d9e
refs/heads/master
2020-04-20T18:32:52.547459
2019-02-06T04:56:19
2019-02-06T04:56:19
169,024,504
0
0
Apache-2.0
2019-02-04T03:54:18
2019-02-04T03:54:17
null
UTF-8
Python
false
false
6,377
py
parse_arxiv_metadata_threaded.py
import xmlschema from pprint import pprint from lxml import etree import os import pdfx from threading import Thread from queue import Queue from pymongo import MongoClient from optparse import OptionParser parser = OptionParser() parser.add_option("-r", "--recover", action='store_true', dest="recovery", default=True,...
92cd56cd6a868a888767c6354b2e72c7815b0c8f
514fd4f09243055e4769efb426710338048454b1
/tensorflow/compiler/tests/tensor_list_ops_test.py
5c079d595c440cac644f5461154509abe7b1d1ed
[ "Apache-2.0" ]
permissive
nnsuite/ubuntuport-tensorflow
7fa1d26f3cc282cd725bd87f2864c8ac2e76bf99
01ea2d56d3f87063f86076e45673fa49794eebb0
refs/heads/debian/c_api/1.13.1
2022-12-14T03:14:59.691723
2022-12-06T07:29:53
2022-12-07T00:46:40
202,048,406
2
8
Apache-2.0
2022-12-07T00:46:41
2019-08-13T02:36:22
C++
UTF-8
Python
false
false
4,407
py
tensor_list_ops_test.py
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2cf0a3d390d5fb32ee847255bbbdfd3f86094bac
b26b5fdec53532b64c6178b2162a6db1dedec624
/mold/context.py
73c2afca6ec232656d0fcf01a8fd4cad070cc7d4
[ "MIT" ]
permissive
Bogdanp/mold
815ea4e35107032e970847c46f29fe16ff7b59be
1a8508b2c9dd59d24f3c41a1aca37970e39fa43d
refs/heads/master
2020-04-05T23:07:31.545133
2017-01-08T09:16:17
2017-01-08T09:16:17
37,817,944
2
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
context.py
class VariableNotFoundError(Exception): """Raised when a variable could not be found in the context of a template. """ class Context(dict): def __init__(self, filename, **context): super(Context, self).__init__(**context) self.filename = filename def update(self, **context): ...
19bf227199df9e42db13fe75643c6a61a61b13f3
c9ebca529d290fc2fa94b5ce5b61657e431260e3
/interviewcake/mesh-message.py
23d06043f34615276c4ee6becc973eedcd5d17dd
[]
no_license
aaakashkumar/competitive_programming
58677e3166636d042d00e1d2be589499c5f17c1a
575fa25c4586fa41b3d45d95dca6eff9584c3a4a
refs/heads/main
2023-04-29T03:46:02.911230
2021-05-15T10:12:50
2021-05-15T10:12:50
305,634,254
0
0
null
null
null
null
UTF-8
Python
false
false
3,939
py
mesh-message.py
# MeshMessage # https://www.interviewcake.com/question/python3/mesh-message?course=fc1&section=trees-graphs # @author Akash Kumar import unittest from collections import deque def get_traversal_path(start_node, end_node, previous_node): """ Method to reconstruct the path that was traversed to reach to the end...
95cdcb2eb072e84df6f96f022cc4e7801ed8375f
945d24cdc979d2a94b8de645290b02963c832303
/Tarea 6/MCD.py
14ef7fbf28b75ee677a7f8408d872f225542970b
[]
no_license
MissaelSanchezVillegas/Dise-oDeAlgoritmos
8ffdfad0f37d6cf22821fa050854e784cb491976
bf09c43760b5b8e69f205e17f1ac17e88bf4f8c8
refs/heads/master
2021-01-11T20:36:04.477013
2017-06-02T22:57:10
2017-06-02T22:57:10
79,150,030
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
MCD.py
#Algoritmo de Euclides (divide y venceras) #parametros A=84 B=33 def euclides(a,b): print("A,B",a,b) if(a==b): return a elif(a>b): c=a//b r=a-c*b print("r,c",r,c) if(r==0): return b else: b=euclides(b,r) return b else: c=b//a r=b-c*a if(r==0): return a else: ...
8ed36cc072fb442d8517cc4e966cd0d334e85e07
18918c9e21cadd092a94085d87fbb6c74fc9048d
/scripts/unpickle.py
da946b0abf699ff14bd3d1097fc0719be09c78d7
[ "BSD-3-Clause" ]
permissive
numpand/dill
2610fabf19f2e85e4c76f66e749521f2fbeee334
3ece623fd853ec7210c8ce59f557496c81a1cbd0
refs/heads/master
2021-01-21T18:10:34.557147
2014-01-30T00:01:07
2014-01-30T00:01:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
121
py
unpickle.py
if __name__ == '__main__': import sys import dill for file in sys.argv[1:]: print (dill.load(open(file,'r')))
e06a085d42c98c4694974666662a0e6144476633
7a1a1bf41f6c6def6b2f39963deac1e425b4f56d
/爬虫/practice/spider/socket_test/http_client.py
845140f182eb5cc7b6b95afe931b5f0bd042391c
[]
no_license
lightflash7/code2
1c16d0ed4b49e3e2b62bc941368346967feaf769
03749ca21aabc99507687ab6d6999f2547beb831
refs/heads/master
2022-12-15T06:53:13.985430
2020-05-08T06:18:28
2020-05-08T06:18:28
240,830,709
1
0
null
2022-11-22T04:00:35
2020-02-16T04:23:54
Python
UTF-8
Python
false
false
299
py
http_client.py
import socket client=socket.socket() client.connect(("wwww.baidu.com",80)) client.send('GET / HTTP/1.1\r\n\r\nConnection:close\r\n\r\n'.encode("utf8")) data='' while True: data_byte=client.recv(1024) if data_byte: data+=data_byte.decode("utf8") else: break print(data)
163b782cc2ca80063beadecaeee59a4f601c2048
d3313125b53ea8b0aa9bec3cd914eea86b404e2c
/pro1/Tour/code31.py
0321d54e347ce7772c4b360fedcc135df01c8ea7
[]
no_license
imji0319/myProject
15360118386bf3d97ca61f35447e10e8c68bffaa
fbae221b6e2e349798ac51154bcf4fe55fbd4feb
refs/heads/master
2021-09-10T11:16:20.703215
2018-03-25T12:32:02
2018-03-25T12:32:02
112,733,764
0
1
null
null
null
null
UTF-8
Python
false
false
3,909
py
code31.py
''' Created on 2018. 3. 18. @author: jihye ''' from boto import config """ Code 31. 관광지 별 주요 입장객 정보 """ import os import sys import urllib.request import datetime import time import json # from config import * import math def get_request_url(url): req = urllib.request.Request(url) try: ...
07423b815f075178cb15850597195007156004bc
744abc0c0b6a6fe1aa7ef01447da15a1083c4258
/scripts/downloader/extract-links.py
84aa37db0b2875943afadd6f5a1c350c90cbbabe
[]
no_license
phanimahesh/vienna-emscsv-processor
eb5b2e7aa16f5e76aee623b08e9993117d6b87c9
d186731e87f8f04849346c5b42863ce9ce434c1a
refs/heads/master
2020-09-17T17:31:57.794154
2019-11-27T09:56:55
2019-11-27T09:56:55
224,106,013
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
extract-links.py
#!/usr/bin/env python3 import sys from bs4 import BeautifulSoup index_file = sys.argv[1] urls_file = sys.argv[2] with open(index_file) as f: data = f.read() soup=BeautifulSoup(data, "lxml") all_links = soup.find_all("a") file_links=all_links[1:] urls = map(lambda t: t['href'], file_links) with open(urls_file,...
fc49d68a993a36543e6ace301cf1b87c11781e75
268ecdf45cdd698dd836099172044f1e268c6ab6
/Assignment01/Problem02/Policy_Iteration.py
af7f81a8d81e5655b0e49884745b97f1a736a2a4
[ "MIT" ]
permissive
SaminYeasar/COMP-767-Reinforcement-Learniing
7ae0eed72d1e8331e5f8ed0a8865d6a61f435831
33fc19f4d087619bcfb55bdaf543f69ca60a000f
refs/heads/master
2022-01-26T12:48:08.627997
2019-05-01T04:21:28
2019-05-01T04:21:28
167,814,741
1
0
null
null
null
null
UTF-8
Python
false
false
4,555
py
Policy_Iteration.py
from gridworld import GridworldEnv import numpy as np import gym from gym import wrappers import itertools import argparse """ Original Grid world environment was taken from link: https://github.com/dennybritz/reinforcement-learning I modified it with: (1) "Terminal states" at being - Upper left with reward 1.0 - ...
83316e7120eefab4cf8c1b58e9f6fdecd280bb66
734a55826ca2411b451d5dedd9a2120ba6137608
/test/errors.py
8ddb2f9384f201ddea5b244dea735a359fe7dcf5
[]
no_license
potehinre/unispawn
f358e334038a1e131208e579d30b1ea3a2fc61fb
48f2711f78423aecb4467bd6c50a2fbdfb6fe5ca
refs/heads/master
2020-04-27T01:08:07.855748
2012-07-06T17:12:13
2012-07-06T17:12:13
2,612,766
0
0
null
null
null
null
UTF-8
Python
false
false
1,743
py
errors.py
import unittest import sys sys.path.append("../") import gevent_aggregator def collect_urls(urls): aggr = gevent_aggregator.DependencyAggregator(urls) return aggr.collect() class ErrorHandlingTest(unittest.TestCase): def test_timeout(self): result = collect_urls({"timeout":"http://localhost:100/t...
7fcc088a7bd42f748c869db4a1176bbf62a72296
3d5808b94160609067905afb475bef9ce250e359
/valida_recibos_de_pago.py
3d96a8de412c15839fa79b4c2b577df45e0a2753
[]
no_license
MColosso/GyG-Recibos
deaa484c752c7745e3763b753e47964620f6146e
6852e9548d20e32764e0cab47bbc18bbcab88612
refs/heads/master
2023-03-03T09:09:22.020339
2022-01-22T21:33:42
2022-01-22T21:33:42
135,823,529
3
0
null
2023-02-11T01:26:30
2018-06-02T14:16:06
Python
UTF-8
Python
false
false
2,013
py
valida_recibos_de_pago.py
# GyG VALIDA CODIGO DE SEGURIDAD # Verifica si el código de seguridad impreso en el Recibo de Pago corresponde # con los datos del mismo """ POR HACER - HISTORICO - Versión inicial (18/08/2020) """ import GyG_constantes from GyG_utilitarios import input_fecha, valida_codigo_seguridad, _uno...
67d494573e8986b66339197ea08dcc3f789d7946
0110fe464d82a1d93f87eb04262b71235c66c909
/Code/get__FULL__CurrentData3.py
861930efa1767e458b6c7f906f97a0b39888c453
[]
no_license
ErikQ721/ML-Stocks
e9b6938486cad96395a756cdbde2b5712d3c1966
412549ce2357078658d7538159fc6de67523d935
refs/heads/main
2023-05-26T10:43:10.059660
2021-06-07T03:02:40
2021-06-07T03:02:40
353,536,188
0
0
null
2021-06-07T03:01:44
2021-04-01T01:23:54
Python
UTF-8
Python
false
false
10,538
py
get__FULL__CurrentData3.py
from datetime import date,timedelta import pandas as pd import numpy as np from tqdm import tqdm from combineMetricsData3 import combineData from get__FULL__HistoricalData3 import preprocess_price_data import fmpsdk import os #Step 3: finds the most current data available def setCurrentDate(): global day_now ...
e0c86f5ad18b07c3017f7bd36b429f0edd2df651
4d77c197527cfd32253735ffc04fcb8ce4b16788
/urls.py
0406755dde9bfd027c96974c8dd310e455a2096b
[]
no_license
eykanal/pm
4fd34a72f54b8eb7e3ef3b22b3dbe42d9ced87f5
6d0718e93548b836bbed65cf924c2ac1aac2f938
refs/heads/master
2020-05-21T12:50:36.788815
2015-08-26T00:08:50
2015-08-26T00:08:50
41,394,498
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
urls.py
from django.conf.urls import patterns, url from views import * urlpatterns = patterns( '', url(r'^$', Index.as_view(), name='index'), url(r'^project/new', create_project, name='project-new'), url(r'^project/(?P<pk>\d+)/edit', EditProject.as_view(), name='project-edit'), url(r'^project/(?P<pk>\d+)$'...
8d49ada08814242ec05826cfb030c8fd83ccd917
14087f5fc7cb9f051266746f0d7ca97bfaae44f2
/kbd_rost.py
30698585047e4941aca66c95ca3c89d25dce5a6b
[]
no_license
Dima-31/AWS
38103fe20d746375f64cd2c2d766c31260a2670a
115bf456c5fb4196d12754370a89672666be0d29
refs/heads/master
2022-11-16T13:45:52.125752
2020-07-17T14:44:20
2020-07-17T14:44:20
280,446,123
0
0
null
null
null
null
UTF-8
Python
false
false
2,388
py
kbd_rost.py
import requests from viberbot.api.messages import KeyboardMessage from viberbot.api.messages import ( TextMessage ) # опрежедим тут только команды анекдотов # главная команда во всех файлах одинаковая но импортить будем по разному from viber.connection import viber_api cmd_main = "c1_rost" # под команды ...
3ecc8375708a7a04107c6799a6eaa42bc3e6998c
b0572624788f5e095fd9ed768235fb375dc228bc
/Activities/FirstActivity.py
d413d6b1ef3810a386141aea6ae9e9a5870c871f
[]
no_license
talrab/Python_selenium
e2f9cb09d1b70611f36da4540c3dae354659df31
45bb44cb594d0d1ac6c0c3044b95f3102a61e403
refs/heads/master
2021-01-20T13:43:53.275928
2017-05-28T07:52:45
2017-05-28T07:52:45
90,522,284
0
0
null
null
null
null
UTF-8
Python
false
false
1,324
py
FirstActivity.py
from Activities.BaseActivity import BaseActivity # placing all the locators needed in this page/activity in one place for easy modifications when needed locators = { 'number' : 'id=digit_', 'minus' : 'id=op_sub', 'plus' : 'id=op_add', 'multiply' : 'id=op_mul', 'divide' : 'id=op_div'...
0c80021604b77f3fc900db6b8e3d83e4b654ab59
6e0cccd33036e7d93bd6d59bfb65a39cc82210e7
/CursoemVídeo/Estrutura de repetição for(Maior e Menor da sequencia).py
00a12c7887109cbc08274a0e406cbe3459f9a466
[]
no_license
ruirodriguessjr/Python
1c2304c84337138127f67942f6f9b05daf1ec381
4725b6e11ce789dfc64f5cdf5ff8555414a8e14d
refs/heads/master
2020-07-09T02:30:43.881582
2019-08-22T18:21:05
2019-08-22T18:21:05
178,243,563
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
Estrutura de repetição for(Maior e Menor da sequencia).py
maior = 0 menor = 0 for pessoa in range(1, 6): peso = int(input('peso da {}ª pessoa: '.format(pessoa))) if peso print('O maior peso lido foi o de {}Kg'.format(totmaior)) print('O menor peso lido foi o de {}Kg'.format(totmenor))
43b013d81f345017d23e49244af332611e0c5be7
1551f4da57438a7fb661f0c31bbd3cd7233fea4c
/src/data_handling.py
f4c9d543f0bb0d783018a7b35853ed96e0e8eff1
[]
no_license
shota-h/temporal_disentangle
df4f3d575f457de81c5ac86b557b83087544bed2
e2eeb56083f9bb986acedc9e89fb8bae45634236
refs/heads/master
2023-08-15T19:36:59.713421
2021-10-22T10:22:17
2021-10-22T10:22:17
279,043,424
0
0
null
null
null
null
UTF-8
Python
false
false
11,948
py
data_handling.py
import random as rn import numpy as np import h5py import copy import torch def data_review(): with h5py.File('./data/colon.hdf5', 'r') as f: with h5py.File('./data/colon_renew.hdf5', 'w') as f_out: key = list(f.keys()) df = pd.read_csv('./data/colon_data2label.csv') # ...
6048496cea0e984d1f3a6b09024e23393c1d22b9
86d3bb05c6bace40a7281a44b5e4f84d55d461e2
/ProjetV2/Utilisateur/display_info.sh
3bf90840e4c988ae0fc4371c12378fa4250ed197
[]
no_license
VincdeGerminy/Admin_OS_Projet
2595241e5dab88f6202860080f5110a3f6e11a3d
c2f59eaf72fff975ad48d85f165726eaba2ab83b
refs/heads/master
2021-04-15T17:07:25.935054
2018-04-30T20:44:13
2018-04-30T20:44:13
126,828,262
0
0
null
2018-04-11T15:00:34
2018-03-26T12:51:39
HTML
UTF-8
Python
false
false
890
sh
display_info.sh
#!/usr/bin/env python import json import os os.system('echo "System Info:"') def most_recent(type,arg): f = open('./data/'+type+'.json','r') f_lines=f.readlines(); last_line=f_lines[len(f_lines)-1] d=json.loads(last_line) info=d[arg] return str(info) #os.system('echo '+arg+':'+str(cpu)) if (os.path.exists("./...
8a509d4e59366c9639d685d394b34cb5de65fcf4
be7728572cecf7cf0450bdda51b0144689536706
/python/func.py
42528df1b7f872579321bd47592c9237db8dfbb3
[]
no_license
suchitramurali/FULL-STACK-DEVELOPMENT
d710664ce73d7fdfb082d4e65c4cb25bdcaa939d
c56d7d2d2c1dc8b2e00ae9bbf86973f912a85a9b
refs/heads/master
2020-05-01T15:43:30.332371
2019-04-26T10:28:55
2019-04-26T10:28:55
177,553,807
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
func.py
def sum(a,b): x=a+b return x a=input("enter a no") b=input("enter another no") print sum(a,b)
abaa6c9ba0f79c1b07f80b940abe65847d963304
06530b932580cfbba9d985f1aa347de9f4ee8fc6
/Link Prediction/150101038_part1/svm_150101038.py
c24e0285e9059c6b0fe1ae62a36e7e77714f2efc
[]
no_license
mukulv-17/Data-Mining
7a7cd8277fb9e6835fab32e529ee6e78e1e9d53d
11d3ad52882bf366312881d826808a727e55e51d
refs/heads/master
2020-03-29T14:14:01.231674
2018-09-23T17:22:21
2018-09-23T17:22:21
150,006,095
0
0
null
null
null
null
UTF-8
Python
false
false
6,090
py
svm_150101038.py
from sklearn import svm import networkx as nx import operator import math import numpy as np import random from sklearn.model_selection import KFold from sklearn import metrics from sklearn.metrics import average_precision_score from sklearn.metrics import precision_score from sklearn.metrics import accuracy_...
f701b2ba69fe9dfe6bd329438c71e6a81ea2c167
10f29e48d4b9d5ac38b118799fa8b2807f1d1605
/src/cli/tests/test_export.py
871527d567fe1fc1995ad5b6489b4284f7e74e8e
[ "MIT" ]
permissive
dabble-of-devops-consulting/ella
45786366581bdab900032e54b461aec2d73de2d3
e38631d302611a143c9baaa684bcbd014d9734e4
refs/heads/master
2023-06-20T10:58:41.785263
2021-07-08T09:49:12
2021-07-08T09:49:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
test_export.py
import tempfile import os def test_export_classification(run_command): tmp = tempfile.NamedTemporaryFile() tmp.close() result = run_command(["export", "classifications", "--filename", tmp.name]) assert result.exit_code == 0 assert os.stat(tmp.name + ".xlsx").st_size > 0 assert os.stat(tmp.name...
d4d7286a269227379b2c6dcc84d018e580b6ea9d
2d97b1330d61ff74eaabe9a76fc26268b5a04e10
/tests/services_status_test.py
303ba149dd67c4350138812e58d6a77d5f3dfa25
[]
no_license
Lockwarr/Outages
931103fa4033866382badba24a61b08439547154
c9e991ee76493ca9c4563b1e3aff0f1e711a3fab
refs/heads/master
2023-01-30T21:53:14.124305
2020-11-28T17:50:55
2020-11-28T17:50:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,159
py
services_status_test.py
import unittest from services_status import ongoingflappingOutages, flappingOutages outages_no_flapping = [{"service_id": 1704, "duration": 2, "startTime": "2020-07-02 09:01:31"}, {"service_id": 2429, "duration": 1, "startTime": "2020-07-02 00:10:24"}, {"service_id": 1704, "duration": 2, "startTime": "2020-07-02 0...
bad140b50e0ee9231fa8d7c21b84145ac21ccbd4
36d18f9f882b219a4056bc4a638507a013f17e9e
/badcase_analyse.py
0048147fab83e30c82772cab4921cb7165e4eda0
[]
no_license
mxmdpc/multi_label_classification_result_analyse
3c88ed878f476d46204112e5be73e263dd006a95
053323cdb09ac868d96bcead1dfa49393d2339f4
refs/heads/master
2023-03-24T21:22:25.400883
2019-09-26T02:41:14
2019-09-26T02:41:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
26,019
py
badcase_analyse.py
""" created by xingxiangrui on 2019.5.15 this program is to : read model validate results and labels analyse precision, recall, F1 on each class print and store all bad examples file_name save bad example size histograms """ import torch.utils.data as data import json import os import subprocess from PI...
896554ed10ab8cab2b8e911f3b6df1f69fecb2ba
47e837a1823527f1cd38c6e5135b20b78792459a
/DataAnalysis/analysisWithPandas.py
9611e1897b4ac5793bd4983a51b969d89ab8da6a
[ "Apache-2.0" ]
permissive
hungryhost/DataAnalysisAndProbability
c904d3e71d76903e013d2463c9b2d7492b02c568
679444a488f2c27fd5d8454bb5e184d9a84b7498
refs/heads/master
2022-11-24T09:17:02.611416
2020-07-30T20:28:33
2020-07-30T20:28:33
283,867,017
0
0
null
null
null
null
UTF-8
Python
false
false
6,948
py
analysisWithPandas.py
import pandas as pd import matplotlib as mtl import numpy as np import matplotlib.pyplot as plt fbd = pd.read_csv("filename_1.csv", delimiter=';', sep='\s*,\s*', encoding="windows-1251") sbd = pd.read_csv("filename_2.csv", delimiter=';', sep='\s*,\s*', encoding="windows-1251") tbd = pd.read_csv("filename_3.csv", del...
034da5fe31509f161a65f21b77de68343a8fa843
8434d27ef3bd82987e9c1174dd053092d5ddd7ea
/rotkehlchen/accounting/ledger_actions.py
6b7142146a4fc7bde1b36b803a79fed45ce9a90b
[ "AGPL-3.0-only", "AGPL-3.0-or-later", "LicenseRef-scancode-unknown-license-reference" ]
permissive
LefterisJP/rotkehlchen
dae96d368d59cb387aabd0b792d94126e98aa8f3
496948458b89afc41458f19d1cba0e971ab67c8b
refs/heads/master
2023-09-04T00:56:32.204156
2023-08-23T13:52:30
2023-08-23T14:46:41
127,209,257
0
0
BSD-3-Clause
2020-11-04T13:34:15
2018-03-28T23:11:50
Python
UTF-8
Python
false
false
8,163
py
ledger_actions.py
import logging from collections.abc import Iterator from dataclasses import dataclass from typing import TYPE_CHECKING, Any, Optional from rotkehlchen.accounting.mixins.event import AccountingEventMixin, AccountingEventType from rotkehlchen.accounting.structures.base import ActionType from rotkehlchen.assets.asset imp...
c65c261041d47a00ed0cbc41e2231beaff886ceb
06b8709e8f72351b9a16dbd53d76cebb8b6696c5
/tabletop/cards.py
d9ec65b1a0b112b4b29cce5b387ab5027f6feedf
[]
no_license
jisaacstone/tabletop.py
e4207c758a5571500ea89aed8585747abc3f9bbd
10db0207a1fc6dc4ef0b36b2b367e5a7367d1f7c
refs/heads/master
2021-01-19T07:40:47.362951
2013-01-20T19:41:35
2013-01-20T19:41:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,210
py
cards.py
from random import shuffle import itertools def poker_card(value, suit=None): c = dict(value=value, suit=suit) return c poker_suits = ["hearts", "diamonds", "clubs", "spades"] poker_values = map(str, range(2, 11)) + ["J", "Q", "K", "A"] def poker_deck(jokers=False): deck = [poker_card(v, s) ...
f14337429f154a696074e8b8be5372047eafac21
66e13bf7a6639cb37fd6d6160945d37119fe6df4
/Python/Advanced/01.Advanced/13.Lambdas/Ex/t_06_unique_numbers.py
0699dd041b9c509ae9a80ef6fd4b24b1f916a4c2
[]
no_license
MeGaDeTH91/SoftUni
5fd10e55ba3a1700345fec720beac5dc2cd9d18d
a5e50c77d6efe6deddb9be0bdfb87373692aa668
refs/heads/master
2023-01-25T05:01:15.172521
2021-12-18T22:22:46
2021-12-18T22:22:46
121,627,540
5
3
null
2023-01-11T22:01:03
2018-02-15T12:31:23
C#
UTF-8
Python
false
false
238
py
t_06_unique_numbers.py
numbers = [round(float(x)) for x in input().split()] min_number = min(numbers) max_number = max(numbers) ordered_numbers = sorted(set(numbers)) print(min_number) print(max_number) print(' '.join([str(x * 3) for x in ordered_numbers]))
1c4a527c2b3f0e45a05eed4884d6118838721dc7
025b1d6de2013fe6ff306b09d57660f1f5e47ca2
/train.py
3de717def9b8243288b97b0e48c54fce3bf6f92f
[]
no_license
petko-nikolov/hms-lung-tumour-tracer
eea18cf86c61633b58aff94cd53b4dd55e94c041
a12ed709804e4aed25c1f07d6a170159e9839416
refs/heads/master
2020-04-08T02:14:33.812276
2018-11-30T22:00:17
2018-11-30T22:00:17
158,928,304
0
0
null
null
null
null
UTF-8
Python
false
false
18,090
py
train.py
import tensorflow as tf import argparse import glob import os from model import ( ConvolutionalSegmentationFirst256, ConvolutionalSegmentationModel, VGGModel, VGG16Model, ConvolutionalSegmentationModel3D) import utils import numpy as np import pickle from copy import deepcopy import pprint STRUCTURE_CLASS = u...
4c9d0c94f9176c9f27c54366a8fae13738936c7e
1244b7a6635af5a1478843d28753ac51d42fb923
/setup.py
bcad57ad251ba26e277a8d9a2dcdb296780624a8
[ "MIT" ]
permissive
filwie/cologging
67491a6ce4aaa16691f65a4bc98179bcc732dfb4
f5292597f308336cc56863cf53e1104f733274a8
refs/heads/master
2020-07-29T12:39:54.578064
2019-11-11T19:40:24
2019-11-11T19:40:24
209,805,874
1
0
null
null
null
null
UTF-8
Python
false
false
878
py
setup.py
from setuptools import setup, find_packages from pathlib import Path from typing import List REPO_ROOT = Path(__file__).parent def readme(): readme = REPO_ROOT / 'README.md' if readme.exists(): return readme.read_text() return '' setup(name='cologging', version='0.1', description='Co...
ec6f0e5dc01c8c8ee73f5a39b8fffef4ed0b72a0
55eccd3d451281c4c09f345c03e18db4b4d9d9fa
/scripts/test_sample_entities.py
76277202bd09d19ff5da0e29d716997eacadf479
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
ibm-watson-iot/functions
9f2f14e775aa2e0322acd117fda9808a54d1595d
0b679b1522c4ff62d88c4bbd5cb5b849673b36ea
refs/heads/master
2023-08-21T23:11:12.555077
2023-08-18T11:40:09
2023-08-18T11:40:09
154,710,665
15
42
Apache-2.0
2023-09-14T11:49:50
2018-10-25T17:23:27
Python
UTF-8
Python
false
false
1,306
py
test_sample_entities.py
# ***************************************************************************** # © Copyright IBM Corp. 2018, 2022 All Rights Reserved. # # This program and the accompanying materials # are made available under the terms of the Apache V2.0 license # which accompanies this distribution, and is available at # http://www...
623f89c608a0f7cc3be590ea64950a6c1e1cb411
f4d806bf3b74969f3d97cbe269e87f95c5dae36b
/participants/a903s/subclass.py
49a2ecb777aa34a07c1911c7a136743faca5ed40
[]
no_license
krisanalfa/pythonkungfu
ac1fe0d10f6818e5d8e0077d71ce1151b7dd6dd8
988cef109dc6c566c966d1cf9a12f6b66c8d9faa
refs/heads/master
2020-05-18T06:47:21.031404
2013-07-13T23:30:47
2013-07-13T23:30:47
10,502,909
0
1
null
2013-06-26T07:45:38
2013-06-05T13:18:12
Python
UTF-8
Python
false
false
890
py
subclass.py
#!/usr/bin/env python #class utama class OS(object): def __init__(self, name): self.name = name def getName(self): return self.name def setVersion(self, version): self.version = version def getVersion(self): return self.version def setFamily(self, family): ...
62bb3fabbb6f571a5f123f20dd293ba405c4803f
1f0c11e704d7b6b7fa71412c01b596e6eb0af9a8
/run_analysis_UnsupervisedClassification.py
4ed03ad150c8a3a063f2ada4ad2742713ad2282a
[]
no_license
feleaman/nico
298e1a0f706aa0b441b5fc35b6c7117f6369dd72
fe5b43c38d6261735098d7132b66e042815b0871
refs/heads/main
2021-12-02T23:14:56.723653
2021-10-29T14:34:50
2021-10-29T14:34:50
422,595,252
1
0
null
null
null
null
UTF-8
Python
false
false
4,040
py
run_analysis_UnsupervisedClassification.py
import os from os import listdir from os.path import join, isdir, basename, dirname, isfile import sys Mypaths1 = ['C:\\Felix\\29_THESIS\\Chapter_4\\04_Data\\Burst_Detector\\Index1\\A_1_Long_BuDe_Index1_AE_Burst_Features.xlsx'] Mypaths2 = ['M:\\Betriebsmessungen\\Getriebepruefstand_FLn\\20180227_Messung_A\\Long',...
33f527bbadf9df6e2eefc8154326f3d6e01cf342
57e1dc52037ce206f6448e9e042da0db04143792
/tabletalk.recipe
bb0fd7a30ab532c60d8aa7c15ec503c2f93927ac
[]
no_license
pieplu/tabletalk-calibre
487568a0260c07065a0a15cbf980d3f5052e7896
4019fa738dae4029f21b2ecbe9634088d466a991
refs/heads/master
2021-07-12T02:22:14.466792
2021-04-01T19:05:12
2021-04-01T19:05:12
102,156,710
0
0
null
null
null
null
UTF-8
Python
false
false
6,574
recipe
tabletalk.recipe
#!/usr/bin/env python2 # vim:fileencoding=utf-8 from calibre import strftime from calibre.web.feeds.recipes import BasicNewsRecipe from mechanize import Request import json class Tabltalk(BasicNewsRecipe): appURL = 'https://tabletalkmagazine.com/' title = 'Tabletalk' publisher = 'Ligonier Ministries' ...
a647dd1b55d36086997cf32c459c1d3917dd5a2e
51aa9e666d22a2e284d3cb2b86ffaa863afaf318
/2.py
d9a3fb695b33b58c4179eea54d4063642f88da70
[]
no_license
ArturPalko/-colloquium
9b2cfa31a783a8880366ae40f5544ff27500645d
9a6ddc4c491f0e66012beb15efaa0f17470b53af
refs/heads/master
2022-04-17T02:09:56.072103
2020-04-12T20:49:29
2020-04-12T20:49:29
255,153,658
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
2.py
'''2. Введіть з клавіатури п'ять цілочисельних елементів масиву X. Виведіть на екран значення коріння і квадратів кожного з елементів масиву.''' import numpy as np import math a=list() for i in range(1,6):#Введення чисел x=(int(input(f'Число{i}='))) a.append(x)#додавання чисел до списку b=a[:] v=np.array(a)#ств...
35c677bb5b08b43c0ada7edaed83878d29cbd2f8
7781fd51a8cba1a01f01801ea8f9355d8efe6fed
/django_gems/json.py
d644318fa0a9d17f2ea8f74e6d8ab1c973b15972
[ "BSD-3-Clause" ]
permissive
plfiorini/django-gems
c80ff50d57a17178ae32f2aa6fd70d35b94fdb22
8437740bb576e03a571d574ab0ff36b2dcf107bf
refs/heads/master
2020-12-24T16:41:09.127866
2017-03-27T15:15:01
2017-03-27T15:31:29
2,270,479
1
1
null
null
null
null
UTF-8
Python
false
false
6,118
py
json.py
# # Django Gems. # # Copyright (C) 2011 Pier Luigi Fiorini # Copyright (C) 2008-2010 Tobias Llipstein # # Author: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. R...
41dac9e2ca029815414755f1d0ea637e2c2fce79
b8e35285e3a54f1ae6035e564eab320e40d27727
/battleship.py
791367d164e504d925e62c7cf21bf2b43b2fcc05
[ "MIT" ]
permissive
ZekNikZ/STEMExpoBattleship
74fcf42486c7a4b4c1511bb85b40372f62c12e7f
b0b4c4b1e0be9cfcf9516654ab4755e75397fa99
refs/heads/master
2021-03-19T08:54:07.181819
2018-05-29T00:21:04
2018-05-29T00:21:04
82,943,951
0
0
null
null
null
null
UTF-8
Python
false
false
62,208
py
battleship.py
#!/usr/bin/env python3 from string import ascii_uppercase from re import fullmatch from time import sleep from random import Random # Default game presets. testing_preset = {'height': 10, 'width': 10, '5_ships': 0, '4_ships': 0, '3_ships': 0, '2_ships': 2, '1_ships': 0, 'allow_mines': True, 'allow_moves': True, 'mine...
f1f3a81f99d0c985891e793cd1952f55115b8920
beba93bfd1ef7506ffac19e93e7e14abfc6b9aa6
/users/migrations/0002_auto_20200521_0321.py
e26221ea9037a202046f185ef07ad2c495304e7e
[]
no_license
Glazzko/reccomendation-system
9fde738ecfdefbba4fb13447bda8dd202869c5a7
199a7a1347d93955cdc3da5e50d005d8002b72e1
refs/heads/master
2023-05-31T22:56:17.872071
2021-06-12T22:18:34
2021-06-12T22:18:34
375,421,326
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
0002_auto_20200521_0321.py
# Generated by Django 3.0.6 on 2020-05-21 03:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='customuser', options={}, ), ...
840660add4b2ee46aa5f0eb3c301527f850f1c0e
2e3bca2ada0f5716c840c0c43b15fa573ba2a458
/api/migrations/0029_auto_20150614_1644.py
46652310b0129a939ad4860f275ee67c4af7a201
[]
no_license
5l1v3r1/tellecast
f4cf227726eee0c2a16b46fe997efccf93d61970
9ec0c185f6d2e143f57bd8ca6d442ab05174cc37
refs/heads/master
2021-03-31T03:14:16.998773
2017-04-13T17:24:34
2017-04-13T17:24:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
985
py
0029_auto_20150614_1644.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('api', '0028_auto_20150613_2022'), ] operations = [ migrations.AddField( model_name='user', name='is_...
c724f8c284f87476db535f2e09b2d3686211f96f
f8a52fa991d1b8353d4188c180f4189401ebd6a1
/notebooks/predictive_modeling.py
4caf2ee1b6b4ad95885195118598151815cfce90
[ "MIT" ]
permissive
Abe2G/Bank-Deposit-Subscription-Prediction
86716b4a63b05c2ec1af2d3c88a4287486853407
775ce9d341eae0d1f6eae503cb717e9aba394513
refs/heads/master
2022-12-08T22:30:17.200255
2020-08-31T07:45:36
2020-08-31T07:45:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,291
py
predictive_modeling.py
# -*- coding: utf-8 -*- """Predictive_modeling.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1zi3bAy7tdUdV4AoBE1Kj7DywpIW3Gawr """ import pandas as pd import os import numpy as np import seaborn as sns import matplotlib.pyplot as plt from skl...
b7f1810f3ac5799fa89db5f9bd146f9b75de273b
e7145e6eed82c7b4157803da97ecf9965501a156
/audio_system/main_crnn_sed.py
08a8ab295816094958a4575f1f0bee77beeb2948
[]
no_license
dannyheard7/audio-visual-sound-event-detection
f613656876f8defe47bdb2c310df965d810ef8a6
2b3fabfd74467ae7378191ba172be334de3deb33
refs/heads/master
2020-04-23T07:15:39.878406
2019-02-16T12:32:56
2019-02-16T12:32:56
171,001,272
0
0
null
null
null
null
UTF-8
Python
false
false
12,656
py
main_crnn_sed.py
""" Summary: DCASE 2017 task 4 Large-scale weakly supervised sound event detection for smart cars. Ranked 1 in DCASE 2017 Challenge. Author: Yong Xu, Qiuqiang Kong Created: 03/04/2017 Modified: 31/10/2017 """ import sys import pickle import numpy as np import argparse import glob import ti...
90f4eaf30d6e0aa19d959bbb8247d2be91d57d8d
d46f73463a48e37a8e537c0123b74ac17c6f9154
/scripts/aws/log-group-removal-script.py
17e5e8ea5486982d137e5f872a14662803b36f3f
[]
no_license
voodooGQ/dotfiles
94fec012e23357c370907212d6d005837d190a3c
2444f31898a95aa31bbdc6bc47a653e75b058a85
refs/heads/master
2021-06-09T23:29:07.008580
2021-04-19T14:01:31
2021-04-19T14:01:31
52,386,491
2
1
null
2020-11-03T15:20:48
2016-02-23T19:42:18
Vim script
UTF-8
Python
false
false
1,301
py
log-group-removal-script.py
import boto3 # -------------------------------------------------------------- # Delete all CloudWatch log streams. # -------------------------------------------------------------- def delete_log_streams(): next_token = None logs = boto3.client('logs', region_name='us-east-2') log_groups = logs.describe_log...
10b15c9c23410bb641728c92c52902cc8c8dd90f
a6367e9bbfaec425030a7c0b9307ae11aaa86002
/1_request.py
6b021f741278bcd299932aec7e49022aced8d364
[]
no_license
lcy8417/Python
55f8a9601de77ca1be70fa50cda9fb21d71becbf
d2de6d36870d76e8aed0a4fceac61cb8d8b4b049
refs/heads/main
2023-04-13T13:28:58.447747
2021-04-28T18:30:34
2021-04-28T18:30:34
359,517,223
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
1_request.py
import requests url = "https://www.google.co.kr/" res = requests.get("http://google.com") res.raise_for_status() print(res.text) with open("youtube/simple.html", "w", encoding="utf8") as f: f.write(res.text)
bec7f7eb21a7cd94f6e1b761dd7580e35fc6c5d6
f976fdd115f91be43c68a35c5d017719b61d090a
/python/geo_pyspark/tests/test_aggregate_functions.py
609fe94952ddbab4ffd2e49a972c80fd91934bc4
[ "MIT", "Apache-2.0" ]
permissive
shantanuaggarwal2695/GeoSpark
bea093fc3a986a1b85650a0c8312bc744c26ac85
24b0fbb219bac7a70b7e6c1af553d90b9f4fd261
refs/heads/master
2021-06-23T15:13:09.884412
2019-11-18T01:01:53
2019-11-18T01:01:53
222,335,639
0
0
NOASSERTION
2019-11-18T01:01:12
2019-11-18T01:01:11
null
UTF-8
Python
false
false
2,046
py
test_aggregate_functions.py
from unittest import TestCase from pyspark.sql import SparkSession from shapely.geometry import Polygon from geo_pyspark.data import csv_point_input_location, union_polygon_input_location from geo_pyspark.register import GeoSparkRegistrator, upload_jars upload_jars() spark = SparkSession.builder. \ getOrCreate...
a75a7f3b613ba1cde6ccd86468c70a25091bcb5a
375a222af8a11353c86d4bcdfbcb5e6ac1b81a41
/perceiver/model/text/classifier/huggingface.py
55df6529df366c67a623e28c062cd23dfcf8e469
[ "Apache-2.0" ]
permissive
krasserm/perceiver-io
5a1ac14ea399d46c0331d82d11d8924b91265a31
4ac9b2c43164cf0372abf7d0239eba74ef3658e8
refs/heads/main
2023-06-25T07:28:11.173330
2023-06-12T11:02:45
2023-06-12T11:02:45
413,288,566
334
34
Apache-2.0
2023-06-12T11:00:26
2021-10-04T05:42:06
Python
UTF-8
Python
false
false
4,052
py
huggingface.py
from dataclasses import asdict from typing import Optional import torch from transformers import ( AutoConfig, AutoModelForSequenceClassification, AutoTokenizer, PretrainedConfig, PreTrainedModel, ) from transformers.modeling_outputs import SequenceClassifierOutput from perceiver.model.text.classi...
37add17366de4717900e20441d2f8a836e0bcfb8
b49df4dda097c5b5952d90ee3d52b415bb477174
/EasyCloud0.1/ec_index.py
e99314e6a6eb8afcf7410a7cc4a0e381c4ddecb3
[]
no_license
529324416/EasyCloud
0df099e90c18050e5b98045f6f93a60888d0059a
1dc461db68755fd8cf84b09da8d999adbde5491a
refs/heads/master
2020-07-21T21:10:24.636900
2019-09-17T14:29:07
2019-09-17T14:29:07
206,975,820
6
1
null
null
null
null
UTF-8
Python
false
false
4,946
py
ec_index.py
from flask import Flask from flask import render_template,make_response,send_from_directory,send_file from flask import request,session,redirect,url_for from werkzeug import secure_filename from ec_config import config as cfg from ec_utils import * from ec_verify import verify from ec_time import Timer from...
9c7f32f49de13e9a5456e004464dee315a1ee042
898ab6b6aef0b7f8b8aeedc5a431f1e112eaa5b9
/tournament_of_usos.py
0014dd474e2ba63fdff5d143efd8e7885d350c82
[]
no_license
algorias/uso
c985732c452999871e4c4b2556dd7b5ce0560745
fc2bbb9cfc61a02b99567a97b3f50cb5ca5646d2
refs/heads/master
2020-04-01T18:04:20.249392
2013-09-05T08:23:58
2013-09-05T08:23:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,618
py
tournament_of_usos.py
import itertools, random, multiprocessing, time from functools import partial import usolib from usolib.helpers import * def runtime_sampled(N, uso): n_samples = 200 lst = [usolib.randomfacet.randomfacet_sample(uso, N) for i in range(n_samples)] return sum(lst) / float(n_samples), uso def runtime_analy...
77d54b4ec50a0151fcc87ab0e13834270251305d
c14e4a53d1929eab45a7f77ae2ffc9da2486a5bb
/opencv/test.py
036b4efe6f34df670c2931453acb3ca747fed912
[]
no_license
hudong-tech/raspiberry
2993e4ff17f97b8f10e652e915005d7962beee9c
418d50eb460281811dd58ba869b1787d9341b4de
refs/heads/master
2022-04-08T21:33:35.287710
2020-03-11T05:09:50
2020-03-11T05:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
test.py
import cv2 import numpy as np import matplotlib.pyplot as plt %matplotlib inline img=cv2.imread('car.jpg') #高斯模糊 guassian=cv2.GaussianBlur(img,(5,5),1) #灰度图 img=cvtColor(guassian,cv2.COLOR_BGR2GRAY) #sobel sobelx=cv2.Sobel(img,cv2.CV_64F,1,0,ksize=3) sobelx=cv2.convertScaleAbs(sobelx) sobely=cv2.Sobel(img,cv2.CV_64F,...
f3670da32ea13759d1e56dbdf59b4081347ac5df
fad0735b7deb42e05a765366e31cf4427f1bc09c
/record.py
2220c556a5f170cadca170f98fc320571e3ab57f
[]
no_license
ZanderChang/pku-tensorflow
c510f84eef43ebe99003f15d494c7265aab45ac1
c4e6ab47db0d78a86197289aa4676c5d3fb29d79
refs/heads/master
2020-04-13T05:37:26.263075
2019-01-14T06:45:03
2019-01-14T06:45:03
162,997,185
0
0
null
null
null
null
UTF-8
Python
false
false
1,415
py
record.py
# coding:utf-8 import tensorflow as tf import numpy as np # 输出y -> Softmax -> y_交叉熵 ce = tf.nn.sparse_softmax_cross_entropy_with_logits( logits=y, labels=tf.argmax(y_, 1)) cem = tf.reduce_mean(ce) # 学习率衰减 # staircase=True 学习率阶梯衰减 global_step = tf.Variable(0, trainable=False) learning_rate = tf.train.exponential_...
732538ed4201cf2415e1e7942c5f1b531d612977
4de6b34725d5c2ebf303d01e1d8dfec0e737d0c6
/appiumTest/WebBase/contact_list_page.py
ee43628d5bc9744dd0f06adbfe2fd67f789be0ca
[]
no_license
wenshu520/testLearning
b06927e0b430239b4b9d0786bd198d99000770d5
7ff8d89ffa9a4ea3bbda3f2817febf2d3238c44f
refs/heads/master
2023-04-07T03:42:20.795656
2021-04-06T09:05:48
2021-04-06T09:05:48
352,294,593
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
contact_list_page.py
from appium.webdriver.common.mobileby import MobileBy from appiumTest.WebBase.add_member_page import AddMemberPage from appiumTest.WebBase.base_page import BasePage from appiumTest.WebBase.user_info_overall_page import UserInfoOverallPage class ContactListPage(BasePage): def move_to_add_memeber_page(self): ...
fa139c5cebdcf5317c6eb7d02e583f413ea04c6d
e49e8156ef0368214adeb9696ae9f2b24ca5b777
/Python/30_DigitFifthPowers.py
7055c92ee6aaef154e60b09ec97f769bd4aab8af
[]
no_license
Prakhar-Saxena/ProjectEulerSolutions
fe6516b60254cb6cd93825e70d47e9a562168eb1
987583a2547fea0304e2e8443265f0d7544373ec
refs/heads/master
2021-11-11T18:08:59.097804
2021-11-07T16:59:22
2021-11-07T16:59:22
154,599,440
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
30_DigitFifthPowers.py
#!/usr/bin/env python3 ls=[] def getFifthSquareSum(x): sum = 0 for i in x: sum += (i^5) return sum def getDigits(x): l = [] num = x rem = 0 while num != 0: rem = num % 10 num /= 10 l.append(rem) return l x = 1 print (9^5) * 5 count = 1 answerList = [] while count <= ( ( 9 ^ 5 ) * 5): if getFifth...
03eda2ad02f9ad425bb9f7f3c01c52f431187f78
b1dcb52f42423426b77b242f148e6354d403e1f7
/spam/mdl/accn/conf.py
132d8116ffccc6b7e56bdb7825c0f6cc507b2be9
[]
no_license
valdy2424/PhishingEmail-TELEGRAMSPAMbrutal
57dd22f673877da6d3548a01f0002d12126a53d7
5bf7fa8cfe545faafe6b688a36427ad43b109fa0
refs/heads/main
2023-02-04T03:50:37.262084
2020-12-22T17:23:32
2020-12-22T17:23:32
323,573,799
0
0
null
null
null
null
UTF-8
Python
false
false
39
py
conf.py
dat = str("anonytwnty24@gmail.com")
ad712c786e7dc00779517500f68e6a6449748cc8
368848c16e63d8fb65dc96d08ff7ebb200c091d2
/client.py
afe52e319f39efcc9984c7454e8a48dd783c9ef3
[]
no_license
mayer-qian/20200311
ac7b33d6d80693349ef9ee00feda9f0c10ac897a
1fca7c65a3036b49a1eb589d491d783db58b59ed
refs/heads/master
2021-03-18T11:50:23.478379
2020-03-13T13:06:24
2020-03-13T13:06:24
247,073,212
0
0
null
null
null
null
UTF-8
Python
false
false
35
py
client.py
import server.py @server.response
568c0d59172aafd1dca13d48d77e531de10a29ea
78b64f8e42c48a55d3f1f2a218c067efdf53e5c8
/binance_algotrader/binance_account.py
c548c069cb7143902878b1d8d92a31077e8f9d9a
[]
no_license
mko237/btc-auto
510e9709ebd5edaed6e21faed9f325029f08ff90
2a669ed3a34eee74162d63ee7f68f46b9ce6ac04
refs/heads/master
2021-06-02T12:37:09.130451
2018-09-27T10:57:18
2018-09-27T10:57:18
139,184,805
0
1
null
2021-06-01T22:35:11
2018-06-29T18:51:12
Python
UTF-8
Python
false
false
5,377
py
binance_account.py
import os from binance.websockets import BinanceSocketManager import configparser from binance.client import Client from datetime import datetime class Account(): def __init__(self): self.last_updated = 'xxx' def get_balance(self): pass def get_positions(self): ...
37b895a8b43f5ad7c16f312b328214a7cb5b74c6
25adc49609432a43962c6a87c2455fab3cf84c74
/Bookstore/bookstore.py
db9de4cde0bd0e92fe6ea3be8dc0c1799ed94c24
[]
no_license
nanatap/python_bookstore
09ed87385145945ddc846c27fbb614c61fe41683
0fe0da515ed26bbbc78a60285184a5530a423323
refs/heads/main
2023-04-07T02:48:08.333611
2021-04-13T17:37:40
2021-04-13T17:37:40
357,636,563
0
0
null
null
null
null
UTF-8
Python
false
false
7,792
py
bookstore.py
"""Desktop application storing the book database. It has 5 main functions, 1) View all books in the database, 2)select desired row and modify the book information, 3) Add new book, 4) Search for the specific book (it has an exact search, meaning that, you need to input at least one full parameter: full name of the boo...
650b52bc454f59bbecdbc4a7b70ad6edc3dbecb9
0cdc9876bbd8278164b60b5bd6b7a65ee4f34c62
/client/app/exceptions.py
f81f2b8a29189bbb3685026504484f62004b249b
[]
no_license
rodrigobello/redes-udp
cd5a0ca86271283ecc5ac01596822476348a0a2d
fa4e14aefd5094d5562a2ec23d846981977b14df
refs/heads/master
2020-04-09T15:01:46.778980
2018-12-16T15:11:22
2018-12-16T15:11:22
160,413,882
0
0
null
null
null
null
UTF-8
Python
false
false
552
py
exceptions.py
class CreateSocketException(Exception): def __init__(self, msg): super().__init__('[Fail to create socket] {}'.format(msg)) class SendMessageException(Exception): def __init__(self, msg): super().__init__('[Fail to send message] {}'.format(msg)) class ReceiveResponseException(Exception): ...
1f02a69e19ea731abc930b4ee911d994a696dfe3
2daedaa3d59fdac3d8658eb6249402ee9681fa9d
/SFX_Helpers/SFX_Save_Action.py
91a93bf4512857906f0a1ff92c89ff22f3bb1e6a
[]
no_license
wiredworks/wiredworks_winches
c0d3c058f3ece3295551899c0c1f50d611fbe84e
4b6b11ff6490b76d016ca8401f715e5465ac9e14
refs/heads/master
2023-02-11T15:43:57.777256
2021-01-05T20:13:10
2021-01-05T20:13:10
293,483,228
15
0
null
null
null
null
UTF-8
Python
false
false
3,226
py
SFX_Save_Action.py
import bpy import json from .. Node.SFX_Action_Props import SFX_Action_Props from .. exchange_data.sfx import sfx def write_some_data(context, filepath, action, description): f = open(filepath, 'w', encoding='utf-8') Data = (str(action.id) +';'+ # 0 action.name +';'+ # 1 ...
efb138f8c5cba031a485ba810b40eb2b6f92b26f
7a292128da7334b9e0296e903f13a95e5ab547ac
/code_challenges_python/codility_cyclic_rotation.py
34f2c87cdb5f2394706b74c889d9ddf037b83ced
[]
no_license
justinbourb/coding_challenges
6502f88c1aa2ab34db7db148bf697bdb1cca504b
c894c1f3050a764711cb6f8f34023f4feb4ddbef
refs/heads/master
2023-09-05T19:18:56.651681
2021-10-07T02:58:02
2021-10-07T02:58:02
408,491,433
0
0
null
null
null
null
UTF-8
Python
false
false
2,456
py
codility_cyclic_rotation.py
""" 9-2-21 An array A consisting of N integers is given. Rotation of the array means that each element is shifted right by one index, and the last element of the array is moved to the first place. For example, the rotation of array A = [3, 8, 9, 7, 6] is [6, 3, 8, 9, 7] (elements are shifted right by one index and 6 is...