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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1769b070f214d85af5b550bc822d0213fd67d367 | c224506bea30d7d22f9b09fdee6a1e180d2bbe7f | /ep1to50/17.py | b2175dd8d8701284d7d4f2c3e29b091ec1be01c1 | [] | no_license | VimalMinsariya/euler-project | 040d4e4d752435b6942b9b52f52dd4e1414563b1 | f88ff159f41e66f5e9df06968965b51b9cf6ee8a | refs/heads/master | 2023-04-08T20:11:30.852471 | 2021-04-18T13:11:34 | 2021-04-18T13:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | import time
start=time.time()
words1=['','one','two','three','four','five','six','seven','eight','nine', \
'ten','eleven','twelve','thirteen','fourteen','fifteen','sixteen','seventeen','eighteen','nineteen']
words2=['twenty','thirty','forty','fifty','sixty','seventy','eighty','ninety']
cnt_words1 = [len(s) for s in w... | [
"p1yslee@gmail.com"
] | p1yslee@gmail.com |
47a40b51c072f147b0fc417499d22a18299be33b | ad218bf32cd8b7267e1ca231a2e439c84bccbb76 | /blog/migrations/0001_initial.py | 347f26892107a55e295b81963fa14e78dc212548 | [] | no_license | jy1dyz/my-first-blog | 09829440797baa5e6dacfc2c8c93e8f52649df58 | f45ada57356f8b9078420daa3da94960a78f4e1c | refs/heads/master | 2020-04-06T19:32:54.207734 | 2018-11-15T16:26:41 | 2018-11-15T16:26:41 | 157,709,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.1.3 on 2018-11-15 16:00
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"jyldyz.kgz@gmail.com"
] | jyldyz.kgz@gmail.com |
1885e133317728b591d8e215221e805903af13f0 | 867b5d6efc6761e97412613c19d41c4fbe927238 | /demos/callLineEdit.py | b58032c82c1b8cca29274ff8e02ab12d8525c398 | [] | no_license | LouisLu78/pyqt5 | 516bdcd35a6678b1add300a4a14854ef61165a08 | 10e0ab9b186c88131180dba19ded483431c6966f | refs/heads/master | 2020-09-26T13:55:54.350566 | 2020-04-23T14:33:49 | 2020-04-23T14:33:49 | 226,268,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # -*- coding: utf-8 -*-
# author: Guangqiang Lu time:2019/12/2
#The codes below are copied from textbook.
import sys
from PyQt5.QtWidgets import QDialog, QApplication
from demos.demoLineEdit import *
class MyForm(QDialog):
def __init__(self):
super().__init__()
self.ui = Ui_Dialog()
self.... | [
"lewgq@yahoo.com"
] | lewgq@yahoo.com |
bd5bc132956fb3e652a0857f154ef9365db31211 | 161249cba88aa81fbf73d5ad56047370b5aa8ecd | /VDSite/VDSite/urls.py | 3da90c8fa1f393ee0e700ef9befd4253a398a4ef | [] | no_license | saberkid/VirusDetectionWebsite | 3a8862203ea355364dafc153d0b34e898eb49b2f | 5d6793c8a5fb82bd624483823b09c0ed373718d6 | refs/heads/master | 2020-05-02T22:33:55.452195 | 2019-04-08T03:26:55 | 2019-04-08T03:26:55 | 178,255,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | """VDSite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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 ... | [
"450330386@qq.com"
] | 450330386@qq.com |
9488cba50e6d65e0e46f7b2c21c97a1435676f0a | 7d663ed33b199c8d0491e9e6ac90b52db5b9ee80 | /pypop/metrics/multiplot.py | 49e60bac6bd0f4befefe484feb1c621838df2c96 | [
"BSD-3-Clause-Clear"
] | permissive | numericalalgorithmsgroup/pypop | 69a4e65c04e0aae9c41499455ab714e5151af4af | 830913dd1ad4c7e854f408c991f4171bdc69b18b | refs/heads/develop | 2022-02-19T03:43:05.452707 | 2022-02-16T11:11:07 | 2022-02-16T11:11:07 | 215,820,595 | 12 | 6 | NOASSERTION | 2020-02-21T09:50:00 | 2019-10-17T15:02:48 | Jupyter Notebook | UTF-8 | Python | false | false | 4,496 | py | #!/usr/bin/env python3
# SPDX-License-Identifier: BSD-3-Clause-Clear
# Copyright (c) 2019, The Numerical Algorithms Group, Ltd. All rights reserved.
"""Shared plot routines for multiple Metric Sets
"""
import numpy
import pandas
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.ticker as mtic... | [
"phil.tooley@nag.co.uk"
] | phil.tooley@nag.co.uk |
8e6086f8659c6e50223d4ade9b087dd525b2aabc | 6294e1613c812612d4463da83cfc24d8c213d3f6 | /arjuna/interact/gui/dispatcher/driver/driver_commands.py | 449247a61e551959f2f3511cbf38eef4b541f5b8 | [
"Apache-2.0"
] | permissive | prabhudatta22/arjuna | 52747bc2d9600f1cd04457b29c919221464a7b88 | 37a9afe3f8f2b2e82da854c3e497a67a77c6749f | refs/heads/master | 2022-12-06T04:10:21.346896 | 2020-08-31T06:03:13 | 2020-08-31T06:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,897 | py | # This file is a part of Arjuna
# Copyright 2015-2020 Rahul Verma
# Website: www.RahulVerma.net
# 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... | [
"rahulverma81@gmail.com"
] | rahulverma81@gmail.com |
0b1d56f741ed9007c2648289bff4ec52cd93cfe2 | 0fdfa47c295242dce6c29ed3c2ed0f809f3c7bd1 | /custom_components/jablotron100/alarm_control_panel.py | 80fccaa8c7aca913e256a558c0a1ee7079d01286 | [
"MIT"
] | permissive | Fr33GitHub/home-assistant-jablotron100 | 8db2124593a507f5a59cc0f54e095d45d2aabb06 | 81e2121af8bbe1d90cbb01418eac64d8eb12056c | refs/heads/master | 2023-08-30T13:00:54.875615 | 2021-10-29T18:29:30 | 2021-10-29T18:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,944 | py | from __future__ import annotations
from homeassistant import config_entries, core
from homeassistant.const import (
STATE_ALARM_DISARMED,
STATE_ALARM_ARMED_AWAY,
STATE_ALARM_ARMED_NIGHT,
STATE_ALARM_ARMING,
)
from homeassistant.components.alarm_control_panel import (
AlarmControlPanelEntity,
FORMAT_NUMBER,
FORMA... | [
"kukulich@kukulich.cz"
] | kukulich@kukulich.cz |
07fb742a3154e4c2d48b95cdd0de4b5caa6e4ef6 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp221_6000.py | c3d96f9d609326fe4bc4a6ffcbb094569ea52cb6 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,781 | py | ITEM: TIMESTEP
6000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.7251793543927784e+02 2.1971793543932216e+02
-1.7251793543927784e+02 2.1971793543932216e+02
-1.7251793543927784e+02 2.1971793543932216e+02
ITEM: ATOMS id type xs ys zs
1781 1 0.166858 0.0483895 0.47982
2019 1 0.667454 0.0408147 0.327508
1402 1 0... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
931705617b37f9fde1731e2aa3f2132f56f66bde | 81ba6cce0d3f278fa0ad1afe2d2eb20590bf4a47 | /transection rolback/Transaction mongoss/transaction/transaction/asgi.py | 2da11fc42a50e41e5e60b684d46242f27352db10 | [] | no_license | abhi-blackbird/doctor-slot-booking | 7f5e3821e78ea0a2150581ce760d6b44d14dc730 | 031301693104c5788295997b8ca15d034b8c690b | refs/heads/master | 2023-06-18T06:38:58.161359 | 2021-07-16T09:36:33 | 2021-07-16T09:36:33 | 386,582,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for transaction project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"abhisheksrivastav120@gmail.com"
] | abhisheksrivastav120@gmail.com |
417e24a7d0cdae7a8007e6887415eeadb3003e8a | 59fcd60a5ad79eb9bd94cf3fe0561a1b7554254a | /shaowysocket/tests/test_socket.py | 39ecffc54c3f1e4c85d9c822816a75e013258c66 | [
"Apache-2.0"
] | permissive | eternal-flame-AD/shadowysocket | 85d60eb08bc83c9b65167dad6c4ab9900970ccf9 | 8741e40d7f6099f5764a19c13df7d76fdc06b442 | refs/heads/master | 2020-03-14T05:23:43.291969 | 2018-04-29T05:20:38 | 2018-04-29T05:20:38 | 131,463,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | import os
import sys
import threading
import socket
import time
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, parentdir)
import shadowysocket
class echoserver():
def __init__(self):
self.conn = socket.socket()
self.conn.bind(("127.0.0.1", 12300))
... | [
"eternal_flame-AD@protonmail.com"
] | eternal_flame-AD@protonmail.com |
e2d41343f27f05e6c7fa1a08f1fed39de9497bdc | 8b011dafcd028189e722cc37bb097b42130cfc07 | /Mundo 02/Ex062.py | b6b10bcfec828d2c3be037aa98a23fc95ffa01c1 | [] | no_license | barreto-jpedro/Python-course-exercises | be424056518837712b4ca39f3afa4763b65cf8a7 | 91ac3f36d90deafac3a6eeecee47b4710a6d7d0c | refs/heads/master | 2023-09-04T04:36:37.747689 | 2021-10-19T22:48:57 | 2021-10-19T22:48:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | primeiro_termo = float(input('Digite o primeiro termo da sua PA: '))
razao = float(input('Digite a razão da sua PA: '))
n_de_termos = int(input(('Quantos termos você quer ver? ')))
while n_de_termos != 0:
n = 0
while n != n_de_termos:
print(f'{primeiro_termo} -> ', end='')
primeiro_termo += ra... | [
"joaopedro.bcalmeida@gmail.com"
] | joaopedro.bcalmeida@gmail.com |
dac5c92e57f1884e10166fa2daf3927839cbebba | 9a17f548750dfccfd440875a5ebf175cce0c1ccf | /Labs/01/imgLoad.py | 4eb9242320cd8517e260889f5b881e0c573af87e | [] | no_license | rmh2805/introToAIHW | 5e35cc8ceb7a61d67ace4c706636f6be5fc010f5 | 4bcbd36069c825c92deab33c9e3dbedcf9a876d1 | refs/heads/master | 2020-12-23T07:29:14.042230 | 2020-04-25T13:15:44 | 2020-04-25T13:15:44 | 237,084,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from PIL import Image
im = Image.open("Inputs/mpTerrain.png")
print(im)
width, height = im.size
pix = im.load()
for row in range(0, height):
for col in range(0, width):
if pix[col, row][3] != 255:
print('(' + str(row) + ', ' + str(col) + ')')
| [
"rmh2805@g.rit.edu"
] | rmh2805@g.rit.edu |
5fbe531f32aca08959a6a0c0eb117e9ef7a4373a | 4a3758cee6d15d9b914705959ff5880f55b81d3e | /newsApp/migrations/0015_topn_hindi_video.py | 50920fa0d112234679c494f1d7a29460b40f1c9f | [] | no_license | vineetl/newsup | 779ea5c60706564f4492794846730e1e13e6db83 | d800faa68e0c51de33e5498ff404340864e7d115 | refs/heads/master | 2021-01-18T16:14:15.094708 | 2017-03-30T18:06:54 | 2017-03-30T18:06:54 | 86,730,638 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('newsApp', '0014_hindi_business_video_hindi_entertainment_video_hindi_top_stories_video'),
]
operations = [
migrations.Create... | [
"vineetloveme@gmail.com"
] | vineetloveme@gmail.com |
0de6decc8413950738fadc0bdf9a8a8f56266a14 | 836d439b7d39894a2d0fda22cdd6e098c328fc49 | /AtomicPhysics/convertcmtoev.py | 699bdab8464fa57e14ff3079cd0ad981e8327741 | [] | no_license | cjf0019/Physics | 5bfc5a13880ef68da7cb20b353a25a935af161c8 | 8d455fdbe4875d8d59a727a66ba05549a2f78360 | refs/heads/master | 2023-02-25T01:57:50.328487 | 2021-02-01T00:24:28 | 2021-02-01T00:24:28 | 120,964,831 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | file = open('energiestoconvert')
convfile = open('energylevelsconv','w')
convert = 1.2398*10**-4
for i in file:
print(i.split()[-1])
num = round(float(i.split()[-1])*convert,3)
print(num)
convfile.write(str(num)+'\n')
convfile.close()
file.close()
| [
"noreply@github.com"
] | cjf0019.noreply@github.com |
8605a7a4b7b988126d769356c2b3ee9a2da0e7a4 | b67bcd341f942538d4d55b9946bcace0eb824d51 | /Parser.py | 671992f73d9d8a5eadaf16cce3cd4ecbe2661b18 | [] | no_license | HaraldurShoshan/Fmal-Compiler_python | 8fcfea44d6ba932b92e8aa3d9097d7c275c98fc7 | 4c1f259be7f77bc056cde1063a9a8829f1617f36 | refs/heads/master | 2021-01-22T04:33:37.533334 | 2017-02-11T16:32:19 | 2017-02-11T16:32:19 | 81,555,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | from Lexer import Lexer
import re
from Token import *
class Parser(object):
def __init__(self, myLexer):
self.Lexer = myLexer
self.nextT = ""
self.opList = []
def parse(self):
self.nextT = self.lex()
self.statements()
def statements(self):
if(se... | [
"haraldurshoshan@gmail.com"
] | haraldurshoshan@gmail.com |
dcf71ee1082f20b11c686ad9ed9d87c549416a0d | adbbeeae023ffd1f4932210efd9bd0e1e326e501 | /flair/datasets.py | 178937afd07955c6b1bf78cc94045bea054311fa | [
"MIT"
] | permissive | sidney1994/CLNER | 504747882587d030532e03c1d15bffae8552c84b | 7340566c3f10d8b532f357d1d3fcfad6348b02fa | refs/heads/main | 2023-06-28T20:30:09.914547 | 2021-08-03T09:40:22 | 2021-08-03T09:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185,662 | py | import os, csv
import json
from abc import abstractmethod
from torch.utils.data import Dataset, random_split
from typing import List, Dict, Union
import re
import logging
from pathlib import Path
import torch.utils.data.dataloader
from torch.utils.data.dataset import Subset, ConcatDataset
import flair
from flair.data... | [
"wangxy1@shanghaitech.edu.cn"
] | wangxy1@shanghaitech.edu.cn |
1be1c7204f14485d21ef5d7127501591e9648bad | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_epg_to_contract.py | 45be2dd127a031e62cb74fd7e45089bff716e049 | [
"MIT",
"GPL-3.0-only"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 9,989 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | [
"sifang@cisco.com"
] | sifang@cisco.com |
349c60eae87294e77348f7473f77b11fd2ecbe3c | da5849cc6ab950a716131fb8c2bee2267e627463 | /python/rabbitmq_test/ack_durability/worker.py | e383df6f6907c4ca95950931823193bccc3183bd | [] | no_license | leisheyoufu/study_exercise | 5e3beba7763f2dfafa426932e21f110df1fd150e | db58097f4b542aea894b11feae31fb26006d5ebc | refs/heads/master | 2023-08-16T21:29:26.967795 | 2023-08-11T03:09:31 | 2023-08-11T03:09:31 | 13,537,939 | 3 | 1 | null | 2023-09-05T21:59:21 | 2013-10-13T11:13:29 | Jupyter Notebook | UTF-8 | Python | false | false | 618 | py | #!/usr/bin/env python
import pika
import time
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='localhost'))
channel = connection.channel()
channel.queue_declare(queue='task_queue', durable=True)
print ' [*] Waiting for messages. To exit press CTRL+C'
def callback(ch, method, propertie... | [
"clscu@live.cn"
] | clscu@live.cn |
1df27376faba642447409fd88961131825bcc07b | 82d8189980a41b4b2afcb60f7edc966815e2763e | /VKTS_Exporter/Blender/io_scene_vkts/export_vkts.py | 5e135c21cc893d4bcc10f10c04aee795de888541 | [] | no_license | Nuos/Vulkan | e6b1c2492d32ab14d0135779e6dcd64c1b3a6068 | ec8e06626e54372fc928ea2c2b70ec01f768c33a | refs/heads/master | 2021-01-10T23:29:12.075053 | 2016-09-30T14:25:11 | 2016-09-30T14:25:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77,913 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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, or (at your option) any later version.
#
# This program is distrib... | [
"norbert@nopper.tv"
] | norbert@nopper.tv |
4f0f71f80bd3b85e40768be8b963c87198ddee0f | 2ee0aa5f5819de0b4e9d173505c769b3c2ab0483 | /app.py | 2bbc469162737f55b13669622f9b26429a4573e2 | [] | no_license | ArthurTriis1/puzzle8-resolver-flask | 1462d79570dc491c796a836257f29313c664d474 | 51292cdf1513e23fa7c9668dac996906c7a3c6bc | refs/heads/master | 2023-04-25T16:13:29.327978 | 2020-07-01T16:00:48 | 2020-07-01T16:00:48 | 276,421,942 | 0 | 0 | null | 2021-05-06T20:16:32 | 2020-07-01T16:00:15 | Python | UTF-8 | Python | false | false | 572 | py | import os
from flask import Flask, jsonify, request
from flask_cors import CORS
from Puzzle8Resolver import puzzle8Resolver
from Puzzle8 import Puzzle8
app = Flask(__name__)
cors = CORS(app, resource={r"/*":{"origins": "*"}})
@app.route("/")
def index():
initialPuzzle = request.args.get("puzzle")
puzzle = Pu... | [
"arthurfelandrade@gmail.com"
] | arthurfelandrade@gmail.com |
9bc3b610843612d19d76e61bd47db7d4bfb9af9d | 08b74293c409086681eda77310f61831552478f1 | /instafilter/model.py | 8861ab8fc61abd65f2855c66af97c9cde85038f8 | [] | no_license | jiaxinwang/instafilter | d895928a3c311edf8ce14f49e716334842a51acf | cdc84b1b1055fd3d8b5ba81db69f9abeef5346e7 | refs/heads/master | 2023-07-21T19:57:38.976494 | 2021-09-06T14:17:42 | 2021-09-06T14:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | import torch
from torch import nn
class ColorNet(nn.Module):
def __init__(self):
super().__init__()
self.fc1 = nn.Linear(5, 25)
self.fc2 = nn.Linear(25, 25)
self.fc3 = nn.Linear(25, 25)
self.fc4 = nn.Linear(25, 5)
def forward(self, x):
x = torch.tanh(self.fc1(... | [
"travis.hoppe@gmail.com"
] | travis.hoppe@gmail.com |
911813ce3798ec2e0ae0f732d60f5e9b072439ab | 7d3a7803758bf722dcfefa8d2ae12695ca06ab76 | /meta_rl_tools/envs/pybullet_locomotors/gym_locomotion_envs.py | 52e3cad3135751859d1338e4e42a72e5e5a7efc3 | [] | no_license | rlsim2realarchitecture/rlsim2realarchitecture | 32cbfbc26a69fc458198a7fdd1d2844bff05a897 | 1c39b8b9f1167001f2bf4890f7e263ccb766fcdb | refs/heads/master | 2020-06-17T00:57:24.121185 | 2019-07-09T10:07:07 | 2019-07-09T10:07:07 | 195,749,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,053 | py | from .scene_stadium import SinglePlayerStadiumScene
from .env_bases import MJCFBaseBulletEnv
import numpy as np
import pybullet
from .robot_locomotors import Hopper, Walker2D, HalfCheetah, Ant, Humanoid, HumanoidFlagrun, HumanoidFlagrunHarder
class WalkerBaseBulletEnv(MJCFBaseBulletEnv):
def __init__(self, robot,... | [
"52648821+rlsim2realarchitecture@users.noreply.github.com"
] | 52648821+rlsim2realarchitecture@users.noreply.github.com |
9b48c9385f3523743bd3f869ee21796c098b6f19 | 728871b962f2a5ec8d8ec7d5b607def074fb8864 | /W261/HW13-Questions/PageRank.py | e2a57722c38f075390050316f7fe32acfb01088f | [] | no_license | leiyang-mids/MIDS | 0191ffbaf9f7f6ec0e77522241c3e76d012850f1 | 918b0d8afc395840626eb31c451ad6c4b2f3bc39 | refs/heads/master | 2020-05-25T15:46:56.480467 | 2019-03-28T16:16:17 | 2019-03-28T16:16:17 | 35,463,263 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from time import time
from datetime import datetime
def initialize(line):
# parse line
nid, adj = line.strip().split('\t', 1)
exec 'adj = %s' %adj
# initialize node struct
node = {'a':adj.keys(), 'p':0}
rankMass = 1.0/len(adj)
# emit pageRank mass and node
return [(m, rankMass) for m in... | [
"ynglei@gmail.com"
] | ynglei@gmail.com |
6fba3e2f19852a48949e376eb639e1e68a6b4b9b | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/aio/operations/_route_tables_operations.py | 49df42e16d5c87c760e0e1d5c64e87e8bdf8319f | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 29,731 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
9cf7ef40361954de91c7ad1e18c99f33388da59f | e9ddc7ff4b5705c0c2fc363fd6fbd03b7187d376 | /anytask/tasks/migrations/0028_auto__add_field_task_contest_integrated__add_field_task_rb_integrated_.py | 6a7aa556b52b8902ec3c52cc199003309dc1844f | [
"MIT"
] | permissive | dimmo/anytask | 513f42ba67dd4728f2bd0d4b08159da39e70afce | e7a42bcbe117ccafc4db33ff3eeb153cb25e4693 | refs/heads/master | 2021-06-28T00:10:30.787965 | 2019-03-26T06:02:23 | 2019-03-26T06:02:23 | 178,003,295 | 0 | 1 | MIT | 2019-03-27T13:45:50 | 2019-03-27T13:45:50 | null | UTF-8 | Python | false | false | 19,390 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Task.contest_integrated'
db.add_column('tasks_task', 'con... | [
"makhalin@yandex-team.ru"
] | makhalin@yandex-team.ru |
0da8d7f77d7c59a49e96cdee6a458cdba67f2234 | 40ca9c6939be6fd54c0ef33114b7b6f5b1ec69ac | /Projects/86Hexapod/scratch_command_handlers.py | 0da23dbca29073739e452b0cce294e7c114bf456 | [] | no_license | radu7/86Scratch | b9a7422d5584d30cf664ef78a21e96ce4eb09b4e | 5d12deed94de27489fd98154a1b58ec98613626c | refs/heads/master | 2020-07-11T17:34:50.787950 | 2018-10-15T10:28:06 | 2018-10-15T10:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,153 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 25 13:17:15 2013
@author: Alan Yorinks
Copyright (c) 2013-14 Alan Yorinks All right reserved.
@co-author: Sjoerd Dirk Meijer, fromScratchEd.nl (language support)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser ... | [
"robotics@dmp.com.tw"
] | robotics@dmp.com.tw |
733f42f5fe14a8f33b8397e3fc0678d423aa60c3 | f1987300725db43bfda84b8b2849c49ae3b1c900 | /try_ut/__init__.py | 0a6af5e4cc830799f12a58fac3dece16e38b63ea | [] | no_license | 1012378819/hz | 5f80283d825263766d124e0c1bc523d579abda74 | 46dece6f03001f6ee0776f7e6b55156e43e49a7e | refs/heads/master | 2021-05-23T00:43:40.881745 | 2020-04-06T14:07:08 | 2020-04-06T14:07:08 | 253,159,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | #author:lup
#-*-coding:utf-8-*- | [
"pei.lu@kingstarfintech.com"
] | pei.lu@kingstarfintech.com |
abbe4d307e95c88b0c158b90f6938b955a4f29bd | 081783216592962d59cb0d7d9831785762bf510f | /data_mining_toolbox/plot_helper.py | cc83e7f1d9e87c70e16e7ae4e27a1fdbc463f81c | [] | no_license | AnchoretY/DGA_Detection | 1b49960e4933de6f2ffb7aab420b8d39c24429ce | 806fbac5e4b0d02f965626a54c4fce3918f8e95b | refs/heads/master | 2021-04-19T15:31:00.259188 | 2020-09-21T10:40:42 | 2020-09-21T10:40:42 | 249,616,611 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | import numpy as np
import matplotlib.pyplot as plt
def plot_curve(x,y,label,title,xlabel,ylabel,figsize=(8,6),ylim=None,\
grid=True,title_size=20,xylabel_size=15,legend_size=12,save_name=""):
"""
画折线图
Parameters:
----------
x: 横坐标值,两种可选形式,:
optional 画单条折线横坐标... | [
"752083104@qq.com"
] | 752083104@qq.com |
8bea891a5c78ecff0f68c14f6142e4854999f627 | bfbb159e934000128ddb18fa995f139404822914 | /GIC_LK_Scrape/settings.py | c1a9984f079497795ec38ab0025667dc441ed1f4 | [] | no_license | ErangaD/CS4642-IR-GOV_ORG_INFO_Search | 9ca8cf28a31121e5c02db22e83d6f394a15ef649 | 6353d69e871d277ceb3aa4e296544e6758b1b6ae | refs/heads/master | 2020-03-20T06:33:23.632673 | 2018-08-23T17:12:46 | 2018-08-23T17:12:46 | 137,252,472 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | # -*- coding: utf-8 -*-
# Scrapy settings for GIC_LK_Scrape project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest... | [
"erangadulshan.14@cse.mrt.ac.lk"
] | erangadulshan.14@cse.mrt.ac.lk |
4f872c0b06702838fd0288d6dcc363e5aa3b0c8a | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/4c735f24ea954a5ced87bd0bd1573fa3eb914c18-<save_inference_model>-fix.py | f762eaaca815726528bd1b1c9533f60f924fc3cf | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py |
def save_inference_model(self, executor, dirname, feeded_var_names, target_vars, main_program=None, export_for_deployment=True):
'\n Prune the given `main_program` to build a new program especially for inference,\n and then save it and all related parameters to given `dirname` by the `executor`.\n ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
6e17c845bbeab45235e1a90d35330690f28f1ec0 | d84506ed7b2d35edf4850b11f86a77b91fae8c95 | /Machine_Learning/RL/Grid_World/gridworld.py | d6fb9f0940cc0fba733568cfdd88f523e92c948c | [] | no_license | li2ui2/Python_Personal_DEMO | b5a5cfd0523596f4553fc065e1e71bdefb8b3580 | 57ce8c2d4e4636e774a9acf138ca5c77aa018cd4 | refs/heads/master | 2022-04-22T05:50:08.022777 | 2020-04-24T13:51:57 | 2020-04-24T13:51:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,515 | py | from io import StringIO
import numpy as np
import sys
from gym.envs.toy_text import discrete
UP = 0
RIGHT = 1
DOWN = 2
LEFT = 3
class GridworldEnv(discrete.DiscreteEnv):
"""
Grid World environment from Sutton's Reinforcement Learning book chapter 4.
You are an agent on an MxN grid and your goal is to re... | [
"21824087@zju.edu.cn"
] | 21824087@zju.edu.cn |
a48cc5f99932ad1cb65d9cf20b449ded9b64ec57 | 12972f4d9e7de2c38e79ae911f2e7b125965cac9 | /virtual/lib/python3.6/site-packages/setuptools/_vendor/six.py | f8340b1e3743bbbdaf6b43684502ae46bda8f54b | [
"MIT"
] | permissive | Michellemukami/pitch | b33d0de81cc2a0dfe70ddc1e91affc88af63ff2b | aebb7736d18766343a5a295de0782aa175245c35 | refs/heads/master | 2022-10-22T03:55:33.364628 | 2019-08-07T10:15:10 | 2019-08-07T10:15:10 | 200,673,234 | 0 | 0 | null | 2022-09-16T18:07:53 | 2019-08-05T14:38:26 | Python | UTF-8 | Python | false | false | 30,094 | py | """Utilities for writing code that runs on Python 2 and 3"""
# Copyright (c) 2010-2015 Benjamin Peterson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including with... | [
"you@example.com"
] | you@example.com |
a4f689fe36c7a68e9b2bc43b0b59eaf957f6aedc | aad6b08ee56c2760b207d562f16be0a5bb8e3e2a | /tags/Pukapuka1.0/WebKitTools/Scripts/modules/buildbot.py | 4478429a5d2940b52818177df7cc7c2bedb7a1e3 | [] | no_license | Chengjian-Tang/owb-mirror | 5ffd127685d06f2c8e00832c63cd235bec63f753 | b48392a07a2f760bfc273d8d8b80e8d3f43b6b55 | refs/heads/master | 2021-05-27T02:09:03.654458 | 2010-06-23T11:10:12 | 2010-06-23T11:10:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,920 | py | # Copyright (c) 2009, Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and t... | [
"mbensi@a3cd4a6d-042f-0410-9b26-d8d12826d3fb"
] | mbensi@a3cd4a6d-042f-0410-9b26-d8d12826d3fb |
2fe555b6af3c3d831513a8ffda964277ea934d81 | 474484b3b7c5a5ebd11166d8d948871cedd4eff6 | /upload_app/views.py | 739ab8a84871228872b3ea4a2def6db62136892c | [] | no_license | GalvinCn/fileupload1 | fc481558dabb67e3469af27f2cbf4106bfb060dc | 3f1a45468c65ce1f3c62cfd37bfebc6e6dd2810a | refs/heads/master | 2020-03-09T00:07:58.506592 | 2018-04-06T03:52:07 | 2018-04-06T03:52:07 | 128,480,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | from django.http import HttpResponse
from django.shortcuts import render
from upload_app.forms import FileUploadForm
from upload_app.models import FileSimpleModel
def upload_file(request):
"""
文件接收 view
:param request: 请求
:return:
"""
if request.method == 'POST':
my_form = FileUploadFor... | [
"12732801@qq.com"
] | 12732801@qq.com |
80b3def3345e608e8f51501194c5d23249ed50dc | 634fb5fe10e8f944da44ab31896acc8471ec5f18 | /hq_env/bin/sphinx-autogen | 42f0972c1ff3e67f0b39e10ebd4c8b542116b016 | [] | no_license | dimagi/commcarehq-venv | 277d0b6fada24f2edd54f74850267201153412a7 | 2c52e3fb0f974cae5c5feaea1d5de851fe530c80 | refs/heads/master | 2021-01-18T14:05:47.931306 | 2015-07-20T10:10:41 | 2015-07-20T10:10:41 | 11,513,855 | 1 | 1 | null | 2015-07-20T10:10:41 | 2013-07-18T21:09:22 | Python | UTF-8 | Python | false | false | 331 | #!/home/travis/virtualenv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Sphinx==1.2b1','console_scripts','sphinx-autogen'
__requires__ = 'Sphinx==1.2b1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('Sphinx==1.2b1', 'console_scripts', 'sphinx-autogen... | [
"droberts@dimagi.com"
] | droberts@dimagi.com | |
5b70922e82eeaae4530fd8c27decec2bffca6f9e | e538e170f1d302a0b1b84e4cdc66da2303956e17 | /commando/recording/formatters.py | 4864831cc5518cc73958a5d0a85c86a586b2e50b | [] | no_license | RyanFrantz/commando | 513c8a467d0842cb20d9caa0843a7923e67d1d6a | 95275e1508031021ea8f15edef42337898070146 | refs/heads/main | 2023-07-20T13:27:03.059389 | 2020-09-24T16:32:29 | 2020-09-24T16:32:29 | 266,552,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,771 | py | import logging, socket
"""
Return a logging.Formatter with a base format we can build on.
The base format will be a JSON string that includes a timestamp and severity
level. If an optional format (fmt) is passed to the constructor it will be
concatenated with the base format.
"""
class BaseFormatter(logging.Formatter)... | [
"ryanleefrantz@gmail.com"
] | ryanleefrantz@gmail.com |
d360f406e4e83ad61f765f38b25b91b19ee2015a | c1631329d605c04269357db500610468bb5a03e1 | /net2.py | 9323dd0aef0a9afe49fd3f24cc4bb695e3eafa0f | [] | no_license | andygom/bestInd | e164f77d68c5988c8636a377fd3f1cecf443f8c3 | 9fada18de0533b81390850f5d76526d8e3e0f2c4 | refs/heads/main | 2023-03-21T23:11:21.761657 | 2021-03-19T03:46:57 | 2021-03-19T03:46:57 | 349,291,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,813 | py | import numpy as np
from numpy import random
import time
from adafruit_servokit import ServoKit
kit = ServoKit channels=16
# INDIVIDUO CON experimento p100 g800 m0.5 / 5 ----- F I T N E S S D E 41.59513354301453
# weightsIH = np.random.random 14, 14 * 2 - 1
weightsIH = [-1.54777539e-01, 3.97567849e-02,... | [
"you@example.com"
] | you@example.com |
607f93f58e2d91f29789e6af6cb26ef32e942d90 | 86a7e3fff60ecef9b34365f84cb228bb245bb446 | /T/Dataset.py | e30976866f15dbc696f1390a33054d28dd213cc1 | [] | no_license | wiratmoko11/CNN | 503e5cc1469895e50398b3110524b0d91fa8b251 | 81f3f103c6797f30dce411d4286eb5c63baeea73 | refs/heads/master | 2021-09-05T15:54:31.293273 | 2018-01-29T13:24:47 | 2018-01-29T13:24:47 | 119,232,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | import pickle as cPickle
import pandas
import numpy as np
import matplotlib.pyplot as matplot
class Datasets(object):
def __init__(self, datasets_folder):
self.datasets_folder = datasets_folder
print("Datasets")
for i in range (1):
with open(datasets_folder+'data_batch_'+str(i+1)... | [
"wiratmoko11@gmail.com"
] | wiratmoko11@gmail.com |
ce2019dbe50bac7bd952c2f44e623b786085c078 | d71edb3616b137b1107dd55f1c1c8a3edf90bb17 | /LOG REG Model.py | 56ece35f6e30bbaff5811f3d233e7d9423f0d8b3 | [] | no_license | Emanuel600/Diabetes-disease-progression---Models | 2da0048d5b27d0baf7dcc7fd4191a2bc83120f1e | 66ca4d9edccdcc39fafb35aeeb27d9683fd7af63 | refs/heads/main | 2023-03-02T21:57:58.361302 | 2021-02-02T22:08:54 | 2021-02-02T22:08:54 | 335,418,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | #! /usr/bin/python3
# remeber to make file executable
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LogisticRegression as lor
from sklearn.metrics import ConfusionMatrixDisplay as cmd
from sklearn.metrics import confusion_matrix as cm
from sklearn.datasets imp... | [
"noreply@github.com"
] | Emanuel600.noreply@github.com |
435be08ca703d6b2caec7e9f678a9be907b52d14 | 25e378bb6b9be65ba5745dcd1fe63a7cb4b62ab5 | /PPP2.py | 9026d59c1396f8b07949f947a4edbc7453cd72f0 | [] | no_license | jerrytope/price | 4a6f1db251611a3ddc24a183541e6f93f9717476 | 5e0a47b842d7e83bb672914d1ac370eeb99d7a9c | refs/heads/main | 2023-03-31T03:33:16.411210 | 2021-04-03T16:55:34 | 2021-04-03T16:55:34 | 307,666,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | import pandas as pd
import numpy as np
import matplotlib
#matplotlib.rcParams["figure.figsize"] = (20,10)
df = pd.read_csv("C:/Users/DELL/Desktop/Videos/totorial/machine leaning/"
"py-master/ML/14_naive_bayes/Bengaluru_House_Data.csv")
pop = df.groupby("area_type")["area_type"].agg("count")
... | [
"noreply@github.com"
] | jerrytope.noreply@github.com |
276413737c57b3c74b11ccee0d0df56f0c65692a | d802a0793a4a4af0336912932c35499edac16845 | /Python/Python/Regex and Parsing/regex_substitution.py | c7a8c4e9aca66eb624f877498c6606e23f9b07fa | [] | no_license | butterflylady/hackerrank | fb1ca6801855b3956bbfb72a2f7a95db4513aca4 | c42e2c80c41a95eb10d9a061eb8e7132e52a71ac | refs/heads/master | 2021-08-27T21:02:50.512292 | 2021-08-05T08:40:37 | 2021-08-05T08:40:37 | 167,610,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | import re
def change_symb(match):
symb = match.group(0)
if symb == "&&":
return "and"
elif symb == "||":
return "or"
n = int(input())
for i in range(n):
line = input()
pattern = '(?<= )(&&|\|\|)(?= )' # Ex. s="A && && && && && && B"
print(re.sub(pattern, change_symb, line)... | [
"mpaluyanava@gmail.com"
] | mpaluyanava@gmail.com |
72ff5bbdbeb31e8f5ba9414cd400968b68e74eaf | a590cf3293c9d5f83a880a706e1686f8aede1377 | /AugustDailyChallenge/10_ExcelSheetColumnNumber.py | 7b62d98c6f42f732f0396111f7a04ea6ddbe5ea7 | [] | no_license | pushker-git/LeetCodeTopInterviewQuestions | 168b9f8fc1054807eeba9ee444745dd2b1a74a29 | 43c605e6353575fdef5fcdb20b83c047e284534d | refs/heads/master | 2023-06-16T21:26:11.614311 | 2021-07-10T14:12:34 | 2021-07-10T14:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | Given a column title as appear in an Excel sheet, return its corresponding column number.
For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...
Example 1:
Input: "A"
Output: 1
Example 2:
Input: "AB"
Output: 28
Example 3:
Input: "ZY"
Output: 701
Constraints:
1 <= s... | [
"rohithv63@gmail.com"
] | rohithv63@gmail.com |
a98e027199b62a2f9bd8ebbdf3a61b5cf2e3131a | 0772f774df4be6526e450a34f6b9a82220ac0175 | /train.py | a675d2d11c6fafc5117499ee4daa9af388e22149 | [
"MIT"
] | permissive | giangnt/GraphSynergy | a090d37caf405894913cc992c34300e347710597 | e2e69e9b55c09ec62af1e51f01988b7d7c46c616 | refs/heads/master | 2023-05-07T05:58:25.834644 | 2021-06-02T14:33:51 | 2021-06-02T14:33:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,197 | py | import argparse
import collections
import torch
import numpy as np
import data_loader.data_loaders as module_data
import model.loss as module_loss
import model.metric as module_metric
from model.GraphSynergy import GraphSynergy as module_arch
from parse_config import ConfigParser
from trainer.trainer import Trainer
# ... | [
"jason-j-yang@outlook.com"
] | jason-j-yang@outlook.com |
d839256a8d0dfd778bd501e3df9f2c3f253c6d65 | e23512edf95ea66640eab85adb8ca0c24ae6e3f7 | /tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py | 2e75ac226ea74e879edda5e03dff3d53c8a76569 | [
"Apache-2.0"
] | permissive | snuspl/tensorflow | 755ac46c3163adb119de0755ed706b1c960991fb | 212d4e9e5f4093ecb90e5b7837d4e02da7506228 | refs/heads/r1.6 | 2021-06-25T18:03:17.625202 | 2018-12-30T09:35:50 | 2018-12-30T09:35:50 | 134,066,972 | 1 | 3 | Apache-2.0 | 2020-06-10T06:12:19 | 2018-05-19T14:02:25 | C++ | UTF-8 | Python | false | false | 5,508 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5af5ab80a62e583b0de448c937dfdd044832e73d | 3b2fea21fc8f5da188e5d340c5054847f54fd118 | /keeper/admin.py | 6aa583b198ba87b413d62288e3bf3a71075f4929 | [
"MIT"
] | permissive | avrilmaomao/lunakeeper | c97fe16bd6c96b940a21fae039b2b2032993b400 | 95c55007e703edea0bc39455b4bf0ff60d4914d8 | refs/heads/master | 2023-07-30T05:50:20.632253 | 2021-09-15T06:59:03 | 2021-09-15T06:59:03 | 397,909,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.contrib import admin
from .models import Pony, History
# Register your models here.
admin.site.register(Pony)
admin.site.register(History) | [
"zhiilang@pmcaff.com"
] | zhiilang@pmcaff.com |
55c5ca51a9b8e831a0816f94a84a6d3da29c93ed | 13a87810390b540aaadda80f7ca7dd4edcade764 | /ble-test.py | 0adcfefb665c87793720f6d1f993e13eb13060f1 | [
"MIT"
] | permissive | arraypan/MakerFaire-NerfTurret | e0578decda8ab64cd8f0987f05b5d9e138df6f8b | 72c3168bde2d1f200908c6c2f0e26791d0126714 | refs/heads/master | 2022-01-26T10:52:25.617293 | 2019-07-16T05:14:45 | 2019-07-16T05:14:45 | 196,765,417 | 1 | 2 | MIT | 2022-01-22T00:54:23 | 2019-07-13T20:52:06 | Python | UTF-8 | Python | false | false | 652 | py | #!/usr/bin/python
from evdev import InputDevice, categorize, ecodes, KeyEvent
from select import select
gamepad = InputDevice('/dev/input/event2')
for event in gamepad.read_loop():
if event.type == ecodes.EV_KEY:
keyevent = categorize(event)
if keyevent.keystate == KeyEvent.key_down:
... | [
"jonathan.fiscus@accenture.com"
] | jonathan.fiscus@accenture.com |
6dc88829539ae460a6c73eebb0ef7601a7593b35 | e5486861d7467e17bf13b6ade8075887afce76a0 | /spider.py | 192d5a45bfcab90128759886255464ddeb82f114 | [] | no_license | spades-k/obj-detection | 4b7c0c23becbd0b0c7e3c355973ea377ceb55b66 | a3f94234e7246d078a11e8848467a5bf78626010 | refs/heads/master | 2021-01-20T07:43:23.610822 | 2017-05-03T03:22:40 | 2017-05-03T03:22:40 | 90,035,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | #-*- coding:utf-8 -*-
import re
import requests
word = input("Input key word: ")
url = 'http://image.baidu.com/search/flip?tn=baiduimage&ie=utf-8&word=' + word + '&ct=201326592&v=flip'
result = requests.get(url)
html = requests.get(url).text
pic_url = re.findall('"objURL":"(.*?)",', html, re.S)
i = 0
for each in pi... | [
"294130021@qq.com"
] | 294130021@qq.com |
71ab281235aa718f249a62d73cf53395bf5e90c4 | fb9fcee3befb9d8c64df77f13fb64b0c1f067f93 | /fastq_to_vcf/pipeline_scripts/02_dedup_gather_metrics.py | cdabece4abf1346eccaf2b39310dd59c78c801d0 | [] | no_license | ajshultz/comp-pop-gen | 0e7a816fd5f0f794b6b26cd2850f32bf0ce855d6 | f916dc01e114a420b3d89e082f81710106fcbd0b | refs/heads/master | 2023-06-01T00:26:37.510541 | 2020-04-20T19:12:27 | 2020-04-20T19:12:27 | 113,904,465 | 5 | 5 | null | 2019-03-04T19:24:33 | 2017-12-11T20:20:27 | Python | UTF-8 | Python | false | false | 28,006 | py | #!/usr/bin/env python
#For use with Python 3.
import re
import sys
import os
import argparse
from subprocess import Popen,PIPE
from time import sleep
import shutil
import datetime
import numpy as np
import matplotlib.pyplot as plt
plt.switch_backend('agg') #Added to get working on the cluster
from matplotlib.backends... | [
"allisonjshultz@gmail.com"
] | allisonjshultz@gmail.com |
a051d9833228591a28d3ae1810787239ebba0755 | 3081b6da2c20f0504acbb79a7595697c87bdfc67 | /day4/exercise_5_2.py | df095ced4646e122135fbee29e8bb04452469c3e | [] | no_license | lastis/Neuron | d0fbf53778384f56d722ff4132860fd234bc1f27 | 356fc115a8cbb3d41a769e581f03206530b628b8 | refs/heads/master | 2016-09-10T17:47:34.837457 | 2015-03-25T15:02:17 | 2015-03-25T15:02:17 | 19,735,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | #!/usr/bin/env python
'''
Simple Hay simulation with one synaptic input
'''
from os.path import join
import numpy as np
import pylab as plt
import neuron
import LFPy
from hay_model.hay_active_declarations import active_declarations
nrn = neuron.h
def return_cell(synaptic_y_pos=900, conductance_type='active', weight=0.... | [
"neitakkikkebanan@gmail.com"
] | neitakkikkebanan@gmail.com |
3df929b6a508a9d626634464b85f4d50299530ae | e88c152d699cef4af64fa5aa4b9c61631c03c8b6 | /Solutions/0949.Largest-Time-for-Given-Digits.py | 816118cebc673cecb74253fdf254dfeec22a97db | [] | no_license | arnabs542/Leetcode-3 | 062af047b1f828b9def2a6e2a4d906e77090b569 | 7e10ff62981db88053b511c3ef8bd284d728d2fc | refs/heads/master | 2023-02-26T19:21:05.037170 | 2021-01-20T07:04:48 | 2021-01-20T07:04:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | """
949. Largest Time for Given Digits
Given an array arr of 4 digits, find the latest 24-hour time that can be made using each digit exactly once.
24-hour times are formatted as "HH:MM", where HH is between 00 and 23, and MM is between 00 and 59.
The earliest 24-hour time is 00:00, and the latest is 23:59.
Return ... | [
"noreply@github.com"
] | arnabs542.noreply@github.com |
34120897c98e29660b0174648f1962ae1d662eb0 | 8a39ea969b0cd97df2643faf9ab544ada76f68df | /tests/test_core_client.py | c8c6a81578e275fa03e3a4abd769dcf320f0f0f7 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-hdf5",
"BSD-2-Clause"
] | permissive | materialsproject/api | 37467be05def832e5d98bc5148f1840df2c94f14 | 7109a4464b0192d5b63419ff6abeb2bac3f60b8c | refs/heads/main | 2023-08-31T03:58:16.070530 | 2023-08-24T22:51:43 | 2023-08-24T22:51:43 | 236,587,469 | 71 | 29 | NOASSERTION | 2023-09-12T21:05:37 | 2020-01-27T20:28:21 | Python | UTF-8 | Python | false | false | 1,531 | py | import os
import pytest
from mp_api.client import MPRester
from mp_api.client.core import BaseRester
@pytest.fixture
def rester():
rester = BaseRester()
yield rester
rester.session.close()
@pytest.fixture()
def mpr():
rester = MPRester()
yield rester
rester.session.close()
@pytest.mark.s... | [
"noreply@github.com"
] | materialsproject.noreply@github.com |
6e449db79b295e63923a8ae18f43cac639aa74f8 | 6e803a0076a72dd1b5f753e139f69532319636be | /search/views.py | 590b5f0f8d9128f29dc862ed554d429ab97fcfa0 | [
"MIT"
] | permissive | Utlak88/Search-App | a5f7f7f34a33cd86672afd550a857129ddd3fb6f | 7d4165c491f93fd1cb80401509a40ec41d5c265b | refs/heads/main | 2023-06-11T03:07:18.018689 | 2021-06-17T01:33:51 | 2021-06-17T01:33:51 | 374,505,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,530 | py | import distutils.util
from django.shortcuts import render
from search.forms import QueryForm
from search.main import SearchUsers, SearchOrganizations, SearchTickets
def searchpage(request):
users_fields = SearchUsers().all_search_fields()
orgs_fields = SearchOrganizations().all_search_fields()
tickets_fie... | [
"62985312+Utlak88@users.noreply.github.com"
] | 62985312+Utlak88@users.noreply.github.com |
22a2dea61f62bece4c5210fff9e979377f55dd53 | 3da0200ba583bb7d65be4b01562a9064656cfbb6 | /models/research/gan/mnist/infogan_eval.py | 21fe2611e0fe857569277f5239a26f42c97314ce | [
"Apache-2.0"
] | permissive | Leftddr/smart_cashier | 1cec489c1fe41cbd086ce761e2179705dcd888b1 | 1d544fffe4ddeee4b04f5882266be62902b23f00 | refs/heads/master | 2023-01-08T00:27:14.750462 | 2020-11-03T06:11:42 | 2020-11-03T06:11:42 | 295,792,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,167 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"kernel@DESKTOP-A0AO4P6.localdomain"
] | kernel@DESKTOP-A0AO4P6.localdomain |
3849c50dd2a871c88e2a8569a389837ead061f1d | 03f14d7a7f3e29b603be0116bf1fc5b8ffb9316f | /subastasIS2_django/manage.py | 700d4b12f20583173fef72a5fcc8923ae59a109f | [] | no_license | Garinoth/subastasIS2 | 05b69debe59aa54941573e25ce1670bf5c704885 | fc9fba35ba97c83fa86c7bcb13b7e62bacac2fc5 | HEAD | 2016-09-05T13:18:34.133982 | 2013-12-19T13:16:05 | 2013-12-19T13:16:05 | 14,012,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "subastasIS2_django.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"cdavidrp@gmail.com"
] | cdavidrp@gmail.com |
55340e6faac1c5014b387c237c09e8efb4f223ca | 41a20700b5bb351d20562ac23ec4db06bc96f0d7 | /src/plum/plumr.py | 184a7d811a8acaa3a4afc138963e0ce6e0c62ab0 | [] | no_license | kedz/noiseylg | ee0c54634767e8d3789b4ffb93727988c29c6979 | 17266e1a41e33aecb95dc1c3aca68f6bccee86d5 | refs/heads/master | 2020-07-30T11:22:08.351759 | 2019-10-30T21:33:11 | 2019-10-30T21:33:11 | 210,212,253 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,551 | py | import argparse
from pathlib import Path
import os
import random
from pprint import pprint
import json
from collections import OrderedDict
def handle_debug_opts(args, plum_pointers, checkpoints):
if args.pprint_ds_sample is not None:
pprint_sample_datasource(args.pprint_ds_sample,
... | [
"kedzie@cs.columbia.edu"
] | kedzie@cs.columbia.edu |
860f1791698bd78cf19dfd6b510dded8bfc3d7e6 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-dds/aliyunsdkdds/request/v20151201/ModifyDBInstanceSSLRequest.py | fa202b9965c36683da32f4164ac33488935281df | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | 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... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
23d627ec0997959cf1212df3ad37627b2530ced6 | c8abf01fb77b526a0a6af1f7ed5b740d8aec65ba | /user_profile/migrations/0001_initial.py | 486a7471308c7ad448471795d084c1ecd6dd824b | [] | no_license | bitapardaz/diabet | f1cc6e039792c91bfb67754f5c7e18141f2573cc | 8a9b38d81c512148be43ea9cf4d09acbd07c3af0 | refs/heads/master | 2021-07-16T17:08:24.502219 | 2017-10-23T21:56:27 | 2017-10-23T21:56:27 | 108,029,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserProfile',
fields=[
('id', models.AutoField(... | [
"pourranjbar.ar@gmail.com"
] | pourranjbar.ar@gmail.com |
7cd798e1edfa658bcc09b1ff1e6068905155adce | d87517916f075f59f0472bcd09ab8c9e2efa8a5f | /natural.py | 5197ee590d2ce8448426afcc1f7bb84d55f6ee6f | [] | no_license | Rajeshkanna12345/Rajeshkanna | e5935599b1aa2a135a0d7a4a5928319c5513df6e | 14e7b3aa92b7bc1915fbc5fd8aca3172f11614dd | refs/heads/master | 2020-04-25T02:49:47.885249 | 2019-02-25T18:43:27 | 2019-02-25T18:43:27 | 172,454,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | num = int(input("Enter a number: "))
def sum(n):
return (n*(n+1)//2)
n=num
print (sum(n))
| [
"noreply@github.com"
] | Rajeshkanna12345.noreply@github.com |
e7f81bf2f5dc6794f9746a37178f26bc21aadde5 | fd15b8bd71f0d0391a6b0a38b2ad19ce74f79453 | /todo/todo/urls.py | 7b67b588a5e5d69a599f15dd02d9895a10303fcd | [] | no_license | chang12/django-todo | c7caab9cfe9608b0a50f7b103f69625211c025d8 | f2c942dc07e455e775c2b05457af18194a7da86e | refs/heads/master | 2021-01-24T08:09:20.637204 | 2016-12-25T11:57:08 | 2016-12-25T11:57:08 | 69,148,228 | 0 | 0 | null | 2016-12-08T15:59:58 | 2016-09-25T06:41:51 | HTML | UTF-8 | Python | false | false | 885 | py | """todo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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... | [
"chang12@snu.ac.kr"
] | chang12@snu.ac.kr |
70e3ea01aca468d440c1dbfa13b939fad9364327 | 67bdebd561b19af9bf759b6ed5de8556b93ea91f | /lower_priority.py | ba5a00b47b30c1d9e0248d2c3e339ba751417911 | [] | no_license | rlowrance/re-avm | 91371ec79f6b6f48e17643da4dfb7a4894d0a0ca | d4cfa62e9f65d325e8ac98caa61d3fb666b8a6a2 | refs/heads/master | 2021-01-17T07:34:16.876133 | 2017-02-06T21:04:59 | 2017-02-06T21:04:59 | 42,865,972 | 31 | 10 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | 'lower priority of current process'
import os
import pdb
def lower_priority():
# ref: http://stackoverflow.com/questions/1023038/change-process-priority-in-python-cross-platform
assert os.name in ('nt', 'posix'), os.name
if os.name == 'nt':
import win32api
import win32process
impor... | [
"roy.lowrance@gmail.com"
] | roy.lowrance@gmail.com |
f876294b823cd42948d89f02caf02bbee39ddf80 | fab39aa4d1317bb43bc11ce39a3bb53295ad92da | /tests/torch/test_load_model_state.py | 5eda1ed71238d33770b716b7cb5786bd3945a565 | [
"Apache-2.0"
] | permissive | dupeljan/nncf | 8cdce27f25f01ce8e611f15e1dc3036fb8548d6e | 0abfd7103ca212888a946ba4d0fbdb9d436fdaff | refs/heads/develop | 2023-06-22T00:10:46.611884 | 2021-07-22T10:32:11 | 2021-07-22T10:32:11 | 388,719,455 | 0 | 0 | Apache-2.0 | 2021-07-23T07:46:15 | 2021-07-23T07:43:43 | null | UTF-8 | Python | false | false | 27,407 | py | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"noreply@github.com"
] | dupeljan.noreply@github.com |
c19b67aa9150a4986f3a157ac1bccf2b29470845 | 2e380ed6fbed3d85457e0317aabcd028a6a9481c | /lib/mail.py | 723f099b35239f94978fb3b1ec4e018abd83c7c2 | [] | no_license | tengelisconsulting/build | cf954ecaa2e3590faa5b8b86ceafc3633a51d9d0 | d68efe94e6c3e107cd8fd330fc69b5733f34534b | refs/heads/master | 2022-12-24T19:25:18.530681 | 2020-09-28T20:09:19 | 2020-09-28T20:09:19 | 294,456,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | import base64
from email.mime.text import MIMEText
import logging
from queue import Queue
from typing import Dict
from typing import List
from google.oauth2 import service_account
from googleapiclient.discovery import build
from googleapiclient.discovery import Resource
from .apptypes import BuildConf
from .env impor... | [
"ltengelis@gmail.com"
] | ltengelis@gmail.com |
007f81ee7e141ef2ae7f6380f493d54a6b6ff948 | 5afb9a3f47013dc48e7ea17043dcf736aed73a36 | /gui.py | 30fb471837755a1b905e11478f3a5432bcc1ce89 | [] | no_license | cannontwo/FreeForm | f4ad3f0b56543bb3f59f99499f1a522add94f29f | 25e745e47fb4bf9a70c29e4698dc5e851a57e53d | refs/heads/master | 2021-05-27T15:41:22.041580 | 2014-06-14T16:57:20 | 2014-06-14T16:57:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | import pygame
class Gui():
"""Class to handle state and rendering of gui"""
def __init__(self, width, height):
self.menu = pygame.Surface((width*.05, height*.4))
self.menu_color = (192, 192, 192)
self.menu.fill(self.menu_color)
pygame.draw.rect(self.menu, (0, 0, 0), pygame.Rec... | [
"cannon10100@gmail.com"
] | cannon10100@gmail.com |
2b5f3ae9fee04c6e639f4353893ef0af15703dfd | 3b7bc70f3335504249cfdeaf880635139b591266 | /Djando-React/virtual/Scripts/django-admin.py | d7d1cb1251de44e9fda5e7d127fa19bb05dcf6ef | [] | no_license | HadarNetanel/Developer | d0182b07bbb665f0e70de4ccc11b24d7f82af39e | 37ba47db50390011affad55b25571b245e3f0397 | refs/heads/master | 2023-01-28T14:13:05.034382 | 2020-03-22T22:56:00 | 2020-03-22T22:56:00 | 249,286,932 | 0 | 1 | null | 2023-01-26T18:23:55 | 2020-03-22T22:47:40 | Python | UTF-8 | Python | false | false | 201 | py | #!C:\Users\NoName\study\AppelSeedBootcamp\Djando-React\SchoolSystem\virtual\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"hadarnetanel@outlook.com"
] | hadarnetanel@outlook.com |
b4953e59c00cf1fc599ad996732323ac140e73e0 | 841568312f777b373c662e4d42609696e06968c2 | /pre_processing.py | d52bb3053b2cd07e9e5904f23a91cd2fa9dff793 | [] | no_license | Bee-HN/Spooky_Authors_Classification- | e573ec906b820480b990d074581e029a632a71e7 | 279fa113310a0e2d0f103645cb08eed2bb34bf58 | refs/heads/master | 2021-08-20T00:17:40.503831 | 2017-11-27T19:29:10 | 2017-11-27T19:29:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | import pandas as pd
import plotly
import plotly.plotly as py
import plotly.graph_objs as go
from wordcloud import WordCloud, STOPWORDS
from nltk.stem import WordNetLemmatizer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn import svm
f... | [
"hng100289@gmail.com"
] | hng100289@gmail.com |
49de933b088b5782f28cb1a4cf8951cf0b947a90 | b59bc650ae07b18757b455e1b5cb7cfde91714a4 | /.env/local/lib/python3.5/site-packages/pip/_vendor/urllib3/util/response.py | 4dc7a11092cdd6afe3b1da5a4c197e42dfea15ff | [] | no_license | jhashubham28/BE_Project_SpeakerRecognition | d07c584359a5ebc6b524b3b4617b072c58724d17 | ede8fd53e79973e4116030e5a36f9deaa61dcc63 | refs/heads/master | 2020-05-29T20:42:15.055659 | 2019-05-30T20:17:30 | 2019-05-30T20:17:30 | 189,354,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | /home/pi/Downloads/BE_Project-SpeakerRecognition-master/.env/lib/python3.5/site-packages/pip/_vendor/urllib3/util/response.py | [
"jhashubham28@gmail.com"
] | jhashubham28@gmail.com |
0f78a025353101c730028c07bcac7e8b2ef4e21a | ab508f81ec868b0e6aad65d1aebad97db8ec0147 | /Valid Sudoku.py | 76bbb0ceb77b5be82e21dc10b26fecb246047d5f | [] | no_license | akashlukhi/LeetCode-Solutions | 8b4c0b228de285175a4b445bc36f00825fd87034 | ab3b6a70b0f68ec17095c0b96fa2176b3c9473a4 | refs/heads/main | 2023-05-27T16:57:01.075696 | 2021-06-16T03:47:33 | 2021-06-16T03:47:33 | 372,710,962 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | class Solution:
def isValidSudoku(self, board: List[List[str]]) -> bool:
l = []
for i in range(9):
l.clear()
for j in range(9):
if board[i][j] != "." and board[i][j] in l:
return False
l.append(board[i][j])
... | [
"noreply@github.com"
] | akashlukhi.noreply@github.com |
52f86b764cd6ecc8c8cb6297570255ff3915d6be | 529aa8b2515b762f175d38820e9db259dceb329f | /blog/views_cbv.py | 33713d6c4328b39f91dc7f3455cb677448a4a31c | [] | no_license | MiJooJeong/askdjango | b59e179143ec6527c275be9d583aed4c58c614fc | 4fe67c1fbf2729eea49320dc2e5c2bad32662dba | refs/heads/master | 2020-03-25T17:23:03.167704 | 2018-10-08T03:30:46 | 2018-10-08T03:30:46 | 143,975,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | from django.core.urlresolvers import reverse_lazy
from django.views.generic import CreateView
from django.views.generic import DeleteView
from django.views.generic import DetailView
from django.views.generic import ListView
from django.views.generic import UpdateView
from .models import Post
class PostListView(ListV... | [
"uuuio1224@gmail.com"
] | uuuio1224@gmail.com |
f8a92e3ce451c3a77e250b92be11e9ffb6d3dccb | 922692ad579349ecef2e27d957bcc3ead9f76b40 | /venv/bin/rst2xml.py | 603a4315d3111dad8d8253a4077f2e0cba570823 | [] | no_license | AyushBaheti81/Vihaan | 6a3b105f18d77c02beafa4ef8de055753346990b | 72343d19c7d4cc941bf2fdc378c6650f4ee6fd6b | refs/heads/master | 2022-08-11T22:19:43.269031 | 2020-05-16T14:41:00 | 2020-05-16T14:41:00 | 263,996,159 | 0 | 0 | null | 2020-05-16T14:34:46 | 2020-05-14T18:37:50 | Python | UTF-8 | Python | false | false | 640 | py | #!/Users/ayushs/PycharmProjects/untitled/venv/bin/python
# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing Docutils XML.
"""
try:
import loc... | [
"ayushbaheti81@gmail.com"
] | ayushbaheti81@gmail.com |
c81e82f46a4052539446efae8b3efa6d39ef1e14 | 147e39ccf78b34c14a56637c0f49f685f3e4d1d5 | /elyra/tests/pipeline/test_processor.py | 5a7b35315dc6374672a2a3b8344db09b9abb3cbc | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-SA-4.0",
"Apache-2.0",
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | fresende/elyra | b3ebf62958696fdc6e9f29ee7229059a7c65f9ca | dce0f2a6f6acbc8a8256c61d587c7d7eb3690035 | refs/heads/main | 2023-06-23T14:23:34.012538 | 2023-05-25T19:18:48 | 2023-05-25T19:18:48 | 272,585,809 | 0 | 0 | Apache-2.0 | 2020-06-16T01:57:29 | 2020-06-16T01:57:28 | null | UTF-8 | Python | false | false | 12,985 | py | #
# Copyright 2018-2022 Elyra Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"noreply@github.com"
] | fresende.noreply@github.com |
6e0ab4bfb0965f5f86c97498a3371640166041ec | 12325325b4255ffb5dc83c5a9114a3ebde9e59d2 | /apps/message/models.py | 74065860ccebf5957eea63aad4ba0dfa64ac80fa | [] | no_license | luokuo/onstudy | 9e34515bbbda14fb0cf547fddbc19a27c2bcf148 | 130f975b464fd4855b6471aa6481e159e09be203 | refs/heads/master | 2020-03-27T23:31:58.368683 | 2018-09-04T10:07:01 | 2018-09-04T10:07:01 | 147,325,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | from django.db import models
# Create your models here.
class UserMessage(models.Model):
name = models.CharField(max_length=20,null=True,blank=True,default="")
email = models.EmailField(max_length=30,verbose_name='邮箱')
address =models.CharField(max_length=100,verbose_name='地址')
message =models.CharFiel... | [
"674999490@qq.com"
] | 674999490@qq.com |
b4825e7c09ac027db28bf8dd543d8e729e4955c0 | f34d3948b707e461151ee33296a61fb23a6d3f44 | /month01/day05/exercise04.py | 594a4d052bb6f40071f72eab8c844809892fe23a | [] | no_license | xiao-a-jian/python-study | f9c4e3ee7a2f9ae83bec6afa7c7b5434e8243ed8 | c8e8071277bcea8463bf6f2e8cd9e30ae0f1ddf3 | refs/heads/master | 2022-06-09T17:44:41.804228 | 2020-05-05T07:48:07 | 2020-05-05T07:48:07 | 256,927,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | """
在终端中录入10个疫情省份的确诊人数
最后打印人数最多的、最少的、平均人数.(使用内置函数实现)
"""
list_confirmed = []
for item in range(10):
number = int(input("请输入第%d个省份的疫情人数:" % (item + 1)))
list_confirmed.append(number)
print(max(list_confirmed))
print(min(list_confirmed))
print(sum(list_confirmed) / len(list_confirmed))
| [
"1261247299@qq.com"
] | 1261247299@qq.com |
b82c767a3aa171c7f2f8743f14a2aa469556cd57 | 1d9ce258a2cb50d5214b49d2636c0b7e95958cb3 | /backend/main.py | 2c933c25fbc3f7ebee8443f945d0b6faf510cbca | [] | no_license | miura0617/fastapi-helloworld | 6cd95b8acf1a758cad4c3b8b5f250d8f1f15f252 | e8ec7d9cde7b551632dcf5aa653b258ee6fb79d9 | refs/heads/master | 2023-08-03T17:06:52.152907 | 2021-10-03T08:20:35 | 2021-10-03T08:20:35 | 413,017,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | from fastapi import FastAPI
from core.config import settings
from db.session import engine
from db.base import Base
def create_tables():
Base.metadata.create_all(bind=engine)
def start_application():
app = FastAPI(title=settings.PROJECT_TITLE, version=settings.PROJECT_VERSION)
create_tables()
return... | [
"miura@infocity.co.jp"
] | miura@infocity.co.jp |
c10d9896ee6de12914c6ed67a6f29e68a3d667d3 | ab84db21b0add49af89873df9fde90de3e12c1a1 | /rundeck_dynamic_option.py | e4c9e5fa8a05e0ea0a662d2039c2ee3414c849b6 | [] | no_license | ri0day/gangster | 1d5ebc17b483d28eeb15358157c44960b98669b3 | c7b3eae6115af5b0411bd4ceb34badffbf4e9b4c | refs/heads/master | 2020-04-06T13:28:43.520875 | 2018-05-16T09:13:10 | 2018-05-16T09:13:10 | 1,726,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | #!/usr/bin/python
#coding: utf-8
l = [
"fin-cashier",
"fin-fbm",
"fin-feim",
"fin-fxio",
"fin-mgw",
"fin-paycore",
"fin-tradeprocess"
]
from flask import Flask,jsonify
app = Flask(__name__)
@app.route('/QJS/deploy.json')
def show():
return jsonify(l)
app.run(port=19081)
| [
"hackcrisman@gmail.com"
] | hackcrisman@gmail.com |
a6824d7e85b0264d31b1561314abad8654470d27 | 401fc99cefe615f8ebefb6dd9c2b043c506f5bd0 | /tests/conftest.py | 640a86e0d9e1741295eded78699d2d9877f23fe9 | [
"MIT"
] | permissive | atviriduomenys/spinta | 0f85496860ebbcecfccd8dde2bf219564ee66baa | 1fac5b6b75ec65188d815078fd135bc05d49b31c | refs/heads/master | 2023-09-02T13:22:58.411937 | 2023-08-18T12:59:17 | 2023-08-18T12:59:17 | 168,724,854 | 12 | 4 | MIT | 2023-09-14T13:29:39 | 2019-02-01T16:16:11 | Python | UTF-8 | Python | false | false | 4,119 | py | import builtins
import inspect
import os
import re
import sys
import time as time_module
from itertools import chain
from itertools import islice
from traceback import format_stack
from typing import Any
from typing import Dict
from typing import Iterator
from typing import TextIO
from typing import Type
import objpri... | [
"sirexas@gmail.com"
] | sirexas@gmail.com |
32482b853b2d29d3c778465263522745d35e0fa3 | 7d425706cd516af9cf7c8561f7f85c5d7e12c940 | /Assignment2/linear_svm.py | 876c770cacac1251b5255121f742d0ff4040b59e | [] | no_license | himanshu0113/MLCrap | a8e6c614561af56a78e90bcf7580aac8e9a8b5e3 | d29c6aa916d3766ecb4d6bbff6e67feeef715318 | refs/heads/master | 2021-08-24T07:01:20.181672 | 2017-12-08T14:28:11 | 2017-12-08T14:28:11 | 105,891,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | import os
import os.path
import argparse
from sklearn.manifold import TSNE
import h5py
import numpy as np
import matplotlib.pyplot as plt
from sklearn import svm
from sklearn.metrics import mean_absolute_error as mae
#from mpl_toolkits.mplot3d import Axes3D
"""
parser = argparse.ArgumentParser()
parser.add_argument(... | [
"himanshuagarwal1395@gmail.com"
] | himanshuagarwal1395@gmail.com |
861ea1769ecaa2fda5b934bf664a414fad7d9925 | cfec0182dae070ccb54a38b18b8c18f0ce2a82f7 | /blog_project/mysite/blog/models.py | 5568d6ee08155a9cece5d075707ead5aa5c24789 | [] | no_license | saikiranrede/Django | 4952e728981ac6b7e36eb411b9ef6a895e6657eb | 4c2cc09a08c5929e0afdb1f8ae43e27a75416b8f | refs/heads/master | 2020-03-25T00:23:25.996142 | 2018-08-01T17:04:41 | 2018-08-01T17:04:41 | 143,183,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | from django.db import models
from django.utils import timezone
from django.core.urlresolvers import reverse
class Post(models.Model):
author = models.ForeignKey('auth.user')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(default=timezone.now)
... | [
"saikiranrede93@gmail.com"
] | saikiranrede93@gmail.com |
fe9c2cc7554dbc61fece19096cc67c5051c4222f | 9a411824201473815d69bf39bccc5f0ccafb0667 | /main_3.py | d3dfc8beae0e5888221202489b1b31ce3364c1c7 | [] | no_license | henryph/vba_project | 263e58489f2d64a93c36d895f59c6c23cf9ba46a | 8d8f244d70213481d95e43fcf0bad335e8a16116 | refs/heads/master | 2020-03-19T07:22:21.840259 | 2019-08-04T16:03:47 | 2019-08-04T16:03:47 | 136,108,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,298 | py | import os, sys, glob
import configparser
from diarizationFunctions import *
import numpy as np
sys.path.append('visualization')
from viewer2 import PlotDiar
import time
import librosa
def runDiarization(showName, config):
wav_path = config['PATH']['audio']+showName
y_total, sr =... | [
"noreply@github.com"
] | henryph.noreply@github.com |
4eeb9eb525604e06788dee10a625513e241b933b | 8aa04ab3e16502f472dff69db60e7c7f74b3f83e | /7 RECONOCIMIENTO DE EMOCIONES/capturandoRostros.py | acd296060dcd5cf8bedc143c4d4623fe56880c15 | [] | no_license | MarcoAtencio/OmesTutorials2020 | e05913c569f9fe995449cc6c42601f98a86e32a4 | 4f93c38d6c34c4379933377684cb04e995db1bd8 | refs/heads/master | 2022-11-12T09:30:42.725149 | 2020-07-02T14:26:54 | 2020-07-02T14:26:54 | 280,257,406 | 1 | 0 | null | 2020-07-16T21:00:38 | 2020-07-16T21:00:38 | null | UTF-8 | Python | false | false | 1,170 | py | import cv2
import os
import imutils
#emotionName = 'Enojo'
#emotionName = 'Felicidad'
#emotionName = 'Sorpresa'
emotionName = 'Tristeza'
dataPath = 'C:/Users/Gaby/Desktop/Reconocimiento Emociones/Data' #Cambia a la ruta donde hayas almacenado Data
emotionsPath = dataPath + '/' + emotionName
if not os.path.exists(emo... | [
"gabriela_solano@ymail.com"
] | gabriela_solano@ymail.com |
3fba42bf931d396d9214bc8c22f022ede92eb267 | db579d360d673b2d48b0f2ed34622be8c50dad34 | /classifier/models.py | ec0003fb9968e082cac088c4607285d9df2d89f3 | [] | no_license | dreamlxt17/brain_cancer_classify | bea45fc3e4456418f6165d00bf0013eef35083d7 | 8bbc2496b5b3ba6528747c2cbad9f20a622e4af8 | refs/heads/master | 2020-03-19T07:38:47.913877 | 2018-06-05T13:34:38 | 2018-06-05T13:34:38 | 136,135,287 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,575 | py | # coding=utf-8
import numpy as np
from sklearn import neighbors
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import GridSearchCV, Strat... | [
"dreamlxt17@163.com"
] | dreamlxt17@163.com |
02a8274f0e85d0ac8c9b03e1f1d001771b15a3b3 | 0a1c2118c631c5b22dbb0906ceef263461377cb7 | /dev/python/proto/sensor_msgs_pb2.py | 9fbfd485cf761db6478399838056dcef1a21c5e4 | [
"MIT"
] | permissive | gecko-robotics/gecko-protobuf | dc9b583babe822aa1965b4b4a0aade9e24355a90 | 70bb1407a25d27588da6c58e4a6bc25dc7975234 | refs/heads/master | 2021-07-17T22:34:03.926951 | 2020-06-14T22:22:13 | 2020-06-14T22:22:13 | 181,314,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 33,355 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/sensor_msgs.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pr... | [
"walchko@users.noreply.github.com"
] | walchko@users.noreply.github.com |
d7b21999d06052720136bc9861b5a7bac84e076f | 8c082ce426f6828868b6a19807c5aedaa1bb7e14 | /tests/test_task_base.py | 3bd2b1e29e61f9efe491cfed65a929f0f44837b3 | [
"Apache-2.0"
] | permissive | misaki-sugiyama/unladen-chant | 32cd1513ac9d420c4f855af6ae2c07456ed92592 | 28ac51ed9ef6eba8da8b5dafd13cf3abc1e63d5c | refs/heads/master | 2020-12-17T11:45:20.167893 | 2020-03-13T08:29:58 | 2020-03-13T08:29:58 | 235,292,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | import pytest
from unladenchant.unladentaskbase import UnladenTaskBase
from types import SimpleNamespace as SNS
@pytest.fixture
def fixtureFlowCheck():
aRecord = []
class TaskBasic(UnladenTaskBase):
def main(self, ns):
aRecord.append('main' + str(getattr(ns, 'a', 0)))
return Tr... | [
"misaki-sugiyama@users.noreply.github.com"
] | misaki-sugiyama@users.noreply.github.com |
29d6cb7cc2c77dcb2f44afa362593ff83ce00f40 | 546d07b3f78313895af9bfd70a480eab92bcba68 | /appMain/migrations/0016_auto_20210928_2216.py | 5619755ce1e212f68a70295d2ad78ec1f5b2a7a9 | [] | no_license | NU25113/KingIceManDjango | 4c1c08319ac70a6e3ad9ca241eb0214dc477a813 | e6b2e6b26869052ad5d9b2d55b023f8c56149988 | refs/heads/master | 2023-08-17T13:27:47.378855 | 2021-09-29T14:35:21 | 2021-09-29T14:35:21 | 411,663,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # Generated by Django 3.1.6 on 2021-09-28 15:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('appMain', '0015_auto_20210928_1907'),
]
operations = [
migrations.AlterModelOptions(
name='budget',
options={'verbose_name_p... | [
"nuntima.we61@snru.ac.th"
] | nuntima.we61@snru.ac.th |
ee67ec8954e0a5a24a74913c5e144720c4a7c1ec | 2353ae807790d38eaa6b1b2f09b540f3b0e5d563 | /train_model.py | fa52c000618f8a9b908d9216fe5bf3071345d227 | [
"MIT"
] | permissive | chenheliar/tf_comic_color | 4f91fd9495874cb3a6705e604a70160c3e6e80f1 | 147722b9ce8fa675ffb7987cea1a75b87db3a523 | refs/heads/master | 2020-09-22T07:56:25.218239 | 2019-12-01T06:08:04 | 2019-12-01T06:08:04 | 225,111,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,369 | py | from build_generator import *
import datetime
import sys
from test_model import *
# import requests
def fit(train_ds, epochs):
# test_log_dir = 'logs/gradient_tape/' + current_time + '/test'
current_time = datetime.datetime.now().strftime("%Y%m%d-%H%M%S")
train_log_dir = 'logs/gradient_tape/' + current... | [
"1148210119@qq.com"
] | 1148210119@qq.com |
125bca02d41afd4fbe3adbb44de5026ae2706c21 | 2b3c15e703c64b580128864134ff0bdb73cbe964 | /test_f2.py | 35b4d001624006f15bebfe81985f7d72e8a9331e | [] | no_license | jalen123517/pytest | e4819c01d9c24257d8b4d7578c106e00b5c32b17 | 93b19067f7c249c2ee95b5b9d2d62af7ad152bc7 | refs/heads/master | 2022-12-09T07:26:59.223138 | 2020-09-04T15:59:50 | 2020-09-04T15:59:50 | 292,855,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,196 | py | import pytest
#
# @pytest.fixture()
# def open():
# print("打开百度首页")
#
# def test_func1():
# print("正在执行测试用例test_func1")
#
# def test_func2(open):
# print("正在执行测试用例test_func2")
# @pytest.fixture(scope="module")
# def open():
# print("打开百度首页")
#
# yield
# print("所有用例执行完毕")
#
# def test_func1(o... | [
"1198003804@qq.com"
] | 1198003804@qq.com |
b279b442b5f7399c81b1c1c6b3fe15d96ddb1898 | 7d9b61b5c4030927b61029aeb076606a62437730 | /just_code/TCP_server_client/server.py | d2ea1b35b35c52addcf91a3de787e5e613a16f8e | [] | no_license | qq20004604/python3-lib | 90759f884e9e33d5c390c683f00c24c8c786b2dd | 8b1b3de906d70d375f4c4f541778f6c79e70228a | refs/heads/master | 2023-04-15T03:40:19.977694 | 2023-04-04T06:47:50 | 2023-04-04T06:47:50 | 182,262,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 服务器端,启动后将一直运行中
import socket
import threading
max_recv = 1024
listen_port = 8000
exit_words = 'exit'
def tcplink(sock, addr):
print('Accept new connection from %s:%s...' % addr)
sock.send(b'Welcome!')
while True:
data = sock.recv(max_recv)
... | [
"20004604@qq.com"
] | 20004604@qq.com |
0274997c2d3e52f78afa38109560e1728b2534ec | 4f882bb05a47a3b3e124b42ab9bd279d7032f3c7 | /py/variables.py | 8b52dbd2c8592cd70f0c4646708e7cf2c3892ea6 | [] | no_license | jamesnyakush/akira-mentoring | cf5b02786d49319290bfc4ccca381cc5eea6d41f | de2002547673b00340ce815071e08962b7f5200a | refs/heads/master | 2022-12-03T09:31:48.261768 | 2020-08-16T20:52:56 | 2020-08-16T20:52:56 | 284,286,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # Variables are containers for storing data values.
x = 10 # type int
print(x)
y = "James Nyakundi" # type String
print(y)
print("My full name is: " + y) # Concatination
# Multiple Variables in Python
a, b, c = "Apple" , "Banana" , "carrot"
print(a,b,c)
#Re-assigining Variables
y = 'Mary Wanjiru Nyakundi' #goals
p... | [
"emvesttech@gmail.com"
] | emvesttech@gmail.com |
35d45b3ecc9f1c22e764ea3b1b7af87890ab536f | 1335f139620b2578ec325732b298b44599d235b9 | /shop/migrations/0001_initial.py | 31798dfec22fd28409e6dd63f241a9c5f71a7da1 | [] | no_license | MuhammadAichee/AhsanShop | 21cc6c2970c7f37e93d59b4295333a95b2ecb694 | ef827c97733fae7a00bbb3d84d40a70a87f19e71 | refs/heads/master | 2020-12-27T07:17:04.807977 | 2020-02-02T17:53:27 | 2020-02-02T17:53:27 | 237,810,855 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | # Generated by Django 3.0.2 on 2020-02-01 13:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"muhammad.aichee@gmail.com"
] | muhammad.aichee@gmail.com |
c9ce4a22aa785427947d43da377376900804d900 | cedc66fcd0c8e347a2e363a832819cfee3598c8a | /iprPy/record/point_defect/__init__.py | 6fec3f441d280d0a2e752c187abfbbb6c176e1ca | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | Aditya-912/iprPy | 1b201c3a62b691249a76dd07d507b2d94813b6b8 | 260bf203baf43a33a1bb3a079d7d5343c131dcd5 | refs/heads/master | 2023-03-11T21:35:17.963425 | 2021-03-05T16:31:27 | 2021-03-05T16:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | # iprPy imports
from .PointDefect import PointDefect
__all__ = ['PointDefect'] | [
"lucas.hale@nist.gov"
] | lucas.hale@nist.gov |
3a27bd0f2d53a4bda6335ad0ce252de98fe06017 | 5cca3c12fc2a61ba9056fdae17f68cb7b3fbc19e | /clustering/generatefeedvector.py | a6372f3533491a23a6739014651c32b300065652 | [] | no_license | paudan/python-scripts | ccd5869199be676cfb10f9cc4aafb5b57b4380b6 | 00b15b00d9ab4c016e1e3b1befa0dcee3572a72f | refs/heads/master | 2020-04-05T19:49:02.416612 | 2016-11-06T00:06:15 | 2016-11-06T00:06:17 | 42,777,035 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py | # Example from Programming Collective Intelligence, Chapter 3
import re
import feedparser # pip install feedparser
# Returns title and dictionary of word counts for an RSS feed
def getwordcounts(url):
d = feedparser.parse(url)
wc = {}
# Loop over all the entries
for e in d.entries:
if 'summar... | [
"danpaulius@gmail.com"
] | danpaulius@gmail.com |
2efda46e4e823acee036943c7955ecf6000f5e56 | 027d29567d77708fece6efc8c210e72060fa49fc | /searchtoprompt.py | 921285ad03359916a9a56dc4541e66b98e810484 | [] | no_license | hrmJ/phd-data-processing | 6065f698bc0885124fe7d4f181be38a38036a8ae | f352d4db552db45918fd41a71fdad65e07cf987e | refs/heads/master | 2020-03-21T05:27:45.478555 | 2018-10-22T17:23:30 | 2018-10-22T17:23:30 | 138,161,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import pickle
import glob
from menus import multimenu
from interface import MainMenu
import search
import dbmodule
#Load the saved search from pickle
menu = MainMenu()
menu.viewsavedsearches()
#Fetch all the source lemmas
mySearch = search.Search.all_searches[0]
#search.Db.con = mydatabase(input('write the name of da... | [
"juho.harme@gmail.com"
] | juho.harme@gmail.com |
da7128ea1ba2c7e0c3dd80937ea04a5097b22c87 | e7073014f6ec78471b5dc0d089ef4efb8ed3d3a7 | /mkdg/misspell/adverb.py | 8480143c154ec4c352a74521b02f77d66085d3ae | [] | no_license | ruby-kim/mkdg | fbfe29bd8315beac94e23171e59c4f008161071f | b2172a1c03e45c99461d5053ebc9a5225ec2b5b2 | refs/heads/master | 2022-11-03T12:42:10.967764 | 2020-06-17T03:45:39 | 2020-06-17T03:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | """
부사
"""
from mkdg.utils.chgword import chg_word
def load_adverb():
from mkdg.utils.getmisspell import misspell_single_data
"""
Load adverb data
Returns: adverb dictionary, alternative list
"""
adverb = misspell_single_data("adverb")
alternative = {
}
return adverb, alternative... | [
"kkyy0126@naver.com"
] | kkyy0126@naver.com |
dd0492a4e1c8d9c5c1695bf08f02984c8d021074 | b71a6e7050b0a4368007350d91ee078288a7318c | /examples/issues/issue189_img.py | cb2817ea11871f73a6164e09d73305c788330037 | [
"Apache-2.0"
] | permissive | jarvisteach/appJar | 2dfd0da6cb85ea3535379ed000efd97fb42fe4f8 | 0b59ce041da2197dcff3410e20f298676f1f7266 | refs/heads/appJar | 2023-08-29T09:42:01.812005 | 2019-09-28T18:34:06 | 2019-09-28T18:34:06 | 39,996,518 | 696 | 103 | NOASSERTION | 2023-02-20T01:01:16 | 2015-07-31T08:59:20 | Python | UTF-8 | Python | false | false | 252 | py | import sys
sys.path.append("../../")
from appJar import gui
with gui(useTtk=False) as app:
# app.addImageButton("button2", None, "Capture 2.PNG", align=None) # Uncomment this
app.addIconButton("button", None, "md-play", align="none") # Or this
| [
"jarvisteach@gmail.com"
] | jarvisteach@gmail.com |
7312a9d8b55c53189a86359ec9c6344c2855e91d | 4c20dd6a6f9a3dd0775ea3ef9d48a47eaf47a891 | /mysite/mysite/settings.py | 87bfe4d009cfef8743ec81d59eb19e67e3259687 | [] | no_license | sohil1234/FirstRestAPI_Stock_Prg | 080662737cadeeb70cc358ea2062d9021c4277c7 | f56f85df0875e2406ea4e42d90b6f6a0a409000f | refs/heads/master | 2021-09-01T23:46:07.716459 | 2017-12-29T07:45:33 | 2017-12-29T07:45:33 | 115,699,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Bu... | [
"sohil.khan19may@gmail.com"
] | sohil.khan19may@gmail.com |
7351cda3d9810ffbb3a32be84e28c4fdc9c4476d | 9262a206a538ab471fe524fb1659ffeef09bb735 | /codebreak/venv/bin/pip | a4f2d921616fb6efc02a64cea8d25b86f62b3f41 | [] | no_license | jaypajji4444/24-Digital_Chaos-VIDALYTICS | 02c69ce954714f4eefbd37da9bf06916621c34cf | 4d4477d9f1faa4c1293587ed1e0aa244774f71fe | refs/heads/master | 2022-12-14T02:32:52.676173 | 2020-10-04T13:42:50 | 2020-10-04T13:42:50 | 229,522,854 | 1 | 3 | null | 2022-12-11T18:05:38 | 2019-12-22T05:31:00 | Python | UTF-8 | Python | false | false | 393 | #!/Users/deep.gandhi/codebreak/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"43105921+jaypajji4444@users.noreply.github.com"
] | 43105921+jaypajji4444@users.noreply.github.com | |
c9cd10112ddaa05201e46cc7646a48d91dfd48d5 | ce886756510fb064b6d3c0559e547542e3de8891 | /pylesson/kernel.py | 1314c21a9ec6f0a23910b20e5edda15e2d03d142 | [] | no_license | Nekot94/sprog | 348b2cce012230cf59e85a7af5d8db8c4eecd7c0 | a79f8c5e7cf0237b768f3a46732a72897fc50742 | refs/heads/master | 2020-05-21T02:01:37.608220 | 2017-05-05T12:01:34 | 2017-05-05T12:01:34 | 84,555,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | from PIL import Image
from random import randrange
#соответствие диапазону
def constrain(val, min_val, max_val):
return min(max_val, max(min_val, val))
#функция наложения матрицы
def kernel(pixels,mat,l,div):
rRes, gRes, bRes = 0, 0, 0
for c in range(l):
for k in range(l):
... | [
"noreply@github.com"
] | Nekot94.noreply@github.com |
a541b63a4a516afe5d07e6e2cb94b6f9ecfbfbca | 897a660b24d0ccc1a25132550dc4c735644efbfb | /048_self_powers.py | 0b745c15bbdfe4cbee42e2c6029e4f76bd87c684 | [
"MIT"
] | permissive | gradam/project-euler | 409b99a542c661cbc3e002bb9b89f5d03ea40cd5 | d939ad54d057fd8ed2db06948b6ccc7833d68ab6 | refs/heads/master | 2021-01-24T17:35:50.870830 | 2017-12-31T09:58:35 | 2017-12-31T09:58:35 | 30,153,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | suma = 0
for x in range(1, 1000):
suma += x**x
print(str(suma)[-10:])
print(str(28433*(2**7830457) + 1)[-10:]) | [
"kuba.semik@gmail.com"
] | kuba.semik@gmail.com |
1eed5a1a1c41bdce2388cbb7ceeb23f09ad00702 | b401300aabc107d49011ad2efee4adcf452e817b | /blackbox_challenge/far_bot/Environments/CartPoleEnvironmentGN.py | 29dea027bd493b643ceaf7689cbf30164d00ae96 | [] | no_license | haukot/data_science_exercises | c12e1aaa13d0422ef715b3ffabce2d90cce4b0bf | 02f00f67bc3fce892805230109bed7952c9dba5e | refs/heads/main | 2023-02-27T07:19:52.034664 | 2021-02-05T02:04:04 | 2021-02-05T02:04:04 | 336,103,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,008 | py | from numpy import *
from ivisual import *
from ivisual.graph import *
class CartPoleEnvironment:
"""
This class implements CartPole Environment
@author Jose Antonio Martin H.
@version 1.0
"""
title ="CartPole Balancing"
input_ranges = [[-4.5,4.5],[-3,3],[-radians(... | [
"haudvd@gmail.com"
] | haudvd@gmail.com |
02bf9e8e92d3d9f73dd90af33e696742dd391024 | 645db2f250a5339cadf2842a93c79db62b70b1eb | /scripts/gatherposts.py | a016280364cee225f81614ff038f7adea308d712 | [
"MIT"
] | permissive | graycarl/iamhhb | e0fb6b648dc453cf2983debd52913e8dd6baf40b | cddbbba625ebf764c2e5c81ede2ddec0df64a6b0 | refs/heads/master | 2021-03-22T03:14:45.149753 | 2017-12-31T15:19:39 | 2017-12-31T15:19:39 | 98,027,428 | 0 | 0 | null | 2017-08-15T15:42:46 | 2017-07-22T11:36:33 | Python | UTF-8 | Python | false | false | 2,462 | py | """
Gather posts from https://git.coding.net/hhbcarl/graycarl.me.git.
It's a letor project.
"""
import os
import sys
import yaml
import logging
from django.utils import dateparse
from collections import namedtuple
Post = namedtuple('Post', ['slug', 'title', 'content', 'summary', 'pub_date'])
class Gather(object):
... | [
"hhbcarl@gmail.com"
] | hhbcarl@gmail.com |
0dc8421daeb74bb740b8768bb64a56548ce91385 | d238a360ec34990d4a3ceb980995f6e7478303f6 | /Forritun/Forritun 1/skila6.py | ef8a725737f2a52945deda1cc28d84c6fe183561 | [
"CC-BY-4.0"
] | permissive | EinarK2/einark2.github.io | 2da59e16a931b376a5206ad74f56d6c4bdcdce3f | ec121871d381fe62e29573e67b57baf80f31e90d | refs/heads/master | 2020-03-28T14:26:50.701576 | 2019-10-10T13:34:15 | 2019-10-10T13:34:15 | 148,487,309 | 0 | 1 | CC-BY-4.0 | 2018-09-12T15:16:26 | 2018-09-12T13:46:14 | HTML | UTF-8 | Python | false | false | 3,062 | py | #Höfundur Einar Karl
import random
val=" "
while val !="5": #Valmynd
print("--------------------------------------")
print("1. Random Tölur")
print("2. Talnabil")
print("3. Strengjalisti")
print("4. Samanburður")
print("5. Hætta")
val=input("Veldu 1-4 eða 5 til að hætta ")
... | [
"einarkarlp@gmail.com"
] | einarkarlp@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.