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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
08c532cde042d4bb8df8b5a3d1a5138fcf37f418 | 390a57a46029720ac827766142c95060d36b169e | /Lab1/lab1.py | 9fd0d0e4808ef9ab5a0f5be4504076395f8c27d8 | [] | no_license | segev19-meet/YL1-201718 | c2f338970066e63270fbf88b6d1d3c280289e0cb | 4ea30aef2506f5874683a5f7f776d9e320022d25 | refs/heads/master | 2021-08-23T21:40:49.933317 | 2017-12-06T17:26:32 | 2017-12-06T17:26:32 | 110,852,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | for i in range (3);
print("segev")
| [
"segev19@meet.mit.edu"
] | segev19@meet.mit.edu |
aa2912c2ef41acedbaee3ebac7e817473026f59f | 75ed582edd3f1ec38a93dfe366a74a335c28df53 | /tsbe-2018fs/scri/session3/aufgabe_kantone.py | df4c086cbb4475fa16589f2b8d2411535c2322bf | [] | no_license | smlz/smlz.github.io | 9bec54265cafaa84d33bfb2069a48bb51dedc4ad | de49cc0b6986e031aa702c044c26fa9b234d3fef | refs/heads/master | 2020-12-20T03:28:13.770377 | 2019-05-01T20:04:22 | 2019-05-01T20:04:22 | 30,535,346 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 315 | py |
kuerzel = input("Geben sie ein Kantonskürzel ein: ")
# Beispielsession:
# Geben sie ein Kantonskürzel ein: GR
# Der Hauptort ders Kantons Graubünden ist Chur.
# Geben sie ein Kantonskürzel ein: AB
# Fehler: Kein Kanton mit dem Kürzel 'AB' gefunden
# Geben sie ein Kantonskürzel ein: q
# Auf wiedersehen...
| [
"marco@schess.ch"
] | marco@schess.ch |
88e33a3ac9e8b83161809f11986c6787a07b493a | 0deb569878001e59ca94207d9629dd33a567dd8f | /python_files/file_reader.py | 4939ddd0eddae793a9b9239826ac7bac5da262c4 | [] | no_license | AnushArunachalam/python_files- | 10b8b506b52f9505de5e66d65aa23604c86750fc | 6bdac7022c6e7dc47778828137988424e8f021de | refs/heads/master | 2022-11-25T06:48:04.424614 | 2020-07-29T12:54:42 | 2020-07-29T12:55:57 | 283,493,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | fp = open("index.txt", 'a')
writer = fp.write('append') | [
"anusharunachalam3@gmail.com"
] | anusharunachalam3@gmail.com |
edb5fcfcbb4bcff040dc2ab416705caba819a182 | 14864f5617bedcb5f1f756ca1da0df9585a4d605 | /apps/page2.py | 1bc71919a7e3d8a6cf8bac721e457bfc46539efa | [] | no_license | RyanMckenna95/Eurodash | ec60e4c0e47141bed41dc5f17c18ca8902c89caa | 71f9c634f29a4eccf478223410d520211c07a350 | refs/heads/master | 2022-12-09T21:48:19.233289 | 2020-09-20T12:20:06 | 2020-09-20T12:20:06 | 297,063,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,865 | py | import dash_core_components as dcc
import dash_html_components as html
import dash_bootstrap_components as dbc
from dash.dependencies import Input, Output
from apps.navbar import Navbar
from app import app
from apps.eurostatapi import popAgeGroup
import plotly.graph_objs as go
import plotly.express as px
nav = Navbar(... | [
"mckenna1995@gmail.com"
] | mckenna1995@gmail.com |
d5d8dd821a4ecfe8fd68e2dd4fdffdced4869e0f | f7df44ab53391592d438d4955752e655fc4d80aa | /login_xyz.py | 81a104b0784f66a3e009b102b38024c0b8c50c94 | [] | no_license | aaliyah-jardien/mysql-login | 2dccee71430220815ea24dc2c77633e28a4b059d | 520b97f44560a5fd695be2f2b5a26a2dd3493262 | refs/heads/main | 2023-06-07T19:41:25.607720 | 2021-06-29T11:06:56 | 2021-06-29T11:06:56 | 381,334,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | from tkinter import *
from tkinter import messagebox
# WINDOW FEATURES
window = Tk()
window.geometry("500x250")
window.title("Login page")
window.config(bg="silver")
window.resizable(0, 0)
# LABELS
name_lab = Label(window, text="Please enter username :", font="arial 13 bold italic", bg="lime")
name_lab.place(x=30, y=... | [
"aaliyahjar13@gmail.com"
] | aaliyahjar13@gmail.com |
149ff803cf2e12675ab01b204bcf549300d50aea | 0e1a0329e1b96405d3ba8426fd4f935aa4d8b04b | /base/tests/test_create_free_client.py | 33cbc04a108ef50da4ffb8fda7a8f0709f6032c5 | [] | no_license | ugik/Blitz | 6e3623a4a03309e33dcc0b312800e8cadc26d28c | 740f65ecaab86567df31d6a0055867be193afc3d | refs/heads/master | 2021-05-03T20:15:20.516014 | 2015-03-11T12:33:34 | 2015-03-11T12:33:34 | 25,015,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,535 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException... | [
"georgek@gmail.com"
] | georgek@gmail.com |
a29b5418c26e275543f353c8cef2bfca38fca308 | 0351c5c97c15b55549a3c6f766ecdb1746aad152 | /venv/bin/django-admin | c2224dcb57ca979c2d90b034a63cd0e41746a0d7 | [] | no_license | mradulovic988/shop | a52712cc84bb1c164c655122dffdb091cb3bd65e | 86d406bda8ec0cd63fc7beef4a94375e4671e339 | refs/heads/master | 2022-11-13T07:31:38.680293 | 2020-06-22T11:44:45 | 2020-06-22T11:44:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | #!/home/marko/PycharmProjects/PyShop/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"upss070288@gmail.com"
] | upss070288@gmail.com | |
29dc5b8d43fb5302a1441222a19a7d9099bcf929 | 8ce0fd5e5c5b858fa24e388f2114885160421c03 | /python/netuse/net_use.py | 1fd08a9bcb6cb202b36976078d0b840d73d473a4 | [] | no_license | kong-ling/scripts | 266e9975ae0156d6fdddf43b8f1d7ee20469b388 | 3c41c49646358d46871c8fd8ebe1ba52bdea046c | refs/heads/master | 2021-01-10T08:29:34.772634 | 2020-01-03T09:04:57 | 2020-01-03T09:04:57 | 43,275,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import os
import sys
import subprocess
p = subprocess.Popen('net use',
stdout = subprocess.PIPE,
stdin = subprocess.PIPE)
print(type(p))
for drv in p.stdout.readlines():
print(drv.strip())
| [
"kong.ling@outlook.com"
] | kong.ling@outlook.com |
bfc4a81a2576286e533d2b117dd711bc3d73d013 | 3c27b86f0165ab24e6b04d505e8471e032594f0b | /pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGL/GLES2/EXT/shadow_samplers.py | 119ce82880ccfe3b97741cc729ccd3611e990b3f | [
"LicenseRef-scancode-warranty-disclaimer",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LGPL-2.1-or-later",
"GPL-3.0-only",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"MIT"
] | permissive | alexus37/AugmentedRealityChess | 8b9ccdfffc8aee93a86a44b8ef53c034ec6a10d1 | 7f600ad153270feff12aa7aa86d7ed0a49ebc71c | refs/heads/master | 2020-12-24T13:29:21.967833 | 2020-02-27T09:38:50 | 2020-02-27T09:38:50 | 31,264,034 | 1 | 1 | MIT | 2020-02-27T09:38:52 | 2015-02-24T14:36:34 | Python | UTF-8 | Python | false | false | 774 | py | '''OpenGL extension EXT.shadow_samplers
This module customises the behaviour of the
OpenGL.raw.GLES2.EXT.shadow_samplers to provide a more
Python-friendly API
The official definition of this extension is available here:
http://www.opengl.org/registry/specs/EXT/shadow_samplers.txt
'''
from OpenGL import platform, co... | [
"alexlelidis@gmx.de"
] | alexlelidis@gmx.de |
89c4230d9e89f0f657b476e80fd43d8560fad2c0 | 89f0ac037468a738403325d0454d4cb9149f8f7f | /al4995_hw5_q7a.py | 586fe1aac7ca1c74fdb90f9af6a6f5b40b8c0c1d | [] | no_license | Jinsaeng/CS-Python | 85679d77b05b95ed660345f9d5fe896566e14685 | 0a15261ac2dd3e88527129d9170f405697f70be4 | refs/heads/master | 2020-05-01T18:30:39.515267 | 2019-03-25T16:45:33 | 2019-03-25T16:45:33 | 177,625,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | num = input("Enter number in the simplified Roman system: ");
m=0
d=0
c=0
l=0
x=0
v=0
one=0
for i in range(0,len(num)):
if num[i] == "M":
m += 1;
elif num[i] == "D":
d += 1;
elif num[i] == "C":
c += 1
elif num[i] == "L":
... | [
"noreply@github.com"
] | Jinsaeng.noreply@github.com |
fa7e40b0bb754bc7b775b514c47ad6387e9aded8 | 1ecb394b10e9622a5a5d8845b44e4585f464d42e | /nncp-rpc/lib/logic/Ticket/jl.py | 6eba7a4aba23fda0584343d0701709d8cb297dec | [] | no_license | dragonflylxp/lottory | 7ec28d196f58692d9d417aa5d6963c182afe260a | b04f115df325a58148dc19d7cdfc21b28892a6a1 | refs/heads/master | 2020-04-28T08:53:09.007092 | 2020-04-17T10:50:41 | 2020-04-17T10:50:41 | 175,145,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | #encoding=utf-8
import MySQLdb
import traceback
import define
from dbpool import db_pool
from util.tools import Log
from common.dbs import BaseModel, access
from baseticket import BaseTicket
logger = Log().getLog()
class JlTicket(BaseTicket):
def __init__(self):
super(JlTicket, self).__init__(47)
@... | [
"noreply@github.com"
] | dragonflylxp.noreply@github.com |
8882a3047b104ab1b3c17264e0c530a6d08c6907 | 9610621437f025aa97f99b67f0a5d8e13bbb715c | /com/vmware/vcenter/inventory_client.py | 4a5e81930923bd8759f59470aacabd3026107b08 | [
"MIT"
] | permissive | adammillerio/vsphere-automation-sdk-python | 2b3b730db7da99f1313c26dc738b82966ecea6ce | c07e1be98615201139b26c28db3aa584c4254b66 | refs/heads/master | 2022-11-20T03:09:59.895841 | 2020-07-17T19:32:37 | 2020-07-17T19:32:37 | 280,499,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,717 | py | # -*- coding: utf-8 -*-
#---------------------------------------------------------------------------
# Copyright 2020 VMware, Inc. All rights reserved.
# AUTO GENERATED FILE -- DO NOT MODIFY!
#
# vAPI stub file for package com.vmware.vcenter.inventory.
#----------------------------------------------------------------... | [
"miller@adammiller.io"
] | miller@adammiller.io |
d380208a8d395599666fb61452b253d0e419138d | 7dfbc92eac00d58b15cb6275a928907f31b5fd5f | /edx6001x/throwawayexercises/midterm5.py | 18bfd675f0d4f683cc076d81c0c869b9f687548a | [] | no_license | jfolsom/pytorials | 463125c1053da36235248e0a9f5e811d7c52d783 | 1758cf9cc536866439a0128adb1e512bda942573 | refs/heads/master | 2020-08-21T17:54:28.216605 | 2020-03-14T20:58:11 | 2020-03-14T20:58:11 | 216,212,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | def isunique(thisvalue, aDict):
count = 0
for value in aDict.values():
if value == thisvalue:
count += 1
if count == 1:
return True
else:
return False
def uniqueValues(aDict):
'''
aDict: a dictionary
for every unique integer item in aDict, return
the... | [
"cercops@gmail.com"
] | cercops@gmail.com |
3d61916d02e4d77417e3002685e698eb6b3f478c | c32230a3f7aff555a33cc9e5ad994b552823de63 | /Utils/train.py | 03ee464be761178b573343a8d1c2b3bf6caa1d00 | [] | no_license | ShreyasMalakarjunPatil/PHEW | 819bcb8ad47f73f137f92d7611fedc26b59f3981 | c4a0d40be8582a8ea51a4eb01338202f62277225 | refs/heads/main | 2023-07-04T12:51:04.841810 | 2021-07-23T15:44:02 | 2021-07-23T15:44:02 | 364,422,694 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,248 | py | import torch
import pickle as pkl
import copy
from Prune import mag_utils
from Prune import Utils
def test(network, loss, dataloader, dev):
network.eval()
total = 0
correct1 = 0
correct5 = 0
with torch.no_grad():
for idx, (data, target) in enumerate(dataloader):
data = data.to(d... | [
"sm_patil@gatech.edu"
] | sm_patil@gatech.edu |
df7a9c0e24ac326304c81886a08987ad4ec9854a | b7b1608203e018cf258826ff92c3234db896b33c | /UI1/Old/searchwindow.py | b621efb8fca096ad31e187c166d8b6fa715d4777 | [
"MIT"
] | permissive | UnclassedPenguin/AnimalTracker | 254a86090a35f6a16adaa3d3f1e216d6c9a44751 | ade8c55d3c9617e3a4013af9dcaefcbcc255f9fe | refs/heads/master | 2021-12-14T11:03:30.052075 | 2021-12-07T20:40:58 | 2021-12-07T20:40:58 | 159,107,460 | 1 | 0 | null | 2021-12-07T19:58:44 | 2018-11-26T03:53:32 | Python | UTF-8 | Python | false | false | 15,412 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'searchwindow3.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
Ma... | [
"tvanden@live.com"
] | tvanden@live.com |
54eef6b92d0dea189cce79be2163407619b9dcff | f85cc3fb482f1b71e7a749e1bcdbe90ba78fd059 | /swap_every_two_linked_list.py | 382cd105924360af622ba95190ca1d4012b07495 | [] | no_license | shan-mathi/InterviewBit | c94e091f728b9d18d55e86130756824a3637a744 | 6688e4ff54d56cf75297bb72ce67926b40e45127 | refs/heads/main | 2023-06-29T10:43:29.712472 | 2021-08-05T19:06:53 | 2021-08-05T19:06:53 | 364,321,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param A : head node of linked list
# @return the head node in the linked list
def swapPairs(self, A):
if A is None or A.next is None:
ret... | [
"noreply@github.com"
] | shan-mathi.noreply@github.com |
3d5d6019a9b7ef49e43d555f842b963c4e47b7ac | a594055a3a38a62db98b2e85ec7113d1b2558c1d | /hangman.py | 58c8128759b7c91b88c5d8e43794fab21dcad991 | [] | no_license | ruddyadam/learning | 003fe08d4cd63ae8ed4e0e239584c2705ba1c7b3 | d9530d83f4387b0cd5055592b2f109ad5e20b45f | refs/heads/master | 2021-01-19T13:36:29.530036 | 2017-03-13T11:22:27 | 2017-03-13T11:22:27 | 82,400,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,231 | py | import sys
pyVersion = sys.version_info[0]
pySubVersion = sys.version_info[1]
message = '\n********\nYou are currently running Python version {0}.{1}\n********\n'
print(message.format(pyVersion,pySubVersion))
if sys.version_info < (3, 0):
raise ValueError("you must use python 3.x")
else:
print("good\n")
gu... | [
"ruddyadam@gmail.com"
] | ruddyadam@gmail.com |
db3d7eda1e87530089374a33401a01e549e7a541 | 85731130fd28bf26bcd4a662368e4de255eda8e3 | /python_practice/prac9.py | 07fe3f71dd21cc3c621d15276bf93ca68b6fcfeb | [] | no_license | chanish-teramatrix/python-practiceCodes | 4670b22bd4309fbcd790c686e76e3c720fc84ea4 | 8e7ec8f065fd42516fb5b38534d5998866ec936b | refs/heads/master | 2016-09-06T10:04:29.033646 | 2015-09-04T11:46:45 | 2015-09-04T11:46:45 | 40,706,353 | 0 | 0 | null | 2015-09-02T12:24:45 | 2015-08-14T09:14:40 | Python | UTF-8 | Python | false | false | 92 | py | #!/bin/python
#module2
def even_odd(x):
if x%2 == 0:
print 'even'
else:
print 'odd'
| [
"chanish.agarwal@teramatrix.in"
] | chanish.agarwal@teramatrix.in |
b552ba1a83f2b1221607ee157be3200b3163a86d | 7b7df51427a5bbcd4b144a8aba9fb4c2588550ba | /{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/celery/app.py | 474517def62eb56ec64490e3165c374e28a387cb | [
"MIT"
] | permissive | tegia/cookiecutter-scrapy | 595eefddb5ff0aa20378e8460bc3ab4bb875c109 | 662cf7f99c0003d2a2fe3186c4dc0401e5382e28 | refs/heads/master | 2022-04-09T15:40:35.826637 | 2020-03-25T04:03:05 | 2020-03-25T04:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from celery import Celery
from {{cookiecutter.project_slug}}.configs import settings
app = Celery('tasks', broker=settings.CELERY_BROKER_URL)
@app.task(name="{{cookiecutter.project_slug}}.pipeline.process_item")
def process_item(item):
"""
Body method is defined here or something else (eg. in django project)... | [
"cuongnb14@gmail.com"
] | cuongnb14@gmail.com |
b5fca79b1608f0797b4b9d9f43d800951d1a52d8 | d4c024cc1330aa86582e0e3f25d5c0f76a9ccbe0 | /align/predict.py | 2f6ebbfb812250d45681908e7d093c5c0b37572c | [] | no_license | jeehyun100/insta_crawling | 464d5a90a614ed4aab1ca28566ad87cbda279447 | 39ada39513bc3655adc2e624c786cc6fd8473a7e | refs/heads/master | 2021-09-07T15:41:57.013861 | 2018-02-25T09:32:36 | 2018-02-25T09:32:36 | 118,861,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,797 | py | import os
import cv2
import numpy as np
import tensorflow as tf
from scipy import misc
import align.detect_face as detect_face
#from facenet_tf.src.common import facenet
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
import datetime
import dlib
from imutils.face_utils import rect_to_bb
import... | [
"intwis100@naver.com"
] | intwis100@naver.com |
afd83845d02b2e0bbd10ada0166a5fdaecea47d0 | a4520ed992a5e7ded73a2f5121f131d520c85624 | /Python/Binary_Tree_Maximum_Path_Sum.py | e7952d89a59628c493f44525842f25d242b4c644 | [] | no_license | kumailn/Algorithms | 2bfa11e8e31c3cff8c8c42f86d02739f8c172505 | e6be0a0cbf0caf13a723a9edfd2df33c2234235f | refs/heads/master | 2022-11-30T07:02:46.672681 | 2022-11-06T23:08:09 | 2022-11-06T23:08:09 | 122,286,889 | 64 | 17 | null | 2019-10-14T06:47:09 | 2018-02-21T03:14:18 | Python | UTF-8 | Python | false | false | 1,248 | py | def maxPathSum(root: TreeNode) -> int:
maxSum = float('-inf')
def maxChildrenSum(root):
nonlocal maxSum
# If we land on a null node we can return 0 safely because
# we know that it will not contribute to the sum of the root
if not root: return 0
# ... | [
"kumailmn@gmail.com"
] | kumailmn@gmail.com |
b582204cc823c8bbb76f24bede5a93b806555eff | cf0e827be05b2f2ec8afe8363996f7763af85414 | /AlienInvasion/settings.py | e4d729ed2d012bbb0d01d44b143ef54c0367af31 | [
"Apache-2.0"
] | permissive | imtoby/LearnPythonRecord | 3f2757e0c70d793ad70c1ef2a8335b56004e2b55 | 81cfb0940da8af23afa67796b61973cc6ead31f9 | refs/heads/master | 2021-05-09T14:36:19.216559 | 2018-02-28T03:09:27 | 2018-02-28T03:09:27 | 119,069,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | # -*- coding: utf-8 -*-
# Created by: ZhaoDongshuang
# Created on: 18-1-29
class Settings:
"""存储设置信息"""
def __init__(self):
""" 初始化游戏的静态设置 """
# 屏幕设置
self.screen_width = 1200
self.screen_height = 800
self.background_color = (230, 230, 230)
# 飞船设置
self.s... | [
"zhaodongshuang@syberos.com"
] | zhaodongshuang@syberos.com |
e18b37f1f5ca204f05df55aacb6448e4a970b35a | 3a9bad174cf24244add6dc0ae9396a226d923c18 | /pythonStuding/test1/socketServer1.py | 08582ff85e173d071304032a3b63fdf33f17e51c | [] | no_license | ckeyer/outmoded | 334bae2b21c57f5a19365631c1dc4eb982361f2f | c9911f4916d9b9441c1c048697f7158bacb4aad6 | refs/heads/master | 2021-01-01T19:52:35.412067 | 2015-04-02T18:10:30 | 2015-04-02T18:10:30 | 24,946,963 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | #-*- coding: utf-8 -*-
from socket import *
from time import ctime
from time import localtime
import time
HOST=''
PORT=1122 #设置侦听端口
BUFSIZ=1024
ADDR=(HOST, PORT)
sock=socket(AF_INET, SOCK_STREAM)
sock.bind(ADDR)
sock.listen(5)
#设置退出条件
STOP_CHAT=False
while not STOP_CHAT:
print('等待接入,侦听端口:%d' % (PORT))
tcpCl... | [
"wangcj1214@gmail.com"
] | wangcj1214@gmail.com |
a7cd4412c6af19405b8adf444583b176a579f717 | 37843eb761fbe20b7e369fb71d81cb9d9b3db3e1 | /dvc/cache/base.py | 38e84869c5a77b8c394d89a6804c5fe2caaaf009 | [
"Apache-2.0"
] | permissive | tall-josh/dvc | e88ebd11335fc3da7ff3b472058a12a84b416efc | aed343f77c0f27f1b5f3a828e450614d2ee17b8d | refs/heads/master | 2022-12-09T10:46:34.886051 | 2020-09-08T09:45:19 | 2020-09-08T09:45:19 | 268,058,946 | 0 | 0 | Apache-2.0 | 2020-08-05T09:48:57 | 2020-05-30T10:40:10 | Python | UTF-8 | Python | false | false | 20,595 | py | import json
import logging
from copy import copy
from shortuuid import uuid
import dvc.prompt as prompt
from dvc.exceptions import (
CheckoutError,
ConfirmRemoveError,
DvcException,
MergeError,
)
from dvc.path_info import WindowsPathInfo
from dvc.progress import Tqdm
from dvc.remote.slow_link_detectio... | [
"noreply@github.com"
] | tall-josh.noreply@github.com |
f49aa08c5251a7ed5487d2372a8c33761a0ce5de | 4ef9b96045d456145c55321b33ecda849c87620c | /bambazeled/modules/python_lib/python_lib.py | 09ea662cad8437c3feffd4d5a35c8c2101849933 | [] | no_license | pickledgator/bambazeled | 58aea1c2a12c0abc165260eb9ca62fdb895e6802 | fd5661173d05cd974910b96984a4a5d7ffe830d7 | refs/heads/master | 2020-04-10T04:10:00.756641 | 2018-12-25T22:40:47 | 2018-12-25T22:40:47 | 160,790,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #!/usr/bin/env python
class PythonLib:
def __init__(self, init = 0):
if init < 0:
raise Exception("Initial value must be positive.")
self._value = init
def increment_by(self, value):
if self._value + value >= 10000:
self.reset()
self._value += value
def res... | [
"nic.fischer@postmates.com"
] | nic.fischer@postmates.com |
ee81876807588c0e2367750bcb141750ead0ac37 | 702737408d2ddfa60c1a0aa94a3a3685a0c5f89e | /Testapp.py | 1eaa3b86e274902818290165e278595ce9a23cf5 | [] | no_license | Thembapa/Kasivore | 5653182f629ae89080fa525e925ad82ec9e30925 | 6eca64ae4d0dd649ad8b8e09f0962914e478aa5f | refs/heads/master | 2021-01-07T01:48:59.087390 | 2020-07-13T19:55:03 | 2020-07-13T19:55:03 | 241,543,139 | 0 | 0 | null | 2020-04-07T20:06:56 | 2020-02-19T05:46:00 | JavaScript | UTF-8 | Python | false | false | 125 | py |
import DistanceCalc
print('distance: ' + str(DistanceCalc.estimatedDistance (-26.3194776,28.255009,-23.8912248,30.327695))) | [
"thembapa@gmail.com"
] | thembapa@gmail.com |
0da11d84bb2716fc9df87d34b678a04e4e740506 | 5cac13969210aa062b0c4d51f56111a7400f6b5d | /main.py | 9d47fd89194ceee088182f302a1436fb68e8968d | [] | no_license | hehehe0803/CS498B_senior-project | e7283aec954398bc627bc33c7153a4689cd06650 | 2fab95d922b810ba4a8f3919712ba4787da9e953 | refs/heads/main | 2023-04-01T03:27:29.934757 | 2021-03-29T16:04:02 | 2021-03-29T16:04:02 | 343,339,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | import cv2
from PIL import Image, ImageOps
from keras import models
import numpy as np
def main():
model = models.load_model('./detect_model/keras_model.h5')
cap = cv2.VideoCapture(0)
categories = ['Skull', 'Pikachu', 'Man', 'House']
while (True):
# Capture frame-by-frame
ret, frame ... | [
"hehehe0803@gmail.com"
] | hehehe0803@gmail.com |
bdc0672a1f40976597bd0ac8992d513ab72c649c | 24eced3f950ca198baa1fa0faa95cfd976e61b84 | /sem1/lista1sol.py | 4af2049360a3d3b9739bf44c974a41d1abb036e6 | [] | no_license | unisinos-labprog/python | a3bc3d3c9bd2971fadb57ef4dcae1ed0a8cc3316 | 33e51796b0511c3ea6001b0c4102355c2c884b99 | refs/heads/master | 2022-12-05T06:26:44.205873 | 2020-08-21T21:51:16 | 2020-08-21T21:51:16 | 284,353,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | #Primeira Lista
import math
# 1 ------------------------------------------------------
print ("Alô mundo!")
# 2 ------------------------------------------------------
num1 = int(input("Qual o primeiro número?"))
num2 = int(input("Qual o segundo número?"))
print("a soma de ",num1," e ",num2," é ", num1 + nu... | [
"ernie.linds@gmail.com"
] | ernie.linds@gmail.com |
0723e9d3c2f3ed3348f8962f73db031393fd5949 | c59738ddfb08134af01d75255c4469071a1e135e | /002_Python_data_analysis_from_entry_to_master/ch10_Numpy科学计算库/02_数组的操作_分片_索引_拼接/005_二维数组_水平_竖直分割split.py | 54eb1c3acdf6b7d1c6d0d1128504a00f3cc4eed3 | [] | no_license | FelixZFB/Python_data_analysis | 371a8460da79e8fdb30b10c02b662419b62a5998 | 62f018d88d8454afe65980efd8d771ac8691956a | refs/heads/master | 2020-05-20T14:46:00.606684 | 2020-02-04T14:25:20 | 2020-02-04T14:25:20 | 185,629,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # -*- coding:utf-8 -*-
import numpy as np
# 生成两个形状一样的二维数组
a = np.arange(16).reshape(4, 4)
print(a)
print("*" * 50)
# 水平竖直分割是拼接的反操作
# 竖直分割: 以行分割
# 水平分割: 以列分割
# 竖直分割,指定被分割为几个数组,数要被整除
b = np.vsplit(a, 2)
print(b)
print("*" * 50)
# 水平分割
c = np.hsplit(a, 2)
print(c)
print("*" * 50)
# 也可以直接使用split函数,指定轴号0,作用于列,以行分割,竖直分... | [
"18200116656@qq.com"
] | 18200116656@qq.com |
e610698786f353d5ba7f3030dbe71ec75c1973c3 | ff384d954b2c86a90e9982a444df721d50a3de93 | /boutique_ado/urls.py | ba354b2c0e81d28766434e305e045c8c60287f0a | [] | no_license | davidjbuchanan/boutique_ado_v1 | 7553206033e89f45c6821c4e25c8a184cfe68e58 | e55d519a633ad25833a2270ddd00bff7fa1cdf2f | refs/heads/master | 2023-08-02T20:44:36.996659 | 2020-07-03T09:02:28 | 2020-07-03T09:02:28 | 272,670,738 | 0 | 0 | null | 2021-09-22T19:15:43 | 2020-06-16T09:49:54 | HTML | UTF-8 | Python | false | false | 1,209 | py | """boutique_ado URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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-... | [
"davidjbuchanan@gmail.com"
] | davidjbuchanan@gmail.com |
d75eee747f6822c8a9b790c92c8e2d58fcc5cb27 | fcc58c7486ea4c238a8286b6385b7e1ac0052725 | /kirjasovellus/events.py | d3c2170be70122be72d76ad51e05217af751b24f | [] | no_license | Juboskar/kirjapaivakirja | 087407097cd2d7ed61488d52bae729a0c60c401c | a27405b4051783ff06ee3334c700ef5643d1fb90 | refs/heads/main | 2023-04-27T21:49:48.659102 | 2021-05-09T10:56:57 | 2021-05-09T10:56:57 | 349,436,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | class Event:
def __init__(self, event_type: str, time, content: tuple):
self.type = event_type
self.time = time
self.content = content
def concatenate_event_lists(ratings: tuple, progress_updates: tuple):
events = []
for i in ratings:
events.append(Event("rating", i[5], i))
... | [
"oskari.juvakka@gmail.com"
] | oskari.juvakka@gmail.com |
9583bb87d6d50958ce11e645470522df8b013170 | 144a2a6f2e4a40d746f4908686e5080fcd3ebd79 | /drl-gym/logger.py | 43ba5d6ce80f72d0480a619f413d74c2c2a0b651 | [] | no_license | cxttli/ReinforcementLearningCode | ad6eef7c2980f0a4df40429e6deeadf82bed4030 | b5d092f2b760fafe2a9ffaf31da0e6285441a54f | refs/heads/master | 2021-10-09T18:31:12.773446 | 2019-01-02T06:20:01 | 2019-01-02T06:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,044 | py | #!usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
import os
def write(file, value):
file = open(file_path, 'a')
if isinstance(value, int):
file.write()
'''
作用在于:
store_resutl(): 进行数据储存;
reveal_last(): 定期输出该期间的平均值;
write_last(): 定期将平均值结果写入文件,防止数据丢失;
write_final(): 将每次保存的数据进行写入,不止是平均... | [
"wuhaolin@126.com"
] | wuhaolin@126.com |
5f653a3d19775919a62112eb017f0dae4dfaeb77 | 7be2397ccb3cee0f2acc24081934e0ecb146115f | /leetcode/editor/cn/[179]最大数.py | e45f99f17a83b9336b8b7d48da71bc72e295ae1a | [
"BSD-3-Clause"
] | permissive | LuoMaimingS/LeetCode | 77262d424498175ab1f29f97784b0e970c60fae0 | e6b0bb2ab5a958d06416178cfbc1a557b0315338 | refs/heads/master | 2021-05-16T21:24:16.110904 | 2020-08-04T15:45:46 | 2020-08-04T15:45:46 | 250,474,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # 给定一组非负整数,重新排列它们的顺序使之组成一个最大的整数。
#
# 示例 1:
#
# 输入: [10,2]
# 输出: 210
#
# 示例 2:
#
# 输入: [3,30,34,5,9]
# 输出: 9534330
#
# 说明: 输出结果可能非常大,所以你需要返回一个字符串而不是整数。
# Related Topics 排序
# 👍 327 👎 0
# leetcode submit region begin(Prohibit modification and deletion)
class Solution(object):
def largestNumber(s... | [
"mp1833013@smail.nju.edu.cn"
] | mp1833013@smail.nju.edu.cn |
cb5cce812191e1e05ffa5a6fb5f10082f4ebc88a | 8a51c5e98346e3fe98ed8b60e1adc9efacbe0c4e | /aula_29/exemplo_03.py | 8258bce190e50629f1803d4f078332f0f42df45e | [] | no_license | vtp14/aula_desafio_29 | 0491d05ddeb266452d91e8a2d6c8a5e00b568677 | fb8fdd91b412e3ef287cfd4561baa77fd20f72e5 | refs/heads/main | 2023-08-03T22:54:33.652792 | 2021-09-27T18:28:19 | 2021-09-27T18:28:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import os
nome = input("Digite seu nome: ")
#int() converte o que foi digitado em um valor inteiro
idade = int(input("Digite sua idade: "))
resp = 100 - idade;
print("------------------------------")
print(" Cadastro ")
print("Nome:",nome)
print("Idade:",idade)
print("Resposta:",resp)
print("----... | [
"vitoria.tobias.paris@gmail.com"
] | vitoria.tobias.paris@gmail.com |
5738b8ee28520b927063ca1c7c865b6ad5628621 | 39f4d05b6bb72f84b4ed0d99c7a3e100ea9fdfa5 | /thekrustykrab/mixlist/migrations/0004_auto_20180327_1514.py | 6fbc8b467b8d33a5e2d214167334ef12f090ba33 | [] | no_license | SuedeOO/326Project1 | 20a386dbe0cc7b03603c7fb8049f21a5dc3c5774 | 54397b718ea144168a8a862bd19c736ea9c413c5 | refs/heads/master | 2021-04-28T15:20:35.033683 | 2018-05-01T23:40:51 | 2018-05-01T23:40:51 | 121,986,898 | 1 | 2 | null | 2018-03-29T21:10:54 | 2018-02-18T20:16:38 | HTML | UTF-8 | Python | false | false | 598 | py | # Generated by Django 2.0.2 on 2018-03-27 19:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mixlist', '0003_auto_20180324_1450'),
]
operations = [
migrations.AddField(
model_name='mix',
name='description',
... | [
"mattrobinson125@gmail.com"
] | mattrobinson125@gmail.com |
20b8d06232b4b6e0ab720a34fa4445130ac824f2 | 387d6549a089449c33a40def2cde6aa9287408e4 | /utils/mapiou.py | 0cfd4aa8a2acea053e77c4bca4785772e7611a6f | [] | no_license | rathinad/kgl | b5e4b377ce01efbd6512d2c28edd71b5bb8a7879 | 2d744734d4e27d7a0521bf9b5aad6ab8a6aa1fd4 | refs/heads/master | 2020-03-31T10:53:06.624858 | 2018-10-09T03:28:33 | 2018-10-09T03:28:33 | 152,153,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,075 | py | import numpy as np
def printvalues(aa, bb):
print('Entering printvalues')
sumtotal=0.0
sumtotal2=0.0
scores = np.zeros((0,))
#aaa=numpy.array([numpy.array(xi) for xi in aa])
# bbb=numpy.array([numpy.array(xi) for xi in bb])
for d in aa:
print('Printing f... | [
"noreply@github.com"
] | rathinad.noreply@github.com |
fbd377cdb9cdae0e1c6af09c010ce94ab99a22f3 | 6dec0cbff8fe62be2cf3d352884c32fad3dfdfc9 | /brca/views.py | 876985a96f7d0a85ac04aab2f286903757c02520 | [] | no_license | sarahjamieson/small_apps | 2c74f4dc176e29862c08c6719fe4ba310ccf7f5b | 345e669b1ab02d435e3ca6e5f2bb220c98d0feda | refs/heads/master | 2021-05-03T15:22:31.030427 | 2019-07-24T09:52:07 | 2019-07-24T09:52:07 | 65,740,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | from django.shortcuts import render, HttpResponseRedirect, HttpResponse
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.core.urlresolvers import reverse_lazy
from brca.forms import UploadFileForm
import... | [
"shjn@localhost.localdomain"
] | shjn@localhost.localdomain |
95aede88f4655f72af544720480e5151aab0d8a1 | ea15d9742ea322e973e5b41de9d25423eb55a4c8 | /tests/metadata/test_continent_metadata.py | 6a58c4608ba745007649ccfa4cae3aae8dd536f6 | [
"MIT"
] | permissive | Math-Avila/dataviva-api | 53d767b6f24ebf0ee9f9477317e3e19270eafd6e | 5d2756b1003695038be32f58b43b11f5ed3e358e | refs/heads/master | 2020-07-29T04:48:12.915430 | 2018-08-17T18:30:28 | 2018-08-17T18:30:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | from test_base import BaseTestCase
class TestContinent(BaseTestCase):
def test_continent_path(self):
response = self.client.get('/metadata/continent')
self.assert_200(response)
def test_continent_plural_path(self):
response = self.client.get('/metadata/continents')
self.assert... | [
"danieltafuri1998@gmail.com"
] | danieltafuri1998@gmail.com |
e5ce1f784c016a82ea0bdab7ee28be6530a79009 | cf4b0eaca92048c6fff0de933b69b6322f17a073 | /build/lib.linux-x86_64-2.7/keystoneclient/v3/client.py | 8ab4f4181a0e0b4b5542d4814e9d047f0ef345d4 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | MaheshZ/maheshsawaiker | d9935d40b0da2042bc696423418f2a69db495ba8 | b1b5875bfd48a51b6d1eb9c1b76e8eefd41767ff | refs/heads/master | 2021-03-12T22:16:45.220953 | 2014-12-31T05:06:12 | 2014-12-31T05:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,314 | py | # Copyright 2011 Nebula, 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 required by ... | [
"mahesh_sawaiker@persistent.co.in"
] | mahesh_sawaiker@persistent.co.in |
cc7764cc0012e3eab4a8c87739f2c1c8c1059480 | e561681c5d4c7bd795e64c19122271909b6e67af | /config/urls.py | 0043f4327b0d070bb6b7e9b11648c151cb363a26 | [] | no_license | gustavodearmas/Sistema-de-Facturacion-Django | 9ef78446483f433874519952623f3f38c32a76a1 | a9cab6d820ef9f11263ea723594b9a8c74fae59e | refs/heads/master | 2023-07-29T11:14:17.289225 | 2021-09-17T05:50:02 | 2021-09-17T05:50:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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 ... | [
"bocettodigital@gmail.com"
] | bocettodigital@gmail.com |
af37f57d01f5ccea972c810929054efcb82c7055 | 85f078686bfe8ca7437e482b9bf016bc4f3327f1 | /users_app/forms.py | 44934162b45ba311ff3176b00f093a80a24fc387 | [] | no_license | saroshkhandev/TaskManager | d9267257b8027fdf8c1e5683e59bb7b01551d599 | afd9d19850db789fc15170f847451ea4f4bf2b89 | refs/heads/master | 2023-06-18T22:25:41.992526 | 2021-07-15T11:07:18 | 2021-07-15T11:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
class CustomUserCreationForm(UserCreationForm):
email = forms.EmailField(required=True)
class Meta:
model = User
fields = ['username', 'email', 'password1', 'password2']
| [
"saroshabdullah2013@gmail.com"
] | saroshabdullah2013@gmail.com |
fd21d5692c2978de060bef8554be85f67ab784b6 | 1c12441e8564066688443d56dac8cb8be2e9ae40 | /WiseNews.py | 01e87fc1b41f8c052331b5610a7eb575b05eed02 | [] | no_license | jayvischeng/WiseNewsCopy | 80333bb6bb40ec6ef86dd7db592a60a5b767268f | 5ba2b8aa6f58d966ec8cb1bc748e7d4b2975c661 | refs/heads/master | 2021-05-28T19:59:26.327502 | 2015-07-28T05:55:17 | 2015-07-28T05:55:17 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 13,576 | py | # #-*- encoding: Big5-HKSCS -*-
import requests
from bs4 import BeautifulSoup
import os
import re
import shutil
#import sys
##type = sys.getdefaultencoding()
##reload(sys)
##sys.setdefaultencoding('gbk')
#global base,Start, Interval, articleisinUrlList, Page, path, newfilepath,PageErrorList,TitleErrorList,IndexError... | [
"designer357@gmail.com"
] | designer357@gmail.com |
7e0763d7d153bdb193b2ca91c433979cec233eae | ad3e604a15890eac09cfe0b4e74fe256597ef6f3 | /basic_read/venv/bin/easy_install | 27458d36c72bf2c74cd235ada044227658909880 | [] | no_license | FrauBoes/iot | 02df543b5a5a8c3c27a4486912a6d59652f1ab17 | f78a0e02a54fec44d6a5f3bf4ac53f70d2a117f7 | refs/heads/master | 2020-04-15T05:41:01.634221 | 2019-01-07T13:03:05 | 2019-01-07T13:03:05 | 164,433,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | #!/Users/thelma/Dev/iot/basic_read/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"juliaboes@posteo.de"
] | juliaboes@posteo.de | |
79d0ea95708a040a0b370b8133a364f77aa32bd0 | 8c78491df7b38f23a5176eac558060fbd8131478 | /Book/chap6/Supporting Materials/quadsolnsFull.py | 27b93d35ce7e40d93dd3fa438a25de45c88eaa8e | [
"CC0-1.0"
] | permissive | phaustin/pyman | 84e26228d2cbafb90d0476a7bf0d03c0a57fad3f | ddcebfe85313c854bf71acc9daae13f2dc1c2b6f | refs/heads/master | 2021-01-17T08:46:12.817978 | 2020-02-03T16:52:48 | 2020-02-03T16:52:48 | 40,729,448 | 1 | 1 | CC0-1.0 | 2020-02-03T16:52:49 | 2015-08-14T18:09:20 | Jupyter Notebook | UTF-8 | Python | false | false | 441 | py | import numpy as np
a = float(raw_input("What is the coefficients a? "))
b = float(raw_input("What is the coefficients b? "))
c = float(raw_input("What is the coefficients c? "))
d = b*b - 4.*a*c
if d >= 0.0:
print("Solutions are real")
elif b == 0.0:
print("Solutions are imaginary")
else:
print("Solution... | [
"pine@nyu.edu"
] | pine@nyu.edu |
94ee6a4e66acd0722e90563e3119991e1303d276 | 37e17c43dda0c4e3842f1158ae586b09f4c0a072 | /src/sd_client/sd_mic.py | 0b74b17dde541e186bcc6c85b83f845238788519 | [
"MIT"
] | permissive | Ryo-Ishibashi416/SP_1802 | 3472eb5e8d75d520a65f4b10006db75ad2fde82b | 46eab9b77b0ec06fb9ef1ba5962dfd7f06889a4f | refs/heads/master | 2020-08-22T03:42:29.174257 | 2019-01-17T16:15:26 | 2019-01-17T16:15:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,465 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
### Sound Detect Client for mic ###############################################
__author__ = "Yoshihiro Kajiki <y-kajiki@ah.jp.nec.com>"
__version__ = "3.11"
__date__ = "Sep 29, 2018"
### Usage: $ python sd_mic.py deviceID ###
###... | [
"koji@M-TabataYotaro.local"
] | koji@M-TabataYotaro.local |
26040b78b0653089fc79de6e48455653ef0d8888 | 2e760c5c926a2a72107d92c1692bbb76cd987dab | /valeur_aleatoire.py | 89e0ea9b9afdac8b6f899be25be16561bfc10ab0 | [] | no_license | JPdiedhiou/git_project | d1a24dd320ca930168a29f4a379e733653541fff | 9885c5d1871e66f689d0034934d76a93a67aab60 | refs/heads/master | 2020-05-07T08:48:52.446414 | 2019-04-11T12:27:30 | 2019-04-11T12:27:30 | 180,163,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import random
nbre_alea = random.randint(0, 9)
rep_user = None
while rep_user != nbre_alea:
rep_user = int(input("Entrer une valeur entre 0 et 9 :"))
if rep_user < nbre_alea:
print("Le nombre aléatoire est plus petit")
elif rep_user > nbre_alea:
print("Le nombre aléatoire est plus pe... | [
"diedhioujp@outlook.com"
] | diedhioujp@outlook.com |
b0000f65f8955a9141b9c9455ff591324ae8ec6d | 6b183b67944b169048a930e34608925fb9abdc3e | /xicam/plugins/imagemixinplugin.py | 66f951c285c0e0940ac64a45eb590950abeb7fcb | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause-LBNL"
] | permissive | ihumphrey/Xi-cam | cef31bba712ebf6d330402b9a7cc24d3d096e2b8 | a033a97c4dac55221167d9c4e914c65e835f015a | refs/heads/master | 2022-05-12T22:10:24.970713 | 2021-05-12T22:29:08 | 2021-05-12T22:29:08 | 190,625,609 | 0 | 0 | NOASSERTION | 2019-06-06T17:52:35 | 2019-06-06T17:52:34 | null | UTF-8 | Python | false | false | 509 | py | """
Nothing useful here!
Why?
Because with the PluginType Plugin, we need to register the SnifferPlugin as an entrypoint for the manager to
collect them. In this case, the only meaningful part is the name of the entrypoint, not what it points to. Of course,
it has to point to something, so...
"""
from .plugin import Pl... | [
"ronpandolfi@gmail.com"
] | ronpandolfi@gmail.com |
bc7c9459c0f70e88e0dde36873b792973860a896 | 1a24def8879972f21d846ffb3813632070e1cf12 | /Chapter06/0602fib-func.py | 79885098128099a23319588b0f10e18295f92798 | [] | no_license | mushahiroyuki/beginning-python | 03bb78c8d3f678ce39662a44046a308c99f29916 | 4d761d165203dbbe3604173c404f70a3eb791fd8 | refs/heads/master | 2023-08-16T12:44:01.336731 | 2023-07-26T03:41:22 | 2023-07-26T03:41:22 | 238,684,870 | 5 | 4 | null | 2023-09-06T18:34:01 | 2020-02-06T12:33:26 | Python | UTF-8 | Python | false | false | 659 | py | #@@range_begin(list1) # ←この行は無視してください。本文に引用するためのものです。
#ファイル名 Chapter06/0602fib-func.py
def fibs(num):
result = [0, 1]
for i in range(num-2):
result.append(result[-2] + result[-1])
return result
#@@range_end(list1) # ←この行は無視してください。本文に引用するためのものです。
#実行
#@@range_begin(list2) # ←この行は無視してください。本文に引用するた... | [
"hmusha@gmail.com"
] | hmusha@gmail.com |
548eab73bdde0f861d5c66edaeff558f9c6362e0 | 475d1b83b77e2730b53722f0d8d11b070f97018a | /authapp/migrations/backup/0015_auto_20210226_2036.py | f7748376c6cb26aa40cc60e4db0e3f89b135edda | [
"MIT"
] | permissive | Gwellir/my-region | b651284ee4d4ec7ec892bb78a7ce3444c833d035 | baacb7f54a19c55854fd068d6e38b3048a03d13d | refs/heads/main | 2023-04-20T17:31:33.040419 | 2021-05-17T13:35:38 | 2021-05-17T13:35:38 | 336,533,029 | 0 | 1 | MIT | 2021-05-17T13:35:39 | 2021-02-06T12:31:08 | Python | UTF-8 | Python | false | false | 591 | py | # Generated by Django 3.1.6 on 2021-02-26 17:36
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('authapp', '0014_auto_20210226_2033'),
]
operations = [
migrations.AlterField(
... | [
"gwellir@gmail.com"
] | gwellir@gmail.com |
dccb5669c5b88153b3e54fa816eb2c14f67647eb | aa88548d729211428b3d5d7cfb9c3ba5881e168a | /resilient-sdk/tests/unit/test_cmds/test_dev.py | e757157a1b67107f6abd07b6898790070841f922 | [
"MIT"
] | permissive | svetterIO/resilient-python-api | 784cb83aaff353e8aa6ce0000b241a693977b5b9 | d89440ccee621cb4268ee8ebb350e47e7c9ee26b | refs/heads/master | 2023-08-31T22:15:27.588822 | 2021-10-13T13:15:12 | 2021-10-13T13:15:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,733 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2010, 2020. All Rights Reserved.
import sys
import os
import shutil
import pytest
from resilient_sdk.util import package_file_helpers as package_helpers
from resilient_sdk.util.sdk_exception import SDKException
from resilient_sdk.cmds import base_... | [
"shane.curtin@ie.ibm.com"
] | shane.curtin@ie.ibm.com |
a69f31046ca1375d93c2580b8e063ae14697a3d1 | eecfb88eea01f9dbb20c34b70f56ccfc353ffa4c | /ml-scikit-learn/data/clustering/kmeans.py | 74422a5d3b77cfd31a40b1610967300cc49f0ad2 | [] | no_license | adgon92/py-datacamp | 22fa029c0d40fae6fbad1172d1541161520be386 | 6ab03c1bd704724f3cdea672248c846e3ad09b42 | refs/heads/master | 2021-01-19T13:33:43.184300 | 2017-03-04T18:21:32 | 2017-03-04T18:21:32 | 82,398,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | from sklearn import cluster
class KMeansCluster:
_INIT = "k-means++"
_N_CLUSTERS = 10
_RANDOM_STATE = 42
def __init__(self, training_data):
self._training_data = training_data
self._clf = cluster.KMeans(
init=KMeansCluster._INIT,
n_clusters=KMeansCluster._N_CL... | [
"adgon92@gmail.com"
] | adgon92@gmail.com |
13bca8e49f1768f4c7f6c5f3376bae5edf40196f | 8c1213dec0be90a1ef3e46f767f626acb22be4b8 | /user_dashboard/user_dashboard/settings.py | f5d135773342a981d6679f868b93d7b7ea7c8d7c | [] | no_license | ccunnin8/django | 6d43de7e151f85469f31a0e5da6dc02dfd5101fd | 11f8afb0a787789a24746acf5f1bfe0f4c24e99a | refs/heads/master | 2022-12-12T11:22:04.415053 | 2018-11-13T19:31:00 | 2018-11-13T19:31:00 | 124,255,284 | 0 | 0 | null | 2022-12-08T00:45:36 | 2018-03-07T15:24:56 | Python | UTF-8 | Python | false | false | 3,174 | py | """
Django settings for user_dashboard project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impo... | [
"coreyjjc@me.com"
] | coreyjjc@me.com |
959688bf2a4078f933a1805552a814424616db66 | c5851bd83217d7d0002703659f6ecd0c930b6c9a | /graphene_demo/demo_latticeinfo.py | a35b472dbe94e5a8937ff3cfa485ac3b397e9647 | [] | no_license | schackv/graphene | bd3b53518d7a17ee8d12b09633542640ea49b1dd | 1452f71e0a39977cb02e60fb807d29fa509092d3 | refs/heads/master | 2020-05-17T15:04:44.032619 | 2014-10-17T12:43:48 | 2014-10-17T12:43:48 | 21,196,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | # -*- coding: utf-8 -*-
"""
This demo shows how to extract global lattice properties
using the spectral signature in the image.
Created on Fri Jul 25 18:49:53 2014
@author: schackv
"""
import numpy as np
from graphene import *
import matplotlib.pyplot as plt
def demo_latticeinfo():
"""Read an image, retrieve ... | [
"schackv@users.noreply.github.com"
] | schackv@users.noreply.github.com |
530471f037bc00e60919e8f72ddc975963f1b9f1 | b06e865affafcf88712462320119e5fb296a10f1 | /v7/VRP/script.py | a658b4254c12432d032e0f57ebf9513631d9d19f | [] | no_license | Kanchii/VRP-Python | fb08478fc1be97e46dcc9e78520033bc275f1cb4 | a66461487f1cd33a24e19e518a906da95b360245 | refs/heads/master | 2021-07-05T02:44:28.453805 | 2019-04-07T16:53:00 | 2019-04-07T16:53:00 | 145,447,604 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | import os
import subprocess
tamanho = [10, 9, 16, 13]
media = 0
for j in range(10):
tot = 0
for i, tam in enumerate(tamanho):
# os.system("python main.py {} {}".format(tam, i))
result = subprocess.Popen(['python', 'main.py', str(tam), str(i)], stdout = subprocess.PIPE, stderr = subprocess.STD... | [
"weisslipe@gmail.com"
] | weisslipe@gmail.com |
822896e26b43d3434fdf04b422731eea84253a0a | 1f7d41218ad07fb681d3e470f9bef8bf45b36db0 | /mmskeleton/__init__.py | 18d198de0b44c44f7be3a8398d00819d07513e18 | [] | no_license | 8secz-johndpope/temporal_inverse_kinematics | 138070473f16a42ed9f61f98a3a42f5778bd3c17 | 338367acca2bb468c54b6b08cbc9f3c4cd0f0c49 | refs/heads/master | 2022-12-04T13:51:13.117086 | 2020-08-29T13:05:55 | 2020-08-29T13:05:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from . import utils
from . import datasets, processor, models, ops, apis
from .datasets.skeleton import skeleton_process
| [
"khanh@move.ai"
] | khanh@move.ai |
9b6dd8457bbe227e389eafff6035c5c0e64fe5ab | 310c88aed28df25637f60e41a067885371d0c644 | /ttn/ttnTest1.py | 806ce419ad62420b4d78b3875cd5c1a0c609bf29 | [] | no_license | juankgp/pythonPoo2 | 1757644d2db98827d3fb49e0782435d2408d170c | eb06240f17a64666be7f1161503c0117dd3d97aa | refs/heads/master | 2022-12-30T20:43:29.020081 | 2020-10-24T03:27:15 | 2020-10-24T03:27:15 | 282,591,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | import time
import ttn
app_id = "wisnodearduino1"
access_key = "ttn-account-v2.QAT09KX6NTZPal64F1iwMQvTB5kHgQj__nP0etRhSek"
dev_id = "wisnode1"
estado = True
def uplink_callback(msg,client):
print("Uplink recibido de: ",msg.dev_id)
global estado
if msg.dev_id == "boton4200" :
print(msg)
... | [
"jukyarosinc@gmail.com"
] | jukyarosinc@gmail.com |
1856ed29d527aef3b9ef5fa008bb36e129ce55b8 | 5ccdd5cd7bc7a247e612575d8d5e809f03aaf927 | /Classification/Naive Bayes Classifier_CGPA.py | 677e396ec9551cab2cb5bb05d65fef5ad4ad99d3 | [] | no_license | vermautkarsh44/CGPA-prediction-system | 45c2e22ea2c5c2e321894edfdb691fc6da8c39b9 | 1182669014b6de031639803d66b4f87bf69a5f34 | refs/heads/main | 2023-07-26T13:44:23.519683 | 2021-09-07T18:54:14 | 2021-09-07T18:54:14 | 373,204,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,177 | py | #Naive Bayes Classification
#importing the libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#importing data set
dataset = pd.read_csv("classification data.csv")
x=dataset.iloc[:,0:12].values
y=dataset.iloc[:,12].values
#label encoder
#one hot encoder
from sklearn.preproc... | [
"noreply@github.com"
] | vermautkarsh44.noreply@github.com |
57ec71f8f366f169baa43555a895ff8842a42839 | c3a3beda6fe3a9bbd5b240477f542a46dd92823a | /functions/TH/08_keyword_args.py | c76f034292ded2cad08e665202843d5d48be93cc | [] | no_license | nfarnan/cs001X_examples | 2e64955b705c8ac9c4319becf6344d36b9560e78 | 80b612249fa97ff685f345582f184d57f94bff8e | refs/heads/master | 2020-12-11T14:06:00.890074 | 2020-04-14T19:41:02 | 2020-04-14T19:41:02 | 209,681,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | def kw_test(a=1, b=2):
print(a, b)
kw_test()
kw_test(5, 10)
kw_test(5)
kw_test(b=10)
# this will error
#kw_test(5, 10, 20)
| [
"nlf4@pitt.edu"
] | nlf4@pitt.edu |
c232565a21f5fd047d7623a39c6b072c1a8a23e5 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/HUAWEI-MUSA-MA5100-MIB.py | 4fef2a9becd67f938eaf9afaece57bb5779b3134 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 102,545 | py | #
# PySNMP MIB module HUAWEI-MUSA-MA5100-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-MUSA-MA5100-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:44:44 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
3f27f3ccb024ec56a7fe0313c0150ecfcf0d8ccb | 8818117553314078f4143eba999c42f01d2176e9 | /envv/bin/mako-render | 315fe4c0e9e1d7bc33286ecd372b8ba3358f5cc2 | [] | no_license | bolgarun/hello | ea3214373e54d2880491d90ef5aea58fb66474eb | 5378ac053c730a1634d07b0e0ecdf3c53cb41df2 | refs/heads/master | 2020-05-21T00:29:09.935650 | 2019-05-14T09:36:44 | 2019-05-14T09:36:44 | 185,827,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/home/user/Документи/Global/MYprogect/envv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from mako.cmd import cmdline
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cmdline())
| [
"bolgarun21@gmail.com"
] | bolgarun21@gmail.com | |
a5965fc467bddd784c84dadd78df68bd455047a5 | d345846f520bf43bc2e1b905bb1c141e6b0c7250 | /clone_instagram_api/users/migrations/0005_auto_20180423_1748.py | b894697754d025d6b63eebdbb89e622f66822272 | [
"MIT"
] | permissive | NaiveMonkey/Clone-Instagram-API | edff95332e12829fc7b472a26516b2e15fbad8d3 | c0f17bfb8bf3bb0107d3fcebacd00010db853c23 | refs/heads/master | 2021-09-12T04:02:16.675445 | 2021-07-15T14:21:40 | 2021-07-15T14:21:40 | 129,679,798 | 1 | 0 | MIT | 2021-09-10T18:04:47 | 2018-04-16T03:31:19 | Python | UTF-8 | Python | false | false | 704 | py | # Generated by Django 2.0.4 on 2018-04-23 08:48
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0004_user_profile_image'),
]
operations = [
migrations.AlterField(
model_name='user',
... | [
"ksmr1102@gmail.com"
] | ksmr1102@gmail.com |
b6ee81db63eef0b2dd348bc51f31789e4cf0bdfb | 1a266057362b1c69ae9c78a42dc28717cef35111 | /BTCUSDT/CK_Script1_BTCUSDT.py | 512fa6e4dfa527c951434bac388e8582665967c3 | [] | no_license | pranshurastogi/Cryptokart_Market_Making | 1eb3f806124abeecfc1704bdcdcc2d88b6886a6a | a85696072be64d3a89d4a13487459f64ff3ed4f6 | refs/heads/master | 2020-04-30T23:06:34.389889 | 2019-04-14T14:19:11 | 2019-04-14T14:19:11 | 177,136,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,359 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
#!/usr/bin/env python
# coding: utf-8
# In[1]:
# Importing required Libraries
import requests
import random
import json
import time
import sys
from binance.client import Client
from binance.enums import *
# In[2]:
#This function is provided with python-binance... | [
"pranshurastogi3196@gmail.com"
] | pranshurastogi3196@gmail.com |
a098ada26a3eadfefcb12e2b1491533b9979db93 | 49e72df481bec1501202d7411a55b765c33355ba | /luminar project/functional_programming/list_comprension.py | c1b8cb686c667cb27c47cdcc0d73f8fa7a8b1deb | [] | no_license | JEENUMINI/pythonpgmsupdated | ae6d62bc58e1d44ba81a21637335140119c76869 | 4816ec24693034af36d4b76887d34c9a499f4cc8 | refs/heads/main | 2023-01-23T13:36:28.478938 | 2020-12-15T18:18:07 | 2020-12-15T18:18:07 | 321,749,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | lst=[1,2,3,4,5,6]
#squares
squares=[i*i for i in lst]
print(squares)
square2=[i**2 for i in lst]
print(square2)
#fetch even no from list
even=[i for i in lst if i%2==0]
print(even)
#list placement question
# task=[i+1 if i>5 else i-1 for i in lst]
# print(task)
task=[i+1 if i>5 else (i-1 if i<5 else i) for i in ls... | [
"mini13.1994@gmail.com"
] | mini13.1994@gmail.com |
ec1776e8742cedfafef2050a4f6d43076bd74404 | 7b3b859dd633eb2240d987b37e487ea8388e2f8d | /core/main.py | a9b413f579a53f5bd8f1dcc138a83420fc140c2b | [] | no_license | yszhuang/assetPricing2 | 96956638f6c26e4e7d33e0abffe5c5c14460000a | 10af01a66bcd13cb516920e9cb1b46d8cfa6b598 | refs/heads/master | 2022-01-13T02:00:09.070100 | 2018-09-01T02:28:21 | 2018-09-01T02:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,113 | py | # -*-coding: utf-8 -*-
# Python 3.6
# Author:Zhang Haitao
# Email:13163385579@163.com
# TIME:2018-04-28 14:58
# NAME:assetPricing2-main.py
import os
import shutil
import time
import pandas as pd
import numpy as np
from config import WINSORIZE_LIMITS
from data.dataApi import Database, Benchmark
from tool import monito... | [
"13163385579@163.com"
] | 13163385579@163.com |
c1ca9fea4aec41dcab2df0653fc3476363d164e9 | ecf6fe6aa87b2c3f041acc30fab11b0cafe3dd46 | /architecture_py/archi_v3_9.py | 096d9099c7efed8b00206453651eecc348653e9d | [] | no_license | antgratia/Memoire_code | 73c7806c4576c2e73e00d9a84b1063a2c8f6b559 | 2cdc1339ea24896a6628238f6467edff80f98166 | refs/heads/main | 2023-06-20T16:19:07.041464 | 2021-07-13T11:53:48 | 2021-07-13T11:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,178 | py |
import numpy as np
import os
from keras import backend as K
from tensorflow import keras
from tensorflow.keras.callbacks import EarlyStopping
from tensorflow.keras.models import Sequential, Model,load_model
from tensorflow.keras.layers import Input, Add, Dense, Activation, ZeroPadding2D, BatchNormalization, Flatten, C... | [
"antoine.gratia@student.unamur.be"
] | antoine.gratia@student.unamur.be |
c18790f1c9ea9c59ebe70356fd6eafa773ba7a3f | 32ef8621468095bf9c6dd912767cb97e9863dc25 | /algorithms/kaprekar-numbers.py | d4e44e799005d22fc4109908b61ebb0ee1e5e43c | [] | no_license | Seungju182/Hackerrank | 286f1666be5797c1d318788753245696ef52decf | 264533f97bcc8dc771e4e6cbae1937df8ce6bafa | refs/heads/master | 2023-08-17T22:49:58.710410 | 2021-10-25T09:40:46 | 2021-10-25T09:40:46 | 337,652,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'kaprekarNumbers' function below.
#
# The function accepts following parameters:
# 1. INTEGER p
# 2. INTEGER q
#
def kaprekarNumbers(p, q):
# Write your code here
lst = []
for num in range(p, q+1):
squared... | [
"tonysj@snu.ac.kr"
] | tonysj@snu.ac.kr |
1dad61829d18a8e059788638d3cb20363e701722 | 436f4ae19c88212a76ef7e9c36ec4d48be558e78 | /Lab 2/dijkstra1.py | d2038a5091daa6c3d25baf3d2a9cd133ab25ecb5 | [] | no_license | kingstarfly/CZ2101 | a905026113e22823111708a71e08769554d1cce7 | 952b1975cb2d5abf0a4b1eb418e36531557c1311 | refs/heads/main | 2023-03-07T13:28:41.186333 | 2021-02-09T03:20:53 | 2021-02-09T03:20:53 | 337,280,371 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,762 | py | """
Suppose the input graphG = (V, E)is stored inanadjacency matrixand we use an arrayforthe priority queue. Implement the Dijkstra’salgorithmusing this settingand analyze its time complexity with respect to|V|and |E|both theoreticallyand empirically
"""
import math
class Graph_adj_matrix:
# Initialize the... | [
"xingxiang@twotreesgroup.com"
] | xingxiang@twotreesgroup.com |
fc931823e2e0c5dadbbef45f1c7f9f23c9c60607 | c52f407e12599b5b850b09c295b6254e07225e81 | /altair/vegalite/v4/api.py | f99f605f3c0e4110bade8d4f99c1ce45cc236e77 | [
"BSD-3-Clause"
] | permissive | chris1610/altair | 35fa090f11b39a88f9789f86bd68107924d8d84a | 9662da9f702c441c8acec4bbb9d71a22475638c2 | refs/heads/master | 2020-09-27T18:48:06.470667 | 2019-12-08T19:44:29 | 2019-12-08T19:44:29 | 226,583,447 | 3 | 1 | BSD-3-Clause | 2019-12-07T22:22:08 | 2019-12-07T22:22:07 | null | UTF-8 | Python | false | false | 84,058 | py | # -*- coding: utf-8 -*-
import warnings
import hashlib
import io
import json
import jsonschema
import pandas as pd
from .schema import core, channels, mixins, Undefined, SCHEMA_URL
from .data import data_transformers, pipe
from ... import utils, expr
from .display import renderers, VEGALITE_VERSION, VEGAEMBED_VERSI... | [
"jakevdp@google.com"
] | jakevdp@google.com |
a7a1cf9050f6f1d891dfedac7544ea04da552c41 | 502b40993cf50937c972f661bd6768ca607967b9 | /videosummarise.py | 4f16dc8c52da7ade5fbff035a0ab42aa523269f9 | [] | no_license | akshayvit/video-summarisation | 90dd2d7c93347f085e431b5201a2dd81dcc2e633 | 80658912c052f8bb852d4e802a8a283a0f13a565 | refs/heads/master | 2020-09-10T14:37:05.214918 | 2019-11-14T14:55:50 | 2019-11-14T14:55:50 | 221,722,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,490 | py | from __future__ import division
import cv2
import numpy as np
import os
import mahotas
import librosa
from math import *
import imageio
imageio.plugins.ffmpeg.download()
from moviepy.editor import *
from keras.models import model_from_json
from keras.applications.resnet50 import ResNet50
from keras.layers i... | [
"noreply@github.com"
] | akshayvit.noreply@github.com |
9ca5ac9b0309eeb6b7ae197443b0c2be0b04ea69 | 59ac1d0f09ebfb527701031f3ab2cfbfb8055f51 | /soapsales/customers/signals.py | fc93f81a6adc77f22799cb456aa27326ae4c6f21 | [] | no_license | DUMBALINYOLO/erpmanu | d4eb61b66cfa3704bd514b58580bdfec5639e3b0 | db979bafcc7481f60af467d1f48d0a81bbbfc1aa | refs/heads/master | 2023-04-28T13:07:45.593051 | 2021-05-12T09:30:23 | 2021-05-12T09:30:23 | 288,446,097 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from django.db.models.signals import pre_save, post_save
from django.dispatch import receiver
import uuid
from django.db import transaction
from customers.models import Customer
@receiver(post_save, sender=Customer)
def post_save_create_customer_number_and_customer_number(sender, instance, created, **kwargs):
if ... | [
"baridzimaximillem@gmail.com"
] | baridzimaximillem@gmail.com |
38f0b26a2112884fba6dfa40814ce6e80173777f | ccdc33e143bc074207f1b5bb124c92e7b8486ab4 | /mysite/blog/migrations/0001_initial.py | 4ab29bc210662ff2e8eef4798db99626b496be37 | [] | no_license | morenge/Djangoblog | b5d1aa22187837eaf50e20228d9586bf71bbb61f | a85fbc79053ef05ea8d1e161da1edb897144008c | refs/heads/master | 2020-05-04T10:11:54.200281 | 2019-04-09T19:15:02 | 2019-04-09T19:15:02 | 179,083,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.1.7 on 2019-04-03 15:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"michael.orenge@wc.perrillco.local"
] | michael.orenge@wc.perrillco.local |
9265c9b59e49fe1f33cc7f34c6f9a7824f93a756 | 93ee07a1e427af25dffa5964c5495e7943124dd2 | /environment/chasingEnv/multiAgentEnvWithIndividReward.py | f101ecc4d83d2b180531c775d12e7ef21a00f7ec | [] | no_license | Frostwoods/ChasingWithRopeMujocoEnv | 62cb6c19c6f8885a75d6b4f4da8bac96411f33d1 | e3cc356c687438e37ed39ea4b159607c7120e7f0 | refs/heads/main | 2023-03-09T09:35:18.493078 | 2021-02-28T12:52:03 | 2021-02-28T12:52:03 | 343,102,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py |
class RewardWolfIndividual:
def __init__(self, wolvesID, sheepsID, entitiesSizeList, isCollision, collisionReward=10):
self.wolvesID = wolvesID
self.sheepsID = sheepsID
self.entitiesSizeList = entitiesSizeList
self.isCollision = isCollision
self.collisionReward = collisionRe... | [
"frostwoods@foxmail.com"
] | frostwoods@foxmail.com |
7bde8de05c2efacea12295b8690650f7dbe05a8c | 04e15ba03e9f0075b156b27c524040884d3fdff3 | /demo_app/models.py | ddf5290e5251db3c5239e68ad0b4f96719103c0c | [] | no_license | 123abc958/demo | eb1291512fe566bb9cf760d33c544e88cd28fdf4 | 202f46c5fdb64e9fa03eb0bf1afd8ac4243f10d1 | refs/heads/master | 2023-04-12T16:58:59.445802 | 2021-05-20T09:29:22 | 2021-05-20T09:29:22 | 346,645,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | # Create your models here.
from __future__ import unicode_literals
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
class Profile(models.Model):
name = models.CharField('名前', max_length=35)
education = models.CharField('教育', max_length=35)
github=... | [
"news@all.sakura.ne.jp"
] | news@all.sakura.ne.jp |
33013989259884ab0ed306b1a8ffd64725df92f6 | 7c009d77bc0124b69abdd5bbf4d00ee00a6de881 | /process/migrations/0020_auto_20210606_1321.py | 23a2cb9944ae79b25e63e50e2bb315ad1da36180 | [] | no_license | Rajeshwari33/POProcess | 85598b3bb78c1bcc3bea583fcd106fd32eb97c99 | dde399029b01554f97988709688e14193a96cb1a | refs/heads/master | 2023-05-25T18:33:45.589819 | 2021-06-15T16:27:37 | 2021-06-15T16:27:37 | 367,557,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # Generated by Django 3.2 on 2021-06-06 07:51
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('process', '0019_mailcredentials'),
]
operations = [
migrations.AddField(
model_name='mailcredentials'... | [
"you@example.com"
] | you@example.com |
8262a9ad72ac1f8b9b92c6d3dab636e47655415c | 7e38634a9afb227ac6f18bbf3cb35cfef27f04b6 | /wiki.py | 93d64c4a05ce9dbc637c9774934214035bfa1935 | [] | no_license | AlexLisii/wiki_questions_game | 858417b6ac0b0c8c1de199ebb46f4e66d1d82a9b | f806e160148f50c49bff47257958bd69b467785c | refs/heads/master | 2020-04-04T19:27:18.677088 | 2014-07-31T23:32:36 | 2014-07-31T23:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,527 | py | #!/usr/bin/env python
import requests
import re
import argparse
import sys
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument("secret")
args = parser.parse_args()
return args
def call(url):
headers = {"Content-type": "application/json"}
response = requests.get(url, heade... | [
"aleksandr@pistoncloud.com"
] | aleksandr@pistoncloud.com |
58574ad0dad5911c3bfcbe11a05877544c674def | 3f327d2654b85b922909925b9f475315d78f4652 | /Backend/lib/python3.6/site-packages/twilio/rest/api/v2010/account/message/media.py | 17f63437924a2838c56dc60c9b02c116a651dff3 | [
"MIT"
] | permissive | brianwang1217/SelfImprovementWebApp | 8db45914027537aee9614f9d218c93cc08dc90f8 | 7892fc4ee5434307b74b14257b29a5f05a0a0dd7 | refs/heads/master | 2022-12-13T15:01:08.595735 | 2018-06-23T04:46:06 | 2018-06-23T04:46:06 | 137,548,289 | 1 | 1 | MIT | 2022-05-25T01:28:29 | 2018-06-16T02:48:52 | Python | UTF-8 | Python | false | false | 14,742 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio.base import deserialize
from twilio.base import serialize
from twilio.base import values
from twilio.base.instance_context import InstanceContext
from twilio.base.instance_resource import ... | [
"talk2shreyas@gmail.com"
] | talk2shreyas@gmail.com |
4708b963711f432dc94a1be9f0ea5c419e40ab34 | 9174535da20e9329dc2d6330f8e2ed79c2eeb39d | /predict_poetry/web_test_poem.py | 91e116d6b4ead3ef0de4a429f706876a46647946 | [
"MIT"
] | permissive | ASE-couplet/azure_server_data | 9833b91095d559c4c0076829d1e44188c9d3745f | 363c78d4fcb59226df68a11bec24df573af715f6 | refs/heads/master | 2020-04-10T05:02:55.839765 | 2018-12-07T06:46:23 | 2018-12-07T06:46:23 | 160,816,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | import argparse
import sys
import random
from plan import Planner
from predict import Seq2SeqPredictor
from match import MatchUtil
import sys
sys.path.append("/home/site/wwwroot/predict_poetry")
import tensorflow as tf
class Main_Poetry_maker:
def __init__(self):
self.planner = Planner()
self.pred... | [
"v-yufxu@microsoft.com"
] | v-yufxu@microsoft.com |
e077000339f79423ee4da9c789b77491ab87ac5f | fbe3a52d2dd02bec18f7f52b31e357aed192a308 | /misc/begin/exercises/def1.py | 4cbd865b23fdbc03446b3cc80ad9e332cc9a1e7d | [] | no_license | lherrada/python | 8fc5bd5ceb6038479fa6347dd6c0bd6e17f92e98 | d8260f35ba91b89590ef8e489188fb80ca1aed4e | refs/heads/master | 2022-10-29T06:23:17.297554 | 2022-09-24T15:45:59 | 2022-09-24T15:45:59 | 23,411,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | #!/usr/bin/python
def general(func,arg):
apply(func,(arg,))
def name(x):
print "Your name is " + x
def age(n):
print "Your age is %d" % n
print "=" * 30
datain=[(name,"Erikita"),(age,38)]
for i,j in datain:
apply(i,(j,))
for i,j in datain:
i(j)
#general(name,"Erikita")
#general(age,38)
#name("Erika")
#x=... | [
"lherrada@lucid64.hsd1.ca.comcast.net"
] | lherrada@lucid64.hsd1.ca.comcast.net |
346a1d1871be3ea9c34e4439423a76c4f242e810 | 669e9241b02bdaa303fbc2fd4023b90d4d179a59 | /Randomized Pulled String/challenge3.py | 2d68218a4951ecd60943d4a45d32bde6066f8181 | [] | no_license | benjaminpotter/HatchProjects | 0854cf46ae7c3781468116a5d63b703dd54ae68c | 7f6a948d3474c755d071751b725c059e6c7f3553 | refs/heads/master | 2022-01-28T16:58:03.449073 | 2019-08-16T13:47:30 | 2019-08-16T13:47:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | def mouseClicked():
background(0)
strokeWeight(10)
for i in range (0, width) :
r = random(0, 255)
x = random (0, width)
stroke(r, r, r, 100)
line(i, 0, x, height)
| [
"noreply@github.com"
] | benjaminpotter.noreply@github.com |
29d1ef17c3c791571dbab5483287b705b1f6dd7a | 475509f771a82603a20d6c7487d5a6c1eca64918 | /venv/bin/normalizer | e84f16f1c3d75e10d6e92bf9baf5fd3fe7e6dfa6 | [] | no_license | ulan2005/api | 83aee48b97c733b7ebc9c86bbc46c70ad65ccf05 | 18df714ae70049baa37d234c35c914afc77a0d69 | refs/heads/master | 2023-08-31T23:05:44.917648 | 2021-11-13T04:20:42 | 2021-11-13T04:20:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | #!/home/tenthent/help/api/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from charset_normalizer.cli.normalizer import cli_detect
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cli_detect())
| [
"kayratsagynbekov@gmail.com"
] | kayratsagynbekov@gmail.com | |
2d579021b7824811d1c1632aaf56eda54eeaed4b | 1d833572db4b65799c3de4ceebb09740d6306729 | /QueueServer.py | 5d4e9d3ec2fb1dc016d231d793a7174d890e864c | [] | no_license | Kishi115/Systems-Modelling-and-Simulation | 31231b77cff0398de30b3c8fc86add7a550d9ea4 | c61bd42983e1266f1eed686b1e12fc4cc42d73d7 | refs/heads/master | 2020-12-21T00:08:18.667541 | 2020-01-26T01:04:56 | 2020-01-26T01:04:56 | 236,251,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | import random
from tabulate import tabulate
# no. of arrivals
n = 100000
# column headers
interval = [random.randint(0, 10)]
arriveTime = [1]
waitTime = [0]
timeAtServe = [1]
serveTime = [random.randint(1, 5)]
departTime = [timeAtServe[0] + serveTime[0]]
queueLine = [0]
# average wait and departure ti... | [
"noreply@github.com"
] | Kishi115.noreply@github.com |
964172588b7fead7f74c44940f5fcd8122c0e7e7 | 9f3cc35432661786767492d0f90edcc937280e76 | /challenges/web_scam-generator_fixed/solv/z3solver.py | f3bba307e72d4960c7cf0771c846456a324559c3 | [] | no_license | justcatthefish/justctf-2019 | b464470317da033692b1670212dc5571adaa19fe | 3bb692a386f277912ff47567c3d93098f118543b | refs/heads/master | 2021-06-28T21:58:25.588108 | 2021-06-09T05:25:20 | 2021-06-09T05:25:20 | 240,951,074 | 41 | 8 | null | 2020-05-06T15:02:29 | 2020-02-16T19:21:26 | SystemVerilog | UTF-8 | Python | false | false | 2,621 | py | #!/usr/bin/env python2
from z3 import *
import random
import sys
def solve(info, T, N, first_char='', last_char='', hints=[]):
TT = T-1
info = map(lambda x: tuple(x), info)
# remove duplicates
info = list(dict.fromkeys(info))
# convert to integers
info = list(map(lambda x: list(map(lambda ... | [
"dominik.b.czarnota@gmail.com"
] | dominik.b.czarnota@gmail.com |
1c2e4e3b2accda8bfab8fd701fa489bb64d77a17 | 75132feadcd75b3ac76ca9eca608a59ae5b57e1d | /class_challenge.py | dd216cbaf2c977c8772334ea47665cc3ec072976 | [] | no_license | clutchmandd/Python-Projects | bcb4fb1f4f32e7c4a8062ddd94357bd6d96f7fa5 | e1ce8ce920547317b8a721e8216a1c67926f4c87 | refs/heads/main | 2023-08-19T05:44:08.129749 | 2021-10-08T16:26:20 | 2021-10-08T16:26:20 | 400,896,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | # Creating a Class using the __init__() function
class Person:
def __init__(self, fname, lname, age):
self.fname = fname
self.lname = lname
self.age = age
def myfunc(self):
print('Hello my name is ' + self.fname + ' ' + self.lname + '.')
# Creating an instance
p1 = Person('Davi... | [
"clutchmandd@gmail.com"
] | clutchmandd@gmail.com |
83f325539952c23909157086bbb01b3725047fbd | d60f13e52d385fd7f839ee441d8df05b34f8c75b | /wirecell/test/__main__.py | ebc11006d8d4b16dfbd3ebe5983fdcf478ad5421 | [] | no_license | wenqiang-gu/wire-cell-python | 07fe7ac420fedf747e97ba424052e85222316234 | 981541f5618b94d55ee5f07c6eeff6fbbfa5fa93 | refs/heads/master | 2022-10-02T08:51:27.193403 | 2022-07-29T16:23:42 | 2022-07-29T16:23:42 | 228,528,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | import math
import click
from wirecell.util import ario, plottools
@click.group("test")
@click.pass_context
def cli(ctx):
'''
Wire Cell Test Commands
'''
@cli.command("plot")
@click.option("-n", "--name", default="noise",
help="The test name")
@click.argument("datafile")
@click.argument("ou... | [
"brett.viren@gmail.com"
] | brett.viren@gmail.com |
cc9883e5b55518c5f51112fba077922ad9c5be72 | f7600adc88cb08c2fdb067dcdd42f6916aa89a66 | /src/Copy of GraphColoringSimulation.py | 9403eb756ba3a3f834eea25e664382443779532a | [] | no_license | ofraam/GraphColoringMIPs | 0b1003e9d34ffc937cb8d426206a64d4c3275efe | 048ca01d66f1b1d4e7e9e2213764f98f81c806f7 | refs/heads/master | 2021-01-22T01:04:59.570512 | 2015-08-28T21:35:14 | 2015-08-28T21:35:14 | 37,035,554 | 0 | 1 | null | 2015-08-23T16:19:14 | 2015-06-07T23:01:56 | Python | UTF-8 | Python | false | false | 19,550 | py | '''
Created on Jun 7, 2015
@author: Ofra
'''
import networkx as nx
import math
import numpy as np
import random
from GraphProblem import GraphProblem
from Agent import Agent
import copy
from MIP import Mip
from Utils import Action
from Utils import Result
from Utils import Session
import csv
import Baselines
from Base... | [
"oamir@seas.harvard.edu"
] | oamir@seas.harvard.edu |
850ade5eeed22d497b51edf7a8f5ccd3b3049007 | 61efd764ae4586b6b2ee5e6e2c255079e2b01cfc | /azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/metric_specification.py | a86668fcff8d8d4acf56738739afb3ab74282378 | [
"MIT"
] | permissive | AutorestCI/azure-sdk-for-python | a3642f53b5bf79d1dbb77851ec56f4cc0c5b3b61 | 60b0726619ce9d7baca41f6cd38f741d74c4e54a | refs/heads/master | 2021-01-21T02:23:59.207091 | 2018-01-31T21:31:27 | 2018-01-31T21:31:27 | 55,251,306 | 4 | 3 | null | 2017-11-13T17:57:46 | 2016-04-01T17:48:48 | Python | UTF-8 | Python | false | false | 4,163 | 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 ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
51c1cc328778505cc2c071d613fd39395a4d764e | 137e32a95f52169a38fb952ba245faa13040e46c | /mmrx/settings.py | 9f495b2e723c135d1fe5ffeb1fffa234ffcddfeb | [
"Apache-2.0"
] | permissive | zszwoaini/ygsc | d5d242bdc0638bdb2f4d3b71df68bc2c40b34888 | 9edff2b7ebc2d56879de1ab2c7cabbe4744940f2 | refs/heads/master | 2020-04-25T04:43:16.044920 | 2019-02-25T15:40:59 | 2019-02-25T15:40:59 | 172,520,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,680 | py | """
Django settings for mmrx project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
#... | [
"1181233464@qq.com"
] | 1181233464@qq.com |
0a030625e9544345a435aa71ebe26d2aeb90f1b0 | 72013fb45d20d03dc21c743d76724c12386cc88b | /tests/funfhmmer_test.py | 98fb677b43d8243fb2d8f51c9a2fc01d0c082ecd | [
"MIT"
] | permissive | shouldsee/cathpy | beefe7319f6272b73d281b39ec049d0a1231fc0e | 5f7fa1322434b2d254f0158c5840f029b12dbafe | refs/heads/master | 2021-03-14T06:03:14.119801 | 2020-01-10T21:39:33 | 2020-01-10T21:39:33 | 246,743,752 | 0 | 0 | NOASSERTION | 2020-03-12T04:31:08 | 2020-03-12T04:31:07 | null | UTF-8 | Python | false | false | 2,120 | py | import glob
import logging
import os
import re
import tempfile
from .testutils import TestBase, log_title, log_level
from cathpy.core.funfhmmer import Client, ResultResponse
import cathpy.core.error as err
LOG = logging.getLogger(__name__)
class TestFunfhmmer(TestBase):
def setUp(self):
self.test_data... | [
"ian@sillit.com"
] | ian@sillit.com |
97f518ba5b43b776aa98dea4596d5b0c2fa1cd7b | d530a37faefd35996e9236369c9f473eec029a42 | /server.py | c78ca1d5e5fbb51e913ff33482075b9bf7877463 | [] | no_license | lildwagz/file-tranfer-server | 99ad00f332919fe8fb79275be2736215786b1130 | cf84b6534e1a52e7cbc1a2f4bc2d3a18714f7397 | refs/heads/master | 2020-09-28T02:57:54.229445 | 2019-12-08T22:49:44 | 2019-12-08T22:49:44 | 226,672,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py |
import socket
import threading
import os
def menerima(name, socket):
filename = socket.recv(1024)
if os.path.isfile(filename):
socket.send("EXISTS " + str(os.path.getsize(filename)))
userResponse = socket.recv(1024)
if userResponse[:2] == 'OK':
with open(filename, 'rb') as ... | [
"zamshit123@gmail.com"
] | zamshit123@gmail.com |
829785859dab7cbc2a6d79cf70e8791449e36fd6 | de89ae9de27c88aa2fca96985febb7e4ae6ec702 | /lenstronomy/ImSim/Numerics/convolution.py | b28cdd7c11b8104b63f238a2f5552208c241c8d8 | [
"MIT"
] | permissive | Jasonpoh/lenstronomy_sims | 0a7f9a116f6103f128a46d28be43ac8283cf111d | 10715966f2d15018fb4e1bcfe934ffa2c36a3073 | refs/heads/master | 2020-05-25T16:55:12.772873 | 2019-05-21T21:29:57 | 2019-05-21T21:29:57 | 187,897,527 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,904 | py | import scipy.signal as signal
import scipy.ndimage as ndimage
import numpy as np
import lenstronomy.Util.kernel_util as kernel_util
import lenstronomy.Util.util as util
import lenstronomy.Util.image_util as image_util
class PixelKernelConvolution(object):
"""
class to compute convolutions for a given pixeliz... | [
"jasonpoh@uchicago.edu"
] | jasonpoh@uchicago.edu |
c9ce85723629a707758ea22deedc74f0c563ea12 | 4b89a7de426fb53b999b5f3834404215a90817df | /pyobjc-framework-GameCenter/setup.py | 21ba4c119f399fb8e08f6ccbc52b420a124e686f | [] | no_license | peeyush-tm/pyobjc | a1f3ec167482566ddc7c895cfa2aca436109cf66 | da488946f6cc67a83dcc26c04484ca4f10fabc82 | refs/heads/master | 2021-01-20T19:26:06.015044 | 2016-05-22T14:53:37 | 2016-05-22T14:53:37 | 60,502,688 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | '''
Wrappers for the "GameCenter" framework on MacOS X. The Address Book is
a centralized database for contact and other information for people. Appliations
that make use of the GameCenter framework all use the same database.
These wrappers don't include documentation, please check Apple's documention
for information ... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
53092dfd2bd0fa00448c9e96ce8c9b25bf3e34ce | 70fec09ceb625608d561937955c285c0c39f6d95 | /examples/basic_examples/http_middleware_service.py | c93260f707026e51e7be79c6dc733285377333fb | [
"MIT"
] | permissive | kalaspuff/tomodachi | b285e2c73696d14e3c84a479745e00824fba7190 | deca849ec2b4cdc3d27f06e9ce0056fac0146a1a | refs/heads/master | 2023-08-31T00:32:12.042486 | 2023-08-21T13:02:24 | 2023-08-21T13:02:24 | 62,165,703 | 191 | 28 | MIT | 2023-09-11T23:32:51 | 2016-06-28T18:43:51 | Python | UTF-8 | Python | false | false | 1,707 | py | import asyncio
from typing import Any, Callable, Dict
from aiohttp import web
import tomodachi
from tomodachi import Options, http, http_error
async def middleware_function(
func: Callable, service: Any, request: web.Request, context: Dict, *args: Any, **kwargs: Any
) -> Any:
# Functionality before function... | [
"hello@carloscar.com"
] | hello@carloscar.com |
dadb22dab974adbfc9735fd7fa2a6b6efea0df0a | 80fcb4e9c0981007eb6d4ea92a39e194ef38980f | /Proiect/proiect/rents/migrations/0003_auto_20190607_0432.py | e6d07618e1375592690ae0463c27ce944daedf53 | [] | no_license | sd-2019-30238/final-project-ppvmarius | 17b761ee97dfe40f1ff00b6e1c2cdf034fba772e | df7e59cb785884eb64335a5590f3dba13c1e97ad | refs/heads/master | 2020-04-30T21:11:39.848969 | 2019-06-07T01:43:42 | 2019-06-07T01:43:42 | 177,088,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-07 01:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rents', '0002_auto_20190607_0414'),
]
operations = [
migrations.AddField(
... | [
"mpopovici@clj.bitdefender.biz"
] | mpopovici@clj.bitdefender.biz |
ed90a8b72de29d7b10b3c172b2e9a82442d7c296 | 7b1d3d0fdc5a35680069dec7575f07b28eca27ae | /pandas/io/parsers/c_parser_wrapper.py | a6647df94796149459edf0e6284eefd221393832 | [
"BSD-3-Clause"
] | permissive | KalyanGokhale/pandas | 0efa05525f153c8bbd7c199d9b247306bea9f1d9 | 829444a28573399ecaeeefe7255df3a95b285b86 | refs/heads/master | 2023-05-01T14:04:09.950849 | 2023-04-24T18:49:47 | 2023-04-24T18:49:47 | 132,631,477 | 0 | 0 | BSD-3-Clause | 2018-10-01T17:09:07 | 2018-05-08T15:48:58 | Python | UTF-8 | Python | false | false | 14,578 | py | from __future__ import annotations
from collections import defaultdict
from typing import (
TYPE_CHECKING,
Hashable,
Mapping,
Sequence,
)
import warnings
import numpy as np
from pandas._libs import (
lib,
parsers,
)
from pandas.compat._optional import import_optional_dependency
from pandas.er... | [
"noreply@github.com"
] | KalyanGokhale.noreply@github.com |
350895baad189850e4420355ab20e78d81a348c4 | ece47a6f01011a0eb4dddea49146b8bb726aec1c | /pikarpc/__init__.py | 90436be38b5b4fb652fd5f602fb4137f8511ace6 | [
"MIT"
] | permissive | valfrom/python_pika_rpc | 87b6877110e95936affe4a481eb61756287cf0f0 | 6de04e4bd47cf2322d8d28938586608a32420fe4 | refs/heads/main | 2023-08-31T11:14:40.750418 | 2021-09-29T13:54:48 | 2021-09-29T13:54:48 | 408,753,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | from .rpc_server import RpcServer
from .rpc_client import RpcClient
| [
"valfrom@gmail.com"
] | valfrom@gmail.com |
1093db221b2448f0e403511989449cc47907e737 | ea6edbfcba1b8d0a892c666575fc7374e3b96229 | /SimpleGUICS2Pygame/simplegui_lib_draw.py | 7f3a35b889de93c9694f52ee1fa425c3abf33a98 | [] | no_license | guohengkai/hw-poc | 2a5ae9e244d675f15275210ccaf2a87d5e1d570c | 4cc2e530f77a96850811df4cc3a79b52b3c6b48f | refs/heads/master | 2021-01-10T10:57:36.293431 | 2016-01-18T13:30:39 | 2016-01-18T13:30:39 | 49,801,389 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,215 | py | # -*- coding: latin-1 -*-
"""
simplegui_lib_draw (November 8, 2013)
Draw functions to help
in SimpleGUI of CodeSkulptor.
Piece of SimpleGUICS2Pygame.
https://bitbucket.org/OPiMedia/simpleguics2pygame
GPLv3 --- Copyright (C) 2013 Olivier Pirson
http://www.opimedia.be/
"""
#
# Functions
############
def draw_rect(c... | [
"guohengkaighk@gmail.com"
] | guohengkaighk@gmail.com |
0275ec02c5108085fde4a67dcf25fbc8dba2da0b | 40babe7363262beb13d1543ed41dab005b222e71 | /radflix/serializers.py | c667898e58e34d09fbd24be8389685b61369eee0 | [] | no_license | Jouskar/Django-Backend | bca166c087beb0b7e7662176439aee8bba36490a | bc511be07ba91459079e297c53a16e15c5b8ca31 | refs/heads/master | 2023-01-06T06:23:50.119400 | 2020-11-09T09:43:27 | 2020-11-09T09:43:27 | 311,287,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from rest_framework import serializers
from radflix.models import Movie
class MovieSerializer(serializers.ModelSerializer):
class Meta:
model = Movie
fields = ('id',
'show_id',
'type',
'title',
'director',
'c... | [
"61375991+Jouskar@users.noreply.github.com"
] | 61375991+Jouskar@users.noreply.github.com |
3c5efb127360c2ff705a7b4a8c22f76405d13e77 | 4331e72a851f85ca1a31196d2a6be339ed952330 | /user/models.py | 66a8b86de99049404ac961129a51e3f3f0438eee | [] | no_license | Manas377/Exam | 5b413e882c6b264675e1b2df40b517da28c9333e | d4e6b5f8661fdf5b1f8d74364cc54cd75df67283 | refs/heads/master | 2022-10-19T10:57:25.996434 | 2020-06-07T12:19:25 | 2020-06-07T12:19:25 | 270,294,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | from django.db import models
from exam.models import TestSet
from django.contrib.auth.models import AbstractUser
from django.db import models
class User(AbstractUser):
is_student = models.BooleanField(default=False)
is_teacher = models.BooleanField(default=False)
class Student(models.Model):
user = mo... | [
"manas.kundu@hotmail.com"
] | manas.kundu@hotmail.com |
d0d32277bf62cb02c65d4a9c171f22a7d3004832 | 250e7bf41bf700d58a17aa73dc955ca94f4c5e6a | /data/shapes.py | fbc1e89ac27323e073595f1b51a3daa92d2581d0 | [] | no_license | darrickyee/as5util | 0878526100ba99a8d9469d0377ebefcbe0b80905 | 990a56599400c4060d08781b84e4656befa88a01 | refs/heads/master | 2020-04-23T05:42:37.522224 | 2019-09-09T23:57:18 | 2019-09-09T23:57:18 | 170,948,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py |
CTRL_SHAPES = {
'ik': {
'point': [[0.0, 1.0, 1.0],
[0.0, 1.0, -1.0],
[0.0, -1.0, -1.0],
[0.0, -1.0, 1.0],
[0.0, 1.0, 1.0]],
'degree': 1},
'fk': {
'point': [[0.0, 0.7836, -0.7836],
[0.0, 1.1082, -0... | [
"darrickyee@users.noreply.github.com"
] | darrickyee@users.noreply.github.com |
625a77678dafad3f72ea2f4629bed9b901e7f7cd | 2919484ba494fdb9ce60005392286d293d98c325 | /deep_autoviml/models/big_deep.py | 14b1e0dc911254d0e247500c32d6d37fae9f5323 | [
"Apache-2.0"
] | permissive | Arunava98/deep_autoviml | d6c8d7bb701967d671eae6a8329018e32589d09d | 9902bb230f90d9da367445656fcefad2e2d5aea3 | refs/heads/master | 2023-07-20T03:31:38.705198 | 2021-08-26T14:19:38 | 2021-08-26T14:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | ############################################################################################
#Copyright 2021 Google LLC
#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
#
# https://www.a... | [
"rsesha2001@yahoo.com"
] | rsesha2001@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.