blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M โ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
622a976491583f0150dd9abf3670e13ce26d68f9 | 3c4450ccd471f7720ef32cce3b5f5221981547ec | /openapi_client/__init__.py | 7e87107c5afac574c7c101ec4b4a759e4572590a | [] | no_license | ContatoGrupoOptimus/python-client | eb21d88a5725294609d589474e09463ab659d45b | f84ee64f741c096aadefc1088d1da88e97663fb1 | refs/heads/master | 2022-12-14T10:57:45.041040 | 2020-09-10T21:28:19 | 2020-09-10T21:28:19 | 294,526,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,928 | py | # coding: utf-8
# flake8: noqa
"""
Chat API SDK
The SDK allows you to receive and send messages through your WhatsApp account. [Sign up now](https://app.chat-api.com/) The Chat API is based on the WhatsApp WEB protocol and excludes the ban both when using libraries from mgp25 and the like. Despite this, you... | [
"71100986+ContatoGrupoOptimus@users.noreply.github.com"
] | 71100986+ContatoGrupoOptimus@users.noreply.github.com |
f8bfb04de2d5971b0475709c0e401cf21b704a3a | e531a27eaad5a6bde184a84205a9da06b4e8e12a | /text/korean.py | fb639e5c55050a925743162b8a7c902387017967 | [
"MIT"
] | permissive | zldzmfoq12/voice-synthesizer | 5751693cc35ca457eb29e0fe719a2832b861a127 | 2c347de9d64fa42035b21c317112f6b625aa0c25 | refs/heads/master | 2022-12-13T00:01:22.360153 | 2021-04-28T12:14:50 | 2021-04-28T12:14:50 | 200,749,138 | 8 | 1 | NOASSERTION | 2022-12-08T00:48:02 | 2019-08-06T00:45:36 | Python | UTF-8 | Python | false | false | 8,631 | py | ๏ปฟ# Code based on
import re
import os
import ast
import json
from jamo import hangul_to_jamo, h2j, j2h
from .ko_dictionary import english_dictionary, etc_dictionary
PAD = '_'
EOS = '~'
PUNC = '!\'(),-.:;?'
SPACE = ' '
JAMO_LEADS = "".join([chr(_) for _ in range(0x1100, 0x1113)])
JAMO_VOWELS = "".join([chr(_) for _ ... | [
"noreply@github.com"
] | zldzmfoq12.noreply@github.com |
8b61d31c3cec5c1f20d98b0a2442ff8c95374f96 | 5b90a078ec29a836555050835d40249272654085 | /Hazard/Fishing/Fisherman.py | d1a14f6543608ec8a9bd498f8394bfa47e1cc27b | [
"Unlicense"
] | permissive | ygtripps/Archives | a165224daca9e06471d9b6e6943260d0677484d7 | 8ca460eff5d60c2b3e61ee4c434c0bfcd6d53673 | refs/heads/master | 2021-06-08T13:46:15.544730 | 2016-12-05T21:16:31 | 2016-12-05T21:16:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Python3
def main(args):
global sendersFile
global receiversFile
sendersFile = "senders" # username:password type file
receiversFile = "receivers"
mailServer = "mail.company.com"
logfiles = "./logs/massfisher.log"
maxtime = 3 #In hours
sf = open(sendersFile, "r")... | [
"noreply@github.com"
] | ygtripps.noreply@github.com |
e4eeae8029b83e01c7c094792e3fa684b7ee6199 | e8e9eb353965e9c4e5a215e3c0dd4361c6f3b83f | /Python/movie-crud/curd/settings.py | 3b4cb69e27ce285175200c1854ed9a68b1f2ebc6 | [] | no_license | Jin-Woong/TIL | 74135c937b7daf3f06af0297601d9596ca90ea8e | a3db43a996458818a8efd1610e62e839c4672d8f | refs/heads/master | 2022-04-27T16:15:08.167151 | 2020-01-20T00:15:17 | 2020-01-20T00:15:17 | 188,746,786 | 0 | 0 | null | 2022-04-22T21:32:05 | 2019-05-27T00:45:14 | Python | UTF-8 | Python | false | false | 3,135 | py | """
Django settings for curd project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Bu... | [
"kjw7236@gmail.com"
] | kjw7236@gmail.com |
29a3f1ee6f24d5c055b6e71d19a8a65a470c9846 | 31999cc128d2ee577d349e6d1f1f0306aeab4298 | /script/01test_01.py | 67db4101ad1adbfdc4e4fa3e2e487528b27fe34e | [] | no_license | jimozonguo/P_Jenkins20210111 | 10c38cf6053e959dfa33162751fb36fe42d88d7e | 8a72079e63ac473e98075667bfcd82d916ed68b4 | refs/heads/master | 2023-04-08T20:07:54.034449 | 2021-04-01T08:50:13 | 2021-04-01T08:50:13 | 353,633,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #ๆกไพ๏ผ็ ็ฉถpytestๆกๆถไธญ็setup_classใteardown_class๏ผ
#1.ๆๆต่ฏ็ฑปไธญๅชๅ
่ฎธไธไปฝ๏ผ
#2.ไธ็ฎกๆต่ฏ็ฑปไธญๆไธชNไธชๆต่ฏๅฝๆฐ๏ผ่ฟไธคไธชๅฝๆฐ้ฝๅชไผ่ฟ่กไธๆฌก๏ผ
#3.setup_class/ๆฎ้ๆต่ฏๅฝๆฐ/teardown_class็ๆง่ก้กบๅบ๏ผ
class TestLogin:
def setup_class(self):
print("setup_class")
def teardown_class(self):
print("teardown_class")
def test_01(self):
print("test01")
... | [
"2035663350@qq.com"
] | 2035663350@qq.com |
9d62bfba10a1058c0896956b027b84b51b6a9859 | 0e11f5c196d0536778c466066e0992f844d575c3 | /apps/cate/views.py | 380bed3e49642d96e879205492334cc39f54ef80 | [] | no_license | tonnychina/sjdpro | ab06d51ca2a4286b2df1b3d98d4131b57b2ed212 | 739ec23e1d39548b896277c88d7e4d9f460557e5 | refs/heads/master | 2020-05-21T05:54:49.272264 | 2019-03-16T02:23:20 | 2019-03-16T02:23:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | from django.shortcuts import render
from rest_framework import viewsets
from rest_framework import mixins
from rest_framework.response import Response
from rest_framework import status
from .models import *
from .serializers import *
# Create your views here.
class CateViewsets(viewsets.GenericViewSet,mixins.ListMod... | [
"shixin19890130@163.com"
] | shixin19890130@163.com |
f4e6efba2acb098ba59cc3d1248893b426802823 | 1ae1bc24fa902e1c293af85eac37e777e4805eb9 | /server/tests/test_get_secret.py | b6d50871b1e24317e0854e960c6b8b9a10402a2d | [
"MIT"
] | permissive | Excloudx6/simple-one-time-secret | 1745abde5c694707f6136483b5773cc04554e999 | c61c242ce41a7ef0c74e915b312e94d4ee37158c | refs/heads/main | 2023-08-03T07:45:14.826847 | 2021-09-15T17:33:35 | 2021-09-15T17:33:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | from datetime import datetime
from uuid import UUID
from fastapi import Response
from server.endpoints import get_secret
def test__get_secret__valid_data__secret_returned():
response = Response()
ret = get_secret(UUID("11111111-1111-4111-a111-111111111111"), response)
assert ret["_id"] == "11111111-1... | [
"noreply@github.com"
] | Excloudx6.noreply@github.com |
7accaa8ad9e3c45b158dd9537e55e683338dea29 | 70e1159856750f04e58c0ffc3f54d094a4602c07 | /booktest/views.py | 84958fd19d5631e83ebfd2b20bac16190adc186f | [] | no_license | wxp19940506/django_test | 032e78a4eb45eb0c54dbafd43dfd0e463d455bb5 | c586cb62d1bb1a21f3430155b3d82ab7b2a65da6 | refs/heads/master | 2021-05-10T11:52:54.186422 | 2018-01-22T07:55:11 | 2018-01-22T07:55:11 | 118,424,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | from django.shortcuts import render
from django.http import *
from django.template import RequestContext,loader
from .models import *
# Create your views here.
def index(request):
# temp = loader.get_template("booktest/index.html")
#
# return HttpResponse(temp.render())
booklist = BookInfo.objects.all... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
ad49890521b48fb274e7238b8242e87c6d3fac1b | 36a7958d7df92be80a35806bf18f5345b0dd5c2b | /pre.py | 23166158b596c4da9175976fa6187ac88d9b6b3e | [] | no_license | natsumeshow/fujitsu_hackathon_2021 | eb9e06be9e6585f51eb73300f1ef6cc0a8b14334 | 412b79c87547371a9654b6049a3db08c2b3984ec | refs/heads/main | 2023-02-27T15:47:22.553212 | 2021-02-06T15:58:16 | 2021-02-06T15:58:16 | 333,308,211 | 0 | 1 | null | 2021-02-04T02:24:12 | 2021-01-27T04:56:58 | CSS | UTF-8 | Python | false | false | 1,419 | py | import cv2
from pathlib import Path
import numpy as np
from dammy import model
def path2id(videoPath):
videoInfo = videoPath.name.split('.')
if len(videoInfo)<1:
return False, False
elif not videoInfo[1] in ['mp4']:
return False, False
else:
return True, videoInfo[0]
def make_l... | [
"yang.tianyu1018@gmail.com"
] | yang.tianyu1018@gmail.com |
a75a10fc3aaed639fdc8957c9020250fded2d7a3 | 44edd98c9d69e79378bd2b25b1d7c7f6fa95b87f | /new.py | 76023d073af4cfcc8a1a6f316049a2ed3cf6b70d | [] | no_license | UvinduIndumewan/git-test | f2d4b53269e3626948835e5381e80250a1c463cf | 199bae4f6c9b4888a5d810681e14120a8d8fc91a | refs/heads/master | 2022-11-07T17:09:44.805801 | 2020-06-13T12:09:48 | 2020-06-13T12:09:48 | 271,993,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | """hello world"""
"""This is a test subject"""
"""This is test"""
| [
"uvindu.20191047@iit.ac.lk"
] | uvindu.20191047@iit.ac.lk |
774fb2e2fbb6aeaf5a787bf6a574383945b0fea9 | 4407d9ce4604d6a5cbbf5cd502146d24ea7c52c2 | /New folder/task1.py | d99e6a976c4bf596d876dabf98072cb55663ae0b | [] | no_license | mstalokdwivedi/task1 | b371c536b0761262a0e7d8ca46265afdf47f57f6 | 82cb08806ffbaf6d5cf35f1a66a32a3ad0575fd9 | refs/heads/main | 2023-02-24T20:35:37.315642 | 2021-01-21T16:30:10 | 2021-01-21T16:30:10 | 327,593,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | import pandas as pd
import numpy as np
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
import seaborn as sns
url= 'https://raw.githubusercontent.com/AdiPersonalWorks/Random/master/student_scores%20-%20student_scores.csv'
s_data = pd.... | [
"70120060+mstalokdwivedi@users.noreply.github.com"
] | 70120060+mstalokdwivedi@users.noreply.github.com |
98a0e20e32aeea3d66d4be4ae64280c5eb0c2367 | 4963ee575127f4f966db61fbb6900db54538ee07 | /shuttle/migrations/0008_shuttle_route.py | b4ac83cb9d1359ae0e443b22802dfeec7397d945 | [] | no_license | spahan/shuttle | f85dcb954cfe3c90032c32ef1d2d554139a1120e | 6b7e5619410e8d4af41807450028f389dda560d9 | refs/heads/master | 2020-08-04T07:19:28.539156 | 2019-10-02T14:18:20 | 2019-10-02T14:18:20 | 212,053,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.2.5 on 2019-09-29 18:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shuttle', '0007_auto_20190929_2034'),
]
operations = [
migrations.AddField(
model_name='shuttle',
name='route',
... | [
"hanfi@spahan.ch"
] | hanfi@spahan.ch |
9aaf6ea0955df89b95dda0aeccfac6b4787de1fc | 5396712984717c2f8b6f1ac90cbe8d8f92a1e88d | /WebProject/route/redis.py | 65ae89ebbd291b1e83c232a6afc0ec5644d2cf52 | [] | no_license | xzhsy/flaskcm | ead7f4b5ea636bfb31b95f399d9c1b71f8a75630 | c43630fb3ec020b57cdd9fcfc05b79827016441f | refs/heads/master | 2020-03-24T22:37:37.809110 | 2019-10-31T11:39:16 | 2019-10-31T11:39:16 | 143,094,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,062 | py | """
Routes and views for the bottle application.
REDISๆฐๆฎ็ฎก็้จๅ
"""
from datetime import datetime
from flask import (render_template, request)
from WebProject import app
from WebProject.common import web_helper
from WebProject.models.models import Rediscfg
from WebProject.route import repository
@app.route('/redis')
de... | [
"xiangzhsy@163.com"
] | xiangzhsy@163.com |
7d8115df6fa61bc6f721bc8db8bd47858dc75982 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/primu.py | 74ed5f7f4b48b1b61044808885c34bd9dce48229 | [] | 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 | 255 | py | ii = [('WilbRLW.py', 1), ('WilkJMC3.py', 3), ('ClarGE2.py', 2), ('GellWPT2.py', 1), ('WilkJMC2.py', 1), ('LyelCPG.py', 1), ('SoutRD.py', 3), ('WilkJMC.py', 3), ('WestJIT.py', 1), ('FitzRNS.py', 1), ('DibdTRL.py', 1), ('EvarJSP.py', 1), ('SadlMLP2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
ff91934bcf4db590a09adef32a78ed3f8b3aab2e | 12a653d0add7e975419c3aa05966f593d31b99c4 | /syplaylist_downloader.py | e537a7faf2272acc73ee0b925a1f844f141d6ea3 | [] | no_license | avinashpai94/playlist_downloader | dd9438a8a5313a9bbb6b24d7ad71cb478e447d57 | 90f42edff6f113e971710481d4d73fb7fea8b352 | refs/heads/master | 2023-02-25T05:58:15.993194 | 2021-02-12T20:32:45 | 2021-02-12T20:32:45 | 297,176,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | from __future__ import unicode_literals
import getopt
import re
import sys
import urllib
from urllib.parse import urlparse
import requests
import youtube_dl
from bs4 import BeautifulSoup
ydl_opts = {
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec... | [
"avinashpai94@gmail.com"
] | avinashpai94@gmail.com |
8aa6022860474550f15b53fd56bd38684e14aaea | 1e59f50e3abab92ba9ed8156a62aec2731248e78 | /photos/views.py | 2d98a9191c03e70b4d1e4935b4a31a8bad680d18 | [
"MIT"
] | permissive | kiptoo-rotich/Gallery | 56290325aa0747e0ef9b4e6efe99ced9d961bd28 | 1124701ce3b24bdd9848f3a8e8196fb8188bfee7 | refs/heads/master | 2023-06-16T20:15:41.343778 | 2021-07-05T14:05:57 | 2021-07-05T14:05:57 | 382,277,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | from django.shortcuts import render
from .models import Image,User,Category,Location
import datetime as dt
from django.http import Http404
def photos(request):
photos=Image.objects.all()
date=dt.date.today()
users=User.objects.all()
category=Category.objects.all()
location=Location.objects.all()
... | [
"rotichenoch27@gmail.com"
] | rotichenoch27@gmail.com |
ce5e898f4e48bb7cd55a5dc57f8a86be77727e90 | 42a833f190b3352eaa89604381d3db500c80f538 | /pentestui/pentest_api/attacks/kerberos/modules/crypto.py | 30dd11fb3dd40ca8b292d740d0939747b96f97b5 | [
"Apache-2.0"
] | permissive | mustgundogdu/PentestUI | 95c037022c5aad25cf2e1a4b7ad58eedd6df6ed8 | 92263ea73bd2eaa2081fb277c76aa229103a1d54 | refs/heads/main | 2023-08-29T23:12:28.027452 | 2021-11-18T17:53:03 | 2021-11-18T17:53:03 | 389,436,912 | 31 | 4 | null | null | null | null | UTF-8 | Python | false | false | 12,836 | py | from __future__ import division
from __future__ import print_function
from Cryptodome.Cipher import DES, AES
from struct import pack, unpack
from pentestui.pentest_api.attacks.kerberos.modules.structure import Structure
import hmac, hashlib
from six import b
def Generate_Subkey(K):
# +++++++++++++++++++++++++++++... | [
"noreply@github.com"
] | mustgundogdu.noreply@github.com |
4060c4756bedc230b3f811d7db77fa12fd939ba3 | b02a6441c68303c4e171ca1355d4c4c583a548ec | /aedb-mls/epsilon-compare.py | e815fdf1c6748268aa4ca1d30fbd887f26666b6e | [] | no_license | santiago-iturriaga/itu-maestria | 672da91a1f1fb7abfa0ba1aa24385bc23fdc7b5a | f79e9e6706a8a6bbd7eccf425ee61766e9b4de00 | refs/heads/master | 2020-06-01T07:44:01.550679 | 2015-03-05T02:00:33 | 2015-03-05T02:00:33 | 32,400,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,189 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# epsilon.py
#
# Copyright 2013 Unknown <santiago@marga>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, o... | [
"santiago.iturriaga@04019538-fc05-46f8-052f-b547bbfd49f0"
] | santiago.iturriaga@04019538-fc05-46f8-052f-b547bbfd49f0 |
ae27520913674390e809620c54463d13c4e88d63 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /GIT-USERS/TOM-Lambda/CS35_IntroPython_GP/day3/intro/11_args.py | 2ec2eca832f454921138650bfb137e422a0c4711 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 2,852 | py | # Experiment with positional arguments, arbitrary arguments, and keyword
# arguments.
# Write a function f1 that takes two integer positional arguments and returns
# the sum. This is what you'd consider to be a regular, normal function.
<<<<<<< HEAD
def f1(a, b):
return a + b
=======
def f1(a, b):
return a + b... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
0b2d61e829acf57861e9f91e5531cbffee674fd6 | ba8295dc0d69dc3a70b38141a939f007c8238864 | /python-practice-problems/integersums.py | c3778faae25e821d2780a4ae74f7dd32a2ab0dbe | [
"MIT"
] | permissive | michael-huber2772/realpython-material | c830954acd813cc2cd15e16516e9ffbf9032b83a | 29b2cc21dcb328e679f3e0ddb8a92a658842181d | refs/heads/main | 2023-05-13T23:48:24.026074 | 2021-06-09T04:39:29 | 2021-06-09T04:39:29 | 375,227,494 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #!/usr/bin/env python3
""" Sum of Integers Up To n
Write a function, add_it_up, which returns the sum of the integers from 0
to the single integer input parameter.
The function should return 0 if a non-integer is passed in.
"""
import unittest
def add_it_up(n):
try:
result = sum(range(n + 1))... | [
"michael.huber2772@gmail.com"
] | michael.huber2772@gmail.com |
e7fc2c8eede38ab1d057f2930410a29a6191871a | f14946892dcc62732cffd0dba364d2098e6de607 | /converter.py | 40fb58d5f55a79226720f093675f16897083b36c | [] | no_license | DollaR84/notes | 556368c12b0ead9901b05b95a5691138b588eb86 | a74ec7cf41b842501d1c24ec3b180d76be1fbef1 | refs/heads/master | 2023-03-26T21:04:37.415037 | 2020-06-18T14:11:15 | 2020-06-18T14:11:15 | 223,773,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,300 | py | """
Converter database from old versions to new.
Created on 19.04.2020
@author: Ruslan Dolovanyuk
"""
from copy import deepcopy
from datetime import datetime
import os
from database import Database
import tables
import updates
class DBConverter:
"""Converter database on new update versions."""
def __i... | [
"cooler84@ukr.net"
] | cooler84@ukr.net |
f3af49040dcee4f510c7bed61a3e84e70e7f951b | 3d1b309bedcdf5fbd8b93c9e615b632ac7c96956 | /day23/solution1.py | 91db7b3aa712855e8487fe3eccccba6dbcc767d4 | [] | no_license | sebschneid/adventofcode2019 | 61877364fece04fe5aed3e5e99e7179da4945d31 | 601e01427c185b910bb94ce2782e4e55593c960a | refs/heads/master | 2020-09-22T22:03:22.201455 | 2019-12-23T22:22:39 | 2019-12-23T22:22:39 | 225,330,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | from typing import Dict, List, NamedTuple, NewType, Optional
import intcode
import network
if __name__ == "__main__":
with open("input.txt") as file:
intcode_string = file.read()
intcode_start = intcode.get_intcode_from_input(intcode_string)
computers = {}
for adress in range(50):
... | [
"sschneider@point-8.de"
] | sschneider@point-8.de |
58c7561bb30c4afd5ffb7dd7f6899788528703c2 | 8f5240f3d27778632aa340fa535e4c8ce48cd756 | /example.py | ada4fc221ea66f2f81b0d679ffc02b82863d0a11 | [] | no_license | jy00295005/ML | 590ac15f9556141269238186289c56b48f80db7b | 210c9ed77d634803e0503cdcbc3c5af10913e579 | refs/heads/master | 2020-05-18T11:05:25.256160 | 2014-10-31T08:23:05 | 2014-10-31T08:23:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | #!/usr/bin/env python
# Copyright 2013 AlchemyAPI
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"chent@mail.las.ac.cn"
] | chent@mail.las.ac.cn |
46b48c04fb8bbadb23ad70789b4a6ccc79e2387b | 11074677f25db134ac13345f17ec300524ff442a | /django-ecom/account/models.py | 6687658c6b85fa17cb2396512805fd64d35f18e3 | [] | no_license | leonidBoiko/ecommerce | 508e60bce7b5f849546250b8656dbffc0abe6678 | 13ad80622793b543d8180b081513a257d3418a2c | refs/heads/main | 2023-05-15T10:49:07.934662 | 2021-06-04T11:48:00 | 2021-06-04T11:48:00 | 373,624,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | from django.contrib.auth.models import (AbstractBaseUser, BaseUserManager,
PermissionsMixin)
from django.core.mail import send_mail
from django.db import models
from django.utils.translation import gettext_lazy as _
from django_countries.fields import CountryField
class CustomA... | [
"leonid.boyko@computerstein.net"
] | leonid.boyko@computerstein.net |
b58032f56c0d13ae8dea75ef3b8fab87a713489d | 19e3072705182e24a6387cdbece4ce6d4797695b | /AndroidAppUploader/venv/bin/tkconch | ca9721301be9eeb68e834b4d60a2e281d125d0ff | [] | no_license | pramodgobburi3/Android-CDN | b83fe019415a1dd4681db4f5c37a8bfebf12b7ec | d01aea8ea3c106fd3a9f4cb670932b7704b34b2c | refs/heads/master | 2020-04-24T06:44:16.043704 | 2019-02-21T01:10:40 | 2019-02-21T01:10:40 | 171,775,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | #!/Users/pramodgobburi/PycharmProjects/AndroidAppUploader/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==18.9.0','console_scripts','tkconch'
__requires__ = 'Twisted==18.9.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.ex... | [
"pramod.gobburi@gmail.com"
] | pramod.gobburi@gmail.com | |
4ca9dc4520f70c25ecf171ea6f53ba448000faba | 33f5e287fdc6d8f4798142237255db79d25b084d | /FirstPythonProject/UsingStrings.py | dca6f210ca22c0f3c680aa9645d068cd210149b3 | [] | no_license | comingback2life/LearningPython | 27859f140aee2dde9fbe990f7c53861d6b857d87 | 354318a0ce49096e345ac47dcca543eeb7956f54 | refs/heads/master | 2021-06-23T23:21:06.994686 | 2017-09-10T16:59:12 | 2017-09-10T16:59:12 | 100,623,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | my_name= 'Samip Pokharel'
my_age=18 # This age is not a lie and is true
my_height= 75 # The height is in inches
my_weight=175 # The weight is in lbs
my_eyes= 'Brown'
my_teeth='White'
my_hair='Black'
print "Let's talk about %s" % my_name
print "I am %d inches tall" % my_height
print "I am %d LBS heavy" %my_weight
print... | [
"callmesamip@gmail.com"
] | callmesamip@gmail.com |
d71a9c81d2b1ec632e59baa49eb16b03c6266e56 | f2b150b6ea3da084f5f1e48c817d7f45434cdbdb | /eva_benton/planning_pseudocode_challenge.py | 74ff1e4f25322eb52bdfb2d24577710aaf1794ae | [] | no_license | jaimienakayama/wolfpack_pod_repo | a3ccd2651f271719bad73c24cdc5c7760befbb75 | a3325cba163a4d333c123d74afc548308f834d9c | refs/heads/main | 2023-04-19T05:49:34.207213 | 2021-05-05T23:52:26 | 2021-05-05T23:52:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,222 | py | '''
Planning & pseudocode challenge!
For each piece here, write out the pseudocode as comments FIRST, then write your code!
At many points, you'll have to choose between using a list vs. dictionary. Justify your choices!
'''
'''
1. Shipping
You are building a system to handle shipping orders. Each order should have 3 ... | [
"evanet123@yahoo.com"
] | evanet123@yahoo.com |
8ef6b58674a55f6236df4da9f882ab9310c12fb8 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/GstGL/GLMemoryAllocatorClass.py | 09d94c14d0970b096b8877bf3ada06ef684d53ce | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 5,176 | py | # encoding: utf-8
# module gi.repository.GstGL
# from /usr/lib64/girepository-1.0/GstGL-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of the ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
e3a69ab66c5f9cb1d085346a0716780128beced1 | 7334d7669807d3bf9fe165fe916ca7b1a06f8b7c | /app.py | 4ed8e62dd07a1e26c268baf57efc01886f061091 | [] | no_license | Sreehari-BGK/Tinkerhub_Practicial_AI_Bootcamp_Project | 3a75a414d33328f31a592a273788d9df89b02b57 | 651c7d5bcf3009603c678e10bef21e98fb4f80aa | refs/heads/main | 2023-07-23T13:02:54.599057 | 2021-09-10T07:54:03 | 2021-09-10T07:54:03 | 404,999,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,197 | py | from __future__ import division, print_function
import sys
import os
import glob
import re
import numpy as np
from keras.applications.imagenet_utils import preprocess_input, decode_predictions
from keras.models import load_model
from keras.preprocessing import image
from keras import backend as K
from flask i... | [
"noreply@github.com"
] | Sreehari-BGK.noreply@github.com |
a3aa43118751541e2a307ba24d34db091940fc53 | 85ed87b30b2ee23141898671714daf03910f8635 | /getRandomSamAllHits.py | ca78ad49a5dbf664693e27d64be036dd2240beac | [] | no_license | boruch/RNA-seq-0.1.3 | 92fd6d89985f16ff202f20049cce4ea71f1763a2 | c460810f766db2aa3583739cb6281dcd9fdeab50 | refs/heads/master | 2020-04-29T09:45:27.372852 | 2014-03-27T23:20:54 | 2014-03-27T23:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | import sys
def getRandomSamAllHits(sam, numReads):
import random
f=open(sam,"r")
g=open(str("sample_any_"+str(numReads)+"_"+sam),"w")
line=f.readline()
while line[0] is "@":
g.write(line)
line=f.readline()
f.seek(-1,2)
end=f.tell()
ids={}
nb=1000
f.seek(nb,0)
... | [
"boruch.blum@gmail.com"
] | boruch.blum@gmail.com |
44caae0369ae3b0650a6e50733c989c424ea1f2d | 06ee29e29e090ab81c3d9905a8a0bcc639ec387a | /2.Monk and Inversions.py | 583408f5188a4aeef6cc467e44238b9aea79853f | [] | no_license | thisissagnik/HackerEarth_Code_Practice | 9606365e9f819d92838f7bb7422450d8976a6a03 | 9cfaf3dc903d656225e3d68b97a05a7ae12f02a3 | refs/heads/master | 2023-05-27T13:43:53.703762 | 2021-05-29T14:17:57 | 2021-05-29T14:17:57 | 306,936,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | def cnt_inversion(n, arr):
count = 0
index_com = []
for i in range(n):
for j in range(n):
index_com.append((i, j))
for x, y in index_com:
for p, q in index_com:
if x <= p and y <= q:
if arr[x][y] > arr[p][q]:
count += 1
re... | [
"sagnik.tict@gmail.com"
] | sagnik.tict@gmail.com |
a14be45bebd00cf7e9681b2e864d3db524bca8d5 | d159f0c3774dce7f26db6e5c1035c9358be57ef2 | /SIG2019/function_tests.py | 5cbc30ee8974da6992a0878a5be4ab8a046a27ab | [] | no_license | Susanou/MachineLearning | 77f11d4376052260c85c56989b943c383470e8b5 | 870a4e38777c7ce98965481a70deb7a2026514d4 | refs/heads/master | 2021-07-14T16:46:25.760891 | 2020-07-02T16:12:54 | 2020-07-02T16:12:54 | 176,060,701 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,308 | py | #!/usr/bin/env python3
import mysql.connector
import sys, time
import configparser
import fonctions_reader as fonctions
def test(theme: str):
config = configparser.ConfigParser()
config.read('config.ini')
db = mysql.connector.connect(
host=config['mysqlDB']['host'],
user=config['mysqlDB'... | [
"caos2804@gmail.com"
] | caos2804@gmail.com |
1196e65bd8eaa474fa05264612daeb33c78b55f2 | 61b02c4ce6aee3ff3d04c35f56c15f312c93928c | /2-strings/8-regex-multiline-patterns.py | 6b6ba7195872bba422a36229b34c938fa8b8d36c | [] | no_license | thales-mro/python-cookbook | 1156c1a5d54b746e46dc49e8db73b324a7f8bd94 | c45e5f698aaeab5c1baa018e209d10d7b26f0a04 | refs/heads/master | 2020-11-25T20:33:43.859266 | 2020-01-15T22:30:03 | 2020-01-15T22:30:03 | 228,833,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | import re
def main():
print("Dot operator does not take into consideration line breaks. Adaptation with non-capture group is needed.")
comment = re.compile(r'/\*((?:.|\n)*?)\*/')
text1 = '/* this is a comment in C */'
text2 = '''/* this is a
multiline comment in C */
'''
print(comment.f... | [
"thalesteng@gmail.com"
] | thalesteng@gmail.com |
b01aad91cb35baf3abbd1c78c8d260ab60c60cd9 | a4e2274db63cc2ab16ef3eda7cfde21d368e9605 | /N_50_59/N_58_2_leftReverse.py | 1970cf81a0388c97f4821fb038a00eee97e37f20 | [] | no_license | Simple-fang/sword-offer2-python | 3bfcae25697afc9fc152bc7ef808c5bf18035af5 | 8e16b3f647d6e7d29ac18352a109b20630feb688 | refs/heads/master | 2020-07-08T22:28:10.129057 | 2019-08-29T15:18:44 | 2019-08-29T15:18:44 | 203,797,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # -*- coding:utf-8 -*-
class Solution:
# ๆดไฝๅ้จๅๅๅซๆ่ฝฌ
def leftReverse(self, s, k):
if not isinstance(s, str) or len(s) == 0 or s == None or k <= 0:
return ''
strList = list(s)
self.reverse(strList, 0, k-1)
self.reverse(strList, k, len(strList)-1)
self.reverse(st... | [
"fangyinrui@163.com"
] | fangyinrui@163.com |
2b17091186348ffd159fcb0740f2e1355f414123 | 42407abcb0b5bae8f2becd20995b3272ddf24a8c | /GANs/simple_gan.py | 7f95539411e188a86db54d87fed8d2239dcd0d93 | [] | no_license | xeddmc/POCs | 4313e6a3c8b473db6f8d975bbf27fba37e13dfc6 | b8c8ea1a839c23fc5c35997eb484ce9b0e9031b8 | refs/heads/master | 2023-03-15T11:58:35.438310 | 2020-04-03T05:14:27 | 2020-04-03T05:14:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,012 | py | import os
os.environ["KERAS_BACKEND"] = "tensorflow"
import numpy as np
import matplotlib.pyplot as plt
from keras.layers import Input
from keras.models import Model, Sequential
from keras.layers.core import Reshape, Dense, Dropout, Flatten
from keras.layers.advanced_activations import LeakyReLU
from keras.layers.conv... | [
"vaibhavsatpathy@gmail.com"
] | vaibhavsatpathy@gmail.com |
291422589918cff1a01a7a361b4c182bc37e09c5 | 65dba58b620e89db5113a60cf184cd6b26129e05 | /terms.py | 4b022f5ca152be0c0bbc7c9cb89af0bf9d827ca0 | [] | no_license | PriyankVIT/laughing-octo-journey | de3b32d69a170b97e71e4124dee0210e88d66a7b | a6849f4b42527ef4ccc67de6225954447e5a653a | refs/heads/master | 2020-08-23T10:59:00.633921 | 2019-10-21T15:09:15 | 2019-10-21T15:09:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,586 | py | import pandas as pd
import numpy as np
from nltk import sent_tokenize,word_tokenize
from nltk.corpus import stopwords
from nltk.stem import PorterStemmer
from nltk.stem import LancasterStemmer
from sklearn.metrics.pairwise import cosine_similarity
import networkx as nx
stop = set(stopwords.words("english"))
pa... | [
"noreply@github.com"
] | PriyankVIT.noreply@github.com |
8a344aae06dbeb32785b94bf82c33c8f84c20b41 | 55d13d3e41d8651facf7c26d60de5e8b8ace4be5 | /piedpiper/crab/multicrab-0.py | ac77e6ce915307348ba0838f04a1b7373744c932 | [] | no_license | phylsix/Firefighter | e8ab5fdbde2dab341a67740aa62c5710683e9bab | 8f1d8d6e59b443a8216c70ebdd334b48945aeed0 | refs/heads/master | 2020-12-19T18:31:14.312639 | 2020-08-04T00:35:45 | 2020-08-04T00:35:45 | 235,812,142 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,190 | py | #!/usr/bin/env python
from __future__ import print_function
import os
import sys
import time
from os.path import basename, join
import yaml
from CRABAPI.RawCommand import crabCommand
from crabConfig_0 import *
from Firefighter.piedpiper.utils import *
verbose = False
alwaysDoCmd = True
if os.environ["CMSSW_BASE"] n... | [
"weinan.si@cern.ch"
] | weinan.si@cern.ch |
5e44fefed00ea0624611ac5adddfb6765354a441 | 6b48567be365c5a8129511418b87dd1ace781662 | /artshop/apps.py | ecaad5d816515cf3f594cc3d3fcde153e768304d | [] | no_license | rachitptah/ptah | 8c7e42c5adb57412df2c5b07799d49104abbfc5c | 28757e68c7008b13d1c3ad1880fc8b1e0647e35d | refs/heads/master | 2020-05-29T08:54:08.475804 | 2016-10-15T06:22:59 | 2016-10-15T06:22:59 | 69,261,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class ArtshopConfig(AppConfig):
name = 'artshop'
| [
"Rachit Agarwal"
] | Rachit Agarwal |
aa36fc5578e1ff9d3e2ca3774590d9e2ac4b034b | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/hoework01/gettop10frommaoyam01_20200626091702.py | d2722f72cb3c318b6baafd5cd7fd7285bc7c6d98 | [] | 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 | 2,407 | py | # ไฝฟ็จrequests๏ผbs4ๅบ๏ผ็ฌๅ็ซ็ผ็ตๅฝฑtop10็็ตๅฝฑๅ็งฐใ็ตๅฝฑ็ฑปๅใไธๆ ๆถ้ด๏ผๅนถไปฅutf-8็ๅญ็ฌฆ้ไฟๅญๅฐcsvๆไปถไธญ
import requests
from bs4 import BeautifulSoup as bs
maoyanUrl = "https://maoyan.com/board/4";
user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'
header = {
'Conten... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
d21dbb0c57c7a975df7de3bd6cb16ad4802d1866 | e4104ad99575a394157b480dc8724a026cb743b7 | /web_develop/apps.py | 1ca6c73e9d7223367f11a829f9805584c1b696dd | [] | no_license | fourston/UnitCube | f0ca2e40e296db60f0aa3d2769fe360205da2eb0 | c008ef0947e4448c433d4b5a7615ae1ca8f41fc5 | refs/heads/master | 2021-05-06T21:42:45.015419 | 2017-11-29T23:53:12 | 2017-11-29T23:53:12 | 112,540,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class WebDevelopConfig(AppConfig):
name = 'web_develop'
| [
"fourston@mail.ru"
] | fourston@mail.ru |
9f3670c4d707a3e54c70d0a55f2059c21cb3d607 | bc39bf7466f06503807bb39366a99ecdd5cab81e | /rdfttl_to_csv.py | 3a92fb8f6c76f113afdd3fd6e763951eeabad5c7 | [] | no_license | SreeSingamsetty/Master-Thesis | cd68e32d243c81865bc2cb4f8c55f1d3f5d43d63 | b6a27acbe1919f07f04194249df22d3d8e5a6f88 | refs/heads/master | 2020-03-18T06:46:24.399820 | 2018-05-22T13:04:22 | 2018-05-22T13:04:22 | 134,414,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from rdflib import Graph
g = Graph()
g.parse("short_abstracts_copy.ttl", format="ttl")
g.serialize("short_abstracts_copy.csv", format="ttl", base="http://dbpedia.org/resource/")
| [
"noreply@github.com"
] | SreeSingamsetty.noreply@github.com |
59b5cc9e5c1652af2d3ffa90116d914e8aaf7578 | 985c66c2fcdf22545dd27a1c9e299a5e862fdf06 | /020.py | 88c4480d684a50fd9e59da83a614b7ee0fbb1aa7 | [] | no_license | arpit0891/project-euler-1 | a9a6016158a15ea45f1eba1698bd914fb1d10a52 | e0dcec507a708265e655baec5a4d7bdb7b8540fa | refs/heads/master | 2021-02-23T01:31:32.843196 | 2013-05-04T10:43:20 | 2013-05-04T10:43:20 | 245,389,882 | 1 | 0 | null | 2020-03-06T10:21:39 | 2020-03-06T10:21:38 | null | UTF-8 | Python | false | false | 392 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#n! means n ร (n โ 1) ร ... ร 3 ร 2 ร 1
#For example, 10! = 10 ร 9 ร ... ร 3 ร 2 ร 1 = 3628800,
#and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.
#Find the sum of the digits in the number 100!
#Answer:
#648
from mathplus import factorial
M =... | [
"skydark2@gmail.com"
] | skydark2@gmail.com |
d3bd8c51d6239f19186109f0ca17cf57933c4503 | 1d26fcc1673c78a03b2474102dddd63234863657 | /440 Final Project/neuralDigits.py | b692034f3653646f7b23a8fecc18f034a5786ea0 | [] | no_license | taotao-mars/AI-final-project | b47622927f87c83e863d28e59fb7a59d6afdc7f1 | b3e5892afad3dce64843b4c5efaab42917af42ff | refs/heads/master | 2020-03-16T17:38:34.619149 | 2018-05-10T03:18:27 | 2018-05-10T03:18:27 | 132,841,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | import samples
import numpy as np
from neuralNetwork import NeuralNetworkClassifier
def testing(num):
trainData = np.load("traindigitbasic.npy")
trainLabels = samples.loadLabelsFile("data/digitdata/traininglabels", num)
testData = np.load("testdigitbasic.npy")
testLabels = samples.loadLabelsFile("data/... | [
"noreply@github.com"
] | taotao-mars.noreply@github.com |
15513b01280cc9299dd44d32f89de0877a1a65ee | 41b743de20560539b3da72730ea7a3202b496225 | /subcat/urls.py | c435b509c989147d90f2c15a556a3fa1ccb2d7b9 | [] | no_license | V1TO-C/Django_Tutorial | ea379d53d48683393708e59eb8371c30b32a58c1 | 123801be0ca1eb5debc3329dabed6d313fb3b7b9 | refs/heads/master | 2023-01-04T22:23:04.775915 | 2020-10-28T17:54:36 | 2020-10-28T17:54:36 | 301,209,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^panel/subcat_list/$', views.subcat_list, name='subcat_list'),
url(r'^panel/subcat_add/$', views.subcat_add, name='subcat_add'),
url(r'^panel/subcat_delete/(?P<pk>\d+)$', views.subcat_delete, name='subcat_delete'),
] | [
"v.cermak.v@gmail.com"
] | v.cermak.v@gmail.com |
cfaca9464e29f20b8f94525c65c6d37541644890 | 37c7336cc40a133027460574a3afb6d4657ea2dd | /imgur/imgur | d9cfe70042cc57835226a51a17c9e6ad57251c1a | [] | no_license | udion/config | c1dc12e76ee00f379d293099b8b539e38a71a818 | 5c41cc81ad237d992318e9f5a20152b808292a5e | refs/heads/master | 2020-03-23T17:46:20.610632 | 2018-07-20T20:05:59 | 2018-07-20T20:05:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | #! /usr/bin/python
from sh import curl # install `sh` with `pip install sh`
import json
import sys
try:
resp = curl(
"https://api.imgur.com/3/image",
H="Authorization: Client-ID 4dda043bff518d8", # Get your client ID from imgur.com
X="POST",
F='image=@%s' % sys.argv[1]
)
... | [
"meetshah1995@gmail.com"
] | meetshah1995@gmail.com | |
c4675dce2279ea3da44cfb77ff37f04d65a568de | b40c523eb48e899763cefbc5cbac1a9538b7524c | /test.py | a55de7e64221ef48a92e6455c286761886ce54cd | [] | no_license | kalexrt/Image-Colorization-using-CNN | b5ad355fa286280a61535bf245015d25d3108b16 | f69f4e7b6e550f22c289e44d977af0602b8309d9 | refs/heads/master | 2023-03-16T08:31:15.299794 | 2018-10-11T08:23:17 | 2018-10-11T08:23:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | #dependencies
import numpy as np
import cv2
import os
def read_images(path):
images = []
all_paths = os.listdir(path)
mini_set = all_paths[:400]
for i in mini_set:
file = path+"/"+i
image = cv2.imread(file)
image = cv2.resize(image,(128,128))
images.append(i... | [
"noreply@github.com"
] | kalexrt.noreply@github.com |
5504d599f5231dfb970d783217327010a3757c72 | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/netapp/v20201201/snapshot.py | 5dc6e64c2d7c5f24cdb196fcb956b80495f2cc6e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,959 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | johnbirdau.noreply@github.com |
fedf9a4adf68e18a4d492e204426b009e4c03540 | 299c07abf832ba8b0a4181c526f95d6f861c3623 | /pages/views.py | 483e3caba3bab343c52bb5dfe15734215146eb40 | [] | no_license | ananyajana/hello-world | 37640880b8df2b170a4d64a7893eced35cf07293 | c498ec70016e22978f2c3f0365d6a38522254b72 | refs/heads/master | 2023-08-14T22:52:25.634216 | 2020-05-25T11:38:28 | 2020-05-25T11:38:28 | 266,763,806 | 0 | 0 | null | 2021-09-22T19:09:50 | 2020-05-25T11:39:56 | Python | UTF-8 | Python | false | false | 166 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def homePageView(request):
return HttpResponse('Hello, World!')
| [
"ananya.jana@gmail.com"
] | ananya.jana@gmail.com |
615479573109830cab79f8034fdf70a64c7497c5 | 56a813086d56a1c5c7c7dd84cf1da70d98f6cca8 | /csv-tools/find_key_word.py | d6c1af658e9fe88fc7ccadcba0a3905ba596f6b9 | [
"MIT"
] | permissive | kokdemo/nlp-toolkit-for-pm | 1c475d870748171f26a166c6801bd673d2d2d1c1 | dd34307e8ffc1280443a2268b07e27a5d7bf1f3e | refs/heads/master | 2022-02-01T05:21:53.593690 | 2022-01-19T03:27:22 | 2022-01-19T03:27:22 | 148,502,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | import csv
def read_csv(file_path_name,origin_row_header,keyword):
res_arr = []
csv_file = open(file_path_name,"r")
print('ๆไปถๆๅผๅฎๆ๏ผๅฐๅๅจ'+file_path_name)
dict_reader = csv.DictReader(csv_file)
for row in dict_reader:
if if_find_keyword(row[origin_row_header],keyword) == 1:
res_ar... | [
"kokdemo@gmail.com"
] | kokdemo@gmail.com |
c8705454f5b80ca5aca9c2228cd462665605112d | f8e03a0724516b7cc2299f6c7a8cef544fa32484 | /source/pic2card/mystique/group_design_objects.py | e59231d840bf9b34a839f234137c4999867a8772 | [
"MIT"
] | permissive | isabella232/AdaptiveCards | cc3904f0782bd94087ae0a0df0ee2db954facdde | 766750517196d05f4466941647e07a8a298257b2 | refs/heads/main | 2023-03-07T22:13:55.327587 | 2020-11-17T02:02:15 | 2020-11-17T02:02:15 | 313,699,024 | 0 | 0 | MIT | 2021-02-23T16:14:48 | 2020-11-17T17:51:17 | null | UTF-8 | Python | false | false | 21,437 | py | """Module for grouping deisgn objects into different containers"""
from operator import itemgetter
from typing import List, Dict, Callable, Tuple, Optional
from mystique import config
from mystique.extract_properties import CollectProperties
class GroupObjects:
"""
Handles the grouping of given list of objec... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
68f09c614ab5f1231f49f77c4804d2cb9765d55d | 90df1c6ccfd65a51e44c067f5079c2262f0fd767 | /BarChart.py | b397a0ab5bcf7d788b23b72807454aa8c7e45f50 | [] | no_license | sudalvi/First-Week | f8083211721d16e051d7898225cd8c17912fbc14 | 7a6e952229c6af12d69e27b9486e7aee4480779e | refs/heads/master | 2020-06-01T06:59:23.991506 | 2019-06-07T04:52:35 | 2019-06-07T04:52:35 | 190,689,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | import matplotlib.pyplot as plt
x = ['Java', 'Python', 'PHP', 'JavaScript', 'C#', 'C++']
popularity = [22.2, 17.6, 8.8, 8, 7.7, 6.7]
pos = [ i for i , _ in enumerate(x)]
plt.bar(pos, popularity, color =(0.4, 0.6, 0.8, 1.0), edgecolor="blue")
plt.xticks(pos, x)
plt.minorticks_on()
plt.xlabel("Language")
plt.ylabel("Popu... | [
"sd.legant@gmail.com"
] | sd.legant@gmail.com |
cc6617779ee02a128a2381e1bb8d2819c9b0c84c | 726d8518a8c7a38b0db6ba9d4326cec172a6dde6 | /1282. Group the People Given the Group Size They Belong To/Solution.py | 4944ab7312ab85c95887d096c509715247085dc7 | [] | no_license | faterazer/LeetCode | ed01ef62edbcfba60f5e88aad401bd00a48b4489 | d7ba416d22becfa8f2a2ae4eee04c86617cd9332 | refs/heads/master | 2023-08-25T19:14:03.494255 | 2023-08-25T03:34:44 | 2023-08-25T03:34:44 | 128,856,315 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | from typing import List
class Solution:
def groupThePeople(self, groupSizes: List[int]) -> List[List[int]]:
res = []
groups = {}
for i, e in enumerate(groupSizes):
groups.setdefault(e, []).append(i)
if len(groups[e]) == e:
res.append(groups[e])
... | [
"yubowen.ssr@bytedance.com"
] | yubowen.ssr@bytedance.com |
e0887b70f4b7024270a588e59d6a5d81ec0959c3 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/signalrservice/v20210601preview/get_signal_r.py | e126d745e3c8f5f3fc1a5876c117c9fc8754627f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,073 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
7b2362395c81e42eeb6741f5b8f5029495d61f19 | 182147503928530968928be0f0dbfd721f4f6bc5 | /test/transforms/test_minmaxscaler.py | 827e5f4f14772038a4afaa5b1dcf6013db683b13 | [
"MIT"
] | permissive | omarirfa/praudio | dd04378b858f0d88382fbcf398deb318ed1e6cf1 | cc01f904eb22ff4c8a3dc4d69991c52feb843f3b | refs/heads/main | 2023-07-22T18:15:59.056767 | 2021-08-27T21:41:00 | 2021-08-27T21:41:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | import numpy as np
import pytest
from praudio.transforms.scaling.minmaxscaler import MinMaxScaler
from praudio.transforms.transform import TransformType
from utils_transforms import sample_signal
@pytest.fixture
def min_max_scaler():
return MinMaxScaler(-1., 1.)
def test_loader_instance_is_instantiated_correct... | [
"velardovalerio@gmail.com"
] | velardovalerio@gmail.com |
e1ca10f66fe6e4a01b92ace526335679d0427751 | 42f4238073a70d1494537f8c8b07835b531e73a9 | /benchmarks/beach/redist_beach_erosion_board_waves_3d_c0p1_n.py | e0d724264d63efa1c4516fe87fb96968f2ac296f | [] | no_license | erdc/proteus-mprans | bd99257af7b3bbe08386533faf072dba22e93a61 | f8f4d20bc870b361c64c8ca2ceb99f045b373323 | refs/heads/master | 2022-09-11T13:18:39.973962 | 2022-08-11T16:27:29 | 2022-08-11T16:27:29 | 2,303,947 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,767 | py | from proteus import *
from proteus.default_n import *
from redist_beach_erosion_board_waves_3d_p import *
from beach_erosion_board_waves_3d import *
if rdtimeIntegration == 'newton':
timeIntegration = NoIntegration
stepController = Newton_controller
elif rdtimeIntegration == 'tte':
timeIntegration = Ba... | [
"cekees@gmail.com"
] | cekees@gmail.com |
03622786a4de2d5c12beee1a16d5fba75dcf2347 | 29ad9caf139fab91580d7be36c9bd07623c4ca4d | /py/edu_freq_min.py | fc3b361beeafe60bea31d57a072936492e1f99f0 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-unknown"
] | permissive | bcgov/flatfile-tools | f324687389a508aad641131f70bb66c533917bbe | 749071129cab7a598bd4c2edf050dce59324a97f | refs/heads/master | 2021-06-10T15:14:08.266856 | 2021-05-13T14:23:48 | 2021-05-13T14:23:48 | 183,680,156 | 2 | 0 | Apache-2.0 | 2020-04-15T02:21:47 | 2019-04-26T18:58:46 | Python | UTF-8 | Python | false | false | 3,247 | py | # 20190315 take pharmanet dispensations, look for earliest dispense date of drug type, as well as dispense frequency
# output has same data, with freq and min_srv_date added
import os
import sys
import time
from misc import*
def expected(f_name, lookup):
if f_name not in lookup:
err("expected field: " + st... | [
"richardson.ashlin@gmail.com"
] | richardson.ashlin@gmail.com |
5fdc08551c6d8e928a2cdfe94f16b447b3157fe9 | 90d7e077d4b5aac29d9aac2352d7d56da35bdd65 | /spell_checker.py | b6785324e2771cf2b86fc9705823d40153543c5c | [] | no_license | Apoorv7092/Ori | 2d0fb807b50dfb3f4ac64d6a33992ac2cb4db3ee | 46af2ee06d7427d36697bf1f3c1a1d6ad39d0224 | refs/heads/main | 2023-06-24T07:49:59.339665 | 2021-07-23T05:23:01 | 2021-07-23T05:23:01 | 388,685,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,381 | py |
import pandas as pd
import parameters
import re
from collections import Counter
def words(text): return re.findall(r'\w+', text.lower())
fdf = pd.read_excel(parameters.training_data)
#message_col=list(fdf['message'])
tadaa = " ".join(list(fdf["message"]))
#tadaa = open('/home/rajput/Documents/Fasttext_final/t... | [
"noreply@github.com"
] | Apoorv7092.noreply@github.com |
89baa3c77a0325571b7687166c88e9b24ca6bc99 | 22e496318558b8ad489fcd1f1a40de96161f29e8 | /source/body2d.py | 3bbf70ca732140f600fb41dc3755aa2c6a80595c | [] | no_license | x00001101/py | a56000c07683521329cec7e13cfbb6ae5cb0a296 | 418b467353edf6d82cde35c140486cb47d875c97 | refs/heads/master | 2023-06-12T09:28:11.541361 | 2021-07-04T12:11:09 | 2021-07-04T12:11:09 | 381,191,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import pygame
from source.variable import *
class body2d:
def __init__(self):
pass
def render(self, x, y, width, height):
body = pygame.Rect(x, y + height//2, width, height//2) | [
"x00001101@gmail.com"
] | x00001101@gmail.com |
a9bb0f690afa0a9da4041ea70f4527cbe0ef2c3a | 761beb2a465800f992c8590767d8cd84e1480a4c | /pySON.py | 1175a5b0a060e8d6f1118ad7b2cf3bb8819ff340 | [] | no_license | willh99/PRESS-RPi | 5109aed872ef1f65249f683a3f68d141d4e995bb | 5b0587158890c42f01538f36db91124cf507abe5 | refs/heads/master | 2021-04-28T08:05:17.638496 | 2018-04-11T17:46:10 | 2018-04-11T17:46:10 | 122,240,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,814 | py | import json
import time
import random
import datetime
def read_json(filename):
if '.json' not in filename:
return -1
try:
with open(filename, 'r') as f:
print("File \"", filename, "\" found", sep='')
data = json.load(f)
return data
except F... | [
"noreply@github.com"
] | willh99.noreply@github.com |
2c9cc86f812212a89a8a7ef7beb3f89062ce51fa | af8c27af80884e5d0d4ccb51ba469802bce9e8f3 | /hari/urls.py | d3b079dd634fa575e3ada9ff0f1f9f73e1458429 | [] | no_license | HariVardhanReddy123/Django | 8b8b1bcb011d5a807b37597803dea392d92661bd | a12555fd2191997469b8032c6696a404560203a5 | refs/heads/master | 2023-07-07T23:15:46.388132 | 2021-08-22T11:12:13 | 2021-08-22T11:12:13 | 398,777,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | """hari URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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 vi... | [
"manjulareddy2703@gmail.com"
] | manjulareddy2703@gmail.com |
2c730e56bc9a5b4983cd6e076bc899c0964737a6 | 58e15fca047ece58bfa391a6efb88ec1b46997b2 | /venv/lib/python3.8/site-packages/selenium/webdriver/common/actions/wheel_input.py | 64bb6db22df1194f5b148b59bd4fabff2289bdc4 | [] | no_license | su2708/WebScraper | 6594f102336de0bb0ebc2c3feafdb4d87da52ad3 | a084afce4a8dacb4d4beb43924aa85a831c3b4ec | refs/heads/main | 2023-02-20T15:43:37.246448 | 2023-01-15T17:26:28 | 2023-01-15T17:26:28 | 323,025,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/f6/5c/a4/99012d79ffc30cf1b681f61f329c7ebd8c280d8c5fcc537385cf91bd63 | [
"46125751+su2708@users.noreply.github.com"
] | 46125751+su2708@users.noreply.github.com |
e409feb2418cef1b05aab8d5cafb1f0a54bf02ae | 0df96f1d85717a72c9b989e133845a6c6bb73129 | /src/main.py | 02cc3d754b0824331b92fbd79e5878bf3efc9df2 | [] | no_license | madrigals1/table_api | 212aac3cfaedd1286486661cb80234be12935f7b | 0f4e230dee1de6c7f700444b7b2b86a420ce4c70 | refs/heads/master | 2023-03-28T11:28:05.237635 | 2021-04-01T15:10:08 | 2021-04-01T15:10:08 | 308,363,547 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from flask import Flask, jsonify
from src.utils import create_png_from_dict
from flask import request
app = Flask(__name__)
@app.route("/")
def index():
return jsonify(
detail="Table API is working. Use /convert to convert dict into table PNG"
)
@app.route("/convert", methods=["POST", "GET"])
def c... | [
"sabyrbayev.adi32@gmail.com"
] | sabyrbayev.adi32@gmail.com |
b7042ac12c864cf87d88242eccf186629d33bcf7 | 5c2b39d11d201110ec58fe04d96577189f768928 | /WebServerSocketPt2.py | c7148a56e2e995e7279459270e3b017dd79a71c6 | [] | no_license | Thaileaf/WebServer | 4d34b02d16975522c547a76a00985a637b7170f2 | 5be24e60bfec9c5d788405b2432c80ebea7525be | refs/heads/main | 2023-02-24T07:56:32.906769 | 2021-01-24T08:10:00 | 2021-01-24T08:10:00 | 332,134,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | import io
import socket
import sys
class WSGIServer:
address_family = socket.AF_INET
socket_type = socket.SOCK_STREAM
request_queue_size = 1
def __init__(self, server_address):
# Initializes the listening socke
self.listen_socket = listen_socket = socket.socket(
... | [
"lethaison2019@gmail.com"
] | lethaison2019@gmail.com |
dde81e93ee1d134f92771c4281c3c3de4a81daac | 94478c8ecd9b2f4a9b0c37c7c43b3061d971c0ba | /test/test_parser.py | ef7b34e21a0640bf90749b4300f76e853b49b0a9 | [
"MIT"
] | permissive | Larryun/coursenotify | fd7854774bce8f2d8d785e790726cbcee77dca69 | e82794ba83d42c2cca9b2dc7c6e6108dcecaba54 | refs/heads/master | 2023-02-12T08:32:18.950579 | 2021-01-13T06:18:18 | 2021-01-13T06:18:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | import unittest
from cn_v2.parser.course import *
class TestParser(unittest.TestCase):
def test_run(self):
p = CourseParser("../config/dev.yaml", CourseParser.DA)
# soup = p.get_soup()
# p.save_soup(soup)
result = list(set(p.parse()))
print(len(result))
| [
"lerryun@gmail.com"
] | lerryun@gmail.com |
9891cf6da61e8f98c7f2e72b7c09beb73584ed3a | b1e6e029dee2c8c2d9c2439e4295b85bfed36469 | /zad1.py | 51d35c733991ac4582cf130eb7f481e5da9d4121 | [] | no_license | InsaneM666/cw2_programowanie | b12d9ef50634bc6594be64e37a863e271d29a57b | a86e7c99e85d4f6a920460f40058629f425ba1bd | refs/heads/master | 2022-09-11T23:24:34.641223 | 2014-11-14T11:55:22 | 2014-11-14T11:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | import time
#Uzytkownik podaje dowolny plik tekstowy, oczywiscie z zalozeniem ze jest w tym samym folderze co program, jesli nie musialby podac cala sciezke
sciezka=raw_input("Podaj nazwe pliku do analizowania (wraz z rozszerzeniem!): ")
plik=open(str(sciezka),"r")
tekst=[] #plik wejsciowy czysto po odczytaniu
for l... | [
"paulina.bednar@gmail.com"
] | paulina.bednar@gmail.com |
ab91542f9a2835ef223506eb04c12d468ce365f8 | b9676dfd72aaa92e0167ea305bb0a46e022d4d9e | /django-essencial/0-django-startproject/hello/hello/urls.py | 283d6ff750922a6c57d77f38acdc55908cdd53e4 | [] | no_license | GuidoBR/learning-python | c3ea91419adbc80e01c75b744c02c5e7290c4479 | 032ac862bf0660c535879e1985ca63a10296df17 | refs/heads/master | 2023-05-26T01:01:54.654117 | 2022-10-28T12:51:47 | 2022-10-28T12:51:47 | 25,278,144 | 0 | 0 | null | 2023-05-22T21:33:34 | 2014-10-15T23:36:37 | Python | UTF-8 | Python | false | false | 761 | py | """hello URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"guidopercu@gmail.com"
] | guidopercu@gmail.com |
12d339f30ce38a04f1c2b747619c8fd0a1edc622 | ebed065ca38c964aef3173138542e06d53f257f5 | /web_chat/forms.py | 2d64241e353a0de6854e7376fca0fb5f6b1f2895 | [] | no_license | Megachell0/simple-chat-api | d40e8de7e3e682480b393ef53e36edf942358caf | ed10d365a7e5ea7aa2faeb5853ccc06ebf989934 | refs/heads/master | 2023-02-10T12:18:24.769993 | 2021-01-03T20:05:06 | 2021-01-03T20:05:06 | 326,023,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py |
'''
class UserRegisterForm(UserCreationForm):
email = forms.EmailField(label='E-mail')
class Meta:
model = User
fields = ('username', 'email', 'password1', 'password2')
widgets = {
'username':forms.TextInput(attrs ={"class":"form-control"}),
'email':forms.Em... | [
"kravtsovvd@gmail.com"
] | kravtsovvd@gmail.com |
8e40d17b1e7ee23dfb1b35a3e3c00db329b41ea3 | dedcad2f2cb8004437cdd63b3560b0c65a83b0f7 | /python/Juno-Show/border1-show.py | 958566a7abd3a1a724a3feba04592240730c64ff | [] | no_license | dlakey/Don-RePo | e488f54c3bafe2a3eb297aca8b5ab500ff4048fe | 1afdeafb24a356b6fc91813117949339c635107d | refs/heads/master | 2021-01-20T02:25:46.538963 | 2018-05-05T15:53:23 | 2018-05-05T15:53:23 | 89,405,034 | 0 | 0 | null | 2017-05-22T04:21:52 | 2017-04-25T20:43:34 | Roff | UTF-8 | Python | false | false | 235 | py | import jnpr.junos
import os
import sys
from pprint import pprint
from jnpr.junos import Device
r0 = Device(host='172.16.1.250',user='root',password='Juniper').open()
response = r0.cli('show configuration | display set')
print response
| [
"dlakey@Donalds-MacBook-Pro.local"
] | dlakey@Donalds-MacBook-Pro.local |
54dfeffbc029f3eb10e189a93c48b3df35ca9d62 | 74313467bf7c950897d11ee131595e87b7aeabb9 | /apps/pipitor/telega/admin.py | 79810af556243052f7f19494cc39a722670adf60 | [] | no_license | cobravsninja/telekafka | 8442cfff0b890580db6f2c830fea42c24ce1813a | d280036fa664f2fc2b36dde1457540b92e4431a3 | refs/heads/master | 2020-06-19T04:42:58.238408 | 2019-07-17T08:33:14 | 2019-07-17T08:33:14 | 196,566,576 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from django.contrib import admin
# Register your models here.
from .models import (
ActiveGoogleSearch,
ActiveInstagramSearch,
GoogleUrl,
InstagramUrl
)
admin.site.register(ActiveGoogleSearch)
admin.site.register(ActiveInstagramSearch)
admin.site.register(GoogleUrl)
admin.site.register(InstagramUrl)
| [
"root@debtest3.asd.local"
] | root@debtest3.asd.local |
c7c0b024c76f35d87b2037f5b47756c06d171305 | d5e251fee00fa17ceb1834a37ac2c5d0426cfab6 | /firstapp/untitled.py | 48dab678758d1fe41b17861e5d70740e94a17adc | [] | no_license | unique1o1/SmartSociety | 068382dd203489c607cee9dbeb0db94268c4c03d | 03b6b5fe8e2eb015cd4125c99a16c8d8988cc346 | refs/heads/master | 2021-01-21T06:39:46.820830 | 2019-03-08T13:00:38 | 2019-03-08T13:00:38 | 83,269,214 | 0 | 1 | null | 2017-02-27T07:59:56 | 2017-02-27T04:48:43 | CSS | UTF-8 | Python | false | false | 233 | py | from pyfirmata import Arduino, util
class runcommmand():
def __init__(self):
board = Arduino('/dev/ttyACM0')
x=board.get_pin('d:13:i')
x=x.read()
return x
def main():
hey=runcommmand()
if __name__=="__main__":
main() | [
"yunik.maharjan@icloud.com"
] | yunik.maharjan@icloud.com |
b1ce34d6104532c2b825d24a36c9abbea3db79c8 | 67699ac3e2813dfd42c02489d67bdbd3d9d28b41 | /apigo.py | b81e7be6939f7f5bc0f99756796aa02cb223f16a | [
"CC0-1.0"
] | permissive | christianbos/smsmap | 884b1bc13901f688986f71259b2c6e69cafa0de7 | 650efcdeffdf337d1d8748f042b6246a7300c407 | refs/heads/master | 2016-08-11T17:02:46.684911 | 2016-03-06T19:13:03 | 2016-03-06T19:13:03 | 53,243,002 | 0 | 0 | null | 2016-03-06T16:59:06 | 2016-03-06T07:23:58 | Python | UTF-8 | Python | false | false | 311 | py | import requests
url = 'https://maps.googleapis.com/maps/api/geocode/json'
params = {'sensor': 'false', 'address': 'rio suchiate, colinas del lago'}
r = requests.get(url, params=params)
results = r.json()['results']
location = results[0]['geometry']['location']
location['lat'], location['lng']
print(location)
| [
"buoc_12@hotmail.com"
] | buoc_12@hotmail.com |
9dca95f0eadc9b7576cb73579313ffa2ab36aaa3 | 444670e6d73ae9d95c0bb0459c8e02423876d2fb | /pycharm/LoginSite/mylogin/migrations/0001_initial.py | 08c4cb3c5cfd13d3c86c5e92dc2a59b4d175f342 | [] | no_license | zhangxingxing12138/web-pycharm | c8b6822be95bfb904f81f772185fe9e17fc77fc3 | 5f212e6805b0734aa3c791830526a95b24a930f4 | refs/heads/master | 2020-04-04T18:03:45.458309 | 2018-11-08T12:03:51 | 2018-11-08T12:03:51 | 156,148,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-11-06 00:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
... | [
"you@example.com"
] | you@example.com |
ec6651c3903b2913600b233e85032b05d63dd901 | 3f1873d63ccb215ec88105661f1cd44927e222b3 | /dl4mir/chords/models.py | 2a95e79cc0b937d4a3c2becd586573782efa5c39 | [] | no_license | bmcfee/dl4mir | 50dd467687991163a819fc7560b9d9f9c4c6e568 | c9438a221d1e853c25e1867673c1c3efca2e1756 | refs/heads/master | 2023-07-11T10:35:54.041154 | 2016-01-20T03:57:58 | 2016-01-20T03:57:58 | 69,293,002 | 1 | 0 | null | 2016-09-26T21:09:15 | 2016-09-26T21:09:14 | null | UTF-8 | Python | false | false | 38,495 | py | import optimus
import dl4mir.chords.labels as L
import numpy as np
TIME_DIM = 20
VOCAB = 157
GRAPH_NAME = "classifier-V%03d" % VOCAB
def classifier_init(nodes):
for n in nodes:
for p in n.params.values():
if 'classifier' in n.name and 'bias' in p.name:
continue
opt... | [
"ejhumphrey@nyu.edu"
] | ejhumphrey@nyu.edu |
73ca263730fd3355239897a0ff055657d5d6bcb3 | f22fa4e546e2e3c441429ffbc9639411b858a903 | /pylex/visit_nodes.py | 6843396bd1d3d68a6cbd640e268caa8d1f85d4fc | [] | no_license | aleert/pylex | 47f38f0554abfce06b2676d33c0f9fd34e99dff9 | b13097247e3ef03de60c168fc4cbf0f47e6b0d3c | refs/heads/master | 2020-05-19T04:23:25.128638 | 2019-05-17T21:20:38 | 2019-05-17T21:20:38 | 184,823,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | # -*- coding: utf-8 -*-
import ast
from ast import NodeVisitor
from pathlib import Path
from typing import Iterable
from pylex import visitor_mixins
NODE_TYPES = {
'FunctionDef': visitor_mixins.FunctionDefMixin,
'function': visitor_mixins.FunctionDefMixin,
'ClassDef': visitor_mixins.ClassDefMixin,
'... | [
"aleert@yandex.ru"
] | aleert@yandex.ru |
da8bfd38abbbf54a7826c085acb0360c43d51b33 | 2cc7d7b2e2219a7b7d00027ec5c3106eab10a30c | /send_winks.py | 2659ef31381fd850b7e1675a9a88608abf3c1812 | [] | no_license | 9whoami/match_parser | 409c6831edb232b70b97d0a560b8007bccf2b832 | 5bdffd990d09703861924f5856875ede7bc66258 | refs/heads/master | 2020-06-10T09:11:41.156289 | 2016-12-08T21:37:29 | 2016-12-08T21:37:29 | 75,976,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import settings as config
import sys
from argparse import ArgumentParser
from imports import base_error
from imports import Logger
from imports import ThreadPool
from imports import ApiMethods
from imports import WebDriver
from sites.match import signin
from sites.match import... | [
"sokolov@openmail.cc"
] | sokolov@openmail.cc |
1a71d1d48c8c1e7899c78ae5ffffd819170fff8b | 0c5fed6415f7a307d0885d7579969d4e8f0121c8 | /Assignements/MT17143_Assignment5&6/MT17143_Problem1.py | fb5a51bc4753c66cf95906fd1944be7a9261bf8c | [] | no_license | akshitasawhney3008/Machine-Learning | 4032dfb3efaa7fdeb794913bb30e39f7a2fece31 | bef1672ecb51e07b291349af9df219d2bfea8f2d | refs/heads/master | 2023-02-02T16:22:01.016505 | 2020-12-10T10:37:49 | 2020-12-10T10:37:49 | 320,232,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | #MT17143 Akshita Sawhney
#Problem 1 RNA Sequencing
from sklearn.metrics import accuracy_score
from sklearn.cross_validation import train_test_split
from sklearn.cluster import KMeans
from sklearn.cluster import MiniBatchKMeans
from sklearn.cluster import SpectralClustering
from sklearn.manifold import TSNE
from sklear... | [
"akshita17143@iiitd.ac.in"
] | akshita17143@iiitd.ac.in |
fb602658c47b01a30ff2c7ae2b51eec8b1d10712 | faf2b052e7f8cd79467ad34fbc173f3bf4b1a21d | /test/test_ws_equipment_list_result.py | 7230f7e81388c99a49ad58906a36598acb75af45 | [] | no_license | atbe/MSU-Scholar-Api-Client-Python | 5d39577ce07ab285f0df9ee58a1ed7ff8ab08d2a | 31b263e5ad848fc6593c4662fbf2828ab9e2594c | refs/heads/master | 2021-05-04T00:51:46.720474 | 2018-03-12T23:52:17 | 2018-03-12T23:52:17 | 120,354,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,853 | py | # coding: utf-8
"""
PURE API 510
This is the Pure Web Service. Listed below are all available endpoints, along with a short description.<br/>In order to use the Pure Web Service, you must enter an API key. These are generated in the Administrator tab of Pure, and issues with a given set of available endpoints... | [
"abeahmed2@gmail.com"
] | abeahmed2@gmail.com |
fe5cd719aeb4318becc6e6168757a6ea2f21449c | 44d1b566b7790e260d1e64246a31fd1919faed79 | /Vuelos.py | 611c4f07cceeed6ef57294e23ed5a3ed829ea77b | [] | no_license | wildaz/VuelaFacil | 841729851b3f120b96e752f730c67402d488f26a | bb90da54393a9ac658c3fcde71a5f4b6a463cc8c | refs/heads/master | 2023-08-05T12:24:05.173659 | 2021-09-09T01:33:51 | 2021-09-09T01:33:51 | 400,677,749 | 0 | 3 | null | 2021-09-09T01:33:52 | 2021-08-28T01:55:26 | null | UTF-8 | Python | false | false | 217 | py | class Reg_Vuelos:
Aviones=0
sillas=0
trayectos=""
def _init_(self,Aviones,sillas,trayectos):
self.Aviones=aviones
self.sillas=sillas
self.trayectos=trayectos
| [
"kajorey@gmail.com"
] | kajorey@gmail.com |
c9fc082fe4fbd76e705f0cb575bd33862df73465 | 686c9ccf7d15c1dbc1c5ea1ffd67bb8afc5a99ea | /tests/data/create_configs.py | 3fd3627b8cbcc2c11261afd36f22e208c9b134ea | [
"MIT"
] | permissive | RJaikanth/torch-cv | 90129db1ae3dcdab445bd3c7437bd41f83770792 | 8102aaae840b674389f09a01c5c45df559cb3819 | refs/heads/master | 2023-01-20T18:41:24.929046 | 2020-10-31T11:21:01 | 2020-11-02T14:14:16 | 297,047,627 | 1 | 0 | MIT | 2020-09-30T13:11:23 | 2020-09-20T10:01:05 | Python | UTF-8 | Python | false | false | 1,245 | py | import os
from .file_strings import *
default_dir = "/tmp/torch-cv-test/config"
os.makedirs(default_dir, exist_ok=True)
def create_empty_config():
dest = os.path.join(default_dir, "empty.yml")
with open(dest, "w") as f:
pass
def create_none_config():
dest = os.path.join(default_dir, "none.yml"... | [
"raghhuveerj97@gmail.com"
] | raghhuveerj97@gmail.com |
c73cbe77e12eb7d42f02c99be8e900a957f29c3a | d10ce6055ec577cea66447e436dfb8f34083c429 | /line_trace.py | cd9afa114c8fc99270d98475cf8bd330f7dcf687 | [] | no_license | dlwjdxo21/ev3_aircleaner | 2deaec6e47bd4073e352d35b032815c631949c52 | 11c0683a0fbc042bccbd18ad95bb32f0652d80b6 | refs/heads/master | 2020-09-02T19:57:53.048363 | 2019-11-02T07:15:52 | 2019-11-02T07:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | // line trace using ev3dev, python
| [
"gch0281@naver.com"
] | gch0281@naver.com |
5edebc4c6027c3117dc8ccb537693d29b68c04b9 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/EFT/ggH/Full2018/nAODv7_Full2018v7/plot.py | 568328f17254972378fbcc30b53eb168bb744218 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 16,841 | py | # plot configuration
# groupPlot = {}
#
# Groups of samples to improve the plots.
# If not defined, normal plots is used
#
groupPlot['top'] = {
'nameHR' : 'tW and t#bar{t}',
'isSignal' : 0,
'color': 400, # kYellow
'samples' : ['top']
... | [
"tomas.kello@cern.ch"
] | tomas.kello@cern.ch |
dc68438bc369293cbf262f10722059dbc20ee2e8 | 57094f0d09fd3e74eeb511e94400c3ec97051ad3 | /Quax_dev_archive/quax_misc/angular_momentum/tensor_approach/contracted/contracted_overlap.py | 1d41836be55f7685a172233f95c91a9581ffd5c8 | [] | no_license | adabbott/Research_Notes | cccba246e81065dc4a663703fe225fc1ebbf806b | 644394edff99dc6542e8ae6bd0ce8bcf158cff69 | refs/heads/master | 2023-05-12T20:26:58.938617 | 2021-06-02T17:15:35 | 2021-06-02T17:15:35 | 119,863,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,501 | py | import jax
import jax.numpy as np
import numpy as onp
from jax.config import config; config.update("jax_enable_x64", True)
np.set_printoptions(precision=10)
onp.set_printoptions(precision=10)
def double_factorial(n):
'''The double factorial function for small Python integer `n`.'''
return np.prod(np.arange(n, ... | [
"adabbott@uga.edu"
] | adabbott@uga.edu |
5e3db41925d6b128b1ecd55c0ce2009b26a47a22 | 7c735a6ea6012c7f8a454987b5fc040c6a244580 | /staff/views.py | 39a2ef30ddc18b0c029da8b1c4e6abfbfb4ed155 | [] | no_license | mbabikir4/blog-11 | 031bcd19c24112f8e27cbbdbc3dd2ee36913d926 | 03be666e772a3585a7d0b1856bebf8553c19da21 | refs/heads/master | 2022-11-30T05:36:24.303298 | 2020-08-13T19:04:17 | 2020-08-13T19:04:17 | 287,359,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py |
from django.shortcuts import render,redirect
from .forms import CreateUserForm,CreateBlog
from django.contrib import messages
from django.contrib.auth import authenticate,login,logout
from django.contrib.auth.decorators import login_required
# Create your views here.
login_required(login_url='login')
def staff(reques... | [
"mbabiker530@gmail.com"
] | mbabiker530@gmail.com |
450e45abb2e6f78121b9289dfc49ce668ece839a | 5fa293d0ef6f3bdc4791d869cf503b107cc3a5fb | /soap_client/urls.py | 5e70df6a51ac6d70d04e1a6e01da2fd63ec1b6aa | [
"MIT"
] | permissive | alldevic/nav_info | 0779ab116dd7718ac1d63fecfbc2d47dd8863c22 | 32681d1cd3ad43472c8f7fb49922094c4045111c | refs/heads/master | 2023-08-27T00:23:57.233994 | 2021-11-05T15:24:48 | 2021-11-05T15:24:48 | 278,404,502 | 0 | 0 | MIT | 2021-11-05T15:24:49 | 2020-07-09T15:37:41 | Python | UTF-8 | Python | false | false | 317 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from soap_client import views
router = DefaultRouter()
router.register('raw', views.RawViewSet, basename='raw')
router.register('data', views.DataViewSet, basename='data')
urlpatterns = [
path('', include(router.urls)),
]
| [
"belyynikolay@gmail.com"
] | belyynikolay@gmail.com |
e1e2acf9091c80c3e8265213248d8fb20def628c | 7ad9c3d06c74e65670636522f894edebd9586f86 | /gauge.py | 628f757c49fee321bcccd55e36d39674f5bd1b76 | [] | no_license | rishavb123/GeneralizedRiemannIntegral | 05a57863a59e5ca831c175391beeec889df024ed | ac8ab3ee36985d4dd91ed2bd6009a35d585397db | refs/heads/master | 2022-09-17T06:23:07.092861 | 2020-06-07T04:41:50 | 2020-06-07T04:41:50 | 257,092,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | import numpy as np
from intervals import R
class Gauge:
def __init__(self, func, interval, validate=True):
self.delta = func
self.interval = interval
if validate:
self.__validate__()
def __validate__(self):
for x in self.interval.discretize():
assert s... | [
"rishavb123@gmail.com"
] | rishavb123@gmail.com |
d8613587821bcdfec7eb5aa4ed92301b19e65ea2 | e9898a7428f318d6537affc515d86517c9e39800 | /shopping_paradise/users/urls.py | 455e9e38abbc800010351eb6cadab50eaf4316b8 | [] | no_license | mihaivalentistoica/shoping-paradise-sda | 2ba463f31857359fae8bba767b0c8a0917bc6bfd | 477aae6a78d7f8d1b5da697b08a1f77ca007934d | refs/heads/master | 2022-12-24T03:52:06.492464 | 2020-10-04T08:52:09 | 2020-10-04T08:52:09 | 298,762,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from django.urls import path
from . import views
urlpatterns = [
path('login/', views.UserLoginView.as_view(), name="user-login"),
path('logout/', views.UserLogoutViews.as_view(), name="user-logout"),
path('password_reset/', views.UserPasswordResetFormView.as_view(), name="user-password-reset"),
path... | [
"mihaivalentinstoica@gmail.com"
] | mihaivalentinstoica@gmail.com |
794b0f3fabf741ae7f69f0b347bca4f1e8e0e5ca | df7d65014edd57612adbb12a2c37b074ca0479e0 | /poo/instancias.py | 331002d9490d2713f562b069a79a7e2fcaa1a9da | [] | no_license | palomaYPR/OOP-and-Algorithms-with-Python | 94380e18f71edcaaa8813eb914098263f609eb4e | 90f83aa9f2262cce9971b1df092ff3eba4fc8ec3 | refs/heads/main | 2023-02-07T14:17:49.716211 | 2020-12-26T23:19:37 | 2020-12-26T23:19:37 | 323,775,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | class Coordenadas:
def __init__(self, x, y):
self.x = x
self.y = y
def distancia(self, otra_coordenada):
x_diff = (self.x - otra_coordenada.x)**2
y_diff = (self.y - otra_coordenada.y)**2
return (x_diff + y_diff)**0.5
if __name__ == '__main__':
coord_1 = Coordenada... | [
"yppr09@gmail.com"
] | yppr09@gmail.com |
31f063a4f2c10039d18c2b50fa5313f550fd0ea6 | 11964177956aa6d5d26f8838af794b33b7887bf3 | /Secret_Santa/wsgi.py | 1f6fd0559de7eb7453e1a41bf756c5cf0d9585a1 | [] | no_license | Tyler-Irving/Secret-Santa | fa134a27ca6803aa20591a778f2f00c7f480c778 | 49f026cb005fdf8d6b42b32501c4892f34fa0fe0 | refs/heads/master | 2020-09-14T18:02:09.871886 | 2019-11-21T15:51:35 | 2019-11-21T15:51:35 | 223,208,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for Secret_Santa project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"student@donation.local"
] | student@donation.local |
205b0401f53dfb46f0c7e497fb932518c4ceafd5 | dc3113b6247324e664860928763c2eaedec6ec7b | /djitter/djitter/settings.py | 7f022325ebb6a0ccc9e86520806e14a8c94a3252 | [] | no_license | adwanAK/django-djitter | 49da757e556a34661219ad7d6c23a07629da1db0 | 23f85c5cd0f176229b6b2af933d5c46605f37bda | refs/heads/master | 2020-04-01T14:59:37.403860 | 2018-10-16T16:15:12 | 2018-10-16T16:15:12 | 153,316,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | """
Django settings for djitter project.
Generated by 'django-admin startproject' using Django 2.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
#... | [
"adwan999@yahoo.com"
] | adwan999@yahoo.com |
53cfd776131f3422dda00ac67dccaa0ac17829ce | 4c8cd4fff6fb734b127b03275a13b45822cef1df | /src/top/views.py | c260314a79c830de595a3b70a8f4fc4a3dfcf134 | [] | no_license | hiro13255/onlineSlone | fdfcd6ffed88d5067eeed018fd3cbc4da619531c | 42dae344b8735a39c44b30c4b685c33333b45f68 | refs/heads/master | 2023-06-15T12:26:40.843206 | 2021-07-12T03:03:50 | 2021-07-12T03:03:50 | 363,617,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | import environ
import logging
from django.shortcuts import render
from django.http import HttpResponse
from django.core.mail import send_mail
logger = logging.getLogger(__name__)
env = environ.Env()
env.read_env('.env')
# Create your views here.
def index(request):
logger.info('Function call index')
return ... | [
"kirakira7573@gmail.com"
] | kirakira7573@gmail.com |
5f465d48674d60080950304420497ee045db7783 | 0aa972be2cf4a3c76d9e72d9f90eed5171de312c | /venv/bin/conch | b4375d25cdde38c95d4db6eff3acbe92a4c702c9 | [
"MIT"
] | permissive | MATTTYMA/chemist_crawler | 335784b2815061b328b23f0c5c307baa6eddbd33 | 28fdf1e93c38cddc5f8b16e7098a60e2a51b1a7a | refs/heads/master | 2021-10-26T10:24:15.793086 | 2019-04-12T02:16:00 | 2019-04-12T02:16:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | #!/Users/mattewma/Developer/Python/chemist_crawler/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==18.9.0','console_scripts','conch'
__requires__ = 'Twisted==18.9.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ''... | [
"31982122+ChineseGardenCat@users.noreply.github.com"
] | 31982122+ChineseGardenCat@users.noreply.github.com | |
2ac0d5a5ddce621330c25fccc3359641c3461d91 | fa42ae42e12948b17989d93c3d3c11ea3b520170 | /users/views.py | 9cae081f8f998126092232ccc251852aeb564209 | [] | no_license | jarookiee/Django_learning_log | b9f6f3e7da53a289f018c7af20c59c82bd4346da | a33d6fb1504263b74e4dc6b54d68a9df01869591 | refs/heads/master | 2023-08-10T16:12:34.061581 | 2021-03-14T15:17:02 | 2021-03-14T15:17:02 | 160,336,482 | 0 | 0 | null | 2021-09-22T19:47:53 | 2018-12-04T09:59:50 | Python | UTF-8 | Python | false | false | 1,120 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.forms import UserCreationForm
def logout_view(request):
"""Log the user out."""
logout(request)
return HttpR... | [
"liudong123456789@126.com"
] | liudong123456789@126.com |
705ff0311f1e83b1691af0fa9a0639bced211d37 | 6e365df9ff647336bb5a8b72aa4b4bc8748a74b3 | /week8/day5/CS231n-Python3-master/assignment1/cs231n/classifiers/k_nearest_neighbor.py | 4c83d90fc2c9448a8abba71788ea63f8b52649b2 | [] | no_license | DongIk-Jang/programmers_dev_course | 4cf03b926e556018956fb77e553ec9fb26b0f30d | 07a002c23853bac457ebb25ded908d17420fff6f | refs/heads/master | 2023-06-09T07:00:05.748284 | 2021-07-05T09:16:09 | 2021-07-05T09:16:09 | 359,708,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,422 | py | import numpy as np
class KNearestNeighbor(object):
""" a kNN classifier with L2 distance """
def __init__(self):
pass
def train(self, X, y):
"""
Train the classifier. For k-nearest neighbors this is just
memorizing the training data.
Inputs:
- X: A numpy... | [
"jdandy14@gmail.com"
] | jdandy14@gmail.com |
e4c57cda7681c361ce819236d5633e4490b6e4b7 | 86636d4fcf6eab140a0f44ef61d4d403b9d3efa1 | /P4/boards.py | 67faac8f05b1ba3946588593f3a1f36561bb7559 | [] | no_license | anshuln/CS-251 | 5d0349e03f6f06c393ce8a3015c73c739727247a | 7bd67c678388487db681ffa75396fd91471f7496 | refs/heads/master | 2020-03-25T00:50:28.233370 | 2018-08-11T10:22:04 | 2018-08-11T10:22:04 | 143,208,547 | 0 | 1 | null | 2018-08-13T18:09:14 | 2018-08-01T21:04:15 | Python | UTF-8 | Python | false | false | 347 | py | #! python3
listDict = []
file = open('students.txt', 'r')
# f __name__ == "__main__":
counter = 0
for line in file:
if counter == 0:
numStudents = int(line)
elif counter > 0 and counter <= numStudents:
[x, y] = line.split(" ")
listDict.append({int(x): int(y)})
else:
break
... | [
"yashkhem1@gmail.com"
] | yashkhem1@gmail.com |
b3953b62fa3db6523934640dd6efa14908a3bbea | c5744c2fda48ae6a79c155c641fe98021a0cb7f3 | /PP4E/System/setenv.py | a03d7c04233f64c0efbc11ad24b5bc1eaace0f37 | [] | no_license | skinkie/Scripts | e0fd3d3f767612ade111f28bc7af3e1b25fc2947 | 80a1ba71ddf9a0c5ff33866832cb5c42aca0c0b1 | refs/heads/master | 2021-05-31T16:57:21.100919 | 2016-05-23T09:58:59 | 2016-05-23T09:58:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | #!/usr/bin/env python
# eg. 3-3
import os
print('setenv...', end=' ')
print(os.environ['USER'])
os.environ['USER'] = 'Brian'
os.system('python echoenv.py')
os.environ['USER'] = 'Arthur'
os.system('python echoenv.py')
os.environ['USER'] = input('?')
print(os.popen('python3.5 echoenv.py').read()) | [
"death_finger@sina.com"
] | death_finger@sina.com |
fd7d21d67afccb60b4404408de84c65409f99ebc | cc66ac8f147a698cc8e4e435dd45e5129591a6ef | /improvedKNN.py | 5440c68edbfc4a9169d9585daffd34e6c735942e | [] | no_license | PiyushNarsikar27/Improved-KNN | b07352edfac5db2d2afc3bae80c68833b670fe51 | 7ed876077bacfd5b816e0bbe706e67c150a09dd1 | refs/heads/main | 2023-03-23T16:02:23.751966 | 2021-03-14T07:27:38 | 2021-03-14T07:27:38 | 347,569,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | def takeFirst(elem):
return elem[0]
def improved_knn_predictor(xtrain,xtest,ytrain,k,num_classes):
y_pred=[]
x=0 # x indicates how many elements are processed so far
for test_point in xtest:
i=0
distances=[]
dist=[]
for train_point in xtrain: # Creating a list of distances from each of the ot... | [
"noreply@github.com"
] | PiyushNarsikar27.noreply@github.com |
425f7a07c2c56758032421f3933a362bb9efea4a | 25276b0b8cb9fbecd3074e2d0928c4d8a913c023 | /papermario/diff_settings.py | 8c451ad9c1e364f5738b026efd8cf282a12d7acc | [] | no_license | ethteck/PaperMarioDecompilation | 25447120625852e4e1da572f6ec80e7c8e8251f0 | d62e76cef49db24b0a211da6f09287ea2093eb7a | refs/heads/master | 2022-12-06T17:32:22.007613 | 2020-08-15T06:28:22 | 2020-08-15T06:28:22 | 258,404,731 | 11 | 8 | null | 2020-08-15T06:25:44 | 2020-04-24T04:24:08 | Assembly | UTF-8 | Python | false | false | 217 | py | #!/usr/bin/env python3
def apply(config, args):
config['baseimg'] = '../baserom.z64'
config['myimg'] = 'papermario.z64'
config['mapfile'] = 'build/papermario.map'
config['source_directories'] = ['.']
| [
"ethteck@gmail.com"
] | ethteck@gmail.com |
a5eec233d2b08c4926a8a84437e4236890b3e12a | 2e8272bad04f2fb1d5c7dbafbcceca0afa02d53a | /parser.py | cc6652816c0742a5d3b9611d780271b2425ddff4 | [] | no_license | lowweb/ostiePY | e138642efe8c7c5544f9588feaeee8481f701c99 | fe7c72c820e293c7fa0966804af86c11be22979f | refs/heads/master | 2021-02-06T14:08:41.997316 | 2020-02-29T06:52:17 | 2020-02-29T06:52:17 | 243,919,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | import csv
from insert_music import insert_music
array_music = []
unic_nconst = set()
with open('data/name.basics.tsv', newline='') as tsvfile:
reader = csv.DictReader(tsvfile, dialect='excel-tab')
countrow = 0
for row in reader:
prof = row['primaryProfession'].strip(" ").split(",")
if 'com... | [
"looper@MacBook-Pro-looper.local"
] | looper@MacBook-Pro-looper.local |
d1be16162f4ac7c7277b10428e050b2deff850ea | ef18d99eff01a708dddfc2cbf77f68bb1d8aa889 | /python/415.add-strings.py | 0d3f611c808e58d327f44045f8c4f9a31bc6f054 | [
"MIT"
] | permissive | fengbaoheng/leetcode | 53d5b6f92f7958d551e6297f77c4edfc042a4d58 | e37535a06b0b4cb23de9a2cfa357eb689b1c06fb | refs/heads/master | 2023-07-23T11:33:42.938862 | 2023-07-08T08:43:46 | 2023-07-08T08:43:46 | 131,551,048 | 1 | 0 | MIT | 2022-11-16T02:53:49 | 2018-04-30T03:13:55 | Java | UTF-8 | Python | false | false | 1,582 | py | #
# @lc app=leetcode.cn id=415 lang=python3
#
# [415] ๅญ็ฌฆไธฒ็ธๅ
#
class Solution:
# ๅญ็ฌฆไธฒๆๅไธบ้พ่กจๆๆฐ็ป,้ไฝ็ธๅ
# ็ดๆฅ่ฝฌๆๆฐๅญไผ่ถ
ๅบๆๅคงๆดๆฐ่ๅด
def addStrings(self, num1: str, num2: str) -> str:
short_num, long_num = (num1, num2) if len(num1) < len(num2) else (num2, num1)
short_length = len(short_num)
long_leng... | [
"344092466@qq.com"
] | 344092466@qq.com |
15c844d50da150ed209c04470a9eed2697102f41 | b42aeea5789a52b4ac00bafa37f94da3824a8664 | /snomed_utils.py | 368fdf45db88e0e5fd717f106cc8b25977431d74 | [] | no_license | MUSC-TBIC/lexicon-tools | 59b7be22b2f0635f52955068416846d801a36924 | 58686010b67e5cfad9a38c275bce56a4f85d0997 | refs/heads/stable | 2023-06-22T13:01:22.829045 | 2023-06-15T12:57:43 | 2023-06-15T12:59:34 | 203,440,672 | 3 | 0 | null | 2021-06-23T04:01:31 | 2019-08-20T19:24:28 | Python | UTF-8 | Python | false | false | 2,668 | py |
import csv
from tqdm import tqdm
import concept_mapper_utils as cm
import umls_utils as uu
def parse_snomedct_core( filename ):
concepts = {}
with open( filename , 'r' ) as fp:
snomedct_csv = csv.reader( fp , delimiter = '|' )
for row in snomedct_csv:
## SNOMED_CONCEPT_STATUS
... | [
"heiderp@musc.edu"
] | heiderp@musc.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.