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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf0672b04e3ad7d5240dff6351e4a75134aff575 | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/amazon/aws_direct_connect_connection.py | 40aede0d048137aeaccca9bd1a9ea0bc41ad91cc | [
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 12,050 | py | #!/usr/bin/python
# Copyright (c) 2017 Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = """
---
module... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
0d359a2e00eb5d6cabe8eac0fed6ab8775f3db21 | 62debdafe7dd9d6a8fdada45612cc9bd88b1050e | /pinnwand/handler/website.py | 7c2bbd1b185acffe771bf25f27f3257273d57647 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | 7e4/pinnwand | 3bdea72f065e309a5eec8849e984aa97ce802a9d | 6e2537f9c351efe22560207cea2be9d4a3bcbfce | refs/heads/master | 2023-03-31T13:48:31.588728 | 2021-04-02T18:33:39 | 2021-04-02T18:33:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,882 | py | import logging
import binascii
import io
import zipfile
from typing import Any
from datetime import datetime
import docutils.core
import tornado.web
from pinnwand import database, path, utility, error, configuration
log = logging.getLogger(__name__)
class Base(tornado.web.RequestHandler):
"""Base page for all... | [
"cmdr@supakeen.com"
] | cmdr@supakeen.com |
1c7e8b0102abc3a1e40770fadb96ab7cb19a0aa4 | 53a21a59acdbeb42be8806600592bacf07beb044 | /notebooks/CNN_MM/Code-metamap/launcher.py | 6857c89db9e77e8a24db40d73abbd68e119484c2 | [] | no_license | razanmasood/Anorexia_Topical_Trends_in_Self_declared_Reddit_Users | 42a7b0625c32ba5547cfd10088a3dd3c6fcf9cf2 | ef58c56890c7285c2e2b7eabca3f1a9ba2d1b067 | refs/heads/master | 2022-08-19T02:46:14.410290 | 2020-05-26T20:00:50 | 2020-05-26T20:00:50 | 267,137,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,002 | py | import json
from pymetamap import MetaMap, ConceptMMI
import os
import csv
from tokenizer import tokenizer
import re
from nltk.tokenize import sent_tokenize
import numpy as np
def sent2bioes(sent, annotations):
words, s = [], "O"
splitters = "\n \t\r"
word, i = "", 0
o = -1
for ch in sent:
... | [
"razan.masood@uni-due.de"
] | razan.masood@uni-due.de |
af4c8a21a408518e7f8730b582610adddbea2a0e | fe6b6234376633e5e283ea5fe08182ad2054bdfc | /boto.py | 45f3df69fa6ddf8c35b59d233b164a09860a50cf | [] | no_license | da-cipher/ChatBot | c7fec4bfd26bb264d4c03bd92ba425a44adc5dbd | 79bb344c7589579e628efc019daa64c69b61024c | refs/heads/master | 2020-06-23T14:39:04.791620 | 2018-01-20T14:34:02 | 2018-01-20T14:34:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,209 | py | """
This is the template server side for ChatBot
"""
from bottle import route, run, template, static_file, request, response
import json, random, datetime, weather
info = {
"counter" : 0
}
@route('/', method='GET')
def index():
date_last_visited = request.get_cookie("last_visited")
if date_last_visited:
... | [
"michelelang3@gmail.com"
] | michelelang3@gmail.com |
808cf496a8bf650c2d81d9c2043e69ea1f1164d0 | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/legacy_test/test_dataset_cifar.py | 1fca233d3be786b2a42f7dea6aed8dae58d6c25b | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 4,284 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
f69258418ed759b266fce1318fb479a5065405c1 | 4efc1d60ef7f3e827aabdcdb9b6a6f8deb0a3679 | /HMM/global_var.py | 02704a2b068516aefa2aba8e669338ab6a8023ce | [] | no_license | dercaft/input | 30adf41c45caaeddc3eb9db2c43f5280d86cee5f | b43eda920f0aa32a4c1fbacf1c9480ee9a227134 | refs/heads/master | 2023-04-01T02:15:32.966262 | 2021-04-04T02:09:25 | 2021-04-04T02:09:25 | 325,534,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | import pickle
from . import Trie_init
from .GLOBAL import *
# CONFIG_PATH="input/HMM/log"
def init():
global w_count,w2p,w2w,potential_w,p_count,p2w,trie,p2w_extend
''''''
with open(CONFIG_PATH+"w2w",'rb') as file:
w2w=pickle.load(file) # Numrial, Need to update
with open(CONFIG_PATH+"w2p",'rb'... | [
"wuyuhang2073@gmail.com"
] | wuyuhang2073@gmail.com |
2ee7ff91d4da418ab6677d1c46ad52640be5379a | 6984724d0466d477635b23d073affa9b00f01f67 | /Tasks/Putsilouski_Tasks/CW/4/CW4.py | d90d6f00de36f59db429ea944294dca6e6c443c0 | [] | no_license | RomanPutsilouski/M-PT1-37-21 | 202414fac782e6c68f741e55f9b7697f0c974f45 | ceef9b4e6bcff2a9033615ec761f0e2e73c9467e | refs/heads/main | 2023-05-30T21:10:22.404817 | 2021-06-30T00:26:29 | 2021-06-30T00:26:29 | 348,462,785 | 1 | 0 | null | 2021-06-05T15:44:27 | 2021-03-16T19:06:57 | Python | UTF-8 | Python | false | false | 397 | py | # x = {1, "test:", False, "dsafadfdsfa"}
# print(x)
# x = set([1,4,2,5,1,24,1,])
# x.add("test")
# print(x)
# x.update([2,3,5,6,1^4,5])
# print(x)
# print(x.pop())
# print(x.remove(2))
# print(x.discard("False"))
#
# x={1}
# y ={1,2,3}
# print(x.issubset(y))
# _____________________________________________________
х = ... | [
"putsilouskiroman@gmail.com"
] | putsilouskiroman@gmail.com |
9b71bfc82bf69157a0a2f7f8ecb174d1811970bd | f5d4863b6a62ef19ffc98e4f94f6ade1bc8810d3 | /Hash Table/274_H-Index.py | 76ba54016e28d234d66981f9499e284a2c30bef6 | [] | no_license | xiaomojie/LeetCode | 138808eb83938f9bd3c2e8a755d908509dff0fd3 | eedf73b5f167025a97f0905d3718b6eab2ee3e09 | refs/heads/master | 2021-06-12T09:26:01.257348 | 2019-10-23T10:41:06 | 2019-10-23T10:41:06 | 76,184,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | """
Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.
According to the definition of h-index on Wikipedia: "A scientist has index h if h of his/her N papers have at least h citations each, and the other N − h papers have no more... | [
"519399762@qq.com"
] | 519399762@qq.com |
12046705509ad99445df20fdea4f2ca037b1d0b7 | 0976c55799d146e797239810d38003f7485da67a | /lastweekend_photos/lastweekend_photos/urls.py | a301e2df695464e56dcf9dd733fe2474c1dca53d | [
"MIT"
] | permissive | OmidFarvid/lastweekend-photos | 9dd5568e5522165899725f46e0f1063944558399 | f7f433843a14ca846bd7a9a8707ca1bf1c04d7da | refs/heads/master | 2020-05-19T13:13:19.421430 | 2019-05-21T22:53:46 | 2019-05-21T22:53:46 | 185,033,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | """lastweekend_photos 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')
... | [
"pprolancer@gmail.com"
] | pprolancer@gmail.com |
0ecda92524e177c17b017f5e4f5f063b918a215c | 5c1c8fbf500ac2f303c059367367290ab257cc41 | /Datasets/calcMADE.py | a6e1c765136a1bb8019a6e2df0a4e1b6dd3a1ba7 | [] | no_license | felipegb94/NeuralWaveToF | 77f44b838ecce1c8f5b564fff81ad075e1d69de5 | a135b51abc573b5661c2d4385cb7ca9bdf2bd303 | refs/heads/master | 2021-08-23T17:21:27.833244 | 2017-12-05T21:29:48 | 2017-12-05T21:29:48 | 86,650,064 | 1 | 0 | null | 2017-12-05T21:25:56 | 2017-03-30T02:29:22 | Python | UTF-8 | Python | false | false | 1,899 | py | import numpy as np
import math
# This script calculates the mean absolute difference error between the calculated depth and true depth
# Parameters to calculate the frequency and depth ranges
speedOfLight = 2.998e+11 # millimeters per second
dMax = 10000 # max depth in millimeter
dSampleMod = 1 # sampling rate in dep... | [
"fgutierrez3@wisc.edu"
] | fgutierrez3@wisc.edu |
acaa11ed7021123ca2389248a8415e8030132c0e | 4f70c8ce38ef2b0a44658a5f987c1984a15ffa63 | /scripts/env/customstockenvpred.py | 522de77c459543bc646fc0ff1ff73ba5d8bfcf0c | [
"MIT"
] | permissive | vr100/rl-trading | 3bc271b3a172e95aa328a4e2fc3876af72177e28 | 0e3383e383bdfd46c40df65f3c709ba88169153c | refs/heads/main | 2023-03-18T14:33:57.441008 | 2021-02-24T11:41:49 | 2021-02-24T11:41:49 | 331,263,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,150 | py | from .customstockenv import CustomStockEnv
import joblib
from utils import regression, scaler, ensemble_regression
import pandas as pd
class CustomStockEnvPred(CustomStockEnv):
def __init__(self, data, config):
super(CustomStockEnvPred, self).__init__(data, config)
self.prediction = True
self.model = joblib.lo... | [
"vr100@users.noreply.github.com"
] | vr100@users.noreply.github.com |
05de15cee0ffdb94dd433a229026c5ed75f678f8 | daa1c5798e14292ca20eabd7fb8a2e9c9e762557 | /upload_folder.py | 3a99b6454dfaa3fbfc2759f40f17057c8e3e44da | [] | no_license | siliconcortex/curiousweb | 9f1811b2c605f3484c40cc0fc465e74047e9a6ec | def40532bbedee8a6484e29edb4861bf3072101b | refs/heads/master | 2023-05-07T12:55:31.696105 | 2020-08-18T07:30:50 | 2020-08-18T07:30:50 | 258,177,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,178 | py | # -*- coding: utf-8 -*-
"""
Upload folder to Google Drive
"""
# Enable Python3 compatibility
from __future__ import (unicode_literals, absolute_import, print_function,
division)
# Import Google libraries
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
from pydriv... | [
"lesliecaminade@gmail.com"
] | lesliecaminade@gmail.com |
31e605c8b99832192a7c48800c14f2d562136138 | e05fcade5001ecf510bde850942a549a54fa6f30 | /mylogs/migrations/0010_auto_20210615_1557.py | 368f261852a4d685a6e7b65c15f9cd0fbbb0679e | [] | no_license | bananaderevo/django2 | a3319f860a7cdebe3be0f0225ca0659d2e040bf5 | 252ff7adcea7b7d374a15f4371507f3621d4fb41 | refs/heads/main | 2023-06-04T04:59:14.755200 | 2021-06-18T10:12:33 | 2021-06-18T10:12:33 | 370,753,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # Generated by Django 3.2.3 on 2021-06-15 15:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mylogs', '0009_auto_20210615_1550'),
]
operations = [
migrations.AlterField(
model_name='logs',
name='method',
... | [
"vladikarshinov55@gmail.com"
] | vladikarshinov55@gmail.com |
7c432b6ff53b6f2d2ff8f063dc48ade3a4c92cd1 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_Administrator/test_c139330.py | 0952f34469d1beb7cbb7b7a29b6cc088aec4bbac | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | import pytest
import time
import sys
from os.path import dirname, abspath
sys.path.insert(0, dirname(dirname(abspath(__file__))))
from page_obj.scg.scg_def_sys import *
from page_obj.scg.scg_def import *
from page_obj.scg.scg_button import *
from page_obj.scg.scg_def_log import *
from page_obj.common.rail impo... | [
"15501866985@163.com"
] | 15501866985@163.com |
eb52d07948feadf7615c9b71eac9205e7966ed09 | 14f6997309a8d1e36569a34ebb5a1d8376e198d6 | /app/app/settings.py | 9ef075bdd1214e4e820f31a27ee4090fe2cc4a99 | [
"MIT"
] | permissive | edwinlileo/recipe-app-api | 4ec1b23a3a91c2564cbab38d5e8f3c80d32dbd47 | 22416c385232385c9a79d1303354441d9b49c449 | refs/heads/master | 2022-04-20T00:04:10.918695 | 2020-04-18T07:56:24 | 2020-04-18T07:56:24 | 256,306,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,414 | py | """
Django settings for app 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 os
# Bu... | [
"edwin.lileo@icloud.com"
] | edwin.lileo@icloud.com |
67c2f2bad890218501268f30b6a3bdd17150a434 | b4814899ae86babf5da388ee9302cfe85980d782 | /v6monitor/v6monitor/urls.py | 1a07bb38aba0bc39f7527e93870c7ff8c1ffefdc | [] | no_license | zhangyuqin/v6web | 0f75a7d3549b6a51c9c0ede3e23e68b1dd458e31 | 07bd8509499bd41d9fe76e13d4fdaa506b8e8697 | refs/heads/master | 2020-03-23T14:39:23.304602 | 2018-07-20T09:57:03 | 2018-07-20T09:57:03 | 141,690,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """v6monitor URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"zhangyuqin891218@gmail.com"
] | zhangyuqin891218@gmail.com |
aad056e0d8e567964aeb0cbc3294a4ede21a50ac | 6691991fdeebd37bf79545dff578c1c106d0264e | /double_pendulum.py | 30067b7cf9f2d63f38700ed613fbb1e49c493ea8 | [] | no_license | yuemingl/sympy-llvm | 6a7b2f070273f4d489f0f6481dcc8d78a283b2cc | 371b474dfc09701f69ad4b8b68ec4c780f098b80 | refs/heads/master | 2020-04-15T12:59:45.224106 | 2015-09-02T05:18:34 | 2015-09-02T05:18:34 | 31,237,248 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | from sympy import *
from sympy.physics.mechanics import *
from sympy.physics.mechanics import mechanics_printing
from jit_compile import JIT
from numpy import sin, cos, linspace, zeros
import matplotlib.pyplot as plt
from scipy.integrate import odeint
q1, q2 = dynamicsymbols('q1 q2')
q1d, q2d = dynamicsymbols('q1 q2',... | [
"nkliuyueming@gmail.com"
] | nkliuyueming@gmail.com |
3b6229a76d65e8f3ab1edf32738982eb515931f5 | f8218e385b9de301c04682c56a682bde537ec9e9 | /backend/app.py | db965222943a76f9cd3f912a3760e7386d00a9f2 | [] | no_license | theshinymew/FetchIt | acd7ca3034ab86ae318271ab40b516b56284c029 | a61e598771636fca3b8bf2acc7afce2305054a6d | refs/heads/master | 2023-02-02T01:22:08.176327 | 2020-12-19T03:59:43 | 2020-12-19T03:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,472 | py | from flask import Flask, render_template, request, redirect, jsonify, abort
from flask.json import jsonify
import requests
import json
import os
import random
import boto3
import subprocess
from discord_webhook import DiscordWebhook, DiscordEmbed
import docker
import dockerhub_login
import datetime
import discord_key
a... | [
"thequake@live.com"
] | thequake@live.com |
77a18bf8239b47b8f953066ffb358acd3967a8d0 | 129e65b23a172ea686f220868c923eb4b08493c7 | /game/PyGame/Others/memorypuzzle_buggy4.py | 0d3542bc9379b6b5f7d4f9b764be8fc0b21c0128 | [] | no_license | urstkj/Python | 8dcf434858f9eb171204e064237bb10d76fe7f16 | 5a41df7c57c1975e0d335f59b528e28ba63cab85 | refs/heads/master | 2023-01-01T14:15:42.833144 | 2020-10-12T15:00:55 | 2020-10-12T15:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,234 | py | #!/usr/local/bin/python
#-*- coding: utf-8 -*-
# This version of the game has a bug in it. See if you can figure out how to fix it.
# http://inventwithpython.com/pygame/buggy
# Bug Description: Icons don't show up
# Memory Puzzle
# By Al Sweigart al@inventwithpython.com
# http://inventwithpython.com/pygame
# Released... | [
"ricol@opensimsim.com"
] | ricol@opensimsim.com |
8ae50cd6b83ea1fc1e05b6127155a800c38eb5e1 | a3f1e80179c23d9202d72b75dd37a49b44785f45 | /api/client/swagger_client/models/api_model_script.py | a86fc78a1cbbdf8bc28909ede0b049bcda2e34cf | [
"Apache-2.0"
] | permissive | pvaneck/mlx | b1e82fae5ac8aaa1dddac23aaa38c46f6e6cfc27 | 6edaa0bd77787c56b737322a0c875ae30de6cd49 | refs/heads/main | 2023-05-14T06:08:38.404133 | 2021-05-04T01:41:11 | 2021-05-04T01:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,189 | py | # Copyright 2021 IBM Corporation
#
# 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 writi... | [
"82406273+mlx-bot@users.noreply.github.com"
] | 82406273+mlx-bot@users.noreply.github.com |
fc28ed8f4facbaccd5cc5e51818b7b8af618bc45 | cedfdd1398b947b15eccf4473e9bbaddccb878d7 | /SDK/openstack/tests/unit/cloud/test_flavors.py | 6f44544b37e1975cbe596bede8bcf381013844f4 | [] | no_license | Doctor-DC/CMP-Recycle | 36fb1fdcf7c3a396bfef89d03948bd0ce626b053 | e3e6421f0b5dc28a075bc5bf91be9a45bcbe97c6 | refs/heads/dev | 2022-12-15T06:28:12.695868 | 2019-02-26T06:22:21 | 2019-02-26T06:22:21 | 142,127,512 | 0 | 0 | null | 2022-12-08T02:29:44 | 2018-07-24T08:18:46 | Python | UTF-8 | Python | false | false | 11,881 | py | # 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, software
# distributed under t... | [
"8920622362@qq.com"
] | 8920622362@qq.com |
e13b84b29a8d28f05463a7eab4ee596dc1714cae | 5b7af6548668085da9a6ab86f564538ee73c4865 | /build/scripts/slave/recipe_modules/luci_config/example.py | ddbd1f0ab8890cf00a7b52766c5d291be3d044b2 | [
"BSD-3-Clause"
] | permissive | elastos/Elastos.APP.Android.ShiJiuTV | 463a986450a915f7b3066e6a03aca903cf56f69b | f77189a2b8df86028adc68105988710d16ce012b | refs/heads/master | 2023-03-18T03:11:58.337349 | 2018-03-12T08:50:57 | 2018-03-13T11:10:27 | 124,007,751 | 0 | 1 | null | 2022-10-03T03:30:29 | 2018-03-06T02:21:25 | null | UTF-8 | Python | false | false | 1,504 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine.recipe_api import Property
DEPS = [
'luci_config',
'recipe_engine/properties',
'recipe_engine/step'
]
PROPERTIES = {
'auth_token... | [
"xiaokun.mengxk@qcast.cn"
] | xiaokun.mengxk@qcast.cn |
e9fac787cd491026568ab5aa63c583c3cc349c1c | 78ea634c53a3b52cbc379b5509d99f6729e1644b | /user/forms.py | 04c395cf518eb98c1946fa41c4eb578ee10656ab | [] | no_license | TapanManu/Todo-Backend | 56a2999a8139a967e1f59d346d22b902f5ed151a | 4ed02cbbf2c843fc248edb4a4027e3491fa800c9 | refs/heads/master | 2022-03-30T10:21:49.165029 | 2020-02-02T18:45:39 | 2020-02-02T18:45:39 | 226,716,615 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | from django import forms
from .models import UserProfile
from django.contrib.auth.models import User
class UserForm(forms.ModelForm):
username=forms.CharField(label=("Username"),widget=forms.TextInput( attrs={'placeholder':
('Username'),
... | [
"you@example.com"
] | you@example.com |
f7901408a5b82425d8cbda72c633cc7e01887165 | ff326f228dc0b44d681714d8c3ba00e5f7da888b | /exemplos/exemplo6.py | a45538e7d58c975964311b0c61c79ee3a50ca5b4 | [] | no_license | danielaLopes/SSOF_Project06 | 5c1f0927dd6b1c1caca99bf1beb1e420ee133687 | dd7735326020a4171b761b81d0b39d4287fcc840 | refs/heads/master | 2022-03-23T18:19:21.135799 | 2019-12-04T19:06:58 | 2019-12-04T19:06:58 | 221,670,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | FUNCAO(OBJECTO.ATRIBUTO(VARIAVEL)) | [
"kevin-batistac@hotmail.com"
] | kevin-batistac@hotmail.com |
d330833cb9b420e93029ecd1df3e12af203a3a9d | ee05d803ee01c939d7324db8e8ff2b8990877d69 | /e_单词规律/290.py | f5edbac5e8f0297cffaf85541074befd5136adb1 | [] | no_license | Nostalogicwh/Leetcode | 7660153ffe56b1a348d2bb145bbd77c9c46a5525 | 5004d6b7157dc6a21666c7f79a38e95fa0ca092f | refs/heads/master | 2023-02-26T10:23:26.575572 | 2021-02-01T09:05:04 | 2021-02-01T09:05:04 | 295,983,019 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | class Solution:
def wordPattern(self, pattern: str, s: str) -> bool:
t = s.split()
if len(pattern) != len(t):
return False
dct = {}
for i in range(len(pattern)):
if pattern[i] not in dct:
if t[i] in dct.values():
return Fals... | [
"apocalypsewh@163.com"
] | apocalypsewh@163.com |
33b2a2aa18bbbee935cc31f74c837b3e844a3389 | 3dae98811207c6ec0a9c9bab76d1bf03e53be700 | /invent/migrations/0009_auto__add_field_inventoryitem_sold__add_field_inventoryitem_collected.py | 28fc084b01809ea7f5aec56c9252890090c7dc5e | [] | no_license | ICMedia/basement | fed8d5fab7fa053c9ae4c6f2697ec00c032d8e19 | 2e4c405e94ac04b49f9b590551bb9328ba5ab369 | refs/heads/master | 2020-12-24T15:04:38.290033 | 2014-11-08T17:03:09 | 2014-11-08T17:03:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,283 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'InventoryItem.sold'
db.add_column(u'invent_inventoryitem'... | [
"nippoo@nippoo.net"
] | nippoo@nippoo.net |
b008183fe006f0aca84bf0d893aaa5f6ffd24f12 | 31b7b658ecdf447f0ea73d97ff95725d9fdb2934 | /mapper.py | 43929bcff92769eccd4c6fd54ed7d3d755d4c94a | [] | no_license | fkoto/getInfo | ce65796e44ea5e7c56b00618812c92b63712e85c | 18acf96d4ad6532da5de3982da1642c56a619c4d | refs/heads/master | 2021-09-27T03:25:31.364048 | 2018-11-05T22:41:51 | 2018-11-05T22:41:51 | 110,876,809 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,852 | py | class Mapper:
def __init__(self, mode, printer):
self.mode = mode
self.printer = printer
def doMappingNode(self, cluster, numOfProcs, ppr):
res = []
while True:
for nod in cluster.createNodeGenerator():
if nod.exhausted:
continue
... | [
"foivos.kot@gmail.com"
] | foivos.kot@gmail.com |
e062c0a4d1a6c48d574c1f5205d0a19e1c11e9be | 6fff0893ef43f1018d65f2e8e1bf27d9f8accf5b | /pw_package/py/pw_package/package_manager.py | 1254121126b21ce292b55127abe72651f6f4487a | [
"Apache-2.0"
] | permissive | isabella232/pigweed | eeb68a4eda6f0a9b5ef0b8145d0204bc9f85bfdc | 53c2f3e2569d7e582d3dd3056ceb9b2c3b8197b2 | refs/heads/main | 2023-06-03T10:32:29.498066 | 2021-06-17T06:38:15 | 2021-06-17T20:44:55 | 378,165,913 | 0 | 0 | Apache-2.0 | 2021-06-18T13:54:37 | 2021-06-18T13:53:40 | null | UTF-8 | Python | false | false | 6,156 | py | # Copyright 2020 The Pigweed Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com |
807577bc161b60b2a712520fa1a53290c5709240 | 326aa0683023218a6e66e21e96d3b988c3fb082c | /workshops/demo15.py | 84c61eba9b18cb05560e550564de736f3b47f124 | [] | no_license | codemobiles/cm_python_programming | 4d96ebbf082725cf6fbe6a39bf42c20e3dea29d7 | 986d9a8df98cacd1af201d1d3b5a06f6d130c4eb | refs/heads/master | 2023-04-07T01:48:28.320093 | 2021-04-15T05:50:40 | 2021-04-15T05:50:40 | 348,199,470 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | # condition if-else
data = 1
if data > 3 and data < 5:
print("data {}".format(data))
print("data {}".format(data))
print("data {}".format(data))
elif data > 4:
print("data > 4 : {}".format(data))
else:
print("else data is not > 3")
if True:
print("a is greater than b")
print("Yes") if False ... | [
"chaiyasit.t@gmail.com"
] | chaiyasit.t@gmail.com |
3fe8ff036537802b80f2cee94e06d125a52afddf | 78b4dcc55305724ff5df13bc7ccc72593a17eff3 | /main.py | 581670c5a234bf854c4cfa0074f404b9994d73f2 | [] | no_license | CHEESESAMURAI/First | 9433de6f3aeb72fa86526e139870f5c6bd1a56c6 | 871efd591a87b4fad6f2156bc57cf4302caee440 | refs/heads/main | 2023-04-26T18:24:06.230047 | 2021-05-13T18:56:02 | 2021-05-13T18:56:02 | 367,145,501 | 1 | 1 | null | 2022-11-23T09:09:03 | 2021-05-13T18:52:51 | Python | UTF-8 | Python | false | false | 7,238 | py | import telebot
import config
import keyboards as kb
bot = telebot.TeleBot(config.BOT_TIKEN)
a = ['Легко знакомишься с людьми', 'Охотоно и подолгу могу что-нибудь мастерить', 'Люблю ходить в музеи, театры',
'Охотно и постоянно ухаживаю за расстениями,животным', 'Охотно и подолгу могу что-нибудь вычислять... | [
"noreply@github.com"
] | CHEESESAMURAI.noreply@github.com |
7495c265ee636029badd517124e4688fa9eeac6d | 3e94a711f8bc0d5a8a6d70fda5013310b14f9975 | /mysite/settings.py | 64b6bd0f8a84b4b4578b6149152368040274aabe | [] | no_license | vikku1998/my_first_blog | 2353a0c344378a8e9b62e4b91c39aed7b1c060a0 | 7cde3d30c46b2e391fac557a243c4b9a7ac81190 | refs/heads/master | 2020-05-05T01:14:40.503379 | 2019-04-05T00:27:34 | 2019-04-05T00:27:34 | 179,597,160 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.13.
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
#... | [
"vikasguptapaliya@gmail.com"
] | vikasguptapaliya@gmail.com |
2109b2bc169fb2b076bbf069f2ef187f1e7baab8 | df328969e8d61a02603374c0cb3450556a51c184 | /tests/runtests.py | f0f367a3d3e63c7eff09f034e8fdb67b71a9796e | [
"BSD-2-Clause"
] | permissive | samuderapase/django-comments-xtd | c5dd8641e8ca6933a124ae91377f003dd1dfc7a6 | 5ac29f5269c18acb1709a35b30de3decff7a59fe | refs/heads/master | 2020-12-24T23:49:33.382692 | 2012-10-17T20:07:09 | 2012-10-17T20:07:09 | 6,543,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | import os
import sys
def setup_django_settings():
os.chdir(os.path.join(os.path.dirname(__file__), ".."))
sys.path.insert(0, os.getcwd())
os.environ["DJANGO_SETTINGS_MODULE"] = "tests.settings"
def run_tests():
if not os.environ.get("DJANGO_SETTINGS_MODULE", False):
setup_django_settings()
... | [
"danirus@eml.cc"
] | danirus@eml.cc |
b4430a14219c8600437fd78e79b8a92262a17cba | bb4c4adcd13f3d9496d03b47d091aaaba03b4559 | /memory.py | 9b9fa9fae55801d73766bac08f6ea390ae20524e | [] | no_license | PhamLeQuangNhat/Multimedia | 7d4236046e5fbe4acf9433fc9837bc8630f98b85 | 56ea242d3945b6d93af6d29fa7d1019ce976ea50 | refs/heads/master | 2022-12-01T20:17:47.580905 | 2020-08-14T05:24:04 | 2020-08-14T05:24:04 | 287,418,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | import os
textPaths = os.listdir("Data")
memory_path = 'memory.txt'
for textPath in textPaths:
textPath = 'Data/' + textPath
Size = os.stat(textPath).st_size
with open(memory_path,'a+') as f:
f.write(str(Size)+'\n') | [
"18520120@gm.uit.edu.vn"
] | 18520120@gm.uit.edu.vn |
df2939149dae9249395389f61cbe8542413d6f56 | 02f37410dfd48c7895ce7d1a47f99eb4087ad1f9 | /temp.py | 75ac00cb6157d138ac0fc393da4a5e0d4d253fc4 | [] | no_license | tjczcs/Python- | e58987e0f0b74e773639752ff851e30ef6c82bc2 | b842e82d7733da3e96b461ab2447b1e506e260c8 | refs/heads/master | 2020-03-25T04:19:26.129139 | 2018-08-06T01:51:42 | 2018-08-06T01:51:42 | 143,388,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,591 | py | # -*-coding:utf-8-*-
import cv2
import numpy
import time
# 视频图像管理类
class CaptureManager(object):
# 类变量前加 _ 代表将变量设置保护变量,只有类对象和子类才能访问
# 类变量前加 __ 代表将变量设置私有变量,只有类对象才能访问
def __init__(self, capture, previewWindowManager=None, shouldMirrorPreview=False):
self.previewWindowManager = previewWindowManager
... | [
"tjczcs@gmail.com"
] | tjczcs@gmail.com |
1b002ff27e79f71f469b0ebe1a940084049bd552 | 52c8d7594de49e3ba47573c50c95bd112c3c8828 | /cycles.py | 67f8843f2dd44172c7166fbadb936912a45fed0f | [] | no_license | vitroid/LiqChemSummerSchool2014 | bcf592be419bccb6e972c11ffff95a7eff355213 | 23a29acbc13548c702518448f52f0f8336b167e2 | refs/heads/master | 2021-06-03T10:29:56.428479 | 2021-02-15T05:34:56 | 2021-02-15T05:34:56 | 21,470,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,020 | py | #!/usr/bin/env python
# coding: utf-8
############# functions ###############################################
#cycles
def all_cycles(graph, maxc=6):
#local functions
def self_avoiding_cycle(graph,vertex_list):
#迷走して経路長が長くなりすぎた時は
if len(vertex_list) == maxc+1:
#あきらめる。(結果なし)
... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
6e69cb3977545d999e0b46fe637354acf1b02b5c | 749d78bfd5333ac80364d595bc64a0ee17257fdb | /test/functional/feature_proxy.py | 6e5a85f65f9a9fe2ef6c29610262926bbd029bed | [
"MIT"
] | permissive | bitcoinhedge/bitcoinhedge | 22b70fa2c76f6ca54b0c3b6885ad4e852afa3e31 | d627c6fb5e174feb8ce378e29af11846edd2a000 | refs/heads/master | 2023-07-14T14:59:39.741065 | 2021-08-15T06:49:15 | 2021-08-15T06:49:15 | 396,245,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,355 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test bitcoind with different proxy configuration.
Test plan:
- Start bitcoinhedged's with different pr... | [
"bitcoinhedge.io@gmail.com"
] | bitcoinhedge.io@gmail.com |
9fa46651bb8f0be979859066c9049ba3d8a34579 | 67a65d28662aef0627628fd083e5049074c200c8 | /object oriented programming/Employee salary calculator.py | 142cf3f9968222fd1a139e2342fcb2941d6ad22e | [] | no_license | techadddict/Python-programmingRG | 036e8e5b56e21006a2bca2a5bc7951768a0eba82 | dc9c561a655bde232b68de5fb8bfd82230ed49ee | refs/heads/master | 2021-01-23T22:30:50.231232 | 2018-04-20T21:39:21 | 2018-04-20T21:39:21 | 102,937,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | class Employee:
def __init__(self):
self._salaryPerHour=0
self._weeklyWorkHours=0
def setSalaryPerHour(self,salary):
if(salary > 0):
self._salaryPerHour = self._salaryPerHour + salary
return True
return False
def setWeeklyWor... | [
"noreply@github.com"
] | techadddict.noreply@github.com |
6cc0888367830a4c28c45168a7f59365643f8178 | c72ed9436a6bda257da55ab4a3c5507794dbe57d | /python/hardway/ex20.py | a0d12eafde84bbffc1f80695fa48cd6e8c9d53ef | [
"Apache-2.0"
] | permissive | petervdb/eLearning | c1a5fce2e948f753506f57b6f761d9de3801bde8 | 81d4039a33e92beb30b6a17eb53024bb259417af | refs/heads/master | 2023-07-06T21:40:00.087573 | 2023-06-29T09:43:18 | 2023-06-29T09:43:18 | 24,708,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | from sys import argv
# variable script is the name of the script
script, input_file = argv
def print_all(f):
print f.read()
def rewind(f):
# Go to byte 0 or to the beginning of the file
f.seek(0)
def print_a_line(line_count, f):
print line_count, f.readline()
# open the file
current_file = open(input_file)
p... | [
"petervanden@gmail.com"
] | petervanden@gmail.com |
28ac891f4dc97de93c283c2b0f47b0e0c4e66cb8 | 508d4568ca9b880068b400c14db0eb411d9d7369 | /simple eliza problem.py | d7c224f7c28d745b45bbf736df81f93060f7f328 | [] | no_license | aniqabushra/empolyeesalary | e06908c717f57fb006681453b845a73909e7a13d | f50ae92289164f0d55efb07fa2cf31bb011a9d60 | refs/heads/master | 2020-12-23T21:34:45.439895 | 2020-01-30T19:15:58 | 2020-01-30T19:15:58 | 237,281,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | #!/usr/bin/env python
# coding: utf-8
# In[2]:
message='Good Day'
message+=""" Please enter your problem, or enter i am feeling great or Q TO QUIT """
answer= True
while not answer=='I am feeling great' and not answer=='Q'and not answer=='q':
answer=input(message.upper())
print(answer.upper())
if answer... | [
"noreply@github.com"
] | aniqabushra.noreply@github.com |
4ec08c0d0272f0782639280da6d3436c5ae2f0cd | df2923e0eb688253e551933ca60da359b86aeb7e | /1. Fundamentals/2_ Hash function, Binary tree.py | 17f1a97d0c0ef37fadc30891ca1b40854ea9955a | [] | no_license | AdarshRazor/DataScience_Roadmap | 349f77cbf767a0886ea9f97e3145742ce346be71 | 46c8ec5d215a8ecca998c4c0cf73ba870a9e9cc4 | refs/heads/main | 2023-03-03T15:41:47.046170 | 2021-02-06T11:41:38 | 2021-02-06T11:41:38 | 336,523,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | '''Function to display hashtable'''
def display_hash(hashTable):
for i in range(len(hashTable)):
print(i, end = " ")
for j in hashTable[i]:
print("-->", end = " ")
print(j, end = " ")
print()
# Creating Hashtable as
# a nested list.
HashTable = [[] for _ in range(10)]
# Hashing Funct... | [
"adarshanshu7@gmail.com"
] | adarshanshu7@gmail.com |
6036931b2e8435d827efe1fce114159d192716b5 | 6bdd0093bff4978245c97baf0e332f534a76984c | /adam/BlackJack/src/blackjack.py | 6ece23fd7806326ce52f2fc5c8a9224ae1401aaa | [] | no_license | Rivia-Team/Python-Coding-Projects | c224971677572bf23e4200587c61278d9c7ae383 | dd6f128891830370c897e6f3c1084c602dc0efab | refs/heads/master | 2022-09-29T05:25:46.252152 | 2020-06-03T22:35:09 | 2020-06-03T22:35:09 | 264,022,581 | 1 | 1 | null | 2020-05-28T14:07:19 | 2020-05-14T20:52:26 | Python | UTF-8 | Python | false | false | 7,665 | py | """
TASK 18
task 18 - Write a program that plays the game BlackJack with a user. For this
exercise you can use procedural or OOP programming styles. Research the rules
of BlackJack to ensure your game is authentic.
Completed: AP -
"""
import random
class Deck:
"""
Provides a Class for holding a s... | [
"adaphel@amazon.com"
] | adaphel@amazon.com |
c5d1bf9a7413640bee136b5ce74807c4f2af6539 | bd8970a094bbe01c9497db089e42e3b0bd15a8c2 | /ATAmentee/views.py | 1e5b82c75c20813af02475a9e660f584194d7396 | [] | no_license | FahmiSyahrulah/pythonanywhere | 224a6a3dfb51c648d1e8206cfd24473214f3f0e1 | c1cb3e97ef29bce77cca02ad4153b62e406bfdbb | refs/heads/master | 2020-04-22T13:54:23.646744 | 2019-02-13T12:36:55 | 2019-02-13T12:36:55 | 170,425,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.shortcuts import render
from .models import Mentee
def mentee(request):
mentee = Mentee.objects.all()
return render(request, 'mentee.html', {'mentees' : mentee})
# Create your views here.
| [
"fahmi@alphatech.id"
] | fahmi@alphatech.id |
a03333e6e8f47eb862a71ef3bd1126e24efd69b5 | fa0b0ae3fa60b9ee449ee834176f0eeb2a79fc7e | /django_exercise/wsgi.py | 682142ea466b2aa8056c77399a8701152592ef5c | [] | no_license | billjyc/girls_django | ef06564a0ead23aec80a795b0d9b7d9d7ad80339 | 83b7fef7069a1247fa3a362af6709fbb7a7e64a7 | refs/heads/master | 2023-09-04T01:32:34.232738 | 2023-08-31T08:51:53 | 2023-08-31T08:51:53 | 107,850,642 | 2 | 0 | null | 2020-09-10T23:58:59 | 2017-10-22T08:50:48 | Python | UTF-8 | Python | false | false | 408 | py | """
WSGI config for django_exercise project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"793746995@qq.com"
] | 793746995@qq.com |
c314f2578271d907f2e52586c12ce854f9ad05c1 | 82fcf7f77d949fce7f1b5f582b0ab28780b4f00f | /psana_mad_scripts/bsub_vid_maker_apr1st.py | 82e545841367bd561b08cc65b4663f3cceec2dbb | [] | no_license | dermen/cxid9114_gain | 7c74cc218d21eab65bac37757a55f214b57eca12 | 275679cbe037e1015e7b3fbf0a601aeb591adef6 | refs/heads/master | 2020-04-11T05:46:41.889879 | 2019-10-25T22:27:54 | 2019-10-25T22:27:54 | 161,559,469 | 0 | 0 | null | 2019-01-22T23:58:20 | 2018-12-12T23:53:23 | Python | UTF-8 | Python | false | false | 520 | py | import sys
import glob
import subprocess
import os
rank = int(sys.argv[1])
n_jobs = int(sys.argv[2])
call = int(sys.argv[3])
tag = "_betelgeuse"
run_num = 63
all_shot_idx = [int(f.split("_")[1]) for f in glob.glob("results/run63/dump*feb8th.pkl")]
for i, shot_idx in enumerate(all_shot_idx):
if i % n_jobs != ran... | [
"dermen@lbl.gov"
] | dermen@lbl.gov |
dc2ac181fa84de102a929a4dfb8be7ea70c45802 | de1da39dbab74f5ea756dd0687cd48c01db973b4 | /event_details/views.py | b9119c84efd3d96b5ee124411339302b3cda8dd8 | [] | no_license | madhavthatavarthi/events | e4c9c20a2cc514b77d683ac0920a7de1d96b38b4 | fc8f2fe16fc2425f56ffe3e5fc6f6459063860a8 | refs/heads/master | 2021-01-10T07:49:32.497908 | 2015-11-27T04:16:34 | 2015-11-27T04:16:34 | 46,959,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from django.shortcuts import render,render_to_response,RequestContext
# Create your views here.
def home(request):
return render_to_response("signup.html",locals(),context_instance=RequestContext(request)) | [
"madhavkrishna"
] | madhavkrishna |
8230dc2a57f309ae6fab75d29b13dfd5b5c7ce6c | 56733bb8c0cbc6df7dd158a5bbd52bfeab00b54c | /3b_baseline_model.py | 1985c5a77ca8bb2f9f45614f0909fb076e81d782 | [] | no_license | briangriner/ImageCaptioningGeneratorTuning | 87fcf3d822b55926742f654bf6e7388438882c98 | 5a77c3a968d52f0d648dce03f1c98304bb77d848 | refs/heads/master | 2020-03-27T12:19:35.000961 | 2018-08-30T19:47:31 | 2018-08-30T19:47:31 | 146,539,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,066 | py | # baseline model - load, fit, evaluate, test & predict
#from os import listdir
from numpy import array
from numpy import argmax
from pandas import DataFrame
from nltk.translate.bleu_score import corpus_bleu
from pickle import load
from keras.preprocessing.text import Tokenizer
from keras.preprocessing.sequence import... | [
"noreply@github.com"
] | briangriner.noreply@github.com |
350c923c201ad34d0dd0434bf9b4cd5dbae11642 | 2b0191be789f2ef141062e27f2141b716f5ad5c9 | /env/bin/pyjson5 | 204a342fddaa030b41fe77373e5bda19b9f0ff91 | [] | no_license | Team-Dynamic-Niobium/parkinsons | ad8ffd7f2de3fe16c95c429110a6c819b1dd8f0f | d3dfef74da6f9a537b26f5655460179c83bb0dbb | refs/heads/master | 2022-10-15T15:51:49.510006 | 2019-07-17T22:36:34 | 2019-07-17T22:36:34 | 196,574,603 | 0 | 1 | null | 2022-10-09T01:03:03 | 2019-07-12T12:21:02 | Jupyter Notebook | UTF-8 | Python | false | false | 273 | #!/Users/michaelsprintson/Documents/GitHub/parkinsonsplayground/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from json5.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ms148@rice.edu"
] | ms148@rice.edu | |
2f0e3e3307bcefb29b7540d2e93132e224097d80 | dc67c92b30951166395efae182f3c2efdebdb289 | /Tic Tac Toe/boardgames/manage.py | db2471770ac49c4bb3ad84bfad18a15fa7a6ded6 | [] | no_license | Ashwaray/Games | 9ff2503293ac3e904d3b20bbf54dba529c983c5c | e13603d8f154dc32c06dc97804d49ed8a68a9186 | refs/heads/master | 2023-02-22T09:19:33.342055 | 2023-02-05T14:35:26 | 2023-02-05T14:35:26 | 27,881,769 | 10 | 14 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "boardgames.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"ashwarayraj@gmail.com"
] | ashwarayraj@gmail.com |
53ac1fa969c7ae89fdc5b25d04b9d4a2285eb25f | c5720e05c11f5dd40805f4fdacc1101f56952cf9 | /test/cythoncompile.py | f3ffbce56c20df7d0049f65ea8465e42b82c7ee9 | [
"MIT"
] | permissive | minhtuan221/cython-npm | cacd20492e5170e3369047ecd8d2942d8c734160 | ea6e2c9910800ffc12f8d8cfc5d39ad8198ef87c | refs/heads/master | 2021-06-05T18:12:44.957501 | 2021-04-29T02:28:23 | 2021-04-29T02:28:23 | 123,369,725 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,132 | py | import subprocess as cmd
import os
import sys
from importlib import reload
def hello():
print('import successfully')
def write_setup_file(listfile: list):
if not os.path.exists('build'):
os.makedirs('build')
onefile = open('build/setup.py', "w")
onefile.write('from distutils.core import setu... | [
"ntuan221@gmail.com"
] | ntuan221@gmail.com |
3772042c0b4673ba18792c1a92a50fa02b13da8c | cc2f2695aed74c038f1203bb4715f4f5afb7095b | /my-django/covidmap/Mapcovid/models.py | 603c3b8149c8f3b27b21c567641cc3d377990a02 | [] | no_license | LeTuyen-Kami/Django-project | e263c2eb12fb0cad547400bd514f947b951eb4db | 5c6e26904998c6ac926b9aaa88fa658bbceb32ce | refs/heads/main | 2023-09-05T14:57:08.960834 | 2021-11-21T10:33:11 | 2021-11-21T10:33:11 | 426,536,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,839 | py | from django.db import models
from datetime import date
# Create your models here.
class Locations(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=100)
code = models.IntegerField(default=0)
death = models.IntegerField(default=0)
cases = models.IntegerField... | [
"82325497+LeTuyen-Kami@users.noreply.github.com"
] | 82325497+LeTuyen-Kami@users.noreply.github.com |
3542fdbcb6b62b7845c262e95eebf59deaed34a4 | c6b98c88fc553e709f2fb6fa88c7893c21f47f30 | /Exareme-Docker/src/exareme/exareme-tools/madis/src/functionslocal/vtable/filtertable.py | 8aefd5f11bf77565f20cc917c11cc39025808ec6 | [
"MIT",
"Zlib",
"LicenseRef-scancode-free-unknown"
] | permissive | LSmyrnaios/exareme | f8a7db17a20958c53bebc25a8e1b4eab96a7570e | 9b2b9360f0564d08fc76a56a7a750e2d1074ed4f | refs/heads/master | 2022-12-01T07:34:13.667213 | 2020-11-03T11:32:09 | 2020-11-03T11:32:09 | 159,374,117 | 0 | 0 | MIT | 2018-11-27T17:30:47 | 2018-11-27T17:30:47 | null | UTF-8 | Python | false | false | 3,582 | py | import setpath
import functions
import json
registered=True
# Filters the input table using the filters argument
# For example
# lala table :
# [1|1[2|tear-prod-rate[3|normal[4|?
# --- [0|Column names ---
# [1|no [2|colname [3|val [4|nextnode
# var 'filters' from select tabletojson(colname,val, "colname,val") from lal... | [
"ezacharia@di.uoa.gr"
] | ezacharia@di.uoa.gr |
4101a414bc81a6855c23bcb597e440b747bd1411 | fa64d67d9a0eef7c25010942b46a504955e902ab | /oldboy/day3/day3_zuoye/backgroud/__init__.py | 2bc47e6890ff75b795a56b1180626e243b1a7938 | [] | no_license | eehello/learn_python | b22989c005715c236e212f3796eda5c6ab16232a | 172056f050bc61747b26b5973f5982ce1291918c | refs/heads/master | 2021-01-18T22:05:14.190746 | 2019-07-17T07:24:12 | 2019-07-17T07:24:12 | 42,077,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | #!/usr/bin/env python
# coding=utf-8
'''
# @Created on : 2016/04/17 11:39
# @Author : ldf (ldf@eehello.com)
# @Link : http://www.eehello.com
# @Version :
# 本程序在python2.7下测试通过
'''
| [
"ldf3699@qq.com"
] | ldf3699@qq.com |
30d63cd15b1bc72f4765ecb46b30382c5c8a4899 | 7989dc9785cff40f1ceb227fdf7349bd4a12a5a7 | /api/migrations/0004_auto_20150311_1753.py | d0824d8f7a018b7d92d281dece61d8a88ac4ee79 | [] | no_license | shwetareddy/portfolio-performance | 81b49e7b3f11866bffbca11490a787bfd18ef316 | 70b964c1ad4fc8e1df66b9faf11623ec480911a0 | refs/heads/master | 2020-06-01T01:14:32.168176 | 2015-03-12T17:01:57 | 2015-03-12T17:01:57 | 32,024,118 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0003_auto_20150311_1713'),
]
operations = [
migrations.RenameModel(
old_name='Portfolio',
new... | [
"sreddy@fool.com"
] | sreddy@fool.com |
665c0fbc085f5915e5aefd81391b134168c285aa | 687f2bdfc428ef6fba89e3ed279f1c82a0b49aee | /STT_Providres/IBM_STT_Batch.py | 2b60047798dbfa912b8d1dca6ee40e6605517d73 | [] | no_license | Mozartt/Mozartt | 31b8d717f57a597bb402d5dcfae8c0dab39aa3c4 | 468fbe5f67646f0fbceb381c1c9cac5bbc43a0ea | refs/heads/master | 2023-06-21T12:36:56.669003 | 2021-08-03T08:28:28 | 2021-08-03T08:28:28 | 370,615,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from ibm_watson import SpeechToTextV1
from ibm_cloud_sdk_core.authenticators import IAMAuthenticator
import json
# the path of the audio file
audio_file_path = 'C:/Users/Amit/Dropbox/Amit_and_Pini/ASR/ASR_DOCS/test_audio.wav'
# import the credentials from the json file
with open('C:/Users/Amit/Documents/ASR_keys/IBM... | [
"gil.tsdk@gmail.com"
] | gil.tsdk@gmail.com |
6a6db5bece9c1fe854fa2c2c0cd5cb50ecfd16a3 | 8f162949a6f805fc66cf36bfc4c26506ba65340f | /quote_game_CSV_scrape.py | 4216ba7c2159e00de062aabefea446070a64af72 | [] | no_license | IterationJN9/Quote-Game-Scraping-Project | 904bbbcf4cc9d9125b0a8c3a44e9d78f7b35781b | 747f0b8f609ea54bc297f4c5102541fa834322d5 | refs/heads/main | 2023-06-12T04:03:42.123706 | 2021-07-04T00:36:38 | 2021-07-04T00:36:38 | 382,733,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,559 | py | # This program grabs data on every quote from the website http://quotes.toscrape.com/ and creates a guessing game.
# The player has four guesses to determine who said the quote.
# After every incorrect guess, the player receives a hint about the author.
import requests
from bs4 import BeautifulSoup
from time imp... | [
"noreply@github.com"
] | IterationJN9.noreply@github.com |
f0e7c0414602a99eb49b99e2deeb7a13c9cef635 | 1b2a1f807b98034567e936b9b5c76c2fc89b908a | /adj_stf/experimental/classification/multi_label_classification_model.py | 6cb7fefe4e9aa02a3c55a5373d8693d745ffdb73 | [] | no_license | Adreambottle/Transformer2GP | 48c955d8eb155caef4c24a3c03ee3aa9ab0bd3da | 5ba1a5005c2ad21066304cdeb1d7c2587c8191da | refs/heads/main | 2023-07-07T14:17:51.673437 | 2021-08-17T14:14:56 | 2021-08-17T14:14:56 | 397,279,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,051 | py | from multiprocessing import cpu_count
import torch
from adj_tf import (
WEIGHTS_NAME,
AlbertConfig,
AlbertTokenizer,
BertConfig,
BertTokenizer,
DistilBertConfig,
DistilBertTokenizer,
RobertaConfig,
RobertaTokenizer,
XLMConfig,
XLMTokenizer,
XLNetConfig,
XLNetTokenize... | [
"adreambottle@outlook.com"
] | adreambottle@outlook.com |
1657f47f0d775612c12560663e94a60de071eab1 | 7d096568677660790479d87c22b47aae838ef96b | /stubs-legacy/System/Diagnostics/__init___parts/DebuggerBrowsableState.py | 43d462d3dfbd7bf6c6f0f09f2a3384a2c0254e67 | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 999 | py | class DebuggerBrowsableState(Enum,IComparable,IFormattable,IConvertible):
"""
Provides display instructions for the debugger.
enum DebuggerBrowsableState,values: Collapsed (2),Never (0),RootHidden (3)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
54c9a65d15786c181c4f835eedac784926e7b84a | ce745254ee1c55f06c90b2c0739a4db29efa9913 | /src/test/python/cpython-3f944f44ee41/Lib/warnings.py | a427e3510ecaaa6dadeb2a4e957bb6d4880576c7 | [
"MIT"
] | permissive | bkiers/python3-parser | 5deb0c681e42b07d459758d864fd0689bf26dbad | 5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd | refs/heads/master | 2022-10-31T22:02:07.484767 | 2021-11-17T09:31:49 | 2021-11-17T09:31:49 | 20,738,250 | 39 | 25 | MIT | 2022-12-13T08:42:28 | 2014-06-11T19:34:28 | Python | UTF-8 | Python | false | false | 13,725 | py | """Python part of the warnings subsystem."""
import sys
__all__ = ["warn", "showwarning", "formatwarning", "filterwarnings",
"resetwarnings", "catch_warnings"]
def showwarning(message, category, filename, lineno, file=None, line=None):
"""Hook to write a warning to a file; replace if you like."""
... | [
"bkiers@gmail.com"
] | bkiers@gmail.com |
be37c8273bdbe38abf2738a8a9cba388af53ba3d | c62e8909e7223a93ebab218588f766e290ead07c | /math_clases.py | 04de90122c700441cbd56da9a23f24dc1193bd06 | [] | no_license | T0biasLJ/Mis_practicas | 1692594aa8bc52d7ca10c9a9d1135292e82aa3fe | a6b2dbd78bab46945f18521c64e78622689d8e18 | refs/heads/main | 2023-01-10T21:48:12.645128 | 2020-11-04T00:17:54 | 2020-11-04T00:17:54 | 303,260,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | import math
class Operacion:
def __init__(self,numero):
self.__numero=numero
def floor(self):
a=math.floor(self.__numero)
return f"{a}"
def ceil(self):
b=math.ceil(self.__numero)
return f"{b}"
def raiz(self):
c=math.sqrt(self.__numero)
... | [
"luisjair1394@gmail.com"
] | luisjair1394@gmail.com |
cacf8e4d243c0ae83e170bf70a7cc676385aa66c | 7ff4d25abbafb2cb377c2f60d4b1fecc5a3821f8 | /auth.py | f0120c0c667083921f9ac4f2d1d8479b9f439c5a | [] | no_license | PolyakovDmitry546/Automata-web | 19de2a97249af88de036d1ad884507506ad7af99 | 0f8156b3975632a16908fc86c10705c2688a007d | refs/heads/main | 2023-06-10T06:22:26.751062 | 2021-06-25T16:18:55 | 2021-06-25T16:18:55 | 380,290,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | from flask import Blueprint, render_template, flash, redirect, url_for, request
from werkzeug.security import check_password_hash, generate_password_hash
from flask_login import login_user, logout_user, login_required
from models import User
from forms import LoginForm, RegisterFrom
from app import db
auth = Blueprin... | [
"polyakov1803@gmail.com"
] | polyakov1803@gmail.com |
28b1c77ecff929be307f8f20e939b604c222d23f | 3819fb04de99d68faee220a4d0dfddef2621cee4 | /Code/Codeforces/315A.py | 16183046b52145a7322fe2c07e624482cbeadf54 | [] | no_license | aroslhy/acm | 4a41e46099e2dbcf596c04e5f351f51465967598 | 26d1784e65d7513bc58549cf6d1b3926adc538ff | refs/heads/master | 2021-01-22T06:54:26.587202 | 2015-07-20T11:11:53 | 2015-07-20T11:11:53 | 5,214,096 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | N = input()
a, b = zip(*[map(int, raw_input().split()) for i in xrange(N)])
print len([i for i in xrange(N) if a[i] not in b[:i]+b[i+1:]])
| [
"aroslhy@gmail.com"
] | aroslhy@gmail.com |
176946ec4f99ab6eea1b770a09a582e57ac29f27 | 0e57fc12387e055428245ab7cd55646e58c89b41 | /web_project/urls.py | 58ae8a802b4415e40c5ccde0598b72972398491c | [] | no_license | Igor-Savchenko/hello-django | de8b93380f540fc17ec00654980c5ca4086f6520 | db85a9c4d15796fa71b06227e6af8ae2ea7e0684 | refs/heads/master | 2021-06-11T23:34:38.721222 | 2019-04-17T06:52:37 | 2019-04-17T06:52:37 | 181,812,460 | 0 | 0 | null | 2021-06-10T21:22:19 | 2019-04-17T03:44:10 | Python | UTF-8 | Python | false | false | 914 | py | """web_project 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')
Class-b... | [
"savchenko.igor@gmail.com"
] | savchenko.igor@gmail.com |
587300ad805ea0dc3e53c6f2b15f2d3e10d21ab2 | 47f592a261814079e0a32765b9c1a9e2139677d4 | /SConstruct | ee455a79f40f6175308efd2f5995e76e1090313c | [] | no_license | ctalbert/pow-wow | 75a6bd83c6fcea79c4abed10dffa36364cbde601 | fb9e48a633a121bb08284ce1821eb6fb48e2a2ea | refs/heads/master | 2020-12-25T02:01:05.999815 | 2011-04-14T07:28:31 | 2011-04-14T07:28:31 | 1,601,731 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | import sys
import os
# TODO: I'm quite certain the Configuration settings can handle this, but
# I can't seem to make it work, so punting for now...
def is_mac():
if sys.platform == 'darwin':
return True
return False
def is_linux():
if sys.platform == 'linux2':
return True
return Fals... | [
"ctalbert@mozilla.com"
] | ctalbert@mozilla.com | |
0220e4324e593765de6581687f97872b9f27d187 | 42bdc0a13d05ff64ff1963eea52a4fb26a498618 | /scripts/education/bluetooth/rfcomm-server-sdp.py | 9cff3409deca81db2d5fa5378fe46761d00fa7ca | [] | no_license | AndrewGrankin/public-python-ev3-git | 999df2f3380af91545145ca695f485f6b001a513 | 6fc9c6c1733eb8a6256b726019fbccca33ead6af | refs/heads/main | 2023-08-24T20:49:00.313436 | 2021-11-05T21:38:57 | 2021-11-05T21:38:57 | 351,517,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | #!/usr/bin/python3
from bluetooth import *
#from ev3dev2.sound import Sound
#speaker = Sound()
server_socket = BluetoothSocket( RFCOMM )
server_socket.bind(("",PORT_ANY))
server_socket.listen(1)
port = server_socket.getsockname()[1]
print(server_socket.getsockname())
print("Listening on port:", port)
uuid = "ffff"
... | [
"andreygrankin@gmail.com"
] | andreygrankin@gmail.com |
84a794a292b2406e19b1ccb185eeb074c0012457 | fcc1904070a6dd362d78bfa990237b346761b92d | /classifier/evaluation.py | a0fbd54bc4e872166bd73577b453e03ea311a83b | [] | no_license | VivekVinushanth/H1N1Prediction | 46c69e51c2641aa37543de51d8152e8564e114f1 | 34b30c94000b2c1e4dd94c370221291aa783a377 | refs/heads/master | 2022-11-08T17:24:16.158111 | 2020-06-17T02:41:32 | 2020-06-17T02:41:32 | 259,828,755 | 0 | 1 | null | 2020-05-26T11:07:17 | 2020-04-29T05:01:13 | Python | UTF-8 | Python | false | false | 3,620 | py | """Class to compare performance with different classifiers"""
import sys
from matplotlib import pyplot
from numpy import sort
from sklearn.feature_selection import SelectFromModel
from xgboost import plot_importance
sys.path.append('../../')
# sys.path.append('/content/Modified-Geometric-Smote/')
import numpy as np
i... | [
"cvivekvinushanth@gmail.com"
] | cvivekvinushanth@gmail.com |
192ae0766437c0f8325e7e24b989514be2a9acce | 853c4d3fb663d15020c6fe94b061f8954e663b75 | /camera/rotate.py | c99d98d7167e8863adea834a7ec517f671715a8b | [] | no_license | woody1/ultimate-coop | 1c9be18f96b8bc7d28fcce40815575c9825b146b | 0a49954db310146b6f1c51ca5d3eda3cd48f8c7b | refs/heads/master | 2021-04-27T00:13:14.540932 | 2018-07-01T22:07:00 | 2018-07-01T22:07:00 | 123,773,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | # USAGE
# python rotate.py --image ../images/trex.png
# Import the necessary packages
import numpy as np
import argparse
import imutils
import cv2
# Construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i", "--image", required = True,
help = "Path to th... | [
"andrew.wood@aswood.com"
] | andrew.wood@aswood.com |
ad0646d8b6725f5fb875510a1944d2a4c900e23d | c89e59b4d018e8a2d7dc0dbc3bb7a3768024f849 | /before2021/python/문제풀이/day5/3_숫자카운팅.py | a21ba81101844a7fb5f88a171cfd12bc1c5fbafa | [] | no_license | leeiopd/algorithm | ff32103a43e467a5a091257cc07cf35365ecbf91 | e41647d3918c3099110d97f455c5ebf9a38d571e | refs/heads/master | 2023-03-08T23:46:34.919991 | 2023-02-22T09:39:46 | 2023-02-22T09:39:46 | 166,131,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | import sys
sys.stdin = open("3_input.txt")
'''
첫째 줄에 N 이 입력된다. (1≤N≤200,000)
둘째 줄에 배열에 저장 되어있는 N개의 숫자가 순서대로 공백으로 구분되어 입력된다.
셋째 줄에 M 이 입력된다. (1≤M≤200,000)
넷째 줄에 M개의 탐색할 숫자가 순서대로 공백으로 구분되어 입력된다.
(이 숫자는 정렬 되어있지 않다)
입력 넷째 줄에서 주어진 탐색할 숫자의 배열 내 저장된 개수를 차례대로 출력한다.
'''
N = int(input())
arr = list(map(int, in... | [
"leeiopd@hanmail.net"
] | leeiopd@hanmail.net |
33e0b4d5228e326d0aedb905b12119ac34a50959 | c7f6551c38a505d3cc05906ba07aba01fd854e3c | /videorequest/urls.py | 4fb2dbf777c3b3223deed420a52efedea9243d4f | [] | no_license | ash264/Video_Request | 35565a94842b14e8a604470922f91198a2f39c89 | ba7d13a8e02108aaf7bc60caed30e72e03349aae | refs/heads/master | 2020-04-30T11:08:28.376415 | 2019-03-20T18:31:36 | 2019-03-20T18:31:36 | 176,794,313 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.index,name='index' ),
path('vrform/',views.vrform,name='vrform' ),
]
| [
"ashishsharma8445@gmail.com"
] | ashishsharma8445@gmail.com |
ba1dcb17a6e7d524f9f07edc2b67b588720faaad | c25a17f0f82c2eebca55bbe180f4c2ccbbf00292 | /01_Jump_to_python/Chap06/6장_practice/practice4_메모장.py | 786b7b2f7c82951b7ad1f09ccb24176b86c390b9 | [] | no_license | superbeom97/jumpjump | a0a4da6f0df0483ef0cef9833b5fe0402ec63c9c | fc45efce2a2b00c614aa5aa54b36be1572ed40ce | refs/heads/master | 2021-09-15T09:35:16.903857 | 2018-05-30T00:00:59 | 2018-05-30T00:00:59 | 111,883,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,901 | py | import sys
args = sys.argv
args_one = args[1]
args_two = args[2:]
if args_one == "-a":
try:
f = open("memo.txt", 'r')
f = open("memo.txt", 'a')
f.write(" ".join(args_two))
f.write("\n")
f.close()
except:
number = int(input("memo.txt 파일이 없습니다. 아래 중 선택하세요\n1. mem... | [
"beom9790@naver.com"
] | beom9790@naver.com |
e67af2421558b2a196f0c5584ac66fb0e1dd4252 | 8f0fc0f4ac44e85e87ade78ac3f8d3b1996587e5 | /Model_1.py | ae103fcd74ce05a1803a2d225dbbde006b88ee19 | [] | no_license | Data-drone/Kaggle_Allstate | 91bc9d2400866f58813f4ba6f04009647d90fd0a | 70b7f63eefea55ec9f0c8da6217b7f9ee8f12e76 | refs/heads/master | 2021-06-30T09:57:59.864482 | 2017-09-21T17:48:43 | 2017-09-21T17:48:43 | 74,899,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 29 23:23:27 2016
@author: Brian
"""
"""
Build model 1 script
"""
import os
import pandas as pd
import numpy as np
"""
feat table_1
"""
#### standard functions
def Find_Low_Var(frame):
sizes = []
low_var_col = []
for column in frame:
data_sets = fram... | [
"bpl.law@gmail.com"
] | bpl.law@gmail.com |
c0f84c701d6083a055c56a3db2f06fafc53a65f1 | 19ec1116024bebfe16d099f273bd3997b212f594 | /FinancePython/strategy_tester/ResultsAnalyser.py | c5e023ef831ce5f75993d87f3206530e38a5596c | [] | no_license | GBelzoni/BigGits | 6058f3e89016ad8d39dfe4de339c76e547529032 | daa538eca30459bd38a6d7332a27a3b38fac5875 | refs/heads/master | 2016-09-05T16:06:33.263000 | 2014-05-10T17:54:19 | 2014-05-10T17:54:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,357 | py | '''
Created on Jun 23, 2013
@author: phcostello
'''
import pandas as pd
import numpy as np
class ResultsAnalyser(object):
'''
This class analyses fitted trade strategy object
'''
def __init__(self, data, valueIndex = 'Value', referenceIndex = None):
'''
Takes a pandas dataframe objec... | [
"patrickhcostello@gmail.com"
] | patrickhcostello@gmail.com |
9c7e0ec9ac281a7e422bfd1d6657a9deae3fdd71 | 5b9035dbfe0750e9933728f9631ad7a183dd3429 | /18/01/Pool.py | 370cc9e9856dfee8cce0818fc689057d3fd7a977 | [
"CC0-1.0"
] | permissive | pylangstudy/201709 | 271efbd4f337d912d0ca958a621eb2a040091528 | 53d868786d7327a83bfa7f4149549c6f9855a6c6 | refs/heads/master | 2021-01-21T12:16:21.950493 | 2017-09-30T00:02:34 | 2017-09-30T00:02:34 | 102,058,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | import weakref
import csv
class ConstMeta(type):
class ConstError(TypeError): pass
def __init__(self, name, bases, dict):
super(ConstMeta, self).__init__(name, bases, dict)
import sys
sys.modules[name]=self()#ConstMetaを継承したクラスのモジュールに、そのクラスのインスタンスを代入する
def __setattr__... | [
"pylangstudy@yahoo.co.jp"
] | pylangstudy@yahoo.co.jp |
da2d02b896509df95c30e65c5bf1e3d25ed7b51d | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/watttime/config_flow.py | 4f4206da6ec6ff93b3340a48f97d4137be234a68 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 8,742 | py | """Config flow for WattTime integration."""
from __future__ import annotations
from collections.abc import Mapping
from typing import TYPE_CHECKING, Any
from aiowatttime import Client
from aiowatttime.errors import CoordinatesNotFoundError, InvalidCredentialsError
import voluptuous as vol
from homeassistant import c... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
43d4c7d2d7bb6f1ecbf5e63561d6f9a6cec1f7ee | b891b6f5f51750a95c4b4ad5766cc63431ad2799 | /config.py | 0618a3ed2bdd25bc6efb6da48cbc927c5bb0eb49 | [
"MIT"
] | permissive | dennisnyamweya/pitching | b12a75f5681289ee70cab65eeb19da5c35c7e718 | 9c338d3f496f9855b0a9233579f9aa4d3c0d6464 | refs/heads/master | 2022-09-26T13:55:22.784323 | 2019-08-06T04:27:52 | 2019-08-06T04:27:52 | 200,616,118 | 0 | 0 | MIT | 2022-09-16T18:07:47 | 2019-08-05T08:36:44 | Python | UTF-8 | Python | false | false | 821 | py | import os
class Config:
"""Main configurations class"""
SQLALCHEMY_TRACK_MODIFICATIONS = False
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://moringa:123@localhost/pitchy'
SECRET_KEY = "try harder"
UPLOADED_PHOTOS_DEST = 'app/static/photos'
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 58... | [
"denisnyamweya813@gmail.com"
] | denisnyamweya813@gmail.com |
5ece09a66651f14e112290e2171b899807864bf6 | 9a15949a43a7be898e59b8b10abedd579689eb5e | /tests/test_flatten_dict.py | 00b559ac428300d48aa5da8ae1f34b763a3a34ce | [
"MIT"
] | permissive | Yursksf1/flatten_dict | 8c9bde931bd3d6b94fa13bb4afaf1db04c82382f | 320c5f0928de79c1be1aa1d34a9669e8c8ef69cd | refs/heads/master | 2021-04-06T13:38:52.393538 | 2018-03-10T17:29:21 | 2018-03-10T17:29:21 | 124,680,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `flatten_dict` package."""
import pytest
from click.testing import CliRunner
from flatten_dict import flatten_dict
from flatten_dict import cli
@pytest.fixture
def response():
"""Sample pytest fixture.
See more at: http://doc.pytest.org/en/latest... | [
"yurs.ksf1@gmail.com"
] | yurs.ksf1@gmail.com |
809f4d6ccf437d7238587f4e5b97d6647aa4658c | 020a43e781c19f0e6177c0b1be2a4ad75fb9bfbf | /wce_triage/bin/fanout_copy.py | e7ea4771895bd222f221c8b6bdf34986c32451cd | [
"MIT"
] | permissive | ntai/wce-triage-v2 | f2a29a93656647eb21c166d260daf3cd8560864e | 108802602ab8495b388fc2c8a395608233e19eed | refs/heads/master | 2023-08-02T16:25:29.311539 | 2023-04-08T03:11:38 | 2023-04-08T03:11:38 | 187,088,190 | 3 | 2 | MIT | 2023-07-20T15:04:06 | 2019-05-16T19:20:48 | Python | UTF-8 | Python | false | false | 11,098 | py | #!/usr/bin/python3
import io
import os, sys, datetime, json, traceback, signal, stat
import threading
from ..lib.util import init_triage_logger
from ..lib.timeutil import in_seconds
from ..ops.run_state import RunState, RUN_STATE
import queue
import time
import multiprocessing as mp
import typing
start_time = datetime... | [
"ntai@cleanwinner.com"
] | ntai@cleanwinner.com |
72fc1a317ee3b707d2fef08890547c6b90581c43 | 2a4e7362819b725cb905c171f0bd69e922f2f71a | /python-venv/bin/rst2pseudoxml.py | 8c85e1a688a7e630f5b8bcf434873de264b40aa4 | [] | no_license | adityagc/CS-109-Data-science | e1aac95c5216d28fce42ca35efa4c115c5bf56b6 | 359e200f6ef3d5232608306c4b30841727514a00 | refs/heads/master | 2022-11-15T20:57:51.662164 | 2018-07-15T15:52:50 | 2018-07-15T15:52:50 | 135,188,380 | 0 | 2 | null | 2022-11-03T16:22:52 | 2018-05-28T17:04:33 | Python | UTF-8 | Python | false | false | 651 | py | #!/home/adityagc/Desktop/CS-109-Data-science/python-venv/bin/python2
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing pseudo-XML.
"""
try... | [
"adityagc@gmail.com"
] | adityagc@gmail.com |
4bb5fe491298503041491de635624ead25c64fe4 | 55fb8b448831a0aee6b7f5ff050616da3eee9f8d | /network/AI_net.py | 110b24c5fd1cf3bd76cffdc1aacbb1cd8d08ede8 | [] | no_license | xsir317/Renju-AI | 0f502ab9bab278e0601377004513c8596a465223 | 92350f0a99a9adcfb4617ebc872c9120a3f02569 | refs/heads/master | 2021-05-31T17:42:44.153725 | 2016-06-29T13:12:45 | 2016-06-29T13:12:45 | 114,357,155 | 0 | 1 | null | 2017-12-15T10:12:54 | 2017-12-15T10:12:54 | null | UTF-8 | Python | false | false | 13,424 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# author: <yao62995@gmail.com>
import os
import re
import simplejson as json
import tensorflow as tf
TOWER_NAME = "tower"
def weight_variable(shape, stddev=1.0, name=None):
initial = tf.truncated_normal(shape, stddev=stddev)
return tf.Variable(initial, name=name)
... | [
"yao62995@gmail.com"
] | yao62995@gmail.com |
0f044e4f3f68770327f60b306ca346a9a878c576 | 665ee950548f3461b8bb6d9f1cf863e025f35592 | /DSA/lab4/postfix.py | be5bf4d2a68d1eaa2c196b94b5eb99a23599642d | [] | no_license | CinnamonRolls1/it-3rd-sem | 09b863be2aa7ebf2ffa04c1d2973b0e1494e4cd1 | bf349729b6411f93aa231a1afaabbae9aae9316b | refs/heads/master | 2020-04-28T16:35:11.998437 | 2019-03-27T18:22:49 | 2019-03-27T18:22:49 | 175,416,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from Mystack import Stack
def post(inp):
S=Stack()
data=inp.split()
for i in range(0,len(data)):
if(data[i]=="+" or data[i]=="-" or data[i]=="*" or data[i]=="/" or data[i]=="^"):
a=S.Pop()
b=S.Pop()
if(data[i]=="^"):
op="**"
else:
op=data[i]
result=b+op+a
S.Push(str(eval(result)))
el... | [
"chinmayanks@gmail.com"
] | chinmayanks@gmail.com |
07b293d229357fb7a30af429f26cc27c3258bcc2 | a7fd2ed77661ed0e32d75678bdfbb448a4b1a38d | /ABC/ABC169/E.py | 83299df85f453d27cbba2a130895d08c020b6e77 | [] | no_license | Rikuo-git/AtCoder | 218a976a96f961371f4c1f4a8bf0e4ef7a78e09c | e7fe5db837acba11aed890181d429517c0f4bedc | refs/heads/master | 2023-03-03T10:07:09.825074 | 2021-02-15T11:37:10 | 2021-02-15T11:37:10 | 266,530,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # my solution
import numpy as np
(n,),*l = [[*map(int,i.split())]for i in open(0)]
a,b = np.median(l,axis=0)
if n%2>0:
print(int(b-a+1))
else:
print(int(b*2-a*2)+1)
# 奇数の時は中央値の間、偶数の時は中央値の間かける2倍
# shortest fsdshn 数学的にやっていることは同じ
n,*l=map(int,open(0).read().split())
m,M=sorted(l[::2]),sorted(l[1::2])
d=n//2
print... | [
"rikuo.takahashi@keio.jp"
] | rikuo.takahashi@keio.jp |
5d390c0d1256d7b6979f0a7e5a1f7fe3d99fefc5 | cfb3a3e1ff9d52eb78eeaf8cc5862b0b15646cf1 | /211014-fujitsu/opentuner/test/interface_v4.py | 6244f9a22a3e3d1861567d3716316c4d44a48786 | [] | no_license | smallcat9603/simgrid | 792faf6a4962eea4c504a30238ce4c1c35f0f322 | ac3047342bb298825e945a10fa7fe72a0180232d | refs/heads/master | 2023-04-05T00:56:46.146355 | 2022-10-28T16:14:30 | 2022-10-28T16:14:30 | 154,488,781 | 2 | 0 | null | 2023-03-16T07:36:22 | 2018-10-24T11:23:00 | Python | UTF-8 | Python | false | false | 14,874 | py | # v1, modified by smallcat 211207, add new objective (simulated time) for simgrid use
# v2, modified by smallcat 220623, add new objective (FLOPS) for HPL, HPCG (Kashiwa FPGA)
# v3, modified by smallcat 220706, handle output error & overtime
# v4, modified by smallcat 220725, obtain output result when interrupted (hpl... | [
"huyao0107@gmail.com"
] | huyao0107@gmail.com |
e6790effcd437b560f2f787aba0b6d9062b9e38e | 6437a3a4a31ab9ad233d6b2d985beb50ed50de23 | /PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/paramiko/sftp.py | 075e6e9b4e62c0ecd9c3279fdf58e28f5b90d4e0 | [] | no_license | sreyemnayr/jss-lost-mode-app | 03ddc472decde3c17a11294d8ee48b02f83b71e7 | 3ff4ba6fb13f4f3a4a98bfc824eace137f6aabaa | refs/heads/master | 2021-05-02T08:50:10.580091 | 2018-02-08T20:32:29 | 2018-02-08T20:32:29 | 120,813,623 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,534 | py | #\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
... | [
"ryanmeyersweb@gmail.com"
] | ryanmeyersweb@gmail.com |
e37361d90c5b971bc11ccefd99bfcf9e7985d8db | 2c7acdc47880bcb9b4862dd5ec621a5ffcd2c25f | /ProblemSet6/ps6.py | 976b01c0947266034090cb8a4124f49eaef3ddbb | [] | no_license | draconar/MITx-600x | 023b772b76fcac67e8064d97a62f8d3dab1eb86d | d37422bd2c955f6d3920bad85faf61ab3accde53 | refs/heads/master | 2020-12-11T09:22:23.367333 | 2013-07-03T09:27:44 | 2013-07-03T09:27:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,881 | py | # 6.00x Problem Set 6
# RSS Feed Filter
import feedparser
import string
import time
from project_util import translate_html
from Tkinter import *
#-----------------------------------------------------------------------
#
# Problem Set 6
#======================
# Code for retrieving and parsing RSS feeds
# Do not ch... | [
"oleksii.savochkin@globallogic.com"
] | oleksii.savochkin@globallogic.com |
521b4bf3657fd33b18f0dd8c026ee69df493d283 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/batch_create_subnet_tags_request.py | 9c6ab367a7d382993a6806837feaf9a13b280a97 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,003 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class BatchCreateSubnetTagsRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
a65a63285083680dabfe3fa0d2dc9a41bd1a99ed | e6128661adb532ba51e5bbedb2297bd2c317295a | /mysite/post/urls.py | d5899efaa538a1bf559fc2d513d19e2d60aa9c9a | [] | no_license | jding05/camagru | df2aefb562053c549d7a4b251aa2ad335691b10c | 1e9f20d1b01027a849908475dc82e3dd40c5ef6c | refs/heads/master | 2020-07-11T13:08:03.232756 | 2019-09-18T06:51:34 | 2019-09-18T06:51:34 | 204,548,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.urls import path
from . import views
app_name = 'post'
urlpatterns = [
path('<int:post_id>/', views.post, name='post'),
]
| [
"jeffding05@gmail.com"
] | jeffding05@gmail.com |
0542dc916639c2fb025ff5eb44279db0e818d2b5 | 90800bf5a7f29a358e3346149402c55022d14445 | /NmapScan1-test.py | 41f3b2a22979eabb47540ff99f264b9f10230863 | [] | no_license | ZhaoxuepengS/NmapScanner | 7ebc35cd0151213313cae5a721ad86057a463494 | b77ace39f326733a4655e19c4474a24beebb98a5 | refs/heads/master | 2021-07-24T18:18:40.607003 | 2017-11-01T11:45:19 | 2017-11-01T11:45:19 | 109,124,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,078 | py | #-*- coding:utf-8 -*-
__author__ = 'Zhaoxuepeng'
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.application import MIMEApplication
from email.header import Header
from logging.handlers import RotatingFileHandler
import nmap
import time
import xlsxwrit... | [
"495149700@qq.com"
] | 495149700@qq.com |
c1e15eed65f2e8beab04a51a52886557bec04f5a | 3ef414e9bcdabc28f21a5876e0e936fe5a800bd9 | /app.py | 68939326ffb785efb5dca065299730533fd19b40 | [] | no_license | josekey/EXPD-App | 92fc251bd560dcb253e5b4b6d91fbfacfa68d3b5 | 9b0adc07464be21b90ccdac5565a4d3bb6946f76 | refs/heads/main | 2023-08-12T02:07:11.509657 | 2021-10-12T22:56:00 | 2021-10-12T22:56:00 | 416,517,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,705 | py | # libraries to work with data
import fitbit
import gather_keys_oauth2 as Oauth2
import pandas as pd
import numpy as np
import datetime
# web app libraries
from flask import Flask, flash, jsonify, redirect, render_template, request, session
## error catching and security
from werkzeug.exceptions import default_excep... | [
"jose.key@yale.edu"
] | jose.key@yale.edu |
45c90cf1fc2e6869723fb00206100b42cde389a4 | edc6ae341cb650649ca0d96159f781fac905fcbe | /drfpasswordless/migrations/0003_callbacktoken_type.py | 2160ae2ece198a58ce8554be709f970c5bb85b6c | [
"MIT"
] | permissive | aaronn/django-rest-framework-passwordless | a7535670017b05f4d268d582758dd8330577fb0a | 36592eae58f616e3068bd393d06a33e3179b96c8 | refs/heads/master | 2023-08-22T06:43:47.065797 | 2022-04-11T07:39:47 | 2022-04-11T07:39:47 | 86,131,730 | 661 | 159 | MIT | 2023-02-11T15:35:24 | 2017-03-25T04:13:14 | Python | UTF-8 | Python | false | false | 501 | py | # Generated by Django 3.0.2 on 2020-01-22 08:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('drfpasswordless', '0002_auto_20200122_0424'),
]
operations = [
migrations.AddField(
model_name='callbacktoken',
name... | [
"aaronykng@gmail.com"
] | aaronykng@gmail.com |
7cba573d124732e085623171026581c88a2edeaa | f18c35ae7c7388635f55db529b59be7f19d5987a | /watch_files.py | 976e6bd3cbf7e626352dbb04469c327b349295d5 | [] | no_license | seichten/misc_code | 408ed5e605fce21269adcaa35ed301f4de6f5925 | eb638de87f294440e63f9baf742b4307247da807 | refs/heads/master | 2021-04-30T05:33:52.755434 | 2018-02-13T18:31:47 | 2018-02-13T18:31:47 | 121,419,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 948 | py | #!/usr/bin/python
#imports
import os, time
path_to_watch = "."
before = dict ([(f, None) for f in os.listdir (path_to_watch)])
while 1:
time.sleep (10)
after = dict ([(f, None) for f in os.listdir (path_to_watch)])
added = [f for f in after if not f in before]
removed = [f for f in before if not f in after]... | [
"seichten@Steves-MacBook-Pro.local"
] | seichten@Steves-MacBook-Pro.local |
41c37a24bdba0202091ebf7d2291ade3c34a7c33 | 2649bdbeb09a9efcd37162cacb58d8bc4727d8e7 | /userLog/urls.py | 3fa198f6a3e028f81c7aee31ed7df55d6e3e3fee | [] | no_license | vishwajeet1/testapp | 04fbf1091ab6b5875acd1d44ac86f5a29ee296f8 | 71d803bc11be29633cc6662c87365fdfe3fbd4c8 | refs/heads/master | 2021-01-14T19:28:15.129707 | 2020-02-27T09:55:18 | 2020-02-27T09:55:18 | 242,730,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.urls import path
from . import views
urlpatterns = [
path('reg', views.regUser, name='reg'),
path('login', views.logUser, name='login'),
] | [
"vishwajeetrai1996@gmail.com"
] | vishwajeetrai1996@gmail.com |
f7578912268121935ff7b08d02a5f14e4a2b2de7 | 524def768283baa62fad3cb27b49a603f50d45fd | /Scikit-Learn/Hands_On_Book/2_Housing_Prices/visualization.py | 1075ee5502d1f75e64d6afea932fb960c7333bce | [
"MIT"
] | permissive | chirag2796/Machine-Learning | 5a203982aab529d329aa5423923fef51c50715d9 | 2caa38e71778f88ca3f2dcd09e4b866fdb16a058 | refs/heads/master | 2021-06-26T14:48:41.181075 | 2021-02-13T10:53:54 | 2021-02-13T10:53:54 | 206,116,496 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | import pandas as pd
import matplotlib.pyplot as plt
DATASET_FILEPATH = r"D:\Dev\Datasets\Structured\Housing_California\housing.csv"
def load_housing_data(dataset_filepath=DATASET_FILEPATH):
return pd.read_csv(dataset_filepath)
def visualization():
housing = load_housing_data()
print(housing.head())
p... | [
"chirag2796@gmail.com"
] | chirag2796@gmail.com |
1f2aacb82ddc3822eb489608fe1777f32da5ede4 | dee2a051e71809a3b9466eb2a709c7aa36c6704e | /examples/Ch12/ch12_ex.py | b2cd540faa26939c327b455c6482180d3d09cfd6 | [] | no_license | MRGibson-code/adv_finance | e0f15cbd71e6494b38c5c73fe131d3731597518b | 240ce03e53fc6eead469a1ce7a220510a78c437e | refs/heads/master | 2022-01-23T00:10:09.724135 | 2019-07-27T15:36:35 | 2019-07-27T15:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import numpy as np, scipy.stats as ss, pandas as pd, datetime as dt
from random import gauss
from sklearn.ensemble import RandomForestClassifier
from adv_finance.model_selection import kfold
def numBusinessDays(date0, date1):
m, date0_ = 1, date0
while True:
date0_ += dt.timedelta(days=1)
if ... | [
"changwan.jang@gmail.com"
] | changwan.jang@gmail.com |
6aba396a479895a42694694b4f4d0f13154ed4bc | da687718aa8ce62974090af63d25e057262e9dfe | /cap18-Interface-GUI-Tkinter/extras/02_tutopoint/08_listBox.py | 2d5af720f62d7bbd09ee2a26784e198af2b8b98a | [] | no_license | frclasso/revisao_Python_modulo1 | 77928fa4409c97d49cc7deccdf291f44c337d290 | 1e83d0ef9657440db46a8e84b136ac5f9a7c556e | refs/heads/master | 2020-06-25T05:37:28.768343 | 2019-07-27T22:23:58 | 2019-07-27T22:23:58 | 199,217,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | #!/usr/bin/env python3
from tkinter import *
top = Tk()
Lb1 = Listbox(top)
Lb1.insert(1, "Python")
Lb1.insert(2, "Perl")
Lb1.insert(3, "C")
Lb1.insert(4, "Julia")
Lb1.insert(5, "Djago")
Lb1.insert(6, "Go")
Lb1.pack()
top.mainloop() | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
6ac36163854dd13d2c92218c9807c03332434326 | 4fa8cfafce33c496fcd413fc364420be4084649b | /asd.py | 091ed8aba0bb3f0179a680e35ca9bd4597f9f12e | [] | no_license | mayankbaweja/spyChat | 285125cc7523a23e94925f8ad8c3eb58429a62ad | c79f9526e0fdd4b1ab34b851dc851c4aac33318f | refs/heads/master | 2021-01-11T13:38:10.791113 | 2017-06-22T08:33:46 | 2017-06-22T08:33:46 | 95,042,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,992 | py | from spy_details import spy, friends
STATUS_MESSAGES = ['My name is Bond, James Bond', 'Shaken, not stirred.', 'Keeping the British end up, Sir']
friends = []
print "Hello! Let\'s get started"
question = "Do you want to continue as " + spy['salutation'] + " " + spy['name'] + " (Y/N)? "
existing = raw_input(question... | [
"mayankbawejarow@gmail.com"
] | mayankbawejarow@gmail.com |
a46fecac9727adfacec6925c15238c20644f428e | 6b10c1831b9c1c0811721a9ddb79344bb167ecd1 | /src/test.py | e0a74680ae01466ad4f736be50bd5ef99b2f5699 | [] | no_license | P79N6A/SPM | 2f08afcbaa5aa93c4f8d06dcbca58fb7dd2e2c2e | 1b30d142eba33935d0b2ccc557e8aababb89bcc4 | refs/heads/master | 2022-01-06T20:54:49.116074 | 2019-06-24T09:45:56 | 2019-06-24T09:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | import tensorflow as tf
import numpy as np
fpout = "./data/multi_data7_tech/multi_data7_tech.tfrecord"
tfrecord_out = tf.python_io.TFRecordWriter(fpout)
labels = np.random.randint(1, size=3)
job_id = 1
jd_lens = 100
jd = np.random.randint(100, size=500)
exp_id = 1
cv = np.random.randint(100, size=500)
cv_lens = 100
... | [
"30405886+quyuanhang@users.noreply.github.com"
] | 30405886+quyuanhang@users.noreply.github.com |
65fab0f23d52d3f46ac42fad5d82624ddc8e7e38 | ff705c5705356c187c301e948b99967fc2435187 | /train_test_split.py | a4d02467d9785356c508c973fc58002478c4cf26 | [
"MIT"
] | permissive | lionheartX/tensorflow-on-ios-tutorial | c2a2ea0b8fe8736788b7e74dc74c69708f5aa0ad | 11a0d75d1cdfd5a4ddf38c7021c6ef4b72690409 | refs/heads/master | 2021-01-19T13:46:09.567686 | 2019-02-15T03:28:22 | 2019-02-15T03:28:22 | 88,108,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | import numpy as np
import pandas as pd
df = pd.read_csv("voice.csv", header=0)
# convert "male" to 1, "female" to 0
labels = (df["label"] == "male").values * 1
labels = labels.reshape(-1, 1)
del df["label"]
data = df.values
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = trai... | [
"zhengxiong@Zhengs-MBP.phub.net.cable.rogers.com"
] | zhengxiong@Zhengs-MBP.phub.net.cable.rogers.com |
35d3746ad9ab339ff3343895ff7b2c65031f1349 | 87753fe14bd352504fc239bfdff1a65d1c7969a8 | /src/ecocloud_wps_demo/processes/anuclim_daily_extract_netcdf4.py | 5f98afe640e7cd645278479414001649565048ae | [] | no_license | ausecocloud/ecocloud_wps_demo | 3909372d3abd45ff3ecd62806b72800047f13178 | bb412704ddf09d2b5c207b191d9c2e62c7b07937 | refs/heads/master | 2020-04-04T17:59:21.955498 | 2019-01-21T23:35:29 | 2019-01-21T23:35:29 | 156,145,270 | 0 | 1 | null | 2019-01-14T23:12:53 | 2018-11-05T01:46:13 | Python | UTF-8 | Python | false | false | 8,743 | py | import csv
import datetime
from itertools import takewhile, repeat
import logging
import operator
import os
from netCDF4 import Dataset
import numpy as np
from pywps import Process
from pywps import ComplexInput, ComplexOutput, LiteralInput, Format
from pywps.validator.mode import MODE
#from netCDF4 import Dataset
... | [
"g.weis@griffith.edu.au"
] | g.weis@griffith.edu.au |
ee7358a3297e1b86ffe16f03447bbb5fa211b7df | b99b32fb0b4597bee94809ebd3b2ddae43064bee | /landmark_detection/menpofit/math/correlationfilter.py | 2b80d9e1b419f80ff46311e072543bc34e8aa2a5 | [] | no_license | HongwenZhang/ECT-FaceAlignment | c0129dc2aa20bc2bdba03a9ed1cabebcd5e5d848 | e94b446db73fca5ba751d6d9a81d42633208f228 | refs/heads/master | 2023-01-29T14:25:19.502350 | 2020-12-13T09:18:55 | 2020-12-13T09:18:55 | 111,511,579 | 31 | 19 | null | null | null | null | UTF-8 | Python | false | false | 14,354 | py | import numpy as np
from numpy.fft import fft2, ifft2, ifftshift
from scipy.sparse import spdiags, eye as speye
from scipy.sparse.linalg import spsolve
from menpofit.math.fft_utils import pad, crop
def mosse(X, y, l=0.01, boundary='constant', crop_filter=True):
r"""
Minimum Output Sum of Squared Errors (MOSSE... | [
"hongwen.zhang@cripac.ia.ac.cn"
] | hongwen.zhang@cripac.ia.ac.cn |
19ce787c0187e571741c9be4fbdd0617ea82340c | 55ab2e75bcdd44766e14efb339ddfd0b9fdeb474 | /tensornetwork/block_sparse/linalg_test.py | dea6bc0f81266bada4fe15dbd3d53fb235557aab | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | marine008/TensorNetwork | 732c5ca7dec8dac28a40884d06ef392110ac6945 | 46be7df93bcaf7fc95cd09c9a3210db9e63098f1 | refs/heads/master | 2022-12-05T06:53:40.264321 | 2020-09-04T06:32:52 | 2020-09-04T06:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,782 | py | import numpy as np
import pytest
from tensornetwork.block_sparse.charge import (U1Charge, fuse_charges,
charge_equal, BaseCharge)
from tensornetwork.block_sparse.index import Index
from tensornetwork.block_sparse.blocksparsetensor import (ChargeArray,
... | [
"noreply@github.com"
] | marine008.noreply@github.com |
cffe50dd97a932ebc3250fdbf9a6349b509f3431 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/powerbidedicated/azure-mgmt-powerbidedicated/generated_samples/create_auto_scale_vcore.py | 67ad65f12c53cbe937f4d46b56b858ef521762f8 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,885 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.