blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7ed647ae7cc069d948f10482f97cf2eb145601f4 | 0169ecee33843989b64686699bb0a18d93cc8c66 | /fairseq-0.6.2/fairseq/data/iterators.py | 3193744810d44ff3327da078170ee7bb3e2fc657 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | Ayushk4/nmt-difficulty | 0bd226fc74fb6aa3a774b079b520cc898141aae6 | d4c8252abf091701a2ba4d85fb6a79a3720d9748 | refs/heads/master | 2023-04-29T19:30:11.220342 | 2021-05-20T06:08:01 | 2021-05-20T06:08:01 | 369,097,805 | 0 | 0 | MIT | 2021-05-20T06:06:56 | 2021-05-20T06:06:55 | null | UTF-8 | Python | false | false | 8,596 | py | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
import itertools
import math
impor... | [
"emanuele.bugliarello@nlp.c.titech.ac.jp"
] | emanuele.bugliarello@nlp.c.titech.ac.jp |
488e0777f32a1f0d81346e6b8bbe112baea2ddcb | 1dbfe4ed3583053d79c285a4fdd41e2a3139be9b | /cogs/mongo.py | 3bb7d936245986be2bf04682a3fcee9fe7ff9e6e | [
"MIT"
] | permissive | kyle-he/p2hb | 5a31047f031ac1774ad43cea42a82500fbc46ecf | 0dfd8b16af70a861c14dd41aded3de93e6730cdb | refs/heads/main | 2023-08-13T20:45:19.002101 | 2021-10-01T19:46:34 | 2021-10-01T19:46:34 | 412,596,871 | 0 | 0 | MIT | 2021-10-01T19:38:39 | 2021-10-01T19:38:39 | null | UTF-8 | Python | false | false | 4,212 | py | import pickle
import discord
from discord.ext import commands
from motor.motor_asyncio import AsyncIOMotorClient
from umongo import Document, EmbeddedDocument, Instance, MixinDocument, fields
from umongo.frameworks import MotorAsyncIOInstance
from data import models
import config
class Member(Document):
class M... | [
"panyanhe99@gmail.com"
] | panyanhe99@gmail.com |
7a2be04563d2a6088623a7dec81cbc69030d3db3 | bad4d2d168b64cb63085caafb04b4d7e12ffcafb | /queue_processor.py | 36df8d99097e4f9f41d357f29757d2eb658138c8 | [] | no_license | john-root/natbakke | 184aab57880781177d74e84f8c7a0d5f296b9fb2 | a446e9748d9f1cc2e3c7974d0f0d956a5f4a5752 | refs/heads/master | 2021-01-10T23:28:09.550349 | 2017-02-06T15:52:06 | 2017-02-06T15:52:06 | 70,585,731 | 0 | 0 | null | 2016-10-11T11:17:35 | 2016-10-11T11:17:35 | null | UTF-8 | Python | false | false | 1,025 | py | import boto.sqs
import canvas_processor
import json
from boto.sqs.message import RawMessage
def canvases_enqueue(queue, manifest_uri):
item = canvas_processor.Manifest(manifest_uri)
for canvas in item.canvases:
msg = {}
msg['manifest'] = item.requested.uri
msg['canvas'] = canvas
... | [
"matt.mcgrattan@digirati.com"
] | matt.mcgrattan@digirati.com |
599515d5e7b478a90433a480a9b50ab157c212b1 | 3dab6d56417103d1b069a994a56b3ae4ac2f902d | /main.py | 32c61be0b379b1d7ff8ff207a7e56e784e9b515c | [] | no_license | malmike/FinalProject-AndelaBootCamp | e700e73ad7eda4e86b05ae101d0637b2c517bdc2 | 28e90089fea2082e7debffa9b2e6fdddbfda38d8 | refs/heads/master | 2021-01-20T01:04:33.489012 | 2017-07-03T19:38:33 | 2017-07-03T19:38:33 | 89,219,920 | 0 | 1 | null | 2017-07-03T19:38:33 | 2017-04-24T09:09:05 | Python | UTF-8 | Python | false | false | 9,468 | py | """
Usage:
TheDojo start
TheDojo create_room <room_type> <room_name>...
TheDojo add_person <first_name> <last_name> <position> [<Y> | <N>]
TheDojo print_room <room_name>
TheDojo print_allocations [-o <filename>]
TheDojo print_unallocated [-o <filename>]
TheDoj... | [
"malmike21@outlook.com"
] | malmike21@outlook.com |
46cfc25939cdf3399171bda611b4ee098603f22e | 50ef453df20f9bd1cfc9f6bcd53cee2a3a431f29 | /api/migrations/0002_bucketlist_owner.py | a6ed1ac3a1c188dc3d1ada0b983cff2bc1f7f256 | [
"MIT"
] | permissive | guszak/django-restapi | 3ab03651ec320f4f09b9b3f936084baf42ad529c | e2b245adac47cd19e94ebf7df28c362b148e5f3a | refs/heads/master | 2020-11-29T20:02:52.998747 | 2017-07-11T12:54:05 | 2017-07-11T12:54:05 | 96,661,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-09 02:01
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"lucas.guszak@gmail.com"
] | lucas.guszak@gmail.com |
54ef8e998da8750452d2f0a4c8f495927ca4edb2 | f39e57324d6fb72fea752cf716cf9ce69c8f47de | /edit/edit/settings.py | 9b150da9f780147b198f09091eb929f5b34fd0b7 | [] | no_license | rituraj0/myedit | 62a45233916159d37d28a2ef96c018e8d741937c | 85a5461b17e9c960369bfbcfe04ae16074479cd8 | refs/heads/master | 2021-01-19T08:22:01.899581 | 2014-12-21T08:55:50 | 2014-12-21T08:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | """
Django settings for edit project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | [
"rituraj.tc@gmail.com"
] | rituraj.tc@gmail.com |
e142a5f5c7f865a7e350922a24ebfb42b342725b | 5aa68570d70d0ae7accf78fd46422617653738c0 | /shops/template.py | 15c2763e55c6cb129becb34fec0ba5581436ed4a | [] | no_license | brewcrawler/brewcrawler-backend | 3d7a1be275fd4afc940c79773d0fd0cf19947276 | 211f7227e4c3bede952c75689a94a6fc06a99fb9 | refs/heads/main | 2023-06-02T03:36:32.771404 | 2021-06-19T08:41:56 | 2021-06-19T08:41:56 | 378,363,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | import requests
from bs4 import BeautifulSoup
MALT_URL = [""]
HOP_URL = [""]
YEAST_URL = [""]
SHOP = ""
page = None
soup = None
malt_list = []
hop_list = []
yeast_list = []
headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:55.0) Gecko/20100101 Firefox/55.0',
}
d... | [
"noreply@github.com"
] | noreply@github.com |
0786553b42c83c8a38b2b7fc011f582053c10efe | 066607143371a1c7521f89c95e2a7e16f01f8ca9 | /catalog/models.py | 1311a86923ec6b3185af21f93101d23534393448 | [] | no_license | Felixiuss/BookShelf | 0081f8d6811e62ab8f906eea87752fd7b1dcb138 | 1be623721cf66377be863cbd1fc3feda2a46c51a | refs/heads/master | 2020-04-17T18:26:45.597370 | 2019-01-21T14:21:11 | 2019-01-21T14:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,043 | py | from django.db import models
from django.urls import reverse
from django.contrib.auth.models import User
BINDING = (
('мягкий', 'мягкий'),
('твердый', 'твердый'),
)
class Category(models.Model):
"""
Model representing a book catalog
"""
name = models.CharField(max_length=200, help... | [
"ramses767@gmail.com"
] | ramses767@gmail.com |
2109535562825d6ebc87a78c9fb4e5a79c1d7bb1 | a01a2fa0a7cce9363eadb7ab990370f3e0222a63 | /alternate_run_temporal_nnet.py | 8f90ce4e14e9fb5f087c98a533b6b8998a7e7a4b | [
"Apache-2.0"
] | permissive | martarek/temporalcoherence | be3cf81cf830c42e72a1caa2bdb60bd6caa4b56e | 0a79b4dae2ff967142eebb3d197ae1b4c8030360 | refs/heads/master | 2021-01-14T12:31:23.859798 | 2016-02-04T18:21:47 | 2016-02-04T18:21:47 | 26,335,324 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,156 | py | import numpy as np
import os
import sys
import fcntl
import copy
from string import Template
import mlpython.datasets.store as dataset_store
import mlpython.mlproblems.generic as mlpb
from temporal_nnet import TemporalNeuralNetwork
import dataset
sys.argv.pop(0)
# Check if every option(s) from parent's script are here... | [
"martarek@gmail.com"
] | martarek@gmail.com |
df25809bf50c81844554cdf9edc3e2cdd8cf7e4e | e40d93e56593dd2129db94bd6cc96798ef459fd7 | /src/system.py | 55acead132d2589ade2a6cfefd3baf8ed556c608 | [] | no_license | samuele-mattiuzzo/pyramos-game | 38daf719fabd0bb9f0a67296431198ddf7cf114d | b0f2c948244c6a45471f7ecabd325f9b957ddffd | refs/heads/master | 2020-04-06T04:22:30.030347 | 2018-08-23T21:34:03 | 2018-08-23T21:34:03 | 5,951,321 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,868 | py | # -*- coding: utf-8 -*-
try:
import os
import pygame
from pygame.locals import *
from . import config as conf
except ImportError as err:
print("couldn't load module. %s" % (err))
sys.exit(2)
class System:
'''
Class for handling:
- [X] screen init based on parameters
- [ ] load mode
- [ ] save/load ga... | [
"samumatt@gmail.com"
] | samumatt@gmail.com |
6576c4f0d44e7715aa4ad36675fbe3c92075e2db | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02381/s751837364.py | bd7cb0f49528872efae67b22b1fb8ff06610b153 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | # Standard Deviation
end = 0
while end == 0:
studentAmount = int(input())
if studentAmount == 0:
end += 1
else:
scoreData = [int(i) for i in input().rstrip().split()]
totalScore = 0
for score in scoreData:
totalScore += score
averageScore = totalScore / s... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5261b1fa72f0205b52d000597183839bd1f223ff | 2c7e967b5cb7c911245463ae1cd152b25b5e0b89 | /steps/google.py | 54cefc195ca13018e3b6ebd16626e1f29e1f6c1f | [
"MIT"
] | permissive | antonckoenig/citeas-api | 902d725c59dad9292c68f873d3a3512c77ceb06e | 9a0da10fad95b49363ef43c4d02be1dcb17169d6 | refs/heads/master | 2023-07-30T13:08:39.967004 | 2021-09-19T20:08:13 | 2021-09-19T20:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | from googlesearch import get_random_user_agent, search
from steps.arxiv import ArxivResponseStep
from steps.bitbucket import BitbucketRepoStep
from steps.cran import CranLibraryStep
from steps.core import Step
from steps.github import GithubRepoStep
from steps.pypi import PypiLibraryStep
from steps.webpage import Webp... | [
"caseym@gmail.com"
] | caseym@gmail.com |
8d21ce17f80c88c92c940d1c31d2c9fac735e6a2 | da56b026e88d03dd95bf7da1027754cf70a11b64 | /app/domain/model.py | 7c25d22fd067672253a958cbb1898723a07bef05 | [
"MIT"
] | permissive | LucasRGoes/ports-adapters-sample | 9e006b6a2b62ca4c7f7f90568f2da15387ca0d06 | 7192ef724ceed9aa60c03ee3bda2a97a8b532298 | refs/heads/master | 2022-12-12T02:54:58.508855 | 2019-07-26T20:48:09 | 2019-07-26T20:48:09 | 197,781,408 | 43 | 7 | MIT | 2022-12-08T05:55:56 | 2019-07-19T13:54:50 | Python | UTF-8 | Python | false | false | 1,365 | py | """
Model
=====
These are the models of the application. They should hold important data
and methods concerning the business logic.
Classes: Book
"""
class Book(object):
"""Model class to represent the main business aspect of this sample
application: books.
"""
def __init__(self, isbn: str, name: str, author: st... | [
"lucas.rd.goes@gmail.com"
] | lucas.rd.goes@gmail.com |
110ffa236f9aa146cc6bbc35fffe035d0ac2b533 | 8889dd7bad733c77ec4b16b532fdd41a4bbfbf4f | /BarraRiskAnalysis/Lab-Factors.py | 69ddd4023a1446cb1ccbd984cb4457ffcecc2a40 | [] | no_license | Harbes/Intership-for-GFund | 33c7a54d48958d79a4451b773f672ed1f04591fa | a6f19d438abc362e6907f95ab683d63a37526694 | refs/heads/master | 2020-09-24T15:47:35.908598 | 2020-01-03T01:27:35 | 2020-01-03T01:27:35 | 225,793,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | import pandas as pd
from Barra_GetConnectedToDatabase import *
options_WindDatabase={'server':'172.16.100.7',
'user':'mikuser',
'password':'mikuser',
'database':'NWindDB'}
connect_wind=ConnectSQLserver(**options_WindDatabase)
| [
"jerryshen68@hotmail.com"
] | jerryshen68@hotmail.com |
fc3fdfccb19ecb07bcab14847fe6d397115fd4d6 | 2659669a4ad2b35506c628f32a714f540fb4b00a | /webscrap.py | d1441d47bb066896ade76c9ce55a9a8800a50579 | [
"Apache-2.0"
] | permissive | GouthamVignesh/nemo | d9fa875d891b5b00272f29a042e8610b7e6cd0a1 | b34e5cd5e6f7efde73d0d358ce2c986c11ed2b96 | refs/heads/master | 2021-06-10T19:26:53.650085 | 2020-02-24T20:22:33 | 2020-02-24T20:22:33 | 147,715,480 | 0 | 2 | Apache-2.0 | 2021-06-01T23:42:44 | 2018-09-06T18:20:23 | Python | UTF-8 | Python | false | false | 5,461 | py | def webscrap(search):
# Get Input From User
"""
import requests
from bs4 import BeautifulSoup
page=requests.get("http://spicier-raincoats.000webhostapp.com/product-category/clothing")
if(page.status_code==200):
html=page.content
soup=BeautifulSoup(html,'html.parser')
... | [
"noreply@github.com"
] | noreply@github.com |
579d694a59172df0801bcbf1c4eea810cc964a63 | 7e93454d7299d20e03fecb3516abb033de727e02 | /libs/appealUI.py | 55312e4aba976871abace22a06d37440ef57f217 | [] | no_license | R4c00n9/appealGenerator | 894c4b376d52889f65a192d3bb88465b3ee9586f | 9e25df4672222b80560a8c32ff59971dc54e68ac | refs/heads/master | 2020-06-10T18:18:23.519377 | 2019-06-25T12:24:31 | 2019-06-25T12:24:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,365 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'appealUI.ui'
#
# Created by: PyQt5 UI code generator 5.12.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | [
"noreply@github.com"
] | noreply@github.com |
97f7334a5bc7c96d20dfd8b287e3555d16fb9d1d | 541fa581db6368486605fb8b622196e6fb9fc45f | /backend/manage.py | 7b40c4858ed128a63f6a08a7f209ec4b57e713cd | [] | no_license | crowdbotics-apps/speakup-radio-19595 | a8c92dd5b343cfaf95897108215feb3775f66ccf | cf97afc333feb0e81e0f8d2e4115ce983d66589f | refs/heads/master | 2022-12-03T03:05:29.785944 | 2020-08-16T16:15:05 | 2020-08-16T16:15:05 | 287,979,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | 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', 'speakup_radio_19595.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c5111d8bf2c14236a5f65d43faa5375a56c83b2a | c39c9304404774ab75e22db82ba183849097947a | /midas/types/ticker.py | ea4238c6d0d4c1e7b3d68c48feb0b067de4f1048 | [] | no_license | phuvo/midas | e9fd297847c1df5ccba3cc93f1a7b8a4f72aea67 | 78f171ff911ea615e7c86f3ddc2d80780d1ecda4 | refs/heads/master | 2023-07-02T17:37:35.735072 | 2021-08-09T15:34:00 | 2021-08-09T15:34:00 | 376,130,589 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | from dataclasses import dataclass
from datetime import datetime
from typing import TypedDict
from midas.helpers.datetime import from_ms
class TickerDict(TypedDict):
instrument_name : str
timestamp : int
best_bid_price : float
mark_price : float
best_ask_price : float
underlying_p... | [
"phu.vo@go1.com"
] | phu.vo@go1.com |
b7e68212cd709d9a98d2c452268db90ad47392ae | 871d2a367e45164f21ecdbefe52bf442b563b33c | /tests/tests/correctness/EPLAnalytics/Utilities/DataSimulator/sim_cor_030/run.py | df3cb6f159e3069ad3abecc6e54e13c8a54fb953 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | SoftwareAG/apama-industry-analytics-kit | c0f6c30badf31411a29bc6daa4a7125b76f4e737 | a3f6039915501d41251b6f7ec41b0cb8111baf7b | refs/heads/master | 2022-02-19T20:47:27.180233 | 2022-02-02T12:58:23 | 2022-02-02T12:58:23 | 185,572,282 | 3 | 2 | Apache-2.0 | 2022-02-02T12:58:24 | 2019-05-08T09:14:07 | Python | UTF-8 | Python | false | false | 3,894 | py | # $Copyright (c) 2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel an... | [
"Richard.Peach@softwareag.com"
] | Richard.Peach@softwareag.com |
58fe94d0fccf3ab29eb5bb14ff27fb2ef14c7bec | dc57b6d439753fe21a0bf04b41bfc78bb5de9957 | /colour/__init__.py | 50a7938ab6fb271394bc6a0c97ad676f10c2758d | [
"MIT"
] | permissive | adambonneruk/watch | 2ef7e7bd49ef0b5c2ef7ffdec171935934b44ede | 7ff593ea9c56284da83c41c5ab0100fd9336183d | refs/heads/master | 2023-08-12T01:40:50.856958 | 2021-10-01T17:04:11 | 2021-10-01T17:04:11 | 409,704,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | from .colour import Colour | [
"adam@bonner.uk"
] | adam@bonner.uk |
08260b91313501752e2e3f0567b2f9abe58b6278 | 9d1ef7993bf0df9967b1e7a79d5913fbc3e3a7e1 | /tests/teststatistics.py | a34c3440109210c279d13e5d7aa17a063019754c | [
"BSD-2-Clause"
] | permissive | mitmedialab/WhatWeWatch-Analysis | f6f4fbd8fba4ef6a58f4961c7f3d9b9519dae3a4 | cc01dee4e77155c8aec7638e4275172053db3247 | refs/heads/master | 2021-05-28T05:40:36.678808 | 2014-11-03T01:22:26 | 2014-11-03T01:22:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import inspect
import os
import sys
import unittest
import numpy as np
import numpy.testing as nptest
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0,parentdir)
import statistics
import stubs
import util
class Statistic... | [
"ed@elplatt.com"
] | ed@elplatt.com |
78a893873241271aad40cdcd58e8cd782cbe62e3 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/hvy_chainer-gan-improvements/chainer-gan-improvements-master/sample.py | 8326637b1ad23d6efabde2e6c8394804eb7dfa71 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,109 | py | import argparse
import numpy as np
from chainer import serializers
from models import Generator
import plot
# Resize the MNIST dataset to 32x32 images for convenience
# since the generator will create images with dimensions
# of powers of 2 (doubling upsampling in each deconvolution).
im_shape = (32, 32)
def parse_... | [
"659338505@qq.com"
] | 659338505@qq.com |
6e7e9e7be12b4e755ac17174ef8c25c82594321e | 3293dc42e15e956be202e39db196eed9912dcc01 | /estimation/causal_inference/I_and_R_treatment effect evaluation/stratified_randomized_experiments/fep_stats.py | 5f2e7f9659245edb8a169bbd0e9f13888824119d | [] | no_license | bthowe/data_science | c372e5364f24dc29e3de1fca3504211cb93b62fb | 63291df8084e5f62f9ba226e87db2242bb31ac94 | refs/heads/master | 2021-11-24T10:49:00.800890 | 2021-11-02T16:10:16 | 2021-11-02T16:10:16 | 106,839,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | import sys
import numpy as np
import pandas as pd
pd.set_option('max_columns', 1000)
pd.set_option('max_info_columns', 1000)
pd.set_option('expand_frame_repr', False)
pd.set_option('display.max_rows', 30000)
pd.set_option('max_colwidth', 4000)
pd.set_option('display.float_format', lambda x: '%.3f' % x)
def T_diff_la... | [
"b.travis.howe@gmail.com"
] | b.travis.howe@gmail.com |
59fc91d3d15106f45f51f59d0d5ace00d1cb51a0 | bf9dbb5e0b01dffe8475abfbae41672760bed4c6 | /myapp/migrations/0005_order_productsss.py | 638bdb79d016242a29fcb0ce98fdafa7174c277f | [] | no_license | sumit0407/Intellial- | 0718336fb58e296aec41fe03023d8b1f14aace30 | 3d20b458461803351b9fe002a5e9b559b77b6d00 | refs/heads/main | 2023-05-07T06:31:06.754422 | 2021-05-28T04:26:19 | 2021-05-28T04:26:19 | 371,578,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # Generated by Django 2.0 on 2021-05-27 11:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('myapp', '0004_auto_20210527_1706'),
]
operations = [
migrations.AddField(
model_name='order',
... | [
"sumitzala687@gmail.com"
] | sumitzala687@gmail.com |
7c753b08d628379d84ce75a4ca261b54312a5822 | 7be4df1bf8510239a69c7f92a45c7f4dbf53edeb | /NewsRecommendation/urls.py | dc0eb363db51d6d70395eeeec05bfc1775c0fcb6 | [] | no_license | eggtart007/NewsRecommendation | 01ef706950ff4c35796fe6b77920e43c8712c1fc | be5251350ede68adadd4d4c1d994843a3bcc0045 | refs/heads/master | 2021-04-09T13:06:21.631070 | 2018-03-17T13:40:25 | 2018-03-17T13:40:25 | 125,526,153 | 0 | 0 | null | 2018-03-16T14:19:51 | 2018-03-16T14:19:51 | null | UTF-8 | Python | false | false | 1,483 | py | """NewsRecommendation URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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... | [
"1345285903@qq.com"
] | 1345285903@qq.com |
d8e6c260e86e920edca1901e32f5e334834669ee | fb77ff2eb810d32ea960da1adb30e74476a75882 | /tools/python/api_env/lib/python3.6/site-packages/genson/schema/generators/scalar.py | 3aa34c99e5c36a36111b6eb30cebef5e0067b12c | [
"BSD-3-Clause"
] | permissive | Philip-Larsen-Donnelly/dhis2-api-specification | 337cf96eff98bf76076cd75537d320b20e4f0066 | cdcda33cae9ae0fc3365ac5bcdb351a55a5f748a | refs/heads/master | 2020-04-01T00:47:47.284763 | 2018-09-04T09:26:15 | 2018-09-04T09:26:15 | 152,713,805 | 0 | 0 | BSD-3-Clause | 2018-10-12T07:50:11 | 2018-10-12T07:50:11 | null | UTF-8 | Python | false | false | 4,797 | py | from .base import SchemaGenerator, TypedSchemaGenerator
import re
class Typeless(SchemaGenerator):
"""
schema generator for schemas with no type. This is only used when
there is no other active generator, and it will be merged into the
first typed generator that gets added.
"""
@classmethod
... | [
"phil@dhis2.org"
] | phil@dhis2.org |
5c7c59c51fcf74f9854bbfc856ddd4fa059372eb | edf441db808bb918f79f1ddfbd3b74b0fd46f33d | /Dijkstra/pqueue.py | e3247249a0ed221125c82056a4d1c544a7844a63 | [] | no_license | enderquestral/Reed-CSCI382 | c86f7ff9abccfdc229b7ae623b8969e01175c409 | 7574b74bb48f78301f676b925722ad26139442c5 | refs/heads/master | 2020-07-13T07:54:50.693303 | 2019-08-28T23:16:35 | 2019-08-28T23:16:35 | 205,038,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,718 | py | # File: pqueue.py
"""
This module implements the priority queue abstraction using a heap to
represent a partially ordered tree in which every node is smaller
than either of its children. Maintaining this property during add
and remove operations requires log N time.
"""
from array import Array
class PriorityQueue:
... | [
"noreply@github.com"
] | noreply@github.com |
74bb9d634e0d85860f81f97582e99b2159da700c | 756a8d69a8c79cb80a23ceeb4042056ac67e7f7f | /prpoj_to_srt/timings_from_prproj.py | 8984573b2c73e28b6b2a86b2042beab072844fc3 | [] | no_license | ubershmekel/pytitle | 213651a0ca5d323a6d48414c8166e3585b249fcb | eea4631c7302b734ba8407b16583a6a2b5aa6943 | refs/heads/master | 2020-04-10T14:50:36.648005 | 2013-01-14T20:38:33 | 2013-01-14T20:38:33 | 32,129,926 | 18 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,082 | py | #coding: utf-8
'''
timings_from_prproj.py takes a prproj file that has one sequence full of titles
and outputs the in and out times of each title.
This can be useful if you made subtitles using adobe premiere and
want to convert the subtitles to srt or sub files.
usage examples:
python prproj2subs.py my... | [
"ubershmekel@localhost"
] | ubershmekel@localhost |
c203dcbcd0e62de00ecb30750a4efed7d09106dc | fec70d89f651a26bbb4d706e264a5cd28ce12c06 | /convert2jpg.py | f160b1e136686d2735fd0f841528870313264919 | [] | no_license | UpCoder/Pixel_Link | ab54e5505175f6e25cfb94688869953a5236239a | c807d316c0b36280347045c25c494ea6c63c5f11 | refs/heads/master | 2020-04-01T22:56:30.560113 | 2018-10-27T09:25:01 | 2018-10-27T09:25:01 | 153,733,782 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,558 | py | # -*- coding=utf-8 -*-
import os
from glob import glob
from datasets.medicalImage import read_mhd_image, fill_region
from config import type2pixel, pixel2type
import numpy as np
from xml.dom.minidom import Document
import cv2
image_suffix_name = 'jpg'
def LiverLesionDetection_Iterator(image_dir, execute_func, *parame... | [
"546043882@qq.com"
] | 546043882@qq.com |
ecfc3bac0bddf6b0310970297e5c76cc50d20103 | e33e414418be93aa0fb19c38b82b221ed8826460 | /intel-sds-proto/vsm_configure_guide/packages/vsmclient/python-vsmclient/tests/test_base.py | 41e0c22a674faf17892e0df2b8aceaa3fafe3569 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | wisererik/proposals | 69e4caaf89d7838c14b18328dc261b6c914748bf | 9db7413983df9341d1796f2acba7202d36f31278 | refs/heads/master | 2021-05-03T23:12:39.496346 | 2018-12-22T04:02:46 | 2018-12-22T04:02:46 | 120,399,059 | 0 | 0 | null | 2018-02-06T03:54:13 | 2018-02-06T03:54:13 | null | UTF-8 | Python | false | false | 1,582 | py | from vsmclient import base
from vsmclient import exceptions
from vsmclient.v1 import vsms
from tests import utils
from tests.v1 import fakes
cs = fakes.FakeClient()
class BaseTest(utils.TestCase):
def test_resource_repr(self):
r = base.Resource(None, dict(foo="bar", baz="spam"))
self.assertEqua... | [
"huangzhipeng@huawei.com"
] | huangzhipeng@huawei.com |
8cd6ee6a029a23489877f01cf6ade38f916eecd1 | f28519794750f7070ddb107797422d8ef0fdffd3 | /day18/calc2Listener.py | c4ef6c51e699be494979ab21f764fea85cf449db | [] | no_license | marcowindt/adventOfCode2020 | d347c4a52a79ddf63907d0f10a9467600f488589 | b44f97e890dc630c5b327805117646e401ddf119 | refs/heads/master | 2023-02-05T03:22:40.953405 | 2020-12-27T15:52:24 | 2020-12-27T15:52:24 | 317,667,954 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | # Generated from calc2.g4 by ANTLR 4.9
from antlr4 import *
if __name__ is not None and "." in __name__:
from .calc2Parser import calc2Parser
else:
from calc2Parser import calc2Parser
# This class defines a complete listener for a parse tree produced by calc2Parser.
class calc2Listener(ParseTreeListener):
... | [
"m.dijkslag@student.utwente.nl"
] | m.dijkslag@student.utwente.nl |
ea06842dc1c727a4f20e8cad1480ace4973dc403 | bf7c362cc5ea7b36719fdc223c6362881878a781 | /analysis/randomness_testing/tests/06_dft_test.py | 83f9ead82216e4c794aaf7c8fdf9e38d733c0ecd | [] | no_license | croningp/xtl-rng | 8e66a5fdfcc9b51dd2e8e7b42b67ae8f346ca0c8 | 3465177eb6a4e93394ede76ea7eb3d05c71e978f | refs/heads/master | 2020-12-20T04:53:45.206298 | 2020-01-24T08:52:05 | 2020-01-24T08:52:05 | 235,968,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | import numpy as np
import scipy.special as sp
"""
The focus of this test is the peak heights in the Discrete Fourier Transform of the sequence. The purpose
of this test is to detect periodic features (i.e., repetitive patterns that are near each other) in the tested
sequence that would indicate a deviation from the a... | [
"edward.lee@glasgow.ac.uk"
] | edward.lee@glasgow.ac.uk |
9b133236e2ad668d72889f9f9e3a2f244c9ec0a4 | 7cc10f9f4e3751a6dda830368db3c085421d0797 | /config/settings.py | 6031a1b707b36522fc484610df2dfbbac10b9c34 | [] | no_license | Giangvp99/user-authentication | 74ce299e6333bf87711815ab2844be3c8232372b | 35b3f8579a865aa2b6ff849d8932a3452fff9a80 | refs/heads/master | 2023-05-28T22:48:35.333910 | 2021-06-15T20:09:53 | 2021-06-15T20:09:53 | 377,278,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,671 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib im... | [
"truonggiangvp99@gmail.com"
] | truonggiangvp99@gmail.com |
106d149d2b8e9c94c8c8c545d9e6679550afef00 | 072018af070e8746a28b1afb9ccac219e3d8244a | /settings.py | f7fadd5bcba709e2553c85aeac6c6158a625f0c4 | [] | no_license | 15129781355/12306 | ac74fcceb96e0ec72884839f64ec329acceab939 | 5068f9a1e0b8d1aba0c5bcbb3704581cdad99f24 | refs/heads/master | 2020-03-14T21:27:30.047005 | 2018-05-03T04:45:45 | 2018-05-03T04:45:45 | 131,796,441 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py |
'''1预定 3车次 8出发时间 9到达时间 10历时 21 高级软卧 23软卧 25,32商务座特等座
31一等座 30二等座 26无座 29 硬座 28硬卧 33 动卧 27 软座'''
TRAIN_DATE='2018-05-16'
FROM_STATION = '成都'
TO_STATION = '长沙'
NOW_TIME = '2018-05-02'
SET = 23
header = {
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Ch... | [
"noreply@github.com"
] | noreply@github.com |
82c65973ce72c55bcd9931f5efe46f6075355fff | d2f63a56ff7059dae66211f8eedcf8caa847f22c | /authserver/apps.py | ff26d0b855612947eb7fd7b96e74d5730ee8d614 | [] | no_license | alexlouden/authserver | 23a68fdd2c8e17dbe5f39392f92783f5d9ad40e0 | 05f0e09de4434597f1900f303965cab5e34dc829 | refs/heads/master | 2021-01-17T14:17:59.459903 | 2014-12-31T01:49:51 | 2014-12-31T01:49:51 | 28,633,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | from django.apps import AppConfig
class AuthServerConfig(AppConfig):
name = 'authserver'
def ready(self):
pass
| [
"alex@louden.com"
] | alex@louden.com |
b334814b90ea86220c975382e7dfc5b5e03db363 | 281c0694b9c6e394a0329a34d1b9ec564811fd3a | /test/test_errors.py | d6dabec0f52bb01937c19c6e0a1e1f051da688a5 | [
"Apache-2.0"
] | permissive | fridex/json2sql | 35448d1011a53c55641ef928cbcdc2c40d55fb65 | a0851dd79827a684319b03fb899e129f81ff2d3a | refs/heads/master | 2021-01-01T19:09:30.394871 | 2018-04-01T12:12:43 | 2018-04-01T12:12:43 | 98,528,002 | 0 | 0 | Apache-2.0 | 2018-04-01T12:20:36 | 2017-07-27T11:26:43 | Python | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/env python3
# ######################################################################
# Copyright (C) 2017 Fridolin Pokorny, fridolin.pokorny@gmail.com
# This file is part of json2sql package.
# ######################################################################
"""Tests for error handling."""
from json2... | [
"fridolin@redhat.com"
] | fridolin@redhat.com |
08a60c7aedb2189a0e14e94f3dd61b6ec6a0a829 | b90cb9ed45fc0557fd437d32428848a1b5282f02 | /PHOTOPLOTS/Paper/makingphotoplots.py | 328636dc96cbf50679fb6f09c404f02d69fcb067 | [] | no_license | lrhunt/LCBG_LUMINOSITY_FUNCTION | ef77cc1ef1419eda2e50e32859bd2d52458e67e7 | 758294220eef739ae5cb45675be64ed47a9da39f | refs/heads/master | 2020-04-06T23:50:26.079075 | 2019-06-14T15:10:14 | 2019-06-14T15:10:14 | 157,881,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,208 | py | #Edited for VEGA Magnitudes, Absolute Magnitude uses kcorrectiong and apparent magnitudes with proper zero-point offset. LRH 5/6/17
import numpy as np
import kcorrect
import astropy as ap
import matplotlib.pyplot as plt
import kcorrect
import kcorrect.utils as ut
import numpy as np
from astropy.cosmology import WMAP9 ... | [
"lrhunt@users.noreply.github.com"
] | lrhunt@users.noreply.github.com |
3eca6fa93c5db8360edf1d7504cead97383393d2 | 5a8214b3a452c574e6c883bf5d90ba58ba87c461 | /leetcode/549.py | bdd217ec4dc7b3604cda9930f55824e25cf201fb | [] | no_license | phlalx/algorithms | 69a3c8519687816e3c6333ec12b40659d3e3167f | f4da5a5dbda640b9bcbe14cb60a72c422b5d6240 | refs/heads/master | 2023-02-03T10:30:30.181735 | 2020-12-26T09:47:38 | 2020-12-26T09:47:38 | 129,254,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | #TAG tree
# yet another tree problem
# do it on paper first to see if we use synth/inherited attributed and how
# to deal with None
#
# If we don't recurse to None, don't forget to deal with corner case where
# root = None.
#
# In this example, we don't recurse through None because we need
# node.left, node.right val... | [
"phlalx@users.noreply.github.com"
] | phlalx@users.noreply.github.com |
f974a5ff3cc4e0023594d1d8ea0c55ea0152a5e1 | be401417ac1978de733aed969e94a5d4beeb4323 | /manage.py | c7e34945d3c0d640fd9d5f62ead051a51aa42461 | [] | no_license | noriel1214/testproject1 | 616b9da296ef64e984f212893e8e6ce1341673f8 | 97d1819ab74e182f562498233e13a1aaca610ee9 | refs/heads/master | 2020-06-23T05:15:45.897209 | 2019-07-24T10:57:56 | 2019-07-24T10:57:56 | 198,526,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | 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', 'galang_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"norielsg1214@gmail.com"
] | norielsg1214@gmail.com |
64165e3ab97aeeeb15eedc35d813c6e5e60e29c1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03086/s435473021.py | 48cf74090e9644bcb577dece1ddb37330a8fc1a4 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | ans = 0
c = 1
li = ["A","C","G","T"]
s = input()
lens = len(s)
for i in range(lens):
for j in range(lens-(i)):
a = s[j:j+i+1]
for k in range(i+1):
if a[k] not in li:
c = 1
break
else:
c = 0
continue
if c ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5015930819f15fd56f62ac215d3d8e15a384a0c1 | ca1826fe7c86b83adc83d06dc5e3c73af9c5b547 | /library_management_system/main.py | 4b1cb8650d5e5ac8120d51695c6805334864c89b | [] | no_license | asmaa0h/library | b69c956d933de651b2e0cd347feb0b8659012b61 | f731d1d437165e1338e34041fc829f06035c05e9 | refs/heads/main | 2023-04-07T13:47:14.885485 | 2021-04-14T00:18:02 | 2021-04-14T00:18:02 | 357,721,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,745 | py |
from tkinter import *
from tkinter import messagebox
import os
import sys
from tkinter import ttk
import mysql.connector
from mysql.connector import Error
py = sys.executable
# creating window
class MainWin(Tk):
def __init__(self):
super().__init__()
self.iconbitmap(r'libico.ic... | [
"noreply@github.com"
] | noreply@github.com |
e901843881086ed332a601f428db957d0382c60a | 4d7e1b959194e7ca7d99c0b5926622f37959cd02 | /todolist/admin.py | da44779ce2751e042d3daf013650127ccbdbea60 | [] | no_license | KamilBienias/my-first-blog | ce1ff6ff8912c30014a219a7059037a62a4f48d0 | 2c138991c3e53f3b3bc7b4e6d76c20d62a9a126a | refs/heads/master | 2020-12-19T07:35:58.750570 | 2020-08-23T16:15:46 | 2020-08-23T16:15:46 | 235,664,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.contrib import admin
from .models import Task, Person
admin.site.register(Task)
admin.site.register(Person)
| [
"kamil.bienias.math@gmail.com"
] | kamil.bienias.math@gmail.com |
7b86f276b243c1116435569c8fb0d5f2d54b8eb1 | 6c17535aae9e3118117bc12501c52e25184a41b8 | /manage.py | 671ba3596cd9361a7ea2b22fd743aae8202392a6 | [] | no_license | Seagather/Marshal-Unisex-Boutique | c637c2c96ddd68f36943634dfc26dd6491de6c45 | 1102bb848572bfa1b48cacbb182b4b853b08e022 | refs/heads/master | 2023-03-24T11:53:26.501221 | 2021-03-09T12:47:40 | 2021-03-09T12:47:40 | 339,834,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'marshal_boutique.settings')
try:
from django.core.management import execute_from_command_line
ex... | [
"gather4real@yahoo.com"
] | gather4real@yahoo.com |
e49dac83993049cc8519f60b1f1d47a5b8a0cd29 | b6d7dcdf561e091c5d2d18f47e0c1eb257d732bf | /d3/d3.py | 587f7624dc691365ba1bbd285aeb84aa70e54d97 | [] | no_license | perholmang/aoc2019 | 3653723d2483926c409a39a8c9cf6fc6509e2e47 | b6b517af985faf4fbefd448517d92e95bcfc3ba8 | refs/heads/master | 2020-09-22T13:44:51.911295 | 2019-12-10T21:00:00 | 2019-12-10T21:00:00 | 225,224,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,481 | py | import re
def manhattan_distance(p, q):
return abs(p[0] - q[0]) + abs(p[1] - q[1])
def intersections(grid1, grid2):
return set(grid1).intersection(grid2)
def build_wires(x, y, dx=0, dy=0):
wires = []
if dx is not 0:
step = 1 if dx > 0 else -1
for ax in range(x, x + dx + step, step... | [
"per.holmang@gmail.com"
] | per.holmang@gmail.com |
755c60fbd0ca7d69700afff4c45dde15db21dadb | 76e44d41634f1430561336924cc6014571602eb3 | /inicio/urls.py | a226900eb51fb9d351f946bbba0c9236c416a4cf | [] | no_license | ManuelaGamboa/proyectoLibreria | c80c1cdf9c2912adcfd321999511a6003e2ea75b | 16b648a60a23d9c53a3c50f25ffe05ebcd2974a5 | refs/heads/master | 2023-04-29T06:20:24.471402 | 2021-05-22T00:37:43 | 2021-05-22T00:37:43 | 369,680,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.inicio, name='inicio'),
path('novedades', views.novedades, name='novedades'),
path('colecciones', views.colecciones, name='colecciones'),
path('promociones', views.promociones, name='promociones'),
] | [
"49459817+ManuelaGamboa@users.noreply.github.com"
] | 49459817+ManuelaGamboa@users.noreply.github.com |
394e3786d5835d858732f05d8ddfa312d106f884 | 3a349a7f813e0f6f875bd1c8330093084b81d1bc | /src/website/network/models.py | 92b7a08280df3c7cd8ce06a96e517f980fac4de9 | [
"Apache-2.0"
] | permissive | senvenks/OWL-v3 | 0d43fe0e177394ffb1663551f07d5a40960203df | c31242d21cdabe140f7a72465f2633d43c392d62 | refs/heads/master | 2021-01-18T01:47:39.487031 | 2015-11-26T03:31:46 | 2015-11-26T03:31:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | #coding:utf-8
from django.db import models
from assest.models import *
from system.models import *
from django.contrib.auth.models import Group
import uuid
class device(models.Model):
uuid = models.CharField(max_length=255, unique=True,default=uuid.uuid1())
cabinet = models.ForeignKey(cabinet, null=True, ... | [
"yingsong.wu@tendcloud.com"
] | yingsong.wu@tendcloud.com |
132418f84daac856eff4a32c02f072a23ee3f716 | 1c2eebb614702c984e94aae8e53c499cd3ce83dc | /Python/ext/myp.py | 22329fa6d5c663fc5ce3d26db62d850db0b283e0 | [] | no_license | xiaochai/batman | 859a4f00525d81ed0485b93438606578fd85c600 | abd7171866537f30bf41db57796a0e9896e0ce54 | refs/heads/master | 2021-11-30T07:56:03.200001 | 2021-11-21T14:29:30 | 2021-11-21T14:29:30 | 24,407,768 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise Runtime... | [
"liqingshou@huajiao.tv"
] | liqingshou@huajiao.tv |
18963044c0b542d8438fa4a3f06fcece9a5724c2 | 19fb0eb26f5a6d2180a323cf242ce00f5e4e1c6d | /test/functional/rpc_net.py | 1edc734577b514756d5995d5ae4866c5961a14bd | [
"MIT"
] | permissive | j00v/NestEGG | bd4c9555f6473cc655e203531c6ab4d0dc795b61 | 8c507974a5d49f5ffa7000fa8b864a528dcb9c3e | refs/heads/master | 2022-12-03T09:16:14.732378 | 2020-08-12T15:25:31 | 2020-08-12T15:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,111 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test RPC calls related to net.
Tests correspond to code in rpc/net.cpp.
"""
from test_framework.test_frame... | [
"shamim.ice.ewu@gmail.com"
] | shamim.ice.ewu@gmail.com |
4688778097182bbdd346688d8db825bb2781dab7 | 12eec2e48dc270e5fbc43b09e8294432aeec78ad | /flask_test.py | d8b8014d3fc2c14bf4ebae2645464ef02b9efacc | [] | no_license | stevenzhang124/EdgeAI | f9f53a997cb9af36e153fc22052776155be8b99d | 68e745d153098e2103e82a2328e3976130633ae2 | refs/heads/master | 2023-05-01T10:29:44.688186 | 2021-05-18T09:22:50 | 2021-05-18T09:22:50 | 348,648,836 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | from flask import Flask, render_template, Response
import cv2
class VideoCamera(object):
def __init__(self):
# 通过opencv获取实时视频流
url = "rtsp://admin:edge1234@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0"
self.video = cv2.VideoCapture(url)
def __del__(self):
self.vid... | [
"1241922639@qq.com"
] | 1241922639@qq.com |
99160baf647a9da63c9e385f2f9fb066465745f5 | e0ec0af02da33ef1f1550852a39cc104ed0a95af | /파이썬 문법/빠르게 입력받기.py | fd1b05a256c8e1455ec17e61eaa8034879b2f3c3 | [] | no_license | confettimimy/Python-for-coding-test | 4d5a554b59a179b145166946c54dd2d9bd1c9de2 | 45536843c5b7382502133df833ae8a02977d84fe | refs/heads/master | 2023-07-31T22:10:47.633654 | 2021-09-25T07:45:36 | 2021-09-25T07:45:36 | 301,683,069 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | '''이진 탐색 문제는 입력 데이터가 많거나, 탐색 범위가 매우 넓은 편이다.
데이터 개수가 1000만 개를 넘어가거나 탐색 범위의 크기가 1,000억 이상이라면 이진탐색 알고리즘을 고려해보자.
그런데 이렇게 입력 데이터의 개수가 많은 문제에 input()함수를 사용하면 동작 속도가 느려 시간 초과로 오답 판정을 받을 수 있다.
이처럼 입력 데이터가 많은 문제는 sys 라이브러리의 readline()함수를 이용하면 시간초과를 피할 수 있다.'''
'''즉, 입력되는 데이터의 수가 많다면 파이썬 내장함수인 input()을 더 빠르게 작동하는 sys.s... | [
"mihyun8889@gmail.com"
] | mihyun8889@gmail.com |
4757e380f3359845888362cf48938dd71b72879a | 5493ad393ba72a46cda3a8b5cd6ed17c096b0995 | /baggage_detection/detection/detector.py | 38f5d1a0b34d378b326241585d7c7d83135c4438 | [] | no_license | Sanzensekai-mx/django_baggage_detection | d56401ec764b8ad29f0ec6f2430ae86e592fea6f | 75a9653fe09ed061bc685a839a3780208faf85a8 | refs/heads/master | 2023-05-31T23:21:09.206976 | 2021-07-05T08:01:06 | 2021-07-05T08:01:06 | 382,096,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,571 | py | import cv2
import os
import numpy as np
import tensorflow as tf
from object_detection.utils import label_map_util
from PIL import Image
from pathlib import Path
class DetectorTF2:
def __init__(self, path_to_checkpoint, path_to_labelmap, class_id=None, threshold=0.5):
# class_id is list of ids for desired... | [
"45728342+Sanzensekai-mx@users.noreply.github.com"
] | 45728342+Sanzensekai-mx@users.noreply.github.com |
79d02cb562fce71ff06afaaeb57b8329e92928b6 | 47f83587c864333e09d0c26181934fa261d06d0d | /cap05 - repeticoes/exer5_13.py | a469d27c84d42db2d9a4b899091e6c7fbbdffb85 | [] | no_license | elianekelm/livroPython | 57f5669d48a1166390c046e6be399d90f1841dc1 | 3f05a990a9105f803b5bc3775f6ef8a1a0c7df83 | refs/heads/master | 2023-03-25T14:46:58.781410 | 2021-03-26T11:10:03 | 2021-03-26T11:10:03 | 344,596,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | divida = float(input("Valor total da dívida: "))
tx = float(input("Taxa de juros mensal (% a.m): "))
pgto_mensal = float(input("Valor mensal do pagamento: "))
mes = 1
if divida * (tx/100) > pgto_mensal:
print("Sua dívida nunca poderá ser paga! Os juros são superiores ao pagamento mensal.")
else:
saldo = divida... | [
"elianekelm21@gmail.com"
] | elianekelm21@gmail.com |
3141bb2fd9c4c5ae49643d9ef49b28215b4eee4d | 53f5f873a9564730f74e4fc50546cfaf9989864d | /data preprocessing.py | 7de7b555a03b11dad07d5010e012972a0c7419df | [] | no_license | teja0404/ML_Workshop | f4866a4c2ba2422af65455b8f523df76eff12b9c | 33de0ad216b0e00cd20a4bfb502953a5094c6bf0 | refs/heads/master | 2020-04-15T20:37:10.829025 | 2019-01-10T06:18:00 | 2019-01-10T06:18:00 | 165,001,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,905 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 12 17:11:15 2018
@author: TEJA
"""
import pandas as pd
import numpy as np
from sklearn.metrics import confusion_matrix
from sklearn.ensemble import RandomForestClassifier
from sklearn.preprocessing import Imputer
import lightgbm as lgb
dff=pd.read_csv(r"C:\U... | [
"noreply@github.com"
] | noreply@github.com |
5011d651bf0e48b03a04db7835217ce1dc94d819 | afd4038d191f9eeb93d8422beaeba28e6af6825d | /plot/hexvac.py | d235bd73687d8506545338f25f263a483e798411 | [] | no_license | llandsmeer/DefectsSoftSpheres | cbe38ca8a1f81bf33a311a2260ec2549a8a86d35 | 8631f65363ed87e1e5fab6cd1a9970e7ec67a307 | refs/heads/master | 2020-05-23T13:43:44.236537 | 2020-03-02T13:04:02 | 2020-03-02T13:04:02 | 186,783,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | import numpy as np
from scipy.optimize import curve_fit
import matplotlib.pyplot as plt
def do(fn, label, flip=False, **kw):
offsets = np.loadtxt(fn)
m = offsets.mean(axis=0) / 3
print(offsets.shape)
m = np.roll(m, 5)
m[10:] += 1
if flip:
m = 1 - m
def sg(x, s, m, d):
return... | [
"lennart@landsmeer.email"
] | lennart@landsmeer.email |
e5c693420df3aaab3fb9595ba72fbe308f23db3b | df6ff6f758de6444d70cd45348d46c7e8ac2c08f | /django-job-seeker/job_seeker/workers/models/developer.py | 33bee0364f5a4316ec6cd118ecf5afdc0028cc89 | [] | no_license | joshialonzo/learning-django | 6d9407f2aac8417fd5b89a965d51d3126da8cf9c | ea16d667b6c663b109f2e164d2f3e8244d11300c | refs/heads/master | 2023-06-10T02:11:39.728348 | 2023-05-25T20:12:11 | 2023-05-25T20:12:11 | 263,170,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from workers.models.worker import Worker
class Developer(Worker):
class Meta:
ordering = ["first_name", "last_name"]
verbose_name_plural = "developers"
def __str__(self) -> str:
return f"{self.first_name} {self.last_name}"
| [
"joshi.alonzo@gmail.com"
] | joshi.alonzo@gmail.com |
b71c2fc3ac27866e57710b3e3a7188c5548d18f6 | be51d4f4ed74f0bf19434b880a4761ae991e19e4 | /project/a.py | 417612c1274736520a9a03905f5c2766b94a54e3 | [] | no_license | dishantsethi/CarbonEmission.github.io | f329342659de05cc0f2139c10b585675190b2949 | 04de79587b62e6d48131a88dc81dcde635c1ce95 | refs/heads/master | 2020-12-29T20:43:58.994234 | 2020-06-30T06:27:36 | 2020-06-30T06:27:36 | 238,725,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
data = pd.read_csv("/home/dishantsethi/Development/project/Carbon Emission/project/datasets/annual-co-emissions-by-region.csv")
df = pd.DataFrame(data)
country = df.Entity.unique()
p = df.groupby(['Entity']).sum()
l = list(p.emissions)
df2 = p... | [
"dishantsethi14@gmail.com"
] | dishantsethi14@gmail.com |
1b3db30a7578b5271f6b60271c8dd465287ffec5 | a046a9fdd7e2597bd0d622f397fe89069563bc27 | /aiodav/utils.py | 364c4f40f4fd797cd779bf93c1d0e0704b6fc1e3 | [] | no_license | GerbenAaltink/aiodav | 895ecb74f5b3c0a6d606aca83b41b1eebd868d46 | 0d5de12b00bf598d35f2f3f9ea617c6ed5fbe46e | refs/heads/main | 2023-03-18T22:16:53.926498 | 2021-03-03T15:52:40 | 2021-03-03T15:52:40 | 340,533,843 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import pathlib
from time import strftime, gmtime
def safe_url(prefix: str, path: pathlib.Path) -> str:
uri = path.name
# parts = '/' + prefix + uri
return uri
def unixdate2iso8601(d):
tz = timezone / 3600 # can it be fractional?
tz = "%+03d" % tz
return strftime("%Y-%m-%dT%H:%M:%S", localti... | [
"gerbenaaltink@gmail.com"
] | gerbenaaltink@gmail.com |
8df84535cd1b83a1c781be7a32b533ab86b8f16a | 5bf839260388317da041865176dec2168825bd5a | /passingReference.py | 75c109af90aa91cf644f8835d46ff26bab56a59b | [] | no_license | kaushal77/automate_with_python | 1237665b4616ee56fdef6be5791645e21c78fe7b | a00fc03afc42e7e1e1ab91b7f0ba1aa61f454b27 | refs/heads/master | 2022-12-10T10:41:45.538345 | 2020-09-08T13:40:26 | 2020-09-08T13:40:26 | 286,687,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | def eggs(x):
x = [z**2 for z in x]
return x
val = [1,2,3]
s = eggs(val)
print(val,s)
| [
"kaushal.chitlangia97@gmail.com"
] | kaushal.chitlangia97@gmail.com |
b6d81fb2e5988a22b27fea82855bb1e139c2c3e6 | bc66ae8f5f86ca431966b7ae4d2580d4a3021622 | /python_study/mymhxy/image_operation.py | 38504c96e9a866952df00603667357d97242115d | [] | no_license | IORI2A/hello-world | 528c752f08eb1d5c80b3bbaf4ff4c3325d988f62 | 4a18475138db07a7976f9b1a3664c1857196bef7 | refs/heads/master | 2022-10-04T00:02:55.623826 | 2020-06-08T11:30:15 | 2020-06-08T11:30:15 | 106,897,643 | 0 | 0 | null | 2019-02-19T14:43:17 | 2017-10-14T04:21:35 | null | UTF-8 | Python | false | false | 3,988 | py |
import logging
import sys
from string_operation import *
from PIL import ImageGrab
from PIL import Image
from datetime import datetime
# 获得图像的hash值
def get_hash(img):
img = img.resize((16, 16), Image.ANTIALIAS).convert('L') # 抗锯齿 灰度
avg = sum(list(img.getdata())) / 256 # 计算像素平均值
s = ''.join(map(lamb... | [
"gdlizhi1988@163.com"
] | gdlizhi1988@163.com |
30cb251586599dc04ef74e664fb104b60b42d8e1 | 4a9dada02c749e9e5277fe1e35357d7b2b28ad5c | /高艺航2018012950/操作系统实验/作业3 创建多进程.py | 6c0b31386f1a4c6f1d792b15aa9fb29d96d4ee90 | [] | no_license | wanghan79/2020_Option_System | 631cc80f52829390a128a86677de527472470348 | f37b870614edf7d85320da197d932df2f25a5720 | refs/heads/master | 2021-01-09T13:10:05.630685 | 2020-07-10T03:30:39 | 2020-07-10T03:30:39 | 242,312,271 | 13 | 9 | null | 2020-07-04T16:13:11 | 2020-02-22T09:12:56 | Python | UTF-8 | Python | false | false | 442 | py | """
Author : Yihang.Gao 高艺航
StuNumber: 2018012950
Purpose : Set up multiprocess by python.
Created : 1/7/2020
"""
from multiprocessing import Process
def setup_pro(i):
print('process',i)
if __name__ == '__main__':
list_pro = []
for i in range(3):
k = Process(target=setup_pro, a... | [
"noreply@github.com"
] | noreply@github.com |
12000f3a8dd346c578b87eadbc205c1c845b5c77 | 9efa1f917ad3f69539dd27ec4d19a6203e8a5963 | /split_join.py | 66bef74cafecda6147aa3c95acb26e2802b61539 | [] | no_license | roshik2016/Hacker_Rank_Python | cc890795d8fed10501687b735d7d63a39818a290 | cdaecb09f09c6841c1dce1a425ed2b19a3ded21d | refs/heads/master | 2020-03-29T12:46:07.614804 | 2018-09-28T06:54:05 | 2018-09-28T06:54:05 | 149,918,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | def split_and_join(line):
return "-".join(line.split(" "))
if __name__ == '__main__':
line = input()
result = split_and_join(line)
print(result) | [
"roshik2016@gmail.com"
] | roshik2016@gmail.com |
88d7027dbddea95c441b3fb39408fc332ea21185 | b9b586c75f0d3e4de3caa7a38842fbf7e53720f9 | /zq/main.py | c797a89e7044067bd0361e87befcb9e702b930eb | [
"MIT"
] | permissive | Zipha/py-service-sdk | 551954a233d4a3551b93c7a57de03b5a17730281 | dcef97e8080689071b6e1e9aecec654f0ec38562 | refs/heads/master | 2023-02-11T11:51:58.455634 | 2021-01-11T10:20:29 | 2021-01-11T10:20:29 | 298,796,010 | 0 | 2 | MIT | 2021-01-11T10:20:30 | 2020-09-26T11:05:16 | Python | UTF-8 | Python | false | false | 1,083 | py |
from fastapi import FastAPI
from starlette.exceptions import HTTPException
from starlette.middleware.cors import CORSMiddleware
from starlette.status import HTTP_422_UNPROCESSABLE_ENTITY
from . import ALLOWED_HOSTS, API_V1_STR, PROJECT_NAME
# from .core.errors import http_422_error_handler, http_error_handler
from .d... | [
"ranjitha@quanscendence.com"
] | ranjitha@quanscendence.com |
0d75a17b92b3554a3d19d133f058794bb6854af1 | c23deb7b7155aa549e94a90b2688ef33b701cd7b | /apis/schemas/repositories/jobs.py | 90665a73d3e0ed82dc3cab4d8c6d590d75b77639 | [] | no_license | Rrokeyaafroz/Official-Website-Backend-GraphQL | efb6ce2f441ba821fb733a29b06915401ac26b9e | be2582fdad2e94dbfb47c785992e136bb372b274 | refs/heads/master | 2023-08-15T18:43:29.649735 | 2021-10-03T20:33:40 | 2021-10-03T20:33:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | from graphene import relay
from graphene_django import DjangoObjectType
from graphene_django.filter import DjangoFilterConnectionField
from apis.models.jobs import Jobs
class JobsType(DjangoObjectType):
class Meta:
model = Jobs
fields = ("id", "projectName", "title", "description", "requirements",... | [
"sazidahmed.official@gmail.com"
] | sazidahmed.official@gmail.com |
ed5eb4fea9abb6d9e7d56595dc9603d9abd22bf4 | 77c641fd0708b279dddbe01f6af32a8531b93185 | /marketsim/gen/_intrinsic/observable/minmax.py | 734d5a8a443fbbb0acaf22a6f90bff1435caa3bc | [] | no_license | abensrhir/marketsimulator | aea286afd2bb2e0c8a547bfa879601aef21c0cd5 | f9f55c72fb34cdbec42b96737ca20839f26c6299 | refs/heads/master | 2020-12-13T20:55:55.795344 | 2014-02-24T22:52:24 | 2014-02-24T22:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | from marketsim import event, _
import fold
class Min_Impl(fold.Last):
def __init__(self):
event.subscribe(self.source, _(self)._update, self)
self.reset()
def reset(self):
import blist
self._levels = blist.sorteddict()
self._x = None
def at(self,... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
8a2849f907b662cf209af4b392c77109e069f0f7 | 7361aa7f085abfc153a3f8413ea34c807022c40d | /minimum_remove_to_make_valid_parentheses_2.py | d9ba895246c9fd20ade474ec54d82d7b4024f0ea | [] | no_license | GeeksIncorporated/playground | 9f6c3c2579d361ca3eab7670146f3c4c8e59647d | f0231ffb0483382b9f1938a7d9959edd8362e1e3 | refs/heads/master | 2021-06-16T05:08:11.888277 | 2021-03-04T01:25:44 | 2021-03-04T01:25:44 | 169,956,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | from collections import defaultdict
import time
class Solution:
def is_valid(self, s):
counter = 0
for c in s:
if c == '(':
counter += 1
elif c == ")":
counter -= 1
if counter < 1:
return False
return count... | [
"alexeyv@fornova.net"
] | alexeyv@fornova.net |
ab7f5e6e4ba3838c9116a89bfe5a9a36790c7938 | 566ad70305735125a8abd695b4b6a8099e1161de | /1.1_VoicebotRuuh_6_langs_Transliteration_Search/texttospeech_search.py | 1c1303b6f9e1883b309d47752b336aad80fff14e | [] | no_license | techiexplorer/bumblebee_ruuhMS | 468bf799838028862515e6eb63611aef7cec0112 | 4997c49338a78797a142332422c798b241d113a8 | refs/heads/master | 2022-12-06T06:36:25.175799 | 2019-11-01T17:23:19 | 2019-11-01T17:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from gtts import gTTS
import os
import sys
non_bmp_map = dict.fromkeys(range(0x10000, sys.maxunicode + 1), 0xfffd)
class TTs:
""" This class provides the method to convert Text obtained to speech"""
@staticmethod
def savemp3():
""" This method saves the voice output as an mp3 file"""
if(os.p... | [
"farhan_mohammed98@outlook.com"
] | farhan_mohammed98@outlook.com |
7ff6bc6eb21c8d4b7d8ca92437ee32d58d1f0065 | 959f797f1c1def31e0c7065075b98ae698ff57f0 | /hs-news-archive-search.py | 834342c4f751a0a555fc36e2ff6498d0f9c9fc8f | [
"MIT"
] | permissive | henrihapponen/Helsingin-Sanomat-News-Archive-Search | f11ccca44fe9265b4ee17ca88497862c42fe6b1b | b9bbea029b51b65757c4a10518c1c94e70bbf30a | refs/heads/main | 2023-05-12T18:32:26.532833 | 2021-06-05T11:34:22 | 2021-06-05T11:34:22 | 336,046,913 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,773 | py | # This script automates a query into historic news articles and fetches headline data
# from Helsingin Sanomat news archive at https://www.hs.fi/arkisto/
# Only the headlines and their dates of publishing are returned.
# You can search for names, words etc to appear in the articles and select how many headlines you wan... | [
"noreply@github.com"
] | noreply@github.com |
cb5e83d7f86c8e1618f48ff64449ce34feb88174 | fd5f81c28ff714a556df7ae78229e87d3324c033 | /model/yolov4.py | 2641deea80b03c0e359432fb339b36eb3e7a2ce2 | [
"Apache-2.0"
] | permissive | khoadinh44/Scaled-YOLOv4-tensorflow2 | 406736a5b213beba85c62240847b182593b5cbd3 | 59b3dba5b9664d634f5e517a0181750d78e3d28e | refs/heads/main | 2023-08-09T08:32:26.590937 | 2021-09-18T13:55:04 | 2021-09-18T13:55:04 | 407,718,516 | 0 | 0 | Apache-2.0 | 2021-09-18T01:01:21 | 2021-09-18T01:01:21 | null | UTF-8 | Python | false | false | 945 | py |
import tensorflow as tf
from model.CSPDarknet53 import scaled_yolov4_csp_darknet53
from model.head import head
from model.yolo_head import yolov3_head
from model.postprocess import postprocess
def Yolov4(args, training=True):
input = tf.keras.layers.Input((None, None, 3))
scaled_yolov4_csp_darknet53_outputs ... | [
"wangermeng2021@gmail.com"
] | wangermeng2021@gmail.com |
2769aae7889daf556488c8a10f780e347dc16d9e | 026bb1171804ec9d8c1cd7c5cef93f756ac48a9c | /sneakerbot_sensor_command.py | ceb96b82735068900a17f84a8d979d5efabc5f87 | [] | no_license | AlanKuist/Robot_Codes | 59b6da6affb04856571002238b65040d992a0aa7 | d093513d1badcff9d7189749fecb90a9f4308662 | refs/heads/master | 2020-03-27T19:57:27.080505 | 2018-09-01T18:58:59 | 2018-09-01T18:58:59 | 147,024,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | import RPi.GPIO as GPIO
import time
import curses
GPIO.setmode(GPIO.BOARD)
# Get the curses window, turn off echoig of keyboard to screen, turn on
# install (no waiting) key response, and use special values for cursor keys
screen=curses.initscr()
curses.noecho()
curses.cbreak()
screen.keypad(True)
GPIO.setup(3,GPIO.O... | [
"alanhc663@gmail.com"
] | alanhc663@gmail.com |
a0dae0068cd24ba54fd8c8d2372e9f9a3502eae7 | a260e2afb9e960a7a3c2de9edef5c523ef087a85 | /Models/NN/dataset.py | a217f7f93c07cf83f3faed0716f1630de7fd2f43 | [] | no_license | ZebornDuan/KDDCup2018 | 22ebb6bc69ecaa03628fa1722bc8a317d237a567 | d499b0d5612c122a83b8a0374785ff84d28b64d8 | refs/heads/master | 2021-04-15T04:09:21.924110 | 2018-05-30T09:02:17 | 2018-05-30T09:02:17 | 126,484,317 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import numpy as np
import pandas as pd
path = '/home/duanchx/KDDCup2018/{}'
batch_size = 30
normalization = {'PM2.5': 1000.0, 'PM10': 3000.0, 'O3': 300}
def generate(where, which):
aq = pd.read_csv(path.format('%s.csv' % where))
array = np.array(aq[which])
x = np.array([])
y = np.array([])
n = 0
for i in rang... | [
"rebornduan@qq.com"
] | rebornduan@qq.com |
4777e9f79fa6a0efbf3d19c19838bd9997a4bc95 | d954992f3c51037d528a9f88025084f14c6e105a | /mmdet/models/roi_heads/base_roi_head.py | 2d61cc08007924c61b4a53d7fbc6e6fedfd68f08 | [
"Apache-2.0"
] | permissive | attendfov/mmdetection | 22c5511aa0d6df7037c91fb21f93eb3cc86baa82 | 4d7b854b34e8857f71d80d1716ae683b92dc6631 | refs/heads/master | 2023-03-29T07:27:50.798503 | 2021-04-10T02:58:08 | 2021-04-10T02:58:08 | 255,856,786 | 0 | 0 | Apache-2.0 | 2021-04-10T02:58:09 | 2020-04-15T08:43:49 | null | UTF-8 | Python | false | false | 3,021 | py | from abc import ABCMeta, abstractmethod
import torch.nn as nn
from ..builder import build_shared_head
class BaseRoIHead(nn.Module, metaclass=ABCMeta):
"""Base class for RoIHeads."""
def __init__(self,
bbox_roi_extractor=None,
bbox_head=None,
mask_roi_extra... | [
"noreply@github.com"
] | noreply@github.com |
c1736eb91fa138eb8771fc8905b087780353bab3 | d0457df5d7550a40675e272766badc7c0a152333 | /redis_store/__init__.py | ddff7815a4ac0259ee0d2d4b1512c02656547247 | [] | no_license | NoharaHiroshi/ImageSearchApp | 2436d5f0b9fb305c732e75259cdc4a3400db64c1 | 319d665d4f0b38512217e7c390f943a46e121d83 | refs/heads/master | 2018-10-16T08:20:48.117645 | 2018-07-30T08:39:14 | 2018-07-30T08:39:14 | 104,186,694 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | # coding=utf-8
from redis_store.redis_cache import common_redis
| [
"380788433@qq.com"
] | 380788433@qq.com |
81810a329a5f78bbc7d8765b16c4667718c1dbc4 | 5601e4f0f341a297b54b8a76550d79bd26784df9 | /ssi_lead/models/contact.py | 6d1a192ad9e2f62374676ebf3dc102f1367ffe0c | [] | no_license | b-kannan/rsaworks | 2ba27ddd9d114337f259b974870781d2f528cc1f | 0ecd7e04b0c02cea288d8ab74f0ea06c87cc6019 | refs/heads/master | 2022-03-07T01:01:13.104860 | 2019-09-13T15:22:22 | 2019-09-13T15:22:22 | 208,932,912 | 0 | 0 | null | 2020-10-14T16:04:27 | 2019-09-17T01:36:40 | null | UTF-8 | Python | false | false | 4,010 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models, tools, _
class Contact(models.Model):
_inherit = 'res.partner'
project_manager_id = fields.Many2one('res.users', string='Project Manager', help='Project Manager from user table.')
fax = fields.Char(string='Fax')
opened_date = fields.Date(st... | [
"chadt@ssibtr.com"
] | chadt@ssibtr.com |
24270682d2c0d323106d2ea9479bde3deafeb0f6 | 1eaabf56db320e6da26a56f054ddfa5089f824e7 | /67. Add Binary.py | 92c5e6e01f62bebf6379f38f93e5df36eecca8cc | [] | no_license | MarioAguilarCordova/LeetCode | 3d8151a78105eaef898032934fbb6a59edc92a9e | a54f1301a155670ca2f8a576d3de60066a3aefcf | refs/heads/master | 2023-08-31T04:57:29.580052 | 2023-08-24T02:34:02 | 2023-08-24T02:34:02 | 253,087,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | class Solution:
def addBinary(self, a: str, b: str) -> str:
bin_sum = lambda a,b : bin(int(a,2) + int(b,2))
return str(bin_sum(a,b)[2:]) | [
"mario-772010@hotmail.com"
] | mario-772010@hotmail.com |
d2d669e69ba2d6b37b418305b77bbf16dfe15549 | bed4db81d7174a584b0f9e5464e7468acd769f79 | /jobs/views.py | 515ab0f5eeece5ea9de06629485a07230e6d7605 | [] | no_license | json-parse/public_pycph | e7b7427ebec4b8d3c3066ca19192175eebfa25b7 | 3950fc884171e95e11452ee16fc08239683463e3 | refs/heads/master | 2023-02-25T08:47:22.264473 | 2020-02-19T09:56:51 | 2020-02-19T09:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,965 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from .models import Job
from .forms import JobForm
from events.models import Event
from django.core.mail import send_mail
from django.conf import settings
from datetime import datetime
def job_list(request):
approve... | [
"maite@desktop-ur30s4o.kea.local"
] | maite@desktop-ur30s4o.kea.local |
80c52904e709c500ffafd4ec6a179515becbb032 | 665b3a9087129e3ff2eb7ca3e856fe3fa4026ca5 | /screenshot.py | 061411da483b2d1e77fc49304f0761bf5ed3178e | [] | no_license | workingenius/glance | 0c2d1b053a5b9b90939f39103faa2dbf719b042d | 054c2594c7f4587872a6d0472849f9a939f67578 | refs/heads/master | 2022-09-19T08:17:57.272958 | 2020-06-02T14:49:12 | 2020-06-02T14:49:12 | 269,393,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | """
generate code screenshots in vi
"""
from time import sleep
from subprocess import Popen
from uuid import uuid4
from os.path import join
from random import randint
import os
import click
SCREEN_MAX_LINES = 36
def screenshot(fp_code, fp_img):
"""open fp_code with editor, take a screen shot, and save the ima... | [
"workingenius@163.com"
] | workingenius@163.com |
2421c8aaf396d138256f1ee9751e4852aee98aab | 963d0e13a14942f9ac685a696935d3317fa76f90 | /SimpleHTR-master/src/main.py | 8c67a06b99cdc962b0cb14728d5c5dc22e6ee502 | [
"MIT"
] | permissive | FaizaQureshi93/Thesis | 7917c0367198111edd9d1a7ad6b2ad9eeb152277 | 271eeda530534d4a25eb1487c38c401a5ff0e12f | refs/heads/main | 2023-01-23T20:44:11.311393 | 2020-11-21T04:43:29 | 2020-11-21T04:43:29 | 314,732,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,985 | py | from __future__ import division
from __future__ import print_function
import sys
import argparse
import cv2
import editdistance
from DataLoader import DataLoader, Batch
from Model import Model, DecoderType
from SamplePreprocessor import preprocess
import glob
import os
class FilePaths:
"filenames and paths to data"
... | [
"qureshi.faiza22@gmail.com"
] | qureshi.faiza22@gmail.com |
d276364df8ec40da6b689afb1517955d749b9b02 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/eqpt/ingrcrcerrpktshist1w.py | 111b05ec20a3806ac9cbfd58cafef8a9e436340c | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,741 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
d37a9141e5f1b3d3a3e8d251ea1d8212f07b3a34 | df7aa2eb2f0f1944f4099ef0e4377a3981b8afc5 | /pl_bolts/models/rl/sac_model.py | a65a6ff8ee21fd3394f50d0be7bc8d99cd87dc5a | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | lavoiems/lightning-bolts | b8b84c4fe25608ff2290426c61772860a2256f8c | 208e92ba3dcdbc029afd37e09ec9461fbcf3f293 | refs/heads/master | 2023-09-01T23:50:08.634388 | 2021-11-08T18:38:26 | 2021-11-08T18:38:26 | 426,646,437 | 0 | 0 | Apache-2.0 | 2021-11-10T14:09:52 | 2021-11-10T14:09:52 | null | UTF-8 | Python | false | false | 14,595 | py | """Soft Actor Critic."""
import argparse
from typing import Dict, List, Tuple
import numpy as np
import torch
from pytorch_lightning import LightningModule, Trainer, seed_everything
from pytorch_lightning.callbacks import ModelCheckpoint
from torch import Tensor, optim
from torch.nn import functional as F
from torch.o... | [
"noreply@github.com"
] | noreply@github.com |
20427a03af6d5566c36d42e5d8ea4bcbfd11aa93 | 33836016ea99776d31f7ad8f2140c39f7b43b5fe | /fip_collab/2015_02_19_strain_stress_vtk/old_version/Calculate_Stress_from_Strain_ORIGINAL.py | 46c772ad37f6fbc4da3a37d15695c54b8772e00f | [] | no_license | earthexploration/MKS-Experimentation | 92a2aea83e041bfe741048d662d28ff593077551 | 9b9ff3b468767b235e7c4884b0ed56c127328a5f | refs/heads/master | 2023-03-17T23:11:11.313693 | 2017-04-24T19:24:35 | 2017-04-24T19:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,842 | py | #
# Calculate_Stress_from_Strain_MKS.py
#
# Written by Matthew Priddy on February 19, 2015
#
from sys import *
from string import *
from math import *
from pylab import *
from random import *
from numpy import *
import itertools
from numpy import tensordot as td
import matplotlib
#matplotlib.use('PDF')
i... | [
"noahhpaulson@gmail.com"
] | noahhpaulson@gmail.com |
4d6a69101128cf2a501beb4695b10e4e6725b142 | da130508b04587493424d6c95ab05a55dd70170f | /math/0x00-linear_algebra/2-size_me_please.py | e49b8b8ce7b567c07f70d7815294e0e636d80882 | [] | no_license | AndrewKalil/holbertonschool-machine_learning | ea38c0d1ef6ce2206da5f3903fcc22730404af9c | bb980395b146c9f4e0d4e9766c4a36f67de70d2e | refs/heads/master | 2023-07-09T04:09:24.271069 | 2021-08-11T02:29:54 | 2021-08-11T02:29:54 | 317,371,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | #!/usr/bin/env python3
""" 0x00. Linear Algebra """
def matrix_shape(matrix):
""" calculates shape of a matrix """
if matrix:
shape = [len(matrix)]
while type(matrix[0]) == list:
shape.append(len(matrix[0]))
matrix = matrix[0]
return shape
else:
retu... | [
"1541@holbertonschool.com"
] | 1541@holbertonschool.com |
ba7b7cb417bcb9277c635186a1a8a5906b90a1c7 | 4ac18b0b3405bad5b48e06937a39517fb4d32a96 | /AutoUI/testFrame/Search.py | 9d50ca869a3588df8ce2ec30391b5dfaf595e368 | [] | no_license | hjklbf/WebUIAutoTest | 2917e877b99ff715dbc2d1be576f19eb692afca8 | 02af8430f0fb91e18afc1a44d196edba40da6903 | refs/heads/master | 2021-01-20T03:06:12.790303 | 2017-08-25T00:10:59 | 2017-08-25T00:10:59 | 101,346,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import unittest
class Search(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test(self):
self.assertEqual("aaa","aaa")
if __name__=="__main__":
unittest.main()
| [
"cjbd1g@hotmail.com"
] | cjbd1g@hotmail.com |
63e704fb0b74b7dc9aa12353fd8b828810bc387e | 8a395fdecdf77cccce3d200315e738152c345951 | /appengine/lib/Renderer.py | 484f49c7ae95c0fa9bf9a057179b3b744fa41620 | [] | no_license | moodfactor/notifry | 8e52c8e2d2d919b7d81e25a30a293dfc33de0e4b | 6a1ee3d0e55fefde1fc6db5d6b34ecedfade47b9 | refs/heads/master | 2020-09-12T06:59:48.813228 | 2016-01-19T15:43:11 | 2016-01-19T15:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,765 | py | # Notifry - Google App Engine backend
#
# Copyright 2011 Daniel Foote
#
# 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 b... | [
"freefoote@ce674eb3-4e32-b282-9e7e-a1069e2c5fe8"
] | freefoote@ce674eb3-4e32-b282-9e7e-a1069e2c5fe8 |
ca4f5cab50d67b22d56721e02feed6e8733cc4e4 | 7b102f9c8f2e3f9240090d1d67af50333a2ba98d | /gbd_2019/shared_code/cod_database/02. Map to GBD Cause list/mapping.py | f628105216254961b3a62a4acc97a8e2bfed2cf0 | [] | no_license | Nermin-Ghith/ihme-modeling | 9c8ec56b249cb0c417361102724fef1e6e0bcebd | 746ea5fb76a9c049c37a8c15aa089c041a90a6d5 | refs/heads/main | 2023-04-13T00:26:55.363986 | 2020-10-28T19:51:51 | 2020-10-28T19:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,422 | py | """Map data causes to GBD causes."""
import pandas as pd
import numpy as np
from pathlib2 import Path
from cod_prep.claude.cod_process import CodProcess
from cod_prep.downloaders import (
add_nid_metadata,
add_code_metadata,
add_cause_metadata,
get_garbage_from_package,
get_all_related_causes,
)
f... | [
"cheth@uw.edu"
] | cheth@uw.edu |
d4088c4ab77b083f972d428a0ce87909942c2d89 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02399/s168551365.py | 01908c0ef89d62a27267c675c1736b6a0a60212f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | l=raw_input()
k=l.split()
a=0.0
b=0.0
a=int(k[0])
b=int(k[1])
#
print int((a-(a%b))/b),
print int(a%b),
a*=1.0
b*=1.0
if b==1:
print a*1.0
else:
if a/b>0.0000002:
print a/b
else: print "0.00000001.99999982" | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
39b376d4659867e57bf3f54f133e69cfb562bf1f | 26021976a943f6cd111c76353bce6630b0c6f1cc | /eventity/system.py | 4248e948c4e2a114d7cb73573523c3da06eae1b4 | [] | no_license | JonSnowbd/Eventity | 7456f07f8d1dfae8ea560cf16d14c033f6b801b1 | b8c8a45cd1145663947a4a8c1ef8162915defb35 | refs/heads/master | 2021-01-10T15:55:04.906945 | 2016-01-24T09:16:57 | 2016-01-24T09:16:57 | 50,157,088 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | class System(object):
def __init__(self, eventmanager, entities, ecs):
self.ecs = ecs
self.set_up(eventmanager)
| [
"vasti009@gmail.com"
] | vasti009@gmail.com |
15cba2f9935ef81b882a6654f3520f59bf68edcb | 7f4888965d14bba1b4789d28ceb299d547e5a087 | /echo_system.py | 6f1b2b3af4aa4af35260d8848d015ec03b949514 | [
"MIT"
] | permissive | AdelaKim-nm/dsbook | a806d80fb09663ba8fe4373e58cea214183b81b9 | 56d78b298f82f787ce101304a22720679554fd97 | refs/heads/master | 2022-11-14T02:37:57.583271 | 2020-06-07T15:04:00 | 2020-06-07T15:04:00 | 274,706,793 | 0 | 0 | MIT | 2020-06-24T15:42:07 | 2020-06-24T15:42:06 | null | UTF-8 | Python | false | false | 546 | py | from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from telegram_bot import TelegramBot
# ユーザの入力をそのまま返す対話システム.
class EchoSystem:
def __init__(self):
pass
def initial_message(self, input):
return {'utt': 'こんにちは。対話を始めましょう。', 'end':False}
def reply(self, input):
... | [
"m-inaba@uec.ac.jp"
] | m-inaba@uec.ac.jp |
bcd2f01ad9e22b2e61284d327a003087443eb860 | f1bfc81dd6d748d50147e4dded57f88f21321722 | /products/urls.py | 63c598a24999c37b3ad51b7629b719b412e9e537 | [] | no_license | Tania590/Simple-Producthunt-clone | b7d5de6530f9ce690f4db1969e57e15e12592bc8 | 457e3666fb48ccd4afc875870f3f9d235d649901 | refs/heads/main | 2023-08-26T03:07:29.387803 | 2021-11-07T07:07:21 | 2021-11-07T07:07:21 | 425,436,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from django.urls import path
from . import views
urlpatterns = [
path('create/', views.create_product, name='create'),
path('detail/<int:pk>/', views.product_detail, name='detail'),
path('<int:pk>/upvote/', views.upvote, name='upvote'),
]
| [
"taniazuck@gmail.com"
] | taniazuck@gmail.com |
afb7b1c1f7b6530a07d7f811577e8294e4a176a6 | 9dba8607dce414f9905700d7a4ac44668de5e1f1 | /Brelaz/rough_calculations/dir1_reinforcement.py | 3f25e1b2285ceab6ba6be10343ff326ed6f62365 | [] | no_license | anaiortega/XCmodels | c0463ffe38531578aee281456e88528882255cd7 | e9b8c2f996a21b8aa3314242f3cc12b0e391b5df | refs/heads/master | 2023-08-16T22:44:01.168775 | 2023-08-14T18:15:10 | 2023-08-14T18:15:10 | 141,140,177 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | # -*- coding: utf-8 -*-
from rough_calculations import ng_cantilever
from rough_calculations import ng_simple_bending_reinforcement
from matplotlib import pyplot
from mpl_toolkits.mplot3d import Axes3D
from materials.sia262 import SIA262_limit_state_checking
beam= ng_cantilever.Cantilever()
beam.l= 2.45+0.5
#Loads
Qa... | [
"ana.Ortega.Ort@gmail.com"
] | ana.Ortega.Ort@gmail.com |
27e9afb6605ffc0779f2b86f6594d53f53428e00 | e63c127ad19d0faa25cf2b0c25321e216d27556a | /sheets/urls.py | 09f2e00e860e814644bb51051bd8bfc087405cf6 | [] | no_license | lykius/iLectern | e4a04616b7c3fb5d9b42a1cd7b2f633d4be23d97 | dd4735674c5dcd5f048756ceffce1a71b53ed03b | refs/heads/master | 2021-01-13T16:15:28.118724 | 2019-03-02T08:18:29 | 2019-03-02T08:18:29 | 81,872,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | from django.conf.urls import include, url
from .views import SheetListView, SheetView
urlpatterns = [
url(r'^$', SheetListView.as_view(), name='list'),
url(r'^view/(?P<pk>[0-9]+)/$', SheetView.as_view(), name='view')
]
| [
"lucadeluigi91@gmail.com"
] | lucadeluigi91@gmail.com |
873435ebcf315fdf5a06cc0761334d89ed6573cf | 634c3a39c54b2dfa528c567ca2bca2d101eac5f7 | /recipes/libyaml/all/conanfile.py | 76929ecae87c6f265b539c8c2cc84d89db9ecd07 | [
"MIT"
] | permissive | lagner/conan-center-index | e48f76f870ca94b3f232d073689e1837562d1d86 | d68a8fbb938402a5a53fa6b0214c49ccf878f8a9 | refs/heads/master | 2023-02-23T16:57:02.049036 | 2020-08-14T21:33:09 | 2020-08-14T21:33:09 | 280,855,343 | 0 | 2 | MIT | 2021-01-26T10:42:12 | 2020-07-19T11:54:07 | Python | UTF-8 | Python | false | false | 2,488 | py | from conans import ConanFile, CMake, tools
import os
class LibYAMLConan(ConanFile):
name = "libyaml"
description = "LibYAML is a YAML parser and emitter library."
topics = ("conan", "libyaml", "yaml", "parser", "emitter")
url = "https://github.com/conan-io/conan-center-index"
homepage = "https://g... | [
"julien.marrec@gmail.com"
] | julien.marrec@gmail.com |
d66df70d11666f9940a6c0369754194d8174491c | 020fca6987cbfe92296a13a9de31086e82a16fc8 | /sequence-rec/lstmRecTricov.py | 2e87e392e5c9b7feefef4c574a42cd3470a38a0c | [] | no_license | simeneide/phd-notes | 20338f509af676ce09cafbccc21377d50f0b6737 | 1857c6197eb724a106116fece5ab22c3697a32cf | refs/heads/master | 2021-11-17T23:02:21.341441 | 2021-09-22T22:40:59 | 2021-09-22T22:40:59 | 148,496,621 | 4 | 0 | null | 2020-10-01T10:36:06 | 2018-09-12T14:51:12 | Jupyter Notebook | UTF-8 | Python | false | false | 5,109 | py | import pyro
import torch.nn as nn
import torch
import torch.distributions.constraints as constraints
import pyro.distributions as dist
from pyro import plate
from pyro.distributions import Categorical
class LSTMrec(nn.Module):
def __init__(self, num_items, emb_dim, batch_size, device):
super(LSTMrec, self... | [
"simen@eide.ai"
] | simen@eide.ai |
9a2e5f2affbe659988b2dcc4868f355aca84fe6e | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_noisy97.py | ca96178cd0302f984e45a6a0b7044d5df04c19b2 | [
"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 | 5,183 | py | # qubit number=3
# total number=16
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
43a3de2ecfead616819fe5e028bf38e44a50baa1 | 1b78ca7f3250ebed418717c6ea28b5a77367f1b8 | /318.maximum-product-of-word-lengths/maximum-product-of-word-lengths.py | 4bb2a28a8a6aa610056989f8cf03d7720cd87fd1 | [] | no_license | JaniceLC/lc-all-solutions | ced854f31b94f44c0b03a0677988805e3b9ee718 | 3f2a4ee8c09a8890423c6a22c73f470eccf979a2 | refs/heads/master | 2020-04-05T19:53:31.307528 | 2018-11-12T04:18:45 | 2018-11-12T04:18:45 | 157,155,285 | 0 | 2 | null | 2018-11-12T04:13:22 | 2018-11-12T04:13:22 | null | UTF-8 | Python | false | false | 619 | py | class Solution(object):
def maxProduct(self, words):
"""
:type words: List[str]
:rtype: int
"""
bitmap = [0] * len(words)
mask = 0x01
ans = 0
for i in xrange(0, len(words)):
word = words[i]
for c in word:
... | [
"jedihy@yis-macbook-pro.local"
] | jedihy@yis-macbook-pro.local |
7a223df4afe494bfe80c68b4304edb476124a266 | 9c991a8b7bbdda40d9115d685122cf63627a1ace | /Week 1/Day5practice/dictionary_test.py | 56b7e5603c8682b3b5afa7a38ba4e91a0acbeb4b | [] | no_license | Zacros7164/unit1 | 321844820178e16909df52f5620319e1aeeb0d4a | 76d737067a685af110f6ec00ee315136c3cad51a | refs/heads/master | 2020-04-06T11:26:00.023411 | 2019-02-12T14:06:00 | 2019-02-12T14:06:00 | 157,416,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | testDict = {
"Zac": "23394832094",
"Russ": "23983738957-49857",
}
print testDict | [
"Zacros7164@gmail.com"
] | Zacros7164@gmail.com |
45ce1099bc5ffdfa946930b8766b76fde1714949 | 3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1 | /pytools/utilities/python/readonly_shelf.py | 6e1644dd96a518813865861187fe91557dd97f85 | [] | no_license | stefie10/slu_hri | a76f79094bd1740676fec5d889411ba3b1d9dc26 | 50753379953e1ff822162eeab094cffe4a30f3e1 | refs/heads/master | 2022-12-14T01:07:51.522258 | 2020-08-31T00:50:12 | 2020-08-31T00:50:12 | 291,386,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import shelve
def open(filename, writeback=True):
return DbfilenameReadonlyShelf(filename, writeback=writeback)
class DbfilenameReadonlyShelf(shelve.Shelf):
"""
Shelf implementation using the "anydbm" generic dbm interface,
read only. Gets rid of annoying error message on shutdown when it
tr... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
6fdd355c8c6eeb0a62dad58feacba4a6a033fd98 | 4d57ceb4da5ce6782d57582dfc3aba457f5e7579 | /src/simfoni/apps/company/models/company.py | e9a11b150e635742953fd8e4d8ceed961c92c1f4 | [
"MIT"
] | permissive | django-stars/simfoni-test | 9f8cd2634bc63116ac64f73b646146c4b183871f | eaca4adc8177505e7c53e708456fd0dbb6be0b71 | refs/heads/master | 2020-03-12T22:53:13.363170 | 2018-05-11T14:18:44 | 2018-05-11T14:18:44 | 130,855,368 | 0 | 4 | MIT | 2018-05-11T14:18:45 | 2018-04-24T13:03:32 | JavaScript | UTF-8 | Python | false | false | 649 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from core.models import AbstractBaseModel
class Company(AbstractBaseModel):
""" Contain suppliers. Uploaded data would be cleaned and associated with this records """
name = models.CharField(_('Company name'), max_length=255... | [
"gleptor@gmail.com"
] | gleptor@gmail.com |
1442572bed5ba38d76173f35bb25e2dedf4f3a87 | c77944502629ed7e4a037cf2c4112138fdc96180 | /client/node_modules/jest-haste-map/node_modules/fsevents/build/config.gypi | 9549167cb364c16ab02a3ee0e16d46eadca393cc | [
"MIT"
] | permissive | Kathleen-Y/books | 43c8537035405a303668c207eda68dfba2b658d7 | 7df7c6cb0f56ea61e3508060c015bd2c879d3f9f | refs/heads/main | 2022-12-28T03:19:11.325922 | 2020-10-05T04:50:32 | 2020-10-05T04:50:32 | 301,261,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,695 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"k.yoannon@gmail.com"
] | k.yoannon@gmail.com |
b7417ac56f23eccf8db352ffd0f6fb82c91eb7af | 1e993315676d54793057a6faf82f087fc882f4fe | /__main__.py | 63e4be541d4951e80a998bdbb25a24ce81849bdf | [] | no_license | garyliu0313/Mobile_Price_Range_Project | 5bd902318779579a9a0c7e0c31cef8a26fa654a1 | 773a8ae72ed59977f0972a5099f106436096f132 | refs/heads/master | 2020-05-19T15:28:58.275023 | 2019-09-13T02:24:39 | 2019-09-13T02:24:39 | 185,086,050 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from web_app.app import app
if __name__ == '__main__':
app.run(debug=True)
| [
"zliu16@simons-rock.edu"
] | zliu16@simons-rock.edu |
bd8f33f90e87c63b8f6f118a8804e757c8d78b08 | a9ec68614f30fbe68b7fe8d19fc617b8dbe7fa7d | /core/migrations/0014_auto_20210617_0845.py | 0f70ec69426c1add917974aac91e4a021753cee2 | [] | no_license | henriquedemicco/emprega-tec | 4fa2cc92b2322488186265476c427a291e873f4f | bc25ad04b5723aa57a19fb927ae763db4e9c7648 | refs/heads/master | 2023-08-11T06:14:47.902854 | 2021-09-28T14:36:53 | 2021-09-28T14:36:53 | 379,432,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 3.0.7 on 2021-06-17 11:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0013_auto_20210616_2352'),
]
operations = [
migrations.AlterField(
model_name='vaga',
name='data_publicacao'... | [
"henriquedemicco@hotmail.com"
] | henriquedemicco@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.