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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04231d91e5d33e957c15c28892b7716bb60a70c1 | 895dfeb5c6af5e8c66772491d164e9d5b57d4302 | /Courses/Full_Stack_Foundations/restaurant_raw/webserver.py | 7fa49de6ca38602236c51866bf2598078cc5b8a0 | [] | no_license | JPGITHUB1519/FSND-Udacity | 753747aac6b727ac7a0e98d95059127bf8a3690d | a7acb4df6ff3b2216da5749e7087b0e254ed80cd | refs/heads/master | 2020-12-30T12:11:21.051853 | 2017-10-05T02:30:22 | 2017-10-05T02:30:22 | 91,410,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,540 | py | import os
import cgi
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from jinja2 import Environment, FileSystemLoader, select_autoescape
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem
### jinja config
config = {
"directo... | [
"juanpedro1519@gmail.com"
] | juanpedro1519@gmail.com |
3633c7e75bbbbfb62058908d6c2347390b3e5304 | 181422ac454cee38ed994b221d9ead920dc68654 | /git_size_checker.py | 372ecfd580a53b232b58663d6c73086233e2e4f0 | [] | no_license | arnab-api/AI_project | 26c54b82a5d23b9d7cebc78636e8692b9491b8f3 | d1b7e62656fd23594e38f2d7d7ee2689d7ed5217 | refs/heads/master | 2023-02-15T09:40:23.371708 | 2021-01-10T15:00:20 | 2021-01-10T15:00:20 | 328,405,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | import os
# print(os.listdir("AudioFeatureExtractorV2"))
# print(os.stat("AudioClassifierMicro.tflite").st_size)
# print(os.path.isfile("AudioClassifierMicro.tflite"))
# print(os.path.isfile("AudioFeatureExtractorV2"))
def byte2mb(val):
val /= 1024
val /= 1024
return val
def rec(root_path):
if(os.p... | [
"arnab.api@gmail.com"
] | arnab.api@gmail.com |
4f94b21778eba16259e6ec893024d052e61c4f76 | dca48a105eb467c1c92bfe7e49c0f0666ff7d5a3 | /python/practice/materials/core-python-getting-started-resources/m08/clip-06/roots-v3/code.py | 445954307b05827481c1b4cc78e4c8e82431a7d5 | [] | no_license | hbqdev/code | a97233456ad75df5552a003698cfcb99c6f7836d | 7012d203aaf8fdc753491603f9a35dc69ca3286a | refs/heads/master | 2023-06-25T13:06:01.851720 | 2023-06-13T00:11:54 | 2023-06-13T00:11:54 | 184,701,167 | 0 | 0 | null | 2019-05-03T05:02:08 | 2019-05-03T05:02:08 | null | UTF-8 | Python | false | false | 332 | py | def sqrt(x):
# . . .
def main():
print(sqrt(9))
print(sqrt(2))
try:
print(sqrt(-1))
except ZeroDivisionError:
print("Cannot compute square root "
"of a negative number.")
print("Program execution continues "
"normally here.")
if __name__ == '__main__':... | [
"tin.tran@split.io"
] | tin.tran@split.io |
690f9ceab76f6d7a247f5bc40914f73d5d853a8a | 74d177dcaa9375c053ce1ed4db3bc98b612ef1b1 | /Limits/htautau/compareList.py | 2896104bf5e69e0b02f687a7437f33a71dc081e3 | [] | no_license | bianchini/usercode | 1eae2b15796af2d9027f45479c1174d9cceb0b55 | e8ace1099459ac37201de2f311e3c57a5049393a | refs/heads/master | 2020-05-17T17:20:56.094100 | 2013-11-08T11:13:33 | 2013-11-08T11:13:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | #!/usr/bin/env python
import commands
import re
import os
import sys
###########################################
###########################################
def compare( name1 , name2 ):
f1 = open(name1, 'r')
nEvents1 = 0
nEvents1Matched = 0
for line1 in f1.readlines():
if ( re.sea... | [
""
] | |
a2d9c2d6ca817561f57b28d85dd288c47d184e06 | 135f267a1c272a7fcd5ba23e9cccc9e7241faef0 | /discord_bot/controllers/_bot.py | 540018f959cc7437f5791619464bf935cf060b2a | [] | no_license | Skarlett/discord-bot | 47b0616f8a2ab8b3bb5526fad5fe6e8ebaec4c65 | 273b5e7057b222261866a43353d762670dbe3391 | refs/heads/master | 2023-04-17T08:09:48.233726 | 2021-05-03T05:49:57 | 2021-05-03T05:49:57 | 254,836,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import logging
import asyncio
from discord.ext import commands
from ..config import core
from ..utils import parametrized_decorator
bot = commands.Bot(core.PREFIX)
@bot.listen()
async def on_ready():
logging.info("{} Online".format(bot.user.name))
@parametrized_decorator
def bg_task(fut, wait=30, bot_ready=True... | [
"zykl@protonmail.com"
] | zykl@protonmail.com |
9250680d4b5d68902f597d45ca7b9a1fcad029a9 | 269e74a4b29f389349ae0d9b13db1ddda2f3707c | /functions.py | d384cb28e50b5c2af78d50f63e939a26a7712955 | [] | no_license | MehdiRezvandehy/Machine-Learning-for-Leakage-Detection-from-Hydrocarbon-Wells | 1100f45e749c1608020a151f781d0220cec0cecc | 72ffbe5257814fe6e89a6f666586fc77be76ff1c | refs/heads/master | 2023-01-04T19:35:25.141747 | 2022-12-31T21:36:04 | 2022-12-31T21:36:04 | 276,810,349 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30,308 | py | # Required function for running this assignment
# Written by Mehdi Rezvandehy
import pandas as pd
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib.path import Path
from matplotlib.patches import PathPatch
from matplotlib import gridspec
import matplotlib.patheffects... | [
"noreply@github.com"
] | MehdiRezvandehy.noreply@github.com |
ccdb7e2bdc5852d77272a77cb14ef144f7da9cd3 | bcb88b603c0824681f530fbaea49085340f76fa1 | /chap10/02_multi.py | 8974ebc9a128a8ddb1b675e0c0155c2cced7b678 | [] | no_license | ma-xiaodong/tf_practice | 45e2b748d28f732f856b72d00336c21bf54b7b17 | a60057f971c6c024d6e670dea8e37e62f69ffb91 | refs/heads/master | 2020-04-03T09:27:16.862725 | 2018-11-05T12:08:33 | 2018-11-05T12:08:33 | 155,165,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,008 | py | import os
import time
from datetime import datetime
import tensorflow as tf
import mnist_inference
import pdb
FILE_NAME = '/home/mxd/software/github/tf_practice/chap10/output.tfrecords'
N_GPU = 1
def get_input():
filename_queue = tf.train.string_input_producer([FILE_NAME])
reader = tf.TFRecordReader()
_,... | [
"xdma@163.com"
] | xdma@163.com |
32dca758ec9a855557c0775a0292f703a4a67442 | fe6aa1fae438ad04b19b9e69f51175c3692638a8 | /B站/【pandas高级应用】Python自动化办公/0801/代码/009/009(matplotlab).py | 400b7230fb882adf4ce3417dcc82fa443b9072ac | [
"MIT"
] | permissive | JiafengtTang/python_auto_office | 6a90d2792bb08dd0e236a80c78615bbaefbb6a88 | 3dfb9fb7f00c94dd61221c77c592dc3d749b57d4 | refs/heads/master | 2023-08-30T13:57:08.296743 | 2021-11-09T00:05:21 | 2021-11-09T00:05:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import pandas as pd
import matplotlib.pyplot as plt
students = pd.read_excel('C:/Temp/Students.xlsx')
students.sort_values(by='Number', inplace=True, ascending=False)
students.index = range(0, len(students))
print(students)
plt.bar(students['Field'], students['Number'], color='orange', width=0.7)
plt.xticks(students[... | [
"61504442+zhaofeng092@users.noreply.github.com"
] | 61504442+zhaofeng092@users.noreply.github.com |
26fcccc1e7e3f84d281cf0fe8be0c918b62128ed | daa023c91dc1fe0fed0033dead8fe75f0e5a1d95 | /common/optimizer.py | 107bd9ad9e014ef3fd77fa7f263eb2be80ad74b3 | [] | no_license | skisa31/learning_deeplearning | d79ab5e292b33714241a56183eefb862c5c68e13 | 52ae54676bf070223da97e608a229847a1bb8b51 | refs/heads/master | 2022-11-20T15:05:01.168165 | 2020-07-21T06:44:18 | 2020-07-21T06:44:18 | 265,997,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | import sys
sys.path.append('.')
from common.np import *
class Adam:
def __init__(self, lr=0.01, beta1=0.9, beta2=0.999):
self.lr = lr
self.beta1 = beta1
self.beta2 = beta2
self.iter = 0
self.m = None
self.v = None
def update(self, params, grads):
if self.m is None:
self.m, self.... | [
"skis1031@gmail.com"
] | skis1031@gmail.com |
1aa3752c58335a1b8cb63f5ca192c48180bc3889 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4062/codes/1845_2220.py | 3d32d34040dc707ac31d11f0735accdb07b48017 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from numpy import *
m= array(eval(input("Pagamentos: ")))
l = shape(m)[0]
c = shape(m)[1]
for i in range(l):
print(max(m[i, :])) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
db1017761b8a60f899417552208f0142c854572f | 39152b57735b719505bd53188b88fd806b3e49bf | /Web_Book/settings.py | 7178de31ca202b70bdb9f9461b642e9517d33e15 | [] | no_license | Jamly777/GCDAPIs | 5614e2b260788068f3fd7ac2043b02f14051d6a4 | 344db3dbc184c58d057b2b75a87a8fcf934da21b | refs/heads/master | 2022-11-27T17:45:43.376592 | 2020-08-10T08:25:25 | 2020-08-10T08:25:25 | 285,748,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,300 | py | """
Django settings for Web_Book project.
Generated by 'django-admin startproject' using Django 2.2.13.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"849336620@qq.com"
] | 849336620@qq.com |
2e71d123768a4baaceb7cf78751643f3bc645473 | eb8855df9efcaafe7be3c33ac6a9eba09190a802 | /article/migrations/0002_articlepost_total_views.py | 1afe206df23165b96a38b7402b009dcd70fbdaca | [] | no_license | demo112/Bloging_new | 4441b32cde519b8aa6e5fd04a30af09a2e2cbe46 | ab8fbf0e33dd91413a707491bfce3e46d4d021c9 | refs/heads/master | 2020-04-30T00:52:41.741959 | 2019-03-28T00:08:28 | 2019-03-28T00:08:28 | 176,513,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # Generated by Django 2.1.7 on 2019-03-22 19:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='articlepost',
name='total_views',
... | [
"huafengdongji@hotmail.com"
] | huafengdongji@hotmail.com |
ff6706ef93fb182f91ea4f91a6528b015c9269fd | 75aa56d5e955fe5253d1cfe55632669e3d51f3e5 | /rento/rento/settings.py | a33c3aa63316cd5667af79c8ad570613cc710979 | [] | no_license | tennnmani/rento | 922da34e3c2f62a017118e5cb7592ffb47977225 | 8a9b2558c0ea610fe1923b46b3d90e583a18435e | refs/heads/main | 2023-02-25T10:47:44.888519 | 2021-01-26T18:40:30 | 2021-01-26T18:40:30 | 332,638,743 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,350 | py | """
Django settings for rento project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib i... | [
"mani.mhzn.182@gmail.com"
] | mani.mhzn.182@gmail.com |
cb601b6849d3998b47d3bd029693d9a1e37a592e | b23ee939e04b591542b45615f03192fc12b99a9a | /koans/about_exceptions.py | 8f6b86390c1a38170973ee8ec141feec288e89bc | [] | no_license | uneeque/python_koan_test | 866cb4f36783769a08cb1edb299094ed7ea71c07 | 4f00131101fc2cd444d7becb6c6859c322562bc7 | refs/heads/master | 2020-06-03T14:16:40.325113 | 2019-06-18T18:47:47 | 2019-06-18T18:47:47 | 191,600,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from runner.koan import *
class AboutExceptions(Koan):
class MySpecialError(RuntimeError):
pass
def test_exceptions_inherit_from_exception(self): #Do not understand
mro = self.MySpecialError.mro()
self.assertEqual('RuntimeEr... | [
"bazarbaevnurz@gmail.com"
] | bazarbaevnurz@gmail.com |
c3d3b70e25b259b22154ba2a2e6aa29eb29097b7 | 60fcd9a1febe00f2f0dbff8a63e0679080250e47 | /class/method_over_riding.py | 144bb21c7d11c53049ca53ae8a7d8709ec4f30ed | [] | no_license | Vishnuprasad-Panapparambil/Luminar-Python | 71617ce7fc5f3d6de1c151bf473d62ab2ecebb83 | d0cb9d1ac197c5e3bb45a003db36e824a04ea68f | refs/heads/main | 2023-01-05T05:58:48.798407 | 2020-11-06T02:05:42 | 2020-11-06T02:05:42 | 305,049,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py |
class parent:
def phone(self):
print("i have nokia phone")
class child (parent):
def phone(self):
print("i have i phone")
ob=parent()
ob.phone() | [
"vishnuprasad.p19@gmail.com"
] | vishnuprasad.p19@gmail.com |
ffa9c4099bf42b49d909d35e8d0ab824c5bd1fcc | 5197e8e9e324a08a95010d1e51b596b3b30c5b12 | /test/functional/listtransactions.py | 778dc608a7a55ebe38f33f2e0245d2c6093e3acc | [
"MIT"
] | permissive | bitcoinx-project/bitcoinx | 8bb5144e313c5995c192386b55202a0b4ff45fed | d422a992e7efee1ea1fb82cf7a1e81e04ca716c0 | refs/heads/master | 2021-07-11T19:03:44.279254 | 2019-01-24T06:24:30 | 2019-01-24T06:24:30 | 116,213,243 | 159 | 86 | MIT | 2019-01-28T09:02:36 | 2018-01-04T04:08:40 | C++ | UTF-8 | Python | false | false | 10,268 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the listtransactions API."""
from test_framework.test_framework import BitcoinTestFramework
from ... | [
"hoito.chiu@gmail.com"
] | hoito.chiu@gmail.com |
44c5dbbc3246735c0cdeeccde1162967ba8c658e | f768ddba19c7bc7664ae581daeef5fe2f650a539 | /post/post.py | ddb481a99e2e6e443b0f580bbc720d0f68fac4c2 | [] | no_license | douwings/pythonWork | 36ac2ba32a721ed6d9af62a9168eee12a61891af | 70f84eb179e12cc36b521fdb9a2573a14a300d23 | refs/heads/master | 2022-12-23T18:41:50.560391 | 2020-09-28T06:20:36 | 2020-09-28T06:20:36 | 273,136,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,047 | py | # -*- coding=utf-8 -*-
import urllib.request
import urllib.parse
import ssl
import json
import time
def postsendsms():
ssl._create_default_https_context = ssl._create_unverified_context
sendsmspost_url = 'http://172.16.2.111:3000/v1/login_by_wx'
t = time.time()
sendsmsheaders = {
# 'Conte... | [
"1020763068@qq.com"
] | 1020763068@qq.com |
736aecf523f7137ffba1df7104167bee096698f0 | 035ec6f79bb70374a54d6b491b34114fcc9f0e24 | /wtDigiTwin/fast/fastlinfiles.py | 0b796235f81f0435db9e1ae181eee4b64a327b49 | [
"MIT"
] | permissive | deyh2020/wtDigiTwin | b8b8d8f0a0ca73a6e7dddba0e3b6457a7551a9da | 2c1e965ab5fdca10e67b0db9ef87837f5abebc02 | refs/heads/master | 2023-07-14T07:23:28.628625 | 2021-07-26T15:12:22 | 2021-07-26T15:12:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,700 | py | import numpy as np
import pickle
import glob
import os
import weio
class FASTPeriodicOP(object):
""" Class for a set of *.lin files, all assumed to be for the same periodic operating point"""
def __init__(self,prefix,nLin=None):
if nLin is None:
linfiles= glob.glob(prefix + '*.*.lin')
... | [
"elmanuelito.github@gmail.com"
] | elmanuelito.github@gmail.com |
9efc5e90d55ff341394c6fe41b0bff5fb5395ea1 | a6d724a60d08f0713cb877fdc1130b514da720cc | /tell_me_about.py | e86473368324980ca7d3c1ca73d9adc7e8a8bb3a | [] | no_license | manojsinghnegiwd/python-scripts | a83bf8d4496ba5defd0fe3f289242eaaf065fffc | 8aabaf94c09de92131f493fd80c865f33c678e99 | refs/heads/master | 2021-05-01T15:45:45.875680 | 2018-02-18T07:47:31 | 2018-02-18T07:47:31 | 121,036,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,576 | py | import requests
import urllib.request as urllib2
from bs4 import BeautifulSoup
import ssl
import re
ssl._create_default_https_context = ssl._create_unverified_context
print('Welcome to Tell Me About Python script')
print('You can type anything from a person name to a topic name.')
print('This script search wikipedia f... | [
"justanothermanoj@gmail.com"
] | justanothermanoj@gmail.com |
af48ea781107381732c9646fcee409e6b6bff303 | 6764133d65c571758a177c70702d12ec536ddf18 | /Q1.py | 5dff7602602b29d01c97169fdc0c7f6042bdefd6 | [] | no_license | crcrazy/ltd-cide | 6f34bb2a030b0960285763cf4ac889d96666e359 | f9f651799d0a5a5733512600fce4a6794c4851d1 | refs/heads/master | 2021-07-20T09:32:59.787202 | 2017-10-30T03:50:45 | 2017-10-30T03:50:45 | 108,799,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | class Solution(object):
def twoSum(self, nums, target):
dict ={}
for i in range(len(nums)):
x=nums[i]
if (target - x) in dict:
return (dict[target-x]+1,i+1)
dict[x]=i | [
"yzh286@g.uky.edu"
] | yzh286@g.uky.edu |
6471265b3a69ef9f42e3e3b0de77ee17ef7dfafc | e9e382693ca8c5705c75f5e9e1da1ad9c9cac398 | /home/urls.py | e843d4616057ffb79423f5e7b6195179e7159b6e | [] | no_license | manishdogra123/Django-REST-API-framework | 57af9af947ed8bfe5d639fd4e8e0de421bed1657 | 078a4a5e430a5b81199a9098bcf235629c3535c0 | refs/heads/master | 2023-08-02T21:15:35.460820 | 2021-09-27T08:46:34 | 2021-09-27T08:46:34 | 410,949,755 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | from django.contrib import admin
from django.urls import path,include
# from .views import Courselistview,Courselist_detail
# from home.views import Courselistview,Courselist_detail
urlpatterns = [
# path('course', Courselistview.as_view()),
# path('course/<int:pk>', Courselist_detail.as_view()),
] ... | [
"erdogra141@gmail.com"
] | erdogra141@gmail.com |
3729444001e26cd3ac974a5d067651df3abee8ff | 76d36b932c50a8755968addff84443c3dc4f8485 | /tools/realty_ui.py | 5ad33da1968dcd4ff7473eec1d8ee7f83865c103 | [] | no_license | tuapsekad/openLand | 35e27dfe2428aa30a5e1d673545420fab04f6aa2 | 7c418cfb84a228c06ce6838397d38723fb32bec7 | refs/heads/master | 2021-01-23T21:33:05.799625 | 2014-07-04T03:57:14 | 2014-07-04T03:57:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,395 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'realty.ui'
#
# Created: Mon Oct 28 11:22:38 2013
# by: PyQt4 UI code generator 4.9.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attribut... | [
"biryuchkov@gmail.com"
] | biryuchkov@gmail.com |
7291d1b3abef10b1a064eb0cca80bbcf4084a3ba | df5e97ab2f72371ae953509dfccf78c9da32c01e | /modules/interceptorChain.py | 30729c56672bf5bd0d4b6644af0903987fa16086 | [] | no_license | fenceer/yiqi | 209b3101cffb52e13d3c9a6e8f3ae86577fa6278 | b5c4e3780d0203b925dc9ef8b5dd2bdea7a0a1b9 | refs/heads/master | 2021-01-19T17:42:34.508028 | 2013-09-11T03:54:37 | 2013-09-11T03:54:37 | 12,745,257 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | #coding:utf-8
'''
Created on 2012-9-29
@author: fenceer
'''
from modules import tools
class Chain:
def __init__(self, handler, interceptors=[]):
self.interceptors = interceptors
self.handler = handler
def do(self):
self.interceptors.append(self.handler)
self.intercepto... | [
"fenceer@126.com"
] | fenceer@126.com |
8958ae880a02f986aeae49ecf1ed0c08c362f8fa | 8f71fd6ef23f39c891b2b2d4c5039b7cc928cb6c | /course_2_assessment_4.py | 3b3d947292413e4ac9e6e7b2f03b8375192d1da2 | [] | no_license | CoralieHelm/Python_Functions_Files_Dictionaries_University_of_Michigan | 86368b1fdb233288b50742fc805f1dc905b2d1df | f0b1ab6f1e20c4643c81127ce37e226691b73b2a | refs/heads/master | 2022-11-14T12:46:07.103730 | 2020-07-05T20:57:19 | 2020-07-05T20:57:19 | 267,418,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,182 | py | #June 4 2020
#course_2_assessment_4
print("*****************Beginning of Assessment 4**************")
#Task 1: Write a function called int_return that takes an integer as input and returns the same integer.
def int_return(integer):
return integer
print(int_return(5))
print("<<<<<<<<<<<<<<Task 1 Completed>>>>>>>>>>... | [
"helm.coralie@gmail.com"
] | helm.coralie@gmail.com |
cf5c19bab0771545bb248933863ae1068d73dd9f | a6fb05605c89606cfc43e25e8d6e38ec887cef69 | /resources/user.py | 2c3a66b44cd93d79b424bc2fdba37fb8a29a7f8b | [] | no_license | zer0eXploit/stores-info | 80b55de844dadf39b04d2e460f99f4a482185094 | e33610bc3fe61443b65112cffb46f286c72393a7 | refs/heads/master | 2022-11-25T11:53:52.152349 | 2020-08-07T12:12:34 | 2020-08-07T12:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | import sqlite3
from flask_restful import Resource, reqparse
from models.user import User_Model
class User_Register(Resource):
parser = reqparse.RequestParser()
parser.add_argument(
"username",
type=str,
required=True,
help="This field cannot be empty!"
)
parser.add_ar... | [
"yanwaipann@gmail.com"
] | yanwaipann@gmail.com |
f359d2d972956ca7e1c4ea94324273fa95da5ccf | 6bcffc29218f2a5459cac1f20f4eada0430abea4 | /pacioli/database/sql_views.py | 4458f0f649d4847ab93f46470e6cda941c927f7e | [
"BSD-2-Clause"
] | permissive | mantach86/pacioli | 8091c053440384e2bf8f4241d50da181b7dbc031 | 4a66ed80b1e3408e19d81e0ce7cfa46e477f489e | refs/heads/master | 2020-07-24T18:41:35.146089 | 2017-04-21T15:15:46 | 2017-04-21T15:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,441 | py | from pacioli.models import db
def create_all():
create_ofx_views()
create_trial_balances_trigger_function()
create_amazon_views()
create_bookkeeping_views()
create_mappings_views()
def create_trial_balances_trigger_function():
db.engine.execute("""
CREATE OR REPLACE FUNCTION
bookke... | [
"pierre@rochard.org"
] | pierre@rochard.org |
f4dcb5bed04ceb35dfad9830ec4243ee6f9c8edf | 9df71ddd50924d77cd927907d83665814a2a3cf3 | /actor-critic/models.py | f081787ae412fe26f910da5c3f98784e840954e4 | [] | no_license | KaleabTessera/Policy-Gradient | 6850857b1cdb76185bebe8b3bfeba22c69863dbf | 57080ebfb42fadd90e791650b0b9fe6a17375b6a | refs/heads/master | 2022-12-10T01:39:16.248195 | 2020-04-16T21:24:59 | 2020-04-16T21:24:59 | 217,216,053 | 1 | 0 | null | 2022-12-08T06:46:03 | 2019-10-24T05:10:05 | Python | UTF-8 | Python | false | false | 3,505 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
# Code was based on https://github.com/udacity/deep-reinforcement-learning/tree/master/ddpg-bipedal
def hidden_init(layer):
fan_in = layer.weight.data.size()[0]
lim = 1. / np.sqrt(fan_in)
return (-lim, lim)
class Acto... | [
"kaleabtessera@gmail.com"
] | kaleabtessera@gmail.com |
4e6f95c9da3381a0fe0445b1c85014bd41b95e72 | 7b4219c553d054152c2a1f217660d2abc7b7c50a | /logistics/apps/school/migrations/0002_excel.py | 543fc348c415d35fe2f56b35dd42d49cb417e3c4 | [] | no_license | charleswithdeng/logistics | bfb4c7e5bdc238fac0839c5a8844a47b27e1ec27 | d94e9bcae56f3c7e85811b7bd09c7dbd9c5a6a80 | refs/heads/master | 2023-02-16T01:26:13.359013 | 2021-01-05T07:56:13 | 2021-01-05T07:56:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # Generated by Django 3.1 on 2020-10-19 06:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Excel',
fields=[
... | [
"charlesdeng@CharlesdeMacBook-Pro.local"
] | charlesdeng@CharlesdeMacBook-Pro.local |
3a7ececd4212b97301895297e9069359d8976e46 | 4bbc4bb76c38029805ceb1c121514de284492603 | /runner.py | d1f37d1c5b596126251702d8f573532a75f59122 | [] | no_license | Satwato/Social_distancing_with_Detectron2 | 949bf8a518b4cc044a46b6e5736a6931d2f70949 | 7cec9e01f0e7aa9f1518c8cbc2131aa4bd4db7d3 | refs/heads/master | 2022-08-27T18:34:16.069685 | 2020-05-23T15:25:02 | 2020-05-23T15:25:02 | 266,351,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,097 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import argparse
import glob
import multiprocessing as mp
import os
import time
import cv2
import tqdm
from detectron2.config import get_cfg
from detectron2.data.detection_utils import read_image
from detectron2.utils.logger import setup_logger
fro... | [
"stwtdey1@gmail.com"
] | stwtdey1@gmail.com |
126fa372fac620d94a1e16e245af5af3a8bdcd37 | e93f130e52103c3ae0ffd6953afb855ff9f0ac7b | /wrangle/05-deep-learning.py | bd7fec49140f511482de86ca501d72e0048c48c6 | [
"Unlicense"
] | permissive | Danielli-Itai/TfFizzBuzz | f7dfe95ac582163275e8ac0e02e9cd486726a367 | b5962dcf1ad0f111041bb890df515abd6a2fce7a | refs/heads/master | 2021-07-16T01:11:20.038250 | 2020-06-20T09:02:06 | 2020-06-20T09:02:06 | 178,721,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | # finally, a deep learning model! two hidden layers
# https://en.wikipedia.org/wiki/Deep_learning
import tensorflow as tf
import numpy as np
from command_line_args import arg_parser
from data import data_from_args
from model_helpers import build_model, init_weights, set_seeds
args = arg_parser.parse_args()
data = da... | [
"Danielli.Itai@gmail.com"
] | Danielli.Itai@gmail.com |
7b377b96f1e1c103359d9209a3bec3590175931e | 1e780892082d464b07ce2b808ea0b484a7511d78 | /puppies/puppyqueries.py | 79d7676fdb36dfad1a92d2c61dd511f691543b3b | [] | no_license | jjyoung1/ud-vagrant-forum | 5becd2910da01ba4aec9688d35b641ab782fa45a | 38b2ae7a8ea5b2a26278cfcef58f2f1c598c9ad0 | refs/heads/master | 2020-12-03T02:12:00.353538 | 2017-08-09T18:01:25 | 2017-08-09T18:01:25 | 95,914,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from sqlalchemy import create_engine
from sqlalchemy.orm.session import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from puppies import Base, Shelter, Puppy
engine = create_engine('sqlite:///puppyshelter.db')
Base.metadata.bin = engine
DBsession = sessionmaker(bind=engine)
session = DBsessi... | [
"joel@jyng.com"
] | joel@jyng.com |
e881b8ef6b8e8e4f87240e63f20dfb5e36f9e868 | aaf45505b38ee0d39f31aba0c6f801a178da3f38 | /baactree/1W/LogisticClassification/LC.py | 77715554d308daa775f4965c91544faedf3b3095 | [] | no_license | SRF-2018/DeepLearning | 87eabc2ae3770babd753e8fa0e9a2eac46e03905 | 5172caa43f0590789c9ae7fd9c4b4140fc4d502c | refs/heads/master | 2020-03-07T05:19:22.249490 | 2018-04-08T04:50:58 | 2018-04-08T04:50:58 | 127,292,455 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore",category=FutureWarning)
import h5py
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
# make training data
num_points=2000
vectors_set=[]
for i in range(num_poin... | [
"bsj0206@naver.com"
] | bsj0206@naver.com |
b6076b5e720e510264d359984df649983226d155 | bac5ecb5eef06dfe76b9b7bff80faee7485c67dd | /.history/django_vuejs_tutorial/django_vuejs/dataiku/admin_20200829045700.py | 95c85e8343b24f314b19ffb3176a56a4567e185b | [] | no_license | MChrys/dataiku | fb1e48401d544cbcc5a80a0a27668dc9d2d196e5 | 6091b24f565224260a89246e29c0a1cbb72f58ed | refs/heads/master | 2022-12-16T11:06:13.896643 | 2020-09-12T19:03:51 | 2020-09-12T19:03:51 | 293,287,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from django.contrib import admin
# Register your models here.
from .models import QCM, Answer, Task, Dataiku_account, Operation, Session, Question, Run, Posibility
admin.site.register(Task)
admin.site.register(Dataiku_account)
admin.site.register(Operation)
admin.site.register(Session)
admin.site.register(Question)
a... | [
"cbeltran@umanis.com"
] | cbeltran@umanis.com |
d2d869abcf663c008f157d716357b792152c0431 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/tablib-0.10.0/tablib/packages/openpyxl3/shared/date_time.py | 8a58cd098dcb8ffa0bdc3773c76a3d882c73d5c1 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-Advertising-Acknowledgement",
"MIT"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 5,931 | py | # file openpyxl/shared/date_time.py
# Copyright (c) 2010 openpyxl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, cop... | [
"abraham@elmahrek.com"
] | abraham@elmahrek.com |
afd9b3554a2856f72ec267d25580cd621ce7806c | 11b0c124262ac40de87d756389082462d8452e4d | /keras/keras42_9_cifar100_lstm.py | 0852122d14eec70faace02ae66a62b886d04172b | [] | no_license | Hyunwoo29/keras01 | 164b519f9bb70d55f7bfa91c66529cee4d012b24 | 494611a94420f8e268c37085ccf0b0de4aa71048 | refs/heads/main | 2023-08-06T07:19:13.288634 | 2021-10-05T14:03:56 | 2021-10-05T14:03:56 | 383,744,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | from tensorflow.keras.datasets import cifar100
import numpy as np
import matplotlib.pyplot as plt
# 1. data
(x_train, y_train), (x_test, y_test) = cifar100.load_data()
x_train = x_train.reshape(50000, 32*32*3) # (50000, 32, 32, 3)
x_test = x_test.reshape(10000, 32*32*3) # (10000, 32, 32, 3)
from sklearn.preprocess... | [
"nbaksa3@gamil.com"
] | nbaksa3@gamil.com |
7a9db2bb719fe7a1ad52fb8c0618e00a9c6c3855 | e3617ed5606ca74e7ee6cd6597005440718f5028 | /tests/conftest.py | 70d8448ced26f3929ad8751acf05d44b4bc004ef | [
"Apache-2.0"
] | permissive | evrardjp/ansible-inventory-manage | b44efd4310b8b818d02c64cc18eaff3fa28ce5df | bcbc5e4926a7673067077e1f1435e7bbeace76f3 | refs/heads/master | 2021-04-09T10:56:37.644909 | 2018-05-30T08:35:12 | 2018-05-30T08:35:12 | 125,503,957 | 1 | 0 | Apache-2.0 | 2018-05-30T08:35:13 | 2018-03-16T10:54:04 | Python | UTF-8 | Python | false | false | 480 | py | """ Global testing fixtures """
import pytest
import json
import ansible_inventory_manage.inventory
inventory_file = 'tests/small.json'
@pytest.fixture()
def inventoryloader():
"""
Loads a standard inventory that
can be used for manipulations
"""
with open(inventory_file, 'r') as fd:
fc =j... | [
"jean-philippe@evrard.me"
] | jean-philippe@evrard.me |
0c03c57ed9835182ec5ae523abf2d298197c8156 | b30cf885b32ec4477b2022e01a3024ae797cb48a | /bui/backend/value.py | 38591e5a91cf46281867254028ce3ae38ed6d24a | [] | no_license | bebraw/bui | bfbf76e58aecd922cda2ca60d1a33dff5261728d | 63aa75034d9f5f3fbd02341d5be060b84adfcd32 | refs/heads/master | 2023-07-10T02:55:59.214228 | 2009-01-10T16:54:24 | 2009-01-10T16:54:24 | 32,132,846 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,730 | py | # -*- coding: utf-8 -*-
import sys
from bui.utils.math import clamp
ABSOLUTE = 'absolute'
RELATIVE = 'relative'
AUTO = 'auto'
MODES = (ABSOLUTE, RELATIVE, AUTO, )
class ConstrainedValueProperties(object):
def get_width(self):
return self._constrained_width.value
def set_width(self, width):
sel... | [
"bebraw@dff6c430-ad89-11dd-9763-1166fc48c086"
] | bebraw@dff6c430-ad89-11dd-9763-1166fc48c086 |
330d0d474962bb7acba27ee14364fa45f78a0d2f | c77185d50e341c2f6702aa491477204de7d59eea | /args_and_kwargs.py | 27b7e90546851517bf1ef9a2f1045ef8422fe8e2 | [] | no_license | ardaunal4/My_Python_Lessons | ed8ea74861b35ec1966cf4665bc57c08f80dba0b | 563ec855f3ead40fe9468272162a1e5036c7c4cd | refs/heads/main | 2023-04-09T17:23:43.206308 | 2021-04-27T12:36:58 | 2021-04-27T12:36:58 | 350,825,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | """
*ARGS:
*args(arbitrary arguments) and **kwargs allow you to pass multiple arguments or keyword arguments to a function
*args usage:
def something(*args):
return args -> result of return will be a tuple
**KWARGS :
works just like *args, but instead of accepting positional arguments it accepts keyword(or... | [
"noreply@github.com"
] | ardaunal4.noreply@github.com |
2366786f7a3b2ce29c4d743b0ba81791a2013a84 | 3a570384a3fa9c4c7979d33b182556e1c637e9eb | /anwmisc/anw-pyui/Packages/pyui/renderers/unseen.py | 1caadb76f8f683700fdcc1917514579e56fa470d | [] | no_license | colshag/ANW | 56a028af5042db92b5ead641dc542fcb4533344e | 46948d8d18a0639185dd4ffcffde126914991553 | refs/heads/master | 2020-03-27T00:22:49.409109 | 2018-10-27T06:37:04 | 2018-10-27T06:37:04 | 145,618,125 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,479 | py | import PyUnseen
from msgs import *
import pyui.locals
from pyui.renderer3d import Renderer3DBase
from pyui.desktop import getDesktop
messageMap = \
[
WM_KEYDOWN,
WM_KEYUP,
WM_CHAR,
WM_MOUSEMOVE,
WM_LBUTTONDOWN,
WM_LBUTTONUP,
WM_LBUTTONDBLCLK,
WM_RBUTTONDOWN,
WM_RBUTTONUP,
... | [
"colshag@gmail.com"
] | colshag@gmail.com |
57e2760dbb318fd36e4e82912374e7cb14a44843 | ccc7f18c951b612d9fa3dc920a46b4fd0fa84fa3 | /Administration/forms.py | f954cb300b8e0f4dfe088b7c626cabee4ac2bea1 | [] | no_license | Kanishk-K/CATWISE-Heroku-Server | 46cda41fdb4ac41ae9a900939acc574d1318da84 | fbe3f4a23b38f59e0d2be332a05b2720d4b59b10 | refs/heads/master | 2023-04-05T04:47:15.701838 | 2021-04-03T01:14:13 | 2021-04-03T01:14:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth.models import User
from .models import *
class LoginForm(AuthenticationForm):
username = forms.CharField(
max_length=254,
widget=forms.TextInput(attrs={'class': "form-control... | [
"Kanishkkacholia@Gmail.com"
] | Kanishkkacholia@Gmail.com |
4123da66d0571b55dbd372450e6e284ae6691b50 | dc12310e8203397d033accffe4f95fdae2fe1b45 | /Code/04_Poly_Editor.py | 12d74c576047468b14460fdd40a3ec860a544c81 | [] | no_license | scozmcluc/intropython2014 | 7d25692090587480d0df8962d2422dcaadb12988 | e09f2425ade912df20e2c6349a70623ec17e38db | refs/heads/master | 2020-12-24T18:03:55.050288 | 2014-06-20T18:16:58 | 2014-06-20T18:16:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,463 | py | # encoding=utf-8
# Created by quazinafiulislam
"""
This is an example to show how to build cross-GUI applications using
matplotlib event handling to interact with objects on the canvas
"""
import numpy as np
from matplotlib.lines import Line2D
from matplotlib.artist import Artist
from matplotlib.mlab import dist_poin... | [
"gamesbrainiac@gmail.com"
] | gamesbrainiac@gmail.com |
f5d5c94e264e9b416f9e321c6f92c2a627772d05 | 9b265894d94a46f91ca20aab4fb5ece5d635dd16 | /LPAv/Trabalho 9 - Python/questao1.py | 5fe445972f602478bf68c2a4d9cdbae5b266bf31 | [] | no_license | JosephLevinthal/LPAv | fad4499ec294b3bbec82f73c9989fcf602f65d79 | 73ecf1cb39b550b13be558b80cbd97701ea34fa0 | refs/heads/master | 2021-09-16T11:08:07.828030 | 2018-06-20T02:56:42 | 2018-06-20T02:56:42 | 130,502,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import re
stringDeEntrada = input()
while (stringDeEntrada != "####"):
if (re.match("^([0-9]{7,7}-[0-9])$", stringDeEntrada)):
print("SIM")
else:
print("NAO")
stringDeEntrada = input()
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
6c0aa48ea2ddbddd16653d593264d8170b4bb508 | 5fad7ce897f3a38961cdba5bb58122f6d8611c12 | /cricket/models.py | 56dcc0498ad52649cb4e5991804e279f251a76fd | [] | no_license | aditya-dabhi/Sportulate | 557aa21df545bee28194c708d881fb89f7de537e | 124cb5c63186c2937eef4182447a9521c471d0c1 | refs/heads/master | 2022-11-25T18:25:48.029676 | 2020-07-21T16:36:38 | 2020-07-21T16:36:38 | 257,600,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from django.db import models
# Create your models here.
class CricTeam(models.Model):
name = models.CharField(max_length=100)
primary_color_name = models.CharField(max_length=100)
primary_color_code = models.CharField(max_length=100)
secondary_color_name = models.CharField(max_length=100)
secondar... | [
"dabhiaditya21@gmail.com"
] | dabhiaditya21@gmail.com |
7b7c17e361f20416c6b1ac8296418c9a8ec75d00 | cba8f623e613cfb0cdba73fb373bec68f7bbfdcb | /ABC085D.py | 9802bdf40462578e6247674b1b8a473147a6a75d | [] | no_license | bonoron/Atcoder | 7d0af77a12b40ce2bdebf5ab5a76462629a03ea5 | e8c0d1ed7d113a0ea23e30d20e8d9993ba1430fa | refs/heads/master | 2022-12-24T20:00:32.702741 | 2020-09-24T07:03:48 | 2020-09-24T07:03:48 | 271,685,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | n,h=map(int,input().split())
A=list(tuple(map(int,input().split())) for i in range(n))
A,B=zip(*A)
a=max(A)
count=0
for i in sorted(B)[::-1]:
if h<=0:break
elif i>=a:
count +=1
h -=i
if h>0:
if h%a==0:count +=h//a
else:count +=h//a+1
print(count) | [
"noreply@github.com"
] | bonoron.noreply@github.com |
44cc1428ed5782b69321521d09bc77fbd8230407 | 864b1cb980a200b0df91e6d8de3c9d850bf06898 | /robot_control/lib_robotis.py | a3d9ab6cf2d3ee388448315cd5640b9fee8c2250 | [] | no_license | FreddieOgemark/bioloid_humrob | 612484cfad5aed52ffbffa588b4f429c86bf47fd | 280b78663cbacb370f9a08ee36ea9c27f0b469cc | refs/heads/master | 2021-06-28T07:54:46.780558 | 2017-09-15T20:02:07 | 2017-09-15T20:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,972 | py | #!/usr/bin/python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
... | [
"gustav128@gmail.com"
] | gustav128@gmail.com |
34bce30a64769f2ba955ecd63f564c944fd1c4ab | ff424a906a692638128fdd649ab7e77385b134ab | /sample/models.py | 3f1c100d63dd1c5f0192334ad8300facfc6ef231 | [] | no_license | wwjjwwpt/The-remote-control | 5c7a7996ba5cab6354f3d6e30f9d04dcec69c4a3 | bef9f6d3abc47058692cb10501fb45fccea2853b | refs/heads/master | 2022-11-30T09:49:05.377845 | 2020-08-05T14:01:59 | 2020-08-05T14:01:59 | 285,299,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | from django.db import models
from django.contrib.auth.models import User
from django.core.validators import MaxValueValidator, MinValueValidator
from django.utils import timezone
import os
# Create your models here.
class PathItem:
name = ""
parent = ""
url = ""
child = []
canRead = True
def __... | [
"553060364@qq.com"
] | 553060364@qq.com |
20d3da2423abd2f4b5def5965a6dfd9ba1afb245 | ed09a223102fcf9ef663f747f9a0acc95a2e52ac | /lib/datasets/kitti.py | 50ef345794e8b556b3023f5c37306d805b5b360f | [
"MIT"
] | permissive | zyuerugou/tf-faster-rcnn | f89689ca1dd97f95a1dcbdb6da99ca1feb64be99 | 6d1e3d9691ad3dd570e56a77304fc307969dc0f3 | refs/heads/master | 2020-05-19T06:48:58.463945 | 2019-05-20T02:51:16 | 2019-05-20T02:51:16 | 184,882,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,438 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 6 19:21:21 2019
KITTI datasets imdb class
@author: Administrator
"""
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick and Xinlei ... | [
"noreply@github.com"
] | zyuerugou.noreply@github.com |
a7f514bd83ae5c656945cffe4e6bc5d183b5eef4 | 85a7ee1cbbb52ba4e02b471ee4e59ccffa80b52d | /General/loopcheck.py | 5a2b0b9291dfbb58499c47a9fe12063cb00bd852 | [] | no_license | shivapbhusal/python-workshop-playground | 3ed4efd12088f8416513ab26f2f9373e4313725f | 1d4b1693eb07731ffd43ae55c12bc33f1cd415cd | refs/heads/master | 2022-11-25T14:42:22.990387 | 2020-08-08T01:54:10 | 2020-08-08T01:54:10 | 103,742,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | def countdown(n):
while n>0:
print n
n=n-1
print "Blastoff";
countdown(1000000000)
| [
"civabhusal@gmail.com"
] | civabhusal@gmail.com |
54e37c4b81fec916c8fc8cd7108b3e190dcd4ace | f00699824a8c5def54421ee3cf836ec2cd15d957 | /3/django_1703_day3/app01/urls.py | e7561509abebc6e85ef5e6b1b8c19ae0201bd4be | [] | no_license | ZhiqiWu/student_manage | 9171d78c32d6900b08de9034b9a2f50c9e24d0b8 | da12ebaf4e9d6357cd9f832144ed756a55510433 | refs/heads/master | 2023-03-29T04:56:09.486061 | 2020-01-24T08:11:50 | 2020-01-24T08:11:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.conf.urls import include, url
import views
urlpatterns = [
url(r'^$', views.index),
url(r'^zhale/$', views.zhale),
url(r'^tpl/$', views.tpl),
]
| [
"1049939190@qq.com"
] | 1049939190@qq.com |
76078cb90de2d17011da5b083945e6a4c92670c6 | a0b27e1a3a17ce9ec21bea460ba75b9d72564e33 | /ublog/routes.py | 3975864270044f0b4cf884b72d3cc09e93b704b2 | [] | no_license | florije1988/ublog | f662bc0dadf0fb244af054db2ca1a491b0454827 | a94fd3a52a9898b8e89020a7b8754e52ea00d664 | refs/heads/master | 2020-12-24T20:25:02.679572 | 2016-05-09T09:39:50 | 2016-05-09T09:39:50 | 58,360,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | # -*- coding: utf-8 -*-
__author__ = 'florije'
from ublog import app
from flask import render_template, request, flash, session, url_for, redirect
from forms import ContactForm, SignupForm, SigninForm
from flask_mail import Message, Mail
from models import db, User
mail = Mail()
@app.route('/')
def home():
retu... | [
"florije1988@gmail.com"
] | florije1988@gmail.com |
faa7bd06c204447f3804c32070026adf782a82f3 | 45243d7b7412814b8cb43fefdf088099e0c93419 | /src/user/migrations/0007_user_uid.py | 090e72b9c2445055597e04d4b1cb18f3a2b3feab | [] | no_license | AlexanderNevarko/drec_stud_site | e08e621c54bdd145709913d4a69c8f089475fcad | 4e176a77bf5b4a20e57e1379581713a6fa6d2d21 | refs/heads/master | 2020-09-21T07:55:46.820999 | 2019-01-14T20:22:50 | 2019-01-14T20:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-09-04 12:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0006_auto_20170809_1308'),
]
operations = [
migrations.AddField(
... | [
"makaleks@live.ru"
] | makaleks@live.ru |
ca39eed6f53cf105d6648dc00926f5b3997bac4a | 6a698cc472afb1c759ea605538890613f1fbfb70 | /API-pytest-project/lib/python3.9/site-packages/_pytest/mark/legacy.py | 2d557b5745f289e2b3ca2178890b8165f9e743fc | [] | no_license | rubeldm123/API_Automation_Python_Jan2021 | 26333369a2d239a922f153f555efbcd32bcf5d99 | 0959c62e0a72402762b5074614aeb9677bd4eef7 | refs/heads/master | 2023-02-23T04:01:39.139839 | 2021-01-24T01:57:45 | 2021-01-24T01:57:45 | 332,289,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,055 | py | """
this is a place where we put datastructures used by legacy apis
we hope ot remove
"""
import attr
import keyword
from _pytest.config import UsageError
@attr.s
class MarkMapping(object):
"""Provides a local mapping for markers where item access
resolves to True if the marker is present. """
own_mark_... | [
"rubeldm123@gmail.com"
] | rubeldm123@gmail.com |
9d56dd896cffd36a18ade3a580793c45cf5bb075 | b30c9582b96500e92656e835d6b1022a30efc8a2 | /kkn/kkn.py | 5e4a75f0448174e77bf28c7fbec952d1c5c0e047 | [] | no_license | EtienneBoutet/nrael | 6a9263d6894223828180d1953e0f8d9ca5f609be | 8086d71028c065115456fde7d1a20fc2b074adbc | refs/heads/master | 2020-12-15T18:24:36.902614 | 2020-08-01T18:37:24 | 2020-08-01T18:37:24 | 235,209,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
import numpy as np
import math
from collections import Counter
class KNN:
def __init__(self, k):
self.k = k
self.points = []
self.X_train = None
self.y_train = None
def _euclidian_distan... | [
"etienne.boutet@outlook.com"
] | etienne.boutet@outlook.com |
ba3531ad7c992725f238742ab78fb235ca19c382 | a68e2382bbd3871b103d652941e356be76ea0806 | /shapelets.py | 63cf91c2789a22aa38b9e27d70aa86f8fb15e2cb | [] | no_license | aaapetyan/SearchForBinaries | cb8145b0834d08ef1ba6a0d94e2cac6d207fc24e | a5e2dd14cda6d18f287440fa0c4ad7e9b60f4549 | refs/heads/main | 2023-08-13T23:53:56.217619 | 2021-09-16T19:00:26 | 2021-09-16T19:00:26 | 407,282,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | import math
import numpy
import matplotlib.pyplot as plt
from numpy.polynomial.hermite import hermval
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import scipy.integrate as integrate
box = 20
xc = box/2.0
nmax = 15
beta = int(raw_in... | [
"noreply@github.com"
] | aaapetyan.noreply@github.com |
17ec8c43bf3d0bccc6a5b6641d0b6de8b03cba78 | a73cc710aa370be94b70248f2268d9c3b14059d0 | /server/src/experiments/elevator/command_senders.py | 588ba89236495a41776821eb50033cd98fdb8893 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | weblabdeusto/weblabdeusto | 05692d4cc0a36287191544551d4a1113b3d95164 | 62e488afac04242a68efa4eb09fd91d7e999d4dd | refs/heads/master | 2023-05-10T23:14:05.407266 | 2022-08-31T14:16:23 | 2022-08-31T14:16:23 | 5,719,299 | 19 | 23 | BSD-2-Clause | 2023-05-01T20:18:53 | 2012-09-07T16:24:03 | Python | UTF-8 | Python | false | false | 2,888 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2005 onwards University of Deusto
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# This software consists of contributions made by many individuals,
# list... | [
"luis.rodriguezgil@deusto.es"
] | luis.rodriguezgil@deusto.es |
526d6589db2b272ca5cfba55a28b5a4fb0d708f3 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_noisy429.py | 001320894098c4a3b7a6c5fabdd40cc8775b5332 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,395 | py | # qubit number=3
# total number=77
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
8b50c33b2267b1a35cc4a73a591c173d6eea2280 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_revues.py | f49493dcdf30e1cce36d2723a65a559d1a24960d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _REVUES():
def __init__(self,):
self.name = "REVUES"
self.definitions = revue
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['revue']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6269d03b9eb8233e58c708c9ab4c7d4d97a244fb | d0a2ddee6d2a733c123aae13e08b378cc49516fc | /fsm.py | 1a32747cfbf4d5b5388204698c36327acbcfa2e9 | [] | no_license | F74071043/toc2020 | 6f071361e1b897076ecaac762ce7a17aa22ae7c0 | 6168bb6a098d79b328aadaba9c1a2b7f80283758 | refs/heads/main | 2023-02-06T06:57:05.251799 | 2020-12-26T18:28:46 | 2020-12-26T18:28:46 | 323,613,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,702 | py | from transitions.extensions import GraphMachine
from utils import send_text_message
import random
class TocMachine(GraphMachine):
def __init__(self, **machine_configs):
self.machine = GraphMachine(model=self, **machine_configs)
def is_going_to_retype(self, event):
text = event.message.text
... | [
"noreply@github.com"
] | F74071043.noreply@github.com |
d4d36157252a54c0306ce3e6946c82ce74b74482 | 8aa7bf7fcc0d1cb92e595ed360fe0b093505b082 | /linear_algebra/demo_gauss_elimination_method_1.py | eff92aa72d5ddc61fcffaf276a9247d59a04274d | [] | no_license | Ivanqi/algorithm | 63323f6afcfdeb496c43a65034ea77d338291cf6 | 7d43d9e97de232f69e4eb687ed84d90bd1397df8 | refs/heads/master | 2022-04-28T17:07:09.193488 | 2022-03-21T12:55:15 | 2022-03-21T12:55:15 | 199,848,944 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | import numpy as np
B = np.array([[2, 1, 1], [4, 2, 1], [2, -1, 4]])
print("------ 消元过程 -------");
A = np.array([[2, 1, 1, 0], [4, 2, 1, 56], [2, -1, 4, 4]])
print("E1: 为了使用A(2, 1)和A(3, 1)为0")
E1 = np.array([[1, 0, 0], [-2, 1, 0], [-1, 0, 1]])
print(E1)
print("E1A = E1 * A")
E1A = np.dot(E1, A)
print(E1A)
print("--... | [
"512350225@qq.com"
] | 512350225@qq.com |
abfe90a1b20021fe6c31e4ad2868cfc56dda2ddb | a779e49f44a81821af7464f32c11790f415b9b27 | /LOC NEEL/Backend/api/MatchAptScholarship.py | 8a0cb50180a8d9ecb87f8c489150ec6e409beccf | [] | no_license | psp2108/LOC_16032019 | 5c3b57b5c71dc446d5585dde99ff2ff7e0d9448b | 1ad8193f4f999ce0eab81335ffb7990548db6e58 | refs/heads/master | 2020-04-29T02:29:23.686581 | 2019-04-15T19:11:46 | 2019-04-15T19:11:46 | 175,769,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from flask_restful import Resource
from flask_restful import reqparse, abort, Api, Resource
import logging as logger
import test
class MatchAptScholarship(Resource):
def get(self,uname):
logger.debug("In GET Apt Scholarship")
t = test.Test()
logger.debug(t.printSomething())
#Call Pratiks Method
response = g... | [
"pratik.sp.1112@gmail.com"
] | pratik.sp.1112@gmail.com |
15e0ff46dfc801ef82c69e6658d5b6752c59306c | a66d5e2e28953f014b20cff27d67a150ece0a12e | /venv/Scripts/rst2s5.py | b06980804b6321dda7c4515f185f3e11e4ec6749 | [] | no_license | shanojnanu/outline-Docs | f6b849bafd3f72565d0774214e085910f51c2388 | 4a9a7749caaf593b598212fc4eab8e4753c6a86d | refs/heads/master | 2020-08-09T00:27:29.165017 | 2019-10-09T15:41:57 | 2019-10-09T15:41:57 | 213,957,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!G:\study\AI\PROJECT\python-workspace\outline-Docs\venv\Scripts\python.exe
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Chris Liechti <cliechti@gmx.net>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML slides using
the ... | [
"vicke.4490@gmail.com"
] | vicke.4490@gmail.com |
a601fbf01d886dafa0878beca10e551f1c1619f5 | 6bc49e30bd3601ccd2714716b842da8e622de1f5 | /21-Merge-Two-Sorted-Lists/solution.py | 28d5af9bf1900a803cfccde2547f21aff0315803 | [] | no_license | ZhuTingxiang/leetcode | 2ace32c8e4ca531188de7e76457f55fd2366a8ea | 8e29d5599721994750c709d597945f01fed1d66e | refs/heads/master | 2020-05-21T20:28:26.361305 | 2016-10-12T23:06:30 | 2016-10-12T23:06:30 | 62,275,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def mergeTwoLists(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode
"""
l3 = ... | [
"tingxiaz@andrew.cmu.edu"
] | tingxiaz@andrew.cmu.edu |
7030598602e1b69ec0d2b312b269fdc3e7424c24 | ea08023f888fd57d01e3952b372522137e3db701 | /resources/modules/wgu/embeds/direct/wgu_user_verified_success_embed.py | b3960122d82cf1eb819e0539908ac42797142992 | [] | no_license | simeononsecurity/Peregrine-bot | f910eb67d5ec6af512314e3c234db1714f17b0c5 | 744d838663c3e523a72c5e5b015b860e82b998f8 | refs/heads/master | 2023-04-20T07:10:52.890627 | 2021-03-09T02:11:20 | 2021-03-09T02:11:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | import discord
# Import additional modules
from discord.ext import commands
async def wgu_user_verified_success_embed(wgu_user):
# Set initial message here
successMessage = discord.Embed(
title="Success!",
description="\n\nHello, {}!\nYou have been verified! You should now see new channels... | [
"justin@gemstatecyber.com"
] | justin@gemstatecyber.com |
cc2c108c5cc046ed429dc52290a5d7f22bffc92f | e8d40ceb265f9c04115b00dede440bd1d7a85e0e | /biblioteca/biblioteca/settings.py | 3090a2e96a1280e4ff773c97e2725dc4de2fa1a8 | [] | no_license | memo15428/django | e90be85cc4fb2df7c15cf6cfffafb13c5fef91ee | e76a5ce56ff416f1261e74d067182b78a0d3330f | refs/heads/master | 2021-05-25T21:24:54.732776 | 2020-04-08T03:01:06 | 2020-04-08T03:01:06 | 253,925,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | """
Django settings for biblioteca project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os... | [
"61074055+memo15428@users.noreply.github.com"
] | 61074055+memo15428@users.noreply.github.com |
43601501c6dbc67278e6fbc269b0720273190225 | c41d5c3209fc67e82e8c08e714677282197c9d80 | /Python_test/fp_yimei_status.py | cddfaa2630736ccd665ac081b0728ca044c1109f | [] | no_license | bjwangchao1/StaticPoolOptimize | a2f4ee641e35eb1354f20015d4c769fde1470fa6 | aefc2b6b1a432d25a1e67b210e7638f614212246 | refs/heads/master | 2020-03-19T07:59:39.199264 | 2018-08-08T02:55:20 | 2018-08-08T02:55:20 | 136,166,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,753 | py | import pandas as pd
import numpy as np
import datetime
def f_calculate_status_etc_2(df_repay, col_contract_no, col_term, col_due_date, col_repay_date, col_total_principal,
col_due_principal, col_repay_principal):
# 计算每期的月末逾期状态、月末剩余本金,以及首次违约的周期(2017-11-25)
# 输入:
# “长格式”的还款记录数据框... | [
"bjwangchao1@gmail.com"
] | bjwangchao1@gmail.com |
f2e0d802e4d91a5d6d2b6cbefbbf7d85743164fc | c1ae1772dd980d592add422db0b0511d597d8d84 | /blog/migrations/0007_blogcategory.py | d668e9f7ea3bc416d64e3f8afe6cc3b0950a5786 | [
"MIT"
] | permissive | philba/myblog | ee88d3bbb279f1a4e692138b0ee6dcb43e729886 | 32c4328bb7cbce23c4b9003638cea20be57798a2 | refs/heads/master | 2022-12-23T10:15:27.579684 | 2017-03-15T19:56:31 | 2017-03-15T19:56:31 | 83,588,884 | 0 | 0 | MIT | 2022-11-22T01:28:43 | 2017-03-01T18:46:11 | CSS | UTF-8 | Python | false | false | 925 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-10 17:37
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0018_remove_rendition_filter'),
('... | [
"phil.bagwell@gmail.com"
] | phil.bagwell@gmail.com |
bd64cc79b797635ab184b9eb6bdcd842afd8fd08 | e2aaf3ce31122616d8756fda138d9779c58187aa | /lesson06/notes06.py | 4893b17a87405536772b6f6235e588c1ffdb6b34 | [] | no_license | kimjudyh/python_class | 2dc1f66f8c13d0e825e106d8b558dc3dc471655d | 9e20676e4ebac5e3543d03f8104c09aeebc9d511 | refs/heads/master | 2020-05-03T07:24:11.682117 | 2019-05-01T21:56:40 | 2019-05-01T21:56:40 | 178,496,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,966 | py | # lesson 06
'''
for loops, range(), sequences, slices
'''
# for loops---
# for <identifier> in <sequence>:
# <code block>
# can't change number of iterations by modifying identifier in loop!
for i in "Python":
print(i, end=", ");
print();
for i in range(1,10,2):
print(i, end=", ");
pr... | [
"kimjudyh@gmail.com"
] | kimjudyh@gmail.com |
cdc220273a6eb070856db02eee22e9766e3d7d72 | 45c142c3e3dc8d3211a86c77385ecfdd10d28fb9 | /dstore/engine/procedures/mi_RestoreDefaultValues_Ad_pb2.py | c4d2eabded23befbbf6f8898c1164f8aef205f9d | [] | no_license | dstore-io/dstore-sdk-python | 945d64995c8892af18fab26c90117245abec64a4 | 8494d12ac77c3c3cc6dd59026407ef514ad179fc | refs/heads/master | 2020-06-14T13:07:08.181547 | 2017-01-26T11:19:39 | 2017-01-26T11:19:39 | 75,177,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 12,973 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: dstore/engine/procedures/mi_RestoreDefaultValues_Ad.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from... | [
"b.dolkemeier@dbap.de"
] | b.dolkemeier@dbap.de |
8a8112c98a32850524e2e947da26f64c30ef2ae3 | 57359cfa7158b284ca5061710a7fe233c76d9cd7 | /utils3d/bbox3d_ops.py | 4228ef72a8e7125eb80c031504550a988641d131 | [
"MIT"
] | permissive | zhuhaipeng-byte/Automatic-As-built-Reconstruction | 5d0cd5b993cb5c273fc1e133651e11c548e795dc | a3d4642f76beb572fdaf37fb832704fa88d054ab | refs/heads/master | 2022-05-27T18:15:34.801783 | 2020-04-10T12:12:27 | 2020-04-10T12:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,969 | py | # xyz Nov 2018
import numpy as np
import os,sys
import open3d
import numba
import time
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.dirname(BASE_DIR)
sys.path.append(BASE_DIR)
sys.path.append(ROOT_DIR)
from open3d_util import draw_cus, gen_animation
from geometric_util import Rz as geo_Rz,... | [
"buaaxyz@yeah.net"
] | buaaxyz@yeah.net |
5f46076fd292520cada7f7fce8dc39783f2a6375 | 7198d72cd47616d3dc7010256988859113458dd5 | /BasicThreads.py | 660b8e4c98b052d9f366733ad8955a606df55d31 | [] | no_license | carlosjimz87/PyClean | 7d17acdb0640c1316ff9c60aed7d62304f5a4723 | 92c5753fe5fc4bcd15da815e0d9fee2320d11cfc | refs/heads/master | 2021-11-27T02:36:42.466965 | 2021-10-13T10:34:56 | 2021-10-13T10:34:56 | 160,558,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import threading
import time
a = 1
def fun(chain):
time.sleep(2)
print(chain)
print(f"Sync:{a}")
# async thread
y = threading.Thread(target=fun, args=(f"Async:{a}",))
y.start()
# async daemon thread (run in background)
x = threading.Thread(target=fun, args=(f"Daemon:{a}",), daemon=True)
x.start()
x.join(... | [
"carlosjimz87@gmail.com"
] | carlosjimz87@gmail.com |
b132cdcf19f987f9f712e898e2fbb182741cd5c6 | 000dd9c62f96c59c56acc62ed083f04773daf7a1 | /LightEffects.py | 8209131119081a764525736bb1fe9c9c15832909 | [] | no_license | divyadeep1/Internship_at_IITk | c11dd7caccba7c0d1915176950c983f8cb9af6be | e5ee5a8db153fa606d5469b9cd8c7107f2d3799b | refs/heads/master | 2020-03-15T12:01:25.053480 | 2018-08-01T18:03:44 | 2018-08-01T18:03:44 | 132,134,895 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | """ Camera Movement using keyboard and mouse
"""
from OpenGL.GL import *
from OpenGL.GL.ARB import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
from OpenGL.GLUT.special import *
from OpenGL.GL.shaders import *
from glew_wish import *
import cube_with_light_effects as cube
import math
import glm
import common
... | [
"divyadeep.singh962118@gmail.com"
] | divyadeep.singh962118@gmail.com |
60847a2a95c5d716ddfcd9d539af72449d1f0591 | aa49120740b051eed9b7199340b371a9831c3050 | /greaterTree.py | 3e539eb3cf0e2a93dd98c58dad666501da74daf5 | [] | no_license | ashutosh-narkar/LeetCode | cd8d75389e1ab730b34ecd860b317b331b1dfa97 | b62862b90886f85c33271b881ac1365871731dcc | refs/heads/master | 2021-05-07T08:37:42.536436 | 2017-11-22T05:18:23 | 2017-11-22T05:18:23 | 109,366,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | #!/usr/bin/env python
'''
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed
to the original key plus sum of all keys greater than the original key in BST.
Example:
Input: The root of a Binary Search Tree like this:
5
/ \
... | [
"ashutosh.narkar@one.verizon.com"
] | ashutosh.narkar@one.verizon.com |
b4f8788fcf7669acb25a047dc35383868e4df819 | 937e64bdee724805c52826206361d53cca62121e | /Interface/main.py | 5f66c3072afc0518cf4fed67b67506c41ac733bb | [] | no_license | hungndo/InteriorRoomOrganizer | 7747a1b4c288557041fb2cfb81ad8de532d13f31 | 16833ec16daa6bf1df5b238de269c0757c3af2e3 | refs/heads/master | 2022-02-18T10:14:40.806641 | 2019-07-31T04:31:00 | 2019-07-31T04:31:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,938 | py | import asyncio
from Interface.MyApp import MyApp
import socket
app = MyApp()
async def message():
while True:
is_scanning = await app.is_scanning()
if is_scanning == 'True':
# set up client and connect to server
# TODO: fix the error when trying to scan the second time
... | [
"47681464+linkzero177@users.noreply.github.com"
] | 47681464+linkzero177@users.noreply.github.com |
446ff80d3dea6af21036b80f8cce0c1e7f31fe02 | 6d0051ca7060c5567091a14287975daa515fbe13 | /PMMH/apps/game/unit/hero/item/admin.py | a55c95a5077eb01e6c8fa6dde7541753c4d9c450 | [
"MIT"
] | permissive | metinberkkaratas/ProjectMagic-MightofHeroes | e2fec9a74a21bf960576e246467b5243e51cbf43 | 578697e637aba0f18b4f83762bf1c87fb20db2ee | refs/heads/master | 2023-05-03T04:24:18.861993 | 2020-01-12T19:59:22 | 2020-01-12T19:59:22 | 216,659,271 | 0 | 1 | MIT | 2023-04-21T20:39:07 | 2019-10-21T20:28:05 | JavaScript | UTF-8 | Python | false | false | 86 | py | from django.contrib import admin
from .models import Item
admin.site.register(Item)
| [
"ozay_ezerceli804@hotmail.com"
] | ozay_ezerceli804@hotmail.com |
91a0878a1d095da6cac81f085ca9349ddc24f247 | 203fd0a2a91ee063736d11b069e11026c4184ec5 | /tools/test_files/all_17_or_less/cm152a_212.py | 8f2b7e168fbe23ea1f74ee042adbb48bfd761ae9 | [
"Apache-2.0"
] | permissive | Astlaan/OpenQL | 19b35200775367e6f11d1756e9495c1883a1c531 | 1b60d5784d439e6c19e662b570114aa1b3045d38 | refs/heads/develop | 2020-09-01T02:56:37.906564 | 2019-11-15T15:43:55 | 2019-11-15T15:43:55 | 181,012,110 | 0 | 0 | NOASSERTION | 2019-04-12T13:18:51 | 2019-04-12T13:18:51 | null | UTF-8 | Python | false | false | 27,978 | py | from openql import openql as ql
import os
import argparse
def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W... | [
"diogovalada.7@tecnico.ulisboa.pt"
] | diogovalada.7@tecnico.ulisboa.pt |
f33512a2c576ecc3bc790f2bbbd0ade7400bdfdb | b06cf55f4dc683ea7ac33af1c06a518562c4f9ba | /cls/dataset.py | 4933ecfd0ceca1ec33a33f4f9ff86fcd638d0ef5 | [] | no_license | marsStoneS/JDATA-2019-Snow_leopard | 090bfca2e713d1962459f98566db697e1f0ebab7 | 1ad8ff0fda8ed3743bd2ad122b7700ce6a44180b | refs/heads/master | 2021-03-15T16:39:32.388924 | 2020-02-24T15:30:02 | 2020-02-24T15:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,848 | py | import os
from PIL import Image
from imgaug import augmenters as iaa
import matplotlib.pyplot as plt
import pandas as pd
import torch
from torch.utils import data
import numpy as np
from torchvision import transforms as T
import torchvision
import cv2
import sys
def amaugimg(image):
#数据增强
image = cv2.cvtColo... | [
"noreply@github.com"
] | marsStoneS.noreply@github.com |
0ee77796d819854fa3f931549a831d02ce62d892 | e3d8dcf105b9d41a40115ae3c706d73b1cb9a6b7 | /feature_matcher.py | 29df74dadd76a7cece0b5b32ae0e0b6a0767c286 | [] | no_license | Adi-reachy-vision/Trial_code | f848a82a48f255d3b532a55845e3d8b15921f799 | 903251e98c3eaf2beffdaa28bcea685faddb4c74 | refs/heads/main | 2022-12-25T08:29:27.016028 | 2020-10-06T02:13:29 | 2020-10-06T02:13:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | import cv2
img1 = cv2.imread('sample_totem.jpg', 0)
img2 = cv2.imread('IMG_20200917_115302 (copy).jpg', 0)
orb = cv2.ORB_create(nfeatures=500)
kp1, des1 = orb.detectAndCompute(img1, None)
kp2, des2 = orb.detectAndCompute(img2, None)
# matcher takes normType, which is set to cv2.NORM_L2 for SIFT and SURF, cv2.NORM_HA... | [
"noreply@github.com"
] | Adi-reachy-vision.noreply@github.com |
564c4e96ea48fa6ab240096ea1f46389ad0e8636 | 2289035118a136867b83fac9ba005fe443c955e6 | /alembic/env.py | 00ea813ec55780c0bcc246ee350b680bb825bf50 | [] | no_license | splsher/lab_6 | ede010a3a196e0f973089b08022035065598d174 | bfab6826b5c4af5c1d39a321f733dfacbcabba5d | refs/heads/master | 2023-09-02T07:08:47.160276 | 2021-11-24T14:17:54 | 2021-11-24T14:17:54 | 431,511,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | from logging.config import fileConfig
from sqlalchemy import engine_from_config
from sqlalchemy import pool
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# Th... | [
"shchennikova.tania@gmail.com"
] | shchennikova.tania@gmail.com |
7c24a3e957c7271e9b76fd4b4fe67e6208aa6b5d | 0dd552743591a1aee130d7af578cab495ee3e24a | /main.py | 4dc65ac488f28fdd1ba2202dd9ead54bf2527551 | [] | no_license | himanshuIndia/sentiment_analysis | 1f98aaf431535fce46eaa532001cefb08f72fb9f | 4d996213d960a8065d86f7829a2143bad65cb14e | refs/heads/master | 2020-03-13T12:21:21.727838 | 2018-04-28T06:57:08 | 2018-04-28T06:57:08 | 131,101,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | import config
import get_ner
import get_tweets
import get_news
import get_sentiment
import plot_data
from pymongo import MongoClient
client = MongoClient()
db = client[config.db_name]
posts = db.posts
get_tweets.getTweets(config.twitter_key,config.twitter_secret, config.app_token,config.app_secret)
keys,ner_dict,ne... | [
"him96delhi@gmail.com"
] | him96delhi@gmail.com |
f4fd51c0c6ecb823927f472bee6e0f1f8590b358 | 5eacc8ebd7afc23666be2b7404b6da1f6ae1e909 | /Python/heimaailma.py | 945325d4d664fc04babaec0234a399311d27cc40 | [] | no_license | Stugeh/Some-old-coding-excercises | 4af1ac9de29eadafcdfe2bc23b8b51bde78388b4 | 6aa4aa95ce3c13129ad7467834e3d8e7a6724004 | refs/heads/master | 2020-12-06T09:43:02.349831 | 2020-06-23T23:18:24 | 2020-06-23T23:18:24 | 232,427,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | print("Hello world!") | [
"noreply@github.com"
] | Stugeh.noreply@github.com |
0900b16bee7a0487d79473213ba40c5500e5a794 | cc87775fb869f7ab5d146ed51aa54dbe28e13706 | /MDAnalyze.py | f64359524ef59b3ac5f824ec06eaf7f26176d661 | [] | no_license | gmthu66/MDDesign | 09e02860cba371724959e048acc82c9b0f6e7c64 | 34e583f7bdcbae0f10628ac7eb0f849ae54c2128 | refs/heads/master | 2021-04-12T03:17:37.584592 | 2017-07-04T17:32:50 | 2017-07-04T17:32:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,074 | py | #! /usr/bin/env python
import argparse
import subprocess
import multiprocessing
import sys
import os
from Bio.PDB.DSSP import dssp_dict_from_pdb_file
import shutil
parser = argparse.ArgumentParser(description='MDAnalyzer')
parser.add_argument('-job', help='Job type. Available are: autoimage, refstruct rmsd_bb, rmsd_sse... | [
"j.ludwiczak@cent.uw.edu.pl"
] | j.ludwiczak@cent.uw.edu.pl |
eb21142dfd231093f8619ba38dcdff7b4b96bae6 | a31ecfe0e61a0ba3d7fba145b583d29a8832726f | /Point.py | 39e2214d4dbb2b6cef508a1e0abff541be1def28 | [] | no_license | JoalG/Project2_AA | 0a402245c49f6fe3bb5796afc865114bf55741da | 69ae4b44669bf10758ac8b29e0b1470dcc965d3c | refs/heads/master | 2022-11-23T18:44:42.493805 | 2020-07-03T05:09:13 | 2020-07-03T05:09:13 | 270,429,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py |
import numpy as np
import pygame
import math
class Point:
x=0.0
y=0.0
def __init__(self, x, y):
self.x=x
self.y=y
def __add__(self, other):
return Point(self.x+other.x, self.y+other.y)
def dot(self, p2):
return (self.x*p2.x) + (self.y*p2.y)
... | [
"53712282+JoalG@users.noreply.github.com"
] | 53712282+JoalG@users.noreply.github.com |
74e4db9d299d8c8c135ffd1e9c16e8e9ba74bdba | 68e548e5e4d9a9ffa71cfc691644ef8032537439 | /Projects/Bootcamp/(35)SQLPyt/V1.py | 94269f93987488d4d41cddd43a9a15f93033de9c | [] | no_license | Elemento24/Python3-Bootcamp | cd4529cae8508bff4c02d2180a87e9b1afb3aaf4 | fd4538a1ec77312925b333db4f0572c63274d77b | refs/heads/master | 2022-10-22T10:03:39.019364 | 2020-06-12T18:52:30 | 2020-06-12T18:52:30 | 271,868,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | import sqlite3
# We use the below code to connect to a DB. If the file exists, then it will connect to the ...
# ... specified DB, else it will create the DB file
conn = sqlite3.connect('my_friends.db')
# Create a Cursor Object
# Cursor object, is basically a small amount of Storage Space, that we can use to store ou... | [
"mittalvishesh021@gmail.com"
] | mittalvishesh021@gmail.com |
b25810831d536e7ccb4b552582283ac75f6bdf07 | afe2c96924321c4c32cab9766e94c72d9b08a24f | /mod4_homework_1/data_client/local_data/FTPServer.py | e106822595804e338c35e09019637033b3c5335b | [] | no_license | ligggooo/luffycity_homework | 1cbcdbeb5aca0aad2d460d3e1b79f25798cd3bb5 | 33b3ccf2e3f7b5e5fded2654bb11fca27b6bf9d1 | refs/heads/master | 2020-04-04T09:32:34.903069 | 2019-01-07T13:45:12 | 2019-01-07T13:45:12 | 155,822,277 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,549 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@Author : Goodwillie
@Software: PyCharm
@File : FTPServer.py
@Time : 2018/12/9 10:49
@Desc : ftp server codes
'''
import hashlib
import socket
import struct
import json
import os
import time
from core.auth.auth_server import Heimdallr # the door-... | [
"ligggooowow@163.com"
] | ligggooowow@163.com |
32ec4c727939a4c7e6aeba86ba4714df3795be82 | 182377d8421e4e8cc894af1ce887535cdb88d97c | /src/hw_2/scipy_algorithms.py | b2b5b417c45dd91910a5198ad1d94551e545a57c | [
"MIT"
] | permissive | bahbyega/CDPA-course-2021 | 4f66901f0a8db7c660a8c054bc85fbd1a65037b0 | 0cfdcad6e7c27cef8df87a10c6d6d600a3b55178 | refs/heads/main | 2023-08-29T22:54:55.108457 | 2021-10-27T10:55:44 | 2021-10-27T10:55:44 | 345,702,184 | 0 | 0 | MIT | 2021-06-03T07:12:54 | 2021-03-08T15:27:42 | C | UTF-8 | Python | false | false | 2,000 | py | import numpy as np # for vector operations
from scipy.io import mmread
from scipy.sparse import tril, triu
from scipy.sparse import csgraph
def sp_graph_from_mm_file(path):
return mmread(path).tocsr()
def sp_bfs(graph, src_vertex):
"""
Computes traversal level for each vertex from source vertex.
... | [
"den.porsev@gmail.com"
] | den.porsev@gmail.com |
af9cd54b956ba301ee541b58278fd05234af6c75 | 853b8b54b0f15f0dc543a90edd89d8ed1bfed1fa | /helloworld_project/urls.py | 9b341e8bb5a4fbb83eb32ffd297623345be2b44e | [] | no_license | kokenny5/helloworld | 375338e9130e0f4516863b7f0d27a4088978c2d6 | 1c2a49f56610136af833d8312e7cbb8cbbaf3efb | refs/heads/master | 2020-04-12T14:32:33.503246 | 2018-12-20T09:17:11 | 2018-12-20T09:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | """helloworld_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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')
... | [
"captainkeny@gmail.com"
] | captainkeny@gmail.com |
dc8bc64127e5b80bfec644be7d47216a6a5493c7 | d62ac77d742c708a6026f0a58042984fddc621d9 | /website/views.py | a7c0b133fbcbd562266e559f5cf5e2ff7300499b | [] | no_license | ArchontJ/WebFoodDiary | 51bdba2bb919de978b70da6ed9578f60e3c48e83 | 0155f2837d27629a503d76bf66fa6135ed68bbcc | refs/heads/main | 2023-06-25T17:18:54.880770 | 2021-07-20T23:02:42 | 2021-07-20T23:02:42 | 386,915,721 | 0 | 0 | null | 2021-07-20T23:02:43 | 2021-07-17T11:08:43 | HTML | UTF-8 | Python | false | false | 1,952 | py | from flask import Blueprint, render_template,flash,request,jsonify
from flask_login import login_required,current_user
from .models import Note, PRODUCTS
from . import db
import json
views = Blueprint('views',__name__)
@views.route('/',methods = ['GET','POST'])
@login_required
def home():
if request.method=='POST... | [
"jacek.neska91@gmail.com"
] | jacek.neska91@gmail.com |
6be53d3331d2769ebb1748957f93241f4d16e25a | 88d0e96723a90465207d5b9c00da6d5204b664a0 | /foodapp_project/settings.py | 9a4a1b741007364451ec80f65a1080ea41c81356 | [] | no_license | nayem1703163/foodapp_project | 72d7d144a1b1c3db94125b6ab3f204afeddeaed7 | 3c3c2b212b49e17c609b7fdb5afe573ccd905a29 | refs/heads/master | 2022-11-24T08:50:02.734314 | 2020-07-28T16:53:34 | 2020-07-28T16:53:34 | 281,495,219 | 0 | 1 | null | 2020-07-22T08:01:52 | 2020-07-21T20:15:38 | Python | UTF-8 | Python | false | false | 3,319 | py | """
Django settings for foodapp_project project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impo... | [
"nayem1703163@users.noreply.github.com"
] | nayem1703163@users.noreply.github.com |
4802ba8a755fec7a0c5675e77bab7f0706c697dc | b8a37e7cd3b733af8acedaa6b6031e8765de23eb | /pr_4.py | 6b32507e27953938a513ab75448ff17bddc4cdec | [
"MIT"
] | permissive | Belyaev126/l4 | 1bc8d1389465b969e5dc0cfccbfbabe1f3a8706a | 91a7dc54e6be742ec8f3d14f463e89810a322d4c | refs/heads/master | 2022-12-31T03:48:53.774992 | 2020-10-23T08:42:21 | 2020-10-23T08:42:21 | 300,519,121 | 0 | 0 | MIT | 2020-10-15T18:41:02 | 2020-10-02T06:14:47 | null | UTF-8 | Python | false | false | 401 | py | #!/usr/bin/env python3
# -*- config utf-8 -*-
import math
import sys
if __name__ == '__main__':
a = float(input("Value of a? "))
if a < 0:
print("Illegal value of a", file=sys.stderr)
exit(1)
x = 1
eps = 1e-10
while True:
xp = x
x = (x + a / x) / 2
if math... | [
"belyaevrw@gmail.com"
] | belyaevrw@gmail.com |
e600a39d1c362c9011d49a08c0787d3bc153a9a6 | 9917e2d1d7694498266740218f96441c5c25a872 | /v2/shell.py | c66ac88b1ec079c8d093325532bb69fe09bfe109 | [] | no_license | yinweiishere/cinder-client-fs-111t | 81cd605c5fa583129557cfb7cbc6030a5b2ce221 | 71633d4c596ba323a825fa6b9f42f8f9aa73c882 | refs/heads/master | 2021-01-19T15:02:35.080811 | 2015-08-12T02:15:11 | 2015-08-12T02:15:11 | 40,574,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,956 | py | # Copyright (c) 2013-2014 OpenStack Foundation
# 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 ... | [
"yinweiishere@126.com"
] | yinweiishere@126.com |
ebe35372cc9c0ca0eb0b703760762a84795b84ce | 9b7d9e814a4327bf4cd3a4040cf96944d5e1b43e | /forms.py | c32b84c7b4e4a21232d3724ec5282de6ccca1e01 | [] | no_license | Charlie-Say/pythonflask_profile | ec0b3f9336d9d6e1efaf6176096a6cdada900460 | a7f8953938f83663a1dc42b4662987f9429bce9b | refs/heads/master | 2020-04-24T12:23:00.402991 | 2019-03-18T20:37:05 | 2019-03-18T20:37:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo
class RegistrationForm(FlaskForm):
username = StringField('Username',
validators=[DataRequired(), Length... | [
"noreply@github.com"
] | Charlie-Say.noreply@github.com |
b1f47457d65c71cd7c6a50ed478d5c977f70e03a | d4a73ae6e585c154500dc735e0e4243871cd1714 | /nested_serializer/asgi.py | 1f98526a90aefce4c7e2a33dd5ac4f8d33cc3889 | [] | no_license | himelbikon/django-nested-serializer | e9bbf72970b93ddb1c1695f1af7699cdf3610851 | 154b68bc39b777cfd5de4f125acee3888bb0b5d5 | refs/heads/master | 2023-09-02T21:44:28.266960 | 2021-11-19T17:29:14 | 2021-11-19T17:29:14 | 429,881,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for nested_serializer 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"skhimelhaque@gmail.com"
] | skhimelhaque@gmail.com |
f666310032f38377abc0fdb0dbaf6d4e6c3a9267 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/core/arrays/datetimes.py | 047ee2e0330a5d47eec67d4f0aa99bef673c04a4 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,063 | py | from datetime import datetime, time, timedelta
import textwrap
from typing import Union
import warnings
import numpy as np
from pytz import utc
from pandas._libs import lib, tslib
from pandas._libs.tslibs import (
NaT,
Timestamp,
ccalendar,
conversion,
fields,
iNaT,
normali... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
faddd939d404d54e5dbad9be2b6f75f85ed43e5b | 0f4123214926fddc8a12762239e76b9c34340d55 | /apps/landing/urls.py | 1eb1168159e0ae992cbc5786a38db2ac5e8aaddf | [] | no_license | Mekazara/testmeer | b8d13aea6671756f8fe2947bc2e3113f64543dc6 | 9597c4fbdd66bdabd83af532d9ac5d78474993d6 | refs/heads/main | 2023-03-21T05:33:33.490946 | 2021-03-20T06:07:12 | 2021-03-20T06:07:12 | 349,640,943 | 0 | 0 | null | 2021-03-20T06:07:13 | 2021-03-20T05:56:27 | null | UTF-8 | Python | false | false | 386 | py | from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from apps.landing.views import IndexPageView
app_name = 'landing'
urlpatterns =[
path('', IndexPageView.as_view(), name='index'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns ... | [
"mekuchazara@gmail.com"
] | mekuchazara@gmail.com |
2eb13d574cdc98657e7062d4042bb0075bcc6c3a | d9c6f590f3597803c5d540734304e4348810796b | /Post_MASLAB_Play/TAMProxy-pyHost/PathPlanning.py | 31d55a6a0c0225b4d70879b704fb8eb873408648 | [
"MIT"
] | permissive | aokeke1/PersonalProjects | 4e64700958dbb06f6df262a6ef50b90bf03d0081 | cca7498161d6934158bb21e261cc80bfb7887eaa | refs/heads/master | 2021-01-15T20:09:37.555695 | 2017-09-14T12:18:14 | 2017-09-14T12:18:28 | 99,844,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 09 23:59:36 2016
@author: arinz
"""
import matplotlib.pyplot as plt
import SegmentDistances as SD
file1 = "Maps/Map1.txt"
file2 = "Maps/Map2.txt"
constant = 24 #24 inches per point
def getWalls(fileName):
f = open(fileName)
allSegments = []
graphForm =... | [
"arinzeokeke0@gmail.com"
] | arinzeokeke0@gmail.com |
35516086a8b7a42c700d5362f28c7c8f667958ec | f078a969c6c92dbd4644a55609c3969255de1c7a | /tests/data_structures/quantum_circuit/simplifier/gate_parameter.py | 47fbd47be64df4a9cd18bb07c21481afd827df4d | [
"BSD-3-Clause",
"CECILL-B",
"MIT",
"LicenseRef-scancode-cecill-b-en"
] | permissive | nelimee/qtoolkit | 2d2919a163677128acbfbd84b36bb61367732a6e | 1e99bd7d3a143a327c3bb92595ea88ec12dbdb89 | refs/heads/master | 2020-04-01T09:15:09.134161 | 2018-11-27T13:57:52 | 2018-11-27T13:57:52 | 153,067,146 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,942 | py | # ======================================================================
# Copyright CERFACS (October 2018)
# Contributor: Adrien Suau (adrien.suau@cerfacs.fr)
#
# This software is governed by the CeCILL-B license under French law and
# abiding by the rules of distribution of free software. You can use,
# modify an... | [
"adrien.suau@cerfacs.fr"
] | adrien.suau@cerfacs.fr |
fde9ceaca4cd01c3520936f567cc4c0b9da7ea2f | 6a7058009587e78b5c758ff783410325ad7c2a4b | /leet/stack/removeDuplicates.py | 7b454b38480b649f7012a1ba584510296d51d6df | [
"Apache-2.0"
] | permissive | stacykutyepov/python-cp-cheatsheet | 8b96b76403c501f5579befd07b3c4a4c69fe914e | a00a57e1b36433648d1cace331e15ff276cef189 | refs/heads/master | 2023-07-16T13:26:35.130763 | 2021-08-30T11:23:39 | 2021-08-30T11:23:39 | 401,442,535 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | """
time: n
space: n
Remove All Adjacent Duplicates in String II
"""
class Solution:
def removeDuplicates(self, s: str, k: int) -> str:
stk = []
for c in s:
if stk and stk[-1][0] == c:
stk[-1][1] += 1
if stk[-1][1] >= k:
stk.po... | [
"peterrlamar@gmail.com"
] | peterrlamar@gmail.com |
7f18193d0a006abf5e133bd1826ca925772415d9 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/marketplaceordering/manual/custom.py | c3d4d03fbbc01f38de3e9be67de777584acd4f5b | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 1,754 | py | # --------------------------------------------------------------------------
# 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 may cause incor... | [
"noreply@github.com"
] | Azure.noreply@github.com |
36678e9ffcaa6862ab6d1a86c3294802fe005f96 | 1a1e4f0f525ebe080dcd74b7e5e8c33477eab6b8 | /backend/dating/api/v1/viewsets.py | 86fd6380f5c9628e9208d847b9a0a804ff8898db | [] | no_license | crowdbotics-apps/homedesign-20669 | 0b1e65aa4f169dd9f54cbbb9d6c4af38057b7efe | 0623f0d613cdc057079a799fccfe05db9c51ca73 | refs/heads/master | 2022-12-31T18:34:29.656171 | 2020-09-25T07:55:18 | 2020-09-25T07:55:18 | 298,505,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,095 | py | from rest_framework import authentication
from dating.models import Setting, Profile, Inbox, Dislike, Match, UserPhoto, Like
from .serializers import (
SettingSerializer,
ProfileSerializer,
InboxSerializer,
DislikeSerializer,
MatchSerializer,
UserPhotoSerializer,
LikeSerializer,
)
from rest_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b8bfa20c48a09ea631ae3599d378426deb6339e7 | a8722dd4b94bf68e130bc67b065776be028f0408 | /Application/constants.py | d00528f957dabf5eea9b135919c07c8165898d91 | [] | no_license | Nan0Scho1ar/JobBot | 516e274ee1bac88105e9300765f1e655c7134076 | 33955949d6ab79a8f178f2d0587d47347090bc6c | refs/heads/master | 2022-05-30T10:47:58.922710 | 2022-05-22T23:05:57 | 2022-05-22T23:05:57 | 434,419,436 | 0 | 0 | null | 2021-12-03T00:41:26 | 2021-12-03T00:41:25 | null | UTF-8 | Python | false | false | 1,775 | py | from Shared.helpers import Const
from enum import Enum
class ApplicationBuilderConstants(Const):
class TagBlurb(Const):
KEY_BLURBS = 'blurbs'
KEY_BLURB_TAGS = 'tags'
KEY_BLURB_LONG_TEXT = 'longText'
KEY_BLURB_SHORT_TEXT = 'shortText'
KEY_BLURB_SCORE = 'score'
TAG_S... | [
"arash.out@gmail.com"
] | arash.out@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.