blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c8eaaea75b6e51740f05c80b5ee3c3dfc6fa2213 | 11ef4bbb8086ba3b9678a2037d0c28baaf8c010e | /Source Code/server/binaries/chromium/pyproto/components/data_reduction_proxy/proto/client_config_pb2.py | d1f0ee35068d28902cf5e4a9b884c2deee8f29be | [] | no_license | lineCode/wasmview.github.io | 8f845ec6ba8a1ec85272d734efc80d2416a6e15b | eac4c69ea1cf0e9af9da5a500219236470541f9b | refs/heads/master | 2020-09-22T21:05:53.766548 | 2019-08-24T05:34:04 | 2019-08-24T05:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 23,912 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: client_config.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as ... | [
"wasmview@gmail.com"
] | wasmview@gmail.com |
12358f25a48a53f1851f8ac5027fdd19a6973bab | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/client/gui/scaleform/daapi/view/lobby/crewoperations/__init__.py | bd54d7b315bf7025de933b9384553c691e7e1edd | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,734 | py | # 2016.05.01 15:21:39 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/crewOperations/__init__.py
from gui.app_loader.settings import APP_NAME_SPACE
from gui.shared import EVENT_BUS_SCOPE
from gui.Scaleform.daapi.settings.views import VIEW_ALIAS
from gui.Scaleform.framework... | [
"info@webium.sk"
] | info@webium.sk |
9baff287e239eb05a1ef6a35cf6304506d4adb99 | a6c4bffcdb9341fc0a78b1b6c8ab164a21cf1b88 | /src/test/jython/scenarios/create-ci.py | 642d6acfed594fb1d9bca760b2eb801f9ba8c96b | [] | no_license | acierto/xld-simple-itest | 5d4299475512305b4637e8907ed77b3d7b02309e | b574d87f29946d2940110975cc846ea39615b24d | refs/heads/master | 2023-08-02T10:31:18.616262 | 2021-10-09T19:30:15 | 2021-10-09T19:30:15 | 402,369,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from asserts import assert_true
from variables import *
repository.create(factory.configurationItem(my_ci_id, 'udm.Application'))
assert_true(repository.exists(my_ci_id))
| [
"bogdannechiporenko@gmail.com"
] | bogdannechiporenko@gmail.com |
0e536a419c8eaf8064d4388c6bd6fbf237af1039 | ae7884af1ec3965b7c0eec22edad6b74f78b7ba6 | /client/full/src/UDSWindow.py | 86e5b3b9b59538fda5013a6802deb4d95ceee0e4 | [] | no_license | glyptodon/openuds | f4eefa319a3ead827dad999d24e5ee3854d1345d | 3908c875d30ec332490fc8c049bb537e10f10d08 | refs/heads/master | 2021-07-12T20:58:49.281242 | 2021-03-05T22:42:55 | 2021-03-05T22:42:55 | 62,921,174 | 0 | 1 | null | 2016-07-08T22:33:44 | 2016-07-08T22:33:44 | null | UTF-8 | Python | false | false | 4,671 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UDSWindow.ui'
#
# Created: Mon Apr 27 21:41:43 2015
# by: PyQt4 UI code generator 4.11.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attr... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
8e913422bd3786eec0ad23c71117784facfb577a | a5d595758a9e7ade25dc9fefef0a34c7c5d29793 | /dbcheck/backup20190411/urls.py | 7eeaabf07ec2a0083849559b98884f1ea6475800 | [] | no_license | jimleelcc/db_check | 617f9333580980e59d4dc23210cb6837bd5a0a85 | e612d88fd02887a7792654fb39b7f8a810c29cb8 | refs/heads/master | 2020-05-07T06:04:13.710198 | 2019-04-29T07:55:02 | 2019-04-29T07:55:02 | 180,300,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | """db_check URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Cl... | [
"jimleelcc@163.com"
] | jimleelcc@163.com |
2bcbb735cff5789e85181f5727d8cd8b179d8ebe | 8063aea3d2027dd276833920241191bd0f5c7c24 | /models/db.py | cc95dd973e90c29097def05e7e30218826303c09 | [
"LicenseRef-scancode-public-domain"
] | permissive | AneeshNi47/studentPortal_v2.0 | 941aeca2a93cab2b317545bc36f9586584f1d746 | 6f1c9c3761c1a721e673e2357523ebbd478ed857 | refs/heads/master | 2022-08-19T10:35:03.237836 | 2020-05-19T11:56:19 | 2020-05-19T11:56:19 | 265,229,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,970 | py | # -*- coding: utf-8 -*-
# -------------------------------------------------------------------------
# AppConfig configuration made easy. Look inside private/appconfig.ini
# Auth is for authenticaiton and access control
# -------------------------------------------------------------------------
from gluon.contrib.appco... | [
"dr2633@gmail.com"
] | dr2633@gmail.com |
8d39d513b953e20af76adb3ade5e4b70e784465d | 8d4eda3d503ee6a1b0070277d10d7cf56a9eeba1 | /airflow/dags/main_dag.py | 32384d0ed17a9363192ccf210f6a7c247d3a9cea | [] | no_license | nickrinaldi88/open-media-airflow-task | e828ae4fea4d95bb55ee965c55279d709f5a5083 | 5de1adc996cf1eb7947322a50b64a70ac5e1fc9d | refs/heads/main | 2023-06-12T19:40:04.348117 | 2021-07-13T07:41:06 | 2021-07-13T07:41:06 | 385,518,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | from airflow import DAG
from airflow.operators.python import PythonOperator
from airflow.utils.dates import days_ago
from airflow.utils.email import send_email
import requests
import smtplib, ssl
# NYTimes API_Key
the_key = "W3dEB3luQTF3eQkVjBzctrnJiTPAnwEm"
# functions
def fiction(**kwargs):
fict_link = "https:/... | [
"noreply@github.com"
] | noreply@github.com |
72c03beb9b0700405b06efd9f97b32a0c3121230 | ae5196cde80fca21dee4476402aebd4068efb2ba | /env/bin/celery | 9d6555597283d738bce6d7ca3230fcaee4176789 | [
"MIT"
] | permissive | NarminSH/e-commerce-sellshop-project | 14f6574d75fa8e62ad36477f715ce6519a4ba20a | a753038c8265473021e21f75b6b095bdc25f43d6 | refs/heads/master | 2023-07-09T06:58:38.539380 | 2021-08-14T05:36:49 | 2021-08-14T05:36:49 | 391,944,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/Users/narmin/E-commerce-Sellshop-Fuad-Nermin/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from celery.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"narmin@Narmins-MacBook-Air.local"
] | narmin@Narmins-MacBook-Air.local | |
78004d7910e21fa37c84577915f342739ccd0289 | a318a50ccaf875312ec7006749d90c8c74b45230 | /FF2Actual/pirRUN.py | 419ba99ef010864967069f3788c4af171a3750e8 | [] | no_license | freelfeel/freel-feel | b7585d575a77ec6dce3473538cd94a211b43df15 | 4ea0f37e7abcc4239544f14e86ed64a6f6f05dbf | refs/heads/master | 2020-07-20T18:40:06.739874 | 2019-09-14T15:17:29 | 2019-09-14T15:17:29 | 206,693,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | import sqlite3
from time import sleep
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM) # set up BCM GPIO numbering
# Set up input pin
GPIO.setup(21, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
# Callback function to run when motion detected
def motionSensor(channel):
if GPIO.input(21): # True = Rising
glo... | [
"js5986@mcla.edu"
] | js5986@mcla.edu |
30675481c763c437ca3ad16be59f3b96c205bdd5 | a62da0b36dab65f967fa815f6ae8afca0fee143d | /matpro/settings.py | 8bd9c09ce649686342688ade542b17952b35809f | [] | no_license | tngscstewa/webapp1 | 5ee41ff07c6078986bfb2266fc93542ea2d062a5 | ccc0f74c49a167735707167ab51d54789a1d1f5e | refs/heads/master | 2021-01-19T04:41:19.347454 | 2017-04-06T04:53:20 | 2017-04-06T04:53:20 | 87,387,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,005 | py | """
Django settings for matpro project.
Generated by 'django-admin startproject' using Django 1.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"mravikumar281@gmail.com"
] | mravikumar281@gmail.com |
a02af27a56a97577f714967d39b2441d5aecd93c | fb55b3e010383b947f2ab4fbe196fe9d37638ea3 | /convNet/CNN/loadExperiment.py | 1d71266f7ac46d51b86e3393eea875eaa7643215 | [] | no_license | leenachennuru/objectDetector | 0bee35558359899c7847a16753f9ffed6684212f | 93692ba6edba9eb7bfa425571402ede7ecd30109 | refs/heads/master | 2020-11-27T06:19:37.061460 | 2019-12-20T21:10:35 | 2019-12-20T21:10:35 | 229,336,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
from Utils import DataUtil
import MCCNNExperiments
def loadExperiment():
modelDirectory = ""
networkTopology, trainingParameters, experimentParameters, visualizationParameters,networkState = DataUtil.loadNetworkState(modelDirectory)
print networkState
saveNetworkParameters... | [
"leena.bitspilani@gmail.com"
] | leena.bitspilani@gmail.com |
37d941f792fa48d7a9e004ef6b72e23c49be792e | a1f2243b12574b3cc661fbf5c43025f6f35bb302 | /app/test/test_user_model.py | bf7b547cf21484f5167103572328fe4538f10c0a | [] | no_license | HeshDeng/flask_restful_plus | f1130c5ecbcc136b444794fc89320aa63e579273 | 88333667af94c91273bc0991ee66043bdbde3d7b | refs/heads/master | 2023-03-07T18:46:56.489526 | 2021-02-19T18:25:33 | 2021-02-19T18:26:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | import unittest
import datetime
from instance import db
from app.auth.model.user import User
from app.test.base import BaseTestCase
class TestUserModel(BaseTestCase):
def test_encode_auth_token(self):
user = User(
email='test@test.com',
password='test',
registered_on=... | [
"danielmutubait@gmail.com"
] | danielmutubait@gmail.com |
5aa8cd6d7c27f89e24f69be0c37b13775f267832 | c09d67a91fe45d8d8677af8793ac922e4d8edc5e | /users/migrations/0001_initial.py | a89489f9551f0e07e5ddc9fff121ca6ac7e0b793 | [] | no_license | django-py3/hw1-cw | 90a6b5e0a539b9187deb996b3811d04862bf113a | 61c2ee1cfe054239e77843b8d7ee91f856ddff50 | refs/heads/main | 2023-02-04T19:18:00.698759 | 2020-12-24T09:32:23 | 2020-12-24T09:32:23 | 324,118,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | # Generated by Django 3.1.4 on 2020-12-24 09:14
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_m... | [
"admin@cpnc.ru"
] | admin@cpnc.ru |
1e7b7465c43faa8bb4dfb5af99ccffd1b8f01c61 | 9c0005c49a5613482f8e9587ce5fd6c2a187cfae | /app/common/models.py | 389ef569b30b50fbbe271c09d60a8486ced4823f | [] | no_license | hathehuyen/dms | 66f6f0b2642d76385d0ffe7bd4992e78faf7877e | b30f6a7589d57cc44ee498f5040b2b94f0766643 | refs/heads/master | 2021-01-19T11:48:52.985507 | 2017-03-01T07:00:41 | 2017-03-01T07:00:41 | 82,259,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | from app import db
from datetime import datetime
class DC(db.Document):
name = db.StringField(max_length=255)
class Rack(db.Document):
name = db.StringField(max_length=255)
dc = db.ReferenceField(DC, reverse_delete_rule=3)
class Server(db.Document):
name = db.StringField(max_length=255)
ip = d... | [
"hathehuyen@gmail.com"
] | hathehuyen@gmail.com |
14c05659bfcf17e4fd5989ae12e8a8272b62a798 | dfe0798a322dca6b90e10743936c500e618ff078 | /Sample_Project/env/lib/python3.8/site-packages/sipconfig.py | 1dd5c9bc7e2d6bcd641e27dea9ab88bf6031ba90 | [
"Python-2.0"
] | permissive | SenthilKumar009/Udemy-MLandDS-CompleteMastery | 7d0ff9d2ffa688ba35de5667441eafc443f9792a | ca5e867134ad2bbf03d158d78b34905390ab58b2 | refs/heads/master | 2022-11-21T16:01:51.416001 | 2020-06-16T03:15:48 | 2020-06-16T03:15:48 | 270,206,193 | 1 | 1 | null | 2022-11-16T05:57:51 | 2020-06-07T05:44:20 | Jupyter Notebook | UTF-8 | Python | false | false | 97,321 | py | # This module is intended to be used by the build/installation scripts of
# extension modules created with SIP. It provides information about file
# locations, version numbers etc., and provides some classes and functions.
#
# Copyright (c) 2018 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file i... | [
"senthilkumark.nitt@gmail.com"
] | senthilkumark.nitt@gmail.com |
b421f5e2d10199b35ff6dac26b1833a2b4494e64 | 7003e1063fa4d49e980513ceff977b320ce8f946 | /Alexa_Lambda/lightbulb.py | 1e71f31c05e88a37b26a9daae598a769ccd14090 | [] | no_license | Blacklagoon21/alexa | 1bc1e01e35df27cc97aa2268fdaa8a7a00451619 | e857a9b20dc29276b9aa44d5716e2fd83c687ad0 | refs/heads/master | 2021-01-12T06:43:49.299996 | 2017-03-12T02:13:20 | 2017-03-12T02:13:20 | 77,425,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,782 | py | import boto3
import json
client = boto3.client('iot-data', region_name='us-east-1')
def lambda_handler(event, context):
access_token = event['payload']['accessToken']
if event['header']['namespace'] == 'Alexa.ConnectedHome.Discovery':
return handleDiscovery(context, event)
elif event['header'... | [
"jskim@wahaha.com"
] | jskim@wahaha.com |
1a1d21f483e121dd2943b331e40dd918bb4e8f46 | c81a43219c129226b5b8a15c22a09a58c32c6a46 | /Project Files/Desktop Apps/edit.py | 8600d560ae630f834e15388ba14a63caab35de12 | [] | no_license | Arbind15/Digital-Election-System | 60d99c514712d93d17985e588daa5827a13137d6 | 7e24999fe36d32a7370f3ad0972db388986d68f1 | refs/heads/master | 2023-04-29T18:03:12.714873 | 2021-05-15T08:58:49 | 2021-05-15T08:58:49 | 367,583,597 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | from tkinter import *
from tkinter import ttk
import sqlite3
from ttkthemes import ThemedTk
from tkinter import messagebox
nsc=ThemedTk(theme="Clearlooks")
tctzn = StringVar()
nsc.title("voter_list")
nsc.geometry("400x300")
nsc.resizable(False,False)
nsc.iconbitmap("gov2.ico")
def sreh(*args):
global vid
c = ... | [
"mehtaarbind67@gmail.com"
] | mehtaarbind67@gmail.com |
0a6458bdf8565d19e20fe92d7fda935c45dc7498 | b24d392755dabd84fb773c90a3bf1e03d0cd11c5 | /Microsoft/MaximumLengthofAConcatenatedStringwithUniqueCharacters.py | e781f02252862b0374325b12c9736d6db6761e6e | [] | no_license | Shivani161992/Leetcode_Practise | 5b884268707c19cc1a3012c0fb2321c58d5147c0 | dd6f9a9ac3365562c606947c082f043e5100df05 | refs/heads/master | 2023-08-16T06:34:22.010913 | 2021-09-16T02:01:58 | 2021-09-16T02:01:58 | 279,668,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from typing import List
arr = ["cha","r","act","ers"]
class Solution:
def maxLength(self, arr: List[str]) -> int:
print()
obj=Solution()
print(obj.maxLength(arr))
| [
"shivani@Shivanis-MacBook-Pro.local"
] | shivani@Shivanis-MacBook-Pro.local |
eb7705bd6b9d8e6677c1899be7ba4d2bdc3f42a1 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/models_20201114185225.py | 1f3117e89b2e0690542e5f302aea450246571448 | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,606 | py | from django.db import models
import re
class UserManager(models.Manager):
def basic_validator(self, post_data):
errors = {}
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
if len(post_data['first_name']) < 3:
errors['first_name'] = "First name must b... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
54cb94089dd749e840ba0fb3d63c0f51b17ef44d | 62aa8f8b60211dae22edeb6092dca002bbd2df10 | /manage.py | 833110e0d5cf0fae04b48dd98793b82ef0f89988 | [] | no_license | DrewCCannedy/nanoweb | 6cc9e2b276077e6b47455f001c1b458d78b93686 | 7600a89d1f1460997b5fd5c50378921fac9be468 | refs/heads/master | 2020-04-14T03:40:40.165577 | 2019-01-27T23:41:17 | 2019-01-27T23:41:17 | 163,613,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'nanoweb.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are ... | [
"dxc142830@utdallas.edu"
] | dxc142830@utdallas.edu |
4c8e78db4ffb26d284ea68f60686fd8c790bf8d5 | 78c7b0219af84c63c1ea0de3c91ad358cacc1067 | /Deep Learning In Python/Optimize a neural Network/Scaling for multiple points/for multiple points.py | 612d908cf96cc2fc8e1aac09d29429f23502ca87 | [] | no_license | rahuls321/Data-Camp- | 576ef5b2d8682eed4a729cf319d6c22bb0c21dbf | 414698a7d4ac0118362e7cc29770d4beb09d1813 | refs/heads/master | 2021-08-28T06:27:20.385444 | 2017-12-11T12:11:23 | 2017-12-11T12:11:23 | 107,133,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 17 18:52:00 2017
@author: hp
"""
"""Scaling up to multiple data points"""
from sklearn.metrics import mean_squared_error
# Create model_output_0
model_output_0 = []
# Create model_output_0
model_output_1 = []
# Loop over input_data
for row in inp... | [
"noreply@github.com"
] | noreply@github.com |
6f02d7e1c07128df90d53d4ba42ca76fc3869c11 | 209b02100c49932a43cf147cd115e7c3722f320b | /client/forms.py | 9114ef0f53326718ef8bd0ea5c5dddf4814db407 | [] | no_license | elitehealth/tracker | 3e4f7dfae5b2cf23bd4eb67306fa05e66300d09b | c05af21d57d23f06b847f8cab208de40f34c39e4 | refs/heads/master | 2021-01-20T20:15:10.091991 | 2016-07-25T10:48:16 | 2016-07-25T10:48:16 | 62,283,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from django import forms
from .models import Client
from django.template.defaultfilters import mark_safe
class ClientForm(forms.ModelForm):
class Meta:
model = Client
fields = [
'client_name',
'date_sign_up',
'program_sold',
'gross_sale',
... | [
"haykm2000@mail.ru"
] | haykm2000@mail.ru |
3d8fd81eb1554e7c0714d3e41616b558aba6dd78 | 1ac09c0d00b07b43c7559f82f61f756eecb5ad63 | /tracker/routes/.~c9_invoke_7Hv6Ln.py | bf5856d42ab232dc7f0f91b157fd057d795dd7a1 | [] | no_license | Code-Institute-Submissions/product-request-tracker | 1dc2566418baac5cd20f7eb416c6c785d522575c | c60dda121fbed22e41ff3d3b5096aa560a639a9a | refs/heads/master | 2023-05-10T06:01:04.432210 | 2020-02-25T19:02:07 | 2020-02-25T19:02:07 | 243,238,880 | 0 | 0 | null | 2023-05-01T21:21:04 | 2020-02-26T10:47:03 | HTML | UTF-8 | Python | false | false | 2,203 | py | from flask import Blueprint, render_template, request, redirect, url_for, flash
from flask_login import current_user, login_required
from tracker.extensions import db
from tracker.models import User, Posts, Suppliers, ProductType, Actions
main = Blueprint('main', __name__)
@main.route('/')
def index():
posts = P... | [
"ubuntu@ip-172-31-82-111.ec2.internal"
] | ubuntu@ip-172-31-82-111.ec2.internal |
329910711ef3ac8a418e5eb0a24d83f6f3d988ea | 0997e8f18d60d1f2604503b86494f4d7b23bcc1e | /Learning_Log/11_env/bin/sqlformat | b8f6dd5b6d2ba3b2ed495eea53e269bc7808f1f8 | [] | no_license | logicoperation66/django | b5e396466639e26a4717fd71f6078f3f47b005e0 | 3965e90f946289b150d4d95e71e906e53b85a91b | refs/heads/master | 2023-08-11T22:00:45.404296 | 2021-09-23T19:25:34 | 2021-09-23T19:25:34 | 398,197,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/home/stinky/Django/Learning_Log/11_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"adamwawrzyniak5@gmail.com"
] | adamwawrzyniak5@gmail.com | |
4ef37dccd854b3f0c8840a637f5106f0cb309ae1 | 68d1ca476ef78673f3bd5a87c3f27ef4c175e048 | /src/service/extra.py | a405e57e4e37b02be48c27b110f7056574819949 | [] | no_license | yashjhaveri05/e-bazaar | 919c28e3ae23d873ea407357a0165fc33c3d143d | 30b9fff5e63986271daf3c4a8f00dd1650564b0d | refs/heads/master | 2022-11-15T05:19:14.547823 | 2020-07-05T04:04:24 | 2020-07-05T04:04:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,045 | py | from flask import Flask, jsonify, request, json, session
from flask_session import Session
from flask_mysqldb import MySQL
from passlib.hash import sha256_crypt
from functools import wraps
import json
from flask_cors import CORS, cross_origin
app = Flask(__name__)
SECRET_KEY ='e-bazaar'
SESSION_TYPE = 'filesystem'
cor... | [
"yashj65@gmail.com"
] | yashj65@gmail.com |
f1d33a9fad9c5452c92e93fe30a2402dfbdda70c | 1ea860f218305659e191ae6ea1f8eef5236648a9 | /examples/colors.py | e9268aad8af824f6a48373203d4f1c8cac5c92ac | [
"MIT"
] | permissive | jethornton/dxf2plasma | 9e275c8c73dee376826bbeeeff51e609d3f34df2 | 27fd782448cb27b719884eeee319627cbc96c8f6 | refs/heads/master | 2020-09-06T14:49:26.514127 | 2019-11-13T18:17:05 | 2019-11-13T18:17:05 | 220,456,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | #!/usr/bin/python3
from PyQt5.QtWidgets import QWidget, QApplication
from PyQt5.QtGui import QPainter, QColor, QBrush
import sys
"""
A colour is an object representing a combination of Red, Green, and Blue
(RGB) intensity values. Valid RGB values are in the range from 0 to 255.
We can define a colour in various ways.... | [
"bjt128@gmail.com"
] | bjt128@gmail.com |
9224e3b6fd5ee51d5e3bedab4db8f511118ba694 | 4dc36ab07a02b3e0fa8102c4e86cb69c402e0b96 | /openai_spinning_up/src/visualization/visualization.py | 06252f230ee1ad3eafbcffc9b9b5b76b50387625 | [] | no_license | fritjofwolf/rl-zoo | 0ba628dbc2a49118743bdf50f6f6edcaa7f6095b | a4ca0a656479e4c0a30ccf937ddab7d1c4a57eac | refs/heads/master | 2020-03-23T15:36:53.075300 | 2019-11-26T18:06:16 | 2019-11-26T18:06:16 | 141,761,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | import matplotlib.pyplot as plt
import numpy as np
def visualize_episode_return(episode_returns, colors, smoothing_window = 100, title=''):
n_runs = len(episode_returns)
episode_mean_returns = [[np.mean(episode_returns[j][i-smoothing_window:i]) for i in range(smoothing_window, len(episode_returns[j]))] \
... | [
"fritjofwolf@gmail.com"
] | fritjofwolf@gmail.com |
4f1483114b60a70f6e62341fea4736adc8e4abbf | 35f9695acb95029f2dd87a2cc214b0b34935de17 | /update.py | 9f4da1693c181b6386fe9b140233603190f5e838 | [
"BSD-3-Clause"
] | permissive | dragonix11/aurdiff | b5382e7fd38f4d2c370ad157fcaf18d8ba48c0d9 | b4ffdb2afcd30cac7cf24ca42fab0f0cdc7130e0 | refs/heads/master | 2021-01-18T18:43:29.145163 | 2013-11-10T10:19:26 | 2013-11-10T10:19:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,337 | py | # Copyright 2013 Virgil Dupras (http://www.hardcoded.net)
#
# This software is licensed under the "BSD" License as described in the "LICENSE" file,
# which should be included with this package.
import os.path as op
from urllib.request import urlopen
import subprocess
import json
from bs4 import BeautifulSoup
HERE =... | [
"hsoft@hardcoded.net"
] | hsoft@hardcoded.net |
7b9bd540581484c8680a1ae63384c40888b2f12c | 7b4820948845f55274b211d676ab8a6253a6298b | /addons/plugin.video.icefilms/resources/lib/resolvers.py | 36e1264a0b0330c1387add5a845b2d5bbb7ed891 | [] | no_license | bopopescu/mw | 524c57d4b859751e298b907a12e44e9711ef72a6 | 5ef2acea0fb4150578e53201463c6bc5da37be20 | refs/heads/master | 2021-05-30T19:33:11.750160 | 2016-01-11T05:28:46 | 2016-01-11T05:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,586 | py | import xbmc,xbmcgui
import os
import urllib, urllib2
import cookielib
import re
import jsunpack
''' Use addon.common library for http calls '''
from addon.common.net import Net
from addon.common.addon import Addon
net = Net()
addon = Addon('plugin.video.icefilms')
datapath = addon.get_profile()
cookie... | [
"bialagary@Garys-Mac-mini.local"
] | bialagary@Garys-Mac-mini.local |
a7c50385510fa1aef180144873059fe6347ffd58 | 9816c7cc09cc1129b6c9d68a5c07a4b2d8368f52 | /upload-lambda.py | 1fdac0470ebbfb2edf8cbb06eed89da379d2b9ab | [] | no_license | lukeblanchard/aws-serverless | c7c31d3808c045ef3d70aa56022c0a791f3545f0 | 7dea9a2700aa7fa049943826b2ba95f1755a9be3 | refs/heads/master | 2020-09-12T04:49:24.095654 | 2019-11-18T21:48:51 | 2019-11-18T21:48:51 | 222,312,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | py | import zipfile
import boto3
import mimetypes
import os
import tempfile
def lambda_handler(event, context):
s3 = boto3.client('s3')
sns = boto3.resource('sns')
topic = sns.Topic('arn:aws:sns:us-east-1:171754680472:deployPortfolioTopic')
location = {
"bucketName": "portfolio-build-blanchlu",... | [
"lucas.blanchard@accenture.com"
] | lucas.blanchard@accenture.com |
507b371514e0442eb6f87429ff7907f9236960bd | bb0de69113e40dc7fb320dcb36673ff5674e00a8 | /plugins/ed.py | 15dd338cf223f21103d793b13610f5717919c484 | [
"MIT"
] | permissive | lucasberti/telegrao-py | 14bb345cbc427442c738609c4e4531d01647ea89 | 84fbe0219b3f8e8e88e4e999ad239b4bdc741c2d | refs/heads/master | 2023-05-08T02:48:37.661478 | 2023-04-28T23:31:04 | 2023-04-28T23:31:04 | 90,514,350 | 0 | 6 | MIT | 2019-08-15T02:29:04 | 2017-05-07T06:51:07 | Python | UTF-8 | Python | false | false | 962 | py | import api
import requests
import re
import urllib.parse
def talk_to_ed(message):
print(urllib.parse.quote_plus(message))
ed_endpoint = f"https://in.bot/api/bot_gateway?pure=1&js=0&bot_id=133&bot_token=AGI-v01-EDo42vk8&user_phrase={urllib.parse.quote_plus(message)}"
try:
response = requests.get(e... | [
"berti.lucas@gmail.com"
] | berti.lucas@gmail.com |
b0e69a031739077a767cdafd2511b0f7aa533072 | acd3b502c2b9ed9ebaec6b327bbac9ce4e8a2351 | /PlexxiControlConfig.py | f303b33f57aaf5b0f631c7dc68c759338582d6c8 | [] | no_license | Plexxi/PlexxiControlCLI | 2601e1ad8604b37bf4e437d03f1f5623ba409650 | b832f2887ace04505fcb8f4376a2559b44e26363 | refs/heads/master | 2020-12-30T10:23:40.249129 | 2013-12-23T19:15:33 | 2013-12-23T19:15:34 | 15,348,188 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | # # Copyright 2013 Plexxi, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"github@plexxi.com"
] | github@plexxi.com |
01b9d1dfee913af7088cefd35643f63890bd0718 | c761e7af80ddc703b00f8791f185798c415b4fec | /include/netloader.py | 43c3eb520fbf362c69d8156f678837b0a4342d3c | [] | no_license | hinthornw/freespace | 3b0ad1f8f3c153ac7fe0a2bac791632459852b06 | 3d117ad0e433a7205de8e25397fd098a6add8fe1 | refs/heads/master | 2021-06-22T05:16:42.851558 | 2017-08-24T01:01:47 | 2017-08-24T01:01:47 | 98,390,766 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,887 | py | import torch.utils.data as data
import torch
import numpy as np
import numpy.random as rand
from PIL import Image
import cv2
import os
import os.path
IMG_EXTENSIONS = [
'.jpg', '.JPG', '.jpeg', '.JPEG',
'.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP',
]
def is_image_file(filename):
return any(filename.ends... | [
"hinthorn@momenta.ai"
] | hinthorn@momenta.ai |
2a9ec919aa12c00f7699703cd9f9a960cd3df308 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03696/s927043333.py | 8af9a814da95dcba853bbf295beefd9db08be572 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | n = input()
s = input()
ss = s
for i in range(50):
s = s.replace('()','')
l = s.count(')')
r = s.count('(')
print('('*l+ss+')'*r) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
debcb753a03393a82bff079b4eeede9847cf8a5e | c02ef8e586a52bf9e548098ff6673639f8435180 | /t2to3/walk/__init__.py | 51a55b4322d287e11870905957d4abc7b9cb53e2 | [
"MIT"
] | permissive | trumanw/t2to3 | ad7f84c3a5a942a09169b449d2807750356c81d1 | 7abdb304b84dcf19b1dc7684a442df096c318691 | refs/heads/master | 2020-12-28T08:52:06.507882 | 2020-02-24T09:49:57 | 2020-02-24T09:49:57 | 238,253,550 | 0 | 0 | MIT | 2020-02-24T09:49:59 | 2020-02-04T16:37:27 | Python | UTF-8 | Python | false | false | 19 | py | from .walk import * | [
"chunan.wu@xtalpi.com"
] | chunan.wu@xtalpi.com |
515f75202332f89c654fa7985d43c883e1dc74bf | 24b37153f7cfd5ea8166f5cff2cf543ae92bc665 | /lxml/bfolder.py | 269ef4bc984b8e47a0bcdc319ba66716a5958db1 | [] | no_license | scythargon/mad-skillz | 4b03abf4410f278e6d5eafc8387281ccd0791416 | 91b69123d43da8baa2f8cfc10fbc0109c13714fa | refs/heads/master | 2020-05-18T17:50:55.126464 | 2014-03-13T08:25:19 | 2014-03-13T08:25:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,886 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#//*[@id="allEntries"]/table/tbody
# //*[@id="allEntries"]/table/tbody/tr[1]
#http://bfolder.ru/photo/vse_podrjad/2
#phtTdMain
import urllib2
from lxml import etree
from StringIO import StringIO
main_url = 'http://bfolder.ru/photo/skrinshoty/48-'
mu_end = '-0-0-2'
def ge... | [
"scythargon@gmail.com"
] | scythargon@gmail.com |
eaf87a426e894caddad0d836d8da5cdaaae825f8 | 07b27b8e7ae801709bc1bebb32566b5041eb5292 | /tests/client/client.py | ee3c22dd0a06d6ea7cb42ed8ef2f9c26b16ff708 | [] | no_license | wyaron/HomeGate | 7625b97017bea6e9b2b5ed2f479f504116667c2c | 95c60bf608374b9a06f1ffb22c5d1b8268837c76 | refs/heads/master | 2023-08-19T21:45:09.068435 | 2021-10-17T12:19:05 | 2021-10-17T12:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | import websocket
from threading import Thread
import time
import sys
import json
def on_message(ws, message):
print(message)
def on_error(ws, error):
print(error)
def on_close(ws, close_status_code, close_msg):
print("### closed ###")
def on_open(ws):
gate = {'gate_id': 'gate-benbenben'}
gat... | [
"tal.anker@gmail.com"
] | tal.anker@gmail.com |
d1d76cd6e4cb3c8a367de07f3c437ae79778c91d | f8d3f814067415485bb439d7fe92dc2bbe22a048 | /models/research/differential_privacy/pate/ICLR2018/smooth_sensitivity_table.py | 4ea0a7f5a9b072437eded0fb6fc00d919ef95d9e | [
"Apache-2.0"
] | permissive | gmonkman/python | 2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3 | 9123aa6baf538b662143b9098d963d55165e8409 | refs/heads/master | 2023-04-09T15:53:29.746676 | 2022-11-26T20:35:21 | 2022-11-26T20:35:21 | 60,254,898 | 0 | 2 | null | 2023-03-24T22:58:39 | 2016-06-02T10:25:27 | Python | UTF-8 | Python | false | false | 14,228 | py | # Copyright 2017 The 'Scalable Private Learning with PATE' Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# ... | [
"gmonkman@mistymountains.biz"
] | gmonkman@mistymountains.biz |
7c31f7d64627e78b8f3832a823a1b501d4c78424 | 48e1cf7a4a39df57a38246da1f67f3f4dc8f2020 | /With_Sql/main/buy_product_form.py | 59abb15f507001600bb719ae5117f96c258b1c99 | [] | no_license | mdarifulislamroni21/django_website | 601d1d0e5422419895363968a0f4d1c50dfd9daa | 28562e3e8f07ddac49057eba07411f05b08918ff | refs/heads/master | 2023-06-23T22:30:32.317834 | 2021-07-23T04:25:37 | 2021-07-23T04:25:37 | 388,668,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from django import forms
from main.models import user_details
#create New Form
class user_details_connect(forms.ModelForm):
class Meta:
model=user_details
fields="__all__"
widgets={
'buydate':forms.TextInput(attrs={'type':'date'}),
'product':forms.TextInput(attrs={'pl... | [
"mdarifulislamroni21@gmail.com"
] | mdarifulislamroni21@gmail.com |
9a3029aa9bb0a66d014a7a3ec7717db4d0f30d8a | 471cab6ba89d01cf0361722ee02cbc33b2787c49 | /_aula/aula009d_manip_texto_divisao-juncao.py | 2a5746ed8aeff0e9284ccb68ea8abe32d6c8dae7 | [] | no_license | ercris990/_curso_gg_py_3 | 2e9d6445ec9b0f40bca36bbfd684a09d5b91cb3b | fe4ab944be911edf51683fdab0d6aa452ed96b12 | refs/heads/master | 2022-11-30T02:00:53.947613 | 2020-08-09T10:59:41 | 2020-08-09T10:59:41 | 282,326,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | #Cadeia de Caracteres #divisao e juncao
frase = 'Curso em Video Python'
print(frase)
print('----------------------------------------')
print(frase.split()) #divide a string apartir dos espacos
print('----------------------------------------')
print(' '.join(frase)) ... | [
"ercris990@gmail.com"
] | ercris990@gmail.com |
e0dce17c7d0a408c4ac94daea1d8b126aa2a503d | cf983282bd27b7075915e150dd6869fc68002dff | /manila/share/drivers/lvm.py | 4b39c8a71362c8dc93b1e6a534a77c168b0b036c | [
"Apache-2.0"
] | permissive | scality/manila | 437f5b1cd768626e9ba5df57e21f5a8e30a7201a | b4a67d033cdcbc1389ae52f35ad281be7a18c9ae | refs/heads/master | 2021-01-21T06:02:38.912136 | 2016-08-04T00:46:08 | 2016-08-04T00:46:08 | 36,364,592 | 1 | 2 | Apache-2.0 | 2021-03-25T16:04:17 | 2015-05-27T12:13:10 | Python | UTF-8 | Python | false | false | 14,018 | py | # Copyright 2012 NetApp
# Copyright 2016 Mirantis Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... | [
"ben@swartzlander.org"
] | ben@swartzlander.org |
2c2f2040fde54d6c77504275f121070bd8c62399 | f67469cba32f16399ef2e65d2731c5eae36a53b3 | /config/settings/base.py | 0fc9bcb527d5fe44323aef0ac7bfc93b4daf6ca8 | [
"MIT"
] | permissive | ZedeLab/WhatsUpAddis-BE | 1f3fecc9c5705eca500f13aa5a831fcf81fb5faf | 702d14eff969673ce88dbd6f4cad690cbb580c30 | refs/heads/master | 2023-04-06T03:53:57.537028 | 2018-11-30T21:54:24 | 2018-11-30T21:54:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,476 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
fro... | [
"eyobtariku@gmail.com"
] | eyobtariku@gmail.com |
c6fe6443ef899c8ed96248028a7916f6110ff9bd | 8e2fa36281924fd28327a49d83f9855c6ff0c619 | /photod-backend/photod/api/urls.py | 254dfe2cbae9365ac31db41010e200dc82289133 | [
"MIT"
] | permissive | basilfx/Photod | 10a7ba9200b7337f01bd2f3ad857caa5b6797b7c | 0056a07e39b61e2f3b1c94f1309917dd8b24b654 | refs/heads/master | 2023-08-23T17:16:48.646493 | 2017-08-15T18:37:59 | 2017-08-15T18:37:59 | 98,336,863 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from django.conf.urls import url
from django.conf import settings
from django.views.decorators.csrf import csrf_exempt
from graphene_django.views import GraphQLView
urlpatterns = [
url(r'^graphql', csrf_exempt(
GraphQLView.as_view(graphiql=settings.DEBUG)
)),
]
| [
"basstottelaar@gmail.com"
] | basstottelaar@gmail.com |
6ec92dd72c28ca2f83fb098f71054c643f1c0816 | 93f7eefd835e58262e97aad8d04643236716268b | /openerp/addons/hr_payroll_13thmonth_pay/__init__.py | f97fe39786de9777316c0b6a2738cb9b16f5469f | [] | no_license | jassme16/Ezra_GenX_NEW | a47c6d1e1404a754c363f586e4f6e23ae7f14a82 | f1f4a3635423bfd392670090c65eefd1a74eb20a | refs/heads/master | 2021-01-01T05:13:45.199314 | 2016-05-05T10:01:51 | 2016-05-05T10:01:51 | 58,121,645 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | import thirteenmonth_pay | [
"kennethpaulnava@gmail.com"
] | kennethpaulnava@gmail.com |
64cc5607bc1c8d2649c165b34cd01941d79c128f | 9013fc19eed18af44b29d68fbec9e38a1ae157eb | /application/api/servers/xmltodict/tests/test_dicttoxml.py | 2aa90134b4318e001ab26943e4eabce54ef59719 | [
"MIT"
] | permissive | cloudcomputingproject/main_repo | 7fc1f5ffa8459131364833f4254dbda652652818 | 4952f51ce630edf49aebd46428b77f26cb717f80 | refs/heads/master | 2020-06-09T05:26:04.839339 | 2015-01-05T15:54:10 | 2015-01-05T15:54:10 | 24,763,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,507 | py | from xmltodict import parse, unparse, OrderedDict
try:
import unittest2 as unittest
except ImportError:
import unittest
import re
import collections
from textwrap import dedent
_HEADER_RE = re.compile(r'^[^\n]*\n')
def _strip(fullxml):
return _HEADER_RE.sub('', fullxml)
class DictToXMLTestCase(unittes... | [
"ppm1g12@soton.ac.uk"
] | ppm1g12@soton.ac.uk |
a0e0d3d59678d27bada63e72d1ef4660a924ae7b | 9a5854d7e73a6476f9c3ce7986078422acf983f6 | /mnemon/services/__init__.py | 5e3cc9cd8a5f8e2976c422777ca29b50012bec56 | [
"BSD-3-Clause"
] | permissive | papagr/mnemon | 2b48dd1beab048f7b0d27e7fe7bf887b350c2129 | e51787cea3d0d1a2d5e6b8b02211c2335ff73a11 | refs/heads/master | 2023-01-05T03:25:10.295473 | 2020-10-29T20:52:19 | 2020-10-29T20:52:19 | 305,522,288 | 1 | 0 | BSD-3-Clause | 2020-10-22T07:51:03 | 2020-10-19T21:55:41 | HTML | UTF-8 | Python | false | false | 1,802 | py | from mnemon.services.scheduler import init_scheduler
from mnemon.persistence.article import MongoDBArticleRepository
from mnemon.application.article import ManageArticleService
from mnemon.services.content import Arc90ContentExtractService, \
FiveFiltersContentExtractService
def includeme(config):
# Initializ... | [
"nikolaos@papagrigoriou.com"
] | nikolaos@papagrigoriou.com |
cca1348bd5f51fdecc2aa6f2960bc326a23a307d | 2b3e9b32a38f4992c529de56b4baa51e1a674c4e | /ccui/attachments/models.py | 787f5715353a1411f0f00595a423e5a97c5b968d | [] | no_license | camd/caseconductor-ui | 2c4f63fd6c20ee421012d8770b3b873c1b4f4232 | deb6b22ed417740bf947e86938710bd5fa2ee2e7 | refs/heads/master | 2021-01-18T05:36:22.647236 | 2011-10-10T14:48:29 | 2011-10-10T14:48:29 | 2,447,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | from ..core.api import RemoteObject, ListObject, fields, Named
from ..static.fields import StaticData
class Attachment(Named, RemoteObject):
name = fields.Field()
description = fields.Field()
url = fields.Field()
size = fields.Field()
attachmentType = StaticData("ATTACHMENTTYPE", "attachmentTypeI... | [
"carl@oddbird.net"
] | carl@oddbird.net |
ca0f4036ee4dd12f21957eb3984f7dccdd85e57a | 5d19b1f3f5b7878b2ca30ca407b7aec89ff1aecd | /weather_api/test.py | 47d5baa7458bd6989594fdc32a84f839e596bfe7 | [] | no_license | AlexRedfield/TinyProjects | 75609219d6a66ccc89c5c161427b130f579a8d93 | 99b8f0564857a35aab73592592097bd1a526159d | refs/heads/master | 2020-04-13T08:37:46.910190 | 2019-03-04T12:11:21 | 2019-03-04T12:11:21 | 163,086,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
import numpy as np
sns.set(style="darkgrid")
date = pd.date_range("2017-03", freq="M", periods=15)
count = np.random.rand(15,4)
df1 = pd.DataFrame({"date":date, "count" : count[:,0]})
df2 = pd.DataFrame({"date":date, "count" : count[:,1]+0.7})
df... | [
"877428359@qq.com"
] | 877428359@qq.com |
1c264b07e7455a1929f9a63fb059a6aa77bac060 | 16c87ab233d67e1951ae0d9763aa59993490e946 | /odd.py | 7f03519c364486f7f281d98fd7dac9811fe21652 | [] | no_license | chaddattilio/head-first-python | d5e35e5f565f6113b4c47131d2b3aa12c6143adf | 7b719ebfea5cc6879f30d3bdee5c5d7d2b9b5017 | refs/heads/master | 2020-07-30T01:42:28.877642 | 2019-09-21T19:19:19 | 2019-09-21T19:19:19 | 210,041,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from datetime import datetime
import time
import random
odds = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37,
39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59]
for i in range(5):
right_this_minute = datetime.today().minute
if right_this_minute in odds:
print("This minute see... | [
"cdattilio@lyonscg.com"
] | cdattilio@lyonscg.com |
1fac3e90a89506c3b23069fe5459317e00ebf077 | a79d7e4ffa8423d8dc1a071796267516d7992d43 | /opencv_study/example9_2.py | e842f67e3c86739611fbea24cf7129494f726ee0 | [] | no_license | go23man/study_project | 7ba9b8d730249ff5e29aa2b3e894794edad67718 | 7929165904ee901dbf309ce62afb45145a4bed2b | refs/heads/master | 2023-01-02T19:04:25.820854 | 2020-10-29T07:38:28 | 2020-10-29T07:38:28 | 293,030,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | import numpy as np
# 복수 객체 저장 및 불러오기
array1 = np.arange(0, 10)
array2 = np.arange(10, 20)
np.savez('saved.npz', array1=array1, array2=array2)
data = np.load('saved.npz')
result1 = data['array1'] # 이름 인덱스로 접근
result2 = data['array2']
print(result1)
print(result2) | [
"noreply@github.com"
] | noreply@github.com |
934c37f345add83963d763f797ea664f8ad91e8c | 9640f2fee97fcf88190127267b5dabbb7921e19a | /Python/scratchPad3.py | 8f51a2098b5becfecfe1f312d0de952fb9ef1bc4 | [
"MIT"
] | permissive | Isaac-Tait/Deep-Learning | 500d961ae42e816773685dc7edb442ef3a5de907 | e4e158038bbf6425a370518e83f9d9eb86254aa4 | refs/heads/master | 2022-11-23T23:54:12.614314 | 2020-08-05T02:38:29 | 2020-08-05T02:38:29 | 275,589,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,604 | py | num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
operator = input("Enter the operator (*, /, +, -): ")
if operator == "+":
print(num2+num1)
elif operator == "-":
print(num2-num1)
elif operator == "/":
print(num2/num1)
elif operator == "*":
print(num2*num1... | [
"isaac@mountaintopcoding.com"
] | isaac@mountaintopcoding.com |
6845f1afc2b3f70ae15b3ceca6302c7e25b8df22 | f8c17053073399dc2af1f8b083eddb4a636a6174 | /flask_taxonomies/__init__.py | 5bf557af637d55df5df61ae4b49297ef74a3ceed | [
"MIT"
] | permissive | Semtexcz/flask-taxonomies | d3d41b450f71d7190d7582a0484ed82f1d06dddf | dbff51adcb6892d17f821511a149360eebca7004 | refs/heads/master | 2021-07-14T10:51:45.204304 | 2020-04-03T10:31:35 | 2020-04-03T10:31:35 | 202,703,642 | 0 | 0 | null | 2019-08-16T09:55:28 | 2019-08-16T09:55:28 | null | UTF-8 | Python | false | false | 160 | py | # -*- coding: utf-8 -*-
"""Flask Taxonomies."""
from .ext import FlaskTaxonomies
from .version import __version__
__all__ = ('__version__', 'FlaskTaxonomies')
| [
"mirekys@gmail.com"
] | mirekys@gmail.com |
a40ca11a046d053887005696c2ce9809e0a846be | 957526fba2d1d779bf8637c9b91fff743a86c108 | /spell.py | 7a8772d0e68d87195112ee3564652bca7ccfc313 | [] | no_license | rrgeorge/5eTtoFC5 | acac22cf58dd51afd08ef6fa13bfe472c60adff3 | 51f3879c021733d44244ab5e56909c5e2dfe696a | refs/heads/master | 2022-04-26T18:38:35.607944 | 2022-03-07T18:03:17 | 2022-03-07T18:03:17 | 231,274,495 | 7 | 4 | null | 2020-11-27T16:51:15 | 2020-01-01T23:17:14 | Python | UTF-8 | Python | false | false | 15,599 | py | # vim: set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab : #
import xml.etree.cElementTree as ET
import re
import utils
import json
import os
from slugify import slugify
from shutil import copyfile
def parseSpell(m, compendium, args):
spell = ET.SubElement(compendium, 'spell')
name = ET.SubElement(sp... | [
"rgeorge@midnightweb.net"
] | rgeorge@midnightweb.net |
cbfbd4cfa3974be3440d93c0e25bc0feb5791c62 | ccb6e9fd16b2b9ed166f3142296b9ca5d5efbf31 | /Coordinate.py | 89093aba89373a217434f22775c277b8267181d6 | [] | no_license | akhossanX/MDPPY | afcfca0b52a4d4094572a5974a54f264f00ea8cd | 2c5eb72660ffdbbac22f32873bd1a47ec35f0cd5 | refs/heads/main | 2023-03-08T12:22:24.827330 | 2021-02-22T00:36:03 | 2021-02-22T00:36:03 | 341,036,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | from random import randint
class Coordinate:
"""
Represents the coordinates (row, column) of
each state in the environment
"""
def __init__(self, row, col):
self._row = row
self._col = col
def _get_row(self):
return self._row
def _set_row(self, row):
self._row = row
def _get_col(self):
r... | [
"noreply@github.com"
] | noreply@github.com |
ee1865b37c23051d7bc2248ebc49e9692dd036b8 | b594714f056881dc62d507224ac9e7b200d03e25 | /Projects/app.py | 268ae90d0cff50794fec96c6a97ee958a9819b90 | [] | no_license | AshShaluka/Machine-Learning-Heart-Disease-Prediction-System | 918bb56b169973135611eb6907e07a9384da8268 | 1a091b5378656d1951f3bc53ade6df87e710a2f7 | refs/heads/master | 2022-06-06T13:26:58.647443 | 2020-05-04T14:50:32 | 2020-05-04T14:50:32 | 260,129,589 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | import flask
from flask import request
from flask import render_template
app = flask.Flask(__name__)
from flask_cors import CORS
CORS(app)
@app.route('/')
def home():
return '<h1>iClinic </h1>'
#Route of the main index page
@app.route("/predict",methods=['GET'])
def predict():
from sklearn.externals i... | [
"ash.dmasd@gmail.com"
] | ash.dmasd@gmail.com |
d98640284ad3872cd54920e573886ae38180dbb4 | a9c0daa4a7b9a4d7341afcab270c5b5debb8c13f | /env/bin/easy_install | d376d9adfa89d50b9a0aa01da0885b7db2560bbc | [] | no_license | phamcong/alienator-plf | bad8c4e003fd189c43243b31ef2b975b6f154754 | ea65628af66fbca51f2248ceb4ba93f858dbddce | refs/heads/master | 2022-11-26T01:28:38.286261 | 2017-11-07T15:12:08 | 2017-11-07T15:12:08 | 109,412,097 | 0 | 1 | null | 2020-07-25T23:43:17 | 2017-11-03T15:30:22 | JavaScript | UTF-8 | Python | false | false | 283 | #!/Users/cuongpham/Data/Coding/ALIENNOR/aliennor-plf/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ccuong.ph@gmail.com"
] | ccuong.ph@gmail.com | |
41753a82068da0014a137032c5c1e406e6f0b79c | e7c03b71f26c463b2670c52cd2fddbc198e3c8cb | /apps/webhooks/signals.py | ce67cc1fc3c8fd8ae1badfe76adf4620eba30505 | [] | no_license | nerosketch/djing2 | 71cc96f4829fc047d788dd7d8a94f1035e9740f9 | 1fbb0941f26389cbfdc8015527ab0d426c2e2c01 | refs/heads/master | 2023-01-13T15:12:50.492646 | 2022-11-18T11:24:21 | 2022-11-18T11:24:21 | 196,469,351 | 7 | 3 | null | 2020-02-29T19:38:37 | 2019-07-11T21:50:34 | Python | UTF-8 | Python | false | false | 2,516 | py | import sys
from typing import Optional, Any
from django.dispatch import receiver
from django.db.models.signals import (
post_save, post_delete,
pre_save, pre_delete
)
from rest_framework.serializers import ModelSerializer
from webhooks.models import HookObserverNotificationTypes
from webhooks.tasks import send_... | [
"nerosketch@gmail.com"
] | nerosketch@gmail.com |
1ba1e5df848e81242459270ee5b89d21e31a29bd | 7e0ab9f52aa73962260411656903e217ccc34757 | /bench/plot_dmason.py | 752df305cc8c3e9228fa79d7ba2d54e18f7b97b4 | [
"Apache-2.0"
] | permissive | vishalbelsare/OpenABL | 5a46f1e6d61e6317c905f82cc5bd6d7e318abbac | eb08ef86df0b9c0532cb8fd6b714bde5e8551923 | refs/heads/master | 2021-06-05T14:55:52.644766 | 2019-08-12T09:03:53 | 2019-08-12T09:03:53 | 141,203,558 | 0 | 0 | Apache-2.0 | 2021-04-04T17:43:16 | 2018-07-16T22:57:37 | C++ | UTF-8 | Python | false | false | 2,968 | py | # Copyright 2018 OpenABL 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 agreed to in ... | [
"nikita.ppv@gmail.com"
] | nikita.ppv@gmail.com |
5cbfb9fbed9df3084a1ce671438cffd5bfc19aa7 | eed1763c9ea839e62a9c1a90c9c34bfc396d5973 | /priority.py | 8ffc8f9d1cb2ea3548b045925a4e7c9a534b9439 | [] | no_license | stanleyjzheng/IOhackHackathon2020 | d7c18cca4721ed3ca620ebce8424b35e9e0b4bf9 | afc60a6634084b3dd45bf0dc504eaff4acc08800 | refs/heads/master | 2023-05-02T21:23:04.152339 | 2021-01-21T17:04:07 | 2021-01-21T17:04:07 | 267,623,928 | 1 | 0 | null | 2021-05-30T12:18:22 | 2020-05-28T15:17:34 | Python | UTF-8 | Python | false | false | 164 | py | import sys
def priority(total_time, user_priority, store):
return store * total_time + user_priority
print(priority(sys.argv[1], sys.argv[2], sys.argv[3]))
| [
"35879277+Rougg@users.noreply.github.com"
] | 35879277+Rougg@users.noreply.github.com |
3f2430aec993d53a12bf2b286d2c6e954df75aa9 | 07bd1848e35bbb75ef4d23f1982af618aa176852 | /chap08/list0801.py | 61d7b443504731e273a6c346de2ce224320e8385 | [] | no_license | kimurakousuke/MeiKaiPython | c0b56be8fcb79b39b0c8364e71e2da76eab613fe | 674f6001060f56cf55e3d7336e6e4ca5f135beaf | refs/heads/master | 2021-02-22T13:01:53.397290 | 2020-03-07T11:19:10 | 2020-03-07T11:19:10 | 245,377,717 | 1 | 0 | null | 2020-03-06T11:16:16 | 2020-03-06T09:22:53 | Python | UTF-8 | Python | false | false | 563 | py | # 元组的列表(所有元素都是元组的列表)
students = [
(2012, '福冈太郎'),
(2013, '长崎龙一'),
(2011, '熊本纹三'),
]
print('students =', students)
print('students[0] =', students[0])
print('students[1] =', students[1])
print('students[2] =', students[2])
print('students[0][0] =', students[0][0])
print('students[0][1] =', s... | [
"61867402+kimurakousuke@users.noreply.github.com"
] | 61867402+kimurakousuke@users.noreply.github.com |
7ae7be994896f20dd269eccef9433c4ec08f2aff | 7a65631f2e879006770131a513ce45a6558afc73 | /info-query/portal/main.py | 272f40fb465ed3f562a5ada4fa3a0d45feb2d7ad | [] | no_license | yang123456789/info-query-system | f18906fc15a0d10b65ad62bd87d9839e90a4b344 | 84913f9301cc6c8bb9a095c2267b1274cf05794f | refs/heads/master | 2021-01-01T06:41:37.486416 | 2017-07-23T02:53:20 | 2017-07-23T02:53:20 | 97,485,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | import os.path
from config import *
from urls import *
import tornado.web
import tornado.httpserver
import tornado.ioloop
settings = dict(
template_path=os.path.join(os.path.dirname(__file__), '../template'),
static_path=os.path.join(os.path.dirname(__file__), '../static'),
xsrf_cookies=True,
debug=Tru... | [
"1877084583@qq.com"
] | 1877084583@qq.com |
82e1b2eaee9de5658d3ce2a864d0b66c69155d84 | 1448eee0e660f8a79ce869d61e908d436968275a | /users/urls.py | 67c29c835981ba554943dde84fad07bce266d798 | [] | no_license | Karley-Liu/Face-recognition-access-control-system | 80e9743f11d2e03a1a1f4227c6e200a3871dcdf9 | ff708f6f619d4c4558c5bebb9c2202b280591ec1 | refs/heads/master | 2022-06-21T08:01:19.979589 | 2020-05-11T09:15:12 | 2020-05-11T09:15:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from django.urls import path
from . import views
app_name = 'users'
urlpatterns = [
path('register/',views.register),
path('login/',views.login),
path('member_index/',views.member_index),
path('logout/',views.logout),
path('change/',views.change),
path('face/',views.face),
path('recognitio... | [
"361983537@qq.com"
] | 361983537@qq.com |
7faecae779bde3911e044903901c3c9069dfa309 | 4fdaee9f2612a8c429991a2042dffcee80e7a641 | /rootfs/qboxhd/rootfs/usr/local/lib/enigma2/python/Plugins/SystemPlugins/NetworkBrowser/__init__.py | dc8dd57b592a450dadd83765c112f3da212d8dfb | [] | no_license | OpenSH4/qboxhd | 841072db3b0eaecdcac116b5f96268d47115cdec | 91dd37a5311b5c53fb088ab0ce902ee49552ece0 | refs/heads/master | 2020-09-07T17:55:36.114816 | 2012-01-08T21:33:02 | 2012-01-08T21:33:02 | 220,866,062 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | # -*- coding: ISO-8859-1 -*-
#===============================================================================
# NetworkBrowser and MountManager Plugin by acid-burn
# netscan lib by Nix_niX
# for further License informations see the corresponding License files
# or SourceCodes
#
#========================================... | [
"duopaguilar@0410bcea-ab32-4fec-9f21-c18eae94034e"
] | duopaguilar@0410bcea-ab32-4fec-9f21-c18eae94034e |
9e2c6f911c02510183155ae89505a21cd3ee9fdc | b6056f576907aaf60b1b84d696b04463736fc83b | /processors/lane_extractor/scripts/PolyFinder.py | 97b38411d5d058e1f82a51df6dc2549f9b8083fa | [] | no_license | gtagency/buzzmobile-old | d6f0f77246042e50a6fec42901455c4d05b62840 | a8f96c3bf4d8a8c3c3d91ccc1994a7f052d1157d | refs/heads/master | 2020-04-15T23:34:32.813310 | 2014-11-01T10:08:15 | 2014-11-01T10:08:15 | 11,141,731 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | import numpy as np
import cv2
class PolyFinder:
def __init__(self, image):
self.image = image
def getPoly(self):
self.image = self.image[0:][300:]
imgray = cv2.cvtColor(self.image, cv2.COLOR_BGR2GRAY)
ret,thresh = cv2.threshold(imgray,0,255,0)
#cv... | [
"viki@c3po.(none)"
] | viki@c3po.(none) |
8359ab878f82e515d37f56e39cf93b2cad8afd03 | ec257404c0643f6f798f1122932c105231c5905a | /RREF/RREF_TEST.py | 30b553647c044a4b7212c441d02116e932ba96b9 | [] | no_license | Eyecandy/linear-algebra-fun | 4e9498c7bfb05dba7d194c59d8e5c5f833c415ff | 784d352c71d55e8e9231eb3d7958cbea908644f3 | refs/heads/master | 2021-05-12T01:08:06.880239 | 2018-01-15T14:04:52 | 2018-01-15T14:04:52 | 117,366,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py |
# coding: utf-8
# In[127]:
get_ipython().magic(u"run 'RREF.ipynb'")
# In[132]:
matrix = [[1,2,3],[0,4,8],[9,5,6]]
matrix2 = [[1,0,10,5],[3,1,-4,-1],[4,1,6,1]]
# In[135]:
solve_RREF(matrix)
# In[139]:
step_by_step_REF(matrix2)
# ### Given a matrix: produce a matrix in row echelon form (REF).###
#
# By usi... | [
"joakim.nilfjord@gmail.com"
] | joakim.nilfjord@gmail.com |
a6664a9701004321c7f88b2a8f53a3655a144261 | 7273500edfb40b759f4d63a884f7af39f28c3625 | /Day 4 addition to 3.py | c120920ca04d6561e365cbda3e9febbd7b37106b | [] | no_license | cugis2019nyc/cugis2019nyc-deniesha123 | 9c343955472d5d4dd70367e894bad644adcf5a34 | ea81e8b8e63437af99e1018f542082af65fedee4 | refs/heads/master | 2020-07-04T06:56:57.541759 | 2019-08-16T19:21:50 | 2019-08-16T19:21:50 | 202,194,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 14 10:25:32 2019
@author: Columbia Girls
"""
chocolate1 = {"milk":5}
chocolate2 = {"dark":6}
chocolate3 = {"white":8}
chocolatebox = {"milk":5,"dark":6,"white":8}
chocolatebox
student1 = ["Steve",32,"M"]
student2 = ["Lia",28,"F"]
student3 = ["Vin",45,"M"]... | [
"noreply@github.com"
] | noreply@github.com |
3c160933209364311aab0f45e8e6571d2f8babe8 | 135013cb08b9086f986bab8338362abf4357fc3e | /health/staff/migrations/0038_auto_20170727_1128.py | 69fb250110c1d0d85f6be37a3baf57a3f649ba65 | [] | no_license | TakoJ/lineus | 2c49d775e23fb3b31fb3e3d33c7a4b88ad563618 | 67556674b27d6eb9d1babaa73c42160375c21de4 | refs/heads/master | 2021-01-21T14:33:29.231675 | 2017-08-12T04:16:28 | 2017-08-12T04:16:28 | 95,301,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-27 02:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('staff', '0037_auto_20170726_2325'),
]
operations = [
migrations.RemoveField... | [
"hgy3047@gmail.com"
] | hgy3047@gmail.com |
f68897246e241e33ad3e985789afccfa8577f59c | 29d9a947fc954e5d182cb2d8292f96c0d27cdde0 | /apps/xrayuploader/advanced_search.py | cb2331799ae21142d69e1f13dec228b6e0b9caf3 | [
"Apache-2.0"
] | permissive | slogan621/tscharts | 43ee950a76323a8b99a8ab88743f2e5e5a1e6f42 | 034e661c3f4739f1dc04b3aef096e6bf6cf6e8d3 | refs/heads/master | 2023-08-10T19:04:50.317820 | 2023-07-29T21:03:27 | 2023-07-29T21:03:27 | 55,322,748 | 25 | 10 | Apache-2.0 | 2023-07-08T20:32:54 | 2016-04-03T00:35:37 | Python | UTF-8 | Python | false | false | 2,491 | py | # advanced_search.py
import wx
from pubsub import pub
class AdvancedSearch(wx.Panel):
def __init__(self, parent):
super().__init__(parent)
self.main_sizer = wx.BoxSizer(wx.VERTICAL)
self.free_text = wx.TextCtrl(self)
self.ui_helper('Free text search:', self.free_text)
... | [
"slogan621@gmail.com"
] | slogan621@gmail.com |
60e7d3ffd97421c1d299c0e24eceb1a3b5cb8b9c | f08b0ca36ac38258261a063a3a81d7b407418a71 | /handlers.py | c626e34fa38bb1a08953c08f1a8baed14200ccee | [] | no_license | BON4/toxic_guesser | 7c3c8994ead0464097301c16a14e08bffb4596f3 | 7722aa1d3b9cdcd20569bce20bb782016b85713f | refs/heads/master | 2022-10-15T03:41:59.173438 | 2020-06-09T15:59:58 | 2020-06-09T15:59:58 | 271,047,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import asyncio
from aiohttp import web
import logging
import json
from aiohttp import web
from utils import validate_payload, CommentListConverter, PredictionConverter
from worker import predict_probability
class SiteHandler:
def __init__(self, conf, executor, base_root):
self._conf = conf
self._e... | [
"silvia.homam@gmail.com"
] | silvia.homam@gmail.com |
0e7781fd532a7a35790d2927e43c21f0d8b57d4d | 05b376cd72a05d85cf385922daef38cc52465227 | /linkedlist_test.py | c333a5795066dea2511a0a4f7ba19657d70650c3 | [] | no_license | Nyapal/cs132 | 6b0cbd92fda9d43d77c717b8858c2334c0d9b5d5 | ec0a107f178e3b59e4767739339015ee02df5ae7 | refs/heads/master | 2020-06-01T21:58:30.127703 | 2019-06-20T22:11:32 | 2019-06-20T22:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,360 | py | #!python
from linkedlist import LinkedList, Node
import unittest
class NodeTest(unittest.TestCase):
def test_init(self):
data = 'ABC'
node = Node(data)
assert node.data is data
assert node.next is None
class LinkedListTest(unittest.TestCase):
def test_init(self):
ll = LinkedList()
asse... | [
"nyapal14@gmail.com"
] | nyapal14@gmail.com |
45778cfc1bbbd390bda742a7966334f7c5947b65 | 695bfbc92a1474a29270d46c7b4ae2805240b077 | /ch-02/09-MultilayerNeuralNetwork-blind-1.py | 195b75302a420f7861e71ae399207bba4e5d6e5b | [] | no_license | paulhendricks/python-machine-learning | 801563275e05fb1f611e9114581c5ef2f7b58125 | 8e1cb6bc37067cc239eaee69fd8aa13ffa405b68 | refs/heads/master | 2021-01-19T04:25:30.002300 | 2016-06-13T15:25:31 | 2016-06-13T15:25:31 | 50,059,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | import numpy as np
X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
y = np.array([[0, 1, 1, 0]]).T
synapse_0 = 2 * np.random.random((2, 10)) - 1
synapse_1 = 2 * np.random.random((10, 20)) - 1
synapse_2 = 2 * np.random.random((20, 10)) - 1
synapse_3 = 2 * np.random.random((10, 1)) - 1
for _ in range(10000):
layer_1 = ... | [
"paul.hendricks.2013@owu.edu"
] | paul.hendricks.2013@owu.edu |
329190111dbeeb1c7fcaf982ab9f8455d6575216 | 3c4f181f643be17ad150d9047432796afbad529d | /races/middlewares.py | 31775eb7a40a5b217478f170c950e7a3d5065a20 | [
"MIT"
] | permissive | pdittaro/RaceAnalysis | ceb9b5d7897f5eb382b8c926eab7d126ab22f298 | 6121fba1b69516e692c6db625d8ff0398a29df59 | refs/heads/master | 2020-05-04T04:45:17.464447 | 2019-04-10T17:38:38 | 2019-04-10T17:38:38 | 178,972,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,595 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class RacesSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy ac... | [
"pdittaro@gmail.com"
] | pdittaro@gmail.com |
96b99049010ef96d63f9812089561f63157f7727 | d9517b7c8bf044778763245b52461acd9e301399 | /parsers.py | b6a3a9cabdd014bbc08af4957996032163731acb | [] | no_license | IIKovalenko/otus_avito_bot | 300c7727167b5c84b8e33c8181631689ba7aa532 | abfc5ac723eb93b49eefa05ef16833b27388a7ef | refs/heads/master | 2020-06-02T12:47:14.104364 | 2018-01-17T18:43:43 | 2018-01-17T18:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | import bs4
def parse_html_page(response_text):
return bs4.BeautifulSoup(response_text, 'html.parser')
def parse_avito_results_page_for_prices(soup):
descriptions = soup.find_all('div', {'class': 'description'})
prices_wrappers = [
d.find('div', {'class': 'about'}) for d in descriptions
]
... | [
"melevir@gmail.com"
] | melevir@gmail.com |
c434cddf878566dc069918bd57301dfc50f6f1b5 | 9465462c634c2a342411ba85892741a93f0c40a8 | /dpam/helper.py | ee0abc44fd94bbbada1a0a00958ff27852f9cb20 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ankitshah009/PerceptualAudio | 9a72587916e173be180b6ae792e83347c08e98da | 553f9e3238fcf7137901ae9fa6e10cbea1f8a4c9 | refs/heads/master | 2023-01-08T13:47:42.212056 | 2020-11-16T08:14:10 | 2020-11-16T08:14:10 | 300,909,516 | 0 | 0 | MIT | 2020-11-16T08:14:11 | 2020-10-03T15:14:02 | null | UTF-8 | Python | false | false | 12,393 | py | import numpy as np
import tensorflow as tf
import tensorflow.contrib.slim as slim
from sklearn.preprocessing import normalize
# LEAKY RELU UNIT
def lrelu(x):
return tf.maximum(0.2*x,x)
# GENERATE DILATED LAYER FROM 1D SIGNAL
def signal_to_dilated(signal, dilation, n_channels):
shape = tf.shape(signal)
pa... | [
"pmanocha@wash.cs.princeton.edu"
] | pmanocha@wash.cs.princeton.edu |
7ff101931d51525ae94d1394ddc4cc3c157ad206 | a11effd45c6e71d8bf9d968f3c3c9fa27cedc69f | /uilts/models/GCN.py | c8fa55cf38ba5a922956ada40fcdeeea57e16415 | [] | no_license | huangluyao/squid_segmentation | 30f18cbd4488e4b9b632a9224809862c29f02276 | 6b64d84cb4b7649fe01a314fdc87492d866aae8d | refs/heads/master | 2023-02-12T22:03:34.527386 | 2021-01-18T13:27:14 | 2021-01-18T13:27:14 | 320,613,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,502 | py | """ inpnut size 224×224
Model GCN : params: 58148704
Model GCN : size: 221.819702M
"""
import torch
import torch.nn as nn
from torchvision import models
class Global_Convolutional(nn.Module):
"""全局神经网络"""
def __init__(self, in_channels, num_class, k=15):
super(Global_Convolutional, self).__init__()
... | [
"997911043@qq.com"
] | 997911043@qq.com |
31cb08be77816fc5d2ad000825864032983b4b00 | 5bb632eaca756c3282e299e8f27f2ec1f26e5ddb | /app/models.py | 0538b0c9f8ee1053a966ca265ab8f5ec41eae55b | [] | no_license | DCotterill/flask-template | ae98e643669168e5ca95f59c05bd5fc40d9bec4f | 2eb7b6b5d4a1c769cdba6235c80656ec5f0e3720 | refs/heads/master | 2023-03-06T16:28:47.304810 | 2021-02-17T03:05:13 | 2021-02-17T03:05:13 | 339,596,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from app import db, login
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
@login.user_loader
def load_user(id):
return User.query.get(int(id))
class User(UserMixin, db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db... | [
"darren@Darrens-MacBook-Air.local"
] | darren@Darrens-MacBook-Air.local |
c6f76eb5503fb4a9a7c9ab83f8bd10aa3fbb381b | 94594cb9b7e48cf4a66d8564589a9d7981a89dac | /loader.py | 984fa3b4f768e8646d8c167cf6c091fc99ec178c | [] | no_license | xal9wiii4ik/parse_freelance_bot | 26d1d6a2c0257a320288fcc0ab87d3b6d327eb79 | 49db047b74888265f01036e467d084be5ce20fda | refs/heads/master | 2023-04-02T08:58:25.581354 | 2021-04-08T21:54:18 | 2021-04-08T21:54:18 | 324,841,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import asyncio
from aiogram import Bot, Dispatcher, types
from aiogram.contrib.fsm_storage.memory import MemoryStorage
from data import config
from data.config import PARSER_DB
from utils.db_api.categories_command import CategoriesCommands
from utils.db_api.costs_commands import CostsCommands
from utils.db_api.paymen... | [
"xal9wIII4ik@yandex.ru"
] | xal9wIII4ik@yandex.ru |
38a01454324ef8522ace07a19f48e28c7e54f2d6 | 092712c8a8008e7eeef7e45d7328524e8be8092d | /src/steer_net.py | afe7e4a3c1c439ab3425ed89256615b1d9c816e3 | [] | no_license | luis-gonzales/steering-angle-pred-cnn | 3541beac973e6764cde61bf2afadc69814c97c24 | 2ce0928d8f558cc232692f7da5b4d335cf3821ff | refs/heads/master | 2020-03-27T04:15:52.491482 | 2018-10-10T01:02:35 | 2018-10-10T01:02:35 | 145,925,679 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | from keras.layers import Flatten, Dense, Lambda, Conv2D, Cropping2D
from keras.models import Sequential
# CNN model borrowed from NVIDIA at:
# https://images.nvidia.com/content/tegra/automotive/images/2016/solutions/pdf/end-to-end-dl-using-px.pdf
# Preprocess including resizing and converting from RGB to YUV
def prep... | [
"noreply@github.com"
] | noreply@github.com |
96a584f143220b5d9bf076fcd937eace0d6d45b5 | 1448c0f19f133d748e0027080574ac4c64a9463d | /brain_games/scripts/brain_prime.py | 8ef7aa1fe810bbf0d9196066d61bde388e55127f | [] | no_license | roddy-g/python-project-lvl1 | ccbd27ec21c2199c972a5f3e171b14d3b1aafa24 | ab1b5f92b3f600f5b2fb26943cb3963230814720 | refs/heads/master | 2023-01-02T03:24:52.417185 | 2020-10-25T19:37:12 | 2020-10-25T19:37:12 | 290,157,968 | 0 | 0 | null | 2020-09-26T19:36:20 | 2020-08-25T08:24:54 | Python | UTF-8 | Python | false | false | 169 | py | from brain_games.game_flow import play_game
from brain_games.games import prime
def launch_game():
play_game(prime)
if __name__ == '__main__':
launch_game()
| [
"per677199@yandex.ru"
] | per677199@yandex.ru |
2af3daa1a017b367bd7aea66c6c5a6836aefb283 | fee31527e5fd533c1493830ac4f31e7a180e2bc3 | /Livro/cap5/break_loop.py | 19562952a5e1710c59daf53245660e0e62181d74 | [] | no_license | howraniheeresj/Programming-for-Everybody-Python-P4E-Coursera-Files | 7b9dda14ab13fec19c81a96e1a85324286877851 | c7eb1284bc0a4d17458de18c7a20bba7db30082a | refs/heads/master | 2021-01-15T23:27:58.529784 | 2015-05-20T22:37:48 | 2015-05-20T22:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | while True:
line = raw_input('> ')
if line == 'done':
break
print line
print 'Done!' | [
"iurihondaf@gmail.com"
] | iurihondaf@gmail.com |
2bdf91f493e655f6bd2d59806e86e98a4c97a6f4 | dabd37cf681f6c00bd71c574eec0215e1e1dba4f | /visitor_experience/serializers.py | 8873b8461a067e8ed3e54294db65aba51df2bc40 | [
"MIT"
] | permissive | sunwei/flask-rest-api | f0e275b2d5f8fbdf1772765d9141d08fd6fbd0b3 | 845ae5d76898822ac539def2d5ad381c15fed24b | refs/heads/master | 2020-05-21T05:57:16.882059 | 2019-05-16T06:15:46 | 2019-05-16T06:15:46 | 185,931,435 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | from flask_restplus import fields
from visitor_experience.restplus import api
envoy_callback = api.model('Envoy callback', {
'api_key': fields.String(required=True, description='Envoy api key'),
'timestamp': fields.String(required=True, description='Callback timestamp'),
'token': fields.String(required=Tru... | [
"sunzhongmou820@163.com"
] | sunzhongmou820@163.com |
53bb357819f48a8696444b2f84a7a50328479ebe | 0dab149d05aaac2013e4dbcde7680f9fa393d2fd | /bindgen/__main__.py | b57a8ecfaf3cb6cdcd9dcb2adab459f6265156a7 | [
"Apache-2.0"
] | permissive | random-builder/design_cadquery_pywrap | 62bac407523df838722ab72291cde51696ccb2cd | 3cef107e986b20bc26b38a20f195bde1a697b2f6 | refs/heads/master | 2021-05-21T23:10:08.560667 | 2020-03-27T07:41:52 | 2020-03-27T07:41:52 | 252,851,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,670 | py | import click
import logzero
import pickle
from types import SimpleNamespace
from path import Path
from . import read_settings, run, parse_modules, transform_modules, render, validate_result
@click.group()
@click.option('-n','--njobs', default=-2,type=int)
@click.option('-v','--verbose',is_flag=True)
@click.option('... | [
"adam.jan.urbanczyk@gmail.com"
] | adam.jan.urbanczyk@gmail.com |
de0a067f8e44fce59abc9d825bdbcaf794b4bc19 | 92eb3075f4a6a05280cb842d147b8af10c1aae5f | /175 _labs/lab1_q1.py | 84be6503e88cf50da588545e702e4f1913af3005 | [
"Apache-2.0"
] | permissive | lzeeorno/Python-practice175 | a3a27bf4c4fefef56b065c0d738897bea8958766 | e2998830114b304f9857b8f7d89dafec7ae02080 | refs/heads/master | 2020-04-24T07:30:13.006790 | 2019-07-15T16:22:52 | 2019-07-15T16:22:52 | 171,800,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | f1 = open('lab1q1_input_rainfall.txt','r')
newfile = open('rainfallfmt_lab1q1output.txt','w')
sixty = []
seventy = []
eighty = []
ninety = []
for line in f1:
value = line.split()
value[1] = float(value[1])
if value[1]<=70:
sixty.append(value)
elif value[1]<=80:
seventy.append(value)
... | [
"noreply@github.com"
] | noreply@github.com |
a94b54375eb88e2b5eda3847c05c86a6a7706985 | 5686d7c83db29e0cb23d13005009a49da9741463 | /notes/experiment_tracking.py | 61a89f59c5de0ab51c8010931ad15abe615ad417 | [
"Apache-2.0"
] | permissive | andrewtruong/notes | 86b508330d84064cf6d6a92bec54090ac91e9c64 | 24e3a7d822f746ac4ab6c3186bc44dccb4f0e169 | refs/heads/master | 2023-04-23T17:51:11.831225 | 2021-05-06T21:34:54 | 2021-05-06T21:34:54 | 364,968,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/03_modeling/experiment_tracking_and_hyperparameter_optimization.ipynb (unless otherwise specified).
__all__ = ['log_study_wandb']
# Cell
import lightgbm as lgb
import pandas as pd
from .pandas import categorize
from sklearn.metrics import mean_squared_error as mse
from ... | [
"andrew@dragoon.localdomain"
] | andrew@dragoon.localdomain |
60daf50f1cde4a912237f35b6f4be76c2686d3c4 | c800f5d116154ec178a71f670e803cc7dd0b4904 | /predict.py | 9b60fb434538b75ea20fc8208eb1499223843172 | [] | no_license | chungpv-1008/yolov5-pytorch | b8735c7f7f87073b73c94fb4c9b5b473b7438c9b | 08e34ed7eee043ea23356a23090d1248359e034c | refs/heads/master | 2023-07-18T03:06:20.468397 | 2021-08-26T14:47:18 | 2021-08-26T14:47:18 | 400,186,972 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,671 | py | import time
import cv2
import numpy as np
import torch
import argparse
from imutils.video import FPS, WebcamVideoStream
from models.experimental import attempt_load
from utils.datasets import letterbox
from utils.general import non_max_suppression, scale_coords
from utils.torch_utils import select_device
def load_mo... | [
"pham.van.chung@sun-asterisk.com"
] | pham.van.chung@sun-asterisk.com |
66691c5eaa3d77e4a81f63cbe55492db46fc75dd | 6af7cf75fd919f05b47d7516da4568f92abef8aa | /actstream/migrations/0001_initial.py | 802ad43280d127b600e43ed99013de043db04460 | [] | no_license | mauler/activity-stream | 43bdb3363eda1362d66e4abec74c17a282e03d5e | 72477ebec544c686e1691566399545642f4ff104 | refs/heads/master | 2020-04-10T00:31:55.970480 | 2015-03-10T13:28:51 | 2015-03-10T13:28:51 | 32,038,589 | 0 | 1 | null | 2015-03-11T20:06:21 | 2015-03-11T20:06:21 | Python | UTF-8 | Python | false | false | 2,361 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import jsonfield.fields
import django.utils.timezone
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL)... | [
"xtranophilist@gmail.com"
] | xtranophilist@gmail.com |
b0a397839d2484bb418a34d66f90b53b145a961e | 6b6f68f507746e3e39b0e8789af5d044e27d6b0a | /BinarySearch/0108_ConvertSortedArrayIntoBinarySearchTree_E.py | 9f2dbfc81f8e4a56f0487583f5e6e89bc92e38d1 | [] | no_license | PFZ86/LeetcodePractice | bb0012d8b3120451dda1745875836278d3362e45 | 6db9db1934bc0a8142124d8b56bf6c07bdf43d79 | refs/heads/master | 2021-08-28T08:43:27.343395 | 2021-08-17T20:38:32 | 2021-08-17T20:38:32 | 230,925,656 | 1 | 1 | null | 2021-08-17T20:38:32 | 2019-12-30T14:01:27 | Python | UTF-8 | Python | false | false | 876 | py | # https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
# Solution 1: binary search-like split
class Solution(object):... | [
"pengfeizang@pengfeis-iMac.fios-router.home"
] | pengfeizang@pengfeis-iMac.fios-router.home |
2617fe025e7ddc018281f853dec2e238a062ff20 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /ask_hand_in_able_problem/number_and_person.py | 4b08ca79400b115b7e926ee6a490cd123528665b | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py |
#! /usr/bin/env python
def part_and_day(str_arg):
early_time(str_arg)
print('ask_hand')
def early_time(str_arg):
print(str_arg)
if __name__ == '__main__':
part_and_day('early_man')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
046d8c76bb32eecf5ba9ad872efb2f8333d28fd3 | 6478723d180a8ef39941ba04b80c1eca9f437323 | /244. Shortest Word Distance II.py | c3713fd9f7ca35dff4badc5c14b57690aff0adeb | [] | no_license | NiuNiu-jupiter/Leetcode | 2a49a365898ecca393cb1eb53a47f4501b25952d | e278ae6ded32f6a2d054ae11ad8fcc45e7bd0f86 | refs/heads/master | 2022-11-22T01:05:57.417538 | 2020-07-28T23:34:39 | 2020-07-28T23:34:39 | 182,104,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | """
Design a class which receives a list of words in the constructor, and implements a method that takes two words word1 and word2 and return the shortest distance between these two words in the list. Your method will be called repeatedly many times with different parameters.
Example:
Assume that words... | [
"cmyumo.zhang@gmail.com"
] | cmyumo.zhang@gmail.com |
15d63dde7a11ee9fe849f5521b5ed833016a6fae | 9b0e9993330c4cc669a6c581f61753c744673982 | /ceng352-Database Management Systems/project2/trip.py | 606c8b4a6dda981252cfc23df57f194692132291 | [] | no_license | sedacivelek/metucenghws | 4b2ceb17994164b11a4ef7fbc1beb02bbedb0b3a | 0fe734653e7067b906c295e6cfbcbb3e87e84c83 | refs/heads/master | 2021-08-26T00:34:13.207620 | 2021-08-10T09:10:04 | 2021-08-10T09:10:04 | 235,657,431 | 0 | 0 | null | 2021-08-10T08:28:18 | 2020-01-22T20:11:50 | HTML | UTF-8 | Python | false | false | 23,159 | py | import time
from datetime import datetime
import psycopg2
from config import read_config
from messages import *
from user import User
POSTGRESQL_CONFIG_FILE_NAME = "database.cfg"
sign_in_timer = 0
sign_out_timer = 0
"""
Connects to PostgreSQL database and returns connection object.
"""
def connect_to_db():
... | [
"Woohop77"
] | Woohop77 |
26bde4cc8740ae75056ce1e9a99e4aa2852a1915 | e729d73ea927a7702b6cfb0587d78840c48c6350 | /textract/lib/python3.8/site-packages/ebcdic/cp871.py | 242fd019b51e724bf060e974cdc1b56f7599addd | [] | no_license | mayurtikundi12/allfilereaders-nodejs | 940b5757feb94bfbeec0cb257e34c01417ccd480 | 4525ae2aa4b507dc6985dc16d1302d4aa5242506 | refs/heads/master | 2023-08-07T03:38:02.604917 | 2021-10-03T21:40:25 | 2021-10-03T21:40:25 | 413,202,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,603 | py | """
Python Character Mapping Codec cp871 generated from 'temp/cp871.txt' with gencodec.py.
"""
# Ensure the generated codec works with Python 2.6+.
from __future__ import unicode_literals
import codecs
# Codec APIs
class Codec(codecs.Codec):
def encode(self, text, errors='strict'):
return codecs.charmap... | [
"mayurtikundi12@gmail.com"
] | mayurtikundi12@gmail.com |
300f5a9fca5dba9c2e65ac30ba5c630bed926363 | bc6b2d891556ca910f68b355392204959e8cb1c2 | /.ipynb_checkpoints/decoding-checkpoint.py | f703e215c79a7dded16836b706f49b002ff2c7a5 | [] | no_license | Toni-Chan/SumGraph | 10f177ca6a145ab7b3913167bb3d00bc5ef8f0c6 | ede014901b6e92738a219c464605e7de66846909 | refs/heads/master | 2023-05-27T16:36:35.749899 | 2020-12-18T07:32:06 | 2020-12-18T07:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,447 | py | """ decoding utilities"""
import json
import re
import os
from os.path import join
import pickle as pkl
from itertools import starmap
from cytoolz import curry, concat
import torch
import pickle
from utils import PAD, UNK, START, END
# from model.copy_summ import CopySumm
# from model.copy_summ_multiencoder import Co... | [
"xwwang111@gmail.com"
] | xwwang111@gmail.com |
28422ed231cdf6b70f5784163f5d6a1d06657595 | 60c1c8e4c3d444f1039a5b18139bc7a26da8a877 | /mapred-lab2/SQLJoin.py | 196a8499607ede5f7085c86fa3dabdbb54102155 | [] | no_license | kay-m/MapRedLabs | 5dc76f535ec698e10d84c7a69fa58d2ff60c16f1 | d92b86aca53531152f82e59efb5111f5a7fb38a6 | refs/heads/master | 2020-04-01T08:24:27.519902 | 2013-11-27T07:22:04 | 2013-11-27T07:22:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,047 | py | import MapReduce
import sys
"""
This application is a map reduce implementation to implement a SQL Join.
"""
mr = MapReduce.MapReduce()
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# Application Usage:
#
# python SQLJoin.py arg-1 arg-2
#
# arg-1: File name containing... | [
"krishnamoorthy.b@gmail.com"
] | krishnamoorthy.b@gmail.com |
7feecc77519718b968c596e790a22b55c0b0f872 | cb97808c70cf1beef9f1f1073bba43f8da628bf7 | /prerelease_website/settings.py | 79aca0580f2574da5fe055df3a682ffe895bdc42 | [] | no_license | kettj/prerelease_website | 80fc7e61a9b75bba188303d9f03cd25b53db8f0d | b43615122116c053bbceca351caabe5812c4c98e | refs/heads/master | 2021-01-16T20:06:03.045555 | 2012-11-13T01:48:56 | 2012-11-13T01:48:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,601 | py | import os
# Django settings for prerelease_website project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ora... | [
"eitan@hidof.com"
] | eitan@hidof.com |
73c8c9798c4e4af993a0122bcfa98e94274748ec | 1ff5866dd2588db86eaafa96ef0f4f3d9453bde1 | /Lessons/2020_12_26_Lesson_4.py | 5d7eea8576da5286d4608d4b71f25cd74e0968da | [] | no_license | supvigi/python-first-project | 49d946df8e198bdce5669bac3cccc3a19143ae8f | 36d63d8cc4ed816a41722a47ae8aadbc411695b2 | refs/heads/master | 2023-02-27T09:32:16.821487 | 2021-02-05T21:24:54 | 2021-02-05T21:24:54 | 318,757,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | def punk_2(func):
def punk_3(x5, x6):
print("___________")
func(x5, x6)
return punk_3
@punk_2
def punk_1(x3, x4):
print("|{} * {} =".format(x3, x4), x3 * x4, "|")
for x in range(1, 11):
for x2 in range(1, 11):
punk_1(x, x2)
print("-----------")
class normal_tank:
type ... | [
"vlas.vigilyanskiy@gmail.com"
] | vlas.vigilyanskiy@gmail.com |
9eaed7819d886ec933a65429535fe29bef2129d8 | eda8b801aab469113be4053a7d492dde0da63373 | /metadata-ingestion/src/datahub/ingestion/source/metadata/business_glossary.py | 28df9565d4a868d1ebf6811b9ab727c2fd6b9e6f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | zuizeze/datahub | 630c00934e7b76eeb3a08feda7a112dd745ee18b | 63a37450103eff3e94d798c36bab6e47fbca47dc | refs/heads/master | 2022-09-06T19:53:02.219574 | 2022-08-13T00:35:53 | 2022-08-13T00:35:53 | 242,064,645 | 0 | 0 | Apache-2.0 | 2020-02-21T05:49:26 | 2020-02-21T05:49:25 | null | UTF-8 | Python | false | false | 9,058 | py | import logging
from dataclasses import dataclass, field
from typing import Any, Dict, Iterable, List, Optional, Union
from pydantic import validator
from pydantic.fields import Field
import datahub.metadata.schema_classes as models
from datahub.configuration.common import ConfigModel
from datahub.configuration.config... | [
"noreply@github.com"
] | noreply@github.com |
a2c44e6d2ae1253ca3397bc6d37ed63c68b22265 | 3f28b697f570ded0502de70c706200005ab62525 | /env/lib/python2.7/site-packages/scipy/spatial/distance.py | e436acec62f09cbc2243b94def99500b3a1e24a1 | [
"MIT"
] | permissive | Ram-Aditya/Healthcare-Data-Analytics | 5387e41ad8e56af474e10fa2d1c9d8a2847c5ead | d1a15d2cc067410f82a9ded25f7a782ef56b4729 | refs/heads/master | 2022-12-09T12:49:59.027010 | 2019-11-23T20:10:55 | 2019-11-23T20:10:55 | 223,639,339 | 0 | 1 | MIT | 2022-11-22T00:37:48 | 2019-11-23T19:06:20 | Jupyter Notebook | UTF-8 | Python | false | false | 74,146 | py | """
=====================================================
Distance computations (:mod:`scipy.spatial.distance`)
=====================================================
.. sectionauthor:: Damian Eads
Function Reference
------------------
Distance matrix computation from a collection of raw observation vectors
stored in... | [
"ramaditya.danbrown@gmail.com"
] | ramaditya.danbrown@gmail.com |
2094fedd524a61f0d72045da9ce90bd2cf6fa89e | 82de2fbcc9bc2b1eea1fcd870dea595d757ea32c | /20 args and kwargs.py | cfaea3ce2cde8aaf7178758645d2ceed35d0034e | [] | no_license | MEng-Alejandro-Nieto/Python-3-Udemy-Course | 4afa230416aaeb35495d7f3d7ef47d4c57cd6b76 | 8ca288aa3a307210867ceb67ebddc338167682c5 | refs/heads/master | 2020-07-17T01:48:42.338447 | 2019-09-02T18:39:38 | 2019-09-02T18:39:38 | 205,915,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # *args
def myfunc(a,b):
# returns 5% of the sum of a and b
return (a+b)*0.05
print(myfunc(60,40))
'''
the above allow us to to define to values a and b however for varius parameters
we can use *args
'''
def myfunc(*args):
return sum(args)*0.050
print(myfunc(10,10,10,10,10,10,10,10,10,10,10,10))
print("")
... | [
"alejandrolive932@hotmail.com"
] | alejandrolive932@hotmail.com |
2c2bf0e08f45b674f996afac25eb10688eae8afa | b5e8dc7c21659ac33b6e242a298a44d30bfa3610 | /env-prod/Lib/site-packages/sklearn/feature_selection/_univariate_selection.py | 3ad7abb6f9804830d88331b85a864e2066932f54 | [] | no_license | rpuegue/CoursA61 | c168b44cd9835ad7524c97b2983305c56acd8096 | a4fc8f7504491eb94cb2f1d2bf6d16674901a0c5 | refs/heads/main | 2023-03-10T09:08:31.293546 | 2021-02-22T16:25:51 | 2021-02-22T16:25:51 | 339,574,678 | 0 | 0 | null | 2021-02-22T16:25:51 | 2021-02-17T00:57:41 | Python | UTF-8 | Python | false | false | 28,925 | py | """Univariate features selection."""
# Authors: V. Michel, B. Thirion, G. Varoquaux, A. Gramfort, E. Duchesnay.
# L. Buitinck, A. Joly
# License: BSD 3 clause
import numpy as np
import warnings
from scipy import special, stats
from scipy.sparse import issparse
from ..base import BaseEstimator... | [
"djatchepuegue@gmail.com"
] | djatchepuegue@gmail.com |
8a76079823a30b4890e38d245aba5425a7fc1472 | f58f153aa974cbebae09d6bbcc965ae037702950 | /1 Preprocessing and Initial Integration/Suface_Data_Preprocessing.py | 4570d6cb6e0d9351a31006344c4c39ca77e8b3e8 | [] | no_license | KenBolingGeoscience/Tennessee_Oil_and_Gas | 511b832a65562549335c23690ad21bfaba273b3a | b78ae24ce896457868e6190af68aa5c6c0eeb79f | refs/heads/master | 2020-06-03T14:56:59.851841 | 2019-10-16T17:07:21 | 2019-10-16T17:07:21 | 191,615,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | # Converts polygons to line features representing the geologic contacts for every quad
# This process collects the FID information about the neighboring polygons for each line segment
# The FID is then matched with the label on each polygon to get the geologic unit information
import arcpy
# Set the workspace environ... | [
"KenBoling.Geoscience@gmail.com"
] | KenBoling.Geoscience@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.