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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd631383090680e884041d338cb06134d89ae326 | 5608a9cd3bec8cab1c3f9d7f42896107b78593cc | /runway/cfngin/hooks/docker/image/_push.py | 946ecc07d129f4e81c63b48852c59654f673bf46 | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | troyready/runway | cdee6d94f42173c8aa0bd414620b68be36a510aa | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | refs/heads/master | 2021-06-18T16:05:30.712211 | 2021-01-14T01:44:32 | 2021-01-14T01:44:32 | 151,314,626 | 0 | 0 | Apache-2.0 | 2018-10-02T19:55:09 | 2018-10-02T19:55:08 | null | UTF-8 | Python | false | false | 4,739 | py | """Docker image push hook.
Replicates the functionality of the ``docker image push`` CLI command.
.. rubric:: Hook Path
``runway.cfngin.hooks.docker.image.push``
.. rubric:: Args
ecr_repo (Optional[Dict[str, Optional[str]]])
Information describing an ECR repository. This is used to construct the repository URL... | [
"noreply@github.com"
] | troyready.noreply@github.com |
c1e2b4e5e70f92eda953bfdfff89d0c99c733926 | e10e2fea4607fb057e7a3061117f9f8923847c33 | /settings.py | d73c5c55d2f38666c6df3dffff534a8e65b4ab2d | [] | no_license | barbuza/apnstornado | 491c66af236bb5fc49e31b81c9024ac6d1f3ffae | 133699a6fca34dc85b2f1d44dbf3a0f95efdaf26 | refs/heads/master | 2020-12-25T01:06:25.778203 | 2012-03-23T20:06:10 | 2012-03-23T20:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | import tornado.options
import logging
tornado.options.define("environment", default="dev", help="environment")
options = {
'dev' : {
'logging_level' : logging.DEBUG,
'certfile' : 'apns_development.pem',
'apns_host' : ( 'gateway.sandbox.push.apple.com', 2195 ),
'feedback_host' : ( '... | [
"jayridge@gmail.com"
] | jayridge@gmail.com |
ccae0416288591c367619d1a71a4ffeb426c9051 | dd31d59e96d80d6f16ea6ef3f3a464fa4eb58bce | /{{cookiecutter.app_name}}/manage.py | 4060fd52b1f6e631b4d1914759bb7272b0cd2ba1 | [
"BSD-3-Clause"
] | permissive | xen/flask-ptc | e887181ed68da3d1df1ba2ecbc2bbce9561491b4 | 32cf0654c7f6fb5e907314d97e23d923f8bbf06b | refs/heads/master | 2021-05-15T01:38:25.457483 | 2018-06-13T08:37:26 | 2018-06-13T08:37:26 | 34,637,425 | 1 | 7 | BSD-3-Clause | 2018-06-13T08:37:27 | 2015-04-27T00:12:11 | Python | UTF-8 | Python | false | false | 2,103 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import json
from flask.ext.script import Manager
from flask.ext.migrate import MigrateCommand
from {{ cookiecutter.app_name }} import create_app
from {{ cookiecutter.app_name }}.extensions import db
from sqlalchemy.exc import OperationalError
from sqlalchemy.... | [
"m@xen.ru"
] | m@xen.ru |
df5e4860e9dc15d7a39ae92743dc942bc415802c | e6195dde6db1113597d404978a581e6a66f6af45 | /EduRnd100D2/A.py | 5c30429153c1dfde094a8e4d57c9a90d905dac55 | [] | no_license | chasecolford/Codeforces | e6e43dc1721f9e05b7f593a6fd66776ecc4fa8ce | 5995622411861d6e2f1fcdb14f15db3602aa571f | refs/heads/main | 2023-02-03T17:25:31.865386 | 2020-12-23T17:12:49 | 2020-12-23T17:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import itertools as iter
import collections as col
import hashlib as hash
import math
import json
import re
import os
import sys
def main():
lines = [x.strip() for x in sys.stdin.readlines()]
lines = lines[1:]
for line in lines:
line = [int(x) for x in line.split()]
summy = sum(line)
... | [
"56804717+ChaseSinify@users.noreply.github.com"
] | 56804717+ChaseSinify@users.noreply.github.com |
5272d10e4e3f87de963dff588ca12e65a76b0e84 | 972076fc0ef8ce960a85a1df0be393f51fa95d0a | /commands/manipulation/__init__.py | faa8c1e638fcc07bf9e0a482923c52e31a6b8c77 | [] | no_license | miri-sharshevsky/dna_command_line | 6a906174824bc6690b0e98dd8bf0aa884a75b477 | bfd3815e56bc3178c7bd58f7ff77770e5d42c273 | refs/heads/main | 2023-06-06T16:26:32.989683 | 2021-07-13T18:29:23 | 2021-07-13T18:29:23 | 385,698,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from commands.manipulation.manipulation import *
from commands.manipulation.command_replace import *
from commands.manipulation.command_slice import *
| [
"miri.sh883@gmail.com"
] | miri.sh883@gmail.com |
4529b4490207d78cd018df1f8899babddfecebb8 | 7f6141caf56970c97840130b9983598ed75c2ff9 | /python/plotsCodes/LaunchCadenceByLSP.py | a3ea32b1b78b1ddafbb4ac6f9233c9b1cfd93cf5 | [
"Apache-2.0"
] | permissive | Nosudrum/launch-stats | 7350904ffe2e09e61fe79462ca7674e47cc0ef5a | 9934b0447eb9ffe26718c452c1bba0c93525b5b7 | refs/heads/main | 2023-08-30T12:39:27.502636 | 2023-08-27T02:40:32 | 2023-08-27T02:40:32 | 454,174,062 | 14 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | import calendar
from tqdm import tqdm
from Processing import PastT0s, PastLSPs
from plotsCodes.PlotFunctions import (
LSPs_dict,
colors,
monthsLabels,
dark_figure,
finish_figure,
prepare_legend,
datetime,
timezone,
np,
)
# Plot of orbital launch attempts by LSP for the last 8 yea... | [
"arnaud.muller1308@gmail.com"
] | arnaud.muller1308@gmail.com |
5e7911bb5a916c8dc84d2b157fc6fc1f316e3119 | d181ba95d7c5989add382258dcb8a47121066e20 | /alembic/versions/56b218f585f9_machine.py | f20be6695fe05eb448f92548cdc7500b42801976 | [] | no_license | ngocvinhvu/base-api | f764f6b1fea03a8b00c209d0109bf7c061a55444 | 301993e973ae5fd1690524c1da359a5c32072dbc | refs/heads/main | 2023-04-20T00:59:50.988674 | 2021-05-06T02:02:06 | 2021-05-06T02:02:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | """machine
Revision ID: 56b218f585f9
Revises: 4f338dbcc0b3
Create Date: 2021-04-24 11:33:51.087059
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '56b218f585f9'
down_revision = '4f338dbcc0b3'
branch_labels = None
depends_on = None
def upgrade():
# ### com... | [
"ducpx96@gmail.com"
] | ducpx96@gmail.com |
06352d861735bddcbde97997fc74b782b6faa5cf | 9d0fd3f782c7114ab6e5362e21dd7bd9abef755b | /userdemo/config/middleware.py | 2eb53c20aa61064ca6c9b2de50a87cbbbbd5e688 | [] | no_license | dfee/userdemo | fcb67abb92b36691e9eac851b95a20eaf3abfa78 | a04f243549cd72bad1311ff16eedf36e09cb54a7 | refs/heads/master | 2016-09-05T21:35:18.574745 | 2010-11-04T02:54:19 | 2010-11-04T02:54:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | """Pylons middleware initialization"""
from beaker.middleware import SessionMiddleware
from paste.cascade import Cascade
from paste.registry import RegistryManager
from paste.urlparser import StaticURLParser
from paste.deploy.converters import asbool
from pylons.middleware import ErrorHandler, StatusCodeRedirect
from p... | [
"devin.fee@gmail.com"
] | devin.fee@gmail.com |
bf7e5a5d46d8733e22a7858ada1043dbf8979474 | e56214188faae8ebfb36a463e34fc8324935b3c2 | /test/test_compute_server_config_ref.py | 06d779505eab02f1b3867d64f9db950ef7538e5c | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 1,949 | py | # coding: utf-8
"""
Cisco Intersight
Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environmen... | [
"ucs-build@github.com"
] | ucs-build@github.com |
73b2bb132274cba31e3bdf45457c708cd82b8001 | ff146032b867e83336d698f210d779f2ee1d3fde | /autoencoder.py | f0fcf250d5979d6623f9edcb72244a5e4f448f92 | [] | no_license | Kevini05/ML-Internship | e4cb5189254cc0ece0efa8e63199e62f93660b4a | 3a6859e182e7d927b562eff8b94ba01cb7259963 | refs/heads/master | 2023-01-10T11:38:36.033442 | 2020-11-19T10:15:53 | 2020-11-19T10:15:53 | 292,557,272 | 1 | 0 | null | 2020-09-15T11:31:20 | 2020-09-03T12:01:15 | Python | UTF-8 | Python | false | false | 11,812 | py | # Import deep learning library
import sys
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # or any {'0', '1', '2'}
import keras
from keras.layers.core import Dense, Lambda
from keras.layers import LeakyReLU
from keras.layers.normalization import BatchNormalization
import keras.backend as K
import tensorf... | [
"noreply@github.com"
] | Kevini05.noreply@github.com |
487e58d4fff3b8dfbb319f03ed66f41de9d4929f | 58990584cfd03959ffc1699d71df2cc9c43c8201 | /client-server-pyramid/server.py | 9b1cdf54a009f56b6ffe83d06685b4c83beb43b4 | [] | no_license | schatty/misc | 666ca84f177c349797130d869d46b9cb0a6dd66c | e933d0b2c125384dc6e438fbd0bc1d0b44b17cea | refs/heads/master | 2021-07-10T10:26:12.714099 | 2020-07-18T05:28:26 | 2020-07-18T05:28:26 | 177,027,629 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Response
def post_a_request(request):
print("Post a request")
json = {'n': 1}
return Response(json=json)
def post_b_request(request):
print("Post b request")
json = {'n': 2}
ret... | [
"igorkuznetsov14@gmail.com"
] | igorkuznetsov14@gmail.com |
40e466ac3e749b0a8d69c51f57018cd80b9918f9 | 12362aa3c315e2b72ed29193ee24e3fd7f1a57db | /LeetCode/0329-Longest Increasing Path in a Matrix/main.py | 57544dc82de4a956de4547a7fa5b61540c75074e | [] | no_license | PRKKILLER/Algorithm_Practice | f2f4662352516965777605ccf116dd7945c4b94a | 73654b6567fdb282af84a868608929be234075c5 | refs/heads/master | 2023-07-03T23:24:15.081892 | 2021-08-09T03:55:12 | 2021-08-09T03:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | """
Given an integer matrix, find the length of the longest increasing path.
From each cell, you can either move to four directions: left, right, up or down.
You may NOT move diagonally or move outside of the boundary (i.e. wrap-around is not allowed).
Example 1:
Input: nums =
[
[9,9,4],
[6,6,8],
[2,1,1]
]... | [
"dw6000@163.com"
] | dw6000@163.com |
0d2e16f6e3030a8069f7a19f570add75127425f0 | f812d0ee4c9b41ba2e0d001b5b02b5a9f18f06aa | /CodeLibrary/migrations/0004_referencebook_article_updated_by.py | 3b41e47c46d966bf8d5e6d97a68cc9f6f6a0c13a | [] | no_license | kottilukkalarun/CodeGenLib | aa353f7e99bb8285493af974d7186449253601a2 | a219d8f35ec585256fef714517d85dc96ea4084b | refs/heads/master | 2022-07-10T18:32:03.778459 | 2020-05-17T08:24:45 | 2020-05-17T08:24:45 | 264,615,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # Generated by Django 3.0.6 on 2020-05-15 18:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('CodeLibrary', '0003_auto_20200515_2339'),
]
operations = [
migrations.AddField(
model_name='referencebook',
name='ar... | [
"arunkesavan.kottilukkal@intelenetglobal.com"
] | arunkesavan.kottilukkal@intelenetglobal.com |
56b8557c78182aff00953d4558e53ae830453b7e | a4da8205c94986699c79f56f527a1d1cfe43b47b | /CAMCW2/Q5b.py | ba9e1f2cbfad09ce5d56c78b256961752c4cacca | [
"MIT"
] | permissive | IsaacOldwood/PythonPortfolio | ecef894e4d299e600303ded1e556541d7381bae9 | 1a781331c27cad8c007a480a1edd65e1ac58c5f1 | refs/heads/master | 2023-07-10T11:41:06.569889 | 2021-08-27T20:22:38 | 2021-08-27T20:22:38 | 262,792,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | #All credit to Catherine F. Higham Desmond J. Higham in Deep Learning: An Introduction for Applied Mathematicians
import numpy as np
import matplotlib.pyplot as plt
import random
#Activation function
def activate(x,W,b):
return 1/(1+np.exp((-1)*(W@x+b)))
#Uses backpropogation to train a network. This code is a... | [
"isaac.oldwood@gmail.com"
] | isaac.oldwood@gmail.com |
5efdcb3014711ca88ac71738a02d79f27e0f0f8a | 4cd84151bb3bec1dd4160e6b6220ec1a84dcc5ba | /classes.py | 89b6e4115d94e67e75fad8d0dc2364a9d71e3dba | [] | no_license | conroy-group/yfsps | b0246044b5ad47fa6635f201c460b535bce241b2 | bee3a2f5cd0c554f7eed8e1240152cea27f03ee1 | refs/heads/master | 2020-04-11T13:59:19.166167 | 2018-12-14T20:49:38 | 2018-12-14T20:49:38 | 161,837,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,310 | py |
class SSPGen(object):
def __init__(self):
pass
class CSPGen(object):
def __init__(self, wave, ssp_fluxes, ssp_grid):
self.ssp_ages, self.ssp_feh, self.ssp_afe = ssp_grid
self.wave = wave
self.eline_wavelength = None
self.ssp_fluxes = ssp_fluxes # Nssp x Nwave
... | [
"benjamin.duncan.johnson@gmail.com"
] | benjamin.duncan.johnson@gmail.com |
b808d6a898bf57319977f7481a13e14f20b16780 | d193a2472c232306149d69c04ebfaba910c31077 | /PythonZTM/oop_cs_employee_variables.py | a29d6e9a7fb16dab709b33add178b5a6d0158a13 | [] | no_license | eloghin/Python-courses | d244a3f3bfcaef9d924dc1049ffd94de2d30e01e | 3f2ad34136623c2abce01e4a88b09b8869d26163 | refs/heads/main | 2023-03-28T14:28:34.869866 | 2021-03-29T06:42:18 | 2021-03-29T06:42:18 | 310,083,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | # class setup with __init__
class Employee:
# class variables/attributes:
raise_amount = 1.04
num_of_employees = 0
def __init__(self, first_name, last_name, pay):
# instance variables/attributes:
self.first_name = first_name
self.last_name = last_name
self.pay = pay
self.email = first_name + '.' + last_n... | [
"contact@elenaloghin.ro"
] | contact@elenaloghin.ro |
a6a4fbf95d91161c5153992eed82531c7c377df9 | ed9278ce7ba6e05166b7d65f995e1f0b2720b2d6 | /DEPS | e35641d8677c8be6c396a9d9d39dbf9732c93146 | [] | no_license | dwks/crystallizer | 10858a923e6768ccf36eb23b601aa4714f5cd4fd | 4a962c63bc55a952e3fbe1dfe2d8ce18f8cf154f | refs/heads/master | 2021-03-12T21:49:22.114468 | 2011-07-17T23:13:47 | 2011-07-17T23:13:47 | 2,062,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | Dependencies:
- Boost.Asio [headers only]
| [
"dwks42@gmail.com"
] | dwks42@gmail.com | |
0883b0824b527f1e7460ee29a4751499ef824c84 | 609c4a8304225b5e1aee78c957ed4e98f3147a99 | /examples/pillow.py | 7966036dae7232356f23be03c34ad685cb7eb096 | [
"MIT"
] | permissive | captcha-api/keptcha-py | 07e2ceaec967be2b92f29a5b0dced5f1f72c76d9 | fcd64db98417eb66425cdd8526a6398a9ae9b634 | refs/heads/master | 2023-06-23T18:37:10.866472 | 2021-07-14T10:11:25 | 2021-07-14T10:11:25 | 385,735,706 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from keptcha import Captcha
from PIL import Image
from io import BytesIO
captcha = Captcha.new(height=250, width=500, circles=150, length=10)
captcha.decode()
img = Image.open(BytesIO(captcha.captcha_decoded))
img.show()
| [
"smahkam57@gmail.com"
] | smahkam57@gmail.com |
52403d92ecaa7c1c162d2ddc03f5222753769846 | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/appstore/__init__.py | ae0e3b8b88ece0f7fd57ef6c59aa1396b7618360 | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 27 | py | __author__ = 'spencertank'
| [
"npellegrino@dimagi.com"
] | npellegrino@dimagi.com |
4ee3d70e988a9553f012711d0000087510aa04c5 | ef99def9532f5ebe35d168d483860ea55fc84db8 | /leapor.py | fcd600ba97091ab1d8452e97bb7d8ac8eef8ceb6 | [] | no_license | Gayathri200/gaya07 | 3bd77ab733d87e07119670d1724b46579264c861 | 1f9bf063b47e7ea2c6d3e223076de691f6b1fc26 | refs/heads/master | 2020-06-24T18:49:53.965227 | 2019-08-22T12:32:13 | 2019-08-22T12:32:13 | 199,051,750 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | q=int(input())
if(q%4==0):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | Gayathri200.noreply@github.com |
dd62a04d0cb1f3fbeb79bb6fb9306ea139f79db0 | 7df39c6f1bc6c21db2b3bdfe6262af1f5f4ba5b7 | /flaskblog/users/routes.py | b1660af55ac67d9e3c879b8ae15f49d2faaff06f | [] | no_license | jalajrastogi4/flask_blog_application | 6a933cebb2e03b8e34b873f199f05825d46d00c0 | 21eef16f4718e4a8d0354ac88aa3fc78b30ff0d9 | refs/heads/master | 2020-09-22T12:34:53.342567 | 2019-12-03T03:32:21 | 2019-12-03T03:32:21 | 225,196,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,830 | py | from flask import render_template, url_for, flash, redirect, request, Blueprint
from flask_login import login_user, current_user, logout_user, login_required
from flaskblog import db, bcrypt
from flaskblog.models import User, Post
from flaskblog.users.forms import (RegistrationForm, LoginForm, UpdateAccountForm,
... | [
"jalajrastogi4@gmail.com"
] | jalajrastogi4@gmail.com |
bbc45ec7a148319470784f7f0b57cb0df56a3b49 | 1ffc17893d9e15fd939628bbc41c3d2633713ebd | /docs/tests/test_utils_benchmark.py | dbfa979ef34b9756e7e72364f14161d8b0e593a5 | [
"Apache-2.0"
] | permissive | xadupre/sklearn-onnx | 646e8a158cdded725064964494f0f8a760630aa8 | b05e4864cedbf4f2a9e6c003781d1db8b53264ac | refs/heads/master | 2023-09-01T15:58:38.112315 | 2022-12-21T01:59:45 | 2022-12-21T01:59:45 | 382,323,831 | 0 | 2 | Apache-2.0 | 2023-01-04T13:41:33 | 2021-07-02T11:22:00 | Python | UTF-8 | Python | false | false | 774 | py | # SPDX-License-Identifier: Apache-2.0
"""
@brief test log(time=3s)
"""
import unittest
import numpy
from skl2onnx.tutorial import measure_time
class TestMeasureTime(unittest.TestCase):
def test_vector_count(self):
def fct():
X = numpy.ones((1000, 5))
return X
res = ... | [
"noreply@github.com"
] | xadupre.noreply@github.com |
ba6a7f7c2c1fdd56f9a2ffa2ebc289ccad885ad1 | 3d045303abcde82889929fbb15def13859226d52 | /Interview_algo/Python/SwordOffer/two_dimension_array_search.py | 7bbda8a0bdea8c61740c47f5fd6e6802b953e08b | [] | no_license | Milittle/Interview_algo | 3e3d10cd4ff238d413e21da93c12d35d92c53c98 | 39ed51e42eaf5bb3627d5036d97b299ce6ee7fd5 | refs/heads/master | 2020-04-27T00:52:26.213089 | 2019-05-10T07:07:49 | 2019-05-10T07:07:49 | 173,947,753 | 1 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 302 | py | # -*- coding:utf-8 -*-
class Solution:
# array ¶þάÁбí
def Find(self, target, array):
for i in range(len(array)):
for j in range(len(array[i])):
if target == array[i][j]:
return True
return False
# write code here | [
"mizeshuang@gmail.com"
] | mizeshuang@gmail.com |
7cd0df45ad5a2e8ca91797a9ee8111683a053a17 | cc8734b3fe1c0378f99a2639158a1bbce6d11c23 | /blog/migrations/0001_initial.py | 1ef4d26ef35fda8ad84362a1854dc6296e780d72 | [] | no_license | ronnycss/my-first-blog | 6d486117e59cf49699f7372550e80a6aa1d80863 | ac2457d7818a6bf58e92068a512ceecc08ae73fb | refs/heads/master | 2020-09-25T00:45:51.531456 | 2019-12-06T15:17:09 | 2019-12-06T15:17:09 | 225,882,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.2.8 on 2019-12-04 12:59
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"ronnycss@gmail.com"
] | ronnycss@gmail.com |
854f3dc7e716cc8464d09d0f471f1d1a05289f51 | d15916d78067640554ced079d228c86b69e9c954 | /Image Captioning/code/coco_dataset.py | c2e7f6e6388368924309e60bd560e8f435cba0e6 | [] | no_license | JerryYC/Intro-to-Deep-Learning-Projects | 95007e7ca3fc87aae4cb3a288b04d88529f40e0e | 9b0bef0d8349e6e7f9301a9971f890da05d3e46d | refs/heads/master | 2023-08-30T16:12:22.997803 | 2021-11-04T08:42:16 | 2021-11-04T08:42:16 | 424,520,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,247 | py | ################################################################################
# CSE 253: Programming Assignment 4
# Code snippet by Ajit Kumar, Savyasachi
# Fall 2020
# Finely implemented and refined by Colin Wang, Jerry Chan
################################################################################
import to... | [
"900116jerry@gmail.com"
] | 900116jerry@gmail.com |
59baa4ccac65a7f5c8488ac68d26ade52d54bb2e | a0b855fb1b34ea4351828c0a3d73db5f8dbc194d | /pycode/PyTorch/Practice/readmnist.py | 06509ae9fa16a93e918c558057928a23ac0cbf84 | [] | no_license | I-am-Fine-1994/DeepLearningCode | d2f3811645d22e609da349e21f9f179106197569 | aa08dfb02b879d4549ffe2a47b2552bd26f8d54d | refs/heads/master | 2021-09-06T18:27:38.028727 | 2018-02-09T17:39:12 | 2018-02-09T17:39:12 | 119,629,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | import struct
def load_train_image():
print("loading training image set")
filename = "../mnist/train-images-idx3-ubyte"
mnist_file = open(filename, 'rb')
buffers = mnist_file.read()
head = struct.unpack_from('>IIII', buffers, 0);
offset = struct.calcsize('>IIII')
img_num = head[1]
img_height = head[2]
img_w... | [
"32637516+I-am-Fine-1994@users.noreply.github.com"
] | 32637516+I-am-Fine-1994@users.noreply.github.com |
2efe04ee76ebd819253e8b50b20680a8bff8cd84 | a10b92034d6486f9c54f163bf6837ef4587763df | /scripts/export_test_splits.py | 401a881843f99c068520724f49ade5a533aeee06 | [
"MIT"
] | permissive | eghbalhosseini/lm_perplexity | a05732c63bbd35d92bc6302123b6d3bd255d541f | 24c5a04beb2f073b2230c7c7420bd1ec7776f513 | refs/heads/main | 2023-03-19T14:43:43.748853 | 2021-03-05T23:48:37 | 2021-03-05T23:48:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | import argparse
from collections import Counter
from tqdm import auto as tqdm_lib
import requests
import os
import json
import gzip
from best_download import download_file
from lm_dataformat import Reader, Archive
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument('--output_dir', requir... | [
"email@jasonphang.com"
] | email@jasonphang.com |
6391dbd8c4ab32148400220889975652d6ea970d | 625c7fa3222232443e91300d62b62d25fcfe491a | /main/model/word.py | f35ed0030a15f87284f584a8fa5d0de4dffef793 | [
"MIT"
] | permissive | sotheara-leang/xFlask | 0a8d28fa2cdab393d71c5ff18a84331c0fb12ddc | b6899d4b6d1bdc4acfd812bfa8807e2cba7e8df0 | refs/heads/master | 2021-01-02T06:37:21.752339 | 2020-06-20T02:45:34 | 2020-06-20T02:45:34 | 239,531,603 | 2 | 0 | MIT | 2020-06-20T02:46:30 | 2020-02-10T14:29:16 | Python | UTF-8 | Python | false | false | 332 | py | from xflask.sqlalchemy import Column, relationship
from xflask.sqlalchemy import Integer, String
from xflask.sqlalchemy.model import Model
class Word(Model):
id = Column(Integer, primary_key=True)
word = Column(String(50))
docs = relationship('Document', secondary='document_word',... | [
"leangsotheara@gmail.com"
] | leangsotheara@gmail.com |
288d4df6079ba249c72a88ea07dd8841fbb3990f | 6a6e63674ab48b7208f56d79d536276b510d04ab | /backups/venv/lib/python3.6/site-packages/octaviaclient/tests/unit/api/test_octavia.py | 632dc5242ca462da75bcc5b3118015bb9d7d07ae | [] | no_license | Roynuka/virtIN720 | 4eccc85274348c69538c9dd7c1c1963a27c970f9 | 2b4eaa04e8f13ea6c34e9af8702d15e4e3dcbfe5 | refs/heads/main | 2023-01-04T07:10:50.479926 | 2020-11-07T05:03:41 | 2020-11-07T05:03:41 | 310,767,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,764 | 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
# distrib... | [
"NUKAR1@student.op.ac.nz"
] | NUKAR1@student.op.ac.nz |
383579a1a998e718b8ec4fcb34eba1949b834581 | a3a6eeb340735664c863952bf3c1e3070e61d987 | /_py2tmp/optimize_ir3.py | 1b6e1328465ef2cdec681edf63b338e65bdf8ab8 | [
"Apache-2.0"
] | permissive | DalavanCloud/tmppy | dab593789d6e1ae6a3b25db6c4b41ce4fcfb378c | cdde676ba9d5011b7d2a46a9852e5986b90edbbc | refs/heads/master | 2020-03-27T19:55:42.295263 | 2018-09-01T18:13:21 | 2018-09-01T18:13:21 | 147,021,787 | 1 | 0 | Apache-2.0 | 2018-09-01T18:14:23 | 2018-09-01T18:14:23 | null | UTF-8 | Python | false | false | 5,556 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"poletti.marco@gmail.com"
] | poletti.marco@gmail.com |
13aebded958140472cc06d70e64dbdef221141c5 | ee2547fb19d8307f770250417c2e3b06c1b20057 | /new_client3.py | abc5fd8544bfabd1d42d1bd93ec2ce34a095f91f | [] | no_license | rosh11/JP-morgan-Chase-Stock | 54c4187401bf5bd0f9d0aa8a481e092b092c8158 | b97a88bc9b461ab2400921271e0a6099e0c7c764 | refs/heads/master | 2022-06-16T23:48:35.548664 | 2020-05-05T19:12:38 | 2020-05-05T19:12:38 | 261,561,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py |
import urllib.request
import time
import json
import random
# Server API URLs
QUERY = "http://localhost:8080/query?id={}"
# 500 server request
N = 500
def getDataPoint(quote):
stock = quote['stock']
bid_price = float(quote['top_bid']['price'])
ask_price = float(quote['top_ask']['price'])
price = (bid_price + as... | [
"roshanrajbe@gmail.com"
] | roshanrajbe@gmail.com |
cd16af1b63d57fd896b42948d92a0bff70396206 | 94bf7b3d09947fa7375acecd59e4b062e6381c09 | /parsifal/reviews/models.py | f8cf789530ca2f6518df3be2f8514f13b6c3b081 | [] | no_license | epkanol/parsifal | 5302c0eadad04f5bbcd2ff61bdb7c6718f7982c2 | 9ff8308b7a3827cdbfec5910de8a52a9ff0a0dc3 | refs/heads/master | 2020-04-09T12:27:50.251269 | 2015-11-19T16:53:24 | 2015-11-19T16:53:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,150 | py | # coding: utf-8
import datetime
from django.utils import timezone
from django.utils.html import escape
from django.db import models
from django.db.models import Sum
from django.contrib.auth.models import User
from django.template.defaultfilters import slugify
from parsifal.library.models import Document
class Sour... | [
"vitorfs@gmail.com"
] | vitorfs@gmail.com |
e9032bd1955d21dc80f25921ddc1b2f27cdd6018 | 29e85f9b1cce5252742753b05d8731131365312c | /giveaway/migrations/0002_donation_phone.py | ea491eb8ca85df29b728d067dd6a12fc33ad47eb | [] | no_license | borkowskibartosz/giveaway-app | 0c5a0d20b6be06d7f86305d6952f219cd74da01a | 27ba9d39d8fb542f386da36c317acf779883e086 | refs/heads/master | 2023-01-08T06:35:54.755001 | 2020-10-29T13:48:07 | 2020-10-29T13:48:07 | 298,546,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # Generated by Django 3.1.1 on 2020-10-02 12:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('giveaway', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='donation',
name='phone',
f... | [
"borkowski.bartosz@gmail.com"
] | borkowski.bartosz@gmail.com |
6adb6638844dc28708e2d1ac57356e824fd3dabd | 52c36a3d830fe862f734709adc9acdae68ec2378 | /exercise1_1.py | fd4eb7b04573b1423988999e46399e5735c8128b | [] | no_license | HaneWall/numerical_physics | 942aa1565d7127cda25c9c9ddea45e8cfcdeff0d | 4f938e10281451562250c5601c125007b44499bd | refs/heads/main | 2023-04-19T17:32:52.546269 | 2021-05-11T07:58:30 | 2021-05-11T07:58:30 | 357,342,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | import numpy as np
import matplotlib.pyplot as plt
# data given by exercise
x_min = 0.
x_max = 2.
x_true = np.pi/4.
tol = np.finfo(float).eps # smallest absolute float number
def test_function(x):
res = 1/np.sqrt(2) - np.cos(x)
return res
def test_derivative(x):
res = np.sin(x)
return re... | [
"noreply@github.com"
] | HaneWall.noreply@github.com |
a26dda6b8a08d16a2a2e072921f7fa1795462660 | c83fce2e2eb2ca7b821b443e71bee42ee45e3b7a | /classification.py | a84ef3de3ba7ad74cd4690bf703e6b995794d10d | [] | no_license | cympfh/gpytorch-tutorial | c87969ae104cb8c1f162a93de193e877280162f3 | 5c2d741f5238bdf11004f5eda2aa8fd3e2b57210 | refs/heads/master | 2020-09-30T14:19:10.498571 | 2019-12-11T07:41:39 | 2019-12-11T07:41:39 | 227,305,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | """
Classification with GP
https://gpytorch.readthedocs.io/en/latest/examples/02_Simple_GP_Classification/Simple_GP_Classification.html
This works with the latest version.
And the learning is unstable (it may be success if the loss get less than 0.2).
"""
import math
import torch
import gpytorch
import visdom
vis = v... | [
"cympfh@gmail.com"
] | cympfh@gmail.com |
f81bb2e416df214a43332980c316ef87d27d29bc | 14c6e73296657ba2bc4c088aed3b1a84637200b7 | /11 May 2020 PR Rifqi Muammar Rianputra.py | 7b01f7adbfbfc92f329f27f1c22a5dcce4dd1948 | [] | no_license | rifqirianputra/DSMLCourse-Module-1 | 674f52e277d156166c2c3a16e4f64c9c5297137c | 3f8960c10c7f4ea0e7b27efe31bc89ecbcfb646a | refs/heads/master | 2022-09-13T14:10:45.778024 | 2020-06-03T08:43:19 | 2020-06-03T08:43:19 | 268,992,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | # A = himpunan bilangan genap dari 1 - 20
# B = himpunan bilangan ganjil dari 1 - 20
# C = himpunan bilangan negatif lebih dari -20
# D = himpunan bilangan prima dari 1 - 20
# E = himpunan bilangan komposit 1 -20
import math
x = set(range(1,21))
a = set(range(2,21,2))
b = set(range(1,21,2))
c = set(range(-20,0))
# d =... | [
"connectwithrifqi@gmail.com"
] | connectwithrifqi@gmail.com |
f98346a9bf8bda678e0cbe846b50fb44d613b3a1 | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190119210020.py | b40656585cb8c5777a070050814bed7b54279237 | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,460 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__bindin... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
c2f39d47998e25b1b33a5544e430c1d517b13df9 | 03783f94051b90854e12c4b44109ce662bac52dc | /model/layers_4.py | d02988658fe32650c8c20b549d157cddf2902c72 | [] | no_license | huukim136/voice_conversion | 8bd77dc29b04abaff740e73cc56fce647c31aeff | d63200beb34b839a66609366a25959c56334ea7f | refs/heads/master | 2022-08-29T00:30:22.695585 | 2020-04-21T08:24:41 | 2020-04-21T08:24:41 | 256,962,733 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,405 | py | import torch
from torch.autograd import Variable
from torch import nn
from torch.nn import functional as F
from .basic_layers import sort_batch, ConvNorm, LinearNorm, Attention, tile
from .utils import get_mask_from_lengths, to_gpu
from .beam import Beam, GNMTGlobalScorer
import pdb
class SpeakerClassifier(nn.... | [
"huukim136@gmail.com"
] | huukim136@gmail.com |
24185aaff4d8922350b8b8c20f96cf7eade2e680 | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/network/onyx/onyx.py | d537e048b9865db661965f5e99f57ce572658931 | [
"MIT",
"GPL-3.0-only",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 7,437 | py | # -*- coding: utf-8 -*-
#
# (c) 2017, Ansible by Red Hat, inc
#
# This file is part of Ansible by Red Hat
#
# Ansible 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 y... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
1c83aada1c782212a807ce657c47363837d82663 | 3a6b82016ad10550d3f4ad8f2475c8ce6256430b | /scheduler/task_container.py | eadd8987d8a7c138626a9a51e4bba58b501c5e72 | [] | no_license | lxn5321/xspider | e2f40d4025ee9fd6e202fcb39e3e692653e6996e | a39bdad4a72d9e0debec684af261ee270fb3abd2 | refs/heads/master | 2021-10-09T13:08:48.818015 | 2018-12-28T15:53:21 | 2018-12-28T15:53:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,173 | py | # -*- coding: utf-8 -*-
import time
import math
import re
from proto.xspider_pb2 import *
import logging
logger = logging.getLogger(__name__)
class TaskSummary(object):
"""A tasksummary is corresponding to a document is Summary Collection"""
def __init__(self, taskid, basic_task=None, summary=None):
... | [
"hqiuzhen@gmail.com"
] | hqiuzhen@gmail.com |
38fba0b1c22a2bc23bbabf3ed7f26b144ecdd661 | 08aba912f1d42bab3c1c2e300af84daa8e54a874 | /ABC156/c.py | 26b188b85199220b1c8fc82baa4c6fadd58785dd | [] | no_license | ishida722/atcoder-study | 8266505de20c75deeff8eaa5924d7832a9c92167 | 147a8d1897eec2f8b5587faeff75dbee9172bc11 | refs/heads/master | 2023-06-20T06:59:24.248055 | 2021-07-08T21:56:54 | 2021-07-08T21:56:54 | 278,298,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | n = int(input())
X = list(map(int, input().split()))
ans = 10000000000000000000000
for i in range(1, 101):
cost = 0
for x in X:
cost += (i - x) ** 2
if cost < ans:
ans = cost
print(ans)
| [
"tadashi.ishida.722@gmail.com"
] | tadashi.ishida.722@gmail.com |
1292b0b17f440943350f50eca0dffca8b67db5b1 | 35fdd9b051309210b80c188990e13438ee41d169 | /Chapter3/problem13.py | 4b2beadc44ef3f3d599aae3b8ab7a817ad9893f2 | [] | no_license | DanAnastasyev/Bioinformatics | 176fab90c8a3d97d4eee24319849a31b868325a1 | 76e022e28ea093e79a111b4e655826ef689a3530 | refs/heads/master | 2021-01-21T14:16:43.526852 | 2017-06-23T22:35:25 | 2017-06-23T22:35:25 | 95,260,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | with open('input.txt', encoding='utf8') as f:
k, d = [int(x) for x in f.readline().strip().split()]
graph = {}
from_nodes = set()
to_nodes = set()
for kmer_pair in f:
kmer1, kmer2 = kmer_pair.strip().split('|')
node_from, node_to = kmer1[:-1] + kmer2[:-1], kmer1[1:] + kmer2[1:]
... | [
"dan.anastasyev@gmail.com"
] | dan.anastasyev@gmail.com |
8d0b223e39395b67573bffd2e82aa6dd7b53dca8 | 5ea230f1fe014dea806380b13eefb1f9877e39ac | /Day 83/DepthofBST.py | d6ffd5865fcbd189a78036c0980030915fc4c44c | [] | no_license | RajParab/100DaysOfAlgo | 8c88f437134acab2a47df1dfeb74605bed8f767c | 7ec65860abe0acaa35950cc30a738f08c8e4f1ee | refs/heads/master | 2023-02-04T10:21:31.478073 | 2020-12-22T17:38:36 | 2020-12-22T17:38:36 | 291,676,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #Questions - https://leetcode.com/explore/challenge/card/december-leetcoding-challenge/569/week-1-december-1st-december-7th/3551/
class Solution:
def maxDepth(self, root: TreeNode) -> int:
self.ans=[]
def helper(root,count):
if root is None:
self.ans.append(coun... | [
"raj.parab99@yahoo.com"
] | raj.parab99@yahoo.com |
57dd24a5dcd9a1553f89b2ebb9b6dc79f80a1970 | 2db10d83e7e88986b5a5e3d1c541664ca34ec873 | /PhojectPhoneBook2/asgi.py | 90fd8272161742e2187b863d2e94722ba5f60402 | [] | no_license | agel122/PhoneRecords | f397d79f2fa11471116f622a761035741cdeb0c6 | 991779e6ed5238189b435b516b12e2f4e98e4265 | refs/heads/master | 2023-05-17T09:37:26.887406 | 2021-06-05T15:49:33 | 2021-06-05T15:49:33 | 374,155,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for PhojectPhoneBook2 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"agel122@yandex.ru"
] | agel122@yandex.ru |
537c290540a1393c40bf87b42de6c6a0aab8d1f0 | 6ace96c33189d46974cb162cb724c81c4b07ad57 | /后端接口/viusts/App/urls.py | a5a6b7709bb986dac5bde0dfbefb0a59c701efa1 | [] | no_license | Best755/MyCharts | 28bcc7e9b1dd1fef19cf674a397fc48147867c63 | b76c61aa25577eb5911585beec624d6018137310 | refs/heads/master | 2022-10-21T19:09:14.697900 | 2020-06-16T09:09:37 | 2020-06-16T09:24:08 | 272,660,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from django.conf import settings
from django.urls import path, re_path
from django.views.static import serve
from App import views
app_name = "User"
urlpatterns = [
path('app_area/', views.app_area, name="app_area"),
path('app_stockdata/',views.app_stockdata,name='app_stockdata'),
path('app_statistical_da... | [
"1127828659@qq.com"
] | 1127828659@qq.com |
42d8bc15b6f5efa191019cc1de216ded58fe428b | 893f5d208f0a748c62d8622a4b0bb361479171c5 | /tests/test_result.py | 357455acdc2f03075cef1b1660d01454d1615884 | [
"MIT"
] | permissive | mahmoudimus/option | 2aa678930b4500ed081ed7262b2e1c8773d36dd2 | d9220b2c9f8407220133b8dd01b40a80739adf98 | refs/heads/master | 2023-03-01T14:06:52.103942 | 2021-02-13T20:18:55 | 2021-02-13T20:18:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,076 | py | # MIT License
# Copyright (c) 2018-2021 Peijun Ma
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge,... | [
"peijun.ma@protonmail.com"
] | peijun.ma@protonmail.com |
ec3d36114446f1268111619b1974ede1f81d89b9 | ff1e1d561205066cc4dd49d25c433dca08120ad6 | /checks/unlimited_resting_contract.py | 1e94b936e253d19d8ec54eb11e855fdf4f8657af | [] | no_license | berlincount/cteward-sa-meckerfritze | 2f5a52e65597d32c9cfb0e11b8deffd411801a23 | 62736f717a0f7726527488e8b53f05c48e5f7c26 | refs/heads/master | 2020-05-18T17:14:23.105259 | 2015-10-04T22:38:06 | 2015-10-04T22:38:06 | 28,538,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | #$#
# ** Unbefristet ruhender Memberstatus
| [
"count@flatline.de"
] | count@flatline.de |
ea375182f311ca35c536c85c5a190c1cdc8d77dd | 366bd24f64da56d130450d0d0d1b8fd6468ccd38 | /new_parent/new_parent/urls.py | 779f92e5342911e1c09579092d38ad50c86fa45e | [] | no_license | jimturbo24/Final-project | a7920b85c073347458ec15b1e4a9a20a9402529b | a2054997d7e61a860b2615ba2793c873319fdcba | refs/heads/master | 2021-01-20T22:05:11.405047 | 2016-06-30T20:55:01 | 2016-06-30T20:55:01 | 60,581,756 | 0 | 1 | null | 2016-06-30T18:26:58 | 2016-06-07T04:18:45 | Python | UTF-8 | Python | false | false | 1,350 | py | """new_parent URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/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-... | [
"jim.trbovich@gmail.com"
] | jim.trbovich@gmail.com |
11b84a96b1e989f59c01cb1e50ed26fc75a1c892 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_106/ch31_2020_07_24_03_09_48_007984.py | fb32201e90e5bcb5dc7c5110dabfc9441b413c77 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | def eh_primo(n):
if n < 2:
return False
elif n==2:
return True
elif n%2==0:
return False
else:
i=3
while i<n:
if n%i==0:
return False
i+=2
return True | [
"you@example.com"
] | you@example.com |
f2b9fcd3e8899f16665c4b2496f13225eb5eb755 | 00e25b8aa2e4ddd33cfd912f68625cab59588184 | /serial-printer-demo3.py | c042d58876ba5005967cb3195d717f741db0c911 | [] | no_license | jesenator/Violin-analysis-system | 578fba2de31cde9890ae28bf7616ad575f11f2d6 | 19239e98dbb9e615aea5c9e369ce7e89d12c7d43 | refs/heads/main | 2023-07-18T09:18:47.980137 | 2021-08-31T17:22:59 | 2021-08-31T17:22:59 | 390,883,362 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,546 | py | #!/usr/bin/python
# make work with wav files
# increase baud
import sys
import time
import serial
import base64
import os
import wave
def encode(line):
temp = base64.b64encode(bytes(str(line), encoding))
temp = temp.decode("Ascii") + "\n"
encoded = bytes(temp, encoding)
return encoded
def upload(file... | [
"noreply@github.com"
] | jesenator.noreply@github.com |
a2f55159eabe63e273d9da343f3f1ca3f8a9ea6c | d31408b38e3cc401587f8445a058b0c0fa185caf | /CeilBattler-win32-x64/resources/app/Connectors/Sample/sample_player.py | 77ab5ed8d96a2305a045c1862ca5bf7082f84eea | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0"
] | permissive | Jatana/CeilBattler-win32-x64 | a983f9c2194ecb5b9c28696f95878149135349fe | 47cb6c1a6480c03a45b00f8ac64c2a853742d612 | refs/heads/master | 2021-01-25T07:54:57.323004 | 2017-06-24T18:09:34 | 2017-06-24T18:09:34 | 93,684,773 | 1 | 0 | null | 2017-06-14T13:17:18 | 2017-06-07T22:24:18 | HTML | UTF-8 | Python | false | false | 532 | py | import sys
def fprint(*args):
print(*args)
sys.stdout.flush()
fprint('python')
each, width, height, colors = input().split()
width = int(width)
height = int(height)
colors = int(colors)
table = [[None] * height for i in range(width)]
while True:
cmd = input().strip()
if cmd == 'exit': exit()
... | [
"alex.v.shekhovtsov@gmail.com"
] | alex.v.shekhovtsov@gmail.com |
ba028abb1cb891764527347b72fa3f4b9cbcb13d | 495a67b88f6a6f73dcdc3f40699e47ac1e4bfef1 | /bianyi/cifa.py | f2dc61402a35b9e07b2d92549626081d90aed939 | [] | no_license | yyl2016000/somePy | 7712e5ddfd95798daab2b964d6460a6630fca46f | c2913d31a3c822795278e63582643a5ed86b4dff | refs/heads/master | 2020-04-14T11:33:36.311647 | 2019-06-18T09:52:20 | 2019-06-18T09:52:20 | 163,817,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,977 | py | class DFA:
file_obj = '' # 文件
line_number = 0 # 行号
state = 0 # 状态
ResWord = ['int', 'if', 'then', 'else', 'end', 'while', 'do', 'begin', 'read', 'write', 'for']
error_message = [] # 保存错误信息,存储元组,元组第一个参数是行号,第二个参数是错误字符
annotate_message = [] # 注释信息,存储元组,元组第一个参数是行号,第二个参数是注释
char_message = [... | [
"yyl2016000@outlook.com"
] | yyl2016000@outlook.com |
9df2e8c317df10439fcd814efb334a15c62833b7 | 164a500894ec7173d46aae1d63db44f0b015007a | /build/turtlebot_interactions/turtlebot_dashboard/catkin_generated/pkg.installspace.context.pc.py | a41605847222466c55f99c431f3890080ae0bb0b | [] | no_license | ddlyRabbit/udacity_robotics_project5 | 592b67dd1bc126d778e23b17069244fbfc2018e2 | 339da0dd624f5a28c4c294aa305507b6bd41afc7 | refs/heads/master | 2022-04-23T00:01:28.801905 | 2020-04-24T04:52:05 | 2020-04-24T04:52:05 | 258,086,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot_dashboard"
PROJECT_SPACE_DI... | [
"akabhinav32@gmail.com"
] | akabhinav32@gmail.com |
7e3ac0d50e30a3331716b2f5f8a2dcee85379e27 | c3cc89227b5a98825ab9777eff21a677c1356a33 | /myvenv/bin/pilprint.py | a12e8ea096e81065a800215185f5bfab59b2b4c1 | [] | no_license | michelejolie/djangogirls | 44235cbb926a0997719bf96ed2493cbdb7e59e2c | 7c75714add3d97c8cedf878b6ea45094a4444751 | refs/heads/master | 2021-08-07T07:32:10.434237 | 2017-11-07T20:26:57 | 2017-11-07T20:26:57 | 109,886,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,631 | py | #!/Users/michelejolie/djangogirls/myvenv/bin/python3
#
# The Python Imaging Library.
# $Id$
#
# print image files to postscript printer
#
# History:
# 0.1 1996-04-20 fl Created
# 0.2 1996-10-04 fl Use draft mode when converting.
# 0.3 2003-05-06 fl Fixed a typo or two.
#
from __future__ import print_functi... | [
"Michele.Jolie@outlook.com"
] | Michele.Jolie@outlook.com |
e43008a6abcd788ab4350891bce40fc3299a0e55 | da289be5c4d841ac33fcc7f6e0041edaf7ad27ec | /nlp_sentiment.py | 2ce2671f1b5deb791a682fd535ce5a9ad92e2721 | [] | no_license | alogicduck/teste_repository | c533996b225a17cc7f04d4d72f745c7217605fff | 709107f45ae1890f0a6ac612cbb3c06c75307e2c | refs/heads/master | 2023-07-18T07:33:07.713319 | 2021-08-24T18:44:15 | 2021-08-24T18:44:15 | 107,491,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,100 | py | import re
import pandas as pd
import numpy as np
from nltk import ngrams
from lexicon_dict import dict_lexicon
from lexicon_dict_lx import lexicon_dct_lx
def generate_ngrams_nltk(s, n):
# Convert to lowercases
s = s.lower()
# Replace all none alphanumeric characters with spaces
s = r... | [
"noreply@github.com"
] | alogicduck.noreply@github.com |
34564a13b96000487c238dec5f0118ba86484ba6 | e0894836cfab027db025c196ca080c41a7a34c82 | /06-ManageCategories/01-display_categories/app.py | d43bcb708d77992819c8f1be421cbf161f6c1f69 | [] | no_license | CEsarABC/TaskManager | 20aa562788e989d42fc7c86ac4999f2cf3c6b320 | 6dce93f39ec3abcc954765421be1c4acb506ce88 | refs/heads/master | 2020-04-18T07:11:06.276403 | 2019-01-24T10:53:20 | 2019-01-24T10:53:20 | 167,351,677 | 0 | 0 | null | 2019-01-24T10:49:03 | 2019-01-24T10:49:03 | null | UTF-8 | Python | false | false | 1,988 | py | import os
from flask import Flask, render_template, redirect, request, url_for
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
app = Flask(__name__)
app.config["MONGO_DBNAME"] = 'task_manager'
app.config["MONGO_URI"] = 'mongodb://admin:admin@ds123926.mlab.com:23926/task_manager'
mongo = PyMongo(... | [
"aaron@codeinstitute.net"
] | aaron@codeinstitute.net |
ef07b5aa404c70cfcf44089a893e251228f9d1a7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02790/s844160864.py | 72f2331d3fcb8e205405d05f9b9e2f5a8234122e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | a,b = input().split()
if a > b:
tmp = a
a = b
b = tmp
for i in range(int(b)):
print(a,end='')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3de09a189d046ed966e59e925ea52a9bcfce44a8 | f1ecd7f7ed02463037e65cf19c14f24d90550cad | /src/timeout.py | 2df6056638683361b41b0b15011c23173e0519fa | [] | no_license | aristosathens/Personal_Website_v2 | 0f78228b6a38ffa15ca3e318cc2fc88ce4038613 | 845a49fee4e6d250d8ba162ff639cd5a9eb7bf9d | refs/heads/master | 2020-04-21T23:45:10.913291 | 2019-02-12T22:14:29 | 2019-02-12T22:14:29 | 169,956,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,594 | py | # Aristos Athens
'''
Keep track of timeouts.
'''
from timeit import default_timer as timer
class _request:
'''
Store data for a single requests.
'''
def __init__(self, duration):
self._start = timer()
self._duration = duration
def timed_out(self):
if timer() - sel... | [
"aristos.a.athens@gmail.com"
] | aristos.a.athens@gmail.com |
9bdac4dd1ec45dd0083efe7999fcb04096443744 | f374756b18f329578789e1dc370b8eec0572c47e | /ElectreTriBMInference-scip/model.py | a34ecc23d128e1ce56c3fb3e7474ec15fbfac795 | [] | no_license | ncarrico1975/ws-PyXMCDA | caab2d401eeec3334cac877dd9811e444b38488e | 2fb98f89d5082c80050b5ac0849e4e982b2c72bc | refs/heads/master | 2021-12-13T18:27:02.176784 | 2012-04-02T08:04:42 | 2012-04-02T08:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,821 | py | from zibopt import scip
from itertools import product
class leroy_linear_problem():
def __init__(self, a, c, pt, af, cat, epsilon=0.0000001):
self.a = a
self.c = c
self.pt = pt
self.af = af
self.cat = cat
self.solver = scip.solver(quiet=False)
self.epsilon... | [
"olivier@sobrie.be"
] | olivier@sobrie.be |
86adc71758661c1e2baae4ab17221033d6fafba5 | 0dc6d786a7551857cbb5de8a5fb350965b7e361a | /venv/bin/django-admin | 498244b3b3dedaba60e485d93e057a164aed360f | [] | no_license | soohyun99/Mark-at_Server | b7b70d9706490e27e698ad0c9e458759c8a4f052 | b42bbf22bbc126d9aad709b8bcbe2d9620b6fba3 | refs/heads/master | 2023-04-04T21:26:33.065921 | 2021-04-14T01:50:54 | 2021-04-14T01:50:54 | 351,669,418 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 290 | #!/Users/suhyeon/Desktop/celo/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"yeo7764@gmail.com"
] | yeo7764@gmail.com | |
65c0df7301baf3fd49612d23b32c78370d56e16b | f707303e4dfe383cf82c23a6bb42ccfdc4cfdb67 | /pandas-quant-data-provider/pandas_quant_data_provider_test/data_provider/test__yfinance.py | db5f9723526185060aab01287a8f9d6fb8168d82 | [
"MIT"
] | permissive | jcoffi/pandas-ml-quant | 1830ec256f8c09c04f1aa77e2eecfba07d34fe68 | 650a8e8f77bc4d71136518d1c7ee65c194a99cf0 | refs/heads/master | 2023-08-31T06:45:38.060737 | 2021-09-09T04:44:35 | 2021-09-09T04:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from unittest import TestCase
from datetime import datetime
import pandas as pd
import pandas_quant_data_provider as dp
class TestYFinance(TestCase):
def test_simple_download(self):
df = dp.fetch("APPS")
self.assertGreater(len(df), 1)
self.assertNotIsInstance(df.columns, pd.MultiIndex)... | [
"kic@kic.kic"
] | kic@kic.kic |
4d7c496c0335c2540f4283dec0568d5f1e8a82ce | 30b12cbd39d3fb58f571a781932f47b7e7f6dfd5 | /blackjack_Kim_Bae.py | 0c2b75f50bc57fab1b07b32902a83a2e2bb6719a | [] | no_license | better331132/hello | 350c22f6679a58a52045b4a21be19dd82a453a6f | 674adfabdb680352193c13a1cdbfc49c65201db6 | refs/heads/master | 2020-04-04T23:15:40.960580 | 2019-05-03T04:15:19 | 2019-05-03T04:15:19 | 156,352,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,274 | py | import random
while True:
card_flow = []
class Deck:
def __init__(self):
self.cards = []
self.cardsort = ['Clover','Diamond','Heart','Spade']
self.cardnum = ['2','3','4','5','6','7','8','9','10','J','Q','K','A']
for s in self.card... | [
"better3311@naver.com"
] | better3311@naver.com |
a97850d1284b098f214f926a81f3bea53e750ccd | 213427b33e6ee3766c85269de46b14fe7e1395c7 | /project1-svm-kfold.py | d890e5f1a2c69a60f698cd91091d98fbf289c7e4 | [] | no_license | samanthafung/MSBD6000B-Project1 | 2c0028f8531ba85715f526becd3466fe704f7997 | 1fb5942b73670ddf798c732b7d628209a64e5346 | refs/heads/master | 2021-08-19T09:35:47.581417 | 2017-11-25T16:15:41 | 2017-11-25T16:15:41 | 110,936,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | import csv
import numpy as np
import pandas as pd
from sklearn.linear_model import LinearRegression
from sklearn import svm
from sklearn.model_selection import train_test_split
from matplotlib import pyplot as plt
from sklearn.metrics import mean_squared_error
from sklearn.model_selection import KFold
from sklearn.cros... | [
"samanthafung@users.noreply.github.com"
] | samanthafung@users.noreply.github.com |
2fe3b7ba0ae73d2293b55d43329d63326fa0fc91 | f2af245b9ee3132307e16d021e40f47f39112b86 | /iot-device/apps/labs/module03/TempActuatorEmulator.py | 36dcccd400a5d95baccef06f8d131c7e417bb4e6 | [] | no_license | Lyu-Tianyi/ioT_Device | c58391512f08040cbe4f0a6b3ad7af3c7f8b2f6d | 96e470bb0f6116931ce180118461fed04be51045 | refs/heads/master | 2020-03-31T04:03:20.786329 | 2018-10-14T03:27:30 | 2018-10-14T03:27:30 | 151,889,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | '''
Created on Oct 12, 2018
@author: l0t0y
'''
from threading import Thread
from labs.common.ActuatorData import ActuatorData
from labs.module03.SenseHatLedActivator import SenseHatLedActivator
class TempActuatorEmulator(Thread):
senseHatLed = 0
actuatorData = 0
message = 0
def __... | [
"775008056@qq.com"
] | 775008056@qq.com |
ad3ab8ec94fc33394ee395a6014948e253884173 | db026545778405bbe7cd03381165a1a040d01e9e | /2018/day03/first.py | ca8364a509249bb7fdd123046148dec02fba3a19 | [] | no_license | xhan91/advent-of-code | abe838a7a6624a8601a673c1266adcb15d035489 | fd3f28d1100b3cc4f844feda645301af68468372 | refs/heads/master | 2022-12-07T14:24:30.439896 | 2022-12-05T05:33:34 | 2022-12-05T05:33:34 | 75,370,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | input_array = []
r_map = {}
with open('input.txt', 'r') as input:
for line in input:
input_array.append(line.strip())
def calculate(s, r_map):
tmp = s.split('@')[1].strip()
tmp = tmp.split(': ')
x, y = map(int, tmp[0].split(','))
w, h = map(int, tmp[1].split('x'))
for ww in range(w):
for hh in ran... | [
"xhan91ca@gmail.com"
] | xhan91ca@gmail.com |
0703488991ac5e75625add04de29d70905f58b4c | f32ad5a2499a0efe693326465a6b21a7d9da85bf | /models/models.py | dbff065fff2afa89fcc08e61635e328a0cd51e22 | [] | no_license | KyleGoyette/RecAttModels | 1740ab4c153576b73e9c0a58708f92d1389d62f7 | 6753915a9ee36a8682d82bd524389e7b515a4b5b | refs/heads/master | 2023-01-05T17:34:43.962909 | 2020-10-23T22:36:16 | 2020-10-23T22:36:16 | 263,702,474 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,193 | py | import torch
import torch.nn as nn
from common import onehot
import numpy as np
from common import modrelu
from models.SAB import SAB_LSTM
def henaff_init(n):
# Initialization of skew-symmetric matrix
s = np.random.uniform(-np.pi, 0., size=int(np.floor(n / 2.)))
return create_diag(s, n)
def create_diag(s... | [
"kdgoyette@gmail.com"
] | kdgoyette@gmail.com |
43dfe41c7a9ede6402da361fa1d8e2b3832b0060 | 34992e5eb6e3fe59315e6aa3c3d563a1a322951c | /backend/settings.py | 4150143162f72ced579ddb25faaf2681a2b74e4e | [] | no_license | momoru-kun/2skin | c997887c4e8556fae1dfbdbf4d84c8f6ae7fb2ea | 7844016c2ab671224993f606c6760233670df2a2 | refs/heads/main | 2023-05-21T15:47:42.428970 | 2021-05-28T08:52:06 | 2021-05-28T08:52:06 | 375,754,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,585 | py | from pathlib import Path
import os
import dj_database_url
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURI... | [
"a.lenec@spb.mcart.ru"
] | a.lenec@spb.mcart.ru |
c6dd4164010bf14715f7a9bc80246bcfef471f71 | 4a94f2706f771c138aa1ff39f6b32b0f44833a05 | /app/migrations/0004_rename_customers_intents_customer.py | db5726d3640758e4bf3ba82c8fbb28cb7915bf3b | [] | no_license | devakashdeep/Python-Chatbot | 2d1fcf6d658b4b2972ec6590114484792fc74d04 | 586380f675b627526b065ffc1dd59ee95775afa6 | refs/heads/main | 2023-07-14T17:39:12.759029 | 2021-09-01T04:15:55 | 2021-09-01T04:15:55 | 396,881,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # Generated by Django 3.2.6 on 2021-08-12 16:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0003_intents'),
]
operations = [
migrations.RenameField(
model_name='intents',
old_name='customers',
new_... | [
"akashdeepcse@gmail.com"
] | akashdeepcse@gmail.com |
2fbc0e396b034ccaa5f71e62fe16d04e00216887 | 22a00f94b0320bccb940dd7d2d35ff2915cd4049 | /bookstore_project/urls.py | beff9f56d312138b2c0385c50308a0e53b33c3a8 | [
"Apache-2.0"
] | permissive | mohammadasim/online-bookstore | e74fdadb9a49353814880cde5ede05b7048dabaa | 83fba7cb8b2450c4966d21ef7e17953550724f3e | refs/heads/master | 2022-12-07T19:02:38.568376 | 2020-04-09T16:06:28 | 2020-04-09T16:06:28 | 243,928,820 | 1 | 0 | Apache-2.0 | 2022-11-22T05:23:51 | 2020-02-29T08:03:55 | Python | UTF-8 | Python | false | false | 1,623 | py | """bookstore_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"asimayub81@gmail.com"
] | asimayub81@gmail.com |
b1bfdd9e06cafe1576d94ddaaaa7e98f366dc729 | 325159494f96f31d31036cdb69dc727593a3e7cd | /tests/python_client/testcases/test_utility_20.py | 8a2899c6d514d6e21d634cee1ffded867147625f | [
"Apache-2.0"
] | permissive | James-ge/milvus | 6bc7026710fbfa0de34fcb259d1f328eeca4aaee | 08a31010e9c5336f20219678ca5e7f046fcc1318 | refs/heads/master | 2023-07-19T05:49:37.453084 | 2021-08-31T04:07:58 | 2021-08-31T04:07:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,383 | py | import pytest
from base.client_base import TestcaseBase
from base.utility_wrapper import ApiUtilityWrapper
from utils.util_log import test_log as log
from common import common_func as cf
from common import common_type as ct
from common.common_type import CaseLabel, CheckTasks
prefix = "utility"
default_schema = cf.gen... | [
"noreply@github.com"
] | James-ge.noreply@github.com |
afde146aa9ee1b9e20a0a626accf7c3bfa4aa5fe | fe7c897aa034d73281224e38dc5fdbe7a360d8e0 | /cs459_2/week06_orm/myproject/myapp/models.py | 6d3b19cb8cdabc0780e4700d8975fcff2d759301 | [
"BSD-3-Clause"
] | permissive | wasit7/2020 | 487592fa3b8d0351dfcf432207bfce8ded0db996 | 5fe6d41c1a5957bf240f9094d9b7c0f108835142 | refs/heads/master | 2023-05-15T00:47:52.309036 | 2021-04-30T04:46:08 | 2021-04-30T04:46:08 | 235,760,846 | 0 | 3 | BSD-3-Clause | 2022-06-22T01:39:10 | 2020-01-23T09:19:44 | Jupyter Notebook | UTF-8 | Python | false | false | 997 | py | from django.db import models
# Create your models here.
class Bike(models.Model):
start=models.DateField(auto_now=False, auto_now_add=True)
type=models.CharField(max_length=10)
price=models.DecimalField( max_digits=8, decimal_places=2)
def __str__(self):
return "bike_%s %s"%(self.id, self.type... | [
"wasit7@gmail.com"
] | wasit7@gmail.com |
1fe9f9a0217b1401f51ae683b9f9c20f050be87d | fe9c6ec40d7ec7f31ac0072083a3443415e5ff68 | /View/tables.py | ea46f00c03024012201168b739ba1a8b82d1102b | [] | no_license | Dsalce/TFM | 2233d31de609aeb7143ade07148d801f8730714e | e5b83fb8b98e9de7d109baa7cd71b7a7042a1631 | refs/heads/master | 2018-10-06T02:29:31.159252 | 2018-09-02T19:10:32 | 2018-09-02T19:10:32 | 120,086,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,602 | py |
"""Table of the Main Mainwindow"""
from PyQt5.QtWidgets import QMainWindow, QApplication, QWidget, QAction, QTableWidget,QTableWidgetItem,QVBoxLayout,QMenu,QCheckBox,QWidgetAction,QDialogButtonBox,QScrollBar,QPushButton
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import pyqtSlot,Qt,QPoint
from PyQt5.QtGui import... | [
"dsalce92@gmail.com"
] | dsalce92@gmail.com |
57dbde9dc8ad0c6e3250b9e330788f193600672a | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /google/cloud/aiplatform/v1/schema/predict/params_v1/types/video_classification.py | a08b0246147c3590b599a7ad05b42db219fc4820 | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 3,332 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
fc24e8f54a87d71b888a9f8123a6c0152935470e | 19a5630c377a2427470d93e46035c4ccb9e10c5f | /map_3.py | 1625124fcebd23437d9a3bd743231a0da0a158da | [] | no_license | Dvaraz/pythonProject | ee87f5ffb584c7d22962a99619b21532245005c1 | b9d369c623009ba5f3575a117e6fcfc8fae9a633 | refs/heads/master | 2023-04-29T12:46:24.075175 | 2021-05-13T13:52:03 | 2021-05-13T13:52:03 | 358,351,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from itertools import repeat
def round_2(x):
return round(x, 2)
if __name__ == '__main__':
my_floats = [
4.356345,
6.0934,
3.245235,
9.77545,
2.164234234,
8.884234235,
4.595235346645
]
print(list(map(round, my_floats, [2] * len(my_floats))))
... | [
"withoutme1988@gmail.com"
] | withoutme1988@gmail.com |
7949f940ff3f2c0cb89432711a8a9dc60ab168fb | 5311e49962913e73a802cabd3fb32e3f2a58579e | /config.py | 2b390e7e41d9323d9de1627a1cb50595a184f0c8 | [
"Unlicense"
] | permissive | LimeThaw/TweetSentiment | 4e4608ed475763a028ab3965636c473106c95b89 | 57688a2b5c3fd6189447d4b6fe0830f278145196 | refs/heads/main | 2023-06-17T11:30:30.300502 | 2021-07-23T10:19:31 | 2021-07-23T10:19:31 | 383,451,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | _dict_mult = 32
DICT_SIZE = 2048*_dict_mult
EMBED_DIM = 16
LATENT_DIM = 32
BATCH_SIZE = 512
NUM_EPOCHS = 16
def get_embed_dict_name():
return "embed_"+str(_dict_mult)+"_"+str(EMBED_DIM)+".dict" | [
"laudit@student.ethz.ch"
] | laudit@student.ethz.ch |
70aa5a4a1494fbd51725b7d6beb2d6cd3a1feca9 | 2215163696e362260a90bc3c011fcdb540d8d226 | /forge/kubernetes.py | f41d5e42400661c61b1d7dae93395a0911ebfb6b | [
"Apache-2.0"
] | permissive | aj0415/cforge | 47cf97d006d3a8b6ae438b1e9739c594c1fbfb8a | a99c6333ffa6b7686c8eb622cbf45a742b002716 | refs/heads/master | 2020-03-13T00:20:51.455760 | 2018-04-27T20:12:40 | 2018-04-27T20:12:40 | 130,884,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,751 | py | # Copyright 2017 datawire. 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 applicable law or agr... | [
"rhs@alum.mit.edu"
] | rhs@alum.mit.edu |
2fa95f3d87458cb92d6b4546775e64a12b256d66 | d00c57a9e06edf8fc71e983323c94fb32ccc96b9 | /example/config.py | 930b8fc9f726a076550ef9aa3c30a300b2289886 | [
"MIT"
] | permissive | fuhrysteve/CeleryStore | 7eb635feeb99011e3b8f2c9ce49482503e683617 | 8056f1688dc37b69449ab62c368a8840befbed97 | refs/heads/master | 2021-01-10T11:09:35.473322 | 2016-03-18T20:37:25 | 2016-03-18T20:37:25 | 49,743,011 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | CELERYSTORE_PERIODIC_TASK='example.PeriodicTask'
CELERYSTORE_TASK_SCHEDULE='example.TaskSchedule'
| [
"sfuhry@onshift.com"
] | sfuhry@onshift.com |
6a64a8d6ec5c67c04c6cde22588fc91bd230a42e | acbdba550f77407fc7b1bade4f27788afedf1f24 | /tests.py | 82ad2952758fe749996879c0bcba66e92ef1a45d | [] | no_license | josteink/tsviz | 7290c27c8e7ba78a9ea82a36c4722cec67af3258 | b8d49640b4e90a3d14b5e32206ab05255a07a85c | refs/heads/master | 2023-01-29T00:41:43.213240 | 2023-01-13T13:18:41 | 2023-01-13T13:18:41 | 154,780,388 | 2 | 1 | null | 2020-12-09T18:36:44 | 2018-10-26T05:10:07 | Python | UTF-8 | Python | false | false | 6,860 | py | import unittest
import tsviz
import re
class Tests(unittest.TestCase):
def test_parse_module_import_regexp(self):
decl = "import { class } from \"./File\";"
m = tsviz.module_import_declaration.match(decl)
self.assertNotEqual(None, m)
[filename] = m.groups()
self.assertEqua... | [
"jostein@kjonigsen.net"
] | jostein@kjonigsen.net |
61d833fce1a3c15f045e9012f95e49069ff4f39a | 85eb115ef76e9cd6b50deeee2264255d82422a4d | /Homework1/cornellchain/blockchain/chain.py | 1e9eeb9b5aa31aacdfd8ea04b5aa60aa51ebdf40 | [] | no_license | sspark0122/Blockchains-and-Cryptocurrencies | fa996ef0e67adfba1fe26f55fced4644a0ce22e1 | 7d4690edffd45f80be00c2f3b009409eaece3175 | refs/heads/master | 2020-04-27T10:59:45.909317 | 2019-03-27T18:06:18 | 2019-03-27T18:06:18 | 174,278,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,461 | py | import os
import config
import blockchain
from blockchain.util import encode_as_str
import transaction, persistent
class Blockchain(persistent.Persistent):
def __init__(self):
""" Create a new Blockchain object; we store 1 globally in the database.
Attributes:
chain (:obj:`dict` of (i... | [
"sung@Sungs-MacBook-Pro.local"
] | sung@Sungs-MacBook-Pro.local |
4ec72811ea7425106d35174c2bc747889228fba8 | a8927a1401ce7a5746a2060b986f1eb7a7b1b73f | /tools/tldr_page_to_manpage.py | 7af5a4afaf6d69476c083ec32ede4b0e61eb404f | [
"MIT"
] | permissive | JIghtuse/manpages-tldr | 4ef20b4c1ba8a1a5f009d31a081bac653c1320b2 | 7b42251985ba657e2e1e8f1a88b53a28c24d92ce | refs/heads/master | 2021-06-10T03:45:31.323510 | 2021-02-20T15:42:23 | 2021-02-20T15:42:23 | 16,452,028 | 30 | 5 | null | 2014-02-02T19:40:41 | 2014-02-02T09:19:48 | null | UTF-8 | Python | false | false | 2,238 | py | #!/usr/bin/python3
import argparse
import datetime
import os
from subprocess import Popen, PIPE
def process_file(tldr_filename, manpage_filename):
tldr_dir, tldr_file = os.path.split(tldr_filename)
with open(tldr_filename) as inp:
data = inp.readlines()
# Extracting program name
_, ... | [
"egorov@linux.com"
] | egorov@linux.com |
6af0cc08e64ed0eb3f8c846ce47fb9a0ef2a1b68 | d5c8002669df3c6f135baee5094a6e62725081d1 | /reptile/supervised_reptile/train.py | 4c5e21421bb18d6b7cf622e1565ca564ae595aaf | [
"MIT"
] | permissive | mkhodak/FMRL | e12e0d799a05b8b55c20306c3ebdcac96db2f751 | 137922e24cd106b6bed7415d9da7ce51d3890ef0 | refs/heads/master | 2020-04-15T00:29:30.268674 | 2020-03-22T06:55:13 | 2020-03-22T06:55:13 | 164,242,078 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,371 | py | """
Training helpers for supervised meta-learning.
"""
import os
import time
import tensorflow as tf
from .reptile import Reptile
from .variables import weight_decay
from .eval import evaluate
# pylint: disable=R0913,R0914
def train(sess,
model,
train_set,
test_set,
save_dir,... | [
"khodak@cmu.edu"
] | khodak@cmu.edu |
4531ecda5ac8793440c85f9c82a7aa2a764b31bb | 2e2d71eb76a2360bdfad32c6f043108269b753c6 | /app/models.py | 6518b79d8a9934f834c0b550c2ebb1647514c0c8 | [] | no_license | MoXoCo/one | 9e82af23ed42847989c2981f5dd5c13c7443cad4 | 18000d5a946ebbd9938c0384de7b8129dd441b72 | refs/heads/master | 2021-01-20T19:00:48.863853 | 2016-07-28T03:49:53 | 2016-07-28T03:49:53 | 63,661,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | from . import db
from mylog import time_print
import random
class Post(db.Model):
__tablename__ = 'posts'
id = db.Column(db.Integer, primary_key=True)
url_num = db.Column(db.Integer)
title = db.Column(db.String(10))
img = db.Column(db.String(64))
content = db.Column(db.String())
timestamp ... | [
"mengxucong@yahoo.com"
] | mengxucong@yahoo.com |
1e4fb0973f00c5999dce0a596bf47a49ae819834 | c76dddf3a5ac9ed3a41fea351ff8c67d3062cfb9 | /dashboard_app/models.py | a2c04b498864fb459574b02bb965d93be0dfe6eb | [] | no_license | JpBongiovanni/user_dashboard_3 | 25bd300a64bcbb55780f060bec254568071d50ca | 2444162d1f7c696037bbe8505ea4cac26f7073e8 | refs/heads/main | 2023-02-03T18:26:57.430070 | 2020-12-21T21:59:32 | 2020-12-21T21:59:32 | 323,338,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,901 | py | from django.db import models
import re
import bcrypt
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
class UserManager(models.Manager):
def validate(self, form):
errors = {}
if len(form['first_name']) < 2:
errors['first_name'] = 'First Name must be at least 2 ... | [
"jpbongiovanni@gmail.com"
] | jpbongiovanni@gmail.com |
61d2e7a48c7da7254694bab7f217ea1627b12718 | edc1c404069441a8cb67ca90bf78985d24e7262d | /video/admin.py | 36763879e0898a78fe5cf5e4c8d7bbde9064aaf0 | [] | no_license | jsparmani/AndromediaProductionsRemake | 98b6ac26a2080b7c1cc654ed4636089e816b9ef5 | 10ee43dd6785c458100bdb41702927744551fd0d | refs/heads/master | 2022-02-20T20:11:01.095443 | 2019-10-06T18:52:26 | 2019-10-06T18:52:26 | 212,735,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,208 | py | from django.contrib import admin
from . import models
from apiclient.discovery import build
from django.contrib import messages
api_key = "AIzaSyDahUDOnXFAW0jlIC-gIc1cKt_tLlOXzf4"
class PlaylistAdmin(admin.ModelAdmin):
fieldsets = (
(None, {
"fields": (
'name', 'playlist_id'
... | [
"jsparmani@gmail.com"
] | jsparmani@gmail.com |
57a01d21806f733c3b88833bc264d3d8c36f4d37 | 2aab2fdf78bda63ce6fedc9b178412dfbc69600a | /finance/migrations/0003_auto_20201112_1207.py | 83a11723943172d56e07dcc015f1ff1427c660a9 | [] | no_license | biobam-creative/school_management_system | aa929fc22d9b07bd00f871ae7501dac92261bfa0 | 11c65a06c32b07e64080d80a9b8f08461cc0ca32 | refs/heads/master | 2023-01-11T03:35:51.039719 | 2020-11-14T09:24:39 | 2020-11-14T09:24:39 | 304,311,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | # Generated by Django 3.1.2 on 2020-11-12 11:07
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('registration', '0004_term_school_fee'),
('finance', '0002_auto_20201112_2359'),
]
operations = [
mi... | [
"eminentia.ea@gmail.com"
] | eminentia.ea@gmail.com |
2d868583f63376842e1cd553b872f76f6f8c7f87 | 06e5f427067574b5be79e8a0a260db8ee3b5f744 | /tests/testpadpt.py | bfcf914003a82983e73fa645d57d3c953567ce0a | [
"MIT"
] | permissive | wotsushi/padpt | 655e5b94f749f5dc3db0311fa92e642897c650cc | 177328d9d18d5b68615b96b5fe6c562bac01df2e | refs/heads/master | 2021-01-12T16:52:38.059089 | 2016-11-12T14:53:27 | 2016-11-12T14:53:27 | 71,460,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,381 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import os
import io
import shutil
import warnings
import unittest
import urllib.error
from unittest.mock import patch
from PIL import Image
from padpt import padpt
class TestPadPT(unittest.TestCase):
def setUp(self):
if os.path.exists('tests/tm... | [
"wotsushi@gmail.com"
] | wotsushi@gmail.com |
0710cbc64d9864fa23aa651690a978c75ce6a6a5 | d0c7f7e2d1dda15fe23aeb5f82072ddeed91f12a | /NumbaCuda/Test.py | 34a64595f608b49be6f1cc3df67057b6a93e6294 | [] | no_license | jonasjuenemann/Bachelorarbeit | 630cd71e556d739cfc224dfb1299f43a7eb0fe4d | fe51d7ab5ec494a252f3fe77b13878d7f00da226 | refs/heads/main | 2023-03-21T09:21:44.109229 | 2021-03-18T15:10:57 | 2021-03-18T15:10:57 | 310,050,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | from time import time
from numba import cuda
import numpy as np
@cuda.jit
def increment_by_one(an_array):
# Thread id in a 1D block
tx = cuda.threadIdx.x
# Block id in a 1D grid
ty = cuda.blockIdx.x
# Block width, i.e. number of threads per block
bw = cuda.blockDim.x
# Compute flattened i... | [
"jonas.juenemann@gmx.de"
] | jonas.juenemann@gmx.de |
ad3f02552cb32fec4a851ed69631289e4ebca8ec | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/insights/v20201005preview/_inputs.py | 21a144300587977774437a23d377b3d7e412df76 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 14,537 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
9625fedf9f7cbf9145837f97b9b0160e874f2324 | 00443f71e4bf97d91751c1c3d4dc60abe3936f85 | /Kivy_List_View_ListAdapter/studentdb.py | 2025e2e00122eeac20af47567885d0198bef6d8e | [] | no_license | mikaeloLombard/Python-Labs | f43d1c47adbb1775e619fef4f82a5adf7be0607d | 5475c412fc2683986aff7710fe63afb343539e46 | refs/heads/master | 2021-08-22T23:42:35.978258 | 2017-12-01T18:18:20 | 2017-12-01T18:18:20 | 103,810,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.properties import ObjectProperty
from kivy.uix.listview import ListItemButton
class StudentListButton (ListItemButton):
pass
class StudentDB (BoxLayout):
first_name_text_input = ObjectProperty()
last_name_text_input ... | [
"noreply@github.com"
] | mikaeloLombard.noreply@github.com |
dae3eb32ca4d2ebbaaf7162e74135de0adc35570 | a1308f3ffbd73a020685f02ad7674f2111c36db8 | /ftpserver/Server/core/ftpserver.py | e5f4238ae0a46974f9709351b18de3a36c7f3f9d | [] | no_license | hardy9sap/ftpserver | 9011d134fcea4e70c383ad324807dade347ce54d | 7f45f4076b9c70a2cc8fea6cefdd7f784c5a07e8 | refs/heads/master | 2022-12-26T21:07:29.052262 | 2020-02-27T13:16:26 | 2020-02-27T13:16:26 | 243,519,097 | 1 | 0 | null | 2022-12-08T01:51:19 | 2020-02-27T12:54:31 | Python | UTF-8 | Python | false | false | 25,758 | py | """FTP Server端
"""
from .parseini import CONCURRENCY
from .parseini import SHARES_PATH
from .parseini import FILESTATUS
from .parseini import HOME_PATH
from .parseini import ACCOUNT
from .parseini import INIPATH
# from threading import Thread
import configparser
import subprocess
import contextlib
import traceback
imp... | [
"hardy9sap@163.com"
] | hardy9sap@163.com |
352732936770d6462601d1391dbdc1eb30c7b3be | 03e42691246559f849849057cdd6e91b2147409d | /vggnet.py | be7131ad9bfd341471228057e22ca7e009024b95 | [] | no_license | idhant96/image-classifier | 10530459c6add35dc21a9ebcf4bb81ac833b4d3c | 478624987c1326bd91fb4aad867bbf73c6be6d67 | refs/heads/master | 2020-03-11T05:00:13.484141 | 2018-04-17T20:26:20 | 2018-04-17T20:26:20 | 129,790,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | from keras.models import Sequential
from keras.layers.normalization import BatchNormalization
from keras.layers.convolutional import Conv2D
from keras.layers.convolutional import MaxPooling2D
from keras.layers.core import Activation
from keras.layers.core import Flatten
from keras.layers.core import Dropout
from keras.... | [
"idhant123@gmail.com"
] | idhant123@gmail.com |
3dcd089d6a30ae78f2869354ef2c95deab75e4d4 | ec0ea8854d9a04967fe8d7794454f76946a8252e | /migrations/versions/7c6b878897a6_initial_migration.py | 23dc013e61e45de6239e827e0dd76e12b45470bf | [] | no_license | alinzel/Blog_flask | 3ae3f4d6e8bfd48e67ffddf2040c37f86d8756f7 | 47f50cb409f78d5a45144a8f2d134982dc03e383 | refs/heads/master | 2020-03-07T22:38:11.537557 | 2018-04-02T13:30:55 | 2018-04-02T13:30:55 | 127,759,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | """initial migration
Revision ID: 7c6b878897a6
Revises:
Create Date: 2018-03-16 03:39:18.455855
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '7c6b878897a6'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto ... | [
"944951481@qq.com"
] | 944951481@qq.com |
6b4fd80eafa068e59280dc3f25395d62363e080e | 7bbad6159250d2a6845dc4a95f5f226bec14c458 | /inventory/power/rights.py | ca47bbd142edda266ff9f3aa981c8dc6ed5a26d8 | [] | no_license | ai-being/ofs | ffd43b4f57398101859bbcee2edfc2c379099e49 | cfc279b8b8691b0b8f18a89ed56205429d34f12f | refs/heads/master | 2022-12-06T10:27:13.430180 | 2020-08-20T12:42:02 | 2020-08-20T12:42:02 | 281,403,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | # SWAMI KARUPPASWAMI THUNNAI
import jwt
import hashlib
import datetime
dates=datetime.datetime.now()
date=dates.date()
from database.get_connection import get_connection
from flask import render_template, request, redirect, url_for, flash,session
salt='jeeva$kani*vichu&69'
salt=hashlib.sha512(salt.encode("utf-8")).he... | [
"68508268+ai-being@users.noreply.github.com"
] | 68508268+ai-being@users.noreply.github.com |
15049870394647d8ef8a7d4c4005b9d4d0951701 | 8dd42b666ee15f857a3e8a59690b9b2cce7586f6 | /algorithms/__init__.py | 85a76ea929c7e1de8c5515124ddb342a1d5a1ebc | [] | no_license | cjgiridhar/tips_tricks | a77beef9ce324224c59682432e38517da2a22713 | e80cd0bcc79015af56a78484eaaec18521d06f50 | refs/heads/master | 2020-06-03T23:33:27.308270 | 2015-07-24T06:27:56 | 2015-07-24T06:27:56 | 39,615,573 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | __author__ = 'cgiridhar'
| [
"cjgiridhar@example.com"
] | cjgiridhar@example.com |
26615f81ac62f5a366eb180e2387cd59a5592dc4 | aa1091e553227fb23f58bfbcb9ece7e347eae833 | /人工神经网络/hw4/attack.py | b4fa7dd58e8555ab730790ea63919b12c5b10116 | [] | no_license | wmhst7/UndergradProjects | fc84d8fb79329993a2db8b040ffe088d9d7a0cd2 | 637f801c2323e2b1fe80fffc89f791571aa8090b | refs/heads/master | 2022-10-10T19:38:40.948661 | 2020-06-12T06:53:07 | 2020-06-12T06:53:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | import numpy as np
import tensorflow as tf
from common import config
mean, std = config.mean, config.std
class Attack():
def __init__(self, model, batchsize, alpha, beta, gamma, CW_kappa, use_cross_entropy_loss, **kwargs):
self.batchsize = batchsize
self.model = model # pretrained vgg model use... | [
"zx1239856@gmail.com"
] | zx1239856@gmail.com |
56d70eb0357685630e14c4a8a7d62ccd25e9d9bd | 84078d857f71c12f27e129a8b28fa2eed50af126 | /core/migrations/0005_item_content.py | 25f824fdec58585c7c3405c52f61b4703c079561 | [] | no_license | mandech-n/niche | a3f6532d9a99b042dfa2699ded7150679832acb1 | 70c43807b920aa1b3ea69eb5edea5e4b7a31a7dd | refs/heads/master | 2023-01-23T08:27:13.390899 | 2020-11-23T11:16:08 | 2020-11-23T11:16:08 | 277,471,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 3.1.2 on 2020-11-03 18:57
import ckeditor_uploader.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0004_remove_item_slug'),
]
operations = [
migrations.AddField(
model_name='item',
... | [
"noreply@github.com"
] | mandech-n.noreply@github.com |
b98bef79c647ca1444eaeb49d1ff5e3b7d110594 | 6591721fcf9c95ba8fa579de9b73cfbecfaf04a7 | /main.py | ed573e431da8fd4201ce2285add960fbc7ce3ab2 | [] | no_license | FreedomTrail/TensorRT_ROS_TX2 | 0d5581094d3d3a251ae3c5f68983e390e6361402 | b3a9307ca27667b206a49bc235be24ec4f6aca91 | refs/heads/master | 2020-09-14T11:39:56.720648 | 2020-07-16T02:00:42 | 2020-07-16T02:00:42 | 223,118,618 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,157 | py | import os
import sys
import cv2
import time
import ctypes
import numpy as np
import pycuda.autoinit
import pycuda.driver as cuda
import coco
import uff
import tensorrt as trt
import graphsurgeon as gs
import common
#from config import model_ssd_inception_v2_coco_2017_11_17 as model
#from config import model_ssd_mobi... | [
"zryang_ok@163.com"
] | zryang_ok@163.com |
19166651f38a32aeff63e9ade2eaa4f38ec3c683 | 439cd655eb772b725d30fd70676008fb80f9d9f4 | /run_driller.py | 35cbe4ad087fef2163d4619612638ce62231686b | [] | no_license | gal0is/cgc-test | d885ecf8fb514b89ae0245d6c831e1d5e52ed98e | 0c7b2e946fca4b7e542d715d1892a17c7b244cdf | refs/heads/master | 2020-07-05T13:23:32.467612 | 2019-08-18T15:29:25 | 2019-08-18T15:29:25 | 202,659,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | py | #!/usr/bin/env python
import errno
import os
import os.path
import sys
import time
from driller import Driller
import logging
logging.getLogger().setLevel('DEBUG')
def save_input(content, dest_dir, count):
"""Saves a new input to a file where AFL can find it.
File will be named id:XXXXXX,driller (where XXX... | [
"zhipeng.job@hotmail.com"
] | zhipeng.job@hotmail.com |
b705ddebcad0c0865238b457be053e216c227801 | 9a2f317b097d9e134bc34eb7d30a05388f53fd73 | /from_satya_mallick.py | ca876b989cad983732800bdd6786e15d0670fb3d | [
"MIT"
] | permissive | peterdobbs77/objectTracking_py | 7faa3913bc237e43249954a53b0184873667ef60 | 536d313e29624a378b39cb15f5ad7aa0ee86919a | refs/heads/master | 2021-07-23T17:18:45.901804 | 2020-05-10T19:30:46 | 2020-05-10T19:30:46 | 163,464,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,020 | py | import cv2
import sys
(major_ver, minor_ver, subminor_ver) = (cv2.__version__).split('.')
if __name__ == '__main__':
# Set up tracker.
# Instead of MIL, you can also use
tracker_types = ['BOOSTING', 'MIL', 'KCF', 'TLD',
'MEDIANFLOW', 'GOTURN', 'MOSSE', 'CSRT']
tracker_type = tra... | [
"dobbsp8@gmail.com"
] | dobbsp8@gmail.com |
77455691a116df7a97fb3c60162a302cf25cdbcd | 7bb9bd2bdadef1590b2ef7ff309e08abf454e49d | /Curso em Vídeo/4-DataNascimento.py | 8a9ea4b93b275e7badf7c86dd7569ae1d8b7eeea | [] | no_license | ALREstevam/Curso-de-Python-e-Programacao-com-Python | afdf12717a710f20d4513d5df375ba63ba1e1c19 | af6227376736e63810e5979be54eb1c433d669ac | refs/heads/master | 2021-09-07T12:11:17.158298 | 2018-02-22T17:47:19 | 2018-02-22T17:47:19 | 87,453,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | #Entrada e saídade dados
dia = input('Dia: ')
mes = input('Mes: ')
ano = input('Ano: ')
print('Você nasceu no dia',dia,'de',mes,'de',ano,'Não é?')
| [
"a166348@g.unicamp.com"
] | a166348@g.unicamp.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.