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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bcc17ee1813a52bccab8ac39a9e8226aef2aa458 | 5543c0bbbb15c243901df3b3174231a06a7e5462 | /data structures - algorithm/Linked List.py | 5cdc023bd041a9ebfa2e6f7d56a27c487a2da256 | [] | no_license | ksjksjwin/learn_practice_python | fec4c091852367dcbd2a9048bb267092d70888f7 | 48d5f8298943d77ca199199d04885a9547e1d2dd | refs/heads/master | 2018-11-03T20:44:25.523495 | 2018-10-10T23:15:53 | 2018-10-10T23:15:53 | 90,224,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | class Element(object):
def __init__(self, value):
self.value = value
self.next = None
class LinkedList(object):
def __init__(self, head=None):
self.head = head
def append(self, new_element):
current = self.head
if self.head:
while current.next:
... | [
"noreply@github.com"
] | ksjksjwin.noreply@github.com |
fa0f21f9134473ef9f13a2fae06ec06be997634b | ef90986a53927eabb2394286f243adc8d75a6cdc | /P4E-VN/code/Chapter1+2/doi-tien-VND-USD.py | ba461c8a672f04de7edd2e4da7e33514af282c21 | [] | no_license | datkk06/ghichep-python | a30b1280f55ca8a8d8f4743b707e2980862d576b | 24923c372061f6ecce6f55d2eb4a802254f1e75c | refs/heads/master | 2021-01-12T10:50:33.914885 | 2016-11-21T05:21:49 | 2016-11-21T05:21:49 | 72,729,612 | 0 | 0 | null | 2016-11-03T09:31:27 | 2016-11-03T09:31:27 | null | UTF-8 | Python | false | false | 563 | py | #Chuong trinh doi tien tu VND sang USD va nguoc lai.
#biet 1 USD = 20.000 VND
print "Xin chao !!!"
print "Vui long nhap vao so tuong ung de quy doi"
print "Nhap 1 de doi tu USD sang VND"
print "Nhap 0 de doi tu VND sang USD"
a = input("Xin moi nhap : ")
if a == 1:
b = input("Nhap vao so tien USD ban m... | [
"thanhdatkma96@gmail.com"
] | thanhdatkma96@gmail.com |
c12a64a0bf89da568bdb0f80490326da49ffc388 | 64a49f3075371ab8db452bf39188f7ef8e4ec024 | /tutorial_cn/6.用python-bottle库进行web页控制/python-bottle/main.py | 8272303cefadcbe7522176f5432869174ecf1030 | [
"MIT"
] | permissive | rcdrones/rpi_isolated_relay_hat | b68c7d777d6f0387f616680fcd2b3ba1a3619a07 | 405e6fc6a04d4002c6c496fd670757e2d68d8e71 | refs/heads/master | 2021-04-23T07:09:17.110968 | 2020-06-05T06:16:20 | 2020-06-05T06:16:20 | 249,908,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | #!/usr/bin/python
# -*- coding:UTF-8 -*-
from bottle import *
import RPi.GPIO as GPIO
import socket
#GPIO Pin
Relay = [26, 20, 21]
#All the relay
Relay1 = 1
Relay2 = 1
Relay3 = 1
#GPIO init
GPIO.setmode(GPIO.BCM)
for i in range(3):
GPIO.setup(Relay[i], GPIO.OUT)
GPIO.output(Relay[i], GPIO.HIGH)
@get("/")
... | [
"rcdrones@163.com"
] | rcdrones@163.com |
af673f23ff715e728cc51363efba47a00d25983a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /MxNcFpABB68JCxSwA_21.py | c723eb2ea66a70cd882829dbe3acdcb56347c6b0 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py |
def legendre(p, n):
sum = 0
i = 1
while n // p**i >= 1:
sum += n // p**i
i += 1
return sum
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ea1bcc55cfd8b75317e22e14dd2204cfadba8760 | 413f7768f98f72cef8423c473424d67642f1228f | /examples/10_useful_functions/ex06_enumerate.py | 909474c54cfdc5aacf3c864d87b7e09cc6e3b343 | [] | no_license | easypythoncode/PyNEng | a7bbf09c5424dcd81796f8836509be90c3b1a752 | daaed1777cf5449d5494e5a8471396bbcb027de6 | refs/heads/master | 2023-03-22T01:21:47.250346 | 2022-08-29T18:25:13 | 2022-08-29T18:25:13 | 228,477,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from pprint import pprint
with open("config_r1.txt") as f:
for num, line in enumerate(f, 1):
if line.startswith("interface"):
print(num, line, end="")
| [
"58902135+easypythoncode@users.noreply.github.com"
] | 58902135+easypythoncode@users.noreply.github.com |
b4bbeb6bc70b8690fc60978b5cb7e81804e13374 | c97b4e4033237c76ba6160be5636882b11562e5e | /01_WebScraping/hiphopscraper/hiphopscraper/middlewares.py | 77c26d3aaf056fc7a83f6a47aae36c905e9bcd62 | [] | no_license | jinangela/RisingChineseHipHop | 81a8aa400aab583c5febdedf232686ee29c1dbd0 | 28b1bd2eb7761be839e8adccece778b312d08ef9 | refs/heads/master | 2021-09-13T08:09:45.653615 | 2018-04-27T02:35:17 | 2018-04-27T02:35:17 | 105,606,901 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,911 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class HiphopscraperSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# sc... | [
"mengshanjin2016@u.northwestern.edu"
] | mengshanjin2016@u.northwestern.edu |
07a4d07ea63c953f0fa187e656684cbc1068c7fc | dbd5a592bfc33cfcd175e77f6b3a0ffddb86fcfe | /demo1/my_books/main.py | 392dc320fa7d9a4586a05bc12b0ad1569dd26186 | [] | no_license | TTwilight/tornado_study | 7b64a1bc64fab0fcb41b24093f77bcd70c99f4fe | 3ccf778b0aa401aa48a9ea124c86884774649d91 | refs/heads/master | 2020-12-30T13:07:59.294500 | 2017-06-21T02:28:11 | 2017-06-21T02:28:11 | 91,326,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | import tornado.web
import tornado.httpserver
import tornado.options
import tornado.ioloop
import os.path
from tornado.options import options,define
define('port',default=8088,type=int,help='input port')
class Application(tornado.web.Application):
def __init__(self):
handlers=[
(r'/',IndexHandl... | [
"ttwilight2016@gmail.com"
] | ttwilight2016@gmail.com |
d25f03d288f52ca1623af97eee1b341b4ed0fc2e | c3a19df6ff895aa9b6c4a366506ba83d8c3a4733 | /flaskControl.py | 72825d2290fb347ade1ae6f20816817706e39679 | [] | no_license | MattK4517/YoutubePlaylist | dd2c2e724536619cb59efde97deee7bb98897f15 | d8bb9bc92af69f77c2fb60c508ae4f8747669ba3 | refs/heads/main | 2023-03-12T11:08:26.072447 | 2021-03-01T12:03:58 | 2021-03-01T12:03:58 | 319,828,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | from flask import Flask, render_template, url_for, request, jsonify
from mySQLControl import mydb, mycursor
import analyze as anlz
app = Flask(__name__)
numRuns = open('runs.txt', mode="r").read()
mycursor.execute("SELECT * FROM ytdata")
myresult = mycursor.fetchall()
normData = []
Data = []
for x in myresult:
n... | [
"rotmgmayhem@gmail.com"
] | rotmgmayhem@gmail.com |
7391bab13b498877c272f00e6690ce87243867f1 | c85d43dc50c26ea0fa4f81b54fb37460ef6cca8d | /rms/urls.py | e59bd4b9b1b0e2b3f232d4b3be1bab71db14aab9 | [] | no_license | yorong/buzzz-web-dev | c48dbc165d0aa3abce07971a2dee0280f9bf1e92 | 0b74bd1b7cfc7a6a7d61672f930d0bde635b4398 | refs/heads/master | 2021-08-23T02:38:00.544503 | 2017-12-02T16:01:31 | 2017-12-02T16:01:31 | 112,854,877 | 0 | 0 | null | 2017-12-02T15:50:40 | 2017-12-02T15:50:39 | null | UTF-8 | Python | false | false | 281 | py | from django.conf.urls import url
# from django.views.generic.base import RedirectView
from rms.views import (
RMSHomeView,
RMSStartView,
)
urlpatterns = [
url(r'^$', RMSHomeView.as_view(), name='home'),
url(r'^start/$', RMSStartView.as_view(), name='start'),
]
| [
"ppark9553@gmail.com"
] | ppark9553@gmail.com |
64315e65ca3a6b26034cbd10063b997301a8030f | fc63bcaaebbb153ac2b8047d3f36b63b872a675f | /pazhur/bin/pylint | 51d5c7d27d7d53d35ef76978ebb6a97b23d5f403 | [] | no_license | temi999/pazhur | 571dd5aa83edb0a2f691752c637ff63b6f387814 | 2ceb72d18707f60695b6c21149f95e5638e4d5af | refs/heads/master | 2022-05-03T23:28:36.046203 | 2019-12-03T21:01:31 | 2019-12-03T21:01:31 | 223,620,354 | 0 | 0 | null | 2022-04-22T22:48:03 | 2019-11-23T16:34:47 | Python | UTF-8 | Python | false | false | 239 | #!/home/vitaliy/pazhur/pazhur/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_pylint())
| [
"temi999@github.com"
] | temi999@github.com | |
c8813dfc6bcc9f3e14517bbb631dad71176f78d9 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/wikipedia/testcase/interestallcases/testcase6_011_1.py | f8d2461ccd955bd20d8bbd39508574f42faae36b | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,155 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
920efc741d87c1409eafd9a6b6d7fd5c836aae89 | 25678b007fe06e565ec8634fe85279041046ee90 | /Test_on_robots/underwater_depth_prediction.py | bf1b55abb7638da7d1c471ac89783ea8595ececb | [] | no_license | pengzhi1998/Underwater-obstacle-avoidance | 1e32040b6bcdc0bb71dac5628c6cd93d46fbb195 | d3db4c35d950acf9bb96d0ed44f8ab3c2bcc941a | refs/heads/master | 2022-10-27T00:04:18.080489 | 2022-10-09T08:34:59 | 2022-10-09T08:34:59 | 208,349,688 | 37 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | import torch
import torch.nn as nn
import random
import numpy as np
import time
import rospy
from fcrn import FCRN # this file could be changed
import cv2
batch_size = 1
from torch.autograd import Variable
dtype = torch.cuda.FloatTensor
depth_net = FCRN(batch_size)
resume_file_depth = 'checkpoint.pth.tar'
checkpoint =... | [
"tyypz2590477658@gmail.com"
] | tyypz2590477658@gmail.com |
b7ed771c6a32261aa34a41a784151e1f35e36ea8 | 01ede4fc2497943cdf64211457338838cca97997 | /DatasetManager/DatasetManager/arrangement/arrangement_statistics.py | f18a60997a7ab7ca3a83dee4b298d13b2924e591 | [] | no_license | qsdfo/orchestration_aws | e317cb55a39789ad270410ba886a42f67e5ce81b | 10ebb1752680b03e88fd08ca0a80e55b1269e8a1 | refs/heads/master | 2021-05-18T03:19:49.562863 | 2020-07-10T10:06:24 | 2020-07-10T10:06:24 | 251,080,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,588 | py | import copy
import csv
import os
import shutil
from DatasetManager.arrangement.instrument_grouping import get_instrument_grouping
from DatasetManager.config import get_config
from DatasetManager.arrangement.arrangement_helper import ArrangementIteratorGenerator, note_to_midiPitch, \
separate_instruments_names, Orc... | [
"crestel.leopold@gmail.com"
] | crestel.leopold@gmail.com |
a1c5348050d80c3090682cc922ad3ad1b36a1dab | e3a57b0860f6d0184f8a7f75f690c78f70d78b75 | /encontramenores/encontramenores.py | e30961575038a5b6db4294990da58d6b9291e25c | [] | no_license | yovanycunha/P1 | ec954defd2b84b98abf6931b8fb1a61b30bcfae1 | 2a79055b24c1e3cdebcca64ba5651fcaddbf36c2 | refs/heads/master | 2021-06-13T05:07:06.741433 | 2017-03-07T16:42:16 | 2017-03-07T16:42:16 | 56,606,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # coding: utf-8
# Encontra Menores
# (C) 2016, Yovany Cunha / UFCG, Programação 1
def encontra_menores(num,lista):
menor = 0
outro_menor = 0
count = 0
aux = 0
while count < len(lista):
if lista[count] < num:
menor = lista[count]
return menor
break
count += 1
if count == len(lista):
return -1
lis... | [
"yovany.cunha@ccc.ufcg.edu.br"
] | yovany.cunha@ccc.ufcg.edu.br |
53652cfe623d08099fea129baa47680078387357 | 219874980a7b4d7ce13a05f178f1a7d4c4596a75 | /pytest_demo/test_some_are_slow.py | c548fe859392c270c2cc8e77ec950b251ce72b89 | [] | no_license | jerry117/pytestdemo | 9cbd39946f4b6fcdec9a414d2979ab317d0dfd00 | b13b9d7a13ddf2e3ba8fc31a4fda590a15e5d23e | refs/heads/master | 2020-04-22T03:10:17.073654 | 2019-04-09T05:10:09 | 2019-04-09T05:10:09 | 164,998,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | #coding:utf-8
import time
# 命令行运行命令
# pytest -v -s --durations=3 test_some_are_slow.py
# 统计用例运行时间
def test_funcfast():
time.sleep(0.1)
def test_funcslow1():
time.sleep(0.2)
def test_funcslow2():
time.sleep(0.3)
| [
"noreply@github.com"
] | jerry117.noreply@github.com |
df66074ddd9a427cb855cccb45608dba94bd3f97 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_3294.py | 5e9ea46918a4f4b675a7c226efb96d67ef2616ba | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | # Piecewise list comprehensions in python
[50 if hasProperty(x) else 10 for x in alist]
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
dc818b311168111b640436a0173f0b053dd03c2f | 6e375f302947dc49a27e0ddf7585e0c8e575b4a0 | /python code 2.7 version codes/webbrowsers_open.py | 7a6cc76fae2db4b2d2983ff4584674e39aaa1449 | [] | no_license | roopak07/python | 1b7b5001d0535f696587867fef22e3b9d257c35b | d0043c974696c3fe2bd1e9f19319ceae0388e53f | refs/heads/master | 2020-07-30T22:34:46.329077 | 2019-09-23T14:58:20 | 2019-09-23T14:58:20 | 210,382,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | import webbrowser
a=raw_input("Enter google or youtube to open site:")
print(a)
if(a== 'google'):
webbrowser.open('www.google.com')
if(a=='youtube'):
webbrowser.open('www.youtube.com')
| [
"noreply@github.com"
] | roopak07.noreply@github.com |
4e520a66215be56519ef3f9ed3a90df7fc461c66 | cf04fc9544c194ea93027457fe0b0d16ff95acf1 | /dictionary/thirtyfour.py | 63e5d1c6d395cf6d617d982bea5ae016167ebbd9 | [] | no_license | bipinaghimire/lab4_continue | 0da9c47e3f5461306926cf42844aef92a4b8b8b6 | d13ec8fd4fb14c5d11ba12d57f8c28c80478a2d6 | refs/heads/master | 2023-06-15T05:13:29.902384 | 2021-07-12T13:34:32 | 2021-07-12T13:34:32 | 382,886,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | '''
Write a Python script to sort (ascending and descending) a dictionary by value
'''
d={4:'cow', 3:'apple', 1:23, 2:32}
for i in d:
print(d) | [
"bipinaghimire6@gmail.com"
] | bipinaghimire6@gmail.com |
06650cb7f17b0ba1ccd72d9d834e4f097d98fb94 | 7e18702bf49337e5ffc846efc681f2120cdd62b5 | /prepare.py | dd47f2b50432795791e1026077e4758760b1c2dc | [] | no_license | SamuelD-Data/telco_churn_project | e68dd67c314f10e42ee24f09688cb1b7ae3f67f5 | e5b794caa0d2d0cf2b6ad4a978052e9c1cae1247 | refs/heads/master | 2023-03-13T05:12:41.926460 | 2021-02-21T18:09:24 | 2021-02-21T18:09:24 | 296,930,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,751 | py | # importing
import pandas as pd
from sklearn.model_selection import train_test_split
# creating function to prep data for analysis
def prepare_telco(telco_raw):
# dropping duplicate rows
telco_raw.drop_duplicates(inplace=True)
# creating new column that tells whether the customer makes automatic or manual... | [
"samuelrdavila@gmail.com"
] | samuelrdavila@gmail.com |
6f08a12f8b35e324cd0c6e7c54788cd6de7b0d09 | 5be4167e7d1c31cd16b6f20c5ce082f033cda92a | /c&c/WazzupClient/WazzupClient.py | 7424454c26f228f83c5b1244e92f03f7ea256a37 | [] | no_license | pagarsky/junior-dc | a9864aa70c73b6a2fe3c5faca2cf8943e7f53e00 | 467a94115d313fcaf7d2b7da3392ed4dc41ad7d2 | refs/heads/master | 2022-04-24T20:49:46.818013 | 2020-04-18T16:36:20 | 2020-04-18T16:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | import socket
import argparse
from time import sleep
def wazzup(address : str, port : int):
sock = socket.socket()
sock.settimeout(3)
sock.connect((address, port))
sock.send("Wazzup!".encode("utf-8"))
while True:
data = sock.recv(48).decode("utf-8").strip()
if not data:
... | [
"alex.pagarski@gmail.com"
] | alex.pagarski@gmail.com |
d96f5d9394019e8b1a23bc0415b829550c05f46c | 21e95a845f9b24138fd31375b47430ef852fa8d0 | /properties/migrations/0003_property_history.py | b54034ec1e1d895608ffa5d94588d35bcae389f3 | [] | no_license | benjafishman/CombinedFishmanProperties | 95976ecbd781c99a4569677ea47909df9a6a8f9a | 637dcb10bab419d27338f127cdc34f723a74483c | refs/heads/master | 2016-08-11T21:48:54.633829 | 2015-08-28T03:47:26 | 2015-08-28T03:47:26 | 36,774,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('properties', '0002_apartment'),
]
operations = [
migrations.AddField(
model_name='property',
name='h... | [
"benjafishman@gmail.com"
] | benjafishman@gmail.com |
e5ad5c770ed56c7d725331f177b1d970fe8b5cf2 | 9b6e1ac71482947a760229ea26b96d0e53cca8a5 | /app/auth/views.py | 66b8f7280b5f3adefe2b35c86edefef7c669eaf8 | [] | no_license | Noldia/PythonFlask | a93cb0e7fe23c4c9a4cbe915724ce963fbbffedf | b2c5978aa510bf379aad26667615cf3bf6a01bae | refs/heads/master | 2022-12-09T21:31:15.441405 | 2020-09-11T15:31:14 | 2020-09-11T15:31:14 | 294,731,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,183 | py | from flask import render_template, session, redirect, flash, url_for
from flask_login import login_user, login_required, logout_user
from werkzeug.security import generate_password_hash
from app.forms import LoginForm
from . import auth
from app.firestore_service import get_user, user_put
from app.models import UserM... | [
"noldia12@gmail.com"
] | noldia12@gmail.com |
f2f5bb2c58b64f25edc908f54fe3891a4afcd5f3 | ec65636f2f0183c43b1ec2eac343b9aa1fc7c459 | /train/abnormal_detection_new/10.8.160.17/sga_shared_pool.py | 8a737bdd656b80792eacc2ff1661d95aec78865d | [] | no_license | tyroarchitect/AIOPs | db5441e5180fcace77b2d1022adb53bbd0b11f23 | 46fe93329a1847efa70e5b73bcbfd54469645cdd | refs/heads/master | 2020-04-16T13:45:02.963404 | 2018-11-15T06:50:57 | 2018-11-15T06:51:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,202 | py | import tensorflow as tf
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# settings of lstm model
timesteps = 20
batch_size = 64
epochs = 5
lstm_size = 30
lstm_layers = 2
filename = "../../../datasets/1-10.8.160.17_20181027_20181109.csv"
model = "../../../model/abnormal_detection_model_new/10.8... | [
"873869027@qq.com"
] | 873869027@qq.com |
a23fd99ea20afb5fe85f43bc4fa8b02cfd01f543 | 3ddd04e64048c2451a51ccedc54d26666b8464b8 | /CS1134 Data Structures/tre2/tre2.pyde | 6480755a93c009bdd54bdf8e94eff9af4da6fc0b | [] | no_license | DavidDev21/CS-Homeworks | b729bb9a6a700758e891f265b8c5a3175f7d6515 | f4928c4f8b2ab3ada048afbfdb6cbb04185f58f4 | refs/heads/master | 2021-01-22T18:23:31.073087 | 2018-04-05T01:51:21 | 2018-04-05T01:51:21 | 85,077,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,351 | pyde | import sys
import random
import math
def setup():
size(1100, 1100)
background(255)
pixelDensity(displayDensity())
def drawLineAngle(color, start, angle, length, width):
angle += 180 # make up zero degrees
end = (start[0] + math.sin(math.radians(angle)) * length,
start[1] + math.cos(ma... | [
"davidzheng54@gmail.com"
] | davidzheng54@gmail.com |
cd88a83b5071fa45011c2dadac4bb7222849f51c | 7d8e420e208fd2435faa4daac95375ae060fdfb9 | /result_analysis/urls.py | 8a662743ffbf0c3face844db208fa7203e0b0ef9 | [] | no_license | NagaTivikramReddy/Student-Analysis | 63b74d2478fc61e72136b4e7991e283ed6140615 | bc314aa9fd01438ff8380d04e2a030e4589a291f | refs/heads/master | 2023-07-15T22:39:10.815777 | 2021-08-19T19:29:53 | 2021-08-19T19:29:53 | 398,051,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | """result_analysis URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"kntreddy777@gmail.com"
] | kntreddy777@gmail.com |
a0b89519a21414737b9664285aa3073dcc619318 | 9ab48ad4a8daf4cab1cdf592bac722b096edd004 | /genutility/fingerprinting.py | b20ca97a8ec9dc1a95e9d6192a517f13f01cf58d | [
"ISC"
] | permissive | Dobatymo/genutility | c902c9b2df8ca615b7b67681f505779a2667b794 | 857fad80f4235bda645e29abbc14f6e94072403b | refs/heads/master | 2023-08-16T18:07:23.651000 | 2023-08-15T19:05:46 | 2023-08-15T19:05:46 | 202,296,877 | 4 | 1 | ISC | 2022-06-14T01:39:53 | 2019-08-14T07:22:23 | Python | UTF-8 | Python | false | false | 4,528 | py | import logging
import numpy as np
from PIL import Image, ImageFilter
# from .numba import opjit
from .numpy import rgb_to_hsi, rgb_to_ycbcr, unblock
# fingerprinting aka perceptual hashing
def phash_antijpeg(image: Image.Image) -> np.ndarray:
"""Source: An Anti-JPEG Compression Image Perceptual Hashing Algorit... | [
"dobatymo@users.noreply.github.com"
] | dobatymo@users.noreply.github.com |
8f9b0e7e10ce2d0f629b0f5a5eef3440ed2ba3df | d6303db7e34a7b04bd278e04dedbfe5e71fd1a9f | /visual_caption/image_caption/feature/vgg16.py | 64ef248a7e870f6fc7990b979eee1464ab328639 | [] | no_license | changquanyou/visual_to_caption | e6da64c521c1d053e2faa68ce57cbfb0894a2d3d | 3eebb8ccd25a5b8bea1a2ad986396a97e4406e38 | refs/heads/master | 2021-03-24T12:43:31.460072 | 2018-03-10T05:34:22 | 2018-03-10T05:34:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,629 | py | # -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals # compatible with python3 unicode coding
import inspect
import os
import time
import numpy as np
import tensorflow as tf
VGG_MEAN = [103.939, 11... | [
"ming616@gmail.com"
] | ming616@gmail.com |
ebc198a8a693bfd719072c1cbac6484cb645ddc4 | 9e184af532ca3f63dc78d3199e89d55848fd2670 | /etl/data_enhancement/ranking.py | cc1fe176d5d5b4d93c938451ce785fcd5f517dc6 | [
"MIT"
] | permissive | Terkwood/openartbrowser | 33ff592b9399ceec29b86ee4081eec35c44fea77 | 64b29989871a75fb0c9fcd9800e1d383114faeb7 | refs/heads/master | 2023-01-31T05:55:05.372791 | 2020-11-04T11:30:52 | 2020-11-04T11:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,101 | py | """Ranks the extracted wikidata entities with the oab data enhancement steps.
Implemented as specified in https://github.com/hochschule-darmstadt/openartbrowser/wiki/System-architecture#ranking
Returns:
The ranked entities which means the attributes absolute rank and relative rank.
"""
import json
import datetime... | [
"tilo.w.michel@stud.h-da.de"
] | tilo.w.michel@stud.h-da.de |
5a2524a0bd81ae136a6c230538fb8c7985d95562 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startCirq330.py | 74d7d9238c53332a3cb7ad0438bb8c452fc6d169 | [
"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 | 4,271 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=3
# total number=66
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
550b55101c715dd350fa5cd27249306a0f72db95 | aea7bbe854591f493f4a37919eb75dde7f2eb2ca | /startCamp/03_day/flask/intro/function.py | f11de57476cf04f3c28b5c8018c3382bdd7abb9c | [] | no_license | GaYoung87/StartCamp | 6e31a50d3037174b08a17114e467989520bb9a86 | 231b1fd0e245acb5d4570778aa41de79d6ad4b17 | refs/heads/master | 2020-06-17T11:52:38.256085 | 2019-07-12T01:14:47 | 2019-07-12T01:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | # sum이라는 함수를 정의
def sum(num1, num2): # 숫자 num1, num2라는 인자를 받는 함수
return num1 + num2
result = sum(5, 6)
print(result)
| [
"gyyoon4u@naver.com"
] | gyyoon4u@naver.com |
e39e1e809eb92fa07dc865edc6a47450135d92ac | a9bddd143fb010977d17848f8851fc516bf46e3a | /stance_detection_with_sentiment.py | 8c57b95fd372942b8d777f3c5ac9fd35844ef336 | [] | no_license | ajinkyachavan/Computational-Linguistics-Timbl-MPQA-Maltparser | a76d21c1897479103503c32a8fc930a7bcd6c6c5 | e2e6e493b8a0d7ba0625108dc86e2e3f8fb32a9a | refs/heads/master | 2021-08-31T18:16:21.134237 | 2017-12-22T09:54:16 | 2017-12-22T09:54:16 | 115,100,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,339 | py | import csv
import operator
from nltk import word_tokenize
from nltk import stem
import os
from dataManager import DataManager
from nltk.tag.stanford import CoreNLPPOSTagger, CoreNLPNERTagger
from nltk.tokenize.stanford import CoreNLPTokenizer
from nltk.tag.stanford import StanfordPOSTagger
import nltk
import pandas as ... | [
"ajchavan@iu.edu"
] | ajchavan@iu.edu |
1d953d5593a85fe780c36385ba7b7f74dc343f4d | 58b05de781d26f436aaeaa44cb8fb31478574883 | /emp_project/employees/migrations/0003_auto_20200503_1935.py | db0dde0377e8eaf2e81f618b8adc3de351c68028 | [] | no_license | levyEstrabillo/employee-todo-app | fdec07cd5f527ffb9e817fb54c376d0aa9893562 | 25aa2b3ad442b0c0ff8c2f8640f2683b6fdac56c | refs/heads/master | 2022-07-01T11:02:50.430042 | 2020-05-10T02:02:59 | 2020-05-10T02:02:59 | 262,693,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 3.0.2 on 2020-05-03 11:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('employees', '0002_employeeinfo_thumb'),
]
operations = [
migrations.AlterField(
model_name='employeeinfo',
name='thu... | [
"levy.estrabillo58@gmail.com"
] | levy.estrabillo58@gmail.com |
1082ebb546398d63dc245de02ee57418e90b3adf | 431bc11b435ed2d6e20de4a513d74abfb566f047 | /Digit_Classification_TEST.py | 1bb76626e9faea927d8396822376e20e6ab0e363 | [] | no_license | kchopra456/Digit-Classification-and-Image-Obfuscation-ANN | 798cf637803f26182ff2d49edd70d235565492d2 | f345c24e9554b7f6d43b12fa92530035af7c48dd | refs/heads/master | 2021-01-13T03:18:26.961365 | 2016-12-29T08:11:57 | 2016-12-29T08:11:57 | 77,582,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | py | import numpy as np
import scipy.io as scio
''' ### SIGMOID FUNCTION ###'''
def sigmoid(x):
return 1.0/(1+np.exp(-x))
''' @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ '''
''' ### SIGMOID GRADIENT ### '''
def siggradient(x):
tempg=sigmoid(x)
return np.multiply(tempg,(np.ones(tempg.shape)-tempg))
''' @@@@@@@@@@@@@... | [
"kchopra456@gmail.com"
] | kchopra456@gmail.com |
c838ffb037c5654f4338c5bd3d6f80b5cfd52df1 | c36590adacdcf52f46e7a1d055e7f0b47081b737 | /mpesa.py | cf596b6bfb9dbaeae2ddca586713e025a0d83d08 | [] | no_license | pu-ray/example-4 | 13fd80580ad857e7862b3c6e7dd406850a0f638b | 3bc085230c2011b185ff1640336b4964b6c6c7fb | refs/heads/master | 2020-05-16T10:51:31.532664 | 2019-04-26T20:36:07 | 2019-04-26T20:36:07 | 182,997,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | class MpesaAccount:
def __init__(self,name,phone_number,balance):
self.name = name
self.phone_number = phone_number
self.balance = balance
self.deposits= []
self.withdrawals = []
self.loan = 0
self.cash = []
def withdrawal_amount(self,m):
withdraw... | [
"mbuguapurity1@gmail.com"
] | mbuguapurity1@gmail.com |
1cf7ef2daeb52495f16965e9321a032505ad299b | 6b84ff0aed9c137ef5fbb4ee342fb34cf520dfb0 | /add_user_to_project.py | c8c070ddee9aed133487f5b4d34cada0a059d1a6 | [] | no_license | Lucimore/Jira_add_users_to_project | bc984218abf9b82ce854c88b32384bb60784a00b | 117d406a71ce7c095789e8691ace6da52d77ed33 | refs/heads/master | 2022-12-02T06:51:53.079454 | 2020-08-22T11:37:51 | 2020-08-22T11:37:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | from jira import JIRA
import requests
import json
login = "my_jira_login"
password = "my_jira_password"
baseURL = 'http://my-jira-url.com'
project = 'MYPROJECT'
role = '99999' # 10001 - Developers; 10000 - Users; You can find role_id here: System - Security - Project roles - hover over edit role - You wiil ... | [
"noreply@github.com"
] | Lucimore.noreply@github.com |
a8c935c4fe4e836bef96a7fbb91d7253addec6ed | 503d914c01f643aae8d42b6769024bf8b776e1a0 | /random_forest.py | 5762662702a55e4c6705c336bd528f063dd54d0c | [] | no_license | suhaib-askar/Emotion-Recognition | 62902711765fdb30020164632f69fb06949b0c90 | 0513906416e86b3b1ef3228a040481925bee4cad | refs/heads/master | 2020-03-20T23:48:29.777670 | 2018-02-13T16:07:27 | 2018-02-13T16:07:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | import random
import numpy as np
from tree import Tree
from multiprocessing import Pool
class RandomForest(object):
def __init__(self, num_of_trees = 100):
self.trees = []
self.num_of_trees = num_of_trees
# It receives a binarized training dataset
def fit(self, predictors, X, y):
w... | [
"emanuele.rossi1909@gmail.com"
] | emanuele.rossi1909@gmail.com |
ed7a68ee49ec190309b718ad2c53241429aa8857 | b3a5151d8bd2fcff8ca067e1c4dc321f777daf6b | /Task_8/Salary.py | 42f657bbdccfa83261d0e916fbd0f8a0a1a9d539 | [] | no_license | abakums/OOP_Python | 6d6f598cfb8b0ee7a8af9baebbe4b282145167c2 | 27bb46536109823be4cfd632d153f8edfcc4083a | refs/heads/master | 2023-02-15T09:34:56.584073 | 2020-12-24T19:09:52 | 2020-12-24T19:09:52 | 295,959,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | from Task_8.Meta import *
class Salary(metaclass=MetaClass):
"""Класс, отвечающий за гонорар бойца"""
def __init__(self, pay):
"""Инициализация объекта"""
self.pay = pay
def __str__(self):
"""Строковое представление объекта данного класса в виде значения самого гонорара"""
... | [
"abakumovs882@gmail.com"
] | abakumovs882@gmail.com |
31355d0dd7dda2d27b292c3bf03a879d6066ec52 | 825aa354638f0c7d48338d818d4f28f2f7ba3dd2 | /alien.py | 58c2dfc399060d41a9fa07799576be89675bfbd2 | [] | no_license | swatisharma27/alien-invasion | 09982294780f988714fcfe9fa0a79bbe5917a47c | fdf3612ad879c2b5f665bbe99b1b3811de43bab2 | refs/heads/master | 2022-11-27T18:35:52.912954 | 2020-08-04T04:19:02 | 2020-08-04T04:19:02 | 268,208,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | import pygame
from pygame.sprite import Sprite
class Alien(Sprite):
"""A class to represent a single alien in the fleet."""
def __init__(self, ai_game):
"""Initialize the alien and set its starting position"""
super().__init__()
# Assign screen to a Alien class attribute , so we can a... | [
"2707.swati@gmail.com"
] | 2707.swati@gmail.com |
4719e51fa56b3600742fbd2c1be5fad4e15e9316 | 2690ebdb7806bd8bb5086af7d385c88efb16b6eb | /kit/migrations/0008_auto_20210106_2300.py | b32ff720779a6bf5214c8e300599a000c9adbf60 | [] | no_license | GustavoHen12/seed-back | d82a90586b5076a81669d7549ea7cf70df39414a | 6bb4c5f50b66f01b365362e1f0fe9c1d19512a57 | refs/heads/master | 2023-03-11T14:59:48.213861 | 2021-02-28T18:23:21 | 2021-02-28T18:23:21 | 336,402,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Generated by Django 3.0.8 on 2021-01-06 23:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('kit', '0007_auto_20210106_2300'),
]
operations = [
migrations.AlterField(
model_name='kit_produ... | [
"gustavobarbosa@alunos.utfpr.edu.br"
] | gustavobarbosa@alunos.utfpr.edu.br |
d1f93770b5d83a892f39191818a686d805bbea87 | 6284ebecd79eb555b213382b2e53f65d7097dcad | /slyd/slyd/gitstorage/projects.py | 145dca8517206eeae0a26b476b98360c6e08cbbd | [
"BSD-3-Clause"
] | permissive | wyvern92/portia | c599e5df782931f276099ae396b6001831524567 | 6e6907d2409e7e415a5ecec384a7a376fc42c031 | refs/heads/master | 2021-05-28T12:11:23.662174 | 2015-03-20T12:25:18 | 2015-03-20T12:25:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,787 | py | import json
from os.path import join
from functools import wraps
from twisted.internet.threads import deferToThread
from twisted.internet.task import deferLater
from twisted.internet.defer import inlineCallbacks
from twisted.internet import reactor
from slyd.projects import ProjectsManager
from slyd.projecttemplates ... | [
"ruairi@scrapinghub.com"
] | ruairi@scrapinghub.com |
db4efc53dbd24920a34333598db12b7339ef2e3d | df563f111f6212a6b907c74a59c3a314ffb86cc5 | /listings/admin.py | 3a569e4d3c777d18e0bdb73315bac1cc60abc572 | [] | no_license | ahmedhashim1/btre_project | 1b899efb976ced2c16d176e4166c2852ce6c4a56 | 5d6e3da2c3ec65bb738328440e3f5808dff46755 | refs/heads/master | 2021-02-10T23:35:04.885462 | 2020-03-02T17:24:57 | 2020-03-02T17:24:57 | 244,429,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from django.contrib import admin
from . models import Listing
class ListingAdmin(admin.ModelAdmin):
list_display = ('id', 'title', 'is_published', 'price', 'list_date', 'realtor')
list_display_links = ('id', 'title')
list_filter = ('realtor', )
list_editable = ('is_published',)
search_fields = ('t... | [
"ahmedhashim_2000@hotmail.com"
] | ahmedhashim_2000@hotmail.com |
07556ff217ab2ff72c580a93caa1f60d8388ddee | a4000665d1a22c9f80c3471b2cedf5992c06980e | /Interview_Cake/greedy_algorithms/best_profit.py | e4b4f1a43f5fcbab04e653a26b418f1ed00fa24a | [] | no_license | jtquisenberry/PythonExamples | f8221628a8d8c3735a4b7cde484b16996eb39fd4 | 64a5f95d64201721532b74328d6fefd78015fca5 | refs/heads/master | 2022-10-16T13:43:46.290587 | 2022-09-24T00:18:56 | 2022-09-24T00:18:56 | 135,393,855 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,707 | py | # https://www.interviewcake.com/question/python/stock-price?course=fc1§ion=greedy
# Greedy algorithm
# Performed in one pass
# Time = O(n)
# Space = O(n) (because using a slice)
# Space = O(1) if change from slice to index.
# For a greedy problem, the idea is to keep track of the best solution
# so far and the va... | [
"20849606+jtquisenberry@users.noreply.github.com"
] | 20849606+jtquisenberry@users.noreply.github.com |
2e736bab3694ed85b43634219468ce75c164341a | 09cee013e47e31e5ee3da8bebde977408fe55eaf | /Toolz/server/WAR_WorldServer.py | 17506a0291162bb3e6b5c8c82992aab7f008a325 | [] | no_license | Areanda/waronline_fun | d2250c78bd0e64bf9d50e249b22dec994eed9ae2 | f31e594d09b34679f6c52e667762234727b1a7ee | refs/heads/master | 2021-05-28T23:08:57.898406 | 2015-05-20T18:06:43 | 2015-05-20T18:06:43 | 111,798,081 | 0 | 1 | null | 2017-11-23T10:51:51 | 2017-11-23T10:51:50 | null | UTF-8 | Python | false | false | 64,457 | py | import SocketServer
import struct
import time
import zlib
import threading
import thread
import construct
import WAR_TCPHandler
import WAR_Utils
from WAR_WorldStruct import *
l_connections = set()
class WorldTCPHandler(WAR_TCPHandler.TCPHandler):
""" """
def recv_data(self):
buf = self.request.recv(... | [
"gw4kfu@gmail.com"
] | gw4kfu@gmail.com |
e5a1f9272c90e1fbeff476a7742129be005c8881 | 9b4b261e642a434f8e6ae0970fe1451deda4eb6c | /Lections/Lection 18/services/mongo_setup.py | 4db2aab9268f598e8e702a4aefba63b9b34a3a56 | [] | no_license | VadymLinyvyi/ST_Falcon_Courses | 3ad6ade9cefdf332eed45325aa997802c72f2537 | 91a91a2e7abb784b4f7cc1d4b9769923f7023745 | refs/heads/master | 2022-12-15T09:32:43.431411 | 2020-06-09T05:28:13 | 2020-06-09T05:28:13 | 245,221,326 | 0 | 0 | null | 2022-12-08T00:47:39 | 2020-03-05T17:04:26 | Python | UTF-8 | Python | false | false | 103 | py | import mongoengine
def global_init():
mongoengine.register_connection("hotel", name="hotel_one")
| [
"raven.lazy@gmail.com"
] | raven.lazy@gmail.com |
6720f4e146f80bcd250aef6797bf2eed3f84fb18 | 8cfcefa8b8bf9671653532d1549600a4d0699346 | /business_rules/actions.py | 3f355c3dbd75553256edc844967fa976aa0178a3 | [
"MIT"
] | permissive | apandey-oss/business-rules | 9e817e9dfd30f49b613c1fcd456578d01148178a | 32ee05acc25d1c7626420019eaede7c046d185c6 | refs/heads/master | 2022-04-04T04:25:36.148621 | 2020-01-16T04:36:35 | 2020-01-16T04:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | from __future__ import absolute_import
import inspect
from .utils import fn_name_to_pretty_label, get_valid_fields
class BaseActions(object):
""" Classes that hold a collection of actions to use with the rules
engine should inherit from this.
"""
@classmethod
def get_all_actions(cls)... | [
"realamitp@gmail.com"
] | realamitp@gmail.com |
79b04d40a1a089c24e3084363c0b712f54f71b74 | 901504497d8369beecbe7864635d48783ffa2f86 | /TTT_HvH.py | 8b18f19de7a6e46fb8c8a6df2cacafb6ffd059a0 | [] | no_license | ParanoidAndroid19/Tic-Tac-Toe | c4393adcb88f3c21f9137ea656cc2037758a2619 | 4657c5cf861d61810fed2923a684a95ea81e45e5 | refs/heads/master | 2021-02-10T12:19:42.438814 | 2020-03-02T13:54:12 | 2020-03-02T13:54:12 | 244,381,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,205 | py |
# Tic Tac Toe: Human vs Human
# Didn't get this on my own - Create a 3 x 3 board: where each box is numbered from 1 to 3
#
# Done on my own - Code the winning condition: that is if boxes [1,2,3] all have only X or only O then the respective player wins
#
# Done on my own - If there is no winning condition then it's a... | [
"simranbhake.sb@gmail.com"
] | simranbhake.sb@gmail.com |
a472a205ad89fd3f2fb27a2c7c8fb7dc0374f733 | 62b762e79d5a80d3dd7a560cf3672c9f1c43e48c | /avodhashop/settings.py | 28d17b6e274bf26853621abd01cb1e5dc57ecdb3 | [] | no_license | basilmohamd/shopping | 004a6913a6c6b46cc0a0b07dfd0f937f209a42d9 | 00b22d1e0f5a1b2fdc18bbf8010b5b38782860af | refs/heads/master | 2023-08-06T00:51:36.321303 | 2021-10-07T10:11:30 | 2021-10-07T10:11:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | """
Django settings for avodhashop project.
Generated by 'django-admin startproject' using Django 2.2.
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
... | [
"basilmk20@gmail.com"
] | basilmk20@gmail.com |
cc2cc8955ee704b1e4b804326ea5e7c96277db26 | e9c6a71b56d28d5ef06d30fe0f29e6045aa49398 | /docs/source/conf.py~ | b4e06211eb5387156628a5e657ad4d16f98281ea | [] | no_license | Adhyas1/Testdocumentation | 863abf436851c76fbaf6170dcb715bb1e850aec8 | 814f0201ee5cc7ffd19defca30371dc3f073c5de | refs/heads/master | 2016-09-14T11:37:20.491498 | 2016-05-12T10:59:56 | 2016-05-12T10:59:56 | 58,633,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,430 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Testing details documentation build configuration file, created by
#
# sphinx-quickstart on Thu May 12 15:00:45 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present i... | [
"Adhyas1"
] | Adhyas1 | |
dd197c89cfc53246eaa8ba34d83ff54520f73c7f | aafae0baeaeda7409c47cf4933edcfde4040f018 | /ejemplo_18_08.py | ebe53b83dcc20a583d9c360b39a17ad9e29b2d97 | [] | no_license | fd-facu/termodinamica | 26adb1c46bcb43398daff558e37d6612dacf3df4 | 1a9a1d50a82d7a8542f26a97b68298d0be8cc40c | refs/heads/master | 2022-01-29T11:38:44.559874 | 2017-12-12T20:56:40 | 2017-12-12T20:56:40 | 95,333,793 | 0 | 0 | null | 2022-01-19T23:29:57 | 2017-06-25T02:29:31 | Python | UTF-8 | Python | false | false | 3,074 | py | # Ecuacion de los gases ideales: P*V = N*R*T
# T = P*V/(n*R
import calculos
import grafico_presion_volumen as graph
import math
'''
Un sistema formado por 0.32 moles de un gas monoatomico con Cv = 3/2RT ocupa un volumen de 2.2l a una presion de
2.4 atm. El sistema describe un ciclo formado por 3 procesos
... | [
"noreply@github.com"
] | fd-facu.noreply@github.com |
7352a2451ac265c7058abb160ac92692c0c40c3b | 2912f2ca50617a0176ca7cc53b100b733ee589bf | /vision/props.py | e1f1a6266ddcee4f26fbac1ea4ecde3db9015a6b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | manahter/nCNC | 8c399af94717ecf30985396cf2f812742c5a92b7 | ff93d1553aef3cddd201a541b9e0a506cc1655a7 | refs/heads/main | 2023-06-22T08:31:13.673295 | 2021-07-22T19:06:36 | 2021-07-22T19:06:36 | 314,292,317 | 65 | 10 | null | null | null | null | UTF-8 | Python | false | false | 19,126 | py | import bpy
import blf
import bgl
import gpu
import time
from bpy.props import EnumProperty, BoolProperty, PointerProperty, IntProperty, FloatProperty, FloatVectorProperty
from bpy.types import PropertyGroup, Scene
from gpu_extras.batch import batch_for_shader
gcode_batchs = {}
gcode_shaders = {}
def handles() -> dic... | [
"73780835+manahter@users.noreply.github.com"
] | 73780835+manahter@users.noreply.github.com |
70b347db5fcd769831550b3fecad4822d3c19ea2 | fe9573bad2f6452ad3e2e64539361b8bc92c1030 | /Socket_programming/TLS_server.py | 846eac13cb9e9873d922eb3e035275be919fb72a | [] | no_license | OceanicSix/Python_program | e74c593e2e360ae22a52371af6514fcad0e8f41f | 2716646ce02db00306b475bad97105b260b6cd75 | refs/heads/master | 2022-01-25T16:59:31.212507 | 2022-01-09T02:01:58 | 2022-01-09T02:01:58 | 149,686,276 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | #!/usr/bin/python3
import socket, ssl, pprint
html = """
HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n
<!DOCTYPE html><html><body><h1>This is Bank32.com!</h1></body></html>
"""
SERVER_CERT = './certs/mycert.crt'
SERVER_PRIVATE = './certs/mycert.key'
# context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) # For Ubu... | [
"byan0007@student.monash.edu"
] | byan0007@student.monash.edu |
7354bef465760c7821f2382d875c71a979be9fd7 | 332cceb4210ff9a5d99d2f3a65a704147edd01a2 | /justext/utils.py | 42e5074ec56396d742d4234e9106a0655e9de958 | [] | permissive | miso-belica/jusText | 16e5befcb449d3939ce62dc3460afbc768bd07cc | 22a59079ea691d67e2383039cf5b40d490420115 | refs/heads/main | 2023-08-30T03:48:27.225553 | 2023-01-24T08:45:58 | 2023-01-24T08:45:58 | 8,121,947 | 527 | 70 | BSD-2-Clause | 2022-05-04T06:11:47 | 2013-02-10T11:42:20 | Python | UTF-8 | Python | false | false | 1,965 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
import re
import os
import sys
import pkgutil
MULTIPLE_WHITESPACE_PATTERN = re.compile(r"\s+", re.UNICODE)
def normalize_whitespace(text):
"""
Translates multiple whitespace into... | [
"miso.belica@gmail.com"
] | miso.belica@gmail.com |
c76c6ec8bbb9fb6c0cae56abada06fb400fb428e | 87b20e380170f98690c259bbfec10f1d8308ac95 | /satgnn/evaluate.py | 9705a105e712b623ac0863583acf67be64f74962 | [] | no_license | gallifabri/SATGNN | 0cb7fd40fe0dc0160247ddcb3af69c2a5632fc4d | 6f4622fef96430e1685273515ff2d400a7a27846 | refs/heads/main | 2023-07-13T17:16:50.620695 | 2021-08-17T21:41:00 | 2021-08-17T21:41:00 | 393,124,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,895 | py | ### LOAD MODELS
import argparse
import torch
from reinforce import REINFORCE
from sat_generator import SatGenerator
from env import SatEnv
from torch.distributions import Categorical
import torch.nn.functional as F
import math
from tqdm import tqdm
import pickle
from gnn import SatGNNRecursive
import numpy as np
import... | [
"noreply@github.com"
] | gallifabri.noreply@github.com |
e42abe3c8e78b1c9969be47b78657894ae274870 | 351fa4edb6e904ff1ac83c6a790deaa7676be452 | /graphs/graphUtil/graphAdjMat.py | a8211d8ac10c6c16d87eb91ba14de7aa24570e2a | [
"MIT"
] | permissive | shahbagdadi/py-algo-n-ds | 42981a61631e1a9af7d5ac73bdc894ac0c2a1586 | f3026631cd9f3c543250ef1e2cfdf2726e0526b8 | refs/heads/master | 2022-11-27T19:13:47.348893 | 2022-11-14T21:58:51 | 2022-11-14T21:58:51 | 246,944,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | from typing import List
from collections import deque
from collections import defaultdict
# A class to represent a graph. A graph
# is the list of the adjacency Matrix.
# Size of the array will be the no. of the
# vertices "V"
class Graph:
def __init__(self, vertices, directed=True):
self.V = vertices
... | [
"email.shanu@gmail.com"
] | email.shanu@gmail.com |
8e17f0a7737a188114983caa8fd0c1b8ec4af73e | ad6c519f356c0c49eb004084b12b5f08e3cd2e9e | /contrib/compile_po_files.py | 1456bab6925d5b04a85ff3269ef94c187c334a03 | [
"MIT"
] | permissive | csilvers/kake | 1a773e7c2232ea243be256bb5e6bd92e0189db9d | 51465b12d267a629dd61778918d83a2a134ec3b2 | refs/heads/master | 2021-05-05T23:07:40.425063 | 2019-01-23T23:35:48 | 2019-01-23T23:35:48 | 116,594,798 | 0 | 0 | MIT | 2019-01-23T23:19:17 | 2018-01-07T19:59:09 | Python | UTF-8 | Python | false | false | 17,080 | py | # TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
# pep8-disable:E128
"""Converts translation (.po) files to the format we use internally.
Most people convert .po files to .mo files and use the standard
library gettext module to use the translation data. But not... | [
"csilvers@khanacademy.org"
] | csilvers@khanacademy.org |
64ca48e8c4cab6428aa9180d8649eeab7e89f7c4 | d25c78ab421daafb26311156f3a5b39a85cb8155 | /doc/aliyun-tablestore-python-sdk-2.0.9/tests/parameter_validation_test.py | 3f2f3df73ebb4a8660f505af4ce55ac9369cfdd3 | [
"MIT"
] | permissive | wanghq/goots | cb0dd2b01b532a7a535c7b2765df94fc5fd902c9 | 3493be0edb6b9a085e4fcd370dee0e354447897b | refs/heads/master | 2021-05-22T12:39:16.495760 | 2018-03-09T07:31:40 | 2018-03-09T07:31:40 | 68,152,118 | 1 | 2 | MIT | 2018-03-09T07:31:41 | 2016-09-13T22:20:38 | Go | UTF-8 | Python | false | false | 28,702 | py | # -*- coding: utf8 -*-
import unittest
from lib.ots2_api_test_base import *
from ots2 import *
import lib.restriction as restriction
import lib.test_config as test_config
import copy
import time
class ParameterValidationTest(OTS2APITestBase):
"""参数合法性检查测试(不包含限制项)"""
def _get_client(self, instance_name):
... | [
"toby.zxj@gmail.com"
] | toby.zxj@gmail.com |
a44c6a9409bee413c59af517362631daf816f749 | 26edf5a863f136c684b29d2300eeb6845e9d474a | /dataset.py | 249f68140969ea4838504ef9d5d17b4ca694f647 | [] | no_license | stellahxxx/handling-zxcalculus-diagram | 3b7767666e51054e223e8423af09d81ac71e6d32 | d1f7b4f1c9f3cbb7e3b23f753c0bf041a2b7ecfc | refs/heads/master | 2021-06-24T10:21:39.225257 | 2017-08-16T08:39:49 | 2017-08-16T08:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,941 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 7 12:05:30 2017
@author: 瑞婷
"""
import random
import math
import element as elm
import svgparser as sp
def randommove(point,r,ratio):
"""Move the point in random direction.
The movement ranges from 0 to sqrt(2)*r*ratio in random direction.
Args:
... | [
"noreply@github.com"
] | stellahxxx.noreply@github.com |
0068ebd5656d0864c47fb23c2a5c9d1ee1f06842 | 217530d5d242709f40458ff61ef04c512fae3f13 | /app.py | 1508afc894f7d1cfc0d9c99ea55038224f4a1c79 | [] | no_license | gcobs14737666/linebot-echo | c92b74f4283fe2f1c002dd77b40fde4ddecc9171 | 0893a8e9f7a03d8b161ab38feea685c9bdc6afc7 | refs/heads/master | 2021-06-21T22:32:26.198774 | 2017-08-05T23:05:56 | 2017-08-05T23:05:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | # encoding: utf-8
from flask import Flask, request, abort
from linebot import (
LineBotApi, WebhookHandler
)
from linebot.exceptions import (
InvalidSignatureError
)
from linebot.models import (
MessageEvent, TextMessage, TextSendMessage,
)
app = Flask(__name__)
handler = WebhookHandler('Your_Channel_Sec... | [
"ymjh11436@gmail.com"
] | ymjh11436@gmail.com |
f7def2db7e51fc72263fd5c1e7f855376645ef2e | 06623d4b8b0d59500ceeef36f2097a83a3adf556 | /PD_3:4/contacts/api.py | 269677c4b4ba0be4ca18ccb435d573a24067d1d3 | [] | no_license | bindas1/Django | e365c130a618aaede55a69ffe08d147e557185d9 | 6b5fea655bdd5c14697625758b9b7c8cae04ecfc | refs/heads/master | 2020-09-17T10:11:00.210473 | 2020-02-27T11:17:09 | 2020-02-27T11:17:09 | 224,073,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | from contacts.models import Person
from contacts.serializers import PersonSerializer
from django.http import Http404
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework import mixins
from rest_framework import generics
class Perso... | [
"bartek.binda46@gmail.com"
] | bartek.binda46@gmail.com |
6a59827e9335f69f49bc53580c5edc6426f90cea | 651dbb3f339ce858a0240bb4c493853120180ad2 | /scripts/utils.py | ecf5a203b16c5bba877ef40f8361bd8c98f074b1 | [] | no_license | UNStats/gender_data_portal | 543765de0296b25e0f5d5dbf9f6a94b1c55ecf75 | 1b47de6b1cd889a2cfcc0a016d8ec7aad0c6f582 | refs/heads/main | 2023-08-06T14:22:01.630334 | 2021-09-30T12:56:06 | 2021-09-30T12:56:06 | 355,999,633 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,914 | py | import re
import hashlib
import urllib3
import json
import csv
import pandas as pd
import sys
import numpy as np
import math
def round_KFM(x, n):
'''Commercial Rounding'''
posneg = math.copysign(1, x)
z = abs(x)*10**n
z = z + 0.5
z = math.trunc(z)
z = z/10**n
result = z * posneg
return... | [
"gonzalezmorales@gmail.com"
] | gonzalezmorales@gmail.com |
8be14c7d6769c2d0dc4a72494a7f4d0c8155d16a | a4817f52ef1f729167b26ed92f9b5108d3be7d46 | /api/src/entity/user.py | bc40eea0b3a6dbdd0a18bbfdfdb44d78a72f779a | [] | no_license | elhanarinc/user-microservice | 26642265538148a4aef0735dfd87e75aedd4991c | 9d8fb86387eadc24b074f77e421531ae74196770 | refs/heads/master | 2020-11-27T12:04:38.981606 | 2019-12-22T15:48:18 | 2019-12-22T15:48:18 | 229,431,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | class User:
def __init__(self, data):
self.id = data.get("id")
self.username = data.get("username")
self.email = data.get("email")
self.password = data.get("password")
self.name = data.get("name")
self.surname = data.get("surname")
self.age = data.get("age")
... | [
"elhanarinc@gmail.com"
] | elhanarinc@gmail.com |
abab87f62af6a8680751a0c2cb9d51ed23f69f8f | 8764baeb133c9797924a629fc13bf4fd9375bffc | /SnipperSeries/wsgi.py | 611b959c04f9a97c229cdc036f916494ae1fc510 | [] | no_license | romerox3/snipperseries | f946cf8fc75352ed7e1461a9a08fe200342edb1a | ada096975c82663680570a3848c27fbb0de59579 | refs/heads/master | 2020-04-24T16:45:31.704543 | 2019-02-22T19:33:37 | 2019-02-22T19:33:37 | 172,120,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
WSGI config for SnipperSeries 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"romerox33@gmail.com"
] | romerox33@gmail.com |
1ddf12c9da93dccd43c0ea3149793fd455795bab | 7e665e02c2ebde19bdad310fdcc4c411d59677c9 | /app/api/v1/views/file.py | 2416676adb154084812dbcc79a8b127643586884 | [] | no_license | InTheBloodHorse/flask_for_file | c3ad4f617f97db98ff60464bdbd432b8134115cd | 2d44fa013d460173cb4a6013dc24b4709dc25c52 | refs/heads/master | 2020-03-28T09:10:37.047046 | 2018-09-17T13:49:40 | 2018-09-17T13:49:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,780 | py | from flask import request, g, jsonify
from app.libs.redprint import Redprint
from app.api.v1.libs.token_auth import auth
from app.api.v1.libs.success import AddSuccess, UpdateSuccess, SelectSuccess
from app.api.v1.validate.file import UpdateTitleForm, UploadFileForm, DeleteFileForm, \
RecoverFileForm, PublicForm
f... | [
"2495088064@qq.com"
] | 2495088064@qq.com |
f342cc7ed3784877d944dd02946e0e9bc5abe08c | 1e47c4a9693bc1f81d096ccd27a9bf2e9d284b25 | /AulaLaboratorios/exerciciosModulosPacotes/exercicio1/criaPlaca.py | ed8bb0a2994a2cad4f6d0e7ff0dab261c975c1ba | [] | no_license | AlvarocJesus/Exercicios_Python | 1558e089661f17120eb2f4c3880e3b93b4d57e52 | 3ca014f97f665d096e68a3a5725df2705f4a715f | refs/heads/main | 2023-09-05T16:54:18.526487 | 2021-11-25T02:01:59 | 2021-11-25T02:01:59 | 399,649,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | from random import randrange, choice
def geraLetra():
letras = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
letra = []
for i in range(4):
letra.append(choice(letras))
return letra
def geraNumero():
num = []
for i ... | [
"alvim.coelho.jesus@gmail.com"
] | alvim.coelho.jesus@gmail.com |
3bf738b2cd2183f59fbed3867ab4c6d99a394609 | 0ee3932d9fd29aa53773c9bf3f7c83ccd5493592 | /Test/RTTTLTester.py | fe196c9acbaaf8255c94b4b78e9bc0d1d9376a87 | [] | no_license | vxrich/Python_R2Pi0 | 71ca9cc02b18048601b0b69586f32c3b5ef5c5e0 | bd9ca6c9a6149ff2bac986a7407c757208bc41bd | refs/heads/master | 2021-01-12T06:58:20.698545 | 2017-04-20T18:32:25 | 2017-04-20T18:32:25 | 76,885,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | #########################################################
# #
# Author: Riccardo Grespan #
# Davide Tosatto #
# #
# R2-Pi0, python remote controlled motorized #
# robot with sound and light #
# #
#########################################################
... | [
"riccardo.grespan6@gmail.com"
] | riccardo.grespan6@gmail.com |
1326a2e287de4aba98c8281869940dc914c7ec24 | 7db575150995965b0578f3b7c68567e07f5317b7 | /tr2/models/transformer.py | f3799d94287770125fd19476f059cc6c49ce70a5 | [] | no_license | anhdhbn/thesis-tr2 | b14049cc3de517cdd9205239e4cf3d225d168e85 | 7a74bb1228f5493b37934f38a8d3e1ab5328fc3c | refs/heads/master | 2023-03-27T21:51:57.763495 | 2021-02-26T12:51:20 | 2021-02-26T12:51:20 | 338,924,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py | import torch
import torch.nn as nn
from torch import Tensor
from tr2.models.encoder import TransformerEncoder, TransformerEncoderLayer
from tr2.models.decoder import TransformerDecoder, TransformerDecoderLayer
class Transformer(nn.Module):
def __init__(self,
hidden_dims=512,
num_h... | [
"anhdhbn@gmail.com"
] | anhdhbn@gmail.com |
fec4da0cff7a1238e6d63b448011dba8d5d8ff23 | d602410cff801b4c5c10fd0dcf05bfc410714244 | /dist/data/fabfile.py | cd1e7e6d5b02a9d812754336a12e9573e65acc98 | [] | no_license | oklahomawatch/legislature-votes | d354b4448e5e9c9ed2480626451648c70c6a78bc | 20e9581211456e424bf34ea509ac539f185df408 | refs/heads/master | 2021-01-20T21:09:15.205651 | 2016-06-07T04:52:41 | 2016-06-07T04:52:41 | 60,575,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 2,804 | py | import csv
import json
def parseData(csv_file):
"""Parse data into usable JSON"""
# formatter
def format_str(string):
return string.replace(" ", "_").replace("/", "_").replace("'", "").lower().strip()
# open the file
with open("data.csv", "rb") as data:
reader = csv.reader(data,... | [
"cjwinchester@gmail.com"
] | cjwinchester@gmail.com |
e65b31d679068e55b157376eef9b7bd3c38be3dc | d3f854c56a34abb13eb6c9d05c356f932baeeac1 | /test/Test_socket2_opration.py | 89f97549f17164203c26e9a9702fe8ac07fc20bf | [] | no_license | lilong2533/PythonLearing | f93f02b9ae4a0f048378dbd7dad8b1e2a97d373e | 2386546609356e07cf97fc07770134ac83705877 | refs/heads/master | 2020-04-05T23:16:22.132979 | 2013-06-07T08:06:57 | 2013-06-07T08:06:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | #-*- conding:UTF-8 -*-
import sys
import socket
import datetime
DEFAULT_PORT = 8002
def timeServer(port):
print 'reveive port : %d'%(port)
host = ''
m_socket = None
addrinfo = socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM, 0, socket.AI_PASSIVE)
for res in addrinfo:
af,... | [
"rik-1986@163.com"
] | rik-1986@163.com |
4a5300e16b04d38c84ea17ef50cb2f626612b7f0 | f5e6d24b0ad6b8c127beafe4e7e5ae693afad3f7 | /app.py | e4816fc6e925a5bc2f47e609cd4024ddfa653f24 | [] | no_license | Jhalak46/pollution-monitor | 5005ecbcca1ab3e5da87bc9d9ab430c1cfaf51b3 | ef21d2824d936ec63b2c76063a1f44af200f029f | refs/heads/master | 2020-05-17T15:56:25.227783 | 2019-05-07T06:53:40 | 2019-05-07T06:53:40 | 183,602,633 | 0 | 0 | null | 2019-04-26T09:44:29 | 2019-04-26T09:44:29 | null | UTF-8 | Python | false | false | 1,912 | py | from flask import Flask, render_template, request, jsonify
from flask_sqlalchemy import SQLAlchemy
import simplejson as json
import os
app = Flask(__name__)
app.config.from_object(os.environ['APP_SETTINGS'])
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
db = SQLAlchemy(app)
from models import Air_quality
@app... | [
"33762894+rishi-s8@users.noreply.github.com"
] | 33762894+rishi-s8@users.noreply.github.com |
927d353d13d0bd78d8b65f3a6fe23b85251d180d | b9cb3cd09cf5e346b2c2855348846d23bb457c4d | /NGKARTAPI/product/migrations/0012_alter_product_productslug.py | cc5fa75ff9c137d58b970ecb8604acd7c66a5673 | [] | no_license | SmrutiRanjan-Ai/django | 12bfc9333a9926bf42ff764c42da568ba5ec6ef2 | 83d4abe6966f0ed51b288b3910b4dc28e564af0a | refs/heads/master | 2023-09-05T17:29:27.478528 | 2021-10-27T10:34:00 | 2021-10-27T10:34:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 3.2.8 on 2021-10-27 03:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0011_auto_20211027_0854'),
]
operations = [
migrations.AlterField(
model_name='product',
name='ProductSlu... | [
"smrutihits@gmail.com"
] | smrutihits@gmail.com |
e8359cb8ee6a712628fd7d88e301d9c737edecb1 | 60dad9e1a81fc48a99b89e187f2856b01bcff0cd | /ras_lab1_controllers/ras_lab1/ras_lab_open_loop_control/src/open_loop_controller.py | 149d97bb8c5ac8a82a456785d3c3af2aec62fdf5 | [] | no_license | Wing-ka-king/iRob | e2016beebd28b7918a26a26ce6013488282d3314 | d9289a05afea5222af79660c60a655b34e684665 | refs/heads/master | 2021-06-23T05:59:41.646741 | 2020-11-20T20:40:50 | 2020-11-20T20:58:46 | 147,274,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | #!/usr/bin/env python
# license removed for brevity
import rospy
from ras_lab1_msgs.msg import PWM
def main():
# try calling publisher
try:
publisher_pwm()
except rospy.ROSInterruptException:
pass
# rospy.init_node('open_loop_node', anonymous=True)
# rospy.Subscriber('/kobuki/p... | [
"singhakash1298@gmail.com"
] | singhakash1298@gmail.com |
4f7a8525330cef994d323dbcaa0f4e97eda6fce7 | ee164109e23a68caac3bf1d1fa61b78d53ab10fa | /website/urls.py | 9573e2336755ad325ec787853bc6073d87f77401 | [] | no_license | majedur-rahaman/polls | b00bc9a08324398a723d151a07e07e66ebc192e2 | f6cb7f6c8ef52f9f94829c2a563cd88ab00d5931 | refs/heads/master | 2021-05-16T09:00:38.467626 | 2017-09-22T05:44:25 | 2017-09-22T05:44:25 | 104,315,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """website URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"majed.cseru@gmail.com"
] | majed.cseru@gmail.com |
bf558b503dc7478367b00473515c76901a2ed7bd | 08eff0c124f7c12030da9269511832648956ff84 | /AstroPy/astropy-2.0.2/astropy/nddata/utils.py | d9749ce1f2052b3a97ba6b769611ec0d3a961f0d | [
"BSD-3-Clause"
] | permissive | gmiller123456/astrosnippets | 144974bc5bbd4f1e0d023a455b556d798d1277c2 | e7a76464f97ff0437460640703f6bc6c18bc316f | refs/heads/master | 2020-12-18T16:15:28.735302 | 2020-02-25T14:25:08 | 2020-02-25T14:25:08 | 235,451,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,169 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This module includes helper functions for array operations.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from copy import deepcopy
import numpy as np
from .decorators import support_... | [
"gmiller@gregmiller.net"
] | gmiller@gregmiller.net |
e3056d343d79c91c440fa3f60998d16ffdae7c53 | 977ffe0b827da8b15d23de203e519612825e4875 | /week4/이중우선순위큐.py | c0ebe460fa5c91415be5e937a9d9d3e276e5310f | [] | no_license | tjdud0123/Coding_Test | 2c91c14d1bdb1e66cee7c280ab367715187bfc5a | 1ef7b8e14778390662b1c840297c6d5b8b25ce62 | refs/heads/master | 2021-03-11T22:13:06.607602 | 2020-04-08T07:08:24 | 2020-04-08T07:08:24 | 246,564,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from collections import deque
def solution(operations):
operations = [(op[0], int(op[2:]))for op in operations]
que = deque([])
for command, num in operations:
if command == 'I':
for i in range(len(que)):
if que[i] >= num:
que.insert(i, num)
... | [
"noreply@github.com"
] | tjdud0123.noreply@github.com |
fdd1430fd344783c4f2d1769eb374c16fd217fd4 | ed0b1170565353d16eca8ee8f8710c0fbcb55697 | /manage.py | fb6cf72dafca12e65931532b123cf09da82ffe05 | [] | no_license | lcharleslaing/site_big2tiny_django | 5ed57680ae7919b23e75369525173436d8d8b795 | c8918329249638a2be0800394ea49434768e52e2 | refs/heads/main | 2023-07-09T03:13:48.952862 | 2021-08-23T11:34:23 | 2021-08-23T11:34:23 | 399,077,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'site_big2tiny.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"lcharleslaing@gmail.com"
] | lcharleslaing@gmail.com |
8c0f69444679561984b140b6be7a30ff02c3ba22 | 1fe4f08dff4499f206138bac0f543f4a268c37bc | /Assignment-2/assignment2/Part3/kfold-cv-pool-answer.py | 7f1c8026de9a610c1d65391325f79f8a14061ac1 | [
"MIT"
] | permissive | jainhemant163/CSYE7105-Parallel-Machine-Learning-AI | 7a25bd7520c3b31d9eb7e74b00afe08f87f6c619 | b59fe82b73ed94688f9168a5411b01fa5920b49b | refs/heads/main | 2023-04-21T20:46:11.572180 | 2021-05-12T21:53:20 | 2021-05-12T21:53:20 | 366,860,918 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,542 | py | import numpy as np
import matplotlib
matplotlib.use('pdf')
import matplotlib.pyplot as plt
from multiprocessing import Pool, Process
from sklearn import svm
import time
test = np.loadtxt("optdigits.txt", delimiter = ",")
X = test[:, 0:64]
y = test[:, 64]
# Plot some of the digits
#fig = plt.figure(figsize=(8, 6))
#f... | [
"jain.he@northeastern.edu"
] | jain.he@northeastern.edu |
cafabb7e018ae70b90825d4d332e43f5ca7dce1e | deecfc419fc47a6e9d21553135a8ad45a747873a | /concatenate_files.py | 42708d276eb6524b9abdd44ff436a9afb760da42 | [] | no_license | belgravia/stacker-scripts | 85b76c48c64daee3d1bc708d33477607f7cd488f | 7236f20f52810195af397a07a797003c5c45b1e9 | refs/heads/master | 2021-10-11T05:45:17.176059 | 2019-01-22T21:53:10 | 2019-01-22T21:53:10 | 109,746,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | import sys
sys.stderr.write('usage: script.py [some number of files] > catted\n')
header = False
for fle in sys.argv[1:]:
for line in open(fle):
if not line.startswith('@'):
print(line.rstrip())
elif not header:
print(line.rstrip())
header = True
| [
"alison@stacker.pod"
] | alison@stacker.pod |
03c240d4703b4f6cf1ddb450ae98466895911d58 | c31f8ac9f0adf62383c3a5a8ae199ae93118b648 | /home/aloomis/betsy/betsy/settings.py | 489651e626c283b8fdb49a1eb481d36801410fae | [] | no_license | lccodes/BrownResearch | d136b50f430e0062a09a0a28d0c503b65087dc57 | 37fc6f4a8357bbeb1a9280c688864c287dbd971b | refs/heads/master | 2016-09-10T10:00:49.398854 | 2014-10-14T02:50:34 | 2014-10-14T02:50:34 | 15,597,773 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,383 | py | # Django settings for betsy project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', ... | [
"root@cs.brown.edu"
] | root@cs.brown.edu |
41baf1b51d66ac1dbca93dd8071adeadbd2b762c | c854c3ea7c4d0ff9572605ca4abfbb216f8f083f | /cvlib/evaluation/fid_score.py | 15a9dbcbea9e848c2eff511623e04a18b86481db | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | sxhxliang/cvlib | 49ca891b4f6a19597eb38a48ac1b0998f846d838 | 5afe9804df2c162d8132f18ad0d9c9f7c2220dd0 | refs/heads/master | 2021-09-26T20:57:17.519976 | 2018-11-02T12:54:32 | 2018-11-02T12:54:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,416 | py | #!/usr/bin/env python3
"""Calculates the Frechet Inception Distance (FID) to evalulate GANs
The FID metric calculates the distance between two distributions of images.
Typically, we have summary statistics (mean & covariance matrix) of one
of these distributions, while the 2nd distribution is given by a GAN.
When run... | [
"626786864@qq.com"
] | 626786864@qq.com |
8f5307ec6a941ac8d84d56f251ad4dbd6cccadd2 | d362a983e055984c588ee81c66ba17d536bae2f5 | /backend/agent/migrations/0003_beautician.py | 50fc77458670228cbb0dd38577ad9635cf06145d | [] | no_license | prrraveen/Big-Stylist-CRM | 1d770b5ad28f342dfc5d40002ddc3ee7cc6f840a | 6cd84ce7b01a49a09b844c27ecc4575dcca54393 | refs/heads/master | 2021-01-10T04:37:43.414844 | 2015-12-15T10:47:21 | 2015-12-15T10:47:21 | 49,239,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,057 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('agent', '0002_service'),
]
operations = [
migrations.CreateModel(
name='Beautician',
fields=[
... | [
"prrraveen@gmail.com"
] | prrraveen@gmail.com |
720a021df6202ae2cdf7d06ac8521e483645802d | 21b2b7fd100492bb98169bc8b121388642f3c479 | /web/peerstachio/views.py | f50598f7e768e467913ce529e29714b03f1bb6ad | [
"Unlicense"
] | permissive | MishFTW/peerstachio-opensource | 0ccaca057a69f6f3a417fdaa90fa7a8f4f58e81d | f681c7454ee795667c32a785809b0f88e4d432fa | refs/heads/master | 2020-08-22T17:54:12.157150 | 2019-07-29T19:28:48 | 2019-07-29T19:28:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | from django.views.generic import TemplateView
from django.shortcuts import render
from django.views import generic
from chats.models import ChatRoom
from django.http import JsonResponse, HttpResponse
from django.core import serializers
class HomePage(TemplateView):
template_name = "home/home-template.html"
def... | [
"pcjh@umich.edu"
] | pcjh@umich.edu |
5c1167fe99ba3fb29255afa69fa05a2a94c03178 | 6c2d219dec81b75ac1aef7f96f4e072ed7562f81 | /scenes/siteVogov.py | 2501bf763ea4538e32f964cf4d904cf6f7aeb93f | [] | no_license | SFTEAM/scrapers | 7e2b0a159cb19907017216c16a976d630d883ba5 | 778f282bf1b6954aa06d265fdb6f2ecc2e3c8e47 | refs/heads/main | 2023-08-15T18:21:41.922378 | 2021-09-24T22:24:29 | 2021-09-24T22:24:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | import re
import scrapy
from tpdb.BaseSceneScraper import BaseSceneScraper
class VogovSpider(BaseSceneScraper):
name = 'Vogov'
network = 'Vogov'
parent = 'Vogov'
site = 'Vogov'
start_urls = [
'https://vogov.com'
]
selector_map = {
'title': '//meta[@property="og:title"]/@... | [
"briadin@yahoo.com"
] | briadin@yahoo.com |
d5ea8ecb634e5a48d3250d3495686aa31f98917c | ded9f488c5f1d294f46b3d9fe5b8b4d56e59769f | /src/dk/rocchio_much_topic_lda_mmr_scale.py | 16fd6e12d35b84b20385dd4ea9e82dc8637a9a8f | [] | no_license | hikean/TREC2017-DD-ICTNET | 0c5db498d381fd88614725e947fb9380b701c5dc | 8448be49b9fd6e1be5d792b74fb68e49e5fb0d22 | refs/heads/master | 2021-07-08T04:44:56.175753 | 2017-09-29T03:15:00 | 2017-09-29T03:15:00 | 105,158,742 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,798 | py | import json
import codecs
import sys
import jieba
import math
from os.path import exists, isfile, isdir
from gensim import corpora, models
from sklearn import lda
sys.path.append('../utils')
from JigClient import JigClient
from es_client import ElasticClient
from basic_init import *
from src.utils.S... | [
"fakemail@fakeserver.com"
] | fakemail@fakeserver.com |
5e7f226554ea2fb5c3ea365c54d0f77bb1955e6d | 180dc578d12fff056fce1ef8bd1ba5c227f82afc | /tensorflow_models/__init__.py | 18eea8c6304e418deeb1b34e45a57fd437c81079 | [
"Apache-2.0"
] | permissive | jianzhnie/models | 6cb96c873d7d251db17afac7144c4dbb84d4f1d6 | d3507b550a3ade40cade60a79eb5b8978b56c7ae | refs/heads/master | 2023-07-12T05:08:23.314636 | 2023-06-27T07:54:20 | 2023-06-27T07:54:20 | 281,858,258 | 2 | 0 | Apache-2.0 | 2022-03-27T12:53:44 | 2020-07-23T05:22:33 | Python | UTF-8 | Python | false | false | 909 | py | # Copyright 2023 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 |
f5c7cbd17c7756f2301a39ae1197a0ff21234f37 | ed53d87e15086770bb0d6f4e0c05bcc8780c6aa5 | /HW14_BrianOrozco_FileHW.py | 5ee79036aad438a024d31cfba7616625d7385481 | [] | no_license | BrianOrozco29/PythonAssignments | c04aba474e90954fe54fa898c334e0f374c5a8f4 | d6505834b558535eb1665b4bc43d157710ddc55b | refs/heads/master | 2016-09-01T05:03:23.840292 | 2016-03-02T22:15:36 | 2016-03-02T22:15:36 | 52,998,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | '''
Brian Orozco
October 22nd, 2015
CS 100 H01
Homework 14 File HW
'''
#Question 4.27
def fcopy(inFile, outFile):
rFile = open(inFile, 'r')
cont = rFile.read()
rFile.close()
wFile = open(outFile, 'w')
wFile.write(cont)
wFile.close()
fcopy('testFile.txt', 'testFile2.txt')
p... | [
"ssjbrian@gmail.com"
] | ssjbrian@gmail.com |
47a45ed79258aff3e534481723b2dc3a8058cf09 | c73c09c2217271e0f5df8261e3ae89a85048a757 | /simulations/regression_tests/models/policy_aggregation.py | e3035f9ae2aa424941220a461c031aa216ed17e8 | [
"MIT"
] | permissive | jzaki/cadCAD | c6b14c74d443cc99f21e3b2d066e3f7b735ed681 | 4a5a3443a678ba2da495d198a23f4a87a4e50618 | refs/heads/master | 2022-11-17T01:16:52.683259 | 2020-07-06T15:40:36 | 2020-07-06T15:40:36 | 279,065,931 | 1 | 1 | MIT | 2020-07-12T13:04:37 | 2020-07-12T13:04:37 | null | UTF-8 | Python | false | false | 1,954 | py | from cadCAD.configuration import append_configs
from cadCAD.configuration.utils import config_sim
# Policies per Mechanism
def p1m1(_g, step, sL, s, **kwargs):
return {'policy1': 1}
def p2m1(_g, step, sL, s, **kwargs):
return {'policy2': 2}
def p1m2(_g, step, sL, s, **kwargs):
return {'policy1': 2, 'poli... | [
"joshua.jodesty@gmail.com"
] | joshua.jodesty@gmail.com |
9bc21446d142d4a6839442c7549b530cb17ece59 | 0deddf859c82ad07bc5a1ba8aafd29e7bac9cc14 | /tatsu/tokenizing.py | c4ba7b88a4b5847d0b3a6b70d501c32cccb1dcc6 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | dtrckd/TatSu | b6140a6bb12ac56ef3968a261c457f32c4ff1d1c | d52714e47ebff34af0c59d13d101ef36746b81a9 | refs/heads/master | 2021-12-14T15:54:22.435092 | 2021-12-09T21:21:28 | 2021-12-09T21:21:28 | 94,454,121 | 0 | 0 | null | 2017-06-15T15:38:11 | 2017-06-15T15:38:10 | null | UTF-8 | Python | false | false | 1,465 | py | from __future__ import annotations
from .util._common import _prints
from .exceptions import ParseError # noqa
class Tokenizer:
def error(self, *args, **kwargs):
raise ParseError(_prints(*args, **kwargs))
@property
def filename(self):
raise NotImplementedError
@property
def ign... | [
"noreply@github.com"
] | dtrckd.noreply@github.com |
c2ad359b688548a3549a051c298426f0191150a1 | 492d3e666b87eff971628a74fe13facde01e2949 | /htmlcov/_python_Django_My Projects_student-portal_Lib_site-packages_PIL_Jpeg2KImagePlugin_py.html.py | b8330d31117b1128e355617407fbf98b05fbbbd7 | [] | no_license | OmarFateh/Student-Portal | 42050da15327aa01944dc79b5e00ca34deb51531 | 167ffd3a4183529c0cbc5db4ab232026711ea915 | refs/heads/master | 2023-06-13T01:03:16.475588 | 2021-07-08T11:09:09 | 2021-07-08T11:09:09 | 382,895,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91,097 | py | XXXXXXXXX XXXXX
XXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXX XX
XXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXX
XXXXX XXXXXXXXXX X... | [
"66747309+OmarFateh@users.noreply.github.com"
] | 66747309+OmarFateh@users.noreply.github.com |
05d75024b3b38bf9b07b9f720accc10b351e8a3f | c9d051c7758cff0c2a92fffde91ea64de58c4d4a | /app.py | 2b1d35655555f1847a43a3eabf02d0dc6548b776 | [] | no_license | samturton2/CV_using_flask | 7f47a557f212ba706e34131afe1129b2ed3ba20a | 45099c5c2b163432dc4970cd6483765d6aac9a4a | refs/heads/main | 2023-02-15T10:50:45.561521 | 2021-01-15T17:29:15 | 2021-01-15T17:29:15 | 315,146,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # import flask
from flask import Flask, jsonify, redirect, url_for, render_template
# create an instance of our app
app = Flask(__name__)
@app.errorhandler(404)
def handle_not_found(error):
return redirect(url_for("About"))
# @app.route("/")
# def Default():
# return render_template("Default.html")
@app.rou... | [
"STurton@spartaglobal.com"
] | STurton@spartaglobal.com |
d1466f6b6555262c22b479fa39fd6c8caaf375bc | 1643c518defdac239e52b083dc800be2ceebca81 | /dymos/transcriptions/solve_ivp/components/ode_integration_interface.py | 0f6a1ecdfc1dbd98672f028a8e0dce58c5cc287c | [
"Apache-2.0"
] | permissive | wright/dymos | 65bd05ee4c384006e6c6ee5906b57270d1101327 | 9d253a16ffcc162a84ef1b4a7dddcebeda5522ac | refs/heads/master | 2020-12-20T10:18:00.544018 | 2020-11-24T16:55:10 | 2020-11-24T16:55:10 | 236,039,216 | 0 | 0 | Apache-2.0 | 2020-11-24T15:35:33 | 2020-01-24T16:27:41 | Python | UTF-8 | Python | false | false | 6,666 | py | from collections import OrderedDict
import numpy as np
from .ode_integration_interface_system import ODEIntegrationInterfaceSystem
import openmdao.api as om
class ODEIntegrationInterface(object):
"""
Given a system class, create a callable object with the same signature as that required
by scipy.integrat... | [
"noreply@github.com"
] | wright.noreply@github.com |
e075bc2ecf62615d89750c5148aabbea25afc258 | c4f4815c5c7b3065c97b2fb2611c3ef62401bb5f | /supervisedLearning/newnn1.py | c2498bfd731b93731c8228d698ee1ac353a00c2a | [] | no_license | ZiyuChen2828/TV_shows_recommender | 2bc3dd96f39879c110ac9b09b0bcc530663d7454 | e61df6f3aa982a260dde9e6ccbda04275810ed49 | refs/heads/master | 2021-01-12T09:54:01.126186 | 2016-12-12T19:36:43 | 2016-12-12T19:36:43 | 76,288,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,277 | py |
import numpy as np
from PIL import Image
from pylab import *
import matplotlib.pyplot as plt
import matplotlib.cm as cm
class NeuralNet:
def __init__(self, layers, epsilon=0.12, learningRate = 2, numEpochs=100):
'''
Constructor
Arguments:
layers - a numpy array of... | [
"zychen2828@gmail.com"
] | zychen2828@gmail.com |
274ce20cb73db517d26fd9373195fb989bf3130a | 909dbe2ea719211520f23792ed79de28fef3880e | /website/views.py | 617207aa4c43c972632f23974329d751b9e5e57d | [] | no_license | mjerodd/Flask-Blog-Site | c3d225fd77ba046925aa94ece08bb2b620c643a4 | 19f26daeabf08e2b60bc65f45b79287eb380f02f | refs/heads/main | 2023-08-12T05:03:47.221481 | 2021-09-25T16:34:39 | 2021-09-25T16:34:39 | 410,325,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,903 | py | from flask import Blueprint, render_template, request, flash, redirect,url_for
from flask_login import login_required, current_user
from .models import Post, User, Comment
from . import db
views = Blueprint("views", __name__)
@views.route('/')
@views.route('/home')
@login_required
def home():
posts = Post.query... | [
"mjerodd77@gmail.com"
] | mjerodd77@gmail.com |
2f6e31622147ccd5f16a2b68f420e3f8bf6471a0 | c9c4536cebddfc3cc20f43084ccdb2ce1320b7e6 | /experiments/utils.py | dfdf83bd5f97232f940217ba09e8103c9311d9a1 | [
"MIT"
] | permissive | jdc08161063/gym-miniworld | adaf03db39fc47b88dfc5faa4f3f9e926c7f25ca | 4e96db30cb574c6e0eb5db33e83c68a979094a7f | refs/heads/master | 2020-04-06T17:06:23.350527 | 2018-11-14T19:47:17 | 2018-11-14T19:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,863 | py | from functools import reduce
import operator
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.autograd import Variable
class Print(nn.Module):
"""
Layer that prints the size of its input.
Used to debug nn.Sequential
"""
... | [
"maximechevalierb@gmail.com"
] | maximechevalierb@gmail.com |
1f11d415a4596c60f3396946a5e71aea59a42390 | fd4755303ddeccef9e99c42e6ec95ff389d11277 | /ROS/catkin_ws/src/can/catkin_generated/generate_cached_setup.py | 84d37fd383da8e1fe93ae8e2359d15201406eab1 | [] | no_license | deepakm14035/CarSimulator | ccefe6af1cbb9dc90e806c3d2aa8b66f8e9fdf01 | d733be2aa0da1ad667e7a69134d0bee2bae38f10 | refs/heads/master | 2023-02-17T18:53:31.093431 | 2021-01-19T19:50:16 | 2021-01-19T19:50:16 | 223,461,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"34639761+deepakm14035@users.noreply.github.com"
] | 34639761+deepakm14035@users.noreply.github.com |
b80296fb89cdfd4a5b3d5a0f8c08e34040cb922e | 64ab8a43c7aedeee2463911621a800f0f9731cba | /caieiras/settings.py | ed98571ff4a6b9f2a30b1df335fb8433aadc51d0 | [] | no_license | kleven1305/atividade-inconpleta | af1e44c9ea7a3e2972030c5dba9a3d80d1e711c2 | 674e6c46cf17b550cfae03c642f1efeebc8b7278 | refs/heads/master | 2020-07-21T13:04:07.744415 | 2019-09-06T20:58:13 | 2019-09-06T20:58:13 | 206,872,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | """
Django settings for caieiras project.
Generated by 'django-admin startproject' using Django 2.2.5.
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
... | [
"kleven.royale@gmail.com"
] | kleven.royale@gmail.com |
5c660b3d81f4c5ec2295e4603aaffdee54e5546a | b9d33522b2bc8668aa86c27723e371def5399ed6 | /src/python/testGremlinPythonDirect.py | 22b86677fa2d799d210a9bcf338fb0932144ae14 | [] | no_license | hrivnac/FinkBrowser | 0f2b233e44973270ff06da817b860d190ebd0cbe | 95671e4c3b897aaffb6a045deef300f7ae9b0dc0 | refs/heads/master | 2023-08-08T00:33:00.981436 | 2023-07-28T13:42:32 | 2023-07-28T13:42:32 | 237,500,436 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | from gremlin_python import statics
from gremlin_python.process.anonymous_traversal import traversal
from gremlin_python.process.graph_traversal import __
from gremlin_python.process.strategies import *
from gremlin_python.driver import client
from gremlin_python.driver.driver_remote_connection import DriverRemoteConnec... | [
"julius.hrivnac@cern.ch"
] | julius.hrivnac@cern.ch |
1896936602d075e6da8718b7c00c54867f5d77b1 | a8e41e32061511290d75b15dff5238a3e272e2cf | /venv/Lesson2/task4.py | 05f0d18a8a718bcdb21938733815f4ead335b3c8 | [] | no_license | AlexeyKrimoff/pythonProject1 | 5c39ce157cd95d9954c9d3b9a9c8387f53cf6dd7 | 958bcafeab8ee3aaeaa3bc3cccfc3ad3fd11394c | refs/heads/master | 2023-06-18T20:55:31.078935 | 2021-07-11T12:58:21 | 2021-07-11T12:58:21 | 383,008,611 | 0 | 0 | null | 2021-07-11T12:59:52 | 2021-07-05T04:03:21 | Python | UTF-8 | Python | false | false | 126 | py | list1 = input("Enter five words thru the _ ")
my_list = list1.split()
for ind, el in enumerate(my_list,1):
print(ind,el) | [
"akrimoff@gmail.com"
] | akrimoff@gmail.com |
14bc7b551cf26a394151530e590ccdb32e250759 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startPyquil2701.py | b7aa787a468a8dbc6e74cfb46597078a617fc507 | [
"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 | 1,864 | py | # qubit number=4
# total number=41
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(3) # number=32
prog... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
3811c8ded3c52d3c4297b523a72aef17f3e5b4ff | fe8bd31a416d7217c8b95d2ebf36158fdc0412de | /revscoring/languages/__init__.py | 8076663b037c06ed1909940273411b71a9b88537 | [
"MIT"
] | permissive | nealmcb/revscoring | f0020a9009e584a0f59576adcdd16eadae21ee06 | e5c889093c4f49443d12193a2da725065c87e6d6 | refs/heads/master | 2021-01-11T11:32:10.684223 | 2015-10-21T22:34:56 | 2015-10-21T22:34:56 | 44,418,672 | 0 | 0 | null | 2015-10-17T01:16:45 | 2015-10-17T01:16:45 | null | UTF-8 | Python | false | false | 788 | py | """
This module implements a set of :class:`revscoring.Language`
-- collections of features that are language specific.
languages
+++++++++
.. automodule:: revscoring.languages.english
.. automodule:: revscoring.languages.french
.. automodule:: revscoring.languages.hebrew
.. automodule:: revscoring.languages.indone... | [
"aaron.halfaker@gmail.com"
] | aaron.halfaker@gmail.com |
b734ac9fbb2bca8b86ebe81ea398a08581893033 | 321b15aa7b1010a9928d89022fec4e9619d833f9 | /lab2/MAPF/Utils/Warehouse.py | d3d8f9e06e06e7a584eacd6fdb4d43eb26340ab8 | [] | no_license | mamoonmasud/CSCE_625 | 3af2d509feaedd1bd2549d6dc4159ba855e6d7ff | 60f64d42592ac69c17a46074fce271f6773ee3f0 | refs/heads/main | 2023-03-30T19:28:51.088916 | 2021-03-31T22:35:18 | 2021-03-31T22:35:18 | 353,489,860 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,010 | py | from Utils.CollisionDetection import CollisionDetection, CollisionDetectionEdge
from Planning.MultiagentState import MultiagentState
from Planning.CBS_State import CBS_State
from Planning.BestFirstSearch import BestFirstSearch
from Utils.Agents.Robot import RobotNoCarry
from Utils.constants import Action
import random
... | [
"mamoonmasud@gmail.com"
] | mamoonmasud@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.