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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d486f5c508c73e9480398082e060f832dbe0792 | 47f24ff51ad667ee3555eab0ea586e238e68b3d4 | /364-Nested-List-Weight-Sum-II/solution.py | c50d8e0397e272eaaf3d5cb10465d3bbf0ec0fdc | [] | no_license | z502185331/leetcode-python | a47d652793079bd579431dcf99a9491978fd2c85 | 580366c7de5f27a931930aeec5e08aa043aa1d54 | refs/heads/master | 2021-01-19T00:58:40.086458 | 2016-08-03T13:37:37 | 2016-08-03T13:37:37 | 60,740,131 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | # """
# This is the interface that allows for creating nested lists.
# You should not implement it, or speculate about its implementation
# """
#class NestedInteger(object):
# def isInteger(self):
# """
# @return True if this NestedInteger holds a single integer, rather than a nested list.
# :rt... | [
"lieyongz@andrew.cmu.edu"
] | lieyongz@andrew.cmu.edu |
624a54e968bd90011782ba0bd30f59a29450e57a | dc96bc269be3a5fbe319b5d418e9aae9ec3dfe41 | /allow_access_ip/model/__init__.py | 27af16567abd1da595399488a45df169ae2af40a | [] | no_license | niulinlnc/allow-access-ip | e64d77b0d6d23a6e752c54fe5ec796d7ecbc3be0 | d4f14a9dd66e52551fa5e076fcc1044746b08e5d | refs/heads/8.0 | 2021-01-15T10:35:04.194714 | 2017-07-19T13:32:49 | 2017-07-19T13:32:49 | 99,587,902 | 0 | 1 | null | 2017-08-07T14:39:43 | 2017-08-07T14:39:43 | null | UTF-8 | Python | false | false | 23 | py | from . import allow_ip
| [
"mrthanh.ledinh@outlook.com"
] | mrthanh.ledinh@outlook.com |
1dde420467df8fc962f97e51263c8f2b42a67394 | 57d3b84fd2a85953798b5696a0ddd71a6d68eba3 | /app.py | 7bdcb257046fb354ca0cc026932e104681e68024 | [] | no_license | herfalerf/blogly | 82a6e1652e0e4ad3be12e3a6846d416645a7b4fc | be6aecc1d47c870264345e8a0c983a08daa8ec2a | refs/heads/master | 2023-03-19T22:17:35.516253 | 2021-03-11T06:06:06 | 2021-03-11T06:06:06 | 345,267,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,921 | py | """Blogly application."""
from flask import Flask, request, render_template, redirect, flash, session
from flask_debugtoolbar import DebugToolbarExtension
from models import db, connect_db, User, Post, Tag
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql:///blogly'
app.config['SQLALCHEMY_TRA... | [
"jpendy@gmail.com"
] | jpendy@gmail.com |
52e64d36ee304ebeda37c8cc53ff12d260ad5060 | ac817dc2bd6e85432b0494b05fdfed29dd4724cc | /dynamic_programming/weighted_interval_scheduling.py | 46f3aeb769d74142047b602e4e0d4a31574bcb1c | [] | no_license | Boukos/AlgorithmPractice | f59de3393476b7c169b70355ec4ac5477d8ba7a8 | c394201a067b24267351e8395572fea19e5f251a | refs/heads/master | 2020-05-21T18:40:13.388318 | 2015-08-31T01:35:59 | 2015-08-31T01:35:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py |
def weighted_interval_scheduling(input):
input.sort(cmp=lambda x,y:cmp(x[1],y[1]))
#compute the largest index i<j such that job i is compatible with j for each job
compatible = [0] * (len(input)+1)
for idx, job in enumerate(input):
j = idx-1
while j >= 0:
if input[idx][0] >= input[j][1]:
compatible[idx+... | [
"junjianglin.cs@gmail.com"
] | junjianglin.cs@gmail.com |
28fdc6ab07daa339e7c05ac8e9fdcee819a5441a | 05109979de89fbd5f69d6cc85ac794497dc441d1 | /apps/destination/adminx.py | c00a4a4636d2b3fc21bcc9fbe9a56db2b356ce7d | [] | no_license | bbright3493/douxing | c70bdb11d3f0e253d8545ab4bdf89d330b0e0d6f | 0607aee7c59aa4845d6bc86940d7885cd83466a6 | refs/heads/master | 2021-05-06T10:11:22.815128 | 2017-12-15T09:40:34 | 2017-12-15T09:40:34 | 114,102,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | # -*- coding: utf-8 -*-
__author__ = 'bb'
__date__ = '2017/12/15 23:34'
import xadmin
from .models import *
from xadmin import views
class GlobalSettings(object):
site_title="都行后台管理系统"
site_footer="都行"
menu_style="accordion"
xadmin.site.register(views.CommAdminView, GlobalSettings)
class DestinationA... | [
"44704708@qq.com"
] | 44704708@qq.com |
814c7958e76b2255120db264c453e820e65b470e | f96b2d57593fa3f610400df42292113c91c58710 | /streaming/urls.py | 815ea98c65a2b33f13f26dd0550750d4b29d4eaa | [] | no_license | Mohammad-SS/esraT | fb09a12c01208a0ec32d779c2bdd4318aece99b5 | 5e1ed6d9bb4b4cefcd26369ee89c5099ea61526f | refs/heads/master | 2023-01-01T09:34:08.432387 | 2020-10-24T09:05:26 | 2020-10-24T09:05:26 | 306,844,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | from django.contrib import admin
from django.urls import path, include
from streaming import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
# Archive Urls :
path('archive/showAll/', views.showArchive),
path('archiv... | [
"enhassanpour@yahoo.com"
] | enhassanpour@yahoo.com |
f63d3b8be4dd916aa5e551c6ee7db791268616b1 | 5edaf8a7e89a289bb872b1e89ef04d346e4b72b6 | /rp5ro.py | 0eda30859fd024b302db1031615eda90f7c8c4e8 | [] | no_license | Dggz/pybook | 241373f75f478b13fb70a772d82cbe61ea62512f | 349b85d6b31b464062da3595982a5a1fa182bb87 | refs/heads/master | 2023-08-10T02:21:59.298875 | 2023-08-01T11:42:47 | 2023-08-01T11:42:47 | 118,766,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py |
mancare = int(input("Cantitate de mancare: "))
prot_carne = .09
grasime_carne = .03
orez_p = .07
orez_g = .008
grame_prot = mancare * prot_carne
grame_grasime = mancare * grasime_carne
| [
"cristianbaciu95@gmail.com"
] | cristianbaciu95@gmail.com |
238eaa1db49e060c400933daf298325805db0491 | 3a3d0879181f2057e2949a99dda0a4752fe9597c | /FirstPro/ModulesAndApplicaton/pyToExeModule.py | 128b71c86cc50f7771771a7852972dc269c3b45f | [] | no_license | Tanmai2002/Pycharm-Projects | 571638a2e2a83cddc033229666b04892b6275123 | 4147e4a1af3ba0391966a634c674506a3aad53b0 | refs/heads/main | 2023-08-21T09:31:40.629783 | 2021-10-26T09:39:17 | 2021-10-26T09:39:17 | 413,760,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | """
make folder :
install pyinstaller(if not installed)
make :main.py in folder # handing file
cmdprmpt/powershell: pyinstaller nameoffile
""" | [
"tanmaikamat@gmail.com"
] | tanmaikamat@gmail.com |
d8d797b55fdb851fbc29dee515d9ae298331e2db | 004e9b7bf355bac36dadb473fe9d86c4006b6e72 | /auto_sw_backup/auto_backup_asa.py | d8ffa4f692dfede293de9dba4089d7ca3ccdb762 | [] | no_license | jeffding1993/scripts | dd257a44f2b2115515906efaa064ddb2eb306660 | 01e8bffad7aa423f90aa14c3d3437ee220da3531 | refs/heads/master | 2020-06-19T00:30:11.970391 | 2019-07-23T06:37:21 | 2019-07-23T06:37:21 | 196,504,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | # encoding:utf-8
from settings import *
import telnetlib
import os
import re
def backup_asa(asa_ip):
# 连接sw
tn = telnetlib.Telnet(asa_ip, port=23, timeout=50)
tn.read_until(b'Password:')
tn.write(ASA_PASSWD + b'\n')
time.sleep(1)
tn.write(b'enable\n')
time.sleep(1)
tn.write(ASA_PASS... | [
"jeffding1993@outlook.com"
] | jeffding1993@outlook.com |
911eb45accd5154d79ee8d96e177efbb1fff2c05 | e01bb61979ee9e7f44e35b9e8daf939c54356293 | /fixture/navigate.py | 283ca01ecbb0752202b0b1013b96257113393d20 | [
"Apache-2.0"
] | permissive | pavelwearevolt/Cross_Edit_TestsAutomatization | df4d9f835db6e7596da9aee8e92c39f0289337b5 | 953691244d86c5832fe2a2705841711939a353a5 | refs/heads/master | 2021-09-10T01:19:23.285416 | 2018-03-20T13:59:24 | 2018-03-20T13:59:24 | 110,362,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | __author__ = 'pavelkosicin'
class NavigateHelper:
def __init__(self, app):
self.app = app
def open_home_page(self):
wd = self.app.wd
wd.get("https://cross-edit-staging-frontend.herokuapp.com/")
def menu_global_search(self):
wd = self.app.wd
wd.find_element_by_nam... | [
"pavel.kosicin@wearevolt.com"
] | pavel.kosicin@wearevolt.com |
3b50bff717b52802ba36bdb73d82d2f35b75c791 | 5bfa0ebffb6416fd1d902a77110688ee26041f93 | /MatploblitDemo/main_package/pygal_package/die.py | 274d3ed9cdef37265b8d1ee6ec15353270a7592e | [] | no_license | benbenwang/PlaneGames | e22b280b1ba1764b5e6300365b37abe4c5c755ad | e07f5c4f1977cc70df7add10f732ef0063ea464b | refs/heads/master | 2020-03-27T17:07:05.916184 | 2018-09-28T07:41:13 | 2018-09-28T07:41:13 | 146,829,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from random import randint
class Die():
"""表示一个筛子的类"""
def __init__(self, num_sides=6):
"""筛子默认6个面"""
self.num_sizes = num_sides
def roll(self):
"""返回一个位于1和筛子面数之间的随机数值"""
return randint(1, self.num_sizes)
| [
"2290864899@qq.com"
] | 2290864899@qq.com |
b29d0cb76925e4a1052d92c63b05dc327b4a6e57 | acb81a21ff46e29db3234009db3908e7de2d907b | /Experiments/JRNN_Experiments/src/ObsUtility.py | 1e48c3b6b1b9df763733a93ab30358f1b56210bd | [
"MIT"
] | permissive | jreeder/JRNN | 42fc658dfc64cbbd92c493d665a2702c22e8766b | 15f7f85424e5386a89d482af5c6b8e1e1ff62ffc | refs/heads/master | 2021-01-16T18:40:31.851019 | 2014-08-20T20:44:02 | 2014-08-20T20:44:02 | 702,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,797 | py | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
debug = False
import __main__
if hasattr(__main__, 'debug'):
debug = __main__.debug
if debug:
import PyJRNN_d as PyJRNN # for debugging
from PyJRNN_d.utility import DSDatatype, CSMTLDataset
from PyJRNN_d.types import strings
from PyJRNN_d.trainer... | [
"jreeder@gmail.com"
] | jreeder@gmail.com |
302dc8251d11ce221c0e3dafc58c003f18e54076 | 88a856c080080dfd15c6c50e81a82ae4f230b65a | /tests/selenium.py | 3b31f912fb83b134f4b47383aa4226e9edd67bb3 | [] | no_license | ephremworkeye/nov_ecommerce | 682c0776bf86f8656ee968ee13cb95deb73f4a7a | f847bfd1f0fff29f321113d200f7c653ae4c7214 | refs/heads/master | 2023-09-04T01:32:32.191459 | 2021-10-28T08:17:02 | 2021-10-28T08:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
@pytest.fixture(scope="module")
def chrome_browser_instance(request):
"""
provide a selenium webdriver instance
"""
options = Options()
options.headless = False
browser = webdriver.Chrome(options... | [
"ephremworkeye@gmail.com"
] | ephremworkeye@gmail.com |
00eb78ccd64ce588c63ff5f17453d93bc10d19c8 | 8f1d506396150ae4c41b65364c6dae50b74e7002 | /config/wsgi_development.py | 354136a66c8ea1aa912d83ab4aa3da0b9606d41f | [
"MIT"
] | permissive | xiabai84/ml_with_django | 7497d50b08b952057243b1bcb0d31cb036e915bb | b6f2d475257f0da3599f637060efbb66064c9d55 | refs/heads/master | 2022-12-10T09:24:28.545072 | 2020-12-10T18:09:20 | 2020-12-10T18:09:20 | 173,927,503 | 14 | 1 | MIT | 2022-12-08T02:30:05 | 2019-03-05T10:42:07 | JavaScript | UTF-8 | Python | false | false | 2,648 | py | # -*- coding: utf-8 -*-
__author__ = 'Bai XIA'
"""
WSGI config for ml_with_django project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands... | [
"xiabai84@gmail.com"
] | xiabai84@gmail.com |
b1f0955733ec19de6f0b5968678c15ddd6da8e86 | 9818c3ed8bf8ad8485590781073676969492a542 | /behave/configuration.py | 9d63090464e6977ac92c42396e627e176e5f2614 | [
"BSD-2-Clause"
] | permissive | jgr21/behave | 91b1a8b383eb9434baa86a50761065475526bab3 | 988b9604b1de5b91cc7218d12cb7715ec7ee63f2 | refs/heads/master | 2020-12-25T12:40:12.204125 | 2013-04-14T23:35:07 | 2013-04-14T23:35:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,251 | py | # -*- coding: utf-8 -*-
import os
import re
import sys
import argparse
import ConfigParser
from behave.reporter.junit import JUnitReporter
from behave.reporter.summary import SummaryReporter
from behave.tag_expression import TagExpression
class ConfigError(Exception):
pass
options = [
(('-c', '--no-color'... | [
"jens_engel@web.de"
] | jens_engel@web.de |
c3f970b420f12cad9f338795760b10c3162b7013 | 3751f9eb69498ee73458e35c0ef8544357817647 | /analysis/save_gradfield2.py | af098cb1cfc9c8181b40fb0e822833bff564782b | [] | no_license | zomux/lanmt-ebm | b2f6962b0170a3c14024fa5067d868036d230835 | ebcdbfc441bbd7d60c508eeedd5522bb125ecaae | refs/heads/master | 2022-11-05T09:46:35.659009 | 2020-06-19T05:02:51 | 2020-06-19T05:02:51 | 242,263,625 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,153 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This model unifies the training of decoder, latent encoder, latent predictor
"""
from __future__ import division
from __future__ import print_function
import os, sys
import time
import importlib
import torch
from torch import optim
import torch.nn.functional as F
sys... | [
"loneplay@gmail.com"
] | loneplay@gmail.com |
bddcee517a6e266df86d2f4665dfdd977d3e79d2 | 778cb800701c06203a2f4bb4dd3150cb00522468 | /I0320041_Exercise2.3.py | 69e0103b5e85c3f6f83240143a0f14f93755f04b | [] | no_license | AttarRahman/Fariduddin-Attar-Rahman_I0320041_Andhika-Pratama-Putra_Tugas2 | e3680d7c7b39d7057756d3c82dc3101579fcf554 | 70daecc5cec4924c41a95cd533eaed142edfcd57 | refs/heads/main | 2023-03-27T16:10:51.798142 | 2021-03-25T15:31:27 | 2021-03-25T15:31:27 | 346,291,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import math
#menampilkan informasi program
print("Luas dan keliling lingkaran")
#input nilai jari-jari
r = float(input("Masukkan nilai jari-jari:"))
#menghitung luas lingkaran
luas_lingkaran = 3.14 * (r ** 2)
#menghitung keliling lingkaran
keliling_lingkaran = 2 * 3.14 * r
#menampilkan hasil perhitungan ke layar
p... | [
"attarrahman461@gmail.com"
] | attarrahman461@gmail.com |
ba9a064ffa57e7ea2f69b1fe0b9ee6cad4adb093 | 46ba8be3d84b63d228cf16da824796eb43f52819 | /dynamics/predict_with_linear_regression.py | 0d7dd661ea02afdb34873e0aabf87094f54fa2aa | [] | no_license | larry-gonzalez/rdf_dynamics | 9b1959bafe73597dd3bde774bbb12c66662b56a4 | a85046598aab81f986f1cde2b5ca3d6be0f70983 | refs/heads/master | 2022-11-27T19:21:14.137145 | 2018-06-25T08:24:25 | 2018-06-25T08:24:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | #
# Training set: sequence of consecutive dates
#
from time import time
from mymodule.error import *
from mymodule.vector import *
from mymodule.linealmodel import *
from mymodule.load import load_dataset
from mymodule.get_paths import tsv_path
from mymodule.utils import date2days
from mymodule.utils import days2da... | [
"larryjgonzalez@gmail.com"
] | larryjgonzalez@gmail.com |
5ddb0c8e3a70634aa0633fe1b648059da4ac5258 | 423bda060b54d259da8d01995a58625f9c00a9b3 | /inkbot_run.py | 9c1a409b8bc47f437cb7463d5cfba2ea0f334f15 | [] | no_license | jkerhin/inkbot | 99d32d00fb04de966177b5249476f1770d4116b0 | 8b513156dd2d920cf041057616908cf5fc439a82 | refs/heads/master | 2020-07-03T07:19:21.135994 | 2017-08-25T18:40:41 | 2017-08-25T18:40:41 | 201,835,494 | 0 | 0 | null | 2019-08-12T01:23:08 | 2019-08-12T01:23:07 | null | UTF-8 | Python | false | false | 794 | py | #!/usr/bin/python3
from inkbot import InkBot
user_agent = ("<User Agent Here>")
at_base = ('<AirTable Base Here>')
at_key = ('<AirTable Key Here>')
at_table = ('<AirTable Table ID here>')
bot_user = ("<User Name Here>")
bot_passwd = ("<User Passwd Here>")
bot_id = ("<Client ID Here>")
bot_secret = ("<Client Secret H... | [
"noreply@github.com"
] | noreply@github.com |
d74ab327dd270ba9f7afb310fa25d1afc9732e45 | 24262895d59ada83f906b3e2a62a4913bd3014e8 | /backend/application.py | 3df07412b10c77c23e59013a64936d9889f282d1 | [] | no_license | danielbode/SixtMixed | ee1c7931a2861336276ac2c856761374005a1b19 | 5103c8cdcbcbb1949ee94257cf177d024b371c76 | refs/heads/master | 2020-09-17T07:37:04.512683 | 2019-11-24T09:27:51 | 2019-11-24T09:27:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,614 | py | from flask import Flask, request, jsonify
#from flask_cors import CORS
app = Flask(__name__)
#CORS(app)
@app.route('/')
def hello_world():
return 'Hello, World!'
@app.route('/person/<idx>')
def send_person(idx):
people = [person_1(), person_2(), person_3()]
return jsonify(people[int(idx)])
def per... | [
"fabian.h001@gmail.com"
] | fabian.h001@gmail.com |
6761f102e657a95796b2f3725fc19107a88e9bb8 | 64028d04541079be6066f5adf4f5195ccf6d9cd5 | /com/obs/models/owner.py | 5580b196bc34dd81f4f70986d464dee37fc81eff | [] | no_license | rho-data/otc-sdk-python | db88b25edd50fa6027f55a652ea912e24abcdb19 | 76b241da2fb67fc38859334f3911a93c33abd240 | refs/heads/master | 2022-04-21T14:50:55.661194 | 2020-04-22T13:54:00 | 2020-04-22T13:54:00 | 252,749,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
from com.obs.models.base_model import BaseModel, BASESTRING
class Owner(BaseModel):
allowedAttr = {'owner_id': BASESTRING, 'owner_name': BASESTRING}
def __init__(self, owner_id=None, owner_name=None):
self.owner_id = owner_id
self.owner_name = owner_na... | [
"milovanovic@rho-data.com"
] | milovanovic@rho-data.com |
13fe8aeb2f4799fddb0555ba1797e02ac3ba3967 | 43547c1bf42fd44f0bd9ad9cd98265920ac193e2 | /Non-decreasing_Array.py | dbae7144a22dc031717b0f848b2b7d1f14f029d1 | [
"MIT"
] | permissive | linan-zhou/leetcode_solutions | 3932aaecb6454745469608a40975e325ae4816db | dfa5518740f586d59bc8471694efeda017e5a174 | refs/heads/master | 2021-01-06T20:44:26.129853 | 2018-01-19T07:17:03 | 2018-01-19T07:17:03 | 99,553,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | class Solution(object):
def checkPossibility(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
f = 0
n = len(nums)
for i in range(1, n):
if nums[i] < nums[i-1]:
f += 1
if f > 1:
return Fals... | [
"zhoulinan14@gmail.com"
] | zhoulinan14@gmail.com |
ac77fbc3989b6f85e192007025647230f9038e70 | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/L77/77-bs_wat_20Abox/set_1ns_equi.py | 55249588767ba5d4a982ae8d8e78310b01454d53 | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/L77/wat_20Abox/ti_one-step/77_bs/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi.in'
temp_pbs = filesdir + 'temp_1ns_equi.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
5f4e5af81bbc911e9ebdba871a0cb2867f9c8915 | 07c75f8717683b9c84864c446a460681150fb6a9 | /1.Django_cursor/days05_总结/mysite/mytemp/urls.py | a5dd5fde3d50dc66c0aebff2c502336f406cf684 | [] | no_license | laomu/py_1709 | 987d9307d9025001bd4386381899eb3778f9ccd6 | 80630e6ac3ed348a2a6445e90754bb6198cfe65a | refs/heads/master | 2021-05-11T09:56:45.382526 | 2018-01-19T07:08:00 | 2018-01-19T07:08:00 | 118,088,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^.*$', views.index, name="index"),
] | [
"1007821300@qq.com"
] | 1007821300@qq.com |
18cf792acd8f3175b0a4cc71760eefc9fb1476bb | c49cd0900c6eb5e9b0a5c6ef338828e9f86c60f3 | /src/01_preprocess/issue_comment_to_txt.py | bf9c37a7a595932dd23d4570a18c7c4ea4b15eec | [] | no_license | whliang2/Github_Data_Collector | 446c73e8f64198360d2314550c78fd7598cd3ebe | e7ffb8760456c4eabe0024fd29d4577297ba6d15 | refs/heads/master | 2021-01-14T06:08:39.101585 | 2020-05-02T21:37:23 | 2020-05-02T21:37:23 | 242,622,810 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | import sys
import os
from tqdm import tqdm
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')))
from utils.select_cols import SelectCols
from utils.get_issue_content_by_repo import GetIssueContent
# Select github repos full name from db
repos_name = SelectCols().col_name('full_name')
re... | [
"whliang2@illinois.edu"
] | whliang2@illinois.edu |
2ffba65d843bd3523fff8ec49ac7c24008a43ba2 | 5fbc86cef98c6e2984f68fcb48792199e8cb2b6b | /recognition_files/create_gestures.py | c17e4b9d11f0bbee99a8a4bb6bbe522b1b75e953 | [] | no_license | VayerMaking/mvn_ai_gesture | ada0748839e9c6f8ceb8ec500675485f75d624c7 | dea4569bd277741968570fdbd8a40b10a04244f2 | refs/heads/master | 2022-09-13T03:21:57.724387 | 2020-06-05T20:00:00 | 2020-06-05T20:00:00 | 264,645,539 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,816 | py | import cv2
import numpy as np
import pickle, os, sqlite3, random
image_x, image_y = 50, 50
def get_hand_hist():
with open("hist", "rb") as f:
hist = pickle.load(f)
return hist
def init_create_folder_database():
# create the folder and database if not exist
if not os.path.exists("gestures"):
os.... | [
"noreply@github.com"
] | noreply@github.com |
c3f51967ffa1e393530d7479923235082fe2d733 | 89b74e49ae1fd52aa3445c474fd5293c4e6fd1f5 | /personal_potfolio_project/personal_potfolio/asgi.py | f5200eb9f9dec999e14c6667624ef98bd1d1dbeb | [] | no_license | romainquere29/django | f3b749fdb488d3918d9ff24163fc0582d24dbd78 | fa5243fa9eb45efdbc6f901317c5a60a65583d91 | refs/heads/main | 2023-03-02T13:21:32.930178 | 2021-02-13T09:50:45 | 2021-02-13T09:50:45 | 338,542,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
ASGI config for personal_potfolio project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.s... | [
"rquere@tribvn-hc.com"
] | rquere@tribvn-hc.com |
3018ef13c8291bbcffc5bbc3a2629ff1ba5f13a3 | c540841f7c93bf5512c2fd8511dc95629325572c | /Random.py | 19b487e62ba66bd676e7d60d8f601771710a0f8b | [] | no_license | MrGuyMoore/Python | f4727f19f5c4604d20e80d0f0a74d32d7211232f | d515eed76ed1a6cbab1971b1c0258e5c97992691 | refs/heads/master | 2020-03-31T19:12:56.713432 | 2018-10-10T20:56:14 | 2018-10-10T20:56:14 | 152,488,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import time, random, atexit
randomNum = random.randint(0,9)
guessesTaken = 0
time.sleep(.1)
print('Welcome to the Random Number Game.')
time.sleep(.8)
print('Please enter your name:')
time.sleep(.7)
myName = input('')
print(myName+" let us get started on the game.")
while guessesTaken < 3:... | [
"guy.moore.jr@gmail.com"
] | guy.moore.jr@gmail.com |
f39665272e5bb38b748a537306f832b8aa64636a | bbf4ef736ce7a62d089de3b102c213c141288014 | /battleship/models.py | 19b3f091a3c240ed2d2c827989df44f45a78cda4 | [
"MIT"
] | permissive | seanpar203/battleship-server | 489a8440e065f157174a661806b705ff6b02fb1b | 87ffbadbf2f0ee1505bae2fb84e3fa6852fce975 | refs/heads/master | 2021-01-12T13:50:00.450879 | 2016-09-26T01:28:26 | 2016-09-26T01:28:26 | 68,833,641 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,498 | py | from sqlalchemy.dialects.postgresql import ARRAY
from battleship import db
class Account(db.Model):
""" Account class that stores unique emails. """
__tablename__ = 'account'
# Attributes
id = db.Column(db.Integer, primary_key=True)
user_name = db.Column(db.String(), unique=True)
# Relationships
games = db... | [
"seanpatrick2013@gmail.com"
] | seanpatrick2013@gmail.com |
28c70b3e1130f8b502b3c9c2c40227b8a0097822 | 155bf47fa1b33a31576f6b8b90aaa74cd41e352a | /04PythonScraping/chap07提升爬虫的速度/demo08-mutilprocess3.py | 16dc3b5e6f88d6f3427e90b4e4c02db36751cbe7 | [] | no_license | ares5221/Python-Crawler-Projects | af4ec40a26f4f69ef285a0edf0428192a594d4cd | 45b496000631f0f3b887501d9d67f3e24f5e6186 | refs/heads/master | 2021-07-03T07:11:25.474055 | 2020-09-08T08:17:17 | 2020-09-08T08:17:17 | 145,980,513 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | from multiprocessing import Pool, Manager
import time
import requests
link_list = []
with open('alexa.txt', 'r') as file:
file_list = file.readlines()
for eachone in file_list:
link = eachone.split('\t')[1]
link = link.replace('\n','')
link_list.append(link)
start = time.time()
def cra... | [
"674361437@qq.com"
] | 674361437@qq.com |
7d8a74f9156b5e87c02c57cf053aac2391235f8e | cd52b65d301eadcdccb4bfe6a51457c715d54b1f | /main/views.py | 7517e0b835aac3d5797f52d34080c44b642e7aa5 | [] | no_license | tnguruve/kufungis | 69ad125fd71bccc3f4657d74fcc5308c6c5b02a0 | 89cd0946dbcec1272d3b89aa258106bd223a091a | refs/heads/main | 2023-02-11T07:43:58.736692 | 2021-01-06T18:11:31 | 2021-01-06T18:11:31 | 327,384,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.http import HttpResponseRedirect
from .models import ToDoList, Item
from .forms import CreateNewList
def index(response, id):
ls = ToDoList.objects.get(id=id)
if response.method == "POST":
print(response.P... | [
"tnguruve@brynmawr.edu"
] | tnguruve@brynmawr.edu |
00ac36c91a5bb8caaa716d5d1ccc4fc69f62e57b | 567cdf0dd53d86f012f30dc957b3455660a53961 | /__manifest__.py | 246f439ed944f5f73f21493b2ac48607d07cded9 | [] | no_license | connect-to-ak/theme_bootstrap_4 | c95be43bc2d7095033b79aa9d61472ce028535bf | 3a64c04c267e2a5405e89be00e8e6ee8781d808b | refs/heads/master | 2020-03-21T08:33:23.235296 | 2018-01-27T17:50:48 | 2018-01-27T17:50:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | {
# Theme information
'name': "Theme Bootstrap 4",
'description': """
Тема, которая заменяет Bootstrap 3 на Bootstrap 4
""",
'category': 'Theme',
'version': '0.0.1',
'depends': ['website'],
# templates
'data': [
'views/assets.xml',
'views/header.xml',
... | [
"celern84@gmail.com"
] | celern84@gmail.com |
351545a3bf2ec2b90f23c742e0c3d46d67f95091 | 1b64a1a72adda0bab069a0396993e4fe7f8e5732 | /zadanie5/launch/rviz.launch.py | 997c1c7ee8f5b245c8f803c2bea0074f92e09187 | [] | no_license | pw-eiti-anro-21l/tumialis_firlej | b38e4cbd9006830b55c7a83a09577b5a02ed96f4 | 6fa983581d779d1188eb9236240fe71c94342506 | refs/heads/main | 2023-05-02T16:09:04.509879 | 2021-05-24T08:27:03 | 2021-05-24T08:27:03 | 345,423,503 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch.substitutions import LaunchConfiguration, Command
from launch_ros.actions import Node
def generate_launch_description():
use_sim_time = La... | [
"madvxpl@gmail.com"
] | madvxpl@gmail.com |
6f8cd243866fffe00749263f072c8cf6efdb7d38 | d62f1c0bd9c35cd8ae681d7465e749d63bb59d4e | /Week1/Informatics/Cycles/While/E.py | eeb7f7f63613891fe718d408bf44c2de1f7951e6 | [] | no_license | Yeldan/BFDjango | 0134a57ec523b08e4ca139ec11c384eeefec6caa | a390e08b8711613040a972e30a25b4035ff58e37 | refs/heads/master | 2020-03-27T15:49:53.859506 | 2018-11-25T22:33:38 | 2018-11-25T22:33:38 | 146,742,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | n = int(input())
pow2 = 1
k = 0
while pow2 < n:
pow2 *= 2
k += 1
print(k) | [
"noreply@github.com"
] | noreply@github.com |
3a12b8109bb7c5e9f07c07160d7fc047fd67ee91 | 24fabc9090dfc5378a1af11dcd1887b8fa734a6a | /vehicle/client_demo.py | 5f198396bfc1cae9135c54b03682423fafc4e53a | [
"MIT"
] | permissive | dmachlanski/Autonomous-Vehicle-using-A3C | cd654143f1d4fb2048f39bf6f258f95e3906d729 | bff2415f4599215d6448daea99e98b6496580791 | refs/heads/master | 2020-04-24T20:40:15.529097 | 2019-09-07T12:38:07 | 2019-09-07T12:38:07 | 172,251,355 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | import socket
import keyboard
from client import Client
import matplotlib.pyplot as plt
import time
import cv2
keep_running = True
client = Client('192.168.137.130', 7777)
img_count = 1
def forward():
global client
client.set_control(1,0,0)
def left():
global client
client.set_control(0,1,0)
def right... | [
"damian.machlanski@gmail.com"
] | damian.machlanski@gmail.com |
0814cd6f81ee06c0ee5732b9574cd914859e16c9 | 4610d0284416361643095ca9c3f404ad82ca63c2 | /src/sploitego/metasploit/utils.py | 1f796affd48ec6853417a13b33a928b7f53ed032 | [] | no_license | mshelton/sploitego | 165a32874d955621c857552fb9692ecf79e77b7e | 3944451a110f851a626459767d114569d80a158c | refs/heads/master | 2020-12-25T03:11:58.071280 | 2012-08-16T22:33:10 | 2012-08-16T22:33:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | #!/usr/bin/env python
from optparse import OptionParser
__author__ = 'Nadeem Douba'
__copyright__ = 'Copyright 2012, Sploitego Project'
__credits__ = ['Nadeem Douba']
__license__ = 'GPL'
__version__ = '0.1'
__maintainer__ = 'Nadeem Douba'
__email__ = 'ndouba@gmail.com'
__status__ = 'Development'
__all__ = [
'pa... | [
"ndouba@gmail.com"
] | ndouba@gmail.com |
aada138df4c56627acf62eaa60266b52a077bae2 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/321/107494/submittedfiles/jogoDaVelha_BIB.py | ae59cd865960f39bb8cd8d243bc082c289f59efd | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,715 | py | # -*- coding: utf-8 -*-
# COLOQUE SUA BIBLIOTECA A PARTIR DAQUI
import random
tabuleiro = [
[' ',' ',' '],
[' ',' ',' '],
[' ',' ',' ']]
def nome():
nome = str(input('Qual seu nome? \n'))
return nome
def solicitaSimboloDoHumano():
s = str(input('Qual símbolo você deseja... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
259fdbbaa0c22cfce10f7b18640462ae1d58e193 | 8ae01239931f037811713fa4c358725c8da009b2 | /old test apps /mysite0/mysite/urls.py | f36ef62bfe0a465c34d73d3b043aa14efbef16de | [] | no_license | george1912/ostproject | 70ec37e1b80793feebb27dc696db1b1d6415c1b9 | 14bcf0aa04ba9b3dc8f0cffc2118cef3651d1ecd | refs/heads/master | 2021-01-10T21:05:04.395601 | 2015-08-04T16:21:03 | 2015-08-04T16:21:03 | 28,175,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | from django.conf.urls.defaults import *
from django.contrib import admin
#adding extra django views
from django.conf.urls import patterns
from django.views.generic import TemplateView
from django.views.generic.base import RedirectView
import dbindexer
handler500 = 'djangotoolbox.errorviews.server_error'
# django adm... | [
"gcu201@nyu.edu"
] | gcu201@nyu.edu |
241c3b03a95430d28439c67377145162e95a52a2 | 46ed1a87cdd36401d84749f3454d917542249cf9 | /utils/contextual_similarity_utills.py | 0562505d58791672078b0b31713ee7d76a09457e | [
"MIT"
] | permissive | cuevas1208/inpainting-gmcnn-keras | b9ace3f0903007461d3bbee52bc38da5ac86027a | 408c9ebf9070fca5d4a3585216cbedc5655a2210 | refs/heads/master | 2020-05-04T13:18:37.387422 | 2019-04-02T17:15:06 | 2019-04-02T17:15:06 | 179,155,389 | 0 | 0 | MIT | 2019-04-02T20:41:40 | 2019-04-02T20:41:40 | null | UTF-8 | Python | false | false | 3,006 | py | import tensorflow as tf
from utils import norm_utils
def calculate_cs(y_true_vgg, y_pred_vgg, batch_size, sigma=float(1.0), b=float(1.0)):
with tf.name_scope('contextual_similarity'):
cosine_dist_zero_to_one = calculate_cosine_distances(y_true_vgg, y_pred_vgg, batch_size)
relative_dist = calculate_relative... | [
"tomasz.latkowski@tcl.com"
] | tomasz.latkowski@tcl.com |
39ac66a14de521f9fba4836b7fd631eb810fbdd8 | fff9d5d769b01ac4f32cc76a2a999de77a425ea4 | /server/app/views/users.py | b48f1019a387cf3cfba2eca0c9176f69453e4351 | [] | no_license | EscapistH/graduation-project | e742c9fac52c712c397a95769ac946b511b4bd34 | 9ef8cf0af1d8bc03b17b2a8fbe92e7da7d051284 | refs/heads/master | 2023-01-21T21:45:40.067843 | 2020-05-16T08:44:10 | 2020-05-16T08:44:10 | 252,615,793 | 1 | 0 | null | 2023-01-05T10:48:22 | 2020-04-03T02:39:59 | HTML | UTF-8 | Python | false | false | 10,054 | py | import datetime
import hashlib
import json
from flask import Blueprint, request
from app.extensions import db
from app.utils.ResponseResult import ResponseResult
from app.utils.TokenOperate import TokenOperate
from app.views.public import get_token_and_id
users = Blueprint('users', __name__)
@users.route('/users',... | [
"923737723@qq.com"
] | 923737723@qq.com |
4fc9316d909e54bbf01031e6241128367bf5ff77 | 6b40509f6367e15ef3a4a0906a4cf51e78313941 | /olnote/blog/forms.py | bbce753bf7f795ea1420143f7f068c6ffbb90220 | [] | no_license | chenshengda0/blog | 24f2c38ccf22ee44ee392c22fb1ac01478ed8c07 | ee4e8770110529448fc81b38c5ff6017266b4058 | refs/heads/master | 2020-12-24T19:51:27.115971 | 2017-03-28T17:24:10 | 2017-03-28T17:24:10 | 86,221,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | #coding:utf-8
from django import forms
class RegisterForm(forms.Form):
username=forms.CharField(required=False)
password0=forms.CharField(required=False)
password1=forms.CharField(required=False)
nickname=forms.CharField(required=False)
def clean_username(self):
username=self.cleaned_data['username']
#num_w... | [
"chen_shengda@yeah.net"
] | chen_shengda@yeah.net |
568daf7ea869b0b455b452a94eb534ce4e7d079d | 4d673f28f697d770dd7b54526183d3fa6cf2ca94 | /setup.py | db5606648b486c5c4046d9e6192b834af1b9ed9c | [
"MIT"
] | permissive | Kamran151199/figure-eight-python-client | aebd6a6c7df5671ce04dd72c26f9f62de19f693e | 87f7dda28a4e8a6b342e2fcfd64e219bf2a60905 | refs/heads/master | 2022-02-20T10:17:49.056008 | 2019-08-20T21:47:10 | 2019-08-20T21:47:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="figure-eight-client",
version="1.1.0",
author="Nathan Evans",
author_email="evans.nathan.j@gmail.com",
description="Simple client for the Figure Eight API",
long_description=long_descr... | [
"evans.nathan.j@gmail.com"
] | evans.nathan.j@gmail.com |
b7aa3cce56a3179aefb137b1fd5af952407ffa7c | ff60992ad4436dc7390ee0add1c508f31634df7d | /Zayn Tee/TomeRater.py | 2b6e11ed0d03af9585ac06d1532593e8fb942c13 | [] | no_license | yinyongtee/pwp-capstones | 219783bf356d3946813d45e9b77ba64537de1297 | cd66d959959e11c335f5bc65ffa1f73ddc291f9d | refs/heads/master | 2020-03-30T00:17:55.473515 | 2018-09-27T02:07:30 | 2018-09-27T02:07:30 | 150,514,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,305 | py | class User():
def __init__(self,name,email):
self.name=name
self.email=email
self.book={}
def get_email(self):
return self.email
def change_email(self,new_email):
self.email=new_email
print("The user's email has been updated.")
... | [
"32047564+yinyongtee@users.noreply.github.com"
] | 32047564+yinyongtee@users.noreply.github.com |
c944bed3873e30adc06b8820545d86824a32144a | 9a753e3035d8d01726b08f9cd636e7ef0fade116 | /pages.py | 57e2ecbd25e9afbfd7a50aedf7bbef42ad693c0a | [] | no_license | xaligali/consultant.ru | cb872964f93a77ed9189eab8b9bf4a556750f4e5 | e7cbd013b54e1531a26e05c5dc8335bc860b36bd | refs/heads/master | 2021-01-03T22:58:20.158538 | 2020-02-14T13:53:56 | 2020-02-14T13:53:56 | 240,271,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,291 | py | from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
from selenium import webdriver
from locators import *
class BasePage:
def __init__(self, driver):
self.driver = driver
self.base... | [
"ghalikova@datasoft24.ru"
] | ghalikova@datasoft24.ru |
97bf59fb564cdb1bf09585e06a33e065d96afb03 | b17e7f2506e49b1379c8b74c60f84bbbf28cbbd1 | /Form_practice/order/migrations/0001_initial.py | cb0e4201f55005e4af5195baa033fe1273a92ed7 | [] | no_license | HaoHuynh0301/Django-Foundation | fc51d2a138b29702ecf6db196879b43e82326bb4 | 00abe2df922f008d84dfb421614c898508c90c41 | refs/heads/main | 2023-04-19T17:29:25.313323 | 2021-05-07T10:43:42 | 2021-05-07T10:43:42 | 354,441,127 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | # Generated by Django 3.2 on 2021-04-20 12:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"hao152903@gmail.com"
] | hao152903@gmail.com |
1491a91c49bdd2571263e891061b71dade93d3f7 | c4ddbcb4b02c9ba487c5f128db30ac9b5cae6d92 | /vizdoomgymmaze/envs/vizdoommazetwo9.py | 5611e15c8c5f47304a4406a7c32dbdd64f5cecd0 | [
"MIT"
] | permissive | fanyuzeng/vizdoomgymmaze | 11d1a5b2e05ff1eb2606015e0eae128ea42425cb | 51f750405a762e3f19193c09ef34380786c11efe | refs/heads/master | 2020-07-22T20:20:29.780544 | 2019-08-27T09:51:51 | 2019-08-27T09:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from vizdoomgymmaze.envs.vizdoomenv import VizdoomEnv
class VizdoomMazeTwo9(VizdoomEnv):
def __init__(self):
super(VizdoomMazeTwo9, self).__init__(42) | [
"wangchen100@163.com"
] | wangchen100@163.com |
13d997cd3ea84ba46e068e67d8060dab171a8805 | 77e46678b61125eaf76eefd9695571abb7bdcf8f | /8_factors/test.py | 590b9ba1965e1703b0dcdcf5c29e7f9604421912 | [] | no_license | gujunlun/HelloGit | 39bd58da84786d9a7e6456889558b661218cd2b9 | 2e650970c894c7a1d9a1f442535dc99c75f5370a | refs/heads/master | 2020-03-12T04:32:50.623460 | 2018-05-07T16:40:42 | 2018-05-07T16:40:42 | 130,447,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | import pandas as pd
def get_dv(start = 20170101,end = 20180101):
import jaqs_fxdayu
jaqs_fxdayu.patch_all()
from jaqs.data import DataView
from jaqs_fxdayu.data.dataservice import LocalDataService
import warnings
warnings.filterwarnings("ignore")
#----------------------------------------... | [
"450093979@qq.com"
] | 450093979@qq.com |
a4a0b8f3a09ca5ad949545f6df5b75f196e58b74 | 7b01421591dd7f83b719be4df90b4590904263f9 | /bev/__init__.py | e0e4ef5a43398ff89aae02c5b92d8f23e1efde1e | [] | no_license | samokhinv/bev | d54624566d315f3ddf4a71e584bf2c00200a11b6 | c3b1bdcdbcdb7be5e65c4cc8d04a40615f4f65b1 | refs/heads/master | 2023-05-31T15:38:39.816757 | 2021-06-23T17:37:45 | 2021-06-23T17:37:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | from .interface import Repository, UNCOMMITTED
from .__version__ import __version__
| [
"maxs987@gmail.com"
] | maxs987@gmail.com |
ab075b7864f6e7647ffbcf065057f50255cbb05f | 19ca640ac6fe110c17b256413d9343a09cfb8f92 | /logout/urls.py | 773eff783c2a790a8c282d5d256acd2b87840b8f | [] | no_license | tehniksit/django-based-service-for-repairers | f926f3d7024a8b87c6253a7b29bc10c7d186fca2 | c12da1ba06653a2754381a8f4941106a5873b96d | refs/heads/master | 2021-09-20T05:20:14.213286 | 2018-08-03T18:40:53 | 2018-08-03T18:40:53 | 90,462,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.conf.urls import url
from django.contrib import admin
from logout import views
admin.autodiscover()
urlpatterns = [
url(r'^logout/$', views.logout_view, name='logout')
]
| [
"tehniksit@gmail.com"
] | tehniksit@gmail.com |
51817cec5bc175eecf69e3cd6c22f6274bb5fa61 | 89b3d7ebba4ab85447b03c6ff9ab40ed9aa2cc76 | /Final_AI.py | 72b681ea9d0863c382e9f66dd94e5cee7be7803a | [] | no_license | MarkAMoussa/8-puzzle-A--BFS-DFS-Python | dad260e016b7e60be351c0bdfa8bb29c557c3a25 | ce40d2585b17bcd558efcfe885adc89f516d8174 | refs/heads/master | 2022-06-12T15:30:19.104893 | 2020-05-04T20:49:06 | 2020-05-04T20:49:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,264 | py | import sys
import numpy as np
import heapq
from collections import namedtuple
import time
class puzzle_state:
previous_state = None
state = None
moves = 0
cost = 0
space_index = -1
direction = ""
kind_heuristic = 0
# constructor for the puzzle state
def __init__(s... | [
"noreply@github.com"
] | noreply@github.com |
bdf5c1a2838f3284de099196371fc88742604fc6 | f73e0439f953f968f2021e54866a367617debff8 | /blog/views.py | e4b976339b39b8067c110e831249a1e9e5319cde | [
"MIT"
] | permissive | kkampardi/DjangoTesting | d86542beae8a7cc16fc2fc2774c1c3348142345b | 1092c41d9d4930f0512fac79b4d95836c70e5f3a | refs/heads/master | 2020-06-16T12:13:17.240496 | 2017-05-09T07:26:30 | 2017-05-09T07:26:30 | 75,104,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from django.shortcuts import render
from django.views.generic.base import TemplateView
from .models import Entry
class HomeView(TemplateView):
template_name = 'index.html'
queryset = Entry.objects.order_by('-created_at')
| [
"kkampardi@gmail.com"
] | kkampardi@gmail.com |
2c5cc79be2f83bb7dc69ab1da0b7ac1f94c328fc | 5a250c2691d3a7e7cb013cb57a5470b4f10eb65a | /nfcloud/wsgi.py | 1bb90d12882853325b2402169cc2596e6abeb622 | [] | no_license | wpjunior/nfcloud | b03dafa8e90f62dc46aacb2e77c1ff8b224c6f15 | 8c132d80ca7c9d0ccc88e2c827072e12b88c7dc1 | refs/heads/master | 2016-09-16T07:01:36.418244 | 2012-06-06T15:36:15 | 2012-06-06T15:36:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | """
WSGI config for nfcloud project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` ... | [
"wilsonpjunior@gmail.com"
] | wilsonpjunior@gmail.com |
92add287b89d3b1e167f2c5b941d8e3b3971980c | 19a872866ebb04fd25cc06c9432196232804ce40 | /lib/mathlogic.py | e5471d52bffda5e15d1d776893a335f1daf52783 | [
"MIT"
] | permissive | NasyaS/Diplom | fa4e66564a223a434b9f5bd7eb847f50807e41de | 6a35c2bed3ae65ee73ac915834d5bb9d42162cbb | refs/heads/master | 2020-05-04T16:46:40.613357 | 2019-06-18T22:35:15 | 2019-06-18T22:35:15 | 179,287,673 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | import numpy as np
def focalLength(exiflength):
return exiflength[0]/exiflength[1]
def matrixsize(matrix, linelength, canvsize):
return (np.max(list(map(float, matrix)))*linelength)/np.max(canvsize)
def process(object, matrix, msize, h = False):
height = 1.65 if h else object.height
return focalLe... | [
"knsroo@gmail.com"
] | knsroo@gmail.com |
66380e9ad34d3f68b7e14badaba104c571d18e05 | c3f052f2bf0043fa5ad6cc2e43a9f8e97f4c1922 | /twitter1.py | 6f0e52b2125df29dbf790062e1012a530a7643f6 | [] | no_license | Sarthak30/fun-with-twitter-api | 0c48dd6b2b37c60a0d2e9b53e93382d4fe760e22 | 627c3734d95e31052d6ec8a78ae00b2cf703a4b8 | refs/heads/master | 2020-12-24T06:41:03.423398 | 2016-08-11T04:50:07 | 2016-08-11T04:50:07 | 65,439,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | import credential
import twitter
consumer_key = credential.consumer_key
consumer_secret = credential.consumer_secret
access_token = credential.access_token
access_secret = credential.access_secret
auth = twitter.oauth.OAuth(access_token, access_secret, consumer_key, consumer_secret)
twitter_api = twitter.Twitter(aut... | [
"sarthaknsit@gmail.com"
] | sarthaknsit@gmail.com |
27b89f261b4edf53610e22cdf31f87719a6e901c | 084433fd363846f05a7f86f4c54863b2a4cd40e0 | /Pruebas/Prueba7.py | 7cdb91728ea05e14fbbf04123b3d5514b4b5bd61 | [] | no_license | DanitzaFren/NMAccidentes | 3c2177e01ccc40e2879bf1df90f00c382ff411ce | f4cfa3c8a6db33e61db0057daa65df8969027e62 | refs/heads/master | 2023-01-25T01:42:54.829455 | 2020-12-12T06:37:56 | 2020-12-12T06:37:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | import unittest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
from selenium.webdriver.chrome.options import Options
#### pruebas de logins
class usando_unitest(unittest.TestCase):
def setUp(self):
chrome_options = Options()
chrome_options.add_argument('-... | [
"d.fren@alumnos.duoc.cl"
] | d.fren@alumnos.duoc.cl |
d7b92bcf0e662160b3c8553e256df42ef7cb2bfc | 3d5ba623485d94e62955151c222c767c46866804 | /Functions with All Parameters.py | 62a3cee074450a5944e3b2782d47f6cfeff4d456 | [] | no_license | hamzaansarics/Python- | 63cbd86579c6afcea6ef88a706e2ac2d83617ba9 | 5c860e183e3314678ffa0fed556a002c6beaf0f3 | refs/heads/master | 2022-06-15T22:53:51.662375 | 2020-05-06T12:32:02 | 2020-05-06T12:32:02 | 259,234,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | #//////// Functions with All Parameters //////////
#PADK //////// This is trick for remember to getting parameters in order
# def allparameters(age,*args,names='hamza',**kwargs):
# print(age)
# print(args)
# print(names)
# print(kwargs)
# print(allparameters(21,*[1,2,3,6],**{'a':2,'b':9}))
#... | [
"noreply@github.com"
] | noreply@github.com |
a8fe0988ccaba26dd6c06fdb0050af81e79fc56b | bebec878576db20eb38f7e981ab42a7dee20d431 | /src/publisher.py | 1ee23b019c6b41a01d5afcf236fd07f02ba0045a | [] | no_license | rorymcstay/algo | 890809d03c68b3e09ee3e48b3cf71d74ac867215 | 499e39511b2ad495a6559790c8c7d84bdaa0a32e | refs/heads/master | 2021-06-28T06:34:26.410025 | 2021-03-28T19:39:16 | 2021-03-28T19:39:16 | 224,317,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | import csv
import logging
import threading
from threading import Thread
from multiprocessing import Process
from event_config import subscribers
from src.engine import ThreadPool
class EventConfig:
def __init__(self, dataClass, mapping, complex=False):
"""
The configuration class for an event to ... | [
"rory@rorymcstay.com"
] | rory@rorymcstay.com |
f300ce2eff2dcc46b9a46377c2b2bbee80217dc6 | 906171cc2ff7a669149d807c0e6d6db3fbea5f91 | /algorithm-books/程序员面试指南/python/递归和动态规划/龙与地下城游戏问题.py | 204b196a1cb2565b9aed86764b5bca945d6e2cbb | [] | no_license | Deanhz/normal_works | a2942e9eab9b51d190039b659b6924fe2fba7ae9 | 7ae3d5b121bb7af38e3c7e6330ce8ff78ceaadb1 | refs/heads/master | 2020-03-25T20:51:02.835663 | 2019-02-18T16:34:44 | 2019-02-18T16:34:44 | 144,149,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 12 20:44:57 2018
@author: Dean
本题的更新需要从下到上,从右到左
p223
"""
def minHP1(m):#时间复杂度O(M*N),空间复杂度O(M*N)
if not m:
return 1
row = len(m)
col = len(m[0])
#dp[i][j]表示如果骑士走上位置(i,j)前,从该位置能够走到右下角,最少具备的血量
dp = [[0 for j in range(col)] for i in range(row)]
... | [
"258796762@qq.com"
] | 258796762@qq.com |
2089109170ab97d5159d385ff472c4da80d0a1dc | e837ff33eee1030ea0b3af8ccf7c1ec9cca9fd5b | /organiser/tasks/management/commands/load_sample_data.py | 084ef6f583f43b536e3a810f06ce15e35a8a918c | [] | no_license | lalstef/organiser | 3e9234c1d4385edb88f2d87cb741a80729e74a2d | a0acd6bf165ee00c89c5edd5c2770cc5667a69f5 | refs/heads/master | 2021-01-19T10:52:24.653934 | 2017-04-11T08:02:34 | 2017-04-11T08:02:34 | 87,625,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | import names
from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
from organiser.tasks.utils import RandomTaskGenerator
class Command(BaseCommand):
help = 'Creates some users and tasks associated with them'
... | [
"alexander.stefanov@lulin.bg"
] | alexander.stefanov@lulin.bg |
8bd71f0ecd7c684d6b902c9e32a15bdf17d78772 | 9e1aaf20d55eee71e085ef15d083bea76861089f | /IDEAlab/Code/ArduinoAcq.py | 49b8ed0c3d778ab04d3ff07c816612346e3c6c92 | [] | no_license | jwknaup/Junior | ba906cb6994fb7f44557b3ad88d64e5d34608909 | 0289ef702909029df83de4a80588a9df06cfbab8 | refs/heads/master | 2021-01-01T18:56:43.569729 | 2018-09-10T23:39:45 | 2018-09-10T23:39:45 | 98,465,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | import matplotlib.pyplot as plt
import numpy as np
import multiprocessing
import serial
import time
VI = np.zeros([100,4])
def arduino(queue):
time.clock()
i = 0
ar = serial.Serial()
ar.baudrate=115200
ar.port='COM6'
ar.open()
time.sleep(0.5)
ar.write(55)
#ar.flush()
for i in r... | [
"jacob.knaup@asu.edu"
] | jacob.knaup@asu.edu |
b6eee7df6a360c5c7b924bde0f874cc22c1dfea5 | 16305ec3c8392fcf22f2fdb9f49d0b4be07bac0f | /matrix_multiplicate.py | 818f227b8d863f4e555e418de157a5080bcb9390 | [] | no_license | ChernikovVictor/Matrix_multiplicate | 44d460d608294f9a249c0ce3207dc9009ae150fb | bfe49ec958341d975f2d3cc07b2027d93ff3c00a | refs/heads/master | 2020-06-23T11:16:36.065686 | 2019-07-24T10:49:08 | 2019-07-24T10:49:08 | 198,606,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | #!/usr/bin/python
import numpy as np
import sys
import os
def multiplicate(a, b):
n = a.shape[0] // 2
if (n > 16):
A11 = a[:n, :n]
A12 = a[:n, n:]
A21 = a[n:, :n]
A22 = a[n:, n:]
B11 = b[:n, :n]
B12 = b[:n, n:]
B21 = b[n:, :n]
B22 = b[n:, n:]
... | [
"victorchernikov252@gmail.com"
] | victorchernikov252@gmail.com |
afc49a1d4bdd3d94c6c211b41083233da87f2693 | 1a756d45d9e6294ae7945bd018fb0ccebb60806d | /Chapter5/5.2/5.2.3/5-5.py | 6b271f954153de465c7e5b3ad7eba1e08dfa9a9b | [] | no_license | WustAnt/Python-Algorithm | 0a7f32dfa3da7a640eb303c1e2cbe62896df025e | 5da5236e6c0cd3c8410c3925c5744c97d20bfc26 | refs/heads/master | 2022-12-07T22:19:20.130446 | 2020-08-21T09:25:28 | 2020-08-21T09:25:28 | 284,865,740 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | # -*- coding: utf-8 -*-
# @Time : 2020/8/21 17:18
# @Author : WuatAnt
# @File : 5-5.py
# @Project : Python数据结构与算法分析
def hash(string, tablesize):
"""
为字符串构建简单的散列函数
:param string: 传入一个字符串
:param tablesize: 散列表的大小
:return: 返回散列值
"""
sum = 0
for pos in range(len(string)):
sum... | [
"ghostimage@163.com"
] | ghostimage@163.com |
8b5972ea6ee88fbc33e55caf9e59b24cac3185ea | 078f5a3313537987528dae52b73aef389101e71d | /ex046.py | 2529878b8379f905a3e42ad0331c94512a96ca0e | [] | no_license | DayaneMoises/CursoEmVideoPython | 9f1cf508c793c0fdf507d4cb30cb399b216ecdb4 | f1850d597d3a5ba8b7c7df7d1a56b7adcac03315 | refs/heads/master | 2023-09-04T05:34:55.444164 | 2021-10-10T21:26:48 | 2021-10-10T21:26:48 | 415,693,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from time import sleep
for c in range(10, -1, -1):
print(c)
sleep(1)
print('BUM!')
| [
"dayane.moises@hotmail.com"
] | dayane.moises@hotmail.com |
90ddba2b8409e8d2b46143b7d85becc2254fc5f3 | 49c69dbc265d0be76bd024f6f022200f9ba3474a | /blog/views.py | 71f1531275cbacd689a6571bbb1b08435b7b17a8 | [] | no_license | samLeRoy/try-repo | 2c1b4260a231f36b6e4672a152f6b1ddc51d0e79 | 0dcc315da219007214328e4eb689bd08f37ec788 | refs/heads/master | 2023-05-03T17:21:19.569176 | 2019-10-28T13:18:41 | 2019-10-28T13:18:41 | 218,042,134 | 0 | 0 | null | 2023-04-21T20:39:41 | 2019-10-28T12:31:13 | Python | UTF-8 | Python | false | false | 1,167 | py | from django.shortcuts import render, get_object_or_404
from .models import Post,Category,Comment
from .forms import CommentForm
def blog_index(request):
posts = Post.objects.all().order_by('-created_on')
context = {'posts':posts}
return render(request, 'blog/blog_index.html', context)
def blog... | [
"o.7rida@gmail.com"
] | o.7rida@gmail.com |
6b3d33a9faa6ca2f5e7d5780e16640ea067b0688 | 7bbec22c9f1f1fc18b2872ac0889ac2f99711753 | /LSTM_SNIPS/lstm_snips_intent.py | 73909e49291f7b8cdfe659b3402003429ebd9be4 | [] | no_license | Aravindh0112/Intent_Detection_LSTM | d1a6e2d3a705a40cff7b90c0e706acb20fca5d04 | 9f79c1354b1bb43bef5a9e1c2c8f9d555adebf04 | refs/heads/main | 2023-05-14T04:27:46.346427 | 2021-06-09T04:52:05 | 2021-06-09T04:52:05 | 375,229,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,957 | py | # -*- coding: utf-8 -*-
"""LSTM_SNIPS_Intent.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1wLKlr8GtpnzNib45pixNkBMJbiTtohOE
"""
pip freeze > requirements.txt
import pandas as pd
from nltk.corpus import stopwords
from nltk.tokenize import word... | [
"noreply@github.com"
] | noreply@github.com |
1d274ff340be183325671ad6a0de3b80d7777c6c | 859fcf01a87489fd8740bb761e070042ab5e6c6a | /removeduplicates.py | 04322483e40a40024d27d71e093214635653781f | [] | no_license | MichaelDogan/LPTHW | e6cd8d306dc51ea00e2e706cd79dc2ac1615dda4 | 81245caa8e98ae6d22ae6beaf4ff93378d359414 | refs/heads/master | 2021-01-11T11:02:37.919767 | 2015-08-11T02:51:44 | 2015-08-11T02:51:44 | 40,517,663 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | def remove_duplicates(lst):
new_list = []
for i in lst:
if i not in new_list:
new_list.append(i)
return new_list
print remove_duplicates([4,5,5,4]) | [
"MichaelDogan@gmail.com"
] | MichaelDogan@gmail.com |
68d1f8007c0ffabc2060ad75d41466239b35cd09 | 5365194dc6c70920bcfe66a3804773ff20c50f21 | /Demo.py | 522dbe0f27d39074092402da07b780cba9b09c5b | [] | no_license | Fairber/pendemic-control | a223321548b91675c3966c66b824acafc75748bb | d780f8d950f9ac9ec3e2ee0081730745a8ea2961 | refs/heads/master | 2021-05-17T13:37:14.257308 | 2020-03-28T14:00:08 | 2020-03-28T14:00:08 | 250,802,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | # Author murphy
# -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version Oct 26 2018)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
##########################################################... | [
"noreply@github.com"
] | noreply@github.com |
069df0b91770278c18cb69fae6abb68bfff5b37e | e76f883f7f93b2d2e735fe1c8a72ddfb146a6ffb | /tests/test_vpx.py | 22da24b31ccc3eeca8fe128cd833d5932f3ec619 | [
"BSD-3-Clause"
] | permissive | turbographics2000/aiortc | 4da92a85b5b3b3ec3286bad46265158f04d7b373 | f3275012f59312a4f7a73c932bbf52f6f69f1a1a | refs/heads/master | 2021-04-03T07:07:52.485523 | 2018-03-07T10:49:56 | 2018-03-07T10:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,467 | py | from unittest import TestCase
from aiortc.codecs import get_decoder, get_encoder
from aiortc.codecs.vpx import (VpxDecoder, VpxEncoder, VpxPayloadDescriptor,
_vpx_assert)
from aiortc.mediastreams import VideoFrame
from aiortc.rtp import Codec
VP8_CODEC = Codec(kind='video', name='VP8', ... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
10f7ef7944bbc118a972447b591a865681e469ee | 502da37d15b473edd9ac56f10871a2e74a774920 | /misc/deb-package/spairo-deb-d/usr/lib/python3/dist-packages/spairo/parse/obj.py | 003719aee7bc156b13109532cf1d43d4f12fab2a | [] | no_license | adhuliya/sparcv8-ajit | 5cf7c8fc1e89dc97b3160c010ba9c95cd993eee6 | c121c33f5b1eaabf040cf929678229a21f8283de | refs/heads/master | 2022-08-22T08:20:09.423969 | 2022-07-24T04:10:11 | 2022-07-24T04:10:11 | 97,362,905 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | #!/usr/bin/env python3
import re
import sys
extractInstruction = re.compile(
r"(?P<addr>[a-fA-F0-9]+):\s*([a-fA-F0-9][a-fA-F0-9]\s){4}\s*(?P<instr>[^!]*)")
labelSuffix = re.compile(r"<[.$_a-zA-Z][.$_a-zA-Z0-9]*>$")
# Parse obj file
def parse(filename):
instr = dict()
with open(filename, "r") as f:
... | [
"lazynintel@gmail.com"
] | lazynintel@gmail.com |
e08af1a0584af7a667fb026a30e1d67b42e9a705 | 2de8053681580bd7b2ac3c4ddbceb23f92ac5431 | /DistrComp/app/routes/signin.py | 9bfcf5d585402a30467217da40aeb94383b58bb7 | [] | no_license | D0RMAN/Distributed-computing | c29274e1ba6c26cee15ad5850a59d4b3f4c95279 | 1319666a8ba8e7e0bd952e4b502830409adb3142 | refs/heads/master | 2021-01-19T06:06:25.559827 | 2016-08-01T14:57:21 | 2016-08-01T14:57:21 | 64,675,531 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | from app import flask_app, login_manager, bcrypt
from app.forms.signin import SigninForm
from app.models.user import User
from flask import render_template, flash, redirect, g, url_for, session, request, abort
from flask.ext.login import login_user, logout_user, current_user, login_required
@flask_app.before_request
d... | [
"maxis.shtanko@gmail.com"
] | maxis.shtanko@gmail.com |
a120edef0d9cfa18e667ba8fd0f3def1f5843467 | ac313b17e3d44a7b5b50323bde2cedb1aa942828 | /bookstore/utils/decorators.py | bfed3332f4b752729ba06ab76d1f455439c41bf6 | [] | no_license | timesall/bookstore | dad63ac9c745904add57c42bdfa7b7a43cf02afb | c30de3dff8e55b398f208ef3aa00b82d18ef54a1 | refs/heads/master | 2021-05-06T14:56:09.665188 | 2017-12-15T12:34:56 | 2017-12-15T12:34:56 | 113,416,420 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from django.shortcuts import redirect
from django.core.urlresolvers import reverse
def login_required(view_func):
def wrapper(request, *view_args, **view_kwargs):
if request.session.has_key('islogin'):
# 用户已登录
return view_func(request, *view_args, **view_kwargs)
else:
... | [
"sesxzs02@163.com"
] | sesxzs02@163.com |
bc2cf10cfaf78ff4a763432f070bfda0ece2d6f5 | 87c741a836e67dbacbf15dd497006c415779f4f9 | /file_material/house/leave.py | fa9d546865a00ad0b6e2acb2a25afb69256ca6af | [] | no_license | shiangwen/test | 1129fa81adbe253caa2f9a9488de216a8317817b | 8d08d3dac21ce9adbff9aa0938f7c911c003697d | refs/heads/master | 2020-03-25T17:08:23.684629 | 2018-08-19T08:34:47 | 2018-08-19T08:34:47 | 143,964,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | selection = ['Morgana', 'Katerine', 'Louis', 'Arthur', 'Matthrew']
for i in selection:
print(i)
print()
def final_judge(ans_arg):
name = ans_arg
if name == selection[4]:
print('You catch the thief, good job!')
else:
print('You get a wrong person, and the thief is still at la... | [
"shiangwen@huangxiangwende-MacBook-Pro.local"
] | shiangwen@huangxiangwende-MacBook-Pro.local |
803af9af0e74dc2e664633789d7e53b1514d04bd | 2872c562a712b3442f3efaae9a49e36d43259351 | /Eshop/Eshop/urls.py | 881e93597e87155b510e1bfcea2e465846df7fe8 | [] | no_license | pricemou/website-ecommerce | dd0a7ca186973d7850c625ce29301ea5c61d9efc | e3de1845512ff8174565536eeff05c405d33a395 | refs/heads/main | 2023-06-13T21:43:30.063084 | 2021-06-23T11:14:08 | 2021-06-23T11:14:08 | 376,615,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | """Eshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"scameleons3@gmail.com"
] | scameleons3@gmail.com |
ff1795b0e98925064b3ad8e0b61dbc2b23adb6cd | bd57572e575b9454b3810938b72e4e7692910610 | /venv/bin/ipython3 | 63d1eaa2dbda0af86ca0a0b026a818ad15bd82bc | [] | no_license | Kapizany/AceleraDevDS | 044b0c9028349b2d1b25aa73ac5b05e2ffa17efd | 480117894e53bd225b8f0ecad7da988386a93bcf | refs/heads/master | 2022-12-21T15:43:39.810994 | 2020-08-17T00:13:48 | 2020-08-17T00:13:48 | 273,086,809 | 0 | 0 | null | 2022-12-14T05:40:24 | 2020-06-17T22:02:06 | Python | UTF-8 | Python | false | false | 265 | #!/home/capizani/PycharmProjects/AceleraDev/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
| [
"kapizany@gmail.com"
] | kapizany@gmail.com | |
2d26bc11a07cf32ed35484f195e8399ff81da53c | 6e76a5526cccd01b174b36dc614bf30b4e530f96 | /PonyGE2/src/utilities/fitness/error_metric.py | 784a2b877497f1d084b77f18237f756a15f76d76 | [
"MIT"
] | permissive | dabingrosewood/MasterThesisProj | db893358bbb27d3ae2ad4aefc292dae2e459dd7a | 7e40fa2395468a1bccef429362a61ed8515ecc11 | refs/heads/master | 2020-05-16T05:09:43.372071 | 2019-09-30T10:04:22 | 2019-09-30T10:04:22 | 182,806,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | import warnings
import numpy as np
from sklearn.metrics.classification import f1_score as sklearn_f1_score
def mae(y, yhat):
"""
Calculate mean absolute error between inputs.
:param y: The expected input (i.e. from dataset).
:param yhat: The given input (i.e. from phenotype).
:return: The mean a... | [
"dabing930714@gmail.com"
] | dabing930714@gmail.com |
4f5abdffc84f9532d1542066b657f8458807de46 | 85d3d302c30ac894c49cc8e6a72190cf00b7a4cb | /preliminary/visualization/matplotlib_basic.py | 9359c0cbf5395b37c1233c8ac957b516401772b6 | [] | no_license | etvas21/ai | ee429801bb39a7d81e188869586725b17fd693fc | 23723dd4472c8341c84e311ddfd973f7a651b865 | refs/heads/master | 2020-05-25T06:07:48.132965 | 2019-07-26T08:56:43 | 2019-07-26T08:56:43 | 187,661,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | '''
Created on May 24, 2019
@author: hrkim
'''
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(360, step=20)
y = np.sin(x * 2 * np.pi / 360)
# 그래프 크기 정하기
plt.figure(figsize=(6,3))
plt.plot(x,y)
plt.show()
# 한번에 여러개의 그래프 그리기
for i in range(1,5):
plt.subplot(2,2,i)
plt.text(0.5,0.5,str('S... | [
"hrkim@218.38.137.27"
] | hrkim@218.38.137.27 |
bdb96c5ae52e62c55342e5ae52e87714ea487a67 | d87bed005191f2b038ac847642b2fa4493c0a4e2 | /apps/cart/views.py | 56715ce9e3da7a0dcf5c9d6ee97655c246e49b57 | [] | no_license | TimVerion/tiantian | 4e24313c0f200701ffea22036a5f46c25bb52a48 | e55adcab81d3da831efed1bf879bd6d1b8bd8c69 | refs/heads/master | 2020-05-31T20:49:43.849945 | 2019-06-06T00:12:34 | 2019-06-06T00:12:34 | 190,484,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,734 | py | from django.shortcuts import render
from django.views.generic import View
from django.http import JsonResponse
from apps.goods.models import *
from django_redis import get_redis_connection
from utils.mixin import LoginRequiredMixin
# Create your views here.
# 添加商品到购物车
# 1) 请求方式,采用ajax post
# 如果涉及到数据的修改(新增,更新,删除),采用p... | [
"1172688785@qq.com"
] | 1172688785@qq.com |
c8c6dc1a98bec371218cbf0df22c829ba44db05b | 694c4b633da0ba680b010514081fc8ff8e58dae9 | /shift/models.py | 2535506f4f8ba6b997cfe9776b9a155fbf91556c | [] | no_license | kiddikn/otake_app | a1f7d296a978c38d07b15b8a9a8760b45abc147f | 422417f00cecef91b9775a682e0c7218c5a8bed2 | refs/heads/master | 2022-10-12T01:40:41.342558 | 2021-01-23T04:08:11 | 2021-01-23T04:08:11 | 227,144,214 | 0 | 0 | null | 2022-09-23T22:50:44 | 2019-12-10T14:42:13 | Python | UTF-8 | Python | false | false | 2,512 | py | from django.db import models
DIVISION_TYPE = (
(0,'未'),
(1,'高校生'),
(2,'大学1年'),
(3,'大学2年'),
(4,'大学3年'),
(5,'大学4年'),
(6,'大学院'),
(7,'社会人')
)
SHIFT_TYPE = (
(0,'不参加... | [
"kiddikn@gmail.com"
] | kiddikn@gmail.com |
12b88e55eb90fcb5ab0f0eea7017cc18e6c5af13 | c4613fbfc4bd2440f0bdfb21dd08ac5ce3fe8dfd | /monopoly/Property.py | a7002009bc47ff41dba5afb17e80acf226356886 | [
"MIT"
] | permissive | tmthydvnprt/Monopoly | 935fe4a6243a393156ee3e08b58cec931a4ee3a2 | 218684f364a4762bbb2d6caf49f94a7b5bbebfd2 | refs/heads/master | 2021-01-11T15:02:57.045144 | 2017-12-16T20:58:36 | 2017-12-16T20:58:36 | 80,287,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,148 | py | """
Player.py - File for defining a Property class.
"""
from monopoly.Constants import CARD_WIDTH, MAX_LEVEL, UTILITIES, RAILROADS, COLOR_COUNTS
class Property(object):
"""Defines a property."""
def __init__(self, name='', color='', loc=0, price=0.0, rents=None, mortgage=0.0, cost=0.0):
"""Initialize... | [
"tim@tmthydvnprt.com"
] | tim@tmthydvnprt.com |
b3f9c788e47a6aa15ac7d3f49a59644a12e774ff | cb03739c25d611e2e1fa384d467fa8228c28461a | /process.py | d6cc93f45957463f23d57ead47873468f02bfafa | [] | no_license | doubletissue/gPodderMetadata | 34772b43931c75d03d7caef100aac4d1d1f22847 | 8e58e9e82daf3a9d7cc301ea25e6d6124ca1a1a6 | refs/heads/master | 2020-03-23T02:12:59.478829 | 2018-12-13T05:56:14 | 2018-12-13T05:56:14 | 140,962,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,427 | py | #!/usr/bin/python3
import os
import re
import sys
import subprocess
import mutagen
from mutagen.easyid3 import EasyID3
def get_duration(filename):
base_command = "ffprobe -i %s -show_entries format=duration -v quiet -of csv='p=0'"
chunked_command = base_command.split()
chunked_command[2] = in_filename
... | [
"dan@doubletissue.com"
] | dan@doubletissue.com |
ef83808c8032a7cdc93fce90074dae7f86333818 | 144cc2fc38f8be40e859f972d53cec893dc21ad2 | /main.py | fa48d058c66c2bc371e072e421bdff18bf14d28d | [] | no_license | aman436/AudioBook | bdd4e780ebcb8327d8f68e9cc0ef96281ce9d76e | 33828c2e43fe50c6d4b99be26a0a98e18f6ea477 | refs/heads/main | 2023-01-16T04:16:08.405180 | 2020-11-20T07:37:39 | 2020-11-20T07:37:39 | 314,309,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | import pyttsx3
import PyPDF2
book = open('test.pdf', 'rb') ##binary reading
pdfReader = PyPDF2.PdfFileReader(book)
pages = pdfReader.numPages
speaker = pyttsx3.init()
speaker.setProperty('rate',70) ##to set the frequency
voices=speaker.getProperty('voices')
speaker.setProperty('voices',voices[0].id)
for num in range... | [
"www.amankawre36@gmail.com"
] | www.amankawre36@gmail.com |
f4cb03f62ae12e8c2597479781f41178427cd878 | 0a13971830110886500604ecc9d58877d0bbc893 | /min and max in dictionary.py | f3f6b8beb81efd402c4b5ec13892d64ec91f1f57 | [] | no_license | philomathtanya/Basic-Python-Program | caf73ecd652e3ae2071d2d6387d62c555c4092db | 7a99084e1ba1f418c8e09bd53c1f7129c1807f80 | refs/heads/master | 2023-07-07T23:58:48.574412 | 2021-08-05T15:17:55 | 2021-08-05T15:17:55 | 409,669,497 | 1 | 0 | null | 2021-09-23T16:39:11 | 2021-09-23T16:39:10 | null | UTF-8 | Python | false | false | 144 | py | d={"a":12,"b":14,"c":34,"d":1}
m = max(d.values())
n = min(d.values())
print("Maximum of the items is:",m)
print("Manimum of the items is:",n) | [
"riteshponty@gmail.com"
] | riteshponty@gmail.com |
b4d624563bfde2acc7337c773ee6135ca29b3bc1 | 6af81c1e3853255f064ce58e848b34211decdd23 | /test/top/api/rest/SubuserDutyDeleteRequest.py | 4915d8f74cdf40234090e02dd520a45fee58387f | [] | no_license | dacy413/TBAutoTool | d472445f54f0841f2cd461d48ec6181ae2182d92 | ca7da4638d38dd58e38c680ee03aaccf575bce7b | refs/heads/master | 2016-09-06T16:13:01.633177 | 2015-02-01T00:04:50 | 2015-02-01T00:04:50 | 29,625,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | '''
Created by auto_sdk on 2015-01-20 12:36:26
'''
from top.api.base import RestApi
class SubuserDutyDeleteRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.duty_id = None
self.user_nick = None
def getapiname(self):
return 'taobao.sub... | [
"1656505353@qq.com"
] | 1656505353@qq.com |
ee636265f8b65b7c9797993e4db7affbaf93e751 | bb9ca5b8cb0595fb284461b6e3e3ac83b94f28db | /book_app/views/RegisterView.py | 6746598e79084783c519f5b6769b91873ed987d3 | [] | no_license | inwidyana/progweb_final_project | 573e0d7e04d2bfb71afaf8e6ed64a178728a9a97 | 462287eee6c7b26150584db4b62ce55ec109d0a4 | refs/heads/master | 2020-04-08T22:12:31.261029 | 2018-11-30T15:34:24 | 2018-11-30T15:34:24 | 159,776,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.views import View
from django.contrib.auth import authenticate, login
from django.shortcuts import render
from django.contrib.auth.models import User
from ..forms.RegisterForm import RegisterForm
class RegisterView(View):
... | [
"indrawidyana@gmail.com"
] | indrawidyana@gmail.com |
79768dcb6fb86fcd9c00dcbececc392046a19df9 | 00fc79623a0d748381b0325e42a3e3d27e0dec38 | /Homework1_1.py | 6fa56dc09948a41a18914b8a5b2b404fbb2844cb | [] | no_license | CesaB/IntroCS | af443bc9b4223c13f9fd7e1a1c389a3733e5cc5c | f425e73b2caf4db83b30549d183b470520edcaa7 | refs/heads/master | 2021-01-10T19:44:04.727679 | 2015-05-21T02:32:23 | 2015-05-21T02:32:23 | 35,167,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | #name = "Cesar"
#print "My name is", name
import sys
print "Your name is: ", sys.argv[1]
print "Your middle name is: ", sys.argv[2]
print "Your last name is: ", sys.argv[3]
#name = "Cesar"
#Lastname = "Burgos"
#Yourofbirth = "2000"
#Yourofgraduation = "2018"
#YourGPA = "5"
| [
"18cburgos@iaa.edu.ec"
] | 18cburgos@iaa.edu.ec |
ffcf2d4f3d2f333c0b0043ce937164113fd4e398 | 068154152505c92bc036162f2155e3676fdbded9 | /tcp_client.py | 9d43925cf94ea48ed6dee9a41f3deeb4f396e05c | [] | no_license | Machi427/python | 2137bd075e5a8e9e6f6cba4aaf114acf538001b9 | 4abd1a1339387d4d234b57f2e4f3f274b2a1ab0f | refs/heads/master | 2016-08-12T17:57:32.032628 | 2015-12-18T06:45:10 | 2015-12-18T06:45:10 | 45,534,909 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # -*- coding: utf-8 -*-
import socket
target_host = "127.0.0.1"
target_port = 9999
#create s "socket_object"
client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#connect to server
client.connect((target_host,target_port))
#send data
client.send("GET / HTTP/1.1\r\nHost: google.com\r\n\r\n")
#response data
r... | [
"machirda427@gmail.com"
] | machirda427@gmail.com |
adae908424c30f9d4e86f3532d053d8c5c4642a4 | 10f746943f2b6399bddf1fc79e16b2eec8b1bb0b | /gateway/dummy_secrets.py | 26986ea41ef76635f3cf6205f617a66f5da5ab9b | [] | no_license | edgecollective/belfast-harbor | 1fa5977a46222f9178a5912ece72beb17891f5e1 | 5149eca44e95bf0525601249116ab23e59c15c0f | refs/heads/master | 2020-09-20T14:16:00.411551 | 2019-11-29T13:02:49 | 2019-11-29T13:02:49 | 224,507,873 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | secrets = {
'ssid' : b'Your WiFi SSID',
'password' : b'Your WiFi Password',
'farmos_pubkey' : 'farmos_pubkey',
'farmos_privkey' : 'farmos_privkey'
}
| [
"donblair@gmail.com"
] | donblair@gmail.com |
400976ddfa61ecd58638feb3874886a1e8bcb2ff | 2ae34214322124f7d7752aa3233199b7a6be3e35 | /lib/xkbdata/parser/_tokens.py | 76b6c53a5d426dbb8c5ad3d3929ad9c98a31736c | [] | no_license | moses-palmer/xkb-data | abad208e64f73201d3d349fe6c11651a1618c9cd | 6af5299b522ad9f4590022aede6976e19b429594 | refs/heads/master | 2016-09-15T19:49:12.390076 | 2015-08-27T20:31:23 | 2015-08-27T20:31:23 | 37,972,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,491 | py | # coding=utf-8
# xkb-data
# Copyright (C) 2015 Moses Palmér
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This p... | [
"mosespalmer@gmail.com"
] | mosespalmer@gmail.com |
ff7165e6f87adf9056138b36cc89fc471903d097 | b745b6b1545d5cfd4871c2b3fe97afa4f9e6b419 | /material/magma.py | 5c4e7d68d4337317116fd9322d9d82990733781e | [] | no_license | thexa4/pixelplanet | 6ee1f51588485eb6906556948bdf3bfab27424d2 | 263f7828fae18594791fabd6d230fd7c43c35ef9 | refs/heads/master | 2021-01-20T21:01:16.563633 | 2012-10-22T20:23:16 | 2012-10-22T20:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # -*- coding: utf-8 -*-
import pygame
from data.actions import Action
class Magma:
"""Magma"""
id = 1
mass = 1
transparency = 0.0
color = (255,0,0)
foreground = 1
def update(world, position):
"""Gives the material a chance to update itself.
Should return a tuple with the action to perform and its argume... | [
"dummy@gir.maxmaton.nl"
] | dummy@gir.maxmaton.nl |
a492ce4de8ae31efc75ea2db245ac1fae5c46b7f | cdc4e9c81b6887bff2b70e3f3893b93d6a824e41 | /Python/Week2/Day5/ninja_gold/main/main/urls.py | 44a57a923dd1737277e742277af44013d2d96199 | [] | no_license | eawasthi/CodingDojo | e5c363184add26d2b7fb8b442ca15c657599feab | bfbba677cf957b7b45e99465079d5c00bc6c3f6f | refs/heads/master | 2021-01-23T05:25:17.152128 | 2017-06-26T18:36:32 | 2017-06-26T18:36:32 | 86,299,143 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | """main 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-based... | [
"ekta.awasthi@hotmail.com"
] | ekta.awasthi@hotmail.com |
c9c9fb90320942df1ac56298395ea7b639bd46bd | 88bc3989c1e4c21b3a4e85920cdc93751b2ebce4 | /ZC706/ZC706.spec | 06c2cfb1da7be188b31e4baf39e3c44c01f4d9c9 | [] | no_license | mmdsaifudeen/PynqOverZC706 | 75b0624a670435cf7f9080d80e5679a19cc6df5f | 4eafa07de872866454b290dffd4ca937045b9608 | refs/heads/master | 2020-11-24T06:01:07.106475 | 2019-12-14T10:36:02 | 2019-12-14T10:36:02 | 227,997,958 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 124 | spec | ARCH_ZC706 := arm
#BSP_ZC706 := ZC706.bsp
BITSTREAM_ZC706 := base/base.bit
STAGE4_PACKAGES_ZC706 := boot_leds pynq ethernet
| [
"mmdsaifudn@gmail.com"
] | mmdsaifudn@gmail.com |
22232bd5654c414b046f470cef574422936a962c | de1b2cfca42e495257a0f50bed026d42d35ecc97 | /flaskr/__init__.py | 60787156af6e1f0acfafab34d4efb49016cb91eb | [] | no_license | miniyk2012/miniyk2012-flask_tutorial | ad971a000b78b0267f33b40924f03154b0b84173 | 760d59b8c3ec534cdeb7c198d1adb61493b1bfff | refs/heads/master | 2023-01-11T14:57:38.931170 | 2019-06-04T22:39:09 | 2019-06-04T22:39:09 | 189,253,167 | 0 | 0 | null | 2022-12-26T20:56:11 | 2019-05-29T15:34:03 | Python | UTF-8 | Python | false | false | 1,465 | py | import os
from flask import (
Flask, current_app
)
def create_app(test_config=None):
"""
create_app是默认的名称, flask run的时候会自动来运行这个函数
:param test_config:
:return:
"""
# create and configure the app
app: Flask = Flask(__name__, instance_relative_config=True)
# print(app.instance_path) ... | [
"yk_ecust_2007@163.com"
] | yk_ecust_2007@163.com |
686ded4ecc73174d7e0c71f1fbec0637ae320d7d | 2d71c2727fc610f8d59e0278659ae0b4d20eba7f | /train.py | 11a1f4f6b3e89ddfcefe5abfbc7f8c97d9160b3a | [] | no_license | tengteng-Lin/lstm_label | 5e7988859f59bf935d9261b7b91d349dcef99057 | f556f1be298a468ebe3d6c5492e3bb061c7ac462 | refs/heads/master | 2021-01-03T08:11:51.390321 | 2020-02-13T00:51:14 | 2020-02-13T00:51:14 | 239,996,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import model
EPOCHS = 10
model1, (train_x, train_y), (test_x, test_y) = model.create_model()
# train model
model1.fit(train_x, train_y,batch_size=64,epochs=EPOCHS, validation_data=[test_x, test_y])
model1.save('without_crf.h5')
| [
"nanyi_Gu@163.com"
] | nanyi_Gu@163.com |
c4f3d24c73e621f93019e27a0890bf9ff86baa4c | 9373458523ae732331ff96d1b29971bede91118f | /amazon_hermes_label_converter.py | 1120f6b0bb43bc83868adea2a6f4f7812f85bd32 | [] | no_license | pklaus/labelweb | decae722c697ff7a73b5300350e4ca345d0b8e4e | f5f39c72e1f5385d1750795e25aad31e0b0d6415 | refs/heads/master | 2020-04-10T16:36:25.793399 | 2018-11-03T19:17:53 | 2018-11-03T19:17:53 | 42,143,511 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | #!/usr/bin/env python
"""
Amazon Hermes Label Converter -
Convert Amazon Hermes shipping labels to a size
suitable for Dymo or Brother label printers.
The label can be printed with 100% scaling
on a page size of 62 mm x 152 mm (of endless
62mm label rolls by Brother for example).
This software requires ImageMagick a... | [
"philipp.klaus@gmail.com"
] | philipp.klaus@gmail.com |
a191dcaa49224cd81211f05879bb8d5c434b5647 | 08e91450794942614524ebd422f57430bf03ab87 | /task8.py | d412285ca70862b4504700879998572691518de8 | [
"MIT"
] | permissive | prabhakarsarkar/SCRAPING-IMDB-site | 3c0c7f84cdda0786b7965f006e4851ca58641b73 | b4389c29fe13c07a7a254063d09504a5f4342af3 | refs/heads/master | 2022-11-19T06:54:55.488054 | 2020-07-20T17:31:08 | 2020-07-20T17:31:08 | 281,182,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | import requests,pprint,os,json,random,time
from bs4 import BeautifulSoup
from link import url2
# print(link)
def fun(u):
list1=[]
for k in u:
# movie_id=""
# for j in k[28:]:
movie_id = k[28:-1]
# if j=="/":
# break
# else:
# movie_id+=j
file=movie_id+".json"
if os.path.exists("jsonfiles/"+fil... | [
"prabhakar19@navgurukul.org"
] | prabhakar19@navgurukul.org |
89285e38a23db11f6fce526b0552d86ce863c748 | 95b1cb419171811ee509ae015366e70cdad29ec3 | /utils/responses.py | 24357a59992052a2a531cbba45e0ccaa1cb2c555 | [] | no_license | RajeshJ3/boilerplate-django-auth | e7088dde3824544775db8aeedd6612fdfe86b778 | 85e774f362fb6633df1cc8fa1b7fdc40b5f111ad | refs/heads/main | 2023-02-08T04:21:45.776695 | 2020-12-30T03:18:26 | 2020-12-30T03:18:26 | 325,442,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | from drf_yasg2 import openapi
GET_RESPONSES = {
200: openapi.Response("OK- Successful GET Request"),
401: openapi.Response("Unauthorized- Authentication credentials were not provided. || Token Missing or Session Expired"),
500: openapi.Response("Internal Server Error- Error while processing the GET Request... | [
"joshirajesh448@gmail.com"
] | joshirajesh448@gmail.com |
7d31a5d1428011375ceb19234129b865848903ae | 06631242a60e7f019e82957fb0ff3edff370999c | /week3/informatics/4.py | c344b1c59915b05ece69feb1cf7a40c5979f2c09 | [] | no_license | Marlenqyzy/PP2 | 3b06f763b4f98ca7de4bc82b406f34661f311621 | 01f5532086088919b546f8fe9dc14011da14db89 | refs/heads/main | 2023-03-20T00:18:30.470386 | 2021-03-19T13:29:33 | 2021-03-19T13:29:33 | 341,570,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | n = input().split()
c = n.count("0")
for i in n:
if i != "0":
print(i, end = " ")
for i in range(c):
print("0", end = " ")
| [
"Amin0k.dreamat9@gmail.com"
] | Amin0k.dreamat9@gmail.com |
7af402d5d22defad77891a4ddafca6fcddd187ec | 52c3f5184eac69c9d338675eecc967e6a643f9ae | /myshop/migrations/0014_auto_20170703_1116.py | 7cc733758389be4d207d6bb2a71e6861298a82ad | [] | no_license | manojbalaji1/En-kart | e9bd319b11fc0c1096363687a1559417a6083b95 | bd959ac2c077e8740c507f70f9074a0cfaa7d356 | refs/heads/master | 2021-05-08T07:12:20.796734 | 2018-12-01T09:49:29 | 2018-12-01T09:49:29 | 106,714,082 | 1 | 3 | null | 2018-10-16T06:45:11 | 2017-10-12T15:52:45 | CSS | UTF-8 | Python | false | false | 490 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-07-03 11:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myshop', '0013_product_product_image'),
]
operations = [
migrations.AlterFiel... | [
"manojbalaji1@gmail.com"
] | manojbalaji1@gmail.com |
952e450b2db601526a77c9aadc75c0a290e03368 | 44eaa1f7d5a19ff6ff98f173e761d208555ec450 | /server/api/models.py | 74edf29ffd192173c890c1851cf79789fca8b456 | [] | no_license | f4nky/ch.bfh.ios.programming | 12ea33aace5326806219410563ecf666a0a08e3a | 1e27ddb5676bf1442a3d4437cde8193ec616a846 | refs/heads/master | 2021-01-21T04:40:39.833977 | 2016-06-24T14:01:29 | 2016-06-24T14:01:29 | 52,392,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | from __future__ import unicode_literals
from django.db import models
from django.db.models.signals import post_save
from . import signals
class Period(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
return self.name
class MemberType(models.Model):
name = models.Char... | [
"fankm9@bfh.ch"
] | fankm9@bfh.ch |
9f76ea5154d90bee50c16a51b366f7f9a97ed00c | 6d3ba1fb659904399457b6adb6154d3bf9eb507d | /src/utils/encoding.py | 93338da1984edd95ad731509302a4cdfb3ba7f5b | [
"MIT"
] | permissive | nuguziii/MI | 2d8720b7a5f1dc12ed6a0db06ff7ef94c204a84b | b35c5c0b3ba25d31be560197a22d78d61e7c5645 | refs/heads/main | 2023-07-08T12:16:10.046336 | 2021-08-06T04:25:57 | 2021-08-06T04:25:57 | 321,569,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | import numpy as np
def one_hot_to_index(arr):
return np.argmax(np.array(arr), axis=1)
def index_to_one_hot(arr, nb_classes):
return np.moveaxis(np.eye(nb_classes)[np.array(arr)], -1, 1)
| [
"nuguziii@naver.com"
] | nuguziii@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.