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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a435d06d21f40db400cf199480df79d7c0e0d0f | dcc491dd2fa4ece68728255d236fa6e784eef92d | /modules/2.78/bpy/types/PythonController.py | a6975a4e8c4fe364b1b578e3084575a187be1d7d | [
"MIT"
] | permissive | cmbasnett/fake-bpy-module | a8e87d5a95d075e51133307dfb55418b94342f4f | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | refs/heads/master | 2020-03-14T16:06:29.132956 | 2018-05-13T01:29:55 | 2018-05-13T01:29:55 | 131,691,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | class PythonController:
mode = None
module = None
text = None
use_debug = None
| [
"nutti.metro@gmail.com"
] | nutti.metro@gmail.com |
88227d50f6dd56d2617ece74114d5da82ce05283 | 57bf3bfaf5efe943bba0508e7054971141b208d1 | /Emily/homework/beachballanime/RandintBallBounceGame.py | 53937b768412e8824d3f20347533f3dc43d6ee99 | [] | no_license | aseafamily/Coding | 318769b6cc887012d3612b739c474a3d7962e69f | fe7e790bed04aa1cd9e972cdd9c318e0028bcdcb | refs/heads/master | 2022-12-31T08:06:11.718027 | 2020-10-26T00:43:07 | 2020-10-26T00:43:07 | 277,988,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | import pygame, sys
from random import *
pygame.init()
screen = pygame.display.set_mode([800,720])
screen.fill([229,174,134])
font = pygame.font.Font(None, 50)
rext1 = font.render('You will win the lottery.', 1, (0,0,0))
screen.blit(rext1, [140, 60])
rext2 = font.render('You will never get the COVID-19.', 1, (0,0,0))
sc... | [
"emilyma@gmail.com"
] | emilyma@gmail.com |
5699dafae03660ced229e5fb381de892c3f83a6d | c4f7b067dbf9efa404d446453cdf2b0839d33fe1 | /src/sensorrunner/devices/SPI/ADC/device.py | 48e20b4d57883c0fadef06f30a025389e38cda66 | [] | no_license | JackBurdick/sensorrunner | 90e05e35381363ad28301b0e28579372fd78c179 | 506772d2ec4887b3890e4555b66bf5548910d020 | refs/heads/master | 2023-07-02T18:26:21.418501 | 2021-02-22T02:27:04 | 2021-02-22T02:27:04 | 298,879,591 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | from sensorrunner.devices.sensor.SPI.ADC.light.pt19 import PT19
from gpiozero import MCP3008, Device
# from gpiozero.pins.mock import MockFactory
from gpiozero.pins.native import NativeFactory
Device.pin_factory = NativeFactory()
class MDC3800:
def __init__(
self,
name,
# devices
... | [
"jackbburdick@gmail.com"
] | jackbburdick@gmail.com |
d38f60b54240168425be4043fc5872cb806287f3 | 9473cf6880c4d32e82474efcd199d78d065fddfb | /app/auto-reply.py | d7130c7a6d770da98739524e06d9133aaef6fcee | [] | no_license | taufiqade/wabot | de6901e62ed2c4100154ae93fbfa8c7cba81d112 | 7e93b69d90a839f952d9a8b55098cb17a0bc6bd1 | refs/heads/master | 2020-03-12T10:45:14.786524 | 2018-04-22T15:34:11 | 2018-04-22T15:34:11 | 130,580,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | import time , json
from webwhatsapi import WhatsAPIDriver
from webwhatsapi.objects.message import Message
from pprint import pprint
driver = WhatsAPIDriver()
print("Waiting for QR")
driver.wait_for_login()
print("Bot started")
with open('data/products.json') as data_file:
products = json.load(data_file)
txt... | [
"taufiqadesurya@gmail.com"
] | taufiqadesurya@gmail.com |
eb1babf920093b006230d7ec6c101e59b897093d | cf91f1a6354ba7a803af8382e0ef8bde6175845e | /tests/test_with.py | 1fd2a1f616ddef483c4ca7b17a027e7e1cd824b0 | [] | permissive | mueslo/python-progressbar | a230dc1be0af48015215d10a6b21e1d15005ccb4 | 5621a26b51cddc3ce3f2b62a9e32a28eb60a2f84 | refs/heads/master | 2022-11-10T18:23:08.242413 | 2020-06-25T19:36:56 | 2020-06-25T19:36:56 | 275,635,088 | 0 | 0 | BSD-3-Clause | 2020-06-28T17:29:57 | 2020-06-28T17:29:56 | null | UTF-8 | Python | false | false | 429 | py | import progressbar
def test_with():
with progressbar.ProgressBar(max_value=10) as p:
for i in range(10):
p.update(i)
def test_with_stdout_redirection():
with progressbar.ProgressBar(max_value=10, redirect_stdout=True) as p:
for i in range(10):
p.update(i)
def test_w... | [
"Wolph@wol.ph"
] | Wolph@wol.ph |
7502869ebf3862b842a7424cb0d677a4c7f07ef1 | 2a7b3ed9b819425cb8df80c54df0297f6c952f21 | /VisIt_read_vtk/example_read_txt_and_bin.py | 58279eef36df4463a3388a244a8c846774403333 | [] | no_license | EmmanuelSchaan/PythonSnippets | 76287ead36208b53c617509612438e127767cb8b | 410cf42fdb5fd9c9e37fee580e7a2cb7293cac9d | refs/heads/master | 2021-03-28T06:18:19.654831 | 2020-03-20T22:57:22 | 2020-03-20T22:57:22 | 247,845,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,294 | py | from numpy import *
from pylab import *
from scipy import *
from math import *
import struct
#############################################################################################
#############################################################################################
##################################... | [
"emmanuel.schaan@gmail.com"
] | emmanuel.schaan@gmail.com |
d0d37e651c2edae028110931ad32ab21bd065f7f | 475d4a68cffb87116675c948fe6e90ba9e10ec3a | /articles/urls.py | 0ab5e7a210257371581aaaaab0b560ad6a9b7cf5 | [] | no_license | geoglyphmusic/susancharles | 118ecf30a114c88a39b19a9ff03ce9026909005a | 3f0ad1ec01cd70be1ac94dccdc135bdeecafbe06 | refs/heads/master | 2023-02-14T13:44:39.688311 | 2020-12-29T13:50:08 | 2020-12-29T13:50:08 | 315,355,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.articles_main_view, name='articles'),
path('<article_slug>', views.article_view, name='article'),
]
| [
"chrischarles89@yahoo.co.uk"
] | chrischarles89@yahoo.co.uk |
01fd76371431a37e8804b4f2de5e71eb488b3154 | 0e9f73d2ef1239b22e049ef6338362da7dbfb122 | /source/web/Django/FatQuantsDjango/FatQuantsDjango/ticker/migrations/0097_auto_20190514_2147.py | 5d4d4dab7faf5ac58c7e11ed8ee2ae65fe9af49c | [] | no_license | Andy-Mason/FatQuants | 3c4bfafc29834af76b0be40e93b0e210e0ef5056 | edd0e98f4599ef91adbdf4179164769ddd66c62a | refs/heads/master | 2023-01-11T10:57:50.563742 | 2021-08-11T19:04:59 | 2021-08-11T19:04:59 | 73,127,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | # Generated by Django 2.1.7 on 2019-05-14 20:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ticker', '0096_auto_20190514_2147'),
]
operations = [
migrations.AddField(
model_name='ticker',
name='product_levera... | [
"Andy-Mason@users.noreply.github.com"
] | Andy-Mason@users.noreply.github.com |
d35785c21782919b684d35e141d3e18080ac6950 | 53716af48679707648ee0e004d6d22d22a4acda7 | /HW4/homework04.py | ff5f9c5d8e7b3b69770db840572cef4f10abc552 | [] | no_license | LDercher/Algorithms | d1b822d6190dd3bcada6307ce038e9826916920c | 944e8c41aa4db5e5e825a3a1d750a2f05332c636 | refs/heads/master | 2020-03-27T06:31:12.328733 | 2018-12-06T18:36:35 | 2018-12-06T18:36:35 | 146,112,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,363 | py | # imports {{{1
from __future__ import division
from copy import deepcopy
from random import randrange
from collections import deque
from sys import *
#---------------------------------------------------------------------------}}}1
class AdjList: # {{{1
# A class for the adjacency list representation of a graph.
# ... | [
"luke.dercher@gmail.com"
] | luke.dercher@gmail.com |
385053382cb462ca295e3ea3ca1df86b6ad1b044 | 99b2aff89dcec2f43cee32a6bdd4c0c43d6c51fa | /tests/contract_tests/growl_tdg_garden/test_growl_tdg_garden_pick_intial_id.py | 1782590265f597e5d879efb03aac96504f4f4d5d | [
"MIT"
] | permissive | baking-bad/pytezos | c4248bde49a5b05521b8cc51eeca588b1a721660 | 19747e3acec2141f06e812025673f497fc07e2d4 | refs/heads/master | 2023-07-06T21:57:09.572985 | 2023-07-05T11:45:27 | 2023-07-05T11:45:27 | 169,243,460 | 115 | 43 | MIT | 2023-07-04T16:28:09 | 2019-02-05T13:12:50 | Python | UTF-8 | Python | false | false | 1,885 | py | import json
from os.path import dirname
from os.path import join
from unittest import TestCase
from pytezos.michelson.forge import forge_micheline
from pytezos.michelson.forge import unforge_micheline
from pytezos.michelson.program import MichelsonProgram
folder = 'typed_minter'
entrypoint = 'mint_TYPED'
class Main... | [
"noreply@github.com"
] | baking-bad.noreply@github.com |
7b1c2611686a4f3edec1423c2f160bef45a811b7 | b39dc1024655e9db5433dbfe326a5dd47d75c3c1 | /myapps/art/views.py | 4dc27b6f66d89509270e441b62ff54af177e72fe | [] | no_license | cjxxu/A_Fiction_web | 381ab9e52714156879ee44978b450d1156346b61 | f9f0fc40bc27f5307de8c61bcc75fca82c75d8ed | refs/heads/master | 2021-06-22T13:16:30.989697 | 2020-12-10T09:05:35 | 2020-12-10T09:05:35 | 144,845,320 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | from django.http import JsonResponse
from django.shortcuts import render
from redis_ import rd
# Create your views here.
from django.views.decorators.cache import cache_page
from art.models import Art
from user import helper
import redis_
from art import tasks
@cache_page(30)
def show(request,id):
login_user = he... | [
"747603365@qq.com"
] | 747603365@qq.com |
136a40a1eafdcd384e82287c18065fea36cbab7b | d93b0fdaa67e3fc4e126038ed27de2df29f04b7e | /src/pyats/contrib/creators/file.py | f86e71aa655d84f4f99329cec5c6d6e1b611f769 | [
"Apache-2.0"
] | permissive | egreenspan2/pyats.contrib | b3c3eef11e94bcc842d77d6c2d9ca7154289012a | 83184ae9e5e580ae53a08b898696cef721a3dd72 | refs/heads/master | 2022-07-18T15:41:10.261846 | 2020-05-05T23:50:01 | 2020-05-05T23:50:01 | 262,427,040 | 0 | 0 | Apache-2.0 | 2020-05-08T20:56:07 | 2020-05-08T20:56:07 | null | UTF-8 | Python | false | false | 6,181 | py | import os
import xlrd
import csv
import pathlib
from pyats.topology import loader
from .creator import TestbedCreator
class File(TestbedCreator):
""" File class (TestbedCreator)
Creator for the 'file' source. Takes in a CSV or Excel file and outputs the
corresponding testbed object or file. Alternatively... | [
"tezheng@cisco.com"
] | tezheng@cisco.com |
f874d3d01c4a38618dfbade3415abc56847a31d6 | d0a5b42b75a8884fd62fbbb2138bc03a4ab04c5d | /Projects/sudoku-master/sdk_group.py | 520e5ef0af09e6348ca1c6ac3e36f362491fc3e2 | [
"MIT"
] | permissive | HenziKou/CIS-211 | b0221b42128fdb74fd8ca4c6db133c239bd999bb | b3510b28aa70f3d620f8b317c6cb206536f20fcb | refs/heads/master | 2021-01-09T11:48:56.967065 | 2020-02-22T06:33:04 | 2020-02-22T06:33:04 | 242,289,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,567 | py | """
A "group" is a collection of 9 Sudoku tiles, which
may form a row, a column, or a block (aka 'region'
or 'box').
Constraint propagation are localized here.
"""
from typing import List
import sdk_tile
import logging
logging.basicConfig()
log = logging.getLogger(__name__)
log.setLevel(logging.DEBUG)
class Group... | [
"henzikou@gmail.com"
] | henzikou@gmail.com |
8c2b88a90276e8878d80b2051ba69a0ae3c43a9d | 9f491494ad39b91c906517ceb3008c752c214989 | /NRE_paper_study/ERNIE/ERNIE/code/run_fewrel.py | 6cd39d87b03a062812499b41ae86f44523c8c782 | [
"MIT"
] | permissive | yuwell1999/nlp_paper_study | 0b73b2e8235a4dffc0fa5016c23d7998a15f58a7 | b7772aa9c15d3b8459d9b8c3addb93c575a93ef2 | refs/heads/master | 2022-04-15T22:01:45.526579 | 2020-04-07T14:24:27 | 2020-04-07T14:24:27 | 256,650,641 | 1 | 0 | null | 2020-04-18T02:07:02 | 2020-04-18T02:07:02 | null | UTF-8 | Python | false | false | 23,722 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HugginFace Inc. team.
# Copyright (c) 2018, 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... | [
"958747457@qq.com"
] | 958747457@qq.com |
bb2f3583ce87e0c49e35263a9eb452014649b3d1 | 7c6248cf1e5e8f4b0a9ae21a139d0ac75ae704e9 | /usr/local/bin/docker-cloud | 8e920495654576ea24cd41dbde8fe8b0ffceda3a | [] | no_license | tn-osimis/highland_builder | 94b299f1baf8c9294f476159af54da7fa65e6878 | 973c5908bb226b4374e390c06d3e88176f219ccf | refs/heads/master | 2021-05-09T14:35:17.278118 | 2018-01-26T15:45:04 | 2018-01-26T15:45:04 | 119,069,264 | 0 | 0 | null | 2018-01-26T15:37:08 | 2018-01-26T15:37:08 | null | UTF-8 | Python | false | false | 326 | #!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'docker-cloud==1.0.7','console_scripts','docker-cloud'
__requires__ = 'docker-cloud==1.0.7'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('docker-cloud==1.0.7', 'console_scripts', 'docker-cloud')()
... | [
"tn@osimis.io"
] | tn@osimis.io | |
d5d532ae0c5bdd0ab6358c0d0abd97160acd91bf | 4854dc001b90d6eb2aa0370888ff2ad3ae94207f | /Greedy/BOJ_1931.py | e5c54fb454ab02df21dce00a76e1c57d9e9cf349 | [] | no_license | gocyzhod/algorithm | b565a3075719fd1e7976f229ffeaf3c72b91b173 | b2f304ecce6b0a7a072ff370a78c91b85ca1bbb4 | refs/heads/main | 2023-08-16T20:12:54.500647 | 2021-10-04T07:36:18 | 2021-10-04T07:36:18 | 381,949,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | import sys
input = sys.stdin.readline
N = int(input())
room = [[0]*2 for _ in range(N)]
Num = len(room)
for i in range(N):
a, b = map(int,input().split())
room[i][0] = a
room[i][1] = b
room.sort(key = lambda x : (x[1], x[0]))
count = 1
end_room = room[0][1]
for i in range(1,N):
if room[i][0] >= en... | [
"noreply@github.com"
] | gocyzhod.noreply@github.com |
42ab6de1527788b1ff72e1291ae810240bd3d70d | b3edbdc7c673f0f6cc7eee034c48aabc581fa9ae | /01.Import_Module_Package/main.py | 4e7486e29f0fb33f01f1ad6531de9d8a87cc596c | [] | no_license | Oleg-Stukalov/Advanced_Python | d913157dcf74a48db491a020a924f84916139cd1 | b8af98beb06a405d8e26532f7f981395040fcf6c | refs/heads/master | 2022-12-10T13:28:35.325841 | 2020-09-10T12:38:33 | 2020-09-10T12:38:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from datetime import date
from application import salary
from application.db import people
if __name__ == '__main__':
print(date.today())
print(people.get_employees())
print(salary.calculate_salary())
| [
"serge.rybakov@gmail.com"
] | serge.rybakov@gmail.com |
89f46992c9b73e991430fc581dfd8328dadbe2c0 | 4814eda1fa54376396f227ef18d9f84e087641f2 | /python/stats/stats-switch-slave.py | 78f66fe1c53ede02416ad4d918a2897142acf8c1 | [] | no_license | Travisivart/ADAPTS | 82fcdfa7c07f96ddf4c9061e645b0c24f7c3b623 | babfed70557e02ff98a50cbf5907b3cebf63c5f5 | refs/heads/master | 2021-05-10T15:29:58.258499 | 2018-05-02T00:19:49 | 2018-05-02T00:19:49 | 118,552,761 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,704 | py | import sys, logging
import frenetic
import pymysql
from frenetic.syntax import *
from network_information_base import *
from tornado.ioloop import PeriodicCallback, IOLoop
from functools import partial
hostname = 'localhost'
username = 'mtd'
password = 'mtd'
database = 'mtd'
myConnection = pymysql.connect( host=hostna... | [
"travisneely@gmail.com"
] | travisneely@gmail.com |
bd83125d739186ca8984dec11d65bb01194fda34 | 77f4b39f6587560e3c3ca29ab5dd81ffe1807e5c | /values.py | e4a35d875742091f6d8cf0ba743689940e3e6e52 | [] | no_license | nikosninosg/Modbus-RS-485 | 425e8ac4caa49bd030df7fb906719d25a49ef7ee | 2d6ef3dee95fccc1339a19d579f07cb50494fb6d | refs/heads/master | 2020-07-25T23:42:13.030663 | 2019-12-20T11:46:44 | 2019-12-20T11:46:44 | 208,458,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | #!/usr/bin/env python
# Test program for DZT 6001: 80A, Single phase kWh meter, LCD, RS485/Modbus
#
# Home page: https://www.dutchmeters.com/index.php/product/dzt-6001/
# User manual: http://dutchmeters.com/wp-content/uploads/2017/06/DZT-6001-manual.pdf
# Register reference: http://dutchmeters.com/wp-content/uploads... | [
"noreply@github.com"
] | nikosninosg.noreply@github.com |
b1ccedbab71f1b853cf34e1014089d47ee4ce1b1 | 36b10bf10e168d2b3177688f1f9b45606118c9ab | /lesson_05/homework5.py | dc7285fdca6a0c4a34e719db2afd08c7af117de9 | [] | no_license | FatDou/pyCourse | 6270fd2f27944fafff743323286d6bd6631048b7 | f979b25d93107b5c5f1b28ef50dc415263e21155 | refs/heads/master | 2021-04-26T23:33:06.766493 | 2018-09-29T02:02:07 | 2018-09-29T02:02:07 | 124,013,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Sep 17 20:47:16 2018
@author: fatdou
"""
"""
读取文件
"""
from sklearn import svm, datasets
import numpy as np
import os
from functools import reduce
class DataSet:
def __init__(self, name):
self.name = name
#读取文件内容,读到一个list中
... | [
"pfkmldf4@outlook.com"
] | pfkmldf4@outlook.com |
97a997c29e858c17b6cf726578235b19d6605e7d | 3fa480cf996c4f597013f89c31dacdbd1abde153 | /server/lobby_server_handlers/SendChallengeHandler.py | b6e9094edc90ab35dd56e5e08726c77dda8e6358 | [] | no_license | einhornus/CrazyGo | bdfd3700f912a616384cec1cace822e0a0604e4a | a7ffcd6cc75c515e93b7f9ff11ac412d5a0b7d5e | refs/heads/master | 2021-01-20T04:04:43.913605 | 2017-10-05T16:20:26 | 2017-10-05T16:20:26 | 101,261,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py |
from Server import *
from utils.Validator import *
from utils.print_utils import *
from utils.db_queries import *
from utils.security import *
import settings
import random
from lobby_server_handlers.factory_utils import *
class SendChallengeHandler(Handler):
def get_validator(self):
res = Validator(['i... | [
"luckjanovdmitry@yandex.ru"
] | luckjanovdmitry@yandex.ru |
b680364282f0465ffb32dd84c7508cc3a31d9dd8 | a2a9641305adbf31636c3168659da4c3ecd1c3b1 | /model1.py | 3377351cfeb8dce1e7b3cfe7315855e1576c9970 | [] | no_license | kikyou123/DFN | c4b5a3973f2f4bc794aed0374dcd0d79e789d174 | fba22ff0fcb3759843c4ef5eb2f392343d286c27 | refs/heads/master | 2021-07-20T08:09:57.933121 | 2017-10-28T03:48:49 | 2017-10-28T03:48:49 | 108,617,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | from op import *
import tensorflow as tf
import os
import numpy as np
def add_upscale(input):
prev_shape = input.get_shape()
size = [2 * int(s) for s in prev_shape[1:3]]
return tf.image.resize_nearest_neighbor(input, size)
def dfl(input, filters, ker = 9):
'''
:param input: input image of size [b... | [
"1163763177@qq.com"
] | 1163763177@qq.com |
f571afedabe7f777765b939014a2f36982fec0f5 | 00f2b2d9c383855bbc7ac3d7f98172aca9999012 | /testPrograms/testingCamera.py | 8e9906c7f3aba4fdd30729c753296c0a49740eaf | [] | no_license | ProducerBill/Vision_System | 87a508dcc04c3bda1695f95f5c6e25d66696f630 | 5e0c809543eb2847adb2fa959f0b41fc8691c207 | refs/heads/master | 2020-07-07T04:08:30.041555 | 2020-03-01T22:09:23 | 2020-03-01T22:09:23 | 203,243,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | import numpy as np
import cv2
from PIL import Image
cap = cv2.VideoCapture(0)
cap.set(3,640)
cap.set(4,480)
#cap.set(5,1)
#cap.set(15,1)
while(True):
# Capture frame-by-frame
ret, frame = cap.read()
# Our operations on the frame come here
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
# Display... | [
"william.c.jones1981@gmail.com"
] | william.c.jones1981@gmail.com |
edd9ba49ef0c1db6c197e3b0069e1e0b71884094 | fabad4997deeedafa6fa501361d459a94a754d70 | /dm_memorytasks/__init__.py | e89aa8e2eb830cb05927e34a68310b681c575e1b | [
"Apache-2.0"
] | permissive | mbrukman/dm_memorytasks | 6119ec1628392d12e4ef94c8e7714b23e458ae09 | 7672decd503d34ea21150e5eeb453f84e91747ae | refs/heads/master | 2020-11-24T17:15:53.123045 | 2019-12-12T16:59:12 | 2019-12-12T16:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | # Copyright 2019 DeepMind Technologies Limited. 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 a... | [
"tomward@google.com"
] | tomward@google.com |
bfdfc1a62852507f68a014cbcc9ad012b1f7e16e | 9139bd5dad2c66f070d1eb01958a11a2af1c9835 | /game-again.py | 224f4ce078f24c31bd6fed0be854de5fba7b5cf7 | [] | no_license | anmolrajaroraa/python-reg-oct | 7223487b864d969e89f9daae2a77522405977f27 | acb62ad7c8acb78f348bdc47e5ed6230808d967c | refs/heads/master | 2020-08-04T09:10:25.152732 | 2019-11-08T08:57:28 | 2019-11-08T08:57:28 | 212,085,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | import pygame
pygame.init()
HEIGHT = 500
WIDTH = 1000
# red green blue (0-255)
BLACK = 0,0,0
WHITE = 255,255,255
RED = 255,0,0
RANDOM_COLOR = 100,150,200
gameboard = pygame.display.set_mode((WIDTH,HEIGHT))
while True:
print("!")
gameboard.fill( BLACK )
pygame.display.update( )
| [
"anmolarora1711@gmail.com"
] | anmolarora1711@gmail.com |
bfed5fdd83ea7f7730c54d041952feeacb748f12 | a9e40fbba7891ed2a5e0eaac79c326003c845891 | /baremetal_network_provisioning/tests/unit/drivers/hp/test_hp_snmp_provisioning_driver.py | 32eb4ad71f3defb5643db68974752910088c78c5 | [
"Apache-2.0"
] | permissive | priya-j/baremetal-network-provisioning | 1c404f9b4762355de70948165b5bc107c9650154 | 7ba50178da76b605a91aff03e0127f2cd4eae93e | refs/heads/master | 2021-01-18T07:43:59.829457 | 2016-01-29T09:42:47 | 2016-01-29T09:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,844 | py | # Copyright 2015 OpenStack Foundation
#
# 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 ... | [
"selvakumar.s2@hp.com"
] | selvakumar.s2@hp.com |
20ede17c952b40d8bfe9406df93dd193f5dceb68 | b4ddc954a7dc0d24352de64a567c10c9e7231eee | /LeetCode/Pascal_Triangle.py | 19ffa5bc0886c62656dc9045ad7221ae44c9f5e0 | [] | no_license | sharadbhat/Competitive-Coding | 4d80c99093bf05a2213799c95467309cf3e40d07 | 79eec04cc6b1ac69295530bda1575ecb613a769e | refs/heads/master | 2023-07-05T02:25:33.397140 | 2023-06-27T05:38:12 | 2023-06-27T05:38:12 | 78,031,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # LeetCode
# https://leetcode.com/problems/pascals-triangle/description/
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
"""
if numRows == 0:
return []
l = [[1]]
for i in range(1, numRows):
... | [
"sharad.mbhat@gmail.com"
] | sharad.mbhat@gmail.com |
342dd966e0ae8e7001e1e29509b365599ace7f56 | 4ddb74db1860561ead2b1127522b6e45d057f76b | /7_bond-distance_histogram.py | 59e3920313fe5abe202d5dd7ec24227392573434 | [] | no_license | itamblyn/FORCE | 25accbb24e049fe011b02fbc0b7a5c35437378ed | b3550159f8568ce35f510acb53418bbcb448fe17 | refs/heads/master | 2020-05-27T10:57:23.482976 | 2012-07-05T23:19:25 | 2012-07-05T23:19:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | #! /usr/local/bin/python
import sys
if len (sys.argv) == 1:
print 'usage: ' + sys.argv[0] + ' distance.dat number_of_bond_length_bins [min_bond_length_value, max_bond_length_value]'
import numpy
input_filename = sys.argv[1]
inputFile = open (input_filename,'r')
number_of_bond_length_bins = int(sys.argv[2])
... | [
"tamblyn2@sierra"
] | tamblyn2@sierra |
cf1b2dbe6779ecf7958e0746ee7fb772c6a8579f | 680a8f2f04a06e82019c277f1de665ea4f5c13df | /castling/blog.py | b4defe360e402eb09552b5c3a13846db8cdd7fa4 | [] | no_license | narayanahari/castling.fun | d2a6157be4b38507588c95cb4f52d0dd4e213d25 | 69e11d2745fbbf6bbd5ab33d8ece3559b992311c | refs/heads/master | 2021-09-17T09:14:45.017216 | 2018-06-29T17:42:00 | 2018-06-29T17:42:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | from flask import (
Blueprint, request, url_for, g, redirect, flash, render_template
)
from werkzeug.exceptions import abort
from castling.auth import login_required
from castling.db import get_db
bp = Blueprint('blog', __name__)
@bp.route('/')
def index():
db = get_db()
posts = db.execute(... | [
"narhari@amazon.com"
] | narhari@amazon.com |
27bda1b1a714d283c53c57ab24bbbf6842074047 | 46d67307d64323df77aa35c36a6026863efb1258 | /P3/4/a/graph3.py | 3e1c2c735cddfd07fc16de83f2d443876bcf08f7 | [] | no_license | LFRusso/Intro_Fiscomp | 760a3bd8686f368eb024ef27d4b7706add877ea2 | 266e1d4ebf1e60db5035b3ba070f354b98f4f81d | refs/heads/master | 2020-05-16T06:56:15.431994 | 2019-09-17T00:49:38 | 2019-09-17T00:49:38 | 182,862,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | from matplotlib import pyplot as plt
import numpy as np
tau, theta = np.loadtxt('fort.3', delimiter = ',', unpack = True)
plt.plot(tau, theta, linewidth = 1)
plt.xlabel("T")
plt.ylabel("Theta (rad)")
plt.grid()
plt.title("Euler")
plt.savefig("euler.png")
| [
"lf.santos@usp.br"
] | lf.santos@usp.br |
ba79f0a7a16eee2f5d086bd7d5e06adec8636825 | f10d45aecbfccb3f469ab0c4ae55fc0f256c9004 | /Functions/chr_ord.py | 80c8745e0e21329911e636eedb326846d34957cc | [] | no_license | Do-code-ing/Python_Built-ins | c34c1cea19a2cef80ab3a16d050e8825af0feb59 | 03b2f277acde4fce00bb521e3a0b8c0469b39879 | refs/heads/master | 2023-07-29T15:30:00.693005 | 2021-09-04T18:48:18 | 2021-09-04T18:48:18 | 354,467,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # chr(i) : character(int)
# 유니코드 포인트 정수 값을 입력하면 해당 정수 값의 유니코드 문자열을 반환한다.
# i 가 0 ~ 1,114,111(16진수로 0x10FFFF)를 벗어나면 'ValueError'가 발생한다.
# 정수를 문자로
print(chr(8364))
# '€'
# ord(c) : ordinary character(character)
# 유니코드 문자열이 주어지면 해당 문자의 유니코드 코드 포인트 정수 값을 반환한다.
# chr() 와 반대로 작동한다.
# 문자를 정수로
print(ord("€"))
# 8364 | [
"zxcvbn658@naver.com"
] | zxcvbn658@naver.com |
ea0d2d7415c8d98590a6caf8cc4bb1aa659fd24e | 1457bf059b94e04d4d512012b28a924167c68938 | /NetworkBehaviour/Basics/Normalization_Sparse.py | 164188463a9a59cb81bc31b3411633742dab0ba2 | [] | no_license | YaminaDJOUDI/PymoNNto | e063c81547d41a9841ff8f8071c4d6347ce792da | 807aa7e0ba38cb29ad7839b39f29752da00eee78 | refs/heads/master | 2023-07-08T03:06:41.722292 | 2021-08-04T11:30:52 | 2021-08-04T11:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import numpy as np
scipy.sparse
def normalize_synapse_attr_sparse(src_attr, target_attr, target_value, neurons, synapse_type):
neurons.temp_weight_sum = neurons.get_neuron_vec()
for s in neurons.afferent_synapses[synapse_type]:
if 'sparse' in s.tags:
s.dst.temp_weight_sum += np.array(get... | [
"mv15go@gmail.com"
] | mv15go@gmail.com |
c4ae6a3d42ad8bf39696371b8e7e988fe8327e55 | 4e972d4ab53aa698ee310bf4b056ab0db600077f | /SQL_connector.py | a91528346126669d35f3cdf3f20818f32315ea8e | [] | no_license | askalach/oncocentre_bot | c8ce827c55a06f6411672d3ee12adf437401097d | 7838fd4ab5555b92aba719a8f4cd9d2b768361bc | refs/heads/main | 2023-05-04T03:16:43.228011 | 2021-05-20T11:10:54 | 2021-05-20T11:10:54 | 367,136,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,806 | py | import logging
import sqlite3
from datetime import datetime
import settings
from data_loader import DataLoader
class SQLite_saver:
def __init__(self, connector: sqlite3.Connection):
self.connector = connector
self.cursor = self.connector.cursor()
# self.connector.set_trace_callback(print)... | [
"askalach@gmail.com"
] | askalach@gmail.com |
d294763355f1cde1ecd4be75eef850fc95e0f6f8 | b5c343216f13ef4e4ee30274cca7a496848ccb9b | /posts/migrations/0012_auto_20200527_1626.py | 694a24f8d3fa9dcc3befcf046763f8f49e5a8164 | [] | no_license | nikhanal/blogproject | 3bced7b88e4822ed647ae7101e73d8254e226965 | eb09107415ebe15475f6425a3c409f41b6d918c1 | refs/heads/master | 2023-08-15T02:25:31.272914 | 2020-06-06T07:55:03 | 2020-06-06T07:55:03 | 267,789,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # Generated by Django 3.0.6 on 2020-05-27 16:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0011_auto_20200527_1508'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='comment_count'... | [
"khanal.nishan28@gmail.com"
] | khanal.nishan28@gmail.com |
96e8a2c7b7b68b5270107da8cea93260d995e304 | 9b15c5f6a65117472983172b0864dbd0f1bc1937 | /qsauto/qsauto/items.py | d344dc18e0acb76a3482242ddcb0ef151b61f824 | [] | no_license | Chunge135/Python_System | c4621ebf5161cb2477817b8959d01b88281eca64 | 396358a78b89e26cd3606199ec206191aed45cb4 | refs/heads/master | 2022-10-25T13:25:21.056269 | 2020-06-19T08:51:38 | 2020-06-19T08:51:38 | 273,444,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class QsautoItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
content = scrapy.Field()
link = sc... | [
"63931102+Chunge135@users.noreply.github.com"
] | 63931102+Chunge135@users.noreply.github.com |
e0af98a161bb2fe76f40a9dab414307691aed916 | cdecfcc56973ae143f04a9e92225c5fc90a052ab | /tracing/tracing/value/diagnostics/reserved_infos.py | 13aedf28520e992994fa0efa641eba6d7f919036 | [
"BSD-3-Clause"
] | permissive | eugenesavenko/catapult | 8e43adab9a4650da4e8e1860f3b9b49936955aae | f2ad70de40a8f739438d89b0c8d5ed6509b3cbe6 | refs/heads/master | 2021-05-05T17:31:51.483972 | 2017-09-13T15:10:56 | 2017-09-13T15:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class _Info(object):
def __init__(self, name, _type=None, entry_type=None):
self._name = name
self._type = _type
if entry_type is not None and... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
bbfd06063961347aeeab79c3e872547e87083676 | f46c230cd989261a913ff5c24e16ddcdf154fbb7 | /apps.py | 23896687f5336785dc53eb76b175ee8c72257de6 | [] | no_license | penolove/WebPtt_django | 17a78b6318a5caf7a25734e1ab9443225de6c631 | c33462d173664867fe9b0fd43faaa8fe11ded64d | refs/heads/master | 2021-05-02T01:02:06.372416 | 2017-07-03T03:53:37 | 2017-07-03T03:53:37 | 78,621,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class pttWebConfig(AppConfig):
name = 'pttWeb'
| [
"penolove15@gmail.com"
] | penolove15@gmail.com |
286e5a84629ddfa8a87808ef1f9d99445655a7e5 | 7e79ca343d8d3246fc783161673550f6e4ae8896 | /tests/test_search.py | 73b1bddf6e9c87215ffb0554d6c68407a13132a2 | [
"MIT"
] | permissive | interrogator/buzz | 5ba0907115aa29efc24f016d1345a0371b91350a | 7627b8ce4a286f65388f0825487441df00055b39 | refs/heads/master | 2023-04-02T03:18:01.691139 | 2020-11-19T12:00:21 | 2020-11-19T12:00:21 | 163,623,092 | 42 | 2 | MIT | 2023-03-25T00:51:45 | 2018-12-30T22:55:18 | Python | UTF-8 | Python | false | false | 2,544 | py | import unittest
from buzz.corpus import Corpus
class TestSearch(unittest.TestCase):
@classmethod
def setUpClass(cls):
""" get_some_resource() is slow, to avoid calling it for each test use setUpClass()
and store the result as class variable
"""
super().setUpClass()
... | [
"mcddjx@gmail.com"
] | mcddjx@gmail.com |
2d743a13cd7cceb8c568ddc627bf234b71489089 | 3ced0d61d1f8043bfaf2d8f4a6872b1c074a41fd | /articles_scrapers/items/article_item.py | 3e93f823358ec26291f0fd765182bcb08ea54eb3 | [] | no_license | jennettefir/news | 7de750cf22b5c4ca72dc2ec24cacdc6bf76857c8 | 26bf188ac517c69fe5c44db8d1309174b5e38a6e | refs/heads/master | 2023-01-01T03:11:59.212237 | 2020-10-26T17:14:17 | 2020-10-26T17:14:17 | 295,839,858 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | import scrapy
from scrapy.loader.processors import TakeFirst, MapCompose
from articles_scrapers.utils import strip_str
class ArticleItem(scrapy.Item):
title = scrapy.Field(serializer=str,
input_processor=MapCompose(strip_str),
output_processor=TakeFirst())
lin... | [
"noreply@github.com"
] | jennettefir.noreply@github.com |
ef60bbe494adc9b1d959a59bee964c438e7f3dcc | 55c13a144da515c697f1b6d2c376d67135f25570 | /IT-Essentials-Oefeningen/3_Condities/slides_opgave3.2_p15.py | 65f5917835614a46c1c351413356262c7e5a0041 | [] | no_license | JensHuskensPXL/1TIN_IT_Essentials | a6135b9937338ada74c03fe09a61e589d6483f2b | 14d978e70200839d46f9c11833d50e4b0df43f89 | refs/heads/master | 2020-03-30T12:34:36.047443 | 2018-10-03T09:00:26 | 2018-10-03T09:00:26 | 151,230,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | print("Is 1/10 groter dan 0.10? " + str(1 / 10 > 0.10))
print("Is 1/10 gelijk aan 0.10? " + str(1 / 10 == 0.10))
print("is 1/3 groter dan 0.33? " + str(1/3 > 0.33))
print("is 1/3 gelijk aan 0.33? " + str(1/3 == 0.33))
print("is (1/3) * 3 groter dan 1? " + str((1 / 3) * 3 > 1))
print("is 1/3 * 3 gelijk aan 1? " + s... | [
"jens.huskens@student.pxl.be"
] | jens.huskens@student.pxl.be |
3e0d7702e1f23ccd54a568d363e1d04484642374 | 1e307f2a4120a0774d0ba4376462a00a8fa642cb | /LEUpdatesScreen.py | 8d0d7737c11c8a4c7776f31cb6aa2bbe4650f426 | [
"MIT"
] | permissive | markusj1201/Le_Utility_1d | 13980d2861ce3a57731e5e4e7ff37bb38fe433d9 | 46f299bcafeb07ee4f009395318213af764cb991 | refs/heads/master | 2020-08-29T16:14:27.416971 | 2019-10-28T20:29:11 | 2019-10-28T20:29:11 | 218,087,824 | 1 | 0 | MIT | 2019-10-28T16:04:13 | 2019-10-28T15:59:47 | Python | UTF-8 | Python | false | false | 239 | py | import sys
sys.path.append('../')
from PyQt5 import QtGui
class Window(QtGui.QMainWindow):
def __init__(self):
super(Window, self).__init__()
self.setGeometry(50, 50, 500, 300)
self.SetWindowTitle()
| [
"noreply@github.com"
] | markusj1201.noreply@github.com |
de198265ca023fde36b1896bd7f7a3c4b83a552d | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /bigg/bigg/torch_ops/tensor_ops.py | 9f544ab7efd4d3e2c752d63f5d72056f16c23cef | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 3,956 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
b7b026f7642d82363d9802fe0d817ba66118aad4 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/ec_11022-1357/sdB_EC_11022-1357_lc.py | 350257c414f2078d50e83da141fccc17f22aa32c | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[166.190667,-14.236356], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_EC_11022-1357 /sdB_EC_11022-1357_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if _... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
0bd82e74ba3c6621cb7fa14b9f43311bc864df59 | 3a28b1a12d0710c06f6360381ad8be6cf3707907 | /modular_model/triHPC/triHPCThermo/HPCAllTrays23CstmVapN2.py | b31256787ee26b7321199ab3098b7e3d1d66394a | [] | no_license | WheatZhang/DynamicModelling | 6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02 | ea099245135fe73e8c9590502b9c8b87768cb165 | refs/heads/master | 2020-06-15T14:12:50.373047 | 2019-07-05T01:37:06 | 2019-07-05T01:37:06 | 195,319,788 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | def VapN2(P,T,x_N2):
x = (P-5.50184878e+02)/3.71707400e-01
y = (T--1.77763832e+02)/1.81029000e-02
z = (x_N2-9.82420040e-01)/2.44481265e-03
output = \
1*-8.60567815e-01+\
z*1.86073097e+00+\
y*8.60696199e-01+\
x*-4.21414345e-01
y_N2 = output*1.31412243e-03+9.90969573e-01
return y_N2 | [
"1052632241@qq.com"
] | 1052632241@qq.com |
17035f0daddf4031869431bf0f4cdf4e24f57d18 | 15875d185c6952b4215715dfce1ef1c2bccd8f8c | /PythonApp/Python/Python-3.py | 187b6821ba7ad786c4b92cbb5047e1cfbbb4fdbe | [] | no_license | King-Key/Blogger | 8f7cde7c9d86ed94bc341a321719922132eb988b | dcbce25e7da0ea7f52457ddef9f0499aabd9e0b7 | refs/heads/master | 2022-10-04T03:29:20.025579 | 2022-09-04T16:26:39 | 2022-09-04T16:26:39 | 150,231,725 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2019-11-03 22:55:40
# @Author : King-Key
# @Email : guo_wang_113@163.com
# @Link : https://king-key.github.io
import math
print(dir(math))
file = open("./课程内容差异化调研.md", "wb")
print(file.name)
print(file.closed)
print(file.mode)
file1 = open("test.txt... | [
"guo_wang_113@163.com"
] | guo_wang_113@163.com |
401c0dc13225c97610ce48f99cbceb713f804d1b | 6244fc26a16664cd4cd4db096c1938773d9d435a | /custom scripts/create_roc_plot_multiple.py | 885b5594b03111483c6687af32ffd250880f25ec | [] | no_license | Folkert94/bioinf | c3a5d81c708ff046522600cd1ec698acaa8c2f52 | 022150846806b853a1df96ced104368402722bb3 | refs/heads/master | 2020-07-28T09:45:40.092432 | 2019-10-05T10:22:49 | 2019-10-05T10:22:49 | 209,384,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,714 | py | #!/usr/bin/python
# This script reads and parses your previously obtained results out of a blast output file, and a benchmark output file.
# It then creates the corresponding ROC plot, exports the coordinates and calculates the AUC.
import argparse
import numpy
import matplotlib
matplotlib.use('AGG')
import pylab
de... | [
"folkertstijnman@gmail.com"
] | folkertstijnman@gmail.com |
b86fa99f8c6307b908df6db6c0fd826f50421a8e | 646a83d3de5ff2d2dc0c6f7efbd3f459a6479a63 | /HW2TermStructure/Bond.py | bca23be52fcef20ed362fa35865a4a3a68a11504 | [] | no_license | Wangvory/AdvQuantFin | f35454f04ddcb80e80bd76bcf7e0e378322113ae | c198a7b04d4e88996c4baec2f926d71d566faddf | refs/heads/master | 2020-12-26T20:57:05.019188 | 2020-12-14T19:30:18 | 2020-12-14T19:30:18 | 237,636,629 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,250 | py | import math
class Bond(object):
def __init__(self, name, coupon, issue_date, maturity_date, compounding_frequency_per_annum):
self._name = name
self._coupon = coupon
self._issue_date = issue_date
self._maturity_date = maturity_date
self._compounding_frequency_per... | [
"zhoujohnone@gmail.com"
] | zhoujohnone@gmail.com |
7a09c2d76104f8dd348cfb5c054d8ed6d565d3e1 | b212ec9d705fb77cac102dceb12eb668099fd1ae | /oop/exams/december_2020/tests/project/spaceship/spaceship.py | 0defe638ec725097b266e2afa6f7fdba3fb197b5 | [] | no_license | xpucko/Software-University-SoftUni | 20ef91a0be91a8a09a56d9fdc15888f91409de2f | a1fc1781424f025954948299be7f75d317e32dc1 | refs/heads/master | 2023-02-04T11:58:33.068431 | 2020-12-24T00:39:11 | 2020-12-24T00:39:11 | 280,227,310 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | class Spaceship:
SPACESHIP_FULL = "Spaceship is full"
ASTRONAUT_EXISTS = "Astronaut {} Exists"
ASTRONAUT_NOT_FOUND = "Astronaut Not Found"
ASTRONAUT_ADD = "Added astronaut {}"
ASTRONAUT_REMOVED = "Removed {}"
ZERO_CAPACITY = 0
def __init__(self, name: str, capacity: int):
self.name ... | [
"hristiyan.plamenov.valchev@gmail.com"
] | hristiyan.plamenov.valchev@gmail.com |
a67b3be8bf770a11a0515a42fe9e37b479324764 | 297497957c531d81ba286bc91253fbbb78b4d8be | /testing/web-platform/tests/tools/manifest/utils.py | 5cd53c22e7745bd3656dadd6940aa4d5f33f4f19 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 2,232 | py | import os
import subprocess
import sys
from typing import Any, Callable, Generic, Optional, Text, TypeVar
T = TypeVar("T")
def rel_path_to_url(rel_path: Text, url_base: Text = "/") -> Text:
assert not os.path.isabs(rel_path), rel_path
if url_base[0] != "/":
url_base = "/" + url_base
if url_base[-1... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
95271a597babd080f7902f79bf71de01060eb442 | 3531e0b4c11415b21b10e25eec96ca5daa29a097 | /publication_old.py | a21e6ad44a596c2d972eb08ede367a26ebe3318a | [] | no_license | akanksha2806/Characterisation-of-Ties-in-the-Research-World | 428eb321e5a0a879f886c38808a51c93350b420d | aafe541427855815435e8d976147221742a16e31 | refs/heads/master | 2020-04-02T09:10:16.042806 | 2018-07-30T18:44:44 | 2018-07-30T18:44:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,865 | py | import matplotlib.pyplot as plt
from matplotlib import style
import numpy as np
import matplotlib as mpl
import pandas as pd
import pymongo
import pprint
from pymongo import MongoClient
from collections import defaultdict
import xlrd
import xlwt
from xlwt import Workbook
import collections
'''India------... | [
"apoorvasingh2811@gmail.com"
] | apoorvasingh2811@gmail.com |
f0291b04f1493de5db89fb82e294ecc2556628fe | e0c9ae210ffa579bfbfb109c34988af7b8737f7e | /MotorServicesApp/migrations/0003_remove_area_notes.py | 7f7b1f2f5c62f5b4f5f95ec332d95d495bdfffc1 | [] | no_license | ash018/ServiceDashboard | 509c5aa098bcb03808070924ec37ca581a4b77ea | 230883635e0e325f45ab7b9d77604ac32de6e3da | refs/heads/master | 2020-08-04T06:11:41.866302 | 2019-10-01T06:37:26 | 2019-10-01T06:37:26 | 212,033,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | # Generated by Django 2.1.8 on 2019-09-18 06:03
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('MotorServicesApp', '0002_area_notes'),
]
operations = [
migrations.RemoveField(
model_name='area',
name='Notes',
),
... | [
"smakash@aci-bd.com"
] | smakash@aci-bd.com |
f36f8c2aaef1d6942cfce8bf2076106ba24351ae | ec2c5a950f6e17d11343b1082c64bd6c313b527d | /flasker/Myself_CSRF.py | f469b808a8bc9c7883aba7e1433df927b7a159f0 | [] | no_license | 0726Huyan/flask-demon | 6ce33f68a8b0c665e270fb3e35d4f820e1f7068f | 0e2714e103c0af3852f5bd5b863f155266d6d856 | refs/heads/master | 2020-06-25T00:57:49.477130 | 2019-07-27T09:48:19 | 2019-07-27T09:48:19 | 199,146,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | from wtforms.csrf.core import CSRF
from hashlib import md5
SECRET_KEY='111111' # 可写入配置文件中 通过 app.config[xxx]调用
class Myself_CSRF(CSRF):
def setup_form(self, form):
self.csrf_context=form.meta.csrf_secret
return super(Myself_CSRF, self).setup_form(form)
def generate_csrf_token(self, csrf_token_f... | [
"localhost@localhostdeMacBook-Pro.local"
] | localhost@localhostdeMacBook-Pro.local |
b45500ecd7485e86f04ae3a4fb0708ea4bacd640 | 7823c78c2e0123bc89ec845e07e954c6e8e410c4 | /dl_1_2/part1/1-4/normalizing_rows.py | 681f3d2f2e0f286e53fba063e0bf42be878223c7 | [] | no_license | ChambersLiu/deeplearning_homework | 9b550ffe5695874381817c4515f216997686036b | a2c3f7545ca4d077695734d6fee27ec773426430 | refs/heads/master | 2021-08-24T06:02:17.231086 | 2017-12-08T09:50:30 | 2017-12-08T09:50:30 | 113,547,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/12/8 14:58
# @Author : ChambersLiu
# @Software: PyCharm
import numpy as np
def normalizeRows(x):
x_norm = np.linalg.norm(x, axis=1, keepdims=True)
print(x_norm)
x = x / x_norm
return x
if __name__ == '__main__':
x = np.array([
... | [
"changbo89@163.com"
] | changbo89@163.com |
3c09f0181b157f6eb955f3e8ab36c73ce0214183 | bfca3d22d440ebd099c15b1b803472d84aa05a97 | /P0160.py | 8a3c96125ef14af92d92bc0d14caed61c9cfd904 | [] | no_license | chenjiahui1991/LeetCode | 83a8354be70f13867212923995fb35fa1a95b9be | c2b01374942dcba7fbbe7865d13d7599bbc083f3 | refs/heads/master | 2020-03-22T14:13:50.621233 | 2018-10-07T07:05:41 | 2018-10-07T07:05:41 | 140,162,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | # Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def getIntersectionNode(self, headA, headB):
"""
:type head1, head1: ListNode
:rtype: ListNode
"""
def getSize(node):... | [
"chenjh@buaa.edu.cn"
] | chenjh@buaa.edu.cn |
93b3be45620815fce54df382049cb6a916461c03 | 6ee06ad2bbc15cc0f829f99198947ffe8cffe395 | /webscan/admin.py | b8f064eba4084bf5987ad65b805c97ebb1feb56e | [
"Apache-2.0"
] | permissive | heslay/Sec-Tools | b80f07eb98b71a308b359df01ee9f494a99348ac | 11a1ada25e0e1d376580253512fe658dc5f8b257 | refs/heads/master | 2023-09-05T04:35:45.077360 | 2021-11-20T02:05:38 | 2021-11-20T02:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | from django.contrib import admin
from .models import Category,Item,PortList,FpCategory,FingerPrint
from import_export.admin import ImportExportModelAdmin
from django.db import models
from django.forms import TextInput
# Register your models here.
#修改后台管理页面头部显示内容和后台名称
admin.site.site_header = 'Sec-tools 后台'
... | [
"“jianwentaook@163.com”"
] | “jianwentaook@163.com” |
f62ae05cbab3828d87056f0e424b8047131fd5a4 | f38bb187847005fc121bec01fe10042358004a87 | /StarUml/commandline.py | 465cfa18e5e59494e6cc529b1f36441e51f7692d | [] | no_license | loyolastalin/Python_Training_2020 | 17aaee735711ef3b4673479fb06f34fbf8bdba0b | dcee3c17615ff567b57afb67abbb45d63d72812a | refs/heads/master | 2023-08-14T23:44:43.897149 | 2021-10-05T08:20:28 | 2021-10-05T08:20:28 | 278,421,132 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | import sys,os
def main():
para =len(sys.argv) - 1
print("Total Parameter: {}".format(para))
for target_list in sys.argv:
print(target_list)
main() | [
"loyolastalin@gmail.com"
] | loyolastalin@gmail.com |
c10025495e49e178e839ee495b8d2b7559ca3fc4 | 6b16458a0c80613a66c251511462e7a7d440970e | /packages/pyright-internal/src/tests/samples/variadicTypeVar5.py | 8089b00a89ef9b4f7adfc12be8efb3939e34e3d4 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | ikamensh/pyright | 3bbbb2cf1a1bdbbecb89ef389036756f47ef7114 | 5ea620ad2008de57dcac720a84674bdb712bffc4 | refs/heads/main | 2023-08-26T05:54:43.660282 | 2021-10-30T16:35:06 | 2021-10-30T16:35:06 | 422,952,836 | 0 | 0 | NOASSERTION | 2021-10-30T17:52:03 | 2021-10-30T17:52:02 | null | UTF-8 | Python | false | false | 2,648 | py | # This sample tests the handling of variadic type variables used
# within Callable types.
# pyright: reportMissingModuleSource=false
from typing import Any, Callable, Literal, Protocol, Union
from typing_extensions import TypeVarTuple, Unpack
_Xs = TypeVarTuple("_Xs")
def func1(func: Callable[[int, Unpack[_Xs]], A... | [
"erictr@microsoft.com"
] | erictr@microsoft.com |
f8efb8796402968e0d65adeb58b5693319539a4e | ef60f1908dba8f3854148ad1395db43a23caa850 | /libsystem/libsystem/wsgi.py | f884fcdd95b3300a8580e6a00c1f1d0ebd85e469 | [] | no_license | Richardo3/libsystem | 797403038e23778843fc7bc4146bc37eaaa11361 | 8f025a1bfd7e902b6871cac8ccbd85503de67990 | refs/heads/master | 2020-05-04T19:43:50.454937 | 2019-04-05T09:11:47 | 2019-04-05T09:11:47 | 179,405,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for libsystem 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
305bd9adfd5fdf771c0106042bf798ea22446ea3 | 717753ad7477992a5e47a6930f64597b75219db5 | /ftenv/bin/easy_install-3.5 | e279077031588a0226ef80533755f84bebf13068 | [] | no_license | freshtracksnyc/ftnyc | 76a01afdc014f7854108cb7dfdd7dc085c3c54c8 | 297ec03010e13aaa5ee40c1c7cb851a014bfb89d | refs/heads/master | 2020-04-13T20:56:26.408186 | 2019-01-28T14:05:17 | 2019-01-28T14:05:17 | 163,443,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | 5 | #!/home/andy/ftnyc/ftenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"freshtracksnyc@gmail.com"
] | freshtracksnyc@gmail.com |
e87040c6a1bd846558f8c253422413cbb91f6f5f | 161daf1046832d25e66858157f95eb226ecf7cdf | /Linear Regression/Single Variable Linear Regression Manually.py | 6919d3f1af1bf449d416df7b20ca966b71574d64 | [] | no_license | Dipeshpal/Machine-Learning | 551552c0f5fc922aa6f9f5ec5d522db983ae6063 | 626516ef9f0d63a67a073eab4fc266fd6510e482 | refs/heads/master | 2022-07-05T22:19:38.050175 | 2019-07-10T09:05:31 | 2019-07-10T09:05:31 | 188,903,340 | 0 | 0 | null | 2022-06-21T22:05:10 | 2019-05-27T20:10:12 | Python | UTF-8 | Python | false | false | 2,101 | py | # Linear Regression
# Import Libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# load dataset
dataset = pd.read_csv('headbrain.csv')
# dropping ALL duplicate values
dataset.drop_duplicates(keep=False, inplace=True)
print("Dataset head: ", dataset.head())
print("Da... | [
"dipeshpal17@gmail.com"
] | dipeshpal17@gmail.com |
714834b479f46b3a9ea7d245e0736f11a96e7357 | 52efcaacf23e2345d09a1de61610a74df457057f | /auto_derby/__init__.py | 7b72bc0d8b1659b8117b05e1211ef6877a5160d5 | [
"MIT"
] | permissive | debi-derby/auto-derby | 78bc726e8243c8a25ddc13b364b7289f322caaaa | c2e5c138125cac6dc13dbd74045161ca03f6e5cf | refs/heads/master | 2023-09-03T09:03:35.305321 | 2021-11-02T16:18:45 | 2021-11-02T16:18:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | from ._config import config
from .plugin import Plugin
| [
"NateScarlet@Gmail.com"
] | NateScarlet@Gmail.com |
f7842958af9da420f4f2bc0eb30d92ea8dfc953b | 93ab21f992fdf8aec004959cb1c6519abfcca69b | /parameter_estimation_smallBox/parameter_estimation_sim/model_numpy_3D_element_betterFormation.py | 1b638ee956c3da2e9f835226e51025a0aedfd2a0 | [] | no_license | sbo5/irrigation | 1b232d8e2229a36cb2e9c7d5570f7a5ef025daec | 2a780260067b596180f558feb0ab7a6640eba17d | refs/heads/master | 2020-04-10T18:28:15.041926 | 2018-12-10T21:02:16 | 2018-12-10T21:02:16 | 161,205,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,126 | py | """
Created on Wed Oct 31 2018
@author: Song Bo (sbo@ualberta.ca)
This is a 3D Richards equation example simulating the small box.
ode is coded element by element
"""
from __future__ import (print_function, division)
from scipy import io, optimize, integrate
from numpy import diag, zeros, ones, dot, cop... | [
"sbo@ualberta.ca"
] | sbo@ualberta.ca |
aeb178754d3e11d4c0785eac82d396cb1a9efc7e | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/prime-big-431.py | 6dff84319c64e9671d5fbc210e23958e95c5317e | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | # Get the n-th prime starting from 2
def get_prime(n:int) -> int:
candidate:int = 2
found:int = 0
while True:
if is_prime(candidate):
found = found + 1
if found == n:
return candidate
candidate = candidate + 1
return 0 # Never happens
def is_prime... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
e395b5c154ed0bfe02ce059d10aa1b8d0d7f022e | 5f682f5852383ea443238266fe47bdec1850ef8b | /archive/sp18/a5/scenarios/1.py | 4075c82270c521b96ac97e76d485ab204de15109 | [
"BSD-3-Clause"
] | permissive | 0xcf/decal-labs | b1d851df0c55871aa12d668aed167b79d09c2ba2 | 3acb62af3eff4a1dbbe875e81ec1485d9d10c44b | refs/heads/master | 2023-04-08T22:05:03.974384 | 2023-03-22T04:39:51 | 2023-03-22T04:39:51 | 119,335,175 | 3 | 36 | BSD-3-Clause | 2023-03-22T04:39:52 | 2018-01-29T05:16:17 | Python | UTF-8 | Python | false | false | 260 | py | import lib.util as util
command = "ifdown {iface}"
routing_entries = util.get_default_routing_information()
default_entry = next(
(e for e in routing_entries if util.is_default_gateway(e)),
None
)
util.run(command.format(iface=default_entry.iface))
| [
"c2.tonyc2@gmail.com"
] | c2.tonyc2@gmail.com |
0d45fe0579332cf72bfb0617550ec23452aea3aa | a0c24087e281d33f73306f0399184cfc153ab9d5 | /factor.py | 844ad4437e1700649f4a2d4d7a9741a76ccafadb | [] | no_license | creasyw/project_euler | c94215886390cd2606c2c92af79008de4d67146f | b0584fb01ba2a255b2049a8cdc24fba98f46aff0 | refs/heads/master | 2021-11-19T10:39:48.946028 | 2021-10-12T03:59:34 | 2021-10-12T03:59:34 | 4,611,853 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | def factorize(n):
""" Provide factorization in a list """
import math
res = []
# iterate over all even numbers first.
while n % 2 == 0:
res.append(2)
n //= 2
# try odd numbers up to sqrt(n)
limit = math.sqrt(n+1)
i = 3
while i <= limit:
if n % i == 0:
... | [
"creasywuqiong@gmail.com"
] | creasywuqiong@gmail.com |
6cd6e5909a0368323c8af0e4fa9a44957c2f0f36 | 5636cb0c282d03e91a830d30cec3bd54c225bd3b | /P_05_AlgorithmiqueProgrammation/03_Tris/TD_01_Bulles/programmes/tri_bulles.py | 3cb89b551a595d40d3e8a838803994b50a2c38c8 | [] | no_license | xpessoles/Informatique | 24d4d05e871f0ac66b112eee6c51cfa6c78aea05 | 3cb4183647dc21e3acbcbe0231553a00e41e4e55 | refs/heads/master | 2023-08-30T21:10:56.788526 | 2021-01-26T20:57:51 | 2021-01-26T20:57:51 | 375,464,331 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import random
def tri_bulles_naif(l):
for i in range(0,len(l)-1):
for j in range(0,len(l)-1):
if l[j]>l[j+1]:
l[j],l[j+1]=l[j+1],l[j]
def tri_bulles(l):
for i in range(0,len(l)-1):
for j in range(0,len(l)-i-1):
if l[j]>l[j+1]:
l[j],l[j... | [
"xpessoles.ptsi@free.fr"
] | xpessoles.ptsi@free.fr |
d69be9222ffe98bad85ffbde662445a8ef068221 | 8a74d61f5fc523f633ba3a15fbf7560c7b1b4d22 | /homework_one/nth_fibonacii/nth_fibonacci.py | ebcb66255eae30a15ea2f959767079a9ae9695ab | [] | no_license | MariaKrusteva/HackBulgaria | 9bb9488b72cadb1fca4f0b3bdebf0dc8fd6c3bc6 | a753426c50464f97555e90c5b1b89fe81212bec7 | refs/heads/master | 2020-05-29T19:19:21.688183 | 2014-03-24T14:51:28 | 2014-03-24T14:51:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | def nth_fibonacci(n):
if n == 1:
return (1)
elif n == 2:
return (1)
else:
return nth_fibonacci(n-1) + nth_fibonacci(n-2)
| [
"mimito_68@abv.bg"
] | mimito_68@abv.bg |
052907234bd35f10b44602a79f07bbea1423c64b | 0485085be4c2078665e5cd3141c96835e003612b | /subset/build/lib/ember/__init__.py | 66bec60d989ad6d8141edbe948b0509ff0235886 | [] | no_license | 6r0k3d/ml-intro | d20e0ee6b25aa69656954197dc9d1336a628f2ce | 0ade59e3e2d67d342040fffc7cb2ec2274489e53 | refs/heads/master | 2020-04-17T19:42:46.771998 | 2019-02-25T19:48:48 | 2019-02-25T19:48:48 | 166,875,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,819 | py | # -*- coding: utf-8 -*-
import os
import json
import tqdm
import numpy as np
import pandas as pd
import lightgbm as lgb
import multiprocessing
from .features import PEFeatureExtractor
def raw_feature_iterator(file_paths):
"""
Yield raw feature strings from the inputed file paths
"""
for path in file_... | [
"6r0k3d@gmail.com"
] | 6r0k3d@gmail.com |
5b6cd49c625a8e8bae87cd66c435ae0c843751d7 | c287ab4324bbfdd67daa1df3327c3aafb4fd75a7 | /ValcanoModel.py | 5e35c98f8e97df3df2d2ccef64bc33aaaccf23d6 | [] | no_license | AkshayAltics/Python_Study | f8c4d316e45fc23defc1817768715cba31eeada4 | c6e85788026b44c086da497de26dcd0662b28509 | refs/heads/master | 2020-04-28T15:00:23.790316 | 2019-03-15T05:50:15 | 2019-03-15T05:50:15 | 175,356,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | '''
Created on 13-Mar-2019
@author: Admin
'''
import pandas
from geopy.geocoders import ArcGIS
import folium
df=pandas.read_csv("Volcanoes.txt")
lat=list(df["LAT"])
lon=list(df["LON"])
elev=list(df["ELEV"])
name=list(df["NAME"])
html = """
Volcano name:<br>
<a href="https://www.google.com/search?q=%%22%s%%22" tar... | [
"akshay@alticssystems.com"
] | akshay@alticssystems.com |
02462adad604ab5a51df03f9d2cf5bb78fe4fadc | 159deaaef070ee937b12412dddc9369563c2f0b4 | /Section 5/starter_code/tests/integration/models/test_item.py | 8665d35002f3bdc75cdb1082580a6c7e64c72588 | [] | no_license | kaloyansabchev/Udemy-Automated-Software-Testing-with-Python | b92067d0af92b3e86150f97c0f07ba6736c64311 | a954b09a88961b06bf3267a483df2522c4ec5447 | refs/heads/main | 2023-03-20T08:23:54.177674 | 2021-03-16T17:15:58 | 2021-03-16T17:15:58 | 344,233,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from models.item import ItemModel
from tests.base_test import BaseTest
class ItemTest(BaseTest):
def test_crud(self):
with self.app_context():
item = ItemModel('test', 19.99)
item.save_to_db()
self.assertIsNotNone(ItemModel.find_by_name('test'))
| [
"77458843+kaloyansabchev@users.noreply.github.com"
] | 77458843+kaloyansabchev@users.noreply.github.com |
28d548a1e5a496fcbd33a800f11e1a3da376399f | dba84ea46f15207025cd7f255df83516a144657b | /my_blog/migrations/0003_alter_comment_post.py | d8bc5aee945094e0995d2a225db83d749b16b469 | [] | no_license | Duvie728/CRUD-DJANGO-APPLICATION | cb151c6c04b366adee06deda957f9c655c243b8a | f47c7e676c6a2754b54335d1adebc997fadcc7c7 | refs/heads/main | 2023-05-04T11:08:02.726068 | 2021-05-21T15:44:34 | 2021-05-21T15:44:34 | 363,314,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # Generated by Django 3.2 on 2021-05-03 09:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('my_blog', '0002_comment'),
]
operations = [
migrations.AlterField(
model_name='comment',
... | [
"80975277+Duvie728@users.noreply.github.com"
] | 80975277+Duvie728@users.noreply.github.com |
652601604241c2e2ee692a47f47ced4f2df80ffb | ae2abae80805067bd31797a6572f468cb5de9a29 | /1/25.py | 9c12d77878448b48996e2141a94c5ec2cd6d5159 | [] | no_license | nikuzuki/I111_Python_samples | 9f3f8a16cce2ad28d84fa9e0ce9c93b710f7e0c6 | 42aec52e1680e6837845bfb2ff374d44f51092be | refs/heads/master | 2020-03-19T02:40:52.515465 | 2018-06-01T05:46:29 | 2018-06-01T05:46:29 | 135,650,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | # forループ - 繰り返し実行
# (2i - 1)^2のiが1~nの時の総和を計算
n = int(input()) # 標準入力で整数値nを代入
ans_sum = 0
for i in range(1, 2*n, 2): # 1から~2*nまで繰り返す、iは2ずつ増える
ans_sum = ans_sum + i * i
print(ans_sum)
| [
"nikuzuki29@gmail.com"
] | nikuzuki29@gmail.com |
1085ba45a8f735ea9ea5fa371a548f5de125ee1a | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/a3b8b55879a04bce804d9c199db55772.py | c6ce2afde394c9c920e45ec48d6cd4dde93f53ae | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 416 | py | __author__ = 'Ben'
# on every year that is evenly divisible by 4
# except every year that is evenly divisible by 100
# unless the year is also evenly divisible by 400
def is_leap_year(year):
if year % 4 == 0 and year % 100 == 0 and year % 400 == 0:
return True
if year % 4 == 0 and year % 100 == 0... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
2e75c1475e8e6feedd4344f417482e182a58a796 | f9ba9eccf8b7706a2d5e23512fe0897c4727177a | /02/code/get_next_RANDU_int.py | 63f28b5b495f09d413e82c65439d2c7d78453142 | [] | no_license | vincentmader/FSIM-exercises | 80be1654b9667585db49f787a1d02c1a9f40ad15 | 31f4ecd7fb747dee54edad08fd7629bb87012ba6 | refs/heads/master | 2023-03-01T06:45:27.085711 | 2021-02-10T23:06:13 | 2021-02-10T23:06:13 | 317,183,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from numpy import uint64, power
def main(previous_int):
# make sure all variables are 64-bit floats
previous_int = uint64(previous_int)
a = uint64(65539)
b = uint64(2)
c = uint64(31)
return (a * previous_int) % power(b, c)
| [
"vincent.mader@icloud.com"
] | vincent.mader@icloud.com |
56469db01ea249ddea32bb268aa7dbfd67e1ee3b | f51bbc406fc8ada180cc2ed6521314cf5857cd18 | /web/apps/lms/views.py | b6b069a7c5546e0b4b7e49fcf625dcb85499a537 | [
"MIT"
] | permissive | QuantEdu/quant | f54f0c80dd3ef1cec4108ad519eb2a16dfb40a6a | 41fa00cb0b8be6c5cf67b7a334d4340163255160 | refs/heads/master | 2021-07-15T05:52:37.923473 | 2018-11-27T06:09:50 | 2018-11-27T06:09:50 | 118,225,099 | 0 | 0 | MIT | 2018-11-23T08:15:32 | 2018-01-20T08:40:27 | HTML | UTF-8 | Python | false | false | 143 | py | # Django core
from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'lms/index.html')
| [
"harchenko.grape@gmail.com"
] | harchenko.grape@gmail.com |
9a6a545c995d5073bf0eabc225e82eafbdc90914 | 426ec0e464993949e594cf044fd206b53a7d9120 | /open_set.py | 54330d050c38c23d63ffa903bc9d19031b192d4e | [] | no_license | HubertTang/DeepMir | 05024bf4a8c535d9dd0bf77f97160dba8ebcb374 | cc2ec565fbcf1bcc2d6042ec776912d06c2aadc2 | refs/heads/master | 2020-06-12T03:55:36.682052 | 2019-07-08T07:33:11 | 2019-07-08T07:33:11 | 194,187,136 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,411 | py | import numpy as np
import pandas as pd
from Bio import SeqIO
import scipy.stats as stats
from keras.models import load_model
from keras import backend as K
import matplotlib.pyplot as plt
from matplotlib.ticker import FuncFormatter
plt.switch_backend('agg')
from sklearn.metrics import roc_curve, auc
import random
impor... | [
"yukpok.tong@gmail.com"
] | yukpok.tong@gmail.com |
b2f49412d10ffc208d7f6b5a2f250dbb861a886e | 9913fb6756240ede8b65ac2f59f8693570ac401e | /database/admin.py | e1b433ea6868382eef94103df3e704cee61a3cdc | [] | no_license | R-Prince/scrumb_epos | 2e8ededa86cdf6cd5e26a58dea0b827678cc7de0 | c68dfa479e739ee67fbe9df851cdbba0472509c7 | refs/heads/master | 2023-04-19T13:13:02.702763 | 2021-05-16T21:19:15 | 2021-05-16T21:19:15 | 367,925,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | from django.contrib import admin
from .models import Sku, SkuData
# Sku data Admin
class SkuDataAdminInline(admin.TabularInline):
model = SkuData
readonly_fields = ('sales_total',)
# Sku Admin
class SkuAdmin(admin.ModelAdmin):
inlines = (SkuDataAdminInline,)
fields = ('sku', 'total_units', 'sku_desc... | [
"reneprince93@icloud.com"
] | reneprince93@icloud.com |
bcd6703adf6b6efc47c805564e9a629a40f3d9f8 | 76755cc00a3163db22f2daf4c1be59b52b9ebea5 | /Experiments/BBB/thermometer.py | 371b0c01d316d4cfc5fbc808f3a66df534f2ae49 | [] | no_license | romanomatthew23/lavaLamp | f1722b16c3c2a575e769d2fa3994e0e57348c0ee | 02716ba8c47f3e2ba65df2fe104da47d7bcb28ab | refs/heads/master | 2021-01-11T02:10:33.610198 | 2016-11-29T02:42:23 | 2016-11-29T02:42:23 | 70,098,623 | 0 | 0 | null | 2016-11-11T20:53:01 | 2016-10-05T20:54:21 | Matlab | UTF-8 | Python | false | false | 512 | py | import Adafruit_BBIO.ADC as ADC
from time import sleep
ADC.setup()
delay = 1
while(True):
value = ADC.read("P9_40")
value = ADC.read("P9_40") #the library has a bug that requires sampling twice
voltage = value * 1.8 #1.8V
tempC = (voltage - 0.5) * 100 #convert from 10mv/deg with 500mV offset
tem... | [
"noreply@github.com"
] | romanomatthew23.noreply@github.com |
2c49c987c699a45efe461600eacfd0cc0c231961 | 6a4d58481d4c9709467dc799546807ef2c1720e6 | /Row data/Рейтинг регионов по численности среднего класса/to_csv.py | 5d7e73fdbe705387aca40ccad1a0a57ba7bd53a3 | [] | no_license | lnetw/Hackathon_project | 611aa6238d60b5ffd5fcf43c2f3deea027ce555d | fe0622c033f4557aebf060488e96937a814f40bb | refs/heads/master | 2023-04-22T04:50:36.307013 | 2020-12-14T12:09:15 | 2020-12-14T12:09:15 | 291,506,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | import pandas as pd
table = pd.DataFrame(data=None, index=None, columns=['Место',
'Регион',
'Доля семей, относящихся к среднему классу, %',
], dtype=None, copy=... | [
"max7ermak@gmail.com"
] | max7ermak@gmail.com |
8ebfda79d97103cc841ba79f1f71822028d38762 | ef525d588a520c9ddb0e22a749a975a0a71d92cd | /loss/soft_t_test_loss.py | 5f76ec93e46b9f95c7e40a3720a56861aecfccce | [] | no_license | 502463708/Microcalcification_Detection | a57cdc80430435e3fb810ff6d1f9b3c30174a0ee | 0f59ab8c614141df3bcea42704b2ee940c43038d | refs/heads/master | 2022-03-27T19:01:22.283957 | 2020-01-07T11:55:07 | 2020-01-07T11:55:07 | 206,355,880 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,959 | py | """
This file implements another version of t-test loss which is derived from the original version of implemented in
t_test_loss_v3.py. This version implements a novel method to pick up soft positive pixels
"""
import numpy as np
import torch
import torch.nn as nn
class SoftTTestLoss(nn.Module):
def __init__(self... | [
"502463708@qq.com"
] | 502463708@qq.com |
070e02d77bd4b1bfbabfa3a0b3c1e86dde6faa0f | 6e857a4ba164cdbd63a11f1e3a7085c9fae2e5d9 | /pdf_server_tests.py | 74d1e91c8b85eca2824e01620b0f6a7390680e49 | [] | no_license | CT-Data-Collaborative/reports | d95fb7c031c96ec30b9a103f6531f1fea5331004 | 834b82f7c17b6b4ff963e07f8a41dd87f2d43689 | refs/heads/master | 2021-01-17T05:12:09.900976 | 2020-01-14T15:37:43 | 2020-01-14T15:37:43 | 39,834,756 | 2 | 0 | null | 2020-03-13T20:39:23 | 2015-07-28T13:14:42 | JavaScript | UTF-8 | Python | false | false | 3,191 | py | ## Imports
# the flask application we're testing
import pdf_server
# unittest package
import unittest
# os file and pathing utilities
from os import path, mkdir, unlink, write, close, path as path
# temp file creation
from tempfile import mkstemp
# file comparing tool
import filecmp
##
class TownProfileTest(unittest.T... | [
"brendan.james.swiniarski@gmail.com"
] | brendan.james.swiniarski@gmail.com |
288fe026c2871de7b88efa1d019ca2cc8cd537b6 | a67e55cee1a3d610939efe5794320d64784436b0 | /Sum of Primes/main.py | 8aca8aacbce132c070f9dfddb0d4f15b61db4ed8 | [] | no_license | AhmedFat7y/codeeval-challenges | ad90163d4a147532a60ae3d8b74c73c1b652228e | e1c49e1a067f7c623fda87d8fd9f0f86ff416b90 | refs/heads/master | 2020-02-26T17:05:01.242591 | 2016-10-02T15:14:10 | 2016-10-02T15:14:10 | 69,395,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | result = 1 + 2 + 3
last_prime = 3
# for i in range(5, 2, 1000):
| [
"ahmed.abdel-wahab@robustastudio.com"
] | ahmed.abdel-wahab@robustastudio.com |
8f42d63d09594a9151bdfc9600cf61be6e19b38d | 11490d66dc07a405862a9bc44a762f70a3764d41 | /Checkbook.py | 2d154945291199a66ae6aec1cfac7ab746a9a40f | [] | no_license | amkirby/Checkbook | 46efb6c5d78145842e9f0915850f486f17581102 | aed67af1d63a08a6f08d56768a08012ac928b4f3 | refs/heads/master | 2023-09-01T09:18:16.483629 | 2023-05-10T15:43:52 | 2023-05-10T15:43:52 | 43,181,688 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,326 | py | import locale
from typing import Any, Callable, List, Optional
import CheckbookTransaction as CBT
import ConfigurationProcessor as Conf
from DateProcessor import DateProcessor
conf = Conf.ConfigurationProcessor()
ROW_SEP = '\n' + (conf.get_property("HLINE_CHAR") * (sum(conf.get_property("SIZE_LIST")) + len(conf.get_... | [
"17akirby@gmail.com"
] | 17akirby@gmail.com |
0a440679fed74487e89e74758aff6e6101b05743 | 9024050ed26a4b3e712a9da64ee3b53d029f1c2d | /blog/models.py | 8666c8409d956537a0413c46b2d2818bcf767a6a | [] | no_license | eyurvati/my-first-blog | 8674244086f4ac11101d7420534c7cfe18aaa851 | 333c69c34a8a3391b1a8ea7aa901430524153003 | refs/heads/master | 2021-01-22T21:07:06.234536 | 2017-03-18T16:22:04 | 2017-03-18T16:22:04 | 85,394,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(default=timezone.now)
published_date = models.DateTimeField(blank=True, null=True)... | [
"eyurvati@gmail.com"
] | eyurvati@gmail.com |
feaa11ac9c9654dcac5b82c4723fcf59931647f2 | ce60f76c6ad4c48fd6182240b302ee057809cc66 | /extra/jobqueue/dispatcher.py | a9f043e8fc7ee4f9dd606e8201f33c3083a2c6dd | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | bumps/bumps | 8ae10e8d15c0aa64e0bab6e00e7fabb2ca1b0860 | 2594e69567d534b434dc0eae727b77fdeff411d4 | refs/heads/master | 2023-08-22T17:56:49.987181 | 2023-07-26T14:22:23 | 2023-07-26T14:22:23 | 2,799,064 | 48 | 28 | NOASSERTION | 2023-07-26T14:22:24 | 2011-11-17T22:22:02 | Python | UTF-8 | Python | false | false | 6,471 | py |
from datetime import datetime, timedelta
import logging
from sqlalchemy import and_, or_, func, select
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm.exc import NoResultFound
from . import runjob, store, db, notify
from .db import Job, ActiveJob
class Scheduler(object):
def __init__(self):
... | [
"paul.kienzle@nist.gov"
] | paul.kienzle@nist.gov |
c68970ff0fc2d6862fba3d855d35206ab5274279 | a308557b463b03d7031d49548ba8d98885325871 | /十进制转二进制.py | 85f3cb2a4ad9e98426312361404c96156ac88569 | [] | no_license | LittleWhaleRx/python_files | 835d74ebdb2fc142209f492f4101b1ac6db69863 | a4c5a6600158a032511128e219740798330971db | refs/heads/master | 2020-04-02T03:46:48.932974 | 2018-11-01T05:57:00 | 2018-11-01T05:57:00 | 153,983,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | def gcd(x):
if x == 1:
print(x,end = ' ')
else:
y = x%2
gcd(x//2)
print(y, end=' ')
x = int(input('请输入要转换成二进制的十进制数字:'))
print('转换为二进制为:',end = ' ')
gcd(x) | [
"576440764@qq.com"
] | 576440764@qq.com |
eebbab8cc0fe982d9573dbef8fc19af5181a7c48 | 9b77f1e31d5901924431a2a3164312cc346bde4f | /ADI_MINI_PROJECT/blog/views.py | 77aca8b4054fcba1c1dd859c800aa3a307556c0c | [] | no_license | Adi19471/Djnago_Code-Daily | c2184bf21db5c8d4b3c4098fbd593e4949375ae8 | 03b1b70d3e187fe85eb24e88b7ef3391b14aa98c | refs/heads/master | 2023-08-14T14:36:36.144243 | 2021-09-20T12:52:46 | 2021-09-20T12:52:46 | 375,690,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py | from django.shortcuts import render,HttpResponseRedirect
from .forms import SignupForm,LoginForm,PostForm
from django.contrib import messages
from django.contrib.auth import authenticate,login,logout
from .models import Post
# home page
def home(request):
posts = Post.objects.all()
return render(request, ... | [
"akumatha@gmail.com"
] | akumatha@gmail.com |
3184b1daec047b0a000f90524e73ffa75afdad91 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/k3t.py | 9810316e4d55d2272be6a2e8490993ef2354650e | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
9dc494e27d3e05e6996225243aa0e6e6a642219a | 6ca8515012d063cff552258389ca51b5cc25141d | /Analysis/T_analysis/struc/chi_ang(sin theta).py | 490cf4d6f12d693b251279130fcb331d88856633 | [] | no_license | shockingpants/Scripts_MD | db660d61cdd6af4646d5fbe3c4a19990ac95f4f2 | d1bafc175b0cdbf6e4dce83c2dd6a1147e448d88 | refs/heads/master | 2021-01-01T18:33:21.878879 | 2012-10-03T04:40:00 | 2012-10-03T04:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,369 | py | #!/opt/local/bin/python2.7
# chi_ang.py
# Extracts chi_ang from gromacs file
#=============== MODULES ======================
##{{{
#----------------- Suppress stdout --------------------
import sys
class NullDevice():
def write(self, s):
pass
ori = sys.stdout # keep a reference to STDOUT
sys.stdout = Null... | [
"shockingpants@hotmail.com"
] | shockingpants@hotmail.com |
52a6c0f1d64c388941cf72c08bfda36968ed4e20 | b1695448cab31b976e17b11e085d90315cb1e5d6 | /UCLA/data_mining_cs145/satisfactory/Random Forest/rf.py | dde5d7206ffee2354b4fb9b0a010379c1ccb5c30 | [] | no_license | ehtk0502/my_files | be9bc1d0a32ba82d8b0cf18b486bd6d372322412 | 516baec4fd2f467dca611fea42c16f376873c7d7 | refs/heads/master | 2023-01-24T06:05:11.116602 | 2020-05-22T07:38:51 | 2020-05-22T07:38:51 | 170,579,241 | 0 | 0 | null | 2023-01-24T01:29:00 | 2019-02-13T21:03:32 | Jupyter Notebook | UTF-8 | Python | false | false | 5,566 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import accuracy_score
from sklearn.metrics import mean_squared_error
# Features we're using
# HEADERS = ["attributes_Alcohol", "attributes_casual", "attri... | [
"ehtk0502@gmail.com"
] | ehtk0502@gmail.com |
35a9a876dc10d8de63623e6d3d37890bb3842900 | bea3febeda4c0688dfbb2db584ab4f7d710040e0 | /django/cbv/person/views.py | c954514b57714390b9b1210f810dd5c51ab31499 | [] | no_license | airpong/TIL-c9 | c471ac73e23716cf677ba590dd6099e584c42883 | 069cc53820a09cd9787765ad41ba7e792dc342b5 | refs/heads/master | 2022-12-12T22:26:23.147651 | 2019-06-27T08:24:44 | 2019-06-27T08:24:44 | 166,777,129 | 0 | 0 | null | 2022-11-22T03:46:57 | 2019-01-21T08:34:01 | Python | UTF-8 | Python | false | false | 999 | py | from django.shortcuts import render,redirect
from .models import Person
from .forms import PersonForm
from django.views.generic import ListView,CreateView
from django.contrib.auth.mixins import LoginRequiredMixin
# Create your views here.
# def list(request):
# people = Person.objects.all()
# return render(requ... | [
"giponge@gmail.com"
] | giponge@gmail.com |
1bea9bc3616fe721a74dbcd53630aec212558032 | 8420f7c680f1b3b66d7f903b9986fdd533ce63d9 | /examples/example_05_custom_parameter.py | ac1416041fcbbc99d18abbfcf8370ba211ebd2c4 | [
"BSD-3-Clause"
] | permissive | ilonajulczuk/pypet | 9cef890cc856a769441aef983e4367fee56d1d12 | 99dd37243c30178d3dc02798dcc6aa9320b6c213 | refs/heads/master | 2020-12-26T11:21:16.691896 | 2014-04-16T07:53:37 | 2014-04-16T07:53:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,240 | py | __author__ = 'Robert Meyer'
import numpy as np
import inspect
from pypet.environment import Environment
from pypet.parameter import Parameter, ArrayParameter
from pypet.trajectory import Trajectory
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
# Here we will see how we can write our own cus... | [
"robert.meyer@ni.tu-berlin.de"
] | robert.meyer@ni.tu-berlin.de |
18f7fd778281764630b6d87c06f297330644c9a1 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_17/models/reference_with_type.py | 686da10b71d57d6ece1d116f5a7668ce8c35aa23 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,557 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.17
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
08195f511eddf027330cb04042e386639b04923b | 1ff701332e1518a6b184da5c64e72c25e3128525 | /python-testsuite/common/read_helper.py | 7ed4531188db71c7e9023c8dde64b2c89b74bb9e | [
"MIT"
] | permissive | enyx-opensource/nxaccess-hls-framework | df1e0e9e30958206c6549ad0dc508a791a5431ca | f001c596bbda7ce216e7db9ed3e93131b2a3a308 | refs/heads/master | 2022-03-07T10:45:01.481637 | 2022-02-09T13:53:05 | 2022-02-09T13:53:05 | 185,207,033 | 5 | 6 | NOASSERTION | 2022-02-09T13:47:50 | 2019-05-06T13:54:33 | C++ | UTF-8 | Python | false | false | 3,374 | py | from threading import Thread
from time import sleep
from enum import IntEnum
from common.wait import waitFor
from enyx_oe import DataBuffer
from enyx_oe import read as swig_read
from enyx_oe import AsyncReader as swig_AsyncReader
from enyx_oe import CollectionMetadata, BaseMessage, FailedMessage
from enyx_oe import TC... | [
"antoine.bernardeau@enyx.fr"
] | antoine.bernardeau@enyx.fr |
0f7ec680721030d047f06b1b94341a7c982454b5 | 402ef712e2d98bb616e64eb7d57145a643ad61d7 | /backend/mobile_testing_app__15569/wsgi.py | 7832e8909382ddeb029a4fbf984861ab927942fb | [] | no_license | crowdbotics-apps/mobile-testing-app--15569 | ce5299c1dc7b5ebf531043dbe7614c7206880ce0 | 5c6e5f045a9ba80592e81584ac7c88ea53eabdfa | refs/heads/master | 2023-01-24T21:54:07.548231 | 2020-11-24T06:01:05 | 2020-11-24T06:01:05 | 315,533,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
WSGI config for mobile_testing_app__15569 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d4d527b421b1ffb54d22cc8f23e2769a3893d095 | be33921cf65768da98eb4d1e8dd885b2730308dd | /Test/Hello.py | 5043a771613217bb7268c79601f9677e93cdac94 | [] | no_license | mohsin-aslam/Python-Docs-Files | 1b3ed6c7958f44a56bb05bbd89cded8a3f402439 | 30009605d14cfed65436ca34a883b6e3f5fde432 | refs/heads/master | 2020-04-02T17:24:23.594678 | 2018-10-25T11:13:09 | 2018-10-25T11:13:09 | 154,656,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | import numpy as np
abc = np.array([556,213,312,212,543])
c = abc.std()
d= abc.var()
import nltk as nt
tokens = nt.word_tokenize('It is a chair. my name is Mohsin Aslam. I went thererere "ssas LOL Pakistan:)"')
tagged = nt.pos_tag(tokens)
sentiment = nt.sent_tokenize('It is a chair. my name is yasir . I went therer... | [
"mohsin.alsam@github.com"
] | mohsin.alsam@github.com |
8ef1c4074a8008b323b7858f94bd6e86f09a5fc3 | 0fa4f25759b6ec123b297775bfe5310be5b8637a | /GetTranscript.py | a88c0c1a0d32478e02b5c8ddf3fd47ef18b07f82 | [
"MIT"
] | permissive | YingRushi-mac/Ahnu | 115eabcb0665c53d414ed622473312857c3dcfc5 | 841cdec44ac9a323d6ffabcb643ed7b65e864dc6 | refs/heads/master | 2023-03-17T16:02:32.855369 | 2018-05-13T10:05:16 | 2018-05-13T10:05:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | """
自己查成绩实在是麻烦,一次次的查,一个爬虫解决
Author: Aber Sheeran
Time: 2017-12-24
"""
from Base import Base
class GetTheFuckTranscripts(Base):
"""获取期末成绩"""
def get_transcripts(self, year, semester):
"""获取特定学年特定学期的成绩"""
html = self.get_page("http://jwgl.ahnu.edu.cn/query/cjquery/index?action=ok&xkxn=%s&xkxq=%s... | [
"1191170766@qq.com"
] | 1191170766@qq.com |
019f0fafc2964e1fc09c65a2372b3c0bff47223d | ba47b609ca10ce5cf576297973a000271d77fec5 | /Lab 01/q3.py | 998d15fc86338a56e202227c14e24c9e23c6a2c3 | [] | no_license | saisandeep2484/SciCompLab | bcaf27b44c269848c0eec57cf3dd98e6dc2f51ad | 87e797fd85799045ef7cd5b862f945f1d780de3f | refs/heads/main | 2023-04-17T22:09:31.494379 | 2021-04-26T10:52:04 | 2021-04-26T10:52:04 | 361,713,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
print("")
print("-------------q3-------------")
print("")
def f(x):
return (-math.sin(x)+(x/2))
def Df(x):
return (-math.cos(x)+(1/2))
def BisectionMethod():
print("Method Used : Bisection Method")
a = (math.pi)/2
... | [
"noreply@github.com"
] | saisandeep2484.noreply@github.com |
235f40b873b377065055784a18c708cd33c11a20 | dbdb9b2102b25808f0363d50ff85626921b1c70a | /rest_api_3_product/settings.py | baee96ac579b1af253e75334bad35faaa15bf71c | [] | no_license | vinodkumar96/rest_api_3_product | dee834e704c25c812ba94a682641ab7f9bcabd44 | b0be03b80d7b59ef4d81e02f977c5ed1df862709 | refs/heads/master | 2020-07-04T20:38:15.552542 | 2019-08-14T19:08:09 | 2019-08-14T19:08:09 | 202,409,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Django settings for rest_api_3_product project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
i... | [
"vinodkumaryv96@gmail.com"
] | vinodkumaryv96@gmail.com |
ca406833c0c73a83ba691135a58ff4bc5566f385 | 3a5b6b0c84256ca497e88b7bfddb6fb0cf273e5c | /main.py | 73072fc251e020664bef0247895a6e5cbe4c8e6c | [] | no_license | JohnSchaumleffel/build-a-blog | 09a868b03bd007c1cbc439eaf7e2238e68f75932 | 2163113c8b6af3f2c71adf8a7b5f26e19fd59b56 | refs/heads/master | 2020-03-31T15:39:15.344154 | 2018-10-14T15:09:25 | 2018-10-14T15:09:25 | 152,345,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | from flask import Flask, request, redirect, render_template, session, flash
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['DEBUG'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://build-a-blog:password@localhost:8889/build-a-blog'
app.config['SQLALCHEMY_ECHO'] = True
db = SQLA... | [
"johnschaumleffel@gmail.com"
] | johnschaumleffel@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.