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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
210cf9d82fb4500f9ddb8439e1bc9fc09aa48f44 | 71ef86803b988401f348a74ff28a8af0451725c5 | /cgi-bin/getip.py | f5eb8dae83a094ca297e9d602fb116679ab9f3a0 | [] | no_license | GunioRobot/utoledo-freespeechboard | 3f1582284fde6bc5b783f142046a69665627a5bd | aa7382357c07a56bac1e62294611f0f02145005c | refs/heads/master | 2020-05-18T10:40:30.366767 | 2010-11-20T18:07:42 | 2010-11-20T18:07:42 | 2,617,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import socket
import fcntl
import struct
# Taken from interwebz
# Returns IPv4 Address
def get_ip_address(ifname):
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
return socket.inet_ntoa(fcntl.ioctl(s.fileno(), 0x8915,struct.pack('256s', ifname[:15]))[20:24])
| [
"james.valleroy@gmail.com"
] | james.valleroy@gmail.com |
8513012fbdbf8d8b052ea5fdb992e028c5dec60c | d7016f69993570a1c55974582cda899ff70907ec | /sdk/digitaltwins/azure-mgmt-digitaltwins/azure/mgmt/digitaltwins/v2020_03_01_preview/_azure_digital_twins_management_client.py | 7be0cc594bb1102a3a5a1b3abda1105fdbb3df76 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 4,798 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
b2a188f7f610cf761151ec7b3382ab71ee475b77 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_5/byrtre001/question1.py | 6de3673699da383ae564bde3010d5be128888984 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,204 | py | """program to simulate a simple BBS with one stored message and 2 fixed file
Trevor Byaruhanga
15 april 2014"""
# stored message.
a=('Welcome to UCT BBS'+'\n'+
'MENU'+'\n'+
'(E)nter a message'+'\n'+
'(V)iew message'+'\n'+
'(L)ist files'+'\n'+
'(D)isplay file'+'\n'+
'e(X)it')
print(a)
# input question pr... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
f4fcb51f1d823e862ac5ed63374cf870304ed384 | 9b9800b81c905acdfbb3378af19ae11fab6ad5e1 | /Problems and Solutions/sudoku-solver.py | c067c7a9a83072305dedd638b71fc92304fd27fd | [] | no_license | sujink1999/DSA | 5aae165fc1337f258a99a4552a2f7ab3caf85a92 | 64476797bf9499e78bc33e9eda05fa1cb14fbe85 | refs/heads/master | 2023-08-11T08:55:16.352064 | 2021-09-11T18:31:39 | 2021-09-11T18:31:39 | 386,406,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | # Write a program to solve a Sudoku puzzle by filling the empty cells.
# A sudoku solution must satisfy all of the following rules:
# Each of the digits 1-9 must occur exactly once in each row.
# Each of the digits 1-9 must occur exactly once in each column.
# Each of the digits 1-9 must occur exactly once in each of t... | [
"noreply@github.com"
] | sujink1999.noreply@github.com |
6bd8c7b583cfe08f5ad4f56125fc3bbe06060bd7 | ee88ceda18bbe9c1af188bf6aa988713f7ab9e8f | /TIC TAC TOE.py | d20527c468493bda76196f343ba29c053bdbd222 | [] | no_license | somesh199/TIC-TAC-TOE | d57ba40db2f1060759dfa9083f071738ce21964f | 23a16f2032a5f91ef3b7c6c3c02f12b67289d020 | refs/heads/master | 2021-03-07T09:16:26.556723 | 2020-03-10T09:20:38 | 2020-03-10T09:20:38 | 246,256,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,800 | py | def display_board(board):
print(' | |')
print(' ' + board[7] + ' | ' + board[8] + ' | ' + board[9])
print(' | |')
print('-----------')
print(' | |')
print(' ' + board[4] + ' | ' + board[5] + ' | ' + board[6])
print(' | |')
print('-----------')
print(' | |... | [
"noreply@github.com"
] | somesh199.noreply@github.com |
228fe9711a634835b106083edcaf290336861b71 | eea1cb923a062a792f8263c38d209df918201905 | /app/libs/error.py | 1485d776eb8ee3cc24d2238ed59474953658aab7 | [] | no_license | xjhello/yushu-api | 220e2ec5676b71b170da773745e88709ecfa7437 | e70bd14e6f1242edb0b33be0a87a23e4a96a3eee | refs/heads/master | 2020-05-29T23:35:38.187462 | 2019-05-30T15:42:00 | 2019-05-30T15:42:00 | 189,440,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | from flask import request, json
from werkzeug.exceptions import HTTPException
#基类错误对象
class APIException(HTTPException): #重写HTTPException的get_headers和get_body方法
code = 500
msg = 'sorry, we made a mistake (* ̄︶ ̄)!'
error_code = 999
def __init__(self, msg=None, code=None, error_code=None,
... | [
"xu@qq.com"
] | xu@qq.com |
db1ad97f218bbfe8114e47d1210c1a9a1bfafd4d | c099611e42319053888a747ea78468224e45a725 | /Polar-slepian/V_20/polarchannelsim_FERvsR_rateless_Det_Iter_delta_300_T8.py | 646a54ffe87882062f4e7a8a464441bd074fcbe9 | [] | no_license | sbsoumya/PolarProject-Code_Res | 118f54593716520c71cdc0e479236ffdc1a94f89 | 12a3b6fb24cf8160a519c74b064fd845066cbe0b | refs/heads/master | 2021-06-27T21:04:41.057937 | 2019-03-22T20:56:44 | 2019-03-22T20:56:44 | 129,615,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | #-------------------------------------------------------------------------------
# Name: polarchannelsim_FERvsR_rateless_det_Iterretro.py
# Purpose: FER VS R simulation for given msg_length and varying channel
#
# Author: soumya
#
# Created: 19/08/2017
#----------------------------------------
import... | [
"soumya.s.banerjee17@gmail.com"
] | soumya.s.banerjee17@gmail.com |
9547f0aadba0c6e93c3f77e1a2cdf25b24b4306c | 0de424df59d6f657f5a4249100ee69a76271b0e5 | /21 - Geolocation/node_modules/uws/build/config.gypi | d6c4773858ce9d5dabbd68f06463e8fa4e358598 | [
"Zlib"
] | permissive | tiffzhong/j30 | 84c6f1de643b7348ba092c8af684ea4ac42460a1 | 3bf1fce4be7ee52f24ea52ba71bdacdde6cb0397 | refs/heads/master | 2022-12-15T22:26:13.094354 | 2019-05-28T08:10:52 | 2019-05-28T08:10:52 | 188,059,990 | 0 | 0 | null | 2022-12-06T21:28:52 | 2019-05-22T14:53:57 | HTML | UTF-8 | Python | false | false | 5,360 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"tiffzhong@gmail.com"
] | tiffzhong@gmail.com |
b447822533131271eae7cfc6a1a48e95e4cf97e0 | 2ae6ecd31fe2b37f1ec0656ce3be42c1e0d37d7c | /UI/UI_selectall.py | 78edf82899274767a3b8686d4e0cdd7934fbb594 | [] | no_license | RuhiA/cce-data-analytics | 442c10fd54da53f441923be428d01561b21000e7 | b9bf8ca90b61ec00cd9363c5c4953962480a2648 | refs/heads/master | 2020-05-15T15:59:20.210431 | 2019-05-18T09:37:46 | 2019-05-18T09:37:46 | 182,381,453 | 1 | 8 | null | 2019-05-18T09:37:47 | 2019-04-20T08:35:20 | Jupyter Notebook | UTF-8 | Python | false | false | 10,345 | py | import PySimpleGUI as sg
import sys
import pandas as pd
import matplotlib
matplotlib.use("TKAgg")
from matplotlib import pyplot as plt
from tabulate import tabulate
Title = "sri venkateshwara Book Store"
class MyGUI():
def SINGLE_LAYOUT(self,cleansed_data_path=None,smoothened_data_path=None):
layout=[[sg.... | [
"noreply@github.com"
] | RuhiA.noreply@github.com |
3569bae34c6ebb2d314ee29375d5d6602fba78b4 | 1701ce0ba5e66241e4d96342fb79dad140e555dc | /server.py | 6adfbc3de60824276680f0cb9ac2cf6d90a1cbe1 | [] | no_license | mgori-kenya/intro-to-git | b4d69c69cb8303507711f25797a61d6eabf24576 | 1d4d9023e09229d0bf23f57178e69655710a0c98 | refs/heads/master | 2021-02-23T19:25:56.823474 | 2020-03-06T12:03:45 | 2020-03-06T12:03:45 | 245,408,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | print("Github tech is awesome")
| [
"mathew.gori@gmail.com"
] | mathew.gori@gmail.com |
cbc1a1a06bf7ee83de0cbc07b4f9b4f47f119827 | 9f4b3edaf1095ed58f5ff2d38d79d27b7e230e92 | /doc/source/python_as_glue.py | 81aaf1b30b0f672c46f77cb95265a1e0cfc8bcee | [
"BSD-3-Clause-LBNL"
] | permissive | zhishang72/TECA | dbd954ec48f5d9ad0643d26f5fbb6daf8dfd9842 | b8bed845e868133e4fbe01f4da40edd4c34cd775 | refs/heads/master | 2020-04-21T04:54:35.853007 | 2019-01-26T18:13:18 | 2019-01-26T18:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,695 | py | # initialize MPI
from mpi4py import MPI
# bring in TECA
from teca_py_io import *
from teca_py_alg import *
# start the pipeline with the NetCDF CF-2.0 reader
cfr = teca_cf_reader.New()
cfr.set_files_regex('cam5_1_amip_run2\.cam2\.h2\.*')
cfr.set_x_axis_variable('lon')
cfr.set_y_axis_variable('lat')
cfr.set_t_axis_vari... | [
"bloring@lbl.gov"
] | bloring@lbl.gov |
e9f766035ed6623bb2962e227019c59cd5fc5467 | 9f2b17f6950a0901dbcfb9a81c342eb0e164b1ec | /model_library/model_weekly_0325.py | 3bfd73c2784a31a0db38a9c85ed685a8a0c83cc6 | [] | no_license | kevingao1136/9zdata_code | 7b4f9d95e5b46fc658c3bf84b70606085ba6ab4d | c10a56cba0ab2077a0f550365c82c9adcdc49c1f | refs/heads/main | 2023-04-29T04:53:20.222552 | 2021-05-20T08:17:12 | 2021-05-20T08:17:12 | 335,884,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,017 | py | import os
import functools
import contextlib
from multiprocessing import Pool
import pandas as pd
import numpy as np
from catboost import CatBoostRegressor, Pool as catpool
from sklearn.preprocessing import LabelEncoder
import matplotlib.pyplot as plt
import traceback
import warnings
warnings.simplefilter("ignore")
de... | [
"kevingao1136@gmail.com"
] | kevingao1136@gmail.com |
2d826c00816cd8cacbb0915612b221c18b9e1fea | 668a68d3048cb2bda913cbcc896461fa7dacc875 | /lab/f5-azure-vpn-ssg/09b-create-azure-https-app.py | 2c723212a3237580780215502199f0f1a4ac4a52 | [
"Apache-2.0"
] | permissive | f5devcentral/f5-big-iq-lab | 0923126ad216417718945391532dd95c993ae93b | 5cb33337e9389b4513a4f98c3b09e4ce17e6016b | refs/heads/main | 2022-09-27T02:21:28.876841 | 2022-09-20T21:39:51 | 2022-09-20T21:39:51 | 199,099,518 | 17 | 47 | Apache-2.0 | 2022-09-20T21:40:59 | 2019-07-27T01:16:14 | Shell | UTF-8 | Python | false | false | 6,463 | py | #! /usr/bin/env python
import time
import requests
import pprint
import yaml
with open('config.yml', 'r') as f:
doc = yaml.load(f)
PREFIX = doc["PREFIX"]
NODE_ADDRESS = doc["NODE_ADDRESS"]
APP_NAME = PREFIX + '-app-azure'
SSG_NAME = PREFIX + '-azure-ssg'
#print PREFIX
#print SSG_NAME
#print APP_NAME
#print NODE_ADD... | [
"r.jouhannet@f5.com"
] | r.jouhannet@f5.com |
edae9e566280c6b1ff381e36c1c7f1bd35c3a3af | 3a98144a7b887b27a5c6d4622c4271b468dc0532 | /limitedUI.py | e6669e888c60149d085d831b0f66db6d8d1b3ff7 | [] | no_license | ymkymkymkymx/WumpusWorldGame | 35bdd8c32bc2215ae4bd131c5b5b43de67c65c6e | 883996704fc8ac8261e3fb59778d6f431ec36621 | refs/heads/main | 2023-01-23T23:57:58.423454 | 2020-12-03T21:30:55 | 2020-12-03T21:30:55 | 310,929,365 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | from tkinter import *
import Single_agent_window_setmap as sagentmap
import sys
class Board:
def __init__(self, difficulty="EASY", pits=1, rows=3, cols=3):
self.difficulty = difficulty
self.pits = pits
self.gridX = rows
self.gridY = cols
self.diffy=0
board=Board()
root = Tk(... | [
"43044797+ymkymkymkymx@users.noreply.github.com"
] | 43044797+ymkymkymkymx@users.noreply.github.com |
850b481185c8eb69502f7934a5f7e97ad8d38921 | db03d88ddb75cc9b044a193f5d5f7ac438d64e59 | /tests/test_checksum_generator.py | 9f92f8d7e15fb47ad05e573674e171e01d127ac5 | [
"MIT"
] | permissive | edeposit/edeposit.amqp.ltp | e461d00bf74fd54c797d670abdaa3bdccc84e5ce | df9ac7ec6cbdbeaaeed438ca66df75ea967b6d8e | refs/heads/master | 2021-01-17T11:30:24.223324 | 2016-03-03T11:10:38 | 2016-03-03T11:10:38 | 21,615,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Interpreter version: python 2.7
#
# Imports =====================================================================
import os
import shutil
import pytest
import tempfile
from ltp import checksum_generator as cg
# Variables =============================================... | [
"bystrousak@kitakitsune.org"
] | bystrousak@kitakitsune.org |
ea758efbb6b2f944c57bb1f2f0ed58065e9a48c6 | a26942949b9a93eb9798272258ee731c3b3df68c | /test/video_pro.py | 9c27efc088df84409897b20a1dbcbbbb71efedba | [] | no_license | functionxu123/use_pycaffe | 8ee7d8a2e4a52dfa3a0f2621f9b54514d832bd46 | 0fc53b44616170202bdfe954db88768796438d8f | refs/heads/master | 2021-10-10T22:06:47.007187 | 2019-01-18T03:19:28 | 2019-01-18T03:19:28 | 111,888,043 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,313 | py | #coding:utf-8
'''
Created on 2018年3月4日
@author:China
'''
import cv2, time
import os, random
import os.path as op
import numpy as np
import cut_video
from multiprocessing import Pool
def cut_video(inpu, output,time_len=10,num_def=1):
videoCapture = cv2.VideoCapture(inpu) # 从文件读取视频
# 判断视频... | [
"root@sherl-desktop"
] | root@sherl-desktop |
5779bcdba227fa41b598888395ca6c6cb372d7fd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02614/s337550371.py | e941783ee59fd288f4e96377d81f254481c236d0 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | h, w, k = map(int, input().split())
c = []
for _ in range(h):
c.append([c for c in input()])
ans = 0
for i in range(1 << h):
for j in range(1 << w):
cnt = 0
for n in range(h):
for m in range(w):
if i >> n & 1:
continue
if j >> m & 1:
continue
if c[n][m] == '#':
cnt += 1
if cnt =... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1b4d9e606a8b99e47553260ed19fdcb211f8a74c | 2727eb1c7f3fae60612daf7b92918686044544c2 | /VolumeHandControl.py | dc6c695af7907874103312024dbbd316c07dd804 | [] | no_license | browningjeff1/HandTrackingVolControl | 157f9f192c9508354b6d68de2f9a91c9e09254b1 | dcfde5d74b19907d841887322865a5b68aefdd1c | refs/heads/main | 2023-07-02T16:51:07.124058 | 2021-08-13T17:18:02 | 2021-08-13T17:18:02 | 395,735,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,260 | py | import cv2
import time
import numpy as np
import HandTrackingModule as htm
import math
from ctypes import cast, POINTER
from comtypes import CLSCTX_ALL
from pycaw.pycaw import AudioUtilities, IAudioEndpointVolume
##################################
wCam, hCam, fps = 640, 480, 30
##################################
cap... | [
"browningjeff1@gmail.com"
] | browningjeff1@gmail.com |
549e59382a5151a79f6c437f2c8f6a1b1cf9fe7e | 31afe4d23937ec7a20c53c3dc8bb8337e061b881 | /tests/__init__.py | 175c70847df864a8da75e418f79a81a5e2e33ea1 | [
"Apache-2.0"
] | permissive | ecdavis/spacegame | 4e374b3deb74240024f4c390675050624d7e650d | 6cfa831cde3ea08743e9ebd9ed72dcfcd2f709a1 | refs/heads/master | 2020-05-21T11:20:37.501158 | 2016-10-20T04:30:42 | 2016-10-20T04:30:42 | 50,228,956 | 0 | 0 | null | 2017-03-15T04:04:12 | 2016-01-23T07:42:45 | Python | UTF-8 | Python | false | false | 226 | py | import unittest
from tests.integration import get_integration_tests
from tests.unit import get_unit_tests
def get_all_tests():
return unittest.TestSuite([
get_unit_tests(),
get_integration_tests()
])
| [
"me@ezdwt.com"
] | me@ezdwt.com |
ab2547279fa342c9aad6c7932ac91bd058b51c59 | 68c88f78816e95b0d8beeda1531b6524f10302b4 | /tests/test_nodetools.py | 379e2efa5a545cbe91947bfd80306f276d12a359 | [] | no_license | ableuler/data-analysis | efe3b9ba8c816e17220ba56ed2029499f6b8bafa | 0bae469f827a9b272d48ddbc5f5f59361204a6ae | refs/heads/master | 2021-05-13T17:25:20.221955 | 2017-12-27T12:22:51 | 2017-12-27T12:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | from __future__ import print_function
def test_create_datanode():
from dataanalysis import core as da
da.reset()
#da.debug_output()
data=dict(
data="x",
dataint=2,
)
data2 = dict(
data="xy",
dataint=3,
)
A=da.DataAnalysis.from_data("TestAnalysis",data)... | [
"noreply@github.com"
] | ableuler.noreply@github.com |
54d1650a52a4bc13ac08b504b9340b117a4293e9 | eab22f04cb6899c99842389bbf3fe786b1300357 | /source/yolo_test/test_hybridblock_cando.py | 82068694ca73397b93cf936fc40e9ae657657d31 | [] | no_license | jimhoprogramming/Dress | 8dc1ce9d8676dd5b6617e42bd42e6631d401e89e | 8a043e4c7b192262e2e9fcea67c68315dbbab96f | refs/heads/master | 2022-10-29T00:56:39.127088 | 2021-04-22T01:15:28 | 2021-04-22T01:15:28 | 305,014,924 | 0 | 1 | null | 2022-10-22T16:13:46 | 2020-10-18T03:32:11 | Python | UTF-8 | Python | false | false | 3,679 | py | # -*- coding: utf-8 -*-
import mxnet as mx
from mxnet import gluon
from mxnet import nd
from matplotlib import pyplot as plt
from mxnet import autograd
import random
from mxnet.gluon import data as gdata
from mxnet.gluon import loss as gloss
from mxnet import init
def make_data_label():
num_inputs = 2
num_exa... | [
"box8685@tom.com"
] | box8685@tom.com |
8a279b47ba86c2ed2fee9ea3b21a09a44ee1bcfc | 2151ee9ad78e68e3720753fa5042d6c5b2625fcf | /book/subscribes/models.py | 9c81da4dc14d60c39311966e081addcfa839187e | [] | no_license | sulesuleman/combined-webpush | d102fa9b06a66851b1701aca386d88ef7a5fc062 | c8eeeb1fdd9dc2889c2ec0a5b469ba8ec26e0d99 | refs/heads/master | 2023-02-18T23:49:12.456631 | 2021-01-19T18:06:01 | 2021-01-19T18:06:01 | 326,957,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py | from django.db import models
from app.fields import JSONSchemaField
from accounts.abstract import WebsiteForeignkey, TimeStampedFields
from .utils import generate_segment_key
class Segment(WebsiteForeignkey,TimeStampedFields):
name = models.CharField(max_length=100)
segment_key = models.CharField(default=ge... | [
"64007954+sulesuleman@users.noreply.github.com"
] | 64007954+sulesuleman@users.noreply.github.com |
c0ddff1f768c0d9e5f46b2c10bf210012f3fde84 | f1df5c8a26845a9689b207a75a79b288f9174492 | /venv/bin/easy_install | 55838178dbf53b3ecd2f68e7cacfadbb8dfc43c4 | [] | no_license | EmeryOut/MySite | 75be386e57b203038191d709ac983f0b33386918 | 2958b67139b34386739de83d50f57505c6c34bd5 | refs/heads/master | 2020-04-26T04:39:05.670294 | 2019-03-09T16:06:31 | 2019-03-09T16:06:31 | 173,309,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | #!/home/neo/django_project/microblog/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"memerson@archer.com"
] | memerson@archer.com | |
40c74d123eff6051b5952100a45abef935eac8db | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4030/894004030.py | 124523df12c7828177f53169e08f00b209133396 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 809 | py | from bots.botsconfig import *
from records004030 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'DX',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'G82', MIN: 1, MAX: 1},
{ID: 'N9', MIN: 0, MAX: 99999},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
c47a858dafed37cf89a297bcadee7109ef0e1a23 | 42c2a23ac244e830d035120d63b300b5f2f543cc | /ReverseInteger.py | 92ab366fcccc08afe752137703ec63f192f80bf6 | [] | no_license | harshsaini697/CodingPractice | d72bc1c73ff5a7d3efff29de08e39a3d9df89179 | 9d426a1b188c9754fed45670a8ff5512d19da178 | refs/heads/master | 2022-01-08T15:25:28.598927 | 2019-07-21T19:53:23 | 2019-07-21T19:53:23 | 198,098,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | def reverseinteger(n:int):
rev=0
flag=False
if n<0:
flag=True
n*=-1
while(n!=0):
pop=n%10
n=int(n/10)
if (rev > float('inf') / 10 or (rev == float('inf')/ 10 and pop > 7)):
return 0
if (rev < float('-inf') / 10 or (rev == float('-inf')/ 10 an... | [
"noreply@github.com"
] | harshsaini697.noreply@github.com |
04fc624ee47c61e9d8ceb941c957abfccbd7effe | 21b92ad43608bc03633033f687543a6c4bd0d711 | /meta.py | d602311350eeca0b281a6a4fe3239963372c3c03 | [] | no_license | tol2000/python_learning_4 | 43cca2f26dafcc49bad14167cc91c2d8af9a2f20 | ba25ff09281a173395282b417ac89ae3f955e556 | refs/heads/master | 2023-01-01T19:08:46.380209 | 2020-10-20T20:11:46 | 2020-10-20T20:11:46 | 301,204,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | class Base:
val = 42
def do_one_thing(self):
# Returns one thing
raise NotImplementedError
def do_another_thing(self, *args, **kwargs):
# does something
raise NotImplementedError
class AnotherType(type):
pass
class MyClass(Base, metaclass=AnotherType):
val = 50
... | [
"tolicheg@gmail.com"
] | tolicheg@gmail.com |
b08c013e4dd71cfbe3f3fc453de387a1b2ea990c | 5913f40936249cc6663db450a831e78baeaef02e | /HUPUSpider/HUPUSpider/middlewares.py | 60f84c45d900e1ad3a32caa882882076c959a8a9 | [
"MIT"
] | permissive | pokerfaceSad/HUPUSpider | 6a75551b334d91bcffba779d5a9f09d721e4d475 | 744b2c3aa96a8237daf72993907cc61078e0c8a1 | refs/heads/master | 2021-07-08T15:10:28.670453 | 2020-07-15T01:53:57 | 2020-07-15T01:53:57 | 151,728,783 | 3 | 1 | MIT | 2018-12-09T04:03:12 | 2018-10-05T13:57:43 | Python | UTF-8 | Python | false | false | 1,884 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class HupuspiderSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrap... | [
"pokerfacesad@126.com"
] | pokerfacesad@126.com |
aaedb7ad24902116070724d25563f5e409d22c26 | 8c3fffe9eb16597afad287d31803fb82df4ba3b7 | /TxtFilesDBAssignment.py | df42fd5eca730cd3faf904e7923bb078dc648947 | [] | no_license | dprevost5/Python-Projects | e5697c4d0c49b80d8079b4a9be07820cca05eabb | dee3770a538d654fcdb0a097ad115fdce4c0c9e1 | refs/heads/main | 2023-07-11T21:32:17.887097 | 2021-08-16T00:30:51 | 2021-08-16T00:30:51 | 376,369,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py |
import sqlite3
conn = sqlite3.connect('test2.db')
with conn:
cur = conn.cursor()
# create table with an auto-increment integer field and a text field
cur.execute("CREATE TABLE IF NOT EXISTS tbl_txtfiles( \
ID INTEGER PRIMARY KEY AUTOINCREMENT, \
col_filename TEXT \
)")
conn.commit()
conn.... | [
"devonprevost@gmail.com"
] | devonprevost@gmail.com |
2136f5f5f2747cea092dd86d56384971f885788c | 69c33fcad69a2e61cc60209401215530d033e712 | /Python/Python Basics/80.exercise.py | edec7ae40f434231bf7bad65c48644f653a77183 | [] | no_license | KULDEEPMALIKM41/Practices | 7659b895ea959c7df2cdbc79c0b982b36f2bde63 | 193abe262ff281a384aac7895bb66dc39ee6e88d | refs/heads/master | 2023-08-17T11:01:11.694282 | 2021-09-30T08:12:41 | 2021-09-30T08:12:41 | 289,527,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #addition list element
l=[5,8,9,10,12,44,12]
print('list is : ',l)
d=0
for element in l:
d+=element
print('list addtion is : ',d)
print()
#print list element
l=[5,8,9,10,12,44,12]
print('list is : ',l)
e=1
for element in l:
print('element no',e, 'is : ',element)
e+=1
print()
#count number of elements in list
l=... | [
"Kuldeepmalikm41@gmail.com"
] | Kuldeepmalikm41@gmail.com |
8d711d2b7d2b53de794538e43f3b3883eabca30e | 8e682ecdb477954ede9816b3eb82cd244b41c9df | /height.py | 62c55b1cd11254c9091078aaa421bbca72b50a33 | [] | no_license | farruhilhamov/python-m1 | 208497b63e70d04a5c0af440942f85906b53b198 | 97e8fcaefe0cf28245d4a3c0b0082139532109fd | refs/heads/main | 2023-03-26T17:03:04.598631 | 2021-03-16T07:43:30 | 2021-03-16T07:43:30 | 343,470,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | #!/usr/bin/env/ python3
from functools import reduce
def main():
people = [{"name":"Anna","height":160},{"name":"Lena","height":175},{"name":"Kate"}]
h = list(map(lambda x:x["height"],list(filter(lambda x:"height" in x,people))))
sred = reduce(lambda x,y:x+y,h)/len(h)
print(sred)
if __nam... | [
"noreply@github.com"
] | farruhilhamov.noreply@github.com |
4b43355e6a99c564e169a712e67e2298d08737a0 | 17e664825b8590c62efc18d6199cb05ac12e562e | /bookclub/migrations/0005_auto_20210414_1842.py | 2f93f0bf8b2202c13abb1dc07fbcc7f81ca6df21 | [] | no_license | tjeaneric/Book-club | d9c05e1b2115e5a3aa7f2354111fe4282720ad45 | b39cdd5e57d8c7380d30751c4e834eb06477e90b | refs/heads/master | 2023-04-04T11:06:35.700374 | 2021-04-14T21:19:49 | 2021-04-14T21:19:49 | 358,043,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Generated by Django 3.1.7 on 2021-04-14 18:42
import ckeditor.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('bookclub', '0004_auto_20210414_1836'),
]
operations = [
migrations.AlterField(
model_name='discussion',
... | [
"ericjohn415@gmail.com"
] | ericjohn415@gmail.com |
926a132b2cac32d3d310cfd5c8940261302a4f1b | 602a4e86499841fbae43d84fc92908c533106aea | /core/actions/photoline.py | c9b5f8cb9eb9948ac8e096ec9914ec904d5370bc | [] | no_license | vden/TsoguNG | b187ccf1bef387417ec73467c51458d6f1443239 | f8d5e7ab9d85559aa163c232c9f28a24a2b7c2a4 | refs/heads/master | 2021-01-02T08:52:03.914218 | 2011-04-26T07:01:57 | 2011-04-26T07:01:57 | 1,663,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # -*- coding: utf-8 -*-
from core.portal.register import portalaction
from core.portal.render import render_to_portal
from core.views import get_object_by_url
from core.models import BaseObject
import random
@portalaction(verbose_name=u'Фотокалейдоскоп')
@render_to_portal(template='actions/photogallery.html')
def pho... | [
"denis.voskvitsov@gmail.com"
] | denis.voskvitsov@gmail.com |
8990c28114139e2ed6e0be376fc8e9183965c0f1 | 0739b61b6a9fee62b9f9d36d3597fd929095f823 | /my_project/my_app/migrations/0001_initial.py | 7dc9ea5cb876f9151108e67967b62905c2cb1631 | [] | no_license | KennethSC/Employee_RestAPI | 08e82c6eafd620381941564f8e05f4a3e151c8c5 | 23401b2fb014d586d3fc2409da01d19ae0954bde | refs/heads/master | 2023-03-30T10:33:08.313996 | 2021-03-26T22:57:24 | 2021-03-26T22:57:24 | 325,488,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # Generated by Django 3.1.1 on 2020-12-30 04:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Emplyee',
fields=[
('id', models.AutoField(... | [
"kennethsantacruz12@gmail.com"
] | kennethsantacruz12@gmail.com |
c9577ec8b54ae691bafc7f9e59d8d729be4b6546 | 91674397b6653703545c4ab9d6bf3b99f5a709f5 | /true_fisher_forecast/old/pre_calc_fisher.py | 091206c6f501b4a684b983e36aa4de6bcfbf2e84 | [] | no_license | adrien-laposta/cosmoM2 | 3774652368b8b94a19a8ac5fede3c54067bf5f86 | 483fe128720401050df58f524e09cb73c617077f | refs/heads/master | 2021-02-10T13:43:23.776010 | 2020-04-21T16:40:01 | 2020-04-21T16:40:01 | 244,386,917 | 0 | 1 | null | 2020-03-19T15:11:59 | 2020-03-02T14:09:12 | Python | UTF-8 | Python | false | false | 8,263 | py | import os
import camb
import numpy as np
import mflike as mfl
from pspy import so_dict
# from toolbox import *
def get_noise_dict(freq_list, noise_data_path, ell_max):
noise_dict = dict()
for f1 in freq_list:
for f2 in freq_list:
if f1 == f2:
noise_t_spectrum = np.loa... | [
"adrien.la.posta@gmail.com"
] | adrien.la.posta@gmail.com |
8fcd83d53bbb5a8a442dbd154cdedd48fa015b1d | 4c577d9ddf21d8aba5626343f91a4986266f01e2 | /eric6/.eric6/eric6plugins/vcsGit/Ui_GitRemoteRepositoriesDialog.py | 3dbff99898c2a2d8c6ac8a5b9b713e8915b761c2 | [] | no_license | metamarcdw/.dotfiles | 362199d415ebd7d09247ee0efbda03243aa22faa | 3df0c805225a8d4f2709565d7eda4e07a050c986 | refs/heads/master | 2020-12-30T15:29:25.769345 | 2017-12-22T05:44:01 | 2017-12-22T05:44:01 | 91,143,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,412 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/cypher/.eric6/eric6plugins/vcsGit/GitRemoteRepositoriesDialog.ui'
#
# Created by: PyQt5 UI code generator 5.8
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_GitRemoteRepos... | [
"metamarcdw@gmail.com"
] | metamarcdw@gmail.com |
624ed4f23273f22a3d0728f4428603fd1d9342bb | 12a72da6848ae461b995ec2fc6c4e1827be82803 | /coin_db/okex_kline_history.py | 97744aeb24e43f8578bebdea12ec2dde40a5950b | [] | no_license | lim1942/coin_helper | f3ed40c07a049a00f052dfa3e59cee7eefe969cf | d34ce363371fd964d8c46d5dd04ca7c5eb7d35b4 | refs/heads/main | 2023-04-30T10:46:03.231440 | 2021-05-25T12:15:49 | 2021-05-25T12:15:49 | 366,247,314 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | from coin_db.base import InstrumentIdMysql
from coin_helper.settings import TZ_HOUR
class OkexKlineHistoryMysql(InstrumentIdMysql):
# 插入
insert_fields = ('open','high','low','close','volume','time')
insert_sql = f"""INSERT IGNORE INTO table_name({','.join(insert_fields)}) VALUES({','.join(('%s' for _ in i... | [
"lim1942@163.com"
] | lim1942@163.com |
4d7ed853b1fee6993ffab040cd61c631ceee1ef0 | d74ef8878ec3db5dd760da026e042d79b83c4bce | /functions.py | c5b302dcc9ddf4c07c405cfdb9fca0f51756dd16 | [] | no_license | SaaijithVigneswaran/CS50-Web-Programming | 94afae6f3172d22c18c9118dbeb8f6151c638ce7 | e2d044abe944f5b1b5ef2de6d987ac38f0ddef95 | refs/heads/master | 2023-07-03T04:20:18.322944 | 2021-08-12T12:31:05 | 2021-08-12T12:31:05 | 383,224,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | #return squre
def square(x):
return x*x
| [
"saaijith27@gmail.com"
] | saaijith27@gmail.com |
12361ffd64b16f79d033ac9d96479d6e32771b0f | b4da2201d2df789e28472aeded28720d5269ade5 | /Komodo-Edit-7/lib/mozilla/components/koRubyLanguage.py | 90f5bcb46614b184106069d22e6ae27ba04bb507 | [] | no_license | AeonSaber/first_app | 5ad89d4fb05d7662e2a39ce68176f43f1e618bf0 | 522fdfa6d33419fd49e431766fff85b40d21e78e | refs/heads/master | 2020-06-12T17:22:09.786142 | 2013-09-09T23:57:51 | 2013-09-09T23:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,669 | py | # ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (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.mozilla.org/MPL/
#
# Soft... | [
"jpsutton@madisoncollege.edu"
] | jpsutton@madisoncollege.edu |
fc67686c7d358fe86c73044273f69669abee17fa | b22b0760b29d24cff24eda9d1c114094fd1a588f | /Python/Easy/1. Two Sum.py | 04d0f39a36f83c43424be8c7e9ed2cf68bb3927e | [] | no_license | MridulGangwar/Leetcode-Solutions | bbbaa06058a7b3e7621fc54050e344c06a256080 | d41b1bbd762030733fa271316f19724d43072cd7 | refs/heads/master | 2022-03-07T12:20:33.485573 | 2022-02-21T07:22:38 | 2022-02-21T07:22:38 | 231,700,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
dic ={}
for i,num in enumerate(nums):
if target-num in dic:
return[dic[target-num],i]
... | [
"singhmridul1@gmail.com"
] | singhmridul1@gmail.com |
74525b329120dc621d989e960c6c1cc836d2c35a | 1d21bcb465fda59441ff4f0c2c5050d7c03b053f | /blog/views.py | 80b44fbfbc6d0cc91020ec67b816d5934ffc24f9 | [] | no_license | fullfullfull/blog_Django | ae50dad456967c1de4255eca31b4cdcfcbfd2ca1 | e478db480251eff605e383267fec8927dae57b59 | refs/heads/master | 2021-06-05T09:39:11.918699 | 2016-10-28T00:58:35 | 2016-10-28T00:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | from django.shortcuts import render, get_object_or_404
from django.utils import timezone
from django.shortcuts import redirect
from .models import Post
from .forms import PostForm
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
return render(request... | [
"satice@gmail.com"
] | satice@gmail.com |
3b8e9fcc40666e3db7dbe7e7babc3807bb05661f | 8da9c672aeb0a006344a452a817163b9e46c2a1c | /code/components/classifier/wrapper.py | e61f65058e9fda5579c5bec1bd27c308fdf525d0 | [] | no_license | tuandnvn/ttk | 2d200218645dc84df8aebb236381191da1177a8d | 72b57f34f194bbb3049a6f3c879580b8a5755c7f | refs/heads/master | 2021-04-07T07:25:04.780157 | 2018-03-15T00:39:14 | 2018-03-15T00:39:14 | 125,291,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,362 | py | """
Python wrapper around the MaxEnt Classifier
CLASSES
ClassifierWrapper
"""
import os
from ttk_path import TTK_ROOT
from library.tarsqi_constants import CLASSIFIER
from library.timeMLspec import TLINK, EIID, TID
from library.timeMLspec import RELTYPE, EVENT_INSTANCE_ID, TIME_ID
from library.timeMLspec... | [
"tuandn@brandeis.edu"
] | tuandn@brandeis.edu |
5cb2d3a55f4e2df8caa517ae5cdc090927a4d379 | b7993cf3d88997176f5ad27fb8f100859c5ad466 | /serve/predict.py | 34c4058a37b96d83b62d172931ea38af11986d96 | [] | no_license | Stas-Medvedev/Sentiment-analysis-webapp | 6da2ed6019345ed3f4af7e3b497c737391959f01 | b6e5ff4991d2e8d9543054a45c645e0945c97108 | refs/heads/main | 2023-02-13T06:18:20.697226 | 2021-01-16T00:53:54 | 2021-01-16T00:53:54 | 330,055,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,047 | py | import argparse
import json
import os
import pickle
import sys
import sagemaker_containers
import pandas as pd
import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
import torch.utils.data
from model import LSTMClassifier
from utils import review_to_words, convert_and_pad
def model_fn(mod... | [
"stan.medvedev@gmail.com"
] | stan.medvedev@gmail.com |
a916162c0b81b9ebd5a5fd9fc12815a09c90f9f7 | 32cd29f019b81693704ee62fa471ab810c3de290 | /train_vgg16.py | 3387c8c7612b74cdb6ed9768c5e57897756f81e1 | [] | no_license | ytwushui/TransferLearning | 46caeef216143c09417fc700e18a3f4517c02099 | ec5aa13ddfef68a934b478c204e220d34dcd52b9 | refs/heads/master | 2023-02-15T13:43:14.834401 | 2021-01-15T09:08:58 | 2021-01-15T09:08:58 | 327,516,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,945 | py | import torch
import torchvision
from torchvision import datasets,transforms, models
import os
from torch.utils.data import DataLoader
from tqdm import tqdm
import cv2
import numpy as np
import matplotlib.pyplot as plt
from torch.autograd import Variable
import time
path = "./datasets2"
# data transform operator (appl... | [
"wy710@163.com"
] | wy710@163.com |
bb88064bd40b21a0ff0cae043e7184728ab240b6 | d82733824567ba08e3824dc195147c2e0c057dd6 | /apple_health/constants/metadata.py | 3e6ebad6b63448c00c59343b4c35ea2f1e0828a8 | [
"MIT"
] | permissive | MerlinCo-git/apple-health | e72df1e1b1f420d7ba4d55f3e91c53cf6b2f2d6b | c91cdadd2ccd32e88b15437115834a811a371a51 | refs/heads/master | 2023-03-20T11:42:10.248415 | 2021-03-04T11:22:20 | 2021-03-04T11:22:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | HK_AVERAGE_METS = "HKAverageMETs"
HK_ELEVATION_ASCENDED = "HKElevationAscended"
HK_INDOOR_WORKOUT = "HKIndoorWorkout"
HK_TIME_ZONE = "HKTimeZone"
HK_WEATHER_HUMIDITY = "HKWeatherHumidity"
HK_WEATHER_TEMPERATURE = "HKWeatherTemperature"
HK_WORKOUT_BRAND_NAME = "HKWorkoutBrandName"
HK_FOOD_MEAL = "HKFoodMeal"
HK_FOOD_TYP... | [
"federicocalendino@gmail.com"
] | federicocalendino@gmail.com |
44b08ffb742ca2b0d9a903a1c8e4000788895fad | bd17d57b068333c5b1f3a674fda339262a49b309 | /Version 1.1/ratio/Area.py | 53060882c40f5f2d450a6e6f7c56ebe255a9d82d | [] | no_license | HizanLi/Converter | 5e21ba66a10b7175a6cdb7e9d43274e94d2cb867 | d4c1b32ff12f69c57e5e055d74e60ae34f0d2e99 | refs/heads/main | 2023-06-01T19:09:00.111447 | 2021-06-17T06:29:06 | 2021-06-17T06:29:06 | 349,514,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,318 | py | from decimal import Decimal
from ..Exception import inputUnitError, outPutUnitError
# this is the ratio between and other units
areaSquareKilometer = {"SquareKilometer": 1,
"Hectare": 100,
"Are": 1000,
"SquareMeter": 1000000,
"... | [
"linxinl@uvic.ca"
] | linxinl@uvic.ca |
bcbef7ec51f2d3898d5bb68eb4d067036d65a301 | e3b680c7b94c8cacc9c804993922f37774c82c55 | /day3/6_convert.py | 818567f4428ba155495fdefe94581e814c7f4f9c | [] | no_license | FunkGG/Leetcode | 13dd4451b6070d4102661cf50d498d75712190a8 | b4cd2674af4a3b86ea6494771c86c5c7ed24a2ce | refs/heads/master | 2020-06-17T01:52:29.186061 | 2019-07-21T07:47:25 | 2019-07-21T07:47:25 | 195,760,050 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | class Solution:
def convert(self, s: str, numRows: int) -> str:
if not s:
return s
if numRows ==1:
return s
n = len(s)
rows = min(n,numRows)
z = ['']*rows
row = 0
for i,sr in enumerate(s):
z[row] += sr
if row == ... | [
"noreply@github.com"
] | FunkGG.noreply@github.com |
333a6ab48b3fd411b6228b0720b6188e569b1280 | 2e5be46ccc48ac039818debc65a9dea8bd712212 | /app/user/serializers.py | aee979ae8287796bed929135ee5cc381e22e13fd | [
"MIT"
] | permissive | Jattwood90/recipe-app-api | 1124b2415143d9ae8ed1ead91b837ac4415b5426 | cfdcadf148fb4fcf185557711c837887f6cc2f5f | refs/heads/main | 2023-02-02T00:01:19.326609 | 2020-12-13T17:23:20 | 2020-12-13T17:23:20 | 318,487,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | from rest_framework import serializers
from django.contrib.auth import get_user_model, authenticate
from django.utils.translation import ugettext_lazy as _
class UserSerializer(serializers.ModelSerializer):
"""Serializer for the users object"""
class Meta:
model = get_user_model()
fields = ('... | [
"root@joes-mbp.home"
] | root@joes-mbp.home |
9edf40ecb62eac81cd943cb16e8c1f28793c615e | f95db72e9a6f0c89f77582eb589e6de625de76c7 | /tools/perf/core/results_processor/processor_unittest.py | 2659fce99be675fd600510596c5e1886e0fa2649 | [
"BSD-3-Clause",
"Zlib",
"LGPL-2.0-or-later",
"MIT",
"LGPL-2.1-only",
"APSL-2.0",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Seshpenguin/chromium | ca814257d998676850dd69c86c2dc2892b06aa87 | c2e0382538708b7801254f7a06c6bbe61b9aa65c | refs/heads/master | 2023-03-11T10:50:20.627435 | 2019-11-07T21:06:41 | 2019-11-07T21:06:41 | 220,328,767 | 0 | 0 | BSD-3-Clause | 2019-11-07T21:05:20 | 2019-11-07T21:05:19 | null | UTF-8 | Python | false | false | 5,495 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Unit tests for results_processor methods."""
import datetime
import os
import unittest
import mock
from core.results_processor import processor
from co... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
3328d3db51d6fb8039493a5e75180371fc20c187 | b0e93e504bc1e45a4e08b0cbc30a9ada3601b9d2 | /service/routes.py | 94b4842fb7126c21b04b680857e789cd44f302a2 | [
"Apache-2.0"
] | permissive | jarty13/lab-flask-tdd | e54f3212d3804ecb60f5f0227f6fc9c6cb70e2a8 | d943e84a6c2dab6660d55428be56e767fd90bc0f | refs/heads/master | 2023-03-19T07:17:29.934253 | 2021-03-16T01:53:22 | 2021-03-16T01:53:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,059 | py | # Copyright 2016, 2017 John J. Rofrano. 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"johnnyroy@johnrofrano.com"
] | johnnyroy@johnrofrano.com |
1d72b1e09cea093653aea7904404d5669ad383d2 | b08df6b1e6563431be08dcdd12de6a70bbe003fc | /loaddata.py | ee45afe16bc2431d091ca1fddacd360d0f7912e8 | [] | no_license | zhengyul9/Machine-Learning | dd79b322626467d03c24bed1e7c54d108c8a03e5 | 1a717141b10eb62c40f465dfce18982d1bd5c025 | refs/heads/master | 2020-07-07T20:46:38.942903 | 2020-01-12T23:08:28 | 2020-01-12T23:08:28 | 203,473,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,576 | py | import pickle
import numpy as np
import math
import matplotlib.pyplot as plt
import torchvision
import torch.utils.data as data
import torch
import torch.utils
from PIL import Image
standardlabels=np.eye(9,dtype=int)
def load_pkl(fname):
with open(fname,'rb') as f:
return pickle.load(f)
def ... | [
"noreply@github.com"
] | zhengyul9.noreply@github.com |
676fc4fbab4931a3870271f4f287804749359ed0 | fe33bdb20436a379a17d56b83816d7064cb75d90 | /src/rocon_multimaster/rocon_hub/src/rocon_hub/main.py | f1ce15a41be27d10d3bb1d6af1477ff7a91e47bd | [] | no_license | uml-robotics/catkin_tester | 764744614782acaff46f66f25dbd1650d0fcd5e8 | dfc8bb2026c06d0f97696a726a6773ff8b99496e | refs/heads/master | 2022-10-31T11:48:27.207535 | 2017-11-27T18:09:38 | 2017-11-27T18:09:38 | 111,495,779 | 0 | 1 | null | 2022-10-19T14:49:44 | 2017-11-21T03:45:59 | C | UTF-8 | Python | false | false | 3,280 | py | #!/usr/bin/env python
#
# License: BSD
# https://raw.github.com/robotics-in-concert/rocon_multimaster/license/LICENSE
#
##############################################################################
# Imports
##############################################################################
import sys
# Ros imports
imp... | [
"james.perl12@gmail.com"
] | james.perl12@gmail.com |
d0bdd07b18819e86455e3d9f0f751055a1dd3c23 | c4acf775dbdb5a264721837a7f728f7aed9cfe3d | /src/UserStories/us25.py | 30bc2a71b86376468feb57c54e5e0ae7825d351f | [
"MIT"
] | permissive | pdamiano-11/Gedcom-Parser | da51a6b9d86b314dfd252d159292b90ad82f5c07 | 39736f258ca14b96410d74e30e1f57d5e0fe18ba | refs/heads/master | 2022-12-28T01:18:48.904010 | 2020-10-05T22:07:10 | 2020-10-05T22:07:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | '''
@author: Ming Lin
User Story #25: Unique first names in families
No more than one child with the same name and
birth date should appear in a family
'''
import os
def us25(date):
return
| [
"minglianglin50@gmail.com"
] | minglianglin50@gmail.com |
c8ea8a8d67312bbae737c06bd8bb8232e52cf073 | 43827ac88dc4603e4736698378f9ef308df6fecd | /email_check.py | 20185dba2e54e8853b262105a9c2122c6f833317 | [] | no_license | vijama1/basic-python-projects | b47d2f5d3ee02f1e727c57da6f5f03afc3696a79 | 9f2ecc57accfac6a1b38dd60d83a37050bb47341 | refs/heads/master | 2020-03-20T00:11:42.971763 | 2018-07-02T17:51:03 | 2018-07-02T17:51:03 | 137,035,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | import smtplib
import re
import socket
import dns.resolver
email_address=input("Enter the email address:")
match = re.match('^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$', email_address)
records=""
if match == None:
print('Bad Syntax in ' + addressToVerify)
raise ValueError('Bad Syntax'... | [
"noreply@github.com"
] | vijama1.noreply@github.com |
815e0cee3baadf1905e7d84af02be5a96bf9bb09 | ed9904bb155b741c7bff33209a7077f8a7fbd880 | /tf_steer/sp1Filters.py | 437aa7db6072d4d6817d4138359532c52a528e0a | [] | no_license | sankaushik/Visual-Information-Fidelity-VIF---TensorFlow | 8f73f7456c990e96e2b916310257a6b8a15e16a8 | 8b60cb90dd538311406bb01816f95de39898e396 | refs/heads/master | 2022-02-28T08:39:52.990749 | 2019-09-30T23:38:03 | 2019-09-30T23:38:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,904 | py | import numpy
import tensorflow as tf
def sp1Filters():
''' Steerable pyramid filters. Transform described in:
@INPROCEEDINGS{Simoncelli95b,
TITLE = "The Steerable Pyramid: A Flexible Architecture for
Multi-Scale Derivative Computation",
AUTHOR = "E P Simoncel... | [
"noreply@github.com"
] | sankaushik.noreply@github.com |
f019b983a76a79b93ef3c30b376a74a5948e4963 | 00f755b201583ba640d0b69905c4e134472f6316 | /datasets/Mall/loading_data.py | 2a00065e96abc45ad0bd4bc39b7abafda33f8490 | [] | no_license | JiangMinyang/CC-KD | c2d3ab8667422a154687759d1a8c2d886817e1c9 | 5ad47e8d52b9116a9f91b143e3288724e93696c4 | refs/heads/main | 2023-02-22T12:16:48.353750 | 2021-01-26T09:29:27 | 2021-01-26T09:31:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | import torchvision.transforms as torch_transforms
from torch.utils.data import DataLoader
import misc.transforms as transforms
from datasets.cc_dataloader import CCLoader
import os.path as osp
import torch
from datasets.Mall.dataset_config import config
def loading_data(batch_size):
data_path = config.data_path
... | [
"jiangminyangcn@gmail.com"
] | jiangminyangcn@gmail.com |
82d945460ed0e8d34280aa52f1952cb9c0e21614 | 222c21e784786c0d850c48998ef1b05104d91e14 | /python/svmMLiA_test_2018040202.py | 86f86f4313bb3cd296f3795b5c6d093db160a4e4 | [] | no_license | gaobaozhong/vscode | 856875a5cbfa2b37c1eda56adde3de5b8facbf4d | 18a407a4190a0ad5d413cb2739a4bf9227077bc1 | refs/heads/master | 2021-04-26T22:13:36.531681 | 2018-07-29T03:24:17 | 2018-07-29T03:24:17 | 124,046,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | import svmMLiA_2018040202 as svmMLiA
from numpy import *
#dataArr,labelArr = svmMLiA.loadDataSet(r'/Users/gao/code/machinelearninginaction/Ch06/testSet.txt')
dataArr,labelArr = svmMLiA.loadDataSet(r'D:\Users\gao\Documents\Code\machinelearninginaction\Ch06\testSet.txt')
print labelArr
print (dataArr[:3])
b,alphas =... | [
"1417395446@qq.com"
] | 1417395446@qq.com |
77b2751cff0394430b103aa53e03cd35dade0977 | eb2846182c790fc3604910f4e66261f3293378db | /build/nav_core/catkin_generated/pkg.installspace.context.pc.py | 82a6eda5221b888dfdced1ad08df807481cb30ac | [] | no_license | SuperChange001/catkin_ws | e19a5e225f35fa7c0d3aa7d458561a29d2b7c4ec | bdcd8097e60c8dff2f61c13e7fb88b4703ef5210 | refs/heads/master | 2020-06-13T12:36:20.084113 | 2017-02-13T04:02:20 | 2017-02-13T04:02:20 | 75,380,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/odroid/catkin_ws/install/include".split(';') if "/home/odroid/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "std_msgs;geometry_msgs;tf;costmap_2d".replace(';', ' ')
PKG_CONFIG... | [
"chaoqian1119@gmail.com"
] | chaoqian1119@gmail.com |
3ae6f30fa3fe13c41d94fe3ebd8e028f058ef13e | 0734fe314483192e630272bb212aa7817d627628 | /parsl/executors/swift_t.py | 752a5a139692958dc61318bba9ffc75fc4691beb | [
"Apache-2.0"
] | permissive | djf604/parsl | 9798f1043a2196d3b538c8683de6d34d57d8f279 | 118af3a52be1811a3355c79a7adadda5ea66afde | refs/heads/master | 2020-12-02T16:27:10.252111 | 2017-06-29T01:47:09 | 2017-06-29T01:47:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,882 | py | ''' Sample Executor for integration with SwiftT.
This follows the model used by `EMEWS <http://www.mcs.anl.gov/~wozniak/papers/Cancer2_2016.pdf>`_
to some extent.
'''
from concurrent.futures import Future
import logging
import uuid
import threading
import queue
import multiprocessing as mp
from ipyparallel.serialize... | [
"yadudoc1729@gmail.com"
] | yadudoc1729@gmail.com |
8073c023a7861491a0cbcee033584d6d5578e89b | 5618d8b7d6fc2190f070e6fa5e3b423c0480a70d | /03-数组问题/0026-删除排序数组中的重复项.py | 3b2d07ba4456367779ffc8f7b64484a1b1780b7a | [] | no_license | ybm1/LeetCode-Solution-Python | 01d455e8d9305b789646b395e57e1ec50ea7b1b7 | 9b76e7d3d0cebbaa977769f5c41ac1813e3f9f4e | refs/heads/master | 2020-06-19T12:42:55.405557 | 2019-07-13T00:57:28 | 2019-07-13T00:57:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | class Solution:
def removeDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
size = len(nums)
# 只要有重复的元素覆盖就可以了
if size == 0:
return 0
# 接下来要赋值的那个元素
j = 0
for i in range(1, size):
if nums[i] != nums... | [
"121088825@qq.com"
] | 121088825@qq.com |
e91b3aff839d983f8cebda7b696fefce2ebb1063 | 91f020562d1e0fc597bd4fabc6d07415b265cb1f | /40.Linear Search.py | 7a633c798f7cf34993d8eef3d00e7511bc1fdf11 | [] | no_license | dathadathu/Python-Tutorial | bcbd1cd6de3532fae369daed550b3fba41d305fe | cf30a61ddc77008179b275e409006db65799aa49 | refs/heads/master | 2023-07-15T20:24:19.794369 | 2021-08-27T07:19:44 | 2021-08-27T07:19:44 | 370,912,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | pos = -1
"""
def search(list,n):
i = 0
while i < len(list):
if list[i] == n:
globals() ['pos'] = i
return True
i = i + 1
return False
"""
def search(list, n):
#i = 0
for i in range(len(list)):
if list[i] == n:
globals()['pos'] = i
... | [
"shivadatha07@gmail.com"
] | shivadatha07@gmail.com |
9b7338b709f58610d87ad8814aa53576e7669b72 | c7a3efd640edcbd15aba53e2f1d71fd8116bf92b | /application.py | f6ca6b63ce9ecc5e1aca07905c72736ed96c3493 | [] | no_license | dendrondal/Portfolio | 2e810353baa9494b2c52e155384e3f06385439dd | beb702cb9d7125e4e4a771bfe7ebd65a79eb9489 | refs/heads/master | 2022-07-31T01:06:42.393292 | 2022-07-10T14:33:56 | 2022-07-10T14:33:56 | 196,630,961 | 1 | 0 | null | 2021-03-25T22:49:43 | 2019-07-12T18:58:39 | HTML | UTF-8 | Python | false | false | 779 | py | from flask import render_template, send_file
from flask_frozen import Freezer
from flask import Flask
from flask_flatpages import FlatPages
import sys
app = Flask(__name__)
app.config.from_pyfile('settings.cfg')
pages = FlatPages(app)
@app.route('/')
def main_page():
return render_template('index.html', pages=pa... | [
"dendrondal@protonmail.com"
] | dendrondal@protonmail.com |
9898d3c4e83a4ad252240c7044576dfa319b93bf | fe8fa50decd7fc3a7b97a34645253fd87113336c | /ordered numbers.py | 575e5bca6e5b422149bbdeaf4908830e94427159 | [] | no_license | ajaypandey2002/Stepik-tasks | 3e0a8c69ab0f830c99c64276ba510a5f11747874 | bdfe4dcb28d3684ef6b5d208cff9e0ebbc0db0d2 | refs/heads/main | 2023-01-21T21:04:14.605775 | 2020-11-30T19:44:21 | 2020-11-30T19:44:21 | 316,332,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | #is the numbers are ordered from left to right
n = int(input())
last = n%10
k = 0
m = 0
while n != 0:
if n % 10 >= last:
last = n % 10
k += 1
m += 1
n = n // 10
if k == m:
print('YES')
else:
print('NO')
| [
"noreply@github.com"
] | ajaypandey2002.noreply@github.com |
4a9b6cb940d08b7436885844fdb07491341978a9 | fdf4bb4d1b9023cd8eba21abf221bcc947d8dd3b | /boundaries/AppWindow.py | ecf7427f909a8f472c35354255a1de74c2a2b457 | [] | no_license | kevinmel2000/sentimen-c4.5-pso | 3e980874cdc4c6ddade89f305ca4679019e53caf | 4833587003e385151db0687f32a1b204a1546f78 | refs/heads/master | 2020-03-14T22:14:09.761521 | 2018-05-01T08:15:34 | 2018-05-01T08:15:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,820 | py | from PyQt5.QtWidgets import *
from controls.MainControl import MainControl
from core.Database import Database
class AppWindow(QMainWindow):
def __init__(self):
super().__init__()
self.title = "Analisis Sentimen C4.5 - PSO"
self.left = 50
self.top = 50
self.width = 640
self.height = 480
self.... | [
"arliansyah_azhary@yahoo.com"
] | arliansyah_azhary@yahoo.com |
fe4307ec8c7c404c7126633d04a8523bb4070eef | d806b109e5b196fe67b07ff88bfa61401a6a7e36 | /wdreconcile/engine.py | 34839d4c3fa19523ec143487c183514802c28cf2 | [
"MIT"
] | permissive | msaby/openrefine-wikidata | 6021ea140770b1e1f8a5ae4013ad34aeddd5bdaf | ee6fad6ebc76e34f1a1113cedcabbf145551afa7 | refs/heads/master | 2021-06-29T23:12:40.466189 | 2017-09-19T09:21:38 | 2017-09-19T09:21:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,501 | py | from config import *
import requests
import itertools
import re
import json
from collections import defaultdict
from .itemstore import ItemStore
from .typematcher import TypeMatcher
from .utils import to_q
from .language import language_fallback
from .propertypath import PropertyFactory
from .wikidatavalue import Item... | [
"antonin@delpeuch.eu"
] | antonin@delpeuch.eu |
bf79826d656c3dbea5dbe84aed6246917592b082 | 3109d9349cc17ad79af1b0bf0a3d63a92affb73d | /python/aoc/__main__.py | b4e1f74bf327ff36b7fe29b71008175eb06bf3ad | [] | no_license | letheed/aoc | 817af09e1e8178a2935ff3d7d0596c5745e9cf7c | 9353acfb81aa0363412e95643537d5c99642ce05 | refs/heads/master | 2023-01-13T07:48:34.360287 | 2022-12-28T06:08:05 | 2022-12-28T06:36:34 | 47,609,920 | 0 | 0 | null | 2022-12-27T05:25:30 | 2015-12-08T08:47:41 | Rust | UTF-8 | Python | false | false | 65 | py | from aoc.main import main
if __name__ == '__main__':
main()
| [
"letheed@outlook.com"
] | letheed@outlook.com |
6812313369997020963708e1e0c6d809efa84323 | b63ef879b9562ef77fcd5bd10a93abc8c125a1c5 | /key-value data store.py | 18b5f832527ac0dc2101a5a5479fe1858011ea87 | [] | no_license | Nivedha07/FreshWork | 5c9e2a97f76ce020b61265bd79117baacdcf5ad3 | ec5f8f1d02b89cac63815799643dc13162d95839 | refs/heads/main | 2023-02-06T08:13:22.061807 | 2021-01-01T13:51:30 | 2021-01-01T13:51:30 | 325,987,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py | import threading
#this is for python 3.0 and above. use import thread for python2.0 versions
from threading import*
import time
import code as x
d={} #'d' is the dictionary in which we store data
#for create operation
#use syntax "create(key_name,value,timeout_value)" timeout is optional you can continue ... | [
"noreply@github.com"
] | Nivedha07.noreply@github.com |
69e9b2bd7bbdfc17ad9f50426744716f1198ec52 | de6e03e5385a8c502f144283d7cd1d85037ffee7 | /manage.py | 7beea34a6b0c6717b17e118914685d8c90e10485 | [] | no_license | WersonLu/OnlineCourse | 2c90b239be66643fa190294b0c0075d8e481f0c8 | 73b83b01962470db7ca029ce197f6451f51385f4 | refs/heads/master | 2020-03-07T18:21:11.104522 | 2018-04-01T14:20:36 | 2018-04-01T14:20:57 | 127,635,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "OnLineCourse.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that... | [
"wersonliu@gmail.com"
] | wersonliu@gmail.com |
46a5d806b0f68d94b2c637e192af5553b8235e20 | 3e97c223eb296f45a381e7914dc7b7cb803bd01a | /excelapp/utils/base64_util.py | 778de3e7c22fa99efacf19b149a686b5bfa2f1d6 | [] | no_license | masudanaoki/esgenewk | 2bc03bb3c5d56f5a444fdfb49485a4ff7e013d30 | e759dcc4a29d3677697e15db61bad1a668db8946 | refs/heads/master | 2021-04-15T02:00:34.716506 | 2020-05-31T13:24:04 | 2020-05-31T13:24:04 | 249,285,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | import base64
import os
class CustomBase64():
def encode_str(value_):
return base64.b64encode(value_).decode("ascii")
def decode(value_):
return base64.b64decode(value_)
if __name__=='__main__':
path ='/'.join([os.path.dirname(__file__), 'json.jpg'])
with open(path, 'rb') as f:
... | [
"masuda_naoki1016@hotmail.com"
] | masuda_naoki1016@hotmail.com |
1852c3c2284e4f7250580e691abf3bb3d9efa20e | f1a4bd3cc87ecda830709a62d713fbead6ceebc1 | /task/Test1/SaleProduct.py | 6f8fd28e2353253d634bbc3163dd1ac65e12d842 | [] | no_license | pgmakwana/ProductModule | 9fbd9b9d3505fb997006211b94c5fd12e716c941 | 6029baa66a7fd35c1b455796aeaeddfefc6b2ca0 | refs/heads/master | 2020-04-13T18:57:20.602029 | 2018-12-28T09:08:48 | 2018-12-28T09:08:48 | 163,389,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,127 | py |
import datetime
import re
class Sale:
sell_product_data=dict()
sell_status=''
def sale_prodcut(self,product_name,sell_quantity,manage_product_obj,company_name,max_discount):
"""
func:-this method sell the product are available in stock and give the discount when sell the pro... | [
"smartpg111@gmail.com"
] | smartpg111@gmail.com |
89e536de5a2cf953b9863c759056a5350c134ec8 | eac3d905a1c2230650afcb5b0c1a53a22f8ab51a | /venv/Scripts/django-admin.py | ab107fc68174259e9f45f3cecfd8c5c702438c9b | [] | no_license | MSDiLieto/Vinhos_AtividadeFinal | 9e6478b63c1455cb5345c70befa74c8477180359 | b13fdd4599e769bbfeb06fa33250b44d114b5f5f | refs/heads/master | 2022-11-12T05:49:57.760141 | 2020-07-03T02:33:29 | 2020-07-03T02:33:29 | 276,787,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | #!c:\users\marce\documents\desenvolvimentopython\vinhos\venv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"marcelo-souza94@hotmail.com"
] | marcelo-souza94@hotmail.com |
4693ca313f41d22d016567adb7c5c8c35466aa3a | 9a6f84c4fb931860dfbb825d812334e6dd2be975 | /facenet.py | f6f01c745dbe7265f4cd94213fbd8dfdfa93e95e | [] | no_license | misbah2014/imageprocessing | 92ade29788ba8a3ce503ceb03ee03dd191948335 | a81c1ae884183bc832250fbb90e2d3d381bde8db | refs/heads/master | 2023-02-28T14:02:43.631759 | 2021-02-10T11:32:04 | 2021-02-10T11:32:04 | 278,115,283 | 0 | 2 | null | 2021-02-10T11:32:06 | 2020-07-08T14:43:08 | Python | UTF-8 | Python | false | false | 21,595 | py | """Functions for building the face recognition network.
"""
# MIT License
#
# Copyright (c) 2016 David Sandberg
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, includ... | [
"noreply@github.com"
] | misbah2014.noreply@github.com |
10445f9a71f13523fca7627d75cae341995b9c9f | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/feature/vt/gui/util/AbstractVTMatchTableModel.pyi | 9bb8b66ed7016dae1a867a3badabf5b66a85a76a | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 60,357 | pyi | from typing import List
import docking.widgets.table
import docking.widgets.table.threaded
import ghidra.docking.settings
import ghidra.feature.vt.api.main
import ghidra.feature.vt.gui.filters
import ghidra.feature.vt.gui.provider.markuptable
import ghidra.feature.vt.gui.provider.matchtable
import ghidra.feature.vt.gui... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
6c9e743b6d3b73beced1b6aec98d540554da86fd | 055e3126c556082a9abe63ca31f6cd11ed4eeca4 | /2019-VR-Lab-Assignment-3-Code/lib/DesktopViewingSetup.py | c55ad75cb900708298d299f7956de4e299bd5b5a | [] | no_license | snugglejuice/VRLab | efd9e1713e66a22c18d550d2764eae15306f3eca | bd44595a1987a4bdebbfc3cb88dc3f3f18d02dc9 | refs/heads/master | 2020-08-20T08:42:32.232143 | 2020-01-29T14:57:05 | 2020-01-29T14:57:05 | 216,002,906 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,586 | py | #!/usr/bin/python3
# import avango-guacamole libraries
import avango
import avango.daemon
import avango.gua
from avango.script import field_has_changed
# import python libraries
import math
import time
# constant size of the window on the monitor in meters
SCREEN_SIZE = avango.gua.Vec2(0.45, 0.25)
# appends a camer... | [
"noreply@github.com"
] | snugglejuice.noreply@github.com |
340638c9f0c3e015b3386c6feb2570349c88090e | 0e0c41d6f1c70133593046a03cd77ebb4c60264e | /mentors_list/wsgi.py | 7ee4eebb490e9363b2304c5034ce1a4594662cf4 | [] | no_license | Aytegin/mentors_list | 8b2f94acf3027a271ee56985350ab6c7dcd63ff4 | b6ded9d56d834a0a9318b99199e92036e49d0157 | refs/heads/master | 2023-03-27T07:51:11.283423 | 2021-03-22T14:05:08 | 2021-03-22T14:05:08 | 350,370,726 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for mentors_list 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_... | [
"aytoshmuratov@gmail.com"
] | aytoshmuratov@gmail.com |
44d4718ba5738292fb9055afa883c7fc9e42a874 | 8a04d5ab6eaf64f4a0f75f8575398a4e71299a0a | /todoList/views.py | 28736112dedf2b13220ae4e688c1b6e27dea4157 | [] | no_license | Rulo180/django-todo | a1e251dc751c375d1902e47b23a6ca1882e40390 | 26302de59f3a34cc03e7a3f99df6fd935fadb752 | refs/heads/master | 2020-03-28T21:35:01.743605 | 2018-09-17T18:02:48 | 2018-09-17T18:02:48 | 149,167,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse
import datetime
from .models import Todo, State, Priority
def index(request):
todos = Todo.objects.all()
priorities = Priority.objects.all()
states = State.objects.all()
if request.method == 'POST':
if "taskAdd... | [
"mvallesacc@gmail.com"
] | mvallesacc@gmail.com |
da1254ee20b3b1ed799b4c9042deb75f3789aa58 | de222bcb9cc0975618515871e2453634726a630a | /id0-rsa-challenges/rsa_decrypt.py | 6f29158fe7da53313882619b5183672385f006b1 | [] | no_license | MikeMangione/crypto | b1f0bc034ae3e1ef1491576af96d0c1ddd703810 | bae971097c7777e5d1010b28b052a9cc1e7fe772 | refs/heads/master | 2021-01-22T03:57:45.519572 | 2017-03-15T16:09:09 | 2017-03-15T16:09:09 | 81,484,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | #!/usr/bin/env python
import hashlib
import gnupg
import string
import textwrap
from Crypto.PublicKey import RSA
from Crypto.Signature import PKCS1_v1_5
from Crypto.Hash import SHA
from base64 import b64decode
def hash_tests(input):
temp = hashlib.sha256(input).hexdigest()
temp = hashlib.md5(temp).hexdigest()... | [
"mjbm@bu.edu"
] | mjbm@bu.edu |
be0001f3b09da183ee40c5855d5794198269d7db | 7a59728868fc8bc81396f192a78e4dd184fb0201 | /simulation/simulate_ring.py | 65e3f6327a12593e872c4374b92ee1f61030cc9b | [] | no_license | chuan137/upiv-analysis | 1272d3515759bc6792c73fca9a2a13f074177381 | ed1a022a9e5069108fba49bcfd2ec736356a64ee | refs/heads/master | 2021-01-10T13:08:41.838545 | 2016-02-25T11:17:04 | 2016-02-25T11:17:04 | 52,277,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,777 | py | #!/usr/bin/env python
import sys, os
sys.path.insert(0, os.path.realpath('../python'))
import cv
import getopt
import matplotlib.pyplot as plt
import numpy as np
import numpy.random as rand
import tifffile.tifffile as tif
from helper import stats
# {{{ Helper Functions
def snr_ind(snr):
return 20 * np.log(snr) /... | [
"chuan137@gmail.com"
] | chuan137@gmail.com |
5f10068ac03c29178482b185887bee7392212628 | 83fe8e306e2c3ecaaf209ca42172db9b3cd96b11 | /ddz/pre_v1.0.5/player_role_enum.py | af2d2e3d8f2d773048c0f36c6651387ae191903c | [] | no_license | jmsking/game-landowner | 1e0627caad0aad7bdac2364de1137ebf58b54a76 | bfab41f0179d084409317a32779e28424aa8fa95 | refs/heads/master | 2020-05-19T18:19:05.600143 | 2020-01-20T09:57:51 | 2020-01-20T09:57:51 | 185,151,008 | 1 | 0 | null | 2019-05-13T14:22:06 | 2019-05-06T08:03:01 | Python | UTF-8 | Python | false | false | 254 | py | #! /usr/bin/env python3
from enum import Enum
"""
玩家角色枚举类
"""
class PlayerRoleEnum(Enum):
# 未确认
DEFAULT = -1
# 地主
LAND_OWNER = 1
# 地主上家
UP_LAND_OWNER = 2
# 地主下家
LOW_LAND_OWNER = 3 | [
"CHENJIE9@kingsoft.cn"
] | CHENJIE9@kingsoft.cn |
e8fe99987412e6501b01f3a14c3ce7fa7cbb8153 | 94286e9a8c0db3431138aef66b047fa2e3fd8684 | /bugs/utils.py | 34ce202f9aeba6635c21bbeb415d28e6d073d3cf | [] | no_license | LiKang6688/CST_TFIDF | 580d74f37844d6a6decdf8a531819658625b0123 | 051cb9d80aa664b1dc7425ad0a4dc4fc4dcdab5b | refs/heads/master | 2021-06-21T20:16:14.380655 | 2017-08-02T01:49:53 | 2017-08-02T01:49:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import string
from nltk import word_tokenize
from nltk.corpus import stopwords
from nltk.stem.porter import PorterStemmer
def tokenize(text):
"""Returns a list of stemmed and stopwords-removed tokens of the
given text.
Parameters
----------
text : string
The text to tokenize
"""
... | [
"kkllpaul7766@gmail.com"
] | kkllpaul7766@gmail.com |
bdfbf83734d219775c2fe66ab0115dd040f6d8a9 | 9b12a0bc0bcf07a1ce70b8476dc90099185fa5e8 | /venv/bin/django-admin | 0a29a624c86938e0d71f9d6f561641ca519dde6a | [] | no_license | priyadarshisanjay/Pyshop-Django | aedc40ad57b3561d06e2998c6db6aabc288e4baa | 327fb60474e1bed6b21dcb297d5d9a1d98013b57 | refs/heads/master | 2020-09-26T22:26:33.951228 | 2019-12-06T13:24:43 | 2019-12-06T13:24:43 | 226,331,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | #!/Users/sanjaypriyadarshi/PycharmProjects/Pyshop/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"priyadarshisanjay50@gmail.com"
] | priyadarshisanjay50@gmail.com | |
e4bda9859f944180f5ddbfdf07b9453b48ff6caf | 789633c6bf13f44c9b7aebd24851a11dd88a1b89 | /robot_software/scripts/test_cpu_load.py | d9a70c9bb7921f95ea03bc9ce389dec88330cb1a | [
"MIT"
] | permissive | qinchao1985/rt_control_system_for_a_mobile_robot | 757b88e402e3f87411b7d045905708c2961978a8 | 2d2f168958b57be5c66472f84b69c4fadc06b5ad | refs/heads/master | 2023-04-19T12:38:18.556860 | 2021-05-04T20:48:30 | 2021-05-04T20:48:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,583 | py | #!/usr/bin/env python
# coding: utf8
from __future__ import print_function
import rospy
import json
import sys
import os
import matplotlib.pyplot as plt
import psutil
import argparse
import numpy as np
# Constants
THIS_NODE_NAME = 'test_cpu_load_node'
FILE_NAME_BASE = "test_cpu_load_result_"
FILE_NAME_END = ".json"
c... | [
"ponomarevda96@gmail.com"
] | ponomarevda96@gmail.com |
e1963f605d19b81fd1e5b91118989d9cf41c77f1 | 702c6ea4b46e744a0a194805ff56232767826623 | /venv/Lib/site-packages/comtypes/gen/_00020430_0000_0000_C000_000000000046_0_2_0.py | b16c1fd77e65eb7f35d3ab50ab1b5062fa60f920 | [] | no_license | TinhPham89/VirtualPyRoBot | 479589d2d4edc00f16ac166e68ba5939b7c1ac84 | abf84e6f23e22133c67076d8d14e462c0d82a649 | refs/heads/master | 2023-05-13T05:06:34.300671 | 2021-06-06T16:11:11 | 2021-06-06T16:11:11 | 374,405,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,775 | py | # -*- coding: mbcs -*-
typelib_path = 'C:\\Windows\\System32\\stdole2.tlb'
_lcid = 0 # change this if required
from ctypes import *
from ctypes.wintypes import VARIANT_BOOL
OLE_OPTEXCLUSIVE = VARIANT_BOOL
OLE_CANCELBOOL = VARIANT_BOOL
OLE_ENABLEDEFAULTBOOL = VARIANT_BOOL
from comtypes.automation import IDispatch
from c... | [
"1613201@gmail.com"
] | 1613201@gmail.com |
a3f75cc79f63785b8df4b28491da5d1d8f31837d | d71d3e0dc2701937ee9b7ab777f366f8a312e317 | /manager/cached_templates/templates/products.create.html.py | 806aef431a7c8f3f74710dccffd18d6e6f0f747e | [] | no_license | jwiddison/Django-Mako-Plus-Ecommerce-Site | e03ebf3b2e5acede1cfe4cba5ec43989e1b08068 | 6bdf198909cd6a706fdc24f16f91c9d56fdc1a28 | refs/heads/master | 2021-01-13T15:25:11.924200 | 2017-02-14T18:04:50 | 2017-02-14T18:04:50 | 80,084,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | # -*- coding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1460129357.469097
_enable_loop = True
_template_filename = '/Users/Jordan/Documents/BYU/0 - Senior... | [
"jordan.widdison@gmail.com"
] | jordan.widdison@gmail.com |
41f3e4504258bf7eb315ccb9fa76996f1a5dafeb | f42608d292c5784f59d554337e2826d398d8391f | /base_structure/app.py | 6bb1662cfab3f3de20a53e3d3d4606af506412d7 | [
"Unlicense"
] | permissive | thinkAmi-sandbox/werkzeug-sample | e4e0000b0b1ee0c72acc36113b125765b185ce39 | fbf778ba8a83d5c91de1a5baa619087b0ab46199 | refs/heads/master | 2020-03-29T19:45:47.006365 | 2018-10-15T13:41:54 | 2018-10-15T13:41:54 | 150,279,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,492 | py | import pathlib
from werkzeug._compat import text_type
from werkzeug.exceptions import abort, InternalServerError
from werkzeug.utils import redirect
from werkzeug.wrappers import Request, Response
from werkzeug.wsgi import SharedDataMiddleware
class MyInternalServerError(InternalServerError):
def get_body(self, ... | [
"dev.thinkami@gmail.com"
] | dev.thinkami@gmail.com |
50b19da3bab54d9483138459604f70d5f5e1de8f | 0e2f7ec4227c62dd0e6a89b1cc4b1aa31545229b | /web/seleniumPO/page/add_member_page.py | c4112e64e8082f2af208bbdef207114588296cfa | [] | no_license | qkwlqkwl/homework2 | 6de7f450e31d1382d3d8054fc00205b0d726421a | 0aa8bf7a1354085d6fc76445219dd747974a158f | refs/heads/master | 2023-04-12T11:30:28.916891 | 2021-05-02T07:34:54 | 2021-05-02T07:34:54 | 337,769,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,495 | py | from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from web.seleniumPO.page.base_page import BasePage
class AddMemberPage(BasePage):
# 类型提示
# def __init__(self, driver: WebDriver):
# self.driver = driver
username = "username001"
account = "username001"
... | [
"penny.gao@qq.com"
] | penny.gao@qq.com |
f50d4463bf0b30fc4676896b773f4ee663cfafde | e5eec1428da1d24d3e9b86f5723c51cd2ca636cd | /implement/백준/로봇 시뮬레이션.py | 9be5407197c46650cd9bb30b77ca890fafa6f60f | [] | no_license | jamwomsoo/Algorithm_prac | 3c36c381f59277721517d331a8f1640399d80c1d | 8393f3cc2f950214c47f3cf0b2c1271791f115d0 | refs/heads/master | 2023-06-09T06:49:14.739255 | 2021-06-18T06:41:01 | 2021-06-18T06:41:01 | 325,227,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | import sys
def find_location(num):
global a,b
#print(num)
for y in range(b):
for x in range(a):
# print(board[y][x])
if board[y][x]:
if board[y][x][0] == num:
return y,x
return None
direction = [(0,-1),(1,0),(0,1),(-1,0)]
a,b = map(int,... | [
"41579282+jamwomsoo@users.noreply.github.com"
] | 41579282+jamwomsoo@users.noreply.github.com |
ad0993f8ca10ab676720ca42e8a6351c8d7fbd13 | ca3bd61db1cecd5611ff64c9a9fcb0c140c0e6cd | /endpoints/ml_endpoint.py | 99a4680ba0768f2641be588d022f78795b3f1c43 | [] | no_license | pkrasnyuk/python-Tensorflow-RESTfull-WebService | 37bad0a3f54d642384762cfb085e288006159967 | 394037311e463351e19e9386659196e1c8ae6a65 | refs/heads/master | 2023-07-25T13:36:21.473806 | 2023-07-05T20:56:10 | 2023-07-25T08:48:20 | 190,435,122 | 0 | 0 | null | 2023-07-25T08:48:22 | 2019-06-05T17:01:40 | Python | UTF-8 | Python | false | false | 701 | py | from flask import request
from flask_restplus import Namespace, Resource, fields
from controllers import LinearRegressionController
controller = LinearRegressionController()
instance = Namespace('mLearning', description='Machine learning operations')
degrees_model = instance.model('degrees', {
'values': f... | [
"pkrasnyuk@hotmail.com"
] | pkrasnyuk@hotmail.com |
9b8a0173239b0166c8131c2f44c2fbb1b12f4e07 | 639fff7853a454cfb3886b9654acffc07d9b247c | /Web/tempCodeRunnerFile.py | c9ee982af6880af12c6189b38812c02f0851326e | [] | no_license | mbraly01/LoGAN_Backend | b7af0949df5e8f444aa1a73be4c64c86e5617381 | 69135258c25af00abe5fcda62146ca205c3a66cd | refs/heads/master | 2023-07-10T13:51:52.884046 | 2021-08-18T19:19:15 | 2021-08-18T19:19:15 | 256,024,051 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | #create instance of resource class
s3=boto3.resource("s3")
s3_client = boto3.client("s3")
#get all buckets | [
"mattbraly2015@gmail.com"
] | mattbraly2015@gmail.com |
b3c877da3905e8640936f6f399eae2336e5f0de4 | 362130d2c6b5e9e96bd339d6e05836fa95d0901f | /migrations/versions/e9a099931f9e_.py | bbab729c39ba1b45ea7650cb1d5dd4831b7aed80 | [] | no_license | Rabu-Sufian/NSTUBloggee | e290eda18294a2b1fbe55cf746a77f8c8bcd5267 | 9fb8709cb6455be10dae46a41eaeab943b117ecb | refs/heads/master | 2023-02-10T05:48:23.537617 | 2021-01-08T14:48:39 | 2021-01-08T14:48:39 | 327,927,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | """empty message
Revision ID: e9a099931f9e
Revises: 47b4117b0952
Create Date: 2020-06-08 13:00:12.476159
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'e9a099931f9e'
down_revision = '47b4117b0952'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"rabiasufian75@gmail.com"
] | rabiasufian75@gmail.com |
502672bf82d4e3f11ecc9c84afcb26c1d89ab22d | 86b2c5fd542baca9b78a2852630a42450cf947b6 | /rplugin/python3/denite/source/buzuo.py | 746aa72ce3b93b62af79875f39f2e53299596cee | [] | no_license | iamcco/buzuo.vim | c07fcf8aefd05bf80b85ed4b03ddfb12f4e2777e | 80ecf1ff5489bb852577c6aa315ee600a0d7f2b7 | refs/heads/master | 2021-09-05T12:10:38.255331 | 2018-01-27T10:06:13 | 2018-01-27T10:06:13 | 111,390,008 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,606 | py | # ============================================================================
# FILE: buzuo.py
# AUTHOR: 年糕小豆汤 <ooiss@qq.com>
# License: MIT license
# ============================================================================
import os
import time
import sqlite3
from denite import util
from .base import Base
from .... | [
"ooiss@qq.com"
] | ooiss@qq.com |
f24ffe1517dc991ed705477e1b851b230fb42022 | 991b09e3ebc0a9561bf2c5d8f27ce1497816374c | /blogProject/comments/models.py | 18e55e75c4f1b36b4cd4729098ea4dbdefb4b9ff | [] | no_license | cindylyl/MyBlog | d144b42533abd401ac4332b5580674cb3368120a | 7b2c6d9a63de0f07499632caf59147f9715c45e8 | refs/heads/master | 2021-04-15T10:57:27.570514 | 2017-06-23T23:06:42 | 2017-06-23T23:06:42 | 94,569,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from django.db import models
# Create your models here.
class Comment(models.Model):
name = models.CharField(max_length=100)
email = models.EmailField(max_length=100)
content = models.TextField()
created_time = models.DateTimeField(auto_now_add=True)
post = models.ForeignKey('blog.Post')
def ... | [
"qifengxiyu.711@163.com"
] | qifengxiyu.711@163.com |
ec2a61260d952cbdbaf2e4abdfc61955db8ec40e | d138deda43e36f6c79c5e3a9ef1cc62c6a92e881 | /python/paddle/distributed/fleet/data_generator/data_generator.py | 669d2ea24a0c788bbe1c0cff38a843bd96e29016 | [
"Apache-2.0"
] | permissive | seiriosPlus/Paddle | 51afd6f5c85c3ce41dd72953ee659d1539c19f90 | 9602a182b2a4979247c09df1ec283fc39cb4a981 | refs/heads/develop | 2021-08-16T16:05:10.848535 | 2020-12-27T15:15:19 | 2020-12-27T15:15:19 | 123,257,829 | 2 | 0 | Apache-2.0 | 2019-12-10T08:22:01 | 2018-02-28T08:57:42 | C++ | UTF-8 | Python | false | false | 14,586 | py | # Copyright (c) 2020 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"
] | seiriosPlus.noreply@github.com |
e270dcbeefa4ab481dd13408b24358429ce5b39d | d462a2d7c7701019635dbeb0181b1a678924d6b3 | /shop/apps/carts/views.py | 261debef7b8fd648950eb5c437f1755b32b14a56 | [] | no_license | abidov/shop_pilot | 180f36bcef5550163e09ce5848e7a26bae0c1d8d | 99aa5685e2aff4f5b2c8d7920f31784fd92c53a9 | refs/heads/master | 2022-10-27T02:05:32.627197 | 2020-06-14T19:46:58 | 2020-06-14T19:46:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | from rest_framework import generics, status
from rest_framework.response import Response
from rest_framework.decorators import api_view
from apps.products.models import ProductItem
from .models import Cart, CartItem
from .serializers import CartSerializer, CartItemSerializer
class CartDetailView(generics.RetrieveUp... | [
"akmtvchyngyz@gmail.com"
] | akmtvchyngyz@gmail.com |
f480234b10eaf03de04a7ddb8fb926c8dcbb225a | 687b44eabc9b401aeb219910eaf3a82b565bac4f | /PythonClient/car/pause_continue_car.py | 6ea48076b0315afc163af7324a4fc7518f932147 | [
"MIT"
] | permissive | mitchellspryn/UrdfSim | ec284e572f1e0a4377f1ab7a49fd8a03691e56e1 | a8a46c2b317811ad83bcb46fd12ea75a2862a68e | refs/heads/master | 2022-07-19T06:31:39.349835 | 2021-03-17T00:45:00 | 2021-03-17T00:45:00 | 166,617,310 | 100 | 27 | NOASSERTION | 2022-06-22T20:39:10 | 2019-01-20T03:01:06 | C++ | UTF-8 | Python | false | false | 696 | py | import setup_path
import airsim
import time
# connect to the AirSim simulator
client = airsim.CarClient()
client.confirmConnection()
client.enableApiControl(True)
car_controls = airsim.CarControls()
for i in range(1, 6):
print("Starting command")
car_controls.throttle = 0.5
car_controls.steering = 1
... | [
"mitchell.spryn@gmail.com"
] | mitchell.spryn@gmail.com |
505e8d30a10b60169bf523694aad7ad9fc6482e8 | 11233dd1993002e5fa22f153575450b9cc41136c | /qt_files/mul_images/list_ui.py | 07e42f5366a1106ba540ff331b49f541da71a2e8 | [] | no_license | JosmarSuarez/Instance_Segmentation_Sandbox | d09dc2e2c0cd747950dc30472408ead38be922a4 | 3d699e0306ab85bb870cd7fa86656c7f06db609a | refs/heads/master | 2023-03-03T07:29:34.984379 | 2021-02-13T14:29:23 | 2021-02-13T14:29:23 | 279,152,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,849 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'list.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.s... | [
"luisjosmar@hotmail.com"
] | luisjosmar@hotmail.com |
c3ecef8c50aaf1395af86a399c5d27d03377254a | d14b494c5fb6105a698a973a0f673e68e9984fd4 | /Task2.py | 2cff7ae5c76706794e0960fb0bca630778b623f0 | [] | no_license | RaghavNitish/Unscramble-Computer-Science-Problems | 91e0632ae2d5fee91c62d5df8cb0bfd79ad662c8 | ec6faf1d21bade1da63fc4539cb673412fcd6550 | refs/heads/master | 2022-07-17T19:36:15.204663 | 2020-05-14T01:22:26 | 2020-05-14T01:22:26 | 263,782,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | """
Read file into texts and calls.
It's ok if you don't understand how to read files
"""
import csv
with open('texts.csv', 'r') as f:
reader = csv.reader(f)
texts = list(reader)
with open('calls.csv', 'r') as f:
reader = csv.reader(f)
calls = list(reader)
"""
TASK 2: Which telephone number spent the ... | [
"noreply@github.com"
] | RaghavNitish.noreply@github.com |
539aecdd188e3a890289569fcbdfa92c52246c41 | 7856ab5a2729b447916b6db25cc0a86996601b70 | /written/Assg1/test.py | 8a0ff7a72c47d4d8906c4d17bc2438a0eb4e7c0f | [] | no_license | amo004/Algorithms | c084acb96edcb9f03d2732bcaa92432c678c8368 | 8668cd808586e1ac1202e86c210809c65c13a438 | refs/heads/master | 2021-06-20T16:30:45.607151 | 2021-02-26T17:49:59 | 2021-02-26T17:49:59 | 183,738,807 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 357 | py |
def poly(n,m,T0,k):
#polyV = -k
#for i in range(0,n-2):
#polyV = polyV*m - k
return T0*(m**(n-1)) + k * (1 - m**(n-1))/(m-1)
def recurr(n,m,T0,k):
if n == 1:
return T0
else:
return m*recurr(n-1,m,T0,k) - k
for n in range(1,10):
print("poly = " + str(poly(n,3,2,4)) + ... | [
"amo004@uark.edu"
] | amo004@uark.edu |
03da8fde9a8aff510e7b931f33942b88ea3adc4d | 1105414add7c27eb201a0941e5bc86eb2f09378f | /journey5/cputype.py | 1cd845d82e52ffb0bf5afda36aa8b46e72d2220a | [
"MIT"
] | permissive | parrisma/AI-Intuition | d083204267c351bc85c796a79ce43b8ff9d58022 | 3b081696b1d226815e029cbb536fac5e4d3de9a7 | refs/heads/master | 2021-07-25T21:07:11.455443 | 2020-06-06T20:44:17 | 2020-06-06T20:44:17 | 193,102,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from typing import List
from enum import Enum, unique
from copy import deepcopy
@unique
class CPUType(Enum):
GPU = 'GPU'
GENERAL = 'CPU'
BATCH = 'BAT'
def __str__(self):
return self.value
def __add__(self, other):
if isinstance(other, self.__class__):
return self.valu... | [
"parris3142@hotmail.com"
] | parris3142@hotmail.com |
2a721ab75b3f316b228c97abac8ce3d54ea561e5 | cff297d685ac999dde956722b26f617f0c563127 | /district.py | d0b1c9cadb497645e3f0520d40999e8ad015c348 | [] | no_license | sebmichalowski/know_your_neighborhood | 940324c0282fe84f3c22e7389d71b6437ead1180 | 99c64947b6722a2d7f62bbc556220d8ca4ebac1f | refs/heads/master | 2021-01-20T16:38:47.974447 | 2017-03-06T04:44:33 | 2017-03-06T04:44:33 | 82,787,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | from localgovernmentunit import LocalGovernmentUnit
class District(LocalGovernmentUnit):
district_list = []
def __init__(self, province_id, province_name, province_type, district_id, district_name, district_type):
self.province_id = province_id
self.province_name = province_name
self.... | [
"seb.michalowski@gmail.com"
] | seb.michalowski@gmail.com |
1785059edb736e87c1935ca49bbbd074a20e414f | f8300d13a488e61b36cabd9869761b0a04a0811e | /posts.py | 09fed75324452c74cb1949318b2ba17b1724dc78 | [] | no_license | xaliceli/nd004-multiuser-blog | b4d73d6ad9caab048b7ba5a7cc45d2172d4e64ef | a01d81c0bb42cfb0c5cc66c3325decdd001ac52b | refs/heads/master | 2021-01-19T18:20:18.919047 | 2017-04-23T00:30:59 | 2017-04-23T00:30:59 | 88,356,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from google.appengine.ext import db
from handlers import Handler
class Post(db.Model, Handler):
subject = db.StringProperty(required=True)
author = db.StringProperty(required=True)
content = db.TextProperty(required=True)
date = db.DateTimeProperty(auto_now_add=True)
likes = db.IntegerProperty()
... | [
"xaliceli@gmail.com"
] | xaliceli@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.