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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ef0f3542476b9b7cd97d7170c181e4a05c7decb | 000ed48cae44f7191dba018d7fdd3aa2b1317cb2 | /compute/K_clean.py | 8ef724d292c30db2bab3ab97d99e36cf02b5159e | [] | no_license | Jinzewang/cqHouseAnalyze | 7d80c0ed99cd5e1e0eafa047f7b97265250287f3 | d177af6facb6a35bee28a52bd8cb2d420b5edf4d | refs/heads/master | 2023-07-17T07:00:19.410059 | 2021-09-01T08:59:18 | 2021-09-01T08:59:18 | 404,224,430 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,312 | py | import pandas as pd
import numpy as np
import pymysql
conn = pymysql.connect(host='10.20.220.203', user='root', passwd='sx2626', port=3306, db='python', charset='utf8')
cursot = conn.cursor()
# 重庆各区二手房装修情况与单价间关系
cursot.execute("select count(a),sum(UnitPrice),area,Decoration from data_K GROUP BY area,Decoration;")
data... | [
"1348754914@qq.com"
] | 1348754914@qq.com |
daa0b55e0254d92e20fabdcca8849457341bf5a5 | c4422e4e0a5ddf0f3f56d47bb898d5aeff400c79 | /miprint.py | 5db1f8985609d47de4d9269ecbfad52a9741dbea | [] | no_license | Antoniorg-12/Curso2021 | e4bda0e2e7c23427529512f6afbe13a1f5df4a9d | 9e68e0b229ddb2eed1e8ea340c7c3c079a94a7a1 | refs/heads/main | 2023-03-09T05:09:33.483630 | 2021-02-27T12:44:52 | 2021-02-27T12:44:52 | 342,662,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | def hola_mundo():
print("hola desde un modulo")
| [
"antoniorg.uma@gmail.com"
] | antoniorg.uma@gmail.com |
d26b48204806352ba4722be9cf5fc9324a9c0d14 | 54a0b86d4c3f731487ad4470fb365907970472e6 | /P1/studentparameters/Project1_Parameters_ad.py | abd32ecc8b79a7a3387eba925bcaeff4e5091637 | [] | no_license | samiurrahman98/ece458-computer-security | 26aa46e174b0bf77f748e6451dd2e0e4183feebd | cf79430b98e3679ffcd687a0c96b5e979187e1e3 | refs/heads/master | 2022-11-25T01:26:36.874094 | 2020-07-31T21:24:53 | 2020-07-31T21:24:53 | 280,979,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | # Select the file name that matches your first two letters of your last name on Learn
# Read those parameters as your ECE458 project 1 parameters
# p,q,g are DSA domain parameters, sk_i (secret keys) are used in each signature and verification
p=16158504202402426253991131950366800551482053399193655122805051657629706040... | [
"S72RAHMA@uwaterloo.ca"
] | S72RAHMA@uwaterloo.ca |
2ab3fb3795eb30b0dc859566175874912f1f9e7b | c34559f130c5c9eaa8027f768bfe90ef9521a271 | /tests/supportkit_tests.py | aab82ca0f44998d95e9cc722b8464bbe3b8d230d | [] | no_license | lemieux/supportkit-python | 2675408de6ab7fa79136cf4c63f6d9453cc8120e | 7b4b3d29e6a51a3d1a4be64d03811329f5ab505f | refs/heads/master | 2021-01-10T08:39:44.440765 | 2015-10-07T21:19:53 | 2015-10-07T21:19:53 | 43,841,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py |
from nose.tools import *
import supportkit
def setup():
print "SETUP!"
def teardown():
print "TEAR DOWN!"
def test_basic():
print "I RAN!"
| [
"marc@marcantoinelemieux.com"
] | marc@marcantoinelemieux.com |
fd6a2813514485429915c41e2b4f71e9b6aaa8a9 | e5217df72e21f2fe75bccd0fdd914432b6cce68e | /ds18b20_2.py | 18e103335f5f05cfeef2150c3c1a800510c5d664 | [] | no_license | tarjanyij/Python | 02411272758eb21be63a4bad07b3fce666718e08 | f3f4dbd961497001a88af00ffc9cb86772237da8 | refs/heads/main | 2023-04-03T20:10:09.577825 | 2021-04-08T19:37:20 | 2021-04-08T19:37:20 | 304,701,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | import os
import sys
from time import sleep
from w1thermsensor import W1ThermSensor
def ds18b20_read_sensor():
data ={}
for sensor in W1ThermSensor.get_available_sensors():
#print("sor: %s Sensor %s has temperature %.2f" % (i,sensor.id, sensor.get_temperature()))
data.update({sensor.id : s... | [
"tarjanyi.jozsef@freemail.hu"
] | tarjanyi.jozsef@freemail.hu |
85dfc959dee627d18e987008e72ca57b20a778f5 | ff4ac7422819d18dd8792b2b1dd92354f493bb23 | /assignments/autograder/autograde.py | cf78e62715fd25ea7a2d7cdd3fa2ca0045af3e7b | [
"MIT"
] | permissive | fyjgreatlion/cs-for-psych | 0b40cc0b5736632c2b3375c5092e6d7b74815418 | 647642f364d92bcdbc2320a4f527d2a0eba12ba9 | refs/heads/master | 2023-06-30T13:01:22.555967 | 2021-07-26T02:33:36 | 2021-07-26T02:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from grader import autograde, commit_and_push
from glob import glob
import typer
app = typer.Typer()
@app.command()
def run(path: str, summarize: bool=False, commit: bool=False, push: bool=False, root=None, grader=None, public=None, private=None):
grades = autograde(path, plot_it=summarize, root=root, grading_rep... | [
"jeremy.r.manning@dartmouth.edu"
] | jeremy.r.manning@dartmouth.edu |
5db01072a7b1cfb52cc6a3b3c2a3401cc35537e6 | a5103b7d5066138ac1a9aabc273361491a5031cd | /course5/week1/rnn_utils.py | eafeffe54a31969af6913bbe0cbfc4a64948fa29 | [] | no_license | mckjzhangxk/deepAI | 0fa2f261c7899b850a4ec432b5a387e8c5f13e83 | 24e60f24b6e442db22507adddd6bf3e2c343c013 | refs/heads/master | 2022-12-13T18:00:12.839041 | 2021-06-18T03:01:10 | 2021-06-18T03:01:10 | 144,862,423 | 1 | 1 | null | 2022-12-07T23:31:01 | 2018-08-15T14:19:10 | Jupyter Notebook | UTF-8 | Python | false | false | 3,663 | py | import numpy as np
def _initial_parameters(n_x,n_a,n_y):
params={}
params['Waa'] = np.random.randn(n_a,n_a)
params['Wax'] = np.random.randn(n_a,n_x)
params['ba'] = np.random.randn(n_a,1)
params['Wya'] = np.random.randn(n_y,n_a)
params['by'] = np.random.randn(n_y,1)
return params
def _initia... | [
"mckj_zhangxk@163.com"
] | mckj_zhangxk@163.com |
e2690fdaa4d677a52afa36499234099fce9dcb9f | e3ac7c428aa5b60e021a9440262320ff80f5be88 | /Ui/welcomescreen.py | 12640c6e51d951c0941192071407924a8f52cfc2 | [] | no_license | turamant/PyQt5-PhoneBook | b3423f978d2a368e6a997889095d13c5cb47a875 | 522490439889d91a40a651574339e80af6b6db1d | refs/heads/main | 2023-07-11T00:50:10.109781 | 2021-08-10T14:24:54 | 2021-08-10T14:24:54 | 391,993,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,599 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'welcomescreen.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore... | [
"tur1amant@gmail.com"
] | tur1amant@gmail.com |
1ca2692d8354900cb36bdd5e40c951da55534123 | 3b562b977e337d09aa97a6b1289f2b3338aa9a68 | /extras.py | d45e205c5841b876f3e76a53542af8a4213e84ca | [] | no_license | Kolimar/AdivinaPalabra | 0bad2a957da1aa9f2443215f892dad52a93709f7 | 769741d6a183e7981c8b262def75138ba02a45e0 | refs/heads/master | 2020-04-25T08:16:33.521653 | 2019-02-26T05:26:14 | 2019-02-26T05:26:14 | 172,641,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,025 | py | import pygame
from pygame.locals import *
from configuracion import *
def ShowDireccion(direccion):
if direccion == [-1,-1]:
return "Abajo - izquierda"
if direccion == [-1,0]:
return "Abajo"
if direccion == [-1,1]:
return "Abajo - derecha"
if direccion == [0,-1]:
... | [
"noreply@github.com"
] | Kolimar.noreply@github.com |
b6e77796d885e1ff2b153035ca5ccf756ae11b66 | c506e2707708f6b1d1c8b6a4761b3952cdf33c12 | /backend/www/test/upload_contacts_test.py | 1abc56c42b13ef091d47cfb8ba1b890375b3c5f1 | [
"Apache-2.0"
] | permissive | xuantan/viewfinder | 69e17d50228dd34fa34d79eea1c841cc80a869ff | 992209086d01be0ef6506f325cf89b84d374f969 | refs/heads/master | 2021-08-26T00:58:18.180445 | 2021-08-10T03:06:48 | 2021-08-10T03:06:48 | 19,481,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,824 | py | # Copyright 2013 Viewfinder Inc. All Rights Reserved.
"""Test upload_contacts service method.
"""
__authors__ = ['mike@emailscrubbed.com (Mike Purtell)']
import json
import mock
from copy import deepcopy
from viewfinder.backend.base import util
from viewfinder.backend.www.test import service_base_test
from viewfind... | [
"bdarnell@squareup.com"
] | bdarnell@squareup.com |
6127db8c4201697208fcbd427c8f2ff605b318ec | ea9aa0e93a7f264511ef10b5ccb90f65d958900f | /3rd_practice/blog/models.py | c0eca233fb31aebd733abc8ef197a867e51945e6 | [] | no_license | wayhome25/django_travel_blog_2 | 01cf4591e0aa69fb5a3144e0739bd43ce4bebc9c | 13e5d7ad2851febafb9a57e1fc93bb29c916c4c7 | refs/heads/master | 2020-06-01T08:58:24.492163 | 2017-08-26T13:19:45 | 2017-08-26T15:04:18 | 94,069,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from django.core.urlresolvers import reverse
from django.conf import settings
from django.db import models
class Post(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
photo = models.ImageField()
is_public = models.BooleanField(default=False)
created_at = models.D... | [
"siwabada@gmail.com"
] | siwabada@gmail.com |
3996a1c41e99afd8b6eabfd0864dad2c2f4c7187 | 13e1fb78955c03a75cf483725f4811abd1b51ac4 | /compiler/tests/03_wire_test.py | 61e21985e7422f475fa91e656c3f095e1c483963 | [
"BSD-3-Clause"
] | permissive | ucb-cs250/OpenRAM | d7a88695ac6820d03b4b365245a1c4962cdc546d | 3c5e13f95c925a204cabf052525c3de07638168f | refs/heads/master | 2023-01-23T15:09:35.183103 | 2020-10-12T16:05:07 | 2020-10-12T16:05:07 | 318,904,763 | 0 | 0 | BSD-3-Clause | 2020-12-05T22:47:14 | 2020-12-05T22:47:13 | null | UTF-8 | Python | false | false | 2,212 | py | #!/usr/bin/env python3
# See LICENSE for licensing information.
#
# Copyright (c) 2016-2019 Regents of the University of California and The Board
# of Regents for the Oklahoma Agricultural and Mechanical College
# (acting for and on behalf of Oklahoma State University)
# All rights reserved.
#
import unittest
from test... | [
"mrg@ucsc.edu"
] | mrg@ucsc.edu |
4df58b827efdb8b9e33d0f96ef24b7287e582d7b | 55668bc4e19fd9aa3caa4395add2fe73741eb844 | /206/main.py | 29930f8e53ae428345565b5f0a0b9b54dc5cbd5c | [
"MIT"
] | permissive | pauvrepetit/leetcode | cb8674e10b0dc6beb29e9b64a49bede857b889fd | 2fda37371f1c5afcab80214580e8e5fd72b48a3b | refs/heads/master | 2023-08-30T07:39:08.982036 | 2023-08-25T08:52:57 | 2023-08-25T08:52:57 | 151,678,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | #
# @lc app=leetcode.cn id=206 lang=python3
#
# [206] 反转链表
#
from typing import Optional
# @lc code=start
# Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def rev(self, head: Optional[ListNode], prev: Opt... | [
"hu__ao@outlook.com"
] | hu__ao@outlook.com |
733b3c00a643028efa8182beee51f32d547342d9 | 4363b7428a09543a9e6c2a3e1009e98be8a2ab43 | /models/__init__.py | 013c5a42bc95a280f8f21f6eafe38928848e8752 | [] | no_license | DelfimRocha/E-learning | 2284cf75da979af5c8d260599255870ff7fc021d | c05c48725850ecfa80bac6a5a2a2e93a8699629f | refs/heads/main | 2023-07-15T13:28:57.877641 | 2021-09-01T08:44:12 | 2021-09-01T08:44:12 | 401,990,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from . import courses
from . import program
from . import instructor
from . import student
from . import enrolment | [
"dalfimrocha@yahoo.com"
] | dalfimrocha@yahoo.com |
a924d5f770bc699d0607786b29a0763d26011f25 | 333abfacec09f1118c19fd07d340228a314b5ec3 | /ch2/ex_2.1-4_arbitrary_numerical_system_addition.py | 36b6035af17c1923087118d7170a6e5819a5234a | [] | no_license | olehb/ita3 | 18331d4ee298e60b70884bf25b24653e9c959ad4 | 23c412c647de0e89efba049c39f7d38375ff574b | refs/heads/master | 2023-05-29T08:30:13.039062 | 2015-05-08T16:03:03 | 2015-05-08T16:03:03 | 15,146,847 | 0 | 0 | null | 2023-05-17T05:18:52 | 2013-12-12T20:39:51 | Python | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python3
base = 10
n = 4
n2 = (2, 2, 2, 2)
n1 = (0, 0, 3, 0)
result = []
r = 0
for i in range(n-1, -1, -1):
v = n1[i] + n2[i] + r
r = v // base
result.append(v % base)
if r>0:
result.append(r)
result.reverse()
print(result)
| [
"oleh.boiko@gmail.com"
] | oleh.boiko@gmail.com |
6b482961ceb846d151075be3e5574ce30b958fbb | 9c3c83007c5bf0f36635b0045b2aad7f8a11ac11 | /novice/03-02/variablerules.py | 04efe613839917730bde3cf315a1c00a8a16bb91 | [
"MIT"
] | permissive | septiannurtrir/praxis-academy | bc58f9484db36b36c202bf90fdfd359482b72770 | 1ef7f959c372ae991d74ccd373123142c2fbc542 | refs/heads/master | 2021-06-21T17:04:58.379408 | 2019-09-13T16:46:08 | 2019-09-13T16:46:08 | 203,007,994 | 1 | 0 | MIT | 2021-03-20T01:43:24 | 2019-08-18T13:38:23 | Python | UTF-8 | Python | false | false | 481 | py | from flask import Flask
app = Flask(__name__)
@app.route('/user/<username>')
def show_user_profile(username):
# show the user profile for that user
return 'User %s' % escape(username)
@app.route('/post/<int:post_id>')
def show_post(post_id):
#show the post with the given id, the id is an integer
retur... | [
"septiannurtrir@gmail.com"
] | septiannurtrir@gmail.com |
b1bb1dfa462be18d9be81098971bfbdf1023cb30 | 7ce761781e7f5b57b2469adce459a71b4758694d | /env/lib/python2.7/site-packages/graphlab/toolkits/_internal/search/_search.py | 0870866d1721ce31a94ab4442179cea4425399d7 | [] | no_license | hophamtenquang/RecSys | c4fa18d1ba262670a284b2fba2ca97b882ef0f4c | 535472844a046cadd9230302da647a54afff95e8 | refs/heads/master | 2021-01-19T17:00:32.924064 | 2017-08-30T10:31:32 | 2017-08-30T10:31:32 | 101,031,687 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,660 | py | import sys as _sys
import graphlab as _gl
import graphlab.connect.main as glconnect
from graphlab.toolkits._internal_utils import _raise_error_if_not_sframe
from graphlab.toolkits._model import SDKModel as _SDKModel
from graphlab.toolkits._main import ToolkitError as _ToolkitError
from graphlab.toolkits._internal_util... | [
"hophamtenquang@gmail.com"
] | hophamtenquang@gmail.com |
e5122630508b4ef675f2ef514d43e70e1a838257 | 47d80dcfdbcea8a8527be73de6e57e1379be2c8b | /Django/quotes/Recipe/urls.py | 6354142d8f67a162ba971a6e187cb7e5da0b1afd | [] | no_license | tleysen/Webtech-4 | a23d1f2094e070a04aca1be4bb4ed38908104d0d | 8eee67e772fce1190b0681e106271c502a99b46a | refs/heads/master | 2021-01-23T16:12:56.765708 | 2017-09-07T12:20:46 | 2017-09-07T12:20:46 | 102,732,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | """quotes URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"thomasleysen@MacBook-Air-van-Thomas.local"
] | thomasleysen@MacBook-Air-van-Thomas.local |
e31378c2345f786daf6d340cfcfcacf070cdc24a | 5656b4c420b284d2c0443138e02246ecc0484c9c | /api/socialmedia/Posts/models/post_model.py | f7606be465f83ad2dcc837e5b62a1af63a722854 | [] | no_license | Pbasnal/flask-twitterclone | 94e3b52f74b9bf957cd0797034372687918d0d38 | 1d7d2da28448ab710848aa760e2899c3a65ee150 | refs/heads/master | 2023-04-30T15:35:42.768869 | 2021-05-25T14:33:01 | 2021-05-25T14:56:43 | 370,718,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from flask_mongoengine.wtf import model_form
from api.models.MongoEngine import dbcontext
from logging_setup.logger import ApiLogger
class Post(dbcontext.Document):
content = dbcontext.StringField(required=True)
sentiments = dbcontext.DictField()
created_by = dbcontext.StringField(max_length=50)
creat... | [
"pankajbasnal17@gmail.com"
] | pankajbasnal17@gmail.com |
4db2e0c7af5d155f9cb641317fcba67abd59aea2 | fc36930722e170fa80b2f4195a15d686d138dc03 | /files_project/app.py | 58b803277ebe7f4911d9ad5f03b9c4db510932ea | [] | no_license | mayank4519/python_projects | d781ef3f81c1c6b3357351472019b8205c172897 | 4d0a84b9fae98cd194b6b73cbd83f6e2cc8b1ea4 | refs/heads/master | 2022-12-02T23:14:59.972893 | 2020-08-13T18:15:07 | 2020-08-13T18:15:07 | 266,676,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | my_file = open('data.txt', 'r')
file_content = my_file.read()
my_file.close()
print(file_content)
#write into file
user_name = input("enter name")
my_file_writing = open('data.txt', 'w')
my_file_writing.write(user_name)
my_file_writing.close() | [
"mayankjn.jain1993@gmail.com"
] | mayankjn.jain1993@gmail.com |
411a798533ad2659caf537d88c31d8b5872d0645 | 8b61c079a068f7f888e9a2683b95ca81b403a681 | /program/pizaid/ioserver.py | 0069f77acbdfa9c4bc81e583104e06a8b4117a93 | [
"BSD-2-Clause"
] | permissive | Pizaid/Pizaid-LCDPanel | 69faef0fe401a3fd943301ca7202853152152179 | e66b6d33afb9da273a823bfeb2f3bbb9d3d3faab | refs/heads/master | 2016-09-05T11:20:22.764960 | 2014-08-09T12:30:37 | 2014-08-09T12:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set fileencoding=utf-8 :
#
# Author: Makoto Shimazu <makoto.shimaz@gmail.com>
# URL: https://github.com/Pizaid
# License: 2-Clause BSD License
# Created: 2014-07-30
#
import threading
from utils import getch, tprint
from lcdcontroller import get_lcdcontroll... | [
"makoto.shimaz@gmail.com"
] | makoto.shimaz@gmail.com |
531ffd783fb26e6eb32629fb492934c669fbac42 | 46e01962d3eef258562b4b5e0204368a80eb2101 | /resources/site-packages/dns/rdtypes/ANY/EUI48.py | aa260e205d08298646a600c4789522285c6fd6d8 | [
"WTFPL"
] | permissive | elgatito/script.elementum.burst | fb4fe3f10f722822373e2739a9308130482d1734 | e37adca9634f644890673dee236a9c215c6744c1 | refs/heads/master | 2023-08-26T20:30:59.300868 | 2023-07-27T11:23:44 | 2023-07-27T11:23:44 | 111,373,790 | 108 | 181 | WTFPL | 2023-08-28T11:57:32 | 2017-11-20T06:59:52 | Python | UTF-8 | Python | false | false | 1,124 | py | # Copyright (C) 2015 Red Hat, Inc.
# Author: Petr Spacek <pspacek@redhat.com>
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
#... | [
"denis.kuzmenok@gmail.com"
] | denis.kuzmenok@gmail.com |
01a4792e02f8e7a6911af7ab76554e70e0471d8b | 694d57c3e512ce916269411b51adef23532420cd | /leetcode/215kth_largest_element.py | 58f31f67f601ead30791f3de73429cab51b47b5f | [] | no_license | clovery410/mycode | 5541c3a99962d7949832a0859f18819f118edfba | e12025e754547d18d5bb50a9dbe5e725fd03fd9c | refs/heads/master | 2021-05-16T02:46:47.996748 | 2017-05-10T23:43:50 | 2017-05-10T23:43:50 | 39,235,141 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | from random import randint
class Solution(object):
def partition(self, start, end, p, nums):
pivot = nums[p]
nums[p], nums[start] = nums[start], nums[p]
i = j = k = start
while j <= end:
if nums[j] == pivot:
nums[i], nums[j] = nums[j], nums[i]
... | [
"seasoul410@gmail.com"
] | seasoul410@gmail.com |
f6e2e1219bb19b1ec4f59e29fe4b3593536497ff | 804fcf4a3cfba431be701b214cc383a930e08ff3 | /pracCsv/solution.py | fd3a6ce93cc43238d9e366f48713febe8cd45a95 | [] | no_license | showkat2203/APIwithPython | ea7f70a885480ddae1880af5520425682fe283f1 | c2b6f6cf4a2e4d61a94bd11132daeafa7c86d1f7 | refs/heads/master | 2023-06-14T11:45:40.625423 | 2021-07-11T15:46:18 | 2021-07-11T15:46:18 | 106,168,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | import csv
import json
row_count = -1
result = ""
fileName = 'test.csv'
fields = ""
with open(fileName, 'r') as inputFile:
csvReader = csv.reader(inputFile)
fields = next(csvReader)
resList = []
for row in csvReader:
cnt = 0
resDict = {}
for i in row:
if fields[cn... | [
"showkat@alemcloud.com"
] | showkat@alemcloud.com |
29acead529edc72fe4dc197e2a785872c12c51e0 | 3cedc2e0867a53ed2f36e01624f369693d1a050d | /rnn/rnn88_females_original.py | f4f2cc56c161654c5daaec73a43be8329ccc3589 | [] | no_license | lkpiel/mastersthesis | a471d8c6a5881e13599b22965dd3f437c83fc967 | 71c723b435b347d2805e159b6e10828f89541e98 | refs/heads/master | 2023-02-20T11:57:45.266361 | 2018-05-06T11:17:43 | 2018-05-06T11:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,742 | py | #! /usr/bin/python3
import sys
print(sys.version)
import sys
import pandas
import numpy as np
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential, load_model
from keras.layers import Dense, Input, Dropout, Average, Merge, Layer, Conv2D, MaxPooling2D, GlobalAveragePooling2D, Glob... | [
"leo.piel@pipedrive.com"
] | leo.piel@pipedrive.com |
f83ded7bf3caf726e79346e44ecd420f736fa43e | 10465a8e4771b221fb1f4a92b804f8f2cf031edf | /server/app/service/job_runner.py | 82938c4f7cceab7a81d085557060f64e12a16aef | [
"MIT"
] | permissive | raspihats/EvePnP | fd51ba35ebef2838e87108b617b873254863adc3 | 2961d759554c38609f0f431c012ea8d38016f347 | refs/heads/master | 2023-01-24T21:17:42.789363 | 2019-06-18T11:46:57 | 2019-06-18T11:46:57 | 164,684,352 | 0 | 0 | MIT | 2023-01-14T00:16:23 | 2019-01-08T15:59:56 | Python | UTF-8 | Python | false | false | 9,741 | py | import gevent
from ..dao import axis_dao, head_dao, feeders_dao, packages_dao
from .controllers import controllers_service
from .actuators import actuators_service
class DictKeysToObjectProps(object):
def __init__(self, config):
self._config = dict(config)
def __getattr__(self, attribute):
re... | [
"florin.costa83@gmail.com"
] | florin.costa83@gmail.com |
2651fa548b6cced6e67fddac0af3a0c00d304481 | e3eb265f16c0cb41e2d7cbe17ea2523803812247 | /py-scoring/src/ai/h2o/sparkling/ml/__init__.py | 2b8785f3ffa0d4d0b155c8cc6bf2f109f14bc6cf | [
"Apache-2.0"
] | permissive | joscani/sparkling-water | 973cea0c96c8cab1505ed452c78ef2615d4efe2a | 71a0cdb763c3b2f8f4cd8cb9a4c3d1874df05089 | refs/heads/master | 2023-07-11T03:35:28.186554 | 2021-08-18T16:23:21 | 2021-08-18T16:23:21 | 257,917,903 | 0 | 0 | Apache-2.0 | 2020-04-22T13:59:54 | 2020-04-22T13:59:53 | null | UTF-8 | Python | false | false | 1,349 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"noreply@github.com"
] | joscani.noreply@github.com |
17712dbfabbed2c84ca874770c52e2749ece99e5 | 0b8503f8fe659284edaf58ed88e0d80b08995206 | /security/apache/TestPenetration_Home.py | d8ecf592421287a49865bc4e667808785d945ca2 | [] | no_license | ahopgood/Python | bfd2f12efadfde94f8f569ce0bbf9018c39bbc5d | 7cbfe64aa39b1cb969a09cac0040bd77b6980309 | refs/heads/master | 2021-01-18T21:24:48.831454 | 2016-05-23T20:28:04 | 2016-05-23T20:28:04 | 47,199,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | __author__ = 'Alexander Hopgood'
from apache import checkStaticPage
class test_Penetration_Home():
#Scaffolding class for testing liveness of a domain with multiple sub domains
def domain(self, domain, subdomains):
resultDict = dict()
outputStr = "Checks for domain ["+domain+"]:"
for nam... | [
"alex.hopgood@gmail.com"
] | alex.hopgood@gmail.com |
ad992d9f127c3b1b9a1220f553dd8f520df52a66 | 4dad1ae37b41ae6c96f3345dee1d9d1cbdf42b7b | /searchElementRotatedSorted/main.py | e99e851deefba668b9178d0eb38496366e6b3341 | [] | no_license | RoaRobinson97/python | 011f9dcdd4414d312780e9f11e1143404161d9e7 | 449ecccecb445a3d49bd3820a855dade1d759ddb | refs/heads/master | 2023-01-29T22:53:45.122752 | 2020-12-07T16:10:41 | 2020-12-07T16:10:41 | 295,473,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | # Python Program to search an element
# in a sorted and pivoted array
# Searches an element key in a pivoted
# sorted array arrp[] of size n
def pivotedBinarySearch(arr, n, key):
pivot = findPivot(arr, 0, n - 1);
# If we didn't find a pivot,
# then array is not rotated at all
if pivot == -1:
... | [
"roa.robinson97@gmail.com"
] | roa.robinson97@gmail.com |
9c1f3e860dc2261ed09a22aa123382a828211c1a | 490186e345bdc0e2db1a3cb9a53f5e3e784a0d35 | /tutorials/blitz/neural_networks.py | c5a889d3d723f19f486722be161ebe60260365cf | [] | no_license | zephan-spencer/learning-nas | 8bf2b6b50df14eb838fd2589fbef2ff7228febb2 | 1ca5fa6ee05542142b13599c4e9541c9aa0ede4e | refs/heads/main | 2023-04-19T04:44:19.261960 | 2021-05-01T22:52:06 | 2021-05-01T22:52:06 | 363,273,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,430 | py | # Taken from a pytorch.org tutorial
import torch
import torch.nn as nn
import torch.nn.functional as F
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
# 1 input image channel, 6 output channels, 5x5 square convolution
# kernel
self.conv1 = nn.Conv2d(1, 6, 5)
... | [
"number45zephan@gmail.com"
] | number45zephan@gmail.com |
d2441a8e7cd1131ccb87e1debc5c49e33fc62f90 | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-SearchKit/setup.py | cfce0b4f572de3e7d3cb839fb83d76b5f34634ee | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | '''
Deprecated wrappers for the "SearchKit" framework on macOS.
Use the CoreServices package instead.
'''
from pyobjc_setup import setup
VERSION="5.1.1"
setup(
name='pyobjc-framework-SearchKit',
description = "Wrappers for the framework SearchKit on macOS",
min_os_level='10.5',
packages = [ "SearchKi... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
98e494f9969bfbe0e38927f5f5a9e9da3f675862 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /tjMNAEgkNvM5eyEqJ_9.py | 009b0a6620c65bbe7a418ed56973cde1d60c4685 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | """
You are given two inputs:
1. An array of abbreviations.
2. An array of words.
Write a function that returns `True` if each abbreviation **uniquely
identifies** a word, and `False` otherwise.
### Examples
unique_abbrev(["ho", "h", "ha"], ["house", "hope", "happy"]) ➞ False
// "ho" and "h" are ambi... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
78bb3e33b198664933fcf0bc38618fc403aed04b | 2393a8fabee3d39bf1623e26c0313e3351caf814 | /python/study/IO/示例代码/nonblocking/nonblocking-client.py | bb4e00884ca6c2f8d4878a852bc366caf746f668 | [] | no_license | shidg/note | 5d3aaff9d1c6cf87b89513b7712638c9b808653c | d46aceaed64e3e2f854149f71f18fa92d650dc37 | refs/heads/master | 2023-05-26T16:14:51.715966 | 2023-05-19T02:08:36 | 2023-05-19T02:08:36 | 27,533,612 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/local/bin/python3
# -*- coding: utf-8 -*-#
'''
author: -- shidegang --
Created Time: 2019-08-28 10:43:17
'''
import socket
sk = socket.socket()
server_addr = ('127.0.0.1',9000)
sk.connect(server_addr)
while True:
sk.sendall('hello'.encode(encoding='utf8'))
data = sk.recv(1024)
print(data.decode(en... | [
"shidg@feezu.cn"
] | shidg@feezu.cn |
ce62fce4822d0977d18f15b3bae8d32747436bd3 | 57f6805e4fa5aeb781af2434f41bbafd35ad6023 | /SentinelTime/time_series.py | 51ab51746fd19e95c98cd35a4776956858c24335 | [
"MIT"
] | permissive | marlinmm/SentinelTime | 4c87b0b0c38f92769614ebd6b6e2f85128242864 | 5732f23d508582c6b33bce68967331abe8c5cf9c | refs/heads/master | 2023-04-14T03:40:09.464249 | 2021-03-20T11:42:59 | 2021-03-20T11:42:59 | 291,967,885 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,049 | py | from SentinelTime.data_preprocessing import *
from SentinelTime.mask_stack import *
import rasterio.mask
import matplotlib.pyplot as plt
import pandas as pd
def extract_dates(directory, allowed_orbits=None):
"""
Extracts dates from list of preprocessed S-1 GRD files (need to be in standard pyroSAR exported na... | [
"marlinmueller.mm@gmail.com"
] | marlinmueller.mm@gmail.com |
bdd26c536928ecc4169204488d28c7ea79fac6d1 | 6e0d8d91dd22e2275cd713822679d5cabbc9331a | /thespian/system/__init__.py | 2c69b0574347c752e0c9daedb76632e6daa45a22 | [
"MIT"
] | permissive | kquick/Thespian | 711712eb0a9ad3370f1013c8393cc461b9541dfe | dfc6d3e865c05f929328b85e98671a5c8fc3a54a | refs/heads/master | 2023-05-26T15:51:57.959690 | 2023-05-22T15:08:00 | 2023-05-22T15:08:00 | 78,292,621 | 203 | 32 | MIT | 2021-06-22T14:42:09 | 2017-01-07T17:18:27 | Python | UTF-8 | Python | false | false | 636 | py | # This module contains the various ActorSystemBase implementations
# upon which the ActorSystem operates.
from thespian.actors import ActorAddress, ActorSystemMessage, PoisonMessage
from thespian.system.addressManager import *
from thespian.system.messages.status import *
from thespian.system.messages.convention impor... | [
"kquick@godaddy.com"
] | kquick@godaddy.com |
3e9fbcc82ac9735647bbbf58624023d9b3049086 | 7f368b275cd18a5b7b2eb22b822223252914c8ef | /tensorflow_gan/python/tpu/cross_replica_ops.py | 7ab35260b93b8be210c6cb4f9caf314cc746b313 | [
"Apache-2.0"
] | permissive | nivedwho/gan | 176c624800378d9dfa9f74211c362b62953cc7f1 | 723ce1e3627778b979f048d817f834f253611ff4 | refs/heads/master | 2023-08-01T08:07:34.299917 | 2021-09-14T04:10:38 | 2021-09-14T04:11:37 | 396,680,181 | 0 | 0 | Apache-2.0 | 2021-08-16T07:44:33 | 2021-08-16T07:44:33 | null | UTF-8 | Python | false | false | 3,128 | py | # coding=utf-8
# Copyright 2021 The TensorFlow GAN Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
312229298bb7c940f89122dd2cd79fc030c302c7 | 0ca3795da1d3d88ae7d77ea2ab44ce3c95bb49ed | /blog/apps/user/apps.py | 2cb53f03d9978c31a79f9c9a826368829b8184c4 | [] | no_license | DmitriyKhalturin/django-blog | e1a5c1c66a52a141cb034e0957e6001dc31f118c | e30368d75d4d675613a93f4e3e186a5e7811018d | refs/heads/develop | 2023-07-31T22:41:22.381474 | 2020-08-04T19:41:04 | 2020-08-04T19:55:43 | 281,173,512 | 0 | 0 | null | 2021-09-22T19:44:13 | 2020-07-20T16:46:24 | Python | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class UserConfig(AppConfig):
name = 'blog.apps.user'
| [
"dmitry.halturin.86@gmail.com"
] | dmitry.halturin.86@gmail.com |
c4ae49b5ef3dff9cda6859483ab61b793df6c6e4 | 90e6860b5370b742f01c0664ac84f14dc1272155 | /src/ziggurat/config/StandardConfigurator.py | fdce59892f864b753760a8508b5a30a278cc7f28 | [] | no_license | sernst/Ziggurat | e63f876b8f2cb3f78c7a7a4dcf79af810a540722 | 4ae09bbd9c467b2ad740e117ed00354c04951e22 | refs/heads/master | 2021-01-17T07:20:17.138440 | 2016-05-27T14:27:43 | 2016-05-27T14:27:43 | 9,278,283 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,944 | py | # StandardConfigurator.py
# (C)2013
# Scott Ernst
from __future__ import print_function, absolute_import, unicode_literals, division
import re
from pyaid.string.StringUtils import StringUtils
from pyramid.config import Configurator
from pyaid.file.FileUtils import FileUtils
#________________________________________... | [
"swernst@gmail.com"
] | swernst@gmail.com |
c48eddd65d99df02570dcee5cae5f93fb26f50e7 | 3552acf30ba11692df7f138d3ba6686fce07cddd | /assignment4/main_task2.py | 4db759bc8163c20837de092d78ac0d8e9820fd41 | [
"Apache-2.0"
] | permissive | gnayoaixgnaw/Big_Data_Analytics | 07ac247b204122d0c44a841947a231898f86b876 | 4866bbb3de203304edbf107b833539b28be9b35a | refs/heads/main | 2023-03-05T23:55:24.191846 | 2021-02-17T20:41:50 | 2021-02-17T20:41:50 | 325,404,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,686 | py | import sys
import re
import numpy as np
from operator import add
from numpy import dot
from numpy.linalg import norm
from pyspark import SparkContext
from pyspark.sql import functions as func
from sklearn.metrics import f1_score
from sklearn.metrics import confusion_matrix
def buildArray(listOfIndices):
returnVal... | [
"noreply@github.com"
] | gnayoaixgnaw.noreply@github.com |
ddf8e310ace1ebb6773c14c882d812f973ffa1af | 4b4828d3c98d76d7bf38f90a015945acc408ddc5 | /PythonAI/Source/W2D3/src/bmi_web.py | 441f43d452b0cdebf5e3e9a87e8c79e84ae2551b | [] | no_license | Huh-jae-won/Study | cb5d32728e8dcded492e7edb054b500c91ec607c | e4dbc3fef69bb273b62b866fb5ef2a7250222f10 | refs/heads/main | 2023-06-20T13:06:26.691899 | 2021-07-11T07:43:41 | 2021-07-11T07:43:41 | 362,759,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | """
# URL : http://localhost:8080/cgi-bin/bmi_web.py
"""
# 모듈 로딩 ---------------------------------------------------
import cgi, sys, codecs, os
import joblib
# WEB 인코딩 설정 ---------------------------------------------
sys.stdout=codecs.getwriter('utf-8')(sys.stdout.detach())
# 함수 선언 ----------------------------------... | [
"dfr9034@naver.com"
] | dfr9034@naver.com |
75a03e1852de81c664b2d63a255fcd114b89401d | c25b974f8c124c3eb3701684ab6d3546368ba99a | /biplane_kine/smoothing/kf_filtering_helpers.py | 63790043b47b8c5c2e7062b6347e3487a7466b32 | [
"MIT"
] | permissive | klevis-a/process-vicon-biplane | 9530ea47b93260a361b318f04dcb1a2dbc7b2492 | f140589b4705f0d6411b80b8e2699add68d08662 | refs/heads/master | 2023-07-05T13:08:10.879630 | 2021-08-03T23:55:46 | 2021-08-03T23:55:46 | 287,614,920 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,832 | py | import numpy as np
import itertools
import distutils.util
from operator import itemgetter
from typing import Tuple, Union, Dict, Any, Sequence
from scipy.signal import butter, sosfiltfilt
from biplane_kine.smoothing.kalman_filtering import (LinearKF1DSimdKalman, FilterStep, StateMeans, CovarianceVec,
... | [
"klevis.aliaj@utah.edu"
] | klevis.aliaj@utah.edu |
43bd61d034275b4e72d5fd73ddf6e07f646548ed | 85f68b427bf9c4b8b5c3f8a70dccc217226e9706 | /gam_app/old_migrations/0012_auto_20180619_1641.py | 7de987d6f30f3cd7be49de7d4ff093f9f154c292 | [] | no_license | benrogboe/GAM | ffb87e76a87aa7eaf0d0d33d4df7ddc571399e49 | fbec7cb967252578d4669c5ff91a9b0b9cdfd9d5 | refs/heads/master | 2020-03-30T05:08:38.811097 | 2018-09-28T18:55:24 | 2018-09-28T18:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | # Generated by Django 2.0.1 on 2018-06-19 16:41
import ckeditor.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('gam_app', '0011_auto_20180619_1527'),
]
operations = [
migrations.AlterField(
... | [
"apjanco@gmail.com"
] | apjanco@gmail.com |
ddf3cb7cd88608065d779da0fa8b72337e5b9206 | 7e91bb1bb499139f00b2f1d3fc4769945f727260 | /math/triangle_quest.py | fdb24f4d8d38c299f05fce89b29474d191897c10 | [] | no_license | neeraj1909/python-hackerrank | 46867ee40d1fd647b049e78be02156c1b962b11b | 6004f5f14878f131bf9f3441af9f5f4ec7c3a2a5 | refs/heads/master | 2021-08-19T14:43:12.460929 | 2017-11-26T17:43:49 | 2017-11-26T17:43:49 | 108,431,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also
print(i*(pow(10, i) - 1)//9)
| [
"neeraj1909@gmail.com"
] | neeraj1909@gmail.com |
3bd3772edc7f9f005f3716bbebdb9186090e3414 | 8fc36ac61daf5f24e4b3cec32996173eb1b554ec | /fuxi_kubernetes/handlers/retry.py | a5678923881ee0ed49db334321e31ec282723362 | [
"Apache-2.0"
] | permissive | vklonghml/fuxi-kubernetes | 8c1928658f1508efec1288193bed027c058950ff | 899fac8f9a885397b764cec988ee07e608569c81 | refs/heads/master | 2020-05-27T08:01:41.469905 | 2017-03-02T02:08:07 | 2017-03-02T02:08:07 | 82,534,295 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | # Copyright (c) 2016 Mirantis, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"vklonghml@gmail.com"
] | vklonghml@gmail.com |
9b857faea34313ff6868b7fa5be397c40a4184e6 | 89eeace71191fc929c2d93b7fe876ac7db441200 | /site_scons/site_tools/lib_rc/__init__.py | 7af9a109593330bb56823ceeecd2a948aa4c6847 | [] | no_license | janbraiins/lib-rc | 2b8e2092c23bbe03cfff2121fc22fb38cc715c85 | d5b6b909ca5f9f3d1fbf7404a48e3f3745ba2696 | refs/heads/master | 2022-12-26T18:43:17.007003 | 2017-08-19T09:27:32 | 2017-08-19T09:27:32 | 296,148,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | """Scons Tool for building external sources against lib-rc.
The tool assumes the build configuration is available through
construction environment variable 'CONFIG'. The following
configuration elements are required:
- LIB_RC_DIR - top level directory that contains the source
tree
Copyright (c) 20... | [
"jan.capek@braiins.cz"
] | jan.capek@braiins.cz |
a47ce249f69c56724d0d6a2002329249502be5d7 | 1774936282e03a2e12c589314f2f865181a2de07 | /learning_templates/basic_app/templatetags/my_extras.py | 9dcc56005020c5da817fd1b1c2b7a692569d5c45 | [] | no_license | kimman8/django_deployment-example | 458ee1318d71d01a90842bdccd01ffb5aeb745b4 | 54b417d96c52de37670d31de4ca0fc1bd43e75d4 | refs/heads/master | 2022-12-23T15:26:49.989409 | 2020-10-01T22:30:55 | 2020-10-01T22:30:55 | 300,247,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django import template
register = template.Library()
@register.filter(name='cut')
def cut(value, arg):
"""
This cuts out all value of arg from the string
"""
return value.replace(arg,'')
# register.filter('cut',cut)
| [
"KIM@KIM-YUENs-iMac.local"
] | KIM@KIM-YUENs-iMac.local |
2c3045452e184a876d836e4523e0d1bc7d1c826e | b28753c509a011a13c9e4068cbf295808f4f158e | /app/firestore_services.py | a5d65186c94060cb5445934b15199d85a7b4ccd5 | [] | no_license | abecerra0521/flask | a62bf9520be44927412df141079f8c418fb65fd4 | 8e696c9ceb664c29a297df4745e81a9732a03907 | refs/heads/master | 2020-05-21T11:37:37.865189 | 2019-05-22T15:56:06 | 2019-05-22T15:56:06 | 186,030,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
credential_app = credentials.ApplicationDefault()
firebase_admin.initialize_app(credential_app, {
'projectId': 'todo-list-flask',
})
db = firestore.client()
def get_users():
return db.collection('users').get()
... | [
"abecerra.aabg@gmail.com"
] | abecerra.aabg@gmail.com |
7ff3f503b6109c982a1c88f57ebeb4903c7ad1a8 | 47c0c375f85d13802c52fac358a6434a9ec24387 | /pencil sketch/cv2.py | d3dbc3620edc17c2074460b870a8e0e29f144e62 | [] | no_license | hemant5668/computer-vision | d4f8211b35897fee8a7e8b41a7ae7176581e458e | 0afd4127e064fa955edee08bff8f73642baa3a00 | refs/heads/master | 2020-12-17T22:14:44.618814 | 2020-08-09T09:35:13 | 2020-08-09T09:35:13 | 235,297,212 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py |
# coding: utf-8
# In[1]:
import cv2
import numpy as np
# In[36]:
#sketch generating function
def sketch(img):
#converting to gray
gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
#remove noice
gray_blur=cv2.GaussianBlur(gray,(5,5),0)
#seperate edges
canny=cv2.Canny(gray_blur,-10,50)
... | [
"noreply@github.com"
] | hemant5668.noreply@github.com |
30e71e9ab69110f4a8e98185c665f48bca3aaf81 | bdc294f477244b9fff34b8e1bff968057a600a45 | /app/Trading.py | 34dde6d3fbf2311e83e95e16a4092cefaaea954e | [
"MIT"
] | permissive | PaulGG-Code/BinanceBot | e3cd1157d96880a2217955e98e6608bb98b93e20 | 2c4e3a06f2957226086702a2eec47e29799a7d7e | refs/heads/main | 2023-02-25T00:36:13.405857 | 2021-02-01T22:00:11 | 2021-02-01T22:00:11 | 335,093,869 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,412 | py | # -*- coding: UTF-8 -*-
# Define Python imports
import os
import sys
import time
import config
import threading
import math
import logging
import logging.handlers
# Define Custom imports
from Database import Database
from Orders import Orders
formater_str = '%(asctime)s,%(msecs)d %(levelname)s %(name)s: %(message)... | [
"noreply@github.com"
] | PaulGG-Code.noreply@github.com |
311e9dd78efad9b732440d9f4fae507fa27b1498 | f810888add2af1d8c30cf9920ee6c9becd687c60 | /Beginner/repeat.py | fc6cec1d130fccbc18daa1548b2df28ad7f07ba4 | [] | no_license | deepa045/python-programming | 2a4cc7d42131cc302b3573fe9d866dc62ca480ea | 373aeccbc5e1509f093f78e273052263ee0317fe | refs/heads/master | 2021-09-13T13:29:33.862035 | 2018-04-30T17:56:36 | 2018-04-30T17:56:36 | 125,207,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | string,val=raw_input().split()
for num in range(int(val)):
print string
| [
"noreply@github.com"
] | deepa045.noreply@github.com |
7e3af968048a42172de4897609638c92a4942170 | bb1fe15070832a508e4fbde929212414f4c10e78 | /felipe.py - Organizar/aula45.py | b30ab173614fd6f05f8b8b5121103ed4407e3874 | [] | no_license | structuredworldcapital/Lab-de-Estudos | 5cfd62414e4811b8170d8349563444f547811b3f | c97421549e8fe8196c321fd453b40ed3fab32cdf | refs/heads/master | 2022-07-25T16:50:56.956945 | 2020-05-04T17:23:09 | 2020-05-04T17:23:09 | 261,243,167 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 1,011 | py | from random import randint
itens = ('Pedra', 'Papel', 'Tesoura')
print('''Suas opcaoes:
[ 0 ] PEDRA
[ 1 ] PAPEL
[ 2 ] TESOURA''')
jogador = int(input('Qual é a sua jogada?'))
print('-=' * 11)
print('Computador jogou {}'.format(itens[jogador]))
print('Jogador jogou {}'.fomrat(itens[jogador]))
print('-=' * 11)... | [
"giancarlo.s.graziano@gmail.com"
] | giancarlo.s.graziano@gmail.com |
c4b0fa6a10dd0233f06a512fb6746c6c4f0b86d7 | b17fda8e3a9f360cbab8e8ed0ecd66b03787250a | /.venv/lib/python2.7/site-packages/planemo/templates.py | caa25724a0252f54837ada1ffbff3f78b82341b4 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | maumauleon/galaxy-irri-dev | 7a4b824c90474da0a2f3a3b858777c5089b9d5cb | 063bf0dca5d465466aefa77edaf47df12c4ff932 | refs/heads/master | 2022-11-16T03:10:18.067196 | 2017-08-23T03:31:01 | 2017-08-23T03:31:01 | 98,497,124 | 1 | 2 | NOASSERTION | 2022-11-01T17:00:32 | 2017-07-27T05:25:40 | Python | UTF-8 | Python | false | false | 478 | py | try:
from jinja2 import Template
except ImportError:
Template = None
NO_JINJA2_MESSAGE = ("This functionality requires Jinja2 but this library is "
"unavailable. Install with `pip install jinja2`.")
def render(template_str, **kwds):
""" Use jinja2 to render a template
"""
if ... | [
"v.juanillas@irri.org"
] | v.juanillas@irri.org |
299c27d535669cc4de79dbbd0196b49da9b5ae69 | a428ca9108f899de7f69503126272a830102e06c | /app.py | 139faa37075b7cbcfa55b596c517bd906a5ca73b | [] | no_license | Hammadali1/detection-fyp | 5c4eefd503f52a22baaaec350fa51c1ee92e79d1 | 572948f3be70ef4082dab2964b0d86b128163adc | refs/heads/master | 2021-06-20T01:25:30.627043 | 2019-07-07T15:40:25 | 2019-07-07T15:40:25 | 193,284,974 | 0 | 0 | null | 2021-03-20T01:12:54 | 2019-06-22T22:35:36 | Python | UTF-8 | Python | false | false | 166 | py |
from flask import Flask
app = Flask(__name__)
@app.route("/")
def retrieve():
return "yahoo"
if __name__ == "__main__":
app.run()
| [
"noreply@github.com"
] | Hammadali1.noreply@github.com |
dd722e77341a10ff56977e18b26a3b12366106a6 | 7729ddbb2e4eb03469cd19f2ac6b5670b831923b | /src/seraing/urban/dataimport/__init__.py | 626639e80ca9ee026c47dbf2d06065f7a7893534 | [] | no_license | IMIO/seraing.urban.dataimport_22 | 5cd7bb6e09debeb72145af107b99997ba54f96a3 | db2f3c596572159692fa6cb11050111d1cb0fca5 | refs/heads/master | 2021-05-05T17:01:27.788747 | 2017-09-12T13:45:01 | 2017-09-12T13:45:01 | 103,239,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # -*- coding: utf-8 -*-
"""Init and utils."""
from zope.i18nmessageid import MessageFactory
_ = MessageFactory('seraing.urban.dataimport')
def initialize(context):
"""Initializer called when used as a Zope 2 product."""
| [
"julien.jaumotte@imio.be"
] | julien.jaumotte@imio.be |
79ceb1608e1615bbf1de6d05391d801f4773fff5 | c8693ab1ea11ed82d7a52b6582f2b6e8caa60417 | /Python/client.py | 65e80e2be46fb58e5c2fa07365b6efe467bffdb6 | [] | no_license | ValentinModan/AttackOnPython | 0b75b2a9d358fa7880b39458c2e0d99899dfec53 | ab029fb46077510913f9c9c50db464275809db8f | refs/heads/master | 2020-04-04T21:00:07.359565 | 2019-02-26T19:30:58 | 2019-02-26T19:30:58 | 156,268,799 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py |
from bluetooth import *
import sys
import json
import time
if sys.version < '3':
input = raw_input
addr = "A4:50:46:1F:BE:90"
if len(sys.argv) < 2:
print("no device specified. Searching all nearby bluetooth devices for")
print("the SampleServer service")
else:
addr = sys.argv[1]
print("Searchin... | [
"aiordache22@gmail.com"
] | aiordache22@gmail.com |
c6b2e8b66b536d2ec8d0b0b20ddef5ee4cfd6e91 | 51a57371bca60654001445f75d1c17007a1de04d | /part5.py | 8874a60440882e00226e2d4f8d322c87567c39ce | [] | no_license | rahuljain1310/State-Estimation | 674c263e6526092f5577174ed5ca8fb4e3718eca | 625709dd5d1ee659853ea93ee4c50def0d811a11 | refs/heads/main | 2023-03-26T03:06:50.529939 | 2021-03-24T10:32:43 | 2021-03-24T10:32:43 | 350,550,564 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : part5.py
# Author : Rahul Jain
# Email : rahuljain13101999@gmail.com
# Date : 23/03/2021
import json
import numpy as np
from math import sin, cos, pi
from filter import KalmanFilter
from model import AirPlaneModel
from config import A, B, C, R
from matplotl... | [
"ee1170476@iitd.ac.in"
] | ee1170476@iitd.ac.in |
a697246864c5f020df2a2b5b60c9e4a429c0d160 | 7f53c41182a6d9c5da0c58a15716f01725ac0316 | /2019_2_19_public_test/test.py | e79247064e8a5dfa2e00c40dbbe822ef17f75f3b | [] | no_license | 1286211699/2019_1_23_pub_test | f6b7ee089e78ad673c56b3cd4ccee9b2154581f6 | 3aed7f4941353d48bf3407e9d30ac85c83b0ed7b | refs/heads/master | 2022-12-19T14:41:15.264627 | 2019-03-21T09:46:08 | 2019-03-21T09:46:08 | 167,125,649 | 1 | 0 | null | 2022-12-08T01:33:30 | 2019-01-23T05:54:52 | HTML | UTF-8 | Python | false | false | 666 | py | import _thread
import time
# 为线程定义一个函数
def print_time( threadName, delay):
count = 0
while count < 5:
time.sleep(delay)
count += 1
print ("%s: %s" % ( threadName, time.ctime(time.time()) ))
# 创建两个线程
#但是这个模块我们不推荐,因为底层封装的时候它的主线程不会等待子线程的结束!
#官方以及我们推荐再封装Threading,所以在这里大家了解下
try:
... | [
"1286211699@qq.com"
] | 1286211699@qq.com |
efeee94769b83f842bac96bd9d32030c907b7472 | 14be69d424c8f30cab70231d5509df50ccaa2f04 | /tensorflow/python/training/basic_session_run_hooks.py | 99f057e8371aa6d1d5420e5622a79426783ded4b | [
"Apache-2.0"
] | permissive | siemanko/tensorflow | 739847a1b7d44e6d9291da63be0daf3ae8f2d17c | 66e0faf5f2391d8e1b3acf69afbfa0adf609596d | refs/heads/master | 2021-07-08T09:00:56.875610 | 2017-10-05T18:16:17 | 2017-10-05T18:16:17 | 105,937,165 | 0 | 1 | null | 2017-10-05T20:29:58 | 2017-10-05T20:29:58 | null | UTF-8 | Python | false | false | 28,652 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
00f569ae77237d2d80518fa93f5d1e27c4d3b867 | f9632d4a822f6525a007598a1f67757ac9891749 | /rakuten/playground/extract_category.py | 7b023d96f6665916c58bdc27b25ebb3531856c12 | [] | no_license | rpryzant/marketing | ab055a5ae02ed287cb5a763d3e937efa72d057df | 9f463da0a2e7c9c48951e793d95534963cd19721 | refs/heads/master | 2021-09-07T01:20:31.720381 | 2018-02-14T22:13:40 | 2018-02-14T22:13:40 | 116,716,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,074 | py | """
extracts a category from the data
"""
import map_reduce
from collections import defaultdict
# make parent dicts
genre_tsv = '/Volumes/datasets/rakuten_dump/merchandize_data/genres/genres_with_english.tsv'
id_to_pid = {}
for l in open(genre_tsv):
l = l.strip()
try:
[id, ja_name, pid, en_name] = l... | [
"rapigan@gmail.com"
] | rapigan@gmail.com |
cc212e89de838c5d797940d26049945d6c484869 | b21b1c9272a42c7c2a74ce871de90e0fe27798d0 | /rename.py | b252208f83c0697272e284511ba2742392aa8f8d | [] | no_license | rafiahmad16/object-detection-yolo-project | 387e47d3099f45ec6da56d9c95f79b0dd6c8f6dc | 8ea7e83377596ecb7bd1884cdf60414c4c3b5e9f | refs/heads/master | 2021-09-13T04:53:51.168185 | 2018-04-25T06:15:00 | 2018-04-25T06:15:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | import os
from shutil import copyfile
imdir = 'v_images'
if not os.path.isdir(imdir):
os.mkdir(imdir)
folders = [folder for folder in os.listdir('.') if 'video_images' in folder]
number = 2007
for imfile in os.scandir('video_images'):
filename = imfile.name
extention = filename.split('.')
if extention[1] == 'j... | [
"rafi01010010@Rafis-MacBook-Air.local"
] | rafi01010010@Rafis-MacBook-Air.local |
d37c132d0eab9fae1f0a71da0763c2b6382dab48 | b86c1eee6a67adab6d5daf58ff1f6cd3fadda387 | /newBackend/backendapi/migrations/0009_auto_20210520_0222.py | df7a0918cde06011b2af03596de0fdd87667ffd9 | [] | no_license | patrick-simon045/FINAL-YEAR-PROJECT | d5d24e1224d978dabd88928226bfc6f5b188e21a | b5d01e8cfaf52595454cdab85c6b56d340210dfa | refs/heads/master | 2023-06-25T19:28:52.246179 | 2021-07-07T18:21:59 | 2021-07-07T18:21:59 | 383,879,042 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Generated by Django 3.0 on 2021-05-20 01:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('backendapi', '0008_auto_20210520_0220'),
]
operations = [
migrations.AlterUniqueTogether(
name='lecture_course',
unique_togeth... | [
"77192100+patrick-simon045@users.noreply.github.com"
] | 77192100+patrick-simon045@users.noreply.github.com |
d9befda86b06264640487d776569c49952aa341a | 7513ddce2c659687216d79f9790d05a44c8f47b5 | /pyportfolio/utils.py | 9b3a1104f21fadeca279316989e9950f9f54b852 | [
"MIT",
"Python-2.0"
] | permissive | 0xKD/pyportfolio | 02a7a23e593ae80ff0abc6f0df057f51e8d0cde5 | caa721431f2ca4c0bb25d570751ce9d6d99afcee | refs/heads/main | 2023-03-28T22:10:21.965727 | 2021-04-09T04:51:50 | 2021-04-09T04:51:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | import logging
logging.basicConfig()
logger = logging.getLogger('pyportfolio')
logger.setLevel(logging.INFO)
# Filter Utils
def and_filter(filters):
return lambda x: all(f(x) for f in filters)
def or_filter(filters):
return lambda x: any(f(x) for f in filters)
def filter_dict(mydict, keys):
return {key:... | [
"19279785+kaushiksk@users.noreply.github.com"
] | 19279785+kaushiksk@users.noreply.github.com |
d903e132f3f76958023738b2b7dbc6b604ca5f7d | 47bd6a35f8d911d73b3b335ba9f82881b7507efb | /Automatic_download_bounce.py | 4a46d6deb77527cab25f1c40d1308e0f25b60745 | [] | no_license | nandini4189/Pthon-Scripts | 144f5ad670aac7b5aed5030c7eee9c94a405b50d | 8f55bfde98192ec6a042dda3badfa1ef2791c6b7 | refs/heads/main | 2023-08-22T01:43:50.225468 | 2021-10-13T05:45:32 | 2021-10-13T05:45:32 | 416,604,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | import requests
import json
import io
import codecs
import pandas as pd
# api-endpoint
URL = "https://api.sendgrid.com/api/bounces.get.json?api_user=graghavendra&api_key=Diversio3413&date=1"
# sending get request and saving the response as response object
r = requests.get(url = URL)
# extracting... | [
"noreply@github.com"
] | nandini4189.noreply@github.com |
1caac16e5225167efc86a074ade91bb7bb01268c | e051dbc70bbb656892946c3dadea75a859fb1af4 | /skin-generation/xacro-skin-generator-triangle-1.py | ae94c387251fd48860fcad34b10a67d95c0e516b | [] | no_license | matejhof/nao-mirror-self-recog | d5d2d83edd5d088d534e8ac05577f159e02e564c | cdd5433ed68f4c488373363c7d76668101c3a7ae | refs/heads/master | 2020-06-26T02:26:58.243911 | 2019-09-28T20:18:59 | 2019-09-28T20:18:59 | 199,496,349 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,114 | py | # This version creates sub-links connected to casing with fixed joints, with coordinate
# transformations applied to these sub-links
# Status: does not work, contact plugin does not register collisions in sub-links
import numpy as np
from placeSensors import *
VERTICES = [
"coordinates/torso.txt",
"coordinate... | [
"outravoj@fel.cvut.cz"
] | outravoj@fel.cvut.cz |
d914c63daf2fad0c1cedf4f0d70cdcc832c0e729 | f37d490338236d3cf779918efa28599f04ebdbe4 | /Inteligencia Artificial 1/Tarea 13/Programacion Genetica.py | 439d9264fc9262d72f9b262f8c814be5fb1fc4a8 | [] | no_license | sanemiliano/Artificial-Intelligence-Projects | a513a77bf1be53ea561ae931efd4b4fe7a95991c | b9fb0d3fa92d95514518f49bf96a81229b7b1595 | refs/heads/master | 2020-03-27T22:25:59.823400 | 2018-09-07T20:05:55 | 2018-09-07T20:05:55 | 147,230,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | import numpy as np
import copy as cp
import random as rd
class Node:
def __init__(self):
self.fitness = 0
self.Yc = []
def calc_fitness(self, Y):
self.fitness = np.linalg.norm((self.Yc - Y))
def print(self):
pass
class Const(Node):
def __init__(self, x, y):
No... | [
"zeus@polispay.org"
] | zeus@polispay.org |
23394ba5e3d077a01662573c4197b02160b39db2 | 820867acf1db9a60649b115fe1ba480495b9add1 | /Desafios/Desafio 108.py | 9508d83bf78604c41e5683fbdb825d442fbdac41 | [
"MIT"
] | permissive | blopah/python3-curso-em-video-gustavo-guanabara-exercicios | 8486cfd889c1175ffd0b8961095bd17634ac0757 | d86c613ea8bb335c4dd888a34bda456055e4d82e | refs/heads/master | 2022-11-10T04:17:22.992631 | 2020-06-15T23:33:45 | 2020-06-15T23:33:45 | 272,562,814 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | """
Problema: Adapte o código do desafio 107, criando uma função adicional chamada moeda()
que consiga mostrar os valores como um valor monetário formatado.
Resolução do problema:
"""
from ex108_modulo import moeda
valor = float(input('Informe um valor: R$'))
print(f'Aumento de 10%: {moeda.aumentar(valor, 10)}')
prin... | [
"pablodplucenahh@gmail.com"
] | pablodplucenahh@gmail.com |
21a03c5b4c4fdf5f65f8f33de569e2d41869d67b | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/account/azext_account/vendored_sdks/subscription/operations/_subscription_operation_operations.py | ff4eaf571ec7c44d355033680ae253d44a157678 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 4,364 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
b661a1cfef36f0ddc1bcdb83973c0be2589e1ab1 | 28b76b454aca0f46ec28d292c44cd58932d4f924 | /blogging/migrations/0007_auto_20180417_1727.py | 41a39954d34313eebebd708e84c05289f4f69952 | [] | no_license | U-Divya/Django-Mysite | 56a1906abf259c41e806f2e6291754c7cb6cfc1a | 740f87903169e997f16095486516f58305c97b22 | refs/heads/master | 2020-03-15T16:27:08.505545 | 2018-06-08T16:14:40 | 2018-06-08T16:14:40 | 132,234,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-04-17 11:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogging', '0006_auto_20180417_1724'),
]
operations = [
migra... | [
"noreply@github.com"
] | U-Divya.noreply@github.com |
47d15cbb5b377278a0596f903530d487f4f3cc6c | 1b512092052c8fe7f6919ee870431ac7b3a65f66 | /pal/examples/MixedHalidesBE2/run_simple_misokg.py | 77cd6d71fbb4de358efaf37a34fd2962c948ae5b | [] | no_license | ClancyLab/PAL | d7b9dd1caeb62d363041b8e4c7f402d6edbf741e | cb0ef048de37014922b943ae6b5eaffd3d43da63 | refs/heads/master | 2022-02-25T05:31:20.590421 | 2019-10-14T19:47:10 | 2019-10-14T19:47:10 | 210,862,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,151 | py | from pal.opt import Optimizer
import pal.utils.strings as pal_strings
from pal.constants.solvents import solvents
from pal.kernels.matern import maternKernel52 as mk52
# from pal.objectives.binding_energy import get_binding_energy as BE
from pal.acquisition.misokg import getNextSample_misokg
from pal.stats.MLE import M... | [
"hherbol@gmail.com"
] | hherbol@gmail.com |
3906e639fd5010cbc85fb6417f0c25ecf4c4001b | 1370ae668a0b5ed55b23d0c52316685a0e481379 | /software/Train KBC Models/Bilinear Decomposed/bilinear - Kopie.py | 0716288203f9058c1592741af70646dc061e7999 | [] | no_license | kavchop/KGC-Thesis | 0fe90bcc823f53ce0bab003edcf48be42ed068dd | ed27b543e52881302a7bbdcb41af9afab9053a8e | refs/heads/master | 2021-01-11T18:26:11.011631 | 2017-01-20T09:29:15 | 2017-01-20T09:29:15 | 79,544,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,128 | py | '''
Author of this implementation: Kavita Chopra (2016, version 1.0)
RUN THE CODE:
TRAINING:
- "python bilinear.py" for training with non-diagonal Mr
- "python bilinear.py diagonal" to train the bilinear diagonal model
EVALUATION:
- "python bilinear.py evaluate" for evaluation with non-diagonal Mr
- "python bili... | [
"kavit.chopra@yahoo.com"
] | kavit.chopra@yahoo.com |
19bbf36ff2037e3a684c244330eb212bbee1e7c9 | abf440dd253331e90e6b5bb3d1486eb240c98cde | /cgan/embeddings/glove_loader.py | c080a9c2d5df468fe56d7ad15c7d77e5fd2a082d | [] | no_license | MdeBoer95/Emoji-Generator | cd7638ebbab4833db2122cf4ebf4e48b0b9d0770 | 6960eb5764838d3971b1dfcf9c7d82995ef81577 | refs/heads/master | 2023-06-01T08:24:51.969005 | 2020-07-14T17:29:06 | 2020-07-14T17:29:06 | 268,293,400 | 1 | 0 | null | 2023-05-01T21:44:04 | 2020-05-31T14:09:34 | Python | UTF-8 | Python | false | false | 3,888 | py | import numpy as np
"""
def download_glove(data_dir_path, to_file_path):
if not os.path.exists(to_file_path):
if not os.path.exists(data_dir_path):
os.makedirs(data_dir_path)
glove_zip = data_dir_path + '/glove.6B.zip'
if not os.path.exists(glove_zip):
print('glove ... | [
"marceldeboer@web.de"
] | marceldeboer@web.de |
4d2056fec89cacb509ef5c0f41cce953a3b61ea2 | 6e2caad49f10db5ef560549618c884d2dd8f229c | /bili/osPro.py | 9934d02cb624c8d5db7b6b5b1196a5e7cef5475e | [] | no_license | iwen1992/python-learning | a6d9e022f8e7f7fadbc23390d13566881f6df689 | 8f306b86b8e733826a0d5d0e74f04a72891e922a | refs/heads/master | 2023-03-14T01:19:10.857037 | 2021-03-04T09:44:43 | 2021-03-04T09:44:43 | 330,402,840 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | import os
import time
#1、os.name系统的名字window-nt
#2、environ环境变量
#3、sep 分隔符 pathsep 路径分隔符 linesep 换行分割分
print(os.linesep)
#二、文件和目录操作
os.mkdir('stddemo')#当前目录下创建stddemo
os.rmdir('stddemo')#删除目录
print(os.getcwd())#打印当前目录
#三、path模块
#os.path.isabs(path)判断path是否为绝对路径
#os.path.getsize(file) 拿到文件的大小
file = os.getcwd()+'\osPro.py... | [
"3066420900@qq.com"
] | 3066420900@qq.com |
6f41487d395ae9b4cdd0b9f9e9a9e493d9089af4 | 83bd62b9ef3d8aa7cbc892b1546704afe5bc5ee8 | /film/migrations/0010_film_review.py | 05bd82d4279e7f5426034e2d230c792bc1768216 | [] | no_license | baraa65/movies-search | fca843a04af2398898313cb38f547d4b5b083c02 | bf43193ce2d3786fd449f085170f4f83f8482b8b | refs/heads/master | 2023-07-17T08:40:32.315088 | 2021-09-01T20:59:29 | 2021-09-01T20:59:29 | 383,206,405 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # Generated by Django 3.2 on 2021-07-05 10:37
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('film', '0009_auto_20210705_1332'),
]
operations = ... | [
"baraash75@gmail.com"
] | baraash75@gmail.com |
14aea44dfb3cac5b9c7cdb45d60535220558ea80 | 3f0beb3543f1fcad6b84b6194b0cd70612b1a109 | /app/schemas/credit.py | d507a76338d9639bfa6b5f84228456630c3fa9ac | [] | no_license | Keith-Njagi/ecommerce_app_credit_management | 3e1ec9300ca62d28e6113978ac295cc7012de5e1 | 176f63fb7e33235462391edbe122eb8ad27d782a | refs/heads/master | 2022-12-10T14:55:53.268186 | 2020-09-08T17:35:26 | 2020-09-08T17:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from . import ma
from models.credit import CreditModel
from models.salesman import SalesmanModel
class CreditSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model =CreditModel
load_only = ('salesman',)
dump_only = ('id', 'created', 'updated',)
include_fk = True
_links = ma.Hyp... | [
"kitgiana.keith@gmail.com"
] | kitgiana.keith@gmail.com |
4f991df0912048ead0e186019f6a15facdca9fcc | b490698632d8a92a9d89072c033458c4d8316fd8 | /mysite/urls.py | 4421deb0fc1c511eb3e56d4069302a5584cfa285 | [] | no_license | kuldeepbista/travelblogs | dec6b764400db88d6c1823969a911b5078ac91a4 | c972caa8d312ba454eb2577cae33f33660cf8ccb | refs/heads/master | 2020-05-20T19:23:14.716956 | 2019-05-09T07:09:57 | 2019-05-09T07:09:57 | 185,720,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"kuldeep@Kuldeeps-MacBook-Pro.local"
] | kuldeep@Kuldeeps-MacBook-Pro.local |
8c5e78c2e0950d63c09a8ccf701ea6c4e2067240 | b83ee9db2832b07faa2bd9afae043691922412c3 | /Knapsack/dynamic_knapsack.py | a2e0c1e3a3cc828fe3e8a5be4f04ff03bb24ca26 | [] | no_license | Prudkovskiy/Python | 68996953471292a1da3495adf16ff3b9eadec4b0 | adad850e3a5efa0e78f4329388c1de98fd8ee610 | refs/heads/master | 2021-05-13T18:40:55.942928 | 2018-05-18T07:42:30 | 2018-05-18T07:42:30 | 116,874,806 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | """
задача о ранце методом динамического программирования
"""
from sys import stdin
class knapsack:
def __init__(self, max_weight=0):
self.W = max_weight
self.weight = [0]
self.price = [0]
# массив со всеми предметами, которые в конечном итоге вошли в рюкзак
self.ans = []
... | [
"nickolay.prud@gmail.com"
] | nickolay.prud@gmail.com |
609618bd1fe9be3d32aa26f4ec5cb69297691451 | a2d30e0320b9a15862d1a21659c511064750df02 | /MyBlg/migrations/0002_auto_20170703_1632.py | d65369cef80443c613d4421897d5601a8c141c89 | [] | no_license | wjanaszek/first_blog | 0bdda4ed7e0e08930ede96534181a67ac329b9fa | a1f2b5392e17dc256fac20a0193a21e5eae9891a | refs/heads/master | 2021-03-27T15:59:21.537108 | 2017-07-11T20:16:24 | 2017-07-11T20:16:24 | 96,134,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-03 16:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('MyBlg', '0001_initial'),
]
operations = [
migr... | [
"trash.wjanaszek@gmail.com"
] | trash.wjanaszek@gmail.com |
5f16893b288023099588adfdbd4c49d0bf59bceb | 33fff53a9b24e600848fc615769850b4590cecef | /pigprice/pigprice/middlewares.py | a55ae880c97b4f6611f8d54d19853307ca46cee7 | [
"MIT"
] | permissive | wshoo/scrapy-pj | 746b63697e6a4263df6afb15f67c33b929e187e0 | c1cb279e02fd13930b446f021b85ed4be313c5fe | refs/heads/master | 2022-11-25T16:26:32.319524 | 2019-12-25T05:44:13 | 2019-12-25T05:44:13 | 170,986,821 | 0 | 0 | MIT | 2022-11-22T03:26:03 | 2019-02-16T09:39:51 | Python | UTF-8 | Python | false | false | 3,601 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class PigpriceSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy... | [
"wsh_oo@live.com"
] | wsh_oo@live.com |
417e4e7fceb9fbbc14196f5a7e374f689dcfecff | 8ebb6c7abc58d1eeb8c7eaa6d6e27b625fc04696 | /2020/python/day20-1.py | fa2e81a2c45364bcc81279d0b2bfb8f1a4341cc0 | [] | no_license | davidcbc/aoc | 3d26f24314e0072315e5047f17d78c4017950a24 | 58bc1b020317ff66e1d46ad6c3f89c2535684ca2 | refs/heads/master | 2023-02-05T18:56:10.527499 | 2020-12-23T20:25:06 | 2020-12-23T20:25:06 | 317,977,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,462 | py | import copy
import math
f = open(r"2020/python/day20-input.txt", "r")
input = f.read().split("\n")
BASE = 2
UP = 2
RIGHT = 3
DOWN = 4
LEFT = 5
def checkSeamonster(grid, x, y):
seamonster = [list(" # "),
list("# ## ## ###"),
list(" # # # # # # "... | [
"davidcbc@gmail.com"
] | davidcbc@gmail.com |
411674aed64bba22b2f24cc9fdb1d0237b8dad90 | 10f047c7631b3aad90c7410c567c588993bfa647 | /PythonDispersal/src/testingTheequations/startColsTest.py | 9ad2d596bce5622a28b77d6736df337f57bb8ada | [] | no_license | ruthubc/ruthubc | ee5bc4aa2b3509986e8471f049b320e1b93ce1d5 | efa8a29fcff863a2419319b3d156b293a398c3a9 | refs/heads/master | 2021-01-24T08:05:40.590243 | 2017-08-30T01:37:56 | 2017-08-30T01:37:56 | 34,295,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | '''
Created on Jun 29, 2015
@author: user
'''
from core.StartColsClass import StartCols
cols = StartCols(126, 1, ad_fd = 0.6)
cols.make_col_list()
col_list = cols.col_list
print "col_list", col_list | [
"Amber22Ruby"
] | Amber22Ruby |
567dc4756fdd77193ba0e7b938617bfbc0333d1a | 74c05c49de443e9c304549e017ddb7fc5b5dfafb | /customuser_project/wsgi.py | 58b0fa11b7edac62a12b544f8a8a36bca297497c | [
"MIT"
] | permissive | aliibsamohammed/customuser_project | 187ec4c85b49bcd807738dba63cddd8f174f0248 | f661f46447ac5144729fac5acf5406c3e87ccc46 | refs/heads/main | 2023-09-05T19:25:03.251279 | 2021-09-25T22:18:34 | 2021-09-25T22:18:34 | 409,338,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | """
WSGI config for customuser_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.conf import settings
from django.core.wsgi import get_wsgi_appli... | [
"ibsamohammed@gmail.com"
] | ibsamohammed@gmail.com |
fe49affdfe86b67c957fb54ead648638e5c4d54b | ff826a0767913591ef1462fc7b6ada3e96427f08 | /Pre_processing/csoText.py | b0564ea5bc565565378ca4a954216704e6242eed | [] | no_license | SoumyaBarikeri/ConferenceQuality | a99785f36d3c8b9738ea56e3f4be5909226cc7ac | 19af39bca2e7619e7dbeb7cb98fd49ab66b698c9 | refs/heads/master | 2022-12-08T23:28:03.721953 | 2020-09-13T13:32:38 | 2020-09-13T13:32:38 | 295,153,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,089 | py | """
This file fetches conference topics using Computer Science Ontology Classifier
"""
import classifier.classifier as CSO
import json
from nltk.stem import PorterStemmer
import pandas as pd
def stemwords(all_words):
"""
Function to get stem of all conference topics using Porter stemmer algorithm
Paramet... | [
"noreply@github.com"
] | SoumyaBarikeri.noreply@github.com |
ce5e6f8927e97a6ea173f1e91c3d7ee62877e31a | d30785d3b36051dddfbf0a94c41b0f1cba33b146 | /first_django_app/manage.py | 8cdb6c32d05cd6c541ca5d7eef6e1899646701dd | [] | no_license | jcchouinard/Django-tutorial | f227f5de4b5eeceb4b5fc3f628913ec3a1615c41 | ae85e14c359a3babedf890625faff31249588ff1 | refs/heads/main | 2023-02-03T17:31:53.507380 | 2020-12-23T05:13:27 | 2020-12-23T05:13:27 | 323,791,827 | 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', 'first_django_app.settings')
try:
from django.core.management import execute_from_command_line
ex... | [
"jcchouinard.mkt@gmail.com"
] | jcchouinard.mkt@gmail.com |
9d9c54c167c1d1608999cca9cd3f8deb88c08f87 | f7a718425de1447836b547f831a120937f1fcf40 | /plumbum/util/datefmt.py | 86b8b0bd0033ccb5a4c68ba1d8edc9352eb63e63 | [
"BSD-3-Clause"
] | permissive | coyotevz/plumbum-old-1 | ad8ce697ffb4cbd0a6f238f66a1c546800e47024 | c0f769ca525298ab190592d0997575d917a4bed4 | refs/heads/master | 2021-01-20T10:50:32.516766 | 2016-11-18T04:20:32 | 2016-11-18T04:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # -*- coding: utf-8 -*-
import os
import time
from datetime import datetime
# date/time utilities
if os.name == 'nt':
raise NotImplementedError("Not yet implemented for this platform")
else:
time_now, datetime_now = time.time, datetime.now
| [
"augusto@rioplomo.com.ar"
] | augusto@rioplomo.com.ar |
b869872bf72cdc1084a31e866ffa6e18ef429fdc | 1fb82cf0b1fa219ec98ebd58ae53e2edc6dafb1a | /build/exercise2/catkin_generated/pkg.develspace.context.pc.py | 1e42272eda056104f01933099b4654afb9c1e315 | [] | no_license | roberttovornik/FRI-RINS_TurtleBot | ffb877369eb595e1a9f07571c786b729c3526d82 | f18ec20c00f390d20de5b01104ecd7bf83810d2c | refs/heads/master | 2021-01-19T22:49:05.279753 | 2017-05-02T16:03:22 | 2017-05-02T16:03:22 | 88,873,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "exercise2"
PROJECT_SPA... | [
"robert.tovornik@gmail.com"
] | robert.tovornik@gmail.com |
0b18446ffc3f619e218bbf4ee27d01ef5704d3cf | 93f650962489a895749be7e385d5a55429662148 | /manage.py | 7c4bc54db099fd70dc33472fd34daa9dcaa3c358 | [] | no_license | Jekrimo/django-user-dashboard | 02029df2825f271cae7114ccfd1d2cbb1772de5e | 0fcefad2b8ef81952270f2da5729e2db0cbd865c | refs/heads/master | 2020-02-26T14:49:15.270862 | 2016-08-19T18:51:56 | 2016-08-19T18:51:56 | 65,822,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "thedashboard.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that... | [
"jekrimo@gmail.com"
] | jekrimo@gmail.com |
6830bf43355e90891aa72f7a8937eceacff7dd87 | ad14fb1e1d133668207da93fdedf17d5523dfae5 | /lib/ipmi_client.py | 85a734292322c92b78567340a464fff1a2be12b4 | [
"Apache-2.0"
] | permissive | timlee66/openbmc-test-automation | 8a95187e233d585c1a534adfb1623e88728e3c82 | 43caf70f136a69fe104caa43a2379cc7e0986598 | refs/heads/master | 2022-05-22T19:22:12.546763 | 2021-10-08T01:30:54 | 2021-10-08T01:32:25 | 229,914,924 | 0 | 0 | Apache-2.0 | 2019-12-24T09:43:14 | 2019-12-24T09:43:13 | null | UTF-8 | Python | false | false | 5,474 | py | #!/usr/bin/env python
r"""
A python companion file for ipmi_client.robot.
"""
import collections
import gen_print as gp
import gen_cmd as gc
from robot.libraries.BuiltIn import BuiltIn
# Set default values for required IPMI options.
ipmi_interface = 'lanplus'
ipmi_cipher_suite = BuiltIn().get_variable_value("${IPMI... | [
"gkeishin@in.ibm.com"
] | gkeishin@in.ibm.com |
be4b3bc4b91e3948892eb0dfc5bd4d4bfbd7a81a | d3029a1d8a4892b04f21e7de6cfe578808b99efb | /test.py | 0944203c228a25fc75e8328304c941b6f2da02f5 | [] | no_license | johnpolakowski/File_Downloader | fae7c6240bbc9da26ef58ccd96885ec0b66b867c | a8a4b13bdbac7ccebfc5f4ef80aabb6bcc62657f | refs/heads/master | 2023-06-15T18:09:52.033795 | 2021-07-16T06:47:19 | 2021-07-16T06:47:19 | 386,534,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | WebDriverWait(driver, 30).until(EC.presence_of_element_located((By.ID, "recaptcha-anchor")))
ele = driver.find_element(By.ID, "recaptcha-anchor")
#ActionChains(driver).move_to_element(ele).perform()
ele.click()
driver.switch_to.default_content()
WebDriverWait(driver, 30).until(EC.presence_of_... | [
"poppy_ski@hotmail.com"
] | poppy_ski@hotmail.com |
cb9c8805b2401a47ffd0ff9c924fa33c3ef2548c | efcd916d9733ac4d2f4a162ac06d5b1356ec42d0 | /model/octave_unet.py | b487709c95a6bbe1d0895c5fe80e3d434d268c48 | [] | no_license | seandatasci/unet | d4d1b6c3016a1f673023c77c9e4f8ae6d0843e0f | 3be1c69956abf9ddb3d6565436f85e92c6e4e486 | refs/heads/master | 2022-11-05T08:10:03.659948 | 2020-06-16T01:44:54 | 2020-06-16T01:44:54 | 272,579,214 | 0 | 0 | null | 2020-06-16T01:16:41 | 2020-06-16T01:16:40 | null | UTF-8 | Python | false | false | 7,411 | py | # model code all in this cell
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import math
import numpy as np
import tensorflow as tf
from sklearn.utils import class_weight
from tensorflow.keras import layers
from tensorflow.keras.preproc... | [
"noreply@github.com"
] | seandatasci.noreply@github.com |
9c45927602a0c2e02348329e4ac8932ab91a4026 | da82e7bff86aeabcdf91cfd0ca3149e5752b780f | /v2mac.py | d846ca44346f16517dcf80e9021e9d8e52b60e08 | [] | no_license | tymancjo/video_process | 92f95b52c420753d5fe86080421eff584e22c9ce | 4775d4c5a420ef9b45127a35836b9187a7000480 | refs/heads/main | 2023-05-28T09:23:11.043293 | 2021-06-07T17:45:27 | 2021-06-07T17:45:27 | 371,156,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,067 | py | import cv2
import copy
import sys
import time
import csv
import numpy as np
import math
def play_videoFile(filePath, data, vid_sync, data_sync, sample_shift=0):
cap = cv2.VideoCapture(filePath)
if not cap.isOpened():
print(f"Can't open file {filePath}")
return
v_length = int(cap.get(cv2... | [
"tomasz.tomanek@gmail.com"
] | tomasz.tomanek@gmail.com |
883987a517479c143a4f47cd570555cb718d5ae8 | 4109e9a3ec14b9ff1670b65b686dbc10b485e1cf | /appi/migrations/0002_remove_skydevice_owner.py | 6443ee60b9e6eededef9b32ebf2f8d30a2427d7f | [] | no_license | bloomsky/bloomsky-widget-id-generator | afc6bdefea0a6f15b53a54054c43c06a64eaeae8 | 084d71b6afd192b4645aca513b36a6302acef1b8 | refs/heads/master | 2021-01-23T10:44:46.882267 | 2017-06-01T19:12:36 | 2017-06-01T19:12:36 | 93,090,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-05-26 18:37
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('appi', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_... | [
"weisun@wei79.local"
] | weisun@wei79.local |
908203b5cd69481a591c3a236d23ab58bfe761cd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_321/ch130_2020_04_01_16_55_20_162558.py | b1a491a59ae05eb3b4d84e3ac5803ce5f576c87e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | def monta_mala(l):
i = 0
mala = []
while sum(mala) <= 23:
if sum(mala) + l[0] > 23:
break
else:
mala.append(l[i])
i +=1
return mala | [
"you@example.com"
] | you@example.com |
2e9db7f19f244cd7fee24d13844d3b512eacad9a | 8700c32358fea46addac456927f37920845c8da6 | /ssir_iwae.py | db2bf8c5b2117c81d2936bb5acd7d147741647b3 | [] | no_license | satyam-cyc/SeqIWAE | c1c2bdb208b2ce03a54f35a7c218fccf93554d71 | 4c9fb10d1e87f0ed625f7d547cf5d78218752834 | refs/heads/master | 2020-07-05T01:26:21.774755 | 2017-11-24T19:56:42 | 2017-11-24T19:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,708 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 20 19:13:03 2017
@author: Chin-Wei
Sequentialized Sampling Importance Resampling and IWAE training wrapper
"""
import numpy as np
from utils import log_sum_exp_np
def seq_iwae_update(train_func,eval_func,x,spls):
# use external stochasticity
"""
Se... | [
"cw.huang427@gmail.com"
] | cw.huang427@gmail.com |
6c3c88c52957533c2d9b96c060ad47523130e927 | 253a92017383ea38d0a4e00097575a5a5fd81cc1 | /pages/migrations/0002_page_order.py | 1e849eaeb98e95c96e1d048659854fb77498938a | [] | no_license | crltsmrtnz/mboHupaWeb | 755ed5042d9738e2725b7e8b2436874e0cb6ad24 | 94e358b6954ab97a2338a2ceff8e343ef062490d | refs/heads/master | 2020-05-16T13:33:08.836312 | 2019-06-20T23:39:20 | 2019-06-20T23:39:20 | 183,076,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.0.2 on 2019-04-25 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='page',
name='order',
field=mo... | [
"crltsmrtnz@gmail.com"
] | crltsmrtnz@gmail.com |
b9d54800be181bc7335ae1361aa6a0240c3e5a88 | 639d6fb7f3be808dddf226d2feb520960a8ee656 | /lstm_helper_kit/lstm_keras_model_class.py | 67a020af72bb480d6acbd632180ffe267c522be8 | [
"MIT"
] | permissive | Treesbark/lstm_helper_kit | 5d2173412c0035dda1772150f579b1b412553f38 | ff95585557985f0aeba27d93159c0cd11e44ad00 | refs/heads/master | 2023-01-07T23:53:55.501840 | 2019-09-28T10:50:46 | 2019-09-28T10:50:46 | 170,912,718 | 0 | 0 | MIT | 2022-12-26T20:47:06 | 2019-02-15T18:49:47 | Python | UTF-8 | Python | false | false | 11,464 | py | # -*- coding: utf-8 -*-
"""Main module."""
# Importing the libraries
import matplotlib.pyplot as plt
import os
import math
import numpy as np
import datetime as dt
from numpy import newaxis
from sklearn.preprocessing import MinMaxScaler
from keras.layers import Dense, Activation, Dropout, LSTM
from keras.models impo... | [
"shea.hartley@gmail.com"
] | shea.hartley@gmail.com |
c517eec9d829fff97df7e35c813ed564afea1bb4 | 64615f146aba943d7eeb434f7f0ce6ea4f0435a7 | /Img2json/estimator/opt.py | b63951f99789049e86a01e5a5a49f25cea0102a7 | [] | no_license | jie311/Human-Auto-annotation-Tool | 0eb3d6af35f0bea4d2ebcf0077acb4414dce79c9 | d9f8e23f4c6f2e53fb29286b70758ec5f21decb6 | refs/heads/master | 2023-06-01T10:15:21.197269 | 2021-06-25T08:40:20 | 2021-06-25T08:40:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,899 | py | import argparse
parser = argparse.ArgumentParser(description='PyTorch AlphaPose Training')
"----------------------------- General options -----------------------------"
parser.add_argument('--expID', default='default', type=str,
help='Experiment ID')
parser.add_argument('--dataset', default... | [
"carolchenyx@gmail.com"
] | carolchenyx@gmail.com |
add361736c36d51ddd27caa4b8b50f6f08de26c6 | bed10dcbc66c0332cc2748be179e3f992e45c124 | /model.py | 24b218f6f670a65386e782de10787d542c01e4e6 | [] | no_license | GZWQ/image-generation | fdbe9214965d41daa19bb8660ecf816fb37d1674 | 3e477ab67e97d608b502ef42f5100b7f33f9d0f8 | refs/heads/master | 2021-01-14T22:26:18.709388 | 2020-02-24T17:23:30 | 2020-02-24T17:23:30 | 242,780,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,609 | py | from keras.models import Model, Input, Sequential,model_from_json
from keras import layers
# from keras_contrib.layers.normalization import InstanceNormalization
from keras_contrib.layers.normalization.instancenormalization import InstanceNormalization
from keras.layers.advanced_activations import LeakyReLU
import kera... | [
"wqingdaniel@gmail.com"
] | wqingdaniel@gmail.com |
3ece49f91d19e555e7e128083e0047a507248f9e | fd45d0fb3dedac5948486fa928083d4f4f863ebc | /whatistheplan/models/__init__.py | 570015042da1184e500abb62c5004cc6d759cd0b | [
"MIT"
] | permissive | ccowmu/whatistheplan.com | b81d08124801bfa106c43d53db95601cfb3529ec | 97d4662c9248fc72d9b556b4fef222befcc2df30 | refs/heads/master | 2020-04-15T23:54:02.504073 | 2018-11-02T19:02:41 | 2018-11-02T19:02:41 | 33,387,069 | 5 | 7 | MIT | 2018-10-30T17:08:58 | 2015-04-03T23:12:49 | HTML | UTF-8 | Python | false | false | 199 | py | """Aggregate all database classes for easy importing"""
from whatistheplan.models.userprofile import UserProfile
from whatistheplan.models.game import Game
from whatistheplan.models.team import Team
| [
"dyladan@gmail.com"
] | dyladan@gmail.com |
5895131f82ef26ab807bad6166ae4dfbed390bcd | ec8702ca17e1e73202b2ab19a351092bde619112 | /libs/models/mixins.py | 9d65e05db560e3f9257522e655913121e25126ab | [] | no_license | mygoda/new_ball | fff0846529a22253fcab06a6ec6d04206899b6ea | b2f05f5887758a0a30b50d5049b2736149e52e5c | refs/heads/master | 2021-01-09T19:03:56.411532 | 2016-07-11T00:03:44 | 2016-07-11T00:03:44 | 60,612,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # -*- coding: utf-8 -*-
# __author__ = xutao
from __future__ import division, unicode_literals, print_function
from django.db.models import Q
class QuerysetMixin(object):
@classmethod
def get_by_unique(cls, **kwargs):
try:
instance = cls.objects.get(**kwargs)
except Exception, err... | [
"taoxu@163.com"
] | taoxu@163.com |
cb0c7a44b43524123ce006d9b0d794b3060cda65 | e50a4781388ef7682a935986f2abae6fa85f879a | /MM2021/com-train/run_one.py | f4ebf3a94dd4b23d87a18b8e242c39768125e81f | [] | no_license | wojxhr/CG-trans-optimization | 2912156320db958e8aa6f797619acf59931be231 | 2b476b1291b972d22ec8e825eae21cbf4a597653 | refs/heads/master | 2023-08-24T23:05:31.526477 | 2021-10-22T03:01:29 | 2021-10-22T03:01:29 | 419,938,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | """
This demo aims to help player running system quickly by using the pypi library simple-emualtor https://pypi.org/project/simple-emulator/.
"""
from simple_emulator import SimpleEmulator, create_emulator
# We provided some function of plotting to make you analyze result easily in utils.py
from simple_emulator impor... | [
"391777866@qq.com"
] | 391777866@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.