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
5e705672f992230046db92548a395cfc6a86c150
8729411e31160fa21d1b6b3dbfc4f4af40d3cf22
/tensorflow_fold/blocks/layers.py
b0048404e0a1f034501c109c31a744f6f4bcb5dc
[ "Apache-2.0" ]
permissive
hfchong/fold
4c3b39e350ea478b6e37b56ca3ccb3120d25f269
fa051447a575d0beb67a38f22854887791daea06
refs/heads/master
2021-04-27T16:05:51.299189
2018-11-19T10:34:20
2018-11-19T10:34:20
122,481,598
0
0
Apache-2.0
2018-02-22T13:23:14
2018-02-22T13:23:13
null
UTF-8
Python
false
false
26,210
py
layers.py
# Copyright 2017 Google Inc. 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 applicable law or a...
a4cb4cec3ac08f5040a377173d74616c1f2b836a
8a975d950fcdafe0cd5851b2a7205b68b333a953
/erp/provider/generic_geoloc.py
ac6783f486d5d4713bdd7fced6eeba4b105e44e7
[ "MIT" ]
permissive
MTES-MCT/acceslibre
de5e15c66909f423ca3c58f867b9c6ad97f6edb5
dc635ba4aecba7f5b55c3ce63ad489f5ebbf6d3c
refs/heads/master
2023-08-16T14:02:24.809087
2023-08-16T13:11:48
2023-08-16T13:12:06
235,756,576
14
6
MIT
2023-09-14T14:33:29
2020-01-23T08:51:54
Python
UTF-8
Python
false
false
2,647
py
generic_geoloc.py
import logging import requests from django.contrib.gis.geos import Point logger = logging.getLogger(__name__) class GeolocRequester: provider: dict = None urls = { "ban": "https://api-adresse.data.gouv.fr/search/", "geoportail": "https://wxs.ign.fr/essentiels/geoportail/geocodage/rest/0.1/s...
1dd3e456f520cbf511b75843deae67d681213de8
e61bf96aefbe560ed936418635253ad8a2fb7767
/test/test_api.py
34e29257e463a3e4284fc04565c7be5666fe0cd2
[]
no_license
jnitin/flask-catalog
3fc57a2ed9a207ca746a8072a5aa43963ec2f75e
365543d2e121bc78ecbf6452e9e77dc75b059f03
refs/heads/master
2020-08-06T05:33:45.630942
2018-04-24T01:22:08
2018-04-24T01:22:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
26,785
py
test_api.py
"""Unit tests for api""" import unittest import json from base64 import b64encode from test.utils import pprint_response from test.setup_and_teardown import my_setup, my_teardown from flask import current_app from flask_uploads import FileStorage from application.user import User, Role from application.extensions impor...
324c1146148a5a53e1b7ad95b57468ad348be5a9
d214b72b3ae340d288c683afe356de6846a9b09d
/树/二叉树中第二小的节点_671.py
e3cb8e701600d45640139ab5b166326c59d7720b
[]
no_license
Xiaoctw/LeetCode1_python
540af6402e82b3221dad8648bbdcce44954a9832
b2228230c90d7c91b0a40399fa631520c290b61d
refs/heads/master
2021-08-29T15:02:37.786181
2021-08-22T11:12:07
2021-08-22T11:12:07
168,444,276
0
0
null
null
null
null
UTF-8
Python
false
false
767
py
二叉树中第二小的节点_671.py
# Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def __init__(self): self.min_val=None self.ans=-1 def findSecondMinimumValue(self, root: TreeNod...
c7a8cd32bbed969409903daa68f7a4c55ea76ddc
41c3213070e55076a32233c6ce443f2efb921966
/cl_project/cl_app/urls.py
3a398bea916e8e06290062aac2fa177e3cf52168
[]
no_license
ryan-semmler/craigslist_clone
b54a7a7441b4a7139b7324c0acf848d6d2c5af8b
220890d937ac21d241545494b4e0a3b5a32f3a65
refs/heads/master
2021-01-23T02:24:20.669995
2017-03-26T05:13:09
2017-03-26T05:13:09
85,986,071
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
urls.py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^new_listing$', views.new_listing, name='new_listing'), url(r'^city$', views.city, name='city'), url(r'^categories$', views.categories, name='categories'), url(r'^listing_(?P<listing_id>...
d4846b83a5e32f9551f6535f92ed93620ab9a20e
ecb7c0c6be56d2c538e303698ca48805ede2ce9b
/book.py
84b2184edfa0d6993d5fd4ad33fb959f1e17dfa0
[]
no_license
won-hyw/RElib
b6bc37e355f7ee05911ffd0b33c8a509d23fa1e3
c7ac1cb911067e93cf0bfb0246e94b8331d2e41f
refs/heads/master
2023-05-29T15:08:44.701029
2021-06-18T17:36:42
2021-06-18T17:36:42
375,997,038
1
1
null
null
null
null
UTF-8
Python
false
false
1,765
py
book.py
# book.py # 책을 등록하는 역할 # title, author, publish(출판사), description, price, quantity(수량) class Book: def __init__(self): self.title = '' self.author = '' self.publish = '' self.description = '' self.price = 0 self.quantity = 1 def set_title(self): title = i...
7f32bbf2b1c5a0bb82e85f07684674171decb872
deca81aed4c2206dca81414c7256eb24a66cdb5f
/bin/minipowerpc-cli.py
ee86b853757623d48a43e777664c8bb528d1249d
[]
no_license
elfixit/mini-power-pc
788886df76e44ea740b46cea6296c05b019c8dab
f8a649d3b341e1ad795a8ed4f6609fa8d46cedf7
refs/heads/master
2021-01-23T03:33:40.546298
2012-11-05T13:45:05
2012-11-05T13:45:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
minipowerpc-cli.py
#!/usr/bin/env python import sys, os.path try: from minipowerpc.cli import Cli except: sys.path.append(os.path.abspath('../.')) from minipowerpc.cli import Cli if __name__ == '__main__': cli = Cli(sys.argv[1:]) cli.run()
5ccc34066efb2cd144530dca524c715510e07807
2de084075fc8035c7116d3fc3451d762d62424de
/flaskblog/users/utils.py
14830f67f3361c2825d1baeb44cfaac6ea8ac0d2
[]
no_license
PassionateLooker/Blog-created-using-Flask
1d6caa38da172cb0322de709f75892b2e1540b5b
de2b3507c1d5353b0e1e9422b2ee153900fb37fb
refs/heads/master
2022-11-14T13:26:03.423057
2020-07-09T07:46:31
2020-07-09T07:46:31
278,297,209
0
0
null
null
null
null
UTF-8
Python
false
false
935
py
utils.py
import os import secrets from PIL import Image from flask import url_for from flask_mail import Message from flaskblog import mail from flask import current_app def save_picture(form_picture): random_hex=secrets.token_hex(8) _,f_ext=os.path.splitext(form_picture.filename) picture_fn=random_hex+f_ext pi...
9efb1381d080d478565d4ab30ba01e694e10d33c
153fbcf2132b9055589700bdf85e0c2e4fa3f1d1
/FILTER/models.py
ef0bda0e885bb00be2d292f317e16f71fdb94b51
[]
no_license
nikeshvarma/SmartPhoneWorld
496232f19849b380fc4b1872e67043f848c72a7f
1d5b41d048d65b2a14b4c78f6a4d6ae7880d1c37
refs/heads/master
2023-01-14T04:35:44.716662
2020-11-23T14:53:09
2020-11-23T14:53:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,159
py
models.py
from django.db import models class Brands(models.Model): brands = models.CharField(max_length=100) name = models.CharField(max_length=100, default='brand') cls = models.CharField(max_length=100, default='n') value = models.CharField(max_length=100, blank=True) def __str__(self): return se...
8d10e2545ead50f103bc8400d875cb8e037997cf
7ab2f9e117aae17306fda8f354838b9231d59d10
/backend/model/clubSearch.py
885e639bc386db563001937a51a203b051069d87
[]
no_license
Lleeshen/ClubGrove
27e22f3186c6b293a64f7a547b96cc23a5a3c04c
5e0744d15aad042ba987f0b36fef5091bbcbb41f
refs/heads/master
2023-01-23T17:46:10.192629
2020-06-11T20:27:09
2020-06-11T20:27:09
235,176,945
0
0
null
2023-01-05T05:22:36
2020-01-20T19:05:20
Vue
UTF-8
Python
false
false
2,765
py
clubSearch.py
import psycopg2 import psycopg2.extras import configparser import os from . import startdb as startdb import logging LOG = logging.getLogger(__name__) def clubSearch(searchTerm,keyword,sort): con = startdb.startdb() LOG.debug(sort) SQLstatement = "SELECT name, description, website, email FROM club WHERE name ILI...
a66a749ac80bcde8d057023aa23e302cb4d028f2
da6f0a2fa3143f952225d7ff4b16d79d2cb0f1c8
/app selenium/duoduo.py
b7aa89a97d9c790a4241f1be968c452c9ba2056e
[]
no_license
gaoyang836/python_text
73259a2690f6be3e7ac61d1c627c434f80d32508
f701564c9c30a28041c5c075d14cb53edefe5601
refs/heads/master
2021-07-02T23:34:49.072789
2020-09-10T02:59:42
2020-09-10T02:59:42
163,351,140
0
0
null
null
null
null
UTF-8
Python
false
false
1,650
py
duoduo.py
# -*-coding:utf-8 -*- # author:gaoyang time:2020-04-15 #导包 from appium import webdriver #准备自动化配置信息 desired_caps={ #移动设备平台 'platformName':'Android', #平台OS版本号 'plathformVersion':'7', #设备的名称--值可以随便写 'deviceName':'test0106', #提供被测app的信息-包名,入口信息 'appPackage':'com.duoduocalca.calculator', ...
b2a38ebd4d2ba28d2af01ca753b214722785a532
73a81a822dc8fd3edfc3a4cf2b383ea4d10b828c
/tests/protocols/test_websocket.py
17f2a92d1972596ce57ae558a6c8e69b60201f1c
[ "BSD-3-Clause" ]
permissive
encode/uvicorn
8731dc29de6aac471f6fe287992a62077dfdc747
fc2130bf1a740acaa502530079bfbd595fa7a94c
refs/heads/master
2023-08-31T04:56:03.181678
2023-08-25T18:52:05
2023-08-25T18:52:05
92,946,971
6,936
769
BSD-3-Clause
2023-09-14T11:13:29
2017-05-31T13:13:43
Python
UTF-8
Python
false
false
38,062
py
test_websocket.py
import asyncio import typing from copy import deepcopy import httpx import pytest import websockets import websockets.client import websockets.exceptions from websockets.extensions.permessage_deflate import ClientPerMessageDeflateFactory from websockets.typing import Subprotocol from tests.protocols.test_http import ...
0902b0a6756a262379d14401a0e2780998735bb7
a002a962415cfb8eb8690be7a79e23be72ceb7e2
/BT_struct.py
77d93847dd605e9885a629e4d0a5300114337e2b
[]
no_license
nufangqiangwei/bittorrent_tool
01f8c732473f7a50df5f3e58ee7f3655687d0ca3
a54c4de0ebc1c0100a6ef4a2cc622427b57ffbb6
refs/heads/master
2021-09-03T15:46:30.369875
2021-08-18T06:54:57
2021-08-18T06:54:57
222,633,049
2
0
null
null
null
null
UTF-8
Python
false
false
2,403
py
BT_struct.py
""" node的id是20位的一个对象,将这20位的对象转换成160位的二进制数据 然后对这160位的二进制数据进行异或运算,就是同位上的数字相同就为0,不同就为1 然后对这个运算的结果计算第一位是1的位数,这个位数减1就是这个node应该在的K桶 因为所有的距离计算都是以自己的node_id做为起点,所以位数越高的K桶就是离自己越远的 每个K桶只储存八个node,当向这个K桶添加node的时候如果没有满就在末尾添加 满了的话就看有没有失效的node,没有失效的就将这个node抛弃 """ class Node: def __init__(self, nodeid, ip, port, now_time): self.n...
31b463b4e2c643f4ed342ddf53a2212668e9d99b
be0dc98761ccd534b77f9cd030b2b92886f8cd19
/predavanje7/skupovi.py
940f3be3bfc575ae4c1db013663ba89c5c275c1a
[ "MIT" ]
permissive
vmilkovic/uvod_u_programiranje
7e0c662b1dffc8097edb5bb5a4a532f2c3a9fab0
209611e38c8fe84c727649df4b868a4278eb77c3
refs/heads/master
2022-04-07T00:33:17.059137
2020-02-16T19:28:41
2020-02-16T19:28:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
108
py
skupovi.py
mojset = {1,2,2,3,4,5,5} print(mojset) #mojset = {} # ne valja jer gleda kao da je rječnik mojset = set()
ea31ad4d8741f7d588ca36728e265d855136bf6e
7bbbbfd13b43bfaee1a92e85eb77e0fa3ad80ec1
/FactorRotation.py
75dddae45c36249670c20388602f56ca0ae56687
[]
no_license
masamichiIto/codes
98509bad9bd1bc4a5fa9c9f745ade102cb51b754
0f706a67835e7daa553e91fb76757709be7b2280
refs/heads/master
2022-11-03T09:49:59.101777
2022-10-27T06:43:03
2022-10-27T06:43:03
273,888,497
0
0
null
null
null
null
UTF-8
Python
false
false
10,981
py
FactorRotation.py
import numpy as np import matplotlib.pyplot as plt class Rotation(object): """ This class includes various rotation methods. orthmax, quartimax and varimax can be used for estimating orthogonal rotation matrices. oblimin, quartimin, biquartimin, covarimin and geomin can be used for estimating oblique ...
e79a0246c6d83aa5e4310f3918d8a79810e54023
d846460c9fcb294fb88a68c14f081013466f47d5
/assign14.py
ce111b6e3e2955e5dc308cbd7550e1bc13c7073d
[]
no_license
divyajaincs/Python-Practice-
52d5dc0a7d998d7476fe332e723dee7b89b182cb
679df72102555a7f1afe055c1257aca2cfada0f3
refs/heads/master
2021-04-12T10:07:28.868872
2018-03-25T19:32:14
2018-03-25T19:32:14
126,732,330
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
assign14.py
count=0 result=0 for count in range(1,10): result+=count if result>6: break print("Result=",result)
be5bc7008a8b9ec434704979e27076e9d9b92373
d69a91fb8cde0847a033cf5d9e1d48cde26a733e
/neuMF_PyTorch/model.py
4de75e302677e689cd5cb82ac515f61a1b57da91
[]
no_license
josephwww/DGProject
1a0f34b1f686f0e4d71786ce852ebea899f83d9c
d4718f39f71269638d70992c0e7e078380fe1f64
refs/heads/master
2023-03-13T02:33:23.391893
2021-03-02T15:31:37
2021-03-02T15:31:37
329,131,158
1
0
null
null
null
null
UTF-8
Python
false
false
4,727
py
model.py
import torch from torch import nn # define the NCF model, integrating the GMF and MLP class GMF(nn.Module): def __init__(self, user_num, item_num, factor_num): super(GMF, self).__init__() self.embed_user_GMF = nn.Embedding(user_num, factor_num) self.embed_item_GMF = nn.Embedding(item_num, ...
e53e4b452e3b77443c78a7db85d297f00da119a1
20f16917c9245aae71cb50fcc4b3e34e1e2a5006
/LessonTwo/python05/Calculator_start.py
f44b242754bc6e0fc7c98d5c4b86b74a0050b6a2
[]
no_license
yinsendemogui/Alex
f4bce794efb5cacdf547c420d7a3a3c5d27be5c8
eeb230b9028ced5c7fc0f293c1d4d7b98c521721
refs/heads/master
2020-06-11T19:17:41.397658
2017-01-07T15:50:48
2017-01-07T15:50:48
75,628,240
0
0
null
null
null
null
UTF-8
Python
false
false
5,282
py
Calculator_start.py
#!/usr/bin/python # -*- coding: utf-8 -*- # 模拟表达式计算器(支持加减乘除和小括号) # 本程序可以在windows下运行基于python2.7.8版本开发 # python05_homework # __author__:The_thirteen_group_chensiqi import re TAG = True #循环控制标志 def Remove_Redundance(str): ''' 去除冗余符号 :param str: 表达式字符串 :return: 去冗余的表达式字符串 ''' num = len (str)...
fff7a4b41e1539f37c1f1b4e8b440af927f18094
9b72a05897dc63c1cf507023ccf3dcfd5f40748c
/tests/test_locales.py
b040471994e9acb1d56f4aeee33c23dba92cdcfe
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
lk-geimfari/mimesis
991a0a6a45010fe7dd57682ddc347573ca2325df
653bb5a90a91ea8dfbdb08684c66deb1b23bcda9
refs/heads/master
2023-08-21T02:27:12.837063
2023-08-20T15:57:13
2023-08-20T15:57:13
67,834,502
3,144
370
MIT
2023-09-14T10:37:03
2016-09-09T21:41:22
Python
UTF-8
Python
false
false
762
py
test_locales.py
from enum import Enum import pytest from mimesis.exceptions import LocaleError from mimesis.locales import Locale, validate_locale def test_locale_enum(): assert len(list(Locale)) == 34 assert issubclass(Locale, Enum) def test_validate_locale_missing_locale(): with pytest.raises(TypeError): va...
d093bcb09eb84aca798da8825b6cabbcbdd5c008
81d19f4f771ea95586280f41f4d4f1df0c21f527
/urlexpanderapp/views.py
3d4040fe958ed9d654875af2f734efafe12fa277
[]
no_license
MitchellAmundsen/urlexpander2
51885e029941b37d0cf7ebec33dcd8909793271e
4fe0513e9cc0bb5e8158a666cde541188c70fe20
refs/heads/master
2021-01-09T20:09:26.575641
2016-11-15T22:27:53
2016-11-15T22:27:53
65,713,875
0
0
null
null
null
null
UTF-8
Python
false
false
2,249
py
views.py
#from urllib.request import urlopen from django.shortcuts import render, get_object_or_404 from .models import URL from .forms import URLForm from bs4 import BeautifulSoup import requests, json from django.contrib.auth.decorators import login_required from django.contrib.auth import views as auth_views @login_required...
aa1449c1144d599ecfa3ecb41d515d7744abdc97
b038c7600f0581c678c2ac5fffce30392a16f2e7
/example/myapp/urls/staff.py
620ec9e4e105b45adb5d70d566f907c85a17b882
[]
no_license
bradbeattie/django-urlmagic
a645b0ec41a3217aee0803edbf7181d959c4c6f8
aa23b4f76eccbc5db6d8010a9a7adb5e49a7ad39
refs/heads/master
2021-01-10T19:11:06.970106
2015-08-12T18:37:25
2015-08-12T18:37:25
17,228,942
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
staff.py
from myapp.models import Alpha, Beta, Gamma from django.conf.urls import patterns from urlmagic.staff import StaffUrlGenerator urlpatterns = patterns("") for model in (Alpha, Beta, Gamma): urlpatterns += patterns( "", StaffUrlGenerator.list(model), StaffUrlGenerator.add(model), S...
f0436c13d8288592a37fa044096abd2f0d4b3f7c
8b7d9d684b0dcf38626ec63d0d809327fce6196e
/examples/mp/keras/builtin.py
81b1c5a4563b95bc209acbd477977331ac30d022
[ "MIT" ]
permissive
run-ai/runai
917b274446ef38710e39b5d527a71c5b18cca3af
3bab5e23730d76d655ae3d9143d8e78a2b5cb0c7
refs/heads/master
2022-12-06T03:27:32.915727
2022-11-22T09:48:02
2022-11-22T09:48:02
205,650,825
122
17
MIT
2021-02-02T12:10:12
2019-09-01T08:42:13
Python
UTF-8
Python
false
false
3,763
py
builtin.py
import sys import keras import numpy as np from keras.preprocessing.image import ImageDataGenerator from scipy.misc import imresize import runai.mp #runai.mp.init(splits=2, method=runai.mp.Method.Cout) runai.mp.init(splits=2, method=runai.mp.Method.Cin) if len(sys.argv) == 1: MODEL = 'vgg16' else: MODEL = s...
b50f91fa4448dd97a585ec45b80e3a2607a55868
623a81d04ac1e0755e8fda2b33860ec37867fc01
/URI_1066.py
f503ce03b5d6585f3217fc0c5cc413fc9fb5a1a9
[]
no_license
lalchan123/Contest-Programing-Code
aa4aade42413383916cafaa0653b5ec616fc0293
8e26e9a413723f7f2fb6a9172fa365b8e58ffaa8
refs/heads/main
2023-07-15T11:24:56.929980
2021-09-01T18:33:41
2021-09-01T18:33:41
301,860,777
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
URI_1066.py
# # ans = [] # pos = [] # neg = [] # odd = [] # evn = [] # for x in range(5): # ans = int(input()) # evn = filter(lambda x: x % 2 == 0, ans) # evn = filter(lambda x: x % 2 == 0, ans) # evn = filter(lambda x: x % 2 == 0, ans) # evn = filter(lambda x: x % 2 == 0, ans) # # evn.append(ans) if ans % ...
1a5b28dc1461ba9168210a01fdec4a1a1da4eca9
fee894c10e92da7faa32153b33caefa6d03047fb
/src/CPP/Display.py
6ff384793b6440bacdffa3c2e6f8aaea37e136d2
[ "BSD-3-Clause" ]
permissive
alokmalik/uavSim
4f51e9dab38f0d47fdf704bf83d5caab9c43407e
896a462e4d26254b9a33f3ed0a6fc3ba55a82a14
refs/heads/main
2023-02-25T23:06:36.601028
2021-02-03T13:36:54
2021-02-03T13:36:54
335,494,612
0
0
BSD-3-Clause
2021-02-03T03:20:23
2021-02-03T03:20:23
null
UTF-8
Python
false
false
2,463
py
Display.py
import numpy as np import matplotlib.pyplot as plt from src.Map.Map import Map from src.base.BaseDisplay import BaseDisplay class CPPDisplay(BaseDisplay): def __init__(self): super().__init__() def display_episode(self, env_map: Map, trajectory, plot=False, save_path=None): first_state = tr...
d3faf5d5f60d2c20c114db9e474e952a8bfd747a
8b7845590c979bcafc72ded5e88dbcfb8003ba42
/Session 5/Skeleton Files/Exercise 1.py
0de1e60f291cccd56103562afcc15fd4211bd02a
[ "MIT" ]
permissive
Descent098/schulich-ignite-winter-2021
131b718f8f617b1ea8be1ef53d928cc7201c1bb4
2003966651f8afc2d75657e1728e8dd8a13b88a2
refs/heads/main
2023-08-06T18:02:41.960844
2021-10-01T17:42:23
2021-10-01T17:42:23
335,855,788
1
1
null
null
null
null
UTF-8
Python
false
false
2,621
py
Exercise 1.py
"""Exercise 1: Ignitey Bird Remember to fill out all the TODO's, you can quickly scan for them by pressing CTRL/CMD + F """ import sys import os import pygame """ SETUP section - preparing everything before the main loop runs """ pygame.init() # Global constants SCREEN_WIDTH = 1000 SCREEN_HEIGHT = 800 FRAME_RATE = ...
931b3d6a04baba7e0a52f24ce77d2c1110f63b08
3b331b6751c1a2664c4f37a0713fce67f9addeeb
/setup.py
59b71fb4d492b0d67d689cb361c45be00d58527c
[]
no_license
collective/experimental.noacquisition
3e19630be30f257f56e7dd5bc9bfe773592302a1
768086d64c78b062448e6be7ab2f612c7e225886
refs/heads/master
2023-06-26T14:38:49.764806
2023-02-09T22:08:53
2023-02-09T22:08:53
23,928,924
2
1
null
2023-02-09T14:37:58
2014-09-11T17:45:35
Python
UTF-8
Python
false
false
1,908
py
setup.py
from setuptools import setup, find_packages version = '1.0.0b11.dev0' setup(name='experimental.noacquisition', version=version, description="No acquistion during publish traverse", long_description="\n".join([ open("README.rst").read(), open("CHANGES.rst").read() ]), ...
46076ab436fa62a76bfb94f4fd1fdd9a722f314d
dd3eec3a3ff0ed3ccdfaff5ebbcade08453234e1
/Reputation/src/Reputation/Resource/calculations.py
cab9d0b1b7113e4b0dbc652d6e27a8a06837dd01
[]
no_license
westonb7/Reputation
c184f312a6df8ba5ebebea0270add62180b0d8d4
d39a6131f554afd3724cb1e5bb5ed03f326c3d7c
refs/heads/master
2021-04-29T18:35:52.993271
2018-03-15T16:29:24
2018-03-15T16:29:24
121,694,695
0
0
null
null
null
null
UTF-8
Python
false
false
3,153
py
calculations.py
import falcon from collections import defaultdict ## Define the S function described in the document: def sFunction(x, a, b): c = (a+b)/2.0 if x <= a: return 0 if x > a and x <= c: return (2.0 * ((x-a)/(b-a))**2) if x > c and x <= b: return (1.0 - 2.0*(((x-b)/(b-a))**2)) i...
ddbdaf19990aff182956a8d88bd4d588dfd41f3f
82d588161a8f8cd27c3031c779120ea4380791b9
/yejin/greedy/11399.py
25f6ee8e2c409d7e34b38107592f9493a41ea10a
[]
no_license
Yejin6911/Algorithm_Study
3aa02a7d07169382a78c049d1de8251a52da816c
98c968bfeed17ab6b62e3a077280e0310f08190a
refs/heads/master
2023-09-01T00:31:07.212413
2021-10-24T07:56:21
2021-10-24T07:56:21
345,009,057
1
1
null
2021-09-20T13:08:33
2021-03-06T04:57:34
Python
UTF-8
Python
false
false
511
py
11399.py
import sys n = int(sys.stdin.readline().rstrip()) people = list(map(int, sys.stdin.readline().rstrip().split())) people.sort() # 방법 1 - 해당 사람이 걸리는 시간을 result에 계속 더해준다. result = 0 for i in range(n): time = sum(people[:i+1]) result += time print(result) # 방법 2 - 해당 사람의 시간을 더해야 하는 횟수만큼 곱해 result에 계속 더해준다. cou...
5d1da7d222dc553a9d2aa41545607c62d9645424
e0c7e49e4f3a70b33c2e0cd209d02954368ada9e
/240-mid-Search_a_2D_Matrix_II-180720.py
261c679f5f74ad3083cb997ca51c48e69161f763
[]
no_license
Freegle1643/leetforfun
d973ee0c1f0029b9827ff799f7609c870a9383ed
bd0641d0edb21b3b8121afe58d3ca0964a87ca84
refs/heads/master
2021-07-09T02:49:03.734066
2019-02-01T07:31:52
2019-02-01T07:31:52
141,117,628
0
0
null
null
null
null
UTF-8
Python
false
false
2,552
py
240-mid-Search_a_2D_Matrix_II-180720.py
""" 240. Search a 2D Matrix II Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted in ascending from left to right. Integers in each column are sorted in ascending from top to bottom. Example: Consider the following mat...
dff68a341b274d3b91de2765f4fe7c2a95d87e15
090dbdb791263f9a59a674910ba55870b2d38ed6
/reddit/app/views.py
393fd4afc4ea4658e43c45370c4cc2c73b20a3ec
[]
no_license
dfreshreed/django_reddit
699b5afc04e4913552adfa8fb51cfc5dc03ab4c1
b430e7513be995fd59c4059f2d973f9bcfe7150f
refs/heads/master
2021-06-19T21:20:15.601721
2016-11-17T22:31:11
2016-11-17T22:31:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,262
py
views.py
from django.shortcuts import render from app.models import Subreddit, Post, Comment, Profile from django.views.generic import DetailView, ListView from django.views.generic.edit import CreateView, UpdateView from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from django.u...
8521071c6e514ca898a85a0db506e716822693b1
01f943793cfa49daa61a3a8d704e032ba31a01f9
/montecarlo-estimaciones/ejer2/ejer2e.py
d078d424e60bfc21e43e72205b0a8c7db625b402
[]
no_license
lucasea777/Modelos-y-Simulacion
72be4328942dcc636637d15dbbf7f7f79946b48e
f7ba4a08f048fdec7a82f0c69d3138e0deefa97c
refs/heads/master
2021-04-12T12:37:24.501894
2014-06-23T09:12:06
2014-06-23T09:12:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
522
py
ejer2e.py
from math import e from random import random def integral(x): return e**-(x) def aux(x,y): if y<x: return 1 else: return 0 def integrate(): x=random() y=random() if y<x: r=(integral(1/x -1)/x**2)*(integral(1/y -1)/y**2) else: r=0 return r N=[10**i for i i...
938689a4face966b96a8cfd04a4d96386d26fa24
1e6d9037cf696f756c560657357409d17575f671
/PythonApplication1/PythonApplication1/PythonApplication1.py
3aaa2a23a340a718b40b5e15e7ced68715f34e88
[]
no_license
vegaralstad/vegarvilikkelare
a0dfb589dc8e74abbed97f6833517c3fa120a9b7
e85cc139a208056215347040d4bf1945cac33115
refs/heads/master
2021-06-27T18:44:15.719029
2017-09-15T14:48:28
2017-09-15T14:48:28
103,053,878
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
PythonApplication1.py
import webbrowser url1 = "" url2 = "" print ("Are you good bro?") var = input("Yes/no: ") if var == "yes": try: webbrowser.open(url1, 2, False); except Exception as e: raise if var == "no": try: webbrowser.open(url2, 2, False); except Exception as e: raise print...
225eec2faa624907d861267b38a7835133769d06
3d0d7f8d7d4fb467c5650aa669ee89c349125290
/imgprocess.py
a4e2a66a87a6253066dda8735da6f15994ac4da1
[]
no_license
vistec/tensorflow
b5d0e7ca1a65b7350a17beb6ddf41c2404c7a708
690274471593c91894c1bde918e6b9799c402496
refs/heads/master
2020-04-04T22:59:52.841264
2019-06-20T13:33:40
2019-06-20T13:33:40
156,343,503
0
0
null
null
null
null
UTF-8
Python
false
false
1,827
py
imgprocess.py
import tensorflow as tf import os import matplotlib.pyplot as plt import numpy as np from PIL import Image os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # F:\Deep_Learning\TFProjects\TensorflowProject\path\data_cat.tfrecords # D:\AI\pyprogram\tensorflow\path def read_and_decode_tfrecord(files): file_queue = tf.train....
88a9fcf4acf334f95e35988357958d71a9ad400c
91b41155a356e74c4cbb6c02cb369e22f9b77c74
/debugging+extra/debug_lookup.py
2bdd8720cc858d1bc9a82b08d108fd8e8d211182
[]
no_license
AmphibiaWeb/SpeciesLookup
d7ee9f655470615ea64fa180ee4bee45a1cc8823
fd6185174c394a0560e8a644c2941150b3059982
refs/heads/master
2021-07-12T05:04:11.644269
2020-06-03T16:05:24
2020-06-03T16:05:24
148,252,043
2
2
null
null
null
null
UTF-8
Python
false
false
268
py
debug_lookup.py
# this is debugging for lookup_table # need to create the class that filters request import kmlparserclass as k from ray_casting import points aspecie = k.parser("Adenomera_ajurauna") point=points(-46.5,-23.825) aspecie.visualize(point) print(aspecie.inside(point))
0053d774ca580d43941acdd3bb80eb3b583f6c19
c87304a70dae89682c447406bae181738265d254
/Tests/tx_test.py
9abee0e56f7de0c304d1c131dfd31cd38d9b0c6c
[ "Apache-2.0" ]
permissive
schriftgestalt/afdko
e185bf7babc0f7d1fcea8b1ccfdab3cc81e41a74
2c1be4e1c10a71b0e4366f8dbfc3afaf8e1fcb8d
refs/heads/master
2021-05-01T10:20:04.480977
2018-06-28T00:10:01
2019-05-18T08:50:02
25,173,723
0
0
null
null
null
null
UTF-8
Python
false
false
4,218
py
tx_test.py
from __future__ import print_function, division, absolute_import import os import pytest import tempfile from .runner import main as runner from .differ import main as differ from .differ import SPLIT_MARKER TOOL = 'tx' CMD = ['-t', TOOL] data_dir_path = os.path.join(os.path.split(__file__)[0], TOOL + '_data') de...
2995f868a0b160c8c8b50c7b1430ade401250189
c73a2597719201e5b8d882e00f1cef8bb9028b7d
/portfolio/portfolio.py
f42df58dba08fba4509e7a457978bdd7eae60152
[]
no_license
hirchaudhary/Python-Flask
d3e50396cce6ffdb7ebec3cd57d18d01926d9963
bd72165f9b52e4e60f92aff812b5899423d43067
refs/heads/master
2020-12-02T12:44:57.042462
2017-07-08T01:10:36
2017-07-08T01:10:36
96,587,013
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
portfolio.py
from flask import Flask, render_template app = Flask(__name__) @app.route('/') def demo(): return render_template('main.html') @app.route('/contact') def contact(): return render_template('contact.html') @app.route('/hello') def hello(): return render_template('hello.html') app.run(debug=True)
753f1106855cd77b1379055a1a1f1e7c873edbd9
a7d7bc1726d2bbd322a3ae3116871116cc9a7c21
/KW24作业/Action1.py
d00d4c49f5a591eb4cc19b7f0df498fccbd5cc6b
[]
no_license
comxuyuan123123/DataEnigne
7e8c099640a1e049ad690af7e6a6dc0f06ef43b7
185a44b26d4f5a7815802a7bee4048402f02390f
refs/heads/master
2022-11-10T09:00:32.737124
2020-06-24T05:00:53
2020-06-24T05:00:53
272,904,706
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
Action1.py
#Action1:求2+4+8+...+100 的和 print(sum(range(2,101,2)))
e9ee03ec528ba91cbd278f13e19401a1c2651dbc
2ea5ba3cddec1dfb0ce41c23c8e2c5459b6121dd
/boykov_benchmark.py
96fe18e6d91f8ff057cd7698c4f57de6087a6520
[ "MIT" ]
permissive
Wu-Xiang123/FastMaxFlow
7c43ce5adbb4d2a2996255417ecb6ec141f85342
482b2734f1f9952528b9856d8111dd2874861fef
refs/heads/master
2021-05-28T16:56:21.014436
2015-03-31T23:42:45
2015-03-31T23:42:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
boykov_benchmark.py
from __future__ import division import numpy as np import graph_tool import graph_tool.all as gt import sys import time if len(sys.argv) != 2: print 'usage: ' + sys.argv[0] + ' <n>' exit(1) n = int(sys.argv[1]) g = gt.Graph(directed=True) g.add_vertex(n) cap = g.new_edge_property("float") for i in range(n): for...
a83ab4dd54f4ae01518a7271d654137db82dbfa1
bc2a9ff9a45df8f3187fc7eae4dc028ab0b9e067
/backend/demo/forms.py
48b746652b4bfd51e4e59c72cb39015c1483ddba
[]
no_license
AlenAlic/clubpromoters-api
3ae8c6d0fbad8426956660c6b490d7cf5bf7e69f
3d42e7b1e74cb8166741dfacd8108552cb6b3692
refs/heads/master
2022-12-10T19:57:06.591328
2020-07-31T14:40:36
2020-07-31T14:40:36
225,017,037
1
0
null
2022-12-08T03:19:06
2019-11-30T13:32:14
Python
UTF-8
Python
false
false
1,977
py
forms.py
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField from wtforms.validators import DataRequired from models import Party from datetime import datetime, timedelta from random import choice from .data import CURRENT_PARTY_DAYS, PAST_PARTY_DAYS from .functions import create_party, preset_start_dat...
27be93efc8d34bbf317efd46bfa21807002315b6
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/1221.py
be057dc0b8f27f427ee51f90145ebc5699e5b782
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
624
py
1221.py
#/bin/python import sys, math def pa(a): if len(a) <= 1: return True if a[0] == a[-1]: return pa(a[1:-1]) return False def calculate(a, b): count = 0 for i in xrange(a, b+1): s = math.sqrt(i) if s == int(s) and pa(str(i)) == True and pa(str(int(s))) == True: ...
9ec4a0e7c8c33f5c43a135f3dfaea6f669675afc
9921551f1a45757b14f7ac09cfa08a7ab9a35cda
/scratch13/ex03.py
82bc5269ede26bf00db8a179f6be0ddcbc931f09
[]
no_license
Jeanrain-lee/lab-python
9338c1769722763ebaf290db04588f93c7b858ec
75a68b8e96335937c37a3a526de1c0a2f72e151b
refs/heads/master
2021-04-08T11:35:10.237497
2020-03-20T14:21:56
2020-03-20T14:21:56
248,772,080
0
0
null
null
null
null
UTF-8
Python
false
false
618
py
ex03.py
""" y = b + a1 * x1 : 단순 선형 회귀 y = b + a1 * x1 + a2 * x2 + ...: 다중 선형 회귀 """ import numpy as np from sklearn.linear_model import LinearRegression np.random.seed(1216) X1 = np.random.rand(100, 1) print('X1 =', X1[:5]) X2 = np.random.rand(100, 1) print('X2 =', X2[:5]) y = 3 + 4 * X1 + 5 * X2 + np.random.randn(100, 1) ...
354a958656eb1b23a814aa99bed459cc7b57fa8d
52ca38b95296393bf9b528e07c49a96649540252
/leetcode/136/single_number.py
01aba2f5c1af3a458a94d47b6f1ddda906a962aa
[]
no_license
clelandgt/arithmetic
5925ffeb3f733ed2169ba5ca96323ba883b4c84a
a3f674284b0f61475cbb9dbe5c598fe198a8c18f
refs/heads/master
2021-04-27T16:18:29.258732
2020-12-02T00:33:02
2020-12-02T00:33:02
102,631,825
0
0
null
null
null
null
UTF-8
Python
false
false
1,790
py
single_number.py
# -*- coding: utf-8 -*- # @File : single_number.py # @Author: clelandgt@163.com # @Date : 2020-01-21 # @Desc : https://leetcode.com/problems/single-number/ from typing import List class Solution1: def singleNumber(self, nums: List[int]) -> int: """ 时间复杂度: O(n) 空间复杂度: O(n) :param...
a12dbc80f463eb1ffde98234a01b8d785b7197f1
79bf6a17e8922714645cda018d97113199808f04
/MetaData.py
0b0af5a765f1c01ab04a447db186397aa15bb5cc
[]
no_license
sunyinggilly/VOTEN
7107549f4ff75908da315ab87580e043ab7b95ca
0570e4f148a8fd540b4d2ee8d71f2cf8cb7a305e
refs/heads/main
2023-08-13T00:32:21.099572
2021-10-01T13:18:24
2021-10-01T13:18:24
412,434,439
2
0
null
null
null
null
UTF-8
Python
false
false
2,561
py
MetaData.py
import tensorflow as tf import pickle import pandas as pd class MetaData(object): def __init__(self, use_labels=None, all_cols=None, cont_cols=None, disc_cols=None, group_len_ctrl=None, group_len_feat=None, group_ranges=None, group_len=None, n_dv=None, df_val=None, n_train=None, n_test=None, othe...
88293c14cc2397a18a300600d67797627aa4a47a
c02f3b6de7f35dc7cd1c6820f3ba27fbaf522d98
/py_tools/cdm/common/globals.py
fde642bdad61c752a86e1040ed597e1c912ac770
[]
no_license
glamod/icoads2cdm
ac01c7b7a34ee3d0940b8ed9f0cc82c54541aee4
83983147814a0648b2fe1d5e6fe46f47768e5875
refs/heads/master
2020-04-16T03:18:50.733689
2019-01-23T12:37:38
2019-01-23T12:37:38
165,227,513
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
globals.py
# global values # invoque on modules where needed: main calling module may modify or set to these # default values, but other modules won't realize they changed....!!! fmiss = -999999. imiss = -99 omiss = "__EMPTY" tol = 1E-10
e2d3f7b0db7989707fb327910a8d40e11141113a
bad803d1991c40464c0882e73c67d4ad6733418a
/untitled3/contact/models.py
1986d7b32b1026bdf41e58c2d3075135489bd17f
[]
no_license
pateljainilanilbhai/ecommercewebsiteindjango
df36a51c4e646b483add756a0b419c006f8a20d5
eb853c9f9df9ee79e5f9bc6a7acc41a0ef751d7a
refs/heads/master
2023-01-06T10:41:10.607719
2019-04-28T19:00:15
2019-04-28T19:00:15
183,947,303
2
0
null
2022-12-26T20:15:40
2019-04-28T18:59:35
Python
UTF-8
Python
false
false
244
py
models.py
from django.db import models # Create your models here. class Query(models.Model): fullname=models.CharField(max_length=200) email=models.EmailField() content=models.TextField() def __str__(self): return self.email
eb8721f682449f39b7436b012cb74b62c6910245
fa552c334856675b883c31a33a50de464bc56333
/Day_5/02_feature/wave_modeling.py
1cb2e55207f432b7dfeed70fd8a8219f3938c6a6
[]
no_license
hjs90911/1804_Learning_MachineLearning
9491413e7a0fd8f3eb8f278c0aa84716b0627728
49be904519df014d19f325bee6e2162b6cd85892
refs/heads/master
2020-03-10T10:31:03.809913
2018-04-17T00:13:32
2018-04-17T00:13:32
129,334,730
0
0
null
null
null
null
UTF-8
Python
false
false
1,000
py
wave_modeling.py
from sklearn.linear_model import LinearRegression from sklearn.tree import DecisionTreeRegressor from sklearn.preprocessing import OneHotEncoder import numpy as np import mglearn import matplotlib.pylab as plt X, y = mglearn.datasets.make_wave(n_samples=100) line = np.linspace(-3, 3, 1000, endpoint=False).res...
95991cefbabc439989ef5864504c1304d6a8b583
be38c2dd6a966dc624b35b00817d51a1a946b80e
/src/utils/subproc.py
be1cfdd588fab11d378151316235d2742a59d031
[]
no_license
yellcorp/shelpers
0f5ca7f5b8dd0dda39ebd48b2fb7a5604454f483
05a6433ee068706bfc3bf49bade5d63069f56f1b
refs/heads/master
2023-06-23T11:15:16.435934
2023-06-14T02:31:53
2023-06-14T02:31:53
141,513,810
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
subproc.py
import collections.abc import functools import subprocess from typing import Container, Union, Callable IntegerSet = Union[int, Container[int], Callable[[int], bool]] def integer_compare(value: int, value_set: IntegerSet) -> bool: if callable(value_set): return bool(value_set(value)) if isinstance(va...
1fdfe20a0741ccdb9c1ae5a07f621625865e7df1
ec3d893ee593ee48fc0cd2257b180c5372e19e17
/translate.py
1865c72d33237cabe5b6d23069b039ccbf32b591
[]
no_license
ddyack/telegramBot
85ae32a0392b782f6526c9229714f047cc294eda
a54f87d9be1a64aa6515104c55114690ebf98b8f
refs/heads/master
2023-05-26T04:30:33.188835
2020-11-08T22:10:25
2020-11-08T22:10:25
136,915,190
0
0
null
2023-05-22T21:50:06
2018-06-11T11:10:54
Python
UTF-8
Python
false
false
385
py
translate.py
import requests def get_translate(text=''): url = 'https://translate.yandex.net/api/v1.5/tr.json/translate?lang=en-ru&key=trnsl.1.1.20180218T101426Z.cce41916431b11ed.9428fdf2e11172d4dce13ef03f157ea7d9bc6477&text={text}'.format( text=text ) translate = requests.get(url).json() print(tra...
a061a0f85b50320dc979e4ac51e9516ece69bd7f
9bc57701b4de0d796a33dc878b5718ee0e1d46d6
/models.py
6158c2b1f8332def78fbc7b946b4aa838175a925
[ "MIT" ]
permissive
5eXtreme/kaggle-toxic-starter
b7d0fcf14e8be59296ad1af3843e45f914576bd3
7226b54d162c3ceb141f99e99125fad200bb378c
refs/heads/master
2021-04-27T14:49:32.070896
2018-02-22T10:35:26
2018-02-22T10:35:26
122,459,192
0
0
null
2018-02-22T09:46:59
2018-02-22T09:46:58
null
UTF-8
Python
false
false
17,441
py
models.py
""" Todo: Try Adagrad and Adadelta Implement cnn+lstm Implement FastText embedding + models Research/implement Region embeddings from http://proceedings.mlr.press/v48/johnson16.pdf Experiment with Attention and Dilated Convolutions """ from keras import regularizers from keras.activations import relu from keras.callba...
2698dd5cde7adbc4751af8823e515ac870a360e2
b215a3e88b7b37849913f8cbf99bfaa985dd87dc
/HttpPy/ParseRequest.py
02956f9cac415c735070e09d5b22e1f3e991f79f
[ "MIT" ]
permissive
hound672/HttpPy
b6e85402885b819a350a54163b62e87054875191
888e49ae84315c8f76323163125ec5a04e6eeed6
refs/heads/master
2021-05-20T01:31:44.010793
2019-10-21T21:15:18
2019-10-21T21:15:18
252,129,387
0
0
MIT
2020-04-01T09:25:50
2020-04-01T09:25:49
null
UTF-8
Python
false
false
4,744
py
ParseRequest.py
# Python import json import re # Exceptions from .Exceptions.RequestDefinition import RequestDefinitionException from .Exceptions.KeyValDefinition import KeyValDefinitionException class ParseRequest(object): def __init__(self: object) -> None: self.requests = [] self.request = {} # Flags...
3a15a9ea7fce1294a51d2b793abc94dcc3740911
340365fa840b963fb2ee0763ed2ce71d07e9c163
/atcoder/ABC003/c.py
b68bbfd230764498154db80ec89ec56a16639cb2
[]
no_license
shupopo/competitive_programming
53778ba5bc7167f43f73af5c62d8348ddb282863
93c5eb6083688b4b166d283e230697770903e5e2
refs/heads/master
2020-06-21T16:14:29.477680
2019-07-18T09:47:49
2019-07-18T09:47:49
197,499,636
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
c.py
N, K = map(int, input().split()) # 小さい順位レートをソート # 小さい方からN-K除去 # 残ったうち小さい方からK個見ればよい rates = [int(i) for i in input().split()] rates.sort() if N-K > 0: del rates[0:N - K] ans = 0 for rate in rates: ans = (ans + rate) / 2 print(ans)
3cd6c845409c01b224286ede6a515302e1b47414
cc0c75c7f592d3a482974b4d9f1e43a4bb889feb
/updater.py
dfb6d6c7dfb4cd20d490a0fdb41fa29d9189a14d
[]
no_license
shawnkoh/BeeFocused
e6e9dcdce3195812ac882b2f3aeb26a1c53b7fc3
cf45f58ee2b704513aacb8f7e15f53462cc0c494
refs/heads/main
2023-03-26T08:22:09.466430
2021-03-26T19:35:13
2021-03-26T19:35:13
351,132,491
0
0
null
null
null
null
UTF-8
Python
false
false
2,523
py
updater.py
"""Script that integrates Focus with Beeminder.""" import os from enum import Enum from typing import NamedTuple from dotenv import load_dotenv import beeminder import notifier # CONFIG load_dotenv() beeminder.username = os.getenv("USERNAME") # Retrieved from https://www.beeminder.com/api/v1/auth_token.json beemind...
fd07d29ba6578e626cc2913124822fd8501da2ae
354b10475f3006b79a8ed78d784980c43efeb9d2
/Marvellous_Infosystem_Assignment_2/Assingment2_10.py
edff0d88f0922d68bbf4e31621bfe27beb597f24
[]
no_license
spd94/Marvellous_Infosystem_Python_ML_Assignments
1c851f8e95dcdfa493b2015c64c96afaf3adf3ef
1c2f578b27fed04e42cef47b97b657eb02888f4a
refs/heads/master
2020-09-09T14:37:50.791208
2019-12-18T11:41:16
2019-12-18T11:41:16
221,473,058
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
Assingment2_10.py
def sum_digits(n): t=0 while(n>0): t=t+n%10 n=n//10 print("Output : ",t) print("Input :",end=" ") x=int(input()) sum_digits(x)
1a10f651eb95f2e8847d5788a592c84179d0ef6f
92a87f6b3957e655458e656f73a121899c7aa381
/Day 4/ROCK,paper,scissors.py
786c97549a93e7f0fba91c0ef181cb7ad63adc6e
[]
no_license
shivangimahule15/100Days_Of_Python
1c26316c255c056fef1427285612ba89810908f9
43add4c8c2e190b0e9104bbb7c7241b2001cff8c
refs/heads/main
2023-03-30T20:19:31.675169
2021-03-25T18:28:18
2021-03-25T18:28:18
347,350,599
0
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
ROCK,paper,scissors.py
import random rock = ''' _______ ---' ____) (_____) (_____) (____) ---.__(___) ''' paper = ''' _______ ---' ____)____ ______) _______) _______) ---.__________) ''' scissors = ''' _______ ---' ____)____ ______) __________) (____) -...
18b3f24b4cff53d827f461afce60d083822db855
395203abe06dca1c539316928cb78c2c72c65c4b
/K_Means.py
e33533a5ff62e386b8dd28a7d69c9ff39146f653
[]
no_license
zhenchentl/Machine_Learning
17db47947052b820c4baa25107acd81a0bf192d6
4dde4425f66ad8e1964dc492809100e926cd9cc7
refs/heads/master
2021-06-07T03:47:11.975196
2016-09-29T11:51:28
2016-09-29T11:51:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,240
py
K_Means.py
#coding=utf-8 import scipy as sp import numpy as np import matplotlib.pyplot as plt from sklearn.cluster import KMeans import pandas as pd import time from scipy import sparse import seaborn as sns start_time = time.time() data=np.loadtxt('d:\Pycharm\\3.txt') ''' 每一行代表一个好友关系。如第一行表示同学0与同学1的亲密程度为9(越高表示联系越密切...
f02cdd47a71b161a10ab8748e60e7fada602818d
b4ea5e8fef1ec82265a26096e2c65df4917ef4ab
/GenomeAssemblerTA/other contigs/run_old_method.py
bc2436b8b91b6950869eb11c8f8858d7a788983a
[]
no_license
Tahlor/genome_assembler
8857ad0969597942b5144bd8e11e619a2d3eab80
0fc9317bcc7e14b175b8be06e21d11e49de8bafe
refs/heads/master
2020-04-05T05:01:12.196870
2018-11-11T04:29:39
2018-11-11T04:29:39
156,577,323
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
run_old_method.py
#import contigs4 as contigs3 import contigs4 as contigs3 import os import main def open_file(path): with open(path, "r") as f: text = [x.strip() for x in f.readlines()] return text def run(path, depth=0, k=None): kmers = open_file(path) if k is None: k = len(kmers[0]) d = contigs3....
b6524a509b2adef93bb9dec97f8131a0387050e9
46cec912b51f4557d534fa0bda2d4cf944eb4a78
/plot/purchases.py
d5506c803d9d007ba358beb42f7e86913d2a3203
[ "MIT" ]
permissive
ludwigwittgenstein2/supermarket_elasticsearch
609d8c511d5410965621345c3d795d6354240426
5a70aa5005e77e1fa8b0abef1533a99d363468a7
refs/heads/master
2020-05-30T09:18:12.553916
2018-06-12T05:18:00
2018-06-12T05:18:00
83,603,372
2
1
null
2017-03-31T20:16:05
2017-03-01T21:26:26
JavaScript
UTF-8
Python
false
false
2,948
py
purchases.py
from django.shortcuts import render from graphos.sources.csv_file import CSVDataSource from django.http import HttpResponse from graphos.sources.simple import SimpleDataSource from graphos.renderers.morris import BarChart from graphos.renderers.morris import LineChart from graphos.renderers.morris import AreaChart from...
82db7473854391360c078a153eed3b0954b432e1
af480d64d34ade68314db134607cbead38c3abca
/Algorithmic Toolbox/week1/MaxPairwiseProduct/max_pair_product_FAST.py
df8cd107d40319eadc81a1de8065f98e8e9970f8
[]
no_license
sypai/DS-Algo
a860f8c41dbeab2a82d281515eec3ab39547bceb
5b927167463ffda140f3d236d9bbe08d1ff1fabf
refs/heads/master
2020-04-13T22:37:19.089212
2019-01-08T13:22:27
2019-01-08T13:22:27
163,483,811
1
0
null
null
null
null
UTF-8
Python
false
false
495
py
max_pair_product_FAST.py
# python3 # n = int(input()) # a = [int(x) for x in input().split()] def max_fast(a, n): max_index1 = -1 for i in range(0, n): if max_index1 is -1 or a[i] > a[max_index1]: max_index1 = i max_index2 = -1 for j in range(0, n): if j is not max_index1 and (max_index2 is -1 or...
c478c199f8decaf7bdbf07881b5cfead9bfb7d84
6717d8c4f13553b7a65b4f67dcee2f99e4380d0c
/CodeJam/2019/3/3/solution.py
b4f85289a98a04d5069392e20f0ebfb72fc89e8a
[]
no_license
martinbaros/competitive
5e5f49060973d967d1741c90b0a893b86b3747ca
c8d08ffe18abba0b992a25a3a31b55f9b416dd1f
refs/heads/main
2023-07-24T10:53:40.233640
2021-08-28T10:04:43
2021-08-28T10:04:43
305,113,982
0
0
null
null
null
null
UTF-8
Python
false
false
1,499
py
solution.py
def nsd(a,b): try: a = int(a) b = int(b) except ValueError: print("NIECO JE ZLE") return False else: if b == 0: return False else: while a>0: if a < b: a,b = b,a a -= b re...
4af783045568705fa42e872c8171464e086adf51
701a05ac7bca090bfb8f7c85f0ede040e0c4a2dd
/main.py
549061e3769a0c187e737d6e387941d4b4c685fa
[]
no_license
Mehdi0xC/PathFinding-Agent-with-Deep-Reinforcement-Learning
0bfb4f2bac86f2ce84b3824271212fa64ee19750
4b723d56d4f600399edbb1add071d539c975d5ee
refs/heads/master
2021-07-13T15:19:19.144777
2020-11-02T14:32:34
2020-11-02T14:32:34
215,769,866
26
4
null
null
null
null
UTF-8
Python
false
false
97
py
main.py
from environment import CarApp def main(): CarApp().run() if __name__ == '__main__': main()
6574aa45e5ae33753786ebc6935be06b9dbbb501
49fe43f9165738875a3db19895c891aafe720f31
/Python/mytext/alu.py
e8ed55c41f8d3b2a070105fa9b37c71816cff7b9
[]
no_license
wt032320/code
fe504d43c43e6d2b018dd0d80dd90b955baa9aaa
ed54e7f87c6b9801adc1b251b4040ba996f3b037
refs/heads/master
2023-07-17T19:08:52.939013
2021-09-06T13:12:58
2021-09-06T13:12:58
403,582,268
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
alu.py
'a calculator' a=int(input()) ch=input() b=int(input()) if b==0: print('divided by zero') else: d={'+':a+b,'-':a-b,'*':a*b,'/':a/b} n=d.get(ch) print("%.2f"%n)
03064bd72d46fc9a708277b08716df60c1c01d06
4843d0eb99499a6d68cc02e6791a9068a88c1c1f
/Gauss.py
efbc07d8d05d2d68f0017a9804fc5009903a6d2b
[]
no_license
IlyaSolomatin/BayesOpt
c1e908eaf0fefc1f9a87ae23bf8910760e28c583
dfd876297384d598e938ad2d975f8f1213d668a5
refs/heads/master
2021-01-17T16:07:07.131030
2017-10-12T15:33:46
2017-10-12T15:33:46
84,122,483
0
0
null
null
null
null
UTF-8
Python
false
false
1,598
py
Gauss.py
from __future__ import division import numpy as np import matplotlib.pyplot as plt def f(x): return x*(x-3)*(x-2)*(x-1)*(x+1)*(x+2)*(x+3) def k(x): return np.exp(-0.5*x**2) space = np.linspace(-3.1,3.1,num=100) F = [f(x) for x in space] known_points_x = [0.2,1.1,-1,-3.1,3.1,-2.03,2.244,-2.67,1.6,-0.32,2.67...
90a2e118c1bcb9a4c17aa7147d380c16970a66a3
f8bb0e53a82e949a1a209425a8ecdb7612d286e7
/guestbook1/admin.py
14eb16620992ab909bd3f59eb20d4a007d0518a6
[]
no_license
spmdl/Blog_Basic
c2c09633bdcad59b089831969bc04e431a905401
10f1aed57f89c561662944122a3c6b94d1875af8
refs/heads/master
2022-07-16T07:43:00.992016
2020-05-24T05:00:30
2020-05-24T05:00:30
256,909,176
1
0
null
2020-05-24T05:01:34
2020-04-19T03:54:38
HTML
UTF-8
Python
false
false
132
py
admin.py
from django.contrib import admin from guestbook1.models import Comment, Comment_reply admin.site.register([Comment, Comment_reply])
844e930150a32ff0a3b6af9b7cb3888356eec1c3
7d506e38a39e9a2b3e599bd633960d7665a36ffe
/SentimentAnalysis/Python3.3/Textalytics/config.py
cea585de0c842c86c1dee866df7238497107812c
[]
no_license
KevinVillela/StockPredictor
e8ef50366effae6215423c84343d119e0a44880f
fb59817e11deb404acb7186b40cbc90cd9b2ef0d
refs/heads/master
2020-12-24T14:53:43.591880
2014-03-16T23:46:18
2014-03-16T23:46:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
config.py
# # Textalytics media analysis API 1.0 # Python Configuration file # PROTOCOL = "https" HOST = "textalytics.com" SERVICE_ENDPOINT = "/api/media/1.0/analyze"
56212d7a9bed96fab05a2813c17d8ad004bf8ba3
ad9db0f25198998655105c908e19f4e2596b0c09
/sorting_algos/merge_sort.py
6f15b4c8d9db72cac32d4d6741dc6c1367495ee4
[]
no_license
smsrikanthreddy/InterviewBit
3512b64ad7be1c24ba50f2b5e267ba829ba2c284
c68519b778f31f91fef7b1a4984aa35dbcce3832
refs/heads/master
2021-05-09T11:41:37.957192
2020-12-08T23:25:18
2020-12-08T23:25:18
118,995,944
1
0
null
null
null
null
UTF-8
Python
false
false
715
py
merge_sort.py
def merge(L, R, A): nL = len(L) nR = len(R) k, j, i = 0,0,0 while i<nL and j <nR : if L[i] <= R[j]: A[k] = L[i] i += 1 else: A[k] = R[j] j += 1 k += 1 while i<nL: A[k] = L[i] i += 1 k += 1 while j<nR...
8b3fdd1a7a6f158c19788f42f691e49c4bf7f38a
201d719c508656c429e9dec811f3048aae257fb3
/pepperpots/kagglescoring/submission.py
7d9f8efda73250b7092b13badb1d4a16f7f2f1ca
[]
no_license
patjenk/march-machine-learning-mania
3bfb81ccb61a0a812acb54c1a503bfe5bcb11265
96a9b93284bdd8afb807cb90f0141e6efc2127e9
refs/heads/master
2021-01-10T05:24:20.568787
2016-03-04T21:21:55
2016-03-04T21:21:55
53,093,561
0
0
null
null
null
null
UTF-8
Python
false
false
3,461
py
submission.py
# A method for scoring entries in the Kaggle March Machine Learning # Mania competition # # https://www.kaggle.com/c/march-machine-learning-mania-2015/details/evaluation from csv import DictReader from scipy import log, maximum, minimum, subtract class MarchMachineLearningManiaSubmission(): """ Encapsulates a...
68ea05d079f327eb3a53a9c59bcc6d3e2783a2c5
5686bdd6c6006bb883aa9cab0dd5746c9d604218
/trains/views.py
88b9778e3315f2524dd099ea2c16135a44693b8c
[]
no_license
tolikumc/search_route_for_travel
d5e4cf9a8455c310b46432bf93ebf03d45fd9cee
4538880c59ad47ef20a330d4860653d59598d2dd
refs/heads/master
2020-04-28T05:16:07.981792
2019-03-11T14:07:34
2019-03-11T14:07:34
175,013,297
0
0
null
null
null
null
UTF-8
Python
false
false
2,329
py
views.py
from django.shortcuts import render from django.core.paginator import Paginator from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.urls import reverse_lazy from django.contrib.messages.views import SuccessMessageMixin from .models impo...
8855005195ec5bee040739826d4b6c2e2cc02158
0c4220ea2f44d856cdf846cd55eb466f456bbfcb
/p.py
3efcdd87d4b5591b73b25341b281a1464a49fce2
[]
no_license
rpask00/Data-structures
9d73ac7ca15d1fa482b5ad195a15f125a846c629
3a827db1b3d30abec0733acb4bf57c2042c9972d
refs/heads/master
2022-11-11T10:35:45.352034
2020-07-03T15:29:21
2020-07-03T15:29:21
276,930,607
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
p.py
class Node: class Edge: def __init__(self, from_, to_, weight): self.from_ = from_ self.to_ = to_ self.weight = weight def __init__(self, label): self.label = label self.edges = [] def addEdge(self, to_, weight): self.edges.append(self.Ed...
f3f82cff4b9a9731ed1121a1bb35cb9c399416d0
2f38a66244b6f78cf67f7abfcc3cb0c462475d2d
/perceplearn3.py
86581b6bad77c9e68ee9076914973911f5a33841
[]
no_license
paribadre/Binary-Classifier-for-hotel-reviews
dfde2e8f92648548cac2fbf2743a51d90c1157d6
1ae0899c3c8f57f456e204760b99a06c5577a13f
refs/heads/master
2022-07-03T03:22:59.607281
2020-05-14T02:49:09
2020-05-14T02:49:09
263,795,362
0
0
null
null
null
null
UTF-8
Python
false
false
3,639
py
perceplearn3.py
import glob import re import os from collections import Counter import collections import sys from random import shuffle all_files = glob.glob(os.path.join("op_spam_training_data", '*/*/*/*.txt')) # all_files = glob.glob(os.path.join(sys.argv[1] , '*/*/*/*.txt')) Vocabulary = Counter() Vocab = Counter() FeatureCount ...
424e336bdd2d3eb038daad95eee3bfa28104f53e
b83ed0897f9c205e3fdf841a29a03101e99db55d
/hello.py
3daf5ef80d750a50533ac30a8f7c22aa5838e18d
[]
no_license
lynch456/Python-review
80ba27bdb35b31945ab42bca68090d95bbf09c9d
9e96a375907a0f996b5cf87818c4eb6fead2b393
refs/heads/main
2023-08-22T02:27:48.466765
2021-09-24T15:37:08
2021-09-24T15:37:08
400,703,789
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
hello.py
print('\\ /\\') print(' ) ( \')') print('( / )') print(' \\(__)|') A, B = 1, 2 print(A+B) print(1+2)
e1ce356aa7e87942ec417f1d4e8b4dfa5cabced1
95b48dabef70ae397617918d7e2523922dadbe21
/modulo1/2-pre-processamento/1-leitura-e-visualizacao-de-imagem.py
25d2f342eb5aff91f1ba7fc398f45153035ef869
[ "MIT" ]
permissive
adrianosantospb/unifacisa-visao-computacional
e4c783ad0f14b6598e58b3612093f366a52209d2
1c89b2d3e220b7218a6d6b2ddc491d2c3158891c
refs/heads/master
2023-02-26T20:03:37.587788
2020-09-19T16:51:50
2020-09-19T16:51:50
292,999,993
0
1
MIT
2021-02-06T00:49:40
2020-09-05T04:11:35
Jupyter Notebook
UTF-8
Python
false
false
538
py
1-leitura-e-visualizacao-de-imagem.py
# **************************************************************** # AULA: Visão Computacional # Prof: Adriano A. Santos, DSc. # **************************************************************** # Importando a biblioteca OpenCV import cv2 # Imagem aquivo = "./imagens/raposa.jpg" # Carregando a imagem image = cv2.imre...
a425355f2340bab9a0d161b77544b4cf3894409a
89127ffe7390b949d11be911cf382be3cb3be464
/utils/checkpoint.py
c856e92e8bc2b29dafc6e2af6e69a2778a06e132
[ "MIT" ]
permissive
AdityaSidharta/pytorch_base
c0f28d9efab4bcb51fb01b8e2b9560cc7f8e9160
b025e4826d94eb32380d59e7fd35bf400c2271b6
refs/heads/master
2022-12-10T22:17:56.029837
2019-01-16T08:25:18
2019-01-16T08:25:18
154,950,913
1
0
MIT
2022-12-08T01:34:44
2018-10-27T10:15:59
Python
UTF-8
Python
false
false
1,377
py
checkpoint.py
import datetime import os import torch from utils.envs import model_cp_path from callbacks.callback import CallBacks def save_checkpoint(model, optimizer, fname=None): if fname is None: fname = str(datetime.datetime.now()) model_filename = "{}_model.pth".format(fname) optim_filename = "{}_optim....
37f40900324c29121b6bd985f2665d066a158210
13a0e51148ab32acd9fcb0866f60e17dff47645a
/Homework3/Exercise9.py
6aba94fb274fc26d0bb4c849d9bf7ccb0dd2c86e
[]
no_license
EOppenrieder/HW070172
7a47da36298d168a037aefc20cc535bbf6d4e8af
34467a835ad827d9ae18dcc70b07513f018274a1
refs/heads/main
2023-01-20T06:05:07.315379
2020-11-24T09:34:42
2020-11-24T09:34:42
305,625,713
0
0
null
null
null
null
UTF-8
Python
false
false
265
py
Exercise9.py
def main(): print("This program converts Fahrenheit temperatures to Celsius.") fahrenheit = eval(input("Enter the temperature in Fahrenheit: ")) celsius = (fahrenheit - 32) * (5 / 9) print("The temperature is",celsius,"degrees Celsius.") main ()
4a0c3d47508591ffe6e0ecb50341097be6da8c88
b94a4bd15bb50ccb12fecf76c5fbda5f56fa7a7f
/chimera/requests.py
3b9a9732073b703707fec0e3f5dd20df3bbd05a1
[]
no_license
yinkeet/chimera
5b932c02b6dd2b33a7002fba19eeccdd2b246b5c
53575813c6a2eb7aa8e4e1eb41fae826b8ced9fc
refs/heads/master
2022-12-18T12:54:09.962971
2021-04-19T08:53:24
2021-04-19T08:53:24
186,232,074
0
0
null
2022-12-08T06:59:25
2019-05-12T08:53:39
Python
UTF-8
Python
false
false
231
py
requests.py
from asyncio import get_event_loop from functools import partial import requests async def request(method, url, **kwargs): return await get_event_loop().run_in_executor(None, partial(requests.request, method, url, **kwargs))
611e8cf105876e31284b27ce7a7e85b2d14c1b64
0ffd2dae43716fd57e63a6071f678b7cdc1cbd37
/wh/09/2839.py
4ccb086d2ca3129b8cddb7047bfa7c4e11b004fa
[]
no_license
wonnerky/codemaster
c849caad39a58a6c3339b1c5a733c69ba1149163
aac45943e966f74c2b70e00b9e32004a1c6f4d39
refs/heads/master
2021-05-24T12:05:03.626980
2020-05-13T01:43:43
2020-05-13T01:43:43
253,551,355
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
2839.py
import sys def findBag(kilo): a = int(kilo / 5) for i in range(a+1): b = (kilo - ((5 * (a - i)))) / 3 if (b - int(b)) == 0: return print(int(a-i+b)) return print(-1) kilo = int(sys.stdin.readline().strip()) if kilo == 0: print(-1) else: findBag(kilo)
8b8fff13a4e4944b983e6b3a0c49cc80c457cd41
45eb9397397e7d3b512241029371ac02ffef003b
/app/api/v1/views/meetupviews.py
8154951af5866a99c4c603bd2c6392d145867a9f
[]
no_license
da-tinker/questioner
1aaa0e2047f6f5d41a0b2f4cfa872f13c7cb9c4f
0a82c0a852afe457c19803f16bf5af141d8de641
refs/heads/develop
2020-04-15T04:04:30.614346
2019-01-29T17:41:28
2019-01-29T17:41:28
164,370,390
0
1
null
2019-01-29T17:41:29
2019-01-07T02:56:34
Python
UTF-8
Python
false
false
3,982
py
meetupviews.py
# Define blueprint for meetup view from flask import Blueprint, request, jsonify, make_response from app.api.v1.models import Meetup from app.api.v1.utils import QuestionerStorage, validate_request_data, validate_route_param, check_is_empty, parse_request, endpoint_error_response db = QuestionerStorage() meetup_view...
f94f884ae27d3ed75f4d10e846d2b7d48fa3ebc8
169f134442ce7f040e8a1878258c90ef9f0cbcc1
/skivvy.py
0ff0ad391b9f1781aa56ece1702caab15635ef0e
[]
no_license
Kazade/skivvy
9d41b0acc934e6059d60b386cc54a0638b14f7cc
41278fa66b559ee507862c729ad89028ccd5ae52
refs/heads/master
2016-09-11T04:41:31.998555
2014-12-05T16:36:10
2014-12-05T16:36:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,832
py
skivvy.py
import os import sys import argparse import json import re import tempfile import subprocess ENV_REGEX = r"(.+)\[(.+)\]" parser = argparse.ArgumentParser(description="underling task worker") parser.add_argument("--config", type=unicode, default="underling.json") parser.add_argument("--env", type=unicode, default="") ...
1af41cb711bf06f93e206a466d5f83b3dcddf18b
98f93aea3af1ce9a8143085a30ffcbedd5e9ac29
/src/lib/backuppool.py
9c4bf6121868fef0cbf082be4d2ca7f47998756e
[]
no_license
austinjhunt/vanderbiltcs6381-assignment3-PUBSUBQoS
27a50c0e5f5a5db3690a6854b98cd5a570bb62d8
f0cc459886dd5f0a1b3707ab7c87edd4cba25539
refs/heads/master
2023-06-22T18:09:12.598721
2021-07-27T01:14:18
2021-07-27T01:14:18
384,595,629
0
0
null
null
null
null
UTF-8
Python
false
false
4,384
py
backuppool.py
""" Create this first. Backup pool of dormant brokers that automatically promote themselves to leaders of new zones when load threshold (--load_threshold) is exceeded by current system load read from a Zookeeper Znode (shared by all brokers for current load status updates via watch mechanism). Backup pool brokers are n...
fc844b5ec245b829612814b9536786a0f94c34f8
8b4506c8a4d334364f547047d86c1f28f81d267a
/test_browsers/test_browsers.py
e45742388146a0a8abe35059077b3aee3e282256
[]
no_license
maslovaleksandr/selenium_tests
dcbb42566c2f2ce089f93c98ca11d92c113face3
70f9c02f876110f1c2d738512282ff38c9ecd3c1
refs/heads/master
2023-04-25T16:24:55.132627
2020-08-03T20:48:39
2020-08-03T20:48:39
282,196,710
0
0
null
2021-06-02T02:44:36
2020-07-24T10:59:38
Python
UTF-8
Python
false
false
618
py
test_browsers.py
from selenium import webdriver from selenium.webdriver import FirefoxOptions, ChromeOptions def test_browser(browser_check, url_check): if browser_check == "chrome": options = ChromeOptions() options.add_argument("--kiosk") wd = webdriver.Chrome(chrome_options=options) wd.get(url_c...
9c5f771ea8e411e9b84be199d0c0627139dff417
69fb04f43580488c6872912616f5ee6308ac9e5a
/exerciciosLista/exercicio01lista.py
65392dc63d83897883a54d6931f09c4c605c6528
[]
no_license
LucasQuinotto/PasswordMeter
018650bbb7986043aeb944084aeace9a3680f6f9
972b65f79ab8d15be36a18a495b8d5a0c2bb61dc
refs/heads/main
2023-04-03T22:13:15.262084
2021-04-14T19:59:05
2021-04-14T19:59:05
358,023,685
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
exercicio01lista.py
x = ["Maria", 2, 47, "João"] x.append(input("Digite algo: ")) print(x)
4dc43cb65e179d95e8cd363b2d760f4e3fc3a7ab
1632eb6617eff93d5583b1eca805a741d5555992
/class5/Function.py
fed2341527f60996073f812114714edf725e1a22
[]
no_license
shukumar-542/Django_assignment
80ba40d14746d75b51c4623ecefad8aa5ad78703
2383bdd9993d57e6d507c89e6764bfe517e5c34a
refs/heads/master
2023-07-01T00:16:05.882170
2021-08-05T08:24:22
2021-08-05T08:24:22
380,259,935
1
0
null
null
null
null
UTF-8
Python
false
false
170
py
Function.py
# def add(*args ,**kwargs): # return kwargs # print(add (a=10 , b= 20)) def getsome(a): return a def setsome(a): b = getsome(a) print(b) setsome(10)
9650824a7fe148805e924ee58004a461660fa49d
a35f3d4efcef0876248cc764a142d4b9b8aa2712
/venv/Lib/site-packages/elem/exploit/exploit_source.py
80b0c4326c81df582c505d86ef7702f8cb428318
[]
no_license
arturgafizov/app_recruiment
877d1c90eebdcde5b481fdf2c7455047f6d75249
3d6d9faa04f6daec042dcb079cf3fe1eecdd221a
refs/heads/master
2023-01-28T04:45:39.542413
2020-12-05T10:46:52
2020-12-05T10:46:52
284,469,199
0
0
null
null
null
null
UTF-8
Python
false
false
1,604
py
exploit_source.py
import base64 import re import urlparse import os from redteamcore import Resource from redteamcore import ResourceConnectorFactory CVE_STRING = r'CVE-\d{4}-\d{1,}' CVE_PATTERN = re.compile(CVE_STRING) class ExploitSource(Resource): """ ExploitSource is the source of an exploit or exploits. """ def __...
896b4fdddec04cc58c02f3742f8a0742a60a17ce
bfcc6d98b488eaf0440b68da8f2dfbd71059fe14
/djangosige/apps/estoque/migrations/0001_initial.py
3cadae483197ddd67035ab6ce56e4e7d95473478
[ "MIT" ]
permissive
lafitehhq/DjangoSIGE
27547dbe94328def38e52dea314ed7ec4b4b4cd2
b88d36d04871a28a7adea8edecf7173d3e0ae759
refs/heads/master
2022-12-13T03:23:06.620533
2018-07-16T08:29:17
2018-07-16T08:29:24
141,106,764
13
5
MIT
2022-12-08T02:16:46
2018-07-16T08:05:26
Python
UTF-8
Python
false
false
6,909
py
0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-06-25 17:50 from __future__ import unicode_literals from decimal import Decimal import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependen...
8d086e01e0a6f13468a5abf16fd76f5d84332ca9
7bfb0fff9d833e53573c90f6ec58c215b4982d14
/1721_swap_nodes.py
82e83d8614a7da80e94bc1518260128da49e6f11
[ "MIT" ]
permissive
claytonjwong/leetcode-py
6619aa969649597a240e84bdb548718e754daa42
16bbf8ac0ba5c80fe3ef67ade0d61a12991270a7
refs/heads/master
2023-07-14T23:40:26.569825
2021-08-22T17:23:20
2021-08-22T17:23:20
279,882,918
1
0
null
null
null
null
UTF-8
Python
false
false
579
py
1721_swap_nodes.py
# # 1721. Swapping Nodes in a Linked List # # Q: https://leetcode.com/problems/swapping-nodes-in-a-linked-list/ # A: https://leetcode.com/problems/swapping-nodes-in-a-linked-list/discuss/1009772/Kt-Js-Py3-Cpp-Swap-based-upon-length-N # class Solution: def swapNodes(self, head: ListNode, K: int) -> ListNode: ...
a15ebd0afc52d22080ce9d615834eb310b3c72a9
5b3d8b5c612c802fd846de63f86b57652d33f672
/Python/six_kyu/your_order.py
812f5965a34c61599e5ad23e2e62f669bea5b160
[ "Apache-2.0" ]
permissive
Brokenshire/codewars-projects
1e591b57ed910a567f6c0423beb194fa7f8f693e
db9cd09618b8a7085b0d53ad76f73f9e249b9396
refs/heads/master
2021-07-22T18:50:25.847592
2021-01-25T23:27:17
2021-01-25T23:27:17
228,114,677
1
0
null
null
null
null
UTF-8
Python
false
false
1,188
py
your_order.py
# Python solution for 'Your order, please' codewars question. # Level: 6 kyu # Tags: Fundamentals, Numbers, and Arrays # Author: Jack Brokenshire # Date: 11/02/2020 import unittest def your_order(sentence): """ Your task is to sort a given string. Each word in the string will contain a single number. Thi...
e73562e18328b6df7fdfcccdf31958062b5d71c0
13f549b59e333bf2cee9fbcefd025292be7499fb
/camp_health.py
c64dc46e7dcd2e733baa1621580038549b8233bd
[]
no_license
BlackLik/DinoPygame
da3bf487092ead35ffd39a70458b3c181db85309
9e66b53738094045cd54e13e927100c10003a2c3
refs/heads/master
2022-12-09T17:17:59.605080
2020-09-19T11:15:47
2020-09-19T11:15:47
285,225,231
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
camp_health.py
# файл camp_health.py from health import HP # создание массива def arr_create_health(display): arr_set = [ HP(display, "Effects/heart.png") ] array_hp = [] for i in range(len(arr_set) * 1): array_hp.append(arr_set[i]) return array_hp # прорисовка всех сердечек def array_draw_heal...
1c17e32b4e33ba039567e1292c760b9e56eec97e
3ab1226c4d590b24279845cc3ca02ee60db50bef
/app1/models.py
dfaa6d17d1a9cfed4df7b8cccfa938b3672de4ce
[]
no_license
LohitakshTrehan/django-crud-app
2b16a085ed65aa140218fffddfe2c0735995d5c9
b4931967feb6d0c63267340fb7ca60c030a17201
refs/heads/master
2020-03-20T04:35:42.364729
2018-06-14T15:47:58
2018-06-14T15:47:58
137,188,394
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
models.py
from django.db import models from django.forms import ModelForm # Create your models here. class Artist(models.Model): name = models.CharField(max_length=50,default=None) year_formed=models.PositiveIntegerField() #django will automaticlly show space where there is a '_' class Album(models.Model): name=mod...
c0397eb62be4921e9a1f6e6cc2f866f32ab88e6f
e6b644efe2bfe21e311626dbb89a724a5bee1e9a
/NeuralNet/TempDataGen v2.0.0.py
75fe66ae0cfc94b99dcbe82327ec87651515171f
[ "MIT" ]
permissive
mynameisevan3/ECE2195_DCA_Project
5ffa03d20f7908c0df873f85bccb800304b03d47
7bdc646459dabfa5ba508258b10f8b5f6fbba638
refs/heads/master
2021-08-29T08:01:01.456539
2017-12-13T13:37:02
2017-12-13T13:37:02
111,249,166
0
1
null
2017-11-19T03:55:40
2017-11-18T23:49:15
Python
UTF-8
Python
false
false
4,151
py
TempDataGen v2.0.0.py
#===================================# # Temperature Sensor Data Generator # # ECE2195 Project - Team Two # # v2.0.0 # #===================================# # Imports import math; import random; # Variable Initialization SENSOR_TMIN = -50 # trained sensor minimum temp...
bf8f258ec8692dd486b9c6fddb717209deb90b67
b062089ddcdcf77d39bf261a67f7a845def18dbc
/030_function_I.py
7c79fe60b16022dd3c2ed06fb802229c61b226e4
[]
no_license
gitmaruneko/pythonPractice
0c3720528b9268ca1b0232bb848876325471ebd2
9d36a01ec1ef430ab5968a3bf5721cfb33f67562
refs/heads/master
2021-05-24T03:04:53.401492
2020-06-27T22:43:22
2020-06-27T22:43:22
82,932,202
1
1
null
null
null
null
UTF-8
Python
false
false
593
py
030_function_I.py
def inc(x, delta=1): return x+delta def print_n_add(a, b): print('a :', a) print('b :', b) print('a+b:', a+b) print() return a+b if __name__ == '__main__': # default argument values print(inc(0)) print(inc(0, 2)) print() # keyword arguments print_n_add(1, 2) ...
206b3eec63225c9a2fff56d738a8464a832c8412
7beb0ba35e1009a57e6496c8d0d73f683322a666
/app/rating.py
0886b9057f3c18161273280c8bb456188f2970b2
[]
no_license
Holajz/Image-comparison-app
08ea5b3952c6c602c80b770b8b962f19c0ca0fe9
8a47a791993c5785a7f1f54711e41d63a5242886
refs/heads/master
2022-06-14T05:06:07.408117
2018-08-23T08:02:08
2018-08-23T08:02:08
144,029,896
0
0
null
null
null
null
UTF-8
Python
false
false
5,691
py
rating.py
import os import re import flask from flask import (Blueprint, current_app, flash, g, redirect, render_template, request, session, url_for) from flask.cli import with_appcontext from werkzeug.exceptions import abort from app.auth import login_required from app.db import get_db bp = Blueprint('rati...
46c2066723fb74b5032bc771ee62750b29a458b1
cac234b8af280702a6d01c2a1307fb25ff3a9580
/3.数学问题/2018.0224.math/31.距离小于100.py
2d8b07023ecb6cfb8c3a33400f62396f4a39f4eb
[]
no_license
Benedict0819/ECNU-computer-test
1c3f6e8bb2517b06d965335a25dd80313bf80a58
1bb4cad01c52267a77416415296587ab8408243f
refs/heads/master
2020-03-29T12:00:10.648616
2018-03-09T10:10:25
2018-03-09T10:10:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
654
py
31.距离小于100.py
""" @Time:2018/2/24 15:27 @Author:xuzhongyou """ # 31. 距离小于 100! # 定义函数 NearPoints,计算一组三维坐标点中离原点距离小于 100 的点个数。点的类型定义为: # # typedef struct { # int x, y, z; # } Point; # Input # 第一行一个整数 n (1≤n≤1000)。 # # 接下来 n 行每行三个整数 xi,yi,zi (−109≤xi,yi,zi≤109)。点坐标可能重复出现。 # # Examples # input # 4 # 1 2 3 # 50 50 50 # 100 0 0 # 100...
be9fc8aa783285b09ec3f9fe42761c37afa7fe05
cc086a96967761f520c24ce3b22bacecb673cbf2
/chec_operator/threads/server.py
d9f2205629913fd8eb218d82628b89983bc0266a
[]
no_license
watsonjj/chec_operator
39524405b3c6a55fe7fa3e8353da5f456f76a27d
c537a1737a53fe996652c793c09f5a33cd03e208
refs/heads/master
2020-04-18T02:27:52.730614
2019-01-23T10:41:13
2019-01-23T10:41:13
167,163,531
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
server.py
from chec_operator.camera_server.communicator import Communicator, DummyCommunicator from chec_operator.peripherals.pulse_generator import PulseGeneratorCommunicator from chec_operator.camera_server.handler import ServerHandler from time import sleep SERVER_HANDLER = None def poll_state(dummy, lock): global SERV...
790ab8bd119efdff2d88684668928532c92ef8a9
6ba2db3fb9088a06e077f6529281a57db30d9a2b
/U1_E5.py
a2d3ab5123386a631f83def116a1f0406fac4df3
[]
no_license
gxgarciat/Playground-CSwithPy
425a0c801371aaee40b9d2322187b11116163262
2559b301f72b3b9f92beb0dff46c971a96dd039c
refs/heads/main
2023-06-13T21:33:40.293867
2021-07-11T19:10:40
2021-07-11T19:10:40
377,595,234
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
U1_E5.py
def main(): """ Assume s is a string of lower case characters. Write a program that prints the longest substring of s in which the letters occur in alphabetical order. For example, if s = 'azcbobobegghakl', then your program should print Longest substring in alphabetical order is: beggh In the ...
8a1c44d70a7cfd83deeedc98eff9c36f263d9734
5a33bbd665eb1361892356860cc0f306adf9890f
/MachineLearning-master/AccuracyFinder/compare.py
5c0499679e9380c0fdbb22c700ef8424d422ceb1
[]
no_license
dhs29/Machine_Learning_Scratch_Algorithms
a173944dbdc6905d9554c5d1bcb8b8f63b9b2feb
f0ae8b83940b3031adba039d160578d4df3da5c7
refs/heads/master
2022-09-25T18:12:17.349942
2020-06-02T23:13:25
2020-06-02T23:13:25
237,319,135
2
0
null
null
null
null
UTF-8
Python
false
false
1,440
py
compare.py
import sys ############################## #### reading label file ###### ############################## datafile = sys.argv[1] f = open(datafile) label = {} n0 = [0, 0] l = f.readline() while (l != ''): a = l.split() label[int(a[1])] = int(a[0]) l = f.readline() n0[int(a[0])] += 1 # l2 = [] # for j ...
256af3c0bb9d38eb3fc2f1a05155cc864d13ae0d
2d211388c0eef6205665e25075e77ef3b2916b90
/fitting_and_sensitivity/fit_FCepsilonRI_to_Grb_main.py
b342a0c190fc8b8932c5a19fbb6ff70865c38c55
[]
no_license
alysclark/pmr-571-modNK
40edfeb602cdf59a08049f352ddea1fc0559215f
b6c5563ee6fd5fd24b6d795b7bedf8e36178e86b
refs/heads/develop
2023-03-02T19:55:01.587960
2019-05-05T22:27:32
2019-05-05T22:27:32
283,340,494
0
2
null
2021-02-15T14:28:57
2020-07-28T22:21:33
Python
UTF-8
Python
false
false
13,033
py
fit_FCepsilonRI_to_Grb_main.py
from collections import OrderedDict import numpy as np import OpenCOR as oc from SALib.sample import saltelli import math from matplotlib import pyplot as plt from scipy.optimize import curve_fit, minimize,least_squares class Simulation(object): def __init__(self,*args): self.args = dict(args) se...
05af00cdda2c856f92af09d9371d81784c7c06f5
a5fe9ee1b548a3a3db2944febe100afd3837ffb5
/passwordhack.py
2639ae62ce252f50d17916197688046b8d7a3ba5
[]
no_license
AnnaKurb/Anya
3fa2cec009e51b3489cd9192ffc58f2126edbe70
6407f29fda89e22e3ed1432e9de422243ca170ff
refs/heads/main
2023-04-23T08:12:29.905039
2021-05-22T10:10:45
2021-05-22T10:10:45
323,917,135
1
0
null
null
null
null
UTF-8
Python
false
false
878
py
passwordhack.py
data_base = { "Anya": "1234567890", "sosiska": "qwerty" } def check_password(login, password): if login in data_base: if data_base[login] == password: return True return False # # else: # return"неверный пароль" # else: # r...
f0aca6b950992c325d5ff4a71f787b2f0412b6af
eb1148f75215739a7ca5ba35027fe46b9dcc5e30
/Study/BOJ_2023_신기한소수_이정민.py
63e74c4a4008e3741a39b648aba17ad16579ce32
[]
no_license
ljm9748/Algorithm_ProblemSolving
8ee594c0d1226ebe3670e772a7fc1c08ddf62e43
d1ebc34019ae2d795417ef47f74f1407a7f3cb9e
refs/heads/master
2023-05-02T20:00:01.784017
2021-04-26T13:57:29
2021-04-26T13:57:29
339,901,096
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
BOJ_2023_신기한소수_이정민.py
import sys input = sys.stdin.readline # 처음에는 소수리스트를 만들어 시도하였으나 시간초과나 나서 재시도 N=int(input()) # 소수인지 판별 def isSosu(num): if num==0 or num==1: return False else: for i in range(2,int(num**0.5)+1): if num%i==0: return False return True # 한자릿수씩 붙여나가며 소수추가 def DFS...
ff6f2446b65bc28c4d17fa7a0447a5fb781c5494
31e2da2206b7ad76795bfb045b7440be53034d75
/scorched/tests/test_strings.py
adcaf8ce469a310fe4c774a1f669c3df0dba1e06
[ "MIT" ]
permissive
lugensa/scorched
5cbcfcf3fefdd7ec3a261d60145491d0cca61b80
a1ca2970085c01bcde2177cee6e67b9dc40b86c6
refs/heads/master
2022-05-24T09:52:12.943022
2022-03-21T10:36:56
2022-03-21T10:36:56
17,622,819
25
22
MIT
2021-06-28T14:36:13
2014-03-11T08:09:34
Python
UTF-8
Python
false
false
1,418
py
test_strings.py
import unittest from scorched.search import LuceneQuery from scorched.strings import RawString, WildcardString class TestStrings(unittest.TestCase): def test_string_escape(self): """Ensure that string characters are escaped correctly for Solr queries.""" test_str = '+-&|!(){}[]^"~*?: \t\v\\/' ...
844453003551a4f3556747492a938a65a468421a
3b16eae63a1ced0ba96cd92e1df52fc37c7cd570
/src/gistsgetter/app.py
55454283c60ef0107317118c446ed4395d8f58a5
[ "MIT" ]
permissive
pmfrank/gistsgetter
0a9d6ac16db71080c7880f906e796e80a305ff2f
a19f59604ebf1cb13c641d25c4461b4347bba58a
refs/heads/master
2020-12-20T22:59:32.374442
2020-01-29T01:20:12
2020-01-29T01:20:12
236,120,920
0
0
null
null
null
null
UTF-8
Python
false
false
4,464
py
app.py
""" An application dedicated to creating, editing, and deleting Gists in GitHub """ from __future__ import absolute_import import toga import pyperclip from toga.style import Pack from toga.style.pack import COLUMN, ROW from .common.Search import search from functools import partial class GistsGetter(toga.App): d...
16a4bb29280de4e3caaea2d2b01fe707fccb1d19
d651c1a970fd373cc15e64b1e037f7f6f667826c
/oct/cli/util/click.py
a25a6e66e0498e1de7de901f666f2c25d3b1f59e
[ "Apache-2.0" ]
permissive
openshift/origin-ci-tool
f84cb8e4808b462cf0f49e1f434706cf252ab9e1
79bdeef38ee3e9dab89551fa8741ee97271649c5
refs/heads/master
2023-08-26T03:23:52.441958
2022-01-30T01:50:29
2022-01-30T01:50:29
65,563,246
23
52
Apache-2.0
2022-01-30T01:50:30
2016-08-12T15:24:53
Python
UTF-8
Python
false
false
308
py
click.py
# coding=utf-8 from __future__ import absolute_import, division, print_function from click import echo def quiet_echo(quiet, msg): """ Optionally output a message via click.echo :param quiet: suppress output if True :param msg: string to output """ if not quiet: echo(msg)