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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c81bdca5dc92eada6417d4615dab19cc148a555 | 1f61e06271f8e9582669686457c40336235d1eee | /Module 1/Chapter 9/edge_detector.py | a7221300b04f62e04e673c71daddfa906d6eaed5 | [
"MIT"
] | permissive | PacktPublishing/Python-Real-World-Machine-Learning | f1747fdd73937544a243059ac7476bfbfac6d113 | 669e793cf80c35b6d2028f74bff2cd87b9458791 | refs/heads/master | 2023-04-13T11:48:13.459731 | 2023-01-30T09:21:10 | 2023-01-30T09:21:10 | 70,907,139 | 108 | 111 | MIT | 2023-04-04T14:38:41 | 2016-10-14T12:13:47 | Jupyter Notebook | UTF-8 | Python | false | false | 598 | py | import sys
import cv2
import numpy as np
# Load the input image -- 'chair.jpg'
# Convert it to grayscale
input_file = sys.argv[1]
img = cv2.imread(input_file, cv2.IMREAD_GRAYSCALE)
h, w = img.shape
sobel_horizontal = cv2.Sobel(img, cv2.CV_64F, 1, 0, ksize=5)
sobel_vertical = cv2.Sobel(img, cv2.CV_64F, 0, 1, ksize=5... | [
"eganl@packtpub.com"
] | eganl@packtpub.com |
b483194ef410722c853543abfba98d1e36b2fa5b | 1c2ae618653041b4dc739ad550f1749f2f5eeb81 | /James-Script/Discovery/smtp-enum.py | cd88f4eb98a9ea6388fd0b7210f6882883b2a028 | [] | no_license | ubriggsl/OSEC-PWK | b50a5b1c8902fafb217d6766a960de90008d0af4 | 64c2dc943fde87457b835c98c6d409689d20bf3c | refs/heads/master | 2021-01-20T00:08:29.484029 | 2017-05-15T02:33:14 | 2017-05-15T02:33:14 | 89,084,644 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | #!/usr/bin/python
import argparse
import socket
import sys
a = argparse.ArgumentParser()
a.add_argument('user')
a.add_argument('target')
a.add_argument('-p',dest='port',default='25')
args = a.parse_args()
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
connect = s.connect((args.target,int(args.port)))
... | [
"james@briggsconsulting.com"
] | james@briggsconsulting.com |
8c1baaf7bc0b2f574388dc5f64e36e1918a8a0b1 | 15b3d2c324748b2a9a96813fd7e0919cc4e249ae | /dashboard/dashboard/urls.py | 3645e421490b14c597b18f35ad34efbc033bda4d | [] | no_license | pzjc/dashboard-django | c1fb6fd7e8fa56ec10d714c0ea1607544f31f5fa | bb0dc34fb76cc768c9ef0d5f651a4112ddea73ec | refs/heads/master | 2021-07-01T12:09:53.631999 | 2017-09-22T20:29:34 | 2017-09-22T20:29:34 | 104,480,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | """dashboard URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"jz762@cornell.edu"
] | jz762@cornell.edu |
f0ee9e58c7029957af4366c984e9861db7dfc8e2 | 6ffed3351dd608ce311a7c04d813e4cbcc283d6f | /djongo_project/files/api/serializers.py | e0c2ca3d77901c61c0d12799e99a053ec5653fad | [] | no_license | navill/ai_2-1 | bc2311dd5e8839c6bd4112965b7348252408785a | 7dd782b93286b7a407c433aa55a3b8f3f626fe89 | refs/heads/master | 2023-01-06T19:09:26.051130 | 2020-10-07T02:08:15 | 2020-10-07T02:08:15 | 290,131,119 | 0 | 0 | null | 2020-10-08T14:45:37 | 2020-08-25T06:20:46 | Python | UTF-8 | Python | false | false | 1,396 | py | from typing import *
from rest_framework import serializers
from rest_framework.reverse import reverse
from accounts.models import CommonUser
from utilities.file_utils import EncryptHandler
from files.models import CommonFile
class FileManageSerializer(serializers.ModelSerializer):
user = serializers.PrimaryKey... | [
"blue_jihoon@naver.com"
] | blue_jihoon@naver.com |
97a9d2f3330873200fc4325d845a1d95fc6e784d | 6a1fad01f41de94587c03c3904eaf087610a7422 | /train.py | 7499035720d29fae46c0d72b467b0cdca3c9fc9f | [] | no_license | acids-ircam/ddsp_pytorch | 1972c98f3d709d97df3606ef7f55cd724ac40c76 | aaaf17d939ffbf7e6e4c848994204d07d62721a1 | refs/heads/master | 2021-12-12T00:48:31.743973 | 2021-09-07T07:46:51 | 2021-09-07T07:46:51 | 213,240,778 | 381 | 49 | null | 2021-11-26T21:18:46 | 2019-10-06T20:42:51 | C | UTF-8 | Python | false | false | 3,338 | py | import torch
from torch.utils.tensorboard import SummaryWriter
import yaml
from ddsp.model import DDSP
from effortless_config import Config
from os import path
from preprocess import Dataset
from tqdm import tqdm
from ddsp.core import multiscale_fft, safe_log, mean_std_loudness
import soundfile as sf
from einops import... | [
"caillon@ircam.fr"
] | caillon@ircam.fr |
59f182eac7ff61fa54275583dd65186678b519c5 | ef34e68712fb4aa9a1320c4e1e370a24de34fcb4 | /nlu/utils/environment/authentication.py | 31b46bde24d6ece7e8670f0fe028b52bcba4a11a | [
"Apache-2.0"
] | permissive | milyiyo/nlu | dd656e77eedf2c831482edfd4ec59490b25d3954 | d209ed11c6a84639c268f08435552248391c5573 | refs/heads/master | 2023-08-16T00:03:10.326392 | 2021-10-16T03:05:49 | 2021-10-16T03:05:49 | 414,223,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | from nlu.utils.environment.env_utils import *
def install_and_import_healthcare(JSL_SECRET):
""" Install Spark-NLP-Healthcare PyPI Package in current enviroment if it cannot be imported and liscense provided"""
import importlib
try:
importlib.import_module('sparknlp_jsl')
except ImportError:
... | [
"christian.kasim.loan@gmail.com"
] | christian.kasim.loan@gmail.com |
12770caef27bc3fef998f1a1f8d9898aefccdd3f | aee126bb9fae134662e0ca2eab4c8d7483ab3ec6 | /server/flaskApp/templates/app.py | ba8c62f877a5dff068fa88fd4b7552ad2099ed36 | [] | no_license | collier-watkins/DeafDoorbell | 3479cc5da661b10c53981a30775ec28cfcb1524e | c8d8601a159a1469ccec3c9884012dc5d0b872f7 | refs/heads/master | 2020-05-04T01:09:32.807947 | 2019-05-27T01:41:53 | 2019-05-27T01:41:53 | 178,899,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | from flask import Flask, render_template, url_for, flash, request
from forms import MessageForm
from wtforms.widgets import html_params, HTMLString
from flask_socketio import SocketIO
#import subprocess
app = Flask(__name__)
app.config['SECRET_KEY'] = '3985723043u208uj23022039rue'
socketio = SocketIO(app)
client... | [
"collier.watkins.chc@gmail.com"
] | collier.watkins.chc@gmail.com |
039ddde1464386c3829683361c65b4dcf614072b | fe5eb98a1fa9a1bd194e7d859fddc9fc62ed842e | /modified_2/run_both_multi.py | a58183743d8e5d737bc79c5f36c4bae074557f77 | [] | no_license | TaehoLi/Capstone | 862d27a819c455fcfa8da598a976d3bf1e9c9570 | 9329d7910c24d32b04598f373899819694f856e4 | refs/heads/master | 2020-04-18T08:11:52.207623 | 2019-12-26T12:04:32 | 2019-12-26T12:04:32 | 167,387,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,279 | py | # -*- coding: utf-8 -*-
import argparse
import logging
import time
import cv2
import numpy as np
import matplotlib.pyplot as plt
#matplotlib auto
from tf_pose.estimator import TfPoseEstimator
from tf_pose.networks import get_graph_path, model_wh
from datetime import datetime
logger1 = logging.getLogger('TfPoseEst... | [
"noreply@github.com"
] | TaehoLi.noreply@github.com |
4e99a7acd3bcf8e67dc4a408c2fc47b15569d91a | 72f59717e1e878005e31281c0fd09a4cf0c2f69b | /github_2fa.py | d85ef49c971ea1ac160bd894b11286db624b60cc | [] | no_license | daguy666/api | 7627daf8f195d97119277c9e3fb219f1e93aeda7 | c2097813564b63d4034d2f64d0ae3aeea9a220b8 | refs/heads/master | 2020-04-21T11:55:46.153919 | 2014-11-06T19:34:04 | 2014-11-06T19:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | #!/usr/bin/env python
#
#github_2fa.py
#This will detect users who are in a specified
#org that have 2fa disabled
############################################
import json
import urllib2
import getpass
import sys
pw = getpass.getpass("Please enter a token: ")
org = raw_input("Org to search: ")
org_url = "https://api.g... | [
"jpistonejr@gmail.com"
] | jpistonejr@gmail.com |
71ca8542c4f7c61d9328341ec14b583e4d30c82d | e4920c4fe4290bde524e0c141189f80fddfe44b7 | /info/migrations/0023_remove_message_recaptcha.py | 85b4c72c01e9b2dc98df1f027f92d51e1b879720 | [] | no_license | ShahadatShuvo/Django_portfolio | 42af2b0aa686bff08730cdb105f95d6b63adb620 | 795ed7cbb6444245af08582ea63f57a0f32679a0 | refs/heads/master | 2023-05-30T01:43:50.409584 | 2021-06-14T08:29:18 | 2021-06-14T08:29:18 | 376,372,632 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Generated by Django 2.2.16 on 2020-12-22 17:04
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('info', '0022_auto_20201222_1655'),
]
operations = [
migrations.RemoveField(
model_name='message',
name='recaptcha',
... | [
"shahadat@baiust.edu.bd"
] | shahadat@baiust.edu.bd |
e8720a42e2d433fa822311add8bf6a44faced378 | bda32ee120fd07499fad1e5e973249ac15861200 | /ValidSudoku.py | 5996590c78e0207e3f98330665a34507963f42cf | [] | no_license | congyingTech/leetcode | 5f76d11a283115e46fdf4f295cf0279f53e692a1 | 35ff5db1ee6abcb3cf1144a9bf5420758e31e6ec | refs/heads/master | 2021-01-21T04:41:20.195451 | 2016-06-16T07:03:09 | 2016-06-16T07:03:09 | 54,643,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | #-*- coding:utf-8 -*-
'''
Created on Mar 30, 2016
@author: congyingw
'''
#Sudoku的要求有三条:每行的数只出现一次,每列的数只出现一次,每个九宫格数只出现一次。
#所以我们要验证这三个条件逐个遍历一遍。
class Solution:
def isValidSudoku(self, board):
for i in range(0, 9):
#第i行(固定的行)j列 or 第j行i列(固定的列)
if not self.isValidList([board[i][j] ... | [
"congyingTech@163.com"
] | congyingTech@163.com |
4ca6bb07c21ed85808635058d7bf3d36c71eb43e | b8f4b32171bba9e60a101f5a605e084c9aa974fd | /BaseTools/Source/Python/AutoGen/UniClassObject.py | b2895f7e5c63d238180b93830b7630499ffa202c | [
"BSD-3-Clause",
"BSD-2-Clause-Patent"
] | permissive | jinjhuli/slimbootloader | 3137ab83073865b247f69b09a628f8b39b4c05ee | cfba21067cf4dce659b508833d8c886967081375 | refs/heads/master | 2023-07-11T12:59:51.336343 | 2020-09-11T00:16:48 | 2020-09-11T00:24:52 | 149,729,121 | 1 | 0 | BSD-2-Clause | 2018-09-21T07:49:42 | 2018-09-21T07:49:42 | null | UTF-8 | Python | false | false | 29,575 | py | ## @file
# This file is used to collect all defined strings in multiple uni files
#
#
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P.<BR>
#
# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
# Import Modules
#
from __fut... | [
"maurice.ma@intel.com"
] | maurice.ma@intel.com |
fa459c1d43ee6d8f2cdbb69fcdada36ad5305039 | ee239ee6ead1f612fde7bec99be27c02afd11dd4 | /sentimentanalyzer.py | 8993e1ccb851c52fd63098f05ac298bcc7c21c68 | [] | no_license | vaitheeswarang/SentimentAnalyzer | fc5a597b6cf37e4b8726f4a559f46ce8fd4751e8 | 426b0e06a33a52b333a1631b66151bdde42eb715 | refs/heads/master | 2020-03-27T21:46:03.343604 | 2018-12-07T08:38:00 | 2018-12-07T08:38:00 | 147,174,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,898 | py | from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
print("*"*50)
#textt="the touch is not bad. the product is not a bad. i love this mobile fisrt. the product is awesome. it is easy to use. cost is too high to buy. camera is not good. comparing with other the quality is very bad. bad mobile.... | [
"noreply@github.com"
] | vaitheeswarang.noreply@github.com |
d8827844e462a3b2f1b7a4bfea42cf1fa45b6f4e | a080b5cb90d0e274b5a7aec3adb9bfdf4d5b8cd5 | /jpgtopng.py | c01fa5b2f05dab9aa03590a67748832f4389f50d | [] | no_license | nickcodes-py/JPGtoPNG-Converter | df2025855c87558c054de4dee7c73885d973b77a | c521cdba80008a2e0d3e0572b1bb7360020642b2 | refs/heads/master | 2020-12-04T20:55:37.693165 | 2020-01-05T10:18:14 | 2020-01-05T10:18:14 | 231,899,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | import sys
import os
from PIL import Image, ImageFilter
#Grab Current and New Folder
image_folder = sys.argv[1]
output_folder = sys.argv[2]
#Check if New exist, or create
if not os.path.exists(output_folder):
os.makedirs(output_folder)
#Loop through folder, convert images to PNG
for filename in os.listdir(image_... | [
"nikunj.dutt@outlook.com"
] | nikunj.dutt@outlook.com |
94bb8b2a0fb2fd8136b0743980291df09b163012 | 850001831b1fcdd4d27e328b356fc34909ca2917 | /tests/test_map.py | 77237924f7d6561097ffea685bfbe60e67c465bc | [
"BSD-3-Clause"
] | permissive | yidiq7/pathos | b337353ccfe447866c46a4a784a7908c2f3fe31e | 7e4fef911dc0283e245189df4683eea65bfd90f0 | refs/heads/master | 2022-08-24T08:43:34.009115 | 2020-05-27T12:18:21 | 2020-05-27T12:18:21 | 267,310,390 | 0 | 0 | NOASSERTION | 2020-05-27T12:14:50 | 2020-05-27T12:14:47 | null | UTF-8 | Python | false | false | 2,170 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2020 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/pa... | [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
7f3bf8c6c37f51045aadb727540f9a198debe4ce | a08670c23f1a8fed994fb781df93ce87a1ffc422 | /web/base/__init__.py | 658f51a797e95a51bb9111273933bf7998f7c2a2 | [] | no_license | roenfun/selenium-demo | 962d53a459756716dea5bc81bdbc82105f619f61 | 7d5e46d8472cc22617d00df17f0fd272df19dff3 | refs/heads/master | 2023-03-21T13:27:49.707425 | 2021-03-15T03:23:37 | 2021-03-15T03:23:37 | 266,483,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | # @File : __init__.py.py
# @Author : Chad
# @Time : 2020-05-23
# coding:utf-8
| [
"Chad.long@vipshop.com"
] | Chad.long@vipshop.com |
74b1acca6c71d5a2a04373300690f2d2ca2e9bbd | 1bd47bb8cffa81a8e7d578d3826a420e9750e161 | /main.py | 86049ea3a70e311a4e73e8ccc283d6a0a5982466 | [] | no_license | Damir10165/TableAndTree | 24d8a5ef0afa4938ee05d833351d74d624ebe7aa | 94fb3933066570c0ded7db5670ca1cc8abf22428 | refs/heads/main | 2023-08-17T10:58:39.704553 | 2021-07-16T12:43:26 | 2021-07-16T12:43:26 | 386,104,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from PyQt5.QtWidgets import (QApplication, QWidget, QToolBar, QPushButton,
QMainWindow, QAction, QTextEdit, QGridLayout,
QTableView)
from PyQt5 import QtSql
import random
import sys
import os
DATABASE_N... | [
"noreply@github.com"
] | Damir10165.noreply@github.com |
e93d618ef2a5f5ad993261c09a6a1b7b73293570 | 0fa1d839550f4bfb1d9d0860915770071422f2cd | /parrot.py | 51dd4bbc1ed740272deb7e105a164b4e9cb6f887 | [] | no_license | crystalDf/Python-Crash-Course-2nd-Edition-Chapter-07-Input | b996d5b5bfbf20be039ac2e2314e51d6a51545a1 | a8838fe405e4ce70e827a6ace98f3502b3a57f45 | refs/heads/master | 2023-06-10T08:12:07.675473 | 2021-06-20T14:45:01 | 2021-06-20T14:45:01 | 378,668,714 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | message = input("Tell me something, and I will repeat it back to you: ")
print(message)
prompt = "\nTell me something, and I will repeat it back to you:"
prompt += "\nEnter 'quit' to end the program. "
message = ""
while message != 'quit':
message = input(prompt)
if message != 'quit':
print(message)
... | [
"chendong333@gmail.com"
] | chendong333@gmail.com |
e3cb34e969e398b08d9c43935908f7b26d4014f0 | 000a4b227d970cdc6c8db192f4437698cb782721 | /python/helpers/typeshed/stubs/stripe/stripe/api_resources/charge.pyi | 2e3467e67bc5e6b90113fd9988cf281a375bde2c | [
"Apache-2.0",
"MIT"
] | permissive | trinhanhngoc/intellij-community | 2eb2f66a2a3a9456e7a0c5e7be1eaba03c38815d | 1d4a962cfda308a73e0a7ef75186aaa4b15d1e17 | refs/heads/master | 2022-11-03T21:50:47.859675 | 2022-10-19T16:39:57 | 2022-10-19T23:25:35 | 205,765,945 | 1 | 0 | Apache-2.0 | 2019-09-02T02:55:15 | 2019-09-02T02:55:15 | null | UTF-8 | Python | false | false | 851 | pyi | from typing import Any
from stripe import api_requestor as api_requestor
from stripe.api_resources.abstract import (
CreateableAPIResource as CreateableAPIResource,
ListableAPIResource as ListableAPIResource,
UpdateableAPIResource as UpdateableAPIResource,
custom_method as custom_method,
)
class Charg... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
7bfbdeac3b9d9dcaf8e91951da6cda2e2c7d6ce8 | 7daf78ed6ddc52c46b7d83db865cb6bd57a451ac | /spi_test.py | bac96a76c0db60104f1b5eb8cbb731cffd3ffb3f | [] | no_license | bitbytebitco/radpc_ai | 684b038fb14d117afec189e4871160fb021d2186 | cacf80efa37acd6bf563ec27697b3fd594ed4720 | refs/heads/master | 2023-06-29T01:50:43.178256 | 2021-08-05T02:59:21 | 2021-08-05T02:59:21 | 365,015,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,423 | py | import os
import spidev
import time
import RPi.GPIO as GPIO
# GPIO init
GPIO.setmode(GPIO.BCM)
GPIO.setup(23,GPIO.IN, pull_up_down=GPIO.PUD_UP)
# SPI init
spi_bus =0
spi_device = 0
spi = spidev.SpiDev()
spi.open(spi_bus, spi_device)
#spi.max_speed_hz = 4000
#spi.max_speed_hz = 151000
spi.max_speed_hz = 145000 ... | [
"bitbytebitco@gmail.com"
] | bitbytebitco@gmail.com |
413948050ddee82de99cfae896398e6cdd3de69b | b252c3b7a78b37f8da3d5edca023e2bc38b368d4 | /python_spider/learn_urllib.py | f35177e5ca0fc7636e025d24da4b8e810ec17bae | [] | no_license | xianke5200/Python_spider_test | 868447e48ae136314ba08a7c06440ba27951b201 | 7674ff2b4bcdc35248718d02245e968a5ca61add | refs/heads/master | 2021-12-16T04:18:45.263926 | 2021-12-13T06:01:03 | 2021-12-13T06:01:03 | 234,503,928 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | import urllib
from urllib import request,parse
import ssl
#response = urllib.request.urlopen('http://192.168.1.153/bugfree/index.php/site/login')
#print(response.read().decode('utf-8'))
#context = ssl._create_unverified_context()
url = 'http://192.168.1.153/bugfree/index.php/site/login'
headers = {
'User-Agent':'... | [
"1833907216@qq.com"
] | 1833907216@qq.com |
f76b563996fa4bd26228b5de39272a5ff2b2f5bf | 7407b5a2bfad54bc9767c70c47d205164ffa337f | /models/db1.py | 28d949a5077a8f9c4c8eccedeebe92588ac8d9c0 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | abdulhalim-cu/motor-control-system | 9397bb191fa22fceb66e88ccdb4ea80de774eb33 | 70d276d63163269c378620a85d46db8374b1a836 | refs/heads/master | 2021-01-01T18:31:42.750124 | 2017-08-01T01:51:27 | 2017-08-01T01:51:27 | 98,357,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,416 | py | # -*- coding: utf-8 -*-
db.define_table('Device',
Field('device_id', 'string'),
Field('device_name', 'string'),
Field('model', 'string'),
Field('location', 'string')
)
db.Device.device_id.requires = [IS_NOT_EMPTY(),IS_NOT_IN_DB(db, 'Device... | [
"abdulhalim.cu10@gmail.com"
] | abdulhalim.cu10@gmail.com |
37ed82c45df03e22c5d1a9edd666017218ee89f1 | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/zscaler/icon_zscaler/util/helpers.py | 3a839a924b1fefd1411e0082e08af7540ce22557 | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 4,440 | py | from insightconnect_plugin_runtime.exceptions import PluginException
from re import sub, match, split
from typing import Union, Any, Dict
from icon_zscaler.util.constants import Assistance, Cause
CAMEL_CASE_REGEX = r"\b[a-z0-9]+([A-Z][a-z]+[0-9]*)*\b"
PASCAL_CASE_REGEX = r"\b[A-Z][a-z]+[0-9]*([A-Z][a-z]+[0-9]*)*\b"
CA... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
ae28eeb606bc9e3c7a1b0a8586dd6305705295bb | add83856f85c4134a524671121212e32e9a0ade2 | /aula4.py | 6fb7f45e441fefbeecbb28f0bed9ee88a5a5bf73 | [] | no_license | priscilasvn10/Estudando_Python | 671e3842c7b4e4de29e86cd7abe23f307d4a2ab8 | ffef655a9c3282ac158435b3263928cd6cb531bd | refs/heads/master | 2022-11-06T20:57:46.375239 | 2020-06-11T11:54:16 | 2020-06-11T11:54:16 | 271,512,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | a = int(input('Digite o primeito valor: '))
b = int(input('Digite o primeito valor: '))
soma = a + b
media = soma/2
print('O valor da soma é: {soma}'.format(soma=soma))
print('\n A média é {}'.format(media))
| [
"noreply@github.com"
] | priscilasvn10.noreply@github.com |
224730f81d5c198b3bf51777919019a771f07a63 | 71c47b4c8f35279c1f875c499ecae3c2eaf65432 | /Module_1/homework/100NSqrt.py | 5976441d21bd1b5d6e2749fc5d97916fb9033217 | [] | no_license | isemiguk/Python_Coursera | e53ead7ed966a0b11a9c43667caa00f9c4504328 | ce7d5904a91dfadd57d9a2bb4fb413d4c23c7a3c | refs/heads/master | 2022-11-06T13:56:50.926356 | 2020-07-01T19:12:22 | 2020-07-01T19:12:22 | 266,181,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | a = input()
print(int(a * 100)**2)
| [
"igorsemiguk@gmail.com"
] | igorsemiguk@gmail.com |
ecff5efbd76a2dde9d681d2784b800b6663f9127 | b7c3511bf4293c12510f0eab72f6d2bffd05be19 | /web_chat/chat/tests.py | 4b658e6522c77c5c9eb85d331569b99c4f7bd68e | [] | no_license | vramos1/backend-arquitectura | ab7e8831f899a038902c83c3bef89b202c432abb | 159bad5b1e454328df6981d8935c909a8204e36d | refs/heads/master | 2023-01-29T21:14:50.188507 | 2020-11-23T21:04:13 | 2020-11-23T21:04:13 | 310,602,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from django.test import TestCase
from web_chat.chat.models import Room, Chat, Apply
from django.contrib.auth.models import User
# Create your tests here.
class ChatTest(TestCase):
def setUp(self):
self.user = User.objects.create(
is_superuser=False, password="test", username="test"
)
... | [
"vramos1@uc.cl"
] | vramos1@uc.cl |
5a42411bbb622d7b2f01c712aad314bdfc8d9c6f | 953b15ef3ff7d2a1b12d86dbf13f15af7eb8aa4a | /a3c_training_thread.py | a050c771ade48fcefdb98c1de9d1693718ecc548 | [
"Apache-2.0"
] | permissive | MightyChaos/async_transfer_rl | 2fe213dda375f3df165dbe277aa656319997eb34 | 000601773d2e226848a49eb71cfc9d89cc6df9bb | refs/heads/master | 2021-01-20T04:47:55.741247 | 2017-04-29T03:16:10 | 2017-04-29T03:16:10 | 89,735,265 | 0 | 0 | null | 2017-04-28T18:46:26 | 2017-04-28T18:46:26 | null | UTF-8 | Python | false | false | 6,143 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
import random
import time
import sys
from game_state import GameState
from game_state import ACTION_SIZE
from game_ac_network import GameACFFNetwork, GameACLSTMNetwork
from constants import GAMMA
from constants import LOCAL_T_MAX
from constants import... | [
"yangluonaluna@gmail.com"
] | yangluonaluna@gmail.com |
b1d967e610d4020d110343b3a61c6a12bb491305 | 709522eb6c9730f2095df3d0f89b02b658e93e18 | /run.py | 6d7679064d87dd38d491dcc181560356ff89813e | [] | no_license | haracewiat/MultiplayerGame | 1bb549c4bae6655ece3f5c2386d33a2a042ac7d7 | 4896626da59c280a7a8ae22026cd33dd0818095f | refs/heads/master | 2023-07-20T02:12:27.227911 | 2020-03-11T17:41:54 | 2020-03-11T17:41:54 | 246,146,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from game import Game
if __name__ == "__main__":
print("run")
g = game.Game()
g.run()
| [
"b.haracewiat@gmail.com"
] | b.haracewiat@gmail.com |
ce95dbf6fcaaaf9619bb3af852fd822f2f11193d | aa74d22568d80866488a321026c369a12346484f | /microblog/app/venv/bin/flask | ffb649ae118d9a9f02968aa474a905ff4e264b54 | [] | no_license | nptravis/python-studies | 0ca5e3d804beb2b9b7e3484606753324c9151bab | d649ac614bf9efdce1cc50e015f9252d1eba371c | refs/heads/master | 2021-09-03T13:18:27.621292 | 2018-01-09T09:43:39 | 2018-01-09T09:43:39 | 114,952,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | #!/Users/Nic/Documents/projects/cs50/python/microblog/app/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nptravis@yahoo.com"
] | nptravis@yahoo.com | |
3e8640eb434a281e1b988d45b8387af02a0249b2 | a3bdf69d3c5b8e422aae70eb21f3ae5f776e2ff9 | /utils/excel_utils.py | 5db791dbd899c620a96d16e483a8feaaa2a2cb18 | [] | no_license | cyssxt/data-sym-scrapy | 6ce9d8d60869f89dc5f892984c113fdfeb52aefb | 5fd92a42ec8a59fead315e2c63fc4d750de24c68 | refs/heads/master | 2021-08-23T18:41:02.036963 | 2017-12-06T02:47:39 | 2017-12-06T02:47:39 | 111,883,444 | 0 | 0 | null | 2017-11-24T06:22:27 | 2017-11-24T06:22:27 | null | UTF-8 | Python | false | false | 2,437 | py | import xlrd
from xlutils3.copy import copy
class ExcelParse(object):
"""
path:excel路径
sheet:excel中的sheet下表
head_index:excel标题头所在的行数
callback:遍历每一行的回掉
offset:内容体遍历的起始位置
limit:遍历的总记录数
descName:最终生成的excel
"""
def __init__(self, path, sheet=0, head_index... | [
"cyssxt@163.com"
] | cyssxt@163.com |
8c891499686c46192eb6e8fdbff3d1ff45edece6 | d40b1042ab0c3506a35c65889f0df73405fb66b0 | /namespaces.py | 639b3bac194dbcc687399605a172bbb5c8b7d97f | [] | no_license | juanique/ucursos-rdf | 18a7e92789eb5f035e798d12128458bd6133af57 | 93c6c78876b99ecb253e0e98144e11ec39d9903e | refs/heads/master | 2020-05-31T06:24:25.110260 | 2012-05-03T03:01:52 | 2012-05-03T03:01:52 | 4,177,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | from rdflib import Namespace
NFO = Namespace('http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#')
NIE = Namespace('http://www.semanticdesktop.org/ontologies/2007/01/19/nie#')
RDFS = Namespace('http://www.w3.org/2000/01/rdf-schema#')
RDF = Namespace('http://www.w3.org/1999/02/22-rdf-syntax-ns#')
CLIP = Namespac... | [
"juanique@ubuntu.(none)"
] | juanique@ubuntu.(none) |
61c9e42c66d7a8db5e32e7b93993184e39839ae7 | 69310bc4a04d4f9cbbb27a4c322c5d7d8fb3d0c3 | /Tests/test_PopulationSample.py | bd4a0e308ae4df676de830ec8d97e519ca0cd2d5 | [] | no_license | jaylakhani14/statcalc | 15ea52e787cb75cd767d6e3564fcefd7d06d7536 | e28a233c06ff236b157494d2df31dea15c8dc328 | refs/heads/master | 2023-03-31T19:39:41.400843 | 2021-03-23T01:16:08 | 2021-03-23T01:16:08 | 344,951,449 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | import unittest
import numpy as np
import scipy
from PopulationSampling.simpleRandom import Sample
from PopulationSampling.confidence import Confidence
class MyTestCase(unittest.TestCase):
def test_simple_random_sample(self):
mylist = ["apple", "banana", "cherry"]
Sample.sample(mylist, 2)
d... | [
"fjt7@njit.edu"
] | fjt7@njit.edu |
a6db5964253e81c368fcf13b0b31ecd3de6e3376 | 4eeb7257a706967a049ea0e020bdd8d05f987c21 | /working/kub-nginx.py | f5b3cb82ed777fedc2d42f605087d169d7903549 | [] | no_license | monolive/airflow-dags | 6e1451261f370ec9707a3226ad2ea4498d628faa | e1191d2193ca428f331c7ac0d09c89056893f891 | refs/heads/master | 2020-04-10T13:32:33.789760 | 2019-02-25T08:59:57 | 2019-02-25T08:59:57 | 161,053,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | #from airflow.contrib.operators import KubernetesOperator
from datetime import datetime, timedelta
from airflow import DAG
from airflow.operators.dummy_operator import DummyOperator
from airflow.contrib.operators.kubernetes_pod_operator import KubernetesPodOperator
from airflow.contrib.kubernetes.secret import Sec... | [
"Olivier.Renault@vanquisbank.co.uk"
] | Olivier.Renault@vanquisbank.co.uk |
0292b72004bd85deca84805fc86f18693d557717 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /JFLADuABfkeoz8mqN_5.py | 418dc4c327c7b6b0b704d40cb3c93aa5c599e590 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py |
class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def compare_age(self, other):
modifier = ''
if self.age < other.age:
modifier = 'older than'
elif self.age == other.age:
modifier = 'the same age as'
else:
modifier = 'younger than'
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ca93607b79207cc78004efd8c339bc2ab7e9d567 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5670465267826688_0/Python/yagao0o/dijkstra.py | 96ca68f0bdc39cf5943ae362656074c360209c95 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,207 | py | # author: yagoa0o
# date : 2015/04/11
class Solution():
multi_square = {'1': {'1': '1', 'i': 'i', 'j': 'j', 'k': 'k'},
'i': {'1': 'i', 'i': '-1', 'j': 'k', 'k': '-j'},
'j': {'1': 'j', 'i': '-k', 'j': '-1', 'k': 'i'},
'k': {'1': 'k', 'i': 'j', 'j': ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
9b3c43e2159eccae5ed0ba80f67a626831e04c62 | 722d8f2aa69095dbdbe32ecdeebb4bcf20e2ea3c | /tests/test_issue10_17.py | e54ddd56630de1e5e811d12e7ec3f3da0d804333 | [] | permissive | clach04/pyqrcodeNG | 1bad85bea9c2a5ca9bcda8849e35af51f8e394f3 | 8033a915eca1946537002b8b271ea2cddb4e004b | refs/heads/master | 2022-04-23T00:18:36.478138 | 2020-01-21T22:28:44 | 2020-01-21T22:28:44 | 259,402,644 | 0 | 0 | BSD-3-Clause | 2020-04-27T17:24:36 | 2020-04-27T17:24:35 | null | UTF-8 | Python | false | false | 424 | py | # -*- coding: utf-8 -*-
"""\
Tests against <https://github.com/mnooner256/pyqrcode/issues/17> and
<https://github.com/heuer/pyqrcode/issues/10>
Unicode issues.
"""
from __future__ import unicode_literals
import pyqrcodeng as pyqrcode
def test_issue_10_17():
qr = pyqrcode.create('John’s Pizza')
assert qr
... | [
"heuer@semagia.com"
] | heuer@semagia.com |
9148b220bb576626f27c0f2cfb3cb25ebbcd7139 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/datatypes/facets/byte/byte_max_inclusive001_xsd/__init__.py | 0444a6966ba5abae09b921e38485930982799bb6 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 173 | py | from output.models.ms_data.datatypes.facets.byte.byte_max_inclusive001_xsd.byte_max_inclusive001 import (
FooType,
Test,
)
__all__ = [
"FooType",
"Test",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
b9d57dfeaf96a51267c065beaf179dce02cef79a | d5905c424264e9376fb80871749865140fbd3fb1 | /MPCNN-sentence-similarity-tensorflow/embedding.py | cdf6713bff57f004be2f5dcc433e2611a2f190a8 | [] | no_license | eric-seekas/sentence_similarity | 456e29ecb53e63a6f0ab804acfc6e919e1a1458c | 647e90b1c43ab838fe857f87d3a2d5364112ff9b | refs/heads/master | 2021-02-08T18:20:45.443720 | 2018-05-22T10:50:17 | 2018-05-22T10:50:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | """
A toolkit you may find useful for mapping sentences to embeddings.
Download and unzip the standard GloVe embeddings to use this.
Skip-thoughts use unigram/bigram information from the Children Book dataset.
"""
from __future__ import print_function
import numpy as np
class Embedder(object):
""" Generic em... | [
"cbj_love@126.com"
] | cbj_love@126.com |
25a420ee9e5512309aafd20ed676820b038209ea | b86608b6de44642ed29cd88bba4acbbdd31a0b04 | /tools/agile-machine-learning-api/codes/trainer/launch_demo.py | 8bd90b27237627cf0a348cdc757db624b062bda7 | [
"Apache-2.0"
] | permissive | MCRen88/professional-services | a514a926dd23e3c4ac6dadb656faed22c3d91d5d | d7bc3b194159ffdb149c9507890bb1fbae7a8d88 | refs/heads/master | 2020-12-15T16:38:17.860940 | 2020-01-06T19:29:47 | 2020-01-06T19:29:47 | 235,181,173 | 1 | 0 | Apache-2.0 | 2020-01-20T19:26:15 | 2020-01-20T19:26:14 | null | UTF-8 | Python | false | false | 21,978 | py | # Copyright 2019 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 agreed to in writing, ... | [
"jferriero@google.com"
] | jferriero@google.com |
0bea2a6533e2180f7d91076749f8da9dd71d235f | 774df3c9bbb64889ae97b13363baf49709ad3f6c | /menwith/network.py | 62d8a64f388a8a7199a6d71ab04d2a051c1d36ff | [] | no_license | gmr/menwith | 39095b8730d7ae87cd3d679bb65f3c6f1e775635 | e03f51ccfa8db4db036f2f6e0fa640c579f1e150 | refs/heads/master | 2020-04-26T22:21:24.168247 | 2011-11-28T04:03:21 | 2011-11-28T04:03:21 | 173,705 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,961 | py | """
Main PCAP interface for listening on the NIC for data
"""
import logging
import pcap
from socket import ntohs, IPPROTO_TCP, IPPROTO_UDP
import struct
from . import memcache
# Ethernet constants
_ETHERTYPE_IPV4 = '\x08\x00'
# IPv4 Constants
_IPV4_BASE_HEADER_SIZE = 20 # Default IPv4 header size
_IPV4_OPTIONS_OFF... | [
"gmr@myyearbook.com"
] | gmr@myyearbook.com |
46a326cd6ade0459a980a6bbdfafd899baf525e5 | 0208cbf2f0ea3c5405f2f8e3e74367df3916b999 | /venv/bin/easy_install-3.6 | cb43565f07cca22102c5e0b7d32db2c448086c7c | [
"MIT"
] | permissive | BHushanRathod/ecolibrium-assessment | aaa111ea7ba5e495f7deff5f2e59c2a7816dfd2e | b7a4f1ebb69094bcb0c2d39fc94df3cd93c73fb0 | refs/heads/master | 2022-05-02T14:45:36.088566 | 2021-07-12T10:20:51 | 2021-07-12T10:20:51 | 172,217,130 | 0 | 0 | MIT | 2022-04-22T21:01:35 | 2019-02-23T13:23:35 | Python | UTF-8 | Python | false | false | 468 | 6 | #!/Users/bhushan/Truso1.0/Experiment/ecolibrium_assessment/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-s... | [
"abhushanprathod@gmail.com"
] | abhushanprathod@gmail.com |
ec4b7992e11399e05868bd6cd613c86cd686efa1 | bf02d48baebee89a95b2c637b6d017ca300039ef | /tictactoe/settings.py | f9e2d7ba7de9bf3f09d6d21562d2bce0679fe770 | [] | no_license | maheshwars/Tic-Tac-Toe | c4014b9d0c833e4d0648066f319b42a60e6d589e | b2ea1c5f0b84f8fbd5e360e323d4030e8fc82589 | refs/heads/master | 2022-12-09T12:41:50.696273 | 2020-09-09T21:30:27 | 2020-09-09T21:30:27 | 294,225,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,509 | py | """
Django settings for tictactoe project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
... | [
"noreply@github.com"
] | maheshwars.noreply@github.com |
274befd704407b98b615b5efb59b5c392ba2d396 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/sql/outbound_firewall_rule.py | 5a8309fc8ccaf95892a167a53395faad58b8bd6a | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 7,974 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | [
"noreply@github.com"
] | morrell.noreply@github.com |
97c39494d2c4397abe0b8e90109bb32a2af8219e | 6730a45a5dcf89b7e9868f0a88e47541a5f30dc6 | /tests/task_stat/test.py | c7a34f168b428d9a9ce28b1724701f1d8398d95e | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | dontkme/rmats-turbo | def1ca43c88b9c22827ef9652420d71d12f0f11f | 8a2ad659717a1ccd6dbecd593dc1370ba7c30621 | refs/heads/master | 2023-08-24T11:19:14.177599 | 2021-08-03T12:50:52 | 2021-08-03T12:50:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,997 | py | import collections
import os.path
import shutil
import subprocess
import sys
import unittest
import tests.base_test
import tests.output_parser as output_parser
import tests.test_config
import tests.util
class Test(tests.base_test.BaseTest):
def setUp(self):
super().setUp()
self._test_base_dir = ... | [
"noreply@github.com"
] | dontkme.noreply@github.com |
f519f8ae0d7bee8960df8f6c8053f6c930b0db76 | a98eab432108d65c8546c44cded7808463b844a4 | /common/libs/UploadService.py | 1855eb6afd457e0dd62cbeb931b35ad635c2e266 | [] | no_license | RocketWill/Qamar | 287ec3d5ad2ec7b3435c93def2d85bbe7d94d928 | 63e41d333559baf52a9010850bc4c2713ac0b93d | refs/heads/master | 2020-04-21T23:55:59.459620 | 2019-03-19T12:00:02 | 2019-03-19T12:00:02 | 169,962,064 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | # -*- coding: utf-8 -*-
from werkzeug.utils import secure_filename
from application import app, db
import os, stat, uuid
from common.libs.Helper import getCurrentDate
from common.models.Image import Image
class UploadService():
@staticmethod
def uploadByFile(file):
config_upload = app.config['UPLOAD']... | [
"willcy1006@163.com"
] | willcy1006@163.com |
52ff178dec4c0fecc3a4ec0097dbff7f0a46b8ed | 0062da4c92b6a621343347a36ee32128838c09ec | /hw6/hw66.py | d53ded6c0933a977859a413ec67f23285fc1ca50 | [] | no_license | Skotmak/Homeworks | d3bb39e1d6d960ec3ad1c5c74a0eb5508f1f1e15 | 071e3c3a9d1341b28dd3a4828788f422fd943367 | refs/heads/master | 2022-05-13T07:50:45.869093 | 2022-05-03T17:19:53 | 2022-05-03T17:19:53 | 226,465,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | class First:
color = "red"
form = "circle"
style = "cool"
def changecolor(self,newcolor):
self.color = newcolor
def changeform(self,newform):
self.form = newform
def changestyle(self,newstyle):
self.style = newstyle
class Second:
color = "red"
def changecolor(sel... | [
"belok9999@yandex.ru"
] | belok9999@yandex.ru |
29ddf0ad878bb01613933dec9c0ea4d5d69f4d37 | e88de870db4ed98a39a1e7661f4662ba9d465b84 | /fixture/session.py | 2ab29c2141001defd40b5ad6e7da6669a31fc3a5 | [] | no_license | TatianaMoskvina/PainPoints | f11c371115e21da284e3375581ff4a485b38e495 | 291782aab76bc7b7b1cbdd493a0837b25c65a92c | refs/heads/master | 2020-04-13T04:02:43.248112 | 2019-01-24T05:59:02 | 2019-01-24T05:59:02 | 162,949,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py |
class SessionHelper:
def __init__(self, app):
self.app = app
def log_out(self):
# log out
wd = self.app.wd
wd.find_element_by_id("myProfile").click()
wd.find_element_by_link_text("Log Out").click()
def ensure_logout(self):
wd = self.app.wd
if s... | [
"moskvina.tania.vit@gmail.com"
] | moskvina.tania.vit@gmail.com |
fbc8f567fc64ca0f8626efc764da3297fb9e5918 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/contrib/tensor_forest/hybrid/python/models/stochastic_soft_decisions_to_data_then_nn.py | e916a8734c524c83772576e38418e6667fa6b0c9 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 1,954 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
90db28e0b00420ae8ba6a75d46a68285b150f3e2 | bd7cbd805417429af1a6636eff86857b28162525 | /encapsulation.py | c4a5fe1d25ea847720f29c90dc5c902265b1d92c | [] | no_license | Qannaf/Python | d92cb9bad34de2a6814520f6487d548e93bfb52c | b8d23cdda6f5901bd176a4274f1b8d389267dc85 | refs/heads/main | 2023-04-28T09:03:30.854096 | 2021-05-22T08:35:51 | 2021-05-22T08:35:51 | 356,817,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | #coding:utf-8
#voila mon 12émé code en python
class Humain:
""""Classe qui définit un humain"""
def __init__(self,nom ,age): #constrecture
self.nom = nom
self._age = age
def _getage(self):
#print("Récupération interdite")
if self._age<= 1:
return "{} ... | [
"qannafalsahmi@gmail.com"
] | qannafalsahmi@gmail.com |
8095b9c0a7bae6822334409e1ce923939046e30c | 141b42d9d72636c869ff2ce7a2a9f7b9b24f508b | /myvenv/Lib/site-packages/cairosvg/colors.py | d77cb275f83cb564c24eb127821c4d38243acfbb | [
"BSD-3-Clause"
] | permissive | Fa67/saleor-shop | 105e1147e60396ddab6f006337436dcbf18e8fe1 | 76110349162c54c8bfcae61983bb59ba8fb0f778 | refs/heads/master | 2021-06-08T23:51:12.251457 | 2018-07-24T08:14:33 | 2018-07-24T08:14:33 | 168,561,915 | 1 | 0 | BSD-3-Clause | 2021-04-18T07:59:12 | 2019-01-31T17:00:39 | Python | UTF-8 | Python | false | false | 11,254 | py | # This file is part of CairoSVG
# Copyright © 2010-2015 Kozea
#
# This library is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#... | [
"gruzdevasch@gmail.com"
] | gruzdevasch@gmail.com |
1153e48fb209a9481fc4f3d804857ae10cbf9c27 | 21264264d3323c2d801042ffe3aeecb97c393251 | /regimens/tests/test_forms.py | e3402a9f38a01eb7015a07c85eb153af54a1a05f | [
"MIT"
] | permissive | michael-xander/communique-webapp | a5dd45b3c1019d40ca02fea587ade35dbf16c0d0 | 85b450d7f6d0313c5e5ef53a262a850b7e93c3d6 | refs/heads/master | 2021-05-01T15:34:06.013729 | 2016-11-19T19:15:31 | 2016-11-19T19:15:31 | 63,105,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | from django.test import TestCase
import datetime
from regimens.forms import RegimenForm
from regimens.models import Drug
from patients.models import Patient
class RegimenFormTestCase(TestCase):
"""
Test cases for the regimen create form.
"""
def setUp(self):
Patient.objects.create(other_name... | [
"michaelkyeyune01@gmail.com"
] | michaelkyeyune01@gmail.com |
5d7dcefc5473baa7b1829179e02b456b2dc7a467 | 1526f23c4a847768a5fc1c2ba596275d5d7ec0d5 | /assgn2/pr7.py | 16044b8670c8a1a1d63e463e2a9b0422df3600da | [] | no_license | gitank007/python-assignmnet | d07e7d222242f13dbfe7bd5d1f7a75ddb8be9aa7 | 7b7588927a17c46dfea2b141c7ccf91b4b5f3949 | refs/heads/master | 2023-02-28T17:02:45.217169 | 2021-02-11T08:03:57 | 2021-02-11T08:03:57 | 333,665,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | ''' nature of roots
step 1: if d=b^2 -4ac =0 ==>real and equal roots
step 2 if d>0 then they are rel roots
step 3 if d<0 then it is imaginary rots
'''
x,y,z=[int(x) for x in input("enter the space seprating values of cofficients of ax^2+bx+c values will be considered in repective manner: ").split()]
print("a={} ,b=... | [
"noreply@github.com"
] | gitank007.noreply@github.com |
f2d017f5816dc45eeaf51e3c46e9eea79e6f4cc8 | 56fd010ffa40a8496a61ca4974ab136c55add8f6 | /Bruit_TrafficRoutier/Zone_bruit.py | 3635ac3c5a55fd3a7bc5b31513c5c08989a2ec68 | [] | no_license | BarAmina/Python_ArcPy | 1f185894888acf1d8cab20d17b3cbd65b09a82e9 | ffe5db519ddf60838096b27acb283c3fb44f1ac6 | refs/heads/master | 2020-08-04T22:25:03.955430 | 2019-10-11T21:34:23 | 2019-10-11T21:34:23 | 212,297,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | # -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Nom du script : Zone_bruit.py
# Objet : Génération de zones d'exposition au bruit du traffic routier
#-------------------------------------------------------------------------------
# Import... | [
"noreply@github.com"
] | BarAmina.noreply@github.com |
290d3ea467c81eb4adcf2a72c26529c2a9e07eb4 | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/jsinix/Problem10.py | 8f8dd302f291fb441406f1d44ec06aae2c72032e | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # Question: Summation of primes
# Problem 10
# The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
# Find the sum of all the primes below two million.
# Answer: 142913828922
#!/usr/bin/python
def is_prime(num):
for j in range(2,num):
if (num % j) == 0:
return False
return True
list1 = [... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
50c51970784b45eb11a6e6b9407324632f40fbe4 | 5fc1bb8df5af751e855ccdb224a37a7afb473d6e | /setup.py | 0af5652144881f9fac8ad445e1c7b171c6d9d2ed | [
"BSD-3-Clause"
] | permissive | areagle-stripe/SimpleML | c316ddaba7cac8dc709c4d9030e0de1897dc007a | 10a2167a73570bc923c202930fa75ba56d46c504 | refs/heads/master | 2020-03-14T14:31:29.949925 | 2018-04-09T02:37:06 | 2018-04-09T02:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from setuptools import setup, find_packages
setup(
name='simpleml',
version='0.1',
description='Simplified Machine Learning',
author='Elisha Yadgaran',
author_email='ElishaY@alum.mit.edu',
license='BSD-3',
url='https://github.com/eyadgaran/SimpleML',
download_url='https://github.com/eya... | [
"ElishaY@alum.mit.edu"
] | ElishaY@alum.mit.edu |
5540e36a51a6dfcea256b55d35fa3fa736c86e2e | e96bab82cc398aec30b8969288def8403c033207 | /36_Data types function.py | dcceb7b9db3682f5ce76e3d3a2bec556373faceb | [] | no_license | shiyanshirani/w3s-150-questions | 125c7df920d6cc04e71232f0d994673aaa0d8d15 | 3d532ab7a70767d905f86423185e2abbee6d7c2b | refs/heads/master | 2022-11-05T03:30:19.738858 | 2020-06-27T14:17:50 | 2020-06-27T14:17:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | def typesfunction(a, b):
if type(a)==int and type(b)==int:
print(a+b)
else:
print("Different types")
typesfunction("google", 5)
typesfunction(111,0) | [
"shiyan99@gmail.com"
] | shiyan99@gmail.com |
0ac33827a9a2da4ec675edc41ce481fc5157e0f5 | a7f43722f91b6cc75b46924daa08d856e9c4793c | /env/bin/pip3 | 8ad698ab09c3dd8b9c007b1e05cada42de0aee9b | [] | no_license | bodevone/django-blog | b226b998d609dd6726053857fd38c5abc2c98734 | ee4e5dbafa94b2fe18261cf229ace3c741c97203 | refs/heads/master | 2020-05-03T10:11:02.256327 | 2019-03-30T15:08:28 | 2019-03-30T15:08:28 | 178,573,157 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/bodevan/Documents/coding/django-blog/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aliby.bbb@gmail.com"
] | aliby.bbb@gmail.com | |
b6d557a679a01d00df7d8e053588222bcee90375 | 4b100e0519f3362554bac7434baac61a1d08ddd2 | /third_party/ros_aarch64/lib/python2.7/dist-packages/dynamic_reconfigure/cfg/TestConfig.py | 8cb1e13bddbb1e0b79add5109e2837449bfbccae | [
"Apache-2.0"
] | permissive | YapingLiao/apollo1.0 | 17002fefaf01e0ee9f79713fd436c8c3386208b6 | 6e725e8dd5013b769efa18f43e5ae675f4847fbd | refs/heads/master | 2020-06-18T13:04:52.019242 | 2018-01-29T01:50:43 | 2018-01-29T01:50:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,004 | py | ## *********************************************************
##
## File autogenerated for the dynamic_reconfigure_test package
## by the dynamic_reconfigure package.
## Please do not edit.
##
## ********************************************************/
from dynamic_reconfigure.encoding import extract_params
inf = ... | [
"14552258@qq.com"
] | 14552258@qq.com |
abdf25273170a0e464ee6c988a08c42a21bbd8b0 | f3a1629a46f5c3cbf7314c54fc36be3156146517 | /venv/bin/sqlformat | f01aa4e0e6285b25c7aec0571805920953267bed | [] | no_license | AlexsandroMO/qualiy_applications | ec4cdbcbacc9f403d7d34ca9573af44df9c9230a | 08656c8368f10d54e5b9c8e4a758989239224dc6 | refs/heads/main | 2023-01-13T03:50:21.779274 | 2020-11-14T19:05:20 | 2020-11-14T19:05:20 | 305,471,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | #!/Users/alexsandromonteiro/Desktop/Prog_Python/qualiy_applications/venv/bin/python3.8
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sandrobass@hotmail.com"
] | sandrobass@hotmail.com | |
94d8d69b957710067f870841aeea79b4d0747e2f | 7dbe84760c95ee2ef15b28724bc73c173fab1f1a | /download2-8-1.py | c2c0a4db78e9230a650e421f354d1c8aceb7af0c | [] | no_license | seil3377/python_section2 | f0af3342df24d2317f21081d59a4f5f42e4f0d32 | eb5af490480cd53031e93d833ed74d20e7367933 | refs/heads/master | 2020-03-27T13:06:33.114567 | 2018-09-18T08:11:26 | 2018-09-18T08:11:26 | 146,586,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | from bs4 import BeautifulSoup
import urllib.request as req
import urllib.parse as rep
import sys
import io
import os
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
#403error : 헤더(Header)정보를 심어서 User-agent 정보를 같이 보내는 코드를 통해 ... | [
"seil3377@naver.com"
] | seil3377@naver.com |
29274b90fb731a1e2a67393d3e011a6ce556f727 | 965a462e251e705dee793cc2ab9ef2acaa1f2b1f | /SCons_zipit.py | 752f39714f7581bb78d9b78fe6771c68640fcc24 | [] | no_license | Embedded-Systems-Spring-2020/lab4 | 786e4dca964c6294b606ae136ce151ef26d64e6b | 916539dbe90fd11e869fa20c6233359d20f640b9 | refs/heads/master | 2021-01-02T12:55:17.007775 | 2020-02-24T17:03:27 | 2020-02-24T17:03:27 | 239,633,582 | 0 | 1 | null | 2020-02-24T05:06:52 | 2020-02-10T23:15:58 | C | UTF-8 | Python | false | false | 2,355 | py | # .. "Copyright (c) 2008 Robert B. Reese, Bryan A. Jones, J. W. Bruce ("AUTHORS")"
# All rights reserved.
# (R. Reese, reese_AT_ece.msstate.edu, Mississippi State University)
# (B. A. Jones, bjones_AT_ece.msstate.edu, Mississippi State University)
# (J. W. Bruce, jwbruce_AT_ece.msstate.edu, Mississippi Stat... | [
"49951619+ryan-shoemake@users.noreply.github.com"
] | 49951619+ryan-shoemake@users.noreply.github.com |
9193f6aad6ce7c106a99eac8bfc6eb8b4001266e | 5f6fd8232989e9d033506c84083b909117d0086b | /thread/thread_listen_coding - 副本.py | bb7a3b4a7b13fe86e6a603f4739d428959d85913 | [] | no_license | seryte/int_python_pro | a4a9fd085c21adf6161bc8173f77b6b4c191adb2 | fc0a1bc8d64f01d07cc63690f4bad04c7a20b07f | refs/heads/master | 2020-03-09T06:02:35.139890 | 2018-05-16T03:42:20 | 2018-05-16T03:42:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2018-04-17 20:04:07
# @Author : Your Name (you@example.org)
# @Link : http://example.org
# @Version : $Id$
import threading,time
def listen(name,now):
print("listening:%s %s" %(name,now))
time.sleep(2)
print("listening 执行结束 %s"%time.strftime("%Y-%m-%d... | [
"382643558@qq.com"
] | 382643558@qq.com |
935fa502303057323606ce4a66327440a1ef0018 | f150f2dce61cdbaaa244e118c9e81e83a4886458 | /eigenpro/training.py | 5b296f7d919e0d707bb159e6248c2a240aa00f39 | [
"MIT"
] | permissive | johannespitz/kernel-overfitting | e060ca00fef7f7e563616dcc68909737a4449b5a | a654aaa49afc302d4e96a99cafebed0f5bbbd825 | refs/heads/master | 2020-05-23T22:34:07.844753 | 2020-04-24T19:50:19 | 2020-04-24T19:50:19 | 186,976,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,093 | py | #!/usr/bin/env python
# coding: utf-8
# In[28]:
'''
Modified version of https://github.com/EigenPro/EigenPro-tensorflow
in particular run_expr.py
'''
from __future__ import print_function
import keras
import numpy as np
import time
import warnings
from dataclasses import dataclass
from scipy.stats import... | [
"johannes.pitz@tum.de"
] | johannes.pitz@tum.de |
da8b517d85a513db952f23fb60cba730404ee688 | 3c8cc407d7547f8702bfe06deb5f1c9087778ce3 | /hiword/dataloader.py | 4d6c1c1a4918a7d6da18e55b56ca7658f88ceae8 | [
"Apache-2.0"
] | permissive | jadbin/hiword | accaebbdee899e8e3ed11e024d6c488bca36c445 | 7789412747a2b6b59ee974f2a2efd57e355e3282 | refs/heads/master | 2023-04-06T21:57:17.260338 | 2023-03-15T16:21:49 | 2023-03-15T16:21:49 | 166,003,998 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | import os
from collections import defaultdict
from os import listdir
from os.path import join, dirname, isdir
class DictLoader:
def __init__(self):
self.dict = self._load_dict()
def word_freq(self, word):
return self.dict[word]
@staticmethod
def _load_dict():
res = defaultdic... | [
"jadbin.com@hotmail.com"
] | jadbin.com@hotmail.com |
0335df4074ddc3d154d3724fb2fef2df225be97f | 76f05bd66e0585d1f0ef9c6829be936332706f2a | /yibanApi/__init__.py | 30d7de0a0830f48a6a09d044d0cf34b8149d0bad | [
"MIT"
] | permissive | vincijy/yibanApi | b48da529b962b176f08c9e4227727d0499836caa | 57bf9b821fb5b5154e8df7a3f7f4bdb2245dfcbf | refs/heads/master | 2020-03-13T20:03:36.363584 | 2018-05-02T10:29:24 | 2018-05-02T10:29:24 | 131,266,046 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py |
from .yibanApi import AccessToken, api | [
"awefight@qq.com"
] | awefight@qq.com |
db0ec3865a75078674e752309dad2296cd1bbd26 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /19_数学/计算几何/直线/practice/面试题 16.14. 最佳直线 copy.py | 9a95efaf08f17ae51ca4cf2e9edb0dae3b4f6f05 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 3,033 | py | from typing import List
from collections import defaultdict
def gcd(a, b):
return b if a == 0 else gcd(b % a, b)
class Solution:
def bestLine(self, points: List[List[int]]) -> List[int]:
n = len(points)
res = []
maxCount = 0
for i in range(n):
x1, ... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
f6a2b705d388a7c343310c3da3e8ed2698926621 | 14e3ecd6a5bfc4cba3b990d561a3d6db70f43430 | /UDA/main.py | 37d29c6ca6da7c86a831b725c3200b77e446e89d | [] | no_license | zuiwufenghua/Multi-Cell_LSTM | 61d487645e1c2d3f93f95bda2e8f46fabd8a3b3a | c4938222a559d93aa8377d4e1a46a27aff86457c | refs/heads/master | 2023-01-23T06:20:56.883335 | 2020-12-02T09:41:32 | 2020-12-02T09:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,861 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import time
import sys
import math
import argparse
import random
import torch
import gc
import torch.nn as nn
import torch.optim as optim
import numpy as np
from utils.metric import get_ner_fmeasure
from model.seqlabel import SeqLabel
from model.sentclassi... | [
"noreply@github.com"
] | zuiwufenghua.noreply@github.com |
16bdf1311ec0dd7bb5b4d66680fad7469efdf356 | 2f4b95f4b17337f02c21f33f7aa2ce11476898ff | /superlists/lists/tests/test_models.py | 17334b2a932fbd11564264621a19bfdffdf5f4b6 | [] | no_license | Wowip/EjerciciosTDD | 6c891d03250462408dbb25d5d36004c092d6dbe2 | 940c0fcae6a95998c1c013a35f92e659167de67b | refs/heads/master | 2020-08-01T02:13:03.887136 | 2016-11-20T19:18:49 | 2016-11-20T19:18:49 | 73,586,488 | 0 | 0 | null | 2016-11-18T06:59:20 | 2016-11-13T00:21:46 | Python | UTF-8 | Python | false | false | 1,914 | py | from django.core.exceptions import ValidationError
from django.test import TestCase
from lists.models import Item, List
class ItemModelTest(TestCase):
def test_default_text(self):
item = Item()
self.assertEqual(item.text, '')
def test_item_is_related_to_list(self):
list_ = List.obje... | [
"arturoinosencio@gmail.com"
] | arturoinosencio@gmail.com |
aba125b8f91634b95df90b074b7664738b3c06a0 | 7f74e34fedf47766fdb280404eed5336b03c1461 | /MII/Sede/forms.py | 25cc0808ceaa6031fca8e2d8956257d290b79a8c | [] | no_license | ExiledGod/Universidad | bcbdd6a11b6cbb134064792701380419ac290ca0 | bb6cc13b83630b63b0ac594b3bee436a0a21eabe | refs/heads/master | 2022-12-14T16:15:25.261425 | 2020-08-27T05:28:23 | 2020-08-27T05:28:23 | 290,684,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | from Sede.models import Sede, DireccionSede
from django import forms
class Sede_form(forms.ModelForm):
model = Sede
fields = [
'nombre',
]
labels = {
'nombre': 'Nombre: ',
}
class DireccionForm(forms.ModelForm):
class Meta:
model = DireccionSede
fields = [
'region',
'provincia',
'comuna',
'd... | [
"66937061+ExiledGod@users.noreply.github.com"
] | 66937061+ExiledGod@users.noreply.github.com |
c4501bbe8f20b230b42ebcc48b2dc670340da586 | 573307ca913f2bc73bcc498efee67cf61fc29800 | /lessThanList.py | dbe067a8601c65e27c6c6b186513e280875254e8 | [] | no_license | JstD/PPL_FP | 553d7af369f19a98e7c20d2a37216f253d01a2aa | e45e6d7412e60528d1faef9f9ccf09acdb57d30a | refs/heads/master | 2023-03-29T20:12:34.713100 | 2021-04-03T07:00:39 | 2021-04-03T07:00:39 | 354,223,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | def lessThan(lst,num):
return [x for x in lst if x<num]
print(lessThan([1,2,3,4,5],4))
| [
"dung.truong2000@hcmut.edu.vn"
] | dung.truong2000@hcmut.edu.vn |
72f4df5dc0c06e943c09f1516ec2cc3850c46820 | a6ceb9e0429f02275159d95142e515b01a6d47b5 | /bmi3d/open_hdf_tables.py | ca29b86e76d62db2388d3ccfc665e2a6865cca1f | [] | no_license | m-nolan/aopy_dev | 0e699236ea0b82deed1781cf8dcecbe9ecc56c27 | 794200222e0ac73dc98cf2adc28c63b8e4f18040 | refs/heads/main | 2023-04-02T13:15:21.098852 | 2021-03-30T20:01:39 | 2021-03-30T20:01:39 | 344,970,001 | 0 | 0 | null | 2021-03-25T23:11:58 | 2021-03-06T00:35:16 | Python | UTF-8 | Python | false | false | 566 | py | import tables
import numpy
import matplotlib.pyplot as plt
#replace this with your hdf filename
#fname = 'c:\\Users\\Si Jia\\AppData\\Local\\Temp\\tmp9fswwtwp.h5'
fname = '/tmp/tmpdcbqn2zo.h5'
hdffile = tables.open_file(fname,'r') #read-onl
print(hdffile)
#get table information
# more methods refer to this
# https:... | [
"manolan@uw.edu"
] | manolan@uw.edu |
2d11d716b8d9b87ddcac994061c1cbae63557549 | b2599eaa38eb035555b1aebab1cb188fa4e01cbe | /whileloop.py | 37e3b220880f685cb4263dcc38659e66243c34a4 | [] | no_license | surut555/basicpython | c1f14c136480f4cda92eae1eeecdf407f974b6fb | 7ae86bfb488c91243a802760646d1f3f0441435f | refs/heads/main | 2023-01-04T02:42:20.987473 | 2020-11-01T02:33:46 | 2020-11-01T02:33:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | i = 1
while i <= 10:
if i == 10:
print(i)
else:
print(i, end=',')
i = i+1
a = 1
while True: # infinity loop
print(a)
a = a+1
| [
"63528254+surut555@users.noreply.github.com"
] | 63528254+surut555@users.noreply.github.com |
c137360796290d8e49d6e99af906017dcf7bd04d | 8908ac4efbb943e05cda86d84b11264f4e31a59e | /addons/to_paypal_unsupported_currencies/models/account_payment.py | a39199982bd52ca42d5d1361dcf480db69ee07a3 | [
"Unlicense"
] | permissive | kit9/vocal_v12 | c38c17921a647c16a839110d3452dddcaf3f0036 | 480990e919c9410903e06e7813ee92800bd6a569 | refs/heads/master | 2023-02-01T15:55:13.461862 | 2020-12-15T12:06:06 | 2020-12-15T12:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | from odoo import models, fields
class AccountPayment(models.Model):
_inherit = 'account.payment'
paypal_original_unsupported_currency_id = fields.Many2one('res.currency', string='Paypal Original Unsupported Currency',
help="A technical field to st... | [
"vijay+admin@wearme.me"
] | vijay+admin@wearme.me |
9c39ba0a267b3fb8b32d1167382688f2d07176a5 | 5950e578d3c6239987bc189951334cc87ca1a966 | /198. House Robber.py | fc45a3e04b49703b17b6b5bbbecf92e6bf7d5771 | [] | no_license | a5135324/leetcode | 0aa5ddc42569f9a619394197afcd1b29e856687e | c3eb9000154859669ed18054eca04c44023ef496 | refs/heads/master | 2021-02-14T14:40:52.336373 | 2020-12-27T09:03:59 | 2020-12-27T09:03:59 | 244,812,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | '''
Detail:
Runtime: 20 ms, faster than 98.54% of Python3 online submissions for House Robber.
Memory Usage: 12.8 MB, less than 100.00% of Python3 online submissions for House Robber.
Submit time: 2020/03/06 13:37(UTC+8)
'''
class Solution:
def rob(self, nums: List[int]) -> int:
n = len(nums)
dp ... | [
"a5135324@gmail.com"
] | a5135324@gmail.com |
fcc0647cba72938ea38d2263d8274cac61efb22f | e29713b4e094b17ee6e0fdc88624825cd649abc4 | /Python Codes 2/phone_letters.py | 48a727c375ee1bb9e2ec702d9ca9f5aa6f0cae22 | [] | no_license | debolina-ca/my-projects | 272fca1c961cc68b85e28226a2afc6d4929ba26e | b8c433d5a35645da8ad2fcb28238a40daa18bc9b | refs/heads/master | 2020-12-27T18:42:06.248234 | 2020-02-03T19:31:31 | 2020-02-03T19:31:31 | 238,008,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | # Phone Letters
phone_letters = [
"1 = ''", "2 = 'ABC'", "3 = 'DEF'",
"4 = 'GHI'", "5 = 'JKL'", "6 = 'MNO'",
"7 = 'PQRS'", "8 = 'TUV'", "9 = 'WXYZ'",
"*", "0 = ' '", "#"
]
print(phone_letters[0:3])
print(phone_letters[3:6])
print(phone_letters[6:9])
print(phone_letters[9:12])
| [
"noreply@github.com"
] | debolina-ca.noreply@github.com |
d1d2cb8fa62f4abf11d0f3c031e100adb3008d82 | 6ed01f4503fc9de234a561c945adff7cf4b1c81b | /ncar_lib/incites_authors/incites_people_reporter.py | 24328f4c760673ff83a6c2cbdde1365ae3f9d3f8 | [] | no_license | ostwald/python-lib | b851943c913a68424a05ce3c7b42878ff9519f68 | 9acd97ffaa2f57b3e9e632e1b75016549beb29e5 | refs/heads/master | 2021-10-28T06:33:34.156095 | 2021-10-21T23:54:49 | 2021-10-21T23:54:49 | 69,060,616 | 0 | 1 | null | 2018-06-21T16:05:30 | 2016-09-23T21:04:46 | Roff | UTF-8 | Python | false | false | 5,465 | py | """
"""
import os, sys
from UserList import UserList
from find_person import PersonFinder, resolveFullName
from data_filter import FilteredAuthorData
from HyperText.HTML40 import *
from html import HtmlDocument
class InCitesAuthorInfo:
def __init__ (self, id, finder, matches):
"""
names are derived from inCites... | [
"ostwald@ucar.edu"
] | ostwald@ucar.edu |
9484689e364e1a12491127ddc0afa4929c215d8d | 9f541271263dceb0b7b0134ab6cff5ed324c6444 | /json/conf.py | cb6e2722d1f1194238a9bb9841615fcfe3adf803 | [] | no_license | shannondec/bonaventureli.github.io | bd0fa5286ab4077b690f2621425ddd78f16e72dc | ab442ff704dc539b5c9da1d7cacb826256392c17 | refs/heads/main | 2023-06-04T10:34:40.224571 | 2021-06-29T08:38:53 | 2021-06-29T08:38:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"lfwendula@msn.cn"
] | lfwendula@msn.cn |
e5159573514325ddff9f0569957cbbf720a52f0e | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /B_HashTable/Basic/L1_2593_Find_Score_of_an_Array_After_Marking_All_Elements.py | c21970e05cffcfd0aa4f1a71aaa041f071a3ed8a | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 493 | py | """ https://leetcode.com/problems/find-score-of-an-array-after-marking-all-elements/
Implement the problem description using a seen array
"""
from header import *
class Solution:
def findScore(self, A: List[int]) -> int:
seen = [0]*(len(A)+2)
ans = 0
for i, x in sorted(enumerate(A), key=lam... | [
"zhengyuan.zhu@mavs.uta.edu"
] | zhengyuan.zhu@mavs.uta.edu |
6831b0fbb7a6dadcaef55a6df4497df57ec91df1 | 2b45cbccd03fb09be78b2241d05beeae171a2e18 | /字节跳动测试开发工程师面试准备/reverseList.py | 58fa0f6880134d2ea79618baafedb614640d8d8f | [] | no_license | MaoningGuan/LeetCode | c90f78ce87a8116458a86c49dbe32e172036f7b4 | 62419b49000e79962bcdc99cd98afd2fb82ea345 | refs/heads/master | 2023-01-03T14:52:04.278708 | 2020-11-01T12:15:41 | 2020-11-01T12:15:41 | 282,859,997 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,567 | py | # -*- coding: utf-8 -*-
"""
206. 反转链表
反转一个单链表。
示例:
输入: 1->2->3->4->5->NULL
输出: 5->4->3->2->1->NULL
进阶:
你可以迭代或递归地反转链表。你能否用两种方法解决这道题?
"""
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
def generateList(l: list) -> ListNode:
prenode = ... | [
"1812711281@qq.com"
] | 1812711281@qq.com |
a54d47e36ae5a6c355b6eeb86ee81846d8e817a5 | 206f9385bcb87bf59f5a577043c0abfed8ab0066 | /Asynchronous_IO/event_loop_dif_thread.py | 13ad2d93012b41d1f008674bf0294785baf6e367 | [] | no_license | XiangSugar/Python | 7bca1ea5a90d880f1ed4f0b3dd4fc3310caf7fdc | 2356dc3342dbc9c474cf0d9f25b1dc7930bc8814 | refs/heads/master | 2021-04-12T01:51:26.751494 | 2018-09-04T01:25:48 | 2018-09-04T01:25:48 | 125,846,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | # coding = utf-8
from threading import Thread, currentThread
import asyncio
import time
now = lambda: time.time()
def start_loop(loop):
asyncio.set_event_loop(loop)
loop.run_forever()
def more_work(x):
print('%s' % currentThread())
print('More work {}'.format(x))
time.sleep(x)
print('Finish... | [
"suxiang@hust.edu.cn"
] | suxiang@hust.edu.cn |
3c8054330d2faa9eac755a30f468ca9a147bf06a | 673f1a46e00cd3239e459138d9e592ce34dc5b26 | /demo/migrations/0001_initial.py | 90360a97867d16368e68e66a47ba3821b8256616 | [] | no_license | jw1174184386/rolemanage | 59db121dfc91fb557d036c8066f7328a9df3c87a | e0f844b6890c70702d3c4333741336570b6a384f | refs/heads/master | 2020-04-15T12:13:19.330381 | 2019-01-08T14:24:08 | 2019-01-08T14:24:08 | 164,665,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,849 | py | # Generated by Django 2.1.2 on 2019-01-08 03:47
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Action',
fields=[
... | [
"jw1174184386@163.com"
] | jw1174184386@163.com |
2337dbfe31cf2f3bcaceca10f0429a098ea2c2b1 | d59b11ac0465a430b7f7402f7928b6bd1c5bc9f1 | /config.py | 63e1cc63b674484defdb6ca379d035703491d7f7 | [
"Apache-2.0",
"MIT"
] | permissive | mmmika/MAX-Audio-Sample-Generator | c94222a701f6c6e76089687c49929623f488ea62 | 5d22b6cea0a42fe8e1a088201972baf9acbe5089 | refs/heads/master | 2020-03-31T12:57:56.322625 | 2018-10-05T22:34:19 | 2018-10-05T22:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # Flask settings
DEBUG = False
# Flask-restplus settings
RESTPLUS_MASK_SWAGGER = False
# Application settings
# API metadata
API_TITLE = 'Model Asset Exchange Server'
API_DESC = 'An API for serving models'
API_VERSION = '0.1'
# default model
MODEL_NAME = 'wavegan'
DEFAULT_MODEL_PATH = 'assets/models'
MODEL_LICENSE ... | [
"1996anoojpatel@gmail.com"
] | 1996anoojpatel@gmail.com |
60cda957b628771dede0236cb5bbb72670ae6f12 | e95d6f6842e7d32a2933676e12d73cbe8cf9d7d4 | /JSON_BOOK_Programs/1_Theano_example.py | 505d5f01450e75013c437208ed149f090545f781 | [] | no_license | MehreenTariq12/mehru | 87acda07c564f37107aa8a3e2da247216c734d35 | af5da763197696394dfe751d2c54e3caab7d3f62 | refs/heads/master | 2022-06-24T03:59:54.542892 | 2020-05-10T06:03:05 | 2020-05-10T06:03:05 | 256,930,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | import theano
from theano import tensor
a = tensor.dscalar()
b = tensor.dscalar()
c = a + b
f = theano.function([a, b], c)
result = f(1, 2)
print(result) | [
"noreply@github.com"
] | MehreenTariq12.noreply@github.com |
e5349826b1bf5d97988e22e049ad10187fab4a4b | 677869880e88f669a436c78cd77dc3eee2a66569 | /pythonkatas/primefactors/main.py | 6ec728df598d050073646ad580f72a03c1689277 | [] | no_license | ErinLMoore/CodeKatas | 36c6b5a860ee374497f1509b49adab4713e34de1 | a6e77e0ecdc3c54e84901eabeff9270c65a96e1b | refs/heads/master | 2020-04-06T07:02:12.463774 | 2016-09-29T02:23:26 | 2016-09-29T02:23:26 | 53,079,444 | 0 | 1 | null | 2016-07-06T15:56:13 | 2016-03-03T20:05:00 | HTML | UTF-8 | Python | false | false | 196 | py | import sys
sys.path.append('~/workspace/CodeKatas/pythonkatas/src')
from src.primefactors import primeFactors
class main():
int_to_factor = int(sys.argv[1])
print (primeFactors(int_to_factor))
| [
"emoore@pillartechnology.com"
] | emoore@pillartechnology.com |
94ef4b15b8b61bb1acb9913ad5c3069aaed77362 | e1b6cce87a76d967817cb979a9de8713abe66764 | /forwards/pc_0.py | 6a538d8b6afa2c7462bbdaed91bf2d20f0207c06 | [] | no_license | MaxAndrewNZ/AutonomousNavigation | 816c773461f96446c02df23c2dbaacfa2448a35c | b70474c4f1f315c4609482fa3156430c64be7003 | refs/heads/main | 2023-02-02T05:26:52.874174 | 2020-12-07T22:46:03 | 2020-12-07T22:46:03 | 317,351,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,668 | py | import sys
sys.path.insert(1, '../side_camera_test/')
import time,zmq,pickle
import numpy as np
import pyrealsense2 as rs
import open3d as o3d
import vehicle as veh
import pointcloud as pc
import visualise_pointclouds as visualise
import display_information as display
import cv2
import math
import random
import os
de... | [
"mla138@uclive.ac.nz"
] | mla138@uclive.ac.nz |
26f47532449dbed8b39096a83f8cc42ae7de4c34 | 4dbe3b1b2af3ff77e8086ec32ab58dcf47849a3e | /tests/__init__.py | 50530a34b837af8bd1a04e3a510f33988b96846e | [
"MIT"
] | permissive | mnpk/dynamo3 | b83dc700345972ea2336ac8ca842fd9f23edf5c2 | 51eacee60bdf8d058831a9ab3583a2cfe9f91ca9 | refs/heads/master | 2021-01-16T21:54:32.089114 | 2016-04-30T00:53:55 | 2016-04-30T00:53:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,985 | py | """ Tests for Dynamo3 """
from __future__ import unicode_literals
import six
from botocore.exceptions import ClientError
from decimal import Decimal
from mock import patch, MagicMock, ANY
from six.moves.cPickle import dumps, loads # pylint: disable=F0401,E0611
from six.moves.urllib.parse import urlparse # pylint: di... | [
"stevearc@stevearc.com"
] | stevearc@stevearc.com |
26c93247ee4200baadf6355f694c14262a0ea35e | 0d09e32620e2e82f243ba86e2cc7bec19e521b1b | /Exercises/01-Sequential-Structure/ex06.py | ac27e05e4d8dd83905a5665183e94f38cefa3c27 | [] | no_license | hikarocarvalho/Python_Wiki | 401f7466377f2053cda8bfa850afd0bd64cce047 | 01f755ecc18de13a9ded794ece9e7a8bd4ad7d9e | refs/heads/main | 2023-06-14T08:37:10.728067 | 2021-07-12T20:24:41 | 2021-07-12T20:24:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #the user gives the ray value
#o usuário dá o valor do raio
ray = float(input("Enter with the ray value: "))
#calculate the area of a circle
#calcula a área do circulo
area = ray**2 * 3.14
#Show the result
#mostra o resultado
print("The area of this circle is:",area) | [
"hikarofcarvalho@gmail.com"
] | hikarofcarvalho@gmail.com |
dcebdc63fede722d67b16b2fb6757f67c3e20076 | 59f03c7528c9c806e3e25b9864db89f25dfa73c2 | /tests/conftest.py | 340ea85a5b213e3a629d9ba903138e93c3473583 | [
"MIT"
] | permissive | OneGov/onegov-cloud | 8d8cd6d0378991ebc2333b62337246719102e723 | c706b38d5b67692b4146cdf14ef24d971a32c6b8 | refs/heads/master | 2023-08-24T15:37:52.536958 | 2023-08-24T14:15:54 | 2023-08-24T14:15:54 | 189,431,418 | 17 | 4 | MIT | 2023-09-14T20:39:37 | 2019-05-30T14:47:14 | Python | UTF-8 | Python | false | false | 34 | py | pytest_plugins = ['tests.shared']
| [
"denis.krienbuehl@seantis.ch"
] | denis.krienbuehl@seantis.ch |
91a53658d1e9736bda6759fad4317665e4ce9a63 | 796654a4e4961a764b2d7e036971da049a3b3cae | /project_2/bayes.py | f92b6ac248af1dce8b40d01e11b6b5a9c33f129f | [] | no_license | nattip/CIS678 | 9cfe6ab6fbec855456140e98234b2ed358c20403 | aceffe9144577727e10feb40a7e8ae9e2948e4a5 | refs/heads/master | 2022-07-09T11:12:45.863383 | 2020-04-02T15:15:25 | 2020-04-02T15:15:25 | 231,259,734 | 0 | 1 | null | 2022-06-22T01:15:18 | 2020-01-01T20:20:40 | Python | UTF-8 | Python | false | false | 11,604 | py | # Written by Natalie Tipton
# February 2, 20202
# CIS 678 - Machine Learning
# Dr. Greg Wolffe
# Spam/Ham Classification of text messages using
# the Naive Bayes algorithm
from collections import Counter
import string
import math
import heapq
import matplotlib.pyplot as plt
import numpy as np
######################... | [
"tiptonna@mail.gvsu.edu"
] | tiptonna@mail.gvsu.edu |
8ed5e9e3a463510b06a68a5076cb0cca96428c2a | 65930b71495a028bb4a78f6c07a0e0e971aa503d | /mobee/new/migrations/0004_auto_20210905_2353.py | 8fc2245611c23d97033458315b173cfb333ba354 | [] | no_license | sangmu1126/mobee | 6111bd3287d9669ab61c2c8f805f0673194bf78a | a801abfcf65d1597a4eb281b88972945658f66fa | refs/heads/master | 2023-07-18T08:51:00.396757 | 2021-09-05T15:54:46 | 2021-09-05T15:54:46 | 403,346,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | # Generated by Django 3.2.7 on 2021-09-05 14:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('new', '0003_rename_restaurant_review_movie'),
]
operations = [
migrations.AddField(
model_name='movie',
name='image'... | [
"sangmu1126@gmail.com"
] | sangmu1126@gmail.com |
e0cd1ebb5f222778682b48bf62bdbed9a7a2faef | 3439c585e5f06ddf17c5690a07f0800c4372531d | /scripts/led.py | 0be798fe4ac0e13cba93f3c9ce51fe1cc1bc6121 | [] | no_license | squidsoup/young-coders-2016 | f24b9a2ee13c6b24d46f80f63ba8a548ef1698d4 | b4b757dfd6414aa0ae9ec38fdf07ee6224475a1d | refs/heads/master | 2020-07-08T20:49:13.182804 | 2017-04-11T23:35:38 | 2017-04-11T23:35:38 | 67,831,536 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7,GPIO.OUT)
while True:
GPIO.output(7,False)
time.sleep(0.5)
GPIO.output(7,True)
time.sleep(0.5)
| [
"kit@nocturne.net.nz"
] | kit@nocturne.net.nz |
acd099225a02f96c7d3c8ff511a976350a843ec3 | 55610cce405fd4f2809bd7d26b4f19b9c2b1d3cd | /make_up/migrations/0002_makeuptask_student.py | 718d9dd7a33b84b0bdd3e99ef57ad00ce51b2c8a | [] | no_license | zzzzty/jtdx | 30d648cf06f259dfb55227a1fb64b74a24afdd85 | 4486d9073416b7df8b93ac47d1b29256a4dff260 | refs/heads/master | 2020-06-07T14:02:02.074749 | 2019-12-26T07:46:40 | 2019-12-26T07:46:40 | 193,014,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | # Generated by Django 2.2.2 on 2019-07-06 07:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('student', '0002_student_nick_name'),
('make_up', '0001_initial'),
]
operations = [
migrations.AddFi... | [
"zzzliusong@163.com"
] | zzzliusong@163.com |
65e75880a88ed030115589f4646788aa413fd91e | 7f7213fe407f252b2323025c9b9e381a73474b7d | /drag_sheet/sds/check_files.py | 077feba9a15d97280ae0c711e7c9b67f9866a925 | [] | no_license | ahy3nz/graphene_build | 0ce62c2123b8c39248048d2cafbd0aafdd06ff9a | 44590b8db799136929fc06e490151f450ad30029 | refs/heads/master | 2021-06-20T07:28:20.958807 | 2019-07-03T19:48:24 | 2019-07-03T19:48:24 | 135,504,561 | 0 | 1 | null | 2018-08-06T21:47:17 | 2018-05-30T22:40:17 | Python | UTF-8 | Python | false | false | 572 | py | import os
import itertools as it
curr_dir = os.getcwd()
sds_folders = ['10sds', '20sds', '30sds', '40sds', '50sds', '60sds',
'70sds', '80sds', '90sds', '100sds']
k_folders = ['k50']
angle_folders = ['0']
trials = ['a', 'b', 'c']
for combo in it.product(sds_folders, k_folders, angle_folders,trials):
si... | [
"alexander.h.yang@vanderbilt.edu"
] | alexander.h.yang@vanderbilt.edu |
0b48da007baa45e59cf83c9b05f368505db68388 | 3d231cc28740289606b44b358edf33819dc89682 | /Hacker_rank/hacker_rank_average.py | 290785d57b22d2af3125d096199b8cba13fd8684 | [] | no_license | byuvraj/Solution_for_python_challanges | f49f031c89e5bb65a80ae6dd2dfbbb3a0b143e25 | d41e92c5cf93bed3265ff7ec26f8d8d34f149297 | refs/heads/main | 2023-08-18T19:41:59.350427 | 2021-10-14T10:53:09 | 2021-10-14T10:53:09 | 373,757,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | if __name__ == '__main__':
n = int(input())
student_marks = {}
for _ in range(n):
name, *line = input().split()
scores = list(map(float, line))
student_marks[name] = scores
query_name = input()
marks = student_marks[query_name]
avg=0
print(marks)
n_ =len(marks)
... | [
"byuvaj0202@gmail.com"
] | byuvaj0202@gmail.com |
c4f1e1e1f8733b767ee1c04540805b7abc0a0d9b | 5329cfea55404d9bbff223d761f06e2ec27c1ab7 | /djangonautic/manage.py | 6b1f7568039bef8fb496997b55bbbb4df8431254 | [] | no_license | rohit1717/articles-django- | c2d6fe202d62b1c3b56bec25f896fced23247f53 | 669e7186cc1b26b70f87ee8c4b782d0743c5bd8a | refs/heads/master | 2022-12-02T21:44:50.231428 | 2020-08-20T17:54:22 | 2020-08-20T17:54:22 | 289,074,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djangoautic.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that ... | [
"rohitsingh17172000@gmail.com"
] | rohitsingh17172000@gmail.com |
2a5de420a068fa3e361c24ec82beef335291f181 | 527af4c3c48678d8b167cb9b23d90d57c7606dd3 | /src/tests/test_models.py | 927c23c7b071ebbd61d368716e1052348f0afaae | [
"MIT"
] | permissive | PRByTheBackDoor/ElectionRunner | 8713e398e8fc2fece65eb22e4dc5193bccac108e | 77f822b5ac4e21fa567950a762a9595a8ca08007 | refs/heads/master | 2020-04-06T04:30:56.959287 | 2014-12-27T00:22:11 | 2014-12-27T00:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,443 | py |
# The MIT License (MIT)
#
# Copyright (c) 2014 PRByTheBackDoor
#
# 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, including without limitation the rights
# to use, copy, ... | [
"oghm2-github@srcf.net"
] | oghm2-github@srcf.net |
54348e0bd8926ccdffa383c51db801b380d5f575 | 428f2c48d6e9dabc3ac63012d4146b98bc38efc1 | /refresh/refresh/wsgi.py | 5f348f3bcbf706c24a9dad495e9bb99837caa19e | [] | no_license | Arange-code/Django-project | f96d61fcebe0aa93bd311f86fe0a0f539b0b68f5 | 53527d1f442d87f8ac8f37d0c544168670e054cf | refs/heads/master | 2021-02-05T12:29:56.201975 | 2020-02-28T14:31:58 | 2020-02-28T14:31:58 | 243,780,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for refresh 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"you@example.com"
] | you@example.com |
1cb4aefd9a5b1077a5c844f51cf26e0e25ef605b | f6761bd4b74ed9c3bc0e8f62e5a1db70c03096f0 | /torch/nn/quantized/dynamic/modules/linear.py | 7574dd53eb761570aa1b6445bc8593eba60de6c2 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | MarisaKirisame/pytorch | b638790a0997d776ad4c5e4c77badc77e5dc94f9 | 59c5de4d0eda8d4f5494602034093933600d0a3d | refs/heads/master | 2021-06-19T10:44:33.846286 | 2019-10-31T22:56:55 | 2019-10-31T22:58:28 | 218,881,408 | 2 | 0 | NOASSERTION | 2019-11-01T00:02:51 | 2019-11-01T00:02:51 | null | UTF-8 | Python | false | false | 3,423 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import torch
from ....modules.linear import Linear as NNLinear
import torch.nn.quantized as nnq
class Linear(nnq.Linear):
r"""
A dynamic quantized linear module with quantized tensor as inputs and outputs.
We adopt the same ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
574a978e3031c00ce0d37a59ee379800c4f2d854 | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/Configuration/Languages/SwigInterface/pygccxml-1.0.0/pygccxml/parser/scanner.py | 967c877a080cf5e421a7027aab7eb78b513ab7b5 | [
"BSL-1.0"
] | permissive | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,301 | py | # Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import os
import types
import pprint
import xml.sax
import warnings
import xml.sax.handler
from pygccxml.declaration... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
094f154dc9007753efa071553ad662baa9cb66f4 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v10/enums/types/matching_function_operator.py | 11a366438b14b5a9625600a5fa27c1e72a1abe49 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
# Copyright 2022 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"
] | GerhardusM.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.