blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
870e8b785f33924cc5c5a2cc48d349e22e6060a0 | f88e65488ecd08ea0da5372dc49efe6c5439a13c | /raspberry/GXclassify/ApiGateway-python-sdk-2.0.4/backend_signature.py | e5f06250490d24489159bef45ac31419f72367eb | [] | no_license | Emoic/Garbage-classification | 2eb5f9755ec505d3d9bf8d8536d5e4f62b504f76 | 9de75fd2dd36f917a6e822f7d5f8af8684a84b37 | refs/heads/main | 2023-03-26T12:18:45.541396 | 2021-03-24T07:58:56 | 2021-03-24T07:58:56 | 350,977,722 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,974 | py | from flask import Flask
from flask import request
from functools import wraps
import re
from datetime import datetime
from datetime import timedelta
from apig_sdk import signer
app = Flask(__name__)
def requires_apigateway_signature():
def wrapper(f):
secrets = {
"signature_key1": "signature... | [
"noreply@github.com"
] | Emoic.noreply@github.com |
796fde6069383ef7c30b2222a559bbe8bc28b294 | ab09c04f237cb83d581f7b50b6ff2ab1688497c9 | /myROI_tracker.py | 133cec9dea02daea9126f4792a46c79ddd40eb1e | [] | no_license | minaf/HW1-assignment4 | db283f32b63f40f374e5f8410c4b9edffc70409b | 30405ab081a2699ac4150a0bc99d3e501343f7dc | refs/heads/master | 2020-03-06T20:20:52.513557 | 2018-03-28T06:25:50 | 2018-03-28T06:25:50 | 127,050,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | import numpy as np
import cv2
from calculateKLT import calculateKLT
#cap = cv2.VideoCapture(0) #for tracking object from webcam
cap = cv2.VideoCapture('sailing_boat.mp4')
# Create some random colors
color = np.random.randint(0,255,(100,3))
# Take first frame and find corners in it
ret, old_frame = cap.read()
old_gr... | [
"minaferizbegovic@gmail.com"
] | minaferizbegovic@gmail.com |
f3eb20c56fcb02809c305f06878aaed2f5362d30 | bb81c12c2d391a8d18073d8fef055a9893655e60 | /funcif/exercise3.24.py | 239c40b7f8a7d21937116e142cb7b0e77a932671 | [] | no_license | georgkuenze/ScientificComputingPython | 77dc06a55e2daecb64c6d6a37d1235661993bbed | 89b475578753660d48d868e37fa063076a176c1d | refs/heads/master | 2021-01-10T11:19:55.508164 | 2016-02-03T23:48:12 | 2016-02-03T23:48:12 | 51,037,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 08 09:18:01 2015
@author: Georg
"""
import numpy as np
import matplotlib.pyplot as plt
# Define smoothed heaviside function
def H_eps(x, eps):
if x < -eps:
return 0
elif -eps <= x <= eps:
return 0.5 + x/(2.*eps) + 1/(2*np.pi)*np.sin((np.pi*x)/eps... | [
"georg.kuenze@vanderbilt.edu"
] | georg.kuenze@vanderbilt.edu |
30e9581244610151a0102ea2e8a41a7a363dc6cc | f4d2d1bb66ce2f371c734ab8a65f6257778fd68c | /Book/chap12.py | cc6f4de3925397eed282ceaa64e43e81d11690bb | [] | no_license | jdiodati20/hangman | 0f849cb6cfe6261ee310a0dc5cf14d4da3fc1ac0 | 60dfecf5b2719d4c06686639cdc44104a1f50ba5 | refs/heads/master | 2020-04-28T19:28:31.842677 | 2019-03-13T23:26:43 | 2019-03-13T23:26:43 | 175,512,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | import math
class apple:
def __init__(self, color, size, shape, weight):
self.c = color
self.s = size
self.sh = shape
self.w = weight
class circle:
def __init__(self, radius):
self.r = radius
def area(self):
return math.pi * self.r * self.r
class triangle:
... | [
"jacksonpdiodati@Jacksons-MacBook-Pro.local"
] | jacksonpdiodati@Jacksons-MacBook-Pro.local |
ad5d88daef36ed25257d10be732b9c0e3104e120 | f46231564d2c4cdb44774935316a204f617731e4 | /Week3/day1/single_riffle_shuffle.py | 53e81704ae22e9fe83edc24d2dff2ea1df5c7449 | [] | no_license | shravan090/competitiveprograming | a99983e4351f19afbcfcec2d4f2dc5ae5138fdee | 21cc064ba44b73cef7838f901bc47db743470f66 | refs/heads/master | 2020-03-21T15:49:26.402912 | 2018-07-21T09:32:31 | 2018-07-21T09:32:31 | 138,735,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | import unittest
def is_single_riffle(half1, half2, shuffled_deck):
# Check if the shuffled deck is a single riffle of the halves
h1 = 0
h2 = 0
for card in shuffled_deck:
if h1 < len(half1) and card == half1[h1]:
h1 += 1
elif h2 < len(half2) and card == half2[h2]... | [
"noreply@github.com"
] | shravan090.noreply@github.com |
a2f63a96b80b0d24c88cb051e4b93ed7a5134671 | 2dcf0d5cc921745bd34610162e540632066dd919 | /library/framesize.py | 200b812e69468c2e02fe0fd9dd27b4a7a38d54b7 | [] | no_license | ms412/pyIxia | 0aac92cfe2239853e5e815db23816252b1eb6997 | 17913d810e859fb776882f203bea4135aec72b36 | refs/heads/master | 2021-06-25T14:53:45.102058 | 2017-09-11T15:09:06 | 2017-09-11T15:09:06 | 103,150,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,825 | py |
import time
from library.ixiaIf import TclClient
from tools.logger import Logger
class Framesize(object):
def __init__(self, *args):
self._api = TclClient()
self._log = Logger()
self._portlist=[]
self._tclportlist =''
for item in args:
self._portlist.append([s... | [
"m.schiesser@gmail.com"
] | m.schiesser@gmail.com |
b709bf38b7de50baf8f706feed37e75970d6808f | e090c02718e8df08579dd97929dc23f54d9009c3 | /sample6.py | 86148ae5781bdb308a9bfc85095aaac254f7b15b | [] | no_license | devapandu/Python | 1c23d84c72eacefc98f77daa46db7586286df706 | 6f753d6cdff5021943a99dd55ae4b8297111d104 | refs/heads/master | 2020-06-13T09:37:20.815726 | 2019-07-04T05:24:41 | 2019-07-04T05:24:41 | 194,615,780 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | year =int(input())
if year%4 ==0 and year%100!=0:
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | devapandu.noreply@github.com |
d5a12a01f55e04a1cee8ab7374e30fd2d4ec25df | 7f9961edb9113250a7890c6a174fca39d6eeafa6 | /read_xls.py | f5ca1becbc37773ee6396a230395f176e5694348 | [] | no_license | memgoon/shelf_map_test | 523179ff2c806884857bdb41bb47757e95061b11 | 51a9b44cf9d84288b75fa73f71ec7c76a165a15c | refs/heads/master | 2021-01-23T20:38:46.906833 | 2015-11-21T07:40:01 | 2015-11-21T07:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | import xlrd
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'shelf_map.settings')
import django
django.setup()
import shelf_map.models
from django.core.exceptions import ValidationError
def main():
workbook = xlrd.open_workbook('static/1자료실.xlsx')
workbook_index = workbook.sheet_by_index(0)
for... | [
"darkdakku@gmail.com"
] | darkdakku@gmail.com |
f140ce1797948b2c124c84af0dac0f6967d36be2 | 8d5523b62fe7459afec54c56614d1baf7815fff7 | /main.py | a515bb4b99a5e88c241e3c62321ef01a4b642748 | [] | no_license | heavyii/python-httpserver | 520c062d98223fdfa0d1aa820e60b5c250d78e51 | 3b0c05d55462188d7ca4389210e28247657ce1b6 | refs/heads/main | 2023-04-13T03:54:30.858675 | 2021-04-07T08:09:26 | 2021-04-07T08:09:26 | 355,463,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | #!/usr/bin/env python
from bottle import get, post, request, run, static_file, redirect
import json
"""
@apiDefine jsonRequest
@apiHeader {String} Content-Type=application/json
"""
## 首页
@get('/')
def index():
redirect('/static/index.html')
## 静态文件
@get('/static/<filepath:path>')
def server_static(filepath):
... | [
"linruisheng@seeklane.com"
] | linruisheng@seeklane.com |
fbb1e388256a6d52fa2526a9bb88fff6647c0df9 | e2b5849d011596687672d41b2446df2c6c65ee79 | /ex049.py | a8dd4c42f7da9ab8c9de77489c9fe88f68cef447 | [] | no_license | maroberto/CursoPython | ebdbe4b98f6246bdaafc7874ec06acf92a3887f6 | e79af46242cb46d1189f882b0835cb9140099c4e | refs/heads/master | 2023-03-28T08:14:18.878202 | 2021-04-04T16:26:34 | 2021-04-04T16:26:34 | 330,283,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | print(20 * '__')
numero = int(input('Digite um número: '))
for i in range(1, 31):
resultado = (numero * i)
print('{} x {} = {}'.format(numero, i, resultado))
| [
"63175966+maroberto@users.noreply.github.com"
] | 63175966+maroberto@users.noreply.github.com |
7ee2ac071830c965bed30bdaaa123fe1578c40b9 | d69bbe98028d75aa14892d1f74c7bb7fa6ed572a | /D3SManager.py | 8bb9c06de5abc3319130f5ec87c5d233d5e2a75e | [] | no_license | dvi31/PyDxS | 0df055094b9c4f58f94ed9595b5b03241c265b5a | 2cd4fb13d10dbc65c40c8ed8270dc1de71ff909b | refs/heads/master | 2020-07-06T01:43:54.788171 | 2015-08-21T09:32:07 | 2015-08-21T09:32:07 | 40,010,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | #!/usr/bin/python2.7
import base64, uuid, hashlib, time, os
import logging
import D3SCaller
from suds.client import Client
from suds.sax.attribute import Attribute
from httpslib import HTTPSClientCertTransport
import urlparse, urllib
from suds.plugin import MessagePlugin
class D3SSecretManager():
def __init__(sel... | [
"i2165aq@FP216530.intra.bdf.local"
] | i2165aq@FP216530.intra.bdf.local |
921643a8d9159a227ee264036f1b48ce70509743 | c295b7f65e424822c3909634e34ce97c64932a8e | /bab 2/server_udp.py | d691a69a64fc39f45922d460bc1b0e99c11eb95e | [] | no_license | imamsantosa/Jaringan_Komputer | e67345c0d6ce012694296ba74cf49ab5fccbccd8 | 8b60176710aafaacca93a0defde8c7c03d71b233 | refs/heads/master | 2021-01-10T09:42:41.244174 | 2016-03-14T17:46:56 | 2016-03-14T17:46:56 | 53,878,301 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from socket import *
serverPort = 12000
serverSocket = socket(AF_INET, SOCK_DGRAM)
serverSocket.bind(('', serverPort))
print "The server is ready to receive"
while 1:
message, clientAddress = serverSocket.recvfrom(2048)
modifiedMessage = message.upper()
serverSocket.sendto(modifiedMessage, clientAddress) | [
"imamsantosa123@gmail.com"
] | imamsantosa123@gmail.com |
9f1d77e5153cf7759b3748a02218bb0dd1d3d019 | 7ac0ad55050bcc0d583a6a2b11be999ae7577c50 | /project04/wsgi.py | d440f640cb6c5b3b56380d7127c540a810912041 | [] | no_license | baeseonghyeon/django-blog_project | 0285935a80052799807670974722b2ba2d736b45 | a5f89dbc23ead8f0296be05aadeb0943f7d44a86 | refs/heads/master | 2022-11-26T12:39:03.527254 | 2020-08-13T19:48:26 | 2020-08-13T19:48:26 | 170,460,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for project04 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"tjdgusdkf@gmail.com"
] | tjdgusdkf@gmail.com |
cd9815be7c9cc8ccdc4c8d46f182389f7124895a | 0f6581b105ea7eb4b99dbff131378340a634e7ac | /pages/select_mall_page.py | a47f0ce03ea8ce69435593430a96ed74a92a928e | [] | no_license | langdawang678/Se2PO | ded5e9f97a329f39a6de8ffaebe92330eb598eff | 96d7eb6b4e1774b06b2fd9a4781f9bee7d8f5ed6 | refs/heads/master | 2023-03-25T10:44:23.140843 | 2021-03-23T09:41:39 | 2021-03-23T09:41:39 | 346,628,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from locations.goods_lib_locations import GoodsLibLocations
from common.base_page import BasePage
class SelectMallPage(BasePage):
# 退出元素是否存在
def get_elements_exists(self):
try:
... | [
"langdawang678@sina.com"
] | langdawang678@sina.com |
0b102b1d7919e1f87af000bac931cac71bb3410f | 9554fddc76cfe7d95101ffe8e7ac16b7b090743e | /forms.py | 2e954138dc88f4390310183beceabac3d7c8646d | [] | no_license | levicolquitt97/STQA-assignment-2 | 88712fc345317e66e24fba471054596c751fb7ef | 2d7b92957894d3ddda77b7dc0fec0e0501306dd8 | refs/heads/master | 2021-04-24T03:35:55.228329 | 2020-04-04T19:29:25 | 2020-04-04T19:29:25 | 250,069,623 | 0 | 0 | null | 2020-04-04T19:29:26 | 2020-03-25T19:16:44 | Python | UTF-8 | Python | false | false | 1,476 | py | # LEVI COLQUITT
# Assignment 3+4 STQA
# 3/15/2020
#FORMS.py
#This .py file creates the forms and grabs the user input. then it passes that to the main.py file for further use
from flask_wtf import FlaskForm
from wtforms import StringField, IntegerField, DecimalField, SubmitField
from wtforms.validators impor... | [
"noreply@github.com"
] | levicolquitt97.noreply@github.com |
07f603f42438f4bf7d83e60cfb810b8fe1dcd1f5 | d3442664e61329eb7f78ec93c3c2f77344e48941 | /assignment_3/q1/q1.py | 63c8d4dc4d69aa4c176a41c75a63bc33135e6c44 | [] | no_license | pranav-sankhe/EE679-Speech-Processing | 6b748a283eb5f634941741e4068ecaf572812b7a | 1d9434006551c024f6846db42243c4a161b8672b | refs/heads/master | 2022-01-25T03:58:33.081064 | 2019-08-26T15:03:27 | 2019-08-26T15:03:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | from scipy import signal
import numpy as np
import matplotlib.pyplot as plt
from scipy.io import wavfile
import params
F0 = params.F0
sounds = params.sounds
a_den = params.a_den
n_den = params.n_den
i_den = params.i_den
s_den = params.s_den
den = [a_den, n_den, i_den, s_den]
a_num = params.a_num
n_num = params.n_num... | [
"pranavsankhe40@gmail.com"
] | pranavsankhe40@gmail.com |
3436db72180129f031c11512a0200f9269428f46 | eaafd553be05babfb061737d0216fac86cfe6d12 | /triangePascal.py | 1b1af83096f09db5733cff66772c1f25ade1410e | [] | no_license | margauxln/kata | ee2a9311a937a9626a559462fa5d8f08381c3fb0 | a8a47dbb4d89d854f20790715ab680a0fdaaf189 | refs/heads/master | 2023-02-07T17:09:19.167942 | 2021-01-04T14:05:56 | 2021-01-04T14:05:56 | 326,702,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | lineNumber=10
triangle = []
for j in range(lineNumber):
newline=[]
for i in range(len(triangle)+1) :
if i == 0 or i == len(triangle):
newline.append(1)
else:
newline.append(triangle[len(triangle)-1][i-1]+triangle[len(triangle)-1][i])
triangle.append(newline)
for lin... | [
"margaux.lennebonety@gmail.com"
] | margaux.lennebonety@gmail.com |
1cca891eba9b94cc67116cdbe896d24da3809e90 | d67a5cc21cd8a22a707a46621a1f5bcaa89baff1 | /imports.py | 31c9bb3e888db5c254bf7a846aad80e5637cc11c | [] | no_license | Evotushon/Evotushon-s-Guardian-Bot | c9891ce32538d6bab3013d37902d1ccc3a1844a7 | 9973690fee777c44fbcedc62def619fc2309e9d3 | refs/heads/master | 2023-08-19T14:55:00.874019 | 2021-10-20T14:45:17 | 2021-10-20T14:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | import discord
import os
import dotenv
from dotenv import load_dotenv
from discord import embeds
from discord.ext import commands
import random
from discord.player import FFmpegPCMAudio
import asyncio
import time
import traceback
import sys
import discord
from discord.ext.commands import Bot
from discord.enums import S... | [
"danielspa2019@gmail.com"
] | danielspa2019@gmail.com |
0223df23506f1891097b5f5e23917c56f25fef27 | 536204654bec325282191eede91def85cf8f9ecf | /tuia/exceptions.py | ed7f2543d365f392c6d2f560876676844e4cf0d8 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kiddfz/QTAF | 0b5450f47c09f453096a139993ada1383e5c7002 | 8bb4367b3c3e43ac3499daa56f825eea0a279054 | refs/heads/master | 2021-04-06T05:25:10.993145 | 2017-11-15T05:19:59 | 2017-11-15T05:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making QTA available.
# Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the BSD 3-Clause License (the "License"); you may not use this
# file except in compliance with the License. Yo... | [
"eeelin@tencent.com"
] | eeelin@tencent.com |
eccf91200ca22006ec27e2a110af49ed35f9e3e8 | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/python/kernel_tests/linalg/linear_operator_zeros_test.py | 8ca4e0f796ff15070fe471e1bafd0e2de2eef998 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | Python | false | false | 8,721 | py | # Copyright 2018 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 |
2ebebca7e2e70361c06ad04d94f701dab5a3c6d3 | a753d3bd70c4686da5bb886d6652b889ae9d2d0d | /test14.py | 8a8f97c9fa4cd21075dd4b1194269ea8192c643b | [] | no_license | sxttxkxnm/python | 319ac8b11470976aaa14c03916ad8e3194d375e2 | 673dfc94e5c88307b179b9f35b93441fef305be6 | refs/heads/master | 2023-06-19T10:57:37.420321 | 2021-07-19T13:38:10 | 2021-07-19T13:38:10 | 336,190,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | import os
choice = 0
filename = ''
def menu():
global choice
print('Menu\n1.Open Calculator\n2.Open Notepad\n3.Exit')
choice = input('Select Menu : ')
def opennotepad():
filename= 'C:\\Windows\\SysWOW64\\notepad.exe'
print('Memoradum writing %s'%filename)
os.system(filename)
def opencalculato... | [
"poom_1004@outlook.co.th"
] | poom_1004@outlook.co.th |
f2462d67b16186954cf4e1db3efde0ad37bf674f | 4f0ecde0978d1b65ae229c855c9488fb067f4ea9 | /kakao/kakao_2020/kakao_1/__init__.py | 2b51456dc8302910c9386534cbde9aa2e2eca95d | [] | no_license | LazyRichard/coding-test | 6d84a8a5287d987c23537162b4276a71d06de216 | c2fa6c6b307db6e0b3049a12e585c3cb7d1b8e24 | refs/heads/master | 2021-05-19T23:41:02.648174 | 2021-04-29T07:51:35 | 2021-04-29T07:51:35 | 252,088,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from typing import List
def solution(test_input: str) -> int:
if len(test_input) == 1:
return 1
answer: List[int] = []
for i in range(1, (len(test_input) // 2) + 1):
temp: List[str] = []
for j in range(0, len(test_input), i):
temp.append(test_input[j:(j + i)])
... | [
"sof.midnight@live.co.kr"
] | sof.midnight@live.co.kr |
02d981070765586c6c3e8bb8d57555ee7b1bed74 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/repvgg/src/configs/parser.py | ae7dbe646e625e1fa38e245603b0503abce2f6d8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 1,155 | py | # Copyright 2022 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"977180923@qq.com"
] | 977180923@qq.com |
869d7648d5fa41c0f2565d64f68aac7d9ec636dc | 8221b7f8740ebff0ae44f3fee48fd06c79483617 | /Physics/Electron.py | 2f1f3d9a93ffc7d82886123d8a89a7d9c94c4938 | [] | no_license | austinh2001/CyclotronHonorsProject | 16b5e31540a85b2c01a87f6efbf4f1a663195e25 | 7544513dbc442c59a67a3aafced5aeea7f55360e | refs/heads/main | 2023-04-02T05:06:26.652334 | 2021-03-25T00:31:56 | 2021-03-25T00:31:56 | 351,251,192 | 1 | 0 | null | 2021-03-25T00:18:21 | 2021-03-24T23:26:36 | Python | UTF-8 | Python | false | false | 1,279 | py | import pygame
from Physics.Particle import Particle
from Physics.Vector import Vector
from Physics.CoordinateSystem import CoordinateSystem
from Physics.Force import Force, CREATEFORCE, NONE, CONSTANTFORCE, EARTHGRAVITY, SQUARELAW, CUBELAW, GRAVITATIONALFORCE, ELECTRICFORCE
class Electron(Particle):
def __init__(s... | [
"austinh2001@gmail.com"
] | austinh2001@gmail.com |
c599481b7904761d4e4518acc651183692d4f2d5 | 2fd087fbc5faf43940153693823969df6c8ec665 | /pyc_decrypted/latest/xml/etree/cElementTree.py | cf14d28fc01a58d8e8845641181b34f25ec71840 | [] | no_license | mickeystone/DropBoxLibrarySRC | ed132bbffda7f47df172056845e5f8f6c07fb5de | 2e4a151caa88b48653f31a22cb207fff851b75f8 | refs/heads/master | 2021-05-27T05:02:30.255399 | 2013-08-27T13:16:55 | 2013-08-27T13:16:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | #Embedded file name: xml/etree/cElementTree.py
from _elementtree import *
| [
"bizonix@me.com"
] | bizonix@me.com |
3ed16fe01640223215e8ecb9dd68102306c1c59b | 592498a0e22897dcc460c165b4c330b94808b714 | /1000번/1406_에디터.py | a89e92eec4a01dc869414b5d997fc614f0d9d6f9 | [] | no_license | atom015/py_boj | abb3850469b39d0004f996e04aa7aa449b71b1d6 | 42b737c7c9d7ec59d8abedf2918e4ab4c86cb01d | refs/heads/master | 2022-12-18T08:14:51.277802 | 2020-09-24T15:44:52 | 2020-09-24T15:44:52 | 179,933,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from collections import deque
import sys
ip = sys.stdin.readline
lst = deque(list(ip().strip()))
rst = deque([])
for i in range(int(ip())):
cmd = ip().strip()
if cmd[0] == 'L':
if len(lst):
rst.appendleft(lst.pop())
elif cmd[0] == 'D':
if len(rst):
lst.append(rst.popl... | [
"zeezlelove@gmail.com"
] | zeezlelove@gmail.com |
ecb448a0548acc782921c78e0ddea60c1de6b703 | b62ab5b2e27a116ca03c8f7fd0291bf9d48310e6 | /gui_v3/GUI_publisher_ver3_2.py | 9cfa9026720aaf9bb5b2ec10848d4e55947ef680 | [] | no_license | ycpiglet/AutonomousDrivingRobot | d6b5e0165b26ead6859dc8daf8ad22ff73319450 | 7e84329228a94f0609e9fb0cdb48e473bcc9fd54 | refs/heads/main | 2023-07-13T09:34:48.444305 | 2021-08-19T05:44:43 | 2021-08-19T05:44:43 | 370,374,216 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,863 | py | #! /usr/bin/env python3
# -*- coding:utf-8 -*-
from std_msgs.msg import Int32
from std_msgs.msg import String
import rospy
import time
import random
import tkinter
from tkinter import messagebox
from tkinter.constants import S
import tkinter.font
from PIL import ImageTk, Image
#---------------------------------------... | [
"noreply@github.com"
] | ycpiglet.noreply@github.com |
b29cd8cd90efb7cd3c3dcc4d135b53ae21c536a5 | f8104b29a8d0dbeb407060e494a206ca69335aeb | /tools/datasets/buildchange/json2coco_city_trainval.py | dabe0ff848ca135aa66f2af774888c1dc40685b2 | [] | no_license | Sebastixian/wwtool | c19f665f96e8b942e94af47db590f5bb28072f06 | 2f462a3d028b766234d62a3ef706a0f08f10680a | refs/heads/master | 2023-06-01T04:21:22.066639 | 2021-06-25T07:40:13 | 2021-06-25T07:40:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,213 | py | import argparse
import os
import cv2
import json
import csv
import shutil
import numpy as np
import wwtool
import os
import cv2
import mmcv
class SIMPLETXT2COCO():
def __init__(self,
imgpath=None,
annopath=None,
imageset_file=None,
image_format='.... | [
"jwwangchn@outlook.com"
] | jwwangchn@outlook.com |
e1b448acf3b730cb600a2828622a2b86bc3e47d9 | c9f4de7bf63df23325b477d3375a1bfb99865059 | /main_a3.py | 2a0057fd589f5aa522859a2167872c1f9d5d7b8e | [] | no_license | EliHill/TextAnalysis | 440a15dca3f467ab5d79a234582a9ca3b4c7ab10 | 44b05bd1995290bbbd7972a1f8953aa5e75be37e | refs/heads/master | 2020-09-30T16:24:18.911419 | 2019-12-06T19:52:17 | 2019-12-06T19:52:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,750 | py | """main_a3.py
"""
import re
import os
import math
import nltk
from nltk.corpus import brown
from nltk.corpus import wordnet as wn
from nltk.corpus import PlaintextCorpusReader
from fsa import FSA
# NLTK stoplist with 3136 words (multilingual)
STOPLIST = set(nltk.corpus.stopwords.words())
# Vocabulary with 234,3... | [
"marc@cs.brandeis.edu"
] | marc@cs.brandeis.edu |
bde76c61c73ab8a6bf67b2eced51bcaa2646bef5 | 6bb36612a6121b0dfb32e2ec83fdff353fc0b349 | /plot_kmeans_digits.py | 182d6d54f94e012babe3df34cd725c898b6a970f | [] | no_license | mandosoft/Python-Finance | 526356ae2c5f3cee7e4552bdf8df1c80daefe3ad | 912845d08298cadc1289593df9fbce4d342afdca | refs/heads/master | 2020-04-19T06:40:36.431995 | 2019-01-28T22:56:04 | 2019-01-28T22:56:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,495 | py | """
===========================================================
A demo of K-Means clustering on the handwritten digits data
===========================================================
In this example we compare the various initialization strategies for
K-means in terms of runtime and quality of the results.
As the gr... | [
"thomasdtownsley@gmail.com"
] | thomasdtownsley@gmail.com |
154e62c1adac4bc07d2eb032a2e5be42fb548b37 | 397498fe98dd87abcd79df77fc6cec1c65ff16d7 | /scripts/fix-focus | e55c6f921fcdf382be4351670e9fd4b09d1674ba | [] | no_license | CADBOT/.pentadactyl | a52db9e2f3f2e1717f1763275ae4ea9298e355ad | 7bb165604b361cd401b99a4fc719c5fe9afdd887 | refs/heads/master | 2020-02-26T16:28:54.514793 | 2015-04-19T14:01:37 | 2015-04-19T14:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | #!/usr/bin/python
# Automator -> Serive -> Run Shell Script -> Service receives: no input -> in: Firefox ->
# Shell: /bin/bash -> content: path-to-this-script -> Saveas: fix-focus
# System Preferences -> Keyboard -> Keyboard Shortcuts -> Services -> fix-focus -> bind a key
from Quartz.CoreGraphics import *
def mous... | [
"azuwis@gmail.com"
] | azuwis@gmail.com | |
9006babf1473dae988d40f9aa1ea76ff377e10e2 | 76c81dd2a7e65f292fc7fa46f23eebaa5a40e799 | /luckysheet_obj/luckysheet_obj/wsgi.py | 1670bfc804a91201a6b2a8c77b3fead8bdb2aa90 | [] | no_license | billlaw6/luckysheet_django | 2631374d20d4cf1d7ac78213cdb339fec6158abc | bc9ebd89bcfb5cfbf7bcdcb7e168210b183df172 | refs/heads/main | 2023-05-01T14:39:34.723875 | 2021-05-15T08:20:08 | 2021-05-15T08:20:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for luckysheet_obj 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.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"lq65535@163.com"
] | lq65535@163.com |
e85fdd0b379d44e47a1ca606ee20c8893cb096dc | be4373a6ecda4f8b5a911c661ea618f6d1f48b8d | /venv-win-py/Scripts/futurize-script.py | 9c91538bb267339876a19e7009611a40fe362940 | [] | no_license | zzm88/weirdinstrument_mezzanine | a46175c875d4e25a54e923b9845d7b7c413b6ec9 | 954b4faa717ba9dc1aa874b66ad0cbf7c60b094a | refs/heads/main | 2023-07-06T21:08:01.392907 | 2021-08-11T08:34:06 | 2021-08-11T08:34:06 | 390,909,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | #!c:\users\35352\documents\localprojects\weirdinstrument_deploy\venv-win-py\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'future==0.18.2'
try:
from importlib.metadata impo... | [
"sea3@qq.com"
] | sea3@qq.com |
5e7458e42777618ee8bed3956b956c1cfa2981cd | 31bcb70257fa8611a493e03d2c65b5c5c680a8c3 | /Interpolation.py | fe1343e1afdde82187de89c3b33fe03396f4b6fa | [] | no_license | Matthijs-utf8/Numerical_mathematics | 51ad073e01cdc6fb7c395f7478caf98a90f2a464 | 1326dd9eaa1ea6797db6e7fe5fe765df0de1e68a | refs/heads/main | 2023-02-27T02:03:38.100595 | 2021-01-26T11:14:34 | 2021-01-26T11:14:34 | 333,059,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 16 16:29:45 2020
@author: Matthijs Schrage
"""
import numpy as np
import sympy as sym
x = sym.Symbol("x")
#Some function to help us with syntax
def sin(x):
return sym.sin(x)
def cos(x):
return sym.cos(x)
def sqrt(x):
return sym.sqrt(x)
def l... | [
"noreply@github.com"
] | Matthijs-utf8.noreply@github.com |
6a546b976d9ed158aa20c642650b31081a6b898c | 84ba1585d3ca5600ae9d927e25f4bad6d57eccd1 | /venv/bin/easy_install | 703bb8d58d8979807529523f494192020d0d024a | [] | no_license | dbernstein1/interpreter | 3ca5c07eadee18bc4785daa11476d5b462eb8c07 | 7adfe33598360161d886ae17ab79acf280e18efd | refs/heads/master | 2021-07-09T20:03:24.360504 | 2021-04-03T08:52:11 | 2021-04-03T08:52:11 | 239,248,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | #!/Users/danielbernstein/Desktop/python/eval/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"drbernst@ucsc.edu"
] | drbernst@ucsc.edu | |
7ff960b1f5fe2ab8db39e70e382084c495881cb8 | 1b12e6096c47312b67fa6ff223216945d2efb70c | /sandbox/vtk/selection/myinteractor.py | 139202e49f1fe0d1418bde34dcae5a42beb929c2 | [
"Apache-2.0"
] | permissive | rboman/progs | 6e3535bc40f78d692f1f63b1a43193deb60d8d24 | 03eea35771e37d4b3111502c002e74014ec65dc3 | refs/heads/master | 2023-09-02T17:12:18.272518 | 2023-08-31T15:40:04 | 2023-08-31T15:40:04 | 32,989,349 | 5 | 2 | Apache-2.0 | 2022-06-22T10:58:38 | 2015-03-27T14:04:01 | MATLAB | UTF-8 | Python | false | false | 4,329 | py | # -*- coding: utf-8 -*-
import vtk
colors = vtk.vtkNamedColors()
class MyInteractorStyle(vtk.vtkInteractorStyleTrackballCamera):
def __init__(self, parent=None):
"""register to event listening
"""
self.AddObserver("LeftButtonPressEvent", self.leftButtonPressEvent)
self.selection... | [
"romain.boman@gmail.com"
] | romain.boman@gmail.com |
2fac5ac1386dcc3835fa66a4a1a7bf2e0b51315d | 1bb50dc75cd1de2f68de7947f08965538e9b5f7b | /app/core/models.py | bb5009a28104125c3b02483dad835d6cbbcd1b50 | [
"MIT"
] | permissive | victorstevan/recipe-app-api | 73a7e77adcc608aa873a36686f73b7e19553c781 | be56d255e7e065478c542c57c59987105709fd0d | refs/heads/main | 2023-03-04T11:58:53.377068 | 2021-02-15T01:04:51 | 2021-02-15T01:04:51 | 338,922,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \
PermissionsMixin
class UserManager(BaseUserManager):
def create_user(self, email, password=None, **extra_fields):
"""Creates and saves a new User"""
if not email:
raise ValueEr... | [
"victorstevan@discente.ufg.br"
] | victorstevan@discente.ufg.br |
9adbe52821ece3b44f5dca11058f29fcf7f0c162 | 4c5de0652ef4a88dbdba8a4c338aa78a341d2938 | /ixia52xx/src/driver.py | efa8989c776b9e0376631ae9c7bc4e97a928a7c5 | [] | no_license | QualiSystemsLab/Ixia52xx-Shell | 9788aad8ae676a7cc66d5289c2e69ceeccfcd587 | ee9226ed3ac38cb792702b91a00be7b3ed9ea27f | refs/heads/master | 2021-01-20T22:31:13.741873 | 2016-08-08T19:58:30 | 2016-08-08T19:58:30 | 64,963,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py | from cloudshell.shell.core.resource_driver_interface import ResourceDriverInterface
from cloudshell.shell.core.driver_context import InitCommandContext, ResourceCommandContext, AutoLoadResource, AutoLoadAttribute, AutoLoadDetails
from cloudshell.api.cloudshell_api import CloudShellAPISession
import requests
from reque... | [
"chris@grabosky.net"
] | chris@grabosky.net |
75ddbccfa5f20c7a20b3ec8f5f32b5782c159153 | 2e188b60c1c7c8ab8c2bad43a7e04b257f1e4235 | /pixels/utils/bilinear_sampler.py | ab7bb670e1d74be2b01421957d10839724da38f4 | [] | no_license | zhangpf/pixels | 12410da19fc4eaee4c0c4e37783b76b0af794bc1 | 6f840218b42fe3d178259f00f8e9e45040a2c459 | refs/heads/master | 2021-05-06T14:49:37.726185 | 2017-12-07T12:16:59 | 2017-12-07T12:16:59 | 113,446,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,389 | py | import tensorflow as tf
import numpy as np
def bilinear_sampler_1d_h(input_images, x_offset, wrap_mode='border', name='bilinear_sampler', **kwargs):
def _repeat(x, n_repeats):
with tf.variable_scope('_repeat'):
rep = tf.tile(tf.expand_dims(x, 1), [1, n_repeats])
return tf.res... | [
"zpfalpc23@gmail.com"
] | zpfalpc23@gmail.com |
9bbe6d6fdb9a744918ebab1c2d430323a7d02271 | 7c94bd20b7ee069dfb557f41279416aba7d8447a | /exchangelib/folders/roots.py | 7b4ec7acd98342333d43a75de5373ee33c2603cf | [
"BSD-2-Clause"
] | permissive | AnkushGupta02/exchangelib | 63a42d70fe8254ca2edb6075ac05822a8ccaae01 | 5430e603a1b42248c6a154ae24270b63e94cc49d | refs/heads/master | 2022-08-19T08:34:49.634728 | 2020-05-28T10:25:33 | 2020-05-28T10:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,465 | py | import logging
from ..errors import ErrorAccessDenied, ErrorFolderNotFound, ErrorNoPublicFolderReplicaAvailable, ErrorItemNotFound, \
ErrorInvalidOperation
from ..fields import EffectiveRightsField
from ..properties import Fields
from ..version import EXCHANGE_2007_SP1, EXCHANGE_2010_SP1
from .collections import F... | [
"erik@cederstrand.dk"
] | erik@cederstrand.dk |
e0cca15b4698cfcef55c59c32ad1ec019b327f0b | b576ed1ff65700d505f687961cbed86fe94b1c3f | /objectModel/Python/cdm/utilities/copy_data_utils.py | 52fd4d1ee5390f942bbde1ef66b2b5cca9e4104f | [
"MIT",
"CC-BY-4.0"
] | permissive | AzureMentor/CDM | c80761737c92cf6561d4b982b4882b1b1c5265d3 | 84d3928995e7ab3bba0a283771e5e26639408643 | refs/heads/master | 2021-11-30T17:52:42.274900 | 2021-11-27T18:38:19 | 2021-11-27T18:38:19 | 217,569,642 | 1 | 0 | NOASSERTION | 2021-11-27T18:38:20 | 2019-10-25T16:04:16 | Java | UTF-8 | Python | false | false | 870 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information
from typing import Union, List, Optional, TYPE_CHECKING
if TYPE_CHECKING:
from cdm.objectmodel import CdmCollection, CdmObject
from cdm.utilities import Res... | [
"nebanfic@microsoft.com"
] | nebanfic@microsoft.com |
191bcb34fb1ee3e16cc9866069b360e9209d9614 | ee64a643bddd95ad9dfcffbe18ed7a3aa0cd3879 | /haverifier/benchmark/scenarios/availability/attacker/baseattacker.py | d5fb2c358fd95727a44bf772458688896c95aea5 | [] | no_license | L-kay/HAverifier | 75e04a4851a00da09df82b4624b0d7301ea18199 | 72e0099ee1798701a5f9e3a7d17bf5100e9aecb4 | refs/heads/master | 2021-01-13T11:40:12.050000 | 2016-10-24T03:46:11 | 2016-10-24T03:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | ##############################################################################
# Copyright (c) 2015 Huawei Technologies Co.,Ltd. and others
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribut... | [
"iheyu22@gmail.com"
] | iheyu22@gmail.com |
cbaae3b29f320b1ca247854342e356e573cae8b5 | 75a56d75b6ad05444988371bd61ffdc7844ee740 | /TopL.py | cf8a382c472264e3985afaa35f9a5d29d84c2157 | [
"MIT"
] | permissive | bflorentino/Contact-Book-App | aadfcf375a3790595280898b856bdb3b8553307e | 1d0601a3646fde2267e2489063f54321816f7ce8 | refs/heads/main | 2023-07-11T04:00:27.909803 | 2021-08-14T20:51:42 | 2021-08-14T20:51:42 | 396,089,765 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,537 | py | from GraphicInterface import GraphicInteface
from WorkInterface import WorkInterface
import tkinter as tk
class TopL(GraphicInteface):
"""[summary]
Args:
GraphicInteface ([type]): [description]
"""
def __init__(self, title, geometry, resize, bg, window):
super().__init__(title, geome... | [
"bryanmontero81@gmail.com"
] | bryanmontero81@gmail.com |
fa73fda921895cf608f6d767d3b04fd7afe93fc9 | bccb2a4c707415133f7f0bb2459c1f7e60f0b6a4 | /ResNet_Queue/grad-cam.py | b7447fe4cb03f7d380014080f44a136eb02ead85 | [] | no_license | High-East/Fight_Detection | 99a5f257f4ebda62e8c347a9d7db73fba8d80b88 | 67668f73bc8cd717c2a903c1f006cd20d7d33390 | refs/heads/master | 2020-12-20T06:07:04.808486 | 2020-01-25T10:33:18 | 2020-01-25T10:33:18 | 235,983,794 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,452 | py | # https://subinium.github.io/Keras-5-2/
import os
import numpy as np
import keras
from keras import models
from keras import layers
from keras import optimizers
from keras import backend as K
import matplotlib.pyplot as plt
# 코드 5-40 사전 훈련된 가중치로 VGG16 네트워크 로드하기
from keras.applications.vgg16 import VGG16
K.clear_ses... | [
"rhehd127@gmail.com"
] | rhehd127@gmail.com |
d440f68b24a3ef7d4b340593ae6df74196eef663 | 85af513539b7921dd74077cc564ed850a2ca0d32 | /sstb_backup.py | d098cef41ab2108b2f7b9316404058a14f562bab | [] | no_license | yihnanc/cloud_infra_hw3 | f79315c1438c7d20cf8e2740b2f0f6fbfff6aa2f | cfa68e872a71f9133bb31cc65c228f28a4d2e79e | refs/heads/master | 2021-08-19T23:43:47.344873 | 2017-11-27T17:56:36 | 2017-11-27T17:56:36 | 112,129,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,488 | py | from memtb import Memtable
from bloom_filter import BloomFilter
import csv
import os
table_size = 10;
class SSTable:
def __init__(self, memtable, level, id):
if not isinstance(memtable, Memtable):
print("Should use memtable to initialize the sstable")
self.mem = None
else:
... | [
"MAGICMCGRADY87@gmail.com"
] | MAGICMCGRADY87@gmail.com |
e81b437caf42cb4d1816c04793e4a923ab50b9ed | 3aa891f77e14989bf4034cff2eb55ced5876f8c8 | /PythonProject/apps/Book/apps.py | 93f038b480bc135ea4bdfee6e803fe65ac332e9d | [] | no_license | shuangyulin/python_django_book | ca7a8ee587539f5ac4c4bc2d6bd3ef2b7b8868cd | 644e1a602fd840149a6c4c6cdea7ef5196f19b59 | refs/heads/master | 2023-05-10T19:43:02.631043 | 2023-05-10T05:51:00 | 2023-05-10T05:51:00 | 217,252,803 | 28 | 12 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class BookConfig(AppConfig):
name = 'apps.Book'
| [
"254540457@qq.com"
] | 254540457@qq.com |
b1a7480c58922ee6eaf4efd5d692c12e94936bcc | 15114b8f23681403d052063ba6d9362ed628ce57 | /HexToDecimal.py | 937d4e031dbd26dbe71803f41ab94ee01dbabb77 | [] | no_license | BenMiller3/HexToDecimal | 37aac3317ee3ab2c8dd28b4a3bb5bb4cd0a8402d | ccf73957da5fe240397cec11f396734893f3713e | refs/heads/master | 2016-09-01T07:42:35.191098 | 2016-03-31T20:23:31 | 2016-03-31T20:23:31 | 48,472,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,521 | py | def hexToDecimal(num): #Converts a hex number (base 16) inputted as a string to it's decimal (base 10) counter part
result = 0 #Declaring the result variable
num = str(num) #Parses the user input to a string
ans = [0]*len(num)
for i in range(len(num)): #Checks all the ca... | [
"benjaminmiller229@gmail.com"
] | benjaminmiller229@gmail.com |
424491dd7fa29498ae77a918b8624d70331175eb | 7aefdb54f5d1c76984a7e4b8e112c72a29cb1d0e | /webcam_demo.py | fbe18048f2093c824aa922b42fee21b5a0d04d3b | [
"MIT"
] | permissive | AksultanMukhanbet/proctoring_intellectual_part | fe181d697f2d44b108304d523c3336f7873d2ac3 | f85db9d31025cb57a732f64ab22358651bc93c69 | refs/heads/master | 2023-07-17T07:23:55.490868 | 2021-09-01T04:54:35 | 2021-09-01T04:54:35 | 401,934,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,320 | py | import torch
import cv2
import time
import argparse
import posenet
import requests
import datetime as dt
import mysql.connector as msql
mydb = msql.connect(host="192.168.12.3", user="netuser", passwd='987', database='proctoring')
mycursor = mydb.cursor()
parser = argparse.ArgumentParser()
parser.add_argument('--pa... | [
"mukhanbetaksultan0414@gmail.com"
] | mukhanbetaksultan0414@gmail.com |
181579357a019a7c8a1beb3274dc914dc0713917 | 55b4fe0a6616b30c128b51a9918605050ce49f6d | /perturb_prem.py | d0db2ad1166cc3a898818c9bce26e01034aa4140 | [] | no_license | samhaug/ScS_reverb_setup | 783a4fb7c942a598f18dc6c9e3544aa5e2bbcafe | 05e96b9f871d25a1e7b5e9284083167993f56cec | refs/heads/master | 2021-01-12T03:35:45.657459 | 2017-06-24T17:24:07 | 2017-06-24T17:24:07 | 78,234,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | #!/home/samhaug/anaconda2/bin/python
import numpy as np
def write_output(prem_array,title):
with open(title+'.tvel','a') as f:
f.write('prem_5km.tvel P\n')
f.write('prem_5km.tvel S\n')
np.savetxt(f,prem_array,fmt='%.3f')
perturb = np.round(np.linspace(-0.3,0.3,num=20),3)
print len(pertur... | [
"samhaug@apsalus"
] | samhaug@apsalus |
95b5c45037161cace8ce3128cfd2bf49dc2bb7b6 | fc6eefb980b53baae393980c46ac40d256687014 | /Udacity-Intro-To-Computer-Science/Lesson 1/Lesson 1 - Quizzes/Final Quiz.py | 8aa9f447ce3f3fde860303b34c61711a69cb1cb7 | [] | no_license | Brian-Mascitello/UCB-Third-Party-Classes | 7bc151d348f753f93850f5e286c263639f782b05 | e2d26e3d207d364462024759ad2342a8e172f657 | refs/heads/master | 2021-01-02T09:10:01.146169 | 2018-10-08T00:19:58 | 2018-10-08T00:19:58 | 99,150,324 | 0 | 0 | null | 2018-02-01T06:33:25 | 2017-08-02T18:47:29 | Python | UTF-8 | Python | false | false | 780 | py | # Write Python code that assigns to the
# variable url a string that is the value
# of the first URL that appears in a link
# tag in the string page.
# Your code should print http://udacity.com
# Make sure that if page were changed to
# page = '<a href="http://udacity.com">Hello world</a>'
# that your code still assi... | [
"bmascitello@gmail.com"
] | bmascitello@gmail.com |
a5c5687e8a3c7d3414ac8648489be15adf1125dd | b0f18601edfa82a8f75ff2937b87c04318619cd8 | /python/make_ik_from_vmd.py | be8efbf669e7c9ad2e8c075150b70f729eec705f | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | khanghugo/PMX-VMD-Scripting-Tools | 5065906e25bd0d25b55249d6ada5af096f97d350 | bc978e7f8685ba39c2682aed6bb06bbe53f5bb4b | refs/heads/master | 2022-12-22T22:28:41.127976 | 2020-09-07T04:16:00 | 2020-09-07T04:16:00 | 293,138,167 | 0 | 0 | MIT | 2020-09-05T19:06:27 | 2020-09-05T19:06:26 | null | UTF-8 | Python | false | false | 20,094 | py | # Nuthouse01 - 08/24/2020 - v5.00
# This code is free to use and re-distribute, but I cannot be held responsible for damages that it may or may not cause.
#####################
# NOTES:
# assumes bones are using semistandard names for feet, toes, footIK, toeIK
# assumes toeIK is a child of footIK, and footIK is a chi... | [
"brian.henson1@yahoo.com"
] | brian.henson1@yahoo.com |
2c322c9fd589e186cb7cc803214a1a15220fc0af | 3598371233813189cdc39cbb515a72b4f01c01a3 | /www/pymonitor.py | e35cb2c1b2a8949c8848d7949448a29c5398bf57 | [] | no_license | jsqwe5656/awesome-py3-webapp | dbbd49cf13046dd1e26276cad1097e9e05c61b31 | 53a6ab2e5245f1da63844e6985883c2cedcfe954 | refs/heads/master | 2021-01-18T02:01:23.585714 | 2017-04-01T09:52:11 | 2017-04-01T09:52:11 | 84,265,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os,sys,time,subprocess
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
def log(s):
print('[Monitor] %s' %s)
class MyFileSystemEventHander(FileSystemEventHandler):
def __init__(self, fn):
super(MyFileSy... | [
"516845590@qq.com"
] | 516845590@qq.com |
bf2df9013b94ee7ca80c35660b101bf47f905569 | bd4f8320118c4fb25b95d29193c1adb2f5b55ec6 | /contrib/userproperty_lint.py | 7d99b16806929b36131ad944ccb545cac48d4c45 | [
"Apache-2.0"
] | permissive | Khan/khan-linter | 30229d57ec82466af54b539eb3a57770335e0d65 | 9222e8f8c9aa6dead5c434d1eb7bb326207ed989 | refs/heads/master | 2023-07-21T05:06:19.757797 | 2022-07-11T16:54:42 | 2022-07-11T16:54:42 | 4,628,579 | 26 | 8 | Apache-2.0 | 2023-09-06T21:29:52 | 2012-06-11T18:29:03 | Python | UTF-8 | Python | false | false | 1,639 | py | """Linter that warns about using the dangerous UserProperty.
UserProperty's user_id value can change depending on whether or not Google
currently has a Google account registered w/ an email address that matches
UserProperty's email property. That means when a user changes email settings
in their Google account it can ... | [
"csilvers@khanacademy.org"
] | csilvers@khanacademy.org |
677f06178ebfb81cb956127b976b669823dee70f | e4d33e7ca8a78cd63eda5df0fa8b705d8074954f | /strategy.py | 3afa3ae97b8ed11be66431f85503ef4f9743cc19 | [] | no_license | henriquekfmaia/option-strategy-python | 2b550118e610c09f3f319e11cacee095f8522f15 | b27a0ada3c431552d9f9633b5859cbe6415f2a3c | refs/heads/master | 2020-06-30T21:32:06.581209 | 2019-08-07T03:15:19 | 2019-08-07T03:15:19 | 200,957,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | import numpy as np
from option import Option
class Strategy:
def __init__(self, points = 100, ext_borders=0.05):
self.options = []
self.minimum = 0
self.maximum = 0
self.points = points
self.ext_borders = ext_borders
def add_option(self, side, option_type, strike, price):
option = Option(s... | [
"henrique.maia@poli.ufrj.br"
] | henrique.maia@poli.ufrj.br |
00756a3bf6a511b4023a4efd81b34a9b4b9899fc | 833f645605c2a0e40418a2f4392c8c64c1d93da2 | /tests_api/adminSide/test_edit_gender.py | bd42ad5c20c5b38e46b8ad94160ca5dad0cb09d9 | [] | no_license | mehalyna/CH_096_TAQC | beefb1f2c937c66720c93239df70d3827242df98 | 14e7d28cb692e30df945b88841dfd0b3d24ed450 | refs/heads/master | 2022-12-12T13:42:29.276689 | 2020-02-04T15:57:00 | 2020-02-04T15:57:00 | 224,458,058 | 1 | 2 | null | 2022-12-08T03:26:02 | 2019-11-27T15:14:08 | Python | UTF-8 | Python | false | false | 1,198 | py | import unittest
import allure
from tests_api.testHelper import User
class TestEditGender(unittest.TestCase):
def setUp(self):
self.id = "e02dfd94-a8a9-4b1a-6cfc-08d7a28d1878"
self.name = "Jesus"
self.gender = 2
self.birthday = "2001-06-04"
self.User = User(self.id, self.na... | [
"57140993+OlexandrToloshnyak@users.noreply.github.com"
] | 57140993+OlexandrToloshnyak@users.noreply.github.com |
68fd4f165b8a871de48d2cae68b89f179705ff30 | 8e10094a3cbfaaa0a491acb6ca7a0d7b6a6a4295 | /Assignment-18 Binary Matrix.py | 6e14d476868011376b8c36e1f83d1ddad82fb4e8 | [] | no_license | pkenaudekar/NPTEL_python_course_work | c81bc1b71ca9a9de3139a03c77115f6075fd1241 | 43c0034e35f15556f5f183401305c14ddc90a3c4 | refs/heads/master | 2020-05-03T07:57:59.513281 | 2019-04-16T20:34:29 | 2019-04-16T20:34:29 | 178,513,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | """
Given a matrix with N rows and M columns, the task is to check if the matrix is a Binary Matrix. A binary matrix is a matrix in which all the elements are either 0 or 1.
Input Format:
The first line of the input contains two integer number N and M which represents the number of rows and the number of columns res... | [
"noreply@github.com"
] | pkenaudekar.noreply@github.com |
cd1ff5ac52c4656720ecfe2af85fd0194ec960b6 | 84bf3fa39f10d428a9129e083c492695deaa5e96 | /doubanmovieSpider/doubanmovieSpider/spiders/doubanbooks.py | 920ae4819ff0503f71b71f4a351d6f572bc51fab | [] | no_license | zhushengl/spider | 7baf9df71b77a1a03315cd447ea5ca501e22c5cd | afc79f1f5d80eb284b8884fb7b29e5be0c762d44 | refs/heads/master | 2020-04-12T11:12:37.754215 | 2018-12-20T01:26:04 | 2018-12-20T01:26:04 | 162,452,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | # -*- coding: utf-8 -*-
import scrapy
from doubanmovieSpider.items import DoubanmoviespiderItem
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
class DoubanbooksSpider(scrapy.Spider):
name = 'doubanbooks'
allowed_domains = ['douban.com']
start_urls = ['http://douban.com/']
start = 0
url ... | [
"2231636899@qq.com"
] | 2231636899@qq.com |
516da90e9ca482dbc6eff6c95b85d82b59370415 | 3079cc4b6d6c48c92e547a33a00d1bbca314ce17 | /BipedalWalker/PiRL/ProgramGen/ParseTreeGenerator.py | a93f0a35be7e20907b4e5b2fa1a7bee849142ffd | [
"MIT"
] | permissive | VAIBHAV-2303/PiRL | 71f9a6b5b540475ed9c8e2128870bcbd6631a726 | 063aae20cce2bfc2911e7aff59f4a688740c44da | refs/heads/main | 2023-05-09T11:25:34.571635 | 2021-05-20T14:28:03 | 2021-05-20T14:28:03 | 369,163,062 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | from PiRL.Utils.TreeUtils import newTree
from PiRL.DataStructures.Token import NonTerminal, Terminal, Token
from PiRL.DataStructures.RuleTable import Rule
from PiRL import rule_table
from treelib import Tree, Node
import random
__isValidDepth = {}
def checkRuleDepth(rule : Rule, depth : int):
if (rule, depth) i... | [
"gargvaibav@gmail.com"
] | gargvaibav@gmail.com |
782b8a5b2c62d3e62a1de698230c293dddde6246 | e54554c3bf4a1e066a092748c12e2cf4969743e2 | /StudentsRegister/Tests/ControllerTest.py | 5d9b119ddd3d373684598cc4a51d7cde55a6e53b | [] | no_license | dianahas/facultate | 89269234dc7824c5078e56ae23d413f5983de30d | 54218c414904841d16005222e1ee4043d1ba2f1c | refs/heads/master | 2019-07-02T06:11:17.054228 | 2017-02-20T11:57:18 | 2017-02-20T11:57:18 | 80,839,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,318 | py | import unittest
from Domain.Discipline import Discipline
from Domain.Exceptions import DisciplineException
from Repository.DisciplineRepository import DisciplineRepository
from Controller.DisciplineController import DisciplineController
from Domain.Student import Student
from Domain.Exceptions import StudentException
f... | [
"Diana Hatmanu"
] | Diana Hatmanu |
d9ec3c57d4895a1487cc0f6a5b0ffb8782c7de4c | 08c7e823a01da52aba46fe6332a9b96102261f44 | /daos/tools/dao_tools.py | d6c3c98b20c5d59bcc54ef0cf351e37ccbb7aea1 | [] | no_license | benharvey1213/csaia_python_p | e9488e758a1f6ac88159d4dc92f447f6d4af8e4f | 2024769646e4bf96dcb087f7d08a29fc0a8055fa | refs/heads/master | 2023-04-12T17:33:58.066276 | 2021-05-07T17:52:37 | 2021-05-07T17:52:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | from mysql.connector import connect, Error
def execute(query, *args):
"""
General method for executing queries on the database. Queries can be passed with a list of tuples for multiple
INSERT statements. All non-INSERT queries should be passed preconfigured and
ready to execute.
Paramete... | [
"scoutscott13@gmail.com"
] | scoutscott13@gmail.com |
484d210d3a4c30263b422bd7dad0dc68da1bd706 | 4639c9f39213c0641ef693489e84e10d0c05deca | /sqlqueries.py | 4398e8156991b7deaf741a97bf1a76ebda3ade95 | [] | no_license | utkranti/samdemo | 6db60d52aceed668204f06d2acc13bbfc9f74558 | 87965fc68259f33f39387aa2b891afa11878c8ac | refs/heads/master | 2020-09-06T17:13:48.938300 | 2019-11-08T15:07:18 | 2019-11-08T15:07:18 | 220,490,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py |
CREATE_TABLE = ''' CREATE TABLE empinfo(
e_id integer,
e_nm varchar(50),
e_age integer,
primary key (e_id)
)
'''
INSERT_QUERY = '''insert into empinfo values({},'{}',{})'''
FETCH_SINGLE_QUERY = '''SELECT * FROM empinfo where e_id = {}'''
FETCH_ALL_QUERY = '''SELECT * FROM empinfo'''
UPDATE_QUERY = '''u... | [
"utkrantijadhav@gmail.com"
] | utkrantijadhav@gmail.com |
d3bc53e5e49699888068463a7e4ba09b13a33a91 | 4f7bb51296e7c19b10c8d5f3616f48aa3510c455 | /src/scseirx/analysis_functions.py | 44793661d1768c33cb7de2e60fb3c0ce4113d5ed | [
"MIT"
] | permissive | Jaoeya/agent_based_COVID_SEIRX | 3bf04b337ad749ad740906c278280a82fdd8ec6b | 596a036fd3b95282ec3b6d4b27d47ecca568e750 | refs/heads/master | 2023-06-11T07:48:41.836646 | 2021-07-07T18:16:49 | 2021-07-07T18:16:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,323 | py | import numpy as np
import pandas as pd
import networkx as nx
import os
import json
import pickle
import bz2
import _pickle as cPickle
from os.path import join
from random import shuffle
import time
from scseirx import construct_school_network as csn
def get_agent(model, ID):
for a in model.schedule.agents:
... | [
"jana.lasser@ds.mpg.de"
] | jana.lasser@ds.mpg.de |
ad57f4527445a4f8ee853506abb8efae93d2a7ba | 49a1b328cf3735d05364150940eb5f57e045edb9 | /plot_vodV5_C.py | 13f8959c2ac8648460e137d1b0781dabd3664bc6 | [] | no_license | amucia2/LDAS-Monde | 465556c78982df4e4916671c475728f724d8d6d0 | cbf596075fc2ce0b8fe77c04f77be4eacceb8994 | refs/heads/main | 2023-04-13T09:17:17.688228 | 2021-04-21T09:59:29 | 2021-04-21T09:59:29 | 360,107,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,502 | py | import os
import sys
import numpy as np
from netCDF4 import Dataset
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
from mpl_toolkits.basemap import Basemap
import pandas as pd
from mpl_toolkits.basemap import Basemap, addcyclic, shiftgrid
from math import radians, cos, sin, asin, sqrt
from scipy.stats.s... | [
"noreply@github.com"
] | amucia2.noreply@github.com |
346eeb92d6c058c58b47563e2e81d250d4fbcf8d | 3d1dab8556b0e5e95875d174c7fa08cea24a1ca1 | /src/utils.py | fe868e32bc20540a9cb16218ea7a2fbdb543ee41 | [] | no_license | ryota-ohno/interlayer_interaction3 | 8bc2151b9ede4c970e0b0964679e28aa49ef847d | 499e6375b8a921fc6aa6e2633ea24bc3ba1e9719 | refs/heads/main | 2023-08-25T16:41:37.521617 | 2021-10-28T09:49:10 | 2021-10-28T09:49:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,382 | py | import numpy as np
from sklearn.decomposition import PCA
def get_E(path_file):
with open(path_file,'r') as f:
lines=f.readlines()
lines_E=[]
for line in lines:
if line.find('E(RB3LYP)')>-1 and len(line.split())>5:
lines_E.append(float(line.split()[4])*627.510)
E_li... | [
"noreply@github.com"
] | ryota-ohno.noreply@github.com |
f76b2c88d9c798d959e946a73f076dcbfec551e3 | 9d2ef665fb42762279a3d82acd1ed5cfae831c65 | /venv/bin/easy_install | 000ab1efcc9488fbff3b240657f1f4833ca899df | [] | no_license | thanhtung29497/tts_frontend | 63c52c30afcb416167618d48db35d72965524518 | 72fe8e08d3dd28eed3d140b4a2f698e60c1939b9 | refs/heads/master | 2020-07-19T23:37:07.068984 | 2019-09-05T10:36:45 | 2019-09-05T10:36:45 | 206,532,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | #!/home/tungtt-ai-u/PycharmProjects/tts_frontend/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.... | [
"thanhtung29497@gmail.com"
] | thanhtung29497@gmail.com | |
e8a1e8a89b2676c6cd1974df7292669106c5eb73 | 0d17a12333319ba830e3359d07a17dc96a79ec5b | /app/asgi.py | 17d84a01f8a7a30554b58bc417955ebb6a0eecd8 | [] | no_license | dimasickx/restAPI | 6758bff307f2be96cdba294365e91d27519daad5 | e68a13573c3cb1c5996ca77b842ee96967724c66 | refs/heads/master | 2023-05-22T18:28:57.197906 | 2021-06-11T13:07:54 | 2021-06-11T13:07:54 | 375,749,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | """
ASGI config for main project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"dmitry.sorokin.mail@gmail.com"
] | dmitry.sorokin.mail@gmail.com |
d86b86de0883e30ddc235898d94df5c11ee4e183 | 92bf965fb0125da24f4503ed685c114cfb8523c0 | /sandbox/testPlot.py | 90e205a962cdca4a8c51308eac423f81dd27fbf4 | [] | no_license | fsbr/unh-startracker | c9f2f1420d3ef7f051d71e32bd7328fbe8dd4aa2 | f023aa51733633e4ef1fd7f4c09e117f95eb721b | refs/heads/master | 2021-07-16T09:27:01.757223 | 2021-06-29T22:21:50 | 2021-06-29T22:21:50 | 43,343,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | import time
import numpy as np
import matplotlib.pyplot as plt
plt.axis([0, 1000, 0, 1])
# does interactive plotting
plt.ion()
plt.show()
for i in range(1000):
y = np.random.random()
plt.scatter(i, y)
plt.draw()
time.sleep(0.05)
| [
"thomasckfuller@gmail.com"
] | thomasckfuller@gmail.com |
843dc84990ac79c37f5be80ed069ee89cccc662f | 387b4a53485b175d2c8c7bca7f3429ad2abbb4f0 | /pvdet/model/bbox_head/pv_head_base.py | b80b845da9a2588a914b8f8e2020ba1e80618782 | [] | no_license | liangzhao123/IOU-SSD | 50cf3a52e8b306b024d0396b76bd3931c8a15434 | b53a1659ffe197da8eeca0f4a35a4a4571db22f4 | refs/heads/main | 2023-06-25T08:15:03.553378 | 2021-07-31T17:40:49 | 2021-07-31T17:40:49 | 321,982,002 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,318 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from pvdet.model.model_utils.proposal_target_layer import ProposalTargetLayer,class_agnostic_nms
from pvdet.dataset.utils import common_utils
from pvdet.tools.utils import loss_utils,box_coder_utils
class RoIHeadTemplate(nn.Module... | [
"1094036832@qq.com"
] | 1094036832@qq.com |
e9969c27708523aa763276b502fa9419d9cf3558 | 8de8185760c9d3696d7244bb04b0c48d60b73e9b | /crawler/tech/gizmodo.py | b43d2c9a2466e702dfdeaefc63f48a1c08736273 | [] | no_license | text-master/textmaster | 8e9a36003efff020ac44016c7313df4ad0030cc3 | ba3b9dc09f36bd42a441ed812f8ec66ec853494f | refs/heads/master | 2021-01-24T04:43:11.534736 | 2018-05-12T03:06:21 | 2018-05-12T03:06:21 | 122,946,499 | 0 | 0 | null | 2018-02-26T12:25:02 | 2018-02-26T09:33:40 | null | UTF-8 | Python | false | false | 805 | py | from bs4 import BeautifulSoup
import requests
URL = "http://gizmodo.com/tag/science?startIndex=%d"
file = open('gizmodo.txt', 'a')
# r = requests.get("https://techcrunch.com/page/2")
for i in xrange(6, 10):
index = i*20
r = requests.get(URL % index)
print URL % index
soup = BeautifulSoup(r.text, 'l... | [
"namhoang.td09@gmail.com"
] | namhoang.td09@gmail.com |
9ec064b2a787ac1c0338a8c2f410c4c3d54df4ef | 164d8556c96b220b1502066e1ad9688836c117f0 | /misc/counting_cells_load.py | e66320a66cc1ea0d306724415a3f94343e7709d0 | [] | no_license | pwang724/PHD_experiment | df7c23281b763159fe2ee61e229689d1fd01d7d0 | 9e290308353e55aa818477d3d183415d633624c9 | refs/heads/master | 2023-02-20T13:53:24.472923 | 2023-02-16T03:20:05 | 2023-02-16T03:20:05 | 162,485,012 | 0 | 0 | null | 2019-01-15T02:48:32 | 2018-12-19T20:03:33 | Python | UTF-8 | Python | false | false | 957 | py | import numpy as np
import _CONSTANTS.conditions as conditions
import _CONSTANTS.config as config
import os
import glob
from tools import file_io
import matlab.engine
import time
mouse = 2
condition = conditions.OFC_COMPOSITE
d = os.path.join(condition.paths[mouse], 'data')
mat_files = glob.glob(os.path.join(d,'*.mat'... | [
"peterwang724@gmail.com"
] | peterwang724@gmail.com |
9e28e0cd12e58048913b3c3764cd180e05af5636 | 9e41adf86b2c166a219f0b6d9371089c5f2d7d93 | /Exerciciospython2/Função/e100.py | 0b47e1bb8952e250e0f02facf33b98bfe7653f2f | [] | no_license | Nadirlene/Exercicios-python | 1aaead61dd0efcb5303f6294e765e9e1d54506cc | 3fe82e166003922ef749756a249840ed1fe940b0 | refs/heads/main | 2022-12-25T21:35:06.172839 | 2020-09-28T15:08:37 | 2020-09-28T15:08:37 | 299,343,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from random import randint
from time import sleep
númerosSorteados = []
def sorteio(lista):
print(f'Sorteando {len(lista)} valores da lista:', end=' ')
for c in range(0, 5):
lista.append(randint(1, 10))
print(lista[c], end=' ')
sleep(0.3)
print('PRONTO!')
def somaPar(lista):
so... | [
"nadirleneoliveira@yahoo.com"
] | nadirleneoliveira@yahoo.com |
3b50f9669e427ccf2598af20c57cc0bbf58daad0 | 11700a4b8207850ffc4a5c7ea46db03f0c3ab7e4 | /.venv/bin/eralchemy | b6a0ff3bb3ea945183414cc783385b2bce87776a | [] | no_license | nicolas703/exercise-instagram-data-modeling | 1aea698098c00694732a6b1106319a5a004f78d1 | 40d3c52db05b7e1668beeff76b5582e9ebb00c40 | refs/heads/master | 2022-11-23T15:21:30.967254 | 2020-07-09T09:48:20 | 2020-07-09T09:48:20 | 278,325,266 | 1 | 0 | null | 2020-07-09T09:46:48 | 2020-07-09T09:46:47 | null | UTF-8 | Python | false | false | 258 | #!/workspace/exercise-instagram-data-modeling/.venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from eralchemy.main import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
| [
"nicolas8859.nd@gmail.com"
] | nicolas8859.nd@gmail.com | |
9a0f789ccd72673d0b66e55dc2e6bb2452bf9406 | 3f03334c1d1f1a1fd05d0950f8af08260e0d5432 | /HW1/hw1.py | 47750934110a7cd1fb7fa9237244635b0ae07414 | [] | no_license | mina-jafari/EECS545-machineLearningCourse | 697a341e6259845beb09bcd25e8308efdf48f07a | 3014618b70499465fb4718afe9b4c5e815c8b2a4 | refs/heads/master | 2020-04-02T20:13:39.528778 | 2016-06-13T19:55:55 | 2016-06-13T19:55:55 | 61,060,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | import numpy as np
# This matrix A contains 183 8x8 images of the handwritten digit 3.
# Each image has been reshaped into a length 64 row vector.
A = np.loadtxt("A.csv",delimiter=",")
U, s, V = np.linalg.svd(A, full_matrices=True,compute_uv=True)
print s
#print np.dot(U,U.transpose())
#print V
#print s[:3]
s[3:] ... | [
"mjafari@paulzim-imac5.chem.lsa.umich.edu"
] | mjafari@paulzim-imac5.chem.lsa.umich.edu |
88563445332a6acdcd4a280669e4ef1ca4812a12 | 6c6cf74998bd03586c23e8881336d9d3cb279582 | /pypecast/models/model.py | da368611e2b4eafb24ab7d3e210e71258b10713d | [
"MIT"
] | permissive | guilhermecano/PypeCast | 7583d9f54a71e25a94e70fb76671a8db3e729b45 | 0282fb9e8fa8ca88e74cbab79e92f82fa3300799 | refs/heads/master | 2020-04-09T09:37:52.990972 | 2018-12-14T21:01:18 | 2018-12-14T21:01:18 | 160,240,449 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,907 | py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from keras.layers import Dense, Dropout, LSTM, Input
from keras.models import Sequential
import seaborn as sns
import matplotlib.pyplot as plt
import warnings
from pypecast.metrics.metrics import *
class Mode... | [
"gui.c.lopes@gmail.com"
] | gui.c.lopes@gmail.com |
e0bd0c8393e10d70cd1d7736fc15a898d1f059dc | 2e858717fbc3b74cc809dc5d60d337a844ae7fed | /codegolf/planets.py | a4f5b0a908013fcda517843121fbb9b541e6773d | [] | no_license | maxbergmark/misc-scripts | 95a1b5416c34e65b7e8ef26f5c941f9ba0ae0986 | a1b3b889f8f6d28a452969a62af637a6866b69d3 | refs/heads/master | 2020-03-28T10:32:38.362737 | 2019-09-20T12:23:14 | 2019-09-20T12:23:14 | 148,118,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py |
def get_score(l, s):
c = 0
for i, e in enumerate(l):
c += int(e == s[i])
return c
def check_modulo(l, n):
mod = [i%n for i in l]
s = list(set(mod))
if len(s) == len(l):
return 1, get_score(sorted(s), s)
return 0, 0
def check_modulo_sq(l, n):
mod = [(i*i)%n for i in l]
s = list(set(mod))
if len(s) == le... | [
"max.bergmark@gmail.com"
] | max.bergmark@gmail.com |
2c6de1d98469164b77e496a0c33bfd4a67f22e17 | 1f5420fda4359bfc21b53de3a5f6e6a93b47b996 | /ch02/ch02_menu.py | 5abfa489c2386f900a6c3f914341bd20f4c6a22b | [] | no_license | fl0wjacky/wxPython | 600f5bfccad3ef5589e11573b30cffd1e2708b83 | 50b3cd5a63750d36065684b73aab0da70ff650a7 | refs/heads/master | 2022-09-02T04:24:47.540157 | 2022-08-10T04:13:17 | 2022-08-10T04:13:17 | 13,976,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | #! /usr/bin/env python
import wx
import wx.py.images as images
class ToolbarFrame(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self, parent, id, 'Toolbars', size=(300,200))
panel = wx.Panel(self)
panel.SetBackgroundColour('White')
statusBar = self.CreateStatusBar()#... | [
"flowjacky@gmail.com"
] | flowjacky@gmail.com |
d263c302856e1bd84f621399164fb1e25c9f2f64 | b9b9c880653eb9cc1d6a31d06da58b7a8ead126a | /app/slash.py | e65924b67afd229b39552b46590337a8019d612b | [] | no_license | oddball/gae-flask-skeleton | 707f6d199a8fc184e8ad6632f31aa36b23e06ee0 | c04c803fc184820aa06e8f49aae2ba03eb5f0a46 | refs/heads/master | 2021-01-23T12:04:48.102155 | 2018-02-20T19:32:29 | 2018-02-20T19:32:29 | 102,644,208 | 1 | 0 | null | 2018-02-20T19:32:29 | 2017-09-06T18:31:36 | Python | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
import httplib
from flask import Blueprint, make_response
from google.appengine.ext import ndb
from google.appengine.ext import blobstore
import flask
from flask_login import login_required
from flask_login import current_user
slash_bp = Blueprint("slash", "slash")
route = slash_bp.route
@r... | [
"andreas.lindh@hiced.com"
] | andreas.lindh@hiced.com |
b21ef021ca3d6afdf535882ef61eb49b75bf895c | 8b7db851e13737d5c44cc00d38a46a2817c7707b | /tests/train.py | 788e79cd09e75082a8dc8cf4d75b3dd063b824b5 | [
"MIT"
] | permissive | goelshivam1210/gym-novel-gridworlds | b6f24b38cfceb2b44461da9bb7607c56d27f4a9e | c8f419da02e4fd716b9e293fcf0b99ee2eb96367 | refs/heads/master | 2023-01-15T13:46:23.438199 | 2020-11-23T14:42:13 | 2020-11-23T14:42:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,349 | py | import os
import time
import gym
import gym_novel_gridworlds
import numpy as np
from stable_baselines.common.env_checker import check_env
from stable_baselines import PPO2
from stable_baselines import DQN
from stable_baselines.gail import ExpertDataset
from stable_baselines.common.policies import MlpPolicy
from st... | [
"gtatiya@live.com"
] | gtatiya@live.com |
38c1fd8760bcce05b238e280801a028e7fa6b28f | 7abea7671cfc3037b920b7883e592c1aab82e236 | /blog/migrations/0005_alter_post_timestamp.py | 947b852666cae5b39968672274f7db3a44d16b24 | [] | no_license | RRM00/blog-assignment | ae0810e05179c9f7dac6329129af96cdc7ba665a | 0031500e016c5d19513f27c70f2f96222b693a32 | refs/heads/main | 2023-04-14T16:38:49.667508 | 2021-05-03T05:22:12 | 2021-05-03T05:22:12 | 363,724,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # Generated by Django 3.2 on 2021-05-02 12:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_post_summary'),
]
operations = [
migrations.AlterField(
model_name='post',
name='timeStamp'... | [
"noreply@github.com"
] | RRM00.noreply@github.com |
c927be2460b22f079fb23a09cae7ad7bf3fa7aea | 0e6802ed46b3be0e58396b0e0a089d9da8727be6 | /PyPlayground/knapSack/2.py | 68c99edfa6ccad248b4c27f8ca09989db8dcbd15 | [] | no_license | wbglaeser/cplayground | 328825d6d37f23f7acc2d373b02f72b8afbc68cc | e3dc84e8198535fcd5d5dafa126d4ea345c59c2c | refs/heads/main | 2023-03-25T21:43:54.998971 | 2021-02-23T09:16:11 | 2021-02-23T09:16:11 | 308,050,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | W = 30
wt = [1,2,4,6]
v = [5,3,5,6]
v = [a-b for a,b in zip(v, wt)]
K = [[0 for i in range(W + 1)] for j in range(len(wt)+1)]
for w in range(1, W+1):
for k in range(len(wt)):
if wt[k] > w: K[k+1][w] = K[k][w]
else:
K[k+1][w] = max(v[k]+K[k][w-wt[k]], K[k][w])
for line in K: print(line)... | [
"ben.glaeser@tuta.io"
] | ben.glaeser@tuta.io |
0318e0aaf209f5b5619b4a826bfaf8af77341a0c | 57bab37cb279cc6c59262a711ccf228867e8ddc6 | /Guia2/3.py | f9a346b91d48cacb58c02e6a5b659e70ee5d5dd8 | [] | no_license | gabymy/Guias-de-Estudios-PYTHON | d56a94b7bd7b04a25c8af2c368c976e47f3e2b51 | 6ff0eeee6ee5ab8a4057ca12a61202214d0e9065 | refs/heads/main | 2023-08-01T22:45:02.101972 | 2021-10-08T19:08:23 | 2021-10-08T19:08:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # Crear una función que pida un año y que escriba si es bisiesto o no. Se recuerda que
# los años bisiestos son múltiplos de 4, pero los múltiplos de 100 no lo son, aunque los
# múltiplos de 400 sí. Estos son algunos ejemplos de posibles respuestas: 2012 es
# bisiesto, 2010 no es bisiesto, 2000 es bisiesto, 1... | [
"noreply@github.com"
] | gabymy.noreply@github.com |
b6506ca0c4ad00b48fefffd880f27f6b56a0c962 | ac14df0df265cedd09a13ef049434d00f7f4260b | /recoxplainer/config.py | 96983f417577df3aedbeb673d4788069df087510 | [] | no_license | amorsun/recoxplainer | 0e33986a1d98b0050238434467479fd27eafabd8 | f9afc318e2c29c7519e9880fdd0ced09605cd197 | refs/heads/master | 2023-03-14T02:26:49.434910 | 2021-01-31T20:45:17 | 2021-01-31T20:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import yaml
from box import Box
import os
with open("configs/config.yml", "r") as yml_file:
full_cfg = yaml.safe_load(yml_file)
cfg = Box({**full_cfg["base"]},
default_box=True,
default_box_attr=None)
| [
"CobaLu01@de-ber-m45dml85.fritz.box"
] | CobaLu01@de-ber-m45dml85.fritz.box |
65c8c7afd51337f9030ae030d6fd82b48e1fa74f | f14bbd0133937b8b433685f971f569ad4ca160c0 | /Code/Peirce.py | 2c63005601f166d088b7a6f8ebd68c9ba2cdac8b | [] | no_license | bchenghi/peirce-alpha-system | 2e43fc32d9db0c2c35e50f0b6ec480213ca3d107 | 5f7969e3dde47412455dda2931d4f429aa96c499 | refs/heads/main | 2023-08-18T16:16:05.466642 | 2021-09-19T16:56:06 | 2021-09-19T16:56:06 | 367,814,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,476 | py | import tkinter as tk
import math
from itertools import permutations
from pyswip.prolog import Prolog
# values for horizontal and vertical padding
xpadding = 20
ypadding = 20
# default values for height and width if no children
xdefault = 50
ydefault = 50
# Graph that was copied or cut
copyorcutGraphs... | [
"bohchenghin@gmail.com"
] | bohchenghin@gmail.com |
0c8c1261d797d256dc1620389e22afee4a0ae92c | 7c2cebd157e19714962f6e2ca930f148a08ff333 | /instructors/urls.py | 208f4945a13b67f6f986c444d3c29b1b9099e621 | [] | no_license | Code-Institute-Submissions/black-panther-fitness | 1f380f9b338e0126d01ac6fa8f30025424265b60 | ceafccad54f6eaab3deb4144d4a930f057db4fec | refs/heads/master | 2023-01-22T14:28:39.399311 | 2020-12-04T15:55:33 | 2020-12-04T15:55:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.all_instructors, name='instructors'),
path('<instructor_id>', views.instructor_detail, name='instructor_detail'),
]
| [
"darylhyde_13@hotmail.com"
] | darylhyde_13@hotmail.com |
b749430cbf1df74689cf5fbf55ba4631e9e2b98b | 0fd50b12ed2d79e31fed5ecd91efe9ae63ede429 | /src/analysis/test_udgm_mrm_plots.py | 16af63bb46a920a467c315cee341d87fea168b5e | [] | no_license | riccardoscilla/scheduled-collect-LPIoT | f611726132d35b1f7693120ee4e065c5f17dfaca | 84cd24d9adb154d51a3b67f382429444d2164b78 | refs/heads/main | 2023-05-13T06:42:41.758222 | 2021-06-07T14:26:20 | 2021-06-07T14:26:20 | 374,693,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | import matplotlib.pyplot as plt
import pandas as pd
from collections import defaultdict
import numpy as np
import math
plt.rcParams.update({'font.size': 15})
def getValues(x, p):
dc_values = []
pdr_values = []
dc_std = []
pdr_std = []
for i in x:
folder = "results/mrm/test_mrm_"+p+"_... | [
"66726419+riccardoscilla@users.noreply.github.com"
] | 66726419+riccardoscilla@users.noreply.github.com |
6f9449c2b377200aaaafa218f8cf2583cedbf482 | b0703ac3217134e4afceb84ab07335c97ec677ba | /6:Wagtail_Content_Prototype/cypmh_prototype/nhs_components/migrations/0004_auto_20210514_1117.py | dfc57e61fe424e62fb6197c9bcefc3f39c561983 | [] | no_license | madetech/G1-Spikes | 390622eec7a91ea986e1debbb9a270cd9e9091aa | fc542216a3102d516e6c005aad0b66755c725544 | refs/heads/main | 2023-07-03T08:40:05.080265 | 2021-08-03T10:37:36 | 2021-08-03T10:37:36 | 360,846,858 | 0 | 0 | null | 2021-08-03T10:37:37 | 2021-04-23T10:27:48 | Python | UTF-8 | Python | false | false | 10,863 | py | # Generated by Django 3.1.8 on 2021-05-14 11:17
from django.db import migrations
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
import wagtailnhsukfrontend.blocks
class Migration(migrations.Migration):
dependencies = [
('nhs_components', '0003_auto_20210514_1112'),
... | [
"liam.miller@madetech.com"
] | liam.miller@madetech.com |
5e28917d27023f41c32f425858b3b22fab756156 | 29feab13704dc487aba41fc3bc3478c768311991 | /FigureS2.py | f4fed26d4cb6b276a72db05e7fef0bcc119eb4bb | [] | no_license | vhartwick/Mars-Wind-Energy | f382781e8c09b89a6ea0caa02f18989367a665ec | 9b0a1ba4cec8b8d5cd3f3f5e4b90240f6ecf5a97 | refs/heads/main | 2023-04-14T01:58:35.095050 | 2022-10-25T20:56:16 | 2022-10-25T20:56:16 | 441,526,116 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,232 | py | # Figure S2 : Python script for base analysis and figures for Hartwick+2022
# Author: Victoria Hartwick
# Last Modified : 6/29/22
# Import Scientific Modules
import os
import matplotlib
import matplotlib.pyplot as py
import numpy as np
from matplotlib.ticker import MultipleLocator, FuncFormatter #format ticks
from num... | [
"noreply@github.com"
] | vhartwick.noreply@github.com |
0c7cb64d07da4a007ef4afbd7c24b3fad8653680 | bebe6e9195dce6f47fe2f52a06ac85519ab969ac | /binary_search_2d_array_slices.py | 11f04a487ed47d95561a858cd78cd8aea22e8a26 | [] | no_license | jbobo/leetcode | f038ee934c4435a2f5a3e987b3d5b70b860a25e2 | 3894425256f8504f7c8f1903e47f670c6fa32a92 | refs/heads/master | 2022-11-05T07:19:48.897066 | 2020-06-24T01:20:25 | 2020-06-24T01:20:25 | 274,544,298 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,010 | py | #!/usr/bin/env python3
"""
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted in ascending from left to right.
Integers in each column are sorted in ascending from top to bottom.
Example:
Consider the following matrix:
... | [
"nedbobo@Neds-MacBook-Pro.local"
] | nedbobo@Neds-MacBook-Pro.local |
20496097f5f7d9d5460ac3bc6b6e4f2aff62bfac | fe85b4811c93510006b666858d6029156f167f89 | /bin/hooks/notify.py | 6e5dda8635f63227a7b9e6e4d72ce489645fd7c9 | [
"MIT",
"GPL-1.0-or-later"
] | permissive | 9001/copyparty | 39207421ccdc501566105da562a168996e0f9b4c | 48a3898aa692770735a926b0c18300d7da8b021f | refs/heads/hovudstraum | 2023-08-18T15:19:36.934124 | 2023-08-16T19:57:19 | 2023-08-16T19:57:19 | 188,700,274 | 273 | 21 | MIT | 2023-08-09T20:50:27 | 2019-05-26T15:28:33 | Python | UTF-8 | Python | false | false | 1,559 | py | #!/usr/bin/env python3
import os
import sys
import subprocess as sp
from plyer import notification
_ = r"""
show os notification on upload; works on windows, linux, macos, android
depdencies:
windows: python3 -m pip install --user -U plyer
linux: python3 -m pip install --user -U plyer
macos: python3... | [
"s@ocv.me"
] | s@ocv.me |
56c9ec760a7ff4fbc286a000c492d5c732524c16 | f7fdcbc3052559708500e1655dc1feeac2060a22 | /List.py | 5ef1924d32d5b977c9ea3be623ba156e8b842d73 | [] | no_license | VidocqRR/List.py | fdd7a77a10d89047817545c7d53e8adda73b76ed | ebf5575f8e45f0e94b2828ae5484f86bc19f8b71 | refs/heads/master | 2020-04-13T22:52:38.726634 | 2018-12-29T08:11:02 | 2018-12-29T08:11:02 | 163,491,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py |
myUniqueList = []
myLeftovers = []
def AddTest(args):
if args not in myUniqueList:
myUniqueList.append(args)
return True
else:
myLeftovers.append(args)
return False
AddTest(1)
AddTest(2)
AddTest(3)
AddTest(4)
AddTest(5... | [
"noreply@github.com"
] | VidocqRR.noreply@github.com |
b20eb31e621b6af9cf0b1d9291f57832e0b170b2 | e00186e71a1f52b394315a0cbc27162254cfffb9 | /durga/without_rest_models/testapp/models.py | 6cac7e2e06e3e0b26b958a2b5e56c8110c3d2e6b | [] | no_license | anilkumar0470/git_practice | cf132eb7970c40d0d032520d43e6d4a1aca90742 | 588e7f654f158e974f9893e5018d3367a0d88eeb | refs/heads/master | 2023-04-27T04:50:14.688534 | 2023-04-22T05:54:21 | 2023-04-22T05:54:21 | 100,364,712 | 0 | 1 | null | 2021-12-08T19:44:58 | 2017-08-15T10:02:33 | Python | UTF-8 | Python | false | false | 240 | py | from django.db import models
# Create your models here
class Employee(models.Model):
eno = models.IntegerField()
ename = models.CharField(max_length=64)
esal = models.FloatField()
eadd = models.CharField(max_length=64)
| [
"anilkumar.0466@gmail.com"
] | anilkumar.0466@gmail.com |
b1938ef4ef5cf10644ae8f49ecca8a80c622c2e5 | a1dcff1dc2789c271941f08b8069bfa7936a16a5 | /prime number between 1-100.py | de59701db381a6239a5eeb572c6f16fe42ee618a | [] | no_license | Gulnaaznasrin21/Loop | 004e2de2aeb2a09725e0f28752b5d44318ada678 | 3510276fc391b3ee1e21208c058cef474ef7dc7e | refs/heads/main | 2023-07-22T18:31:36.146417 | 2021-09-05T09:18:12 | 2021-09-05T09:18:12 | 403,263,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | i=1
while i<=100:
factor=0
x=1
while x<=i:
if i%x==0:
factor+=1
x+=1
if factor==2:
print(i,"is a prime number")
else:
print(i,"is not a prime number")
i+=1 | [
"noreply@github.com"
] | Gulnaaznasrin21.noreply@github.com |
beb48d37a60a78689bd1746ead88875852e1c2e5 | 74fa733260f66c7dd1e9b7ddf2eb3a9bdd624aff | /train_evaluate_sesemi_tinyimages.py | a64641cca8aaa94cb4e60df467a84dfacec289bd | [
"MIT"
] | permissive | ml-lab/sesemi | 29d6bb3fec0920ed1d6d6f95ea40679c18573c59 | b325936fb5ae425b5ee298ee7011129051cfc69e | refs/heads/master | 2020-06-11T14:51:37.654989 | 2019-06-26T23:42:09 | 2019-06-26T23:42:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,376 | py | """
Train and evaluate SESEMI architecture for semi-supevised learning
with self-supervised task of recognizing geometric transformations
defined as 90-degree rotations with horizontal and vertical flips.
"""
# Python package imports
import os
import argparse
import numpy as np
import pickle
# Keras package imports
fr... | [
"vuptran@gmail.com"
] | vuptran@gmail.com |
cd208c33f5326cb09eeb129fcc87d2573236666d | c5f7963d1b664c5bcb60559b62c4ed39cbf5bc0a | /digifoot/api/apps/league/migrations/0006_auto_20160312_1044.py | cbc524e06328513e24213de5c74b77b075afb89c | [] | no_license | Hernas/digifoot | 611dd8afb7fa0187f855eda158cddd91adb55d95 | 6c26e61ea85577f6779f8e74156b0568e0218bcf | refs/heads/master | 2016-08-12T21:34:51.773495 | 2016-03-12T16:11:18 | 2016-03-12T16:11:18 | 47,719,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-03-12 10:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('league', '0005_matchmodel_tweeted'),
]
operations = [
migrations.AlterModelOpt... | [
"bartosz@hernas.pl"
] | bartosz@hernas.pl |
6e7c3ec5e74550ca5f1d604f5f6a2950d3b44151 | 943b2da5e84aa1d61021a85b4f0cdbfe01dd2d74 | /oaspec/schema/funcs.py | 11b87886f7d4eade3a538c0c9ddfef777e2c3e26 | [
"MIT"
] | permissive | platformsh/oaspec | cd32a3304b14272501d317e6d5aa40f20cfbc18c | 8816bec4ce277d3505d65ccd77485e1a0ce095f2 | refs/heads/master | 2021-07-13T20:18:03.194655 | 2019-06-18T00:22:44 | 2019-06-18T00:22:44 | 206,879,484 | 0 | 3 | MIT | 2021-06-23T13:51:02 | 2019-09-06T21:54:15 | Python | UTF-8 | Python | false | false | 2,728 | py | # -*- coding: utf-8 -*-
import re
from copy import deepcopy
def def_key(key):
"""Compute a definition ref from a key.
Returns:
str: The computed relative reference
"""
return f"#/definitions/{key}"
def get_all_refs(schema):
"""Get all ref links in a schema.
Traverses a schema and e... | [
"nick.anderegg@platform.sh"
] | nick.anderegg@platform.sh |
5eae11d7adebce62256c9c269420987377a3cc26 | 98b2fa349ec2d78bd5826f29dbee0fb95fd10c75 | /uploads/urls.py | 3f940b18b16bea99e92aec70a2a8d646f5da9658 | [] | no_license | aymony80/myproject | 7df5634ea90752ef1d5a1a75d88c181baa056ab9 | 8b58cabdde6b0d02671da45d14daecbace39f19a | refs/heads/master | 2020-04-23T21:08:41.555707 | 2019-02-19T11:19:21 | 2019-02-19T11:19:21 | 171,108,487 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django.conf import settings
from django.conf.urls.static import static
from uploads import views
from django.urls import path
urlpatterns = [
path('', views.model_form_upload, name='model_form_upload'),
]
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
| [
"aymony80@yahoo.com"
] | aymony80@yahoo.com |
6701a5d0ba5e5b012fd5e73566122aec45fe9bd2 | b47ae1d46a3abfbf9dd0192e1f09b15a3c0be570 | /getting_started.py | 8dbd82b18adafc5f5b9e99d14b86f4e66d67716f | [] | no_license | tanishka1411/YoutubeAPI-Analysis | 71aaf217a97ed2d0fc8bb4dea3b098e5066a1793 | b7f984a2af925c6451b6252e81e8b1056adfa02e | refs/heads/main | 2023-06-09T04:08:41.802770 | 2021-06-29T06:49:57 | 2021-06-29T06:49:57 | 381,096,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from googleapiclient.discovery import build
api_key = '#someAPI key'
youtube = build('youtube', 'v3', developerKey=api_key)
# servuce name and version
request = youtube.channels().list(
part='statistics',
forUsername='schafer5'
)
response = request.execute()
print(response)
| [
"noreply@github.com"
] | tanishka1411.noreply@github.com |
a4d873fd7b37a571596b17597053adbafbb8d18a | 1108b133bba685bee7d3b5046ad59a8bb52148b3 | /build_layouts_main.py | 6a07e9ec0242b7b904fbeb66ae8c0e20e8816c72 | [
"Apache-2.0"
] | permissive | tiagodavi70/build_layouts | aec6ae07bfbde17e8687a4a42d2776f5d39e5427 | 9860cd1c4f87c1cecfa1bbd18b2e4c5bdc94398f | refs/heads/master | 2021-02-09T03:01:54.531800 | 2020-04-28T13:44:17 | 2020-04-28T13:44:17 | 244,231,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | import streamlit as st
import pandas as pd
import numpy as np
import time
from PIL import Image
import altair as alt
import seaborn as sns
from matplotlib import pyplot as plt
import learning as lrn
from preprocess import get_normalized_datasets, transform_continuous
@st.cache
def data(cat):
return get_normalize... | [
"tiagodavi70@gmail.com"
] | tiagodavi70@gmail.com |
dc47da1229fb1fe7b1bab77e741c3d578297a343 | d205793571b39fe254f513f4437f37c47f4db011 | /src_py/ztf_data.py | 8c01c96019f18722082a48d7ffa032ab7d4514e1 | [] | no_license | memanuel/kepler-sieve | ba996c4008edec3458ac0afbfa3bee95367467cd | 9f11f377d82cb941d77159fd7b97ae2300b6ca6a | refs/heads/main | 2021-11-22T19:07:13.725263 | 2021-08-08T20:44:47 | 2021-08-08T20:44:47 | 236,581,914 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,965 | py | """
ZTF Data
Calculations to enrich ZTF data after it is loaded.
Michael S. Emanuel
24-Mar-2021
"""
# Standard libraries
import numpy as np
import pandas as pd
# Astronomy related
from astropy.units import deg
# UI
from tqdm.auto import tqdm as tqdm_auto
# MSE imports
from db_utils import df2db, sp2df, sp_run
from... | [
"michael.s.emanuel@gmail.com"
] | michael.s.emanuel@gmail.com |
403ab9bd83a5ce8b42777539060c2a980fd1402c | 320e25d46855acbf3a84107c03addca0595a8676 | /preshoneypot.py | 6e229a9b06dbac5089c42f6aeb4c40f7337f2a39 | [] | no_license | itd/cuddle-fuzz | f212914fb4e597834761d14874d67761897c1c23 | c33f3f179b88cc2cb67851d78d5666fa460faac4 | refs/heads/master | 2021-01-10T19:25:03.225598 | 2012-09-13T05:36:20 | 2012-09-13T05:36:20 | 35,767,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,404 | py | #!/usr/bin/python
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# ..__...__.........._____.
# _/ |_|__|._______/ ___\
#... | [
"YuvalN210@gmail.com@8cf99bae-c7dc-ee7b-a7b4-1828fa5c92ce"
] | YuvalN210@gmail.com@8cf99bae-c7dc-ee7b-a7b4-1828fa5c92ce |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.