blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4c3fd20fe91df1a726de4f0de6047ffbf3b2668 | 9420a853d13ab74df55400c1b8896881bdaf22da | /pachong4.py | b03249d5c9b4d5d3a8510dbd6c60a80a67c8c586 | [] | no_license | cqcmdwym/learn_python | d7858f53f4f49a3b0a87e5111fbd41cd3b7d35d7 | d5cd4cb481ec5e98bfedc5264d4156ab50d40ab1 | refs/heads/master | 2020-04-14T04:56:32.991714 | 2019-01-01T06:03:14 | 2019-01-01T06:03:14 | 163,649,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import requests
url = 'http://httpbin.org/get'
data = {'key':'value','abc':'xyz'}
# get是使用get方式请求url,字典型不用进行额外处理
response = requests.get(url,data)
print(response.text)
url = 'http://httpbin.org/post'
response = requests.post(url,data)
#返回json格式
print(response.json()) | [
"chenqi@chenqideMacBook-Pro.local"
] | chenqi@chenqideMacBook-Pro.local |
699fa8f775535c777a6233018731e0119e9f7461 | 81f0c8c0771d72f17606de18f00c445012754142 | /hackerearth/call_process.py | 803b7b406bab66358dd9deadb0dabc6e7d1cf9ab | [] | no_license | amarish-kumar/Practice | be739bed2db45d2ebea33d43d52c76bdc50fe0b6 | e70566c0d81a89c1f7db7d1cb18a308ac9c5d4e1 | refs/heads/master | 2020-03-21T10:25:18.097619 | 2017-10-15T17:14:39 | 2017-10-15T17:14:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | ''' Question taken from hackerearth
https://www.hackerearth.com/practice/data-structures/arrays/1-d/practice-problems/algorithm/monk-and-power-of-time/
'''
timeToCompute = 0
def rotate_list(rotations):
# rotate the list, 'rotations' number of times.
i =1
while i <= rotations:
# increment the time to compute.
... | [
"pratikadarsh24@gmail.com"
] | pratikadarsh24@gmail.com |
224561cf0f9316564e09902f74fcf58e0baa2dbe | dd8b6c34babf6484067ba05742d6970e9cf90af0 | /modules/message.py | fd7603be2251af9f8e732e895d1a0c8acb193e32 | [] | no_license | kumikoda110/AOps | f4c87935fcca8583b4adb2daec19a8c279460991 | 6bb27aede5affd8c2f5e2a2f3160b87b80ff136b | refs/heads/master | 2021-01-17T18:11:03.112257 | 2016-10-18T01:31:42 | 2016-10-18T01:31:42 | 71,205,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,563 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
# coding:utf8
# set windows charset
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import conf
import requests
import db
class Message(object):
"""docstring for Message"""
def __init__(self, url=conf.message_info['url'],
user=conf.message_... | [
"yanjun914@aliyun.com"
] | yanjun914@aliyun.com |
2615f69827d1777bd77742afd5da86bf82b0f1d3 | 8f9d4f6552672f4be14926c4190dacfc8c21a7fa | /scripts/jasist/similarity_measures.py | 40bf90379b82c6df1e63ef3258056bf9cc6439ce | [
"MIT"
] | permissive | petershan1119/semantic-progressiveness | 276dbd909cfb73aed1513228f4cbde6d627dff11 | 824079b388d0eebc92b2197805b27ed320353f8f | refs/heads/master | 2022-11-26T00:23:13.421855 | 2020-08-02T23:24:21 | 2020-08-02T23:24:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | import numpy as np
def cosine_sim (v1: np.ndarray, v2: np.ndarray) -> float:
""" Cosine similarity between two vectors."""
return (np.dot (v1, v2)/(np.linalg.norm (v1, 2) * np.linalg.norm (v2, 2)))
def cosine_dist (v1: np.ndarray, v2:np.ndarray) -> float:
""" Cosine distance between two vectors."""
return 1 - cos... | [
"sandeepsoni@gatech.com"
] | sandeepsoni@gatech.com |
fb9730470fbf887944b12c86c85a3e7df785334a | b49b5f6cf78aa55aadf27b01a1bc2d8153d54767 | /samples/factory/py_version/include/__init__.py | 9bb531ed7bf4a6b67a2dc590a675b74ab83c0702 | [] | no_license | eligantRU/ood | 0d17aa585160b4c443867786b6c9da86f562e1b4 | 7d3871eeb58ae7cb4d88f48580bf2a5a47654aba | refs/heads/master | 2020-03-28T04:19:40.303035 | 2019-11-19T22:24:09 | 2019-11-19T22:24:09 | 147,707,815 | 0 | 0 | null | 2018-09-06T17:15:44 | 2018-09-06T17:15:44 | null | UTF-8 | Python | false | false | 81 | py | from typing import Tuple
from include.Color import Color
Vec2 = Tuple[int, int]
| [
"eligant.ru@gmail.com"
] | eligant.ru@gmail.com |
db14361524f6ae8972b50bb26204bdf8d4c92611 | d35907f489a88b27163be0b7e874eb482252a672 | /app.py | a4d8f3993cee34f94afe96f2c47088ff8f9a5435 | [] | no_license | tinvan94/sample-python-api | 13418627d0ab6037f547cebcae24c19667450fff | f511854b281a21a1e12086e4d14be821ad754cc5 | refs/heads/master | 2020-06-06T14:30:49.064746 | 2019-06-18T15:59:40 | 2019-06-18T15:59:40 | 192,765,015 | 0 | 0 | null | 2019-10-31T20:56:52 | 2019-06-19T16:06:38 | Python | UTF-8 | Python | false | false | 476 | py | from flask import Blueprint
from flask_restful import Api
from resources.customer import CustomerResource
from resources.user import UserRegistration, UserLogin, UserLogout
api_bp = Blueprint('api', __name__)
api = Api(api_bp)
# Route
routes = [
'/customer/<int:customer_id>',
'/customer',
]
api.add_resource(C... | [
"tinnv@trobz.com"
] | tinnv@trobz.com |
9a7c0605403c732acc14c1c84feb77aa47721430 | b6d723d7ac20b5b01a55e574088d053c9952ef76 | /usecase1/scripts/uc1_scikit_linear_regression.py | b265c2de36eb278168882755b9f3ce0d7c6cc658 | [] | no_license | amoghntt/Aspire | d704c53bbfe89794fc34e6ea3bd605d51eb0a754 | 97953894c82ac565d451df9bd6eea35d23e83c6b | refs/heads/master | 2021-08-30T15:07:18.408757 | 2017-12-18T11:27:49 | 2017-12-18T11:27:49 | 114,597,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,197 | py | import json
import sys
import math
import numpy as numpy
import mysql.connector
from pandas import DataFrame
from sklearn.linear_model import LinearRegression
def predict_dc():
#Predictionin=Prediction_in
#if (Predictionin == 1):
cnx = mysql.connector.connect(user='cresta', password='cresta', host='10.248.3... | [
"109100@NTTDATA.COM"
] | 109100@NTTDATA.COM |
689331242b3ee1bd08dad666a2f70791a5042787 | 47c7e495c25f77c2129e3a88d01e797bbc18085a | /bot/flaskapp-application-web.py | b0abb6434b4e330922619b2296faa396af919d3b | [] | no_license | fireprophet/attemt_telegram_bot_flask | c1eb2c5bca35270cb9348f0e54bbc29c025e233f | ea26fca407adb6c6489b4ed96a58a930ce4fc9b8 | refs/heads/master | 2023-07-17T21:31:02.661117 | 2021-09-07T08:08:45 | 2021-09-07T08:08:45 | 399,856,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | from application-web import app
if __name__ == "__main__":
app.run()
| [
"fireprophet.io@gmail.com"
] | fireprophet.io@gmail.com |
076793b7912b8882ef8e8bb776e73d03c6da5d0b | 3aea63678e588629df5894cdb5df5b0a635b66bb | /Covid19.py | 6a3a5f52777e7b08f3ef6d58101c5e67947b6a65 | [] | no_license | braveseba/Clarusway_python_assignment | 4751959b8a905950b299f67ddae356e381a49e51 | 60cf263a4c27fe0f718194a2caefb23f109c93c8 | refs/heads/master | 2022-12-13T15:24:26.617519 | 2020-07-30T15:08:20 | 2020-07-30T15:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | age=(input("Are you a cigarette addict older than 75 years old? True/False: ").title())== "Yes"
chronic=(input("Do you have a severe chronic disease? True/False: ").title())== "Yes"
immune=(input("Is your immune system too weak? True/False: ").title())=="Yes"
if age or chronic or immune:
print("You are in risky... | [
"habibkc71@gmail.com"
] | habibkc71@gmail.com |
1fa3cbca32b5e8e3c20fc0ac646c98e01573d497 | d1dd5da8ef670280e22ce716780afe0d5b417320 | /da_v1/eval/total_text/Deteval2.py | a3490f9578ce25a7ea99566cfbc2d6a6b8284743 | [
"Apache-2.0"
] | permissive | xieenze/PSENet | 643d52f71b6870cd8681c02a46550b110187ece2 | 85a64d337e462352b8397c04566d1fd2eb141935 | refs/heads/master | 2020-05-27T19:23:42.245279 | 2019-07-03T05:16:21 | 2019-07-03T05:16:21 | 188,760,423 | 0 | 0 | null | 2019-05-27T02:50:17 | 2019-05-27T02:50:16 | null | UTF-8 | Python | false | false | 14,367 | py | from os import listdir
from scipy import io
import numpy as np
from skimage.draw import polygon
from polygon_wrapper import iou
from polygon_wrapper import iod
from polygon_wrapper import area_of_intersection
from polygon_wrapper import area
"""
Input format: y0,x0, ..... yn,xn. Each detection is separated by the end ... | [
"Johnny_ez@163.com"
] | Johnny_ez@163.com |
5901cd761f795addb37355ab5dfb91b136524937 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/45/usersdata/118/15614/submittedfiles/lista1.py | e7b973d29fb37d041373635daf0586e519cab283 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # -*- coding: utf-8 -*-
from __future__ import division
n = input('Digite o número de termos:')
a = []
for i in range(0,n+1,1):
a.append(input('Digite o valor:')
somap = 0
somai = 0
contp = 0
conti = 0
for j in range(0,len(a),1):
if a[i]%2 == 0:
contp = contp +1
somap = somap +1
else:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
039696c97042596d6d70749d3c2109351fd97b6f | b62b3d52d911a07e4ae6790afae73b870e7de948 | /raw/registrees/excel_users.py | 4bd72c7ceae539c10d2059f88462ae94bb7a47d8 | [] | no_license | kimvanwyk/md410_2021_conv_website | ac77ac11d6abc6c48686ac16e77ee2971a31241b | 40faa10aaf1377463c7d6d42787d12af0e74d1a9 | refs/heads/master | 2023-04-18T18:54:10.418683 | 2021-05-04T11:57:22 | 2021-05-04T11:57:22 | 338,836,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | """ Functions to retrieve registree data for the 2020
virtual MD410 Virtual Convention hosted on GoToWebinar
"""
import json
import os.path
import attr
import dateparser
from openpyxl import load_workbook
if 1:
class ExcelSheet:
def __init__(self):
self.registrees = {}
self.get_... | [
"kimv@sahomeloans.com"
] | kimv@sahomeloans.com |
cc0b4291cf557814775dee5633ec150f36a75948 | 5bc611ce8b5629d09562c98e9b2cc51bc5860c7c | /graph.py | 94838052ccdd373211f51c58a32731e46154ff0f | [] | no_license | thepolm3/Hello-Internet-Stats | 45b4197d0e62357b7c687cb45df5984634671bba | 23f283da0c0062901f77881bb058f92732b03c97 | refs/heads/master | 2022-07-06T01:08:45.399828 | 2022-06-21T22:27:11 | 2022-06-21T22:27:11 | 146,997,315 | 0 | 0 | null | 2022-06-21T22:27:12 | 2018-09-01T12:41:13 | Python | UTF-8 | Python | false | false | 3,672 | py | """Graphs the episodes"""
import pickle
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import host_subplot
import mpl_toolkits.axisartist as AA
from matplotlib.dates import date2num
import numpy as np
with open('episodes.pickle', 'rb') as f:
episodes = pickle.load(f)
#for our purposes we need a red... | [
"thepolm3@gmail.com"
] | thepolm3@gmail.com |
0f6b4c0e8a7fc2507d68d242905734ba1e2e2592 | 6b033e3dddc280417bb97500f72e68d7378c69d6 | /IV. COLAB/Enemy-Spotted/2. Uniform Classification/crawling/crawling_version_2_deprecated.py | fa6711bbd2b14e88c54793181f0ffa2d0b600bb1 | [] | no_license | inyong37/Study | e5cb7c23f7b70fbd525066b6e53b92352a5f00bc | e36252a89b68a5b05289196c03e91291dc726bc1 | refs/heads/master | 2023-08-17T11:35:01.443213 | 2023-08-11T04:02:49 | 2023-08-11T04:02:49 | 128,149,085 | 11 | 0 | null | 2022-10-07T02:03:09 | 2018-04-05T02:17:17 | Jupyter Notebook | UTF-8 | Python | false | false | 903 | py | from urllib.request import urlopen
import argparse
import requests as req
from bs4 import BeautifulSoup
# reference: https://enjoysomething.tistory.com/42
parser = argparse.ArgumentParser()
parser.add_argument("-data", required=False, default='acu pattern')
args = parser.parse_args()
data = args.data
def main():
... | [
"inyong1020@gmail.com"
] | inyong1020@gmail.com |
d1f909d566fa886cccb10ff084d7311a66db8b23 | d0cb6e6cf22696d852af807aeb529426035ebc91 | /subtledata/sd_collections_locations.py | 036abdee467494ea4c2b72666edcbc088033cdd4 | [
"MIT"
] | permissive | jakeharding/subtledata_python | 974417fbc7d93724ab8f6789c6d1be6b5312df62 | 7c24492dcc06b66aea3fd040c82152d2c3fdf719 | refs/heads/master | 2021-01-21T00:53:26.289601 | 2013-07-18T01:35:03 | 2013-07-18T01:35:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | __author__ = 'gsibble'
from base_types import SDFirstClassCollection
from sd_location import SDLocation
class SDLocationCollection(SDFirstClassCollection):
def __init__(self, parent):
"""
:param parent:
"""
super(SDLocationCollection, self).__init__(parent)
@property
de... | [
"gsibble@gmail.com"
] | gsibble@gmail.com |
af8ba639185f3e1cad576566a26e97b93daee28c | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/datahub/storekit/druid.py | 73bd116ab7896d4819f9a8cc6250460549d55a6b | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 44,065 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
70e094a669dbbd62c32f85af26ee429b6dc31670 | 75f551e4070d15ba49ace9d08a8e117edb5df74d | /python-implementations/test_2.py | 019eb40257d8b3d1a306da5f352d614604273402 | [] | no_license | aboyd52501/hermes | 4c853c0bf21062f52da28e326f85599992b5fcc9 | 9cd2d862123d4e609b64485d8b80f0fb31704306 | refs/heads/main | 2023-03-16T18:48:26.441838 | 2021-03-03T22:28:18 | 2021-03-03T22:28:18 | 343,240,663 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,944 | py | from threading import Thread, Event
from sys import argv
import socket
class Map(dict):
def __setitem__(self, key, value):
if key in self:
del self[key]
if value in self:
del self[value]
dict.__setitem__(self, key, value)
dict.__se... | [
"aboyd52501@gmail.com"
] | aboyd52501@gmail.com |
7a2c9eb7044540d777bca9c0f68a4a888895eb00 | 06904f68018fbd42bba1909e12a79c2106af71f4 | /mirror_en.py | 733cf287ae4ed857491c9bb00206dfa953eb9428 | [] | no_license | rzbfreebird/MCDR-Mirror-Server | 2d079ac30c073805045f97302b2379937b8f95e2 | fbaebc8eeddaefe3675efff8abe98e7e69d83e30 | refs/heads/master | 2022-12-07T01:14:01.603244 | 2020-09-03T14:30:43 | 2020-09-03T14:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,443 | py | # -*- coding: utf-8 -*-
import shutil
import datetime
import os
import json as js
import platform
from os.path import abspath, dirname
from utils import rcon
current_path = abspath(dirname(__file__))
def read_config():
with open("config/mirror.json") as json_file:
config = js.load(json_file)
return conf... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
2a08695213000cecf794bebc195f346db2f55e7f | 01f0beab21eccc37aa2a94df947d6b0ae0400e7f | /base/views.py | 967f5d5fd2d181fdda321184fb51658457b86e04 | [] | no_license | mousavi-lg/Simply-site | 90281ab9344d7f450b5f857a84820983bd816376 | bcde7801d5cda2bde16e6b8ed2f21f44a762495b | refs/heads/main | 2023-03-15T15:48:42.559681 | 2021-02-27T15:43:38 | 2021-02-27T15:43:38 | 342,884,129 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse , HttpResponseRedirect
from .models import *
from .forms import *
from django.contrib.auth import logout, authenticate
# Create your views here.
def home(request):
if request.POST:
try:
if request.POST... | [
"noreply@github.com"
] | noreply@github.com |
b6cd7d8565d0eb02480f3f7a35eb136564660245 | 990dec6eb7bb6c7cbbb9b8d94d3c2f359da2dad4 | /matplotlib_learn/plt6_ax_setting2.py | b2562dd3c85a1d861b07b1cee1c03016793c6ced | [] | no_license | PeakGe/python_learn | 116323a8cb1e1ef60a8036d47d6de685e8d0103f | 81a232ba160dd62a6fc1a67c610f1effcb778c0a | refs/heads/master | 2020-06-17T20:12:57.692010 | 2019-07-10T02:42:41 | 2019-07-10T02:42:41 | 196,039,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | # 6 - axis setting
"""
Please note, this script is for python3+.
If you are using python2+, please modify it accordingly.
Tutorial reference:
http://www.scipy-lectures.org/intro/matplotlib/matplotlib.html
"""
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(-3, 3, 50)
y1 = 2*x + 1
y2 = x**2
plt.fig... | [
"peakge@163.com"
] | peakge@163.com |
53d70ee33495d952c65ffba481eb70809a2f23b5 | ad055a3e56cbfdecda112b164315dcb7af529481 | /openapi_client/models/__init__.py | e4e7a653f568596861565c3239f6367e4937fdc6 | [] | no_license | shahrukhss/aqua-sdk-python | 328ed4e72a2433a6f5e128118b148555eab6544b | 3a850971e0940628af8eb457ea9dd3114bd2982e | refs/heads/master | 2020-06-16T19:22:45.345926 | 2019-07-07T17:47:58 | 2019-07-07T17:47:58 | 195,677,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # coding: utf-8
# flake8: noqa
"""
Aqua Security Test Api Definition Document Authered By - Shaharuk Shaikh
This document is the api def document api's given to test by Aqua Security
The version of the OpenAPI document: 0.1
Generated by: https://openapi-generator.tech
"""
from __future__ import a... | [
"shaharuk.pardes@gmail.com"
] | shaharuk.pardes@gmail.com |
c5868d381536bb3ca6432d8af25e6a6c8d8e7bf0 | 7a6c9a4e38e4c7271bddd3c51ff8fb1bfa714c87 | /4/I.py | 50e41a5b2f5a2c354e55bdcd0a08db81b8f1386b | [] | no_license | simonsayscodes/School | bf934e2a32b01e063d5f3fa49e4a4668b566518c | 377de06267ab6744992fd4f241c64cb047ba8c26 | refs/heads/master | 2023-02-23T04:49:39.232936 | 2021-01-24T22:53:03 | 2021-01-24T22:53:03 | 292,821,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | N = int (input("Tal:"))
for x in range(N+1):
print (x,"Abracadabra")
| [
"70754158+simonsayscodes@users.noreply.github.com"
] | 70754158+simonsayscodes@users.noreply.github.com |
3422b1a5ccdb881ac91f119398d788f8d54eb5c3 | 3b5d86841a8f18e1ac4ce9b8e3b9227149946c2a | /attendanceapp/attd_app/urls.py | be7b4f72171e7ad88f14488763ea96738656d76e | [] | no_license | Harish5074/Attendance_App | 4d5fc7cd8bf4598c847ff7ff884bcd596de52651 | 5632ba1ab428f2fc58a592b06d0868055d0ac87b | refs/heads/master | 2023-01-06T03:11:54.834643 | 2020-10-23T09:42:03 | 2020-10-23T09:42:03 | 295,389,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | """attendanceapp URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"harish5074@gmail.com"
] | harish5074@gmail.com |
c69d55d3f7500378e3a928dff4e8a0e47d70916b | 09db0d94ef90ff4df3b17cf8d9c2cca7f79b2c65 | /buffer.py | 317b3835a2a7a73b712441fc4f3f631cdf1c3eb1 | [] | no_license | tgbugs/desc | 5e17e7e35445908b14c7cbaed766764bb3cbab6b | b68a07af90f87f55c4b5be6ff433f310a0bc7e2c | refs/heads/master | 2020-04-09T12:20:02.650756 | 2019-05-08T07:34:29 | 2019-05-08T07:34:29 | 20,045,270 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | #!/usr/bin/env python3.4
""" Example for how to load vertex data from numpy directly
"""
import numpy as np
from panda3d.core import Geom, GeomVertexFormat, GeomVertexData
from .util.ipython import embed
size = 1000
data = np.random.randint(0,1000,(size,3))
#color = np.random.randint(0,255,(size,4))
color = np.repea... | [
"tgbugs@gmail.com"
] | tgbugs@gmail.com |
919495fad13d666a69898ac017fe34ab0231dff7 | 55ec90e5dc40ecb48bf98bd4330a0cba00b4c3b9 | /predicao-com-serie/Obtendo-resultado-sem-filtro.py | 6bfce6e9fb20d7d17f6b45e21a63583a80eab4bc | [] | no_license | Matheuspds/Prediction_Volume | 670dbad017c6e1b55761eaa09b44e40e0ac6152b | 24ce47dd2f91fb70ed9c93bcf8831ae3641dc69e | refs/heads/master | 2020-08-05T22:59:51.295156 | 2019-12-10T04:59:17 | 2019-12-10T04:59:17 | 212,745,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,495 | py |
# coding: utf-8
# In[1]:
import pandas as pd
from sklearn.ensemble import GradientBoostingRegressor, RandomForestRegressor
from sklearn.neighbors import KNeighborsRegressor
import numpy as np
from sklearn.grid_search import GridSearchCV
from sklearn.preprocessing import MinMaxScaler
import random
# In[20]:
df_t... | [
"matheuspds2@gmail.com"
] | matheuspds2@gmail.com |
aeaef43d8a4b225e46b049173c23de3d40ed4fa1 | 49f8826ed11233ff57296d5b66eb329c1bd0ee29 | /selenium-wd/lib/BackPackSim/common.py | 8fe9188f721e1e6425da7e42d7051f7317a1878d | [] | no_license | SXiang/JUnitWebTest | c221ce11dfce127557004f7cef388e790449b39b | 5f03edfd9f0b95454d8ee332a29bd4a876e67b26 | refs/heads/master | 2021-08-31T10:43:55.069732 | 2017-12-18T21:44:03 | 2017-12-18T21:44:03 | 114,942,302 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import os
def envPathExists(ps):
paths = os.environ['PATH']
pArr = paths.split(';')
for p in pArr:
if (p.lower() == ps.lower()):
return True
return False
| [
"spulikkal@picarro.com"
] | spulikkal@picarro.com |
061f3e186fa2184c6d2f1f49d0255e16c91807d1 | 49d1e9e20091e862165fba693bfa1824caab2f9b | /func.py | 3ef312c1cb2d5d9867e1750a49299a9e35b96783 | [] | no_license | PiKa1804/tables-website | 7e089c1366e5e2d0a29cdb3edb50eb3c34641588 | 331db7dd80a6e8cb5e93236ad92b3f74b8c3bb51 | refs/heads/master | 2020-05-26T21:28:57.765915 | 2019-05-24T09:32:49 | 2019-05-24T09:32:49 | 188,380,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | from elasticsearch import Elasticsearch
from elasticsearch import helpers
es = Elasticsearch()
def Download(name, name1): #get the data from elasticsearch indices and types
result_list=[]
size=[]
doc = {'query': {'match_all' : {}}}
res = es.search(index=name,doc_type=name1,body=doc)
siz... | [
"46743066+PiKa1804@users.noreply.github.com"
] | 46743066+PiKa1804@users.noreply.github.com |
50b70699b80e3e66d8103401a1e5438187aa64fb | b5e8d81bb0f1459616d9662f9884b2c6e3581421 | /typeidea/config/views.py | 256f2abc006f2466860f2b4c85e5a950f006719d | [] | no_license | zhangbenxiang/typeidea | cd03ec0c976dc048102deb52b61f23e10ad1478d | a472a211b207ab6fb95e65207ab5705dee778ac3 | refs/heads/master | 2020-04-29T08:39:50.451518 | 2019-03-20T16:16:19 | 2019-03-20T16:16:19 | 175,962,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
from django.views.generic import ListView
from blog.views import CommonViewMixin
from .models import Link
class LinkListView(CommonViewMixin,ListView):
queryset=Link.objects.filter(status=Link.STATUS_NORMAL)
tem... | [
"910530496@qq.com"
] | 910530496@qq.com |
702bd9c61198ec10b638bc639c75d3d5761e243f | 3f7e0e3e60323e0acbec5182d94ef17b7353be11 | /myblog/settings.py | 646a5b461f91c8494655e4dab15c5f2ad6bfa607 | [] | no_license | viciousvizard/My-Blog-Django | d8ead80cd21f2013be0bb7aab736e515acf633bb | 02383b861e512fc1bb1558c140e5801a6533fc19 | refs/heads/master | 2020-07-09T20:12:40.949585 | 2019-08-23T21:30:53 | 2019-08-23T21:30:53 | 204,072,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | """
Django settings for myblog project.
Generated by 'django-admin startproject' using Django 2.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"utkarsh7839@gmail.com"
] | utkarsh7839@gmail.com |
9ee36689f1628a59d8a7f28c1af469ca7adedfe2 | b5e15fc6fe0132f18c72a1bf035b3edab618e35c | /microfinance/project_data/helpers.py | 4e75b923715a09285f8ea6047a5c9c702562fcbf | [] | no_license | Jubair70/BRAC-Customer-Service-Assisstant | ced72b4c81e0f4670c4be9efdb7d0d113f285b28 | fe35de8b96e2d8a44bf8ed811faa628ea27861d2 | refs/heads/master | 2021-06-27T06:38:35.239131 | 2020-01-13T05:17:48 | 2020-01-13T05:17:48 | 233,516,095 | 0 | 0 | null | 2021-06-10T22:28:56 | 2020-01-13T05:12:26 | JavaScript | UTF-8 | Python | false | false | 608 | py | import paho.mqtt.client as mqtt
from microfinance.settings import MQTT_SERVER_PATH, MQTT_SERVER_PORT
def send_push_msg(topic = "/CSA/1/11111", payload = None, qos = 1, retained = False):
# MQTT_SERVER_PATH = "192.168.22.114"
# MQTT_SERVER_PORT = 1884
# MQTT_SUBSCRIBE_TOKEN = "/CSA/1/11111"
# MQTT_SERVE... | [
"jubair@mpower-social.com"
] | jubair@mpower-social.com |
757ed9d6d342db985ed43a6ad0ed1034ef06e4b4 | 7e2e839b3887e7f4cc2206876adf2fbceae3778d | /garbage/Cube/cube.py | 4497af418b312c86798211ca1c5a74e13c843789 | [] | no_license | CadenKun/rubiks_cube | bb911a4bd5c77f6ecd751d945d02d708bd3c4fe0 | 21ddb5733a9b3916f22ae0eadee07b8a6df47c3c | refs/heads/main | 2023-07-13T20:20:44.144880 | 2021-09-01T12:12:37 | 2021-09-01T12:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,004 | py | import numpy as np
from garbage.Cube import Side
class Cube:
def __init__(self, dim):
self.dim = dim
self.front = Side(self.dim)
self.__build_cube()
def __str__(self):
res = ""
res += str(self.front.top) + '\n'
res += str(self.front.left) + '\n'
res += ... | [
"along.blabri@gmail.com"
] | along.blabri@gmail.com |
b2ea4351140bdf0bee22fa9de7d78f74a508824c | fff640a7b4da979a9c3626a217a6bc11e4ab3729 | /mnist_adversarial.py | af48ad50fcbb8caf12e7015f86f26ad3894688b1 | [] | no_license | glarbalytic/adversarial_example | d1c07b052a9ff6f04535e1afbeeb4121af7ee522 | 44c98ca9d5afeb71040fac3f885fc9c1d12a841c | refs/heads/master | 2020-05-07T18:55:34.307992 | 2019-03-16T21:46:56 | 2019-03-16T21:46:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,405 | py | from matplotlib import pyplot as plt
import torch
from torch import nn
from torch.nn import functional as F
from torchvision import datasets, transforms
from torch import utils
import tensorflow as tf
import numpy as np
from cleverhans.attacks import FastGradientMethod
from cleverhans.compat import flags
from cleverha... | [
"egeozsoy97@gmail.com"
] | egeozsoy97@gmail.com |
65862506e7c2a0b1eba9b24168fb76d1f57c32fd | 87fb0ae5563512bf4cfe2754ea92e7f4173f753f | /Chap_05/Ex_129.py | 67451fbd6333873e212e51249f4b024c92250365 | [] | no_license | effedib/the-python-workbook-2 | 87291f5dd6d369360288761c87dc47df1b201aa7 | 69532770e6bbb50ea507e15f7d717028acc86a40 | refs/heads/main | 2023-08-21T13:43:59.922037 | 2021-10-12T20:36:41 | 2021-10-12T20:36:41 | 325,384,405 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | # Tokenizing a String
# Tokenizing is the process of converting a string into a list of substrings, known as tokens.
def tokenbystring(string: str) -> list:
string = string.replace(' ', '')
tokens = []
dgt = ''
for s in string:
if s in ['*', '/', '^', '+', '-', '(', ')']:
if dgt !=... | [
"cicciodb@hotmail.it"
] | cicciodb@hotmail.it |
ac82f95718232006db1ee07eb767a672285c182c | 5e8c0364a0eaa3b21a4ab1f098264c2de438446d | /study/str_multy.py | 10dcc9bdadc0bf209dd5e85aa8fe1d309226208a | [] | no_license | A-hungry-wolf/python | fcc2467b7ce00733df685b306a7aec6cf3aaef4b | beefe6c024accfc2d928a0170257f9d6b9afc88b | refs/heads/master | 2022-12-12T01:56:08.175830 | 2020-09-10T07:44:13 | 2020-09-10T07:44:13 | 292,148,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | sentence = input("Sentence: ")
screen_width = 80
text_width = len(sentence)
box_width = text_width +6
left_margin = (screen_width - box_width) // 2
print()
print('' * left_margin + '+' + '-'*(box_width-2)+ '+')
print('' * left_margin + '| ' + ' '*text_width + ' |')
print('' * left_margin + '| ' + sentenc... | [
"yutao.chen@aliyun.com"
] | yutao.chen@aliyun.com |
8e3659ceaa3bcdb5a687bc5c9fac627026b66876 | cfb69b167f38980a276919830707b6f10dde94a4 | /urls.py | 1995a74bddbe211c342534b77cb437d834a6235d | [] | no_license | rahul342/evernote_toy_app | 370ac9e7dd01f366548082a88cce8f7a78739624 | a231088cf430e7cca74f8711b68a20406f26b801 | refs/heads/master | 2021-01-02T08:34:17.625629 | 2012-10-26T23:18:23 | 2012-10-26T23:18:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from django.conf.urls.defaults import *
from django.views.generic.simple import redirect_to
handler500 = 'djangotoolbox.errorviews.server_error'
urlpatterns = patterns('',
url(r'', include('social_auth.urls')),
('^_ah/warmup$', 'djangoappengine.views.warmup'),
('^login/$', 'evernotoy.views.login'),
('... | [
"rahul@digitalgreen.org"
] | rahul@digitalgreen.org |
3b821c8916710daabeecc602986e7cb5128ee24c | e0aa52e2d6ff5e0200c7606c34990df59403843a | /InfiniteSkills - Learning Python Programming/Chapter 10/listcomp2.py | 52c5e2cd4e6f084d11d94efd885aaf9b82f2893e | [] | no_license | Marrary2/Python-Studies- | 9c5e51f56c192be8d1f3755cb46d59daefcfbcc4 | d4d43605c9be9939616cc3ded2262d1e08bf188d | refs/heads/master | 2020-07-01T11:45:48.686067 | 2016-12-12T18:03:36 | 2016-12-12T18:03:36 | 74,079,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | #file = open('grades.txt')
#grades = file.readlines()
#print(grades)
#for i in range(len(grades)):
# grades[i] = grades[i].rstrip()
#print(grades)
grades = [grade.rstrip() for grade in open('grades.txt')]
print(grades) | [
"moisesmarrary@gmail.com"
] | moisesmarrary@gmail.com |
c56bd17bde912c7ffd206eecf251a580b76d0c35 | 837ec24d4d90bb19844947b5ddf11a17d95469e6 | /main.py | b6aebee01c43c7a2a7a36ad5921156d4eb0803ab | [] | no_license | hocchudong/openstack-report | 99ca66cb762292cdae4b362325082f445853cbca | 95b75bd022242570ac0ac1c16b0e5e289522cbed | refs/heads/master | 2016-08-10T23:57:53.240635 | 2016-03-18T07:11:27 | 2016-03-18T07:11:27 | 49,656,226 | 1 | 10 | null | 2016-03-18T07:11:28 | 2016-01-14T15:34:05 | null | UTF-8 | Python | false | false | 9,656 | py |
from flask import Flask, session, render_template, url_for, redirect, request
from flask.ext.bootstrap import Bootstrap
from keystone_api import (get_token, get_tenant_id, get_tenant_list)
from mail import (send_mail,reports)
from neutron_api import (check_neutron_service, get_ports, get_network)
from nova_api import... | [
"great_bn@yahoo.com"
] | great_bn@yahoo.com |
5c1886950887ff7a8a83d2c67ef0a6f8888de771 | 1fcc1f9fb9309ab8be1d68b3118b1784a515714a | /app.py | e3c0a0c598b507bd04f4df4dc22cae3c8fb85a2e | [] | no_license | miguelmg4/capstoneXIV | e4af82c4dd28b14508ab41e5335d28dd4b449cb3 | 43394e4292f852aed048b7b6eb829f22873d6468 | refs/heads/main | 2023-08-16T11:08:57.830164 | 2021-10-05T18:07:03 | 2021-10-05T18:07:03 | 413,119,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,095 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.express as px
import pandas as pd
from datetime import date
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_... | [
"noreply@github.com"
] | noreply@github.com |
6e16831181959034015488712920032acebc6c61 | df2df2cb11f9f78b6e3493cb24f83dff43536e5e | /MyTestProjects/selenium_text/1s.py | 33596846b1178aa4876d6da8f31589ec6e5682e1 | [] | no_license | chengzizhen/Airmcl_Test | b4068bf9b0eec5ea8f160f080f1a783f90d8ec13 | aa6e44838843e4e812094d33d94f4a4c4c7d8312 | refs/heads/master | 2023-03-16T00:30:39.602224 | 2019-01-19T03:45:17 | 2019-01-19T03:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 591 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
def ok():
driver = webdriver.Firefox()
driver.get('http://www.51zxw.net')
driver.find_element_by_name('username').send_keys('z87254091')
driver.find_element_by_name('password').send_keys('z87254091')
driver.find_element_by... | [
""
] | |
37b44ac59997b25f1b9ca2ffef1404ae0c944360 | 086b24ee80b9ee943e709cfb38bdd9be216f416c | /utils.py | a14afa86b1bca6c9b79d07e8b3b00002f8162004 | [] | no_license | a84227321a/yyzz_ocr | 1fe49dbc1ada295cd313245dd8c351d870668850 | 5dea7f1dd105331e5be4ef3cf50f3f278286e348 | refs/heads/master | 2022-11-06T02:28:24.066208 | 2020-06-12T09:54:39 | 2020-06-12T09:54:39 | 271,237,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | # -*- coding: utf-8 -*-
import glob
import os
import pickle
import cv2
from keras.callbacks import ModelCheckpoint, Callback
from keras.layers.core import *
from keras import backend as K
import re
import codecs
def create_result_subdir(result_dir):
# Select run ID and create subdir.
while True:
run_id... | [
"865046239@qq.com"
] | 865046239@qq.com |
e3571be56d0195a8510b1367cf30522596fd6fc9 | d5e3f0a8dbac202866328bd56efb5ab93a11f869 | /ecommerce/ecommerce/settings.py | 25f040f8f4ed3d134544c47c9a561f8b52826fb6 | [] | no_license | koitaki/ecommerce | 5a906482e500e6b1f969520063766ac362d2ac3d | e9cd75326107cfac8e3b4a1e4658c00ca4938901 | refs/heads/master | 2021-01-22T13:58:05.515395 | 2015-03-12T16:24:48 | 2015-03-12T16:24:48 | 30,614,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,907 | py | """
Django settings for ecommerce project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
... | [
"github@christopheradams.com.au"
] | github@christopheradams.com.au |
cd70b7da056f0c665b71aad7bd5232357e178005 | cc23cf70670f72155b9f86d734bda3b985d88c56 | /asura/core/utils/http.py | b87ec7ce78463eb18b83f79a9a4c278782a5122b | [] | no_license | EtheriousNatsu/asura-web | a3fecc9b14809c6b2846f6715d8c080e1829412b | 2885edcf91ad887505850ae5d0ef7f65dbebef34 | refs/heads/master | 2023-07-15T13:47:58.985740 | 2021-08-19T11:12:59 | 2021-08-19T11:12:59 | 397,573,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # encoding: utf-8
"""
@author: John
@contact: zhouqiang847@gmail.com
@file: http.py
@time: 2021/8/17
"""
import requests
class HttpClient:
"""Send http request"""
def request(self, url, method, **kwargs):
"""Send a http request.
Args:
url(str): Http url.
data(dict)... | [
"zhouqiang@zhouqiangdeMacBook-Pro-2.local"
] | zhouqiang@zhouqiangdeMacBook-Pro-2.local |
763bc812b8f217850cfe652bacd10219358909ff | 34108db83f45a027783385382244e4f53769f140 | /traditional/svm_model.py | a2f45d28bdadbdac4fa297ebd29e0f2e74d09434 | [] | no_license | azh18/query_size_estimate | 8cfb6f9f464f6606fff0d840151b91558fcb8927 | 09c11f37dc83fc9b19e9dc592399a869ea5fdb15 | refs/heads/master | 2022-12-09T10:39:59.242279 | 2019-05-28T13:56:24 | 2019-05-28T13:56:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,853 | py | from sklearn.svm import SVR
import math
import numpy as np
from traditional.util import unnormalize_labels, normalize_labels
def get_q_error(real_labels, pred_labels):
errors = []
for i in range(len(real_labels)):
if pred_labels[i] > real_labels[i]:
err_unit = math.fabs(float(pred_labels[i... | [
"zbw0046@gmail.com"
] | zbw0046@gmail.com |
b7dd7a197154d308863a5d0f9d1d548a6a166d6e | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/plone.app.controlpanel-2.1.1-py2.7.egg/plone/app/controlpanel/skins.py | a649d961b9669e9e19a497770d9f1e3f809ad3e2 | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,314 | py | from zope.interface import Interface
from zope.component import adapts
from zope.formlib.form import FormFields
from zope.interface import implements
from zope.schema import Bool
from zope.schema import Choice
from Products.CMFCore.utils import getToolByName
from Products.CMFDefault.formlib.schema import SchemaAdapter... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
dd073724f67a10570c13e2cc5c18b7fcfbc40144 | 1f5d98c97ac9ff75b1d6b81f0a4a5110b05d4284 | /social_network/personal_settings.py | c2bb5dd5e177c74698e5d3621758e902a6d59781 | [] | no_license | DukhDmytro/social_network | 70cdd4aeb1448fdbacce6d32f627b421b8614a8c | a8d563b17ffc90dc467c67150fd4f0e7aa5f3992 | refs/heads/master | 2022-12-12T21:04:17.354395 | 2020-03-03T13:34:45 | 2020-03-03T13:34:45 | 241,352,402 | 0 | 0 | null | 2022-12-08T03:38:56 | 2020-02-18T12:12:34 | Python | UTF-8 | Python | false | false | 357 | py | SECRET_KEY_ = ')*k_v+g1&sj%o*%ocf#=m@s+!fmgnt$rcg$9puzlp7-!st$6f1'
DATABASES_ = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'social_network',
'USER': 'admin',
'PASSWORD': '1',
'HOST': '127.0.0.1',
'PORT': '5432',
}
}
HUNTER_API_KEY_ = '44a1... | [
"cowboybebop4991@gmail.com"
] | cowboybebop4991@gmail.com |
3528dc2697499f23c8d35c92ffec15cf241338f1 | e9fbb4718f6b68bf73ca6acd63fa068169e53e28 | /src/python/com/expleague/media_space/topics/fast_qt.py | 1e694f31d53c274c201705c27e3b221833bc16f5 | [] | no_license | mrMakaronka/topic_modeling | 940f752953acf5c8ef18f811933fbedbab3f40d1 | 15ccd3473cd85ec7472a2b00fc1ac21109fdba13 | refs/heads/master | 2020-05-03T05:10:39.935471 | 2020-02-15T00:54:31 | 2020-02-15T00:54:31 | 178,441,410 | 0 | 0 | null | 2019-10-19T15:44:23 | 2019-03-29T16:34:40 | Python | UTF-8 | Python | false | false | 1,731 | py | import faiss
import numpy as np
from numpy import ma
class FastQt:
def __init__(self, threshold, cluster_min_size):
self.threshold = threshold
self.cluster_min_size = cluster_min_size
# noinspection PyArgumentList
def fit(self, X, callback):
# noinspection PyAttributeOutsideInit
... | [
"trofimov9artem@gmail.com"
] | trofimov9artem@gmail.com |
ba94bc9f3edf78ffcb975d69c1352d2ab5a93987 | 3fff4f34d6430643c5c59371ea0b7415b499f419 | /slim/data/prefetch_queue_test.py | 96e66fcf0873a86906d250cee5571013e532a735 | [
"Apache-2.0"
] | permissive | mive93/nasnet-tensorflow | c72101438b2fb8e9ec03c0b0bd1aa18031865676 | edb0c98424521253c3afe2436384d5dc9a9e6582 | refs/heads/master | 2020-09-23T02:39:41.132008 | 2019-12-02T15:33:51 | 2019-12-02T15:33:51 | 225,381,698 | 0 | 0 | Apache-2.0 | 2019-12-02T13:29:34 | 2019-12-02T13:29:33 | null | UTF-8 | Python | false | false | 8,712 | py | # Copyright 2016 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... | [
"micaelaverucchi@gmail.com"
] | micaelaverucchi@gmail.com |
378d655e48469b9bd2b553dcbabcb01ce35b7bf8 | d3fda89105d6e1f9e5d606515c17852a5560ac67 | /quora_dup_utils.py | 26f26677dc8fd0e11527db1bedc8ad258500d61d | [] | no_license | megoco27/vecn-words | 5d0ec342a39461ec5cb4d4ee8233c0bdf3613b06 | b75ed206939ab374892f4e10b997bbeed6cd7752 | refs/heads/master | 2021-09-13T03:41:17.339719 | 2018-04-24T15:14:39 | 2018-04-24T15:14:39 | 126,105,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,471 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 16 09:33:00 2018
@author: megoconnell
"""
""" Helper functions for exploring quora duplicate questions data set.
"""
import numpy as np
from sklearn.metrics import roc_auc_score, precision_recall_fscore_support
# libraries for timing
from context... | [
"noreply@github.com"
] | noreply@github.com |
3bfa3f4c4a8a9f814374e4c99f74e47289a534a5 | e2bd39106992b592de686e5bd79002edc05cc8bc | /917-仅仅反转字母/ReverseOnlyLetters.py | 97b3c141717bf5f5f882bee7025ae41b63f441cb | [] | no_license | Mumulhy/LeetCode | 9b8ad3af9f9a3b838bdd54727cf8f33401292d27 | 269419ba2a2840fcf100fa217c5275029ffa229e | refs/heads/master | 2022-10-28T23:06:54.081073 | 2022-10-23T07:48:49 | 2022-10-23T07:48:49 | 212,135,892 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # -*- coding: utf-8 -*-
# LeetCode 917-仅仅反转字母
"""
Created on Wed Feb 23 12:52 2022
@author: _Mumu
Environment: py38
"""
class Solution:
def reverseOnlyLetters(self, s: str) -> str:
n = len(s)
p1, p2 = 0, n
ans = []
while p1 < n:
if 65 <= ord(s[p1]) <=... | [
"noreply@github.com"
] | noreply@github.com |
df9b3ba209711e8bd0de73e352d8017f30ba0f9a | c8822d9aecc2b5a8250f429f4c15c994bcc21519 | /adventofcode/2018/05b.py | 4437e5a8cf72b6c2f5db728874d2405b35cb2d26 | [] | no_license | a-falcone/puzzles | 9aba855a345efda44dc91c7b3d63a830b2c06b31 | 928307a4c28b2a220357dda0ec4915937f11f788 | refs/heads/master | 2023-09-03T10:10:31.711447 | 2023-01-20T03:19:42 | 2023-01-20T03:19:42 | 48,375,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,434 | py | #!/usr/local/bin/python3
"""
--- Day 5: Alchemical Reduction ---
You've managed to sneak in to the prototype suit manufacturing lab. The Elves are making decent progress, but are still struggling with the suit's size reduction capabilities.
While the very latest in 1518 alchemical technology might have solved their p... | [
"falcone@gmail.com"
] | falcone@gmail.com |
8d5f12010d898b523479089cc1196e9871533824 | 49ed52e1793fe66d4022736a7dff4540a8eea75a | /actions/g_tg.py | e01e478e3156a630ff33ddde1c46f8dec60a8487 | [
"Apache-2.0"
] | permissive | alirezabayatmk/albert-persian-lab | a3d888295732cb6a79835fc8e0f9a10770668db9 | f43ec9efad236c4024bf2648a7af02e04e952b4c | refs/heads/master | 2022-11-23T11:14:01.990948 | 2020-07-30T07:38:05 | 2020-07-30T07:38:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | import streamlit as st
import time
from utils import is_identical
from utils.loader import task_configuration, local_css, load_snippet
from utils.model import load_tokenizer, load_model, text_generation
def do_text_generation(task_title, task_config_filename, do_print_code=False):
st.title(task_title)
confi... | [
"m3hrdadfi@gmail.com"
] | m3hrdadfi@gmail.com |
e7bc5b408596623a5bf610c7bba934e4da24efab | 197420c1f28ccb98059888dff214c9fd7226e743 | /elements, blocks and directions/classes/class5_A_funcs.py | 3f2a7d6da1786dea286652d45ddc788ab0d67f48 | [] | no_license | Vovanuch/python-basics-1 | fc10b6f745defff31364b66c65a704a9cf05d076 | a29affec12e8b80a1d3beda3a50cde4867b1dee2 | refs/heads/master | 2023-07-06T17:10:46.341121 | 2021-08-06T05:38:19 | 2021-08-06T05:38:19 | 267,504,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | ''' class A '''
class A:
val = 1
def foo(self):
A.val += 2
def bar(self):
self.val += 1
a = A()
b = A()
a.bar()
a.foo()
c = A()
print(a.val)
print(b.val)
print(c.val)
| [
"vetohin.vladimir@gmail.com"
] | vetohin.vladimir@gmail.com |
eb74fd563b3cb040a1fd1f494b888b3306520da1 | cc8b9618bc1a6fe069922c4d77f1cb09784575a3 | /databases/triage-patient-db.py | a554a85e63dc865b14fb5bdb45529f71b44402bd | [] | no_license | mell00/oneview | 53b0e881dc73920892532fab617e61ab5f3c3cf5 | b36fde58aee64ffe8aacee276d2117e700fbd14a | refs/heads/master | 2021-01-01T07:47:57.123781 | 2020-03-09T19:58:53 | 2020-03-09T19:58:53 | 239,179,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | import os
import pyodbc
if start = 'import':
driver = pyodbc.drivers()
conn = pyodbc.connect(('Driver={};Server=DESKTOP-TVBHO64\SQLEXPRESS;Database=OneView;Trusted_Connection=yes;').format(driver))
cursor = conn.cursor()
cursor.execute('SELECT * FROM OneView.dbo.Patient_Info')
cursor.execute('INSERT IN... | [
"noreply@github.com"
] | noreply@github.com |
4f90f4f74e88b9a17bedae70a57b7ec991d00770 | 60cf1c6f0b357e9c4199636b5b219c11b54860a6 | /20190215_OBDp/check_error_log.py | 6248c45482990e741699d921a0f2764705b7fda1 | [] | no_license | aloejhb/EMana | ab33240e88204a74719e35270dc328b7fc66c909 | 3d70fadd3d0360c1d508e816abc77a531fb9e78e | refs/heads/master | 2020-05-22T15:25:31.614787 | 2019-06-20T10:19:43 | 2019-06-20T10:19:43 | 186,407,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import os
# import sys
# sys.path.insert(0, '/path/to/application/app/folder')
data_root_dir = '/run/user/1000/gvfs/smb-share:server=tungsten-nas.fmi.ch,share=landing_gmicro_sem'
result_dir = '/home/hubo/Projects/juvenile_EM/OBDp_overview/'
os.chdir(data_root_dir)
stack_name = '20190215_Bo_juvenile_overviewstackOBDp'
... | [
"b.hu@stud.uni-heidelberg.de"
] | b.hu@stud.uni-heidelberg.de |
a716caf5a278f27a52b4c137c8691c3da74f975d | f8d37aba59066156738dec56a9e97ee8f7230c4f | /venv/bin/django-admin | 8c9a9d7899d4895766f2b734bcc8f4e7635eae8d | [] | no_license | Piyush026/django-crud | 01ff6c0c89f58614bd2050b4af92af4046bb1424 | 0e0827be439991de9bd84da8d399518059e02b46 | refs/heads/master | 2020-12-13T21:09:53.310959 | 2020-01-17T10:52:38 | 2020-01-17T10:52:38 | 234,529,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | #!/home/lovkesh/PycharmProjects/django-crud/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"piyush.jaiswal@ezeiatech.in"
] | piyush.jaiswal@ezeiatech.in | |
7c7e67d27b764ca813e58971be7ee5ec46ca05c5 | e49a07ad215172e9c82cb418b10371bf0ce1c0f7 | /第1章 python基础/Python基础01/19-打印1-100之间的偶数.py | 4549dced2d7a0a0a558734f64134b9b56b6a40e8 | [] | no_license | taogangshow/python_Code | 829c25a7e32ead388c8b3ffa763cb9cf587bfd7b | 4b3d6992ec407d6069f3187ca7e402a14d863fff | refs/heads/master | 2022-12-16T01:26:17.569230 | 2018-11-16T10:07:59 | 2018-11-16T10:07:59 | 157,832,985 | 0 | 1 | null | 2022-11-25T09:55:32 | 2018-11-16T08:00:13 | Python | UTF-8 | Python | false | false | 61 | py | i = 1
while i<=100:
if i%2==0:
print(i)
i+=1
| [
"cdtaogang@163.com"
] | cdtaogang@163.com |
0d7ea71313641eb814772572eb30f21bfa1e6d30 | ac37ceb60d504d39b78d87acd06c85717a627659 | /topological_sort.py | df3e4e2f83d8640c38cdafcbd2cf8883ca87c5db | [] | no_license | shlvd/Diff_algo | bf8c399f6053971477e80f92caa82251d5b76509 | 19c4afe4488f13fd74c185c855ff88d91c7113de | refs/heads/master | 2023-03-03T17:29:32.164528 | 2023-02-15T19:21:17 | 2023-02-15T19:21:17 | 195,655,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,607 | py | class Stack:
"""
Stack: LIFO Data Structure.
Operations:
push(item)
pop()
peek()
isEmpty()
size()
"""
def __init__(self):
"""
Define an empty stack.
Here we are using list to implement the Stack data... | [
"noreply@github.com"
] | noreply@github.com |
8bc98a9ea1f436150e41ed6967f9de092a257ae4 | 7a6e6387f23c0c1f3d3ee3e71c09a0601039704b | /mysite/mysite/settings.py | 1c9f9ac6a9a98578912474ba43ed078ded494097 | [] | no_license | sivavavilla/python_django | 8140c3ee78899cbe61690afc6691bc2190081894 | bd460963df4fbf87c49090aef06f6ca966e9ba8d | refs/heads/master | 2020-03-27T19:11:02.124482 | 2018-09-02T04:24:04 | 2018-09-02T04:24:04 | 146,970,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,178 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"shiva.vavilla@gmail.com"
] | shiva.vavilla@gmail.com |
d91d13ddff8861446f8953cb6599c35a87c5b6a4 | ac557bfc774de2ac4b6ad6955e905616ce6b5c8d | /easy_ocr.py | eee2cc369ef65a1fdf503c841de2bd4d16ef58ce | [] | no_license | Lee-jaehyun/api | 45b796c8a4e810f4fd2552c0d4858ffa3180856e | caaf7488af7ca735e6e91567d43a5b72fb1d56e9 | refs/heads/main | 2023-08-13T17:38:06.128614 | 2021-10-14T05:22:29 | 2021-10-14T05:22:29 | 416,998,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | import easyocr
import time
import datetime
import cv2
from deskew import determine_skew
from mser import mser_process
from angle4 import rotate
from deskew import determine_skew
from angle4 import rotate
reader = easyocr.Reader(['ko'], gpu=False)
image = cv2.imread("../../Desktop/skewed1.jpeg")
start = time.time()
#i... | [
"noreply@github.com"
] | noreply@github.com |
f9579482f65166748aaafc04748e269ac0730e34 | 082a2149d5f03426455f4021df3759011a4e5597 | /CDN/telemetry_upload.py | 83428070a89dab2a96e980033ea8a900345fe61f | [
"MIT"
] | permissive | projectOpenRAP/OpenRAP | e1252cf3e04f690054cd2da9584b2a6932a9e30d | 858bcdc23d7cd1ad22388ef9779e6779384f963a | refs/heads/develop-v3 | 2022-12-12T10:50:10.685557 | 2019-06-22T10:51:18 | 2019-06-22T10:51:18 | 104,078,355 | 43 | 14 | MIT | 2022-12-08T11:20:25 | 2017-09-19T13:27:20 | JavaScript | UTF-8 | Python | false | false | 7,870 | py | #!/usr/bin/env python
""" Uploaded telemetry to cloud server in regular interval """
import sys, os, subprocess, shutil
import json
import jwt
import logging
import random
import requests
import string
#from secrets import token_urlsafe
import time, threading
#############
#Global configurations for build
regURL = '... | [
"pronoy@aikaan.io"
] | pronoy@aikaan.io |
4e27cea422c4ce1bae7e9ddb013707c1ff873417 | 12b3c5674d9123da7da7074981d8c5e8f5acfb0e | /helloword.py | 0b7e3b8bd73153a6807150febdeb3b4ffc873b76 | [] | no_license | lunalucas123/Preparation | ba208131bb9aa2bf8949703bfa2a8a514533f01e | 4ed22472117b82b708433d826dc159f145e3b6de | refs/heads/master | 2022-12-24T18:11:57.232942 | 2020-10-03T19:28:38 | 2020-10-03T19:28:38 | 300,959,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | print("Hello Babe") | [
"geovannymolina@Geovannys-Air.attlocal.net"
] | geovannymolina@Geovannys-Air.attlocal.net |
c071be9b07b67960b4b7cbc9873e9ecba9fc6b0a | 2117d925581acb2feec8a8efb492d11eb227b7d4 | /ddpg_cl/approach.py | 6a7ffa95c190712bf34c8b6f30140c3460802b80 | [
"MIT"
] | permissive | genipap/deep-q-learning | fc61dd81dd378cec57ee005df8f9aeb3e54b296e | 19c44696b680a5b189548797cee43e0d67b62f8e | refs/heads/master | 2021-08-24T02:56:42.851986 | 2017-12-07T19:10:46 | 2017-12-07T19:10:46 | 110,624,525 | 0 | 0 | null | 2017-11-14T01:35:12 | 2017-11-14T01:35:12 | null | UTF-8 | Python | false | false | 17,154 | py | #!/usr/bin/env python
import sys
if "../" not in sys.path: # Path to utilities and other custom modules
sys.path.append("../")
import logging
import numpy as np
import tensorflow as tf
import json
from approach_network.app_actor_net import AppActorNetwork
from approach_network.app_critic_net import Ap... | [
"zhiqianq@andrew.cmu.edu"
] | zhiqianq@andrew.cmu.edu |
1f46f8881fa2869c4b9401b44520823e4ffea0f6 | a46da291be8183e7b466b0f2abd08e4f9156f805 | /unit2/project/activity_01.py | 40d0582ff3aa783ab9e41f11adc2f4730e5c5e9f | [] | no_license | AdriRiv/StructuredProgramming2A | 69802728ad3e6162e5caa6b4334bf84db87d6375 | dd44a3b2d85d55688af1493bcaa96701d2da1f80 | refs/heads/master | 2023-07-13T19:54:19.934959 | 2021-08-05T13:28:27 | 2021-08-05T13:28:27 | 370,607,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py |
import sys
def isitPrime(numb):
message("This is a function")
count= 1
for idx in range(1, numb ):
if (numb%idx == 0):
count= count+1
if(count<= 2):
print(f'The number {numb} is prime')
return True
else:
print (f'The number {numb} is not prime')
return Fa... | [
"dani2.martinez50@gmail.com"
] | dani2.martinez50@gmail.com |
12cafe149e4b1f948575999cdfe38d218724a2a0 | 62cefb74a4648f521ca0bedf2dc56ef00372c4e6 | /anti-XSS/lib/var/links.py | d7db2c2b5ca00930465a7570db20f1e2c1dcec06 | [
"MIT"
] | permissive | p4int3r/Tools | e78327780c2df153fd165e471dc1f81961ceb35e | d2c675c2be0a5fa5ec4bd6ba59c81fe1348d5c20 | refs/heads/master | 2021-09-04T14:03:11.158397 | 2018-01-19T09:03:28 | 2018-01-19T09:03:28 | 112,544,353 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #!/usr/bin/env python
'''
Copyright (c) 2016 anti-XSS developers
'''
class Links(object):
'''
Links class used as a global var.
'''
content = []
def __init__(self):
pass
def addText(self, text):
self.content.append(text)
def setContent(self, content):
self.conte... | [
"root@kali.org"
] | root@kali.org |
73a34062044e8bbacbf5e735782bef6c3a6cbc5a | 85df75bec1ea604c21db36b8892c90e0d7b7574f | /armstrong/core/arm_layout/utils.py | c7bb882623ba0881a93e8ae89a446d49251f0d1a | [
"Apache-2.0"
] | permissive | niran/armstrong.core.arm_layout | a569a64f84085b55509b26c004a9a41af3952047 | 229106581439c370ba51b1395e5e5e4db111a0bc | refs/heads/master | 2021-01-16T19:29:16.017160 | 2012-03-16T16:29:58 | 2012-03-16T16:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
def get_layout_template_name(model, name):
ret = []
for a in model.__class__.mro():
if not hasattr(a, "_meta"):
continue
ret.append("layout/%s/%s/%s.html" % (a._meta.app_label,
... | [
"development@domain51.com"
] | development@domain51.com |
2df5698d0bfcfc28ba8d4dcf61539ca01cc5614e | c2a5617d7aa2b51706b443927cf0b1f046f4aa04 | /warmup.py | 1290ed5e47a8f29bde07af35dadfe477ae093598 | [] | no_license | TsvetomirTsanov/testing- | 9ba0e67e2c2bfd7ba750e8d21a5c0c0828368359 | 5fb1d41259d9f96bf3bfdc7e4fea42f726e9a257 | refs/heads/master | 2021-05-30T04:31:09.353130 | 2015-03-25T13:57:25 | 2015-03-25T13:57:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,593 | py | def factorial (n):
result = 1
for x in range(1, n+1):
result *=x
return result
def fibonacci(n):
result = []
a = 1
b = 1
while len(result) < n:
result.append(a)
next_fib = a+b
a = b
b = next_rib
return result
def sum_of_digits(n):
ret... | [
"cvetmir464@gmail.com"
] | cvetmir464@gmail.com |
60c721e6c7d21277963b95af8fdc2aa107b72302 | 21df7cd93e156af8357596143792c22b44e14747 | /regression/SimpleLinearRegression.py | 963a2797127498672b735dbc7c59e572c6b024fa | [] | no_license | yanyongyong/machineLearn | 0cac90c1d0b4f7021e3f9ca658268f3c433b481f | d77a13f83679ba4b06bf24c6c6019dc2af55986f | refs/heads/master | 2021-09-03T08:25:33.933996 | 2018-01-07T14:15:52 | 2018-01-07T14:15:52 | 107,839,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | import numpy as np
#简单的线性回归
def fitSLR(x,y):
n = len(x)
denominator = 0 #分母
numerator = 0 #分子
for i in range(0,n):
numerator += (x[i]- np.mean(x))*(y[i] - np.mean(y))
denominator += (x[i] - np.mean(x))**2
b1 = numerator/float(denominator)
b0 = np.mean(y) - b1*np.mean(x)
# b0 ... | [
"123456"
] | 123456 |
a59f68bfb54a9e7eb89a1e7368ae60cb0a1cf949 | bddc3a96ba342ea235fd192f6ee6686ee0602dc9 | /src/basic-c6/human-class.py | 27b5269c8b60626dedc0849ffb4245e361cbfd93 | [] | no_license | n18010/programming-term2 | e927d12eb18427000ae71c604e449351ed9a548b | 89b16dc7baff918b97ba9fe07ccf3520bf88c227 | refs/heads/master | 2020-03-22T08:59:29.466308 | 2018-08-29T06:38:34 | 2018-08-29T06:38:34 | 139,806,129 | 0 | 0 | null | 2018-07-05T06:42:10 | 2018-07-05T06:42:10 | null | UTF-8 | Python | false | false | 588 | py | # クラスを設計したところ
class Human:
''' 人間を表すクラス'''
def search(self, place):
'''周りを見る処理'''
pass
def take(self, food):
'''物を掴む処理'''
self.food = food
def open_mouth(self):
'''口を開ける処理'''
pass
def eat(self):
'''食物を食べる処理'''
print(self.food+"を食べまし... | [
"n18010@std.it-college.ac.jp"
] | n18010@std.it-college.ac.jp |
ef0669b9fba46a00cfd0433f43ee520c247f88fb | 171b49fe5cb0b62db82daa735d1423b1d801f73d | /quiz_app/quizzes/urls.py | b3a2a0029da9e37e7591a924b16f7ca352d843ad | [] | no_license | H0sway/ssbm-quiz-app | add5999529209b8669615428c6d527b7187633a0 | 7bae166baadd5b713e5e594bfe42c188047d6134 | refs/heads/master | 2020-03-28T12:49:45.979772 | 2018-09-27T18:43:26 | 2018-09-27T18:43:26 | 148,338,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Import Modules
from django.urls import path, re_path, include
from django.contrib import admin
from . import views
# API/Admin URLs
urlpatterns = [
path('admin/', admin.site.urls),
re_path('api/quizzes/', views.QuizList.as_view()),
re_path('api/quizzes/<str:name>/', views.SingleQuiz.as_view()),
re_pa... | [
"jkrussell756@gmail.com"
] | jkrussell756@gmail.com |
a2ee918ee914a6a2440aeba1db575f22ba3e78bf | 458b1133df5b38a017f3a690a624a54f0f43fda7 | /PaperExperiments/XHExp041/parameters.py | 62f97ccd29ad9f45eebb6360c8de059e6a0f209d | [
"MIT"
] | permissive | stefan-c-kremer/TE_World2 | 9c7eca30ee6200d371183c5ba32b3345a4cc04ee | 8e1fae218af8a1eabae776deecac62192c22e0ca | refs/heads/master | 2020-12-18T14:31:00.639003 | 2020-02-04T15:55:49 | 2020-02-04T15:55:49 | 235,413,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,604 | py |
# parameters.py
"""
Exp 41 - {'Initial_genes': '5000', 'Host_mutation_rate': '0.30', 'TE_progeny': '0.15, 0, 0.55, 1, 0.30, 2', 'TE_Insertion_Distribution': 'Flat()', 'Carrying_capacity': '30', 'TE_excision_rate': '0.1', 'Junk_BP': '1.4', 'Gene_Insertion_Distribution': 'Flat()', 'mutation_effect': '0.10', 'TE_death_ra... | [
"stefan@kremer.ca"
] | stefan@kremer.ca |
05ee330ac8c279f0bae14d923b27e6c6e2202f01 | f9c8af20349f2fe4a73be4d038826caff87e0ab1 | /Problem Solving/Basic/gaming_array.py | e60b282eaa6118282d99197c61d03d8e0b47db8b | [] | no_license | danylo-boiko/HackerRank | 0ea14716328ac37377716df7c2fa997805d3f9bf | 1a5bb3462c59e9d8f4d675838a32c55e593f4b8a | refs/heads/main | 2023-08-14T12:36:18.179156 | 2021-10-05T23:13:29 | 2021-10-05T23:13:29 | 400,652,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # https://www.hackerrank.com/challenges/an-interesting-game-1/problem
# !/bin/python3
def gamingArray(arr):
mx = count = 0
for el in arr:
if el > mx:
mx = el
count += 1
return "ANDY" if count % 2 == 0 else "BOB"
if __name__ == '__main__':
g = int(input().strip())
... | [
"danielboyko02@gmail.com"
] | danielboyko02@gmail.com |
2a57eb8d02ae5ea6db9e98289714f423bbba977b | 5823b28a4b4239d953b314f23cb3e3fb33f96c89 | /Uallio_learning/plugins/elimina_base.py | 2be1984ea6f73c2729bed08f0c4bcf18cdb8146a | [] | no_license | feniculiadmin/UallioEdu | 0c63553d8750b967ffbfba8034f69f504531d5bd | d4edb2ef94f2dec7a461a7fb00cacc66366144c2 | refs/heads/main | 2023-02-09T00:55:28.364174 | 2021-01-02T16:19:41 | 2021-01-02T16:19:41 | 305,513,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | #configurazione
id_data="learning_001"
import json
import string
class plugin_elimina(object):
def __init__(self):
self.input = 'text'
self.toListen = '/elimina'
print("Il comando /elimina è in ascolto")
def action(self, param=None, msg=None):
print (param)
if len(para... | [
"noreply@github.com"
] | noreply@github.com |
5303d7dd4b2b9e93a5c36f9aa130708b0f19825b | 5528b7e582bde0c1c461c6784379182f149ee0c5 | /ulohy/24.3.py | 3c471bd88f4c7ec2aa62822aa18fda32d3475265 | [] | no_license | MichalRybecky/Informatika | 64c649c3dab76dce497d38a58e99d2c3ee613924 | fccc0b51a1ba8c6a6255bb63f48a97bd7ac1041d | refs/heads/main | 2023-04-10T20:50:17.088822 | 2021-04-26T21:05:17 | 2021-04-26T21:05:17 | 325,068,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | with open('ziaci.txt', 'r') as file:
mena = [x.strip() for x in file.readlines()]
slicer = int(len(mena) / 2)
mena_1 = mena[:slicer] # krstne mena
mena_2 = mena[slicer:] # priezviska
print(f'Pocet mien v subore: {slicer}')
print(f'Najdlhsie krstne meno: {max(mena_1, key=len)}')
print(f'Najdlhsie priezvisko: {max... | [
"michalrybec@protonmail.com"
] | michalrybec@protonmail.com |
465b87dd2605a4e591b7693d9ff7ef6ed379c2e6 | f39c2c500873180d953ab9a7b22a4f6df95fb1c3 | /Amazon/Pyramid Transition Matrix.py | 24f0dd8cd85fc636e5f6ed3c3ff56adc101c0a4e | [] | no_license | Jason003/interview | 458516f671d7da0d3585f89b098c5370edcd9f04 | e153306b85c3687b23a332812a0885d25ecce904 | refs/heads/master | 2021-07-15T15:28:07.175276 | 2021-02-05T03:21:59 | 2021-02-05T03:21:59 | 224,898,150 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | '''
Input: bottom = "BCD", allowed = ["BCG", "CDE", "GEA", "FFF"]
Output: true
Explanation:
We can stack the pyramid like this:
A
/ \
G E
/ \ / \
B C D
We are allowed to place G on top of B and C because BCG is an allowed triple. Similarly, we can place E on top of C and D, then A on top of G and E.
'... | [
"jiefanli97@gmail.com"
] | jiefanli97@gmail.com |
ba4d170799f444f1d2db58e2b09ae9d09f2044e5 | 965af75565d1b36de2962cad22902f44dcb80b7e | /products/migrations/0002_product_description.py | a69d6cccf3a5f0f6907343eb081ee4c5301dbf7d | [] | no_license | Yojanpardo/cost_center | 675e6e6becdf6d59e76607dba5ced0487402ad97 | 346a52d917e070d244119e5ed08e93a99b701f51 | refs/heads/master | 2022-12-01T09:44:15.716651 | 2022-11-22T13:41:21 | 2022-11-22T13:41:21 | 167,300,526 | 0 | 0 | null | 2022-11-22T13:41:22 | 2019-01-24T04:02:54 | Python | UTF-8 | Python | false | false | 404 | py | # Generated by Django 2.1.5 on 2019-01-26 20:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='description',
... | [
"Yojan.Pardo@gmail.com"
] | Yojan.Pardo@gmail.com |
600b1577655a55e545db415b031f237b419098f0 | ef2eacb4866a2df579cf43312891ac2df11d38be | /plan/rota.py | 6369d64dfcc1d0463bdb06da477fcfb77d3aede2 | [] | no_license | vitorshaft/roboMovel | 862a67eb697297954561cfec7010e8770f9f8f36 | d53ea2389d0f552dfdf3f1d98aa6467d26dcecd9 | refs/heads/master | 2022-11-29T05:21:58.751007 | 2020-08-23T01:18:07 | 2020-08-23T01:18:07 | 258,174,509 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | import math
class plan:
def __init__(self):
pass
def traj(self,xo,yo,xr,yr): #retorna angulo e distancia para deslocamento em linha reta
self.dx = float(xo-xr)
self.dy = float(yo-yr)
try:
self.tg = self.dy/self.dx
except:
self.tg = self.dy/(self.dx+0.0000000000001)
self.h = math.hypot(self.dx,self.... | [
"vtrshaft@gmail.com"
] | vtrshaft@gmail.com |
8b9b6a34ebd947aea8f503348abdfbd4aa9a9026 | 3e5611aac055a0e1c7e9ab30aa8192e70527d4fb | /friendParing.py | eda1f762e32caba5b4ccf12f844c42ab00b21fae | [] | no_license | GeorgeGithiri5/Dynamic_Programming | 2d6234ef84f47ba97793cbbdd0ad3a95ffc5be4d | 66543496d428a52c2097f1eabd60cad4f8cad417 | refs/heads/master | 2023-03-29T07:23:04.441195 | 2021-04-13T09:22:21 | 2021-04-13T09:22:21 | 298,251,373 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | def countfriendPairing(n):
dp = [0 for i in range(n+1)]
for i in range(n+1):
if(i<=2):
dp[i] = i
else:
dp[i] = dp[i-1] + (i - 1)*dp[i-2]
return dp[n]
n = 4
print(countfriendPairing(n)) | [
"georgegithiri002@gmail.com"
] | georgegithiri002@gmail.com |
ae60e9b1424a37519eecbabcfeb13e32fe0e0f59 | df1348a67a54fa530f620ba1145c34d914710fde | /examples/sandbox/sandbox_export.py | 0279085899b7e8a7bfb5c5464169c3afb8f28481 | [
"MIT"
] | permissive | SilverLabUCL/netpyne | bf00991cec1ca44c44476e0a0fff2a15bc28b08c | 72ce78d8c79c060d44513bafa7843756ee06cc45 | refs/heads/master | 2020-07-12T12:45:39.959342 | 2016-11-16T10:26:23 | 2016-11-16T10:26:23 | 73,908,592 | 0 | 0 | null | 2016-11-16T10:21:48 | 2016-11-16T10:21:48 | null | UTF-8 | Python | false | false | 293 | py | import sandbox # import parameters file
from netpyne import sim # import netpyne sim module
sim.createExportNeuroML2(netParams = sandbox.netParams,
simConfig = sandbox.simConfig,
reference = 'sandbox') # create and export network to NeuroML 2 | [
"salvadordura@gmail.com"
] | salvadordura@gmail.com |
e51299f8abc1dd4c7949d0582e9e70aff73626cf | b80ccb2cd65f5f30666e45c1cc14d80ec135a4c1 | /app/api/auth_routes.py | 0bc6f81001df9b06eedf30ab381e62ee24d3d830 | [
"MIT"
] | permissive | nikhilmenon2/Learn2Cook | d1109a1820cbc3881ffbcf4ab7ee2a1357df3377 | 8276c8d42e1476f32916952b105fa434d4c9abcc | refs/heads/main | 2023-05-22T15:01:59.315691 | 2021-06-14T16:00:30 | 2021-06-14T16:00:30 | 335,084,032 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,634 | py | from flask import Blueprint, jsonify, session, request
from app.models import User, db
from app.forms import LoginForm
from app.forms import SignUpForm
from flask_login import current_user, login_user, logout_user, login_required
auth_routes = Blueprint('auth', __name__)
def validation_errors_to_error_messages(valid... | [
"nikhilmenon@comcast.net"
] | nikhilmenon@comcast.net |
125c76db9f1f9f7db1a60cc1fac82e87519e6ac9 | c342df24a9e2a94c5b952b57d73e45ee35adea80 | /dqn_bullet_cartpole.py | f1a52ad5b053b903b878f9a354642da5683ba6ec | [
"MIT"
] | permissive | vyraun/cartpoleplusplus | 4b652d4ba0210e5abdb78931153d6076839cf6df | 87c0f1b896e6d6919c4dbfcd0bf4306f807b60ef | refs/heads/master | 2020-12-31T02:48:49.650551 | 2016-08-29T03:29:05 | 2016-08-29T03:29:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | #!/usr/bin/env python
# copy pasta from https://github.com/matthiasplappert/keras-rl/blob/master/examples/dqn_cartpole.py
# with some extra arg parsing
import numpy as np
import gym
from keras.models import Sequential
from keras.layers import Dense, Activation, Flatten
from keras.optimizers import Adam
from rl.agen... | [
"matthew.kelcey@gmail.com"
] | matthew.kelcey@gmail.com |
92e94347df736d42fe1f084b575f52e958825236 | c5ce89c843c5078f311cf0552a038733bbc6553d | /node_modules/node-sass/build/config.gypi | 899b7b3edd10524d02cbae95ed3a63445c8ec99a | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | Crazykaopu/myDemo | 58fce2813f8f7223a00d57ca1c10084eb8fa461e | f77ce23b5416648c2d303517757821280eefa258 | refs/heads/master | 2021-01-21T10:19:50.013695 | 2017-02-28T08:36:40 | 2017-02-28T08:36:40 | 83,408,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"qingyunh5@yuanxiang.local"
] | qingyunh5@yuanxiang.local |
e0c05f71ba2c1ec6b84d1cee2e49a9f3fd585618 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_clutched.py | e70757cfd80eae64be874dd7819e132a2b0a95da | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
from xai.brain.wordbase.nouns._clutch import _CLUTCH
#calss header
class _CLUTCHED(_CLUTCH, ):
def __init__(self,):
_CLUTCH.__init__(self)
self.name = "CLUTCHED"
self.specie = 'nouns'
self.basic = "clutch"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
59d94563bfa6f5937003f4b1bdd3072c24cc7d4c | e9f111b913255e2a8963556a638017c6c4729f01 | /randomize_four_digits.py | 0384492097a4e58757931549c4dab66f38246c1c | [] | no_license | dojinkimm/daddy | d609c38333358a6119ad71b4c89f418ae8c071eb | 77e79324da3e7deb11d0a045d888e432a499d388 | refs/heads/master | 2023-01-31T08:21:26.544482 | 2020-12-15T12:25:26 | 2020-12-15T12:25:26 | 285,579,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | """
문장 리스트에서 4자리 혹은 3자리 숫자를 찾아서 랜덤 숫자로 변경해주는 GUI 프로그램
GUI Program that finds four digit or three digit number in a list of sentences,
and changes to random number
"""
import random
import re
import pandas as pd
import PySimpleGUI as sg
def arg_parse():
layout = [
[sg.Text("문장을 입력하세요", size=(25, 1))],
... | [
"dojinkim119@gmail.com"
] | dojinkim119@gmail.com |
a03230f460994f28b677a293aea19162a7708eb2 | 8ff12c53e31f134b9f39f59b9a6f7d4f9142cea7 | /lvlist/teacherPython/lianxi.py | bf2cc0047479923ed84cd01299189d22e12ed361 | [] | no_license | quhuohuo/python | 5b0a80dbec7d22a0b274e4a32d269e85d254718c | 5732c5974519da8e8919dab42b36ab0ab2c99b37 | refs/heads/master | 2021-06-13T11:41:12.356329 | 2017-04-07T08:58:05 | 2017-04-07T08:58:05 | 75,054,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | #!/usr/bin/python
def fun(char):
l = char.split(" ")
char = ''.join(l)
return char
while True:
s = raw_input()
if not len(s):
break
print "before:",s
s = fun(s)
print "after:",s
| [
"813559081@qq.com"
] | 813559081@qq.com |
c1b555142268a2128bd6e519a011a0f94dbd4c23 | 19fa99388ee8ede27c810095667b1df4f31673a2 | /app/api/posts.py | 95af8d6d9081323b3fc93b584a143b9c4aa8026c | [] | no_license | zgfhill/flas | d32941fcc6c1cbe95da85b8a032626168e88f855 | 347cf88480953f92d1aed99087c65538715eef79 | refs/heads/master | 2020-04-18T11:26:21.271140 | 2019-01-25T06:45:27 | 2019-01-25T06:45:27 | 164,623,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | @api.route('/posts/')
def get_posts():
page = request.args.get('page', 1, type=int)
pagination = Post.query.paginate(page, per_page=current_app.config['FLASK_POSTS_PER_PAGE'], error_out=False)
posts = pagination.items
prev = None
if pagination.has_prev:
prev = url_for('api.get_posts', page=page-1)
next = None
... | [
"zgfhill@163.com"
] | zgfhill@163.com |
19774af108915387eb5f2ee44608d270c5137efc | 6d4d69c91eb14150778468f7cf73d8e2a9aa9124 | /t/variant/read_expresses_del.py | a0eba72d31d3b41050cde4c2746b8eee0690634a | [] | no_license | phonybone/Nof1 | 847acf7ce785319590f99271d20b7c126b59b699 | 22d877a96cd4481fdb7bf860c4d0721fcb34ddbe | refs/heads/master | 2021-01-23T13:56:53.606351 | 2013-09-20T23:50:30 | 2013-09-20T23:50:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import unittest, sys, os
from warnings import warn
libdir=os.path.abspath(os.path.join(os.path.dirname(__file__),'..','..','lib'))
sys.path.append(libdir)
from variant import *
class TestExpressesSNP(unittest.TestCase):
def setUp(self):
print
def test_expresses_del(self):
var=Va... | [
"phonybone@gmail.com"
] | phonybone@gmail.com |
8ae40c3182f52ae8c227bb8aabbc5c1f0fcc7c36 | 3804ff9274fe62d92f7f1cb65a5e7ee572e30ada | /personal/migrations/0007_personaldetails_cv.py | 66d0dcf7ca507c0450ae07bef7cde41486c9c775 | [] | no_license | hebs87/PortfolioBackend | eb9450cbe87af478d9714482635d40e0dfb29798 | 27233353045c0f40cbd9de242a77ca0656f7327f | refs/heads/master | 2023-04-18T04:51:13.523443 | 2021-04-06T19:24:21 | 2021-04-06T19:24:21 | 353,143,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Generated by Django 3.1.7 on 2021-04-06 19:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('personal', '0006_auto_20210402_0237'),
]
operations = [
migrations.AddField(
model_name='personaldetails',
name='cv'... | [
"sunnyhebbar@hotmail.co.uk"
] | sunnyhebbar@hotmail.co.uk |
6e33258216c0107f3b441f5a78bae74fa6f4ca29 | 7d54074486b25c398fb2d35f217d40914c24e60c | /manage.py | 9ced450703c3c02c555f1d1c50e8749f3af60761 | [
"MIT"
] | permissive | acemaster/braindump | 2bf56fe6a9905f28bf92f0a9447c0247f4208742 | e8dccc723ce29ad38fc60cdb8153208c790e2947 | refs/heads/master | 2020-04-05T19:01:46.141987 | 2015-12-21T06:38:50 | 2015-12-21T06:38:50 | 48,020,660 | 0 | 1 | null | 2015-12-17T09:29:04 | 2015-12-15T05:01:23 | Python | UTF-8 | Python | false | false | 2,297 | py | #!/usr/bin/env python
import os
COV = None
if os.environ.get('FLASK_COVERAGE'):
import coverage
COV = coverage.coverage(branch=True, include='app/*')
COV.start()
if os.path.exists('.env'):
print('Importing environment from .env...')
for line in open('.env'):
var = line.strip().split('=')
... | [
"lev@circleci.com"
] | lev@circleci.com |
88c3f3374cc6e75c7552d12abc8d38e640ce8948 | ee5206c3cdc25ec6bf526622bf7d2f121c8a8b01 | /ProjectAPI/blog/post/migrations/0003_auto_20190128_1143.py | 1886292de1fcde42bd498d66a955e8a93f631743 | [] | no_license | SunitraD97/ProjectAPI | 6648773021d2ea0d38334ff57de827fe4cf04846 | c3d09ab8be1c2c9642648fabdee224a703820b1e | refs/heads/master | 2020-04-19T02:00:10.087778 | 2019-02-01T08:00:22 | 2019-02-01T08:00:22 | 167,510,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # Generated by Django 2.1.3 on 2019-01-28 04:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('post', '0002_auto_20190123_1131'),
]
operations = [
migrations.RenameField(
model_name='post',
old_name='name',
... | [
"sunitra1525@gmail.com"
] | sunitra1525@gmail.com |
983a777eea0b5f999dc64520c81090b60c106a85 | cd6c6298fb407b7158e25aba2ab28e58517b1bd0 | /tests/test_plugins.py | 54f26a7f79028ccfeae9522314b326c15c0de4a7 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | mociepka/coveragepy | dc58ef4b6072af0e55edb5d920d8a58d4cbeef0c | bc31b68776bb76ac9a650caa3c7a04c84817093d | refs/heads/master | 2021-01-17T20:16:31.014696 | 2016-01-02T21:30:47 | 2016-01-02T21:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,439 | py | # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
"""Tests for plugins."""
import os.path
import coverage
from coverage import env
from coverage.backward import StringIO
from coverage.control import Plugins
from ... | [
"ned@nedbatchelder.com"
] | ned@nedbatchelder.com |
f80a75e0fead93eb8553124874b7dc2654931a65 | df821c05ff8bf3012f4ccce09422fc5f5897e2ae | /tests.py | 745f9f862a45ea2b7b6b9d3d721ea387575ccd17 | [] | no_license | chibole/microblog | aead8056de3852cfb602e79d57a97e828b657abd | c8616e409f844091454a9f1e91bc27cd69c098d3 | refs/heads/master | 2022-12-10T13:10:42.652730 | 2018-09-03T08:26:14 | 2018-09-03T08:26:14 | 117,012,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,036 | py | from datetime import datetime, timedelta
import unittest
from app import create_app, db
from app.models import User, Post
from config import Config
class TestConfig(config):
TESTING = True
SQLALCHEMY_DATABASE_URI = 'sqlite://'
class UserModelCase(unittest.TestCase):
def setUp(self):
self.app = create_app(TestCon... | [
"jpchibole@gmail.com"
] | jpchibole@gmail.com |
75b1c181f64e2a96ecbe839591084accf82ff610 | cf2b5de53e5c66238fd1bebd7f05b76d2a926f40 | /challenges/codility/lessons/q016/distinct_test.py | 657793d2ce018ba9eac3db63476a71b79dc4dcb5 | [
"MIT"
] | permissive | Joeffison/coding_challenges | 1a7b944cbea4304d482ab2b25e7cd79aed62267d | 0f0c5c2c3dad3a5aabfb66d66c5b6a89bff374ea | refs/heads/master | 2021-01-24T12:41:51.570981 | 2018-10-28T17:56:04 | 2018-10-28T17:56:04 | 123,147,999 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | #!/usr/bin/env python3
import random
import unittest
import numpy as np
from challenges.codility.lessons.q016.distinct_v001 import *
MAX_N = 100000
MIN_ELEMENT = -1000000
MAX_ELEMENT = 1000000
class DistinctTestCase(unittest.TestCase):
def test_description_examples(self):
self.assertEqual(3, solution([2, 1... | [
"joeffison@gmail.com"
] | joeffison@gmail.com |
4b968d9144a0bdaac6149c0dd9b0fc065d9a732f | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /visitcountermacro/0.10/visitcounter/__init__.py | cc01602b681d5594a67a2baecf013cd1e5620f73 | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | from visitcounter import *
| [
"Blackhex@7322e99d-02ea-0310-aa39-e9a107903beb"
] | Blackhex@7322e99d-02ea-0310-aa39-e9a107903beb |
89dbae7928bc21a347120c229dc3439bce749e4e | 80d56c75aa74994b2a4ddd17b77fd374f891a487 | /leetcode/capacity-to-ship.py | 34f55e6a2fd397f3b75a521f26a4bb983578df22 | [] | no_license | multiojuice/solved | 97617eef92ae2f0539ca1fdcdc96b2ac8de6a31a | 39bc43980c0ff4f628e5bb6945f6697c52649d57 | refs/heads/master | 2020-04-01T12:33:06.169355 | 2019-12-05T23:49:22 | 2019-12-05T23:49:22 | 153,212,726 | 0 | 0 | null | 2018-10-26T06:45:03 | 2018-10-16T02:49:01 | Python | UTF-8 | Python | false | false | 949 | py | def shipWithinDays(weights, D) -> int:
min_weight = max(weights)
while True:
shipping_days = [0] * D
current_day = 0
finished = True
small_weight = 999999999
for elm in weights:
if (shipping_days[current_day] + elm <= min_weight):
shipping_day... | [
"multiojuice@gmail.com"
] | multiojuice@gmail.com |
4bbfd3063d60db8bdd0ba24404b6cba6e8214f32 | d916a3a68980aaed1d468f30eb0c11bfb04d8def | /2021_06_14_Linked_list_cycle.py | 2cfffe4d21e1cf1685d43336acfba01f596912c7 | [] | no_license | trinhgliedt/Algo_Practice | 32aff29ca6dc14f9c74308af1d7eaaf0167e1f72 | 480de9be082fdcbcafe68e2cd5fd819dc7815e64 | refs/heads/master | 2023-07-10T23:49:16.519671 | 2021-08-11T05:11:34 | 2021-08-11T05:11:34 | 307,757,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | # https://leetcode.com/problems/linked-list-cycle/
# Given head, the head of a linked list, determine if the linked list has a cycle in it.
# There is a cycle in a linked list if there is some node in the list that can be reached again by continuously following the next pointer. Internally, pos is used to denote the ... | [
"chuot2008@gmail.com"
] | chuot2008@gmail.com |
7641a1c1f9068abb40afb542114f32591bf63472 | f645ebae84e973cb42cffbe7f1d112ff2e3b0597 | /no/edgebox_final/edgebox_final/settings.py | 8cc80e236c92caef201e903858278cbcd6d1bf38 | [] | no_license | bopopescu/file_trans | 709ce437e7aa8ce15136aa6be2f5d696261c30bd | fadc3faf6473539ed083ccd380df92f43115f315 | refs/heads/master | 2022-11-19T18:54:17.868828 | 2020-03-11T04:30:41 | 2020-03-11T04:30:41 | 280,964,974 | 0 | 0 | null | 2020-07-19T22:57:41 | 2020-07-19T22:57:40 | null | UTF-8 | Python | false | false | 3,754 | py | """
Django settings for edgebox_final project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"871488533@qq.com"
] | 871488533@qq.com |
abc88a164d1c63b1a6859acf108ce1707522ff80 | 8f2192867087a15ea3e9b01153eda4abb124a777 | /zad1.py | 824a18ce79e8569d94c96788e67dd6990d9e9015 | [] | no_license | MateuszGrabuszynski/aem1 | 886d7baecc0be50c51235b212020c7552b18334e | 64e49a90f6fa8be8a4ff3881f4a89c19577870c4 | refs/heads/master | 2023-02-08T18:13:59.531961 | 2023-01-28T16:31:02 | 2023-01-28T16:31:02 | 176,085,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | import random as rd
import pandas as pd
import time
start_time = time.time()
GROUPS = 10
POINTS = 201
#rd.seed(65)
# Read distances
distances = pd.read_csv('distances.data', usecols=range(0, POINTS + 1)) # usecols=Omit the index column
distances_cpy = distances.copy()
cols = []
for i in range(POINTS):
col = distanc... | [
"jaroslaw.wieczorek@sealcode.org"
] | jaroslaw.wieczorek@sealcode.org |
c310f33e1c8dbb6251814466ec5e07be15b0a61f | 637fe43cb3b858be426e9b9ce10485430ae1f146 | /fsleyes/gl/gl14/glmask_funcs.py | 3d9bfb590cf1c45bff2b61b253fd436eaac571e6 | [
"BSD-3-Clause",
"CC-BY-3.0",
"Apache-2.0"
] | permissive | laurenpan02/fsleyes | 9dda45c1b1b77f0f042488ddf40fed46e5c77360 | eed8940d422994b6c1f1787381ebac2361b81408 | refs/heads/master | 2023-03-11T16:49:16.994945 | 2021-02-25T18:07:39 | 2021-02-25T18:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | #!/usr/bin/env python
#
# glmask_funcs.py - OpenGL 1.4 functions used by the GLMask class.
#
# Author: Paul McCarthy <pauldmccarthy@gmail.com>
#
"""This module provides functions which are used by the :class:`.GLMask`
class to render :class:`.Image` overlays in an OpenGL 1.4 compatible manner.
"""
import fsleyes.gl.s... | [
"pauldmccarthy@gmail.com"
] | pauldmccarthy@gmail.com |
217bd2af0238293662a1d0bef1aaf8b835af57ff | a4830a0189c325c35c9021479a5958ec870a2e8b | /lib/pyutil/django/mixins.py | 1f6e5aee271e26288ffc4fda4263d7ba951ea772 | [] | no_license | solutionprovider9174/steward | 044c7d299a625108824c854839ac41f51d2ca3fd | fd681593a9d2d339aab0f6f3688412d71cd2ae32 | refs/heads/master | 2022-12-11T06:45:04.544838 | 2020-08-21T02:56:55 | 2020-08-21T02:56:55 | 289,162,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | # Django
from django.http import JsonResponse
from django.forms import BaseFormSet, formset_factory
from django.forms.models import model_to_dict
from django.views.generic.edit import FormMixin
from django.core.exceptions import ImproperlyConfigured
from django.views.generic.detail import SingleObjectTemplateResponseMi... | [
"guangchengwang9174@yandex.com"
] | guangchengwang9174@yandex.com |
d9407c9366f1d45a1762fd66718e8925a40ced24 | fd1a1e72350a189e68a99287483a5aa725c2f37c | /assignment5/wiki_race_challenge.py | 62549a8ba0537ee2c26c256e54b414b1289dd4e3 | [] | no_license | j-hermansen/in4110 | 106909ccdaa5a4b5b395799151cc7037498a83b5 | f175c342e7df0a393236c8e9dadca5ba538a373a | refs/heads/master | 2023-04-14T01:49:43.987222 | 2021-04-22T06:08:14 | 2021-04-22T06:08:14 | 360,410,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,922 | py | import os
import time
from collections import deque
from requesting_urls import get_html
from filter_urls import find_urls
from filter_urls import find_articles
def shortest_path(start, end):
""" Function to find shortest path between two url's using BFS (Breadth First Search).
:param start (str): The url t... | [
"jhermansen@live.no"
] | jhermansen@live.no |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.