blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c70783d8cfd93612801582b5e2235579428603b7 | e9538b7ad6d0ce0ccfbb8e10c458f9e0b73926f6 | /tests/unit/modules/network/fortios/test_fortios_log_gui_display.py | 644e279cf41382231c315d93b3a1273a7d584043 | [] | no_license | ansible-collection-migration/misc.not_a_real_collection | b3ef8090c59de9ac30aca083c746ec3595d7f5f5 | 7ab1af924a3db4ada2f714b09bb392614344cb1e | refs/heads/master | 2020-12-18T13:48:51.849567 | 2020-01-22T17:39:18 | 2020-01-22T17:39:18 | 235,400,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,511 | py | # Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
b630a9f6c367e1fb16b0412c86faca800f21e951 | 9ab9d9a3883471763edbceea59a0e83170581b5f | /eggs/Paste-1.7.5.1-py2.7.egg/paste/exceptions/reporter.py | 95e31ba9ce0bd654f856a5f9ea8da4e0714090a5 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | asmmhossain/phyG | 24dc211dad5b3e89c87ff384e841f2e98bbd52db | 023f505b705ab953f502cbc55e90612047867583 | refs/heads/master | 2022-11-21T12:43:46.172725 | 2014-02-14T12:33:08 | 2014-02-14T12:33:08 | 13,800,552 | 0 | 1 | NOASSERTION | 2020-07-25T21:05:41 | 2013-10-23T11:04:25 | Python | UTF-8 | Python | false | false | 4,574 | py | # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
from email.MIMEText import MIMEText
from email.MIMEMultipart import MIMEMultipart
import smtplib
import time
try:
from socket import sslerror
exce... | [
"mukarram819@gmail.com"
] | mukarram819@gmail.com |
3c31d6df0e8e6f26f2bc2df7c1841a03cf228944 | d9f7123433fe473cfa2fd5c3438251f83ffb326c | /apps/login/migrations/0001_initial.py | 66a865cda502ac38bb6d10342d0d79a968d271ba | [] | no_license | mazurbeam/friends | 6c2d201220db52bc85eb1869fd6685eee372e920 | 1dc2432ad371113c0979158053c821a449ebbc6c | refs/heads/master | 2021-01-01T18:27:12.875643 | 2017-07-25T20:46:08 | 2017-07-25T20:46:08 | 98,345,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-07-25 17:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
... | [
"mazurbeam@gmail.com"
] | mazurbeam@gmail.com |
0bcb6ed75c2ebe3f34acff106b6a3a6d6ad9de9d | 7eb606a7957e5500f163c93dc4b19418cf9cf335 | /ludwig/datasets/archives.py | 6b2aa057cc3df86a1494f0c6e365d8f5f814191f | [
"Apache-2.0",
"MIT"
] | permissive | ludwig-ai/ludwig | 024f74da86567a57ec8e30efcb4600f0c52333a1 | e1d023e41606c9b76b35e1d231c2f13368a30eca | refs/heads/master | 2023-09-03T08:07:32.978301 | 2023-09-01T19:39:32 | 2023-09-01T19:39:32 | 163,346,054 | 2,567 | 285 | Apache-2.0 | 2023-09-14T20:34:52 | 2018-12-27T23:58:12 | Python | UTF-8 | Python | false | false | 5,833 | py | #! /usr/bin/env python
# Copyright (c) 2019 Uber Technologies, Inc.
#
# 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 a... | [
"noreply@github.com"
] | ludwig-ai.noreply@github.com |
c9d7d43fca7a9180a32c04151abb9723f931ab20 | dbe5973d69df9c5a5f3b06b7451a0de7086ebda4 | /myapps/error_handlers.py | dc9bf7e6a63c1a820ff2ebef03ed0cecbfccf5fc | [] | no_license | phares/mall | 29e7c0fdf3222a05161de36c8252167ab59df7be | d3f0093828c892ce46d55afaa245e5780555cc68 | refs/heads/master | 2021-01-22T23:53:27.535609 | 2017-04-30T09:17:53 | 2017-04-30T09:17:53 | 85,676,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.shortcuts import render
def _403(request):
return render(request, '403.html', {})
def _404(request):
return render(request, '404.html', {})
def _500(request):
return render(request, '500.html', {})
| [
"cndeti@gmail.com"
] | cndeti@gmail.com |
8ce8de29e51709461abbc005a1bb995b1642d349 | 4f001a046035884748af1d3504fb4ba61788f6e8 | /viedeos_manager-New_code_with_resolve_issoe/imratedme/urls.py | 489abc93252e15ded22ec19775d2733e4e7f1a30 | [] | no_license | sidkushwah123/video_manager | eb19686dcb87612dea9c2e56b6a4de3defbe123f | eb39f72c574548bd35ebc05ae05806d602995e93 | refs/heads/main | 2023-07-29T10:09:09.862337 | 2021-09-11T15:56:00 | 2021-09-11T15:56:00 | 405,418,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | """imratedme 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')
Class-bas... | [
"sachinkushwah0007@gmail.com"
] | sachinkushwah0007@gmail.com |
615dc11cdddc204b7d4d84d3e3e6ffd4e4ab1827 | 25ea9de5a0b2a66ad69dc1cdff0869117c3d32bd | /usuarios/migrations/0002_auto_20210318_1714.py | 28b645d0db5cf0dc537655ece2c487aa5453804f | [] | no_license | arm98sub/djangoDeploy | 070b634979ae96935228c6f67d91305109be6625 | b1420b68100b357993e9ee062fd008b6f68accf0 | refs/heads/master | 2023-05-21T20:41:52.975252 | 2021-06-01T23:25:53 | 2021-06-01T23:25:53 | 372,984,449 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # Generated by Django 3.1.6 on 2021-03-18 17:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('usuarios', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='usuario',
name='foto',... | [
"vagrant@ubuntu1804.localdomain"
] | vagrant@ubuntu1804.localdomain |
8587e5c358d7da81e23a5053acacf1b5abfabd9d | f8ffa8ff257266df3de9d20d95b291e393f88434 | /Python from scratch/Zadania/zadania domowe/nr1_08-09-2018/zad_dom_nr1.py | 0b44e7ed08182fb13edec812cb43f0deaad16759 | [] | no_license | janiszewskibartlomiej/Python_Code_Me_Gda | c0583c068ef08b6130398ddf93c3a3d1a843b487 | 7568de2a9acf80bab1429bb55bafd89daad9b729 | refs/heads/master | 2020-03-30T05:06:26.757033 | 2020-03-02T08:53:28 | 2020-03-02T08:53:28 | 150,781,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | liczba_str = input('Wpisz liczbę całkowią: ')
liczba = int(liczba_str)
liczba_podzielna_przez_2 = liczba % 2
liczba_podzielna_przez_3 = liczba % 3
liczba_podzielna_przez_4 = liczba % 4
liczba_podzielna_przez_5 = liczba % 5
liczba_podzielna_przez_6 = liczba % 6
liczba_podzielna_przez_9 = liczba % 9
liczba_podzielna_prze... | [
"janiszewski.bartlomiej@gmail.com"
] | janiszewski.bartlomiej@gmail.com |
24483d9352ce4f2d62458534a9923202d3ae25bf | d274e22b1cc5d546855fe46b089b13cfe2f4047c | /random/solutions/q08_ThirdMaximumNumber.py | 93d327b69fb06ea864b1db2d3724352a9fe9459b | [] | no_license | varunkumar032/lockdown-leetcode | ca6b7a8133033110680dd226c897dd8a1482682b | 15a72a53be9005eca816f018cb1b244f2aa4cdfb | refs/heads/master | 2023-06-30T08:31:54.323747 | 2021-07-12T11:29:59 | 2021-07-12T11:29:59 | 260,616,280 | 0 | 0 | null | 2021-05-06T10:24:48 | 2020-05-02T04:52:37 | Python | UTF-8 | Python | false | false | 1,108 | py | # Given integer array nums, return the third maximum number in this array. If the third maximum does not exist, return the maximum number.
# Example 1:
# Input: nums = [3,2,1]
# Output: 1
# Explanation: The third maximum is 1.
# Example 2:
# Input: nums = [1,2]
# Output: 2
# Explanation: The third maximum does not ex... | [
"varunkumar032@gmail.com"
] | varunkumar032@gmail.com |
b67e033f8ce190876bde29161ecb2bec08ec8442 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_YCHF/KCB_YCHF_MM/SHOffer/YCHF_KCBYCHF_SHBP_288.py | e62dd95589968fc2cb8e097b41b5f82371b6c0f5 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from ARmainservice import *
from QueryStkPriceQty import *
from log import *
sys.path.append... | [
"418033945@qq.com"
] | 418033945@qq.com |
bca600bfc1ded616304d1f4bf3ce2e519ef39d6f | 482c670a1885d4058909d817b1b20904eedb09c6 | /python_api_auto/request-demo/post_request.py | f7244d74286e0358f74171f174b146c51ddf2988 | [] | no_license | qiaoxu1123/python-auto | 13bddeafd3832dc9c28f39ab9fa2343d23fd3dd0 | 15bfc1aaedbbdf7a00f03cd3552ed8e7b30eabdc | refs/heads/master | 2020-04-02T16:10:15.862150 | 2018-11-04T07:27:51 | 2018-11-04T07:27:51 | 154,601,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,525 | py | import requests
import unittest
class Test_login(unittest.TestCase):
url = 'https://passport.womai.com/login/login.do'
headers = {'Accept': 'application/json, text/javascript, */*',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'zh-CN,zh;q=0.9',
'Conne... | [
"you@example.com"
] | you@example.com |
db8d9e2cf111fa8e3a2526c2bfef7a8f4dc10a02 | 3c8f9251b0bf6e9247a07fe81ccd8df75d982580 | /MeClass5/question2c.py | 43bc69baeb6fc65b861db9cd6f8c5a87693f04d7 | [
"Apache-2.0"
] | permissive | carrascodc/pyneta | 2f70c25261264d930767533593908e584e36b23e | 857c0279d6c567d8855fedde2883603d7c70b50b | refs/heads/master | 2020-04-18T10:59:51.614601 | 2020-02-28T01:43:18 | 2020-02-28T01:43:18 | 167,485,054 | 0 | 0 | Apache-2.0 | 2019-01-26T22:34:10 | 2019-01-25T04:31:02 | Python | UTF-8 | Python | false | false | 3,205 | py | from jinja2 import FileSystemLoader, StrictUndefined
from jinja2.environment import Environment
from netmiko import ConnectHandler
from mydevices import nxos1, nxos2
from pprint import pprint
import textfsm
import time
import re
from colorama import Fore, Back, Style
env = Environment(undefined=StrictUndefined)
env.lo... | [
"you@example.com"
] | you@example.com |
215f4513eb1b55e128ba2887b9bbd6c50c1398a5 | 0cd81f8a964de3712881fe48a75208490d644cf0 | /entry.py | b7da5013b3a8c99aca7afaf4ed186298cde46d87 | [] | no_license | ALLYOURSR/cvml | 1bf79b0d57da7b225cb0b98d5ee20889fe73204a | 0dfaa5a21e6d86731e5e034ceb9f209079bac912 | refs/heads/master | 2021-05-18T09:59:33.208411 | 2020-04-13T01:23:36 | 2020-04-13T01:23:36 | 251,200,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from config import ServerConfig
from question_generator import QuestionGenerator
from server import Server
c = ServerConfig()
qg = QuestionGenerator(c.QuestionFilepath)
qg.PrintAll()
s = Server(c, qg)
s.Run() | [
"x"
] | x |
36d995b522dd8a070c1fe6af8ffc791077fabbd4 | 70f5f279e051360310f95be895320d8fa6cd8d93 | /extraPackages/matplotlib-3.0.2/examples/mplot3d/surface3d_radial.py | 521f6195330d266d655b1e63e19f76cfd132b2a3 | [
"BSD-3-Clause"
] | permissive | spacetime314/python3_ios | 4b16ab3e81c31213b3db1e1eb00230621b0a7dc8 | e149f1bc2e50046c8810f83dae7739a8dea939ee | refs/heads/master | 2020-05-09T20:39:14.980041 | 2019-04-08T15:07:53 | 2019-04-08T15:07:53 | 181,415,024 | 2 | 0 | BSD-3-Clause | 2019-04-15T05:00:14 | 2019-04-15T05:00:12 | null | UTF-8 | Python | false | false | 1,075 | py | '''
=================================
3D surface with polar coordinates
=================================
Demonstrates plotting a surface defined in polar coordinates.
Uses the reversed version of the YlGnBu color map.
Also demonstrates writing axis labels with latex math mode.
Example contributed by Armin Moser.
'''... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
2a39ee5245c8e52dc5d1316e6515469db668b9c7 | dd6ea0bfbaf6ed6eaab919398f6b2c21bc03c0c6 | /setup.py | 6f214ef68e95a0657105c4ac598fcf4abc45bf9c | [
"BSD-2-Clause"
] | permissive | oliverzgy/wechat-python-sdk | 32f0b3622f30072d74e5affd268742e01876c6fe | eafd27521feea92215aae8b0ed0887ee40703dc9 | refs/heads/master | 2021-01-20T23:40:38.744050 | 2015-02-06T15:04:59 | 2015-02-06T15:04:59 | 30,707,434 | 0 | 1 | null | 2015-02-12T14:59:58 | 2015-02-12T14:59:58 | null | UTF-8 | Python | false | false | 591 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='wechat-sdk',
version='0.5.2',
keywords=('wechat', 'sdk', 'wechat sdk'),
description=u'微信公众平台Python开发包',
long_description=open("README.rst").read(),
license='BSD License',
url='https://g... | [
"doraemonext@gmail.com"
] | doraemonext@gmail.com |
433c74652da8834ac5064d09ce7f8a68abd9384a | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /backup_write_3/backup-vault-notification_put.py | 6ea0433dce6df72d7c2c3e9b44bc794bccbba370 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_three_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/backup/put-backup-vault-notifications.html
if ... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
889ff2dd9c9418259b6ee467ef8771eb521c7d26 | 34de2b3ef4a2478fc6a03ea3b5990dd267d20d2d | /Python/science/integration/myintegration.py | 8d3710164567f2f0d1c663cd3b2fab77d9da7592 | [
"MIT"
] | permissive | bhishanpdl/Programming | d4310f86e1d9ac35483191526710caa25b5f138e | 9654c253c598405a22cc96dfa1497406c0bd0990 | refs/heads/master | 2020-03-26T06:19:01.588451 | 2019-08-21T18:09:59 | 2019-08-21T18:09:59 | 69,140,073 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #!/usr/bin/env python3
# integrate ax from 0 to 3 with a = 5
# using scipy.integrate.quad
# intgrand = 5x
# limit = 0 to 3
# ans = 5x**2/2 = 2.5 x**2
from scipy import integrate
import numpy as np
a = 5
# lambda method
fun = lambda a,x: a*x
# function method
def fun(a,x):
return a*x
y = integrate.quad... | [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
636f25285e5b1ceca841e1881768541bb14c88ca | b57b0a14df5c6841f04cccb7b02ad04afbca18f8 | /etcd/datadog_checks/etcd/__about__.py | c75a87ea64bdb4e76aadd942c28a4a1a906e0f36 | [
"AFL-3.0",
"BSD-3-Clause-Modification",
"LGPL-3.0-only",
"Unlicense",
"LGPL-2.1-only",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zeroc0d3/integrations-core | d9c99803c049668b7f9f9c796d338e343d3d46ee | 634d567f3c38d32aabb3f4c16b50bcfa8a4ae0fb | refs/heads/master | 2021-09-28T18:37:00.650406 | 2021-09-13T11:59:45 | 2021-09-13T11:59:45 | 199,758,958 | 0 | 0 | BSD-3-Clause | 2019-07-31T02:01:25 | 2019-07-31T02:01:24 | null | UTF-8 | Python | false | false | 138 | py | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
__version__ = '2.7.1'
| [
"noreply@github.com"
] | zeroc0d3.noreply@github.com |
3c47c84faa7edc6e871e1909b808a873271d09c8 | 20a3cc1106fa86fc2d45cd1728cc87d5db97e1f7 | /jiayq/utils/timer.py | 3607ee673ddbb8d716631baa9d2b02da0848a641 | [] | no_license | sarahboufelja54/galatea | f5664f0b3117629b2c5bbe078a1bd52bb5e359e6 | 002a9f2905868be25b71770190fb2d5eda11c861 | refs/heads/master | 2020-12-04T13:45:07.697189 | 2018-12-12T16:27:09 | 2018-12-12T16:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | from time import time
from jiayq.utils import mpiutils
def hms(t,template='{}h {}m {:.2f}s'):
'''
format the time value to "xxh xxm xxs"
'''
# not implemented
hour = int(t / 3600.0)
t = t % 3600.0
minute = int (t / 60)
t = t % 60
return template.format(hour,minute,t)
class Timer:
... | [
"goodfellow.ian@gmail.com"
] | goodfellow.ian@gmail.com |
094a8e5ce8cf0d9bb819ce0a32723b0f2da0c8a8 | d652c5cd50abc59163288f67aabf511edf2ffc16 | /{{cookiecutter.package_name}}/sandbox/settings/demo.py | 3d99764e0583de7cbdf4e92da06122dc22131747 | [
"MIT"
] | permissive | sveetch/cookiecutter-sveetch-djangoapp | 2f883958a665a84423f9dcc0bbd794a67d91fb0e | 6770a00e5ed67702f61543c0495bc55dcebdc76a | refs/heads/master | 2023-04-03T18:05:59.380348 | 2023-03-17T16:26:15 | 2023-03-17T16:26:15 | 297,186,173 | 3 | 1 | null | 2020-10-12T00:52:41 | 2020-09-21T00:04:59 | null | UTF-8 | Python | false | false | 462 | py | """
Django settings for demonstration
Intended to be used with ``make run``.
"""
from sandbox.settings.base import * # noqa: F403
DEBUG = True
TEMPLATES[0]['OPTIONS']['debug'] = DEBUG # noqa: F405
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": VAR_PATH / "db" / "db.... | [
"sveetch@gmail.com"
] | sveetch@gmail.com |
d679a89de0c76f528dd84256305a04ee5ca93ed2 | 267298206e19567d2399cd32f7d4ac264f470760 | /sorbet/feedmanager/migrations/0007_chg_field_item_title.py | aec0e9a9cd82eb62705c3e8b0e8c653aec319cef | [
"BSD-3-Clause",
"CC-BY-3.0",
"BSD-2-Clause"
] | permissive | kklimonda/sorbet | e340b4d5749ddb06e313f6b17f968b4391072cf8 | d7d0d04fbd6ba16700a7549cfe1d240ca51693af | refs/heads/master | 2021-01-18T06:30:10.063506 | 2012-07-15T06:20:16 | 2012-07-15T06:20:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,256 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Item.title'
db.alter_column('feedmanager_item', 'title', self.gf('django.db.models.fields.... | [
"isaac@bythewood.me"
] | isaac@bythewood.me |
14b2ba3ed8ddd6c1f75e8bf51a7f5fba38312c1d | 283f9fc69e0b00051a79232fc2cbaabdab589c18 | /flashsale/pay/migrations/0004_create_brand_and_brand_product_add_amount_flow_outer_id.py | 3b6952a54f9dc87a3d6b483977e5c893ab1de7a5 | [] | no_license | nidepuzi/ndpuzsys | 572b67a84fcd6c4fa4d49d3bdb0eb826e7791e62 | be58dc8f1f0630d3a04e551911f66d9091bedc45 | refs/heads/master | 2023-01-06T22:52:49.861479 | 2019-07-09T11:00:06 | 2019-07-09T11:00:06 | 188,955,119 | 1 | 0 | null | 2022-12-26T20:15:24 | 2019-05-28T04:41:35 | Python | UTF-8 | Python | false | false | 4,309 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('pay', '0003_auto_20160425_1212'),
]
operations = [
migrations.CreateModel(
name='BrandEn... | [
"xiuqing.mei@xiaolu.so"
] | xiuqing.mei@xiaolu.so |
46e9f7c42f8a3f5978431277c2b11a34a1bd58df | 1ffc17893d9e15fd939628bbc41c3d2633713ebd | /tests/test_utils/reference_implementation_helper.py | e703d38310611aa42b79f1811d54ed8bc4f70b02 | [
"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 | 4,801 | py | # SPDX-License-Identifier: Apache-2.0
import numpy as np
def ErfInv(x):
sgn = -1. if x < 0 else 1.
x = (1. - x) * (1 + x)
log = np.log(x)
v = 2. / (3.14159 * 0.147) + 0.5 * log
v2 = 1. / 0.147 * log
v3 = -v + np.sqrt(v * v - v2)
x = sgn * np.sqrt(v3)
return x
def ComputeLogistic(val)... | [
"noreply@github.com"
] | xadupre.noreply@github.com |
c9186add6d0c25f076889a28cd4e487475439e09 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_com1.py | c9f4959959fa47cab33563e9c613b6405be5674a | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | from xcp2k.inputsection import InputSection
from _each74 import _each74
class _com1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.Filename = None
self.Log_p... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1c850d20f46c8bacea3e2001b3b00d03e4f2e38e | 5d1c43bb4881039f198eedcee2ceb101b406e0a0 | /Django/myvenv/Scripts/rst2man.py | 52894792e98bd74e7fc0f83fd5849d6aff9320c2 | [] | no_license | MunSeoHee/Likelion_Gachon_2020 | 46155b1686a245a59c5664f7726ac754b7079e4b | e0e48845fdb0e4aa2365e7c47e29880a27f0f261 | refs/heads/master | 2021-04-10T09:51:06.618980 | 2020-12-07T10:06:43 | 2020-12-07T10:06:43 | 248,927,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!c:\users\munseohee\desktop\likelion_gachon_2020\django\myvenv\scripts\python.exe
# Author:
# Contact: grubert@users.sf.net
# Copyright: This module has been placed in the public domain.
"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructured... | [
"nansh9815@naver.com"
] | nansh9815@naver.com |
8f06941c60c03810aab9bda1e07ab6e226fdb88d | 74d17bf3d5485ffa7fe795b633f461277b1a0e40 | /mall/utils/token_jwt.py | 9f6bdc1c94a1663630df923d329b870e42591943 | [] | no_license | py-king/ready | 6ddc7e8b830742bcdeb696791ec49ad9d30f2296 | e352aa335b07f6852f4c99e7fbd030f2eb8f16da | refs/heads/master | 2022-12-09T13:31:38.199448 | 2019-01-24T02:13:35 | 2019-01-24T02:13:35 | 167,284,151 | 2 | 0 | null | 2022-12-08T02:29:02 | 2019-01-24T01:52:28 | HTML | UTF-8 | Python | false | false | 359 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# author:caozy time:19-1-10
from rest_framework_jwt.settings import api_settings
def token_jwt(user):
jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER
jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER
payload = jwt_payload_handler(user)
token = jwt_en... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
77565a9d8c3f31e8f3d58e03818152374b4ed0b0 | ef821468b081ef2a0b81bf08596a2c81e1c1ef1a | /PythonWebBasics_Django/Django_Web_Basics/manage.py | 9e82bfc16fd0851d60bb007f7e74d85d2250139e | [] | no_license | Ivaylo-Atanasov93/The-Learning-Process | 71db22cd79f6d961b9852f140f4285ef7820dd80 | 354844e2c686335345f6a54b3af86b78541ed3f3 | refs/heads/master | 2023-03-30T20:59:34.304207 | 2021-03-29T15:23:05 | 2021-03-29T15:23:05 | 294,181,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Django_Web_Basics.settings')
try:
from django.core.management import execute_from_command_line
e... | [
"ivailo.atanasov93@gmail.com"
] | ivailo.atanasov93@gmail.com |
ee216ef4dc793f6328f24c7d46838a6ff173f7bf | 0b80791593076c266c682226a001a06c4b02fcf8 | /backend/mobile_build_a_dev_16819/urls.py | eea5aa0e16aece39f5771d77abe0ac6f55e3d09d | [] | no_license | crowdbotics-apps/mobile-build-a-dev-16819 | 1b697601504f5a42cefc30fd6d764312869a210a | 80d6870f71371273eddddb7416d5672623d4510e | refs/heads/master | 2023-02-07T10:56:17.932363 | 2020-12-16T14:17:06 | 2020-12-16T14:17:06 | 322,003,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | """mobile_build_a_dev_16819 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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='h... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3e395ec76d78e4c609fdde7e8103b501babf72a7 | 2fba0a631bb70aaae6dc89bff09f13e728934605 | /privacy/migrations/0038_auto_20200602_1034.py | db62c8fff5c90f19cdb26e9b6407b2889ebb2669 | [] | no_license | murengera/eshoping-api | 4c5bcbeb7ac3ef12858e08f8a88d4f7b710b5c64 | 90acb0f8db519a38a1bd0976bd1f704f6d02f2dd | refs/heads/master | 2022-12-25T10:19:39.431427 | 2020-09-26T12:35:38 | 2020-09-26T12:35:38 | 286,399,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # Generated by Django 3.0 on 2020-06-02 08:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('privacy', '0037_auto_20200602_1031'),
]
operations = [
migrations.AlterField(
model_name='privacypoliciesandtermsofuse',
... | [
"daltonbigirimana5@gmail.com"
] | daltonbigirimana5@gmail.com |
8796bd002abd785667c8defcd90ef90f7d1870ed | b5402b40b69244380bc0d3f85ff65483d0505181 | /bot/event.py | b4768733a97c8525da2b9963c7e42ad67f84ca50 | [
"MIT"
] | permissive | RxJellyBot/Jelly-Bot | ea7b6bd100431736732f9f4cc739858ec148e3e2 | c7da1e91783dce3a2b71b955b3a22b68db9056cf | refs/heads/master | 2023-08-29T20:41:01.813945 | 2021-10-20T05:27:21 | 2021-10-20T05:27:21 | 189,347,226 | 5 | 1 | MIT | 2020-09-05T00:50:41 | 2019-05-30T04:47:48 | Python | UTF-8 | Python | false | false | 1,298 | py | """
Events for the bot to trigger after certain conditions are met.
Methods prefixed with ``signal_`` should be called when the certain event occurs.
Methods prefixed with ``on_`` will be executed on all of the events specified occur.
"""
from django.conf import settings
from JellyBot.systemconfig import System
from... | [
"raenonx0710@gmail.com"
] | raenonx0710@gmail.com |
e1c6b71f6753abc16634e2ceac2ea85cb7d57daf | 5754e080348df0fc7f1fffe46c6909edf681ee79 | /branch/dome2-12.py | 463148dadbe21d3912ba1bb5f43a3507a8d00409 | [] | no_license | biao111/learn_python | 57e373d62979096b94b9ea96664dec3b7d88dfce | 609a6a9634a37ecd1c59fa639fcca1eaa6472bfd | refs/heads/master | 2023-01-05T23:15:39.670105 | 2020-11-08T05:23:57 | 2020-11-08T05:23:57 | 310,991,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | #定义变量year,并接收“请输入正确的年份:”
year = input("请输入正确的年份")
#判断是否是闰年:1、能被4整除,但是不能被100整除的年份 2、能被400整除的年份
if int(year) / 4 and not int(year) / 100 and int(year) / 400:
print("{0}年是闰年".format(year))
else:
print("{0}年不是闰年".format(year)) | [
"18211149974@163.com"
] | 18211149974@163.com |
332fdd820f0bc7ff950fcaeb827614a42af1283e | 6e932aa6ec9424ae0238c559112fdd0214c52be6 | /ffawp/ch03/6_excel_value_match_pattern.py | d1e792c640076832617e29f290e915655527f22c | [] | no_license | LingChenBill/python_first_introduce | d1c780dcd3653ef4cda39cc4a0c631a99071f088 | 32ff4a16fe10505fcb49e4762fc573f5f1c62167 | refs/heads/master | 2020-07-29T13:03:15.447728 | 2020-06-09T13:39:07 | 2020-06-09T13:39:07 | 209,813,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | # Date:2020/5/24
# Author:Lingchen
# Mark: 使用基础Python筛选出Excel中客户姓名包含一个特定模式(以大写字母J开始)
# python 6_excel_value_match_pattern.py data/sales_2013.xlsx data/output/6_output.xlsx
import sys
import re
from datetime import date
from xlrd import open_workbook, xldate_as_tuple
from xlwt import Workbook
input_file = sys.arg... | [
"lingchen1316@163.com"
] | lingchen1316@163.com |
a8ac8c461732d4ded453bead82fc9acec29dbbba | ac5e52a3fc52dde58d208746cddabef2e378119e | /schedRUN/batchExps.py | 7db0515b331adb3b60252aaf47cb1feafd1af7df | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | #!/usr/bin/env python
import expconfig as cfg
import model.SystemResourceGenerator as generator
import schedulability.schedulabilityRUN as mySched
#x = utilLimit, y=resDistr
def saveFile(fileName, Data, resN, reqN, resW):
out_file = open(fileName,"w")
out_file.write("# utilLimit, resDistr, success\n")
for k1 ... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
45a2dc394fecfadccc2ed49b79f85b17928b0fb6 | aa369073fab4f8e13ac27a714fe0d975a5a4a9ed | /mathematics/math/math_isinf.py | 38f0c57b3c57471a56b8a47acecc32dda6634bd6 | [] | no_license | ramsayleung/python3-module-of-week | 4076599a8b1d8aa5794de5d73e2083555abe9f0c | 54266c7e62025c3816a6987191c40f3bc0fdd97c | refs/heads/master | 2021-06-18T09:07:30.256614 | 2017-06-25T10:14:54 | 2017-06-25T10:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | import math
print('{:^3} {:6} {:6}{:^}'.format('e', 'e', 'x**2', 'isinf'))
print('{:-^3} {:-^6} {:^6} {:-^6}'.format('', '', '', ''))
for e in range(0, 201, 20):
x = 10.0**e
y = x * x
print('{:3d} {:<6g} {:<6g} {!s:6}'.format(e, x, y, math.isinf(y)))
| [
"samrayleung@gmail.com"
] | samrayleung@gmail.com |
934d2b157de713c6d466541d5d13b2e7e9e822df | 9aa488e813b6986d463b35a394a997727a2b26e2 | /NimGame.py | 710f59aac2f9cd39102407a9ac5574b1c545f0ad | [] | no_license | s781825175/learnpython | 5fb2304e3183acb0faa068470b416620115c07dc | 458c84693d8a27e13dab5cb0dc649f894dbba621 | refs/heads/master | 2020-12-30T10:49:13.531546 | 2017-12-14T10:01:32 | 2017-12-14T10:01:32 | 98,855,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | class Solution(object):
def canWinNim(self, n):
"""
:type n: int
:rtype: bool
"""
return bool(n%4)
a=Solution()
n=4
b=a.canWinNim(n)
print(b)
| [
"781825175@qq.com"
] | 781825175@qq.com |
35391ce5c447621ce5679aed9db59627ffd82563 | a4681043cb56a9ab45be32a62fa9700b391f087f | /16-Hypothesis_Testing_with_SciPy/P-Values.py | f449cb0cb34998455568dd581dbc9c0f9e642373 | [] | no_license | MarceloDL-A/Python | b16b221ae4355b6323092d069bf83d1d142b9975 | c091446ae0089f03ffbdc47b3a6901f4fa2a25fb | refs/heads/main | 2023-01-01T02:29:31.591861 | 2020-10-27T19:04:11 | 2020-10-27T19:04:11 | 301,565,957 | 0 | 0 | null | 2020-10-27T19:04:12 | 2020-10-05T23:41:30 | Python | UTF-8 | Python | false | false | 1,894 | py | """
A p-value of 0.05 means that if the null hypothesis is true, there is a 5% chance that an observed sample statistic could have occurred due to random sampling error. For example, in comparing two sample means, a p-value of 0.05 indicates there is a 5% chance that the observed difference in sample means occurred by ... | [
"marcelo.delmondes.lima@usp.br"
] | marcelo.delmondes.lima@usp.br |
4e9e704c291b63d48880b728ff72d7853655dd19 | 0381663735f6187eaba2a080972c696fef6a122c | /tests/test_transforms.py | aa34fda2fe829d05a840aac3a1b185df62f77444 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ankitshah009/CovidPrognosis | 3cfe8740511ff6672d3d27b547d83ba83eb6eb48 | febabc43a56a1c55e5237513f85f592f578910ea | refs/heads/master | 2023-02-28T08:14:17.475669 | 2021-02-08T07:50:53 | 2021-02-08T07:50:53 | 330,040,422 | 0 | 0 | MIT | 2021-02-08T07:50:54 | 2021-01-15T22:57:31 | null | UTF-8 | Python | false | false | 5,321 | py | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
import covidprognosis.data.transforms as cpt
import numpy as np
import pytest
import torch
import torchvision.transforms as tvt
from scipy.ndi... | [
"matt.muckley@gmail.com"
] | matt.muckley@gmail.com |
ad3872fe9215e5b4563df49a87e54b6899c3d9a4 | 316b8375a7ef8095f09973d13f5a49bc7fbe7580 | /leetcode/1319.py | f921bc8cfc4b6c03132ff116954b9e8c0afdc9b9 | [] | no_license | zhaolijian/suanfa | 9a8d23fbca01d994f7eef24631783c4b7ed25683 | 4f3b25f360f30c0e604ba4dc4d5774ccb5f25b32 | refs/heads/master | 2023-06-08T17:12:41.522937 | 2021-06-27T08:13:16 | 2021-06-27T08:13:16 | 313,269,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | # 用以太网线缆将 n 台计算机连接成一个网络,计算机的编号从 0 到 n-1。线缆用 connections 表示,其中 connections[i] = [a, b] 连接了计算机 a 和 b。
# 网络中的任何一台计算机都可以通过网络直接或者间接访问同一个网络中其他任意一台计算机。
# 给你这个计算机网络的初始布线 connections,你可以拔开任意两台直连计算机之间的线缆,并用它连接一对未直连的计算机。
# 请你计算并返回使所有计算机都连通所需的最少操作次数。如果不可能,则返回 -1 。
# 如果线数<n-1,则返回-1
# 否则线数肯定够,返回连通分量数-1
class Solution:
def makeC... | [
"820913569@qq.com"
] | 820913569@qq.com |
1f48b579b46935fd936d8a0e11a65d6de57091ac | 6c492996b452423ff3c02ae2bda35c806b5e2beb | /ALDS1_3_C.py | 8c03c6d04d4818cf18920a385da7b33829d1b0aa | [] | no_license | TakuroKato/AOJ | 4764820aa0fc523d1f2719d968ab9a30069cdef7 | cdcf173eca3079c89041967121f746b200d39ea7 | refs/heads/master | 2021-05-09T17:34:24.953074 | 2018-01-27T07:09:04 | 2018-01-27T07:09:04 | 119,141,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # -*- coding:utf-8 -*-
n = int(input())
arr = []
for i in range(n):
c = input()
try:
tmp = c.split()
com = str(tmp[0])
num = int(tmp[1])
except:
com = str(c)
num = -1
if num != -1:
if com == 'insert':
arr.insert(0,num)
if com == 'delet... | [
"kttk.aero@gmail.com"
] | kttk.aero@gmail.com |
9ba9418423e0772feb3012850b6a1961edec013b | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/201-300/week 239/1851. Minimum Interval to Include Each Query/Minimum Interval to Include Each Query.py | 11dc19b8a31558f91781f8fb8511f15ad9f7d71f | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | #!/usr/bin/env python
# -*- coding:utf-8 _*-
"""
@author: wangye(Wayne)
@license: Apache Licence
@file: Minimum Interval to Include Each Query.py
@time: 2021/05/02
@contact: wang121ye@hotmail.com
@site:
@software: PyCharm
# code is far away from bugs.
"""
from typing import *
import heapq
class Solution:
... | [
"905317742@qq.com"
] | 905317742@qq.com |
ff2271359db1616124e1268faddb92c674bae44a | 7b47c686684e145ad06f2096c4be9fcf4dba4c68 | /regress_nn.py | e40313ea874bca697c0ccb86cfd15631c9e9e903 | [] | no_license | evanthebouncy/learn_torch | 3e5f52fb9dc7d8dbcf6fe5f2f3dcaf252c523512 | d612375e1b0f6b8dee667e25644d03d297e3da65 | refs/heads/master | 2020-04-09T19:00:59.485452 | 2018-03-07T19:01:37 | 2018-03-07T19:01:37 | 124,240,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | import torch
from torch.autograd import Variable
import numpy as np
# generate the data
A = np.array([[1.0, 2.0],[3.0, 4.0]])
B = np.array([[4.0, 3.0],[2.0, 1.0]])
def to_torch(x):
x = Variable(torch.from_numpy(x)).type(torch.cuda.FloatTensor)
return x
def gen_xy():
x = np.random.rand(2)
y = np.matmul(A,x) i... | [
"evanthebouncy@gmail.com"
] | evanthebouncy@gmail.com |
2befe10f9db67c105252acf3bd768d479655c6b7 | 886400ec768a04900761a2487ef473daf5acdd6c | /recipes/nysopwdd_providers/build.py | b6ae36c3ba33b39e314f412f973558856b6b8ab2 | [] | no_license | NYCPlanning/db-data-recipes | b058ae9abcee8dc916ee9f36e13c57aad53af0dc | 29ea8e1dc0a4d6dc0dd1704c68389e73f318227a | refs/heads/master | 2020-04-30T18:37:10.044641 | 2019-11-08T17:52:57 | 2019-11-08T17:52:57 | 177,013,624 | 2 | 0 | null | 2019-08-02T16:14:20 | 2019-03-21T19:47:58 | Python | UTF-8 | Python | false | false | 582 | py | from dataflows import *
from lib import joined_lower, create_base_path, dump_to_s3
def ETL():
table_name = 'nysopwdd_providers'
url = 'https://data.ny.gov/api/views/ieqx-cqyk/rows.csv?accessType=DOWNLOAD'
base_path = create_base_path(__file__)
Flow(
load(url, name=table_name, format='csv', fo... | [
"caobaiyue@gmail.com"
] | caobaiyue@gmail.com |
6a52daae1178628c2ebb5e4f1b022cb05d9e4e8f | 60c18eefd903957622a8bd9dc2b7c8522d13552b | /app/jobs/pay.py | e85ffd8937a57dc6377f72492f10e4b47bb4a1b1 | [] | no_license | 15051882416/food_shop | f2868ac7ca63e9e8e36564f979c0c9585e5a22f0 | 0033580a08da6e7f043153e5d3dd382333a9eac2 | refs/heads/master | 2022-03-03T01:45:25.648296 | 2019-02-21T03:25:58 | 2019-02-21T03:25:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from datetime import datetime, timedelta
from flask_script import Manager
from app.libs.enums import OrderStatus
from app.models import Order
from app.service.order import OrderService
from food_shop import app
pay = Manager()
@pay.command
def pay_deadline():
now = datetime.now()
date_30mins_ago = (now - t... | [
"zcxyun@126.com"
] | zcxyun@126.com |
5c39684cc433176e05bd518b1786f2fcb92b87d7 | c9198b0524f07648804d4dd556865840ccbc0195 | /main.py | ae1faa23dccd98e0bc7a82e73d9e48040861b4f3 | [] | no_license | p9s/spider_main | 64e83d5831c2b9095ae7bb6f8707f0576091e4bb | b63b7663c6b70f3d7d49201edea806eab778db37 | refs/heads/master | 2021-07-23T04:34:50.586697 | 2017-11-02T02:57:51 | 2017-11-02T02:57:51 | 109,651,350 | 1 | 0 | null | 2017-11-06T05:24:39 | 2017-11-06T05:24:39 | null | UTF-8 | Python | false | false | 158 | py | import time
import os
os.system('python resetnew.py')
os.system('python word_key.py')
os.system('python set_AZCM.py')
os.system('python word_count_key.py')
| [
"campanulamediuml@gmail.com"
] | campanulamediuml@gmail.com |
3ced7480cec0ff578a70ba52ceb9a6776529471d | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/test/workbook/test_check_images.py | 557841a96a86143abdc923cc767ad74e85ab9dd2 | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 1,358 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org
#
import unittest
from io import StringIO
from ...workbook import Workbook
from ...exceptions import Undefine... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
054fa4e0d4cc7c36581cb80e72ee24794728aa75 | c781392896fd2498670bdb2eef9c6f6c43cea6bf | /feder/questionaries/models.py | b89eff9cb28b37e37fc10124f863c21c6d6662f9 | [
"MIT"
] | permissive | fossabot/feder | f35b7485bfe76f9a85e6434ddd97a8c3a4f53ade | c73ebb119e9e620f367e6cf59334e6e9cb13b592 | refs/heads/master | 2021-07-05T04:27:24.801358 | 2017-09-29T23:17:18 | 2017-09-29T23:17:18 | 105,324,724 | 0 | 0 | null | 2017-09-29T23:17:17 | 2017-09-29T23:17:17 | null | UTF-8 | Python | false | false | 2,123 | py | from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
from jsonfield import JSONField
from model_utils.models import TimeStampedModel
from feder.monitorings.models import Monitoring... | [
"naczelnik@jawnosc.tk"
] | naczelnik@jawnosc.tk |
4626e411c019e6382bd13482f3b826e081d71712 | a697a38b37c4cf0a9d6c3439faf7a04d3d8c7766 | /tests/test_spyd/test_utils/test_rate_limiter.py | 5cf89c82abb4f7d3001b9c5cadf6764dc8fca1d4 | [
"Zlib"
] | permissive | fdChasm/spyd | e22ea50c7dbcd9901edcb7e989a455b6db40ec1e | 38e070d10290c2da1e9e5c2226aace871e4dcc59 | refs/heads/master | 2021-01-10T20:01:25.684294 | 2014-03-19T03:47:38 | 2014-03-19T03:47:38 | 13,235,339 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import unittest
from twisted.internet import task
from spyd.utils.rate_limiter import RateLimiter
class TestRateLimiter(unittest.TestCase):
def setUp(self):
self.clock = task.Clock()
RateLimiter.clock = self.clock
self.rate_limiter = RateLimiter(5)
def test_check_drop_first_second(s... | [
"fd.chasm@gmail.com"
] | fd.chasm@gmail.com |
7844f97bf551ed550c53a8663218ff44d86b27c2 | 3f64e138f14e3555d3750327961fa8bdf7ef3894 | /tests/test_utils.py | 98c5d830e14c8029c42a174ba56eed26ac6d8889 | [] | no_license | potykion/repka | 1f2cb76fac6e55d1b397bc3376c0c2734937603e | 4af753fd7ca85df34a2d56846abfee209f199ea1 | refs/heads/master | 2021-06-24T08:51:45.699627 | 2021-01-16T20:26:39 | 2021-01-16T20:26:39 | 194,866,011 | 15 | 6 | null | 2021-01-16T19:42:13 | 2019-07-02T13:13:38 | Python | UTF-8 | Python | false | false | 1,376 | py | import datetime as dt
import pytest
from aiopg.sa import SAConnection
from pydantic import BaseModel
from repka.utils import model_to_primitive, create_async_db_connection
class MyModel(BaseModel):
id: int
title: str
created: dt.datetime
@pytest.fixture()
def model() -> MyModel:
return MyModel(id=... | [
"potykion@gmail.com"
] | potykion@gmail.com |
4701c32f3cea059e7d98f62136b9bdb9e14346a0 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/programa-stic_barf-project/barf-project-master/examples/scripts/arm/check_constraint1.py | 0575fae11d2ef320c4090b71d86c5307d021bd56 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,988 | py | #! /usr/bin/env python
import os
import sys
from barf import BARF
from barf.arch import ARCH_ARM_MODE_ARM
if __name__ == "__main__":
#
# Open file
#
try:
filename = os.path.abspath("../../bin/arm/constraint1")
barf = BARF(filename)
except Exception as err:
print err
... | [
"659338505@qq.com"
] | 659338505@qq.com |
3fe0429d361d570d27e0ba30b97de0e16a82479a | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/quota/azure-mgmt-quota/azure/mgmt/quota/aio/_quota_mgmt_client.py | 48fc3c78a5d268c271a5b23817271d60686e4814 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,808 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
904911564f504e2a80881c6d84483ecf5f71f3ff | ccae8d40438c4f569463fd422d12fff7baaeba16 | /Utils/Timer.py | 9047838faf2e19200dac23dc3375fe42f8e63e88 | [] | no_license | Occy88/console_game | 2fab618812091d61a40951d15813bd7f603392a6 | 4a70e9188c2061db35712aa4dd0d91b913ee9842 | refs/heads/master | 2022-12-03T20:21:09.494594 | 2021-01-01T14:00:07 | 2021-01-01T14:00:07 | 240,998,812 | 0 | 0 | null | 2022-11-22T05:19:24 | 2020-02-17T01:52:04 | Python | UTF-8 | Python | false | false | 881 | py | import time
class Timer:
def __init__(self):
self.timer_start = 0
self.timer_end = 0
self.elapsed = 0
self.running = False
self.prev_lap = 0
def poll(self):
if self.running:
return time.time() - self.timer_start
else:
return self... | [
"octavio.delser@gmail.com"
] | octavio.delser@gmail.com |
e345860053111c2bfa4a40e308126db75975ad68 | 8928c4745515ffecfc581da36df47b0789fb463f | /Chapter_5/downloader.py | ab075c69084a83f6cf614df2e43a8f8bc16ed2ff | [] | no_license | iluxonchik/webscraping-with-python-book | 72da36ba8fae016ccc20d44753ec4c46bc933dee | ffc5a1459778649d081c62812c8d3edbb2f120a9 | refs/heads/master | 2021-01-10T10:19:12.443341 | 2016-01-21T21:50:11 | 2016-01-21T21:50:11 | 48,058,040 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import os
from urllib.request import urlretrieve
from urllib.request import urlopen
from bs4 import BeautifulSoup
downloadDirectory = "downloaded"
baseUrl = "http://pythonscraping.com"
def getAbsoluteURL(baseUrl, source):
if source.startswith("http://www."):
url = "http://" + source[11:]
elif source.startswith("h... | [
"iluxon4ik@hotmail.com"
] | iluxon4ik@hotmail.com |
fc2ab2260587bdda8ade496a114f769bb62fa695 | 06671e14ae54f887be05a64c632712537d38add6 | /integration_distributed_training/server/sanity_check_redis.py | be2d662f50ca2b88be7b8e88384c2d38df63a90f | [] | no_license | Jessilee/ImportanceSamplingSGD | cf74a220a55b468b72fed0538b3a6740f532fcb2 | 0831b9b1833726391a20594d2b2f64f80e1b8fe2 | refs/heads/master | 2021-01-24T10:12:48.285641 | 2016-02-05T19:25:34 | 2016-02-05T19:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,488 | py |
import redis
import numpy as np
import time
import progressbar
import signal
import sys
from redis_server_wrapper import EphemeralRedisServer
def start_redis_server(server_port=None):
server_scratch_path = "."
if server_port is None:
server_port = np.random.randint(low=1025, high=65535)
#se... | [
"gyomalin@gmail.com"
] | gyomalin@gmail.com |
d516c0765a53652ce4b81c21c84245df87e8baf7 | 3419067388879d8a6542df01cb0278ae90b021a2 | /面向对象02/04-__del__方法.py | 4f57a186c20066a4ae3cea8e7927fc016c4ee51b | [] | no_license | oweson/python-river-master | faa31c5248e297a92054cc302e213e2b37fb8bd5 | cf9e99e611311b712465eb11dec4bb8f712929b2 | refs/heads/master | 2021-06-21T15:47:01.755957 | 2019-10-02T00:08:05 | 2019-10-02T00:08:05 | 205,607,518 | 0 | 0 | null | 2021-06-10T21:55:20 | 2019-08-31T23:39:55 | Python | UTF-8 | Python | false | false | 526 | py | class Dog:
def __init__(self):
print("英雄出生啦!")
def __del__(self):
print("-----英雄over------")
dog1 = Dog()
dog2 = dog1
pig = dog2
del pig
del dog1 # 不会调用 __del__方法,因为这个对象 还有其他的变量指向它,即 引用计算不是0
del dog2 # 此时会调用__del__方法,因为没有变量指向它了
print("====================")
# 如果在程序结束时,有些对象还存在,那么python解释器会... | [
"570347720@qq.com"
] | 570347720@qq.com |
d6451583c9261fe045e59096f4413197ec245229 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03816/s835463454.py | bb046e7283c6af48d8494de5f20feb193506bf36 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | N = int(input())
A = list(map(int, input().split()))
s = set(A)
if len(s)%2 == 0:
ans = len(s)-1
else:
ans = len(s)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
853bed2cb752c48a90ca0259b3a04f2b8aee8684 | 6160586aa239eada16e735d40d57970dedbe1dfc | /modules/ifttt_manage/ifttt_scene_query/ifttt_scene_query_detail.py | 042e1159acc9f5254e74791f0a6593cdb8438812 | [] | no_license | showgea/AIOT | 7f9ffcd49da54836714b3342232cdba330d11e6c | fe8275aba1c4b5402c7c2c2987509c0ecf49f330 | refs/heads/master | 2020-07-23T10:19:37.478456 | 2019-09-23T12:25:59 | 2019-09-23T12:25:59 | 207,525,184 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | import requests
from config import readcfg
header_Gary = readcfg.header_Gary
header_Jenny = readcfg.header_Jenny
url = readcfg.url
def ifttt_scene_query_detail(sceneId):
url_ = url + "/app/v1.0/lumi/ifttt/scene/query/detail"
params_ = {
"sceneId": sceneId
}
proxies = {'http': 'http://127.0.0.... | [
"tangguobing2011@163.com"
] | tangguobing2011@163.com |
8c68e381114915acc331eee949fba0bca03c4ec5 | 754d39fbc163cb38bcff31d4b16bfc583242b759 | /Session20L.py | 81de6bb7d8ef42101807af128a981e9329e89bd2 | [] | no_license | MUSKANJASSAL/PythonTraining2019 | c68654b5548860c7b501252ce2289a48dbe575c3 | 0e3f226d2d7443759c92b3808d9d7f176c9a4a84 | refs/heads/master | 2020-06-22T14:39:29.491716 | 2019-07-21T10:46:10 | 2019-07-21T10:46:10 | 197,730,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
result = pd.read_csv('CityTemps.csv', delimiter = ',')
print(result)
print("Maximum Temparature of Ludhiana", result['Ludhiana'].max())
print("Maximum Temparature of Amritsar", result['Amritsar'].max())
print("Maximum Temparature of Chandigarh", r... | [
"muskan124.jassal@gmail.com"
] | muskan124.jassal@gmail.com |
9c40c6ed010c2cd1f0ebcc2470ac11538c1ffa5f | 6e9c127bd6705a8b92f240ca663163504b86cd81 | /test/test_plants/test_plants/test_noFuelPlant.py | 15637666059d8880a95372b53df0b25bedf4bd63 | [
"MIT"
] | permissive | alexanderkell/elecsim | 239ffd539d1b04f24186ddaae20ac4ce6b258c03 | df9ea14cbc8dd3fd4302be9274cb6ea61c0cdb10 | refs/heads/master | 2023-04-06T10:03:35.367411 | 2023-04-05T16:52:16 | 2023-04-05T16:52:16 | 124,561,430 | 36 | 10 | MIT | 2022-12-08T01:57:45 | 2018-03-09T15:55:53 | Jupyter Notebook | UTF-8 | Python | false | false | 2,109 | py | """
File name: test_noFuelPlant
Date created: 28/11/2018
Feature: #Enter feature description here
"""
from unittest import TestCase
from pytest import approx
from elecsim.plants.plant_type.non_fuel_plant import NonFuelPlant
__author__ = "Alexander Kell"
__copyright__ = "Copyright 2018, Alexander Kell"
__license__ ... | [
"alexander@kell.es"
] | alexander@kell.es |
6335ca36003aa92af24d10cb4f58f016985db399 | 16546a94e9f078c3e7a39337d47b21d7b71b6799 | /siphon.py | 09a895c8d1f3ff55df5b9a8edae0e64a5d8af074 | [] | no_license | mdevaev/arduino-siphon | 7c7259bb87f116fa9c0eb65b2c1b8941c11dd06a | 56a7959a13a73311faeefcd54a9f3aeb9f7989ff | refs/heads/master | 2021-01-21T08:57:33.710400 | 2016-01-09T05:06:40 | 2016-01-09T05:06:40 | 15,296,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | #!/usr/bin/env python3
import sys
import xmlrpc.client
import serial
import struct
import time
import logging
# =====
class Siphon:
def __init__(self, device):
self._tty = serial.Serial(device, 115200)
def send(self, download, upload, has_download, has_upload):
self._tty.write(struct.pack("... | [
"mdevaev@gmail.com"
] | mdevaev@gmail.com |
da97ca1fe888a2921cdd2db3c8eb5634445741f2 | 9f118ed377f62c84ff46710d15bfeb60ff43a514 | /11 - Unit 4/4.3.6.py | 17d9a7b0d37933163b49ee42961f2e80067563f1 | [] | no_license | srujanprophet/PythonPractice | 382f8bd5cc3f70504c3d62c1d8795c7451b344dc | ebc13e9f21a6b0f594d10b8524ef358c797979de | refs/heads/master | 2021-09-12T15:37:22.423484 | 2018-04-18T05:05:59 | 2018-04-18T05:05:59 | 67,717,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | c=dict()
n = input("Enter total number ")
i=1
while i<=n:
a=raw_input("enter place")
b=raw_input("enter number")
c[a]=b
i=i+1
print "place","\t","number"
for i in c:
print i,"\t",c[i]
| [
"noreply@github.com"
] | srujanprophet.noreply@github.com |
743e4f277a0e2c96bc6bd00fda0b9a9e8941dddb | bd06d7672673370fb6fde1e2f9c5364fb131f2c9 | /s02e03.py | b61732294b523dfd70d6bacddf59f9c3f4200712 | [] | no_license | tjmode/python | 12e327b644b1579af1f47de20dc579737f6be202 | a99c45e18d5f453747d0caaa9b96aedc84d23bc8 | refs/heads/master | 2020-08-30T10:49:27.190948 | 2019-10-29T18:32:52 | 2019-10-29T18:32:52 | 218,356,539 | 1 | 0 | null | 2019-10-29T18:32:09 | 2019-10-29T18:32:09 | null | UTF-8 | Python | false | false | 137 | py | a=int(input())
count=0;
for i in range(2,a):
if a%i==0 :
count=count+1
if count==0 :
print("yes")
else :
print("no")
| [
"noreply@github.com"
] | tjmode.noreply@github.com |
da51bd29e9ec5c024eccd93f2c07274810ce5075 | b24e993bfae0e530b7c6ee676b0efa1b2cbea33c | /rsopt/codes/__init__.py | caa06d213dc50724c2cf5cbbba9ae378f38c5a34 | [
"Apache-2.0"
] | permissive | tanxicccc/rsopt | f99d8d721ce37647717b41c08b44f69a065444ae | 8705e937f95a4bbe6ed3fb1a04b78f724a5f3931 | refs/heads/master | 2023-01-06T19:21:40.065806 | 2020-10-24T23:48:34 | 2020-10-24T23:48:34 | 288,584,476 | 0 | 0 | Apache-2.0 | 2020-08-18T23:19:55 | 2020-08-18T23:19:54 | null | UTF-8 | Python | false | false | 403 | py | # Templated codes have schema files that can be used to check input and create run files. Otherwise user
# must supply module containing inputs
_TEMPLATED_CODES = ['elegant', 'opal']
# Supported codes have defined Job class
# FUTURE: 'Unsupported' codes could become a class of supported codes that have expanded user... | [
"chall@radiasoft.net"
] | chall@radiasoft.net |
6f7b4b4469eea1d72517868ec70829943fb7202a | df0df0aa366c323e61a397b2ea54d359bbee3469 | /forms.py | f203bdd474a96cb79067f297555d0cd69932099c | [
"Apache-2.0"
] | permissive | craigderington/snowy-owl-api | d8c3cd47bc64e9d96512a5bee49f5978ac500398 | b61141e8b4d28f82782ca30b7360ec7fe55bb8ba | refs/heads/master | 2023-02-05T00:38:41.008820 | 2020-12-23T22:49:41 | 2020-12-23T22:49:41 | 324,015,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from wtforms import Form, BooleanField, StringField, PasswordField, validators
class LoginForm(Form):
username = StringField('Username', [validators.Length(min=4, max=25)])
password = StringField('Email Address', [validators.Length(min=6, max=35)])
| [
"craig@craigderington.me"
] | craig@craigderington.me |
858debd46c8c5246143b38a6c3044dfbbb758d0b | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/learningCurve/ninetyPercent/lrClassifierC.py | a453c046d35a319d2fd070e68cd30511bf66bef3 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,133 | py | # 9 September 2019
# Kiyoto Aramis Tanemura
# I modified the rfClassifier.py script to implement a logistic regression classifier. This classifier runs faster than the random forest classifier and Jun previously observed comparable results between logistic regression and random forest classifiers for the protein fold... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
bd66eed366baf1ce93deacad00fb25566d2e9611 | c85ec637dd7202eccbab3623f0e12608f2c58c73 | /redditdownloader/tests/integration/processing/handlers/test_ytdl.py | 54bdcc840f71ebbc42637314c6bf87935b3a79c1 | [] | no_license | shadowmoose/RedditDownloader | 2d7b8d68d3be7cd63614c5019e2935e25d8548f8 | ebcb791f78e5d761efcca28b5ebd5b7e1b61df85 | refs/heads/master | 2023-07-13T09:55:21.700858 | 2023-07-02T05:02:18 | 2023-07-02T05:02:18 | 93,103,288 | 1,134 | 120 | null | 2023-05-04T05:57:26 | 2017-06-01T22:03:41 | Python | UTF-8 | Python | false | false | 1,214 | py | from tests.mock import StagedTest, mock_handler_request
from processing.handlers import ytdl
class YTDLHandlerTest(StagedTest):
""" Test the YT_DL Handler's downloading capabilities """
def test_gfycat(self):
""" Attempt Gfycat.com download """
_task, _prog, _file = mock_handler_request(self.dir, 'https://gfyc... | [
"theshadowmoose@gmail.com"
] | theshadowmoose@gmail.com |
5cc085f2bcede2101a78d224a389fcf4d5aedfc7 | 40da919c52cfdb9658b7400f26c48c11e124e315 | /ising3D.py | 0d08754fec2e3fa6bd878d34ac543fa856d3c52f | [] | no_license | bvillasen/isingModel | ae71f57c94db58ac35d3bc26b36c944b70fed2b0 | b4d47c8b563cf6f787fe9a764ccdbd560964acbe | refs/heads/master | 2021-01-19T14:07:01.017178 | 2019-11-23T22:36:08 | 2019-11-23T22:36:08 | 14,155,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,589 | py | # 3D Ising model simulation
# made by Bruno Villasenor
# contact me at: bvillasen@gmail.com
# personal web page: https://bvillasen.webs.com
# github: https://github.com/bvillasen
#To run you need these complementary files: CUDAising3D.cu, volumeRender.py, CUDAvolumeRender.cu, cudaTools.py
#you can find them in my gi... | [
"bvillasen@gmail.com"
] | bvillasen@gmail.com |
eb699c07c9e6654200ed8d1ce223b385bfd7154d | bf72d3e5a22e4deaeeb2bbdf25efc942cfa4da08 | /2013spring/cd/w16_gearwidth2.py | 5bf0ac17632b819d1e0c3a750fc5f0746e8568f3 | [] | no_license | chiamingyen/mdeCourse | e9caf13ee9f701d4641e91c04963d60aec5d85e3 | 43dea5078df8ede58d8cfaa013b94d54750feead | refs/heads/master | 2021-01-16T21:22:01.906176 | 2013-10-25T14:25:28 | 2013-10-25T14:25:28 | 8,744,258 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,394 | py | #coding: utf-8
'''
"本程式的目的在輔助設計者選擇齒輪的尺寸大小,";
"由於相囓合的兩齒輪其徑節 (Diametral Pitch) 相同";
",齒的大小也相同。因徑節為每單位直徑的齒數,因此徑節愈大,則其齒的尺寸愈小";
";反之,徑節愈小,則齒的尺寸則愈大。";
"一般在設計齒輪對時,為避免使用過大的齒及過寬的齒面厚度,因此必須要就齒輪大小與強度與負載加以設計。";
"一般而言是希望齒輪面的寬度 (Face Width) 能大於3倍周節 (Circular Pitch),以避免選用太大的齒尺寸。";
"並且希望齒輪面的寬度 (Face Width) 能小於5倍周節,以便齒面傳遞負載時能有較為均勻的分佈,因此... | [
"chiamingyen@gmail.com"
] | chiamingyen@gmail.com |
5cfb3d0d5e2118c2eb69149f2e71449e382566cd | 8d014a0120864b42748ef63dddfa3c733370118c | /layint_api/models/clair_layer.py | 930dd8c648cdb805eef50bded4091bd69bb4939c | [
"Apache-2.0",
"LicenseRef-scancode-unknown"
] | permissive | LayeredInsight/layint_api_python | 3a6cf0bf62219f09010b828d7e02c2f3852a6f6f | a5c9a5b24098bd823c5102b7ab9e4745432f19b4 | refs/heads/develop | 2020-03-27T05:43:35.831400 | 2018-10-15T22:28:54 | 2018-10-15T22:28:54 | 146,044,385 | 0 | 0 | Apache-2.0 | 2018-10-15T22:28:55 | 2018-08-24T22:11:08 | Python | UTF-8 | Python | false | false | 7,525 | py | # coding: utf-8
"""
Layered Insight Assessment, Compliance, Witness & Control
LI Assessment & Compliance performs static vulnerability analysis, license and package compliance. LI Witness provides deep insight and analytics into containerized applications. Control provides dynamic runtime security and analyti... | [
"Scott Oberg"
] | Scott Oberg |
2b8ef6e4ddfe11306702678e9a8e5c00eac0656c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02901/s181974865.py | e2137c4696abe05b40a7101f829d7767622b0d43 | [] | 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 | 442 | py | N, M = map(int, input().split())
key = []
for _ in range(M):
a, b = map(int, input().split())
s = 0
C = list(map(lambda x:int(x)-1, input().split()))
for c in C:
s |= 1<<c
key += [(s, a)]
dp = [float('inf')]*(1<<N)
dp[0] = 0
for s in range(1<<N):
for i in range(M):
t = s | key[i][0] # 遷移先
cos... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e9cac985d19977a538b2f9e0a5dcdfd6c2452669 | 971300f5983692e12805805dd49e2f77fa20250f | /src/branches/dae_dtalite_integration/core/models/abstract_regression_model.py | 9648228c09e3b79b4c09baf452bbfcb9febf81a4 | [] | no_license | MAlbertini95/simtravel | 3a18ee302f6d9ab676455caaad15461874a698a9 | 4844927243a854b9a93f1b1d93f795ff116a7212 | refs/heads/master | 2021-04-19T03:04:26.752252 | 2014-07-12T00:50:11 | 2014-07-12T00:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,342 | py | from numpy import all, array, zeros
from scipy import exp
from openamos.core.models.abstract_model import Model
from openamos.core.errors import SpecificationError, ErrorSpecificationError
class AbstractRegressionModel(Model):
def __init__(self, specification, error_specification):
"""
This... | [
"karthik.charan@8e946292-11aa-11df-992a-f3fa5211fe9f"
] | karthik.charan@8e946292-11aa-11df-992a-f3fa5211fe9f |
86b0d00083516ac574501614cf84a7ab1f14f983 | 25b2daa09d3994672936231b7949ad60292fd052 | /apps/cart/forms.py | 7c4ace067207ccb673e8085d0db87a30f6253f02 | [] | no_license | pavelm2007/shop | c1896145e3b3c43fd25c32e0e39697b6cbacadc9 | 979bbdfd51c53f1757e1cc5646e61bd71e8fce40 | refs/heads/master | 2021-01-25T10:29:50.502933 | 2014-05-15T07:54:07 | 2014-05-15T07:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,570 | py | # -*- coding: utf-8 -*-
from django import forms
from django.forms.models import inlineformset_factory
from django.contrib.contenttypes.models import ContentType
from django.template.defaultfilters import striptags
from .models import Order, OrderItem, Contact_info
BASKET_OPTIONS_USE_KEEP = False
class OrderItemF... | [
"pavelm2007@yandex.ru"
] | pavelm2007@yandex.ru |
3c34105bfa17f674e7bb3b8621bc4ceb8ae112b5 | bb88122fc4978b14e8a9b02d8c11f1ce67ea17d0 | /01_keras/keras31_cifar100_1_imshow.py | c2765b3208fba97f52169ea5492007275762cd5d | [] | no_license | star10919/Keras_ | c2c8a6f3d0e1a7ceba9e81dbc51ecfd12bd5fe78 | f3156b7db6e12feea075b46e94b09157f43a141c | refs/heads/main | 2023-08-17T22:44:54.324315 | 2021-10-24T02:47:00 | 2021-10-24T02:47:00 | 390,066,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from tensorflow.keras.datasets import cifar100
import numpy as np
import matplotlib.pyplot as plt
from icecream import ic
(x_train, y_train), (x_test, y_test) = cifar100.load_data()
ic(x_train.shape, y_train.shape) # (50000, 32, 32, 3), (50000, 1)
ic(x_test.shape, y_test.shape) # (10000, 32, 32, 3), (10000, 1)
... | [
"star10919@naver.com"
] | star10919@naver.com |
1183fbfc216acc8a1e4f790c2cf4417f3125aa41 | f694b37f548fe67656bf737073e0221e23b53dfb | /app/models.py | b29b69f52d28438d63166cea33e9228099faca9c | [] | no_license | itsumura-h/django_api_auth_sample | d92937834e79856b7956fddf174682d1d5bd22dc | 4a3244c8a3471573f1f29c3a67ddf924f8649ed1 | refs/heads/master | 2020-05-25T18:51:40.285232 | 2019-05-22T01:08:54 | 2019-05-22T01:08:54 | 187,937,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,703 | py | from django.db import models
from django.contrib.auth.hashers import make_password
from django.utils import timezone
import hashlib
# Create your models here.
class User(models.Model):
def __str__(self):
return str(self.name)
name = models.CharField(max_length=255)
password = models.CharField(ma... | [
"dumblepy@gmail.com"
] | dumblepy@gmail.com |
610035bce67bfdabe6c21fe5bf50792c3954ccad | f02eb256fdaf94bc7fc8e2d7ecb7352b98eaf494 | /tests/test_save_reload_user.py | a0d68fd0753ad0addf27d58d3cb85bc80ff0f58f | [] | no_license | andres0191/AirBnB_clone | b98c4ef70c5f933154367557fc4026a2ce4e258a | 818e60d89939650a2962164690987a0703792ef5 | refs/heads/master | 2021-01-03T23:58:42.569557 | 2020-03-03T00:32:49 | 2020-03-03T00:32:49 | 240,291,850 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | #!/usr/bin/python3
from models.engine.file_storage import FileStorage
from models.base_model import BaseModel
from models.user import User
storage = FileStorage()
storage.reload()
all_objs = storage.all()
print("-- Reloaded objects --")
for obj_id in all_objs.keys():
obj = all_objs[obj_id]
print(obj)
print("... | [
"jodia.ms@outlook.com"
] | jodia.ms@outlook.com |
fc1aed88264779358eff660f119563fd54d8a910 | ae3abdd710878d79e60b1f1c56c5cd394ab511f4 | /scripts/ajive_analysis.py | 4eef9222b51981000f5ac81b3b4d3f1e752f4d9a | [] | no_license | idc9/breast_cancer_image_analysis | 0eee6c7d796aabde8a447085996e32563acf6bd1 | 4a4af9d6b55b3ca38b26111d0f55af89a48b1282 | refs/heads/master | 2020-11-27T14:22:07.967478 | 2020-04-13T23:51:53 | 2020-04-13T23:51:53 | 229,484,796 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,751 | py | import os
from joblib import dump
import matplotlib.pyplot as plt
from jive.AJIVE import AJIVE
from explore.BlockBlock import BlockBlock
from explore.Base import Union
from cbcs_joint.load_analysis_data import load_analysis_data
from cbcs_joint.viz_utils import savefig, mpl_noaxis
from cbcs_joint.Paths import Paths
... | [
"idc9@cornell.edu"
] | idc9@cornell.edu |
93278531bd2f7b0295e3a883583124b4e66288e2 | c0385ff098c71e6b9e9883e5e0b1a23d6ddee30a | /src/apps/accounts/urls.py | 1ea7e73d3c17414ed305e39dbf374e478c3f6d9b | [
"MIT"
] | permissive | ehoversten/Travel-Buddy | c8122e941e491f467d4b085bd09e5f23b2674af6 | e117cfcd14be3d04cab97b4fc28ced3f95f5786b | refs/heads/master | 2022-12-11T08:35:16.098525 | 2020-08-10T18:11:40 | 2020-08-10T18:11:40 | 149,361,212 | 1 | 3 | null | 2022-12-08T02:25:23 | 2018-09-18T22:47:54 | JavaScript | UTF-8 | Python | false | false | 268 | py | from django.conf.urls import url
from .views import (
register_view,
LoginFormView
)
urlpatterns = [
url(r'^$', LoginFormView.as_view(), name='login'),
# url(r'^$', login_view, name='login'),
url(r'^register/$', register_view, name='register'),
]
| [
"sixgg4@gmail.com"
] | sixgg4@gmail.com |
088de244f3f420206a51d57f323c763474709895 | e96e03300af5aeb41b9ced0febefa4fb4a12cd28 | /to_nwb/extensions/general/gen_yaml.py | a830e5845f935a2e7e20e31eaa0fd72ff8a9ce39 | [
"BSD-3-Clause"
] | permissive | deeptimittal12/to_nwb | 4db72499e1696a8d73739aede365b6a4ea878dd7 | 9876a1baf4faf56ba54fe8ff7359129450e2aca0 | refs/heads/master | 2021-05-19T13:12:45.463079 | 2019-06-19T22:09:02 | 2019-06-19T22:09:02 | 251,717,287 | 1 | 0 | BSD-3-Clause | 2020-03-31T20:00:22 | 2020-03-31T20:00:22 | null | UTF-8 | Python | false | false | 1,898 | py | from pynwb.spec import NWBDatasetSpec, NWBNamespaceBuilder, NWBGroupSpec, \
NWBAttributeSpec
namespace = 'general'
ns_path = namespace + '.namespace.yaml'
ext_source = namespace + '.extensions.yaml'
values = NWBAttributeSpec(name='values',
dtype='text',
doc='val... | [
"ben.dichter@gmail.com"
] | ben.dichter@gmail.com |
bde00068d71ed1c31ca61ddb9cd7e7d3d39ec8d1 | aff774e066b5db7fdefa4ca9c760b55fc80a678e | /modelrunner/redis_utils.py | 61b5c3a286a0922517bdafa6dcb1d856eb497514 | [] | no_license | piensa/modelrunner | 3e965d75f2401ace5e7ac931da64b4794e0d1d96 | 385e1e01a8007e156855495393d57a1403ec72b2 | refs/heads/master | 2020-03-18T14:56:37.852622 | 2019-02-04T22:16:05 | 2019-02-04T22:16:05 | 134,876,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | # -*- coding: utf-8 -*-
"""
functions associated with implementing modelrunner 'protocol' via Redis
command dicts are serialized as json
"""
import logging
from .utils import json_dumps_datetime, json_loads_datetime
# setup log
logger = logging.getLogger('modelrunner')
def pop_command(redis_conn, queue_name, timeo... | [
"chris.natali@gmail.com"
] | chris.natali@gmail.com |
8c347fbf4734a6975b4f15136fa2ac019f6ac964 | e5d4d867e8369194e3519d795d57a6df81357c99 | /exps/utils/quaternion.py | 68befca69501d9cfb2f8eefe9b03363921c866ef | [
"MIT"
] | permissive | hyperplane-lab/Generative-3D-Part-Assembly | 76eb2d414af41b4aa8a188257fb12368d8fccf94 | 1e0e671d282d24d9c95a0f0a7ae67fa923575f45 | refs/heads/main | 2023-05-06T20:15:26.504273 | 2021-05-27T13:18:18 | 2021-05-27T13:18:18 | 301,576,236 | 86 | 15 | null | null | null | null | UTF-8 | Python | false | false | 6,606 | py | # Copyright (c) 2018-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
#
import torch
import numpy as np
# PyTorch-backed implementations
def qmul(q, r):
"""
Multiply quaternion(s) q with qu... | [
"you@example.com"
] | you@example.com |
c849667e0bdec93b1f1f55ec5c9906baaa0cb01b | dc7cdeecb1ed52a7bdd18cd20c69aa43897f0830 | /wechatpy/events.py | aaf98a0629cf895fad0e1d7d1358ed7b8fc492ca | [
"MIT"
] | permissive | hurricane1260/wechatpy | 421b0a27b78bbb3bcc33bc6e6685b6beacd55dde | 0d7916e1a894f208dcea18b33803751166378c3d | refs/heads/master | 2021-01-17T18:37:14.535895 | 2014-11-02T16:27:31 | 2014-11-02T16:27:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,429 | py | from __future__ import absolute_import, unicode_literals
from .fields import StringField, FloatField, IntegerField, BaseField
from .messages import BaseMessage
EVENT_TYPES = {}
def register_event(event_type):
def register(cls):
EVENT_TYPES[event_type] = cls
return cls
return register
clas... | [
"messense@icloud.com"
] | messense@icloud.com |
3b6ebd315450fc2c97862754c665237294407a45 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/scaleform/daapi/view/lobby/profile/ProfileSection.py | b4db4c8e5d4ea33bab42ac314a91489bad338c34 | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 4,621 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/profile/ProfileSection.py
from helpers import dependency
from helpers import i18n
from gui.Scaleform.daapi.view.meta.ProfileSectionMeta import ProfileSectionMeta
from gui.Scaleform.locale.PROFILE impor... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
33e1acb8213c3949b68066fc4c21db1c9a41b63e | 18239524612cf572bfeaa3e001a3f5d1b872690c | /clients/keto/python/test/test_ory_access_control_policy_roles.py | 58ab31294ec8ab133335aea33cb9535ffefe7585 | [
"Apache-2.0"
] | permissive | simoneromano96/sdk | 2d7af9425dabc30df830a09b26841fb2e8781bf8 | a6113d0daefbbb803790297e4b242d4c7cbbcb22 | refs/heads/master | 2023-05-09T13:50:45.485951 | 2021-05-28T12:18:27 | 2021-05-28T12:18:27 | 371,689,133 | 0 | 0 | Apache-2.0 | 2021-05-28T12:11:41 | 2021-05-28T12:11:40 | null | UTF-8 | Python | false | false | 1,108 | py | # coding: utf-8
"""
ORY Keto
A cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. # noqa: E501
The version of the OpenAPI document: v0.0.0-alpha.1
Contact: hi@ory.sh
Generated by: https://openapi-generator... | [
"noreply@github.com"
] | simoneromano96.noreply@github.com |
17c409f96f6fbfc2ece1feb2169d436079206edf | c61a28aba19f7cdf9a5127e8a782bf115c265e70 | /apps/recruitpro/recruitpro/projects/doctype/project/test_project.py | c4ea5f0a15de18c53a3d959798b6561206bae9f6 | [
"MIT"
] | permissive | sharmilaviji/RecruitPRO-NEW | fa72c8fc00f469a41798b1047c11dcc470fbc495 | dcfaedebe56b45acd6ddcab7e24c939b853a2c8c | refs/heads/master | 2021-05-26T12:14:12.611154 | 2020-04-27T04:40:50 | 2020-04-27T04:40:50 | 254,125,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, teampro and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestProject(unittest.TestCase):
pass
| [
"sharmiviji1997@gmail.com"
] | sharmiviji1997@gmail.com |
1dfd792b4d6b9073b528ef9278bbf99e213f1556 | aa53489a8a63ce7911814ad65fefc72e966e12a4 | /shopstats/manage.py | e9da8239b56bfbc892534a0f34833d40ca16e3a5 | [] | no_license | rajesh67/shopstats | 6e67a238dee0230cb4a0b7d178539e18a60c3dce | 708a225b66420f7103d52d23bcfb97add9a419a7 | refs/heads/master | 2021-01-10T04:53:59.464927 | 2016-01-15T16:37:21 | 2016-01-15T16:37:21 | 49,218,834 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "shopstats.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"rajeshmeena.iitkgp@gmail.com"
] | rajeshmeena.iitkgp@gmail.com |
0380022b8c6b8eef636f670ba5bfbc4a414b5801 | da11f3d8ab43b2def03e7e99ed08aec2d578611f | /python编程从入门到实践/第十七章/17-1/java_repos.py | 8ee138382a88ec6e3bdf71d1f9af66c1c60a3d68 | [] | no_license | huanglun1994/learn | ff3bbb1b0afe7e9c0812bd71af62707acbb5b0b5 | 9dc8ddd440e56a9961b118813162323fdfd4f16e | refs/heads/master | 2021-01-01T06:30:34.652264 | 2018-07-09T15:00:21 | 2018-07-09T15:00:21 | 97,444,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,512 | py | # -*- coding: utf-8 -*-
"""xxxxx"""
__author__ = 'Huang Lun'
import requests
import pygal
from pygal.style import LightColorizedStyle as LCS, LightenStyle as LS
# 执行API调用并存储响应
url = 'https://api.github.com/search/repositories?q=language:java&sort=stars'
r = requests.get(url)
print('Status code: ', r.status_code)
# 将A... | [
"492593760@qq.com"
] | 492593760@qq.com |
f28ba1c32f9bd37f6f17a95addc3e0021621f4e1 | 8de2869bf284e98de6a9b424e90da5ab361d8aac | /book/_build/jupyter_execute/matplotlib/04_LinesAndMarkers.py | 389934d917a8f82f9913f961208dd4315888974e | [] | no_license | hossainlab/dataviz | d37081da066bd88165aba41e2a8050ee17a1b131 | e02b38827ab363f907b8c06c8f7ffc98a6a27a8f | refs/heads/master | 2023-07-20T01:42:47.144900 | 2021-08-29T10:43:15 | 2021-08-29T10:43:15 | 291,055,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
matplotlib.interactive(True)
plt.ion()
matplotlib.is_interactive()
# #### We start off with the previously seen sine curve
# In[2]:
x = np.linspace(start=0, stop=10, num=50)
# In[3]:
plt.plot... | [
"work.jubayer@gmail.com"
] | work.jubayer@gmail.com |
a99854b984911426cefd12d106e8d4e639de58b4 | 7f203d6d2d48bdc0b768215798f0694803268818 | /test/vnx/resource/test_migration.py | 0a48bd056d09f0df5cd51a5bbe89b270cee31643 | [
"Apache-2.0"
] | permissive | thotypous/storops | 1108a314658def0dac69e0b0d14578283aab50b4 | 8ea8c5a71f2bf93b710c854ee6c3b01f334673a0 | refs/heads/master | 2021-01-21T17:03:31.935679 | 2016-08-22T15:30:54 | 2016-08-22T15:30:54 | 66,502,757 | 0 | 0 | null | 2016-08-24T21:57:36 | 2016-08-24T21:57:35 | null | UTF-8 | Python | false | false | 3,363 | py | # coding=utf-8
# Copyright (c) 2015 EMC Corporation.
# 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... | [
"cedric.zhuang@emc.com"
] | cedric.zhuang@emc.com |
b2ffd186bd314161749bdd589717f9c0c6dc87d0 | 3c62aaf3b1b3c598dbe43a47f4d76ae90b27b098 | /PA2/part1/linear_regression.py | c519c202b7d8fc652487ef864f6557a37e38fa20 | [] | no_license | trademark152/Machine_Learning_CSCI567_USC | e8a222e7d9093bc78cf1a17545faf3e2710bdf39 | 61b614676510fd1fbb49da255a667c8da4a911f7 | refs/heads/master | 2022-12-16T11:50:57.912882 | 2020-09-26T00:20:48 | 2020-09-26T00:20:48 | 298,696,629 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,501 | py | """
Do not change the input and output format.
If our script cannot run your code or the format is improper, your code will not be graded.
The only functions you need to implement in this template is linear_regression_noreg, linear_regression_invertible,regularized_linear_regression,
tune_lambda, test_error and mappin... | [
"trademark152@gmail.com"
] | trademark152@gmail.com |
39ae03eb391316d2130cb398f9458429c9dd0e77 | 339f207fd7dd99b7b6484ffa78bfbf8102c25ede | /wrappedapp/tests/models/test_auth.py | 3826af0a7bbf48a9eb4772fe9bad3857f92bb9b1 | [] | no_license | ralphbean/wrappedapp | 0b3b43d4435b6e16b1a21a0f766bfa3d51450bf2 | 73bbbc0366d06492d0a7822c8b543f5410e15a6f | refs/heads/master | 2016-09-06T10:36:02.820439 | 2011-09-28T18:46:11 | 2011-09-28T18:46:27 | 2,477,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | # -*- coding: utf-8 -*-
"""Test suite for the TG app's models"""
from nose.tools import eq_
from wrappedapp import model
from wrappedapp.tests.models import ModelTest
class TestGroup(ModelTest):
"""Unit test case for the ``Group`` model."""
klass = model.Group
attrs = dict(
group_name = u"test_gro... | [
"ralph.bean@gmail.com"
] | ralph.bean@gmail.com |
9481c3b012fa6b02185d777dafa526c7ef1e00d7 | 8d014c5513a0eeca086010b018b67336f8d042e0 | /cam_esp32cam.py | 253eb82dfa3400a82cc5d443548f35bf88108c6e | [] | no_license | rkuo2000/cv2 | 26ce0a06b4040eabb82319ec44cab5c3639b9495 | 16e64e7092d6654ea470e469d6b15f308ecd1788 | refs/heads/master | 2022-10-12T00:11:35.964818 | 2022-09-30T06:50:35 | 2022-09-30T06:50:35 | 108,848,948 | 5 | 29 | null | 2022-09-29T11:01:48 | 2017-10-30T12:38:58 | Python | UTF-8 | Python | false | false | 681 | py | # open browser at ipaddr of ESP32-CAM to set stream size
# 320x240 doesn't work, other resolution are OK
import numpy as np
import cv2
from urllib.request import urlopen
# port 81 has stream, see ESP32-CAM webserver.ino
url = 'http://192.168.1.5:81/stream'
CAMERA_BUFFER_SIZE = 4096
stream = urlopen(url)
bbb... | [
"noreply@github.com"
] | rkuo2000.noreply@github.com |
34aff31d919f88404099c15990efd64e8c9f7d6a | b9801a2ad269a678acd6113992f063fba2813f65 | /test/test_policy.py | 97c8c6b5d630335fbff44038ef558dd399776b92 | [
"MIT"
] | permissive | ax-ncolyer/automox-console-sdk-python | 6dd01826cc9629b2ee6086ae179b443f9ba8e0db | 27ba2279e2d59e3f0cbfc00e34eddb51838e402e | refs/heads/main | 2023-08-12T20:57:24.264682 | 2021-09-16T02:18:01 | 2021-09-16T02:18:01 | 406,992,680 | 0 | 0 | MIT | 2021-09-16T02:35:32 | 2021-09-16T02:35:31 | null | UTF-8 | Python | false | false | 862 | py | # coding: utf-8
"""
Automox Console API
API for use with the Automox Console # noqa: E501
OpenAPI spec version: 2021-08-10
Contact: support@automox.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import automox_co... | [
"zachary.youtz@automox.com"
] | zachary.youtz@automox.com |
fb31c45f4f37bb9228e0728eb24e7fa6149627df | 6fbca0b22dbf7e79d3e7796bdcc18cc564a77eb1 | /aol/documents/tests.py | 10679b394aeca4ae2fe688e74bfb4832a53e6371 | [] | no_license | mdj2/aol | b998a41552eca6c3d09b7f97891283563d7d3b01 | f848f5328aec30826d726033cd44216be4e9dabd | refs/heads/master | 2021-01-09T20:48:48.372586 | 2014-03-18T18:23:14 | 2014-03-18T18:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | py | import os
from django.test import TestCase
from django.core.urlresolvers import reverse
from django.conf import settings as SETTINGS
from .models import Document
from aol.users.tests.test_views import LoginMixin
from aol.lakes.models import NHDLake as Lake
class ViewTest(LoginMixin):
fixtures = ['lakes.json']
... | [
"mdj2@pdx.edu"
] | mdj2@pdx.edu |
9973762cd04b563d1fa57643f4ea17013ea0507f | cd627d56e00fafeaa547582145eead9147329b6a | /django-rest/sxfunc/snippets/views.py | 5cafeac4c29da9f55fa20e01723ac2571dcc23f7 | [] | no_license | 2XL/hwDjango | 57c2b7f6ee91e89ebc566891c7e2ceb01e2192c1 | 0816f0e9f842025b14779ed731e8c15a30894a95 | refs/heads/master | 2021-01-13T09:15:33.791503 | 2016-11-08T15:44:32 | 2016-11-08T15:44:32 | 72,609,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | from django.shortcuts import render
# Create your views here.
############ Wrapping Views with function based decorator
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .models import Snippet
from .serializers import SnippetSerializer
... | [
"chenglong.zq@gmail.com"
] | chenglong.zq@gmail.com |
b197c6d251ae7bc5c527c1b8248d9b2690e1135b | 30fced93674fce23af3e0eda735221fab785ca2e | /beta/download.py | 7acc0177eba335648b27a596fc552b4438b80d66 | [] | no_license | li3637/JD_Diy | 8047017fc8caf7cbb8ca6988b1a7146c122ed8b4 | 9222a5e6a92d094b56cf94aa37677ec5a5796993 | refs/heads/master | 2023-06-11T06:30:37.100477 | 2021-06-21T04:34:21 | 2021-06-21T04:34:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,668 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author : Chiupam
# @Data : 2021-06-15
# @Version : v 1.0
# @Updata :
# @Future :
from JD_Diy import chat_id, jdbot, _ConfigDir, _ScriptsDir, _OwnDir, logger, _JdbotDir
from ..bot.utils import cmd, press_event, backfile, jdcmd, V4, QL, _ConfigFile, mycron, s... | [
"chiupam@126.com"
] | chiupam@126.com |
18736855e45eda60471a343f863989a8ab6556b4 | 20c9f3a089286a442cc15f8a31bb34e110e68d8b | /tests/python/len.py | 643569734e0202f30062585e3840e5e5ee19fe9b | [
"MIT"
] | permissive | denim2x/py2nim | 00ca515daef897d380dbf4915583a470ffe4c94e | 56fc2699d31241c60bed726f59efea4bf46be238 | refs/heads/master | 2021-09-28T06:37:42.786868 | 2018-11-15T08:12:30 | 2018-11-15T08:12:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | class A:
def __init__(self, elements):
self.elements = elements
def __len__(self):
return len(self.elements)
a = A([2])
print(len(a))
| [
"alehander42@gmail.com"
] | alehander42@gmail.com |
8ed433dd2530fe9753af90133ba61335dd78dd9e | 92795fd129672b52ace12f7bf4eb08f72da916c5 | /adminphotoload/templatetags/widget_photo_iframe.py | bb95fad92665987f0ed394f6c9240f07f850a4cd | [] | no_license | ljarufe/quimerahg | b601f0b1bb77e48893f128615d54dfe062a4fd74 | 872e7deca73ccd8417d0d963a043cb2e79d64ffb | refs/heads/master | 2021-01-25T07:07:35.430695 | 2013-10-21T19:03:57 | 2013-10-21T19:03:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # -*- coding: utf-8 -*-
from django import template
from django.conf import settings
register = template.Library()
@register.inclusion_tag('templatetags/iframe.html')
def widget_photo_iframe(app, model, id, change):
"""
Inserta el código para la herramienta para subir fotos en un iframe
"""
return {... | [
"luisjarufe@gmail.com"
] | luisjarufe@gmail.com |
03aef183e7f933a66be4b8cb22079d3baab2ba23 | d153e65c8f3f60abb6d2ad11f9463f0c79179f36 | /.ipynb_checkpoints/vis_util-checkpoint.py | b92ded8c4560d066e3f733b952ef832e4d7894a6 | [] | no_license | chuazh/cs231n_project | a1ed7aeefd38185578bf6c02dd640b099812dcc6 | 1e0f30c76966c40b96172a268201e57c584aecd6 | refs/heads/master | 2020-05-20T18:51:23.254213 | 2019-05-14T23:57:18 | 2019-05-14T23:57:18 | 185,714,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | import torchvision
import torchvision.datasets as dset
import torchvision.transforms as T
import torchvision.models as models
import torch
import torch.nn as nn
import matplotlib.pyplot as plt
import time
import os
import copy
import numpy as np
def check_accuracy_vis(prefix,loader, model, device, plot=True):
pri... | [
"google-dl-platform@googlegroups.com"
] | google-dl-platform@googlegroups.com |
d32216fde31ae9640754800c85f46534ce87f113 | 00f20cf0bd5fa65c9f54aa5a29fe3565fd8b2d96 | /swagger_client/models/match_query.py | d5fb5908d6802428b6a87f53062fada57dbc5695 | [] | no_license | gingerwizard/python-ece-client | 8b81094ddf64617c12aea9db65b9d5f7a6f1c73c | 6187fdde855a147d114fb7ee39fc5314a1b0893f | refs/heads/master | 2021-08-29T08:16:31.942559 | 2017-12-13T14:32:23 | 2017-12-13T14:32:23 | 114,131,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,774 | py | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class MatchQue... | [
"dalem@elastic.co"
] | dalem@elastic.co |
000110f69e38d8e360fc1503ca5f26370e05cd25 | cb57a9ea4622b94207d12ea90eab9dd5b13e9e29 | /lintcode/python/1909_order_allocation.py | 4ff108d890858840ee3ef9ae25488bb9c13d9df3 | [] | no_license | boknowswiki/mytraning | b59585e1e255a7a47c2b28bf2e591aef4af2f09a | 5e2f6ceacf5dec8260ce87e9a5f4e28e86ceba7a | refs/heads/master | 2023-08-16T03:28:51.881848 | 2023-08-10T04:28:54 | 2023-08-10T04:28:54 | 124,834,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,870 | py | #!/usr/bin/python -t
# dfs
from typing import (
List,
)
class Solution:
def __init__(self):
self.cur_max = 0
self.ret = None
"""
@param score: When the j-th driver gets the i-th order, we can get score[i][j] points.
@return: return an array that means the array[i]-th driver gets ... | [
"boknowswiki@gmail.com"
] | boknowswiki@gmail.com |
9fb989048567eb5db15c515f5ce3ba6801b857bf | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/CreateCabInstanceRequest.py | 47923c7bc2c403b3b77dcab96630ccdb24c8801c | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,170 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.