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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b706ea49f123c74e0b3e5e1658c9ba5ec1669b0 | 938dff8c185ec204d9f445885cea3498c51dc4b1 | /opencv-image.py | 1c875efdb4e52d584582f144dc189ce45d5614d6 | [] | no_license | tavares1/opencv-python | 34b01f7564720b1fb319c4dc93efaa5ed28b4032 | 2bedf0d56448b7ea8e70725f9772a80769de00b0 | refs/heads/master | 2020-12-30T10:50:55.010269 | 2017-07-30T23:40:06 | 2017-07-30T23:40:06 | 98,830,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | import cv2
import numpy as np
# Create a VideoCapture object
cap = cv2.VideoCapture(0)
# Check if camera opened successfully
if (cap.isOpened() == False):
print("Unable to read camera feed")
else:
# Default resolutions of the frame are obtained.The default resolutions are system dependent.
# We convert the res... | [
"lucastavaresvasconcelos@gmail.com"
] | lucastavaresvasconcelos@gmail.com |
c43e002b85a0c45caf90f46653f69735c792bde2 | 1ee948b20d18b7fdfd9994a9f2128b13af7505a9 | /netwerk/socket_server.py | 4203c69492c71e651e03becb9186e4a49ed0eb4a | [] | no_license | effevee/IoT3-micropython | a88a44b40bf5fe2aae058683e9d3df9f828ba554 | 9ce60b365f2f838fb4d509ccd303cc57367f8234 | refs/heads/master | 2020-09-16T00:11:20.498435 | 2020-04-16T08:07:37 | 2020-04-16T08:07:37 | 223,593,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | import simpleWifi
import sys
import usocket
from machine import Pin,PWM
PORT=7950
LED1=21
s=None
pwm=None
# led initialiseren
pwm = PWM(Pin(LED1),freq=100)
# wifi object aanmaken
myWifi = simpleWifi.Wifi()
# connecteren met wifi
if not(myWifi.open()):
print("Probleem met wifi")
myWifi.get_status()
sy... | [
"effevee@gmail.com"
] | effevee@gmail.com |
844fbef16b65d799bf204c598aa73a34c0359825 | e64be2f6c3707da5df61a3b5ec056e57f482d3e2 | /ptt_crawling.py | da412285207b164a4ccd789076a7de0b121b36d7 | [
"MIT"
] | permissive | hlshao/mining-ptt-news | 72f0ab89cc5d64b73169f6c26b42fe4eb722953a | e784a98721c892349148fcd3c33f7b6515632c0c | refs/heads/master | 2020-03-18T20:50:25.080138 | 2017-11-24T01:08:58 | 2017-11-24T01:10:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,920 | py | #!/usr/bin/env python
from pathlib import Path
from urllib.parse import quote_plus
from time import sleep
from random import randint
import requests
import ptt_core
l = ptt_core.l
def _make_fake_browser():
fake_browser = requests.Session()
fake_browser.headers = {
#'user-agent': (
# 'M... | [
"mosky.tw@gmail.com"
] | mosky.tw@gmail.com |
a5fda4da449af4bf8de23a5f05ba8d0fa3bee79e | 3d37d1699917e3c2a933422fda42d9425c576935 | /ivr_payment/settings.py | be6a2b98f4c236f2a56ac9f2f04143bf25e0ea61 | [] | no_license | seongwonhan88/ivr_middleware | c5d59f90e25fe7320b2c4ad80c2a9fc5f189f209 | f9529c6b8b6d80a722802eb6322a6ea97f5e4d03 | refs/heads/master | 2022-12-12T13:21:54.583522 | 2020-02-12T00:00:12 | 2020-02-12T00:00:12 | 239,676,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | """
Django settings for ivr_payment project.
Generated by 'django-admin startproject' using Django 2.1.15.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import ... | [
"seongwonhan88@gmail.com"
] | seongwonhan88@gmail.com |
03265cb8e094f64adc51ac4401297a26ac633bf9 | a50e906945260351f43d57e014081bcdef5b65a4 | /collections/ansible_collections/fortinet/fortios/plugins/modules/fortios_wireless_controller_ap_status.py | bd5aaef6d41098992f6960b17ee137d04a334eaa | [] | no_license | alhamdubello/evpn-ipsec-dci-ansible | 210cb31f4710bb55dc6d2443a590f3eb65545cf5 | 2dcc7c915167cd3b25ef3651f2119d54a18efdff | refs/heads/main | 2023-06-08T10:42:35.939341 | 2021-06-28T09:52:45 | 2021-06-28T09:52:45 | 380,860,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,888 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# 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 3 of th... | [
"a.u.bello@bham.ac.uk"
] | a.u.bello@bham.ac.uk |
14a9a320dcefa38f2eaa0a1bb8681ce760c5cb6e | 56e8fb7cc16a0cb620ceb4490eb522895a5d773f | /web/homaton.py | 64f9e34b310cab829f55353ddb2e0d13b3628d78 | [] | no_license | andreasling/homaton | 522b70c03814514978543549372432b188f5a0de | 6f2fda41abfd6c988c323989b604f51e7336e697 | refs/heads/master | 2021-01-10T19:17:16.854523 | 2013-06-02T20:54:04 | 2013-06-02T20:54:04 | 6,445,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | #!/usr/bin/python
import time
import web
import RPi.GPIO as GPIO
import thread
# GPIO pin config
#gpios = [21, 22, 23, 24, 10, 9, 25, 11, 8, 7]
# all 1 2 3 4
gpios = [[ 7, 21, 22, 23, 24 ], # on
[ 8, 10, 9, 25, 11 ]] # off
hightime = 1
# setup GPIOs
GPIO.setmode(GPIO.BCM)
for ps i... | [
"andreas.ling@gmail.com"
] | andreas.ling@gmail.com |
6284506feb564ca791eb25775d6ca4e3d2ae6f48 | 20aeb3d27359e88463c82a2f7eedb0db3face4f3 | /ecommapp/migrations/0003_producto_imagen_card.py | 564a9bbc32b158c0537bc11eb1db8650a3506a80 | [] | no_license | rpinedaec/pacha4Grupo4 | 2d3adb158836b97147708880ea996572646e3cde | b05a30eeb93789c4925df05ad7bd9e8a30acb45b | refs/heads/master | 2022-12-25T11:08:21.451571 | 2020-09-26T19:32:43 | 2020-09-26T19:32:43 | 294,994,684 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | # Generated by Django 3.1.1 on 2020-09-21 02:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ecommapp', '0002_auto_20200918_2241'),
]
operations = [
migrations.AddField(
model_name='producto',
name='imagen_car... | [
"rpineda@zegelipae.edu.pe"
] | rpineda@zegelipae.edu.pe |
6065a22d5d32932affe70feba5ea9ba9d2383715 | 2aa6527e50c278d8e3ff438bab336c97defffb73 | /PythonETL/search104.py | b6fbd456fccafa82db3fedaa4982aa98b7993ecc | [] | no_license | CYCEvans/Python_learn_Evans | 8507828906300acd1b1f9355e3a2bced0a9d5e84 | c5d945f7f877bd5e0b563b17db7ac99702813ff7 | refs/heads/master | 2020-05-25T20:29:00.002375 | 2017-07-10T13:15:54 | 2017-07-10T13:15:54 | 95,064,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | import json
from collections import Counter
from urllib.request import urlopen
#找出你要的頁面數
def getPageNumber(web):
html = urlopen(web)
jsonObj = json.load(html)
# 得到key為TOTALPAGE的總頁數(字串)
num = jsonObj.get("TOTALPAGE")
return num
#讀取資料(頁面數)
def getData(pagenum):
result = Counter()
#迭代所有頁數
f... | [
"evance90@gmail.com"
] | evance90@gmail.com |
45d5776f6e03c42d3ba33beaea4e188612008924 | 8d3ed61bacb1ae4999a169d6035f1354a2d3b5a8 | /simplesite/controllers/account.py | dbddf790f3606db45731bdace010c00d78e290e6 | [] | no_license | wulliam/simple-site | 6a8d7e84fd4ea98a592dcff18826ac0e608f605d | f4b432d74fe02b6ea224cb7455b477dd43104d57 | refs/heads/master | 2020-06-04T18:53:41.660348 | 2011-08-16T14:17:47 | 2011-08-16T14:17:47 | 2,128,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import logging
from pylons import request, response, session, tmpl_context as c
from pylons.controllers.util import abort, redirect_to
from simplesite.lib.base import BaseController, render
import simplesite.lib.helpers as h
log = logging.getLogger(__name__)
class AccountController(BaseController):
def index(s... | [
"wulliam@gmail.com"
] | wulliam@gmail.com |
4dd50886ff6dce7d84cfb42797222543c8c5e52e | f0f06e521407a22cffe578125608930f83677f01 | /preprocessor.py | d405cc25caf3c905ba411b6811a6fc7d0568835e | [] | no_license | NikitaTolpikin/MailRuContest | a90a644e8f53990aff3164043b2f3dac0b562c83 | 43f2a53eb4a19863f0ae24cffa7860e4d4bc9ce2 | refs/heads/master | 2020-08-13T14:17:39.716503 | 2019-10-14T08:02:39 | 2019-10-14T08:02:39 | 214,982,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | import numpy as np
from skimage.transform import resize
from skimage import measure
class Preprocessor:
def __init__(self, usr_coords, delta, mask_size=256):
self.usr_coords = usr_coords
self.delta = delta
self.mask_size = mask_size
def find_shape(self, itemId):
xmin = 5000
... | [
"nvt7@tpu.ru"
] | nvt7@tpu.ru |
2c78d8d949e6bbf98a0834f3c66a632449c764f3 | 5c7f81633a75e0144e32494dcc6ec7422ff2f745 | /homebot/__main__.py | cb659de43c346f05572265f744e579270209a681 | [
"MIT"
] | permissive | HazardDede/homebot | 7370bccfd03ae54552a0f66b417627befe0a39b4 | 7a44f5470bdd84c1e7660cf48955d44a9e4c317a | refs/heads/master | 2020-11-26T15:43:36.907775 | 2020-01-09T18:52:46 | 2020-01-09T18:52:46 | 229,126,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,292 | py | """Main application entrypoint."""
import asyncio
import importlib
import logging
import os
import pathlib
import py_compile
import sys
import fire # type: ignore
from homebot.assets import AssetManager
from homebot.orchestra import Orchestrator
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %... | [
"d.muth@gmx.net"
] | d.muth@gmx.net |
95551dd428d1245f87593ee0c92ad48f0eda8aeb | 848bb1846224a368708839ce9de9b96e223261bb | /capacitaciones/capacitaciones/doctype/asistencia_usuarias/asistencia_usuarias.py | c9044574bc3afd5f68483c401ec5df007b9f63aa | [
"MIT"
] | permissive | ErickLopez76/capacitaciones | 3aa09a2432368dc419b25242823b4f689942eb61 | 0c4f052dfff492b1bb362b32b22b33bc4093acee | refs/heads/master | 2020-05-17T02:16:25.536721 | 2019-04-25T14:19:55 | 2019-04-25T14:19:55 | 165,733,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, ericklopez and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Asistencia_usuarias(Document):
pass
| [
"administrator@frappeserver.sinclusion.gob.sv"
] | administrator@frappeserver.sinclusion.gob.sv |
5ff6148349b208cbc1117241fda232a86966d433 | e384c9fa00e024a56c9f46b55577ba044185b850 | /File/SolvingKnapsackByGA/Solver/SolveKnapsack02.py | 7a170fc8baa7904a5955b8e7043e09913d003688 | [] | no_license | JTNghia/AI_Subject | a19c741b1e7bd54b6e955a94539dde696e194fb2 | f6b4e5edd0507c39ae276ea8123b73642fa2fea0 | refs/heads/main | 2023-06-15T12:05:03.541955 | 2021-07-10T10:11:34 | 2021-07-10T10:11:34 | 361,995,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,382 | py | from deap import base
from deap import creator
from deap import tools
from deap import algorithms
import random
import numpy
import matplotlib.pyplot as plt
import seaborn as sns
# import knapsack
import numpy as np
class Knapsack02Problem:
"""This class encapsulates the Knapsack 0-1 Problem from RosettaCode.or... | [
"19521899@gm.uit.edu.vn"
] | 19521899@gm.uit.edu.vn |
2c19a86b1ec300188e38fb06e6c0c107747aa070 | 29ebb277f1b10899a9a10a4ce5f8308917ac0243 | /0.Introduction/300118524.py | d03936f3553c2d8058ee72d4622d157641dc401c | [] | no_license | CollegeBoreal/INF1042-202-20H-02 | 74ab26bb9ad0c85ee811b7cde7c34473d46bd8c2 | deb2baa3a0283b9249e9a8a1b31bc05d5dff665c | refs/heads/master | 2020-12-05T15:23:11.891501 | 2020-04-23T18:14:46 | 2020-04-23T18:14:46 | 232,152,653 | 0 | 2 | null | 2020-04-15T01:02:09 | 2020-01-06T17:41:00 | Python | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jan 14 15:13:12 2020
@author: zoureni
"""
print( 10 * "BONNE ANNÉE \n")
for v in range (10):
print("BONNE ANNÉE")
print()
print("BONNE ANNÉE")
print("BONNE ANNÉE")
print("BONNE ANNÉE")
print("BONNE ANNÉE")
print("BONNE ANNÉE")
print("BONNE AN... | [
"zoureni@outlook.fr"
] | zoureni@outlook.fr |
daa092adf43067d706e068dbbc4f89bb5970b03c | bcad7a5210aef3cb1c7e8b4f17486a7cbc2a44db | /stocksDailyTransactionsDownloader.py | 449543a7318426bc4da892194c0505a3a07e1f2b | [] | no_license | avsolatorio/stocks_daily_data_analysis | 597b1aac61a08fbafb2c48b47257917c684b1be4 | bf313ed8a506e99696756d217d4d6b616370931f | refs/heads/master | 2021-01-01T17:57:08.640683 | 2014-06-30T13:50:50 | 2014-06-30T13:50:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | #-------------------------------------------------------------------------------
# Name: stocksDailyTransactionsDownloader.py
# Purpose:
#
# Author: avsolatorio
#
# Created: 10/06/2014
# Copyright: (c) avsolatorio 2014
# Licence: <your licence>
#----------------------------------------------------... | [
"avsolatorio@gmail.com"
] | avsolatorio@gmail.com |
eeb30b55fcfad12fd654d361f80c727cb8459455 | 412b699e0f497ac03d6618fe349f4469646c6f2d | /env/lib/python3.8/site-packages/eth_account/account.py | b181bfdac99019abc2c0d6adcc2f3db62125eb7b | [
"MIT"
] | permissive | EtienneBrJ/Portfolio | 7c70573f02a5779f9070d6d9df58d460828176e3 | 6b8d8cf9622eadef47bd10690c1bf1e7fd892bfd | refs/heads/main | 2023-09-03T15:03:43.698518 | 2021-11-04T01:02:33 | 2021-11-04T01:02:33 | 411,076,325 | 1 | 0 | MIT | 2021-10-31T13:43:09 | 2021-09-27T23:48:59 | HTML | UTF-8 | Python | false | false | 34,098 | py | from collections.abc import (
Mapping,
)
import json
import os
import warnings
from cytoolz import (
dissoc,
)
from eth_keyfile import (
create_keyfile_json,
decode_keyfile_json,
)
from eth_keys import (
KeyAPI,
keys,
)
from eth_keys.exceptions import (
ValidationError,
)
from eth_utils.cur... | [
"etiennebrxv@gmail.com"
] | etiennebrxv@gmail.com |
114dc63b984b8214083ad9bdce5acb87bc11c5e2 | 006ff11fd8cfd5406c6f4318f1bafa1542095f2a | /Validation/RecoEgamma/python/electronPostValidationSequence_cff.py | 5a25453640a8bb3aa498bf7a182db2aedd4427fd | [] | permissive | amkalsi/cmssw | 8ac5f481c7d7263741b5015381473811c59ac3b1 | ad0f69098dfbe449ca0570fbcf6fcebd6acc1154 | refs/heads/CMSSW_7_4_X | 2021-01-19T16:18:22.857382 | 2016-08-09T16:40:50 | 2016-08-09T16:40:50 | 262,608,661 | 0 | 0 | Apache-2.0 | 2020-05-09T16:10:07 | 2020-05-09T16:10:07 | null | UTF-8 | Python | false | false | 287 | py | import FWCore.ParameterSet.Config as cms
from Validation.RecoEgamma.ElectronMcSignalPostValidator_cfi import *
from Validation.RecoEgamma.ElectronMcFakePostValidator_cfi import *
electronPostValidationSequence = cms.Sequence(electronMcSignalPostValidator+electronMcFakePostValidator)
| [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
17d2c9dbbbf8c00c6d052e5afbb985d6dd5029c5 | 7be87e6e33d96e6bea2a2a926b99dd023dc378fe | /Matrix/SumVal.py | 622b74401c2215c4e7c94c25e5a6fdb906f6796b | [] | no_license | 7-RED/Numpy | f9d6ee87093ff5d29658c8d6f9c8c130ed521fc7 | b49b824f9f86c6764860370555e9f52b40b0535a | refs/heads/master | 2023-05-28T07:44:44.917675 | 2021-06-19T13:10:54 | 2021-06-19T13:10:54 | 345,438,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | import numpy as np
arr1 = np.array([1, 2, 3])
arr2 = np.array([4, 5, 6])
newarr = np.sum([arr1, arr2])
print(newarr)
| [
"a27032522@gmail.com"
] | a27032522@gmail.com |
a90c8a938f8ba7c8595a5ebb62c61273f63a3afd | 687b45e8da35b45faee3ddc0dfe485608f8ebd2e | /myvirta/warehouse.py | 60da0ee12485052d190c4ea9317e97ce8a05c85e | [] | no_license | antonsolomko/virtonomics | bd622e6b179969c2f9344f6a79e1cd3272e76e05 | 18c5eaa3172cef29fbf4bf8ffc333c2a90533e63 | refs/heads/master | 2020-04-18T12:25:57.375871 | 2019-12-10T19:35:45 | 2019-12-10T19:35:45 | 167,533,045 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | def resize_warehouses(self):
for unit_id in self.units(unit_class_kind='warehouse'):
unit = self.unit_summary(unit_id, refresh=True)
target_size = int(unit['size'] * unit['filling'] / 90) + 1
print(unit_id, unit['name'], unit['size'], '->', target_size)
self.resize_unit(unit_id, size... | [
"anton.kharkov@gmail.com"
] | anton.kharkov@gmail.com |
c80e6cc2f105bf18387107816240769b66ea91e4 | 3f8dc5d3bbe5faa9507c3941db4da446fb3b0c5c | /ch7/7_10_bad_solution_3.py | 0facc289ca678d2a252ef5403f4059324550beed | [
"MIT"
] | permissive | hajin-kim/2020-HighSchool-Python-Tutoring | 91c626593e097dd703f4e84da6a910192f8eefda | 352025a954bff37d21cc3d59e7d5e0f0269a1f17 | refs/heads/main | 2023-03-12T04:22:57.287110 | 2021-03-01T18:27:28 | 2021-03-01T18:27:28 | 325,773,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | n = int(input("입력 횟수: "))
maximum = int(input("값: "))
for i in range(n-1):
temp = int(input("값: "))
if temp > maximum:
maximum = temp
print("최댓값:", maximum)
| [
"kimhajin@yonsei.ac.kr"
] | kimhajin@yonsei.ac.kr |
74a2ec94b314b57ce66e0501f9db91de0bf18cdc | 6f6b0d746cb23e5df8d9d06d638ad3d484a7288c | /computations/PostTreatments.py | 600f00d95935c3ad58034b048be9fa3f5fedffae | [] | no_license | frosqh/TRAUMAS | b6637f1b4dc20f9049b97bf294e4466ef275ab66 | 7646afa6de6302408ee495ec52a5208e950a1e0e | refs/heads/master | 2022-11-15T07:16:31.752698 | 2020-07-06T06:53:05 | 2020-07-06T06:53:05 | 277,134,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,095 | py | from computations.CommCost import commCost
from computations.EarliestTimes import computeDFT, computeEFT
from computations.Priorities import getExitTask
def applyBSA(g, schedule: dict, verbose=False):
""" Apply BSA to an already-computed schedule
:param g: DAG to schedule
:type g: networkx.DiGra... | [
"gautier.raimondi@gmail.com"
] | gautier.raimondi@gmail.com |
acad35bb1e6f3f81a8b58084ccaa54b220f7b1ef | 652a40e5f4241f692dee296ec292d5e11b803044 | /src/src.py | 39991bc82760602f4a15f9ec3488fa57f0b3f2ad | [] | no_license | SSilvering/Python-Assignment-3 | 790c138bc94c465022d3446585110088cccbfe59 | 73e1956e6e430cb4f8313c2b2a07768660275ed7 | refs/heads/master | 2021-01-11T09:02:40.446492 | 2017-01-09T21:36:49 | 2017-01-09T21:36:49 | 77,625,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,403 | py | #===============================================================================#
#---------------------------Python Assignment 3---------------------------------#
# #
# Student 1: Shai Hod - 304800402 ... | [
"silvering@gmail.com"
] | silvering@gmail.com |
952246ef2950d04035fd2446e6e9782cb2702e84 | 26ad5739adb5ab65237dd5a91d836a8486e9be1e | /RegEx-PWChecker.py | 401650ae4a17acc2b3480c7004c27fc2aac10c0b | [] | no_license | worricek/ATBS | 863c2825f459934d987ed0a1b4a5b03e239e24a1 | e4add0ff9f3863853974b6d6170737d2f3e4a894 | refs/heads/master | 2020-05-02T19:02:04.047995 | 2019-06-12T12:28:53 | 2019-06-12T12:28:53 | 178,146,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #! /usr/bin/python3
import re
while True:
PW=input('Enter Password (Must be upper lower and number : ')
if re.match(r'([a-zA-Z0-9]){8,}', PW):
break
else:
print('Password does not match complexity requirements')
#Result=PasswordRegEx.findall(PW)
#if Result==None:
# print('Test')
#... | [
"dworrall@gmail.com"
] | dworrall@gmail.com |
01cad3ef3f6a1013e2abf814d57a81d3339da8da | 4ec3965ee31407ae4a5fd2d26abf81728d346bf4 | /exercicio019.py | 2789b8f487fc146eec81d74e0d656e4334725feb | [] | no_license | Gporfs/Python-s-projects | fe0fd560ef46846a2be904b7c89e618eecdacbbc | 2b427eb894284d894483de566fb54cef105afa44 | refs/heads/main | 2023-04-12T08:39:27.762486 | 2021-05-17T12:39:52 | 2021-05-17T12:39:52 | 368,177,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from datetime import datetime
now = datetime.now()
a = now.year
ano = int(input('Digite o seu ano de nascimento: '))
i = a - ano
if i <= 9:
print('Este atleta é classe: MIRIM!')
elif i <= 14:
print('Este atleta é classe: INFANTIL!')
elif i <= 19:
print('Este atleta é classe: JUNIOR!')
elif i < ... | [
"noreply@github.com"
] | Gporfs.noreply@github.com |
0ff395afc58a2a4e7ea7aa60dc54bda76fb4d71e | f1790e298bcbf7b26cacd3c27850f243c446b9eb | /courses/python3/ch4-POO/23_lesson/app.py | 7e938539f6225c2733257e487b4bd8d76133a50f | [] | no_license | misa9999/python | 36001a1bf0eb842d00b010b02e05b01aa4dfac57 | 251c5226db1bfef4a8445b025f232a27a6924930 | refs/heads/master | 2023-03-04T16:25:48.610233 | 2021-02-22T21:37:51 | 2021-02-22T21:37:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from calcipv4 import CalcIPv4
calc_ipv4 = CalcIPv4(ip="192.168.0.1", mask="255.255.255.0", prefix=24)
print(f"IP: {calc_ipv4.ip}")
print(f"Mask: {calc_ipv4.mask}")
print(f"Rede: {calc_ipv4.rede}")
print(f"Broadcast: {calc_ipv4.broadcast}")
print(f"Prefix: {calc_ipv4.prefix}")
print(f"Num ips: {calc_ipv4.ips}")
| [
"yuukixasuna00@gmailcom"
] | yuukixasuna00@gmailcom |
ff4d9bcb48501a51e55438aa2bddba1a8b6de716 | ebd356a967d1fd0f9069c6de56d911f8cef95b4a | /day1.py | 6257af83ea93923c81bd16e8c26cd0c9967b358d | [] | no_license | samgonz/100DaysOfCodeDay1 | 31c4be8c51fc33930d03b17621dece11e1ccdf4c | 36629aafc26f2379e34274a1e68dcb0a7a842c27 | refs/heads/master | 2023-09-01T08:17:07.909901 | 2021-10-26T06:19:53 | 2021-10-26T06:19:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | username = input("Hello User, What is your name?\n")
print(f'Wow! {username.capitalize()}! I am from there as well.')
user_born_city = input(f'What city were you born in {username.capitalize()}?\n')
print(f'Amazing, If I had to give you a band name it would be,\n{username.capitalize()} {user_born_city.capitalize()}!') | [
"doomteam1@gmail.com"
] | doomteam1@gmail.com |
dd480da5f0f64ad9a50812c3f9ea4aad4de0c538 | 888965665f2d7779c0e0bd4a2f924634474df2f9 | /world-03/exercice-076.py | 0ee0ed037d0d4c6b429e6ae3575b1d87b2c6c56e | [] | no_license | glaubersabino/python-cursoemvideo | cfeb6f95caea3fe74b8acb8de94962ecd9b79f43 | 9026fa876a72169b2316e15d0b7fb84359b8e68e | refs/heads/master | 2023-01-14T07:45:50.807910 | 2020-11-28T15:59:48 | 2020-11-28T15:59:48 | 311,781,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # Exercício 076
# Crie um programa que tenha uma tupla única com nomes de produtos e seus respectivos preços, na sequência.
# No final, mostre uma listagem de preços, organizando os dados em forma tabular.
lista = ('Caderno', 3.45, 'Lápis', 2, 'Caneta', 1.5, 'Mochila', 50, 'Lapizeira', 2.63, 'Borracha', 0.56, 'Transfe... | [
"glauber.sabino19@gmail.com"
] | glauber.sabino19@gmail.com |
4d513a08bd11587f5a10275e189ce5f2d237e756 | da1721d2783ea4d67ff4e73cee6eee71292f2ef7 | /toontown/battle/HealJokes.py | 3c081bb8a05c1baef1a731d4e1b05604a9230632 | [
"BSD-3-Clause"
] | permissive | open-toontown/open-toontown | bbdeb1b7bf0fb2861eba2df5483738c0112090ca | 464c2d45f60551c31397bd03561582804e760b4a | refs/heads/develop | 2023-07-07T01:34:31.959657 | 2023-05-30T23:49:10 | 2023-05-30T23:49:10 | 219,221,570 | 143 | 104 | BSD-3-Clause | 2023-09-11T09:52:34 | 2019-11-02T22:24:38 | Python | UTF-8 | Python | false | false | 84 | py | from toontown.toonbase import TTLocalizer
toonHealJokes = TTLocalizer.ToonHealJokes
| [
"jwcotejr@gmail.com"
] | jwcotejr@gmail.com |
4f8de00b32812ad9a6ed9d3c47d5a971dde027d3 | 48f5062f270001b4f0bccdcb40929f57703e2315 | /tests/create_temp_data.py | 88c269485512eb42ae3ec56ccb9f3f0b99bf9dd5 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alkanc/fastMRI | f65858cfd29cea43e463cfdf9dbea80b81edef0c | 3dc69df8b097ddc180c02a81217de494887658e9 | refs/heads/master | 2023-06-19T05:51:06.410108 | 2021-07-10T06:19:20 | 2021-07-10T06:19:20 | 303,914,500 | 0 | 0 | MIT | 2020-10-18T01:09:12 | 2020-10-14T05:45:04 | null | UTF-8 | Python | false | false | 3,789 | py | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
import h5py
import numpy as np
def create_temp_data(path):
rg = np.random.default_rng(seed=1234)
max_num_slices = 15
max_num_co... | [
"noreply@github.com"
] | alkanc.noreply@github.com |
9eb0bfcce36f677bfa9c6ff59d3f99ec5c5a8f59 | 8e2124275ab3a1ceecf62a094afe9d41eb94b7b9 | /back-end/api/product/models.py | 9261b0e90151de7c5cc462f1b37f3ca42fe4fd84 | [] | no_license | suzanneloures/project-gs-ciencia | b42db60746e1b3165717a5d4c63ec2624324516b | 14e0b8e5ac9fa0d7d6c6c6e99b7e1c56073ddb44 | refs/heads/main | 2023-03-03T00:19:21.715065 | 2021-02-09T00:44:59 | 2021-02-09T00:44:59 | 335,460,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from django.db import models
class Product(models.Model):
name = models.CharField(max_length=200)
description = models.TextField(max_length=100)
value = models.DecimalField(max_digits=8, decimal_places=2)
created_at = models.DateTimeField(auto_now_add=True)
| [
"suzanneloures@gmail.com"
] | suzanneloures@gmail.com |
694010153addb578786b33bce2f4ce552e241879 | 62226afe584a0d7f8d52fc38ca416b19ffafcb7a | /hwtLib/amba/constants.py | d40b3f72f6947d3516cc9ef67a9a89babf429909 | [
"MIT"
] | permissive | Nic30/hwtLib | d08a08bdd0bf764971c4aa319ff03d4df8778395 | 4c1d54c7b15929032ad2ba984bf48b45f3549c49 | refs/heads/master | 2023-05-25T16:57:25.232026 | 2023-05-12T20:39:01 | 2023-05-12T20:39:01 | 63,018,738 | 36 | 8 | MIT | 2021-04-06T17:56:14 | 2016-07-10T21:13:00 | Python | UTF-8 | Python | false | false | 3,957 | py | """
Constant used for a signals in AXI, AXI-lite interfaces.
https://static.docs.arm.com/ihi0022/d/IHI0022D_amba_axi_protocol_spec.pdf
"""
BURST_FIXED = 0b00
BURST_INCR = 0b01
BURST_WRAP = 0b10
def BYTES_IN_TRANS(n):
n = int(n)
return n.bit_length() - 1
# http://www.gstitt.ece.ufl.edu/courses/fall15/eel472... | [
"nic30@seznam.cz"
] | nic30@seznam.cz |
32b868367255f0b0f79561f35256fe4eca995dc6 | 4407e8d32d9dd6b6c1a560563732fbe7f01aa38c | /transliterate.py | 2b7242b763c41099e43e802efd0b7006c47ec15b | [] | no_license | yorya11/2017-osnov-programm | 9f41b94e01ea933400478b2e9f867c979b75e083 | cfbe5d5434d9ec78decbf3ee6c6cd727beb365cc | refs/heads/master | 2021-07-19T04:02:35.340416 | 2017-10-27T18:04:13 | 2017-10-27T18:04:13 | 103,292,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import sys
lines = sys.stdin.readlines()
sent_id = 1
dict = str.maketrans("abčdefghijklmnoprsšzžtuvyäöABČDEFGHIJKLMNOPRSŠZŽTUVYÄÖ", "абчдэфгхийклмнопрсшзжтувюäöАБЧДЭФГХИЙКЛМНОПРСШЗЖТУВЮÄÖ")
for c in lines:
number = 1
c = c.replace('.', ' .').replace(',', ' ,').replace(':', ' :').replace(';', ' ;').replace('?', ' ?... | [
"yureva-anna@yandex.ru"
] | yureva-anna@yandex.ru |
bcb80121aea34561443ee82bfa8b8f9690ea5971 | eadd6d96102ece2284a30f4271df24104d6a8710 | /bin/pip3.6 | 624c26e3b1012d93dbda04aff9df7c9e174bb42d | [] | no_license | abe4abraham/abranovawebsite | 16c6cb205da815cfde90073deb2c089f8de539aa | 0d7b0387c884567725fcd4f5482495f92274679d | refs/heads/master | 2021-01-22T22:16:34.833870 | 2017-05-25T20:16:29 | 2017-05-25T20:16:29 | 92,766,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | 6 | #!/Users/abrahamnghwani/Abranova_website/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==7.1.0','console_scripts','pip3.6'
__requires__ = 'pip==7.1.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==7.1.0', 'console_scripts', 'pip3.6')()
)... | [
"noreply@github.com"
] | abe4abraham.noreply@github.com |
3df31c2d6ecda74fa64f916038640d38bb5dbe0c | beb4e4c39a78e717230d58dd3223996a19dc0ae6 | /T-Palet/T-Palet1.py | f0ded925378e8f80598d9b4c9a53b5dda31eb34a | [] | no_license | KazyD/T-Palet | 7020074c847757065f95d58427ec2644cd683150 | 16f36a74754bb1b4626d97559e6d183624aadaca | refs/heads/main | 2023-08-19T02:08:38.479919 | 2021-09-13T09:54:34 | 2021-09-13T09:54:34 | 405,924,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
"""
"""
#import sys
#sys.path.append('/Users/tam/prog/T-Palet')
import TObject
dummy = 0
class T_Palet():
# メソッド
def __init__(self):
self.dummy = 5
return
def pairEvaluation():
return
def soloEvaluation():
return
def... | [
"yatsuhashi072020@gmail.com"
] | yatsuhashi072020@gmail.com |
7b9d3e6d1d4aa99b311fa20f6bbf007f8456f781 | 59eb1c9a4debeb6a43ebbcfeebbce3d90e94d927 | /HackThisSite/programTask/t5/test.py | 826ffc92362de08f6e7797244a7b25a582dd059b | [] | no_license | qwee123/CTF-practice | 455959de28441806ed4e142873ce78a90639387c | 309490e760d44e538046caa2760dadba66fa45cd | refs/heads/master | 2020-12-27T16:51:24.494668 | 2020-05-22T12:31:55 | 2020-05-22T12:31:55 | 237,977,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py |
a =[1,2,3,4,5,6,7,8,9]
def recurve(a):
if(len(a) == 1):
a[0] = 0
return
a[-1] = 0
recurve(a[:-1])
print('q',a,len(a))
recurve(a)
print(a) | [
"ben13057991@gmail.com"
] | ben13057991@gmail.com |
fd57a07589e888958cb91d8d2de84aa1784b14ff | 51903ff436f6e48e0ade64eac1503d79026f5065 | /aoc6.py | 372e045bfad420e2fb991e9502d81414c6e4e52c | [] | no_license | dchen327/advent-of-code-2020 | b9d89555459b812c293e1071fef3063508f1f7ce | f414845fdfed2be0d650158d168ccb2bfaaaf5a0 | refs/heads/master | 2023-02-01T22:33:58.361334 | 2020-12-21T13:28:20 | 2020-12-21T13:28:20 | 318,808,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from collections import defaultdict
groups = open('aoc6.txt').read().split('\n\n')
# part 1
groups_no_spaces = [g.replace('\n', '') for g in groups]
t = sum(len(set(group)) for group in groups_no_spaces)
print(t)
# part 2
t = 0
for group in groups:
ppl = group.split('\n')
num_answers = defaultdict(int)
fo... | [
"davidc3287@gmail.com"
] | davidc3287@gmail.com |
fe46e01e56f17f5042af924762e920fb36afe416 | 57d4ae3a38f9dc459527751cd4b90e818fc192e7 | /testScrapeDice.py | e012eb74310835b936aa08a810f99c833baa2422 | [] | no_license | shrprgrmr/webscrapingproject | 8bddddb0aee65916ce14b80daa9b071479c85158 | afbdeefe28145a824fcec1ed5005c6960785b860 | refs/heads/master | 2020-12-25T14:13:16.080940 | 2016-09-06T01:05:16 | 2016-09-06T01:05:16 | 67,460,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,466 | py | from scrapy.selector import Selector
import re
import string
#filename="14d9010d785bd789.eml"
#A sample of Dice emails about mid-way through the database history
rootpath="C:\\Users\\Jake\\Documents\\Cont. Ed\\gyb\\gyb-0.47-windows\\gyb\\GYB-GMail-Backup-jacobbumpus@gmail.com\\";
filenames=['2016\\4\\24\\1544828cdcf8c... | [
"jacobbumpus@gmail.com"
] | jacobbumpus@gmail.com |
a9d8a15cf26bdbdaf9a2968a4e53081d886093bb | 3f85a2b5ebaf040d295bd5d98c49b59e9ea82643 | /generate_image_lists.py | 5c5c7f3680244e04927445e7bf9a1c038a43dfcb | [
"Apache-2.0"
] | permissive | vcg-uvic/image-matching-benchmark-baselines | 6b69d0db384c4af90b431f421077aa0f8e1ec04f | 01510c4d2c07cad89727013241a359bb22689a1b | refs/heads/master | 2021-01-04T00:35:04.375020 | 2020-10-01T17:19:54 | 2020-10-01T17:19:54 | 292,169,250 | 19 | 1 | Apache-2.0 | 2020-10-01T17:19:56 | 2020-09-02T03:29:45 | null | UTF-8 | Python | false | false | 404 | py | import os
from glob import glob
src = os.path.join('..', 'imw-2020')
seqs = [os.path.basename(p) for p in glob(os.path.join(src, '*'))]
print(seqs)
if not os.path.isdir('txt'):
os.makedirs('txt')
for seq in seqs:
ims = glob(os.path.join(src, seq, '*.jpg'))
with open(os.path.join('txt', 'list-{}.txt'.for... | [
"ducha.aiki@gmail.com"
] | ducha.aiki@gmail.com |
e1ebdd6646bc1e6c2cb80607edc5f71a9df2e53b | b085618bd868a47c41d1de075867799ec0c223a9 | /application/controllers/pali_meaning.py | 5d8daa5c94617220f13060d81abf3737d701bfa4 | [
"MIT"
] | permissive | natnaka/pali-dict-v2 | b991b2812db1397feff5164d3bb91dff555a4a8c | eaeaf2170663dd0db82f0331ae7aa714962f2787 | refs/heads/master | 2020-03-15T15:11:59.908522 | 2018-05-21T13:48:37 | 2018-05-21T13:48:37 | 132,206,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,271 | py | # encoding: utf-8
import math
from flask import Blueprint, jsonify, request
from application.models import TwarePaliWord
from application.models import ThePali
from application.models import ThePaliCompact
bp = Blueprint('pali_controller', __name__, url_prefix='/pali')
@bp.route('/meaning/<word>', methods=['GET'])
de... | [
"natnaka@gmail.com"
] | natnaka@gmail.com |
8ee785f3cc8700fdffa849e776b1cefd1a91e051 | a12f0827133f18a0a08e22af97733754a2841621 | /mqtt/config.py | 495843eca7dde1a09667e5571acb9e5a47f13e70 | [] | no_license | andrewlorien/RPi | 7909fea8ed5cf0e607b8df086fb4bc4619cf8e01 | 95135eddcad152999e97bfdb9e1f680db8064e91 | refs/heads/master | 2020-04-12T17:33:23.176588 | 2018-11-29T12:27:35 | 2018-11-29T12:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py |
import yaml
import sys
#######
# load config (extract to lib)
configFile = "config.yml"
if len(sys.argv) > 1:
configFile = sys.argv[1]
with open(configFile, 'r') as ymlfile:
cfg = yaml.load(ymlfile)
def getValue(name, default):
if name in cfg and cfg[name] != "":
return cfg[name]
return... | [
"SvenDowideit@home.org.au"
] | SvenDowideit@home.org.au |
e54e2b65aabfa31bae7f893303793ae2aea1422a | e27f9f1f8bef8b1f4676df84ee3e753974d21a1c | /tests/ignite/engine/test_engine_state_dict.py | 4ccfb7ea772077b826d7a31f9c39b8a0c5ad98c7 | [
"BSD-3-Clause"
] | permissive | pytorch/ignite | 8fb275638e94e702762eec932b21dc8df7a54cb0 | 34a707e53785cf8a524589f33a570a7516fe064e | refs/heads/master | 2023-09-02T00:27:22.485479 | 2023-08-31T15:10:14 | 2023-08-31T15:10:14 | 111,835,796 | 4,613 | 788 | BSD-3-Clause | 2023-09-13T07:46:41 | 2017-11-23T17:31:21 | Python | UTF-8 | Python | false | false | 10,004 | py | from collections.abc import Mapping
import pytest
import torch
from ignite.engine import Engine, Events, State
from tests.ignite.engine import BatchChecker, EpochCounter, IterationCounter
def test_state_dict():
engine = Engine(lambda e, b: 1)
sd = engine.state_dict()
assert isinstance(sd, Mapping) and l... | [
"noreply@github.com"
] | pytorch.noreply@github.com |
cc301cc6a4d6d327dec9af9c895018ae94564882 | cae38bb6a8a4ba5adfd151048b5424849aa552a0 | /blockman/blockman.py | 84b511c64250dfc4c511846bc6ca689fdc05b2c1 | [] | no_license | samjar/Suhvaaage | 3fb43e3334b387de4d453517abd4290167f707d5 | 86b4ed899c376b61e870f2500d24cb30edb9410c | refs/heads/master | 2020-04-05T14:39:23.088046 | 2016-10-09T21:57:21 | 2016-10-09T21:57:21 | 56,803,778 | 0 | 1 | null | 2016-04-21T20:39:52 | 2016-04-21T20:31:12 | null | UTF-8 | Python | false | false | 15,148 | py | import pygame
import math
from color import *
# - imports the pygame module into the "pygame" namespace.
from pygame import *
from blockmanlevels import BlockManLevels
WIN_WIDTH = 960
WIN_HEIGHT = 640
HALF_WIDTH = int(WIN_WIDTH / 2)
HALF_HEIGHT = int(WIN_HEIGHT / 2)
DISPLAY = (WIN_WIDTH, WIN_HEIGHT)
# - number of ... | [
"ayillon@gmail.com"
] | ayillon@gmail.com |
3cf9e1997e226fdf90d65861a968d3b101419b6c | 1c0b11ffc61eee9ebee7e51ee56dfb7d055070b4 | /networks/NetFactory.py | 639f1ca91630c53f4b41c125fc928517248e9f52 | [
"MIT"
] | permissive | captaint-tao/NinaProNet | e8a8197e38324ab8504ac0601bf0dac3587c7e60 | 2882597465474395719fa853feb78489b4257795 | refs/heads/main | 2023-02-21T07:56:00.115641 | 2021-01-24T17:07:05 | 2021-01-24T17:07:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from networks.FullConnectedNet import FCN
from networks.NinaProNet import NinaProNet
from networks.GengNet import GengNet
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.svm import SVC
class NetFactory(object):
@staticmethod
def create(name):
if... | [
"taited9160@gmail.com"
] | taited9160@gmail.com |
4e82b40735ae52985442dff39e9f23eea87c3926 | 915406c549e2da21a2a95f5b96d9a92b8fbd1bb9 | /layer/functions.py | d983b4fdbbafdc8dc0805eb1c2b10b8379503ce6 | [] | no_license | b-bokma/data-tools | 155aaf9b0ff9705e52e1804aebfd818cc3d54f10 | ec965653873fd71eb8a5bfef48f4e1c868b06e73 | refs/heads/master | 2023-03-01T00:40:22.663618 | 2021-02-04T12:27:12 | 2021-02-04T12:27:12 | 289,483,747 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,000 | py | from datetime import timedelta, datetime
import requests
import awswrangler as wr
import pandas as pd
import numpy as np
import os
def list_data(endpoint, url, token, last_updated=None):
"""
A function to list all data from a specific endpoint from Chargebee.
Returns object with all results. Based to be p... | [
"b.bokma@gmail.com"
] | b.bokma@gmail.com |
6d5decd4ea5d9b5ef70e681b2f77e8011ca3c72c | 647b9d0f67f8a39a2c35f00cbaf916ced8487683 | /src/Emotion Recognition/cnn.py | 9cf3968cd0c5a11688ccabef7ecbee3cb132d544 | [] | no_license | jianyuhe/Emotion-recognition-base-audio-and-face | 818a84a56cb7bba38879160982cf1f38ca3c8c46 | c806142ea73c7ce4ea301d665519639767e35491 | refs/heads/master | 2023-07-14T00:10:44.047905 | 2021-08-25T15:12:31 | 2021-08-25T15:12:31 | 399,857,695 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,097 | py | #Importing Libraries
##Deep Learning
from tensorflow.keras.layers import Activation, Convolution2D, Dropout, Conv2D,DepthwiseConv2D,Dense,Input,Dropout, GlobalAveragePooling2D
from tensorflow.keras.layers import AveragePooling2D, BatchNormalization,Flatten,Conv2D,AveragePooling2D, BatchNormalization
from tensorflow.ke... | [
"jianyu19951225@gmail.com"
] | jianyu19951225@gmail.com |
de46a19d07ec4832cc5163e96c00c9f895ec7bd3 | 54c1a2250fda397eabcfaa75a87680722bd3495c | /api_cloud/api_api/models.py | 419e830b31de5d9e36483a45d1a7903fa6d56ca2 | [] | no_license | yangjing1989/API | ffe91acf11136be61e9dc68a2e62900a2d962ff9 | 099b51db461ddbe6b723cd22740be0c37dd117ae | refs/heads/master | 2021-01-10T01:22:34.108563 | 2016-03-07T04:00:13 | 2016-03-07T04:00:13 | 51,734,749 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | from django.db import models
# Create your models here.
class ApiApi(models.Model):
name = models.CharField(max_length=100)
project_id = models.IntegerField(blank=True, null=True)
api_http_type = models.IntegerField(blank=True, null=True)
api_url = models.CharField(max_length=500, blank=True, null=Tru... | [
"Yang@100"
] | Yang@100 |
9abc3d8ba0d3d46542177b5f5ecd164d77a0c121 | 15419b56c7493452d2e69ebfb62e9b211c91ab74 | /TwitterClient.py | 83221bf0ad15c8b268ba588d23b93d2d2de12390 | [] | no_license | DeclanJones/MarkovTwitterClient | bcc3167f3d00b3814b1566aa5f0fc927b7d8b8d9 | 899174e13c99aaff2ef759ef9179946425d10bbf | refs/heads/master | 2021-01-10T18:00:59.051343 | 2016-01-07T16:47:45 | 2016-01-07T16:47:45 | 49,213,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,403 | py | import tweepy
import datetime
import re
TWEET_SCRAPE_ARCHIVE_PATH = '/Users/declanjones/Desktop/TweetProj/Tweet_Data/Corpus/'
class TwitterClient:
'Class to GET and POST Tweets generated by Markov Chains'
def __init__(self, CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET):
self.CONSU... | [
"declan.jones@berkeley.edu"
] | declan.jones@berkeley.edu |
2996e7beefd3e3449cf21e97daa7c8fb0a786353 | f0f5cc75d2f851a0d337d6f1cbd206f0c51da022 | /oldVersion/RedNeuronal.py | cf5f8cad981c14c75e06de25180183421ef613a1 | [] | no_license | Ark93/RedNeuronal | 8bbac95afd7d3a92cb9dae59f943bb084251310a | 7860f20ab59b3bd3d1ceae2f304602fdfe6ae33f | refs/heads/master | 2021-05-02T11:02:42.196499 | 2016-12-02T05:37:48 | 2016-12-02T05:37:48 | 49,172,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | import numpy as np
import pandas
import csv
#
#
#to open the csv file
with open('Consulta_Banxico.csv','rb')as csvfile :
datareader = csv.reader(csvfile )
rows = 0
columns
for row in datareader:
rows+=1
data = num
csvfile.close() | [
"santos.banuelos93@gmail.com"
] | santos.banuelos93@gmail.com |
f9cfc4ce6ef2f17a14806cae8dd3d37e73b7128a | c36e952acfdf1694b610f4c090ec969d8096977c | /20_Spring/AE353/Homeworks/AE353_HW2.3.py | 9c1cd190adf3afdb9d377ad805876ae548ff12df | [] | no_license | topher097/SeniorAE | a89f64c4a025819d222dfe106bd96a0fe0760e4d | 0e566877f023c18344db7ea033e0637a9a5dcc52 | refs/heads/master | 2023-03-21T05:57:10.593991 | 2023-03-07T18:20:39 | 2023-03-07T18:20:39 | 206,626,410 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | import numpy as np
from scipy.linalg import expm, eig
def probFive():
A = np.array([[0.2, 0.5, 0.3], [0.4, -0.8, -0.2], [-0.7, 0.7, -0.7]])
B = np.array([[0.1], [0.5], [0.5]])
C = np.array([[-0.6, -0.1, 0.0]])
D = np.array([[0.0]])
K1 = np.array([[-30.2, -16.7, 9.5]])
K2 = np.array([[25.4, 6.3,... | [
"cmendres400@gmail.com"
] | cmendres400@gmail.com |
052b3043527285c8e3ebdfa538669b851f6b78a3 | edbfa77f2a4ac2dca10e8f56c463f8fe54afbe64 | /binary_search.py | 006da95e8d7e1ebe1cc7fc55c47783c104195cc0 | [] | no_license | viiicky/Problem-Solving | 4bc1b3ab19ff81a2e6031b34a37f1798accf5a35 | 642e6dd2c3cd65704c90d6e06a392bdae2ddd644 | refs/heads/master | 2023-04-15T20:09:39.077724 | 2021-04-24T18:36:30 | 2021-04-24T18:36:30 | 40,954,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | #!/usr/bin/env python3
# Recursive binary search
# If n is the total number of items, then:
# Worst Running Time: O(lgn)
# Best Running Time: O(1)
# An analogous example for binary search is searching
# for the meaning of a word in the dictionary
# or probably a name in a telephone directory
# by Vikas Prasad
def bina... | [
"vikasprasad.prasad@gmail.com"
] | vikasprasad.prasad@gmail.com |
88119844b125f387327c3d90f3b21e7ca9247fd4 | 2ff776ed28f9d465602aabb675b896b39eceaf26 | /examples/scoop/example_scoop_gamma.py | 80a427ac6e7a1124202561fbc6cf00fba27332b1 | [
"MIT"
] | permissive | geochri/pyroSAR | c79089f817637534bf5cc558a3617f10c7a548f9 | 6768a5487853c078fa471f5a3a69facb1aa2fab6 | refs/heads/master | 2020-04-08T13:18:59.157326 | 2018-11-27T17:58:00 | 2018-11-27T17:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,433 | py | import os
import socket
from scoop import futures
from pyroSAR.S1 import OSV
from pyroSAR.gamma import geocode
from pyroSAR import Archive
from spatialist import vector
from spatialist.ancillary import finder, multicore
"""
This script is an example usage for processing Sentinel-1 scenes with GAMMA
Run this script ... | [
"john.truckenbrodt@uni-jena.de"
] | john.truckenbrodt@uni-jena.de |
495f003bb3f74c4e0f521c1d35fbf767f6c78ff1 | 135ce37651d617f569cf2b659967b9b16e97a725 | /Visualizations/viz.py | 759a665e9cb6d190d8843f96b9e78c8c3ed76251 | [] | no_license | himz/VMware-bootcamp-vchs | cd647b0381805776453c937cfd91c8576cec3714 | b8b22bd35a3bd961e4059907cbd094d282eb1828 | refs/heads/master | 2023-03-30T05:00:10.566075 | 2014-09-05T00:15:09 | 2014-09-05T00:15:09 | 353,913,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | from flask import Flask
from flask import render_template
import utils
import mongo_utils
app = Flask(__name__)
@app.route("/")
def index():
return render_template('tl_index.html')
@app.route("/api-usage")
def get_most_used_apis():
data = utils.get_api_usage_json()
return render_template('tl_apis_mos... | [
"warunsl@gmail.com"
] | warunsl@gmail.com |
890f2f6f244bdbbe497ce8e098712a26acf94761 | df936dbcc38d1637c9b4f86846d470dfe422aa11 | /src/py/mop/model/Person.py | 9dd9dcb1077e9d2e087caa3b806cc5bb4cfb2bf0 | [] | no_license | rec/mop | 60186e68b1dfda2512494830c6f21916399b4ee0 | 27a4c7902a1ced1c547b2d9f9442375faee75f6b | refs/heads/master | 2016-09-06T16:34:48.409438 | 2012-02-27T21:21:21 | 2012-02-27T21:21:21 | 3,433,923 | 1 | 0 | null | 2016-07-20T17:39:26 | 2012-02-13T20:43:27 | JavaScript | UTF-8 | Python | false | false | 554 | py | from google.appengine.ext import ndb
from mop.model import PostalAddress
"""A Person describes a "natural person" who will be taking one side or another
of a Parking Transaction.
A Person only exists as part of an Account, so we don't need to have a unique
index for them.
"""
class Person(ndb.Model):
prefix = ndb... | [
"tom@swirly.com"
] | tom@swirly.com |
862178752d9888ce4509a77fe384662c28953347 | 4a2eac368e3e2216b0cd1dd70224da3ca4ee7c5e | /BareMetalSolution/owlbot.py | fa2e47441dd7d59e239932e108b67f90e5583b3d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | googleapis/google-cloud-php | 856a940eee158eafa6f2443f8d61813779216429 | ad50f749431287e7074279e2b4fa32d6d6c2c952 | refs/heads/main | 2023-09-06T05:48:31.609502 | 2023-09-05T20:27:34 | 2023-09-05T20:27:34 | 43,642,389 | 642 | 330 | Apache-2.0 | 2023-09-13T22:39:27 | 2015-10-04T16:09:46 | PHP | UTF-8 | Python | false | false | 2,019 | py | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
ca8cca86f721e101cfba934d0f87e2396efcc350 | 4562c0332c4009416328edf6ba24676837c5fc2e | /zomatopy.py | 7f35ce393189cf2cbb3c401b1115ddc317eeab1a | [] | no_license | babu3009/Foodie-Chatbot | e05778bf091488c2886ffa4784e44746bf27a740 | eab6cef8487d1fa8567ed6837e61bc9864c00ce8 | refs/heads/master | 2021-10-27T22:22:12.535497 | 2019-04-20T09:09:29 | 2019-04-20T09:09:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,370 | py | import requests
import ast
base_url = "https://developers.zomato.com/api/v2.1/"
def initialize_app(config):
return Zomato(config)
class Zomato:
def __init__(self, config):
self.user_key = config["user_key"]
def get_categories(self):
"""
Takes no input.
... | [
"noreply@github.com"
] | babu3009.noreply@github.com |
4133ddefe30b278ffcd6f7fd8b526d24adb5bea7 | 7aa05ca5b86e800e7884991b4edc773ccf1457c1 | /retinaNN_training.py | 2ce0a67511314b7520101ae09f9e9c70d097e93f | [] | no_license | Zchhh73/DilatedUnet | 7c4f66bd12e3a0ca6f59ee2ed69d12033e33ae32 | e42dc7a28c79fc0b5abbdb415a451ebd0a386c83 | refs/heads/main | 2023-01-28T00:14:22.262000 | 2020-11-24T05:25:31 | 2020-11-24T05:25:31 | 315,527,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,803 | py | import numpy as np
import configparser
from keras.models import Model
from keras.layers import Input, concatenate, Conv2D, MaxPooling2D, UpSampling2D, Reshape, core, Dropout
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRateScheduler
from keras import backend as K
from keras.ut... | [
"zlmy-pm@qq.com"
] | zlmy-pm@qq.com |
fbc10a823220a934babdd972482f8b3a034e3a15 | 4206cd260a398ed0423197b2056c7b6fc60e2766 | /trees.py | b911fa57ebdc975da57fd9681725880185d1ead6 | [] | no_license | angiegyi/coding_interviews | 85e5a3bc0ba84fa25b1c914a97647c3748d29c9c | d8302a75df13d2a5556bc616123882646cf0117e | refs/heads/master | 2022-11-27T01:48:08.100951 | 2020-07-13T06:43:26 | 2020-07-13T06:43:26 | 279,232,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,824 | py | # Definition for a binary tree node.
from collections import deque
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def height(self,node):
if node is None:
return 0
left = self.height(node.left)
... | [
"angelagyi@hotmail.com"
] | angelagyi@hotmail.com |
c5871611d6db00e86dee889a6219f23c62fab65b | 065abc887e834fbcb2d67b0191cd6733fafc1536 | /mysite/blog/migrations/0002_auto_20170803_0252.py | f0f6aee158f22b3b430af1dc8f93f95a93baff08 | [] | no_license | vvrabets/bolog_django | e0ef21598d986ff0114843cebfa3705d9a638194 | 3379f3f3f7d3dbdf8f0de72c79d2c846a5fd5ef1 | refs/heads/master | 2021-06-21T15:38:28.021572 | 2017-08-09T21:10:38 | 2017-08-09T21:10:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2017-08-02 23:52
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
mi... | [
"vldaimir2016@mail.ua"
] | vldaimir2016@mail.ua |
bc5d9e68f67edd93d87b5e151da8ebc9065fffb0 | 5018a62b28e6e4c6bd4523bf3fe573cb156bcc12 | /backend/samples/test.py | 953bd9b259fe85cefdbe811f00536251135ab7dc | [] | no_license | mraahemi/Simon_Says | 09f7a84740f5953c2bca38102357f8498ab769e0 | 1b02a04b66e3e19e22710e36010f20b79c433bae | refs/heads/master | 2023-03-09T06:29:31.329126 | 2021-02-22T03:07:49 | 2021-02-22T03:07:49 | 330,078,945 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | import azure.cognitiveservices.speech as speechsdk
from azure.cognitiveservices.speech import AudioDataStream, SpeechConfig, SpeechSynthesizer, SpeechSynthesisOutputFormat
from azure.cognitiveservices.speech.audio import AudioOutputConfig
import os
# from myapi.keys import api_keys
# from django.http import JsonRespon... | [
"me@yucanwu.com"
] | me@yucanwu.com |
f30ae4e7b07ca0d1987f351c9bee7ab42dc002a4 | deec3631679b1c14de92742fff9ee5d249fcfc92 | /city_project/user_info_app/models.py | 4acd85d04fa49e5ad1c4f63e7884ceeff9e3b496 | [] | no_license | Pyrigok/citymap | ae1c971133f42529b6853295057c8845cac16769 | 554175bd6be2edcc449908432b2a5d5db4957bca | refs/heads/master | 2020-05-14T13:37:04.707650 | 2019-05-19T20:19:25 | 2019-05-19T20:19:25 | 164,826,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | py | from django.db import models
from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
class UserProfileInfo(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
profile_pic = models.ImageField(upload_to='images/user_pics', blank=True)
def __str_... | [
"pyrigok@i.ua"
] | pyrigok@i.ua |
1038692fed742e2946bb4effc50bada2affccf08 | e3c2add8826161f29643b05f4e8ff3e6caa4c0e2 | /CNN/util.py | 23f9266325f527fb0ae1741205ceeaf5abde1868 | [] | no_license | KimMatt/Unknown-Image-Classification | 4be6b32718406c664d7afaaefb1a20339ee94b8f | 80447f3250c7364c136f78d3c84ac48e53341d9c | refs/heads/master | 2022-04-20T10:56:18.925709 | 2020-04-17T16:41:26 | 2020-04-17T16:41:26 | 256,551,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | py | from __future__ import division
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
plt.ion()
def LoadData(fname):
"""Loads data from an NPZ file.
Args:
fname: NPZ filename.
Returns:
data: Tuple {inputs, target}_{train, valid, test}.
Ro... | [
"mk1995x@gmail.com"
] | mk1995x@gmail.com |
78ff9fd03db2c8527755e665259124f76ca28ea2 | 56edc6e5edce6afdf659bda61dfd373ea102f2c1 | /software/utils/drc_utils/python/plan_eval_proxi.py | 39c458c4959d1c8bc902db7d12955a2a9d50384a | [
"BSD-3-Clause"
] | permissive | MannyKayy/oh-distro | c921a6e1dbe71e0751b455558a84df30a0450cce | 9aa09eda469c2dc407868c9af1ea155ff0b4a442 | refs/heads/master | 2021-01-16T20:30:39.726929 | 2016-02-02T22:43:39 | 2016-02-02T22:43:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,024 | py | #!/usr/bin/python
import os,sys
import lcm
import time
home_dir =os.getenv("HOME")
sys.path.append(home_dir + "/drc/software/build/lib/python2.7/site-packages")
sys.path.append(home_dir + "/drc/software/build/lib/python2.7/dist-packages")
from drc.robot_plan_t import robot_plan_t
from drc.plan_status_t import plan_st... | [
"james.patrick.marion@gmail.com"
] | james.patrick.marion@gmail.com |
3b918aa27098cca3e6aac4878c9aba8ed3b4f70c | 804892fd741a9148091f23e8f2bec6d3ea46b9f4 | /03-makinjson01.py | b45fb25103b6a895d6571bad105fd987a3d28a25 | [] | no_license | waysman1/pyapi | 2505a11ddc5dcb384089cae23063f135ffc7ee7e | 722b417640596cba18a1fdd8215138c36be5228d | refs/heads/master | 2020-06-26T03:55:09.826493 | 2019-08-01T14:31:54 | 2019-08-01T14:31:54 | 199,521,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | #!/usr/bin/python3
import json
def main():
hitchhikers = [{"name": "Zaphod Beeblebrox", "species": "Betelgeusain"}, {"name": "Arthur Dent", "species": "Human"}]
with open("galaxyguide.json", "w") as zfile:
json.dump(hitchhikers, zfile)
main()
| [
"lovern.m.ways@verizon.com"
] | lovern.m.ways@verizon.com |
20ebbca7b3ffa5f410d21772f07b0c1af4325148 | e208bd998583bbbefbb5ece714597d16b48ff557 | /webis_cpc/conv_net_classes.py | d8bea3a4b7a822330cb7414203ddf254bb44642e | [] | no_license | edithal-14/rdv-cnn | b321250d64fce43597c97042e37ab3882b9adc22 | 496b5cdf567e49e3a418230a53d39f8e116bc86a | refs/heads/master | 2022-11-07T06:07:54.188575 | 2020-06-22T08:14:41 | 2020-06-22T08:14:41 | 135,123,433 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,492 | py | """
Sample code for
Convolutional Neural Networks for Sentence Classification
http://arxiv.org/pdf/1408.5882v2.pdf
Much of the code is modified from
- deeplearning.net (for ConvNet classes)
- https://github.com/mdenil/dropout (for dropout)
- https://groups.google.com/forum/#!topic/pylearn-dev/3QbKtCumAW4 (for Adadelta... | [
"vigneshedithal11031997v@gmail.com"
] | vigneshedithal11031997v@gmail.com |
3a96346811d055e54895d05a8786a069e81c6271 | e1bd3e69307f37450474dcdc26a15620237f8075 | /src/Lang/Struct/_weakref.py | 5ed95b024acb24464af8bf3ee2955a560c10a1ee | [] | no_license | fwin-dev/py.Lang | 3cee40f71a1256852c984ebc94689972980d360c | 0a31f329083cd3108c6d23e096dd8916fab5ef48 | refs/heads/master | 2021-01-10T11:06:23.315900 | 2014-08-22T15:13:27 | 2014-09-02T12:57:59 | 46,517,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | from weakref import *
try:
WeakSet
except NameError:
from weakrefset import WeakSet
| [
"jcowles@indigital.net"
] | jcowles@indigital.net |
4f5fe63bb5539c2ab1cdc71d4e46fbf563676332 | cb9b7d4021372ef8a94b9fdd33497c3e4beaecfd | /myproducts/views.py | 370f3803a8d106f66ba0ddd9de69577f75c2ece4 | [] | no_license | Ksingh210/ProductHuntSite | ee7b40c2acbf8b184ee7db82af94528b06f2b865 | 9fbc44bfcab4ce5e05ce6a4f23d66b4dd43073fe | refs/heads/master | 2022-02-20T08:47:15.399553 | 2019-07-23T03:12:24 | 2019-07-23T03:12:24 | 198,342,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth.decorators import login_required
from .models import Product
from django.utils import timezone
def home(request):
products = Product.objects
return render(request, 'myproducts/home.html', {'products':products})
@login_re... | [
"48933892+Ksingh210@users.noreply.github.com"
] | 48933892+Ksingh210@users.noreply.github.com |
1a45ad4e67f457ab221279e1648af0437f4691e6 | 11aec16011fc8558e129da75f0ffcf22c79478fc | /pitchShift.py | 0d043765d7a730a705d74dd2b69870a8ff29f61d | [] | no_license | davhogan/VoiceChanger | a16ba91a89fde762700c982c5b9e09505843ac1e | 266cff3d8082523ba6e6093bd3c63f9599f3be89 | refs/heads/master | 2022-07-05T21:00:30.670735 | 2020-05-23T19:07:03 | 2020-05-23T19:07:03 | 265,057,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | from scipy.io import wavfile as sciwv
import numpy as np
import playsound as ps
import wave as wv
wr = wv.open('you-are-acting-so-weird.wav', 'r')
ww = wv.open('new_test.wav', 'w')
par = list(wr.getparams())
#par[3] = 0
#par = tuple(par)
ww.setparams(par)
sz = wr.getframerate()//20
c = int(wr.getnframes()/sz)
shift =... | [
"davhogan@pdx.edu"
] | davhogan@pdx.edu |
7c77dedc4523345a450f433b62b25679157a08b1 | 010bf55a456e8efb1fa01a5a8ecc9935586172b2 | /word_vector.py | 29b3c2fe7d24e6dc4f57a23331041eda1843401e | [] | no_license | GregoryElliott/TGMA_NLP_Project | 4b8007b28ccdb78e5ec794683b3d904a1d6c8ce6 | 15bc517287f7d822b815c84528f7fe67aaa4dfb1 | refs/heads/master | 2021-01-10T17:41:33.627749 | 2016-02-22T22:58:53 | 2016-02-22T22:58:53 | 51,664,371 | 0 | 1 | null | 2016-02-22T22:58:54 | 2016-02-13T20:28:42 | Python | UTF-8 | Python | false | false | 980 | py |
### Word-Vector
### (Utility)
########################################################################
#### Functions for String-Index-Vectors ####
#### Ex: "This is a sentence -> [0, 5, 8, 10, 19]
def get_string_indicies(string):
'''Returns a String-Index-Vector for a given string'''
indicies_vec = [0] ... | [
"gregoryelliott34@yahoo.com"
] | gregoryelliott34@yahoo.com |
2a1b6c4e693ea1167762441bbe43a0240db17793 | 48967ce8ec0af199f6551ab5e292251c88a2dc6d | /coding_bat/s2/count_hi.py | 8844830ff69b26059ef1f8827ed95895006c1bbf | [] | no_license | SteveVallay/coding-bat-py | 05bef046a1a67d5a56e3d37be3ef52e345ce13c4 | 15a3b8763a2c1c3f885472c090c60674d084ac09 | refs/heads/master | 2020-06-02T21:48:08.037853 | 2013-07-29T09:37:58 | 2013-07-29T09:37:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | def count_hi(str):
l = len(str)
s = 0
for i in range(l-1):
if str[i] == 'h' and str[i+1] == 'i':
s+=1
return s
print count_hi('abc hi hi')
| [
"zhibinwang.q@gmail.com"
] | zhibinwang.q@gmail.com |
de347e329b25a85d23fcff41b19e00cf9c42f632 | fdf9c968a41af28cc23e8e8953e0add22b6acd0e | /lab5/blog/articles/models.py | 807a56e28b6e8171376b09992100919a878a89fc | [] | no_license | Iccravy/KTP_LAB5 | 5147a48c130df5f25a0674dec13176ee65e49fb8 | 5edf330e26d46752a5785d689de6f364e545f32a | refs/heads/master | 2020-05-07T20:50:11.756169 | 2019-04-11T21:25:31 | 2019-04-11T21:25:31 | 180,880,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | from django.db import models
from django.contrib.auth.models import User
class Article(models.Model):
title = models.CharField(max_length=200)
author = models.ForeignKey(User)
text = models.TextField()
created_date = models.DateField(auto_now_add=True)
def __unicode__(self):
return "%s: %s" % (... | [
"noreply@github.com"
] | Iccravy.noreply@github.com |
7e0459af498a4370000525c2aa536f0fb419b5b1 | 77442878f78815bd54218ab0d43ed2b6ed7285be | /pie/type.py | a7dcfeb8d79df1af8f929d46f20aa5e7e07bc50c | [] | no_license | aisk/pie | 13dd844df56bcbb9ac7f463d857a4f72358cc4a3 | 03a2d96965542d5decf5325977ed81a9b028bf81 | refs/heads/master | 2020-05-30T18:32:52.451435 | 2013-01-29T11:33:22 | 2013-01-29T11:33:22 | 6,761,819 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py |
class Symbol(str):
pass
sym_define = Symbol('define')
sym_lambda = Symbol('lambda')
sym_if = Symbol('if')
sym_set = Symbol('set!')
sym_quote = Symbol('quote')
sym_begin = Symbol('begin')
sym_import = Symbol('import')
| [
"aisk1988@gmail.com"
] | aisk1988@gmail.com |
06b6262507579c051d9211fe7d8d5f7ba5cca652 | ac5f4c2fd9e3ef8bf23eaec36b6a4edae9a53aef | /lfortran/ast/tests/use_results.py | 24e6104f78f878f4ffa0a2d383644cadbe222a80 | [
"BSD-3-Clause"
] | permissive | milancurcic/lfortran | 893f6e61ad31cc115d4fa1e605d036b5ec732100 | ee31896bf56fdcaa3aa2e067e8de5536b70f6e38 | refs/heads/master | 2022-11-14T21:01:58.895808 | 2020-07-09T20:05:59 | 2020-07-09T20:05:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | results = [
('Use', (1, 1), 'b', []),
('Use', (1, 1), 'a', [('UseSymbol', 'b', None), ('UseSymbol', 'c', None)]),
('Use', (1, 1), 'a', [('UseSymbol', 'x', 'b'), ('UseSymbol', 'c', None), ('UseSymbol', 'd', 'a')]),
]
| [
"ondrej@certik.us"
] | ondrej@certik.us |
1929a1920e777863c342284fd742320c548dafe9 | 86e35d5c5e82626481e81b9a5f98a9f709b622e0 | /2017-2018/lecture-notes/python/09-dynamic-programming-algorithms_listing_2_fib_dp.py | 950d0e08067ec895221ec53b91359649d6d62fe8 | [
"BSD-2-Clause"
] | permissive | HughP/comp-think | dc439798a9d02551d92e64779fcebf31997ce692 | 3dac317bda0eb7650adc4a92c1ccb8a4ce87a3a6 | refs/heads/master | 2020-03-30T10:38:49.352365 | 2018-05-11T10:17:17 | 2018-05-11T10:17:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | def fib_dp(n, input_dict=dict()):
if n not in input_dict:
if n == 0 or n == 1:
input_dict[n] = n
else:
input_dict[n] = fib_dp(n-1, input_dict) + fib_dp(n-2, input_dict)
return input_dict[n]
if __name__ == "__main__":
n = 35
print("Input number:", n)
print("... | [
"essepuntato@gmail.com"
] | essepuntato@gmail.com |
75fd716a3c070aa52e013ba605bac2398ed59f88 | 7e4a4a504c4262da41e4228d004978bc8c4c52fb | /problem35.py | 86dfa2a47e05edf661114598d76c02562e104e90 | [] | no_license | manionan/project-euler | 7b1e5e40200d9df043fa46c1938b1dabfa33afb1 | a87e6615304ac0b61f2bb99757e636aebc0a6dfb | refs/heads/master | 2021-06-08T00:43:12.113738 | 2018-12-10T15:59:39 | 2018-12-10T15:59:39 | 31,432,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | def permutations(number):
perms = []
n_dig = -1
temp_num = number
while temp_num > 0:
temp_num /= 10
n_dig += 1
for i in range(0,n_dig):
perms.append( (number%(10**(i+1)))*(10**(n_dig-i)) + number/(10**(i+1)) )
return perms
print "perms 12045: ", permutations(12045... | [
"manionan+git@gmail.com"
] | manionan+git@gmail.com |
0851ff0e994b5575c57516bfc1cbd44921ca20fe | fdd3dce259fcd5ca5ba81a59670224fc05eada1e | /4/dream/__init__.py | c7aa94246d77f46d1b2207871eb7e241165ef3a3 | [
"MIT"
] | permissive | JacobFV/Computatrum-2019-attempt | 18f624a9b1b81717eb8effb74633964f4e8e7285 | 6b9c324f4e0e73e8d7af79bb7785d0e86d26bc31 | refs/heads/master | 2022-11-29T01:09:28.366881 | 2020-08-06T18:37:42 | 2020-08-06T18:37:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,910 | py | import numpy as np
import tensorflow as tf
class Intelligence:
def __init__(self, sensors, actuators):
self.o_vec_len=0
self.d_vec_len=0
self.sensors=[]
self.actuators=[]
self.add_sensors(sensors)
self.add_actuators(actuators)
def __del__(self)... | [
"jacobfv@msn.com"
] | jacobfv@msn.com |
56392c3f5b27404a1f2b2f1c34eaaa7e939a5d97 | ae101caf03a373e3ad6a2ea0fddd99038574e73f | /archivers/_file.py | 520d1dbd8cba9d093d393d76061f7e91ede8f63f | [] | no_license | internetimagery/todo | df9be99c34761191c4322eb315681fcd4e9a1cf8 | ed09c14f231da5613ec86a2a6ff6683d9a663eb1 | refs/heads/master | 2020-05-30T22:48:07.645472 | 2015-12-29T10:44:40 | 2015-12-29T10:44:40 | 34,398,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,092 | py | # File archive. Store off info into a folder
# Created 02/10/15 Jason Dixon
# http://internetimagery.com
import archive
import os.path
import zipfile
import time
import os
class File(archive.Archive):
def start(s):
s.settingName = "setting.file"
s.settingFileName = "setting.file.files"
def bui... | [
"jason.dixon.email@gmail.com"
] | jason.dixon.email@gmail.com |
56dcc1b15ee7166180b01fa29f55d6d123d95a1e | f1812503a3293037ac5a1f60012c4e803fe8f358 | /7-Kyuu/Two_oldest_ages.py | e7f7362891dd9ad871a0126b8a4519347717dd09 | [] | no_license | AgaK1/codewars_python | 197ef2a8d92ef058d0a4738756bdd79f9349c1bc | 36e6b9bfaa172b4b2434baa855d59f8839cf5f94 | refs/heads/master | 2023-04-04T13:46:09.262690 | 2021-04-24T10:50:15 | 2021-04-24T10:50:15 | 315,000,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # The two oldest ages function/method needs to be completed. It should take an array of numbers as its argument and return the two highest numbers within the array. The returned value should be an array in the format [second oldest age, oldest age].
# The order of the numbers passed in could be any order. The array wi... | [
"AgaK1@users.noreply.github.com"
] | AgaK1@users.noreply.github.com |
a7130034bf32eebeba61534e79a27b57963c3afa | db802b08020f53874d7be9f3d41b592c48b77ed4 | /strategy.py | 020e99cb89ebf9dab94bb4299fc6d499d67c3ce2 | [
"Apache-2.0"
] | permissive | pfrstg/bgend | 4b9e7c88084bd2213ad819ad58a78f96b156cac0 | e659597f8671d9769eff65498f5c3be91b54461f | refs/heads/master | 2020-12-06T13:52:46.061227 | 2020-05-31T22:10:06 | 2020-05-31T22:10:06 | 232,479,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,959 | py | # Copyright 2019 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, sof... | [
"patriley@gmail.com"
] | patriley@gmail.com |
baf487b29934108f64b1096cd4f6834ae9956240 | 400e869dff5595d5b1f3e2ddc09bb4f5dac54939 | /逐步代入降维/step.py | 364b6e45dcec8cc6d444cfb2c1bba7c207524088 | [] | no_license | ypc8272805/ICU-mortality-forecast | 45ea09d4df9e279a2d106bbb66e745403c8e8da0 | 72cc9747670f785debb694e5e56158cb3406829f | refs/heads/master | 2021-09-06T01:15:37.641726 | 2018-02-01T08:11:59 | 2018-02-01T08:11:59 | 119,774,558 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 21 09:10:47 2017
@author: zg
"""
import scipy.io as sio
from sklearn import svm
from sklearn import preprocessing
from sklearn.metrics import confusion_matrix
from sklearn import metrics
from sklearn.metrics import roc_curve, auc
import matplotlib.pyplot as plt
import... | [
"412358797@qq.com"
] | 412358797@qq.com |
2ea3eeb5bca725cb8094211a287afdb3f7beee07 | 8c573454a4e64d26109ce30a1f134242a2c0745f | /main.py | 71ea0af47990057fc97bdff9c8845c5edd0aa850 | [] | no_license | OliviaNocentini/concatenation | c8c461a36f9e74a56bd6a113f9ad63b675ab19e2 | e5d1ed7718f7513cca6071a6c8d63dabcde60830 | refs/heads/master | 2023-04-11T07:57:41.640639 | 2021-04-28T16:46:30 | 2021-04-28T16:46:30 | 362,542,855 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,232 | py | from FashionCNN import *
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
from torch.autograd import Variable
import torchvision
import torchvision.transforms as transforms
from torch.utils.data import Dataset, DataLoader
from sklearn.metrics import confusion_... | [
"o.nocentini@gmail.com"
] | o.nocentini@gmail.com |
f86c0c8bd14330b86459ff07a3f118d6d4657a55 | 003ffcf8144565404636f3d74590a8d6b10a90a4 | /121-best-time-to-buy-and-sell-stock/121-best-time-to-buy-and-sell-stock.py | 5ac3fb0f7733adcd44336159745074cdf03339e3 | [] | no_license | congve1/leetcode | fb31edf93049e21210d73f7b3e7b9b82057e1d7a | ce1e802b5052da2cdb919d6d7e39eed860e0b61b | refs/heads/master | 2020-05-13T19:19:58.835432 | 2019-05-06T00:44:07 | 2019-05-06T00:44:07 | 181,652,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | class Solution:
def maxProfit(self, prices: List[int]) -> int:
if not prices:
return 0
min_price = prices[0]
max_profit = 0
for price in prices:
if price < min_price:
min_price = price
elif price - min_price > max_profit:
... | [
"congve1@live.com"
] | congve1@live.com |
a6179c7b7ab05f45f07bccd48d9ab291ee20a507 | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /cors-anywhere-webserver/main.py | 840714b06997a3a565d33f6c533abccdb1e8d486 | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# TODO: append logging
import flask
app = flask.Flask(__name__)
app.debug = True
from urllib.request import urlopen, Request
@app.route('/')
def index():
url = flask.request.args.get('url')
print('URL:', url)
if url is None:
... | [
"gil9red@gmail.com"
] | gil9red@gmail.com |
687927b70dba012c7f0fa3ca371d40da97a1c9ba | b8e3363a40bc9928ae85c16232c5bf6240597a18 | /out/production/home-assistant/components/switch/scsgate.py | 7755168585e310461392d1ea73e8bc15c3313219 | [
"MIT"
] | permissive | LaurentTrk/home-assistant | 4cbffd5a71f914e003918542319bc6caa96dbb72 | 5a808d4e7df4d8d0f12cc5b7e6cff0ddf42b1d40 | refs/heads/dev | 2021-01-15T23:02:38.147063 | 2016-05-15T12:21:52 | 2016-05-15T12:21:52 | 51,471,180 | 2 | 0 | null | 2016-02-10T20:49:47 | 2016-02-10T20:49:47 | null | UTF-8 | Python | false | false | 5,589 | py | """
homeassistant.components.switch.scsgate
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support for SCSGate switches.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/switch.scsgate/
"""
import logging
import homeassistant.components.scsgate as scsgate
from ho... | [
"laurent.turek_github@gadz.org"
] | laurent.turek_github@gadz.org |
6ffc5872be65097b6a6998e7b83e67bba34b90e4 | 2fa35c9f536d86e91e78aef4ac482ece6b15c8fe | /lct/src/lcToolbox/lcToolbox.py | 6cdb2c733e0f373d5df74222b348ce2d3b814ed7 | [
"MIT"
] | permissive | leocov-dev/lct-legacy | f566a3b69a15da40ed197d4cf57c25d572924768 | 6fb135ac47d20026ee957a54fcd56baad7c4a893 | refs/heads/master | 2020-03-19T19:19:47.424487 | 2019-03-15T01:35:40 | 2019-03-15T01:35:40 | 136,850,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,294 | py | import functools
import math
import os
import pymel.core as pm
from pymel import versions
import lct.src.core.lcConfiguration as lcConfiguration
import lct.src.core.lcPath as lcPath
import lct.src.core.lcPrefs as lcPrefs
import lct.src.core.lcShelf as lcShelf
import lct.src.core.lcUI as lcUI
import lct.src.core.lcUpd... | [
"leo@leocov.com"
] | leo@leocov.com |
fa303d0893189bbad3f9eb0e4c2d7a525733c134 | 43825d5266e717d1e1bb0b6eb07b9c9e26015edc | /Images/image_car_count.py | 1ff39c2396a936cf3bdd6a3aebb927955d2d62fa | [] | no_license | navdeepuppal/Smart-Traffic-Lights-Triggering-System | b0a9f35bb57f927f92445d23c3897d0d8dbd7c74 | 44d1aa50df0a3fd43906caaf603fad2c6d98a464 | refs/heads/master | 2023-08-18T19:34:07.093977 | 2021-09-28T06:46:25 | 2021-09-28T06:46:25 | 408,417,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 8 01:12:51 2019
@author: Baazigar
"""
import cv2
def counting():
img = "C:\\Users\\Baazigar\\Desktop\\Images for project\\cars front.jpg"
cascade_src = 'C:\\Users\\Baazigar\\Desktop\\Images for project\\opencv-samples-master\\vehicle-detection-haar\\cars3.xml'
... | [
"navdeepuppal1609@gmail.com"
] | navdeepuppal1609@gmail.com |
238c6a60fb442dcb3398993ce5643b368b5eeae4 | f6241867ebf36cdd1c9f4de8819ab8d58e44c5d2 | /channels/models.py | fe75e50dd8cea76d6908ca2a524dc8cf88c9cc34 | [] | no_license | bratomes/work-at-olist | a96c76efa5220c8bc38a149707862ee503c81f5f | 85f21fc91532b40466f57b4ff928a4d47b605071 | refs/heads/master | 2021-01-19T10:48:21.787628 | 2017-06-28T13:46:34 | 2017-06-28T13:46:34 | 82,227,397 | 0 | 0 | null | 2017-02-16T21:22:17 | 2017-02-16T21:22:17 | null | UTF-8 | Python | false | false | 1,377 | py | from django.db import models
from django.db import IntegrityError
from django.utils.text import slugify
from hashid_field import HashidAutoField
class Channel(models.Model):
"""
Stores a channel and its related parent if exist
"""
id = HashidAutoField(primary_key=True)
name = models.CharField(max_... | [
"brunomsss@gmail.com"
] | brunomsss@gmail.com |
47e8758b2d4caf9a68b360328daad3dd0427bd11 | 19f1464599f7731854cc2c8e1f8085db3b2c4ec0 | /mask-rcnn/mrcnn/config.py | 878d8273d27333d53e631b7e54c4ca57c2ee458b | [] | no_license | sendeb/Instance-Seg-MRCNN-Building | f39f90720287be2dd9a8d3f66c4c46529457b957 | 17521e9eeec505c68f6e9377b93038098f49493c | refs/heads/master | 2022-11-22T04:23:36.589423 | 2020-07-22T03:41:22 | 2020-07-22T03:41:22 | 279,156,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,489 | py | """
Mask R-CNN
Base Configurations class.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
"""
import numpy as np
# Base Configuration Class
# Don't use this class directly. Instead, sub-class it and override
# the configurations you need to chan... | [
"noreply@github.com"
] | sendeb.noreply@github.com |
937afbe4f4cbb16d08ef660734905be59366a73a | 658a6fe8aa734e3a3710c10b72067fa791af0a26 | /Miscellaneous/Next Day.py | 3e43c188ef0c293a32f17142960ab047652c6f48 | [] | no_license | Mofvsv/Web-Crawler | ddf3997936f37f67f3a605892e4db95e3a56fe6b | 2f6b9a3c0f77fe6af18b5849a2b4602600bfac5b | refs/heads/master | 2021-01-20T14:04:55.495004 | 2017-05-22T02:51:04 | 2017-05-22T02:51:04 | 90,560,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | def isLeapYear(year):
if year %400 == 0:
return True
if year % 100 == 0:
return False
if year % 4 == 0:
return True
return False
def daysInMonth(year, month):
if month in (1,3,5,7,8,10,12):
return 31
else:
if month == 2:
if isLeapYear(year... | [
"elimustaf@gmail.com"
] | elimustaf@gmail.com |
e5fb2903fb14c73e5eba876cd0d8410b5ba6c111 | 3f82d4e8cbb11373151751799be0f246a3557d0b | /Service.py | 5b62739cb042051d2de430c58dc08829516b399a | [] | no_license | tejalbannore/todo-List | c28505e5a93fbbc5334fd65074e559c596989d83 | 88bea73d62ee383e22458700abee68b1c802c156 | refs/heads/master | 2023-02-16T14:21:35.738850 | 2021-01-12T10:16:01 | 2021-01-12T10:16:01 | 328,945,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # Service.py
class ToDoService:
def __init__(self):
self.model = ToDoModel()
def create(self, params):
self.model.create(params["text"], params["Description"]) | [
"tejalbannore@gmail.com"
] | tejalbannore@gmail.com |
c014c496ccc68ac4737b193b277ed7a029522fb3 | 8cc30a27835e205a3476783106ca1605a6a85c48 | /amy/fiscal/tests/test_membership_tasks.py | 0f1cb34f4fca4c635c961c964dac246cd47d8db5 | [
"MIT"
] | permissive | gaybro8777/amy | d968edc78bbd3f63f3353450334721628dbbc0f4 | 3cf99aed58a0f0acf83d2645a30d8408208ccea9 | refs/heads/develop | 2023-03-07T22:08:28.692700 | 2021-02-23T18:06:06 | 2021-02-23T18:06:06 | 341,930,505 | 0 | 0 | MIT | 2021-02-24T17:22:08 | 2021-02-24T14:40:43 | null | UTF-8 | Python | false | false | 4,329 | py | from django.urls import reverse
from workshops.tests.base import TestBase
from workshops.models import (
Membership,
)
from fiscal.models import MembershipPersonRole, MembershipTask
class TestMembershipTasks(TestBase):
def setUp(self):
super().setUp()
self._setUpUsersAndLogin()
self... | [
"piotr@banaszkiewicz.org"
] | piotr@banaszkiewicz.org |
d2e1d5f9f5d401d5359bd1dae4c90e39ff10d3c7 | 3756357852562a6c8fe48f983e0da1610d10ce9c | /DeepSecuritySDK/SmartCheckAPI/models/inline_response2006_vulnerabilities1.py | c27c1f288479a55921c8d645884dda1356840255 | [] | no_license | johnsobm/deepsecuritySDK | 5de8c788d190fa8c5b67fb0bb6b4c545ba74c754 | d15ef79aea91d0c9a3a2bb4ac71b8060e0b67bfd | refs/heads/master | 2020-04-03T22:53:11.692909 | 2018-10-31T23:40:47 | 2018-10-31T23:40:47 | 155,612,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,671 | py | # coding: utf-8
"""
Deep Security Smart Check
Deep Security Smart Check is a container image scanner from Trend Micro. # noqa: E501
OpenAPI spec version: 2018-05-01
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from Sm... | [
"brendanj@US-BRENDANJ-MAC.local"
] | brendanj@US-BRENDANJ-MAC.local |
85be99a2356a7e01b178c1fbee74d821dcbf0abc | 23744596dc030474be496d270352e40275ad2b6b | /src/backtest/sma.py | 4039a78d6318eaa741bc9614c910506cbc35af50 | [] | no_license | cloudinertia/coin_predict | 0419116d2a1b6ed41a44fcc2bd24e3a1d197433b | 469d659c0a0787d99a3f141c86562dd0a4bb2613 | refs/heads/master | 2021-08-28T21:45:57.360167 | 2017-12-13T07:00:17 | 2017-12-13T07:00:17 | 112,627,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | import bt
data = bt.get('aapl,msft,c,gs,ge', start='2010-01-01')
# calculate moving average DataFrame using pandas' rolling_mean
import pandas as pd
import matplotlib.pyplot as plt
# a rolling mean is a moving average, right?
sma = data.rolling(50).mean()
class SelectWhere(bt.Algo):
def __init__(self, signal):... | [
"oyt311@hanmail.net"
] | oyt311@hanmail.net |
79e211c40926d23198a0a93e3a9b9837c2ac7d8c | 1ee3306116be466e3fb58ff303798fbf4cdba73c | /blueprint/auth/__init__.py | fd41d24a3269969a4d281242e28ec6fc00ba9c1c | [] | no_license | SyamsulAlterra/project_rest | 0a38db5e8d02b38af8707d8616001eea0cf64751 | 2a736c9221a5dde0263c6d16495063210e2518e9 | refs/heads/master | 2020-06-27T19:44:42.231879 | 2019-08-02T09:36:05 | 2019-08-02T09:36:05 | 200,033,279 | 0 | 0 | null | 2019-08-02T09:36:06 | 2019-08-01T10:53:54 | Python | UTF-8 | Python | false | false | 1,382 | py | from flask import Blueprint
from flask_restful import Api, Resource, reqparse, marshal
from flask_jwt_extended import create_access_token, get_jwt_claims, jwt_required
from blueprint import db
from ..user.model import User
bp_auth = Blueprint('auth',__name__)
api = Api(bp_auth)
class CreateTokenResource(Resource):
... | [
"syamsul@alterra.id"
] | syamsul@alterra.id |
746407a2bf3f917a2a9651be71bdb6a32dcc8b13 | 1fd8e5db25f8ebc7cc4506cbb07ba98f717b667e | /virt/Lib/site-packages/nltk/internals.py | ba92adb168562ff46e0b970aaa0d1dce5ae45659 | [] | no_license | flatplanet/Intro-To-TKinter-Youtube-Course | 6103410435fc3b977fb44a4b08d045950ba10380 | cf988099fc358e52ed773273cb2e7ddb9d37d995 | refs/heads/master | 2022-10-06T10:02:38.689302 | 2022-07-18T18:11:12 | 2022-07-18T18:11:12 | 174,183,345 | 524 | 426 | null | 2021-10-10T16:16:44 | 2019-03-06T16:44:03 | Python | UTF-8 | Python | false | false | 38,644 | py | # Natural Language Toolkit: Internal utility functions
#
# Copyright (C) 2001-2021 NLTK Project
# Author: Steven Bird <stevenbird1@gmail.com>
# Edward Loper <edloper@gmail.com>
# Nitin Madnani <nmadnani@ets.org>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
import fnmatch
import ... | [
"johne4196@gmail.com"
] | johne4196@gmail.com |
7ec4d63dbc282d95ec7d4a10684ab866034ea6ff | acc303fc40aeb6bbdf42f8888d3350fba0db6651 | /src/train.py | 2871beaab7628c646b1b75fd1d14014adb92f7e3 | [] | no_license | Plutokekz/Selenium | 89449039933553bfd3ea5466f19b5d6061d86e49 | 7c83a1744e16e0a4f64521d503b946a54407e749 | refs/heads/master | 2022-03-11T19:08:49.025378 | 2019-11-23T16:07:58 | 2019-11-23T16:07:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | #!/usr/bin/env python3
# Author: omgimanerd (Alvin Lin)
#
# Executable CLI to run the genetic algorithm.
# Parameterizable via command line options, invoke with the -h flag.
from lib.field import Field
from lib.genetic_algorithm.population import Population
from lib.genetic_algorithm.chromosome import Chromosome
imp... | [
"LukasMahr@gmx.de"
] | LukasMahr@gmx.de |
e77973612e692fd3b030293e674a0b9778f66a1c | 623966abb5c12b65d9d138b8861bbdaf423ea029 | /task/models.py | 280f004477f9ace46d5d6bf54a5d0a8943478600 | [] | no_license | DattuBurle/fsf_2019_screening_task1 | d286b43094ee115155796611339b7cccedf0ce3f | 9fce3768763f91c74e4467f5b03d56b7782c5402 | refs/heads/master | 2020-05-03T16:15:17.449703 | 2019-03-31T17:24:22 | 2019-03-31T17:24:22 | 178,719,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
from django.db.models.signals import pre_save
from django.utils.text import slugify
from usercreation.models import Teamcreation
class Taskcreation(models.Model):
taskname=models.CharField(max_length=20,... | [
"noreply@github.com"
] | DattuBurle.noreply@github.com |
0e5fac1343217ff4e255358ad6836ca3b5d6d144 | ad10cd9aecb8e1b277996484a35f54544a3f56c4 | /New folder (3)/programs/Leap.py | 2ac7d0b521e18be3130c6142408cb77447070acb | [] | no_license | gokul05021992/whole-projects | 4a4264ec75e1878a3661145a63c99c2b4b7c8350 | 993a8b8db83266e434387730cc5f8b16e4a8b77e | refs/heads/master | 2023-05-22T18:36:38.651925 | 2021-06-13T01:09:11 | 2021-06-13T01:09:11 | 376,460,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | print("leap year program")
A=int(input("enter the year"))
if (A%4)==0 and A%100!=0 or (A%400)== 0:
print("print is an leap year")
else:
print("it is not a leap")
| [
"bgokul92@gmail.com"
] | bgokul92@gmail.com |
61c9b0a2513a642e0bc973a108e7dbfe96ca4190 | 04fd4078e0a2c4424616dca36fd3f9dfbf8a57d6 | /settings.py | a891f124f0259cb175052a99dab30a8b65b81dc1 | [] | no_license | Vickyarts/Alien-Invasion | 6d97359460b37600cf33246868dfd3550d637f4d | e71173547db1b86312741e8d12705ea142f50753 | refs/heads/master | 2022-12-25T11:45:59.356937 | 2020-09-30T10:51:39 | 2020-09-30T10:51:39 | 299,854,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | import json
files = 'save.json'
def load_res():
"""Loads the resolution from the save file"""
with open(files) as f:
resolution = json.load(f)
return resolution
class Settings:
"""This class stores all the settings"""
def __init__(self):
self.resolution = load_res()
self.screen_width = self.resolution[0... | [
"noreply@github.com"
] | Vickyarts.noreply@github.com |
02b665951ef992eba2d27a4644e0dbf98ef86bd0 | 7d2f933ed3c54e128ecaec3a771817c4260a8458 | /venv/Lib/site-packages/pandas/tests/indexes/categorical/test_constructors.py | 129203c1f9c7f81043d6bcdd4aa9435776f685d1 | [] | no_license | danielmoreira12/BAProject | c61dfb1d0521eb5a28eef9531a00e744bfb0e26a | 859f588305d826a35cc8f7d64c432f54a0a2e031 | refs/heads/master | 2021-01-02T07:17:39.267278 | 2020-02-25T22:27:43 | 2020-02-25T22:27:43 | 239,541,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,822 | py | import numpy as np
import pandas._testing as tm
import pytest
from pandas import Categorical, CategoricalDtype, CategoricalIndex, Index
class TestCategoricalIndexConstructors:
def test_construction(self):
ci = CategoricalIndex(list("aabbca"), categories=list("abcd"), ordered=False)
categories = c... | [
"danielmoreira12@github.com"
] | danielmoreira12@github.com |
1785e1f68c5a312cfcad5c9e9a38d082a0f42cc8 | 6cc8b485c7e07a21ec7d838f9baf777edebaac76 | /seoman/utils/export_utils.py | 7ab1187b9c1b0e5d9a5a3994949c8229f503e604 | [
"Apache-2.0"
] | permissive | rawen54/seoman | aff27fc33a62697abb9ac0f24cb443b836a01be8 | 2372b4b330104ef1829a4a1c54669963830f7805 | refs/heads/main | 2023-01-05T09:16:42.129254 | 2020-11-01T18:08:31 | 2020-11-01T18:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,528 | py | import csv
import json
import sys
from collections import OrderedDict
from time import time
from typing import Any, Dict, List, Optional, Union
import typer # type: ignore
from halo import Halo # type: ignore
from pytablewriter import TsvTableWriter, UnicodeTableWriter # type: ignore
class Export:
def __init_... | [
"yagizcanilbey1903@gmail.com"
] | yagizcanilbey1903@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.