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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b8f4ee041f600aa5ba18e1c0dae926a19c493bbb | 42bd938432bdd5c8bc12ac6887cdc2678159a0dc | /apps/user/services/list.py | db8a6833e481788a3c961947a07482365434f5b8 | [] | no_license | Rhyanz46/halal_be_halal | 73aca58c8e1d3f8fc6572ca45044d0e249294297 | b6e6760b9802c21e13f357bca9e8314de3771785 | refs/heads/master | 2022-12-10T21:05:20.768102 | 2020-09-10T13:40:36 | 2020-09-10T13:40:36 | 233,027,107 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | from flask_jwt_extended import get_jwt_identity, jwt_required
from ..models import User
# from apps.category_access.models import CategoryAccess
@jwt_required
def user_list(page):
current_user = User.query.filter_by(id=get_jwt_identity()).first()
if not current_user:
return {"message": "user authentic... | [
"rianariansaputra@gmail.com"
] | rianariansaputra@gmail.com |
85fd333d2b6f43110d9c7b7171b122dfcdc0a466 | e19527d95fb2105a09bc1435146a1148bfe01476 | /utils/general.py | 122f37a50fc4e4ba87c3765b807a74616dfeb9fd | [] | no_license | shuaih7/ishop_ocr | 7da1bc8f3f764853d7c0151e784b821cc3d4b58c | 57e80d336f1362adefeb57a13fa4ca4d2cfd265f | refs/heads/main | 2023-02-22T15:50:36.294246 | 2021-01-28T03:46:36 | 2021-01-28T03:46:36 | 329,258,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,469 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on 01.24.2021
Created on 01.24.2021
Author: haoshaui@handaotech.com
'''
import os
import cv2
import sys
import numpy as np
abs_path = os.path.abspath(os.path.dirname(__file__))
sys.path.append(abs_path)
def draw_results(image, results, isClosed=True, size=0.6... | [
"shuaih7@gmail.com"
] | shuaih7@gmail.com |
f46082a4187149ad6505842b4c7f3768800d9dfe | b73668c3bb3c02a19308c2aa68a8dba5f69eee02 | /pam20_python/pamaware.py | ab267491d7be20082b6000e34ead9f5f95aaa202 | [] | no_license | romarco1983/pam20 | ba6dcc98e8f6ede434c703eaeaee3543be61b43c | 7123ad8647ab01372f55d773d78d90545b359847 | refs/heads/master | 2023-02-03T12:20:31.485421 | 2020-12-21T20:33:37 | 2020-12-21T20:33:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | #!/usr/bin/python
#-*- coding: utf-8-*-
import pam
p=pam.pam()
userName=input("Nom usuari: ")
userPasswd=input("Passwd: ")
p.authenticate(userName, userPasswd)
print('{} {}'.format(p.code,p.reason))
if p.code == 0:
for i in range(1,11):
print(i)
else:
print("Error autenticacio")
| [
"romarco1983@gmail.com"
] | romarco1983@gmail.com |
e889c6566264f92d3ca45e7fb7238cb734823742 | 967a09db2131c3c49af18fc909481058ac7bc27b | /package/lib/boltlinux/package/deb2bolt/debianpackagecache.py | 3705616a5a2a591a111794643e09cd0f3e2d813b | [
"MIT"
] | permissive | pombredanne/distro-tools-1 | c0530981f132faabf61abbf0adbe20b5f393d501 | 38b6c3d90ab4580523243c44adb0a47acb46ec72 | refs/heads/master | 2023-02-26T21:44:54.446827 | 2021-02-08T21:39:51 | 2021-02-08T21:39:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,545 | py | # -*- encoding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) 2019 Tobias Koch <tobias.koch@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including... | [
"tobias.koch@gmail.com"
] | tobias.koch@gmail.com |
df0df3a114e599c36a4d9a1fef81af871183c836 | c82a04b8aa975b1596e48e13deaf5f11a2ae94ba | /test.py | 99b9847323d2a912600184ba1f913a0369ba9259 | [
"MIT"
] | permissive | budsus/CodeSearchNet | 466e6d06b8b0f08f418906151af6018cc7253ca1 | d79d0fde2569e4ed7ab0454e3b019fba3d6c7b90 | refs/heads/master | 2023-03-17T07:48:40.451414 | 2019-12-12T13:08:47 | 2019-12-12T13:08:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import torch
x = torch.randn(10, 5)
print(x)
labels = torch.LongTensor([1,2,3,3,0,0,0,0,0,0])
n_classes = x.shape[-1]
one_hot = torch.nn.functional.one_hot(labels, n_classes)
print(one_hot)
print(x * one_hot)
compare = (x * one_hot).sum(-1).unsqueeze(-1).repeat(1, n_classes)
print(compare)
compared_scores = x... | [
"bentrevett@gmail.com"
] | bentrevett@gmail.com |
4add977a3570e82af6b1561f73a00e5896c9ac0f | b7f6cfda4fe68bde9d3896c5f29190c496b426d4 | /c11/a2/A2/run_amazon.py | 036216081c49e6426088d74288f4aec4bdeafa58 | [] | no_license | aribshaikh/UofT-Projects | bca513e153fa30860c832fe9af48409ac79a9433 | 97c5b3ed782da53e4ce49c7526a6e47ad5bfc5ee | refs/heads/main | 2023-03-06T20:06:59.927356 | 2021-02-16T19:08:25 | 2021-02-16T19:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,999 | py | """
CSCC11 - Introduction to Machine Learning, Fall 2020, Assignment 2
B. Chan, E. Franco, D. Fleet
This script runs an experiment on the Amazon dataset.
It fetches hyperparameters AMAZON_HYPERPARAMETERS from hyperparameters.py
and check model's train, validation, and test accuracies over 10 different seeds.
NOTE: As... | [
"jeffersonli.li@mail.utoronto.ca"
] | jeffersonli.li@mail.utoronto.ca |
1646bc77d5dd1916fa665c900bf2713e662ed359 | 3a0feb4707165acab188164a655236017b455020 | /submark/cli.py | e856469cbb5f6a441213ea05df1e009248889fe1 | [
"MIT"
] | permissive | okken/submark | 71039cb036d986a9c45047f27cec67f6f4b8831e | f3d5247b15267d8f87283a660962d1cb3b89f691 | refs/heads/master | 2020-06-14T23:36:59.553407 | 2019-09-06T19:47:03 | 2019-09-06T19:47:03 | 195,155,294 | 22 | 9 | MIT | 2019-08-24T01:30:50 | 2019-07-04T02:26:17 | Python | UTF-8 | Python | false | false | 118 | py | """
"""
from .submark import convert_list
import fileinput
def main():
print(convert_list(fileinput.input()))
| [
"1568356+okken@users.noreply.github.com"
] | 1568356+okken@users.noreply.github.com |
7d7d54e116753c2861b526fd438f53a485720cc3 | 7713bd03f9a6404f079efeddcc74a6da8a395a26 | /controllers/utility.py | ba47f088893a15b851462462d3a62a8f40b61bad | [] | no_license | ShikharKannoje/pScan | bb59d8d17bc3a0281ab29ee15a220e0522a9b735 | 1254fe876064f8a04d6d84b6551110ca7a40fda2 | refs/heads/master | 2020-03-09T05:54:22.263816 | 2018-04-08T09:55:17 | 2018-04-08T09:55:17 | 128,623,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,922 | py | from modules import *
def rendertxt(fname):
"""
function to read the output text file by praat and return it as a numpy array
"""
data = ["" for i in range(27)]
dbData = defaultdict(float)
# for bias
data[0] = 1
dbData["Bias"] = 1
with open(fname) as f:
f.readline()
... | [
"shikharkannoje09@gmail.com"
] | shikharkannoje09@gmail.com |
d41843063e71c0eb70cad9cfdc310dcb0056ae21 | 9bc286509d70f564cf7f0551fb0d8ca3fa230a40 | /wheel/main/helper.py | 324ea8d033ecbc5a1f8a9d379948f8e836ab3a24 | [] | no_license | m1ck/SocialWheel | 0cc43eed0613dad79e64b249ea9b3bf30b711899 | 151a4310e16f046fac903f3075a7ad0f31fbc197 | refs/heads/master | 2016-08-03T02:56:08.745610 | 2011-10-13T18:39:48 | 2011-10-13T18:39:48 | 283,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,753 | py | #!/usr/bin/python
import sys
import re
import string
import types
import exceptions
import math
class Error(Exception):
def __init__(self, message):
self.message_ = message
def __str__(self):
return self.message_
class InvalidInputException(Error):
def __init__(self, input, message='... | [
"mickcarlo@gmail.com"
] | mickcarlo@gmail.com |
e82199ee6a0782c9298340d3eb954b98610f5eb2 | 66eff0c4dc986a354c08bd1681219d3870651d44 | /Python/QuickSort.py | cb1e420d6adcdee35cdb364788e88b6440cc77af | [] | no_license | Visorgood/CodeBasics | bdd0199821911d602722621d9a7b86bffb9951ef | d015e84f4f61f596a9a87a1a58aa97b6f06641fa | refs/heads/master | 2021-01-22T05:47:56.332189 | 2019-06-06T10:40:14 | 2019-06-06T10:40:14 | 11,051,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | import random
def Swap(A, i, j):
t = A[i]
A[i] = A[j]
A[j] = t
def Partition(A, l, r):
Swap(A, l, random.randint(l, r))
p = A[l]
i = l + 1
for j in range(l + 1, r + 1):
if A[j] < p:
Swap(A, i, j)
i = i + 1
Swap(A, l, i - 1)
return i - 1
def QuickSortRecursive(A, l, r):
if l >= r:
return
i = Part... | [
"slavanw@gmail.com"
] | slavanw@gmail.com |
0120f6c83eece5376403bb9d5185c14bf366b81b | 54f78d59d8cd6d4504cbfa884ad148eac24dbff1 | /alcohall/selections/urls.py | ce0dfafab8b893efccc9f2f7d012793f3347de82 | [] | no_license | pirozhki-2020/backend | 51cc311bf4bb9f0be175d483777c29a696faf527 | 1113bc9f7d6b05b893c7d91c4b503f5b73e3d1e2 | refs/heads/master | 2022-12-10T12:14:35.541832 | 2020-05-30T15:23:45 | 2020-05-30T15:23:45 | 248,353,241 | 0 | 0 | null | 2022-11-22T06:01:43 | 2020-03-18T22:05:18 | Python | UTF-8 | Python | false | false | 249 | py | from django.urls import path
from alcohall.selections import views
urlpatterns = [
path("list", views.SelectionsListView.as_view()),
path("get", views.SelectionGetView.as_view()),
path("create", views.SelectionCreateView.as_view()),
]
| [
"i@artbakulev.com"
] | i@artbakulev.com |
84da4aa3040aff4ba9500cd44c727c2d0862c3a3 | 2771cf964bb56fa7e1326e008622065c6b9ce065 | /portal/views.py | 5896b16c57eb13c15f4bedb4e46b3db9ce0522fd | [] | no_license | chrisivanortega/kenya | 5ad9e820d475eafc91100a6537e46b65d704593f | e6da3e006141aea2015b5764311595304f569965 | refs/heads/master | 2020-05-27T17:44:21.986729 | 2019-05-29T17:01:36 | 2019-05-29T17:01:36 | 188,727,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,403 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse,HttpResponseRedirect
from models import Usuarios,Registro
import json
from dicttoxml import dicttoxml
from django.core import serializers
from datetime imp... | [
"chrisivanortega@gmail.com"
] | chrisivanortega@gmail.com |
3f1e7c2be5e4aad81dc3c4cc8973865624a09628 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03645/s021155194.py | 844491319f19594eb094e23da7af0f647cb6eb7c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | n, m = map(int, input().split())
root_map = dict()
root_map[1] = set()
root_map[n] = set()
for i in range(m):
a, b = map(int, input().split())
if a == 1 or a == n:
root_map[a].add(b)
if b == 1 or b == n:
root_map[b].add(a)
for i in root_map[1]:
if i in root_map[n]:
print("POSSI... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cbdd7d86ad60323cff773157e6c5e90ac6b311d9 | 588a76323a92adbd0014adf23ff668416c47afe2 | /pythonDataPreproccessing/chapter_4_DataPreproccessing/4-4_line_rate_construct.py | b4f241861385db840f9cd900a0c51a0f65d3d10b | [] | no_license | QiuSYang/machine_learning | f696458e4f7d46704b02974497ddd01dcdef8356 | f617707236015f9ad7df0c54e8b8a086a165053a | refs/heads/master | 2021-04-02T03:30:47.920782 | 2021-02-24T06:33:59 | 2021-02-24T06:33:59 | 248,239,140 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | #-*- coding: utf-8 -*-
#线损率属性构造
import pandas as pd
#参数初始化
inputfile= './datasets/electricity_data.xls' #供入供出电量数据
outputfile = './datasets/electricity_data_new.xls' #属性构造后数据文件
data = pd.read_excel(inputfile) #读入数据
data[u'线损率'] = (data[u'供入电量'] - data[u'供出电量'])/data[u'供入电量']
data.to_excel(outputfile, index = False) #... | [
"15962230327@163.com"
] | 15962230327@163.com |
99221f1a5e39ed957ef5ed3c5e9d9f75b4b1f8be | 0b1438bcdb152a6c1135a890ad5a4b13470a4110 | /Stepik/ListOfNumbersByItsCounts.py | 08bca2209bc7ce1594724a89467dc1df951ad9cb | [] | no_license | IuriiBaikov/Python_Education | 8b73d96de7973891d579b596297a67ee9973f880 | 64a73fe3bd1b1e4785daf531a8b23ad2d38ceb39 | refs/heads/master | 2020-03-21T18:41:25.586087 | 2018-07-02T15:20:38 | 2018-07-02T15:20:38 | 138,907,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | inputCount = int(input())
iterator = 1
outputList = []
while iterator <= inputCount:
for x in range(iterator):
outputList.append(iterator)
iterator += 1
for iterator in range(inputCount):
print(int(outputList[iterator]), end="")
# Напишите программу, которая считывает с консоли числа (по одному в с... | [
"medvedyc@gmail.com"
] | medvedyc@gmail.com |
7c72c43070e4acce3ead564e4440967fa1d1feb2 | fbe6049056c594356a4cc117db48c62d3b08d940 | /users/migrations/0001_initial.py | 07944a1e78764cb1b3da7122c1adfbb7f1c36d76 | [] | no_license | travel-sniper/travel-sniper | 28cb35d887c793cf1e751bb0647f3577d28bf3e7 | fce2c1b4dc4c9d1f7b0a96867afb96213f3c63a0 | refs/heads/master | 2023-04-29T19:53:53.202380 | 2019-08-13T19:16:16 | 2019-08-13T19:16:16 | 201,499,846 | 0 | 0 | null | 2023-04-21T20:35:49 | 2019-08-09T16:03:11 | HTML | UTF-8 | Python | false | false | 2,867 | py | # Generated by Django 2.2.3 on 2019-07-10 19:28
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permission... | [
"marco@X303"
] | marco@X303 |
d29107f3723074523c4eb7d4bfc103ebcad4be7d | bfd21d41e2faa9419871e8b67fca13b0b21d5146 | /star_pattern_right_pyramid.py | 4393eb148336fd5b4ee17a922911bc3731e4e813 | [] | no_license | harshalkumeriya/Practice-Coding | 6a02c576bdfba0711bda6d65d9f7c81e12c80a2a | 3deba229d210f45a4abb94d4016c3bd342d8057d | refs/heads/master | 2022-11-16T00:58:19.155607 | 2020-07-08T05:44:17 | 2020-07-08T05:44:17 | 277,999,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | n = int(5)
for i in range(1,n+1):
print((n - i) * ' ', end = '')
print((i*'*'))
| [
"harshal.kumeriya183@gmail.com"
] | harshal.kumeriya183@gmail.com |
cb7d9dc5b51d2dec2a71ba930093a556b73d551a | 2537756cb251008eacd247db82a26c43967e1381 | /backend/api/v1beta1/python_http_client/kfp_server_api_v1beta1/api/healthz_service_api.py | 3df82be4ce94b2cc598fc68c18a0079435e393e2 | [
"Apache-2.0"
] | permissive | TheMichaelHu/pipelines | 074edf3b08e2877a996061bacdf4b9563270cc5b | 4c6abe5afcc1b0511f0d0ab91b7ec4522da5a1df | refs/heads/master | 2022-12-10T18:34:08.540736 | 2022-11-02T00:31:45 | 2022-11-02T00:31:45 | 241,268,119 | 0 | 0 | Apache-2.0 | 2020-02-18T04:00:31 | 2020-02-18T04:00:30 | null | UTF-8 | Python | false | false | 5,374 | py | # coding: utf-8
"""
Kubeflow Pipelines API
This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition.
Contact: kubeflow-pipelines@google.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import ... | [
"noreply@github.com"
] | noreply@github.com |
37879554ca69ceec2c2b1e5c49b2ad93e0e5788a | b0c024fbc86bbb7a351a0eab4d7e400a8f7d020d | /Day-02/codes/leapyear.py | 5d9740889d212396c35483379a7114a255ed569d | [] | no_license | jdee77/100DaysOfPython | 381dad179e01b660dfc8c065e5e0cead7c1ccca4 | c5dd14aea9e2042076d9057d8cfbe1db81fbb848 | refs/heads/main | 2023-05-12T19:46:22.014127 | 2021-05-30T12:13:57 | 2021-05-30T12:13:57 | 371,087,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | print("LEAP YEAR")
year = int(input("Enter the year :"))
leapYear = False
# a year is leap year if its evenly divisible by 4
# except evenly divisible by 100
# unless not divisible by 400
if year % 100 == 0:
if year % 400 == 0:
leapYear = True
else:
if year % 4 == 0:
leapYear ... | [
"noreply@github.com"
] | noreply@github.com |
d8220c1a931d3e11b15c1e71a3741d7958e4b74c | e50be2bff113a2fbf6755bf2fdbae0f6c841835a | /utils.py | 826be00c746bf0b8c513e08d59c062116dd11733 | [] | no_license | afrobeard/demo | b254bab2743fab02f432f5b95d3283c936d10e14 | dc8edef3af0607716ad2bd48f641ba933a433267 | refs/heads/master | 2021-01-01T16:19:19.767672 | 2013-04-07T13:19:55 | 2013-04-07T13:19:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | import logging
from logging.handlers import RotatingFileHandler
def addFileLogger(logger_object, log_name, level=2):
rotating_file_handler = RotatingFileHandler(log_name)
rotating_file_handler.setFormatter(logging.Formatter(
'%(asctime)s %(levelname)s: %(message)s '
'[in %(pathname)s:%(lineno)d... | [
"iqbaltalaat@gmail.com"
] | iqbaltalaat@gmail.com |
cb7d4cbbaf41c053f8e9a14a858598473cb7e0c6 | 828d18dc4338b50d1cdc3600a0418fc6b279e268 | /locallibrary/catalog/migrations/0004_auto_20190308_1337.py | 6859b19d729128c86aa12505f4d7820124ddb87e | [] | no_license | dmm4613/w4-MDN-django-tutorial | 614659378761fb1155ef9f10440f9e8c28f8e18e | 57a705aebcca82bd3fbd2f28d50bd37fd2a9339b | refs/heads/master | 2020-04-26T19:38:36.685199 | 2019-03-09T02:59:20 | 2019-03-09T02:59:20 | 173,781,696 | 0 | 0 | null | 2019-03-04T16:33:01 | 2019-03-04T16:33:01 | null | UTF-8 | Python | false | false | 423 | py | # Generated by Django 2.1.7 on 2019-03-08 18:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catalog', '0003_bookinstance_borrower'),
]
operations = [
migrations.AlterModelOptions(
name='bookinstance',
options={'order... | [
"dmm4613@gmail.com"
] | dmm4613@gmail.com |
ce130fabb65adf7bb4667f876aa1dff1d65a672d | 0d67ec5869b0c2aa20f1989563cf504afe2fca4b | /python_stack/Django/Users/apps/users/models.py | e973146ad5fc13cf3b4dacd9180c5377453d5a53 | [] | no_license | starxfighter/Python | 17a9bdfbaaa41dc7bea16bc216a24e04860d551a | 9e053e0d41ee8d7ed0159923147951de789f90d6 | refs/heads/master | 2022-11-11T16:52:20.007227 | 2018-04-30T17:16:31 | 2018-04-30T17:16:31 | 127,670,297 | 0 | 1 | null | 2022-10-25T03:47:23 | 2018-04-01T20:51:26 | Python | UTF-8 | Python | false | false | 416 | py | from __future__ import unicode_literals
from django.db import models
class Users(models.Model):
first_name = models.CharField(max_length=255)
last_name = models.CharField(max_length=255)
email_address = models.CharField(max_length=255)
age=models.IntegerField(default=0)
created_at = models.... | [
"dosburn@rocketmail.com"
] | dosburn@rocketmail.com |
9e6bd5b2d0d96c3f8b22a5041c619c8588645fcd | 4b90c356173952cb3a645f5a4024e1de50f91e12 | /polls/migrations/0001_initial.py | bd72ff7775edd83be049571d3b1466bd584b496f | [
"MIT"
] | permissive | marcopuccio/mpbb | 1aa5549f82eb7c949092c542e249ce89e58a490b | 18e303308865493886af7667c79720eee766641c | refs/heads/master | 2021-10-20T03:58:22.693558 | 2019-02-25T16:12:34 | 2019-02-25T16:12:34 | 64,941,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2016-08-04 04:29
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | [
"mpuccio90@gmail.com"
] | mpuccio90@gmail.com |
b8ea6089fbf982c699ef0f102f4a0842d32f6a53 | 24caa6710105a060fab2e17147e6d56609939011 | /03-Python_Data_Science_Toolbox_(Part_1)/02-Default_arguments,_variable-length_arguments_and_scope/01-Pop_quiz_on_understanding_scope.py | 359f983d8c5327a8ca9e09fa52071fdeceb8fece | [] | no_license | inverseundefined/DataCamp | 99607022ad3f899d7681ad1f70fcedab290e269a | 7226b6b6f41888c3610a884db9a226e013d37e56 | refs/heads/master | 2022-01-10T00:53:21.714908 | 2019-07-24T13:27:49 | 2019-07-24T13:27:49 | 198,280,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | '''
Pop quiz on understanding scope
In this exercise, you will practice what you've learned about scope in functions. The variable num has been predefined as 5, alongside the following function definitions:
def func1():
num = 3
print(num)
def func2():
global num
double_num = num * 2
num... | [
"inversedrivenundefined@gmail.com"
] | inversedrivenundefined@gmail.com |
7decda344d3588c536191fa56afabfb8700e9140 | 7821eb838dcf8540efe7348c784359fbf959a8ab | /stacktester/tests/test_server_addresses.py | e9a325a6644806fbf824d14f18d6ba56967e7ab9 | [] | no_license | ameade/stacktester | 7162282e1ddfe286bed7a559cad526b615036bd1 | 9bf949106b801550c990d2db55790a74c22a02c4 | refs/heads/master | 2020-12-24T17:36:12.956807 | 2011-07-06T13:29:34 | 2011-07-06T13:29:34 | 1,937,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,853 | py |
import json
import os
import unittest2 as unittest
from stacktester import openstack
from stacktester import exceptions
class ServerAddressesTest(unittest.TestCase):
@classmethod
def setUpClass(self):
self.os = openstack.Manager()
self.image_ref = self.os.config.env.image_ref
self.... | [
"brian.waldon@rackspace.com"
] | brian.waldon@rackspace.com |
725d302931f49195c6ccb7617c31d139349b1e00 | 70d8bc92825682a0ff975ae2972352dbe57e1087 | /move.py | c57381fb388d8e166561a086c610f862dd9fceee | [] | no_license | cmkolb8/112-Term-Project | c501394bba158204c6dfad2ecaabee42f4c0b21d | fa268e8e9071c4063d350fb96e2ead3c9895f171 | refs/heads/master | 2023-01-29T14:11:54.301039 | 2020-12-09T17:00:03 | 2020-12-09T17:00:03 | 320,020,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | import math
#This file moves the player when the arrow keys are pressed
#algorithm learned from https://lodev.org/cgtutor/raycasting3.html
def left(mode):
yDir = mode.yDir
xDir = mode.xDir
#uses rotation matrix in order to rotate
mode.yDir = mode.xDir * math.sin(mode.rotate) + mode.yDir * math.cos(m... | [
"caitlinkolb@Caitlins-MBP.attlocal.net"
] | caitlinkolb@Caitlins-MBP.attlocal.net |
ebc40e7127a4ef794cb3fda51781c11a38c0c8f7 | 79b3cbfc92b476bcf49fbd79f19f24442035448d | /accounts/models.py | 96bedd4705e0e1451e0fc1ec176568f6e402504b | [] | no_license | ScottWoodbyrne/blog-site | 1a1679e8c51a484189ef56d46858852660c03080 | e871b6d22d6aef9c231bfc14ed48b0fba670850e | refs/heads/master | 2020-04-06T08:04:25.713014 | 2016-09-01T12:51:59 | 2016-09-01T12:51:59 | 65,009,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from __future__ import unicode_literals
from django.contrib.auth.models import AbstractUser, UserManager
from django.db import models
from django.utils import timezone
# Create your models here.
class AccountUserManager(UserManager):
def _create_user(self, username, email, password, is_staff, is_superuser, **extr... | [
"scott.woodbyrne@gmail.com"
] | scott.woodbyrne@gmail.com |
8e8665d33a8f3df1f93560af494176e055b876a4 | 81207a57ae84b2b786b373d9eaa89e04ca662473 | /scripts/update_index.py | b4fa72f135adfbde5960f9e2c3f51b20f42df2a6 | [
"MIT"
] | permissive | ncarkaci/acoustid-server | 9a9187db34c25a4eedbe297564f9d13f05b9c907 | bb0098016d210be8d04ee64d9b42ed80bb947280 | refs/heads/master | 2020-07-22T18:25:46.258746 | 2019-09-05T11:05:01 | 2019-09-05T11:05:01 | 207,288,602 | 1 | 0 | MIT | 2019-09-09T10:58:51 | 2019-09-09T10:58:51 | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python
# Copyright (C) 2011-2012 Lukas Lalinsky
# Distributed under the MIT license, see the LICENSE file for details.
from contextlib import closing
from acoustid.script import run_script
from acoustid.data.fingerprint import update_fingerprint_index
def main(script, opts, args):
with closing(sc... | [
"lalinsky@gmail.com"
] | lalinsky@gmail.com |
8c0cb938f99334d265cbad6a0c70bae39c93449d | 2030fe0cc1c938024b8fd9662a3f2035b5ec80dc | /aula1_ex3.py | 4001d3086458b5f6ce02df718ee0fb29024c0c4a | [] | no_license | luannaserqueira/Python | 0f26e67dd9f88d4e80a6e977e641ae390dd880f8 | 799e051389786dd667a399f68cb153bbd1645856 | refs/heads/master | 2020-04-02T20:25:42.696230 | 2018-10-26T17:23:06 | 2018-10-26T17:23:06 | 154,768,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | # Aula 1 ex3
# Ache os zeros da função: y=3x^2-4x-10
a=3
b=-4
c=-10
delta=b**2-(4*a*c)
print(delta)
x1=(-b+(math.sqrt(delta)))/2*a
print(x1)
x2=(-b-(math.sqrt(delta)))/2*a
print(x2)
print('Os zeros da função são ',x1,' e ',x2,'')
| [
"noreply@github.com"
] | noreply@github.com |
24524f83587d385ff97aec5e49d9379dfb3f883b | b8085ef607da70023214f105eb27bdbc713e596f | /Day2/Slots.py | db6ff0a4f8e7383e149a01736bdb559e14f236c2 | [] | no_license | artheadsweden/python_adv_april19 | 893c9ec76e8505a580439b7a2fd7aa2776503c77 | 04eecd25d4a291dddd608d94968b217fed7b88d8 | refs/heads/master | 2020-05-07T13:41:15.545033 | 2019-04-11T18:47:22 | 2019-04-11T18:47:22 | 180,559,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from pympler import asizeof
class NoSlots:
def __init__(self, name, identifier):
self.name = name
self.identifier = identifier
class WithSlots:
__slots__ = ['name', 'identifier']
def __init__(self, name, identifier):
self.name = name
self.identifier = identifier
def ma... | [
"joakim@arthead.se"
] | joakim@arthead.se |
a4b5a402aeb3a7cf27f5d22baeece8d959ee1e53 | 0f33bdb8bd92699bdf671db478ddbd80e8ed1601 | /venv/Scripts/pip-script.py | aec802255ac000144cbe063eecf469b5e9688ca3 | [] | no_license | FairTraxx/SOUQ-Scrapper | 07c4985b434e6249e568aa6aac4d975f5abdd19f | 076b592925c5e871bf16b0523dceeefc9fbbd642 | refs/heads/master | 2020-09-11T13:47:23.699669 | 2019-11-16T11:41:15 | 2019-11-16T11:41:15 | 222,086,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!"C:\Users\medoo\PycharmProjects\Souq tracker\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"fairtraxx@protonmail.com"
] | fairtraxx@protonmail.com |
0bbf33158003dd02f3f3be544e07a57be5a695b2 | 0a666622f5b91bfe888ac876ca70799c9e18c0e9 | /sdk/AsposeEmailCloudSdk/models/mapi_contact_get_request.py | fd60cfb1c9947962e0846fcac2ece4c5e86b9020 | [
"MIT"
] | permissive | aspose-email-cloud/aspose-email-cloud-python | fd9ad21b9de863544f9462179e29271b3f592e19 | c5c13839cbbbfa5b6617bd1aedf3cf30cd664227 | refs/heads/master | 2023-08-16T22:11:14.755974 | 2021-09-21T18:40:45 | 2021-09-21T18:40:45 | 119,378,720 | 1 | 0 | MIT | 2022-12-08T01:06:16 | 2018-01-29T12:19:40 | Python | UTF-8 | Python | false | false | 2,612 | py | # coding: utf-8
# ----------------------------------------------------------------------------
# <copyright company="Aspose" file="mapi_contact_get_request.py">
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any per... | [
"marat.gumerof@aspose.com"
] | marat.gumerof@aspose.com |
2b9f243412cb139759c08fda7fb3fbd777ee70aa | 68f1a981bc1a882c4417806eda0ff5731b9dc67b | /webserver-v3/app/routesv2.py | 833b7840814cd32297a95638d74f282f6fb4e942 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | whittinghama/comp3215 | 3ca477320708525effc43605e0cdef750e4a16f0 | 9d8b4e11214275987c9b39199018157c81e25ee1 | refs/heads/master | 2022-03-30T11:34:45.706281 | 2020-01-11T15:52:11 | 2020-01-11T15:52:11 | 224,467,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,900 | py | import time
import serial
from flask import render_template, request, jsonify
from app import app
#https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
#https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-ii-templates
#http://www.varesano.net/blog/fabio/serial%20rs232%20... | [
"noreply@github.com"
] | noreply@github.com |
2db7d19023f853c2bbac3ee8b826a77f640a2f7b | 69d82895b49a37f2acd42fd78c1e02441d9fcd40 | /blog/migrations/0004_post_views.py | 7e73e3f4661865d496f698c3743ee38e1171a4be | [] | no_license | Chandrapalsingh12/demo | ca806bb9b6ad3ee7125cbf381968e1f178eb6320 | 3752c858ed6aad95cbcce61e36744c4acd917ed7 | refs/heads/main | 2023-07-03T09:26:16.298498 | 2021-08-11T08:18:31 | 2021-08-11T08:18:31 | 394,915,044 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 3.1.6 on 2021-03-03 11:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_auto_20210227_0909'),
]
operations = [
migrations.AddField(
model_name='post',
name='views',
... | [
"cscssingh123@gmail.com"
] | cscssingh123@gmail.com |
e04f14296efc87f773affec296ff647456e771a1 | a628dfe8f012aad0d3d8bd5ccb3fac9e696b3a25 | /model_dynamic_prog.py | 8ef911b76761d5317d0d3ba2b4d2f6234fc80f8b | [] | no_license | tybian/transformer_tts | df20cc92aebed5eb9b1bec587668ae4fbf54d4c6 | 25c8a64d5b03cdbfd33646f58366643f130c73a1 | refs/heads/master | 2023-02-09T14:02:20.912552 | 2021-01-06T13:44:15 | 2021-01-06T13:44:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,063 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
def get_output_mask(out_flag):
# (N, L)
output_mask = out_flag.eq(0)
return output_mask
def get_attn_mask(seq_flag):
"""
generate the mask for attention, 0 for unmask and 1 for mask
Args:
seq_flag... | [
"zhaowei.0817@163.com"
] | zhaowei.0817@163.com |
85658af6a7b79e5450b577beccbc06522bd0f00d | 25c1bba5c9954ab757fed0ce3236cd6b3bd50c59 | /BUILD.cr.py | 47ccf5633ca37f891f4761834ecae7183d4632fb | [] | no_license | craftr-build/craftr-chaiscript | c09e32e7ddd72c75d482cd3b627f2183cceaf379 | 09e6434016915c9745e3c841076ad193cdebb9dd | refs/heads/master | 2021-09-04T17:35:54.491031 | 2018-01-20T14:31:21 | 2018-01-20T14:31:21 | 118,172,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py |
import craftr, {fmt, glob, path} from 'craftr'
import cxx from '@craftr/cxx'
source_dir = craftr.options.get('chaiscript.source_dir')
gitref = craftr.options.get('chaiscript.gitref', 'v6.0.0')
if not source_dir:
url = fmt('https://github.com/ChaiScript/ChaiScript/archive/{gitref}.zip')
source_dir = path.join(craf... | [
"rosensteinniklas@gmail.com"
] | rosensteinniklas@gmail.com |
250c0e4235499578ff3824e0c66b41dfcf1bdd93 | 991b68c35ac97aaf944380eb7b60e09a037412cc | /RuuvitagProject/main.py | 6d1b711349ac9531b25e925d479e635e4c0c0620 | [] | no_license | JamieLeon/Python | 8caa71e43f0920de2f71d5e6aef54675c53f0fd9 | f4f615986418a4f39082ac28352e12458f7335ab | refs/heads/master | 2023-05-05T09:44:28.807527 | 2021-05-21T12:27:05 | 2021-05-21T12:27:05 | 369,527,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient
import time
import argparse
import json
from ruuvitag_sensor.ruuvitag import RuuviTag
from datetime import datetime, timedelta
# General message notification callback
def customOnMessage(message):
print("Received a new message: ")
print(message.payload)
... | [
"jamie.leon1@yahoo.co.uk"
] | jamie.leon1@yahoo.co.uk |
b77761e27e1ee73cd77ae1da875ba26db9728c06 | 15a9f5666b543a40363e6f5bc74d55d8030d608f | /connecting/admin.py | 3d7628c48803019473816df5bf12adcdfca05c96 | [] | no_license | Amaya54/connect_newUI | 63db9f0816cbfae42de3127c16c1e7cb4e3c3e3f | 9d178868361e0adf5d1478ff7eb0c61a926fcec2 | refs/heads/master | 2016-09-07T18:51:27.987911 | 2015-05-10T06:02:05 | 2015-05-10T06:02:05 | 35,359,135 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from django.contrib import admin
from connecting.models import *
# Register your models here.
class connectAdmin(admin.ModelAdmin):
list_display = ('connectId','postId','userId','doc','exchangeFlag')
admin.site.register(connectDetails, connectAdmin) | [
"amaya.das@gmail.com"
] | amaya.das@gmail.com |
1fd28a32175794c8a1b0959d713aa53612b0f54d | 71f72e8953164c8912fe66a12a800043ff2ecec5 | /data.py | 3148097f9c5353df8176533c7ad456d6b0c5f05b | [] | no_license | iliakplv/ml-math | eabe8e8ec0985b0402745799a9b72cf333ecefdd | c437b3e464de1b3ef259e6c7d158d14ef2b96df7 | refs/heads/master | 2020-04-06T09:47:34.262656 | 2019-02-17T06:35:20 | 2019-02-17T06:35:20 | 157,356,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | import csv
import random
def encode_label(label):
if label == 'Iris-setosa':
return [1, 0, 0]
elif label == 'Iris-versicolor':
return [0, 1, 0]
elif label == 'Iris-virginica':
return [0, 0, 1]
raise Exception('Unknown label')
def feature_column(features, column):
return [... | [
"iliakplv@gmail.com"
] | iliakplv@gmail.com |
44f036ce09dcbc8edee1182f56fc3dce125c9ecb | 1ff3aa4614c4e2ee0e30234fdbd4264b3d9e9dbe | /1-7/test.py | f66d20e9068cae00cd127dde815071807e3c33a5 | [] | no_license | Wk20017/webSpider | 0065ec618f3d3631b11f15c8ddacf2440c9078bd | 7cbd232d231c1dbabb3525627c7bd96eb5df2cfa | refs/heads/master | 2023-01-10T21:41:25.361580 | 2020-11-13T13:04:53 | 2020-11-13T13:04:53 | 296,341,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from urllib import request, parse
url = 'http://httpbin.org/post'
headers = {
'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.5; windows NT)',
'Host': 'httpbin.org'
}
dict = {
'name': 'Germey'
}
data = bytes(parse.urlencode(dict), encoding='utf8')
req = request.Request(url=url, headers=headers, data=data, ... | [
"wkk972509350@gmail.com"
] | wkk972509350@gmail.com |
8e830639fc2ef0cc682f1d742ee537d47985f00f | a643c2ed78b48e4cacf140776fbedd0191881e18 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/request_body_post_array_type_matches_arrays_request_body/post.py | 0ea29561b94824f85ffa27f8c2c1bf9e99c5e0c7 | [
"Apache-2.0"
] | permissive | padamstx/openapi-generator | 5ae41f68a4f9349d76c1db81b9ff82e18e5b4b7c | 00604aff594864447c134ddb1982565136e27857 | refs/heads/master | 2023-03-08T20:11:36.318959 | 2022-09-28T16:34:17 | 2022-09-28T16:34:17 | 160,528,958 | 0 | 1 | Apache-2.0 | 2023-02-24T16:13:11 | 2018-12-05T14:17:50 | Java | UTF-8 | Python | false | false | 5,206 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noq... | [
"noreply@github.com"
] | noreply@github.com |
47b13cbf68cba49d07c499ee6026f47fc228aece | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week02/1/proxy/proxy/spiders/maoyan_20200705155519.py | 5832d2f7ffe5ee7f1c5b3c601dddf5c249d1eb51 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 1,400 | py | import scrapy
from proxy.items import ProxyItem
import lxml.etree
class MaoyanSpider(scrapy.Spider):
name = 'maoyan'
allowed_domains = ['maoyan.com']
start_urls = ['http://maoyan.com/']
header =
# def parse(self, response):
# pass
def start_requests(self):
url = f'https://maoy... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
379be89df60db83ebb933ca5c3a731bc0ff4aa09 | df7ce684cb7904f79c70b2756b11dc0846664369 | /viriato/projects/models/milestone.py | e98593daae8d6c38a527b6a222a2786a5c581a1f | [] | no_license | mlouro/django-viriato | 0c0e76241e4c1478312db7afd19964d3766720bc | c1ed88ab5c436198082ac04de2fcfc57455b769e | refs/heads/master | 2016-09-05T20:43:17.673548 | 2009-10-19T18:58:10 | 2009-10-19T18:58:10 | 260,345 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.contrib import admin
from project import Project
from django.contrib.auth.models import User
from django.forms import ModelForm
from datetime import datetime
# Milestone
class Milestone(models.Model):
title = models.CharField(max_length=200)
... | [
"mlouro@gmail.com"
] | mlouro@gmail.com |
c36cb49992f854c8dec5b85a42e7a89d1dadb3e3 | 1901305018a10c5acdf92b79a79724b09a3f49d1 | /FisherLDA.py | 8fa274e5b6ef0cc04fc6dd059f35a3ab49f79c1a | [] | no_license | liuchen11/RobustFisherLDA | 3e060180dbed4cad3a85cddc12001685aa5128b8 | 0fae198095532403444afc0086c8cfdd9326f028 | refs/heads/master | 2021-01-19T04:44:59.941195 | 2016-06-12T11:45:07 | 2016-06-12T11:45:07 | 60,423,672 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,250 | py | from load import loader as loader
from sklearn.preprocessing import LabelEncoder
import numpy as np
from log import log
from matplotlib import pyplot as plt
import util
def computeMeanVec(X, y, uniqueClass):
"""
Step 1: Computing the d-dimensional mean vectors for different class
"""
np.set_printoptio... | [
"locky1218@gmail.com"
] | locky1218@gmail.com |
4b21f558ab50a8365c5dc1d50a6927abcfbca3d4 | 019353a6c263f8da4631e6a1c0c8094e749440b3 | /lab3/ex3_another_attempt_of_refactoring.py | ab9a554a8c9c0bb6aa8b66e1746a2f8fc97c2cb7 | [] | no_license | veratsurkis/infa_2020_postnikov | 544b15583c9c57af2fb3e3bc6176647a2962b37d | 3b7009f063c6b9b016308d49abdf41943513ad9e | refs/heads/main | 2023-01-05T15:02:25.033602 | 2020-10-29T07:52:30 | 2020-10-29T07:52:30 | 300,522,328 | 0 | 0 | null | 2020-10-02T06:29:58 | 2020-10-02T06:29:57 | null | UTF-8 | Python | false | false | 10,510 | py | import pygame
from pygame.draw import *
import numpy as np
pygame.init()
# Function draws a whitebear
def whitebear(Surface, x, y, size):
head(Surface, x, y, size)
body(Surface, x, y, size)
leg(Surface, x, y, size)
lake(Surface, x, y, size)
fishing_rod(Surface, x, y, size)
arm(Surface, x, y, s... | [
"veratsurkis@mail.ru"
] | veratsurkis@mail.ru |
2e700a8b104f941e835ad3727e5fea3b40320152 | 81e1c4617881ae8a9e32d08d9c25bd3dbd4501a5 | /code/Jiachen/test.py | b38b38ec72980968b99fb1e26f61fc69d12ff62c | [] | no_license | Jiacli/NLP-QA | 1a67c3a5c0e25311d498450ef9d9747804c9f5af | 69a8ced0603a4ad453fba31b7396ccb2fdcfb499 | refs/heads/master | 2021-01-11T19:34:42.777688 | 2015-04-14T05:55:23 | 2015-04-14T05:55:23 | 30,160,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | #!/usr/bin/env python
import os
from nltk.parse import stanford
os.environ['STANFORD_PARSER'] = r'C:\Users\Jiachen\Documents\GitHub\AEIOU\code'
os.environ['STANFORD_MODELS'] = r'C:\Users\Jiachen\Documents\GitHub\AEIOU\code'
os.environ['JAVAHOME'] = r'C:\Root\Tools\Java\jdk1.8.0_25\bin'
parser = stanford.StanfordPars... | [
"jiacli.jk@gmail.com"
] | jiacli.jk@gmail.com |
7e37f6248c7ce6abe30827214c081a6ba02303b1 | 4b773e01344ed7e24b7a3fac775f6c0496a97d6f | /apsys2016/figure/aveUncover.py | 170f3d4e3ed847ff6c0c5b7a948464626c0f338f | [] | no_license | iCodeIN/bigsecurity | 3865802da90447ceb4a92f579bc42704e0b9df3b | f6061a6168cc9b0e8769b9539a5dcbc323bc6086 | refs/heads/master | 2022-01-05T07:39:42.746257 | 2019-01-25T03:16:22 | 2019-01-25T03:16:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
from matplotlib.ticker import FixedLocator
import numpy as np
phiList = [10, 100, 1000]
overlapList = [3.87E-03, 8.77E-04, 9.86E-05]
#for i in rateList:
# print i, accumList[i]
fig, a... | [
"songlinhai0543@gmail.com"
] | songlinhai0543@gmail.com |
b3425b7ae724a9576651dd48c81a63a043675bfe | 926d93f74d83f30e34bde9a169b7811335ee0c0d | /Support Vector Machine/Support_Vector_Machine.py | 6c792240f173a4bcda0d0b3484df74698ebd554f | [
"MIT"
] | permissive | shreshthtuli/ML-Assignments | 27aa80d585ac3d6506df31e32e29c6cda1d29804 | 64228fdb602e21064b18dd5aa4e5f7de7e8df2ec | refs/heads/master | 2020-04-18T12:55:59.606823 | 2019-04-07T12:46:54 | 2019-04-07T12:46:54 | 167,548,423 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,893 | py | """
MIT License
Copyright (c) 2019 Shreshth Tuli
Machine Learning Model : Support Vector Machine
"""
import matplotlib
matplotlib.use('Agg')
import numpy as np
import matplotlib.pyplot as plt
import cvxpy as cvx
import math
from svmutil import *
from sklearn import svm, datasets
from sklearn.model_selection import t... | [
"shreshthtuli@gmail.com"
] | shreshthtuli@gmail.com |
c56180686a2cdd0b8dc7a67f71164d244a673cfb | 4ac7e253ff7b9637e872a38a1b1e33c22c9d8d70 | /test/pytest/testutil/fixtures.py | 109d97cab4069e1efe901f9327cb4f64576b172b | [
"Apache-2.0"
] | permissive | nnishiza/apache-websocket | ec3938ecba705be6f666b8c0f7599219f5d75f67 | 6968083264b90b89b1b9597a4ca03ba29e7ea2e1 | refs/heads/master | 2021-04-29T08:39:04.363552 | 2017-01-20T23:55:27 | 2017-01-20T23:55:27 | 77,671,760 | 0 | 0 | null | 2016-12-30T08:09:07 | 2016-12-30T08:09:07 | null | UTF-8 | Python | false | false | 3,097 | py | import autobahn.twisted.websocket as ws
import pytest
import urlparse
from twisted.internet import reactor
from twisted.internet.ssl import ClientContextFactory
from twisted.web import client
from .protocols import ProtocolFactory
class _UnsecureClientContextFactory(ClientContextFactory):
"""An SSL context facto... | [
"champion.p@gmail.com"
] | champion.p@gmail.com |
92f388b243e714fb884b524b4a78321c244fc32f | 8b02fb816e0f2efec34157dfba5bf14c773a3b08 | /b2912a/SMU Control Tests/SMU Characterization/Speed Test 10.py | e89046645c6ad41b19ea29bde7c12e24bcad47e7 | [] | no_license | stevennoyce/CNT_IV | c0c6bd1438778c35c4cfca0301750e2555a14867 | 36bb27df3280af7bf365c860405235d54038e46f | refs/heads/master | 2018-10-22T14:20:00.175335 | 2018-09-18T21:19:03 | 2018-09-18T21:19:03 | 111,465,107 | 1 | 0 | null | 2018-09-10T11:43:17 | 2017-11-20T21:31:35 | C | UTF-8 | Python | false | false | 5,207 | py | import visa
import numpy as np
import time
from matplotlib import pyplot as plt
# Future ideas ---------------------
# List output for sin wave or similar
# inst.write(':SOUR:VOLT:MODE LIST')
# inst.write(':SOUR:LIST:VOLT 0,2,4,6,8,10,0')
# inst.write(':source:voltage:mode list')
# inst.write(':souce:list:voltage {... | [
"steven.noyce@gmail.com"
] | steven.noyce@gmail.com |
1b1c02e75d0c463404a738766c2fe6e24d2476c7 | ad849c40e75d098e38db897154c63054e6f89fca | /models_class/model.py | 8ff2a80539b1abd9c6c4efeda44b6b17c4e7e9f6 | [] | permissive | vietnamican/Pytorch_Retinaface | 768a96eb7e48b002dc91cc97cc41473206903c59 | 8d69dd191e16421bb399f49c7706d6e154d4a80e | refs/heads/main | 2023-06-18T08:23:25.860727 | 2021-06-24T10:48:18 | 2021-06-24T10:48:18 | 366,045,702 | 1 | 0 | MIT | 2021-05-10T13:06:47 | 2021-05-10T13:06:46 | null | UTF-8 | Python | false | false | 2,929 | py | import torch
from torch import nn
from torchmetrics import Accuracy
from .base import ConvBatchNormRelu
from .base import Base
class Config(object):
dataroot = 'data/mrleye'
train_image_dir = '../LaPa_negpos_fusion/train/images'
train_label_dir = '../LaPa_negpos_fusion/train/labels'
val_ima... | [
"vietnamican@gmail.com"
] | vietnamican@gmail.com |
a66d33de13362abe85bb1eaea386c7fdb853db98 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/l5/work/app_20200705183534.py | b04a220ca1102f3467a3b5ad0e580157e43c7a65 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from flask import Flask
from flask import render_template
app = Flask(__name__)
scoreboard = [{"name": "Tester", "score": 10}, {"name": "Tester", "score": 11}]
@app.route("/<name>")
def hello(n):
return render_template("index.html")
@app.route("/game")
def game():
return render_template("index.html")
if ... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
fc09eccfe10dbeeeda3cb73e26619a48f4e21f7d | 88680d780cf0e6b07897fb0096a09e45f2cf2a4b | /userbot/plugins/pmpermit.py | 4de3efa0132af0808fc3005e0a35b29aff40e5f3 | [
"MIT"
] | permissive | phantombd/Subrozbot | a58f6fde972c48f3ae7a37d884c645e8b2bcd2ed | becd99e7438857a83215658419e09e23d103750d | refs/heads/master | 2022-12-15T14:56:13.962679 | 2020-08-30T06:53:26 | 2020-08-30T06:53:26 | 295,969,353 | 1 | 0 | MIT | 2020-09-16T08:20:31 | 2020-09-16T08:20:30 | null | UTF-8 | Python | false | false | 9,350 | py | import time
import asyncio
import io
import userbot.plugins.sql_helper.pmpermit_sql as pmpermit_sql
from telethon.tl.functions.users import GetFullUserRequest
from telethon import events, errors, functions, types
from userbot import ALIVE_NAME
from userbot.utils import admin_cmd
PM_WARNS = {}
PREV_REPLY_MESSAGE = {}
... | [
"noreply@github.com"
] | noreply@github.com |
3f55df74a54acc7c97942121f229c80f7848457f | fda6fae59f151f2c433b3bbbbfd02dac1390ca03 | /DisInV/disindb/models/brand_model.py | 3e568d21abc8091c2827fdf7c7998139c2bbaf81 | [] | no_license | kksweet8845/DisInV | 27424835d1a57e2f70ad0f0029f06dac1faa90ad | 638e613ac29c1bb852c3a6f3cffa5a812486fa85 | refs/heads/main | 2023-03-30T10:29:54.966348 | 2020-11-02T06:09:48 | 2020-11-02T06:09:48 | 309,267,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from django.db import models
class Brand(models.Model):
brand_name = models.CharField(
max_length=20,
blank=False,
default=''
)
def __str__(self):
return "brand_name: {}".format(self.brand_name)
class Meta:
db_table = "brands" | [
"f74064054@mail.ncku.edu.tw"
] | f74064054@mail.ncku.edu.tw |
f32c32efd6824655e6ea2871c24a9a2b562f8933 | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /stypy/sgmc/sgmc_cache/distutils/emxccompiler.py | 62c23b54b675b3edfdfdaf8c2e59d042e5b9440b | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186,190 | py |
# -*- coding: utf-8 -*-
"""
ORIGINAL PROGRAM SOURCE CODE:
1: '''distutils.emxccompiler
2:
3: Provides the EMXCCompiler class, a subclass of UnixCCompiler that
4: handles the EMX port of the GNU C compiler to OS/2.
5: '''
6:
7: # issues:
8: #
9: # * OS/2 insists that DLLs can have names no longer than 8 characters
1... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
d9bc407174d0bdafdf9157cae4e049eddfe82f3e | 2dd3ac8e6fd58f01ba77bfeb07cdb779ed8fa621 | /day00/ex06/recipe.py | cc6e46cbe930138a53b0d47ad6457524a58e70d9 | [] | no_license | msoares-prog/42AI-BootcampPython | 3f17991220ab6c4196c1ad4f71b62b99348aa4e9 | 0b0a50d1676071067759027fb5882faee96b2482 | refs/heads/main | 2022-12-28T13:00:42.481659 | 2020-10-18T21:46:21 | 2020-10-18T21:46:21 | 302,148,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | cookbook = {
"sandwich": {
'ingredients': ["ham", "bread", "cheese", "tomatoes"],
'meal': "It is a lunch",
'prep_time': 10
},
"cake": {
'ingredients': ['flour', 'sugar', 'eggs'],
'meal': "It is a dessert",
'prep_time': 60
},
"salad": {
'ingredi... | [
"mariana.soares@simbioseventures.com"
] | mariana.soares@simbioseventures.com |
a1996577fbf1403c95237f518027cdfb35bcb597 | 75d0a9c4cb677653adf4e0322cec30b47eeb730d | /build/vision_opencv/image_geometry/catkin_generated/pkg.develspace.context.pc.py | e0d2b91e9c4adc65449a6b29a9578d91c46f2d2b | [] | no_license | daichi-kamba/sciurus17_ros_kamba | 376380c975215c9c14f382701ee3b5a57687d010 | 4ce7555ee3b39ab69211adcd05f5dfa79f792180 | refs/heads/main | 2023-08-03T17:55:28.525391 | 2021-09-10T08:12:46 | 2021-09-10T08:12:46 | 404,644,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,671 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/kamba/catkin_ws/src/vision_opencv/image_geometry/include;/opt/ros/kinetic/include/opencv-3.3.1-dev;/opt/ros/kinetic/include/opencv-3.3.1-dev/opencv".split(';') if "/home/kamba/catkin_ws/src/visio... | [
"is0406fi@ed.ritsumei.ac.jp"
] | is0406fi@ed.ritsumei.ac.jp |
ff6a89c9d8caa645d888b9e16e0ea2c34211bdcd | 27f48f7a8a91538904f82d711bb9f128c3810057 | /shop/vendor/forms.py | 1315f0efac7c8144f76088d0cc5e8dd7a0ef7f50 | [] | no_license | aallisha/ClothingStore | 1831218c8cc150cbc5a745c8025f3d79c871267a | 85327fa33b8fd32b06b070782e24b2ae49e210ac | refs/heads/master | 2023-04-05T18:57:16.629574 | 2021-04-12T06:45:01 | 2021-04-12T06:45:01 | 357,085,363 | 0 | 2 | null | 2021-04-27T18:26:19 | 2021-04-12T06:41:11 | Python | UTF-8 | Python | false | false | 211 | py | from django.forms import ModelForm
from product.models import Product
class ProductForm(ModelForm):
class Meta:
model = Product
fields = ['category', 'image','title','description','price']
| [
"48907175+aallisha@users.noreply.github.com"
] | 48907175+aallisha@users.noreply.github.com |
aaecf452371b0b9d14bd97d814ddd9714ead9f81 | 45478b97052795e08e883e97bafeea216148085a | /exam/views.py | 0b172af324052376b30b853512c0c2d1d3be9a87 | [] | no_license | prerna1428/onlinetest | a64cc29dc6f18d0a413e1230593ec61f26b29b32 | 6625b83460408647d1d3d1e15e13ea2f2396bb84 | refs/heads/master | 2020-05-16T00:05:50.533231 | 2019-04-21T07:26:10 | 2019-04-21T07:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from django.shortcuts import render
# Create your views here.
def newExam(request):
return render(request,'addexam.html',{})
| [
"thapabikash48@gmail.com"
] | thapabikash48@gmail.com |
e7e4e084cf887e1b7d26dbb62a47cc39114a85d8 | 3c66f9ddd488507144df6c82c698fca27dc23fa4 | /NKT/NKTMan_Fianium.py | d3c6bcf5b95d1a0c2cbd4918f2b89ef45a5b1ce7 | [
"MIT"
] | permissive | EdwarDu/autools | 50347519cf67fa42ff334dbbe15a30ae2009ba46 | 9d58bea49c9dca3504d4da00c7b3fc7d618a1f4c | refs/heads/master | 2022-12-12T10:49:52.782537 | 2022-12-06T10:32:54 | 2022-12-06T10:32:54 | 177,474,285 | 0 | 0 | MIT | 2022-12-06T10:32:55 | 2019-03-24T21:58:29 | Python | UTF-8 | Python | false | false | 5,305 | py | import serial
from .NKTMan import NKTMan
import numpy as np
class NKTMan_Fianium(NKTMan):
"""
With specific register read/write for Fianium
"""
def __init__(self,
module_addr,
serial_name,
baudrate=9600,
parity=serial.PARITY_NONE,
... | [
"duboyang.h@gmail.com"
] | duboyang.h@gmail.com |
a14cb2cae1fd69db8497611253f1cb936df5a192 | 23ec2d87fb96626992df44af73a7daa202be79a6 | /src/examples/connectfour/vs.py | 3810ad1a332014b09a368e147f4ae73e9ef179df | [] | no_license | ishikota/pymcts | 5d560ec7d0dcdf881a52c607adfdd384ae23e0c2 | 2d1ba191cadbbaab0ab922a785478210cf0709f4 | refs/heads/master | 2021-01-01T19:31:00.932984 | 2015-07-28T14:45:23 | 2015-07-28T14:45:23 | 39,330,236 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | # add path to the src and test directory
import os
import sys
PARENT_PATH = os.getenv('PYMCTS_ROOT')
SRC_PATH = PARENT_PATH +"src/"
sys.path.append(SRC_PATH+"algorithm")
import mcts
import connectfour_model
import heuristic_model
# Clear the shell
os.system("clear")
# Setup for MCTS
model = heuristic_model.ConnectFo... | [
"ishikota086@gmail.com"
] | ishikota086@gmail.com |
a3b172322b6b5285674b3384e9dc45f6733b5b84 | 7a47c29fd131bd574425303dc4c6e9f27134184a | /nlu/app/pickle_example.py | 86247b199f72b6b64c1192c2bc07197c36e799a4 | [] | no_license | conversational-pipeline/reusable-pipeline | 692b75b2f9ec31de0e5f3170f3a290457dd8873d | 1a8713ef2d2e8699e1cd9a0dc8f909c10ddabb18 | refs/heads/master | 2020-04-26T06:18:30.945634 | 2019-03-25T18:32:13 | 2019-03-25T18:32:13 | 173,360,252 | 2 | 0 | null | 2019-03-20T21:12:00 | 2019-03-01T19:56:46 | TypeScript | UTF-8 | Python | false | false | 4,330 | py | import pickle
word2idx = {'infusion': 0, 'cold': 165, 'anything': 1, 'be': 2, 'coffee': 3, 'water': 4, 'green': 5, 'shot': 7, 'medium': 8, 'forget': 9, 'swap': 10, 'grande': 12, 'give': 13, "we're": 14, 'macchiato': 15, 'shaken': 16, 'me': 17, 'is': 83, 'soy': 172, "she'd": 19, 'item': 21, 'should': 85, "they'd": 22, ... | [
"michaelsethperel@microsoft.com"
] | michaelsethperel@microsoft.com |
213f42b8e3c626c96fdba83225479382cdd7034f | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/test/connectivity/acts/framework/acts/controllers/pdu_lib/synaccess/np02b.py | 655328feb4bede2c154cc3f44e04463ee9f339ee | [] | no_license | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,057 | py | #!/usr/bin/env python3
#
# Copyright 2019 - The Android Open Source Project
#
# 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
#
# ... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
6680e050b3c46d287a898764310ee185d8ad11be | 22bda291803362ca4af353a8ed034110b9cb6d8e | /DeepCDN_UI/urls.py | 966624b8ec307063087e5260119b7459f2d16b4d | [] | no_license | QwertyJacob/DeepCDN_UI | cb5f9b4e86a1e7e365451f29f5f0fc29a500fb14 | d63981ae14c30129e5b5426e2640d72f0869e25b | refs/heads/master | 2021-02-10T02:13:26.270979 | 2020-03-03T12:05:17 | 2020-03-03T12:05:17 | 244,344,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """DeepCDN_UI 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-ba... | [
"jesusfernando.cevallosmoreno@jc.elis.org"
] | jesusfernando.cevallosmoreno@jc.elis.org |
f35ed62ce5d2bcd6961d7c14df34fb173be14a4a | 7924db73ecec5fe3eeab8f023d1856814618c718 | /fragcode.py | c2e6f79315ca8321df4dee683c17386447435864 | [] | no_license | mohmhm1/Miscellaneous | 2f59894644be2b7c7ee7d5c6ccb0ad0a7c34fc23 | 634c26c1107e5cb5ac09663a8d2f177e1e556407 | refs/heads/master | 2021-01-19T13:26:12.570648 | 2017-04-12T23:45:16 | 2017-04-12T23:45:16 | 88,088,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py |
entry = raw_input("Please enter your chemical structure....")
mol_database = ["NH4+","COOH","COSH","COSeH","SO3H","SO2H","NH2","NH","NHNH2"]
mol = ""
itr = 0
inc = 0
L = list(entry)
print "Parsed substructures"
while itr < len(entry):
itr += 1
L = [entry[i:i + itr] for i in range(0, len(entry), itr)]
p... | [
"noreply@github.com"
] | noreply@github.com |
62cb88b22f9988b968329a59721e0b8ca6c8328b | a26c1b336a2ea2178c14c7d16d300863a748bc12 | /realtime_demo.py | 708abeec7094070580813722755e62af86e74a4b | [] | no_license | ashu9999/Deep-Advertisement-Application | 98491d27833129e374e5d4d31a603908fb192897 | c00b59d38bd1a4ab1d1427f50ca890b0fe66a2a3 | refs/heads/master | 2023-01-09T16:45:12.050368 | 2020-11-07T12:29:35 | 2020-11-07T12:29:35 | 310,294,068 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,008 | py | """
Face detection
"""
import cv2
import os
from time import sleep
import numpy as np
import argparse
from wide_resnet import WideResNet
from keras.utils.data_utils import get_file
import os, random
class FaceCV(object):
"""
Singleton class for face recongnition task
"""
CASE_PATH = ".\\pretr... | [
"kmr.ashutosh9999@gmail.com"
] | kmr.ashutosh9999@gmail.com |
61c90a5a68de5d9fddb0ef91c1c3666064a8f85e | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_22/models/pod_replica_link_lag_response.py | 4b80aac36f529a563527baa650fb2b54f0d5839c | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 3,922 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.22
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | noreply@github.com |
a44b1e142384963a8199905ffd28e41de93d8139 | 37129a07acb8aae9e87e35d42fb9aa6c958f76cb | /cedula/Cedula.py | 92275150749657f8f6c141a97c5c475c900f0edc | [] | no_license | dignacio/python | 1fedead3e9228c6c3b10d692fc007dfb740ae657 | 753a714fb9a5c4509e8b4061661b6ddcbe347beb | refs/heads/master | 2021-04-15T05:57:47.750646 | 2018-11-13T19:56:55 | 2018-11-13T19:56:55 | 126,255,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,902 | py | # -*- coding: utf-8 -*-
"""
/***************************************************************************
Cedula
A QGIS plugin
Cedula Catastral
-------------------
begin : 2018-03-20
git sha : $Format:%H$
... | [
"dignacio.lopezo@gmail.com"
] | dignacio.lopezo@gmail.com |
ae7be395bf195fbe7533ea1b7fcf07c26d7d12d2 | a63c8f6455b705eaff3d5a55fe83a35d0fb8b0fa | /configures/Parameter_setting.py | ad70828258c8aaa972c75811dc58ac4295ce397f | [] | no_license | Azure-Whale/Portfolio-management-tools | d82516449eb97375f8ea4ce15ddd348e7ec65538 | 4abd97077a1f2237f2d8bf485a05f5955d8376c7 | refs/heads/master | 2023-04-13T04:06:25.906416 | 2023-04-04T13:03:07 | 2023-04-04T13:03:07 | 277,915,533 | 1 | 1 | null | 2023-04-04T13:03:08 | 2020-07-07T20:28:32 | Python | UTF-8 | Python | false | false | 781 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@File : Parameter_setting.py
@Time : 6/24/2020 5:34 PM
@Author : Kazuo
@Email : azurewhale1127@gmail.com
@Software: PyCharm
'''
from datetime import datetime
"""Hyper parameters"""
'''Init DB date range'''
datetime_object = datetime.strptime('2020-05-10', '%... | [
"Azure-Whale@github.com"
] | Azure-Whale@github.com |
4000723d47874d224628ea2b6026b6b070215a9b | fa00a20686cd5fbb72b6e396a7d2234277c4af24 | /trancesection/views.py | ad370f24e30d3694e2cd9a9fb8da45a0128a8f45 | [
"MIT"
] | permissive | xuorig/trancesection | 1f70236e65400aca90a01b827a24a0121fd6ef49 | a7d353bf1bc3bd4598a2b70ee9413cff7d497fc4 | refs/heads/master | 2021-01-10T19:51:28.352422 | 2015-03-17T21:28:57 | 2015-03-17T21:28:57 | 15,836,384 | 0 | 0 | null | 2014-01-14T00:16:28 | 2014-01-12T04:29:54 | CSS | UTF-8 | Python | false | false | 1,681 | py | from trancesection import app
from flask import render_template, jsonify, request
from scrapers import Scraper, AbgtScraper
from trancesection.models import Podcast,Episode,Track
from trancesection import init_db
import trancesection.matchmaking as mm
import soundcloud
sc_client = soundcloud.Client(client_id='e926a44... | [
"marc-andre.giroux2@usherbrooke.ca"
] | marc-andre.giroux2@usherbrooke.ca |
2b64ebb97713e9334fb0bac1dc5a95611fc6a03f | 9ad2a5d0f7131b9056a0e98aa08b634b34191fa0 | /offline.py | b1c29d2f0f44eb224438b6c4bd845fd37909e20e | [] | no_license | benabbes-slimane-takiedine/Face_recognition_ALTP | 253af05b2cc62df97a9188dc17e92952ffe6d944 | 48a77b2fd785b5d9aad3bf333ffbc2026f13b451 | refs/heads/master | 2023-06-23T10:38:56.550387 | 2021-07-23T01:36:37 | 2021-07-23T01:36:37 | 388,634,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,738 | py | import numpy as np
import os
import cv2 as cv
# return the 8 adjacent pixels in the right order (clockwise)
def get_surounding_bits(img):
items=[]
items.append(img[0][0])
items.append(img[0][1])
items.append(img[0][2])
items.append(img[1][2])
items.append(img[2][2])
items.append... | [
"noreply@github.com"
] | noreply@github.com |
d0b3943dc7b79e7aaa19525cd9192680fe0d56bd | eac3fb72ebf0bae220a741986a777a8c7c1ae60b | /ex3.py | 49e75e81fc433b0f4138e1cd2a010a221533c31f | [] | no_license | renvasanth/Learning | a1591765c55a6e847fbb0ccd6936c7bd72d4284f | 7ecdb79cf17b26aa43ec68909c5d8a400e5bca47 | refs/heads/master | 2021-01-10T05:06:52.834647 | 2015-11-19T07:25:01 | 2015-11-19T07:25:01 | 43,491,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | print " I will now count my chickens:"
print "Hens", 25 + 30 / 6
print "Roosters", 100 - 25 * 3 % 4
print "Now I will count the eggs:"
print 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6
print "Is it true that 3 + 2 < 5 - 7?"
print 3 + 2 < 5 - 7
print "What is 3 + 2?", 3 + 2
print "What is 5 - 7?", 5 - 7
print "Oh, that's w... | [
"renvasanth@yahoo.co.in"
] | renvasanth@yahoo.co.in |
da64bfaf14f0546a07b4a4164b5f97b7f9e7119d | a7a7946c9032d638c3a6432c2ce8f3d9cf7532a3 | /bin/shopify_api.py | e8abb535e9c3d72ff6735dfda4e5295f8987f985 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | cosito-bonito/shopify_python_api | 0e797d2720296bfbe7c7c304e0a0434fc9bfa38e | eaf4684ae4da4e9cfe8fe459b76e70c1610a34b9 | refs/heads/master | 2022-04-22T20:26:35.451970 | 2020-04-28T13:15:42 | 2020-04-28T13:15:42 | 263,233,088 | 0 | 1 | MIT | 2020-05-12T04:34:58 | 2020-05-12T04:34:57 | null | UTF-8 | Python | false | false | 416 | py | #!/usr/bin/env python
"""shopify_api.py wrapper script for running it the source directory"""
import sys
import os.path
# Use the development rather than installed version
project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, project_root)
with open(os.path.join(project_root, ... | [
"Dylan.Smith@shopify.com"
] | Dylan.Smith@shopify.com |
8aeb1860ef47d39a2c88759972b762e32d56d78e | 91dc5e01081bc50812692b8c3d30c2c4e5200ccc | /tests/test_urljoin.py | 40d78c80c48e9862e50445b186489419eb52d03c | [
"MIT"
] | permissive | datasets-org/urljoin | 11a3db083d08bd97f9bc7e8df208deddea5b0745 | 383dea3b0c9e92a2e15eb58b0c31177dfd007839 | refs/heads/master | 2021-08-31T15:07:48.626475 | 2017-12-21T20:46:26 | 2017-12-21T20:46:26 | 115,023,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | from urljoin import url_path_join
def test_url_path_join():
assert url_path_join("http://example.com/", "/path/") == \
"http://example.com/path"
def test_url_path_join_nested():
assert url_path_join("http://example.com/", "/path/path") == \
"http://example.com/path/path"
def test_url... | [
"tivvit@seznam.cz"
] | tivvit@seznam.cz |
c2c3d0c9f2cc57dc9f5b814e773d9bfae23f9703 | 6cc84bffe7f6669d9ac4d98cd72f17033667f12a | /venv/Scripts/easy_install-3.6-script.py | b91608f6e7757be7e5a9a1faa47816d993da4f76 | [] | no_license | AscernNSU/MP3-FourierSpectrum | efc31f2bd8d66eebe89c66cc99be14668aba374f | 1ca6923df190669d2f69e0ac87208dbbd74a443d | refs/heads/master | 2022-04-11T16:21:59.414193 | 2020-03-29T15:51:13 | 2020-03-29T15:51:13 | 250,780,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #!D:\Python\MP3-FourierSpectrum\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?... | [
"alexey.romanov.nsu@gmail.com"
] | alexey.romanov.nsu@gmail.com |
288b4bd41f49b1124f0b189c46fb7fc1cba2ea02 | 066f812b051afffbe1a05630a728d15bab9f02bc | /django_503/models.py | 53c13d2c325313df137b454d59365c4a456316b9 | [
"MIT"
] | permissive | soul4code/django-503 | 04714af1a72813d5f6f1691eada97773adbe9c30 | 48f30e176f334988dafb48dff7c604b7f72ab290 | refs/heads/master | 2021-12-14T00:08:07.899188 | 2015-07-16T18:31:09 | 2015-07-16T18:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from django.db import models
from django.utils.translation import ugettext as _
class Config(models.Model):
key = models.CharField(_('Key'), max_length=100, unique=True)
value = models.BooleanField(_('Value'))
| [
"baryshev@gmail.com"
] | baryshev@gmail.com |
133fc33a335e1265586ef671d075c0c7376d22a6 | 1e6a3a58d1217e2fd6ea48a6cfe6546b2c6e58d4 | /Phishing_Legitimate_Full/Experimentación Logistic Regression.py | 484b8704d906d5dcf27470e5351b24ef5f649b02 | [] | no_license | eduard0mv/ExperimentacionTesis | e4b3d6c0c0037e5395123dd55fce2ef639d775ad | 8eaad627cf716f96dde786d53332dd441cab455d | refs/heads/main | 2023-03-08T06:19:27.490173 | 2021-02-01T16:52:47 | 2021-02-01T16:52:47 | 335,010,002 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | # -*- coding: utf-8 -*-
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score,precision_score,recall_score,f1_score
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection imp... | [
"eduardo.moncada7398@gmail.com"
] | eduardo.moncada7398@gmail.com |
f43ed25f781212d1b64771578d20444c472a816a | 9ed7808e6083363cb7158575548fae4d47c945b4 | /Battery_Testing_Software/labphew/core/base/__init__.py | 559ae4a782097f3c12dbae45ab60a692e95db287 | [
"Apache-2.0"
] | permissive | Elena-Kyprianou/FAIR-Battery | 79bc844ad77c100568f3867586228a090fb8d84d | 85a1f3b55b7025d1c7176b96a0b68193687285d7 | refs/heads/main | 2023-08-25T21:35:00.061579 | 2021-10-18T20:40:20 | 2021-10-18T20:40:20 | 419,263,403 | 1 | 0 | Apache-2.0 | 2021-10-20T09:21:39 | 2021-10-20T09:21:39 | null | UTF-8 | Python | false | false | 100 | py | # from .operator_base import OperatorBase
# from .view_base import MonitorWindowBase, ScanWindowBase | [
"cinbarker@gmail.com"
] | cinbarker@gmail.com |
9a09e23a306ac2775dccaa67e15f9ed859cc7f88 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/plus/migrations/0019_plusproposer_merchant_code.py | ff1def92b9ab218ad60d2f57d45ff8b56f588bab | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # Generated by Django 2.0.5 on 2019-09-05 13:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('plus', '0018_auto_20190905_1603'),
]
operations = [
migrations.AddField(
model_name='plusproposer',
name='merchant_c... | [
"akashs@docprime.com"
] | akashs@docprime.com |
bc47db2fbd5e552d18ef8b17070331d9bf86f0a9 | 595c69f717fc3ceb4e0701cc433f6d7f927b6fdb | /Hogworts/Page_Object/Pages/main.py | 7f61ff32429f5e1477ac8b6a1941e7c335deb355 | [
"MIT"
] | permissive | archerckk/PyTest | d6462ebf46c6dbd5bb3ce03666aad0c2665367cd | 610dd89df8d70c096f4670ca11ed2f0ca3196ca5 | refs/heads/master | 2022-03-26T21:09:25.891745 | 2021-06-14T01:39:36 | 2021-06-14T01:39:36 | 129,497,345 | 0 | 0 | null | 2020-01-14T10:57:49 | 2018-04-14T08:23:03 | Python | UTF-8 | Python | false | false | 533 | py | from Page_Object.Pages.base_page import Base_Page
from Page_Object.Pages.login import Login
from Page_Object.Pages.register import Register
from selenium.webdriver.common.by import By
class Main(Base_Page):
_base_url='https://work.weixin.qq.com/'
def goto_register(self):
self.find(By.CSS_SELECTOR,'.i... | [
"archerckk@163.com"
] | archerckk@163.com |
defc1b7d74de6d1d58c5993550f7e8e9ad068c89 | 0f0a7adfae45e07a896c5cd5648ae081d4ef7790 | /python数据结构/python黑马数据结构/排序于搜索/桶排序.py | 12d443dea83de14b64c2fafd0db8a034651882fd | [] | no_license | renlei-great/git_window- | e2c578544c7a8bdd97a7a9da7be0464d6955186f | 8bff20a18d7bbeeaf714aa49bf15ab706153cc28 | refs/heads/master | 2021-07-19T13:09:01.075494 | 2020-06-13T06:14:37 | 2020-06-13T06:14:37 | 227,722,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | lista = [12, 4, 5, 6, 22, 3, 43, 654, 765, 7, 234]
# 桶排序
"""
桶排序就是找出最大值和最小值,在这个区间进行分桶,然后将数组中的数按区间装桶,然后在对每个桶进行排序
"""
def pail_sort(alist):
"""桶排序"""
n = len(alist)
min_cur, max_cur = 0, 0
cur = 1
# 找出最大
while cur < n:
if alist[min_cur] > alist[cur]:
min_cur = cur
cu... | [
"1415977534@qq.com"
] | 1415977534@qq.com |
3f2a7f8ca8c8b949eb087d6b60465bf94f7e9e90 | ac01d8bdab2140eae6332613142b784484877b78 | /main.py | c4d5cd5bb342e7b9329bf9ee51a5c37957b7ec15 | [] | no_license | 2020668/api_automation_course | eb19322485fdb7db4b9586597895c3ac97727e96 | 33da9f5f1f17de5a5892d28a9f6feea09e8c4adc | refs/heads/master | 2022-12-29T22:32:02.321058 | 2020-10-15T03:24:32 | 2020-10-15T03:24:32 | 304,195,531 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | # -*- coding: utf-8 -*-
"""
=================================
Author: keen
Created on: 2019/9/2
E-mail:keen2020@outlook.com
=================================
"""
import unittest
import os
import time
from library.HTMLTestRunnerNew import HTMLTestRunner
from common.config import conf
from common.constant import ... | [
"keen2020@outlook.com"
] | keen2020@outlook.com |
163c19a57d3f954bdad45a05c1c4f19e3be6b9da | 22af3b24f10f18f22b3c81ee59d25484bb4b8845 | /Intro to Algorithm/counting_sort.py | 8da0c2b1b8ae2eea1da4c8bdffa25587a83cb1ad | [] | no_license | zhou-1/Algorithm | 8f46159f67e70776cb211b274a3ea0aed64470b0 | a005715c4448efddf224edf214f42f3814234524 | refs/heads/master | 2021-05-05T08:57:41.499438 | 2021-04-17T15:12:33 | 2021-04-17T15:12:33 | 119,095,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | def counting(data):
counts = [0 for i in xrange(max(data)+1)]
for el in data:
counts[el] += 1
for index in xrange(1, len(counts)):
counts[index] = counts[index-1] + counts[index]
L = [0 for loop in xrange(len(data)+1)]
for el in data:
index = counts[el] - 1
L[inde... | [
"noreply@github.com"
] | noreply@github.com |
8d7f9c7e120b85f5ce675ea201d2ae03c6e55998 | 2b642643fa8c3fc9f340d90451afd197accd29e3 | /obsapis/views/admin.py | 5d570ffe4863520f2990ff4ada05ef2ed165fd1b | [] | no_license | orochvilato/obsapis | aade4c3f10c9c2eeb74c7d94ff4ed656d3798100 | c71364859ea539876923f0d899fe6ed51e17e105 | refs/heads/master | 2022-12-24T07:37:31.940355 | 2019-10-11T11:03:19 | 2019-10-11T11:03:19 | 110,365,503 | 0 | 0 | null | 2022-12-07T23:42:36 | 2017-11-11T17:30:38 | Python | UTF-8 | Python | false | false | 835 | py | # -*- coding: utf-8 -*-
from obsapis import app,use_cache,mdb
from flask import request
from obsapis.tools import image_response,json_response,cache_function, getdot, strip_accents, logitem
import re
import random
import datetime
import pygal
from obsapis.config import cache_pages_delay
from obsapis.controllers.admi... | [
"olivierrochvilato@yahoo.com"
] | olivierrochvilato@yahoo.com |
a0485c4cb332ebd75e227c8399d966b35342cc60 | 623065fb8f2fec97c7a4e201bff7ff1d9578e457 | /imgviz/data/kitti/__init__.py | afb8eb994cbe1b8a3520b78d531e100de2e1bc1e | [] | no_license | bigdatasciencegroup/imgviz | 4759c4264a43e9d37429489cc63a8a00fbb489d5 | cec9f1e3cc02cac46d11a99c63c696b8743ba6f1 | refs/heads/master | 2020-08-21T23:39:44.038394 | 2019-09-09T13:55:57 | 2019-09-09T13:55:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | import os.path as osp
import numpy as np
here = osp.dirname(osp.abspath(__file__))
def read_pose_file(filename):
with open(filename, 'r') as f:
transforms = []
for one_line in f:
one_line = one_line.split(' ')
Rt = [float(pose) for pose in one_line] + [0, 0, 0, 1]
... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
d9ebe87b47ad3410683fd11d9ff44c615a8a5493 | a99616f6c09f7c5eced19540f3a92b5edb4ef02d | /big-O/frank_burkholder/lecture_big-O/find_anagrams.py | 734d9cfaf949156a2a86d835979bc2c22245231c | [] | no_license | wmarshall484/DSI_LECTURES_2 | 27d33755f3d93e216f63e87fc05730862e217718 | eb67298353f763da82ea6498e5c254e2b246faf8 | refs/heads/master | 2022-12-07T23:31:00.375596 | 2019-11-01T15:25:33 | 2019-11-01T15:25:33 | 220,568,205 | 1 | 0 | null | 2022-11-23T04:29:05 | 2019-11-09T00:20:08 | Jupyter Notebook | UTF-8 | Python | false | false | 5,560 | py | import numpy as np
import time
from collections import defaultdict
import matplotlib.pyplot as plt
import argparse
plt.rcParams.update({'font.size': 14})
def find_anagrams_m1(lst):
time_start = time.time()
result = []
for word1 in lst:
for word2 in lst:
if word1 != word2 and sorted(wor... | [
"frank.burkholder@gmail.com"
] | frank.burkholder@gmail.com |
a8b44fa0be0fcec467b480ed13e5e1ddc5008900 | fc00b177802c49cf04dc6a8e430093bc14ae9b53 | /venv/Lib/site-packages/mypy/typeshed/stdlib/2and3/ctypes/__init__.pyi | 616d9df9283314885fca81c82384f607e3cd5fbd | [] | permissive | artisakov/vigilant-journey | 9c8264d36da5745374a0d08b0b0288a70f978a11 | 4fed9026071a64489d26422ba7cd1a9b9cb05e16 | refs/heads/master | 2022-11-16T03:10:06.418221 | 2020-07-16T07:33:06 | 2020-07-16T07:33:06 | 238,490,887 | 0 | 1 | MIT | 2020-03-01T10:12:22 | 2020-02-05T16:03:07 | HTML | UTF-8 | Python | false | false | 11,771 | pyi | # Stubs for ctypes
from array import array
from typing import (
Any, Callable, ClassVar, Iterator, Iterable, List, Mapping, Optional, Sequence, Sized, Text,
Tuple, Type, Generic, TypeVar, overload,
)
from typing import Union as _UnionT
import sys
_T = TypeVar('_T')
_DLLT = TypeVar('_DLLT', bound=CDLL)
_CT = T... | [
"60698561+artisakov@users.noreply.github.com"
] | 60698561+artisakov@users.noreply.github.com |
76ae4c570eb191bcd3cae53ad96285f51605bdae | 0f4ced644d3ee8db4361a178c69e97b5ddfaf1f6 | /tests/test_video_ops.py | ca62a0790020b8a15521398e27a3edb8155427ad | [
"MIT"
] | permissive | tabital0/video_packaging_platform | e29001e6de701f3c4bc2ecb4ed5bf59dc929868e | d0bff522de10fab6a2847f5433f88015e1210d7d | refs/heads/master | 2022-12-16T08:32:57.401681 | 2020-09-06T12:29:43 | 2020-09-06T12:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,258 | py | import os
import subprocess
import sys
import json
from test_database import *
import ntpath
import string
import secrets
import base64
import unittest
# further this exercise, we should consider a file normalisation function
class test_video_ops(unittest.TestCase):
def setUp(self):
self.working_dir = os... | [
"javierbrines@FIGURIN.local"
] | javierbrines@FIGURIN.local |
0f0b6b2cec570037f97c8c7bbc64d189cf1d44a3 | 462e0b4a7b271c288e99f6c9ac5882b7dd27e6a5 | /Question.py | 14955ff3dd21a9617b0f849c29cd0b11386fb2a6 | [] | no_license | dennyhong96/learn-python | 7c08f2fc7cfce86043fcd5b969b086d98d6f8cea | 2177d8fa8495b0d3468e11e5407c47adec6e7ab8 | refs/heads/master | 2022-11-17T16:41:39.206535 | 2020-07-10T01:54:21 | 2020-07-10T01:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | class Question:
def __init__(self, prompt, answer):
self.prompt = prompt
self.answer = answer
def check_anser(self, user_answer):
return user_answer == self.answer
| [
"haiyanghong@Haiyangs-iMac.local"
] | haiyanghong@Haiyangs-iMac.local |
11610e5e284f31663f91e07ce29bae98c90f16af | b5025befdf74fff3071252abaa4db09479f2d763 | /Gopi_bhagam/Docker_files/python_server/server.py | f1ed0a5272466add01816a31b758c3502317d10a | [] | no_license | sidv/Assignments | d2fcc643a2963627afd748ff4d690907f01f71d8 | d50d668264e2a31581ce3c0544f9b13de18da2b3 | refs/heads/main | 2023-07-30T02:17:19.392164 | 2021-09-23T04:47:56 | 2021-09-23T04:47:56 | 392,696,356 | 1 | 20 | null | 2021-09-23T08:14:11 | 2021-08-04T13:20:43 | Python | UTF-8 | Python | false | false | 241 | py | from flask import Flask
app =Flask (_name_)
@app.route(“/”)
def hello ():
return “hi from sid ”
@app.route(“/”)
def data ():
return “this is data ”
if _name_ == “__main__ ”:
app.run(host='0.0.0.0',port=4000)
| [
"gopibhagam023@gmail.com"
] | gopibhagam023@gmail.com |
465e3e933794157e4094f168a1ad18f93d8fd7b7 | 8b5966d1851c54dcb114eeb7303a634ac2caf933 | /test.py | 78d43a510e55d8190ed60e5ea5e996e7e6797b77 | [] | no_license | Berthot/PySpark | 7a2d5303774a18740674d601bed2dba5d2ce96a3 | 6de38a38cd3115635865630b4f42d376c432150f | refs/heads/master | 2023-04-26T23:39:45.481961 | 2021-05-29T00:05:17 | 2021-05-29T00:05:17 | 369,671,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from typing import Tuple
from SparkBD import SparkBD
original = SparkBD("test")
tuples = [('test', 1), ('test', 1), ('test2', 2)]
original.get_rdd_by_tuple(tuples)
original.save_rdd_to_file("test", coalesce=1)
| [
"matheus.berthot@gmail.com"
] | matheus.berthot@gmail.com |
d44657beb1f44a8371ce7aee8adb41b3592dd400 | 72f72aa7b92114beffeac32963400df5899ef034 | /Coinfection_Transmission_Model.py | 270e28bec4fc0bc79e14d7bffaa6c7f2e44c6735 | [] | no_license | hdobrovo/Two_virus_epidemiology | 47b1432af8cfd7cf04647e3e995c99c069a36a40 | 499751321a8c3987540efa10e3ab00b338963d4f | refs/heads/main | 2023-01-16T02:33:26.851878 | 2020-11-06T18:44:53 | 2020-11-06T18:44:53 | 310,678,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,303 | py | import matplotlib.pyplot as plt
import numpy as np
from scipy import integrate
from pylab import genfromtxt;
import matplotlib.ticker as ticker
from scipy import stats
import matplotlib as mpl
mpl.rcParams['axes.linewidth'] = 3.1
mpl.rcParams['axes.linewidth'] = 3.1
plt.rcParams['font.family'] = "Times New R... | [
"noreply@github.com"
] | noreply@github.com |
450918b101bf80f9b8506b378865dcdefa98b895 | f580680389877a9dc4e24c5558b6452af890fcc1 | /Pert-3.py | 08fa1d798deaa2aa77256a225e4502991175d514 | [] | no_license | diviandari/ninjaxpress-training | b899e92959eb73848eefbb0dedfab0bb6f0f271d | b8b525e02e2fd8340f75ae4e12ed556ff7966ab2 | refs/heads/main | 2023-08-22T09:00:20.485133 | 2021-10-27T10:03:25 | 2021-10-27T10:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | #FOR LOOP -> Pengulangan print / formula
#nama_buah = ['apel', 'jeruk', 'strawberry', 'anggur', 'lemon', 'markisa']
#for buah in nama_buah:
#print (buah)
#print ("---")
#print ('done')
#FOR RANGE -> pengulangan dengan range angka
# range (start, stop, set)
#for i in range (1, 20, 2):
#print(i)
# QUIZ
#nam... | [
"diviandari.sabitha@ninjavan.co"
] | diviandari.sabitha@ninjavan.co |
a4b92786d5aa6b4d9494220d99effef090b94214 | f74e64920aa5f163606d5654991829aed858033e | /search.py | 5d8ca7b140716bb5266ade220bc6befd78a78e36 | [] | no_license | DerKom/FSIPractica1 | abceb15224195cc417c50db1c39b34167519f988 | dc427648d3b8ddd7cf8a20eddbf564a9dfc2b91b | refs/heads/master | 2020-03-17T19:28:44.115246 | 2018-05-17T20:21:15 | 2018-05-17T20:21:15 | 133,864,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,593 | py | """Search (Chapters 3-4)
The way to use this code is to subclass Problem to create a class of problems,
then create problem instances and solve them with calls to the various search
functions."""
from __future__ import generators
from utils import *
import random
import sys
# _______________________________________... | [
"mac_alicante@hotmail.com"
] | mac_alicante@hotmail.com |
ab7997be71a3305122dda1051466a0965060a26c | 940636e2e948808e59f9e0d65f1227bc9b95b063 | /form_basic/admin.py | a2a13446053dcbceb919692224933e5ce8fcd455 | [] | no_license | ccw88u/django_form | f3d1b109992c99d3ba09c5974e58bd7a4f1b44d7 | 47be54ff84fdb99bc8848392590116fa90193c1e | refs/heads/master | 2021-09-06T17:30:05.855684 | 2018-02-09T02:30:17 | 2018-02-09T02:30:17 | 118,993,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | from django.contrib import admin
from form_basic.models import Reguser, website, website_subject
# Register your models here.
class ReguserAdmin(admin.ModelAdmin):
list_display = ('first_name', 'last_name', 'email')
admin.site.register(Reguser, ReguserAdmin)
class admindispfmt1_website_subject(admin.ModelAdmin)... | [
"ccw88u@gmail.com"
] | ccw88u@gmail.com |
41894e7590dde3aa44f8c38b7453e8c364d924f5 | cd8f7ecd20c58ce1ae0fe3840f7c7ee961aa5819 | /Binary Tree Zigzag Level Order Traversal.py | 5ffebb0274f92ac415a122c9c02b477d302ff3ff | [
"Apache-2.0"
] | permissive | sugia/leetcode | 9b0f2a3521b088f8f7e5633c2c6c17c76d33dcaf | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | refs/heads/master | 2021-06-05T07:20:04.099488 | 2021-02-24T07:24:50 | 2021-02-24T07:24:50 | 29,124,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | '''
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary tree [3,9,20,null,null,15,7],
3
/ \
9 20
/ \
15 7
return its zigzag level order traversal as:
[
[... | [
"noreply@github.com"
] | noreply@github.com |
7b7e7d9c330becf08fba57b89a602ca1e454287c | e02684654840ebe9a0030ccd89eea5e10678842d | /nn.py | 6b516abae250778dac37a5888a7066113ecf9498 | [] | no_license | zeynepoguz/ClassificationText | 1830f19b4b523f5b254d0188a842f7b7688192ba | 9e739a0faea56a29d2cf458a4d2af1f859e09aef | refs/heads/master | 2020-03-26T05:37:11.129254 | 2018-08-16T10:50:49 | 2018-08-16T10:50:49 | 144,565,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | import textacy
import keras
from numpy import array
from numpy import argmax
from keras.utils import to_categorical
import textacy.keyterms
from keras.preprocessing.text import text_to_word_sequence
from keras.layers import Embedding
from keras.models import Sequential
from keras.layers import Flatten, Dense, ... | [
"noreply@github.com"
] | noreply@github.com |
f2b27d4fedcc3b3ab8497f7917ec528b3d71273a | 822ed0b7e32ebbb09539cc0b3e99b01168f62f89 | /computerMove.py | bc4b6dab5824060beb6b170a3ed1ec37a5b1b57b | [] | no_license | sawasthi77/tutorials | f4d882e12c440a57b67101301b83159d4a585026 | bb22674112cc99dcfde0c7e1e40b1eca3dc4b277 | refs/heads/master | 2020-07-24T07:47:46.134158 | 2020-05-09T08:43:27 | 2020-05-09T08:53:10 | 207,851,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | import random
randomMove = str(random.randint(1, 3))
if randomMove == '1':
computerMove = 'r'
print('ROCK')
if playerMove == computerMove:
print('It is a tie')
ties += 1
elif playerMove == 's' and computerMove == 'r':
print('You loose!! Try again')
losses += 1
elif rando... | [
"saumyaawasthi187@gmail.com"
] | saumyaawasthi187@gmail.com |
519290a303338a6a8fe7363c928e363289bcdeb6 | b840b9d7a408d076f903b3c5f1f75ee255fda23b | /pca_rbf_svm.py | c625280b74d0f63003de9c2191e005489a0a1be9 | [] | no_license | hzh0512/10701-singlecell | 13f858da59c5b2ae3764b743cfdd80e584857ce8 | 4eec081fd3b3f286f1941b431e76713ed54e0312 | refs/heads/master | 2021-10-08T19:38:53.614162 | 2018-12-16T20:12:38 | 2018-12-16T20:12:38 | 162,035,493 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,786 | py | import pandas as pd
import os, timeit, socket, time, pickle
from sklearn.svm import SVC, LinearSVC
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.metrics import accuracy_score
from sklearn.decomposition import PCA
from sklearn.externals import joblib
from skl... | [
"hzh0512@gmail.com"
] | hzh0512@gmail.com |
81ba4fd53b36f660673c2f5859aaefd8ae71a2e4 | bda16393b0c67d24f8071668ad8ad50d527a6bee | /the_basics/task8.py | f8de388b051241c239b179687571dc9b24926683 | [] | no_license | MaximDick/PythonCourse | 88910c6706944d38b25fbc1b50716ec05f5758ce | 7a5be59b38d1f0959423ee3efa877201cc73aaad | refs/heads/master | 2021-02-28T13:59:29.782929 | 2020-04-24T20:16:42 | 2020-04-24T20:16:42 | 245,703,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | """N школьников поделили K яблок поровну, не делящийся остаток остался в корзинке.
Сколько яблок осталось в корзинке?"""
n = int(input("Введите n:"))
k = int(input("Введите k:"))
m = k % n
print(m)
| [
"maxim1994barca@gmail.com"
] | maxim1994barca@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.