blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f579687df495370d1c6f2cfa5b06f9ce6c5641fb | 02239bd9dc0d78fd3d6b2dd9d91e2ad45d7e982a | /guess_number.py | bdcb6f3c119cc70512d4e1801bbb37578cffe08c | [] | no_license | oupofat/lesson-2.1 | 76d0a8f132dd773360b840e8a6cc412aec0a4caf | 4e6b23d744b8421a53024b7dddcb981255e2d00c | refs/heads/master | 2021-05-01T21:18:13.772513 | 2018-02-10T02:20:18 | 2018-02-10T02:20:18 | 120,976,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | '''Guess A Number Game
You will write a guess-a-number game, where the player repeatedly guesses numbers between 1 to 10 until they guess your secret number. You will implement this game in these stages:
Stage 1
Create a secret variable and set its value to your secret number --- pick a number between 1 and 10. Us... | [
"noreply@github.com"
] | noreply@github.com |
d24a445bdcdc3eae3a08604a2725105f20c6ab48 | 73c690a083709e87819505bfffd2ee74129ede3e | /flaskapp/analysis/utils/text_utils.py | 00b5162da3c2116de340ba0c06f6da649cab71a6 | [] | no_license | wing-yiu/my-first-website | 3da6db791ca695e133fdde6b31006751d6485f1e | 2de453f2ed50afadb0f5c468bec7e19f18ce2641 | refs/heads/master | 2020-03-24T16:12:29.738223 | 2019-05-09T16:12:10 | 2019-05-09T16:12:10 | 142,816,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | from typing import List, Text
import re
def process_text(text_chunks: List[Text]) -> Text:
"""
Given text chunks from image OCR results, apply
preprocessing steps (lowercase, remove symbols etc.)
and convert it into a single string
:param text_chunks: string
"""
text = ' '.join(text_chunks... | [
"wing-yiu@users.noreply.github.com"
] | wing-yiu@users.noreply.github.com |
4fe6f81fd9b24ba3d783802fa3a7ba2fcbd439b5 | ca5bc44c9fffc1a167876eeb3042664fb299d306 | /20-10-14-revrot/python/__main__.py | 1f4cf6a14d675baff1566feba16b3fdc4f71d90b | [
"MIT"
] | permissive | stogacs/cscex | 954acb9dc5e8c899e6435f3c94107f5c9abd4ed1 | 40e3bca8bebc4ee8275d26185cae6f33a8bafcd6 | refs/heads/master | 2023-07-18T05:36:07.091100 | 2021-08-27T02:07:41 | 2021-08-27T02:07:41 | 216,451,464 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import unittest
def revrot(s: str, sz: int) -> str:
# Your implementation here!
pass
# Below are tests!
class Tests(unittest.TestCase):
# tests: ((string, chunk size), correct answer)
cases = [(('123456987654', 6), '234561876549'),
(('123456987653', 6), '234561356789'),
(('... | [
"21zhaoe@protonmail.com"
] | 21zhaoe@protonmail.com |
b2238c30b49d33184d3abcc4dacc1d411fbba643 | 04a16c1172389412f296ae1f1d6e3badeda5baca | /web-backends/web/service/api/init_user.py | f9c01f72c4a297063b4fb4d0d2607fc066bea5ef | [] | no_license | premepen/pen-stool | f425544aebb9de45a07a193ee0009b75fa17e4ba | 23847d0cca809fe3930b44fc15563f37937a151f | refs/heads/master | 2020-05-15T10:42:53.147930 | 2019-04-19T06:02:59 | 2019-04-19T06:02:59 | 182,198,944 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | # coding:utf-8
from datetime import datetime
from django.contrib.auth.models import User
from service.models import UserProfile
UserInfos = [
# dict(username="admin003", password="112233..", email="actanble@gmail.com", identity="SuperManager", truename="夜神月"),
dict(username="admin001", password="112233..", em... | [
"meigea@0528@gmail.com"
] | meigea@0528@gmail.com |
4d5deb7f277509a6a9f833abf735f575466b58d0 | 57e30a59f2924240251ae1842d8fd1bdde29fa0a | /main/generate_blue_plate.py | 3a8d169e547af1212f9de453fa29fed1fce44321 | [
"MIT"
] | permissive | Minionyh/plate_generator | f99b8361acf43f2940a084c0fcfd574c4ccbc1d1 | cbea92aff070a8691a0394263e8f4b20b3f2c839 | refs/heads/master | 2022-11-05T11:30:42.891742 | 2020-06-22T09:25:18 | 2020-06-22T09:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,507 | py | # encoding="utf-8"
import os
import cv2
import numpy as np
import random
import math
from PIL import Image, ImageDraw
'''
随机抽取一张汽车背景图片,随机选择一张生成的车牌,将生成的车牌贴在汽车背景图片上,增加干扰线、干扰点、随机旋转和切边等,增加生成车牌的真实性
'''
# 颜色的算法是,产生一个基准,然后RGB上下浮动FONT_COLOR_NOISE
MAX_FONT_COLOR = 100 # 最大的可能颜色
FONT_COLOR_NOISE = 10 # 最大的可能颜色
POSSIBI... | [
"yanmeima3@creditease.cn"
] | yanmeima3@creditease.cn |
7442b645351223a7e579a1c48f2f42ff4a293348 | 4809471274d6e136ac66d1998de5acb185d1164e | /pypureclient/flasharray/FA_2_7/models/policy_rule_snapshot_post.py | 84d29e372221653e09d61b36a969342cb025149e | [
"BSD-2-Clause"
] | permissive | astrojuanlu/py-pure-client | 053fef697ad03b37ba7ae21a0bbb466abf978827 | 6fa605079950765c316eb21c3924e8329d5e3e8a | refs/heads/master | 2023-06-05T20:23:36.946023 | 2021-06-28T23:44:24 | 2021-06-28T23:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,241 | 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.7
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from .... | [
"hubert.chan@purestorage.com"
] | hubert.chan@purestorage.com |
137ffd59156db4e492205f3e0ce459f70c3496ad | 18b2d01779f735594b425c74dbe33fc9b6a7cd3d | /src/vaspfile.py | d6c081cf6ac0d286b1823c2284a49a43bd4c7d5e | [] | no_license | mjritz/GridDFT | 3621a35cb2f8500904be50f01ad8271c54331d9e | 2071e853ce2433f91e477097e449fe111c5afaf9 | refs/heads/master | 2020-03-22T04:38:33.346011 | 2019-07-09T17:16:09 | 2019-07-09T17:16:09 | 139,511,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,395 | py | import numpy as np
import copy
import string
import sys
def readvasp_outcar(filename):
forcexyz=[]
xyz=[]
final_energy=0
opt_done=False
coord_done=False
f=open(filename,'r')
vasp_outcar=f.readlines()
i=np.size(vasp_outcar)-1
#find the stationary point coordinates in the file
w... | [
"noreply@github.com"
] | noreply@github.com |
cd8cc0f942099185285d0dd73b4c1c6706e8e60e | ee4130d915a66181f3c5cd74b78312a2319f0650 | /beam_state.py | 43d6bd06688d6ffcd20e4a56ef0cc8071728f520 | [] | no_license | alexe1ka/hrm_test_task | d2945cf6b122fb3eb29664c8e7e683555138e3fd | 5ab414df1a47b466382daa20c3f54c6af83ad2d6 | refs/heads/master | 2020-12-31T21:57:22.436642 | 2020-02-10T08:58:51 | 2020-02-10T08:58:51 | 239,042,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | class BeamState:
"information about the beams at specific time-step"
def __init__(self):
self.entries = {}
def norm(self):
"length-normalise LM score"
for (k, _) in self.entries.items():
labelingLen = len(self.entries[k].labeling)
self.entries[k].prText = se... | [
"nadezhkin@matller.com"
] | nadezhkin@matller.com |
eee346b98c2726facf971db72ef2c5d6be0a7ee9 | 9ea4e1d14243a7864d99d9835cb5609b06f9b176 | /ex8_4.py | 1c8d2234ed904d7b3d8125a3444023535705f024 | [] | no_license | sandeepkundala/Python-for-Everybody---Exploring-Data-in-Python-3-Exercise-solutions | 30b81d50e2afe68e24baa524e5ba25248ef7bdef | 520330058224aef155d02f443a31d18c0bc4020b | refs/heads/master | 2021-05-02T05:03:21.530979 | 2018-02-09T17:44:11 | 2018-02-09T17:44:11 | 120,913,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # Chapter 8
# Exercise 4: Write a program to open the file romeo.txt and read it line by line. For each line,
# split the line into a list of words using the split function.
# For each word, check to see if the word is already in a list. If the word is not in
# the list, add it to the list.
fh = input('Enter file: ... | [
"noreply@github.com"
] | noreply@github.com |
86486ffa66928213a486bb1603bf1d7d8886b948 | 61179dd70724ea2d60f280b3f4a5b77e7f7c3dee | /max/regression.py | bc9bcfee459bee34a8c048ed02dd642a67d9b377 | [
"MIT"
] | permissive | maxisacson/sml-project | cc250c3f90b85788c879cdcc0229baaa5b6e42a7 | f4ba04053e178854abd84eea49ae7244a43f0483 | refs/heads/master | 2021-01-10T07:29:13.364541 | 2016-04-21T17:00:07 | 2016-04-21T17:00:07 | 54,034,654 | 0 | 2 | null | 2016-04-21T14:14:19 | 2016-03-16T13:35:09 | Python | UTF-8 | Python | false | false | 4,715 | py | #!/usr/bin/env python3
import sys
import traceback
import matplotlib.pyplot as plt
import pandas as pd
import scipy as sp
from sklearn.kernel_ridge import KernelRidge
from sklearn.gaussian_process import GaussianProcess
from sklearn.svm import SVR, NuSVR, LinearSVR
from sklearn.cross_validation import KFold
from sklea... | [
"max.isacson@physics.uu.se"
] | max.isacson@physics.uu.se |
33e17f6c58c9bf97e891655e6e19649fba2301be | 2567d8fd264d3b2a696c080dfeddc0d26eb4587c | /userapp/views.py | a0ad31dd4b0a28b588ea96673df5dd05fff5dda7 | [] | no_license | Alex87Rt/rest_dj | 66a3be36088cc12f774874eb2a215ff83a876ccd | a376487dfc299784ee473334ba080004efb8fc6b | refs/heads/master | 2023-08-19T11:45:06.269249 | 2021-09-27T19:25:27 | 2021-09-27T19:25:27 | 411,015,823 | 0 | 0 | null | 2021-10-03T20:56:39 | 2021-09-27T19:24:50 | Python | UTF-8 | Python | false | false | 393 | py | from rest_framework.viewsets import GenericViewSet
from rest_framework.mixins import ListModelMixin, RetrieveModelMixin, UpdateModelMixin
from userapp.models import User
from userapp.serializers import UserModelSerializer
class UserModelViewSet(ListModelMixin, RetrieveModelMixin, UpdateModelMixin, GenericViewSet):
... | [
"63261295+Alex87Rt@users.noreply.github.com"
] | 63261295+Alex87Rt@users.noreply.github.com |
25da8a1b86f315f9b179253954558304e23b3fa3 | 645bc34b4f22dcd372b6e84f3cc237039c451b74 | /Pyon exercicios/Exercicios/074.py | 5c2f218e0d55259d99cd29dbf8c258d76edbe780 | [
"MIT"
] | permissive | alefbispo/Exercicios-do-curso-de-Python | b778c1619e2c3cc594ea909673b0c3756ec45f7a | 16cd569ab16542135b834ac8d0cfb0ae84836d53 | refs/heads/main | 2022-12-25T09:22:42.401244 | 2020-10-06T21:20:44 | 2020-10-06T21:20:44 | 301,856,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | '''Crie um programa que gera 5 numeros aleatorios e guarda em uma tupla
depois mostre a lsita de numeros gerados
indique o menor
e o maior'''
from random import randint
numeros = (randint(1, 10), randint(1, 10), randint(1, 10), randint(1, 10), randint(1, 10))
print('A lista é : ', end='')
for x in numeros:
print(x,... | [
"alef.b.dos.santos@hotmail.com"
] | alef.b.dos.santos@hotmail.com |
bde78a4c974e13d854f32ef45423cc476e96523a | a29f151197c85dee8f05493a8fe697549391fef2 | /nr07_Petle/nr07_DebuggowanieSkryptu_LAB.py | c31a383e61c002aad1b7ecb3045cae9e61d76c9f | [] | no_license | sswietlik/helloPython | 18a9cd3bb6ab9276415cbb018c9153c99abcb2f0 | d207567e7d5eabd9d7eef8c72538453ca3382021 | refs/heads/master | 2022-11-26T20:15:07.723910 | 2020-08-11T06:44:34 | 2020-08-11T06:44:34 | 261,168,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | print('Zad 1')
number = 1
previus_number = 0
while number < 50:
print(number + previus_number)
previus_number = number
number = number + 1
print()
print('Zad 2')
print()
text = ''
number = 10
condition = True
while condition:
text += 'x'
print(text)
if len(text) > number:
condition ... | [
"sswietlik@gmail.com"
] | sswietlik@gmail.com |
0b6170d122be14be89e9be9a761532cbdecb8118 | 2eecff5e4ab798511e153d81d7a7ad4c4f176c20 | /applicationBook/models.py | 7ce1468cf1a47aa5fee1b3154b253defa17fc085 | [] | no_license | motovotcazsvs/projectBook | b915f62527903656eabdacc0bae2e09440466253 | ed4a5460e717d88534800a29bab499ef339776cc | refs/heads/main | 2023-06-03T04:47:53.254889 | 2021-06-17T19:40:03 | 2021-06-17T19:40:03 | 377,943,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | import datetime
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.utils.safestring import mark_safe
class Book(models.Model):
#id = models.AutoField(primary_key=True)
title_book = models.CharField("Название книги", max_length = 100)
autho... | [
"78682549+motovotcazsvs@users.noreply.github.com"
] | 78682549+motovotcazsvs@users.noreply.github.com |
633d256d2a05561a0b486052b94ba02dc527c64e | 4ddec831379d52e507d8c3a3cf8d520b63c38688 | /venv/bin/python-config | 8fc7f4eb52b5531e398d65b5f65db4642f5f8b5a | [] | no_license | nuriahsan/nwh87 | 0a88487ccde459df85d5ee6f4f1b170910e76467 | 483e12b97a8bb7b3d6ca00348f2e4873ec0aef15 | refs/heads/master | 2021-03-19T15:32:35.429371 | 2017-12-16T08:36:34 | 2017-12-16T08:36:34 | 114,441,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | #!/home/itsolution/nwh87/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_info >... | [
"nuwarhsan87@gmail.com"
] | nuwarhsan87@gmail.com | |
17d28bd75b860776d0eaa30ce349594a99dcc772 | c2c86fc83b4053d360c2825e31837c1bdfe65626 | /Instrumentos/Codigos/deprecated/Q4/src/models/Issue.py | abf5fbb25c1693101061064a2afa8c8447a264f5 | [
"CC-BY-4.0"
] | permissive | aylton-almeida/TIS6 | f098883aebb3e9b4bf73d91ab660adf08a94eb58 | 8072b3f868b87fd92764850c9ab37f2600b4fb4e | refs/heads/master | 2023-06-05T05:53:56.166432 | 2021-06-02T00:22:34 | 2021-06-02T00:22:34 | 380,529,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from __future__ import annotations
from pandas.core import series
class Issue:
cursor: str
id: str
state: str
def __init__(self, data: dict) -> None:
self.cursor = data.get('cursor')
self.id = data.get('id')
self.state = data.get('state')
@staticmethod
def from_gith... | [
"ayltonalmeida2@gmail.com"
] | ayltonalmeida2@gmail.com |
c1e94ba5f65563136567f3e7a0e4959ef0888379 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/443/usersdata/299/100806/submittedfiles/matriz1.py | bcd39c701621720ce81cda93ee4390016c4cb975 | [] | 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 | 287 | py | # -*- coding: utf-8 -*-
m=int(input(''))
n=int(input(''))
matriz=[]
for i in range(0,m,1):
linha=[]
for j in range(0,n,1):
linha.append(int(input('')))
matriz.append(linha)
print(matriz)
espelho=[]
for i in range(m,-1,-1):
espelho.append(matriz[i])
print(espelho) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
264a5687665c41beae850eadd61b1e7c1b06e832 | cc04d19a4b6ebe8c16305dc5b738f011449fd5a4 | /Data Science/Formação Cientista de Dados com Python e R/Séries Temporais/decomposicao.py | b0c3695c39132fef17fef280b828669a6b1f664d | [] | no_license | souzag/D.S.-Python | 6851e413890948b5bcf411d394a4620a850b1e07 | 82570883872dd43e788f624e3a95f13d4a4d95ef | refs/heads/master | 2022-01-27T22:49:32.662512 | 2022-01-10T18:38:20 | 2022-01-10T18:38:20 | 224,016,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import pandas as pd
import matplotlib.pylab as plt
from statsmodels.tsa.seasonal import seasonal_decompose
base = pd.read_csv('dados/AirPassengers.csv')
dateparse = lambda dates: pd.datetime.strptime(dates, '%Y-%m')
base = pd.read_csv('dados/AirPassengers.csv', parse_dates = ['Month'],
index_... | [
"glls@ic.ufal.br"
] | glls@ic.ufal.br |
c29cdddd2bfb93b1f1e7e7bdd3c621830b504ef2 | 08ceef976ba0c26baba4d789efa6c3ad14f5a92b | /alot.py | 01a4016e710b3c4fcea742951407c782e2f54264 | [] | no_license | nCrazed/thealot_heroku | b3a775f1519cffbcb0525a3e2c8e2b7729e3033e | 4cd402809d67c8df4a4824c4af9a995351602e1b | refs/heads/master | 2016-09-06T18:16:46.080386 | 2014-02-08T11:17:06 | 2014-02-08T11:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | import json
import os
from thealot import TheAlot
config = {
"server" : "irc.quakenet.org",
"port" : 6667,
"channel" : "#TheAlot",
"nickname" : "HerokuAlot",
"prefix" : "!",
"database" : os.getenv("DATABASE_URL"),
"plugins" : [
"quote",
"links",
"alo... | [
"edvin.malinovskis@gmail.com"
] | edvin.malinovskis@gmail.com |
2cfd471ac0a96cad4ce6af0b515c10f6626831e4 | 7974ec0bfb1d1762bc0d6cb661f9a8717c769ff2 | /config.py | 313c059c72d18d18a768295fea8ed03e3e7d90d8 | [] | no_license | codingdojo-projects-algos-0419/CampaignTracker | e2e1fbc7f7f940d01ee276ae41d4444b2e38f96d | fe7f5addc72262dd3e244783a4a9d3c7a425ce4f | refs/heads/master | 2021-06-17T04:05:40.401474 | 2019-06-24T22:34:40 | 2019-06-24T22:34:40 | 179,190,866 | 0 | 0 | null | 2021-03-20T01:13:58 | 2019-04-03T02:00:15 | Python | UTF-8 | Python | false | false | 455 | py | from flask import Flask
from flask_bcrypt import Bcrypt
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_marshmallow import Marshmallow
app = Flask(__name__)
app.secret_key = "Skyrim is for the Nords"
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///campaign_tracker.db"
app.config... | [
"matt.wiltzius@gmail.com"
] | matt.wiltzius@gmail.com |
0c6e67e73b53b44b75f37b93ef76aabba029dc38 | 59da6ae08de1025bafffd2d525890c7356989c83 | /0x08-python-more_classes/0-rectangle.py | b29deffa2e968a6ebc3fbc31f481e56836257563 | [] | no_license | mittsahl/holbertonschool-higher_level_programming | e0b797b6bac52f099e3379d3d36da7a425037279 | c93f5b5982bbc632d19c513117025a8eae9a1648 | refs/heads/master | 2023-03-18T21:02:25.636186 | 2021-03-03T18:58:18 | 2021-03-03T18:58:18 | 319,373,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | #!/usr/bin/python3
""" as of now empty rectangle class """
class Rectangle:
""" the rectangle class """
pass
| [
"msalem311@aol.com"
] | msalem311@aol.com |
134c95696c7c5794d06cd574a9ce55075d6995a9 | 516014e56272bee587fc3143b1f76de9e1d40e98 | /ecommerce/views.py | 35ba58529c03724472adbab4c674fb76d61d3327 | [] | no_license | JoulesCH/ecommerce | a9428ef84b148cc1e114651c78cab9c01927cdc8 | c3cb25ab9ede5bf7adb0189a86194953eac969f1 | refs/heads/master | 2023-04-14T13:59:50.783597 | 2021-04-24T17:48:24 | 2021-04-24T17:48:24 | 358,467,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | from django.shortcuts import render
from django.http import HttpResponse
from products.models import Product
def home(request):
principal_categories = ["temporada", "hombre", "mujer"]
products = Product.objects.all()
context = {
'products': products,
'p_categories': principal_categories,
... | [
"juliocaesar@unknown.mshome.net"
] | juliocaesar@unknown.mshome.net |
07158f94f5a82ff2bac275c772cf38aac904688e | 141b42d9d72636c869ff2ce7a2a9f7b9b24f508b | /myvenv/Lib/site-packages/graphql_jwt/__init__.py | 819f022ae38a37427762722a570444e64a2871f4 | [
"BSD-3-Clause"
] | permissive | Fa67/saleor-shop | 105e1147e60396ddab6f006337436dcbf18e8fe1 | 76110349162c54c8bfcae61983bb59ba8fb0f778 | refs/heads/master | 2021-06-08T23:51:12.251457 | 2018-07-24T08:14:33 | 2018-07-24T08:14:33 | 168,561,915 | 1 | 0 | BSD-3-Clause | 2021-04-18T07:59:12 | 2019-01-31T17:00:39 | Python | UTF-8 | Python | false | false | 244 | py | from . import relay
from .mutations import (
JSONWebTokenMutation, ObtainJSONWebToken, Verify, Refresh,
)
__all__ = [
'relay',
'JSONWebTokenMutation',
'ObtainJSONWebToken',
'Verify',
'Refresh',
]
__version__ = '0.1.9'
| [
"gruzdevasch@gmail.com"
] | gruzdevasch@gmail.com |
e666f5dc1d4d270422e3230f0bd3998bdcdfb9fe | 38e3f2f9dab4c8b51fd5de9be82cebc3c12e5513 | /ch04/simple-payment-example/main.py | 50a0cfcd6187bbee44eadfc5cfa5b531c701e127 | [] | no_license | Web5design/PayPal-APIs-Up-and-Running | a012e74900941d81ee3eaaf7ef9a7401e92f81ee | 495e757bc20484262e5dcc2a95724d7918c02770 | refs/heads/master | 2021-01-20T01:38:29.900850 | 2012-02-01T07:48:17 | 2012-02-01T07:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,667 | py | #!/usr/bin/env python
"""
A minimal GAE application that makes an Adaptive API request to PayPal
and parses the result. Fill in your own 3 Token Credentials and sample
account information from your own sandbox account
"""
import random
from google.appengine.ext import webapp
from google.appengine.ext.webapp import u... | [
"matthew@zaffra.com"
] | matthew@zaffra.com |
f499fdcb4f0709533b24228b02f3caa54d6bc004 | 5a2390789b4e4affbc20bbdfd61a22360701ce26 | /wikiscout/annotation.py | b55c73d392fd67ced74c12a6a2b3c766cbc96bac | [] | no_license | alvaromorales/wikiscout | 1db0a060f7372a703c918c085f47ff8a74fcb439 | 0f72da459bf84f50045fd4ac867a6f87048059c2 | refs/heads/master | 2021-01-13T02:10:45.146992 | 2014-07-29T04:15:15 | 2014-07-29T04:15:15 | 14,383,870 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,870 | py | import re
import logging
import wikikb
import tokenize
from nltk.corpus import stopwords
from unidecode import unidecode
logger = logging.getLogger(__name__)
class ObjectNotFoundException(Exception):
pass
class ObjectSymbolNotFoundException(Exception):
pass
# Annotation Generation methods
def replace_ti... | [
"alvarom@f1b2aeda-bd07-0410-ad1a-e603d8ac5cf8"
] | alvarom@f1b2aeda-bd07-0410-ad1a-e603d8ac5cf8 |
1e299f15e93636a48838e40218e29326b88193af | a7dba0110725eda866598a483bff2ff0328a5b76 | /crm/main/models.py | d9a38611ac24f673230aa0972e67921c2abc8ff8 | [] | no_license | jetkokos/bar_crm | b0e650fd09f96e2e118ca9823d1a51520b8baf1c | 2b530398f9846b99cd6e1cc80a7ec6a34efda368 | refs/heads/master | 2022-12-02T00:10:00.582041 | 2020-08-10T09:56:05 | 2020-08-10T09:56:05 | 286,426,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | from django.db import models
from django.contrib.auth.models import User
# from datetime import date
# Create your models here.
class Report(models.Model):
date = models.DateField(unique=True)
created_by = models.ForeignKey(User, on_delete=models.CASCADE)
cash_amount = models.FloatField()
card_amount ... | [
"afeniks@bk.ru"
] | afeniks@bk.ru |
836b040e3b5aced9acf67551d4a1028dfd7d51be | 3940b4a507789e1fbbaffeb200149aee215f655a | /lc/review_832.FlippingImage.py | 2cd9d7365186d351732cd500abb08e980ee7063b | [] | no_license | akimi-yano/algorithm-practice | 15f52022ec79542d218c6f901a54396a62080445 | 1abc28919abb55b93d3879860ac9c1297d493d09 | refs/heads/master | 2023-06-11T13:17:56.971791 | 2023-06-10T05:17:56 | 2023-06-10T05:17:56 | 239,395,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | # 832. Flipping an Image
# Easy
# 1071
# 165
# Add to List
# Share
# Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image.
# To flip an image horizontally means that each row of the image is reversed. For example, flipping [1, 1, 0] horizontally results i... | [
"akimi.mimi.yano@gmail.com"
] | akimi.mimi.yano@gmail.com |
42465f879882e1d5f08855c795d61d43a6aa2c48 | f9e54f672768dc607131ba00881b2419d321f599 | /Desafio 43.py | 2aab5096755d7e7c0a6325342b80b33b89c19f0f | [] | no_license | fernandorssa/CeV_Python_Exercises | 60937409f72076d173e4f70c69966a667f6f1be9 | 54e699bc06838976028327b85fd60b52501cc1e4 | refs/heads/master | 2020-09-10T05:51:02.485894 | 2019-11-14T10:40:18 | 2019-11-14T10:40:18 | 221,664,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | peso = float(input('Digite o seu peso: '))
altura = float(input('Digite a sua altura: '))
imc = peso / (altura * altura)
print('')
print('O seu IMC é de {:.2f}'.format(imc))
print('')
if imc < 18.5:
print('FERNANDA? BETA? Você está abaixo do peso. Quer uma paçoca?')
elif imc >= 18.5 and imc < 25:
print('Seu p... | [
"fernando@pop-os.localdomain"
] | fernando@pop-os.localdomain |
0b704ba5ab2e27ba3d5a3622b75cc91dcaae62a1 | 5d5463545f2dca259b6aeec2cc1dcaa04d47d518 | /tribune/settings.py | d1e2924de818da30068e31df0c74fbe53e2b5058 | [] | no_license | umurangamirwa/Django_Admin1 | fda88a36fd41e23a3f8fa622519a111f42f91145 | 7c00a2aa4ef18d978d67806f525d2aec44c94ef1 | refs/heads/master | 2020-04-28T16:03:28.506832 | 2019-03-13T10:23:26 | 2019-03-13T10:23:26 | 175,397,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | """
Django settings for tribune project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"carizeree@gmail.com"
] | carizeree@gmail.com |
46a3a35f2d53b4bd0be67f8c736f96b172e90048 | c64bb34a3dde14d3c9bf813bde414a7b3f10611d | /om_account_accountant/ommat_catalogue/models/__init__.py | adc746cc6108d93aeb7d5af1bfe8855fcc16cab8 | [] | no_license | sm2x/my_work | ebf2e1abd06191ee59b0d82a23534274a81a3195 | efc469aee4cd20b038d48d4c09f8257f3f04ba1c | refs/heads/master | 2021-01-07T20:41:45.254025 | 2020-02-12T16:02:46 | 2020-02-12T16:02:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # -*- coding: utf-8 -*-
from . import models
from . import flock_model
from . import week_model
from . import catalogue
from . import ommat_mrp_bom
from . import models_stock
from . import check_create_moves
from . import check_cycle_wizard
from . import check_payment
from . import checks_fields
from . import report_c... | [
"ragaamaherhanna@gmail.com"
] | ragaamaherhanna@gmail.com |
9b0a0dcb559ded011050cb272e364c575b57a749 | 1a3c38f737656907ea567c10104f1a86b57b1ee5 | /main.py | 75618a070f5c32d006e4ea8c1cd65562f3c94bbe | [] | no_license | rizal72/spacex | ebd1df562ace0982dbda5e1a91eeaf9876b88b5b | e55d8f8e5a2d00a70c6d49f54cfd988a0d04aeb1 | refs/heads/master | 2023-03-03T20:30:57.768680 | 2021-02-08T22:51:16 | 2021-02-08T22:51:16 | 336,438,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,681 | py | @namespace
class SpriteKind:
counter = SpriteKind.create()
enemyProjectile = SpriteKind.create()
def on_b_pressed():
global bombs
if bombs > 0:
playerShip.start_effect(effects.halo, 1500)
for enemyShip in sprites.all_of_kind(SpriteKind.enemy):
enemyShip.destroy(effects.disin... | [
"riccardo.sallusti@gmail.com"
] | riccardo.sallusti@gmail.com |
a23f606cccb1954cd33031630f58fbc3cd8c80a3 | 8c10ac0cda0c80dbc46b8cd8ed44e42d7a2a2875 | /剑指/39 数组中出现次数超过一半的数字/39.py | 53d36482e67292d9b20573bb0be0b0816e52dbba | [] | no_license | snooowman/leecode | 8a55b942ef2d9abde9e4eb3e9ef16b062c286c01 | 224dec07019c2488b277a20cabffd5e7f5ad31f1 | refs/heads/main | 2023-04-15T10:04:25.500424 | 2021-04-26T15:58:22 | 2021-04-26T15:58:22 | 325,981,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # -*- coding:utf-8 -*-
class Solution(object):
def majorityElement(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
# 排序
# nums.sort()
# return nums[int(len(nums)/2)]
#hash map
dic = {}
for i in nums:
if i in dic:
... | [
"1134533745@qq.com"
] | 1134533745@qq.com |
ca99a6249fa59e8f11f04803bc4bd885e30cfeb6 | 9a0972c17f7948690d08600e8c58f86334e8d34b | /计时器/MyTimer.py | 7dc580fdc86badf29e10dcaea001c595108f6da5 | [] | no_license | Xiaomifeng98/Python_File | 005b1ba717e7f0330e5a5d2fc3e7745b70b56100 | 357e8bde15e5508e54f4ee87efa68d4586402131 | refs/heads/master | 2022-11-09T04:39:23.764772 | 2020-06-29T14:03:02 | 2020-06-29T14:03:02 | 240,662,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | import time as t
class MyTimer():
def __init__(self):
self.unit = [' year(s)', ' month' , ' day', ' hour', ' minute', ' second.']
self.prompt = 'Timing not started'
self.lasted = []
self.start_num = 0
self.stop_num = 0
def __str__(self):
return self.prompt
... | [
"1138803648@qq.com"
] | 1138803648@qq.com |
e9ac0b76963cb9cd14111bf20698c8b8425896f4 | 7b8ab82421ea57f4b3b56a94f519ae402a2b1ce6 | /tests.py | dc421656095a7722e28bc00bd5db2ffedb3ff1a8 | [] | no_license | zkings125/G2C1Messages | 51db76193f813c4755fab581b0f5c961c48eaf8c | 696571db9925aa2b9842ff5c4d787d70cb35c4e0 | refs/heads/master | 2023-03-05T23:47:34.872013 | 2021-02-16T16:11:59 | 2021-02-16T16:11:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,826 | py | from g2c1.base import crc5, pulsesToSamples # to test checksum and convert pulses to samples
from g2c1.messages import Query, QueryRep, fromBits # to test commands
from g2c1.command import Reader # to test reader functionalities
from g2c1.respond import Tag # to test tag functionalities
def visualizePulses(pulses, sa... | [
"niklas.beuster@tu-ilmenau.de"
] | niklas.beuster@tu-ilmenau.de |
4b8abb52dd2a8f97e71ec003358f1f0248c5fab0 | 2e29ed138ab0fdb7e0a6e87b7c52c097b350fecf | /SA-PreciousMetals/PathXY.py | fa4653caf5d0cd64d7c9b72ba50da2c21e9cf342 | [] | no_license | ronniegeiger/Abaqus-Scripts | 1e9c66664bd7dc7e5264bf763f15936eadcff529 | c071bbfe0e6c54148dfd4a23f786f017dfef4ae4 | refs/heads/master | 2023-03-18T06:33:13.690549 | 2018-08-14T11:37:07 | 2018-08-14T11:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 03 09:17:22 2016
@author: Jack
"""
from abaqus import *
from abaqusConstants import *
import __main__
import section
import regionToolset
import displayGroupMdbToolset as dgm
import part
import material
import assembly
import step
import interaction
imp... | [
"noreply@github.com"
] | noreply@github.com |
0c0c8071a7b099fcfc99f95dd1e5667ed074117d | d9af28764d8022612c8dcc2fc18e32d729f82e0e | /callme/x64/solution.py | f43bfe48701705c78f3efc99bc9b6b98b358fab4 | [] | no_license | tylerwarre/rop-emporium | 31518c4a6562ef0841a9a6db541fc7fb024c903a | fcd027e799d675fd50c0d6a603ee54d640f3b5e2 | refs/heads/main | 2023-07-19T02:39:08.166968 | 2021-09-22T21:12:20 | 2021-09-22T21:12:20 | 407,247,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | from pwn import *
context.arch = 'amd64'
prog = process("./callme")
# 0x000000000040093c: pop rdi; pop rsi; pop rdx; ret;
pop_0 = p64(0x000000000040093c)
# function argument 1
arg_0 = p64(0xdeadbeefdeadbeef)
# function argument 2
arg_1 = p64(0xcafebabecafebabe)
# function argument 3
arg_2 = p64(0xd00df00dd00df00d)
# ... | [
"tyler@thewalloffire.tech"
] | tyler@thewalloffire.tech |
a9ab0da8a3547a01c743cd7ebeeb97bd5a455405 | d0e43084ab6891c5ddaffa92ff1796835a580361 | /Processamento Imagens/Processamentos/Redimensionar_Imagens/redimensionar.py | f2f052d08b72ac2263eb9a90a81b896af3515426 | [] | no_license | VQCarneiro/IMEP-Inovacoes_No_Melhoramento_De_Plantas | 293d09ca35c96d6e370d083420de8c9086ab8e78 | f6e741cdacdcac36148195575c8cccc8fa15895a | refs/heads/master | 2020-08-01T17:59:18.260830 | 2019-10-14T16:29:48 | 2019-10-14T16:29:48 | 211,068,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | ########################################################################################################################
# Lavras - MG, 11/10/09/2019, 10:48
# Desenvolvedor: Vinícius Quintão Carneiro - Professor da Universidade Federal de Lavras - UFLA
# E-mail: vinicius.carneiro@ufla.br
# Github: VQCarneiro
##########... | [
"vqcarneiro@gmail.com"
] | vqcarneiro@gmail.com |
aab97c0a0be9fcc62d93fda4f11ec07440987772 | f616d9598727777943a6c1eac8d2c54c4e5fab9f | /nqmc_download_measure_xml.py | dc5f211ff8c0e7130b2ca29162f222219226dd11 | [] | no_license | capdevc/mms_nlp | 255d28fe537d344f0d1e508766021c209ee03b8a | 16b5855d3e986e351256ff550e62a0977cccb335 | refs/heads/master | 2021-01-20T12:21:51.018162 | 2015-02-09T14:29:29 | 2015-02-09T14:29:29 | 30,080,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | #!/usr/bin/env python
from __future__ import division, print_function
'''
@uthor: Steven Keith Shook II
November 19, 2014
Purpose: Download files from a website.
Problem:
Splinter Library Docs
https://splinter.readthedocs.org/en/latest/
'''
import sys
import time
from splinter import Browser
with Browser('firefo... | [
"ccapdevi@utk.edu"
] | ccapdevi@utk.edu |
5d88c4071f3ab599662a054d316761b474431fb3 | 66634946aec18840c00b0e568c41faf3e9f473e7 | /Level1/Lessons12947/yang_12947.py | d2ab05419fc2d5728f745b71ed3884e6f437849e | [
"MIT"
] | permissive | StudyForCoding/ProgrammersLevel | 0525521b26ad73dcc1fe58a1b2f303b613c3a2f6 | dc957b1c02cc4383a93b8cbf3d739e6c4d88aa25 | refs/heads/main | 2023-08-14T23:15:53.108351 | 2021-10-05T16:04:32 | 2021-10-05T16:04:32 | 354,728,963 | 0 | 1 | MIT | 2021-10-05T16:04:33 | 2021-04-05T05:26:25 | Python | UTF-8 | Python | false | false | 894 | py | #하샤드 수
def solution(x):
answer = 0
for idx in str(x):
answer += int(idx)
if x % answer == 0:
return True
else:
return False
# 테스트 1 〉 통과 (0.02ms, 10.3MB)
# 테스트 2 〉 통과 (0.02ms, 10.3MB)
# 테스트 3 〉 통과 (0.02ms, 10.3MB)
# 테스트 4 〉 통과 (0.02ms, 10.3MB)
# 테스트 5 〉 통과 (0.02ms, 10.3MB)
# 테스트... | [
"53898123+17-76018348@users.noreply.github.com"
] | 53898123+17-76018348@users.noreply.github.com |
f9dbf2cf84c8504d958ff6691955b94edf461ea1 | 29ca165f964258609a449faf6612e356d5f9f230 | /Monk and the Islands.py | 6ce78afc617c2dd8f02fbbb83c14a7bbfedc66a2 | [] | no_license | divanshu79/hackerearth-solution | a94b7dfb36e36c032741fb563dcf54a746b6d991 | dd8e9341583ad0309d2a6727381edb814fcf1e78 | refs/heads/master | 2020-03-25T07:56:36.200247 | 2018-08-05T06:46:09 | 2018-08-05T06:46:09 | 143,589,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | l_out = []
def graph(x):
for i in range(1,x+1):
l_in = []
for j in range(1,x+1):
l_in.append(100000)
l_out.append(l_in)
for _ in range(int(input())):
a,b = list(map(int,input().split()))
p = max(a,b)
graph(p)
#print(p)
print(l_out)
for i in range(b):
x,y = list(map(int,input().spli... | [
"noreply@github.com"
] | noreply@github.com |
321c7bb1b683e8bc2174001fc3b4d9f68766a589 | 67b64ec11375fabcf8a8ca5b61ac01fb978d0791 | /assetstracker/apps.py | 347a7005b127ce90a7435f7bf0a3e4c6b4c33601 | [] | no_license | mahmoodkhan/assetappbackend | d7d1c43cece9da74396e48bf514b6a128941abe6 | 4477b061902f229905a0a7c90441ed6465ba854f | refs/heads/master | 2021-01-13T14:48:15.288280 | 2017-05-04T04:06:56 | 2017-05-04T04:06:56 | 76,569,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class AssetstrackerConfig(AppConfig):
name = 'assetstracker'
| [
"mkhan@mercycorps.org"
] | mkhan@mercycorps.org |
d46d2ddaf527788aea4f670fe738735dca5fd153 | b4437c0207ea83b575df297385af360fcafa94dc | /import_scripts/insert_tsv_mongodb.py | f03941497422b68a6a8017580d0578d99aedb9a3 | [
"MIT"
] | permissive | cancerregulome/Addama | aac102bfb1e506d59303e3645fcfef26900be776 | 7db3d2459f207f44d382c4d16b4266c410c69325 | refs/heads/master | 2021-01-14T14:18:21.404313 | 2014-06-17T00:58:02 | 2014-06-17T00:58:02 | 23,677,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,910 | py | import argparse
import csv
import json
import pymongo
import sys
from importtools import DataFile, ImportConfig
TOGGLE_QUIET = False
DRY_RUN = False
class TypedTSV(DataFile):
def __init__(self, path, field_types=None, defaulttype=str):
super(TypedTSV, self).__init__(path)
self.f... | [
"kleinone@systemsbiology.org"
] | kleinone@systemsbiology.org |
6e4564eb9e4e12feadf1352e7bb7ff5cef2ce99f | 06f0ae3ecaaf47b1c23e231838afa524d8446f5e | /sports/mlb/migrations/0016_auto_20160722_1507.py | 49e69e4a1c4d81bdbec93111e2772b4742493b4f | [] | no_license | nakamotohideyoshi/draftboard-web | c20a2a978add93268617b4547654b89eda11abfd | 4796fa9d88b56f80def011e2b043ce595bfce8c4 | refs/heads/master | 2022-12-15T06:18:24.926893 | 2017-09-17T12:40:03 | 2017-09-17T12:40:03 | 224,877,650 | 0 | 0 | null | 2022-12-08T00:02:57 | 2019-11-29T15:20:17 | Python | UTF-8 | Python | false | false | 413 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-22 19:07
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('mlb', '0015_livefeed'),
]
operations = [
migrations.RenameField(
model_n... | [
"craig@craigruks.com"
] | craig@craigruks.com |
00e145376c262a28615cb8d59e9c20236616f731 | be085fd1025948e5e07e84a1fbb9f26bf43ad72b | /superauto/assets/migrations/0009_myprofile.py | 1814b366064ad9dcfcdab731a1121a2bcc0179e5 | [] | no_license | zjleifeng/xmktzcdb | e048f8a197662e9b05e69f53937c02b4c891aef2 | 044447eeb5b1390680af5af1c94a4d528a51759e | refs/heads/master | 2021-01-18T20:34:49.152074 | 2016-11-29T10:19:44 | 2016-11-29T10:19:44 | 72,193,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import easy_thumbnails.fields
import userena.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),... | [
"helpdesk.sh@xmkt.cc"
] | helpdesk.sh@xmkt.cc |
dadce4c547ea2d88748d9099526b4c92708134c8 | 995a223a56f688b7bf9c536112ce64f1ed6280ed | /Post/migrations/0001_initial.py | 420e57732b005d591fb30dd61a1373c1139ed063 | [] | no_license | AnkitTiwari1/Django-project | 7e0538c661daf8ca4ffde14cee4766f5879bf274 | 4daea1d5326cae3491d7fda69f59e61717c9cd19 | refs/heads/master | 2020-07-28T08:17:15.308020 | 2019-09-18T17:32:55 | 2019-09-18T17:32:55 | 209,361,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2019-07-21 19:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post'... | [
"ankittiwari1821998@gmail.com"
] | ankittiwari1821998@gmail.com |
5e02fd278031ec3ccf85ba74aac04e350f380592 | a4296208d784e555fb047d0731a8b64712b5d5c2 | /homework/homework_day02/rok przestepny.py | 12304565a77d0b038acc2c07166f96a2fc457183 | [] | no_license | MartaDobrocinska/Kurs_python | 73cf74d1f7dde54d51d0164a43cfb557bce17e17 | 6d521ddb5ca4b53f29aa96c431f0897a213a18a4 | refs/heads/master | 2021-02-13T19:15:37.614411 | 2020-04-21T19:57:47 | 2020-04-21T19:57:47 | 244,723,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | rok = int(input("Podaj rok: "))
if rok % 4 == 0 and rok % 100 != 0:
print("Podany rok",rok,"jest przestępny.")
elif rok % 400 == 0:
print("Podany rok", rok, "jest przestępny.")
else:
print("Podany rok",rok,"nie jest przestępny.")
| [
"m.dobrocinska@gmail.com"
] | m.dobrocinska@gmail.com |
ddf25754273c5414a5f28279171886d2bb6d5f1b | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /dEokmCfykvXgcJ3pi_15.py | c70b1c19f68cfff6d68feb941e8d4f469244949c | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py |
def first_arg(*args):
if not args: return None
else: return args[0]
def last_arg(*args):
if not args: return None
else: return args[-1]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0ad2199a595994a93a252978280789c5ebf9d2d6 | be79e3e2467ebe3031fa84bb8b5c45da68052966 | /HW3/read_data.py | 109f155fb9705930b675d699eb882b3596106dcc | [
"MIT"
] | permissive | atenagm1375/bio-inspired_computing | 7aefb9bb976c0604022d54ffee1af1e3cf666a8a | 439bed89877d2c887f3138847659390956b4bed6 | refs/heads/master | 2020-04-02T13:26:38.793608 | 2019-02-01T06:36:14 | 2019-02-01T06:36:14 | 154,481,288 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | def read_data(folder="./DATA/", file_name="bayg29.tsp"):
file = open(folder + file_name, 'r')
for line in file:
l = line.strip('\n').split("DIMENSION: ", 1)
if len(l) > 1:
n = int(l[1]) - 1
break
# n = int(file.readline().strip('\n').split("enter a dimention of matrix... | [
"ashenatena@gmail.com"
] | ashenatena@gmail.com |
2096785495cc81dfee5c4538f05923ff9c07db2e | 3d7337008f15a718a15560ce8cc351b825e3e678 | /Bravo/contrib/seeds/makeseeds.py | 90f4c848695500d28733cddd243362786ffc0f9b | [
"MIT"
] | permissive | NewBravoCoin/Bravo | e48e064876ab4183fe1ba3f640f580ec3e11e689 | f5bdf0f81d7924d0e3d4770f27bf99d5a415a8c8 | refs/heads/master | 2020-03-27T05:16:37.593844 | 2018-08-24T15:16:33 | 2018-08-24T15:16:33 | 146,007,550 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,513 | py | #!/usr/bin/env python3
# Copyright (c) 2013-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Generate seeds.txt from Pieter's DNS seeder
#
NSEEDS=512
MAX_SEEDS_PER_ASN=2
MIN_BLOCKS = 615801
#... | [
"none"
] | none |
03f79d01286e5d061101e15979f8cb6e8522f4fd | aae03454f98ad0ee9e9d27bc701568b0d8a6ce00 | /test.py | 262829cde4fc6ce20551a082d63580205558f8cf | [] | no_license | misabnll/juego-python | a6ad66e1be5fdc16374cdf6b7a8a3df2f11319b0 | 887fc4a1726883a5674de706a9d56037e6aa1bab | refs/heads/master | 2021-09-14T17:36:49.448911 | 2018-05-16T19:43:48 | 2018-05-16T19:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | # -*- coding: utf-8 -*-
print("hola mundo")
print("hola a todo") | [
"misabnll@gmail.com"
] | misabnll@gmail.com |
72300211aa41cb9a9b0de0203df24494a6548dee | e7e62e607eb857e8c49687d43a44b0f60444fc8e | /examples/acados_python/Unicycle/utils.py | 44031cdb92198e4e167e96b65ad414f169dfc264 | [
"BSD-2-Clause"
] | permissive | dkouzoup/acados | c928534ac80c006c8ca7c12ab7a53c926df2819d | 1b5b77f060e381f4229b34ff8145cdb26b04ea44 | refs/heads/master | 2022-12-05T21:19:04.909952 | 2022-11-28T12:21:03 | 2022-11-28T12:21:03 | 75,648,946 | 0 | 0 | null | 2018-03-13T14:24:19 | 2016-12-05T17:19:23 | C | UTF-8 | Python | false | false | 2,993 | py | import os
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
def plot_robot(
shooting_nodes,
u_max,
U,
X_true,
X_est=None,
Y_measured=None,
latexify=False,
plt_show=True,
X_true_label=None,
):
"""
Params:
shooting_nodes: time values of the discreti... | [
"noreply@github.com"
] | noreply@github.com |
a2294881c73700503fc1cf60ad242364ae8ab8ef | 81e706b69c789aff05691c41fa79156942927f82 | /site-packages/tensorflow/_api/v1/train/experimental/__init__.py | 4ed74fc8020f54a44b4e17a9b2127a87b0be7af1 | [] | no_license | yoncho/OpenCV-code | f5a1091ef32f3c8c3254ab93e083950b84c4fabd | bda2f793b11462e67c7ab644b342beffb871e3de | refs/heads/master | 2023-03-30T12:01:23.521511 | 2021-04-01T13:45:44 | 2021-04-01T13:45:44 | 291,398,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Public API for tf.train.experimental namespace.
"""
from __future__ import print_function as _print_function
from tensorflow.python.training.experimental.loss_scale import Dynami... | [
"yoncho@student.42seoul.kr"
] | yoncho@student.42seoul.kr |
418d11176c3bfad5531cf1f2a746f2f572a9c2b7 | d90e093d0f47e9938d3f7a4089fc41dbdaf157a0 | /cookieDHT22.py | bf98f75f46d3e007df8bf60ace2a4d6d044c2b6f | [] | no_license | nehasprasad/Pitemp | fcaa48f5edbad4d0777a1e24257e0ed0cf66a326 | 8cf300697755ba5ba53583b00e8d2bfd79571119 | refs/heads/master | 2020-06-23T19:45:39.641859 | 2016-11-24T05:08:16 | 2016-11-24T05:08:16 | 74,639,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | #! /usr/bin/env python
import pigpio
import DHT22
import tweepy
from time import sleep
from datetime import datetime
import sqlite3
conn = sqlite3.connect('tweepy.db')
c = conn.cursor()
API_KEY = 'WIDmeDxaao1Aaj7RLHcXopxoY'
API_SECRET = '7hpRCUwESJcLSm75qNJy10Wtii87W9J7uYyFBF3YgFcekpqZil'
ACCESS_TOKEN = '792094452776... | [
"noreply@github.com"
] | noreply@github.com |
c735ec69713f419d9735b007dd2746f56d78ad77 | b616f2c54b04e5ab09a11a9153e0f5e5c005add2 | /backend/core/migrations/0003_auto_20161230_0232.py | b7dd10b966c20f4fa8daad264fe9017629291b41 | [
"BSD-2-Clause"
] | permissive | getlinky/linky | 34bfb0afa0d6170ac87535545b4633515ef9ae4e | fe76df7149a0d15818bf5904e66e98a2e9affeb7 | refs/heads/master | 2021-09-06T17:30:44.825157 | 2018-02-09T02:48:16 | 2018-02-09T02:48:16 | 72,317,205 | 5 | 1 | BSD-2-Clause | 2018-02-06T02:48:54 | 2016-10-30T00:48:37 | Vue | UTF-8 | Python | false | false | 627 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-30 02:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_auto_20161219_2338'),
]
operations = [
migrations.AlterField(
... | [
"steve@dignam.xyz"
] | steve@dignam.xyz |
360be08c9755bb0b468f3ab1dcf4727b23eaa670 | ab9a22af433f35a9a85d07665e82fa36ce85efe3 | /vengine-3e869c88d7e5987dacc23f7bf2baa701c96c08a2/vapi/apps.py | ddb8cee49aa56225eeae6035ed0a6553611d1093 | [] | no_license | linqd1/driveless | a32d7743a292df6a1016eacf288779465e34eef0 | 22ab1d42723699927740470ae8be43048382b8ed | refs/heads/master | 2023-01-29T11:48:24.720415 | 2019-09-15T10:46:18 | 2019-09-15T10:46:18 | 208,528,438 | 0 | 0 | null | 2023-01-04T10:28:23 | 2019-09-15T01:57:42 | Rust | UTF-8 | Python | false | false | 83 | py | from django.apps import AppConfig
class VapiConfig(AppConfig):
name = 'vapi'
| [
"lqdcims@sina.cn"
] | lqdcims@sina.cn |
e1899d620a7e9a8753f5c7cf7ec4d82bfbb8cd91 | 2b016c3edbe6fc31b65f9a891f8e3dad37448444 | /pfe/settings.py | 858ec250a7a7af8896f802c113bf0ffe25c2bff4 | [] | no_license | skander95/TEST0 | 0d9089fe57ba529c4808446022ab369f51759f65 | 6a6154aab2e51e5a540e5b7dde5f58e24b0a3238 | refs/heads/master | 2023-06-10T18:47:59.256016 | 2021-07-04T17:06:47 | 2021-07-04T17:06:47 | 382,910,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,230 | py | """
Django settings for pfe project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib imp... | [
"skander.hammami@esprit.tn"
] | skander.hammami@esprit.tn |
0d8f9888ec55b97cbf2c3d516105c5bb977ca2da | 3934617c92d9c28653009231c86bcf52b7a1167c | /matrixMulti.py | f1f4275a1ab05455b470d9bb1c1499e766b041af | [] | no_license | jamiejamiebobamie/ds-2.2-class-repo | d0f26e39d1ab5c355934b169bb4025beb11b33cd | f40e6aa0ed11d46966e722bc9ab43b17bae05bf6 | refs/heads/master | 2020-08-30T11:48:46.792289 | 2019-11-19T01:37:29 | 2019-11-19T01:37:29 | 218,371,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py |
import numpy as np
matrix = [[2,0],[1,3]] # 2,2
vector = [[4,5]] # 2,1
# [a1][a2] * [b1][b2] = [a1][b2]
# dot product
def dot(a,b):
shape = np.shape(a)
b = np.reshape(b,*shape)
return np.dot(a,b)
# element-wise multiplication
def multi(a,b):
if np.shape(a) == np.shape(b):
return np.multip... | [
"jmccrory@vt.edu"
] | jmccrory@vt.edu |
f7e15f1ea1931b695fab195e88ff7526896b8cd3 | 0d122ee6615b53167f18b96f4fe16179135d5359 | /cassie/accounts/models/accounts.py | b4c0d9bf81438e91f157906ba8fe3ad2d21daf41 | [] | no_license | sgg10/cassie_backend | 383e1d426fa337cee6de429a4d94dc62beb966e6 | 8acacb30470626e7f009cd1ca36ad8fe2d3b1286 | refs/heads/master | 2023-05-13T17:45:16.699646 | 2021-05-30T00:05:39 | 2021-05-30T00:05:39 | 372,090,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | """Accounts models."""
# Django
from django.db import models
# Utilities
from cassie.utils.models import CassieModel
class Account(CassieModel):
"""Account model.
An account object is a Trading account in MetaTrader4.
Each account is associated with a license and
occupies an available space from this.... | [
"sgrandag@eafit.edu.co"
] | sgrandag@eafit.edu.co |
da38c6d8fffaeb5783ea990cc4c0d141c546348d | 1483c757338467cefd248fe45986f3fc1aedc49a | /api_connect_monitor.py | 2c7a592b0ff9d385fcc1953bda29077f37052858 | [] | no_license | alexzhang1/auto_monitor | ac9d2f8ffce356cfcec7b0e700af0afa8c7373db | 03f3a8c711436cc498b8cb086be111accbd2c399 | refs/heads/master | 2021-07-11T13:11:06.539643 | 2020-10-12T03:19:07 | 2020-10-12T03:19:07 | 190,317,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,446 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : api_connect_monitor.py
@Time : 2020/03/26 15:28:32
@Author : wei.zhang
@Version : 1.0
@Desc : None
'''
# here put the import lib
import sys
import traderapi
import time
import threading
import logging
import common_tools as ct
import geto... | [
"alex_zhang1@163.com"
] | alex_zhang1@163.com |
f1771a9b4551cf163b9520955479f3e1ca8a3260 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-gdb/aliyunsdkgdb/request/v20190903/DescribeResourceUsageRequest.py | 337bfc1e66b02c32b1bc9d2950100c29f3875e08 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,236 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
9b4920a9b0dc7ffc023c6d1c687089bb42049ff8 | 301e55ee3990b2daf135197eac81e1cc244e6cd3 | /python/unique-binary-search-trees.py | 85835f19426cf7f62c68fcd9c62966e0ff38f19e | [
"MIT"
] | permissive | alirezaghey/leetcode-solutions | 74b1b645c324ea7c1511d9ce3a97c8d622554417 | c32b786e52dd25ff6e4f84242cec5ff1c5a869df | refs/heads/master | 2022-08-22T16:28:05.459163 | 2022-08-18T12:02:51 | 2022-08-18T12:02:51 | 203,028,081 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | class Solution:
def numTrees(self, n: int) -> int:
if n < 3: return n
dp = [1, 1, 2]
for i in range(3, n+1):
curr = 0
for j in range(1, i+1):
curr += dp[j-1]*dp[i-j]
dp.append(curr)
return dp[-1] | [
"alireza.q1357@gmail.com"
] | alireza.q1357@gmail.com |
be44c2371706b45c38b3e908d0244ed94f44aa70 | cbf9f600374d7510988632d7dba145c8ff0cd1f0 | /abc/196/d.py | e216ca75d757df8b0417a076d369cbe78316f30f | [] | no_license | sakakazu2468/AtCoder_py | d0945d03ad562474e40e413abcec39ded61e6855 | 34bdf39ee9647e7aee17e48c928ce5288a1bfaa5 | refs/heads/master | 2022-04-27T18:32:28.825004 | 2022-04-21T07:27:00 | 2022-04-21T07:27:00 | 225,844,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | h, w, a, b = map(int, input().split())
all_list = [0, 1, 2, 3, 18, 9, 36]
max_pattern = 0
if h*w == 1:
max_pattern = all_list[0]
list_num = 0
elif h*w == 2:
max_pattern = all_list[1]
list_num = 1
elif h*w == 4:
max_pattern = all_list[2]
list_num = 4
elif h*w == 6:
max_pattern = all_list[3]
... | [
"sakakazu2468@icloud.com"
] | sakakazu2468@icloud.com |
7e0243512b3b79d91578c7fac1b133d86030d274 | 5ef3177969ced32aafce0363190265e35344240d | /agents/pdqn_bound.py | 39e9f2ccff627ed629549231c2a0f7553317775b | [] | no_license | AlbertChenStonybrook/Project1 | 9971059b8c8f56be44be86efabd97cf0e0ccb510 | 37c09011dac7baeed4c5f3ff2de4849208bca588 | refs/heads/main | 2023-05-26T08:12:36.308233 | 2021-06-16T15:18:10 | 2021-06-16T15:18:10 | 377,552,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,660 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
import random
from collections import Counter
from torch.autograd import Variable
from copy import deepcopy
from agents.agent import Agent
from agents.memory.memory import Memory
from agents.utils import so... | [
"ziheng.chen@stonybrook.edu"
] | ziheng.chen@stonybrook.edu |
bd29d9560f41d68aea57e270418f019bd71634e9 | c80b6f2aeccbf8271656f715523991bbd3163738 | /biblioteka.py | 5b01678ba4657f958194b59d51d5110b23e6b5b9 | [] | no_license | rwozniak89/python-webowa | 7c38294c06606a2dacd8df87c357bb8d27f0ab07 | 4895774e5f31fdfd830d0cd4b105b52d8728fe77 | refs/heads/main | 2023-02-18T21:55:34.424455 | 2021-01-21T18:38:50 | 2021-01-21T18:38:50 | 321,030,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | # pip install pytest
def dodawanie(a,b):
return a+b
def odejmowanie(a,b):
return a-b
def mnozenie(a,b):
return a*b
def dzielenie(a,b):
return a/b
def lista():
return [pow(2,e) for e in range(10)]
| [
"rwozniak89@gmail.com"
] | rwozniak89@gmail.com |
4b06e0adfd48db937907c6d960efd3abf315c9be | 6f04bcfede57cdeaf42212dfbc3a0e391437e609 | /tfcf/datasets/ml1m.py | e75bf05699761c5f0779b50c4ae06f0f6f2ac336 | [
"MIT"
] | permissive | sabyasm/tf-recsys | 383bc5aff517ec4a88bd9a66f8b0ba8a0b388760 | 8f84f2cfb21e94c0874195f16acd63e6f5bbac9b | refs/heads/master | 2022-11-13T11:00:14.079129 | 2020-07-12T04:33:57 | 2020-07-12T04:33:57 | 278,991,049 | 0 | 0 | MIT | 2020-07-12T04:30:05 | 2020-07-12T04:30:04 | null | UTF-8 | Python | false | false | 446 | py | import pandas as pd
from ..utils.data_utils import get_zip_file
def load_data():
"""Loads MovieLens 1M dataset.
Returns:
Tuple of numpy array (x, y)
"""
URL = 'http://files.grouplens.org/datasets/movielens/ml-1m.zip'
FILE_PATH = 'ml-1m/ratings.dat'
file = get_zip_file(URL, FILE_PAT... | [
"b03902042@ntu.edu.tw"
] | b03902042@ntu.edu.tw |
1e2a9fe872feebb02328a1c9e2f6e212f8e8e0d1 | 50d3a401861317d419fb159530945d1e7e9a5abf | /generator.py | 82dee231fa7cc10fce21f9b07d340d51d24d33ab | [] | no_license | kkothari93/swg | 7bd275c70c66deb0f3786822ab3976fa2e19e5ff | d2d3dae311b64526b2b61003f015e9f478fec081 | refs/heads/master | 2021-09-10T21:43:21.772025 | 2018-04-02T19:46:19 | 2018-04-02T19:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | import tensorflow as tf
import tensorflow.contrib.layers as layers
def generator(z, reuse=False):
"""
generator
Network to produce samples.
params:
z: Input noise [batch size, latent dimension]
returns:
x_hat: Artificial image [batch size, 64, 64, 3]
""... | [
"ishan.sd@gmail.com"
] | ishan.sd@gmail.com |
f0ab7849d90fcd33aba1c1db2f8977a45292cf11 | 307ccdde9c423f1587b34d05385b90fad7b9eb90 | /codechef/Oct13/HELPLIRA/helplira.py | 0b94bbad32245dfb2d5f9984692a63c18171dbb7 | [] | no_license | ravi-ojha/competitive-sport | 98513e28624f6ff279bf378ba13bb4bed7497704 | 617847cbc880a9b79173d35c243b4c6f73c3f7a8 | refs/heads/master | 2021-06-08T14:02:36.233718 | 2017-08-22T21:47:22 | 2017-08-22T21:47:22 | 56,091,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | def helplira():
n = input()
a = []
minIndex = 0
minValue = 1000000000
maxIndex = 0
maxValue = -1
for i in xrange(n):
x = map(int,raw_input().split())
t = x[0]*(x[3] - x[5]) + x[2]*(x[5] - x[1]) + x[4]*(x[1] - x[3])
if t < 0:
t = -t
t = t/2.0
... | [
"raviojha2105@gmail.com"
] | raviojha2105@gmail.com |
4d026d825ac957c110e5f8d8b8fec9a65d1abd4b | a03776024ed044e70ec10bd89b95e83055c886b5 | /l2onparser.py | 32f71e5dca69b2431913c89144718d1daf6bbd08 | [] | no_license | jehudielful/glavpetuh | 78434eec2620eaa1ec0d31e0c5b468fab09149a9 | 3db058c1122c2a3ef823428885eedc4ed8878a6a | refs/heads/master | 2021-01-18T17:26:15.271744 | 2017-03-31T07:21:10 | 2017-03-31T07:21:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | import re
import string
import urllib.request
import urllib.parse
import requests
from urllib.parse import quote_from_bytes as qfb
from pprint import pprint
from bs4 import BeautifulSoup
url = 'http://l2on.net'
output = """\
{name} {title}
{prof} - {lvl}
Max.HP: {maxhp}
Max.MP: {maxmp}
Клан: {clan}
Замечен: {first_sp... | [
"spirokky@yandex.ru"
] | spirokky@yandex.ru |
3a052d7c967b33f1bf2baef22daf9476ec5dc9e3 | d4df7688c3279274483a45fbda1634c3128dfe26 | /10-one hot encoding.py | b9fe8f5e20a2e62674594a22bfb4c7aa5161b820 | [] | no_license | mostafagafer/Machine-learning-with-python- | d203bf5ce1aae288bef39ff2a2b231bbee5660f5 | 144fa9896346b11b8230e5fa08ea9ac282016000 | refs/heads/master | 2020-03-28T21:43:06.650180 | 2018-09-17T19:23:13 | 2018-09-17T19:23:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | import pandas as pd
from IPython.display import display
data = pd.read_csv('https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data', header=None, index_col=False, names=['age', 'workclass', 'fnlwgt', 'education',
'education-num',... | [
"mostafagafer@gmail.com"
] | mostafagafer@gmail.com |
c84ec0a30e1421f5b5588467887d582f31a21af1 | e86f75b5bbb3ed0a0ccf73f3ee1e3bc70f666ab4 | /apps/course/admin.py | 6a5a982061075d498917cf7001a35b840e1aecca | [] | no_license | gh555luguo555/tanzhou | c11ae74d424e0d35e81feb4eff6503d7b75d7a1f | 10cb3fe3190b4cb617e8e4bcda913765941c841a | refs/heads/master | 2020-03-18T21:53:51.985246 | 2018-04-20T17:35:26 | 2018-04-20T17:35:26 | 135,311,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,454 | py | from django.contrib import admin
from course.models import Course, CourseClass, CourseSort, Lesson, Teacher,Buy
# Register your models here.
class SortInline(admin.StackedInline): # 第二分类
model = CourseSort
extra = 2
'''
class TeacherInline(admin.StackedInline): # 在课程下面显示章节的
model = Teacher
extra ... | [
"hnxyl_python@sohu.com"
] | hnxyl_python@sohu.com |
d0b0fcef208c87d1bfff40d9b26c49facc744bd3 | f67d98203a54ead9268faf338faf74e558456559 | /Biweekly_Contest_45/_Problem_1748_Sum_of_Unique_Elements.py | d659f2d7e4effb071ac120b4f044454cc3adc8fb | [] | no_license | deafTim/LeetCode | 65662de4e8790caaa53b9b6aed88e6888660f114 | f295d1688266ef000c672242a9ef58ac8dea55fd | refs/heads/main | 2023-06-15T22:57:53.435883 | 2021-07-12T16:35:37 | 2021-07-12T16:35:37 | 383,565,907 | 0 | 0 | null | 2021-07-06T19:31:20 | 2021-07-06T18:35:13 | null | UTF-8 | Python | false | false | 303 | py | class Solution:
def sumOfUnique(self, nums: List[int]) -> int:
for i in range(10):
print(10)
d = {}
for num in nums:
if num not in d:
d[num] = num
else:
d[num] = 0
return sum(d[i] for i in d.keys())
| [
"noreply@github.com"
] | noreply@github.com |
af964161c25361db90345f93bfd184214282aa8d | 22ea136271e43ec0404c37af9353a4fcc038717c | /Industry classification.py | 157f7bfbfb8dac68c2fb6533f7ea4f5903d8369c | [] | no_license | ZIXUANLUO/PDF-classification | 15ec556c657b57766a386342a40420e587899861 | 8580eb184dab58a6ee8fcacd1c754c9c185b16e0 | refs/heads/master | 2023-01-06T11:38:03.592152 | 2020-11-06T14:20:07 | 2020-11-06T14:20:07 | 291,350,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,940 | py |
import os
import shutil
# Code description:
# Sort the files in the specified folder: move the files containing the keyword "futures" to the futures folder,
# and move the files containing the keywords "sugar and soybean meal" to the agricultural product folder
classify_lists = {
'futures': ['agricultur... | [
"noreply@github.com"
] | noreply@github.com |
6b906cc04a18d0fd83cc3ab93fd703a5af5d9d6f | 8ad90ab5622354e84ddbd59718526f9168af9098 | /IR_Functions.py | 256baa7dd60b835fa0daad1eef3fa042cc4e0adb | [] | no_license | hall593/sem2Robot | a3e549229b88b5dede41ff33622b6ef780985781 | 6878aed5218f4de18267ef4dc1f5336005964e21 | refs/heads/main | 2023-04-14T17:29:05.034269 | 2021-04-26T00:39:13 | 2021-04-26T00:39:13 | 359,240,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | # Set up function
def IR_setup(grovepi):
sensor1= 14 # Pin 14 is A0 Port.
sensor2 = 15 # Pin 15 is A0 Port.
grovepi.pinMode(sensor1,"INPUT")
grovepi.pinMode(sensor2,"INPUT")
# Output function
def IR_PrintValues(grovepi):
try:
sensor1= 14 # Pin 14 i... | [
"noreply@github.com"
] | noreply@github.com |
0faddf7c6e093e68a298828f142256aa3e4a37a8 | 6c53cd3d3f5562ec238b2e3f94defb486f9f3aee | /mu0emu.py | 9a197e400cb32e58dd66ec16ee3610a347533a46 | [
"MIT"
] | permissive | patengelbert/SoftwareEngineering1 | 5ea7ce7d28759eedc96be3a8978da372c0300a60 | 962f592de69f7ba3344aa34d6c7eff9c9de2a43e | refs/heads/master | 2021-03-19T19:04:01.946779 | 2017-06-13T10:49:50 | 2017-06-13T10:49:50 | 94,202,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,852 | py | # To change this template, choose Tools | Templates
# and open the template in the editor.
from Tkinter import *
import tkFont
from tkFileDialog import *
from tkMessageBox import *
import math
#from tkinter.ttk import *
# To change this template, choose Tools | Templates
# and open the template in the editor.
from co... | [
"patengelbert@hotmail.com"
] | patengelbert@hotmail.com |
0b3838fc6a2f8b48f5289ef236201a30283de915 | 685571e5c12fb2bef9dcbe392b614fbbe1b68cd0 | /cnn_1.py | b6cd80ce2bbe84b2410e40628f2cc383946a739d | [] | no_license | jaydeepchakraborty/Py_McLearning | 5751ce028b26fb8826ba1f40723cc72e64a4837a | 58f65e6d439a7b1d5d63f0a1c47255d1eaa824c8 | refs/heads/master | 2020-12-02T21:09:25.980734 | 2018-01-08T07:10:32 | 2018-01-08T07:10:32 | 96,262,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,228 | py | #Convolution Neural Network with mnist data using tensorflow
#We're going to be working first with the MNIST dataset, which is a dataset that contains 60,000 training samples
#and 10,000 testing samples of hand-written and labeled digits, 0 through 9, so ten total "classes."
#The MNIST dataset has the images, which... | [
"jaydeep.chakraborty.1988@gmail.com"
] | jaydeep.chakraborty.1988@gmail.com |
d9453d1f1f4b52645622c6d70952c21222a7896a | 695ea8a0ffb26f21a50fe815df6571203bae8f25 | /categories_classification/trainer.py | d828705a6f3d1a7b57abc09332834d693060aae5 | [] | no_license | scale-itx/mrkl-technical-test | 528f025f1a2589874f9efa5a1d3f093e15592fec | 758e2b45154f4641de1e9a5b879ad84d04528dfb | refs/heads/master | 2023-08-31T13:50:08.112313 | 2021-10-20T18:10:28 | 2021-10-20T18:10:28 | 419,386,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,791 | py | import logging
from typing import List
from mlflow import set_experiment, start_run, log_params
from mlflow.models import infer_signature
from mlflow.sklearn import eval_and_log_metrics, log_model
from pandas import read_csv
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_... | [
"radcheb@gmail.com"
] | radcheb@gmail.com |
a73ec89066471c1b9fb1ee94323c8d7a23ce0f5b | 53a909b23c294b9887a1e50206ab0dc19b3c2cf0 | /comb_testing/__init__.py | 85f88e321d2964c4e0eabb429704cb6e7e549674 | [
"MIT"
] | permissive | agragland/comb-test-library | 498286a0823d2208e41e5de821a99318e1358075 | aa4c7c956b5aec93f6b60ec7d3543f2cc51f7e10 | refs/heads/master | 2023-05-28T05:39:04.489258 | 2021-06-08T19:01:21 | 2021-06-08T19:01:21 | 368,337,719 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,814 | py | # __init__.py
# Version of the combinatorial_tests package
__version__ = "0.0.4"
from comb_testing.tuple_set import TupleSet
from comb_testing.test_suite import TestSuite
from comb_testing.biased_algorithm import generate_biased_suite
import re
# function to generate a covering array based on input
# input follows ... | [
"agragland00@gmail.com"
] | agragland00@gmail.com |
8897697c41d0fe30ec8e32f69914a896a7eb46c8 | 522a7890df5f313e967ebab336498bebad95a2af | /netdump.py | e269ea0e7dc972a82248b1c1b8e01a9da4423143 | [] | no_license | igalashi/udpreg | 5055b99f5afcef6ee92da88f247dfcd7b29f948f | bf6cbbfb9d1767f7a98a0a12ba6d1b5518cf338e | refs/heads/main | 2023-02-25T19:52:12.776679 | 2021-01-28T05:22:07 | 2021-01-28T05:22:07 | 333,650,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | #!/usr/bin/env python3
import socket
import struct
import sys
import datetime
HOST = '192.168.10.55'
PORT = 24
SIZE = 1024*256
F_DUMP = True
F_TDUMP = False
def read_net(host, port):
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((host, port))
except socket.error as e... | [
"youichi.igarashi@kek.jp"
] | youichi.igarashi@kek.jp |
1ca298b1212fae9af4fecf4f5f7a6eb31cb1950a | 37c243e2f0aab70cbf38013d1d91bfc3a83f7972 | /pp7TeV/HeavyIonsAnalysis/JetAnalysis/python/jets/akVs7CaloJetSequence_pp_mc_bTag_cff.py | b03080540b815d5267838a1fc5a38e30923e284a | [] | no_license | maoyx/CMSWork | 82f37256833cbe4c60cb8df0b4eb68ceb12b65e7 | 501456f3f3e0f11e2f628b40e4d91e29668766d5 | refs/heads/master | 2021-01-01T18:47:55.157534 | 2015-03-12T03:47:15 | 2015-03-12T03:47:15 | 10,951,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,040 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetProducers.JetIDParams_cfi import *
akVs7Calomatch = patJetGenJetMatch.cl... | [
"yaxian.mao@cern.ch"
] | yaxian.mao@cern.ch |
de10f4f519cf28b914e1a17447eb377a9d1e1217 | 1d5c13a2cf04595e443d1df19abb126b7c99e5fa | /dart/vmos.py | ff3821b9f2e46baf909af21d4297d61be4f34acf | [
"BSD-3-Clause"
] | permissive | jpcoding/scripts | 27b6cd099bd5d5eb9f9e8665423d9b2b2311352f | 69a1fcfac1783772482a89114aa31d226b4dbc18 | refs/heads/master | 2020-03-23T16:19:05.994716 | 2018-07-21T03:12:37 | 2018-07-21T03:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | #!/usr/bin/env python
# Copyright 2018 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import argparse
import os
import paths
import subprocess
import sys
CATEGORIES = [
'dart-oldspace',
'dart-newspace',
'jemalloc-he... | [
"zra@google.com"
] | zra@google.com |
307d0bfe62ec0d51181f9de84c8387870411b771 | ce4f650cc3ba3da9fd421d9e1e086e712dda5a96 | /vdfvdfvdfv.py | c9bbfacd8191f9e849249a41a5ff93a11f79bd3f | [] | no_license | DanyloA/TESTREPO | b4de25f590565a67274d2f25cde22e1a1af233ff | b5235d1dbf4ec9eb3d24a9e461cd3984139d6896 | refs/heads/master | 2023-04-01T07:23:24.337157 | 2021-04-17T13:38:45 | 2021-04-17T13:38:45 | 356,624,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | file = open('lol.txt', 'w')
file.write('Some useful data!\nSecond line here!')
file.close()
| [
"danja.junior.it@gmail.com"
] | danja.junior.it@gmail.com |
4245c92fbca0f839ad73f193a2aadfd606996b90 | 6ea2ba5f290605a2bc713c8eb8e7ea7e2d8a2b2c | /polls/migrations/0014_auto_20191122_1231.py | 42e10542dbb258428ae2afd1ce6b2070dc124387 | [] | no_license | Assiya-Zhiyenbek/gloss1 | ea1e6cc3a8cdc95373fa301c9f4816f93baf90c7 | 1049cf40147a79ee62b3486a2b086fcac4d95a53 | refs/heads/master | 2022-03-30T17:35:33.536814 | 2020-04-23T05:00:50 | 2020-04-23T05:00:50 | 258,098,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 2.2.4 on 2019-11-22 12:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0013_auto_20191122_1230'),
]
operations = [
migrations.AlterField(
model_name='post',
name='videofile',
... | [
"assiya.zhiyenbek@nu.edu.kz"
] | assiya.zhiyenbek@nu.edu.kz |
d35d7ccec024747e779e9543b7ac5c259d7d3cae | 760e84fc1ae36ccad2bf70bfac3d2ff18291b8ac | /gimbal/sensor/imu6050_defs.py | f12546e6e67a5627178eccd20659eb642bd53a4e | [] | no_license | dpm76/Gimbal | 43b11497221657848f41a6440945d0601b379e23 | 6803867b359db76a420b2cc46192e0c475e35e6b | refs/heads/master | 2022-09-27T23:33:58.402529 | 2022-08-27T10:06:09 | 2022-08-27T10:06:09 | 79,473,892 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | PWR_MGM1 = 0x6b
PWR_MGM2 = 0x6c
GYRO_XOUT = 0x43
GYRO_YOUT = 0x45
GYRO_ZOUT = 0x47
ACC_XOUT = 0x3b
ACC_YOUT = 0x3d
ACC_ZOUT = 0x3f
SMPRT_DIV = 0x19
CONFIG=0x1a
GYRO_CONFIG = 0x1b
ACCEL_CONFIG = 0x1c
RESET=0b10000000
CLK_SEL_X = 1
# Accelerometer | Gyroscope
# ... | [
"davidpm.itengineer@gmail.com"
] | davidpm.itengineer@gmail.com |
a2331bda14ce89bd8a13fe6811035ed885a0350a | e4e21848276222fa42eef1e00593ebbf27cb67a3 | /documentation/apps.py | d3df6cf8164e567d9cdaa04b353a237ad3bb1a0a | [] | no_license | js-moreno/tsgtest-server | c094ef78ac6fa6b13f3d565d3b491885672128ec | fe2537fa2acdb331a63fc7eb7e44a33448a270bf | refs/heads/main | 2023-06-05T05:58:00.342626 | 2021-06-28T04:24:46 | 2021-06-28T04:24:46 | 380,318,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | # Django
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class DocumentationConfig(AppConfig):
name = "documentation"
verbose_name = _("Documentation")
| [
"juanse.jm18@gmail.com"
] | juanse.jm18@gmail.com |
8533a7e79a1e9ddbec9802a4530ec99335101e5f | b47e9b95a831cf1101e8e115a6ad68055b2f1b9f | /Programs/Program 2/poker.py | 4fff0dd8192b42b9ee0dced68777f787fed7de6b | [] | no_license | austin-hull09/Python | b1d50fdf36343c3f92dcd6cd813c5e7af069a7c8 | df03931f4d215068abb5af9af3275c9ce8f40b30 | refs/heads/master | 2022-02-22T19:38:16.248317 | 2019-10-09T18:34:48 | 2019-10-09T18:34:48 | 213,994,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | # defining possible poker hands (flush, 2 of a kind, or 3 of a kind)
def three_of_a_kind(hand_as_list, output):
if hand_as_list[0][0] == hand_as_list[1][0] == hand_as_list[2][0]:
output.write("THREE OF A KIND\n")
else:
return "false"
def flush(hand_as_list, output):
if hand_as_list[0][1] ==... | [
"automac007@gmail.com"
] | automac007@gmail.com |
9797e2c4bb8719254b794d70800ffbf820351574 | 0ebaf2ff7b9a5746663c11232a4bcad408a7dbba | /Homework1_2.py | 570c0934824ca9d5257ab7702d8d19c8b5bae96c | [] | no_license | kii223/Project | def3eacd20abf0f9d80d4934f03e3fea293b4ed8 | 4061e8891eefdf604df3035fc9708515fb5c4a61 | refs/heads/master | 2021-09-16T14:02:02.457010 | 2018-06-21T15:42:04 | 2018-06-21T15:42:04 | 114,135,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,538 | py | from bs4 import BeautifulSoup
info = []
with open('I:/Pycharm/Plan-for-combating-master/week1/1_2/1_2answer_of_homework/1_2_homework_required/index.html','r') as web_data:
Soup = BeautifulSoup(web_data,'lxml')
images = Soup.select('body > div:nth-of-type(1) > div > div.col-md-9 > div:nth-of-type(2) > div > div... | [
"34079551+kii223@users.noreply.github.com"
] | 34079551+kii223@users.noreply.github.com |
ba8e33c93b9dce9a5dda9aa99cb065a7f0c7a588 | 31af57d3cdc1088397849a41845c101959aeccde | /article/forms.py | fe39e22d041ce6f7221af04ea31cda3009f42b69 | [] | no_license | ihsancan399/blog-app | a8ea8253f5c14c1409afd99b61eff60cd02e8f1d | 7082646b378fbe45e14a4755a5bf8ea988559961 | refs/heads/master | 2022-04-25T11:36:20.209282 | 2020-04-30T08:32:43 | 2020-04-30T08:32:43 | 260,154,752 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from django import forms
from .models import Article
class ArticleForm(forms.ModelForm):
class Meta:
model = Article
fields = ["title","content","article_img"]
| [
"ihsancan399@gmail.com"
] | ihsancan399@gmail.com |
fa9b5a6f7abc5bfab0aacb92d83e5116f76ccbfe | 45ecf382b20f58c8af9c9b1dcb24441f32247ca4 | /makeLabel.py | 2d67ca576f1dee9a7713d6cb31736b6e5ee4553e | [] | no_license | zouqqz/data-process | d12b3dbb1dd1c6379dbc0ee5a2112af08d952c7b | 63a4c1d9108667b7e8e959e427348271e437eddd | refs/heads/master | 2021-09-02T15:40:26.003701 | 2018-01-03T12:49:23 | 2018-01-03T12:49:23 | 115,061,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | # -*- coding: utf-8 -*-
"""
生成label.txt文件,文件内容类似
105_03_629 5 1 5
105_03_613 5 1 5
105_03_668 5 1 5
105_03_501 5 1 5
"""
import os
import sys
import config_default
import shutil
os.chdir(sys.path[0])
xml_folder = os.path.join(os.path.pardir, config_default.configs['folder'], 'annotations', 'xmls')
image_folder = os.... | [
"zouqqz@gmail.com"
] | zouqqz@gmail.com |
86ba6d19d0a6b155f867d0b692e00beb689c4b25 | d29225541b301a6cea5129b0c79f68d855208de4 | /main.py | a54563a24776da18d5f71839444908624bc3c2dd | [
"MIT"
] | permissive | Quantaxer/Discord-Friend | bb6e6ace377e49cf1dfc4538514cf6f254186427 | cec53a326aab13f897adeaa42efbb565363c5643 | refs/heads/master | 2020-05-24T00:14:41.983177 | 2019-06-30T16:16:05 | 2019-06-30T16:16:05 | 187,011,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | py | # import statements
from discord.ext import commands
# The token which is used to connect to discord
f = open("token.txt", "r")
TOKEN = f.readline().strip()
f.close()
client = commands.Bot(command_prefix='~', case_insensitive=True)
# remove default help command to replace with custom help command
# List of file nam... | [
"phudel@uoguelph.ca"
] | phudel@uoguelph.ca |
b2e6c4acd91caa478d2d82157aad05ea4d9c6664 | b4ce93b5e0d6b277a2c56444a466a5e536b81565 | /Exercise 010.py | 6b39358acad73855cf9d3a127af478f491a48753 | [] | no_license | aga-moj-nick/Python-Sets | 7268efd5407b978a238fe7a0c08e4bd7275bd02d | 0482f83b67af650806a7801a0c47a551da0bb4c8 | refs/heads/master | 2023-06-19T04:50:28.113658 | 2021-07-12T11:45:36 | 2021-07-12T11:45:36 | 385,227,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # 10. Write a Python program to check if a set is a subset of another set.
A = {1, 2, 3, 4, 5}
B = {4, 5, 6, 7}
C = {2, 3}
print (A.issubset (B))
print (A.issubset (C))
print (B.issubset (A))
print (B.issubset (C))
print (C.issubset (A))
print (C.issubset (B))
| [
"agnieszka.aga.krawczyk@gmail.com"
] | agnieszka.aga.krawczyk@gmail.com |
f5bad10075d526f1170c604c01d93184f945be7f | e215fb7f99d477a79249a322d652f57f8a953964 | /mysite/lottery/migrations/0002_auto_20170530_0426.py | 74043f4f032aad103d2ad2b8ff6f21ea4d6d0805 | [] | no_license | 945941192/lottery-analysis | 68018918bef12c84e053d787bdf309c02bb2d6ac | b946d8a4ad42210d9536370911febcfeb57ec92e | refs/heads/master | 2021-06-22T12:07:19.455408 | 2017-08-16T02:07:43 | 2017-08-16T02:07:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2017-05-30 04:26
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('lottery', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
b5daa30cd64c567c1630ff8ff8a7953b295df52f | 7982dfa24ed74a529370ba7983bc406453f5c2e3 | /CS596/Homework/HW4&5/PartII_svm/main_svm.py | 75ad13dfeb91dd4832d61c69e67c840f201ffdab | [
"MIT"
] | permissive | ko-takahashi/college | 0e5c16116b8796bd8bdd16075ecade4214659733 | c333f1e1767f1206687f5e9b0fb3f0145b2d5d6a | refs/heads/master | 2021-07-16T15:11:45.572037 | 2021-02-23T19:26:56 | 2021-02-23T19:26:56 | 241,546,658 | 0 | 0 | MIT | 2020-10-13T19:40:06 | 2020-02-19T06:10:56 | C# | UTF-8 | Python | false | false | 4,822 | py | import numpy as np
import download_data as dl
import matplotlib.pyplot as plt
import sklearn.svm as svm
from sklearn import metrics
from conf_matrix import func_confusion_matrix
#CS 596, machine learning
## step 1: load data from csv file.
data = dl.download_data('crab.csv').values
n = 200
#split data
S = np.rando... | [
"ko@kotakahashi.com"
] | ko@kotakahashi.com |
6faf805fc3ad245879397148af1b9ab1e54ec95f | e02228712ba1c9a4b1b9631eeb33604e921713e1 | /migrations/versions/4a1822107283_initial.py | 05a205c85672258e8b8cde007d29ccd4564b943e | [] | no_license | mille383/tminus | 7ab6119701c8696ae3f200d3152b96822090e772 | f0d0f930bcd2955130d7d654e278071d6ce69003 | refs/heads/main | 2023-06-01T15:37:48.144206 | 2021-06-20T04:04:22 | 2021-06-20T04:04:22 | 378,550,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | """initial
Revision ID: 4a1822107283
Revises:
Create Date: 2021-06-02 22:47:14.277427
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4a1822107283'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated ... | [
"mmiller744@gmail.com"
] | mmiller744@gmail.com |
ca04e2805ce6c6c244793223430339e5107737b4 | cca89a7bbe2da907a38eb00e9a083f57597273f0 | /46. 全排列/pythonCode.py | 16e506db4bd24ed12236bb352f774a94bd8a5710 | [] | no_license | xerprobe/LeetCodeAnswer | cc87941ef2a25c6aa1366e7a64480dbd72750670 | ea1822870f15bdb1a828a63569368b7cd10c6ab8 | refs/heads/master | 2022-09-23T09:15:42.628793 | 2020-06-06T16:29:59 | 2020-06-06T16:29:59 | 270,215,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | from typing import List
class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
result = []
if(len(nums)<=1):
return [nums]
for i in range(len(nums)):
other = nums[0:i]
other.extend(nums[i+1:])
out = self.permute(other)
... | [
"changwenhao1@qq.com"
] | changwenhao1@qq.com |
724bd509d654104b16cd0439a52f2685bd55d641 | 4ecca520425b9e0d6daaf2386a57091958e59c83 | /views.py | 52a795b6964bc0874aa159a0a6223199c2038dd6 | [] | no_license | AyabongaQwabi/yourvoice | 852bad216f05fb7e2364afc4a97664a2c073cca6 | bfea1edb2ce79fae9ac528af7515c2d7354509a6 | refs/heads/master | 2020-05-31T21:11:11.649460 | 2015-08-03T15:33:26 | 2015-08-03T15:33:26 | 40,132,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from flask import render_template, jsonify
import MySQLdb
from app import app
db = MySQLdb.connect(host="localhost", # your host, usually localhost
user="root", # your username
passwd="theaya5379", # your password
db="Nelisa") # name of the data base
cur... | [
"ayabonga@projectcodex.co"
] | ayabonga@projectcodex.co |
aa62f43d6aaf39692174080e06afc4fab94b3eb3 | ff8850b8c143044dbd53c23f678a8d776409e99f | /MindzZBot/Cogs/usercommands.py | ae558d5ab38dd7f03fbc8d7d190156632959f655 | [] | no_license | Pudzz/Discord-bot | 3d29f48a08a8aa0318e29208692f932a566af4d1 | aa90c128d8a1e267028d8167a3afcf38d24b7db2 | refs/heads/main | 2023-06-01T18:28:48.176393 | 2021-06-25T21:40:51 | 2021-06-25T21:40:51 | 380,358,006 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,445 | py | import random
import discord
from discord.ext import commands
import asyncio
# Textchannels where you can't write these commands
nowritingchannels = ["🏆server-level-ups", "❔commands-help", "🎧music-bots", "welcome", "botchat", "✅rules", "🎰slot-machine"]
rockpaperscissor = ["rock", "paper", "scissors"]
class userc... | [
"55652759+Pudzz@users.noreply.github.com"
] | 55652759+Pudzz@users.noreply.github.com |
280a24dc4c74ffe64f0f4f694968b741ccd67ca9 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnbarrel.py | 63cbec627f227588bab42f778246cef57d4d2eea | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,305 | py | ii = [('MarrFDI.py', 7), ('RogePAV2.py', 1), ('CoolWHM2.py', 2), ('RogePAV.py', 2), ('ProuWCM.py', 1), ('MartHSI2.py', 1), ('LeakWTI2.py', 2), ('UnitAI.py', 36), ('KembFJ1.py', 1), ('WilkJMC3.py', 8), ('LeakWTI3.py', 6), ('MarrFDI3.py', 3), ('PeckJNG.py', 6), ('AubePRP.py', 2), ('AdamWEP.py', 5), ('FitzRNS3.py', 4), ('... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
e1db2f7a25c8fc04e3123fe7bcf4f286e3c9b124 | 808e8b0261a8711e563cbffc4f363c9a95d4300a | /photo/urls.py | f788642685c781cc0cdcc978d84c3b3d64231bd8 | [
"MIT"
] | permissive | marykamau2/maryGallery | 5f544cc082c9d3a96d1983241e7a5452bca2767c | c657e6fc4564521a0110ae9024e5cf22179011bd | refs/heads/master | 2023-08-06T15:38:01.427717 | 2021-09-06T19:19:27 | 2021-09-06T19:19:27 | 402,753,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | """photo 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-based v... | [
"mary.kamau@student.moringaschool.com"
] | mary.kamau@student.moringaschool.com |
24ae05824132f080f1853e9da5c07d73fa316c76 | d1d79d0c3889316b298852834b346d4246825e66 | /blackbot/core/wss/ttp/art/art_T1218.005-1.py | b7628466886fa7782a67ee75ea1b148378b9c165 | [] | no_license | ammasajan/Atomic-Red-Team-Intelligence-C2 | 78d1ed2de49af71d4c3c74db484e63c7e093809f | 5919804f0bdeb15ea724cd32a48f377bce208277 | refs/heads/master | 2023-07-17T12:48:15.249921 | 2021-08-21T20:10:30 | 2021-08-21T20:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | from blackbot.core.utils import get_path_in_package
from blackbot.core.wss.atomic import Atomic
from terminaltables import SingleTable
import os
import json
class Atomic(Atomic):
def __init__(self):
self.name = 'DefenseEvasion/T1218.005-1'
self.controller_type = ''
self.external_id = 'T121... | [
"root@uw2artic201.blackbot.net"
] | root@uw2artic201.blackbot.net |
80daa56f631b017efd12901585f1fc0520ebfb24 | c94168a19f02906b2b3047bf378810e9d96c7db9 | /Day32-Paint.py | e44cfcab10b22e1d26910acbe5ec4faf5c187cde | [] | no_license | cavmp/200DaysofCode | dc754d610c7a95859fd1471c2ada57b85b8f4440 | 97be78fe9b3972aa79971d523a78a0d7f872e489 | refs/heads/master | 2022-12-29T23:59:58.323082 | 2020-10-09T15:39:15 | 2020-10-09T15:39:15 | 267,060,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | from tkinter import *
from tkinter.colorchooser import askcolor
class Paint(object):
def __init__(self):
self.root = Tk()
self.root.title('Paint')
self.canvas = Canvas(self.root, bg='white', width=800, height=700)
self.canvas.grid(row=2, columnspan=5)
self.pen_button = B... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.