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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c41845008487c6093767f0afb04faa5273492412 | 2729fff7cb053d2577985d38c8962043ee9f853d | /bokeh/sampledata/tests/test_perceptions.py | fd7da155b0a33f279e0b263f36c4dea9d66e1929 | [
"BSD-3-Clause"
] | permissive | modster/bokeh | 2c78c5051fa9cac48c8c2ae7345eafc54b426fbd | 60fce9003aaa618751c9b8a3133c95688073ea0b | refs/heads/master | 2020-03-29T01:13:35.740491 | 2018-09-18T06:08:59 | 2018-09-18T06:08:59 | 149,377,781 | 1 | 0 | BSD-3-Clause | 2018-09-19T02:02:49 | 2018-09-19T02:02:49 | null | UTF-8 | Python | false | false | 2,212 | py | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved.
#
# Powered by the Bokeh Development Team.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#---------------------------------------------------... | [
"noreply@github.com"
] | modster.noreply@github.com |
825c3a081928e9dfab29f460e918c27c3e835224 | 5f041c97889b1eade34669499c300eb764b4fc89 | /test/simple_match.py | 705d9e420743602afa8f119c86eb289b012ac2e6 | [
"MIT"
] | permissive | sirius8156/tea-recognition | d54df2ed0f341ee0bacd3f94f44d85d1b377b6ea | fec58fbca22627433bb37ba57942ebeaa5eefaa5 | refs/heads/master | 2020-03-17T06:21:09.946095 | 2018-05-14T12:17:46 | 2018-05-14T12:17:46 | 133,351,767 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,480 | py | # coding=utf-8
import cv2
import numpy as np
import tools.feature_extract as ife
import tools.feature_key_point as fkp
def test_match(img_path_1, img_path_2):
canny_img_1 = ife.get_canny_img(img_path_1)
key_points_1, desc_1, signed_img_1 = fkp.sift_img(canny_img_1)
canny_img_2 = ife.get_canny_img(img_pa... | [
"duyaming@baidu.com"
] | duyaming@baidu.com |
9fd8ade44c4ae07271c9aec55135a23ab06f9c4d | ed56a197b12d8e5cfca16cd314b188353aa46ebd | /scripts/get_rdkit_descriptors_for_all_datasets.py | 871681ff454e6e92507e593ffea0ca5fd0e8f191 | [] | no_license | GeorgeBatch/moleculenet | b0698f8cabb2cb65d3399d313e4e5bddad03c971 | a72cf362e0002261e8e1de1bfbcb65efac315437 | refs/heads/master | 2023-02-07T16:25:44.435430 | 2020-12-23T12:35:31 | 2020-12-23T12:35:31 | 278,653,042 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # Import modules
import numpy as np
import pandas as pd
import time
from rdkit import Chem
from rdkit.Chem import AllChem
from rdkit import RDLogger
from rdkit.Chem import Descriptors
# record time to show after execution of the script
since = time.time()
# For each dataset*smile_typecombination get the rdkit feat... | [
"george.batchkala@gmail.com"
] | george.batchkala@gmail.com |
8fd2424a8d46f18ffec8634804ad72d2101d76a1 | 8be1a938a7554bfa6c4c90f7734380bdb23c837a | /A3/systemctl (1)/1systems/B4p2p/pserver.py | 9b1cd15c4467b82361715e1c795f3f8bbe2a249e | [] | no_license | roninx991/Computer-Networks-TE | 4ddd64d544ebdaaa38d8fcc00c937bd4524806eb | f5c5b9952ae8926b6c71807cb2e7b2149802e5f6 | refs/heads/master | 2022-03-14T13:07:27.024369 | 2017-11-17T08:19:43 | 2017-11-17T08:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import sys
import socket
def server():
host = ''
port = 2000
serversock = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
serversock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
serversock.bind((host,port))
serversock.listen(1)
newserversock,addr = serversock.accept()
print "connected to ... | [
"sangatdas5@gmail.com"
] | sangatdas5@gmail.com |
124cc01f09e4a09f6b04f3d79b499aba8b561276 | 6796f5a07ae5fe7fd79ba700bd9e68d35b3b1959 | /src/_check_freq_azimuth_amp.py | 82af83d24ba562c7094e7e2641ff500b4aa8131b | [] | no_license | Hiroki-kt/robot-audition-experiment | 642d157514fb9ae886b5c65107a76c27d56cfdf4 | 40feab6231801bcd71ad71a049b60ab7e6e2ac5a | refs/heads/master | 2022-04-10T08:23:54.917243 | 2020-03-27T02:21:07 | 2020-03-27T02:21:07 | 214,172,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from _function import MyFunc
import sys
if __name__ == '__main__':
mf = MyFunc()
data_set_file_path = mf.onedrive_path + '_array/200220/'
data_name = '191205_PTs05'
origin_path = mf.speaker_sound_path + '2_u... | [
"katayama.hiroki.kb3@is.naist.jp"
] | katayama.hiroki.kb3@is.naist.jp |
00fdb46cfc5b0b82858263c76bdbebc1112d5445 | 9222357cc34a687321ee25e750f9aae6aa1989f5 | /alpaca_server/setup.py | e97fc25ced3488e8712da374e64f82210decb2fd | [] | no_license | codefly13/AlpacaTag | 0ad177d3ea22c2dda7849ee1ca0ab4654b2b4d7d | 9f34d495ba0d94fbf9b50e38f39d17113214007e | refs/heads/master | 2022-04-08T21:53:37.513880 | 2020-03-24T06:02:05 | 2020-03-24T06:02:05 | 259,337,840 | 1 | 0 | null | 2020-04-27T13:51:54 | 2020-04-27T13:51:54 | null | UTF-8 | Python | false | false | 1,168 | py | from os import path
from setuptools import setup, find_packages
# setup metainfo
libinfo_py = path.join('alpaca_serving', '__init__.py')
libinfo_content = open(libinfo_py, 'r').readlines()
version_line = [l.strip() for l in libinfo_content if l.startswith('__version__')][0]
exec(version_line) # produce __version__
... | [
"danny911kr@naver.com"
] | danny911kr@naver.com |
fe0b2ad7b2c4837a963b199042559a743734e1bc | ad9f6a77777dd0384e09a88fe0eddf0a3435fa98 | /ana.py | 48e1771235c0850d8ca825d99409d700cb13bf3c | [] | no_license | Keitokuch/csl_work | 608595277356b4339a6c665761cd4fae73ced69e | 6404445464ac60c3d1ce913eae902e272bba88a3 | refs/heads/master | 2021-08-17T15:34:36.528215 | 2020-09-17T23:11:33 | 2020-09-17T23:11:33 | 222,787,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,197 | py | import pandas as pd
import sys
# df = pd.read_csv('cmdata.csv')
# df = pd.read_csv('./parsec_2.csv', index_col='ts')
# df = pd.read_csv('./test_running.csv', index_col='ts')
filename = sys.argv[1]
df = pd.read_csv(filename, index_col='ts')
# print(df['can_migrate'].eq(1).sum(), df['can_migrate'].eq(0).sum())
# s... | [
"jingdec2@illinois.edu"
] | jingdec2@illinois.edu |
e55a27dca2368a2b46c0c89ab0d91c9214f68154 | 9f2f386a692a6ddeb7670812d1395a0b0009dad9 | /python/paddle/fluid/tests/unittests/ipu/test_print_op_ipu.py | 3189e060d58373250ba776271009bcab004e762b | [
"Apache-2.0"
] | permissive | sandyhouse/Paddle | 2f866bf1993a036564986e5140e69e77674b8ff5 | 86e0b07fe7ee6442ccda0aa234bd690a3be2cffa | refs/heads/develop | 2023-08-16T22:59:28.165742 | 2022-06-03T05:23:39 | 2022-06-03T05:23:39 | 181,423,712 | 0 | 7 | Apache-2.0 | 2022-08-15T08:46:04 | 2019-04-15T06:15:22 | C++ | UTF-8 | Python | false | false | 3,306 | py | # Copyright (c) 2022 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"
] | sandyhouse.noreply@github.com |
a4dc23eae566a3bc54d8ce9848d14fcec8cffa10 | dd240d4b1298117806d9218c409eaf3237b29509 | /test/test_min_edge_weight.py | c12d47401d1b0ece4159760694a6b6cc408d7120 | [] | no_license | NicolasBondouxA/openbackend_clustering_ls | 10a196ab012edc231aebed7dd88fbcec6a21760b | 36f0bbac9c5c2b09e5de578b32e3a5a8a0d913ba | refs/heads/master | 2023-04-21T15:54:19.426282 | 2021-05-17T17:44:03 | 2021-05-17T17:44:03 | 368,251,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | """
No unit tests in this class.
Class used to run a test campaign with different nb_clusters and min_edge_weight.
"""
import logging
import pathlib
import unittest
from openbackend_clustering.instance.instance import InstanceMatrixParser, display_graph
from openbackend_clustering.model.local_solver_model import LSM... | [
"nbondoux@amadeus.com"
] | nbondoux@amadeus.com |
9ee890146ce6af634c55139f125f346f2d8a82b8 | 4b3c57a19006ddc2136e20458fec330180f1dd19 | /19캡디 머신러닝/get_data.py | 8119c4c8dd2587bca9c871b882cd7f666e5951fe | [] | no_license | yangtae/Motion-Guantlet | 78fef29931b4cc296c7c798da480061516b5ca5a | f69cf152160cef627b6df7e4229af3769d51247e | refs/heads/main | 2023-06-09T17:52:42.978797 | 2021-07-03T13:42:21 | 2021-07-03T13:49:28 | 382,616,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | # file: rfcomm-server.py
# auth: Albert Huang <albert@csail.mit.edu>
# desc: simple demonstration of a server application that uses RFCOMM sockets
#
# $Id: rfcomm-server.py 518 2007-08-10 07:20:07Z albert $
import pandas as pd
from bluetooth import *
import pyautogui as p
import keyboard
import sys
# Global Variable
... | [
"xotjr1316@gmail.com"
] | xotjr1316@gmail.com |
847583d24105d7141eccf2797b87b466cbd57b01 | 99f43f4591f63d0c57cd07f07af28c0b554b8e90 | /python/프로그래머스/직사각형만들기.py | 16bef1835142eb60413503e1b66a432aafa71fc8 | [] | no_license | SINHOLEE/Algorithm | 049fa139f89234dd626348c753d97484fab811a7 | 5f39d45e215c079862871636d8e0306d6c304f7e | refs/heads/master | 2023-04-13T18:55:11.499413 | 2023-04-10T06:21:29 | 2023-04-10T06:21:29 | 199,813,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | def solution(v):
v = sorted(v)
x_dic = {}
y_dic = {}
for x, y in v:
if x_dic.get(x) is None:
x_dic[x] = 1
else:
x_dic[x] += 1
if y_dic.get(y) is None:
y_dic[y] = 1
else:
y_dic[y] += 1
answer = []
for x, cnt in x_dic... | [
"dltlsgh5@naver.com"
] | dltlsgh5@naver.com |
9f4a47f73799a81165385e13b29c9011492f03ef | c00b2b96e00cd999c5bafc9d9e0c57dcbdd080ac | /scripts/Kinda.py | 430cef06cf3eb5c2290e3179fa52ed1ea647eadf | [
"MIT"
] | permissive | thomaslao/home_edu | d038b038f47b84070a6978e927b99e06744897d0 | 6368967917892eb43164ca79fd4faeafb085be37 | refs/heads/master | 2023-05-01T07:09:27.467886 | 2021-05-12T08:58:53 | 2021-05-12T08:58:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | flag = 0
while True:
answer = main.answer_question_from_data(msg, kdata)['answer']
print(answer)
if answer == 'follow':
flag = 1
elif answer == 'stop':
k.move(0, 0)
break
forward_speed, turn_speed = f.follow(c.depth_image, flag==1)
k.move(forward_speed, turn_speed)
| [
"lamkinun@gmail.com"
] | lamkinun@gmail.com |
307953eec58975a8509f55196d62a9976bd07307 | f02cdc9bb054fe82895cbedba09dcb6284de0d88 | /driver.py | 3c9a97a16ea674fc7746a60848542fd3dff61d5a | [] | no_license | Nagesh-a5/A04 | bc2edd49bfe36a70d7653bf466fb085d204ed5cd | 725ee803cb211e5ff06a6e79dee5bdfd836d17c1 | refs/heads/master | 2020-05-18T01:45:24.575301 | 2019-05-08T04:41:48 | 2019-05-08T04:41:48 | 184,098,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | import os
import virtual
def read_file():
tasks=[]
for path, dirs, files in os.walk('vm_snapshots'):
for f in files:
fin=open(path+'\\'+f, 'r')
data=fin.read()
tasks.append([f, data])
return tasks
def get_params(str):
name, ext=str.split('.')
... | [
"noreply@github.com"
] | Nagesh-a5.noreply@github.com |
f3e8bbb985e9c431950c37d1dbd0f064440bd7c5 | 7437c54720a7e221ac99f436919c7988458abd1e | /src/tests/skills/test_sample.py | 4cd1e26fe0cf80a6258a959eecc4e1b7cd88fa71 | [
"Apache-2.0"
] | permissive | alexkryu4kov/DreamJob | e6a1ec4320836662f393f6080a5ee9600cf614ce | 27ae092d0086c8dde2ceb9598e65c3b79a654f56 | refs/heads/develop | 2023-08-04T14:35:54.231891 | 2019-12-04T15:45:20 | 2019-12-04T15:45:20 | 217,653,574 | 0 | 0 | Apache-2.0 | 2023-07-20T15:03:36 | 2019-10-26T04:03:03 | Python | UTF-8 | Python | false | false | 246 | py | from tests.constants import skills_request
def test_set_email_known_unknown(request_parser):
request_parser.set_email_known_unknown(skills_request)
assert request_parser.known == ['android']
assert request_parser.unknown == ['git']
| [
"noreply@github.com"
] | alexkryu4kov.noreply@github.com |
5ab89bff4f0be6f2e9393198d7937d50d28f6ba9 | bf683796ca0368468b0d361c91083f7ef1d19e11 | /mainapp/migrations/0005_auto_20200522_1011.py | 8672b1a9f9ba9c9e1385f01e03deea7275d8511a | [] | no_license | pavanvarma08/python-django-models-authentication | d5771a4a04f22f415f366d1699a19623cb989f6b | 83379653506081c50a92048fc689cd66e28fc889 | refs/heads/master | 2022-08-21T09:05:43.487596 | 2020-05-22T10:15:45 | 2020-05-22T10:15:45 | 265,871,127 | 0 | 0 | null | 2020-05-21T14:33:44 | 2020-05-21T14:33:43 | null | UTF-8 | Python | false | false | 695 | py | # Generated by Django 2.2.9 on 2020-05-22 10:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0004_blogpost'),
]
operations = [
migrations.CreateModel(
name='Tag',
fields=[
('id', mod... | [
"pavan.indukuri@ericsson.com"
] | pavan.indukuri@ericsson.com |
1e0e33a438ef73e28874fea87773b1cf5ca40c49 | 03b7823d164d126d40189305f5782cb24befeb72 | /detection.py | a092028d36973e02ab46541bea4abcb236e2aa79 | [] | no_license | doanab/person-detection | 518f6e4714baddcf0b6058275c5da29fcf7a5d47 | efb535547261fab6f8d2efe66f229103ce460e53 | refs/heads/master | 2021-03-24T17:08:39.189508 | 2020-03-15T21:19:20 | 2020-03-15T21:19:20 | 247,551,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # Them cac goi thu vien
from imutils.object_detection import non_max_suppression
from imutils import paths
import numpy as np
import argparse
import imutils
import cv2
# Tao doi so
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--images", required=True, help="path to images directory")
args = vars(ap.parse_args... | [
"doanbebk2018@gmail.com"
] | doanbebk2018@gmail.com |
55ff3c9682db0bd28e6eb9aa2c943bf04ef521d5 | d1be29b65e7e4118d42446d5c056bb55839358e1 | /Project-Euler/Problem-25.py | cd471aab0ec4a09d6a1314f78ebd96d3b0d4deb3 | [] | no_license | XiaoTaoWang/JustForFun | f77693139181ffc6ef102adbc670e4758a4b7e5f | 09ddf48f22994e6a8fc23bad32cbac41b62574b1 | refs/heads/master | 2021-01-10T14:37:12.211897 | 2016-03-13T04:38:47 | 2016-03-13T04:38:47 | 49,762,427 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 4 00:17:25 2016
@author: Xiaotao Wang
"""
"""
Problem 25:
What is the index of the first term in the Fibonacci sequence to contain
1000 digits?
"""
def fib():
a = b = 1
while True:
yield a
a, b = b, a+b
if __name__ == '__main__':
F = ... | [
"wangxiaotao868@163.com"
] | wangxiaotao868@163.com |
2060cc6036f984b39e6124ba18d02103c6b57d5d | 21b6f23951aa54e3c59a8a284f69599817f5c5ad | /filehandling_example.py | e25019dbbf3cd0a8eadee895f6288206c8f0f85c | [] | no_license | syladiana/basic-python-b3 | 1f94d70acdab93815dbc146bdbaeb5a3e715ea50 | 36ade0a5b7fbb488af53878b7430bfb4647e2238 | refs/heads/main | 2023-03-01T23:40:25.318183 | 2021-02-07T14:37:52 | 2021-02-07T14:37:52 | 328,089,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | def menu():
print("Menu: ")
print("1. Lihat daftar kontak")
print("2. Tambahkan kontak")
print("3. Keluar")
option = int(input("Masukkan pilihan: "))
return option
def show():
f = open("file_kontak.txt", "r")
print("List nama kontak: ")
print(f.read())
f.close()
def add():
... | [
"sylasudiana@gmail.com"
] | sylasudiana@gmail.com |
34e43b4116a0c8e45799e462f0469116df0a77a4 | 0645f92331396e03d449668bc37d5e26a82b07df | /hash_table.py | 02d8f06c69419dc8e4d0e5244206cab90983b18a | [] | no_license | jhkette/data_structures_algorithms | 8cfba599baf59028ae7ecf905745340f468dd675 | 9ed023082eb64aacb0eed32ed3987fc6d9e44dee | refs/heads/master | 2022-05-03T20:33:22.633849 | 2022-03-14T15:48:07 | 2022-03-14T15:48:07 | 205,164,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | # Given an array of integers, return indices of the two numbers such
# that they add up to a specific target.
# You may assume that each input would have exactly one solution,
# and you may not use the same element twice.
# Example:
# Given nums = [2, 7, 11, 15], target = 9,
# Because nums[0] + nums[1] = 2 + 7 = ... | [
"joseph.ketterer@gmail.com"
] | joseph.ketterer@gmail.com |
bc45b4f440231771d040320fa33af10e7caddee6 | 945ed3bc28abff20e7d4a445941fdd6b2161b3cd | /[python3]/generic.py | df70588171070948c7e2d33347fa6aa2a309a2d4 | [] | no_license | cash2one/adwords | 066a9f3173af37ea456488152c1e95fa16aae35e | ea1376286972886f8b6c47c5873558345ff81491 | refs/heads/master | 2021-01-21T10:55:45.940180 | 2017-01-30T11:04:28 | 2017-01-30T11:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,880 | py | #BookYogaRetreats
#Generic Keywords
######################################################################################
# import sys
# #set max cpc bid for keyword and ad group here
# print "Please type in the max cpc for the landing page."
# max_cpc = float(raw_input())
# if type(max_cpc) != float:
# sys.ex... | [
"stephanie@ebookingservices.com"
] | stephanie@ebookingservices.com |
325e307598c52d6975a86c8edc8054b6e0fe4a67 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200423012150.py | d1a2e804abef8dfd13862f5b3c728acfea003b0a | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,543 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 20200414
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una p... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
b3519ec67a53f9f13aa52c53f567d1d776edbd44 | 7f0710a8aea6f41044ee29651c32ca9eebfe7715 | /keys.py | 51be492a55aba4d87e010bbd3ee80b05cf282ec6 | [
"MIT"
] | permissive | KennethD96/IPX | 5d0f0aea471d4997404e1064c878f2b1d1ec0caa | 971b8197ab6d7f84c961b2f613311e98451ff992 | refs/heads/master | 2021-01-15T19:06:50.920263 | 2014-12-11T18:29:36 | 2014-12-11T18:29:36 | 99,811,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | ####
# The code within this file is copyrighted by its original creator,
# and obtained from the following URL. It is thus not covered by this
# project's license.
#
# Source: http://stackoverflow.com/a/13615802
##
import time
import ctypes
SendInput = ctypes.windll.user32.SendInput
# C struct redefinitions
PUL = cty... | [
"simen@lybekk.no"
] | simen@lybekk.no |
5c696de0f62ac5ddf947bd3c760a3a4cb5157354 | 7cda45674ecd42a371928bd7263ca959843b5436 | /Instagram/wsgi.py | da40952ae14e1ce64f4a6d88e6b263d03aa1f457 | [] | no_license | sachitbatra/Django-InstaClone | 096f3437ba74ca3609032077b25a8a299157cd80 | a69d71af91cade589a2bfc227ee50a66eea20c62 | refs/heads/master | 2021-01-01T16:22:39.806016 | 2018-11-24T17:20:00 | 2018-11-24T17:20:00 | 97,817,199 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Instagram 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"sachitbatra97@gmail.com"
] | sachitbatra97@gmail.com |
d7fae122e7f8a84921a3b1fe45c07f443c21ff43 | 89b2f5b08c441d4af0a63ed2ec1a5889bc92f0f7 | /NI_DJANGO_PROJECTS/urls_and_templates/second__app/urls.py | cfec6a5b99b358adb0edc6eaa0de920d58001cc6 | [] | no_license | KoliosterNikolayIliev/Softuni_education | 68d7ded9564861f2bbf1bef0dab9ba4a788aa8dd | 18f1572d81ad9eb7edd04300deb8c81bde05d76b | refs/heads/master | 2023-07-18T09:29:36.139360 | 2021-08-27T15:04:38 | 2021-08-27T15:04:38 | 291,744,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from django.urls import path
from second__app import views
urlpatterns = [
path('', views.index)
]
| [
"65191727+KoliosterNikolayIliev@users.noreply.github.com"
] | 65191727+KoliosterNikolayIliev@users.noreply.github.com |
c6977906e213e68c73e51c78565d020bd2a58022 | 2cefbfc49a118f1bc820e1acb4866cf13240d91b | /aula0305/regex.py | 5ed8891f447504ecd738ce002b8cfc5aabb1298a | [
"MIT"
] | permissive | proffillipesilva/aulasdelogicaprogramacao | c574aee382501f75a713b6b89a1e2f9a533e17d1 | f32d1019d4bfd5da371417911cb6bcafe58dfac7 | refs/heads/main | 2023-06-04T07:48:28.828672 | 2021-06-26T01:27:33 | 2021-06-26T01:27:33 | 354,985,186 | 1 | 25 | MIT | 2021-06-26T01:27:34 | 2021-04-05T22:06:40 | Python | UTF-8 | Python | false | false | 100 | py | import re
email = "<p>Aloha</p>"
valido = re.search("^<p>(.*)</p>$", email )
print(valido.group(1)) | [
"noreply@github.com"
] | proffillipesilva.noreply@github.com |
099107a1fc7a937fe06c9e7494308aa4d7f2223e | 26d030d1a8134f1900d11054dc63c674dc2beec8 | /main.py | 0895f7c340f491aad10624532b6215a61944c9a2 | [
"MIT"
] | permissive | kendricktan/pychip8 | 1ea1259abb61485c0db9bd26dda0201c2369452d | c9eb4f950f4546dbad0ca84f1c393d822a925a10 | refs/heads/master | 2021-04-27T15:44:17.064807 | 2018-02-23T14:28:13 | 2018-02-23T14:28:13 | 122,475,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from pychip8.emulator import Chip8
if __name__ == '__main__':
rom_name = 'pong.rom'
chip8 = Chip8(rom_name)
chip8.run() | [
"kendricktan0814@gmail.com"
] | kendricktan0814@gmail.com |
ae30829a988b8ab8e312dc21f65011b6c2658bcf | 8396606fcb98d8ab2d5e5a139da83e7ce0880324 | /galaxy-dist/lib/galaxy/web/form_builder.py | 72e71ab851b14a80aeb1253dc5f87971c253993d | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/Learn2Mine-Main | 87b3d6d7fa804568a93c4c7e8324c95574afc819 | acc0267b86ad6a9e5e1619d494c20407d4710e90 | refs/heads/master | 2021-05-29T17:48:17.844094 | 2015-09-14T16:19:36 | 2015-09-14T16:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,185 | py | """
Classes for generating HTML forms
"""
import logging, sys, os, time
from operator import itemgetter
from cgi import escape
from galaxy.util import restore_text, relpath, nice_size, unicodify
from galaxy.web import url_for
from binascii import hexlify
log = logging.getLogger(__name__)
class BaseField(object):
... | [
"nashtf@g.cofc.edu"
] | nashtf@g.cofc.edu |
d83ff0cf32e9893c0e9435a58e94531245790845 | e96c5e2770f3df29a9fdfe56ae0270648d1108df | /tweetsplitter.py | 06c45a5e432f441a545da97291619e10533ed1b7 | [] | no_license | NaruBeast/tweet-splitter | 66506dfc9b1d15d487204eeda93aec3ef028f36e | a94338631d465cb8d030d18a03e64c1f7de6930c | refs/heads/master | 2023-03-02T16:02:36.175667 | 2021-02-05T05:10:11 | 2021-02-05T05:10:11 | 336,168,834 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | def tweet_splitter(text, counter):
char_limit = 280
counter_char = 8 if counter else 0
end = char_limit - counter_char
tweets = []
break_points = ".,&!?;" # Sentence ending punctuations
index = 0
if counter: # By Punctuation with Counter
tweets_temp = [] # Temporary list... | [
"mohmahn@gmail.com"
] | mohmahn@gmail.com |
5fd20e3011e980f89584b88c39314ab97024b9db | 8a6a7d63f637c242052cbbb42b50dcf98f11642e | /inProgress/pyChess-master/BasicObjects/BaseObject.py | 0db35f95f4f00ccc470c4239e1ff7e520b605153 | [] | no_license | Paulware/waveSharePython | f77a7a2ab10c9ce52a180fe7e6607db59d36467c | 06b6b4f1527f31dbb4f65057c8c54559c36367cf | refs/heads/master | 2021-07-11T00:20:39.759342 | 2020-07-06T18:25:55 | 2020-07-06T18:25:55 | 168,863,769 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | """
BaseObject class
"""
# Module informations
__project__ = u''
__author__ = u'Pires Baptiste (baptiste.pires37@gmail.com'
__modifiers__ = u''
__date__ = u''
__version__ = u'1.0.0'
# Importations
# Specific definitions
# Classes / Functions declaration
class BaseObject(object):
"""
This class will... | [
"Paul Richards"
] | Paul Richards |
27bca25d2dc36b5ed3b2f910eae3ec8de7b5d080 | a1ef153a7249c50df517e978c7932e07757b426d | /mysite/polls/views.py | 6445a3a072999cd8c6ecb481ba52efaf2f9607f4 | [] | no_license | Sangry13/django-project | 1235e6de173ecd89ff67f1d230de35b5a34a2330 | 5e3e33e79ab564d5e3a2c782c9dfd272743a9fe7 | refs/heads/master | 2020-12-25T02:29:52.629177 | 2012-12-14T00:38:34 | 2012-12-14T00:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | from django.shortcuts import render_to_response, get_object_or_404, render
from django.contrib.auth.models import User
from django.contrib.auth import login, authenticate
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.template import RequestContext
fro... | [
"simeonf@gmail.com"
] | simeonf@gmail.com |
f00da1225c7993c12b6cda82ddca593124f48469 | 491ecd86c572906fcbc6e59f3f4ef4812e0022c4 | /mqtt-publisher.py | ea4633db38c84f9de1bf74e68db96d00fe5670a2 | [] | no_license | velmurugan2020/mqtt | d88e614eb907ed5b1c5cc93bc0d2393ebdde3d5e | 398e3548955fb4e2f1f809b72ff26a85e8289fb1 | refs/heads/master | 2022-12-08T19:13:29.788278 | 2020-09-01T12:13:55 | 2020-09-01T12:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | import paho.mqtt.client as mqtt
import time
broker_address="iot.eclipse.org"
#broker_address="192.168.1.102"
# This is the Publisher
client = mqtt.Client("p1")
client.connect(broker_address)
client.loop_start()
client.publish("test", "Hello world!")
client.disconnect()
client.loop_stop()
| [
"noreply@github.com"
] | velmurugan2020.noreply@github.com |
58a54670cfbc63f0049ae9e408774a69a90f14e8 | 98eed0bd411dbf36115d45299a669914ef7d3421 | /Ping-Ping/Jogo Ping-Ping.py | c014a5045b698be5beed8e784714c2060ef4eda2 | [] | no_license | GabrielMorais2/jogo-ping-pong | c5d833ac4501654022eef44f9ff37b87a6a0938f | c5866f205769776e1677d792abcc915399dcde30 | refs/heads/master | 2022-11-24T11:54:36.257323 | 2020-07-26T20:05:57 | 2020-07-26T20:05:57 | 282,724,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,756 | py | # Game Ping-Pong
# Imports
from tkinter import *
import random
import time
# Variável recebendo o valor digitado pelo usuário
level = int(input("Qual nível você gostaria de jogar? 1/2/3/4/5 \n"))
# Variável
length = 500 / level
# Instância do Objeto Tk
root = Tk()
root.title("Ping Pong")
root.resiza... | [
"noreply@github.com"
] | GabrielMorais2.noreply@github.com |
e281c75728a1005f2eeb65258609d547a8f7e51f | 4dbbd709f7a12976d52f102e05cedc0aec4b7c07 | /launcher.py | ec267e6249936d9e91832436d6f4bbb507e47c83 | [] | no_license | chartes/erasmus | 7b2ac3a4d5123897dc6ae0824e610bf615d090a6 | 5ec1662625112698e9c18cce83720e9371658ef5 | refs/heads/dev | 2020-03-21T18:01:03.711082 | 2018-07-17T09:11:42 | 2018-07-17T09:11:42 | 138,867,565 | 0 | 0 | null | 2018-07-17T09:15:19 | 2018-06-27T10:38:08 | HTML | UTF-8 | Python | false | false | 121 | py | from app import create_app
app = create_app("dev")
if __name__ == "__main__":
app.run(host='127.0.0.1', port=5020)
| [
"vrlitwhai.kridanik@gmail.com"
] | vrlitwhai.kridanik@gmail.com |
4589205cd366b6f298b02d86f9c43531f17d96f3 | 5d61acc1f9595047861f76b916cd28a167496f9e | /Configuration/GenProduction/python/ThirteenTeV/GMSB/GMSB_L500TeV_Ctau1200cm_Pythia8_13TeV_cff.py | 4c40005548ada354e0fd1851954fd8435b425dbe | [
"Apache-2.0"
] | permissive | zhangzc11/cms-gmsb-sps8-configs | 1bbd3cf2a45ee187f3e41ff51c409976fd59f586 | 838e6aac1d13251e050c0ee8c4ed26ca0c6cef7e | refs/heads/master | 2020-06-24T05:28:46.872990 | 2019-09-24T20:05:33 | 2019-09-24T20:05:33 | 198,862,590 | 0 | 0 | Apache-2.0 | 2019-07-25T16:03:09 | 2019-07-25T16:03:08 | null | UTF-8 | Python | false | false | 59,260 | py |
SLHA_TABLE = '''
# ISAJET SUSY parameters in SUSY Les Houches Accord 2 format
# Created by ISALHA 2.0 Last revision: H Baer 27 May 2014
Block SPINFO # Program information
1 ISASUGRA/ISASUSY from ISAJET # Spectrum Calculator
2 7.88 02-JAN-2018 11:01:14 # Version number
Block MODSEL # Model se... | [
"zzhang2@caltech.edu"
] | zzhang2@caltech.edu |
28bf6dde8bb5f2f4f836584daa7697bbbb60659a | 5679731cee36c537615d285ed72810f4c6b17380 | /492_ConstructTheRectangle.py | 864fd723b3b57af7cb42b67c170b150f6a55bac9 | [] | no_license | manofmountain/LeetCode | 6b76105190a9b62df65a7b56b6def4120498b9fa | 718f688b3d316e8c10ef680d9c21ecd518d062f8 | refs/heads/master | 2021-01-12T03:41:48.318116 | 2017-07-18T12:35:58 | 2017-07-18T12:35:58 | 78,252,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | import math
class Solution(object):
def constructRectangle(self, area):
"""
:type area: int
:rtype: List[int]
"""
width, res = int(math.sqrt(area)), list()
while width != 0:
if area % width == 0:
res.append(area / width)
... | [
"noreply@github.com"
] | manofmountain.noreply@github.com |
80c97795d9082435f7a91d8ed6670f3aaffe5112 | 7bca567686375d643542dedafd119546a3e63526 | /ex43_classes.py | 78d34f9e32e914e2bceb876def40ab3828020e39 | [] | no_license | gitkenan/Games-and-experiments | 50f263021b07afbf70564c84ae6fc223a3d71427 | 81e7e160fe381a32bc8a97c0a88d2f69b67ac8d0 | refs/heads/master | 2020-05-18T03:21:32.725115 | 2019-09-12T00:18:16 | 2019-09-12T00:18:16 | 184,143,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | from sys import exit
from random import randint
class Scene(object):
def enter(self):
pass
class Engine(object):
def __init__(self, scene_map):
pass
def play(self):
pass
class Death(Scene):
def enter(self):
print """You don't make it out alive. The Gothons take you captive
and ensure that you h... | [
"kenan.mth@gmail.com"
] | kenan.mth@gmail.com |
f2a995cb08d5daa59a055ec2dd0139d44f2eb797 | f54fc8f56e5710d990966f273bc783cff9818b41 | /train.py | 5471e3a2a81677241f10c537a1b2128441ae10ef | [] | no_license | xavierign/tangoAi | aea1d7c70308b0a4e0b04ff9039c972a3aa4f48f | bef793f6a55465dab195aae95ae242b18125d60a | refs/heads/master | 2023-06-19T15:33:41.593085 | 2021-07-04T19:57:59 | 2021-07-04T19:57:59 | 367,705,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | import os
import pickle
import numpy
from music21 import note, chord, instrument, stream, duration
import time
from keras.callbacks import ModelCheckpoint, EarlyStopping
from keras.utils import plot_model
from models.RNNAttention import get_distinct, create_lookups, prepare_sequences, get_music_list, create_network
fr... | [
"xig2000@columbia.edu"
] | xig2000@columbia.edu |
2fb599f614a7c8f7aecc28811d5fdeeaa7f4f484 | 3e03f4701ed09f5bf4f53c9b47fa9ebf36309bfb | /ctpExecutionEngine.py | 56eb521829d68a22d4f2f9118a4ba1c4c43433bb | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | WinQuant/arsenal-ctp-driver | 387926c08d37866a6bdc12e01265cb903bc3ea1f | 23acd98b8df8e4c7407b14a5b01de6679f2d2501 | refs/heads/master | 2021-01-21T08:02:07.396257 | 2017-02-28T07:42:26 | 2017-02-28T07:42:26 | 83,330,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,887 | py | '''The execution engine for CTP interface.
'''
'''
Copyright (c) 2017, WinQuant Information and Technology Co. Ltd.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code m... | [
"qiush.summer@gmail.com"
] | qiush.summer@gmail.com |
0a2e966187b89beb9f8331300b18f5e41d660407 | 69c882c678103b182988fb60d3e898d569980f1c | /Day 6/day6prog14.py | 6b4f901785e52ff819f090084f7e227d01a62b68 | [] | no_license | gittygupta/stcet-python | 44be9d91cdd6215879d9f04497214819228821be | e77456172746ee76b6e2a901ddb0c3dbe457f82a | refs/heads/master | 2022-03-05T11:37:08.720226 | 2019-12-01T00:56:03 | 2019-12-01T00:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | def fact(x):
pro = 1
for i in range(1, x+1):
pro *= i
return pro
def perm(n, r):
return (fact(n)/(fact(n - r) * fact(r)))
n = input("n = ")
r = input("r = ")
print(perm(n, r))
| [
"noreply@github.com"
] | gittygupta.noreply@github.com |
1e9cb8061f6aae23dd4a1704f261f1fd6fbb8916 | b85c21315f9ebb19b76cb1bab2f904fa7c726f11 | /预科/7-10/作业讲解/非诚勿扰.py | d58a2a48159a290b9c7ab3699fa64ffc9bd2ea1a | [] | no_license | Ngyg520/python--class | 10d07981dc7fd1a559bc9ab1acec68840c5f0cf0 | 58647b6a8e9ad631ce5dc293395cc8bddd992adc | refs/heads/master | 2020-03-26T11:28:19.367471 | 2018-08-15T11:27:37 | 2018-08-15T11:27:37 | 144,844,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | man_age=int(input('请输入男生的年龄:'))
man_height=int(input('请输入男生的身高:'))
man_weight=int(input('请输入男生的体重(公斤):'))
man_income=int(input('请输入男生的收入:'))
woman_age=int(input('请输入女生的年龄:'))
woman_height=int(input('请输入女生的身高:'))
woman_weight=int(input('请输入女生的体重(公斤):'))
woman_income=int(input('请输入女生的收入:'))
if (20<=woman_age<=30) and (... | [
"1755193535@qq.com"
] | 1755193535@qq.com |
8c6c97e42f1033b93ec5c59b7037a4bbb78588ae | f570654b7b7edd4fb45f8ff6610c68c99ecf3d9b | /restaurant/restaurant/urls.py | 926eb83fc79b9875032a8f4fa4abf3e43860e7b0 | [] | no_license | Sam11360/django | 596f8d7a224f80486bf71c29cfa40c54ea40db70 | 3fa5a62888e1671a68dd94d8bb9156c86d48a59c | refs/heads/master | 2021-01-21T14:56:40.622282 | 2017-07-03T13:59:50 | 2017-07-03T13:59:50 | 95,230,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | """restaurant URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"baleclyps@hotmail.fr"
] | baleclyps@hotmail.fr |
7d02c53728c44c82d12d502f85beedd67a1d19c0 | d631bcbcec6b0d4fc2a6e3e18d6d23ef7eb462e3 | /inventoryproject/user/migrations/0001_initial.py | e97923b45f902c1f34fe3c901c7ff57f0f453c34 | [] | no_license | NazmulMilon/inventory_system | 63e1e027977969f5fc3035811d367e8ed5277b1a | 58740904372333c779c27877b3f9ff1ae165fad5 | refs/heads/master | 2023-07-13T21:42:46.256820 | 2021-08-26T19:38:20 | 2021-08-26T19:38:20 | 399,541,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # Generated by Django 3.2.6 on 2021-08-25 16:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"milon16103373@gmail.com"
] | milon16103373@gmail.com |
cd7fd456176850a00ea9e237f482bc0ff0b23b23 | 400ad761259442dec1a496f0e8bf516a1665ce0b | /sorters.py | a72d3fb116e422508db30994dc5f55a6f071b72a | [] | no_license | trevanreeser41/bom_words | dcdfabc5e4232e556315a0c6db9468b464f10097 | d89c017485745b42b5449e53a8e033d9d3196494 | refs/heads/master | 2021-05-20T09:42:50.144121 | 2020-04-01T16:40:01 | 2020-04-01T16:40:01 | 252,231,409 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,865 | py | # Parameters in the following functions:
# data: a list of tuples
# index: the tuple index to sort by
#
# Consider the following example data:
data = [
( 'homer', 'simpson', 50 ),
( 'luke', 'skywalker', 87 ),
( 'bilbo', 'baggins', 111 ),
( 'mike', 'azowskie', 21 )
]
#
# bubble_sort(data, 0) sorts ... | [
"trevanreeser41@gmail.com"
] | trevanreeser41@gmail.com |
3ff68a4c1c5275640a532fc3ea8213874164cbde | 81435421d3741d7c3a09f66537427717fe0ee823 | /PyBitcoin/utils/conversions.py | 87f2a53f9dbe6a2b8e4fc1b337b17932ecfcda1f | [] | no_license | Scowley4/PyBitcoin | 2d958c3c164d45f7544465e8bab4105fee78352e | 7fa228e06907a57b27cd82710eeb2adda5f2f207 | refs/heads/master | 2020-05-03T07:03:49.276531 | 2019-04-18T15:04:51 | 2019-04-18T15:04:51 | 178,488,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | def hex_byte_swap(h):
"""Swaps endianness of a hex value."""
return bytes.fromhex(h)[::-1].hex()
def int_to_nbyte_hex(i, n, lendian=False):
"""Converts int to nbyte hex."""
h = ('{:x}'.format(i)).zfill(n*2)
if lendian:
h = hex_byte_swap(h)
return h
def int_to_varint(i):
"""Converts... | [
"stephencowley44@gmail.com"
] | stephencowley44@gmail.com |
1e02d4a21be50b792bdf4b14e5bcc50bd4fd9afd | c231c3205adc965d98ab69e846e543bf38207b1a | /bin/notify-proxy | ab5951b17672d6248aafc96e8555f19c39b7f9af | [] | permissive | rasa/dotfiles-3 | 879bc9cbfda315d68055c03c375ebcd4e64d70bd | 3438a379c5c70074ca697937126f3f28409db293 | refs/heads/master | 2023-09-05T13:58:03.095705 | 2021-11-22T18:41:44 | 2021-11-22T18:41:44 | 354,554,255 | 0 | 0 | MIT | 2021-04-04T13:44:12 | 2021-04-04T13:44:12 | null | UTF-8 | Python | false | false | 2,812 | #!/usr/bin/env python3
import asyncio
from distutils.spawn import find_executable
import os
import logging
import json
logger = logging.getLogger('notify-proxy')
notify_send_path = find_executable('notify-send')
@asyncio.coroutine
def is_focused(window_title):
environ = dict(os.environ, NOTIFY_TITLE=window_tit... | [
"github@skywww.net"
] | github@skywww.net | |
f7bddb9f78d1af55f6cdc5c3f6c8d5430cbb95c3 | a11b99b9e423eda5c4e0b26d32b93fe9af5967e7 | /app/posts/models.py | df64e4d71ec671f464ad64ba92615657084ff745 | [] | no_license | vintkor/test_app_drf | d88d86717d5d1b05c0114584397c7932515caa61 | 2aceb5185f95ef2ee8c082ff7e89b8a8e34e7c2d | refs/heads/master | 2022-04-29T13:15:08.311520 | 2020-03-19T09:48:04 | 2020-03-19T09:48:04 | 248,354,484 | 0 | 0 | null | 2022-04-22T23:10:47 | 2020-03-18T22:13:07 | Python | UTF-8 | Python | false | false | 993 | py | from django.db import models
from django.contrib.auth import get_user_model
from django.utils.translation import gettext_lazy as _
User = get_user_model()
class Post(models.Model):
author = models.ForeignKey(User, on_delete=models.CASCADE)
title = models.CharField(max_length=255)
text = models.TextField... | [
"alkv84@gmail.com"
] | alkv84@gmail.com |
fa5a3c808bc276ec761788b984f27ff991cc67d7 | f5b221c8b6926ae4ab5ba65e636acb67eb35554c | /groups_manager/migrations/0001_initial.py | 42d87452c34c1d38449475d63bf4b7be9e222bd4 | [
"MIT"
] | permissive | vittoriozamboni/django-groups-manager | 2f388ef6d29c37194ce3f43d103eee054ad51c45 | b07ee33e9dd45cdf21e9d5b5e574c5ac85bab3d9 | refs/heads/master | 2023-07-01T02:30:58.548617 | 2023-06-15T09:49:48 | 2023-06-15T09:49:48 | 25,861,369 | 95 | 33 | MIT | 2023-06-15T09:49:49 | 2014-10-28T09:15:27 | Python | UTF-8 | Python | false | false | 6,381 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import jsonfield.fields
import mptt.fields
import django.db.models.deletion
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('auth', '0001_initial'),
... | [
"vittorio.zamboni@gmail.com"
] | vittorio.zamboni@gmail.com |
a07208baa41623aadfd3f44d003830fe174faa6c | 73b4efb5e2f79131d083711e84f06edf1db92966 | /RDT_2_1.py | d3a76058328615b0520a636ebe8963ac9d5b6dc2 | [
"Apache-2.0"
] | permissive | nicktonj/466-prog-2 | a801a8173a287de763763e97b090cda6dd5649ae | caf362b91818fb4f356a34dbcb62c0f55f977398 | refs/heads/master | 2022-03-01T04:09:03.605837 | 2019-10-12T00:20:55 | 2019-10-12T00:20:55 | 212,420,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,616 | py | import Network_2_1 as Network
import argparse
from time import sleep
import hashlib
# This is a Packet class
class Packet:
## the number of bytes used to store packet length
seq_num_S_length = 10
ack_S_length = 10
length_S_length = 10
## length of md5 checksum in hex
checksum_length = 32
... | [
"zbryantaylor@gmail.com"
] | zbryantaylor@gmail.com |
39a076f793af787e4e0f6223f985459d3b3a06eb | ebd2de1b198d3aacfe18f1e04788beaf81a00948 | /npc.py | a349798d548a7b1c4b671f593daf77df9fdf9233 | [] | no_license | Manethpak/python-text-adventure | 0a0d38b04ed3286496523916d8809ac0440aa8f4 | b3762260822ca6782888678af71cdee54f735944 | refs/heads/master | 2023-01-29T04:04:59.228919 | 2020-12-12T07:07:06 | 2020-12-12T07:07:06 | 303,360,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | import items
class NonPlayableCharacter():
def __init__(self):
raise NotImplementedError("Do not create raw NPC objects.")
def __str__(self):
return self.name
class Trader(NonPlayableCharacter):
def __init__(self):
self.name = "Trader"
self.gold = 1000
self.i... | [
"58499300+Manethpak@users.noreply.github.com"
] | 58499300+Manethpak@users.noreply.github.com |
ba5005318e358cdcd9c9dfb8ddb237303ae65140 | 8a3b144f871815b9e89e6b4326910747817a4bc7 | /learning_logs/models.py | 3d6d9289b0340984e28a31ca8680d39defe1c6be | [] | no_license | borays/learning | b71777be9298dc87b81f821319d0131495762ee7 | e2e5ab0fe6859635b329a844837546b711b557e3 | refs/heads/master | 2021-01-21T01:33:22.570183 | 2017-08-30T12:43:51 | 2017-08-30T12:43:51 | 101,879,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | from django.db import models
#for user data
from django.contrib.auth.models import User
# Create your models here.
class Topic(models.Model):
text = models.CharField(max_length=200)
date_added = models.DateTimeField(auto_now_add=True)
owner=models.ForeignKey(User)
def __str__(self):
return s... | [
"borays@qq.com"
] | borays@qq.com |
a7a56c33c5dc7c3f5ec6f3f23457b3c7828ea508 | 1ddae0fb9cbcc187a4fcafadf668dba75f9dbc74 | /prac_07/hello_world.py | 4bcf821b59cecf75876a72b03856cbbb12f2b320 | [] | no_license | riskarampengan/CP1404 | d21bba7317d55398074f64b4d3eaf51a6bb9f490 | aa1fc655bcb75b5401e6884baa89401107585a6e | refs/heads/master | 2020-06-21T16:25:01.302935 | 2019-09-26T13:30:06 | 2019-09-26T13:30:06 | 197,501,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | from kivy.app import App
from kivy.app import Widget
class HelloWorld(App):
def build(self):
self.root = Widget()
return self.root
HelloWorld().run() | [
"noreply@github.com"
] | riskarampengan.noreply@github.com |
5e54e5543f6dc3aa9f9a040b8151490d7c0ce6cc | 3aecb162945b4738bf5a13ae10a638fb42057bdc | /ex46.py | b0fd8865135316d587da3fa683e94b19bbfd4ab7 | [] | no_license | tmemud/Python-Projects | c35f38f5adfafdc24356ac889780358283147328 | c6330986cd49f19014e18dfb12b976574d962931 | refs/heads/master-Repo | 2023-02-02T17:34:25.229646 | 2023-01-31T13:16:55 | 2023-01-31T13:16:55 | 265,056,954 | 0 | 0 | null | 2023-01-31T13:16:57 | 2020-05-18T20:41:52 | Python | UTF-8 | Python | false | false | 209 | py | #average in a loop
count=0
sum=0
for other_numbers in [1,2,3,4,5,6,7,8,]:
count= count + 1
sum= sum + other_numbers
print(count, other_numbers, sum)
print(count, other_numbers, sum/count)
| [
"noreply@github.com"
] | tmemud.noreply@github.com |
dc5ea16ec7bea01bcd37de490d79bc1f42277f89 | 174dd6831c7c79dc299bf83b7278c72244f553f8 | /Una0112/source/0804/GET.py | 84abad7bd36e93952abbfd1337b39dfa2ff8c7fc | [] | no_license | Zaybc/bingyan-summer-camp-2020 | a4e95cd5c2ac6bd7687516c02f0336587e7ae2e7 | 821b949565a4cbb4f5d3d89c3ea13c04518c60bc | refs/heads/master | 2023-04-15T21:25:41.432267 | 2021-03-20T07:24:53 | 2021-03-20T07:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Aug 3 16:15:22 2020
@author: 16038
"""
import urllib.request
import urllib.parse
import ssl
# 取消代理验证
ssl._create_default_https_context = ssl._create_unverified_context
# url 地址
url = "http://www.baidu.com/s"
word = {"wd": "贴吧"}
word = urllib.parse.urlencode(word) # 转换成ur... | [
"59985892+Una0112@users.noreply.github.com"
] | 59985892+Una0112@users.noreply.github.com |
22b53232f46e095efd4866c40161ce323aec31d8 | 7940c9c528057521a4b2c6a9608edf48706139c9 | /code.py | 6c3b6df0054ed69aa9d8d1242634d30b89dc3114 | [] | no_license | msafdarkhan/mydata | 4f700d7b9c6709eb200cc733841ba0aa6f75c13a | 37589f71f68afb2d92ca592e8093dbf940e5c73d | refs/heads/master | 2020-06-01T20:21:38.214830 | 2019-06-13T17:50:16 | 2019-06-13T17:50:16 | 190,915,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,627 | py | from tkinter import *
#Defining all Sub-routines:
####################################################################################
def identify():
import cv2
import numpy as np
import os
identifier = cv2.face.LBPHFaceRecognizer_create()
identifier.read('trainer/trainer.yml')
cascadePath = ... | [
"noreply@github.com"
] | msafdarkhan.noreply@github.com |
628a3cc362d668c9258cc2ea42153488961de655 | d8b19fd2011ef684444c94bdabd15cfdea61d340 | /pythonProject/data08/dataframe살펴보기/데이터프레임으로읽어오기.py | 081d7dbd7586cebaa4ee522bb36394a991f7eb1f | [] | no_license | kanu21sj/Python_Edu | 28045690addd2b161a4d134dd06be29da8dbee18 | f5b3cc3e3841a32dcf6297b2c7c3dbe72bc9a24e | refs/heads/main | 2023-04-19T01:24:20.103017 | 2021-05-06T01:10:19 | 2021-05-06T01:10:19 | 364,742,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | # 데이터를 2차원 데이터의 형태인 테이블로 읽어오려면 pandas 라이브러리 필요
import pandas as pd
import numpy as np
df = pd.read_csv("../data/2010.csv")
print(df) | [
"kanu21sj@gmail.com"
] | kanu21sj@gmail.com |
24c29542f75701de4464297026f75f48b43d3ed4 | 18e2effa75180759d4fed875ae5a9a53dbbd93f9 | /HackerRank/Candies.py | d328bac5aa5726b461bcf42da137cb15f3a4e137 | [] | no_license | Shubham20091999/Problems | 3161422cc3d502df12a52bf62f078e727dc4f3c5 | 565fdd452a9c7f5db58ca3baf7cfeca6c824e459 | refs/heads/master | 2021-07-12T03:07:50.153479 | 2020-08-28T15:30:48 | 2020-08-28T15:30:48 | 198,468,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # https://www.hackerrank.com/challenges/candies/problem
def candies(n,arr):
candies = [1]*n
# Forward
for i in range(1,n):
if arr[i]>arr[i-1]:
candies[i] = candies[i-1]+1
# Backward
for i in range(n-1,0,-1):
if arr[i-1]>arr[i] and candies[i-1]<=candies[i]:
ca... | [
"shubham.patel@jai-kisan.com"
] | shubham.patel@jai-kisan.com |
fc579a4c1ef34346215732c86f64d6cccd35a1d7 | 0c212aa63d07e84fbad849d15f2ee6a72aea82d2 | /03-Package/p05.py | 97746f6706a0c92afc79db4efa4a3440e9f2a3a6 | [] | no_license | flyingtothe/Python | e55b54e1b646d391550c8ced12ee92055c902c63 | 064964cb30308a38eefa5dc3059c065fcb89dd9f | refs/heads/master | 2021-08-06T19:44:42.137076 | 2018-12-03T12:15:15 | 2018-12-03T12:15:15 | 145,518,863 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | from p01 import *
sayHello()
stu = Student('sss', 88)
stu.say() | [
"heidemeirenai@163.com"
] | heidemeirenai@163.com |
a2cb206e12ecf1ac18256a7a20df090cdb7e6379 | 4fb0feb7f460dae19d788bcea02e294020fc5fc3 | /src/AlgorithmGridView.py | 71566f844b520ad58a7e56863042ef2625da4983 | [] | no_license | TheChouzanOne/AlgorithmCompare | e24033fde6aa6e2ff469bfe08807ad1d4912cc8c | b76dc6221c5ea39ed48f4f3802d94f4bb6181444 | refs/heads/master | 2022-09-06T10:02:55.402314 | 2020-05-26T01:14:48 | 2020-05-26T01:14:48 | 262,175,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import graphics as gx
class AlgorithmGridView:
def __init__(self, width, height, nodesPerSide, config):
self.config = config
self.background = self._getAlgorithmGridBackground()
self.titleLabel = self._getTitleLabel()
def draw(self, window):
self.titleLabel.draw(window)
... | [
"thechouzanone@gmail.com"
] | thechouzanone@gmail.com |
5106b4bc6065ba4a922017012271755814c6cbb5 | ad0df4e7cd5a75f9272ec40321c9e4863d40dc18 | /extensions.py | 0f2c9962d20e3e92841d4e984adf2adf3548e067 | [] | no_license | gitxiangxiang/crawls_of_guangxi | 2ddad8d61384553aaddd9367ea6d93289350428e | f5174928cc072078c7bfbde3e25883ee15125d77 | refs/heads/master | 2023-01-02T07:36:28.806193 | 2020-11-01T17:17:18 | 2020-11-01T17:17:18 | 297,000,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | from scrapy import signals
from scrapy.crawler import CrawlerProcess
from scrapy.exceptions import NotConfigured
from guangxi_by_sxp.utils import SpiderCounter
class SpiderOpenCloseLogging(object):
def __init__(self, item_count):
self.item_count = item_count
self.items_scraped = 0
self.sp... | [
"xiang@git.com"
] | xiang@git.com |
fba5870fe191a0fc0b1193de47a1b812cb0a2846 | 7574d5b3dc8a6feb9a363fed8e7303a110faf4ba | /public/cgi-bin/signup.cgi | 29f954e826aeee78159eb13fb8371a6a8cea4091 | [] | no_license | augustecolle/Komen-eten | a6b4e820734291083cf122127d0122e5d458e5bc | 50ca2087ef26e059d28b5353b304a635eb26fcc0 | refs/heads/master | 2016-08-12T03:00:56.172754 | 2015-07-15T19:40:19 | 2015-07-15T19:40:19 | 36,119,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | cgi | #!/usr/bin/python
# this script uses passlib to hash the passwords
# to install it:
#
# pip install passlib
#
#
import imp # to find our user_database module
mod = imp.find_module("user_database",["."])
user_database = imp.load_module("user_database",*mod)
import cgi,cgitb; cgitb.enable()
from user_database import Us... | [
"camille.colle@ugent.be"
] | camille.colle@ugent.be |
7cc4981c7cd0c60282834db79a919e6aa5ad472b | f879a376a17de22256257436bc59d34fa45a0c05 | /estado.py | 414e34caf7ad1669a60dcd10d6ab04713ab4a8e2 | [] | no_license | braldanago/Trabajo1 | c2b58c3b9089ae92e8b97e80bb35cc28ec980455 | 5bdce9246f4c5a3f3d9ed559ceb5d57e9f4fc9a1 | refs/heads/master | 2021-06-23T19:19:27.700833 | 2017-08-11T03:00:11 | 2017-08-11T03:00:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | def dec_a_bin(decimal):
if decimal == 0:
return ""
else:
return dec_a_bin(decimal//2) + str(decimal % 2)
print("Resultado " + dec_a_bin(6))
| [
"noreply@github.com"
] | braldanago.noreply@github.com |
277a305282a2d7828d7ea54255db9def6e09bb6b | 4f6fff91dce0f9712a4c2d3bd02ac5608e48dc8e | /garageproject/models/pemilik_motor.py | 54942dd0c93d1e9591fa30614289fbd49bb22ae4 | [] | no_license | ManBeunta/ThreeGaragePython | 473046965c6255b7e2e7a8e228b1084e80e89a07 | b02c6b59b1c47f6bef07f275d7125ad65879948a | refs/heads/master | 2023-02-15T20:18:12.912033 | 2021-01-06T17:05:53 | 2021-01-06T17:05:53 | 326,122,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from django.db import models
from garageproject.models.size_motor import Size_motor
from garageproject.models.brand_motor import Brand_motor
class Pemilik_motor(models.Model):
name = models.CharField(max_length=100)
nameMotor = models.CharField(max_length=100)
brand_motor = models.ForeignKey(Brand_motor, ... | [
"ramadhanyananta@gmail.com"
] | ramadhanyananta@gmail.com |
2d5ecf7358af515774131476888553a17bd614ae | 0f0be8e5cfb5fc9b0da164e428249c73e4e7b025 | /Self/Test/inherit.py | 110af38dc6e6c1fc046c584a7463f02c65123da7 | [] | no_license | tatatakky/algorithm | 3158ca558ef2171440be51750e1b6031f75220c6 | ed72e2520622a88efe8ed8120b4d2daad8f80c33 | refs/heads/master | 2020-03-10T11:17:23.882533 | 2018-05-02T16:54:12 | 2018-05-02T16:54:12 | 129,353,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | class Parent:
def __init__(self,name,height,weight): #コンストラクタ
self.name=name
self.height=height
self.weight=weight
def output_p(self):
print("<{}さんの情報>".format(self.name))
print("名前:{} 身長:{} 体重:{}".format(self.name,self.height,self.weight))
class Child(Parent):
def _... | [
"s1240232@gmail.com"
] | s1240232@gmail.com |
fc6c4503a020087e941bb71c2c4ee42a2d2a12fd | d3d61b0c141d71a9666a3a700ee1c11e76288b3e | /extra/helper.py | 7f1c183e33fe0cf5c73c8b8d2118ed5f1f05fb5c | [] | no_license | sharababy/py-dip | c84aaec7bc2a55c9d37e4eaa806744b42a940454 | 0ef480e9b177bca479e49be4a6fd4bbede0e5e07 | refs/heads/master | 2021-04-29T00:41:22.460947 | 2018-05-16T09:26:01 | 2018-05-16T09:26:01 | 121,835,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | def truncate(f, n):
'''Truncates/pads a float f to n decimal places without rounding'''
s = '{}'.format(f)
if 'e' in s or 'E' in s:
return '{0:.{1}f}'.format(f, n)
i, p, d = s.partition('.')
return '.'.join([i, (d+'0'*n)[:n]])
def linearSolver(x1,y1, x2,y2):
m = (y1-y2)/(x1-x2);
c = int(... | [
"bassi.vdt@gmail.com"
] | bassi.vdt@gmail.com |
77eb6e1582768564296247181be6190754fbe83c | 6da178d1c3fee5709e43d8162359c1b087c29a92 | /Intermediates/level_1/level_1d.py | 4324803b75398e8a5cb52a6ce3ac48c40200302d | [] | no_license | joewofford/coding_exercise | d74e50ad3ecbb0cee13c78fb44a7a317847f2863 | ae57eee4c556e78b04668dd6cb9e799f309bc3f9 | refs/heads/master | 2020-04-06T06:54:50.296103 | 2016-08-30T16:10:31 | 2016-08-30T16:10:31 | 65,870,783 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,886 | py | from __future__ import division
import requests
import random
import time
import websocket
import json
import Queue
import re
from threading import Thread
from bs4 import BeautifulSoup
from selenium import webdriver
from datetime import datetime
AUTH = {'X-Starfighter-Authorization': '0c758ac77e1595c23756812113e730d... | [
"joewofford@Josephs-Mini.domain"
] | joewofford@Josephs-Mini.domain |
eb5d7aba99ce10ed488f5be198476d799554acb2 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_private_link_resources_operations.py | 95f8c439d59dff4da2f06f3595ae038121fa0f85 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 8,751 | 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"
] | yunhaoling.noreply@github.com |
931e52355a9877de357fa0e0b6a602e2de02d64e | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayBossFncInvoiceBatchqueryResponse.py | cfe0f6e638e1c8ae763e1e65af4347042e876024 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,739 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
from alipay.aop.api.domain.ArInvoiceOpenApiResponse import ArInvoiceOpenApiResponse
class AlipayBossFncInvo... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
166b11993b083285167131c9da62538a39942a29 | ad53026bc745c328a3dc49a13b3f9b8d64d4dbdb | /Moniter.py | eb7b06b332ab6420a923cb79b78f787ce08f2109 | [] | no_license | ykozxy/EngradeHelper | 2af473b2b7ec17e264f33e1dd9b030920a713edb | 5178b5801a298fcbbd3f858ad2cac54662faf6a6 | refs/heads/master | 2020-04-17T03:52:43.479741 | 2019-04-16T12:15:08 | 2019-04-16T12:15:08 | 166,204,214 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,975 | py | import errno
import json
import logging
import os
import pickle
import platform
import random
import subprocess
import sys
import time
import traceback
from datetime import datetime, timedelta
from subprocess import PIPE
from typing import List, Dict, Union
import selenium
from selenium import webdriver
from selenium.... | [
"32444891+ykozxy@users.noreply.github.com"
] | 32444891+ykozxy@users.noreply.github.com |
e15553e15d02f44a2891a48cfd96e63bd730812a | 3a85606fa2f643a12f0747e57cdb8bb626ccb338 | /FER_2020_python/faceDetectionWithAPIAndVision.py | 277b90e89a5e7789505fcf40462b8534a710d8a8 | [] | no_license | LucasBarrot/FER2020 | b98aaa43a8ff2784900acb8a4fccb5d43a9ba86c | dea3e175e4474a1899af1c3bcbc895b335a1def0 | refs/heads/master | 2022-12-27T19:56:46.657577 | 2020-10-15T22:11:44 | 2020-10-15T22:11:44 | 275,368,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | # -*- coding: utf-8 -*-
import requests
# Detect and return the first face found location in the image_data given (byte array : <class 'bytes'> )
def faceDetection(image_data):
ENDPOINT = 'https://istancedetecface.cognitiveservices.azure.com/' # Set the endpoint
KEY = '787e01a860bb4be0a7fb0044e286931c' # ... | [
"lbarrot.lb@gmail.com"
] | lbarrot.lb@gmail.com |
1e47736427d5b29ddbed8c696b895ae76e78410d | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-vm-migration/samples/generated_samples/vmmigration_v1_generated_vm_migration_finalize_migration_async.py | 9725b31782e691f5713fa20467e00eb66fe54fa1 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,993 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
06f4a5191659fecff39026c84ba1da0bf26db778 | 1bbb75db28908f492ee05b1d084fd8be71527579 | /hotel.py | f486d420ff862cb4287d98e4cc80112464c5ac2c | [] | no_license | gayoungoh5/my_project | 090f95c297228bbb7f0b19cf6c9ecbaa9368348a | 71f85413f9eb06fb9e8c5991c74e639c0b889b21 | refs/heads/master | 2022-12-17T22:48:36.493908 | 2020-09-10T14:05:46 | 2020-09-10T14:05:46 | 285,817,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,942 | py | import requests
import pprint
import urllib.parse
import time
from pymongo import MongoClient
# 맛집 데이터는 seoul_matjip 이라는 데이터베이스에 저장하겠습니다.
client = MongoClient('mongodb://test:test@13.125.185.68', 27017)
db = client.seoul_matjip
# 서울시 구마다 맛집을 검색해보겠습니다.
seoul_gu = ["서울", "인천", "대전", "대구", "광주", "부산", "울산"]
# 네이버 검색 AP... | [
"gayoungoh5@users.noreply.github.com"
] | gayoungoh5@users.noreply.github.com |
44533fbbc7b814605f1f41f18cc1a17868022aff | ad4f3c164cb3acda3863e4b3f644f5e241cdf890 | /cli_tools_py/rosnode_list.py | 021f7e6cc5345a723d23654255927c7be9f7a4e4 | [
"Apache-2.0"
] | permissive | nuclearsandwich/cli_tools | 9a1b41846c6e9910d0ab0feca1485d132e23ea4b | 4937030dbec7dabc5a051f24f5f5db54c97f03f0 | refs/heads/master | 2021-01-25T09:09:59.743138 | 2017-06-09T01:10:59 | 2017-06-09T01:10:59 | 93,792,172 | 0 | 0 | null | 2017-06-08T21:10:27 | 2017-06-08T21:10:27 | null | UTF-8 | Python | false | false | 2,047 | py | # Copyright 2017 Open Source Robotics Foundation, Inc.
#
# 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... | [
"noreply@github.com"
] | nuclearsandwich.noreply@github.com |
c586bd5693c7518eb1d938ce2ad960a01f98d250 | f95e73867e4383784d6fdd6a1c9fe06cffbfd019 | /ProjectEuler/p004_Largest_palindrome_product.py | 5d8c9510aee2afac0a0864fbbfc27608ef991779 | [] | no_license | linxiaohui/CodeLibrary | da03a9ed631d1d44b098ae393b4bd9e378ab38d3 | 96a5d22a8c442c4aec8a064ce383aba8a7559b2c | refs/heads/master | 2021-01-18T03:42:39.536939 | 2018-12-11T06:47:15 | 2018-12-11T06:47:15 | 85,795,767 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import timeit
def PE004():
M=0
for i in range(100,10000):
for j in range(i+1,1000):
k=i*j
#if k==int(str(k)[::-1]) and k>M :
if k>M and k==int(str(k)[::-1]) :
M=k
print M
print timeit.tim... | [
"llinxiaohui@126.com"
] | llinxiaohui@126.com |
6e3669121fdd67488f4e7ec58aa121cf467f15dc | f8ffac4fa0dbe27316fa443a16df8a3f1f5cff05 | /Regex/Matching_Anything_But_New_Line.py | 9d1b4802c8910f717e3f7aafecd4dfcb1cc4b4c3 | [] | no_license | ankitniranjan/HackerrankSolutions | e27073f9837787a8af7a0157d95612028c07c974 | e110c72d3b137cf4c5cef6e91f58a17452c54c08 | refs/heads/master | 2023-03-16T19:06:17.805307 | 2021-03-09T16:28:39 | 2021-03-09T16:28:39 | 292,994,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Your task is to write a regular expression that matches only and exactly strings of form: abc.def.ghi.jkx, where each variable a,b,c,d,e,f,g,h,i,j,k,x can be
# any single character except the newline.
regex_pattern = r"^.{3}\..{3}\..{3}\..{3}$" # Do not delete 'r'.
import re
import sys
test_string = in... | [
"noreply@github.com"
] | ankitniranjan.noreply@github.com |
768d56b4aa61d462bcd2ff40eae5b901a5f5a04a | 478925516b5d32e61eacdb22555097b2318cd649 | /P47/01-06-2021/functions_examples.py | 485186078f8b09e067ba652f8a990729e4e5d0e4 | [] | no_license | Rogerd97/mintic_class_examples | fee9f867d8f846757b5a14326ab5e737b86b64c2 | 0a53f9fac13b1abe539bd345ed2186c95b3e08b5 | refs/heads/main | 2023-05-10T06:13:58.863766 | 2021-06-12T02:02:07 | 2021-06-12T02:02:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | # default parameters
def fun(a, b, c=1, d=2):
pass
import datetime
from io import DEFAULT_BUFFER_SIZE
def func(delta_days=5):
return datetime.datetime.now() + datetime.timedelta(days=delta_days)
# Create a function that makes a math operation to a given number. By default, it should be to calculate
# th... | [
"reyes2000jose@gmail.com"
] | reyes2000jose@gmail.com |
8a6abacedfda94088a76510acfaf478288bec22d | 586695a9a52c69123fd1053358c754ad3ccc11fd | /hackerrank/SockMerchant.py | f35e40b7cce9f6f4525059280226f9911658e666 | [] | no_license | nidiodolfini/descubra-o-python | 9ba8b72b88f6b0db797d844610f93cded170161b | 0759410a82f4e26272f7b761955e9cf5bab461dc | refs/heads/master | 2020-08-28T05:22:16.862971 | 2020-05-14T18:46:27 | 2020-05-14T18:46:27 | 217,604,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | n = 9
ar = [10, 20, 20, 10, 10, 30, 50, 10, 20]
def sockMerchant(n, ar):
count = 0
ar.sort()
ar.append('#')
i = 0
print(ar)
while i<n:
if ar[i]==ar[i+1]:
print(i, ar[i], "" , ar[i])
count = count+1
i+=2
else:
i+=1
return count
... | [
"nidiosdolfini@gmail.com"
] | nidiosdolfini@gmail.com |
8c5ed0a6b6e6053c544a2a177a5da87e2fbad4ef | da0f3a46bd09ab32ce16ea46912ccb24900a887c | /LUIS-mendoza/ej_fibonacci.py | 00182aa800577e69a05b346f35fe2bdf9adf2140 | [] | no_license | 1109israel/AprendiendoGit | ea275a145390c169f987280b5d934eb14d9026f8 | f366a4555153376876a337e9b246110fdaa87795 | refs/heads/master | 2020-03-21T04:13:00.584488 | 2018-07-25T22:43:21 | 2018-07-25T22:43:21 | 138,097,310 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | ar = open("fibonacci.txt","a")
def fibonacci_or(lim):
a= 0
b = 1
c = 0
cont = 2
print(a,b,end = ' ')
ar.write('%s'%a+"\t")
ar.write('%s'%b+"\t")
while cont < lim:
c = a + b
a = b
b = c
print(c, end = ' ')
cont += 1
ar.write('%s'%c+"\t"... | [
"luisito250899@gmail.com"
] | luisito250899@gmail.com |
553f3a3d1f1ae0c200e965ab8b316854da0f69b9 | 91191339a1f9731bb7d1bd646a363db5e9812fab | /Task6.py | a765df91993fa43732d3a6e731c395513ca0add9 | [] | no_license | Hedin555/Python | 3432ecd3a0aa0d22bbd47054eec29c7765622489 | 856dde8ce2d0292c83737cb0a2d8395d85fef670 | refs/heads/main | 2023-01-24T16:52:20.271802 | 2020-11-22T16:45:24 | 2020-11-22T16:45:24 | 315,083,881 | 0 | 0 | null | 2020-11-22T17:33:43 | 2020-11-22T16:40:08 | Python | UTF-8 | Python | false | false | 375 | py | a = int(input('Введите начальную дистанцию, пробегаемую спортсменом в день: '))
b = int(input('Введите требуемое расстояние: '))
day = 1
while a < b:
a = a * 1.1
day = day + 1
print(f'Спортсмен добъется необходимого результата на {day} день')
| [
"qmkonstantin@gmail.com"
] | qmkonstantin@gmail.com |
f1852c7da40eb5c08990351bb1c5c7ea3197c233 | 7bfcb91f95d20f1199d54f91c9a095df08b44d83 | /Backup/Django_Youtube/WebBanHang/user/models.py | b2d82ecc75ed2668b3c7dbb54babf9acbad04250 | [] | no_license | llduyll10/backup | bcb09eb632dd0858d515aacb7132d913da4dc24c | 8849d812566977f9a379d38ee1daa2ef42c02c7f | refs/heads/master | 2023-02-28T11:22:23.831040 | 2021-02-01T17:09:55 | 2021-02-01T17:09:55 | 335,006,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class CustomerUser(AbstractUser):
phone_number = models.CharField(default='', max_length=15)
address = models.CharField(default='', max_length=255) | [
"llduyll10@gmail.com"
] | llduyll10@gmail.com |
6a20c6b46f1956d64bcd5fc20261bb7af697a8eb | 6679ab23bf4f0100eb07cf13be21a8c1b1ae4c1f | /Python_Team_Notes/구현/input_alpha_to_num.py | 817176213e5896f5d99570aae3099f7501ab5271 | [] | no_license | gimquokka/problem-solving | 1c77e0ad1828fa93ebba360dcf774e38e157d7b6 | f3c661241d3e41adee330d19db3a66e20d23cf50 | refs/heads/master | 2023-06-28T10:19:07.230366 | 2021-07-29T11:29:26 | 2021-07-29T11:29:26 | 365,461,737 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | # a ~ z를 입력으로 받아 숫자로 전환
char = input()
# ord 함수 이용
num = int(ord(char)) - int(ord('a'))
print(num)
| [
"gimquokka@gmail.com"
] | gimquokka@gmail.com |
7fd7a01d4607f5455302f773014b401914bae6c2 | a85ddbac6ce4e7738ccd4b37b2c6279559a14e0c | /verification_types/migrations/0003_auto_20210117_2358.py | 4da53b9ad4b5629e3551d236f0a1524c56de816b | [] | no_license | Fire2Bear/url_monitor | 644781b74653402672dc2b38219ecb6034f0c400 | 546fc49be6f7943b29ef4d1ca2fe6893c31bb7b0 | refs/heads/master | 2023-02-26T18:39:41.635307 | 2021-02-03T14:52:29 | 2021-02-03T14:52:29 | 330,383,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # Generated by Django 3.1.3 on 2021-01-17 22:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('verification_types', '0002_verificationtype_code'),
]
operations = [
migrations.AlterField(
model_name='verificationtype',
... | [
"nicolas.jousset@etudiant.univ-rennes1.fr"
] | nicolas.jousset@etudiant.univ-rennes1.fr |
7eb3e34af4c94f5c6476f267de752ba66437517a | 1b4baa4f2ceee7f9e22be2c9ecdd5ed7470317cb | /marks.py | ea51f41abd5754a7cb44aa8a76c0cac3c9547cd1 | [] | no_license | bnprk/pybegin | 5cac1dd098e8202e2574d4030560185d8517933b | 38ca59a31257e2000db284ed6b4dd828e5c29b61 | refs/heads/master | 2020-12-24T08:49:14.437329 | 2016-08-19T21:11:05 | 2016-08-19T21:11:05 | 25,602,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python3
n = int(input("Enter the number of students:"))
data = {} # here we will store the data
languages = ('Physics', 'Maths', 'History') #all languages
for i in range(0, n): #for the n number of students
name = input('Enter the name of the student %d: ' % (i + 1)) #Get the name of the student
... | [
"bnprk27@gmail.com"
] | bnprk27@gmail.com |
5bd58b1f6673a0ce365efc48e5b852e5ac8e54ed | 984529e5171b0594c966b55d4680d54389ae7d0c | /cc/apps/tracking/migrations/0011_auto__chg_field_trackinglog_participant.py | 7f6cacb87c49401ac3bd180636f18403772ce2f7 | [] | no_license | afsmith/cc | 6d15616cbba7b0d47a3de1b9d4d11dddb1986f5b | 86f08c78e8d855e55488c4fdf73353e4dd8a43cd | refs/heads/master | 2021-03-16T09:52:19.020011 | 2015-04-22T11:35:07 | 2015-04-22T11:35:07 | 10,797,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,458 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'TrackingLog.participant'
db.alter_column(u'tracking_tr... | [
"hieuh25@gmail.com"
] | hieuh25@gmail.com |
03004024534da0e57bfd5e600e5e287e7ef641d6 | 0c21b60518e4e96ff1a68cf551eeb59d42be8b8a | /rango/migrations/0001_initial.py | dcf5def48ada10100b093e3a575d30849b304681 | [] | no_license | mzeeshanid/pythonlearning-userauth | 522bd56f7163757c38bb49ce1c6ccaebc8101544 | 2ecba2599c4f319d9607e5384b8aef7185bdfc90 | refs/heads/master | 2021-01-01T03:40:08.521769 | 2016-06-03T13:02:48 | 2016-06-03T13:02:48 | 58,745,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-13 04:51
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migration... | [
"mzeeshanid@yahoo.com"
] | mzeeshanid@yahoo.com |
4c5e296aa7cd413d37554e01f65388753100d7e0 | 6a78933bab79ddb45092010246c34810c2c9acfc | /trunk/modules/python/dataset/hdf5.py | 4bb3a57528882c73e6528e346536d56257deb5aa | [
"MIT"
] | permissive | yamadaNano/playbox | 5ac98ca90c0beb35e9845ba323c97fe7a734d858 | 31ba5a11301e2dd345fd3b64e559ca9901890b3a | refs/heads/master | 2020-12-24T10:55:16.504019 | 2016-11-04T18:14:51 | 2016-11-04T18:14:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,225 | py | import h5py
def createHDF5Unlabeled (outputFile, trainDataShape, trainDataDtype,
trainMaxShape=None, log=None) :
'''Utility to create the HDF5 file and return the handles. This allows
users to fill out the buffers in a memory conscious manner.
outputFile : Name of the... | [
"micah.bojrab@mdaus.com"
] | micah.bojrab@mdaus.com |
e0a7b3ae1374ca144770517141e8db9a5a0dd8f4 | 7c990eb27315940b28bd4cb5bca5dcab038987ef | /cmake-build-debug/catkin_generated/generate_cached_setup.py | 6b9c78be84ddf0c8b1f45c400131fbf7d4aa7132 | [] | no_license | zhangtygs/ros-yolov5 | 70e4fb0f8a0066a23ddc6538629a9f801ba9bea5 | a108806682dcefb51cddceb30c49c8e15d04a5c3 | refs/heads/master | 2023-03-28T05:47:25.918738 | 2021-03-27T07:37:38 | 2021-03-27T07:37:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"706545330@qq.com"
] | 706545330@qq.com |
72caec1e57d85a6bf4b606a5228254cf3c680874 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_179/ch25_2020_03_23_14_36_52_247565.py | b77b247db72eeb75a6603e8b3a253feeebcab017 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import math
g = 9.8
def calcula_distancia (velocidade, angulo):
angulo_radianos = math.degrees(angulo)
distancia = (velocidade**2 * math.sin(2*angulo_radianos))/g
return distancia
if distancia < 98:
print ('Muito perto')
elif distancia > 102:
print ('Muito longe')
else:
print ('Acertou!') | [
"you@example.com"
] | you@example.com |
12397dba9aa20dfa6ddc202d2645785817557c92 | a3038ca9afae4ab5a6c3426e91374a37a9c0a581 | /.venv/lib/python3.6/fnmatch.py | 52114f17c96460f02d6dd447121e52fb804f9a87 | [] | no_license | kgmour/webservice-pycon | f88e79e2cf338a35e0ba6a49801170c5c2249313 | 004027f08443c26cef32b31a90b6a71cd843f026 | refs/heads/master | 2020-03-16T19:21:28.998960 | 2018-05-10T14:36:06 | 2018-05-10T14:36:06 | 132,912,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | /Users/kevinmouritsen/.pyenv/versions/3.6.1/lib/python3.6/fnmatch.py | [
"kgmour@gmail.com"
] | kgmour@gmail.com |
deb6dc985d28ad6b65b35a345c03761e49dc5c24 | 3709dfa23b42dc4a9a89199490b8533963f8c534 | /splat/advanced_splat.py | d377a4f51e02f4cbc908523069f979e8b643def0 | [
"Apache-2.0"
] | permissive | boltanalytics/splat | 8e4723fcc67d62c216c286c32e899a817b578290 | a44434ce336e6ffc6340ff55407413c0886e7d1f | refs/heads/main | 2023-01-30T11:11:24.949655 | 2020-12-07T14:30:03 | 2020-12-07T14:30:03 | 315,811,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,789 | py | from math import isnan
from os import stat
from splunklib.client import connect
import click
import json
import numpy as np
import os
import pandas as pd
import re
import shlex
import splunklib.client as client
import splunklib.results as results
import time
import warnings
# command_line_args = {}
# logging.basicCo... | [
"tejas.kale@cumulus-systems.com"
] | tejas.kale@cumulus-systems.com |
ec316d01099ea1bc5877dcde7de1cce9a20f69a5 | 5cafda777e72d0d637597567c6ea773be071475c | /misc/echo_server.py | 8d1c972c643c0bba71e71fd711a1326645857580 | [] | no_license | skyris/web_tech_stepik | 8a73c6231d689981531cb3c970ae348ac7ceebb2 | 7906fd8891a1b48a0aa716c7e514677f2cac1480 | refs/heads/master | 2020-07-23T10:35:48.793013 | 2016-11-20T23:20:24 | 2016-11-20T23:20:24 | 73,810,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | #! /usr/bin/env python
import socket
def receive(sock, msglen):
msg = ""
while len(msg) < msglen:
chunk = sock.recv(msglen - len(msg))
print(repr(chunk))
if chunk == "":
print("chao")
raise RuntimeError("broken")
if chunk in ["close", "close\n", "close\r... | [
"4klimov@gmail.com"
] | 4klimov@gmail.com |
751255d530780137e0285d8df5447aef573973a3 | 85469c44c38853752fe4d68abf57f6163dc1bd14 | /application/admin/admin_routes.py | c060569b272856032adf00c00ead1bf88ebe657a | [] | no_license | betfund/betfund-webapp | a1cab76b1ce510ab16722c0a08c017ed551729a9 | 3d4784fb7696867d55383a5ea3ee869fdcff8776 | refs/heads/master | 2021-05-18T05:39:49.530796 | 2020-03-29T21:58:42 | 2020-03-29T21:58:42 | 251,140,323 | 0 | 0 | null | 2020-04-10T06:17:49 | 2020-03-29T21:39:59 | Python | UTF-8 | Python | false | false | 761 | py | from flask import Blueprint, jsonify
from application.models import User
from flask_login import login_required
admin_bp = Blueprint('admin_bp', __name__, template_folder='templates')
@admin_bp.route('/admin', methods=['GET', 'POST'])
@login_required
def admin():
"""
Admin end point.
TODO :: This DEFIN... | [
"mitchbregs@gmail.com"
] | mitchbregs@gmail.com |
d1b7d022400ba00ee4fce89919dee52215244a92 | e064a58ff63212ead8df1683aaa9e44f44be3058 | /integration-tests/tests/entity_last_read_date_tests.py | 142f617056ba8c127ac3e9e64b94a5a39460fea2 | [
"Apache-2.0"
] | permissive | kkasravi/atk | 09cc7cba05abbcf0bd4c3eaae7dbccef7d02c7e8 | 65c3180ee33b752567c72c333f0cc8a8efc27816 | refs/heads/master | 2020-12-28T23:23:06.922418 | 2015-10-22T22:48:14 | 2015-10-22T22:48:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,632 | py | #
# Copyright (c) 2015 Intel Corporation
#
# 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... | [
"briton.barker@intel.com"
] | briton.barker@intel.com |
73821d45b2e81c6381e427248500318d56b21d72 | 5f4e13201d4c5b7edc8dbbda289380682a187bec | /dltc/coffeehouse_dltc/__init__.py | e05637a846b663221e3778d66f0804fd27c8bfc0 | [] | no_license | intellivoid/CoffeeHousePy | 92f4fb344de757837c3d3da05cb5513e90408039 | 57c453625239f28da88b88ddd0ae5f1ecdd4de3c | refs/heads/master | 2023-02-23T14:32:01.606630 | 2021-01-28T02:57:10 | 2021-01-28T02:57:10 | 324,419,067 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from . import main
from .main import *
from . import config
from .config import *
from . import utils
from .utils import *
from . import base
from .base import *
from . import chmodel
from .chmodel import *
from . import nn
from .nn import *
__all__ = ['main', 'base', 'chmodel', 'nn', 'DLTC'] | [
"netkas@intellivoid.net"
] | netkas@intellivoid.net |
c98ac5620ffbd99f16e637d08b518f76f5ff669f | edaa42987b34a97b91de60f4cec98cf3f552e91c | /train_graph_classifier.py | 70c8ca7a015b3f40c0c7df059a5544dfcb9a9c7a | [] | no_license | PriyankaChakraborti/Benchmarking-movie-posters-with-transfer-and-bandit-learning | 2ec55a64c3c0cf8a387e02a12f5bcefbd92ce2d8 | 578dcf2ed29a10284d680a469fc2049301d59b90 | refs/heads/master | 2021-08-04T02:35:32.070264 | 2020-12-21T22:49:05 | 2020-12-21T22:49:05 | 229,343,216 | 0 | 0 | null | 2020-12-21T22:49:06 | 2019-12-20T22:07:38 | Python | UTF-8 | Python | false | false | 13,641 | py | # Import Modules
from keras.models import load_model, Model
from keras import optimizers
import numpy as np
import tensorflow as tf
from tensorflow.keras import backend as K
import pickle
import pandas as pd
from sklearn.model_selection import GridSearchCV
from sklearn.metrics import make_scorer
from sklearn.ensemble ... | [
"priyanka.chakraborti@huskers.unl.edu"
] | priyanka.chakraborti@huskers.unl.edu |
1b3509386baedb66e3612538112b0031faddc94e | d0c8ca75d4d87d6698e6f96d8520d8a3104b7d88 | /MT/src/onmt/Models.py | 834decfc92b7b7c8e45ac813b968c975f15811f6 | [] | no_license | pingfansong/Controllable-Invariance | 44d8ad4a7a7aa204157d66387f62107b624e86a2 | 373ac88548f93fe18d0a8f77a4faa444e0b1ba63 | refs/heads/master | 2021-01-25T13:47:36.602040 | 2017-12-04T07:46:39 | 2017-12-04T07:46:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,752 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import onmt.modules
import torch.nn.utils.rnn as rnn_utils
import math
def check_decreasing(lengths):
lens, order = torch.sort(lengths, 0, True)
if torch.ne(lens, lengths).sum() == 0:
return None
else:
_, rev_order = to... | [
"cheezer94@gmail.com"
] | cheezer94@gmail.com |
53f752fc2df0837ee2781e7c187d13028052fdca | b2fceb7e11d2d0c8bdfecc5e3d50685855b9f4fd | /example/pythonSnippet.py | 17c246231e4dad4bbf2283522d842632de40be1c | [
"MIT"
] | permissive | DIPSAS/DockerBuildSystem | a6f9858e1e7b4895f17c8434482ab700d1c72570 | 0ddfb0a4cebf707a36d2708c12c0c2641172299b | refs/heads/master | 2021-09-28T22:37:51.484815 | 2021-09-22T23:49:51 | 2021-09-22T23:49:51 | 133,937,355 | 10 | 2 | MIT | 2020-01-09T14:53:02 | 2018-05-18T10:02:22 | Python | UTF-8 | Python | false | false | 148 | py | def GetInfoMsg():
infoMsg = "This python snippet is just an example.\r\n"
return infoMsg
if __name__ == "__main__":
print(GetInfoMsg()) | [
"hans.erik.heggem@gmail.com"
] | hans.erik.heggem@gmail.com |
84fd947eeb59b2e53824d13d01685f9a5049699f | d9cf44ed3e734ce27d7d6d8ca0d95654a27d76d6 | /src/annotation/GenericReadTest.py | 142cf2f6f3025f5b48116f0c223c5964347254c5 | [] | no_license | skill-lang/pythonTest | 87d273fc018302fc18e207b4744a559d98ace2f0 | 2891d6bee891d9885701c9ce1afbb62767b8b455 | refs/heads/master | 2020-07-02T07:47:47.377793 | 2019-08-09T12:20:55 | 2019-08-09T12:20:55 | 201,461,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,307 | py |
import unittest
from tempfile import TemporaryFile
from python.src.annotation.api import *
from python.src.common.CommonTest import CommonTest
class GenericReadTest(unittest.TestCase, CommonTest):
"""
Tests the file reading capabilities.
"""
def read(self, s):
return SkillFile.open("../../../... | [
"feldentm@informatik.uni-stuttgart.de"
] | feldentm@informatik.uni-stuttgart.de |
fefe183ee81e64abb008a8dfded629c1fe7cc6c7 | e3714fb9ce66e45ab2b3a64bc4918fb44ab9dce5 | /compress_image.py | e1d80a4209fdbaafea936b3d553d6053401923ff | [] | no_license | nitr-himanshu/python-modules | 14b985b50cf6e7e75580615ae8250ee5fd1c7f12 | 24c1e1a576fa7969f999e74ea7955ca3464bd753 | refs/heads/master | 2020-09-19T09:36:15.464758 | 2020-02-12T04:39:18 | 2020-02-12T04:39:18 | 224,218,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | from PIL import Image
def compress(img_path, new_height, inplace=True, new_img_path=""):
'''
:param
img_path
new_height
inplace(optional)
new_img_path (required when inplace=false)
:return
new file path
'''
img = Image.open(img_path)
hpercent = (new_heig... | [
"thehimanshukeshri@gmail.com"
] | thehimanshukeshri@gmail.com |
733336c7a0df9dd8e420d8a5d326083e093bc156 | 4e39dbcd39c746dc661478d601d5e9ae0893b084 | /TensorFlow2/Segmentation/UNet_Medical/utils/cmd_util.py | 6866333185e2c63257c7fcffb178d2aa62a2b951 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | gpauloski/DeepLearningExamples | 2ff368cf0414ad8451a85465f023a94d1a5753f9 | 81178d2aa6e6eaa88c40727276601b52739ba408 | refs/heads/master | 2023-02-03T13:33:41.822429 | 2020-12-14T16:52:31 | 2020-12-14T16:52:31 | 254,721,527 | 2 | 0 | null | 2020-04-10T19:42:36 | 2020-04-10T19:42:35 | null | UTF-8 | Python | false | false | 4,634 | py | # Copyright (c) 2019, NVIDIA CORPORATION. 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 applic... | [
"pstrzelczyk@nvidia.com"
] | pstrzelczyk@nvidia.com |
ca0d1b7730390c96c8aa0842a2430a0e01ad1a18 | 2e80e43fbbaadca6bba401214a2b02f48a06f4a3 | /multiappproject/multiappproject/settings.py | 6ebc21e084302b74cf515862e5e9df03df352a11 | [] | no_license | anilkumarreddyn/DjangoProjects | 751a95718079d42e5a03857f20cd812aadc01ba3 | c10c34308762a2bfd05b56f6e0838055e06a601a | refs/heads/master | 2021-06-24T05:21:10.670792 | 2019-06-25T05:53:19 | 2019-06-25T05:53:19 | 193,641,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,226 | py | """
Django settings for multiappproject project.
Generated by 'django-admin startproject' using Django 1.9.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
impo... | [
"anilkumarreddyn@outlook.com"
] | anilkumarreddyn@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.