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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
710399c311e96fa14333f4bc99f4fb7e2ead09cb | 298b00c9c8da3811d99602045f7ddceaa9a40fe4 | /List-09/L9-ex008.py | 1552850aa04abfd825585da3a4952bca7447b9ca | [] | no_license | MariaGabrielaReis/Python-for-Zombies | 2154266d0858ee7bb0f1c143df4e82b47097f2a0 | 9fe0492fa9c42c360841029af8e56b4de46d7e61 | refs/heads/main | 2023-06-02T21:16:29.272813 | 2021-06-24T22:15:55 | 2021-06-24T22:15:55 | 338,445,297 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | # H. squirrel_play
# os esquilos na FATEC brincam quando a temperatura está entre 60 e 90
# graus Fahreneit (são estrangeiros e o termômetro é diferente rs)
# caso seja verão, então a temperatura superior é 100 no lugar de 90
# retorne True caso os esquilos brinquem
# squirrel_play(70, False) -> True
# squirrel_play(95... | [
"mariagabrielagreis@gmail.com"
] | mariagabrielagreis@gmail.com |
0971d3ea8bd8e43d4e6c7de3f98eec817c1012af | 1475e0769c7f9c0c4ede19f7686ed8ef219e763d | /01-oo/01-pessoa/python/modelo.py | 7b25a328b73807b198591895e81a2ab7a1308902 | [] | no_license | hvescovi/programar2020 | ea73efd6438239e77b70633935d0b4a32e5dcdf6 | eab13efd4329505d4354c86de55a305f42461832 | refs/heads/master | 2023-05-15T01:17:20.773602 | 2023-05-04T00:14:04 | 2023-05-04T00:14:04 | 239,891,090 | 3 | 10 | null | 2023-05-04T00:14:49 | 2020-02-12T00:07:26 | Java | UTF-8 | Python | false | false | 889 | py | class Pessoa:
# construtor com parâmetros opcionais
def __init__(self, nome="", email="", tel=""):
self.nome = nome
self.email = email
self.telefone = tel
# método que expressa o objeto em forma de string
def __str__(self):
return "\n" + self.nome + ", email: " ... | [
"hvescovi@gmail.com"
] | hvescovi@gmail.com |
ec7727370bda908c61bd6dffa2582b2e85827122 | 2a34596d5e3dc10998bc6288f0e59101e3ee1a91 | /bb_user/api/views/user.py | 53ccdc45a83ff4f9ed2a62ab498438a42d1e272e | [] | no_license | shaggy72023/test_backend | 09e8baa2ef29f90917bfd9cd21f6a861349c143c | 7e86215abb63a21b197f0ab7575d437192494f55 | refs/heads/master | 2021-07-02T07:52:19.706434 | 2017-09-22T05:45:12 | 2017-09-22T05:45:12 | 104,438,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | from django.views.generic import View
from bb_user.api.forms.user import LoginForm
from utils.api.exceptions import RequestValidationFailedAPIError
from utils.api.mixins import APIMixin
from bb_user.api.serializers.user import serialize, serialize_access_token
import bb_user.services.user
import json
class User(API... | [
"shaggy7202@gmail.com"
] | shaggy7202@gmail.com |
0d0d2ffc39978ee892064a0a6dd67844f78dbe82 | 7448b23adc31d1fcdd2225959aafd3436ba4624d | /My_Contacts/manage.py | ea71b81ea2eb2edd3f03518f437c5f27b5c898be | [] | no_license | nameis-vivek/Phone-contacts | a9326cdf22bc8811b11d5094a19551cad2272e6f | 6714d9ac5a2f6ad4fe68281c3a220ecdf1cd855f | refs/heads/master | 2020-12-26T08:40:59.340293 | 2020-02-23T11:02:28 | 2020-02-23T11:02:28 | 237,451,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'My_Contacts.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"nameis.vivek434@gmail.com"
] | nameis.vivek434@gmail.com |
14088b4fdd11f11038d1da3cbd5acfe1ee24cf8f | 44b0e7f892ccd57430f1ad25e340d136bfa01e66 | /Week12-utilities.py | 61f05375fb93af0cbe47e65cacccb1e4185df990 | [] | no_license | qwhite723/102-week-12-v2 | 6e43cc906fb95c5bfa80a5aa269cad9d04ba7c55 | e427d0bf1c1a53edbb7e802e6e54e919bd10fc78 | refs/heads/master | 2020-09-12T08:14:05.534525 | 2019-11-22T02:56:03 | 2019-11-22T02:56:03 | 222,365,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | # Incremental Build Model
# Quintin White
# CSCI 102-Section B
# Week 12 Part B
def PrintOutput(word):
print("OUTPUT",word)
def LoadFile(filename):
with open(filename, 'r') as file:
read = file.readlines()
return read
def UpdateString(string1, string2, index):
one = []
RS = ''
for... | [
"qwhite@mymail.mines.edu"
] | qwhite@mymail.mines.edu |
11e23a39ee50259b80807054237d052b14197563 | 62ca5ef5ef0308ac6153e247c36b5a88ed41a148 | /tp4/Ej1.py | f15e17ee602ffb99bcfd37217540b24eb6281c2f | [] | no_license | MCarlomagno/frro-soporte-g9 | 4efc0a757d556b8da219a2ff143e7ffddcd0c285 | 6fd2267f26d005a93f6002e2f40d0ea2b05ff491 | refs/heads/master | 2020-03-08T11:25:38.071354 | 2018-08-22T21:36:34 | 2018-08-22T21:36:34 | 128,097,237 | 1 | 0 | null | 2018-06-22T23:01:03 | 2018-04-04T17:32:29 | Python | UTF-8 | Python | false | false | 1,281 | py | from tkinter import *
def sumar():
try:
v1 = int(var1.get())
v2 = int(var2.get())
print(v1+v2)
except ValueError:
print("Valores inválidos")
def restar():
try:
v1 = int(var1.get())
v2 = int(var2.get())
print(v1-v2)
except ValueEr... | [
"marcoscarlomagno1@gmail.com"
] | marcoscarlomagno1@gmail.com |
6c79ae8cc7aed21c5f2b9410bcf90b219dedfe16 | 07af444dafa5bde373b0730e92d67e455d4ff4df | /SFData/StackOverflow/s36972087_ground_truth.py | 79f82ae3f49c2bb32dc969c91d323ecc4f7a516f | [] | no_license | tensfa/tensfa | 9114595b58a2e989780af0c348afb89a2abb04b4 | 415dcfaec589b0b14c5b9864872c912f3851b383 | refs/heads/main | 2023-06-30T14:27:38.217089 | 2021-08-03T01:33:30 | 2021-08-03T01:33:30 | 368,465,614 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | import tensorflow as tf
import numpy as np
train_images = np.array(np.random.random((10, 19)), dtype=np.float32)
train_labels = np.random.randint(0, 2, 10, dtype=np.int32)
train_labels = np.eye(2)[train_labels]
sess = tf.InteractiveSession()
x = tf.placeholder(tf.float32, shape=[None, 19])
y_ = tf.placeholder(tf.flo... | [
"tensfa@yeah.net"
] | tensfa@yeah.net |
5e2d7c42cd9a82ff6a1f3c604c74eecb8986bec7 | 114da0dc8dfb2599fa71f7f45afec2329bb71877 | /Python/NLP in Python App/NLP.py | 1fe281c00ad89787d3b83633fbcaf3a6f2c83ec3 | [] | no_license | DanielBakerDev/Portfolio | 867269ff037c8e9a780514257671b12d2d537b1b | 6d469cc07d03a4eeb52556675d4f0039d251809f | refs/heads/main | 2023-05-25T10:04:59.738364 | 2023-05-23T15:53:47 | 2023-05-23T15:53:47 | 261,299,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | class NLP:
def __init__(self, email, money, noun):
self.email = email
self.money = money
self.noun = noun
| [
"danielbakerr13@gmail.com"
] | danielbakerr13@gmail.com |
62a13abd4c0147da29cd785233f04f06aca6a23a | 2a8abd5d6acdc260aff3639bce35ca1e688869e9 | /telestream_cloud_qc_sdk/test/test_container_essence_consistency_test.py | a53e951acde1e1e1d545fa4c1388c5f5ecb32225 | [
"MIT"
] | permissive | Telestream/telestream-cloud-python-sdk | 57dd2f0422c83531e213f48d87bc0c71f58b5872 | ce0ad503299661a0f622661359367173c06889fc | refs/heads/master | 2021-01-18T02:17:44.258254 | 2020-04-09T11:36:07 | 2020-04-09T11:36:07 | 49,494,916 | 0 | 0 | MIT | 2018-01-22T10:07:49 | 2016-01-12T11:10:56 | Python | UTF-8 | Python | false | false | 1,600 | py | # coding: utf-8
"""
Qc API
Qc API # noqa: E501
The version of the OpenAPI document: 3.0.0
Contact: cloudsupport@telestream.net
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import telestream_cloud_qc
from telestream_cl... | [
"cloudsupport@telestream.net"
] | cloudsupport@telestream.net |
5c90209a2a85242d66565dc74c3d13c88a2f10b7 | e7b7505c084e2c2608cbda472bc193d4a0153248 | /DailyChallenge/LC_126.py | 6a71e599fd82c9936054243d450e4e182fae01a5 | [] | no_license | Taoge123/OptimizedLeetcode | 8e5c1cd07904dfce1248bc3e3f960d2f48057a5d | 3e50f6a936b98ad75c47d7c1719e69163c648235 | refs/heads/master | 2023-02-27T21:13:40.450089 | 2023-02-07T04:11:09 | 2023-02-07T04:11:09 | 170,044,224 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py |
class Solution:
def findLadders(self, beginWord: str, endWord: str, wordList):
#we dont need visited since we will remove the newLayer.values() for the words we have processed
wordList = set(wordList)
res = []
lowercase = string.ascii_lowercase
#layer is similar to queue ... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
48f18952541b70373ac9620dd16f19fbb00d011b | 53dd91c433c439b7714621f5b7b03f5fa7ef5362 | /metl/manipulation.py | a0910fe8565255493111cdfbb22b9cdae953d119 | [] | no_license | anilktechie/mETL | d49059961310e69327932f26d503e195f6e9a92a | f83711caba50cb9c94a7f77e7a56c6f8013b6037 | refs/heads/master | 2023-05-13T08:24:09.265481 | 2021-05-31T09:07:13 | 2021-05-31T09:07:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py |
# -*- coding: utf-8 -*-
"""
mETLapp is a Python tool for do ETL processes with easy config.
Copyright (C) 2013, Bence Faludi (b.faludi@mito.hu)
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, eithe... | [
"b.faludi@mito.hu"
] | b.faludi@mito.hu |
65c3bab2e7420705136ad6968b1f0240b1046e3e | 65424fc44dec137c0dab770969b329c75706207f | /profiles/migrations/0001_initial.py | 8b018e7904f83913498d255198dece56265dd939 | [] | no_license | asplesa/boutique_ado_v1 | ded96317a4ceaadf4c84f3061014c47bb681d639 | 7c47dc636e038edd421713951850f7cfd6b1fd3b | refs/heads/master | 2023-06-08T11:17:12.186414 | 2021-06-28T09:01:18 | 2021-06-28T09:01:18 | 378,146,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | # Generated by Django 3.2.4 on 2021-06-27 13:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_countries.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.A... | [
"reillys2004@gmail.com"
] | reillys2004@gmail.com |
b0ab0a394f153fee13caf873e077ff67746fe353 | 9202cff12bf1e9a5cb8a255af2a2acb2cf192abe | /run_command.py | b95f3e96cfa5dd626f92c4a873c18b1744a8cc25 | [] | no_license | Sparky-python/Arista_scripts | 1cc97296dadca9c80dc5b7ac9d49873234798083 | 84b3cd2bd20af83c18e2a3ba7c9a58661c9b8534 | refs/heads/master | 2022-06-27T08:41:50.085933 | 2022-05-11T16:50:49 | 2022-05-11T16:50:49 | 202,784,775 | 10 | 2 | null | 2019-08-20T16:28:42 | 2019-08-16T19:08:09 | null | UTF-8 | Python | false | false | 2,838 | py | #!/usr/bin/python3
import pyeapi
import argparse
import ssl
import ipaddress
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
# Legacy Python that doesn't verify HTTPS certificates by default
pass
else:
# Handle target environment that doesn't support HTTPS verificatio... | [
"54187620+Sparky-python@users.noreply.github.com"
] | 54187620+Sparky-python@users.noreply.github.com |
d8fc65947417b208d1c4cd93208dd2f4781db939 | 4c4532660a65007a59c8e8b3d93492a812a93ea4 | /ProductTagging.py | bf3846c2f7a908750b4853d86347071de5d9bec8 | [] | no_license | Sapphirine/TrendingProductsRecommender | 48883d65159b2cb1a3bf7d0ff79d789a954ad258 | 3247d08b9b80d4b65f16fbb51d3fcecfacbdda97 | refs/heads/master | 2022-12-13T05:25:57.283771 | 2018-12-23T05:51:20 | 2018-12-23T05:51:20 | 162,863,704 | 0 | 3 | null | 2022-12-09T09:31:18 | 2018-12-23T05:02:07 | Jupyter Notebook | UTF-8 | Python | false | false | 22,906 | py | import multiprocessing
import nltk.corpus
import argparse
import logging as logging
import os
import json
import warnings
import getpass
import findspark
from datetime import datetime
from multiprocessing import Process, Pipe
from nltk.corpus import wordnet as wn
from Memoized import Memoized
findspark.init()
import... | [
"alexdziena@gmail.com"
] | alexdziena@gmail.com |
6f44aa3d14b8e09dd70cc8cf2573ec85284cc3a8 | 903a813229812ae3d6a649eba4bfcec529dabc31 | /notes/4.py | 7fe5970c5af22a975bca309b11406e84379a67e6 | [] | no_license | tianya1/django | 4303da9bfcff8644e27b9d7f5ed949a1c46aa80a | c8bf3438c8a8cbcf7c85fd6390f8b67009a9fb36 | refs/heads/master | 2020-05-05T11:09:00.347225 | 2019-04-07T14:27:01 | 2019-04-07T14:27:01 | 179,976,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | # -*- coding: utf-8 -*-
# @Author: Marte
# @Date: 2019-03-20 09:02:44
# @Last Modified by: Marte
# @Last Modified time: 2019-03-20 09:12:31
scrapy startproject douban
scrapy genspider douban_spider movie.douban.com
| [
"noreply@github.com"
] | tianya1.noreply@github.com |
4e7eb91fe1d09211b9bd1a08ad237e37699b1484 | ac549e553263801bdc6962a10ebbe784dc2631df | /Python/graphs/traversal.py | e3e6b65ebfcfc36492062561afd6ccc02a61bcd2 | [] | no_license | Bishal44/DataStructure | e595890d18bde39e65f02a7ca3a6904c6070c3c8 | 939c47de6dcfe3b2578aaa0610d3cdc5726572c7 | refs/heads/master | 2020-09-10T22:40:46.368607 | 2020-03-28T12:15:08 | 2020-03-28T12:15:08 | 221,854,694 | 0 | 0 | null | 2019-12-10T15:47:45 | 2019-11-15T05:59:40 | Python | UTF-8 | Python | false | false | 1,863 | py | '''
Created on Sat Jan 11 2020
'''
graph = {'A': set(['B', 'C', 'F']),
'B': set(['A', 'D', 'E']),
'C': set(['A', 'F']),
'D': set(['B']),
'E': set(['B', 'F']),
'F': set(['A', 'C', 'E'])}
# dfs and bfs are the ultimately same except that they are visiting nodes in
# differe... | [
"bhattaraibishal704@gmail.com"
] | bhattaraibishal704@gmail.com |
97c825d02fcd6674a5d3500557278e550a12ee98 | 24ec32878c9a119bc9b1327c13deb2bb308793eb | /235_assn4.py | 0b4e6aba5c536bbb50158464a1cd453745d51a45 | [] | no_license | JulieSchneiderman/Prim-vs-Breadth-first-search | c84def4ed98c35bca163d1a65ef8253298240b84 | 8285018eccf5be38fcdc893c8b9c0a658a1aabe3 | refs/heads/master | 2021-01-19T13:31:54.172824 | 2017-04-12T21:45:33 | 2017-04-12T21:45:33 | 88,098,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,999 | py | #CISC 235 Assignment 4
#Julie Schneiderman - 10201092
''' “I confirm that this
submission is my own work and is consistent with the Queen's regulations on Academic
Integrity.”'''
import random
#Creates a Graph object with the following attributes
class Graph:
def __init__(self):
self.vertexList = {}
... | [
"noreply@github.com"
] | JulieSchneiderman.noreply@github.com |
71e14075bfcc9914d593bfe86486059770768c7e | 6a4fbd39640f2b249a0643e7de452e7a50498a93 | /env/bin/wheel | 4757f727641be52433626a6cc75ecfd78373cc8a | [] | no_license | choudharyab/python_django | 4d9cb27c45f257b2a369b61fbcf16d873ac7694c | ce382fc7278dfb8e52c597b22f8d3a77a43e71bd | refs/heads/master | 2020-03-18T06:35:14.321941 | 2018-05-30T04:50:15 | 2018-05-30T04:50:15 | 134,404,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | #!/home/tecture7/pharajinny/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"anup.choudhary@tecture.in"
] | anup.choudhary@tecture.in | |
3ea090fd1788488e4f260ee6ffb0662f85939cc4 | 89859d3866af3ce486b3027de6d59ea746796219 | /wipctv/__init__.py | 9420af8b9665da560e2994996f75e6a31d14f5b2 | [
"Apache-2.0"
] | permissive | a4saha/wipctv | 1e2795484733ef37ba75d73ba94718fc59d32497 | f289e306a9ea51c17853c58fd7e0af84dd8764cc | refs/heads/master | 2023-03-02T09:58:32.502254 | 2021-02-10T05:43:36 | 2021-02-10T05:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | #
# Copyright (c) 2019-2020 StephLin.
#
# This file is part of wipctv
# (see https://gitea.mcl.math.ncu.edu.tw/StephLin/wipctv).
#
# 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
# regardi... | [
"stephen359595@gmail.com"
] | stephen359595@gmail.com |
aeb610b09b0c9d2cd3f230690fa462bbab915093 | f125a883dbcc1912dacb3bf13e0f9263a42e57fe | /tsis1/Loop for/3532.py | e1fad768f54887c4a2ca4540e551ec7aadfa2c56 | [] | no_license | AruzhanBazarbai/pp2 | 1f28b9439d1b55499dec4158e8906954b507f04a | 9d7f1203b6735b27bb54dfda73b3d2c6b90524c3 | refs/heads/master | 2023-07-13T05:26:02.154105 | 2021-08-27T10:20:34 | 2021-08-27T10:20:34 | 335,332,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | #Задача №3532. Сумма кубов
n=int(input())
cnt=0
for i in range(1,n+1):
cnt+=i**3
print(cnt) | [
"aruzhanart2003@mail.ru"
] | aruzhanart2003@mail.ru |
b08ad2fefef80365d87004cef4629d3c62aa60b3 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/layout/legend/_traceorder.py | d5fe177e6cf14ddf521d4e55b0eef9d2d0fa8d2e | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 532 | py | import _plotly_utils.basevalidators
class TraceorderValidator(_plotly_utils.basevalidators.FlaglistValidator):
def __init__(self, plotly_name="traceorder", parent_name="layout.legend", **kwargs):
super(TraceorderValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
a1aaf46dd9471e77d464bc3887a9b0526889eeef | 343a1a47f71d3798b63f6d3fe3a69aa4b765fc67 | /test_query.py | fc3c8bd06b3d31d3438835aa9d09cf77aaa88ca0 | [
"BSD-2-Clause",
"MIT"
] | permissive | kosugi/wox.y-transit | d4c1b47d04994d9e37ef9e18451c097102f9d39c | 7a5c1ff98406cf54a30db1518ea73c2ec3f9efba | refs/heads/master | 2022-05-22T00:49:17.225837 | 2020-04-29T07:22:10 | 2020-04-29T07:22:10 | 259,849,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | # -*- coding: utf-8 -*-
import unittest
import re
from query import *
class QueryTestCase(unittest.TestCase):
def test_parse_names(self):
self.assertEqual(None, parse_names(''))
self.assertEqual(None, parse_names(' '))
self.assertEqual(None, parse_names('\t'))
self.assertEqual(Non... | [
"tomo@cry.ptomeria.com"
] | tomo@cry.ptomeria.com |
fdc1687c4cb91d245a23364be90633d4ced12a20 | 7bb07f688757cc0e4a9a58540e3a3a5ce1de3219 | /multirotor/src/AgentHelpers.py | 4d9d77c847ccb3e06dbda93aa0599b01d80a32cd | [] | no_license | rafi-vivanti/rl | ba7b62af1000a4c366c8b77d2ae212ef9005f41a | d082347428464923c138dfbf6b6f73fe6ff0d651 | refs/heads/master | 2021-05-11T05:57:16.876500 | 2018-01-14T19:08:34 | 2018-01-14T19:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,368 | py | from Common import *
from VectorMath import *
def getPosition(**kwargs):
return kwargs['agent'].client.getPosition().toNumpyArray()
def getOrientation(**kwargs):
return Quaternion(kwargs['agent'].client.getOrientation().toNumpyArray())
def getVelocity(**kwargs):
return kwargs['agent'].client.getVeloci... | [
"talaataboudakika@std.sehir.edu.tr"
] | talaataboudakika@std.sehir.edu.tr |
cf2f44b57da8e5e964a6491b7e038f64ac47a973 | 86bad28b490267101c11cb480ddad9f09805622b | /keras/keras39_cifar10_3_DNN.py | feea313e8c7dfa93ac36347e76652f8a7edb54aa | [] | no_license | minijaypark/bit_seoul | f097180929e15309e0cf44faa8ea75d954e5d629 | 86ddc9198fd05c234c422c7fbcae26fbf955276f | refs/heads/master | 2023-02-15T21:57:53.737352 | 2020-12-09T11:19:19 | 2021-01-18T14:46:27 | 311,254,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | # One Hot Encoding
import numpy as np
from tensorflow.keras.callbacks import EarlyStopping, TensorBoard
from tensorflow.keras.datasets import cifar10
from tensorflow.keras.layers import Dense
from tensorflow.keras.models import Sequential
from tensorflow.keras.utils import to_categorical
(x_train, y_train), (x_test, ... | [
"minijaiypark@gmail.com"
] | minijaiypark@gmail.com |
eca636f88013040d91112536d490c4cc646e4f0c | c00b2665d0f00070e17080785bebc940b69a0022 | /model.py | 6cb50d786dad03a6158092fbb406de0bb7878819 | [
"MIT"
] | permissive | mohsin5432/football-team-score-monitoring-flask | b0bab3542a21cdb3bc79ff8b704625b4af7f3fb1 | c4c62e5e27d2b324625117bb4054e5f1ddad4425 | refs/heads/main | 2023-05-17T01:36:22.051556 | 2021-06-03T16:14:22 | 2021-06-03T16:14:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,346 | py | import sqlite3
def pass_check(username):
connection = sqlite3.connect('insta.db' , check_same_thread = False)
cursor = connection.cursor()
cursor.execute(""" SELECT password FROM users WHERE username='{username}' ORDER BY pk DESC;""".format(username = username))
passs = cursor.fetchone()
i... | [
"noreply@github.com"
] | mohsin5432.noreply@github.com |
650c3934dcb1a4a2dcc9609b404fe3e2cafd1c55 | 9f30247de67e3f8a8cba146bc8bbacf57bbf6cc7 | /main.py | cf46e69e9a00e542b4c037a08ae57a7082e3ce19 | [] | no_license | adisrael/opti-project | c9ee80f91e2efdaf80c1f3825b0499b870d426ff | 6d46b0a2e8f5af2ceaa49c96eb2ad967f945578e | refs/heads/master | 2020-03-19T08:58:59.240855 | 2018-06-09T04:17:36 | 2018-06-09T04:17:36 | 136,250,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,010 | py | # from gurobipy import *
from gurobipy import Model
from gurobipy import quicksum
from gurobipy import GRB
from gurobipy import GurobiError
# import random
# import sys
# Run on Mac OSX: time(gurobi.sh main.py) in the folder containing file
try:
# Mencionar modelo (aqui va cualquier nombre
m = Model('decision... | [
"adisrael@uc.cl"
] | adisrael@uc.cl |
86886088855f18904eb8ec54503c050c44d54602 | 808b78503f15d72f278cb1211bef7f4d23672763 | /udn_nlp/util.py | a92b8cf54b7ac329a441c8345d606929439dbadc | [] | no_license | MCodeLab/udn-nlp | 8d10db6beb2bc5c9b5eabfdc3c4b37cbd8f827bb | 9a0601df8e6f9ee59bf75392aabd22604073af9b | refs/heads/master | 2020-04-17T23:47:53.245395 | 2019-01-24T17:31:16 | 2019-01-24T17:31:16 | 167,051,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,997 | py | from urllib.request import urlopen
import sys
import requests
import subprocess
import os
import errno
import datetime
import requests_cache # type: ignore
from typing import *
request_root = 'https://api.lib.utah.edu/udn/v1/'
dir_path = os.path.dirname(os.path.realpath(__file__))
# Cache UDN requests without expir... | [
"natquaylenelson@gmail.com"
] | natquaylenelson@gmail.com |
34c9ff3af63613fee8e761e8cca0904a4d006d4e | 9e6739b0ee06b79af38e94ef1af4f8bceb76f030 | /algoReco/valid.py | c328ae10fd430021cef73f46030eb18ce5b6c68c | [] | no_license | jhylands/battle | 084fa9e13698c7632acb211a495f91944d99c3d0 | a164878fe996b0e0c2eb538d339c4d4f702a3d0a | refs/heads/master | 2021-01-01T19:51:36.978021 | 2014-09-24T14:21:47 | 2014-09-24T14:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | import math
def rotate(coordinates,angle):
x = coordinates['x']
y = coordinates['y']
Xn = x*math.cos(angle) - y * math.sin(angle)
Yn = x*math.sin(angle) + y * math.cos(angle)
return {'x': Xn , 'y': Yn}
AircraftCarrior = [{'x':0,'y':0},{'x':0,'y':-1},{'x':0,'y':-2},{'x':0,'y':-3},{'x':-1,'y':-3},{'... | [
"james.space.ict@gmail.com"
] | james.space.ict@gmail.com |
fb2dc56539cdf51cd1d14fa04f375e98d0178ecc | ea16c6da19fce9a4dff085aaeff3ac12baa21d59 | /tests/test_obvs.py | 5febd213e3768347232d28f1e8c604c5c017648c | [] | no_license | changhoonhahn/specmulator | a31b17aeab1ba1a29118e431fd7558dd8bbc7e5b | 9453e7fcc30d74b732594bfb78f7e4f5d20bc95f | refs/heads/master | 2021-09-10T18:57:21.361837 | 2018-03-31T05:52:33 | 2018-03-31T05:52:33 | 106,511,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,710 | py | import numpy as np
import env
import util as UT
import obvs as Obvs
import matplotlib as mpl
import matplotlib.pyplot as plt
mpl.rcParams['text.usetex'] = True
mpl.rcParams['font.family'] = 'serif'
mpl.rcParams['axes.linewidth'] = 1.5
mpl.rcParams['axes.xmargin'] = 1
mpl.rcParams['xtick.labelsize'] = 'x-large'
mpl.... | [
"chh327@nyu.edu"
] | chh327@nyu.edu |
23e458c00cc1061016a1a200b2fd13050566f90b | f93da2d3a394d968bd61b2b58af8aa366f6a8591 | /main/views.py | b831f4e5259e635b8ec797ef9889e52dbe09c9c7 | [] | no_license | hurry-hub/site | 3bfa2a13a927d2aa986416da950742c3979e6131 | e730d76991497dedad6ada2cc1eb29839ec7366e | refs/heads/main | 2023-07-08T06:30:43.797344 | 2021-08-08T07:58:02 | 2021-08-08T07:58:02 | 393,893,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | from django.shortcuts import render
import json
from users.models import User
from chat_tool.models import Blog
# Create your views here.
def index(request):
a = Blog.objects.all().order_by('-id')[:5]
return render(request, 'mainbase.html', {'blogs': a})
def accounts_profile(request):
if reques... | [
"noreply@github.com"
] | hurry-hub.noreply@github.com |
4041bf407205690c4fd588dd50a7479aa0c6417b | 9c06acef707bd67b1ac315e4cf143f63b4e3d36d | /initializer7a.py | 7eec429afabd52ea3216ef26cbfd5b521085be86 | [] | no_license | guyer/CHiMaDPhaseFieldVI | 9fc4197e02f85218085b5437a7cdc7e50fe5c623 | 8093ac8f542d45b70a0b503f97c02f60c56fa31c | refs/heads/master | 2021-04-27T21:13:01.098211 | 2020-01-08T01:09:56 | 2020-01-08T01:09:56 | 122,394,314 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,612 | py | # script based on
# https://pages.nist.gov/pfhub/benchmarks/benchmark7.ipynb
import os
import pickle
import platform
import subprocess
import sys
import time
import yaml
import datreant.core as dtr
import fipy as fp
yamlfile = sys.argv[1]
with open(yamlfile, 'r') as f:
params = yaml.load(f)
try:
from sum... | [
"guyer@nist.gov"
] | guyer@nist.gov |
68836861363afd1c44fcb0dd2cdc94697292618a | 7fb9bfe9473f9d85a4eaa775d0dc2c270ab5313e | /simulation_results/ppe_090_wild_type/screen_7/intra_hospital/params.py | a5d693eb6abb8dc70a5ddbb4d185138448009197 | [] | no_license | htahir2/covid_intra-hospital_model | cfbe86d175ecd950a285e913c8c7c658f396917e | ab2ec3452303bff6fbf5e084cbc8fc80bd97c287 | refs/heads/main | 2023-06-19T16:40:59.681356 | 2021-07-20T06:55:13 | 2021-07-20T06:55:13 | 328,629,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,962 | py | """
@author: hannantahir
This file contains all the required parameters that are required for the model to work.
"""
import numpy as np
"""
#### Gerneral simulation_parameters #####
"""
#simulation_time = 1 # in months
time_step = 10 # in minutes
num_steps_per_day = 60*24/time_step
max_iter = int(num_steps_per_day ... | [
"thi.mui.pham@posteo.de"
] | thi.mui.pham@posteo.de |
8a692dcf1c7895d638939d50d99579e5a67fb22f | b50f28fcd1445c85aae8f2279dcc2a52690f4073 | /parse_gb_mcrA.py | e64e34a049da4f32325b37defe7dd545d67f7db5 | [] | no_license | camel315/microbiology | afc67a8d3a87ba3429bc61a71cb3941a14de7e06 | 2a3003245a7a33b3d5dfe28594d0e631d4bbd424 | refs/heads/master | 2020-03-09T10:27:58.214756 | 2018-05-25T09:07:45 | 2018-05-25T09:07:45 | 128,737,718 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,491 | py | #!/usr/bin/env python
"""find the corresponding 16S rRNA sequence in a genbank file for functional (mcrA) genes sequence.
DEPENDENCIES:
Biopython
"""
# load required packages
import sys
import re
from Bio import Entrez, SeqIO
from Bio.SeqRecord import SeqRecord
Entrez.email = "your.email"
## mcrA ha... | [
"noreply@github.com"
] | camel315.noreply@github.com |
47fa555272fd74b78bedcc3ff50355c0db7c798d | 2ebee13657852e0f509213faca587bdfe10014b2 | /setup.py | 4c6270da34f63c8caf8b947dec8659f9f18cc978 | [] | no_license | qiangsiwei/jiebac | aabd9437f6a4bd19a7cb4102484874eace84d630 | d978183d7e9ca3fc312c77f858e628655259451c | refs/heads/master | 2020-03-21T20:21:02.610840 | 2018-06-28T10:17:29 | 2018-06-28T10:17:29 | 139,001,652 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # -*- coding: utf-8 -*-
import os
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
# for osx
os.environ['CFLAGS'] = '-std=c++11'
extensions = [Extension("jieba_cpy",["jieba_cpy.pyx"],include_dirs=\
["/Applications/Xcode.app/Contents/Developer/Toolchains... | [
"qiangsiwei@sjtu.edu.cn"
] | qiangsiwei@sjtu.edu.cn |
5b9b1b13e99fcba14210feea8fbe51304e5f5a92 | 318707f31679d30280c51ca9dc003818779b5695 | /tests/test_released_data.py | 9de0ea859a0b7cc8f6b96c7fbc6843a4d3637905 | [
"Apache-2.0"
] | permissive | MarcSaric/gdc-ng-models | 2f9d0dd8afe65dea8f2cdd26d070a670e8191c00 | ef92b507de8e7e09886b8499d3d30c2a1d46b801 | refs/heads/master | 2022-11-30T10:29:06.871398 | 2020-07-02T19:36:06 | 2020-07-02T19:36:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,746 | py | import pytest
from sqlalchemy.sql.expression import func
from gdc_ng_models.models import released_data
@pytest.fixture
def fake_released_data(create_released_data_db, db_session):
def helper(
name="name", code="code", is_controlled=False, data_type="cnv", is_open=False,
):
node = released_da... | [
"noreply@github.com"
] | MarcSaric.noreply@github.com |
37573cdcf6dad3f7a77d40310b957808001f573c | 3e6f35ae5b603d4c18ea2b802643251487968d63 | /legacy/checkfiles.py | 8576100106e6b60b6026c15f7d8a3185137a69de | [] | no_license | gdsidlemath/mlb_modeling | 2a6305c5808b20150aada3c123c94a42b8ef2b92 | 512e0cdcd8ce8a73b2d480a89df9b96a49039a48 | refs/heads/master | 2021-01-01T23:03:09.370351 | 2020-09-17T13:17:04 | 2020-09-17T13:17:04 | 239,383,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from __future__ import division
from scipy import stats
import numpy as np
import cPickle as pickle
from definedataclass import GamePitchData
import sys
import math
with open('MLBDataJuly2016.pkl','rb') as input:
Data1 = pickle.load(input)
for i in range(0,100):
print [Data1.Inning[i],Data1.outpitch[i],Data1.... | [
"gsidle.math@gmail.com"
] | gsidle.math@gmail.com |
ddd7dae206499784efbd51e589fd4d5885dc7878 | 900538b72265209d65986f5faa5d3a2bf6d982c4 | /ExchangeEnv/bin/pip | 10cff6d9951ece9b7b2a47d564a0972ea06d63f7 | [] | no_license | nedstarksbastard/Exchange | 8a8f03759c7ed6adb5f38e472d29a83b9f91b64d | 91b4794352c20e4825ea518d00242fa8b6873aa0 | refs/heads/master | 2021-01-19T03:28:25.380318 | 2015-11-02T04:40:41 | 2015-11-02T04:40:41 | 45,372,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | #!/Users/fizi/PycharmProjects/Exchange/ExchangeEnv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"fizi@Fizis-MacBook-Pro.local"
] | fizi@Fizis-MacBook-Pro.local | |
fb20480488e3ac27cd370e6b80bbab2bc1acb43b | 7f50730ad6dae57777151b1a82e56c61bcac31c3 | /main/__init__.py | b33c2feb7239d34154a8bde1ed9b258e755980b1 | [] | no_license | itmo-wad/task03_Tatarov_Dmitriy | c1d64c14c57e87e90ca469e65bc9739a5fcd6331 | 0f7b2bf2950340430e2d993c1dd6ed6966b78ed9 | refs/heads/master | 2022-04-22T10:04:33.289841 | 2020-04-18T16:48:22 | 2020-04-18T16:48:22 | 256,803,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from flask import Flask
app = Flask(__name__)
app.secret_key = 'hello_world'
app.config.from_object(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///test.db'
SQLALCHEMY_TRACK_MODIFICATIONS = False
from main import models
from main import views
| [
"root@almosttchap.fr.kukuxumushi.icu"
] | root@almosttchap.fr.kukuxumushi.icu |
9054fc4b301d59244d0bdff543a2efdecb9e684e | c175a97a4a950eb4a3adcbfb7d1349499252e011 | /djangoapp/sample_env/bin/easy_install-3.5 | c7b6637257c153d0a1a61f0d95b5024738e5c274 | [] | no_license | kishorekumarkkk/django | 207353e0fdda97382a60359c97dc56a7aea3bcb1 | f3e290d3566a292c3d3192c4281d173cda6ec1fa | refs/heads/master | 2020-08-02T10:59:00.760397 | 2019-09-27T13:31:45 | 2019-09-27T13:31:45 | 211,325,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | 5 | #!/home/starsystems/Documents/Sample/djangoapp/sample_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"latheesh@star-systems.in"
] | latheesh@star-systems.in |
300a44200811432d661ee357ff954741ce18d469 | b2d7ef9491a80b44aa01751519f2d285bac938d7 | /NetworkAnalysisRNAnoPDB.py | 6eb3aaa533f5db73ce6daa75f0d486545880817c | [] | no_license | nicolenlama/WeeksScripts | 350dfc425227a98d46a7da1ca41843ede6741769 | 943ae2f73b073a25479546da9247d867f3ac13fa | refs/heads/master | 2023-01-10T13:20:29.531635 | 2023-01-04T22:51:06 | 2023-01-04T22:51:06 | 137,272,256 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,487 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 30 13:51:19 2018
Network Graph to test integrity of base pair detection. (inspired by
A.L. and N.L. meeting)
Note that a cutoff is imposed in the resCorr Function!!!
@author: nlama
"""
######################## IMPORT NECESSARY LIBRARIES ##########################... | [
"noreply@github.com"
] | nicolenlama.noreply@github.com |
cd7b3ff1015a79bb290f2a3a576695c305ebd380 | e92e59fc797c3a0196a1eb10a7b6ffb57708a7a1 | /py/cluster.py | a316f89bc03bd66078972b144b73453677f42ab9 | [] | no_license | bederson/qa | 8898c0abb7eda2bca27113b11f6a7627bbfb178e | 0a6ad7b3f3f02e8eba2510b0338d9cac73637a8a | refs/heads/master | 2021-01-25T12:30:43.470830 | 2014-07-08T14:13:43 | 2014-07-08T14:13:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,194 | py | #
# This is part of "python-cluster". A library to group similar items together.
# Copyright (C) 2006 Michel Albert
#
# This library is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 ... | [
"anne.bobrose@gmail.com"
] | anne.bobrose@gmail.com |
dc346aff4ab8aec375ecc865fe723437ac5f7d1e | 3cb51259f14285e56a86416662b2b5d0d00a0266 | /eve-download-sov-maps.py | 5784e9e9d673918dc6a4a5a87b1e88ca32afa5fc | [] | no_license | sdonovan1985/eve-sov-map-downloader | 3810c6ba54e601859b37460f60433c84cf4c2b8a | cedaed2906be450a7bf2c68d5a564d543f3753dc | refs/heads/master | 2021-01-21T14:43:15.460346 | 2016-06-13T19:25:22 | 2016-06-13T19:25:22 | 59,485,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | import urllib2
import os.path
def get_file(url, filename):
attempts = 0
savepath = "sov_maps/%s" % (filename)
if os.path.isfile(savepath):
print "%s already exists" % (savepath)
return
while attempts < 3:
print "Attempt %d : %s" % (attempts, url)
try:
r... | [
"sdonovan@gatech.edu"
] | sdonovan@gatech.edu |
e97f2fe3ef2c6df9a278d835ca974de5dbb54239 | 77ffbed85ca1a37980bdb967631fda17c1e231fe | /effects/photo_invert.py | d4d6be8b6f21f13288e092fe8c04120c5e34b59d | [] | no_license | fricker12/Photo_Booth_Telegram_Bot | 40eebe80f0f18ec14ff23eb5332b01986d72bf97 | 8db54e05eb2c573c8ee895f9a7a0c4457665350f | refs/heads/master | 2023-03-22T06:55:37.325631 | 2019-05-24T14:56:15 | 2019-05-24T14:56:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cv2
import os
def apply_invert(photo, message, bot):
'''
Inverts the message given
:param photo: path to an image file
:param message: the message sent to the bot
:param bot: telegram bot
:return: inverted image
'''
opened_photo = c... | [
"noreply@github.com"
] | fricker12.noreply@github.com |
d7f53e22fde0ca53ee451f3ff3b5e007a16c8a41 | 9c61ec2a55e897e4a3bb9145296081c648d812c4 | /docs/cd/06443007程式碼/ch01/1-8.py | d27b4e821287c1d67dba80b1f5b27da4d527b6e6 | [] | no_license | wildboy2arthur/ML-Class | 47899246251d12972a6d3875160c1cc8d1052202 | 345c86e3f8890919d59a63a79674acbdcd4577c4 | refs/heads/main | 2023-07-16T11:32:07.683652 | 2021-08-24T08:25:04 | 2021-08-24T08:25:04 | 399,388,026 | 0 | 0 | null | 2021-08-24T08:18:36 | 2021-08-24T08:18:35 | null | UTF-8 | Python | false | false | 240 | py | def cal_price_dict(k_cost):
rate = 0.03
nt_cost = k_cost * rate
inc = 0.2
nt_price = nt_cost * (1 + inc)
data = {
'k_cost': k_cost,
'nt_cost': nt_cost,
'nt_price': nt_price
}
return data | [
"1101404110@nkust.edu.tw"
] | 1101404110@nkust.edu.tw |
28de8a5346c0302e5c29884b041a8ac2b71aa5ac | a44c4aa814fc388533e7e7d573dd3f18243af48c | /Lesson 4/problem3.py | 2f3179c8f5ea0e9e858de45a9740ff8f59dfa393 | [] | no_license | Jadakis/Unit-3_Lesson4 | c608bf23dad027cbaddbb4a786e0ab6c99edb9eb | 2ab281d865d96f93c88a343d00fa1939d4c071ae | refs/heads/master | 2020-04-09T09:29:49.740062 | 2018-12-03T18:28:09 | 2018-12-03T18:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | e = 89
m = 95
h = 87
s = 84
a = e + m + h + s / 4 | [
"noreply@github.com"
] | Jadakis.noreply@github.com |
e54c0547e26521c86dc87571c8a0b466c9e91a8b | 6f795c1b977d6256b582a48bcb178a3e9a4bd505 | /exploit/web/Zabbix/sql_injection.py | 104780ebafe1ddcc1895cb238a3a142d4c6e9286 | [] | no_license | w4ter/myscan | a23faaeb9b01f1e1c8c26112bb57cd00e1482d8f | 6555033f932fb7441b59de4f2faf099815e685e7 | refs/heads/master | 2023-08-21T15:57:31.380321 | 2021-10-25T09:12:23 | 2021-10-25T09:12:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,933 | py | # coding=utf-8
# @Author : zpchcbd HG team
# @Time : 2021-09-15 11:58
import hashlib
from colorama import Fore
from tqdm import tqdm
from core.MyGlobalVariableManager import GlobalVariableManager
from exploit.web import BaseScript
from core.MyEnums import *
from core.MyAsyncHttp import *
# fofa: app="ZABBIX-... | [
"1352483315@qq.com"
] | 1352483315@qq.com |
4c4e384257a8241bd1e50f269affbb7ba12233fc | 984e3b755cb11c1386360d6ca9260470ab002213 | /tubers/youtubers/views.py | 80c42fb585464d3e198ac5a6478ab8df23f2006e | [] | no_license | tussshar27/Youtubers-Clients-Business-Application-Project-in-Django | 9de35a8bba738329cb2108e0c824eb6048ca6ba6 | e6915b9d9c4b0d7f53d310155d32e3dbe51ee4b5 | refs/heads/master | 2023-07-06T07:47:32.992559 | 2021-07-29T09:13:56 | 2021-07-29T09:13:56 | 372,147,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,325 | py | from django.shortcuts import render, get_object_or_404
from .models import Youtuber
# Create your views here.
def youtubers(request):
tubers = Youtuber.objects.order_by('-created_date')
city_search = Youtuber.objects.values_list('city', flat=True).distinct()
#note: values_list() gives array of item... | [
"tushar.annam@gmail.com"
] | tushar.annam@gmail.com |
4da999cb489a900fa165b6cd924ab3776644bd18 | 9973dd9a35333f1b24e4c1e3cd2098391d17e193 | /clones/migrations/0002_auto_20200216_2103.py | d210099b236272054745ccd1c53767889b1d5bc6 | [] | no_license | smilepogz/FinalTrelloClone | 5140f804ceeb02e6969cb5693daa3cad7e296961 | 9affade23a0b911baa5fa11d9d2ce83e3db669e7 | refs/heads/master | 2021-01-04T11:20:08.893932 | 2020-02-17T13:44:11 | 2020-02-17T13:44:11 | 240,524,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # Generated by Django 3.0.3 on 2020-02-16 13:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('clones', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='boardlist',
name='title',
... | [
"you@example.com"
] | you@example.com |
020942a036c94976bc69092a9f4d19b9c8c7ad90 | 8f455679fdb8e05c4c78141a8065250696d68d89 | /MultiNetV1.py | f46219308f3cf2135c2153d96f56870b3514b6ff | [
"MIT"
] | permissive | x5g/dogs_vs_cats | 63a17ac914ded5850d6d4e745408d50e4d242f74 | 8a6b992fe9abc6b20b31729eaec79ca8d6ec12e0 | refs/heads/master | 2022-10-20T02:25:51.097115 | 2020-06-09T17:21:52 | 2020-06-09T17:21:52 | 271,065,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,326 | py | import plaidml.keras
plaidml.keras.install_backend()
import os
os.environ["KERAS_BACKEND"] = "plaidml.keras.backend"
import keras
import matplotlib.pyplot as plt
import numpy as np
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
ROWS = 299
COLS = 299
CHANNELS = 3
batch_size = 32
epochs =... | [
"1098766468@qq.com"
] | 1098766468@qq.com |
8e3f054d598f85623ae2376aac935bda04e154d6 | afbae26b958b5ef20548402a65002dcc8e55b66a | /ironstubs/process_stubs.py | 570dd3fd93b8d1d96302c69f2f0d497a9dd5adf3 | [
"MIT"
] | permissive | gtalarico/ironpython-stubs | d875cb8932c7644f807dc6fde9dd513d159e4f5c | c7f6a6cb197e3949e40a4880a0b2a44e72d0a940 | refs/heads/master | 2023-07-12T01:43:47.295560 | 2022-05-23T18:12:06 | 2022-05-23T18:12:06 | 95,340,553 | 235 | 88 | NOASSERTION | 2023-07-05T06:36:28 | 2017-06-25T05:30:46 | Python | UTF-8 | Python | false | false | 6,253 | py | """ Stub Generator for IronPython
Extended script based on script developed by Gary Edwards at:
gitlab.com/reje/revit-python-stubs
This is uses a slightly modify version of generator3,
github.com/JetBrains/intellij-community/blob/master/python/helpers/generator3.py
Iterates through a list of targeted assembl... | [
"gtalarico@gmail.com"
] | gtalarico@gmail.com |
b135b8d196ad40b7bac0b04136cfef94ca3dbc37 | 962a553b880b2ce6f361692ea62ee2fad9cf4328 | /tests/conftest.py | 6d75f80ee75b677f6625c2d4a58d931272f257a1 | [
"Beerware"
] | permissive | tlochmanczyk/faceRecognition | 5a28b18deda28e8c515bcc24d1cfa89be1e3a51d | 75819cc32ff323eae24a4766b2e285ec80115971 | refs/heads/master | 2021-02-16T05:26:40.884796 | 2020-04-01T20:32:04 | 2020-04-01T20:32:04 | 244,971,100 | 0 | 0 | NOASSERTION | 2020-03-26T09:18:35 | 2020-03-04T18:11:16 | Python | UTF-8 | Python | false | false | 235 | py | # -*- coding: utf-8 -*-
"""
Dummy conftest.py for ml_cloud_model.
If you don't know what this is for, just leave it empty.
Read more about conftest.py under:
https://pytest.org/latest/plugins.html
"""
# import pytest
| [
"bartek.jastrzebski0010@gmail.com"
] | bartek.jastrzebski0010@gmail.com |
9fabaf664d6dbaf4dd42fc7eb23fb3b411cfd395 | 845d8e6816e91474e673b6cda452254d40c65e5c | /django_mailbox/transports/mmdf.py | ad462849609331fa0f5cdc9bf69e107179dd2cb7 | [] | no_license | redtoad/django-mailbox | d0847f7f29f4e4459045e8d9d3d5d1406968175b | 6da17053d495bee58ea78d4fb394d7618aeaab1a | refs/heads/master | 2021-01-01T15:36:55.409316 | 2013-06-12T06:50:25 | 2013-06-12T06:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from mailbox import MMDF
from django_mailbox.transports.generic import GenericFileMailbox
class MMDFTransport(GenericFileMailbox):
_variant = MMDF
| [
"me@adamcoddington.net"
] | me@adamcoddington.net |
10a7004e11ee3d6829e1247367be945aa8b0c793 | e0750245bc531977b80084e09c8a2ac705bbb7c8 | /prompts/models.py | ddb7ba740b9a36fe057b036af50503920b37b550 | [] | no_license | adganong/promptme | 66f1515ff571eb96c3a3f2f3e34e09ad3db9d219 | 2144098d369c212013eb679182f0f0c58c13826e | refs/heads/master | 2021-04-28T12:59:17.163277 | 2018-02-25T02:36:11 | 2018-02-25T02:36:11 | 122,092,495 | 0 | 0 | null | 2018-03-24T01:19:32 | 2018-02-19T16:51:43 | Python | UTF-8 | Python | false | false | 2,275 | py | from django.db import models
from django.conf import settings
from django.urls import reverse
from rest_framework.reverse import reverse as api_reverse
# Create your models here.
class Genre(models.Model):
# Hidden: PK or id. This is auto generated by django when... | [
"adam.b.ganong@gmail.com"
] | adam.b.ganong@gmail.com |
cb867fdd9d29b3f242b3d3f58d314ad45a8a2c10 | 66d7de296991792b0b0c9a8288cb24ae994e327a | /pytorchtocaffe/pytorch2caffe/caffe_prototxt_op.py | 755712be933ee9acfe9c927de7e3fc4d7aa7dcaf | [] | no_license | Wangyf46/PyTorch2Caffe | 6b9911d6feb15f2f1897205232fbece97623d313 | c18f89fe571145f7063bc2118d0fe4e9a25bcad0 | refs/heads/master | 2020-09-09T07:12:57.180456 | 2019-11-13T07:34:31 | 2019-11-13T07:34:31 | 221,385,158 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,676 | py | #!/usr/bin/python
#_*_ coding:UTF-8 _*_
#pytorch version = 1.0.0
from __future__ import print_function
import torch
import torch.nn as nn
from Caffe import caffe_net
import torch.nn.functional as F
from torch.autograd import Variable
from Caffe import layer_param
from torch.nn.modules.utils import _pair
import numpy as... | [
"noreply@github.com"
] | Wangyf46.noreply@github.com |
8025babf0e4a1c958a945d138f5f490480bc4922 | ce02062c2a592a95d589be426f82e05c23cf251d | /bubbleSort.py | 1210145336966c0affe7bbc1b5a046e642ce60bf | [] | no_license | icaromsc/PythonExamples | cc46fd889dda5fede2031259305a5d1f2b66a5a5 | 58a9818a706c79ecaec1189e11584c21b55ae762 | refs/heads/master | 2020-04-02T18:57:40.366936 | 2016-07-27T05:45:36 | 2016-07-27T05:45:36 | 64,279,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | #recebe um vetor de inteiros por parametro
def bubbleSort(v):
for i in range(len(v)):
for atual in range(len(v)-1): #realiza for encadeado e compara elemento n com todos os outros do vetor
if(v[atual]>v[atual+1]):#compara se o elemento da posição atual é maior que o próximo
... | [
"noreply@github.com"
] | icaromsc.noreply@github.com |
70591458bc7b1c652055f61ef7c7e70680bfdac8 | e1fa5f913b1ff635a44f7e9db42baad07f9edfc9 | /app/app.py | 0616e1e7e66dec2a07243ec1c76b1d15ab6e3adb | [] | no_license | ariakerstein/NotesApp-flask | 935edf3c34f2b4997a1b331894bccf0dd711cd00 | 995f8d695d51435a0a406e9cbef74c93897e5f01 | refs/heads/master | 2016-08-12T03:58:27.509303 | 2015-11-19T15:31:07 | 2015-11-19T15:31:07 | 45,791,819 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import os
from flask import Flask
from micawber import bootstrap_basic
from peewee import SqliteDatabase
APP_ROOT = os.path.dirname(os.path.realpath(__file__))
DATABASE = os.path.join(APP_ROOT, 'notes.db')
DEBUG = False
app = Flask(__name__)
app.config.from_object(__name__)
db = SqliteDatabase(app.config['DATABASE']... | [
"aakerstein@walmart.com"
] | aakerstein@walmart.com |
61778768f52595b4b43735fbfb3782cbaa5d6f95 | 2d82b8b45fd1bb6ebac355151529d072568434d0 | /util.py | 33d0398c02530439f57eb923c188402f190a6210 | [
"MIT"
] | permissive | Minhphuong1989/phuongle89 | f0e3917142fc336710d324581ae082f14aff785f | 8f83b9ddb5e144e97b8483033480e726d9c6abd8 | refs/heads/main | 2023-06-03T17:41:22.519850 | 2021-06-21T08:41:56 | 2021-06-21T08:41:56 | 365,459,138 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,098 | py | import torch
import torch.nn.functional as F
from torch.utils import data
from torch import nn, autograd
import os
import matplotlib.pyplot as plt
google_drive_paths = {
"GNR_checkpoint.pt": "https://drive.google.com/uc?id=1IMIVke4WDaGayUa7vk_xVw1uqIHikGtC",
}
# https://drive.google.com/uc?id=1IMIVke4WDaGayUa7vk_... | [
"noreply@github.com"
] | Minhphuong1989.noreply@github.com |
02405e0001cf5846244e9d69773d9a9e7158254b | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/SSD_for_PyTorch/configs/paa/paa_r50_fpn_1.5x_coco.py | 816c773695c011d9bf568083b9cd4e991e0abf1e | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 713 | py | # Copyright 2022 Huawei Technologies Co., Ltd.
# 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... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
d8c486377235fc2e4c1cceea40d16614e0a55c16 | dcba8e9d5e3661f3f1af5121e5d00a80c7107ba5 | /light_sensor_server.py | 1873c93c3c8bf091c9767e4ee083fd92056dc59d | [] | no_license | mmclsntr/grove_server | 206aaa83fd86aaeb320f3f0cad066f984f52ab4e | 80be473c5b500c7888c3b67a8e2a074d5644cca3 | refs/heads/master | 2021-07-16T18:05:26.782273 | 2017-10-24T12:22:05 | 2017-10-24T12:22:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | from datetime import datetime
import socket
import time
import grovepi
light_sensor = 1
grovepi.pinMode(light_sensor,"INPUT")
address = ('0.0.0.0', 4011)
max_size = 1000
print('Starting the service at', datetime.now())
print('Wating for a client to call')
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s... | [
"hitorans@icloud.com"
] | hitorans@icloud.com |
46056e465412c8a0915a39adf4b3e83624dc34d3 | 98af46eeb20987d67e09adb4553e713a2fba6c36 | /perfectpitch/onsetsdetector/model.py | fbf2603ffd3f1b66142e6cd5f5986f87793a315b | [
"MIT"
] | permissive | ArmanMazdaee/perfectpitch | 108102d08aef53799a44aac540fb698da853bb52 | 2ea9ca47945a664c20d168bef4f4a15c7a5f9fb8 | refs/heads/master | 2021-07-11T05:43:46.521676 | 2020-08-10T05:30:38 | 2020-08-10T05:30:38 | 199,030,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,004 | py | import math
import torch
from perfectpitch import constants
DROPOUT = 0.1
def positional_encoding(x):
length = x.shape[0]
dimension = x.shape[2]
position = torch.arange(0, length, 1, dtype=torch.float, device=x.device)
div_term = torch.arange(0, dimension, 2, dtype=torch.float, device=x.device)
... | [
"arman.maz1373@gmail.com"
] | arman.maz1373@gmail.com |
b5c74ec8026d3982cfa0c6ecd74fa67b38b3ffb8 | 18ad603848489e5d32e7b6784841fbec1fa5ef3f | /parse_content.py | 63631b7271fb44e1dd087a7b5e8b137912b36a4a | [] | no_license | garg-ankush/notes-email-sender | 898e12dd109288916529695e41713e80da8fa75f | 32cd53e991d52ee4f02522860658610d1957b415 | refs/heads/master | 2023-03-07T02:30:44.216938 | 2020-06-20T19:41:04 | 2020-06-20T19:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | from selector_service import SelectorService
class ContentParser:
def __init__(self):
self.sample_entries = SelectorService().select_random_entries()
self.content = None
def parse_selected_entries(self):
content = ''
for item_index in range(len(self.sample_entries)):
... | [
"unkushgarg@gmail.com"
] | unkushgarg@gmail.com |
6204778bccce5acd82eee6997003e783a16005fd | a939e018333a9ecd26ddc618f99835b7eb381686 | /.svn/tmp/tempfile.2.tmp | 509885ba67010786fd018501957f1787d480a5c8 | [] | no_license | cash2one/crawl_youtube | bff5ba254001c2f31f770e55a4aca39bc54e45ee | 0dc40186a1d89da2b00f29d4f4edfdc5470eb4fc | refs/heads/master | 2021-01-16T22:30:17.800282 | 2016-02-18T11:50:09 | 2016-02-18T11:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | tmp | #!/usr/bin/python
# coding=utf8
# Copyright 2015 LeTV Inc. All Rights Reserved.
# author: gaoqiang@letv.com (Qiang Gao)
import os
import signal
from le_crawler.common.logutil import Log
thrift_logger = Log('thrift.server.TServer', 'log/thrift_filter.error').log
from optparse import OptionParser
from thrift.transport... | [
"zjc0516@126.com"
] | zjc0516@126.com |
6951735b5119448cb7a86cf403b941f92733e4b0 | f46966a5e49a6138182635a4850738a18eec01e5 | /scripts/utils/bcbio_prep_cwl_genomes.py | d704120ef6fa0e7407cca8ec06c5c6a3272e0319 | [
"MIT"
] | permissive | jchenpku/bcbio-nextgen | 44a9247a0e1314aaba66d1f9941540ddb2993bde | 9ddbfcc6f2595298ae8aad3adfa6a568a2a4c62f | refs/heads/master | 2020-08-01T03:06:30.695158 | 2019-10-07T00:21:32 | 2019-10-07T00:21:32 | 73,585,332 | 1 | 0 | MIT | 2019-10-07T00:21:33 | 2016-11-12T23:49:31 | Python | UTF-8 | Python | false | false | 2,642 | py | #!/usr/bin/env python
"""Clean and prepare a set of genomes for CWL usage and upload.
bcbio with CWL can read directly from a reference genome folder
without using Galaxy location files. This allows both local and
remote usage on object stores (Arvados, DNAnexus, SevenBridges, Synapse, S3).
This copies from an existi... | [
"chapmanb@50mail.com"
] | chapmanb@50mail.com |
000ad2bfe0221337ebe78b33b4c1046aed21085d | 46b432cd3557038c454601367b878f889c9b6a8f | /kiyuna/tutorial04/test_hmm.py | b2b0fc5a973faf6fbfb2ad7d8772238651f39b66 | [] | no_license | tmu-nlp/NLPtutorial2019 | 84ceec06568fd9d899a686658fb8851466133375 | d77d199c50cd37d70e462209a7bfcd4dee9140a1 | refs/heads/master | 2020-05-14T13:34:05.336594 | 2019-09-25T02:25:41 | 2019-09-25T02:25:41 | 181,814,723 | 1 | 0 | null | 2019-08-01T18:53:54 | 2019-04-17T04:04:06 | Python | UTF-8 | Python | false | false | 3,896 | py | '''
隠れマルコフモデルによる品詞推定
'''
import os
import sys
import subprocess
from collections import defaultdict
from math import log2
os.chdir(os.path.dirname(os.path.abspath(__file__))) # cd .
def message(text):
print("\33[92m" + text + "\33[0m")
def load_model(model_file):
possible_tags = defaultdict(int)
emi... | [
"kyuna.prog@gmail.com"
] | kyuna.prog@gmail.com |
d7b308df0f872cf4225de6e4cc5033a3f2c886e2 | c55758fe1b61828d4e8e46787e6c1683a5244c9b | /netCompile/server.py | c01460aeff9f71d6d37cd289667e9124d9551c29 | [] | no_license | jiyudonggithub/WebSpider | b5625bb2a2c4b448ff4d7c66ebb70c0e16da1e8d | cf171e501ed75efedadeff80abcf33605041cd58 | refs/heads/master | 2023-01-03T11:10:47.516326 | 2020-11-04T03:26:38 | 2020-11-04T03:26:38 | 306,371,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : server.py
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
2020/10/31 10:10 yudong 1.0 None
'''
import socket
sk = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# 绑定ip端口
sk.... | [
"yudong.j@icloud.com"
] | yudong.j@icloud.com |
0ac777ad94ace5e2bee7f20e8f1433d23de99aa1 | ad9b830df69c9005cc7c27b4c873adb89b1cd04c | /python_code.py | e6d8fce5e513b71add2165b3e3687489f96ee16e | [] | no_license | Zaheerabbas14/Coursera-Capstone-Projects | 5cab070573f63027db7396c346bf2e3cccc32b89 | a27ca5d97e2a3d0ac2c3705f27f581eeb6ac36c5 | refs/heads/master | 2020-06-16T19:26:40.099175 | 2019-08-18T13:45:32 | 2019-08-18T13:45:32 | 195,677,972 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | print ("Hello Github!")
| [
"zaheerabbas14@gmail.com"
] | zaheerabbas14@gmail.com |
b7c583ef1f04bd6898e7d5f5f6e32b370f517dec | c4f60b760b87b3db7fd225246d9baaf1417fa06f | /practiceLearning.py | b8272e81127f8fe54869a09f50107a8ceaa9aef4 | [] | no_license | joeythaman/collatzConjectureML | b0fa23263cd31a24d3c5db889eeff1cce0c0132c | c0cb9e391e26f0f20a9a204217a51af37b137049 | refs/heads/master | 2022-11-24T23:37:42.243949 | 2020-08-02T02:57:03 | 2020-08-02T02:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | import tensorflow as tf
from tensorflow import keras
# first neural network with keras tutorial
from numpy import loadtxt
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
# load the dataset
dataset = loadtxt('data_1000.csv', delimiter=',')
# split into input (X) and output (y) v... | [
"jthaman@stanford.edu"
] | jthaman@stanford.edu |
9eaca329896f918cafe90043d0c64b601edc3691 | 7218199f8a9dc8442a273dd0ec2341e5658ac4c8 | /situacao/migrations/0010_auto_20190412_1704.py | f1c3efb10d12b9fdb8d2d5966d53cfc644365d03 | [] | no_license | catalunha/cata_django | c96fddb36941cc84f3abd91491dcac217cfa3034 | 47056d5ba760346e24861fdcc595fb816eeae597 | refs/heads/master | 2023-05-25T17:30:34.451476 | 2019-04-23T21:27:16 | 2019-04-23T21:27:16 | 180,234,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # Generated by Django 2.1.3 on 2019-04-12 20:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('situacao', '0009_auto_20190412_1704'),
]
operations = [
migrations.RemoveField(
model_name='arquivo',
name='ativo',
... | [
"nextlevel.servidores@gmail.com"
] | nextlevel.servidores@gmail.com |
4a569db90d1f01612e008fe7a0aa4dd730cbbd65 | 059686d16aeea5629e306c1215e225e53ba5eebd | /build_index.py | 009c54c5f7291312f6f00e644dd3c55e7e99f572 | [
"MIT"
] | permissive | Raj-S-Singh/Vector-Space-based-Information-Retrieval-System | 2d27467869335d523a8cca4df25b3098764dd77e | a32f5d62c05893a450cdd3a36fb262e5f4843dfd | refs/heads/master | 2023-04-29T07:55:44.811770 | 2021-05-18T18:51:39 | 2021-05-18T18:51:39 | 368,621,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,764 | py |
# Wikipedia files used: AA - wiki_10 to wiki_29 (10 files)
# Group 3
# Lakshya Agarwal 2017B5A70904P
# Anuj Hydrabadi 2017A8PS0420P
# Samarth Gupta 2017B4A70467P
# Raj Shree Singh 2017B4A70808P
# Aditya Vishwakarma 2017B5A70954P
import pandas as pd
import numpy as np
import re
import pickle
import n... | [
"rssingh1999david@gmail.com"
] | rssingh1999david@gmail.com |
c697740729c72361e89fa3f8b66eec1705d07e84 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R3/benchmark/startPyquil348.py | c41069924278a31fe96eac76877e55e4208814cf | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | # qubit number=4
# total number=13
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(1) # number=2
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
1af9746ec4cafd840ab09d82afe8460f8f91246c | 27ece9ab880a0bdba4b2c053eccda94602c716d5 | /.history/tf_regression_logistic_20181130085723.py | 63a5da989d271aad51d7c4b5ba99da863f646db0 | [] | no_license | Symfomany/keras | 85e3ad0530837c00f63e14cee044b6a7d85c37b2 | 6cdb6e93dee86014346515a2017652c615bf9804 | refs/heads/master | 2020-04-08T20:21:35.991753 | 2018-11-30T08:23:36 | 2018-11-30T08:23:36 | 159,695,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,658 | py | import matplotlib.pyplot as plt
import tensorflow as tf
import numpy as np
import os, argparse
"""
Any interaction with your filesystem to save persistent data in TF needs a Saver object and a Session object.
The Saver constructor allows you to control many things among which 1 is important:
The var_list: Default to... | [
"julien@meetserious.com"
] | julien@meetserious.com |
dbc1bede0bc2172802ac379f9150af11a08b2ccd | 4d0ddcfdf6c790fa2ce3d0402e02fc771348c472 | /power recur.py | 47626be07569432e931009edb25980b81ee3cae1 | [] | no_license | shaikhjawad94/MITx-6.00.1x | 2106010595d0c4bde7fdf81d2c32a50d2f9d80fb | a14e8d864ea7c9decfef0391dd2e319aafc6b8f2 | refs/heads/main | 2023-06-15T14:19:45.550876 | 2021-07-02T22:32:26 | 2021-07-02T22:32:26 | 382,181,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | #Write a function recurPower(base, exp) which computes base^exp by recursively calling itself to solve a smaller version of the same problem,
#and then multiplying the result by base to solve the initial problem.
#This function should take in two values - base can be a float or an integer; exp will be an integer >= 0... | [
"noreply@github.com"
] | shaikhjawad94.noreply@github.com |
63c5242d62ac92687e767228024604acd3a0151f | 8d67510844545dfe97689941083c792e16c4f6dc | /src/preprocessing/00_7_dataScope.py | 179a3d3cf23ac967accc33c0405db458e5260b94 | [] | no_license | kyungeuuun/trafficPrediction | 40bd8be1f4d32ebf71e58b5c1f0b13469c6b50f9 | a7cae1dce098ac58336d07cdeeebd0cce1affd5d | refs/heads/master | 2020-04-08T22:01:41.025785 | 2018-11-30T04:47:55 | 2018-11-30T04:47:55 | 159,768,317 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
links = np.load('data/all_links_afterFiltering2.npy')
spd = np.load('data/spd_interpolated_ignoreErrTimes.npy').item()
spd_array = np.load('data/spdArray.npy')
coords = pd.read_csv('rawdata/LINK_VERTEX_seoulonly.csv', index_col=0)
coords = coords[c... | [
"keun415@gmail.com"
] | keun415@gmail.com |
a65a59dbf1af8f08123c5f31484ad27f1cdb164c | b004a0d561ab1d7b3a20336c4dd561ea5d607bdd | /python snippets/py_json.py | 6bdb313ce37aa6dde4cffb7a02619e9db7fd3691 | [] | no_license | Md-Mudassir/PracticeSnippets | e878ba1861f155ff2cc2093935b5ddea6cfc4c9f | d60bd2d454aa5cedea6e071057e3984efad06434 | refs/heads/master | 2021-07-06T00:06:57.176732 | 2020-12-06T17:56:58 | 2020-12-06T17:56:58 | 206,281,660 | 0 | 1 | null | 2019-10-29T13:35:40 | 2019-09-04T09:24:45 | JavaScript | UTF-8 | Python | false | false | 247 | py | # JSON is commonly used with data APIS. Here how we can parse JSON into a Python dictionary
import json
# sample
userJSON = '{"first_name": "John", "last_name": "Doe", "age": 30}'
user = json.loads(userJSON)
print(user)
print(user['last_name'])
| [
"mdmudassirpro@gmail.com"
] | mdmudassirpro@gmail.com |
66c35ef831aaa59121f0b9b48d719fee7b050b34 | 078686dd88ff399cb3f9f773d237a7b18adf513a | /fund_crawl.py | 2e11bb1c2315571f53e2f78a3e04f58a7555f55c | [] | no_license | kh7160/lotto | b1995bb9488a02f9c0656779cb6bb118aa1d66b0 | 9c6b764bcc7244729d8ad39637de3d029f8f4b26 | refs/heads/master | 2023-02-28T00:12:27.295284 | 2021-02-01T10:49:20 | 2021-02-01T10:49:20 | 334,917,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import requests
from bs4 import BeautifulSoup
import fund_parse
url = 'https://dhlottery.co.kr/common.do?method=main'
resp = requests.get(url)
soup = BeautifulSoup(resp.text, 'html.parser')
# 7 num crawling
group = soup.select('.group .num span')
group = group[0].text
num = []
num.append(int(soup.find_all('span', {... | [
"kh7160@naver.com"
] | kh7160@naver.com |
87372704d860ee5b12915a2510e6eeb65b6a7399 | c18ffe72aca00d1a55d47cefa7f2f784c138896e | /faster-rcnn_vgg16/model/region_proposal_network.py | fe66bb27bd310d7527b7c75c16492afb62c4dfc5 | [
"MIT"
] | permissive | fengkaibit/faster-rcnn_vgg16 | 0438ab568dbcff31e5f86381f9bbf4b131e60684 | 8d1709bd170d69115041ca76bd38c8514cdb8fa7 | refs/heads/master | 2020-05-17T23:13:33.315214 | 2019-04-29T08:05:47 | 2019-04-29T08:05:47 | 184,023,750 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,559 | py | import numpy as np
from torch.nn import functional
import torch
from model.utils.bbox_tools import generate_anchor_base
from model.utils.creator_tool import ProposalCreator
class RegionProposalNetwork(torch.nn.Module):
def __init__(
self, in_channels=512, mid_channels=512, ratios=[0.5,1,2],
... | [
"noreply@github.com"
] | fengkaibit.noreply@github.com |
13a1f0df061c5cda379d81c09de77a221a6b7deb | 2a23bb3d1372dd69dedb1964ab23d2ac7e4588a0 | /src/CG_AMSREMOVALDATE.py | 09b5517cfa2f8bad2679601418dc9e0f22e9ba79 | [] | no_license | git786hub/Dynatrace_python | 6fa8e15963e54d8d89a4bb56e247f2e4c62f8823 | cffe77be8712947c873d4857970c16aee4a04711 | refs/heads/master | 2020-05-31T19:13:56.510436 | 2019-06-05T19:12:26 | 2019-06-05T19:12:26 | 190,453,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | # AUTOSCRIPT NAME: CG_AMSREMOVALDATE
# CREATEDDATE: 2015-12-18 22:29:45
# CREATEDBY: U03V
# CHANGEDATE: 2016-01-25 12:30:25
# CHANGEBY: UFAP
# SCRIPTLANGUAGE: jython
# STATUS: Draft
from psdi.app.asset import AssetRemote
from psdi.mbo import MboConstants
from java.util import Date
from psdi.mbo import SqlFormat
if in... | [
"Pulkit.Agarwal@oncor.com"
] | Pulkit.Agarwal@oncor.com |
a7bdc47dcee65f2f36d2fbd29a75e05ed9618340 | 02f03f54c4acd517e5c10757540eeca453815980 | /app.py | c3b576a85127550f779eece457ab8b9ae2807ca2 | [] | no_license | eddiexunyc/web_scraping_challenge | a33cdcdd0698148d4e92f44598950d06d483c7bc | b94dc1e7f03712012fda07b1737b2933529e5596 | refs/heads/main | 2023-01-19T16:50:59.791356 | 2020-11-23T14:44:59 | 2020-11-23T14:44:59 | 308,758,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from flask import Flask, render_template, redirect
from flask_pymongo import PyMongo
import scrape_mars
app = Flask(__name__)
app.config["MONGO_URI"] = "mongodb://localhost:27017/mars_app"
mongo = PyMongo(app)
@app.route("/")
def index():
mar_dicts = mongo.db.mar_dicts.find_one()
return render_template("inde... | [
"eddie.xu.nyc@gmail.com"
] | eddie.xu.nyc@gmail.com |
b93044e9ad964479e2545705a211c20474cf51be | b8c8fb24086151d8cc021020b1967cb4783358ba | /rprecorder/cli/track.py | 1c1bd6b5b85e9aaf1be46e620cde68a7facdc663 | [
"BSD-2-Clause"
] | permissive | sniner/rp-recorder | d78bd27ffe7a3b53982e98db42a8156c7125ca22 | 4266c6533c3076d7f903f5dea6b43d3797ef62cc | refs/heads/main | 2023-08-15T02:08:01.539439 | 2021-09-28T19:00:13 | 2021-09-28T19:00:13 | 411,406,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,396 | py | #!/usr/bin/python3
import json
import logging
import signal
import sqlite3
import sys
import time
import threading
from datetime import datetime
import requests
logger = logging.getLogger(__name__)
# Radio Paradise API:
#
# * https://github.com/marco79cgn/radio-paradise
# * http://moodeaudio.org/forum/showthread.... | [
"mail@sniner.dev"
] | mail@sniner.dev |
ddff08d9864dfe1076ecf400d73e63b3b20a37df | 1a663b69c47ac56c38aed5704fc403df82b48491 | /teafacto/scripts/theanowrap.py | 331e4da792e0cef33af941df2b7e907443d1db42 | [
"MIT"
] | permissive | lukovnikov/teafacto | 9c0dda1dbb1abbcff795097a3522178ad5395852 | 5e863df8d061106ad705c0837f2d2ca4e08db0e4 | refs/heads/master | 2020-04-04T05:53:56.616520 | 2017-02-08T21:03:17 | 2017-02-08T21:03:17 | 46,288,607 | 2 | 5 | null | 2016-04-13T12:25:47 | 2015-11-16T16:52:23 | Python | UTF-8 | Python | false | false | 710 | py | from teafacto.core.base import tensorops as T, Val, param
import numpy as np
import sys
x = Val(np.random.random((10,10)))
#y = Val(np.random.random((10,10)))
y = param((10, 10), name="y").uniform()
w = param((10, 10), name="w").uniform()
#z = T.dot(x, y)
z = (x + y)
u = z * w
s = T.nnet.sigmoid
s2 = T.nnet.sigmoid
p... | [
"lukovnikov@outlook.com"
] | lukovnikov@outlook.com |
037565994254c8953f954ce3a3106794d5570f56 | e00d41c9f4045b6c6f36c0494f92cad2bec771e2 | /hardware/graphics/intel-media-sdk/actions.py | db40590dc372fba8b36c3ecadcf4cca3946cc0a2 | [] | no_license | pisilinux/main | c40093a5ec9275c771eb5fb47a323e308440efef | bfe45a2e84ea43608e77fb9ffad1bf9850048f02 | refs/heads/master | 2023-08-19T00:17:14.685830 | 2023-08-18T20:06:02 | 2023-08-18T20:06:02 | 37,426,721 | 94 | 295 | null | 2023-09-14T08:22:22 | 2015-06-14T19:38:36 | Python | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
from pisi.actionsapi import cmaketools, mesontools
j = ''.join([
' -DCMAKE_BUILD_TYPE=Release',
' -DBUILD_TOOLS=ON',
' -DENABLE_X11_DRI3=ON',
... | [
"uglyside@yandex.ru"
] | uglyside@yandex.ru |
bec8e911e2a334b2cc574ae87877c2355faa1f17 | 5270649aba7f75bfc3ea759db33e095f7e29b191 | /lab2/q2/ball.py | f873e92690eac795aab52db77548e3c829e134b0 | [] | no_license | iamnidheesh/Artificial-Life-Simulation-Assignment | 4a028231ebd108d4f4b91ca156adfce0a35f50d2 | e787aefe8b6b77fcc581f93f39eec980363fb9cf | refs/heads/master | 2020-04-30T06:40:01.054549 | 2019-03-20T05:14:44 | 2019-03-20T05:14:44 | 176,658,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py |
from agents import agentList
import math
class ball :
def assignColor(self,t) :
if(t == 1) :
return 'black'
elif(t == 2) :
return 'red'
else:
return 'grey'
def attraction(self,other,constant) :
pos = self.canvas.coords(self.shape)
posH = self.canvas.coords(other.shape)
dis = math.sqrt((pos... | [
"nidheeshpandey@gmail.com"
] | nidheeshpandey@gmail.com |
8d68ed2fc5394b6fea01b046cd15e38fca6c21f2 | 8745739cba807efe822814f8ffbf454e98f81000 | /Auth_App/migrations/0001_initial.py | efcfeed595945165d63f296b094321e20050b515 | [] | no_license | MehediHasan96/Account | 01e336a5c46fb96fc2fc09c8426868c0101c0a6d | 359fe5b1642123b4ac11f13541019e988a026bdc | refs/heads/main | 2023-07-09T16:30:35.741082 | 2021-08-23T05:43:56 | 2021-08-23T05:43:56 | 398,984,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | py | # Generated by Django 3.2.6 on 2021-08-22 17:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations ... | [
"mehedicse96@gmail.com"
] | mehedicse96@gmail.com |
59c6f29c6c88c672ad008ad803c796881d0de0c6 | 938a089e9b5e876a3b48932274171da7a4e7aa42 | /bench/genesys2.py | 2332f797a6bd9cebe7f8ad88338e320f41377567 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | rprinz08/liteeth | aa94e0eb790ba571ea59e98697d11300a57b3d03 | dc10f82753efd236e1811a72c4be2c27cefd2c68 | refs/heads/master | 2023-07-18T17:17:06.441779 | 2021-09-10T08:06:47 | 2021-09-10T08:06:47 | 260,763,015 | 0 | 0 | NOASSERTION | 2020-05-02T19:47:32 | 2020-05-02T19:47:32 | null | UTF-8 | Python | false | false | 2,680 | py | #!/usr/bin/env python3
#
# This file is part of LiteEth.
#
# Copyright (c) 2020 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
import os
import argparse
from migen import *
from litex_boards.platforms import genesys2
from litex_boards.targets.genesys2 import _CRG
from litex.so... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
6387f24c6cee7a4d44c898fadc2886bc1358fc85 | cb3d1b072391b07ef0e9596df7f223f37683e970 | /[0333]_Largest_BST_Subtree/Largest_BST_Subtree.py | 20ac486fdae272035ca2cdb53f05e32e45ab550b | [] | no_license | kotori233/LeetCode | 99620255a64c898457901602de5db150bc35aabb | 996f9fcd26326db9b8f49078d9454fffb908cafe | refs/heads/master | 2021-09-10T18:00:56.968949 | 2018-03-30T14:38:27 | 2018-03-30T14:38:27 | 103,036,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def largestBSTSubtree(self, root):
"""
:type root: TreeNode
:rtype: int
"""
sel... | [
"cycycy3333@163.com"
] | cycycy3333@163.com |
ead9ad64b8365540807e891bd0144812da5bfef0 | c856b321e7f2cb7da64df1a86c5f254dfd968548 | /tests/testCallSocketio.py | 48805e46c37eeb8ad89af148bafbde2ad0c7c951 | [] | no_license | tunchunairarko/hwu_animus_robot | e8213d0d02061b58c1f8a4afb3f2afb8746a19c6 | 29cbcd8a9960787854f3489e492e2715db88b72c | refs/heads/main | 2023-08-14T00:48:53.152991 | 2021-09-15T08:02:46 | 2021-09-15T08:02:46 | 340,909,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | import socketio
print(socketio.__version__)
sio = socketio.Client()
sio.connect('https://hwu-telepresence-room.herokuapp.com')
# if(sio.connected):
# print("*****************YES*****************")
# else:
# print("*****************NO*******************")
@sio.event
def connect():
print('connected to server... | [
"tunchunairarko@gmail.com"
] | tunchunairarko@gmail.com |
e37d054c46e1a06d4dda2b789a93aff3e2ccb1a1 | 4a0765fb810f64030cd3a6a356bdb34fbeae20aa | /models/store.py | 172c43fe0bd9e669f243875e0a267d9ab8c7f34d | [] | no_license | NynkeVollema/stores-rest-api | 28ae30738914e83918fdaac633cdf2723253ac76 | 88e91f75f43c3e3f130de909fc29cb69c934fc45 | refs/heads/master | 2021-01-03T01:39:46.748412 | 2020-02-16T15:40:29 | 2020-02-16T15:40:29 | 239,862,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | from db import db
class StoreModel(db.Model):
__tablename__ = "stores"
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80))
# lazy="dynamic" means that the item list is not (yet) retrieved from the database if the store
# is created. Otherwise, the script would make an ... | [
"nynke.vollema@rhdhv.com"
] | nynke.vollema@rhdhv.com |
dbc0c27afd8670f2879a4311628eb29b3134a236 | b0ba1585b2f65b2ba0ce98d4186d1d33b91f27cb | /src/containerapp/azext_containerapp/containerapp_decorator.py | 243d3be45515bfeec28eb8c29d18137123008b91 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | anagg929/azure-cli-extensions | dce128c9a5105a2c5f510081ec0f521cf5720b55 | ec02d4c83bd8d5ece829abd75b3030142c67aa3a | refs/heads/main | 2023-09-03T19:43:24.099198 | 2023-08-29T12:57:13 | 2023-08-29T12:57:13 | 299,980,394 | 0 | 0 | MIT | 2020-09-30T16:21:59 | 2020-09-30T16:21:58 | null | UTF-8 | Python | false | false | 77,574 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | anagg929.noreply@github.com |
dc14cd97a015a86562025969e29bd2a6e3e6aa12 | fb05a8ef1b03448768f113ce760116090441b9c5 | /alembic/versions/6e71c29e6611_delete_created_for_user.py | 7d7a1d7a343a74a6bfadc35bb3e0c937781ed2d1 | [] | no_license | daimingfeng/picture-sharing-project | 54bec8ebda6ca6099f83db53d56fdcf67074e03e | 868c20c8a64578764f3aa043831f97bd0102fb87 | refs/heads/master | 2020-03-26T15:42:46.951891 | 2018-07-03T08:51:37 | 2018-07-03T08:51:37 | 138,396,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | """delete created for user
Revision ID: 6e71c29e6611
Revises: 6126ad9514aa
Create Date: 2018-06-09 10:41:35.911735
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '6e71c29e6611'
down_revision = '6126ad9514aa'
branch_labels =... | [
"1115683853@qq.com"
] | 1115683853@qq.com |
3d3f6135cd76c85d43c599a3085696737af60bb0 | e14fa184ec3cad0de83615011728176eaaa06626 | /blockchain.py | c89ade4316711cdad1f20040172222513087a751 | [] | no_license | sa2shun/Blockchain | 945e96760e6fa18100069c4029a3a9fd504cf904 | fbf030e8c13c9ce28598f38fc0e2f8e9ced2a8bc | refs/heads/master | 2020-11-29T23:46:05.984539 | 2020-07-23T04:17:01 | 2020-07-23T04:17:01 | 230,241,960 | 0 | 0 | null | 2019-12-26T10:28:05 | 2019-12-26T10:11:57 | Python | UTF-8 | Python | false | false | 8,363 | py | import contextlib
import hashlib
import json
import logging
import sys
import time
import threading
from ecdsa import NIST256p
from ecdsa import VerifyingKey
import requests
import utils
MINING_DIFFICULTY = 1
MINING_SENDER = 'THE BLOCKCHAIN'
MINING_REWARD = 1.0
MINING_TIMER_SEC = 20
time_data =[]
BLOCKCHAIN_PORT_R... | [
"shunlovessoccer1107@gmail.com"
] | shunlovessoccer1107@gmail.com |
2853da436c35c7c035dae92d2f60618f3869f870 | 09a940295274c4d9f668b39ef3d002ff2b26ea5b | /Graphs/primsMST.py | f31ebc0e9c6bc95aae7de06c6638fa58f4d201b3 | [] | no_license | sandeep-skb/Algorithms | 39d50f7e92211a69cac5a7e5e5358f99d623717d | 2859429cf6ec10a7c0b1f7e10e306a40b9a80a7c | refs/heads/master | 2020-05-26T19:17:24.972562 | 2019-11-30T06:30:26 | 2019-11-30T06:30:26 | 188,346,496 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | import sys
class PriorityQueue:
def __init__(self):
self.pq = {}
#To insert values into the PQ
def push(self, vtx, val):
self.pq[vtx] = val
#To Delete and return the minimum values from the PQ
def deleteMin(self):
min_val = min(self.pq.values())
for key in self.pq.keys():
if self.p... | [
"noreply@github.com"
] | sandeep-skb.noreply@github.com |
8bad661b1a6ffb4facb6ee6322eb219f7857cfcd | 9defb97d343de65133f776caef4a53d4d4841a7b | /server/src/settings.py | 2403dda025aadd2e9073f6e2e0ea22655b3f7188 | [] | no_license | victorgevaerd/app-prime-numbers-bridge-2021.1 | ff635066c5de5ddcfe73e19144f9dc30b4b74567 | daf31ae56aa10f894acd349a9a4938359400b487 | refs/heads/main | 2023-03-22T23:31:01.353356 | 2021-03-16T23:03:34 | 2021-03-16T23:03:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | import sys
from os import getenv
from dotenv import load_dotenv
load_dotenv()
with_error = False
if getenv('PORT') is None:
print('Variável "PORT" não definida!. Defina no arquivo servidor/.env')
print('Exemplo: PORT=3000')
with_error = True
if getenv('DEBUG') is None:
print('Variável "DEBUG" não d... | [
"victorgevaerd@gmail.com"
] | victorgevaerd@gmail.com |
4fccc4958d08996a263601b37e9b8b1a85416c19 | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /stackoverflow_site__parsing/print__datetime_utc_and_reputation_change__with_missing_dates.py | 00e9926585256ee0385b09771cb3e87d0bf1e62c | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import datetime as DT
def generate_range_dates(start_date, end_date) -> list:
date_1 = min(start_date, end_date)
date_2 = max(start_date, end_date)
# Сразу добавляем стартовую дату
items = [date_1]
while date_1 < date_2:
... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
4bdba1ed302a07e95891189723cb8e02be46a173 | 8806a17d66d7abb8434c879215dc09cbfc3b5a25 | /bin/log.py | 02e6764c09facc7e70ec062e7792b50d468208ef | [] | no_license | chenrun666/JW_purchase | f23d1719f447be669134c8fc02b1b8fd9d82cba8 | 9552920259f4014a08b38db88d0d48f0864822d3 | refs/heads/master | 2020-04-25T20:44:06.403805 | 2019-03-09T10:05:19 | 2019-03-09T10:05:19 | 173,057,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,963 | py | # coding:utf-8
import logging
from logging.handlers import RotatingFileHandler # 按文件大小滚动备份
import colorlog # 控制台日志输入颜色
import time
import datetime
import os
cur_path = os.path.dirname(os.path.realpath(__file__)) # log_path是存放日志的路径
log_path = os.path.join(os.path.dirname(cur_path), 'logs')
if not os.path.exists(log_... | [
"17610780919@163.com"
] | 17610780919@163.com |
859ca82edb05bc4fcce9dff212cb636c6f6b3e55 | e0568ef3af54278af2eff579c2c7d0920f8019e9 | /PDF Analytics/convert_pdf_to_text.py | 2cfaa14b92c1c9aee531998702a771f0f4396025 | [] | no_license | https-seyhan/TextMining | 57bde1b15a7ff31baf7e6d627efec3ee5185e962 | d2fd9fc3e3f01ede8c0e2289efb3028020c47609 | refs/heads/master | 2022-08-25T22:50:34.251152 | 2022-08-11T04:28:07 | 2022-08-11T04:28:07 | 178,507,673 | 3 | 0 | null | 2020-12-27T22:33:03 | 2019-03-30T03:42:09 | Python | UTF-8 | Python | false | false | 3,392 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: saul
"""
import os,time,PythonMagick,subprocess,shutil
import os
from PIL import Image, ImageChops
from optparse import OptionParser
def get_image_list_from_pdf(pdf_file):
#Return a list of images that resulted from running convert on a given pdf
pdf_... | [
"noreply@github.com"
] | https-seyhan.noreply@github.com |
67f0f407c02ed6a600d887c4e946413b9dfb52b5 | dacc544088406d5c8f2b77e2c51a797094dd5b82 | /datasets/datafeeder_npy.py | 8afdc225185f13f8eb2600dfd4f7d8b26b677380 | [
"MIT",
"CC-BY-3.0",
"CC-BY-4.0",
"LicenseRef-scancode-public-domain"
] | permissive | Jim-Song/tacotron_multispeaker | 4edab891b56708696694df9a79736dee627e9e90 | fb159e162c3fcfaf4156bd8579655c590d0b6617 | refs/heads/master | 2020-03-25T23:26:49.052698 | 2018-08-27T10:54:06 | 2018-08-27T10:54:06 | 144,275,196 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,323 | py | import numpy as np
import os, json
import random
import tensorflow as tf
import threading
import time
import traceback
from text import cmudict, text_to_sequence, text_to_sequence2
from util.infolog import log
_batches_per_group = 20
_pad = 0
class DataFeeder(threading.Thread):
'''Feeds batches of data into a q... | [
"sjmdhr@163.com"
] | sjmdhr@163.com |
06ea440e25ecbce5cdc3953966dabeb2f5c5c509 | 31f29b89ceeb60e4d377d2409b2a562798dfd931 | /permits/migrations/0020_auto_20180722_2339.py | 5ab7701d6491925fbf71c050453ae927befc37f7 | [] | no_license | skreimeyer/publicworkspermits | 1a35cfd9480e04c6c2797398d22d6e680a034559 | ce630d74b8541f462a826893f6844b5549252b8e | refs/heads/master | 2020-03-28T15:02:34.071263 | 2018-09-13T18:11:56 | 2018-09-13T18:11:56 | 148,549,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | # Generated by Django 2.0.5 on 2018-07-22 23:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('permits', '0019_auto_20180722_2328'),
]
operations = [
migrations.AlterField(
model_name='projectinformation',
name=... | [
"samuel.kreimeyer@gmail.com"
] | samuel.kreimeyer@gmail.com |
76f0db3ff3eb3950c75953ea5619bbcd4e1ee88c | 113bfeda578324908963307670718c5545f30e8b | /booksite/booksite/book/migrations/0011_auto_20171205_1611.py | c4e55389b90cee0a19f1960233318db14ed070c8 | [
"Apache-2.0"
] | permissive | tkliuxing/bookspider | f0989814716e38fa081cc300f92fc975ff8ac67d | bc7ba487f0ab6ea7782f5093bb1d074eac662bdf | refs/heads/master | 2021-01-18T23:31:26.566892 | 2020-03-14T04:04:48 | 2020-03-14T04:04:48 | 21,845,464 | 40 | 36 | null | 2015-11-06T03:58:04 | 2014-07-15T03:51:01 | CSS | UTF-8 | Python | false | false | 426 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2017-12-05 08:11
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('book', '0010_auto_20171205_1436'),
]
operations = [
migrations.AlterUniqueTogether(
... | [
"ouyanghongyu@gmail.com"
] | ouyanghongyu@gmail.com |
a856babe3469acfa7981edd09b94fb9d1eb0b028 | bb932c6ed17c14272a3b287acf1d6547aa2db09c | /clients/tcp_server_gui.py | dbe9c0ccca477ebdb6134733a5888320689e2d52 | [
"BSD-3-Clause"
] | permissive | bacetech/zen_controller | 44603935981497a748266ffe0660e208b6b6a98c | c463db72e592edc3dc0bc1146a6b73b4238bc9a1 | refs/heads/master | 2021-01-13T05:16:55.215333 | 2017-03-29T01:41:05 | 2017-03-29T01:41:05 | 86,523,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,074 | py | #!/usr/bin/env python
"""
Copyright (c) 2012, Bruce A. Corliss
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, t... | [
"noreply@github.com"
] | bacetech.noreply@github.com |
f1f795783eacbc2484ff019eda83c8c8f0b4877d | f0a4a8b8db004f9284b69d2bad5ddcbcb3258ddc | /src/motor.py | 7c6679b006f32dcbc823801b9ad5dcc703047d1a | [] | no_license | chhuang215/GreenPanel | 3e3e07bf2724b03baf0f807e59951e9a66024769 | 366bcaa1e3baf049acee1aa7f7f165baba7c2f92 | refs/heads/master | 2021-03-13T04:17:01.904054 | 2020-04-01T15:53:31 | 2020-04-01T15:53:31 | 91,508,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,845 | py | import datetime
import threading
import RPi.GPIO as GPIO
from controller import GPIOController
class Motor:
'''Motor class'''
PWM_FREQ = 75
PWM_DC = 75
PWM_DC_FAST = 75
DIR_CW = RIGHT = 1
DIR_CCW = LEFT = 2
def __init__(self, inp1, inp2, inppwm, enable_timer=True):
self.pin ... | [
"chhuang215@gmail.com"
] | chhuang215@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.