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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57c4c091a2ba52d1de4451b90cf6c0b231aeb8e0 | 70eb368ea25ad8767e6713ea88936642154f43ae | /workUndone/Suite15/OpenFlight_API/samples/scripts/egswitch1.py | 23612a022f3d36c1a2340cad12cd1a3882d46f71 | [] | no_license | CatalinaPrisacaru/Di-Java | 816cb3428d5026fb63934e14d09c422aa1537b08 | 1c35b28e0b8c8f3c25afbc7b2c0a7fe8cac96c6b | refs/heads/develop | 2021-01-18T02:23:47.759177 | 2016-04-11T19:55:35 | 2016-04-11T19:55:35 | 54,333,823 | 0 | 0 | null | 2016-03-20T18:36:51 | 2016-03-20T18:36:51 | null | UTF-8 | Python | false | false | 4,400 | py | ##
##
## Sample file: egswitch1.py
##
## Objectives:
## Manipulate switch node masks
##
## Program functions:
## Add Switch Node Masks
## Get and Set bits in the masks
##
## API functions used:
## mgInitSwitchMask(), mgAddSwitchMask(),
## mgSetSwitchBit(), mgGetSwitchBit(),
## mg... | [
"albisteanu.sebastian@yahoo.com"
] | albisteanu.sebastian@yahoo.com |
386961a6d4ad8ba5e91b202f26a4853a3a5e894b | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /A_Primer_on_Scientific_Programming_with_Python/discalc/discrete_func_vec.py | 41d60f2cf924caaec283b0bb8405acdfbc3d5aaa | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python
def discrete_func(f, a, b, n):
x = linspace(a, b, n+1)
y = f(x)
return x, y
from scitools.std import *
try:
f_formula = sys.argv[1]
a = eval(sys.argv[2])
b = eval(sys.argv[3])
n = int(sys.argv[4])
except:
print "usage: %s 'f(x)' a b n" % sys.argv[0]
sys.exit(... | [
"bb@b.om"
] | bb@b.om |
d2b74819323cbf09c35bedc8eec0bafbfcd622eb | 3551e031a4fb8b3e67f374a457f0fc5f7b56cd24 | /Job4/models.py | e541ed1f537fb66a88052ff1e81cfa0c2a7b9528 | [] | no_license | klaskan/master-second-experiment | 8b8114987d1d09076f3b9bc4af3c4e5a22d668cd | eef8d7a2360e706246c71897254828b113f99b44 | refs/heads/master | 2022-12-08T13:53:32.575309 | 2020-08-23T17:54:20 | 2020-08-23T17:54:20 | 279,106,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py |
from otree.api import (
models, widgets, BaseConstants, BaseSubsession, BaseGroup, BasePlayer,
Currency as c, currency_range
)
doc = ''
class Constants(BaseConstants):
name_in_url = 'Job4'
players_per_group = None
num_rounds = 1
class Subsession(BaseSubsession):
pass
class Group(BaseGroup):
... | [
"klaskan@pop-os.localdomain"
] | klaskan@pop-os.localdomain |
3c8918400e5b1ec794124fbc66eb5763ad955796 | 5421a4f93da3aad9f146cd2e72ddcdb398ddb2ef | /python/190324.py | d5c8b1bd1963f1aa29ac643d32791b93f3042823 | [
"Apache-2.0"
] | permissive | entroychang/main | dcccc372fef2ae5e67b551442b67192a6ea97052 | 1e1f51a4b63adaaaf21f8fda58daec3fc06b8b1e | refs/heads/master | 2022-06-04T21:19:28.180978 | 2019-10-15T13:30:06 | 2019-10-15T13:30:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | i, j = map(int,input().split()) #分隔同行輸入
lenth=list()#儲存長度數列
print(i,j)
if i>j:
i,j=j,i #若i較大 前後交換
for x in range(i,j) :#有限迴圈
data=list()#3n+1數列
#data.append(x)
print(x)
while x!=1:#算出數列
if x%2==0:
x=x/2
data.append(x)
else:
x=x*3+1
data.append(x)
lenth.append(... | [
"trusaidlin@gmail.com"
] | trusaidlin@gmail.com |
8dfe69d1359e3056848825729008657f98e5359f | 6bb2634bb201139f576b8a6e0f2c4445bcdf9464 | /Array/18.BuySellStock.py | 89390d40bde60f1e1742d35ab1f04d90b1636690 | [] | no_license | mayankmr2-dev/challenge | f3fcab375d6a39f9dddaaa6a9aa3ff08db226fc5 | 6a6f0b520d3ba4a4b63e2c82776a92a58f45534b | refs/heads/master | 2023-07-16T12:02:55.389154 | 2021-08-29T18:31:33 | 2021-08-29T18:31:33 | 266,380,080 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | ar1 = [7, 1, 5, 3, 6, 4]
def solution(arr):
n = len(arr)
left = 0
right = 1
maxP = 0
while right < n:
if(arr[right] <= arr[left]):
left = right
else:
diff = arr[right] - arr[left]
maxP = max(maxP, diff)
right += 1
return maxP
if __... | [
"mayankmr2@gmail.com"
] | mayankmr2@gmail.com |
c07dce52c212b33b85e1d54cd6385992a9fa5fcc | e4f04c827c2402440915619a51dfbf0700688398 | /03Flask/falskday01/app7.py | 0904b0977e69f37fee0ad24c840d7a45ff146492 | [] | no_license | wangxinglong74520/filename | 58177cb0d1dfc262713816d175334bbd52ace3b8 | 3347ab61ed1cf0290c6cc431d9931fb0975a612f | refs/heads/main | 2023-03-30T21:55:23.207561 | 2021-03-22T08:21:40 | 2021-03-22T08:21:40 | 349,773,715 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : app7.py
# @Time : 2021/2/15 15:50
# @Author : Merle
# @Site :
"""
"""
from flask import Flask, request, url_for, make_response, render_template
import setting
app = Flask(__name__)
app.config.from_object(setting)
@app.route('/show1')
def show1():
... | [
"1639837640@qq.com"
] | 1639837640@qq.com |
4822c14902d0d55628fcbe0c7a9f1a9c3c9a7292 | dbf7512728bdfa2302ad537112ad49bd736ff87c | /share/qt/clean_mac_info_plist.py | c33db216e1e69f262bfb4cc1f0be8089c1f336cb | [
"MIT"
] | permissive | ohathar/easysend | a6acd4352048ae07895b7fe4f9c816b4682aec31 | f5cc8ca750bef627fb0eb73baf2c80e65c2e7d7f | refs/heads/master | 2021-01-10T22:29:41.570756 | 2015-08-02T16:38:51 | 2015-08-02T16:38:51 | 39,847,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | #!/usr/bin/env python
# Jonas Schnelli, 2013
# make sure the Easysend-Qt.app contains the right plist (including the right version)
# fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267)
from string import Template
from datetime import date
bitcoinDir = "./";
in... | [
"zach.mcelroy@gmail.com"
] | zach.mcelroy@gmail.com |
40098a3b910d8c207f2b2ab9fcda0e117533f5a6 | 2f72e60c1b267206ef5723cf8496efb1ee19bb10 | /vk_parser.py | 4b37dc3384667ca0d914b2e947eafd30a8e84227 | [] | no_license | sh1n0b1n0m0n0/vk_parser | d378a2c751827847d2d8caa66f71d9f3fb6ad2c6 | 0ac83255431ceeb37518213d086f8e8e259ea166 | refs/heads/main | 2023-04-28T04:41:36.713939 | 2021-05-23T06:40:54 | 2021-05-23T06:40:54 | 317,965,235 | 0 | 0 | null | 2021-05-22T11:17:50 | 2020-12-02T19:10:54 | Jupyter Notebook | UTF-8 | Python | false | false | 6,527 | py | import requests
import settings
import time
from datetime import datetime
import csv
from urllib.error import HTTPError
from webapp.models import Post, Group, Comment, db
import sqlite3
def take_groups(group_name):
group = []
VK_GROUPS = 'https://api.vk.com/method/groups.getById'
response = requests.get(V... | [
"nindzja.t001@gmail.com"
] | nindzja.t001@gmail.com |
114f352e57bda54372e23e977fd49df9d4e87a5d | 6575f6be2cfc0681b3e1b3613d930aff7ceaf957 | /CS372_HW1_code_[20160650].py | 7f4f108bb1384de4b8fc09cda67d69b7d521d0f1 | [] | no_license | jsch8q/CS372_NLP_with_NLTK | 3e08b4108133e4b19d78e17933f75a02f21fa500 | 7798d5db333c5ba3f734b58d5a00c6b462882adc | refs/heads/master | 2023-04-23T13:10:12.041348 | 2021-05-18T12:30:50 | 2021-05-18T12:30:50 | 264,391,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,046 | py | import nltk
import time
from nltk.corpus import reuters
from nltk.corpus import wordnet as wn
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
now = time.time()
# To analyze better we use wordnet Lemmatizer
# and the corpus we use is the Reuters corpus
wnl = nltk.WordNetLemmatizer()
reuter_text... | [
"jsch@kaist.ac.kr"
] | jsch@kaist.ac.kr |
bb36495ae9c725e71057d86118eab52cd0b1cbcb | 24eccbb309064d6bb63d776354cb6fb861e3d1c6 | /flask_API_intermidiate/5_Storing_Resources_in_SQL_DB/5_14_get_post_put_delete/Code_part/app.py | 62e432e8aa3d82cb5e39d00428c7fbbfc1895da5 | [] | no_license | shown440/Flask_API_A_to_Z | e74f2e3c48185c04b0b66506fc22759c9d52555d | a8048ff5e46bfdf3f957d0771436dc7dd2fe92ab | refs/heads/master | 2022-12-10T02:39:03.268361 | 2019-12-24T10:40:00 | 2019-12-24T10:40:00 | 194,473,971 | 1 | 1 | null | 2022-12-08T05:20:41 | 2019-06-30T04:16:42 | Python | UTF-8 | Python | false | false | 533 | py | from flask import Flask
from flask_restful import Api
from flask_jwt import JWT
from security import authenticate, identity
from user import UserRegister
from item import Item, ItemList
app = Flask(__name__)
app.secret_key = "jose"
api = Api(app)
jwt = JWT(app, authenticate, identity) # /auth
api.add_resource(Item,... | [
"ahmed.shifullah@gmail.com"
] | ahmed.shifullah@gmail.com |
baebc6c8653d34a3449018406978c98ff7d671d3 | 9ebd09ff1957596817d00543cc04797fde6ba754 | /thresholding/otsu_thresholding.py | b43660f328a970182bd61b749a424a02982f8b05 | [] | no_license | levilevi10/SurfaceDefectDetection | 987a3dea0c82a8fc7c59a811fe3983d9af6979d1 | 240ed25da74404b3f785bdd513600a6e4c89942e | refs/heads/master | 2023-02-19T07:57:31.914557 | 2023-02-07T03:32:17 | 2023-02-07T03:32:17 | 225,205,812 | 0 | 0 | null | 2019-12-01T18:54:11 | 2019-12-01T18:09:58 | null | UTF-8 | Python | false | false | 1,042 | py | import cv2 as cv
import os
from pathlib import Path
#specify input and output folder
input_folder = Path(r'C:\Users\lvinzenz\Documents\Data\Image Recognition\SurfaceDefectDetection\LeoderBachelor\Images_to_use')
output_folder = "OtsuThresholding"
#get list of all images in folder
liste = []
for image in i... | [
"noreply@github.com"
] | levilevi10.noreply@github.com |
2beae9e71e428414fad3d5f3bfdbb38d39016d8b | da4cd8f752a475ddb0298f19e26d1232657a08ff | /tests/llvm/datasets/anghabench_test.py | bb4149dca82082447c76cb489ba9c548846da6cd | [
"MIT"
] | permissive | hughleat/CompilerGym | 923e9ec42eae6100e3c474011d421ab408d54d62 | 6e2ce3ead07250738264db7171f6aef7aa468365 | refs/heads/development | 2023-08-04T11:34:33.523794 | 2021-06-28T17:00:38 | 2021-06-28T17:00:38 | 381,304,781 | 0 | 0 | MIT | 2021-06-29T09:09:38 | 2021-06-29T09:09:38 | null | UTF-8 | Python | false | false | 2,238 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""Tests for the AnghaBench dataset."""
import sys
from itertools import islice
from pathlib import Path
import gym
import pytest
import comp... | [
"cummins@fb.com"
] | cummins@fb.com |
6408b28de6d713e64aff7aa47f8af2fda7bc40e8 | 3f5f5de7244cb1c9566a6275b9822ebf89b19d51 | /course3/assignment2_q2.py | 8b93fec95aa3d47fc51390972d9d9e429e54d2b2 | [] | no_license | denck007/Algorithms_specialization | 03b2989fc2b5b3629544bd5e2060237e94b8d67e | 2a9b795d3bbcccd5b1fce83d3ed431ec54d084a7 | refs/heads/master | 2020-03-30T00:18:42.269510 | 2019-01-25T02:51:21 | 2019-01-25T02:51:21 | 150,515,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,474 | py | '''
Course 3 Week 2:Greedy Algorithms, Minimum Spanning Trees, and Dynamic Programming
Question 2: Clustering large dataset
We are given a large dataset with each node having 24 'values'.
The values are boolean.
We are tasked with finding the number of clusters needed so that the spacing between any 2 nodes
in sep... | [
"denck007@umn.edu"
] | denck007@umn.edu |
a3f9e4786860ae300ca008d167c2056b7e584589 | c744ca4848ac0a6be88124a00bdd54b221a414ba | /lovers/chain.py | 6a3519dffa2c5c5ec7331d98ccca86afb7709cc3 | [] | no_license | XunylYasna/Murang-Algocom | fb6242b03587c0c343a50f12951239eefd91873d | e88ee8be78d66a34119378b8b52a420d7173a5ca | refs/heads/master | 2022-12-12T12:45:42.843631 | 2020-09-18T18:48:54 | 2020-09-18T18:48:54 | 285,238,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | def solve(cards):
# cards.sort()
room = 0
i = 1
while( i < 10):
if(cards[i] > 0):
room += 1
cards[i] -= 1
if(i == 9):
if(cards[0] > 0):
room += 1
cards[0] -= 1
i = 0
else:
i =... | [
"lynux_ansay@dlsu.edu.ph"
] | lynux_ansay@dlsu.edu.ph |
6c448d6f9ae383fc8a43c8c220302d78428d7576 | 72915375a374764c3a819e7ed2950fe1d66c069c | /tests/tests_base.py | 8bcd59c2188301e4661fdeb63df1afdc5cfb54af | [] | no_license | jespino/pydstorages | e4b3a6a854b17a229fa83d8b3dd5793413d3a672 | 6bc781606a3071116ff4feff329749225e294493 | refs/heads/master | 2020-04-06T05:45:36.578928 | 2013-08-15T09:11:14 | 2013-08-15T09:11:14 | 12,011,670 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | from __future__ import unicode_literals
import os
import gzip
import tempfile
import unittest
from pydstorages.base import File
from pydstorages.move import file_move_safe
from pydstorages.base import ContentFile
TEST_TEMP_DIR = os.path.join(os.path.dirname(__file__), 'temp')
class StorageTest(unittest.TestCase):
... | [
"jesus.espino@kaleidos.net"
] | jesus.espino@kaleidos.net |
d13b522c261e63500490a1afe42df2608d9be1a9 | c243cff9218b72b4171a3fc294607fa830561d08 | /7_Shortest_Path/Jongmin/1753.py | 5157f40c517c04146fe9bbbbf52a42dae0c70827 | [] | no_license | ISANGDEV/Algorithm_Study | 31e65cc6916be92d2a56aef1ad18eacb5b04f787 | 0eec5e3b2321f521e617d7bdc99fca8a4103f0bb | refs/heads/main | 2023-07-24T08:18:20.794903 | 2021-09-01T14:05:54 | 2021-09-01T14:05:54 | 347,665,106 | 0 | 0 | null | 2021-09-01T14:03:32 | 2021-03-14T14:51:24 | Python | UTF-8 | Python | false | false | 684 | py | import sys
from heapq import heappush,heappop
INF=int(1e9)
V,E=map(int, input().split())
K=int(input())
graph=[[] for i in range(V+1)]
for i in range(E):
u,v,w=map(int, sys.stdin.readline().split())
graph[u].append([w,v])
distance = [INF] * (V + 1)
heap=[]
def dijkstra(start):
distance[start]=0
heappush... | [
"sdr2936@gmail.com"
] | sdr2936@gmail.com |
5b89d17fe310e2282732583cf20e21987579608a | 5ab4ed1e8eb7f942db03eb06a56f2dc0fb8056f8 | /code/scripts/sandbox/tensorly_mps.py | 196f5671e665de4dea34f51d7f8dabf2010d9c85 | [
"MIT"
] | permissive | lucgiffon/psm-nets | b4f443ff47f4b423c3494ff944ef0dae68badd9d | dec43c26281febf6e5c8b8f42bfb78098ae7101d | refs/heads/main | 2023-05-04T17:56:11.122144 | 2021-05-28T16:31:34 | 2021-05-28T16:31:34 | 337,717,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from tensorly.decomposition import matrix_product_state
import numpy as np
a = np.random.rand(128, 256)
in_mods = [2, 4, 4, 4]
out_mods = [4, 4, 4, 4]
a_ = np.reshape(a, tuple(in_mods[i]*out_mods[i] for i in range(len(in_mods))))
ranks = [1, 2, 2, 2, 1]
l = list()
for i in range(len(in_mods)):
l.append([out_mods[... | [
"luc.giffon@lis-lab.fr"
] | luc.giffon@lis-lab.fr |
bbad456f801d79bffb0babaf1ec61ccfa0d8bba4 | 93dd3e71c147f0647877e0bf22d1d78fdcc2a7d0 | /Pictures/testers.py | 8905ff629b1acdc9eb72d1a9bd9513d2698306cc | [] | no_license | e-farkas/PodLine | 6bea0ce14e2782a7580b721525f130a7cb2e1671 | 3e345e5908eff5d3f36eda1613243d11d729346f | refs/heads/master | 2021-09-07T17:47:05.684459 | 2018-02-27T03:03:18 | 2018-02-27T03:03:18 | 118,840,199 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py |
from PIL import Image
import pytesseract
import os
path = "/usr/local/home/eguerrer/PodLine/Pictures/"
firstString = "";
Ofile = open("TITLES.txt", "w")
list = os.listdir(path)
for im in list:
if im.endswith('.png'):
image = Image.open(im)
text = pytesseract.image_to_string(image, lang = 'eng')
title = text... | [
"eguerrer@vm133.sysnet.ucsd.edu"
] | eguerrer@vm133.sysnet.ucsd.edu |
8e78cc3767e4278b4921f0823929d60fee07494b | 8347bcc0296a6fe5a3559d193830d604ea3b8d18 | /music/models.py | 8433e518d9c23ec891f10058ddc7f1070b6f0b23 | [] | no_license | sajadab/PythonTest | d4e44d35ea2cea32b15abb20d12f7024980b2b4a | 910bcf4f6f5b883f5359a611bd5a5b30a311a531 | refs/heads/master | 2021-09-07T07:00:28.368204 | 2018-02-19T08:24:00 | 2018-02-19T08:24:00 | 115,856,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | from django.db import models
# from django.core.urlresolvers import reverse
class Album(models.Model):
artist = models.CharField(max_length=250)
album_title = models.CharField(max_length=500)
genre = models.CharField(max_length=100)
album_logo = models.CharField(max_length=1000)
# def get_absolut... | [
"you@example.com"
] | you@example.com |
89c304a08474593738cc5b93bd5b8b0255b6c2b5 | 003d9b0175cf4416114efa4cdbf9ae9d7a623237 | /wadl_to_iodocs.py | 6b6e111c385b0910da0259a61f4dd76a09cdf260 | [] | no_license | brunoroussel/wadl-to-iodocs | 49b569aeff5ddf12022c4a5aaed7fb38f1a895bd | e7eeb19fde6c267a97d9ea9e44ff779f5874a750 | refs/heads/master | 2021-04-12T02:43:37.364528 | 2012-12-29T01:14:27 | 2012-12-29T01:14:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | #!/usr/bin/python
from BeautifulSoup import BeautifulSoup
import re
import simplejson as json
import sys
def wadl_to_rails_syntax(url):
url = re.sub(r'{', r':', url)
url = re.sub(r'}', r'', url)
return url
def params_to_json(params):
param_list = []
for param in params:
p = {
... | [
"jbkimelman@gmail.com"
] | jbkimelman@gmail.com |
15873693c27a82312804d65b817f5134a1ad17b8 | 3cddae9abac1a5f89ff56ecac4179c741700f02f | /Dragon/python/dragon/vm/caffe/layers/__init__.py | 594afe3640ae152ccec31d8ba31637258e0ec54b | [
"BSD-2-Clause"
] | permissive | divfor/Dragon | 03383c6db4bcbe72b76ea1cc27abd5de64a7e847 | 53d5742dd20f3b345ae5648066bf3a1329ce3ee4 | refs/heads/master | 2023-05-30T12:18:08.692159 | 2017-08-09T03:43:30 | 2017-08-09T03:43:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | # --------------------------------------------------------
# Caffe for Dragon
# Copyright(c) 2017 SeetaTech
# Written by Ting Pan
# --------------------------------------------------------
from .data import DataLayer, MemoryDataLayer
from .vision import ConvolutionLayer, DeconvolutionLayer, PoolingLayer, \
... | [
"ting.pan@seetatech.com"
] | ting.pan@seetatech.com |
9293bcfd52fa3f687ca1ab4e6d9d2935eab178af | f023936fe61984604da81533ac96d184e5b92a73 | /manage.py | 9920dbc8244cc2e17bb19655dcdb23fbb8c5f74e | [] | no_license | LousGndiner/django_todo_list | c7c02c228f596269078737a2fcdeb367c6aa6266 | 25d279aacb98d27fae2ca4bac6bd4a82b9569fa4 | refs/heads/master | 2022-07-23T05:17:54.958572 | 2020-05-18T06:13:03 | 2020-05-18T06:13:03 | 264,845,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rjagonzales.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"rjagonzales@addu.edu.ph"
] | rjagonzales@addu.edu.ph |
a3eaf0af41a96f610e5598fd78c598613b06c0ea | 63fed887a6755c371be31e6ba59fcab1c0762c66 | /treex/nn/mlp.py | d8a11cfed74a4b2dbbd85f3701f91250520c9bf6 | [
"MIT"
] | permissive | rohitkuk/treex | 2986d9b7d6e64dd2a18de703154f1e0c081a577a | e4f30d1ce41c0ecb491610e607edd335a8700e37 | refs/heads/master | 2023-07-21T16:39:07.657968 | 2021-08-30T19:00:12 | 2021-08-30T19:00:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,763 | py | import typing as tp
import jax
import jax.numpy as jnp
import numpy as np
from flax.linen import linear as flax_module
from treex import types
from treex.module import Module
from treex.nn.linear import Linear
class MLP(Module):
"""A Multi-Layer Perceptron (MLP) that applies a sequence of linear layers
with... | [
"cgarcia.e88@gmail.com"
] | cgarcia.e88@gmail.com |
9f24ba2a410dbd012c84bb095afad472d2612f1c | dd26ab5d59139b4db6ac9d7de3244f7ec7a2249e | /notebooks/Users/svyatkin@tunein.com/RedShift Example Upsert Table.py | 3bcb6a925112a00845e8ecf3e505d351c16a44a9 | [] | no_license | SVyatkin/databricks | e10c9816be8153fa252d30432b89cc6b2eb06165 | 6b8466e52b313707fb32bff319d38043eccf5d50 | refs/heads/master | 2022-11-14T19:11:09.571358 | 2020-07-10T21:31:04 | 2020-07-10T21:31:04 | 275,268,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,192 | py | # Databricks notebook source
# MAGIC %run Shared/PythonUtils
# COMMAND ----------
# MAGIC %md ##RedShift Examples how to use different modes for PythonUtils
# MAGIC
# MAGIC This notebook walks through the process of:
# MAGIC
# MAGIC 1. How to create/update/append a redshift table
# MAGIC 2. How to use different mo... | [
"vyatkinhome@yahoo.com"
] | vyatkinhome@yahoo.com |
6f951281db6c2f6132c705c86eb5ea3f511d552c | 7b705b92bd4bbb20e69303f41b7f37a5ab270cf9 | /Linear Regression/Regress.py | 733fd0f5a5bcbf0e2f2cac8c7d96877cab6e1a30 | [] | no_license | noahsolomon0518/Data-Science-Projects | c7531a68aa93d74872359e2c63b6736ccf7ed55d | c7b32540eba9eca144fed0d410b87b2790128606 | refs/heads/master | 2020-12-14T02:47:45.901869 | 2020-03-08T00:38:23 | 2020-03-08T00:38:23 | 234,611,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 17 14:42:04 2020
@author: noahs
"""
#import pandas
import math
import pandas as pd
import numpy as np
import func
class best_Fit:
def __init__(self):
self.df = 0
self.x = 0
self.Y = 0
self.size = 0
... | [
"noreply@github.com"
] | noahsolomon0518.noreply@github.com |
e9081a4231ebda8f5aad0545ac59c82832882a68 | b932ddc6d1187a795ef3c2b2af0ef5b186c8463f | /billing/__init__.py | 4ff2652b98b36eb5229baffd5c8b02abdaa0f245 | [] | no_license | FlashBanistan/drf-property-management | 77f7ce487878b08298627e08dbaf5b9599768e73 | 016fb3e512dafa901de70e0b75ce0a6f6de38933 | refs/heads/master | 2021-11-16T18:55:48.314808 | 2020-09-09T03:13:36 | 2020-09-09T03:13:36 | 98,379,119 | 1 | 0 | null | 2021-09-22T17:37:36 | 2017-07-26T04:21:59 | Python | UTF-8 | Python | false | false | 49 | py | default_app_config = 'billing.apps.BillingConfig' | [
"FlashBanistan66@gmail.com"
] | FlashBanistan66@gmail.com |
3b51022c0793182fd0303ab104e6f38e648b8672 | b4324e79e8b54fa016bb7f4dbf89b111d9e01690 | /programa.py | 2bf409565add643fb28d6118d9f714bb19a68bd0 | [] | no_license | Danielconrad2001/GitTrabalho | cbd92f51a51e46bab409844d87de81824412abab | dfc1287c6c8b6e4db8085d980aea6f1113dfb571 | refs/heads/main | 2023-08-11T13:23:25.485959 | 2021-09-22T23:21:41 | 2021-09-22T23:21:41 | 404,856,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,052 | py | import os
from usuario import Cadastro
carrinho = [] # listas usadas para armazenar informações necessárias para o funcionamento do programa.
produtos = []
usuario_atual = []
class Store:
def __init__(self):
self.i_produtos()
self.logo()
self.menu_inicial()
def i_produtos(self)... | [
"noreply@github.com"
] | Danielconrad2001.noreply@github.com |
197074ad5677e7bb1e7ca06693ab8ac749893068 | b3f098cc09fae9bdd6f7ad9ae15cad66109a3c07 | /listings/migrations/0001_initial.py | 165183e634cafcfda2287c7c91afe688bd4637e8 | [] | no_license | SurajSankarsingh/btdjango | 05aa4673daa2ca52bbd41c772e03fa6060609b0f | 1c66330b11e91d5eb5ff0135a0d6726ab22dd030 | refs/heads/main | 2023-03-12T18:08:42.785246 | 2021-02-27T19:46:38 | 2021-02-27T19:46:38 | 342,003,777 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,168 | py | # Generated by Django 3.1.7 on 2021-02-25 03:46
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('realtors', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"suraj.sankarsingh@hotmail.com"
] | suraj.sankarsingh@hotmail.com |
cda3a2d491c728ec8fb0de2cf4d437cfc3c35695 | a7a68c828b7833a841786b7f9a13a72ad7265a11 | /ros/build/catkin_generated/order_packages.py | 8d7f8c4b759f36793a3f5976baab81e89fc3a9c5 | [] | no_license | gurugithub/Carnd-Project14-Capstone-Programming-a-Real-Self-Driving-Car | 857a8df0609f74b8ad4fe7c0ea67c3cc952de125 | 0cb8a63ee5cf2c14d3133c8352331572a860a6cf | refs/heads/master | 2021-09-10T03:55:15.925545 | 2018-03-20T22:34:13 | 2018-03-20T22:34:13 | 126,089,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/student/catkin_ws/CarND-Capstone/ros/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/home/student/catkin_ws/CarND-Capstone/ros/devel... | [
"guru.shetti@gmail.com"
] | guru.shetti@gmail.com |
2cccff769017cdf02a9225cc06706099f04a61c0 | f2e8ba21ff0e82c7b8f47d9c40e0b05ae5a15a27 | /backstage/act/act.py | e114a357e15a95f11494a3eefa24775fe2ee2dd2 | [] | no_license | MiddleFork/django_backstage | 28c55dd668cf65b937a276f776f740fba12fb4b0 | 47117483851ec3445c18ea5ad23fe65e2df2ac0d | refs/heads/master | 2021-01-13T02:05:53.939988 | 2014-08-31T06:54:31 | 2014-08-31T06:54:31 | 14,842,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,962 | py | import os
import sys
import time
import requests
from backstage.utils import uwsgi_portsniffer
from backstage.utils.uwsgi.uwsgi_utils import build_uwsgi
# Choose one of the below as the default uwsgi emperor vassal control:
from backstage.utils.uwsgi.linker_file_ini import start, stop, restart
#from backstage.utils.u... | [
"walker@mfgis.com"
] | walker@mfgis.com |
a223dbf4047cf6d6f448ba61f55a6cfadbd7abe1 | e44716801694aa856b5fd8ef4aabe31fbd7ecab8 | /capabilities/perception/person/person_detection.py | 4fd7309198d949ad18d9c58de9212fb982556da6 | [] | no_license | joseastorgat/Skills | 4b911df0d520fe3ef5727c9a459f3c6b6753b8f2 | 56fcd3201ea6a7619baf3805990d1f2a00c518cd | refs/heads/master | 2021-01-01T19:08:41.839405 | 2018-10-30T19:34:41 | 2018-10-30T19:34:41 | 98,521,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,927 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import qi
import rospy
from uchile_skills.robot_skill import RobotSkill
from geometry_msgs.msg import PoseStamped
class PersonDetectionSkill(RobotSkill):
"""
"""
_type = "person_detector"
def __init__(self):
"""
Person Detector Skill
... | [
"jose.n.astorga.tobar@gmail.com"
] | jose.n.astorga.tobar@gmail.com |
5fe2ad33fe332438565368d3571bc37962ef4958 | 0761c57443d2491b00753a6545395f682be27273 | /PythonProgramming/4-18/Sales/write_sales.py | 696753fc5f951f940f65c2edc8fbf1b4acba6fa4 | [] | no_license | MorgFost96/School-Projects | 842835f97c025ee97e106540f2e6f03f5fdac563 | 9c86a4133e7cb587d7ad15af8da962278636db1f | refs/heads/master | 2020-09-21T22:19:49.494044 | 2019-11-30T22:19:56 | 2019-11-30T22:19:56 | 224,951,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # Writes he data for the sales onto the hard drive
def main():
num_days = int( input( "For how many days do you have sales? " ) )
sales_file = open( "sales.txt", "w" )
for count in range( 1, num_days + 1 ):
sales = float( input( "Enter the sales for day #" + str( count ) + ": " ) )
sa... | [
"morgfost96@gmail.com"
] | morgfost96@gmail.com |
a538d29d3dea94bfe649f344e8cbfd29e7fc3507 | 3691f0b571612fd550095af0d7c93f22d5a8061c | /ERP/stock/views.py | 2159d924a7a70ddce4f72028a50576cc9e9d821b | [] | no_license | sambapython/db16 | 29db8c6be5a3628cd3063cc0d8e092ae8ea69d60 | 98d751ffc7277bb4e28f90b7cb470d667ab47593 | refs/heads/master | 2021-02-11T22:02:34.251113 | 2020-03-03T03:43:29 | 2020-03-03T03:43:29 | 244,532,780 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.shortcuts import render
# Create your views here.
def index_view(request):
return render(request,"stock/index.html")
| [
"sambapython@gmail.com"
] | sambapython@gmail.com |
df1c55cf344cb1f86b80deaaa42fe7d770f2fc61 | 2ab5b2b50ac91ded2e7bfee6fc8a9af8d57738c9 | /model/Linear.py | 9af0111aaaf357b1d996f8b157f61eb443ff7777 | [] | no_license | pokleung5/FYP | 9fc0627aa3ee405ad3bbede29b55e440ac19b038 | fa08353ed6fb1612a004fc55f8e6edebd5c8c432 | refs/heads/master | 2022-11-17T22:48:21.944028 | 2020-07-16T17:49:29 | 2020-07-16T17:49:29 | 240,876,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | import torch
from torch import tensor
from torch import nn, optim
from torch.nn import functional as F
import utils
def get_Linear_Sequential(dim: list, activation):
nL = len(dim)
return nn.Sequential(
*sum([[
nn.Linear(dim[i], dim[i + 1]),
activation()
] for i in r... | [
"pokleung5-c@my.cityu.edu.hk"
] | pokleung5-c@my.cityu.edu.hk |
badf6102be896eba234714f67183557470b7b46a | 001f47164eb0fb5b02aeb89aba5514e95055e305 | /mult_server.py | d78995c558616e84bb532bf1bf7b6a3b34d0e16f | [] | no_license | Phantsure/ICMP-Transfer | 42f869a549baf2cf46786b1632adee0cd8b9808c | c31f874faa1abec0339a44952051f7f532b97070 | refs/heads/master | 2021-03-02T17:19:27.634619 | 2020-03-08T21:10:09 | 2020-03-08T21:10:09 | 245,888,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | # server
import socket
import select
import sys
from thread import *
# server sockets
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
# checks for sufficient arguments
if len(sys.argv) != 3:
print "Correct usage: script, IP address, port ... | [
"samparksharma2000@gmail.com"
] | samparksharma2000@gmail.com |
833540140792b7871cf1ee8d9b5a360c40ea827b | 9cb55ee410e574c98d62675d4fcabe475f9e6c5e | /amnesia/modules/search/views/tag.py | 1007986750b2043e26541c027e737a19e1793714 | [
"BSD-2-Clause"
] | permissive | rayddteam/amnesia | 8f45728dc082d649a8b6f0bc799035375ffd710d | 8719c607c30bb80e7564bec70bcd624f9ad08f6d | refs/heads/master | 2020-07-30T21:53:44.407980 | 2019-01-16T10:02:36 | 2019-01-16T10:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | # -*- coding: utf-8 -*-
# pylint: disable=E1101
from pyramid.view import view_config
from pyramid.httpexceptions import HTTPNotFound
from amnesia.modules.tag import Tag
from amnesia.modules.search import SearchResource
def includeme(config):
''' Pyramid includeme func'''
config.scan(__name__)
@view_confi... | [
"julien.cigar@gmail.com"
] | julien.cigar@gmail.com |
a2a45358ef74f440bad9aaf20a27643065d2ec7e | e5cb9bd3569a8dde3aa3da35e4e84d556df27cec | /visiobased_object_placement/scripts/image_crop.py | c3da818bb38470223a07e34a54265dd1f5f2f8b0 | [
"BSD-3-Clause"
] | permissive | HassanAmr/Visio-based-Object-Placement | 6c4789867aa0196f4201bf3367155b2b908b03f3 | aab1753a926ee04932d5ef7e857637b4adb81e2e | refs/heads/master | 2020-12-02T20:55:08.320080 | 2017-10-21T08:24:26 | 2017-10-21T08:24:26 | 96,228,055 | 0 | 0 | null | 2017-10-21T08:24:27 | 2017-07-04T14:45:13 | C++ | UTF-8 | Python | false | false | 1,409 | py | #! /usr/bin/python
import rospy
import cv2
import numpy as np
def crop(image1, image2, threshold=0):
"""Crops any edges below or equal to threshold
Crops blank image to 1x1.
Returns cropped image.
"""
inv_image1 = cv2.bitwise_not(image1)
inv_image2 = cv2.bitwise_not(image2)
#image = ... | [
"hassan.amr89@gmail.com"
] | hassan.amr89@gmail.com |
031e33695e468516f5e4ca9d619595c8d28f61c6 | 8cea3db36d35285e50583617b655dd2d0de745df | /Chapter_2 Softmax Regression/softmax_regression_train.py | fe4ccea107347ce930ade4e7c5aec94f41ed27b1 | [] | no_license | TRcoder/Python-Machine-Learning-Algorithm | 08f1166cfc068dec72024790900480bfdace98cb | b7c7348951631faf5dbd6b7919fb6993fa7e8855 | refs/heads/master | 2021-07-04T22:21:28.641036 | 2017-09-25T14:46:41 | 2017-09-25T14:46:41 | 106,824,521 | 0 | 1 | null | 2017-10-13T12:58:34 | 2017-10-13T12:58:34 | null | UTF-8 | Python | false | false | 3,013 | py | # coding:UTF-8
'''
Date:20160805
@author: zhaozhiyong
'''
import numpy as np
def load_data(inputfile):
'''导入训练数据
input: inputfile(string)训练样本的位置
output: feature_data(mat)特征
label_data(mat)标签
k(int)类别的个数
'''
f = open(inputfile) # 打开文件
feature_data = []
label_data = ... | [
"noreply@github.com"
] | TRcoder.noreply@github.com |
2e18904fb3a4c87432f3c42a317bb3c9f570d35a | e8ff5786d35d84f6f1226b1df95b851d712d08c7 | /Clustering/DBSCAN.py | 70016b5c0a33edebde06a831c7d96cc2ae6d1cd7 | [] | no_license | anitacsp/FFM-MA | eb64471cbe6be158616d9537a03b15dd0db148e1 | c71087339f01164cfaf86a693df61d6799e120b5 | refs/heads/master | 2020-06-04T03:29:22.558654 | 2019-07-01T09:14:38 | 2019-07-01T09:14:38 | 191,856,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.cluster import DBSCAN
from sklearn import metrics
from sklearn.preprocessing import StandardScaler
from mpl_toolkits.mplot3d import Axes3D
dirty = pd.read_csv(r"C:\Users\chias\source\repos\FFM-MA\oil.csv")
#data = dirty.loc[:, ['grow... | [
"anita.chia.2016@sis.smu.edu.sg"
] | anita.chia.2016@sis.smu.edu.sg |
d8a0f96c3fa158292c56773b2f724ae258f3408a | 04e7f5ae41aa8e068a7d2534b43fd4db94abfee3 | /hw8/problemone.py | 37672542c21a349489148d4eb0195f8cfb1318be | [] | no_license | MathematicianVogt/Control | f90890610009883bb5a1cfdd5c31a861278307f8 | e6cf4dbf6e4a4314ea6602dc4d5f042ca9771f44 | refs/heads/master | 2021-01-23T06:58:50.807096 | 2017-03-30T14:05:47 | 2017-03-30T14:05:47 | 86,415,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | import numpy as np
import scipy.integrate as integrate
import scipy.interpolate as interpolate
import pylab as plt
import scipy.optimize as op
import math
def make_cons(parameter_guess):
cons=()
for i in range(0,len(parameter_guess)):
constraint = {'type': 'ineq', 'fun': lambda x: -math.fabs(x[i]) + 1 }
cons +... | [
"rvogt@MathVogt.local"
] | rvogt@MathVogt.local |
d97856fe130bafdb43da005191add63e0370713e | 043b45f72d50dc697e59e341b286e75d4eaf2e6d | /py-ping2.py | c69d0aa069fb313b7f01dded02643b0262cba6a7 | [] | no_license | alarmon/self-lab | dcebbd15d610b8c0bb982f4cc9baf89ef05f0967 | 6aa517b1de995695e57a249343b2cbf818c52e1d | refs/heads/master | 2020-07-25T19:07:02.445913 | 2019-09-14T05:59:21 | 2019-09-14T05:59:21 | 208,395,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,628 | py | #!/usr/bin/python3.6.4
#!coding:utf-8
__author__ = 'Rosefinch'
__date__ = '2018/5/31 22:27'
import time
import struct
import socket
import select
import sys
def chesksum(data):
"""
校验
"""
n = len(data)
m = n % 2
sum = 0
for i in range(0, n - m ,2):
sum += (data[i]) + ((data[i+1]) <... | [
"noreply@github.com"
] | alarmon.noreply@github.com |
80c91ccaab048f0e281730356e04ec8c4daeea69 | 2434958662c346163bf50a3912a0109c90b67a11 | /myproject/myapp/migrations/0002_auto_20201007_1727.py | a36ec8ea8f515374c1a6c453c1435f02301f2846 | [] | no_license | Ankit-Developer143/Internshala-task | 08a1435f31bc6508a2a134bc2ccb7c13d9a0f596 | ed4b8e7648138448d687f6f228096ed39e0eae3d | refs/heads/master | 2023-01-21T12:12:18.567289 | 2020-11-27T15:32:39 | 2020-11-27T15:32:39 | 302,076,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # Generated by Django 3.1.2 on 2020-10-07 11:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myapp', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='data',
name='time_date',
),
mi... | [
"dante7785@gmail.com"
] | dante7785@gmail.com |
04fd5f442d4db88a4a6cdd0e9735bd8dba613b8f | 0353ad8e53450d2cacd12b28aa1614a8c5fac2e9 | /Rabbit/getstockbasic.py | 97b7f679356ec85254aabb664e81ab96d0221c9d | [] | no_license | yjintai/jypython | 7e67fd1ecfdc1c30303018d38bcfb3cbbc6c3069 | 99c1358aa7d1faae378e6ec821428e505816f2fa | refs/heads/master | 2022-08-28T19:33:47.786887 | 2022-08-18T12:11:28 | 2022-08-18T12:11:28 | 127,250,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | #!/usr/bin/python3
# coding:utf-8
# -*- coding: utf-8 -*-
import time
import datetime
import random
import tushare
import pandas
#import pymssql
#import sqlalchemy
#import mysql.connector
import sqlalchemy
import pymysql
#需修改的参数
stock_list_file = 'd:/stock_list.csv'
databasename = 'msstock'
sqlenginestr='mysql+pym... | [
"yjintai@126.com"
] | yjintai@126.com |
9e187e8ab3e42f22dcbcef7b79682de10f4a0883 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ASCEND-MIBDMTALNET-MIB.py | b58b5f17791c362bb62c7941689041af29abfbcc | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 45,583 | py | #
# PySNMP MIB module ASCEND-MIBDMTALNET-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ASCEND-MIBDMTALNET-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:27:06 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (d... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
27bbe71fc025cdc5aff8af857e0329fbcf02387a | 16badf0376eca37f061ea8f1e871cb0bdb306287 | /Collection/Counter object.py | 33999b8cde18a4d4a27e1ae6bc160d6724961033 | [] | no_license | ShikhaShrivastava/Python-core | 4da99f86d926b30f099dc89fe8514bd62543b23d | da48bdd0c7f1446b225262dcec5b999a47ed6a73 | refs/heads/master | 2023-04-23T23:53:40.815558 | 2021-05-13T08:55:31 | 2021-05-13T08:55:31 | 366,992,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | '''_____________Counter Object_________________'''
from collections import Counter
def counter_object_demo():
lst = ['a', 'b', 'c', 'b', 'a', 'c', 'a', 'c', 'b']
tup = (1, 2, 3, 2, 1, 4, 2, 3, 1, 2, 1, 3, 2)
set_ele = {10, 30, 20, 10, 20, 40, 60, 10}
dct = {'a': 1, 'b': 5, 'c': 9, 'd': 8}
data = '... | [
"shikhashrivastava2908@gmail.com"
] | shikhashrivastava2908@gmail.com |
21f25fee17256ef3a894bd61ef9e9f30b7553747 | 644b9d51fa4ebcf64e762a68d5d5c62966aeab9d | /polls/views.py | dffd6166b95a741a3f824d15c3095efd79cefda1 | [] | no_license | ekulbyrnes/djangopolls | e54653c453eafc06044d9680f25a484dba6ca2ba | db4c544a3f7d587deaa141da487d417d80f8c8b4 | refs/heads/main | 2023-04-01T14:42:16.232327 | 2021-04-07T06:23:50 | 2021-04-07T06:23:50 | 343,943,843 | 0 | 1 | null | 2021-04-01T04:14:52 | 2021-03-02T23:40:04 | Python | UTF-8 | Python | false | false | 3,597 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.views import generic
from django.utils import timezone
# Create your views here:
from .models import Choice, Question
class IndexView(generic.ListView):
tem... | [
"luke.e.byrnes@gmail.com"
] | luke.e.byrnes@gmail.com |
fbc48eb4b6cec14f4d08c8e39813e251aa04423b | b762bbc972446e75a65c5a3ccb32fedb39fa76da | /DropoutPrediction/results/RandomForest.py | 65f4cfc683202d7d4241716910530d876a5fe0c2 | [] | no_license | NishanthSV/DropoutPrediction | e6b31c148c9bd4a1226d1be3baf75082e9a694f3 | 673c79f073080b98800b4667e3d6451d4ef77835 | refs/heads/master | 2022-12-01T08:30:30.245670 | 2020-08-14T02:43:56 | 2020-08-14T02:43:56 | 260,514,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | #!/usr/bin/env python
# coding: utf-8
# In[12]:
# Constants and imports.
BASE_NUM = 1
RANDOM_STATE = None
CV = 5
TEST_SIZE = 0.2
import os
import itertools
import pandas as pd
import numpy as np
get_ipython().run_line_magic('matplotlib', 'inline')
import matplotlib.pyplot as plt
# In[13]:
# Load data.
data =... | [
"noreply@github.com"
] | NishanthSV.noreply@github.com |
d21c4684449f82f2bebd1e269e253fd9b98d3764 | ddb4d6a3b839e8325e1902181e4c1aa0a3c75935 | /coin_flip.py | bb9016b036aaa6092aaf2957ad699c54b6b51766 | [] | no_license | baremetals/Automate_Python | 8c99ae0ee21fc7c12e7735ce41acd1948addfc93 | edae29ea1d15e342b3dde6a59ffc31b1a40ac026 | refs/heads/master | 2023-01-23T05:41:34.100296 | 2020-11-27T13:18:18 | 2020-11-27T13:18:18 | 311,421,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | import random
number_of_streaks = 0
results = []
tails = 0
heads = 0
for experimentNumber in range(20):
coin_flip = random.randint(0, 1)
if (coin_flip == 0):
results.append('T')
tails += 1
else:
results.append('H')
heads += 1
if (results[:3] == 'H'):
number_of_... | [
"baremetals16@gmail.com"
] | baremetals16@gmail.com |
38e97c040afacbcaa11df302fb94cea8de0f4864 | 72b8752c1a0e8012f0c7c2060632ba34a50059d6 | /store/models.py | 35f77c70324332f529d62bda7b1eaa4312361958 | [] | no_license | yurachistic1/stickingTogether | b3e4c6f3b79fa82c3eef2c58388b7f559a866dc1 | aa402305049ef4459477e6ea075ff24f06d4c7a4 | refs/heads/master | 2023-07-14T05:31:09.154038 | 2021-08-21T08:22:28 | 2021-08-21T08:22:28 | 295,382,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,521 | py | from django.db import models
def image_directory_path(instance, filename):
# file will be uploaded to MEDIA_ROOT/<cause>/<filename>
return "{0}/{1}".format(instance.sticker.cause, filename)
def image_directory_path2(instance, filename):
pass
# Create your models here.
class Sticker(models.Model):
... | [
"yurachistic@gmail.com"
] | yurachistic@gmail.com |
f4af1c72efe5203acbacf3f5d7b78c40f779dc73 | 7da1e26fa269f241b42748d76caa72b0095557f5 | /solutions_week5/water/read_water.py | 60d0a9c11c5754715175ffd0210fc38cf28a51d2 | [] | no_license | jensengroup/molstat | b305b15ef83fef9d8781217092cffed98b75636f | 5cb9633acbe3717c2db008d14981e13bd6193b74 | refs/heads/master | 2020-12-24T06:53:56.227817 | 2018-05-08T08:56:15 | 2018-05-08T08:56:15 | 13,613,262 | 8 | 3 | null | 2014-02-15T12:45:05 | 2013-10-16T08:11:23 | TeX | UTF-8 | Python | false | false | 1,632 | py | import matplotlib.pyplot as plt
import numpy as np
import seaborn
# If working with multiple files
# you can read loop over the files by creating a array of
# filenames
dat_files = ['CCSD(t).dat', 'F12.dat', 'B3LYP.dat', 'mp2.dat']
# initialize empty lists
energies = []
r_lists = []
# for data-file in file-list
for ... | [
"jimmy@charnley.dk"
] | jimmy@charnley.dk |
cbd93ad4a706441984a2725d46c992fd90f68ea3 | 3a09d5c19b0f3c78615c8306fb8123cf5234f716 | /kats/models/nowcasting/nowcastingplus.py | 65d3b8ed88a86d453c326a96562c6871413d1b4d | [
"MIT"
] | permissive | vladimirlojanica/Kats | ad384a1fdf3f2e6907a709bf257fbb6400d74f73 | 9f496f94c4a35b8ef0c37eeb2c73224922888d24 | refs/heads/master | 2023-09-03T05:09:41.942281 | 2021-11-11T03:20:12 | 2021-11-11T03:21:30 | 380,343,770 | 0 | 0 | MIT | 2021-06-25T20:08:42 | 2021-06-25T20:08:41 | null | UTF-8 | Python | false | false | 8,765 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
"""NowcastingPlus is a basic model for short-term forecasting.
This modules contains class NowcastingParams, which is the class ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c5c56fd2a6c00afab2add942ac211a66fff636d2 | bfde6d26e62aa94eebbec96763de40f78f4d4374 | /python_scripts/rl/DQNAgent.py | 371e937bd45331fed86d0331f4c5006e5e23eae3 | [] | no_license | bryonkucharski/robot-catcher | 8a15d3951454e7204e4f8989c8d306fcd8f5b11b | 41caad5dfddb1ae7604fb82ced2143d8e3e7cc87 | refs/heads/master | 2021-05-10T14:46:30.152702 | 2019-11-10T14:18:05 | 2019-11-10T14:18:05 | 118,531,219 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py |
'''
This class is heavily from https://github.com/keon/deep-q-learning
Modified by Bryon Kucharski
Summer 2018
'''
import random
import numpy as np
from collections import deque
from keras.initializers import normal, identity
from keras.models import model_from_json
from keras.models import Sequential
fr... | [
"bryonkucharski@gmail.com"
] | bryonkucharski@gmail.com |
5e75d0ea121df2f4dcfb81ee93b32ff59299c7cd | f4dfbcc41dcd2a06909a39f4b8b03c42bfe921cf | /users/migrations/0001_initial.py | d947babbe4043be68e9254796ad55b3cb28f9360 | [] | no_license | VincentBai-dotcom/twitterReplica | ffc8187f22ff57f453f097023dde82b6c042322c | d131c97e0f335166da1ec0c742b1c61c7af8bc9c | refs/heads/master | 2023-08-27T13:05:05.901118 | 2021-10-23T18:17:38 | 2021-10-23T18:17:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # Generated by Django 3.2.4 on 2021-07-18 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MyUser',
fields=[
('id', models.BigAutoFiel... | [
"butcheryyy@gmail.com"
] | butcheryyy@gmail.com |
8ec4a67b5504ab1b614830a98aea9527a0438e56 | f0bfe4be1e0c9b129476587144b8d661b1104f1b | /napari/_qt/dialogs/qt_plugin_dialog.py | 2f98b66861d01ad78d0965c8a1c532cbf8172b2d | [
"BSD-3-Clause"
] | permissive | zzalscv2/napari | 4e8cf31be709368443c5280dcf791cb08d5aff4f | 45cdcc85f17442dcb8eab7f65311ba21467419c8 | refs/heads/master | 2023-03-29T06:57:32.921552 | 2021-04-01T16:17:28 | 2021-04-01T16:17:28 | 354,060,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,631 | py | import os
import sys
from pathlib import Path
from typing import Sequence
from napari_plugin_engine.dist import standard_metadata
from napari_plugin_engine.exceptions import PluginError
from qtpy.QtCore import QEvent, QProcess, QProcessEnvironment, QSize, Qt, Slot
from qtpy.QtGui import QFont, QMovie
from qtpy.QtWidge... | [
"noreply@github.com"
] | zzalscv2.noreply@github.com |
6c05c7073fcadf893e77fa9b4e837fe1d19d0d8b | b5c2571948d1e7fd6a21cfe3267cb7de9088cf56 | /Bytecode Decompile/inspect.py | be063eb8ef519133f5a0bd1dcfd234259b4c0c72 | [] | no_license | C0MPU73R/Toontown-2003-Bytecode | ff32042d4da5894ec3a4fb7da43614df26d25a9d | aa6862f86034f342d5fee9934cd6ed3e83de99f3 | refs/heads/master | 2023-05-03T11:55:57.959617 | 2018-12-02T00:05:43 | 2018-12-02T00:05:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,764 | py | __author__ = 'Ka-Ping Yee <ping@lfw.org>'
__date__ = '1 Jan 2001'
import sys, os, types, string, re, dis, imp, tokenize
def ismodule(object):
return isinstance(object, types.ModuleType)
def isclass(object):
return isinstance(object, types.ClassType) or hasattr(object, '__bases__')
def ismethod(object):
... | [
"flamingdog101@gmail.com"
] | flamingdog101@gmail.com |
e296418c14e85e3c5c9fb02e21c897c1c445ec6d | 83b46306f0ff2f7374e3a1b1edfdd858909c012a | /sft/migrations/0001_initial.py | 342fe5e8e60ac9bdfb5be1378f15415c030d9425 | [] | no_license | TsukitoIwasaki/ToyoApps | 045cd6ae5613756001e46433276592854aa5210b | d3fce9aa725f184391069c30c03e99964bf885c0 | refs/heads/master | 2022-11-07T05:30:52.491235 | 2020-06-26T07:48:43 | 2020-06-26T07:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,900 | py | # Generated by Django 2.0.4 on 2020-06-03 09:07
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Schedule',
fields=[
('id', models.AutoField... | [
"ktakahashi@toyo-group.co.jp"
] | ktakahashi@toyo-group.co.jp |
e470fdcb2ba36e4b85c43eaf7b1a7524a82c12d4 | 6bb6b01270a11e6e08efaebd841bac9645a2d3e0 | /dev/seafile_dev/seafes.py | ff3e15ed1c4355fce84c9cf5563a300e580405ea | [] | no_license | dolevu/seafile-vagrant | 44767bfd772ddda3c3106aeaa9260949a1b1bb95 | 6140e70ab3922061e8f2adb4e2ec3656e14a213e | refs/heads/master | 2020-03-29T08:20:18.329597 | 2017-03-27T08:14:12 | 2017-03-27T08:14:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | from fabric.api import task, run, cd
def _run_default(command, *a, **kw):
"""Source /etc/default/seafile-server and run the given command"""
command = ". /etc/default/seafile-server; " + command
return run(command, *a, **kw)
def _index_op(op):
with cd('/vagrant/src/seafes'):
_run_default('pyt... | [
"linshuai2012@gmail.com"
] | linshuai2012@gmail.com |
fad4a73a32f95e0c12039344043f8aa6186ca2d7 | 4c89545d41c16e33ace5eec50a7b8eb0b11780ee | /BookCommerce/booktime/settings.py | 73ff78715e7d1a3833b7b7d1b0f0c81cd7ad9cc0 | [] | no_license | envs/DjangoProjects | 8782235ad1a0e77d491849ebef6c4e7cc9705537 | bd9bf356421d4f4dca9593a79e954b9f15712570 | refs/heads/master | 2022-12-02T15:46:02.010763 | 2020-08-19T12:22:55 | 2020-08-19T12:22:55 | 248,914,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,044 | py | """
Django settings for booktime project.
Generated by 'django-admin startproject' using Django 3.0.2.
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
... | [
"olaonipekun2001@yahoo.com"
] | olaonipekun2001@yahoo.com |
e806fa4c23923d883b578cf5c175446980903fae | b13d852ef0a7f847f0c0a39334a7b4e0ff845f85 | /apps/track/migrations/0018_comment_datetime.py | c51eb831b9cc965368d128af7a85c0e6bb2167b2 | [
"MIT"
] | permissive | martinlehoux/django_bike | 357e2a5ea3c6ba8a79df92eeaec214a89a1eb165 | 05373d2649647fe8ebadb0aad54b9a7ec1900fe7 | refs/heads/master | 2023-08-21T23:37:25.273766 | 2021-04-20T13:01:01 | 2021-04-20T13:01:01 | 273,638,471 | 1 | 0 | MIT | 2021-09-22T18:00:45 | 2020-06-20T04:32:38 | Python | UTF-8 | Python | false | false | 429 | py | # Generated by Django 3.0.8 on 2020-09-06 19:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("track", "0017_auto_20200906_1222"),
]
operations = [
migrations.AddField(
model_name="comment",
name="datetime",
... | [
"noreply@github.com"
] | martinlehoux.noreply@github.com |
3364dc89e4b20acc4a05c2118b63545ff7459022 | 55113ee5779138b22d6404c2b138eeaa77120e3a | /knn.py | bad4366016094d312a8b78ec01be352132a8f46d | [] | no_license | timting/titanic | 96e536dec9d2defb77d5657e865b66d6d2dc5da7 | c808e08bf5dacf06709a0dde25aea7b7a0300253 | refs/heads/master | 2021-08-15T16:47:10.893023 | 2017-11-17T23:59:52 | 2017-11-17T23:59:52 | 106,059,252 | 0 | 1 | null | 2017-11-17T23:59:53 | 2017-10-06T23:46:26 | Python | UTF-8 | Python | false | false | 1,266 | py | #!/usr/bin/env python
from numpy import *
import operator
import titanic
def distances(data, point):
point_matrix = tile(point, (data.shape[0],1))
diffs = point_matrix - data
square_diffs = diffs**2
square_distances = square_diffs.sum(axis=1)
dist = square_distances**0.5
return dist
def neare... | [
"alexycodes@gmail.com"
] | alexycodes@gmail.com |
b1c863166fcc509a61ec6e7df70babc7d5e2e3e4 | cf19882e1326e152238719b5c530ea02cd357062 | /Quiz2.py | 15e9c2ede25499c559426c083c9ea21c74e7f0f6 | [] | no_license | kiryeong/python_basic_study | 02ea260f3ea47c0957635c44d1ed66fb736374c1 | 72658df8cf137da3a6803f2ec98d5794da7b2175 | refs/heads/main | 2022-12-26T08:43:03.742975 | 2020-10-09T03:11:35 | 2020-10-09T03:11:35 | 302,518,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,377 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 9 22:23:53 2020
@author: SAMSUNG
"""
sentence = '나는 소년입니다'
print(sentence)
sentence2 = "파이썬은 쉬워요"
print(sentence2)
sentence3 = """
나는 소년이고,
파이썬은 쉬워요
"""
print(sentence3)
jumin = "990120-1234567"
print("성별: " + jumin[7])
print("연: " + jumin[0:2])... | [
"noreply@github.com"
] | kiryeong.noreply@github.com |
0d1437cc6dc02b645e276fa0d6dea694361c7720 | ad3a0a338ae77063232cb2113329e0a04cef9f87 | /anonymization/REM.py | 0e3249904956dbdf95cea2ac8eaffac7719c5988 | [] | no_license | CommunityDeception/CommunityDeceptor | 646c3ca182cc74456c039a37ad251ea26e876c47 | c06a8e909cd74ba8b2ec3d5f65888d7551946c4f | refs/heads/master | 2023-02-21T18:09:16.662721 | 2019-10-27T10:53:26 | 2019-10-27T10:53:26 | 199,795,530 | 1 | 0 | null | 2023-02-11T00:22:34 | 2019-07-31T06:40:29 | Python | UTF-8 | Python | false | false | 7,194 | py | import logging.config
import sys
import time
from typing import List
from igraph import Graph
from igraph.clustering import VertexClustering
from settings import master
from similarity.jaccard import count_jaccard_index_and_recall_index
from utils.counter_pre import count_security_index_by_pre
from utils.pre_counter ... | [
"47921233+CommunityDeception@users.noreply.github.com"
] | 47921233+CommunityDeception@users.noreply.github.com |
78fad504f2c59435075a0fa7a5d366d4a88286bf | 6fd26735b9dfd1d3487c1edfebf9e1e595196168 | /2015/06a-lights.py | 6896bb9a50622d912542f360a119c0278957a812 | [
"BSD-3-Clause"
] | permissive | Kwpolska/adventofcode | bc3b1224b5272aa8f3a5c4bef1d8aebe04dcc677 | 8e55ef7b31a63a39cc2f08b3f28e15c2e4720303 | refs/heads/master | 2021-01-10T16:48:38.816447 | 2019-12-03T20:46:07 | 2019-12-03T20:46:07 | 47,507,587 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #!/usr/bin/python3
import numpy
import re
import kwpbar
R = re.compile('(turn on|toggle|turn off) (\d+),(\d+) through (\d+),(\d+)')
a = numpy.zeros((1000, 1000), numpy.bool)
kwpbar.pbar(0, 300)
with open('06-input.txt') as fh:
for nl, l in enumerate(fh, 1):
m = R.match(l)
action = m.groups()[0]
... | [
"kwpolska@gmail.com"
] | kwpolska@gmail.com |
f20f1601f58c5bf295a656d70950e2cd2d417daf | b613ff2da6ce8908198deef22f11b4112b29150a | /user_content/context_processor.py | 0db85264811e952b480e9c601720e133a04df5d2 | [] | no_license | maddrum/Rady_and_the_Stars | 2c0e38b78ecd3aa425cd558a633815de879186c7 | 835d0fdbb32bd63d0b5f0961d33f54a2e1736494 | refs/heads/master | 2020-03-14T02:43:22.418681 | 2018-05-23T21:08:05 | 2018-05-23T21:08:05 | 131,249,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from user_content.models import SiteUser
def profile_pic_address(request):
user_id = request.user.id
avatar_address = {}
if user_id == None:
return avatar_address
get_profile_pic = SiteUser.objects.get(user_id=user_id)
print("this is")
if get_profile_pic.profile_pic != '':
ava... | [
"maddrum9@gmail.com"
] | maddrum9@gmail.com |
84fac0547cade475c71b06d34ed74617d7d87a4f | 813f9d4eadd82c6bd2441a26e135d9a16d815b8a | /image_iter.py | ff7fa488cd50e1b722bea675a91d653bd09a1bd0 | [] | no_license | NyangUk/Face-Transformer | 2082cc590aa7b24966b13dff80535cb243366420 | d74725c25cc4c8b06eb8344200bf79395a350c2b | refs/heads/main | 2023-07-02T00:53:50.556381 | 2021-08-12T13:59:46 | 2021-08-12T13:59:46 | 394,569,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: yaoyaozhong
@contact: zhongyaoyao@bupt.edu.cn
@file: image_iter_yy.py
@time: 2020/06/03
@desc: training dataset loader for .rec
'''
import torchvision.transforms as transforms
import torch.utils.data as data
import numpy as np
import cv2
import os
imp... | [
"lobgd9150@gmail.com"
] | lobgd9150@gmail.com |
f87ac30ee8177d8d46472777d034607729e57115 | ef15f6538f14db18ab8161a2a6aacd0d29fbdb7a | /wsgi.py | 7f7ff782263880b8199345acd3fe7f846ce3c6db | [
"MIT"
] | permissive | suricats/surirobot-api-services | 5f6d8536f62de874db8769144239d7924eb68b27 | b23b440649a759d638cbc8644acc4aeb7f118674 | refs/heads/dev | 2020-03-22T07:15:14.029175 | 2019-05-22T16:26:08 | 2019-05-22T16:26:08 | 139,689,048 | 0 | 1 | MIT | 2019-05-22T16:25:03 | 2018-07-04T08:00:59 | Python | UTF-8 | Python | false | false | 27 | py | from api.server import app
| [
"alain.berrier@outlook.com"
] | alain.berrier@outlook.com |
01c576eada6417a47049095bda6e06b430144f70 | 5b3bf81b22f4eb78a1d9e801b2d1d6a48509a236 | /leetcode/778.py | 86a36e9731e1dc2184d96130dd07e572c914cf36 | [] | no_license | okoks9011/problem_solving | 42a0843cfdf58846090dff1a2762b6e02362d068 | e86d86bb5e3856fcaaa5e20fe19194871d3981ca | refs/heads/master | 2023-01-21T19:06:14.143000 | 2023-01-08T17:45:16 | 2023-01-08T17:45:16 | 141,427,667 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | class Solution:
def bfs(self, grid: List[List[int]], k) -> bool:
n = len(grid)
ds = [(-1, 0), (0, 1), (1, 0), (0, -1)]
visited = [[False] * n for _ in range(n)]
visited[0][0] = True
cur_q = [(0, 0)]
while cur_q:
next_q = []
for i, j in cur_q:... | [
"okoks9011@gmail.com"
] | okoks9011@gmail.com |
26b561263262ae3cea908b5ad26d60a5289578c4 | ffe23a787537b9706c9ec4d5f7f6ada44ca658f5 | /venv/Scripts/pilconvert.py | 43655490dcc142a3076c5994950ab0333bca10a1 | [] | no_license | zhouli01/python_test01 | cf966d8d16167f3ab752254d66cef8a94663bbdf | 658d69d33b8255d612ff79e1df0ffe734d8971bd | refs/heads/master | 2020-03-07T03:15:33.608727 | 2018-04-21T03:47:06 | 2018-04-21T03:47:06 | 127,231,004 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | #!d:\test01\venv\scripts\python.exe
#
# The Python Imaging Library.
# $Id$
#
# convert image files
#
# History:
# 0.1 96-04-20 fl Created
# 0.2 96-10-04 fl Use draft mode when converting images
# 0.3 96-12-30 fl Optimize output (PNG, JPEG)
# 0.4 97-01-18 fl Made optimize an option (PNG, JPEG)
#... | [
"13717550873@163.com"
] | 13717550873@163.com |
b0c0ff46322cacf76ad3221323a84d906c19a028 | 1a428731009d455773451aca158c2e77e10bccb1 | /sample_sim/planning/pomcp_rollout_allocation/bezier_curve.py | f39f473ace21fdae00958727dd469c51a090db39 | [] | no_license | uscresl/AdaptiveSamplingPOMCP | 6f2c3bc6ac18d175eaf27f7cc9e65a46390ff954 | c0717a4f07dd33b5d583ea977315eedb9b74f9b6 | refs/heads/master | 2023-04-02T03:12:23.636049 | 2021-04-08T23:18:15 | 2021-04-08T23:18:15 | 350,460,334 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | import numpy as np
from scipy.special import comb
from sample_sim.planning.pomcp_rollout_allocation.base_rollout_allocator import PrecalculatedBaseRolloutAllocator
def bernstein_poly(i, n, t):
"""
The Bernstein polynomial of n, i as a function of t
"""
return comb(n, i) * (t ** (n - i)) * (1 - t) *... | [
"gautams3@users.noreply.github.com"
] | gautams3@users.noreply.github.com |
75fcfc95a8816ed00220c22417d87667b7e098c2 | 79cc112bd3490a72c5f0ef978688b8c6adf22542 | /SimplePython/flatten.py | 68ee7ab765cc9ebf996dcf9b6f34a49191c63a9d | [] | no_license | patarapolw/SimplePython | 40aee78bd3403c20d9007d47455f16f41210651e | 1f8af49d3b7672ec9597dda9f45c4aca7ab35d41 | refs/heads/master | 2020-03-13T23:02:39.219466 | 2018-12-18T00:33:42 | 2018-12-18T00:33:42 | 131,328,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | from __future__ import print_function
import collections
import xmltodict
import lxml.etree as etree
import re
def flatten(d, parent_key='', sep='-'):
items = []
for k, v in d.items():
new_key = parent_key + sep + k if parent_key else k
if isinstance(v, collections.MutableMapping):
... | [
"patarapolw@gmail.com"
] | patarapolw@gmail.com |
d3e43d2268aaab367d295f1cc66d38cdeac8892c | 98fc3d1d2fe3fffbe49cd7497b8e4a5183b40029 | /lost_found/urls.py | 29cd7907123712bb6202c3b67b2d1df50dbe0baf | [
"Apache-2.0"
] | permissive | lleyer/lost-found | 5e1b9f34079bf415643aa5ba77bd56f7bdae6164 | 36f8246f6ae00b7d926d3a28c5a02749359ba168 | refs/heads/master | 2020-03-31T22:12:10.301979 | 2018-10-11T14:55:56 | 2018-10-11T14:55:56 | 152,609,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | """lost_found URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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-... | [
"31896557+lleyer@users.noreply.github.com"
] | 31896557+lleyer@users.noreply.github.com |
f8feea7a777cd867d3ba8a84a3de6dbd99017a2f | 5ac978fc54e8d2cd9ecb098fe5e18d376cef9c44 | /img_wall.py | dbae8b9cba358be9f8ec36a9cebfb3c4e2c595df | [] | no_license | at68701141/img_wall | 4c41a3a4106399c0b6f456bb70b3e102965fc884 | e2933ff0ae08861ac50bbb771fd844f5b9068551 | refs/heads/master | 2020-04-27T02:03:29.845781 | 2019-03-08T12:28:40 | 2019-03-08T12:28:40 | 173,983,024 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | from PIL import Image
import os,sys
import random
import argparse
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('--mw', default=100, help='照片的长宽', type=int)
args = parser.parse_args()
return args
def main():
args = parse_args()
mw = args.mw
raw_img ... | [
"2278481764@qq.com"
] | 2278481764@qq.com |
a799ecc070436733bb2d7276e5b86ee6ed334c39 | 01870d5d2dcc96302ca9143ba64e8f871aae5794 | /InsertDinnerMenu.py | 43410ce2148989ea3b5ddd5d36ff941c82743f01 | [] | no_license | isbobby/eusofftelebot | 8a6470c6267d7d19713e33560cbef2bc21d0d6cf | 1b9cd215c9d0258f68798eec23d7ff9e7ac6b226 | refs/heads/master | 2022-12-15T15:48:18.669412 | 2020-05-05T13:48:10 | 2020-05-05T13:48:10 | 201,722,435 | 1 | 1 | null | 2022-09-16T18:16:07 | 2019-08-11T05:35:54 | Python | UTF-8 | Python | false | false | 529 | py |
import json
import sqlalchemy
from flask import Blueprint, render_template, url_for, redirect, request, flash
from datetime import datetime, timedelta
from eusoffweb import db
from eusoffweb.models import Dinner,Breakfast,Event
main = Blueprint('main', __name__)
@main.route("/")
@main.route("/home")
def home():
... | [
"bobbyclex8@gmail.com"
] | bobbyclex8@gmail.com |
bc74953b7cf6838055ecf038a3f0c133024cf95b | d7589054c9dbcccdfee4213fda2df10f249a60a8 | /venv/Lib/site-packages/django/contrib/gis/gdal/raster/band.py | c5b092b7b00a8efe670667cf5d06fcf5d195bdeb | [
"BSD-3-Clause"
] | permissive | Ruckaiya/djangoblog | aa3e16ce84f37a70b830a795acf450b04b5c5bca | a76c5d223477d29b391915c3778219a36f9f34ce | refs/heads/master | 2020-06-09T00:26:51.396663 | 2019-06-23T10:47:43 | 2019-06-23T10:47:43 | 193,334,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,248 | py | from ctypes import byref, c_double, c_int, c_void_p
from django.contrib.gis.gdal.error import GDALException
from django.contrib.gis.gdal.prototypes import raster as capi
from django.contrib.gis.gdal.raster.base import GDALRasterBase
from django.contrib.gis.shortcuts import numpy
from django.utils.encoding import force_... | [
"ruckaiya.awf5@gmail.com"
] | ruckaiya.awf5@gmail.com |
1dacce4b787bbdf7a0d9686693f68f0e2e663a54 | ae81e1685061552dd34e1af5f71cbd549bd05706 | /python/paddle/fluid/contrib/layers/rnn_impl.py | e6a868ada37ab9fb27f973b4bfe648387bb4279f | [
"Apache-2.0"
] | permissive | cryoco/Paddle | 3917982f4d27a5be2abee0f45e74812c7d383c03 | 39ac41f137d685af66078adf2f35d65473978b4a | refs/heads/develop | 2021-11-07T18:47:43.406188 | 2019-09-23T05:04:48 | 2019-09-23T05:04:48 | 197,357,973 | 3 | 1 | Apache-2.0 | 2021-08-12T06:24:30 | 2019-07-17T09:25:19 | C++ | UTF-8 | Python | false | false | 30,946 | py | # Copyright (c) 2019 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | cryoco.noreply@github.com |
b2a7242000eaaed258617f34c401b0cd616456ec | 6bf7149077f539ab599db1f717c93aca82724512 | /encapsulation/resturant/food/dessert.py | 88c978d97947fac520aeff1a4ad8afede7e62b96 | [] | no_license | KalinHar/OOP-Python-SoftUni | 8b53e8b734b364878c5372525c4249fdd32f0899 | 9787eea7ab5101e887ed4aaeb0a8b3b80efcfdd7 | refs/heads/master | 2023-07-09T08:15:59.765422 | 2021-08-16T06:01:08 | 2021-08-16T06:01:19 | 380,813,294 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from encapsulation.resturant.food.food import Food
class Dessert(Food):
def __init__(self, name, price, grams, calories):
super().__init__(name, price, grams)
self.__calories = calories
@property
def calories(self):
return self.__calories
| [
"kalix@abv.bg"
] | kalix@abv.bg |
2927ecf4d1d50234c872853d0c93df428cb23a84 | 68de0dc251ebf950ca698489a5f7a2959282c23f | /pw.py | 080c69b933c28bb1f17d3d99a1aa249fda8e1e0d | [
"MIT"
] | permissive | JKakaofanatiker/pw | 001f70dd41b236556079b5167b4b2dc5c99c3fc9 | 3a8d74ae87b1f96c7476254a64d4ddd898bf069b | refs/heads/master | 2023-02-17T04:42:47.373681 | 2021-01-11T16:00:07 | 2021-01-11T16:00:07 | 328,191,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import secrets
import string
from colorama import Fore # needed for color
import pyperclip
print(Fore.GREEN + "Enter password length:") # tell the user to type the length of the password
length = input() # user input
length = int(length)
chars = string.digits + string.ascii_letters + string.punctuation # possible char... | [
"noreply@github.com"
] | JKakaofanatiker.noreply@github.com |
f852c7fc24ea0e2287c4336eed6a938ebfab3136 | 410c6696feb4b3c3ccda92d4ff4c1c251f176d86 | /code/imu.py | d0afd83a98e7135dec0ecc9462123bee756f1845 | [] | no_license | sourabhraghav2/Self_balancing_quadcopter | 06a706ee349be6941a80cf6f6a0fd3c963af24f1 | 99d114d9308a62b8cd346f29871b9984ca41797a | refs/heads/master | 2020-05-26T15:05:14.420991 | 2019-05-23T18:08:05 | 2019-05-23T18:08:05 | 188,277,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | import math
deltat =(0.01) #sampling period in seconds (shown as 1 ms)
gyroMeasError=float(3.14159265358979* (5.0 / 180.0)) # gyroscope measurement error in /s (shown as 5 deg/s)
beta =float(math.sqrt(3.0/ 4.0) * gyroMeasError)
SEq_1 = 1.0
SEq_2 = 0.0
SEq_3 = 0.0
SEq_4 = 0.0 # estimated orientation quaternion eleme... | [
"sourabhraghav2@gmail.com"
] | sourabhraghav2@gmail.com |
6232b159f028a44b8efe990437ef82bf78cad220 | e1ee8e7c4e92fef77277cbd0c19079ddd769069e | /docs/runtimes/Python27/Lib/site-packages/pythonwin/pywin/tools/regpy.py | 5759468f09b8acb106023a0a62a11319af2e1a68 | [] | no_license | van7hu/fanca | 3c278f0ea0855eb2f0f7a7394788088e7e1c1ad2 | a8864116246bcfe2d517c48831d38e02f107e534 | refs/heads/master | 2021-01-10T02:04:04.361617 | 2015-10-18T15:34:34 | 2015-10-18T15:34:34 | 43,810,422 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | # (sort-of) Registry editor
import win32ui
import dialog
import win32con
import commctrl
class RegistryControl:
def __init__(self, key):
self.key = key
class RegEditPropertyPage(dialog.PropertyPage):
IDC_LISTVIEW = 1000
def GetTemplate(self):
"Return the template used to create this dialog"
w... | [
"van7hu@gmail.com"
] | van7hu@gmail.com |
5cdb0501fd8c8c30df2605856090ccd991199256 | 19f2fb3f384c57339e78f85fe21567068cef87a8 | /budgetr/migrations/0002_flow_start_date.py | 1a53a94cb88c217b364d899252bc67de742bad77 | [] | no_license | rrlittle/budgetr_site | bc168812a0e1117311c59044dcdfae9e6c3908ad | 10a214ede5f61735f9982500f605fa9fb11cba2f | refs/heads/master | 2021-01-20T06:29:26.726011 | 2017-05-10T22:02:40 | 2017-05-10T22:02:40 | 89,885,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-30 21:31
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('budgetr', '0001_initial'),
]
... | [
"rrlittle2@gmail.com"
] | rrlittle2@gmail.com |
ce51e6a69701a01c52fd2b57c4df7eb531aff74a | 622e42704408473c3b2b7ac4d39c5fcd493f40b5 | /test/toppra.py | 2276e924b5da20ddf3a793437f3417d4eb2e6e4b | [
"MIT"
] | permissive | zzz622848/ruckig | 06b97c291b78faf7c11bb85e86d8f16887aa99b9 | 60a40b32c4b73b78c8d37b06c6afa7cbaff4f0e8 | refs/heads/master | 2023-07-05T00:38:32.287582 | 2021-08-30T09:25:53 | 2021-08-30T09:25:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | from pathlib import Path
from sys import path
import time
import numpy as np
import toppra as ta
import toppra.constraint as constraint
import toppra.algorithm as algo
from plotter import Plotter
path.insert(0, str(Path(__file__).parent.absolute().parent / 'build'))
from ruckig import InputParameter, Ruckig
class... | [
"lars.berscheid@kit.edu"
] | lars.berscheid@kit.edu |
da1a5b8ba1d97d5761d2041d3878d7777f846781 | fd36f1935a2c03ab4ec6d061a170bcf62ec4fcd9 | /tools/sense_studio/utils.py | d20f57ecdfc7aab7e78fcba130163900dd995e2a | [] | no_license | 346644054/FlashFinger | a7a65f2312bf4d826def349a56b8959d4efaa3f3 | 2cd66a60f2029e3d23434be39f53e6642a01dd07 | refs/heads/master | 2023-04-28T16:56:26.382632 | 2021-05-24T05:48:10 | 2021-05-24T05:48:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,816 | py | import json
import numpy as np
import os
from joblib import dump
from sklearn.linear_model import LogisticRegression
from sense.engine import InferenceEngine
from sense.loading import build_backbone_network
from sense.loading import get_relevant_weights
from sense.loading import ModelConfig
from tools impo... | [
"QT@users.noreply.github.com"
] | QT@users.noreply.github.com |
119622240c9b5ec29a6dece9fae33d21d3223d64 | fe934523d8f9b17763baffec09498ed6740b3420 | /src/devilry_qualifiesforexam/devilry_qualifiesforexam/tests/statusprintview.py | ff509bf734285db488f1db9a0a17372f592e5351 | [] | no_license | tworide/devilry-django | b13017dd3904cef6972993ec889e2b513e4a9b28 | af554253ab5896806d88414694f3c7ba5d523d74 | refs/heads/master | 2021-01-15T20:43:17.985336 | 2013-07-09T18:55:58 | 2013-07-09T18:55:58 | 1,872,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,721 | py | from django.test import TestCase
from django.core.urlresolvers import reverse
from devilry.apps.core.testhelper import TestHelper
from devilry_qualifiesforexam.models import Status
class TestStatusPrintView(TestCase):
def setUp(self):
self.testhelper = TestHelper()
self.testhelper.create_superuse... | [
"post@espenak.net"
] | post@espenak.net |
5e31439f6ef8877bc551eb574e79ba5a5c45772f | 8254970811a8aa76ad22aeacec0455fc15b43000 | /hello.py | fef48f3af8068de5139a60b33151b177db42be0a | [] | no_license | Daarh/Hello-world | 3ffaf8b54ad0366a88048c96d7aef7c6d4b13345 | e04fee12f67efe820356108072219db1a8617046 | refs/heads/master | 2021-01-19T07:40:42.016907 | 2013-04-07T07:27:45 | 2013-04-07T07:27:45 | 1,606,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | print ("Hello Git!")
print ("This is work?")
print ("Yep! I do it, but understand how this work") | [
"satimon@gmail.com"
] | satimon@gmail.com |
2775c0868b4c25f04216a4b97a154405231a3abd | 34bac3e5b17a8b646ecfc0e784f2e683cde67760 | /cpe101/hw5/collisions.py | ab310458a5306fc1bcb93c27fa59b4a566ddc502 | [] | no_license | bertair7/schoolprojects | ac37b288ce1a586947e47a5e8511bb49f3cf1fda | 5f757738d39c02642cbd89dbec7cd48aed4cd919 | refs/heads/master | 2020-03-24T22:02:39.053866 | 2018-07-31T20:40:42 | 2018-07-31T20:40:42 | 143,063,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | import data
from vector_math import *
def sphere_intersection_point(ray, sphere):
A = dot_vector(ray.dir, ray.dir)
B = 2 * dot_vector((difference_point(ray.pt, sphere.center)), ray.dir)
C = dot_vector((difference_point(ray.pt, sphere.center)),
(difference_point(ray.pt, sphere.center))) - sphere.radius ** 2
... | [
"rablair@calpoly.edu"
] | rablair@calpoly.edu |
25bc2aa94cd161d7305f5cf63cbbae7bb8932c76 | ad5d38fce4785037c108186f17eb1c64380355ef | /sddsd/google-cloud-sdk/lib/surface/kuberun/applications/describe.py | 2e78f1b2d7338dbfae878c76270492f94624b95e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | saranraju90/multik8s | 75864b605a139ddb7947ed4de4ae8466bdd49acb | 428576dedef7bb9cd6516e2c1ab2714581e1137c | refs/heads/master | 2023-03-03T21:56:14.383571 | 2021-02-20T14:56:42 | 2021-02-20T14:56:42 | 339,665,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"saranraju90@gmail.com"
] | saranraju90@gmail.com |
a7f29204a83dfb2884b624f10967ca5bc0854d93 | 0946a8c53c6e625da2f5098cc8fee14126b5fbe5 | /ex023.py | ae0e1d3ebf3329a0334782b0952d3909f617dd8e | [] | no_license | humana42/curso_em_video_Python | 5566a35b762589c0835bb4396265725fe252613a | 0c7a4a593bd118c323f2d27ce35cb0d9899198c2 | refs/heads/main | 2023-02-01T10:31:30.308634 | 2020-12-16T12:38:52 | 2020-12-16T12:38:52 | 306,768,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | n = int(input('Digite um numero: '))
u = n//1 % 10
d = n//10 % 10
c = n//100 % 10
m = n//1000 % 10
print('o numero possui {} unidades'.format(u))
print('o numero possui {} dezena'.format(d))
print('o numero possui {} centena'.format(c))
print('o numero possui {} milhar'.format(m))
| [
"noreply@github.com"
] | humana42.noreply@github.com |
a79010c3fed37025cd48242acb74512a5d588593 | 0e55ea6ca2c36e3f9b5c58cb3f44f5aaec75560c | /youtadata/youtadata/app_accounts/views.py | 40f612a2561642b8f3ac610124122b28dedc29f2 | [] | no_license | amin7mazaheri/youtadata-site | 528bbabef4b9a430672194e4e8d71f54f1d6e51d | db770cccdb39a936111f06f9ccb7f9ca7a854e94 | refs/heads/master | 2022-12-13T08:40:07.533557 | 2019-09-04T15:07:23 | 2019-09-04T15:07:23 | 200,056,433 | 1 | 0 | null | 2022-11-22T03:35:50 | 2019-08-01T13:31:44 | JavaScript | UTF-8 | Python | false | false | 382 | py | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
from app_accounts.models import RegisteredCourse
@login_required
def profile(request):
# import ipdb ; ipdb.set_trace();
ctx = {}
ctx['registered_course'] = [rc.course for rc in request.user.registeredcourse_set.a... | [
"mazaheri7amin@gmail.com"
] | mazaheri7amin@gmail.com |
e44c17545c6248e453002fa7fd8fb168fdb50244 | 7ef3992d882ae700d153f7985a09713cc8bbf260 | /nomadgram/notifications/migrations/0012_auto_20190315_0101.py | a4df07540d095e195f9e2f93eda71513bb3ba389 | [
"MIT"
] | permissive | kode-soar/nomadgram | 68df70445a52a18913aab22e3f03ca6ac8ca94b7 | 1abb40135a0cf9f7d5d9f7363e5f555ecc940ece | refs/heads/master | 2023-01-09T11:36:36.738209 | 2019-03-28T14:33:07 | 2019-03-28T14:33:07 | 171,076,140 | 0 | 0 | MIT | 2023-01-03T18:18:09 | 2019-02-17T03:04:53 | Python | UTF-8 | Python | false | false | 675 | py | # Generated by Django 2.0.13 on 2019-03-14 16:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('images', '0004_image_tags'),
('notifications', '0011_auto_20190315_0100'),
]
operations = [
migrat... | [
"kode.soar@gmail.com"
] | kode.soar@gmail.com |
71e26ad654e533b1909884dadced09b8972863a8 | bf271b1e6d055a298c37d7f400f1a3c877b58a09 | /test.py | 3a18e82f72afb811b054333d5bc05518a7edaabe | [] | no_license | SinForest/color_die_trying | 68d2386abf040959907492f0afba8748fd78be1b | 358a06a86795b26a060e40e6dd8ad37d6ad46b27 | refs/heads/master | 2020-03-18T00:25:57.203092 | 2019-03-19T09:21:28 | 2019-03-19T09:21:28 | 134,093,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,886 | py | #!/usr/bin/env python3
from errors import *
from field import Field
from game import Game
import json
import itertools
class Tests:
def __init__(self):
self.field_cases = {}
def test_func_err(self, name, func, *args, **kwargs):
try:
return func(*args, **kwargs)
except ... | [
"github@thesinforest.eu"
] | github@thesinforest.eu |
d62f327f6d19068f498b05188f56a0b396577377 | 82fb1aa92d5203770ff065d1389e6bcaf5ed92b3 | /scripts/histogram_equalization.py | 3fb51a171261225df745b4f6724e1202fbd3b631 | [] | no_license | dinabandhu50/opencv_projects | 7006bd6d4cacd12f2540a8091030b53cf0d7d9d4 | 32eeec978dd94713d02d5a3f6cd0cc56583aef85 | refs/heads/master | 2021-01-08T21:50:03.555643 | 2020-03-07T03:55:58 | 2020-03-07T03:55:58 | 242,151,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | import cv2
import numpy as np
import matplotlib.pyplot as plt
# %%
img = cv2.imread('./data/image_3.jpg', 0)
print(img.shape)
# %%
def bgr2rgb(img):
"""
The cv2 reads image in BGR format while plt showes image in RGB format.
To overcome this follow:
b,g,r = cv2.split(img)
img = cv2.merge([r,g,b])... | [
"beheradinabandhu50@gmail.com"
] | beheradinabandhu50@gmail.com |
215f63c56fcb7e4ed600067263c981ea47694774 | 3388ea58c1fcae5f8d5dfa7e6e22033d3676d866 | /messagebox/messagebox/urls.py | 4a80041de8eae0aa1307aae4b7f69a87e595b596 | [] | no_license | ssmi4th98/django | 58763d8f628de2d1391458572d143b2a7e6564e7 | db577514398ebf3d8f9f9e24de22c3f4084d9e17 | refs/heads/master | 2022-12-17T07:31:35.780528 | 2020-09-14T13:33:07 | 2020-09-14T13:33:07 | 295,007,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | """messagebox URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Class-b... | [
"s.e.smith@accenturefederal.com"
] | s.e.smith@accenturefederal.com |
3677902b71b928321cf328fcb9adce33ea2b84a5 | 1083a3e39e10baad0ab37bb0777b2209ccfbca18 | /supercache/engine/memory.py | 662336d44c462304b2b5f94e8721da8b5b0d3e73 | [
"MIT"
] | permissive | huntfx/supercache | 6823cf5ef189b1ee54ca14b14f6c14f9b16830f3 | e85ae87e4c2fead6e2a6aa55c0983d249512f34d | refs/heads/master | 2023-06-29T18:32:06.106821 | 2021-08-06T10:02:59 | 2021-08-06T10:02:59 | 244,196,609 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,450 | py | import time
from collections import defaultdict
from .. import exceptions, utils
class Memory(object):
"""Cache directly in memory.
This is by far the fastest solution, but the cache cannot be shared
outside the current process.
This is not completely thread safe, but care has been taken to
avoid... | [
"peter@huntfx.uk"
] | peter@huntfx.uk |
f9fef7293b9342137c66bb53e33f238396d0d3a5 | 0f30f4b1f10ae5ade009d0ff729aa9ec4849f953 | /learning/pmath/add.py | 4757f1c4bdf84f86516a5781d68b6a5101737fb1 | [] | no_license | pan1394/hello-world | c0e5aa53089ed9d5bdf2158bbcb0ea759b1d7d74 | fe6633eb42dcccf136fe7334334921b82e2aa90b | refs/heads/master | 2021-01-19T03:59:09.014342 | 2018-12-10T06:15:42 | 2018-12-10T06:15:42 | 60,680,368 | 0 | 0 | null | 2016-06-08T08:23:33 | 2016-06-08T08:08:55 | null | UTF-8 | Python | false | false | 80 | py | def add(a, b):
return a + b
if __name__ == "__main__":
print(add(2,3)) | [
"pan1394@126.com"
] | pan1394@126.com |
b8ae9efc79a2a5b1389e6e8cfc793a8d2a5c06a4 | 8514fc79d48f702b14c60310b236a92b767393ff | /server/wsgi.py | 750be1ff7d11264c73c3db736b3af1e83d9501d2 | [] | no_license | sungsooha/ChimbukoVisualizationII | 13c188cddd53413be6534600b2b6137e2c589159 | 1df77357a73f30b954e75dc080fd96f9e6738898 | refs/heads/master | 2020-06-28T20:07:04.124297 | 2019-10-31T15:05:59 | 2019-10-31T15:05:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import os
from server import create_app
# Create an application instance that web servers can use. We store it as
# "application" (the wsgi default) and also the much shorter and convenient
# "app".
application = app = create_app(os.environ.get('SERVER_CONFIG', 'production'))
| [
"sungsooha@visws.csi.bnl.gov"
] | sungsooha@visws.csi.bnl.gov |
eaf2eb10fb5b8d84bf77fa6e42a564c33cb05411 | af38a64ba0908f6fff36760e8e2c6807991fb2db | /dict.py | 2bf1c93afeaba0c33aceda5940afa5bf9e3e23e9 | [] | no_license | Vinod096/learn-python | badbeac9a27ee6c22c70a5a057837586cede0849 | 0017174e3dbeea19ca25aaa348e75b2b8203caef | refs/heads/master | 2022-05-26T13:22:07.490484 | 2022-05-01T10:19:32 | 2022-05-01T10:19:32 | 244,166,014 | 1 | 0 | null | 2020-03-04T08:16:14 | 2020-03-01T14:41:23 | Python | UTF-8 | Python | false | false | 439 | py | # Dictionaries
# Lists
# Tuples
# Sets
age = [1,2,3,4,5,1,1,1,2,2,2]
ages_1 = {"1": 23, "2":33, "3":43, "10":12,"5":4}
ages_2 = {1: 23, 2:33, 3:43}
print(ages_1["5"])
print(ages_2[2])
#print(days)
ages = set((1, 2, 3, 4, 5, 1, 1, 1, 2, 2, 2))
print(ages)
for age in ages:
print(age)
tup = (1,2,3,4,4,2,1)
lis ... | [
"vinod.raipati@hotmail.com"
] | vinod.raipati@hotmail.com |
55b806a9c642a5668201a964324cdf6e28509ea8 | 56abe97d9da9a71eb497afaf51dffd2158b30e0f | /test/sclusterTest.py | f28a5cd8963090a59fac58a44c78815e2fa5ab05 | [
"Apache-2.0"
] | permissive | dice-project/DICE-Anomaly-Detection-Tool | 0875ee93e55fbaa7d517aa242e9735e121cffdf4 | a5eeacb9e888348adbe97be0c26a500f2f03ec6f | refs/heads/master | 2020-05-21T20:31:37.667770 | 2017-10-02T21:05:55 | 2017-10-02T21:05:55 | 64,146,313 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | from dmonscikit import dmonscilearncluster
import os
import pandas as pd
dataDir = os.path.join(os.path.dirname(os.path.abspath('')), 'data')
modelDir = os.path.join(os.path.dirname(os.path.abspath('')), 'models')
data = os.path.join(dataDir, 'Final_Merge.csv')
data_df = pd.read_csv(data)
print data_df
dbscan = dmon... | [
"juhasz_gabriel@yahoo.com"
] | juhasz_gabriel@yahoo.com |
9a7bbd3a168fcf5c31668bd1880b909ef7164f5c | 5e7b5697c8648d953933d701962093c714dc37ea | /cam/video_record.py | fc0e82fdbccc1cd6aecd6d52f5e3f3ed3562963a | [] | no_license | santsaran1/new_farmland | b02191485779353c5462a46d6aec59fc4e335e5e | f4343c09a6a552eb41361bcb4bcd2e5d26b1286d | refs/heads/master | 2020-12-25T11:52:45.097720 | 2016-04-25T18:22:19 | 2016-04-25T18:22:19 | 58,182,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | avconv -loglevel quiet -f video4linux2 -r 10 -t 00:00:40 -i /dev/video0 test.avi
fswebcam -r 640x480 --jpeg 85 -D 1 shot.jpg
| [
"shtl.borganve@gmail.com"
] | shtl.borganve@gmail.com |
6abc99b0ea036e849423e18416801494532d591a | e4b35222d08123e551e230f84d4c751df94c4a76 | /randomgamever2.py | 3e246b916162c67269b4fb7589f7aefb1d1789e2 | [] | no_license | Rohithuppalapati/Python-Module-practice | 7eb4814cb41e40038e3cfdc6889f859ad07ed9e9 | 3642ad04d31e1923446a612b7e2536a003d1645d | refs/heads/master | 2023-07-06T15:40:47.852959 | 2021-08-22T15:45:12 | 2021-08-22T15:45:12 | 391,865,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from random import randint
import sys
answer = randint(int(sys.argv[1]), int(sys.argv[2]))
while True:
try:
guess = int(input(f'guess a number {sys.argv[1]}~{sys.argv[2]}: '))
if 0 < guess < 11:
if guess == answer:
print('you are a genius!')
break
... | [
"rohithuppalapati77@gmail.com"
] | rohithuppalapati77@gmail.com |
19936eae1665b6a18075613db82903db8c65342f | 95c441c94991931d53e6fce1e93441443517db68 | /proyecto009/wsgi.py | a9be1896d61d8b1657374a0ed85fc079dd517c82 | [] | no_license | FranciscoVF/proyecto009 | 05d4e57a908f27ec6e6b7dacae9abd28002c4ef2 | f90c2040afbf4d43768ffebafadd1d61780c112d | refs/heads/master | 2023-01-23T03:07:48.724455 | 2020-11-30T05:17:09 | 2020-11-30T05:17:09 | 317,118,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for proyecto009 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"francisco.villarreal16@tectijuana.edu.mx"
] | francisco.villarreal16@tectijuana.edu.mx |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.