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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72e8659e812c879108daec1f80e0a561e34e3ddb | 3bcf8677aaaf6deb112deb3be4972f040b016356 | /optimizing/pi/numba_random.py | 330ed58350f4e1dfe1070491f3268cad963f7789 | [] | no_license | hobson/pycon2014 | 5db411e88cc369e2ba3c856fd73596aad8cdf73b | a4316057f336cf66ab5b7e5bb5d9e27b908b6290 | refs/heads/master | 2021-01-23T09:52:33.522982 | 2014-04-16T16:15:08 | 2014-04-16T16:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | # file: numba_random.py
"""Random numbers with numba.
"""
from numba import autojit, jit, random
import numba_no_debug
STATE = random.state_p
PREC = 0xffffffff
@autojit
def rand_auto():
"""Create a pseudo random between (0, 1).
"""
return random.rk_interval(PREC, STATE) / PREC
@jit('float64()')
def ... | [
"hobsonlane@gmail.com"
] | hobsonlane@gmail.com |
0e3d40df10f95376e4dd2509d5331063f8b17ef3 | 1311a5502b496d0139befba3efa6981b9d081aca | /fake_bpy_modules_2.82-20200514/addon_utils.py | 275bc349d06cffd36eb5279f5adeab8fe50c9083 | [] | no_license | MegaMotion/SVR_Blender_Automation_Plugin | 0982aa4e91d038a36f002fda91e8e89b7789d568 | 48ba2d94698ce184bec93711502ba2b368d86e6f | refs/heads/master | 2022-10-25T20:08:57.173092 | 2020-06-19T19:19:30 | 2020-06-19T19:19:30 | 271,391,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | import sys
import typing
def check(module_name):
'''
'''
pass
def disable(module_name, default_set, handle_error):
'''
'''
pass
def disable_all():
'''
'''
pass
def enable(module_name, default_set, persistent, handle_error):
'''
'''
pass
def module_bl_inf... | [
"connerlindsley@gmail.com"
] | connerlindsley@gmail.com |
5e70c107390a34fb914c5ad7d4ad1f5c0b1a8ecd | b8ef2fba17d8e993b4f6350936ed26d01f8b727d | /GUI_LEGO/GUI/read_data.py | 39a7ef27d45d0c97b50cb49e19e5e71314fac174 | [] | no_license | Nabot/GUI-master | 96e1c777acff1b4b2777b103d5d6e8a9b441395c | 6065e11e9347e94f534f1af30b8b781bad4fc621 | refs/heads/master | 2021-01-21T06:42:04.752838 | 2017-05-17T13:46:34 | 2017-05-17T13:46:34 | 91,581,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | import serial
import time
# # Serial port parameters
serial_speed = 9600
serial_port = '/dev/tty.HC-06-DevB' # bluetooth shield hc-06
def print_data():
print "conecting to serial port ..."
ser = serial.Serial(serial_port, serial_speed, timeout=1)
# print "sending message to turn on PIN 13 ..."
# ser.w... | [
"nabot@Nabot.local"
] | nabot@Nabot.local |
6eb7e4074f7c6505c26194d0571858f0402223e5 | 8b22730050501c72421abda7f55db583773aa37c | /ecvheo1/Queue & Deque/2346.py | f867f5d5b85f74aca122be29e669a467964dd6dd | [] | no_license | naekang/uos-algorithm | 5f98b1eae7c3ee1bde4942976ce18d12cf0d5f19 | a0c03cfc5571c6c6dda5a710bd6e40e7c699e5e0 | refs/heads/main | 2023-08-06T18:28:39.447373 | 2021-10-04T05:43:19 | 2021-10-04T05:43:19 | 396,826,675 | 0 | 0 | null | 2021-08-16T14:18:20 | 2021-08-16T14:18:20 | null | UTF-8 | Python | false | false | 338 | py | n = int(input())
idx = 0
data = list(map(int, input().split()))
index = [x for x in range(1, n + 1)]
temp = data.pop(idx)
print(index.pop(idx), end=" ")
while data:
if temp < 0:
idx = (idx + temp) % len(data)
else:
idx = (idx + (temp - 1)) % len(data)
temp = data.pop(idx)
print(index.... | [
"ecvheo@naver.com"
] | ecvheo@naver.com |
edbc3aede980c504e73f2c1928cd6849bf79efa7 | 5e4e01601fb6c0dd4410705ac874b88b05abb779 | /list_challenge/double_index.py | c28e321c7bb52a949018fcee6e6e3d691e45815c | [] | no_license | marlenaJakubowska/codecademy_py | 259c2d9d94407310295c4bab1bceb71e88c2fe58 | 49f980d73753a81fbc38b18b65d11facd2139da1 | refs/heads/master | 2020-09-26T17:38:25.948857 | 2019-12-06T10:34:48 | 2019-12-06T10:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # Create a function named double_index that has two parameters named lst and index.
# The function should return a new list where all elements are the same as in lst except
# for the element at index, which should be double the value of the element at index of lst.
# If index is not a valid index, the function should r... | [
"mar.jakubowska90@gmail.com"
] | mar.jakubowska90@gmail.com |
07d05ba45c472bf799a1f23648b8c051d0afc099 | 55c9d534eb5a1c11f507d4b0e5bb1dbfe359f988 | /icedata/datasets/ochuman/tests/test_parsers.py | c8c84d443740c747318c856f3821b50d8aaba4e2 | [
"Apache-2.0"
] | permissive | yrodriguezmd/icedata | a1aa5e2d8c5af829310ff16493f20408fc303f13 | ef97358fa5b01ce9b707310571262e6f26ff0694 | refs/heads/master | 2023-07-26T08:30:12.831216 | 2021-09-09T16:49:28 | 2021-09-09T16:49:28 | 400,196,590 | 0 | 0 | Apache-2.0 | 2021-09-04T19:05:51 | 2021-08-26T14:24:26 | Python | UTF-8 | Python | false | false | 508 | py | import icedata
from icevision.all import *
def test_parser(data_dir):
parser = icedata.ochuman.parser(
data_dir / "annotations/ochuman.json", data_dir / "images"
)
records = parser.parse(data_splitter=SingleSplitSplitter())[0]
assert len(records) == 10
record = records[3]
assert reco... | [
"noreply@github.com"
] | yrodriguezmd.noreply@github.com |
48a5901961e5d91bff29c809c3e59e9a8471778e | 8d81eb76afdd16d4f417d6e98e9bc93287e1fcff | /Apps/phskypebusiness/skypeforbusiness_consts.py | abd0fb25b75eaf243bc09e0eba95c876c5d58601 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | philroyer-phantom/phantom-apps | 29e02c299a3db78870b44be3ba6ab51c5e975160 | 2e83bda83cd130e240d5107e54ee9055dc6fcae2 | refs/heads/master | 2021-08-08T03:38:51.344427 | 2020-03-17T22:59:27 | 2020-03-17T22:59:27 | 248,769,317 | 1 | 0 | Apache-2.0 | 2020-03-20T14:00:18 | 2020-03-20T14:00:17 | null | UTF-8 | Python | false | false | 2,066 | py | # File: skypeforbusiness_consts.py
# Copyright (c) 2019 Splunk Inc.
#
# Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
#
# Define your constants here
SKYPE4B_LOGIN_BASE_URL = 'https://login.microsoftonline.com'
SKYPE4B_AUTHORIZE_URL = '/{tenant_id}/oauth2/authorize?client_id={client_id}&re... | [
"noreply@github.com"
] | philroyer-phantom.noreply@github.com |
254d29df377255ac6f245a33ca81d90de2a36670 | f5f99147fb0932b5233c98c410be0b2e4d35dc3e | /Updated_0714/model.py | 043752360ae41ab204be651bed9ad5825480983f | [] | no_license | inzaghi7891/ML-in-OFC-Learned-DBP | 7cc17e73155231cf0322b70739704ea9a04dba5c | f33dfc1e8d5a36ac5f7b14b1998da7b823f437f0 | refs/heads/master | 2022-12-23T14:28:23.618694 | 2020-10-07T03:46:39 | 2020-10-07T03:46:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,646 | py | import tensorflow as tf
import numpy as np
from Weight_Transform import Weight_Transform
from Weight_Transform_whole import Weight_Transform_whole
from scipy.io import loadmat
N = 2048
M = 1024
k = 6
Lsp = 100000
Nsp = 1
M_step = 2
STPS = 1 # Step per Span
delta = Lsp/M_step
A = loadmat('init.mat')['re... | [
"noreply@github.com"
] | inzaghi7891.noreply@github.com |
b5e2ea0ffd7e6eb73051a11f835d678c0ffb9d9b | 8025346dbb746d9ae4653d1a20900a822fdc2641 | /nodes/sub_thread | 83c6d1dfbfef25827634ce16fa62de16592cbb19 | [
"MIT"
] | permissive | m-elwin/me495_threads | 9d8c92f82b26d02795710c0d246f3cd6016ceb03 | 25a2cbe733b8332841e36cc38b23fb74decec300 | refs/heads/main | 2022-02-21T06:11:50.956026 | 2022-02-07T14:27:33 | 2022-02-07T14:27:33 | 216,602,506 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 896 | #!/usr/bin/env python
""" Used to test the python threading model.
SUBSCRIBERS:
sleep (std_msgs/Duration) - duration of sleep, in seconds
A single subscriber that, upon receiving a message,
logs diagnostic information and sleeps for a specified duration.
By publishing different message... | [
"elwin@northwestern.edu"
] | elwin@northwestern.edu | |
fec71cd0be62a88856dede6cbc59942c71b6ea75 | 1d4df37989259d36942b601ae5c786a2061eb08d | /session five/files/2. color spaces.py | 5f0f18787d7dea400aecb2ac908c699408fe6860 | [] | no_license | AhMedMubarak20/full-computer-vision-course | 47246b00623720c38e6b87529f1dd63aba83c64c | ca75f9e3ae6b74f1f96da723c13fb84836ae5e10 | refs/heads/main | 2023-07-01T21:26:13.961564 | 2021-07-24T19:05:50 | 2021-07-24T19:05:50 | 336,350,127 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | import numpy as np
import cv2
image = cv2.imread("images/khwarizmy.jpg")
###? Color Spaces ###
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.imshow("Gray", gray)
hsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV)
cv2.imshow("HSV", hsv)
lab = cv2.cvtColor(image, cv2.COLOR_BGR2Lab)
cv2.imshow("L*a*b", lab)
cv2.imshow... | [
"noreply@github.com"
] | AhMedMubarak20.noreply@github.com |
47db407d57ca8add03329b54fca47c7f724b89fc | 7dd91a3aad021f27e2dc1808be0acf46d70c98aa | /run.py | 109b661960cb6c34c31e5a3b6a69f8336e7e7027 | [] | no_license | ricardo1470/server | d4e9af0dc9dcb488a8876008f4f12c7fa4b72a92 | 9f295e5dc72181ff4085257bca0667d38f394ee0 | refs/heads/master | 2022-11-28T07:43:46.611574 | 2020-08-04T09:27:32 | 2020-08-04T09:27:32 | 275,807,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | #!/usr/bin/python3
from flask import Flask
from flask import request
from flask import render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template("index.html")
@app.route('/client')
def client():
list_name = ['client1', 'client2', 'client3', 'client4']
return render_templat... | [
"ricardo.alfonso.camayo@gmail.com"
] | ricardo.alfonso.camayo@gmail.com |
e324dc2d2052c11d81a5d928308b5cee3cac91c0 | 084c7c66bdb33cb07ddb965c71429546061c21a0 | /Face Detection using image/tempCodeRunnerFile.py | 6db9a3f0f245c30817bfdad21b3b008550633ea0 | [] | no_license | Kamalesh9483/Face-Detection-using-Open-CV2 | ce571b06cd3c340f1feae457667e122acd987a62 | bac86f0e88452ac703b0385ad7dc275819dc5e5e | refs/heads/master | 2023-04-18T17:25:07.823552 | 2021-05-06T15:37:51 | 2021-05-06T15:37:51 | 364,898,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | imgGray = cv2.imwrite("C:/Users/Kamalesh/Python program_ test/Virtual paint assignment/Face Detection/Face Detection - image/group_new.jpg",imgGray)
| [
"kamalesh9483@gmail.com"
] | kamalesh9483@gmail.com |
0aa71140e205fe90dc957e3378e51fe861fa9cef | 19c09273188fd65fd356429e1816823af9abf852 | /loaders/arroyomolinos_payments_loader.py | bec9cc8a90b7f1941c5048bd10c73bad8d364096 | [] | no_license | civio/presupuesto-arroyomolinos | 036231a5b9ccf996d50086d556e999b56006dc1e | c5d25430ec823da3a9bf7e49b4faecab8ec4fc42 | refs/heads/master | 2022-06-04T13:44:03.336727 | 2020-12-13T10:32:48 | 2020-12-13T10:32:48 | 63,264,643 | 0 | 0 | null | 2022-04-09T15:53:12 | 2016-07-13T17:04:48 | SCSS | UTF-8 | Python | false | false | 1,471 | py | # -*- coding: UTF-8 -*-
import datetime
from budget_app.loaders import PaymentsLoader
from budget_app.models import Budget
class ArroyomolinosPaymentsLoader(PaymentsLoader):
# Parse an input line into fields
def parse_item(self, budget, line):
policy_id = line[1].strip()[:2] # First two digits of th... | [
"david.cabo@gmail.com"
] | david.cabo@gmail.com |
e388796953cac08221d94cf729dd2cd4dec45a43 | ebbdc0969343ac4d035b40b07af986af384759c2 | /serverConf/scripts/hostsSpfSetup/hostsSpfSetup.py | 8aff7957042b0a7a23988857d8000800bcc01deb | [] | no_license | surajbhosale409/server-configuration-scripts | 4f8998662945d71960534f8bba53a9a09aa9a86b | 44db318b1e71c339f2908d71d2e1f4f20299f13b | refs/heads/master | 2020-03-20T04:46:54.770284 | 2018-06-13T13:17:16 | 2018-06-13T13:17:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import os
def hostsSpfSetup(ipDomainList):
spfVals=[]
try:
hosts=open("/etc/hosts","a")
for rec in ipDomainList:
hosts.writelines(rec[0]+" "+rec[1]+"\n")
spfVals.append("v=spf1 +a +mx +ip4:"+rec[0]+" -all")
hosts.close()
#Setting hostname to server
... | [
"surajbhosale409@gmail.com"
] | surajbhosale409@gmail.com |
2f73b1ec347dad059288650b9a14abf4b0fd7c4a | 4c3094a869f59be8836993469b28f088fef9fff1 | /Questions/Q_125_PricingLICProduct.py | 5fa85f491cab24ad64a1b0f7ff3a683c908fadc9 | [] | no_license | Bharadwaja92/DataInterviewQuestions | d885d40da4d546a164eee37e7250ddb519fc8954 | 5b002f34c3b1440f4347a098f7ce1db84fc80e7f | refs/heads/master | 2022-11-06T08:57:49.283013 | 2020-06-22T09:10:40 | 2020-06-22T09:10:40 | 269,247,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | """""""""
Suppose you're working for a life insurance company that is trying to price a one year policy for a 24-year old male.
If the individual has a .99972 probability of surviving the year, and the payout is $300,000,
what should the company price the policy at if they want to target an expected value of $150?
""... | [
"saibharadwaj.kh@gaiansolutions.com"
] | saibharadwaj.kh@gaiansolutions.com |
ae1d83bb5c90007b36e92b1587ad877c336ef1c1 | 8ed49272e93624a65fead2aeb2924230bd69dab6 | /problem1169.py | 80ec582608ded4b7f6eada47e0f2843b5f95915f | [] | no_license | digitalladder/leetcode | c1c6cb833f8df65b59f75defaa30aa3116b8d667 | aba3b3627c1510cf61eaf8555389aad09cd112bb | refs/heads/master | 2022-08-29T00:11:55.829581 | 2020-05-31T02:55:24 | 2020-05-31T02:55:24 | 166,723,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #problem 1169 / invalid transactions
class Solution(object):
def invalidTransactions(self, transactions):
"""
:type transactions: List[str]
:rtype: List[str]
"""
temp = collections.defaultdict(list)
res = set()
for tran in transactions:
name,time,a... | [
"junjiehou@houjunjiedeMacBook-Pro.local"
] | junjiehou@houjunjiedeMacBook-Pro.local |
e058f512c4f79e240b59e9cb2f0c7df5e816cb9c | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/transformers/models/mmbt/__init__.py | 9d5ff9cc73014065f1c941915e384c3142dcf3fe | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6636209f6f9ddd864af8a961c522aa5cf9cca41e1f27284ac0b8b147cbddd191
size 1773
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
84d8368e72641ef892afd8f64075be6b140a3945 | 5ba905ceb10b4c194580325e8d90a104ab4e3f46 | /hackit/recommendations.py | 4ba5d20ff929c116139dc9aa2cdff6d870033b70 | [] | no_license | Achintyabhatta/hackathon-Frontliners | 1f3aeaacfdc666152a2b1f5272959f37800484c5 | 7a19ac494cd183f2ed56bcf810f5efb48e70b216 | refs/heads/master | 2022-07-02T22:48:16.746083 | 2020-05-11T19:01:17 | 2020-05-11T19:01:17 | 263,082,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | import string,os
from django.conf import settings
import pandas as pd
import csv
def perform(essentials):
df = pd.read_csv(os.path.join(settings.MEDIA_ROOT, 'all_rules.csv'))
mydata = {}
for index,row in df.iterrows():
for each in row['ordered_product'].split(','):
if each not... | [
"noreply@github.com"
] | Achintyabhatta.noreply@github.com |
f9f920c7088ace3cce8b09dd5e897827686f8e8f | b67e25ab636349954522d6e055273630f31abe46 | /opencv/test_seuillage.py | 61ff3073222078f0affe1c710318b41470757d8a | [] | no_license | sabeaussan/ROS_Unity | bb859854159489f1a2a9995c7268a613543bb9cd | a963975e7c4d63aca8adb6825a992c7c15cfab28 | refs/heads/master | 2022-11-08T22:12:48.330875 | 2020-06-30T13:13:16 | 2020-06-30T13:13:16 | 275,931,638 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | #!/usr/bin/python3
import cv2 as cv
img = cv.imread("balle_orange_2.jpg")
hsv = cv.cvtColor(img,cv.COLOR_BGR2HSV)
mask = cv.inRange(hsv,(0,122,150),(25,194,246))
cv.imshow("orange",mask)
cv.waitKey()
cv.destroyAllWindows()
| [
"sambeda86@gmail.com"
] | sambeda86@gmail.com |
56d1024800be8e9370491967fdd7c0330dfd8c65 | 8a55b7428cc3962482fd70aaba74997f2205471b | /mysite/settings.py | 6bd125a69207e16381aff3e095fbe552123f864a | [] | no_license | spiroskatsamakas/djangotest11 | 418abf6a2ccee9ad1bc5be6f07e4bb4c552fb077 | e10897105388cb97f1843a1288492e553e30e58f | refs/heads/master | 2023-07-05T11:56:56.201697 | 2021-08-19T22:08:31 | 2021-08-19T22:08:31 | 398,075,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.24.
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
#... | [
"spiroskatsamakas@gmail.com"
] | spiroskatsamakas@gmail.com |
b219fbfea800f1870a3e624308fe40693f3b3efd | 9835151ed6b99222d660af90b31e133d6bbc6a3d | /fhs/usr/share/python/syncwerk/restapi/restapi/forms.py | 99cf0b1f1aafe142edcab9f4772c77375ab3803a | [
"Apache-2.0"
] | permissive | syncwerk/syncwerk-server-restapi | 33c6108c00b086260c62a0408f8f7f12ee7e1685 | 13b3ed26a04248211ef91ca70dccc617be27a3c3 | refs/heads/main | 2023-04-10T20:09:15.966129 | 2021-04-20T11:53:17 | 2021-04-20T11:53:17 | 292,826,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,939 | py | # Copyright (c) 2012-2016 Seafile Ltd.
# encoding: utf-8
from django.conf import settings
from django import forms
from django.utils.translation import ugettext_lazy as _
from pyrpcsyncwerk import RpcsyncwerkError
from restapi.base.accounts import User
from restapi.constants import DEFAULT_USER, GUEST_USER
from resta... | [
"alexander.jackson@syncwerk.de"
] | alexander.jackson@syncwerk.de |
4d7e399e8b436b464a53bfe1bcf35ca760e04af1 | 4588e37a3c78eefe5637166b35d02b89fe97f80c | /authentication/urls.py | 97b5037d43d53e39a7c2133814f1b0d7f32f27c0 | [] | no_license | David127/pachaqtecProyecto | 83295fb0e862f0cdb8b01cd597b46ad22375e851 | 10d5f82192a56e2b27325fbc56d1edd93035c35f | refs/heads/master | 2023-06-29T18:35:46.876464 | 2021-08-07T05:51:24 | 2021-08-07T05:51:24 | 393,721,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from django.urls import path
from .views import RegisterView, EmailVerify, LoginView, LogoutView, RequestPasswordResetEmail, PasswordTokenCheckAPI, PasswordChangeAPI
from rest_framework_simplejwt.views import TokenRefreshView
urlpatterns = [
path('login/', LoginView.as_view(), name='login'),
path('logout/', Lo... | [
"david.ffdbhjf@gmail.com"
] | david.ffdbhjf@gmail.com |
3089a19ad50523efcd56b5526b45246846f872d7 | 7cb3e5e16fd93e6f8a1c07c211cee16dc248ef5d | /venv/lib/python3.6/site-packages/django/conf/locale/uk/formats.py | e0c6f7fd820ce7fbe5bfa33ee6be778e75855f5f | [] | no_license | JustynaJBroniszewska/Blog | d74a8cb19fa037b834f5218522ff1397eb60d370 | cfd8efbcce3e23c7ebeea82b2e732de63c663ac8 | refs/heads/master | 2022-11-03T22:01:07.165652 | 2020-06-05T14:25:01 | 2020-06-05T14:25:01 | 266,791,768 | 0 | 0 | null | 2020-06-05T14:25:02 | 2020-05-25T13:52:19 | Python | UTF-8 | Python | false | false | 1,308 | py | # This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = "d E Y р."
TIME_FORMAT = "H:i"
DATETIME_FORMAT = "d E Y р. H:i"
YEAR_MONTH_FORMAT = "F Y"
MONTH_DAY_F... | [
"jj.broniszewska@gmail.com"
] | jj.broniszewska@gmail.com |
2042449133f03be90aac3394907857928da24237 | f703840a152c1e164e87ed29075def4fdb3cef7c | /9_Classification_Plant_Disease/image_mining_tools.py | fab2b0d9f705bf81afb598c43a7cf89190c73cd6 | [] | no_license | meryemman/Image-Mining-Projects | 3fa9292bd7b8218167a6e55e88fecd04adc8ad30 | c5f55cb1a7561f8e8216394c15648f95247d3c46 | refs/heads/master | 2023-02-18T20:52:20.657763 | 2021-01-15T12:57:37 | 2021-01-15T12:57:37 | 328,022,697 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,722 | py | #---------------------------------------------------------------------------------
# Install necessary library and packages
#---------------------------------------------------------------------------------
# !pip install -U -r requirements.txt
#--------------------------------------------------------------------------... | [
"meryem.manessouri@gmail.com"
] | meryem.manessouri@gmail.com |
33863f53f57b85e29606bccfb0fb260ba7964e4c | b9803afa320b270a7c824fcda56a5441d31239fa | /node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build/config.gypi | ad2884351bb95dfb13c8f1148352bada2e52473c | [
"Apache-2.0",
"MIT"
] | permissive | hswolf/learn_mean | 567404191edcebf3b16b24f761fcc3492d94deda | 0e85d5428969e167122a887ef6f01d71d1bf8597 | refs/heads/master | 2021-01-01T18:38:10.560527 | 2015-08-11T09:41:54 | 2015-08-11T09:41:54 | 40,533,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,690 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 44,
"host_arch": "x64",
"icu_data_file": "ic... | [
"vinhtt0305@gmail.com"
] | vinhtt0305@gmail.com |
c696966a5e45cb48ec75452928bb72c2fff807ec | d0cfe5a2e14c00b6752bb6f5e042f2d8a8d4f37d | /students/johnwachter/session04/dict_set_lab.py | c1d9feb6a5093fac284f71d928f4449ebf2d2f9e | [] | no_license | johnwachter/Python210-W19 | d917fcb8d6af1c060536b82d88eebaf8635781c5 | cdc6e24a820897cc1b6cef175d1e3bf06928aec7 | refs/heads/master | 2021-07-11T08:34:40.896895 | 2020-08-07T03:25:08 | 2020-08-07T03:25:08 | 166,606,178 | 0 | 0 | null | 2019-01-19T23:58:33 | 2019-01-19T23:58:33 | null | UTF-8 | Python | false | false | 1,048 | py | #Dictionaires1
mydict = {'Name': 'Chris', 'City': 'Seattle', 'Cake':'Chocolate'}
print(mydict)
del mydict['Cake']
print(mydict)
mydict['Fruit'] = 'Mango'
print(mydict)
print(mydict.keys())
print(mydict.values())
print(mydict.get('Cake', 'Cake not in dictionary'))
if 'Mango' in mydict.values():
print('Mango is in th... | [
"johnwachter29@gmail.com"
] | johnwachter29@gmail.com |
865d7f6ad41f7524c4479a83da8611b4b6a94258 | 6bee9512be40b149df77e0694c210c9fc6a6289a | /lesson8/task7/basic_inheritance.py | 5b0ffd2eb4fe6430685ad7c1a14a93892a829dd9 | [] | no_license | sergio9977/SUMMER_BOOTCAMP_2018_Python | ced5508ca0c8605eb3fa2af9b254ed7d97055a81 | 351ab57bd9f7b282364936c3e228d6c5e315e3b9 | refs/heads/master | 2021-05-09T09:14:33.512871 | 2018-02-26T13:19:15 | 2018-02-26T13:19:15 | 119,430,972 | 0 | 0 | null | 2018-01-29T19:32:45 | 2018-01-29T19:32:45 | null | UTF-8 | Python | false | false | 568 | py |
class Person:
def __init__(self, first, last):
self.firstname = first
self.lastname = last
def getName(self):
return self.firstname + " " + self.lastname
class Employee(Person):
def __init__(self, first, last, staffnum):
Person.__init__(self,first,last)
self.st... | [
"sergio9961937@gmail.com"
] | sergio9961937@gmail.com |
d75045d5c0f1a6949b9e7cfc4acd511c80730b5a | c70502b90675d271000e37fc140ee36659e68ea7 | /foss_finder/utils/user_defined_info/fields/additional_info.py | 744502ce0d33b6d23777a7b851d88825c6448833 | [
"Apache-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"MIT"
] | permissive | iotile/foss_finder | 85936b4eb3b862256f9c8b0092cdad05bc095521 | 0c31530cf2158d4565a8168aecda18ffbcc68f04 | refs/heads/master | 2021-07-09T10:41:19.118859 | 2019-03-23T23:26:27 | 2019-03-23T23:26:27 | 145,917,271 | 6 | 1 | MIT | 2018-10-01T17:10:56 | 2018-08-23T23:18:59 | Python | UTF-8 | Python | false | false | 845 | py | from foss_finder.config.config import DEFAULT_COLUMNS, OPTIONAL_COLUMNS
from foss_finder.config.strings import ADDITIONAL_INFO_NAME
from .field import UserDefinedInformationField
class AdditionalInfo(UserDefinedInformationField):
"""
Implements a field of the user-defined information file.
This field's p... | [
"noreply@github.com"
] | iotile.noreply@github.com |
286e4156131250a3656262d4864ec215b37dbbce | 55662961770dfacae3ac835bc1f81ac3093f9de4 | /week8/3-Cinema-Reservation-System/reserve_cimnema_sys.py | 30e277f4217bb06b5816defd5413706cb2570382 | [] | no_license | AntonAtanasov/Programming-101v3 | c857388424ddbed88a3798ae6a155f7d972c9c07 | 2873897de67a99989805f2d31585d6c2bc249422 | refs/heads/master | 2021-01-10T18:23:42.027990 | 2015-06-06T18:07:10 | 2015-06-06T18:07:10 | 36,734,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,006 | py | from magic_reservation_system import CinemaReservation
from settings import DB_NAME
import sqlite3
import copy
reserve_msg = [("Step 1(user)>", str),
("Step 2(number of tickets)>", int),
("Step 3(choose a movie)>", int),
("Step 4(choose projection)>", int),
(... | [
"anton.p.atanasov@gmail.com"
] | anton.p.atanasov@gmail.com |
622f0a2831b81efc0fd4c2318bca84ad78309dee | 9797b289a89012f381c6b1de794374ab0d73ed1a | /Chapter_11/11.1.test.py | ccb6bb67cbad0915c4e73b0c56cff85a3845a231 | [] | no_license | qh4321/1_python_crash_course | 23c26d1c39cd0808e987fb8992e092a34aacc489 | aa2d72857e3173a3951e52538607b6e331f50a24 | refs/heads/master | 2022-12-31T09:03:47.660232 | 2020-10-22T13:33:13 | 2020-10-22T13:33:13 | 301,715,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | import unittest
from city_function import city_country
class CityTestCase(unittest.TestCase):
def test_ll(self):
double = city_country('beijing', 'china')
self.assertEqual(double, 'Beijing,China')
unittest.main()
| [
"52791020+qh4321@users.noreply.github.com"
] | 52791020+qh4321@users.noreply.github.com |
9f38ff1b368aeb8c210558580b8f2c492e943a39 | c8b29b23b3363ae246516818f59fc95e2b2b76f7 | /app/main.py | 02b0893279609287d241e0a0443fe34f1c2b35ea | [
"MIT"
] | permissive | ayushmaskey/bike_rental_system | 49910dee9a27628306cfe852cc4c033222170aa8 | 7c53b295b41701d7852e71bef0f110d4ce4813f5 | refs/heads/master | 2020-06-04T23:24:32.189816 | 2019-06-17T00:07:32 | 2019-06-17T00:07:32 | 192,232,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py |
from bike_rental import BikeRental
from customer import Customer
def main():
shop = BikeRental(100)
customer = Customer()
while True:
print("""
===== bike rental shop =======
1. Display available
2. Request a bike on hourly basis $5
3. Request a bike on daily basis $20
4. Request a bike on weekl... | [
"maskey.maskey@gmail.com"
] | maskey.maskey@gmail.com |
97fc78b6c5686fb9bbb8b11faf77bdd250d89984 | 8c098094e61fe80f8542e90ef57d6cd96c4bae56 | /models.py | f89c94e8ca9fca6b6054ec7bb3bda0a5b1d51f09 | [] | no_license | jugg3rn4u7/ConnectifyAPI | 11ff41b1ba0495fd349e24defb3407b7790708d4 | 0b8335b4e36ac23302d1a20124910fa97b393375 | refs/heads/master | 2020-12-31T03:34:43.124948 | 2016-09-09T04:18:56 | 2016-09-09T04:18:56 | 62,965,333 | 0 | 0 | null | 2016-07-09T19:17:23 | 2016-07-09T19:17:23 | null | UTF-8 | Python | false | false | 136 | py | # Models
User = dict(
phoneNumber = "",
password = "",
verified = 0,
code = 0,
salt = "",
avatar = 0,
avatarName = 0
);
| [
"shriku4u27@gmail.com"
] | shriku4u27@gmail.com |
d38fe46075d0bd0c00e53082701f1e24d6fc4a1a | 5e9bda2d6082f62d889df1c28973436af905faaa | /demo/agw/FlatMenu.py | 8a6f08fc91b3beade65596ae3cf19deb606b9cc2 | [] | no_license | FXCMAPI/Phoenix | cab74db4e8f141f4d27b4b2e3d5bab06994b2e52 | 040763282f04a5b98f89c054b254993d1a8ca618 | refs/heads/master | 2020-03-16T15:42:10.660845 | 2018-05-09T01:41:51 | 2018-05-09T01:45:33 | 132,755,174 | 1 | 1 | null | 2018-05-09T12:41:54 | 2018-05-09T12:41:53 | null | UTF-8 | Python | false | false | 31,541 | py | #!/usr/bin/env python
import wx
import math
import random
import os
import sys
try:
dirName = os.path.dirname(os.path.abspath(__file__))
except:
dirName = os.path.dirname(os.path.abspath(sys.argv[0]))
bitmapDir = os.path.join(dirName, 'bitmaps')
sys.path.append(os.path.split(dirName)[0])
try:
from agw ... | [
"robin@alldunn.com"
] | robin@alldunn.com |
c17b386db26d84061a9618a4fd6d5402792e6a3b | f7f6980743ca3f728d89e012ba3ac1aa87978a58 | /PK_Gateway.py | 96ba4d7a75ef6edd5d2710b9895e52f00ad063ab | [] | no_license | amadea-system/PluralKit_API_Gateway | d9cc076d1d4468a2b7e9bb7fd1ac490d53a70794 | a682a4d503821fdc2b1c5467896a864e7e3e9726 | refs/heads/master | 2023-02-25T02:13:40.127648 | 2021-01-29T16:51:49 | 2021-01-29T16:51:49 | 333,824,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | """
This is an API Gateway for the Plural Kit API.
It's primary purpose is to take the load from our internal programs and scripts
and thus remove that burden from the Plural Kit servers,
Copyright 2020 Amadea System
"""
import logging
import json
from flask import Flask
from utils import pluralKit... | [
"53259552+amadea-system@users.noreply.github.com"
] | 53259552+amadea-system@users.noreply.github.com |
ee2ce6ef73683d2e4409cea21ef2c5ac5967e0d3 | a0c1c35c7d2549c4252a2c1f5ebdbe641c99de8e | /workspace/SRM147/GoldenChain.py | 520a66e5c385ac896fa871767e550a6d95b5ebc0 | [] | no_license | teruterubohz/topcoder | 01aa4383d2df186ed1d7dda7a08055929ec0ca79 | 520eab20976a169c5b34603b6be09d3e39038c0f | refs/heads/master | 2021-01-19T02:52:31.594307 | 2019-01-18T12:04:05 | 2019-01-18T12:04:05 | 52,022,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,461 | py | import math,string,itertools,fractions,heapq,collections,re,array,bisect,random
class GoldenChain:
def minCuts(self, sections):
return
# BEGIN KAWIGIEDIT TESTING
# Generated by KawigiEdit-pf 2.3.0
import sys
import time
def KawigiEdit_RunTest(testNum, p0, hasAnswer, p1):
sys.stdout.write(str("Te... | [
"teruterubohz@gmail.com"
] | teruterubohz@gmail.com |
68160073063770730333e5a0d2fb1645cc4cf84d | 2e2b50bc9338670d5ce938aaa72621f364509b41 | /dags/kube_pod_operator.py | eba59149d6f42dfb8f49da98165f954d1176bb37 | [] | no_license | houstonj1/airflow-kube | 75588dc34a6a474c96d67e91c0e86eaef53572d6 | 2fdd6546a0a3328a09f541c448be2e2ef935f417 | refs/heads/main | 2023-05-25T12:35:21.562554 | 2020-10-29T16:11:27 | 2020-10-29T16:11:27 | 303,440,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | from datetime import timedelta
# The DAG object; we'll need this to instantiate a DAG
from airflow import DAG
# Operators; we need this to operate!
from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
from airflow.utils.dates import days_ago
default_args = {
"owner": "airflow",
... | [
"james-houston@pluralsight.com"
] | james-houston@pluralsight.com |
9be7874e668a88d0d9693cde61c18f8a0d179c3c | 5fb68f25a20066118f85d510020a23da766ff0ce | /abandon/release_puppet_unity_ths.py | 2dc0520e19d1a885ca7227149023583dbdd5ef59 | [
"MIT"
] | permissive | yutiansut/puppet | fe4d2c239ad9755507f24760871e3268a4ed9419 | c8ca97b5b8720798f585cf9f7266cbdf247407c3 | refs/heads/master | 2021-01-16T19:26:38.375253 | 2020-08-14T06:02:35 | 2020-08-14T06:02:35 | 100,169,753 | 2 | 1 | MIT | 2020-08-14T06:02:36 | 2017-08-13T10:37:43 | Python | UTF-8 | Python | false | false | 5,778 | py | __author__ = '睿瞳深邃(https://github.com/Raytone-D)'
__project__ = "扯线木偶(puppet for THS trader)"
#增加账户id_btn = 1691
# coding: utf-8
import ctypes
from ctypes.wintypes import BOOL, HWND, LPARAM
from time import sleep
import win32clipboard as cp
WM_COMMAND, WM_SETTEXT, WM_GETTEXT, WM_KEYDOWN, WM_KEYUP, VK_CONTR... | [
"noreply@github.com"
] | yutiansut.noreply@github.com |
0fb93d3fbb0befa9bc95f8f2daa2dd0579410dfe | 5835ec8ce289f21f0d5be130ff5a725d6fbad9ee | /rlmeta/storage/tensor_circular_buffer.py | 9d1a716c539142d63263675eef942fddf16b39e0 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | facebookresearch/rlmeta | 4f3b8649380666a0661a58e33f5cc9857c98acf9 | 06b2dc2b04c78241ba30addc60d71fba8b9aec76 | refs/heads/main | 2023-05-23T11:00:24.819345 | 2023-02-11T06:20:05 | 2023-02-11T06:20:05 | 438,839,283 | 296 | 24 | MIT | 2023-02-11T06:20:07 | 2021-12-16T02:47:46 | Python | UTF-8 | Python | false | false | 1,809 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Callable, Optional, Sequence, Tuple, Union
import numpy as np
import _rlmeta_extension
from rlmeta.core.types import N... | [
"bit.yangxm@gmail.com"
] | bit.yangxm@gmail.com |
019f111fd520525a2832379a4ae3c01253ee4c84 | 908655251066427f654ee33ebdf804f9f302fcc3 | /Toolbox/garage/garage/envs/mujoco/__init__.py | a75a710c6b5ab76c82b6b6863989a1ab540a650e | [
"MIT"
] | permissive | maxiaoba/MCTSPO | be567f80f1dcf5c35ac857a1e6690e1ac599a59d | eedfccb5a94e089bd925b58f3d65eef505378bbc | refs/heads/main | 2023-07-05T02:20:16.752650 | 2021-07-06T06:04:40 | 2021-07-06T06:04:40 | 381,811,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | from garage.envs.mujoco.mujoco_env import MujocoEnv
from garage.envs.mujoco.ant_env import AntEnv # noqa: I100
from garage.envs.mujoco.half_cheetah_env import HalfCheetahEnv
from garage.envs.mujoco.hopper_env import HopperEnv
from garage.envs.mujoco.point_env import PointEnv
from garage.envs.mujoco.simple_humanoid_env... | [
"xiaobaima@DNab421bb2.stanford.edu"
] | xiaobaima@DNab421bb2.stanford.edu |
ccb61474f529d018e2009f567ba58421b973862b | f3e06697a63e1bdb4cd8c711f504d19ff273c957 | /bin/pull_cn10ybondsh300.py | c39015b41197b9b8a1638b6e12acf6ca917fb05b | [] | no_license | kingfuzhu/52etf.net.new | 74338fb27fa3606bd4516c5bad2df2c3686153bf | 1c408cb16d441dff46cefdb6fdc3309eb8443be8 | refs/heads/main | 2023-08-24T17:07:16.621675 | 2021-10-21T01:17:11 | 2021-10-21T01:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import akshare as ak
import urllib
import sys
dest = sys.argv[1]
# 设置字体
import matplotlib.font_manager as fm
path = '/usr/share/fonts/truetype/SimHei.ttf'
github_url = 'https://github.com/adobe-fonts/source-han-sans/blob/release/OTF/SimplifiedChinese/S... | [
"lileilei999@qq.com"
] | lileilei999@qq.com |
1c2e55d37cc03de8dd12ad539843d907c6cc7c43 | f4505246c73acf36a6cbf0703c586a97744ecf44 | /backend/chat/admin.py | c056b07794a7e09fa093df4e48bd19592f95b10d | [] | no_license | crowdbotics-apps/fun-for-me-22426 | 176a5e3bc801a89951ddf699d2aae9d9f9d0bac0 | 3efedf39e307f0b139a23937a233ef6f3e2b9c1d | refs/heads/master | 2023-01-06T17:20:40.332249 | 2020-11-09T03:32:15 | 2020-11-09T03:32:15 | 311,213,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.contrib import admin
from .models import (
Message,
ThreadMember,
MessageAction,
ThreadAction,
ForwardedMessage,
Thread,
)
admin.site.register(Message)
admin.site.register(ForwardedMessage)
admin.site.register(MessageAction)
admin.site.register(Thread)
admin.site.register(ThreadMemb... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
337747116aa59f6577a365dcff23d7eeaa3eae24 | 97d03b14743fa897183e4573ecf0c0cdcf04f2ad | /lef_def_parser/cell_learn.py | c13413d5e98bb2eebabcd7d56de05aaf933a07f3 | [
"MIT"
] | permissive | HanyMoussa/SPEF_EXTRACTOR | 0d1f9244f02e1584c159d7dd3304a4c80376ce3c | 4241190ce2bd8b44cf75092dd70b8ef9f4837c2c | refs/heads/master | 2022-12-20T14:54:52.196847 | 2020-09-23T15:07:04 | 2020-09-23T15:07:04 | 284,084,394 | 11 | 3 | MIT | 2020-09-23T14:20:58 | 2020-07-31T16:44:02 | Python | UTF-8 | Python | false | false | 20,932 | py | """
Train a ML model to predict cells based on vias location
Name: Tri Minh Cao
Email: tricao@utdallas.edu
Date: October 2016
"""
import pickle
import random
import os
from def_parser import *
from lef_parser import *
import util
from sklearn.linear_model import LogisticRegression
import numpy as np
import plot_layou... | [
"57135988+ramezmoussa@users.noreply.github.com"
] | 57135988+ramezmoussa@users.noreply.github.com |
a378c572205cbaf5e36a297e746385342022b3ae | a995f917e307be0d427cc9cfd3dbdd045abdd097 | /剑指offer/面试题46. 把数字翻译成字符串(dp).py | 42c6faab283bd0074eae08f41fff90c186b170cb | [] | no_license | Andrewlearning/Leetcoding | 80d304e201588efa3ac93626021601f893bbf934 | 819fbc523f3b33742333b6b39b72337a24a26f7a | refs/heads/master | 2023-04-02T09:50:30.501811 | 2023-03-18T09:27:24 | 2023-03-18T09:27:24 | 243,919,298 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | class Solution(object):
def translateNum(self, num):
"""
:type num: int
:rtype: int
"""
s = str(num)
dp = [1 for _ in range(len(s) + 1)]
for i in range(2, len(s) + 1):
# 我们可以选择翻译一位或者是两位
if "10" <= s[i - 2:i] <= "25":
d... | [
"yifu3@ualberta.ca"
] | yifu3@ualberta.ca |
e7474d9c5c1e8516b6e0cd7305371e9b583dbedf | 70cea82aa3e5c574c7cb134253061dcdc45d08a7 | /opencv-ex/ex03/cv_ex10.py | 931881a60ba844706ed27decc56a2631b36c602a | [] | no_license | kkc926/raspberrypi | e21b9431e8532790bab5b0132a8d3e232ffd292a | 53018babb2395680013d77bf02bfce409e5bbfe0 | refs/heads/master | 2022-12-28T21:20:12.431215 | 2020-10-10T09:58:52 | 2020-10-10T09:58:52 | 299,950,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import cv2
import numpy as np
src = cv2.imread('./data/lena.jpg', cv2.IMREAD_GRAYSCALE)
dst = cv2.resize(src, dsize=(320, 240))
dst2 = cv2.resize(src, dsize=(0,0), fx=1.5, fy=1.2)
cv2.imshow('dst', dst)
cv2.imshow('dst2', dst2)
cv2.waitKey()
cv2.destroyWindows() | [
"kkc926@naver.com"
] | kkc926@naver.com |
f4ee30e31222eff3c38aa983ee03c0fd28637c2b | ff303bc4218950faec67d4f53bb4acbbde586725 | /jt65.py | 723b3bd3eaab67552b98a30b543270596484d5c3 | [] | no_license | mcogoni/weakmon | 86455868773b17a216ca49ae96ff57bd72db3d86 | 81a5cacd05ae589dcb76c249cfb466ec81de2964 | refs/heads/master | 2021-08-10T18:52:11.785312 | 2020-05-28T13:35:37 | 2020-05-28T13:35:37 | 185,056,638 | 0 | 0 | null | 2019-05-05T16:35:57 | 2019-05-05T16:35:57 | null | UTF-8 | Python | false | false | 59,165 | py | #!/usr/local/bin/python
#
# decode JT65
#
# inspired by the QEX May/June 2016 article by K9AN and K1JT
# about soft-decision JT65 decoding.
#
# much information and code from the WSJT-X source distribution.
#
# uses Phil Karn's Reed-Solomon software.
#
# Robert Morris, AB1HL
#
import numpy
import wave
import weakaudi... | [
"rtm@csail.mit.edu"
] | rtm@csail.mit.edu |
23b2e637ae86701c527f04da0037fb4b2d80e3d3 | e9b8923a4d270a2670d75d13ce10bf90057022b2 | /main.py | a574908dc7d6b853f0d52361ef0473906e0f5ddb | [] | no_license | jmash/kivycalc | 12d7b138e48412a6361138a6fe0603eab54e28b5 | 272a24b5951b448aa36690a2ff45346cfcee4834 | refs/heads/master | 2021-01-02T14:28:57.292799 | 2020-02-11T02:50:31 | 2020-02-11T02:50:31 | 239,662,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,913 | py | import kivy # gotta kivy if you wanna shivvy
import re # regular expressions for determining input
import math # for sqrt
kivy.require('1.9.1') # necessary for _reasons_
from kivy.uix.screenmanager import Screen # the App is loaded onto the screen widget
from kivy.properties import ObjectProperty
# the ObjectPropert... | [
"jaredmashcraft@gmail.com"
] | jaredmashcraft@gmail.com |
1c162fd2e9a8262027bb99cdd87c22081f60188b | 203da3abd0f3d3c6191390cb3d8025fb5d512c62 | /app.py | 41b7848f3e2b7d543da7fdd4db20e0849ffa09c4 | [
"MIT"
] | permissive | Sh4yy/CherryAuth | dc34898b1333ee49c928589874ade01f12df536b | 5787f18cc388f32560c7acf729ab7001abc929d4 | refs/heads/master | 2022-12-12T12:33:24.743788 | 2020-02-16T02:19:51 | 2020-02-16T02:19:51 | 194,908,331 | 2 | 0 | MIT | 2022-12-08T05:50:29 | 2019-07-02T17:37:12 | Python | UTF-8 | Python | false | false | 593 | py | from sanic import Sanic
from Routes import bp
from models import *
def create_db():
"""
initialize and create db models
:return: True on success
"""
db.create_tables([User, Session, Credentials])
return True
def create_app():
"""
initialize the web server
:return: app on success
... | [
"shayan@umd.edu"
] | shayan@umd.edu |
0d5901e78e5132eccc386099896af3dc15a658c2 | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /requests_html__examples/ru_sefon_cc__news.py | 13bbf32d02bbb6880bb19dd90d69147c6ef4a4c9 | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# pip install requests-html
from requests_html import HTMLSession
session = HTMLSession()
rs = session.get('https://ru.sefon.cc/news/')
rs.html.render() # Без этого не будет выполнения js кода
for a in rs.html.find('.mp3 > .btns > a[data-url]... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
0fd47bd134edd98708784732dfea0ce0b7f45262 | 5e0e4a16f2a55dac38ae7583a044afe13240d04f | /authentication/urls.py | 31fb936db3da16c906c4bc7e03d2d327daf0aeeb | [] | no_license | murgesh2000/expenseswebsite | 4217f806461d5c59b6af7741889a392c14e42bd0 | 62fcc3547da5631abe281b4982c7e8fc152f6029 | refs/heads/main | 2023-03-01T12:29:51.312131 | 2021-01-27T06:08:44 | 2021-01-27T06:08:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from django.urls import path
from .views import RegistrationView, UsernameValidationView
urlpatterns = [
path('register', RegistrationView.as_view(), name="register"),
path('validate-username', UsernameValidationView.as_view(), name="validate-username")
] | [
"nikhilngowda18@gmail.com"
] | nikhilngowda18@gmail.com |
a132614def95032aef90db94e0854951c33fcf2f | 31b1fb0b9e610c63a4a81f6db6b211d586116f62 | /test/runtime/operators_test/sum_test.py | 1ebc77a74e5d372484060f8b03fc5153f7a6f62a | [
"Zlib",
"MIT"
] | permissive | LabBros/webdnn | aa3103425c87e742dae260a808ecd392197571ad | a91e28f11a253e55a3b582af0fb924ddd925cef0 | refs/heads/master | 2021-08-20T08:59:21.102962 | 2017-11-28T17:15:35 | 2017-11-28T17:15:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | import numpy as np
from test.util import generate_kernel_test_case, wrap_template
from webdnn.graph.axis import Axis
from webdnn.graph.graph import Graph
from webdnn.graph.operators.sum import Sum
from webdnn.graph.order import OrderNHWC, OrderNCHW, Order
from webdnn.graph.variable import Variable
OrderNHW = Order([A... | [
"y.kikura@gmail.com"
] | y.kikura@gmail.com |
6c4e9fecab06fa7db3764811ceb340f58a4f01b3 | fb99dfa9ad948543e28851b17209e737eb6c37e2 | /meiduo/apps/goods/migrations/0003_auto_20200822_1538.py | 21441bd0ff80bc6c3090dd4f158096b502c84545 | [] | no_license | lutaikang/meiduo | 98eeae4372829669fcc4a6ccdd6b91e98d2d0f7a | cac921c361c76bc40fd51a8fa012bf68f02e266a | refs/heads/master | 2022-12-26T19:00:26.596273 | 2020-10-14T00:18:28 | 2020-10-14T00:18:28 | 284,571,839 | 0 | 0 | null | 2020-08-20T11:14:27 | 2020-08-03T01:05:59 | JavaScript | UTF-8 | Python | false | false | 468 | py | # Generated by Django 3.0.8 on 2020-08-22 07:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('goods', '0002_auto_20200821_1825'),
]
operations = [
migrations.AlterField(
model_name='sku',
name='default_image',
... | [
"1554284589@qq.com"
] | 1554284589@qq.com |
01b768ce505eb7f4bb2fc092621cc197579058eb | 1fb342bb494e92a5f8757c6990a98d1b0cfd1c42 | /toyClassification/MC-Dropout-MAP-01-Adam/eval.py | cf81b7c7ef19f626a449bd9adc2f47db45c6c422 | [
"MIT"
] | permissive | abdo-eldesokey/evaluating_bdl | 111b99c2dbf9e3846949eca263fe2d83330af6ca | 93e386319573d6a1c465f479e534db334ea30eda | refs/heads/master | 2020-07-16T16:24:04.700096 | 2019-09-02T09:39:29 | 2019-09-02T09:39:29 | 205,823,556 | 0 | 0 | MIT | 2019-09-02T09:32:31 | 2019-09-02T09:32:30 | null | UTF-8 | Python | false | false | 3,575 | py | # code-checked
# server-checked
from model import ToyNet
import torch
import torch.utils.data
import torch.nn as nn
from torch.autograd import Variable
import torch.optim as optim
import torch.nn.functional as F
import numpy as np
import pickle
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
... | [
"fregu856@gmail.com"
] | fregu856@gmail.com |
1ff38dfba3794d876797fb0375becaa9cb290fbc | 327921706393c17005470544656e96fa42cdffb0 | /package/DynamoCompas/bin/compas/numerical/matrices.py | 65f089654bd04980afada7b647938feca1b9c25b | [] | no_license | garciadelcastillo/DynamoCompas | efdc5df6151dac876b9f2bbb825c0fbc5ad832a9 | c929226739209bceee951f49f82cb207fa0f3235 | refs/heads/master | 2021-01-20T01:28:12.281236 | 2018-02-16T11:56:44 | 2018-02-16T11:56:44 | 101,290,004 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,135 | py | from __future__ import print_function
from compas.geometry import dot_vectors
from compas.geometry import length_vector
from compas.geometry import cross_vectors
from numpy import abs
from numpy import array
from numpy import asarray
from numpy import float32
from numpy import tile
from numpy import ones
from scipy.... | [
"personal@garciadelcastillo.es"
] | personal@garciadelcastillo.es |
13d46102ff76652081c82b9442c20444fbacedde | d2efafce692a0e5b5b6bc6d9996c8f733f9928a6 | /day_01/built_in_functions.py | 130d4089fa1a5969e60a54c12885b8b6f320fa0d | [] | no_license | jamessonfaria/maratona_python | 32e0c480e543cfc331224a56a7961a6af75fa228 | 13c88b0e895c91fddafdb6f54a1fd1ad824b9f4a | refs/heads/master | 2023-03-08T13:40:06.371140 | 2021-02-19T04:01:19 | 2021-02-19T04:01:19 | 337,261,468 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | ### Built in Functions
print(len("xxxxxxx"))
print(bool(0))
print(int("3") + 3)
print("Hello" + str(33))
print("dsadasasda".upper())
print("BRBRBRBRBRBRBRBRBRB".replace("B", ""))
| [
"jamessonjr@gmail.com"
] | jamessonjr@gmail.com |
51293bc0e2bf53f80a7163096f53637727f9c3e1 | 008d7b53df2631a2d0634b3c1a3be7d3e8f7354b | /data_analysis/database.py | 7db7ef559c16dbf42cc84725e44be72f50286829 | [
"BSD-3-Clause"
] | permissive | Trax-/data_analysis | 00bc2549fdd4a60ff804d388c03a1afb60644793 | 2ffb772e95566d38727ae741017750cbbebad08d | refs/heads/master | 2021-01-20T01:11:10.890103 | 2017-07-04T16:10:52 | 2017-07-04T16:10:52 | 89,230,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,958 | py | from os import path
from sqlalchemy import (create_engine, Column, String, Integer, Boolean, Table, ForeignKey, DateTime)
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, relationship
database_filename = 'twitter.sqlite3'
directory = path.abspath(path.dirname(__file__)... | [
"tlo@ocsnet.com"
] | tlo@ocsnet.com |
f640d5c86f8bc347ef20387cc8e9a637e6ca719e | 528006e19b587da8e55e65dba14e9adac118688e | /Naive Bayes Classifier/Bayes_Classifier.py | c70e38532f94000250ae7cc0defba6898824f5db | [] | no_license | tonnykwon/Data-Mining | 0490f84cb0d5145012f155c6536cdd57c1dcd315 | 5067f3d587f80784b31f2eb2ea4dbbaf177ead9e | refs/heads/master | 2020-04-21T06:50:43.674303 | 2019-05-04T10:50:49 | 2019-05-04T10:50:49 | 169,376,502 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | ## read data
import sys
import csv
from collections import Counter
data = sys.stdin.readlines()
csvreader = csv.reader(data, delimiter=',')
data = []
for row in csvreader:
data.append(row)
# train test split
class_type = list(zip(*data))[-1]
train_idx = [idx for idx, label in enumerate(class_type) if label!=... | [
"tonnykwon@naver.com"
] | tonnykwon@naver.com |
29887f53b9e6b254706c83f259d4b7d80e1a123a | d7bf9017a1951bab00c025f842dac68fff0fabce | /HW3/ACGAN/models.py | 75f0bb1ec4770b702e0fb3e92945addacc733a01 | [] | no_license | rmanzanedo/NTU_DLCV | e7e54f57670a93c5a4aa7e0457db21eadaf0c999 | 287ec4ddb93fe8ed7c55e1936015ed6f6efd9b68 | refs/heads/master | 2022-11-26T11:02:46.027132 | 2020-01-18T06:26:57 | 2020-01-18T06:26:57 | 234,541,233 | 0 | 0 | null | 2022-11-22T04:19:46 | 2020-01-17T12:11:20 | Python | UTF-8 | Python | false | false | 6,891 | py | import torch
import torch.nn as nn
import torchvision
import numpy as np
# class generator(nn.Module):
# def __init__(self):
# super(generator, self).__init__()
# self.label_emb = nn.Embedding(1, 100)
# self.init_size = 64 // 4 # Initial size before upsampling
# self.l1 = nn.Seq... | [
"r.manzanedo@alumnos.upm.es"
] | r.manzanedo@alumnos.upm.es |
d49bdac0b43197f6952ced81795d782ccac9a13d | 97a447e2a319ccaf932b0220fcdc523bbdfb4499 | /qd/data.py | 8c2009707f9b3b393ef87cd12893882591eae97e | [] | no_license | tbenthompson/qd | d0999dd899173e8313836332cb5d4d8fe644387f | 70f08671ba3fd5281609d3e44195356bf0a2c25a | refs/heads/master | 2020-03-19T14:52:03.756175 | 2019-02-02T16:15:31 | 2019-02-02T16:15:31 | 124,702,158 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,841 | py | import os
import numpy as np
import cloudpickle
"""
Don't save anything!
"""
class NullData:
def initialized(self, _):
pass
def stepped(self, _):
pass
"""
Do not use. Exists for compatibility with old data.
"""
class MonolithicDataSaver:
def __init__(self, save_freq = 500, filename = 're... | [
"t.ben.thompson@gmail.com"
] | t.ben.thompson@gmail.com |
436fc219c2e1886f8a8788e7fd3d92d7b7357493 | eb90252fc88342309fc1917467aaa7b3ba9da218 | /test/test_freeze.py | 034191f57d4ecdddd9b91c6aeced468a2d4528c3 | [
"MIT"
] | permissive | DataGreed/datafreeze | 100bbdccd494134b74fe484c2e8b28a83250d184 | 8d75e0cfb2c6f6f59112c0c86abd264d7078aaa8 | refs/heads/master | 2023-01-19T05:11:59.661284 | 2020-11-19T15:26:21 | 2020-11-19T15:26:21 | 314,287,724 | 0 | 0 | MIT | 2020-11-19T15:26:22 | 2020-11-19T15:22:44 | null | UTF-8 | Python | false | false | 4,979 | py | # coding: utf8
from __future__ import unicode_literals
import os
from csv import reader
import unittest
from tempfile import mkdtemp
from shutil import rmtree
from six import PY3, text_type, binary_type
from dataset import connect
from datafreeze.app import freeze
from datafreeze.format.fcsv import value_to_str
from... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
b3127ace3de5be20b96e7bb7b961e2a5860dcc68 | 9a47456b7e609f1cbf5987134c2a987e21119062 | /initialFRM/frmapp/prevevent.py | e563ea5f277bfb9d5f7eacfdbf749fc7d914ac2f | [] | no_license | daisedandconfused/frmapp | 40dab22e8b11ad4bb6108b5a2e79f4a8b99bc526 | ea1e17f668c3436c7b1191cc770d5ad339fa1d3f | refs/heads/master | 2020-04-29T05:31:18.095844 | 2019-04-28T21:24:09 | 2019-04-28T21:24:09 | 175,886,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | import itertools
import numpy as np
def previousevent(n):
r = n-2
p = list(itertools.product([1, 2], repeat=r))
return p
# matrix = []
# while p !=[]:
# matrix.append(p[:1])
# p = p[1:]
# return matrix
# v = previousevent(4)
# y = v[1][0]
# print(v, y)
| [
"noreply@github.com"
] | daisedandconfused.noreply@github.com |
875e0a5d40dbb7a1d924349d80042bed4b1229e8 | 3ef329a37aacd7edaa61e6f1af0a8d5acba0572d | /bonustest/shop/urls.py | 056379dfbc3c04a26b752d160efcd0172e43b5cb | [] | no_license | MasterDingo/django-bonus-angular | 6c6f8e0e36838efc66e37b331462c8c0baead661 | 32d59a44374704bfd49a4f29c9d8ba5ed6497694 | refs/heads/master | 2021-01-11T15:50:08.791967 | 2017-02-22T01:28:37 | 2017-02-22T01:28:37 | 79,937,264 | 0 | 1 | null | 2017-10-24T15:17:41 | 2017-01-24T17:50:35 | Python | UTF-8 | Python | false | false | 834 | py | from django.conf.urls import url
from .views import (
CategoryListView, CategoryView, ProductsListView, ProductView,
IndexView
)
from .api import urls as api_urls
from rest_framework.urlpatterns import format_suffix_patterns
"""
urlpatterns = [
url(r'login', login_view, {"template_name": "login.html"}, ... | [
"v.derbentsev@gmail.com"
] | v.derbentsev@gmail.com |
4e4b3405861bc07f77f7a898adc75b1a3a43e93d | bd0b254b89f55781d53e51d146b4cf5f278ccff8 | /platforms/nuttx/NuttX/tools/menuconfig.py | c6a512d318f5f9ba8b2e371a88d1ac82dee7d844 | [
"BSD-3-Clause"
] | permissive | XingGX/Firmware | e4a05caeefae241ddc83a61b7fd4a43e52630e62 | f26e7801f8f76a371f05dcb86f61f0bcd8df9f30 | refs/heads/master | 2021-04-30T08:30:24.146609 | 2019-03-30T08:28:05 | 2019-03-30T08:28:05 | 121,375,065 | 1 | 0 | BSD-3-Clause | 2019-03-30T08:28:06 | 2018-02-13T11:32:40 | C++ | UTF-8 | Python | false | false | 101,613 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2019, Nordic Semiconductor ASA and Ulf Magnusson
# SPDX-License-Identifier: ISC
"""
Overview
========
A curses-based menuconfig implementation. The interface should feel familiar to
people used to mconf ('make menuconfig').
Supports the same keys as mconf, and also suppor... | [
"daniel@agar.ca"
] | daniel@agar.ca |
cf93695b96b1a6a0089146e52e457aad1e3a56ab | e8d2d04e1e03c5cbd5882964f7a908307a2e4c01 | /MITOCWHomeWork1.py | 30989f6af297cd7b8d7f3543473a5da982c87c6d | [] | no_license | APstring/Technology-Portfolio-of-Anand-Parthiban | 90c7f3b689cad9524894006bd2a0f5b6a269f6ca | 9d90cea88bb350ba4c87a7d57ffe7e2f552a4718 | refs/heads/master | 2021-06-10T01:36:01.865712 | 2017-01-14T20:15:22 | 2017-01-14T20:15:22 | 54,732,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,586 | py | print('Hello World') #Ex 1.1
print(' | |''\n''--------''\n'' | |''\n''--------''\n'' | |') #Ex 1.2, prints out tictactoe
def tictactoe():
a = '\n | | \n'
b = ' --------'
print( a,b,a,b,a) #Ex 1.3 I made a function so that it would be easier to run, prints out tictactoe
a = (3*5)/(2+3), print(a)... | [
"APstring@users.noreply.github.com"
] | APstring@users.noreply.github.com |
34b9e38e60666d4c37a8a80f5c36ccc9b83a0ba7 | c76d96457f3b5f58de75097152b133b30aee3296 | /starter/starter/settings.py | 582ba7d2c9b05c4bff53d590e17b5d69dff763c5 | [] | no_license | philolo1/python-starter | 3d8b83a5b5fe74c2831bee70459a6364bee6ea3b | cceb1160bce69548efe3ae8c58ca91b21ed251e9 | refs/heads/master | 2021-01-13T07:23:24.391851 | 2016-10-10T20:24:45 | 2016-10-10T20:24:45 | 71,341,245 | 0 | 0 | null | 2016-10-19T09:32:09 | 2016-10-19T09:32:09 | null | UTF-8 | Python | false | false | 5,404 | py | """
Django settings for the project.
Generated by 'django-admin startproject' using Django 1.8.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths in... | [
"morgante.pell@morgante.net"
] | morgante.pell@morgante.net |
106b146a73be9c5a10c9d1516d98943b6345cdc9 | 8ec766830804b782f72e489a82f92600ab2357b0 | /xgboost/accuracy.py | fb63b3bfb7a5d25b603899a8bd665c814adfc584 | [] | no_license | daytonpe/continuous-fault-diagnostic | d40f9d82ffcedee8dffa8639f26102948faa19a1 | de1ea1a6c68a2353d2d12a96ace2809d915270bd | refs/heads/master | 2022-06-01T00:23:29.940267 | 2020-04-17T04:13:07 | 2020-04-17T04:13:07 | 242,881,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | import pandas as pd
import sklearn
from sklearn import metrics
import numpy as np
from influxdb import InfluxDBClient
import datetime
import time
import arg_inputs
# connect to the TSDB
client = InfluxDBClient(host='localhost', port=8086,
username='admin', password='password')
client.switch_dat... | [
"daytonpe@Pats-MacBook-Pro.local"
] | daytonpe@Pats-MacBook-Pro.local |
a8c12c092afa894c3e4d5a4d602626f98cede1e4 | 865bd0c84d06b53a39943dd6d71857e9cfc6d385 | /645-set-mismatch/set-mismatch.py | 195dc65ad7e9c23df1db4800f971b262c7a02801 | [] | no_license | ANDYsGUITAR/leetcode | 1fd107946f4df50cadb9bd7189b9f7b7128dc9f1 | cbca35396738f1fb750f58424b00b9f10232e574 | refs/heads/master | 2020-04-01T18:24:01.072127 | 2019-04-04T08:38:44 | 2019-04-04T08:38:44 | 153,473,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | #
# The set S originally contains numbers from 1 to n. But unfortunately, due to the data error, one of the numbers in the set got duplicated to another number in the set, which results in repetition of one number and loss of another number.
#
#
#
# Given an array nums representing the data status of this set after t... | [
"andyandwei@163.com"
] | andyandwei@163.com |
ce674133fe7706ef28daa1c17e98f8e508626e9d | cafb0f090143b8645de00e64acc440bec855235a | /blog/migrations/0006_blogcategory.py | 738731313c656a4a7f3bf9b2d82d8ffb54318f88 | [] | no_license | thomasdahlberg/wag_tutorial | a7e2854650f65abd096d4cc9367e3c6aee1aebc2 | 03c31efd2c304929d188be9dafda8d457f5a0f0d | refs/heads/master | 2023-02-25T23:01:45.444431 | 2021-01-30T02:21:01 | 2021-01-30T02:21:01 | 334,007,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | # Generated by Django 3.1.5 on 2021-01-17 18:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0022_uploadedimage'),
('blog', '0005_blogtagindexpage'),
]
operations = [
migratio... | [
"thomas.dahlberg8@gmail.com"
] | thomas.dahlberg8@gmail.com |
37e3e5505aa27d63359e5dc5b20c0ef9ee7d8818 | a0d2a90c21ff3e05e0fd939698a6dfb7e54d16d9 | /GServer/utils/lora_crypto.py | 23c63c1274b822d1fb70e070bc83afb121956f5b | [
"MIT"
] | permissive | soybean217/lora-python | 4a72407607d2201a91b5e0a7dcd115d7788b7e65 | 9c4324f81bae8b20f6c353447189f724a5cf54c6 | refs/heads/master | 2022-12-13T08:24:13.267783 | 2017-12-06T08:20:40 | 2017-12-06T08:20:40 | 102,331,484 | 0 | 0 | MIT | 2022-12-07T23:56:50 | 2017-09-04T07:24:49 | Python | UTF-8 | Python | false | false | 6,466 | py | from ctypes import CDLL, c_uint8, c_uint32, create_string_buffer, byref
import os
class LoRaCrypto:
if os.name == 'nt':
sys_path = 'D:\lora_server\GServer'
Crypto = CDLL(sys_path + "\DLLs\LoRaMacCrypto.dll")
else:
Crypto = CDLL("./lora_encrypt/libloraCrypto.so")
# initial_dir ... | [
"13565644@qq.com"
] | 13565644@qq.com |
97a9f2739416e4a50695d2f42ddad60c3f00e90e | 375d97944171f1300a979a7603adfa2a0741f921 | /HW1/projectSet_2.py | e68143949a888a2d335511331b31a4dd4333ca3c | [] | no_license | yasinBursali/neural-network-lecture-projects | 741ad111658c8d3b5c9b2d185a7d4fd81c605003 | 9d8f3096ae4ad2507493aa5ea3a094e7d456dd15 | refs/heads/master | 2022-11-12T13:49:05.142575 | 2020-06-29T16:28:06 | 2020-06-29T16:28:06 | 275,821,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | import numpy as np
# Input dataset for Training
X = np.array([[0, 0, 1],
[0, 1, 1],
[1, 0, 1],
[1, 1, 1]])
# Output class labels for Training
y = np.array([[0],
[1],
[1],
[0]])
X1_test = np.array([1, 1, 0])
X2_test = np.array([1, 1, ... | [
"noreply@github.com"
] | yasinBursali.noreply@github.com |
97c2fc574e11b5a778ff83ecdac089b988d5387d | 5e06a943a9a73f122cf4b520ab6cc5f695a1abc3 | /test.py | 06408d75b26e5e78f9eac323dc851d9f04a38279 | [] | no_license | kundan8239/salescalculater | 0074bb10eb8537e4a6c435f6217cb6a4b25c5790 | 35ca12558c42c8c2c8f45af8be6015489d7e89eb | refs/heads/master | 2021-07-16T08:46:00.971869 | 2017-10-23T18:31:43 | 2017-10-23T18:31:43 | 108,022,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | from Inputs import getInput
from ItemType import getTaxStatus
from ItemTax import getItemTax
import csv
def csv_writer(data):
with open("output.csv", "w") as csv_file:
writer = csv.writer(csv_file)
header=['SaleTax','Total']
writer.writerow(header)
content=list()
#for line... | [
"singhkundan7631@gmail.com"
] | singhkundan7631@gmail.com |
ff043dffe53eb0008d006afac66a7fda19bcde0f | 9c713425498c8366c47c3a4ce1a50c791c24572f | /src/controller/python/test/test_scripts/base.py | 5afa974834dcebfe182c8b98e53286b4be6193e2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | krzysztofziobro/connectedhomeip | d17a754c88bf9a4703baf1bef222e34327042139 | f07ff95183d33af17bc833c92c64e7409c6fd2eb | refs/heads/master | 2023-07-17T22:46:22.035503 | 2021-08-28T16:08:30 | 2021-08-28T16:08:30 | 385,177,354 | 0 | 0 | Apache-2.0 | 2021-07-12T11:39:14 | 2021-07-12T08:28:33 | null | UTF-8 | Python | false | false | 10,364 | py | #
# Copyright (c) 2021 Project CHIP 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
#
# ... | [
"noreply@github.com"
] | krzysztofziobro.noreply@github.com |
3f6bdf1c025180bb27170573672938f6f4319cf0 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /examples/error_handling/handle_partial_failure.py | 193a562a1fbb34bfa2c42d7a72038a932e4d70e1 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 8,924 | py | #!/usr/bin/env python
# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
c8d6371959d4baa088bbc0db5d8d44ff22799d38 | 06b105d66dabb1a4f6a7520c1d154f18b6dccfc7 | /coding challenge 3.py | 4ae128fd5bc545d7ffb5bc46b64fdcad5f455e51 | [] | no_license | vampirepapi/PythonBasicPrograms | c2cf8873af46852c7f78195f9035fd9cac991585 | 8693c0b67d3e44031954841bc4738fae332c9536 | refs/heads/master | 2020-12-23T09:03:26.482161 | 2020-01-29T23:55:11 | 2020-01-29T23:55:11 | 237,105,773 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | w = float(input("enter weight"))
h = float(input("enter height"))
'''bmi = (w/h**2)
print(bmi)'''
'''def bmi(w,h):
print(w/h**2)
bmi(w,h)'''
'''def bmi(w,h):
return w/(pow(h,2))
result = bmi(w, h)
print(result)'''
def bmi(w,h):
return w/h**2
result = bmi(w, h)
print(r... | [
"noreply@github.com"
] | vampirepapi.noreply@github.com |
90c38a6e71a1e5eed24bfcd11bdacc8b6c43f208 | fbd2d335c9ee3bb17e13cbcb38f11a5d1e06b517 | /gbpservice/neutron/extensions/apic_segmentation_label.py | 8ede42c8a2683aa35cf6feeb72e9ec55cf7a1372 | [
"Apache-2.0"
] | permissive | baodongli/group-based-policy | 50b13937686b3fac38f16a7a10fd34853eb4b1e6 | f3b892ecdc1051b204376e18679f73bf457ce7dc | refs/heads/master | 2020-05-21T05:10:36.616122 | 2017-03-10T15:51:59 | 2017-03-10T15:51:59 | 84,575,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"sumitnaiksatam@gmail.com"
] | sumitnaiksatam@gmail.com |
a8300b195a4efcc78bc6ec54e8b44b3a74b8d9a9 | 8af9f1a36301e264817edc315634b2422c351331 | /aoc/2021/day8/day8.py | aa4fed65b714a1198db2267c8da9b005231c6de8 | [] | no_license | mo-morgan/CPSolutions | af04a7e252198a249977cd6698a3f588331c9e6f | 2f1d84610370abb79eacbcf3c231f5dff1c060f4 | refs/heads/master | 2022-01-25T18:54:36.653881 | 2021-12-31T02:21:51 | 2021-12-31T02:21:51 | 157,975,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | if __name__ == "__main__":
c = 0
while True:
try:
after = input().split(" | ")[1]
nums = after.split()
valid = [2, 3, 4, 7]
for i in range(len(nums)):
k = len(nums[i])
if k in valid:
c += 1
except... | [
"momorgan@student.ubc.ca"
] | momorgan@student.ubc.ca |
6c48e77b59d7cfa27fb25143be0313c51be85a23 | 90cbf7093998b1cdceb270e3828a076a468d2d63 | /main.py | 9a1f4409a289a1934744e96b5c9bb32534c50acb | [] | no_license | llwasampijja/andela35-databases | e2852445f7fef085d78d4d72f11f3ffcdb218bcc | 89a1ae35f479ba90066d2645946779755304dadd | refs/heads/feature | 2020-04-12T01:15:28.038141 | 2018-12-18T13:36:44 | 2018-12-18T13:36:44 | 162,226,635 | 0 | 0 | null | 2018-12-18T13:46:23 | 2018-12-18T03:48:53 | Python | UTF-8 | Python | false | false | 852 | py |
from simcard_controller import SimCardController
from human_controller import HumanController
from database_migrations import DatabaseMigration
databaseMigration = DatabaseMigration()
def run_humans():
humanController = HumanController()
humanController.add_humans()
humanController.get_human_by_id()
... | [
"llwasampijja@gmail.com"
] | llwasampijja@gmail.com |
fdc14ec3b246a7885740217270aa1a0f12e1c377 | a9143ce455988523a4cbae465755c12577ea4af7 | /deals/serializers.py | cb8580f8d0ff74c51abbbc6693c329d522e50924 | [] | no_license | sudhirmishra/treebodeals | 06eeaa5bc63294132df50b581b0a4a8032573f70 | 1a6950250ecf5a2a8575b69576536f6dd0bac84b | refs/heads/master | 2021-01-19T11:52:21.940420 | 2016-10-02T06:40:01 | 2016-10-02T06:40:01 | 69,770,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from rest_framework import serializers
from deals import models
class DealSerializer(serializers.ModelSerializer):
class Meta:
model = models.Deal
fields = ('id', 'name', 'image', 'rating', 'link', 'actual_price','discount','location')
| [
"sudhirxps@gmail.com"
] | sudhirxps@gmail.com |
0a38096e3f9c40e21e1465a6e917c1e8e01d841f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/139/usersdata/189/61633/submittedfiles/diagonaldominante.py | b939318ccc98950ec57977b3f08ee5c530bf1988 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py |
import numpy as np
def soma(a):
b=[]
for i in range (0,a.shape[0],1):
soma=0
for l in range(0,a.shape[1],1):
if i!=l:
soma=soma+a[i,l]
b.append(soma)
return (b)
def diagonal (a,b):
for i in range (0,a.shape[0],1):
for l in range(0,a.... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d88217fda390ffb9747b444e050ab4566c0fe5e0 | ae3911ef8fb5ec0d1a7ed4a9dfc400957e6f7e98 | /nli/models/__init__.py | e620d6df2929ab4c93504e02bacd54e975211b0c | [
"MIT"
] | permissive | CeliaYao329/latent-treelstm | 8495cf08cd7b91ffd63c5f4f582b0740f39d9562 | 8850aadc67fea1ff5e2545f628cd26359df1a92c | refs/heads/master | 2020-08-22T02:15:01.557943 | 2019-10-26T15:32:54 | 2019-10-26T15:32:54 | 216,297,652 | 0 | 0 | MIT | 2019-10-20T02:38:26 | 2019-10-20T02:38:26 | null | UTF-8 | Python | false | false | 273 | 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.
from nli.models.ReinforceModel import ReinforceModel
from nli.models.PpoModel import PpoModel
| [
"ajoulin@fb.com"
] | ajoulin@fb.com |
da1d35c100ab64c6c74ffbc7ea9b8d5e4a4c798a | 358f6b9ac21f2c0f64acc132197a57310bbcede8 | /flack/tests/selenium/test_channel_view.py | 499afbdfb9201dc161d837ea0b064f876eaabef5 | [] | no_license | thenakedthunder/flack | b43bda331772dd79f50d9016befa792a234376ff | a2285c75d2f9ca3568380b3868da0b35b10188cd | refs/heads/master | 2021-06-23T23:12:06.209614 | 2020-03-11T17:31:48 | 2020-03-11T17:31:48 | 187,687,357 | 0 | 0 | null | 2021-01-05T20:58:35 | 2019-05-20T17:44:36 | JavaScript | UTF-8 | Python | false | false | 1,045 | py | #FILE :selenium/test_channel_view.py
import unittest
import time
from test_helper import TestHelper
class Test_channel_view(unittest.TestCase):
def __init__(self, methodName = 'runTest'):
self.test_helper = TestHelper(self)
return super().__init__(methodName)
@classmethod
def setUpClas... | [
"balazs.radvanyi88@gmail.com"
] | balazs.radvanyi88@gmail.com |
41e5f935d6c9d79bc316b189a822aedc29cb0299 | 9bf3a3d2b9a4b64af4c7768242661664d1ea214f | /src/util/DataAccess.py | bc02fa4faaa6bbf7cc96e870c2969e678a71b36b | [] | no_license | foreversand/quantstrategy | 9c13cb3b4f7a93e0ad2ff06cefd005882dd67199 | 50143fe3d19868ae05e0bbb50d08188b0d2f8f39 | refs/heads/master | 2021-01-10T11:46:17.909556 | 2015-11-12T09:12:08 | 2015-11-12T09:12:08 | 44,369,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,606 | py | '''
Created on Nov 11, 2015
@author: sandfan
'''
import numpy as np
import pandas as pa
import os
import re
import csv
import pickle as pkl
import time
import datetime as dt
import dircache
import tempfile
import copy
class Exchange (object):
SHSE = 1
SZSE = 2
FUTURE = 3
class DataItem (object):
OPE... | [
"sandfan@gmail.com"
] | sandfan@gmail.com |
475526c501952e86158ad5a7f12ac7b9992e3633 | 71aac7fa568091c55b3b97b1ec8c00f5145781ef | /backend/insurances/tests/test_domain_model.py | 4ad384de588a04e3385a93acac9407d95ade5295 | [
"MIT"
] | permissive | ptrojanowski/python-architecture-examples | 510f2ac5f533e6300b442336b12141cb9479a915 | 826f6fef7ff5eb683dca4509addcf7c3c74db6b8 | refs/heads/master | 2022-04-13T07:37:35.113357 | 2020-03-31T15:48:27 | 2020-03-31T15:48:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,273 | py | import pytest
from insurances.domain_model import InsuranceStatus, MAX_AVAILABLE_PAUSES, PauseLimitExceeded, \
WrongStateForAction, CarLocationNotAllowed, PauseAlreadyFinished
def test_hold_insurance(insurance):
insurance.hold()
assert insurance.status is InsuranceStatus.ON_HOLD
def test_unable_to_hold... | [
"mikolevy1@gmail.com"
] | mikolevy1@gmail.com |
ec2395de54f8f6eff180dd1b5393f67b9a97fe37 | 59fbeea017110472a788218db3c6459e9130c7fe | /[307]Range Sum Query - Mutable.py | 542727ace3973eed2f81b283f59eda981a3f5f47 | [] | no_license | niufenjujuexianhua/Leetcode | 82b55d9382bc9f63f4d9da9431194e20a4d299f1 | 542c99e038d21429853515f62af51a77deaa4d9c | refs/heads/master | 2022-04-27T16:55:00.035969 | 2022-03-10T01:10:04 | 2022-03-10T01:10:04 | 79,742,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,387 | py | # Given an array nums and two types of queries where you should update the value
# of an index in the array, and retrieve the sum of a range in the array.
#
# Implement the NumArray class:
#
#
# NumArray(int[] nums) initializes the object with the integer array nums.
# void update(int index, int val) updates... | [
"noreply@github.com"
] | niufenjujuexianhua.noreply@github.com |
ba774a6e7d2faf7bfaf1354713517da4179bb404 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scatterpolargl/unselected/marker/_size.py | e99c33326e072d1205a0a668171001f0bb3029fb | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 472 | py | import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self,
plotly_name='size',
parent_name='scatterpolargl.unselected.marker',
**kwargs
):
super(SizeValidator, self).__init__(
plotly_name=plotl... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
d46746ab1195244a9e028992e5fc1bb7d369725d | 1ba085b962452dd6c305803ad709f2b00aa305d1 | /education/boards/tests/test_views.py | 3689a3485f8d385e1eb2e22a8045c0a932170134 | [] | no_license | tongri/lab_test | 2b9aea40ad72a0316238174b0c89e78779c47bf7 | e73ec5b60dfb8bde06302fce07dd15780e6a766c | refs/heads/master | 2023-04-15T18:56:45.950878 | 2021-04-19T10:41:44 | 2021-04-19T10:41:44 | 355,573,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,221 | py | from django.test import TestCase
from django.urls import reverse, resolve
from boards import views
from boards.models import Board, Topic, Post
from django.contrib.auth.models import User
from ..forms import NewTopicForm
# Create your tests here.
class HomeTest(TestCase):
def test_home_view_status_code(self):
... | [
"alexander.ksenzov@gmail.com"
] | alexander.ksenzov@gmail.com |
b859f547cfcafe75851f7afcceebf9844e632a84 | a2a1be37f50c0a23ffca0f10fe5559af543fa3e5 | /scripts/calculations.py | 9328337e9dbe15423b2985f0970d83f9a3cdaeb8 | [] | no_license | quentinprieels/LEPL1501 | f9e9419f9d0a2b657a85c6b82dd0578bd431e4a1 | 9c530befc5e69e3ef5427414100a39f3562b75fe | refs/heads/master | 2023-01-29T13:30:16.088570 | 2020-12-13T09:46:29 | 2020-12-13T09:46:29 | 312,902,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,297 | py | import numpy as np
from scripts.variables import *
from math import sin, cos, tan, atan, pi
"""COORDINATE SYSTEM
The following code takes place in a 3-dimensional coordinate system. However, some dimensions will be regularly ignored
(especially the Y component). A tuple with 2 coordinates is thus composed of the x-y c... | [
"45366083+quentinprieels@users.noreply.github.com"
] | 45366083+quentinprieels@users.noreply.github.com |
17cd7afe71eef27cae287ac6a7950dadb0958958 | 86dc22e140785fdb7f4b9b7f6eac0dcc719bb42e | /plonetheme/jquerymobile/testing.py | 9a3bfc98c43c4017e5e64ca655399323cac06f6a | [] | no_license | toutpt/plonetheme.jquerymobile | 545121aa42ca7ac06852bb7402216c730fa91dc5 | d09a57ced100327934c2637676264f0ec43356d2 | refs/heads/master | 2021-01-22T06:48:35.002427 | 2013-11-19T17:58:07 | 2013-11-19T17:58:07 | 1,245,664 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | from plone.app.testing import PloneSandboxLayer
from plone.app.testing import PLONE_FIXTURE
from plone.app.testing import IntegrationTesting, FunctionalTesting
from plone.app.robotframework.testing import AUTOLOGIN_LIBRARY_FIXTURE
from plone.testing import z2
class Layer(PloneSandboxLayer):
defaultBases = (PLON... | [
"toutpt@gmail.com"
] | toutpt@gmail.com |
af3322783318e9078310bd6a24f050bbb8ffa0b1 | 2ac0fdf2b8a8f4b43f745f8585b375c3a71b9977 | /checkout/migrations/0007_remove_order_postcode.py | 8bcf16bab7192aa246270f8632a9de02544f2b95 | [] | no_license | philip-hughes/fourth-milestone-project | c13909dbe6724a26152e11adf1f913014ca7cab3 | e029a7255268251b85bc6ae4241196b11e28e3fc | refs/heads/master | 2023-08-02T16:20:17.174776 | 2020-10-08T11:41:51 | 2020-10-08T11:41:51 | 280,018,228 | 0 | 0 | null | 2021-09-22T19:27:57 | 2020-07-16T01:04:57 | Python | UTF-8 | Python | false | false | 328 | py | # Generated by Django 3.1 on 2020-09-15 01:32
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('checkout', '0006_auto_20200907_1423'),
]
operations = [
migrations.RemoveField(
model_name='order',
name='postcode',
)... | [
"phugh80@hotmail.com"
] | phugh80@hotmail.com |
dfb3b32c69b22a73cd4d769542368aab9f78e516 | 6484f860e13c8083f80e9b7896ce7c1c533a3982 | /gen_inventory.py | d84ddc3632f8b850e047b082cbd294ff434c2cfa | [] | no_license | asmtal/cd-iac | 4e839922dc8578dc81f3e71ed056c2863ca083e7 | d89856113c0476916305a4996d1bf373be6b91f1 | refs/heads/master | 2023-03-17T04:48:04.749059 | 2015-09-11T22:24:35 | 2015-09-11T22:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import sys
def main():
with open('ansible/inventory', 'w') as inventory:
for line in sys.stdin:
splitted_line = line.split(': ')
key = splitted_line[0]
values = splitted_line[1]
data = '[%s]\n%s\n'%(key, values.replace(',', '\n'))
inventory.write(... | [
"mikael.gibert@numergy.com"
] | mikael.gibert@numergy.com |
8138643e307317670ef9aeb852bd57bfebb122ff | 7fee528e7d91acd06dcb0949c33669a564b59ae3 | /catkin_ws/build/ros_python/function_ws/srv_sub_pub/catkin_generated/pkg.installspace.context.pc.py | b019d28797956f27003859e602b8442b5974e88e | [
"MIT"
] | permissive | min-chuir-Park/ROS_Tutorials | ef5122e1a94efbe4634c144152963d17709cac67 | 4c19e7673ec7098019c747833c45f0d32b85dab4 | refs/heads/master | 2020-05-20T09:33:23.811622 | 2019-07-07T04:26:51 | 2019-07-07T04:26:51 | 185,502,100 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/nvidia/ROS_Tutorials/catkin_ws/install/include".split(';') if "/home/nvidia/ROS_Tutorials/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;rospy;std_msgs;message_runtime"... | [
"dhrmach45679@naver.com"
] | dhrmach45679@naver.com |
241659b021a634ec979c352169c3c7ae6f91610c | f288f3e0f66da2bc9d7216f2c605a2895f32a9ee | /online_tetris/migrations/0002_auto_20171201_1853.py | 01a6ab9d9d19e21278d8fe4c843d50fe7d97e8e1 | [
"Apache-2.0"
] | permissive | JonatanRoig/django-online-tetris | 1a80eb60ccdfafdf21a67927ab4ecc6d7f0b32db | ad6f4045ea50c1b49c11aaca10460e76a1720679 | refs/heads/master | 2018-07-14T12:33:24.588948 | 2018-06-01T13:18:02 | 2018-06-01T13:18:02 | 115,737,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-12-01 18:53
from __future__ import unicode_literals
from django.db import migrations
import django_extensions.db.fields
class Migration(migrations.Migration):
dependencies = [
('online_tetris', '0001_initial'),
]
operations = [
... | [
"jona.roig@gmail.com"
] | jona.roig@gmail.com |
6710267d658eacafcab3064266de6c55bc18d338 | 4b01a53d6b43d97f6fc15c94985baac3933109c7 | /cam_stream/camproject/manage.py | 8dd7f7b4775cc5852e6f353e4ae7ddcb5b3df921 | [] | no_license | are1224/drow_project | 001a53c55f2d49982d90964df8281cae5917e13b | b79c6a14c9165486f09dfe55168ed4917d1db626 | refs/heads/master | 2022-12-14T04:25:59.072928 | 2020-09-15T17:08:07 | 2020-09-15T17:08:07 | 295,796,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | 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', 'camproject.settings')
try:
from django.core.management import execute_from_command_line
except I... | [
"passtel62@gmail.com"
] | passtel62@gmail.com |
ac8ae0bf0b3ac6e860e0f89ed17e2c4b40a9eca3 | 5e02039d9ec8d8d878383ed478360d9c35f57a11 | /machinelearninginaction-master/Ch02/notebook/knn.py | 9b59b0477cc488f01781414eed763543d27e6cb1 | [] | no_license | yoseham/notebook | 97f01b92591107b8e623e4009657fad79b777ab4 | 4c7360aeaed54cfd63af475455c60dc4e18840f1 | refs/heads/master | 2022-03-01T22:40:43.058046 | 2019-09-19T01:51:31 | 2019-09-19T01:51:31 | 209,438,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | import numpy as np
import operator
def createDataset():
features = np.random.randint(0,10,(4,2))
labels = ['A','A','B','B']
return features,labels
def classify0(inx,dataset,labels,k):
datasetSize = dataset.shape[0]
diffMat = np.tile(inx,(datasetSize,1))-dataset
sqDiffMat = diffMat**2
sqDis... | [
"1416708654@qq.com"
] | 1416708654@qq.com |
3e765d97ff441c4aa4c853ebe0d92889eba3289e | 52be02c1ddf1610356d4818a5fd06e8d9ee98a73 | /algorithms/a2c/utils.py | ad08e8afd773c2aec8aace55e20d74c1f7992e50 | [] | no_license | DengYuelin/multiple_assembly_old | f32e34a2e6633c99639489fb02b2e28edb1db180 | 696c55de23bb217b4471324bf3c3246a1bfcd5d8 | refs/heads/master | 2020-12-22T07:12:06.749844 | 2020-02-03T18:27:39 | 2020-02-03T18:27:39 | 236,664,915 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,342 | py | import os
import numpy as np
import tensorflow as tf
from collections import deque
def sample(logits):
noise = tf.random_uniform(tf.shape(logits))
return tf.argmax(logits - tf.log(-tf.log(noise)), 1)
def cat_entropy(logits):
a0 = logits - tf.reduce_max(logits, 1, keepdims=True)
ea0 = tf.exp(a0)
z0... | [
"2539722953@qq.com"
] | 2539722953@qq.com |
d01432fe7d7d0bb7a25b6a0bdcfdfecac11cb16e | 12f7c22513e5edf7654fd689457a2530053d7a62 | /env/bin/pip3.5 | 8a5d1c57010b3a317f425fd3078dc7d856f570c0 | [] | no_license | sts-sadr/machine_learning | b9ed61a6c67e5c25f0f8ff26a6262f0b0e46b845 | b89f5a85de8233230def2315b6304fd42b678b5d | refs/heads/master | 2021-01-07T08:23:43.532310 | 2019-03-18T02:24:24 | 2019-03-18T02:24:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | 5 | #!/home/priyaroy/machine_learning/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"roy.priyashree@gmail.com"
] | roy.priyashree@gmail.com |
d89e780fbbba8bb5e258c75db43588de7c3a2856 | 9a9e739dcc559476ba796510182374ad460f2f8b | /PA1/PA1 2013/PA1/diamond printer.py | bafd1a7ac6da4700b8981078d1e22c9781475ae9 | [] | no_license | Divisekara/Python-Codes-First-sem | 542e8c0d4a62b0f66c598ff68a5c1c37c20e484d | e4ca28f07ecf96181af3c528d74377ab02d83353 | refs/heads/master | 2022-11-28T01:12:51.283260 | 2020-08-01T08:55:53 | 2020-08-01T08:55:53 | 284,220,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | letter=raw_input("Enter lowercase letter:")
i=ord(letter)-96
alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
for n in range(1,i+1):
for x in range(i-n):
print "",
if n==1:
print alphabet[n-1]
continue
print "%s%s"%(alphabet[:n],alphabet[n-2::-1])
for n in range(1,i):
for x in range(n)... | [
"9asitha7@gmail.com"
] | 9asitha7@gmail.com |
20f70af8e5b6e0808ea692d2dbe330944499941a | f331bebb696790a767a8302453ee00b644025f2c | /App/setup.py | a3a35327f31b11cbbe6ad13951a74735b948d152 | [] | no_license | ErickSancho/Proyecto_Plataformas | b56655e4bb787fd19368a4af813bde0df2f6360e | a48adad41e5be2a316b59bdd96fef5026c539949 | refs/heads/master | 2023-01-31T16:07:53.089313 | 2020-12-11T19:17:25 | 2020-12-11T19:17:25 | 307,012,505 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | import sys
def setup():
for line in sys.stdin:
write_file(line)
def write_file(path):
path = path[:-1]
with open("./Aplicacion_financiera.desktop", "w") as file:
file.write("[Desktop Entry]\n")
file.writelines("Version=1.0\n")
file.writelines("Name=Aplicacion Financiera\n... | [
"alonso.sancho99@gmail.com"
] | alonso.sancho99@gmail.com |
648fa15399a4eeb4e666ff3242a0a14daea4be75 | 2a1d87d1cd963ffe98a925d80cb8f4a3f4b47729 | /profileapp/decorators.py | 6c5e7aa23de4fdda005324f8d2b1530eecc5ed2d | [] | no_license | seunghyeon-shin/pragmatic | f53df68aff452baf1cdffd2e11826cb8cff02082 | a556de4dc8e4af71fe8828d0332bbf54a4fa7e89 | refs/heads/main | 2023-07-08T02:27:20.466759 | 2021-08-08T05:08:24 | 2021-08-08T05:08:24 | 393,553,209 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | from django.http import HttpResponseForbidden
from .models import Profile
def profile_ownership_required(func):
def decorated(request, *args, **kwargs):
profile = Profile.objects.get(pk=kwargs['pk'])
if not profile.user == request.user:
return HttpResponseForbidden()
return fu... | [
"seunghyeon.shin@vntgcorp.com"
] | seunghyeon.shin@vntgcorp.com |
0e245fe8458c419cb06d2702c8ea72766051afab | 23c0de84ef45a3d2c851029349f04413b4fa6715 | /mysite/myapp/api.py | 2926982808931320604b65627da0d44eb7acf931 | [] | no_license | Arnoaili/vue-django | 06ad800f0211111df4f835f02c46b19730630af2 | 8e6c44249e85c4f82883aef0900a78eecaa91148 | refs/heads/master | 2021-01-20T22:55:08.461682 | 2017-08-30T03:34:09 | 2017-08-30T03:34:09 | 101,828,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,824 | py | # -*- coding: utf-8 -*-
import os
import sys
import json
import MySQLdb
from django.http import JsonResponse, StreamingHttpResponse, HttpResponse
from django.shortcuts import redirect, render
from django.contrib.auth import authenticate, login, logout, models #登入和登出
from django.conf import settings
def operator_db(r... | [
"969814683@qq.com"
] | 969814683@qq.com |
42bc82842d453fbfc42f8357a14f155068060efd | 330fecf1a29109210739368a2b5a34a18379078a | /codespacedirstructure/T4. Asynchronous programming/Asyncio/async_python_precondition/asyncio_await_example.py | 76f9a9b3f303cbd0d8639b20b289da8bf17b86a2 | [] | no_license | apavlyk/Advanced_Python | e1ab84887b3a83636b84641d492f8b9ec6b4c748 | 05b7694629ee3ad5f97fadb7a1236cbd08c16a4a | refs/heads/master | 2020-09-13T13:17:36.680696 | 2019-11-20T21:35:39 | 2019-11-20T21:35:39 | 222,794,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | """
Basically what is happening here is an async method,
when executed, returns a coroutine which can then be awaited.
"""
import asyncio
import aiohttp
import time
urls = ['http://www.google.com', 'http://devdocs.io', 'http://www.python.org']
async def call_url(url):
print('Starting {}'.format(ur... | [
"noreply@github.com"
] | apavlyk.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.