blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c3a204b93156cbcd8e27787d9c7665ae8196a3c3 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/pirates/instance/DistributedTeleportMgr.py | b9c0736e2218759b8f8a6859c8f75acb8541aa1b | [] | no_license | BrandonAlex/Pirates-Online-Retribution | 7f881a64ec74e595aaf62e78a39375d2d51f4d2e | 980b7448f798e255eecfb6bd2ebb67b299b27dd7 | refs/heads/master | 2020-04-02T14:22:28.626453 | 2018-10-24T15:33:17 | 2018-10-24T15:33:17 | 154,521,816 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 31,217 | py | from pandac.PandaModules import *
from direct.task import Task
from direct.distributed import DistributedObject
from pirates.piratesbase import PiratesGlobals
from pirates.world import ZoneLOD
from direct.showbase.PythonUtil import report
from otp.otpbase import OTPLocalizer
from pirates.piratesbase import PLocalizer
f... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
767c75ec5475f49c3ec0b2ee8035aef2f54e30b0 | 6b1d152e7b236b97819b058e303829e3db2b19be | /prac_02/word_generator.py | 7aafa8f1c5b30c4a6eb106b64d6e85386cc92c87 | [] | no_license | Linda-Kirk/cp1404practicals | 4bbc03fc3fdf497b24165129a3d8aaa37c7fb1ef | d40316a8349a01478124f16be35bdfff53623698 | refs/heads/master | 2020-07-05T12:58:21.816450 | 2019-10-29T00:17:46 | 2019-10-29T00:17:46 | 202,653,504 | 0 | 0 | null | 2019-09-23T08:25:42 | 2019-08-16T03:40:48 | Python | UTF-8 | Python | false | false | 524 | py | """
CP1404/CP5632 - Practical
Random word generator - based on format of words
Another way to get just consonants would be to use string.ascii_lowercase
(all letters) and remove the vowels.
"""
import random
VOWELS = "aeiou"
CONSONANTS = "bcdfghjklmnpqrstvwxyz"
word_format = input("Enter the word format e.g. 'ccvcvv... | [
"linda.kirk@my.jcu.edu.au"
] | linda.kirk@my.jcu.edu.au |
bd0caf3452ccfe76d5df1c8d98d8f0cb9a1b329a | 384d0be5ac54b306b945cf38c10d9b0a44c975ea | /stack/keystone/keystone/logic/types/biller.py | 00a135b11cbea421c4b431b0ff3dd0914cf9dfc5 | [
"Apache-2.0"
] | permissive | ashokcse/openstack-bill | 05ae313637b3cfecba946d2a9b32e8c7609fc721 | 1a3d7575d4b341f64fa1764ed47e47a7504a9bcc | refs/heads/master | 2021-01-18T14:05:24.696165 | 2012-09-12T11:29:20 | 2012-09-12T11:29:20 | 5,424,267 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 19,643 | py | # Copyright (c) 2010-2011 OpenStack, 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 ... | [
"ashokcse@live.com"
] | ashokcse@live.com |
acea4cdf9cddd739a1daddc42cb820e70fe0e59c | 3a18085d011b2dfc2c15ca6eb10838c604ef8a2c | /transform_web_traffic.py | 60b01996ed53bf8eaf3b2b944629e994c5dd01a9 | [] | no_license | ericness/when_i_work_code_challenge | 049f986df9cc9c1de29f502f006e138e119bac70 | 7e67505ebc451138327effd51ec967f200ee9d0a | refs/heads/master | 2021-07-24T06:42:34.133140 | 2017-11-02T20:25:05 | 2017-11-02T20:25:05 | 109,053,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,285 | py | import argparse
import io
import re
import pandas as pd
import boto3
import botocore
# parse command args to set run configuration
parser = argparse.ArgumentParser(description=('Transform raw web traffic data '
'into a pivoted table of aggregated time per '
... | [
"ericness@UdemySparkCourse.fpcodpc5vfjurkxi5gs5htsn0d.gx.internal.cloudapp.net"
] | ericness@UdemySparkCourse.fpcodpc5vfjurkxi5gs5htsn0d.gx.internal.cloudapp.net |
bdf4f576aceba31d7d274c2ec7efd61e1f4a337c | 5d48aba44824ff9b9ae7e3616df10aad323c260e | /bfs/127.word_ladder.py | 0e02bffe5c4014c13978aea31a08fd842253ceea | [] | no_license | eric496/leetcode.py | 37eab98a68d6d3417780230f4b5a840f6d4bd2a6 | 32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17 | refs/heads/master | 2021-07-25T11:08:36.776720 | 2021-07-01T15:49:31 | 2021-07-01T15:49:31 | 139,770,188 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | """
Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that:
Only one letter can be changed at a time.
Each transformed word must exist in the word list. Note that beginWord is not a transformed word.
Note:
Return 0... | [
"eric.mlengineer@gmail.com"
] | eric.mlengineer@gmail.com |
fb37d57c90646fad12d0114c9dd4dd83f5fc02e5 | 0edfa72a67e2b0f0437a9868a9b08ddf22f9fa65 | /venv/Scripts/pip-script.py | bb75b067804392863229bfd405d6645c02f475c1 | [] | no_license | neesmusuns/cracker | 2bc54c61ba19d8547774cd2864aec3ecd22d1469 | 376faf6d5b22b49a68ffdbc5b4b914128b1d5bf0 | refs/heads/master | 2021-02-25T21:36:19.940427 | 2020-03-12T12:34:01 | 2020-03-12T12:34:01 | 245,150,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | #!"C:\Users\Irma Leinerte\Documents\2020spring\systems_security\verkefni1\cracker\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(... | [
"31275615+neesmusuns@users.noreply.github.com"
] | 31275615+neesmusuns@users.noreply.github.com |
2e54441258e9589bbbcf8cfd910724f80e61d746 | 966d68245763f12d950efbc39928cbb14655b9d1 | /backend/textManipulation/summarization.py | 05f35fdc3ae8da0ba8c1c697fe038840a8d6ad96 | [] | no_license | wcooper90/ivyhacks2020 | ebd1352465eb364d802f7673af06ffa407758f1f | 684d964a5a352cd78faf11df91c3b1bc08355ee8 | refs/heads/main | 2022-12-25T00:14:34.213824 | 2020-10-04T17:57:53 | 2020-10-04T17:57:53 | 301,185,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | py | from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from sumy.parsers.html import HtmlParser
from sumy.parsers.plaintext import PlaintextParser
from sumy.nlp.tokenizers import Tokenizer
from sumy.summarizers.lsa import LsaSummarizer as Summarizer
from sumy.nl... | [
"wcooperhockey@gmail.com"
] | wcooperhockey@gmail.com |
09681c3b1e3c1c5978a17a6fe55b3707c490dd3e | 0f58fc4ef95b88bdc12feb3fae6f193d3427d322 | /algorithm_loader.py | 52aacde3de169fb033712d462f6b0eb2a6aa0f24 | [] | no_license | makmanalp/samplerun | 0f0869a0d7f8ccf698cc2f55b3aa824d51e0a971 | 97a68223e76f661ccff998e957f66f9cafdadde6 | refs/heads/master | 2021-03-12T23:56:50.266647 | 2015-01-06T22:41:46 | 2015-01-06T22:41:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | import pytest
import os
import imp
import inspect
from base_algorithm import Algorithm
def load_plugins(plugin_folder):
plugins = {}
cwd = os.path.abspath(os.path.curdir)
plugin_folder = os.path.join(cwd, plugin_folder)
folders = [x for x in os.listdir(plugin_folder)
if os.path.isdir(... | [
"mali@akmanalp.com"
] | mali@akmanalp.com |
aa98278bf982510809e97f209972b9d3ffecdc03 | 4b191334ac835f99236d51ab6a7857f968250df2 | /utils/add_ipv6.py | bb66dc7c153fcc6c478e5b53b9b056124f043392 | [] | no_license | soutzis/Janus-IPv6 | bfdd1e89260a9d5faf9796e9da836d96fbfc607b | a1079a1f3283bc193597b40f90e998a149ae2781 | refs/heads/master | 2021-07-12T17:55:05.936232 | 2020-06-24T14:30:53 | 2020-06-24T14:30:53 | 168,965,023 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | #!/usr/bin/python3.6
from subprocess import call
import argparse
'''
For simplicity, this file is also copied in "usr/local/bin", so that it can be run from any directory
by simply calling: add_ipv6 <hostname> <ipv6>.
The file in "usr/local/bin" is renamed to 'add_ipv6' (no ".py" file extension)
'''
add_ipv6_cmd = ... | [
"noreply@github.com"
] | soutzis.noreply@github.com |
d3238509ecaea8d3e0a51a8943890b4578e5a8da | e3d447a81c5462d2d14201f2bc6b82cdcbbca51a | /chapter10/c10_6_addition.py | af50d5e3378247cb7a726c51df05b727370cecc4 | [] | no_license | barcern/python-crash-course | f6026f13f75ecddc7806711d65bc53cb88e24496 | 8b55775c9f0ed49444becb35b8d529620537fa54 | refs/heads/master | 2023-04-19T17:28:44.342022 | 2021-02-07T23:51:06 | 2021-02-07T23:51:06 | 257,201,280 | 2 | 3 | null | 2021-05-12T17:35:56 | 2020-04-20T07:14:28 | Python | UTF-8 | Python | false | false | 2,214 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 26 12:27:25 2020
@author: barbora
One common problem when prompting for numerical input occurs when people
provide text instead of numbers. When you try to convert the input to an int,
you'll get a ValueError. Write a program that prompts for two numbers.
Add them toge... | [
"bcernakova01@gmail.com"
] | bcernakova01@gmail.com |
562d159153258105237dee275a61136e7c194853 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.3/django/contrib/localflavor/generic/forms.py | b8a111a6b5f57fa81698f292b86258925d561b4a | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.3/django/contrib/localflavor/generic/forms.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
f2e46158afebdf251132475b4a4284e808cdffbb | 7205218c520b405f01d5fa1ae5728c9f3071f04d | /Exercises - Module III/EX108 - Formatando moeda().py | 49c953dc8e09077c0b5a0a9b8b4069bbd79bf6f3 | [] | no_license | talesritz/Learning-Python---Guanabara-classes | 164b22ca27158b41e851152257750ac5fcd0cecc | 273a06037e3b283a4e78a3f105c0828ae70bfab0 | refs/heads/master | 2020-05-19T23:43:12.007950 | 2019-05-06T21:44:44 | 2019-05-06T21:44:44 | 185,273,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # Adapte o código do desafio 107, criando uma função adicional chamada moeda() que consiga mostrar os valores como um valor monetário formatado.
from uteis import formata, moedab, validacao
#Versão necessária para o ex108
formata.cabecalho('EX108 - Formatando Moeda()')
tmp = validacao.leiaInt('Digite o preç... | [
"noreply@github.com"
] | talesritz.noreply@github.com |
02185c94d3eb3432880096e3dc2c60d9712cb52f | b78849c6afe4e2a13e464ee21c3e31758d5d17de | /imagedownloader Web_scraping with gui.py | 8065b39c29080438704e3582843739cb9ff955a5 | [] | no_license | kevalmahajan/Python-Projects | 7c9184d91f1506f87ceb9157d88214b3547f5c17 | 91379c4c159ee30019c6e46164374994855d30b1 | refs/heads/master | 2023-02-14T15:46:52.142843 | 2020-12-23T05:53:12 | 2020-12-23T05:53:12 | 280,148,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,122 | py | import os
import requests # to sent GET requests
from bs4 import BeautifulSoup # to parse HTML
from tkinter import *
import tkinter as tk
import traceback
from tkinter import messagebox as m_box
yahoo_img = \
'https://in.images.search.yahoo.com/search/images;_ylt=AwrwJSJD2Q1fTlkATCK8HAx.;_ylc=X1MDMjExNDcy... | [
"noreply@github.com"
] | kevalmahajan.noreply@github.com |
88850f9c8b1aef4142ac6d51fb5ce192a8482057 | be1e8444482e40df5d02d57964f61cfbd9249f13 | /Django-0.90/django/core/db/backends/postgresql.py | b1b2d9cb52d964e5d1fd6012266dabed23eedd4c | [
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | tungvx/deploy | 9946d4350f5fbc5da25d45505b75384fd40e6088 | 9e1917c6c645b4ce0efe115b0da76027d4bc634c | refs/heads/master | 2021-01-02T09:08:45.691746 | 2011-11-12T19:44:48 | 2011-11-12T19:44:48 | 2,763,145 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,276 | py | """
PostgreSQL database backend for Django.
Requires psycopg 1: http://initd.org/projects/psycopg1
"""
from django.core.db import base, typecasts
import psycopg as Database
DatabaseError = Database.DatabaseError
class DatabaseWrapper:
def __init__(self):
self.connection = None
self.queries = []
... | [
"toilatung90@gmail.com"
] | toilatung90@gmail.com |
2cd97cb8b0b9c6e273657a730b6c9cceac772bfc | 694760b87cbf4b72eb2cfc554fe3818f666c81a0 | /source code/hello-world.py | 327a22d8d96d42ef4d2e35959436a7d662703bee | [] | no_license | vipermax/dummy-project | a5aac2860849abf46efdbcddd9a35c361aeb9481 | dd0047fac7ad53e428b1ff7b208d319d79efa853 | refs/heads/master | 2021-01-10T01:30:36.137587 | 2016-03-01T08:58:58 | 2016-03-01T08:58:58 | 52,859,628 | 0 | 0 | null | 2016-03-01T08:57:32 | 2016-03-01T08:09:18 | Python | UTF-8 | Python | false | false | 280 | py | print "Hello World!"
print "Hello Again and again"
print "I like typing this."
print "This is a lot of fun."
print 'Yay! Printing.'
print "I'd much rather you 'not'."
print 'I "said" do not touch this.'
Print "Hey, here is something new!"
print "some udpdate from master branch"
| [
"vipermax@gmail.com"
] | vipermax@gmail.com |
e47f21b19c216ae807692a673b8184880a5aa25d | 51761bbf3e42543687664291dd3a7d3ae9a90fd2 | /utils.py | 68c6c6eba79327b7c718fd4655159cd4dda8850b | [] | no_license | MarcelaBarella/luizalabs_challenge | 03612291e8f89875c1572eb301235bc5b6f7948d | 12b977b6836222bcd7a8d8464a7b840425d2afe2 | refs/heads/master | 2020-03-20T11:43:29.243943 | 2019-11-22T14:59:50 | 2019-11-22T14:59:50 | 137,410,494 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from datetime import datetime
def str_to_datetime(date):
if type(date) != str:
return date
return datetime.strptime(date, '%d/%m/%Y %H:%M')
| [
"marcela.barella@hotmail.com"
] | marcela.barella@hotmail.com |
fb535040a409105773f5e30f68bd636c8b3931a2 | 307d6435a8da159eede9c233dc14bce29d8af11f | /src/fewer_than_15_siblings.py | 0450dcc4a5c0f7321f333cc894452d9854905de2 | [] | no_license | Ahsan45/SSW-CS555 | 7d82d0f039bfb31cbb775718debfde02615a8ce1 | fc4808884a99d48ff29f122d67c197061102c57c | refs/heads/master | 2021-01-25T06:30:25.675681 | 2017-08-03T00:56:58 | 2017-08-03T00:56:58 | 93,584,540 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | #Erik Lim
#SSW 555 Agile Methods for Software Development
'''Module for checking if mthere are fewer than 15 siblings in a family'''
from utils import date_first
def fewer_than_15_siblings(fam):
if 'CHIL' in fam:
return len(fam['CHIL']) < 15
return True | [
"noreply@github.com"
] | Ahsan45.noreply@github.com |
59429ee5ee8ca7e0edd5fe634b9e3e46f97d9c73 | 9bf9ba2ff40e63e87efc67d0d90416b3e839ca3f | /TwoPlayerTicTacToe2.py | 1976094f651cf9f5f5bca70443c4c2911928cc3e | [] | no_license | Muhammad-Ahmed-Mansoor/Python-tic-tac-toe | 243353dda52cad2256633cd979fe989c8fdc5f13 | 79d3619aea057bafab015498de3ae85418cf7889 | refs/heads/master | 2022-11-13T21:57:52.504479 | 2020-07-07T15:48:47 | 2020-07-07T15:48:47 | 277,858,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,952 | py | import os;
def boardPrint(): #displays the board
global board
print('\n') #two blank lines for clarity's sake
for i in [7,8,9,4,5,6,1,2,3]:#to match keyboard numpad
if i % 3 !=0:#to avoid '|' at the end of a row
print(board[i],'|',end=' ')
else: #to insert new ... | [
"noreply@github.com"
] | Muhammad-Ahmed-Mansoor.noreply@github.com |
a13fe0f96eed0b4b55663eed124b9bba9ead6cec | 51ea0825d013e4205a74e288a95cec86b379e6ef | /augmentations.py | 01b80e72b84a38d252970a0cf0355501a1d6c22c | [] | no_license | lucaslu1987/faceboxes | 79d6e1f4d34087825cf81d76a4401e0bc40e77e1 | 7d3a459ad7e98c791ce9ad7b9058329f0663f4e4 | refs/heads/master | 2020-03-29T22:06:24.612806 | 2018-08-24T01:25:31 | 2018-08-24T01:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,384 | py | import torch
from torchvision import transforms
import cv2
import numpy as np
import types
from numpy import random
class Compose(object):
"""Composes several augmentations together.
Args:
transforms (List[Transform]): list of transforms to compose.
Example:
>>> augmentations.Compose([
... | [
"609632889@qq.com"
] | 609632889@qq.com |
2317b9612a821152993d2c8d3d77909c6a5d504f | 69266a7696f5f8be7c78fd29ef68a7619e41d28d | /Tools/ComputeTool.py | 9353c424e8d6deac1c49914c31c6768d29dd1ec4 | [] | no_license | microelly2/PyFlowWWW | 52deb54deb2db668cd21e9ce251894baaa663823 | 0b3d0009494327b2ec34af9fbca2a5fee1fef4a4 | refs/heads/master | 2022-04-14T02:35:08.999370 | 2020-04-11T19:48:54 | 2020-04-11T19:48:54 | 254,876,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,464 | py | ## Copyright 2015-2019 Ilgar Lunin, Pedro Cabrera, microelly
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
## http://www.apache.org/licenses/LICENSE-2.0
## Unless required by applic... | [
"thomas@freecadbuch.de"
] | thomas@freecadbuch.de |
8eda4c8d2fd5781128748cfa3f14c23c06229fc3 | 10e19b5cfd59208c1b754fea38c34cc1fb14fdbe | /desktop/core/ext-py/Babel-0.9.6/babel/messages/tests/data/project/ignored/this_wont_normally_be_here.py | f26ddee1f7972ffe1050d7bb17ab8f960c38096a | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | sarvex/hue | 780d28d032edd810d04e83f588617d1630ec2bef | 6e75f0c4da2f3231e19c57bdedd57fb5a935670d | refs/heads/master | 2023-08-15T21:39:16.171556 | 2023-05-01T08:37:43 | 2023-05-01T08:37:43 | 32,574,366 | 0 | 0 | Apache-2.0 | 2023-09-14T16:55:28 | 2015-03-20T09:18:18 | Python | UTF-8 | Python | false | false | 295 | py | # -*- coding: utf-8 -*-
# This file won't normally be in this directory.
# It IS only for tests
from gettext import ngettext
def foo():
# Note: This will have the TRANSLATOR: tag but shouldn't
# be included on the extracted stuff
print ngettext('FooBar', 'FooBars', 1)
| [
"bcwalrus@cloudera.com"
] | bcwalrus@cloudera.com |
c1a174860f449f624c4ea77b9f9327c3ae268a44 | 3f90cf7ddbc7afb9c7b8cf26ffee7f26f75d995d | /setup.py | e1037f1deeb0d503439c3bbc94f48aca0a855761 | [
"MIT"
] | permissive | Znigneering/CSCI-3154 | 0c0f9383dc9f0a42c6f653c3fb450410a4b1a642 | bc318efc73d2a80025b98f5b3e4f7e4819e952e4 | refs/heads/master | 2022-12-24T17:49:17.711622 | 2018-11-27T18:18:28 | 2018-11-27T18:18:28 | 158,028,171 | 0 | 0 | MIT | 2022-12-10T08:41:36 | 2018-11-17T21:54:45 | C | UTF-8 | Python | false | false | 345 | py | from setuptools import setup
setup(
name='PyTPG',
version='0.8',
packages=['tpg'],
license='MIT',
description='Python implementation of Tangled Program Graphs.',
long_description=open('README.md').read(),
author='Ryan Amaral',
author_email='ryan_amaral@live.com',
url='https://github... | [
"zh676054@dal.ca"
] | zh676054@dal.ca |
2a6df882b37651ba09c0543b3c1661bad7bf365e | fe9f4a9c75ec60cd4245b15164e27161567b43ff | /week3/2-Resolve-with-Functions/prime_digit.py | 8506bc8d70591dc4442261e9465aecd2d51d7144 | [] | no_license | manuelavelinova/Programming0 | 5dc8273edc5c4302de37d48226e1ee7b9a062959 | 56132232ea4321f517af3dd6f0139ee35f00ef15 | refs/heads/master | 2016-09-05T13:40:11.416849 | 2015-03-22T10:02:11 | 2015-03-22T10:02:11 | 31,215,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | def is_prime(n):
start = 2
isPrime = True
while start < n:
if n % start == 0:
isPrime = False
if n == 1:
isPrime = False
start += 1
if isPrime:
return True
else:
return False
def to_digits(n):
digits = []
while n !=... | [
"manuelavelinova@gmail.com"
] | manuelavelinova@gmail.com |
a29c354c212eb6398363a27ee49432b9ad922189 | 2d93f948ba86742bb493403cf038e76444e58842 | /corona/__main__.py | d6e3d059734327c55aed8eef2b771f3978d857c3 | [] | no_license | antista/sir | debe6f31d0050e77ea6c3836c548d25cba2291fa | 2b9d7c5e6c70d5486e55e209352400bc85b589d8 | refs/heads/master | 2022-12-28T01:40:02.843425 | 2020-10-10T11:41:42 | 2020-10-10T11:41:42 | 292,320,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from matplotlib import pylab
from corona.corona import main
if __name__ == '__main__':
main()
pylab.show()
| [
"anti2100@yandex.ru"
] | anti2100@yandex.ru |
ea81a3f2769fe2186891c4edce86d5f3c483d4e5 | 940622a48cc8711a39dd7f36122bae1e25ee2fcc | /QuestionTime/QuestionTime/urls.py | a68ebcf6bfba297eff05f5c23e941b75964ca7f5 | [] | no_license | merveealpay/django-vue-question-app | 144d1f9b49cd1f0cbd91820c2c11cc42ff95a09d | f12c88bdbfcac685b7098145370e13be935c8d8f | refs/heads/main | 2023-02-05T12:58:28.651036 | 2020-12-27T18:05:35 | 2020-12-27T18:05:35 | 319,586,207 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | """QuestionTime URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"merveealpay@gmail.com"
] | merveealpay@gmail.com |
be45bcb1e674793f5bb4889a3cdcada07a013a45 | 5b71e2952f34dd3bb20148874d952fee06d31857 | /app/mf/crud/migrations/0100_auto_20210206_1820.py | 41f0df779972b165576ab9f2962e9261c1ec7a13 | [] | no_license | isela1998/facebook | a937917cddb9ef043dd6014efc44d59d034102b1 | a0f2f146eb602b45c951995a5cb44409426250c5 | refs/heads/master | 2023-07-18T02:14:50.293774 | 2021-08-28T03:26:06 | 2021-08-28T03:26:06 | 400,613,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Generated by Django 3.1.1 on 2021-02-06 22:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crud', '0099_debts_rate'),
]
operations = [
migrations.AlterField(
model_name='debts',
name='rate',
fiel... | [
"infantefernandezisela@gmail.com"
] | infantefernandezisela@gmail.com |
bcd00e175fe8619264aa97bc0a61bbf04c8d0fc0 | 61a887eaf972bda8839728292147bf923103e8a1 | /representations/explicit.py | 4cf27c5cfa3ff12a6320ead1c90aa30c691999e8 | [] | no_license | soltustik/RHG | 45f05fb215f0e2fbcd1b51b8a44b78ae09454b5b | c94de165285cf06f3d101c316173175328874848 | refs/heads/master | 2023-01-01T02:17:36.041309 | 2020-10-07T10:00:24 | 2020-10-07T10:00:24 | 300,230,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | import heapq
from scipy.sparse import dok_matrix, csr_matrix
from scipy.stats import logistic
import numpy as np
from representations.matrix_serializer import load_vocabulary, load_matrix
class Explicit:
"""
Base class for explicit representations. Assumes that the serialized input is e^PMI.
"""
... | [
"noreply@github.com"
] | soltustik.noreply@github.com |
f22af6b6113dc3091f9553766e30977fce309d38 | db5264994305e8c926f89cb456f33bd3a4d64f76 | /Sklep zielarski/account/urls.py | 8f5e4dae0dd33bbbd640d540c02340a153233e68 | [] | no_license | marcinpelszyk/Django | 7842e20d5e8b213c4cd42c421c1db9ab7d5f01d5 | aff2b9bd20e978a22a4a98994bf8424892d3c82f | refs/heads/main | 2023-05-01T19:20:37.267010 | 2021-05-18T17:51:53 | 2021-05-18T17:51:53 | 356,532,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,026 | py | from django.contrib.auth import views as auth_views
from django.urls import path
from django.views.generic import TemplateView
from . import views
from .forms import PwdResetConfirmForm, PwdResetForm, UserLoginForm
app_name = 'account'
urlpatterns = [
path('login/', auth_views.LoginView.as_view(template_name='... | [
"marcin.pelszyk90@gmail.com"
] | marcin.pelszyk90@gmail.com |
d107a85fb3ea25bf12a822113f007101ca0d82e5 | be82971799d625de703ad2c58d49d8bbb5b06fab | /TI-DSS-Python-ClientExample.py | bf9598bc77a30357a6e2880f0f13c8aa7ac66f07 | [
"Unlicense"
] | permissive | PML-Trey/TI-DSS-Python | 2f4c9fe9c01979c2d11b371b907d180a0aa3c422 | 1862ff434d2eb0d9ad04f3df03ffe5109218a300 | refs/heads/main | 2023-03-07T12:07:27.787467 | 2021-02-23T13:37:45 | 2021-02-23T13:37:45 | 341,315,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | import Pyro4
dss = Pyro4.Proxy("PYRONAME:dss") # use name server object lookup uri shortcut
# Setup target configuration
# Populated with a path/file of a target configuraiton made using CCS
dss.setConfig("./targetConfig.ccxml")
# Connect to debugger and configure this debug session
# Populate with the name of th... | [
"trey@polymorphiclabs.com"
] | trey@polymorphiclabs.com |
3073d91c6b25644a57b79bd4617df05083ecfa66 | 9d1b52e3fa86f0873d9f03b79054273a43896e15 | /source code for BOSSdataset/main.py | ce3a8ec23e1d5a1ecd7a39728b0a36178b820592 | [] | no_license | zhenglisec/DeepKeyStego | 5f4b18e3b190f56aa3faa7833a114290fb09e263 | d40a4661414f21b69f2e2023fda094db668df242 | refs/heads/master | 2021-06-17T08:46:04.034153 | 2021-03-19T15:05:55 | 2021-03-19T15:05:55 | 182,971,396 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,304 | py | from __future__ import print_function
import argparse
import os
import random
import warnings
import matplotlib.pyplot as plt
import numpy as np
import torch
import torch.backends.cudnn as cudnn
import torch.nn as nn
import torch.optim as optim
import torchvision
import torchvision.transforms as transforms
from model... | [
"zhenglisec@gmail.com"
] | zhenglisec@gmail.com |
e136760c66ba06b8f27043bc427a323157a0c0a0 | a0e4e123e5eb5f91eb5edd7d6d6bac268ca43c22 | /holistic.py | 0c4512029023a4b59d23865638c1ddf4746531f3 | [] | no_license | borodedamie/pose-python | eb50b322d1a327a88b3c851b7c1f650eb1a4d67f | 728135c4de033aeec5d2fcf4c3fc98e1dc4de56f | refs/heads/main | 2023-08-21T13:06:51.120094 | 2021-10-05T06:06:00 | 2021-10-05T06:06:00 | 412,929,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | import cv2
import mediapipe as mp
mp_drawing = mp.solutions.drawing_utils
mp_drawing_styles = mp.solutions.drawing_styles
mp_holistic = mp.solutions.holistic
cap = cv2.VideoCapture(0)
with mp_holistic.Holistic(
min_detection_confidence=0.5,
min_tracking_confidence=0.5) as holistic:
while cap.isOpened():
... | [
"opeoluborode@yahoo.com"
] | opeoluborode@yahoo.com |
540a36640e92a49cebfdc1d2114b07b6d1012de4 | 90909fe5a9f9fdf65bd5b1e7374f5eee0afad325 | /python-data-science-toolbox-part-2/generator-objects-1.py | 37ae50931b731cffcfbe0e6f9149a0110aec0ef7 | [] | no_license | fejesgergorichard/DataCamp | c4a75ecb2f97347c87b55357ac915fd3c1cd7a7f | 5307016e4b7da9569e08d5923a9f6e1283da6c65 | refs/heads/master | 2022-09-05T12:37:37.082755 | 2020-05-18T17:22:44 | 2020-05-18T17:22:44 | 250,319,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # A generator object is similar to a list comprehension, but it is defined by ( ) , not by [ ]
# This object, unlike the list comprehensions, does not create the list. It produces a generator
# The generator can be called as an iterable, and generates the required values on the fly, thus saving memory
# Create generat... | [
"fejesgergorichard@gmail.com"
] | fejesgergorichard@gmail.com |
a55f59281307acfcc9afc41d05c3550c1e1f0745 | f77e219f6ab6794c8c52bcb06a936da02b381398 | /libs/rl_salk/agents/sarsa_learner.py | 25cd9e3adbd157433c7fa1fd7d9d318a67fa587f | [
"MIT"
] | permissive | rl-salk/rl-salk | 96a5608e66134f8d5d305d30769d15f0ea372aad | 2e63020fc76c81f863052ccce749353644e2fc9e | refs/heads/master | 2020-06-24T05:21:02.937984 | 2019-08-08T02:14:59 | 2019-08-08T02:14:59 | 198,861,132 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from rl_salk.agents.td_learner import TDLearner
class SarsaLearner(TDLearner):
def learn(self, prev_state, action, state, reward, done):
super().learn(prev_state, action, state, reward, done,
target_policy='behavior')
| [
"daniel.jaffe.butler@gmail.com"
] | daniel.jaffe.butler@gmail.com |
1621790e8faa136dc64077fdd7cd47ca87f200ae | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/85/usersdata/228/54502/submittedfiles/funcoes1.py | 881c334b3cea4bdaa4890004b8352ae9eab83fdf | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | # -*- coding: utf-8 -*-
n=int(input('digite o número de elementos:'))
lista1=[]
lista2=[]
lista3=[]
for i in range(0,n,1):
elemento1=int(input('digite o elemento:'))
lista1.append(elemento1)
elemento2=int(input('digite o elemento:'))
lista2.append(elemento2)
elemento3=int(input('digite o element... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
fb1e1b39572b14702c97b0a9db81638e716cea2e | 4be8f1143abc8e585cc5c751984b9d861a9254dc | /map/migrations/0005_auto_20180212_2334.py | 14a88da48d451e0ddb22e63348d9aae08ffee250 | [] | no_license | jacksty/West-Marches-Website | b6ec14625a7c534e83008d47a22082a50050ec07 | f00223dace7f1eb2c3013265856a5c62decf7be1 | refs/heads/master | 2021-04-27T10:44:56.511037 | 2018-02-26T06:38:04 | 2018-02-26T06:38:04 | 122,544,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # Generated by Django 2.0.2 on 2018-02-13 04:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('map', '0004_edge_map'),
]
operations = [
migrations.RenameField(
model_name='edge',
old_name='node_from',
new_na... | [
"jacksty@gmx.com"
] | jacksty@gmx.com |
6ef9ff461f84c97d055693cb74ea084ecc008185 | 7173b2d4b647263449174a1c1acd326ee0d85467 | /certbot-dns-ovh/docs/conf.py | 57194666ec5ed0e6633a0bb7e95e43796aefd3f9 | [
"MIT",
"Apache-2.0"
] | permissive | robstradling/certbot | 0ee92d2f362d69342900a6be5e19175666bbab58 | d0f1a3e205902f15b9608ef514cc1f0685da25ea | refs/heads/master | 2020-06-01T04:44:20.728356 | 2019-06-05T21:51:17 | 2019-06-05T21:51:17 | 190,642,181 | 4 | 0 | NOASSERTION | 2019-06-06T20:02:01 | 2019-06-06T20:02:01 | null | UTF-8 | Python | false | false | 5,779 | py | # -*- coding: utf-8 -*-
#
# certbot-dns-ovh documentation build configuration file, created by
# sphinx-quickstart on Fri Jan 12 10:14:31 2018.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated fil... | [
"bmw@users.noreply.github.com"
] | bmw@users.noreply.github.com |
36ff8d5e5b50b26b9b5c7383e666b8d5b76ec9ec | 90bd88fbc3676551432d4e4f1ad64260e1d62573 | /Data_processing/feature_extraction.py | 8bb08b7e2599bb30089fa5f215fbb527ea21caca | [] | no_license | LeanneNortje/MultimodalSpeech-to-ImageMatching | 648d009dbbb7a2f6c127e31a15193ab989a58998 | a0ce92dc95d5052fbcd53a9a41cd3b6020345f9d | refs/heads/master | 2023-04-28T10:11:45.132063 | 2021-04-26T13:36:32 | 2021-04-26T13:36:32 | 216,018,780 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,895 | py | #!/usr/bin/env python
#_________________________________________________________________________________________________
#
# Author: Leanne Nortje
# Year: 2020
# Email: nortjeleanne@gmail.com
#_________________________________________________________________________________________________
#
# This sets up the feature... | [
"nortjeleanne@gmail.com"
] | nortjeleanne@gmail.com |
2b63fb46758a1f007ae3ed5ce851d0c3a99bb6e0 | f5788e1e1d8522c0d4ae3b4668faa5537680cb07 | /mutual_sale_discount_total/__openerp__.py | 55acff682f3f211f074ab7660a836cc839f366de | [] | no_license | mutualSecurity/mutual-erp-residential | 8549e179af6df1ffceadf42369d69d4dd44f07ac | 88debefc662dd1510a1d52a877ede4673c319532 | refs/heads/master | 2021-11-11T13:33:37.878051 | 2021-11-02T10:14:49 | 2021-11-02T10:14:49 | 71,433,705 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | {
'name': 'Sale Discount on Total Amount',
'version': '1.0',
'category': 'sale',
'sequence': 6,
'summary': "Discount on total in Sale and invoice with Discount limit and approval",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': 'http://www.cybro... | [
"pk_bscs@yahoo.com"
] | pk_bscs@yahoo.com |
3a872299b9b73a04afddd47ddc4dda9480c8f34e | f9c12c1c04b51ec62d7d671c02eb471a0afaccda | /tugas1/server3.py | ae2f0a360bf436a78f36b210dbfe282764f61578 | [] | no_license | bastianf19/progjar-b-its-2020 | dc92dbeb980f2c2391232626e4a65941978530c2 | 95405279b8de26c5d89cc39f0b360c7c0a78fb2a | refs/heads/master | 2020-12-27T23:03:50.153132 | 2020-04-24T09:53:08 | 2020-04-24T09:53:08 | 238,096,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | import sys
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = ('localhost', 31002)
print(sys.stderr, 'starting up on %s port %s' % server_address)
sock.bind(server_address)
sock.listen(1)
while True:
print(sys.stderr, 'waiting for a connection')
connection, client_address = ... | [
"bastian.farandy@gmail.com"
] | bastian.farandy@gmail.com |
b59262788ee519c9e2a4555e7cb75382fba2da3d | ca920a476e43b68d6d041fb5af098cecf2dbbbd0 | /py-list-vulnerabilities/smartcheck.py | 6c73fdeb20c2d2f5c4cbf17a130a430a41b7c19e | [
"Apache-2.0"
] | permissive | felipecosta09/smartcheck-samples | 8b74a8773bfb21e82b03eccd9f9090bdd6bdfca3 | bdaade3b2c057abbdc1d437132ba043b14a00d14 | refs/heads/master | 2021-01-02T18:59:15.320466 | 2019-07-24T12:58:09 | 2019-07-24T13:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,520 | py | #
# Copyright 2019 Trend Micro and contributors.
#
# 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 ag... | [
"Geoff_Baskwill@trendmicro.com"
] | Geoff_Baskwill@trendmicro.com |
677854622ff234e79b8d645e1b88e6e7804ead61 | 4f1299f5af48ac43735dad9a26e091ed26a606ad | /Prac.py | c8072a990624301f4f25d2eebc8056071cc56de0 | [
"MIT"
] | permissive | BikashThapa/PythonPrograms | e163b7c62aced8c77ba4c6ee664a2bcf0c3f025a | f2e81771d6767fd96fea4622ef9fc8fe8d436b22 | refs/heads/master | 2020-07-25T01:23:55.746970 | 2019-12-24T08:30:58 | 2019-12-24T08:30:58 | 208,111,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | class Person:
def __init__(self, name):
self.name = name
def talk(self):
print(f'Hi, this is {self.name} here')
person1 = Person("Biaksh Thapa")
person1.talk()
Bob = Person("Bob")
Bob.talk() | [
"bthapa489@gmail.com"
] | bthapa489@gmail.com |
b2aedb04d591a0a051b067311682d48c5f4de51b | ccce8382859124182ab87832e6aab5bc78141503 | /app/__init__.py | 817b64ae76b60d3395952719ff1446b285448028 | [] | no_license | 774525000/train | 52a24b7f3d0420b82e7c5406f4611d725ad7a2bd | ded9cd8a276dc63facc171e405aa34bf0ca672e6 | refs/heads/master | 2022-04-11T12:54:05.764310 | 2020-02-27T01:27:23 | 2020-02-27T01:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | # -*- coding:utf-8 -*-
from app.train.train import Train
from time import sleep
def run(home_url, email, password, chaojiying_name, chaojiying_pass, chaojiying_app_id, pic_type):
Train.default(home_url, email, password, chaojiying_name, chaojiying_pass, chaojiying_app_id, pic_type)
sleep(100)
| [
"199441201qQ"
] | 199441201qQ |
e3f5bdca5d9a2bf0d000ba393a7b25ae175ccf9a | 63f8b7a3c3b5ab4c67f3ec6c60c3c327245afe66 | /experiments/scripts/compare_throughput.py | 3e3109181a11913d7287b510eae2e8bd42115c33 | [] | no_license | DanielTakeshi/dqn | 719da28568963f1b2ba041652e32a3d2a62ec191 | 6f9dc0d8aedb1319fd5333295e6561027c68bab2 | refs/heads/main | 2021-01-13T01:48:38.235101 | 2020-11-11T01:35:45 | 2020-11-11T01:35:45 | 311,830,436 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,967 | py | """This combines a bunch of learning curves for all the games.
For bar charts, see `combine_student_results.py`.
"""
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
from matplotlib import offsetbox
from matplotlib.ticker import FuncFormatter
import argparse, csv, math, os,... | [
"takeshidanny@gmail.com"
] | takeshidanny@gmail.com |
18e101f183f35166e395cf8563e66d8b90b148fa | 4dd8416c2a6cf08dd3fa3d197d895f2852106097 | /语法基础/01.Python基础/12-if条件满足或者不满足的时候执行多句代码.py | ff6369886f6d8f6702c0a7020bde5b55db5990cc | [] | no_license | lanboys/HelloPython | 19a74ad416ddadf7ed487023527e08ad9fcecb87 | d411ee29781a9cf00470d05d1be61da8f2081080 | refs/heads/master | 2020-04-07T19:40:17.381564 | 2018-11-23T10:43:00 | 2018-11-23T10:43:00 | 158,657,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | age = 10
if age > 18:
# 如果条件满足,那么下面的4行代码一定执行
print("----0-----")
print("----1-----")
print("----1-----")
print("----1-----")
else:
# 如果第3行的代码,条件不满足,那么就执行接下来的4行代码
print("----1-----")
print("----1-----")
print("----1-----")
print("----1-----")
# 下面的这行代码,与上面的if没有任何的关系,即第3行的条件是否满足 ... | [
"lan_bing2013@163.com"
] | lan_bing2013@163.com |
695e2a94c90888c0a054c8a98f9c352950ce7682 | 187a4c23f446e1d82efe2fba2f935c32087a1922 | /usbdeath.py | 5725f4f32be649254379d0f0007dd1f0225ff0fc | [] | no_license | semeion/usbdeath | f38730a23473525633a925360d2c1cf6716ca374 | 8b449a8866e15114562162c40f0cac11feea16c0 | refs/heads/master | 2021-01-22T00:28:46.744110 | 2014-06-02T19:16:00 | 2014-06-02T19:16:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Coded by Sam (info@sam3.se)
import subprocess, time
from os import system
usb_whitelist =[]
p = subprocess.Popen('lsusb', stdout=subprocess.PIPE)
while True:
line = p.stdout.readline()
if line != '':
usb_whitelist.append(line.strip('\n'))
else:
... | [
"info@sam3.se"
] | info@sam3.se |
fbe6fad964090c227647ca05aee2f02fe8a3aafb | cdd8f8ed846820ffa107de24d45b5a55cd3c5bd0 | /boot_device.py | ec1c782e9e183d1a324f82ecfac9d27109542ede | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive"
] | permissive | rockokw/vesper | d8db2c69e3f69c4b7feb0553021c91b52dc20c00 | caaae6c06fb3df6745b9485f40e3cc799c795a75 | refs/heads/master | 2022-12-29T21:44:54.008370 | 2020-10-18T20:34:15 | 2020-10-18T20:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | #!/usr/bin/env python
import argparse
import copy
import logging.config
import config as cfg
from device import Device
if __name__ == '__main__':
# Command-line arguments
parser = argparse.ArgumentParser(description='Device boot script')
parser.add_argument('name', type=str, help='device name')
pars... | [
"kwamelaw@usc.edu"
] | kwamelaw@usc.edu |
c61ff42baf9127aaa9763d25b963025cd51cae7c | af3a6d84270f21fad514f62cbcd3a1e353a3e7b8 | /utils.py | 6cb7e4191064a09eb74188dc550b5af0a9452e09 | [] | no_license | shrish23/Telegram-newsBot | 8690e45a6105032fb1a7b3a3992e7d61c79b556d | 6f87f19dfbe792efe1b5a11e4be67746566685e6 | refs/heads/master | 2023-08-24T08:18:10.362281 | 2021-10-21T10:21:38 | 2021-10-21T10:21:38 | 419,597,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | import os
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "Client.json"
import dialogflow_v2 as dialogflow
dialogflow_session_client = dialogflow.SessionsClient()
PROJECT_ID = "newsbot-tuqv"
from gnewsclient import gnewsclient
client = gnewsclient.NewsClient()
def detect_intent_from_text(text, session_id, language_c... | [
"shrishsharma@outlook.com"
] | shrishsharma@outlook.com |
1fc6096204e32445ea9a2db3b0692477f27c3235 | 99cff3a11eac3d1d5c0d16ee80e5b9c0efc2951d | /HttpTrigger/__init__.py | 4ed8c0e66e13e66f103bc26630f69aa458fbf95d | [] | no_license | kevin808/functionapp-python-schemaregistry-demo | af5b6de05fad1b60ef533bd0edfcfdd5100e73e9 | b39a9bf42cee400f3be091cebdc6c14cd80c6bb5 | refs/heads/master | 2023-03-30T01:54:48.541836 | 2021-04-06T13:02:42 | 2021-04-06T13:02:42 | 354,515,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,553 | py | import logging
import azure.functions as func
import os
from azure.identity import ClientSecretCredential
from azure.schemaregistry import SchemaRegistryClient
from azure.schemaregistry.serializer.avroserializer import SchemaRegistryAvroSerializer
TENANT_ID='YOUR TENANT_ID'
CLIENT_ID='YOUR CLIENT_ID'
CLIENT_SECRET=... | [
"kevin80828@gmail.com"
] | kevin80828@gmail.com |
604c1e106f08e0be7286bba0d9ef1a3bc66b63e5 | 708a6c274432fee2d25c7e86581f3655cd4be0de | /src/updater/app/lib/packages/vehicle_eco_balance/geo.py | 64ab2e71d7d114cb5d7db70d98dfc40097f995db | [
"MIT"
] | permissive | sampittko/tuke-beautofuel | f65fa2865c1402421224e3ff9182e3ab5e6cd3c9 | 0e7b2528af5f3a96c0abf6dc963d2a5b29779401 | refs/heads/main | 2023-04-11T00:18:19.498448 | 2021-04-23T13:16:10 | 2021-04-23T13:16:10 | 316,191,448 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,753 | py | import numpy as np
import requests as req
from requests.exceptions import HTTPError
import time
from geopy import distance
import osmnx as ox
def calc_gradient_angle(point1, point2):
""" Calculate the gradient angle between two points on the earth's surface
Parameters
----------
point1: tuple (latitu... | [
"sampittko@gmail.com"
] | sampittko@gmail.com |
bceaab930c75e6fc131b1c92e95c21d9403e01e5 | 28e554c3677c3192de4ae8bfeebdec47ab4e6bb9 | /Autoencoders/autoencoders.py | 4f76b720856b9491751fb462ef281b739a3fe46c | [] | no_license | shrinidhi99/Computer-Vision | 4d94f5ed54b9af78737a73aee5f7b577b6b6e470 | 75147678b56c2d977e06677eab58c67da95e6db7 | refs/heads/main | 2023-04-25T12:06:28.012599 | 2021-05-05T07:49:52 | 2021-05-05T07:49:52 | 334,365,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | py | import random
import tensorflow as tf
from tensorflow import keras
import cv2
import numpy as np
import matplotlib.pyplot as plt
# loads the popular "mnist" training dataset
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist.load_data()
# scales the data. pixel values range from 0 to 255, so this makes i... | [
"shrinidhi99.varna@gmail.com"
] | shrinidhi99.varna@gmail.com |
fc11fbea3f492caf574da8adef94d0978313dd7f | 33116209c77798529db2cfe5ea21dfcac13c5e38 | /update_version.py | a82034ad6f96c32f395cd11a4ab4374180bd1335 | [] | no_license | RolfMaster/basicSynth | 5ba7c8de684cecefe3fa4e361aeec4940709b40b | 40153a11b6b9ead769389c989eb3be39c15d3fa2 | refs/heads/master | 2020-04-18T10:15:55.308826 | 2019-01-23T00:08:51 | 2019-01-23T00:08:51 | 167,462,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,405 | py | #!/usr/bin/python
# this script will update the versions in plist and installer files to match that in resource.h
import plistlib, os, datetime, fileinput, glob, sys, string
scriptpath = os.path.dirname(os.path.realpath(__file__))
def replacestrs(filename, s, r):
files = glob.glob(filename)
for line in filein... | [
"prvo.slovo.a@gmail.com"
] | prvo.slovo.a@gmail.com |
e72f4db6ed6a6653152baab96d0fa3235cbf675b | 9c13bffaf12c83b049375cf24e12183fcab3a2aa | /venv/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py | a8e60f360279eb602a4e07bb27447e0a0d22f3b3 | [] | no_license | brielino/SDCCTestAnsible | b702d48c934c8bde9638ceba3b27fabf9dd40071 | 857f66860de2ad889455789b60a162506d3125a1 | refs/heads/master | 2022-12-09T13:15:29.030558 | 2020-09-12T14:51:31 | 2020-09-12T14:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,310 | py | # -*- coding: utf-8 -*-
"""
requests.session
~~~~~~~~~~~~~~~~
This module provides a Session object to manage and persist settings across
requests (cookies, auth, proxies).
"""
import os
import sys
import time
from datetime import timedelta
from collections import OrderedDict
from .auth import _basic_auth_str
from .... | [
"melissaripaolo@gmail.com"
] | melissaripaolo@gmail.com |
188cde0f74544b63ad4efac44b60ccebb54020fa | cabe9566267e24ee9ca827ccf47e75bfc1cd5021 | /features/migrations/0002_features_status.py | 07aa745905af3aef8a5e2b45fb0c0d8678873f50 | [] | no_license | Code-Institute-Submissions/ecommerce-project | 0a73d98feeb7f667fa541f4f5181a818ffb347a7 | 1c35f760b4f82fc513a1c3f27005b03922c60020 | refs/heads/master | 2020-05-18T09:40:33.804158 | 2019-04-30T21:09:42 | 2019-04-30T21:09:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-04-17 13:03
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('features', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"noelle.browne@yahoo.ie"
] | noelle.browne@yahoo.ie |
5acdd79baad3e3b1e64e2899d6958a752a4e1fbd | ec2490a6628ea5240ee16d7ee0ab35c4bdf3f954 | /gaurabda/GCEarthData.py | 6312b600eae9579137e7dd37368ff3a49ed3cacb | [
"MIT"
] | permissive | tuksik/gaurabda-calendar-ekadasi | 26e0f13112949ec9a8895bc1b0bccbc587544ae5 | 36f00a497bc30c041619baa1e9551e3a16021e4e | refs/heads/master | 2022-12-30T09:32:51.683966 | 2020-10-16T14:35:03 | 2020-10-16T14:35:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,436 | py | import math
import gaurabda.GCMath as GCMath
import gaurabda.GCAyanamsha as GCAyanamsha
import gaurabda.GCTimeZone as GCTimeZone
import gaurabda.GCStrings as GCStrings
import gaurabda.GCCoords as GCCoords
import gaurabda.GCUT as GCUT
def calc_epsilon_phi(date):
arg_mul = [
[ 0, 0, 0, 0, 1],
[-2... | [
"root@gopal.home.sk"
] | root@gopal.home.sk |
a79901d7cd6230cf60535dc9cffd9a91da0145c5 | 82e0c57e5b133d27e2380c9f809c2b338b3bc52c | /test/aqua/operators/test_op_construction.py | e5419631592af242da1fd109f730d14fcc7fdf60 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ryzbaka/qiskit-aqua | 62b3e50d60f080ed8aa1b9a484fcd508bc1139b3 | c1375ff5a1e7cf06d6691519f3ca4feb32e1a747 | refs/heads/master | 2022-07-19T03:55:58.393568 | 2020-05-20T14:41:12 | 2020-05-20T14:41:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,065 | py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | [
"noreply@github.com"
] | ryzbaka.noreply@github.com |
ce57dd3bfd78b96f46a44a4c20d89d7a8798c623 | 5b07f9a868de71ce61aea540f4e437d277611cd0 | /AC04/produtoconsumidor.py | 1ac330c2b8dc5762fd0df30a3fbc3bc48fb63a9c | [] | no_license | DevAltOfCtrl/Arquitetura_e_Projeto_de_Sistemas | 2d738b328ad51a8a92113a6cd77704dbabe8f2f7 | c034ba33fd56601af68b2963a2f22e32f1fa146d | refs/heads/main | 2023-09-06T02:48:09.106918 | 2021-10-23T03:00:22 | 2021-10-23T03:00:22 | 406,593,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py |
from threading import Thread, Condition
import time
import random
prateleiraMercado = []
controladorFila = Condition()
class Produto(Thread):
def run(self):
produtos = ["carne", "ovo", "arroz", "feijão", "macarrão", "banana",
"maça", "miojo", "abacaxi", "laranja", "cervej... | [
"noreply@github.com"
] | DevAltOfCtrl.noreply@github.com |
9eab7ac63befed2d25ff7d06879122dcee603533 | bf1711af678a07b2030166d98b77f1320f16b940 | /scripts/diagnostics/gradlogpconvadv.py | 2987d2f89a2c7b9e2b7c7ba81ac2e6c924ada93e | [
"MIT"
] | permissive | SFPD/rlreloaded | 81e2ee489389145092cd425f305f9f50a7fd1ec9 | 650c64ec22ad45996c8c577d85b1a4f20aa1c692 | refs/heads/master | 2021-01-01T17:47:55.592481 | 2015-06-16T16:33:06 | 2015-06-16T16:37:19 | 37,540,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,398 | py | #!/usr/bin/env python
import matplotlib.pyplot as plt
import theano #pylint: disable=F0401
import copy
import numpy as np
from control4.misc.console_utils import Message
from control4.algs.save_load_utils import load_agent_and_mdp,get_mdp,construct_agent
from control4.algs.advantage_est import demean_timeserieses
from ... | [
""
] | |
9568a5759861050bec15f02ba00c8e901ff92fc8 | 70f854c9a34be625b882bde0e5c5269522842ccf | /week 2/sumposled.py | 2bd590a34df68a174f615b039d21e36b26771d83 | [] | no_license | MariaMedvede/coursera | 6d3d897c05045e250d3b5e6e9b25a1d2de3a0df9 | 7ccc53845535bc9e341d3c42d9475e832b4cc7f4 | refs/heads/master | 2020-09-15T07:03:31.479505 | 2019-12-01T19:29:08 | 2019-12-01T19:29:08 | 223,374,208 | 0 | 2 | null | 2019-12-01T19:29:10 | 2019-11-22T09:55:15 | Python | UTF-8 | Python | false | false | 109 | py | now = int(input())
seqSum = 0
while now != 0:
seqSum = seqSum + now
now = int(input())
print(seqSum)
| [
"manya1999m09@yandex.ru"
] | manya1999m09@yandex.ru |
977efed259353b51d96b6ea3d218a036d809fef3 | d456bae1077867108bc7cc3fcc34f18b0ef75a30 | /linkedin/linkedin_top25byname_parser.py | b516009ad5cfacb9570a25261c707f0dd13eb0e8 | [] | no_license | vlivashkin/parsers | efb1cfc3f3bd909b2a8ffc92afbbb1c1154c9279 | a0334df863b4cf94cb567f3b5bbd00aab07f4444 | refs/heads/master | 2021-05-30T18:09:50.482475 | 2016-03-11T19:17:04 | 2016-03-11T19:17:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | import requests
from bs4 import BeautifulSoup
from requests.exceptions import ChunkedEncodingError
class LinkedinNoAuthTop25ByNameParser:
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1'}
top25_url = 'https://www.linkedin.com/pub/dir/{}/{}/'
def get_peop... | [
"illusionww@gmail.com"
] | illusionww@gmail.com |
c52d673bdcbfae703d470556fea4604762501224 | 91f2e23782b05aa1fb273f3170c50dc4185e8dc1 | /clif/pybind11/staging/virtual_funcs_basics_test.py | 6238c3144d5233fd2ad32b961ceef33c93be6b74 | [
"Apache-2.0"
] | permissive | anukaal/clif | 152fd58e575b90d626a300875aac71cdf69ec6a3 | 8ff675bf93599f4d4a4865376b441d8d0551fd54 | refs/heads/main | 2023-08-03T19:47:00.538660 | 2021-09-14T05:50:43 | 2021-09-30T01:00:14 | 406,238,691 | 0 | 0 | Apache-2.0 | 2021-09-14T05:39:04 | 2021-09-14T05:39:03 | null | UTF-8 | Python | false | false | 3,058 | py | # Copyright 2020 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, ... | [
"rwgk@google.com"
] | rwgk@google.com |
389cfec1280691576be87dab17cbace3b76cb636 | 06bf95f2d0310f2a740affdc9d36b3303ecb4645 | /WebMallProj/WebMall/apps.py | 39848b31b8cc3a26d2d91bbce9311d10a42491e8 | [] | no_license | vinee-sha/WebMall | 3dcf9d1e8c1c91c62f15c0bd534f009995063c3e | e4dd622782a26d1afc0ff12ccda0972401b9a4ba | refs/heads/master | 2022-12-25T16:47:04.462969 | 2020-10-04T13:36:33 | 2020-10-04T13:36:33 | 301,137,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class WebmallConfig(AppConfig):
name = 'WebMall'
| [
"vineeshanamana321@gmail.com"
] | vineeshanamana321@gmail.com |
1b32af6d4a9df22d779af09836fddb308d08536b | a331345b1269d863107ebaf525fb9e06443722c6 | /drf-intro/simple_crud/measurements/admin.py | 987929793feb8430a7621da7c283948f38f97a89 | [] | no_license | Pfliger/dj-homeworks | 19de12f8b2146751b24c89e59bdd307c571ff71d | c9f5d5070a467d4f7b35d416b8f91ad290008ab6 | refs/heads/master | 2023-03-09T01:09:49.251297 | 2021-03-05T16:24:22 | 2021-03-05T16:24:22 | 335,931,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from django.contrib import admin
from measurements.models import Project, Measurement
@admin.register(Project)
class ProjectAdmin(admin.ModelAdmin):
pass
@admin.register(Measurement)
class MeasurementAdmin(admin.ModelAdmin):
pass | [
"pfliger@list.ru"
] | pfliger@list.ru |
d1ca5c3c0478ab8a9e58042e82b7a9186a494789 | fd93fbb2162423b66636c8576548b4ad7f0564d3 | /Data_Structures/SkipList.py | d067f998de54422ab1108059a642ad543da37125 | [] | no_license | AlpacaMax/Algorithm_Miscellaneous | a595436386eb68353bf98f4ced09bf2ba06874c5 | e0a731ce0642cd602bcb8e8b7542d4b3806d9916 | refs/heads/master | 2020-11-27T21:26:38.454722 | 2020-10-22T19:20:58 | 2020-10-22T19:20:58 | 229,607,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,169 | py | import random
class SkipList:
class Item:
def __init__(self, key, value=None):
self.key = key
self.value = value
def __repr__(self):
return "({}, {})".format(self.key, self.value)
class Node:
def __init__(self, item=None, prev=None, next=Non... | [
"gabrielyang233@outlook.com"
] | gabrielyang233@outlook.com |
3ac5c2036716fd233c20c1b5d0ed1d8bf60ea49a | 49ae5bd9089a2b096fabc970156803b21b1be9d7 | /env/Lib/site-packages/django_extensions/management/commands/sync_s3.py | 7efb71ae0fe0937e29582c1f031e37010ee7bd81 | [] | no_license | scortes1989/sfotipy | ea7cfd4abe52dfb9b5094397a9f7a80e6d78713d | d3ed677f8bee0452f1ac14dfc718ca5091cf95eb | refs/heads/master | 2022-11-06T21:06:47.534330 | 2015-05-15T20:26:48 | 2015-05-15T20:26:48 | 33,416,364 | 0 | 1 | null | 2022-10-24T08:55:08 | 2015-04-04T18:55:33 | Python | UTF-8 | Python | false | false | 15,704 | py | """
Sync Media to S3
================
Django command that scans all files in your settings.MEDIA_ROOT and
settings.STATIC_ROOT folders and uploads them to S3 with the same directory
structure.
This command can optionally do the following but it is off by default:
* gzip compress any CSS and Javascript files it finds ... | [
"SCD@SCD-PC.inpact.net"
] | SCD@SCD-PC.inpact.net |
942f5be0fdd8ad8c418f4b959e1310af74cb20ff | 3c76dd3d7eda65236ff47da97c04d7b1b6eb7c15 | /recursion/questions/pow.py | fa7c82cd42821e8d05266f7451e8c4c63bed16e0 | [
"MIT"
] | permissive | devclassio/200-interview-algorithm-questions | b672629c93ca99fcf626cb34254f0ef1b5e2731d | ab6a41f3399d8ae58acf0aebb285ca6de744433c | refs/heads/main | 2023-02-21T01:39:03.060131 | 2021-01-25T16:11:24 | 2021-01-25T16:11:24 | 330,233,973 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | '''
Can't cache here! arr is too big! need to use this math trick :)
'''
class OmerSolution:
'''
Great example! to make this work with memoize i think arr must be of len n/2
'''
def myPow(self, x, n):
self.cache = [None] * (abs(n) + 1)
self.cache[0] = 1
def helper(x, n):
... | [
"arieg419@gmail.com"
] | arieg419@gmail.com |
bef2865099cfa242c3bdb6201a9e938682c2a4d7 | 7d39b91d61fcae881a4ac412974edb6028941d80 | /test/espnet2/bin/test_enh_inference.py | 6ec708df0a27c4d50ddfc008b7a71c595e0b3108 | [
"Apache-2.0"
] | permissive | pzelasko/espnet | 4106826c5887bf7e203102b36a0129297ecfb5fe | 629ac3b89b23e08cafbaab3dac1467daaf7d39fb | refs/heads/master | 2021-08-30T17:10:15.178217 | 2021-08-25T20:50:53 | 2021-08-25T20:50:53 | 173,996,615 | 1 | 2 | Apache-2.0 | 2020-12-05T05:30:26 | 2019-03-05T18:09:12 | Shell | UTF-8 | Python | false | false | 1,198 | py | from argparse import ArgumentParser
from pathlib import Path
import pytest
import torch
from espnet2.bin.enh_inference import get_parser
from espnet2.bin.enh_inference import main
from espnet2.bin.enh_inference import SeparateSpeech
from espnet2.tasks.enh import EnhancementTask
def test_get_parser():
assert isi... | [
"C0me_On@163.com"
] | C0me_On@163.com |
90dac013e7b8d3564d99078b2df9f789bb89833d | d6c86a4302debcf730516ac5bba8ad32d44faf82 | /Final Project/sportclubs/teammanager/urls.py | 5dbdda6101ef6e59f1e409323ee318db97b25b11 | [] | no_license | patrickmcgreevy/SportClubManager | 7cd51c1af20d6092a210640d038b3d8075962166 | 8f067aef7b2319c329bbf6db29836fc352635263 | refs/heads/master | 2020-04-16T17:49:13.846890 | 2019-04-27T00:14:43 | 2019-04-27T00:14:43 | 165,790,239 | 1 | 0 | null | 2019-04-27T00:14:43 | 2019-01-15T05:22:22 | Python | UTF-8 | Python | false | false | 480 | py | from django.urls import path, reverse
from . import views
urlpatterns = [
path('', views.AllClubs.as_view(), name='clubshome'),
path('myclubs/', views.UserClubs.as_view(), name='userclubs'),
path('<int:pk>/', views.ClubDetails.as_view(), name='clubdetails'),
path('<int:pk>/officer_details/', v... | [
"noreply@github.com"
] | patrickmcgreevy.noreply@github.com |
8946b98e89bdddce94a2715d79b0fbbcb3e9740e | e7e6e19e293c67e412355811fd9e447b3f26443d | /libs/functions/__init__.py | a5f7f6b9dfa0d84d541d00f6f4ae843dd43084ac | [
"MIT"
] | permissive | nga-27/SecuritiesAnalysisTools | 6c2f57929346e01433e7d6e1176747de2dbce50a | 7c4ce3d9d6ffb62aaf86c7d46bd7f15f4c68cbb0 | refs/heads/master | 2023-08-09T03:54:33.587670 | 2023-07-19T23:11:27 | 2023-07-19T23:11:27 | 180,685,810 | 5 | 2 | MIT | 2023-07-19T23:11:28 | 2019-04-11T00:44:25 | Python | UTF-8 | Python | false | false | 123 | py | """ functions to be used a single operations (or eventual API functions) """
from .functions import only_functions_handler
| [
"namell91@gmail.com"
] | namell91@gmail.com |
fc99fb37d4a38af2dd88b91d6d660527ae7b23fb | e29922802cd85e6745ec3215d71ffba9ba4a1db8 | /a_prep_data/a4_mate_plots_eunis.py | c53e37719fb89975e557ea673be59ea9080f695d | [] | no_license | haro-nl/DOREN_WEnR | 26855f49261a0b3ea93ab743b377e4f5dfb10583 | dadf8b0bf56912d22eb5fe4a499d3ef3ad79e127 | refs/heads/master | 2020-04-16T18:41:39.259162 | 2019-01-15T11:20:09 | 2019-01-15T11:20:09 | 165,831,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | # -*- coding: utf-8 -*
#!/usr/bin/python3.5.3
'''Script to
1. read EUNIS type indicator species
2. generate look up dictionaries to get Dg, CoSp & DmSp species for each EUNIS types
3. read species list for all EVA vegetation plots and add sp list to each plot in a new column
4. define completeness score for a veg plot... | [
"hans.roelofsen@wur.nl"
] | hans.roelofsen@wur.nl |
4573c307c91eba94f7133e73ffb4e29b05316bfc | 0bd6e56b5046391b5be4b466b8ce5b44626818f5 | /mac_changer.py | 8c55a63e8d4bd61b36e5da67151b61392b86a493 | [] | no_license | Ronlin1/python-hacking-scripts | af14f60610019474c07d76fd15f90d7c812a0165 | 291ccc7283e6c47f1f3a3385d729b7c08c1c24ed | refs/heads/master | 2023-03-27T17:45:09.065699 | 2021-04-03T05:27:13 | 2021-04-03T05:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | #!/user/bin/env python
import subprocess
import optparse
import re
def get_arguments():
parser = optparse.OptionParser()
parser.add_option("-i", "--interface", dest="interface", help="Interface to change its Mac address")
parser.add_option("-m", "--mac", dest="new_mac", help="New MAC address")
... | [
"tonyjcha3713@gmail.com"
] | tonyjcha3713@gmail.com |
d5672859a1c11baa0302a06e15050c61a8db266f | 70ac291bcf11d8452c6b1ade5fbadd0003d9e613 | /machine_learning_机器学习/准确率(Accuracy)、精确率(Precision)、召回率(Recall)、F值(F-Measure)等评估指标的计算.py | 8c51fb9bad3621e3c8e70198ca29c52253849f25 | [] | no_license | SnowWhiteZ/hello-world | 10cc1faf508340f835fffbf3c587101e3e0e78a5 | e43793b413016eb2f52b40990a8f1b493d29c983 | refs/heads/master | 2022-03-12T22:10:42.163091 | 2019-12-02T09:58:15 | 2019-12-02T09:58:15 | 225,376,506 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,456 | py | #!/usr/bin/python3
# coding: utf-8
import numpy as np
from sklearn.metrics import f1_score, accuracy_score, fbeta_score, precision_score, recall_score
from sklearn.metrics import classification_report
from sklearn.metrics import accuracy_score, f1_score, roc_auc_score
# 真实标签
y_true = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,... | [
"gswyhq@126.com"
] | gswyhq@126.com |
9dc8e842d1c50ed74d1c5b4728ef47282db16f7c | cf43421567c1634abe1df885c6e185a180659708 | /Extract/common.py | cd7e1ac1c4a6b11a70a4290fe71d6d2217580e77 | [] | no_license | fabio-gz/ETL_newspaper | 4c5239892098840a730ecf3b58452054a50e914b | 7458701eab76821a1fd65f0821356b1e7924bc97 | refs/heads/master | 2023-01-11T05:01:39.773346 | 2020-11-16T22:10:57 | 2020-11-16T22:10:57 | 292,719,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | # cargar yaml
import yaml
#global var
__config = None
def config():
global __config
if not __config:
with open('config.yml', mode='r') as f:
__config = yaml.safe_load(f)
return __config
| [
"fabiogomez.silva@gmail.com"
] | fabiogomez.silva@gmail.com |
159ae11c00f6321cb99a0ef0d0efc843e5b9f5ce | 8d034478e79e5653bc3d43656925d480c2f4d5ea | /image_detection.py | 0e0c0978699965c5bada9201c6c1a64edf4a5297 | [] | no_license | stavik476/last_project_stav | 515e907d871f59dfda12797411a7eee32d25550d | 1f61204a9bc7d6cb03807b89db6085ea085320c4 | refs/heads/main | 2023-04-26T02:30:28.914181 | 2021-05-25T14:23:05 | 2021-05-25T14:23:05 | 370,720,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,777 | py | # Import packages
import os
import cv2
import numpy as np
import tensorflow.compat.v1 as tf
import sys
# This is needed since the notebook is stored in the object_detection folder.
sys.path.append("..")
# Import utilites
from the_utils import label_map_util
from the_utils import visualization_utils as vis_util
#Ch... | [
"71749280+stavik476@users.noreply.github.com"
] | 71749280+stavik476@users.noreply.github.com |
70917ef3ba2fae2c622f7b341e85affcd1aa530a | 19d8c15700cbb2d0b8108c379edbc50bfcb1c149 | /Source code/laptop.py | aa6adaadf30faa8e250fe0bfebe582a4ffbd0e33 | [] | no_license | trandaitai327/laptop-store-manage | 41543be450ca68a973e754c0b2bfead741d88e44 | dee8519d4c4602f7132b5fcbd4a2e03e9193223d | refs/heads/master | 2023-09-03T21:43:59.694305 | 2021-11-05T03:14:07 | 2021-11-05T03:14:07 | 424,813,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | class Laptop:
def __init__(self,ten,hang,gia,soluong):
self.name = ten
self.brand = hang
self.price = gia
self.quantum = soluong
def xuatgia(self):
return self.price
new= Laptop("G3","Dell",25000,3)
| [
"trandaitai327@gmail.com"
] | trandaitai327@gmail.com |
c8a495c25d68757e7f04885e00d173531073ac78 | efde64a427ec0e7a03c6227ea36e63c386924545 | /test.py | 295e11d4a904dc38869e71a681bae9ef5e109100 | [] | no_license | ZhihaoDU/du2020dan | 5bfcc8ead7c9ac1f1e45e3cfb68f45c253e81403 | 4ec8d37a46c6d40e6d2f07ec1d299ac2e802ed69 | refs/heads/master | 2021-01-15T07:04:33.043159 | 2020-02-25T04:43:55 | 2020-02-25T04:43:55 | 242,909,472 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,432 | py | import os
# os.environ['CUDA_VISIBLE_DEVICES'] = '2'
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from kaldi_helper import KaldiFeatHolder
from speech_utils import read_path_list, print_with_time, calc_rescale_c
from scipy.io import wavfile
from kaldi_fbank_extractor im... | [
"duzhihao.china@gmail.com"
] | duzhihao.china@gmail.com |
cb03a855464cc9c2f80b4f406ed8aaac4d1c0f3f | e5acfe14534911fb42ab7715331abda164a3a93b | /devel/lib/python2.7/dist-packages/adhoc_communication/msg/_ExpCluster.py | a1eb356df41d275f3ee571397b570d141b72bb3b | [] | no_license | mgr4dv/surf_inspec | 964095590c58967d6183ac16e755192922bf8af4 | ada5332edaebe622fa403dd8f5233b01b8b16559 | refs/heads/master | 2021-07-04T17:29:06.141297 | 2017-09-27T23:40:28 | 2017-09-27T23:40:28 | 103,476,523 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,101 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from adhoc_communication/ExpCluster.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import adhoc_communication.msg
class ExpCluster(genpy.Message):
_md5sum = "378b1f01e... | [
"builder@kududyn.com"
] | builder@kududyn.com |
a8885f69c487b2f187926f4fa20b933388d0a0d1 | 50ed16359e7a180298e847c4866ff2b45b3f3815 | /scripts/computeNumbers.py | e07b5acf8876c8f9cd7ac521858d44c012313e7f | [] | no_license | bfildier/Fildier2022_code | cde8fac4c01597e8ea7f631913aee229e725ffbd | 8cd2c5e78b85ccc89544f2c6698b7717dd7a1537 | refs/heads/main | 2023-04-18T01:28:39.748615 | 2022-12-05T16:14:40 | 2022-12-05T16:14:40 | 574,580,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,112 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 21 11:46:19 2022
Numbers in PNAS main 2022
@author: bfildier
"""
##-- modules
import scipy.io
import sys, os, glob
import numpy as np
import xarray as xr
import matplotlib
from matplotlib import cm
import matplotlib.pyplot as plt
from matplotlib... | [
"bfildier.work@gmail.com"
] | bfildier.work@gmail.com |
4c1785f655e01342cbdda1667b1a388889254f6b | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_pow3/trend_poly/cycle_7/ar_12/test_artificial_32_pow3_poly_7_12_100.py | 7f5a2931b6b59c48d8a1216fadd94ec7826eabbc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 32 , FREQ = 'D', seed = 0, trendtype = "poly", cycle_length = 7, transform = "pow3", sigma = 0.0, exog_count = 100, ar_order = 12);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
3cbc9bfba6c7cc7ac49325cfc8ffaf1622d354b1 | bdaed512916fcf96e5dc915538fe8598aeb2d3cf | /mcex/history/nphistory.py | f042a176b3e0f6b83b0c8e8c2c2c693ec6657ff1 | [] | no_license | jsalvatier/mcex | 9657cc2e8083f4e4dd013baaaceba08f9a48754e | 040f49bfd6eb467ef4d50d15de25033b1ba52c55 | refs/heads/master | 2021-06-18T19:02:07.055877 | 2017-01-22T01:10:01 | 2017-01-22T01:10:01 | 1,455,409 | 9 | 3 | null | 2012-06-21T18:07:36 | 2011-03-08T17:02:42 | Python | UTF-8 | Python | false | false | 954 | py | '''
Created on Mar 15, 2011
@author: jsalvatier
'''
import numpy as np
class NpHistory(object):
"""
encapsulates the recording of a process chain
"""
def __init__(self, max_draws):
self.max_draws = max_draws
self.samples = {}
self.nsamples = 0
def record(self, point):
... | [
"jsalvatier@gmail.com"
] | jsalvatier@gmail.com |
8ef7a014215cf45c13afb9ae120e112806e9cc33 | 0a8a3d486c170019a09fadeafc36cffb459f55db | /miscImu/testIMU.py | 682b2e9007fdba02a94d619d77cd53b9402a9718 | [
"MIT"
] | permissive | Armon16/IMU | e240f6d30451695d94a71e5f0d2454cf0ccc7d85 | ee4d114c7f5074a5f45bd658bf5d7f310d452f2f | refs/heads/master | 2020-04-29T01:21:05.744558 | 2019-04-12T06:17:29 | 2019-04-12T06:17:29 | 153,354,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | py | import logging
import sys
import time
from deepstream import get, post
from Adafruit_BNO055 import BNO055
try:
obj = {}
post(obj, 'imu')
except:
print("Not connected to deepstream")
magneticDeviation = 11
bno = BNO055.BNO055(busnum=2)
confMode = True
while True:
try:
if not bno.begin():
... | [
"armon16@csu.fullerton.edu"
] | armon16@csu.fullerton.edu |
bfe44943e89a9537af13bd731fb422a50eb87f7f | 488fb4ea9b50759c61d115fea2f830dbe1a92fb4 | /flask_app/simple.py | fc09e1aef193d07567780b2eea211e3db2ae8005 | [] | no_license | jacobcui/python301 | ea42e8664c8dd1ce1d7f5f05c592372a050a27bf | 0f2961bdf061bf6d8b6390f19deeef1b73af96b4 | refs/heads/master | 2020-04-19T22:13:59.503027 | 2019-02-08T00:17:18 | 2019-02-08T00:17:18 | 168,463,713 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | """A simple example explaining GET, POST.
Reference: http://flask_app.pocoo.org/docs/1.0/quickstart/#a-minimal-application
"""
from flask import Blueprint, render_template, request
bp = Blueprint('simple', __name__)
@bp.route('/simple', methods=['GET', 'POST'])
def simple_handler():
if request.method == 'GET'... | [
"jacobcui123@gmail.com"
] | jacobcui123@gmail.com |
4b6ede8c383df1a8a4b9930c4be790de6c73ee5f | e8811aaa2f4344de1f835b4e72b26f9dc5eb9f47 | /http1/predict.py | 387a14987524c7b3f34297d2b3c2f10ab83bf5f8 | [] | no_license | anandanthony/anandpyfunc | 93bae5ce03b8638e2b11a2fcb540592578e1ba84 | 6f7d497676492c1ced88a84aae8aad60a7907f9f | refs/heads/master | 2022-11-23T07:56:30.060122 | 2020-08-03T21:23:27 | 2020-08-03T21:23:27 | 284,809,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,585 | py | # General libs
from datetime import datetime
import logging
import os
# Image processing libs
import tensorflow as tf
import tensorflow_addons as tfa
import cv2
from PIL import Image
# Additional libs
import numpy as np
from urllib.request import urlopen
import requests
from io import BytesIO
from numpy import genfromt... | [
"anfranci@microsoft.com"
] | anfranci@microsoft.com |
c1cf80839a68e4e308b1e1494623900cb368e997 | a483ec5f451f4d6a4455626d3b5e7493f2c44052 | /sophomore/基于神经网络的人体行为姿态识别/SRTP-201909069-项目成果/3DCNN-Behavior Recognition/model_detail.py | 01973fa68d8799c8feb8ab796528dfc78cb54d7a | [] | no_license | wjialei/DuringColloge | 8e62587da265e2cf512c6a90990cf41c3beccf40 | d899cfb9954e1f8e10dd806d0e0428dfae18ad9b | refs/heads/master | 2020-12-13T05:47:05.759575 | 2020-01-18T05:40:41 | 2020-01-18T05:40:41 | 234,324,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | import h5py
#打开文件
f1 = h5py.File('.\\data\\checkpoint\\inception.001-2.03.hdf5','r')
f2 = h5py.File('.\\data\\checkpoint\\inception.002-1.77.hdf5','r')
f3 = h5py.File('.\\data\\checkpoint\\inception.005-1.64.hdf5','r')
f4 = h5py.File('.\\data\\checkpoint\\inception.015-1.58.hdf5','r')
f5 = h5py.File('.\\data\\checkpoi... | [
"Jialei_w@163.com"
] | Jialei_w@163.com |
ce369289555ace6e16616cbac4ee84b00b8d594e | 9939d9357257f10074b3d0055d70d5f278e7032f | /entity.py | b3e4eaaab491ccabdaa68dce765d27934f403a48 | [] | no_license | bravequinoaa/FlappyBirdPy | 8068042b97f2b9829bf5fb4364b84f70b05b9f65 | 6e04c07bb6566846386b2cad5e226a072092a36b | refs/heads/main | 2023-02-03T23:03:38.021231 | 2020-12-16T04:27:44 | 2020-12-16T04:27:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | import pygame
from abc import ABC, abstractmethod, ABCMeta
class Entity(ABC):
__metaclass__ = ABCMeta
@abstractmethod
def __init__(self, surface, clock, width, height, color):
self.X = None
self.Y = None
self.gravity = None
@abstractmethod
def update(self):
pass
| [
"wvano97@gmail.com"
] | wvano97@gmail.com |
14349834269be1eb71541b0b9ba7c9447bd65661 | 6f9a5717fed38b0a79c399f7e5da55c6a461de6d | /Baekjoon/TreeDiameter.py | 403cdb3ebca8db3488b4692be26727c85cc6920a | [] | no_license | Alfred-Walker/pythonps | d4d3b0f7fe93c138d02651e05ca5165825676a5e | 81ef8c712c36aa83d1c53aa50886eb845378d035 | refs/heads/master | 2022-04-16T21:34:39.316565 | 2020-04-10T07:50:46 | 2020-04-10T07:50:46 | 254,570,527 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,267 | py | # 트리의 지름이란, 트리에서 임의의 두 점 사이의 거리 중 가장 긴 것을 말한다.
# 트리의 지름을 구하는 프로그램을 작성하시오.
#
# 입력
# 트리가 입력으로 주어진다.
# 먼저 첫 번째 줄에서는 트리의 정점의 개수 V가 주어지고 (2≤V≤100,000)
# 둘째 줄부터 V개의 줄에 걸쳐 간선의 정보가 다음과 같이 주어진다.
# (정점 번호는 1부터 V까지 매겨져 있다고 생각한다)
#
# 먼저 정점 번호가 주어지고, 이어서 연결된 간선의 정보를 의미하는 정수가 두 개씩 주어지는데,
# 하나는 정점번호, 다른 하나는 그 정점까지의 거리이다.
# 예를 들어 네 번째... | [
"studio.alfred.walker@gmail.com"
] | studio.alfred.walker@gmail.com |
b0af44c71bc504fdf4b8d8d7454978a75e49f783 | 532989f8d1efeed25c954e801802ecaa2038ce52 | /movies_genre_model.py | e69f92c1675cac0c640013a8ce0741cd722a74b1 | [] | no_license | NaHut/Project3 | 465016ab8204abd47e419b229f20b0977e3c323e | 586fe26c98117b6b3cc183a3a22e51663c3300cc | refs/heads/master | 2020-03-23T10:13:57.741738 | 2018-07-19T01:57:45 | 2018-07-19T01:57:45 | 141,432,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,314 | py | import os
import time
import keras
from keras.layers import Conv2D, MaxPooling2D
from keras.layers import Dense, Dropout, Flatten
from keras.models import Sequential
from keras.models import Model, Input, Sequential
from keras.layers import Conv2D, MaxPooling2D, GlobalAveragePooling2D, Activation, Average, Dropout
fro... | [
"whow1111@naver.com"
] | whow1111@naver.com |
665fa4ba03e6c225b3c0e1b947ee5d50644e1b6b | 4b660991e5c9c93c83dccccdd3ea91531201e8a3 | /DSA/stack/balanced_parentheses.py | b4f1220d5f0ec9e0f22a0eb60703bc0198df83f8 | [
"MIT"
] | permissive | RohanMiraje/DSAwithPython | 2a1515fa5f9e5cc76b08a3e6f0ce34e451fb6f4b | ea4884afcac9d6cc2817a93e918c829dd10cef5d | refs/heads/master | 2022-09-24T08:57:04.695470 | 2021-10-21T01:06:06 | 2021-10-21T01:06:06 | 238,381,770 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | def check_balanced_parentheses(string):
stack = list()
matches = [("(", ")"), ("{", "}"), ("[", "]")]
if len(string) % 2:
"""
base condition to early check assuming string has only parentheses
"""
return False
for char in string:
if char in ['(', '{', '[']:
... | [
"rohanmiraje19@gmail.com"
] | rohanmiraje19@gmail.com |
58e85669af64469dd275db9980940709213e68dc | 2b0bbe4977893f5368eab4eb540c451863bf3e24 | /tools/get_rates.py | 859067050df1ba382330b78a4b3c31dbd3c0b1d1 | [
"MIT"
] | permissive | hildogjr/KiCost | a1f0b91ec1c8ba6b8a86f2108a38742c26ff112f | 197a61d90a24ab21049824ad1e5638ac9c4420ac | refs/heads/master | 2023-06-25T16:51:23.137235 | 2023-06-22T16:24:05 | 2023-06-22T16:24:05 | 38,410,608 | 143 | 20 | MIT | 2023-04-10T13:38:40 | 2015-07-02T04:09:13 | Python | UTF-8 | Python | false | false | 846 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Copyright (c) 2021 Salvador E. Tropea
# Copyright (c) 2021 Instituto Nacional de Tecnología Industrial
# License: Apache 2.0
# Project: KiCost
"""
Tool to generate the default exchange rates.
Should be used before each release.
"""
import sys
import os
sys.path.insert(0, os.... | [
"salvador@inti.gob.ar"
] | salvador@inti.gob.ar |
e54ee1ecc2087f724a84dac26976197e1055fff2 | 60ac463f25995f50acd0b4caea95bfdb112fe99f | /sump2.py | f67895cc91e30268e25d36d004324c6f7d862fc1 | [] | no_license | descampsa/sump2_linux | a1c36872b62e2bbdc2795d87302fc5abf073bd4c | 51264d52a5789e7042ee9f6a277b619b8e30f0ea | refs/heads/master | 2020-06-26T01:56:19.690628 | 2016-11-23T19:24:26 | 2016-11-23T19:24:26 | 74,607,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246,168 | py | #!/usr/bin/python
# sump2
# Copyright (c) Kevin M. Hubbard 2016 BlackMesaLabs
#
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your optio... | [
"adrien.descamps@gmail.com"
] | adrien.descamps@gmail.com |
8f1edffb45c18305e72ee6fa487d900f2792d2a0 | 850493f3c5c9bf3805a04547e5fe6131f9b2f906 | /teashop_server/app_models/user_type_model.py | f92d2c67a6fafe6f95723a87d5641e3f9d5ced12 | [] | no_license | blazej700/ibd | 558f6952d41966fe0e40d74356bcc9f2483add2c | 9e7a5d84f05b3be0a0cbdc247867e179962db02a | refs/heads/main | 2023-02-01T01:19:10.364462 | 2020-12-12T09:46:04 | 2020-12-12T09:46:04 | 311,062,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from app import db
from flask_restful_swagger_3 import Schema
class UserTypeModel(db.Model):
__tablename__ = 'user_type'
id = db.Column(db.Integer, primary_key=True)
user_type_name = db.Column(db.String(20))
def serialize(self):
return {
'id': self.id,
'user_type_name' ... | [
"blazej700@gmail.com"
] | blazej700@gmail.com |
a02ca8156ec3b6dbe8f89c8ae875458caa693365 | 4683d3bfe1b6ba70a566249149f55671c7bb3826 | /game/3mouse/mousedir.py | aae7cdaa7e430a6e6d2c090a1e43cc79772a6f0d | [] | no_license | crazyj7/python | 01105fe5b8ec23b53164a3f7f8a12690abc0bf6a | 2d0a55c8371aa138bcebb1f65b53109599d39009 | refs/heads/master | 2020-05-02T18:36:00.992398 | 2020-02-07T13:07:13 | 2020-02-07T13:07:13 | 178,133,678 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,427 | py | '''
mouse position angle. move
'''
import pygame
from pygame import Surface
import os, sys
import math
bExit = False
RED=(255,0,0)
GREEN=(0,255,0)
BLUE=(0,0,255)
BLACK=(0,0,0)
pygame.init()
pad = pygame.display.set_mode( (640,480))
pygame.display.set_caption('test')
user = Surface((100,100))
# 시작 이미지. x축으로 0도 기울기.... | [
"psychic@secuve.com"
] | psychic@secuve.com |
5605956e0c0bed78aa6a229a16b89113b010781d | 6a5c92bf039d768ab2e455e4d0652c2bd847a5ca | /backend/backend/settings.py | 53e3b1db47ed90d2cc34db359f977b74796f5081 | [] | no_license | sahil143/feedback-form | a2bf39162f165b7ca7b11f0a793a3dd21f8c5a98 | 933ab90fee267b0ca88cee9d3363529e5e67992a | refs/heads/master | 2023-05-07T16:48:15.743272 | 2021-05-31T06:56:57 | 2021-05-31T06:56:57 | 372,308,186 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,455 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib... | [
"sahilbudhwar143@gmail.com"
] | sahilbudhwar143@gmail.com |
5f8bdbabaf7e01920dfee62d7b029a3ca4a594e5 | 87376c79491df2ff693cd6046689251e409d6052 | /cwProject/dog_account/migrations/0001_initial.py | 9f2981d9293cac972cfe539a50e3189bdc7e15e5 | [
"Apache-2.0"
] | permissive | cs-fullstack-2019-spring/django-models-cw-gkg901 | 1874b63ad859a56cc1363856696a136d47f34df2 | 32b8b7135223077c75d6bcd151652cd41d7e0397 | refs/heads/master | 2020-04-24T04:41:50.535817 | 2019-02-22T02:58:33 | 2019-02-22T02:58:33 | 171,713,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | # Generated by Django 2.0.6 on 2019-02-20 17:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Account',
fields=[
('id', models.AutoField(... | [
"gerren.gregory@gmail.com"
] | gerren.gregory@gmail.com |
c6216e017e386c6fcba6a03eb401c29dae4b42b7 | abfa70e1da5b4ba8e465cdc046fa36e81386744a | /base_ml/10.1.Iris_DecisionTree.py | 68bd1cb46b1c29c5cf1e31ca7b17b59b9c34a20c | [] | no_license | superman666ai/crazy_project | f850819ff2287e345b67500111733bafa5629d1f | 99dcba0fe246ecaf3f556f747d44731a04231921 | refs/heads/master | 2020-05-15T09:32:56.523875 | 2019-05-16T00:57:23 | 2019-05-16T00:57:23 | 182,179,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,473 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
from sklearn import tree
from sklearn.tree import DecisionTreeClassifier
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.pipeline impor... | [
"keepingoner@163.com"
] | keepingoner@163.com |
30dd3f1c4df8cb5dbb131dfd4d1780d86003bd26 | c1d4f80fbf94fc1cb075d04284cc726f354cc586 | /diffOfSquares.py | de5cfad77b93706c58f2823a072b50e608d6464d | [
"MIT"
] | permissive | azizamukhamedova/Python-Thunder | 2af6ec8d9be07d03d51a53430449c41ec6f21a0d | 820b943c4884dad4a247c7480b86c057a1508509 | refs/heads/master | 2022-12-24T10:05:06.879056 | 2020-10-01T10:04:30 | 2020-10-01T10:04:30 | 300,230,819 | 2 | 0 | MIT | 2020-10-01T09:59:00 | 2020-10-01T09:58:59 | null | UTF-8 | Python | false | false | 204 | py | '''
Probem Task : This program returns the difference in areas of two squares.
Problem Link: https://edabit.com/challenge/NNhkGocuPMcryW7GP
'''
def square_areas_difference(r):
return (2*r)**2-(r**2)*2
| [
"noreply@github.com"
] | azizamukhamedova.noreply@github.com |
921140b83f3882c30e59c2c40f58e83ac495e3d1 | 6d8817b7a81c1f65c10ada235edde0f2f37f2f01 | /test/123.py | f08af05041c3702e27f66562116cd8474a131365 | [] | no_license | angel681166/LawTech | 63ca49aa90a53ee3b70bcf3e4ae761dd53e8d19b | 539ef05ed6a32f3c2b551301b51608ec8b340fc3 | refs/heads/main | 2023-01-08T08:38:58.220828 | 2020-11-08T17:24:49 | 2020-11-08T17:24:49 | 304,250,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15 | py | hello law tech
| [
"noreply@github.com"
] | angel681166.noreply@github.com |
b75e556ea1b40b23295bd4f418cd7787509b3aab | a1af08e61db95281579497b2a3f05535c60b0c84 | /Algorithms and data stractures in python/lesson2/les_2_task_4.py | 64d41bb9219825990ead01dc96a40b2c5a4aa986 | [] | no_license | kargamant/education | 4c6d4bd419094eb175a73bb3888b8638b7d42af4 | 21e346a3eedf342efaae3636f24385b97713c06d | refs/heads/master | 2020-07-03T10:50:32.152899 | 2020-06-19T10:33:36 | 2020-06-19T10:33:36 | 201,883,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | #4. Найти сумму n элементов следующего ряда чисел: 1, -0.5, 0.25, -0.125,…
#Количество элементов (n) вводится с клавиатуры.
n = int(input('Введите количество элементов>>>'))
b1 = 1
q = -0.5
s = 0
for i in range(n):
s += b1 * pow(q, i)
print(f'Сумма {n} элементов: {s}') | [
"noreply@github.com"
] | kargamant.noreply@github.com |
d3980370454d25fd98274030292d5c8ed674a8f7 | 4116790ee11de30eade92cabd5cddcb0978eb2c9 | /employeerest/company/company/views.py | bce69d005ffe90441d1cc9375a9ca66db31e094a | [] | no_license | Joel-hanson/djangomytutorial | 4e8aadbccea831bb8f7e4cf0de3d35e4bfeaadc0 | 93d2925ae1a8d5f5dcec03e0c85b3ff0e492d125 | refs/heads/master | 2021-08-30T10:48:42.207229 | 2017-12-17T14:43:34 | 2017-12-17T14:43:34 | 108,539,027 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from django.views.generic import TemplateView
class TestPage(TemplateView):
template_name = 'firstapp/test.html'
class ThanksPage(TemplateView):
template_name = 'firstapp/thanks.html'
class HomePage(TemplateView):
template_name = 'firstapp/index.html'
| [
"joelhanson025@gmail.com"
] | joelhanson025@gmail.com |
966693712e3410280164b684654420510e60bfac | 07cc188b2e10f204cd0191aa3c28ca058b863973 | /film_crawler/film_crawler/film_crawler/graph_constructor.py | 0be10c6e74fbbf8cce417100cccac2e37d73d3fa | [] | no_license | WriteAfterReed/web_scraper_wiki_film_proj | b80bfc18a14832c2bf01100e9eee56375c9f6ac6 | 1a55e570b54700ef55bb6d73cf76d47456952f3e | refs/heads/master | 2022-12-28T17:21:46.354362 | 2020-10-06T03:18:06 | 2020-10-06T03:18:06 | 301,601,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,098 | py | import json
class Actor:
def __init__(self, name="", year=1900, films=[], income=0):
self.status = "actor"
self.name = name
self.year = year
self.films = films
self.income = income
def __str__(self):
return self.name
def get_name(self):
return sel... | [
"mloviska15@gmail.com"
] | mloviska15@gmail.com |
8d3399769dfddb9fe82a9f192ca45d86625e5e59 | d5688ec8a696b7d8bb34ef5e0a7876532619fce8 | /spreadsheetupload/urls.py | 3145c62652bdfbd3a855d1e75b5cf1101a6fdefb | [] | no_license | varunsarvesh/spreadsheet | dffdea68bf449d232fcb0e33382e58fe8540471e | e81112193efe0d638881f1a8b7b5138d7af433b3 | refs/heads/master | 2020-03-18T19:51:02.133600 | 2018-05-29T08:51:06 | 2018-05-29T08:51:06 | 135,181,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """spreadsheetupload URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"varun@cyces.co"
] | varun@cyces.co |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.